Does FH7 have a way to set just the initial character of a meta-field string to upper case and the rest to lower case?
RootsMagic has this and some templates that are converted to FH7 do not look "right" without it.
* Setting a word to sentence-case
-
Gary_G
- Superstar
- Posts: 304
- Joined: 24 Mar 2023 19:05
- Family Historian: V7
- Location: Calgary, Alberta, Canada
Setting a word to sentence-case
Gary Gauthier
Hunting History in the Wild!
Hunting History in the Wild!
- tatewise
- Megastar
- Posts: 27082
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: Setting a word to sentence-case
There is no single function but the following does achieve that objective:
<{=ToUpper( LeftText( %SOUR.~TX-FIELD%, 1 ) )}{=ToLower( MidText( %SOUR.~TX-FIELD%, 2 ) )}>
<{=ToUpper( LeftText( %SOUR.~TX-FIELD%, 1 ) )}{=ToLower( MidText( %SOUR.~TX-FIELD%, 2 ) )}>
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
-
Gary_G
- Superstar
- Posts: 304
- Joined: 24 Mar 2023 19:05
- Family Historian: V7
- Location: Calgary, Alberta, Canada
Re: Setting a word to sentence-case
Thanks, Mike;
It seems to come down to what we discussed a while ago.
FH7 is a slightly light string handling capabilities.
Not a big issue, but it can be an annoyance when one needs them.
Sort-of wish that FH7 had the ability to have add-on function-libraries written in LUA.
That would solve it all.
It seems to come down to what we discussed a while ago.
FH7 is a slightly light string handling capabilities.
Not a big issue, but it can be an annoyance when one needs them.
Sort-of wish that FH7 had the ability to have add-on function-libraries written in LUA.
That would solve it all.
Gary Gauthier
Hunting History in the Wild!
Hunting History in the Wild!
- tatewise
- Megastar
- Posts: 27082
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: Setting a word to sentence-case
See Wish List Ref 547 Run Plugins via Expressions that requests exactly what you are asking for and has existed for over 6 years. Please Vote for it.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
-
Gary_G
- Superstar
- Posts: 304
- Joined: 24 Mar 2023 19:05
- Family Historian: V7
- Location: Calgary, Alberta, Canada
Re: Setting a word to sentence-case
Thanks, Mike.
I'll put my check against that one. It would make sorely needed functions available and greatly shorten some constructs.
I'll put my check against that one. It would make sorely needed functions available and greatly shorten some constructs.
Gary Gauthier
Hunting History in the Wild!
Hunting History in the Wild!