#!/bin/sh
-cat <<EOF
-/* -*- coding: euc-jp; -*- */
-/***en @page m17nDBData Data provided by the m17n database
-
-The m17n database provides the following data. */
-
-/***ja @page m17nDBMIM M17N ¥Ç¡¼¥¿¥Ù¡¼¥¹¤¬Ä󶡤¹¤ë¥Ç¡¼¥¿
-
-M17N ¥Ç¡¼¥¿¥Ù¡¼¥¹¤Ï°Ê²¼¤Î¥Ç¡¼¥¿¤òÄ󶡤¹¤ë¡£ */
-
-/***
-<ul>
-<li> @ref mim-list
-<li> @ref flt-list
-<li> @ref charprop-list
-<li> @ref misc-list
-</ul>
-*/
-
-/***en @section mim-list Input method
-
-List of input methods provided by the m17n databasse and their brief
-descriptions. */
-
-/***ja @section mim-list ÆþÎϥ᥽¥Ã¥É
-
-M17N ¥Ç¡¼¥¿¥Ù¡¼¥¹¤¬Ä󶡤¹¤ëÆþÎϥ᥽¥Ã¥É¤Î¥ê¥¹¥È¤È¤½¤ì¤¾¤ì¤Î´Êñ¤ÊÀâÌÀ¡£ */
-
-/***
-<ul>
-EOF
-
-for file in $1/*.mim; do
- sed -n '/^;; <li>/,/^$/ s/^;; *//p' < $file
- echo
-done
-
-cat <<EOF
-</ul>
-*/
-
-/***en @section flt-list Font Layout Table
-
-List of Font Layout Tables (FLTs) provided by the m17n databasse and
-their brief descriptions. */
-
-/***ja @section flt-list ¥Õ¥©¥ó¥È¡¦¥ì¥¤¥¢¥¦¥È¡¦¥Æ¡¼¥Ö¥ë
-
-M17N ¥Ç¡¼¥¿¥Ù¡¼¥¹¤¬Ä󶡤¹¤ë¥Õ¥©¥ó¥È¡¦¥ì¥¤¥¢¥¦¥È¡¦¥Æ¡¼¥Ö¥ë (FLT) ¤Î¥ê¥¹
-¥È¤È¤½¤ì¤¾¤ì¤Î´Êñ¤ÊÀâÌÀ¡£ */
-
-/***
-<ul>
-EOF
-
-for file in $1/*.flt; do
- sed -n '/^;; <li>/,/^$/ s/^;; *//p' < $file
- echo
+FILE=$1
+while shift 1; do
+ sed -n -e "/^(input-method/s/(input-method \([^ ]*\) \([^)]*\))/<li> $FILE \1 \2/p" $FILE
+ echo
+ sed -n -e '/^;;;/ s/^;;; *//p' -e '/^(description "/,/^")/ s/^(description "\|^")\|\\\|$//gp' $FILE
+ FILE=$1
done
-
-cat <<EOF
-</ul>
-*/
-
-/***en @section charprop-list Character Property
-
-List of character properties provided by the m17n databasse and their
-brief descriptions. */
-
-/***ja @section charprop-list ʸ»ú¥×¥í¥Ñ¥Æ¥£
-
-M17N ¥Ç¡¼¥¿¥Ù¡¼¥¹¤¬Ä󶡤¹¤ëʸ»ú¥×¥í¥Ñ¥Æ¥£¤Î¥ê¥¹¥È¤È¤½¤ì¤¾¤ì¤Î´Êñ¤ÊÀâÌÀ¡£ */
-
-/***
-<ul>
-EOF
-
-for file in $1/*.tab; do
- sed -n '/^# <li>/,/^$/ s/^# *//p' < $file
- echo
-done
-
-cat <<EOF
-</ul>
-*/
-
-/***en @section misc-list The other data
-
-List of the other data provided by the m17n databasse and their brief
-descriptions. */
-
-/***ja @section misc-list ¤½¤Î¾¤Î¥Ç¡¼¥¿
-
-M17N ¥Ç¡¼¥¿¥Ù¡¼¥¹¤¬Ä󶡤¹¤ë¤½¤Î¾¤Î¥Ç¡¼¥¿¤È¤½¤ì¤¾¤ì¤Î´Êñ¤ÊÀâÌÀ¡£ */
-
-/***
-<ul>
-EOF
-
-for file in $1/*.tbl; do
- sed -n '/^;; <li>/,/^$/ s/^;; *//p' < $file
- echo
-done
-
-cat <<EOF
-</ul>
-*/
-EOF
-
-# Local Variables:
-# coding: euc-jp
-# End: