这是什么先进的东西?学习一下!
没必要争论这个,本质上都是对htm的打包而已。关键是词库的质量。
争论为争个高下,健康的讨论是互相学习,还是有区别的
Just markdown formatted text, with keyword marked like “####keyword” to facilitate search. Then the file is xz-compressed.
For files less than 15M (about 60M markdown text, which is enough for most dictionaries), xzless is fast enough to search.
For larger files like OED, and wikipedia, an extra index file is needed.
也就说,你把每个词条分割成独立的md文件(打包在一起),然后对这些独立的md文件用命令行进行检索;检索方式,可以直接对全文检索,也可以用一个特制的 index 文件进行检索,是这个意思吗?
Just one big md file with seperate media files. Ex. soed6 is a single 54M md file (uncompressed).
所以你至少在PC上不用任何词典软件,并把mdx转成md格式,然后用你的语法强大的命令行直接检索这个打包的大型md?
Just compressed with xz, not packaged. For mobile devices, it is much easier than PC with termux.
明白了,谢谢!Linux爱好者都这么讨厌鼠标和GUI啊,命令行通吃
When images are needed, a browser shows the proper part of huge md file with hugetext viewer.
容我再冒昧追问一句,你现在都不用mdx和词典软件也不看chm格式的文档吗?
I used CHMs and still kept these books/documents.
MDXs are converted to md files, for OED & wikipedia, extra index file is still needed, a kind of dictionary tool is a must (I have my own tool called tdict, brotli-compressed md file with index file). Brotli is faster than xz to decompress.
For picture dictionary, I kept their original formats, pdf or djvu. Just directly jump to the right page automatically with other search tool like “look” (extra file to keep keyword-pageNum mapping).
在词典软件中:输入单词 > 下方随即出现匹配单词动态列表 > 回车后右边窗口出现解释 > 键盘上下键在动态列表上滚动 > 右边窗口随即自动更新为相应单词的释义。
这些基本效果,你用md都能实现?或者你有更好的效果?方便截个图看看你查词时的工作状态吗?
If the queried word is available, the result appears directly. If not, the neighbor candidates are shown (infinitely scrollable and editable) , Click the right word to show the result. No realtime explanation when scrolling. Anyway, the tool is only 21K.
The attached file is for the wrong word “hii”.
-
你这个单词匹配列表是动态实时的,随输入状态变化的吗?还是输入“hii”然后回车后出现的结果?
-
没有实时显示释义也行。那按下回车后,单词列表就消失了,页面上换成显示释义,是吗?
- 你这个工具用什么写的?
tdict for android is available here (The second version is tdict that needs termux, the first version tdict_loc can be run in any android device without any prerequisite):
https://uwebzh.netlify.app/zh/tools/index.html
- Realtime prompt is only available when the typed word is not available (after hit enter).
- Yes
- C
你这个C写的工具编译完才21K是够小的,根据你描述的效果看,说实话离实用还有相当的距离。
如果能编辑就好了
You can edit it directly with uncompressed version.