docs and config

This commit is contained in:
St.Huang 2018-07-10 14:37:23 +08:00
parent 56cd63988e
commit 2ceddbdfca
4 changed files with 7 additions and 6 deletions

BIN
docs/images/edit_addon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@ -19,6 +19,11 @@
from anki.hooks import addHook from anki.hooks import addHook
############## other config here ##################
shortcut = 'Ctrl+Q'
LDOCE6_PATH = u'D:\\mdx_server\\mdx\\LDOCE6.mdx'
###################################################
def start_here(): def start_here():
""" """
@ -28,11 +33,6 @@ def start_here():
import fastwq import fastwq
############## other config here ##################
# shortcut
shortcut = 'Ctrl+Q'
###################################################
fastwq.config.read() fastwq.config.read()
if not fastwq.have_setup: if not fastwq.have_setup:
fastwq.config_menu() fastwq.config_menu()

View File

@ -1,8 +1,9 @@
#-*- coding:utf-8 -*- #-*- coding:utf-8 -*-
import re import re
import FastWQ
from .base import MdxService, export, register, with_styles, parseHtml from .base import MdxService, export, register, with_styles, parseHtml
PATH = u'D:\\mdx_server\\mdx\\LDOCE6.mdx' PATH = FastWQ.LDOCE6_PATH
VOICE_PATTERN = r'<a href="sound://([\w/]+\w*\.mp3)"><img src="img/spkr_%s.png"></a>' VOICE_PATTERN = r'<a href="sound://([\w/]+\w*\.mp3)"><img src="img/spkr_%s.png"></a>'
MAPPINGS = [ MAPPINGS = [