ABUSE ME! txt2tags stress file
Aurelio Marinho Jargas
%%mtime(%c)

%!target: html
%!options: --toc --toc-level 2
%!encoding: iso-8859-1

% PreProcessing filter sample
%!preproc: IMG		img/t2tpowered
%!preproc: VALIDATOR	http://validator.w3.org/check?uri=referer

This file contains lots of formatting combinations that txt2tags
handles nicely. It also serve as example of really complex
structures your document can have. Don't miss the image and table
details because they really rocks!

The source TXT file for this HTML [is here abuseme.t2t].

Luke, you'll never be a Jedi until master all these structures.

========================================================================


=   BEAUTIFIERS   =

==   More than one per line   ==

- ``BOLD___:`` **YES** | NO | **YES** | NO | **YES**
- ``ITALIC_:`` //YES// | NO | //YES// | NO | //YES//
- ``BDITAL_:`` **//YES//** | NO | **//YES//** | NO | **//YES//**
- ``UNDER__:`` __YES__ | NO | __YES__ | NO | __YES__
- ``PRE____:``  ``YES``  | NO |  ``YES``  | NO |  ``YES``
- ``MTIME__:`` %%mtime(%Y) | %%mtime | %%mtime(%m-%d) | %%mtime


========================================================================



=   TITLE   =

   ==  Level 2  ==
  ===  Level 3  ===
 ====  Level 4  ====
=====  Level 5  =====

=== Special Chars [=(!$%<-/=\->&@*)=] on Title and TOC===
=== `Marks` **are** not@parsed.on //Title// %%date and TOC ===

========================================================================



=   URL    =

== Plain E-MAIL links inside text ==
- user@domain.com.
- user@domain.com.
- user@domain.com. any text.
- any text: user@domain.com. any text.


== Extended E-MAIL links, with FORM data ==
- user@domain.com?subject=bla
- user@domain.com?subject=bla.
- user@domain.com?subject=bla,
- user@domain.com?subject=bla&cc=otheruser@domain.com
- user@domain.com?subject=bla&cc=otheruser@domain.com.
- user@domain.com?subject=bla&cc=otheruser@domain.com,
- [link name user@domain.com?subject=bla&cc=otheruser@domain.com].
- [link name user@domain.com?subject=bla&cc=otheruser@domain.com.].


== Plain URL links inside text ==
- http://www.domain.com
- http://www.domain.com/dir/
- http://www.domain.com/dir///
- http://www.domain.com.
- http://www.domain.com,
- http://www.domain.com. any text.
- http://www.domain.com, any text.
- http://www.domain.com/dir/. any text.
- any text: http://www.domain.com. any text.
- any text: http://www.domain.com/dir/. any text.
- any text: http://www.domain.com/dir/index.html. any text.
- any text: http://www.domain.com/dir/index.html, any text.


== Extended URL links, with anchor ==
- http://www.domain.com/dir/#anchor
- http://www.domain.com/dir/index.html#anchor
- http://www.domain.com/dir/index.html#anchor.
- http://www.domain.com/dir/#anchor. any text.
- http://www.domain.com/dir/index.html#anchor. any text.
- any text: http://www.domain.com/dir/#anchor. any text.
- any text: http://www.domain.com/dir/index.html#anchor. any text.


== Extended URL links, with FORM data ==
- http://domain.com?a=a@a.a&b=a+b+c.
- http://domain.com?a=a@a.a&b=a+b+c,
- http://domain.com/bla.cgi?a=a@a.a&b=a+b+c.
- http://domain.com/bla.cgi?a=a@a.a&b=a+b+c@.


== Extended URL links, with FORM data and anchor ==
- http://domain.com?a=a@a.a&b=a+b+c.#anchor
- http://domain.com/bla.cgi?a=a@a.a&b=a+b+c.#anchor
- http://domain.com/bla.cgi?a=a@a.a&b=a+b+c@.#anchor


== Extended URL links, with LOGIN data ==
- http://user:password@domain.com/bla.html.
- http://user:password@domain.com/dir/.
- http://user:password@domain.com.
- http://user:@domain.com.
- http://user@domain.com.


== Extended URL links, with LOGIN, FORM data and anchor ==
- http://user:password@domain.com/bla.cgi?a=a@a.a&b=a+b+c.#anchor
- http://user:password@domain.com/bla.cgi?a=a@a.a&b=a+b+c@#anchor


== Named links for URL links ==

- [anchor        http://www.domain.com/dir/index.html#anchor.]
- [login         http://user:password@domain.com/bla.html]
- [form          http://www.domain.com/bla.cgi?a=a@a.a&b=a+b+c.]
- [form & anchor http://www.domain.com/bla.cgi?a=a@a.a&b=a+b+c.#anchor]
- [login & form  http://user:password@domain.com/bla.cgi?a=a@a.a&b=a+b+c.]


== Named links for LOCAL files ==
- [local link up          ..]
- [local link file        bla.html]
- [local link anchor      #anchor]
- [local link file/anchor bla.html#anchor]
- [local link file/anchor bla.html#anchor.]
- [local link img         abc.gif]


== Funny-chars URL links ==

- http://domain.com:8080/~user/_st-r@a=n$g,e/index%20new.htm
- http://domain.com:8080/~user/_st-r@a=n$g,e/index%20new.htm?a=/%22&b=+.@*_-
- http://domain.com:8080/~user/_st-r@a=n$g,e/index%20new.htm?a=/%22&b=+.@*_-#anchor_-1%.
- http://foo._user-9:pass!#$%&*()+word@domain.com:8080/~user/_st-r@a=n$g,e/index%20new.htm?a=/%22&b=+.@*_-#anchor_-1%.


== Mixed link types at the same line ==

http://L1.com | L2@www.com | [L3 www.com] | [L4 w@ww.com] | www.L5.com

== Adding protocol to guessed link ==

- www.domain.com
- www2.domain.com
- ftp.domain.com
- [named URL www.domain.com]
- [named FTP ftp.domain.com]


========================================================================



=   PRE   =


== Entities are not parsed inside PRE ==

==== oneliner ====
``` BEAUTIFIERS: **bold**, //italic//, __underline__, ``pre``
``` LINKS      : email@domain.com, www.url.com, [named link.html]
``` OTHER      : [image.png], %%date
``` 	------------------------------------------------------

==== area ====
```
BEAUTIFIERS: **bold**, //italic//, __underline__, ``pre``
LINKS      : email@domain.com, www.url.com, [named link.html]
OTHER      : [image.png], %%date
	this is not a quoted line, and the next is not a line
---------------------------------------------------------------------
```

====inside paragraph====

beautifiers as ``**bold**, //italic//, __underline__``,
emails as ``email@domain.com, www.url.com, [named link.html]``
and others as ``[image.png], %%date`` are not special when inside backquotes.

----------------------------------------------------------

== Escape Special chars inside PRE ==

``` oneliner: this is an <HTML> tag  \n\t  &:)

```
area: this is an <HTML> tag  \n\t  &:)
```

inside paragraph: this is an ``<HTML> tag  \n\t  &:)``

========================================================================



=   LISTS   =

==  All kind of lists may be nested into each other  ==

- plain lists
- can have
  + numbered lists inside
  + this numbered
  + can have
    : definition
      lists inside
    : this definition lists
      - can have
      - plain lists
        + which can
        + have numbered
          - which ...
          - well, you got it.

  + blank lines

  + between items

  + must be preserved

    - including when nesting

  + or backing to parent list
  + ah! horizontal lines
  ---------------------
  + are allowed also
  =====================
  + but note:
  - change list type
  + on the same nesting level
  - is ignored. this one is still a numbered list
                - the number of leading
                - spaces is free
                                  - you can abuse
                                         - as you will


and suddenly all lists are closed by two consecutive blanks.

----------------------------------------------------------

==   Beautifiers in definition term   ==

: my **bold** and //italic//
  friends
: www.abc.com
  nice link!
: [my link #index]
  points to me
: [IMG.png]
  an image as definition term??!?
: [[IMG.png] http://txt2tags.sf.net]
  an image that points to a link as definition term!


----------------------------------------------------------

==   Nesting, nesting, nesting, nesting, ...    ==

- a
 - little
  - prove
   - that
    - lists
     - can
      - be
       - nested
        - in
         - an
          - insane
           - way.
            - you
             - will
              - never
               - need
                - to
                 - go
                  - this
                   - far,
                    - but
                     - if
                      - you
                       - want,
                        - you
                         - can.


========================================================================



=   QUOTE   =

==  Quoting, quoting, quoting, ... ==

as
	in
		lists
			you
				can
					increase
				and
			decrease
				and
					increase
				and
			decrease
		the
	quoting
level.


========================================================================



=   IMAGES   =

----------------------------------------------------------

== Image as a Link ==

this image is a link: [[IMG.png] http://txt2tags.sf.net]

----------------------------------------------------------

== Image + Text = Playing Alignment ==

[IMG.png] image at the line begin: left aligned

image in the middle of the line [IMG.png] center aligned

image at the line end: right aligned [IMG.png]

----------------------------------------------------------

== Image Alone = Paragraph + Center  ==

          [IMG.png]          

----------------------------------------------------------

== More than one per line ==

lots [IMG.png] of [IMG.png] images [IMG.png][IMG.png][IMG.png] at the [IMG.png] same line!

----------------------------------------------------------

== More image alignments can be done using quotes ==

	[IMG.png] like this.
		[IMG.png] like this.
			[IMG.png] like this.
				[IMG.png] like this.

----------------------------------------------------------

== More complex alignments can be done inside tables ==


| [IMG.png] |    like   |   this    | [IMG.png]
|     or    |    this   | [IMG.png] |
|     or    | [IMG.png] |   this    |
| [IMG.png] |     or    |   this    |


========================================================================



=   TABLE   =

== Cell Count ==


  | just  | don't | miss  |
  |       | the   | cell  |
  | count | or    | your  | table
  | will  | be
  | a     | real  | big   | big | mess
  |       | or    | maybe | you
  |       |       | think | it's  |
  |       |       |       |       | cool


----------------------------------------------------------

== Inserting thingies inside tables ==

  |   **bold**  |      //italic//     |  **//bolditalic//**  |  __underline__  |
  |   ``pre``   |  %%mtime(%Y-%m-%d)  |  literal ""|"" bar   |  \,\\,\\\,\n,\t,\1 
  | www.url.com |  email@domain.com   |  [named link.html]   |  [IMG.png] 

----------------------------------------------------------

== Alignment ==

=== Leading spaces on the first line define Table Align ===

|| if no leading spaces |
| the table is left aligned

 || but with leading spaces |
 | we go to the center! |


=== Natural spaces define align for each table cell  ===


    || name (left)  |  age (center)  |  money (right) |
     | john         |       22       |        1500.00 |
     | mary         |       34       |        2300.00 |
     | bob          |       16       |         600.00 |


=== Note: for EACH table cell :) ===

 || ------------ | ------------ | ------------ | ------------ | ------------ | ------------ |
  |    right | left     |    right | left     |    right | left     |
  |  center  |  center  |  center  |  center  |  center  |  center  |
  | left     |    right | left     |    right | left     |    right |
  |  center  |  center  |  center  |  center  |  center  |  center  |
  |    right | left     |    right | left     |    right | left     |
 || ------------ | ------------ | ------------ | ------------ | ------------ | ------------ |

----------------------------------------------------------
== Borders ==


=== Table first line with final BAR, HAS border ===

    | with | border |


    || with | border |
    |  11   |  12 


    || with | border |
    |  11   |  12    |


=== Table first line with NO final BAR, has NO border ===

    | no | border


    || no  | border
    |  11  |  12 


    || no  | border
    |  11  |  12   |


========================================================================



"wee, i'm tired!" [[img/valid-html.png] VALIDATOR]

% vim: foldmethod=syntax
