# \[Dean\] \[英英\] 打造 完美版 朗文 LDOCE6 v2024.02.02

**URL:** <https://forum.freemdict.com/t/topic/24705>\
**Category:** 技术交流与词典编修\
**Created:** [2023 年11 月 12 日 21:23 UTC](https://forum.freemdict.com/t/topic/24705 "2023-11-12T21:23:41Z")\
**Posts on this page:** 20\
**Page:** 4

<div class="post-metadata">

**Author:** ![deanrjy2020](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/deanrjy2020/32/55399_2.png) [@deanrjy2020](https://forum.freemdict.com/u/deanrjy2020)\
**Post date:** [2023 年12 月 22 日 04:33 UTC](https://forum.freemdict.com/t/topic/24705/63 "2023-12-22T04:33:25Z")

</div>

原版没有这个问题, 只有revision版本有. 好像所有词条的THESAURUS都有这个问题.  
 ![image](https://forumcdn.freemdict.com/uploads/default/original/3X/f/6/f6657c1e03a6e1a9c4b13a7a64838629ed986a05.png)

---

<div class="post-metadata">

**Author:** ![franklovejodie](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/f/a6a055/32.png) [@franklovejodie](https://forum.freemdict.com/u/franklovejodie)\
**Post date:** [2023 年12 月 22 日 13:08 UTC](https://forum.freemdict.com/t/topic/24705/64 "2023-12-22T13:08:50Z")

</div>

12.22 更新MDX  
修正60L、61L、63L所指出的问题  
下个版本中解决58L、59L所提到的问题

---

<div class="post-metadata">

**Author:** ![brightd](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/b/90db22/32.png) [@brightd](https://forum.freemdict.com/u/brightd)\
**Post date:** [2023 年12 月 22 日 14:11 UTC](https://forum.freemdict.com/t/topic/24705/65 "2023-12-22T14:11:47Z")

</div>

> [@franklovejodie](#):
>
> 修正60L、61L、63L所指出的问题

经在欧陆词典和DictTango测试，上述几个问题完全得到解决！非常感谢f大！

在深蓝词典上点击about (adverb) 词条APPROXIMATELY (► see THESAURUS at APPROXIMATELY)，只能“跳出”，不能“转至”APPROXIMATELY——停留在“词典列表”某一处…需手指滑动至LDOCE6\_New词条APPROXIMATELY页面。  
注：在深蓝词典上的使用效果，只是报告出来，为f大了解各种词典app的使用情况提供信息……  
最后再次感谢f大！

---

<div class="post-metadata">

**Author:** ![deanrjy2020](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/deanrjy2020/32/55399_2.png) [@deanrjy2020](https://forum.freemdict.com/u/deanrjy2020)\
**Post date:** [2023 年12 月 22 日 17:56 UTC](https://forum.freemdict.com/t/topic/24705/66 "2023-12-22T17:56:03Z")

</div>

Buddhist 也有46L的问题.

fan

 ![image](https://forumcdn.freemdict.com/uploads/default/original/3X/d/9/d9580eae9c500a62d60587ac253b81d81a03e968.png)

Kilted  
内容重复  
 ![image](https://forumcdn.freemdict.com/uploads/default/original/3X/2/4/248ee7596017546271f5fdd74d4a153a2451dd72.png)

say  
粗体没掉了  
 ![image](https://forumcdn.freemdict.com/uploads/default/original/3X/0/0/0099db9f4e10820fd6573b74117419cfb21d903b.png)  
原版:  
 ![image](https://forumcdn.freemdict.com/uploads/default/original/3X/6/d/6d4081a298b88a99c8ccabb86d664f35ea92786e.png)  
不知道是否还设有其他词条有类似的.  
最后多了一个这个, 应该要删掉  
 ![image](https://forumcdn.freemdict.com/uploads/default/original/3X/5/8/5852339fdd0b6539b24c8dd076a47cf719a07225.png)

同时1L增加了三个问题  
Billboard  
Christ  
Hegira calendar

1L里面的都是原版的问题, 楼下的都是revision里面单独的问题, 我觉得人的精力毕竟有限, 肯定要利用程序unit test去测一些简单的东西, 没有unit test很容易出现"按下葫芦浮起瓢"的情况, 我现在感觉bug无穷无尽

unit test 想法, 比如

1, 扫描一下确认所有的标签闭合, 来防止regression?

2, 遍历原版5万多个词条, 将其html的渲染结果和revision里面的渲染结果做对比, 生产差异报告, python有个difflib (?) 库好像可以做这个事情

各位有什么想法?

---

<div class="post-metadata">

**Author:** ![deanrjy2020](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/deanrjy2020/32/55399_2.png) [@deanrjy2020](https://forum.freemdict.com/u/deanrjy2020)\
**Post date:** [2023 年12 月 24 日 06:08 UTC](https://forum.freemdict.com/t/topic/24705/67 "2023-12-24T06:08:39Z")

</div>

关于66楼的第一点, 我写了个简单的py程序去检测标签闭合.  
[test\_ldoce6revision.py](https://forum.freemdict.com/uploads/short-url/ot3e35cjGZnCBkx3XeVQxNBqoG0.py) (4.3 KB)

跑原版的data的时候全部闭合, 没有问题. 只有faq-about这个词条有问题, 这个可以忽略.

```auto
$ python src/test_ldoce6revision.py 2>&1 | tee log.txt
Parsing...
done with the pass 1:
{'a': 'a', 'span': 'span', 'i': 'i', 'div': 'div', 'li': 'li', 'ul': 'ul', 'script': 'script', 'b': 'b', 'td': 'td', 'tr': 'tr', 'tbody': 
'tbody', 'table': 'table', 'h2': 'h2', 'th': 'th', 'thead': 'thead', 'h1': 'h1', 'p': 'p', 'h3': 'h3', 'em': 'em', 'strong': 'strong', 'ol': 'ol'}
faq-about 33de5e2430c248afb78dd34e20f35466
error: label re.compile('<li>') (num=0) and re.compile('</li>') (num=10) not match
faq-about 33de5e2430c248afb78dd34e20f35466
error: label re.compile('<b>') (num=1) and re.compile('</b>') (num=53) not match
faq-about 33de5e2430c248afb78dd34e20f35466
error: label re.compile('<th') (num=6) and re.compile('</th>') (num=4) not match
Summary:
Done with the job, totally takes 98.82416701316833 s

```

但是跑revision的data的时候提示很多mismatch.  
(我平时写py很少, py很弱. 也有可能是我的程序有些没考虑到, 但是原版结果是好的, 说明revision改了原版一些东西)

比如

```auto
20/100 etc head of cattle
error: label re.compile('<span') (num=6) and re.compile('</span>') (num=8) not match
20/100 etc head of cattle
error: label re.compile('<div') (num=0) and re.compile('</div>') (num=1) not match

about
error: label re.compile('<a') (num=219) and re.compile('</a>') (num=220) not match

```

@franklovejodie - 我不理解, 增加动词索引似乎是往上面加内容, 把5万多词条扩充成现在36万多.  
为什么要改动原来的词条内容?

---

<div class="post-metadata">

**Author:** ![franklovejodie](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/f/a6a055/32.png) [@franklovejodie](https://forum.freemdict.com/u/franklovejodie)\
**Post date:** [2023 年12 月 25 日 01:57 UTC](https://forum.freemdict.com/t/topic/24705/68 "2023-12-25T01:57:11Z")

</div>

> [@deanrjy2020](#):
>
> 1L里面的都是原版的问题

该句以上所提各条，…say…不必删掉，Hegira calendar的问题没法解决，剩下的我都在mdx里做了修正

---

<div class="post-metadata">

**Author:** ![ceomanh](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/c/b77776/32.png) [@ceomanh](https://forum.freemdict.com/u/ceomanh)\
**Post date:** [2023 年12 月 25 日 15:10 UTC](https://forum.freemdict.com/t/topic/24705/69 "2023-12-25T15:10:05Z")

</div>

Share a style with netizens:  
[LDOCE6\_New.css](https://forum.freemdict.com/uploads/short-url/5w88fZIXFPjNoxuz9smNhkL8YAz.css) (11.4 KB)

 ![New style LDOCE6](https://forumcdn.freemdict.com/uploads/default/original/3X/7/9/79edae79651bddf293f233969fd8c52c0060166b.png)

---

<div class="post-metadata">

**Author:** ![deanrjy2020](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/deanrjy2020/32/55399_2.png) [@deanrjy2020](https://forum.freemdict.com/u/deanrjy2020)\
**Post date:** [2023 年12 月 25 日 22:35 UTC](https://forum.freemdict.com/t/topic/24705/70 "2023-12-25T22:35:25Z")

</div>

new版本查ought显示的是owe词条, 好像是个bug  
kilted显示的重复不应该删掉一个吗?

---

<div class="post-metadata">

**Author:** ![franklovejodie](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/f/a6a055/32.png) [@franklovejodie](https://forum.freemdict.com/u/franklovejodie)\
**Post date:** [2023 年12 月 26 日 04:00 UTC](https://forum.freemdict.com/t/topic/24705/71 "2023-12-26T04:00:22Z")

</div>

kilted重复已删除

---

<div class="post-metadata">

**Author:** ![deanrjy2020](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/deanrjy2020/32/55399_2.png) [@deanrjy2020](https://forum.freemdict.com/u/deanrjy2020)\
**Post date:** [2023 年12 月 26 日 05:25 UTC](https://forum.freemdict.com/t/topic/24705/72 "2023-12-26T05:25:09Z")

</div>

Frank - 请教一下1L的Billboard这类问题是什么导致的? 我看txt里面代码都是一样的, 但是有的“► see thesaurus at xxx”会换行, 有的不会. 没发现他们的差别在哪里. 请指教.

---

<div class="post-metadata">

**Author:** ![franklovejodie](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/f/a6a055/32.png) [@franklovejodie](https://forum.freemdict.com/u/franklovejodie)\
**Post date:** [2023 年12 月 27 日 01:44 UTC](https://forum.freemdict.com/t/topic/24705/73 "2023-12-27T01:44:52Z")

</div>

2023.12.27修改MDX  
将原有@@@LINK词条转变为reference词条

e.g.

```auto
a gauge of
@@@LINK=a gauge of something
</>

```

转变为

```auto
a gauge of
<link rel="stylesheet" type="text/css" href="LDOCE6_New.css"><span class="entry"><span class="entryhead"><span class="hwd">a gauge of</span><span class="hyphenation">a gauge of</span></span><div class="sms"></div><div class="realref"><span class="refnote">⇒ Main Entry: </span><a title="step" href="entry://a gauge of something" class="realmainentry">a gauge of something</a></div></span><script type="text/javascript" src="LDOCE6_New.js"></script>
</>

```

---

<div class="post-metadata">

**Author:** ![deanrjy2020](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/deanrjy2020/32/55399_2.png) [@deanrjy2020](https://forum.freemdict.com/u/deanrjy2020)\
**Post date:** [2023 年12 月 29 日 07:38 UTC](https://forum.freemdict.com/t/topic/24705/74 "2023-12-29T07:38:53Z")

</div>

1L更新了三个bug  
afternoon  
age  
ago

---

<div class="post-metadata">

**Author:** ![franklovejodie](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/f/a6a055/32.png) [@franklovejodie](https://forum.freemdict.com/u/franklovejodie)\
**Post date:** [2023 年12 月 29 日 08:06 UTC](https://forum.freemdict.com/t/topic/24705/75 "2023-12-29T08:06:34Z")

</div>

2023.12.29修改MDX  
修复afternoon  
age  
ago三个bug

---

<div class="post-metadata">

**Author:** ![deanrjy2020](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/deanrjy2020/32/55399_2.png) [@deanrjy2020](https://forum.freemdict.com/u/deanrjy2020)\
**Post date:** [2023 年12 月 29 日 08:52 UTC](https://forum.freemdict.com/t/topic/24705/76 "2023-12-29T08:52:27Z")

</div>

Frank真是神速啊 👍 修的时候记得检查一下，我弄错了也说不定。  
另外72楼的问题有答案吗？

---

<div class="post-metadata">

**Author:** ![brightd](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/b/90db22/32.png) [@brightd](https://forum.freemdict.com/u/brightd)\
**Post date:** [2023 年12 月 29 日 13:32 UTC](https://forum.freemdict.com/t/topic/24705/77 "2023-12-29T13:32:29Z")

</div>

> [@franklovejodie](#):
>
> 2023.12.29修改MDX  
> 修复afternoon  
> age  
> ago三个bug

非常感谢f大的修复！  
三个词条（楼主d大在#1发布）修复，无论是在欧陆词典，还是在深蓝词典上，均可以看到ago修复后的“✗Don’t say: They first met at/in/on fifteen years ago.”。  
不过在这2个词典上，afternoon显示没有变化；age也依然有“…to to…”显示。  
PS 在词条age第5个义项最后，出现单词重叠（请见截图）

 ![mmexport1703856113188](https://forumcdn.freemdict.com/uploads/default/original/3X/3/f/3fd6eb2febd5ffe951ef56cf0bf4ce02e977fdcf.jpeg)

---

<div class="post-metadata">

**Author:** ![deanrjy2020](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/deanrjy2020/32/55399_2.png) [@deanrjy2020](https://forum.freemdict.com/u/deanrjy2020)\
**Post date:** [2023 年12 月 29 日 20:01 UTC](https://forum.freemdict.com/t/topic/24705/78 "2023-12-29T20:01:42Z")

</div>

确实只修了一个

---

<div class="post-metadata">

**Author:** ![zongtousan](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/z/53a042/32.png) [@zongtousan](https://forum.freemdict.com/u/zongtousan)\
**Post date:** [2023 年12 月 30 日 11:09 UTC](https://forum.freemdict.com/t/topic/24705/79 "2023-12-30T11:09:14Z")

</div>

![1f07933bb99feab2bed5f8ffaab1a21](https://forumcdn.freemdict.com/uploads/default/original/3X/1/1/11bb5898ec4cd148c8ab3ef9cb6d1228c620ede9.png)  
12.29号的版本在MDict上重叠。

---

<div class="post-metadata">

**Author:** ![brightd](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/b/90db22/32.png) [@brightd](https://forum.freemdict.com/u/brightd)\
**Post date:** [2023 年12 月 30 日 11:42 UTC](https://forum.freemdict.com/t/topic/24705/80 "2023-12-30T11:42:44Z")

</div>

欧陆词典该词条也出现重叠

---

<div class="post-metadata">

**Author:** ![deanrjy2020](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/deanrjy2020/32/55399_2.png) [@deanrjy2020](https://forum.freemdict.com/u/deanrjy2020)\
**Post date:** [2023 年12 月 30 日 21:38 UTC](https://forum.freemdict.com/t/topic/24705/81 "2023-12-30T21:38:25Z")

</div>

在我Windows+欧路上, 没发现77L和79L的重叠问题.  
我用的12.29最新版本  
(我用的是原版CSS, 可能另一个排版有问题.)

---

<div class="post-metadata">

**Author:** ![brightd](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/b/90db22/32.png) [@brightd](https://forum.freemdict.com/u/brightd)\
**Post date:** [2023 年12 月 31 日 00:32 UTC](https://forum.freemdict.com/t/topic/24705/82 "2023-12-31T00:32:35Z")

</div>

早先的朗6版本也均未出现上述重叠现象

[上一页](https://forum.freemdict.com/t/topic/24705.md?page=3)

[下一页](https://forum.freemdict.com/t/topic/24705.md?page=5)
