#!/bin/sh
#
# Generate a number of useful 8-bit fonts from the ISO 10646-1 master fonts
# and write them into a new subdirectory derived-fonts/
#
# specify what we want
ENCODINGS="ISO8859-1 ISO8859-2 ISO8859-9 ISO8859-15"
# construct ucs2any.pl command line remainder
for i in $ENCODINGS ; do
  SPEC="$SPEC ../map-$i $i"
done
# get a fresh subdirectory and fill in mapping results
rm -rf derived-fonts/
mkdir derived-fonts/
cd derived-fonts/
for i in 05x10 05x11 05x11-bold 06x11 06x11-bold 06x13 06x13-bold \
         08x15 08x15-bold 10x20 10x20-bold 12x24 12x24-bold ; do
  ../ucs2any.pl ../neep-$i.bdf $SPEC
  ../ucs2any.pl ../neep-alt-$i.bdf $SPEC
done
for i in 06x11 06x11-bold 06x13 06x13-bold ; do
  ../ucs2any.pl ../modd-$i.bdf ../map-ISO8859-1
done
cd ..
