/samples/sample.html

http://txt2tags.googlecode.com/ · HTML · 429 lines · 373 code · 54 blank · 2 comment · 0 complexity · 4ae0e16caa3e03afa5f625279aec643f MD5 · raw file

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <HTML>
  3. <HEAD>
  4. <META NAME="generator" CONTENT="http://txt2tags.org">
  5. <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
  6. <TITLE>TXT2TAGS SAMPLE</TITLE>
  7. </HEAD><BODY BGCOLOR="white" TEXT="black">
  8. <CENTER>
  9. <H1>TXT2TAGS SAMPLE</H1>
  10. <FONT SIZE="4"><I>Aurelio Jargas</I></FONT><BR>
  11. <FONT SIZE="4">03/18/2013</FONT>
  12. </CENTER>
  13. <P>
  14. This text is before the introduction.
  15. </P>
  16. <P>
  17. But it's OK.
  18. </P>
  19. <H1>Introduction</H1>
  20. <P>
  21. Welcome to the txt2tags sample file.
  22. </P>
  23. <P>
  24. Here you have examples and a brief explanation of all
  25. marks.
  26. </P>
  27. <P>
  28. The first 3 lines of this file are used as headers,
  29. on the following format:
  30. </P>
  31. <PRE>
  32. line1: document title
  33. line2: author name, email
  34. line3: date, version
  35. </PRE>
  36. <P>
  37. Lines with balanced equal signs = around are titles.
  38. </P>
  39. <H1>Fonts and Beautifiers</H1>
  40. <P>
  41. We have two sets of fonts:
  42. </P>
  43. <P>
  44. The NORMAL type that can be improved with beautifiers.
  45. </P>
  46. <P>
  47. The TYPEWRITER type that uses monospaced font for
  48. pre-formatted text.
  49. </P>
  50. <P>
  51. We will now enter on a subtitle...
  52. </P>
  53. <H2>Beautifiers</H2>
  54. <P>
  55. The text marks for beautifiers are simple, just as you
  56. type on a plain text email message.
  57. </P>
  58. <P>
  59. We use double *, /, - and _ to represent <B>bold</B>,
  60. <I>italic</I>, <S>strike</S> and <U>underline</U>.
  61. </P>
  62. <P>
  63. The <B><I>bold italic</I></B> style is also supported as a
  64. combination.
  65. </P>
  66. <H2>Pre-Formatted Text</H2>
  67. <P>
  68. We can put a code sample or other pre-formatted text:
  69. </P>
  70. <PRE>
  71. here is pre-formatted
  72. //marks// are **not** ``interpreted``
  73. </PRE>
  74. <P>
  75. And also, it's easy to put a one line pre-formatted
  76. text:
  77. </P>
  78. <PRE>
  79. prompt$ ls /etc
  80. </PRE>
  81. <P>
  82. Or use <CODE>pre-formatted</CODE> inside sentences.
  83. </P>
  84. <H2>More Cosmetics</H2>
  85. <P>
  86. Special entities like email (<A HREF="mailto:duh@somewhere.com">duh@somewhere.com</A>) and
  87. URL (<A HREF="http://www.duh.com">http://www.duh.com</A>) are detected automagically,
  88. as long as the horizontal line:
  89. </P>
  90. <HR NOSHADE SIZE=1>
  91. <P>
  92. ^ thin or large v
  93. </P>
  94. <HR NOSHADE SIZE=5>
  95. <P>
  96. You can also specify an <A HREF="http://duh.org">explicit link</A>
  97. or an <A HREF="mailto:duh@somewhere.com">explicit email</A> with label.
  98. </P>
  99. <P>
  100. And remember,
  101. </P>
  102. <BLOCKQUOTE>
  103. A TAB in front of the line does a quotation.
  104. <BLOCKQUOTE>
  105. More TABs, more depth (if allowed).
  106. </BLOCKQUOTE>
  107. </BLOCKQUOTE>
  108. <P>
  109. Nice.
  110. </P>
  111. <H1>Lists</H1>
  112. <P>
  113. A list of items is natural, just putting a <B>dash</B> or
  114. a <B>plus</B> at the beginning of the line.
  115. </P>
  116. <H2>Plain List</H2>
  117. <P>
  118. The dash is the default list identifier. For sublists,
  119. just add <B>spaces</B> at the beginning of the line. More
  120. spaces, more sublists.
  121. </P>
  122. <UL>
  123. <LI>Earth
  124. <UL>
  125. <LI>America
  126. <UL>
  127. <LI>South America
  128. <UL>
  129. <LI>Brazil
  130. <UL>
  131. <LI>How deep can I go?
  132. </UL>
  133. </UL>
  134. </UL>
  135. <LI>Europe
  136. <UL>
  137. <LI>Lots of countries
  138. </UL>
  139. </UL>
  140. <LI>Mars
  141. <UL>
  142. <LI>Who knows?
  143. </UL>
  144. </UL>
  145. <P>
  146. The list ends with <B>two</B> consecutive blank lines.
  147. </P>
  148. <H2>Numbered List</H2>
  149. <P>
  150. The same rules as the plain list, just a different
  151. identifier (plus).
  152. </P>
  153. <OL>
  154. <LI>one
  155. <LI>two
  156. <LI>three
  157. <UL>
  158. <LI>mixed lists!
  159. <LI>what a mess
  160. <OL>
  161. <LI>counting again
  162. <LI>...
  163. </OL>
  164. </UL>
  165. <LI>four
  166. </OL>
  167. <H2>Definition List</H2>
  168. <P>
  169. The definition list identifier is a colon, followed by
  170. the term. The term contents is placed on the next line.
  171. </P>
  172. <DL>
  173. <DT>orange</DT><DD>
  174. a yellow fruit
  175. <DT>apple</DT><DD>
  176. a green or red fruit
  177. <DT>other fruits</DT><DD>
  178. <UL>
  179. <LI>wee!
  180. <LI>mixing lists
  181. <OL>
  182. <LI>again!
  183. <LI>and again!
  184. </OL>
  185. </UL>
  186. </DL>
  187. <H1>Tables</H1>
  188. <P>
  189. Use pipes to compose table rows and cells.
  190. Double pipe at the line beginning starts a heading row.
  191. Natural spaces specify each cell alignment.
  192. </P>
  193. <TABLE ALIGN="center" BORDER="1" CELLPADDING="4">
  194. <TR>
  195. <TD>cell 1.1</TD>
  196. <TD ALIGN="center">cell 1.2</TD>
  197. <TD ALIGN="right">cell 1.3</TD>
  198. </TR>
  199. <TR>
  200. <TD>cell 2.1</TD>
  201. <TD ALIGN="center">cell 2.2</TD>
  202. <TD ALIGN="right">cell 2.3</TD>
  203. </TR>
  204. <TR>
  205. <TD>cell 3.1</TD>
  206. <TD ALIGN="center">cell 3.2</TD>
  207. <TD ALIGN="right">cell 3.3</TD>
  208. </TR>
  209. </TABLE>
  210. <TABLE BORDER="1" CELLPADDING="4">
  211. <TR>
  212. <TH>heading 1</TH>
  213. <TH>heading 2</TH>
  214. <TH>heading 3</TH>
  215. </TR>
  216. <TR>
  217. <TD>cell 1.1</TD>
  218. <TD ALIGN="center">cell 1.2</TD>
  219. <TD ALIGN="right">cell 1.3</TD>
  220. </TR>
  221. <TR>
  222. <TD>cell 2.1</TD>
  223. <TD ALIGN="center">cell 2.2</TD>
  224. <TD ALIGN="right">cell 2.3</TD>
  225. </TR>
  226. </TABLE>
  227. <TABLE ALIGN="center" BORDER="1" CELLPADDING="4">
  228. <TR>
  229. <TH>heading 1</TH>
  230. <TD ALIGN="center">cell 1.1</TD>
  231. <TD ALIGN="right">cell 1.2</TD>
  232. </TR>
  233. <TR>
  234. <TH>heading 2</TH>
  235. <TD ALIGN="center">cell 2.1</TD>
  236. <TD ALIGN="right">cell 2.2</TD>
  237. </TR>
  238. <TR>
  239. <TH>heading 3</TH>
  240. <TD ALIGN="center">cell 3.1</TD>
  241. <TD ALIGN="right">cell 3.2</TD>
  242. </TR>
  243. </TABLE>
  244. <TABLE BORDER="1" CELLPADDING="4">
  245. <TR>
  246. <TH>heading</TH>
  247. <TH>heading 1</TH>
  248. <TH>heading 2</TH>
  249. </TR>
  250. <TR>
  251. <TH>heading 1</TH>
  252. <TD ALIGN="center">cell 1.1</TD>
  253. <TD ALIGN="right">cell 1.2</TD>
  254. </TR>
  255. <TR>
  256. <TH>heading 2</TH>
  257. <TD ALIGN="center">cell 2.1</TD>
  258. <TD ALIGN="right">cell 2.2</TD>
  259. </TR>
  260. </TABLE>
  261. <P>
  262. Without the last pipe, no border:
  263. </P>
  264. <TABLE ALIGN="center" CELLPADDING="4">
  265. <TR>
  266. <TD>cell 1.1</TD>
  267. <TD ALIGN="center">cell 1.2</TD>
  268. <TD ALIGN="right">cell 1.3</TD>
  269. </TR>
  270. <TR>
  271. <TD>cell 2.1</TD>
  272. <TD ALIGN="center">cell 2.2</TD>
  273. <TD ALIGN="right">cell 2.3</TD>
  274. </TR>
  275. <TR>
  276. <TD>cell 3.1</TD>
  277. <TD ALIGN="center">cell 3.2</TD>
  278. <TD ALIGN="right">cell 3.3</TD>
  279. </TR>
  280. </TABLE>
  281. <TABLE CELLPADDING="4">
  282. <TR>
  283. <TH>heading 1</TH>
  284. <TH>heading 2</TH>
  285. <TH>heading 3</TH>
  286. </TR>
  287. <TR>
  288. <TD>cell 1.1</TD>
  289. <TD ALIGN="center">cell 1.2</TD>
  290. <TD ALIGN="right">cell 1.3</TD>
  291. </TR>
  292. <TR>
  293. <TD>cell 2.1</TD>
  294. <TD ALIGN="center">cell 2.2</TD>
  295. <TD ALIGN="right">cell 2.3</TD>
  296. </TR>
  297. </TABLE>
  298. <TABLE ALIGN="center" CELLPADDING="4">
  299. <TR>
  300. <TH>heading 1</TH>
  301. <TD ALIGN="center">cell 1.1</TD>
  302. <TD ALIGN="right">cell 1.2</TD>
  303. </TR>
  304. <TR>
  305. <TH>heading 2</TH>
  306. <TD ALIGN="center">cell 2.1</TD>
  307. <TD ALIGN="right">cell 2.2</TD>
  308. </TR>
  309. <TR>
  310. <TH>heading 3</TH>
  311. <TD ALIGN="center">cell 3.1</TD>
  312. <TD ALIGN="right">cell 3.2</TD>
  313. </TR>
  314. </TABLE>
  315. <TABLE CELLPADDING="4">
  316. <TR>
  317. <TH>heading</TH>
  318. <TH>heading 1</TH>
  319. <TH>heading 2</TH>
  320. </TR>
  321. <TR>
  322. <TH>heading 1</TH>
  323. <TD ALIGN="center">cell 1.1</TD>
  324. <TD ALIGN="right">cell 1.2</TD>
  325. </TR>
  326. <TR>
  327. <TH>heading 2</TH>
  328. <TD ALIGN="center">cell 2.1</TD>
  329. <TD ALIGN="right">cell 2.2</TD>
  330. </TR>
  331. </TABLE>
  332. <H1>Special Entities</H1>
  333. <P>
  334. Because things were too simple.
  335. </P>
  336. <H2>Images</H2>
  337. <P>
  338. The image mark is as simple as it can be: <CODE>[filename]</CODE>.
  339. </P>
  340. <center><IMG ALIGN="middle" SRC="img/photo.jpg" BORDER="0" ALT=""></center>
  341. <P>
  342. And with some targets the image is linkable :
  343. </P>
  344. <P>
  345. <A HREF="http://www.txt2tags.org"><IMG ALIGN="middle" SRC="img/photo.jpg" BORDER="0" ALT=""></A>
  346. </P>
  347. <UL>
  348. <LI>The filename must end in PNG, JPG, GIF, or similar.
  349. <LI>No spaces inside the brackets!
  350. </UL>
  351. <H2>Other</H2>
  352. <P>
  353. When the target needs, special chars like &lt;, &gt; and &amp;
  354. are escaped.
  355. </P>
  356. <P>
  357. The handy <CODE>%%date</CODE> macro expands to the current date.
  358. </P>
  359. <P>
  360. So today is 20130530 on the ISO <CODE>YYYYMMDD</CODE> format.
  361. </P>
  362. <P>
  363. You can also specify the date format with the %? flags,
  364. as <CODE>%%date(%m-%d-%Y)</CODE> which gives: 05-30-2013.
  365. </P>
  366. <P>
  367. That's all for now.
  368. </P>
  369. <HR NOSHADE SIZE=1>
  370. <P>
  371. <IMG ALIGN="left" SRC="img/t2tpowered.png" BORDER="0" ALT=""> (<A HREF="sample.t2t">sample.t2t</A>)
  372. </P>
  373. <!-- html code generated by txt2tags 2.6.1148 (http://txt2tags.org) -->
  374. <!-- cmdline: txt2tags -t html samples/sample.t2t -->
  375. </BODY></HTML>