* Date Keywords - Auto-Texts
Date Keywords - Auto-Texts
On many/most of my certificates, the event date on a BMD is written as text eg twenty-fifth. In AS, this (perfectly sensibly) is normally entered as 25, and even if entered as text, is displayed subsequently as 25.
Am I correct that there is no way to get an Auto-text to revert the 25 to read twenty-fifth? I know I can use {DATE.DAY.ORD} to display the ordinal - the help-file does not list any help, but I just wanted to check that there wasn't a hidden way to do so.
I also know I can manually edit afterwards. Its not a big issue, just wanted to confirm the correct answer.
Am I correct that there is no way to get an Auto-text to revert the 25 to read twenty-fifth? I know I can use {DATE.DAY.ORD} to display the ordinal - the help-file does not list any help, but I just wanted to check that there wasn't a hidden way to do so.
I also know I can manually edit afterwards. Its not a big issue, just wanted to confirm the correct answer.
Colin McDonald - Researching McDonald, McGillivray, Tait, Rountree families
- tatewise
- Megastar
- Posts: 28342
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: Date Keywords - Auto-Texts
Have you checked the WORDNUMORD and WORDNUM functions that I think will do that.
See the AS help page for Template Keywords and Functions and scroll down to nearly the end.
It is under Ancestral Sources Reference > Options or by a Help Search for Keyword or for Function.
See the AS help page for Template Keywords and Functions and scroll down to nearly the end.
It is under Ancestral Sources Reference > Options or by a Help Search for Keyword or for Function.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
Re: Date Keywords - Auto-Texts
I had looked at the help file, and found nothing.
So I'm not sure how those should be used, but I'll have a play with it now.
So I'm not sure how those should be used, but I'll have a play with it now.
Colin McDonald - Researching McDonald, McGillivray, Tait, Rountree families
- ColeValleyGirl
- Megastar
- Posts: 5465
- Joined: 28 Dec 2005 22:02
- Family Historian: V7
- Location: Cirencester, Gloucestershire
- Contact:
Re: Date Keywords - Auto-Texts
From the Help File (towards the bottom of https://ancestral.fhug.org.uk/webhelp/h ... /hs200.htm
=WORDNUM[numeric%mode]
The WORDNUM function can be used to convert a number (between 1 and 9999) into an english version of it. The mode is a number between 1 and 6 that specifies how the returned value is displayed. It may also be useful to combine with the TITLE or TITLEF functions.
e.g. =TITLEF[=WORDNUM[{YEAR}%2]]
In the example, if the year was 1853 then the values returned would be as follows, depending on the mode:
Mode 1: Eighteen hundred and fifty-three
Mode 2:Eighteen hundred and fifty three(Same as Mode 1 without hyphens)
Mode 3: Eighteen fifty-three
Mode 4:Eighteen fifty three(Same as Mode 3 without hyphens)
Mode 5: One thousand eight hundred and fifty-three
Mode 6:One thousand eight hundred and fifty three(Same as Mode 5 without hyphens)
=WORDNUMORD[numeric%mode]
The WORDNUM function can be used to convert a number (between 1 and 9999) into an english ordinal version of it. The mode is a number between 1 and 6 that specifies how the returned value is displayed. It may also be useful to combine with the TITLE or TITLEF functions.
e.g. =TITLEF[=WORDNUMORD[{DAY}%2]]
Might display first, second, third, fourth, etc.
The mode values use the same formats as explained in the previous section describing the WORDNUM function. Modes 3 and 4 are probably not useful with ordinal values but are available to provide consistency with WORDNUM.
Helen Wright
ColeValleyGirl's family history
ColeValleyGirl's family history
Re: Date Keywords - Auto-Texts
Lovely thats a great help. Thanks to both.
Colin McDonald - Researching McDonald, McGillivray, Tait, Rountree families
Re: Date Keywords - Auto-Texts
Works perfectly too.
Colin McDonald - Researching McDonald, McGillivray, Tait, Rountree families
-
- Famous
- Posts: 192
- Joined: 04 Nov 2015 17:32
- Family Historian: V7
- Location: Worcestershire, UK
Re: Date Keywords - Auto-Texts
Watch out for any dates that are the (2)9th of a month, it always gets misspelt as (twenty(-)) nineth rather than (twenty(-)) ninth.
Peter Collier
Collier, Savory, Buckerfield, Edmonds, Low, Dungey, Lester, Chambers, Walshe, Moylan, Bradley, Connors, Udale, Wilson, Benfield, Downey
Collier, Savory, Buckerfield, Edmonds, Low, Dungey, Lester, Chambers, Walshe, Moylan, Bradley, Connors, Udale, Wilson, Benfield, Downey
- NickWalker
- Megastar
- Posts: 2597
- Joined: 02 Jan 2004 17:39
- Family Historian: V7
- Location: Lancashire, UK
- Contact:
Re: Date Keywords - Auto-Texts
This will be fixed in the next version. If you had let me know when you spotted it rather than just working around it, I could have fixed it before!
- NickWalker
- Megastar
- Posts: 2597
- Joined: 02 Jan 2004 17:39
- Family Historian: V7
- Location: Lancashire, UK
- Contact:
Re: Date Keywords - Auto-Texts
A new version of AS is now available (https://fhug.org.uk/kb/link/ancestral-sources/) which should spell ninth correctly!