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