- From: r12a via GitHub <sysbot+gh@w3.org>
- Date: Sun, 02 Feb 2020 17:28:49 +0000
- To: public-i18n-archive@w3.org
r12a has just created a new issue for https://github.com/w3c/alreq: == q element produces incorrect quotation marks when language changes == When an Arabic or Persian page contains a quotation in another language, the quotation marks used around that quotation (and inside it for embedded quotes) should be the Arabic or Persian ones – not those of the language of the quotation. Currently, if the language of the quotation is declared on the `q` tag in HTML using the `lang` attribute, browsers instead set the quotation marks based on the language of the quote. For example, if English text is quoted in a Persian sentence surrounded by just `<q>`, the quotation marks will be correct: <span dir="rtl" lang=“fa”>یک «<span dir="ltr">two ‹three›</span>».</span> However, if `lang=“en”` is added to the `q` tag, the result becomes: <span dir="rtl" lang=“fa”>یک “<span dir="ltr">two ‘three’</span>”.</span> Here is <a href="https://w3c.github.io/i18n-tests/exploratory/vanilla/?text=%3Cdiv%3E%DB%8C%DA%A9%20%3Cq%20dir%3D%22ltr%22%3Etwo%20%3Cq%3Ethree%3C%2Fq%3E%3C%2Fq%3E%3C%2Fdiv%3E%0A%3Cdiv%3E%DB%8C%DA%A9%20%3Cq%20dir%3D%22ltr%22%20lang%3D%22en%22%3Etwo%20%3Cq%3Ethree%3C%2Fq%3E%3C%2Fq%3E%3C%2Fdiv%3E%0A&lang=fa&fontSize=45&width=455&height=133">a test</a>. There are also tests and results [in the i18n test suite](https://w3c.github.io/i18n-tests/results/the-q-element.html#ml_nesting). This incorrect behaviour is currently dictated by the HTML specification, so <a href="https://github.com/whatwg/html/issues/3636#issuecomment-384340053">an issue</a> has been raised to change the spec. Please view or discuss this issue at https://github.com/w3c/alreq/issues/224 using your GitHub account
Received on Sunday, 2 February 2020 17:28:51 UTC