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

CSS-klasse for sperret tekst #4

Open
josteinaj opened this issue Sep 4, 2018 · 1 comment
Open

CSS-klasse for sperret tekst #4

josteinaj opened this issue Sep 4, 2018 · 1 comment
Assignees
Labels
Milestone

Comments

@josteinaj
Copy link
Member

Flyttet fra nlbdev/nordic-epub3-dtbook-migrator#335:

Letter-spacing is sometimes used to increase readability and for visual effect. In some cases it is also be used for emphasis, although it is not recommended for that use.

Norwegian braille has special rules for handling tracked text differently than italics and bold, and other braille standards might also. So it could be convenient to specify how tracked text should be marked up, even though I don't think this is a common occurence in books nowadays.

I think this maps best to the <i> element. From developer.mozilla.org:

The HTML <i> Element represents a range of text that is set off from the normal text for some reason, for example, technical terms, foreign language phrases, or fictional character thoughts. It is typically displayed in italic type.

Text tracking should not be combined with italics (for readability reasons), so if we use <i> then the default italics style should be reset.

For instance, this text:

The term   p r o s e   c o n t e n t   is defined above.

could be marked up as:

<p>The term <i class="spaced">prose content</i> is defined above.</p>

with the CSS:

.spaced {
    font-style: normal;
    letter-spacing: 0.5em;
    padding-left: 0.5em;
    padding-right: 0.5em;
}
@GauteR GauteR self-assigned this Sep 30, 2019
@GauteR GauteR transferred this issue from nlbdev/nlbpub Sep 30, 2019
@GauteR GauteR added this to the v2 milestone Sep 30, 2019
@GauteR GauteR added the forbedring New feature or request label Sep 30, 2019
@GauteR GauteR removed their assignment Jan 28, 2020
@josteinaj
Copy link
Member Author

@eliseaas er dette noe som bør inn i revisjon av retningslinjene?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants