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- Kwith6 Q$ S9 `6 \. u3 q9 P& i' h+ b& R
( 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
查看全部评分
-
|