Restore reading backspace if typing with autoread disabled.
This commit is contained in:
1 parent
eaf450587c
commit
57799cd2eb
6 files changed
+295
-6
No files matched your search
@@ -0,0 +1,55 @@
|
||||
# Repository Guidelines
|
||||
|
||||
## Project Structure & Module Organization
|
||||
|
||||
Fenrir is a Linux console screen reader with an X11 terminal mode. This checkout
|
||||
is on the Go migration's `testing` branch; confirm the intended branch before
|
||||
contributing. `cmd/fenrir/` contains the executable entry point. `internal/`
|
||||
contains packages for input, screen review, speech, sound, configuration, and
|
||||
remote control. Go tests live beside their packages as `*_test.go`.
|
||||
|
||||
`config/` holds TOML settings, keyboard layouts, punctuation profiles, and sound
|
||||
assets. `internal/i18n/locale/` holds translations. `docs/` contains manuals;
|
||||
`tools/` contains maintenance utilities. `src/fenrirscreenreader/` retains Python
|
||||
sources, while `tests/` includes Python unit, integration, and native fixtures.
|
||||
|
||||
## Build, Test, and Development Commands
|
||||
|
||||
Use Linux, Go 1.27.2 or newer, a C compiler, and `pkg-config`, with development
|
||||
libraries for libevdev, X11, libvterm, and ALSA. See `README.md` for runtime dependencies.
|
||||
|
||||
- `go build -o fenrir ./cmd/fenrir`: build the executable beside its resources.
|
||||
- `./fenrir --config config/settings/settings.toml --check-config`: validate settings without opening devices.
|
||||
- `./fenrir -x`: run in an X11 terminal with `DISPLAY` and `WINDOWID` available.
|
||||
- `go test ./...`: run the Go test suite.
|
||||
- `go test ./internal/reader`: run a focused package's tests.
|
||||
- `go run ./tools/translations check`: validate extracted messages and catalogs; requires GNU gettext.
|
||||
|
||||
## Coding Style & Naming Conventions
|
||||
|
||||
Format Go changes with `gofmt` and preserve tab indentation. Follow neighboring
|
||||
code: camelCase locals, snake_case helpers, and capitalized exported identifiers
|
||||
where required by Go visibility. Preserve existing license headers. Keep changes
|
||||
focused and use existing configuration and presentation APIs.
|
||||
|
||||
Keep interface messages translatable through `internal/i18n`; exclude screen
|
||||
contents and protocol identifiers. After message changes, run
|
||||
`go run ./tools/translations update`, review catalog changes, then run `check`.
|
||||
Run `shellcheck` on edited shell scripts.
|
||||
|
||||
## Testing Guidelines
|
||||
|
||||
Use Go's `testing` package with `Test...` functions in `*_test.go`. Cover changed
|
||||
behavior and plausible regressions; no numeric coverage threshold is documented.
|
||||
Follow each native fixture's prerequisites. Automated checks do not establish
|
||||
audible speech or physical keyboard behavior: verify affected console or X11
|
||||
workflows, including navigation and settings persistence. Preserve the active reader.
|
||||
|
||||
## Commit & Pull Request Guidelines
|
||||
|
||||
History uses short descriptive subjects, without a consistent prefix convention.
|
||||
Keep commits scoped. Describe the problem, resulting behavior, linked issues when
|
||||
applicable, commands run, and pending live checks. Follow the README's
|
||||
AI-assisted contribution policy: contributors must review the diff and test
|
||||
intended behavior and likely regressions before submission. Leave submission to
|
||||
the contributor after review.
|
||||
Reference in new issue
Block a user