Sentence structures
Posted: 28 May 2020 18:03
I have only been using FH since early January so if these questions are overly simplistic I apologize. When importing my existing data into FH I get many errors, not the fault of FH, so I am using my time to clean up my existing data so the import will go as clean as possible. In that effort I also need to determine what fact types I can use and if I can create sentence structures that will display the data as I want. In that effort I have created an additional fact type for a census record in FH and I am trying to learn the capabilities of constructing sentences.
I have created the following:
{individual} appeared < in the {date:YEAR} census> as head of household < in {role=Head of Household}'s household> <at {address}> < {place}> <with wife {role=Wife}> . The census was enumerated {date}. <<br>Other household members were: <br>Son: {role(single)=Son}> <<br>Other household members were:<br> Sons: {role(plural)=Son}><<br> Daughter: {role=Daughter}>< <br> Mother: {role=Mother}><<br> Father: {role=father}><<br> Grandson: {role=Grandson}>< <br> Granddaughter: {role=Granddaughter}><br>
When looking at the narrative report in the FH report viewer I get the following:
John Doe was born on March 1, 1880 in Tucumcari, Indiana. He married Mary Washington on January 1, 1900 in Tucumcari. He appeared in the 1940 census as head of household at 75 Main St in Manchester, Vermont with wife Mary Washington. The census was enumerated on July 1, 1940.
Other household members were:
Sons: John Doe and Second Doe
Daughter: Mary Jane Doe
Grandson: Bobby Carpenter
Granddaughter: Sharon Carpenter
He died on April 1, 1950 in Tucumcari.
When I save it in an rtf format and open it with MS Word I get the following:
John Doe was born on March 1, 1880 in Tucumcari, Indiana. He married Mary Washington on January 1, 1900 in Tucumcari. He appeared in the 1940 census as head of household at 75 Main St in Manchester, Vermont with wife Mary Washington. The census was enumerated on July 1, 1940.
Other household members were:
Sons: John Doe and Second Doe
Daughter: Mary Jane Doe
Grandson: Bobby Carpenter
Granddaughter: Sharon Carpenter
He died on April 1, 1950 in Tucumcari.
Question one is there a way to format the output so the indentation in the report viewer is the same as the rtf file in MS Word? I have tried spaces in this example but it looks like FH will suppress leading spaces. Is there anything like tabs that will preserve the spacing?
Question two is about providing the leading text. In this case it is “other household members were:”. I have many different roles to address the various types of relationships within a household. In my example the leading text is associated with sons. If I don’t have at least one son then the text does not appear, Is there a way to test for having other members in the household besides the Head of Household and wife so I can insert that text regardless of who the other roles are?
Question three is if I want to keep the members in a sentence structure rather than the table format how can I deal with commas and when the last one is found so I can eliminate the commas and end the sentence. I have seen several discussions on this site about this question so we can postpone this question until I read all that has been said and if I am still stumped on this issue.
All the facts are purely fictional so there may be misspellings. I thought I posted this yesterday but I can't find it today so I probably did something incorrectly either in the posting yesterday or the searching today.
I have created the following:
{individual} appeared < in the {date:YEAR} census> as head of household < in {role=Head of Household}'s household> <at {address}> < {place}> <with wife {role=Wife}> . The census was enumerated {date}. <<br>Other household members were: <br>Son: {role(single)=Son}> <<br>Other household members were:<br> Sons: {role(plural)=Son}><<br> Daughter: {role=Daughter}>< <br> Mother: {role=Mother}><<br> Father: {role=father}><<br> Grandson: {role=Grandson}>< <br> Granddaughter: {role=Granddaughter}><br>
When looking at the narrative report in the FH report viewer I get the following:
John Doe was born on March 1, 1880 in Tucumcari, Indiana. He married Mary Washington on January 1, 1900 in Tucumcari. He appeared in the 1940 census as head of household at 75 Main St in Manchester, Vermont with wife Mary Washington. The census was enumerated on July 1, 1940.
Other household members were:
Sons: John Doe and Second Doe
Daughter: Mary Jane Doe
Grandson: Bobby Carpenter
Granddaughter: Sharon Carpenter
He died on April 1, 1950 in Tucumcari.
When I save it in an rtf format and open it with MS Word I get the following:
John Doe was born on March 1, 1880 in Tucumcari, Indiana. He married Mary Washington on January 1, 1900 in Tucumcari. He appeared in the 1940 census as head of household at 75 Main St in Manchester, Vermont with wife Mary Washington. The census was enumerated on July 1, 1940.
Other household members were:
Sons: John Doe and Second Doe
Daughter: Mary Jane Doe
Grandson: Bobby Carpenter
Granddaughter: Sharon Carpenter
He died on April 1, 1950 in Tucumcari.
Question one is there a way to format the output so the indentation in the report viewer is the same as the rtf file in MS Word? I have tried spaces in this example but it looks like FH will suppress leading spaces. Is there anything like tabs that will preserve the spacing?
Question two is about providing the leading text. In this case it is “other household members were:”. I have many different roles to address the various types of relationships within a household. In my example the leading text is associated with sons. If I don’t have at least one son then the text does not appear, Is there a way to test for having other members in the household besides the Head of Household and wife so I can insert that text regardless of who the other roles are?
Question three is if I want to keep the members in a sentence structure rather than the table format how can I deal with commas and when the last one is found so I can eliminate the commas and end the sentence. I have seen several discussions on this site about this question so we can postpone this question until I read all that has been said and if I am still stumped on this issue.
All the facts are purely fictional so there may be misspellings. I thought I posted this yesterday but I can't find it today so I probably did something incorrectly either in the posting yesterday or the searching today.