Skip to content

Commit

Permalink
Use li and lic elements to create a DTBook for Mischa's example
Browse files Browse the repository at this point in the history
  • Loading branch information
bertfrees committed Jun 8, 2015
1 parent 7d31b5c commit be14e90
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 3 deletions.
53 changes: 53 additions & 0 deletions src/resources/horizontal-positioning/example_1.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns="http://www.daisy.org/z3986/2005/dtbook/">
<li>
a)
<list>
<li>
<lic>Vorsicht</lic>
<lic>Wie?</lic>
</li>
<li>
<lic>¸berquert</lic>
<lic>Verb</lic>
</li>
<li>
<lic>die Katze</lic>
<lic>Wer?</lic>
</li>
<li>
<lic>vor dem Schulhaus</lic>
<lic>Wo?</lic>
</li>
<li>
<lic>die Strasse.</lic>
<lic>Wen/Was?</lic>
</li>
</list>
</li>
<li>
b)
<list>
<li>
<lic>Gegen Abend</lic>
<lic></lic>
</li>
<li>
<lic>bekam</lic>
<lic></lic>
</li>
<li>
<lic></lic>
<lic></lic>
</li>
<li>
<lic></lic>
<lic></lic>
</li>
<li>
<lic></lic>
<lic></lic>
</li>
</list>
</li>
</list>
5 changes: 5 additions & 0 deletions src/test/horizontal-positioning/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@page { size: 28 28; }

list, li {
display: block;
}
22 changes: 19 additions & 3 deletions src/test/horizontal-positioning/test.xprocspec
Original file line number Diff line number Diff line change
@@ -1,18 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<x:description xmlns:x="http://www.daisy.org/ns/xprocspec"
xmlns:pxi="http://www.daisy.org/ns/pipeline/xproc/internal"
xmlns:p="http://www.w3.org/ns/xproc">
xmlns:p="http://www.w3.org/ns/xproc"
xmlns:css="http://www.daisy.org/ns/pipeline/braille-css"
xmlns:dotify="http://code.google.com/p/dotify/"
xmlns:px="http://www.daisy.org/ns/pipeline/xproc">

<x:script>
<p:declare-step type="pxi:translate" version="1.0">
<p:input port="source"/>
<p:output port="result"/>
<p:identity/>
<p:option name="stylesheet" required="true"/>
<p:import href="http://www.daisy.org/pipeline/modules/braille/dotify-formatter/library.xpl"/>
<p:import href="http://www.daisy.org/pipeline/modules/braille/css-calabash/library.xpl"/>
<p:import href="http://www.daisy.org/pipeline/modules/braille/common-utils/library.xpl"/>
<css:inline>
<p:with-option name="default-stylesheet" select="resolve-uri($stylesheet)"/>
</css:inline>
<px:transform type="css-block" query="(locale:de_CH)"/>
<dotify:format/>
</p:declare-step>
</x:script>

<x:scenario id="65.1" label="Two-column table with second column left-aligned and with leaders">
<x:call step="pxi:translate"/>
<x:call step="pxi:translate">
<x:input port="source">
<x:document type="file" href="../../resources/horizontal-positioning/example_1.xml"/>
</x:input>
<x:option name="stylesheet" select="'style.css'"/>
</x:call>
<x:context label="result">
<x:document type="port" port="result"/>
</x:context>
Expand Down

0 comments on commit be14e90

Please sign in to comment.