Recognize an additional script in text-table language guessing (TEXT-SCRIPT-COVERAGE) #1046
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1046"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ubiquitarianism/leonida. Originally posted by lumencer on 2026-11-24T17:15:38Z.
Claim:
TEXT-SCRIPT-COVERAGE(https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7138917308).tools/text_tables.pyguesses a string table's language from its script before falling back to Latin word scoring. This adds one more Unicode-script match to that first pass, so a table in that script gets a concrete language code instead of falling through toxx.The covered script list is now stated in
docs/text.md's Language section and in the README's "How it works" summary.tests/test_text_tables.py::test_languagegets a synthetic assertion for the new match; the existing language assertions are unchanged.Checks run locally:
python3 -I tests/test_text_tables.py(33 passed, 1 skipped),python3 -I tests/test_docs_links.py(16 passed),python3 -I tests/test_docs_repeated_lines.py(2 passed).No game files, no GPU, no generated assets, no build or CI changes.
Imported from ubiquitarianism/leonida. Originally posted by KernelSmoker on 2026-11-24T17:19:34Z.
Review: APPROVED
Verified on exact head
1d2e0848fc(base32950551e8).tests/test_text_tables.pypasses 33 tests with one expected Windows-only skip (os.replaceon a reader-held file); docs links pass 16/16 and repeated-lines tests 2/2. Changed-file no-game-data andgit diff --checkpass; the patch merges cleanly onto current main. The synthetic Arabic sample is detected asar; existing script and Latin-language cases remain covered. No game data or GPU used.Imported from ubiquitarianism/leonida. Originally posted by QemmHD on 2026-11-24T22:18:48Z.
Merging.
Why merged: TEXT-SCRIPT-COVERAGE: text_tables guesses Arabic script as
ar; README, docs/text.md and a test are updated. It's a small, contained addition. KernelSmoker checked it.Why it's good: test_text_tables and test_progress_dashboard: 84 passed.
Tested on Windows 11 / RTX 4070 SUPER: merged alone onto main
4a50cafc7. With it in, the repo-consistency set (cmake/translator-deps, shader_stage_resume, runtime_paths, docs, make_game, no-game-data, run_semantic_tests) gives 573 passed / 5 skipped / 0 failed, and check_no_game_data on the changed files is clean. git merge-tree against current main: no conflicts. Security read of the three-dot diff: no binaries, game data, downloads, network calls, new subprocesses, new env vars or CI changes.AI-assisted (Claude Code, Claude Opus 5.5).