Re: [w3c/manifest] Add members for localization (PR #1101)

@aphillips commented on this pull request.



> @@ -2298,7 +2556,9 @@ <h3>
         </h3>
         <p>
           The <dfn>application's name</dfn> is derived from either the
-          [=manifest/name=] member or [=manifest/short_name=] member.
+          [=manifest/name=] member or [=manifest/short_name=] member. The user

I'll second @dmurph's _truncating characters is actually fraught with weirdness_. 

Example. 🏴󠁧󠁢󠁳󠁣󠁴󠁿

The Scottish flag emoji is 7 code points. The JavaScript string length is 14. It's one grapheme (user perceived character, i.e. screen position). If the `short_name` limit is `short_name.length < 13`, the flag won't fit...

As a reminder, I18N's [guidelines about text truncation](https://www.w3.org/TR/international-specs/#char_truncation) apply to length limits. One has to be careful about what one is counting (bytes, code points, graphemes) to ensure that some languages are not disadvantaged because of how their writing system works (emoji makes for a great demo, but there are languages that use combining marks similar to the way emoji sequences work that have the same counting issue)

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/manifest/pull/1101#discussion_r1773542975
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/manifest/pull/1101/review/2325576440@github.com>

Received on Tuesday, 24 September 2024 15:00:10 UTC