fixed r2h2mod
This commit is contained in:
11
R2H2.lua
11
R2H2.lua
@@ -62,11 +62,6 @@ function convertToHeonian(text)
|
||||
if v == "-c" or v == "--copy" then autocopy = true end
|
||||
end
|
||||
|
||||
-- evaluate conditions that cancel the script
|
||||
if text == "" then
|
||||
step = false
|
||||
end
|
||||
|
||||
-- if its necessary to run the script, then we continue :D
|
||||
if step then
|
||||
-- prepare text
|
||||
@@ -106,7 +101,9 @@ function convertToHeonian(text)
|
||||
char_step = false
|
||||
end
|
||||
-- init checkup
|
||||
if string.sub(text,i,i) == "." then -- this forces the new syllable, since . is the syllable separator, also skips the symbol and repositions
|
||||
if string.sub(text,i,i) == "."
|
||||
or string.sub(text,i,i) == "'"
|
||||
or string.sub(text,i,i) == "’" then -- this forces the new syllable, since . is the syllable separator, also skips the symbol and repositions
|
||||
-- debug log
|
||||
if debug then print("") end
|
||||
if debug then print(" @[".. tostring(i).."]"..debug_s.." new syllable MARKER found") end
|
||||
@@ -227,7 +224,7 @@ function convertToHeonian(text)
|
||||
-- debug log
|
||||
if debug then print(" [!] no idea; moving on to next [".. pos + 1 .."]") end
|
||||
-- no idea
|
||||
-- transcribed_text = transcribed_text .. "?"
|
||||
transcribed_text = transcribed_text .. string.sub(text,i+1,i+1)
|
||||
i = i + 1
|
||||
-- debug log
|
||||
if debug then print(" >>> adjusting by (1) from [".. pos .. "] to [".. i .. "]" ) end
|
||||
|
||||
Reference in New Issue
Block a user