readmdict (simple repacking of readmdict in mdict-analysis)
Project description
Faster-readmdict
Use Cython to speed up readmdict.py
Original edition:
❯ time python -m readmdict ./concise-enhanced.mdx
======== b'./concise-enhanced.mdx' ========
Number of Entries : 3402564
GeneratedByEngineVersion : 2.0
RequiredEngineVersion : 2.0
Format : Html
KeyCaseSensitive : No
StripKey : Yes
Encrypted : 2
Description : <font size=5 color=red>简明英汉字典增强版:20170605<br>
(数据:http://github.com/skywind3000/ECDICT)<br>
1. 开源英汉字典:MIT / CC 双协议<br>
2. 标注牛津三千关键词:音标后 K字符<br>
3. 柯林斯星级词汇标注:音标后 1-5的数字<br>
4. 标注 COCA/BNC 的词频顺序<br>
5. 标注考试大纲信息:中高研四六托雅 等<br>
</font>
Title : 简明英汉字典增强版 - CSS
Encoding : UTF-8
CreationDate : 2017-6-4
Compact : No
Compat : No
Left2Right : Yes
DataSourceFormat : 107
StyleSheet :
python -m readmdict ./concise-enhanced.mdx 4.99s user 0.28s system 99% cpu 5.275 total
Ours:
❯ time python ./readmdict/__main__.py ../ecdict-mdx-style-28/concise-enhanced.mdx
======== b'../ecdict-mdx-style-28/concise-enhanced.mdx' ========
Number of Entries : 3402564
GeneratedByEngineVersion : 2.0
RequiredEngineVersion : 2.0
Format : Html
KeyCaseSensitive : No
StripKey : Yes
Encrypted : 2
Description : <font size=5 color=red>简明英汉字典增强版:20170605<br>
(数据:http://github.com/skywind3000/ECDICT)<br>
1. 开源英汉字典:MIT / CC 双协议<br>
2. 标注牛津三千关键词:音标后 K字符<br>
3. 柯林斯星级词汇标注:音标后 1-5的数字<br>
4. 标注 COCA/BNC 的词频顺序<br>
5. 标注考试大纲信息:中高研四六托雅 等<br>
</font>
Title : 简明英汉字典增强版 - CSS
Encoding : UTF-8
CreationDate : 2017-6-4
Compact : No
Compat : No
Left2Right : Yes
DataSourceFormat : 107
StyleSheet :
python ./readmdict/__main__.py ../ecdict-mdx-style-28/concise-enhanced.mdx 3.32s user 0.29s system 99% cpu 3.608 total
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
faster_readmdict-0.1.1.tar.gz
(118.3 kB
view hashes)
Built Distributions
Close
Hashes for faster_readmdict-0.1.1-cp312-cp312-macosx_14_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb44b2ca6526cde2e29a7c5bac95bd1f03d8ae0b776ce5e26b3754a6b25918e4 |
|
MD5 | 9f7ef0a5d919d12242d73b669058b423 |
|
BLAKE2b-256 | a14fe549852594ebb6b11ed2fa48953ca261d15e2950955389f2847a4569f72c |
Close
Hashes for faster_readmdict-0.1.1-cp311-cp311-manylinux_2_39_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc2feeeefcbf8b273e428006b8e29c644d6bb1f863c367ad3959e7b33b867fc0 |
|
MD5 | 94479b275a4d4506a688da51d0e1400e |
|
BLAKE2b-256 | f1f626ff988032d2a9cc4838cca2351d00048c93de1ca9ddd62be9f0db2e4e58 |
Close
Hashes for faster_readmdict-0.1.1-cp310-cp310-manylinux_2_35_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4d432ed1571d14504f4e998ac6c576075c2dbc50e2f36e3758a474a5f9e7246 |
|
MD5 | 8a3f7807e74a1c1ad02b2a315ba6d11f |
|
BLAKE2b-256 | d664433e5395541fac64bfaeaf21dcdd0b7708a72796d8aaeb9d5a32885cdb88 |