This commit is contained in:
恍兮惚兮 2024-07-15 17:21:13 +08:00
parent bcf49962d9
commit a913314951
2 changed files with 9 additions and 1 deletions

View File

@ -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:

View File

@ -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 = " "