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

我的绝大多数词典都是mdict的。
可不可以为每个词典都加个属性,开不开启全文搜索功能,或者添加个对索引文件的统一管理功能。
还有ng的索引好像比原版的大。

暂无计划

确实大了很多,实现方式不一样。基于xapian实现的。功能也更强大,速度更快。

OED now js加载失败
ps: MW now同样也有这个问题,ODE我没用过,可能也有类似问题


已解决,加onload event:
(该方法不要在欧路上使用,反而会使js失效)
image

1 个赞

我印象中调试时好像没问题啊。。
我觉得你这句代码不如放到js文件里去,把mdx里这句运行删掉。另外据我了解,用window.addEventListener(“DOMContentLoaded”, prepare)或者用jquery的$(document).ready方法会好那么一点点,在DOM加载完、不需要等待渲染完成就能运行js,可能会快一点点。而且我以前这么干时好像也没有反馈说欧路不能用。

1 个赞

gd上不用事件报prepare未定义,
加了事件手机上欧路会出问题,手机欧路以前折叠js失效的问题可太多了

丢进js里确实是最优解,但是那个<script>单独调用我也不知道作者当时怎么想的

函数定义所在的<script>用了defer,又把函数调用放在开头,不出错才奇怪吧

defer是gd的bug,最近版本修复了

Goldendict-ng 24.11.0-a16e560c
Vocabulary.com有些词会一闪之后空白了

回退到ad19263 又正常了
Goldendict-ng 24.11.0.ad19263 at 2024-11-26T17:07:11Z
Qt 6.7.2 MSVC 194234433 windows winnt 10.0.19045 x86_64-little_endian-llp64
Flags: MAKE_ZIM_SUPPORT EPWING_SUPPORT MAKE_CHINESE_CONVERSION_SUPPORT no_ffmpeg_player

是在线词典吗

报告一个bug:

离线的,BT4 老兄的版本
用回ad19263 又没问题了

具体哪些词,最好录个屏,或者截个图看下。


可能是和某个js冲突了,
单一个词典里面查relevant 倒是没有复现出来

看不出来是哪本词典的问题, 单独把dictionary.com禁用了,会正常吗

没环境复现,延后排查吧。记得这个下拉框用的是qt原生控件。Qcompleter

这个目前不是必现,等我总结出规律,再补充一下

把Vocabulary.com 单独分一组是正常的,
貌似和Oxford ALD_8th_bt4baidu 这个冲突,不在同一组就没问题了,切换的丝滑得很

感谢

[Merge pull request #2005 from xiaoyifang/opt/ui-interacti]的时候是不是合并失败了?

Build and analyze
cancelled 5 hours ago in 1m 43s
错误信息
15s
Run sonar-scanner --define sonar.cfamily.compile-commands=./build_dir/compile_commands.json
INFO: Scanner configuration file: /home/runner/work/goldendict/goldendict/.sonar/sonar-scanner-5.0.1.3006-linux/conf/sonar-scanner.properties
INFO: Project root configuration file: /home/runner/work/goldendict/goldendict/sonar-project.properties
INFO: SonarScanner 5.0.1.3006
INFO: Java 17.0.7 Eclipse Adoptium (64-bit)
INFO: Linux 6.8.0-1017-azure amd64
INFO: User cache: /home/runner/.sonar/cache
INFO: Analyzing on SonarQube server 11.4.0.221
INFO: Default locale: "en", source code encoding: "UTF-8"
INFO: Load global settings
INFO: Load global settings (done) | time=302ms
INFO: Server id: 1BD809FA-AWHW8ct9-T_TB3XqouNu
INFO: Loading required plugins
INFO: Load plugins index
INFO: Load plugins index (done) | time=547ms
INFO: Load/download plugins
INFO: Load/download plugins (done) | time=457ms
INFO: Found an active CI vendor: 'Github Actions'
INFO: Load project settings for component key: 'xiaoyifang_goldendict'
INFO: Load project settings for component key: 'xiaoyifang_goldendict' (done) | time=503ms
INFO: Process project properties
INFO: Project key: xiaoyifang_goldendict
INFO: Base dir: /home/runner/work/goldendict/goldendict
INFO: Working dir: /home/runner/work/goldendict/goldendict/.scannerwork
INFO: Load project branches
INFO: Load project branches (done) | time=320ms
INFO: Check ALM binding of project 'xiaoyifang_goldendict'
WARN: Failed to check if project 'xiaoyifang_goldendict' is bound
INFO: Detected project binding: ERROR
INFO: Check ALM binding of project 'xiaoyifang_goldendict' (done) | time=174ms
INFO: Load project pull requests
INFO: Load project pull requests (done) | time=712ms
INFO: Load branch configuration
INFO: Github event: push
INFO: Auto-configuring branch staged
INFO: Load branch configuration (done) | time=6ms
INFO: Load quality profiles
INFO: Load quality profiles (done) | time=338ms
INFO: Load active rules
Error: The operation was canceled.

同一个人的作品吗,后续看下。有词典下载链接吗,

另,临时禁用词典的话,直接点击词典栏的图标就可以了。