[PR #1046] [MERGED] Recognize an additional script in text-table language guessing (TEXT-SCRIPT-COVERAGE) #1083

Closed
opened 2026-11-26 20:20:02 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1046
Author: @lumencer
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @QemmHD

Base: main ← Head: feat/text-script-detection


📝 Commits (1)

  • 1d2e084 Recognize an additional script in text-table language guessing

📊 Changes

4 files changed (+10 additions, -4 deletions)

View changed files

📝 README.md (+4 -0)
📝 docs/text.md (+1 -1)
📝 tests/test_text_tables.py (+1 -0)
📝 tools/text_tables.py (+4 -3)

📄 Description

Claim: TEXT-SCRIPT-COVERAGE (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7138917308).

tools/text_tables.py guesses 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 to xx.

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_language gets 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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1046 **Author:** [@lumencer](https://github.com/lumencer) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/24/2026 **Merged by:** [@QemmHD](https://github.com/QemmHD) **Base:** `main` ← **Head:** `feat/text-script-detection` --- ### 📝 Commits (1) - [`1d2e084`](https://github.com/ubiquitarianism/leonida/commit/1d2e0848fcbd2a6eb790a3becec0cab49c94f3a5) Recognize an additional script in text-table language guessing ### 📊 Changes **4 files changed** (+10 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+4 -0) 📝 `docs/text.md` (+1 -1) 📝 `tests/test_text_tables.py` (+1 -0) 📝 `tools/text_tables.py` (+4 -3) </details> ### 📄 Description Claim: `TEXT-SCRIPT-COVERAGE` (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7138917308). `tools/text_tables.py` guesses 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 to `xx`. 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_language` gets 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:20:02 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#1083
No description provided.