# 【历史讨论】GoldenDict-ng 基于Qt5.15.2/Qt6.X版本

**URL:** <https://forum.freemdict.com/t/topic/11495>\
**Category:** GoldenDict-ng\
**Tags:** goldendict\
**Created:** [2022 年3 月 14 日 13:17 UTC](https://forum.freemdict.com/t/topic/11495 "2022-03-14T13:17:30Z")\
**Posts on this page:** 20\
**Page:** 149

<div class="post-metadata">

**Author:** ![artour](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/artour/32/7647_2.png) [@artour](https://forum.freemdict.com/u/artour)\
**Post date:** [2024 年2 月 24 日 09:12 UTC](https://forum.freemdict.com/t/topic/11495/3123 "2024-02-24T09:12:56Z")

</div>

@xiaoyifang， 你好！ [鉴于Vocabulary.com](http://xn--Vocabulary-cp3ph236d.com) Dictionary （20170103修订第三版，作者：bt4baidu）（下载链接: [百度网盘 请输入提取码](https://pan.baidu.com/s/1JvHITCjjFuIzXIxXoK_SvQ?pwd=Voca) 提取码: Voca）在欧陆词典和原 [GoldenDict-1.5.0\_(QT\_5123)](https://sourceforge.net/projects/goldendict/files/goldendict/1.5/Qt5/)上均运行正常，而贵版Goldend-ng（测试用6.6.2-GoldenDict.exe\_windows-2019\_20240221）不能在usage examples下点击Prev和Next，请给予解决！谢谢！

另外，发现屏幕取词已勾选【取启动程序时启动屏幕取词】，但是在PDF文件或文本文件中，鼠标所在英文单词无取词反应，不知道时何缘故？

另外，每次Ctrl+C 复制任何内容（无取词意向）都弹出屏幕取词窗口，这个违反常理。原官方版可以设置位Ctrl+C+C（连续两次按C键）才取词，否则不取词，而新版软件无法这样设置成功。请问有什么解决办法？

---

<div class="post-metadata">

**Author:** ![last\_idol](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/last_idol/32/2205_2.png) [@last\_idol](https://forum.freemdict.com/u/last_idol)\
**Post date:** [2024 年2 月 24 日 09:50 UTC](https://forum.freemdict.com/t/topic/11495/3124 "2024-02-24T09:50:48Z")

</div>

你检查下菜单-配置-网络-禁止载入来自其他站点的内容（封杀广告），注意前面的✓需要去掉。NG是可以在 Usage Examples 下点击 Prev 和 Next 的。

---

<div class="post-metadata">

**Author:** ![Frank404](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/f/b5a626/32.png) [@Frank404](https://forum.freemdict.com/u/Frank404)\
**Post date:** [2024 年2 月 24 日 09:56 UTC](https://forum.freemdict.com/t/topic/11495/3125 "2024-02-24T09:56:14Z")

</div>

> **[Popup Window - GoldenDict-NG](https://xiaoyifang.github.io/goldendict-ng/ui_popup/)**
>
> GoldenDict-ng is a open source, cross platform, multi formats, feature rich dictionary 是一个开源跨平台支持各种格式的字典程序

你看下官网的描述，取词弹窗触发的方式是通过复制文本，也就是 crtl+c 。（这块好像是因为通过其他方式不好实现）  
而首选项中使用热键翻译剪贴板内容的默认热键是 crtl+c+c 。  
因此会造成你说的这个情况，从使用方便的角度，目前这个设计确实有点不合逻辑，正常来说大家都习惯于开启屏幕取词就不需要额外按键了。

---

<div class="post-metadata">

**Author:** ![artour](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/artour/32/7647_2.png) [@artour](https://forum.freemdict.com/u/artour)\
**Post date:** [2024 年2 月 24 日 13:24 UTC](https://forum.freemdict.com/t/topic/11495/3126 "2024-02-24T13:24:20Z")

</div>

谢谢！的确时这样的。  
我想问问，使用时用Portable模式好还是非portable模式好？ 为什么我在非portable模式下见好分组信息后，改变相应config路径使其适用portabel模式，可是分组信息下的词典就全部丢失了？ (反之依然，先在portable模式建好分组和词典信息的config文件到非portable模式下，词典项全部丢失)，之前的GoldenDict，在portable模式和非portabe模式下，只用改边一下config里的词典路径，就可以正常用了。

---

<div class="post-metadata">

**Author:** ![xiaoyifang](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/x/df788c/32.png) [@xiaoyifang](https://forum.freemdict.com/u/xiaoyifang)\
**Post date:** [2024 年2 月 24 日 14:31 UTC](https://forum.freemdict.com/t/topic/11495/3127 "2024-02-24T14:31:25Z")

</div>

> [@artour](#):
>
> 另外，发现屏幕取词已勾选【取启动程序时启动屏幕取词】，但是在PDF文件或文本文件中，鼠标所在英文单词无取词反应，不知道时何缘故？

windows下不支持 鼠标取词。你可以结合其他取词软件使用

> [@artour](#):
>
> 另外，每次Ctrl+C 复制任何内容（无取词意向）都弹出屏幕取词窗口，这个违反常理

把灯泡关掉

---

<div class="post-metadata">

**Author:** ![artour](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/artour/32/7647_2.png) [@artour](https://forum.freemdict.com/u/artour)\
**Post date:** [2024 年2 月 25 日 02:09 UTC](https://forum.freemdict.com/t/topic/11495/3128 "2024-02-25T02:09:08Z")

</div>

请问windows下用Portable模式好还是非portable模式好？ 为什么我在非portable模式下见好分组信息后，改变相应config路径使其适用portabel模式，可是分组信息下的词典就不显示？ (反之依然，先在portable模式建好分组和词典信息的config文件到非portable模式下，词典项全部丢失)，之前的GoldenDict，在portable模式和非portabe模式下切换，只用改边一下config里的词典路径，就可以正常用了。

还有，反应下在线词典显示的问题，比如添加剑桥英汉词典（[Cambridge English–Chinese (Simplified) Dictionary: English to Mandarin Chinese](https://dictionary.cambridge.org/dictionary/english-chinese-simplified/%25GDWORD%25%EF%BC%89%E6%9F%A5%E8%AF%8D%E6%97%B6%EF%BC%8C%E6%80%BB%E4%BC%9A%E5%BC%B9%E5%87%BA%E9%9C%80%E8%A6%81%E7%82%B9%E6%8E%A5%E5%8F%97%E7%9A%84%E9%A1%B5%E9%9D%A2%EF%BC%8C%E8%80%8C%E4%B8%94%E5%8F%91%E9%9F%B3%E5%96%87%E5%8F%AD%E6%98%BE%E7%A4%BA%E4%B8%8D%E5%87%BA%E3%80%82%EF%BC%88%E6%AC%A7%E9%99%86%E6%AD%A3%E5%B8%B8%EF%BC%89)

---

<div class="post-metadata">

**Author:** ![zaojz](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/z/c68b51/32.png) [@zaojz](https://forum.freemdict.com/u/zaojz)\
**Post date:** [2024 年2 月 25 日 03:03 UTC](https://forum.freemdict.com/t/topic/11495/3129 "2024-02-25T03:03:33Z")

</div>

。。。。。。

---

<div class="post-metadata">

**Author:** ![artour](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/artour/32/7647_2.png) [@artour](https://forum.freemdict.com/u/artour)\
**Post date:** [2024 年2 月 25 日 03:11 UTC](https://forum.freemdict.com/t/topic/11495/3130 "2024-02-25T03:11:59Z")

</div>

不要这样好不好，论事不论人。

---

<div class="post-metadata">

**Author:** ![SChang](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/s/cdc98d/32.png) [@SChang](https://forum.freemdict.com/u/SChang)\
**Post date:** [2024 年2 月 25 日 15:33 UTC](https://forum.freemdict.com/t/topic/11495/3131 "2024-02-25T15:33:35Z")

</div>

多谢！但还是会报错，这是今天的报告，不知道是哪个词典还是什么设置出了问题，查单字的时候会出现这种情况，如果查词只出现部分词典，就不会：  
[0225报错.txt](https://forum.freemdict.com/uploads/short-url/32X4daB4uruI1dlaqTGmTkxW865.txt) (169.2 KB)

---

<div class="post-metadata">

**Author:** ![last\_idol](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/last_idol/32/2205_2.png) [@last\_idol](https://forum.freemdict.com/u/last_idol)\
**Post date:** [2024 年2 月 25 日 15:52 UTC](https://forum.freemdict.com/t/topic/11495/3132 "2024-02-25T15:52:19Z")

</div>

不是设置问题，这两个日志文件里都是同一个错误，应该是有词典的mdd文件损坏了。建议单本单本词典测试下，应该很好复现。如果词典很多的话，可以创建一个新的分组，每次测试一半的词典。

---

<div class="post-metadata">

**Author:** ![random](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/random/32/19006_2.png) [@random](https://forum.freemdict.com/u/random)\
**Post date:** [2024 年2 月 26 日 05:13 UTC](https://forum.freemdict.com/t/topic/11495/3133 "2024-02-26T05:13:09Z")

</div>

有没有批量检测mdd是否损坏的工具

---

<div class="post-metadata">

**Author:** ![last\_idol](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/last_idol/32/2205_2.png) [@last\_idol](https://forum.freemdict.com/u/last_idol)\
**Post date:** [2024 年2 月 26 日 11:10 UTC](https://forum.freemdict.com/t/topic/11495/3134 "2024-02-26T11:10:19Z")

</div>

没有现成的工具，mdd需要提取所有文件才能确定文件是否损坏。

---

<div class="post-metadata">

**Author:** ![laoyu](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/l/ba9def/32.png) [@laoyu](https://forum.freemdict.com/u/laoyu)\
**Post date:** [2024 年2 月 26 日 15:01 UTC](https://forum.freemdict.com/t/topic/11495/3135 "2024-02-26T15:01:15Z")

</div>

按我的理解，不同模式下的配置文件存储位置是不同的，具体我记不清了。所以只更改词典库的路径肯定不行的，分组信息应该是保存在当前的配置文件里的，改变模式首先得复制原配置文件，记得从传统模式变成Portable模式第一步就是要把原来在用户文件夹里的两个文件复制到Portable文件夹里

 ![image](https://forumcdn.freemdict.com/uploads/default/original/3X/0/5/05d29025d6937cb3d200de17dabc2ef925115f10.png)  
如图所示，打开一次，配置文件和查询历史文件会随同操作更新的。  
而Portable模式我理解最大的好处在于可以自定义安装位置，移动后，相同词典不用重复建立索引文件。  
没有仔细看文档说明，纯属小白的猜测，希望对你有启发。

---

<div class="post-metadata">

**Author:** ![SChang](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/s/cdc98d/32.png) [@SChang](https://forum.freemdict.com/u/SChang)\
**Post date:** [2024 年2 月 26 日 16:01 UTC](https://forum.freemdict.com/t/topic/11495/3136 "2024-02-26T16:01:38Z")

</div>

好的，谢谢！

---

<div class="post-metadata">

**Author:** ![SChang](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/s/cdc98d/32.png) [@SChang](https://forum.freemdict.com/u/SChang)\
**Post date:** [2024 年2 月 26 日 16:16 UTC](https://forum.freemdict.com/t/topic/11495/3137 "2024-02-26T16:16:20Z")

</div>

解决了，删除了一本词典，瞬间就好了。

---

<div class="post-metadata">

**Author:** ![artour](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/artour/32/7647_2.png) [@artour](https://forum.freemdict.com/u/artour)\
**Post date:** [2024 年2 月 27 日 02:11 UTC](https://forum.freemdict.com/t/topic/11495/3138 "2024-02-27T02:11:04Z")

</div>

@xiaoyifang ,楼主好！目前个人发现个别问题，请助力攻克！

1. 在非portable模式（传统模式）下见好分组信息后，改变相应config路径使其适用portabel模式，可是分组信息下的词典就不显示了 (反之依然，先在portable模式建好分组和词典信息的config文件到非portable模式下，词典项全部丢失)。
2. 在线词典显示不良，比如添加剑桥英汉词典（[Cambridge English–Chinese (Simplified) Dictionary: English to Mandarin Chinese](https://dictionary.cambridge.org/dictionary/english-chinese-simplified/%25GDWORD%25%EF%BC%89%E6%9F%A5%E8%AF%8D%E6%97%B6%EF%BC%8C%E6%80%BB%E4%BC%9A%E5%BC%B9%E5%87%BA%E9%9C%80%E8%A6%81%E7%82%B9%E6%8E%A5%E5%8F%97%E7%9A%84%E9%A1%B5%E9%9D%A2%EF%BC%8C%E8%80%8C%E4%B8%94%E5%8F%91%E9%9F%B3%E5%96%87%E5%8F%AD%E6%98%BE%E7%A4%BA%E4%B8%8D%E5%87%BA%E3%80%82)
3. 经典的朗文词典LDOCE5++ En-Cn V2.15在显示窗口右下角的Longman图标时，总是显示在该词条的最下端，而不是窗口的右下角（比如在查词：about时。）

---

<div class="post-metadata">

**Author:** ![xiaoyifang](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/x/df788c/32.png) [@xiaoyifang](https://forum.freemdict.com/u/xiaoyifang)\
**Post date:** [2024 年2 月 27 日 06:28 UTC](https://forum.freemdict.com/t/topic/11495/3139 "2024-02-27T06:28:46Z")

</div>

> [@artour](#):
>
> 在非portable模式（传统模式）下见好分组信息后，改变相应config路径使其适用portabel模式，可是分组信息下的词典就不显示了 (反之依然，先在portable模式建好分组和词典信息的config文件到非portable模式下，词典项全部丢失)。

目前不支持来回切换。 知道原因，不方便修改。

> [@artour](#):
>
> 在线词典显示不良，比如添加剑桥英汉词典（[Cambridge English–Chinese (Simplified) Dictionary: English to Mandarin Chinese](https://dictionary.cambridge.org/dictionary/english-chinese-simplified/%25GDWORD%25%EF%BC%89%E6%9F%A5%E8%AF%8D%E6%97%B6%EF%BC%8C%E6%80%BB%E4%BC%9A%E5%BC%B9%E5%87%BA%E9%9C%80%E8%A6%81%E7%82%B9%E6%8E%A5%E5%8F%97%E7%9A%84%E9%A1%B5%E9%9D%A2%EF%BC%8C%E8%80%8C%E4%B8%94%E5%8F%91%E9%9F%B3%E5%96%87%E5%8F%AD%E6%98%BE%E7%A4%BA%E4%B8%8D%E5%87%BA%E3%80%82)

在线词典的支持收到cors的影响。 这个在目前的模式下没法修改。后续可能会调整处理的方式。

---

<div class="post-metadata">

**Author:** ![xiaoyifang](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/x/df788c/32.png) [@xiaoyifang](https://forum.freemdict.com/u/xiaoyifang)\
**Post date:** [2024 年2 月 27 日 06:36 UTC](https://forum.freemdict.com/t/topic/11495/3140 "2024-02-27T06:36:07Z")

</div>

> [@artour](#):
>
> 经典的朗文词典LDOCE5++ En-Cn V2.15在显示窗口右下角的Longman图标时，总是显示在该词条的最下端，而不是窗口的右下角（比如在查词：about时。）

这个是受到一个css的特性的影响，[contain-intrinsic-size - CSS: Cascading Style Sheets | MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/contain-intrinsic-size)

一般的词典都没有这个的支持，后续看是否移除掉。这个内置css样式

或者你手工重写下也可以。参考 [大神帮我看下，为啥我的goldenMDict老是闪退？一查字就闪退？ - #12，来自 xiaoyifang](https://forum.freemdict.com/t/topic/24123/12)

后续会只在 现代样式下 启用这个特性。

> <https://github.com/xiaoyifang/goldendict-ng/pull/1408/files>

---

<div class="post-metadata">

**Author:** ![random](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/random/32/19006_2.png) [@random](https://forum.freemdict.com/u/random)\
**Post date:** [2024 年2 月 27 日 08:08 UTC](https://forum.freemdict.com/t/topic/11495/3141 "2024-02-27T08:08:50Z")

</div>

> [@xiaoyifang](#):
>
> 目前不支持来回切换

目前已经是portable模式了。想把mdx词库移到别的存储位置，这种情况应该不需要重新索引，是吗？

或者需要进行哪些设置可以保证修改词库位置后，不用重新索引，并且保留词典分组信息

---

<div class="post-metadata">

**Author:** ![xiaoyifang](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/x/df788c/32.png) [@xiaoyifang](https://forum.freemdict.com/u/xiaoyifang)\
**Post date:** [2024 年2 月 27 日 10:18 UTC](https://forum.freemdict.com/t/topic/11495/3142 "2024-02-27T10:18:24Z")

</div>

现在。需要重新索引，

如果不想重新索引，可以更改词典计算dictionaryId的逻辑，计算的时候不要包含 词典所在目录的父目录信息。

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

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