W3C home > Mailing lists > Public > public-html@w3.org > July 2011

[Bug 13417] New: i18n-ISSUE-139: Multilingual q nesting

From: <bugzilla@jessica.w3.org>
Date: Thu, 28 Jul 2011 17:17:31 +0000
To: public-html@w3.org
Message-ID: <bug-13417-2495@http.www.w3.org/Bugs/Public/>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=13417

           Summary: i18n-ISSUE-139: Multilingual q nesting
           Product: HTML WG
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTML5 spec (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: public-i18n-core@w3.org
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-wg-issue-tracking@w3.org,
                    public-html@w3.org


4.6.7 The q element
http://www.w3.org/TR/html5/text-level-semantics.html#the-q-element

Not discussed in the i18n WG yet, but tracked by i18n tracker.


[I'm putting this here as a placeholder, since we're near to the end of last
call, and i need more time to consider and discuss but will be away on
vacation.]

I'm wondering whether we need a way to reset the embedding levels of quotes. 
This may involve markup, rather than just CSS (that's what I need to think more
about).

Here's the reason:

If you have the following CSS:

:lang(en) > * { quotes: '"' '"' "'" "'"; }
:lang(no) > * { quotes: "«" "»" '"' '"' }

And you have 

<p lang=no>Some Norwegian text <q>more norwegian <q>more norwegian</q></q>.</p>

You'd expect to see

Some Norwegian text «more norwegian "more norwegian"».

which perfectly fine.

But if you had 

<p lang=en>Some English text <q lang=no>Some norwegian <q>more
norwegian</q></q>.</p>

Then I think you'd see 

Some English text "Some norwegian "more norwegian"".

I'd have thought that the quotes surrounding the text 'more norwegian' here
should be surrounded by «...». This could maybe be done by a rule that says
that if a q element carries a lang attribute, the next embedded q attribute
should use the highest level quote marks. 

Or perhaps it needs some attribute to reset the levels?  (which is why this
comment is here)

In addition, maybe that would also give you more control over how the quotes
are used in other situations (such as to replicate the original text) -
although perhaps that's best achieved using special class names or just by
avoiding q altogether.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Thursday, 28 July 2011 17:17:32 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:17:37 GMT