Module::Build and Lingua::Klingon::Collate
Saturday, 20 September 2003 15:33I just wrote my first Perl module that uses Module::Build to install itself (the KoolAid I tasted at YAPC::Europe seemed good). Took me a little while to get my head wrapped around it but I finally managed to get it to do what it was supposed to.
The module I wrote was Lingua::Klingon::Collate, soon coming to a CPAN mirror near you. It'll let you sort Klingon words in Klingon alphabetical order (so "ngan" comes after "nob").
While I was at it, I also wrote Lingua::Klingon::Segment, which splits up Klingon words into syllables and letters, so now you know that "monghom" is "mon-ghom" / "m-o-n-gh-o-m" but "mongHom" is "mong-Hom" / "m-o-ng-H-o-m" (that is, the "g" belongs to a different syllable).
no subject
Date: Monday, 22 September 2003 14:20 (UTC)sorting Klingon in Excel
Date: Tuesday, 23 September 2003 03:07 (UTC)I think not directly -- I don't think Excel allows you to use alternative sort orders.
Looking through the documentation, I saw that you can add user-defined sort orders but only as a list (so you'd have to make a list with all possible Klingon words in the correct order in order to sort Klingon words -- rather self-defeating), and I also saw this:
So maybe you have to change your Windows installations's regional settings to "tlhIngan Hol (Qo'noS)" :p
You could maybe faff around with calling Perl code from VBA through the Windows scripting host, but I don't know how ugly it would be.
The two realistic alternatives that I see are:
I'd probably go with the second option because, while it requires more manual work, I don't have as much experience with OLE automation. (Though I have used OLE automation with Perl and Excel before... I could probably see if I could find the script to use it as an example.)
The first is more "elegant" because you don't have to remember to export the list and then import it again; you just call the Perl script and it fiddles with the spreadsheet for you.
Re: sorting Klingon in Excel
Date: Tuesday, 23 September 2003 08:38 (UTC)But I only would have to do this once; I do not need to sort the file in future, I guess, 'cause I will only add or correct single entries and thus can insert them into the correct place right from the start.
Re: sorting Klingon in Excel
Date: Tuesday, 23 September 2003 09:01 (UTC)That's probably easier than getting you to install Perl and the necessary modules :)