是的 ˉ\_(ツ)_/ˉ
1 Like
佛大師兄,在下想弄個分類的檢索表,無奈您和華大的版本均有字元無顯示,不知可有解,若可,則檢索表製作上會齊全點
大辭海20190930_無顯示字元大辭海20190930_無顯示字元.zip (40.6 KB)
细节微调
dacihai.css (3.4 KB)
setTimeout(function(){
var proc = function(selector, cb) {
var i = 0, es = document.querySelectorAll(selector), l = es.length;
for (; i < l; i++) {
cb(es[i]);
}
}
proc(
'book_glossary_glossdiv_glossentry_glossdef_sememe_para',
function(e) {
e.innerHTML = e.innerHTML
.replace(/\s+另见/, '<p class="br"></p><span class="lingjian">另见:</span>')
.replace(/^\s*([\u2474-\u2487])/, function(c){ var n = c.charCodeAt(), m = n < 9342 ? n-9331+10101 : n-9341+9451; return (n>9332?'<p class="br"></p>':'')+String.fromCharCode(m) }) // '四海'
.replace(/\((\d+)\)/g, function(c){ var n = parseInt(c.slice(1,-1)); return n < 21 ? String.fromCharCode(9312+n-1) : (n < 36 ? String.fromCharCode(12881+n-1) : c) }) // '了'
.replace(/([\u3280-\u3289\u2776-\u277f\u24eb-\u24f4\u2460-\u2473\u3251-\u325f])(?![”〔 ])/g, '$1 ')
.replace(/^\s+(\u2776|\u3280)/, '$1')
.replace(/\s+([\u3281-\u3289\u2777-\u277f\u24eb-\u24f4])/g, '<p class="br"></p>$1')
.replace(/^\s+/, '')
.replace(/>\s+/g, '>')
.replace(/([\u3281-\u3289])/g, '<p class="br"></p>$1')
.replace(/<([^&]*)>/g, '〔$1〕')
.replace(/([,:!?;()\[\]~])/g, function(c){ return String.fromCharCode(c.charCodeAt() + 65248) });
}
);
proc(
'label.juan_drop',
function(e) {
e.innerHTML = '<span>' + e.innerText + '</span>';
}
);
proc(
'.part>.origin',
function(e) {
e.innerHTML = '<span>' + e.innerText.replace(/-->/g, '<b></b>').replace(/\s+/g, '') + '</span>';
}
);
proc(
'book_glossary_glossdiv_glossentry_glossdef_birthdeathyear'
+',book_glossary_glossdiv_glossentry_glossdef_etitle',
function(e) {
var ep = e.previousSibling, en = e.nextSibling;
(3 === ep.nodeType && '(' === ep.textContent) && ep.remove();
(3 === en.nodeType && ')' === en.textContent) && en.remove();
e.innerHTML = e.innerHTML.replace(/([,:!?;()\[\]~-])/g, function(c){ return String.fromCharCode(c.charCodeAt() + 65248) });
}
);
}, 0);
5 Likes
您好 我的手机(iOS)上的欧路词典 导入了你的css和js 是不是还要下载思源字体才会显示你这样的效果呢
這個mdx 用JavaScript折騰 不如直接整理數據。數據一泡亂 膨脹到極點
2 Likes
需要 iOS 安装 思源宋体
你好棒,省掉我点击的时间花费。谢谢!
很喜欢这个css,不过好像与楼主发的繁体版以及繁简通搜版都不太适配呀,请问能改进一下吗?
《大辭海》dacihai
链接: https://pan.baidu.com/s/1z9Ec4r5QAZKIRtfhtYQM5Q&shfl=shareset 205 提取码: 9m8u