Important Contributors FamilyTrees.GenoPro.com Customers Translator GenoPro version: 2.0.1.6
Last Login: Tuesday, December 16, 2008
Posts: 390,
Visits: 1,271
|
Ref this quotation from HTML report displays pets as unknown gender:GenoPro Support
After releasing v2.0, I will upgrade the phrase generator to be smarter for creating sentenses. The upgrade will use the ObjectRepertory to construct narrative phrases. Using this new technology, it will be easier to create long descriptive narrative phrases. Question: will this upgrade affect our existing foreign language skins? Thank you.
Edited: Saturday, July 29, 2006 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
|
This upgrade won't affect existing phrases. The ObjectRepertory will simplify the creation of phrases by reducing the number of parameters required. Here is a sample code:Such code would produce something like that:
Daniel has one twin brother, three brothers, two sisters, one half-sister plus two cats and a dog. |
At this point, there is little benefit of using the ObjectRepertory , however the following code can offer something more interesting:
Set o = Util.NewObjectRepertory o.Add "TwinBrother", "Danny" o.Add "Brother", "J-C", "Pierre", "Raph" o.Add "Sister", "Anne", "Estelle" o.Add "HalfSiblings", i.siblings.half o.Add "Cat", 1 o.Add "Dog", 2 Report.WritePhrase "{0} has {1}.", i.Name.First, o |
This time, the phrase generator would use the text (if present) otherwise will use the count of instances. The phrase generator will also be capable to create hyperlinks if a collection is supplied. In this example, assuming the collection i.siblings.half contains one individual named Rebecca, we would get the following output:
Daniel has one twin brother named Danny, three brothers named J-C, Pierre and Raph, two sisters named Anne and Estelle, one half sibling named Rebecca plus a cat and two dogs. |
Edited: Friday, September 1, 2006 by
GenoProSupport
|