Skip to content

Commit

Permalink
[css-text-decor] Switch text-emphasis skipped punctuation to all of P…
Browse files Browse the repository at this point in the history
…* except a small blacklist. #839
  • Loading branch information
fantasai committed Apr 9, 2018
1 parent e3fc364 commit 81d1a51
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 19 deletions.
31 changes: 20 additions & 11 deletions css-text-decor-3/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -732,17 +732,26 @@ Emphasis Mark Style: the 'text-emphasis-style' property</h3>
that combines with any combining characters.)

<li>Punctuation--specifically,
any <a>characters<a> that belong to the
Unicode Pc, Pd, Ps, Pe, Pi, or Pf <a>general categories</a> or
that belong to the Po <a>general category</a> and
have a <code>Sentence_Break</code> property of
<code>ATerm</code>, <code>Close</code>, <code>SContinue</code>, or <code>STerm</code>.

ISSUE: Semicolons should likely be categorized with punctuation here,
but the Unicode data file places them under <code>Sentence_Break=Other</code>.

ISSUE: This list needs review by JLTF/CLTF.
See <a href="https://unicode.org/cldr/utility/list-unicodeset.jsp?a=%5B%3AGeneral_category%3DPo%3A%5D%26%5B%5B%3ASentence_Break%3DATerm%3A%5D%5B%3ASentence_Break%3DSTerm%3A%5D%5B%3ASentence_Break%3DSContinue%3A%5D%5B%3ASentence_Break%3DClose%3A%5D%5D&g=Sentence_Break&i=">full list of characters</a>.
any <a>characters</a> that belong to the
Unicode P* <a>general category</a> and
do not <code>NFKD</code> normalize [[!UAX15]] to
any of the following symbols:
<table class="data">
<tr><td># <td>U+0023 <td>NUMBER SIGN
<tr><td>% <td>U+0025 <td>PERCENT SIGN
<tr><td><td>U+2030 <td>PER MILLE SIGN
<tr><td><td>U+2031 <td>PER TEN THOUSAND SIGN
<tr><td>٪ <td>U+066A <td>ARABIC PERCENT SIGN
<tr><td>؉ <td>U+0609 <td>ARABIC-INDIC PER MILLE SIGN
<tr><td>؊ <td>U+060A <td>ARABIC-INDIC PER TEN THOUSAND SIGN
<tr><td>& <td>U+0026 <td>AMPERSAND
<tr><td><td>U+204A <td>TIRONIAN SIGN ET
<tr><td>@ <td>U+0040 <td>COMMERCIAL AT
<tr><td>§ <td>U+00A7 <td>SECTION SIGN
<tr><td><td>U+00B6 <td>PILCROW SIGN
<tr><td><td>U+204B <td>REVERSED PILCROW SIGN
<tr><td>〽️ <td>U+303D <td>PART ALTERNATION MARK
</table>

<li>Characters belonging to the Unicode classes for control codes
and unassigned characters (Cc, Cf, Cn).
Expand Down
32 changes: 24 additions & 8 deletions css-text-decor-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -441,17 +441,33 @@ Emphasis Mark Skip: the 'text-emphasis-skip' property</h3>
<dd>
Skip punctuation.
Punctuation in this definition includes characters belonging to
the Unicode Pc, Pd, Ps, Pe, Pi, or Pf categories.
It also includes characters where the Unicode category is Po and
the <code>Sentence_Break</code> property [[!UAX29]] of the Unicode database
[[!UAX44]] is <code>ATerm</code>, <code>Close</code>, <code>SContinue</code>, or <code>STerm</code>.
the Unicode P* category
that are not defined as ''symbols'' (see below).

<dt><dfn>symbols</dfn>
<dd>Skip symbols.
Symbols in this definition includes characters belonging to
the Unicode S* category.
It also includes the Unicode Po category
that are not defined as ''<a>punctuation</a>'' above.
Symbols in this definition includes
all <a>typographic character units</a> belonging to
the Unicode S* <a>general category</a>
as well as any which are <code>NFKD</code>-equivalent [[!UAX15]]
to the following <a>characters</a> from the Unicode Po category:

<table class="data">
<tr><td># <td>U+0023 <td>NUMBER SIGN
<tr><td>% <td>U+0025 <td>PERCENT SIGN
<tr><td><td>U+2030 <td>PER MILLE SIGN
<tr><td><td>U+2031 <td>PER TEN THOUSAND SIGN
<tr><td>٪ <td>U+066A <td>ARABIC PERCENT SIGN
<tr><td>؉ <td>U+0609 <td>ARABIC-INDIC PER MILLE SIGN
<tr><td>؊ <td>U+060A <td>ARABIC-INDIC PER TEN THOUSAND SIGN
<tr><td>& <td>U+0026 <td>AMPERSAND
<tr><td><td>U+204A <td>TIRONIAN SIGN ET
<tr><td>@ <td>U+0040 <td>COMMERCIAL AT
<tr><td>§ <td>U+00A7 <td>SECTION SIGN
<tr><td><td>U+00B6 <td>PILCROW SIGN
<tr><td><td>U+204B <td>REVERSED PILCROW SIGN
<tr><td>〽️ <td>U+303D <td>PART ALTERNATION MARK
</table>

<dt><dfn>narrow</dfn>
<dd>Skip characters where the <code>East_Asian_Width</code> property [[!UAX11]]
Expand Down

0 comments on commit 81d1a51

Please sign in to comment.