| 1 |
wakaba |
1.1 |
#?SuikaWikiConfig/2.0 |
| 2 |
|
|
|
| 3 |
|
|
Plugin: |
| 4 |
|
|
@Name: PlainText |
| 5 |
|
|
@Description: |
| 6 |
|
|
@@@: Plain-text input/output implementation |
| 7 |
|
|
@@lang:en |
| 8 |
|
|
@License: %%GPL%% |
| 9 |
|
|
@Author: |
| 10 |
|
|
@@Name: |
| 11 |
|
|
@@@@: Wakaba |
| 12 |
|
|
@@@lang:ja |
| 13 |
|
|
@@@script:Latn |
| 14 |
|
|
@@Mail[list]: w@suika.fam.cx |
| 15 |
|
|
@Date.RCS: $Date: 2003/10/30 07:45:10 $ |
| 16 |
|
|
@RequiredPlugin[list]: |
| 17 |
|
|
|
| 18 |
|
|
PluginConst: |
| 19 |
|
|
@NS_XHTML1: |
| 20 |
|
|
http://www.w3.org/1999/xhtml |
| 21 |
|
|
|
| 22 |
|
|
Format: |
| 23 |
|
|
@Type: |
| 24 |
|
|
@@@: text/plain |
| 25 |
|
|
@@format: fixed |
| 26 |
|
|
@ModuleName: |
| 27 |
|
|
Text::Plain |
| 28 |
|
|
@Description: |
| 29 |
|
|
@@@: text/plain; format=fixed |
| 30 |
|
|
@@lang:en |
| 31 |
|
|
|
| 32 |
|
|
@Use: |
| 33 |
|
|
use Message::Markup::XML::QName qw(NS_xml_URI); |
| 34 |
|
|
|
| 35 |
|
|
@Converter: |
| 36 |
|
|
@@Type: text/html |
| 37 |
|
|
@@IsFragment: 1 |
| 38 |
|
|
@@Description: |
| 39 |
|
|
@@@@: Converting plain-text to Hypertext Markup Language fragment |
| 40 |
|
|
@@@lang:en |
| 41 |
|
|
@@Main: |
| 42 |
|
|
for ($opt->{-parent}->append_new_node (type => '#element', |
| 43 |
|
|
namespace_uri => $NS_XHTML1, |
| 44 |
|
|
local_name => 'pre')) { |
| 45 |
|
|
$_->append_text ($source); |
| 46 |
|
|
$_->set_attribute ('space' => 'preserve', |
| 47 |
|
|
namespace_uri => NS_xml_URI); |
| 48 |
|
|
} |
| 49 |
|
|
|
| 50 |
|
|
@Converter: |
| 51 |
|
|
@@Type: text/plain |
| 52 |
|
|
@@Description: |
| 53 |
|
|
@@@@: Converting plain-text to plain-text (noop) |
| 54 |
|
|
@@@lang: en |
| 55 |
|
|
@@Main: |
| 56 |
|
|
$r = $source; |