# 转发：牛津高阶双解第四版光盘数据简单分析和提取

**URL:** <https://forum.freemdict.com/t/topic/14696>\
**Category:** 技术交流与词典编修\
**Tags:** 英汉双解\
**Created:** [2022 年8 月 15 日 18:51 UTC](https://forum.freemdict.com/t/topic/14696 "2022-08-15T18:51:38Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

作者： ![shiruxue](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/s/bbe5ce/32.png) [@shiruxue](https://forum.freemdict.com/u/shiruxue)\
发布日期： [2022 年8 月 15 日 18:51 UTC](https://forum.freemdict.com/t/topic/14696/1 "2022-08-15T18:51:38Z")

</div>

感谢 [tsiank](https://www.pdawiki.com/forum/home.php?mod=space&uid=170626)！

牛津高阶双解第四版光盘数据简单分析和提取

> **[20220828更新—牛津高阶双解第四版光盘数据简单分析和提取 - 词库制作交流区 - Dictionary-Making - 掌上百科 -...](https://www.pdawiki.com/forum/forum.php?mod=viewthread&tid=47626)**
>
> 看到论坛上还有许多人对牛津高阶双解第四版很感兴趣，也有人为了完善此词典而不断修正。然而此词典的数据在不断地转制过程中，失真较多，纵有多个版本相互参照，也不一定能 ... 20220828更新—牛津高阶双解第四版光盘数据简单分析和提取 ,掌上百科 - PDAWIKI

(出处: 掌上百科 - PDAWIKI)

---

<div class="post-metadata">

作者： ![mixivivo](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/m/8491ac/32.png) [@mixivivo](https://forum.freemdict.com/u/mixivivo)\
发布日期： [2022 年8 月 16 日 03:20 UTC](https://forum.freemdict.com/t/topic/14696/3 "2022-08-16T03:20:14Z")

</div>

厉害，辛苦tsiank了。我以前在校改牛高4的时候动过重新从光盘提取文本的念头，但没装虚拟机，高估了原始光盘加密的水平，也低估了从垃圾文件底本校改修正的巨大工作量，结果掉进了一个天坑。

貌似tsiank提取的html文件没有修正音标，我此前写过一个相关script，应该继续有效，贴在这里。

```plaintext
#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
OALD4原始文档音标使用了"Kingsoft Phonetic Plain"字体，
导致不安装该字体的电脑会出现乱码，在此批量替换修正。
金山词霸音标字体编码表可参见 http://www.fmddlmyy.cn/text66.html ,
不过在此处改正OALD4使用的替换表略有不同。

"""

import re

def converter(match):
    phonetic_string = match.group()
    correct_symbol = phonetic_string.replace('5', 'ˈ')\
        .replace('7', 'ˌ').replace('9', 'ˌ')\
        .replace('A', 'æ').replace('B', 'ɑ')\
        .replace('C', 'ɒ').replace('E', 'ə')\
        .replace('F', 'ʃ').replace('I', 'ɪ')\
        .replace('J', 'u').replace('N', 'ŋ')\
        .replace('Q', 'ʌ').replace('R', 'ɔ')\
        .replace('T', 'ð').replace('U', 'ʊ')\
        .replace('V', 'ʒ').replace('W', 'θ')\
        .replace('Z', 'ɛ').replace('\\', 'ɜ')\
        .replace('^', 'ɡ').replace(':', 'ː')\
        .replace('[', 'ɝ').replace('L', 'ɚ')\
        .replace('?@', 'US').replace('`', 'ˈ')

    return correct_symbol

def main():
    file_src = r'C:\Users\xxx\Desktop\01.txt'
    file_dst = r'C:\Users\xxx\Desktop\02.txt'

    with open(file_src, 'r', encoding='UTF-8') as f:
        text = f.read()

        p = re.compile('/ <pho>.*?</pho>/')

        result = re.sub(p, converter, text)

    with open(file_dst, 'w', encoding='UTF-8') as fo:
        fo.write(result)

if __name__ == ' __main__':
    main()

```

---

<div class="post-metadata">

作者： ![shiruxue](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/s/bbe5ce/32.png) [@shiruxue](https://forum.freemdict.com/u/shiruxue)\
发布日期： [2022 年8 月 27 日 12:42 UTC](https://forum.freemdict.com/t/topic/14696/4 "2022-08-27T12:42:41Z")

</div>

出手了吗？看来感兴趣的坛友不多啊！

---

<div class="post-metadata">

作者： ![shiruxue](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/s/bbe5ce/32.png) [@shiruxue](https://forum.freemdict.com/u/shiruxue)\
发布日期： [2022 年8 月 27 日 13:28 UTC](https://forum.freemdict.com/t/topic/14696/6 "2022-08-27T13:28:05Z")

</div>

OALD的众多的译者中能被广大读者记住的恐怕只有第四版的李北达先生了，而第四版也是霍恩比原版的最后一版，第6版以后的版本与前四版已有很大的不同。

---

<div class="post-metadata">

作者： ![anon34331345](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/a/d9b06d/32.png) [@anon34331345](https://forum.freemdict.com/u/anon34331345)\
发布日期： [2022 年8 月 27 日 13:58 UTC](https://forum.freemdict.com/t/topic/14696/8 "2022-08-27T13:58:01Z")

</div>

推崇牛四的都是英语本就特别好的人。

> 四十岁之后不滞于物，草木竹石均可为剑。自此精进，渐入无剑胜有剑之境。

包括我在内的普通人，还是老老实实用较新的学习型词典吧，单位时间受益更多。

---

<div class="post-metadata">

作者： ![shiruxue](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/s/bbe5ce/32.png) [@shiruxue](https://forum.freemdict.com/u/shiruxue)\
发布日期： [2022 年8 月 27 日 14:38 UTC](https://forum.freemdict.com/t/topic/14696/10 "2022-08-27T14:38:36Z")

</div>

那你的航母呢？

---

<div class="post-metadata">

作者： ![shiruxue](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/s/bbe5ce/32.png) [@shiruxue](https://forum.freemdict.com/u/shiruxue)\
发布日期： [2022 年8 月 27 日 14:42 UTC](https://forum.freemdict.com/t/topic/14696/11 "2022-08-27T14:42:12Z")

</div>

嗯，以前同时装过牛津高阶精灵（牛7）和朗5，牛7用得多些，学习型词典有个问题，解释得很绕。现在用欧路，蓝登书屋大学词典很好用。

---

<div class="post-metadata">

作者： ![shiruxue](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/s/bbe5ce/32.png) [@shiruxue](https://forum.freemdict.com/u/shiruxue)\
发布日期： [2022 年8 月 28 日 05:00 UTC](https://forum.freemdict.com/t/topic/14696/13 "2022-08-28T05:00:50Z")

</div>

再看看#8的回复

---

<div class="post-metadata">

作者： ![shiruxue](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/s/bbe5ce/32.png) [@shiruxue](https://forum.freemdict.com/u/shiruxue)\
发布日期： [2022 年8 月 28 日 05:33 UTC](https://forum.freemdict.com/t/topic/14696/15 "2022-08-28T05:33:30Z")

</div>

> [@anon69319103](#):
>
> 兴趣不大。

不要用就好啦~~

---

<div class="post-metadata">

作者： ![aimdict](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/a/dbc845/32.png) [@aimdict](https://forum.freemdict.com/u/aimdict)\
发布日期： [2022 年8 月 28 日 07:28 UTC](https://forum.freemdict.com/t/topic/14696/17 "2022-08-28T07:28:34Z")

</div>

牛津词典当然不能收剑桥 😀

---

<div class="post-metadata">

作者： ![mdxfan](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/mdxfan/32/31774_2.png) [@mdxfan](https://forum.freemdict.com/u/mdxfan)\
发布日期： [2022 年9 月 3 日 12:36 UTC](https://forum.freemdict.com/t/topic/14696/18 "2022-09-03T12:36:50Z")

</div>

非常期待！这本词典价值恐怕还包括整本阅读。

记得以前在国外大学图书馆有一本落满了灰的原版OALD第三版，打开之后纸页泛黄。但释义文本与后来的ESL词典相比总有一种说不出的优雅。

安静的下午，一个人坐在图书馆的角落地上，随机读几页，现在还是我无比怀念的时光。

原版第三版词典不厚，字体也不小，普通印刷不是字典纸。握在手里手感很好，不像现在的词典都是大砖头。

---

<div class="post-metadata">

作者： ![First\_Last](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/first_last/32/5_2.png) [@First\_Last](https://forum.freemdict.com/u/First_Last)\
发布日期： [2022 年11 月 18 日 10:02 UTC](https://forum.freemdict.com/t/topic/14696/19 "2022-11-18T10:02:53Z")

</div>

后来有更新加了个图片版mdx  
走过路过不要再错过。

> **[孤岛 - 山长水阔知何处](https://haibao.me/)**
>
> 山长水阔知何处

---

<div class="post-metadata">

作者： ![zaojz](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/z/c68b51/32.png) [@zaojz](https://forum.freemdict.com/u/zaojz)\
发布日期： [2022 年11 月 19 日 02:58 UTC](https://forum.freemdict.com/t/topic/14696/20 "2022-11-19T02:58:19Z")

</div>

有人能放一个mdx出来吗

---

<div class="post-metadata">

作者： ![shiruxue](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/s/bbe5ce/32.png) [@shiruxue](https://forum.freemdict.com/u/shiruxue)\
发布日期： [2022 年11 月 19 日 06:02 UTC](https://forum.freemdict.com/t/topic/14696/21 "2022-11-19T06:02:07Z")

</div>

这是tsiank自己建的网站？赞！不过很多文章附后的百度链接都失效了！

---

<div class="post-metadata">

作者： ![hahaya](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/h/77aa72/32.png) [@hahaya](https://forum.freemdict.com/u/hahaya)\
发布日期： [2022 年12 月 23 日 13:21 UTC](https://forum.freemdict.com/t/topic/14696/22 "2022-12-23T13:21:07Z")

</div>

> [@First\_Last](#):
>
> 图片版mdx

这个在哪里，提到的这个网站上没找到啊

---

<div class="post-metadata">

作者： ![amob](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/amob/32/14630_2.png) [@amob](https://forum.freemdict.com/u/amob)\
发布日期： [2024 年8 月 9 日 01:17 UTC](https://forum.freemdict.com/t/topic/14696/24 "2024-08-09T01:17:15Z")

</div>

你这个替换表和金山音标字体实际情况不符，我自己挨个将字体对照Unicode输入的如下，希望对大家替换音标有帮助：

```auto
def replace_phonetic_symbols(text):
    return (text.replace('1', '…')
				.replace('4', '։')
				.replace('5', 'ˈ')
				.replace('6', '!')
                .replace('7', 'ˌ')
                .replace('8', '?')
				#.replace('9', 'ʻ')
                .replace(':', 'ː')
                .replace('<', 'ü')
                .replace('=', 'ê')
                .replace('?', '𝑈')
                .replace('@', '𝑆')
                .replace('A', 'æ')
                .replace('B', 'ɑ')
                .replace('C', 'ɔ')
                .replace('D', 'ã')
                .replace('E', 'ə')
                .replace('F', 'ʃ')
                .replace('G', 'ɣ')
                .replace('H', 'ɥ')
                .replace('I', 'ɪ')
                .replace('J', 'ʊ')
                .replace('K', 'ʏ')
                .replace('L', 'ɚ')
                .replace('M', 'ɲ')
                .replace('N', 'ŋ')
                .replace('O', 'ɶ')
                .replace('P', 'ɵ')
                .replace('Q', 'ʌ')
                .replace('R', 'ɔ')
                .replace('S', 'ɔ̃')
                .replace('T', 'ð')
                .replace('U', 'u')
                .replace('V', 'ʒ')
                .replace('W', 'θ')
                .replace('X', 'ø')
                .replace('Y', 'ɛ̃')
                .replace('Z', 'ɛ')
                .replace('[', 'ə')
                .replace('\\', 'ɜ')
                .replace(']', 'ç')
                .replace('^', 'ɡ')
                .replace('_', '̌')
                .replace('`', '̀')
                .replace('{', '─')
                .replace('|', '╎')
                .replace('}', '╲')
				.replace('', 'ā')
				.replace('', 'á')
				.replace('', 'ǎ')
				.replace('', 'à')
				.replace('', 'ē')
				.replace('', 'é')
				.replace('', 'ě')
				.replace('', 'è')
				.replace('', 'ī')
				.replace('', 'í')
				.replace('', 'ǐ')
				.replace('', 'ì')
				.replace('', 'ō')
				.replace('', 'ó')
				.replace('', 'ǒ')
				.replace('', 'ò')
				.replace('', 'ū')
				.replace('', 'ú')
				.replace('', 'ǔ')
				.replace('', 'ù')
				.replace('', 'ǖ')
				.replace('', 'ǘ')
				.replace('', 'ǚ')
				.replace('', 'ǜ')
				.replace('', 'm̄')
				.replace('', 'ḿ')
				.replace('', 'm̌')
				.replace('', 'm̀')
				.replace('', 'n̄')
				.replace('', 'ń')
				.replace('', 'ň')
				.replace(' ', 'ǹ'))

```
