Page 1 of 1

Suggestion: how to port TMG's split memo's to FH

Posted: 31 Dec 2014 11:30
by JohnJ_au
For those migrating from TMG who need something similar to the TMG split memo, then you might like to adapt my census principal sentence:

{date} {individual} was listed in the {date:Year} {=TextPart(%FACT.PLAC%,-1)} census as {=TextPart(%FACT.NOTE2%,1)} {place}. In the census {individual's} name was given as {=TextPart(%FACT.NOTE2%,2)}<, age {=TextPart(%FACT.NOTE2%,3)}><, occupation {=TextPart(%FACT.NOTE2%,4)}><, birthplace {=TextPart(%FACT.NOTE2%,5)}>.< {=TextPart(%FACT.NOTE2%,6)}.>< Also living in the household at the time was {other=resident}.>

This assumes the Note is structured as: role, name, age, occupation, birthplace, anything-else. This is the same structure as my TMG Memo with || replace with a comma.

I suspect I'll move over to AS as I get more familiar with that piece of the puzzle but the above got me out of a hole for the initial migration where I had ~110 census events that I didn't fancy redoing.

Happy to discuss further if anyone is interested.

Re: Suggestion: how to port TMG's split memo's to FH

Posted: 05 Jan 2015 14:07
by D-W
I too have migrated from TMG where I found the use of witnesses and split fields extremely useful. The primary reason for my migration is that TMG is no longer supported. However, I am having real problems with programming sentence structures in FH and so I was very interested in your post.
Although I used spit data fields in TMG I did it a different way from you. In my Census Tag (Fact in FH) I split the Principal Note so that I could use relevant parts in the Witness Notes. For example, I split the following Principal Note into three parts (I have used TMG dividers || to make the splits clear):
“The household consisted of Hezekiah and his first wife Hannah and their children, Harriett Charles, Harry & Thomas.|| The family shared the house with another family of 8 making 14 in all.|| The Census gives no indication of the size of the house.”
Unfortunately, the use of commas in FH to split fields, instead of || as in TMG, prevents the use of sentences such as:
“The household consisted of Hezekiah, his first wife Hannah and their children Harriett, Charles, Harry and Thomas” because the split occurs after the word “Harriett”. I have tried wrapping the commas in ampersands which works with some other programs but is doesn’t work in FH.
In the Sentence field the second note {=TextPart(%FACT.NOTE2%,2)} is truncated to a few words and ends with “…” so it now reads “The family shared the house with …” instead of, “The family shared the house with another family of 8 making 14 in all.”
The third note which should read, “The Census gives no indication of the size of the house.” does not appear at all.
I have also noticed that Witness Notes are truncated. I haven’t counted the characters (256?) but if the note exceeds the limit it finishes with … which appears in both the Witness Sentence and reports.
I am not sure whether there is any way of resolving these problems in the current version of FH but if there is I would grateful for any help.

Re: Suggestion: how to port TMG's split memo's to FH

Posted: 05 Jan 2015 14:52
by tatewise
Yes, there is, John discovered several techniques while designing his Witness Sentence.
Unfortnately, he has omitted to pass on all the accumulated knowledge.
See his original Sentence is truncated ... (12081) thread.