PageRenderTime 12ms CodeModel.GetById 7ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/samples/sample.pm6

http://txt2tags.googlecode.com/
Unknown | 230 lines | 167 code | 63 blank | 0 comment | 0 complexity | aab636ed7d645bf25ddde99f337d05eb MD5 | raw file
  1<PMTags1.0 win><C-COLORTABLE ("Preto" 1 0 0 0)
  2><@Normal=
  3  <FONT "Times New Roman"><CCOLOR "Preto"><SIZE 11>
  4  <HORIZONTAL 100><LETTERSPACE 0><CTRACK 127><CSSIZE 70><C+SIZE 58.3>
  5  <C-POSITION 33.3><C+POSITION 33.3><P><CBASELINE 0><CNOBREAK 0><CLEADING -0.05>
  6  <GGRID 0><GLEFT 7.2><GRIGHT 0><GFIRST 0><G+BEFORE 7.2><G+AFTER 0>
  7  <GALIGNMENT "justify"><GMETHOD "proportional"><G& "ENGLISH">
  8  <GPAIRS 12><G% 120><GKNEXT 0><GKWIDOW 0><GKORPHAN 0><GTABS $>
  9  <GHYPHENATION 2 34 0><GWORDSPACE 75 100 150><GSPACE -5 0 25>
 10><@Bullet=<@-PARENT "Normal"><FONT "Abadi MT Condensed Light">
 11  <GLEFT 14.4><G+BEFORE 2.15><G% 110><GTABS(25.2 l "")>
 12><@PreFormat=<@-PARENT "Normal"><FONT "Lucida Console"><SIZE 8><CTRACK 0>
 13  <GLEFT 0><G+BEFORE 0><GALIGNMENT "left"><GWORDSPACE 100 100 100><GSPACE 0 0 0>
 14><@Title1=<@-PARENT "Normal"><FONT "Arial"><SIZE 14><B>
 15  <GCONTENTS><GLEFT 0><G+BEFORE 0><GALIGNMENT "left">
 16><@Title2=<@-PARENT "Title1"><SIZE 12><G+BEFORE 3.6>
 17><@Title3=<@-PARENT "Title1"><SIZE 10><GLEFT 7.2><G+BEFORE 7.2>
 18><@Title4=<@-PARENT "Title3">
 19><@Title5=<@-PARENT "Title3">
 20><@Quote=<@-PARENT "Normal"><SIZE 10><I>>
 21
 22TXT2TAGS SAMPLE
 23Aurelio Jargas
 2402/28/2011
 25
 26
 27<@Title1:>Introduction
 28
 29<@Normal:>
 30Welcome to the txt2tags sample file.
 31
 32<@Normal:>
 33Here you have examples and a brief explanation of all marks.
 34
 35<@Normal:>
 36The first 3 lines of the this file are used as headers, on the following format:
 37
 38<@PreFormat:>
 39line1: document title
 40line2: author name, email
 41line3: date, version
 42
 43<@Normal:>
 44Lines with balanced equal signs = around are titles.
 45
 46<@Title1:>Fonts and Beautifiers
 47
 48<@Normal:>
 49We have two sets of fonts:
 50
 51<@Normal:>
 52The NORMAL type that can be improved with beautifiers.
 53
 54<@Normal:>
 55The TYPEWRITER type that uses monospaced font for pre-formatted text.
 56
 57<@Normal:>
 58We will now enter on a subtitle...
 59
 60<@Title2:>Beautifiers
 61
 62<@Normal:>
 63The text marks for beautifiers are simple, just as you type on a plain text email message.
 64
 65<@Normal:>
 66We use double *, /, - and _ to represent <B>bold<P>, <I>italic<P>, strike and <U>underline<P>.
 67
 68<@Normal:>
 69The <B><I>bold italic<P><P> style is also supported as a combination.
 70
 71<@Title2:>Pre-Formatted Text
 72
 73<@Normal:>
 74We can put a code sample or other pre-formatted text:
 75
 76<@PreFormat:>
 77  here    is     pre-formatted
 78//marks// are  **not**  ``interpreted``
 79
 80<@Normal:>
 81And also, it's easy to put a one line pre-formatted text:
 82
 83<@PreFormat:>
 84prompt$ ls /etc
 85
 86<@Normal:>
 87Or use <FONT "Lucida Console"><SIZE 9>pre-formatted<SIZE$><FONT$> inside sentences.
 88
 89<@Title2:>More Cosmetics
 90
 91<@Normal:>
 92Special entities like email (duh@somewhere.com) and URL (<U>http://www.duh.com<P>) are detected automagically, as long as the horizontal line:
 93
 94--------------------------------------------------------
 95
 96<@Normal:>
 97^ thin or large v
 98
 99========================================================
100
101<@Normal:>
102You can also specify an explicit link <U>http://duh.org<P> or an explicit email duh@somewhere.com with label.
103
104<@Normal:>
105And remember,
106
107<@Quote:>A TAB in front of the line does a quotation.
108<@Quote:><@Quote:>More TABs, more depth (if allowed).
109
110<@Normal:>
111Nice.
112
113<@Title1:>Lists
114
115<@Normal:>
116A list of items is natural, just putting a <B>dash<P> or a <B>plus<P> at the beginning of the line.
117
118<@Title2:>Plain List
119
120<@Normal:>
121The dash is the default list identifier. For sublists, just add <B>spaces<P> at the beginning of the line. More spaces, more sublists.
122
123<@Bullet:>
124•	Earth
125  <@Bullet:>
126  •	America
127    <@Bullet:>
128    •	South America
129      <@Bullet:>
130      •	Brazil
131        <@Bullet:>
132        •	How deep can I go?
133  •	Europe
134    <@Bullet:>
135    •	Lots of countries
136•	Mars
137  <@Bullet:>
138  •	Who knows?
139
140<@Normal:>
141The list ends with <B>two<P> consecutive blank lines.
142
143<@Title2:>Numbered List
144
145<@Normal:>
146The same rules as the plain list, just a different identifier (plus).
147
148<@Bullet:>
149•	one
150•	two
151•	three
152  <@Bullet:>
153  •	mixed lists!
154  •	what a mess
155    <@Bullet:>
156    •	counting again
157    •	...
158•	four
159
160<@Title2:>Definition List
161
162<@Normal:>
163The definition list identifier is a colon, followed by the term. The term contents is placed on the next line.
164
165orange
166  a yellow fruit
167apple
168  a green or red fruit
169other fruits
170  <@Bullet:>
171  •	wee!
172  •	mixing lists
173    <@Bullet:>
174    •	again!
175    •	and again!
176
177<@Title1:>Tables
178
179<@Normal:>
180Use pipes to compose table rows and cells. Double pipe at the line beginning starts a heading row. Natural spaces specify each cell alignment.
181
182<@PreFormat:>
183 || heading 1 |  heading 2  |  heading 3 |
184  | cell 1.1  |  cell 1.2   |   cell 1.3 |
185  | cell 2.1  |  cell 2.2   |   cell 2.3 |
186
187<@Normal:>
188Without the last pipe, no border:
189
190<@PreFormat:>
191 || heading 1 |  heading 2  |  heading 3
192  | cell 1.1  |  cell 1.2   |   cell 1.3
193  | cell 2.1  |  cell 2.2   |   cell 2.3
194
195<@Title1:>Special Entities
196
197<@Normal:>
198Because things were too simple.
199
200<@Title2:>Images
201
202<@Normal:>
203The image mark is as simple as it can be: <FONT "Lucida Console"><SIZE 9>[filename]<SIZE$><FONT$>.
204
205<@Normal:>
206                      img/photo.jpg  
207
208<@Bullet:>
209•	The filename must end in PNG, JPG, GIF, or similar.
210•	No spaces inside the brackets!
211
212<@Title2:>Other
213
214<@Normal:>
215The handy <FONT "Lucida Console"><SIZE 9>%%date<SIZE$><FONT$> macro expands to the current date.
216
217<@Normal:>
218So today is 20110602 on the ISO <FONT "Lucida Console"><SIZE 9>YYYYMMDD<SIZE$><FONT$> format.
219
220<@Normal:>
221You can also specify the date format with the %? flags, as <FONT "Lucida Console"><SIZE 9>%%date(%m-%d-%Y)<SIZE$><FONT$> which gives: 06-02-2011.
222
223<@Normal:>
224That's all for now.
225
226-------------------------------------------------------
227
228<@Normal:>
229img/t2tpowered.png (sample.t2t <U>sample.t2t<P>)
230