mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 16:44:13 +08:00
fix
This commit is contained in:
parent
bcf49962d9
commit
a913314951
@ -40,6 +40,14 @@ class commonbase:
|
|||||||
except:
|
except:
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
|
@property
|
||||||
|
def srclang_1(self):
|
||||||
|
try:
|
||||||
|
l = getlangsrc()
|
||||||
|
return l
|
||||||
|
except:
|
||||||
|
return ""
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def tgtlang(self):
|
def tgtlang(self):
|
||||||
try:
|
try:
|
||||||
|
@ -21,7 +21,7 @@ class baseocr(commonbase):
|
|||||||
def space(self):
|
def space(self):
|
||||||
if globalconfig["ocrmergelines"] == False:
|
if globalconfig["ocrmergelines"] == False:
|
||||||
space = "\n"
|
space = "\n"
|
||||||
elif self.srclang in ["zh", "ja", "cht"]:
|
elif self.srclang_1 in ["zh", "ja", "cht"]:
|
||||||
space = ""
|
space = ""
|
||||||
else:
|
else:
|
||||||
space = " "
|
space = " "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user