It's a nice effort, but I'd recommend some changes to the code to make sure that proper tlhIngan Hol words render correctly.
Currently, it goes letter by letter, and thereby turns the five-phoneme word tlhIngan
into the eight-phoneme word tlHInghan
, and the word tIgh
A fairly simple way to fix this is to introduce some dummy letters to each of the di-/trigraphs ng
. For example, å ä ö and ü don't currently map to anything, so you could follow the following algorithm:
gh -> å
ng -> ä
tlh -> ö
ch -> ü
Then map all of these characters to the corresponding pIqaD
(Note that it's important to deal with gh before
dealing with ng
. Otherwise, words like nenghep
will become malformed.
Also note that it's important this be case-sensitive: Otherwise, you'll turn tungHa'
Also, it seems the script currently doesn't handle apostrophes, and that it treats q
as the same symbols.
So what would Chugosh, pronounced "chew-gosh" look like in the Klingon in English letters?
I'd probably recommend chu'qaS