Revision: e88f7aaad21a
Branch: default
Author:
bert...@gmail.com
Date: Mon Mar 17 11:36:44 2014 UTC
Log: Edited wiki page ZedAIToPEFUsage through web user interface.
http://code.google.com/p/daisy-pipeline/source/detail?r=e88f7aaad21a&repo=wiki
Modified:
/ZedAIToPEFUsage.wiki
=======================================
--- /ZedAIToPEFUsage.wiki Wed May 8 10:08:31 2013 UTC
+++ /ZedAIToPEFUsage.wiki Mon Mar 17 11:36:44 2014 UTC
@@ -319,7 +319,7 @@
...
}}}
-A table of contents can be rendered in a typical layout with page numbers
on the right and leaders between entries and page numbers. A precondition
is that headings in the text are referenced within the table of contents
with a `ref` attribute. If print page numbers are present in the braille
output, they are included in the table of contents too, right after the
braille page numbers. Leaders are lines of '⠄' dots. Let's look at the CSS:
+A table of contents can be rendered in a typical layout with page numbers
on the right and leaders between entries and page numbers. A precondition
is that headings in the text are referenced within the table of contents
(e.g. with an attribute). If print page numbers and/or braille page numbers
are present in the braille output, they can be included in the table of
contents too. The pattern of leaders can be configured. Let's look at the
CSS:
{{{
toc > h {
@@ -329,15 +329,19 @@
margin-bottom: 1;
}
toc > entry > ref {
- display: toc-item;
+ display: block;
margin-left: 2;
text-indent: -2;
+ content: target-text(attr(ref))
+ leader('⠤')
+ target-string(attr(ref), print-page)
+ target-counter(attr(ref), braille-page)
}
}}}
-Entries in a table of contents are indicated with '`display:toc-item`'. It
must be exactly the elements with the `ref` attributes, otherwise it won't
work. Note that it is the text in the _referenced_ element that will be put
in the resulting table of contents, any text within the _referencing_
elements will be ignored. (In this case, the first entry will say "Chapter
I. ..." and not "I. ...".) Because all page numbers are right aligned,
entries can only have a `margin-left` and a `text-indent` property.
+With the `content` property we are dropping the original text of the
_referencing_ elements and copying the text of the _referenced_ elements.
-The use of `toc-item` is not limited to tables of contents; any kind of
list that references page numbers is a candidate. Think of indices, lists
of figures, list of tables, etc.
+The use is not limited to tables of contents; any kind of list that
references page numbers is a candidate. Think of indices, lists of figures,
list of tables, etc.
==== Example 6: Page layout ====