Repository navigation
fix(shared): keep Myanmar and Balinese conjuncts intact in automatic project monograms - #46882
Conversation
…project monograms Co-Authored-By: Claude Opus 5.5 <[email protected]>
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — This preserves Myanmar and Balinese conjuncts in generated project monograms and avoids duplicating lone stacked clusters. The change is confined to display text, with no changes to stored project data or icon-selection policy. Notes:
You can add or adjust custom eligibility rules. Learn more. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Dismissing prior approval to re-evaluate 8378614
EvidenceOn each commit's fresh server database, created a synthetic project with no favicon, opened Settings → Projects, and renamed it in the Project name field with Enter to each of: က္က Alpha, ᬓ᭄ᬱ Alpha, ᬓ᭄ᬋ Alpha, က္က, ᬓ᭄ᬱ, and ᬅ᭄. Waited for the saved name, reloaded the page, waited for the name and fonts, then captured the Automatic icon. Environment on both sides: Linux Chromium, real web app and server, isolated fresh state with seeding disabled, 1280×800 viewport, light theme, Noto Sans Myanmar and Noto Sans Balinese supplied through Fontconfig. No glyph or icon CSS overrides. The following details are 2× enlarged crops of the full screenshots below.
The base drops the joined consonant and displays a dangling stacker before A. The head retains the shaped conjunct and A within the tile. Both lone-stack controls appear once on both commits; the terminal Balinese stacker (ᬅ᭄) is doubled on both commits. Those controls are not claimed as base defects. Scenario: Automatic project monograms keep Myanmar and Balinese conjunctsProven: the scenario fails on base 4374266d29 and passes on head 83786145e6.
Not shown:
|
…ime/mobile/desktop fixes) Ported 17 commits from 772e3d4..1e6e7d7: - f44640c (pingdotgg#46524), 65dc8c2 (pingdotgg#46550), a1181e8 (pingdotgg#46563), 99d0fc3 (pingdotgg#46619) - 4eac693 (pingdotgg#46618), 0192cf0 (pingdotgg#46889), 8eac85d (pingdotgg#46692), e5528df (pingdotgg#46723) - 39bc9cf (pingdotgg#46754), ba31532 (pingdotgg#46763), 41a1079 (pingdotgg#46808), ae3de2b (pingdotgg#46814) - fc6ba3d (pingdotgg#46882), 364693b (pingdotgg#46923), 6adb78e (pingdotgg#46933) - 75d3e79 (pingdotgg#46671 Android thread search) - 909eeee (pingdotgg#47131 desktop managed update mirrors release notes, Lock pingdotgg#10 preserved)



















Problem
A project whose name starts with a Myanmar or Balinese stacked consonant gets a broken automatic monogram. The icon shows only half of the first cluster, with a bare virama, followed by the second initial.
projectMonogramonly recognises the virama + consonant pairs listed inCONJUNCT, and Myanmar U+1039 and Balinese adeg-adeg U+1B44 are not in that list.Deterministic repro on
origin/main(76f53002fba6a47c99c8949a675d62a0b2ebb5a4):node --input-type=module -e 'import {projectMonogram as p} from "./packages/shared/src/projectMonogram.ts"; for (const s of ["က္က Alpha","ᬓ᭄ᬱ Alpha","ᬓ᭄ᬋ Alpha"]) console.log(JSON.stringify(p(s)), JSON.stringify([...new Intl.Segmenter().segment(s)][0].segment + "A"))'"က္A","ᬓ᭄A"and"ᬓ᭄A". The second consonant of each stack is dropped and the virama is left showing."က္ကA","ᬓ᭄ᬱA"and"ᬓ᭄ᬋA"(subjoined RA REPA): the whole first cluster plusAfrom "Alpha". Node 24 (ICU 78.2)Intl.Segmentertreats each full conjunct as one grapheme.App path: add a standalone local folder with no favicon or icon override (icon left on Automatic) and rename the project to
က္က Alphaorᬓ᭄ᬱ Alpha. The icon text in Settings should readက္ကA/ᬓ᭄ᬱA. On web and desktop the sidebar or settings icon comes fromderiveProjectIdentity→projectMonogram(apps/web/src/projectIdentity.ts). On mobile, the automatic and colored fallback icons come fromprojectIcon.ts→projectMonogram.Change
Add two entries to
CONJUNCT: Myanmar virama + Myanmar consonant (္[က-အ]) and Balinese adeg-adeg + Balinese consonant, including RA REPA / RA REPA TEDUNG (᭄[ᬋᬌᬓ-ᬳᭅ-ᭌ]). These follow the existing Brahmic and Khmer entries. A name that is a single stack (က္က,ᬓ᭄ᬱ) is now one cluster, so the existing lone-Khmer-stack guard also covers these new stacks. Without it the cluster would show twice. The guard needs an actual mark + consonant match for the new scripts, so a terminal adeg-adeg with no joined consonant (Sasakᬅ᭄) keeps its base output. The Khmer check is unchanged. Otherwise the initials policy is unchanged. Web, desktop and mobile all use this shared function, so this one change covers every surface.Scope
Small fix for an obvious bug; no issue needed under CONTRIBUTING.md.
Verification
packages/shared/src/projectMonogram.test.ts. On base the case fails withexpected 'က္A' to be 'က္ကA'. I also added single-stack assertions (က္က→က္က,ᬓ᭄ᬱ→ᬓ᭄ᬱ), which pass on both base and head and guard against the cluster showing twice. Further assertions:ᬓ᭄ᬋ Alpha→ᬓ᭄ᬋA(fails on base) and terminalᬅ᭄→ᬅ᭄ᬅ᭄(same as base). On head all 9 tests in the file pass.vp run check:changedexits 0 on the final head (format, lint, knip, typecheck, affected tests).ᬓ᭄ᬋ Alpha, both single-stack names, terminalᬅ᭄and the Khmerថ្មី, plus thecheck:changedsummary for the final head: https://gist.github.com/saphid/bf4066e2d0281f625065b638f0e67be2Not shown: no before/after captures from a running web, desktop or mobile client, and the Settings flow above was not driven in a real client or covered by an executable scenario. The rendered text is exactly the string
projectMonogramreturns, and the transcript above shows that string. Myanmar extension consonants outside U+1000–U+1021 (Mon, Shan, Karen) are not added, so stacks that use them still split.Authored by Claude Opus 5.5 (Model Hub); reviewed by GPT-6.2 Sol (Codex).
Not shown