File: sample.pm6

package info (click to toggle)
txt2tags 2.3-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 2,448 kB
  • ctags: 706
  • sloc: python: 2,323; lisp: 414; ruby: 347; php: 114; sh: 81; makefile: 67; xml: 59
file content (224 lines) | stat: -rw-r--r-- 5,602 bytes parent folder | download
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
<PMTags1.0 win><C-COLORTABLE ("Preto" 1 0 0 0)
><@Normal=
  <FONT "Times New Roman"><CCOLOR "Preto"><SIZE 11>
  <HORIZONTAL 100><LETTERSPACE 0><CTRACK 127><CSSIZE 70><C+SIZE 58.3>
  <C-POSITION 33.3><C+POSITION 33.3><P><CBASELINE 0><CNOBREAK 0><CLEADING -0.05>
  <GGRID 0><GLEFT 7.2><GRIGHT 0><GFIRST 0><G+BEFORE 7.2><G+AFTER 0>
  <GALIGNMENT "justify"><GMETHOD "proportional"><G& "ENGLISH">
  <GPAIRS 12><G% 120><GKNEXT 0><GKWIDOW 0><GKORPHAN 0><GTABS $>
  <GHYPHENATION 2 34 0><GWORDSPACE 75 100 150><GSPACE -5 0 25>
><@Bullet=<@-PARENT "Normal"><FONT "Abadi MT Condensed Light">
  <GLEFT 14.4><G+BEFORE 2.15><G% 110><GTABS(25.2 l "")>
><@PreFormat=<@-PARENT "Normal"><FONT "Lucida Console"><SIZE 8><CTRACK 0>
  <GLEFT 0><G+BEFORE 0><GALIGNMENT "left"><GWORDSPACE 100 100 100><GSPACE 0 0 0>
><@Title1=<@-PARENT "Normal"><FONT "Arial"><SIZE 14><B>
  <GCONTENTS><GLEFT 0><G+BEFORE 0><GALIGNMENT "left">
><@Title2=<@-PARENT "Title1"><SIZE 12><G+BEFORE 3.6>
><@Title3=<@-PARENT "Title1"><SIZE 10><GLEFT 7.2><G+BEFORE 7.2>
><@Title4=<@-PARENT "Title3">
><@Title5=<@-PARENT "Title3">
><@Quote=<@-PARENT "Normal"><SIZE 10><I>>

TXT2TAGS SAMPLE
Aurelio Marinho Jargas
03/21/2005


<@Title1:>Introduction
<@Normal:>
Welcome to the txt2tags sample file.

<@Normal:>
Here you have examples and a brief explanation of all marks.

<@Normal:>
The first 3 lines of the this file are used as headers, on the following format:

<@PreFormat:>
line1: document title
line2: author name, email
line3: date, version

<@Normal:>
Lines with balanced equal signs = around are titles.


<@Title1:>Fonts and Beautifiers
<@Normal:>
We have two sets of fonts:

<@Normal:>
The NORMAL type that can be improved with beautifiers.

<@Normal:>
The TYPEWRITER type that uses monospaced font for preformatted text.

<@Normal:>
We will now enter on a subtitle...


<@Title2:>Beautifiers
<@Normal:>
The text marks for beautifiers are simple, just as you type on a plain text email message.

<@Normal:>
We use double *, / and _ to represent <B>bold<P>, <I>italic<P> and <U>underline<P>.

<@Normal:>
The <B><I>bold italic<P><P> style is also supported as a combination.


<@Title2:>Pre-Formatted Text
<@Normal:>
We can put a code sample or other preformatted text:

<@PreFormat:>
  here    is     preformatted
//marks// are  **not**  ``interpreted``

<@Normal:>
And also, it's easy to put a one line preformatted text:

<@PreFormat:>
prompt$ ls /etc

<@Normal:>
Or use <FONT "Lucida Console"><SIZE 9>preformatted<SIZE$><FONT$> inside sentences.


<@Title2:>More Cosmetics
<@Normal:>
Special entities like email (duh@somewhere.com) and URL (<U>http://www.duh.com<P>) are detected automagically, as long as the horizontal line:

--------------------------------------------------------
<@Normal:>
^ thin or large v

========================================================

<@Normal:>
You can also specify an explicit link <U>http://duh.org<P> with label.

<@Normal:>
And remember,

<@Quote:>A TAB in front of the line does a quotation.
<@Quote:><@Quote:>More TABs, more depth (if allowed).
<@Normal:>
Nice.


<@Title1:>Lists
<@Normal:>
A list of items is natural, just putting a <B>dash<P> or a <B>plus<P> at the beginning of the line.


<@Title2:>Plain List
<@Normal:>
The dash is the default list identifier. For sublists, just add <B>spaces<P> at the beginning of the line. More spaces, more sublists.

<@Bullet:>
	earth
  <@Bullet:>
  	america
    <@Bullet:>
    	south america
      <@Bullet:>
      	brazil
        <@Bullet:>
        	how deep can i go?
  	europe
    <@Bullet:>
    	lots of countries
	mars
  <@Bullet:>
  	who knows?
<@Normal:>
The list ends with <B>two<P> consecutive blank lines.


<@Title2:>Numbered List
<@Normal:>
The same rules as the plain list, just a different identifier (plus).

<@Bullet:>
	one
	two
	three
  <@Bullet:>
  	mixed lists!
  	what a mess
    <@Bullet:>
    	counting again
    	...
	four

<@Title2:>Definition List
<@Normal:>
The definition list identifier is a colon, followed by the term. The term contents is placed on the next line.

orange
  a yellow fruit
apple
  a green or red fruit
other fruits
  <@Bullet:>
  	wee!
  	mixing lists
    <@Bullet:>
    	again!
    	and again!

<@Title1:>Tables
<@Normal:>
Use pipes to compose table rows and cells. Double pipe at the line beginning starts a heading row. Natural spaces specify each cell alignment.

<@PreFormat:>
 || heading 1 |  heading 2  |  heading 3 |
  | cell 1.1  |  cell 1.2   |   cell 1.3 |
  | cell 2.1  |  cell 2.2   |   cell 2.3 |
<@Normal:>
Without the last pipe, no border:

<@PreFormat:>
 || heading 1 |  heading 2  |  heading 3
  | cell 1.1  |  cell 1.2   |   cell 1.3
  | cell 2.1  |  cell 2.2   |   cell 2.3

<@Title1:>Special Entities
<@Normal:>
Because things were too simple.


<@Title2:>Images
<@Normal:>
The image mark is as simple as it can be: <FONT "Lucida Console"><SIZE 9>[filename]<SIZE$><FONT$>.

<@Normal:>
                      img/photo.jpg  

<@Bullet:>
	The filename must end in PNG, JPG, GIF, or similar.
	No spaces inside the brackets!

<@Title2:>Other
<@Normal:>
The handy <FONT "Lucida Console"><SIZE 9>%%date<SIZE$><FONT$> macro expands to the current date.

<@Normal:>
So today is 20050614 on the ISO <FONT "Lucida Console"><SIZE 9>YYYYMMDD<SIZE$><FONT$> format.

<@Normal:>
You can also specify the date format with the %? flags, as <FONT "Lucida Console"><SIZE 9>%%date(%m-%d-%Y)<SIZE$><FONT$> which gives: 06-14-2005.

<@Normal:>
That's all 4now.

-------------------------------------------------------
<@Normal:>
img/t2tpowered.png (sample.t2t <U>sample.t2t<P>)