PageRenderTime 32ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/samples/sample.aap

http://txt2tags.googlecode.com/
Unknown | 480 lines | 300 code | 180 blank | 0 comment | 0 complexity | 88348f090f21d624fc108df051a3a231 MD5 | raw file
Possible License(s): GPL-2.0, GPL-3.0, WTFPL
  1. ================================================================================
  2. +-----------------+
  3. | TXT2TAGS SAMPLE |
  4. +-----------------+
  5. +----------------+
  6. | Aurelio Jargas |
  7. +----------------+
  8. +------------+
  9. | 04/08/2012 |
  10. +------------+
  11. ================================================================================
  12. ================================================================================
  13. TXT2TAGS SAMPLE 1/19
  14. TXT2TAGS SAMPLE
  15. Aurelio Jargas 04/08/2012
  16. ================================================================================
  17. This text is before the introduction.
  18. But it's OK.
  19. ================================================================================
  20. ================================================================================
  21. TXT2TAGS SAMPLE 2/19
  22. Introduction
  23. Aurelio Jargas 04/08/2012
  24. ================================================================================
  25. Welcome to the txt2tags sample file.
  26. Here you have examples and a brief explanation of all
  27. marks.
  28. The first 3 lines of the this file are used as headers,
  29. on the following format:
  30. line1: document title
  31. line2: author name, email
  32. line3: date, version
  33. Lines with balanced equal signs = around are titles.
  34. ================================================================================
  35. ================================================================================
  36. TXT2TAGS SAMPLE 3/19
  37. Fonts and Beautifiers
  38. Aurelio Jargas 04/08/2012
  39. ================================================================================
  40. We have two sets of fonts:
  41. The NORMAL type that can be improved with beautifiers.
  42. The TYPEWRITER type that uses monospaced font for
  43. pre-formatted text.
  44. We will now enter on a subtitle...
  45. Beautifiers
  46. ===========
  47. The text marks for beautifiers are simple, just as you
  48. type on a plain text email message.
  49. --------------------------------------------------------------------------------
  50. ================================================================================
  51. TXT2TAGS SAMPLE 4/19
  52. Fonts and Beautifiers
  53. Aurelio Jargas 04/08/2012
  54. ================================================================================
  55. We use double *, /, - and _ to represent *bold*,
  56. /italic/, -strike- and _underline_.
  57. The */bold italic/* style is also supported as a
  58. combination.
  59. Pre-Formatted Text
  60. ==================
  61. We can put a code sample or other pre-formatted text:
  62. here is pre-formatted
  63. //marks// are **not** ``interpreted``
  64. --------------------------------------------------------------------------------
  65. ================================================================================
  66. TXT2TAGS SAMPLE 5/19
  67. Fonts and Beautifiers
  68. Aurelio Jargas 04/08/2012
  69. ================================================================================
  70. And also, it's easy to put a one line pre-formatted
  71. text:
  72. prompt$ ls /etc
  73. Or use pre-formatted inside sentences.
  74. More Cosmetics
  75. ==============
  76. Special entities like email (duh@somewhere.com) and
  77. URL (http://www.duh.com) are detected automagically,
  78. as long as the horizontal line:
  79. ------------------------------------------------------------------------------
  80. --------------------------------------------------------------------------------
  81. ================================================================================
  82. TXT2TAGS SAMPLE 6/19
  83. Fonts and Beautifiers
  84. Aurelio Jargas 04/08/2012
  85. ================================================================================
  86. ^ thin or large v
  87. ==============================================================================
  88. You can also specify an explicit link (http://duh.org)
  89. or an explicit email (duh@somewhere.com) with label.
  90. And remember,
  91. --------------------------------------------------------------------------------
  92. ================================================================================
  93. TXT2TAGS SAMPLE 7/19
  94. Fonts and Beautifiers
  95. Aurelio Jargas 04/08/2012
  96. ================================================================================
  97. +----------------------------------------------+
  98. | A TAB in front of the line does a quotation. |
  99. +----------------------------------------------+
  100. +-------------------------------------+
  101. | More TABs, more depth (if allowed). |
  102. +-------------------------------------+
  103. Nice.
  104. ================================================================================
  105. ================================================================================
  106. TXT2TAGS SAMPLE 8/19
  107. Lists
  108. Aurelio Jargas 04/08/2012
  109. ================================================================================
  110. A list of items is natural, just putting a *dash* or
  111. a *plus* at the beginning of the line.
  112. Plain List
  113. ==========
  114. The dash is the default list identifier. For sublists,
  115. just add *spaces* at the beginning of the line. More
  116. spaces, more sublists.
  117. --------------------------------------------------------------------------------
  118. ================================================================================
  119. TXT2TAGS SAMPLE 9/19
  120. Lists
  121. Aurelio Jargas 04/08/2012
  122. ================================================================================
  123. +------------------------------+
  124. | * Earth |
  125. | * America |
  126. | * South America |
  127. | * Brazil |
  128. | * How deep can I go? |
  129. | * Europe |
  130. | * Lots of countries |
  131. | * Mars |
  132. | * Who knows? |
  133. +------------------------------+
  134. The list ends with *two* consecutive blank lines.
  135. Numbered List
  136. =============
  137. --------------------------------------------------------------------------------
  138. ================================================================================
  139. TXT2TAGS SAMPLE 10/19
  140. Lists
  141. Aurelio Jargas 04/08/2012
  142. ================================================================================
  143. The same rules as the plain list, just a different
  144. identifier (plus).
  145. +-----------------------+
  146. | 1. one |
  147. | 2. two |
  148. | 3. three |
  149. | * mixed lists! |
  150. | * what a mess |
  151. | 1. counting again |
  152. | 2. ... |
  153. | 4. four |
  154. +-----------------------+
  155. Definition List
  156. ===============
  157. --------------------------------------------------------------------------------
  158. ================================================================================
  159. TXT2TAGS SAMPLE 11/19
  160. Lists
  161. Aurelio Jargas 04/08/2012
  162. ================================================================================
  163. The definition list identifier is a colon, followed by
  164. the term. The term contents is placed on the next line.
  165. +------------------------+
  166. | orange |
  167. | a yellow fruit |
  168. | apple |
  169. | a green or red fruit |
  170. | other fruits |
  171. | * wee! |
  172. | * mixing lists |
  173. | 1. again! |
  174. | 2. and again! |
  175. +------------------------+
  176. ================================================================================
  177. ================================================================================
  178. TXT2TAGS SAMPLE 12/19
  179. Tables
  180. Aurelio Jargas 04/08/2012
  181. ================================================================================
  182. Use pipes to compose table rows and cells.
  183. Double pipe at the line beginning starts a heading row.
  184. Natural spaces specify each cell alignment.
  185. +-----------+-------------+------------+
  186. | cell 1.1 | cell 1.2 | cell 1.3 |
  187. +-----------+-------------+------------+
  188. | cell 2.1 | cell 2.2 | cell 2.3 |
  189. +-----------+-------------+------------+
  190. | cell 3.1 | cell 3.2 | cell 3.3 |
  191. +-----------+-------------+------------+
  192. --------------------------------------------------------------------------------
  193. ================================================================================
  194. TXT2TAGS SAMPLE 13/19
  195. Tables
  196. Aurelio Jargas 04/08/2012
  197. ================================================================================
  198. +-----------+-------------+------------+
  199. | heading 1 | heading 2 | heading 3 |
  200. +===========+=============+============+
  201. | cell 1.1 | cell 1.2 | cell 1.3 |
  202. +-----------+-------------+------------+
  203. | cell 2.1 | cell 2.2 | cell 2.3 |
  204. +-----------+-------------+------------+
  205. +-----------+-------------+------------+
  206. | heading 1 $ cell 1.1 | cell 1.2 |
  207. +-----------+-------------+------------+
  208. | heading 2 $ cell 2.1 | cell 2.2 |
  209. +-----------+-------------+------------+
  210. | heading 3 $ cell 3.1 | cell 3.2 |
  211. +-----------+-------------+------------+
  212. --------------------------------------------------------------------------------
  213. ================================================================================
  214. TXT2TAGS SAMPLE 14/19
  215. Tables
  216. Aurelio Jargas 04/08/2012
  217. ================================================================================
  218. +-----------+-------------+------------+
  219. | heading $ heading 1 | heading 2 |
  220. +===========+=============+============+
  221. | heading 1 $ cell 1.1 | cell 1.2 |
  222. +-----------+-------------+------------+
  223. | heading 2 $ cell 2.1 | cell 2.2 |
  224. +-----------+-------------+------------+
  225. Without the last pipe, no border:
  226. +-----------+-------------+------------+
  227. | cell 1.1 | cell 1.2 | cell 1.3 |
  228. | cell 2.1 | cell 2.2 | cell 2.3 |
  229. | cell 3.1 | cell 3.2 | cell 3.3 |
  230. +-----------+-------------+------------+
  231. --------------------------------------------------------------------------------
  232. ================================================================================
  233. TXT2TAGS SAMPLE 15/19
  234. Tables
  235. Aurelio Jargas 04/08/2012
  236. ================================================================================
  237. +-----------+-------------+------------+
  238. | heading 1 | heading 2 | heading 3 |
  239. +-----------+-------------+------------+
  240. | cell 1.1 | cell 1.2 | cell 1.3 |
  241. | cell 2.1 | cell 2.2 | cell 2.3 |
  242. +-----------+-------------+------------+
  243. +-----------+-------------+------------+
  244. | heading 1 $ cell 1.1 | cell 1.2 |
  245. | heading 2 $ cell 2.1 | cell 2.2 |
  246. | heading 3 $ cell 3.1 | cell 3.2 |
  247. +-----------+-------------+------------+
  248. --------------------------------------------------------------------------------
  249. ================================================================================
  250. TXT2TAGS SAMPLE 16/19
  251. Tables
  252. Aurelio Jargas 04/08/2012
  253. ================================================================================
  254. +-----------+-------------+------------+
  255. | heading $ heading 1 | heading 2 |
  256. +-----------+-------------+------------+
  257. | heading 1 $ cell 1.1 | cell 1.2 |
  258. | heading 2 $ cell 2.1 | cell 2.2 |
  259. +-----------+-------------+------------+
  260. ================================================================================
  261. ================================================================================
  262. TXT2TAGS SAMPLE 17/19
  263. Special Entities
  264. Aurelio Jargas 04/08/2012
  265. ================================================================================
  266. Because things were too simple.
  267. Images
  268. ======
  269. The image mark is as simple as it can be: [filename].
  270. [img/photo.jpg]
  271. And with some targets the image is linkable :
  272. (img/photo.jpg) (http://www.txt2tags.org)
  273. --------------------------------------------------------------------------------
  274. ================================================================================
  275. TXT2TAGS SAMPLE 18/19
  276. Special Entities
  277. Aurelio Jargas 04/08/2012
  278. ================================================================================
  279. +-------------------------------------------------------+
  280. | * The filename must end in PNG, JPG, GIF, or similar. |
  281. | * No spaces inside the brackets! |
  282. +-------------------------------------------------------+
  283. Other
  284. =====
  285. When the target needs, special chars like <, > and &
  286. are escaped.
  287. The handy %%date macro expands to the current date.
  288. So today is 20120408 on the ISO YYYYMMDD format.
  289. --------------------------------------------------------------------------------
  290. ================================================================================
  291. TXT2TAGS SAMPLE 19/19
  292. Special Entities
  293. Aurelio Jargas 04/08/2012
  294. ================================================================================
  295. You can also specify the date format with the %? flags,
  296. as %%date(%m-%d-%Y) which gives: 04-08-2012.
  297. That's all for now.
  298. ------------------------------------------------------------------------------
  299. [img/t2tpowered.png] (sample.t2t (sample.t2t))
  300. ================================================================================