FreePWING::FPWUtils::MarkupInterface - simple markup interface for FreePWING
use FreePWING::FPWUtils::MarkupInterface;
FreePWING_write("<entry><heading>$item</heading>" .
"<key name=\"$kanji\"><key name=\"$kana\">" .
"<keyword>$kanji [$kana]</keyword><nl>".
"<indent level=\"2\">$content<nl>");
# encode &, <, >, and " characters $string = FreePWING_encode($string); FreePWING_write($string);
The FreePWING::FPWUtils::MarkupInterface is an alternative interface to
FreePWING::FPWUtils::FPWParser
(http://www.sra.co.jp/people/m-kasahr/freepwing/).
This module controls the FreePWING parser via a simple markup language
(see MARKUP).
The following functions are available:
<heading>$text</heading> where $text typically appears in
the hits field of an application. <keyword>$text</keyword>
marks the head word of the actual entry. <key name="$key"> is used
to indicate a search key. The optional ``conditional'' attribute to
<key> may be used for conditional keys.
<entry>, <menu>, and <copyright> may be
followed by additional markup. In the following (*) denotes markup which is
not allowed within <heading></heading> and (+) denotes
markup which is not allowed within <keyword></keyword>.
line(s) by $level.
Copyright 2005 Hannes Loeffler.
This library 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.