* Narrative Report Sentence Structure

Questions about the various ways of sharing your research with others
Post Reply
avatar
BillC
Newbie
Posts: 2
Joined: 06 Aug 2023 19:35
Family Historian: V7

Narrative Report Sentence Structure

Post by BillC » 07 Aug 2023 10:53

Hello FH users,

I would appreciate some help in fine tuning the sentence structure for Notes in Narrative Reports. I am a new user and have just imported a large dataset from TMG.

The issue I am having is that the report is inserting a period in the middle of the note – even though I don’t see it anywhere in the note or the Fact Definition Sentence Structure. Additionally, the sentence output looks normal in the Fact Screen.

Example
1. Narrative report output:
William took a position as bookkeeper at the First National Bank.In 1880 in Bay City, Bay, Michigan, USA.

2. This is the Sentence Output in the Fact Screen:
He took a position as bookkeeper at the First National Bank in 1880 in Bay City, Bay, Michigan, USA.

3. This is the Sentence Structure in the Fact Screen:
{individual} <and {=Witness(%FACT%,"Principal 2")} > {note} {date} {place}

4. This is the Sentence Structure for Fact Type: Note and Fact Set: TMG Import Project
{individual} <and {=Witness(%FACT%,"Principal 2")} > {note} {date} {place}

Any suggestions would be really appreciated.

User avatar
LornaCraig
Megastar
Posts: 2989
Joined: 11 Jan 2005 17:36
Family Historian: V7
Location: Oxfordshire, UK

Re: Narrative Report Sentence Structure

Post by LornaCraig » 07 Aug 2023 11:06

Try replacing {note} with {inline-note}. This is for use when you want the note to be inserted into the middle of the sentence template, rather than appended as an extra complete sentence.

Unfortunately the online FH Help file only mentions the {note} code, but if you use Help >Search Help within FH and search for 'Sentence Template Codes' you will find a full list of sentence template codes including both {note} and {inline-note}.
Lorna

avatar
RS3100
Famous
Posts: 240
Joined: 05 Nov 2020 12:16
Family Historian: V7
Location: Hertfordshire, UK

Re: Narrative Report Sentence Structure

Post by RS3100 » 07 Aug 2023 13:11

This is from the list of version updates for FH 7.0.18, which expands on Lorna's post.

Since the last release, Family Historian now has two sentence template codes – {note} and {inline-note} – where previously it just had one ({note}). When generating sentences and sentence templates for narrative reports, Family Historian will now use {inline-note} as replacement for the TMG memo code, [M], as this is the code that most accurately reflects the behaviour of the TMG [M] code. Note: If you have made any modifications to the code replacements file for TMG imports (see the ‘Code Replacements’ button on the TMG Import Options page, displayed prior to import), and if you want to incorporate this same change, you will need to either update the code replacements file yourself and replace {note} with {inline-note}; or alternatively, you can just click the ‘Reset’ button to the right of the ‘Code Replacements’ button, to restore the default version of the file (which includes the new code).

and relating to the introduction of {inline-note} in the previous version:

Problems with the {note} code in sentence templates have been addressed. There is a new template code, {inline-note} which can be used in sentence templates, if you want to insert a note into a sentence, without treating the note as the start of a new sentence. The code {note} still exists but should only be used for notes which consist of one or more sentences.

avatar
BillC
Newbie
Posts: 2
Joined: 06 Aug 2023 19:35
Family Historian: V7

Re: Narrative Report Sentence Structure

Post by BillC » 08 Aug 2023 14:06

Thank you for your help on this. My upgrade to latest release is in process. Frankly, the learning curve seems really steep. I will report back if I am unable to figure out. Thank you again! Bill

Post Reply