GenoPro Home
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 

GenoPro Support Forum




Translation of Phrases in Dictionary.xml

Click to view RSS...
Author Ideas and suggestions to translate phrases found in Dictionary.xml.
Posted Wednesday, September 7, 2005 - Post #8228
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
Important Contributors
Translator
GenoPro version: 3.1.0.1

Last Login: Friday, November 25, 2022
Posts: 334, Visits: 7,574
As I understand all the rules should be in the dictionary.xml file and the report generator will read them from there.
Posted Wednesday, September 7, 2005 - Post #8230
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Moderators
Customers
Gamma
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: Thursday, April 10, 2025
Posts: 4,886, Visits: 22,776
Yehudad (9/8/2005)
As I understand all the rules should be in the dictionary.xml file and the report generator will read them from there.

Absolutely.  The file dictionary.xml may have as many sections to describe linguistic rules, such as possessive names, plural form, place prefix, etc.  I would like to have all rules with the same syntax for orthogonality, so they can be accessed from the LanguageDictionary object (ie LanguageDictionary.PossessiveName(...), LanguageDictionary.Plural(...), LanguageDictionary.PlacePrefix(...), etc)

<LinguisticRules>

    <PossessiveName>
        <Rule #1 />
        <Rule #2 />
        ...
    </PossessiveName>

    <Plural>
        <Rule #1 />
        <Rule #2 />
        ...
    </Plural>

    <PlacePrefix>
        <Rule #1 />
        <Rule #2 />
        ...
    </PlacePrefix>

</LinguisticRules>

I think this proposed solution would work.

Edited: Wednesday, September 7, 2005 by GenoProSupport

Posted Thursday, September 8, 2005 - Post #8273
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
Important Contributors
Translator
GenoPro version: 3.1.0.1

Last Login: Friday, November 25, 2022
Posts: 334, Visits: 7,574
GenoProSupport
I think this proposed solution would work.

I'm sure that it will work with the help of the good people here. What I love in the dictionary.xml is its flexibility. The ability to edit the file without the need to know any programming language.

Edited: Thursday, September 8, 2005 by GenoProSupport

Posted Wednesday, November 15, 2006 - Post #14458
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: Yesterday @ 8:31 PM
Posts: 3,422, Visits: 26,444
GenoProSupport (8/30/2005)

I am thinking of defining some rules for possessive names.  GenoPro would lookup each rule, and if one matches the pattern, the processing would stop. In Finnish the rules sould look like this:

<PossessiveRules>
  <Rule EndWith="s" ReplaceWith="ksen" />
  <Rule EndWith="tar" ReplaceWith="ttarten" />
  <Rule EndWith="kk?" ReplaceWith="k?" />
  <Rule EndWith="pp?" ReplaceWith="p?" />
  <Rule EndWith="tt?" ReplaceWith="t?" />
  <Rule Append="n" />
</PossessiveRules>

The next skin update has an interim solution to this issue by using 'regular expression' syntax in the dictionary.

The Finnish rules can be expressed as

<PossessiveProperNoun T="s$:ksen;tar$:ttarsen;kk(.$);k$1;pp(.$):p$1;tt(.$):t$1;(.$):$1n" />

Not quite as readable as Dan's proposed solution but that's life!


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Wednesday, November 15, 2006 - Post #14461
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
Important Contributors
Translator
GenoPro version: 3.1.0.1

Last Login: Friday, November 25, 2022
Posts: 334, Visits: 7,574
Ron (11/15/2006)

The next skin update has an interim solution to this issue by using 'regular expression' syntax in the dictionary.

The Finnish rules can be expressed as

<PossessiveProperNoun T="s$:ksen;tar$:ttarsen;kk(.$);k$1;pp(.$):p$1;tt(.$):t$1;(.$):$1n" />

Not quite as readable as Dan's proposed solution but that's life!

Ron, can you explain, please, the meaning of the "$" and "(.$)" signs? what they stands for (although I think I got it... Smile)?

Posted Wednesday, November 15, 2006 - Post #14467
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: Yesterday @ 8:31 PM
Posts: 3,422, Visits: 26,444
Sorry, the Dictionary will have the following by way of explanation.
 <!-- PossessiveProperNoun - Conversion of Proper Nouns to their possessive form

  This is arranged as repeating pairs of 'regular expressions' as <part to find>:<replacement>;
  $ in the '<part to find>' represents the end of the word, so '(s$)' means ending in 's'
  . is a wild card presenting any character so (.$) means ending with any character.
  $n in the '<replacement>' means 'matched substring 'n' so $1 means the 1st bracketed string in '<part to find>'
  Therefore (s$):$1'; means: if word ends with 's' replace 's' by itself ($1) followed by ' (apostrophe)
        and (.$):$1's means replace any last character in a word by that last character followed by 's

  Another example: to always add the Japanese character 'の' use (.$):$1の; as the PossessiveProperNoun translation string (you will need to be using a font that supports Japanese to see this!)

  Once a replacement is made no further pairs are tested.

  simple isn't it!

  For more information on regular expressions in VBscript google for 'Windows 5.6 Script Documentation' and download script56.chm and open it.
 -->
  
 <PossessiveProperNoun T="(s$):$1';(.$):$1's;" />

Hope that will help to clarify things.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Wednesday, November 15, 2006 - Post #14471
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
Important Contributors
Translator
GenoPro version: 3.1.0.1

Last Login: Friday, November 25, 2022
Posts: 334, Visits: 7,574
Of course... Smile Wink

Thanks for all of your efforts to the Report Generator.



Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse
Active: 5 - 1 guest, 3 members, 0 anonymous.
Refresh