Closed travisleithead closed 5 years ago
I personally like this idea very much. However, please take into account following implementational hiccups:
1. Browser side- To properly enforce direction of text based on language one must find out natural text direction for given language (i.e. LTR for English, RTL for Farsi). As you may know languages can be written using different script and natural direction is actually an attribute of script. Some ambiguity exists since the same language (i.e. Uzbek) can be expressed using different scripts with different natural directions (in case of Uzbek: Arabic - RTL, English/Cyrillic - LTR). But in any case we need to trace: [Language -> Script -> Natural text direction] chain to properly enforce text direction. This chain is well defined in CLDR (http://cldr.unicode.org/) and can be even traced programmatically. For example using ICU (http://site.icu-project.org/): see tickets: http://bugs.icu-project.org/trac/ticket/8633 and http://bugs.icu-project.org/trac/ticket/10736
2. Web app- Not always information about content language is available to web app. Thus in order to assign proper lang value we need to identify the language. While it is not a new task and for some languages it is even easier than for others (using just encoding information), in general it is a very hard problem (especially in the multilingual environment) and by all means a computationally not cheap operation.
maintain assignment, milestone set.
We're closing this issue on the W3C HTML specification because the W3C and WHATWG are now working together on HTML, and all issues are being discussed on the WHATWG repository.
If you filed this issue and you still think it is relevant, please open a new issue on the WHATWG repository and reference this issue (if there is useful information here). Before you open a new issue, please check for existing issues on the WHATWG repository to avoid duplication.
If you have questions about this, please open an issue on the W3C HTML WG repository or send an email to public-html@w3.org.
Moved from Bugzilla: https://www.w3.org/Bugs/Public/show_bug.cgi?id=18490
@amire80