Skip to content

feat: Add intelligent "Meaning" tool with dictionary/translation auto-detection#1578

Open
nov3o wants to merge 1 commit intojohnfactotum:gtk4from
nov3o:gtk4
Open

feat: Add intelligent "Meaning" tool with dictionary/translation auto-detection#1578
nov3o wants to merge 1 commit intojohnfactotum:gtk4from
nov3o:gtk4

Conversation

@nov3o
Copy link
Copy Markdown

@nov3o nov3o commented Sep 14, 2025

Summary

• Replace separate Dictionary/Translate tools with unified "Meaning" tool
• Auto-detect: single words → Dictionary, phrases → Translation
• Fallback: Dictionary lookup fails → Translation mode available with language selection
• Manual switching with Dictionary/Translate tabs

screencast-400px

@johnfactotum
Copy link
Copy Markdown
Owner

It's not clear to me what use case this would be advantageous for. Perhaps if you need to switch back and forth between different tools. It used to have a "tabbed" design like this, together with the Wikipedia tool, which is similar to the design used by Kindle. But I think the current design does have some advantage in its simplicity.

As for the implementation, for a design like this one it would probably be better to use the new AdwToggleGroup widget. Also for detecting multiple words one should probably use Intl.Segmenter or something like that. There are other problems as well, such as some labels seemingly not being translatable, and the HTML page is not added to the GResource list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants