/[pub]/suikawiki/script/lib/SuikaWiki/Plugin/PlainText.wp2
Suika

Contents of /suikawiki/script/lib/SuikaWiki/Plugin/PlainText.wp2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download)
Sun Jul 25 06:54:29 2004 UTC (21 years, 3 months ago) by wakaba
Branch: MAIN
CVS Tags: suikawiki3-redirect, HEAD
Branch point for: helowiki, helowiki-2005
Changes since 1.4: +9 -3 lines
Property Editor implemented

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 wakaba 1.5 @License: %%Perl%%
9 wakaba 1.1 @Author:
10     @@Name:
11     @@@@: Wakaba
12     @@@lang:ja
13     @@@script:Latn
14     @@Mail[list]: w@suika.fam.cx
15 wakaba 1.5 @Date.RCS:
16     $Date: 2004/04/25 07:06:50 $
17     @Namespace:
18     @@edit:
19     http://suika.fam.cx/~wakaba/-temp/2004/7/25/sw-edit#
20 wakaba 1.1
21     PluginConst:
22     @NS_XHTML1:
23     http://www.w3.org/1999/xhtml
24    
25     Format:
26 wakaba 1.2 @Type: text/plain
27 wakaba 1.1 @ModuleName:
28     Text::Plain
29     @Description:
30     @@@: text/plain; format=fixed
31     @@lang:en
32    
33     @Use:
34     use Message::Markup::XML::QName qw(NS_xml_URI);
35    
36     @Converter:
37     @@Type: text/html
38     @@IsFragment: 1
39     @@Description:
40     @@@@: Converting plain-text to Hypertext Markup Language fragment
41     @@@lang:en
42     @@Main:
43     for ($opt->{-parent}->append_new_node (type => '#element',
44     namespace_uri => $NS_XHTML1,
45     local_name => 'pre')) {
46 wakaba 1.2 $_->append_text ($$source);
47 wakaba 1.1 $_->set_attribute ('space' => 'preserve',
48     namespace_uri => NS_xml_URI);
49     }
50    
51     @Converter:
52     @@Type: text/plain
53     @@Description:
54     @@@@: Converting plain-text to plain-text (noop)
55     @@@lang: en
56     @@Main:
57 wakaba 1.2 $r = $$source;
58 wakaba 1.3
59     @HeadSummary:
60     @@Main:
61     return $$source;
62 wakaba 1.5
63     @Prop:
64     @@edit:new-mode--pe--propedit: pe--propedit
65 wakaba 1.4
66     Resource:
67     @WikiFormat:MediaType:Description:IMT:text/plain##:
68     @@@: Plain text (as is)
69     @@lang: en
70     @WikiFormat:MediaType:Label:IMT:text/plain##:
71     @@@: Plain text
72     @@lang: en

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24