1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-02 08:57:19 -04:00
elinks/Unicode/gen-7b
Petr Baudis 0f6d4310ad Initial commit of the HEAD branch of the ELinks CVS repository, as of
Thu Sep 15 15:57:07 CEST 2005. The previous history can be added to this
by grafting.
2005-09-15 15:58:31 +02:00

22 lines
601 B
Bash
Executable File

#!/bin/sh
# $Id: gen-7b,v 1.8 2005/03/05 21:49:29 zas Exp $
echo
echo Generating Unicode2ascii translation table.
(
cat 7bitrepl.lnx | awk -f tr7bit.awk >tmp
N=`cat tmp | wc -l`
echo '/* Automatically generated by gen-7b */'
echo '/* DO NOT EDIT THIS FILE! EDIT Unicode/7bitrepl.lnx INSTEAD! */'
echo
echo 'struct { unicode_val_T x; unsigned char *s; } unicode_7b ['`expr $N + 1`'] = {'
sort tmp | sed 's/\\/\\\\/g' | sed 's/"/\\"/g' | sed 's/^/ {/' | sed 's/:/, "/' | sed 's/$/"},/'
echo ' {-1, NULL}'
echo '};'
echo
echo '#define N_UNICODE_7B' $N
)>../src/intl/uni_7b.inc
rm -f tmp
echo Done.
echo