% ============================================================ % % Program to translate text from KK to the Single Written form % % ============================================================ % % The program translates from Kernewek Kemmyn to the Single % Written Form. While waiting for that form, it translates to KD. #include "orth-symbols.sfst" ALPHABET = [#sym#] #=D# = lmnr $T$ = {[#=D#][#=D#]}:{[#=D#]} $LSyllCns$ = $T$ ^-> (Syll [#LightVow#] __ (.#. | Cns)) $VghV$ = {gh}:{h} ^-> ([#Vow#] __ [#Vow#]) %$RghV$ = {rgh}:{rr} | {lgh}:{ll} ^-> ([#Vow#] __ [#Vow#]} $oe2o$ = {oe}:{oo} %^-> leftrestr _ rightrestr % Subject to restrictions%% $thdel$ = {th}:{’} ^-> (Syll [#Vow#] __ .#.) $lexical$ = ({kemmeres}:{kemeres} |\ {dehow}:{dyhow} |\ {bywnans}:{bewnans} |\ {whoer}:{whor} |\ {goer}:{gor} |\ {noeth}:{noth} |\ {Sesar}:{Cæsar}) $R$ = \ $LSyllCns$ ||\ %$yacc$ ||\ $VghV$ ||\ %$rghV$ ||\ $oe2o$ ||\ $thdel$ ||\ $lexical$ $sym$ || $R$