Commit Graph
279 Commits
Author SHA1 Message Date
FredApps c3b71fae9f Merge pull request #2829 from yoriswind/codex/affix-continuation-alias-setup
proof: reuse continuation aliases during dictionary setup
2026-11-27 23:03:15 +01:00
BFlat c88d044c0f Merge pull request #3905 from ruchirguitar/fix/indic-joiners
proof: keep zero-width joiners inside Indic conjuncts
2026-11-28 00:34:44 +07:00
ruchirguitarandClaude Opus 5.5 7dff06d72b proof: Indic pack patterns reach words with joiners
With joiners now inside an Indic word, the Gujarati pack guard (the
Gujarati block only) turned a word with a ZWJ or ZWNJ away from its
pack, so a pack exception for it was skipped. Gujarati and Hindi now
check the script's letters, marks and joiners (indic::Script::is_letter),
as their rules do, and still need the pack to know the word.

CodeRabbit on #3905.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 22:27:05 +05:30
ruchirguitar 8aff71b9f8 Merge remote-tracking branch 'upstream/main' into fix/indic-joiners
# Conflicts:
#	crates/proof/src/indic.rs
2026-11-27 22:25:46 +05:30
ruchirguitarandClaude Opus 5.5 998a000af5 Merge upstream main; every_lang() draws Hindi too
#3899 added ProofLang::Hi, and on main it went into the old fixed list
(17 entries, range still 0u8..16, so Other wasn't drawn). Keep
every_lang() and add L::Hi to its match and list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 22:23:09 +05:30
ruchirguitarandClaude Opus 5.5 70286ac3e6 proof: one copy of the script checks for Gujarati and Hindi; Hindi akshara hyphenation
The spelling check and the repeated-word and spacing checks move to
script_checks, which takes a language's Script (its letters, digits and
an optional second spelling) and Rules (messages, repeat policy). Gujarati
uses it with the predicates it had, so its behaviour is unchanged; Hindi
uses the Devanagari letters from indic and its nukta spellings.
ProofLang::Hi maps to indic::Script::Devanagari, so Hindi words break
between aksharas.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 21:56:17 +05:30
ruchirguitarandClaude Opus 5.5 b42509ee63 proof: keep zero-width joiners inside Indic conjuncts
A ZWJ or ZWNJ after a virama (choosing how a conjunct is drawn) ended
the letter run, so a Gujarati word with one was hyphenated as two short
parts and got no break. In a language with Indic rules a joiner is now
part of the word, and the akshara rules keep it inside its conjunct and
never break next to it. Other languages still end a run at a joiner.

Follow-up to #3901 (CodeRabbit review). Part of storytold/vectorcraft#4947.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 21:51:37 +05:30
ruchirguitar 9e754e1dc4 Merge remote-tracking branch 'upstream/main' into feat/add-hindi-proof 2026-11-27 21:30:59 +05:30
ruchirguitarandClaude Opus 5.5 3123577f6f proof: indic docs link no private item
The module docs linked the private Script::kind, which the workspace docs
check (-D warnings) rejects, and gave ProofLang::Gu a redundant explicit target.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 20:57:14 +05:30
ruchirguitarandClaude Opus 5.5 a771429124 proof: no doc link from the public Hindi grammar module to a private item
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 20:55:26 +05:30
ruchirguitarandClaude Opus 5.5 401d95a5ab proof: the mixed-spans proptest draws every language
mixed_spans_never_panic drew from a hand-written list that never had
EnAu, Bg, Hr, De or a Pack language, and its fixed index range needed
#3887 after Gujarati was added. It now picks with
proptest::sample::select from every_lang(), which lists every ProofLang
next to an exhaustive match, so a new variant doesn't compile until it
is listed. A `fr` tag stands for the Pack languages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 20:43:35 +05:30
ruchirguitarandClaude Opus 5.5 4ecc5e3ed0 proof: rustfmt the indic module
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 20:36:25 +05:30
ruchirguitarandClaude Opus 5.5 5b5de9fc19 proof: rustfmt the Hindi module
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 20:31:44 +05:30
ruchirguitarandClaude Opus 5.5 36b53c4bcf proof: Hindi (hi, hi-IN) spelling, suggestions and grammar
ProofLang::Hi for hi, hi-IN and hin: spelling from an installed hi_IN
Hunspell dictionary (not bundled), dictionary-driven suggestions, and
generic checks (repeated words, spacing, ratios with Devanagari digits)
with Hindi messages. The Devanagari pieces (letters, digits, both
spellings of nukta letters, the spelling check and the generic checks)
are in a shared devanagari module for later Devanagari languages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 19:53:26 +05:30
ruchirguitarandClaude Opus 5.5 d14a23d33b proof: hyphenate Gujarati between aksharas
Gujarati words fell to the English rules and got no break. They now
break only between orthographic syllables (aksharas): never inside a
conjunct, never before a vowel sign or mark, and never before a dead
final consonant. The rules come from the script's Unicode encoding (the
shared Brahmic block layout), so no pattern file is read. A `gu` Language
pack's patterns still come first.

The new `indic` module also carries the Devanagari table, so Hindi and
the other Devanagari languages need only a `Script::of` mapping.

Part of storytold/vectorcraft#4947.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 19:53:19 +05:30
ruchirguitarandClaude Opus 5.5 2476cd8340 proof: the mixed-spans proptest draws every language again
Adding Gujarati grew the language list in mixed_spans_never_panic to 16,
but the index range stayed 0..15, so the last entry, ProofLang::Other,
was never drawn. The range is now 0..16.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 14:46:04 +05:30
ruchirguitarandClaude Opus 5.5 7fa53a4c23 test(proof): restore Gujarati NOSUGGEST collector coverage
The merge from main dropped nosuggest_stems_and_forms_are_never_offered
because the shared assert_nosuggest_is_honoured helper was removed in
25597ecfc. Rebuild the fixture inline with AffixDict::from_hunspell, as
main's tests now do, covering prefixed/suffixed forms, REP replacements
and mixed-case input through the Gujarati suggest_in, plus a
Gujarati-script NOSUGGEST stem. No production code changed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 06:06:18 +05:30
ruchirguitarandClaude Opus 5.5 c6477d2818 Merge remote-tracking branch 'upstream/main' into feat/add-gujarati-proof
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 05:10:04 +05:30
yoriswind 011956be91 Share continuation flag resolution within the affix modules 2026-11-26 10:37:45 -08:00
yoriswind 77aa9dab9d Port strict continuation alias reuse onto the current affix modules 2026-11-26 10:32:34 -08:00
aiongg 0593def5d0 craft-openpgp, craft-raw, craft-captions, craft-xml, craft-ods, craft-proof, craft-font-subset, craft-drawingml: smaller or gated passes 2026-11-24 19:48:21 +00:00
ruchirguitar eb40a69e3d test(proof): replace wall-clock timing assertion with deterministic bounded suggestions check 2026-11-23 14:16:46 +05:30
ruchirguitar c29d4b7485 Proofing: handle Gujarati digits in grammar/spelling and check pack patterns fit 2026-11-21 22:09:34 +05:30
ruchirguitar 42958efaa4 Proofing: add Gujarati (gu_IN) spelling, suggestion dispatch and grammar checks 2026-11-21 21:54:24 +05:30
yoriswind f5a0a14581 proof: reuse alias keys and final continuation set IDs 2026-11-21 06:05:16 -08:00
yoriswind 33702a095c proof: compare aliased and literal continuation output 2026-11-21 06:02:54 -08:00
yoriswind 4a691d8897 proof: format continuation alias compatibility checks 2026-11-21 04:42:30 -08:00
yoriswind c6a6a19089 proof: share continuation alias parsing during setup 2026-11-21 04:41:28 -08:00
yoriswind f6efa4760b proof: format continuation alias compatibility checks 2026-11-21 04:35:42 -08:00
yoriswind 610b601990 proof: cover continuation alias compatibility 2026-11-21 04:34:13 -08:00
aiongg 901f3c785b Merge remote-tracking branch 'upstream/main' into next-sync-1120c
# Conflicts:
#	.github/workflows/workspace.yml
#	crates/proof/src/affix_suggest.rs
#	crates/proof/src/it/suggest.rs
#	crates/proof/src/pl/suggest.rs
#	crates/proof/src/pt/suggest.rs
#	crates/proof/src/ru/suggest.rs
#	scripts/test-workspace-tests.py
2026-11-20 21:22:40 +00:00
Rees f2adcfc70c Proofing #3656: index spelling MAP lookups 2026-11-20 05:49:52 +01:00
FredApps 62f44de3d6 Consolidate related support tests 2026-11-19 13:07:16 +01:00
aiongg e8e713ee26 Merge storytold main into next (18 Nov sync)
Merges main at 3b8e426a26.

- crates/ui: main's e-sign dialog (crates/ui/src/esign) moves to craft-cloud-ui beside the
  share dialog, behind craft-cloud-ui's esign feature; craft-ui forwards `esign` and
  re-exports the module.
- crates/proof: main's can_suggest_cased goes to affix/check.rs and its tests to
  affix/tests.rs (next split affix.rs); French wiring in lib.rs.
- crates/svg: main's validated resolver and raster validation stay under tree-render, which
  now also enables gif and image-webp; the shared image-codec helpers are gated on tree.
- craft-ai-agents: main's rev (craft-ai-integrations main), one entry.
- crates/craft: facade dependencies, features and re-exports for main's new crates.
2026-11-18 23:07:38 +00:00
totoz64 1f53b80973 Proofing: retain eligible exact compound suggestions
Address CodeRabbit4575003662 by considering all normalized exact derivations in the displayed-case eligibility guard, without lowercase fallback. Preserve forbidden-word handling, case exclusions, shared budgets and ranking.

A real REP regression fails before the fix and passes for NOSUGGEST/SUBSTANDARD compound paths after it, while FORBIDDEN remains rejected; cover WCAFF2 round trips.460 unit tests, compatibility2, French Pack1, real Dicollecte1, formatting and strict all-target proof Clippy pass on Rust1.100. New hosted checks are still required.
2026-11-15 19:58:06 +01:00
totoz64 c64e42aab8 French proofing: reconcile shared engine with current main
Retain upstream REP budget cap and current language fixes. Resolve the Windows reader-test conflict with the exact upstream tests, dropping the older equivalent portability patch. French behavior and compatibility fixtures retained; no workflow or dictionary additions.

459 unit tests, compatibility, French pack and real Dicollecte pass; strict craft-proof Clippy and formatting pass on Rust1.100.
2026-11-14 19:02:40 +01:00
aiongg acdacefe1a Lints: import the names the split-out modules use from where they are defined 2026-11-14 00:18:37 +00:00
aiongg e8663f6c72 Lints: replace wildcard imports of split-out modules with explicit imports 2026-11-14 00:15:29 +00:00
aiongg a17171af48 Lints: drop the workspace missing_docs lint and warn on it in the framework crates that document every public item 2026-11-14 00:15:29 +00:00
aiongg 577055bc34 Merge storytold main 3c59a2aa5 into craft-framework (sync 13 Nov)
202 upstream commits since 6cb00467a. Resolutions:
- craft-window, craft-platform: ours. Upstream's frame policy v2, restore
  store and GNOME light/wait_first are the versions carried on 28 Oct;
  ours moved place() to craft-behavior and kept LayoutWatch and the
  appearance/portal.rs split.
- craft-timeline: ours. craft-time (crates/time) lands as upstream wrote
  it and is not yet used by craft-timeline.
- Old crates/ui modules stay removed. Upstream's frosted backdrops, shape
  gallery, dialog tabs and the iconic flyout top-edge rendering are not
  carried. The #1094 model half is in craft-behavior's dock:
  Group::flyout_offset and Action::MoveFlyoutTop.
- craft-update: #586 Save and Update, the install probe on the check
  thread and quiet per-user MSI self-updates, carried into updater.rs,
  stack_dialogs.rs, install/windows.rs and self_update/helper.rs.
- craft-jpeg: progressive Huffman decoding, carried into huffman.rs,
  parse.rs and scan.rs.
- craft-print: the driver settings dialog's new tests and the bounded
  XML parse's tests, as trials.
- Test-only conflicts: upstream tests from before the base that our side
  cut stay cut; tests new upstream are kept.
2026-11-13 17:11:48 +00:00
Dylan M. Taylor 7316e4e223 fix: clear workspace baseline gates on Rust 1.100 2026-11-13 03:13:53 +00:00
VoiceLessQandVoiceLessQ 5afeda8327 craft-proof it: a ‘ quote can open the next sentence, as “ and « do
In "Vado. ‘poi’ torno." the capital-letter check skipped poi, because ends_sentence didn't count ‘ among the characters that may open the next sentence. This is the last part of storytold/wordcraft#3675; the rest came with #484.

---------

Co-authored-by: VoiceLessQ <t12kaem@gmail.com>
2026-11-12 10:37:00 -05:00
aiongg 25597ecfc7 Media, formats and engine crates: follow-ups from the framework migration 2026-11-12 14:32:38 +00:00
skylar taylor-barrick a55273e2b4 Merge pull request #552 from naxvog/proof/rep-cap
proof: cap .aff REP replacements at parse time
2026-11-04 18:11:37 +01:00
totoz64 55a16b7a72 M15: Validate exact suggestion eligibility before admitting candidates
Collector::keep now uses the exact-case eligibility guard before insertion, preserving NOSUGGEST, SUBSTANDARD, FORBIDDENWORD and KEEPCASE rules. Finalization can safely retain the admitted original after the collection budget is exhausted, and still validates actual case variants. No fresh budget, parser, ranking or historical fixture change.

This completes CodeRabbit4470300723 without the provisional870 exclusion regression. On this exact source: workspace fmt and strict proof Clippy passed; 458 unit tests passed with52 ignored, compatibility2 and French Pack integration1 passed, and the real pinned Dicollecte test passed. The integrated normal-budget regression and all15 suggestion/casing/exclusion tests passed together in the fresh complete execution. Hosted validation of this new SHA is still required.
2026-11-04 17:56:56 +01:00
totoz64 870bad52e2 M15: Preserve accepted suggestions after the shared collection budget runs out
Collector::keep has already validated the stored text. Avoid rechecking identity candidates against an exhausted SuggestSteps budget; validate only changed case and fall back to the accepted original if that validation cannot succeed. Keep the same time/work caps, exclusion rules, parser and ranking.

An integrated regression uses the real REP/TRY/affix pipeline and normal budget: it loses the accepted affixed suggestion on parent b5 and retains it with this change, for lower and upper input. No injected state or relaxed limit. Exact-source fmt and strict proof Clippy passed; full local/hosted validation is still being collected. Addresses CodeRabbit4470300723.
2026-11-04 17:43:22 +01:00
totoz64 b5bb5435de M15: Keep upstream proofing fixes in the French Language pack adaptation
Merge current main without restoring old proofing infrastructure. Preserve upstream elision-first suggestions and Catalan Valencia locale lookup. Keep dictionary OCONV for missing-apostrophe French suggestions while retaining explicitly typed apostrophe style. Normalize only checkout CRLF in the frozen compatibility harness; historical observations are unchanged.

Formatting, strict proof Clippy, the red/green French wrapper regression and the isolated upstream budget regression passed locally. Full final proof and real-dictionary checks and exact-head hosted gates remain to complete; no prior-head success is transferred.
2026-11-04 17:26:47 +01:00
FredApps 01315d9c92 Merge pull request #590 from benandez/fix/variant-pack-locale
proof: a variant after the region is looked up without the region first (ca-ES-valencia → ca-valencia)
2026-11-03 23:21:37 +01:00
Martin BallandClaude Opus 5.5 11ed4abc1e proof: the Italian elision test checks dell'anno ranks before dell anno (CodeRabbit)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCYmv6UJmY2QcuhfXco
2026-11-03 22:07:32 +00:00
Martin BallandClaude Opus 5.5 5933160655 proof: a test pins English's elision: false; elision docs say it ties with dropping a typed accent (review)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCYmv6UJmY2QcuhfXco
2026-11-03 21:46:56 +00:00