Supervertaler 1.9.54__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (434) hide show
  1. supervertaler-1.9.54/CHANGELOG.md +3234 -0
  2. supervertaler-1.9.54/FAQ.md +1285 -0
  3. supervertaler-1.9.54/LICENSE +21 -0
  4. supervertaler-1.9.54/MANIFEST.in +31 -0
  5. supervertaler-1.9.54/PKG-INFO +692 -0
  6. supervertaler-1.9.54/README.md +621 -0
  7. supervertaler-1.9.54/Supervertaler.egg-info/PKG-INFO +692 -0
  8. supervertaler-1.9.54/Supervertaler.egg-info/SOURCES.txt +432 -0
  9. supervertaler-1.9.54/Supervertaler.egg-info/dependency_links.txt +1 -0
  10. supervertaler-1.9.54/Supervertaler.egg-info/entry_points.txt +2 -0
  11. supervertaler-1.9.54/Supervertaler.egg-info/not-zip-safe +1 -0
  12. supervertaler-1.9.54/Supervertaler.egg-info/requires.txt +37 -0
  13. supervertaler-1.9.54/Supervertaler.egg-info/top_level.txt +2 -0
  14. supervertaler-1.9.54/Supervertaler.py +37270 -0
  15. supervertaler-1.9.54/api_keys.example.txt +63 -0
  16. supervertaler-1.9.54/assets/ICON_CONVERSION_GUIDE.md +95 -0
  17. supervertaler-1.9.54/assets/MB.ico +0 -0
  18. supervertaler-1.9.54/assets/README.md +0 -0
  19. supervertaler-1.9.54/assets/generate_icons.py +129 -0
  20. supervertaler-1.9.54/assets/icon.ico +0 -0
  21. supervertaler-1.9.54/assets/icon_128.png +0 -0
  22. supervertaler-1.9.54/assets/icon_24.png +0 -0
  23. supervertaler-1.9.54/assets/icon_256.png +0 -0
  24. supervertaler-1.9.54/assets/icon_32.png +0 -0
  25. supervertaler-1.9.54/assets/icon_48.png +0 -0
  26. supervertaler-1.9.54/assets/icon_64.png +0 -0
  27. supervertaler-1.9.54/assets/icon_preview.html +202 -0
  28. supervertaler-1.9.54/assets/icon_sv_modern.svg +18 -0
  29. supervertaler-1.9.54/assets/icon_sv_modern_paths.svg +50 -0
  30. supervertaler-1.9.54/assets/icon_sv_simple.svg +25 -0
  31. supervertaler-1.9.54/assets/patent-drawing-1951.jpg +0 -0
  32. supervertaler-1.9.54/assets/supervertaler_icon_colours.png +0 -0
  33. supervertaler-1.9.54/docs/.nojekyll +0 -0
  34. supervertaler-1.9.54/docs/CNAME +1 -0
  35. supervertaler-1.9.54/docs/SIMILAR_APPS.md +87 -0
  36. supervertaler-1.9.54/docs/apple-touch-icon.png +0 -0
  37. supervertaler-1.9.54/docs/archive/BUGFIX_README.md +204 -0
  38. supervertaler-1.9.54/docs/archive/CHANGELIST.md +383 -0
  39. supervertaler-1.9.54/docs/archive/CHANGELOG_Old.md +1293 -0
  40. supervertaler-1.9.54/docs/archive/FAQ.md +1475 -0
  41. supervertaler-1.9.54/docs/archive/INSTALLATION_v1.7.8.md +508 -0
  42. supervertaler-1.9.54/docs/archive/PROJECT_ORGANIZATION.md +127 -0
  43. supervertaler-1.9.54/docs/archive/TERMBASE_REFACTORING_SUMMARY.md +136 -0
  44. supervertaler-1.9.54/docs/archive/USER_GUIDE_v1.7.8.md +1567 -0
  45. supervertaler-1.9.54/docs/archive/VERIFICATION_CHECKLIST.md +114 -0
  46. supervertaler-1.9.54/docs/archive/development/BEFORE_AFTER_COMPARISON.md +402 -0
  47. supervertaler-1.9.54/docs/archive/development/BUGFIX_SESSION_SUMMARY.md +210 -0
  48. supervertaler-1.9.54/docs/archive/development/COLOR_SCHEME_REFERENCE.md +147 -0
  49. supervertaler-1.9.54/docs/archive/development/COMPACT_LAYOUT_CHANGELOG.md +259 -0
  50. supervertaler-1.9.54/docs/archive/development/COMPACT_LAYOUT_DOCUMENTATION_INDEX.md +275 -0
  51. supervertaler-1.9.54/docs/archive/development/COMPACT_LAYOUT_IMPLEMENTATION_SUMMARY.md +242 -0
  52. supervertaler-1.9.54/docs/archive/development/COMPACT_LAYOUT_UPDATE.md +226 -0
  53. supervertaler-1.9.54/docs/archive/development/COMPLETE_IMPLEMENTATION_SUMMARY.md +224 -0
  54. supervertaler-1.9.54/docs/archive/development/COMPLETE_PROJECT_SUMMARY.md +478 -0
  55. supervertaler-1.9.54/docs/archive/development/DATABASE_FINAL_SUMMARY.md +293 -0
  56. supervertaler-1.9.54/docs/archive/development/DATABASE_IMPLEMENTATION.md +324 -0
  57. supervertaler-1.9.54/docs/archive/development/DATABASE_PRODUCTION_READY.md +304 -0
  58. supervertaler-1.9.54/docs/archive/development/DATABASE_QUICK_REFERENCE.md +246 -0
  59. supervertaler-1.9.54/docs/archive/development/DUAL_VERSION_STRATEGY.md +368 -0
  60. supervertaler-1.9.54/docs/archive/development/FINAL_SESSION_SUMMARY.md +326 -0
  61. supervertaler-1.9.54/docs/archive/development/FOLDER_STRUCTURE_UPDATE.md +208 -0
  62. supervertaler-1.9.54/docs/archive/development/GITHUB_PAGES_SETUP.md +298 -0
  63. supervertaler-1.9.54/docs/archive/development/IMPLEMENTATION_CHECKLIST.md +332 -0
  64. supervertaler-1.9.54/docs/archive/development/IMPLEMENTATION_COMPLETE.md +409 -0
  65. supervertaler-1.9.54/docs/archive/development/IMPLEMENTATION_COMPLETE_COMPACT_LAYOUT.md +362 -0
  66. supervertaler-1.9.54/docs/archive/development/IMPLEMENTATION_READY.md +144 -0
  67. supervertaler-1.9.54/docs/archive/development/IMPLEMENTATION_STATUS_PHASE2_READY.md +332 -0
  68. supervertaler-1.9.54/docs/archive/development/KEYBOARD_SHORTCUTS_MATCHES.md +155 -0
  69. supervertaler-1.9.54/docs/archive/development/LAYOUT_BEFORE_AFTER.md +319 -0
  70. supervertaler-1.9.54/docs/archive/development/MASTER_INDEX.md +333 -0
  71. supervertaler-1.9.54/docs/archive/development/MATCH_DISPLAY_IMPROVEMENTS.md +239 -0
  72. supervertaler-1.9.54/docs/archive/development/MATCH_DISPLAY_LONG_SEGMENTS_UPDATE.md +179 -0
  73. supervertaler-1.9.54/docs/archive/development/MATCH_DISPLAY_QUICK_REFERENCE.md +200 -0
  74. supervertaler-1.9.54/docs/archive/development/MATCH_INSERTION_FEATURES.md +249 -0
  75. supervertaler-1.9.54/docs/archive/development/MATCH_SHORTCUTS_QUICK_REF.md +185 -0
  76. supervertaler-1.9.54/docs/archive/development/MODULAR_ARCHITECTURE_GUIDE.md +266 -0
  77. supervertaler-1.9.54/docs/archive/development/PHASE2_IMPLEMENTATION_CHECKLIST.md +400 -0
  78. supervertaler-1.9.54/docs/archive/development/PHASE2_IMPLEMENTATION_DETAILED_CHECKLIST.md +758 -0
  79. supervertaler-1.9.54/docs/archive/development/PHASE2_IMPLEMENTATION_IN_PROGRESS.md +268 -0
  80. supervertaler-1.9.54/docs/archive/development/PHASE2_NEXT_STEPS.md +232 -0
  81. supervertaler-1.9.54/docs/archive/development/PHASE2_READY_TO_IMPLEMENT.md +255 -0
  82. supervertaler-1.9.54/docs/archive/development/PHASE2_START_HERE.md +188 -0
  83. supervertaler-1.9.54/docs/archive/development/QT_MIGRATION_PLAN.md +517 -0
  84. supervertaler-1.9.54/docs/archive/development/QT_SESSION_SUMMARY.md +439 -0
  85. supervertaler-1.9.54/docs/archive/development/QUICK_SESSION_SUMMARY.md +259 -0
  86. supervertaler-1.9.54/docs/archive/development/RELEASE_Qt_v1.0.0_Phase5.md +263 -0
  87. supervertaler-1.9.54/docs/archive/development/RELEASE_v1.9.38.md +186 -0
  88. supervertaler-1.9.54/docs/archive/development/RELEASE_v3.7.1.md +355 -0
  89. supervertaler-1.9.54/docs/archive/development/RELEASE_v3.7.6.md +236 -0
  90. supervertaler-1.9.54/docs/archive/development/RELEASE_v3.7.7.md +304 -0
  91. supervertaler-1.9.54/docs/archive/development/RESTRUCTURE_COMPLETE.md +132 -0
  92. supervertaler-1.9.54/docs/archive/development/SESSION_DOCUMENTATION_INDEX.md +298 -0
  93. supervertaler-1.9.54/docs/archive/development/SESSION_IMPLEMENTATION_SUMMARY.md +276 -0
  94. supervertaler-1.9.54/docs/archive/development/SESSION_LONG_SEGMENTS_COMPLETE.md +362 -0
  95. supervertaler-1.9.54/docs/archive/development/SESSION_MATCH_FEATURES_COMPLETE.md +341 -0
  96. supervertaler-1.9.54/docs/archive/development/SESSION_STATUS.md +386 -0
  97. supervertaler-1.9.54/docs/archive/development/SESSION_SUMMARY_Phase5.md +169 -0
  98. supervertaler-1.9.54/docs/archive/development/START_HERE.md +353 -0
  99. supervertaler-1.9.54/docs/archive/development/START_IMPLEMENTATION_HERE.md +255 -0
  100. supervertaler-1.9.54/docs/archive/development/STYLE_GUIDES_DELIVERABLES.md +497 -0
  101. supervertaler-1.9.54/docs/archive/development/STYLE_GUIDES_DOCUMENTATION_INDEX.md +380 -0
  102. supervertaler-1.9.54/docs/archive/development/STYLE_GUIDES_FEATURE_SUMMARY.md +356 -0
  103. supervertaler-1.9.54/docs/archive/development/STYLE_GUIDES_IMPLEMENTATION.md +214 -0
  104. supervertaler-1.9.54/docs/archive/development/STYLE_GUIDES_PROJECT_COMPLETION.md +545 -0
  105. supervertaler-1.9.54/docs/archive/development/STYLE_GUIDES_QUICK_REFERENCE.md +354 -0
  106. supervertaler-1.9.54/docs/archive/development/STYLE_GUIDES_VISUAL_ARCHITECTURE.md +343 -0
  107. supervertaler-1.9.54/docs/archive/development/TERMBASE_FIXES.md +150 -0
  108. supervertaler-1.9.54/docs/archive/development/TERMBASE_IMPLEMENTATION.md +281 -0
  109. supervertaler-1.9.54/docs/archive/development/TERMBASE_QUICK_START.md +235 -0
  110. supervertaler-1.9.54/docs/archive/development/TMX_CONCORDANCE_STYLE_HIGHLIGHTING.md +186 -0
  111. supervertaler-1.9.54/docs/archive/development/TMX_DUAL_HIGHLIGHTING.md +217 -0
  112. supervertaler-1.9.54/docs/archive/development/TMX_EDITOR_HIGHLIGHTING_UPDATE.md +170 -0
  113. supervertaler-1.9.54/docs/archive/development/TMX_EDITOR_IMPLEMENTATION.md +287 -0
  114. supervertaler-1.9.54/docs/archive/development/TMX_EDITOR_WORD_HIGHLIGHTING.md +129 -0
  115. supervertaler-1.9.54/docs/archive/development/TMX_TABLE_LAYOUT_INTEGRATED_EDIT.md +176 -0
  116. supervertaler-1.9.54/docs/archive/development/TMX_TREEVIEW_GRID_RESIZABLE.md +207 -0
  117. supervertaler-1.9.54/docs/archive/development/TMX_WORD_HIGHLIGHTING_IMPLEMENTATION_COMPLETE.md +145 -0
  118. supervertaler-1.9.54/docs/archive/development/TMX_WORD_HIGHLIGHTING_SUMMARY.md +65 -0
  119. supervertaler-1.9.54/docs/archive/development/TM_MATCH_PANE_CHECKLIST.md +307 -0
  120. supervertaler-1.9.54/docs/archive/development/TM_MATCH_PANE_IMPLEMENTATION.md +177 -0
  121. supervertaler-1.9.54/docs/archive/development/TM_MATCH_PANE_VISUAL_GUIDE.md +234 -0
  122. supervertaler-1.9.54/docs/archive/development/VISUAL_COLOR_REFERENCE.md +354 -0
  123. supervertaler-1.9.54/docs/archive/development/VISUAL_IMPLEMENTATION_SUMMARY.md +424 -0
  124. supervertaler-1.9.54/docs/archive/sessions/COLOR_FIX_EXPLANATION.md +100 -0
  125. supervertaler-1.9.54/docs/archive/sessions/DATABASE_CONSOLIDATION_REPORT.md +82 -0
  126. supervertaler-1.9.54/docs/archive/sessions/DUAL_EDITOR_WORKFLOW.md +287 -0
  127. supervertaler-1.9.54/docs/archive/sessions/DUAL_SELECTION_SYSTEM.md +83 -0
  128. supervertaler-1.9.54/docs/archive/sessions/IMPROVEMENTS_SUMMARY.md +161 -0
  129. supervertaler-1.9.54/docs/archive/sessions/ISSUES_FIXES_PROGRESS.md +102 -0
  130. supervertaler-1.9.54/docs/archive/sessions/MATCH_DISPLAY_COMPACT_FIXES.md +135 -0
  131. supervertaler-1.9.54/docs/archive/sessions/README_SESSION_TERMBASE.md +208 -0
  132. supervertaler-1.9.54/docs/archive/sessions/SAFE_DELETION_REMINDER.txt +22 -0
  133. supervertaler-1.9.54/docs/archive/sessions/SESSION_SUMMARY.md +178 -0
  134. supervertaler-1.9.54/docs/archive/sessions/TERMBASE_FIXES_APPLIED.md +107 -0
  135. supervertaler-1.9.54/docs/archive/sessions/TESTING_CHECKLIST.md +209 -0
  136. supervertaler-1.9.54/docs/archive/sessions/TMX_EDITOR_ANNOUNCEMENT.md +35 -0
  137. supervertaler-1.9.54/docs/archive/sessions/TRANSLATION_RESULTS_IMPROVEMENTS.md +195 -0
  138. supervertaler-1.9.54/docs/assets/Figure1.png +0 -0
  139. supervertaler-1.9.54/docs/assets/patent-drawing-1951.jpg +0 -0
  140. supervertaler-1.9.54/docs/dev-notes/QA.md +15 -0
  141. supervertaler-1.9.54/docs/dev-notes/STYLE_GUIDES_UI_TEMPLATE.py +332 -0
  142. supervertaler-1.9.54/docs/dev-notes/_Notes_2025-11-21.md +147 -0
  143. supervertaler-1.9.54/docs/dev-notes/_UI_element_names.md +21 -0
  144. supervertaler-1.9.54/docs/dev-notes/_things_to_remind_AIs_of_when_translating.md +19 -0
  145. supervertaler-1.9.54/docs/dev-notes/issue_28.md +108 -0
  146. supervertaler-1.9.54/docs/dev-notes/openai_debug.txt +17352 -0
  147. supervertaler-1.9.54/docs/emoji_mockup.html +288 -0
  148. supervertaler-1.9.54/docs/favicon.ico +0 -0
  149. supervertaler-1.9.54/docs/guides/AI_PROMPT_ASSISTANT_USER_GUIDE.md +331 -0
  150. supervertaler-1.9.54/docs/guides/CAT_WORKFLOW.md +376 -0
  151. supervertaler-1.9.54/docs/guides/ENCODING_REPAIR_TOOL.md +255 -0
  152. supervertaler-1.9.54/docs/guides/FAQ.md +1202 -0
  153. supervertaler-1.9.54/docs/guides/JSON_EDITORS_AND_HUMAN_READABLE_FORMAT.md +297 -0
  154. supervertaler-1.9.54/docs/guides/KEYBOARD_SHORTCUTS.md +210 -0
  155. supervertaler-1.9.54/docs/guides/PDF_RESCUE.md +564 -0
  156. supervertaler-1.9.54/docs/guides/PROMPT_ASSISTANT_USER_GUIDE.md +331 -0
  157. supervertaler-1.9.54/docs/guides/QT_SETTINGS_DIALOG_GUIDE.md +303 -0
  158. supervertaler-1.9.54/docs/guides/QUICK_START.md +204 -0
  159. supervertaler-1.9.54/docs/guides/TERM_EXTRACTION_GUIDE.md +125 -0
  160. supervertaler-1.9.54/docs/guides/USER_DATA_FOLDER_SETUP.md +315 -0
  161. supervertaler-1.9.54/docs/idea_beijer.bot_integration_idea/BEIJERBOT_FEATURE_ANALYSIS.md +435 -0
  162. supervertaler-1.9.54/docs/idea_beijer.bot_integration_idea/CLI_BRIDGE_SPECIFICATION.md +703 -0
  163. supervertaler-1.9.54/docs/idea_beijer.bot_integration_idea/IMPLEMENTATION_ROADMAP.md +768 -0
  164. supervertaler-1.9.54/docs/idea_beijer.bot_integration_idea/QUICKMENU_INTEGRATION_PLAN.md +656 -0
  165. supervertaler-1.9.54/docs/idea_beijer.bot_integration_idea/README.md +369 -0
  166. supervertaler-1.9.54/docs/idea_tag-cleaner/tag_cleaner.md +35 -0
  167. supervertaler-1.9.54/docs/idea_use_vscode_as_cat_tool/ai-agent-translation-workflow.md +277 -0
  168. supervertaler-1.9.54/docs/index.html +1606 -0
  169. supervertaler-1.9.54/docs/logo.png +0 -0
  170. supervertaler-1.9.54/docs/screenshots/2025-10-13_00-46-16.jpg +0 -0
  171. supervertaler-1.9.54/docs/screenshots/Superlookup_Web_resources.jpg +0 -0
  172. supervertaler-1.9.54/docs/screenshots/Supervertaler_AI-Assistant.jpg +0 -0
  173. supervertaler-1.9.54/docs/screenshots/Supervertaler_CLASSIC_v2.4.1_(tkinter).jpg +0 -0
  174. supervertaler-1.9.54/docs/screenshots/Supervertaler_Prompt-Library.jpg +0 -0
  175. supervertaler-1.9.54/docs/screenshots/Supervertaler_Qt_LLM_LeaderboardResults_2025-11-12.jpg +0 -0
  176. supervertaler-1.9.54/docs/screenshots/Supervertaler_Qt_LLM_Leaderboard_2025-11-12.jpg +0 -0
  177. supervertaler-1.9.54/docs/screenshots/Supervertaler_Superbrowser.jpg +0 -0
  178. supervertaler-1.9.54/docs/screenshots/Supervertaler_dark_mode_2025-12-16.jpg +0 -0
  179. supervertaler-1.9.54/docs/screenshots/Supervertaler_dark_mode_2025-12-17.jpg +0 -0
  180. supervertaler-1.9.54/docs/screenshots/Supervertaler_grid.jpg +0 -0
  181. supervertaler-1.9.54/docs/screenshots/Supervertaler_tkinter (v3.7.7).jpg +0 -0
  182. supervertaler-1.9.54/docs/screenshots/new/Supervertaler-grid.jpg +0 -0
  183. supervertaler-1.9.54/docs/screenshots/new/Supervertaler_AI-Assistant.jpg +0 -0
  184. supervertaler-1.9.54/docs/screenshots/new/Supervertaler_Prompt-Library.jpg +0 -0
  185. supervertaler-1.9.54/docs/screenshots/new/Supervertaler_Qt_LLM_LeaderboardResults_2025-11-12.jpg +0 -0
  186. supervertaler-1.9.54/docs/screenshots/new/Supervertaler_Qt_LLM_Leaderboard_2025-11-12.jpg +0 -0
  187. supervertaler-1.9.54/docs/screenshots/new/Supervertaler_Superbrowser.jpg +0 -0
  188. supervertaler-1.9.54/docs/screenshots/old/2025-10-13_00-50-24.jpg +0 -0
  189. supervertaler-1.9.54/docs/screenshots/old/Supervertaler_Qt_2025-11-12.jpg +0 -0
  190. supervertaler-1.9.54/docs/script.js +138 -0
  191. supervertaler-1.9.54/docs/sessions/2025-11-01.txt +709 -0
  192. supervertaler-1.9.54/docs/sessions/CURSOR_CHAT_SELECTION_GUIDE.md +134 -0
  193. supervertaler-1.9.54/docs/sessions/QUICK_START.md +71 -0
  194. supervertaler-1.9.54/docs/sessions/README.md +104 -0
  195. supervertaler-1.9.54/docs/sessions/RUN_SCRIPT.md +114 -0
  196. supervertaler-1.9.54/docs/sessions/SESSION_SUMMARY_2025-10-29_Afternoon.md +105 -0
  197. supervertaler-1.9.54/docs/sessions/copilot_chat_history_2025-10-11 (MB).txt +2915 -0
  198. supervertaler-1.9.54/docs/sessions/copilot_chat_history_2025-10-12 (MB).txt +11082 -0
  199. supervertaler-1.9.54/docs/sessions/copilot_chat_history_2025-10-13 (MB).txt +14501 -0
  200. supervertaler-1.9.54/docs/sessions/copilot_chat_history_2025-10-14 (MB).txt +17101 -0
  201. supervertaler-1.9.54/docs/sessions/copilot_chat_history_2025-10-15 (MB).txt +20719 -0
  202. supervertaler-1.9.54/docs/sessions/copilot_chat_history_2025-10-17 (MB).txt +14006 -0
  203. supervertaler-1.9.54/docs/sessions/copilot_chat_history_2025-10-20 (MB).txt +29327 -0
  204. supervertaler-1.9.54/docs/sessions/copilot_chat_history_2025-10-27 (MB).txt +29327 -0
  205. supervertaler-1.9.54/docs/sessions/copilot_chat_history_2025-10-29 (MB).txt +14837 -0
  206. supervertaler-1.9.54/docs/sessions/copilot_chat_history_2025-10-30 (MB).txt +14837 -0
  207. supervertaler-1.9.54/docs/sessions/copilot_chat_history_2025-10-31 (MB).txt +1260 -0
  208. supervertaler-1.9.54/docs/sessions/copilot_chat_history_2025-11-16 (MB).txt +52080 -0
  209. supervertaler-1.9.54/docs/sessions/cursor_chat_history_2025-11-01 (MB).txt +714 -0
  210. supervertaler-1.9.54/docs/sessions/cursor_chat_history_2025-11-02 (MB).txt +2323 -0
  211. supervertaler-1.9.54/docs/sessions/cursor_chat_history_2025-11-17 (MB).txt +0 -0
  212. supervertaler-1.9.54/docs/sessions/cursor_chat_history_2025-11-19 (MB).txt +14842 -0
  213. supervertaler-1.9.54/docs/sessions/cursor_chat_history_2025-11-29 (MB).txt +9275 -0
  214. supervertaler-1.9.54/docs/sessions/cursor_chat_history_2025-12-05 (MB).txt +11187 -0
  215. supervertaler-1.9.54/docs/sessions/cursor_chat_history_2025-12-06 (MB).txt +9484 -0
  216. supervertaler-1.9.54/docs/sessions/save_chat_log.ps1 +170 -0
  217. supervertaler-1.9.54/docs/site.webmanifest +21 -0
  218. supervertaler-1.9.54/docs/specifications/AI_ASSISTANT_PHASE2_IMPLEMENTATION.md +519 -0
  219. supervertaler-1.9.54/docs/specifications/AI_PROMPT_ASSISTANT.md +487 -0
  220. supervertaler-1.9.54/docs/specifications/AI_PROMPT_ASSISTANT_IMPLEMENTATION.md +341 -0
  221. supervertaler-1.9.54/docs/specifications/EXPORT_MENU_UPDATE.md +468 -0
  222. supervertaler-1.9.54/docs/specifications/IMPLEMENTATION_SUMMARY.md +235 -0
  223. supervertaler-1.9.54/docs/specifications/QT_PHASE2_COMPLETE.md +212 -0
  224. supervertaler-1.9.54/docs/specifications/QT_PHASE3_COMPLETE.md +256 -0
  225. supervertaler-1.9.54/docs/specifications/SUPERVERTALER_DATA_FORMAT.md +427 -0
  226. supervertaler-1.9.54/docs/specifications/TASK_TYPE_SYSTEM.md +0 -0
  227. supervertaler-1.9.54/docs/specifications/TERMINOLOGY_UPDATE_SUMMARY.md +234 -0
  228. supervertaler-1.9.54/docs/styles.css +1382 -0
  229. supervertaler-1.9.54/docs/superdocs/architecture.md +370 -0
  230. supervertaler-1.9.54/docs/superdocs/dependencies.md +283 -0
  231. supervertaler-1.9.54/docs/superdocs/index.md +704 -0
  232. supervertaler-1.9.54/docs/superdocs/modules/ai_actions.md +87 -0
  233. supervertaler-1.9.54/docs/superdocs/modules/ai_attachment_manager.md +102 -0
  234. supervertaler-1.9.54/docs/superdocs/modules/ai_file_viewer_dialog.md +60 -0
  235. supervertaler-1.9.54/docs/superdocs/modules/autofingers_engine.md +103 -0
  236. supervertaler-1.9.54/docs/superdocs/modules/cafetran_docx_handler.md +122 -0
  237. supervertaler-1.9.54/docs/superdocs/modules/config_manager.md +170 -0
  238. supervertaler-1.9.54/docs/superdocs/modules/database_manager.md +216 -0
  239. supervertaler-1.9.54/docs/superdocs/modules/database_migrations.md +134 -0
  240. supervertaler-1.9.54/docs/superdocs/modules/document_analyzer.md +58 -0
  241. supervertaler-1.9.54/docs/superdocs/modules/docx_handler.md +66 -0
  242. supervertaler-1.9.54/docs/superdocs/modules/encoding_repair.md +88 -0
  243. supervertaler-1.9.54/docs/superdocs/modules/encoding_repair_Qt.md +59 -0
  244. supervertaler-1.9.54/docs/superdocs/modules/encoding_repair_ui.md +44 -0
  245. supervertaler-1.9.54/docs/superdocs/modules/figure_context_manager.md +158 -0
  246. supervertaler-1.9.54/docs/superdocs/modules/file_dialog_helper.md +88 -0
  247. supervertaler-1.9.54/docs/superdocs/modules/find_replace.md +45 -0
  248. supervertaler-1.9.54/docs/superdocs/modules/glossary_manager.md +128 -0
  249. supervertaler-1.9.54/docs/superdocs/modules/image_extractor.md +71 -0
  250. supervertaler-1.9.54/docs/superdocs/modules/keyboard_shortcuts_widget.md +107 -0
  251. supervertaler-1.9.54/docs/superdocs/modules/llm_clients.md +201 -0
  252. supervertaler-1.9.54/docs/superdocs/modules/llm_leaderboard.md +170 -0
  253. supervertaler-1.9.54/docs/superdocs/modules/llm_superbench_ui.md +95 -0
  254. supervertaler-1.9.54/docs/superdocs/modules/local_llm_setup.md +243 -0
  255. supervertaler-1.9.54/docs/superdocs/modules/model_update_dialog.md +76 -0
  256. supervertaler-1.9.54/docs/superdocs/modules/model_version_checker.md +122 -0
  257. supervertaler-1.9.54/docs/superdocs/modules/mqxliff_handler.md +115 -0
  258. supervertaler-1.9.54/docs/superdocs/modules/non_translatables_manager.md +270 -0
  259. supervertaler-1.9.54/docs/superdocs/modules/pdf_rescue_Qt.md +79 -0
  260. supervertaler-1.9.54/docs/superdocs/modules/pdf_rescue_tkinter.md +63 -0
  261. supervertaler-1.9.54/docs/superdocs/modules/project_home_panel.md +59 -0
  262. supervertaler-1.9.54/docs/superdocs/modules/prompt_assistant.md +122 -0
  263. supervertaler-1.9.54/docs/superdocs/modules/prompt_library.md +171 -0
  264. supervertaler-1.9.54/docs/superdocs/modules/prompt_library_migration.md +85 -0
  265. supervertaler-1.9.54/docs/superdocs/modules/prompt_manager_qt.md +145 -0
  266. supervertaler-1.9.54/docs/superdocs/modules/quick_access_sidebar.md +79 -0
  267. supervertaler-1.9.54/docs/superdocs/modules/ribbon_widget.md +161 -0
  268. supervertaler-1.9.54/docs/superdocs/modules/sdlppx_handler.md +171 -0
  269. supervertaler-1.9.54/docs/superdocs/modules/setup_wizard.md +61 -0
  270. supervertaler-1.9.54/docs/superdocs/modules/shortcut_manager.md +112 -0
  271. supervertaler-1.9.54/docs/superdocs/modules/simple_segmenter.md +41 -0
  272. supervertaler-1.9.54/docs/superdocs/modules/statuses.md +51 -0
  273. supervertaler-1.9.54/docs/superdocs/modules/style_guide_manager.md +127 -0
  274. supervertaler-1.9.54/docs/superdocs/modules/superbench_ui.md +95 -0
  275. supervertaler-1.9.54/docs/superdocs/modules/superbrowser.md +83 -0
  276. supervertaler-1.9.54/docs/superdocs/modules/supercleaner.md +67 -0
  277. supervertaler-1.9.54/docs/superdocs/modules/supercleaner_ui.md +81 -0
  278. supervertaler-1.9.54/docs/superdocs/modules/superdocs.md +63 -0
  279. supervertaler-1.9.54/docs/superdocs/modules/superlookup.md +109 -0
  280. supervertaler-1.9.54/docs/superdocs/modules/supermemory.md +315 -0
  281. supervertaler-1.9.54/docs/superdocs/modules/tag_cleaner.md +129 -0
  282. supervertaler-1.9.54/docs/superdocs/modules/tag_manager.md +126 -0
  283. supervertaler-1.9.54/docs/superdocs/modules/term_extractor.md +92 -0
  284. supervertaler-1.9.54/docs/superdocs/modules/termbase_entry_editor.md +102 -0
  285. supervertaler-1.9.54/docs/superdocs/modules/termbase_import_export.md +92 -0
  286. supervertaler-1.9.54/docs/superdocs/modules/termbase_manager.md +253 -0
  287. supervertaler-1.9.54/docs/superdocs/modules/termview_widget.md +223 -0
  288. supervertaler-1.9.54/docs/superdocs/modules/theme_manager.md +93 -0
  289. supervertaler-1.9.54/docs/superdocs/modules/tm_editor_dialog.md +41 -0
  290. supervertaler-1.9.54/docs/superdocs/modules/tm_manager_qt.md +181 -0
  291. supervertaler-1.9.54/docs/superdocs/modules/tm_metadata_manager.md +119 -0
  292. supervertaler-1.9.54/docs/superdocs/modules/tmx_editor.md +330 -0
  293. supervertaler-1.9.54/docs/superdocs/modules/tmx_editor_qt.md +244 -0
  294. supervertaler-1.9.54/docs/superdocs/modules/tmx_generator.md +104 -0
  295. supervertaler-1.9.54/docs/superdocs/modules/tracked_changes.md +142 -0
  296. supervertaler-1.9.54/docs/superdocs/modules/trados_docx_handler.md +120 -0
  297. supervertaler-1.9.54/docs/superdocs/modules/translation_memory.md +257 -0
  298. supervertaler-1.9.54/docs/superdocs/modules/translation_results_panel.md +208 -0
  299. supervertaler-1.9.54/docs/superdocs/modules/translation_services.md +95 -0
  300. supervertaler-1.9.54/docs/superdocs/modules/unified_prompt_library.md +118 -0
  301. supervertaler-1.9.54/docs/superdocs/modules/unified_prompt_manager_qt.md +108 -0
  302. supervertaler-1.9.54/docs/superdocs/modules/voice_dictation.md +126 -0
  303. supervertaler-1.9.54/docs/superdocs/modules/voice_dictation_lite.md +53 -0
  304. supervertaler-1.9.54/docs/technical/AI_ASSISTANT_GUIDE.md +166 -0
  305. supervertaler-1.9.54/docs/technical/AI_ASSISTANT_IMPLEMENTATION.md +321 -0
  306. supervertaler-1.9.54/docs/technical/AI_ASSISTANT_INTEGRATION.md +402 -0
  307. supervertaler-1.9.54/docs/technical/AI_ASSISTANT_QUICK_REFERENCE.md +216 -0
  308. supervertaler-1.9.54/docs/technical/DATABASE_LOCATIONS.md +33 -0
  309. supervertaler-1.9.54/docs/technical/FILTER_HIGHLIGHTING_FIX.md +141 -0
  310. supervertaler-1.9.54/docs/technical/MODULE_HEADER_PATTERN.md +215 -0
  311. supervertaler-1.9.54/docs/technical/README.md +0 -0
  312. supervertaler-1.9.54/docs/technical/SUPERBROWSER_GUIDE.md +210 -0
  313. supervertaler-1.9.54/docs/technical/SUPERVOICE_TROUBLESHOOTING.md +152 -0
  314. supervertaler-1.9.54/docs/technical/UNIFIED_PROMPT_LIBRARY_GUIDE.md +344 -0
  315. supervertaler-1.9.54/docs/technical/VOICE_DICTATION_GUIDE.md +156 -0
  316. supervertaler-1.9.54/docs/tests/test_encoding_corruption.txt +48 -0
  317. supervertaler-1.9.54/docs/web-app-manifest-192x192.png +0 -0
  318. supervertaler-1.9.54/docs/web-app-manifest-512x512.png +0 -0
  319. supervertaler-1.9.54/modules/__init__.py +10 -0
  320. supervertaler-1.9.54/modules/ai_actions.py +964 -0
  321. supervertaler-1.9.54/modules/ai_attachment_manager.py +343 -0
  322. supervertaler-1.9.54/modules/ai_file_viewer_dialog.py +210 -0
  323. supervertaler-1.9.54/modules/autofingers_engine.py +466 -0
  324. supervertaler-1.9.54/modules/cafetran_docx_handler.py +379 -0
  325. supervertaler-1.9.54/modules/config_manager.py +469 -0
  326. supervertaler-1.9.54/modules/database_manager.py +1731 -0
  327. supervertaler-1.9.54/modules/database_migrations.py +413 -0
  328. supervertaler-1.9.54/modules/document_analyzer.py +427 -0
  329. supervertaler-1.9.54/modules/docx_handler.py +646 -0
  330. supervertaler-1.9.54/modules/encoding_repair.py +319 -0
  331. supervertaler-1.9.54/modules/encoding_repair_Qt.py +393 -0
  332. supervertaler-1.9.54/modules/encoding_repair_ui.py +481 -0
  333. supervertaler-1.9.54/modules/figure_context_manager.py +340 -0
  334. supervertaler-1.9.54/modules/file_dialog_helper.py +148 -0
  335. supervertaler-1.9.54/modules/find_replace.py +164 -0
  336. supervertaler-1.9.54/modules/glossary_manager.py +433 -0
  337. supervertaler-1.9.54/modules/image_extractor.py +188 -0
  338. supervertaler-1.9.54/modules/keyboard_shortcuts_widget.py +514 -0
  339. supervertaler-1.9.54/modules/llm_clients.py +1211 -0
  340. supervertaler-1.9.54/modules/llm_leaderboard.py +737 -0
  341. supervertaler-1.9.54/modules/llm_superbench_ui.py +1401 -0
  342. supervertaler-1.9.54/modules/local_llm_setup.py +1104 -0
  343. supervertaler-1.9.54/modules/model_update_dialog.py +381 -0
  344. supervertaler-1.9.54/modules/model_version_checker.py +373 -0
  345. supervertaler-1.9.54/modules/mqxliff_handler.py +638 -0
  346. supervertaler-1.9.54/modules/non_translatables_manager.py +743 -0
  347. supervertaler-1.9.54/modules/pdf_rescue_Qt.py +1822 -0
  348. supervertaler-1.9.54/modules/pdf_rescue_tkinter.py +909 -0
  349. supervertaler-1.9.54/modules/phrase_docx_handler.py +516 -0
  350. supervertaler-1.9.54/modules/project_home_panel.py +209 -0
  351. supervertaler-1.9.54/modules/prompt_assistant.py +357 -0
  352. supervertaler-1.9.54/modules/prompt_library.py +689 -0
  353. supervertaler-1.9.54/modules/prompt_library_migration.py +447 -0
  354. supervertaler-1.9.54/modules/prompt_manager_qt.py +4370 -0
  355. supervertaler-1.9.54/modules/quick_access_sidebar.py +282 -0
  356. supervertaler-1.9.54/modules/ribbon_widget.py +597 -0
  357. supervertaler-1.9.54/modules/sdlppx_handler.py +874 -0
  358. supervertaler-1.9.54/modules/setup_wizard.py +353 -0
  359. supervertaler-1.9.54/modules/shortcut_manager.py +677 -0
  360. supervertaler-1.9.54/modules/simple_segmenter.py +128 -0
  361. supervertaler-1.9.54/modules/spellcheck_manager.py +524 -0
  362. supervertaler-1.9.54/modules/statuses.py +207 -0
  363. supervertaler-1.9.54/modules/style_guide_manager.py +315 -0
  364. supervertaler-1.9.54/modules/superbench_ui.py +1319 -0
  365. supervertaler-1.9.54/modules/superbrowser.py +325 -0
  366. supervertaler-1.9.54/modules/supercleaner.py +600 -0
  367. supervertaler-1.9.54/modules/supercleaner_ui.py +444 -0
  368. supervertaler-1.9.54/modules/superdocs.py +543 -0
  369. supervertaler-1.9.54/modules/superdocs_viewer_qt.py +522 -0
  370. supervertaler-1.9.54/modules/superlookup.py +248 -0
  371. supervertaler-1.9.54/modules/supermemory.py +2325 -0
  372. supervertaler-1.9.54/modules/tag_cleaner.py +260 -0
  373. supervertaler-1.9.54/modules/tag_manager.py +299 -0
  374. supervertaler-1.9.54/modules/term_extractor.py +270 -0
  375. supervertaler-1.9.54/modules/termbase_entry_editor.py +842 -0
  376. supervertaler-1.9.54/modules/termbase_import_export.py +488 -0
  377. supervertaler-1.9.54/modules/termbase_manager.py +1014 -0
  378. supervertaler-1.9.54/modules/termview_widget.py +966 -0
  379. supervertaler-1.9.54/modules/theme_manager.py +499 -0
  380. supervertaler-1.9.54/modules/tm_editor_dialog.py +99 -0
  381. supervertaler-1.9.54/modules/tm_manager_qt.py +1280 -0
  382. supervertaler-1.9.54/modules/tm_metadata_manager.py +505 -0
  383. supervertaler-1.9.54/modules/tmx_editor.py +1461 -0
  384. supervertaler-1.9.54/modules/tmx_editor_qt.py +2269 -0
  385. supervertaler-1.9.54/modules/tmx_generator.py +284 -0
  386. supervertaler-1.9.54/modules/tracked_changes.py +900 -0
  387. supervertaler-1.9.54/modules/trados_docx_handler.py +430 -0
  388. supervertaler-1.9.54/modules/translation_memory.py +670 -0
  389. supervertaler-1.9.54/modules/translation_results_panel.py +1986 -0
  390. supervertaler-1.9.54/modules/translation_services.py +282 -0
  391. supervertaler-1.9.54/modules/unified_prompt_library.py +543 -0
  392. supervertaler-1.9.54/modules/unified_prompt_manager_qt.py +2952 -0
  393. supervertaler-1.9.54/modules/voice_commands.py +910 -0
  394. supervertaler-1.9.54/modules/voice_dictation.py +467 -0
  395. supervertaler-1.9.54/modules/voice_dictation_lite.py +194 -0
  396. supervertaler-1.9.54/pyproject.toml +141 -0
  397. supervertaler-1.9.54/setup.cfg +4 -0
  398. supervertaler-1.9.54/setup.py +161 -0
  399. supervertaler-1.9.54/tests/test_add_term.py +42 -0
  400. supervertaler-1.9.54/tests/test_ai_actions.py +614 -0
  401. supervertaler-1.9.54/tests/test_all_matches.py +65 -0
  402. supervertaler-1.9.54/tests/test_api_keys.py +79 -0
  403. supervertaler-1.9.54/tests/test_attachment_manager.py +176 -0
  404. supervertaler-1.9.54/tests/test_autofingers.py +187 -0
  405. supervertaler-1.9.54/tests/test_autofingers_fuzzy.py +308 -0
  406. supervertaler-1.9.54/tests/test_cafetran_workflow.py +141 -0
  407. supervertaler-1.9.54/tests/test_chat_ui.py +133 -0
  408. supervertaler-1.9.54/tests/test_claude_models.py +38 -0
  409. supervertaler-1.9.54/tests/test_current_database.py +71 -0
  410. supervertaler-1.9.54/tests/test_database.py +139 -0
  411. supervertaler-1.9.54/tests/test_db_schema.py +35 -0
  412. supervertaler-1.9.54/tests/test_delete_entry.py +43 -0
  413. supervertaler-1.9.54/tests/test_doc_structure.py +46 -0
  414. supervertaler-1.9.54/tests/test_down_arrow_logic.py +50 -0
  415. supervertaler-1.9.54/tests/test_fts5_special_chars.py +48 -0
  416. supervertaler-1.9.54/tests/test_google_translate.py +76 -0
  417. supervertaler-1.9.54/tests/test_google_translate_locale.py +90 -0
  418. supervertaler-1.9.54/tests/test_google_translate_rest.py +83 -0
  419. supervertaler-1.9.54/tests/test_image_extractor.py +51 -0
  420. supervertaler-1.9.54/tests/test_lang_codes.py +41 -0
  421. supervertaler-1.9.54/tests/test_language_detection.py +93 -0
  422. supervertaler-1.9.54/tests/test_match_pane_ui.py +83 -0
  423. supervertaler-1.9.54/tests/test_memoq_navigation.py +41 -0
  424. supervertaler-1.9.54/tests/test_mt_apis.py +81 -0
  425. supervertaler-1.9.54/tests/test_pipe_formatting.py +135 -0
  426. supervertaler-1.9.54/tests/test_tag_cleaner_integration.py +114 -0
  427. supervertaler-1.9.54/tests/test_termbase.py +40 -0
  428. supervertaler-1.9.54/tests/test_termbase_highlighting.py +88 -0
  429. supervertaler-1.9.54/tests/test_termbase_search.py +54 -0
  430. supervertaler-1.9.54/tests/test_tm_metadata.py +43 -0
  431. supervertaler-1.9.54/tests/test_tm_methods.py +57 -0
  432. supervertaler-1.9.54/tests/test_tmx_editor.py +31 -0
  433. supervertaler-1.9.54/tests/test_tmx_export.py +153 -0
  434. supervertaler-1.9.54/tests/test_unified_prompt_library.py +228 -0
@@ -0,0 +1,3234 @@
1
+ # Supervertaler - Changelog
2
+
3
+ All notable changes to Supervertaler are documented in this file.
4
+
5
+ **Current Version:** v1.9.54 (December 22, 2025)
6
+ **Framework:** PyQt6
7
+ **Status:** Active Development
8
+
9
+ **Note:** For historical information about legacy versions (Tkinter Edition, Classic Edition), see [legacy_versions/LEGACY_VERSIONS.md](legacy_versions/LEGACY_VERSIONS.md).
10
+
11
+ ---
12
+
13
+ ## 🌟 Recent Highlights - What's New in Supervertaler
14
+
15
+ **Latest Major Features:**
16
+
17
+ - 📝 **User-Facing Terminology Rename (v1.9.54)** - Comprehensive rename throughout the UI: "Termbase" → "Glossary", "TM Matches" → "TMs", "Termbase Matches" → "Glossaries". All dialog titles, settings labels, button text, tooltips, context menus, and messages updated. Internal code and database structure unchanged for backward compatibility.
18
+ - 🔍 **Superlookup UX Improvements (v1.9.54)** - Enter key in search box now triggers search (Shift+Enter for newline). "Edit in Glossary" navigation fixed to correctly select the glossary in Resources tab. Fuzzy search filter prevents single-letter terms matching long queries. New "TM" column shows source TM name in results.
19
+ - 📋 **Superlookup Termbase Enhancements (v1.9.53)** - Improved Glossaries tab with additional metadata columns: Glossary name, Domain, Notes. Full metadata in results including priority, project, client, forbidden status. Tooltips show full content on hover.
20
+ - 📥 **Glossary Import Progress Dialog (v1.9.53)** - Real-time progress dialog when importing glossaries from TSV files. Visual progress bar, live statistics (✅ imported, ⏭️ skipped, ❌ errors), scrolling log window with color-coded entries.
21
+ - 🌐 **Superlookup Web Resources (v1.9.52)** - Expanded web resources tab with 14 reference sites! New resources: Juremy, michaelbeijer.co.uk, AcronymFinder, BabelNet, Wiktionary (Source & Target). Persistent login sessions with cookies stored in `user_data/web_cache/`. Auto-select language pair from project on load. Compact single-line search layout. Settings checkboxes control sidebar button visibility.
22
+ - 🔍 **Superlookup MT Integration (v1.9.51)** - Complete Machine Translation integration in Superlookup! Search now returns results from Google Translate, Amazon Translate, DeepL, Microsoft Translator, ModernMT, and MyMemory. MT provider status display shows active/disabled/missing API key providers with "⚙️ Configure in Settings" link. Error messages now shown in red with details (no more silent failures). Fixed language name mapping: "Dutch" → "nl", "English" → "en" for all MT providers. Added boto3 and deepl to requirements.txt. Removed debug print spam. Termbases tab now has search filter and split-view with editable terms grid.
23
+ - 🎤 **Voice Commands System (v1.9.50)** - Complete hands-free translation with Talon-style voice commands! Say "next segment", "confirm", "source to target", "translate", and more. **Always-On Listening Mode** with VAD (Voice Activity Detection) - no need to press F9. Dual recognition engines: **OpenAI Whisper API** (recommended, fast & accurate) or local Whisper model. New grid toolbar button (🎧 Voice ON/OFF) for easy toggle. Status bar indicator shows listening/recording/processing state. AutoHotkey integration for controlling external apps (memoQ, Trados, Word) by voice. Custom voice commands with fuzzy matching. Configure in Tools → Supervoice tab.
24
+ - 🎤 **Always-On Listening (v1.9.49)** - VAD-based continuous listening eliminates pressing F9 twice. Automatically detects speech, records, transcribes, and processes as command or dictation. Configurable mic sensitivity (Low/Medium/High). Visual feedback: 🟢 Listening → 🔴 Recording → ⏳ Processing. F9 stops always-on mode if active.
25
+ - 🎤 **Talon-Style Voice Commands (v1.9.48)** - 3-tier voice command architecture: Internal commands (control Supervertaler), System commands (AutoHotkey for other apps), Dictation fallback. Built-in commands: navigation, editing, translation, lookup. Custom command editor with phrase, aliases, and action configuration.
26
+ - 🧹 **Code Cleanup (v1.9.47)** - Removed ~811 lines of dead Document View code. The Document View feature was never used in production - the Grid View (Editor) is the primary and only workflow. Cleanup includes: removed `LayoutMode` class, removed `create_editor_widget()`, `create_document_view_widget()`, `refresh_document_view()` and all related helper methods. File reduced from 35,249 to 34,438 lines. No functional changes.
27
+ - 🏠 **Workspace UI Redesign (v1.9.46)** - Cleaner tab hierarchy with renamed tabs: **Workspace** (main tab) containing **Editor** (the grid) and **Resources** (TM, Termbases, Prompts, etc.). Removed Document View (unused). Simplified navigation menu. Fixed critical bug where termbase matches showed terms from non-activated termbases.
28
+ - 🏷️ **Termbase Highlight Styles (v1.9.45)** - Three configurable styles for termbase matches in the translation grid: **Background** (default pastel green shades), **Dotted Underline** (priority-based colors: red for P1, grays for P2-3, customizable for P4+), and **Semibold** (bold weight with tinted foreground). Configure via Settings → View Settings. Auto-spellcheck for target language: spellcheck now automatically initializes to project target language on import/load. Fixed short language codes (nl, de, fr) not mapping to dictionaries.
29
+ - 📚 **UI Reorganization (v1.9.44)** - Prompt Manager moved under Project Resources tab (prompts are project resources). Superlookup hotkey script now shows Supervertaler icon in system tray. Fixed termbase import "Could not find termbase ID" error. Removed dotted focus outline from Superlookup Search button.
30
+ - 🔑 **Superlookup Hotkey Improvements (v1.9.43)** - Fixed Ctrl+Alt+L global hotkey not bringing Superlookup to foreground. Added AutoHotkey setup helper (Help → Setup AutoHotkey for Superlookup). New AutoHotkey path configuration in Settings → General Settings. Better error handling when AutoHotkey is not installed.
31
+ - 📁 **Multi-File Project Support (v1.9.42)** - Import entire folders of files as a single multi-file project! File → Import → Folder (Multiple Files) supports DOCX and TXT files. Per-file progress tracking in View → File Progress dialog (or click status bar). New file filter dropdown to show segments from specific files. Status bar shows completion progress across all files. Source files automatically backed up to `_source_files/` folder. Relocate Source Folder feature to fix broken paths. Export to folder with TXT, DOCX, or Bilingual Table formats (export in progress - basic functionality available).
32
+ - 🔍 **Superlookup Fixes (v1.9.42)** - Renamed `UniversalLookupTab` to `SuperlookupTab` for consistency. Fixed `theme_manager` attribute error when using Ctrl+Alt+L hotkey. Theme-aware search term highlighting now works properly.
33
+ - 📋 **Spellcheck Info Dialog Redesign (v1.9.42)** - Two-column horizontal layout fits on screen without scrolling. Clear explanation of auto-switching between built-in pyspellchecker and Hunspell backends. Compact diagnostics section.
34
+ - 🌙 **Dark Mode (v1.9.41)** - Complete dark theme implementation with proper styling across the entire application. Dark compare boxes in Translation Results panel, dark Termview with visible text for non-matched words, and consistent theming throughout all UI components. Switch themes via View → Theme Editor.
35
+ - 🔍 **Superlookup Unified Concordance System (v1.9.40)** - Major consolidation: Ctrl+K now opens Superlookup instead of a separate concordance dialog. All lookup resources in one place: TM concordance, Termbase matches, Supermemory semantic search, Machine Translation, and Web Resources. New dual-view toggle: Horizontal (table) or Vertical (list) layout. Tab reorganization: "Project Resources" now comes before "Prompt Manager". Removed redundant tabs from Translation Memories (Concordance and Import/Export - functionality already available in Superlookup and TM List). FTS5 full-text search now properly used for blazingly fast concordance on millions of segments.
36
+ - 🔍 **Superlookup Multilingual Search (v1.9.39)** - Complete overhaul of Superlookup with multilingual language filtering. New From/To language dropdowns filter TM and termbase searches by source/target language pair. Search direction radio buttons (Both/Source only/Target only) for precise concordance searches. Yellow highlighting of search terms in results. Compact results display with tooltips for full text. Languages auto-populate from your TMs and termbases, grouped alphabetically by language family. UI cleanup: removed Manual Capture button and Operating Modes selector.
37
+ - 📁 **Improved Project File Format (v1.9.38)** - `.svproj` files now have all metadata at the top (name, languages, dates, settings, paths) with segments at the end for easier inspection in text editors. Added helpful tip in batch translate warning about using Select All + Clear Target instead of re-importing.
38
+ - 🔤 **User-Configurable Grid Fonts (v1.9.37)** - Choose your preferred font family for the translation grid from 10 popular options. Live preview shows font changes in real-time with sample source/target text and tags. Font family now persists between sessions.
39
+ - 🎨 **Universal Tag Coloring (v1.9.36)** - All CAT tool tags now highlighted in pink: memoQ `{1}`, `[2}`, Trados `<1>`, `</1>`, Phrase `{1}`, and HTML `<b>`, `<i>`. CafeTran pipe symbols only red in CafeTran projects (bug fix).
40
+ - 🎨 **memoQ Red Tags Support (v1.9.35)** - Fixed memoQ bilingual export not preserving red tag color. Tags in the target column now correctly inherit the red/magenta color from the source column, ensuring perfect formatting for memoQ re-import.
41
+ - 🎨 **UI Fixes (v1.9.34)** - Replaced all standard radio buttons with green-themed CheckmarkRadioButton.
42
+ - 🐛 **Spellcheck Update Fix (v1.9.33)** - Fixed issue where adding/ignoring words only removed underline in the current cell. Now triggers instant global refresh of all highlighters across the entire grid. No more false positive red underlines after you've whitelisted a word
43
+
44
+ - 📦 **Trados SDLRPX Status Fix (v1.9.32)** - Fixed critical bug where exported SDLRPX return packages kept segments in "Draft" status instead of updating to "Translated". Trados Studio now correctly recognizes translated segments. Client deliverables no longer show as MT draft content
45
+
46
+ - 🔤 **Spellcheck Language Fix (v1.9.31)** - Spellcheck now correctly uses the project's target language instead of defaulting to English. Added language dropdown in Spellcheck Info dialog to manually change spellcheck language. Language changes take effect immediately with highlighting refresh
47
+ - 🐛 **Critical LLM Fix (v1.9.30)** - Fixed OpenAI/LLM translation failing with "No such file or directory" error. Removed hardcoded debug file path that prevented translation when running from non-development directories
48
+ - 📝 **Spellcheck Integration (v1.9.29)** - Built-in spellcheck for target language. Works out of the box with pyspellchecker (8 languages bundled). Optional Hunspell support for more languages. Red wavy underlines for misspelled words. Right-click for suggestions, Add to Dictionary, Ignore. Custom dictionary with persistent word list. Spellcheck state saved per-project in .svproj files. Button state persists across restarts
49
+ - 📄 **Phrase (Memsource) Bilingual DOCX Support (v1.9.28)** - Full round-trip support for Phrase TMS bilingual DOCX files. Import preserves inline tags like `{1}`, `{1>text<1}`. Export writes translations back to Column 5 for seamless return to Phrase workflow. File → Import → Phrase (Memsource) Bilingual (DOCX) and File → Export → Phrase (Memsource) Bilingual
50
+ - 👁️ **Show Invisibles Feature (v1.9.28)** - Display invisible characters in the translation grid: spaces (·), tabs (→), non-breaking spaces (°), and line breaks (¶). Dropdown menu with granular control for each character type. Toggle All option. Smart handling preserves copy/paste (Ctrl+C copies original characters), double-click word selection, and Ctrl+Arrow word navigation. Configurable symbol color in Settings → View Settings
51
+ - 📄 **Simple Text File Import/Export (v1.9.27)** - Import simple text files where each line becomes a source segment. Translate with AI, then export a matching file with translations. Perfect for line-by-line translation of plain text content. Language pair selection, encoding options (UTF-8, Latin-1, etc.), and empty line handling. File → Import → Simple Text File (TXT) and File → Export → Simple Text File - Translated (TXT)
52
+ - 📦 **SDLPPX Project Persistence (v1.9.20)** - SDLPPX package path now saved in .svproj files. Full round-trip workflow persists across sessions - import SDLPPX, translate, save project, close, reopen, continue translating, export SDLRPX. Fixed export bug that showed "0 translations updated". Handler automatically restored on project load
53
+ - 📦 **Trados Studio Package Support (v1.9.19)** - Import SDLPPX packages directly from Trados Studio project managers. New File → Import → Trados Studio submenu with Package (SDLPPX) option. Translates SDLXLIFF files within the package, preserves SDL-specific markup and segment IDs. Export as SDLRPX return package (File → Export → Trados Studio → Return Package) for seamless delivery back to Trados users. Full round-trip workflow for freelance translators receiving packages
54
+ - 🔍 **Supermemory Concordance Integration (v1.9.18)** - Concordance Search (Ctrl+K) now includes Supermemory semantic search with two-tab interface. TM Matches tab for exact text search, Supermemory tab for meaning-based search. Active checkbox column in Supermemory to control which TMs are searched. Fixed Trados bilingual DOCX round-trip issues (xml:space, language settings). Supermemory moved to Resources tab
55
+ - 🧠 **Supermemory Enhancements (v1.9.17)** - Complete domain management system for translation memories with domain categorization (Legal, Medical, Patents, etc.), multi-language filtering in search, integration with Superlookup for unified lookup, and TMX/CSV export. Color-coded domain tags, dynamic column headers showing actual languages, and professional search/filter interface
56
+ - 🖥️ **Local LLM Support - Ollama (v1.9.16)** - Run AI translation entirely on your computer with no API costs, complete privacy, and offline capability. New "Local LLM (Ollama)" provider option in Settings with automatic hardware detection and model recommendations. Supports qwen2.5 (3B/7B/14B), llama3.2, mistral, and gemma2 models. Built-in setup wizard guides installation and model downloads. See FAQ for setup instructions
57
+ - 📋 **Bilingual Table Export/Import (v1.9.15)** - New Supervertaler Bilingual Table format for review workflows. Export menu options: **"Bilingual Table - With Tags (DOCX)"** preserves Supervertaler formatting tags for re-import after review. **"Bilingual Table - Formatted (DOCX)"** applies formatting (bold/italic/underline, bullet markers) for client-ready output. Tables include segment number, source, target, status, and notes columns. **"Import Bilingual Table"** compares edited DOCX with current project, shows diff preview, and applies changes. Document title links to supervertaler.com
58
+ - 📤 **Improved DOCX Export & Keyboard Navigation (v1.9.14)** - Fixed DOCX export to properly handle formatting tags (`<b>`, `<i>`, `<u>`) and convert them to actual Word formatting. Export now handles multi-segment paragraphs with partial replacement. Added cleanup for Unicode replacement characters (U+FFFC). Ctrl+Home/End now properly navigate to first/last segment even when editing in grid cells
59
+ - 📄 **Document Preview & List Tags (v1.9.13)** - New Preview tab shows formatted document view with headings, paragraphs, and list formatting. Click any text to navigate to that segment. Distinct list tags: `<li-o>` for ordered/numbered lists (1. 2. 3.) and `<li-b>` for bullet points (•). DOCX import now properly detects bullet vs numbered lists from Word's numbering XML. Type column shows `¶` for continuation paragraphs instead of `#`
60
+ - 📊 **Progress Indicator Status Bar (v1.9.12)** - New permanent status bar showing real-time translation progress: Words translated (X/Y with percentage), Confirmed segments (X/Y with percentage), and Remaining segments count. Color-coded: red (<50%), orange (50-80%), green (>80%). Updates automatically as you work
61
+ - ⚡ **Navigation & Find/Replace Improvements (v1.9.11)** - Ctrl+Home/End to jump to first/last segment. Find/Replace dialog now pre-fills selected text from source or target grid. Ctrl+Q shortcut for instant term pair saving (remembers last-used termbase from Ctrl+E dialog)
62
+ - 🔧 **Non-Translatables: Case-Sensitive & Full-Word Matching (v1.9.11)** - Non-translatables matching is now case-sensitive by default and only matches full words (not partial words). Added LLM refusal detection with helpful error messages for batch translation. Fixed crash when closing project (missing stop_termbase_batch_worker). Fixed .svprompt files not showing in Prompt Library tree
63
+ - 🔧 **TM Search Fixes & Language Matching (v1.9.10)** - Fixed TM matches not appearing in Translation Results panel. Added flexible language matching ("Dutch", "nl", "nl-NL" all match). TM metadata manager now initializes with project load. Removed legacy Project TM/Big Mama hardcoding. Cleaned public database for new users. Non-Translatables: sortable columns, right-click delete, Delete key support
64
+ - 🎨 **memoQ-style Alternating Row Colors (v1.9.9)** - Grid now displays alternating row colors across all columns (ID, Type, Source, Target) like memoQ. User-configurable colors in Settings → View Settings with even/odd row color pickers. Colors are consistent across the entire row including QTextEdit widgets
65
+ - 🔄 **CafeTran Integration & Editor Shortcuts (v1.9.8)** - Full CafeTran bilingual DOCX support with pipe symbol formatting. New Ctrl+Shift+S copies source to target. Ctrl+, inserts pipe symbols for CafeTran. Pipes highlighted in red/bold. Sortable keyboard shortcuts table. Batch size default changed to 20
66
+ - 🔄 **CafeTran Bilingual DOCX Support (v1.9.7)** - Full import/export support for CafeTran bilingual DOCX files. Import preserves pipe symbol formatting markers. Export writes translations back with formatting preserved. Round-trip workflow for CafeTran users
67
+ - 📁 **Custom File Extensions & Monolingual Export (v1.9.6)** - New branded file extensions: `.svproj` (projects), `.svprompt` (prompts), `.svntl` (non-translatables). All formats maintain backward compatibility. Monolingual DOCX import now prompts for language pair. New "Target Only (DOCX)" export preserves original document structure (tables, formatting). Original DOCX path saved in project files for reliable exports
68
+ - 📤 **Send Segments to TM & memoQ Tag Shortcuts (v1.9.5)** - Bulk send translated segments to TMs via Edit > Bulk Operations. Filter by status (Translated, Reviewed, etc.) and scope. New Ctrl+, shortcut inserts memoQ tags pairs or wraps selection. Tab renamed to "Resources"
69
+ - 🏷️ **Tag-Based Formatting System (v1.9.4)** - Complete inline formatting support for memoQ bilingual files. Import preserves bold/italic/underline as `<b>`, `<i>`, `<u>` tags. Toggle between WYSIWYG and Tag view with Ctrl+Alt+T. Ctrl+B/I/U shortcuts to apply formatting. AI translation preserves tags. Export converts tags back to Word formatting
70
+ - 📋 **Session Log Tab & TM Defaults Fix (v1.9.3)** - Added Session Log tab to bottom panel for easy access to log messages. Fixed TM Read/Write checkbox defaults to respect project.json settings
71
+ - ⚙️ **Superlookup Settings UI (v1.9.2)** - Redesigned Settings tab with sub-tabs for TM/Termbase/MT/Web resources. Proper 18x18px checkboxes with green background and white checkmarks matching standard Supervertaler style. Each resource type has dedicated full-height space for easy selection
72
+ - ↩️ **Undo/Redo for Grid Edits (v1.9.1)** - Full undo/redo support for grid editing operations with Ctrl+Z/Ctrl+Y. Tracks target text changes, status changes, and find/replace operations with 100-level history
73
+ - 🔍 **Termview - Inline Terminology (v1.9.0)** - Visual inline terminology display showing source words with translations underneath, inspired by RYS Trados plugin. Supports multi-word terms, click-to-insert, hover tooltips, and terms with punctuation like "gew.%"
74
+ - 🎨 **UI Refinements - Tab Styling (v1.8.0)** - Refined selected tab appearance with subtle 1px blue underline and light background highlighting for cleaner visual design
75
+ - ✅ **Simplified TM/Termbase System (v1.6.6)** - Redesigned with Read/Write checkboxes, auto-priority system, removed complex Active/Project concepts for clearer workflow
76
+ - 🔍 **Find/Replace & TM Enhancements (v1.7.9)** - Fixed highlighting, disabled TM saves during navigation, added bidirectional TM search with language variant matching
77
+ - 🔍 **Filter Highlighting Fix (v1.7.8)** - Fixed search term highlighting in source/target filter boxes using widget-internal highlighting
78
+ - 🎯 **Termbase Display Customization (v1.7.7)** - User-configurable termbase match sorting and filtering for cleaner translation results
79
+ - 💾 **Auto Backup System (v1.7.6)** - Automatic project.json and TMX backups at configurable intervals to prevent data loss
80
+ - 🐛 **Critical TM Save Bug Fix (v1.7.5)** - Fixed massive unnecessary database writes during grid operations that caused 10+ second freezes
81
+ - 💾 **Project Persistence (v1.7.4)** - Projects now remember your primary prompt and image context folder
82
+ - 🧪 **Prompt Preview & System Template Editor (v1.7.3)** - Preview combined prompts with figure context detection and improved system template editor with better layout
83
+ - 🔧 **Termbase Critical Fixes (v1.7.2)** - Fixed term deduplication and termbase selection issues
84
+ - 🎨 **Termbase UI Polish (v1.7.1)** - Improved visual consistency with pink highlighting for project termbases and real-time term count updates
85
+ - 📚 **Project Termbases (v1.7.0)** - Dedicated project-specific terminology with automatic extraction and pink highlighting
86
+ - 📁 **File Dialog Memory (v1.6.5)** - File dialogs remember your last used directory for improved workflow
87
+ - 🌐 **Superbrowser (v1.6.4)** - Multi-chat AI browser with ChatGPT, Claude, and Gemini side-by-side in one window
88
+ - ⚡ **UI Responsiveness & Precision Scroll (v1.6.3)** - Debug settings, disabled LLM auto-matching, memoQ-style precision scroll buttons, auto-center active segment
89
+ - 🖼️ **Superimage (v1.6.2)** - Extract images from DOCX files with preview and auto-folder management
90
+ - 📚 **Enhanced Termbase System (v1.6.1)** - Extended metadata with notes, project, client fields and refresh functionality
91
+ - 📚 **Complete Termbase System (v1.6.0)** - Professional terminology management with interactive features
92
+ - 🎤 **Supervoice (v1.4.0)** - AI voice dictation with OpenAI Whisper, 100+ languages, F9 hotkey
93
+ - 📊 **Superbench (v1.4.1)** - Benchmark LLM translation quality on YOUR actual projects with chrF++ scoring
94
+ - 🤖 **AI Assistant (v1.3.4)** - ChatGPT-quality conversational prompt refinement built into the editor
95
+ - 📚 **Unified Prompt Library (v1.3.0)** - Unlimited folders, favorites, multi-attach, quick run
96
+ - 📝 **TMX Editor (v1.1.3)** - Database-backed editor handles massive 1GB+ TMX files
97
+ - ✋ **AutoFingers (v1.2.4)** - Automated TMX-to-memoQ pasting with fuzzy matching and tag cleaning
98
+ - 📄 **PDF Rescue** - AI OCR with GPT-4 Vision transforms locked PDFs into clean DOCX
99
+ - 🖼️ **Image Context** - Multimodal AI automatically includes images when translating technical documents
100
+ - 💾 **Translation Memory** - Fuzzy matching with TMX import/export, auto-propagation
101
+ - 🔄 **CAT Tool Integration** - memoQ, Trados, CafeTran bilingual table support
102
+
103
+ **See full version history below** ↓
104
+
105
+ ---
106
+
107
+ ## [1.9.41] - December 16, 2025
108
+
109
+ ### 🌙 Dark Mode - Complete Theme Implementation
110
+
111
+ **Full dark theme support across the entire application:**
112
+ - 🎨 **Compare Boxes**: Translation Results panel now properly displays dark backgrounds for Current Source, TM Source, and TM Target boxes in dark mode
113
+ - 📝 **Termview Visibility**: All words in Termview pane now visible in dark mode - not just terms with matches. Non-matched words use light text color on dark background
114
+ - 🔄 **Theme Consistency**: Fixed Qt styling issues where hidden widgets weren't receiving theme updates. Theme colors now applied when widgets become visible
115
+ - ⚡ **Reliable Styling**: Uses both stylesheet and QPalette approaches for maximum compatibility across different Qt rendering scenarios
116
+
117
+ **Technical improvements:**
118
+ - Added `_apply_compare_box_theme()` method for reliable theme application on visibility
119
+ - Theme-aware `TermBlock` and `NTBlock` classes in Termview widget
120
+ - Proper color inheritance for all UI components in dark mode
121
+
122
+ **Access Dark Mode:** View → Theme Editor → Select "Dark" theme
123
+
124
+ ---
125
+
126
+ ## [1.9.40] - December 12, 2025
127
+
128
+ ### 🔍 Superlookup Unified Concordance System
129
+
130
+ **Major consolidation - Ctrl+K now opens Superlookup instead of separate dialog:**
131
+ - 🔗 **Unified Lookup Hub**: All concordance searches now go through Superlookup - one place for TM, Termbase, Supermemory, MT, and Web Resources
132
+ - ⌨️ **Ctrl+K Integration**: Pressing Ctrl+K in Project Editor navigates to Tools → Superlookup and auto-searches selected text
133
+ - 📝 **Selected Text Auto-Fill**: Any text selected in source/target automatically populates the search field
134
+
135
+ **Dual-view toggle for TM Matches tab:**
136
+ - 📊 **Horizontal (Table)**: Source | Target columns side-by-side - compact and scannable
137
+ - 📜 **Vertical (List)**: Dutch: ... / English: ... stacked format - traditional concordance layout with more detail
138
+ - 🔄 **Radio Button Toggle**: Switch between views instantly, results update in both views
139
+
140
+ **UI/Tab reorganization:**
141
+ - 📚 **"Resources" → "Project Resources"**: Clearer naming for the resources tab
142
+ - 🔀 **Tab Reorder**: Project Resources now comes BEFORE Prompt Manager (more logical flow)
143
+ - 🧹 **Removed Redundant Tabs**: Translation Memories no longer has Concordance or Import/Export tabs (functionality in Superlookup and TM List)
144
+ - 📦 **Compact Source Text**: Superlookup source text box shrunk from 100px to 50px
145
+ - 📚 **"Termbase Terms" → "Termbase Matches"**: Consistent naming
146
+
147
+ **FTS5 Full-Text Search optimization:**
148
+ - ⚡ **Concordance now uses FTS5**: `concordance_search()` now uses SQLite FTS5 MATCH instead of slow LIKE queries
149
+ - 🚀 **100-1000x faster** on large databases with millions of segments
150
+ - 🔄 **Auto-sync**: FTS5 index automatically rebuilt if out of sync with main table
151
+ - 🔧 **Manual rebuild**: New `rebuild_fts_index()` method available for maintenance
152
+
153
+ **ChromaDB stability fix:**
154
+ - 🐛 **Fixed Rust backend crashes**: Removed all `collection.count()` calls that caused native crashes in ChromaDB 1.3.x
155
+ - 📊 **Uses metadata count**: Stats now derived from SQLite metadata instead of ChromaDB collection queries
156
+ - ✅ **ChromaDB 0.6.3**: Stable version with Python backend, compatible with tokenizers 0.22.0
157
+
158
+ ---
159
+
160
+ ## [1.9.39] - December 11, 2025
161
+
162
+ ### 🔍 Superlookup Multilingual Search
163
+
164
+ **Multilingual language filtering for TM and termbase searches:**
165
+ - 🌍 **From/To Language Dropdowns**: New filter dropdowns in Superlookup search bar to filter by source/target language pair
166
+ - 🔄 **Swap Button**: Quick ↔ button to swap From and To language selections
167
+ - 📚 **Auto-Population**: Languages auto-populate from your TMs and termbases when tab is first viewed
168
+ - 🔤 **Smart Sorting**: Languages alphabetically sorted with family grouping (all Dutch variants together, all English variants together, etc.)
169
+ - 🏷️ **Clear Display**: Format shows "English (en)", "Dutch (nl-BE)" for clarity and uniqueness
170
+
171
+ **Search direction controls:**
172
+ - ↔️ **Both**: Bidirectional search (searches source and target columns)
173
+ - → **Source only**: Search only in source text
174
+ - ← **Target only**: Search only in target text
175
+
176
+ **UI improvements:**
177
+ - 🟡 **Yellow Highlighting**: Search terms now highlighted in yellow in TM and termbase results
178
+ - 📏 **Compact Display**: Results use word wrap with 60px max row height, tooltips show full text on hover
179
+ - 🔢 **Hidden Row Numbers**: Cleaner display without row number column
180
+ - 🧹 **Removed Manual Capture**: Button was redundant (just paste text manually)
181
+ - 🧹 **Removed Operating Modes**: Dropdown was pointless (only Universal mode was used)
182
+
183
+ ---
184
+
185
+ ## [1.9.38] - December 11, 2025
186
+
187
+ ### 📁 Project File & UX Improvements
188
+
189
+ **Reorganized .svproj file structure for human readability:**
190
+ - 📄 **Metadata First**: Project name, languages, dates, ID now at the top of the file
191
+ - ⚙️ **Settings Next**: Prompt, TM, termbase, spellcheck settings follow metadata
192
+ - 📂 **Paths Then**: Source file paths (DOCX, memoQ, Trados, etc.) before segments
193
+ - 📝 **Segments Last**: Translation content at the end for easy scrolling in text editors
194
+
195
+ **Improved batch translate warning for memoQ files:**
196
+ - 💡 Added tip: "You can clear all targets without re-importing" with instructions to use Select All + Clear Target from right-click menu
197
+ - Saves users from having to go back to memoQ to clean the file
198
+
199
+ ---
200
+
201
+ ## [1.9.37] - December 11, 2025
202
+
203
+ ### 🔤 User-Configurable Grid Fonts
204
+
205
+ **New font customization options in Settings → View Settings:**
206
+ - 🔤 **Font Family Dropdown**: Choose from 10 popular fonts: Calibri, Segoe UI, Arial, Consolas, Verdana, Times New Roman, Georgia, Courier New, Tahoma, Trebuchet MS
207
+ - 👁️ **Live Preview**: Real-time preview showing sample source/target text with tags, updates instantly as you change font settings
208
+ - 💾 **Font Persistence**: Font family now saved to preferences and restored on startup (previously only font size was saved)
209
+ - 🎯 **Improved Spinbox**: Fixed font size spinner up/down arrows with better click targets
210
+ - 📝 **Contact Note**: Info text now includes "If your favourite font is missing, contact the developer!"
211
+
212
+ ---
213
+
214
+ ## [1.9.36] - December 10, 2025
215
+
216
+ ### 🎨 Universal Tag Coloring
217
+
218
+ **All CAT tool tags now highlighted in pink in the translation grid:**
219
+ - 🏷️ **memoQ Tags**: `{1}`, `[2}`, `{3]`, `[4]` - all variations now colored pink
220
+ - 🏷️ **Trados Tags**: `<1>`, `</1>` - numeric tags now colored pink
221
+ - 🏷️ **Phrase Tags**: `{1}`, `{2}` - same as memoQ, now colored pink
222
+ - 🏷️ **HTML Tags**: `<b>`, `<i>`, `<u>`, `<li-o>` - already worked, still works
223
+
224
+ **CafeTran Pipe Symbol Fix:**
225
+ - 🐛 **Bug Fix**: Pipe symbols (`|`) were incorrectly highlighted red in ALL project types
226
+ - ✅ **Fixed**: Pipes now only red in CafeTran projects (as intended)
227
+ - 🔧 **Implementation**: Added `TagHighlighter._is_cafetran_project` class flag
228
+
229
+ ---
230
+
231
+ ## [1.9.35] - December 10, 2025
232
+
233
+ ### 🎨 formatting
234
+ - **memoQ Red Tags**: Fixed issue where red formatting tags (e.g. `{1}`) in memoQ bilingual files were being exported as black text.
235
+ - **Smart Color Transfer**: Export now dynamically reads the source column color and applies it to the corresponding text in the target column.
236
+
237
+ ## [1.9.34] - December 10, 2025
238
+
239
+ ### 🎨 UI Fixes
240
+
241
+ **Checkmark Radio Buttons:**
242
+ - 🎨 **Global Update**: Replaced all standard `QRadioButton` instances across the application with the custom green `CheckmarkRadioButton`.
243
+ - ✅ **Updated Areas**: Find & Replace, Advanced Filters, Row Locking, Termbase Import, AutoFingers, and TM Import dialogs.
244
+ - 💅 **Visual Consistency**: Ensures a uniform look and feel across all green-themed UI elements.
245
+
246
+ ---
247
+
248
+ ## [1.9.32] - December 10, 2025
249
+
250
+ ### 📦 Trados SDLRPX Status Fix
251
+
252
+ **Critical Bug Fix for Trados Return Packages:**
253
+ - 🔧 **Status Update Fix**: SDLRPX export now correctly updates segment confirmation status from "Draft" to "Translated"
254
+ - ✅ **Proper Trados Recognition**: Trados Studio now recognizes segments as translated, not machine translation drafts
255
+ - 📤 **Client Deliverables**: Return packages display correctly in Trados when client opens them
256
+ - 🏷️ **conf Attribute**: Fixed missing update of `conf` attribute in SDLXLIFF `<sdl:seg>` elements
257
+
258
+ **Technical Details:**
259
+ - Added `_update_segment_status()` method to `sdlppx_handler.py`
260
+ - Updates `conf` attribute in `sdl:seg-defs` section during export
261
+ - Maps internal status ('translated', 'approved') to SDL status ('Translated', 'ApprovedTranslation')
262
+ - Proper namespace handling for SDL elements in ElementTree
263
+
264
+ ---
265
+
266
+ ---
267
+
268
+ ## [1.9.33] - December 10, 2025
269
+
270
+ ### 🐛 Spellcheck Update Fix
271
+
272
+ **Fixed Spellcheck Highlighting Update:**
273
+ - 🔧 **Global Refresh**: Adding a word to custom dictionary or ignoring it now immediately updates all occurrences in the grid
274
+ - ✅ **No More False Positives**: Red wavy underlines vanish instantly across the entire document when you whitelist a word
275
+ - 🖱️ **Context Menu Fix**: Right-click "Add to Dictionary" and "Ignore Word" actions now trigger full grid refresh
276
+
277
+ ---
278
+
279
+ ## [1.9.31] - December 10, 2025
280
+
281
+ ### 🔤 Spellcheck Language Fix
282
+
283
+ **Spellcheck Now Uses Project Target Language:**
284
+ - 🎯 **Automatic Language Detection**: Spellcheck initializes with project's target language instead of defaulting to English
285
+ - 🌐 **Language Dropdown**: Added language selector in Spellcheck Info dialog
286
+ - 🔄 **Immediate Effect**: Language changes take effect immediately with highlighting refresh
287
+ - 📝 **Fixed Initialization**: `_toggle_spellcheck()` now uses `self.current_project.target_lang`
288
+
289
+ ---
290
+
291
+ ## [1.9.30] - December 10, 2025
292
+
293
+ ### 🐛 Critical LLM Fix
294
+
295
+ **Fixed OpenAI/LLM Translation Error:**
296
+ - 🔧 **File Path Error**: Fixed "No such file or directory: 'openai_debug.txt'" error that broke all LLM translations
297
+ - 📁 **Debug Path**: Removed hardcoded debug file path that only worked in development directory
298
+ - ✅ **Production Ready**: Translations now work when running from any directory
299
+
300
+ ---
301
+
302
+ ## [1.9.29] - December 10, 2025
303
+
304
+ ### 📝 Spellcheck Integration
305
+
306
+ **Built-in Spellchecking for Target Language:**
307
+ - 📝 **Spellcheck Button**: Toggle in filter bar enables/disables spellchecking
308
+ - 〰️ **Red Wavy Underlines**: Misspelled words highlighted with red wavy underline
309
+ - 💬 **Right-Click Suggestions**: Click misspelled word for spelling suggestions
310
+ - ➕ **Add to Dictionary**: Add words to custom dictionary (persistent)
311
+ - 🔇 **Ignore Word**: Ignore word for current session only
312
+ - 📖 **Custom Dictionary**: Manage custom words from dropdown menu
313
+ - ℹ️ **Spellcheck Info**: View backend, language, and dictionary status
314
+
315
+ **Language Support:**
316
+ - 🇬🇧 English, 🇳🇱 Dutch, 🇩🇪 German, 🇫🇷 French, 🇪🇸 Spanish, 🇵🇹 Portuguese, 🇮🇹 Italian, 🇷🇺 Russian
317
+ - 🐍 **Built-in Backend**: Uses pyspellchecker with bundled dictionaries - works out of the box!
318
+ - 📚 **Hunspell Backend**: Optional .dic/.aff files for additional languages or improved accuracy
319
+ - Auto-matches project target language
320
+
321
+ **Settings & Persistence:**
322
+ - 💾 **Project-Level Settings**: Spellcheck state saved in .svproj files
323
+ - 🔄 **Session Persistence**: Button state remembered across restarts
324
+ - ℹ️ **Info Dialog**: Explains dual-backend system with dictionary download links
325
+
326
+ **Technical Details:**
327
+ - New module: `modules/spellcheck_manager.py` - Complete spellcheck handling
328
+ - Custom dictionary stored in `user_data/dictionaries/custom_words.txt`
329
+ - TagHighlighter extended for spell underline formatting
330
+ - Spellcheck only applied to target column (not source)
331
+ - Settings persisted in `ui_preferences.json` and `.svproj` files
332
+
333
+ ---
334
+
335
+ ## [1.9.28] - December 9, 2025
336
+
337
+ ### 📄 Phrase (Memsource) Bilingual DOCX Support
338
+
339
+ **Full Round-Trip Workflow:**
340
+ - 📥 **Import Phrase Bilingual DOCX**: File → Import → Phrase (Memsource) Bilingual (DOCX)
341
+ - 📤 **Export Back to Phrase**: File → Export → Phrase (Memsource) Bilingual - Translated (DOCX)
342
+ - 🏷️ **Inline Tag Preservation**: Tags like `{1}`, `{1>text<1}` preserved for round-trip
343
+ - 🔍 **Auto-Detection**: Detects Phrase format (7-column tables, segment IDs with `:`)
344
+ - 💾 **Project Persistence**: Phrase source path saved in .svproj for future sessions
345
+
346
+ **Implementation:**
347
+ - New module: `modules/phrase_docx_handler.py` - Complete Phrase DOCX handling
348
+ - Language pair selection dialog for imported files
349
+ - Segment ID and status preserved in notes field
350
+ - Export updates only Column 5 (target text) as Phrase expects
351
+
352
+ ### 👁️ Show Invisibles Feature
353
+
354
+ **Display Invisible Characters:**
355
+ - 🔘 **Dropdown Menu**: Show Invisibles button with granular control
356
+ - · **Spaces**: Displayed as middle dot (·)
357
+ - → **Tabs**: Displayed as right arrow (→)
358
+ - ° **Non-Breaking Spaces**: Displayed as degree symbol (°)
359
+ - ¶ **Line Breaks**: Displayed as pilcrow (¶)
360
+ - 🎯 **Toggle All**: Quick on/off for all invisible types
361
+
362
+ **Smart Handling:**
363
+ - 📋 **Clipboard Safety**: Ctrl+C copies original characters, not symbols
364
+ - 🖱️ **Double-Click Selection**: Properly selects words when invisibles shown
365
+ - ⌨️ **Ctrl+Arrow Navigation**: Word-by-word navigation works correctly
366
+ - 🎨 **Configurable Color**: Symbol color in Settings → View Settings (default: light gray)
367
+ - ✅ **Zero-Width Space Technique**: Uses U+200B for line-break opportunities without breaking word boundaries
368
+
369
+ **Technical Details:**
370
+ - Replacements applied only at display time (segment data never modified)
371
+ - Automatic reversal when text is saved or edited
372
+ - TagHighlighter extended to color invisible symbols
373
+
374
+ ### 🔧 TM Pre-Translation Fix
375
+
376
+ **Batch Translate with TM:**
377
+ - 🐛 **Fixed TM-Only Mode**: Batch Translate dialog now properly handles TM as a translation provider
378
+ - 📖 **TM Provider Support**: Select "Translation Memory" in provider dropdown for TM-only batch translation
379
+ - 🎯 **Respects Activated TMs**: Uses project's activated TMs for matching
380
+ - 📊 **Match Threshold**: Accepts matches 70% and above for pre-translation
381
+
382
+ ---
383
+
384
+ ## [1.9.26] - December 8, 2025
385
+
386
+ ### 🔄 Automatic Model Version Checker
387
+
388
+ **Smart Model Updates:**
389
+ - 🆕 **Auto-detect New LLM Models**: Automatically checks for new models from OpenAI, Anthropic, and Google
390
+ - 📅 **Daily Checks**: Runs once per 24 hours on startup (configurable)
391
+ - 🔔 **Smart Notifications**: Popup dialog only when new models are detected
392
+ - ✅ **Easy Selection**: Click to select which models to add to Supervertaler
393
+ - 💾 **Intelligent Caching**: Remembers last check to avoid unnecessary API calls
394
+ - ⚙️ **Fully Configurable**: Enable/disable auto-check in Settings → AI Settings
395
+ - 🔍 **Manual Check**: "Check for New Models Now" button for on-demand checking
396
+
397
+ **Implementation:**
398
+ - New module: `modules/model_version_checker.py` - Core checking logic with 24-hour throttling
399
+ - New module: `modules/model_update_dialog.py` - User-friendly PyQt6 dialogs
400
+ - Settings integration: New "Model Version Checker" section in AI Settings
401
+ - Cache system: Stores results in `user_data/model_version_cache.json`
402
+ - Provider support: OpenAI (models.list API), Claude (pattern testing), Gemini (models API)
403
+
404
+ **User Experience:**
405
+ - Silent operation: No interruption if no new models found
406
+ - Error handling: Graceful degradation if APIs unavailable
407
+ - Documentation: Complete UI standards guide to maintain consistency
408
+
409
+ ### 🎨 UI Polish & Standardization
410
+
411
+ **Checkbox Consistency:**
412
+ - ✅ **Standardized All Checkboxes**: Replaced 3 blue QCheckBox instances with green CheckmarkCheckBox
413
+ - 📏 **Refined Size**: Reduced checkbox size from 18x18px to 16x16px for cleaner appearance
414
+ - 📚 **Documentation**: Created UI_STANDARDS.md to prevent future inconsistencies
415
+ - 🎯 **Visual Consistency**: All checkboxes now use custom green style with white checkmarks
416
+
417
+ **Fixed Checkboxes:**
418
+ - "Enable LLM (AI) matching on segment selection"
419
+ - "Auto-generate markdown for imported documents"
420
+ - "Enable automatic model checking (once per day on startup)"
421
+
422
+ ---
423
+
424
+ ## [1.9.25] - December 8, 2025
425
+
426
+ ### 🐧 Linux Compatibility Release
427
+
428
+ **Platform Support:**
429
+ - ✅ **Full Linux Compatibility**: Supervertaler now runs perfectly on Ubuntu and other Linux distributions
430
+ - ✅ **Removed Legacy Dependencies**: Eliminated tkinter imports from TMX editor module
431
+ - ✅ **Complete requirements.txt**: All dependencies now properly documented and installable
432
+ - ✅ **Graceful Platform Detection**: AutoFingers shows helpful message on Linux (Windows/memoQ-specific feature)
433
+
434
+ **Installation Improvements:**
435
+ - 📦 **One-Command Setup**: `pip install -r requirements.txt` installs all dependencies
436
+ - 📝 **Added Missing Dependencies**:
437
+ - `pyyaml` - YAML support for Non-Translatables manager
438
+ - `PyMuPDF` - PDF processing for PDF Rescue module
439
+ - `sentence-transformers` - Semantic search for Supermemory
440
+ - `keyboard` - Keyboard control for AutoFingers
441
+ - `lxml` - XML processing for Trados DOCX handler
442
+ - 🛠️ **Platform-Specific Notes**: Clear documentation for Linux, Windows, and macOS compatibility
443
+ - 🔧 **Optional Dependencies**: Voice dictation and automation features clearly marked as optional
444
+
445
+ **Bug Fixes:**
446
+ - 🐛 **Fixed AutoFingers Import**: Made `pyautogui` import optional with graceful fallback for Linux
447
+ - 🐛 **Fixed TMX Editor**: Removed unnecessary tkinter dependency from core module
448
+ - 🐛 **Fixed Import Errors**: Proper error handling for platform-specific features
449
+
450
+ **Technical Changes:**
451
+ - 🔄 **AutoFingers Engine**: Added `HAS_PYAUTOGUI` flag for cross-platform compatibility
452
+ - 🔄 **Import Guards**: Platform-specific features now detect availability at runtime
453
+ - 📚 **Documentation**: Enhanced requirements.txt with feature descriptions and platform notes
454
+
455
+ **For Users:**
456
+ - 🎯 **Fresh Installation**: Works out-of-the-box on fresh Ubuntu installations
457
+ - 🎯 **Virtual Environment**: Full support for Python venv isolated installations
458
+ - 🎯 **Cross-Platform**: Same codebase works on Windows, Linux, and macOS
459
+
460
+ ---
461
+
462
+ ## [1.9.24] - December 7, 2025
463
+
464
+ ### ✨ Smart Word Selection
465
+ - **Intelligent Text Selection**: Selecting part of a word automatically expands to the full word
466
+ - Makes word selection faster and less stressful during translation
467
+ - Works in both source (read-only) and target (editable) columns
468
+ - Supports compound words with hyphens (e.g., "self-contained")
469
+ - Supports contractions with apostrophes (e.g., "don't", "l'homme")
470
+ - Threshold-based: Only expands selections under 50 characters (prevents interference with multi-word selections)
471
+ - **Settings Toggle**: New "Enable smart word selection" checkbox in Settings → General → Editor Settings
472
+ - Enabled by default
473
+ - Helpful tooltip explains the feature with examples
474
+ - Can be disabled if user prefers traditional selection behavior
475
+ - **Implementation**:
476
+ - Added `mouseReleaseEvent()` to both `ReadOnlyGridTextEditor` and `EditableGridTextEditor`
477
+ - Word character detection includes alphanumeric, underscore, hyphen, and apostrophe
478
+ - Boundary detection ensures expansion only occurs when selection is partial
479
+ - Respects settings toggle across the application
480
+ - **Documentation**: Complete feature documentation in `SMART_WORD_SELECTION.md`
481
+ - Implementation details, testing checklist, known limitations, future enhancements
482
+
483
+ ### 🛡️ Supermemory Error Handling Improvements
484
+ - **Better DLL Error Messages**: Enhanced PyTorch DLL loading failure handling
485
+ - `modules/supermemory.py` now catches `OSError` and `Exception` (not just `ImportError`)
486
+ - Windows-specific DLL errors are properly caught and handled
487
+ - Stores error message in `SENTENCE_TRANSFORMERS_ERROR` for debugging
488
+ - **Helpful Instructions**: Auto-detects DLL errors and provides actionable solutions
489
+ - Detects "DLL", "c10.dll", or "torch" in error messages
490
+ - Provides 3 specific fixes with direct links and exact commands:
491
+ 1. Install Visual C++ Redistributables (https://aka.ms/vs/17/release/vc_redist.x64.exe)
492
+ 2. Reinstall PyTorch with exact pip commands
493
+ 3. Disable Supermemory auto-init in Settings as fallback
494
+ - Instructions appear automatically in the log when error occurs
495
+ - **Technical Details**:
496
+ - Modified `Supervertaler.py`: Lines 4116-4126 (error handler in `_auto_init_supermemory()`)
497
+ - Modified `modules/supermemory.py`: Lines 45-51 (exception catching)
498
+
499
+ ---
500
+
501
+ ## [1.9.23] - December 7, 2025
502
+
503
+ ### 📄 Bilingual Table Landscape Orientation
504
+ - **Improved Visualization**: Supervertaler Bilingual Table exports now use landscape orientation
505
+ - Better visualization of long segments (source and target columns have more horizontal space)
506
+ - Applies to both "With Tags" and "Formatted" export options
507
+ - Page dimensions automatically swapped for landscape layout
508
+ - Maintains 0.5-inch margins on all sides
509
+ - **Technical Details**:
510
+ - Added `WD_ORIENT.LANDSCAPE` to document sections
511
+ - Swapped page width/height for proper landscape rendering
512
+ - Modified `Supervertaler.py`: Lines 7820-7832 (document setup)
513
+
514
+ ---
515
+
516
+ ## [1.9.22] - December 7, 2025
517
+
518
+ ### 🤖 Gemini 3 Pro Preview Support
519
+ - **Latest Google AI Model**: Added support for Gemini 3 Pro Preview (November 2025 release)
520
+ - New model option in Settings → LLM Settings → Gemini Models dropdown
521
+ - Listed as "gemini-3-pro-preview (Latest - Superior Performance)"
522
+ - Works in both single segment translation (Ctrl+T) and batch translation
523
+ - Performance: 10-20% improvement on average, 6-20x better on reasoning/math tasks
524
+ - Pricing: $2/$12 per million tokens (vs $1.25/$10 for Gemini 2.5 Pro)
525
+ - **LLM Client Update**: Added all current Gemini models to supported list
526
+ - `gemini-2.5-flash-lite` (Fastest & Most Economical)
527
+ - `gemini-2.5-pro` (Premium - Complex Reasoning)
528
+ - `gemini-3-pro-preview` (Latest - Superior Performance)
529
+ - Updated module documentation to reflect Gemini 3 support
530
+ - **Files Modified**:
531
+ - `Supervertaler.py`: Lines 10889-10902 (model dropdown and tooltip)
532
+ - `modules/llm_clients.py`: Lines 8-11 (docs), 220-229 (supported models)
533
+
534
+ ---
535
+
536
+ ## [1.9.21] - December 6, 2025
537
+
538
+ ### 🐛 Critical SDLPPX Handler Bug Fix
539
+ - **Fixed SDLRPX Export Failure After Project Reload**: Fixed "'str' object is not callable" error when exporting SDLRPX return packages after reopening a saved project
540
+ - Root cause: Handler was initialized with path string instead of log_callback parameter
541
+ - The path was incorrectly assigned to `self.log`, causing export to fail when trying to call log function
542
+ - Now correctly initializes handler with `TradosPackageHandler(log_callback=self.log)` and calls `load_package(path)` separately
543
+ - Also fixed missing `self.sdlppx_source_file` assignment during handler restoration
544
+ - Full SDLPPX workflow now works correctly: import package → translate → save project → close → reopen → export SDLRPX ✓
545
+ - **Impact**: This bug prevented translators from exporting return packages after reopening saved SDLPPX projects, breaking the workflow for Trados Studio package handling
546
+
547
+ ---
548
+
549
+ ## [1.9.20] - December 5, 2025
550
+
551
+ ### 📦 SDLPPX Project Persistence
552
+ - **Project Save/Restore**: SDLPPX package path now saved in .svproj files
553
+ - Added `sdlppx_source_path` field to Project dataclass
554
+ - Serialized in `to_dict()`, deserialized in `from_dict()`
555
+ - Full round-trip workflow now persists across sessions
556
+ - **Handler Restoration**: SDLPPX handler automatically restored on project load
557
+ - When opening a .svproj from an SDLPPX import, handler is recreated
558
+ - SDLRPX export available immediately without reimporting
559
+ - Log message confirms: "✓ Restored Trados package handler"
560
+ - **Export Bug Fix**: Fixed SDLRPX export showing "0 translations updated"
561
+ - Export now reads from segment objects instead of table widget items
562
+ - Notes column was never populated as QTableWidgetItem - data is in segment.notes
563
+ - Verified translations correctly written to return package
564
+
565
+ ---
566
+
567
+ ## [1.9.19] - December 4, 2025
568
+
569
+ ### 📦 Trados Studio Package Support
570
+ - **SDLPPX Import**: Import Trados Studio project packages directly
571
+ - File → Import → Trados Studio → Package (SDLPPX)
572
+ - Parses SDLXLIFF files within the package
573
+ - Shows package info dialog with file list and segment counts
574
+ - Preserves SDL-specific markup and segment IDs
575
+ - Automatic language detection from package metadata
576
+ - **SDLRPX Export**: Create return packages for delivery
577
+ - File → Export → Trados Studio → Return Package (SDLRPX)
578
+ - Writes translations back to SDLXLIFF files
579
+ - Creates properly formatted return package
580
+ - Round-trip workflow for freelance translators
581
+ - **Menu Reorganization**: Grouped all Trados import/export options
582
+ - New "Trados Studio" submenu under Import and Export
583
+ - Contains both bilingual review DOCX and package options
584
+ - **New Module**: `modules/sdlppx_handler.py` (767 lines)
585
+ - `TradosPackageHandler` class for package management
586
+ - `SDLXLIFFParser` for parsing SDL-extended XLIFF files
587
+ - Handles `<g>`, `<x/>`, `<mrk mtype="seg">` tags
588
+ - Preserves SDL namespaces and attributes
589
+
590
+ ---
591
+
592
+ ## [1.9.18] - December 4, 2025
593
+
594
+ ### 🔍 Supermemory Concordance Integration
595
+ - Concordance Search (Ctrl+K) now includes Supermemory semantic search
596
+ - Two-tab interface: TM Matches tab for exact text, Supermemory tab for meaning
597
+ - Active checkbox column in Supermemory to control which TMs are searched
598
+ - Fixed Trados bilingual DOCX round-trip issues (xml:space, language settings)
599
+ - Supermemory moved from Tools tab to Resources tab
600
+
601
+ ---
602
+
603
+ ## [1.9.17] - December 3, 2025
604
+
605
+ ### 🧠 Supermemory Enhancements - Domain Management & Superlookup Integration
606
+
607
+ **Major upgrade to the vector-indexed translation memory system:**
608
+
609
+ **Domain Management System:**
610
+ - Added **Domain dataclass** with name, description, color, and active status
611
+ - New database schema: `domains` table and `domain` column in `indexed_tms`
612
+ - **8 default domains:** General, Patents, Medical, Legal, Technical, Marketing, Financial, Software
613
+ - **DomainManagerDialog:** Full CRUD interface with color pickers and active toggles
614
+ - Assign domains during TMX import with intuitive dropdown selector
615
+ - Color-coded domain tags in search results for visual categorization
616
+
617
+ **Enhanced Search & Filtering:**
618
+ - **Language pair filter:** Dropdown to filter by source-target language combination
619
+ - **Multi-domain filter:** Select multiple active domains to search within
620
+ - **Dynamic column headers:** Results table shows actual language codes (e.g., "Source (EN)", "Target (NL)")
621
+ - Search respects both language pair and domain filters simultaneously
622
+
623
+ **Superlookup Integration:**
624
+ - **New "Supermemory" tab** in Superlookup for unified terminology/TM lookup
625
+ - Semantic search results appear alongside TM, termbase, and MT matches
626
+ - Click to insert matches directly into target segment
627
+ - Seamless integration with existing Superlookup workflow
628
+
629
+ **Export Functionality:**
630
+ - **Export to TMX:** Full TMX export with language headers and segment metadata
631
+ - **Export to CSV:** Simple source-target pairs for spreadsheet workflows
632
+ - Export dialog lets you choose format before exporting
633
+
634
+ ### Consolidated AI Settings
635
+
636
+ - Merged Gemini and Mistral settings into unified **"AI Settings"** tab
637
+ - Cleaner Settings panel with fewer tabs
638
+ - All API keys and model selections in one place
639
+
640
+ ---
641
+
642
+ ## [1.9.18] - December 4, 2025
643
+
644
+ ### 🔍 Supermemory Concordance Integration & Trados Fixes
645
+
646
+ **Concordance Search now includes Supermemory semantic search:**
647
+
648
+ **Concordance Search Enhancements:**
649
+ - **Two-tab interface:** "TM Matches" (exact text) and "Supermemory" (semantic/meaning-based)
650
+ - Semantic search finds translations by meaning, not just exact words
651
+ - Tab headers show result counts (e.g., "📋 TM Matches (9)" and "🧠 Supermemory (25)")
652
+ - Results display similarity scores with color-coded High/Medium/Low indicators
653
+ - Window remembers position and size across sessions (saved to project)
654
+
655
+ **Supermemory UI Improvements:**
656
+ - **Moved to Resources tab** - now under Resources → Supermemory (was Tools)
657
+ - **Active checkbox column** in TM table - toggle which TMs are searched
658
+ - Only active TMs are included in Concordance semantic search
659
+ - Checkbox state persists in database
660
+
661
+ **Trados Bilingual DOCX Fixes:**
662
+ - Fixed `xml:space="preserve"` attribute on text elements for proper whitespace handling
663
+ - Fixed target language settings - runs now inherit from paragraph (was incorrectly setting nl-NL)
664
+ - Added language selection dialog on import (Trados files don't specify languages)
665
+ - Source file path now persisted in project for reliable re-export
666
+ - "Source File Not Found" now offers to browse for file in new location
667
+
668
+ **Other Improvements:**
669
+ - Renamed export menu items to "Supervertaler Bilingual Table" for clarity
670
+ - memoQ and CafeTran source paths also persisted in project
671
+ - Fixed Concordance accessing Supermemory engine (was checking wrong attribute)
672
+
673
+ ---
674
+
675
+ ## [1.9.16] - December 1, 2025
676
+
677
+ ### 🖥️ Local LLM Support - Ollama Integration
678
+
679
+ **Run AI translation entirely on your computer with no API costs, complete privacy, and offline capability:**
680
+
681
+ **New Provider Option:**
682
+ - Added **"Local LLM (Ollama)"** as new provider in Settings → LLM Provider tab
683
+ - Appears alongside OpenAI, Anthropic, Google, etc. with familiar radio button selection
684
+ - Works with single translation, batch translation, and AI Assistant chat
685
+
686
+ **Intelligent Hardware Detection:**
687
+ - Automatically detects system RAM and GPU capabilities
688
+ - Recommends optimal model based on your hardware:
689
+ - **4GB RAM:** qwen2.5:3b (2.5GB download) - Basic functionality
690
+ - **8GB RAM:** qwen2.5:7b (5.5GB download) - Recommended default
691
+ - **16GB+ RAM:** qwen2.5:14b (10GB download) - Premium quality
692
+ - GPU detection for NVIDIA, AMD, and Apple Silicon
693
+
694
+ **Built-in Setup Wizard:**
695
+ - One-click access via "Setup Local LLM..." button in Settings
696
+ - Guides users through complete Ollama installation
697
+ - Platform-specific instructions (Windows, macOS, Linux)
698
+ - Real-time connection testing to verify Ollama is running
699
+ - Model download with progress tracking and cancellation
700
+
701
+ **Recommended Models for Translation:**
702
+ - **qwen2.5** (3B/7B/14B) - Excellent multilingual capabilities, recommended for translation
703
+ - **llama3.2** (3B/7B) - Strong general purpose, good European languages
704
+ - **mistral:7b** - Fast inference, good quality/speed balance
705
+ - **gemma2:9b** - Google's efficient model, good multilingual
706
+
707
+ **Status Widget in Settings:**
708
+ - Shows real-time Ollama connection status
709
+ - Displays currently selected model
710
+ - Quick-access button to Setup dialog
711
+ - Hardware specification summary
712
+
713
+ **Technical Implementation:**
714
+ - `modules/local_llm_setup.py` (NEW) - Complete setup module with:
715
+ - `LocalLLMSetupDialog` - Full wizard UI with model recommendations
716
+ - `LocalLLMStatusWidget` - Compact status widget for Settings panel
717
+ - `detect_system_specs()` - RAM and GPU detection
718
+ - `get_model_recommendations()` - Hardware-based model suggestions
719
+ - `ModelDownloadWorker` - Background download with progress
720
+ - `ConnectionTestWorker` - Async connection verification
721
+ - `modules/llm_clients.py` - Extended with Ollama support:
722
+ - `OLLAMA_MODELS` dict with 7 supported models
723
+ - `check_ollama_status()` - Connection and model detection
724
+ - `_call_ollama()` - REST API integration (OpenAI-compatible)
725
+ - `translate()` routes to Ollama when selected
726
+
727
+ **Privacy & Cost Benefits:**
728
+ - All translation processing stays on your computer
729
+ - No data sent to external servers
730
+ - No API key required
731
+ - No per-token costs - unlimited translations
732
+ - Works completely offline after model download
733
+
734
+ ---
735
+
736
+ ## [1.9.15] - November 30, 2025
737
+
738
+ ### 📋 Supervertaler Bilingual Table Export/Import
739
+
740
+ **New bilingual table format for proofreading and review workflows:**
741
+
742
+ **Export Options (File → Export):**
743
+ - **"Bilingual Table - With Tags (DOCX)"**: Exports 5-column table (Segment #, Source, Target, Status, Notes) with raw Supervertaler tags preserved. Intended for proofreaders to review and edit - can be re-imported after editing
744
+ - **"Bilingual Table - Formatted (DOCX)"**: Same structure but applies formatting: `<b>` becomes actual bold, `<i>` becomes italic, `<u>` becomes underline, list tags become visible markers (• for bullets, ◦ for nested). For client delivery or archiving - cannot be re-imported
745
+
746
+ **Import Option (File → Import):**
747
+ - **"Bilingual Table (DOCX) - Update Project"**: Re-imports edited bilingual table, compares with current project by segment number, shows preview of all changes (old vs new target), applies approved changes with status reset to "Not Started"
748
+
749
+ **Document Format:**
750
+ - Header with "Supervertaler Bilingual Table" title linking to Supervertaler.com
751
+ - Language names in column headers (e.g., "English", "Dutch" instead of "Source", "Target")
752
+ - Pink highlighting for tags in the With Tags version
753
+ - Footer with Supervertaler.com branding
754
+ - Decorative underlines for professional appearance
755
+
756
+ **Technical Implementation:**
757
+ - `export_review_table_with_tags()` - Wrapper for tag-visible export
758
+ - `export_review_table_formatted()` - Wrapper for formatted export with warning dialog
759
+ - `_export_review_table(apply_formatting)` - Core export logic with python-docx
760
+ - `_add_hyperlink_to_paragraph()` - Helper for Word hyperlinks via XML manipulation
761
+ - `import_review_table()` - Import logic with change detection and diff preview
762
+
763
+ ---
764
+
765
+ ## [1.9.14] - November 30, 2025
766
+
767
+ ### 📤 Improved DOCX Export & Keyboard Navigation
768
+
769
+ **DOCX Export Improvements:**
770
+ - **Formatting Preservation:** Export now properly converts `<b>`, `<i>`, `<u>`, `<bi>` tags to actual Word formatting (bold, italic, underline)
771
+ - **Multi-Segment Paragraphs:** Export handles paragraphs containing multiple segments with partial replacement
772
+ - **Unicode Cleanup:** Removes problematic characters like U+FFFC (Object Replacement Character)
773
+ - **Tag Stripping:** Properly strips all list tags (`<li-o>`, `<li-b>`, `<li>`) while preserving formatting tags
774
+
775
+ **Keyboard Navigation Fix:**
776
+ - Ctrl+Home now properly navigates to first segment even when editing inside a grid cell
777
+ - Ctrl+End now properly navigates to last segment even when editing inside a grid cell
778
+ - Added `_get_main_window()` helper to both `EditableGridTextEditor` and `ReadOnlyGridTextEditor`
779
+
780
+ **Technical Changes:**
781
+ - `export_target_only_docx()`: Added `apply_formatted_text_to_paragraph()` for parsing tags into Word runs
782
+ - `export_target_only_docx()`: Added `replace_segments_in_text()` for partial segment replacement
783
+ - `export_target_only_docx()`: Added `clean_special_chars()` to remove Unicode replacement characters
784
+ - `EditableGridTextEditor.keyPressEvent()`: Added Ctrl+Home/End handlers
785
+ - `ReadOnlyGridTextEditor.event()`: Added Ctrl+Home/End handlers
786
+
787
+ ---
788
+
789
+ ## [1.9.13] - November 30, 2025
790
+
791
+ ### 📄 Document Preview & List Formatting Tags
792
+
793
+ **New Preview tab shows formatted document view:**
794
+
795
+ **Preview Tab Features:**
796
+ - New "Preview" tab alongside Source/Target views in the main panel
797
+ - Shows formatted document with headings (H1-H6 with proper sizing), paragraphs, and lists
798
+ - List items display with correct prefix: numbers (1. 2. 3.) for ordered lists, bullets (•) for bullet points
799
+ - Click any text in preview to instantly navigate to that segment in the grid
800
+ - Read-only view for document context during translation
801
+
802
+ **List Type Detection from DOCX:**
803
+ - New `_get_list_type()` method in docx_handler.py examines Word's numPr XML structure
804
+ - Properly distinguishes numbered lists from bullet points by analyzing abstractNum definitions
805
+ - Looks for "bullet" in numFmt value or bullet characters (•, ○, ●, ■) in lvlText
806
+ - Caches list type lookups for performance
807
+
808
+ **New List Tags:**
809
+ - `<li-o>` - Ordered list items (numbered: 1. 2. 3.)
810
+ - `<li-b>` - Bullet list items (•)
811
+ - Both tags are colored with the tag highlighter
812
+ - Both work with Ctrl+, shortcut for quick insertion
813
+
814
+ **Type Column Improvements:**
815
+ - Type column now shows `#1`, `#2`, `#3` for ordered list items (numbered)
816
+ - Shows `•` for bullet list items
817
+ - Shows `¶` (paragraph mark) for continuation paragraphs instead of `#`
818
+ - Provides clearer visual distinction between list types
819
+
820
+ **Technical Implementation:**
821
+ - Added `_setup_preview_tab()` for Preview tab creation
822
+ - Added `_render_preview()` method with formatted text rendering
823
+ - Added `_render_formatted_text()` helper for styled QTextEdit output
824
+ - Updated tag regex pattern to support hyphenated tags: `[a-zA-Z][a-zA-Z0-9-]*`
825
+ - Preview connects to `_preview_navigation_requested()` for click-to-navigate
826
+
827
+ ---
828
+
829
+ ## [1.9.12] - November 28, 2025
830
+
831
+ ### 📊 Progress Indicator Status Bar
832
+
833
+ **New permanent status bar showing real-time translation progress:**
834
+
835
+ **Progress Display:**
836
+ - **Words translated**: Shows X/Y words with percentage (counts words in segments that have translations)
837
+ - **Confirmed segments**: Shows X/Y segments with percentage (confirmed, tr_confirmed, proofread, approved statuses)
838
+ - **Remaining segments**: Count of segments still needing work (not_started, pretranslated, rejected statuses)
839
+
840
+ **Color Coding:**
841
+ - **Red** (<50%): Low progress - needs attention
842
+ - **Orange** (50-80%): Making progress - keep going
843
+ - **Green** (>80%): Almost done - near completion
844
+
845
+ **Auto-Updates:**
846
+ - Updates when project is loaded
847
+ - Updates when segment is confirmed (Ctrl+Enter)
848
+ - Updates after AI translation completes
849
+ - Updates after user finishes typing (debounced)
850
+ - Resets to "--" when project is closed
851
+
852
+ **Technical Implementation:**
853
+ - Added `_setup_progress_indicators()` method for status bar widget setup
854
+ - Added `update_progress_stats()` method for calculating and updating progress
855
+ - Added `_get_progress_color()` helper for color-based progress feedback
856
+ - Progress widgets are permanent status bar items (right-aligned)
857
+
858
+ ---
859
+
860
+ ## [1.9.11] - November 28, 2025
861
+
862
+ ### 🔧 Non-Translatables: Case-Sensitive & Full-Word Matching
863
+
864
+ **Improved non-translatables matching to prevent false positives:**
865
+
866
+ **Matching Improvements:**
867
+ - Non-translatables matching is now **case-sensitive by default**
868
+ - Only matches **full words** (not partial words like "Product" inside "ProductName")
869
+ - Uses word boundary detection (`\b`) for accurate term matching
870
+ - Smart fallback for special characters like ® and ™ that don't work with word boundaries
871
+ - Prevents unwanted replacements in the middle of compound terms
872
+
873
+ **Bug Fixes:**
874
+ - Fixed crash when closing project: added missing `stop_termbase_batch_worker()` method
875
+ - Fixed `.svprompt` files not showing in Prompt Library tree (added extension to both library and manager)
876
+ - Added LLM refusal detection for batch translation with helpful error messages when AI refuses content
877
+
878
+ **Technical Details:**
879
+ - Changed `case_sensitive` default to `True` in `NonTranslatablesManager.matches()`
880
+ - Rewrote matching logic to use regex word boundaries for full-word matching
881
+ - Added proper error handling for OpenAI content policy refusals during batch translation
882
+
883
+ ---
884
+
885
+ ## [1.9.10] - November 28, 2025
886
+
887
+ ### 🔧 TM Search Fixes & Flexible Language Matching
888
+
889
+ **Fixed TM matches not appearing in Translation Results panel:**
890
+
891
+ **Root Cause Analysis:**
892
+ - `tm_metadata_mgr` was only initialized when user opened TM List tab, but TM search runs immediately on segment navigation
893
+ - Database had mixed language formats ("Dutch", "nl", "nl-NL") but search only looked for ISO codes
894
+ - Legacy hardcoded `enabled_only=True` filter would search only 'project' and 'big_mama' TMs that don't exist
895
+
896
+ **Fixes Applied:**
897
+ - **Early initialization:** `tm_metadata_mgr` now initializes in `initialize_tm_database()` when project loads
898
+ - **Flexible language matching:** New `get_lang_match_variants()` function returns both ISO codes and full language names
899
+ - **Bypass legacy filter:** Added `enabled_only=False` to all `search_all()` calls
900
+ - **Fallback search:** When no TMs are explicitly activated, search now falls back to all TMs
901
+
902
+ **Database Improvements:**
903
+ - Cleaned public database (`user_data/Translation_Resources/supervertaler.db`) for new GitHub users
904
+ - Removed sample data that had orphaned TM entries without proper metadata
905
+ - Schema preserved - new users start with empty, properly structured database
906
+
907
+ **Code Cleanup:**
908
+ - Removed legacy `project` and `big_mama` TM hardcoding from `TMDatabase` class
909
+ - These were from the previous Supervertaler architecture and are no longer used
910
+ - All TMs now managed through `TMMetadataManager` with proper database storage
911
+
912
+ **Files Modified:**
913
+ - `Supervertaler.py` - TM metadata manager early init, enabled_only=False for searches
914
+ - `modules/translation_memory.py` - Removed legacy tm_metadata dict
915
+ - `modules/database_manager.py` - Flexible language matching in get_exact_match() and search_fuzzy_matches()
916
+ - `modules/tmx_generator.py` - Added get_lang_match_variants() and updated get_base_lang_code()
917
+
918
+ ### 📊 Non-Translatables Entry Table Enhancements
919
+
920
+ **Sortable Columns:**
921
+ - Columns in the Non-Translatables entry table are now sortable by clicking on column headers
922
+ - Click on Pattern, Type, or other columns to sort alphabetically ascending/descending
923
+ - Default sort by Pattern column (ascending)
924
+ - Sorting is temporarily disabled during table refresh to prevent UI issues
925
+
926
+ **Delete Entries:**
927
+ - Right-click on selected entries to access context menu with delete option
928
+ - Press Delete key to remove selected entries
929
+ - Menu dynamically shows "Delete 1 entry" or "Delete N entries" based on selection
930
+ - Existing "🗑️ Remove Selected" button also still available
931
+
932
+ ---
933
+
934
+ ## [1.9.9] - November 27, 2025
935
+
936
+ ### 🎨 memoQ-style Alternating Row Colors
937
+
938
+ **CafeTran Formatting Support:**
939
+ - Pipe symbols (|) now highlighted in red/bold in grid editor (like CafeTran)
940
+ - Ctrl+, inserts pipe symbols for CafeTran formatting (or wraps selection)
941
+ - Ctrl+Shift+S copies source text to target cell
942
+
943
+ **Keyboard Shortcuts Improvements:**
944
+ - Keyboard shortcuts table now sortable by clicking column headers
945
+ - Removed "Save Project As" shortcut (Ctrl+Shift+S now dedicated to copy source)
946
+
947
+ **Settings Changes:**
948
+ - Batch size default changed from 100 to 20 segments per API call
949
+
950
+ ---
951
+
952
+ ## [1.9.7] - November 27, 2025
953
+
954
+ ### 🔄 CafeTran Bilingual DOCX Support
955
+
956
+ **Full import/export support for CafeTran bilingual table format:**
957
+
958
+ **CafeTran Import:**
959
+ - New **Import > CafeTran Bilingual Table (DOCX)...** menu option
960
+ - Validates CafeTran bilingual format (ID | Source | Target | Notes table)
961
+ - Extracts segments with pipe symbol formatting markers preserved
962
+ - Converts to internal segment format for translation
963
+ - Stores handler for round-trip export
964
+
965
+ **CafeTran Export:**
966
+ - New **Export > CafeTran Bilingual Table - Translated (DOCX)...** menu option
967
+ - Writes translations back to Target column
968
+ - Preserves pipe symbol formatting (bold/underline markers)
969
+ - Maintains original table structure
970
+ - File can be imported back into CafeTran
971
+
972
+ **Technical Implementation:**
973
+ - Uses `modules/cafetran_docx_handler.py` module
974
+ - `CafeTranDOCXHandler` class handles file I/O
975
+ - `FormattedSegment` class preserves pipe symbol markers
976
+ - Red/bold formatting for pipe symbols in export
977
+
978
+ ---
979
+
980
+ ## [1.9.4] - November 26, 2025
981
+
982
+ ### 🏷️ Tag-Based Formatting System for memoQ Bilingual Files
983
+
984
+ **Complete inline formatting support for professional translation workflows with memoQ bilingual DOCX files.**
985
+
986
+ **Phase 1 - Import & Display:**
987
+ - Import memoQ bilingual DOCX preserves bold, italic, underline as `<b>`, `<i>`, `<u>` HTML-style tags
988
+ - New "🏷️ Tags ON/OFF" toggle button in grid toolbar
989
+ - WYSIWYG mode: Shows formatted text (bold appears bold)
990
+ - Tag mode: Shows raw tags like `<b>bold</b>` for precise editing
991
+ - Keyboard shortcut: **Ctrl+Alt+T** to toggle between modes
992
+ - Tags auto-enabled after import when formatting detected
993
+ - TagHighlighter colorizes tags with pink background for visibility
994
+
995
+ **Phase 2 - Export with Formatting:**
996
+ - Export converts `<b>`, `<i>`, `<u>` tags back to actual Word formatting
997
+ - New `tagged_text_to_runs()` function parses tags into Word runs
998
+ - Round-trip fidelity: Import → Edit → Export preserves formatting
999
+ - Handles nested tags correctly (e.g., `<b><i>bold italic</i></b>`)
1000
+
1001
+ **Phase 3 - AI Translation with Tags:**
1002
+ - Updated default system prompt with inline formatting tag instructions
1003
+ - AI translates text while preserving and repositioning tags intelligently
1004
+ - Example: "Click the `<b>`Save`</b>` button" → "Klik op de knop `<b>`Opslaan`</b>`"
1005
+ - Tags placed around corresponding translated words, not just same position
1006
+
1007
+ **Formatting Shortcuts in Target Editor:**
1008
+ - **Ctrl+B** - Apply/toggle bold tags on selected text
1009
+ - **Ctrl+I** - Apply/toggle italic tags on selected text
1010
+ - **Ctrl+U** - Apply/toggle underline tags on selected text
1011
+
1012
+ **Helper Functions Added:**
1013
+ - `runs_to_tagged_text()` - Convert Word runs to tagged text on import
1014
+ - `tagged_text_to_runs()` - Parse tags back to Word runs on export
1015
+ - `strip_formatting_tags()` - Remove tags for plain text
1016
+ - `has_formatting_tags()` - Check if text contains formatting tags
1017
+ - `get_formatted_html_display()` - Convert tags to HTML for WYSIWYG display
1018
+
1019
+ ---
1020
+
1021
+ ## [1.9.6] - November 27, 2025
1022
+
1023
+ ### 📁 Custom File Extensions & Monolingual Export
1024
+
1025
+ **New Branded File Extensions:**
1026
+ - **Projects:** `.svproj` (was `.json`) - Supervertaler Project files
1027
+ - **Prompts:** `.svprompt` (was `.md`/`.json`) - Supervertaler Prompt files
1028
+ - **Non-Translatables:** `.svntl` (was `.ntl`) - Supervertaler Non-Translatable lists
1029
+ - All formats maintain full backward compatibility - opens legacy files seamlessly
1030
+ - New files created with branded extensions for professional consistency
1031
+ - Industry standards retained: `.tmx` for TM exports, `.srx` planned for segmentation
1032
+
1033
+ **Monolingual DOCX Import Improvements:**
1034
+ - Language pair selection dialog when importing monolingual DOCX files
1035
+ - Dropdown selectors for source and target language (12 languages supported)
1036
+ - Prevents language detection issues - user explicitly sets translation direction
1037
+ - Removed unreliable auto-detect language feature
1038
+
1039
+ **Target-Only DOCX Export:**
1040
+ - New **Export > Target Only (DOCX)...** menu option for monolingual exports
1041
+ - Preserves original document structure (tables, formatting, styles, headers)
1042
+ - Copies original DOCX as template before replacing text
1043
+ - Replaces text in both paragraphs and table cells
1044
+ - Falls back gracefully if original document unavailable
1045
+
1046
+ **Project Persistence:**
1047
+ - Original DOCX path now saved in project files (`original_docx_path`)
1048
+ - Path restored when reopening projects for reliable exports
1049
+ - Enables structure-preserving exports even after closing and reopening
1050
+
1051
+ **Documentation Updates:**
1052
+ - New modular documentation: QUICK_START.md, KEYBOARD_SHORTCUTS.md, CAT_WORKFLOW.md
1053
+ - Archived legacy USER_GUIDE.md and INSTALLATION.md
1054
+ - FAQ.md copied to repository root (fixes dead link)
1055
+
1056
+ ---
1057
+
1058
+ ## [1.9.5] - November 27, 2025
1059
+
1060
+ ### 📤 Send Segments to TM & memoQ Tag Shortcuts
1061
+
1062
+ **Send Segments to TM (Bulk Operation):**
1063
+ - New dialog under **Edit > Bulk Operations > Send Segments to TM**
1064
+ - Send translated segments directly to selected Translation Memories
1065
+ - **Scope filters:** All segments, Current selection, or specific row range
1066
+ - **Status filters:** Filter by Translated, Reviewed, Approved, Needs Review, or Final status
1067
+ - Select multiple TMs to write to simultaneously
1068
+ - Shows count of segments that will be sent before execution
1069
+ - Progress feedback with success/failure counts
1070
+
1071
+ **memoQ Tag Insertion Shortcut:**
1072
+ - **Ctrl+,** (Ctrl+Comma) - Insert next memoQ tag pair or wrap selection
1073
+ - Smart tag insertion: Analyzes source segment for memoQ tags (`[1}`, `{1]`, `[3]`, etc.)
1074
+ - With selection: Wraps selected text with next unused tag pair
1075
+ - Without selection: Inserts next available tag pair at cursor
1076
+ - Works with paired tags (`[1}...{1]`) and standalone tags (`[3]`)
1077
+ - Respects tag order from source segment for consistency
1078
+
1079
+ **UI Improvements:**
1080
+ - Renamed "Translation Resources" tab to "Resources" for cleaner UI
1081
+ - Resources tab contains TM, Termbase, and MT/Web resources sub-tabs
1082
+
1083
+ ---
1084
+
1085
+ ## [1.9.3] - November 26, 2025
1086
+
1087
+ ### 📋 Session Log Tab & TM/Termbase Defaults Fix
1088
+
1089
+ **Session Log Tab:**
1090
+ - Added Session Log tab to bottom panel alongside Comments and Termview
1091
+ - Real-time log display with timestamps in monospace font
1092
+ - Easy access to log messages without detaching window
1093
+ - Read-only display with automatic scrolling to latest entries
1094
+
1095
+ **TM/Termbase Checkbox Defaults Fixed:**
1096
+ - Read checkboxes now default to unchecked (inactive) when no project loaded
1097
+ - Read checkboxes default to unchecked when no activation record exists
1098
+ - Write checkboxes default to unchecked (read-only) by default
1099
+ - All settings properly restored from project.json when project is loaded
1100
+ - Fixed `is_tm_active()` in tm_metadata_manager.py to return False by default
1101
+
1102
+ **Quick Actions for Bulk Selection:**
1103
+ - Added "Select All Read" and "Select All Write" checkboxes above TM table
1104
+ - Added "Select All Read" and "Select All Write" checkboxes above Termbase table
1105
+ - Green checkbox for Read, blue checkbox for Write matching table style
1106
+ - Quickly activate/deactivate all resources with single click
1107
+
1108
+ ---
1109
+
1110
+ ## [1.9.2] - November 25, 2025
1111
+
1112
+ ### ⚙️ Superlookup Settings UI Redesign
1113
+
1114
+ **Improved Resource Selection Interface:**
1115
+ - Redesigned Settings tab with sub-tabs for TM, Termbase, MT, and Web Resources
1116
+ - Each resource type now has dedicated full-height space in its own sub-tab
1117
+ - Replaced cramped single-page layout with spacious tabbed interface
1118
+
1119
+ **Proper Checkbox Styling:**
1120
+ - Replaced tiny multi-selection indicators with standard Supervertaler checkboxes
1121
+ - 18x18px checkbox size with green (#4CAF50) background when checked
1122
+ - White checkmark (✓) drawn on checked items matching AutoFingers style
1123
+ - QScrollArea + CheckmarkCheckBox widgets instead of QListWidget
1124
+ - Hover effects and proper visual feedback
1125
+
1126
+ **Technical Implementation:**
1127
+ - `create_settings_tab()`: Creates QTabWidget with 4 sub-tabs
1128
+ - `create_tm_settings_subtab()`: Full-height TM selection with checkboxes
1129
+ - `create_termbase_settings_subtab()`: Full-height termbase selection
1130
+ - `create_mt_settings_subtab()`: Placeholder for future MT integration
1131
+ - `create_web_settings_subtab()`: Placeholder for future web resources
1132
+ - CheckmarkCheckBox widgets in QScrollArea provide proper green checkboxes
1133
+ - Fixed `cursor()` → `cursor` property access for database queries
1134
+
1135
+ **Bug Fixes:**
1136
+ - Fixed Translation Memories list loading (was showing empty due to cursor() call error)
1137
+ - Fixed termbase loading timing (lazy loading when Settings tab viewed)
1138
+ - Proper checkbox state tracking with `setProperty()` and `property()` methods
1139
+ - Select All/Clear All buttons now work with checkbox widgets instead of selection
1140
+
1141
+ **User Experience:**
1142
+ - Much more spacious and easier to read
1143
+ - Clear visual separation between resource types
1144
+ - Checkboxes are now clearly visible and clickable
1145
+ - Consistent styling across entire application
1146
+
1147
+ ---
1148
+
1149
+ ## [1.9.1] - November 24, 2025
1150
+
1151
+ ### ↩️ Undo/Redo for Grid Edits
1152
+
1153
+ **New Feature: Complete Undo/Redo System**
1154
+ - Full undo/redo support for all grid editing operations
1155
+ - Keyboard shortcuts: Ctrl+Z (Undo), Ctrl+Y/Ctrl+Shift+Z (Redo)
1156
+ - Edit menu actions with dynamic enabled/disabled states
1157
+ - 100-level undo history to prevent memory issues
1158
+
1159
+ **What's Tracked:**
1160
+ - Target text changes as you type
1161
+ - Status changes (Not Started → Translated → Confirmed)
1162
+ - Ctrl+Enter confirmations
1163
+ - Find/Replace batch operations
1164
+ - Document view edits
1165
+
1166
+ **Technical Implementation:**
1167
+ - Dual stack system (undo_stack + redo_stack) tracks segment changes
1168
+ - Records: segment_id, old_target, new_target, old_status, new_status
1169
+ - Smart recording: Only captures actual changes, ignores no-ops
1170
+ - Automatic redo stack clearing on new edits (standard undo behavior)
1171
+ - Stack trimming to max 100 levels for memory efficiency
1172
+ - Updates both segment data and grid display simultaneously
1173
+
1174
+ **Integration Points:**
1175
+ - `on_target_text_changed()`: Text editing in grid cells
1176
+ - `update_status_icon()`: Status changes via toolbar/ribbon
1177
+ - `on_doc_status_change()`: Document view status changes
1178
+ - `replace_all_matches()`: Batch find/replace operations
1179
+ - Ctrl+Enter confirmation handler
1180
+
1181
+ **User Experience:**
1182
+ - Menu actions show enabled/disabled state based on stack contents
1183
+ - Seamless integration with existing editing workflow
1184
+ - No performance impact on grid operations
1185
+ - Professional CAT tool behavior (like memoQ/Trados)
1186
+
1187
+ ---
1188
+
1189
+ ## [1.9.0] - November 24, 2025
1190
+
1191
+ ### 🔍 Termview - RYS-Style Inline Terminology Display
1192
+
1193
+ **New Feature: Visual Inline Terminology**
1194
+ - Added "🔍 Termview" tab in bottom panel showing inline terminology like RYS Trados plugin
1195
+ - Source text displayed as flowing words with translations appearing underneath matched terms
1196
+ - Compact 8pt font with colored 2px top borders (pink for project termbase, blue for background)
1197
+ - Text wrapping with FlowLayout to adapt to window width
1198
+ - Click any translation to insert it into target segment
1199
+ - Hover tooltips show full term details and metadata
1200
+
1201
+ **Technical Implementation:**
1202
+ - `modules/termview_widget.py`: New widget with FlowLayout, TermBlock classes for visual display
1203
+ - RYS-style tokenization preserves multi-word terms (e.g., "De uitvinding heeft betrekking op een werkwijze")
1204
+ - Direct integration with Translation Results termbase cache for instant updates
1205
+ - Smart refresh: Updates immediately after termbase search completes
1206
+
1207
+ **Termbase Search Enhancements:**
1208
+ - Fixed punctuation handling: Terms like "gew.%" now matched correctly
1209
+ - Changed from `strip()` to `rstrip()/lstrip()` to preserve internal punctuation
1210
+ - Use lookaround word boundaries `(?<!\w)(?!\w)` for terms with punctuation
1211
+ - Standard `\b` boundaries for regular words
1212
+
1213
+ **Bug Fixes:**
1214
+ - Fixed data format mismatch between termbase cache dict and Termview list format
1215
+ - Fixed timing issue where Termview updated before termbase search completed
1216
+ - Fixed tokenization regex to capture terms with special characters
1217
+ - Removed debug logging after successful implementation
1218
+
1219
+ ### 🎯 Priority & Visual Improvements
1220
+ - Project termbases (#1 priority) display with pink border for instant recognition
1221
+ - Background termbases display with blue border
1222
+ - Clean, minimal design with 1px padding and compact spacing
1223
+
1224
+ ---
1225
+
1226
+ ## [1.8.0] - November 23, 2025
1227
+
1228
+ ### UI/UX Improvements
1229
+ - **Tab Styling Refinement**: Reduced selected tab border-bottom from 3px to 1px for a more subtle, professional appearance
1230
+ - **Visual Consistency**: Maintained light blue background highlighting (rgba(33, 150, 243, 0.08)) with thinner accent line
1231
+ - **Applied Across Application**: Updated styling for all tab widgets including Resources, Modules, TM, Settings, Domain, Import, Results, and Prompt Manager tabs
1232
+ - **Theme Manager Update**: Global tab styling now uses refined 1px border-bottom for consistent appearance
1233
+
1234
+ ### Technical Changes
1235
+ - Updated border-bottom styling in 12 locations across main application and modules
1236
+ - Modified theme_manager.py for global tab appearance consistency
1237
+ - Maintained focus removal and outline suppression for cleaner tab interactions
1238
+
1239
+ ---
1240
+
1241
+ ## [1.6.6] - November 23, 2025
1242
+
1243
+ ### ✅ Simplified TM/Termbase Management System
1244
+
1245
+ **Major Redesign:**
1246
+
1247
+ - 🎯 **Simple Read/Write Checkbox System**
1248
+ - Removed confusing "Active" checkbox and "Project TM/Termbase" concepts
1249
+ - **Translation Memories:** Simple Read (green ✓) and Write (blue ✓) checkboxes
1250
+ - **Termbases:** Simple Read (green ✓) and Write (blue ✓) checkboxes
1251
+ - All TMs and termbases start completely unchecked by default
1252
+ - Users explicitly check Read to use for matching, Write to allow updates
1253
+
1254
+ - 📊 **Auto-Priority System for Termbases**
1255
+ - Priorities 1-N automatically assigned to Read-enabled termbases
1256
+ - Priority #1 = Project Termbase (pink highlighting, highest priority)
1257
+ - Priority #2, #3, etc. = Background termbases (lower priorities)
1258
+ - No manual project termbase designation needed - just check Read boxes
1259
+ - Priority based on activation order (ranking in database)
1260
+
1261
+ - 🎨 **Cleaner Column Layout**
1262
+ - **TMs:** `TM Name | Languages | Entries | Read | Write | Last Modified | Description`
1263
+ - **Termbases:** `Type | Name | Languages | Terms | Read | Write | Priority`
1264
+ - Removed redundant columns and confusing labels
1265
+ - Type auto-shows "📌 Project" for priority #1, "Background" for others
1266
+
1267
+ - 🔒 **Read-Only Database Defaults**
1268
+ - New TMs created with `read_only=1` (Write unchecked by default)
1269
+ - New termbases created with `read_only=1` (Write unchecked by default)
1270
+ - Prevents accidental updates to reference memories
1271
+ - User must explicitly enable Write for TMs/termbases they want to update
1272
+
1273
+ **Benefits:**
1274
+ - Much simpler mental model: Read = use for matching, Write = allow updates
1275
+ - No more confusion about "Active" vs "Project" vs "Background"
1276
+ - Project termbase is simply the highest priority (first activated)
1277
+ - Clear visual feedback with color-coded checkboxes (green Read, blue Write)
1278
+ - Safer defaults prevent accidental corruption of reference resources
1279
+
1280
+ ---
1281
+
1282
+ ## [1.7.9] - November 22, 2025
1283
+
1284
+ ### 🔍 Find/Replace & TM Enhancements
1285
+
1286
+ **Fixed:**
1287
+
1288
+ - ✨ **Find/Replace Highlighting System** - Complete rewrite using consistent QTextCursor approach
1289
+ - "Find Next" now correctly highlights matches with yellow background
1290
+ - "Highlight All" button now actually highlights all matches in the grid
1291
+ - Font size no longer changes during navigation (previously shrunk with each find)
1292
+ - Switched from QLabel+HTML (which replaced widgets) to QTextCursor+QTextCharFormat (preserves existing widgets)
1293
+ - Matches same highlighting system used by filter boxes
1294
+ - Supports case-sensitive/insensitive, whole words, and entire segment modes
1295
+
1296
+ - ✨ **No More TM Saves During Find/Replace** - Eliminated slowdowns during search navigation
1297
+ - Added `find_replace_active` flag to disable background TM saves
1298
+ - Prevents segments from being saved to TM on every "Find Next" click
1299
+ - Re-enables TM saves when dialog closes
1300
+ - Also disables expensive TM/MT/LLM lookups during find/replace operations
1301
+ - Results in much faster navigation through search results
1302
+
1303
+ **Added:**
1304
+
1305
+ - 🌍 **Bidirectional TM Search** - TMs now search in both directions automatically
1306
+ - When translating nl→en, also searches en→nl TMs for reverse matches
1307
+ - Example: English source text can match Dutch source in reverse TM
1308
+ - Reverse matches clearly marked with "Reverse" indicator
1309
+ - Improves TM utilization by ~2x without any user action required
1310
+
1311
+ - 🌍 **Language Variant Matching** - Base language codes match all regional variants
1312
+ - "en" matches "en-US", "en-GB", "en-AU" automatically
1313
+ - "nl" matches "nl-NL", "nl-BE" automatically
1314
+ - TMX import now handles language variants gracefully
1315
+ - User can choose to strip variants or preserve them during import
1316
+ - Supports bidirectional matching with variants (e.g., nl-BE → en-US works both ways)
1317
+
1318
+ - 💾 **Activated TM Persistence** - Projects remember which TMs are active
1319
+ - Activated TMs saved to `project.json` in `tm_settings.activated_tm_ids`
1320
+ - Automatically restored when project is reopened
1321
+ - No more manually re-activating TMs for each project session
1322
+ - Works per-project (different projects can have different active TMs)
1323
+
1324
+ - 📝 **TM Pre-Check in Batch Translation** - Saves API costs by checking TM first
1325
+ - Before making expensive API calls, checks if 100% TM matches exist
1326
+ - Auto-inserts TM matches and skips API translation for those segments
1327
+ - Shows clear log of how many API calls were saved
1328
+ - Can save significant costs on projects with high TM leverage
1329
+ - Controlled by "Check TM before API call" setting (enabled by default)
1330
+
1331
+ - 🎨 **Language Display Normalization** - Consistent language variant format
1332
+ - All language variants displayed as lowercase-UPPERCASE (e.g., nl-NL, en-US)
1333
+ - Previously: inconsistent formats like "nl-nl", "EN-us", "NL-BE"
1334
+ - Now: standardized as "nl-NL", "en-US", "nl-BE"
1335
+ - Applied in TM manager UI, TMX import dialogs, and all TM displays
1336
+
1337
+ **Technical Details:**
1338
+
1339
+ - **Find/Replace Highlighting:**
1340
+ - `highlight_search_term()` rewritten to use `QTextCursor` and `QTextCharFormat`
1341
+ - `highlight_all_matches()` rewritten to actually highlight instead of just filtering
1342
+ - Added `processEvents()` after grid load to ensure widgets exist before highlighting
1343
+ - Files: `Supervertaler.py` lines 15726-15792, 15982-16008
1344
+
1345
+ - **TM Save Prevention:**
1346
+ - Added `find_replace_active` flag check in `_handle_target_text_debounced_by_id()` (line 13660)
1347
+ - Added same check in `update_status_icon()` (line 13703)
1348
+ - Added check in `on_cell_selected()` to skip TM/MT/LLM lookups (line 14050)
1349
+ - Files: `Supervertaler.py` lines 13657-13664, 13699-13709, 14044-14051
1350
+
1351
+ - **Bidirectional Search:**
1352
+ - `get_exact_match()` now searches reverse direction if no forward match found
1353
+ - `search_fuzzy_matches()` includes reverse direction results
1354
+ - Results marked with `reverse_match: True` metadata
1355
+ - Files: `modules/database_manager.py` lines 635-732, 744-810
1356
+
1357
+ - **Language Variant Matching:**
1358
+ - Added `get_base_lang_code()` to extract base from variants (en-US → en)
1359
+ - Added `normalize_lang_variant()` for consistent display formatting
1360
+ - Added `languages_are_compatible()` for base code comparison
1361
+ - Database queries use LIKE pattern: `(source_lang = 'en' OR source_lang LIKE 'en-%')`
1362
+ - Files: `modules/tmx_generator.py` lines 119-156, `modules/database_manager.py` lines 652-676
1363
+
1364
+ - **TMX Import with Variants:**
1365
+ - `detect_tmx_languages()` reads all language codes from TMX
1366
+ - `check_language_compatibility()` analyzes variant mismatches
1367
+ - `_load_tmx_into_db()` accepts `strip_variants` parameter
1368
+ - User dialog offers "Import with variant stripping" vs "Create new TM"
1369
+ - Files: `modules/translation_memory.py` lines 408-557, `Supervertaler.py` lines 4807-4903
1370
+
1371
+ - **TM Persistence:**
1372
+ - Added `tm_settings` field to `Project` class (line 223)
1373
+ - `save_project_to_file()` saves activated TM IDs (lines 11442-11449)
1374
+ - `load_project()` restores activated TMs (lines 10797-10816)
1375
+ - Files: `Supervertaler.py` lines 220-285, 10794-10816, 11439-11449
1376
+
1377
+ **User Experience:**
1378
+
1379
+ - Find/Replace dialog now fast and responsive with proper highlighting
1380
+ - "Highlight All" button finally works as expected
1381
+ - No font size changes during search navigation
1382
+ - TMs work across language variants automatically (no manual configuration)
1383
+ - Projects remember your TM activation choices
1384
+ - Batch translation saves money by checking TM first
1385
+ - Clear visual feedback for all TM operations
1386
+
1387
+ ---
1388
+
1389
+ ## [1.7.8] - November 22, 2025
1390
+
1391
+ ### 🔍 Filter Highlighting Fix
1392
+
1393
+ **Fixed:**
1394
+
1395
+ - ✨ **Filter Search Term Highlighting** - Fixed highlighting of search terms in filtered segments
1396
+ - Source and target filter boxes now correctly highlight matching terms in yellow
1397
+ - Previously used delegate-based highlighting which was bypassed by cell widgets
1398
+ - New implementation uses widget-internal highlighting with QTextCursor + QTextCharFormat
1399
+ - Case-insensitive matching: "test", "TEST", "TeSt" all match "test"
1400
+ - Multiple matches per cell are highlighted correctly
1401
+ - Highlights automatically clear when filters are removed
1402
+
1403
+ **Technical Details:**
1404
+
1405
+ - **Root Cause:** Source/target cells use `setCellWidget()` with QTextEdit widgets, which completely bypass `QStyledItemDelegate.paint()` method
1406
+ - **Solution:** Created `_highlight_text_in_widget()` method that applies highlighting directly within QTextEdit widgets
1407
+ - **Implementation:**
1408
+ - Uses `QTextCursor` to find all occurrences of search term in widget's document
1409
+ - Applies `QTextCharFormat` with yellow background (#FFFF00) to each match
1410
+ - Clears previous highlights before applying new ones
1411
+ - Modified `apply_filters()` to call widget highlighting instead of delegate approach
1412
+ - `clear_filters()` automatically clears highlights by reloading grid
1413
+ - **Files Modified:**
1414
+ - `Supervertaler.py` (lines ~15765-15810): New `_highlight_text_in_widget()` method
1415
+ - `Supervertaler.py` (lines ~15779-15860): Modified `apply_filters()` to use widget highlighting
1416
+ - **Documentation Added:**
1417
+ - `docs/FILTER_HIGHLIGHTING_FIX.md` - Complete technical explanation of the fix
1418
+
1419
+ **User Experience:**
1420
+
1421
+ - Filter boxes now work as expected with visible yellow highlighting
1422
+ - Improves searchability and visual feedback when filtering segments
1423
+ - No performance impact with large segment counts (tested with 219 segments)
1424
+
1425
+ ---
1426
+
1427
+ ## [1.7.7] - November 21, 2025
1428
+
1429
+ ### 🎯 Termbase Display Customization
1430
+
1431
+ **Added:**
1432
+
1433
+ - ✨ **User-Configurable Termbase Sorting** - Control how termbase matches are displayed
1434
+ - Three sorting options available in Settings → General:
1435
+ - **Order of appearance in source text** (default) - Matches appear as they occur in the segment
1436
+ - **Alphabetical (A-Z)** - Matches sorted by source term alphabetically
1437
+ - **By length (longest first)** - Longer multi-word terms prioritized over shorter ones
1438
+ - Sorting preference persists across sessions
1439
+ - Only affects termbase matches; TM, MT, and LLM results maintain their existing order
1440
+
1441
+ - ✨ **Smart Substring Filtering** - Reduces termbase match clutter
1442
+ - Optional "Hide shorter termbase matches" checkbox in Settings → General
1443
+ - Automatically filters out shorter terms that are fully contained within longer matched terms
1444
+ - Example: If both "cooling" and "cooling system" match, only "cooling system" is shown
1445
+ - Helps focus on the most relevant multi-word terminology
1446
+ - Can be toggled on/off without restarting the application
1447
+
1448
+ **Enhanced:**
1449
+
1450
+ - 🔧 **Bold Font for Project Resources** - Project termbases and TMs now display with bold provider codes (TB, TM) instead of asterisks for cleaner visual distinction
1451
+ - 🎨 **Translation Results Panel** - Added parent app reference for accessing user settings dynamically
1452
+
1453
+ **Technical Details:**
1454
+
1455
+ - Settings stored in `ui_preferences.json` under `general_settings`
1456
+ - `TranslationResultsPanel` now accepts `parent_app` parameter for settings access
1457
+ - New methods: `_sort_termbase_matches()` and `_filter_shorter_matches()` in `translation_results_panel.py`
1458
+ - Sorting uses case-insensitive comparison for alphabetical mode
1459
+ - Filtering uses substring detection with length comparison
1460
+ - Files Modified:
1461
+ - `Supervertaler.py` (lines 2391-2393, 7377-7406, 8316-8360, 8930, 9548, 12604-12606)
1462
+ - `modules/translation_results_panel.py` (lines 626-628, 1201-1276, 1324-1329)
1463
+
1464
+ **User Experience:**
1465
+
1466
+ - Settings are immediately accessible via Settings → General → TM/Termbase Options
1467
+ - Tooltips explain each option clearly
1468
+ - Changes apply to all subsequent segment matches
1469
+ - No performance impact on match retrieval
1470
+
1471
+ ---
1472
+
1473
+ ## [1.7.6] - November 20, 2025
1474
+
1475
+ ### 💾 Auto Backup System
1476
+
1477
+ **Added:**
1478
+
1479
+ - ✨ **Automatic Backup System** - Prevents data loss during translation work
1480
+ - Auto-saves project.json at configurable intervals (1-60 minutes, default: 5 minutes)
1481
+ - Auto-exports TMX backup file in same folder as project.json
1482
+ - TMX backup includes all segments for maximum recovery capability
1483
+ - Settings UI in Settings → General tab with enable/disable toggle
1484
+ - Non-intrusive background operation with timestamp logging
1485
+ - Settings persist across sessions in ui_preferences.json
1486
+ - Timer automatically restarts when settings are changed
1487
+
1488
+ **Technical Details:**
1489
+
1490
+ - QTimer-based system with millisecond precision
1491
+ - Uses existing `save_project_to_file()` and `TMXGenerator` methods
1492
+ - Graceful error handling without interrupting workflow
1493
+ - Only runs when project is open and has a file path
1494
+ - TMX file named `{project_name}_backup.tmx` for easy identification
1495
+
1496
+ ---
1497
+
1498
+ ## [1.7.5] - November 20, 2025
1499
+
1500
+ ### 🐛 Critical Bug Fix - Translation Memory Save Flood
1501
+
1502
+ **Fixed:**
1503
+
1504
+ - ✅ **TM Save Flood During Grid Operations** - CRITICAL FIX
1505
+ - **Issue:** Every time `load_segments_to_grid()` was called (startup, filtering, clear filters), all segments with status "translated"/"confirmed"/"approved" would trigger false TM database saves 1-2 seconds after grid load
1506
+ - **Symptoms:**
1507
+ - 10+ second UI freeze on projects with 200+ segments
1508
+ - Massive unnecessary database writes (219 saves on a 219-segment project)
1509
+ - Made filtering operations completely unusable
1510
+ - Could potentially corrupt data or cause performance issues on large projects
1511
+ - **Root Cause:** Qt internally queues document change events when `setPlainText()` is called on QTextEdit widgets, even when signals are blocked. When `blockSignals(False)` was called after grid loading, Qt delivered all these queued events, triggering `textChanged` for every segment. By that time, the suppression flag had already been restored, so the suppression check failed.
1512
+ - **Solution:**
1513
+ - Added `_initial_load_complete` flag to `EditableGridTextEditor` class
1514
+ - Signal handler now ignores the first spurious `textChanged` event after widget creation
1515
+ - All subsequent real user edits are processed normally
1516
+ - Clean, minimal fix that doesn't interfere with Qt's event system
1517
+ - **Testing:** Verified on BRANTS project (219 segments) - zero false TM saves during startup, filtering, and filter clearing
1518
+ - **Files Modified:** Supervertaler.py (lines 835, 11647-11651)
1519
+
1520
+ **Impact:**
1521
+ - **Performance:** Grid loading is now instant with no post-load freeze
1522
+ - **Database:** Eliminates 200+ unnecessary database writes per grid operation
1523
+ - **User Experience:** Filtering and grid operations are now fast and responsive
1524
+ - **Data Integrity:** Prevents potential database corruption from excessive writes
1525
+
1526
+ ---
1527
+
1528
+ ## [1.7.4] - November 20, 2025
1529
+
1530
+ ### 💾 Project Persistence Improvements
1531
+
1532
+ **Enhanced:**
1533
+
1534
+ - ✅ **Primary Prompt Persistence** - Projects now remember your selected primary prompt
1535
+ - Automatically restores primary prompt when reopening project
1536
+ - Updates UI label to show active prompt name
1537
+ - Works with Unified Prompt Library system
1538
+
1539
+ - ✅ **Image Context Folder Persistence** - Projects remember loaded image folders
1540
+ - Image context folder path saved to project.json
1541
+ - Automatically reloads all images from saved folder on project open
1542
+ - Updates UI status label showing image count and folder name
1543
+ - Logs success/warnings if folder path has changed
1544
+
1545
+ - ✅ **Attached Prompts Persistence** - All attached prompts are restored
1546
+ - Maintains complete prompt configuration across sessions
1547
+ - Updates attached prompts list UI on restore
1548
+
1549
+ **Technical:**
1550
+ - Changed from `library.set_primary_prompt()` to `_set_primary_prompt()` for UI updates
1551
+ - Changed from `library.attach_prompt()` to `_attach_prompt()` for UI updates
1552
+ - Added `image_context_folder` to `prompt_settings` in project.json
1553
+ - Proper UI synchronization on project load for all prompt settings
1554
+
1555
+ **User Experience:**
1556
+ Now when you save a project, it remembers:
1557
+ - ✓ Which primary prompt you selected
1558
+ - ✓ Which prompts you attached
1559
+ - ✓ Which image folder you loaded
1560
+ - ✓ All settings restore automatically on project open
1561
+
1562
+ ---
1563
+
1564
+ ## [1.7.3] - November 20, 2025
1565
+
1566
+ ### 🧪 Prompt Preview & System Template Improvements
1567
+
1568
+ **New Features:**
1569
+
1570
+ **Added:**
1571
+ - ✅ **Preview Combined Prompts Button** - New "🧪 Preview Prompts" button in Project Editor segment action bar
1572
+ - Shows complete assembled prompt that will be sent to AI
1573
+ - Displays System Template + Custom Prompts + current segment text
1574
+ - Real-time composition info (segment ID, languages, character count, attached prompts)
1575
+ - Visual context indicator showing which images will be sent alongside text
1576
+ - Clear tooltip explaining functionality
1577
+
1578
+ **Enhanced:**
1579
+ - ✅ **System Template Editor** - Improved layout and usability in Settings → System Prompts
1580
+ - Increased text editor height from 400px to 500px
1581
+ - Added stretch factors for proper expansion to fill available space
1582
+ - Enabled word wrap at widget width for easier reading
1583
+ - Set plain text mode to prevent formatting issues
1584
+
1585
+ - ✅ **Figure Context Detection** - Fixed regex pattern for accurate figure reference detection
1586
+ - Now correctly matches "Figuur 3" → "3" instead of "3toont"
1587
+ - Properly handles subfigures (e.g., Figure 1A, 2B)
1588
+ - Requires space between "figuur/figure/fig" and number
1589
+
1590
+ **Improved:**
1591
+ - ✅ **Image Context Preview** - Preview dialog now shows detailed image information
1592
+ - 🖼️ Displays which images will be sent with prompt (e.g., "Figure 3")
1593
+ - ⚠️ Warns if references detected but images not found
1594
+ - ℹ️ Shows info when images loaded but not referenced in segment
1595
+ - Yellow banner highlights when images are being sent as binary data
1596
+
1597
+ **Technical:**
1598
+ - Updated `UnifiedPromptManagerQt._preview_combined_prompt()` to access actual segment data
1599
+ - Added `_preview_combined_prompt_from_grid()` method in main app
1600
+ - Fixed attribute reference from `self.unified_prompt_manager` to `self.prompt_manager_qt`
1601
+ - Improved figure reference regex from `[\w\d]+(?:[\s\.\-]*[\w\d]+)?` to `\d+[a-zA-Z]?`
1602
+
1603
+ ---
1604
+
1605
+ ## [1.7.2] - November 19, 2025
1606
+
1607
+ ### 🔧 Termbase Critical Fixes - Term Deduplication & Selection
1608
+
1609
+ **Major Bug Fixes:**
1610
+
1611
+ **Fixed:**
1612
+ - ✅ **Multiple Translations Display** - Fixed critical deduplication bug where only one translation was kept for terms with same source text
1613
+ - Example: "inrichting → device" AND "inrichting → apparatus" now both display correctly
1614
+ - Root cause: Used `source_term` as dict key, now uses `term_id` to allow multiple translations
1615
+ - ✅ **Termbase Selection** - Terms now save only to selected termbases (previously saved to all active termbases)
1616
+ - Filter logic working correctly with INTEGER termbase IDs
1617
+ - Debug logging confirmed type matching works as expected
1618
+ - ✅ **Segment Highlighting Consistency** - Termbase highlighting now works consistently across all segments
1619
+ - Fixed cache iteration to handle new dict structure with `term_id` keys
1620
+ - Updated all code paths that consume termbase matches
1621
+
1622
+ **Technical Changes:**
1623
+ - **Dictionary Structure Change:**
1624
+ - Changed from: `matches[source_term] = {...}` (only one translation per source)
1625
+ - Changed to: `matches[term_id] = {'source': source_term, 'translation': target_term, ...}` (multiple translations allowed)
1626
+ - **Code Locations Updated:**
1627
+ - `find_termbase_matches_in_source()` - Changed dict key from source_term to term_id
1628
+ - `highlight_termbase_matches()` - Updated to extract source term from match_info
1629
+ - `DocumentView._create_highlighted_html()` - Updated iteration logic
1630
+ - `_get_cached_matches()` - Fixed to extract source term from dict values (2 locations)
1631
+ - All hover tooltip and double-click handlers updated
1632
+
1633
+ **Impact:**
1634
+ - 🎯 **Better Term Disambiguation** - Users can now add multiple translations for same source term
1635
+ - 🎨 **Accurate Highlighting** - All matching terms highlighted correctly in grid
1636
+ - ✅ **Correct Termbase Selection** - Terms added only to user-selected termbases
1637
+
1638
+ ---
1639
+
1640
+ ## [1.7.1] - November 19, 2025
1641
+
1642
+ ### 🎨 Termbase UI Polish - Visual Consistency Improvements
1643
+
1644
+ **Bug Fixes & UI Improvements:**
1645
+
1646
+ **Fixed:**
1647
+ - ✅ **Deleted Term Highlighting** - Fixed issue where deleted termbase terms remained highlighted after deletion and navigation
1648
+ - ✅ **Termbase Name Display** - Termbase names now correctly shown in Term Info metadata area
1649
+ - ✅ **Term Count Updates** - Term counts in termbase list now update immediately after adding terms
1650
+ - ✅ **Project Termbase Colors** - Fixed project termbases showing blue instead of pink in translation results
1651
+ - ✅ **Ranking Metadata** - Added missing `ranking` field to TranslationMatch metadata in all code paths
1652
+
1653
+ **Improved:**
1654
+ - 🎨 **Visual Consistency** - Project termbase matches now display with same style as background termbases (colored number badge only)
1655
+ - 🎯 **Effective Project Detection** - Uses `ranking == 1` as fallback when `is_project_termbase` flag is false
1656
+ - 🔄 **Real-time Refresh** - Termbase list UI refreshes immediately via callback after term addition
1657
+ - 📊 **Database Query Fix** - Fixed TEXT/INTEGER comparison with CAST for accurate term counts
1658
+
1659
+ **Technical:**
1660
+ - Modified `highlight_termbase_matches()` to clear formatting before early return
1661
+ - Added `termbase_name` extraction and display in translation results panel
1662
+ - Implemented `refresh_termbase_list()` callback storage and invocation
1663
+ - Added explicit boolean conversion for `is_project_termbase` from SQLite
1664
+ - Updated `CompactMatchItem.update_styling()` to use consistent badge-only coloring
1665
+ - Fixed two locations where `ranking` was missing from TranslationMatch metadata
1666
+
1667
+ ---
1668
+
1669
+ ## [1.7.0] - November 18, 2025
1670
+
1671
+ ### 📚 Project Termbases - Dedicated Project Terminology
1672
+
1673
+ **Project-Specific Terminology Management** - A powerful new termbase system that distinguishes between project-specific terminology (one per project) and background termbases (multiple allowed), with automatic term extraction from project source text.
1674
+
1675
+ ### Added
1676
+
1677
+ **Project Termbase System:**
1678
+ - 📌 **Project Termbase Designation** - Mark one termbase per project as the official project termbase
1679
+ - 🎨 **Pink Highlighting** - Project termbase matches highlighted in light pink (RGB 255, 182, 193) in both grid and results panel
1680
+ - 🔵 **Background Termbases** - Regular termbases use priority-based blue shading as before
1681
+ - 🔍 **Term Extraction** - Automatically extract terminology from project source segments
1682
+ - 🧠 **Smart Algorithm** - Frequency analysis, n-gram extraction, scoring based on capitalization and special characters
1683
+ - 🌐 **Multi-Language Support** - Stop words for English, Dutch, German, French, Spanish
1684
+ - 📊 **Preview & Select** - Review extracted terms with scores before adding to termbase
1685
+ - 🎯 **Configurable Parameters** - Adjust min frequency, max n-gram size, language, term count
1686
+ - ⚙️ **Standalone Module** - Term extractor designed as independent module (`modules/term_extractor.py`) for future CLI tool
1687
+
1688
+ **Termbases Tab Enhancements:**
1689
+ - 📋 **Type Column** - Shows "📌 Project" in pink or "Background" for each termbase
1690
+ - 🔘 **Set/Unset Buttons** - Easy designation of project termbases
1691
+ - 🔍 **Extract Terms Button** - Launch term extraction dialog (only enabled with project loaded)
1692
+ - 🎨 **Visual Distinction** - Project termbase names shown in pink
1693
+ - 🔒 **Validation** - System enforces "only one project termbase per project" rule
1694
+
1695
+ **Database Schema:**
1696
+ - 🗄️ **is_project_termbase Column** - Added to termbases table with migration
1697
+ - ✅ **Backward Compatible** - Existing databases upgraded automatically
1698
+
1699
+ **Termbase Manager Extensions:**
1700
+ - `set_as_project_termbase(termbase_id, project_id)` - Designate project termbase
1701
+ - `unset_project_termbase(termbase_id)` - Remove designation
1702
+ - `get_project_termbase(project_id)` - Retrieve project termbase
1703
+ - Enhanced `create_termbase()` with `is_project_termbase` parameter and validation
1704
+ - Enhanced `get_all_termbases()` to sort project termbase first
1705
+
1706
+ **Match Pipeline Integration:**
1707
+ - 🔗 **Metadata Tracking** - `is_project_termbase` flag passed through entire match pipeline
1708
+ - 🎨 **Grid Highlighting** - Light pink backgrounds for project termbase matches in source column
1709
+ - 📋 **Results Panel** - Light pink number badges for project termbase matches
1710
+
1711
+ ### Changed
1712
+ - Updated termbase search to include `is_project_termbase` field
1713
+ - Modified `highlight_termbase_matches()` to use pink for project termbases
1714
+ - Enhanced `TranslationMatch` metadata to capture project termbase status
1715
+ - Updated `CompactMatchItem` styling to handle three-way color logic (forbidden=black, project=pink, background=blue)
1716
+
1717
+ ### Technical Details
1718
+ - **Term Extraction Algorithm:**
1719
+ - N-gram extraction (unigrams, bigrams, trigrams)
1720
+ - Frequency-based scoring with logarithmic scaling
1721
+ - Bonuses for capitalization (+3), special characters (+2), n-gram size (+1.5 per word)
1722
+ - Term classification: proper_noun, technical, phrase, word
1723
+ - Configurable filtering by frequency, type, score
1724
+ - **Color Scheme:**
1725
+ - Project Termbase: `#FFB6C1` (light pink)
1726
+ - Forbidden Terms: `#000000` (black)
1727
+ - Background Termbases: `#4d94ff` (blue with priority-based darkening)
1728
+
1729
+ ### Use Cases
1730
+ - **Starting New Projects** - Extract project-specific terminology automatically
1731
+ - **Consistency** - Ensure project terminology has visual precedence
1732
+ - **Background Knowledge** - Maintain general termbases alongside project-specific ones
1733
+ - **Source-Only Termbases** - Perfect for extracting terms before translation begins
1734
+
1735
+ ---
1736
+
1737
+ ## [1.6.5] - November 18, 2025
1738
+
1739
+ ### 📁 File Dialog Memory - Smart Directory Navigation
1740
+
1741
+ **File Dialogs Remember Your Last Location** - A quality-of-life improvement that significantly streamlines workflow by automatically remembering the last directory you navigated to across all file dialogs throughout the application.
1742
+
1743
+ ### Added
1744
+
1745
+ **File Dialog Helper System:**
1746
+ - 📁 **Last Directory Memory** - File dialogs automatically open in the last used directory
1747
+ - 💾 **Persistent Storage** - Last directory saved to config file between sessions
1748
+ - 🔄 **Universal Coverage** - Works for all dialog types (open file, save file, select folder, multiple files)
1749
+ - 🎯 **Automatic Detection** - Extracts directory from file paths automatically
1750
+ - 🛠️ **Helper Module** - Created `modules/file_dialog_helper.py` with wrapper functions
1751
+
1752
+ **Config Manager Enhancements:**
1753
+ - Added `get_last_directory()` - Retrieve the last used directory
1754
+ - Added `set_last_directory()` - Save a directory as the last used location
1755
+ - Added `update_last_directory_from_file()` - Extract and save directory from file path
1756
+
1757
+ **Integration Points:**
1758
+ - Image Extractor (add DOCX files, select folder, output directory)
1759
+ - TMX import/export dialogs
1760
+ - Project open/save dialogs
1761
+ - Export dialogs (JSON, TMX, etc.)
1762
+
1763
+ **Benefits:**
1764
+ - No more navigating from program root every time
1765
+ - Improved workflow when working with files in the same folder
1766
+ - Transparent operation - works automatically without configuration
1767
+ - Persists between application sessions
1768
+
1769
+ ### Technical Implementation
1770
+ - Created `modules/file_dialog_helper.py` with `get_open_file_name()`, `get_save_file_name()`, `get_existing_directory()`, `get_open_file_names()` wrappers
1771
+ - Extended `config_manager.py` with directory tracking methods
1772
+ - Updated key file dialog calls in `Supervertaler.py` to use helper functions
1773
+ - Last directory stored in `~/.supervertaler_config.json` (or dev mode equivalent)
1774
+
1775
+ ---
1776
+
1777
+ ## [1.6.4] - November 18, 2025
1778
+
1779
+ ### 🌐 Superbrowser - Multi-Chat AI Browser
1780
+
1781
+ **Work with Multiple AI Chats Simultaneously** - A revolutionary new tab that displays ChatGPT, Claude, and Gemini side-by-side in resizable columns with persistent login sessions, perfect for comparing AI responses or maintaining multiple conversation threads.
1782
+
1783
+ ### Added
1784
+
1785
+ **Superbrowser Tab:**
1786
+ - 🌐 **Three-Column Layout** - ChatGPT, Claude, and Gemini displayed simultaneously in resizable columns
1787
+ - 🔐 **Persistent Sessions** - Login credentials saved between sessions (no need to log in every time)
1788
+ - 🔧 **Collapsible Configuration** - Hide/show URL configuration panel to maximize screen space
1789
+ - 🎨 **Color-Coded Columns** - Each AI provider has distinct color (green, copper, blue)
1790
+ - 🏠 **Navigation Controls** - URL bar, reload, and home buttons for each column
1791
+ - 💾 **Profile Storage** - Separate persistent storage for each AI provider (cookies, cache, sessions)
1792
+ - 📱 **Minimal Headers** - Tiny 10px headers maximize space for chat windows
1793
+ - 🎯 **Dev Mode Support** - Uses `user_data_private/` for dev mode, `user_data/` for production
1794
+
1795
+ **Technical Implementation:**
1796
+ - Created `modules/superbrowser.py` - Standalone module with `SuperbrowserWidget`
1797
+ - Integrated QtWebEngine with OpenGL context sharing for proper rendering
1798
+ - Added persistent profile management using `QWebEngineProfile`
1799
+ - Implemented `ChatColumn` class for individual browser columns
1800
+ - Added to Specialised Tools as "🌐 Superbrowser" tab
1801
+
1802
+ **Use Cases:**
1803
+ - Compare how different AI models respond to the same prompt
1804
+ - Maintain separate conversation threads for different projects
1805
+ - Quick access to all major AI assistants without switching browser tabs
1806
+ - Research and development with multiple AI perspectives
1807
+
1808
+ ### Fixed
1809
+ - QtWebEngine DLL compatibility issues resolved (version matching)
1810
+ - OpenGL context sharing properly initialized before QApplication creation
1811
+ - Profile storage paths follow application's dev mode patterns
1812
+
1813
+ ### Dependencies
1814
+ - Added `PyQt6-WebEngine>=6.8.0,<6.9.0` requirement (version matched to PyQt6 6.8.1)
1815
+
1816
+ ---
1817
+
1818
+ ## [1.6.3] - November 18, 2025
1819
+
1820
+ ### ⚡ UI Responsiveness & Precision Scroll Enhancements
1821
+
1822
+ **Major Performance Improvements & memoQ-Style Navigation** - Comprehensive UI responsiveness optimizations including debug settings system, disabled LLM auto-matching by default, precision scroll buttons, and auto-center active segment feature.
1823
+
1824
+ ### Added
1825
+
1826
+ **Debug Settings System:**
1827
+ - 🐛 **Debug Settings Tab** - New dedicated tab in Settings dialog for debugging and performance tuning
1828
+ - 📝 **Verbose Logging Toggle** - Enable/disable detailed debug logs (textChanged events, update cycles, cell selection)
1829
+ - 📤 **Debug Log Export** - Export debug logs to timestamped files (`supervertaler_debug_log_YYYYMMDD_HHMMSS.txt`)
1830
+ - 🔄 **Auto-export Option** - Automatically export debug logs on application exit
1831
+ - 🗑️ **Clear Log Buffer** - Manual clear button for debug log buffer (10,000 entry limit)
1832
+ - ⏱️ **Debounce Delay Control** - Spinbox to adjust target text debounce delay (100-5000ms range, default 1000ms)
1833
+ - ⚠️ **Performance Warnings** - Clear warnings about performance impact of verbose logging
1834
+
1835
+ **Precision Scroll Controls:**
1836
+ - ⬆️⬇️ **Precision Scroll Buttons** - memoQ-style ▲▼ buttons for fine-grained grid scrolling
1837
+ - 🎯 **Fixed Pixel Scrolling** - Uses fixed pixel amounts (5-50px) instead of variable row heights for predictable movement
1838
+ - 🎚️ **Adjustable Precision** - Spinbox setting (1-10 divisor) to control scroll increment size:
1839
+ - Divisor 1 = 50 pixels (coarse)
1840
+ - Divisor 3 = 40 pixels (default)
1841
+ - Divisor 5 = 30 pixels (fine)
1842
+ - Divisor 10 = 5 pixels (very fine)
1843
+ - 📊 **Live Preview** - Setting shows "Coarse/Medium/Fine/Very fine" label based on divisor value
1844
+ - 📍 **Smart Positioning** - Buttons positioned to left of scrollbar, never cut off or overlapping
1845
+ - 🎨 **Hover Effects** - Blue highlight on hover, visual feedback on click
1846
+ - 🔄 **Auto-repositioning** - Buttons reposition on window resize and table changes
1847
+
1848
+ **Auto-Center Active Segment:**
1849
+ - 🎯 **Keep Active Segment Centered** - Optional toggle to auto-scroll and center selected segment in viewport
1850
+ - 🔄 **CAT Tool Behavior** - Matches memoQ, Trados, and other professional CAT tools
1851
+ - ✅ **Settings Persistence** - Auto-center preference saved to `ui_preferences.json`
1852
+ - 🖱️ **Smooth Navigation** - Active segment always visible and centered when navigating
1853
+
1854
+ **Performance Optimizations:**
1855
+ - 🚫 **LLM Auto-matching Disabled by Default** - Changed `enable_llm_matching` from `True` to `False` to prevent 10-20 second UI freezes
1856
+ - ⚡ **Conditional Debug Logging** - All verbose logs wrapped in `if self.debug_mode_enabled:` checks
1857
+ - ⏱️ **Increased Debounce Delay** - Target text change debounce increased from 500ms to 1000ms
1858
+ - 🎛️ **LLM Matching Toggle** - Added checkbox in General Settings with warning tooltip
1859
+ - 💾 **Settings Persistence** - Debug mode, LLM matching, precision scroll, and auto-center settings saved/loaded
1860
+
1861
+ **UI/UX Improvements:**
1862
+ - 📑 **Precision Scroll Settings Section** - New section in General Settings with all scroll-related controls
1863
+ - ℹ️ **Helpful Tooltips** - Detailed explanations for all new settings
1864
+ - ⚠️ **Warning Messages** - Clear warnings about LLM performance impact (10-20 sec per segment)
1865
+ - 🎨 **Consistent Styling** - Settings UI follows existing design patterns
1866
+
1867
+ ### Changed
1868
+
1869
+ - 🔧 **Default LLM Behavior** - LLM translations no longer trigger automatically on segment selection (use "Translate with AI" button instead)
1870
+ - ⏱️ **Debounce Timing** - Target text debounce delay increased from 500ms to 1000ms for better stability
1871
+ - 📊 **Debug Logging** - Performance-heavy debug logs now conditional (only when debug mode enabled)
1872
+ - 🎯 **Scroll Algorithm** - Precision scroll now uses fixed pixel amounts instead of row-height-based calculations
1873
+
1874
+ ### Fixed
1875
+
1876
+ - 🐛 **UI Freezing on Segment Selection** - Eliminated 10-20 second freezes caused by automatic LLM API calls
1877
+ - 🐛 **Unpredictable Scroll Jumping** - Fixed precision scroll skipping segments due to variable row heights
1878
+ - 🐛 **Button Positioning** - Fixed scroll buttons being cut off by scrollbar
1879
+ - 🐛 **Method Name Mismatch** - Fixed `create_tabbed_assistance_panel` vs `create_assistance_panel` naming error
1880
+ - 🐛 **Duplicate Method Definition** - Removed duplicate `position_precision_scroll_buttons` method
1881
+ - 🐛 **TranslationResultsPanel Initialization** - Fixed incorrect `main_window` and `match_limits` parameters
1882
+
1883
+ ### Technical Details
1884
+
1885
+ **Files Modified:**
1886
+ - `Supervertaler.py` - Core application with all new features
1887
+ - `ui_preferences.json` - Stores debug_mode_enabled, debug_auto_export, enable_llm_matching, precision_scroll_divisor, auto_center_active_segment
1888
+
1889
+ **Performance Impact:**
1890
+ - MT engines (1-2 sec) remain enabled for auto-matching ✅
1891
+ - LLM translations (10-20 sec) now on-demand only (via button) ✅
1892
+ - Debug logging overhead eliminated in production use ✅
1893
+ - Smoother segment navigation with predictable scroll behavior ✅
1894
+
1895
+ **Location:**
1896
+ - Settings → 🐛 Debug (Debug settings tab)
1897
+ - Settings → General Settings (LLM matching toggle, precision scroll settings)
1898
+ - Grid → Right edge (Precision scroll buttons ▲▼)
1899
+
1900
+ ---
1901
+
1902
+ ## [1.6.2] - November 17, 2025
1903
+
1904
+ ### 🖼️ Image Extractor (Superimage)
1905
+
1906
+ **Extract Images from DOCX Files** - New tool for extracting all images from DOCX files with preview and batch processing capabilities.
1907
+
1908
+ ### Added
1909
+
1910
+ **Image Extraction:**
1911
+ - 📄 **DOCX Image Extractor** - Extract all images from DOCX files (located in word/media/ folder)
1912
+ - 🖼️ **PNG Output** - Convert all image formats to PNG with sequential naming (Fig. 1.png, Fig. 2.png, etc.)
1913
+ - 📁 **Auto-folder Mode** - Option to automatically create "Images" subfolder next to source DOCX
1914
+ - 📚 **Batch Processing** - Add multiple DOCX files or entire folders for bulk extraction
1915
+ - 🎯 **Custom Prefix** - Configurable filename prefix (default: "Fig.")
1916
+
1917
+ **Image Preview:**
1918
+ - 👁️ **Click-to-Preview** - Click any extracted file in list to view in preview panel
1919
+ - 🖼️ **Resizable Preview** - Horizontal splitter between results and preview (60% preview area)
1920
+ - ⬅️➡️ **Navigation Buttons** - Previous/Next buttons synced with file list
1921
+ - 🔍 **Auto-scaling** - Images automatically scaled to fit viewport while maintaining aspect ratio
1922
+
1923
+ **UI/UX:**
1924
+ - 🎨 **Compact Layout** - Optimized vertical space with single-row controls
1925
+ - 📝 **Resizable Status Log** - Extraction progress log with minimum 50px height
1926
+ - 📋 **File List Management** - Add files, add folder, clear list functionality
1927
+ - 🛠️ **Tools Menu Integration** - Quick access via Tools → Image Extractor (Superimage)
1928
+
1929
+ **Technical:**
1930
+ - 🔧 **New Module** - `modules/image_extractor.py` with `ImageExtractor` class
1931
+ - 📖 **Documentation** - Complete user guide in `modules/IMAGE_EXTRACTOR_README.md`
1932
+ - 🧪 **Test Script** - `tests/test_image_extractor.py` for validation
1933
+ - 🎨 **PIL/Pillow** - Image format conversion (RGBA→RGB with white background)
1934
+
1935
+ **Location:**
1936
+ - Translation Resources → Reference Images tab
1937
+ - Tools → Image Extractor (Superimage)...
1938
+
1939
+ ---
1940
+
1941
+ ## [1.6.1] - November 17, 2025
1942
+
1943
+ ### 📚 Enhanced Termbase Metadata System
1944
+
1945
+ **Extended Metadata & Improved UX** - Comprehensive termbase metadata with notes, project, and client fields, plus instant refresh functionality.
1946
+
1947
+ ### Added
1948
+
1949
+ **Enhanced Metadata Fields:**
1950
+ - 📝 **Notes Field** - Multi-line notes field replacing old definition field for context, usage notes, and URLs
1951
+ - 🔗 **Clickable URLs** - URLs in notes automatically become clickable links (opens in external browser)
1952
+ - 📁 **Project Field** - Track which project a term belongs to
1953
+ - 👤 **Client Field** - Associate terms with specific clients
1954
+ - 🏷️ **Domain Field** - Already existed, now fully integrated throughout system
1955
+
1956
+ **Termbase Viewer Enhancements:**
1957
+ - 📖 **Dedicated Termbase Viewer** - New panel at bottom of Translation Results showing selected termbase entry
1958
+ - 🔄 **Refresh Data Button** - Manual refresh button to reload latest data from database
1959
+ - ✏️ **Edit Button** - Direct access to edit dialog from termbase viewer
1960
+ - 🖱️ **Right-Click Edit** - Context menu on termbase matches for quick editing
1961
+ - ♻️ **Auto-Refresh on Edit** - Termbase viewer automatically updates after editing entry
1962
+
1963
+ **Improved Table Views:**
1964
+ - 📊 **Extended Columns** - Edit Terms dialog now shows: Source, Target, Domain, Priority, Notes (truncated), Project, Client, Forbidden
1965
+ - 📏 **Smart Column Widths** - Optimized column sizing for better visibility
1966
+ - ✂️ **Notes Truncation** - Long notes truncated to 50 characters with "..." in table view
1967
+
1968
+ **Database Enhancements:**
1969
+ - 🗄️ **Database Migration System** - Automated schema updates for backward compatibility
1970
+ - ➕ **New Columns** - Added `notes`, `project`, `client` columns to `termbase_terms` table
1971
+ - 🔗 **Synonyms Table** - Created `termbase_synonyms` table structure (foundation for future feature)
1972
+ - 🔄 **Legacy Support** - Old `definition` column preserved for backward compatibility
1973
+
1974
+ ### Fixed
1975
+
1976
+ **Metadata Flow Issues:**
1977
+ - ✅ **Complete Metadata Chain** - All termbase metadata now flows correctly: Dialog → Database → Search → Display
1978
+ - ✅ **Edit Button Caching** - Fixed issue where edit buttons didn't work until adding first new term
1979
+ - ✅ **Thread-Safe Queries** - Background termbase worker now includes all metadata fields (term_id, termbase_id, etc.)
1980
+ - ✅ **Initial Load** - Termbase matches loaded at startup now include full metadata for immediate editing
1981
+ - ✅ **Field Consistency** - Standardized on "notes" (plural) throughout codebase
1982
+
1983
+ **UI/UX Improvements:**
1984
+ - ✅ **Visible Refresh Button** - Changed from just "🔄" to "🔄 Refresh data" for better visibility
1985
+ - ✅ **Metadata Display** - Termbase viewer shows all fields with proper formatting
1986
+ - ✅ **URL Rendering** - QTextBrowser with `setOpenExternalLinks(True)` for clickable links
1987
+ - ✅ **Edit Dialog Fields** - Updated TermMetadataDialog to show notes, project, client (removed old definition field)
1988
+
1989
+ ### Changed
1990
+
1991
+ **API Updates:**
1992
+ - 🔄 **termbase_manager.add_term()** - Updated signature to accept `notes`, `project`, `client` instead of `definition`
1993
+ - 🔄 **termbase_manager.get_terms()** - Now returns all new fields in term dictionaries
1994
+ - 🔄 **termbase_manager.update_term()** - Updated to handle new field structure
1995
+ - 🔄 **database_manager.search_termbases()** - SELECT query includes all new columns
1996
+ - 🔄 **TranslationMatch metadata** - All creation points include complete metadata with IDs
1997
+
1998
+ **Code Quality:**
1999
+ - 📦 **Modular Migrations** - `database_migrations.py` handles all schema updates
2000
+ - 🔒 **Type Safety** - Proper Optional types for new fields throughout
2001
+ - 🧹 **Cleanup** - Removed all references to old "definition" field (except database column for compatibility)
2002
+
2003
+ ### Technical Details
2004
+
2005
+ **Database Migration:**
2006
+ ```sql
2007
+ -- Migration adds new columns to termbase_terms
2008
+ ALTER TABLE termbase_terms ADD COLUMN notes TEXT;
2009
+ ALTER TABLE termbase_terms ADD COLUMN project TEXT;
2010
+ ALTER TABLE termbase_terms ADD COLUMN client TEXT;
2011
+
2012
+ -- New synonyms table (foundation for future feature)
2013
+ CREATE TABLE IF NOT EXISTS termbase_synonyms (
2014
+ id INTEGER PRIMARY KEY AUTOINCREMENT,
2015
+ term_id INTEGER NOT NULL,
2016
+ synonym_text TEXT NOT NULL,
2017
+ language TEXT NOT NULL,
2018
+ created_date TEXT,
2019
+ FOREIGN KEY (term_id) REFERENCES termbase_terms(id) ON DELETE CASCADE
2020
+ );
2021
+ ```
2022
+
2023
+ **Metadata Flow:**
2024
+ 1. **Add Term**: TermMetadataDialog → get_metadata() → add_term_pair_to_termbase() → termbase_mgr.add_term() → Database INSERT
2025
+ 2. **Load Terms**: Database SELECT → search_termbases() → TranslationMatch metadata → Termbase viewer display
2026
+ 3. **Edit Term**: Edit button → TermbaseEntryEditor → update_term() → Database UPDATE → Refresh viewer
2027
+ 4. **Cache Population**: Background worker → _search_termbases_thread_safe() → Complete metadata → termbase_cache
2028
+
2029
+ ---
2030
+
2031
+ ## [1.6.0] - November 16, 2025
2032
+
2033
+ ### 📚 Complete Termbase System with Interactive Features
2034
+
2035
+ **The Ultimate Terminology Management** - Full-featured termbase system rivaling commercial CAT tools with memoQ-inspired interactive features.
2036
+
2037
+ ### Added
2038
+
2039
+ **Core Termbase Features:**
2040
+ - 📊 **SQLite-Based Storage** - Robust database backend for termbases and terms
2041
+ - 🔍 **Real-Time Term Matching** - Automatic detection of termbase matches in source segments
2042
+ - 🎨 **Priority-Based Highlighting** - Terms highlighted in source cells with color intensity matching priority (1-99)
2043
+ - 🎯 **Visual Match Display** - All termbase matches shown in Translation Results panel with metadata
2044
+ - ⚫ **Forbidden Term Marking** - Forbidden terms highlighted in black (source cells and translation results)
2045
+ - 🗂️ **Multi-Termbase Support** - Create and manage multiple termbases per project
2046
+ - ✅ **Termbase Activation** - Enable/disable specific termbases for each project
2047
+
2048
+ **Interactive Features (memoQ-Inspired):**
2049
+ - 💡 **Hover Tooltips** - Mouse over highlighted terms to see translation, priority, and forbidden status
2050
+ - 🖱️ **Double-Click Insertion** - Double-click any highlighted term to insert translation at cursor
2051
+ - 📝 **Dual Selection Workflow** - Select source term → Tab → select target translation → Ctrl+E to add
2052
+ - 🎹 **Keyboard Shortcuts** - Ctrl+E to add term pair, right-click context menu alternative
2053
+
2054
+ **Termbase Management UI:**
2055
+ - 📋 **Termbase List** - View all termbases with term counts and activation toggles
2056
+ - ➕ **Create/Delete** - Full CRUD operations with confirmation dialogs
2057
+ - ✏️ **Edit Terms Dialog** - Modify source/target terms, priority (1-99), and forbidden flag
2058
+ - 🔢 **Priority Editing** - Click priority cells to edit directly in table
2059
+ - 🚫 **Forbidden Toggle** - Checkbox for marking terms as forbidden (do-not-use)
2060
+ - 📊 **Metadata Entry** - Add definition, domain, priority, and forbidden status when creating terms
2061
+
2062
+ **Technical Implementation:**
2063
+ - 🗄️ **Three-Table Schema** - `termbases`, `termbase_terms`, `termbase_activation` for flexible management
2064
+ - 🔍 **FTS5 Full-Text Search** - Fast term matching even with large termbases
2065
+ - 💾 **Smart Caching** - Term matches cached per segment for performance
2066
+ - 🔄 **Automatic Refresh** - Adding/editing terms immediately updates highlighting and results
2067
+ - 🎨 **QTextCharFormat Highlighting** - Non-intrusive background color without replacing widgets
2068
+ - 🖱️ **Mouse Tracking** - Enable hover detection with `setMouseTracking(True)`
2069
+ - 📍 **Position Detection** - `cursorForPosition()` for finding text under mouse cursor
2070
+
2071
+ **Color System:**
2072
+ - 🔵 **Priority Colors** - Higher priority (lower number) = darker blue, lower priority = lighter blue
2073
+ - ⚫ **Forbidden Terms** - Black background (#000000) with white text for maximum visibility
2074
+ - 🎨 **Consistent Rendering** - Same color scheme in source highlights and translation results
2075
+
2076
+ **Workflow Integration:**
2077
+ - ⚡ **Fast Term Entry** - Select in source → Tab → select in target → Ctrl+E → done
2078
+ - 🔄 **Immediate Visibility** - New terms appear instantly in highlights and results
2079
+ - 📊 **Project-Based Activation** - Each project remembers which termbases are active
2080
+ - 🎯 **Settings Toggle** - Enable/disable grid highlighting in Settings → General
2081
+
2082
+ ### Fixed
2083
+ - ✅ Language code handling - Proper conversion from language names (Dutch → nl, English → en)
2084
+ - ✅ Term search issues - Fixed "unknown" language codes preventing matches
2085
+ - ✅ Activation persistence - Termbase toggles now save correctly across sessions
2086
+ - ✅ Priority editing - Term priority changes now persist to database
2087
+ - ✅ Delete functionality - Delete button now works with confirmation dialog
2088
+ - ✅ Project ID tracking - Hash-based project ID for termbase activation
2089
+ - ✅ Highlight consistency - Clear formatting before re-applying to prevent accumulation
2090
+ - ✅ Cache clearing - Both termbase_cache and translation_matches_cache cleared after changes
2091
+
2092
+ ### Technical Details
2093
+ **Database Schema:**
2094
+ ```sql
2095
+ -- Termbases table
2096
+ CREATE TABLE termbases (
2097
+ id INTEGER PRIMARY KEY,
2098
+ name TEXT UNIQUE NOT NULL,
2099
+ description TEXT,
2100
+ created_date TEXT,
2101
+ modified_date TEXT
2102
+ )
2103
+
2104
+ -- Termbase terms with FTS5 search
2105
+ CREATE VIRTUAL TABLE termbase_terms USING fts5(
2106
+ termbase_id UNINDEXED,
2107
+ source_term,
2108
+ target_term,
2109
+ source_lang,
2110
+ target_lang,
2111
+ definition,
2112
+ domain,
2113
+ priority UNINDEXED,
2114
+ forbidden UNINDEXED,
2115
+ created_date UNINDEXED,
2116
+ modified_date UNINDEXED
2117
+ )
2118
+
2119
+ -- Project-specific termbase activation
2120
+ CREATE TABLE termbase_activation (
2121
+ project_id TEXT NOT NULL,
2122
+ termbase_id INTEGER NOT NULL,
2123
+ is_active INTEGER DEFAULT 1,
2124
+ PRIMARY KEY (project_id, termbase_id)
2125
+ )
2126
+ ```
2127
+
2128
+ **Key Classes:**
2129
+ - `TermbaseManager` - Database operations and term search
2130
+ - `ReadOnlyGridTextEditor` - Source cell with highlighting, tooltip, and double-click
2131
+ - `TermMetadataDialog` - Modal dialog for entering term metadata
2132
+ - `find_termbase_matches_in_source()` - Search engine returning match dict
2133
+ - `highlight_termbase_matches()` - Visual highlighting with priority/forbidden colors
2134
+
2135
+ ### Documentation
2136
+ - Added comprehensive termbase workflow documentation
2137
+ - Updated keyboard shortcuts reference
2138
+ - Documented color system and priority levels
2139
+ - Added tooltip and double-click feature guides
2140
+
2141
+ ---
2142
+
2143
+ ## [1.5.1] - November 16, 2025
2144
+
2145
+ ### ⌨️ Source/Target Tab Cycling for Termbase Workflow
2146
+
2147
+ **New Feature:**
2148
+ - 🔄 **Tab Key Cycling** - Press `Tab` in target cell to jump to source cell, then `Tab` again to return to target
2149
+ - Enables fast termbase workflow: select term in source, Tab to target, select translation
2150
+ - Works bidirectionally: Target → Source → Target
2151
+ - Both source and target cells support text selection with keyboard and mouse
2152
+ - Arrow keys work in both cells for cursor movement
2153
+ - 🔠 **Ctrl+Tab** - Insert actual tab character when needed (in both source and target)
2154
+
2155
+ **Technical Implementation:**
2156
+ - Source cells (`ReadOnlyGridTextEditor`) now intercept Tab at the `event()` level for reliable cycling
2157
+ - Target cells (`EditableGridTextEditor`) handle Tab in `keyPressEvent()`
2158
+ - Text selection enabled in source cells via `TextSelectableByKeyboard | TextSelectableByMouse` flags
2159
+ - Focus policy set to `StrongFocus` on both cell types
2160
+
2161
+ **Workflow Benefits:**
2162
+ - Facilitates termbase entry: select source term → Tab → select target translation → add to termbase
2163
+ - Maintains active text selections in both cells simultaneously for termbase operations
2164
+ - No need to click between cells, keyboard-only navigation
2165
+
2166
+ ---
2167
+
2168
+ ## [1.5.0] - November 15, 2025
2169
+
2170
+ ### 🔍 Translation Results Enhancement + Match Insertion Shortcuts
2171
+
2172
+ **Major Features:**
2173
+ - 🎯 **Progressive Match Loading** - Termbase, TM, MT, and LLM results now accumulate instead of replacing each other
2174
+ - ⌨️ **Match Navigation Shortcuts** - `Ctrl+Up/Down` to cycle through translation matches from the grid
2175
+ - 🚀 **Quick Insert Shortcuts** - `Ctrl+1-9` to instantly insert specific matches at cursor position
2176
+ - ⏎ **Smart Match Insertion** - `Ctrl+Space`, `Space`, or `Enter` in results panel to insert selected match
2177
+ - 🏷️ **Tag Display Control** - Optional setting to show/hide HTML/XML tags in translation results (Settings → View Settings)
2178
+ - 📊 **Status Management** - Manual edits now reset segment status to "Not started" requiring explicit confirmation
2179
+
2180
+ **Bug Fixes:**
2181
+ - ✅ Fixed translation results panel showing only the last match type (now accumulates all: termbase → TM → MT → LLM)
2182
+ - ✅ Fixed `add_matches()` method not found error (implemented progressive match accumulation)
2183
+ - ✅ Fixed `save_mode` parameter errors in TM saving (removed deprecated parameter)
2184
+ - ✅ Fixed match insertion not working (now correctly inserts at cursor position in target cell)
2185
+ - ✅ Fixed `scroll_area` AttributeError (corrected to `matches_scroll`)
2186
+
2187
+ **Keyboard Shortcuts Added:**
2188
+ - `Ctrl+Up` - Navigate to previous match in results panel
2189
+ - `Ctrl+Down` - Navigate to next match in results panel
2190
+ - `Ctrl+1` through `Ctrl+9` - Insert match #1-9 at cursor position
2191
+ - `Ctrl+Space` - Insert currently selected match
2192
+ - `Space` or `Enter` - Insert selected match (when focused on results panel)
2193
+
2194
+ **Documentation:**
2195
+ - Updated shortcut manager with complete match navigation and insertion shortcuts
2196
+ - Added comprehensive shortcut documentation in Settings → Shortcuts section
2197
+
2198
+ **Technical Improvements:**
2199
+ - Implemented `add_matches()` method for progressive match accumulation
2200
+ - Added `insert_match_by_number()` for direct match insertion by number
2201
+ - Added `insert_selected_match()` for keyboard-driven match insertion
2202
+ - Improved `on_match_inserted()` to insert at cursor position using `textCursor().insertText()`
2203
+ - Added tag formatting control with `show_tags` class variable and `_format_text()` method
2204
+
2205
+ ---
2206
+
2207
+ ## [1.4.0] - November 12, 2025
2208
+
2209
+ ### 🎤 Major Feature: Supervoice Voice Dictation + Detachable Log Window
2210
+
2211
+ **AI-Powered Hands-Free Translation Input** - OpenAI Whisper voice dictation with 100+ language support, plus multi-monitor log window capability.
2212
+
2213
+ ### Added
2214
+ - **🎤 Supervoice Voice Dictation Module**
2215
+ - AI-powered speech recognition using OpenAI Whisper
2216
+ - Support for 100+ languages (as many as Whisper can handle)
2217
+ - Press-to-start, press-to-stop recording with F9 global hotkey
2218
+ - 5 model sizes: tiny, base, small, medium, large (balance speed vs accuracy)
2219
+ - Configurable in Settings → 🎤 Supervoice
2220
+ - Automatic FFmpeg detection and bundling support
2221
+ - User-friendly error messages with installation instructions
2222
+ - Visual feedback: button color changes during recording
2223
+ - Seamless integration with segment editor and grid cells
2224
+ - Language auto-detection from project settings
2225
+ - Manual stop functionality (press F9 again to stop recording)
2226
+ - Future: Planned parallel dictation system for voice commands (confirm segment, go to top, filtering, workflow automation)
2227
+
2228
+ - **🪟 Detachable Log Window**
2229
+ - Log window can be detached into separate floating window
2230
+ - Perfect for multi-monitor setups
2231
+ - Synchronized auto-scroll between main and detached logs
2232
+ - "Detach Log" / "Attach Log" button in Settings
2233
+ - Remembers detached state across sessions
2234
+ - Independent positioning and sizing
2235
+
2236
+ - **📚 Comprehensive Documentation**
2237
+ - [VOICE_DICTATION_GUIDE.md](docs/VOICE_DICTATION_GUIDE.md) - Complete user guide
2238
+ - [VOICE_DICTATION_DEPLOYMENT.md](docs/VOICE_DICTATION_DEPLOYMENT.md) - Deployment options
2239
+ - [SUPERVOICE_TROUBLESHOOTING.md](docs/SUPERVOICE_TROUBLESHOOTING.md) - Troubleshooting guide
2240
+ - FFmpeg licensing information
2241
+ - Model selection recommendations
2242
+ - Corrupt model file recovery instructions
2243
+
2244
+ ### Fixed
2245
+ - **🐛 Voice Dictation Bug Fixes**
2246
+ - Fixed critical UnboundLocalError in `voice_dictation_lite.py:118` (duplicate `import os` statement)
2247
+ - Fixed language detection from project settings
2248
+ - Fixed button color restoration after recording
2249
+ - Fixed auto-scroll synchronization between log windows
2250
+
2251
+ ### Changed
2252
+ - **🔧 Version Update**
2253
+ - Updated version from 1.3.4 to 1.4.0
2254
+ - Updated all version strings in code and documentation
2255
+ - Updated window titles and welcome messages
2256
+ - Updated website (docs/index.html) with Supervoice module card
2257
+ - Updated hero badge to "v1.4.0 - Supervoice Voice Dictation"
2258
+
2259
+ ### Technical
2260
+ - New module: `modules/voice_dictation_lite.py` - Core dictation engine
2261
+ - Enhanced `Supervertaler_Qt.py` - Integrated voice dictation and detachable log
2262
+ - Updated `docs/index.html` - Added Supervoice feature highlight and module card
2263
+ - Created FFmpeg detection and bundling infrastructure
2264
+ - Whisper model caching in `%USERPROFILE%\.cache\whisper\`
2265
+
2266
+ ---
2267
+
2268
+ ## [1.3.3] - November 10, 2025
2269
+
2270
+ ### 🏆 Major Feature: LLM Leaderboard + UI Standardization
2271
+
2272
+ **Translation Quality Benchmarking System** - Compare translation quality, speed, and cost across multiple LLM providers in a professional, standardized interface.
2273
+
2274
+ ### Added
2275
+ - **🏆 LLM Leaderboard Module** (Complete Implementation)
2276
+ - Benchmark translation quality across OpenAI, Claude, and Gemini models
2277
+ - chrF++ quality scoring for objective translation assessment
2278
+ - Speed and cost tracking for each translation
2279
+ - Multiple test datasets: Technical, Legal, Medical, Marketing (EN→NL, NL→EN)
2280
+ - Comprehensive Excel export with:
2281
+ - About sheet with clickable Supervertaler.com link
2282
+ - Summary sheet with rankings and statistics
2283
+ - Detailed results with all metrics
2284
+ - Dataset info in filename (e.g., `LLM_Leaderboard_Technical_EN-NL_20251110.xlsx`)
2285
+ - Auto-scrolling log for real-time progress monitoring
2286
+ - Standalone usage support with api_keys.example.txt template
2287
+ - Professional documentation in `modules/LLM_LEADERBOARD_STANDALONE.md`
2288
+
2289
+ - **🎨 Standardized Module Headers**
2290
+ - Consistent professional styling across all modules
2291
+ - Blue header color (#1976D2) matching Supervertaler branding
2292
+ - Light blue description boxes (#E3F2FD) with rounded corners
2293
+ - Trophy emoji 🏆 for LLM Leaderboard identity
2294
+ - Applied to: LLM Leaderboard, TMX Editor, AutoFingers, PDF Rescue
2295
+
2296
+ - **📊 Model Selection Enhancements**
2297
+ - Friendly model names in dropdowns (e.g., "GPT-5 (Reasoning)", "Claude Opus 4.1")
2298
+ - Support for latest models:
2299
+ - OpenAI: GPT-4o, GPT-4o Mini, GPT-5
2300
+ - Claude: Sonnet 4.5, Haiku 4.5, Opus 4.1
2301
+ - Gemini: 2.5 Flash, 2.5 Flash Lite, 2.5 Pro, 2.0 Flash (Exp)
2302
+
2303
+ ### Fixed
2304
+ - **🐛 LLM Leaderboard Bug Fixes**
2305
+ - Fixed Claude API call parameters (text vs custom_prompt)
2306
+ - Fixed Gemini API key mapping ("gemini" provider → "google" API key)
2307
+ - Fixed model dropdown display names (was showing generic names instead of selected models)
2308
+ - Fixed API key auto-creation from template file
2309
+
2310
+ ### Changed
2311
+ - **🔧 Excel Export Branding**
2312
+ - Title sheet matches UI header style with trophy emoji
2313
+ - Blue title color (#1976D2) for brand consistency
2314
+ - Clickable hyperlink to https://supervertaler.com/
2315
+ - Professional subtitle formatting
2316
+
2317
+ - **🔧 API Key Management**
2318
+ - Auto-creates `api_keys.txt` from `api_keys.example.txt` on first run
2319
+ - Supports standalone LLM Leaderboard usage outside Supervertaler
2320
+
2321
+ ### Technical
2322
+ - Enhanced `modules/llm_leaderboard.py` - Core benchmarking engine
2323
+ - Enhanced `modules/superbench_ui.py` - Qt UI with standardized header
2324
+ - Updated `modules/llm_clients.py` - Auto-create API keys functionality
2325
+ - Updated `Supervertaler_Qt.py` - Gemini API key mapping fix
2326
+ - Created `api_keys.example.txt` - Template for standalone usage
2327
+ - Created `modules/LLM_LEADERBOARD_STANDALONE.md` - Complete documentation
2328
+
2329
+ ---
2330
+
2331
+ ## [1.3.2] - November 9, 2025
2332
+
2333
+ ### 🎯 Major Feature: Segment-Level AI Access + Critical Bug Fix
2334
+
2335
+ **AI Assistant can now access and query individual segments from your translation project**
2336
+
2337
+ ### Added
2338
+ - **🔢 Segment-Level AI Actions** (Phase 2 Enhancement)
2339
+ - `get_segment_count` - Get total segments and translation progress
2340
+ - `get_segment_info` - Query specific segments by ID, multiple IDs, or range
2341
+ - AI can answer "How many segments?" and "What is segment 5?"
2342
+ - First 10 segments automatically included in AI context
2343
+ - Full segment properties: id, source, target, status, type, notes, match_percent, etc.
2344
+
2345
+ - **📊 Segment Information Display**
2346
+ - AI Assistant shows segment details in formatted chat bubbles
2347
+ - HTML entity escaping for CAT tool tags (`<tag>`, `&nbsp;`, etc.)
2348
+ - Proper handling of Trados, memoQ, Wordfast, CafeTran tags
2349
+ - Segments displayed in code blocks for readability
2350
+
2351
+ - **⚙️ Auto-Markdown Generation Setting**
2352
+ - Optional setting in Settings → General → AI Assistant Settings
2353
+ - "Auto-generate markdown for imported documents" checkbox
2354
+ - Automatically converts DOCX/PDF to markdown on import
2355
+ - Markdown saved to `user_data_private/AI_Assistant/current_document/`
2356
+ - Includes metadata JSON with conversion info
2357
+
2358
+ ### Fixed
2359
+ - **🐛 CRITICAL: Current Document Not Showing After Import**
2360
+ - Fixed attribute name mismatch: `self.prompt_manager` → `self.prompt_manager_qt`
2361
+ - Current document now appears in AI Assistant sidebar after import
2362
+ - Auto-markdown generation now triggers correctly
2363
+ - Context refresh now works properly
2364
+
2365
+ ### Changed
2366
+ - **🔧 AI Assistant Context Building** (`modules/unified_prompt_manager_qt.py`)
2367
+ - Added `_get_segment_info()` method for structured segment data
2368
+ - Added `generate_markdown_for_current_document()` public method
2369
+ - Modified context building to prioritize segment-level access
2370
+ - Document content fallback when segments unavailable
2371
+
2372
+ - **🔧 AI Actions System** (`modules/ai_actions.py`)
2373
+ - Added `parent_app` parameter to constructor
2374
+ - Added segment action handlers with full validation
2375
+ - Enhanced `format_action_results()` with segment display logic
2376
+ - Comprehensive HTML entity escaping (order-aware to prevent double-escaping)
2377
+
2378
+ - **🔧 Main Application** (`Supervertaler_Qt.py`)
2379
+ - Added auto-markdown setting to Settings UI
2380
+ - Setting persists in `ui_preferences.json`
2381
+ - Document import triggers markdown generation when enabled
2382
+ - Context refresh called after document import
2383
+
2384
+ ### Technical
2385
+ - **Segment Access Order:**
2386
+ 1. `project.segments` - Full segment objects (PREFERRED)
2387
+ 2. `parent_app.segments` - Currently loaded segments
2388
+ 3. `project.source_segments` - Project source text
2389
+ 4. Cached markdown conversion
2390
+ 5. On-demand file conversion with markitdown
2391
+
2392
+ - **HTML Escaping Order:** `&` → `<` → `>` → `"` (prevents double-escaping)
2393
+ - **Segment Data Structure:** Full dataclass with 12 properties per segment
2394
+
2395
+ ### Testing
2396
+ - ✅ Updated test suite (`test_ai_actions.py`)
2397
+ - ✅ Added Test 9: get_segment_count action
2398
+ - ✅ Added Test 10: get_segment_info action (single, multiple, range)
2399
+ - ✅ All 10 tests passing
2400
+
2401
+ ### Documentation
2402
+ - Updated `docs/AI_ASSISTANT_INTEGRATION.md` with segment access details
2403
+ - Added segment action examples and use cases
2404
+ - Updated troubleshooting section
2405
+
2406
+ ### Benefits
2407
+ - ✅ **Segment-specific queries** - AI can find and analyze specific segments
2408
+ - ✅ **Translation progress tracking** - AI reports completion status
2409
+ - ✅ **CAT tool tag handling** - All tag types properly escaped and displayed
2410
+ - ✅ **Auto-markdown option** - Users control document conversion
2411
+ - ✅ **Fixed critical bug** - Current document now shows correctly
2412
+
2413
+ ---
2414
+
2415
+ ## [1.3.1] - November 9, 2025
2416
+
2417
+ ### ✨ Major Feature: AI Assistant File Attachment Persistence (Phase 1)
2418
+
2419
+ **Complete persistent storage system for AI Assistant file attachments with view/manage UI**
2420
+
2421
+ ### Added
2422
+ - **📎 AttachmentManager Module** (`modules/ai_attachment_manager.py` - 390 lines)
2423
+ - Complete persistent storage system for attached files
2424
+ - Session-based organization (files grouped by date)
2425
+ - Master index tracking all attachments across sessions
2426
+ - Metadata storage with JSON (original name, path, type, size, date)
2427
+ - Full CRUD operations: attach, get, list, remove files
2428
+ - Statistics tracking (total files, size, sessions)
2429
+
2430
+ - **👁️ File Viewer Dialogs** (`modules/ai_file_viewer_dialog.py` - 160 lines)
2431
+ - FileViewerDialog - displays file content with metadata
2432
+ - Read-only markdown preview with monospace font
2433
+ - Copy to clipboard functionality
2434
+ - FileRemoveConfirmDialog - confirmation before deletion
2435
+
2436
+ - **🎨 Expandable Attached Files Panel** (AI Assistant context sidebar)
2437
+ - Collapsible "📎 Attached Files" section with expand/collapse button (▼/▶)
2438
+ - Dynamic file list showing name, type, size for each file
2439
+ - View button (👁) - opens file viewer dialog
2440
+ - Remove button (❌) - deletes from disk with confirmation
2441
+ - + button to attach new files
2442
+ - Auto-refresh on file operations
2443
+
2444
+ ### Changed
2445
+ - **🔧 AI Assistant Integration** (`modules/unified_prompt_manager_qt.py`)
2446
+ - Initialized AttachmentManager in `__init__`
2447
+ - Modified `_attach_file()` to save files to persistent storage
2448
+ - Added `_load_persisted_attachments()` method - loads files on startup
2449
+ - Created `_create_attached_files_section()` - expandable panel UI
2450
+ - Added `_refresh_attached_files_list()` - dynamic file list updates
2451
+ - Added `_create_file_item_widget()` - individual file items with buttons
2452
+ - Added `_view_file()` - opens FileViewerDialog
2453
+ - Added `_remove_file()` - removes from disk and memory
2454
+ - Added `_toggle_attached_files()` - expand/collapse functionality
2455
+ - Updated `_update_context_sidebar()` to refresh file list
2456
+ - Updated `_load_conversation_history()` to refresh UI after load
2457
+
2458
+ ### Technical
2459
+ - **Storage Structure:**
2460
+ - Base: `user_data_private/AI_Assistant/`
2461
+ - Attachments: `attachments/{session_id}/{file_hash}.md`
2462
+ - Metadata: `attachments/{session_id}/{file_hash}.meta.json`
2463
+ - Master index: `index.json`
2464
+ - **Session Management:** Date-based sessions (YYYYMMDD format)
2465
+ - **File Hashing:** SHA256-based unique IDs (path_hash + content_hash)
2466
+ - **Backward Compatibility:** Old `self.attached_files` list still maintained
2467
+
2468
+ ### Testing
2469
+ - ✅ Created comprehensive test suite (`test_attachment_manager.py`)
2470
+ - ✅ All 8 tests passing (imports, init, session, attach, list, get, stats, remove)
2471
+ - ✅ UTF-8 console output handling for Windows
2472
+
2473
+ ### Benefits
2474
+ - ✅ **Files no longer lost** when application closes
2475
+ - ✅ **Users can view** attached files anytime via viewer dialog
2476
+ - ✅ **Users can remove** unwanted files with confirmation
2477
+ - ✅ **Session organization** keeps files organized by date
2478
+ - ✅ **Persistent across app restarts** - automatic reload on startup
2479
+
2480
+ ### Documentation
2481
+ - Updated `docs/PROJECT_CONTEXT.md` with Phase 1 implementation details
2482
+ - Created `docs/AI_ASSISTANT_ENHANCEMENT_PLAN.md` with full specification
2483
+ - Updated website (`docs/index.html`) to reflect new features
2484
+
2485
+ ### Next
2486
+ - Phase 2: AI Actions System (allow AI to create/modify prompts in library)
2487
+
2488
+ ---
2489
+
2490
+ ## [1.2.2] - November 6, 2025
2491
+
2492
+ ### 🎨 Major Enhancement: Translation Results, Document Formatting & Tag System
2493
+
2494
+ **Fixed translation results display, enhanced document view with formatting, and activated the tag system!**
2495
+
2496
+ ### Fixed
2497
+ - **🐛 Translation Results Panels Not Working** - CRITICAL FIX
2498
+ - Removed lingering `assistance_widget` references that blocked match processing
2499
+ - Fixed termbase, TM, MT, and LLM matches not displaying in panels
2500
+ - Updated all 6 locations where matches were being set to use `results_panels`
2501
+ - All three views (Grid, List, Document) now show matches correctly
2502
+
2503
+ - **🐛 Menu Bar Blocked by Error Indicator**
2504
+ - Removed 15+ obsolete `assistance_widget` references causing Qt errors
2505
+ - Fixed red error triangle that blocked File and Edit menus
2506
+ - Updated zoom functions, font settings, and close project cleanup
2507
+
2508
+ ### Added
2509
+ - **✅ Document View Formatting**
2510
+ - Renders inline formatting tags: `<b>bold</b>`, `<i>italic</i>`, `<u>underline</u>`, `<bi>bold+italic</bi>`
2511
+ - New list item tag: `<li>content</li>` renders with orange bullet (•)
2512
+ - Proper QTextCharFormat application for bold, italic, underline
2513
+ - Tag parsing with formatting stack for nested tags
2514
+
2515
+ - **✅ Enhanced Type Column**
2516
+ - Shows **H1, H2, H3, H4** for heading levels (blue background)
2517
+ - Shows **Title** for document titles
2518
+ - Shows **Sub** for subtitles
2519
+ - Shows **li** for list items (green background)
2520
+ - Shows **¶** for regular paragraphs
2521
+ - Color-coded for easy document structure visualization
2522
+
2523
+ - **✅ List Item Tag System**
2524
+ - DOCX import detects bullets and numbered lists
2525
+ - Automatically wraps list items in `<li>` tags
2526
+ - Detection works on Word numbering format, bullet characters, and numbered prefixes
2527
+ - Tags preserved through translation and export workflow
2528
+
2529
+ ### Technical
2530
+ - Updated `tag_manager.py` to support `<li>` tag (TAG_PATTERN regex)
2531
+ - Enhanced `docx_handler.py` to detect and tag list items during import
2532
+ - Document view parses tags and renders with proper formatting
2533
+ - Type column detects `<li>` tags, heading styles, and text patterns
2534
+ - Tag colors: Bold=#CC0000, Italic=#0066CC, Underline=#009900, BoldItalic=#CC00CC, ListItem=#FF6600
2535
+
2536
+ ---
2537
+
2538
+ ## [1.2.1] - November 6, 2025
2539
+
2540
+ ### 🎨 UI Enhancement: Unified Tabbed Interface
2541
+
2542
+ **Added consistent tabbed panel structure to both Grid and List views for improved workflow!**
2543
+
2544
+ ### Added
2545
+ - **✅ Tabbed Panel in Grid View**
2546
+ - Tab 1: Translation Results (TM, MT, LLM, Termbase matches)
2547
+ - Tab 2: Segment Editor (source/target editing, status selector)
2548
+ - Tab 3: Notes (segment notes with save functionality)
2549
+ - Enables segment editing directly in Grid View (like Tkinter edition)
2550
+
2551
+ - **✅ Tabbed Panel in List View**
2552
+ - Same 3-tab structure as Grid View for consistency
2553
+ - Translation Results | Segment Editor | Notes
2554
+ - Replaces single-panel layout with flexible tabbed interface
2555
+
2556
+ - **✅ Synchronized Panel Updates**
2557
+ - Clicking segment in any view updates ALL tabs in ALL views
2558
+ - Editing in any panel automatically syncs to other panels
2559
+ - Prevents infinite loops with signal blocking
2560
+ - Multiple independent widget instances for Grid/List views
2561
+
2562
+ ### Fixed
2563
+ - **🐛 Widget Parenting Issues** - Fixed Qt single-parent constraint violations
2564
+ - Created separate TranslationResultsPanel instances for each view
2565
+ - Stored widget references on panel objects for flexible access
2566
+ - Maintains `results_panels` and `tabbed_panels` lists for batch updates
2567
+
2568
+ - **🐛 Signal Handler Crashes** - Fixed AttributeError when editing segments
2569
+ - Updated `on_tab_target_change()`, `on_tab_segment_status_change()`, `on_tab_notes_change()`
2570
+ - Handlers now iterate all panels instead of accessing non-existent attributes
2571
+ - Proper error handling per panel to prevent cascade failures
2572
+
2573
+ ### Technical
2574
+ - Unified panel creation via `create_tabbed_assistance_panel()`
2575
+ - Widget reference storage pattern: `panel.editor_widget.source_editor`
2576
+ - Centralized update function: `update_tab_segment_editor()` iterates all panels
2577
+ - Signal blocking prevents infinite update loops during synchronization
2578
+
2579
+ ---
2580
+
2581
+ ## [1.2.0] - November 6, 2025 🎉
2582
+
2583
+ ### 🎯 MAJOR RELEASE: Complete Translation Matching System
2584
+
2585
+ **The Supervertaler CAT tool now provides comprehensive translation assistance with all match types working together!**
2586
+
2587
+ ### Added
2588
+ - **✅ Google Cloud Translation API Integration**
2589
+ - Machine translation matches displayed alongside TM and LLM results
2590
+ - Uses Google Translate REST API v2 for direct API key authentication
2591
+ - Automatic language detection support
2592
+ - High-quality neural machine translation
2593
+ - Provider badge: "MT" in match display
2594
+
2595
+ - **✅ Multi-LLM Support (OpenAI, Claude, Gemini)**
2596
+ - **OpenAI GPT** integration (GPT-4o, GPT-5, o1, o3)
2597
+ - **Claude 3.5 Sonnet** integration (Anthropic)
2598
+ - **Google Gemini** integration (Gemini 2.0 Flash, 1.5 Pro)
2599
+ - All three LLM providers work simultaneously
2600
+ - Each provides translations with confidence scores
2601
+ - Provider badges: "OA" (OpenAI), "CL" (Claude), "GM" (Gemini)
2602
+
2603
+ - **✅ Complete Match Chaining System**
2604
+ - **Termbase matches** → Displayed immediately (yellow highlight)
2605
+ - **TM matches** → Displayed after 1.5s delay (prevents excessive API calls)
2606
+ - **MT matches** → Google Translate integrated in delayed search
2607
+ - **LLM matches** → All enabled LLMs called in parallel
2608
+ - All match types preserved and displayed together in Translation Results Panel
2609
+
2610
+ - **✅ Flexible API Key Management**
2611
+ - Supports both `google` and `google_translate` key names for Google Cloud Translation
2612
+ - Supports both `gemini` and `google` key names for Gemini API
2613
+ - Backward compatibility with existing configurations
2614
+ - Standalone `load_api_keys()` function in `modules/llm_clients.py`
2615
+
2616
+ ### Fixed
2617
+ - **🐛 Termbase Match Preservation** - Termbase matches no longer disappear when TM/MT/LLM results load
2618
+ - Root cause: Delayed search wasn't receiving termbase matches parameter
2619
+ - Solution: Pass `current_termbase_matches` to `_add_mt_and_llm_matches()`
2620
+ - Termbase matches now persist throughout the entire search process
2621
+
2622
+ - **🐛 Google Translate Authentication** - Fixed "Client.__init__() got an unexpected keyword argument 'api_key'"
2623
+ - Switched from google-cloud-translate SDK to direct REST API calls
2624
+ - Simpler authentication using API key in URL parameters
2625
+ - More reliable and easier to configure
2626
+
2627
+ - **🐛 Gemini Integration** - Gemini now properly called when using `google` API key
2628
+ - Added fallback to check both `gemini` and `google` key names
2629
+ - Fixed LLM wrapper to support Google's API key for Gemini
2630
+
2631
+ ### Technical Implementation
2632
+ - **File: `modules/llm_clients.py`**
2633
+ - Added standalone `load_api_keys()` function (lines 27-76)
2634
+ - Fixed `get_google_translation()` to use REST API instead of SDK
2635
+ - Backward compatible API key naming (checks multiple key names)
2636
+ - Module can now operate independently without main application
2637
+
2638
+ - **File: `Supervertaler_Qt.py`**
2639
+ - Enhanced `_add_mt_and_llm_matches()` with comprehensive logging
2640
+ - Fixed Gemini integration to check both key naming conventions
2641
+ - Improved match chaining with proper termbase preservation
2642
+ - Debounced search (1.5s delay) prevents excessive API calls
2643
+
2644
+ ### Performance Optimizations
2645
+ - **Debounced Search** - 1.5-second delay before calling TM/MT/LLM APIs
2646
+ - **Timer Cancellation** - Previous searches cancelled when user moves to new segment
2647
+ - **Immediate Termbase Display** - Termbase matches shown instantly (no delay)
2648
+ - **Parallel LLM Calls** - All LLM providers called simultaneously for faster results
2649
+
2650
+ ### Dependencies
2651
+ - `requests` - For Google Translate REST API calls (standard library)
2652
+ - `openai` - OpenAI GPT integration
2653
+ - `anthropic` - Claude integration
2654
+ - `google-generativeai` - Gemini integration
2655
+ - `httpx==0.28.1` - HTTP client (version locked for LLM compatibility)
2656
+
2657
+ ### Documentation
2658
+ - Updated `docs/PROJECT_CONTEXT.md` with November 6, 2025 development activity
2659
+ - Documented all LLM & MT integration details
2660
+ - Listed resolved issues and technical decisions
2661
+
2662
+ ### Match Display
2663
+ All match types now display in the Translation Results Panel:
2664
+ - **Termbases** (Yellow section) - Term matches from termbase databases
2665
+ - **Translation Memory** (Blue section) - Fuzzy matches from TM database
2666
+ - **Machine Translation** (Orange section) - Google Cloud Translation
2667
+ - **LLM** (Purple section) - OpenAI GPT, Claude, and/or Gemini translations
2668
+
2669
+ Each match shows:
2670
+ - Provider badge (NT/TM/MT/OA/CL/GM)
2671
+ - Relevance percentage (0-100%)
2672
+ - Target translation text
2673
+ - Source context (when available)
2674
+
2675
+ ---
2676
+
2677
+ ## [1.1.9] - November 6, 2025
2678
+
2679
+ ### Added
2680
+ - **⌨️ Keyboard Shortcuts Manager** - Comprehensive keyboard shortcuts management system
2681
+ - New Settings tab: "⌨️ Keyboard Shortcuts"
2682
+ - View all 40+ keyboard shortcuts organized by category (File, Edit, Translation, View, Resources, Match Insertion, etc.)
2683
+ - Search/filter shortcuts by action, category, or key combination
2684
+ - Edit shortcuts with custom key capture widget
2685
+ - Conflict detection with warnings
2686
+ - Reset individual shortcuts or all shortcuts to defaults
2687
+ - Export shortcuts to JSON (share with team)
2688
+ - Import shortcuts from JSON
2689
+ - **Export HTML Cheatsheet** - Beautiful, printable keyboard reference with professional styling
2690
+ - Modular architecture: `modules/shortcut_manager.py` and `modules/keyboard_shortcuts_widget.py`
2691
+
2692
+ ### Technical Details
2693
+ - **ShortcutManager** class - Backend logic for managing shortcuts
2694
+ - **KeyboardShortcutsWidget** - Full-featured UI for Settings tab
2695
+ - **KeySequenceEdit** - Custom widget for capturing key presses
2696
+ - **Conflict detection** - Real-time warnings for duplicate shortcuts
2697
+ - **Context-aware shortcuts** - Different contexts (editor, grid, match panel) to prevent conflicts
2698
+ - Data stored in `user_data/shortcuts.json`
2699
+
2700
+ ### Documentation
2701
+ - Added `Keyboard_Shortcuts_Implementation.md` in development docs
2702
+ - Added `Competitive_Analysis_CotranslatorAI.md` in development docs
2703
+
2704
+ ### Improved
2705
+ - **Repository Philosophy** - Continued modular architecture to keep main file maintainable
2706
+ - **AI-Friendly Codebase** - Complex features extracted to focused modules (easier for AI agents to understand)
2707
+
2708
+ ---
2709
+
2710
+ ## [1.1.8] - November 5, 2025
2711
+
2712
+ ### Fixed
2713
+ - **🎯 Prompt Generation (CRITICAL FIX):** Fixed incomplete prompt generation in Prompt Assistant
2714
+ - **Root Cause:** Using `client.translate()` for text generation instead of proper chat completion API
2715
+ - **Solution:** Switched to direct LLM API calls (OpenAI/Claude/Gemini) with proper message structure
2716
+ - Domain Prompts now generate complete 3-5 paragraph prompts (was 2 sentences)
2717
+ - Project Prompts now include full termbase tables + intro/closing paragraphs (was partial/truncated)
2718
+ - Added truncation detection and warnings for all providers
2719
+ - Temperature set to 0.4 for creative generation (was 0.3)
2720
+ - Max tokens set to 8000 (with full flexibility, not constrained by translation wrapper)
2721
+ - **Documentation:** Added complete debugging session documentation (docs/2025-11-05.md)
2722
+
2723
+ ### Technical Details
2724
+ - Removed hybrid approach (programmatic termbase extraction + AI generation)
2725
+ - Reverted to pure AI-only approach matching working tkinter version
2726
+ - Direct API calls now match tkinter implementation exactly:
2727
+ - OpenAI: `chat.completions.create()` with system/user messages
2728
+ - Claude: `messages.create()` with proper system parameter
2729
+ - Gemini: `generate_content()` with combined prompt
2730
+ - All providers now check `finish_reason`/`stop_reason` for truncation
2731
+
2732
+ ### Impact
2733
+ - **Generate Prompts** feature now works perfectly, producing complete professional prompts
2734
+ - Critical feature that was broken is now fully functional
2735
+ - Matches quality and completeness of tkinter version
2736
+
2737
+ ---
2738
+
2739
+ ## [1.1.7] - November 4, 2025
2740
+
2741
+ ### Major Changes
2742
+ - **🏠 Home Screen Redesign:** Complete restructuring of the primary workspace
2743
+ - Editor (Grid/List/Document views) on the left with Prompt Manager on the right
2744
+ - Resizable horizontal splitter between editor and prompt manager
2745
+ - Translation results panel moved to bottom of grid in compact form
2746
+ - Real-time prompt tweaking while viewing changes in the grid
2747
+ - Removed separate Editor and Prompt Manager tabs (integrated into Home)
2748
+
2749
+ ### Strategic Refocus
2750
+ - **🎯 Companion Tool Philosophy:** Pivoted from full CAT tool to companion tool
2751
+ - Grid simplified for viewing/reviewing (minor edits only)
2752
+ - Focus on AI-powered features and specialized modules
2753
+ - Documentation updated to reflect companion tool approach
2754
+
2755
+ ### Added
2756
+ - **Custom Styled Widgets:** Beautiful checkboxes and radio buttons with white checkmarks
2757
+ - `CheckmarkCheckBox` class for all checkboxes
2758
+ - `CustomRadioButton` class for LLM Provider selection
2759
+ - Square indicators with green background when checked, white checkmark overlay
2760
+ - **Prompt Manager Enhancements:**
2761
+ - Preview Combined Prompt button shows exact prompt sent to AI
2762
+ - Deactivate buttons for Domain and Project prompts
2763
+ - Prompt Assistant tab moved to first position
2764
+
2765
+ ### Improved
2766
+ - **Grid Simplification:**
2767
+ - Double-click only editing (removed F2 key) - companion tool philosophy
2768
+ - Simplified styling with subtle colors for review-focused interface
2769
+ - Light blue selection highlight instead of bright blue
2770
+ - **Segment Number Styling:**
2771
+ - All segment numbers start with black foreground
2772
+ - Only selected segment number highlighted in orange (like memoQ)
2773
+ - Fixed black numbers issue after navigation
2774
+
2775
+ ### Fixed
2776
+ - **Filter Crash:** Added safety checks for table and filter widgets
2777
+ - **removeWidget Error:** Fixed QSplitter widget removal (use setParent instead)
2778
+ - **Project Loading:** Fixed doc_segment_widgets AttributeError
2779
+ - **Translation Results Panel:** Now properly visible at bottom of grid
2780
+
2781
+ ### Technical
2782
+ - Improved widget reparenting logic for splitter management
2783
+ - Enhanced error handling in filter operations
2784
+ - Better initialization of view state variables
2785
+
2786
+ ---
2787
+
2788
+ ## [1.1.6] - November 3, 2025
2789
+
2790
+ ### Added
2791
+ - **🔍 Detachable Superlookup:** Multi-screen support for Superlookup module
2792
+ - Detach button on Home tab to open Superlookup in separate window
2793
+ - Perfect for multi-monitor workflows - move lookup to second screen while translating
2794
+ - Proper window positioning and multi-monitor detection
2795
+ - Reattach functionality to return to embedded mode
2796
+
2797
+ ### Improved
2798
+ - **🏠 Home Tab Enhancements:**
2799
+ - Integrated About section directly into header with improved visibility
2800
+ - Better text styling with purple gradient for subtitle and version (larger, bold)
2801
+ - Reorganized layout: About in header, Resources & Support next, Projects at bottom
2802
+ - Projects section with distinct background color for visual separation
2803
+ - Superlookup prominently featured on right side of Home tab
2804
+
2805
+ ### Fixed
2806
+ - **Multi-Monitor Support:** Fixed window positioning for detached Superlookup
2807
+ - Correct screen detection using `QApplication.screenAt()` API
2808
+ - Proper window activation and focus handling
2809
+ - Window flags configured for proper minimize/maximize behavior
2810
+ - Improved error handling for window detachment process
2811
+
2812
+ ### Technical
2813
+ - Updated window positioning logic for Qt6 compatibility
2814
+ - Enhanced screen detection for multi-monitor setups
2815
+ - Improved window activation using QTimer for reliable focus management
2816
+
2817
+ ---
2818
+
2819
+ ## [1.1.5] - November 2, 2025
2820
+
2821
+ ### Added
2822
+ - **🏠 New Home Tab:** Brand new first-screen experience
2823
+ - Integrated About section with version info and purple gradient header
2824
+ - Quick access to resources (Website, GitHub, Discussions, Documentation)
2825
+ - Project management panel for recent projects
2826
+ - Embedded Superlookup for instant translations
2827
+ - Clean, modern design with proper visual hierarchy
2828
+
2829
+ - **Major UI Reorganization:** Complete restructuring of main interface
2830
+ - **Tab Order Redesigned:**
2831
+ 1. 🏠 Home (NEW - welcome screen)
2832
+ 2. 💡 Prompt Manager (moved up from #5)
2833
+ 3. 📝 Editor (renamed from "Project Editor")
2834
+ 4. �️ Resources (organized nested tabs)
2835
+ 5. 🧩 Modules (renamed from "Specialised Modules")
2836
+ 6. ⚙️ Settings (moved from Tools menu, includes Log)
2837
+ - **Navigation Menu:** Added "Go to Home" action (🏠 Home menu item)
2838
+ - **Removed Quick Access Sidebar:** Functionality integrated into Home tab
2839
+ - Cleaner, more intuitive workflow with logical feature grouping
2840
+
2841
+ - **Multiple View Modes:** Three different ways to view and edit your translation project
2842
+ - **Grid View (Ctrl+1):** Spreadsheet-like table view - perfect for quick segment-by-segment editing
2843
+ - **List View (Ctrl+2):** Segment list on left, editor panel on right - ideal for focused translation work
2844
+ - **Document View (Ctrl+3):** Natural document flow with clickable segments - great for review and context
2845
+ - View switcher toolbar with quick access buttons
2846
+ - All views share the same translation results pane (TM, LLM, MT, Termbase matches)
2847
+ - All views stay synchronized - changes in one view instantly reflected in others
2848
+ - Keyboard shortcuts (Ctrl+1/2/3) for rapid view switching
2849
+
2850
+ ### Improved
2851
+ - **Translation Results Pane:** Now visible and functional in all three view modes
2852
+ - Properly integrated into Grid, List, and Document views
2853
+ - Dynamic reparenting when switching between views
2854
+ - Consistent assistance panel across all view modes
2855
+
2856
+ ### Technical
2857
+ - **View Management:** Implemented QStackedWidget architecture for seamless view switching
2858
+ - Each view maintains its own splitter layout
2859
+ - Shared assistance widget dynamically moved between views
2860
+ - Clean separation of view-specific logic
2861
+
2862
+ ---
2863
+
2864
+ ## [1.1.4] - November 2, 2025
2865
+
2866
+ ### Added
2867
+ - **Encoding Repair Tool:** Full port from tkinter edition with standalone capability
2868
+ - Detect and fix text encoding corruption (mojibake) in translation files
2869
+ - Scan single files or entire folders recursively
2870
+ - Automatic backup creation (.backup files) before repair
2871
+ - Supports common corruption patterns (en/em dashes, quotes, ellipsis, bullets, etc.)
2872
+ - Clean Qt interface matching other modules (PDF Rescue, TMX Editor style)
2873
+ - **Standalone Mode:** Run independently with `python modules/encoding_repair_Qt.py`
2874
+ - **Embedded Mode:** Integrated as a tab in Supervertaler Qt
2875
+ - Test file available at `docs/tests/test_encoding_corruption.txt` for user testing
2876
+
2877
+ ### Improved
2878
+ - **Prompt Manager:** Fixed System Prompts tab to show list widget (matching Domain Prompts layout)
2879
+ - Added proper list/editor splitter layout for consistency
2880
+ - System Prompts now use shared editor panel with metadata fields hidden
2881
+ - Better visual consistency across all prompt tabs
2882
+
2883
+ ### Fixed
2884
+ - **About Dialog:** Updated with clickable website link (https://supervertaler.com/)
2885
+ - Changed description from "Professional Translation Memory & CAT Tool" to "AI-powered tool for translators & writers"
2886
+ - Improved dialog layout with better formatting
2887
+
2888
+ ### Technical
2889
+ - **Module Architecture:** Created `encoding_repair_Qt.py` as standalone, reusable module
2890
+ - Uses existing `encoding_repair.py` backend (shared with tkinter version)
2891
+ - Proper path handling for standalone execution
2892
+ - Consistent with other Qt modules (PDF Rescue, TMX Editor patterns)
2893
+
2894
+ ---
2895
+
2896
+ ## [1.1.3] - November 2, 2025
2897
+
2898
+ ### Added
2899
+ - **Prompt Manager:** Complete 4-Layer Prompt Architecture system integrated into Qt Edition
2900
+ - **Layer 1 - System Prompts:** Editable infrastructure prompts (CAT tags, formatting rules, language conventions)
2901
+ - **Layer 2 - Domain Prompts:** Domain-specific translation expertise (Legal, Medical, Technical, Financial, etc.)
2902
+ - **Layer 3 - Project Prompts:** Client and project-specific instructions and rules
2903
+ - **Layer 4 - Style Guides:** Language-specific formatting guidelines (numbers, dates, typography)
2904
+ - **Prompt Assistant:** AI-powered prompt refinement using natural language (unique to Supervertaler!)
2905
+ - **Full UI Integration:** Beautiful tab interface with activation system and preview
2906
+ - **Standardized Headers:** Consistent UI/UX matching other modules (TMX Editor, PDF Rescue, AutoFingers)
2907
+ - **Import/Export:** Save, reset, import, and export prompts for sharing and backup
2908
+
2909
+ ### Website
2910
+ - **4-Layer Architecture Documentation:** Comprehensive new section on website explaining the unique approach
2911
+ - **Visual Design:** Color-coded layer cards with detailed explanations
2912
+ - **Navigation:** Added dedicated navigation link for Architecture section
2913
+ - **Hero Section:** Updated badges and feature highlights to showcase new architecture
2914
+ - **Footer Links:** Integrated architecture documentation into site navigation
2915
+
2916
+ ### Technical
2917
+ - **Terminology Standardization:** Renamed all infrastructure/Custom Instructions references to System/Project Prompts
2918
+ - **Code Quality:** Systematic refactoring with consistent naming conventions throughout
2919
+ - **Module Architecture:** `prompt_manager_qt.py` created as standalone, reusable module
2920
+ - **Backward Compatibility:** Maintained compatibility with existing prompt library files
2921
+
2922
+ ---
2923
+
2924
+ ## [1.1.2] - November 1, 2025
2925
+
2926
+ ### Improved
2927
+ - **PDF Rescue:** Simplified to OCR-only mode (removed dual-mode complexity)
2928
+ - Removed text extraction mode and 504 lines of complex layout detection code
2929
+ - Reverted to simple, reliable image-based OCR workflow
2930
+ - Updated UI description to clarify OCR-only purpose
2931
+ - Better results with simpler approach
2932
+
2933
+ ### Fixed
2934
+ - **PDF Rescue Prompt:** Restored original concise prompt that produced better OCR results
2935
+ - Removed verbose "CRITICAL ACCURACY RULES" that degraded performance
2936
+ - Simplified instructions for clearer AI guidance
2937
+ - Improved OCR accuracy with focused prompts
2938
+
2939
+ - **PDF Rescue DOCX Export:** Fixed excessive line breaks in Word documents
2940
+ - Changed paragraph detection from single newlines to double newlines
2941
+ - Single newlines now treated as spaces within paragraphs
2942
+ - Reduced paragraph spacing from 12pt to 6pt for tighter layout
2943
+ - Applied fix to both formatted and non-formatted export modes
2944
+
2945
+ ### Added
2946
+ - **PDF Rescue Branding:** Added clickable hyperlink in DOCX exports
2947
+ - "Supervertaler" text now links to https://supervertaler.com/
2948
+ - Professional branding with working hyperlinks in Word documents
2949
+
2950
+ - **Website Navigation:** Added "Modules" link to header navigation
2951
+ - Appears after "Features" in main menu
2952
+ - Provides direct access to modules documentation
2953
+
2954
+ ### Removed
2955
+ - **Website:** Removed "AI-First Philosophy" section (93 lines)
2956
+ - Streamlined website content
2957
+ - Removed from navigation menu
2958
+ - Content deemed redundant with other sections
2959
+
2960
+ ---
2961
+
2962
+ ## [1.1.1] - November 1, 2025
2963
+
2964
+ ### Improved
2965
+ - **AutoFingers Settings:** Simplified behavior settings by removing redundant "Use Alt+N" checkbox
2966
+ - Now uses single "Confirm segments" checkbox: checked = Ctrl+Enter (confirm), unchecked = Alt+N (skip confirmation)
2967
+ - More intuitive UI with clearer label and comprehensive tooltip
2968
+ - Maintains backward compatibility with existing settings files
2969
+
2970
+ ---
2971
+
2972
+ ## [1.1.0] - November 1, 2025
2973
+
2974
+ ### Added
2975
+ - **TMX Editor:** Professional translation memory editor integrated into Qt Edition
2976
+ - **Database-Backed TMX System:** Handle massive TMX files (1GB+) with SQLite backend
2977
+ - **Dual Loading Modes:** Choose RAM mode (fast for small files) or Database mode (handles any size)
2978
+ - **Smart Mode Selection:** Auto mode intelligently selects best loading method based on file size
2979
+ - **Inline Editing:** Edit source and target text directly in the grid (no popup dialogs)
2980
+ - **Real-time Highlighting:** Search terms highlighted with green background (Heartsome-style)
2981
+ - **Heartsome-Inspired UI:** Three-panel layout with top header (language selectors + filters), center grid, and right attributes panel
2982
+ - **Filtering:** Advanced search with case-insensitive matching and tag filtering
2983
+ - **Pagination:** Efficient 50 TUs per page for smooth performance
2984
+ - **Export/Import:** Save edited TMX files and export to new files
2985
+ - **Progress Indicators:** Clear progress bars with batch operations for fast loading
2986
+ - **Custom Checkboxes:** Consistent green checkmark style matching AutoFingers design
2987
+
2988
+ ### Improved
2989
+ - **Database Integration:** New TMX database tables (`tmx_files`, `tmx_translation_units`, `tmx_segments`) with foreign keys and indexes
2990
+ - **Batch Operations:** Database commits every 100 TUs for 10-50x faster loading performance
2991
+ - **UI Consistency:** Mode selection dialog uses custom CheckmarkCheckBox style throughout
2992
+ - **Progress Feedback:** Immediate progress bar display with clearer blue styling
2993
+
2994
+ ### Technical
2995
+ - **Database Schema:** Added three new tables for TMX storage with proper indexing
2996
+ - **Mode Detection:** Automatic recommendation based on file size thresholds (50MB, 100MB)
2997
+ - **Transaction Management:** Optimized database operations with batch commits
2998
+ - **Memory Efficiency:** Database mode frees RAM immediately after loading
2999
+
3000
+ ---
3001
+
3002
+ ## [1.0.2] - October 31, 2025
3003
+
3004
+ ### Fixed
3005
+ - **Broken Emoji Icons:** Fixed broken emoji characters in tab labels for Termbases (🏷️), Prompt Manager (💡), Encoding Repair (🔧), and Tracked Changes (🔄)
3006
+ - **Checkbox Rendering:** Improved checkmark visibility on small displays with better padding and scaling
3007
+
3008
+ ### Added
3009
+ - **Startup Settings:** Added option to automatically restore last opened project on startup (Tools → Options → General → Startup Settings)
3010
+ - **Font Size Persistence:** Added font size settings panel (Tools → Options → View/Display Settings) to save and restore:
3011
+ - Grid font size (7-72 pt)
3012
+ - Match list font size (7-16 pt)
3013
+ - Compare boxes font size (7-14 pt)
3014
+ - **Auto-Save Font Sizes:** Font sizes are automatically saved when adjusted via zoom controls (Ctrl++/Ctrl+- for grid, Ctrl+Shift++/Ctrl+Shift+- for results pane)
3015
+
3016
+ ### Improved
3017
+ - **Checkbox Styling:** Implemented custom green checkboxes with white checkmarks (Option 1 style) for AutoFingers Behavior section - more intuitive than previous blue/white design
3018
+ - **AutoFingers Layout:** Reorganized Settings section into 2-column grid layout (Languages/Timing on left, Behavior/Save on right) for better organization
3019
+ - **Small Screen Support:** Moved Activity Log to right side of Settings for improved space utilization on laptop displays
3020
+
3021
+ ---
3022
+
3023
+ ## [1.0.1] - October 29, 2025
3024
+
3025
+ ### Fixed
3026
+ - **Terminology Standardization:** Replaced all "glossary" references with "termbase" throughout codebase
3027
+ - **Database Schema:** Fixed NOT NULL constraint errors on `termbase_terms.source_lang` and `termbase_terms.target_lang` (changed to `DEFAULT 'unknown'`)
3028
+ - **Method Naming:** Renamed `create_glossary_results_tab()` → `create_termbase_results_tab()`
3029
+ - **Project Object Access:** Fixed Project attribute access patterns (changed from dict `.get()` to object attribute `.id`)
3030
+ - **Tab Label:** Updated from "Term Bases" → "Termbases" (single word)
3031
+
3032
+ ### Changed
3033
+ - **Database Tables:** Renamed `glossary_terms` → `termbase_terms`, `glossary_id` → `termbase_id`
3034
+ - **SQL Queries:** Updated all queries to use new table/column names
3035
+
3036
+ ### Added
3037
+ - **Sample Data:** Created 3 test termbases (Medical, Legal, Technical) with 48 total terms for testing
3038
+
3039
+ ---
3040
+
3041
+ ## [1.0.0] - October 28, 2025
3042
+
3043
+ ### Added
3044
+ - **Qt Edition Launch:** Initial release of PyQt6-based modern CAT interface
3045
+ - **Translation Memory:** Full-text search with fuzzy matching and relevance scoring
3046
+ - **Termbases:** Multiple termbase support with global and project-specific scopes
3047
+ - **CAT Editor:** Segment-based translation editing interface
3048
+ - **Project Management:** Create, manage, and switch between translation projects
3049
+ - **Auto-fingers:** Smart terminology suggestions based on context
3050
+ - **AI Integration:** OpenAI GPT and Claude support with configurable API keys
3051
+ - **Database Backend:** SQLite persistent storage with 7 core tables
3052
+
3053
+ ---
3054
+
3055
+ ## Versioning Strategy
3056
+
3057
+ - **Major.Minor.Patch** (e.g., 1.0.1)
3058
+ - **Major:** Significant architecture changes or breaking changes
3059
+ - **Minor:** New features or substantial improvements
3060
+ - **Patch:** Bug fixes and minor adjustments
3061
+
3062
+ ---
3063
+
3064
+ ## Future Roadmap
3065
+
3066
+ ### Planned for v1.1.0
3067
+ - Terminology Search (Ctrl+P)
3068
+ - Concordance Search (Ctrl+K)
3069
+ - Create/Edit termbase dialogs
3070
+
3071
+ ### Planned for v1.2.0
3072
+ - TMX Editor with visual highlighting
3073
+ - Advanced filtering options
3074
+ - Custom keyboard shortcuts
3075
+
3076
+ ### Planned for v2.0.0
3077
+ - Full feature parity with Tkinter edition
3078
+ - Deprecation of Tkinter edition
3079
+
3080
+ ---
3081
+
3082
+ **Note:** This changelog focuses exclusively on the Qt Edition. See [CHANGELOG_Tkinter.md](CHANGELOG_Tkinter.md) for Classic edition history.
3083
+
3084
+ **Last Updated:** October 30, 2025
3085
+ - ✅ Fixed Project object access pattern (changed from dict `.get()` to object attributes)
3086
+ - ✅ Fixed database schema issues in private database folder
3087
+
3088
+ ### 📋 Terminology Standardization
3089
+ - Replaced all "glossary" references with "termbase" throughout codebase
3090
+ - Updated database table: `glossary_terms` → `termbase_terms`
3091
+ - Updated column: `glossary_id` → `termbase_id`
3092
+ - Unified UI labels to use "Termbases" (one word, consistent)
3093
+ - **Files Updated**: 5+ Python files, database schema, UI labels
3094
+
3095
+ ### 🎯 Known Issues
3096
+ - Terminology Search (Ctrl+P) - Planned for next release
3097
+ - Concordance Search (Ctrl+K) - Planned for next release
3098
+
3099
+ ---
3100
+
3101
+ ## [v1.0.0] - 2025-10-29 🎯 Phase 5.3 - Advanced Ribbon Features Complete
3102
+
3103
+ ### 🎨 Major UX Enhancements - ALL 5 FEATURES IMPLEMENTED
3104
+
3105
+ **1. ✅ Context-Sensitive Ribbon**
3106
+ - Ribbon automatically switches based on active tab
3107
+ - Superlookup tab → Shows Translation ribbon
3108
+ - Project Editor tab → Shows Home ribbon
3109
+ - Intelligent tab selection for better workflow
3110
+
3111
+ **2. ✅ Quick Access Toolbar (QAT)**
3112
+ - Mini toolbar above ribbon with most-used commands
3113
+ - **Actions**: New 📄, Open 📂, Save 💾, Superlookup 🔍, Translate 🤖
3114
+ - **Minimize Ribbon toggle** ⌃ - Collapse ribbon to tabs-only
3115
+ - Always visible for quick access to favorites
3116
+ - Icon-only buttons for compact display
3117
+
3118
+ **3. ✅ Quick Access Sidebar** (NEW)
3119
+ - memoQ-style left navigation panel
3120
+ - **Collapsible sections**:
3121
+ - **Quick Actions**: New, Open, Save
3122
+ - **Translation Tools**: Superlookup, AutoFingers, TM Manager
3123
+ - **Recent Files**: Double-click to open
3124
+ - Resizable via splitter
3125
+ - Toggle on/off via View menu
3126
+
3127
+ **4. ✅ Ribbon Minimization**
3128
+ - Minimize ribbon to tabs-only mode (saves vertical space)
3129
+ - Click tabs to show ribbon temporarily
3130
+ - Toggle via ⌃ button in QAT
3131
+
3132
+ **5. ✅ Ribbon Customization Foundation**
3133
+ - Signal-based architecture for easy customization
3134
+ - Action mapping system for flexibility
3135
+ - Extensible group/button structure
3136
+
3137
+ ### 📦 New Modules
3138
+ - `modules/quick_access_sidebar.py` - Reusable sidebar components
3139
+ - `modules/project_home_panel.py` - Project-specific home panel
3140
+
3141
+ ### 🔧 Technical Improvements
3142
+ - Renamed splitters for clarity (sidebar_splitter, editor_splitter)
3143
+ - Connected sidebar actions to ribbon action handler
3144
+ - Automatic recent files update
3145
+ - Context-sensitive ribbon switching
3146
+ - Professional multi-panel layout
3147
+
3148
+ ---
3149
+
3150
+ ## [v1.0.0 - Phase 5.2] - 2025-10-29 🎨 Ribbon Interface - Modern CAT UI
3151
+
3152
+ ### ✨ Major Features
3153
+ - ✅ **Modern Ribbon Interface** - Similar to memoQ, Trados Studio, Microsoft Office
3154
+ - ✅ **Four Ribbon Tabs**:
3155
+ - **Home**: New, Open, Save, Copy, Paste, Find, Replace, Go To
3156
+ - **Translation**: Translate, Batch Translate, TM Manager, Superlookup
3157
+ - **View**: Zoom In/Out, Auto-Resize Rows, Themes
3158
+ - **Tools**: AutoFingers, Options
3159
+ - ✅ **Grouped Buttons** - Related functions organized into visual groups
3160
+ - ✅ **Emoji Icons** - Clear, colorful visual indicators
3161
+ - ✅ **Hover Effects** - Modern button styling with transparency and borders
3162
+ - ✅ **Full Integration** - All actions connected to existing functionality
3163
+
3164
+ ### 🎯 Architecture
3165
+ - Created `modules/ribbon_widget.py` - Reusable ribbon components
3166
+ - Tab-based ribbon system with dynamic button groups
3167
+ - Action signals connected to main window handlers
3168
+ - Professional styling matching modern CAT tools
3169
+
3170
+ ---
3171
+
3172
+ ## [v1.0.0 - Phase 5.1] - 2025-10-28 📊 Translation Results Panel Complete
3173
+
3174
+ ### ✨ Features Implemented
3175
+ - ✅ **Compact Stacked Layout** - Collapsible match sections (NT, MT, TM, Termbases)
3176
+ - ✅ **Relevance Display** - Shows match percentages and confidence levels
3177
+ - ✅ **Metadata Display** - Domain, context, date information
3178
+ - ✅ **Drag/Drop Support** - Insert matches into translation field
3179
+ - ✅ **Compare Boxes** - Side-by-side comparison (Source | TM Source | TM Target)
3180
+ - ✅ **Diff Highlighting** - Red/green styling for visual comparison
3181
+ - ✅ **Segment Info** - Metadata and notes display
3182
+ - ✅ **Integration** - Fully integrated into Project Editor tab
3183
+
3184
+ ### 📦 New Module
3185
+ - `modules/translation_results_panel.py` - Compact, production-ready results display
3186
+
3187
+ ### 🎯 Layout
3188
+ - Stacked match sections with collapsible headers
3189
+ - Compact match items for efficient use of space
3190
+ - Relevance percentage display
3191
+ - Metadata columns (domain, context, source)
3192
+ - Notes and segment information panel
3193
+
3194
+ ---
3195
+
3196
+ ## [v1.0.0 - Phase 5.0] - 2025-10-27 🚀 Qt Edition Launch
3197
+
3198
+ ### ✨ Core Features
3199
+ - ✅ **PyQt6 Framework** - Modern, cross-platform UI
3200
+ - ✅ **Dual-Tab Interface**:
3201
+ - Project Editor - Main translation workspace
3202
+ - Superlookup - Dictionary/search tool
3203
+ - ✅ **Project Management** - Load/save translation projects
3204
+ - ✅ **Translation Memory** - Full TMX support
3205
+ - ✅ **Segment Grid** - Professional translation grid view
3206
+ - ✅ **AI Integration** - Multiple LLM provider support (OpenAI, Anthropic, etc.)
3207
+ - ✅ **Keyboard Shortcuts** - Comprehensive hotkey system
3208
+ - ✅ **AutoHotkey Integration** - System-wide lookup support
3209
+
3210
+ ### 🎯 Application Structure
3211
+ - Professional CAT tool architecture
3212
+ - Modular design for extensibility
3213
+ - Clean separation of concerns
3214
+ - Database-backed translation memory
3215
+ - Responsive UI with drag/drop support
3216
+
3217
+ ---
3218
+
3219
+ ## Release History - Previous Phases
3220
+
3221
+ For Qt development history before Phase 5.0, see `docs/RELEASE_Qt_v1.0.0_Phase5.md`
3222
+
3223
+ ---
3224
+
3225
+ ## Version Numbering
3226
+
3227
+ Supervertaler Qt uses semantic versioning:
3228
+ - **MAJOR** - Major feature additions or breaking changes
3229
+ - **MINOR** - New features, backward compatible
3230
+ - **PATCH** - Bug fixes and improvements
3231
+ - **PHASE** - Development phase tracking (Phase 5+)
3232
+
3233
+ **Current**: v1.0.2 (Phase 5.4)
3234
+