finalion / WordQuery

word fast-querying addon for anki
https://ankiweb.net/shared/info/775418273
GNU General Public License v3.0
291 stars 61 forks source link

如何使用LDOCE6.py 文件? #88

Open sgz886 opened 6 years ago

sgz886 commented 6 years ago

我将LDOCE6.py里的词典路径改为本地正确路径后,字典中并不出现“本地词典-LDOCE6”的项目。 请问是还有其他地方要配置、修改代码,还是我的mdx的文件的问题? 我的mdx文件是掌上百科论坛下载的英英词典,不是双解词典。 链接

#-*- coding:utf-8 -*-
import re

from aqt.utils import showInfo, showText
from .base import MdxService, export, register, with_styles

# path = u'/Users/yu/Documents/english study/mdx/LDOCE6双解/L6mp3.mdx'
path = u'C:\\文档\\mdx\\LDOCE6.mdx'

@register(u'本地词典-LDOCE6')
wenping-zou commented 4 years ago

要把path写在#前面那一行,如果还不行的话,试试用的ta的L6mp3.mdx和L6mp3.mdd path = u'C:\文档\mdx\LDOCE6.mdx'

path = u'/Users/yu/Documents/english study/mdx/LDOCE6双解/L6mp3.mdx'