From f27e3a0a80542b943812a57afad304533fa22c26 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Jun 17 2011 14:35:59 +0000 Subject: Update docbook_convertToPdf.sh. --- diff --git a/Scripts/Functions/Render/Backends/Docbook/docbook_convertToPdf.sh b/Scripts/Functions/Render/Backends/Docbook/docbook_convertToPdf.sh index 0220601..e1df144 100755 --- a/Scripts/Functions/Render/Backends/Docbook/docbook_convertToPdf.sh +++ b/Scripts/Functions/Render/Backends/Docbook/docbook_convertToPdf.sh @@ -31,7 +31,18 @@ function docbook_convertToPdf { # Tranform DocBook XML to PDF. ${RENDER_BACKEND}_convertToPdfFromXml - # Tranform DocBook SGML to PDF. - ${RENDER_BACKEND}_convertToPdfFromSgml + # Tranform DocBook SGML to PDF. + if [[ $(cli_getCurrentLocale) =~ '^en' ]];then + # FIXME: This is only possible when no localization is + # performed (i.e., xml2po is not involved.) to main DocBook + # file, otherwise there will be errors and the PDF output + # won't be created. The errors come out because when we passed + # the validated DocBook file to xml2po all XML decimal + # entities inside the main DocBook file are expanded and set + # in the msgid field. Such expanded characters are not + # recognized by openjade when they are used as source to + # produce the PDF output. + ${RENDER_BACKEND}_convertToPdfFromSgml + fi }