Re: [css3-text] grapheme clusters across element boundary

Looks like Firefox 9 does the best job with this, though not completely
with ZWJ. Safari and Opera don't handle any of it. Didn't try IE. [Using
MacOSX platform]

On Sat, Jan 14, 2012 at 11:05 PM, Peter Moulder <peter.moulder@monash.edu>wrote:

> Appended is a small test document demonstrating rendering of latin,
> devanagari and arabic-script strings where an element boundary or zwj
> occurs in the middle of (what would be) a grapheme cluster.
>
> Also available at
>
> http://bowman.infotech.monash.edu.au/~pmoulder/html-tests/split-grapheme.html
>
> pjrm.
>
>
> <!DOCTYPE html>
> <html>
> <head>
> <title>Test rendering of split grapheme clusters</title>
> <style type="text/css" media="all">
> td, th { text-align: center; padding: 0 0.25em; }
> td { font-size: 5em; font-family: "Times New Roman"; }
> </style>
> </head>
> <body>
> <table>
> <tr><th>Normal<br />(no zwj or&nbsp;spans)</th><th>With
> zwj</th><th>Spanned<br />(no zwj)</th><th>Zwj after each<br
> />boundary</th></tr>
> <tr>
> <td>u&#x308;</td>
> <td>u&zwj;&#x308;</td>
> <td><span style="color:green">u</span><span
> style="color:red">&#x308;</span></td>
> <td><span style="color:green">u</span><span
> style="color:red">&zwj;&#x308;</span></td>
> </tr>
> <tr>
> <td>&#x92a;&#x93f</td>
> <td>&#x92a;&zwj;&#x93f;</td>
> <td><span style="color:green">&#x92a;</span><span
> style="color:red">&#x93f</span></td>
> <td><span style="color:green">&#x92a;</span><span
> style="color:red">&zwj;&#x93f</span></td>
> </tr>
> <tr lang="ms" xml:lang="ms">
> <td>&#x62a;&#x645;&#x646;</td>
> <td>&#x62a;&zwj;&#x645;&zwj;&#x646;</td>
> <td><span style="color:green">&#x62a;</span><span
> style="color:red">&#x645;</span>&#x646;</td>
> <td><span style="color:green">&#x62a;</span><span
> style="color:red">&zwj;&#x645;</span>&zwj;&#x646;</td>
> </tr>
> </table>
> </body>
> </html>
>
>

Received on Sunday, 15 January 2012 16:08:33 UTC