From ebbf03b8ffcb4fd3409546974c284706d25ec73a Mon Sep 17 00:00:00 2001 From: Tommy Reynolds Date: Sun, 6 Nov 2005 08:51:27 +0000 Subject: Allow XML written in one of the Romance languages to be prettyprinted using the Tidy Bowl infrastructure. We need to keep non-latin1 characters from passing though "xmlformat", but it doesn't matter what word the latin1 characters spell ;-) N.B.: you could also read "latin1" as "iso-8859-1" and friends. --- bin/tidy-bowl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bin') diff --git a/bin/tidy-bowl b/bin/tidy-bowl index 22f3f68..5d68bc2 100755 --- a/bin/tidy-bowl +++ b/bin/tidy-bowl @@ -45,9 +45,9 @@ shift `/usr/bin/expr "${OPTIND}" - 1` for fn in $@ do case "${fn}" in - *-[Ee][Nn].[Xx][Mm][Ll] ) + *-de.xml | *-en.xml | *-fr-xml | *-it.xml ) # Make sure we can find the input file - # /bin/echo "$0: English XML file ${fn} prettyprinted." + # /bin/echo "$0: XML file ${fn} prettyprinted." if [ ! -f "${fn}" ]; then /bin/echo $0 "Cannot find '${fn}'" exit 1 @@ -59,9 +59,9 @@ do exit 1 fi ;; - *.[Xx][Mm][Ll] ) - # A non-English XML file. What to do, what to do? - # /bin/echo "$0: Non-English XML file ${fn} left unchanged." + *.xml ) + # A non-Romance XML file. What to do, what to do? + # /bin/echo "$0: Non-Romance XML file ${fn} left unchanged." ;; * ) # Some other kind of file. DO NOTHING!!! -- cgit