diff options
author | Tommy Reynolds <Tommy.Reynolds@MegaCoder.com> | 2005-11-06 08:51:27 +0000 |
---|---|---|
committer | Tommy Reynolds <Tommy.Reynolds@MegaCoder.com> | 2005-11-06 08:51:27 +0000 |
commit | ebbf03b8ffcb4fd3409546974c284706d25ec73a (patch) | |
tree | e32f33b06bb6119dd7bae30cdd836c341a395a49 /bin/tidy-bowl | |
parent | 572cd15a22511bec7bbbbccd0941f72fa3a936a2 (diff) | |
download | fedora-doc-utils-ebbf03b8ffcb4fd3409546974c284706d25ec73a.tar.gz fedora-doc-utils-ebbf03b8ffcb4fd3409546974c284706d25ec73a.tar.xz fedora-doc-utils-ebbf03b8ffcb4fd3409546974c284706d25ec73a.zip |
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.
Diffstat (limited to 'bin/tidy-bowl')
-rwxr-xr-x | bin/tidy-bowl | 10 |
1 files changed, 5 insertions, 5 deletions
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!!! |