/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. TXT2TAGS SAMPLE
  22. Aurelio Jargas
  23. 02/28/2011
  24. <@Title1:>Introduction
  25. <@Normal:>
  26. Welcome to the txt2tags sample file.
  27. <@Normal:>
  28. Here you have examples and a brief explanation of all marks.
  29. <@Normal:>
  30. The first 3 lines of the this file are used as headers, on the following format:
  31. <@PreFormat:>
  32. line1: document title
  33. line2: author name, email
  34. line3: date, version
  35. <@Normal:>
  36. Lines with balanced equal signs = around are titles.
  37. <@Title1:>Fonts and Beautifiers
  38. <@Normal:>
  39. We have two sets of fonts:
  40. <@Normal:>
  41. The NORMAL type that can be improved with beautifiers.
  42. <@Normal:>
  43. The TYPEWRITER type that uses monospaced font for pre-formatted text.
  44. <@Normal:>
  45. We will now enter on a subtitle...
  46. <@Title2:>Beautifiers
  47. <@Normal:>
  48. The text marks for beautifiers are simple, just as you type on a plain text email message.
  49. <@Normal:>
  50. We use double *, /, - and _ to represent <B>bold<P>, <I>italic<P>, strike and <U>underline<P>.
  51. <@Normal:>
  52. The <B><I>bold italic<P><P> style is also supported as a combination.
  53. <@Title2:>Pre-Formatted Text
  54. <@Normal:>
  55. We can put a code sample or other pre-formatted text:
  56. <@PreFormat:>
  57. here is pre-formatted
  58. //marks// are **not** ``interpreted``
  59. <@Normal:>
  60. And also, it's easy to put a one line pre-formatted text:
  61. <@PreFormat:>
  62. prompt$ ls /etc
  63. <@Normal:>
  64. Or use <FONT "Lucida Console"><SIZE 9>pre-formatted<SIZE$><FONT$> inside sentences.
  65. <@Title2:>More Cosmetics
  66. <@Normal:>
  67. Special entities like email (duh@somewhere.com) and URL (<U>http://www.duh.com<P>) are detected automagically, as long as the horizontal line:
  68. --------------------------------------------------------
  69. <@Normal:>
  70. ^ thin or large v
  71. ========================================================
  72. <@Normal:>
  73. You can also specify an explicit link <U>http://duh.org<P> or an explicit email duh@somewhere.com with label.
  74. <@Normal:>
  75. And remember,
  76. <@Quote:>A TAB in front of the line does a quotation.
  77. <@Quote:><@Quote:>More TABs, more depth (if allowed).
  78. <@Normal:>
  79. Nice.
  80. <@Title1:>Lists
  81. <@Normal:>
  82. A list of items is natural, just putting a <B>dash<P> or a <B>plus<P> at the beginning of the line.
  83. <@Title2:>Plain List
  84. <@Normal:>
  85. The dash is the default list identifier. For sublists, just add <B>spaces<P> at the beginning of the line. More spaces, more sublists.
  86. <@Bullet:>
  87. • Earth
  88. <@Bullet:>
  89. • America
  90. <@Bullet:>
  91. • South America
  92. <@Bullet:>
  93. • Brazil
  94. <@Bullet:>
  95. • How deep can I go?
  96. • Europe
  97. <@Bullet:>
  98. • Lots of countries
  99. • Mars
  100. <@Bullet:>
  101. • Who knows?
  102. <@Normal:>
  103. The list ends with <B>two<P> consecutive blank lines.
  104. <@Title2:>Numbered List
  105. <@Normal:>
  106. The same rules as the plain list, just a different identifier (plus).
  107. <@Bullet:>
  108. • one
  109. • two
  110. • three
  111. <@Bullet:>
  112. • mixed lists!
  113. • what a mess
  114. <@Bullet:>
  115. • counting again
  116. • ...
  117. • four
  118. <@Title2:>Definition List
  119. <@Normal:>
  120. The definition list identifier is a colon, followed by the term. The term contents is placed on the next line.
  121. orange
  122. a yellow fruit
  123. apple
  124. a green or red fruit
  125. other fruits
  126. <@Bullet:>
  127. • wee!
  128. • mixing lists
  129. <@Bullet:>
  130. • again!
  131. • and again!
  132. <@Title1:>Tables
  133. <@Normal:>
  134. Use pipes to compose table rows and cells. Double pipe at the line beginning starts a heading row. Natural spaces specify each cell alignment.
  135. <@PreFormat:>
  136. || heading 1 | heading 2 | heading 3 |
  137. | cell 1.1 | cell 1.2 | cell 1.3 |
  138. | cell 2.1 | cell 2.2 | cell 2.3 |
  139. <@Normal:>
  140. Without the last pipe, no border:
  141. <@PreFormat:>
  142. || heading 1 | heading 2 | heading 3
  143. | cell 1.1 | cell 1.2 | cell 1.3
  144. | cell 2.1 | cell 2.2 | cell 2.3
  145. <@Title1:>Special Entities
  146. <@Normal:>
  147. Because things were too simple.
  148. <@Title2:>Images
  149. <@Normal:>
  150. The image mark is as simple as it can be: <FONT "Lucida Console"><SIZE 9>[filename]<SIZE$><FONT$>.
  151. <@Normal:>
  152. img/photo.jpg
  153. <@Bullet:>
  154. • The filename must end in PNG, JPG, GIF, or similar.
  155. • No spaces inside the brackets!
  156. <@Title2:>Other
  157. <@Normal:>
  158. The handy <FONT "Lucida Console"><SIZE 9>%%date<SIZE$><FONT$> macro expands to the current date.
  159. <@Normal:>
  160. So today is 20110602 on the ISO <FONT "Lucida Console"><SIZE 9>YYYYMMDD<SIZE$><FONT$> format.
  161. <@Normal:>
  162. 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-02-2011.
  163. <@Normal:>
  164. That's all for now.
  165. -------------------------------------------------------
  166. <@Normal:>
  167. img/t2tpowered.png (sample.t2t <U>sample.t2t<P>)