noword / mdxconverter Goto Github PK
View Code? Open in Web Editor NEWgenerate a html or pdf or jpg file for specific words through a mdx dirctionary
generate a html or pdf or jpg file for specific words through a mdx dirctionary
请教:发现打印出来的pdf字体偏小影响阅读,有没有办法设定导出的字体大小来着?是在词典的css中修改吗》
找了一圈wkhtmltopdf也没有找到怎么设置的方法。
sample.pdf
如果mdx没有css,则会出现如下错误:
需要手动把这一行注释掉才可以使用:
案例 mdx:
链接: https://pan.baidu.com/s/1W9WZgw9gtsG5z1jaNrajnw 提取码: t715
带有图片的词典,好像大都无法正常提取:
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xd2 in position 52: invalid continuation byte
请教这个报错为什么在转化为html的时候不出现,但在转化为pdf的时候一定出现?
通过二分法查找bug,发现该脚本无法识别词组。比如"accroding to "
123.txt
词典用的是朗文词典,输入已经上传,invalid words无效
ValueError: Cannot insert None into a tag.
我在运行mdxconverter 事没有 mdcit-query 这个module
于是运行 pip install mdict-query
但是显示
ERROR: Could not find a version that satisfies the requirement mdict_query (from versions: none)
ERROR: No matching distribution found for mdict_query
我看了一下,这个module很久没有更新了,可能和这个有关。
不知道如何解决这个问题,海请赐教。
谢谢
Microsoft Windows [版本 10.0.17763.107]
(c) 2018 Microsoft Corporation。保留所有权利。
C:\Users\Administrator>cd C:\Users\Administrator\Desktop\MdxConverter_v0.0.7L6mp3
C:\Users\Administrator\Desktop\MdxConverter_v0.0.7L6mp3>MdxConverter "LDOCE6++ En-Cn V2-19.mdx" "123.txt" "1.pdf"
基础词 Unit 22
coronavirus
WARNING: "coronavirus" not found
Traceback (most recent call last):
File "MdxConverter.py", line 275, in
File "MdxConverter.py", line 231, in mdx2pdf
File "MdxConverter.py", line 215, in mdx2html
File "MdxConverter.py", line 100, in merge_css
File "MdxConverter.py", line 86, in get_css
AttributeError: 'NoneType' object has no attribute 'link'
[11528] Failed to execute script MdxConverter
C:\Users\Administrator\Desktop\MdxConverter_v0.0.7L6mp3>
我使用Releases v0.0.7 将案例输出为pdf,出现了如下错误:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.