Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

q element produces incorrect quotation marks when language changes #22

Open
r12a opened this issue Jul 10, 2020 · 1 comment
Open

q element produces incorrect quotation marks when language changes #22

r12a opened this issue Jul 10, 2020 · 1 comment

Comments

@r12a
Copy link
Contributor

r12a commented Jul 10, 2020

This issue is common across all languages that use the q element.

When an English page contains a quotation in another language, the quotation marks used around that quotation (and inside it for embedded quotes) should be the English ones – not those of the language of the quotation. The same applies for other languages.

The GAP

Currently, if the language of the quotation is declared on the q tag in HTML and that tag has a lang attribute, browsers instead set the quotation marks based on the language of the quote.

Quotations work fine in a sentence that is all in the same language. For example, the markup for this Georgian text:

<span lang="ka">ერთი <q>ორი <q>სამი</q></q></span>

will result in:

ერთი „ორი «სამი»“

However, if the quote is in English and lang="en" is added to the first q tag, the result becomes:

ერთი “two ‘three’”

whereas it should be:

ერთი „two «three»“

This is the case for Gecko, Blink, and WebKit.

Tests & results

Interactive test, When an embedded quote is in a different language, the quotation marks should be those of the main body, even if the language of the quote is declared using a lang attribute.

i18n test suite, Multilingual nesting.

Action taken

This incorrect behaviour was initially dictated by the HTML specification. issue 3636 was raised to change the spec. In the end the entire section was removed from the HTML spec, and HTML now relies on CSS for this behaviour.

css-content says that If a quotation is in a different language than the surrounding text, it is customary to quote the text with the quote marks of the language of the surrounding text, not the language of the quotation itself., however it is non-normative text.

Issue 5478 Open, requests that this be made normative, and has been agreed by the CSS WG.

Browser bug reports:
GeckoBlinkWebkit

Outcomes

tbd

Priority

Marking this as advanced because it's possible, though not always as convenient, to use Unicode characters instead of the q element.

@r12a
Copy link
Contributor Author

r12a commented Jul 10, 2020

The first comment in this issue contains text that will automatically appear in one or more gap-analysis documents as a subsection with the same title as this issue. Any edits made to that comment will be immediately available in the document. Proposals for changes or discussion of the content can be made in comments below this point.

Relevant gap analysis documents include:
Arabic/PersianCatalanInuktitut/CreeCherokeeChineseGeorgianGreekJapaneseGermanFrenchHungarianOsage

@r12a r12a added s:latn Latin (script) s:grek Greek (script) s:geor Georgian (script) l:el Greek l:fr French l:de German l:hu Hungarian l:ka Georgian l:nl Dutch l:ca Catalan l:no Norwegian doc:latn Latin script labels Jun 27, 2024
@r12a r12a added s:cyrl Cyrillic script l:ru Russian l:uk Ukrainian l:uz Uzbek l:bg Bulgarian l:sr Serbian doc:cyrl Cyrillic l:az-cyrl Azeri with Cyrillic script labels Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Bug fix in progress
Development

No branches or pull requests

1 participant