[svgwg] Text with multiple x="" values should be shaped as if it was not broken (#631)

litherum has just created a new issue for https://github.com/w3c/svgwg:

== Text with multiple x="" values should be shaped as if it was not broken ==
Text with multiple x="" values causes the characters to be broken up, within a word, so that parts of the word are in one place and parts are in another place. However, some scripts (like Arabic) require shaping across the entire word in order to be legible. 

It's probably impossible to use things like kashidas to make text flow from one arbitrary place to another; however, we can at least require that the word be shaped correctly as if were placed contiguously.

This is conceptually similar to the hyphenation rules in [CSS level 3](https://drafts.csswg.org/css-text-3/#hyphenation). Those rules state:

> When shaping scripts such as Arabic are allowed to break within words due to hyphenation, the characters must still be shaped as if the word were not broken (see §5.6 Shaping Across Intra-word Breaks).

and provides this descriptive example:

For example, if the Uyghur word “داميدى” were hyphenated, it would appear as ![uyghur-hyphenate-joined](https://user-images.githubusercontent.com/918903/51226477-7b420a80-1904-11e9-8695-6bc97a9bb15d.png) not as ![uyghur-hyphenate-unjoined](https://user-images.githubusercontent.com/918903/51226485-8301af00-1904-11e9-8af1-fbbc3434bc8b.png).

The longer text in CSS is:

> When shaping scripts such as Arabic wrap at unforced soft wrap opportunities within words ... the characters must still be shaped (their joining forms chosen) as if the word were still whole.

Please view or discuss this issue at https://github.com/w3c/svgwg/issues/631 using your GitHub account

Received on Wednesday, 16 January 2019 04:33:00 UTC