We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can you give me more detail about mdx file format ? I wanner parser it by Objective-c or Swift.
Objective-c
Swift
The text was updated successfully, but these errors were encountered:
可以参考他 github/zhansliu/writemdict 的文档,或者 python analysis
mdx有两级的二分法索引结构。搜索 keyword 时先搜索第一级,第一级由所有词块的块首、块尾单词组成,每个词块包含2~3k单词,但是搜索第一级索引时,词块数据(key block)并未加载,而是加载了构成第一级索引的词块信息数据(key info block)。
搜索第一级得到搜索词可能落于哪个词块,然后加载它,再在这2k单词内进行二分搜索(参考getEntryAt、Lookup)。搜索到具体词条后,会得到词条解释内容的文件偏移。
所有的解释内容也分成两级结构,第一级是记录块信息(record block info),第二级是记录块本身(record block)。各个信息块大小固定(4 * 2或8 * 2字节),看参考图,记录块信息只有两个信息:所对应记录块的存储(压缩)大小、解压大小。程序把所有信息块扫入解析,之后就可以按其信息寻址,找到解释内容(参考 getRecordData、getRecordAt)。
各个记录块按顺序记录,一个记录块可包含整数多个词条内容。
num(词条信息块)==num(词条块)==var0
num(记录信息块)==num(记录块)==var1
var0 != var1
数值都由压制时指定的期望区块大小决定。
Sorry, something went wrong.
No branches or pull requests
Can you give me more detail about mdx file format ?
I wanner parser it by
Objective-c
orSwift
.The text was updated successfully, but these errors were encountered: