Skip to content

Commit

Permalink
Merged in feature/PIP-60-bestanden-met-dtbook110dtd-worden (pull requ…
Browse files Browse the repository at this point in the history
…est #20)

Feature/PIP-60 bestanden met dtbook110dtd worden

Approved-by: Paul Rambags <[email protected]>
  • Loading branch information
PaulRambags committed Mar 20, 2018
2 parents d471422 + 64fbc1a commit 43fea3c
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 3,920 deletions.
1 change: 1 addition & 0 deletions src/main/resources/META-INF/catalog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<uri name="http://www.dedicon.nl/pipeline/modules/braille/library.xpl" uri="../xml/xproc/library.xpl"/>
<uri name="http://www.dedicon.nl/pipeline/modules/braille/default.scss" uri="../css/dedicon-default.scss"/>
<uri name="http://www.dedicon.nl/pipeline/modules/braille/symbols_code.xml" uri="../xml/symbols_code2009.xml"/>
<uri name="http://www.dedicon.nl/pipeline/modules/braille/dtbook110.dtd" uri="../dtd/dtbook110.dtd"/>
<nextCatalog catalog="org:daisy:pipeline:modules:braille:css-utils"/>
<nextCatalog catalog="org:daisy:pipeline:modules:braille:liblouis-utils"/>
<nextCatalog catalog="org:daisy:pipeline:modules:braille:liblouis-tables"/>
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/css/dedicon-default.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
/* level1 {
-obfl-keep-with-previous-sheets: 2;
-obfl-keep-with-next-sheets: 2;
}
} */
p {
volume-break-inside: -obfl-keep(1);
} */
}

/* --------------------------------------------------------------------------------
* Page layout
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/xml/xproc/dtbook-to-pef.xpl
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
<p:option name="temp-dir" select="''"/>

<p:import href="http://www.daisy.org/pipeline/modules/braille/dtbook-to-pef/library.xpl"/>
<p:import href="http://www.daisy.org/pipeline/modules/braille/xml-to-pef/library.xpl"/>
<p:import href="http://www.daisy.org/pipeline/modules/braille/common-utils/library.xpl"/>
<p:import href="http://www.daisy.org/pipeline/modules/braille/pef-utils/library.xpl"/>
<p:import href="http://www.daisy.org/pipeline/modules/file-utils/library.xpl"/>
<p:import href="http://www.daisy.org/pipeline/modules/common-utils/library.xpl"/>
Expand Down Expand Up @@ -288,7 +288,7 @@
<dedicon:remove-print-toc/>
</p:when>
<p:otherwise>
<p:identity/>
<dedicon:message severity="TRACE" message="Keeping print TOC"/>
</p:otherwise>
</p:choose>
<dedicon:message message="Applying fix for backslashes in attribute src"/>
Expand Down
6 changes: 4 additions & 2 deletions src/test/resources/pef/volumes-test-1.pef
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta xmlns:dc="http://purl.org/dc/elements/1.1/">
<dc:format>application/x-pef+xml</dc:format>
<dc:identifier>identifier?</dc:identifier>
<dc:date>2017-09-25</dc:date>
<dc:date>2018-03-20</dc:date>
<dc:title>Maximum number of sheets 1</dc:title>
<dc:language>nl</dc:language>
</meta>
Expand Down Expand Up @@ -38,7 +38,6 @@
<row>⠃⠇⠁⠃⠇⠁</row>
<row>⠃⠇⠁⠃⠇⠁</row>
<row>⠃⠇⠁⠃⠇⠁</row>
<row>⠃⠇⠁⠃⠇⠁</row>
</page>
</section>
</volume>
Expand All @@ -65,6 +64,9 @@
<row>⠃⠇⠁⠃⠇⠁</row>
<row>⠃⠇⠁⠃⠇⠁</row>
</page>
<page>
<row>⠃⠇⠁⠃⠇⠁</row>
</page>
</section>
</volume>
</body>
Expand Down
10 changes: 5 additions & 5 deletions src/test/resources/pef/volumes-test-2.pef
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta xmlns:dc="http://purl.org/dc/elements/1.1/">
<dc:format>application/x-pef+xml</dc:format>
<dc:identifier>identifier?</dc:identifier>
<dc:date>2017-10-20</dc:date>
<dc:date>2018-03-20</dc:date>
</meta>
</head>
<body>
Expand Down Expand Up @@ -38,10 +38,6 @@
<row>⠁⠁⠁⠁⠁</row>
<row>⠃⠃⠃⠃⠃⠤</row>
</page>
</section>
</volume>
<volume cols="8" rows="5" rowgap="0" duplex="true">
<section>
<page>
<row>⠃⠃⠃⠃⠃</row>
<row>⠁⠁⠁⠁⠁</row>
Expand All @@ -53,6 +49,10 @@
<row>⠁⠁⠁⠁⠁</row>
<row>⠃⠃⠃⠃⠃⠤</row>
</page>
</section>
</volume>
<volume cols="8" rows="5" rowgap="0" duplex="true">
<section>
<page>
<row>⠃⠃⠃⠃⠃</row>
<row>⠁⠁⠁⠁⠁</row>
Expand Down
3,907 changes: 0 additions & 3,907 deletions src/test/resources/xml/313542.xml

This file was deleted.

3 changes: 3 additions & 0 deletions src/test/resources/xml/volumes-test-2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ level1 {
level1, h1, p {
display: block;
}
p {
volume-break-inside: -obfl-keep(1);
}

docauthor {
display: none;
Expand Down
4 changes: 2 additions & 2 deletions src/test/xprocspec/test_css_translator.xprocspec
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
<x:expect label="result" type="compare" normalize-space="false">
<x:document type="inline">
<_ style="text-transform: none"><div xmlns="http://www.w3.org/1999/xhtml" style="{ display: block } @volume { @begin { counter-set: my-page; content: flow(title-page) flow(volume-toc); text-transform: auto } @end { counter-set: my-page; text-transform: auto } }">
<p style="display: block">⠨⠝⠕⠞ ⠏⠗⠑⠎⠑⠗⠧⠊⠝⠛ ⠺⠓⠊⠞⠑⠎⠏⠁⠉⠑</p>
<p xml:space="preserve" style="display: block; white-space: pre-wrap">⠨⠏⠗⠑⠎⠑⠗⠧⠊⠝⠛ ⠺⠓⠊⠞⠑⠎⠏⠁⠉⠑</p>
<p style="display: block; volume-break-inside: -obfl-keep(1)">⠨⠝⠕⠞ ⠏⠗⠑⠎⠑⠗⠧⠊⠝⠛ ⠺⠓⠊⠞⠑⠎⠏⠁⠉⠑</p>
<p xml:space="preserve" style="display: block; volume-break-inside: -obfl-keep(1); white-space: pre-wrap">⠨⠏⠗⠑⠎⠑⠗⠧⠊⠝⠛ ⠺⠓⠊⠞⠑⠎⠏⠁⠉⠑</p>
</div></_>
</x:document>
</x:expect>
Expand Down

0 comments on commit 43fea3c

Please sign in to comment.