sbsdev / dtbook-to-latex Goto Github PK
View Code? Open in Web Editor NEWDTBook to LaTeX converter for the DAISY Pipeline 2
DTBook to LaTeX converter for the DAISY Pipeline 2
Footnotes at the end of the book are used in the wrong volume, which causes the volume splitting to be wrong
It currently generates LaTeX that makes XeTeX crash. At least with textlive 2016.20170123-5.
It should be possible to include h3
and h4
in the table of contents
Das start-Attribut dient zur Angabe des Nummerierungsbeginns in ol-Listen. Es ist für den Braille-Output bereits unterstützt. Damit es für unsere multimedialen Bücher eingesetzt werden kann, muss es auch im GD unterstützt sein (auch zusammen mit dem enum-Attribut für sämtliche Werte 1, A, I, a, i).
See also http://www.daisy.org/z3986/structure/SG-DAISY3/part2-block.html#lists
Convert the following example with 25pt to see the problem
<dl>
<dt> Halbruhige –</dt>
<dd>In den »Heil- und Irrenheilanstalten«, wie sie im <brl:num role="ordinal"
>19.</brl:num> Jahrhundert gegründet wurden, unterteilte man psychisch Kranke in
»Gebildete Kranke«, »Ruhige«, »Halbruhige« sowie »Tobsüchtige«, die in »Isolirgebäuden«
verwahrt wurden. Die Patienten wurden, je nach sozialem Status, in drei verschiedenen
Verpflegungsklassen versorgt (von »Privat« bis zu »Saalpatienten«).</dd>
<dt>Homosexualität als psychische Störung –</dt>
<dd>Bis 1968 im DSM so gelistet (u. a. im möglichen Zusammenhang mit erhöhter krimineller
Neigung). Nach Protesten von Vertretern der Schwulenbewegung beim Jahrestreffen der
American Psychiatric Association (APA) wurde die Homosexualität 1973 aus dem DSM-II
gestrichen, allerdings erst 1993 auch aus der International Classification of Diseases
(ICD) der WHO entfernt.</dd>
</dl>
Port the original documentation once Pipeline 2 has a documentation "framework".
see:
The <list type="pl">
should stand out more, see listen.pdf
We could either
<list type="ol">
to be consistent<list type="pl">
. Possibly also with <list type="ul">
and <list type="ol">
for consistency<level1>
<p>P vor Liste</p>
<list type="pl">
<li>LI 1 LI 1 LI 1 LI 1 LI 1 LI 1 LI 1 LI 1 LI 1 LI 1 LI 1 LI 1 LI 1 LI 1 LI 1 LI 1 LI 1 LI 1</li>
<li>LI 2 LI 2 LI 2 LI 2 LI 2 LI 2 LI 2 LI 2 LI 2 LI 2 LI 2 LI 2 LI 2 LI 2 LI 2 LI 2 LI 2 LI 2</li>
<li>LI 3 LI 3 LI 3 LI 3 LI 3 LI 3 LI 3 LI 3 LI 3 LI 3 LI 3 LI 3 LI 3 LI 3 LI 3 LI 3 LI 3 LI 3</li>
</list>
<p>P nach Liste</p>
</level1>
<level1>
<p>P vor Liste</p>
<list type="ul">
<li>LI 1 LI 1 LI 1 LI 1 LI 1 LI 1 LI 1 LI 1 LI 1 LI 1 LI 1 LI 1 LI 1 LI 1 LI 1 LI 1 LI 1 LI 1</li>
<li>LI 2 LI 2 LI 2 LI 2 LI 2 LI 2 LI 2 LI 2 LI 2 LI 2 LI 2 LI 2 LI 2 LI 2 LI 2 LI 2 LI 2 LI 2</li>
<li>LI 3 LI 3 LI 3 LI 3 LI 3 LI 3 LI 3 LI 3 LI 3 LI 3 LI 3 LI 3 LI 3 LI 3 LI 3 LI 3 LI 3 LI 3</li>
</list>
<p>P nach Liste</p>
</level1>
<level1>
<p>P vor Liste</p>
<list type="ol">
<li>LI 1 LI 1 LI 1 LI 1 LI 1 LI 1 LI 1 LI 1 LI 1 LI 1 LI 1 LI 1 LI 1 LI 1 LI 1 LI 1 LI 1 LI 1</li>
<li>LI 2 LI 2 LI 2 LI 2 LI 2 LI 2 LI 2 LI 2 LI 2 LI 2 LI 2 LI 2 LI 2 LI 2 LI 2 LI 2 LI 2 LI 2</li>
<li>LI 3 LI 3 LI 3 LI 3 LI 3 LI 3 LI 3 LI 3 LI 3 LI 3 LI 3 LI 3 LI 3 LI 3 LI 3 LI 3 LI 3 LI 3</li>
</list>
<p>P nach Liste</p>
</level1>
How exactly this will be done is TBD. (see also AG Fritz)
In Frontmatter zwischen Klappentexten und Titelblätter muss ein Level 1 auf der nächsten ungeraden Seite anfangen.
It currently generates LaTeX that makes XeTeX crash. At least with textlive 2016.20170123-5.
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE dtbook [
<!ENTITY ndash "–">
<!ENTITY nbsp " ">
<!ENTITY test "<brl:select><brl:when-braille>braille</brl:when-braille><brl:otherwise>other</brl:otherwise></brl:select>">
]>
<?oxygen RNGSchema="http://xmlp-test/schema/dtbook-2005-3-sbs.rng" type="xml"?><dtbook xmlns:brl="http://www.daisy.org/z3986/2009/braille/" xmlns="http://www.daisy.org/z3986/2005/dtbook/" version="2005-3-sbs-full" xml:lang="de-1901">
<head>
<meta name="dc:Title" content="TESTSERVER3_1901"/>
<meta name="dc:Creator" content=""/>
<meta name="dc:Subject" content=""/>
<meta name="dc:Description" content=""/>
<meta name="dc:Publisher" content="SBS Schweizerische Bibliothek für Blinde, Seh- und Lesebehinderte"/>
<meta name="dc:Date" content="2014-01-10"/>
<meta name="dc:Type" content="Text"/>
<meta name="dc:Format" content="ANSI/NISO Z39.86-2005"/>
<meta name="dc:Identifier" content="ch-sbs-a2e12e34-cf2c-495a-b1d8-81e0e03d930a"/>
<meta name="dc:Source" content=""/>
<meta name="dc:Language" content="de-1901"/>
<meta name="dc:Rights" content=""/>
<meta name="dtb:uid" content="ch-sbs-a2e12e34-cf2c-495a-b1d8-81e0e03d930a"/>
<meta name="dtb:sourceEdition" content=""/>
<meta name="dtb:sourcePublisher" content=""/>
<meta name="dtb:sourceRights" content=""/>
<meta name="prod:series" content=""/>
<meta name="prod:seriesNumber" content=""/>
<meta name="prod:source" content=""/>
</head>
<book>
<frontmatter>
<doctitle>Diebe im Dschungel</doctitle>
<docauthor>Burkhard Wetekam</docauthor>
<level1 class="titlepage">
<level2>
<p>Rätselkrimi</p>
<p>Kurzstreckenleser</p>
<p class="sourcePublisher">Schroedel</p>
</level2>
</level1>
</frontmatter>
<bodymatter>
<level1>
<bridgehead>Bridgehead</bridgehead>
<p>Text</p>
</level1>
<level1>
<bridgehead>Bridge <br/> head</bridgehead>
<p>Text</p>
</level1>
</bodymatter>
</book>
</dtbook>
Volume breaking is probably only based on text in <p>
or <line>
elements. Maybe though if they are inside<li>
elements they might be ignored. In the example given most of the text is inside <li>
elements.
The volume break for the given example is as follows:
So the last volume has too many pages
See 10377.zip
Improve the handling of widow/orphan lines, especially headlines at the end of the page, etc.
See also
An upgrade of the LaTeX version might help.
Words that are longer than a line and that can't be hyphenated should not leak into the margin
Words such as uuuuuuuuuuaaaaaaaaaaaaaaaaarrrrrrrrrrrrrrggggghhhhhhhhhhhhhhhhhhhhhhhh spill into the margin
Can we force a line break in LaTeX for words that are too long?
It currently generates LaTeX that makes XeTeX crash. At least with textlive 2016.20170123-5.
<poem>
<hd>titelpoem</hd>
<linegroup>
<hd>titellg</hd>
<line>dfg dfsgdfsdfsg sd</line>
<line>dfg dfsgdfsdfsg sd</line>
<line>dfg dfsgdfsdfsg sd</line>
</linegroup>
<linegroup>
<hd>titellg</hd>
<line>dfg dfsgdfsdfsg sd</line>
<line>dfg dfsgdfsdfsg sd</line>
<line>dfg dfsgdfsdfsg sd</line>
</linegroup>
</poem>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.