掌上百科 - PDAWIKI

 找回密码
 免费注册

QQ登录

只需一步,快速开始

查看: 1444|回复: 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. - L- `1 ]' G! g& `* m% N
    I have formatted all the entries from "A" (total 294 entries), Chambers Dictionary of Literary Characters contains more than 6000 entries.5 o- i& U( n2 c0 t- f5 t) M5 G  N
    I just want to know from the experts whether I am making the mdx in the right way or not...
    ' f. j& m/ V  D* l3 fThe zip file in the attachment contains mdx, html and css file./ Q' Y, I( S  e" q

    3 x3 W: f' y! R( mThe things I need to know:
    * P+ T0 \* K  U$ ^
    • 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.! a$ ~- I  e& A( G. U; f& R- l. c
    ( E+ b9 R0 _4 ^

    2 I3 ~* \! t1 @Here is a screenshot from MDict for PC.
    0 M) G% X7 ]/ ~: A, N/ z5 z/ `# I/ g$ Z  s. J$ t' U1 v0 I& T. ]  y
    Expecting help from the experts...4 W5 P' P2 o/ T2 x) U( z! X1 c" f% k9 F
    7 z0 `# p0 q+ S8 X

    本帖子中包含更多资源

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

    x

    评分

    1

    查看全部评分

    本帖被以下淘专辑推荐:

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

    [LV.7]常住居民III

    发表于 2018-11-5 22:17:29 | 显示全部楼层
    本帖最后由 trivialstuff 于 2018-11-6 00:09 编辑 8 E( u+ M+ Y8 ?1 o# i
    4 @3 T8 P% p* ?5 S
    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. 7 g& N: C" \4 M1 l
    Maybe there's some problem with the mdx itself, cos it shows no entries when opened in GoldenDict. 2 h0 N, G" z+ [0 L& E( \; I( m7 N

    5 }& N# }- g# t% z' J$ E) p$ w/ `  w+ h# x# d6 ~2 y
    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.
    ( Q9 ^; }) \( @, H3 c, q8 X2 [5 a! J% H+ z
    " m7 ?5 C6 s3 n  a: {- s
    & Q, R  K5 ^' j  v# H* I  N' n

    : k9 E! a2 z7 K1 ?6 sSo I just had a look at the css and html files you gave. " c3 t/ g1 h/ d9 `9 J- G$ r8 O# R; J
    Your css is all good, but in terms of html, some </dfn> tags are unclosed. ' H6 n6 v  Y5 o/ t6 L
    ' ?3 ~1 E5 H) Y5 c4 I
    By using Regular Expressions (Perl), you can edit mutiple tags at once.. c, k* O1 k8 k
    To add missing </dfn> tags, you can replace: 4 B6 [( E- c1 @
    1. <dfn>(.*?)([0-9])\n
    复制代码
    with+ d& x* l+ U3 b4 f4 _+ e
    1. <dfn>\1\2</dfn>\n
    复制代码

      G2 L& c" X' N& aI'm using EmEditor and it works like a charm.
    : m" F" U. U, h3 z& i( b
    : H6 H0 K1 x. v2 O
      h1 a6 S0 g6 D& _Still, there are 349 matches on <dfn> but 348 on </dfn>, which means one unclosed <dfn> slips through. + _$ ?3 `9 v: |; c
    Turns out to be “<dfn>1934, et seq” at line 629. Just manually add an end tag </dfn> to this one.& [3 |6 }! V; H2 ~
    & r, z" T" H' J
    . \* _9 M/ t/ i: }) Z1 M) s
    " w$ }: d9 T0 q5 `. \. F3 `
    I'm no expert, but hope this helps.
    . B1 {; G" A1 T  j# \5 C& l/ h
    6 y" A' ~$ P0 k' G4 k+ }2 I7 J  ]' P: a- K7 J) e1 x
    2 x# F8 D( d( e: _4 L

    本帖子中包含更多资源

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

    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
    7 H* F8 {. p: j# \7 G: x  j楼主是外国人吗?。。。

    9 J5 g. B9 E/ \; ?% k* HYes, 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
    ( l. _% \  e5 O5 ~( h" ]楼主用英语写的introduction有不少的语法错误。
    * o' r0 a* a  R& a0 k. E5 D
    It 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
    7 K7 o$ ?3 S9 e2 O4 U" V2 rThank you very much. I've had this Dictionary for a long time. As it is in print, I've seldom used i ...

    4 P- S  D8 A# m' o* r0 [1 t) ?0 ~What dictionary did you refer to? And can you upload the file?

    该用户从未签到

    发表于 2018-11-7 07:03:26 | 显示全部楼层
    No,it is in print./ m' ]0 {# |" H' d1 V3 {

    ; i5 S4 W5 Y- X7 C: A+ F  o
    您需要登录后才可以回帖 登录 | 免费注册

    本版积分规则

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

    GMT+8, 2024-5-13 10:28 , Processed in 0.103794 second(s), 18 queries , MemCache On.

    Powered by Discuz! X3.4

    Copyright © 2001-2023, Tencent Cloud.

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