Skip to content

Conversation

@willwade
Copy link
Collaborator

feat: implement automatic capitalization in collect elements (re: #400)

  • Add automatic first word capitalization for empty collect elements
  • Add sentence capitalization after punctuation marks (., ?, !)
  • Handle edge cases: multiple spaces, mixed case, non-alphabetic text
  • Integrate with all input methods: keyboard, symbols, predictions, live elements
  • Maintain compatibility with existing utterance logging system
  • Add comprehensive test suite with 15 test cases
  • Default behavior with no user configuration required

Added a test file to this as its pretty complicated ..

feat: implement automatic capitalization in collect elements

- Add automatic first word capitalization for empty collect elements
- Add sentence capitalization after punctuation marks (., ?, !)
- Handle edge cases: multiple spaces, mixed case, non-alphabetic text
- Integrate with all input methods: keyboard, symbols, predictions, live elements
- Maintain compatibility with existing utterance logging system
- Add comprehensive test suite with 15 test cases
- Default behavior with no user configuration required

Added a test file to this as its pretty complicated ..
@github-actions
Copy link

🎉 Beta deployment successful! 🎉

You can view the changes in the live preview environment here: https://gridbeta-github.asterics-foundation.org/willwade/feat-capitalize-first-letter/pr

@willwade
Copy link
Collaborator Author

@ms-mialingvo can you test this - particularly with different languages!

…t bar

Apply existing applyAutoCapitalization when adding normal (image+label) elements
If capitalization changes, push a shallow copy with fixedGrammarText; otherwise push original
Keeps original grid labels unchanged; affects only collected rendering/speech
Ensures first-word and post-punctuation capitalization work across keyboard, predictions, live, and symbols
@github-actions
Copy link

🎉 Beta deployment successful! 🎉

You can view the changes in the live preview environment here: https://gridbeta-github.asterics-foundation.org/willwade/feat-capitalize-first-letter/pr

- detect alphabetic characters with locale-aware Unicode helpers
- ensure sentence capitalization walks code points instead of single bytes
- add tests covering Polish ł/Ł to prevent regressions
@github-actions
Copy link

🎉 Beta deployment successful! 🎉

You can view the changes in the live preview environment here: https://gridbeta-github.asterics-foundation.org/willwade/feat-capitalize-first-letter/pr

@willwade willwade requested a review from klues September 25, 2025 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants