mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 00:24:13 +08:00
issues/770
This commit is contained in:
parent
6213fddc0e
commit
0ab032c15a
@ -42,7 +42,7 @@ class TS(basetrans):
|
|||||||
if globalconfig["premtsimiuse"]:
|
if globalconfig["premtsimiuse"]:
|
||||||
maxsim = 0
|
maxsim = 0
|
||||||
for jc in self.json:
|
for jc in self.json:
|
||||||
dis = winsharedutils.distance(content, jc)
|
dis = winsharedutils.distance_ratio(content, jc)
|
||||||
if dis > maxsim:
|
if dis > maxsim:
|
||||||
maxsim = dis
|
maxsim = dis
|
||||||
if maxsim * 100 >= globalconfig["premtsimi2"]:
|
if maxsim * 100 >= globalconfig["premtsimi2"]:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user