diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py index 403aada9c..b7d2810e9 100755 --- a/ankiqt/ui/main.py +++ b/ankiqt/ui/main.py @@ -22,7 +22,6 @@ from anki.stdmodels import BasicModel from anki.hooks import runHook, addHook, removeHook, _hooks, wrap from anki.deck import newCardOrderLabels, newCardSchedulingLabels from anki.deck import revCardOrderLabels, failedCardOptionLabels -import anki.latex import anki.lang import anki.deck import ankiqt @@ -2696,8 +2695,7 @@ support plugin supports this now. Please download the latest version.""")) if path is None: path = self.pluginsFolder() if sys.platform == "win32": - # reuse our process handling code from latex - anki.latex.call(["explorer", path.encode( + anki.utils.call(["explorer", path.encode( sys.getfilesystemencoding())], wait=False) else: diff --git a/ankiqt/ui/preferences.py b/ankiqt/ui/preferences.py index 7327f52f6..af2902b4c 100644 --- a/ankiqt/ui/preferences.py +++ b/ankiqt/ui/preferences.py @@ -174,7 +174,7 @@ class Preferences(QDialog): def onOpenBackup(self): path = os.path.join(self.config.configPath, "backups") if sys.platform == "win32": - anki.latex.call(["explorer", path.encode( + anki.utils.call(["explorer", path.encode( sys.getfilesystemencoding())], wait=False) else: diff --git a/ankiqt/ui/utils.py b/ankiqt/ui/utils.py index 199d2ddd7..97742eb2b 100644 --- a/ankiqt/ui/utils.py +++ b/ankiqt/ui/utils.py @@ -5,7 +5,6 @@ from PyQt4.QtGui import * from PyQt4.QtCore import * from anki.sound import playFromText, stripSounds -from anki.latex import renderLatex, stripLatex from ankiqt import ui import re, os, sys, urllib, time @@ -237,7 +236,6 @@ def restoreHeader(widget, key): widget.restoreState(ankiqt.mw.config[key]) def mungeQA(deck, txt): - txt = renderLatex(deck, txt) txt = stripSounds(txt) # osx webkit doesn't understand font weight 600 txt = re.sub("font-weight:.+?;", "font-weight: bold;", txt) diff --git a/ankiqt/ui/view.py b/ankiqt/ui/view.py index 629d93909..b7afd2fa0 100644 --- a/ankiqt/ui/view.py +++ b/ankiqt/ui/view.py @@ -6,7 +6,6 @@ from PyQt4.QtGui import * from PyQt4.QtCore import * import anki, anki.utils from anki.sound import playFromText -from anki.latex import renderLatex, stripLatex from anki.utils import stripHTML from anki.hooks import runHook, runFilter from anki.media import stripMedia diff --git a/designer/cardlist.ui b/designer/cardlist.ui index cb75886e3..5d9551fe8 100644 --- a/designer/cardlist.ui +++ b/designer/cardlist.ui @@ -595,7 +595,7 @@ Card List - Ctrl+L + Ctrl+Shift+L