+#
+# More examples for custom filename munging:
+#
+# VARIANT 1: (works anywhere style)
+#
+# Translate everything to lowercase
+# replace ALL chars that may cause trouble for Linux, Windows and DOS
+# with '_' (underscore); remove double underscores; remove leading and
+# trailing underscores; recode to flat ASCII
+#
+#mungefilename ()
+#{
+# echo "$@" | tr [A-Z] [a-z] | \
+# sed "s/[- ,.:\'\/!@#\?\$%\^&()]/_/g" | \
+# sed 's/_[_]*/_/g' | \
+# sed 's/^_*//' | \
+# sed 's/_*$//' | \
+# recode -f iso8859-1..flat
+#}
+#
+# VARIANT 2: (legible style)
+#
+# Accept all chars, EXCEPT '/' (obvious) or ":" (because eyeD3 cannot
+# cope with ":" in pathnames): replace them with " " (space).
+# Additionally, replace contiguous spaces with one space; strip
+# leading spaces; strip trailing spaces and recode to flat filenames.
+#
+# mungefilename ()
+# {
+# echo "$@" | sed "s/[:\/]/ /g" | \
+# sed 's/ [ ]*/ /g' | \
+# sed 's/^ *//' | \
+# sed 's/ *$//' | \
+# recode -f iso8859-1..flat
+# }
+
+