Option to display surnames in UPPERCASE
Brought to you by:
canajun2eh,
yalnifj
In some packages, there's an option to display surnames
in UPPERCASE. Would be nice if that were a config
option for phpGedView.
Might also be desirable to *force* uppercase entry for
those fields to begin with (again, only as an option).
Thanks in advance!
-g
Logged In: YES
user_id=1466942
I capitalise the surnames in my gedcom. However, there are
some names that conventionally use some lowercase letters,
even when capitalised. e.g. McDONALD, rather than MCDONALD.
If you want to take an existing gedcom and convert the
surnames to upper case, here's a little perl script that
will do the job.
#!/usr/bin/perl
while (<STDIN>) {
if ($_ =~ m!^(1 NAME .*/|2 _MARNM .*/)(.*)(/.*)!s)
{print $1.uc($2).$3;}
elsif ($_ =~ m!^(2 SURN )(.*)!s)
{print $1.uc($2);}
else
{print $_;}
}
Logged In: YES
user_id=1006499
Originator: NO
To only *display* surnames in uppercase
you can add this lines to your style.css file :
.name1, .name2, .name_head {
font-variant: small-caps;
}