/doc/English/userguide/userguide.html

http://txt2tags.googlecode.com/ · HTML · 3589 lines · 3457 code · 131 blank · 1 comment · 0 complexity · c0fe9b895ad72f0cb4c9dc464dd836c9 MD5 · raw file

Large files are truncated click here to view the full file

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <!-- This document was generated from userguide.t2t -->
  3. <HTML>
  4. <HEAD>
  5. <META NAME="generator" CONTENT="http://txt2tags.org">
  6. <LINK REL="stylesheet" TYPE="text/css" HREF="userguide.css">
  7. <TITLE>Txt2tags User Guide</TITLE>
  8. </HEAD>
  9. <BODY>
  10. <DIV CLASS="header" ID="header">
  11. </DIV>
  12. <DIV CLASS="body" ID="body">
  13. <H1>About</H1>
  14. <P>
  15. This is the <A HREF="http://txt2tags.org">txt2tags</A> User Guide, the
  16. complete manual about the program.
  17. </P>
  18. <UL>
  19. <LI>User Guide official address:
  20. <A HREF="http://txt2tags.org/userguide">http://txt2tags.org/userguide</A>
  21. <P></P>
  22. <LI>User Guide PDF download:
  23. <A HREF="http://txt2tags.org/userguide/userguide.pdf">http://txt2tags.org/userguide/userguide.pdf</A>
  24. </UL>
  25. <A NAME="intro"></A>
  26. <H1>Part I - Introducing Txt2tags</H1>
  27. <A NAME="1st-questions"></A>
  28. <H2>The First Questions You May Have</H2>
  29. <P>
  30. This chapter is a txt2tags overview, that will introduce the program
  31. purpose and features.
  32. </P>
  33. <H3>What is it?</H3>
  34. <P>
  35. Txt2tags is a text formatting and conversion tool.
  36. </P>
  37. <DL>
  38. <DT><B>A text formatting tool</B>: The txt2tags wiki-like syntax is easy to use and to remember. You can use it for every purpose, like storing your notes and formatting your documents.</DT><DD>
  39. <P></P>
  40. <DT><B>A conversion tool</B>: You can use the txt2tags python program to converts your txt2tags documents to several supported <A HREF="#targets">targets</A>. <I>(Further reference to the txt2tags python program will simply be labelled "txt2tags".)</I></DT><DD>
  41. <P></P>
  42. Amongs others, there are:
  43. <P></P>
  44. </DL>
  45. <UL>
  46. <LI>popular Wiki markups, such as bbcode, wikipedia pages, markdown, restructuredtext and spip.
  47. <P></P>
  48. <LI>html variations: html transitional, xhtml, html5...
  49. <P></P>
  50. <LI>office documents: RTF, LaTeX documents, Open Document Spreadsheet, SQLite database (imported from tables)
  51. <P></P>
  52. <LI>plain text, including ASCII art variations.
  53. </UL>
  54. <P>
  55. <I>See the <A HREF="#targets">targets chapter</A> to discover the full list.</I>
  56. </P>
  57. <DL>
  58. <DT><B>And more</B>: Beyond those 2 aspects, which deals with defined features and syntax, txt2tags can also manipulate your document with <A HREF="#setting-preproc">powerful input and output filters</A>.</DT><DD>
  59. </DL>
  60. <H3>Why should I use it?</H3>
  61. <P>
  62. You'll find txt2tags really useful if you:
  63. </P>
  64. <UL>
  65. <LI>Need to publish documents in different formats
  66. <LI>Need to maintain updated documents in different formats
  67. <LI>Write technical documents or guides
  68. <LI>Don't know how to write a document in a specific format
  69. <LI>Don't have an editor for a specific format
  70. <LI>Want to use a simple text editor to update your documents
  71. </UL>
  72. <P>
  73. And the main motivation is:
  74. </P>
  75. <UL>
  76. <LI>Save time, writing <B>contents</B> and forgetting about <B>formatting</B>
  77. </UL>
  78. <H3>Why is it a good choice among other tools?</H3>
  79. <P>
  80. Txt2tags has a very straight way of growing, following basic concepts.
  81. These are the highlights:
  82. </P>
  83. <TABLE>
  84. <TR>
  85. <TD><I>Source File Readable</I></TD>
  86. <TD>Txt2tags marks are very simple, almost natural.</TD>
  87. </TR>
  88. <TR>
  89. <TD><I>Target Document Readable</I></TD>
  90. <TD>The target document is also readable, with indentation and spacing.</TD>
  91. </TR>
  92. <TR>
  93. <TD><I>Consistent Marks</I></TD>
  94. <TD>Txt2tags marks are simple symbols, designed to be unique enough to don't mix up with the document contents.</TD>
  95. </TR>
  96. <TR>
  97. <TD><I>Consistent Rules</I></TD>
  98. <TD>As the marks, the rules that applies to them are tied to each other, there are no "exceptions" or "special cases".</TD>
  99. </TR>
  100. <TR>
  101. <TD><I>Simple Structures</I></TD>
  102. <TD>All the supported formatting are <B>simple</B>, with no extra-options or complicated behavior modifiers. A mark is just a mark, with no options at all.</TD>
  103. </TR>
  104. <TR>
  105. <TD><I>Easy to Learn</I></TD>
  106. <TD>With simple marks and readable source, the txt2tags learning curve is user friendly.</TD>
  107. </TR>
  108. <TR>
  109. <TD><I>Nice Examples</I></TD>
  110. <TD>The <B>sample files</B> included on the package gives real life examples of documents written for txt2tags.</TD>
  111. </TR>
  112. <TR>
  113. <TD><I>Valuable Tools</I></TD>
  114. <TD>The <B>syntax files</B> included on the package help you to write documents with no syntax errors.</TD>
  115. </TR>
  116. <TR>
  117. <TD><I>Three User Interfaces</I></TD>
  118. <TD>There is a user friendly <B>Graphical interface</B>, a handy <B>Web interface</B> easy to install in intranets and a <B>Command Line interface</B> for power-users and scripting.</TD>
  119. </TR>
  120. <TR>
  121. <TD><I>Scripting</I></TD>
  122. <TD>With the full featured command line mode, an experienced user can <B>automatize</B> tasks and do <B>post-editing</B> on the converted files.</TD>
  123. </TR>
  124. <TR>
  125. <TD><I>Download and Run / Multi-platform</I></TD>
  126. <TD>Txt2tags is a single <B>Python script</B>. There is no need to compile it or download extra modules. So it runs nicely on *NIX, Linux, Windows and Macs.</TD>
  127. </TR>
  128. <TR>
  129. <TD><I>Mature</I></TD>
  130. <TD>First released in 2001, txt2tags is now a mature program with years of improvements and bug fixes, extensive documentation, translations and an loyal user base.</TD>
  131. </TR>
  132. </TABLE>
  133. <H3>Do I have to pay for it?</H3>
  134. <P>
  135. Absolutely NO!
  136. </P>
  137. <P>
  138. It's free, GPL licensed.
  139. </P>
  140. <A NAME="structures"></A>
  141. <H2>Supported Formatting Structures</H2>
  142. <P>
  143. The following is a list of all the structures supported by txt2tags.
  144. </P>
  145. <UL>
  146. <LI>header (document title, author name, date)
  147. <LI>section title (numbered or not)
  148. <LI>paragraphs
  149. <LI>font beautifiers
  150. <UL>
  151. <LI>bold
  152. <LI>italic
  153. <LI>underline
  154. <LI>strike
  155. </UL>
  156. <LI>monospaced font (verbatim)
  157. <UL>
  158. <LI>monospaced inside paragraph
  159. <LI>monospaced line
  160. <LI>monospaced area (multiline)
  161. </UL>
  162. <LI>quoted area
  163. <LI>link
  164. <UL>
  165. <LI>URL/Internet links
  166. <LI>e-mail links
  167. <LI>local links
  168. <LI>named links
  169. </UL>
  170. <LI>lists
  171. <UL>
  172. <LI>bulleted list
  173. <LI>numbered list
  174. <LI>definition list
  175. </UL>
  176. <LI>horizontal separator line
  177. <LI>image (with smart alignment)
  178. <LI>table (with or without border, smart alignment, column span)
  179. <LI>macros (with flexible formatting):
  180. <UL>
  181. <LI>current date
  182. <LI>file modification time
  183. <LI>input and output file name and path
  184. <LI>automatic table of contents
  185. </UL>
  186. <LI>special mark for raw text (no marks parsed inside)
  187. <LI>special mark for tagged text (no parsing, sent directly to output)
  188. <LI>comments (for self notes, TODO, FIXME)
  189. </UL>
  190. <A NAME="targets"></A>
  191. <H2>Supported Targets</H2>
  192. <H3>Wiki</H3>
  193. <DL>
  194. <DT><B>adoc</B></DT><DD>
  195. AsciiDoc document
  196. <P></P>
  197. <DT><B>bbcode</B></DT><DD>
  198. BBCode document
  199. <P></P>
  200. <DT><B>creole</B></DT><DD>
  201. Creole 1.0 document
  202. <P></P>
  203. <DT><B>DOKU</B></DT><DD>
  204. <A HREF="http://www.dokuwiki.org/dokuwiki">DokuWiki</A> is a standards
  205. compliant, simple to use Wiki, mainly aimed at creating documentation
  206. of any kind. It is targeted at developer teams, workgroups and small
  207. companies. It has a simple but powerful syntax which makes sure the
  208. data files remain readable outside the Wiki and eases the creation of
  209. structured texts. All data is stored in plain text files - no
  210. database is required.
  211. </DL>
  212. <DL>
  213. <DT><B>Foswiki / TWiki</B></DT><DD>
  214. <A HREF="http://foswiki.org/">Foswiki</A> or <A HREF="http://twiki.org">TWiki</A>, is a flexible, powerful,
  215. and easy to use enterprise wiki and collaboration platform.
  216. The structured wiki is typically used to run a project development
  217. space, a document management system, a knowledge base, or any other
  218. groupware tool, on an intranet or on the internet.
  219. <P></P>
  220. <DT><B>GWIKI</B></DT><DD>
  221. Now you can easily paste your project's current documentation into the
  222. <A HREF="http://code.google.com/">Google Code</A> Wiki.
  223. <P></P>
  224. <DT><B>md</B></DT><DD>
  225. Markdown document
  226. <P></P>
  227. <DT><B>MOIN</B></DT><DD>
  228. You don't know what <A HREF="http://moinmo.in/">MoinMoin</A> is?
  229. It is a <A HREF="http://www.c2.com/cgi/wiki">WikiWiki</A>!
  230. <P></P>
  231. Moin syntax is kinda boring when you need to keep
  232. <CODE>{{{'''''adding braces and quotes'''''}}}</CODE>, so txt2tags comes with the
  233. simplified marks and unified solution: one source, multi targets.
  234. <P></P>
  235. <DT><B><A HREF="http://en.wikipedia.org/wiki/PmWiki">PMWIKI</A></B></DT><DD>
  236. <A HREF="http://www.pmwiki.org/">PmWiki</A> is a light and free wiki software written in PHP, and using no SQL database.
  237. <P></P>
  238. <DT><B>red</B> </DT><DD>
  239. Redmine Wiki page
  240. <P></P>
  241. <DT><B>rst</B></DT><DD>
  242. ReStructuredText document
  243. <P></P>
  244. <DT><B>spip</B></DT><DD>
  245. SPIP article
  246. <P></P>
  247. <DT><B>txt2t</B></DT><DD>
  248. Txt2tags document
  249. <P></P>
  250. <DT><B>WIKI</B></DT><DD>
  251. You've heard about the <A HREF="http://wikipedia.org">Wikipedia</A>, right? So you
  252. don't need to learn yet-another markup syntax. Just stick with txt2tags
  253. and let it convert your text to the Wikipedia format, called
  254. <A HREF="http://en.wikipedia.org/wiki/MediaWiki">MediaWiki</A>.
  255. </DL>
  256. <H3>HTML</H3>
  257. <DL>
  258. <DT><B>aapw</B></DT><DD>
  259. ASCII Art Presentation Web
  260. <P></P>
  261. <DT><B>aasw</B></DT><DD>
  262. ASCII Art Spreadsheet Web
  263. <P></P>
  264. <DT><B>aatw</B></DT><DD>
  265. ASCII Art Text Web
  266. <P></P>
  267. <DT><B><A HREF="http://en.wikipedia.org/wiki/HTML">HTML</A></B></DT><DD>
  268. You maybe know what HTML is. (hint: Internet)
  269. <P></P>
  270. Txt2tags generates clean HTML documents, that look pretty and have
  271. its source readable. It DOES NOT use javascript, frames or other
  272. futile formatting techniques, that aren't required for simple, techie
  273. documents. But a separate CSS file can be used if wanted. Txt2tags
  274. generates "<I>HTML 4.0 Transitional</I>" code.
  275. <P></P>
  276. Txt2tags HTML generated code is 100% approved by the <A HREF="http://validator.w3.org/">w3c validator</A>.
  277. <P></P>
  278. <DT><B>html5</B></DT><DD>
  279. HTML5 page
  280. <P></P>
  281. <DT><B>htmls</B></DT><DD>
  282. HTML Spreadsheet
  283. <P></P>
  284. <DT><B>wp</B></DT><DD>
  285. WordPress post
  286. <P></P>
  287. <DT><B><A HREF="http://en.wikipedia.org/wiki/XHTML">XHTML</A></B></DT><DD>
  288. It is the new generation of HTML, with more strict rules.
  289. This makes the code easier to parse and
  290. understand. For the general purpose, consider it HTML. Txt2tags
  291. generates "<I>XHTML 1.0 Transitional</I>" code.
  292. <P></P>
  293. Txt2tags XHTML generated code is 100% approved by the <A HREF="http://validator.w3.org/">w3c validator</A>.
  294. <P></P>
  295. <DT><B>xhtmls</B></DT><DD>
  296. XHTML Strict page
  297. </DL>
  298. <H3>Office</H3>
  299. <DL>
  300. <DT><B>csv</B></DT><DD>
  301. CSV spreadsheet
  302. <P></P>
  303. <DT><B>db</B></DT><DD>
  304. SQLite database
  305. <P></P>
  306. <DT><B>dbk</B></DT><DD>
  307. DocBook document
  308. <P></P>
  309. <DT><B>LOUT</B></DT><DD>
  310. Very similar to LaTeX in power, but with an easier syntax using "@"
  311. instead "\" and avoiding the need of braces in common situations. Its
  312. approach of everything-is-an-object makes the tagging much saner.
  313. <P></P>
  314. Txt2tags generates ready-to-use Lout files, which can be converted do
  315. PS or PDF files using the "lout" command.
  316. <P></P>
  317. <DT><B>MGP</B></DT><DD>
  318. <A HREF="http://en.wikipedia.org/wiki/MagicPoint">MagicPoint</A> is a very handy presentation tool
  319. (hint: Microsoft PowerPoint), that uses a tagged language to define all
  320. the screens. So you can do complex presentations in vi/emacs/notepad.
  321. <P></P>
  322. Txt2tags generates a ready-to-use .mgp file, defining all the
  323. necessary headers for fonts and appearance definitions, as long as
  324. international characters support.
  325. <P></P>
  326. Txt2tags creates "diet" .mgp files: they use the Type1 fonts, so you do not
  327. need to carry TrueType fonts files with your presentation. Also, the color
  328. definitions are simple, so even on a poor color palette system (such as
  329. <CODE>startx -- -bpp 8</CODE>), the presentation will look pretty!
  330. <P></P>
  331. The key is: convert and use. No quick fixes or requirements needed.
  332. <P></P>
  333. <DT><B>ods</B></DT><DD>
  334. Open Document Spreadsheet
  335. <P></P>
  336. <DT><B>PM6</B></DT><DD>
  337. Adobe PageMaker 6.0 has its own tagged
  338. language. Styles, color table, beautifiers, and most of all the
  339. PageMaker mouse-clicking features are also available on its tagged language.
  340. You just need to access the "Import tagged text" menu item. Just for
  341. the records, it's an &lt;HTML "like"&gt; tag format.
  342. <P></P>
  343. Txt2tags generates all the tags and already defines a extensive and
  344. working header, setting paragraph styles and formatting. This is the
  345. hard part.
  346. <P></P>
  347. <B>Author's note:</B>
  348. My entire portuguese <A HREF="http://guia-er.sf.net">regular expression's book</A>
  349. was written in VI, then converted to PageMaker with txt2tags and went to
  350. the publisher. It works :)
  351. <P></P>
  352. <DT><B>rtf</B></DT><DD>
  353. RTF document
  354. <P></P>
  355. <DT><B><A HREF="http://en.wikipedia.org/wiki/SGML">SGML</A></B></DT><DD>
  356. It is a common document format which has powerful conversion applications
  357. (<A HREF="http://packages.debian.org/linuxdoc-tools">linuxdoc-tools</A>). From a
  358. single SGML file you can generate HTML, PDF, PostScript, Info, LaTeX, LyX, RTF
  359. and XML documents. The tools also does automatic TOC and break
  360. sections into subpages.
  361. <P></P>
  362. Txt2tags generates SGML files in the LinuxDoc system type, ready to
  363. be converted with linuxdoc-tools without any extra catalog files or any
  364. SGML annoying requirements.
  365. <P></P>
  366. <DT><B><A HREF="http://en.wikipedia.org/wiki/LaTeX">LATEX</A></B></DT><DD>
  367. The preferred academic document format, it is more powerful than you
  368. ever wondered. Full books, complicated formulas and any complex text
  369. can be written in LaTeX. But prepare to loose your hair when you try
  370. to write the tags by hand...
  371. <P></P>
  372. Txt2tags generates ready-to-use LaTeX files, doing all the complex
  373. escaping tricks and exceptions. The writer just need to worry about
  374. the text.
  375. <P></P>
  376. <DT><B>texs</B></DT><DD>
  377. LaTeX Spreadsheet
  378. </DL>
  379. <H3>Text</H3>
  380. <DL>
  381. <DT><B>aap</B></DT><DD>
  382. ASCII Art Presentation
  383. <P></P>
  384. <DT><B>aas</B></DT><DD>
  385. ASCII Art Spreadsheet
  386. <P></P>
  387. <DT><B>aat</B></DT><DD>
  388. ASCII Art Text
  389. <P></P>
  390. <DT><B>MAN</B></DT><DD>
  391. UNIX man pages resist over the years. Document formats come and go,
  392. and there they are, unbeatable.
  393. <P></P>
  394. There are other tools to generate man documents, but txt2tags has
  395. one advantage: one source, multi targets. So the same man page
  396. contents can be converted to an HTML page, Wiki document and plain text.
  397. <P></P>
  398. <DT><B>TXT</B></DT><DD>
  399. TXT is text. Simple, pure, beautiful.
  400. <P></P>
  401. Although txt2tags marks are very intuitive and discrete, you can remove
  402. them by converting the file to pure TXT.
  403. <P></P>
  404. The titles are underlined, and the text is basically left as is on the
  405. source.
  406. </DL>
  407. <P>
  408. Tip: Use the <CODE>--targets</CODE> command line option to get a complete list of
  409. all the available targets.
  410. </P>
  411. <A NAME="struct-support"></A>
  412. <H2>Status of Supported Structures by Target</H2>
  413. <TABLE ALIGN="center" BORDER="1">
  414. <TR>
  415. <TH>Structure</TH>
  416. <TH>html</TH>
  417. <TH>xhtml</TH>
  418. <TH>sgml</TH>
  419. <TH>dbk</TH>
  420. <TH>tex</TH>
  421. <TH>lout</TH>
  422. <TH>man</TH>
  423. <TH>mgp</TH>
  424. <TH>creole</TH>
  425. <TH>wiki</TH>
  426. <TH>gwiki</TH>
  427. <TH>pmw</TH>
  428. <TH>doku</TH>
  429. <TH>moin</TH>
  430. <TH>pm6</TH>
  431. <TH>adoc</TH>
  432. <TH>art</TH>
  433. <TH>txt</TH>
  434. <TH>tml</TH>
  435. </TR>
  436. <TR>
  437. <TD>headers</TD>
  438. <TD ALIGN="center">Y</TD>
  439. <TD ALIGN="center">Y</TD>
  440. <TD ALIGN="center">Y</TD>
  441. <TD ALIGN="center">Y</TD>
  442. <TD ALIGN="center">Y</TD>
  443. <TD ALIGN="center">Y</TD>
  444. <TD ALIGN="center">Y</TD>
  445. <TD ALIGN="center">Y</TD>
  446. <TD ALIGN="center">-</TD>
  447. <TD ALIGN="center">-</TD>
  448. <TD ALIGN="center">-</TD>
  449. <TD ALIGN="center">Y</TD>
  450. <TD ALIGN="center">-</TD>
  451. <TD ALIGN="center">-</TD>
  452. <TD ALIGN="center">N</TD>
  453. <TD ALIGN="center">-</TD>
  454. <TD ALIGN="center">Y</TD>
  455. <TD ALIGN="center">Y</TD>
  456. <TD ALIGN="center">Y</TD>
  457. </TR>
  458. <TR>
  459. <TD>section title</TD>
  460. <TD ALIGN="center">Y</TD>
  461. <TD ALIGN="center">Y</TD>
  462. <TD ALIGN="center">Y</TD>
  463. <TD ALIGN="center">Y</TD>
  464. <TD ALIGN="center">Y</TD>
  465. <TD ALIGN="center">Y</TD>
  466. <TD ALIGN="center">Y</TD>
  467. <TD ALIGN="center">Y</TD>
  468. <TD ALIGN="center">Y</TD>
  469. <TD ALIGN="center">Y</TD>
  470. <TD ALIGN="center">Y</TD>
  471. <TD ALIGN="center">Y</TD>
  472. <TD ALIGN="center">Y</TD>
  473. <TD ALIGN="center">Y</TD>
  474. <TD ALIGN="center">Y</TD>
  475. <TD ALIGN="center">Y</TD>
  476. <TD ALIGN="center">Y</TD>
  477. <TD ALIGN="center">Y</TD>
  478. <TD ALIGN="center">Y</TD>
  479. </TR>
  480. <TR>
  481. <TD>paragraphs</TD>
  482. <TD ALIGN="center">Y</TD>
  483. <TD ALIGN="center">Y</TD>
  484. <TD ALIGN="center">Y</TD>
  485. <TD ALIGN="center">Y</TD>
  486. <TD ALIGN="center">Y</TD>
  487. <TD ALIGN="center">Y</TD>
  488. <TD ALIGN="center">Y</TD>
  489. <TD ALIGN="center">Y</TD>
  490. <TD ALIGN="center">Y</TD>
  491. <TD ALIGN="center">Y</TD>
  492. <TD ALIGN="center">Y</TD>
  493. <TD ALIGN="center">Y</TD>
  494. <TD ALIGN="center">Y</TD>
  495. <TD ALIGN="center">Y</TD>
  496. <TD ALIGN="center">Y</TD>
  497. <TD ALIGN="center">Y</TD>
  498. <TD ALIGN="center">Y</TD>
  499. <TD ALIGN="center">Y</TD>
  500. <TD ALIGN="center">Y</TD>
  501. </TR>
  502. <TR>
  503. <TD>bold</TD>
  504. <TD ALIGN="center">Y</TD>
  505. <TD ALIGN="center">Y</TD>
  506. <TD ALIGN="center">Y</TD>
  507. <TD ALIGN="center">Y</TD>
  508. <TD ALIGN="center">Y</TD>
  509. <TD ALIGN="center">Y</TD>
  510. <TD ALIGN="center">Y</TD>
  511. <TD ALIGN="center">Y</TD>
  512. <TD ALIGN="center">Y</TD>
  513. <TD ALIGN="center">Y</TD>
  514. <TD ALIGN="center">Y</TD>
  515. <TD ALIGN="center">Y</TD>
  516. <TD ALIGN="center">Y</TD>
  517. <TD ALIGN="center">Y</TD>
  518. <TD ALIGN="center">Y</TD>
  519. <TD ALIGN="center">Y</TD>
  520. <TD ALIGN="center">-</TD>
  521. <TD ALIGN="center">-</TD>
  522. <TD ALIGN="center">Y</TD>
  523. </TR>
  524. <TR>
  525. <TD>italic</TD>
  526. <TD ALIGN="center">Y</TD>
  527. <TD ALIGN="center">Y</TD>
  528. <TD ALIGN="center">Y</TD>
  529. <TD ALIGN="center">Y</TD>
  530. <TD ALIGN="center">Y</TD>
  531. <TD ALIGN="center">Y</TD>
  532. <TD ALIGN="center">Y</TD>
  533. <TD ALIGN="center">Y</TD>
  534. <TD ALIGN="center">Y</TD>
  535. <TD ALIGN="center">Y</TD>
  536. <TD ALIGN="center">Y</TD>
  537. <TD ALIGN="center">Y</TD>
  538. <TD ALIGN="center">Y</TD>
  539. <TD ALIGN="center">Y</TD>
  540. <TD ALIGN="center">Y</TD>
  541. <TD ALIGN="center">Y</TD>
  542. <TD ALIGN="center">-</TD>
  543. <TD ALIGN="center">-</TD>
  544. <TD ALIGN="center">Y</TD>
  545. </TR>
  546. <TR>
  547. <TD>underline</TD>
  548. <TD ALIGN="center">Y</TD>
  549. <TD ALIGN="center">Y</TD>
  550. <TD ALIGN="center">-</TD>
  551. <TD ALIGN="center">Y</TD>
  552. <TD ALIGN="center">Y</TD>
  553. <TD ALIGN="center">Y</TD>
  554. <TD ALIGN="center">-</TD>
  555. <TD ALIGN="center">Y</TD>
  556. <TD ALIGN="center">-</TD>
  557. <TD ALIGN="center">Y</TD>
  558. <TD ALIGN="center">-</TD>
  559. <TD ALIGN="center">Y</TD>
  560. <TD ALIGN="center">Y</TD>
  561. <TD ALIGN="center">Y</TD>
  562. <TD ALIGN="center">Y</TD>
  563. <TD ALIGN="center">N</TD>
  564. <TD ALIGN="center">-</TD>
  565. <TD ALIGN="center">-</TD>
  566. <TD ALIGN="center">Y</TD>
  567. </TR>
  568. <TR>
  569. <TD>strike</TD>
  570. <TD ALIGN="center">Y</TD>
  571. <TD ALIGN="center">Y</TD>
  572. <TD ALIGN="center">N</TD>
  573. <TD ALIGN="center">N</TD>
  574. <TD ALIGN="center">Y</TD>
  575. <TD ALIGN="center">-</TD>
  576. <TD ALIGN="center">-</TD>
  577. <TD ALIGN="center">-</TD>
  578. <TD ALIGN="center">-</TD>
  579. <TD ALIGN="center">Y</TD>
  580. <TD ALIGN="center">Y</TD>
  581. <TD ALIGN="center">Y</TD>
  582. <TD ALIGN="center">Y</TD>
  583. <TD ALIGN="center">Y</TD>
  584. <TD ALIGN="center">N</TD>
  585. <TD ALIGN="center">N</TD>
  586. <TD ALIGN="center">-</TD>
  587. <TD ALIGN="center">-</TD>
  588. <TD ALIGN="center">Y</TD>
  589. </TR>
  590. <TR>
  591. <TD>monospaced font</TD>
  592. <TD ALIGN="center">Y</TD>
  593. <TD ALIGN="center">Y</TD>
  594. <TD ALIGN="center">Y</TD>
  595. <TD ALIGN="center">Y</TD>
  596. <TD ALIGN="center">Y</TD>
  597. <TD ALIGN="center">Y</TD>
  598. <TD ALIGN="center">-</TD>
  599. <TD ALIGN="center">Y</TD>
  600. <TD ALIGN="center">-</TD>
  601. <TD ALIGN="center">Y</TD>
  602. <TD ALIGN="center">Y</TD>
  603. <TD ALIGN="center">Y</TD>
  604. <TD ALIGN="center">Y</TD>
  605. <TD ALIGN="center">Y</TD>
  606. <TD ALIGN="center">Y</TD>
  607. <TD ALIGN="center">Y</TD>
  608. <TD ALIGN="center">-</TD>
  609. <TD ALIGN="center">-</TD>
  610. <TD ALIGN="center">Y</TD>
  611. </TR>
  612. <TR>
  613. <TD>verbatim line</TD>
  614. <TD ALIGN="center">Y</TD>
  615. <TD ALIGN="center">Y</TD>
  616. <TD ALIGN="center">Y</TD>
  617. <TD ALIGN="center">Y</TD>
  618. <TD ALIGN="center">Y</TD>
  619. <TD ALIGN="center">Y</TD>
  620. <TD ALIGN="center">Y</TD>
  621. <TD ALIGN="center">Y</TD>
  622. <TD ALIGN="center">Y</TD>
  623. <TD ALIGN="center">Y</TD>
  624. <TD ALIGN="center">Y</TD>
  625. <TD ALIGN="center">Y</TD>
  626. <TD ALIGN="center">Y</TD>
  627. <TD ALIGN="center">Y</TD>
  628. <TD ALIGN="center">Y</TD>
  629. <TD ALIGN="center">Y</TD>
  630. <TD ALIGN="center">-</TD>
  631. <TD ALIGN="center">-</TD>
  632. <TD ALIGN="center">-</TD>
  633. </TR>
  634. <TR>
  635. <TD>verbatim area</TD>
  636. <TD ALIGN="center">Y</TD>
  637. <TD ALIGN="center">Y</TD>
  638. <TD ALIGN="center">Y</TD>
  639. <TD ALIGN="center">Y</TD>
  640. <TD ALIGN="center">Y</TD>
  641. <TD ALIGN="center">Y</TD>
  642. <TD ALIGN="center">Y</TD>
  643. <TD ALIGN="center">Y</TD>
  644. <TD ALIGN="center">Y</TD>
  645. <TD ALIGN="center">Y</TD>
  646. <TD ALIGN="center">Y</TD>
  647. <TD ALIGN="center">Y</TD>
  648. <TD ALIGN="center">Y</TD>
  649. <TD ALIGN="center">Y</TD>
  650. <TD ALIGN="center">Y</TD>
  651. <TD ALIGN="center">Y</TD>
  652. <TD ALIGN="center">-</TD>
  653. <TD ALIGN="center">-</TD>
  654. <TD ALIGN="center">Y</TD>
  655. </TR>
  656. <TR>
  657. <TD>quoted area</TD>
  658. <TD ALIGN="center">Y</TD>
  659. <TD ALIGN="center">Y</TD>
  660. <TD ALIGN="center">Y</TD>
  661. <TD ALIGN="center">Y</TD>
  662. <TD ALIGN="center">Y</TD>
  663. <TD ALIGN="center">Y</TD>
  664. <TD ALIGN="center">Y</TD>
  665. <TD ALIGN="center">Y</TD>
  666. <TD ALIGN="center">Y</TD>
  667. <TD ALIGN="center">Y</TD>
  668. <TD ALIGN="center">Y</TD>
  669. <TD ALIGN="center">Y</TD>
  670. <TD ALIGN="center">Y</TD>
  671. <TD ALIGN="center">Y</TD>
  672. <TD ALIGN="center">Y</TD>
  673. <TD ALIGN="center">N</TD>
  674. <TD ALIGN="center">Y</TD>
  675. <TD ALIGN="center">Y</TD>
  676. <TD ALIGN="center">-</TD>
  677. </TR>
  678. <TR>
  679. <TD>internet links</TD>
  680. <TD ALIGN="center">Y</TD>
  681. <TD ALIGN="center">Y</TD>
  682. <TD ALIGN="center">Y</TD>
  683. <TD ALIGN="center">Y</TD>
  684. <TD ALIGN="center">-</TD>
  685. <TD ALIGN="center">-</TD>
  686. <TD ALIGN="center">-</TD>
  687. <TD ALIGN="center">-</TD>
  688. <TD ALIGN="center">Y</TD>
  689. <TD ALIGN="center">Y</TD>
  690. <TD ALIGN="center">Y</TD>
  691. <TD ALIGN="center">Y</TD>
  692. <TD ALIGN="center">Y</TD>
  693. <TD ALIGN="center">Y</TD>
  694. <TD ALIGN="center">-</TD>
  695. <TD ALIGN="center">Y</TD>
  696. <TD ALIGN="center">-</TD>
  697. <TD ALIGN="center">-</TD>
  698. <TD ALIGN="center">Y</TD>
  699. </TR>
  700. <TR>
  701. <TD>e-mail links</TD>
  702. <TD ALIGN="center">Y</TD>
  703. <TD ALIGN="center">Y</TD>
  704. <TD ALIGN="center">Y</TD>
  705. <TD ALIGN="center">Y</TD>
  706. <TD ALIGN="center">-</TD>
  707. <TD ALIGN="center">-</TD>
  708. <TD ALIGN="center">-</TD>
  709. <TD ALIGN="center">-</TD>
  710. <TD ALIGN="center">Y</TD>
  711. <TD ALIGN="center">Y</TD>
  712. <TD ALIGN="center">Y</TD>
  713. <TD ALIGN="center">Y</TD>
  714. <TD ALIGN="center">Y</TD>
  715. <TD ALIGN="center">Y</TD>
  716. <TD ALIGN="center">-</TD>
  717. <TD ALIGN="center">Y</TD>
  718. <TD ALIGN="center">-</TD>
  719. <TD ALIGN="center">-</TD>
  720. <TD ALIGN="center">Y</TD>
  721. </TR>
  722. <TR>
  723. <TD>local links</TD>
  724. <TD ALIGN="center">Y</TD>
  725. <TD ALIGN="center">Y</TD>
  726. <TD ALIGN="center">Y</TD>
  727. <TD ALIGN="center">Y</TD>
  728. <TD ALIGN="center">N</TD>
  729. <TD ALIGN="center">N</TD>
  730. <TD ALIGN="center">-</TD>
  731. <TD ALIGN="center">-</TD>
  732. <TD ALIGN="center">N</TD>
  733. <TD ALIGN="center">N</TD>
  734. <TD ALIGN="center">N</TD>
  735. <TD ALIGN="center">Y</TD>
  736. <TD ALIGN="center">Y</TD>
  737. <TD ALIGN="center">Y</TD>
  738. <TD ALIGN="center">-</TD>
  739. <TD ALIGN="center">N</TD>
  740. <TD ALIGN="center">-</TD>
  741. <TD ALIGN="center">-</TD>
  742. <TD ALIGN="center">Y</TD>
  743. </TR>
  744. <TR>
  745. <TD>named links</TD>
  746. <TD ALIGN="center">Y</TD>
  747. <TD ALIGN="center">Y</TD>
  748. <TD ALIGN="center">Y</TD>
  749. <TD ALIGN="center">Y</TD>
  750. <TD ALIGN="center">-</TD>
  751. <TD ALIGN="center">-</TD>
  752. <TD ALIGN="center">-</TD>
  753. <TD ALIGN="center">-</TD>
  754. <TD ALIGN="center">Y</TD>
  755. <TD ALIGN="center">Y</TD>
  756. <TD ALIGN="center">Y</TD>
  757. <TD ALIGN="center">Y</TD>
  758. <TD ALIGN="center">Y</TD>
  759. <TD ALIGN="center">Y</TD>
  760. <TD ALIGN="center">-</TD>
  761. <TD ALIGN="center">Y</TD>
  762. <TD ALIGN="center">-</TD>
  763. <TD ALIGN="center">-</TD>
  764. <TD ALIGN="center">Y</TD>
  765. </TR>
  766. <TR>
  767. <TD>bulleted list</TD>
  768. <TD ALIGN="center">Y</TD>
  769. <TD ALIGN="center">Y</TD>
  770. <TD ALIGN="center">Y</TD>
  771. <TD ALIGN="center">Y</TD>
  772. <TD ALIGN="center">Y</TD>
  773. <TD ALIGN="center">Y</TD>
  774. <TD ALIGN="center">Y</TD>
  775. <TD ALIGN="center">Y</TD>
  776. <TD ALIGN="center">Y</TD>
  777. <TD ALIGN="center">Y</TD>
  778. <TD ALIGN="center">Y</TD>
  779. <TD ALIGN="center">Y</TD>
  780. <TD ALIGN="center">Y</TD>
  781. <TD ALIGN="center">Y</TD>
  782. <TD ALIGN="center">Y</TD>
  783. <TD ALIGN="center">Y</TD>
  784. <TD ALIGN="center">Y</TD>
  785. <TD ALIGN="center">Y</TD>
  786. <TD ALIGN="center">Y</TD>
  787. </TR>
  788. <TR>
  789. <TD>numbered list</TD>
  790. <TD ALIGN="center">Y</TD>
  791. <TD ALIGN="center">Y</TD>
  792. <TD ALIGN="center">Y</TD>
  793. <TD ALIGN="center">Y</TD>
  794. <TD ALIGN="center">Y</TD>
  795. <TD ALIGN="center">Y</TD>
  796. <TD ALIGN="center">Y</TD>
  797. <TD ALIGN="center">Y</TD>
  798. <TD ALIGN="center">Y</TD>
  799. <TD ALIGN="center">Y</TD>
  800. <TD ALIGN="center">Y</TD>
  801. <TD ALIGN="center">Y</TD>
  802. <TD ALIGN="center">Y</TD>
  803. <TD ALIGN="center">Y</TD>
  804. <TD ALIGN="center">Y</TD>
  805. <TD ALIGN="center">Y</TD>
  806. <TD ALIGN="center">Y</TD>
  807. <TD ALIGN="center">Y</TD>
  808. <TD ALIGN="center">Y</TD>
  809. </TR>
  810. <TR>
  811. <TD>definition list</TD>
  812. <TD ALIGN="center">Y</TD>
  813. <TD ALIGN="center">Y</TD>
  814. <TD ALIGN="center">Y</TD>
  815. <TD ALIGN="center">Y</TD>
  816. <TD ALIGN="center">Y</TD>
  817. <TD ALIGN="center">Y</TD>
  818. <TD ALIGN="center">Y</TD>
  819. <TD ALIGN="center">N</TD>
  820. <TD ALIGN="center">Y</TD>
  821. <TD ALIGN="center">Y</TD>
  822. <TD ALIGN="center">-</TD>
  823. <TD ALIGN="center">Y</TD>
  824. <TD ALIGN="center">-</TD>
  825. <TD ALIGN="center">Y</TD>
  826. <TD ALIGN="center">N</TD>
  827. <TD ALIGN="center">N</TD>
  828. <TD ALIGN="center">Y</TD>
  829. <TD ALIGN="center">Y</TD>
  830. <TD ALIGN="center">Y</TD>
  831. </TR>
  832. <TR>
  833. <TD>horizontal line</TD>
  834. <TD ALIGN="center">Y</TD>
  835. <TD ALIGN="center">Y</TD>
  836. <TD ALIGN="center">-</TD>
  837. <TD ALIGN="center">N</TD>
  838. <TD ALIGN="center">Y</TD>
  839. <TD ALIGN="center">Y</TD>
  840. <TD ALIGN="center">-</TD>
  841. <TD ALIGN="center">Y</TD>
  842. <TD ALIGN="center">Y</TD>
  843. <TD ALIGN="center">Y</TD>
  844. <TD ALIGN="center">-</TD>
  845. <TD ALIGN="center">Y</TD>
  846. <TD ALIGN="center">Y</TD>
  847. <TD ALIGN="center">Y</TD>
  848. <TD ALIGN="center">N</TD>
  849. <TD ALIGN="center">N</TD>
  850. <TD ALIGN="center">Y</TD>
  851. <TD ALIGN="center">Y</TD>
  852. <TD ALIGN="center">Y</TD>
  853. </TR>
  854. <TR>
  855. <TD>image</TD>
  856. <TD ALIGN="center">Y</TD>
  857. <TD ALIGN="center">Y</TD>
  858. <TD ALIGN="center">Y</TD>
  859. <TD ALIGN="center">Y</TD>
  860. <TD ALIGN="center">Y</TD>
  861. <TD ALIGN="center">Y</TD>
  862. <TD ALIGN="center">-</TD>
  863. <TD ALIGN="center">Y</TD>
  864. <TD ALIGN="center">Y</TD>
  865. <TD ALIGN="center">Y</TD>
  866. <TD ALIGN="center">Y</TD>
  867. <TD ALIGN="center">Y</TD>
  868. <TD ALIGN="center">Y</TD>
  869. <TD ALIGN="center">Y</TD>
  870. <TD ALIGN="center">N</TD>
  871. <TD ALIGN="center">Y</TD>
  872. <TD ALIGN="center">-</TD>
  873. <TD ALIGN="center">-</TD>
  874. <TD ALIGN="center">Y</TD>
  875. </TR>
  876. <TR>
  877. <TD>table</TD>
  878. <TD ALIGN="center">Y</TD>
  879. <TD ALIGN="center">Y</TD>
  880. <TD ALIGN="center">Y</TD>
  881. <TD ALIGN="center">N</TD>
  882. <TD ALIGN="center">Y</TD>
  883. <TD ALIGN="center">N</TD>
  884. <TD ALIGN="center">Y</TD>
  885. <TD ALIGN="center">N</TD>
  886. <TD ALIGN="center">Y</TD>
  887. <TD ALIGN="center">Y</TD>
  888. <TD ALIGN="center">Y</TD>
  889. <TD ALIGN="center">Y</TD>
  890. <TD ALIGN="center">Y</TD>
  891. <TD ALIGN="center">Y</TD>
  892. <TD ALIGN="center">N</TD>
  893. <TD ALIGN="center">N</TD>
  894. <TD ALIGN="center">N</TD>
  895. <TD ALIGN="center">N</TD>
  896. <TD ALIGN="center">Y</TD>
  897. </TR>
  898. <TR>
  899. <TH>Extras</TH>
  900. <TH>html</TH>
  901. <TH>xhtml</TH>
  902. <TH>sgml</TH>
  903. <TH>dbk</TH>
  904. <TH>tex</TH>
  905. <TH>lout</TH>
  906. <TH>man</TH>
  907. <TH>mgp</TH>
  908. <TH>creole</TH>
  909. <TH>wiki</TH>
  910. <TH>gwiki</TH>
  911. <TH>pmw</TH>
  912. <TH>doku</TH>
  913. <TH>moin</TH>
  914. <TH>pm6</TH>
  915. <TH>adoc</TH>
  916. <TH>art</TH>
  917. <TH>txt</TH>
  918. <TH>Y</TH>
  919. </TR>
  920. <TR>
  921. <TD>image align</TD>
  922. <TD ALIGN="center">Y</TD>
  923. <TD ALIGN="center">Y</TD>
  924. <TD ALIGN="center">N</TD>
  925. <TD ALIGN="center">N</TD>
  926. <TD ALIGN="center">N</TD>
  927. <TD ALIGN="center">Y</TD>
  928. <TD ALIGN="center">-</TD>
  929. <TD ALIGN="center">Y</TD>
  930. <TD ALIGN="center">N</TD>
  931. <TD ALIGN="center">Y</TD>
  932. <TD ALIGN="center">-</TD>
  933. <TD ALIGN="center">N</TD>
  934. <TD ALIGN="center">Y</TD>
  935. <TD ALIGN="center">N</TD>
  936. <TD ALIGN="center">N</TD>
  937. <TD ALIGN="center">N</TD>
  938. <TD ALIGN="center">-</TD>
  939. <TD ALIGN="center">-</TD>
  940. <TD ALIGN="center">Y</TD>
  941. </TR>
  942. <TR>
  943. <TD>table cell align</TD>
  944. <TD ALIGN="center">Y</TD>
  945. <TD ALIGN="center">Y</TD>
  946. <TD ALIGN="center">Y</TD>
  947. <TD ALIGN="center">N</TD>
  948. <TD ALIGN="center">Y</TD>
  949. <TD ALIGN="center">N</TD>
  950. <TD ALIGN="center">Y</TD>
  951. <TD ALIGN="center">N</TD>
  952. <TD ALIGN="center">N</TD>
  953. <TD ALIGN="center">N</TD>
  954. <TD ALIGN="center">-</TD>
  955. <TD ALIGN="center">N</TD>
  956. <TD ALIGN="center">-</TD>
  957. <TD ALIGN="center">Y</TD>
  958. <TD ALIGN="center">N</TD>
  959. <TD ALIGN="center">N</TD>
  960. <TD ALIGN="center">N</TD>
  961. <TD ALIGN="center">N</TD>
  962. <TD ALIGN="center">Y</TD>
  963. </TR>
  964. <TR>
  965. <TD>table column span</TD>
  966. <TD ALIGN="center">Y</TD>
  967. <TD ALIGN="center">Y</TD>
  968. <TD ALIGN="center">N</TD>
  969. <TD ALIGN="center">N</TD>
  970. <TD ALIGN="center">Y</TD>
  971. <TD ALIGN="center">N</TD>
  972. <TD ALIGN="center">N</TD>
  973. <TD ALIGN="center">N</TD>
  974. <TD ALIGN="center">N</TD>
  975. <TD ALIGN="center">N</TD>
  976. <TD ALIGN="center">-</TD>
  977. <TD ALIGN="center">N</TD>
  978. <TD ALIGN="center">-</TD>
  979. <TD ALIGN="center">N</TD>
  980. <TD ALIGN="center">N</TD>
  981. <TD ALIGN="center">N</TD>
  982. <TD ALIGN="center">N</TD>
  983. <TD ALIGN="center">N</TD>
  984. <TD ALIGN="center">Y</TD>
  985. </TR>
  986. </TABLE>
  987. <TABLE ALIGN="center">
  988. <TR>
  989. <TH></TH>
  990. <TH>Legend</TH>
  991. </TR>
  992. <TR>
  993. <TD><B>Y</B></TD>
  994. <TD><I>Supported</I></TD>
  995. </TR>
  996. <TR>
  997. <TD><B>N</B></TD>
  998. <TD><I>Not supported (may be in future releases)</I></TD>
  999. </TR>
  1000. <TR>
  1001. <TD><B>-</B></TD>
  1002. <TD><I>Not supported (can't be done on this target)</I></TD>
  1003. </TR>
  1004. </TABLE>
  1005. <A NAME="interfaces"></A>
  1006. <H2>The Three User Interfaces: Gui, Web and Command Line</H2>
  1007. <P>
  1008. As different users have different needs and environments, txt2tags is
  1009. very flexible on how it runs.
  1010. </P>
  1011. <P>
  1012. There are three User Interfaces for the program, each one with its own
  1013. purpose and features.
  1014. </P>
  1015. <UL>
  1016. <LI><B>Gui</B>: Written in Tk, brings the windowing and clicking to txt2tags.
  1017. <LI><B>Web</B>: Written in PHP, allows users to run txt2tags on the browser,
  1018. requiring no installation on the client side.
  1019. <LI><B>Command Line</B>: Written in Python, it's the program core. All
  1020. features are available as command line options.
  1021. </UL>
  1022. <A NAME="gui"></A>
  1023. <H3>Graphical Interface</H3>
  1024. <P>
  1025. Since version 1.0, there is a nice Graphical Interface, that works on
  1026. Linux, Windows, Mac and others. Just call txt2tags with the <CODE>--gui</CODE>
  1027. option to open it.
  1028. </P>
  1029. <P>
  1030. The interface is pretty simple and intuitive:
  1031. </P>
  1032. <center><IMG ALIGN="middle" SRC="./gui.png" BORDER="0" ALT=""></center>
  1033. <OL>
  1034. <LI>You locate the source .t2t file on the disk and its options are
  1035. loaded.
  1036. <P></P>
  1037. <LI>If the target is still empty, you must choose one.
  1038. <P></P>
  1039. <LI>Then there are some options you may choose, but none of them are
  1040. required.
  1041. <P></P>
  1042. <LI>Finally, press the "Convert!" button.
  1043. </OL>
  1044. <P>
  1045. A nice option is the "<I>Dump to screen</I>", so you can check
  1046. the resulting code on a separate window, no file is saved at all. When
  1047. the code is OK, you uncheck it and the file will be saved.
  1048. </P>
  1049. <P>
  1050. The default interface colors can be changed on the <A HREF="#rc">configuration file</A>,
  1051. using the <CODE>%!guicolors</CODE> settings. For example:
  1052. </P>
  1053. <PRE>
  1054. % set my own colors for the graphical interface (bg1, fg1, bg2, fg2)
  1055. %!guicolors: blue white brown yellow
  1056. </PRE>
  1057. <H3>Web Interface</H3>
  1058. <P>
  1059. The Web Interface is up and running on the Internet at
  1060. <A HREF="http://txt2tags.org/online.php">http://txt2tags.org/online.php</A>, so you can use and test the program
  1061. instantly, before download.
  1062. </P>
  1063. <center><IMG ALIGN="middle" SRC="./web.png" BORDER="0" ALT=""></center>
  1064. <P>
  1065. One can also put this interface on the local intranet avoiding to
  1066. install txt2tags in all machines.
  1067. </P>
  1068. <A NAME="cmdline"></A>
  1069. <H3>Command Line Interface</H3>
  1070. <P>
  1071. For command line power users, the --help should be enough:
  1072. </P>
  1073. <PRE>
  1074. Usage: txt2tags [OPTIONS] [infile.t2t ...]
  1075. --targets print a list of all the available targets and exit
  1076. -t, --target=TYPE set target document type. currently supported:
  1077. adoc, art, creole, dbk, doku, gwiki, html, lout, man,
  1078. mgp, moin, pm6, pmw, sgml, tex, txt, wiki, xhtml
  1079. -i, --infile=FILE set FILE as the input file name ('-' for STDIN)
  1080. -o, --outfile=FILE set FILE as the output file name ('-' for STDOUT)
  1081. --encoding=ENC set target file encoding (utf-8, iso-8859-1, etc)
  1082. --toc add an automatic Table of Contents to the output
  1083. --toc-level=N set maximum TOC level (depth) to N
  1084. --toc-only print the Table of Contents and exit
  1085. -n, --enum-title enumerate all titles as 1, 1.1, 1.1.1, etc
  1086. --style=FILE use FILE as the document style (like HTML CSS)
  1087. --css-sugar insert CSS-friendly tags for HTML/XHTML
  1088. --css-inside insert CSS file contents inside HTML/XHTML headers
  1089. -H, --no-headers suppress header and footer from the output
  1090. --mask-email hide email from spam robots. x@y.z turns &lt;x (a) y z&gt;
  1091. --slides format output as presentation slides (used by -t art)
  1092. --width=N set the output's width to N columns (used by -t art)
  1093. --height=N set the output's height to N rows (used by -t art)
  1094. -C, --config-file=F read configuration from file F
  1095. --gui invoke Graphical Tk Interface
  1096. -q, --quiet quiet mode, suppress all output (except errors)
  1097. -v, --verbose print informative messages during conversion
  1098. -h, --help print this help information and exit
  1099. -V, --version print program version and exit
  1100. --dump-config print all the configuration found and exit
  1101. --dump-source print the document source, with includes expanded
  1102. Turn OFF options:
  1103. --no-css-inside, --no-css-sugar, --no-dump-config, --no-dump-source,
  1104. --no-encoding, --no-enum-title, --no-headers, --no-infile,
  1105. --no-mask-email, --no-outfile, --no-quiet, --no-rc, --no-slides,
  1106. --no-style, --no-targets, --no-toc, --no-toc-only
  1107. Example:
  1108. txt2tags -t html --toc file.t2t
  1109. By default, converted output is saved to 'infile.&lt;target&gt;'.
  1110. Use --outfile to force an output file name.
  1111. If input file is '-', reads from STDIN.
  1112. If output file is '-', dumps output to STDOUT.
  1113. </PRE>
  1114. <P>
  1115. Please read the txt2tags man page for detailed information about options and command line use.
  1116. </P>
  1117. <P>
  1118. Examples:
  1119. </P>
  1120. <TABLE>
  1121. <TR>
  1122. <TD><B>Convert to HTML</B></TD>
  1123. <TD><CODE>$ txt2tags -t html file.t2t</CODE></TD>
  1124. </TR>
  1125. <TR>
  1126. <TD><B>The same, using redirection</B></TD>
  1127. <TD><CODE>$ txt2tags -t html -o - file.t2t &gt; file.html</CODE></TD>
  1128. </TR>
  1129. <TR>
  1130. <TD></TD>
  1131. <TD>.</TD>
  1132. </TR>
  1133. <TR>
  1134. <TD><B>Including Table Of Contents</B></TD>
  1135. <TD><CODE>$ txt2tags -t html --toc file.t2t</CODE></TD>
  1136. </TR>
  1137. <TR>
  1138. <TD><B>And also, numbering titles</B></TD>
  1139. <TD><CODE>$ txt2tags -t html --toc --enum-title file.t2t</CODE></TD>
  1140. </TR>
  1141. <TR>
  1142. <TD></TD>
  1143. <TD>.</TD>
  1144. </TR>
  1145. <TR>
  1146. <TD><B>Contents quick view</B></TD>
  1147. <TD><CODE>$ txt2tags --toc-only file.t2t</CODE></TD>
  1148. </TR>
  1149. <TR>
  1150. <TD><B>Maybe enumerate them?</B></TD>
  1151. <TD><CODE>$ txt2tags --toc-only --enum-title file.t2t</CODE></TD>
  1152. </TR>
  1153. <TR>
  1154. <TD></TD>
  1155. <TD>.</TD>
  1156. </TR>
  1157. <TR>
  1158. <TD><B>One liners from STDIN</B></TD>
  1159. <TD><CODE>$ echo -e "\n**bold**" | txt2tags -t html --no-headers -</CODE></TD>
  1160. </TR>
  1161. <TR>
  1162. <TD><B>Testing Mask Email feature</B></TD>
  1163. <TD><CODE>$ echo -e "\njohn.wayne@farwest.com" | txt2tags -t txt --mask-email --no-headers -</CODE></TD>
  1164. </TR>
  1165. </TABLE>
  1166. <A NAME="install"></A>
  1167. <H1>Part II - Install</H1>
  1168. <P>
  1169. Just download the program and run it on your machine.
  1170. </P>
  1171. <A NAME="download-python"></A>
  1172. <H2>Download &amp; Install Python</H2>
  1173. <P>
  1174. First of all, you must download and install <A HREF="http://www.python.org">Python</A> on
  1175. your system. Txt2tags requires Python version 2.2 or newer.
  1176. </P>
  1177. <P>
  1178. Note that Python is already installed by default in Linux and Mac systems. If you're using those, you're done, just skip this step.
  1179. </P>
  1180. <P>
  1181. If you are not sure if you have Python or not, open a console (tty,
  1182. xterm, MSDOS, Terminal.app) and type <CODE>python</CODE>. If it is not installed, the system
  1183. will tell you.
  1184. </P>
  1185. <A NAME="download-txt2tags"></A>
  1186. <H2>Download txt2tags</H2>
  1187. <P>
  1188. The official location for txt2tags distribution is on the program
  1189. site, at <A HREF="http://txt2tags.org">http://txt2tags.org</A>. Just download and uncompress the package (.tgz file).
  1190. </P>
  1191. <P>
  1192. If you're in Linux, you can also use the automatic installer of your system. Some examples:
  1193. </P>
  1194. <UL>
  1195. <LI>yum install txt2tags
  1196. <LI>sudo apt-get install txt2tags
  1197. </UL>
  1198. <A NAME="install-txt2tags"></A>
  1199. <H2>Install txt2tags</H2>
  1200. <P>
  1201. As a single Python script, txt2tags needs no installation at all.
  1202. </P>
  1203. <P>
  1204. The only file needed to use the program is the txt2tags script. The
  1205. other files of the package are documentation, tools and sample files.
  1206. </P>
  1207. <P>
  1208. The fail-proof way to run txt2tags, is calling Python with it:
  1209. </P>
  1210. <PRE>
  1211. prompt$ python txt2tags
  1212. </PRE>
  1213. <P>
  1214. If you want to install txt2tags on the system as a stand alone
  1215. program, just copy the txt2tags script to a system PATH
  1216. directory and make sure the system knows how to run it.
  1217. </P>
  1218. <DL>
  1219. <DT><B>UNIX/Linux/Mac</B></DT><DD>
  1220. Make the script executable (<CODE>chmod +x txt2tags</CODE>) and copy it to a
  1221. $PATH directory (<CODE>cp txt2tags /usr/local/bin</CODE>)
  1222. <P></P>
  1223. <DT><B>Windows</B></DT><DD>
  1224. Rename the script adding the .py extension
  1225. and copy it to a system PATH directory, such as <CODE>C:\Windows\System32</CODE>.
  1226. </DL>
  1227. <P>
  1228. After that, you can create an icon on your desktop for it, if you want to
  1229. use the program's Graphical Interface.
  1230. </P>
  1231. <A NAME="editor-syntax"></A>
  1232. <H2>Install Text Editor Syntax Highlighting File (optional)</H2>
  1233. <P>
  1234. Txt2tags comes with handy syntax highlighting files to be used by the
  1235. following text editors:
  1236. </P>
  1237. <UL>
  1238. <LI>Vim
  1239. <LI>Emacs
  1240. <LI>Nano
  1241. <LI>Kate
  1242. <LI>Gedit
  1243. <LI>JOE
  1244. <LI>le
  1245. <LI>ne
  1246. <LI>TextMate
  1247. </UL>
  1248. <P>
  1249. This syntax highlighting files have all the txt2tags rules and marks
  1250. registered, helping the user to write error-free documents. Showing the
  1251. marks in colors, you see on-the-fly if you wrote it right.
  1252. </P>
  1253. <TABLE ALIGN="center">
  1254. <TR>
  1255. <TD ALIGN="center"><center><IMG ALIGN="middle" SRC="./vim.png" BORDER="0" ALT=""></center></TD>
  1256. </TR>
  1257. <TR>
  1258. <TD ALIGN="center">Sample file opened in Vim Editor</TD>
  1259. </TR>
  1260. </TABLE>
  1261. <P>
  1262. Each editor has a different install procedure for a syntax highlighting
  1263. file, please read the syntax file headers and the editor documentation.
  1264. </P>
  1265. <A NAME="your-1st-doc"></A>
  1266. <H1>Part III - Writing and Converting Your First Document</H1>
  1267. <H2>Check the Tools</H2>
  1268. <P>
  1269. To make the first conversion you will need three things: txt2tags, a
  1270. text editor and a web browser.
  1271. </P>
  1272. <OL>
  1273. <LI>Make sure txt2tags is installed and running on your system.
  1274. <P></P>
  1275. <UL>
  1276. <LI><B>Command Line Interface:</B> Call "txt2tags" on the command line and
  1277. the program should give you a "Missing input file" message. If it is
  1278. not working, try <CODE>python /path/to/txt2tags</CODE> or even
  1279. <CODE>/path/to/python /path/to/txt2tags</CODE> if Python is not on your PATH.
  1280. <P></P>
  1281. <LI><B>Gui Interface:</B> Click on the program icon to launch the Gui
  1282. Interface or call <CODE>txt2tags --gui</CODE>.
  1283. <P></P>
  1284. </UL>
  1285. <LI>Open the text editor your are comfortable with. It can be <B>any</B> text
  1286. editor, from the good old VI to MS Word or OpenOffice.org. Create a
  1287. brand new empty document to be your first txt2tags one and remember to
  1288. save it as plain text.
  1289. <P></P>
  1290. <LI>Launch your favorite web browser to see the results of the conversion.
  1291. </OL>
  1292. <H2>Write the Document Header</H2>
  1293. <OL>
  1294. <LI>Go to the text editor and on the very first line type the document
  1295. main title: <I>My First Document</I>
  1296. <LI>On the second line make a subtitle, inserting this text:
  1297. <I>A txt2tags test</I>
  1298. <LI>Then, on the third line, put some time information:
  1299. <I>Sunday, 2004</I>
  1300. </OL>
  1301. <P>
  1302. If everything went right, you should be seeing a three line document
  1303. with this contents:
  1304. </P>
  1305. <PRE>
  1306. My First Document
  1307. A txt2tags test
  1308. Sunday, 2004
  1309. </PRE>
  1310. <P>
  1311. This is just a part of the document, but we can already convert it and
  1312. check the results.
  1313. </P>
  1314. <P>
  1315. Now save this document with the name <CODE>test.txt</CODE>. Remember to save it
  1316. as plain text. Pay attention to which folder you are saving the file,
  1317. you will need to remember it soon.
  1318. </P>
  1319. <H2>The First Conversion - Gui Interface</H2>
  1320. <P>
  1321. If you are in the Command Line Interface, please skip this step and read
  1322. the next one.
  1323. </P>
  1324. <P>
  1325. If you are in the Gui Interface, follow this steps:
  1326. </P>
  1327. <center><IMG ALIGN="middle" SRC="./firstdoc.png" BORDER="0" ALT=""></center>
  1328. <OL>
  1329. <LI>Press the "Browse" button and choose the <CODE>test.txt</CODE> you just saved
  1330. (remember the folder!).
  1331. <LI>Back to the first screen, select "HTML page" on the "Target document
  1332. type" combo.
  1333. <LI>Press the "Convert!" button.
  1334. </OL>
  1335. <center><IMG ALIGN="middle" SRC="./firstdoc-done.png" BORDER="0" ALT=""></center>
  1336. <P>
  1337. A dialog box will appear, telling you that the file was converted
  1338. successfully. Note that the generated HTML page was saved on the same
  1339. folder as the text file, with the "html" extension.
  1340. </P>
  1341. <H2>The First Conversion - Command Line Interface</H2>
  1342. <P>
  1343. If you are in the Command Line Interface, move to the folder where the
  1344. file was saved and type this command:
  1345. </P>
  1346. <PRE>
  1347. txt2tags --target html test.txt
  1348. </PRE>
  1349. <P>
  1350. The option <CODE>--target</CODE> is followed
  1351. by the "html" string, which tells the program to what format your text
  1352. file will be converted. The last item is the text filename.
  1353. </P>
  1354. <P>
  1355. The results were saved to the <CODE>test.html</CODE>
  1356. file and then the program will show you the
  1357. "<I>txt2tags wrote test.html</I>" message.
  1358. If some error occurred, read the message carefully.
  1359. </P>
  1360. <P>
  1361. Here is a sample of how it will be shown on your screen:
  1362. </P>
  1363. <PRE>
  1364. prompt$ txt2tags --target html test.txt
  1365. txt2tags wrote test.html
  1366. prompt$
  1367. </PRE>
  1368. <H2>Check the Results</H2>
  1369. <P>
  1370. Open the <CODE>test.html</CODE> file on the web browser to check if everything
  1371. is ok.
  1372. </P>
  1373. <center><IMG ALIGN="middle" SRC="./firstdoc-html.png" BORDER="0" ALT=""></center>
  1374. <P>
  1375. Here it is! You just typed three simple lines of text and txt2tags made
  1376. all the work to set the HTML page heading information, text alignment,
  1377. sizes, spacing and appearance. See that the main title is also placed at the
  1378. browser title bar.
  1379. </P>
  1380. <BLOCKQUOTE>
  1381. You write text, txt2tags does the rest ;)
  1382. </BLOCKQUOTE>
  1383. <P>
  1384. Tip: You can also use CSS files on HTML pages generated by txt2tags, so the
  1385. page appearance is 100% configurable.
  1386. </P>
  1387. <H2>Writing the Document Body</H2>
  1388. <P>
  1389. Now back to the text editor, the next step is to type the document
  1390. contents. You can write plain text as you normally do on email messages.
  1391. You will see that txt2tags recognizes paragraphs and list of items
  1392. automatically, you don't have to "mark" them.
  1393. </P>
  1394. <P>
  1395. Then again: save it, convert and check the results. This is the
  1396. development cycle of a document in txt2tags. You just focus on the
  1397. document contents, finishing documents faster than other editors. No
  1398. mouse clicking, no menus, no windows, no distraction.
  1399. </P>
  1400. <P>
  1401. Considering the following contents for the <CODE>test.txt</CODE> file, which is
  1402. only plain text, compare the generated HTML page:
  1403. </P>
  1404. <PRE>
  1405. My First Document
  1406. A txt2tags test
  1407. Sunday, 2004
  1408. Well, let's try this txt2tags thing.
  1409. I don't know what to write.
  1410. Mmmmmm, I know what I need to do now:
  1411. - Take a shower
  1412. - Eat a pizza
  1413. - Sleep
  1414. </PRE>
  1415. <center><IMG ALIGN="middle" SRC="./firstdoc-fullhtml.png" BORDER="0" ALT=""></center>
  1416. <P>
  1417. You can write a full homepage with 0% of HTML knowledge. You don't need
  1418. to insert any tags. And more, the same text file can be converted to any
  1419. of the other txt2tags supported formats.
  1420. </P>
  1421. <P>
  1422. Besides plain text, txt2tags has some very simple marks, that you'll
  1423. use when you need some other formatting or structures like bold, italic,
  1424. title, images, table and other. As a quick sample,
  1425. <CODE>**stars for bold**</CODE> and <CODE>== equals for title ==</CODE>. You can learn the
  1426. marks on the <A HREF="http://txt2tags.org/markup.html">Txt2tags Markup Demo</A>.
  1427. </P>
  1428. <A NAME="concepts"></A>
  1429. <H1>Part IV - Mastering Txt2tags Concepts</H1>
  1430. <A NAME="areas"></A>
  1431. <H2>The .t2t document Areas</H2>
  1432. <P>
  1433. Txt2tags marked files are divided in 3 areas. Each area has its own
  1434. rules and purpose. They are:
  1435. </P>
  1436. <DL>
  1437. <DT><I>Header Area</I></DT><DD>
  1438. Place for Document Title, Author, Version and Date information.
  1439. <DT><I>Config Area</I></DT><DD>
  1440. Place for general Document Settings and Parser behavior modifiers.
  1441. <DT><I>Body Area</I></DT><DD>
  1442. Place for the Document Content.
  1443. </DL>
  1444. <P>
  1445. All areas are optional. You can write a txt2tags document with just
  1446. headers (such as our first example), or a document with no headers or settings.
  1447. </P>
  1448. <P>
  1449. The areas are delimited by special rules, which will be seen in detail
  1450. on the next chapter. For now, this is a representation of the
  1451. areas on a document:
  1452. </P>
  1453. <PRE>
  1454. ____________
  1455. | |
  1456. | HEADERS | 1. First, the Headers
  1457. | |
  1458. | CONFIG | 2. Then the Settings
  1459. | |
  1460. | BODY | 3. And finally the Document Body,
  1461. | |
  1462. | ... | which goes until the end
  1463. | ... |
  1464. |____________|
  1465. </PRE>
  1466. <P>
  1467. In short, this is how the areas are defined:
  1468. </P>
  1469. <TABLE ALIGN="center">
  1470. <TR>
  1471. <TD ALIGN="center"><B>Headers</B></TD>
  1472. <TD>First 3 lines of the file, or the first line blank for No Headers.</TD>
  1473. </TR>
  1474. <TR>
  1475. <TD ALIGN="center"><B>Config</B></TD>
  1476. <TD>Begins right after the Header (4th or 2nd line) and ends when the <I>Body Area</I> starts.</TD>
  1477. </TR>
  1478. <TR>
  1479. <TD ALIGN="center"><B>Body</B></TD>
  1480. <TD>The first valid text line (not comment or setting) after the <I>Header Area</I>.</TD>
  1481. </TR>
  1482. </TABLE>
  1483. <H3>Full Example</H3>
  1484. <PRE>
  1485. My nice doc Title
  1486. Mr. John Doe
  1487. Last Updated: %%mtime(%c)
  1488. %!target : html
  1489. %!style : fancy.css
  1490. %!encoding: UTF-8
  1491. %!options : --toc --enum-title
  1492. Hi! This is my test document.
  1493. Its content will end here.
  1494. </PRE>
  1495. <A NAME="headers-area"></A>
  1496. <H2>Header Area</H2>
  1497. <P>
  1498. Location:
  1499. </P>
  1500. <UL>
  1501. <LI>Fixed position: <B>First 3 lines</B> of the file. Period.
  1502. <LI>Fixed position: <B>First line</B> of the file if it is blank. This
  1503. means Empty Headers.
  1504. </UL>
  1505. <P>
  1506. The Header Area is the only one that has a fixed position, line
  1507. oriented. They are located at the first three lines of the source file.
  1508. </P>
  1509. <P>
  1510. These lines are content-free, with no static information type needed.
  1511. But the following is recommended:
  1512. </P>
  1513. <UL>
  1514. <LI><I>line 1</I>: document title
  1515. <LI><I>line 2</I>: author name and/or email
  1516. <LI><I>line 3</I>: document date and/or version
  1517. (nice place for <CODE>%%date</CODE>)
  1518. </UL>
  1519. <P>
  1520. Keep in mind that the first 3 lines of the source document will be the
  1521. first 3 lines on the target document, separated and with high contrast
  1522. to the text body (i.e. big letters, bold). If paging is allowed, the
  1523. headers will be alone and centralized on the first page.
  1524. </P>
  1525. <H4>Less (or None) Header lines</H4>
  1526. <P>
  1527. Sometimes the user wants to specify less than three lines for headers,
  1528. giving just the document title and/or date information.
  1529. </P>
  1530. <P>
  1531. Just let the 2nd and/or the 3rd lines empty (blank) and this position
  1532. will not be placed at the target document. But keep in mind that even
  1533. blanks, these lines are still part of the headers, so the document body
  1534. must start <B>after</B> the 3rd line anyway.
  1535. </P>
  1536. <P>
  1537. The title is the only required header (the first line), but if you
  1538. leave it blank, you are saying that your document has <B>no headers</B>.
  1539. So the <I>Body Area</I> will begin right after, on the 2nd line.
  1540. </P>
  1541. <P>
  1542. No headers on the document is often useful if you want to specify your
  1543. own customized headers after converting. The command line option
  1544. <CODE>--no-headers</CODE> is usually required for this kind of operation.
  1545. </P>
  1546. <H4>Straight to the point</H4>
  1547. <P>
  1548. In short: <B>"Headers are just <U>positions</U>, not contents"</B>
  1549. </P>
  1550. <P>
  1551. Place one text on the first line, and it will appear on the target's
  1552. first line. The same for 2nd and 3rd header lines.
  1553. </P>
  1554. <A NAME="config-area"></A>
  1555. <H2>Config Area</H2>
  1556. <P>
  1557. Location:
  1558. </P>
  1559. <UL>
  1560. <LI>Begins right after the Header Area
  1561. <UL>
  1562. <LI>Begins on the <B>4th line</B> of the file if <B>Headers</B> were specified
  1563. <LI>Begins on the <B>2nd line</B> of the file if <B>No Headers</B> were specified
  1564. </UL>
  1565. <LI>Ends when the Body Area starts
  1566. <UL>
  1567. <LI>Ends by a non Setting, Blank or Comment line
  1568. </UL>
  1569. </UL>
  1570. <P>
  1571. The Config Area is optional. An average user can write lots of txt2tags
  1572. files without even know it exists, but the experienced users will
  1573. enjoy the power and control it provides.
  1574. </P>
  1575. <P>
  1576. The Config Area is used to store document-specific settings, so you don't
  1577. have to type them on the command line when converting the document. For
  1578. example, you can set the default document target type and encoding.
  1579. </P>
  1580. <P>
  1581. Please read the <A HREF="#settings-overview">Settings section</A> for more
  1582. information about them.
  1583. </P>
  1584. <A NAME="body-area"></A>
  1585. <H2>Body Area</H2>
  1586. <P>
  1587. Location:
  1588. </P>
  1589. <UL>
  1590. <LI>Begins on the first valid text line of the file
  1591. <UL>
  1592. <LI>Headers, Settings and Comments are <B>not</B> valid text lines
  1593. </UL>
  1594. <LI>Ends at the end of the file (EOF)
  1595. </UL>
  1596. <P>
  1597. The body is anything outside Headers and Config Areas.
  1598. </P>
  1599. <P>
  1600. The body holds the document contents and all formatting and structures
  1601. txt2tags can recognize. Inside the body you can also put comments for
  1602. <I>TODOs</I> and self notes.
  1603. </P>
  1604. <P>
  1605. You can use the <CODE>--no-headers</CODE> command line option to convert only the
  1606. document body, suppressing the headers. This is useful to set your own
  1607. headers on a separate file, then join the converted body.
  1608. </P>
  1609. <A NAME="settings-overview"></A>
  1610. <H2>Settings</H2>
  1611. <P>
  1612. Settings are special configurations placed at the source document's
  1613. Config Area that can affect the conversion process. Their syntax is:
  1614. </P>
  1615. <PRE>
  1616. %! keyword : value
  1617. </PRE>
  1618. <P>
  1619. List of valid keywords:
  1620. </P>
  1621. <TABLE ALIGN="center" BORDER="1">
  1622. <TR>
  1623. <TH>Keyword</TH>
  1624. <TH>Description</TH>
  1625. </TR>
  1626. <TR>
  1627. <TD ALIGN="center">Target</TD>
  1628. <TD>Set the default target to the document be converted to.</TD>
  1629. </TR>
  1630. <TR>
  1631. <TD ALIGN="center">Options</TD>
  1632. <TD>Set the default options to be used on the conversion. The format is the same as the command line options.</TD>
  1633. </TR>
  1634. <TR>
  1635. <TD ALIGN="center">Style</TD>
  1636. <TD>Set the document style. Used to define a CSS file for HTML/XHTML and to load a package in LaTeX.</TD>
  1637. </TR>
  1638. <TR>
  1639. <TD ALIGN="center">Encoding</TD>
  1640. <TD>Set the document Character Set. Used if the document contains accented letters or other not-ASCII characters.</TD>
  1641. </TR>
  1642. <TR>
  1643. <TD ALIGN="center">PreProc</TD>
  1644. <TD>Input filter. Sets "find and replace" rules to be applied on the Body Area of the source document.</TD>
  1645. </TR>
  1646. <TR>
  1647. <TD ALIGN="center">PostProc</TD>
  1648. <TD>Output filter. Sets "find and replace" rules to be applied on the converted document.</TD>
  1649. </TR>
  1650. </TABLE>
  1651. <P>
  1652. Example:
  1653. </P>
  1654. <PRE>
  1655. %!target : html
  1656. %!options : --toc --toc-level 3
  1657. %!style : fancy.css
  1658. %!encoding: UTF-8
  1659. %!preproc : "AMJ" "Aurelio Marinho Jargas"
  1660. %!postproc: '&lt;BODY.*?&gt;' '&lt;BODY bgcolor="yellow"&gt;'
  1661. </PRE>
  1662. <P>
  1663. Note that the spacing and capitalization of the keyword are ignored. So you can also do <CODE>%!Target:htm