[520] in tlhIngan-Hol

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

case flexibility

daemon@ATHENA.MIT.EDU (daemon@ATHENA.MIT.EDU)
Tue Apr 6 07:26:32 1993

Errors-To: tlhIngan-Hol-request@village.boston.ma.us
Errors-To: tlhIngan-Hol-request@village.boston.ma.us
Errors-To: tlhIngan-Hol-request@village.boston.ma.us
Errors-To: tlhIngan-Hol-request@village.boston.ma.us
Errors-To: tlhIngan-Hol-request@village.boston.ma.us
Errors-To: tlhIngan-Hol-request@village.boston.ma.us
Errors-To: tlhIngan-Hol-request@village.boston.ma.us
Errors-To: tlhIngan-Hol-request@village.boston.ma.us
Reply-To: "Klingon Language List" <tlhIngan-Hol@village.boston.ma.us>
From: mosquito@leland.Stanford.EDU
To: "Klingon Language List" <tlhIngan-Hol@village.boston.ma.us>
Date: Tue, 6 Apr 93 02:20:54 PDT


Now I have a little sed script to convert lowercase tlhIngan Hol to
tlhIngan-cased tlhingan Hol.  Problems: if you have English text mixed
in it tries to treat it like tlhIngan Hol and there's no way to delimit
it now.  Also, Q and q need to be distinguished by the user when typed.
It also uses k internally so if your English text uses, e.g. ck, it will
change it to ch.  (the perl version only has this problem with qk).

Here's the sed script:

s/Q/qk/g;
y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/;
s/qk/Q/g;
s/d/D/g;
s/i/I/g;
s/s/S/g;
s/gh/gk/g;
s/ch/ck/g;
s/tlh/tk/g;
s/h/H/g;
s/gk/gh/g;
s/ck/ch/g;
s/tk/tlh/g;


For those of you who like perl:

#!/usr/local/bin/perl
# Modify the above to where you keep perl on your system
# If you don't have perl, build it!

while (<>) {
s/Q/qk/g;
tr/A-Z/a-z/;
s/qk/Q/g;
s/d/D/g;
s/i/I/g;
s/s/S/g;
s/([^gcl]|[^t]l)h/\1H/g;
print;
}




I would write something to change tlhIngan-case to normal-looking case
but I couldn't figure out what normal-looking case should be like.

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