[96702] in tlhIngan-Hol

home help back first fref pref prev next nref lref last post

Re: [Tlhingan-hol] Mangling Klingon to make it sortable

daemon@ATHENA.MIT.EDU (Robyn Stewart)
Sat Jul 13 14:44:57 2013

From: "Robyn Stewart" <robyn@flyingstart.ca>
To: "tlhIngan Hol mailing list" <tlhIngan-Hol@kli.org>
In-Reply-To: <51E03A95.7040806@trimboli.name>
Date: Sat, 13 Jul 2013 11:44:32 -0700
Errors-To: tlhingan-hol-bounces@stodi.digitalkingdom.org

But when changing, make your changes case-sensitive, or else you will change
mangHom to mangom to manzom and then mis-restore it  to mangom. There are a
lot of problems like that that can occur if you don't pay careful attention
to substitution order, e.g. if you restore nz-->ng before you restore g -->
gh, then mangghom-->manzgom-->manghghom.

-----Original Message-----
From: David Trimboli [mailto:david@trimboli.name] 
Sent: July 12, 2013 10:19 AM
To: tlhingan-hol@stodi.digitalkingdom.org
Subject: Re: [Tlhingan-hol] Mangling Klingon to make it sortable

On 7/12/2013 1:17 PM, David Trimboli wrote:
> On 7/12/2013 1:00 PM, Phil Reynolds wrote:
>> I am looking for a way to take Klingon words and - possibly 
>> reversibly
>> - mangle them in some way to make most non-Klingon-aware software 
>> able to sort them into proper Klingon alphabetical order.
>
> Assuming "'" comes before "a" in your character set...
>
> Change "gh" to "g"
> Change "ch" to "c"
> Change "'" to "z"
> Change "ng" to "nz"
> Change "tlh" to "tz"
> Change "Q" to "qz"
>
> Now sort, then undo those conversions.

Oh, and make your sort case-insensitive.

--
SuStel
http://www.trimboli.name/

_______________________________________________
Tlhingan-hol mailing list
Tlhingan-hol@stodi.digitalkingdom.org
http://stodi.digitalkingdom.org/mailman/listinfo/tlhingan-hol


_______________________________________________
Tlhingan-hol mailing list
Tlhingan-hol@stodi.digitalkingdom.org
http://stodi.digitalkingdom.org/mailman/listinfo/tlhingan-hol

home help back first fref pref prev next nref lref last post