查看: 984|回复: 9
打印 上一主题 下一主题

[求助] Chambers Dictionary of Literary Characters; Need suggestions about making mdx

[复制链接]
  • TA的每日心情
    郁闷
    2023-2-15 01:29
  • 签到天数: 566 天

    [LV.9]以坛为家II

    46

    主题

    1086

    回帖

    5万

    积分

    状元

    Rank: 9Rank: 9Rank: 9

    积分
    56254

    QQ 章灌水大神章笑傲江湖章

    跳转到指定楼层
    1
    发表于 2018-11-5 13:56:25 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
    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...

    2018-11-05.png (90.03 KB, 下载次数: 3)

    Screenshot from MDict for PC

    Screenshot from MDict for PC

    Chambers Dictionary of Literary Characters.zip

    153.67 KB, 下载次数: 31, 下载积分: 米 -5 粒

    评分

    1

    查看全部评分

    本帖被以下淘专辑推荐:

  • TA的每日心情
    慵懒
    2019-1-23 10:04
  • 签到天数: 122 天

    [LV.7]常住居民III

    12

    主题

    641

    回帖

    3万

    积分

    状元

    Rank: 9Rank: 9Rank: 9

    积分
    39986
    推荐
    发表于 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:
    1. <dfn>(.*?)([0-9])\n
    复制代码
    with
    1. <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.



    评分

    2

    查看全部评分

  • TA的每日心情
    慵懒
    2018-11-8 10:50
  • 签到天数: 29 天

    [LV.4]偶尔看看III

    5

    主题

    99

    回帖

    2171

    积分

    禁止发言

    积分
    2171
    2
    发表于 2018-11-5 16:14:01 | 只看该作者
    楼主用英语写的introduction有不少的语法错误。
  • TA的每日心情
    奋斗
    2021-4-4 16:28
  • 签到天数: 353 天

    [LV.8]以坛为家I

    6

    主题

    555

    回帖

    1万

    积分

    状元

    Rank: 9Rank: 9Rank: 9

    积分
    10889

    QQ 章

    3
    发表于 2018-11-5 18:37:10 来自手机 | 只看该作者
    楼主是外国人吗?。。。

    点评

    楼主是外国人,可以用中文回帖,楼主再用Google翻译翻译过去就行了  发表于 2018-11-5 18:52
  • TA的每日心情
    郁闷
    2023-2-15 01:29
  • 签到天数: 566 天

    [LV.9]以坛为家II

    46

    主题

    1086

    回帖

    5万

    积分

    状元

    Rank: 9Rank: 9Rank: 9

    积分
    56254

    QQ 章灌水大神章笑傲江湖章

    4
     楼主| 发表于 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.
  • TA的每日心情
    郁闷
    2023-2-15 01:29
  • 签到天数: 566 天

    [LV.9]以坛为家II

    46

    主题

    1086

    回帖

    5万

    积分

    状元

    Rank: 9Rank: 9Rank: 9

    积分
    56254

    QQ 章灌水大神章笑傲江湖章

    5
     楼主| 发表于 2018-11-5 20:27:32 | 只看该作者
    在职研究生 发表于 2018-11-5 16:14
    楼主用英语写的introduction有不少的语法错误。

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

    该用户从未签到

    4

    主题

    650

    回帖

    4482

    积分

    贡士

    Rank: 6Rank: 6

    积分
    4482

    灌水大神章

    7
    发表于 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.
  • TA的每日心情
    开心
    2023-1-18 23:24
  • 签到天数: 211 天

    [LV.7]常住居民III

    427

    主题

    4539

    回帖

    9万

    积分

    超级版主

    Rank: 12Rank: 12Rank: 12

    积分
    92011

    灌水大神章小蜜蜂章笑傲江湖章翰林院专用章管理组专用章城管大队长

    8
    发表于 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?

    该用户从未签到

    4

    主题

    650

    回帖

    4482

    积分

    贡士

    Rank: 6Rank: 6

    积分
    4482

    灌水大神章

    9
    发表于 2018-11-7 07:03:26 | 只看该作者
    No,it is in print.