Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inline-base direction #261

Open
r12a opened this issue Sep 9, 2016 · 4 comments
Open

inline-base direction #261

r12a opened this issue Sep 9, 2016 · 4 comments
Assignees
Labels
i18n-needs-resolution Issue the Internationalization Group has raised and looks for a response on. Needs editing SVG Core Text chapter

Comments

@r12a
Copy link

r12a commented Sep 9, 2016

11.1.1. Definitions
https://svgwg.org/svg2-draft/text.html#TermInlineBaseDirection

inline-base direction
The primary direction in which content is ordered within a line or part of a line of text. It defines the "start" and "end" sides of a line or part of a line of text (relevant, for example to how the text-anchor property is applied). It is determined by the direction property. (Note: the ordering of characters in a line of text is primary controlled by the Unicode bidi algorithm and not the inline-base direction.)

Not sure i understand the point in the last sentence (to which i added bolding). Depending on what characters are involved, it seems to me that the inline base direction is equally important as the bidi algorithm in laying out bidirectional text, since it informs the bidi algorithm about how to layout out the text.

@r12a r12a added the i18n-needs-resolution Issue the Internationalization Group has raised and looks for a response on. label Sep 9, 2016
@AmeliaBR AmeliaBR added this to the SVG Core clean-up milestone Sep 9, 2016
@nikosandronikos
Copy link
Member

I think that text is trying to make a distinction between ordering at the shaping level and the overall direction of word flow? I agree it's confusing and your understanding matches mine..

@nikosandronikos
Copy link
Member

@Tavmjong Can we just reference the CSS Definition here?

@Tavmjong
Copy link
Contributor

The bolded text could be rewritten to be clearer. It comes from SVG 1.1. The text is meant to warn, for example, that hebrew/arabic characters are laid out right-to-left regardless of the value of 'direction'.

@r12a
Copy link
Author

r12a commented Apr 24, 2017

Ah, ok. So something like:

A sequence of strongly-typed characters with the same direction will form a directional run, in which the characters are displayed visually in an order that corresponds to the directional type that they share. Thus an uninterrupted sequence of Hebrew letters will always be read from right to left. This ordering is produced by the Unicode Bidirectional Algorithm, and is independent of the setting of the inline-base direction. The inline-base direction, however, affects the order in which multiple different directional runs are displayed, and the positioning of weak or neutral characters that occur between directional runs with different directions.

(It glosses over the fact that two sequences of Hebrew letters with a space or punctuation between them becomes a single directional run.)

@boggydigital boggydigital modified the milestones: SVG Core clean-up, SVG 2.1 Working Draft Jun 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
i18n-needs-resolution Issue the Internationalization Group has raised and looks for a response on. Needs editing SVG Core Text chapter
Projects
None yet
Development

No branches or pull requests

5 participants