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 Tuesday, August 30, 2005 - Post #7978
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: Tuesday, October 28, 2025
Posts: 4,886, Visits: 22,799
Not all languages have the same phrase structure.  I decided to create a topic dedicated to this issue.

From the Universal Report Generator:

rjn (8/18/2005)
GenoProSupport (8/18/2005)
Every problem can be solved. This is my philosiphy anyway. Send me several samples Finnish translation in the context of VBScript and I will draft a routine to handle this.


That's great! I didn't quite understand what you meant by sending samples in the context of vbscript... I'm having yet difficulties with that language so I'm not sure if I can do that, whatever it was :?
Still I can elaborate and send you more specific information and examples of suffixes in possessive structures that I can think of:

Basic possessive structure in Finnish: add suffix "n"
Examples:
Rami -> Ramin
Toni -> Tonin
Risto -> Riston
Marika -> Marikan
etc.

Exceptions:
1) When the last letter is a CONSONANT (except s), add suffix "in"
Examples:
Tom -> Tomin
Aslak -> Aslakin
Jasmin -> Jasminin
Mikael -> Mikaelin
Abraham -> Abrahamin
Elisabet -> Elisabetin

2) But if the last letter is consonant s, it is left out and replaced by suffix "ksen":
Examples:
Armas -> Armaksen
Iiris -> Iiriksen
Joonas -> Joonaksen
Markus -> Markuksen
Johannes -> Johanneksen

3) If there is double consonant kk, pp or tt just before ending vowel, it is reduced to single consonant k,p or t:
Examples:
Eppu -> Epun
Pekka -> Pekan
Titta -> Titan
Seppo -> Sepon
Tuukka -> Tuukan
Riitta -> Riitan
Jukkapekka -> Jukkapekan
Markku-Pekka -> Markku-Pekan
(in last two cases you see that only latter kk is affected)

4) Rare case: If name ends "tar", an extra t is added and suffix is "en":
Examples:
Ilmatar -> Ilmattaren
Suometar -> Suomettaren

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>

In English, the rules would look like this:

<PossessiveRules>
  <Rule EndWith="s" Append="'" />
  <Rule EndWith="'" />  <!-- Do nothing.  The processing will stop at this rule if the noun ends with the apostrophe -->
  <Rule Append="'s" />  <!-- Otherwise, append the "'s" to the noun -->
</PossessiveRules>


Edited: Wednesday, August 31, 2005 by GenoProSupport
Replies
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: 2 days ago @ 9:23 PM
Posts: 3,464, Visits: 26,854
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: 2 days ago @ 9:23 PM
Posts: 3,464, Visits: 26,854
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.


Threaded View

Expand / Collapse
Threaded View
Forum Post Translation of Phrases in Dictionary.xml By GenoProSupport ( Tuesday, August 30, 2005 )
Forum Post [quote][b]GenoProSupport (8/30/2005)[/b][hr] I am thinking of defining... By genome ( Wednesday, November 15, 2006 )
Forum Post [quote][b]Ron (11/15/2006)[/b][hr] The next skin update has an interim... By Yehudad ( Wednesday, November 15, 2006 )
Forum Post Sorry, the Dictionary will have the following by way of explanation.... By genome ( Wednesday, November 15, 2006 )
Forum Post Of course... :) ;) Thanks for all of your efforts to the Report... By Yehudad ( Wednesday, November 15, 2006 )
Forum Post As I understand all the rules should be in the dictionary.xml file and... By Yehudad ( Wednesday, September 7, 2005 )
Forum Post [quote][b]Yehudad (9/8/2005)[/b][hr]As I understand all the rules... By GenoProSupport ( Wednesday, September 7, 2005 )
Forum Post [quote][b]GenoProSupport[/b][hr]I think this proposed solution would... By Yehudad ( Thursday, September 8, 2005 )
Forum Post If possible the possesive pronoun should not be written in the file... By maru-san ( Wednesday, September 7, 2005 )
Forum Post You raise a good point. The possive rules must support gender too.... By GenoProSupport ( Wednesday, September 7, 2005 )
Forum Post In Hebrew there is no EndWith. We can append the word "של" - "SHEL"... By Yehudad ( Wednesday, September 7, 2005 )
Forum Post Before dealing with possessive rules, it should be given a thought... By Alfi ( Wednesday, September 7, 2005 )
Forum Post I think we should have [b]two topcis[/b] for the linguistic rules.... By GenoProSupport ( Wednesday, September 7, 2005 )
Forum Post Something like thet could help me too! By V.L.o ( Wednesday, September 7, 2005 )
Forum Post I think - instead of: [code]<Rule Append="n">[/code] should... By Alfi ( Wednesday, September 7, 2005 )
Forum Post I think this is a great idea. Having such rules they could easily be... By Rjn ( Wednesday, August 31, 2005 )
Forum Post Also, having a [url=FindPost8009.aspx]pattern in a rule[/url] using a... By GenoProSupport ( Wednesday, August 31, 2005 )


Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse