develooper Front page | perl.gedcom | Postings from September 2011

RE: Announce: DateTime::Format::Gedcom V 1.00

Thread Previous | Thread Next
From:
Mike Hamilton
Date:
September 14, 2011 03:45
Subject:
RE: Announce: DateTime::Format::Gedcom V 1.00
Message ID:
000001cc72cb$581e2580$085a7080$@net.au
DateTime::Format::Gedcom (thanks, Ron!) is installed, and am just starting to play with it. I have a plethora of torture tests in the form of weird and wonderful dates in GEDCOMs from my far-flung and less than computer-literate umpteenth cousins.

Am a little surprised by the "month_names_in_" (Dutch, French, Gregorian, Hebrew, Julian) stuff, with the language name hard-coded.

Wikipedia says (http://en.wikipedia.org/wiki/Lists_of_languages) :

"According to SIL International, there are 6,309 spoken languages, as cataloged and described in the book Languages of the World (ISBN 0883128152). The International Organization for Standardization (ISO) assigns codes for most languages: for example, ISO 639-3 uses "eng" for English and "apk" for Plains Apache, one of the five Apache languages of North America."

Of course, one would only ever encounter a tiny fraction of those 6,309 languages. But (say) you want Spanish, German, Italian; this would require month_names_in_spanish, month_names_in_german, month_names_in_italian, which seems rather silly.

So, my very simple suggestion is that month_names_in_dutch(), month_names_in_french() [...] be replaced with month_names_in(language).

Mike


-----Original Message-----
From: Ron Savage [mailto:ron@savage.net.au] 
Sent: Wednesday, 14 September 2011 11:12 AM
To: List Gedcom
Subject: Announce: DateTime::Format::Gedcom V 1.00

Hi Folks

Released to CPAN.

Docs: http://savage.net.au/Perl-modules/html/DateTime/Format/Gedcom.html

-- 
Ron Savage
http://savage.net.au/
Ph: 0421 920 622



Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About