# 分享《牛津英语用法指南》第3版中英对照完善索引图片词典（首发）

**URL:** <https://forum.freemdict.com/t/topic/9173>\
**Category:** 技术交流与词典编修\
**Created:** [2021 年11 月 7 日 09:05 UTC](https://forum.freemdict.com/t/topic/9173 "2021-11-07T09:05:33Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

作者： ![smiling1384](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/s/3e96dc/32.png) [@smiling1384](https://forum.freemdict.com/u/smiling1384)\
发布日期： [2021 年11 月 8 日 22:17 UTC](https://forum.freemdict.com/t/topic/9173/41 "2021-11-08T22:17:32Z")

</div>

好像表示当前词条未结束，续下页。猜的

---

<div class="post-metadata">

作者： ![Vim](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/vim/32/8408_2.png) [@Vim](https://forum.freemdict.com/u/Vim)\
发布日期： [2021 年11 月 9 日 00:44 UTC](https://forum.freemdict.com/t/topic/9173/42 "2021-11-09T00:44:45Z")

</div>

但好像又不是 🙃  
看了书籍的各种序言、前言、说明，居然都没有对这个进行解释…

---

<div class="post-metadata">

作者： ![smiling1384](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/s/3e96dc/32.png) [@smiling1384](https://forum.freemdict.com/u/smiling1384)\
发布日期： [2021 年11 月 9 日 02:26 UTC](https://forum.freemdict.com/t/topic/9173/43 "2021-11-09T02:26:32Z")

</div>

没想到您也看这本书

---

<div class="post-metadata">

作者： ![endnote](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/e/9de0a6/32.png) [@endnote](https://forum.freemdict.com/u/endnote)\
发布日期： [2021 年11 月 9 日 03:01 UTC](https://forum.freemdict.com/t/topic/9173/44 "2021-11-09T03:01:51Z")

</div>

> [@Vim](#):
>
> 正文页面，有的右下角有个黑色三角形，有的则没有

> [@smiling1384](#):
>
> 表示当前词条未结束，续下页

楼主的解读是对的，但Vim兄也没错。  
综合一下就是答案，黑色三角形只有奇数页才有（纸书翻开的右下角）

---

<div class="post-metadata">

作者： ![Vim](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/vim/32/8408_2.png) [@Vim](https://forum.freemdict.com/u/Vim)\
发布日期： [2021 年11 月 9 日 06:55 UTC](https://forum.freemdict.com/t/topic/9173/45 "2021-11-09T06:55:43Z")

</div>

直接定位二级编号应该是可行的，这是提取的所有词头：  
[keywords.zip](https://forum.freemdict.com/uploads/short-url/82tNIGIddukodf1nNPKPefw26g9.zip) (29.0 KB)

但需要转换一个格式（从附件 demo-input 格式转换为 demo-output 格式），求助python实现。

---

<div class="post-metadata">

作者： ![smiling1384](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/s/3e96dc/32.png) [@smiling1384](https://forum.freemdict.com/u/smiling1384)\
发布日期： [2021 年11 月 9 日 07:17 UTC](https://forum.freemdict.com/t/topic/9173/46 "2021-11-09T07:17:50Z")

</div>

我感觉这个二级编号也解决不了全部的问题呢，是不是有什么我不懂的地方？

在我看来，图片词典要能定位的前提是得有页码信息，一个词头对应一个硬页码。您提供的二级词头只有标题，没有页码。如果只是将 epub 转制成2级定位文字词典（非图片词典）是可行的，因为它不需要硬页码。

请稍等，我给您提供一个带2级编号词头，但仍然不含页码，从 epub 中提取。

---

<div class="post-metadata">

作者： ![Vim](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/vim/32/8408_2.png) [@Vim](https://forum.freemdict.com/u/Vim)\
发布日期： [2021 年11 月 9 日 07:20 UTC](https://forum.freemdict.com/t/topic/9173/47 "2021-11-09T07:20:47Z")

</div>

前一个回帖附件已经有从epub提取的2级编号词头，只是还不能直接用，需要转换格式（见前条回帖）。

之后确实需要如你所述，将这些2级编号与页码对应，这需要人工处理，但应该挺容易，只是有点烦。

---

<div class="post-metadata">

作者： ![smiling1384](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/s/3e96dc/32.png) [@smiling1384](https://forum.freemdict.com/u/smiling1384)\
发布日期： [2021 年11 月 9 日 07:24 UTC](https://forum.freemdict.com/t/topic/9173/48 "2021-11-09T07:24:27Z")

</div>

对，我预计的抄词头页码的时间，每2页要抄1分钟，因为有1000页左右，预计500分钟。再加上校对和其它时间，可能就要20小时了。当然，也有可能不要那么久，但会很枯燥。

---

<div class="post-metadata">

作者： ![Vim](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/vim/32/8408_2.png) [@Vim](https://forum.freemdict.com/u/Vim)\
发布日期： [2021 年11 月 9 日 07:26 UTC](https://forum.freemdict.com/t/topic/9173/49 "2021-11-09T07:26:17Z")

</div>

你来转换格式，我来人工校对页码。 😀

---

<div class="post-metadata">

作者： ![smiling1384](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/s/3e96dc/32.png) [@smiling1384](https://forum.freemdict.com/u/smiling1384)\
发布日期： [2021 年11 月 9 日 07:30 UTC](https://forum.freemdict.com/t/topic/9173/50 "2021-11-09T07:30:29Z")

</div>

您来校对恐怕不好，如果有更多的人分担倒是可以，10个人足够，每人100页。只抄数字（不抄任何文字）的话，会比较简单。希望有多一些人看到后报名。

后期我也会尝试对导航做一些优化，增强这个电子图片词典的使用价值。

---

<div class="post-metadata">

作者： ![smiling1384](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/s/3e96dc/32.png) [@smiling1384](https://forum.freemdict.com/u/smiling1384)\
发布日期： [2021 年11 月 9 日 08:42 UTC](https://forum.freemdict.com/t/topic/9173/51 "2021-11-09T08:42:59Z")

</div>

该代码在提取 epub 中的标题数字时，会有两处识别错误，手工修改了

```auto
# -*- coding: utf-8 -*-

import re, pathlib
path = pathlib.Path('./')
fl_out = open("head_word_deep.txt","w", encoding="utf8")
pattern = r'<h[3|4] class="hh(\d+)".*?>(\d+)(.*?)</h[3|4]>'

h1 = ''
for p2f in path.glob("*.xhtml"):
    with open(p2f, encoding="utf8") as fl_in:
        text = fl_in.read()
    heads = re.findall(pattern, text)
    for head in heads:
        head_word = re.sub(r"<.*?>", "", head[2]).strip()
        if head[0] == '1':
            h1 = head[1]
            head_num = h1
        else:
            head_num = ".".join([h1,head[1]])
        head_txt = head_num + ' ' + head_word
        fl_out.write(head_txt + '\n')
fl_out.close()

```

---

<div class="post-metadata">

作者： ![smiling1384](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/s/3e96dc/32.png) [@smiling1384](https://forum.freemdict.com/u/smiling1384)\
发布日期： [2021 年11 月 9 日 08:44 UTC](https://forum.freemdict.com/t/topic/9173/52 "2021-11-09T08:44:42Z")

</div>

```auto
1 abbreviated styles
1.1 advertisements and instructions
1.2 notes
1.3 commentaries
1.4 titles, notices etc
1.5 headlines
2 abbreviations and acronyms
2.1 punctuation
2.2 initial-letter abbreviations
2.3 acronyms
2.4 plurals
3 [be] able
4 about and on
5 about to
6 above and over
6.1 'higher than': above or over
6.2 'not directly over': above
6.3 'covering': over
6.4 measurements: above
6.5 ages, speeds, 'more than': over
6.6 books and papers
7 accept and agree
8 according to
9 across, over and through
9.1 on/to the other side of (line): across and over

```

[extract\_all\_headwords\_deep2.py](https://forum.freemdict.com/uploads/short-url/2hFYnLycOGMkWGRU0yA3HvItcPs.py) (679 字节)  
[head\_word\_deep.txt](https://forum.freemdict.com/uploads/short-url/g198LQ7th15gkBdzqTW1NlXY1jI.txt) (89.3 KB)

---

<div class="post-metadata">

作者： ![Vim](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/vim/32/8408_2.png) [@Vim](https://forum.freemdict.com/u/Vim)\
发布日期： [2021 年11 月 9 日 11:04 UTC](https://forum.freemdict.com/t/topic/9173/53 "2021-11-09T11:04:16Z")

</div>

非常强大！！！

---

<div class="post-metadata">

作者： ![smiling1384](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/s/3e96dc/32.png) [@smiling1384](https://forum.freemdict.com/u/smiling1384)\
发布日期： [2021 年11 月 9 日 11:37 UTC](https://forum.freemdict.com/t/topic/9173/54 "2021-11-09T11:37:59Z")

</div>

Python的确简单好用

---

<div class="post-metadata">

作者： ![Vim](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/vim/32/8408_2.png) [@Vim](https://forum.freemdict.com/u/Vim)\
发布日期： [2021 年11 月 9 日 12:17 UTC](https://forum.freemdict.com/t/topic/9173/55 "2021-11-09T12:17:25Z")

</div>

已初步完成二级目录对应的页码（取一级主词条的页码作为二级子词条的页码，因此现有页码对应的后续第一个词条基本是准确的）：  
[二级目录.zip](https://forum.freemdict.com/uploads/short-url/tt9TWhD0uyUuufaLDFik9fuLBwx.zip) (26.6 KB)

还需要进一步修订，比如：

```auto
0001
1.1 advertisements and instructions
1.2 notes
1.3 commentaries
1.4 titles, notices etc
1.5 headlines
0003
2.1 punctuation
2.2 initial-letter abbreviations
2.3 acronyms
2.4 plurals

```

修订为：

```auto
0001
1.1 advertisements and instructions
1.2 notes
0002
1.3 commentaries
1.4 titles, notices etc
1.5 headlines
0003
2.1 punctuation
2.2 initial-letter abbreviations
2.3 acronyms
0004
2.4 plurals

```

**修订只需要在合适位置添加页码即可** ，只要满足如下即可：  
1、4位数的页码（不足补0）  
2、后续词条（可多行）为上述页码

**特征询志愿者修订完善。**

---

<div class="post-metadata">

作者： ![smiling1384](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/s/3e96dc/32.png) [@smiling1384](https://forum.freemdict.com/u/smiling1384)\
发布日期： [2021 年11 月 9 日 12:46 UTC](https://forum.freemdict.com/t/topic/9173/56 "2021-11-09T12:46:44Z")

</div>

算我一个，先领取100页: 1-100

---

<div class="post-metadata">

作者： ![碧落黄泉](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/%E7%A2%A7/f04885/32.png) [@碧落黄泉](https://forum.freemdict.com/u/%E7%A2%A7%E8%90%BD%E9%BB%84%E6%B3%89)\
发布日期： [2021 年11 月 9 日 14:25 UTC](https://forum.freemdict.com/t/topic/9173/57 "2021-11-09T14:25:36Z")

</div>

不复杂的话算我一个吧，最近刚好有点空

---

<div class="post-metadata">

作者： ![Vim](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/vim/32/8408_2.png) [@Vim](https://forum.freemdict.com/u/Vim)\
发布日期： [2021 年11 月 9 日 14:37 UTC](https://forum.freemdict.com/t/topic/9173/58 "2021-11-09T14:37:36Z")

</div>

先发个demo吧，期待[二级词条的修订工作](https://forum.freemdict.com/t/topic/9173/55)有志愿者协助完成。

基于MdxSourceBuilder，创新：  
1、（用户角度）词条导航的左右可直达页面前或后最近的主题，比翻实体书更为简便、快速和人性化。  
2、（用户角度）输入"s+词条编号"即可直达最终页面，包括二级标题。  
3、（制作者角度）灵活融合多种类型的额外词条，且更新维护超级简单。

![OPEU3rdDemo](https://forumcdn.freemdict.com/uploads/default/original/3X/b/b/bbbd8c0f3810c49c3de87fd5f5a6b504a123f15e.gif)

---

<div class="post-metadata">

作者： ![smiling1384](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/s/3e96dc/32.png) [@smiling1384](https://forum.freemdict.com/u/smiling1384)\
发布日期： [2021 年11 月 9 日 21:59 UTC](https://forum.freemdict.com/t/topic/9173/59 "2021-11-09T21:59:55Z")

</div>

好极了，好极了

---

<div class="post-metadata">

作者： ![Vim](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/vim/32/8408_2.png) [@Vim](https://forum.freemdict.com/u/Vim)\
发布日期： [2021 年11 月 10 日 04:28 UTC](https://forum.freemdict.com/t/topic/9173/60 "2021-11-10T04:28:15Z")

</div>

[Oxford Practical English Usage 3rd.zip](https://forum.freemdict.com/uploads/short-url/4ZrsCWW6kLtOTDM4YIR7GGUksPW.zip) (55.7 KB)

具体说明参见：[一键制作图片词典 MdxSourceBuilder - #79，来自 Vim](https://forum.freemdict.com/t/topic/2882/79)

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

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