Adopt common v0.8.0 and preserve canceled hardware settings

This commit is contained in:
Storm Dragon committed 2026-11-16 20:10:47 -05:00
1 parent b21fceb311
commit 5dfa038706
410 files changed
+5353 -4803

No files matched your search

+16 -10
View File
@@ -20,22 +20,27 @@ Reader-independent Go code shared with Fenrir lives in
`git.stormux.org/storm/screenreader-common`; check it before duplicating pure
data or behavior. Shared packages own the emoji catalog, internal interaction
toolkit, Speech Dispatcher client and language matching, date/time formatting,
phonetic spelling alphabet, tone generation, and hardware synthesizer protocols.
phonetic spelling alphabet, tone generation, and hardware synthesizer protocols and serial/USB transport.
Change shared behavior and its unit tests in the common module. Reader integration
tests, device ownership, queues, playback, and presentation remain here.
`internal/interaction` is a compatibility adapter to the common `internalui`
toolkit; core rich forms use `internalUI.OpenUI`. Change control behavior and
its model tests in the common module. Keep Cthulhu's picker form,
Every reader form runs on the common `internalui` toolkit directly. Core forms
build an `internalui.Form` and open it with `internalUI.OpenUI`. Tentacle forms
arrive as `tentaclewire.Form` (the element JSON Tentacles send), which
`tentaclewire.NewSession` validates against the external limits and converts;
`tentaclewire.SubmissionValues` maps results back. That JSON is the Tentacle
wire format and must not change silently. Change control behavior and its model
tests in the common module. Keep Cthulhu's picker form,
AT-SPI insertion, clipboard choice, speech, and Braille integration here. For
shared changes, test the common package, tag a version, and update the pinned
module in `go.mod`; keep local `go.work` or `replace` paths out of commits.
The common module must remain compatible with Cthulhu's Go minimum.
The common module, Fenrir and Cthulhu share the Go 1.27.2 minimum; raise it in all three together.
## Build, Test, and Development Commands
Use Go 1.24+ with CGO and development libraries listed by the Arch `PKGBUILD`.
Tagged DuckDB builds also need the DuckDB headers while the master-tracking
`cthulhu-git` recipe does not build this unreleased feature.
Use Go 1.27.2 or newer with CGO and development libraries listed by the Arch `PKGBUILD`.
The DuckDB debug-log sink is optional and behind the `duckdb` build tag.
Normal builds, tests and the lint gate do not need DuckDB; only work on that
feature needs its headers.
- `go build -o build/cthulhu ./cmd/cthulhu`: build the reader.
- `go build -tags brlapi -o build/cthulhu-braille ./cmd/cthulhu-braille`: build the Braille helper.
@@ -44,13 +49,14 @@ Tagged DuckDB builds also need the DuckDB headers while the master-tracking
- `go test ./... -count=1`: run default tests; native cases may skip.
- `go test -tags brlapi ./... -count=1`: run packaging checks.
- `go vet ./...`: check common Go errors.
- `golangci-lint run ./...`: run the configured lint gate (`.golangci.yml`, v2 schema; build tags brlapi/duckdb set there; keep the linter built with a Go at least as new as the project toolchain or it reports typecheck garbage).
- `golangci-lint run ./...`: run the configured lint gate (`.golangci.yml`, v2 schema; the brlapi build tag is set there; keep the linter built with a Go at least as new as the project toolchain or it reports typecheck garbage). When changing the DuckDB sink, also run `golangci-lint run --build-tags duckdb ./...`.
- `go run ./cmd/parityledger validate testdata/parity-ledger.csv`: validate parity records.
- `go run ./tools/translations check`: confirm `internal/i18n/locale/cthulhu.pot` is current and catalogs are complete (needs GNU gettext); `update` regenerates it after message changes.
- `./build/cthulhu --check-config`: validate settings; `./build/cthulhu` starts the reader.
## Coding Style & Naming Conventions
Use `gofmt`, exported PascalCase identifiers, private camelCase identifiers, and lowercase packages. Preserve license headers. Follow existing Python conventions; run `shellcheck` for edited shell scripts. Keep complete user-facing messages separate from internal identifiers and preserve deliberate speech/Braille segmentation.
Follow Go conventions: `gofmt -s`, Effective Go, and Go Code Review Comments. Exported names are PascalCase and unexported names are camelCase, including functions and methods; do not use snake_case identifiers. Packages are lowercase, and initialisms keep one case (`ID`, `URL`). Run `go vet ./...` and `golangci-lint run ./...` before submitting. Preserve license headers. Follow existing Python conventions; run `shellcheck` for edited shell scripts. Keep complete user-facing messages separate from internal identifiers and preserve deliberate speech/Braille segmentation.
## Behavior & Accessibility Safeguards