Re: [csswg-drafts] [css-text-4] [text-autospace] Spacing across element boundaries for BiDi content (#10803)

An example of this would be something like

```
一些中国字<bdi dir=rtl>HEBREW$SYMBOL$</bdi>中国字.
```

In visual order it would be
```
一些中国字$SYMBOL$WERBEH中国字.
```

If we insert the spaces before reordering, we get
```
一些中国字 $SYMBOL$WERBEH中国字.
```
instead of
```
一些中国字$SYMBOL$WERBEH 中国字.
```

I think visual-order separation is the right answer, but I'm not sure how important it is to get it right: it'll feel a bit weird either way since we're not setting apart the whole phrase, only half of it. (The autospace rules currently let symbols attach to both CJK and non-CJK contexts, but in this example it's clearly associated with the non-CJK context.) Curious if i18n has realistic examples.

I think the main things we need to ensure are:
- If both sides of a directional run require autospace, we autospace them appropriately.
- We never double-autospace either side.

-- 
GitHub Notification of comment by fantasai
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10803#issuecomment-2397534676 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 7 October 2024 17:47:36 UTC