* Maximum note length?

Questions regarding use of any Version of Family Historian. Please ensure you have set your Version of Family Historian in your Profile. If your question fits in one of these subject-specific sub-forums, please ask it there.
Post Reply
avatar
JoopvB
Superstar
Posts: 328
Joined: 02 May 2015 14:32
Family Historian: V7

Maximum note length?

Post by JoopvB » 05 Feb 2016 10:47

I use Getparagrah in the note field of facts to use the different paragraphs in the fact's sentence. Something strange occurred: with long text parts the sentence was cut off. Anybody aware of there being a maximum to either the fact note field or the Getparagrah?

User avatar
tatewise
Megastar
Posts: 27088
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Maximum note length?

Post by tatewise » 05 Feb 2016 11:12

There should be no limit to Note text length.

See how_to:display_long_text_like_notes|> Display long text such as Notes.

Post your Sentence Template so we can review it.

When you say the sentence is cut off, exactly what do you mean. Did it just stop, or did it end in ellipsis ...?
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

avatar
JoopvB
Superstar
Posts: 328
Joined: 02 May 2015 14:32
Family Historian: V7

Re: Maximum note length?

Post by JoopvB » 05 Feb 2016 13:33

The fact (attribute} is a custom one: Sale.
The {value} is used for the property being sold.
The "fields" in the note are:
1 the amount paid for the property
2 extra clause following the Sellers name (e.g. "brother of...")
3 extra clause following the Guarantor (e.g. "for the amount of...")
4 extra clause following the Place to describe where the property was located, usually in terms of neighbours (e.g. "neighbour to the north...")
5 extra information to append as a separate last sentence

The sentence definition for the Principal is:

<br>{date:LONG}: {individual}<, {=GetParagraph(%FACT.NOTE2%,2)},> sells< together with {other=seller}>< to {role=buyer}> {value} {place}<, {=GetParagraph(%FACT.NOTE2%,4)}>.< Amount {=GetParagraph(%FACT.NOTE2%,1)}><. Guarantied by {role=guarantor}><{=GetParagraph(%FACT.NOTE2%,3)}><. {=GetParagraph(%FACT.NOTE2%,5)}><br>

The sentence for Seller is the same with the exception: {=GetParagraph(%FACT.NOTE2%,2)} is replaced by {%CUR~WITN.NOTE2%}.
The sentence for the Buyer is more or less the same (buyer en seller reversed). The ones for Guarantor and Neighbour are short versions.

When I had a long clause (nr. 4) describing the location of the property, the generated sentence was truncated in the small window below the note window.

The clause is (excuse the Dutch language; that shouldn't be the problem, now should it? :)):

strekkend van de Vorendijk tot het land van Willem Jansz Poel, belend ten oosten deze Poel en ten westen Cornelis Jochemsz van Beijeren; nog drie kampen wei- en hooiland aldaar buitenweg, groot 5 morgen, strekkend uit de Voorwetering tot (niet vermeld), belend ten oosten Gerrit Aerden en ten westen Leendert Jansz Brack; nog een perceel veenland aldaar binnenweg, groot 60 roeden, strekkend van het land van Pieter Cornelisz van Wieringen tot in het water, belend ten oosten Willem Gerritsz van Beijeren en ten westen Roel Cornelisz Roelen; nog vier stukjes veenland aldaar, groot 50 roeden, strekkend van het erf van Harmen de snijer tot het land van Cornelis Jansz Coppert, belend ten oosten Jan Willemsz Fent en ten westen Elias Jansz Boetekees

Point of truncation: after "ten" (before "westen Elias Jansz Boetekees")

User avatar
tatewise
Megastar
Posts: 27088
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Maximum note length?

Post by tatewise » 05 Feb 2016 14:58

After a little experimention it appears that there are various internal FH fixed length text buffers to handle such long text associated with functions such as =GetParagraph(...) and =GetLabelledText(...).

If I use those functions in a Column Expression for the Records Window it truncates at 400 characters.

If I use them in a Sentence Template it truncates at 720 characters.

So all I can suggest is that you report those restrictions to Calico Pie Support.

In the mean time all I can suggest is you add another Note paragraph for the very long Note and share the text between them.

Presumably the Narrative Sentence text buffer is either much much longer, or is dynamically resizable, and that would be the solution for those functions above.

I experimented with a similar Sale fact with each Note paragraph the same as your long Dutch example. It produced a very very long sentence but all five =GetParagraph(...) functions had their text truncated at 720 characters. I presume in your case that although paragraph 4 was truncated at "ten" the subsequent paragraphs 1, 3 & 5 were included in the narrative sentence OK.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

avatar
JoopvB
Superstar
Posts: 328
Joined: 02 May 2015 14:32
Family Historian: V7

Re: Maximum note length?

Post by JoopvB » 05 Feb 2016 15:15

Hi Mike,

So there is a (unintended?) maximum length... thanks for the confirmation. I'll report it to Calico Pie.

You are right about the other paragraphs, they were not truncated and correctly became part of the sentence.

Regards, Joop

Post Reply