- From: Addison Phillips <notifications@github.com>
- Date: Wed, 29 Nov 2023 07:46:25 -0800
- To: w3c/manifest <manifest@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/manifest/pull/1101/c1832168785@github.com>
@mgiuca noted: > From memory, @aphillips pointed out that we may not know the language's direction because languages are not set in stone. I think the overwhelmingly common case will be a known language, which means we should be able to derive dir from lang in all practical cases (and probably default to ltr if we don't recognize the language - the overwhelming majority of languages are LTR). We should have the dir member for being explicit, but I think in 99.9% of cases the site should not need to specify dir as it can be derived from language. Your specification should not derive direction from language unless there is no other alternative. This is not because languages are mutuable. You may permit an item that lacks separate direction metadata to attempt to use the language to estimate the direction or to act as a hint, but this should not be the default way of doing it. In fact, I18N recommends making the direction `auto` when the `dir` is not present at the item or document-default level instead of using directional estimation based on language. We explicitly recommend using `auto` instead of `ltr` as the default, since an unlabeled string that starts with a strongly RTL character is probably trying to tell you something 😉. We have extensive guidance in https://www.w3.org/TR/string-meta/ and we're working on an update to our guidance about manifests [here](https://deploy-preview-16--localizable-manifests.netlify.app/) (I hope to land this PR on Thursday) which you may find useful here. -- Reply to this email directly or view it on GitHub: https://github.com/w3c/manifest/pull/1101#issuecomment-1832168785 You are receiving this because you are subscribed to this thread. Message ID: <w3c/manifest/pull/1101/c1832168785@github.com>
Received on Wednesday, 29 November 2023 15:46:31 UTC