From f54c2f78350822837d4909e47be4095e8c5a985b Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 29 Jan 2013 06:40:33 +0900 Subject: [PATCH] qt4.6 ruby workaround --- aqt/qt.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aqt/qt.py b/aqt/qt.py index 0a5626c98..ee103235d 100644 --- a/aqt/qt.py +++ b/aqt/qt.py @@ -34,3 +34,7 @@ qtconf = pyqtconfig.Configuration() qtmajor = (qtconf.qt_version & 0xff0000) >> 16 qtminor = (qtconf.qt_version & 0x00ff00) >> 8 +# qt4.6 doesn't support ruby tags +if qtmajor <= 4 and qtminor <= 6: + import anki.template.furigana + anki.template.furigana.ruby = r'\2\1'