Binary package “trscripts” in ubuntu noble
Scripts for reencoding text files and BDF-fonts
The script `trbdf' can convert a BDF font from one codeset
to another.
.
The script `trcs' reencodes text files from one codeset to another.
It can generate scripts for `tr'. For example the command
trcs --from cp1252 --to latin1 --gen-script
gives you the following output:
#!/bin/sh
.
trap "exit 0" PIPE
.
cat "$@" | tr \
'\200'
'\213'
'\226'
'\105'
'\253'
'\-''
.
Both scripts try to approximate the missing from the target codeset
symbols.
.
It is easy to add support of other character sets.