braillespecs / braille-css

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

Letter spacing #15

Closed bertfrees closed 8 years ago

bertfrees commented 9 years ago

Add a section explaining how double letter spacing can be accomplished. In the simplest form double letter spacing means adding a space between each two characters. But sometimes it is desirable to keep certain characters together.

See http://snaekobbi.github.io/braille-css-spec/#h3_letter-spacing

bertfrees commented 9 years ago

One option is to make this a formatter feature which must be controlled through a dedicated 'letter-spacing' property (or alternatively through a top-level formatter setting).

The other option is to make this a translator feature which could be controlled either through a dedicated 'letter-spacing' property or through the 'text-transform' property (https://github.com/snaekobbi/braille-css-spec/issues/12) (or alternatively through a translator query). The translator would apply letter spacing by inserting non-breaking spaces and zero-width spaces without the renderer having to be aware of it.

The latter is probably the best solution because the translator is more likely to have the necessary information to apply letter spacing correctly.

bertfrees commented 9 years ago

Either way, we have to have a definition of "letter" somewhere (not necessarily in the CSS specification).

We could define "letter" as the smallest unit of a braille string which is "a single braille cell" (grapheme). A more advanced definition of a letter in braille would be the "sequence of braille cells that correspond to a single letter (grapheme) in the normal text". Or, in case we are dealing with contractions, "the smallest unit in a braille string that can be traced back unambiguously to a segment in the normal text".

bertfrees commented 9 years ago

Maybe we also need word-spacing.

bertfrees commented 8 years ago

See also http://snaekobbi.github.io/requirements/master/#4.3:36

bertfrees commented 8 years ago

See also https://botbot.me/freenode/snaekobbi/2015-10-21

bertfrees commented 8 years ago

Fixed by commit https://github.com/snaekobbi/braille-css-spec/commit/f9730a29547968789c2e3c003873c86c8ca32508

See http://snaekobbi.github.io/braille-css-spec/#h3_word-spacing-the-word-spacing-property and http://snaekobbi.github.io/braille-css-spec/#h3_letter-spacing-the-letter-spacing-property