-
Notifications
You must be signed in to change notification settings - Fork 0
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
Support volumes #13
Comments
Any examples of how to use http://snaekobbi.github.io/braille-css-spec/master/obfl.html in practice? In particular, where would you put What I'm missing there as well is a way to generate the TOC layout in the first place, i.e. |
This is what I had in mind with the <body>
<section class="frontmatter">
<ul class="toc">
<li>
<a href="#section_1">...</a>
</li>
<li>
<a href="#section_1">...</a>
</li>
</ul>
</section>
<section class="bodymatter">
<h1 id="section_1">...</h1>
<p>
...
</p>
<h1 id="section_2">...</h1>
<p>
...
</p>
</section>
</body> ul.toc {
display: -obfl-toc;
-obfl-toc-range: document;
}
ul.toc li {
display: block;
}
ul.toc li a::after {
content: ' ' leader('⠒') ' ' target-counter(page, attr(href));
} The idea is to automatically detect the |
OK, so ignore toc-entry and its functionality? Also, this implies you have a TOC that is formatted like a list, as opposed to automatically generating the TOC for a braille volume based on e.g. the levels and headings structure. |
I can help you with the detection by the way, it's not very straightforward to do in XSL and I have done a similar thing before. |
To be clear: the This indeed implies you already have a TOC. Automatically generating the TOC is a feature we can add later but doesn't necessarily have to done with CSS. See also snaekobbi/sprints#69 (comment). |
Would it not be more straight-forward to do Or something similar? |
Here is part of a TOC as an example of how Dedicon marks this up (from a randomly selected book):
This would be printed unaltered. I don't think it makes sense to abstract a braille TOC from this. |
From a user perspective I would like to keep the CSS as simple as possible, and the system as smart as possible. Your proposal might be more straightforward from an implementation point of view (maybe), but for the user the Thanks for the Dedicon example TOC. If this is printed unaltered it does indeed not make any sense to mark it as |
Yes, the user will only care about the TOC range. My idea was to provide a sort of template for toc-entry’s. I guess this could go into a toc at-rule. Will elaborate on this tomorrow. |
Support the CSS features described in the section Volumes.
See pull request: daisy#61
To do:
Depends on
The text was updated successfully, but these errors were encountered: