Open Bug 1342835 Opened 7 years ago Updated 2 years ago

Don not apply spacing between the joined typographic letter units of cursive scripts when letter-spacing is not normal

Categories

(Core :: Layout: Text and Fonts, defect, P3)

defect

Tracking

()

People

(Reporter: chenpighead, Unassigned)

References

()

Details

Attachments

(1 file)

Attached file test
STR:
Put some texts which include the sequence of joined typographic letter units of cursive scripts such as Arabic, ex. مممممع in a web page. Apply letter-spacing property.

Expect:
The sequence مممممع should has no gaps in it

Actual:
The sequence مممممع has gaps in it

I've uploaded a test file (see attached) which refers to CSSWG's text-justify test [1].


According to the CSS Text 3 letter-spacing specification [2],

```
if the UA cannot expand text from a cursive script without breaking its cursive connections, it must not apply spacing between any pair of that script’s typographic letter units at all.
```

A similar description can be found in text-justify [3] as well,

```
Justification must not introduce gaps between the joined typographic letter units of cursive scripts such as Arabic
```

It seems both of them specify that we should not introduce any gaps in these cursive scripts at all.



[1] https://www.w3.org/International/tests/repo/run?base=css-text-3&batch=text-align&test=text-justify/text-justify-004.html
[2] https://drafts.csswg.org/css-text-3/#cursive-tracking
[3] https://drafts.csswg.org/css-text-3/#justify-cursive
Priority: -- → P3

Is there a definitive list of Unicode scripts that should be considered "cursive" for this purpose?

The ones start with https://gist.github.com/ebraminio/727689919dbc485e023fe054bdd7c19b/ddc114e409b16ff42622273cdf822bef1287dc18 0b11 0b01 the left most bit is IS_CURSIVE_WRITING and the next is IS_CONNECTED_WRITING and apparently both used for isScriptOkForLetterspacing blacklist.

Was going to create a new file as forgot that have done already so worth a ping I guess.

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: