feat: speak file:line refs as "line N of file"#44
Merged
Conversation
StuBehan
force-pushed
the
feat/spoken-file-refs
branch
from
July 17, 2026 14:52
ba25106 to
616002e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Folds a file:line-reference rule into the existing
dev_termsnormalization pass.engine.py:42was reaching espeak raw and voicing as "dot py colon forty two"; spoken, the line number is the signal and the filename is noise, so it's re-ordered to lead with the line.Changes
foo.ts:666→ "line 666 of foo ts" — basename only (directories dropped; "src/" reads as "slash"), dotted name voiced word by word.cli.py:100-118→ "lines 100 to 118 of cli py";foo.ts:666:10→ "line 666, column 10 of foo ts".:linesuffix, so times, ratios, verses, and dotted versions (12:30,3:1,John 3:16,1.2.3) are left untouched.dev_terms(default on) — no new flag.Testing
tests/test_text.pycases (basename/range/column, and the untouched times/ratios/versions).ruff check+ruff format --checkclean;mypyclean;pytest— 203 passed.CHANGELOG.mdintentionally untouched — release-please owns it; this lands as afeatin the next release.