Question Surnames full capitalization
- yann64
- Topic Author
- Offline
- New Member
As a matter of consistency, I try to keep all surnames fully capitalized.
It would be very handy if as an additional "Data fix" it could be possible to "Capitalize all surnames", as unless mistaken I don't think webtrees allows automating this tasks?
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
Control panel -> Custom CSS and JS.
Add the following CSS:
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- hermann
- Away
- Elite Member
Hermann
Designer of the custom module "Extended Family"
webtrees 2.1.21 (all custom modules installed, PHP 8.3.12, MariaDB 10.6) @ ahnen.hartenthaler.eu
Please Log in or Create an account to join the conversation.
- Sir Peter
- Offline
- Premium Member
- Posts: 506
Changing all surnames to all uppercase like in MCMURRAY would elevate an error to the new standard.
@Greg, what about implementing a data fix that allows an admin to correct the all uppercase surnames - providing the admin with a list of "surname=uppercase(surname)" and corresponding checkboxes so that surnames like MCMURRAY could be excluded from the bulk change and handled manually.
Peter
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
(A more advance search would only do this on lines beginning "1 NAME")
But I can see complications trying to convert all names automatically.
We cannot convert certain letters to lowercase. For example, see en.wikipedia.org/wiki/Dotted_and_dotless_I
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- Bogie
- Offline
- Elite Member
- Life is good!
It would be very handy if as an additional "Data fix" it could be possible to "Capitalize all surnames", as unless mistaken I don't think webtrees allows automating this tasks?
If you would like to find the records with capitalized surnames you could use a RegEx like
(2 SURN )([A-Z ]*$)
Bogie
webtrees 2.1.22 | PHP 8.3.12 | MariaDB 10.11.8 | Apache on Ubuntu
AutoComplete places of @tkempf, chart modules of @magicsunday, Fancy treeview of @justCarmen
Please Log in or Create an account to join the conversation.
- WGroleau
- Offline
- Platinum Member
- Posts: 2165
That doesn’t work if, like me, you delete the completely redundant clutter of SURN (and every other subrecord of NAME except NICK and AKA).If you would like to find the records with capitalized surnames you could use a RegEx like
(2 SURN )([A-Z ]*$)
--
Wes Groleau
UniGen.us/
Please Log in or Create an account to join the conversation.
- Bogie
- Offline
- Elite Member
- Life is good!
What are you looking for?
Bogie
webtrees 2.1.22 | PHP 8.3.12 | MariaDB 10.11.8 | Apache on Ubuntu
AutoComplete places of @tkempf, chart modules of @magicsunday, Fancy treeview of @justCarmen
Please Log in or Create an account to join the conversation.
- WGroleau
- Offline
- Platinum Member
- Posts: 2165
… But I can see complications trying to convert all names automatically.
We cannot convert certain letters to lowercase. For example, see en.wikipedia.org/wiki/Dotted_and_dotless_I
Related: I recently encountered a large quantity of Greek text where a search function could not find word I knew were there. Eventually figured out every word that should have stated with one of the Greek letters ΕΥΙΟΚΗΑΖΧΒΝΜ instead started with the look-alike ASCII letter!
--
Wes Groleau
UniGen.us/
Please Log in or Create an account to join the conversation.
- WGroleau
- Offline
- Platinum Member
- Posts: 2165
They should have done what they did with Greek. Using different code points for glyphs that look the same allows this to work:
--
Wes Groleau
UniGen.us/
Please Log in or Create an account to join the conversation.
- yann64
- Topic Author
- Offline
- New Member
Here is the compromise I implemented on CSS:
Please Log in or Create an account to join the conversation.
- ef-five
- Offline
- New Member
- Posts: 2
Sorry for reviving this old thread.
Here is the compromise I implemented on CSS:This way, we have a clear difference between first-names and surnames in languages where first-names can be used as surnames (like French).Code:<style> .SURN { text-transform: bolder } </style>
I'll do you one better. Try this for bold and italics.
You could even give them a color if you wanted to like this.
Please Log in or Create an account to join the conversation.
- WGroleau
- Offline
- Platinum Member
- Posts: 2165
font-weight: bold; (without italics) was just barely visible.
--
Wes Groleau
UniGen.us/
Please Log in or Create an account to join the conversation.
- ef-five
- Offline
- New Member
- Posts: 2
If you use one of those themes you could always use another color for the surnames like this.
For those that don't color codes you can do a web search for "color hex codes" and find lots of sites that list the codes.
Codes examples are like this for red #ff0000 for white #ffffff for black #000000. Always put a # before that numbers.
Please Log in or Create an account to join the conversation.