nhb42 发表于 2018-11-5 13:56:25

Chambers Dictionary of Literary Characters; Need suggestions about making mdx

This is my first mdx making... and I know a very little about HTML and CSS.
I have formatted all the entries from "A" (total 294 entries), Chambers Dictionary of Literary Characters contains more than 6000 entries.
I just want to know from the experts whether I am making the mdx in the right way or not...
The zip file in the attachment contains mdx, html and css file.

The things I need to know:

[*]The html tags I made are correctly placed or not.
[*]CSS is properly made or not.
[*]How can I make a case-insensitive search, because the search results only appear from uppercase typing...
[*]How can I add these html tags in multiple entries at once? Is it possible? Because the Dictionary has more than 6000 entries and it's very difficult to format every entry separately.


Here is a screenshot from MDict for PC.

Expecting help from the experts...

trivialstuff 发表于 2018-11-5 22:17:29

本帖最后由 trivialstuff 于 2018-11-6 00:09 编辑

perhaps it's just me, but I'm having a hard time exporting "Dictionary of Literary Characters.mdx" into a txt file. Both GetDict.exe and MdxExport.exe failed to do so.
Maybe there's some problem with the mdx itself, cos it shows no entries when opened in GoldenDict.


To make it case-insensitive, try using MdxBuilder 3.0 Beta2 to build your mdx (the source file should be a txt file), with "key case sensitive" unchecked.




So I just had a look at the css and html files you gave.
Your css is all good, but in terms of html, some </dfn> tags are unclosed.

By using Regular Expressions (Perl), you can edit mutiple tags at once.
To add missing </dfn> tags, you can replace:
<dfn>(.*?)()\nwith
<dfn>\1\2</dfn>\n
I'm using EmEditor and it works like a charm.


Still, there are 349 matches on <dfn> but 348 on </dfn>, which means one unclosed <dfn> slips through.
Turns out to be “<dfn>1934, et seq” at line 629. Just manually add an end tag </dfn> to this one.



I'm no expert, but hope this helps.



在职研究生 发表于 2018-11-5 16:14:01

楼主用英语写的introduction有不少的语法错误。

tangshun 发表于 2018-11-5 18:37:10

楼主是外国人吗?。。。

nhb42 发表于 2018-11-5 20:24:13

tangshun 发表于 2018-11-5 18:37
楼主是外国人吗?。。。

Yes, I'm a foreigner. I'm from Bangladesh. As kyletruman brother said I can use (and I use) Google Translate to understand Chinese or other languages.

nhb42 发表于 2018-11-5 20:27:32

在职研究生 发表于 2018-11-5 16:14
楼主用英语写的introduction有不少的语法错误。

It might be because I'm not a native English...

yuanjiaming 发表于 2018-11-6 06:48:40

Thank you very much. I've had this Dictionary for a long time. As it is in print, I've seldom used it. Now it is in mdict, it is more convenient. By the way, there is another dictionary,for imagineary places.

kyletruman 发表于 2018-11-6 09:17:56

yuanjiaming 发表于 2018-11-6 06:48
Thank you very much. I've had this Dictionary for a long time. As it is in print, I've seldom used i ...

What dictionary did you refer to? And can you upload the file?

yuanjiaming 发表于 2018-11-7 07:03:26

No,it is in print.

页: [1]
查看完整版本: Chambers Dictionary of Literary Characters; Need suggestions about making mdx