fnr |
|
|
This is a writer's/editor's tool. This program goes through a file looking for 'find' words, and replaces each one with its matching 'replace' word. You can have any number of 'find' words replaced with the same 'replace' word, so Tabishaa, Tokomisha, Takabashi, Takabishi and even TakoBeru (where the bean-and-octopus burritos come from) can all be canonized into Takabisha. Nermia becomes Nerima, Nadako becomes Nodoka, Shishi is no longer followed by Hadoken... you get the idea. This program takes one or more rulefile names as argument, or operates using only its internal find-and-replace list (below the __END__ line), which is a good place to add pairs you know you'll always screw up. It also takes a list of files to clean up, and writes the result back out to eventually take those filenames, leaving the originals as backup. You might wish to change just what each backup gets named to; tacking on a tilde is a Unix/Linux convention, and DOS in particular might object. There's another tool here, words, which you can use to spot the typos with which to build your list. Details: fnr [-frulefile][-frulefile] infile infile ... ..where a rulefile contains find-and-replace pairs as 'find => replace'It's case-sensitive; that should be made an option switch at some point. --siaru |