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 |
wakaba |
1.2 |
@Date.RCS: $Date: 2003/11/25 12:38:22 $ |
16 |
wakaba |
1.1 |
@RequiredPlugin[list]: |
17 |
|
|
|
18 |
|
|
PluginConst: |
19 |
|
|
@NS_XHTML1: |
20 |
|
|
http://www.w3.org/1999/xhtml |
21 |
|
|
|
22 |
|
|
Format: |
23 |
wakaba |
1.2 |
@Type: text/plain |
24 |
wakaba |
1.1 |
@ModuleName: |
25 |
|
|
Text::Plain |
26 |
|
|
@Description: |
27 |
|
|
@@@: text/plain; format=fixed |
28 |
|
|
@@lang:en |
29 |
|
|
|
30 |
|
|
@Use: |
31 |
|
|
use Message::Markup::XML::QName qw(NS_xml_URI); |
32 |
|
|
|
33 |
|
|
@Converter: |
34 |
|
|
@@Type: text/html |
35 |
|
|
@@IsFragment: 1 |
36 |
|
|
@@Description: |
37 |
|
|
@@@@: Converting plain-text to Hypertext Markup Language fragment |
38 |
|
|
@@@lang:en |
39 |
|
|
@@Main: |
40 |
|
|
for ($opt->{-parent}->append_new_node (type => '#element', |
41 |
|
|
namespace_uri => $NS_XHTML1, |
42 |
|
|
local_name => 'pre')) { |
43 |
wakaba |
1.2 |
$_->append_text ($$source); |
44 |
wakaba |
1.1 |
$_->set_attribute ('space' => 'preserve', |
45 |
|
|
namespace_uri => NS_xml_URI); |
46 |
|
|
} |
47 |
|
|
|
48 |
|
|
@Converter: |
49 |
|
|
@@Type: text/plain |
50 |
|
|
@@Description: |
51 |
|
|
@@@@: Converting plain-text to plain-text (noop) |
52 |
|
|
@@@lang: en |
53 |
|
|
@@Main: |
54 |
wakaba |
1.2 |
$r = $$source; |