-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.rd.en
78 lines (66 loc) · 2.84 KB
/
README.rd.en
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
=begin
= emptDiary style((-$Id: README.rd.en,v 1.5 2003-11-06 09:43:46 zunda Exp $-))
== Summary
((:emptDiary style:))((-emptDiary is an abbreviation for 'empty line
permitted tDiary style'. Very long, isn't it?-)) is an extension to the
((:tDiary style:)) which allows plug-in arguments to have empty lines.
In short, this style preserves empty lines between <% and %> when
splltting the input into sections.
Sometimes, you would want to include your program list in your diary. In
the case, the ((:tDiary style:)) rule gets in the way: an empty line in
the program list makes a second section. ((:emptDiary style:)) permits
empty lines in the arguments of plug-ins. Thus, using e.g. pre.rb
plugin, you can show your program list without modifying your it.
The latest version of this style can be downloaded from
((<URL:http://zunda.freeshell.org/d/misc/style/emptdiary/emptdiary_style.rb>)),
and the latest version of this document can be downloaded from
((<URL:http://zunda.freeshell.org/d/misc/style/emptdiary/README.rd.en>)).
== Usage
If you want to use this style
(1) copy the file emptdiary_style.rb into the tdiary/ directory under
the top directory where tdiary.rb sits.
(2) add the following line into tdiary.conf:
@style = 'emptDiary'
You can write your diaries in almost the same manner as you have done
with the tDiary style as described in the file HOWTO-write-tDiary.html.
In short:
* A line beginning without a space becomes a ((:section title:)) with a
((:section anchor:)),
* Lines following the ((:section title:)) become the body of the
((:section:)),
* An empty line changes ((:section:))s, but
* You can create a ((:section:)) with a ((:section anchor:)) but a
((:section title:)) with the first line beginning with a space.
((:emptDiary style:)) adds the follwing rules:
* Empty lines between <% and %> are ignored when parsing your text into
sections. Thus, you can include empty lines between <% and %>.
As a side effect
* You have to keep <% and %>'s in the pairs.
Thus, using pre.rb plugin, you can write ((*A*)) section like:
title of the section
<p>Descriptino of the program</p>
<%=pre <<'_PRE'
#include <stdio.h>
/* above is an empty line */
int
main (int argc, char *argv[])
{
puts ("Hello world.");
}
_PRE
%>
Please note that the <, >, and & charactors are escaped by the pre plugin.
== Acknowledgements
This style is realized using TdiarySection and TdiaryDiary as
super-classes. I thank the authors of tdiary_style.rb for providing such
flexible classes.
== Copyright
Copyright 2003 zunda <zunda at freeshell.org>
Permission is granted for use, copying, modification, distribution,
and distribution of modified versions of this work under the terms
of GPL version 2 or later.
=end
=begin ChangeLog
* Mon Feb 17, 2003 zunda <zunda at freeshell.org>
- first draft
=end