From 60071b839fbfa8cab2c46c1752d063f0e707d8e4 Mon Sep 17 00:00:00 2001 From: uid48421 Date: Wed, 4 Jul 2001 15:53:15 +0000 Subject: [PATCH] Updated test documents --- testdocs/authors.xml | 79 +++++++++++++++++++++++ testdocs/book.xml | 1 + testdocs/ebnf.xml | 134 +++++++++++++++++++++++++++++++++++++++ testdocs/equation.xml | 49 ++++++++++++++ testdocs/glossary.xml | 8 ++- testdocs/mediaobject.xml | 33 ++++++++++ testdocs/mlang.pl | 4 +- testdocs/xref.xml | 50 +++++++++++++++ 8 files changed, 356 insertions(+), 2 deletions(-) create mode 100644 testdocs/authors.xml create mode 100644 testdocs/ebnf.xml create mode 100644 testdocs/equation.xml create mode 100644 testdocs/mediaobject.xml create mode 100644 testdocs/xref.xml diff --git a/testdocs/authors.xml b/testdocs/authors.xml new file mode 100644 index 000000000..b6917be24 --- /dev/null +++ b/testdocs/authors.xml @@ -0,0 +1,79 @@ + + + + + +Book Title + +book keyword1 +book keyword2 + + + +John +Doe + + +Jane +Doe +Some contribution + + +A. +Nonymous + + +Janice +Doe + + + + +Some legal notice. Some legal notice. Some legal notice. + + +16 December 2000 + +Some abstract. Some abstract. Some abstract. Some abstract. +Some abstract. Some abstract. Some abstract. Some abstract. +Some abstract. Some abstract. Some abstract. Some abstract. +Some abstract. Some abstract. Some abstract. Some abstract. +Some abstract. Some abstract. Some abstract. Some abstract. +Some abstract. Some abstract. Some abstract. Some abstract. + +Some abstract. Some abstract. Some abstract. Some abstract. +Some abstract. Some abstract. Some abstract. Some abstract. + + + + +1.0 +20 Nov 1998 +ndw +Some remark about the revision + + +0.9 +19 Nov 1998 +ndw +Some remark about the revision + + +0.4 +18 Nov 1998 +ndw +Some remark about the revision + + + + +Book Chapter + +What about , one of the authors: +. + + + + diff --git a/testdocs/book.xml b/testdocs/book.xml index 6a2097460..a3d6e89f2 100644 --- a/testdocs/book.xml +++ b/testdocs/book.xml @@ -6,6 +6,7 @@ Book Title +Book Subtitle book keyword1 book keyword2 diff --git a/testdocs/ebnf.xml b/testdocs/ebnf.xml new file mode 100644 index 000000000..a07dfd770 --- /dev/null +++ b/testdocs/ebnf.xml @@ -0,0 +1,134 @@ + + +Book Title +Chapter Title +Content. + +E = E + T | T +T = T * F | F +F = number + +E = a | m +a = e + m | e - m +m = m * f | m / f | f +f = number + +3 * 4 + 5 + +Arithemetic Expressions + + Expression + ArithExpression | + MultExpression + Does this grammar actually get precedence right? + + + + + ArithExpression + Expression + '+' + MultExpression + + Expression + '-' + MultExpression + + + + MultExpression + MultExpression + '*' + MultExpression + + + MultExpression + '/' + MultExpression + + + + Number + + + + Number + [0-9]+ + + + + +Division by Zero +Division by zero is an error. + + + +Character Range + +Char +#x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] + +| [#x10000-#x10FFFF] +any Unicode character, excluding the surrogate +blocks, FFFE, and FFFF. + + + + + +Standalone Document Declaration + +SDDecl +S 'standalone' Eq + +(("'" ('yes' | 'no') "'") | ('"' ('yes' | 'no') '"')) + + + + + + + +element + +EmptyElemTag + +| STag content + + + + + + + + + +A bunch of anchors to make the preceding examples valid: + + + + + + + + + +Standalone Document Declaration +Some description... + + + +Element Valid +Some description... + + + +Element Type Match +Some description... + + + + diff --git a/testdocs/equation.xml b/testdocs/equation.xml new file mode 100644 index 000000000..fa44e8df5 --- /dev/null +++ b/testdocs/equation.xml @@ -0,0 +1,49 @@ + + +]> + +
+ +Equations + + +This is a test. Look at . + +First Equation + + + + + +e=mc^2 + + + + +Second Equation + + + + + +e=mc^2 + + + + +Third Equation + + + + + +e=mc^2 + + + + +
+ diff --git a/testdocs/glossary.xml b/testdocs/glossary.xml index 8763cb641..a0eba0d36 100644 --- a/testdocs/glossary.xml +++ b/testdocs/glossary.xml @@ -5,6 +5,12 @@ Glossary Tests +Testing + +What about glossterm. + + + foo @@ -33,7 +39,7 @@ variables used in syntax examples. Glossary Division - + foo 1. interj. Term of disgust. 2. [very common] Used very generally diff --git a/testdocs/mediaobject.xml b/testdocs/mediaobject.xml new file mode 100644 index 000000000..441818a84 --- /dev/null +++ b/testdocs/mediaobject.xml @@ -0,0 +1,33 @@ + + +]> + +
+ +Media Object + + + + + + + + + + The DocBook: TDG Duck + The Duck + + +
+ diff --git a/testdocs/mlang.pl b/testdocs/mlang.pl index f3dede07b..fb5af8f31 100644 --- a/testdocs/mlang.pl +++ b/testdocs/mlang.pl @@ -26,7 +26,8 @@ foreach my $key (keys %option) { $option{$key} = $opt{$key} if exists($opt{$key}); } -my %languages = ('ca' => 'Catalan', +my %languages = ('af' => 'Afrikaans', + 'ca' => 'Catalan', 'cs' => 'Czech', 'da' => 'Danish', 'de' => 'German', @@ -52,6 +53,7 @@ my %languages = ('ca' => 'Catalan', 'sl' => 'Slovenian', 'sr' => 'Serbian', 'sv' => 'Swedish', + 'tr' => 'Turkish', 'zh_cn' => 'Chinese (Continental)', 'zh_tw' => 'Chinese (Traditional)'); diff --git a/testdocs/xref.xml b/testdocs/xref.xml new file mode 100644 index 000000000..0f63647ce --- /dev/null +++ b/testdocs/xref.xml @@ -0,0 +1,50 @@ + + +]> + +
+ +Procedures + + +What about a cross reference to procedures +() and steps (, +, ). + + +Procedure Title +Press MENUS. + +Press MENUS. + +Press MENUS. + +Press MENUS. + +Select SETUP. + +Should be an “a” + +Should be a “b” + +Should be a “c” + +Should be a “d” + +should be an “e” + +should be an “i” + +should be an “ii” + + + + + + + +
+ -- 2.40.0