-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#106: Added element <toc-text> as child element of <toc-entry>.
- Loading branch information
1 parent
f932a61
commit 178f95c
Showing
7 changed files
with
195 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
integrationtest/org/daisy/dotify/formatter/test/resource-files/dp2/toc-text-expected.pef
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<pef xmlns="http://www.daisy.org/ns/2008/pef" version="2008-1"> | ||
<head> | ||
<meta> | ||
<dc:title xmlns:dc="http://purl.org/dc/elements/1.1/">toc-text</dc:title> | ||
<dc:description xmlns:dc="http://purl.org/dc/elements/1.1/">Tests toc-text.</dc:description> | ||
<dc:format xmlns:dc="http://purl.org/dc/elements/1.1/">application/x-pef+xml</dc:format> | ||
</meta> | ||
</head> | ||
<body> | ||
<volume cols="15" rows="6" rowgap="0" duplex="false"> | ||
<section> | ||
<page> | ||
<row>⠼⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠼⠃</row> | ||
<row>⠿⠿⠿⠿⠀⠼⠚⠀⠼⠁</row> | ||
<row>⠿⠿</row> | ||
<row>⠿⠿⠀⠀⠀⠀⠀⠼⠃</row> | ||
<row>⠿⠿⠿⠿</row> | ||
</page> | ||
</section> | ||
<section> | ||
<page> | ||
<row>⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀</row> | ||
<row>⠿⠿</row> | ||
<row>⠤⠤⠤⠤⠤⠀⠤⠤⠤⠤⠤</row> | ||
<row>⠤⠤⠤⠤⠤⠀⠤⠤⠤⠤⠤</row> | ||
<row>⠤⠤⠤⠤⠤⠀⠤⠤⠤⠤⠤</row> | ||
<row>⠤⠤⠤⠤⠤⠀⠤⠤⠤⠤⠤</row> | ||
</page> | ||
<page> | ||
<row>⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀</row> | ||
<row>⠿⠿</row> | ||
<row>⠤⠤⠤⠤⠤⠀⠤⠤⠤⠤⠤</row> | ||
<row>⠤⠤⠤⠤⠤⠀⠤⠤⠤⠤⠤</row> | ||
<row>⠤⠤⠤⠤⠤⠀⠤⠤⠤⠤⠤</row> | ||
<row>⠤⠤⠤⠤⠤⠀⠤⠤⠤⠤⠤</row> | ||
</page> | ||
<page> | ||
<row>⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀</row> | ||
<row>⠿⠿⠿</row> | ||
<row>⠤⠤⠤⠤⠤⠀⠤⠤⠤⠤⠤</row> | ||
<row>⠤⠤⠤⠤⠤⠀⠤⠤⠤⠤⠤</row> | ||
</page> | ||
</section> | ||
</volume> | ||
</body> | ||
</pef> |
52 changes: 52 additions & 0 deletions
52
...iontest/org/daisy/dotify/formatter/test/resource-files/dp2/toc-text-input-deprecated.obfl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<obfl xmlns="http://www.daisy.org/ns/2011/obfl" version="2011-1" xml:lang="und" hyphenate="false"> | ||
<meta> | ||
<dc:title xmlns:dc="http://purl.org/dc/elements/1.1/">toc-text-input-deprecated</dc:title> | ||
<dc:description xmlns:dc="http://purl.org/dc/elements/1.1/">Tests toc-entry elements without a toc-text child element (deprecated, #106).</dc:description> | ||
</meta> | ||
<layout-master name="main" duplex="false" page-width="15" page-height="6"> | ||
<default-template> | ||
<header> | ||
<field> | ||
<marker-reference marker="marker" direction="forward" scope="sequence"/> | ||
</field> | ||
<field> | ||
<marker-reference marker="marker" direction="backward" scope="sequence"/> | ||
</field> | ||
</header> | ||
<footer/> | ||
</default-template> | ||
</layout-master> | ||
<table-of-contents name="toc"> | ||
<toc-entry ref-id="ch_1"> | ||
⠿⠿⠿⠿ <evaluate expression="(- 1 1)"/> | ||
<page-number ref-id="ch_1" number-format="default"/> | ||
<marker class="marker" value="1"/> | ||
</toc-entry> | ||
<toc-entry ref-id="ch_2"> | ||
⠿⠿<br/>⠿⠿ <leader position="7"/><page-number ref-id="ch_2" number-format="default"/> | ||
<marker class="marker" value="2"/> | ||
<toc-entry ref-id="ch_2_2"> | ||
⠿⠿⠿⠿ | ||
</toc-entry> | ||
</toc-entry> | ||
</table-of-contents> | ||
<volume-template sheets-in-volume-max="100"> | ||
<pre-content> | ||
<toc-sequence toc="toc" master="main" range="volume"/> | ||
</pre-content> | ||
</volume-template> | ||
<sequence master="main"> | ||
<block id="ch_1" translate="">⠿⠿ </block> | ||
<block>⠤⠤⠤⠤⠤ ⠤⠤⠤⠤⠤ ⠤⠤⠤⠤⠤ ⠤⠤⠤⠤⠤ | ||
⠤⠤⠤⠤⠤ ⠤⠤⠤⠤⠤ ⠤⠤⠤⠤⠤ ⠤⠤⠤⠤⠤ | ||
</block> | ||
<block id="ch_2" translate="">⠿⠿ </block> | ||
<block>⠤⠤⠤⠤⠤ ⠤⠤⠤⠤⠤ ⠤⠤⠤⠤⠤ ⠤⠤⠤⠤⠤ | ||
⠤⠤⠤⠤⠤ ⠤⠤⠤⠤⠤ ⠤⠤⠤⠤⠤ ⠤⠤⠤⠤⠤ | ||
<block id="ch_2_2" translate="">⠿⠿⠿ </block> | ||
<block>⠤⠤⠤⠤⠤ ⠤⠤⠤⠤⠤ ⠤⠤⠤⠤⠤ ⠤⠤⠤⠤⠤ | ||
</block> | ||
</block> | ||
</sequence> | ||
</obfl> |
58 changes: 58 additions & 0 deletions
58
integrationtest/org/daisy/dotify/formatter/test/resource-files/dp2/toc-text-input.obfl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<obfl xmlns="http://www.daisy.org/ns/2011/obfl" version="2011-1" xml:lang="und" hyphenate="false"> | ||
<meta> | ||
<dc:title xmlns:dc="http://purl.org/dc/elements/1.1/">toc-text</dc:title> | ||
<dc:description xmlns:dc="http://purl.org/dc/elements/1.1/">Tests toc-text.</dc:description> | ||
</meta> | ||
<layout-master name="main" duplex="false" page-width="15" page-height="6"> | ||
<default-template> | ||
<header> | ||
<field> | ||
<marker-reference marker="marker" direction="forward" scope="sequence"/> | ||
</field> | ||
<field> | ||
<marker-reference marker="marker" direction="backward" scope="sequence"/> | ||
</field> | ||
</header> | ||
<footer/> | ||
</default-template> | ||
</layout-master> | ||
<table-of-contents name="toc"> | ||
<toc-entry ref-id="ch_1"> | ||
<toc-text> | ||
⠿⠿⠿⠿ <evaluate expression="(- 1 1)"/> | ||
<page-number ref-id="ch_1" number-format="default"/> | ||
<marker class="marker" value="1"/> | ||
</toc-text> | ||
</toc-entry> | ||
<toc-entry ref-id="ch_2"> | ||
<toc-text> | ||
⠿⠿<br/>⠿⠿ <leader position="7"/><page-number ref-id="ch_2" number-format="default"/> | ||
<marker class="marker" value="2"/> | ||
</toc-text> | ||
<toc-entry ref-id="ch_2_2"> | ||
<toc-text> | ||
⠿⠿⠿⠿ | ||
</toc-text> | ||
</toc-entry> | ||
</toc-entry> | ||
</table-of-contents> | ||
<volume-template sheets-in-volume-max="100"> | ||
<pre-content> | ||
<toc-sequence toc="toc" master="main" range="volume"/> | ||
</pre-content> | ||
</volume-template> | ||
<sequence master="main"> | ||
<block id="ch_1" translate="">⠿⠿ </block> | ||
<block>⠤⠤⠤⠤⠤ ⠤⠤⠤⠤⠤ ⠤⠤⠤⠤⠤ ⠤⠤⠤⠤⠤ | ||
⠤⠤⠤⠤⠤ ⠤⠤⠤⠤⠤ ⠤⠤⠤⠤⠤ ⠤⠤⠤⠤⠤ | ||
</block> | ||
<block id="ch_2" translate="">⠿⠿ </block> | ||
<block>⠤⠤⠤⠤⠤ ⠤⠤⠤⠤⠤ ⠤⠤⠤⠤⠤ ⠤⠤⠤⠤⠤ | ||
⠤⠤⠤⠤⠤ ⠤⠤⠤⠤⠤ ⠤⠤⠤⠤⠤ ⠤⠤⠤⠤⠤ | ||
<block id="ch_2_2" translate="">⠿⠿⠿ </block> | ||
<block>⠤⠤⠤⠤⠤ ⠤⠤⠤⠤⠤ ⠤⠤⠤⠤⠤ ⠤⠤⠤⠤⠤ | ||
</block> | ||
</block> | ||
</sequence> | ||
</obfl> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters