W3C home > Mailing lists > Public > public-svg-issues@w3.org > November 2018

Re: [svgwg] Character counting in text 'x', 'y', 'dx', 'dy', and 'rotate' attributes.

From: r12a via GitHub <sysbot+gh@w3.org>
Date: Tue, 13 Nov 2018 10:52:10 +0000
To: public-svg-issues@w3.org
Message-ID: <issue_comment.created-438222690-1542106329-sysbot+gh@w3.org>
> As far as I understood, @r12a, @Tavmjong and @fantasai support unicode code points because they are more robust and stable.

For general counting of characters, counting characters is often the best, since it's more reliable.

For automatically segmenting text in order to display it, i think i prefer Edge's behaviour, which seems to be using grapheme clusters augmented with tailoring rules to capture full indic conjunct-based orthographic syllables in devanagari.  (I don't know what secret sauce they are using, but i added an extra test, and note that it also avoids treating Tamil consonant clusters as a unit (which is good, see https://github.com/w3c/iip/issues/18 for details, if you need them)).

-- 
GitHub Notification of comment by r12a
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/537#issuecomment-438222690 using your GitHub account
Received on Tuesday, 13 November 2018 10:52:11 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 13 November 2018 10:52:13 UTC