Skip to content

Commit 35a41c1

Browse files
author
kazuhiko
committed
initial import
git-svn-id: http://hikidoc.rubyforge.org/svn/trunk@1 a4544477-fcff-0310-b425-9d56a9aeec48
0 parents  commit 35a41c1

9 files changed

+2577
-0
lines changed

COPYING

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
Copyright (c) 2005, Kazuhiko <[email protected]>
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without
5+
modification, are permitted provided that the following conditions are
6+
met:
7+
8+
* Redistributions of source code must retain the above copyright
9+
notice, this list of conditions and the following disclaimer.
10+
* Redistributions in binary form must reproduce the above
11+
copyright notice, this list of conditions and the following
12+
disclaimer in the documentation and/or other materials provided
13+
with the distribution.
14+
* Neither the name of the HikiDoc nor the names of its
15+
contributors may be used to endorse or promote products derived
16+
from this software without specific prior written permission.
17+
18+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.en

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
! HikiDoc
2+
3+
!! Introduction
4+
5+
'HikiDoc' is a text-to-HTML conversion tool for web writers. HikiDoc
6+
allows you to write using an easy-to-read, easy-to-write plain text
7+
format, then convert it to structurally valid HTML (or XHTML).
8+
9+
!! Requirements
10+
11+
HikiDoc requires Ruby 1.8.2 or later.
12+
13+
!! Installation
14+
15+
Run the 'setup.rb' script like so:
16+
17+
$ ruby setup.rb config
18+
$ ruby setup.rb setup
19+
# ruby setup.rb install
20+
21+
!! Syntax
22+
23+
See 'TextFormattingRules.en'.

README.ja

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
! HikiDoc
2+
3+
!! �Ϥ����
4+
5+
'HikiDoc' �ϡ֥ƥ����Ȣ� HTML���Ѵ��ġ���Ǥ����񤭤䤹���ɤߤ䤹��ʸˡ��
6+
�ƥ����Ȥ�ޤȤ�� HTML (�� XHTML) ���Ѵ����ޤ���
7+
8+
!! ɬ�פʤ��
9+
10+
HikiDoc �μ¹Ԥˤ� Ruby 1.8.2 �ʹߤ�ɬ�פǤ���
11+
12+
!! ���󥹥ȡ���
13+
14+
�ʲ��Τ褦�� 'setup.rb' ������ץȤ��Ѥ��ƥ��󥹥ȡ��뤷�ޤ���
15+
16+
$ ruby setup.rb config
17+
$ ruby setup.rb setup
18+
# ruby setup.rb install
19+
20+
!! ʸˡ
21+
22+
'TextFormattingRules.ja' �򸫤Ƥ���������

TextFormattingRules.en

+280
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,280 @@
1+
{{toc}}
2+
3+
!Note
4+
I still need to do some more editing, but this should be adequate for now. -- Steve Brumbaugh, 22 November 2004
5+
6+
!Paragraphs
7+
*Consecutive lines are concatenated into a single paragraph.
8+
*Blank lines (ones with only a carriage return or with only spaces and tabs) mark the end of a paragraph.
9+
10+
*Example statement
11+
For example,
12+
if I write like this, these lines
13+
will be formatted as one paragraph.
14+
15+
*Example output
16+
17+
For example,
18+
if I write like this, these lines
19+
will be formatted as one paragraph.
20+
21+
!Links
22+
!!WikiNames
23+
*WikiNames are comprised of two or more words put together; each word begins with an uppercase letter, and is followed by at least one lowercase letter or number.
24+
*Words in which this condition is met become a WikiName, and a link is automatically attached.
25+
26+
*Example statement
27+
WikiName - WikiName
28+
HogeRule1 - WikiName
29+
NOTWIKINAME - All of the letters are uppercase, so this is not a WikiName
30+
WikiNAME - All of the letters in NAME are uppercase, so this is not a WikiName
31+
*fooWikiName - This begins with "foo", which is in all lowercase, so this is not a WikiName
32+
33+
*Example output
34+
**WikiName - WikiName
35+
**HogeRule1 - WikiName
36+
**NOTWIKINAME - All of the letters are uppercase, so this is not a WikiName
37+
**WikiNAME - All of the letters in NAME are uppercase, so this is not a WikiName
38+
**fooWikiName - This begins with "foo", which is in all lowercase, so this is not a WikiName
39+
40+
!!Linking to other Wiki pages
41+
If a page name is surrounded with two pairs of brackets, it becomes a link to that page.
42+
43+
*Example statement
44+
For example, if you write [[TextFormattingRules]], it becomes a link to that page.
45+
46+
*Example output
47+
48+
For example, if you write [[TextFormattingRules]], it becomes a link to that page.
49+
50+
!!Linking to an arbitrary URL
51+
If a phrase and URL, separated by a vertical line, are surrounded with two pairs of brackets, it becomes a link to an arbitrary URL.
52+
53+
*Example statement
54+
Links like [[Yahoo!|http://www.yahoo.com/]] are also possible.
55+
56+
*Example output
57+
58+
Links like [[Yahoo!|http://www.yahoo.com/]] are also possible.
59+
60+
In this case, if the URL ends with jpg., .jpeg, .png, or .gif, the image is displayed on the page. (The specified phrase becomes the ALT text for that image.)
61+
62+
*Example statement
63+
[[Four-leaf clover|http://jp.rubyist.net/theme/clover/clover_h1.png]]
64+
65+
*Example output
66+
67+
[[Four-leaf clover|http://jp.rubyist.net/theme/clover/clover_h1.png]]
68+
69+
Text in a paragraph that looks like a URL will automatically become a link.
70+
71+
*Example statement
72+
Hiki's home page is http://hikiwiki.org/en/ (English).
73+
74+
*Example output
75+
76+
Hiki's home page is http://hikiwiki.org/en/ (English).
77+
78+
!!InterWiki
79+
InterWiki is supported using [[Tiki:Tiki]]. To add a server, edit InterWikiName.
80+
81+
*Example statement
82+
*[[ruby-talk:1]]
83+
*[[Google:ruby wiki]]
84+
85+
*Example output
86+
**[[ruby-talk:1]]
87+
**[[Google:ruby wiki]]
88+
89+
!Preformatted text
90+
*Lines beginning with spaces or tabs will be treated as preformatted text.
91+
92+
*Example output
93+
require 'cgi'
94+
95+
cgi = CGI::new
96+
cgi.header
97+
98+
puts <<EOS
99+
<html>
100+
<head>
101+
<title>Hello!</title>
102+
</head>
103+
<body>
104+
<p>Hello!</p>
105+
</body>
106+
</html>
107+
EOS
108+
109+
!Text decoration
110+
*Text surrounded by sets of two single quotes ('') is emphasized.
111+
*Text surrounded by sets of three single quotes (''') is strongly emphasized.
112+
*Text surrounded by sets of double equal signs (===) is struck out.
113+
114+
*Example statement
115+
If you write like this, it becomes ''emphasized''.
116+
And if you write like this, it becomes '''strongly emphasized'''.
117+
==This is dull, but== And struck-out text is supported, too!
118+
119+
*Example output
120+
121+
If you write like this, it becomes ''emphasized''.
122+
And if you write like this, it becomes '''strongly emphasized'''.
123+
==This is dull, but== And struck-out text is supported, too!
124+
125+
!Headings
126+
* Lines with exclamation marks at the beginning become headings.
127+
* One can use up to five exclamation marks; they will be converted to <h2> to <h6> tags.
128+
129+
*Example statement
130+
!Heading1
131+
!!Heading2
132+
!!!Heading3
133+
!!!!Heading4
134+
!!!!!Heading5
135+
136+
*Example output
137+
!Heading1
138+
!!Heading2
139+
!!!Heading3
140+
!!!!Heading4
141+
!!!!!Heading5
142+
143+
!Horizontal lines
144+
Four hyphens at the beginning of the line (----) become a horizontal rule.
145+
146+
*Example statement
147+
148+
A B C D E
149+
----
150+
F G H I J
151+
152+
*Example output
153+
154+
A B C D E
155+
----
156+
F G H I J
157+
158+
!Lists
159+
* Lines beginning with asterisks become list items.
160+
* It is possible to use up to three asterisks; it is also possible to create nested lists.
161+
* Lines beginning with a # become numbered lists.
162+
163+
*Example statement
164+
*Item 1
165+
**Item 1.1
166+
**Item 1.2
167+
***Item 1.2.1
168+
***Item 1.2.2
169+
***Item 1.2.3
170+
**Item 1.3
171+
**Item 1.4
172+
*Item 2
173+
174+
#Item 1
175+
#Item 2
176+
##Item 2.1
177+
##Item 2.2
178+
##Item 2.3
179+
#Item 3
180+
##Item 3.1
181+
###Item 3.1.1
182+
###Item 3.1.2
183+
184+
*Example output
185+
186+
*Item 1
187+
**Item 1.1
188+
**Item 1.2
189+
***Item 1.2.1
190+
***Item 1.2.2
191+
***Item 1.2.3
192+
**Item 1.3
193+
**Item 1.4
194+
*Item 2
195+
196+
#Item 1
197+
#Item 2
198+
##Item 2.1
199+
##Item 2.2
200+
##Item 2.3
201+
#Item 3
202+
##Item 3.1
203+
###Item 3.1.1
204+
###Item 3.1.2
205+
206+
!Quotations
207+
Lines beginning with two double quotes become quotations.
208+
209+
*Example statement
210+
""This is a quotation.
211+
""This is another quote.
212+
""This is a continued quote. When there are consecutive quotations,
213+
""they are displayed as one quote,
214+
""like this.
215+
216+
*Example output
217+
""This is a quotation.
218+
""This is another quote.
219+
""This is a continued quote. When there are consecutive quotations,
220+
""they are displayed as one quote,
221+
""like this.
222+
223+
!Definitions
224+
Lines beginning with a colon and have a phrase and explanation separated by another colon will become a definition.
225+
226+
*Example statement
227+
228+
:ringo:apple
229+
:gorira:gorilla
230+
:rakuda:camel
231+
232+
*Example output
233+
:ringo:apple
234+
:gorira:gorilla
235+
:rakuda:camel
236+
237+
238+
! Tables
239+
Tables begin with two vertical bars.
240+
Leading `!' in a cell means that it is a heading cell.
241+
To concatenate columns or rows, put `>'(columns) or `^'(rows) at
242+
head of the cell.
243+
244+
* Example statement
245+
||!row heading \ column heading||!column A||!column B||!column C||!>column D-E (horizontal concatenation)
246+
||!row 1||A1||B1||^C1-C2 (vertical concatenation)||D1||E1
247+
||!row 2||A2||B2||^>D2-E2-D3-E3 (vertical and horizontal concatenation)
248+
||!row 3||>>A3-C3 (horizontal concatenation)
249+
250+
* Example output
251+
||!row heading \ column heading||!column A||!column B||!column C||!>column D-E (horizontal concatenation)
252+
||!row 1||A1||B1||^C1-C2 (vertical concatenation)||D1||E1
253+
||!row 2||A2||B2||^>D2-E2-D3-E3 (vertical and horizontal concatenation)
254+
||!row 3||>>A3-C3 (horizontal concatenation)
255+
256+
257+
! Comments
258+
Lines starting with `//' becomes a comment line.
259+
Comment lines is not outputted.
260+
261+
* Example statement
262+
// This is a comment line.
263+
264+
* Example output (not displayed)
265+
// This is a comment line.
266+
267+
268+
!Plugins
269+
One can use a plugin by surrounding text with two pairs of brackets.
270+
Multiple lines parameter is supported.
271+
When a line contains plugin only, it is becomes a block plugin,
272+
which is not surrounded by <p> ... </p>.
273+
274+
*Example statement
275+
{{recent(3)}}
276+
277+
* Example statement of multiple lines
278+
{{pre('
279+
...
280+
')}}

0 commit comments

Comments
 (0)