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

GenoPro Support Forum




Upgrade of the phrase generator

Click to view RSS...
Author Will any of our foreign language skin be affected?
Posted Saturday, July 29, 2006 - Post #12126
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

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

Posted Saturday, July 29, 2006 - Post #12128
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: Monday, March 25, 2024
Posts: 4,880, Visits: 22,749
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:

Set o = Util.NewObjectRepertory
o.Add "TwinBrother", 1
o.Add "Brother", 3
o.Add "Sister", 2
o.Add "HalfSister", 1
o.Add "Cat", 2
o.Add "Dog", 1
Report.WritePhrase "{0} has {1}.", i.Name.First, o

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


Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse