Use shared reader core v0.4.0
Use common date/time formatting, locale voice selection, tone synthesis, phonetic spelling, and hardware command encoding. DECtalk now follows the common Fenrir mapping and command filtering; legacy saved settings are converted at the boundary. Validated affected race-enabled tests and standalone builds with GOWORK=off against the published module. Common PCM hashes, serial cancellation, no-CGO datetime, and speech regression checks passed. Physical hardware, audible synthesis, keyboard, and braille remain separate live checks.
This commit is contained in:
1 parent
8ab9d3395a
commit
d95dc2d00d
18 files changed
+121
-452
No files matched your search
@@ -0,0 +1,61 @@
|
||||
# Shared reader core acceptance
|
||||
|
||||
Both readers pin `screenreader-common` v0.4.0 for date/time formatting,
|
||||
language-based voice selection, progress/tone synthesis, phonetic words, and
|
||||
hardware protocol encoding. Standalone builds use that published module; the
|
||||
sibling workspace remains available for local development. Verify standalone
|
||||
builds with `GOWORK=off`. No machine-local module replacements are committed.
|
||||
|
||||
## Cthulhu
|
||||
|
||||
1. Quit the running reader with Cthulhu+Q.
|
||||
2. Press Ctrl+Escape to enter i3 personal mode, then press Shift+G. These are
|
||||
separate key presses. Shift+G rebuilds Cthulhu and its braille helper and opens
|
||||
the test terminal using `~/devel/cthulhu-go.sh`.
|
||||
3. Use the configured date and time commands. Their speech must follow the saved
|
||||
formats and locale. In preferences, check that date/time examples and selected
|
||||
formats agree. Tab, Shift+Tab, Apply, and focus announcements must still work;
|
||||
braille should show the currently focused preference/control.
|
||||
4. Review the text `WXwx` using phonetic word or line spelling. Expect `whiskey,
|
||||
x ray, whiskey, x ray`; uppercase letters must retain the configured uppercase
|
||||
voice behavior. Character review and ordinary text reading must still work.
|
||||
5. Open speech preferences and inspect language-filtered voices. Locale defaults
|
||||
prefer the exact dialect, then the base language; explicit language choices
|
||||
remain exact. Apply a voice and confirm fresh speech uses it. Braille must keep
|
||||
following the focused control, and keyboard input must remain responsive.
|
||||
6. Trigger a known progress indicator. Its tones should sound unchanged and retain
|
||||
interruption/volume behavior. Check an indentation or capitalization cue if
|
||||
enabled. These audio changes should not move focus or change braille output.
|
||||
7. If a supported serial synthesizer is connected, use the usual hardware speech
|
||||
configuration and restart with the same sequence above. Check text, minimum/
|
||||
midpoint/maximum rate and pitch, volume, and the silence key. DECtalk now uses
|
||||
the same commands as Fenrir, so its midpoint and volume may audibly differ from
|
||||
the old Cthulhu mapping. Text resembling `[:dv g5 10]` must be treated as text,
|
||||
without applying that command. Do not enable a nonexistent hardware device.
|
||||
8. Report the exact words and order, selected format/voice, control with focus,
|
||||
braille contents, changed keys, and any differences in pitch/rate or silence.
|
||||
Retain `~/devel/cthulhu-go.log` for unexpected results.
|
||||
|
||||
## Fenrir
|
||||
|
||||
Rebuild Fenrir from this workspace with the usual launcher. For a separate
|
||||
unprivileged terminal-mode test, build with `go build -o /tmp/fenrir-shared-core
|
||||
./cmd/fenrir` from its checkout (one command), then run
|
||||
`/tmp/fenrir-shared-core -x --keyboard-layout desktop` in a test terminal.
|
||||
|
||||
1. Use the configured date/time commands and inspect their format examples.
|
||||
Existing format IDs, locale output, and saved selections must still agree.
|
||||
2. Review `WXwx` phonetically. Expect the shared words `whiskey` and `x ray`;
|
||||
Fenrir retains capitalization of the words for uppercase input. Verify line,
|
||||
word, character review, keyboard input, and braille tracking if configured.
|
||||
3. Check language/voice choices and a known progress indicator. Selection,
|
||||
progress pitch/volume, indentation tone shape, and silence behavior should
|
||||
match the previous Fenrir behavior.
|
||||
4. With a real supported synthesizer, repeat text, rate/pitch/volume adjustments,
|
||||
and silence checks. DECtalk USB keeps its existing device handling. Report
|
||||
exact observed speech, review position, settings, braille, and changed keys.
|
||||
|
||||
Automated tests exercise common protocol bytes, pseudo-terminal cancellation,
|
||||
Fenrir's existing serial/USB fixtures, tone PCM hashes, locale matching, and date
|
||||
formatting with and without CGO. These checks do not establish audible hardware
|
||||
behavior or physical keyboard/braille acceptance.
|
||||
@@ -1,6 +1,6 @@
|
||||
# Shared Speech Dispatcher acceptance
|
||||
|
||||
Both readers pin `screenreader-common` v0.3.0, which supplies the shared
|
||||
Both readers pin `screenreader-common` v0.4.0, which supplies the shared
|
||||
`speechdispatcher` package. Standalone builds use the published module;
|
||||
the sibling Go workspace can also be used for local development.
|
||||
|
||||
|
||||
Reference in new issue
Block a user