* Sentence error with 'Make local notes private' census option

AS allows faster and more convenient creation of source records for Family Historian.
Post Reply
User avatar
MichaelM
Platinum
Posts: 31
Joined: 14 Jul 2021 14:01
Family Historian: V7
Location: UK

Sentence error with 'Make local notes private' census option

Post by MichaelM »

I'm entering census data with AS, and have configured Age and Condition as generic columns so that the data gets written to the local note for use in fact sentences.

On the Census settings page, under Generic columns, I have Include note titles and Make local notes private ticked, and Newline between notes is selected.

That creates the following, as seen on the relevant census fact in FH:
Capture1.PNG
Capture1.PNG (9.69 KiB) Viewed 3009 times

Note the odd sentence, with "]]" as part of it. That comes from this code, which I would expect to work:

Code: Select all

<para>{date:YEAR} census: On {date:DAY} {date:MONTH_NAME} {individual} appeared in the census <at {address},> {_place} as {=GetLabelledText(%FACT.NOTE2%,"Condition:")} {=GetLabelledText(%FACT.NOTE2%,"Relation to Head of Family:")}, {age}. <{note}>
Maybe the sentence-generator is expecting the privacy brackets to appear on a separate lines, as if I make this change, it works perfectly:
Capture2.PNG
Capture2.PNG (9.88 KiB) Viewed 3009 times

Do I have something wrong with my sentence code, or could this be changed in AS?
Last edited by tatewise on 03 Aug 2021 20:58, edited 1 time in total.
Reason: Change " to ' in Subject
Michael
User avatar
tatewise
Megastar
Posts: 28342
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Sentence error with 'Make local notes private' census option

Post by tatewise »

Yes, your analysis is correct. The privacy brackets must be on separate lines.
Otherwise, the trailing ]] get included as part of the paragraph and the Relation to Head of Family: label is not detected because it must be at the start of a line.
That last requirement is new in FH v7 because earlier FH versions allowed the label to appear anywhere in the paragraph.

I'm not sure AS can position the privacy brackets any better without a program change by Nick.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
User avatar
MichaelM
Platinum
Posts: 31
Joined: 14 Jul 2021 14:01
Family Historian: V7
Location: UK

Re: Sentence error with 'Make local notes private' census option

Post by MichaelM »

Is Nick likely to see this or is it a question of contacting him direct?
Michael
User avatar
tatewise
Megastar
Posts: 28342
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Sentence error with 'Make local notes private' census option

Post by tatewise »

Usually, Nick monitors these postings, but this one may have escaped his notice as there has been no response for some months. So yes, contact him directly.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
User avatar
MichaelM
Platinum
Posts: 31
Joined: 14 Jul 2021 14:01
Family Historian: V7
Location: UK

Re: Sentence error with 'Make local notes private' census option

Post by MichaelM »

Just noting for the record that this has been fixed in AS v7.3. Thanks Nick!
Michael
Post Reply