remove obsolete latex routines, fix ctl+l shortcut in editor, update call()

This commit is contained in:
Damien Elmes 2010-12-11 01:47:51 +09:00
parent 464a9be86f
commit f17eb0a836
5 changed files with 3 additions and 8 deletions

View file

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

View file

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

View file

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

View file

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

View file

@ -595,7 +595,7 @@
<string>Card List</string>
</property>
<property name="shortcut">
<string>Ctrl+L</string>
<string>Ctrl+Shift+L</string>
</property>
</action>
<action name="actionFindDuplicates">