#!/bin/sh

cat > Width.c << EOF
/*  Hey Emacs, this file is -*- c++ -*- ; 

	Multilingual Terminal Emulator "MuTerminal".
 
 Copyright (C) 1998,99 Kazuho Okui and Takashi Murai. ALL RIGHT RESERVED
  
 This file is part of MuTerminal.

 MuTerminal is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 2, or (at your option)
 any later version.

 \$Id\$
 \$RCSfile\$: UTF8 charactor width table.

*****************************************************************************/

#define HW 0
#define FW 1

char utf8_width_table[]= {
EOF

cat Width.txt | awk '{printf "%s << 7 | %s << 6 | %s <<5 | %s <<4 | %s << 3 | %s <<2 | %s <<1 | %s,\n", $1, $2, $3, $4, $5, $6, $7, $8}' >> Width.c 

echo '};' >> Width.c
