From 5c58a618e2bbf483e2038ce3a10195de6fa88e2a Mon Sep 17 00:00:00 2001 From: Shaun McCance Date: Tue, 8 May 2007 22:20:20 +0000 Subject: - Added some more linenumbering tests - Added various synopsis tests * test/testbook/testbook.xml: - Added some more linenumbering tests - Added various synopsis tests * xslt/docbook/common/db-common.xsl: * xslt/docbook/html/db2html-block.xsl: * xslt/docbook/html/db2html-css.xsl: * xslt/docbook/html/db2html-funcsynopsis.xsl: - Visual updates for synopses and line numbering * xslt/docbook/html/db2html-classsynopsis.xsl: - Implemented Python support svn path=/trunk/; revision=941 --- test/testbook/testbook.xml | 325 +++++++++++++++++++++++++++++++++++++-------- 1 file changed, 272 insertions(+), 53 deletions(-) (limited to 'test') diff --git a/test/testbook/testbook.xml b/test/testbook/testbook.xml index 41a965fa..ee9373cd 100644 --- a/test/testbook/testbook.xml +++ b/test/testbook/testbook.xml @@ -203,55 +203,6 @@ $(_DOC_LC_DOCS) : $(_DOC_C_DOCS) -
- Miscellaneous - - - Henry Spencer - Those who do not understand Unix are condemned to reinvent it, - poorly. - - - The above was brought to you courtesy of the epigraph - element. Now here is an address element: - -
Free Software Foundation -51 Franklin Street, Fifth Floor -Boston, MA 02110-1301 -USA
- - Here is a blockquote element: - -
- Richard Stallman, from the GNU Manifeto - I consider that the golden rule requires that if I like a program - I must share it with other people who like it. Software sellers want to - divide the users and conquer them, making each user agree not to share - with others. I refuse to break solidarity with other users in this way. - I cannot in good conscience sign a nondisclosure agreement or a software - license agreement. For years I worked within the Artificial Intelligence - Lab to resist such tendencies and other inhospitalities, but eventually - they had gone too far: I could not remain in an institution where such - things are done for me against my will. -
- - - Formal Paragraph - Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed risus dui, - faucibus at, blandit eu, congue in, sem. Suspendisse nec mi. Sed vel augue. - Cras egestas. Vivamus nisi. Fusce neque. Aenean posuere, orci non lacinia - consectetuer, neque libero semper metus, ut ullamcorper eros lorem at tellus. - Ut ante tellus, iaculis at, tincidunt quis, ultrices at, ligula. Pellentesque - porttitor condimentum nulla. - - - Next we have a literallayout element: - - This is a line. -This is another line. - This line is indented. -
Program Listings @@ -338,7 +289,25 @@ function runline (line, ix, jx, pre, aft, char, name, id, fmt) { } } ]]> -
+ + +BEGIN { print "<section>"; } + + + Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed risus dui, + faucibus at, blandit eu, congue in, sem. Suspendisse nec mi. Sed vel augue. + Cras egestas. Vivamus nisi. Fusce neque. Aenean posuere, orci non lacinia + consectetuer, neque libero semper metus, ut ullamcorper eros lorem at tellus. + Ut ante tellus, iaculis at, tincidunt quis, ultrices at, ligula. Pellentesque + porttitor condimentum nulla. + + +# The starting line number is 701. +# So this is line number 72. + + + +
Screens @@ -362,11 +331,92 @@ XInclude processing testbook.xml took 0 ms Running stylesheet and saving result took 144 ms ]]> -
+ [shaunm@verso testbook] make + + + + +
+ Miscellaneous + + + Henry Spencer + Those who do not understand Unix are condemned to reinvent it, + poorly. + + + The above was brought to you courtesy of the epigraph + element. Now here is an address element: + +
Free Software Foundation +51 Franklin Street, Fifth Floor +Boston, MA 02110-1301 +USA
+ + Here is a blockquote element: + +
+ Richard Stallman, from the GNU Manifeto + I consider that the golden rule requires that if I like a program + I must share it with other people who like it. Software sellers want to + divide the users and conquer them, making each user agree not to share + with others. I refuse to break solidarity with other users in this way. + I cannot in good conscience sign a nondisclosure agreement or a software + license agreement. For years I worked within the Artificial Intelligence + Lab to resist such tendencies and other inhospitalities, but eventually + they had gone too far: I could not remain in an institution where such + things are done for me against my will. +
+ + + Formal Paragraph + Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed risus dui, + faucibus at, blandit eu, congue in, sem. Suspendisse nec mi. Sed vel augue. + Cras egestas. Vivamus nisi. Fusce neque. Aenean posuere, orci non lacinia + consectetuer, neque libero semper metus, ut ullamcorper eros lorem at tellus. + Ut ante tellus, iaculis at, tincidunt quis, ultrices at, ligula. Pellentesque + porttitor condimentum nulla. + + + Next we have a literallayout element: + + This is a line. +This is another line. + This line is indented. + + And here is a synopsis element: + + + GtkButton; +GtkWidget* gtk_button_new (void); +GtkWidget* gtk_button_new_with_label (const gchar *label); +GtkWidget* gtk_button_new_with_mnemonic (const gchar *label); +GtkWidget* gtk_button_new_from_stock (const gchar *stock_id); +]]> + +void gtk_button_pressed (GtkButton *button); +void gtk_button_released (GtkButton *button); +void gtk_button_clicked (GtkButton *button); +void gtk_button_enter (GtkButton *button); +void gtk_button_leave (GtkButton *button); +]]>
@@ -1048,5 +1098,174 @@ porttitor condimentum nulla. - + + +Class Synopses + +
+C++ + +Here is a classsynopsis: + + Button + publicBin + + public + Button + + + + public + explicit + + const + Glib::ustring& + label + + + bool + mnemonic + false + + + + public + virtual + + + + private + friend + class + Button_Class + + + private + static + CppClassType + button_class_ + + + protected + virtual + + on_pressed + + + + protected + virtual + + on_released + + + + protected + virtual + + on_clicked + + + + protected + virtual + + on_enter + + + + protected + virtual + + on_leave + + + + protected + virtual + + on_activate + + + + public + GType + get_type + + G_GNUC_CONST + + + public + GType + get_base_type + + G_GNUC_CONST + + + public + static + bool + fake + true + + + +Here is a standalone methodsynopsis: + +public + +frobnicate +Foofoo +constboolfrobtrue +FROB + + +
+ +
+C# +
+ +
+Java +
+ +
+Python + +Here is a classsynopsis: + +gtk.Button +gtk.Bin + + + label + None + + + stock + None + + + use_underline + True + + + +pressed +released +clicked +enter +leave + + set_relief + newstyle + +get_relief +fakeTrue + +
+ +
+ -- cgit v1.2.1