Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Translate some log messages
  • Loading branch information
kthoden committed Sep 24, 2020
1 parent dce729c commit 3507108
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/imxml2epub.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
# -*- coding: utf-8; mode: python -*-
# Time-stamp: <2020-09-24 16:09:29 (kthoden)>
# Time-stamp: <2020-09-24 16:27:42 (kthoden)>

""" Convert a customized DocBook XML file into a set of files that
constitute the contents of an EPUB file.
Expand Down Expand Up @@ -1759,31 +1759,31 @@ class FootnoteError(Exception):
xmlReferenceRefTarget = xmlReferenceRef.get("target")

if xmlReferenceLabelText in dictEquations:
logging.info("Verweis auf Array gefunden:" + xmlReferenceLabelText)
logging.info("Found link to array:" + xmlReferenceLabelText)
strResult = dictEquations[xmlReferenceLabelText]
if xmlReferenceRefTarget in dictEquations:
logging.info("Verweis auf Equation gefunden:" + xmlReferenceRefTarget)
logging.info("Found link to equation:" + xmlReferenceRefTarget)
strResult = dictEquations[xmlReferenceRefTarget]
if xmlReferenceRefTarget in dictLists:
logging.info("Verweis auf Liste gefunden")
logging.info("Found link to list")
strResult = dictLists[xmlReferenceRefTarget]
if xmlReferenceRefTarget in dictChapters:
logging.info("Verweis auf Kapitel gefunden")
logging.info("Found link to chapter")
strResult = dictChapters[xmlReferenceRefTarget]
if xmlReferenceRefTarget in dictSections:
logging.info("Verweis auf Section gefunden")
logging.info("Found link to section")
strResult = dictSections[xmlReferenceRefTarget]
if xmlReferenceRefTarget in dictFigures:
logging.info("Verweis auf Abbildung gefunden")
logging.info("Found link to figure")
strResult = dictFigures[xmlReferenceRefTarget]
if xmlReferenceRefTarget in dictFootnotes:
logging.info("Verweis auf Fussnote gefunden")
logging.info("Found link to footnote")
strResult = dictFootnotes[xmlReferenceRefTarget]
if xmlReferenceRefTarget in dictTheorems:
logging.info("Verweis auf Theorem gefunden")
logging.info("Found link to theorem")
strResult = dictTheorems[xmlReferenceRefTarget]
if xmlReferenceRefTarget in dictTables:
logging.info("Verweis auf Tabelle gefunden")
logging.info("Found link to table")
strResult = dictTables[xmlReferenceRefTarget]
tmpTail = xmlReference.tail or ""
#tmpTail = tmpTail.strip()
Expand Down Expand Up @@ -1813,7 +1813,7 @@ class FootnoteError(Exception):
xmlReferenceRef = xmlReference.find("ref")
xmlReferenceRefTarget = xmlReferenceRef.get("target")
if xmlReferenceLabelText in dictPagelabels:
logging.info("Verweis auf Seite gefunden: " + xmlReferenceLabelText)
logging.info("Found link to page: " + xmlReferenceLabelText)
strResult = dictPagelabels[xmlReferenceLabelText]
tmpTail = xmlReference.tail or ""
xmlReference.clear()
Expand Down

0 comments on commit 3507108

Please sign in to comment.