TA的每日心情 | 慵懒 2025-1-28 16:22 |
|---|
签到天数: 216 天 [LV.7]常住居民III
|
本帖最后由 deeke 于 2017-10-10 23:57 编辑 0 Z# j7 I2 [" [1 e% y' C" Q" y1 L
3 a' i) \. V( ~$ R
171010:使用外链图床,更换图例。增加内容:“修改 dsl 词典的发音按钮”。3 H Y2 T1 j" _% { \) `
------------------------------------------
% a' y. A+ ~9 i& m+ s , \/ F' O& u6 b
------------------------------------------
. ]' f4 Y# A1 f0 M7 ?7 v感谢 Hugh 制作、分享的 英语发音库 ,这些年来一直在用。
j) `( T c. `# Z" ~! F6 {, a2 ^我的软件环境是:Win8.1 + GoldenDict_Qt5_x64_portable 。) c6 M) ~, ^& e' W
8 @! L% W; o& }
1. 在网上找两个图片表示英音、美音。
F9 [, j6 l/ L& B改名为 snd_uk.png 、 snd_us.png ,放到 Sound-En.mdx 同一文件夹中。 6 i9 t6 Y) j( `; J2 A
我的屏幕小,所以用 64x64 的尺寸。
. a/ r: q7 _1 d4 A. W 9 m' p" n m9 u9 w2 t/ e* j7 G
, z& Y. p. h& m2 a% P* }2. 在 GD 里找到 Sound-En 的词典编号。
6 c+ f" g* O2 X# H) z1 f鼠标右键“审查元素”,或直接按 F12 。每台电脑的词典编号并不相同。
8 j2 r% w5 l. Y7 O, x5 Q P/ d- #gdarticlefrom-17608e25a8ab84dc7fab6e9476fc85d1
复制代码
, w3 o) {4 e. R+ w$ b' c# |% c4 l$ ?& x$ S- H( ?5 @& \
3. 修改 GD 的配置文件:“ c:\...\GoldenDict\portable\article-style.css ” 。% P4 T$ `3 b1 Y- D" F. }
调整各种 前后左右、高矮胖瘦。# ]4 C* t A' X4 D' }6 x+ q
- /* Sound-En | Start */
/ l! `/ H- Z3 r; q- E0 \' u/ J( y - #gdarticlefrom-17608e25a8ab84dc7fab6e9476fc85d1 { font-size: .875rem; }
8 @* I- T& M/ h" Q- a2 h - #gdarticlefrom-17608e25a8ab84dc7fab6e9476fc85d1 b { margin-right: .5125rem; }' p5 w' W# P) m1 ?& k& L# I# P
- #gdarticlefrom-17608e25a8ab84dc7fab6e9476fc85d1 i { color: gray; }
' ~. Q% _" L' g- U$ ?" \/ k - #gdarticlefrom-17608e25a8ab84dc7fab6e9476fc85d1 a>img[src$="Sound.png"] { display: none; }
) u; R7 Z5 R6 d/ k2 i - #gdarticlefrom-17608e25a8ab84dc7fab6e9476fc85d1 a>img[src*="snd_u"] {* `$ y5 }4 n5 W) h+ f% H
- position: relative;
( `' x, i3 H. x- y. r - right: .275rem;
# E8 L6 p7 T U7 O7 b - bottom: .045rem;
6 k6 {: U4 h8 E& u* e- X. s - width: 1rem;" l0 e: t. W7 U* _! k8 d: }! w$ {. V
- height: 1rem;
/ ~+ C1 q+ J7 v - }
+ d; g) o3 s- ~) { - #gdarticlefrom-17608e25a8ab84dc7fab6e9476fc85d1 a { text-decoration: none; outline: none; }
' Y) V* s" r; {. S& f& a - #gdarticlefrom-17608e25a8ab84dc7fab6e9476fc85d1 a::after {
& ~# F! L) a9 I4 K5 D6 Z" q - font-family: "Segoe UI Symbol";
% W4 L$ }7 L# T& ^: L - font-size: 1rem;2 H* G: z, L# P- L: H+ o! t( J6 p
- position: relative;
, q; c" n% t3 M: |# H - top: .065rem;6 ]9 Q, ^: Q4 R
- right: .2rem;
0 U: d% _& p9 x# J - content: "\1F50A";; A- m% L5 ^2 b
- vertical-align: baseline;* N7 R9 }0 y. x5 a6 O
- }
u6 M9 ` ~) L, `1 p# A - #gdarticlefrom-17608e25a8ab84dc7fab6e9476fc85d1 a:link { color: black; }
$ X3 ]9 o* r/ g' W - #gdarticlefrom-17608e25a8ab84dc7fab6e9476fc85d1 a:visited { color: black; }8 L) d, X4 W% v: i* d; A! Y
- #gdarticlefrom-17608e25a8ab84dc7fab6e9476fc85d1 a:hover { color: purple; }
" C& j7 P( [% t5 ^0 l - #gdarticlefrom-17608e25a8ab84dc7fab6e9476fc85d1 a:active { color: purple; }' D6 N* _* h9 l# o; X: D5 |
- /* Sound-En | End */
复制代码 # v7 w1 N% I5 A% E" ]2 u% Y
------------------------------------------
H' `- P& L! [- X4 Y修改 dsl 词典的发音按钮
% z! t! n0 `, t
! B2 k+ j' o& R( e* e7 t8 l2 X! H4 D修改 GD 的配置文件:“ c:\...\GoldenDict\portable\article-style.css ”。& D4 K; h, P) a9 z: f5 G" d
- .dsl_s_wav>a>img { display: none; }3 @7 S7 J% ?% ?0 V
- .dsl_s_wav>a { text-decoration: none; outline: none; }
+ f0 v$ ` q L! D - .dsl_s_wav>a::after {2 L6 S$ l1 @( x3 c
- font-family: "Segoe UI Symbol";* X0 _( c5 @9 r9 z. M8 X' i$ c3 ]
- font-size: 1rem;
8 ^: M, S) M6 ]% x' o - line-height: 0;& w8 \, ?$ t& K6 K: m6 O
- position: relative; ]8 b0 t1 b6 n( n q$ F8 q
- top: .065rem;
" Y' y0 u: ~! `2 D* Q* Z$ g; p0 z - content: "\1F50A";9 y( D H' a) b! L( K
- vertical-align: baseline;$ ^: ?3 N2 R1 ?7 r% p( _
- }: Z9 C, N+ ?( _, P, P" H @7 t( k8 b |
- .dsl_s_wav>a:link { color: black; }5 Y$ w- W# t7 K8 l' `2 e
- .dsl_s_wav>a:visited { color: black; }
7 d& a) \# U3 y* Y7 j9 K) { - .dsl_s_wav>a:hover { color: purple; }
' ~4 P* l+ u# K0 a - .dsl_s_wav>a:active { color: purple; }
复制代码 0 b. W+ g; C( [5 ?: E) @5 J$ H
------------------------------------------
% G* F. U {1 R [# ~1 G7 g& b9 B+ }
( Q( \2 W( C! {8 I6 z. E" y搞定收工,别忘了评分呦~~~ |
评分
-
1
查看全部评分
-
|