Menu

#692 Option to display surnames in UPPERCASE

phpGedView
open
nobody
5
2006-09-27
2006-09-27
themint100
No

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

Discussion

  • Greg Roach

    Greg Roach - 2006-10-10

    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 $_;}
    }

     
  • Christophe B.

    Christophe B. - 2007-11-19

    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;
    }

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.