掌上百科 - PDAWIKI

 找回密码
 免费注册

QQ登录

只需一步,快速开始

查看: 1781|回复: 9

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

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

    [LV.9]以坛为家II

    发表于 2018-11-5 13:56:25 | 显示全部楼层 |阅读模式
    This is my first mdx making... and I know a very little about HTML and CSS.
      p; A; P! X! @% YI have formatted all the entries from "A" (total 294 entries), Chambers Dictionary of Literary Characters contains more than 6000 entries.
    2 F8 A( T% Y# P0 H! w4 xI just want to know from the experts whether I am making the mdx in the right way or not...
    5 H% K1 N3 l, j% w8 i/ W1 L5 _1 ZThe zip file in the attachment contains mdx, html and css file.
    " O2 D1 N- _8 Q
      n; @4 f6 L7 M9 i: @1 A+ IThe things I need to know:5 M8 K; i; t# ]4 |+ H5 M
    • 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.3 @9 a5 b5 O- E( H8 G6 A: a- D
    2 d' D3 v9 d5 t* v
    # l1 a8 j8 ]7 ]1 Q9 ?" J
    Here is a screenshot from MDict for PC.
    - r5 u" S" G" m( ]1 Z# b2 N3 W- n+ m7 n, p+ o6 p1 D; F
    Expecting help from the experts...
    # h; }  _. X- ]) K  }, M* \9 h& J7 _/ }& _; U

    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有账号?免费注册

    x

    评分

    1

    查看全部评分

    本帖被以下淘专辑推荐:

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

    [LV.7]常住居民III

    发表于 2018-11-5 22:17:29 | 显示全部楼层
    本帖最后由 trivialstuff 于 2018-11-6 00:09 编辑
    . `! D0 y4 G, z/ z) @1 W6 J! ~% @+ E! x9 J: t( a* n; C. g
    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. $ x. s: ]% g, d* }2 }2 E& _
    Maybe there's some problem with the mdx itself, cos it shows no entries when opened in GoldenDict. & }0 F" G8 H% R' X& @$ J

    " o2 K% N/ {8 J+ u
    1 n" l+ Z1 P# Q- A9 ZTo 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.
    7 s) Y% m1 U' l' g/ {/ d' a% I! y$ E4 B1 Q) _* o$ Z% O
    0 L1 i3 E$ y0 |( F5 I4 L/ ^

    : ^4 k) A3 F- @  |7 @# x7 q: ?& ]  }# K
    So I just had a look at the css and html files you gave.
    4 k0 x! S% b9 I, _) x% f$ KYour css is all good, but in terms of html, some </dfn> tags are unclosed. 1 i" x! b- c; I

    0 ~+ ~; K, ?5 Z) ?7 l5 Z* j& J+ ?5 V* zBy using Regular Expressions (Perl), you can edit mutiple tags at once.
    . j$ G- [& [' O8 |# ^- `To add missing </dfn> tags, you can replace:
    ) ~- }# k5 Z4 u( k( v- K
    1. <dfn>(.*?)([0-9])\n
    复制代码
    with6 Q$ S9 `6 \. u3 q9 P& i' h+ b& R
    1. <dfn>\1\2</dfn>\n
    复制代码
    ( z) v* Z+ |" {; T; h2 V
    I'm using EmEditor and it works like a charm.& K' l5 d: i' F8 S  \- J0 W& M
    2 h7 F8 J0 S2 |: y! y
    ' V$ |. \+ m/ n
    Still, there are 349 matches on <dfn> but 348 on </dfn>, which means one unclosed <dfn> slips through. + U; L$ \, G9 ], X1 O
    Turns out to be “<dfn>1934, et seq” at line 629. Just manually add an end tag </dfn> to this one.5 j% g. b1 w7 u/ v! @; H1 e

    6 s6 w' S1 \. \1 L
    / \5 v7 L" A! i* W% n: N) z! D- v
    I'm no expert, but hope this helps.
    & H3 |9 Z1 v7 N+ U3 n2 _0 j  K, {3 k3 B3 W& W1 _! P
    + q; s& x$ L# m6 G* `$ N; I- S
    ; o$ l9 ]9 w2 ~- f$ f

    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有账号?免费注册

    x

    评分

    2

    查看全部评分

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

    [LV.4]偶尔看看III

    发表于 2018-11-5 16:14:01 | 显示全部楼层
    楼主用英语写的introduction有不少的语法错误。
  • TA的每日心情
    奋斗
    2021-4-4 16:28
  • 签到天数: 353 天

    [LV.8]以坛为家I

    发表于 2018-11-5 18:37:10 来自手机 | 显示全部楼层
    楼主是外国人吗?。。。

    点评

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

    [LV.9]以坛为家II

     楼主| 发表于 2018-11-5 20:24:13 | 显示全部楼层
    tangshun 发表于 2018-11-5 18:37' O0 ?) I6 j! A% O' u+ f& w
    楼主是外国人吗?。。。
    % |- L  d6 |4 }* X
    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

     楼主| 发表于 2018-11-5 20:27:32 | 显示全部楼层
    在职研究生 发表于 2018-11-5 16:14
    # [" {( ]% J/ }: \& @, [楼主用英语写的introduction有不少的语法错误。

    # G, I) |* I" ?9 J; pIt might be because I'm not a native English...

    该用户从未签到

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

    发表于 2018-11-6 09:17:56 | 显示全部楼层
    yuanjiaming 发表于 2018-11-6 06:48
    " r1 U4 ^9 H6 d, J  @4 v* E; qThank you very much. I've had this Dictionary for a long time. As it is in print, I've seldom used i ...
    5 [' ^2 l& f3 F1 E
    What dictionary did you refer to? And can you upload the file?

    该用户从未签到

    发表于 2018-11-7 07:03:26 | 显示全部楼层
    No,it is in print.
    ' p: w: c$ J8 C/ ~
    7 o* B- H$ E' Z
    您需要登录后才可以回帖 登录 | 免费注册

    本版积分规则

    小黑屋|手机版|Archiver|PDAWIKI |网站地图

    GMT+8, 2025-5-6 15:14 , Processed in 0.024044 second(s), 26 queries .

    Powered by Discuz! X3.4

    © 2001-2023 Discuz! Team.

    快速回复 返回顶部 返回列表