* Integrate Functions and Sentence Template Codes

For Wish List Requests that have either (a) been progressed to the Wish List; or (b) been classified as duplicates, or as redundant because the requirement is already satisfied within FH and/or plugins; or (c) closed because it wasn't possible to arrive at a clear specification of the request within 15 months of it being raised.
Post Reply
User avatar
tatewise
Megastar
Posts: 28414
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Integrate Functions and Sentence Template Codes

Post by tatewise »

FH V6 now supports Expressions (Functions & Data Refs) in Fact Type narrative Sentence Templates but would benefit from some enhancements. See thread Test for plural witness (13399) and Narrative Reports Sentence Templates (13673).

A) Template Code for Witness Note

Please can we have {witn note} or similar to represent {%CUR~WITN.NOTE2%}.

B) Functions to support Template Codes

Whenever a Function is employed the Template Codes often become unusable.
So those Template Codes have to be synthesised with Functions.
e.g.
Say we want to report any existing Birth Date, but if none then use the =EstimatedBirthDate(...) function.
{=TextIf( Exists(%FACT.DATE%), {date}, EstimatedBirthDate(...) )}

But {date} is not allowed there, so we must use a very complex set of functions to establish the date prefix in, or on, or circa, or none, etc, etc.

So this request is for Template Codes to be supported within Function parameters.

Then in the above example even Exists({date}) should work.

C) Template Codes for popular Functions

Conversely, it would be convenient for some popular Functions to have Template Code short-cuts such as:

{note(x)} or {address(x)} would return the xth paragraph equivalent to =GetParagraph(...,x).

{note("label")} or {address("label")} would return the labelled paragraph equivalent to =GetLabelledText(...,"label").

{place(x,y)} or {address(x,y)} would return text parts x to y equivalent to =TextPart(...,x,y).

D) Inhibit Full-stop and Capital letter in Sentence Templates

It would be very useful to eliminate some of the repetitive sentence structures, where it keeps saying:
"He/She was born ... He/She was baptised ...".

This could be achieved by conditionally dropping the full-stop at end of one fact sentence and making first letter of next fact sentence lower-case, so it could read:
"He/She was born ... and baptised ...".

This also retains any Source Citation cross-ref suffixes, because all fact sentences still exist.

See Wish List Ref 275 Combined events in narrative reports.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
User avatar
tatewise
Megastar
Posts: 28414
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Integrate Functions and Sentence Template Codes

Post by tatewise »

Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
Post Reply