Page 1 of 1

Sentence error with 'Make local notes private' census option

Posted: 03 Aug 2021 18:17
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 2850 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 2850 times

Do I have something wrong with my sentence code, or could this be changed in AS?

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

Posted: 03 Aug 2021 21:06
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.

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

Posted: 14 Oct 2021 11:08
by MichaelM
Is Nick likely to see this or is it a question of contacting him direct?

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

Posted: 14 Oct 2021 13:04
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.

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

Posted: 14 Feb 2022 19:20
by MichaelM
Just noting for the record that this has been fixed in AS v7.3. Thanks Nick!