最近在看一些俚语词典,发现UD虽然内容很新很多但质量比较参差,于是论坛找了一下发现有Green Dictionary of Slang,内容质量很不错,https://greensdictofslang.com/
网站有完整索引,就顺便爬下来了。但目前有好几个问题没有解决,所以就先只放数据出来源数据和mdx见后面附件(@@@ LINK 部分是为了保留网址ID放进去的,只有56620个实际词条),等着各位高手指点或者直接出手。
20240526 update
- Fix flags display compatibility issues for Android Mdict by changing pic names from @2x to -2x
- (v2) delete srcset & 2x to increase compatibility for GoldenDict-ng & Android Eudic
20240524 update
- Add phrases as headwords, extract only links without definitions (extract 41469 headwords from class of compoundlist and phraselist)
20240428 update
- Upload mdx/mdd files. The css/js/img files are all packed in MDD file.
- Search “about” entry for more details of GDoS, including abbreviations, introduction, how to use, etc.
- 56620 actual entries, 12 about pages, 11290 bibliography. And the remaining entries are links.
- Remove the <aside> tags to better fit in mobile layout. Keep hide-all/ show-all buttons.
20240429 update
- img/font/original-css files are packed in MDD file. css/js files are seperated.
- fix ‘can…png’
Notes:
- Buttons of hide-all/ show-all and showing timelines only work under iOS Mdict, Android DictTango.
未解决问题:
1. 原网址的css是一种固定输出宽度的排版,如何修改成适应屏幕宽度输出? 这点对于在电脑上使用其实没啥问题,但到手机上不会根据屏幕宽度来换行,要么字特别小,要么就只能手动放大看局部,很不方便。
2. hide all/ show all按钮如何放到正文置顶居中,并且让按钮在滚动屏幕的时候一直保持悬浮?(目前在页面右侧栏)
3. 页面内链接(SE)的位置怎么放到正文置顶居中,作为正文的一部分?(目前在页面右侧栏)
4. 图像引用失效,但把srcset语句删除掉就可以了。这是什么原因?
<img src="/static/img/flags/us.png" srcset="/static/img/flags/us.png 1x, /static/img/flags/us@2x.png 2x" alt="[US]" title="United States">"
第4个问题找到原因了,原来@2x的文件是单独的 提取链接的时候没注意到只放了us.png没有去放us@2x.png,文件放进去就好了。
**5. 隐藏/显示全部的按钮和时间线只在iOS Mdict和Android DictTango生效,平台兼容性问题不懂。