From c5bbdd194caa3ab7fdb31eca8739b0bfec06ecd7 Mon Sep 17 00:00:00 2001 From: UndeadMaelys Date: Wed, 4 May 2022 21:38:52 +0200 Subject: [PATCH] r2h2 fix m in valid position not account by r2h2 --- R2H2.lua | 8 ++++---- test.html | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/R2H2.lua b/R2H2.lua index 19c0c7c..73c80bb 100644 --- a/R2H2.lua +++ b/R2H2.lua @@ -35,9 +35,9 @@ vowel_table = {"a","e","i","o","u"} symbol_vowel = {"","","","",""} symbol_extending_vowel = {"","","","",""} -- consonants -consonant_table = {"g","sh","r","ny","ch","n","y","f","t","k","w","l","p","b","d","h"} -symbol_consonant = {"","","","","","","","","","","","","","","",""} -symbol_extending_consonant = {"","","","","","","","","","","","","","","",""} +consonant_table = {"g","sh","r","ny","ch","n","y","f","t","k","w","l","p","b","d","h","m"} +symbol_consonant = {"","","","","","","","","","","","","","","","",""} +symbol_extending_consonant = {"","","","","","","","","","","","","","","","",""} -- composites composing_consonant_table = {"g","sh","r","ny","ch","m","y","f","t","k","w","l","p","b","d","h"} symbol_composite = { @@ -98,8 +98,8 @@ function convertToHeonian(text) -- adjust i if string.sub(text,i,i) == " " then transcribed_text = transcribed_text .. " " + new_syllable = true end - new_syllable = true i = i + 1 pos = i char_step = false diff --git a/test.html b/test.html index 1ecc980..ccb47e5 100644 --- a/test.html +++ b/test.html @@ -99,7 +99,7 @@ LU'NYA relfur chu mya pu yu mya relfur lup apatka'nya faka'nya'pash ponme mya wawote polika'nya peekaka'nya'pash.

-  m   m      m    +              

@@ -141,7 +141,7 @@ mishi'pash!! relfurla mya ton polika'nya yu meluton ka'nya!

- m     ! +      !

balfurla yu dra? @@ -162,7 +162,7 @@ ESH'NYUI relfurla yu esh'dre mya ton polika'nya yu puroton ka'nya~

-   m     ~ +        ~

relfur yu shi'ro'bae'pu yu pon'ya ka'nya~ @@ -240,7 +240,7 @@ ESH'NYUI uu, relfur yu naomiminku mya mimifuku mya ton ka'nya...

-,    m  m  . +,        .

relfur yu guraton to meluton mimifuku.. @@ -273,7 +273,7 @@ ishi-balfur yu mishi'pash! balfur chu mya arilaen yu en ka'nya peekaka'nya fa'dre?

-  m      ? +        ?