Skip to content

Commit b0ad2ae

Browse files
committed
[css-text-3] Fix handling of Emoji in line break transformation rules per #337 (comment) (Emoji are weirdly inconsistent in how they're classified according to EAW.)
1 parent 6db74ac commit b0ad2ae

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

css-text-3/Overview.bs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -759,21 +759,26 @@ Characters and Letters</h3>
759759
<li>Otherwise, if the <a>East Asian Width property</a> [[!UAX11]] of both
760760
the character before and after the segment break is <code>F</code>,
761761
<code>W</code>, or <code>H</code> (not <code>A</code>),
762-
and neither side is Hangul or Emoji (Unicode property <code>Emoji</code>),
762+
and neither side is Hangul,
763763
then the segment break is removed.
764764
<li>Otherwise, if the <a>writing system</a> of the <a>segment break</a>
765765
is <a for=writing-system>Chinese</a>, <a for=writing-system>Japanese</a>, or Yi,
766766
and the character before or after the segment break
767767
is punctuation or a symbol (Unicode <a>general category</a> P* or S*)
768-
and has an <a>East Asian Width property</a> of <code>A</code>
769-
or is Emoji,
768+
and has an <a>East Asian Width property</a> of <code>A</code>,
770769
and the character on the other side of the segment break is
771770
<code>F</code>, <code>W</code>, or <code>H</code>,
772-
and not Hangul or Emoji,
771+
and not Hangul,
773772
then the segment break is removed.
774773
<li>Otherwise, the segment break is converted to a space (U+0020).
775774
</ul>
776775

776+
<p>
777+
For this purpose,
778+
Emoji (Unicode property <code>Emoji</code>)
779+
with an <a>East Asian Width property</a> of <code>W</code> or <code>N</code>
780+
are treated as having an <a>East Asian Width property</a> of <code>A</code>.
781+
777782
<p class="note">Note: The white space processing rules have already
778783
removed any tabs and spaces after the segment break before these checks
779784
take place.</p>

0 commit comments

Comments
 (0)