mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 09:16:38 -04:00
remove obsolete latex routines, fix ctl+l shortcut in editor, update call()
This commit is contained in:
parent
464a9be86f
commit
f17eb0a836
5 changed files with 3 additions and 8 deletions
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue