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

object 标签的 data 属性,没有替换成 bres 路径,然后静态的 svg 图片直接使用 img 标签就可以了,有交互的需要才使用 object 标签。

<img src="media/x6236.svg"> # 推荐使用
<object data="media/x6236.svg" type="image/svg+xml"></object>
1 个赞

object 确实没有替换。
不过

<img src="media/x6236.svg"> # 推荐使用

这种貌似也没法正常显示出来。

mdd 里不存在 x6236.svg 文件。tiger.svg.zip (22.7 KB)

1 个赞

i’ve built goldendict-ng from the master after the recent PR, and it seems that the bug was fixed:

Thanks for you

btw i know that goldendict-ng already has a feature that allows you to use popups.
but it’s a bit complex and it can be a problem if the user is looking for something minimal, as in “i just want to know the meaning of this in a specific dictionary”.

and yes, there’s the tab functionality, which allows you to do that, but it’s slow

currently i’ve been using a simple popup which was written in 200 lines of C:

while the design is over-simplistic , it’s very powerful, specially for those who are making the monolingual transition.

unfortunately there are many drawbacks:

  • it’s Xorg-only
  • it depends on sdcv (therefore you need to set up sdcv)
  • it’s not that easy to compile for the end-users (people who are not familiar with code)

my humble proposal:

  • create a simple window like this one
  • in the settings let the user config that small window to select which dictionaries to show
  • limit the scope of usage to the goldendict-ng’s own selection

this would help a lot of people who want to read monolingual dictionaries…
i know it’s too much too ask, but Qt has a lot of functions, and i wanted to know whether this sounds feasible or not…

1 个赞

image

the gd-ng popup can be configured to display like this.

this is not my idea, it doesnt let you read definitions

give the screenshots of
Edit->Preference->Scanpopup
Edit->Preference->HotKey

1 个赞

thanks for being patient, i appreciate your kindness.
but it seems that i’ll stick to my popup, i tested those configurations but it doesn’t give the same behavior as the one that im using right now

Qt 6.7.2编译版本中,上面这个问题解决了。

有个minor bug还在,就是Qt6.7.2编译版的有些群组快捷键需要按两次才行,比如Command+Ctrl+L 和 Alt+Ctrl+L。
而Command+Ctrl+U和Command+Ctrl+I就没这个问题,可以一次就切换群组

Qt 6.6.3编译版则没有这个minor bug,所有快捷键都可以一次触发

Windows版本上可以了。什么时候可以给macOS版本也加上这个弹窗Ctrl+F页内查找功能就好了

macOS版目前现状:

感觉是焦点的问题

你在弹窗里点一下 然后ctrl+f可用吗

点了,在弹窗里输入了一些单词,还是一样

不要输入单词 可以用吗

打开弹窗,点击一下弹窗,不输入单词,点击ctrl+f,还是不能用

发现GoldenDict设置的词典目录下有个.gdindex目录,不过里面只有20几个索引。不知道这个索引目录和portable里的index索引目录之间是什么关系,两个目录里的索引不知道能否互相转换
image

应该不是本软件产生的吧。

嗯,可能是以前用gd++的时候遗留下来的