generated-scripts.dtbook-to-pef.xpl Maven / Gradle / Ivy
Show all versions of mod-nlb Show documentation
DTBook til PEF (NLB)
Konverterer en DTBook til PEF.
- Name:
- Jostein Austvik Jacobsen
- Organization:
- NLB
- E-mail:
- [email protected]
- Name:
- Ammar Usama
- Organization:
- NLB
- E-mail:
- [email protected]
DTBook
Tekstformatering: Punktstandard
Tekstformatering: Orddeling
When enabled, will automatically hyphenate text.
Makes the variable `$hyphenation` available in style sheets and includes the following rule by
default:
```
@if $hyphenation {
:root {
hyphens: auto;
}
}
```
Tekstformatering: Linjeavstand
'single' or 'double' line spacing.
Makes the variable `$line-spacing` available in style sheets and includes the following rule by
default:
```
@if $line-spacing == double {
:root {
line-height: 2;
}
}
```
Tekstformatering: Stor bokstav-tegn
When enabled, will indicate capital letters.
Makes the variable `$capital-letters` available in style sheets and includes the following rule by
default:
```
@if $capital-letters != true {
:root {
text-transform: lowercase;
}
}
```
Layout: CSS-stilark
Valgfritt stilark som kan brukes for å legge til CSS-regler. NLBs standard-stilark brukes alltid, dette stilarket kommer i tillegg.
Layout: Sidebredde
The number of columns available for printing.
Makes the variable `$page-width` available in style sheets and includes the following rule by default:
```
@page {
size: $page-width $page-height;
}
```
Layout: Sidehøyde
The number of rows available for printing.
Makes the variable `$page-height` available in style sheets and includes the following rule by default:
```
@page {
size: $page-width $page-height;
}
```
Layout: Tosidig trykk
When enabled, will print on both sides of the paper.
Blokkelementer: Inkluder bildetekst og tabelltekst
When enabled, will include captions for images, tables, and so on.
Makes the variable `$include-captions` available in style sheets and includes the following rule by
default:
```
caption {
display: if($include-captions, block, none);
}
```
Blokkelementer: Inkluder alternativ tekst for bilder
When enabled, will include the alt text of the images. When disabled, the images will be completely removed.
Makes the variable `$include-images` available in style sheets and includes the following rule by
default:
```
@if $include-images {
img::after {
content: attr(alt);
}
}
```
Blokkelementer: Mellomrom før og etter `<linegroup>`
`<linegroup>` brukes for eksempel for hvert vers i et dikt.
Tekstelementer: Inkluder noter
Tekstelementer: Inkluder produsentkommentarer
When enabled, production notes are included in the content.
Makes the variable `$include-production-notes` available in style sheets and includes the following
rule by default:
```
prodnote {
display: if($include-production-notes, block, none);
}
```
Sidenummer: Vis punktskrift-sidenummer
Makes the variable `$show-braille-page-numbers` available in style
sheets. In order to use the variable include a rule like the following in your custom
style sheet:
```
@if $show-braille-page-numbers {
@page {
@top-right {
content: counter(page);
}
}
}
```
Sidenummer: Vis original-sidenummer
Makes the variable `$show-print-page-numbers` available in style
sheets and includes the following rule by default:
```
@if $show-print-page-numbers {
pagenum {
string-set: print-page content();
}
}
```
In order to use the `print-page` string include a rule like the following in your custom style
sheet:
```
@page {
@bottom-right {
content: string(print-page);
}
}
```
Generert innhold: Dybde på innholdsfortegnelse
The depth of the table of contents hierarchy to include. '0' means no table of contents.
A table of contents will be generated from the heading elements present in the document: from `h1`
elements if the specified value for "depth" is 1, from `h1` and `h2` elements if the specified value
is 2, etc. The resulting table of contents has the following nested structure:
```
<list id="generated-document-toc">
<li>
<a href="#ch_1">Chapter 1</a>
<list>
<li>
<a href="#ch_1_1">1.1</a>
...
</li>
<li>
<a href="#ch_1_2">1.2</a>
...
</li>
...
</list>
</li>
...
</list>
```
Another one of these is generated but with ID `generated-volume-toc`. `ch_1`, `ch_1_2` etc. are the
IDs of the heading elements from which the list was constructed, and the content of the links are
exact copies of the content of the heading elements. By default the list is not rendered. The list
should be styled and positioned with CSS. The following rules are included by default:
```
#generated-document-toc {
flow: document-toc;
display: -obfl-toc;
-obfl-toc-range: document;
}
#generated-volume-toc {
flow: volume-toc;
display: -obfl-toc;
-obfl-toc-range: volume;
}
```
This means that a document range table of contents is added to the named flow called "document-toc",
and a volume range table of contents is added to the named flow called "volume-toc". In order to
consume these named flows use the function `flow()`. For example, to position the document range
table of contents at the beginning of the first volume, and to repeat the volume range table of
content at the beginning of every other volume, include the following additional rules:
```
@volume {
@begin {
content: flow(volume-toc);
}
}
@volume:first {
@begin {
content: flow(document-toc);
}
}
```
Plassering av innhold: Plassering av kolofon/metadata
**Not implemented**
Hefter: Største antall sider
The maximum number of sheets in a volume.
Makes the variable `$maximum-number-of-sheets` available in style sheets and includes the following
rule by default:
```
@volume {
max-length: $maximum-number-of-sheets;
}
```
PEF
Output directory for the PEF
Forhåndsvisning
Output directory for the HTML preview
Midlertidige filer
Directory for storing temporary files during conversion.