detox is a utility designed to clean up filenames, especially those created on other operating systems.
Here are some key features of "detox":
· Removal or replacement of upper ASCII Latin-1 (ISO 8859-1) characters (i.e. left facing and right facing double quotes). Whenever possible a replacement character will be used (i.e. an "A" will take the place of an "A" with an accent mark over it).
· Removal or replacement of UTF-8 encoded Unicode characters. This operates along the same line as the ISO 8859-1 translation, except the scope of Unicode is much larger.
· Removal or replacement of spaces and other potentially tricky characters, such as (, ), and @. Removal of any "-"s at the beginning of the filename.
· Removal or replacement of CGI escaped ASCII characters, i.e. becomes " " (which then becomes "_").
· Trimming of excessive "_" and "-"s.
· Directory recursion, dry runs, verbose listings.
· It's designed with safety in mind. It won't overwrite to a file that already exists, and it doesn't touch special files normally (but it can be asked to).
What's New in This Release:
· Modified the safe filter to use a translation table.
· Modified the safe filter fallback (previous functionality) to operate without any special behavior. The wipeup filter now picks up where the safe filter left off.
· Fixed the default permissions on install (files are 644 now).
· Updated libpopt support to work on Linux under the PowerPC platform (chars are unsigned by default).
· Included the generated lex and yacc files in the default package.
· Added additional logic to allow files on case insensitive filesystems to have their case changed.
· Added the ability to set locale specific translations in the translation tables.
· Added German specific translations to the translation tables.