Skip to content

Commit e000e08

Browse files
refactor: split tray modules and protect words
Release 0.1.212. Move GNOME tray helpers into focused modules, move lexicon and test-input data out of runtime code, and document the current architecture. Fix protected_words.txt so user-protected ASCII tokens return before LEM/LLM scoring. Add a runtime regression for the protected-word path. Install/dev-reload now copy all extension JS modules and keep the old GJS cache-loader path compatible.
1 parent 50cb800 commit e000e08

40 files changed

Lines changed: 1549 additions & 1333 deletions

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@ jobs:
5353
- name: GNOME extension syntax
5454
run: |
5555
python3 -m json.tool extension/lay@radislabus-star.github.io/metadata.json >/dev/null
56-
node --check extension/lay@radislabus-star.github.io/lay-impl.js
57-
node --check extension/lay@radislabus-star.github.io/extension.js
56+
for js in extension/lay@radislabus-star.github.io/*.js; do
57+
node --check "$js"
58+
done
5859
5960
- name: KDE tray and shell scripts syntax
6061
run: |

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "lay"
3-
version = "0.1.211"
3+
version = "0.1.212"
44
edition = "2021"
55
description = "Alpha Double Shift RU/EN layout rescue for Linux desktops"
66
license = "MIT"

HOW_IT_WORKS.md

Lines changed: 295 additions & 389 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,19 @@ curl -fsSL https://raw.githubusercontent.com/radislabus-star/lay-public/main/scr
4444
По умолчанию double Shift исправляет **1 последнее слово**. Области `2 слова`
4545
и `3 слова` можно включить отдельно в трее.
4646

47+
## Что нового в 0.1.212
48+
49+
- GNOME tray разрезан на отдельные модули: DBus bridge, меню последних
50+
исправлений и общие helpers больше не лежат одним большим файлом;
51+
- установщик, dev-reload и CI теперь копируют и проверяют все JS-модули
52+
расширения, а не только старый монолит;
53+
- таблицы русской морфологии вынесены в `data/lexicon`, чтобы runtime-код не
54+
превращался в склад списков;
55+
- встроенные сценарии `lay-test-input` вынесены в `data/test_input`;
56+
- исправлен баг `protected_words.txt`: пользовательские защищённые ASCII-слова
57+
больше не перебиваются LEM/LLM-скорингом, например `cd` не должен
58+
превращаться в `св` после пробела.
59+
4760
## Что нового в 0.1.210
4861

4962
- KDE backend кэширует `qdbus` и список раскладок вместо повторного запроса на

data/lexicon/ru_keyboard_rows.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
йцукенгшщзхъ
2+
фывапролджэ
3+
ячсмитьбю
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
ыми
2+
ими
3+
ого
4+
его
5+
ому
6+
ему
7+
ом
8+
ем
9+
ой
10+
ей
11+
ая
12+
яя
13+
ое
14+
ее
15+
ые
16+
ие
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ый
2+
ий
3+
ой
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
тьс
2+
тс
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
ками
2+
ках
3+
кой
4+
ки
5+
ке
6+
ку

0 commit comments

Comments
 (0)