hex/src/dictation/vocabulary
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Dax 80b84f7b66
vocabulary: import and export csv files (labs) (#2117)
* vocabulary: import and export CSV files behind a Lab

The Vocabulary sheet gains Import… and Export… under Labs › Vocabulary
files (off by default, every OS). Import merges a CSV or TXT file's terms
(Teams' custom dictionary columns) into the list through the sheet's draft
path and says what changed; Export writes the header and one row per entry
through a native save dialog, atomically.

The parser, merge, and writer live in dictation::vocabulary::csv with no new
dependency, and desktop::file_dialog gains Rune's save target.

* vocabulary: refuse bad imports and count merges exactly

An unclosed quoted field, a path that isn't a regular file, an oversized
file, or bytes that aren't UTF-8 now refuse the import with a translated
reason, and a failed settings save says so instead of reporting success.
A term this file added is never also counted as updated, a term counts once,
and dropped spellings count as skipped. Export only adds .csv when that name
is free, and one switch now hides the buttons, the status line, and the
dialog answers together.

* vocabulary: clarify csv export naming and fix a French string

The export docs now say .csv is added only when the name has no extension
and the .csv name is free, and the French unclosed-quote reason uses the
masculine noun. The state-word bit says no gate reads it.
2026-11-20 19:37:20 -05:00
..
csv.rs vocabulary: import and export csv files (labs) (#2117) 2026-11-20 19:37:20 -05:00