|
|
Customers Important Contributors Translator GenoPro version: 3.1.0.1
Last Login: Friday, November 25, 2022
Posts: 334,
Visits: 7,574
|
|
|
|
Administrators Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.1.0.1
Last Login: 12 hours ago
Posts: 3,421,
Visits: 26,430
|
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"
|
|
|
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... )?
|
|
|
Administrators Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.1.0.1
Last Login: 12 hours ago
Posts: 3,421,
Visits: 26,430
|
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"
|
|
|
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
|
|
|
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
|
|
|
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.
|
|
|
Customers Important Contributors FamilyTrees.GenoPro.com Translator GenoPro version: 3.1.0.1
Last Login: Sunday, March 21, 2021
Posts: 716,
Visits: 12,927
|
If possible the possesive pronoun should not be written in the file "Lang.vbs" since japanese character will not be accepted there.The japanese pronoun is "no = の" and is written as a suffix.
Edited: Wednesday, September 7, 2005 by
maru-san
|
|
|
Customers FamilyTrees.GenoPro.com GenoPro version: 2.5.4.1
Last Login: Monday, May 5, 2014
Posts: 107,
Visits: 4,280
|
Before dealing with possessive rules, it should be given a thought about dividing this behaviour into 3 subgroups:"Possessive" nominal affixes (of NOUNS) "Possessive" pronominal affixes (of PRONOUNS) "Possessive" adjectival affixes (of ADJECTIVES preceeding their NOUNS) By the way, affixes can be of 3 types: prefixes, infixes (as the Finnish "k" before "s"), and suffixes.
additional email: finkea@mail.biu.ac.il ARIGATO-GOZAIMASU(jp) DAKUJEM(sk) DANKE(d) EVHARISTIES(gr) GRAZIE(it) MERCI(f) MULTUMESC(ro) SPASIVA(ru) THANKS(gb) THODAH(il)
Edited: Wednesday, September 7, 2005 by
GenoProSupport
|
|
|
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
|
You raise a good point. The possive rules must support gender too. The routine will look likeLanguageDictionary.PossessiveName("Daniel", "car", "M") LanguageDictionary.PossessiveName(i.Name.First, "car", i) |
to produce The method PossessiveName will apply the PossessiveRules to produce text for the possession. The gender will be optional, so you could use PossessiveName("Daniel", "car") without having to supply "M" or "F".
Edited: Wednesday, September 7, 2005 by
GenoProSupport
|