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

GenoPro Support Forum




Author Sample Report #3
Posted Thursday, August 18, 2005 - Post #7115
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 hours ago
Posts: 3,487, Visits: 27,238
In my forthcoming revision I am moving all potential language dependent code to code\lang.vbs. Here is a code snippet handling birth & baptism narratives. (Note that any code starting in column 1 has been wrapped form the previous line)
Function StrBirthNarrative(i,strName)
If IsPresent(i.birth,"dps") then
StrBirthNarrative= LanguageDictionary.FormatString("BirthNarrative",_
strName, i.birth.date.ToStringNarrative, Util.IfElse(i.birth.place.name <> "", LanguageDictionary.FormatString("FmtPlace", i.birth.place.name),""))
End If
End Function

Function StrBaptismNarrative(i,strName)
If IsPresent(i.birth.baptism,"dps") then
If IsPresent(i.birth,"dps") Then
StrBaptismNarrative = LanguageDictionary("ConjunctionAnd")
Else
StrBaptismNarrative = strName
End If
End If

If IsPresent(i.birth.baptism,"dps") Then
StrBaptismNarrative = StrBaptismNarrative & LanguageDictionary.FormatString("BaptismNarrative",_
i.birth.baptism.date.ToStringNarrative,_
Util.IfElse(i.birth.baptism.priest <> "", LanguageDictionary.FormatString("Priest", i.birth.baptism.priest),""),_
Util.IfElse(i.birth.baptism.place.name <> "", LanguageDictionary.FormatString("FmtPlace", i.birth.baptism.place.name),""))
If instr(i.birth.baptism.godfather,",")>0 or instr(i.birth.baptism.godfather,"&")>0 then
StrBaptismNarrative = StrBaptismNarrative & LanguageDictionary.FormatString("Godfathers", PnRU(i), i.birth.baptism.godfather)
ElseIf i.birth.baptism.godfather <> "" then
StrBaptismNarrative= StrBaptismNarrative & LanguageDictionary.FormatString("Godfather", PnRU(i), i.birth.baptism.godfather)
End If
If instr(i.birth.baptism.godmother,",")>0 or instr(i.birth.baptism.godmother,"&")>0 then
StrBaptismNarrative = StrBaptismNarrative & LanguageDictionary.FormatString("Godmothers", PnRU(i), i.birth.baptism.godmother)
ElseIf i.birth.baptism.godmother <> "" then
StrBaptismNarrative = StrBaptismNarrative & LanguageDictionary.FormatString("Godmother", PnRU(i), i.birth.baptism.godmother)
End If
End if
End Function

and the Dictionary entries, ignoring Godparents
<ConjunctionAnd T="$#32;and$#32; />
<BirthNarrative T="{} was born{}{}"/>
<BaptismNarrative T="$#32;was baptised{0}{1}{2}.$#32;"/>
<DateNarrativeDay T="$#32;on {}" />
<DateNarrative T="$#32;in {}" />
and so from your post I think the code will be unchanged and German Dictionary entries will be
<ConjunctionAnd T="$#32;und$#32;" />
<BirthNarrative T="{} wurde {} geboren{}"/>
<BaptismNarrative T="$#32;{0} getauft{1}{2}.$#32;"/>
<DateNarrativeDay T="$#32;am {}" />
<DateNarrative T="$#32;{}" />
please replace $ with & in the above. phpBB translates HTML entity & #32; to space.

I haven't written the revised code for grandparents yet. Watch this space.....



'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"


Edited: Monday, December 19, 2005 by GenoProSupport
Posted Thursday, August 18, 2005 - Post #7116
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 hours ago
Posts: 3,487, Visits: 27,238
re links not working in Mozilla. This is another case of IE being lax on standards, allowing me to write invalid HTML!. Fix in home.htm :
replace
<a name='#AlphabeticalIndex'/>
with
<a name='AlphabeticalIndex'/>

and
<a name='#MostPopular'/>
with
<a name='MostPopular'/>



'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"


Edited: Monday, December 19, 2005 by GenoProSupport
Posted Thursday, August 18, 2005 - Post #7117
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.0.1.5

Last Login: Saturday, March 14, 2020
Posts: 365, Visits: 3,680
Hi Ron, I wish I could understand all this programming language!
I can just about get my head arround simple "html" and managed to personalise the "php" of the message forum on my web site, but these Genopro codes loose me completely so I am unable to identify the parts of the code in the individuel.htm that need to be transfered to a family.htm or what else needs doing so I am keen to see what you comes up with in a few days.
Keep up the good work Ron and Dan, you're doing amazing things for Geneology!
:?
Posted Thursday, August 18, 2005 - Post #7118
Forum Expert

Forum ExpertForum ExpertForum ExpertForum ExpertForum ExpertForum ExpertForum ExpertForum ExpertForum Expert

Customers
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: Thursday, March 6, 2025
Posts: 84, Visits: 288
The version I have still bugs siblings:

She is one of four children. She has a brother and one sisters, Karl Erik ARNE Olsén, Ingrid Ewa Maria (Ewa) Ryttegård (f Olsén) and Lena Ulrika Susanne Olsén.

However, this kind of programming is my favourite kind! Is it Ok for me to join in?

Anna
Posted Thursday, August 18, 2005 - Post #7119
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 hours ago
Posts: 3,487, Visits: 27,238
Please do join in, Anna, this should be a joint effort. But I'm sure I've seen and fixed that bug, although I've not released the code yet.
I think you will find I've used too many parameters here so 'nBrothers' it taken when it should be 'nSisters'

i.e.
Report.Write LanguageDictionary.FormatString("SiblingBrotherAndSisters", Util.strFirstCharUCase(LanguageDictionary("PnP_" & i.gender.id)), strToHaveSingular, LanguageDictionary.Cardinal(nBrothers), LanguageDictionary.Cardinal(nSisters))

shoulde be
Report.Write LanguageDictionary.FormatString("SiblingBrotherAndSisters", Util.strFirstCharUCase(LanguageDictionary("PnP_" & i.gender.id)), strToHaveSingular, LanguageDictionary.Cardinal(nSisters))



'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"


Edited: Monday, December 19, 2005 by GenoProSupport
Posted Thursday, August 18, 2005 - Post #7120
Forum Master

Forum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum Master

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

Last Login: Sunday, March 21, 2021
Posts: 716, Visits: 12,927
Have managed to produce a skin for german from ron#3 report, except for the issue with grandparents. Realized that it is very important to give places proper names in order to have a sensible sentence afterwards.
Have started to work on a draft for Japanese. Structure is again different from english and german.
Really miss an editor with the capability to input japanese. The editor is an important part of the report generator when it comes to foreign languages.
Posted Thursday, August 18, 2005 - Post #7121
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, February 3, 2026
Posts: 4,886, Visits: 22,803
Do not spend too much time with the templates. I am currently updating the templates using a super powerful , yet simple method to write narrative phrases. You will love it. I would recommend to wait until Beta 14 before doing any serious work on the templates. I am hoping to release Beta 14 this week, but it may be next week.
Posted Thursday, August 18, 2005 - Post #7122
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 hours ago
Posts: 3,487, Visits: 27,238
I read Dan's post above re Beta 14 but as I had this revised code ready I couldn't resist posting details of it. This version has better work-arounds for the hyperlink problems and also has the family detail pages. I understand there will be a proper fix for this in Beta 14. Family details can now optionally be omitted from the Individual pages using the FamilyInfo parameter in Config.xml. Also virtually all narrative text is now in the Dictionary or Lang.vbs to ease translation issues.

This is definitely my last revision before Beta 14. I'm very intrigued by the new phrase generator and can't wait to try it out and all the other improvements.

You can see my revised preview and/or download the skin template (version 2005.08.03_Ron7). But don't bother to change it until after Beta 14.



'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Thursday, August 18, 2005 - Post #7123
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
Important Contributors
GenoPro version: 3.1.0.1

Last Login: 3 hours ago
Posts: 449, Visits: 7,991
Ron, congatulations on the excellent work you are doing on the skin template.

Unfortunately, there appears to be an error in your latest script. Under the Occupation Details for an individual, the name of the individual's spouse is being inserted instead of the name of the individual. I don't remember this error in the previous version.

Howard.
Posted Thursday, August 18, 2005 - Post #7124
Forum Expert

Forum ExpertForum ExpertForum ExpertForum ExpertForum ExpertForum ExpertForum ExpertForum ExpertForum Expert

Customers
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: Thursday, March 6, 2025
Posts: 84, Visits: 288
Hi Ron!

I'm using nordic letters (å, ä, ö) which makes your special scripts om your web site reject my xml-file. Could that be the reason I can not run your latest skin?
The previous one worked perfectly, though!

Processing template 'family.htm'...
Error at line 202 (Code/Lang.vbs) generating 'fam00416.htm': Objektet stöder inte egenskapen eller metoden.: 'f'
Körningsfel i Microsoft VBScript 800A01B6

Need translation? :-)

Anna


Edited: Monday, December 19, 2005 by GenoProSupport


Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse