A command line tool to transform dtbook xml source files into a braille format proprietary to Swiss Library for the Blind, Visually Impaired and Print Disabled using Saxon with liblouis-java bindings for translating text into braille using liblouis.
Requires Java 21+.
mvn packageTo install the resulting Debian package:
sudo apt reinstall ./target/dtbook2sbsform_*.debcd dtbook2sbsform
./dtbook2sbsform.sh dtbook.xmlcalls saxon.sh, transforms dtbook.xml and performs line breaking
using linebreak.sh printing output onto stdout.
./saxon.shcalls saxon, offering its rich command line interface, includes our
extension function (see resources/xsl/dtbook2sbsform.xsl).
./linebreak.shbreaks lines according to sbs rules: only lines beginning with a blank will be broken. Line width is 80 chars.
- java 11+
- liblouis
- sbs-braille-tables Debian package
- Bump the version in
pom.xml(remove-SNAPSHOT, e.g.0.36-SNAPSHOT→0.36) - Commit:
git commit -m "Release 0.36" - Tag:
git tag v0.36 - Push the tag:
git push origin v0.36
GitHub Actions will build the package, run the full test suite, and
publish the .deb as a release asset automatically.
Afterwards bump pom.xml to the next snapshot version (e.g. 0.37-SNAPSHOT)
and commit to continue development.
mvn testTo run a single XSpec file:
mvn test -Dtest="XSpecTest#run[src/test/xspec/FILENAME.xspec]"All dependencies are on Maven Central — no local jar installs required.
Copyright 2011-2026 Swiss Library for the Blind, Visually Impaired and Print Disabled.
Licensed under GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.