[84288] in tlhIngan-Hol
Re: Klingon phonology in regular expressions
daemon@ATHENA.MIT.EDU (David Trimboli)
Tue Mar 25 13:07:45 2008
Date: Tue, 25 Mar 2008 13:05:47 -0400
From: David Trimboli <david@trimboli.name>
In-reply-to: <47E8FBF2.70700@trimboli.name>
To: tlhingan-hol@kli.org
Errors-to: tlhingan-hol-bounce@kli.org
Reply-to: tlhingan-hol@kli.org
I've managed to convert ta' Hol to Morskan successfully, with the
exception of the suffix -oy. The key is that, except for words with -oy,
any consonant followed by a vowel must be the start of a syllable. For
anyone interested, here's how to do it with regular expression matches.
First pass:
match: H(?=a|e|I|o|u)
replacement: h
match: tlh(?=a|e|I|o|u)
replacement: ghl
Second pass:
match: tlh
replacement: ts
match: H
replacement:
Third pass:
match: Q(?=a|e|I|o|u)
replacement: H
I haven't figured out yet how to match final tlh or H followed by -oy
without confusing the detection of initial tlh or H. Any suggestions on
how to detect the -oy suffix instead of a word with oy in it?
--
SuStel
Stardate 8232.0