mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 00:24:13 +08:00
fix
This commit is contained in:
parent
b2f72930d5
commit
d07893a794
@ -62,9 +62,8 @@ class base(QLabel):
|
||||
text = self.text()
|
||||
isarabic = lambda char: (ord(char) >= 0x0600 and ord(char) <= 0x06E0)
|
||||
isfirstara = lambda text: len(text) and isarabic(text[0])
|
||||
isarabicx = any(isarabic(char) for char in text) and isfirstara(text)
|
||||
|
||||
if isarabicx:
|
||||
if isfirstara(text):
|
||||
self.movedx -= self.width()
|
||||
self.movedx += dx
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user