From 4dd6afad9813ceabef256c954c55c59e27c17f80 Mon Sep 17 00:00:00 2001 From: milde Date: Thu, 22 Jun 2017 22:08:02 +0000 Subject: Delete old 0.4 maintenance branch. git-svn-id: http://svn.code.sf.net/p/docutils/code/branches/docutils-0.4@8122 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- test/functional/expected/compact_lists.html | 47 - test/functional/expected/dangerous.html | 66 - test/functional/expected/field_name_limit.html | 28 - test/functional/expected/latex_docinfo.tex | 85 - test/functional/expected/misc_rst_html4css1.html | 15 - test/functional/expected/pep_html.html | 93 - .../expected/standalone_rst_html4css1.html | 1001 ----------- test/functional/expected/standalone_rst_latex.tex | 1556 ----------------- .../expected/standalone_rst_pseudoxml.txt | 1841 -------------------- .../expected/standalone_rst_s5_html_1.html | 152 -- .../expected/standalone_rst_s5_html_2.html | 148 -- test/functional/expected/ui/default/blank.gif | Bin 49 -> 0 bytes test/functional/expected/ui/default/framing.css | 25 - test/functional/expected/ui/default/iepngfix.htc | 42 - test/functional/expected/ui/default/opera.css | 8 - test/functional/expected/ui/default/outline.css | 16 - test/functional/expected/ui/default/pretty.css | 120 -- test/functional/expected/ui/default/print.css | 24 - test/functional/expected/ui/default/s5-core.css | 11 - test/functional/expected/ui/default/slides.css | 10 - test/functional/expected/ui/default/slides.js | 558 ------ test/functional/expected/ui/small-black/blank.gif | Bin 49 -> 0 bytes .../functional/expected/ui/small-black/framing.css | 24 - .../expected/ui/small-black/iepngfix.htc | 42 - test/functional/expected/ui/small-black/opera.css | 8 - .../functional/expected/ui/small-black/outline.css | 16 - test/functional/expected/ui/small-black/pretty.css | 116 -- test/functional/expected/ui/small-black/print.css | 24 - .../functional/expected/ui/small-black/s5-core.css | 11 - test/functional/expected/ui/small-black/slides.css | 10 - test/functional/expected/ui/small-black/slides.js | 558 ------ 31 files changed, 6655 deletions(-) delete mode 100644 test/functional/expected/compact_lists.html delete mode 100644 test/functional/expected/dangerous.html delete mode 100644 test/functional/expected/field_name_limit.html delete mode 100644 test/functional/expected/latex_docinfo.tex delete mode 100644 test/functional/expected/misc_rst_html4css1.html delete mode 100644 test/functional/expected/pep_html.html delete mode 100644 test/functional/expected/standalone_rst_html4css1.html delete mode 100644 test/functional/expected/standalone_rst_latex.tex delete mode 100644 test/functional/expected/standalone_rst_pseudoxml.txt delete mode 100644 test/functional/expected/standalone_rst_s5_html_1.html delete mode 100644 test/functional/expected/standalone_rst_s5_html_2.html delete mode 100644 test/functional/expected/ui/default/blank.gif delete mode 100644 test/functional/expected/ui/default/framing.css delete mode 100644 test/functional/expected/ui/default/iepngfix.htc delete mode 100644 test/functional/expected/ui/default/opera.css delete mode 100644 test/functional/expected/ui/default/outline.css delete mode 100644 test/functional/expected/ui/default/pretty.css delete mode 100644 test/functional/expected/ui/default/print.css delete mode 100644 test/functional/expected/ui/default/s5-core.css delete mode 100644 test/functional/expected/ui/default/slides.css delete mode 100644 test/functional/expected/ui/default/slides.js delete mode 100644 test/functional/expected/ui/small-black/blank.gif delete mode 100644 test/functional/expected/ui/small-black/framing.css delete mode 100644 test/functional/expected/ui/small-black/iepngfix.htc delete mode 100644 test/functional/expected/ui/small-black/opera.css delete mode 100644 test/functional/expected/ui/small-black/outline.css delete mode 100644 test/functional/expected/ui/small-black/pretty.css delete mode 100644 test/functional/expected/ui/small-black/print.css delete mode 100644 test/functional/expected/ui/small-black/s5-core.css delete mode 100644 test/functional/expected/ui/small-black/slides.css delete mode 100644 test/functional/expected/ui/small-black/slides.js (limited to 'test/functional/expected') diff --git a/test/functional/expected/compact_lists.html b/test/functional/expected/compact_lists.html deleted file mode 100644 index fa53a3098..000000000 --- a/test/functional/expected/compact_lists.html +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - -
- -
- -
- -
- -
- - diff --git a/test/functional/expected/dangerous.html b/test/functional/expected/dangerous.html deleted file mode 100644 index c8c7c7465..000000000 --- a/test/functional/expected/dangerous.html +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - - - - -
-

Potentially dangerous features (security holes):

-
-

System Message: WARNING/2 (functional/input/dangerous.txt, line 3)

-

"include" directive disabled.

-
-.. include:: /etc/passwd
-
-
-
-

System Message: WARNING/2 (functional/input/dangerous.txt, line 4)

-

"raw" directive disabled.

-
-.. raw:: html
-   :file: /etc/passwd
-
-
-
-

System Message: WARNING/2 (functional/input/dangerous.txt, line 6)

-

"raw" directive disabled.

-
-.. raw:: html
-   :url: file:///etc/passwd
-
-
-
-

System Message: WARNING/2 (functional/input/dangerous.txt, line 8)

-

"raw" directive disabled.

-
-.. raw:: html
-
-   <script>
-       that does something really nasty
-   </script>
-
-
-
-

System Message: WARNING/2 (functional/input/dangerous.txt, line 13)

-

File and URL access deactivated; ignoring "csv-table" directive.

-
-.. csv-table:: :file: /etc/passwd
-
-
-
-

System Message: WARNING/2 (functional/input/dangerous.txt, line 14)

-

File and URL access deactivated; ignoring "csv-table" directive.

-
-.. csv-table:: :url: file:///etc/passwd
-
-
-
-picture.png -
-
- - diff --git a/test/functional/expected/field_name_limit.html b/test/functional/expected/field_name_limit.html deleted file mode 100644 index b6b595b47..000000000 --- a/test/functional/expected/field_name_limit.html +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - -
- --- - - - - - - - - - -
short:This field's name is short.
medium-length:This field's name is medium-length.
long field name:This field's name is long.
very very long field name:This field's name is quite long.
-
- - diff --git a/test/functional/expected/latex_docinfo.tex b/test/functional/expected/latex_docinfo.tex deleted file mode 100644 index 04d9438f7..000000000 --- a/test/functional/expected/latex_docinfo.tex +++ /dev/null @@ -1,85 +0,0 @@ -\documentclass[10pt,a4paper,english]{article} -\usepackage{babel} -\usepackage{ae} -\usepackage{aeguill} -\usepackage{shortvrb} -\usepackage[latin1]{inputenc} -\usepackage{tabularx} -\usepackage{longtable} -\setlength{\extrarowheight}{2pt} -\usepackage{amsmath} -\usepackage{graphicx} -\usepackage{color} -\usepackage{multirow} -\usepackage{ifthen} -\usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref} -\usepackage[DIV12]{typearea} -%% generator Docutils: http://docutils.sourceforge.net/ -\newlength{\admonitionwidth} -\setlength{\admonitionwidth}{0.9\textwidth} -\newlength{\docinfowidth} -\setlength{\docinfowidth}{0.9\textwidth} -\newlength{\locallinewidth} -\newcommand{\optionlistlabel}[1]{\bf #1 \hfill} -\newenvironment{optionlist}[1] -{\begin{list}{} - {\setlength{\labelwidth}{#1} - \setlength{\rightmargin}{1cm} - \setlength{\leftmargin}{\rightmargin} - \addtolength{\leftmargin}{\labelwidth} - \addtolength{\leftmargin}{\labelsep} - \renewcommand{\makelabel}{\optionlistlabel}} -}{\end{list}} -\newlength{\lineblockindentation} -\setlength{\lineblockindentation}{2.5em} -\newenvironment{lineblock}[1] -{\begin{list}{} - {\setlength{\partopsep}{\parskip} - \addtolength{\partopsep}{\baselineskip} - \topsep0pt\itemsep0.15\baselineskip\parsep0pt - \leftmargin#1} - \raggedright} -{\end{list}} -% begin: floats for footnotes tweaking. -\setlength{\floatsep}{0.5em} -\setlength{\textfloatsep}{\fill} -\addtolength{\textfloatsep}{3em} -\renewcommand{\textfraction}{0.5} -\renewcommand{\topfraction}{0.5} -\renewcommand{\bottomfraction}{0.5} -\setcounter{totalnumber}{50} -\setcounter{topnumber}{50} -\setcounter{bottomnumber}{50} -% end floats for footnotes -% some commands, that could be overwritten in the style file. -\newcommand{\rubric}[1]{\subsection*{~\hfill {\it #1} \hfill ~}} -\newcommand{\titlereference}[1]{\textsl{#1}} -% end of "some commands" -\title{} -\author{Foo Fred~\\ -Food Foomatics {\&} Friends~\\ -foo@food.example.info~\\ -Fox St 13~\\ -Foowood \and -Bar Barney~\\ -Bar-BQ Bar~\\ -1-800-BARBQBAR~\\ -Barbara St 16~\\ -South Barwell} -\date{} -\hypersetup{ -pdfauthor={Foo Fred;Bar Barney} -} -\raggedbottom -\begin{document} -\maketitle - -%___________________________________________________________________________ -\begin{center} -\begin{tabularx}{\docinfowidth}{lX} -\end{tabularx} -\end{center} - -\setlength{\locallinewidth}{\linewidth} - -\end{document} diff --git a/test/functional/expected/misc_rst_html4css1.html b/test/functional/expected/misc_rst_html4css1.html deleted file mode 100644 index 0f00216f0..000000000 --- a/test/functional/expected/misc_rst_html4css1.html +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - -
-

simple input

-
- - diff --git a/test/functional/expected/pep_html.html b/test/functional/expected/pep_html.html deleted file mode 100644 index a1e6d461a..000000000 --- a/test/functional/expected/pep_html.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - - - PEP 100 -- Test PEP - - - - - - -
- --- - - - - - - - - - - - - - - - - - - - - - - - -
PEP:100
Title:Test PEP
Version:42
Last-Modified:A long time ago.
Author:John Doe <john at example.org>
Discussions-To:<devnull at example.org>
Status:Draft
Type:Standards Track
Content-Type:text/x-rst
Created:01-Jun-2001
Post-History:13-Jun-2001
-
- -
-

Abstract

-

This is just a test [1]. See the PEP repository [2] for the real -thing.

-
-
-

Copyright

-

This document has been placed in the public domain.

-
- - -
- - - diff --git a/test/functional/expected/standalone_rst_html4css1.html b/test/functional/expected/standalone_rst_html4css1.html deleted file mode 100644 index a3710e779..000000000 --- a/test/functional/expected/standalone_rst_html4css1.html +++ /dev/null @@ -1,1001 +0,0 @@ - - - - - - -reStructuredText Test Document - - - - - - - - - - -
-Document header -
-
-
-

reStructuredText Test Document

-

Examples of Syntax Constructs

- --- - - - - - - - - - - - - - - - - - - - - - - - - - -
Author:David Goodger
Address:
-123 Example Street
-Example, EX  Canada
-A1B 2C3
-
-
Contact:goodger@users.sourceforge.net
Authors:Me -
Myself -
I
Organization:humankind
Date:Now, or yesterday. Or maybe even before yesterday.
Status:This is a "work in progress"
Revision:is managed by a version control system.
Version:1
Copyright:This document has been placed in the public domain. You -may do with it as you wish. You may copy, modify, -redistribute, reattribute, sell, buy, rent, lease, -destroy, or improve it, quote it at length, excerpt, -incorporate, collate, fold, staple, or mutilate it, or do -anything else to it that your or anyone else's heart -desires.
field name:This is a "generic bibliographic field".
field name "2":

Generic bibliographic fields may contain multiple body elements.

-

Like this.

-
-
-

Dedication

-

For Docutils users & co-developers.

-
-
-

Abstract

-

This is a test document, containing at least one example of each -reStructuredText construct.

-
- - - - -
-

1   Structural Elements

-
-

1.1   Section Title

-

Section Subtitle

-

That's it, the text just above this line.

-
- -
-

1.3   Transitions

-

Here's a transition:

-
-

It divides the section. Transitions may also occur between sections:

-
-
-
-
-

2   Body Elements

-
-

2.1   Paragraphs

-

A paragraph.

-
-

2.1.1   Inline Markup

-

Paragraphs contain text and may contain inline markup: emphasis, -strong emphasis, inline literals, standalone hyperlinks -(http://www.python.org), external hyperlinks (Python [5]), internal -cross-references (example), external hyperlinks with embedded URIs -(Python web site), anonymous hyperlink -references [5] (a second reference [6]), footnote references (manually -numbered [1], anonymous auto-numbered [3], labeled auto-numbered -[2], or symbolic [*]), citation references ([CIT2002]), -substitution references (EXAMPLE), and inline hyperlink targets -(see Targets below for a reference back to here). Character-level -inline markup is also possible (although exceedingly ugly!) in reStructuredText. Problems are indicated by |problematic| text -(generated by processing errors; this one is intentional). Here is a -reference to the doctitle and the subtitle.

-

The default role for interpreted text is Title Reference. Here are -some explicit interpreted text roles: a PEP reference (PEP 287); an -RFC reference (RFC 2822); a subscript; a superscript; -and explicit roles for standard inline -markup.

- -

Let's test wrapping and whitespace significance in inline literals: -This is an example of --inline-literal --text, --including some-- -strangely--hyphenated-words.  Adjust-the-width-of-your-browser-window -to see how the text is wrapped.  -- ---- --------  Now note    the -spacing    between the    words of    this sentence    (words -should    be grouped    in pairs).

-

If the --pep-references option was supplied, there should be a -live link to PEP 258 here.

-
-
-
-

2.2   Bullet Lists

-
    -
  • A bullet list

    -
      -
    • Nested bullet list.
    • -
    • Nested item 2.
    • -
    -
  • -
  • Item 2.

    -

    Paragraph 2 of item 2.

    -
      -
    • Nested bullet list.
    • -
    • Nested item 2.
        -
      • Third level.
      • -
      • Item 2.
      • -
      -
    • -
    • Nested item 3.
    • -
    • This nested list should be compacted by the HTML writer. -
    • -
    -
  • -
-
-
-

2.3   Enumerated Lists

-
    -
  1. Arabic numerals.

    -
      -
    1. lower alpha)
        -
      1. (lower roman)
          -
        1. upper alpha.
            -
          1. upper roman)
          2. -
          -
        2. -
        -
      2. -
      -
    2. -
    -
  2. -
  3. Lists that don't start at 1:

    -
      -
    1. Three
    2. -
    3. Four
    4. -
    -
      -
    1. C
    2. -
    3. D
    4. -
    -
      -
    1. iii
    2. -
    3. iv
    4. -
    -
  4. -
-
-
-

2.4   Definition Lists

-
-
Term
-
Definition
-
Term : classifier
-

Definition paragraph 1.

-

Definition paragraph 2.

-
-
Term
-
Definition
-
Term : classifier one : classifier two
-
Definition
-
-
-
-

2.5   Field Lists

- --- - - - - - - - -
what:

Field lists map field names to field bodies, like database -records. They are often part of an extension syntax. They are -an unambiguous variant of RFC 2822 fields.

-
how arg1 arg2:

The field marker is a colon, the field name, and a colon.

-

The field body may contain one or more body elements, indented -relative to the field marker.

-
credits:

This paragraph has the credits class set. (This is actually not -about credits but just for ensuring that the class attribute -doesn't get stripped away.)

-
-
-
-

2.6   Option Lists

-

For listing command-line options:

- --- - - - - - - - - - - - - - - - - - - - - - -
--acommand-line option "a"
--b fileoptions can have arguments -and long descriptions
---longoptions can be long also
---input=filelong options can also have -arguments
---very-long-option
 

The description can also start on the next line.

-

The description may contain multiple body elements, -regardless of where it starts.

-
--x, -y, -zMultiple options are an "option group".
--v, --verboseCommonly-seen: short & long options.
--1 file, --one=file, --two file
 Multiple options with arguments.
-/VDOS/VMS-style options too
-

There must be at least two spaces between the option and the -description.

-
-
-

2.7   Literal Blocks

-

Literal blocks are indicated with a double-colon ("::") at the end of -the preceding paragraph (over there -->). They can be indented:

-
-if literal_block:
-    text = 'is left as-is'
-    spaces_and_linebreaks = 'are preserved'
-    markup_processing = None
-
-

Or they can be quoted without indentation:

-
->> Great idea!
->
-> Why didn't I think of that?
-
-
-
-

2.8   Line Blocks

-

This section tests line blocks. Line blocks are body elements which -consist of lines and other line blocks. Nested line blocks cause -indentation.

-
-
This is a line block. It ends with a blank line.
-
-
New lines begin with a vertical bar ("|").
-
Line breaks and initial indent are significant, and preserved.
-
-
Continuation lines are also possible. A long line that is intended -to wrap should begin with a space in place of the vertical bar.
-
-
The left edge of a continuation line need not be aligned with -the left edge of the text above it.
-
-
-
-
This is a second line block.
-

-
Blank lines are permitted internally, but they must begin with a "|".
-
-

Another line block, surrounded by paragraphs:

-
-
And it's no good waiting by the window
-
It's no good waiting for the sun
-
Please believe me, the things you dream of
-
They don't fall in the lap of no-one
-
-

Take it away, Eric the Orchestra Leader!

-
-
-
A one, two, a one two three four
-

-
Half 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 be
-
-
or not to be an entire bee,
-
-
when half the bee is not a bee,
-
-
due to some ancient injury?
-

-
-
-
-
Singing...
-
-
-
-
-

2.9   Block Quotes

-

Block quotes consist of indented body elements:

-
-

My theory by A. Elk. Brackets Miss, brackets. This theory goes -as follows and begins now. All brontosauruses are thin at one -end, much much thicker in the middle and then thin again at the -far end. That is my theory, it is mine, and belongs to me and I -own it, and what it is too.

-

—Anne Elk (Miss)

-
-
-
-

2.10   Doctest Blocks

-
->>> print 'Python-specific usage examples; begun with ">>>"'
-Python-specific usage examples; begun with ">>>"
->>> print '(cut and pasted from interactive Python sessions)'
-(cut and pasted from interactive Python sessions)
-
-
-
-

2.11   Footnotes

- - - - - -
[1](1, 2, 3)

A footnote contains body elements, consistently indented by at -least 3 spaces.

-

This is the footnote's second paragraph.

-
- - - - - -
[2](1, 2) Footnotes may be numbered, either manually (as in [1]) or -automatically using a "#"-prefixed label. This footnote has a -label so it can be referred to from multiple places, both as a -footnote reference ([2]) and as a hyperlink reference -(label).
- - - - - -
[3]

This footnote is numbered automatically and anonymously using a -label of "#" only.

-

This is the second paragraph.

-

And this is the third paragraph.

-
- - - - - -
[*]Footnotes may also use symbols, specified with a "*" label. -Here's a reference to the next footnote: [†].
- - - - - -
[†]This footnote shows the next symbol in the sequence.
- - - - - -
[4]Here's an unreferenced footnote, with a reference to a -nonexistent footnote: [5]_.
-
-
-

2.12   Citations

- - - - - -
[CIT2002](1, 2) Citations are text-labeled footnotes. They may be -rendered separately and differently from footnotes.
-

Here's a reference to the above, [CIT2002], and a [nonexistent]_ -citation.

-
-
-

2.13   Targets

-

This paragraph is pointed to by the explicit "example" target. A -reference can be found under Inline Markup, above. Inline -hyperlink targets are also possible.

-

Section headers are implicit targets, referred to by name. See -Targets, which is a subsection of Body Elements.

-

Explicit external targets are interpolated into references such as -"Python [5]".

-

Targets may be indirect and anonymous. Thus this phrase may also -refer to the Targets section.

-

Here's a `hyperlink reference without a target`_, which generates an -error.

-
-

2.13.1   Duplicate Target Names

-

Duplicate names in section headers or other implicit targets will -generate "info" (level-1) system messages. Duplicate names in -explicit targets will generate "warning" (level-2) system messages.

-
-
-

2.13.2   Duplicate Target Names

-

Since there are two "Duplicate Target Names" section headers, we -cannot uniquely refer to either of them by name. If we try to (like -this: `Duplicate Target Names`_), an error is generated.

-
-
-
-

2.14   Directives

- -

These are just a sample of the many reStructuredText Directives. For -others, please see -http://docutils.sourceforge.net/docs/ref/rst/directives.html.

-
-

2.14.1   Document Parts

-

An example of the "contents" directive can be seen above this section -(a local, untitled table of contents) and at the beginning of the -document (a document-wide table of contents).

-
-
-

2.14.2   Images

-

An image directive (also clickable -- a hyperlink reference):

-../../../docs/user/rst/images/title.png -

Image with multiple IDs:

-../../../docs/user/rst/images/title.png -

A centered image:

-
../../../docs/user/rst/images/biohazard.png
-

A left-aligned image:

-../../../docs/user/rst/images/biohazard.png -

A right-aligned image:

-../../../docs/user/rst/images/biohazard.png -

A figure directive:

-
-reStructuredText, the markup syntax -

A figure is an image with a caption and/or a legend:

-
- ---- - - - - - - - - - - - -
reRevised, revisited, based on 're' module.
StructuredStructure-enhanced text, structuredtext.
TextWell it is, isn't it?
-

This paragraph is also part of the legend.

-
-
-
-reStructuredText, the markup syntax -

A left-aligned figure.

-
-This is the legend.
-
-

This paragraph might flow around the figure...

-

A centered figure:

-
-../../../docs/user/rst/images/biohazard.png -

This is the caption.

-
-

This is the legend.

-

The legend may consist of several paragraphs.

-
-
-

This paragraph might flow around the figure...

-

A left-aligned figure:

-
-../../../docs/user/rst/images/biohazard.png -

This is the caption.

-
-

This is the legend.

-

The legend may consist of several paragraphs.

-
-
-

This paragraph might flow around the figure...

-

Now widths:

-

An image 2 em wide:

-../../../docs/user/rst/images/biohazard.png -

An image 2 em wide and 30 pixel high:

-../../../docs/user/rst/images/biohazard.png -

An image occupying 70% of the line width:

-../../../docs/user/rst/images/biohazard.png -

An image 3 cm high:

-../../../docs/user/rst/images/biohazard.png -
-
-

2.14.3   Admonitions

-
-

Attention!

-

Directives at large.

-
-
-

Caution!

-

Don't take any wooden nickels.

-
-
-

!DANGER!

-

Mad scientist at work!

-
-
-

Error

-

Does not compute.

-
-
-

Hint

-

It's bigger than a bread box.

-
-
-

Important

-
    -
  • Wash behind your ears.
  • -
  • Clean up your room.
  • -
  • Call your mother.
  • -
  • Back up your data.
  • -
-
-
-

Note

-

This is a note.

-
-
-

Tip

-

15% if the service is good.

-
-
-

Warning

-

Strong prose may provoke extreme mental exertion. -Reader discretion is strongly advised.

-
-
-

And, by the way...

-

You can make up your own admonition too.

-
-
-
-

2.14.4   Topics, Sidebars, and Rubrics

- -
-

Topic Title

-

This is a topic.

-
-

This is a rubric

-
- - -
-

2.14.7   Compound Paragraph

-
-

Compound 1, paragraph 1.

-

Compound 1, paragraph 2.

-
    -
  • Compound 1, list item one.
  • -
  • Compound 1, list item two.
  • -
-
-

Another compound statement:

-
-

Compound 2, a literal block:

-
-Compound 2, literal.
-
-

Compound 2, this is a test.

-
-
-

Compound 3, only consisting of one paragraph.

-
-
-
-Compound 4.
-This one starts with a literal block.
-
-

Compound 4, a paragraph.

-
-

Now something really perverted -- a nested compound block. This is -just to test that it works at all; the results don't have to be -meaningful.

-
-

Compound 5, block 1 (a paragraph).

-
-

Compound 6, block 2 in compound 5.

-

Compound 6, another paragraph.

-
-

Compound 5, block 3 (a paragraph).

-
-
-

Compound 7, with a table inside:

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

Left cell, first -paragraph.

-

Left cell, second -paragraph.

-
Middle cell, -consisting of -exactly one -paragraph.

Right cell.

-

Paragraph 2.

-

Paragraph 3.

-
-

Compound 7, a paragraph after the table.

-

Compound 7, another paragraph.

-
-
-
-

2.14.8   Parsed Literal Blocks

-
-This is a parsed literal block.
-    This line is indented.  The next line is blank.
-
-Inline markup is supported, e.g. emphasis, strong, literal
-text, footnotes [1], targets, and references.
-
-
-
-
-

2.15   Substitution Definitions

-

An inline image (EXAMPLE) example:

-

(Substitution definitions are not visible in the HTML source.)

-
-
-

2.16   Comments

-

Here's one:

- -

(View the HTML source to see the comment.)

-
-
-

2.17   Raw text

-

This does not necessarily look nice, because there may be missing white space.

-

It's just there to freeze the behavior.

-A test.Second test.
Another test with myclass set.

This is the fourth test with myrawroleclass set.

-Fifth test in HTML.
Line two.
-
-

2.18   Container

-
-

paragraph 1

-

paragraph 2

-
-
-
-

2.19   Colspanning tables

-

This table has a cell spanning two columns:

- ----- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
InputsOutput
ABA or B
FalseFalseFalse
TrueFalseTrue
FalseTrueTrue
TrueTrueTrue
-
-
-

2.20   Rowspanning tables

-

Here's a table with cells spanning several rows:

- ----- - - - - - - - - - - - - - - - - - - -
Header row, column 1 -(header rows optional)Header 2Header 3
body row 1, column 1column 2column 3
body row 2Cells may -span rows.Another -rowspanning -cell.
body row 3
-
-
-

2.21   Complex tables

-

Here's a complex table, which should test all features.

- ------ - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Header row, column 1 -(header rows optional)Header 2Header 3Header 4
body row 1, column 1column 2column 3column 4
body row 2Cells may span columns.
body row 3

Cells may -span rows.

-

Paragraph.

-
    -
  • Table cells
  • -
  • contain
  • -
  • body elements.
  • -
-
body row 4
body row 5Cells may also be -empty: --> 
-
-
-

2.22   List Tables

-

Here's a list table exercising all features:

- - ----- - - - - - - - - - - - - - - - - - - - - -
list table with integral header
TreatQuantityDescription
Albatross2.99On a stick!
Crunchy Frog1.49If we took the bones out, it wouldn't be -crunchy, now would it?
Gannet Ripple1.99On a stick!
-
-
-

2.23   Custom Roles

-

one two three

-
-
-
-

3   Error Handling

-

Any errors caught during processing will generate system messages.

-

There should be five messages in the following, auto-generated -section, "Docutils System Messages":

- -
-
-

Docutils System Messages

-
-

System Message: ERROR/3 (functional/input/data/standard.txt, line 100); backlink

-Undefined substitution referenced: "problematic".
-
-

System Message: ERROR/3 (functional/input/standalone_rst_html4css1.txt, line 358); backlink

-Unknown target name: "5".
-
-

System Message: ERROR/3 (functional/input/data/standard.txt, line 367); backlink

-Unknown target name: "nonexistent".
-
-

System Message: ERROR/3 (functional/input/data/standard.txt, line 394); backlink

-Unknown target name: "hyperlink reference without a target".
-
-

System Message: ERROR/3 (functional/input/data/standard.txt, line 407); backlink

-Duplicate target name, cannot be used as a unique reference: "duplicate target names".
-
-
- - - diff --git a/test/functional/expected/standalone_rst_latex.tex b/test/functional/expected/standalone_rst_latex.tex deleted file mode 100644 index 3d19c3947..000000000 --- a/test/functional/expected/standalone_rst_latex.tex +++ /dev/null @@ -1,1556 +0,0 @@ -\documentclass[10pt,a4paper,english]{article} -\usepackage{babel} -\usepackage{ae} -\usepackage{aeguill} -\usepackage{shortvrb} -\usepackage[latin1]{inputenc} -\usepackage{tabularx} -\usepackage{longtable} -\setlength{\extrarowheight}{2pt} -\usepackage{amsmath} -\usepackage{graphicx} -\usepackage{color} -\usepackage{multirow} -\usepackage{ifthen} -\usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref} -\usepackage[DIV12]{typearea} -%% generator Docutils: http://docutils.sourceforge.net/ -\newlength{\admonitionwidth} -\setlength{\admonitionwidth}{0.9\textwidth} -\newlength{\docinfowidth} -\setlength{\docinfowidth}{0.9\textwidth} -\newlength{\locallinewidth} -\newcommand{\optionlistlabel}[1]{\bf #1 \hfill} -\newenvironment{optionlist}[1] -{\begin{list}{} - {\setlength{\labelwidth}{#1} - \setlength{\rightmargin}{1cm} - \setlength{\leftmargin}{\rightmargin} - \addtolength{\leftmargin}{\labelwidth} - \addtolength{\leftmargin}{\labelsep} - \renewcommand{\makelabel}{\optionlistlabel}} -}{\end{list}} -\newlength{\lineblockindentation} -\setlength{\lineblockindentation}{2.5em} -\newenvironment{lineblock}[1] -{\begin{list}{} - {\setlength{\partopsep}{\parskip} - \addtolength{\partopsep}{\baselineskip} - \topsep0pt\itemsep0.15\baselineskip\parsep0pt - \leftmargin#1} - \raggedright} -{\end{list}} -% begin: floats for footnotes tweaking. -\setlength{\floatsep}{0.5em} -\setlength{\textfloatsep}{\fill} -\addtolength{\textfloatsep}{3em} -\renewcommand{\textfraction}{0.5} -\renewcommand{\topfraction}{0.5} -\renewcommand{\bottomfraction}{0.5} -\setcounter{totalnumber}{50} -\setcounter{topnumber}{50} -\setcounter{bottomnumber}{50} -% end floats for footnotes -% some commands, that could be overwritten in the style file. -\newcommand{\rubric}[1]{\subsection*{~\hfill {\it #1} \hfill ~}} -\newcommand{\titlereference}[1]{\textsl{#1}} -% end of "some commands" -\title{reStructuredText Test Document\\ -\large{Examples of Syntax Constructs} -} -\author{} -\date{} -\hypersetup{ -pdftitle={reStructuredText Test Document}, -pdfauthor={David Goodger;Me;Myself;I} -} -\raggedbottom -\begin{document} -\maketitle - -%___________________________________________________________________________ -\begin{center} -\begin{tabularx}{\docinfowidth}{lX} -\textbf{Author}: & - David Goodger \\ -\textbf{Address}: & - {\raggedright -123 Example Street~\\ -Example, EX Canada~\\ -A1B 2C3 } \\ -\textbf{Contact}: & - \href{mailto:goodger@users.sourceforge.net}{goodger@users.sourceforge.net} \\ -\textbf{Author}: & - Me \\ -\textbf{Author}: & - Myself \\ -\textbf{Author}: & - I \\ -\textbf{Organization}: & - humankind \\ -\textbf{Date}: & - Now, or yesterday. Or maybe even \emph{before} yesterday. \\ -\textbf{Status}: & - This is a ``work in progress'' \\ -\textbf{Revision}: & - is managed by a version control system. \\ -\textbf{Version}: & - 1 \\ -\textbf{Copyright}: & - This document has been placed in the public domain. You -may do with it as you wish. You may copy, modify, -redistribute, reattribute, sell, buy, rent, lease, -destroy, or improve it, quote it at length, excerpt, -incorporate, collate, fold, staple, or mutilate it, or do -anything else to it that your or anyone else's heart -desires. \\ -\textbf{field name}: & - This is a ``generic bibliographic field''. \\ -\textbf{field name ``2''}: & - Generic bibliographic fields may contain multiple body elements. - -Like this. \\ -\end{tabularx} -\end{center} - -\setlength{\locallinewidth}{\linewidth} - - -\subsubsection*{~\hfill Dedication\hfill ~} - -For Docutils users {\&} co-developers. - -\subsubsection*{~\hfill Abstract\hfill ~} - -This is a test document, containing at least one example of each -reStructuredText construct. - -% This is a comment. Note how any initial comments are moved by -% transforms to after the document title, subtitle, and docinfo. -% Above is the document title, and below is the subtitle. -% They are transformed from section titles after parsing. -% bibliographic fields (which also require a transform): -\hypertarget{table-of-contents}{} -\pdfbookmark[0]{Table of Contents}{table-of-contents} -\subsubsection*{~\hfill Table of Contents\hfill ~} -\begin{list}{}{} -\item {} \href{\#structural-elements}{1~~~Structural Elements} -\begin{list}{}{} -\item {} \href{\#section-title}{1.1~~~Section Title} - -\item {} \href{\#empty-section}{1.2~~~Empty Section} - -\item {} \href{\#transitions}{1.3~~~Transitions} - -\end{list} - -\item {} \href{\#body-elements}{2~~~Body Elements} -\begin{list}{}{} -\item {} \href{\#paragraphs}{2.1~~~Paragraphs} -\begin{list}{}{} -\item {} \href{\#inline-markup}{2.1.1~~~Inline Markup} - -\end{list} - -\item {} \href{\#bullet-lists}{2.2~~~Bullet Lists} - -\item {} \href{\#enumerated-lists}{2.3~~~Enumerated Lists} - -\item {} \href{\#definition-lists}{2.4~~~Definition Lists} - -\item {} \href{\#field-lists}{2.5~~~Field Lists} - -\item {} \href{\#option-lists}{2.6~~~Option Lists} - -\item {} \href{\#literal-blocks}{2.7~~~Literal Blocks} - -\item {} \href{\#line-blocks}{2.8~~~Line Blocks} - -\item {} \href{\#block-quotes}{2.9~~~Block Quotes} - -\item {} \href{\#doctest-blocks}{2.10~~~Doctest Blocks} - -\item {} \href{\#footnotes}{2.11~~~Footnotes} - -\item {} \href{\#citations}{2.12~~~Citations} - -\item {} \href{\#targets}{2.13~~~Targets} -\begin{list}{}{} -\item {} \href{\#duplicate-target-names}{2.13.1~~~Duplicate Target Names} - -\item {} \href{\#id20}{2.13.2~~~Duplicate Target Names} - -\end{list} - -\item {} \href{\#directives}{2.14~~~Directives} -\begin{list}{}{} -\item {} \href{\#document-parts}{2.14.1~~~Document Parts} - -\item {} \href{\#images}{2.14.2~~~Images} - -\item {} \href{\#admonitions}{2.14.3~~~Admonitions} - -\item {} \href{\#topics-sidebars-and-rubrics}{2.14.4~~~Topics, Sidebars, and Rubrics} - -\item {} \href{\#target-footnotes}{2.14.5~~~Target Footnotes} - -\item {} \href{\#replacement-text}{2.14.6~~~Replacement Text} - -\item {} \href{\#compound-paragraph}{2.14.7~~~Compound Paragraph} - -\item {} \href{\#parsed-literal-blocks}{2.14.8~~~Parsed Literal Blocks} - -\end{list} - -\item {} \href{\#substitution-definitions}{2.15~~~Substitution Definitions} - -\item {} \href{\#comments}{2.16~~~Comments} - -\item {} \href{\#raw-text}{2.17~~~Raw text} - -\item {} \href{\#container}{2.18~~~Container} - -\item {} \href{\#colspanning-tables}{2.19~~~Colspanning tables} - -\item {} \href{\#rowspanning-tables}{2.20~~~Rowspanning tables} - -\end{list} - -\item {} \href{\#tests-for-the-latex-writer}{3~~~Tests for the LaTeX writer} -\begin{list}{}{} -\item {} \href{\#monospaced-non-alphanumeric-characters}{3.1~~~Monospaced non-alphanumeric characters} - -\item {} \href{\#various-non-ascii-characters}{3.2~~~Various non-ASCII characters} - -\end{list} - -\item {} \href{\#error-handling}{4~~~Error Handling} - -\end{list} - - - -%___________________________________________________________________________ - -\hypertarget{structural-elements}{} -\pdfbookmark[0]{1~~~Structural Elements}{structural-elements} -\section*{1~~~Structural Elements} - - -%___________________________________________________________________________ - -\hypertarget{section-title}{} -\pdfbookmark[1]{1.1~~~Section Title}{section-title} -\subsection*{1.1~~~Section Title} -\textbf{Section Subtitle}\vspace{0.2cm} - -\noindent -That's it, the text just above this line. - - -%___________________________________________________________________________ - -\hypertarget{empty-section}{} -\pdfbookmark[1]{1.2~~~Empty Section}{empty-section} -\subsection*{1.2~~~Empty Section} - - -%___________________________________________________________________________ - -\hypertarget{transitions}{} -\pdfbookmark[1]{1.3~~~Transitions}{transitions} -\subsection*{1.3~~~Transitions} - -Here's a transition: - - -%___________________________________________________________________________ -\hspace*{\fill}\hrulefill\hspace*{\fill} - - -It divides the section. Transitions may also occur between sections: - - -%___________________________________________________________________________ -\hspace*{\fill}\hrulefill\hspace*{\fill} - - - -%___________________________________________________________________________ - -\hypertarget{body-elements}{} -\pdfbookmark[0]{2~~~Body Elements}{body-elements} -\section*{2~~~Body Elements} - - -%___________________________________________________________________________ - -\hypertarget{paragraphs}{} -\pdfbookmark[1]{2.1~~~Paragraphs}{paragraphs} -\subsection*{2.1~~~Paragraphs} - -A paragraph. - - -%___________________________________________________________________________ - -\hypertarget{inline-markup}{} -\pdfbookmark[2]{2.1.1~~~Inline Markup}{inline-markup} -\subsubsection*{2.1.1~~~Inline Markup} - -Paragraphs contain text and may contain inline markup: \emph{emphasis}, -\textbf{strong emphasis}, \texttt{inline literals}, standalone hyperlinks -(\href{http://www.python.org}{http://www.python.org}), external hyperlinks (\href{http://www.python.org/}{Python}\raisebox{.5em}[0em]{\scriptsize\hyperlink{id25}{5}}), internal -cross-references (\href{\#example}{example}), external hyperlinks with embedded URIs -(\href{http://www.python.org}{Python web site}), \href{http://www.python.org/}{anonymous hyperlink -references}\raisebox{.5em}[0em]{\scriptsize\hyperlink{id25}{5}} (\href{http://docutils.sourceforge.net/}{a second reference}\raisebox{.5em}[0em]{\scriptsize\hyperlink{id30}{6}}), footnote references (manually -numbered\raisebox{.5em}[0em]{\scriptsize\hyperlink{id8}{1}}, anonymous auto-numbered\raisebox{.5em}[0em]{\scriptsize\hyperlink{id11}{3}}, labeled auto-numbered\raisebox{.5em}[0em]{\scriptsize\hyperlink{label}{2}}, or symbolic\raisebox{.5em}[0em]{\scriptsize\hyperlink{id12}{*}}), citation references ([\hyperlink{cit2002}{CIT2002}]), -substitution references (\includegraphics{../../../docs/user/rst/images/biohazard.png}), and \hypertarget{inline-hyperlink-targets}{inline hyperlink targets} -(see \href{\#id22}{Targets} below for a reference back to here). Character-level -inline markup is also possible (although exceedingly ugly!) in \emph{re}\texttt{Structured}\emph{Text}. Problems are indicated by {\color{red}\bfseries{}{\textbar}problematic{\textbar}} text -(generated by processing errors; this one is intentional). Here is a -reference to the \href{\#doctitle}{doctitle} and the \href{\#subtitle}{subtitle}. - -The default role for interpreted text is \titlereference{Title Reference}. Here are -some explicit interpreted text roles: a PEP reference (\href{http://www.python.org/peps/pep-0287.html}{PEP 287}); an -RFC reference (\href{http://www.faqs.org/rfcs/rfc2822.html}{RFC 2822}); a $_{subscript}$; a $^{superscript}$; -and explicit roles for \emph{standard} \textbf{inline} -\texttt{markup}. -% DO NOT RE-WRAP THE FOLLOWING PARAGRAPH! - -Let's test wrapping and whitespace significance in inline literals: -\texttt{This is an example of -{}-inline-literal -{}-text, -{}-including some-{}- -strangely-{}-hyphenated-words. Adjust-the-width-of-your-browser-window -to see how the text is wrapped. -{}- -{}-{}-{}- -{}-{}-{}-{}-{}-{}-{}- Now note the -spacing between the words of this sentence (words -should be grouped in pairs).} - -If the \texttt{-{}-pep-references} option was supplied, there should be a -live link to PEP 258 here. - - -%___________________________________________________________________________ - -\hypertarget{bullet-lists}{} -\pdfbookmark[1]{2.2~~~Bullet Lists}{bullet-lists} -\subsection*{2.2~~~Bullet Lists} -\begin{itemize} -\item {} -A bullet list -\begin{itemize} -\item {} -Nested bullet list. - -\item {} -Nested item 2. - -\end{itemize} - -\item {} -Item 2. - -Paragraph 2 of item 2. -\begin{itemize} -\item {} -Nested bullet list. - -\item {} -Nested item 2. -\begin{itemize} -\item {} -Third level. - -\item {} -Item 2. - -\end{itemize} - -\item {} -Nested item 3. - -\item {} -This nested list should be compacted by the HTML writer. -\hypertarget{target}{}% Even if this item contains a target and a comment. - -\end{itemize} - -\end{itemize} - - -%___________________________________________________________________________ - -\hypertarget{enumerated-lists}{} -\pdfbookmark[1]{2.3~~~Enumerated Lists}{enumerated-lists} -\subsection*{2.3~~~Enumerated Lists} -\newcounter{listcnt0} -\begin{list}{\arabic{listcnt0}.} -{ -\usecounter{listcnt0} -\setlength{\rightmargin}{\leftmargin} -} -\item {} -Arabic numerals. -\newcounter{listcnt1} -\begin{list}{\alph{listcnt1})} -{ -\usecounter{listcnt1} -\setlength{\rightmargin}{\leftmargin} -} -\item {} -lower alpha) -\newcounter{listcnt2} -\begin{list}{(\roman{listcnt2})} -{ -\usecounter{listcnt2} -\setlength{\rightmargin}{\leftmargin} -} -\item {} -(lower roman) -\newcounter{listcnt3} -\begin{list}{\Alph{listcnt3}.} -{ -\usecounter{listcnt3} -\setlength{\rightmargin}{\leftmargin} -} -\item {} -upper alpha. -\newcounter{listcnt4} -\begin{list}{\Roman{listcnt4})} -{ -\usecounter{listcnt4} -\setlength{\rightmargin}{\leftmargin} -} -\item {} -upper roman) - -\end{list} - -\end{list} - -\end{list} - -\end{list} - -\item {} -Lists that don't start at 1: -\setcounter{listcnt1}{0} -\begin{list}{\arabic{listcnt1}.} -{ -\usecounter{listcnt1} -\addtocounter{listcnt1}{2} -\setlength{\rightmargin}{\leftmargin} -} -\item {} -Three - -\item {} -Four - -\end{list} -\setcounter{listcnt1}{0} -\begin{list}{\Alph{listcnt1}.} -{ -\usecounter{listcnt1} -\addtocounter{listcnt1}{2} -\setlength{\rightmargin}{\leftmargin} -} -\item {} -C - -\item {} -D - -\end{list} -\setcounter{listcnt1}{0} -\begin{list}{\roman{listcnt1}.} -{ -\usecounter{listcnt1} -\addtocounter{listcnt1}{2} -\setlength{\rightmargin}{\leftmargin} -} -\item {} -iii - -\item {} -iv - -\end{list} - -\end{list} - - -%___________________________________________________________________________ - -\hypertarget{definition-lists}{} -\pdfbookmark[1]{2.4~~~Definition Lists}{definition-lists} -\subsection*{2.4~~~Definition Lists} -\begin{description} -%[visit_definition_list_item] -\item[{Term}] %[visit_definition] - -Definition - -%[depart_definition] -%[depart_definition_list_item] -%[visit_definition_list_item] -\item[{Term}] (\textbf{classifier}) -%[visit_definition] - -Definition paragraph 1. - -Definition paragraph 2. - -%[depart_definition] -%[depart_definition_list_item] -%[visit_definition_list_item] -\item[{Term}] %[visit_definition] - -Definition - -%[depart_definition] -%[depart_definition_list_item] -%[visit_definition_list_item] -\item[{Term}] (\textbf{classifier one}) -(\textbf{classifier two}) -%[visit_definition] - -Definition - -%[depart_definition] -%[depart_definition_list_item] -\end{description} - - -%___________________________________________________________________________ - -\hypertarget{field-lists}{} -\pdfbookmark[1]{2.5~~~Field Lists}{field-lists} -\subsection*{2.5~~~Field Lists} -\begin{quote} -\begin{description} -\item [what:] -Field lists map field names to field bodies, like database -records. They are often part of an extension syntax. They are -an unambiguous variant of RFC 2822 fields. - - -\item [how arg1 arg2:] -The field marker is a colon, the field name, and a colon. - -The field body may contain one or more body elements, indented -relative to the field marker. - - -\item [credits:] -This paragraph has the \titlereference{credits} class set. (This is actually not -about credits but just for ensuring that the class attribute -doesn't get stripped away.) - - -\end{description} -\end{quote} - - -%___________________________________________________________________________ - -\hypertarget{option-lists}{} -\pdfbookmark[1]{2.6~~~Option Lists}{option-lists} -\subsection*{2.6~~~Option Lists} - -For listing command-line options: -% [option list] -\begin{optionlist}{3cm} -\item [-a] -command-line option ``a'' -\item [-b file] -options can have arguments -and long descriptions -\item [-{}-long] -options can be long also -\item [-{}-input=file] -long options can also have -arguments -\item [-{}-very-long-option] -The description can also start on the next line. - -The description may contain multiple body elements, -regardless of where it starts. -\item [-x, -y, -z] -Multiple options are an ``option group''. -\item [-v, -{}-verbose] -Commonly-seen: short {\&} long options. -\item [-1 file, -{}-one=file, -{}-two file] -Multiple options with arguments. -\item [/V] -DOS/VMS-style options too -\end{optionlist} - -There must be at least two spaces between the option and the -description. - - -%___________________________________________________________________________ - -\hypertarget{literal-blocks}{} -\pdfbookmark[1]{2.7~~~Literal Blocks}{literal-blocks} -\subsection*{2.7~~~Literal Blocks} - -Literal blocks are indicated with a double-colon (``::'') at the end of -the preceding paragraph (over there \texttt{-{}->}). They can be indented: -\begin{quote}{\ttfamily \raggedright \noindent -if~literal{\_}block:~\\ -~~~~text~=~'is~left~as-is'~\\ -~~~~spaces{\_}and{\_}linebreaks~=~'are~preserved'~\\ -~~~~markup{\_}processing~=~None -}\end{quote} - -Or they can be quoted without indentation: -\begin{quote}{\ttfamily \raggedright \noindent ->{}>~Great~idea!~\\ ->~\\ ->~Why~didn't~I~think~of~that? -}\end{quote} - - -%___________________________________________________________________________ - -\hypertarget{line-blocks}{} -\pdfbookmark[1]{2.8~~~Line Blocks}{line-blocks} -\subsection*{2.8~~~Line Blocks} - -This section tests line blocks. Line blocks are body elements which -consist of lines and other line blocks. Nested line blocks cause -indentation. - -\begin{lineblock}{0em} -\item[] This is a line block. It ends with a blank line. -\item[] -\begin{lineblock}{\lineblockindentation} -\item[] New lines begin with a vertical bar (``{\textbar}''). -\item[] Line breaks and initial indent are significant, and preserved. -\item[] -\begin{lineblock}{\lineblockindentation} -\item[] Continuation lines are also possible. A long line that is intended -to wrap should begin with a space in place of the vertical bar. -\end{lineblock} -\item[] The left edge of a continuation line need not be aligned with -the left edge of the text above it. -\end{lineblock} -\end{lineblock} - -\begin{lineblock}{0em} -\item[] This is a second line block. -\item[] -\item[] Blank lines are permitted internally, but they must begin with a ``{\textbar}''. -\end{lineblock} - -Another line block, surrounded by paragraphs: - -\begin{lineblock}{0em} -\item[] And it's no good waiting by the window -\item[] It's no good waiting for the sun -\item[] Please believe me, the things you dream of -\item[] They don't fall in the lap of no-one -\end{lineblock} - -Take it away, Eric the Orchestra Leader! -\begin{quote} - -\begin{lineblock}{0em} -\item[] A one, two, a one two three four -\item[] -\item[] Half a bee, philosophically, -\item[] -\begin{lineblock}{\lineblockindentation} -\item[] must, \emph{ipso facto}, half not be. -\end{lineblock} -\item[] But half the bee has got to be, -\item[] -\begin{lineblock}{\lineblockindentation} -\item[] \emph{vis a vis} its entity. D'you see? -\item[] -\end{lineblock} -\item[] But can a bee be said to be -\item[] -\begin{lineblock}{\lineblockindentation} -\item[] or not to be an entire bee, -\item[] -\begin{lineblock}{\lineblockindentation} -\item[] when half the bee is not a bee, -\item[] -\begin{lineblock}{\lineblockindentation} -\item[] due to some ancient injury? -\item[] -\end{lineblock} -\end{lineblock} -\end{lineblock} -\item[] Singing... -\end{lineblock} -\end{quote} - - -%___________________________________________________________________________ - -\hypertarget{block-quotes}{} -\pdfbookmark[1]{2.9~~~Block Quotes}{block-quotes} -\subsection*{2.9~~~Block Quotes} - -Block quotes consist of indented body elements: -\begin{quote} - -My theory by A. Elk. Brackets Miss, brackets. This theory goes -as follows and begins now. All brontosauruses are thin at one -end, much much thicker in the middle and then thin again at the -far end. That is my theory, it is mine, and belongs to me and I -own it, and what it is too. - -\begin{flushright} ----Anne Elk (Miss) -\end{flushright} -\end{quote} - - -%___________________________________________________________________________ - -\hypertarget{doctest-blocks}{} -\pdfbookmark[1]{2.10~~~Doctest Blocks}{doctest-blocks} -\subsection*{2.10~~~Doctest Blocks} -\begin{verbatim}>>> print 'Python-specific usage examples; begun with ">>>"' -Python-specific usage examples; begun with ">>>" ->>> print '(cut and pasted from interactive Python sessions)' -(cut and pasted from interactive Python sessions)\end{verbatim} - - -%___________________________________________________________________________ - -\hypertarget{footnotes}{} -\pdfbookmark[1]{2.11~~~Footnotes}{footnotes} -\subsection*{2.11~~~Footnotes} -\begin{figure}[b]\hypertarget{id8}$^{1}$ -A footnote contains body elements, consistently indented by at -least 3 spaces. - -This is the footnote's second paragraph. -\end{figure} -\begin{figure}[b]\hypertarget{label}$^{2}$ -Footnotes may be numbered, either manually (as in\raisebox{.5em}[0em]{\scriptsize\hyperlink{id8}{1}}) or -automatically using a ``{\#}''-prefixed label. This footnote has a -label so it can be referred to from multiple places, both as a -footnote reference (\raisebox{.5em}[0em]{\scriptsize\hyperlink{label}{2}}) and as a hyperlink reference -(\href{\#label}{label}). -\end{figure} -\begin{figure}[b]\hypertarget{id11}$^{3}$ -This footnote is numbered automatically and anonymously using a -label of ``{\#}'' only. - -This is the second paragraph. - -And this is the third paragraph. -\end{figure} -\begin{figure}[b]\hypertarget{id12}$^{*}$ -Footnotes may also use symbols, specified with a ``*'' label. -Here's a reference to the next footnote:\raisebox{.5em}[0em]{\scriptsize\hyperlink{id14}{{\dag}}}. -\end{figure} -\begin{figure}[b]\hypertarget{id14}$^{{\dag}}$ -This footnote shows the next symbol in the sequence. -\end{figure} -\begin{figure}[b]\hypertarget{id15}$^{4}$ -Here's an unreferenced footnote, with a reference to a -nonexistent footnote:{\color{red}\bfseries{}{[}5{]}{\_}}. -\end{figure} - - -%___________________________________________________________________________ - -\hypertarget{citations}{} -\pdfbookmark[1]{2.12~~~Citations}{citations} -\subsection*{2.12~~~Citations} -\begin{figure}[b]\hypertarget{cit2002}[CIT2002] -Citations are text-labeled footnotes. They may be -rendered separately and differently from footnotes. -\end{figure} - -Here's a reference to the above, [\hyperlink{cit2002}{CIT2002}], and a {\color{red}\bfseries{}{[}nonexistent{]}{\_}} -citation. - - -%___________________________________________________________________________ - -\hypertarget{targets}{} -\hypertarget{another-target}{} -\pdfbookmark[1]{2.13~~~Targets}{targets} -\pdfbookmark[1]{2.13~~~Targets}{another-target} -\subsection*{2.13~~~Targets} - -This paragraph is pointed to by the explicit ``example'' target. A -reference can be found under \href{\#inline-markup}{Inline Markup}, above. \href{\#inline-hyperlink-targets}{Inline -hyperlink targets} are also possible. - -Section headers are implicit targets, referred to by name. See -\href{\#id22}{Targets}, which is a subsection of \href{\#body-elements}{Body Elements}. - -Explicit external targets are interpolated into references such as -``\href{http://www.python.org/}{Python}\raisebox{.5em}[0em]{\scriptsize\hyperlink{id25}{5}}''. - -Targets may be indirect and anonymous. Thus \href{\#id22}{this phrase} may also -refer to the \href{\#id22}{Targets} section. - -Here's a {\color{red}\bfseries{}`hyperlink reference without a target`{\_}}, which generates an -error. - - -%___________________________________________________________________________ - -\hypertarget{duplicate-target-names}{} -\pdfbookmark[2]{2.13.1~~~Duplicate Target Names}{duplicate-target-names} -\subsubsection*{2.13.1~~~Duplicate Target Names} - -Duplicate names in section headers or other implicit targets will -generate ``info'' (level-1) system messages. Duplicate names in -explicit targets will generate ``warning'' (level-2) system messages. - - -%___________________________________________________________________________ - -\hypertarget{id20}{} -\pdfbookmark[2]{2.13.2~~~Duplicate Target Names}{id20} -\subsubsection*{2.13.2~~~Duplicate Target Names} - -Since there are two ``Duplicate Target Names'' section headers, we -cannot uniquely refer to either of them by name. If we try to (like -this: {\color{red}\bfseries{}`Duplicate Target Names`{\_}}), an error is generated. - - -%___________________________________________________________________________ - -\hypertarget{directives}{} -\pdfbookmark[1]{2.14~~~Directives}{directives} -\subsection*{2.14~~~Directives} -\begin{list}{}{} -\item {} \href{\#document-parts}{2.14.1~~~Document Parts} - -\item {} \href{\#images}{2.14.2~~~Images} - -\item {} \href{\#admonitions}{2.14.3~~~Admonitions} - -\item {} \href{\#topics-sidebars-and-rubrics}{2.14.4~~~Topics, Sidebars, and Rubrics} - -\item {} \href{\#target-footnotes}{2.14.5~~~Target Footnotes} - -\item {} \href{\#replacement-text}{2.14.6~~~Replacement Text} - -\item {} \href{\#compound-paragraph}{2.14.7~~~Compound Paragraph} - -\item {} \href{\#parsed-literal-blocks}{2.14.8~~~Parsed Literal Blocks} - -\end{list} - - -These are just a sample of the many reStructuredText Directives. For -others, please see -\href{http://docutils.sourceforge.net/docs/ref/rst/directives.html}{http://docutils.sourceforge.net/docs/ref/rst/directives.html}. - - -%___________________________________________________________________________ - -\hypertarget{document-parts}{} -\pdfbookmark[2]{2.14.1~~~Document Parts}{document-parts} -\subsubsection*{2.14.1~~~Document Parts} - -An example of the ``contents'' directive can be seen above this section -(a local, untitled table of \href{\#contents}{contents}) and at the beginning of the -document (a document-wide \href{\#table-of-contents}{table of contents}). - - -%___________________________________________________________________________ - -\hypertarget{images}{} -\pdfbookmark[2]{2.14.2~~~Images}{images} -\subsubsection*{2.14.2~~~Images} - -An image directive (also clickable -{}- a hyperlink reference): -\href{\#directives}{\includegraphics{../../../docs/user/rst/images/title.png}} -Image with multiple IDs: - -\includegraphics{../../../docs/user/rst/images/title.png} - -A centered image: - -{\hfill\includegraphics{../../../docs/user/rst/images/biohazard.png}\hfill} - -A left-aligned image: - -{\includegraphics{../../../docs/user/rst/images/biohazard.png}\hfill} - -A right-aligned image: - -{\hfill\includegraphics{../../../docs/user/rst/images/biohazard.png}} - -A figure directive: -\begin{figure}[htbp]\begin{flushright} - -\includegraphics[width=50]{../../../docs/user/rst/images/biohazard.png} -\caption{A figure is an image with a caption and/or a legend:}{\small -\begin{longtable}[c]{|p{0.16\locallinewidth}|p{0.56\locallinewidth}|} -\hline - -re - & -Revised, revisited, based on 're' module. - \\ -\hline - -Structured - & -Structure-enhanced text, structuredtext. - \\ -\hline - -Text - & -Well it is, isn't it? - \\ -\hline -\end{longtable} - -This paragraph is also part of the legend. -}\end{flushright}\end{figure} -\begin{figure}[htbp]\begin{flushleft} - -\includegraphics[width=50]{../../../docs/user/rst/images/biohazard.png} -\caption{A left-aligned figure.}{\small -This is the legend. -}\end{flushleft}\end{figure} - -This paragraph might flow around the figure... - -A centered figure: -\begin{figure}[htbp]\begin{center} - -\includegraphics[width=50]{../../../docs/user/rst/images/biohazard.png} -\caption{This is the caption.}{\small -This is the legend. - -The legend may consist of several paragraphs. -}\end{center}\end{figure} - -This paragraph might flow around the figure... - -A left-aligned figure: -\begin{figure}[htbp]\begin{flushleft} - -\includegraphics[width=50]{../../../docs/user/rst/images/biohazard.png} -\caption{This is the caption.}{\small -This is the legend. - -The legend may consist of several paragraphs. -}\end{flushleft}\end{figure} - -This paragraph might flow around the figure... - -Now widths: - -An image 2 em wide: - -\includegraphics[width=2em]{../../../docs/user/rst/images/biohazard.png} - -An image 2 em wide and 30 pixel high: - -\includegraphics[width=2em]{../../../docs/user/rst/images/biohazard.png} - -An image occupying 70{\%} of the line width: - -\includegraphics[width=70%]{../../../docs/user/rst/images/biohazard.png} - -An image 3 cm high: - -\includegraphics{../../../docs/user/rst/images/biohazard.png} - - -%___________________________________________________________________________ - -\hypertarget{admonitions}{} -\pdfbookmark[2]{2.14.3~~~Admonitions}{admonitions} -\subsubsection*{2.14.3~~~Admonitions} -\begin{center}\begin{sffamily} -\fbox{\parbox{\admonitionwidth}{ -\textbf{\large Attention!} -\vspace{2mm} - -Directives at large. -}} -\end{sffamily} -\end{center} -\begin{center}\begin{sffamily} -\fbox{\parbox{\admonitionwidth}{ -\textbf{\large Caution!} -\vspace{2mm} - -Don't take any wooden nickels. -}} -\end{sffamily} -\end{center} -\begin{center}\begin{sffamily} -\fbox{\parbox{\admonitionwidth}{ -\textbf{\large !DANGER!} -\vspace{2mm} - -Mad scientist at work! -}} -\end{sffamily} -\end{center} -\begin{center}\begin{sffamily} -\fbox{\parbox{\admonitionwidth}{ -\textbf{\large Error} -\vspace{2mm} - -Does not compute. -}} -\end{sffamily} -\end{center} -\begin{center}\begin{sffamily} -\fbox{\parbox{\admonitionwidth}{ -\textbf{\large Hint} -\vspace{2mm} - -It's bigger than a bread box. -}} -\end{sffamily} -\end{center} -\begin{center}\begin{sffamily} -\fbox{\parbox{\admonitionwidth}{ -\textbf{\large Important} -\vspace{2mm} -\begin{itemize} -\item {} -Wash behind your ears. - -\item {} -Clean up your room. - -\item {} -Call your mother. - -\item {} -Back up your data. - -\end{itemize} -}} -\end{sffamily} -\end{center} -\begin{center}\begin{sffamily} -\fbox{\parbox{\admonitionwidth}{ -\textbf{\large Note} -\vspace{2mm} - -This is a note. -}} -\end{sffamily} -\end{center} -\begin{center}\begin{sffamily} -\fbox{\parbox{\admonitionwidth}{ -\textbf{\large Tip} -\vspace{2mm} - -15{\%} if the service is good. -}} -\end{sffamily} -\end{center} -\begin{center}\begin{sffamily} -\fbox{\parbox{\admonitionwidth}{ -\textbf{\large Warning} -\vspace{2mm} - -Strong prose may provoke extreme mental exertion. -Reader discretion is strongly advised. -}} -\end{sffamily} -\end{center} -\begin{center}\begin{sffamily} -\fbox{\parbox{\admonitionwidth}{ -\vspace{2mm} -\textbf{\large And, by the way...} -\smallskip - -You can make up your own admonition too. -}} -\end{sffamily} -\end{center} - - -%___________________________________________________________________________ - -\hypertarget{topics-sidebars-and-rubrics}{} -\pdfbookmark[2]{2.14.4~~~Topics, Sidebars, and Rubrics}{topics-sidebars-and-rubrics} -\subsubsection*{2.14.4~~~Topics, Sidebars, and Rubrics} - -\setlength{\locallinewidth}{0.9\admonitionwidth} -\begin{center}\begin{sffamily} -\fbox{\colorbox[gray]{0.80}{\parbox{\admonitionwidth}{ -\textbf{\large Sidebar Title} -\smallskip -~\\ -\textbf{Optional Subtitle} -\smallskip - -This is a sidebar. It is for text outside the flow of the main -text. -\rubric{This is a rubric inside a sidebar} - -Sidebars often appears beside the main text with a border and -background color. -}}} -\end{sffamily} -\end{center} - -\setlength{\locallinewidth}{\linewidth} -\subsubsection*{~\hfill Topic Title\hfill ~} - -This is a topic. - -\rubric{This is a rubric} - - -%___________________________________________________________________________ - -\hypertarget{target-footnotes}{} -\pdfbookmark[2]{2.14.5~~~Target Footnotes}{target-footnotes} -\subsubsection*{2.14.5~~~Target Footnotes} -\begin{figure}[b]\hypertarget{id25}$^{5}$ -\href{http://www.python.org/}{http://www.python.org/} -\end{figure} -\begin{figure}[b]\hypertarget{id30}$^{6}$ -\href{http://docutils.sourceforge.net/}{http://docutils.sourceforge.net/} -\end{figure} - - -%___________________________________________________________________________ - -\hypertarget{replacement-text}{} -\pdfbookmark[2]{2.14.6~~~Replacement Text}{replacement-text} -\subsubsection*{2.14.6~~~Replacement Text} - -I recommend you try \href{http://www.python.org/}{Python, \emph{the} best language around}\raisebox{.5em}[0em]{\scriptsize\hyperlink{id25}{5}}. - - -%___________________________________________________________________________ - -\hypertarget{compound-paragraph}{} -\pdfbookmark[2]{2.14.7~~~Compound Paragraph}{compound-paragraph} -\subsubsection*{2.14.7~~~Compound Paragraph} - -Compound 1, paragraph 1. - -Compound 1, paragraph 2. -\begin{itemize} -\item {} -Compound 1, list item one. - -\item {} -Compound 1, list item two. - -\end{itemize} - -Another compound statement: - -Compound 2, a literal block: -\begin{quote}{\ttfamily \raggedright \noindent -Compound~2,~literal. -}\end{quote} -Compound 2, this is a test. - -Compound 3, only consisting of one paragraph. -\begin{quote}{\ttfamily \raggedright \noindent -Compound~4.~\\ -This~one~starts~with~a~literal~block. -}\end{quote} -Compound 4, a paragraph. - -Now something \emph{really} perverted -{}- a nested compound block. This is -just to test that it works at all; the results don't have to be -meaningful. - -Compound 5, block 1 (a paragraph). - -Compound 6, block 2 in compound 5. - -Compound 6, another paragraph. - -Compound 5, block 3 (a paragraph). - -Compound 7, with a table inside: - -\begin{longtable}[c]{|p{0.25\locallinewidth}|p{0.25\locallinewidth}|p{0.25\locallinewidth}|} -\hline - -Left cell, first -paragraph. - -Left cell, second -paragraph. - & -Middle cell, -consisting of -exactly one -paragraph. - & -Right cell. - -Paragraph 2. - -Paragraph 3. - \\ -\hline -\end{longtable} -Compound 7, a paragraph after the table. - -Compound 7, another paragraph. - - -%___________________________________________________________________________ - -\hypertarget{parsed-literal-blocks}{} -\pdfbookmark[2]{2.14.8~~~Parsed Literal Blocks}{parsed-literal-blocks} -\subsubsection*{2.14.8~~~Parsed Literal Blocks} -\begin{quote}{\ttfamily \raggedright \noindent -This~is~a~parsed~literal~block.~\\ -~~~~This~line~is~indented.~~The~next~line~is~blank.~\\ -~\\ -Inline~markup~is~supported,~e.g.~\emph{emphasis},~\textbf{strong},~\texttt{literal~\\ -text},~footnotes\raisebox{.5em}[0em]{\scriptsize\hyperlink{id8}{1}},~\hypertarget{id22}{targets},~and~\href{http://www.python.org/}{references}. -}\end{quote} - - -%___________________________________________________________________________ - -\hypertarget{substitution-definitions}{} -\pdfbookmark[1]{2.15~~~Substitution Definitions}{substitution-definitions} -\subsection*{2.15~~~Substitution Definitions} - -An inline image (\includegraphics{../../../docs/user/rst/images/biohazard.png}) example: - -(Substitution definitions are not visible in the HTML source.) - - -%___________________________________________________________________________ - -\hypertarget{comments}{} -\pdfbookmark[1]{2.16~~~Comments}{comments} -\subsection*{2.16~~~Comments} - -Here's one: -% Comments begin with two dots and a space. Anything may -% follow, except for the syntax of footnotes, hyperlink -% targets, directives, or substitution definitions. -% -% Double-dashes -- "--" -- must be escaped somehow in HTML output. - -(View the HTML source to see the comment.) - - -%___________________________________________________________________________ - -\hypertarget{raw-text}{} -\pdfbookmark[1]{2.17~~~Raw text}{raw-text} -\subsection*{2.17~~~Raw text} - -This does not necessarily look nice, because there may be missing white space. - -It's just there to freeze the behavior. -A test.Second test.Another test with myclass set. -This is the fourth test with myrawroleclass set. -Fifth test in LaTeX.\\Line two. - -%___________________________________________________________________________ - -\hypertarget{container}{} -\pdfbookmark[1]{2.18~~~Container}{container} -\subsection*{2.18~~~Container} - -paragraph 1 - -paragraph 2 - - -%___________________________________________________________________________ - -\hypertarget{colspanning-tables}{} -\pdfbookmark[1]{2.19~~~Colspanning tables}{colspanning-tables} -\subsection*{2.19~~~Colspanning tables} - -This table has a cell spanning two columns: - -\begin{longtable}[c]{|p{0.07\locallinewidth}|p{0.07\locallinewidth}|p{0.09\locallinewidth}|} -\hline -\multicolumn{2}{|l|}{\textbf{ -Inputs -}} & \textbf{ -Output -} \\ -\hline -\textbf{ -A -} & \textbf{ -B -} & \textbf{ -A or B -} \\ -\hline -\endhead - -False - & -False - & -False - \\ -\hline - -True - & -False - & -True - \\ -\hline - -False - & -True - & -True - \\ -\hline - -True - & -True - & -True - \\ -\hline -\end{longtable} - - -%___________________________________________________________________________ - -\hypertarget{rowspanning-tables}{} -\pdfbookmark[1]{2.20~~~Rowspanning tables}{rowspanning-tables} -\subsection*{2.20~~~Rowspanning tables} - -Here's a table with cells spanning several rows: - -\begin{longtable}[c]{|p{0.30\locallinewidth}|p{0.16\locallinewidth}|p{0.23\locallinewidth}|} -\hline -\textbf{ -Header row, column 1 -(header rows optional) -} & \textbf{ -Header 2 -} & \textbf{ -Header 3 -} \\ -\hline -\endhead - -body row 1, column 1 - & -column 2 - & -column 3 - \\ -\hline - -body row 2 - & \multirow{2}{0.16\locallinewidth}{ -Cells may -span rows. -} & \multirow{2}{0.23\locallinewidth}{ -Another -rowspanning -cell. -} \\ -\cline{1-1} - -body row 3 - & \\ -\hline -\end{longtable} - - -%___________________________________________________________________________ - -\hypertarget{tests-for-the-latex-writer}{} -\pdfbookmark[0]{3~~~Tests for the LaTeX writer}{tests-for-the-latex-writer} -\section*{3~~~Tests for the LaTeX writer} - - -%___________________________________________________________________________ - -\hypertarget{monospaced-non-alphanumeric-characters}{} -\pdfbookmark[1]{3.1~~~Monospaced non-alphanumeric characters}{monospaced-non-alphanumeric-characters} -\subsection*{3.1~~~Monospaced non-alphanumeric characters} - -These are all ASCII characters except a-zA-Z0-9 and space: - -\texttt{!!!"{}"{}"{\#}{\#}{\#}{\$}{\$}{\$}{\%}{\%}{\%}{\&}{\&}{\&}'{}'{}'((()))***+++,{},{},-{}-{}-...///:::} - -\texttt{;;;<{}<{}<===>{}>{}>???@@@{[}{[}{[}{\textbackslash}{\textbackslash}{\textbackslash}{]}{]}{]}{\textasciicircum}{\textasciicircum}{\textasciicircum}{\_}{\_}{\_}`{}`{}`{\{}{\{}{\{}|||{\}}{\}}{\}}{\textasciitilde}{\textasciitilde}{\textasciitilde}} - -\texttt{xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx} - -The two lines of non-alphanumeric characters should both have the same -width as the third line. - - -%___________________________________________________________________________ - -\hypertarget{various-non-ascii-characters}{} -\pdfbookmark[1]{3.2~~~Various non-ASCII characters}{various-non-ascii-characters} -\subsection*{3.2~~~Various non-ASCII characters} - -\begin{longtable}[c]{|p{0.03\locallinewidth}|p{0.42\locallinewidth}|} -\hline - -© - & -copyright sign - \\ -\hline - -® - & -registered sign - \\ -\hline - -« - & -left pointing guillemet - \\ -\hline - -» - & -right pointing guillemet - \\ -\hline - -{--} - & -en-dash - \\ -\hline - -{---} - & -em-dash - \\ -\hline - -` - & -single turned comma quotation mark - \\ -\hline - -' - & -single comma quotation mark - \\ -\hline - -, - & -low single comma quotation mark - \\ -\hline - -`` - & -double turned comma quotation mark - \\ -\hline - -'' - & -double comma quotation mark - \\ -\hline - -,, - & -low double comma quotation mark - \\ -\hline - -{\dag} - & -dagger - \\ -\hline - -{\ddag} - & -double dagger - \\ -\hline - -{\dots} - & -ellipsis - \\ -\hline - -{\texttrademark} - & -trade mark sign - \\ -\hline - -{$\Leftrightarrow$} - & -left-right double arrow - \\ -\hline -\end{longtable} - -The following line should not be wrapped, because it uses -non-breakable spaces: - -X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X - - -%___________________________________________________________________________ - -\hypertarget{error-handling}{} -\pdfbookmark[0]{4~~~Error Handling}{error-handling} -\section*{4~~~Error Handling} - -Any errors caught during processing will generate system messages. - -There should be five messages in the following, auto-generated -section, ``Docutils System Messages'': -% section should be added by Docutils automatically - - -%___________________________________________________________________________ - -\section*{Docutils System Messages} - -Undefined substitution referenced: ``problematic''. - - -Unknown target name: ``5''. - - -Unknown target name: ``nonexistent''. - - -Unknown target name: ``hyperlink reference without a target''. - - -Duplicate target name, cannot be used as a unique reference: ``duplicate target names''. - - -\end{document} diff --git a/test/functional/expected/standalone_rst_pseudoxml.txt b/test/functional/expected/standalone_rst_pseudoxml.txt deleted file mode 100644 index 193f8c37c..000000000 --- a/test/functional/expected/standalone_rst_pseudoxml.txt +++ /dev/null @@ -1,1841 +0,0 @@ - - - reStructuredText Test Document - <subtitle ids="examples-of-syntax-constructs subtitle" names="examples\ of\ syntax\ constructs subtitle"> - Examples of Syntax Constructs - <decoration> - <header> - <paragraph> - Document header - <footer> - <paragraph> - Document footer - <docinfo> - <author> - David Goodger - <address xml:space="preserve"> - 123 Example Street - Example, EX Canada - A1B 2C3 - <contact> - <reference refuri="mailto:goodger@users.sourceforge.net"> - goodger@users.sourceforge.net - <authors> - <author> - Me - <author> - Myself - <author> - I - <organization> - humankind - <date> - Now, or yesterday. Or maybe even - <emphasis> - before - yesterday. - <status> - This is a "work in progress" - <revision> - is managed by a version control system. - <version> - 1 - <copyright> - This document has been placed in the public domain. You - may do with it as you wish. You may copy, modify, - redistribute, reattribute, sell, buy, rent, lease, - destroy, or improve it, quote it at length, excerpt, - incorporate, collate, fold, staple, or mutilate it, or do - anything else to it that your or anyone else's heart - desires. - <field> - <field_name> - field name - <field_body> - <paragraph> - This is a "generic bibliographic field". - <field> - <field_name> - field name "2" - <field_body> - <paragraph> - Generic bibliographic fields may contain multiple body elements. - <paragraph> - Like this. - <topic classes="dedication"> - <title> - Dedication - <paragraph> - For Docutils users & co-developers. - <topic classes="abstract"> - <title> - Abstract - <paragraph> - This is a test document, containing at least one example of each - reStructuredText construct. - <comment xml:space="preserve"> - This is a comment. Note how any initial comments are moved by - transforms to after the document title, subtitle, and docinfo. - <target refid="doctitle"> - <comment xml:space="preserve"> - Above is the document title, and below is the subtitle. - They are transformed from section titles after parsing. - <target refid="subtitle"> - <comment xml:space="preserve"> - bibliographic fields (which also require a transform): - <meta content="reStructuredText, test, parser" name="keywords"> - <meta content="A test document, containing at least one example of each reStructuredText construct." lang="en" name="description"> - <topic classes="contents" ids="table-of-contents" names="table\ of\ contents"> - <title> - Table of Contents - <bullet_list classes="auto-toc"> - <list_item> - <paragraph> - <reference ids="id32" refid="structural-elements"> - <generated classes="sectnum"> - 1    - Structural Elements - <bullet_list classes="auto-toc"> - <list_item> - <paragraph> - <reference ids="id33" refid="section-title"> - <generated classes="sectnum"> - 1.1    - Section Title - <list_item> - <paragraph> - <reference ids="id34" refid="empty-section"> - <generated classes="sectnum"> - 1.2    - Empty Section - <list_item> - <paragraph> - <reference ids="id35" refid="transitions"> - <generated classes="sectnum"> - 1.3    - Transitions - <list_item> - <paragraph> - <reference ids="id36" refid="body-elements"> - <generated classes="sectnum"> - 2    - Body Elements - <bullet_list classes="auto-toc"> - <list_item> - <paragraph> - <reference ids="id37" refid="paragraphs"> - <generated classes="sectnum"> - 2.1    - Paragraphs - <bullet_list classes="auto-toc"> - <list_item> - <paragraph> - <reference ids="id38" refid="inline-markup"> - <generated classes="sectnum"> - 2.1.1    - Inline Markup - <list_item> - <paragraph> - <reference ids="id39" refid="bullet-lists"> - <generated classes="sectnum"> - 2.2    - Bullet Lists - <list_item> - <paragraph> - <reference ids="id40" refid="enumerated-lists"> - <generated classes="sectnum"> - 2.3    - Enumerated Lists - <list_item> - <paragraph> - <reference ids="id41" refid="definition-lists"> - <generated classes="sectnum"> - 2.4    - Definition Lists - <list_item> - <paragraph> - <reference ids="id42" refid="field-lists"> - <generated classes="sectnum"> - 2.5    - Field Lists - <list_item> - <paragraph> - <reference ids="id43" refid="option-lists"> - <generated classes="sectnum"> - 2.6    - Option Lists - <list_item> - <paragraph> - <reference ids="id44" refid="literal-blocks"> - <generated classes="sectnum"> - 2.7    - Literal Blocks - <list_item> - <paragraph> - <reference ids="id45" refid="line-blocks"> - <generated classes="sectnum"> - 2.8    - Line Blocks - <list_item> - <paragraph> - <reference ids="id46" refid="block-quotes"> - <generated classes="sectnum"> - 2.9    - Block Quotes - <list_item> - <paragraph> - <reference ids="id47" refid="doctest-blocks"> - <generated classes="sectnum"> - 2.10    - Doctest Blocks - <list_item> - <paragraph> - <reference ids="id48" refid="footnotes"> - <generated classes="sectnum"> - 2.11    - Footnotes - <list_item> - <paragraph> - <reference ids="id49" refid="citations"> - <generated classes="sectnum"> - 2.12    - Citations - <list_item> - <paragraph> - <reference ids="id50" refid="targets"> - <generated classes="sectnum"> - 2.13    - Targets - <bullet_list classes="auto-toc"> - <list_item> - <paragraph> - <reference ids="id51" refid="duplicate-target-names"> - <generated classes="sectnum"> - 2.13.1    - Duplicate Target Names - <list_item> - <paragraph> - <reference ids="id52" refid="id20"> - <generated classes="sectnum"> - 2.13.2    - Duplicate Target Names - <list_item> - <paragraph> - <reference ids="id53" refid="directives"> - <generated classes="sectnum"> - 2.14    - Directives - <bullet_list classes="auto-toc"> - <list_item> - <paragraph> - <reference ids="id54" refid="document-parts"> - <generated classes="sectnum"> - 2.14.1    - Document Parts - <list_item> - <paragraph> - <reference ids="id55" refid="images"> - <generated classes="sectnum"> - 2.14.2    - Images - <list_item> - <paragraph> - <reference ids="id56" refid="admonitions"> - <generated classes="sectnum"> - 2.14.3    - Admonitions - <list_item> - <paragraph> - <reference ids="id57" refid="topics-sidebars-and-rubrics"> - <generated classes="sectnum"> - 2.14.4    - Topics, Sidebars, and Rubrics - <list_item> - <paragraph> - <reference ids="id58" refid="target-footnotes"> - <generated classes="sectnum"> - 2.14.5    - Target Footnotes - <list_item> - <paragraph> - <reference ids="id59" refid="replacement-text"> - <generated classes="sectnum"> - 2.14.6    - Replacement Text - <list_item> - <paragraph> - <reference ids="id60" refid="compound-paragraph"> - <generated classes="sectnum"> - 2.14.7    - Compound Paragraph - <list_item> - <paragraph> - <reference ids="id61" refid="parsed-literal-blocks"> - <generated classes="sectnum"> - 2.14.8    - Parsed Literal Blocks - <list_item> - <paragraph> - <reference ids="id62" refid="substitution-definitions"> - <generated classes="sectnum"> - 2.15    - Substitution Definitions - <list_item> - <paragraph> - <reference ids="id63" refid="comments"> - <generated classes="sectnum"> - 2.16    - Comments - <list_item> - <paragraph> - <reference ids="id64" refid="raw-text"> - <generated classes="sectnum"> - 2.17    - Raw text - <list_item> - <paragraph> - <reference ids="id65" refid="container"> - <generated classes="sectnum"> - 2.18    - Container - <list_item> - <paragraph> - <reference ids="id66" refid="colspanning-tables"> - <generated classes="sectnum"> - 2.19    - Colspanning tables - <list_item> - <paragraph> - <reference ids="id67" refid="rowspanning-tables"> - <generated classes="sectnum"> - 2.20    - Rowspanning tables - <list_item> - <paragraph> - <reference ids="id68" refid="complex-tables"> - <generated classes="sectnum"> - 2.21    - Complex tables - <list_item> - <paragraph> - <reference ids="id69" refid="list-tables"> - <generated classes="sectnum"> - 2.22    - List Tables - <list_item> - <paragraph> - <reference ids="id70" refid="error-handling"> - <generated classes="sectnum"> - 3    - Error Handling - <section ids="structural-elements" names="structural\ elements"> - <title auto="1" refid="id32"> - <generated classes="sectnum"> - 1    - Structural Elements - <section ids="section-title" names="section\ title"> - <title auto="1" refid="id33"> - <generated classes="sectnum"> - 1.1    - Section Title - <subtitle ids="section-subtitle" names="section\ subtitle"> - Section Subtitle - <paragraph> - That's it, the text just above this line. - <section ids="empty-section" names="empty\ section"> - <title auto="1" refid="id34"> - <generated classes="sectnum"> - 1.2    - Empty Section - <section ids="transitions" names="transitions"> - <title auto="1" refid="id35"> - <generated classes="sectnum"> - 1.3    - Transitions - <paragraph> - Here's a transition: - <transition> - <paragraph> - It divides the section. Transitions may also occur between sections: - <transition> - <section ids="body-elements" names="body\ elements"> - <title auto="1" refid="id36"> - <generated classes="sectnum"> - 2    - Body Elements - <section ids="paragraphs" names="paragraphs"> - <title auto="1" refid="id37"> - <generated classes="sectnum"> - 2.1    - Paragraphs - <paragraph> - A paragraph. - <section ids="inline-markup" names="inline\ markup"> - <title auto="1" refid="id38"> - <generated classes="sectnum"> - 2.1.1    - Inline Markup - <paragraph> - Paragraphs contain text and may contain inline markup: - <emphasis> - emphasis - , - <strong> - strong emphasis - , - <literal> - inline literals - , standalone hyperlinks - ( - <reference refuri="http://www.python.org"> - http://www.python.org - ), external hyperlinks ( - <reference name="Python" refuri="http://www.python.org/"> - Python - - <footnote_reference auto="1" ids="id26" refid="id25"> - 5 - ), internal - cross-references ( - <reference name="example" refid="example"> - example - ), external hyperlinks with embedded URIs - ( - <reference name="Python web site" refuri="http://www.python.org"> - Python web site - ), - <reference anonymous="1" name="anonymous hyperlink references" refuri="http://www.python.org/"> - anonymous hyperlink - references - - <footnote_reference auto="1" ids="id29" refid="id25"> - 5 - ( - <reference anonymous="1" name="a second reference" refuri="http://docutils.sourceforge.net/"> - a second reference - - <footnote_reference auto="1" ids="id31" refid="id30"> - 6 - ), footnote references (manually - numbered - <footnote_reference ids="id1" refid="id8"> - 1 - , anonymous auto-numbered - <footnote_reference auto="1" ids="id2" refid="id11"> - 3 - , labeled auto-numbered - <footnote_reference auto="1" ids="id3" refid="label"> - 2 - , or symbolic - <footnote_reference auto="*" ids="id4" refid="id12"> - * - ), citation references ( - <citation_reference ids="id5" refid="cit2002"> - CIT2002 - ), - substitution references ( - <image alt="EXAMPLE" uri="../../../docs/user/rst/images/biohazard.png"> - ), and - <target ids="inline-hyperlink-targets" names="inline\ hyperlink\ targets"> - inline hyperlink targets - - (see - <reference name="Targets" refid="id22"> - Targets - below for a reference back to here). Character-level - inline markup is also possible (although exceedingly ugly!) in - <emphasis> - re - <literal> - Structured - <emphasis> - Text - . Problems are indicated by - <problematic ids="id24" refid="id23"> - |problematic| - text - (generated by processing errors; this one is intentional). Here is a - reference to the - <reference name="doctitle" refid="doctitle"> - doctitle - and the - <reference name="subtitle" refid="subtitle"> - subtitle - . - <target anonymous="1" ids="id6" refuri="http://www.python.org/"> - <target anonymous="1" ids="id7" refuri="http://docutils.sourceforge.net/"> - <paragraph> - The default role for interpreted text is - <title_reference> - Title Reference - . Here are - some explicit interpreted text roles: a PEP reference ( - <reference refuri="http://www.python.org/peps/pep-0287.html"> - PEP 287 - ); an - RFC reference ( - <reference refuri="http://www.faqs.org/rfcs/rfc2822.html"> - RFC 2822 - ); a - <subscript> - subscript - ; a - <superscript> - superscript - ; - and explicit roles for - <emphasis> - standard - - <strong> - inline - - <literal> - markup - . - <comment xml:space="preserve"> - DO NOT RE-WRAP THE FOLLOWING PARAGRAPH! - <paragraph> - Let's test wrapping and whitespace significance in inline literals: - <literal> - This is an example of --inline-literal --text, --including some-- - strangely--hyphenated-words. Adjust-the-width-of-your-browser-window - to see how the text is wrapped. -- ---- -------- Now note the - spacing between the words of this sentence (words - should be grouped in pairs). - <paragraph> - If the - <literal> - --pep-references - option was supplied, there should be a - live link to PEP 258 here. - <section ids="bullet-lists" names="bullet\ lists"> - <title auto="1" refid="id39"> - <generated classes="sectnum"> - 2.2    - Bullet Lists - <bullet_list bullet="-"> - <list_item> - <paragraph> - A bullet list - <bullet_list bullet="+"> - <list_item> - <paragraph> - Nested bullet list. - <list_item> - <paragraph> - Nested item 2. - <list_item> - <paragraph> - Item 2. - <paragraph> - Paragraph 2 of item 2. - <bullet_list bullet="*"> - <list_item> - <paragraph> - Nested bullet list. - <list_item> - <paragraph> - Nested item 2. - <bullet_list bullet="-"> - <list_item> - <paragraph> - Third level. - <list_item> - <paragraph> - Item 2. - <list_item> - <paragraph> - Nested item 3. - <list_item> - <paragraph> - This nested list should be compacted by the HTML writer. - <target ids="target" names="target"> - <comment xml:space="preserve"> - Even if this item contains a target and a comment. - <section ids="enumerated-lists" names="enumerated\ lists"> - <title auto="1" refid="id40"> - <generated classes="sectnum"> - 2.3    - Enumerated Lists - <enumerated_list enumtype="arabic" prefix="" suffix="."> - <list_item> - <paragraph> - Arabic numerals. - <enumerated_list enumtype="loweralpha" prefix="" suffix=")"> - <list_item> - <paragraph> - lower alpha) - <enumerated_list enumtype="lowerroman" prefix="(" suffix=")"> - <list_item> - <paragraph> - (lower roman) - <enumerated_list enumtype="upperalpha" prefix="" suffix="."> - <list_item> - <paragraph> - upper alpha. - <enumerated_list enumtype="upperroman" prefix="" suffix=")"> - <list_item> - <paragraph> - upper roman) - <list_item> - <paragraph> - Lists that don't start at 1: - <enumerated_list enumtype="arabic" prefix="" start="3" suffix="."> - <list_item> - <paragraph> - Three - <list_item> - <paragraph> - Four - <enumerated_list enumtype="upperalpha" prefix="" start="3" suffix="."> - <list_item> - <paragraph> - C - <list_item> - <paragraph> - D - <enumerated_list enumtype="lowerroman" prefix="" start="3" suffix="."> - <list_item> - <paragraph> - iii - <list_item> - <paragraph> - iv - <section ids="definition-lists" names="definition\ lists"> - <title auto="1" refid="id41"> - <generated classes="sectnum"> - 2.4    - Definition Lists - <definition_list> - <definition_list_item> - <term> - Term - <definition> - <paragraph> - Definition - <definition_list_item> - <term> - Term - <classifier> - classifier - <definition> - <paragraph> - Definition paragraph 1. - <paragraph> - Definition paragraph 2. - <definition_list_item> - <term> - Term - <definition> - <paragraph> - Definition - <definition_list_item> - <term> - Term - <classifier> - classifier one - <classifier> - classifier two - <definition> - <paragraph> - Definition - <section ids="field-lists" names="field\ lists"> - <title auto="1" refid="id42"> - <generated classes="sectnum"> - 2.5    - Field Lists - <field_list> - <field> - <field_name> - what - <field_body> - <paragraph> - Field lists map field names to field bodies, like database - records. They are often part of an extension syntax. They are - an unambiguous variant of RFC 2822 fields. - <field> - <field_name> - how arg1 arg2 - <field_body> - <paragraph> - The field marker is a colon, the field name, and a colon. - <paragraph> - The field body may contain one or more body elements, indented - relative to the field marker. - <field> - <field_name> - credits - <field_body> - <paragraph classes="credits"> - This paragraph has the - <title_reference> - credits - class set. (This is actually not - about credits but just for ensuring that the class attribute - doesn't get stripped away.) - <section ids="option-lists" names="option\ lists"> - <title auto="1" refid="id43"> - <generated classes="sectnum"> - 2.6    - Option Lists - <paragraph> - For listing command-line options: - <option_list> - <option_list_item> - <option_group> - <option> - <option_string> - -a - <description> - <paragraph> - command-line option "a" - <option_list_item> - <option_group> - <option> - <option_string> - -b - <option_argument delimiter=" "> - file - <description> - <paragraph> - options can have arguments - and long descriptions - <option_list_item> - <option_group> - <option> - <option_string> - --long - <description> - <paragraph> - options can be long also - <option_list_item> - <option_group> - <option> - <option_string> - --input - <option_argument delimiter="="> - file - <description> - <paragraph> - long options can also have - arguments - <option_list_item> - <option_group> - <option> - <option_string> - --very-long-option - <description> - <paragraph> - The description can also start on the next line. - <paragraph> - The description may contain multiple body elements, - regardless of where it starts. - <option_list_item> - <option_group> - <option> - <option_string> - -x - <option> - <option_string> - -y - <option> - <option_string> - -z - <description> - <paragraph> - Multiple options are an "option group". - <option_list_item> - <option_group> - <option> - <option_string> - -v - <option> - <option_string> - --verbose - <description> - <paragraph> - Commonly-seen: short & long options. - <option_list_item> - <option_group> - <option> - <option_string> - -1 - <option_argument delimiter=" "> - file - <option> - <option_string> - --one - <option_argument delimiter="="> - file - <option> - <option_string> - --two - <option_argument delimiter=" "> - file - <description> - <paragraph> - Multiple options with arguments. - <option_list_item> - <option_group> - <option> - <option_string> - /V - <description> - <paragraph> - DOS/VMS-style options too - <paragraph> - There must be at least two spaces between the option and the - description. - <section ids="literal-blocks" names="literal\ blocks"> - <title auto="1" refid="id44"> - <generated classes="sectnum"> - 2.7    - Literal Blocks - <paragraph> - Literal blocks are indicated with a double-colon ("::") at the end of - the preceding paragraph (over there - <literal> - --> - ). They can be indented: - <literal_block xml:space="preserve"> - if literal_block: - text = 'is left as-is' - spaces_and_linebreaks = 'are preserved' - markup_processing = None - <paragraph> - Or they can be quoted without indentation: - <literal_block xml:space="preserve"> - >> Great idea! - > - > Why didn't I think of that? - <section ids="line-blocks" names="line\ blocks"> - <title auto="1" refid="id45"> - <generated classes="sectnum"> - 2.8    - Line Blocks - <paragraph> - This section tests line blocks. Line blocks are body elements which - consist of lines and other line blocks. Nested line blocks cause - indentation. - <line_block> - <line> - This is a line block. It ends with a blank line. - <line_block> - <line> - New lines begin with a vertical bar ("|"). - <line> - Line breaks and initial indent are significant, and preserved. - <line_block> - <line> - Continuation lines are also possible. A long line that is intended - to wrap should begin with a space in place of the vertical bar. - <line> - The left edge of a continuation line need not be aligned with - the left edge of the text above it. - <line_block> - <line> - This is a second line block. - <line> - <line> - Blank lines are permitted internally, but they must begin with a "|". - <paragraph> - Another line block, surrounded by paragraphs: - <line_block> - <line> - And it's no good waiting by the window - <line> - It's no good waiting for the sun - <line> - Please believe me, the things you dream of - <line> - They don't fall in the lap of no-one - <paragraph> - Take it away, Eric the Orchestra Leader! - <block_quote> - <line_block> - <line> - A one, two, a one two three four - <line> - <line> - Half a bee, philosophically, - <line_block> - <line> - must, - <emphasis> - ipso facto - , half not be. - <line> - But half the bee has got to be, - <line_block> - <line> - <emphasis> - vis a vis - its entity. D'you see? - <line> - <line> - But can a bee be said to be - <line_block> - <line> - or not to be an entire bee, - <line_block> - <line> - when half the bee is not a bee, - <line_block> - <line> - due to some ancient injury? - <line> - <line> - Singing... - <section ids="block-quotes" names="block\ quotes"> - <title auto="1" refid="id46"> - <generated classes="sectnum"> - 2.9    - Block Quotes - <paragraph> - Block quotes consist of indented body elements: - <block_quote> - <paragraph> - My theory by A. Elk. Brackets Miss, brackets. This theory goes - as follows and begins now. All brontosauruses are thin at one - end, much much thicker in the middle and then thin again at the - far end. That is my theory, it is mine, and belongs to me and I - own it, and what it is too. - <attribution> - Anne Elk (Miss) - <section ids="doctest-blocks" names="doctest\ blocks"> - <title auto="1" refid="id47"> - <generated classes="sectnum"> - 2.10    - Doctest Blocks - <doctest_block xml:space="preserve"> - >>> print 'Python-specific usage examples; begun with ">>>"' - Python-specific usage examples; begun with ">>>" - >>> print '(cut and pasted from interactive Python sessions)' - (cut and pasted from interactive Python sessions) - <section ids="footnotes" names="footnotes"> - <title auto="1" refid="id48"> - <generated classes="sectnum"> - 2.11    - Footnotes - <footnote backrefs="id1 id9 id21" ids="id8" names="1"> - <label> - 1 - <paragraph> - A footnote contains body elements, consistently indented by at - least 3 spaces. - <paragraph> - This is the footnote's second paragraph. - <footnote auto="1" backrefs="id3 id10" ids="label" names="label"> - <label> - 2 - <paragraph> - Footnotes may be numbered, either manually (as in - <footnote_reference ids="id9" refid="id8"> - 1 - ) or - automatically using a "#"-prefixed label. This footnote has a - label so it can be referred to from multiple places, both as a - footnote reference ( - <footnote_reference auto="1" ids="id10" refid="label"> - 2 - ) and as a hyperlink reference - ( - <reference name="label" refid="label"> - label - ). - <footnote auto="1" backrefs="id2" ids="id11" names="3"> - <label> - 3 - <paragraph> - This footnote is numbered automatically and anonymously using a - label of "#" only. - <paragraph> - This is the second paragraph. - <paragraph> - And this is the third paragraph. - <footnote auto="*" backrefs="id4" ids="id12"> - <label> - * - <paragraph> - Footnotes may also use symbols, specified with a "*" label. - Here's a reference to the next footnote: - <footnote_reference auto="*" ids="id13" refid="id14"> - † - . - <footnote auto="*" backrefs="id13" ids="id14"> - <label> - † - <paragraph> - This footnote shows the next symbol in the sequence. - <footnote ids="id15" names="4"> - <label> - 4 - <paragraph> - Here's an unreferenced footnote, with a reference to a - nonexistent footnote: - <problematic ids="id80 id16" refid="id79"> - [5]_ - . - <section ids="citations" names="citations"> - <title auto="1" refid="id49"> - <generated classes="sectnum"> - 2.12    - Citations - <citation backrefs="id5 id17" ids="cit2002" names="cit2002"> - <label> - CIT2002 - <paragraph> - Citations are text-labeled footnotes. They may be - rendered separately and differently from footnotes. - <paragraph> - Here's a reference to the above, - <citation_reference ids="id17" refid="cit2002"> - CIT2002 - , and a - <problematic ids="id82 id18" refid="id81"> - [nonexistent]_ - - citation. - <target refid="another-target"> - <section dupnames="targets" ids="targets another-target" names="another\ target"> - <title auto="1" refid="id50"> - <generated classes="sectnum"> - 2.13    - Targets - <target refid="example"> - <paragraph ids="example" names="example"> - This paragraph is pointed to by the explicit "example" target. A - reference can be found under - <reference name="Inline Markup" refid="inline-markup"> - Inline Markup - , above. - <reference name="Inline hyperlink targets" refid="inline-hyperlink-targets"> - Inline - hyperlink targets - are also possible. - <paragraph> - Section headers are implicit targets, referred to by name. See - <reference name="Targets" refid="id22"> - Targets - , which is a subsection of - <reference name="Body Elements" refid="body-elements"> - Body Elements - . - <paragraph> - Explicit external targets are interpolated into references such as - " - <reference name="Python" refuri="http://www.python.org/"> - Python - - <footnote_reference auto="1" ids="id27" refid="id25"> - 5 - ". - <target ids="python" names="python" refuri="http://www.python.org/"> - <paragraph> - Targets may be indirect and anonymous. Thus - <reference anonymous="1" name="this phrase" refid="id22"> - this phrase - may also - refer to the - <reference name="Targets" refid="id22"> - Targets - section. - <target anonymous="1" ids="id19" refid="id22"> - <paragraph> - Here's a - <problematic ids="id84" refid="id83"> - `hyperlink reference without a target`_ - , which generates an - error. - <section dupnames="duplicate\ target\ names" ids="duplicate-target-names"> - <title auto="1" refid="id51"> - <generated classes="sectnum"> - 2.13.1    - Duplicate Target Names - <paragraph> - Duplicate names in section headers or other implicit targets will - generate "info" (level-1) system messages. Duplicate names in - explicit targets will generate "warning" (level-2) system messages. - <section dupnames="duplicate\ target\ names" ids="id20"> - <title auto="1" refid="id52"> - <generated classes="sectnum"> - 2.13.2    - Duplicate Target Names - <paragraph> - Since there are two "Duplicate Target Names" section headers, we - cannot uniquely refer to either of them by name. If we try to (like - this: - <problematic ids="id86" refid="id85"> - `Duplicate Target Names`_ - ), an error is generated. - <section ids="directives" names="directives"> - <title auto="1" refid="id53"> - <generated classes="sectnum"> - 2.14    - Directives - <topic classes="contents local" ids="contents" names="contents"> - <bullet_list classes="auto-toc"> - <list_item> - <paragraph> - <reference ids="id71" refid="document-parts"> - <generated classes="sectnum"> - 2.14.1    - Document Parts - <list_item> - <paragraph> - <reference ids="id72" refid="images"> - <generated classes="sectnum"> - 2.14.2    - Images - <list_item> - <paragraph> - <reference ids="id73" refid="admonitions"> - <generated classes="sectnum"> - 2.14.3    - Admonitions - <list_item> - <paragraph> - <reference ids="id74" refid="topics-sidebars-and-rubrics"> - <generated classes="sectnum"> - 2.14.4    - Topics, Sidebars, and Rubrics - <list_item> - <paragraph> - <reference ids="id75" refid="target-footnotes"> - <generated classes="sectnum"> - 2.14.5    - Target Footnotes - <list_item> - <paragraph> - <reference ids="id76" refid="replacement-text"> - <generated classes="sectnum"> - 2.14.6    - Replacement Text - <list_item> - <paragraph> - <reference ids="id77" refid="compound-paragraph"> - <generated classes="sectnum"> - 2.14.7    - Compound Paragraph - <list_item> - <paragraph> - <reference ids="id78" refid="parsed-literal-blocks"> - <generated classes="sectnum"> - 2.14.8    - Parsed Literal Blocks - <paragraph> - These are just a sample of the many reStructuredText Directives. For - others, please see - <reference refuri="http://docutils.sourceforge.net/docs/ref/rst/directives.html"> - http://docutils.sourceforge.net/docs/ref/rst/directives.html - . - <section ids="document-parts" names="document\ parts"> - <title auto="1" refid="id71"> - <generated classes="sectnum"> - 2.14.1    - Document Parts - <paragraph> - An example of the "contents" directive can be seen above this section - (a local, untitled table of - <reference name="contents" refid="contents"> - contents - ) and at the beginning of the - document (a document-wide - <reference name="table of contents" refid="table-of-contents"> - table of contents - ). - <section ids="images" names="images"> - <title auto="1" refid="id72"> - <generated classes="sectnum"> - 2.14.2    - Images - <paragraph> - An image directive (also clickable -- a hyperlink reference): - <reference name="directives" refid="directives"> - <image classes="class1 class2" uri="../../../docs/user/rst/images/title.png"> - <paragraph> - Image with multiple IDs: - <target refid="image-target-1"> - <target refid="image-target-2"> - <target refid="image-target-3"> - <image ids="image-target-3 image-target-2 image-target-1" names="image\ target\ 3 image\ target\ 2 image\ target\ 1" uri="../../../docs/user/rst/images/title.png"> - <paragraph> - A centered image: - <image align="center" uri="../../../docs/user/rst/images/biohazard.png"> - <paragraph> - A left-aligned image: - <image align="left" uri="../../../docs/user/rst/images/biohazard.png"> - <paragraph> - A right-aligned image: - <image align="right" uri="../../../docs/user/rst/images/biohazard.png"> - <paragraph> - A figure directive: - <figure align="right" classes="figclass1 figclass2"> - <image alt="reStructuredText, the markup syntax" classes="class1 class2" uri="../../../docs/user/rst/images/biohazard.png" width="50"> - <caption> - A figure is an image with a caption and/or a legend: - <legend> - <table> - <tgroup cols="2"> - <colspec colwidth="12"> - <colspec colwidth="47"> - <tbody> - <row> - <entry> - <paragraph> - re - <entry> - <paragraph> - Revised, revisited, based on 're' module. - <row> - <entry> - <paragraph> - Structured - <entry> - <paragraph> - Structure-enhanced text, structuredtext. - <row> - <entry> - <paragraph> - Text - <entry> - <paragraph> - Well it is, isn't it? - <paragraph> - This paragraph is also part of the legend. - <figure align="left" classes="figclass1 figclass2"> - <image alt="reStructuredText, the markup syntax" classes="class1 class2" uri="../../../docs/user/rst/images/biohazard.png" width="50"> - <caption> - A left-aligned figure. - <legend> - <paragraph> - This is the legend. - <paragraph> - This paragraph might flow around the figure... - <paragraph> - A centered figure: - <figure align="center"> - <image uri="../../../docs/user/rst/images/biohazard.png" width="50"> - <caption> - This is the caption. - <legend> - <paragraph> - This is the legend. - <paragraph> - The legend may consist of several paragraphs. - <paragraph> - This paragraph might flow around the figure... - <paragraph> - A left-aligned figure: - <figure align="left"> - <image uri="../../../docs/user/rst/images/biohazard.png" width="50"> - <caption> - This is the caption. - <legend> - <paragraph> - This is the legend. - <paragraph> - The legend may consist of several paragraphs. - <paragraph> - This paragraph might flow around the figure... - <paragraph> - Now widths: - <paragraph> - An image 2 em wide: - <image uri="../../../docs/user/rst/images/biohazard.png" width="2em"> - <paragraph> - An image 2 em wide and 30 pixel high: - <image height="30px" uri="../../../docs/user/rst/images/biohazard.png" width="2em"> - <paragraph> - An image occupying 70% of the line width: - <image uri="../../../docs/user/rst/images/biohazard.png" width="70%"> - <paragraph> - An image 3 cm high: - <image height="3cm" uri="../../../docs/user/rst/images/biohazard.png"> - <section ids="admonitions" names="admonitions"> - <title auto="1" refid="id73"> - <generated classes="sectnum"> - 2.14.3    - Admonitions - <attention> - <paragraph> - Directives at large. - <caution> - <paragraph> - Don't take any wooden nickels. - <danger> - <paragraph> - Mad scientist at work! - <error> - <paragraph> - Does not compute. - <hint> - <paragraph> - It's bigger than a bread box. - <important> - <bullet_list bullet="-"> - <list_item> - <paragraph> - Wash behind your ears. - <list_item> - <paragraph> - Clean up your room. - <list_item> - <paragraph> - Call your mother. - <list_item> - <paragraph> - Back up your data. - <note> - <paragraph> - This is a note. - <tip> - <paragraph> - 15% if the service is good. - <warning> - <paragraph> - Strong prose may provoke extreme mental exertion. - Reader discretion is strongly advised. - <admonition classes="admonition-and-by-the-way"> - <title> - And, by the way... - <paragraph> - You can make up your own admonition too. - <target ids="docutils" names="docutils" refuri="http://docutils.sourceforge.net/"> - <section ids="topics-sidebars-and-rubrics" names="topics,\ sidebars,\ and\ rubrics"> - <title auto="1" refid="id74"> - <generated classes="sectnum"> - 2.14.4    - Topics, Sidebars, and Rubrics - <sidebar> - <title> - Sidebar Title - <subtitle> - Optional Subtitle - <paragraph> - This is a sidebar. It is for text outside the flow of the main - text. - <rubric> - This is a rubric inside a sidebar - <paragraph> - Sidebars often appears beside the main text with a border and - background color. - <topic> - <title> - Topic Title - <paragraph> - This is a topic. - <rubric> - This is a rubric - <section ids="target-footnotes" names="target\ footnotes"> - <title auto="1" refid="id75"> - <generated classes="sectnum"> - 2.14.5    - Target Footnotes - <footnote auto="1" backrefs="id26 id27 id28 id29" ids="id25" names="TARGET_NOTE:\ id25"> - <label> - 5 - <paragraph> - <reference refuri="http://www.python.org/"> - http://www.python.org/ - <footnote auto="1" backrefs="id31" ids="id30" names="TARGET_NOTE:\ id30"> - <label> - 6 - <paragraph> - <reference refuri="http://docutils.sourceforge.net/"> - http://docutils.sourceforge.net/ - <section ids="replacement-text" names="replacement\ text"> - <title auto="1" refid="id76"> - <generated classes="sectnum"> - 2.14.6    - Replacement Text - <paragraph> - I recommend you try - <reference refuri="http://www.python.org/"> - Python, - <emphasis> - the - best language around - - <footnote_reference auto="1" ids="id28" refid="id25"> - 5 - . - <substitution_definition names="Python"> - Python, - <emphasis> - the - best language around - <section ids="compound-paragraph" names="compound\ paragraph"> - <title auto="1" refid="id77"> - <generated classes="sectnum"> - 2.14.7    - Compound Paragraph - <compound classes="some-class"> - <paragraph> - Compound 1, paragraph 1. - <paragraph> - Compound 1, paragraph 2. - <bullet_list bullet="*"> - <list_item> - <paragraph> - Compound 1, list item one. - <list_item> - <paragraph> - Compound 1, list item two. - <paragraph> - Another compound statement: - <compound> - <paragraph> - Compound 2, a literal block: - <literal_block xml:space="preserve"> - Compound 2, literal. - <paragraph> - Compound 2, this is a test. - <compound> - <paragraph> - Compound 3, only consisting of one paragraph. - <compound> - <literal_block xml:space="preserve"> - Compound 4. - This one starts with a literal block. - <paragraph> - Compound 4, a paragraph. - <paragraph> - Now something - <emphasis> - really - perverted -- a nested compound block. This is - just to test that it works at all; the results don't have to be - meaningful. - <compound> - <paragraph> - Compound 5, block 1 (a paragraph). - <compound> - <paragraph> - Compound 6, block 2 in compound 5. - <paragraph> - Compound 6, another paragraph. - <paragraph> - Compound 5, block 3 (a paragraph). - <compound> - <paragraph> - Compound 7, with a table inside: - <table> - <tgroup cols="3"> - <colspec colwidth="20"> - <colspec colwidth="20"> - <colspec colwidth="20"> - <tbody> - <row> - <entry> - <paragraph> - Left cell, first - paragraph. - <paragraph> - Left cell, second - paragraph. - <entry> - <paragraph> - Middle cell, - consisting of - exactly one - paragraph. - <entry> - <paragraph> - Right cell. - <paragraph> - Paragraph 2. - <paragraph> - Paragraph 3. - <paragraph> - Compound 7, a paragraph after the table. - <paragraph> - Compound 7, another paragraph. - <section ids="parsed-literal-blocks" names="parsed\ literal\ blocks"> - <title auto="1" refid="id78"> - <generated classes="sectnum"> - 2.14.8    - Parsed Literal Blocks - <literal_block xml:space="preserve"> - This is a parsed literal block. - This line is indented. The next line is blank. - - Inline markup is supported, e.g. - <emphasis> - emphasis - , - <strong> - strong - , - <literal> - literal - text - , footnotes - <footnote_reference ids="id21" refid="id8"> - 1 - , - <target ids="id22" names="targets"> - targets - , and - <reference name="references" refuri="http://www.python.org/"> - references - <target ids="references" names="references" refuri="http://www.python.org/"> - . - <section ids="substitution-definitions" names="substitution\ definitions"> - <title auto="1" refid="id62"> - <generated classes="sectnum"> - 2.15    - Substitution Definitions - <paragraph> - An inline image ( - <image alt="EXAMPLE" uri="../../../docs/user/rst/images/biohazard.png"> - ) example: - <substitution_definition names="EXAMPLE"> - <image alt="EXAMPLE" uri="../../../docs/user/rst/images/biohazard.png"> - <paragraph> - (Substitution definitions are not visible in the HTML source.) - <section ids="comments" names="comments"> - <title auto="1" refid="id63"> - <generated classes="sectnum"> - 2.16    - Comments - <paragraph> - Here's one: - <comment xml:space="preserve"> - Comments begin with two dots and a space. Anything may - follow, except for the syntax of footnotes, hyperlink - targets, directives, or substitution definitions. - - Double-dashes -- "--" -- must be escaped somehow in HTML output. - <paragraph> - (View the HTML source to see the comment.) - <section ids="raw-text" names="raw\ text"> - <title auto="1" refid="id64"> - <generated classes="sectnum"> - 2.17    - Raw text - <paragraph> - This does not necessarily look nice, because there may be missing white space. - <paragraph> - It's just there to freeze the behavior. - <raw format="html latex" xml:space="preserve"> - A test. - <raw format="html latex" xml:space="preserve"> - Second test. - <raw classes="myclass" format="html latex" xml:space="preserve"> - Another test with myclass set. - <paragraph> - This is the - <raw classes="myrawroleclass" format="html latex" xml:space="preserve"> - fourth test - with myrawroleclass set. - <raw format="html" xml:space="preserve"> - Fifth test in HTML.<br />Line two. - <raw format="latex" xml:space="preserve"> - Fifth test in LaTeX.\\Line two. - <section ids="container" names="container"> - <title auto="1" refid="id65"> - <generated classes="sectnum"> - 2.18    - Container - <container classes="custom"> - <paragraph> - paragraph 1 - <paragraph> - paragraph 2 - <section ids="colspanning-tables" names="colspanning\ tables"> - <title auto="1" refid="id66"> - <generated classes="sectnum"> - 2.19    - Colspanning tables - <paragraph> - This table has a cell spanning two columns: - <table> - <tgroup cols="3"> - <colspec colwidth="5"> - <colspec colwidth="5"> - <colspec colwidth="6"> - <thead> - <row> - <entry morecols="1"> - <paragraph> - Inputs - <entry> - <paragraph> - Output - <row> - <entry> - <paragraph> - A - <entry> - <paragraph> - B - <entry> - <paragraph> - A or B - <tbody> - <row> - <entry> - <paragraph> - False - <entry> - <paragraph> - False - <entry> - <paragraph> - False - <row> - <entry> - <paragraph> - True - <entry> - <paragraph> - False - <entry> - <paragraph> - True - <row> - <entry> - <paragraph> - False - <entry> - <paragraph> - True - <entry> - <paragraph> - True - <row> - <entry> - <paragraph> - True - <entry> - <paragraph> - True - <entry> - <paragraph> - True - <section ids="rowspanning-tables" names="rowspanning\ tables"> - <title auto="1" refid="id67"> - <generated classes="sectnum"> - 2.20    - Rowspanning tables - <paragraph> - Here's a table with cells spanning several rows: - <table> - <tgroup cols="3"> - <colspec colwidth="24"> - <colspec colwidth="12"> - <colspec colwidth="18"> - <thead> - <row> - <entry> - <paragraph> - Header row, column 1 - (header rows optional) - <entry> - <paragraph> - Header 2 - <entry> - <paragraph> - Header 3 - <tbody> - <row> - <entry> - <paragraph> - body row 1, column 1 - <entry> - <paragraph> - column 2 - <entry> - <paragraph> - column 3 - <row> - <entry> - <paragraph> - body row 2 - <entry morerows="1"> - <paragraph> - Cells may - span rows. - <entry morerows="1"> - <paragraph> - Another - rowspanning - cell. - <row> - <entry> - <paragraph> - body row 3 - <section ids="complex-tables" names="complex\ tables"> - <title auto="1" refid="id68"> - <generated classes="sectnum"> - 2.21    - Complex tables - <paragraph> - Here's a complex table, which should test all features. - <table> - <tgroup cols="4"> - <colspec colwidth="24"> - <colspec colwidth="12"> - <colspec colwidth="10"> - <colspec colwidth="10"> - <thead> - <row> - <entry> - <paragraph> - Header row, column 1 - (header rows optional) - <entry> - <paragraph> - Header 2 - <entry> - <paragraph> - Header 3 - <entry> - <paragraph> - Header 4 - <tbody> - <row> - <entry> - <paragraph> - body row 1, column 1 - <entry> - <paragraph> - column 2 - <entry> - <paragraph> - column 3 - <entry> - <paragraph> - column 4 - <row> - <entry> - <paragraph> - body row 2 - <entry morecols="2"> - <paragraph> - Cells may span columns. - <row> - <entry> - <paragraph> - body row 3 - <entry morerows="1"> - <paragraph> - Cells may - span rows. - <paragraph> - Paragraph. - <entry morecols="1" morerows="1"> - <bullet_list bullet="-"> - <list_item> - <paragraph> - Table cells - <list_item> - <paragraph> - contain - <list_item> - <paragraph> - body elements. - <row> - <entry> - <paragraph> - body row 4 - <row> - <entry> - <paragraph> - body row 5 - <entry morecols="1"> - <paragraph> - Cells may also be - empty: - <literal> - --> - <entry> - <section ids="list-tables" names="list\ tables"> - <title auto="1" refid="id69"> - <generated classes="sectnum"> - 2.22    - List Tables - <paragraph> - Here's a list table exercising all features: - <table classes="test"> - <title> - list table with integral header - <tgroup cols="3"> - <colspec colwidth="10" stub="1"> - <colspec colwidth="20"> - <colspec colwidth="30"> - <thead> - <row> - <entry> - <paragraph> - Treat - <entry> - <paragraph> - Quantity - <entry> - <paragraph> - Description - <tbody> - <row> - <entry> - <paragraph> - Albatross - <entry> - <paragraph> - 2.99 - <entry> - <paragraph> - On a stick! - <row> - <entry> - <paragraph> - Crunchy Frog - <entry> - <paragraph> - 1.49 - <entry> - <paragraph> - If we took the bones out, it wouldn't be - crunchy, now would it? - <row> - <entry> - <paragraph> - Gannet Ripple - <entry> - <paragraph> - 1.99 - <entry> - <paragraph> - On a stick! - <section ids="error-handling" names="error\ handling"> - <title auto="1" refid="id70"> - <generated classes="sectnum"> - 3    - Error Handling - <paragraph> - Any errors caught during processing will generate system messages. - <paragraph> - There should be five messages in the following, auto-generated - section, "Docutils System Messages": - <comment xml:space="preserve"> - section should be added by Docutils automatically - <section classes="system-messages"> - <title> - Docutils System Messages - <system_message backrefs="id24" ids="id23" level="3" line="100" source="functional/input/data/standard.txt" type="ERROR"> - <paragraph> - Undefined substitution referenced: "problematic". - <system_message backrefs="id80" ids="id79" level="3" line="358" source="functional/input/standalone_rst_pseudoxml.txt" type="ERROR"> - <paragraph> - Unknown target name: "5". - <system_message backrefs="id82" ids="id81" level="3" line="367" source="functional/input/data/standard.txt" type="ERROR"> - <paragraph> - Unknown target name: "nonexistent". - <system_message backrefs="id84" ids="id83" level="3" line="394" source="functional/input/data/standard.txt" type="ERROR"> - <paragraph> - Unknown target name: "hyperlink reference without a target". - <system_message backrefs="id86" ids="id85" level="3" line="407" source="functional/input/data/standard.txt" type="ERROR"> - <paragraph> - Duplicate target name, cannot be used as a unique reference: "duplicate target names". diff --git a/test/functional/expected/standalone_rst_s5_html_1.html b/test/functional/expected/standalone_rst_s5_html_1.html deleted file mode 100644 index 3793b5b72..000000000 --- a/test/functional/expected/standalone_rst_s5_html_1.html +++ /dev/null @@ -1,152 +0,0 @@ -<?xml version="1.0" encoding="utf-8" ?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head> -<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> -<meta name="generator" content="Docutils 0.4.1: http://docutils.sourceforge.net/" /> -<meta name="version" content="S5 1.1" /> -<title>Slide Shows - - - - - - - - - - - - - - - - -
-
-
- - -
-
-
-

Slide Shows

- --- - - - - - -
Author:David Goodger
Date:2005-11-28
- - - - - - - - - -

This is a test. This is only a test. If this were a real slide -show, there would be a projector handy.

-

Let's test the S5/HTML writer!

-
    -
  • Use the arrow keys to navigate.
  • -
  • Click the "Ø" button to switch between presentation & -handout/outline modes.
  • -
-
-In presentation mode, mouse over to the lower right-hand corner to -display the controls.
- -
-
-

Introduction

-
    -
  • reStructuredText

    Uses normal reStructuredText as input.

    -
  • -
  • One section per slide

    Each first-level section is converted into a single slide.

    -
  • -
  • (X)HTML output

    Presentations can be viewed using any modern graphical web browser. -The browser must support CSS, JavaScript, and XHTML. S5 even works -with IE!

    -
  • -
  • Themes

    A variety of themes are available.

    -
  • -
  • rst2s5.py

    The front-end tool to generate S5 slide shows.

    -
  • -
-
-
-

Features (1)

-

A flush-left paragraph

-

A centered paragraph

-

A flush-right paragraph

-

Some colours: black [black], gray, silver, -white [white], maroon, red, -magenta, fuchsia, pink, -orange, yellow, lime, green, -olive, teal, cyan, aqua, -blue, navy, purple

-
-
-

Features (2)

-

Some incremental text.

-
    -
  • tiny (class & role name: "tiny", e.g. ":tiny:`text`")

    -
  • -
  • small ("small")

    -
  • -
  • normal (unstyled)

    -
  • -
  • big ("big")

    -
  • -
  • huge ("huge")

    -
  • -
-
-
-

Checklist

-
    -
  • The document title should be duplicated on each slide in the footer -(except for the first slide, slide0, where the entire footer is -disabled).
  • -
  • The footer also contains a second line, "Location • Date"
  • -
  • There's no table of contents on the first slide, although it does -appear in the handout/outline.
  • -
  • Handout material is not displayed in presentation mode.
  • -
  • The theme directories should be created, and the theme files copied -over.
  • -
-
-
- - diff --git a/test/functional/expected/standalone_rst_s5_html_2.html b/test/functional/expected/standalone_rst_s5_html_2.html deleted file mode 100644 index 367125658..000000000 --- a/test/functional/expected/standalone_rst_s5_html_2.html +++ /dev/null @@ -1,148 +0,0 @@ - - - - - - - -Slide Shows - - - - - - - - - - - - - - -
-
-
- - -
-
-
-

Slide Shows

- --- - - - - - -
Author:David Goodger
Date:2005-11-28
- - - - - - - - - -

This is a test. This is only a test. If this were a real slide -show, there would be a projector handy.

-

Let's test the S5/HTML writer!

-
    -
  • Use the arrow keys to navigate.
  • -
  • Click the "Ø" button to switch between presentation & -handout/outline modes.
  • -
-
-In presentation mode, mouse over to the lower right-hand corner to -display the controls.
- -
-
-

Introduction

-
    -
  • reStructuredText

    Uses normal reStructuredText as input.

    -
  • -
  • One section per slide

    Each first-level section is converted into a single slide.

    -
  • -
  • (X)HTML output

    Presentations can be viewed using any modern graphical web browser. -The browser must support CSS, JavaScript, and XHTML. S5 even works -with IE!

    -
  • -
  • Themes

    A variety of themes are available.

    -
  • -
  • rst2s5.py

    The front-end tool to generate S5 slide shows.

    -
  • -
-
-
-

Features (1)

-

A flush-left paragraph

-

A centered paragraph

-

A flush-right paragraph

-

Some colours: black [black], gray, silver, -white [white], maroon, red, -magenta, fuchsia, pink, -orange, yellow, lime, green, -olive, teal, cyan, aqua, -blue, navy, purple

-
-
-

Features (2)

-

Some incremental text.

-
    -
  • tiny (class & role name: "tiny", e.g. ":tiny:`text`")

    -
  • -
  • small ("small")

    -
  • -
  • normal (unstyled)

    -
  • -
  • big ("big")

    -
  • -
  • huge ("huge")

    -
  • -
-
-
-

Checklist

-
    -
  • The document title should be duplicated on each slide in the footer -(except for the first slide, slide0, where the entire footer is -disabled).
  • -
  • The footer also contains a second line, "Location • Date"
  • -
  • There's no table of contents on the first slide, although it does -appear in the handout/outline.
  • -
  • Handout material is not displayed in presentation mode.
  • -
  • The theme directories should be created, and the theme files copied -over.
  • -
-
-
- - diff --git a/test/functional/expected/ui/default/blank.gif b/test/functional/expected/ui/default/blank.gif deleted file mode 100644 index 75b945d25..000000000 Binary files a/test/functional/expected/ui/default/blank.gif and /dev/null differ diff --git a/test/functional/expected/ui/default/framing.css b/test/functional/expected/ui/default/framing.css deleted file mode 100644 index c4727f303..000000000 --- a/test/functional/expected/ui/default/framing.css +++ /dev/null @@ -1,25 +0,0 @@ -/* This file has been placed in the public domain. */ -/* The following styles size, place, and layer the slide components. - Edit these if you want to change the overall slide layout. - The commented lines can be uncommented (and modified, if necessary) - to help you with the rearrangement process. */ - -/* target = 1024x768 */ - -div#header, div#footer, .slide {width: 100%; top: 0; left: 0;} -div#header {position: fixed; top: 0; height: 3em; z-index: 1;} -div#footer {top: auto; bottom: 0; height: 2.5em; z-index: 5;} -.slide {top: 0; width: 92%; padding: 2.5em 4% 4%; z-index: 2;} -div#controls {left: 50%; bottom: 0; width: 50%; z-index: 100;} -div#controls form {position: absolute; bottom: 0; right: 0; width: 100%; - margin: 0;} -#currentSlide {position: absolute; width: 10%; left: 45%; bottom: 1em; - z-index: 10;} -html>body #currentSlide {position: fixed;} - -/* -div#header {background: #FCC;} -div#footer {background: #CCF;} -div#controls {background: #BBD;} -div#currentSlide {background: #FFC;} -*/ diff --git a/test/functional/expected/ui/default/iepngfix.htc b/test/functional/expected/ui/default/iepngfix.htc deleted file mode 100644 index 9f3d628b5..000000000 --- a/test/functional/expected/ui/default/iepngfix.htc +++ /dev/null @@ -1,42 +0,0 @@ - - - - - \ No newline at end of file diff --git a/test/functional/expected/ui/default/opera.css b/test/functional/expected/ui/default/opera.css deleted file mode 100644 index c9d1148be..000000000 --- a/test/functional/expected/ui/default/opera.css +++ /dev/null @@ -1,8 +0,0 @@ -/* This file has been placed in the public domain. */ -/* DO NOT CHANGE THESE unless you really want to break Opera Show */ -.slide { - visibility: visible !important; - position: static !important; - page-break-before: always; -} -#slide0 {page-break-before: avoid;} diff --git a/test/functional/expected/ui/default/outline.css b/test/functional/expected/ui/default/outline.css deleted file mode 100644 index fa767e227..000000000 --- a/test/functional/expected/ui/default/outline.css +++ /dev/null @@ -1,16 +0,0 @@ -/* This file has been placed in the public domain. */ -/* Don't change this unless you want the layout stuff to show up in the - outline view! */ - -.layout div, #footer *, #controlForm * {display: none;} -#footer, #controls, #controlForm, #navLinks, #toggle { - display: block; visibility: visible; margin: 0; padding: 0;} -#toggle {float: right; padding: 0.5em;} -html>body #toggle {position: fixed; top: 0; right: 0;} - -/* making the outline look pretty-ish */ - -#slide0 h1, #slide0 h2, #slide0 h3, #slide0 h4 {border: none; margin: 0;} -#toggle {border: 1px solid; border-width: 0 0 1px 1px; background: #FFF;} - -.outline {display: inline ! important;} diff --git a/test/functional/expected/ui/default/pretty.css b/test/functional/expected/ui/default/pretty.css deleted file mode 100644 index 1cede72d4..000000000 --- a/test/functional/expected/ui/default/pretty.css +++ /dev/null @@ -1,120 +0,0 @@ -/* This file has been placed in the public domain. */ -/* Following are the presentation styles -- edit away! */ - -html, body {margin: 0; padding: 0;} -body {background: white; color: black;} -/* Replace the background style above with the style below (and again for - div#header) for a graphic: */ -/* background: white url(bodybg.gif) -16px 0 no-repeat; */ -:link, :visited {text-decoration: none; color: #00C;} -#controls :active {color: #88A !important;} -#controls :focus {outline: 1px dotted #227;} -h1, h2, h3, h4 {font-size: 100%; margin: 0; padding: 0; font-weight: inherit;} - -blockquote {padding: 0 2em 0.5em; margin: 0 1.5em 0.5em;} -blockquote p {margin: 0;} - -kbd {font-weight: bold; font-size: 1em;} -sup {font-size: smaller; line-height: 1px;} - -.slide pre {padding: 0; margin-left: 0; margin-right: 0; font-size: 90%;} -.slide ul ul li {list-style: square;} -.slide img.leader {display: block; margin: 0 auto;} -.slide tt {font-size: 90%;} - -div#header, div#footer {background: #005; color: #AAB; font-family: sans-serif;} -/* background: #005 url(bodybg.gif) -16px 0 no-repeat; */ -div#footer {font-size: 0.5em; font-weight: bold; padding: 1em 0;} -#footer h1 {display: block; padding: 0 1em;} -#footer h2 {display: block; padding: 0.8em 1em 0;} - -.slide {font-size: 1.2em;} -.slide h1 {position: absolute; top: 0.45em; z-index: 1; - margin: 0; padding-left: 0.7em; white-space: nowrap; - font: bold 150% sans-serif; color: #DDE; background: #005;} -.slide h2 {font: bold 120%/1em sans-serif; padding-top: 0.5em;} -.slide h3 {font: bold 100% sans-serif; padding-top: 0.5em;} -h1 abbr {font-variant: small-caps;} - -div#controls {position: absolute; left: 50%; bottom: 0; - width: 50%; text-align: right; font: bold 0.9em sans-serif;} -html>body div#controls {position: fixed; padding: 0 0 1em 0; top: auto;} -div#controls form {position: absolute; bottom: 0; right: 0; width: 100%; - margin: 0; padding: 0;} -#controls #navLinks a {padding: 0; margin: 0 0.5em; - background: #005; border: none; color: #779; cursor: pointer;} -#controls #navList {height: 1em;} -#controls #navList #jumplist {position: absolute; bottom: 0; right: 0; - background: #DDD; color: #227;} - -#currentSlide {text-align: center; font-size: 0.5em; color: #449; - font-family: sans-serif; font-weight: bold;} - -#slide0 {padding-top: 1.5em} -#slide0 h1 {position: static; margin: 1em 0 0; padding: 0; color: #000; - font: bold 2em sans-serif; white-space: normal; background: transparent;} -#slide0 h2 {font: bold italic 1em sans-serif; margin: 0.25em;} -#slide0 h3 {margin-top: 1.5em; font-size: 1.5em;} -#slide0 h4 {margin-top: 0; font-size: 1em;} - -ul.urls {list-style: none; display: inline; margin: 0;} -.urls li {display: inline; margin: 0;} -.external {border-bottom: 1px dotted gray;} -html>body .external {border-bottom: none;} -.external:after {content: " \274F"; font-size: smaller; color: #77B;} - -.incremental, .incremental *, .incremental *:after {visibility: visible; - color: white; border: 0;} -img.incremental {visibility: hidden;} -.slide .current {color: green;} - -.slide-display {display: inline ! important;} - -.huge {font-family: sans-serif; font-weight: bold; font-size: 150%;} -.big {font-family: sans-serif; font-weight: bold; font-size: 120%;} -.small {font-size: 75%;} -.tiny {font-size: 50%;} -.huge tt, .big tt, .small tt, .tiny tt {font-size: 115%;} -.huge pre, .big pre, .small pre, .tiny pre {font-size: 115%;} - -.maroon {color: maroon;} -.red {color: red;} -.magenta {color: magenta;} -.fuchsia {color: fuchsia;} -.pink {color: #FAA;} -.orange {color: orange;} -.yellow {color: yellow;} -.lime {color: lime;} -.green {color: green;} -.olive {color: olive;} -.teal {color: teal;} -.cyan {color: cyan;} -.aqua {color: aqua;} -.blue {color: blue;} -.navy {color: navy;} -.purple {color: purple;} -.black {color: black;} -.gray {color: gray;} -.silver {color: silver;} -.white {color: white;} - -.left {text-align: left ! important;} -.center {text-align: center ! important;} -.right {text-align: right ! important;} - -.animation {position: relative; margin: 1em 0; padding: 0;} -.animation img {position: absolute;} - -/* Docutils-specific overrides */ - -.slide table.docinfo {margin: 1em 0 0.5em 2em;} - -pre.literal-block, pre.doctest-block {background-color: white;} - -tt.docutils {background-color: white;} - -/* diagnostics */ -/* -li:after {content: " [" attr(class) "]"; color: #F88;} -div:before {content: "[" attr(class) "]"; color: #F88;} -*/ diff --git a/test/functional/expected/ui/default/print.css b/test/functional/expected/ui/default/print.css deleted file mode 100644 index 9d057cc8c..000000000 --- a/test/functional/expected/ui/default/print.css +++ /dev/null @@ -1,24 +0,0 @@ -/* This file has been placed in the public domain. */ -/* The following rule is necessary to have all slides appear in print! - DO NOT REMOVE IT! */ -.slide, ul {page-break-inside: avoid; visibility: visible !important;} -h1 {page-break-after: avoid;} - -body {font-size: 12pt; background: white;} -* {color: black;} - -#slide0 h1 {font-size: 200%; border: none; margin: 0.5em 0 0.25em;} -#slide0 h3 {margin: 0; padding: 0;} -#slide0 h4 {margin: 0 0 0.5em; padding: 0;} -#slide0 {margin-bottom: 3em;} - -#header {display: none;} -#footer h1 {margin: 0; border-bottom: 1px solid; color: gray; - font-style: italic;} -#footer h2, #controls {display: none;} - -.print {display: inline ! important;} - -/* The following rule keeps the layout stuff out of print. - Remove at your own risk! */ -.layout, .layout * {display: none !important;} diff --git a/test/functional/expected/ui/default/s5-core.css b/test/functional/expected/ui/default/s5-core.css deleted file mode 100644 index 6965f5e8f..000000000 --- a/test/functional/expected/ui/default/s5-core.css +++ /dev/null @@ -1,11 +0,0 @@ -/* This file has been placed in the public domain. */ -/* Do not edit or override these styles! - The system will likely break if you do. */ - -div#header, div#footer, div#controls, .slide {position: absolute;} -html>body div#header, html>body div#footer, - html>body div#controls, html>body .slide {position: fixed;} -.handout {display: none;} -.layout {display: block;} -.slide, .hideme, .incremental {visibility: hidden;} -#slide0 {visibility: visible;} diff --git a/test/functional/expected/ui/default/slides.css b/test/functional/expected/ui/default/slides.css deleted file mode 100644 index 82bdc0ee0..000000000 --- a/test/functional/expected/ui/default/slides.css +++ /dev/null @@ -1,10 +0,0 @@ -/* This file has been placed in the public domain. */ - -/* required to make the slide show run at all */ -@import url(s5-core.css); - -/* sets basic placement and size of slide components */ -@import url(framing.css); - -/* styles that make the slides look good */ -@import url(pretty.css); diff --git a/test/functional/expected/ui/default/slides.js b/test/functional/expected/ui/default/slides.js deleted file mode 100644 index 81e04e5d4..000000000 --- a/test/functional/expected/ui/default/slides.js +++ /dev/null @@ -1,558 +0,0 @@ -// S5 v1.1 slides.js -- released into the Public Domain -// Modified for Docutils (http://docutils.sf.net) by David Goodger -// -// Please see http://www.meyerweb.com/eric/tools/s5/credits.html for -// information about all the wonderful and talented contributors to this code! - -var undef; -var slideCSS = ''; -var snum = 0; -var smax = 1; -var slideIDs = new Array(); -var incpos = 0; -var number = undef; -var s5mode = true; -var defaultView = 'slideshow'; -var controlVis = 'visible'; - -var isIE = navigator.appName == 'Microsoft Internet Explorer' ? 1 : 0; -var isOp = navigator.userAgent.indexOf('Opera') > -1 ? 1 : 0; -var isGe = navigator.userAgent.indexOf('Gecko') > -1 && navigator.userAgent.indexOf('Safari') < 1 ? 1 : 0; - -function hasClass(object, className) { - if (!object.className) return false; - return (object.className.search('(^|\\s)' + className + '(\\s|$)') != -1); -} - -function hasValue(object, value) { - if (!object) return false; - return (object.search('(^|\\s)' + value + '(\\s|$)') != -1); -} - -function removeClass(object,className) { - if (!object) return; - object.className = object.className.replace(new RegExp('(^|\\s)'+className+'(\\s|$)'), RegExp.$1+RegExp.$2); -} - -function addClass(object,className) { - if (!object || hasClass(object, className)) return; - if (object.className) { - object.className += ' '+className; - } else { - object.className = className; - } -} - -function GetElementsWithClassName(elementName,className) { - var allElements = document.getElementsByTagName(elementName); - var elemColl = new Array(); - for (var i = 0; i< allElements.length; i++) { - if (hasClass(allElements[i], className)) { - elemColl[elemColl.length] = allElements[i]; - } - } - return elemColl; -} - -function isParentOrSelf(element, id) { - if (element == null || element.nodeName=='BODY') return false; - else if (element.id == id) return true; - else return isParentOrSelf(element.parentNode, id); -} - -function nodeValue(node) { - var result = ""; - if (node.nodeType == 1) { - var children = node.childNodes; - for (var i = 0; i < children.length; ++i) { - result += nodeValue(children[i]); - } - } - else if (node.nodeType == 3) { - result = node.nodeValue; - } - return(result); -} - -function slideLabel() { - var slideColl = GetElementsWithClassName('*','slide'); - var list = document.getElementById('jumplist'); - smax = slideColl.length; - for (var n = 0; n < smax; n++) { - var obj = slideColl[n]; - - var did = 'slide' + n.toString(); - if (obj.getAttribute('id')) { - slideIDs[n] = obj.getAttribute('id'); - } - else { - obj.setAttribute('id',did); - slideIDs[n] = did; - } - if (isOp) continue; - - var otext = ''; - var menu = obj.firstChild; - if (!menu) continue; // to cope with empty slides - while (menu && menu.nodeType == 3) { - menu = menu.nextSibling; - } - if (!menu) continue; // to cope with slides with only text nodes - - var menunodes = menu.childNodes; - for (var o = 0; o < menunodes.length; o++) { - otext += nodeValue(menunodes[o]); - } - list.options[list.length] = new Option(n + ' : ' + otext, n); - } -} - -function currentSlide() { - var cs; - var footer_nodes; - var vis = 'visible'; - if (document.getElementById) { - cs = document.getElementById('currentSlide'); - footer_nodes = document.getElementById('footer').childNodes; - } else { - cs = document.currentSlide; - footer = document.footer.childNodes; - } - cs.innerHTML = '' + snum + '<\/span> ' + - '\/<\/span> ' + - '' + (smax-1) + '<\/span>'; - if (snum == 0) { - vis = 'hidden'; - } - cs.style.visibility = vis; - for (var i = 0; i < footer_nodes.length; i++) { - if (footer_nodes[i].nodeType == 1) { - footer_nodes[i].style.visibility = vis; - } - } -} - -function go(step) { - if (document.getElementById('slideProj').disabled || step == 0) return; - var jl = document.getElementById('jumplist'); - var cid = slideIDs[snum]; - var ce = document.getElementById(cid); - if (incrementals[snum].length > 0) { - for (var i = 0; i < incrementals[snum].length; i++) { - removeClass(incrementals[snum][i], 'current'); - removeClass(incrementals[snum][i], 'incremental'); - } - } - if (step != 'j') { - snum += step; - lmax = smax - 1; - if (snum > lmax) snum = lmax; - if (snum < 0) snum = 0; - } else - snum = parseInt(jl.value); - var nid = slideIDs[snum]; - var ne = document.getElementById(nid); - if (!ne) { - ne = document.getElementById(slideIDs[0]); - snum = 0; - } - if (step < 0) {incpos = incrementals[snum].length} else {incpos = 0;} - if (incrementals[snum].length > 0 && incpos == 0) { - for (var i = 0; i < incrementals[snum].length; i++) { - if (hasClass(incrementals[snum][i], 'current')) - incpos = i + 1; - else - addClass(incrementals[snum][i], 'incremental'); - } - } - if (incrementals[snum].length > 0 && incpos > 0) - addClass(incrementals[snum][incpos - 1], 'current'); - ce.style.visibility = 'hidden'; - ne.style.visibility = 'visible'; - jl.selectedIndex = snum; - currentSlide(); - number = 0; -} - -function goTo(target) { - if (target >= smax || target == snum) return; - go(target - snum); -} - -function subgo(step) { - if (step > 0) { - removeClass(incrementals[snum][incpos - 1],'current'); - removeClass(incrementals[snum][incpos], 'incremental'); - addClass(incrementals[snum][incpos],'current'); - incpos++; - } else { - incpos--; - removeClass(incrementals[snum][incpos],'current'); - addClass(incrementals[snum][incpos], 'incremental'); - addClass(incrementals[snum][incpos - 1],'current'); - } -} - -function toggle() { - var slideColl = GetElementsWithClassName('*','slide'); - var slides = document.getElementById('slideProj'); - var outline = document.getElementById('outlineStyle'); - if (!slides.disabled) { - slides.disabled = true; - outline.disabled = false; - s5mode = false; - fontSize('1em'); - for (var n = 0; n < smax; n++) { - var slide = slideColl[n]; - slide.style.visibility = 'visible'; - } - } else { - slides.disabled = false; - outline.disabled = true; - s5mode = true; - fontScale(); - for (var n = 0; n < smax; n++) { - var slide = slideColl[n]; - slide.style.visibility = 'hidden'; - } - slideColl[snum].style.visibility = 'visible'; - } -} - -function showHide(action) { - var obj = GetElementsWithClassName('*','hideme')[0]; - switch (action) { - case 's': obj.style.visibility = 'visible'; break; - case 'h': obj.style.visibility = 'hidden'; break; - case 'k': - if (obj.style.visibility != 'visible') { - obj.style.visibility = 'visible'; - } else { - obj.style.visibility = 'hidden'; - } - break; - } -} - -// 'keys' code adapted from MozPoint (http://mozpoint.mozdev.org/) -function keys(key) { - if (!key) { - key = event; - key.which = key.keyCode; - } - if (key.which == 84) { - toggle(); - return; - } - if (s5mode) { - switch (key.which) { - case 10: // return - case 13: // enter - if (window.event && isParentOrSelf(window.event.srcElement, 'controls')) return; - if (key.target && isParentOrSelf(key.target, 'controls')) return; - if(number != undef) { - goTo(number); - break; - } - case 32: // spacebar - case 34: // page down - case 39: // rightkey - case 40: // downkey - if(number != undef) { - go(number); - } else if (!incrementals[snum] || incpos >= incrementals[snum].length) { - go(1); - } else { - subgo(1); - } - break; - case 33: // page up - case 37: // leftkey - case 38: // upkey - if(number != undef) { - go(-1 * number); - } else if (!incrementals[snum] || incpos <= 0) { - go(-1); - } else { - subgo(-1); - } - break; - case 36: // home - goTo(0); - break; - case 35: // end - goTo(smax-1); - break; - case 67: // c - showHide('k'); - break; - } - if (key.which < 48 || key.which > 57) { - number = undef; - } else { - if (window.event && isParentOrSelf(window.event.srcElement, 'controls')) return; - if (key.target && isParentOrSelf(key.target, 'controls')) return; - number = (((number != undef) ? number : 0) * 10) + (key.which - 48); - } - } - return false; -} - -function clicker(e) { - number = undef; - var target; - if (window.event) { - target = window.event.srcElement; - e = window.event; - } else target = e.target; - if (target.href != null || hasValue(target.rel, 'external') || isParentOrSelf(target, 'controls') || isParentOrSelf(target,'embed') || isParentOrSelf(target, 'object')) return true; - if (!e.which || e.which == 1) { - if (!incrementals[snum] || incpos >= incrementals[snum].length) { - go(1); - } else { - subgo(1); - } - } -} - -function findSlide(hash) { - var target = document.getElementById(hash); - if (target) { - for (var i = 0; i < slideIDs.length; i++) { - if (target.id == slideIDs[i]) return i; - } - } - return null; -} - -function slideJump() { - if (window.location.hash == null || window.location.hash == '') { - currentSlide(); - return; - } - if (window.location.hash == null) return; - var dest = null; - dest = findSlide(window.location.hash.slice(1)); - if (dest == null) { - dest = 0; - } - go(dest - snum); -} - -function fixLinks() { - var thisUri = window.location.href; - thisUri = thisUri.slice(0, thisUri.length - window.location.hash.length); - var aelements = document.getElementsByTagName('A'); - for (var i = 0; i < aelements.length; i++) { - var a = aelements[i].href; - var slideID = a.match('\#.+'); - if ((slideID) && (slideID[0].slice(0,1) == '#')) { - var dest = findSlide(slideID[0].slice(1)); - if (dest != null) { - if (aelements[i].addEventListener) { - aelements[i].addEventListener("click", new Function("e", - "if (document.getElementById('slideProj').disabled) return;" + - "go("+dest+" - snum); " + - "if (e.preventDefault) e.preventDefault();"), true); - } else if (aelements[i].attachEvent) { - aelements[i].attachEvent("onclick", new Function("", - "if (document.getElementById('slideProj').disabled) return;" + - "go("+dest+" - snum); " + - "event.returnValue = false;")); - } - } - } - } -} - -function externalLinks() { - if (!document.getElementsByTagName) return; - var anchors = document.getElementsByTagName('a'); - for (var i=0; i' + - '