#!/bin/sh
cat <<EOF
-/***en @page m17nExProg Sample Programs */
-/***ja @page m17nExProg ¥µ¥ó¥×¥ë¥×¥í¥°¥é¥à */
-/***
+/***en @page m17nExProg Sample Programs
+
This section describes these example programs. They are to demonstrate
the usage of the m17n library, not for practical use.
<ul>
EOF
-cat $* | grep '@page' | sed -e 's/@page \([^ ]*\)/<li> @ref \1 "\1" --/'
+cat $* | grep '@enpage' | sed -e 's/@enpage \([^ ]*\)/<li> @ref \1 "\1" --/'
+
+cat <<EOF
+</ul>
+*/
+EOF
+
+cat <<EOF
+/***ja @page m17nExProg ¥µ¥ó¥×¥ë¥×¥í¥°¥é¥à
+
+¤³¤Î¥»¥¯¥·¥ç¥ó¤Ï°Ê²¼¤Î¥×¥í¥°¥é¥à¤Ë¤Ä¤¤¤Æ²òÀ⤹¤ë¡£¤³¤ì¤é¤Î¥×¥í¥°¥é¥à¤Ï
+m17n ¥é¥¤¥Ö¥é¥ê¤Î»ÈÍÑË¡¤ò¼¨¤¹¤¿¤á¤Î¤â¤Î¤Ç¤¢¤ê¡¢¼ÂºÝ¤Î»ÈÍѤˤϤ¢¤Þ¤êŬ¤µ
+¤Ê¤¤¡£
+
+<ul>
+EOF
+
+cat $* | grep '@japage' | sed -e 's/@japage \([^ ]*\)/<li> @ref \1 "\1" --/'
cat <<EOF
</ul>
cat $* | \
sed -n -e '/\/\*\*\*/,/\*\// p' | \
sed -e 's/@section/@subsection/' \
- -e 's/@page \([^ ]*\)/@section \1 \1 --/'
+ -e 's/@..page \([^ ]*\)/@section \1 \1 --/'
# Local Variables:
# coding: euc-jp