Skip to content

Add Croatian spelling and grammar support - #1114

Merged
echelon merged 2 commits into
storytold:mainfrom
mbaksa:croatian-spellchecking
Oct 14, 2026
Merged

echelon merged 2 commits into
storytold:mainfrom
mbaksa:croatian-spellchecking

Conversation

@mbaksa

@mbaksa mbaksa commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Croatian spelling support based on Hunspell, spelling suggestions, and basic grammar checking were developed with assistance from OpenAI's ChatGPT (GPT-6).

Test

cargo fmt --all -- --check — OK

cargo test -p wordcraft-proof — 109 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.86s

andrejskvorc added a commit to andrejskvorc/wordcraft that referenced this pull request Oct 13, 2026
Croatian interface catalog (2,505 entries: every key of the reference catalog, built-in style
names, equation gallery, print dialog), registered as `hr` ("Hrvatski"). `hr`, `hr-HR` and
`hr_HR.UTF-8` system locales pick it automatically.

- Count-neutral wording (`Riječi: 21`), since Croatian numerals take three noun forms.
- New `template` catalog context: the "Letter" template can be called "Pismo" while the "Letter"
  paper size keeps its name. Other languages fall back to their plain entry, so nothing changes.
- Locale, saved-preference, catalog-coverage and bundled-font tests; `hr` added to the
  interface-audit languages; Polish's coverage test lists `hr` with it/hu/bg.
- Written from the meaning of the English labels (clean room, no Word localisation consulted),
  proofread by a second model and reviewed by a native speaker.
- ATTRIBUTION row, contributors entry for the author, docs and roadmap.

Croatian spelling and grammar proofing is separate (storytold#1114).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
# Conflicts:
#	crates/proof/src/lang.rs
#	crates/ui-egui/src/ribbon.rs
@echelon
echelon merged commit 408ae56 into storytold:main Oct 14, 2026
@echelon

echelon commented Oct 14, 2026

Copy link
Copy Markdown
Member

Thanks for the contribution, @mbaksa! This has landed in main. If you haven't already, come join us on Discord: https://discord.gg/artcraft

@mbaksa
mbaksa deleted the croatian-spellchecking branch October 14, 2026 09:32
echelon added a commit that referenced this pull request Oct 14, 2026
#1114 added Croatian to the proofing-language menu, and #1143 put the
interface-translation audit back in the test suite; together they left
"Croatian" untranslated, failing untranslated_interface_text and the
catalog-coverage tests.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
echelon added a commit that referenced this pull request Oct 15, 2026
* i18n: add Croatian (hr) interface translation

Croatian interface catalog (2,505 entries: every key of the reference catalog, built-in style
names, equation gallery, print dialog), registered as `hr` ("Hrvatski"). `hr`, `hr-HR` and
`hr_HR.UTF-8` system locales pick it automatically.

- Count-neutral wording (`Riječi: 21`), since Croatian numerals take three noun forms.
- New `template` catalog context: the "Letter" template can be called "Pismo" while the "Letter"
  paper size keeps its name. Other languages fall back to their plain entry, so nothing changes.
- Locale, saved-preference, catalog-coverage and bundled-font tests; `hr` added to the
  interface-audit languages; Polish's coverage test lists `hr` with it/hu/bg.
- Written from the meaning of the English labels (clean room, no Word localisation consulted),
  proofread by a second model and reviewed by a native speaker.
- ATTRIBUTION row, contributors entry for the author, docs and roadmap.

Croatian spelling and grammar proofing is separate (#1114).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* ATTRIBUTION: name the models and the human review for the Croatian catalog

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* i18n(hr): native-speaker corrections to math terms and messages

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* i18n(hr): envelope names without their size

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* docs: Croatian entry count

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-authored-by: Brandon Thomas <echelon@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants