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.hooks import runHook, addHook, removeHook, _hooks, wrap
|
||||||
from anki.deck import newCardOrderLabels, newCardSchedulingLabels
|
from anki.deck import newCardOrderLabels, newCardSchedulingLabels
|
||||||
from anki.deck import revCardOrderLabels, failedCardOptionLabels
|
from anki.deck import revCardOrderLabels, failedCardOptionLabels
|
||||||
import anki.latex
|
|
||||||
import anki.lang
|
import anki.lang
|
||||||
import anki.deck
|
import anki.deck
|
||||||
import ankiqt
|
import ankiqt
|
||||||
|
@ -2696,8 +2695,7 @@ support plugin supports this now. Please download the latest version."""))
|
||||||
if path is None:
|
if path is None:
|
||||||
path = self.pluginsFolder()
|
path = self.pluginsFolder()
|
||||||
if sys.platform == "win32":
|
if sys.platform == "win32":
|
||||||
# reuse our process handling code from latex
|
anki.utils.call(["explorer", path.encode(
|
||||||
anki.latex.call(["explorer", path.encode(
|
|
||||||
sys.getfilesystemencoding())],
|
sys.getfilesystemencoding())],
|
||||||
wait=False)
|
wait=False)
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -174,7 +174,7 @@ class Preferences(QDialog):
|
||||||
def onOpenBackup(self):
|
def onOpenBackup(self):
|
||||||
path = os.path.join(self.config.configPath, "backups")
|
path = os.path.join(self.config.configPath, "backups")
|
||||||
if sys.platform == "win32":
|
if sys.platform == "win32":
|
||||||
anki.latex.call(["explorer", path.encode(
|
anki.utils.call(["explorer", path.encode(
|
||||||
sys.getfilesystemencoding())],
|
sys.getfilesystemencoding())],
|
||||||
wait=False)
|
wait=False)
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -5,7 +5,6 @@ from PyQt4.QtGui import *
|
||||||
from PyQt4.QtCore import *
|
from PyQt4.QtCore import *
|
||||||
|
|
||||||
from anki.sound import playFromText, stripSounds
|
from anki.sound import playFromText, stripSounds
|
||||||
from anki.latex import renderLatex, stripLatex
|
|
||||||
from ankiqt import ui
|
from ankiqt import ui
|
||||||
|
|
||||||
import re, os, sys, urllib, time
|
import re, os, sys, urllib, time
|
||||||
|
@ -237,7 +236,6 @@ def restoreHeader(widget, key):
|
||||||
widget.restoreState(ankiqt.mw.config[key])
|
widget.restoreState(ankiqt.mw.config[key])
|
||||||
|
|
||||||
def mungeQA(deck, txt):
|
def mungeQA(deck, txt):
|
||||||
txt = renderLatex(deck, txt)
|
|
||||||
txt = stripSounds(txt)
|
txt = stripSounds(txt)
|
||||||
# osx webkit doesn't understand font weight 600
|
# osx webkit doesn't understand font weight 600
|
||||||
txt = re.sub("font-weight:.+?;", "font-weight: bold;", txt)
|
txt = re.sub("font-weight:.+?;", "font-weight: bold;", txt)
|
||||||
|
|
|
@ -6,7 +6,6 @@ from PyQt4.QtGui import *
|
||||||
from PyQt4.QtCore import *
|
from PyQt4.QtCore import *
|
||||||
import anki, anki.utils
|
import anki, anki.utils
|
||||||
from anki.sound import playFromText
|
from anki.sound import playFromText
|
||||||
from anki.latex import renderLatex, stripLatex
|
|
||||||
from anki.utils import stripHTML
|
from anki.utils import stripHTML
|
||||||
from anki.hooks import runHook, runFilter
|
from anki.hooks import runHook, runFilter
|
||||||
from anki.media import stripMedia
|
from anki.media import stripMedia
|
||||||
|
|
|
@ -595,7 +595,7 @@
|
||||||
<string>Card List</string>
|
<string>Card List</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="shortcut">
|
<property name="shortcut">
|
||||||
<string>Ctrl+L</string>
|
<string>Ctrl+Shift+L</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="actionFindDuplicates">
|
<action name="actionFindDuplicates">
|
||||||
|
|
Loading…
Reference in a new issue