Na so one figure fit be longer for program pass one letter. For copying, deleting, and character limit, dis thing get practical meaning. Make we look three specific examples to see wetin elements wey you suppose keep together.
Make we check am with di technologist
Di 👩💻 sequence dey consist of woman, connector, and laptop character. Di ZWJ code point na U+200D; e no be visible writing mark by itself. Di renderer fit draw di supported sequence as one shape. But ZWJ wey you insert between any characters no go automatically create new emoji wey go work everywhere. Source: Unicode Emoji – Emoji ZWJ Sequences
| Visible example | Order of code points | Components of di sequence |
|---|---|---|
| 👩💻 | U+1F469, U+200D, U+1F4BB | Woman, connector, laptop. |
| 👨🍳 | U+1F468, U+200D, U+1F373 | Man, connector, character wey dey indicate cooking. |
| 👩🏽💻 | U+1F469, U+1F3FD, U+200D, U+1F4BB | Woman, skin tone modifier, connector, laptop. |
For di third row, di skin tone modifier dey after di woman character. E dey do different job pass di connector. For example, di 👋🏽 waving hand get skin tone, but no ZWJ inside: choosing tone alone no go make one sign into ZWJ sequence. Di country flag letter pairs also dey consist of plenty elements, but dem dey follow different joining rule.
Wetin "one character" mean?
When you dey read, you fit perceive as one figure wetin di program dey store as multiple code points. Di Unicode text segmentation rules dey handle such groups wey user dey perceive as one unit. Di technical name na grapheme cluster. Source: Unicode Text Segmentation
So when you dey check di length limit of one input field, ask three different questions: how many visible units dey, how many code points dem dey consist of, and wetin units di program dey count? Di "maximum ten characters" label dey give little information if di interface dey count something else pass wetin di reader expect.
Try am for empty note: paste di 👩🏽💻 figure, then delete am. E go disappear all at once, or person, laptop, or tone sign go remain behind? You go see di editor behavior from here. When you dey shorten important text, check di part wey remain too.
Why e fit scatter when you copy am?
Two checking directions dey useful. One na display: whether di same full sequence dey look like multiple images for another program too? Di other na data: whether di sequence elements remain during copying and saving? Di two cases fit look similar externally, while dem dey need different fix.
First, copy di whole sign go inside empty note, then copy am back. After dat, try one simple smile too. If na di complex shape only dey change, put di specific sequence and name of both apps for di error report. Screenshot dey show wetin you see, but text wey you paste dey make it possible to check di original characters.
Keep am together when you dey copy and shorten
No cut di text for di invisible middle of di figure. When you dey edit, select di whole emoji, and check di shortened version too. When you dey build program, e better to choose text processing wey dey handle character boundaries as user perceive dem, then test am with specific complex signs.
Di test before publishing go be simple: put one basic smile, one skin-tone hand, and one ZWJ sequence for di test text. Check saving, reloading, and deleting. Di guide about emojis wey dey show as square and about SMS character boundary dey break down di two related debugging situations.
Carry di main thing with you
Three-question quiz
Try how you go apply wetin you read. Select one answer for each question; every correct answer dey worth one point. Di evaluation dey give feedback for dis three situations, wey no dey store or send your answers.
Start by breaking down di technologist: woman, ZWJ, and laptop.
Start by breaking down di technologist: woman, ZWJ, and laptop.
Check which component or debugging data dey miss.
For di three situations, you treat di figure and di stored sequence separately; try copying and deleting for one note.
Solutions and explanations
- Di program dey count different unit pass di number of visible shapes. Di woman, ZWJ, and laptop three code points fit form one visible figure together.
- Invisible connector between di elements wey go show together. Di connector be part of di sequence, and you need rendering support for di combined drawing.
- Di sequence wey you fit paste, di look, and di name of di apps wey involve. Di data and di display together dey help to find where di emoji dey change.
Count your correct answers: each one dey worth one point. Skipped answer na zero point.
- 3 points: For di three situations, you treat di figure and di stored sequence separately; try copying and deleting for one note.
- 2 point: Check which component or debugging data dey miss.
- 0–1 point: Start by breaking down di technologist: woman, ZWJ and laptop.
