diff --git a/NEWS.md b/NEWS.md index 60c2e86cd..e2a456056 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,110 @@ +# v4.0.0.dev9 (2021-04-22) + +## Features + +### Core + +- A new `SET_CONFIG` command can be used to change the configuration with a stroke, e.g.: + ``` json + "O*EP": "{PLOVER:SET_CONFIG:'translation_frame_opacity':100}", + "TR*PB": "{PLOVER:SET_CONFIG:'translation_frame_opacity':0}", + ``` + to change the opacity of the "Add Translation" dialog on the fly. (#989) +- Speed up loading dictionaries. (#1022) +- Be more restrictive with macro names: only accept valid identifier, so for example `==` is not handled like a macro anymore. (#1025) +- Ignore case when processing builtin commands / metas. (#1069) +- Add user friendly names for built-in metas, e.g.: `{:retro_case:cap_first_word}`, `{:retro_currency:$c}`, `{:attach:attach^}`, etc... (#1069) +- Improve orthography rules. (#1092, #1212) +- The configuration is now automatically saved on change, rather than on exit. (#1123) +- Add prefix strokes (syntax `/STROKE`) that will only translate if they are at the beginning of a word. Word endings can be specified with `{:word_end}` or `{$}`. (#1157) +- Add support for conditional formatting (based on the text following a translation): `{=REGEXP/TRANSLATION_IF_FOLLOWING_TEXT_MATCH/TRANSLATION_IF_NOT}` or `{:if_next_matches:REGEXP/TRANSLATION_IF_FOLLOWING_TEXT_MATCH/TRANSLATION_IF_NOT}`. (#1158) + +### User Interface + +- Add menu entry for opening the configuration directory ("File" => "Open config folder"). (#981) +- Automatically focus the input field and pre-select the previous input when the lookup window is activated. (#1009) +- Improve the configuration dialog for serial machines: automatically scan available ports and default to the first one. (#1036) +- The "Add translation" stroke lookup now returns entries for all enabled dictionaries and is debounced to improve performance. (#1084) +- Added translation into Spanish. (#1165) +- A new command, `{PLOVER:SUGGESTIONS}`, is available to open the suggestions window with a steno stroke. (#1184) +- Add support for saving dictionaries: + - save a copy of each selected dictionary + - merge the selected dictionaries into a new one + - both operations support converting to another format (#1244) +- Added translation into Dutch. (#1264) +- Added Italian translation. (#1268) + +### Linux + +- The distribution Python is now built with optimization. (#1068) +- Expand the list of supported key names in key combos to include non-US specific keys (like `ISO_Level3_Shift`). (#1082) +- The default configuration directory on Linux is now `~/.config/plover` (`~/.local/share/plover` is still supported for backward compatibility). (#1123) + +### macOS + +- The minimum version supported by the macOS bundle is now 10.13 (High Sierra). (#1156) + +### Windows + +- The distribution is now 64bits. (#1023) + +## Bugfixes + +### Core + +- Fix retrospective insert space macro when the previous translation involved suffix keys. (#995) +- Fix updating a dictionary mapping: ensure reverse lookups data stays consistent. (#1022) +- Fix keymap validation: properly fallback to default keymap when invalid. (#1065) +- Fix lookups by translation: do not ignore lower priority dictionaries when a match is found in a higher priority one. (#1066) +- Fix wordlist support for system plugins: try loading from the system dictionaries root (and not Plover assets directory). (#1116) +- Configuration save operations are now atomic. (#1123) +- Fix forced lowercasing of all engine command arguments. (#1139) +- Fix implicit hyphen handling with numbers only strokes on some theories (e.g. Melani). (#1159) +- Fix unbounded memory use in the lookup functions used by the Suggestions window. (#1188) + +### Dictionaries + +- Fix a number of invalid entries in the main dictionary. (#1038) +- Tweak orthographic rules so "reduce/{^ability}" result in "reducibility" instead of "reducability". (#1096) + +### User Interface + +- Fix a possible crash on close when opening a read-only dictionary in the editor. (#897) +- Fix possible crash when changing machine parameters in the configuration dialog. (#1041) +- Fix internationalization of machine types in the configuration dialog. (#1061) +- Fix tools shortcuts. (#1062) +- Fix crashes due to GUI exceptions reaching the event loop. (#1135) +- Fix an exception caused by an incorrect assertion that would prevent enabling and disabling extension plugins if they weren't on the first row. (#1171) +- Fix changes to the list of enabled extension plugins not being saved to the configuration file. (#1230) +- Fix missing translations. (#1248) + +### Linux + +- Fix output capitalization issue. (#1153) +- Fix a race condition that may freeze Plover while toggling with keyboard input machine. (#1163) + +### macOS + +- Fix an issue where permissions had to be granted to "env" on macOS Catalina 10.15. (#1152) +- Mac notifications no longer have "Plover" as their title. (#1271) + +### Windows + +- Fix Unicode characters output. (#991) +- Fix installer's icon. (#1027) + +## API + +### Breaking Changes + +- `StenoDictionaryCollection.casereverse_lookup` now returns a `set` (instead of a `list`). (#1066) +- The API for providing i18n support as been changed: see `doc/i18n.md` for more information. (#1258) + +### New + +- `plover_build_utils.setup` now provides a new `babel_options` helper for configuring Babel for i18n support. (#1258) + + # v4.0.0.dev8+66.g685bd33 (2018-07-02) ## Features diff --git a/news.d/api/1066.break.md b/news.d/api/1066.break.md deleted file mode 100644 index 38bc4d820..000000000 --- a/news.d/api/1066.break.md +++ /dev/null @@ -1 +0,0 @@ -`StenoDictionaryCollection.casereverse_lookup` now returns a `set` (instead of a `list`). diff --git a/news.d/api/1258.break.md b/news.d/api/1258.break.md deleted file mode 100644 index 1a698ae13..000000000 --- a/news.d/api/1258.break.md +++ /dev/null @@ -1 +0,0 @@ -The API for providing i18n support as been changed: see `doc/i18n.md` for more information. diff --git a/news.d/api/1258.new.md b/news.d/api/1258.new.md deleted file mode 100644 index ac18bfbe5..000000000 --- a/news.d/api/1258.new.md +++ /dev/null @@ -1 +0,0 @@ -`plover_build_utils.setup` now provides a new `babel_options` helper for configuring Babel for i18n support. diff --git a/news.d/bugfix/1022.core.md b/news.d/bugfix/1022.core.md deleted file mode 100644 index cbd0daad5..000000000 --- a/news.d/bugfix/1022.core.md +++ /dev/null @@ -1 +0,0 @@ -Fix updating a dictionary mapping: ensure reverse lookups data stays consistent. diff --git a/news.d/bugfix/1027.windows.md b/news.d/bugfix/1027.windows.md deleted file mode 100644 index bb386e140..000000000 --- a/news.d/bugfix/1027.windows.md +++ /dev/null @@ -1 +0,0 @@ -Fix installer's icon. diff --git a/news.d/bugfix/1038.dict.md b/news.d/bugfix/1038.dict.md deleted file mode 100644 index 4a67058eb..000000000 --- a/news.d/bugfix/1038.dict.md +++ /dev/null @@ -1 +0,0 @@ -Fix a number of invalid entries in the main dictionary. diff --git a/news.d/bugfix/1041.ui.md b/news.d/bugfix/1041.ui.md deleted file mode 100644 index a8ff88aed..000000000 --- a/news.d/bugfix/1041.ui.md +++ /dev/null @@ -1 +0,0 @@ -Fix possible crash when changing machine parameters in the configuration dialog. diff --git a/news.d/bugfix/1061.ui.md b/news.d/bugfix/1061.ui.md deleted file mode 100644 index d1ba2a506..000000000 --- a/news.d/bugfix/1061.ui.md +++ /dev/null @@ -1 +0,0 @@ -Fix internationalization of machine types in the configuration dialog. diff --git a/news.d/bugfix/1062.ui.md b/news.d/bugfix/1062.ui.md deleted file mode 100644 index 413068a00..000000000 --- a/news.d/bugfix/1062.ui.md +++ /dev/null @@ -1 +0,0 @@ -Fix tools shortcuts. diff --git a/news.d/bugfix/1065.core.md b/news.d/bugfix/1065.core.md deleted file mode 100644 index c3a9d427e..000000000 --- a/news.d/bugfix/1065.core.md +++ /dev/null @@ -1 +0,0 @@ -Fix keymap validation: properly fallback to default keymap when invalid. diff --git a/news.d/bugfix/1066.core.md b/news.d/bugfix/1066.core.md deleted file mode 100644 index 02df63483..000000000 --- a/news.d/bugfix/1066.core.md +++ /dev/null @@ -1 +0,0 @@ -Fix lookups by translation: do not ignore lower priority dictionaries when a match is found in a higher priority one. diff --git a/news.d/bugfix/1096.dict.md b/news.d/bugfix/1096.dict.md deleted file mode 100644 index 044895730..000000000 --- a/news.d/bugfix/1096.dict.md +++ /dev/null @@ -1 +0,0 @@ -Tweak orthographic rules so "reduce/{^ability}" result in "reducibility" instead of "reducability". diff --git a/news.d/bugfix/1116.core.md b/news.d/bugfix/1116.core.md deleted file mode 100644 index c7016a2d2..000000000 --- a/news.d/bugfix/1116.core.md +++ /dev/null @@ -1 +0,0 @@ -Fix wordlist support for system plugins: try loading from the system dictionaries root (and not Plover assets directory). diff --git a/news.d/bugfix/1123.core.md b/news.d/bugfix/1123.core.md deleted file mode 100644 index 0e7c14af1..000000000 --- a/news.d/bugfix/1123.core.md +++ /dev/null @@ -1 +0,0 @@ -Configuration save operations are now atomic. diff --git a/news.d/bugfix/1135.ui.md b/news.d/bugfix/1135.ui.md deleted file mode 100644 index 0fe3927ab..000000000 --- a/news.d/bugfix/1135.ui.md +++ /dev/null @@ -1 +0,0 @@ -Fix crashes due to GUI exceptions reaching the event loop. diff --git a/news.d/bugfix/1139.core.md b/news.d/bugfix/1139.core.md deleted file mode 100644 index 0fe7136c4..000000000 --- a/news.d/bugfix/1139.core.md +++ /dev/null @@ -1 +0,0 @@ -Fix forced lowercasing of all engine command arguments. diff --git a/news.d/bugfix/1152.osx.md b/news.d/bugfix/1152.osx.md deleted file mode 100644 index 21c4f21b1..000000000 --- a/news.d/bugfix/1152.osx.md +++ /dev/null @@ -1 +0,0 @@ -Fix an issue where permissions had to be granted to "env" on macOS Catalina 10.15. diff --git a/news.d/bugfix/1153.linux.rst b/news.d/bugfix/1153.linux.rst deleted file mode 100644 index 3063e783a..000000000 --- a/news.d/bugfix/1153.linux.rst +++ /dev/null @@ -1 +0,0 @@ -Fix output capitalization issue. diff --git a/news.d/bugfix/1159.core.md b/news.d/bugfix/1159.core.md deleted file mode 100644 index 6ee179995..000000000 --- a/news.d/bugfix/1159.core.md +++ /dev/null @@ -1 +0,0 @@ -Fix implicit hyphen handling with numbers only strokes on some theories (e.g. Melani). diff --git a/news.d/bugfix/1163.linux.rst b/news.d/bugfix/1163.linux.rst deleted file mode 100644 index ac47b1801..000000000 --- a/news.d/bugfix/1163.linux.rst +++ /dev/null @@ -1 +0,0 @@ -Fix a race condition that may freeze Plover while toggling with keyboard input machine. diff --git a/news.d/bugfix/1171.ui.md b/news.d/bugfix/1171.ui.md deleted file mode 100644 index 83bdab6c8..000000000 --- a/news.d/bugfix/1171.ui.md +++ /dev/null @@ -1 +0,0 @@ -Fix an exception caused by an incorrect assertion that would prevent enabling and disabling extension plugins if they weren't on the first row. diff --git a/news.d/bugfix/1188.core.md b/news.d/bugfix/1188.core.md deleted file mode 100644 index 0b3080f61..000000000 --- a/news.d/bugfix/1188.core.md +++ /dev/null @@ -1 +0,0 @@ -Fix unbounded memory use in the lookup functions used by the Suggestions window. diff --git a/news.d/bugfix/1230.ui.md b/news.d/bugfix/1230.ui.md deleted file mode 100644 index 2c2a27f03..000000000 --- a/news.d/bugfix/1230.ui.md +++ /dev/null @@ -1 +0,0 @@ -Fix changes to the list of enabled extension plugins not being saved to the configuration file. diff --git a/news.d/bugfix/1248.ui.md b/news.d/bugfix/1248.ui.md deleted file mode 100644 index ae5cfb9e5..000000000 --- a/news.d/bugfix/1248.ui.md +++ /dev/null @@ -1 +0,0 @@ -Fix missing translations. diff --git a/news.d/bugfix/1271.osx.md b/news.d/bugfix/1271.osx.md deleted file mode 100644 index d213102be..000000000 --- a/news.d/bugfix/1271.osx.md +++ /dev/null @@ -1 +0,0 @@ -Mac notifications no longer have "Plover" as their title. diff --git a/news.d/bugfix/897.ui.md b/news.d/bugfix/897.ui.md deleted file mode 100644 index bef3b874d..000000000 --- a/news.d/bugfix/897.ui.md +++ /dev/null @@ -1 +0,0 @@ -Fix a possible crash on close when opening a read-only dictionary in the editor. diff --git a/news.d/bugfix/991.windows.md b/news.d/bugfix/991.windows.md deleted file mode 100644 index 5aa6255fb..000000000 --- a/news.d/bugfix/991.windows.md +++ /dev/null @@ -1 +0,0 @@ -Fix Unicode characters output. diff --git a/news.d/bugfix/995.core.md b/news.d/bugfix/995.core.md deleted file mode 100644 index 2663fc68c..000000000 --- a/news.d/bugfix/995.core.md +++ /dev/null @@ -1 +0,0 @@ -Fix retrospective insert space macro when the previous translation involved suffix keys. diff --git a/news.d/feature/1009.ui.md b/news.d/feature/1009.ui.md deleted file mode 100644 index 61c05d9ab..000000000 --- a/news.d/feature/1009.ui.md +++ /dev/null @@ -1 +0,0 @@ -Automatically focus the input field and pre-select the previous input when the lookup window is activated. diff --git a/news.d/feature/1022.core.md b/news.d/feature/1022.core.md deleted file mode 100644 index 1e6b51469..000000000 --- a/news.d/feature/1022.core.md +++ /dev/null @@ -1 +0,0 @@ -Speed up loading dictionaries. diff --git a/news.d/feature/1023.windows.md b/news.d/feature/1023.windows.md deleted file mode 100644 index 9b3eb3d55..000000000 --- a/news.d/feature/1023.windows.md +++ /dev/null @@ -1 +0,0 @@ -The distribution is now 64bits. diff --git a/news.d/feature/1025.core.md b/news.d/feature/1025.core.md deleted file mode 100644 index a384a4fa8..000000000 --- a/news.d/feature/1025.core.md +++ /dev/null @@ -1 +0,0 @@ -Be more restrictive with macro names: only accept valid identifier, so for example `==` is not handled like a macro anymore. diff --git a/news.d/feature/1036.ui.md b/news.d/feature/1036.ui.md deleted file mode 100644 index c66f09935..000000000 --- a/news.d/feature/1036.ui.md +++ /dev/null @@ -1 +0,0 @@ -Improve the configuration dialog for serial machines: automatically scan available ports and default to the first one. diff --git a/news.d/feature/1068.linux.md b/news.d/feature/1068.linux.md deleted file mode 100644 index a89600ee9..000000000 --- a/news.d/feature/1068.linux.md +++ /dev/null @@ -1 +0,0 @@ -The distribution Python is now built with optimization. diff --git a/news.d/feature/1069.core.2.md b/news.d/feature/1069.core.2.md deleted file mode 100644 index 0bf97a4fd..000000000 --- a/news.d/feature/1069.core.2.md +++ /dev/null @@ -1 +0,0 @@ -Add user friendly names for built-in metas, e.g.: `{:retro_case:cap_first_word}`, `{:retro_currency:$c}`, `{:attach:attach^}`, etc... diff --git a/news.d/feature/1069.core.md b/news.d/feature/1069.core.md deleted file mode 100644 index 55c50e26a..000000000 --- a/news.d/feature/1069.core.md +++ /dev/null @@ -1 +0,0 @@ -Ignore case when processing builtin commands / metas. diff --git a/news.d/feature/1082.linux.md b/news.d/feature/1082.linux.md deleted file mode 100644 index bc50de7d1..000000000 --- a/news.d/feature/1082.linux.md +++ /dev/null @@ -1 +0,0 @@ -Expand the list of supported key names in key combos to include non-US specific keys (like `ISO_Level3_Shift`). diff --git a/news.d/feature/1084.ui.md b/news.d/feature/1084.ui.md deleted file mode 100644 index f4546c022..000000000 --- a/news.d/feature/1084.ui.md +++ /dev/null @@ -1 +0,0 @@ -The "Add translation" stroke lookup now returns entries for all enabled dictionaries and is debounced to improve performance. diff --git a/news.d/feature/1092.core.md b/news.d/feature/1092.core.md deleted file mode 100644 index 3bf0edb17..000000000 --- a/news.d/feature/1092.core.md +++ /dev/null @@ -1 +0,0 @@ -Improve orthography rules. diff --git a/news.d/feature/1123.core.md b/news.d/feature/1123.core.md deleted file mode 100644 index 09df0da56..000000000 --- a/news.d/feature/1123.core.md +++ /dev/null @@ -1 +0,0 @@ -The configuration is now automatically saved on change, rather than on exit. diff --git a/news.d/feature/1123.linux.md b/news.d/feature/1123.linux.md deleted file mode 100644 index e19214f46..000000000 --- a/news.d/feature/1123.linux.md +++ /dev/null @@ -1 +0,0 @@ -The default configuration directory on Linux is now `~/.config/plover` (`~/.local/share/plover` is still supported for backward compatibility). diff --git a/news.d/feature/1156.osx.md b/news.d/feature/1156.osx.md deleted file mode 100644 index 23d265fe9..000000000 --- a/news.d/feature/1156.osx.md +++ /dev/null @@ -1 +0,0 @@ -The minimum version supported by the macOS bundle is now 10.13 (High Sierra). diff --git a/news.d/feature/1157.core.md b/news.d/feature/1157.core.md deleted file mode 100644 index 5e3d8f4a8..000000000 --- a/news.d/feature/1157.core.md +++ /dev/null @@ -1 +0,0 @@ -Add prefix strokes (syntax `/STROKE`) that will only translate if they are at the beginning of a word. Word endings can be specified with `{:word_end}` or `{$}`. diff --git a/news.d/feature/1158.core.md b/news.d/feature/1158.core.md deleted file mode 100644 index 712e26747..000000000 --- a/news.d/feature/1158.core.md +++ /dev/null @@ -1 +0,0 @@ -Add support for conditional formatting (based on the text following a translation): `{=REGEXP/TRANSLATION_IF_FOLLOWING_TEXT_MATCH/TRANSLATION_IF_NOT}` or `{:if_next_matches:REGEXP/TRANSLATION_IF_FOLLOWING_TEXT_MATCH/TRANSLATION_IF_NOT}`. diff --git a/news.d/feature/1165.ui.md b/news.d/feature/1165.ui.md deleted file mode 100644 index 86868bd91..000000000 --- a/news.d/feature/1165.ui.md +++ /dev/null @@ -1 +0,0 @@ -Added translation into Spanish. diff --git a/news.d/feature/1184.ui.md b/news.d/feature/1184.ui.md deleted file mode 100644 index 44052bbc8..000000000 --- a/news.d/feature/1184.ui.md +++ /dev/null @@ -1 +0,0 @@ -A new command, `{PLOVER:SUGGESTIONS}`, is available to open the suggestions window with a steno stroke. diff --git a/news.d/feature/1212.core.md b/news.d/feature/1212.core.md deleted file mode 100644 index 3bf0edb17..000000000 --- a/news.d/feature/1212.core.md +++ /dev/null @@ -1 +0,0 @@ -Improve orthography rules. diff --git a/news.d/feature/1244.ui.md b/news.d/feature/1244.ui.md deleted file mode 100644 index 3526bd44c..000000000 --- a/news.d/feature/1244.ui.md +++ /dev/null @@ -1,4 +0,0 @@ -Add support for saving dictionaries: -- save a copy of each selected dictionary -- merge the selected dictionaries into a new one -- both operations support converting to another format diff --git a/news.d/feature/1264.ui.md b/news.d/feature/1264.ui.md deleted file mode 100644 index 45fd5b43f..000000000 --- a/news.d/feature/1264.ui.md +++ /dev/null @@ -1 +0,0 @@ -Added translation into Dutch. diff --git a/news.d/feature/1268.ui.md b/news.d/feature/1268.ui.md deleted file mode 100644 index 1279fd30a..000000000 --- a/news.d/feature/1268.ui.md +++ /dev/null @@ -1 +0,0 @@ -Added Italian translation. diff --git a/news.d/feature/981.ui.md b/news.d/feature/981.ui.md deleted file mode 100644 index 08da77230..000000000 --- a/news.d/feature/981.ui.md +++ /dev/null @@ -1 +0,0 @@ -Add menu entry for opening the configuration directory ("File" => "Open config folder"). diff --git a/news.d/feature/989.core.md b/news.d/feature/989.core.md deleted file mode 100644 index 59aa5c045..000000000 --- a/news.d/feature/989.core.md +++ /dev/null @@ -1,6 +0,0 @@ -A new `SET_CONFIG` command can be used to change the configuration with a stroke, e.g.: -``` json -"O*EP": "{PLOVER:SET_CONFIG:'translation_frame_opacity':100}", -"TR*PB": "{PLOVER:SET_CONFIG:'translation_frame_opacity':0}", -``` -to change the opacity of the "Add Translation" dialog on the fly. diff --git a/plover/__init__.py b/plover/__init__.py index 28b7dfae5..0a1760633 100644 --- a/plover/__init__.py +++ b/plover/__init__.py @@ -12,7 +12,7 @@ # want to translate anyway. _ = lambda s: s -__version__ = '4.0.0.dev8' +__version__ = '4.0.0.dev9' __copyright__ = '(C) Open Steno Project' __url__ = 'http://www.openstenoproject.org/' __download_url__ = 'http://www.openstenoproject.org/plover'