Add recode step for SGML (LyX exports UTF-8 while onsgmls stll wants ISO8859-1)

This commit is contained in:
pbldp 2007-10-06 15:34:58 +00:00
parent 47bfee9345
commit c76292e1db
1 changed files with 8 additions and 0 deletions

View File

@ -97,6 +97,14 @@ done
## Functions
validate_sgml() {
if [ "$doctype" = "SGML" ]; then
if [ ! -f "$file_input.recoded" -o "$file_input" -nt "$file_input.recoded" ]; then
echo "INF: Recode SGML from UTF-8 to ISO8859-1 '$file_input'"
recode UTF-8..ISO8859-1 "$file_input"
touch "$file_input.recoded"
fi
fi
echo "INF: Validate SGML/XML code '$file_input'"
if [ "$doctype" = "XML" ]; then
local options="$file_xmldcl"