Skip to content

Instantly share code, notes, and snippets.

@schierlm schierlm/README.md Secret
Last active May 12, 2019

Embed
What would you like to do?
Scripts for building Leonberger Bibel for Logos

Scripts for building Leonberger Bibel for Logos

  • Download OSIS xmls from https://www.causamundi.de/shop/page?p=bible
  • Download BibleMultiConverter Logos Edition (0.0.6 or higher) from https://github.com/schierlm/BibleMultiConverter/releases
  • Stuff everything into one directory
  • Run commands from preprocess.cmd, ignore warnings (or set -Dbiblemulticonverter.osis.warningcontext=true) and send them to Thomas
  • Open resulting html files in Libreoffice 6.x or higher (import filter "LibreOffice Writer/Web") and export them unchanged (export filter "Word 2007-2019")
  • Run commands from postprocess.cmd
  • Test resulting .docx files in Logos and send them to Thomas
<h1>${name}<br/>Wort. Weg. Wahrheit.</h1>
<p>${description}.<br/>
${description@titlePage}<br/>
Stand: ${date}</p>
<p>${rights}<br/>
Diese Bibel steht unter einer <a href="http://creativecommons.org/licenses/by-nc-nd/3.0/deed.de"><font color="#6666ff">Creative Commons Namensnennung-NichtKommerziell-KeineBearbeitung 3.0 Unported Lizenz</font></a>.<br/>
Über diese Lizenz hinausgehende Erlaubnisse können Sie unter <a href="http://www.causamundi.de/"><font color="#6666ff">http://www.causamundi.de</font></a> erhalten.</p>
@echo off
set DESTJAR=BibleMultiConverter-LogosEdition.jar
java -Xmx1G -jar %DESTJAR% LogosNestedHyperlinkPostprocessor leo-na28.raw.logos.docx leo-na28.2018-0x-xx.logos.docx
java -Xmx1G -jar %DESTJAR% LogosNestedHyperlinkPostprocessor leo-rp18.raw.logos.docx leo-rp18.2018-0x-xx.logos.docx
@echo off
rd /s /q work
mkdir work
set DESTJAR=BibleMultiConverter-LogosEdition.jar
set OSISPROPERTIES=-Dbiblemulticonverter.keepwhitespace=false
java %OSISPROPERTIES% -jar %DESTJAR% OSIS leo-na28-osis.xml Diffable leo-na28.txt
type leonberger-footer.txt >>leo-na28.txt
java -jar %DESTJAR% Diffable leo-na28.txt LogosHTML leo-na28.raw.logos.html BibleELBER header-template.html -inline
java %OSISPROPERTIES% -jar %DESTJAR% OSIS leo-rp18-osis.xml Diffable leo-rp18.txt
type leonberger-footer.txt >>leo-rp18.txt
java -jar %DESTJAR% Diffable leo-rp18.txt LogosHTML leo-rp18.raw.logos.html BibleBYZ header-template.html -inline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.