Index: jrst2/src/test/org/codelutin/jrst/test.rst diff -u jrst2/src/test/org/codelutin/jrst/test.rst:1.1 jrst2/src/test/org/codelutin/jrst/test.rst:1.2 --- jrst2/src/test/org/codelutin/jrst/test.rst:1.1 Thu Apr 26 10:22:20 2007 +++ jrst2/src/test/org/codelutin/jrst/test.rst Thu May 3 16:37:08 2007 @@ -1,3 +1,4 @@ +=============== Docinfo Example =============== @@ -11,9 +12,7 @@ :Address: 123 Example Ave. Example, EX :Authors: J. Random Hacker; Jane Doe :Organization: Humankind -:Version: 1 :Revision: b -:Status: Work In Progress Admonition ---------- Index: jrst2/src/test/org/codelutin/jrst/text.rst diff -u jrst2/src/test/org/codelutin/jrst/text.rst:1.11 jrst2/src/test/org/codelutin/jrst/text.rst:1.12 --- jrst2/src/test/org/codelutin/jrst/text.rst:1.11 Thu Apr 26 10:22:20 2007 +++ jrst2/src/test/org/codelutin/jrst/text.rst Thu May 3 16:37:08 2007 @@ -264,4 +264,15 @@ .. header:: This space for rent. aaaa **aaaa** --o at least 2 spaces between option & description \ No newline at end of file +-o at least 2 spaces between option & description + +at least 2 spaces between option & description 'frungible doodads'_ [#aaaa]_ + +.. _frungible doodads: http://www.example.org/ + +.. [#] "Bogus Complexity Addition" + +.. [9] "Bogus Complexity Addition" + + .. [#pep9876] PEP 9876, Let's Hope We Never Get Here + Index: jrst2/src/test/org/codelutin/jrst/footnoteTest.xml diff -u /dev/null jrst2/src/test/org/codelutin/jrst/footnoteTest.xml:1.1 --- /dev/null Thu May 3 16:37:13 2007 +++ jrst2/src/test/org/codelutin/jrst/footnoteTest.xml Thu May 3 16:37:08 2007 @@ -0,0 +1,5 @@ + + + +1 is a reference to footnote 1, and 2 is a reference to +footnote 2.This is footnote 1.This is footnote 2.This is footnote 3.3 is a reference to footnote 3. \ No newline at end of file Index: jrst2/src/test/org/codelutin/jrst/footnoteTest.rst diff -u /dev/null jrst2/src/test/org/codelutin/jrst/footnoteTest.rst:1.1 --- /dev/null Thu May 3 16:37:13 2007 +++ jrst2/src/test/org/codelutin/jrst/footnoteTest.rst Thu May 3 16:37:08 2007 @@ -0,0 +1,8 @@ +[#]_ is a reference to footnote 1, and [#]_ is a reference to +footnote 2. + +.. [#] This is footnote 1. +.. [#] This is footnote 2. +.. [#] This is footnote 3. + +[#]_ is a reference to footnote 3. Index: jrst2/src/test/org/codelutin/jrst/test3.rst diff -u /dev/null jrst2/src/test/org/codelutin/jrst/test3.rst:1.1 --- /dev/null Thu May 3 16:37:13 2007 +++ jrst2/src/test/org/codelutin/jrst/test3.rst Thu May 3 16:37:08 2007 @@ -0,0 +1,116 @@ +===================================================== + The reStructuredText_ Cheat Sheet: Syntax Reminders +===================================================== +:Info: See for introductory docs. +:Author: David Goodger +:Date: $Date: 2007/05/03 16:37:08 $ +:Revision: $Revision: 1.1 $ +:Description: This is a "docinfo block", or bibliographic field list + +Section Structure +================= +Section titles are underlined or overlined & underlined. + +Body Elements +============= +Grid table: + + + + +Simple tables: + +================ ============================================================ +List Type Examples +================ ============================================================ +Bullet list * items begin with "-", "+", or "*" +Enumerated list 1. items use any variation of "1.", "A)", and "(i)" + #. also auto-enumerated +Definition list Term is flush-left : optional classifier + Definition is indented, no blank line between +Field list :field name: field body +Option list -o at least 2 spaces between option & description +================ ============================================================ + +================ ============================================================ +Explicit Markup Examples (visible in the `text source `_) +================ ============================================================ +Footnote .. [1] Manually numbered or [#] auto-numbered + (even [#labelled]) or [*] auto-symbol +Citation .. [CIT2002] A citation. +Hyperlink Target .. _reStructuredText: http://docutils.sf.net/rst.html + .. _indirect target: reStructuredText_ + .. _internal target: +Anonymous Target __ http://docutils.sf.net/docs/ref/rst/restructuredtext.html +Directive ("::") .. image:: images/biohazard.png +Substitution Def .. |substitution| replace:: like an inline directive +Comment .. is anything else +Empty Comment (".." on a line by itself, with blank lines before & after, + used to separate indentation contexts) +================ ============================================================ + +Inline Markup +============= +*emphasis*; **strong emphasis**; `interpreted text`; `interpreted text +with role`:emphasis:; ``inline literal text``; standalone hyperlink, +http://docutils.sourceforge.net; named reference, reStructuredText_; +`anonymous reference`__; footnote reference, [1]_; citation reference, +[CIT2002]_; |substitution|; _`inline internal target`. + +Directive Quick Reference +========================= +See for full info. + +================ ============================================================ +Directive Name Description (Docutils version added to, in [brackets]) +================ ============================================================ +attention Specific admonition; also "caution", "danger", + "error", "hint", "important", "note", "tip", "warning" +admonition Generic titled admonition: ``.. admonition:: By The Way`` +image ``.. image:: picture.png``; many options possible +figure Like "image", but with optional caption and legend +topic ``.. topic:: Title``; like a mini section +sidebar ``.. sidebar:: Title``; like a mini parallel document +parsed-literal A literal block with parsed inline markup +rubric ``.. rubric:: Informal Heading`` +epigraph Block quote with class="epigraph" +highlights Block quote with class="highlights" +pull-quote Block quote with class="pull-quote" +compound Compound paragraphs [0.3.6] +container Generic block-level container element [0.3.10] +table Create a titled table [0.3.1] +list-table Create a table from a uniform two-level bullet list [0.3.8] +csv-table Create a table from CSV data (requires Python 2.3+) [0.3.4] +contents Generate a table of contents +sectnum Automatically number sections, subsections, etc. +header, footer Create document decorations [0.3.8] +target-notes Create an explicit footnote for each external target +meta HTML-specific metadata +include Read an external reST file as if it were inline +raw Non-reST data passed untouched to the Writer +replace Replacement text for substitution definitions +unicode Unicode character code conversion for substitution defs +date Generates today's date; for substitution defs +class Set a "class" attribute on the next element +role Create a custom interpreted text role [0.3.2] +default-role Set the default interpreted text role [0.3.10] +title Set the metadata document title [0.3.10] +================ ============================================================ + +Interpreted Text Role Quick Reference +===================================== +See for full info. + +================ ============================================================ +Role Name Description +================ ============================================================ +emphasis Equivalent to *emphasis* +literal Equivalent to ``literal`` but processes backslash escapes +PEP Reference to a numbered Python Enhancement Proposal +RFC Reference to a numbered Internet Request For Comments +raw For non-reST data; cannot be used directly (see docs) [0.3.6] +strong Equivalent to **strong** +sub Subscript +sup Superscript +title Title reference (book, etc.); standard default role +================ ============================================================ Index: jrst2/src/test/org/codelutin/jrst/text.xml diff -u /dev/null jrst2/src/test/org/codelutin/jrst/text.xml:1.1 --- /dev/null Thu May 3 16:37:13 2007 +++ jrst2/src/test/org/codelutin/jrst/text.xml Thu May 3 16:37:08 2007 @@ -0,0 +1,57 @@ + + + +Le grand titreBenjamin POUSSIN <poussin@codelutin>Sylvain LETELLIER <letellier@codelutin>
6 chemin des Orans +44240 La Chapelle sur Erdre
$date: 28/10/2006$Un champsau milieu +de null partavec meme un para$date: 28/10/2006$
L'abstract de l'article
Le premier titreUn paragrapheUn autre paragraphe
Un sous titreUn para de la sous section
Un autre sous titreUn autre para
Le <emphasis>deuxime</emphasis> titreavec un para sur plusieurs +ligne histoire de voiret un autre para aussi **sur +plusieurs lignes** mais sans grasune petite listequi contientplusieurs elements +et meme sur plusieur lignevoir meme avec plusieurs paragraphe +et des liens http://www.codelutin.comencore un petitet la suite de la listepour finiret memeEnumerated list ends without a blank line; unexpected unindent.4. des enum +#. pour voirde toutsortepour toutEnumerated list ends without a blank line; unexpected unindent.(b) tester +(#) vraiment toutfield1avec un +petit texteet meme undebutde listfield2todoun autre motune autre definitionle motla classela definitionavec un autre para +sur plusieurs lignes:Et meme + avec *des* + ligne a + + preserver +tel quelles +sontun autre motune autre definitionle motla classe 1la classe 2la definitionun peude field +ca ne fait pas +de malpublic int unread(String [] lines, boolean addNewLine) { + int result = 0; + for (String line : lines) { + result += unread(line, addNewLine); + } + return result; +}un para 0un para pluie +de 2Header row, column 1 +(header rows optional)Header 2Header 3Header 4body row 1, column 1column 2column 3column 4body row 2Cells may span columns.body row 3Cells may +span rows.Table cellscontainbody elements.body row 4
body row 3Cells may +span rows.Table cellscontainbody elements.body row 4
Bullet listitems begin with "-", "+", or "*"Enumerated list1. items use any variation of "1.", "A)", and "(i)" +#. also auto-enumeratedDefinition listTerm is flush-leftoptional classifierDefinition is indented, no blank line betweenField listfield namefield bodyOption listat least 2 spaces between option & description
InputsOutputA BA or BABA or BFalseFalseSecond column of row 1.TrueFalseSecond column of row 2.True2Second column of row 3.Second item in bullet +list (row 3, column 2).
The the big: biohazard symbol in must be used on containers used to dispose of medical waste.the big: biohazardDirective "date" not registered (canonical name "date").Unknown directive type "date".date::Substitution definition "date" empty or invalid... |date| date:: + +Une petit phare pour avoir un lien inlinefield1def1field2def2field1autre def1field2autre def2And, by the way...You can make up your own admonition too.field1autre def1field2autre def2All your base are belong to us. +You can makeWARNING::The "raw" role is a stop-gap measure allowing the author to bypass:: +reStructuredText's markup. It is a "power-user" feature that +should not be overused or abused. The use of "raw" ties documents +to specific output formats and makes them less portable. + +If you often need to use "raw"-derived interpreted text roles or +the "raw" directive, that is a sign either of overuse/abuse or that +functionality may be missing from reStructuredText. Please +describe your situation in a message to the Docutils-users_ mailing +list. + +.. |the big: biohazard| image:: biohazard.png The "raw" role is a stop-gap measure allowing the author to bypass:: +reStructuredText's markup. It is a "power-user" feature that +should not be overused or abused. The use of "raw" ties documents +to specific output formats and makes them less portable.If you often need to use "raw"-derived interpreted text roles or +the "raw" directive, that is a sign either of overuse/abuse or that +functionality may be missing from reStructuredText. Please +describe your situation in a message to the Docutils-users_ mailing +list.Duplicate substitution definition name: "the big: biohazard".the big: biohazardla derniere ligne.Derrière toi c'est horrible !The "admonition" admonition is empty; content required... admonition:: And, by the way...Ceci est un avertissement.Je vous demande de vous arrêtez.As a great paleontologist once said,This theory, that is mine, is mine.Anne Elk (Miss)>>> print 'this is a Doctest block' +this is a Doctest blockA one, two, a one two three fourHalf a bee, philosophically,must, ipso facto, half not be.But half the bee has got to be,vis a vis its entity. D'you see?But can a bee be said to beor not to be an entire bee,when half the bee is not a bee,due to some ancient injury?Singing...TitleIf DesiredBody.TitleBody.command-line option "a"Multiple options with arguments.Directive "header" not registered (canonical name "header").Unknown directive type "header"... header:: This space for rent. aaaa **aaaa** +at least 2 spaces between option & descriptionat least 2 spaces between option & description 'frungible doodads'_ 1"Bogus Complexity Addition""Bogus Complexity Addition"PEP 9876, Let's Hope We Never Get Here
Docutils System MessagesUnknown target name: "docutils-users".
\ No newline at end of file Index: jrst2/src/test/org/codelutin/jrst/footnoteTest2.xml diff -u /dev/null jrst2/src/test/org/codelutin/jrst/footnoteTest2.xml:1.1 --- /dev/null Thu May 3 16:37:14 2007 +++ jrst2/src/test/org/codelutin/jrst/footnoteTest2.xml Thu May 3 16:37:08 2007 @@ -0,0 +1,25 @@ + + + 2 will be "2" (manually numbered), + 3 will be "3" (anonymous auto-numbered), and + 1 will be "1" (labeled auto-numbered). + + + + This footnote is labeled manually, so its number is fixed. + + + + This autonumber-labeled footnote will be labeled "1". +It is the first auto-numbered footnote and no other footnote +with label "1" exists. The order of the footnotes is used to +determine numbering, not the order of the footnote references. + + + + + This footnote will be labeled "3". It is the second +auto-numbered footnote, but footnote label "2" is already used. + + + Index: jrst2/src/test/org/codelutin/jrst/footnoteTest2.rst diff -u /dev/null jrst2/src/test/org/codelutin/jrst/footnoteTest2.rst:1.1 --- /dev/null Thu May 3 16:37:14 2007 +++ jrst2/src/test/org/codelutin/jrst/footnoteTest2.rst Thu May 3 16:37:08 2007 @@ -0,0 +1,13 @@ +[2]_ will be "2" (manually numbered), +[#]_ will be "3" (anonymous auto-numbered), and +[#label]_ will be "1" (labeled auto-numbered). + +.. [2] This footnote is labeled manually, so its number is fixed. + +.. [#label] This autonumber-labeled footnote will be labeled "1". + It is the first auto-numbered footnote and no other footnote + with label "1" exists. The order of the footnotes is used to + determine numbering, not the order of the footnote references. + +.. [#] This footnote will be labeled "3". It is the second + auto-numbered footnote, but footnote label "2" is already used.