Skip to content

feat(ka): read ISO 9984 tsh and dzh back as the letters Georgian words have - #40

Merged
stephen-masters merged 1 commit into
mainfrom
feat/ka-read-back-prefers-attested
Nov 12, 2026
Merged

stephen-masters merged 1 commit into
mainfrom
feat/ka-read-back-prefers-attested

Conversation

@stephen-masters

Copy link
Copy Markdown
Contributor

What this changes

ISO 9984:2026's middle-dot list (4.2) leaves two Latin sequences with two readings:

Latin In Georgian words In borrowed names only
tsh თშ ცჰ
dzh დჟ ძჰ

Reading back took the digraph first (ცჰ, ძჰ), which is the reading found only in borrowed names. Every noun in -თ with the postposition -ში therefore read back wrong: საათში (in an hour) was written saatshi and came back as სააცჰი.

Reading back now takes თშ and დჟ.

How

  • Scheme gains a readings field: Latin sequences a reversible standard leaves ambiguous, each mapped to the letters reading back takes. The constructor refuses an entry that is not what the table writes for those letters, one on a lossy table, and one for a pair the table separates.
  • The engine adds those sequences to the inverse table. Each is longer than its parts, so it is tried first.
  • ka/iso_9984 sets readings={"tsh": "თშ", "dzh": "დჟ"}.

Evidence for the choice

Counted in the titles of the Georgian Wikipedia, November 2026:

Sequence Distinct words Examples
თშ 82 საფრანგეთში, ხუთშაბათი
ცჰ 19 ალცჰაიმერი, ერცჰერცოგი
დჟ 7 ადჟარია
ძჰ 1 აძჰილი

What users will see

  • to_script() on ISO 9984:2026 Latin with an undotted tsh or dzh now gives თშ and დჟ where it gave ცჰ and ძჰ.
  • Borrowed names with ცჰ or ძჰ no longer read back (altshaimeri gives ალთშაიმერი). A test declares this. A middle dot typed by hand settles either reading: alts·haimeri reads as ალცჰაიმერი.
  • No rendering changes: the table still follows the standard as published.
  • No fold key moves: both readings of each sequence reach one key, and a test checks it.

The standard's maintainers have confirmed the omission and will correct the list at the next revision. The Georgian skill records what to change when that is published.

Checks

  • Full test suite, Ruff, mypy and the Sphinx build (-W) pass locally.
  • An exhaustive round trip of every two- and three-letter Georgian sequence fails only on the 134 sequences containing ცჰ or ძჰ.

🤖 Generated with Claude Code

…s have

ISO 9984:2026's middle-dot list (4.2) leaves two sequences with two
readings: tsh is თშ or ცჰ, and dzh is დჟ or ძჰ. Reading back took the
digraph first (ცჰ, ძჰ), which is the reading found only in borrowed
names, so every noun in -თ with the postposition -ში read back wrong:
საათში was written saatshi and came back as სააცჰი.

A Scheme can now name the reading to take for such a sequence
(readings), and ka/iso_9984 names თშ and დჟ. Among the titles of the
Georgian Wikipedia in November 2026, 82 distinct words have თშ against
19 with ცჰ, and seven have დჟ against one with ძჰ.

What changes: to_script() on ISO 9984:2026 Latin containing an undotted
tsh or dzh now gives თშ and დჟ where it gave ცჰ and ძჰ. Borrowed names
with ცჰ or ძჰ (ალცჰაიმერი) no longer read back; a middle dot typed by
hand (alts·haimeri) settles either reading. No rendering changes, and
no fold key moves, since both readings of each sequence reach one key.

The standard's maintainers have confirmed the omission and will correct
the list at the next revision; the table still follows the standard as
published.

Co-authored-by: Yvette Mankerian <yvettekm@gmail.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@stephen-masters
stephen-masters merged commit 082827a into main Nov 12, 2026
12 checks passed
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.

1 participant