#!/bin/sh
cat <<EOF
+/* -*- coding: euc-jp; -*- */
/***en @page m17nDBFormat Data format of the m17n database
-This section describes the data formats of the m17n database. */
+This section describes formats of these data supplied by the m17n
+database.
+<ul>
EOF
+for f in $*; do
+ case $f in
+ *.ja.txt) ;;
+ *) cat $f | grep '@page' | sed -e 's/@page mdb\([^ ]*\)/<li> @ref mdb\1 "\1" --/';;
+ esac
+done
+
+cat <<EOF
+</ul>
+*/
+EOF
+
+cat <<EOF
+/***ja @page m17nDBFormat M17N ¥Ç¡¼¥¿¥Ù¡¼¥¹¤Î¥Ç¡¼¥¿¡¦¥Õ¥©¡¼¥Þ¥Ã¥È
+
+¤³¤³¤Ç¤Ï¡¢M17N ¥Ç¡¼¥¿¥Ù¡¼¥¹¤ÇÄ󶡤µ¤ì¤ë³Æ¥Ç¡¼¥¿¤Î¥Õ¥©¡¼¥Þ¥Ã¥È¤ò²òÀ⤹
+¤ë¡£
+
+<ul>
+EOF
+
+for f in $*; do
+ case $f in
+ *.ja.txt) cat $f | grep '@page' | sed -e 's/@page mdb\([^ ]*\)/<li> @ref mdb\1 "\1" --/';;
+ *) ;;
+ esac
+done
+
+cat <<EOF
+</ul>
+*/
+EOF
+
+cat $* | \
sed -n -e '/\/\*\*\*/,/\*\// p' | \
sed -e 's/@section/@subsection/' \
-e 's/@page/@section/'
-cat <<EOF
-////
-EOF
+# Local Variables:
+# coding: euc-jp
+# End: