A Story of Mysterious Asian Strings
summary
Asian scripts break assumptions: CJK use double-width glyphs so equal String.count can yield different visual widths (example: English "filter" counts 6 while a Japanese label showed 5 grapheme clusters yet took more space), Thai combining marks can overflow or clip UILabel tops, and some long composed Thai inputs once returned length 1 in a demo. Use grapheme-cluster counting (Swift String.count) for user-facing limits, avoid blocking IME composition and do not block composition—apply validation only after composition confirmation and normalize and measure rendered size.
AI-written summary · about
chapters (3)
related talks
39mTypography of the East
23mThe lesser-known world of Spans
12mEvaluation of Korean Text Entry Methods for Smartwatches
38mFonts, Emoji and Text Using Support Libraries
34mDemystifying ConstraintLayout
20mOne-Dimensional Handwriting: Inputting Letters and Words on Smart Glasses
27mSpeak your users' language: what to look out for when going global
21mInvestigating Text Legibility on Non-Rectangular Displays
