braillespecs / braille-css

Braille CSS specification
http://braillespecs.github.io/braille-css
2 stars 1 forks source link

Horizontal positioning and leaders #21

Open bertfrees opened 9 years ago

bertfrees commented 9 years ago

Describe in more detail the behavior of the leader() function. Currently text that follows a leader is being right aligned at the right edge of the block. This is the most important use case of leaders, but it only allows for two "columns". Find out if there are other use cases and if maybe we need some kind of "tab stops" feature as known in word processors.

See http://braillespecs.github.io/braille-css/#leaders

bertfrees commented 6 years ago

The definition of the leader function could become

leader( <braille-string> [ , <position> [ , <alignment> ] ] )

where

The defaults are "100%" and "right".

This definition maps 1 on 1 to http://braillespecs.github.io/obfl/obfl-specification.html#L1207.

bertfrees commented 6 years ago

The position should be allowed to exceed 100%, which makes it possible to create a text indent on the last line on the right side.