* remove the preposition in a narrative report

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
User avatar
jimlad68
Megastar
Posts: 911
Joined: 18 May 2014 21:01
Family Historian: V7
Location: Sheffield, Yorkshire, UK (but from Lancashire)
Contact:

remove the preposition in a narrative report

Post by jimlad68 » 31 Jul 2014 22:41

I'm trying to remove the preposition (e.g. on) before the date in a narrative report. From http://www.fhug.org.uk/fhhelp/source/te ... l#advanced I can see how to add one, but not remove. I note that PLACe can be used with/without a prefix but that for ADDRess you have to specify one if you want it! 3 variations for 3 codes!

It is not a major problem as I can remove via a word macro, but that would not be possible for PDF output. I am just intrigued, perhaps there is an extra list of items for the Fact Template.
Jim Orrell - researching: see - but probably out of date https://gw.geneanet.org/jimlad68

User avatar
DavidNewton
Superstar
Posts: 462
Joined: 25 Mar 2014 11:46
Family Historian: V7

Re: remove the preposition in a narrative report

Post by DavidNewton » 01 Aug 2014 08:41

The help file will show you the way - search for Template Codes and look at the Date paragraph. Date codes accept qualifiers which allow you to choose the date format. As soon as you add a qualifier the automatic prepositions disappear. The disadvantage is that you will have to do this for every fact definition where you want to change the format.

David

User avatar
Jane
Site Admin
Posts: 8442
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Re: remove the preposition in a narrative report

Post by Jane » 01 Aug 2014 09:19

If you want to do a global change and are happy using a search and replace program the Fact Sets are plain text files so easy to edit that way (obviously back them up first).
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

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

Re: remove the preposition in a narrative report

Post by tatewise » 01 Aug 2014 13:46

Jim, the Advanced section you linked to explains the options David mentions:
Please note that the simple {date} code automatically adds various prefixes (different ones depending on the date type) and other language elements, to make the date information fit correctly into a narrative sentence. When you qualify a date, no such additional language elements are added. If you want prefixes, you will have to add them yourself (see next).
I believe the default {date} format is the same as the {date:LONG} format except the latter has no prefix.

Another interesting variant is <on {date:DAY_OF_WEEK}> {date:LONG} which includes the day of the week.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
jimlad68
Megastar
Posts: 911
Joined: 18 May 2014 21:01
Family Historian: V7
Location: Sheffield, Yorkshire, UK (but from Lancashire)
Contact:

Re: remove the preposition in a narrative report

Post by jimlad68 » 01 Aug 2014 16:29

David, Mike, thanks, also found the extra page.

Jane, very useful info, I don't know how good it is in a programming sense, but I just love the simplicity of data being held in structured text files, bit like a GEDCOM file really. Takes me back to my system testing days.
Jim Orrell - researching: see - but probably out of date https://gw.geneanet.org/jimlad68

Post Reply