A Dictionary of Chinese Buddhist Terms

转自pdf,词条数16,688
A Dictionary of chinese buddhist terms. 中国佛教术语词典 | William Edward Soothill, Lewis Hodous | download (b-ok.global)
A Dictionary of Chinese Buddhist Terms.mdx (1.0 MB)

4 Likes

希望传授pdf转制mdx的方法,多谢了!

这个pdf是纯文字的,转text,然后修一下换行和空格,再转成mdict的text格式。

您好,多谢您的回复。希望能够详细些,比如用什么软件转为text,修改换行和空格需要用到什么正则表达式替换,怎样转为mdict的text格式。

转为txt我是手动复制的,试过用acrobat,转完有些符号变了。
修换行用的是python,我不太会正则。因为这是汉英词典,按行读取,如果一行中有英文,则该行属于内容,如果一行全是中文,该行可能是词头,如果该行 的上一行和下一行都包含英文,则该行一定是词头。如果连续两行都全是中文,则第一行是上一词条的内容,第二行是下一词条。
mdict格式的text就是一行词头,从第2行开始是内容,一直到</>为止,样例在mdxbuilder中有。

i recommend the version i have because it also includes Sanskrit words.

it has merged words like ‘thenirvana’ instead of 'the nirvana" but it doesn’t affect legibility.

the data seems pulled from the website version, so font tags were a mess. i removed much of it to keep it clean. and auto-added links to all colored chinese words (many of which don’t have headword entries). it’s ugly but usable.
the website version might have different content. I recall it used to be updated. the website is accessible through a passcode, which i’ve forgotten. in any case, this has more entries.
entries: 16792

Soothill-Hodous Dictionary of Chinese Buddhist Terms (DDBC version).mdx (1.2 MB) Soothill-Hodous Dictionary of Chinese Buddhist Terms (DDBC version).mdx.zip (1.1 MB)

links with no headword entries.txt (90.0 KB)

2 Likes

感谢制作分享,你的版本效果要更好。