parent
c3f784ce59
commit
98919edd49
2 changed files with 4 additions and 5 deletions
|
@ -26,12 +26,9 @@ import gettext
|
||||||
import os
|
import os
|
||||||
import defs
|
import defs
|
||||||
import unicodedata
|
import unicodedata
|
||||||
import gtk
|
|
||||||
|
|
||||||
if gtk.widget_get_default_direction() == gtk.TEXT_DIR_LTR:
|
# May be changed after GTK is imported
|
||||||
direction_mark = u'\u200E'
|
direction_mark = u'\u200F'
|
||||||
else:
|
|
||||||
direction_mark = u'\u200F'
|
|
||||||
|
|
||||||
def paragraph_direction_mark(text):
|
def paragraph_direction_mark(text):
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -205,6 +205,8 @@ warnings.resetwarnings()
|
||||||
if os.name == 'nt':
|
if os.name == 'nt':
|
||||||
warnings.filterwarnings(action='ignore')
|
warnings.filterwarnings(action='ignore')
|
||||||
|
|
||||||
|
if gtk.widget_get_default_direction() == gtk.TEXT_DIR_LTR:
|
||||||
|
i18n.direction_mark = u'\u200E'
|
||||||
pritext = ''
|
pritext = ''
|
||||||
|
|
||||||
from common import exceptions
|
from common import exceptions
|
||||||
|
|
Loading…
Add table
Reference in a new issue