mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 00:24:13 +08:00
fix
This commit is contained in:
parent
17bdcf5cb2
commit
20e7106d60
@ -48,16 +48,22 @@ class hira:
|
|||||||
orig = text[start : start + l]
|
orig = text[start : start + l]
|
||||||
if origorig is None:
|
if origorig is None:
|
||||||
origorig = orig
|
origorig = orig
|
||||||
|
|
||||||
if "-" in origorig:
|
|
||||||
hira = origorig.split("-")[1]
|
|
||||||
origorig = origorig.split("-")[0]
|
|
||||||
start += l
|
start += l
|
||||||
hira = kana # .translate(self.h2k)
|
hira = kana # .translate(self.h2k)
|
||||||
|
|
||||||
if hira == "*":
|
if hira == "*":
|
||||||
hira = ""
|
hira = ""
|
||||||
# print(node.feature)
|
# print(node.feature)
|
||||||
|
|
||||||
|
if "-" in origorig:
|
||||||
|
try:
|
||||||
|
hira = origorig.split("-")[1]
|
||||||
|
origorig = origorig.split("-")[0]
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
result.append(
|
result.append(
|
||||||
{"orig": orig, "hira": hira, "cixing": pos1, "origorig": origorig}
|
{"orig": orig, "hira": hira, "cixing": pos1, "origorig": origorig}
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user