From 19fcec84d8d7d21e796c7624e521b60d28ee21ed Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 20:45:59 +0200 Subject: Adding upstream version 16.2.11+ds. Signed-off-by: Daniel Baumann --- src/boost/tools/quickbook/test/Jamfile.v2 | 173 + src/boost/tools/quickbook/test/anchor-1_1.gold | 145 + .../tools/quickbook/test/anchor-1_1.gold-html | 205 + .../tools/quickbook/test/anchor-1_1.quickbook | 80 + src/boost/tools/quickbook/test/anchor-1_6.gold | 151 + .../tools/quickbook/test/anchor-1_6.gold-html | 216 + .../tools/quickbook/test/anchor-1_6.quickbook | 88 + src/boost/tools/quickbook/test/anchor-1_7.gold | 151 + .../tools/quickbook/test/anchor-1_7.gold-html | 217 + .../tools/quickbook/test/anchor-1_7.quickbook | 97 + src/boost/tools/quickbook/test/blocks-1_5.gold | 111 + .../tools/quickbook/test/blocks-1_5.gold-html | 119 + .../tools/quickbook/test/blocks-1_5.quickbook | 46 + src/boost/tools/quickbook/test/callouts-1_5.gold | 241 ++ .../tools/quickbook/test/callouts-1_5.gold-html | 276 ++ .../tools/quickbook/test/callouts-1_5.quickbook | 51 + src/boost/tools/quickbook/test/callouts-1_7.gold | 249 ++ .../tools/quickbook/test/callouts-1_7.gold-html | 302 ++ .../tools/quickbook/test/callouts-1_7.quickbook | 73 + src/boost/tools/quickbook/test/callouts.cpp | 52 + src/boost/tools/quickbook/test/code-1_1.gold | 52 + src/boost/tools/quickbook/test/code-1_1.gold-html | 91 + src/boost/tools/quickbook/test/code-1_1.quickbook | 51 + src/boost/tools/quickbook/test/code-1_5.gold | 37 + src/boost/tools/quickbook/test/code-1_5.gold-html | 39 + src/boost/tools/quickbook/test/code-1_5.quickbook | 29 + src/boost/tools/quickbook/test/code_cpp-1_5.gold | 40 + .../tools/quickbook/test/code_cpp-1_5.gold-html | 43 + .../tools/quickbook/test/code_cpp-1_5.quickbook | 34 + .../code_cpp_mismatched_escape-1_4-fail.quickbook | 5 + .../tools/quickbook/test/code_python-1_5.gold | 10 + .../tools/quickbook/test/code_python-1_5.gold-html | 13 + .../tools/quickbook/test/code_python-1_5.quickbook | 8 + ...ode_python_mismatched_escape-1_4-fail.quickbook | 5 + .../tools/quickbook/test/code_snippet-1_1.gold | 22 + .../quickbook/test/code_snippet-1_1.gold-html | 39 + .../quickbook/test/code_snippet-1_1.quickbook | 12 + .../tools/quickbook/test/code_teletype-1_5.gold | 12 + .../quickbook/test/code_teletype-1_5.gold-html | 29 + .../quickbook/test/code_teletype-1_5.quickbook | 13 + .../test/code_unclosed_block-1_6-fail.quickbook | 4 + .../tools/quickbook/test/command-line/Jamfile.v2 | 28 + .../test/command-line/basic-1_6.quickbook | 5 + .../test/command-line/error-fail.quickbook | 5 + .../quickbook/test/command-line/error1.quickbook | 3 + .../quickbook/test/command-line/error2.quickbook | 7 + .../quickbook/test/command_line_macro-1_1.gold | 12 + .../test/command_line_macro-1_1.gold-html | 15 + .../test/command_line_macro-1_1.quickbook | 10 + .../tools/quickbook/test/cond_phrase-1_5.gold | 15 + .../tools/quickbook/test/cond_phrase-1_5.gold-html | 18 + .../tools/quickbook/test/cond_phrase-1_5.quickbook | 12 + .../tools/quickbook/test/cond_phrase-1_7.gold | 21 + .../tools/quickbook/test/cond_phrase-1_7.gold-html | 24 + .../tools/quickbook/test/cond_phrase-1_7.quickbook | 20 + src/boost/tools/quickbook/test/doc-info/Jamfile.v2 | 38 + .../tools/quickbook/test/doc-info/author1.gold | 13 + .../quickbook/test/doc-info/author1.gold-html | 14 + .../quickbook/test/doc-info/author1.quickbook | 5 + .../tools/quickbook/test/doc-info/author2.gold | 19 + .../quickbook/test/doc-info/author2.gold-html | 20 + .../quickbook/test/doc-info/author2.quickbook | 4 + .../test/doc-info/copyright-fail1.quickbook | 4 + .../test/doc-info/copyright-fail2.quickbook | 6 + .../tools/quickbook/test/doc-info/copyright1.gold | 17 + .../quickbook/test/doc-info/copyright1.gold-html | 18 + .../quickbook/test/doc-info/copyright1.quickbook | 5 + .../quickbook/test/doc-info/duplicates-1.1.gold | 35 + .../test/doc-info/duplicates-1.1.gold-html | 31 + .../test/doc-info/duplicates-1.1.quickbook | 23 + .../quickbook/test/doc-info/duplicates-1.5.gold | 32 + .../test/doc-info/duplicates-1.5.gold-html | 28 + .../test/doc-info/duplicates-1.5.quickbook | 27 + .../quickbook/test/doc-info/empty-attributes.gold | 19 + .../test/doc-info/empty-attributes.gold-html | 19 + .../test/doc-info/empty-attributes.quickbook | 16 + .../quickbook/test/doc-info/empty_title-1_1.gold | 10 + .../test/doc-info/empty_title-1_1.gold-html | 26 + .../test/doc-info/empty_title-1_1.quickbook | 8 + .../quickbook/test/doc-info/empty_title-1_5.gold | 10 + .../test/doc-info/empty_title-1_5.gold-html | 26 + .../test/doc-info/empty_title-1_5.quickbook | 7 + .../quickbook/test/doc-info/empty_title-1_6.gold | 4 + .../test/doc-info/empty_title-1_6.gold-html | 6 + .../test/doc-info/empty_title-1_6.quickbook | 1 + .../tools/quickbook/test/doc-info/encode-1.5.gold | 26 + .../quickbook/test/doc-info/encode-1.5.gold-html | 20 + .../quickbook/test/doc-info/encode-1.5.quickbook | 14 + .../tools/quickbook/test/doc-info/escape-1.6.gold | 24 + .../quickbook/test/doc-info/escape-1.6.gold-html | 20 + .../quickbook/test/doc-info/escape-1.6.quickbook | 12 + .../test/doc-info/escaped_attributes1-1_7.gold | 16 + .../doc-info/escaped_attributes1-1_7.gold-html | 17 + .../doc-info/escaped_attributes1-1_7.quickbook | 11 + .../test/doc-info/escaped_attributes2-1_7.gold | 12 + .../doc-info/escaped_attributes2-1_7.gold-html | 14 + .../doc-info/escaped_attributes2-1_7.quickbook | 10 + .../tools/quickbook/test/doc-info/id1-1.5.gold | 27 + .../quickbook/test/doc-info/id1-1.5.gold-html | 86 + .../quickbook/test/doc-info/id1-1.5.quickbook | 21 + .../test/doc-info/id1-docinfo-no-id.quickbook | 5 + .../test/doc-info/id1-no-docinfo.quickbook | 2 + .../tools/quickbook/test/doc-info/macros1-1_5.gold | 11 + .../quickbook/test/doc-info/macros1-1_5.gold-html | 9 + .../quickbook/test/doc-info/macros1-1_5.quickbook | 6 + .../tools/quickbook/test/doc-info/macros1-1_6.gold | 8 + .../quickbook/test/doc-info/macros1-1_6.gold-html | 24 + .../quickbook/test/doc-info/macros1-1_6.quickbook | 7 + .../test/doc-info/macros1-inc_1_6.quickbook | 4 + .../doc-info/missing_doc_info-1_6-fail.quickbook | 3 + .../quickbook/test/doc-info/source-mode-1.4.gold | 33 + .../test/doc-info/source-mode-1.4.gold-html | 31 + .../test/doc-info/source-mode-1.4.quickbook | 17 + .../quickbook/test/doc-info/source-mode-1.5.gold | 38 + .../test/doc-info/source-mode-1.5.gold-html | 37 + .../test/doc-info/source-mode-1.5.quickbook | 21 + .../quickbook/test/doc-info/source-mode-1.6.gold | 42 + .../test/doc-info/source-mode-1.6.gold-html | 60 + .../test/doc-info/source-mode-1.6.quickbook | 21 + .../doc-info/source-mode-cpp-include.quickbook | 4 + .../doc-info/source-mode-python-include.quickbook | 5 + .../source-mode-teletype-include.quickbook | 5 + .../test/doc-info/title_trailing_space-1_1.gold | 9 + .../doc-info/title_trailing_space-1_1.gold-html | 26 + .../doc-info/title_trailing_space-1_1.quickbook | 5 + .../test/doc-info/title_trailing_space-1_6.gold | 9 + .../doc-info/title_trailing_space-1_6.gold-html | 26 + .../doc-info/title_trailing_space-1_6.quickbook | 5 + src/boost/tools/quickbook/test/elements-1_5.gold | 18 + .../tools/quickbook/test/elements-1_5.quickbook | 13 + src/boost/tools/quickbook/test/elements-1_6.gold | 40 + .../tools/quickbook/test/elements-1_6.gold-html | 44 + .../tools/quickbook/test/elements-1_6.quickbook | 21 + src/boost/tools/quickbook/test/empty-inc.quickbook | 0 .../test/endsect-unopened-1_7-fail.quickbook | 6 + .../test/endsect-wrong-id-1_4-fail.quickbook | 6 + .../test/endsect-wrong-id-1_7-fail.quickbook | 6 + src/boost/tools/quickbook/test/escape-1_1.gold | 32 + .../tools/quickbook/test/escape-1_1.gold-html | 48 + .../tools/quickbook/test/escape-1_1.quickbook | 34 + src/boost/tools/quickbook/test/escape-1_6.gold | 32 + .../tools/quickbook/test/escape-1_6.gold-html | 48 + .../tools/quickbook/test/escape-1_6.quickbook | 35 + .../test/escape-mismatched-1_5-fail.quickbook | 5 + src/boost/tools/quickbook/test/footnotes-1_7.gold | 31 + .../tools/quickbook/test/footnotes-1_7.gold-html | 80 + .../tools/quickbook/test/footnotes-1_7.quickbook | 16 + src/boost/tools/quickbook/test/heading-1_1.gold | 76 + .../tools/quickbook/test/heading-1_1.gold-html | 100 + .../tools/quickbook/test/heading-1_1.quickbook | 55 + src/boost/tools/quickbook/test/heading-1_3.gold | 24 + .../tools/quickbook/test/heading-1_3.gold-html | 27 + .../tools/quickbook/test/heading-1_3.quickbook | 16 + src/boost/tools/quickbook/test/heading-1_5.gold | 87 + .../tools/quickbook/test/heading-1_5.gold-html | 100 + .../tools/quickbook/test/heading-1_5.quickbook | 57 + src/boost/tools/quickbook/test/heading-1_6.gold | 109 + .../tools/quickbook/test/heading-1_6.gold-html | 139 + .../tools/quickbook/test/heading-1_6.quickbook | 80 + src/boost/tools/quickbook/test/heading-1_7.gold | 113 + .../tools/quickbook/test/heading-1_7.gold-html | 142 + .../tools/quickbook/test/heading-1_7.quickbook | 83 + .../test/heading_unclosed-1_4-fail.quickbook | 3 + src/boost/tools/quickbook/test/hr-1_5.gold | 34 + src/boost/tools/quickbook/test/hr-1_5.gold-html | 45 + src/boost/tools/quickbook/test/hr-1_5.quickbook | 27 + src/boost/tools/quickbook/test/hr-1_6.gold | 39 + src/boost/tools/quickbook/test/hr-1_6.gold-html | 49 + src/boost/tools/quickbook/test/hr-1_6.quickbook | 26 + .../test/html/images/open_clipart_library_logo.svg | 143 + src/boost/tools/quickbook/test/identifier-1_5.gold | 610 +++ .../tools/quickbook/test/identifier-1_5.gold-html | 421 ++ .../tools/quickbook/test/identifier-1_5.quickbook | 148 + src/boost/tools/quickbook/test/identifier-1_6.gold | 609 +++ .../tools/quickbook/test/identifier-1_6.gold-html | 421 ++ .../tools/quickbook/test/identifier-1_6.quickbook | 148 + src/boost/tools/quickbook/test/image-1_5.gold | 64 + src/boost/tools/quickbook/test/image-1_5.gold-html | 26 + src/boost/tools/quickbook/test/image-1_5.quickbook | 19 + src/boost/tools/quickbook/test/image-1_6.gold | 51 + src/boost/tools/quickbook/test/image-1_6.gold-html | 32 + src/boost/tools/quickbook/test/image-1_6.quickbook | 23 + .../tools/quickbook/test/import-1_1-fail.quickbook | 8 + .../quickbook/test/include-1_1-fail.quickbook | 8 + src/boost/tools/quickbook/test/include-1_5.gold | 30 + .../tools/quickbook/test/include-1_5.gold-html | 61 + .../tools/quickbook/test/include-1_5.quickbook | 17 + src/boost/tools/quickbook/test/include-1_6.gold | 30 + .../tools/quickbook/test/include-1_6.gold-html | 61 + .../tools/quickbook/test/include-1_6.quickbook | 15 + src/boost/tools/quickbook/test/include-1_7.gold | 36 + .../tools/quickbook/test/include-1_7.gold-html | 74 + .../tools/quickbook/test/include-1_7.quickbook | 18 + .../tools/quickbook/test/include-inc-1_5.quickbook | 6 + .../tools/quickbook/test/include-inc.quickbook | 9 + src/boost/tools/quickbook/test/include/Jamfile.v2 | 48 + .../tools/quickbook/test/include/code-import.gold | 138 + .../quickbook/test/include/code-import.gold-html | 148 + .../quickbook/test/include/code-import.quickbook | 13 + .../tools/quickbook/test/include/code-include.gold | 50 + .../quickbook/test/include/code-include.gold-html | 55 + .../quickbook/test/include/code-include.quickbook | 16 + .../quickbook/test/include/compatibility-1_1.gold | 362 ++ .../test/include/compatibility-1_1.gold-html | 424 ++ .../test/include/compatibility-1_1.quickbook | 18 + .../quickbook/test/include/compatibility-1_5.gold | 362 ++ .../test/include/compatibility-1_5.gold-html | 424 ++ .../test/include/compatibility-1_5.quickbook | 18 + .../quickbook/test/include/compatibility-1_6.gold | 362 ++ .../test/include/compatibility-1_6.gold-html | 424 ++ .../test/include/compatibility-1_6.quickbook | 17 + .../test/include/compatibility-inc.quickbook | 31 + .../test/include/compatibility-inc_1_1.quickbook | 33 + .../test/include/compatibility-inc_1_5.quickbook | 33 + .../test/include/compatibility-inc_1_6.quickbook | 33 + .../quickbook/test/include/doc-title1-1.5.gold | 27 + .../test/include/doc-title1-1.5.gold-html | 30 + .../test/include/doc-title1-1.5.quickbook | 27 + .../test/include/doc-title1-inc1.quickbook | 1 + .../test/include/doc-title1-inc2.quickbook | 4 + .../test/include/doc-title1-inc3.quickbook | 1 + .../quickbook/test/include/doc-title1a-1.5.gold | 26 + .../test/include/doc-title1a-1.5.gold-html | 30 + .../test/include/doc-title1a-1.5.quickbook | 20 + .../tools/quickbook/test/include/filename-1_7.gold | 46 + .../quickbook/test/include/filename-1_7.gold-html | 45 + .../quickbook/test/include/filename-1_7.quickbook | 21 + .../quickbook/test/include/filename-path.gold | 18 + .../quickbook/test/include/filename-path.gold-html | 21 + .../quickbook/test/include/filename-path.quickbook | 9 + .../tools/quickbook/test/include/filename.gold | 18 + .../quickbook/test/include/filename.gold-html | 21 + .../quickbook/test/include/filename.quickbook | 9 + .../test/include/filename_include2.quickbook | 1 + .../quickbook/test/include/filename_path-1_7.gold | 18 + .../test/include/filename_path-1_7.gold-html | 21 + .../test/include/filename_path-1_7.quickbook | 7 + .../tools/quickbook/test/include/glob-1_7.gold | 41 + .../quickbook/test/include/glob-1_7.gold-html | 94 + .../quickbook/test/include/glob-1_7.quickbook | 39 + src/boost/tools/quickbook/test/include/glob1/a.qbk | 1 + .../quickbook/test/include/glob1/glob1-1/b.qbk | 1 + src/boost/tools/quickbook/test/include/glob2/a.qbk | 3 + .../quickbook/test/include/glob2/glob2-1/b.qbk | 1 + .../quickbook/test/include/import-basic-1.6.gold | 11 + .../test/include/import-basic-1.6.gold-html | 15 + .../test/include/import-basic-1.6.quickbook | 12 + .../test/include/import-basic-inc1.quickbook | 4 + .../test/include/import-basic-inc2.quickbook | 10 + .../quickbook/test/include/in_section-1_5.gold | 88 + .../test/include/in_section-1_5.gold-html | 120 + .../test/include/in_section-1_5.quickbook | 16 + .../quickbook/test/include/in_section-1_6.gold | 108 + .../test/include/in_section-1_6.gold-html | 238 ++ .../test/include/in_section-1_6.quickbook | 16 + .../test/include/in_section-inc1.quickbook | 13 + .../test/include/in_section-inc2.quickbook | 14 + .../quickbook/test/include/include-id-1.5.gold | 26 + .../test/include/include-id-1.5.gold-html | 27 + .../test/include/include-id-1.5.quickbook | 10 + .../quickbook/test/include/include-id-1.6.gold | 36 + .../test/include/include-id-1.6.gold-html | 66 + .../test/include/include-id-1.6.quickbook | 10 + .../test/include/include-id-inc1.quickbook | 1 + .../test/include/include-id-inc2.quickbook | 5 + .../test/include/include-id-inc3.quickbook | 6 + .../test/include/include_id_unbalanced-1_6.gold | 59 + .../include/include_id_unbalanced-1_6.gold-html | 89 + .../include/include_id_unbalanced-1_6.quickbook | 19 + .../include/include_id_unbalanced-inc1.quickbook | 4 + .../include/include_id_unbalanced-inc1a.quickbook | 3 + .../include/include_id_unbalanced-inc2.quickbook | 5 + .../include/include_id_unbalanced-inc2a.quickbook | 3 + .../tools/quickbook/test/include/macros-1.5.gold | 39 + .../quickbook/test/include/macros-1.5.gold-html | 42 + .../quickbook/test/include/macros-1.5.quickbook | 13 + .../tools/quickbook/test/include/macros-1.6.gold | 66 + .../quickbook/test/include/macros-1.6.gold-html | 69 + .../quickbook/test/include/macros-1.6.quickbook | 21 + .../quickbook/test/include/macros-inc1.quickbook | 15 + .../test/include/nested_compatibility-1_5.gold | 48 + .../include/nested_compatibility-1_5.gold-html | 76 + .../include/nested_compatibility-1_5.quickbook | 12 + .../test/include/nested_compatibility-1_6.gold | 48 + .../include/nested_compatibility-1_6.gold-html | 76 + .../include/nested_compatibility-1_6.quickbook | 12 + .../include/nested_compatibility-inc-1_5.quickbook | 5 + .../include/nested_compatibility-inc-1_6.quickbook | 5 + .../quickbook/test/include/section-fail1.quickbook | 6 + .../quickbook/test/include/section-fail2.quickbook | 5 + .../quickbook/test/include/section-inc1.quickbook | 1 + .../quickbook/test/include/section-inc2.quickbook | 1 + .../quickbook/test/include/section-unclosed.gold | 10 + .../test/include/section-unclosed.gold-html | 26 + .../test/include/section-unclosed.quickbook | 5 + .../tools/quickbook/test/include/section.gold | 10 + .../tools/quickbook/test/include/section.gold-html | 26 + .../tools/quickbook/test/include/section.quickbook | 6 + .../quickbook/test/include/source_mode-1_5.gold | 9 + .../test/include/source_mode-1_5.gold-html | 12 + .../test/include/source_mode-1_5.quickbook | 4 + .../quickbook/test/include/source_mode-1_6.gold | 13 + .../test/include/source_mode-1_6.gold-html | 27 + .../test/include/source_mode-1_6.quickbook | 5 + .../test/include/source_mode-inc1.quickbook | 3 + .../test/include/source_mode-inc2.quickbook | 3 + .../test/include/sub/filename_include1.quickbook | 3 + .../test/include/template_include-1_7.gold | 12 + .../test/include/template_include-1_7.gold-html | 14 + .../test/include/template_include-1_7.quickbook | 8 + .../quickbook/test/include/templates-1.5.gold | 12 + .../quickbook/test/include/templates-1.5.gold-html | 15 + .../quickbook/test/include/templates-1.5.quickbook | 7 + .../quickbook/test/include/templates-1.6.gold | 15 + .../quickbook/test/include/templates-1.6.gold-html | 18 + .../quickbook/test/include/templates-1.6.quickbook | 11 + .../test/include/templates-inc1.quickbook | 4 + src/boost/tools/quickbook/test/include2-1_6.gold | 22 + .../tools/quickbook/test/include2-1_6.gold-html | 50 + .../tools/quickbook/test/include2-1_6.quickbook | 8 + .../test/include_invalid_path1-1_7-fail.quickbook | 5 + .../test/include_invalid_path2-1_7-fail.quickbook | 5 + .../test/include_invalid_path3-1_7-fail.quickbook | 5 + .../test/include_unicode_glob-1_7-fail.quickbook | 5 + .../test/include_win_path-1_6-fail.quickbook | 5 + src/boost/tools/quickbook/test/link-1_1.gold | 45 + src/boost/tools/quickbook/test/link-1_1.gold-html | 68 + src/boost/tools/quickbook/test/link-1_1.quickbook | 48 + src/boost/tools/quickbook/test/link-1_6.gold | 49 + src/boost/tools/quickbook/test/link-1_6.gold-html | 71 + src/boost/tools/quickbook/test/link-1_6.quickbook | 52 + .../tools/quickbook/test/link-1_7-fail.quickbook | 5 + .../tools/quickbook/test/link-1_7-fail2.quickbook | 6 + src/boost/tools/quickbook/test/link-1_7.gold | 56 + src/boost/tools/quickbook/test/link-1_7.gold-html | 84 + src/boost/tools/quickbook/test/link-1_7.quickbook | 61 + src/boost/tools/quickbook/test/list_test-1_5.gold | 402 ++ .../tools/quickbook/test/list_test-1_5.gold-html | 432 ++ .../tools/quickbook/test/list_test-1_5.quickbook | 108 + .../quickbook/test/list_test-1_6-fail.quickbook | 46 + src/boost/tools/quickbook/test/list_test-1_6.gold | 450 +++ .../tools/quickbook/test/list_test-1_6.gold-html | 480 +++ .../tools/quickbook/test/list_test-1_6.quickbook | 120 + .../quickbook/test/list_test-1_7-fail1.quickbook | 9 + src/boost/tools/quickbook/test/list_test-1_7.gold | 479 +++ .../tools/quickbook/test/list_test-1_7.gold-html | 507 +++ .../tools/quickbook/test/list_test-1_7.quickbook | 134 + src/boost/tools/quickbook/test/macro-1_5.gold | 26 + src/boost/tools/quickbook/test/macro-1_5.gold-html | 30 + src/boost/tools/quickbook/test/macro-1_5.quickbook | 34 + src/boost/tools/quickbook/test/macro-1_6.gold | 26 + src/boost/tools/quickbook/test/macro-1_6.gold-html | 30 + src/boost/tools/quickbook/test/macro-1_6.quickbook | 34 + .../test/mismatched_brackets-1_1-fail.quickbook | 5 + .../quickbook/test/mismatched_brackets1-1_1.gold | 12 + .../test/mismatched_brackets1-1_1.gold-html | 15 + .../test/mismatched_brackets1-1_1.quickbook | 7 + .../test/mismatched_brackets1-1_7.quickbook | 8 + .../quickbook/test/mismatched_brackets2-1_1.gold | 9 + .../test/mismatched_brackets2-1_1.gold-html | 12 + .../test/mismatched_brackets2-1_1.quickbook | 7 + .../quickbook/test/mismatched_brackets3-1_1.gold | 12 + .../test/mismatched_brackets3-1_1.gold-html | 29 + .../test/mismatched_brackets3-1_1.quickbook | 6 + src/boost/tools/quickbook/test/newline-1_1.gold | 24 + .../tools/quickbook/test/newline-1_1.gold-html | 27 + .../tools/quickbook/test/newline-1_1.quickbook | 10 + src/boost/tools/quickbook/test/para_test-1_5.gold | 75 + .../tools/quickbook/test/para_test-1_5.gold-html | 97 + .../tools/quickbook/test/para_test-1_5.quickbook | 81 + .../quickbook/test/post_process-fail.quickbook | 3 + .../tools/quickbook/test/preformatted-1_1.gold | 40 + .../quickbook/test/preformatted-1_1.gold-html | 58 + .../quickbook/test/preformatted-1_1.quickbook | 32 + .../tools/quickbook/test/preformatted-1_6.gold | 40 + .../quickbook/test/preformatted-1_6.gold-html | 58 + .../quickbook/test/preformatted-1_6.quickbook | 33 + .../tools/quickbook/test/python/include_glob.qbk | 11 + .../quickbook/test/python/include_glob_deps.txt | 6 + .../quickbook/test/python/include_glob_locs.txt | 9 + .../tools/quickbook/test/python/include_path.qbk | 12 + .../quickbook/test/python/include_path_deps.txt | 6 + .../quickbook/test/python/include_path_locs.txt | 9 + .../quickbook/test/python/missing_relative.qbk | 14 + .../test/python/missing_relative_deps.txt | 4 + .../test/python/missing_relative_locs.txt | 7 + src/boost/tools/quickbook/test/python/run_tests.py | 191 + src/boost/tools/quickbook/test/python/simple.qbk | 23 + src/boost/tools/quickbook/test/python/simple.xml | 36 + .../test/python/simple_custom_pretty_print.xml | 42 + .../test/python/simple_no_pretty_print.xml | 36 + .../test/python/simple_no_self_linked.xml | 36 + src/boost/tools/quickbook/test/python/sub1/a.qbk | 9 + src/boost/tools/quickbook/test/python/sub2/b.qbk | 9 + .../tools/quickbook/test/python/svg_missing.qbk | 11 + .../quickbook/test/python/svg_missing_deps.txt | 4 + .../quickbook/test/python/svg_missing_locs.txt | 5 + .../tools/quickbook/test/quickbook-testing.jam | 185 + .../tools/quickbook/test/quickbook_manual-1_4.gold | 3945 ++++++++++++++++++ .../quickbook/test/quickbook_manual-1_4.gold-html | 4177 ++++++++++++++++++++ .../quickbook/test/quickbook_manual-1_4.quickbook | 1981 ++++++++++ src/boost/tools/quickbook/test/regen-gold.sh | 47 + src/boost/tools/quickbook/test/role-1_6.gold | 9 + src/boost/tools/quickbook/test/role-1_6.gold-html | 12 + src/boost/tools/quickbook/test/role-1_6.quickbook | 5 + .../tools/quickbook/test/role-1_7-fail.quickbook | 5 + src/boost/tools/quickbook/test/role-1_7.gold | 13 + src/boost/tools/quickbook/test/role-1_7.gold-html | 16 + src/boost/tools/quickbook/test/role-1_7.quickbook | 13 + src/boost/tools/quickbook/test/section-1_4.gold | 20 + .../tools/quickbook/test/section-1_4.gold-html | 58 + .../tools/quickbook/test/section-1_4.quickbook | 12 + .../tools/quickbook/test/section-1_5-unclosed.gold | 10 + .../quickbook/test/section-1_5-unclosed.gold-html | 27 + .../quickbook/test/section-1_5-unclosed.quickbook | 5 + src/boost/tools/quickbook/test/section-1_5.gold | 19 + .../tools/quickbook/test/section-1_5.gold-html | 57 + .../tools/quickbook/test/section-1_5.quickbook | 12 + src/boost/tools/quickbook/test/section-1_7.gold | 32 + .../tools/quickbook/test/section-1_7.gold-html | 100 + .../tools/quickbook/test/section-1_7.quickbook | 23 + .../tools/quickbook/test/simple_markup-1_5.gold | 58 + .../quickbook/test/simple_markup-1_5.gold-html | 75 + .../quickbook/test/simple_markup-1_5.quickbook | 42 + src/boost/tools/quickbook/test/snippets/Jamfile.v2 | 18 + .../tools/quickbook/test/snippets/pass_thru.cpp | 33 + .../tools/quickbook/test/snippets/pass_thru.gold | 35 + .../quickbook/test/snippets/pass_thru.gold-html | 38 + .../tools/quickbook/test/snippets/pass_thru.py | 13 + .../quickbook/test/snippets/pass_thru.quickbook | 12 + .../test/snippets/unbalanced_snippet1-1_5.gold | 10 + .../snippets/unbalanced_snippet1-1_5.gold-html | 13 + .../snippets/unbalanced_snippet1-1_5.quickbook | 8 + .../unbalanced_snippet1-1_6-fail.quickbook | 7 + .../test/snippets/unbalanced_snippet1.cpp | 11 + .../unbalanced_snippet2-1_6-fail.quickbook | 5 + .../test/snippets/unbalanced_snippet2.cpp | 9 + .../tools/quickbook/test/source_mode-1_7.gold | 63 + .../tools/quickbook/test/source_mode-1_7.gold-html | 80 + .../tools/quickbook/test/source_mode-1_7.quickbook | 24 + src/boost/tools/quickbook/test/src/text_diff.cpp | 96 + .../quickbook/test/stray_close_bracket-1_1.gold | 9 + .../test/stray_close_bracket-1_1.gold-html | 12 + .../test/stray_close_bracket-1_1.quickbook | 3 + .../test/stray_close_bracket-1_7-fail.quickbook | 5 + src/boost/tools/quickbook/test/stub.c | 32 + src/boost/tools/quickbook/test/stub.cpp | 86 + src/boost/tools/quickbook/test/stub.py | 27 + src/boost/tools/quickbook/test/svg-1_1.gold | 18 + src/boost/tools/quickbook/test/svg-1_1.gold-html | 14 + src/boost/tools/quickbook/test/svg-1_1.quickbook | 4 + src/boost/tools/quickbook/test/table-1_3.gold | 351 ++ src/boost/tools/quickbook/test/table-1_3.gold-html | 368 ++ src/boost/tools/quickbook/test/table-1_3.quickbook | 113 + src/boost/tools/quickbook/test/table-1_5.gold | 442 +++ src/boost/tools/quickbook/test/table-1_5.gold-html | 459 +++ src/boost/tools/quickbook/test/table-1_5.quickbook | 133 + src/boost/tools/quickbook/test/table-1_6.gold | 478 +++ src/boost/tools/quickbook/test/table-1_6.gold-html | 496 +++ src/boost/tools/quickbook/test/table-1_6.quickbook | 134 + src/boost/tools/quickbook/test/table-1_7.gold | 520 +++ src/boost/tools/quickbook/test/table-1_7.gold-html | 538 +++ src/boost/tools/quickbook/test/table-1_7.quickbook | 151 + .../test/template_arguments1-1_1-fail.quickbook | 10 + .../test/template_arguments1-1_5-fail.quickbook | 11 + .../test/template_arguments2-1_1-fail.quickbook | 10 + .../test/template_arguments2-1_5-fail.quickbook | 6 + .../test/template_arguments3-1_1-fail.quickbook | 10 + .../test/template_arguments3-1_5-fail.quickbook | 11 + .../tools/quickbook/test/template_section-1_5.gold | 22 + .../quickbook/test/template_section-1_5.gold-html | 38 + .../quickbook/test/template_section-1_5.quickbook | 20 + .../test/template_section1-1_5-fail.quickbook | 9 + .../test/template_section2-1_5-fail.quickbook | 10 + .../test/template_section3-1_5-fail.quickbook | 9 + src/boost/tools/quickbook/test/templates-1_3.gold | 192 + .../tools/quickbook/test/templates-1_3.gold-html | 240 ++ .../tools/quickbook/test/templates-1_3.quickbook | 216 + src/boost/tools/quickbook/test/templates-1_4.gold | 28 + .../tools/quickbook/test/templates-1_4.gold-html | 45 + .../tools/quickbook/test/templates-1_4.quickbook | 53 + src/boost/tools/quickbook/test/templates-1_5.gold | 239 ++ .../tools/quickbook/test/templates-1_5.gold-html | 308 ++ .../tools/quickbook/test/templates-1_5.quickbook | 297 ++ .../quickbook/test/templates-1_6-fail1.quickbook | 8 + src/boost/tools/quickbook/test/templates-1_6.gold | 257 ++ .../tools/quickbook/test/templates-1_6.gold-html | 332 ++ .../tools/quickbook/test/templates-1_6.quickbook | 313 ++ .../quickbook/test/templates-1_7-fail1.quickbook | 12 + .../quickbook/test/templates-1_7-fail2.quickbook | 11 + src/boost/tools/quickbook/test/templates-1_7.gold | 302 ++ .../tools/quickbook/test/templates-1_7.gold-html | 377 ++ .../tools/quickbook/test/templates-1_7.quickbook | 322 ++ .../tools/quickbook/test/unicode_escape-1_5.gold | 156 + .../quickbook/test/unicode_escape-1_5.gold-html | 159 + .../quickbook/test/unicode_escape-1_5.quickbook | 37 + src/boost/tools/quickbook/test/unit/Jamfile.v2 | 31 + .../tools/quickbook/test/unit/cleanup_test.cpp | 80 + src/boost/tools/quickbook/test/unit/glob_test.cpp | 163 + src/boost/tools/quickbook/test/unit/path_test.cpp | 189 + .../quickbook/test/unit/post_process_test.cpp | 27 + .../tools/quickbook/test/unit/source_map_test.cpp | 444 +++ .../quickbook/test/unit/symbols_find_null.cpp | 36 + .../tools/quickbook/test/unit/symbols_tests.cpp | 374 ++ src/boost/tools/quickbook/test/unit/utils_test.cpp | 67 + .../tools/quickbook/test/unit/values_test.cpp | 128 + .../quickbook/test/unmatched_element-1_5.gold | 12 + .../quickbook/test/unmatched_element-1_5.gold-html | 15 + .../quickbook/test/unmatched_element-1_5.quickbook | 12 + .../quickbook/test/unmatched_element-1_6.gold | 12 + .../quickbook/test/unmatched_element-1_6.gold-html | 15 + .../quickbook/test/unmatched_element-1_6.quickbook | 12 + .../quickbook/test/utf16be_bom-1_5-fail.quickbook | Bin 0 -> 664 bytes .../quickbook/test/utf16le_bom-1_5-fail.quickbook | Bin 0 -> 664 bytes src/boost/tools/quickbook/test/utf8-1_5.gold | 130 + src/boost/tools/quickbook/test/utf8-1_5.gold-html | 134 + src/boost/tools/quickbook/test/utf8-1_5.quickbook | 30 + src/boost/tools/quickbook/test/utf8_bom-1_5.gold | 130 + .../tools/quickbook/test/utf8_bom-1_5.gold-html | 134 + .../tools/quickbook/test/utf8_bom-1_5.quickbook | 30 + .../quickbook/test/variablelist-1_5-fail.quickbook | 5 + .../tools/quickbook/test/variablelist-1_5.gold | 107 + .../quickbook/test/variablelist-1_5.gold-html | 103 + .../quickbook/test/variablelist-1_5.quickbook | 30 + .../quickbook/test/version-0_1-fail.quickbook | 5 + .../quickbook/test/version-1_8-fail.quickbook | 5 + .../quickbook/test/version-2_0-fail.quickbook | 5 + src/boost/tools/quickbook/test/versions/Jamfile.v2 | 19 + .../quickbook/test/versions/invalid_macro-1_6.gold | 36 + .../test/versions/invalid_macro-1_6.gold-html | 39 + .../test/versions/invalid_macro-1_6.quickbook | 14 + .../test/versions/invalid_macro-inc-1_1.quickbook | 7 + .../test/versions/templates-inc-1_1.quickbook | 15 + .../test/versions/templates-inc-1_4.quickbook | 20 + .../test/versions/templates-inc-1_5.quickbook | 19 + .../quickbook/test/versions/versions-1_6.gold | 114 + .../quickbook/test/versions/versions-1_6.gold-html | 239 ++ .../quickbook/test/versions/versions-1_6.quickbook | 26 + src/boost/tools/quickbook/test/xinclude/Jamfile.v2 | 31 + .../quickbook/test/xinclude/sub/boost-no-inspect | 2 + .../tools/quickbook/test/xinclude/sub/stub.xml | 0 .../quickbook/test/xinclude/xinclude-1_1-alt.gold | 9 + .../test/xinclude/xinclude-1_1-alt.gold-html | 9 + .../quickbook/test/xinclude/xinclude-1_1-alt2.gold | 9 + .../quickbook/test/xinclude/xinclude-1_1.gold | 9 + .../quickbook/test/xinclude/xinclude-1_1.gold-html | 9 + .../quickbook/test/xinclude/xinclude-1_1.quickbook | 6 + .../test/xinclude/xmlbase-1_6-fail.quickbook | 4 + .../quickbook/test/xinclude/xmlbase1-1_6-alt.gold | 10 + .../test/xinclude/xmlbase1-1_6-alt.gold-html | 9 + .../quickbook/test/xinclude/xmlbase1-1_6-alt2.gold | 10 + .../quickbook/test/xinclude/xmlbase1-1_6.gold | 10 + .../quickbook/test/xinclude/xmlbase1-1_6.gold-html | 9 + .../quickbook/test/xinclude/xmlbase1-1_6.quickbook | 9 + .../quickbook/test/xinclude/xmlbase2-1_6-alt.gold | 10 + .../test/xinclude/xmlbase2-1_6-alt.gold-html | 9 + .../quickbook/test/xinclude/xmlbase2-1_6-alt2.gold | 10 + .../quickbook/test/xinclude/xmlbase2-1_6.gold | 10 + .../quickbook/test/xinclude/xmlbase2-1_6.gold-html | 9 + .../quickbook/test/xinclude/xmlbase2-1_6.quickbook | 9 + src/boost/tools/quickbook/test/xml_escape-1_2.gold | 42 + .../tools/quickbook/test/xml_escape-1_2.gold-html | 54 + .../tools/quickbook/test/xml_escape-1_2.quickbook | 14 + src/boost/tools/quickbook/test/xml_escape-1_5.gold | 43 + .../tools/quickbook/test/xml_escape-1_5.gold-html | 54 + .../tools/quickbook/test/xml_escape-1_5.quickbook | 14 + 566 files changed, 44145 insertions(+) create mode 100644 src/boost/tools/quickbook/test/Jamfile.v2 create mode 100644 src/boost/tools/quickbook/test/anchor-1_1.gold create mode 100644 src/boost/tools/quickbook/test/anchor-1_1.gold-html create mode 100644 src/boost/tools/quickbook/test/anchor-1_1.quickbook create mode 100644 src/boost/tools/quickbook/test/anchor-1_6.gold create mode 100644 src/boost/tools/quickbook/test/anchor-1_6.gold-html create mode 100644 src/boost/tools/quickbook/test/anchor-1_6.quickbook create mode 100644 src/boost/tools/quickbook/test/anchor-1_7.gold create mode 100644 src/boost/tools/quickbook/test/anchor-1_7.gold-html create mode 100644 src/boost/tools/quickbook/test/anchor-1_7.quickbook create mode 100644 src/boost/tools/quickbook/test/blocks-1_5.gold create mode 100644 src/boost/tools/quickbook/test/blocks-1_5.gold-html create mode 100644 src/boost/tools/quickbook/test/blocks-1_5.quickbook create mode 100644 src/boost/tools/quickbook/test/callouts-1_5.gold create mode 100644 src/boost/tools/quickbook/test/callouts-1_5.gold-html create mode 100644 src/boost/tools/quickbook/test/callouts-1_5.quickbook create mode 100644 src/boost/tools/quickbook/test/callouts-1_7.gold create mode 100644 src/boost/tools/quickbook/test/callouts-1_7.gold-html create mode 100644 src/boost/tools/quickbook/test/callouts-1_7.quickbook create mode 100644 src/boost/tools/quickbook/test/callouts.cpp create mode 100644 src/boost/tools/quickbook/test/code-1_1.gold create mode 100644 src/boost/tools/quickbook/test/code-1_1.gold-html create mode 100644 src/boost/tools/quickbook/test/code-1_1.quickbook create mode 100644 src/boost/tools/quickbook/test/code-1_5.gold create mode 100644 src/boost/tools/quickbook/test/code-1_5.gold-html create mode 100644 src/boost/tools/quickbook/test/code-1_5.quickbook create mode 100644 src/boost/tools/quickbook/test/code_cpp-1_5.gold create mode 100644 src/boost/tools/quickbook/test/code_cpp-1_5.gold-html create mode 100644 src/boost/tools/quickbook/test/code_cpp-1_5.quickbook create mode 100644 src/boost/tools/quickbook/test/code_cpp_mismatched_escape-1_4-fail.quickbook create mode 100644 src/boost/tools/quickbook/test/code_python-1_5.gold create mode 100644 src/boost/tools/quickbook/test/code_python-1_5.gold-html create mode 100644 src/boost/tools/quickbook/test/code_python-1_5.quickbook create mode 100644 src/boost/tools/quickbook/test/code_python_mismatched_escape-1_4-fail.quickbook create mode 100644 src/boost/tools/quickbook/test/code_snippet-1_1.gold create mode 100644 src/boost/tools/quickbook/test/code_snippet-1_1.gold-html create mode 100644 src/boost/tools/quickbook/test/code_snippet-1_1.quickbook create mode 100644 src/boost/tools/quickbook/test/code_teletype-1_5.gold create mode 100644 src/boost/tools/quickbook/test/code_teletype-1_5.gold-html create mode 100644 src/boost/tools/quickbook/test/code_teletype-1_5.quickbook create mode 100644 src/boost/tools/quickbook/test/code_unclosed_block-1_6-fail.quickbook create mode 100644 src/boost/tools/quickbook/test/command-line/Jamfile.v2 create mode 100644 src/boost/tools/quickbook/test/command-line/basic-1_6.quickbook create mode 100644 src/boost/tools/quickbook/test/command-line/error-fail.quickbook create mode 100644 src/boost/tools/quickbook/test/command-line/error1.quickbook create mode 100644 src/boost/tools/quickbook/test/command-line/error2.quickbook create mode 100644 src/boost/tools/quickbook/test/command_line_macro-1_1.gold create mode 100644 src/boost/tools/quickbook/test/command_line_macro-1_1.gold-html create mode 100644 src/boost/tools/quickbook/test/command_line_macro-1_1.quickbook create mode 100644 src/boost/tools/quickbook/test/cond_phrase-1_5.gold create mode 100644 src/boost/tools/quickbook/test/cond_phrase-1_5.gold-html create mode 100644 src/boost/tools/quickbook/test/cond_phrase-1_5.quickbook create mode 100644 src/boost/tools/quickbook/test/cond_phrase-1_7.gold create mode 100644 src/boost/tools/quickbook/test/cond_phrase-1_7.gold-html create mode 100644 src/boost/tools/quickbook/test/cond_phrase-1_7.quickbook create mode 100644 src/boost/tools/quickbook/test/doc-info/Jamfile.v2 create mode 100644 src/boost/tools/quickbook/test/doc-info/author1.gold create mode 100644 src/boost/tools/quickbook/test/doc-info/author1.gold-html create mode 100644 src/boost/tools/quickbook/test/doc-info/author1.quickbook create mode 100644 src/boost/tools/quickbook/test/doc-info/author2.gold create mode 100644 src/boost/tools/quickbook/test/doc-info/author2.gold-html create mode 100644 src/boost/tools/quickbook/test/doc-info/author2.quickbook create mode 100644 src/boost/tools/quickbook/test/doc-info/copyright-fail1.quickbook create mode 100644 src/boost/tools/quickbook/test/doc-info/copyright-fail2.quickbook create mode 100644 src/boost/tools/quickbook/test/doc-info/copyright1.gold create mode 100644 src/boost/tools/quickbook/test/doc-info/copyright1.gold-html create mode 100644 src/boost/tools/quickbook/test/doc-info/copyright1.quickbook create mode 100644 src/boost/tools/quickbook/test/doc-info/duplicates-1.1.gold create mode 100644 src/boost/tools/quickbook/test/doc-info/duplicates-1.1.gold-html create mode 100644 src/boost/tools/quickbook/test/doc-info/duplicates-1.1.quickbook create mode 100644 src/boost/tools/quickbook/test/doc-info/duplicates-1.5.gold create mode 100644 src/boost/tools/quickbook/test/doc-info/duplicates-1.5.gold-html create mode 100644 src/boost/tools/quickbook/test/doc-info/duplicates-1.5.quickbook create mode 100644 src/boost/tools/quickbook/test/doc-info/empty-attributes.gold create mode 100644 src/boost/tools/quickbook/test/doc-info/empty-attributes.gold-html create mode 100644 src/boost/tools/quickbook/test/doc-info/empty-attributes.quickbook create mode 100644 src/boost/tools/quickbook/test/doc-info/empty_title-1_1.gold create mode 100644 src/boost/tools/quickbook/test/doc-info/empty_title-1_1.gold-html create mode 100644 src/boost/tools/quickbook/test/doc-info/empty_title-1_1.quickbook create mode 100644 src/boost/tools/quickbook/test/doc-info/empty_title-1_5.gold create mode 100644 src/boost/tools/quickbook/test/doc-info/empty_title-1_5.gold-html create mode 100644 src/boost/tools/quickbook/test/doc-info/empty_title-1_5.quickbook create mode 100644 src/boost/tools/quickbook/test/doc-info/empty_title-1_6.gold create mode 100644 src/boost/tools/quickbook/test/doc-info/empty_title-1_6.gold-html create mode 100644 src/boost/tools/quickbook/test/doc-info/empty_title-1_6.quickbook create mode 100644 src/boost/tools/quickbook/test/doc-info/encode-1.5.gold create mode 100644 src/boost/tools/quickbook/test/doc-info/encode-1.5.gold-html create mode 100644 src/boost/tools/quickbook/test/doc-info/encode-1.5.quickbook create mode 100644 src/boost/tools/quickbook/test/doc-info/escape-1.6.gold create mode 100644 src/boost/tools/quickbook/test/doc-info/escape-1.6.gold-html create mode 100644 src/boost/tools/quickbook/test/doc-info/escape-1.6.quickbook create mode 100644 src/boost/tools/quickbook/test/doc-info/escaped_attributes1-1_7.gold create mode 100644 src/boost/tools/quickbook/test/doc-info/escaped_attributes1-1_7.gold-html create mode 100644 src/boost/tools/quickbook/test/doc-info/escaped_attributes1-1_7.quickbook create mode 100644 src/boost/tools/quickbook/test/doc-info/escaped_attributes2-1_7.gold create mode 100644 src/boost/tools/quickbook/test/doc-info/escaped_attributes2-1_7.gold-html create mode 100644 src/boost/tools/quickbook/test/doc-info/escaped_attributes2-1_7.quickbook create mode 100644 src/boost/tools/quickbook/test/doc-info/id1-1.5.gold create mode 100644 src/boost/tools/quickbook/test/doc-info/id1-1.5.gold-html create mode 100644 src/boost/tools/quickbook/test/doc-info/id1-1.5.quickbook create mode 100644 src/boost/tools/quickbook/test/doc-info/id1-docinfo-no-id.quickbook create mode 100644 src/boost/tools/quickbook/test/doc-info/id1-no-docinfo.quickbook create mode 100644 src/boost/tools/quickbook/test/doc-info/macros1-1_5.gold create mode 100644 src/boost/tools/quickbook/test/doc-info/macros1-1_5.gold-html create mode 100644 src/boost/tools/quickbook/test/doc-info/macros1-1_5.quickbook create mode 100644 src/boost/tools/quickbook/test/doc-info/macros1-1_6.gold create mode 100644 src/boost/tools/quickbook/test/doc-info/macros1-1_6.gold-html create mode 100644 src/boost/tools/quickbook/test/doc-info/macros1-1_6.quickbook create mode 100644 src/boost/tools/quickbook/test/doc-info/macros1-inc_1_6.quickbook create mode 100644 src/boost/tools/quickbook/test/doc-info/missing_doc_info-1_6-fail.quickbook create mode 100644 src/boost/tools/quickbook/test/doc-info/source-mode-1.4.gold create mode 100644 src/boost/tools/quickbook/test/doc-info/source-mode-1.4.gold-html create mode 100644 src/boost/tools/quickbook/test/doc-info/source-mode-1.4.quickbook create mode 100644 src/boost/tools/quickbook/test/doc-info/source-mode-1.5.gold create mode 100644 src/boost/tools/quickbook/test/doc-info/source-mode-1.5.gold-html create mode 100644 src/boost/tools/quickbook/test/doc-info/source-mode-1.5.quickbook create mode 100644 src/boost/tools/quickbook/test/doc-info/source-mode-1.6.gold create mode 100644 src/boost/tools/quickbook/test/doc-info/source-mode-1.6.gold-html create mode 100644 src/boost/tools/quickbook/test/doc-info/source-mode-1.6.quickbook create mode 100644 src/boost/tools/quickbook/test/doc-info/source-mode-cpp-include.quickbook create mode 100644 src/boost/tools/quickbook/test/doc-info/source-mode-python-include.quickbook create mode 100644 src/boost/tools/quickbook/test/doc-info/source-mode-teletype-include.quickbook create mode 100644 src/boost/tools/quickbook/test/doc-info/title_trailing_space-1_1.gold create mode 100644 src/boost/tools/quickbook/test/doc-info/title_trailing_space-1_1.gold-html create mode 100644 src/boost/tools/quickbook/test/doc-info/title_trailing_space-1_1.quickbook create mode 100644 src/boost/tools/quickbook/test/doc-info/title_trailing_space-1_6.gold create mode 100644 src/boost/tools/quickbook/test/doc-info/title_trailing_space-1_6.gold-html create mode 100644 src/boost/tools/quickbook/test/doc-info/title_trailing_space-1_6.quickbook create mode 100644 src/boost/tools/quickbook/test/elements-1_5.gold create mode 100644 src/boost/tools/quickbook/test/elements-1_5.quickbook create mode 100644 src/boost/tools/quickbook/test/elements-1_6.gold create mode 100644 src/boost/tools/quickbook/test/elements-1_6.gold-html create mode 100644 src/boost/tools/quickbook/test/elements-1_6.quickbook create mode 100644 src/boost/tools/quickbook/test/empty-inc.quickbook create mode 100644 src/boost/tools/quickbook/test/endsect-unopened-1_7-fail.quickbook create mode 100644 src/boost/tools/quickbook/test/endsect-wrong-id-1_4-fail.quickbook create mode 100644 src/boost/tools/quickbook/test/endsect-wrong-id-1_7-fail.quickbook create mode 100644 src/boost/tools/quickbook/test/escape-1_1.gold create mode 100644 src/boost/tools/quickbook/test/escape-1_1.gold-html create mode 100644 src/boost/tools/quickbook/test/escape-1_1.quickbook create mode 100644 src/boost/tools/quickbook/test/escape-1_6.gold create mode 100644 src/boost/tools/quickbook/test/escape-1_6.gold-html create mode 100644 src/boost/tools/quickbook/test/escape-1_6.quickbook create mode 100644 src/boost/tools/quickbook/test/escape-mismatched-1_5-fail.quickbook create mode 100644 src/boost/tools/quickbook/test/footnotes-1_7.gold create mode 100644 src/boost/tools/quickbook/test/footnotes-1_7.gold-html create mode 100644 src/boost/tools/quickbook/test/footnotes-1_7.quickbook create mode 100644 src/boost/tools/quickbook/test/heading-1_1.gold create mode 100644 src/boost/tools/quickbook/test/heading-1_1.gold-html create mode 100644 src/boost/tools/quickbook/test/heading-1_1.quickbook create mode 100644 src/boost/tools/quickbook/test/heading-1_3.gold create mode 100644 src/boost/tools/quickbook/test/heading-1_3.gold-html create mode 100644 src/boost/tools/quickbook/test/heading-1_3.quickbook create mode 100644 src/boost/tools/quickbook/test/heading-1_5.gold create mode 100644 src/boost/tools/quickbook/test/heading-1_5.gold-html create mode 100644 src/boost/tools/quickbook/test/heading-1_5.quickbook create mode 100644 src/boost/tools/quickbook/test/heading-1_6.gold create mode 100644 src/boost/tools/quickbook/test/heading-1_6.gold-html create mode 100644 src/boost/tools/quickbook/test/heading-1_6.quickbook create mode 100644 src/boost/tools/quickbook/test/heading-1_7.gold create mode 100644 src/boost/tools/quickbook/test/heading-1_7.gold-html create mode 100644 src/boost/tools/quickbook/test/heading-1_7.quickbook create mode 100644 src/boost/tools/quickbook/test/heading_unclosed-1_4-fail.quickbook create mode 100644 src/boost/tools/quickbook/test/hr-1_5.gold create mode 100644 src/boost/tools/quickbook/test/hr-1_5.gold-html create mode 100644 src/boost/tools/quickbook/test/hr-1_5.quickbook create mode 100644 src/boost/tools/quickbook/test/hr-1_6.gold create mode 100644 src/boost/tools/quickbook/test/hr-1_6.gold-html create mode 100644 src/boost/tools/quickbook/test/hr-1_6.quickbook create mode 100644 src/boost/tools/quickbook/test/html/images/open_clipart_library_logo.svg create mode 100644 src/boost/tools/quickbook/test/identifier-1_5.gold create mode 100644 src/boost/tools/quickbook/test/identifier-1_5.gold-html create mode 100644 src/boost/tools/quickbook/test/identifier-1_5.quickbook create mode 100644 src/boost/tools/quickbook/test/identifier-1_6.gold create mode 100644 src/boost/tools/quickbook/test/identifier-1_6.gold-html create mode 100644 src/boost/tools/quickbook/test/identifier-1_6.quickbook create mode 100644 src/boost/tools/quickbook/test/image-1_5.gold create mode 100644 src/boost/tools/quickbook/test/image-1_5.gold-html create mode 100644 src/boost/tools/quickbook/test/image-1_5.quickbook create mode 100644 src/boost/tools/quickbook/test/image-1_6.gold create mode 100644 src/boost/tools/quickbook/test/image-1_6.gold-html create mode 100644 src/boost/tools/quickbook/test/image-1_6.quickbook create mode 100644 src/boost/tools/quickbook/test/import-1_1-fail.quickbook create mode 100644 src/boost/tools/quickbook/test/include-1_1-fail.quickbook create mode 100644 src/boost/tools/quickbook/test/include-1_5.gold create mode 100644 src/boost/tools/quickbook/test/include-1_5.gold-html create mode 100644 src/boost/tools/quickbook/test/include-1_5.quickbook create mode 100644 src/boost/tools/quickbook/test/include-1_6.gold create mode 100644 src/boost/tools/quickbook/test/include-1_6.gold-html create mode 100644 src/boost/tools/quickbook/test/include-1_6.quickbook create mode 100644 src/boost/tools/quickbook/test/include-1_7.gold create mode 100644 src/boost/tools/quickbook/test/include-1_7.gold-html create mode 100644 src/boost/tools/quickbook/test/include-1_7.quickbook create mode 100644 src/boost/tools/quickbook/test/include-inc-1_5.quickbook create mode 100644 src/boost/tools/quickbook/test/include-inc.quickbook create mode 100644 src/boost/tools/quickbook/test/include/Jamfile.v2 create mode 100644 src/boost/tools/quickbook/test/include/code-import.gold create mode 100644 src/boost/tools/quickbook/test/include/code-import.gold-html create mode 100644 src/boost/tools/quickbook/test/include/code-import.quickbook create mode 100644 src/boost/tools/quickbook/test/include/code-include.gold create mode 100644 src/boost/tools/quickbook/test/include/code-include.gold-html create mode 100644 src/boost/tools/quickbook/test/include/code-include.quickbook create mode 100644 src/boost/tools/quickbook/test/include/compatibility-1_1.gold create mode 100644 src/boost/tools/quickbook/test/include/compatibility-1_1.gold-html create mode 100644 src/boost/tools/quickbook/test/include/compatibility-1_1.quickbook create mode 100644 src/boost/tools/quickbook/test/include/compatibility-1_5.gold create mode 100644 src/boost/tools/quickbook/test/include/compatibility-1_5.gold-html create mode 100644 src/boost/tools/quickbook/test/include/compatibility-1_5.quickbook create mode 100644 src/boost/tools/quickbook/test/include/compatibility-1_6.gold create mode 100644 src/boost/tools/quickbook/test/include/compatibility-1_6.gold-html create mode 100644 src/boost/tools/quickbook/test/include/compatibility-1_6.quickbook create mode 100644 src/boost/tools/quickbook/test/include/compatibility-inc.quickbook create mode 100644 src/boost/tools/quickbook/test/include/compatibility-inc_1_1.quickbook create mode 100644 src/boost/tools/quickbook/test/include/compatibility-inc_1_5.quickbook create mode 100644 src/boost/tools/quickbook/test/include/compatibility-inc_1_6.quickbook create mode 100644 src/boost/tools/quickbook/test/include/doc-title1-1.5.gold create mode 100644 src/boost/tools/quickbook/test/include/doc-title1-1.5.gold-html create mode 100644 src/boost/tools/quickbook/test/include/doc-title1-1.5.quickbook create mode 100644 src/boost/tools/quickbook/test/include/doc-title1-inc1.quickbook create mode 100644 src/boost/tools/quickbook/test/include/doc-title1-inc2.quickbook create mode 100644 src/boost/tools/quickbook/test/include/doc-title1-inc3.quickbook create mode 100644 src/boost/tools/quickbook/test/include/doc-title1a-1.5.gold create mode 100644 src/boost/tools/quickbook/test/include/doc-title1a-1.5.gold-html create mode 100644 src/boost/tools/quickbook/test/include/doc-title1a-1.5.quickbook create mode 100644 src/boost/tools/quickbook/test/include/filename-1_7.gold create mode 100644 src/boost/tools/quickbook/test/include/filename-1_7.gold-html create mode 100644 src/boost/tools/quickbook/test/include/filename-1_7.quickbook create mode 100644 src/boost/tools/quickbook/test/include/filename-path.gold create mode 100644 src/boost/tools/quickbook/test/include/filename-path.gold-html create mode 100644 src/boost/tools/quickbook/test/include/filename-path.quickbook create mode 100644 src/boost/tools/quickbook/test/include/filename.gold create mode 100644 src/boost/tools/quickbook/test/include/filename.gold-html create mode 100644 src/boost/tools/quickbook/test/include/filename.quickbook create mode 100644 src/boost/tools/quickbook/test/include/filename_include2.quickbook create mode 100644 src/boost/tools/quickbook/test/include/filename_path-1_7.gold create mode 100644 src/boost/tools/quickbook/test/include/filename_path-1_7.gold-html create mode 100644 src/boost/tools/quickbook/test/include/filename_path-1_7.quickbook create mode 100644 src/boost/tools/quickbook/test/include/glob-1_7.gold create mode 100644 src/boost/tools/quickbook/test/include/glob-1_7.gold-html create mode 100644 src/boost/tools/quickbook/test/include/glob-1_7.quickbook create mode 100644 src/boost/tools/quickbook/test/include/glob1/a.qbk create mode 100644 src/boost/tools/quickbook/test/include/glob1/glob1-1/b.qbk create mode 100644 src/boost/tools/quickbook/test/include/glob2/a.qbk create mode 100644 src/boost/tools/quickbook/test/include/glob2/glob2-1/b.qbk create mode 100644 src/boost/tools/quickbook/test/include/import-basic-1.6.gold create mode 100644 src/boost/tools/quickbook/test/include/import-basic-1.6.gold-html create mode 100644 src/boost/tools/quickbook/test/include/import-basic-1.6.quickbook create mode 100644 src/boost/tools/quickbook/test/include/import-basic-inc1.quickbook create mode 100644 src/boost/tools/quickbook/test/include/import-basic-inc2.quickbook create mode 100644 src/boost/tools/quickbook/test/include/in_section-1_5.gold create mode 100644 src/boost/tools/quickbook/test/include/in_section-1_5.gold-html create mode 100644 src/boost/tools/quickbook/test/include/in_section-1_5.quickbook create mode 100644 src/boost/tools/quickbook/test/include/in_section-1_6.gold create mode 100644 src/boost/tools/quickbook/test/include/in_section-1_6.gold-html create mode 100644 src/boost/tools/quickbook/test/include/in_section-1_6.quickbook create mode 100644 src/boost/tools/quickbook/test/include/in_section-inc1.quickbook create mode 100644 src/boost/tools/quickbook/test/include/in_section-inc2.quickbook create mode 100644 src/boost/tools/quickbook/test/include/include-id-1.5.gold create mode 100644 src/boost/tools/quickbook/test/include/include-id-1.5.gold-html create mode 100644 src/boost/tools/quickbook/test/include/include-id-1.5.quickbook create mode 100644 src/boost/tools/quickbook/test/include/include-id-1.6.gold create mode 100644 src/boost/tools/quickbook/test/include/include-id-1.6.gold-html create mode 100644 src/boost/tools/quickbook/test/include/include-id-1.6.quickbook create mode 100644 src/boost/tools/quickbook/test/include/include-id-inc1.quickbook create mode 100644 src/boost/tools/quickbook/test/include/include-id-inc2.quickbook create mode 100644 src/boost/tools/quickbook/test/include/include-id-inc3.quickbook create mode 100644 src/boost/tools/quickbook/test/include/include_id_unbalanced-1_6.gold create mode 100644 src/boost/tools/quickbook/test/include/include_id_unbalanced-1_6.gold-html create mode 100644 src/boost/tools/quickbook/test/include/include_id_unbalanced-1_6.quickbook create mode 100644 src/boost/tools/quickbook/test/include/include_id_unbalanced-inc1.quickbook create mode 100644 src/boost/tools/quickbook/test/include/include_id_unbalanced-inc1a.quickbook create mode 100644 src/boost/tools/quickbook/test/include/include_id_unbalanced-inc2.quickbook create mode 100644 src/boost/tools/quickbook/test/include/include_id_unbalanced-inc2a.quickbook create mode 100644 src/boost/tools/quickbook/test/include/macros-1.5.gold create mode 100644 src/boost/tools/quickbook/test/include/macros-1.5.gold-html create mode 100644 src/boost/tools/quickbook/test/include/macros-1.5.quickbook create mode 100644 src/boost/tools/quickbook/test/include/macros-1.6.gold create mode 100644 src/boost/tools/quickbook/test/include/macros-1.6.gold-html create mode 100644 src/boost/tools/quickbook/test/include/macros-1.6.quickbook create mode 100644 src/boost/tools/quickbook/test/include/macros-inc1.quickbook create mode 100644 src/boost/tools/quickbook/test/include/nested_compatibility-1_5.gold create mode 100644 src/boost/tools/quickbook/test/include/nested_compatibility-1_5.gold-html create mode 100644 src/boost/tools/quickbook/test/include/nested_compatibility-1_5.quickbook create mode 100644 src/boost/tools/quickbook/test/include/nested_compatibility-1_6.gold create mode 100644 src/boost/tools/quickbook/test/include/nested_compatibility-1_6.gold-html create mode 100644 src/boost/tools/quickbook/test/include/nested_compatibility-1_6.quickbook create mode 100644 src/boost/tools/quickbook/test/include/nested_compatibility-inc-1_5.quickbook create mode 100644 src/boost/tools/quickbook/test/include/nested_compatibility-inc-1_6.quickbook create mode 100644 src/boost/tools/quickbook/test/include/section-fail1.quickbook create mode 100644 src/boost/tools/quickbook/test/include/section-fail2.quickbook create mode 100644 src/boost/tools/quickbook/test/include/section-inc1.quickbook create mode 100644 src/boost/tools/quickbook/test/include/section-inc2.quickbook create mode 100644 src/boost/tools/quickbook/test/include/section-unclosed.gold create mode 100644 src/boost/tools/quickbook/test/include/section-unclosed.gold-html create mode 100644 src/boost/tools/quickbook/test/include/section-unclosed.quickbook create mode 100644 src/boost/tools/quickbook/test/include/section.gold create mode 100644 src/boost/tools/quickbook/test/include/section.gold-html create mode 100644 src/boost/tools/quickbook/test/include/section.quickbook create mode 100644 src/boost/tools/quickbook/test/include/source_mode-1_5.gold create mode 100644 src/boost/tools/quickbook/test/include/source_mode-1_5.gold-html create mode 100644 src/boost/tools/quickbook/test/include/source_mode-1_5.quickbook create mode 100644 src/boost/tools/quickbook/test/include/source_mode-1_6.gold create mode 100644 src/boost/tools/quickbook/test/include/source_mode-1_6.gold-html create mode 100644 src/boost/tools/quickbook/test/include/source_mode-1_6.quickbook create mode 100644 src/boost/tools/quickbook/test/include/source_mode-inc1.quickbook create mode 100644 src/boost/tools/quickbook/test/include/source_mode-inc2.quickbook create mode 100644 src/boost/tools/quickbook/test/include/sub/filename_include1.quickbook create mode 100644 src/boost/tools/quickbook/test/include/template_include-1_7.gold create mode 100644 src/boost/tools/quickbook/test/include/template_include-1_7.gold-html create mode 100644 src/boost/tools/quickbook/test/include/template_include-1_7.quickbook create mode 100644 src/boost/tools/quickbook/test/include/templates-1.5.gold create mode 100644 src/boost/tools/quickbook/test/include/templates-1.5.gold-html create mode 100644 src/boost/tools/quickbook/test/include/templates-1.5.quickbook create mode 100644 src/boost/tools/quickbook/test/include/templates-1.6.gold create mode 100644 src/boost/tools/quickbook/test/include/templates-1.6.gold-html create mode 100644 src/boost/tools/quickbook/test/include/templates-1.6.quickbook create mode 100644 src/boost/tools/quickbook/test/include/templates-inc1.quickbook create mode 100644 src/boost/tools/quickbook/test/include2-1_6.gold create mode 100644 src/boost/tools/quickbook/test/include2-1_6.gold-html create mode 100644 src/boost/tools/quickbook/test/include2-1_6.quickbook create mode 100644 src/boost/tools/quickbook/test/include_invalid_path1-1_7-fail.quickbook create mode 100644 src/boost/tools/quickbook/test/include_invalid_path2-1_7-fail.quickbook create mode 100644 src/boost/tools/quickbook/test/include_invalid_path3-1_7-fail.quickbook create mode 100644 src/boost/tools/quickbook/test/include_unicode_glob-1_7-fail.quickbook create mode 100644 src/boost/tools/quickbook/test/include_win_path-1_6-fail.quickbook create mode 100644 src/boost/tools/quickbook/test/link-1_1.gold create mode 100644 src/boost/tools/quickbook/test/link-1_1.gold-html create mode 100644 src/boost/tools/quickbook/test/link-1_1.quickbook create mode 100644 src/boost/tools/quickbook/test/link-1_6.gold create mode 100644 src/boost/tools/quickbook/test/link-1_6.gold-html create mode 100644 src/boost/tools/quickbook/test/link-1_6.quickbook create mode 100644 src/boost/tools/quickbook/test/link-1_7-fail.quickbook create mode 100644 src/boost/tools/quickbook/test/link-1_7-fail2.quickbook create mode 100644 src/boost/tools/quickbook/test/link-1_7.gold create mode 100644 src/boost/tools/quickbook/test/link-1_7.gold-html create mode 100644 src/boost/tools/quickbook/test/link-1_7.quickbook create mode 100644 src/boost/tools/quickbook/test/list_test-1_5.gold create mode 100644 src/boost/tools/quickbook/test/list_test-1_5.gold-html create mode 100644 src/boost/tools/quickbook/test/list_test-1_5.quickbook create mode 100644 src/boost/tools/quickbook/test/list_test-1_6-fail.quickbook create mode 100644 src/boost/tools/quickbook/test/list_test-1_6.gold create mode 100644 src/boost/tools/quickbook/test/list_test-1_6.gold-html create mode 100644 src/boost/tools/quickbook/test/list_test-1_6.quickbook create mode 100644 src/boost/tools/quickbook/test/list_test-1_7-fail1.quickbook create mode 100644 src/boost/tools/quickbook/test/list_test-1_7.gold create mode 100644 src/boost/tools/quickbook/test/list_test-1_7.gold-html create mode 100644 src/boost/tools/quickbook/test/list_test-1_7.quickbook create mode 100644 src/boost/tools/quickbook/test/macro-1_5.gold create mode 100644 src/boost/tools/quickbook/test/macro-1_5.gold-html create mode 100644 src/boost/tools/quickbook/test/macro-1_5.quickbook create mode 100644 src/boost/tools/quickbook/test/macro-1_6.gold create mode 100644 src/boost/tools/quickbook/test/macro-1_6.gold-html create mode 100644 src/boost/tools/quickbook/test/macro-1_6.quickbook create mode 100644 src/boost/tools/quickbook/test/mismatched_brackets-1_1-fail.quickbook create mode 100644 src/boost/tools/quickbook/test/mismatched_brackets1-1_1.gold create mode 100644 src/boost/tools/quickbook/test/mismatched_brackets1-1_1.gold-html create mode 100644 src/boost/tools/quickbook/test/mismatched_brackets1-1_1.quickbook create mode 100644 src/boost/tools/quickbook/test/mismatched_brackets1-1_7.quickbook create mode 100644 src/boost/tools/quickbook/test/mismatched_brackets2-1_1.gold create mode 100644 src/boost/tools/quickbook/test/mismatched_brackets2-1_1.gold-html create mode 100644 src/boost/tools/quickbook/test/mismatched_brackets2-1_1.quickbook create mode 100644 src/boost/tools/quickbook/test/mismatched_brackets3-1_1.gold create mode 100644 src/boost/tools/quickbook/test/mismatched_brackets3-1_1.gold-html create mode 100644 src/boost/tools/quickbook/test/mismatched_brackets3-1_1.quickbook create mode 100644 src/boost/tools/quickbook/test/newline-1_1.gold create mode 100644 src/boost/tools/quickbook/test/newline-1_1.gold-html create mode 100644 src/boost/tools/quickbook/test/newline-1_1.quickbook create mode 100644 src/boost/tools/quickbook/test/para_test-1_5.gold create mode 100644 src/boost/tools/quickbook/test/para_test-1_5.gold-html create mode 100644 src/boost/tools/quickbook/test/para_test-1_5.quickbook create mode 100644 src/boost/tools/quickbook/test/post_process-fail.quickbook create mode 100644 src/boost/tools/quickbook/test/preformatted-1_1.gold create mode 100644 src/boost/tools/quickbook/test/preformatted-1_1.gold-html create mode 100644 src/boost/tools/quickbook/test/preformatted-1_1.quickbook create mode 100644 src/boost/tools/quickbook/test/preformatted-1_6.gold create mode 100644 src/boost/tools/quickbook/test/preformatted-1_6.gold-html create mode 100644 src/boost/tools/quickbook/test/preformatted-1_6.quickbook create mode 100644 src/boost/tools/quickbook/test/python/include_glob.qbk create mode 100644 src/boost/tools/quickbook/test/python/include_glob_deps.txt create mode 100644 src/boost/tools/quickbook/test/python/include_glob_locs.txt create mode 100644 src/boost/tools/quickbook/test/python/include_path.qbk create mode 100644 src/boost/tools/quickbook/test/python/include_path_deps.txt create mode 100644 src/boost/tools/quickbook/test/python/include_path_locs.txt create mode 100644 src/boost/tools/quickbook/test/python/missing_relative.qbk create mode 100644 src/boost/tools/quickbook/test/python/missing_relative_deps.txt create mode 100644 src/boost/tools/quickbook/test/python/missing_relative_locs.txt create mode 100644 src/boost/tools/quickbook/test/python/run_tests.py create mode 100644 src/boost/tools/quickbook/test/python/simple.qbk create mode 100644 src/boost/tools/quickbook/test/python/simple.xml create mode 100644 src/boost/tools/quickbook/test/python/simple_custom_pretty_print.xml create mode 100644 src/boost/tools/quickbook/test/python/simple_no_pretty_print.xml create mode 100644 src/boost/tools/quickbook/test/python/simple_no_self_linked.xml create mode 100644 src/boost/tools/quickbook/test/python/sub1/a.qbk create mode 100644 src/boost/tools/quickbook/test/python/sub2/b.qbk create mode 100644 src/boost/tools/quickbook/test/python/svg_missing.qbk create mode 100644 src/boost/tools/quickbook/test/python/svg_missing_deps.txt create mode 100644 src/boost/tools/quickbook/test/python/svg_missing_locs.txt create mode 100644 src/boost/tools/quickbook/test/quickbook-testing.jam create mode 100644 src/boost/tools/quickbook/test/quickbook_manual-1_4.gold create mode 100644 src/boost/tools/quickbook/test/quickbook_manual-1_4.gold-html create mode 100644 src/boost/tools/quickbook/test/quickbook_manual-1_4.quickbook create mode 100644 src/boost/tools/quickbook/test/regen-gold.sh create mode 100644 src/boost/tools/quickbook/test/role-1_6.gold create mode 100644 src/boost/tools/quickbook/test/role-1_6.gold-html create mode 100644 src/boost/tools/quickbook/test/role-1_6.quickbook create mode 100644 src/boost/tools/quickbook/test/role-1_7-fail.quickbook create mode 100644 src/boost/tools/quickbook/test/role-1_7.gold create mode 100644 src/boost/tools/quickbook/test/role-1_7.gold-html create mode 100644 src/boost/tools/quickbook/test/role-1_7.quickbook create mode 100644 src/boost/tools/quickbook/test/section-1_4.gold create mode 100644 src/boost/tools/quickbook/test/section-1_4.gold-html create mode 100644 src/boost/tools/quickbook/test/section-1_4.quickbook create mode 100644 src/boost/tools/quickbook/test/section-1_5-unclosed.gold create mode 100644 src/boost/tools/quickbook/test/section-1_5-unclosed.gold-html create mode 100644 src/boost/tools/quickbook/test/section-1_5-unclosed.quickbook create mode 100644 src/boost/tools/quickbook/test/section-1_5.gold create mode 100644 src/boost/tools/quickbook/test/section-1_5.gold-html create mode 100644 src/boost/tools/quickbook/test/section-1_5.quickbook create mode 100644 src/boost/tools/quickbook/test/section-1_7.gold create mode 100644 src/boost/tools/quickbook/test/section-1_7.gold-html create mode 100644 src/boost/tools/quickbook/test/section-1_7.quickbook create mode 100644 src/boost/tools/quickbook/test/simple_markup-1_5.gold create mode 100644 src/boost/tools/quickbook/test/simple_markup-1_5.gold-html create mode 100644 src/boost/tools/quickbook/test/simple_markup-1_5.quickbook create mode 100644 src/boost/tools/quickbook/test/snippets/Jamfile.v2 create mode 100644 src/boost/tools/quickbook/test/snippets/pass_thru.cpp create mode 100644 src/boost/tools/quickbook/test/snippets/pass_thru.gold create mode 100644 src/boost/tools/quickbook/test/snippets/pass_thru.gold-html create mode 100644 src/boost/tools/quickbook/test/snippets/pass_thru.py create mode 100644 src/boost/tools/quickbook/test/snippets/pass_thru.quickbook create mode 100644 src/boost/tools/quickbook/test/snippets/unbalanced_snippet1-1_5.gold create mode 100644 src/boost/tools/quickbook/test/snippets/unbalanced_snippet1-1_5.gold-html create mode 100644 src/boost/tools/quickbook/test/snippets/unbalanced_snippet1-1_5.quickbook create mode 100644 src/boost/tools/quickbook/test/snippets/unbalanced_snippet1-1_6-fail.quickbook create mode 100644 src/boost/tools/quickbook/test/snippets/unbalanced_snippet1.cpp create mode 100644 src/boost/tools/quickbook/test/snippets/unbalanced_snippet2-1_6-fail.quickbook create mode 100644 src/boost/tools/quickbook/test/snippets/unbalanced_snippet2.cpp create mode 100644 src/boost/tools/quickbook/test/source_mode-1_7.gold create mode 100644 src/boost/tools/quickbook/test/source_mode-1_7.gold-html create mode 100644 src/boost/tools/quickbook/test/source_mode-1_7.quickbook create mode 100644 src/boost/tools/quickbook/test/src/text_diff.cpp create mode 100644 src/boost/tools/quickbook/test/stray_close_bracket-1_1.gold create mode 100644 src/boost/tools/quickbook/test/stray_close_bracket-1_1.gold-html create mode 100644 src/boost/tools/quickbook/test/stray_close_bracket-1_1.quickbook create mode 100644 src/boost/tools/quickbook/test/stray_close_bracket-1_7-fail.quickbook create mode 100644 src/boost/tools/quickbook/test/stub.c create mode 100644 src/boost/tools/quickbook/test/stub.cpp create mode 100644 src/boost/tools/quickbook/test/stub.py create mode 100644 src/boost/tools/quickbook/test/svg-1_1.gold create mode 100644 src/boost/tools/quickbook/test/svg-1_1.gold-html create mode 100644 src/boost/tools/quickbook/test/svg-1_1.quickbook create mode 100644 src/boost/tools/quickbook/test/table-1_3.gold create mode 100644 src/boost/tools/quickbook/test/table-1_3.gold-html create mode 100644 src/boost/tools/quickbook/test/table-1_3.quickbook create mode 100644 src/boost/tools/quickbook/test/table-1_5.gold create mode 100644 src/boost/tools/quickbook/test/table-1_5.gold-html create mode 100644 src/boost/tools/quickbook/test/table-1_5.quickbook create mode 100644 src/boost/tools/quickbook/test/table-1_6.gold create mode 100644 src/boost/tools/quickbook/test/table-1_6.gold-html create mode 100644 src/boost/tools/quickbook/test/table-1_6.quickbook create mode 100644 src/boost/tools/quickbook/test/table-1_7.gold create mode 100644 src/boost/tools/quickbook/test/table-1_7.gold-html create mode 100644 src/boost/tools/quickbook/test/table-1_7.quickbook create mode 100644 src/boost/tools/quickbook/test/template_arguments1-1_1-fail.quickbook create mode 100644 src/boost/tools/quickbook/test/template_arguments1-1_5-fail.quickbook create mode 100644 src/boost/tools/quickbook/test/template_arguments2-1_1-fail.quickbook create mode 100644 src/boost/tools/quickbook/test/template_arguments2-1_5-fail.quickbook create mode 100644 src/boost/tools/quickbook/test/template_arguments3-1_1-fail.quickbook create mode 100644 src/boost/tools/quickbook/test/template_arguments3-1_5-fail.quickbook create mode 100644 src/boost/tools/quickbook/test/template_section-1_5.gold create mode 100644 src/boost/tools/quickbook/test/template_section-1_5.gold-html create mode 100644 src/boost/tools/quickbook/test/template_section-1_5.quickbook create mode 100644 src/boost/tools/quickbook/test/template_section1-1_5-fail.quickbook create mode 100644 src/boost/tools/quickbook/test/template_section2-1_5-fail.quickbook create mode 100644 src/boost/tools/quickbook/test/template_section3-1_5-fail.quickbook create mode 100644 src/boost/tools/quickbook/test/templates-1_3.gold create mode 100644 src/boost/tools/quickbook/test/templates-1_3.gold-html create mode 100644 src/boost/tools/quickbook/test/templates-1_3.quickbook create mode 100644 src/boost/tools/quickbook/test/templates-1_4.gold create mode 100644 src/boost/tools/quickbook/test/templates-1_4.gold-html create mode 100644 src/boost/tools/quickbook/test/templates-1_4.quickbook create mode 100644 src/boost/tools/quickbook/test/templates-1_5.gold create mode 100644 src/boost/tools/quickbook/test/templates-1_5.gold-html create mode 100644 src/boost/tools/quickbook/test/templates-1_5.quickbook create mode 100644 src/boost/tools/quickbook/test/templates-1_6-fail1.quickbook create mode 100644 src/boost/tools/quickbook/test/templates-1_6.gold create mode 100644 src/boost/tools/quickbook/test/templates-1_6.gold-html create mode 100644 src/boost/tools/quickbook/test/templates-1_6.quickbook create mode 100644 src/boost/tools/quickbook/test/templates-1_7-fail1.quickbook create mode 100644 src/boost/tools/quickbook/test/templates-1_7-fail2.quickbook create mode 100644 src/boost/tools/quickbook/test/templates-1_7.gold create mode 100644 src/boost/tools/quickbook/test/templates-1_7.gold-html create mode 100644 src/boost/tools/quickbook/test/templates-1_7.quickbook create mode 100644 src/boost/tools/quickbook/test/unicode_escape-1_5.gold create mode 100644 src/boost/tools/quickbook/test/unicode_escape-1_5.gold-html create mode 100644 src/boost/tools/quickbook/test/unicode_escape-1_5.quickbook create mode 100644 src/boost/tools/quickbook/test/unit/Jamfile.v2 create mode 100644 src/boost/tools/quickbook/test/unit/cleanup_test.cpp create mode 100644 src/boost/tools/quickbook/test/unit/glob_test.cpp create mode 100644 src/boost/tools/quickbook/test/unit/path_test.cpp create mode 100644 src/boost/tools/quickbook/test/unit/post_process_test.cpp create mode 100644 src/boost/tools/quickbook/test/unit/source_map_test.cpp create mode 100644 src/boost/tools/quickbook/test/unit/symbols_find_null.cpp create mode 100644 src/boost/tools/quickbook/test/unit/symbols_tests.cpp create mode 100644 src/boost/tools/quickbook/test/unit/utils_test.cpp create mode 100644 src/boost/tools/quickbook/test/unit/values_test.cpp create mode 100644 src/boost/tools/quickbook/test/unmatched_element-1_5.gold create mode 100644 src/boost/tools/quickbook/test/unmatched_element-1_5.gold-html create mode 100644 src/boost/tools/quickbook/test/unmatched_element-1_5.quickbook create mode 100644 src/boost/tools/quickbook/test/unmatched_element-1_6.gold create mode 100644 src/boost/tools/quickbook/test/unmatched_element-1_6.gold-html create mode 100644 src/boost/tools/quickbook/test/unmatched_element-1_6.quickbook create mode 100644 src/boost/tools/quickbook/test/utf16be_bom-1_5-fail.quickbook create mode 100644 src/boost/tools/quickbook/test/utf16le_bom-1_5-fail.quickbook create mode 100644 src/boost/tools/quickbook/test/utf8-1_5.gold create mode 100644 src/boost/tools/quickbook/test/utf8-1_5.gold-html create mode 100644 src/boost/tools/quickbook/test/utf8-1_5.quickbook create mode 100644 src/boost/tools/quickbook/test/utf8_bom-1_5.gold create mode 100644 src/boost/tools/quickbook/test/utf8_bom-1_5.gold-html create mode 100644 src/boost/tools/quickbook/test/utf8_bom-1_5.quickbook create mode 100644 src/boost/tools/quickbook/test/variablelist-1_5-fail.quickbook create mode 100644 src/boost/tools/quickbook/test/variablelist-1_5.gold create mode 100644 src/boost/tools/quickbook/test/variablelist-1_5.gold-html create mode 100644 src/boost/tools/quickbook/test/variablelist-1_5.quickbook create mode 100644 src/boost/tools/quickbook/test/version-0_1-fail.quickbook create mode 100644 src/boost/tools/quickbook/test/version-1_8-fail.quickbook create mode 100644 src/boost/tools/quickbook/test/version-2_0-fail.quickbook create mode 100644 src/boost/tools/quickbook/test/versions/Jamfile.v2 create mode 100644 src/boost/tools/quickbook/test/versions/invalid_macro-1_6.gold create mode 100644 src/boost/tools/quickbook/test/versions/invalid_macro-1_6.gold-html create mode 100644 src/boost/tools/quickbook/test/versions/invalid_macro-1_6.quickbook create mode 100644 src/boost/tools/quickbook/test/versions/invalid_macro-inc-1_1.quickbook create mode 100644 src/boost/tools/quickbook/test/versions/templates-inc-1_1.quickbook create mode 100644 src/boost/tools/quickbook/test/versions/templates-inc-1_4.quickbook create mode 100644 src/boost/tools/quickbook/test/versions/templates-inc-1_5.quickbook create mode 100644 src/boost/tools/quickbook/test/versions/versions-1_6.gold create mode 100644 src/boost/tools/quickbook/test/versions/versions-1_6.gold-html create mode 100644 src/boost/tools/quickbook/test/versions/versions-1_6.quickbook create mode 100644 src/boost/tools/quickbook/test/xinclude/Jamfile.v2 create mode 100644 src/boost/tools/quickbook/test/xinclude/sub/boost-no-inspect create mode 100644 src/boost/tools/quickbook/test/xinclude/sub/stub.xml create mode 100644 src/boost/tools/quickbook/test/xinclude/xinclude-1_1-alt.gold create mode 100644 src/boost/tools/quickbook/test/xinclude/xinclude-1_1-alt.gold-html create mode 100644 src/boost/tools/quickbook/test/xinclude/xinclude-1_1-alt2.gold create mode 100644 src/boost/tools/quickbook/test/xinclude/xinclude-1_1.gold create mode 100644 src/boost/tools/quickbook/test/xinclude/xinclude-1_1.gold-html create mode 100644 src/boost/tools/quickbook/test/xinclude/xinclude-1_1.quickbook create mode 100644 src/boost/tools/quickbook/test/xinclude/xmlbase-1_6-fail.quickbook create mode 100644 src/boost/tools/quickbook/test/xinclude/xmlbase1-1_6-alt.gold create mode 100644 src/boost/tools/quickbook/test/xinclude/xmlbase1-1_6-alt.gold-html create mode 100644 src/boost/tools/quickbook/test/xinclude/xmlbase1-1_6-alt2.gold create mode 100644 src/boost/tools/quickbook/test/xinclude/xmlbase1-1_6.gold create mode 100644 src/boost/tools/quickbook/test/xinclude/xmlbase1-1_6.gold-html create mode 100644 src/boost/tools/quickbook/test/xinclude/xmlbase1-1_6.quickbook create mode 100644 src/boost/tools/quickbook/test/xinclude/xmlbase2-1_6-alt.gold create mode 100644 src/boost/tools/quickbook/test/xinclude/xmlbase2-1_6-alt.gold-html create mode 100644 src/boost/tools/quickbook/test/xinclude/xmlbase2-1_6-alt2.gold create mode 100644 src/boost/tools/quickbook/test/xinclude/xmlbase2-1_6.gold create mode 100644 src/boost/tools/quickbook/test/xinclude/xmlbase2-1_6.gold-html create mode 100644 src/boost/tools/quickbook/test/xinclude/xmlbase2-1_6.quickbook create mode 100644 src/boost/tools/quickbook/test/xml_escape-1_2.gold create mode 100644 src/boost/tools/quickbook/test/xml_escape-1_2.gold-html create mode 100644 src/boost/tools/quickbook/test/xml_escape-1_2.quickbook create mode 100644 src/boost/tools/quickbook/test/xml_escape-1_5.gold create mode 100644 src/boost/tools/quickbook/test/xml_escape-1_5.gold-html create mode 100644 src/boost/tools/quickbook/test/xml_escape-1_5.quickbook (limited to 'src/boost/tools/quickbook/test') diff --git a/src/boost/tools/quickbook/test/Jamfile.v2 b/src/boost/tools/quickbook/test/Jamfile.v2 new file mode 100644 index 000000000..c0d543f59 --- /dev/null +++ b/src/boost/tools/quickbook/test/Jamfile.v2 @@ -0,0 +1,173 @@ +# +# Copyright (c) 2005 João Abecasis +# +# Distributed under the Boost Software License, Version 1.0. (See +# accompanying file LICENSE_1_0.txt or copy at +# http://www.boost.org/LICENSE_1_0.txt) +# + +project quickbook/test + : requirements + msvc:off + 98:no + 03:no + ; + +build-project doc-info ; +build-project unit ; +build-project command-line ; +build-project snippets ; +build-project "include" ; +build-project versions ; +build-project xinclude ; + +import quickbook-testing : quickbook-test quickbook-error-test ; + +test-suite quickbook.test : + [ quickbook-test anchor-1_1 ] + [ quickbook-test anchor-1_6 ] + [ quickbook-test anchor-1_7 ] + [ quickbook-test blocks-1_5 ] + [ quickbook-test callouts-1_5 ] + [ quickbook-test callouts-1_7 ] + [ quickbook-test code-1_1 ] + [ quickbook-test code-1_5 ] + [ quickbook-test code_cpp-1_5 ] + [ quickbook-error-test code_cpp_mismatched_escape-1_4-fail ] + [ quickbook-test code_python-1_5 ] + [ quickbook-error-test code_python_mismatched_escape-1_4-fail ] + [ quickbook-test code_snippet-1_1 ] + [ quickbook-test code_teletype-1_5 ] + [ quickbook-error-test code_unclosed_block-1_6-fail ] + [ quickbook-test command_line_macro-1_1 : : : + __macro__=*bold* + __empty__ ] + [ quickbook-error-test command_line_macro-1_1-invalid : + command_line_macro-1_1.quickbook : + -Dsomething[] ] + [ quickbook-test cond_phrase-1_5 ] + [ quickbook-test cond_phrase-1_7 ] + # TODO: This test generates invalid boostbook, so it breaks when generating html + # [ quickbook-test elements-1_5 ] + [ quickbook-test elements-1_6 ] + [ quickbook-error-test endsect-wrong-id-1_4-fail ] + [ quickbook-error-test endsect-wrong-id-1_7-fail ] + [ quickbook-error-test endsect-unopened-1_7-fail ] + [ quickbook-test escape-1_1 ] + [ quickbook-test escape-1_6 ] + [ quickbook-error-test escape-mismatched-1_5-fail ] + [ quickbook-test footnotes-1_7 ] + [ quickbook-test heading-1_1 ] + [ quickbook-test heading-1_3 ] + [ quickbook-test heading-1_5 ] + [ quickbook-test heading-1_6 ] + [ quickbook-test heading-1_7 ] + [ quickbook-error-test heading_unclosed-1_4-fail ] + [ quickbook-test hr-1_5 ] + [ quickbook-test hr-1_6 ] + [ quickbook-test identifier-1_5 ] + [ quickbook-test identifier-1_6 ] + [ quickbook-test image-1_5 ] + [ quickbook-test image-1_6 ] + [ quickbook-error-test import-1_1-fail ] + [ quickbook-error-test include-1_1-fail ] + [ quickbook-test include-1_5 ] + [ quickbook-test include-1_6 ] + [ quickbook-test include-1_7 ] + [ quickbook-test include2-1_6 ] + [ quickbook-error-test include_win_path-1_6-fail ] + [ quickbook-error-test include_invalid_path1-1_7-fail ] + [ quickbook-error-test include_invalid_path2-1_7-fail ] + [ quickbook-error-test include_invalid_path3-1_7-fail ] + [ quickbook-error-test include_unicode_glob-1_7-fail ] + [ quickbook-test link-1_1 ] + [ quickbook-test link-1_6 ] + [ quickbook-test link-1_7 ] + [ quickbook-error-test link-1_7-fail ] + [ quickbook-error-test link-1_7-fail2 ] + [ quickbook-test list_test-1_5 ] + [ quickbook-test list_test-1_6 ] + [ quickbook-error-test list_test-1_6-fail ] + [ quickbook-test list_test-1_7 ] + [ quickbook-error-test list_test-1_7-fail1 ] + [ quickbook-test macro-1_5 ] + [ quickbook-test macro-1_6 ] + [ quickbook-error-test mismatched_brackets-1_1-fail ] + [ quickbook-test mismatched_brackets1-1_1 ] + [ quickbook-test mismatched_brackets2-1_1 ] + [ quickbook-test mismatched_brackets3-1_1 ] + [ quickbook-error-test mismatched_brackets1-1_1-strict-fail : + mismatched_brackets1-1_1.quickbook : --strict ] + [ quickbook-error-test mismatched_brackets2-1_1-strict-fail : + mismatched_brackets2-1_1.quickbook : --strict ] + [ quickbook-error-test mismatched_brackets3-1_1-strict-fail : + mismatched_brackets3-1_1.quickbook : --strict ] + [ quickbook-error-test mismatched_brackets1-1_7-strict-fail : + mismatched_brackets1-1_1.quickbook : --strict ] + [ quickbook-test newline-1_1 ] + [ quickbook-test para_test-1_5 ] + [ quickbook-error-test post_process-fail ] + [ quickbook-test preformatted-1_1 ] + [ quickbook-test preformatted-1_6 ] + [ quickbook-test role-1_6 ] + [ quickbook-test role-1_7 ] + [ quickbook-error-test role-1_7-fail ] + [ quickbook-test section-1_4 ] + [ quickbook-test section-1_5-unclosed ] + [ quickbook-test section-1_5 ] + [ quickbook-error-test section-1_5-unclosed-strict-fail : + section-1_5-unclosed : --strict ] + [ quickbook-test section-1_5-strict : + section-1_5.quickbook : : --strict ] + [ quickbook-test section-1_7 ] + [ quickbook-test simple_markup-1_5 ] + [ quickbook-test source_mode-1_7 ] + [ quickbook-test stray_close_bracket-1_1 ] + [ quickbook-error-test stray_close_bracket-1_1-strict-fail : + stray_close_bracket-1_1.quickbook : + --strict ] + [ quickbook-error-test stray_close_bracket-1_7-fail ] + [ quickbook-test svg-1_1 ] + [ quickbook-test table-1_3 ] + [ quickbook-test table-1_5 ] + [ quickbook-test table-1_6 ] + [ quickbook-test table-1_7 ] + [ quickbook-error-test template_arguments1-1_1-fail ] + [ quickbook-error-test template_arguments1-1_5-fail ] + [ quickbook-error-test template_arguments2-1_1-fail ] + [ quickbook-error-test template_arguments2-1_5-fail ] + [ quickbook-error-test template_arguments3-1_1-fail ] + [ quickbook-error-test template_arguments3-1_5-fail ] + [ quickbook-test template_section-1_5 ] + [ quickbook-error-test template_section1-1_5-fail ] + [ quickbook-error-test template_section2-1_5-fail ] + [ quickbook-error-test template_section3-1_5-fail ] + [ quickbook-test templates-1_3 ] + [ quickbook-test templates-1_4 ] + [ quickbook-test templates-1_5 ] + [ quickbook-test templates-1_6 ] + [ quickbook-error-test templates-1_6-fail1 ] + [ quickbook-test templates-1_7 ] + [ quickbook-error-test templates-1_7-fail1 ] + [ quickbook-error-test templates-1_7-fail2 ] + [ quickbook-test unicode_escape-1_5 ] + [ quickbook-test unmatched_element-1_5 ] + [ quickbook-test unmatched_element-1_6 ] + [ quickbook-error-test utf16be_bom-1_5-fail ] + [ quickbook-error-test utf16le_bom-1_5-fail ] + [ quickbook-test utf8-1_5 ] + [ quickbook-test utf8_bom-1_5 ] + [ quickbook-error-test variablelist-1_5-fail ] + [ quickbook-test variablelist-1_5 ] + [ quickbook-error-test version-0_1-fail ] + [ quickbook-error-test version-1_8-fail ] + [ quickbook-error-test version-2_0-fail ] + [ quickbook-test xml_escape-1_2 ] + [ quickbook-test xml_escape-1_5 ] + + [ quickbook-test quickbook_manual-1_4 ] + ; + +# for `b2 quick` in status +alias quick : quickbook_manual-1_4 ; +explicit quick ; diff --git a/src/boost/tools/quickbook/test/anchor-1_1.gold b/src/boost/tools/quickbook/test/anchor-1_1.gold new file mode 100644 index 000000000..e0b820971 --- /dev/null +++ b/src/boost/tools/quickbook/test/anchor-1_1.gold @@ -0,0 +1,145 @@ + + +
+ Anchor Test +
+ Anchors + + A paragraph containing several anchors. We + want to make sure they appear in the correct place. + + + This + heading shouldn't pick up the previous anchor + + + + This + heading should pick up the previous anchor + + + + And + this one + + + + Also + this one + + + + Finally this + + +
+
+ <anchor id="a9"/>Section Anchor +
+ <anchor id="a10"/>Nested Section +
+ +
+
+ <anchor id="a12"/>Conditional Section Anchor +
+
+ Lists + + + + Item 1 + + + + + Item 2 + + + + + Nested List + + + + Nested Item 1 + + + + + Nested Item 2 + + + + + Nested Item 3 + + + + + + + + Item 3 + + + +
+
+ Anchors in templates + + Some text. + + + Text content + +
+
+ Anchors in syntax highlighted code +int main() {} + +
+
+ Nested anchors + + Table with anchors + + + + + + Heading + + + + + + + + + Cell 1 + + + + + + + Cell 2 + + + + + + + Cell 3 + + + + + +
+
+
diff --git a/src/boost/tools/quickbook/test/anchor-1_1.gold-html b/src/boost/tools/quickbook/test/anchor-1_1.gold-html new file mode 100644 index 000000000..e6610d417 --- /dev/null +++ b/src/boost/tools/quickbook/test/anchor-1_1.gold-html @@ -0,0 +1,205 @@ + + + + +

+ Anchor Test +

+ +
+

+ Anchors +

+
+

+ A paragraph containing several anchors. We + want to make sure they appear in the correct place. +

+

+ This heading shouldn't pick up the previous anchor +

+ +

+ This heading should pick up the previous anchor +

+ +

+ And this one +

+ +

+ Also this one +

+ +

+ Finally this +

+ +
+
+
+

+ Section Anchor +

+
+ +
+
+

+ Nested Section +

+
+
+
+
+
+

+ Conditional Section Anchor +

+
+
+
+
+

+ Lists +

+
+ +
    +
  • +
    + Item 1 +
    +
  • +
  • +
    + Item 2 +
    +
  • +
  • +
    + Nested List +
      +
    • +
      + Nested Item 1 +
      +
    • +
    • +
      + Nested Item 2 +
      +
    • +
    • +
      + Nested Item 3 +
      +
    • +
    +
    +
  • +
  • +
    + Item 3 +
    +
  • +
+
+
+
+

+ Anchors in templates +

+
+

+ Some text. +

+

+ Text content +

+
+
+
+

+ Anchors in syntax highlighted code +

+
+
int main() {}
+
+
+
+
+

+ Nested anchors +

+
+
+ + + + + + + + + + + + + + + + + + +
Table with anchors
+

+ Heading +

+
+

+ Cell 1 +

+
+

+ Cell 2 +

+
+

+ Cell 3 +

+
+
+
+
+ + diff --git a/src/boost/tools/quickbook/test/anchor-1_1.quickbook b/src/boost/tools/quickbook/test/anchor-1_1.quickbook new file mode 100644 index 000000000..0e8934ee0 --- /dev/null +++ b/src/boost/tools/quickbook/test/anchor-1_1.quickbook @@ -0,0 +1,80 @@ +[article Anchor Test] + +[section Anchors] + +[#a1] A paragraph containing several anchors. [#a2] We want to make sure +they appear in the correct place. [#a3] + +[heading This heading shouldn't pick up the previous anchor] + +[#a4] + +[heading This heading should pick up the previous anchor] + +[#a5] +[heading And this one] + +[#a6][heading Also this one] + +[#a7][h3 Finally this] + +[#a8] + +[endsect] + +[#a9] +[section Section Anchor] +[#a10][section Nested Section] +[endsect] +[/ This anchor is invalid, I'm not sure what to do with it] +[#a11] +[endsect] + +[#a12][?__not_defined__ #a13] +[section Conditional Section Anchor] +[endsect] + +[section Lists] + +[#a14] +* Item 1 +* Item 2 +* Nested List + [#a15] + * Nested Item 1 + * Nested Item 2 + * [#a16] Nested Item 3 +* Item 3 + +[endsect] + +[section Anchors in templates] + +[template anchor1[][#t1]] +[template para[] Text content] + +[anchor1] + +Some text. + +[#t2] + +[para] + +[endsect] + +[section Anchors in syntax highlighted code] + + int ``[#s1]``main() {} + +[endsect] + +[section Nested anchors] + +[table Table with anchors + [[Heading]] + [[[#table1]Cell 1]] + [[[#table2] Cell 2]] + [[Cell 3[#table3]]] +] +[endsect] diff --git a/src/boost/tools/quickbook/test/anchor-1_6.gold b/src/boost/tools/quickbook/test/anchor-1_6.gold new file mode 100644 index 000000000..5d056f2db --- /dev/null +++ b/src/boost/tools/quickbook/test/anchor-1_6.gold @@ -0,0 +1,151 @@ + + +
+ Anchor Test +
+ <link linkend="anchor_test.anchors">Anchors</link> + + A paragraph containing several anchors. We + want to make sure they appear in the correct place. + + + This + heading shouldn't pick up the previous anchor + + + + This + heading should pick up the previous anchor + + + + And + this one + + + + Also + this one + + + + Finally + this + + +
+
+ <anchor id="a9"/><link linkend="anchor_test.section_anchor">Section Anchor</link> +
+ <anchor id="a10"/><link linkend="anchor_test.section_anchor.nested_section">Nested + Section</link> +
+ +
+
+ <anchor id="a12"/><link linkend="anchor_test.conditional_section_anchor">Conditional + Section Anchor</link> +
+
+ <link linkend="anchor_test.lists">Lists</link> + + + + Item 1 + + + + + Item 2 + + + + + Nested List + + + + Nested Item 1 + + + + + Nested Item 2 + + + + + Nested Item 3 + + + + + + + + Item 3 + + + +
+
+ <link linkend="anchor_test.anchors_in_templates">Anchors in templates</link> + + Some text. + + + Text content + +
+
+ <link linkend="anchor_test.anchors_in_syntax_highlighted_co">Anchors in + syntax highlighted code</link> +int main() {} + +
+
+ <link linkend="anchor_test.nested_anchors">Nested anchors</link> + + Table with anchors + + + + + + Heading + + + + + + + + + Cell 1 + + + + + + + Cell 2 + + + + + + + Cell 3 + + + + + +
+
+
+ <link linkend="anchor_test.anchors_with_escapes">Anchors with escapes</link> + +
+
diff --git a/src/boost/tools/quickbook/test/anchor-1_6.gold-html b/src/boost/tools/quickbook/test/anchor-1_6.gold-html new file mode 100644 index 000000000..001b275f5 --- /dev/null +++ b/src/boost/tools/quickbook/test/anchor-1_6.gold-html @@ -0,0 +1,216 @@ + + + + +

+ Anchor Test +

+ +
+

+ Anchors +

+
+

+ A paragraph containing several anchors. We + want to make sure they appear in the correct place. +

+

+ This heading shouldn't pick up the previous anchor +

+ +

+ This heading should pick up the previous anchor +

+ +

+ And this one +

+ +

+ Also this one +

+ +

+ Finally this +

+ +
+
+
+

+ Section Anchor +

+
+ +
+
+

+ Nested Section +

+
+
+
+
+
+

+ Conditional Section Anchor +

+
+
+
+
+

+ Lists +

+
+ +
    +
  • +
    + Item 1 +
    +
  • +
  • +
    + Item 2 +
    +
  • +
  • +
    + Nested List +
      +
    • +
      + Nested Item 1 +
      +
    • +
    • +
      + Nested Item 2 +
      +
    • +
    • +
      + Nested Item 3 +
      +
    • +
    +
    +
  • +
  • +
    + Item 3 +
    +
  • +
+
+
+
+

+ Anchors in templates +

+
+

+ Some text. +

+

+ Text content +

+
+
+
+

+ Anchors in syntax highlighted code +

+
+
int main() {}
+
+
+
+
+

+ Nested anchors +

+
+
+ + + + + + + + + + + + + + + + + + +
Table with anchors
+

+ Heading +

+
+

+ Cell 1 +

+
+

+ Cell 2 +

+
+

+ Cell 3 +

+
+
+
+
+
+

+ Anchors with escapes +

+
+ +
+
+ + diff --git a/src/boost/tools/quickbook/test/anchor-1_6.quickbook b/src/boost/tools/quickbook/test/anchor-1_6.quickbook new file mode 100644 index 000000000..8d4a7b34e --- /dev/null +++ b/src/boost/tools/quickbook/test/anchor-1_6.quickbook @@ -0,0 +1,88 @@ +[article Anchor Test +[quickbook 1.6] +] + +[section Anchors] + +[#a1] A paragraph containing several anchors. [#a2] We want to make sure +they appear in the correct place. [#a3] + +[heading This heading shouldn't pick up the previous anchor] + +[#a4] + +[heading This heading should pick up the previous anchor] + +[#a5] +[heading And this one] + +[#a6][heading Also this one] + +[#a7][h3 Finally this] + +[#a8] + +[endsect] + +[#a9] +[section Section Anchor] +[#a10][section Nested Section] +[endsect] +[/ This anchor is invalid, I'm not sure what to do with it] +[#a11] +[endsect] + +[#a12][?__not_defined__ #a13] +[section Conditional Section Anchor] +[endsect] + +[section Lists] + +[#a14] +* Item 1 +* Item 2 +* Nested List + [#a15] + * Nested Item 1 + * Nested Item 2 + * [#a16] Nested Item 3 +* Item 3 + +[endsect] + +[section Anchors in templates] + +[template anchor1[][#t1]] +[template para[] Text content] + +[anchor1] + +Some text. + +[#t2] + +[para] + +[endsect] + +[section Anchors in syntax highlighted code] + + int ``[#s1]``main() {} + +[endsect] + +[section Nested anchors] + +[table Table with anchors + [[Heading]] + [[[#table1]Cell 1]] + [[[#table2] Cell 2]] + [[Cell 3[#table3]]] +] +[endsect] + +[section Anchors with escapes] + +[#\[oddid\]] + +[endsect] \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/anchor-1_7.gold b/src/boost/tools/quickbook/test/anchor-1_7.gold new file mode 100644 index 000000000..71e22458d --- /dev/null +++ b/src/boost/tools/quickbook/test/anchor-1_7.gold @@ -0,0 +1,151 @@ + + +
+ Anchor Test +
+ <link linkend="anchor_test.anchors">Anchors</link> + + A paragraph containing several anchors. We + want to make sure they appear in the correct place. + + + This + heading shouldn't pick up the previous anchor + + + + This + heading should pick up the previous anchor + + + + And + this one + + + + Also + this one + + + + Finally + this + + +
+
+ <anchor id="a9"/><link linkend="anchor_test.section_anchor">Section Anchor</link> +
+ <anchor id="a10"/><link linkend="anchor_test.section_anchor.nested_section">Nested + Section</link> +
+ +
+
+ <anchor id="a12"/><link linkend="anchor_test.conditional_section_anchor">Conditional + Section Anchor</link> +
+
+ <link linkend="anchor_test.lists">Lists</link> + + + + Item 1 + + + + + Item 2 + + + + + Nested List + + + + Nested Item 1 + + + + + Nested Item 2 + + + + + Nested Item 3 + + + + + + + + Item 3 + + + +
+
+ <link linkend="anchor_test.anchors_in_templates">Anchors in templates</link> + + Some text. + + + Text content + +
+
+ <link linkend="anchor_test.anchors_in_syntax_highlighted_co">Anchors in + syntax highlighted code</link> +int main() {} + +
+
+ <link linkend="anchor_test.nested_anchors">Nested anchors</link> + + Table with anchors + + + + + + Heading + + + + + + + + + Cell 1 + + + + + + + Cell 2 + + + + + + + Cell 3 + + + + + +
+
+
+ <link linkend="anchor_test.templates">Anchors with templates</link> + +
+
diff --git a/src/boost/tools/quickbook/test/anchor-1_7.gold-html b/src/boost/tools/quickbook/test/anchor-1_7.gold-html new file mode 100644 index 000000000..890eb5191 --- /dev/null +++ b/src/boost/tools/quickbook/test/anchor-1_7.gold-html @@ -0,0 +1,217 @@ + + + + +

+ Anchor Test +

+ +
+

+ Anchors +

+
+

+ A paragraph containing several anchors. We + want to make sure they appear in the correct place. +

+

+ This heading shouldn't pick up the previous anchor +

+ +

+ This heading should pick up the previous anchor +

+ +

+ And this one +

+ +

+ Also this one +

+ +

+ Finally this +

+ +
+
+
+

+ Section Anchor +

+
+ +
+
+

+ Nested Section +

+
+
+
+
+
+

+ Conditional Section Anchor +

+
+
+
+
+

+ Lists +

+
+ +
    +
  • +
    + Item 1 +
    +
  • +
  • +
    + Item 2 +
    +
  • +
  • +
    + Nested List +
      +
    • +
      + Nested Item 1 +
      +
    • +
    • +
      + Nested Item 2 +
      +
    • +
    • +
      + Nested Item 3 +
      +
    • +
    +
    +
  • +
  • +
    + Item 3 +
    +
  • +
+
+
+
+

+ Anchors in templates +

+
+

+ Some text. +

+

+ Text content +

+
+
+
+

+ Anchors in syntax highlighted code +

+
+
int main() {}
+
+
+
+
+

+ Nested anchors +

+
+
+ + + + + + + + + + + + + + + + + + +
Table with anchors
+

+ Heading +

+
+

+ Cell 1 +

+
+

+ Cell 2 +

+
+

+ Cell 3 +

+
+
+
+
+
+

+ Anchors with templates +

+
+ +
+
+ + diff --git a/src/boost/tools/quickbook/test/anchor-1_7.quickbook b/src/boost/tools/quickbook/test/anchor-1_7.quickbook new file mode 100644 index 000000000..f2b5c13db --- /dev/null +++ b/src/boost/tools/quickbook/test/anchor-1_7.quickbook @@ -0,0 +1,97 @@ +[article Anchor Test +[quickbook 1.7] +] + +[section Anchors] + +[#a1] A paragraph containing several anchors. [#a2] We want to make sure +they appear in the correct place. [#a3] + +[heading This heading shouldn't pick up the previous anchor] + +[#a4] + +[heading This heading should pick up the previous anchor] + +[#a5] +[heading And this one] + +[#a6][heading Also this one] + +[#a7][h3 Finally this] + +[#a8] + +[endsect] + +[#a9] +[section Section Anchor] +[#a10][section Nested Section] +[endsect] +[/ This anchor is invalid, I'm not sure what to do with it] +[#a11] +[endsect] + +[#a12][?__not_defined__ #a13] +[section Conditional Section Anchor] +[endsect] + +[section Lists] + +[#a14] +* Item 1 +* Item 2 +* Nested List + [#a15] + * Nested Item 1 + * Nested Item 2 + * [#a16] Nested Item 3 +* Item 3 + +[endsect] + +[section Anchors in templates] + +[template anchor1[][#t1]] +[template para[] Text content] + +[anchor1] + +Some text. + +[#t2] + +[para] + +[endsect] + +[section Anchors in syntax highlighted code] + + int ``[#s1]``main() {} + +[endsect] + +[section Nested anchors] + +[table Table with anchors + [[Heading]] + [[[#table1]Cell 1]] + [[[#table2] Cell 2]] + [[Cell 3[#table3]]] +] +[endsect] + +[section:templates Anchors with templates] + +[template a1 anchor1] +[template a2 anchor2] + +[#[a1]] +[#[a2]] + +[template anchor[name] [#x[name]y]] + +[anchor 1] +[anchor 12] + +[endsect] [/ templates] diff --git a/src/boost/tools/quickbook/test/blocks-1_5.gold b/src/boost/tools/quickbook/test/blocks-1_5.gold new file mode 100644 index 000000000..2d7370be6 --- /dev/null +++ b/src/boost/tools/quickbook/test/blocks-1_5.gold @@ -0,0 +1,111 @@ + + +
+ Various blocks + + Blockquotes + + + Here's a blockquote: + +
+ + Blockquote. + +
+ + And another: + +
+ + Blockquote first paragraph. + + + Blockquote second paragraph. + +
+ + Admonitions + + + + Warning + + + + + Caution + + + + + Important + + + + + Note + + + + + Tip + + + + + Warning first paragraph. + + + Warning second paragraph. + + + + Blurb + + + + Blurb + + + + Inline + blocks + +
+ + Blockquote containing a footnote + + Here it is! + + . + +
+ + [tipping point] + + + Multiple paragraphs because of the inline blocks. + + + + Warning + + + + This line should appear as a separate paragraph. + + + + Warning + + + + + + This should be a list item because it's preceded by block markup. + + + +
diff --git a/src/boost/tools/quickbook/test/blocks-1_5.gold-html b/src/boost/tools/quickbook/test/blocks-1_5.gold-html new file mode 100644 index 000000000..c60436487 --- /dev/null +++ b/src/boost/tools/quickbook/test/blocks-1_5.gold-html @@ -0,0 +1,119 @@ + + + + +

+ Various blocks +

+

+ Blockquotes +

+

+ Here's a blockquote: +

+
+

+ Blockquote. +

+
+

+ And another: +

+
+

+ Blockquote first paragraph. +

+

+ Blockquote second paragraph. +

+
+

+ Admonitions +

+
+

+ Warning +

+
+
+

+ Caution +

+
+
+

+ Important +

+
+
+

+ Note +

+
+
+

+ Tip +

+
+
+

+ Warning first paragraph. +

+

+ Warning second paragraph. +

+
+

+ Blurb +

+
+

+ Blurb +

+
+

+ Inline blocks +

+
+

+ Blockquote containing a footnote[1]. +

+
+

+ [tipping point] +

+

+ Multiple paragraphs because of the inline blocks. +

+
+

+ Warning +

+
+

+ This line should appear as a separate paragraph. +

+
+

+ Warning +

+
+
    +
  • +
    + This should be a list item because it's preceded by block markup. +
    +
  • +
+
+
+
+
+

+ [1] Here it is! +

+
+
+ + diff --git a/src/boost/tools/quickbook/test/blocks-1_5.quickbook b/src/boost/tools/quickbook/test/blocks-1_5.quickbook new file mode 100644 index 000000000..2632a0fd6 --- /dev/null +++ b/src/boost/tools/quickbook/test/blocks-1_5.quickbook @@ -0,0 +1,46 @@ +[article Various blocks +[quickbook 1.5] +] + +[heading Blockquotes] + +Here's a blockquote: + +[:Blockquote.] + +And another: + +[: +Blockquote first paragraph. + +Blockquote second paragraph. +] + +[heading Admonitions] + +[warning Warning] +[caution Caution] +[important Important] +[note Note] +[tip Tip] + +[warning Warning first paragraph. + +Warning second paragraph.] + +[heading Blurb] + +[blurb Blurb] + +[heading Inline blocks] + +[: Blockquote containing a footnote[footnote Here it is!].] + +[/ Unfortunately footnotes currently can't contain blocks.] + +[/ Quickbook shouldn't think that this is a tip] +[tipping point] + +Multiple paragraphs because of the inline blocks. [warning Warning] This +line should appear as a separate paragraph.[warning Warning] +* This should be a list item because it's preceded by block markup. \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/callouts-1_5.gold b/src/boost/tools/quickbook/test/callouts-1_5.gold new file mode 100644 index 000000000..5b66c9933 --- /dev/null +++ b/src/boost/tools/quickbook/test/callouts-1_5.gold @@ -0,0 +1,241 @@ + + +
+ Callout Tests + + Example 1: + + + Now we can define a function that simulates an ordinary six-sided die. + + +int roll_die() { + boost::uniform_int<> dist(1, 6); +} + + + + + + create a uniform_int distribution + + + + + Example 2: + + +int roll_die() { + boost::variate_generator<boost::mt19937&, boost::uniform_int<> > die(gen, dist); +} + + + + + + + test + + + + + + Example 3: + + +int roll_die() { + boost::variate_generator<boost::mt19937&, boost::uniform_int<> > die(gen, dist); +} + + + + + + + test + + + + + + Example 3 (again!): + + +int roll_die() { + boost::variate_generator<boost::mt19937&, boost::uniform_int<> > die(gen, dist); +} + + + + + + + test + + + + + + Example 4: + + +int roll_die() { + boost::variate_generator<boost::mt19937&, boost::uniform_int<> > die(gen, dist); + boost::uniform_int<> dist(1, 6); +} + + + + + + callout 1 + + + + + callout 2 + + + + + create a uniform_int distribution + + + + +boost::uniform_int<> dist(1, 6); + + + + + + callout 2 + + + + + create a uniform_int distribution + + + +
+ <link linkend="callout_tests.test_section">Try callouts in a section</link> + + Example 1: + + + Now we can define a function that simulates an ordinary six-sided die. + + +int roll_die() { + boost::uniform_int<> dist(1, 6); +} + + + + + + create a uniform_int distribution + + + + + Example 2: + + +int roll_die() { + boost::variate_generator<boost::mt19937&, boost::uniform_int<> > die(gen, dist); +} + + + + + + + test + + + + + + Example 3: + + +int roll_die() { + boost::variate_generator<boost::mt19937&, boost::uniform_int<> > die(gen, dist); +} + + + + + + + test + + + + + + Example 3 (again!): + + +int roll_die() { + boost::variate_generator<boost::mt19937&, boost::uniform_int<> > die(gen, dist); +} + + + + + + + test + + + + + + Example 4: + + +int roll_die() { + boost::variate_generator<boost::mt19937&, boost::uniform_int<> > die(gen, dist); + boost::uniform_int<> dist(1, 6); +} + + + + + + callout 1 + + + + + callout 2 + + + + + create a uniform_int distribution + + + + +boost::uniform_int<> dist(1, 6); + + + + + + callout 2 + + + + + create a uniform_int distribution + + + +
+
diff --git a/src/boost/tools/quickbook/test/callouts-1_5.gold-html b/src/boost/tools/quickbook/test/callouts-1_5.gold-html new file mode 100644 index 000000000..17319559b --- /dev/null +++ b/src/boost/tools/quickbook/test/callouts-1_5.gold-html @@ -0,0 +1,276 @@ + + + + +

+ Callout Tests +

+
+

+ Table of contents +

+ +
+

+ Example 1: +

+

+ Now we can define a function that simulates an ordinary six-sided die. +

+

+

int roll_die() {
+  boost::uniform_int<> dist(1, 6); (1)
+}
+
+

+
+
+ (1) +

+ create a uniform_int distribution +

+
+
+

+ Example 2: +

+

+

int roll_die() {
+  (1)boost::variate_generator<boost::mt19937&, boost::uniform_int<> > die(gen, dist);
+}
+
+

+
+
+ (1) +
+

+ test +

+
+
+
+

+ Example 3: +

+

+

int roll_die() {
+  (1)boost::variate_generator<boost::mt19937&, boost::uniform_int<> > die(gen, dist);
+}
+
+

+
+
+ (1) +
+

+ test +

+
+
+
+

+ Example 3 (again!): +

+

+

int roll_die() {
+  (1)boost::variate_generator<boost::mt19937&, boost::uniform_int<> > die(gen, dist);
+}
+
+

+
+
+ (1) +
+

+ test +

+
+
+
+

+ Example 4: +

+

+

int roll_die() {
+  (1)boost::variate_generator<boost::mt19937&, boost::uniform_int<> > die(gen, dist);
+  (2)boost::uniform_int<> dist(1, 6); (3)
+}
+
+

+
+
+ (1) +

+ callout 1 +

+
+
+ (2) +

+ callout 2 +

+
+
+ (3) +

+ create a uniform_int distribution +

+
+
+

+

(1)boost::uniform_int<> dist(1, 6); (2)
+
+

+
+
+ (1) +

+ callout 2 +

+
+
+ (2) +

+ create a uniform_int distribution +

+
+
+
+

+ Try callouts in a section +

+
+

+ Example 1: +

+

+ Now we can define a function that simulates an ordinary six-sided die. +

+

+

int roll_die() {
+  boost::uniform_int<> dist(1, 6); (1)
+}
+
+

+
+
+ (1) +

+ create a uniform_int distribution +

+
+
+

+ Example 2: +

+

+

int roll_die() {
+  (1)boost::variate_generator<boost::mt19937&, boost::uniform_int<> > die(gen, dist);
+}
+
+

+
+
+ (1) +
+

+ test +

+
+
+
+

+ Example 3: +

+

+

int roll_die() {
+  (1)boost::variate_generator<boost::mt19937&, boost::uniform_int<> > die(gen, dist);
+}
+
+

+
+
+ (1) +
+

+ test +

+
+
+
+

+ Example 3 (again!): +

+

+

int roll_die() {
+  (1)boost::variate_generator<boost::mt19937&, boost::uniform_int<> > die(gen, dist);
+}
+
+

+
+
+ (1) +
+

+ test +

+
+
+
+

+ Example 4: +

+

+

int roll_die() {
+  (1)boost::variate_generator<boost::mt19937&, boost::uniform_int<> > die(gen, dist);
+  (2)boost::uniform_int<> dist(1, 6); (3)
+}
+
+

+
+
+ (1) +

+ callout 1 +

+
+
+ (2) +

+ callout 2 +

+
+
+ (3) +

+ create a uniform_int distribution +

+
+
+

+

(1)boost::uniform_int<> dist(1, 6); (2)
+
+

+
+
+ (1) +

+ callout 2 +

+
+
+ (2) +

+ create a uniform_int distribution +

+
+
+
+
+ + diff --git a/src/boost/tools/quickbook/test/callouts-1_5.quickbook b/src/boost/tools/quickbook/test/callouts-1_5.quickbook new file mode 100644 index 000000000..b17e90489 --- /dev/null +++ b/src/boost/tools/quickbook/test/callouts-1_5.quickbook @@ -0,0 +1,51 @@ +[article Callout Tests + [quickbook 1.5] +] + +[import callouts.cpp] + +Example 1: + +[example1] + +Example 2: + +[example2] + +Example 3: + +[example3] + +Example 3 (again!): + +[example3] + +Example 4: + +[example4] +[example4a] + +[section:test_section Try callouts in a section] + +Example 1: + +[example1] + +Example 2: + +[example2] + +Example 3: + +[example3] + +Example 3 (again!): + +[example3] + +Example 4: + +[example4] +[example4a] + +[endsect] \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/callouts-1_7.gold b/src/boost/tools/quickbook/test/callouts-1_7.gold new file mode 100644 index 000000000..5d2c2d154 --- /dev/null +++ b/src/boost/tools/quickbook/test/callouts-1_7.gold @@ -0,0 +1,249 @@ + + +
+ Callout Tests + + Example 1: + + + Now we can define a function that simulates an ordinary six-sided die. + +int roll_die() { + boost::uniform_int<> dist(1, 6); +} + + + + + create a uniform_int distribution + + + + + Example 2: + +int roll_die() { + boost::variate_generator<boost::mt19937&, boost::uniform_int<> > die(gen, dist); +} + + + + + + test + + + + + + Example 3: + +int roll_die() { + boost::variate_generator<boost::mt19937&, boost::uniform_int<> > die(gen, dist); +} + + + + + + test + + + + + + Example 3 (again!): + +int roll_die() { + boost::variate_generator<boost::mt19937&, boost::uniform_int<> > die(gen, dist); +} + + + + + + test + + + + + + Example 4: + +int roll_die() { + boost::variate_generator<boost::mt19937&, boost::uniform_int<> > die(gen, dist); + boost::uniform_int<> dist(1, 6); +} + + + + + callout 1 + + + + + callout 2 + + + + + create a uniform_int distribution + + + +boost::uniform_int<> dist(1, 6); + + + + + callout 2 + + + + + create a uniform_int distribution + + + +
+ <link linkend="callout_tests.test_section">Try callouts in a section</link> + + Example 1: + + + Now we can define a function that simulates an ordinary six-sided die. + +int roll_die() { + boost::uniform_int<> dist(1, 6); +} + + + + + create a uniform_int distribution + + + + + Example 2: + +int roll_die() { + boost::variate_generator<boost::mt19937&, boost::uniform_int<> > die(gen, dist); +} + + + + + + test + + + + + + Example 3: + +int roll_die() { + boost::variate_generator<boost::mt19937&, boost::uniform_int<> > die(gen, dist); +} + + + + + + test + + + + + + Example 3 (again!): + +int roll_die() { + boost::variate_generator<boost::mt19937&, boost::uniform_int<> > die(gen, dist); +} + + + + + + test + + + + + + Example 4: + +int roll_die() { + boost::variate_generator<boost::mt19937&, boost::uniform_int<> > die(gen, dist); + boost::uniform_int<> dist(1, 6); +} + + + + + callout 1 + + + + + callout 2 + + + + + create a uniform_int distribution + + + +boost::uniform_int<> dist(1, 6); + + + + + callout 2 + + + + + create a uniform_int distribution + + + +
+
+ <link linkend="callout_tests.blocks">Callouts in code blocks</link> +int roll_die() { + boost::uniform_int<> dist(1, 6); +} + + + + + create a uniform_int distribution + + + +int roll_die() { + boost::variate_generator<boost::mt19937&, boost::uniform_int<> > die(gen, dist); +} + + + + + + test + + + + + + /*< This shouldn't be a callout >*/ + + Silly test +silly +
+
diff --git a/src/boost/tools/quickbook/test/callouts-1_7.gold-html b/src/boost/tools/quickbook/test/callouts-1_7.gold-html new file mode 100644 index 000000000..4ca439bb2 --- /dev/null +++ b/src/boost/tools/quickbook/test/callouts-1_7.gold-html @@ -0,0 +1,302 @@ + + + + +

+ Callout Tests +

+
+

+ Table of contents +

+ +
+

+ Example 1: +

+

+ Now we can define a function that simulates an ordinary six-sided die. +

+
int roll_die() {
+  boost::uniform_int<> dist(1, 6); (1)
+}
+
+
+
+ (1) +

+ create a uniform_int distribution +

+
+
+

+ Example 2: +

+
int roll_die() {
+  (1)boost::variate_generator<boost::mt19937&, boost::uniform_int<> > die(gen, dist);
+}
+
+
+
+ (1) +
+

+ test +

+
+
+
+

+ Example 3: +

+
int roll_die() {
+  (1)boost::variate_generator<boost::mt19937&, boost::uniform_int<> > die(gen, dist);
+}
+
+
+
+ (1) +
+

+ test +

+
+
+
+

+ Example 3 (again!): +

+
int roll_die() {
+  (1)boost::variate_generator<boost::mt19937&, boost::uniform_int<> > die(gen, dist);
+}
+
+
+
+ (1) +
+

+ test +

+
+
+
+

+ Example 4: +

+
int roll_die() {
+  (1)boost::variate_generator<boost::mt19937&, boost::uniform_int<> > die(gen, dist);
+  (2)boost::uniform_int<> dist(1, 6); (3)
+}
+
+
+
+ (1) +

+ callout 1 +

+
+
+ (2) +

+ callout 2 +

+
+
+ (3) +

+ create a uniform_int distribution +

+
+
+
(1)boost::uniform_int<> dist(1, 6); (2)
+
+
+
+ (1) +

+ callout 2 +

+
+
+ (2) +

+ create a uniform_int distribution +

+
+
+
+

+ Try callouts in a section +

+
+

+ Example 1: +

+

+ Now we can define a function that simulates an ordinary six-sided die. +

+
int roll_die() {
+  boost::uniform_int<> dist(1, 6); (1)
+}
+
+
+
+ (1) +

+ create a uniform_int distribution +

+
+
+

+ Example 2: +

+
int roll_die() {
+  (1)boost::variate_generator<boost::mt19937&, boost::uniform_int<> > die(gen, dist);
+}
+
+
+
+ (1) +
+

+ test +

+
+
+
+

+ Example 3: +

+
int roll_die() {
+  (1)boost::variate_generator<boost::mt19937&, boost::uniform_int<> > die(gen, dist);
+}
+
+
+
+ (1) +
+

+ test +

+
+
+
+

+ Example 3 (again!): +

+
int roll_die() {
+  (1)boost::variate_generator<boost::mt19937&, boost::uniform_int<> > die(gen, dist);
+}
+
+
+
+ (1) +
+

+ test +

+
+
+
+

+ Example 4: +

+
int roll_die() {
+  (1)boost::variate_generator<boost::mt19937&, boost::uniform_int<> > die(gen, dist);
+  (2)boost::uniform_int<> dist(1, 6); (3)
+}
+
+
+
+ (1) +

+ callout 1 +

+
+
+ (2) +

+ callout 2 +

+
+
+ (3) +

+ create a uniform_int distribution +

+
+
+
(1)boost::uniform_int<> dist(1, 6); (2)
+
+
+
+ (1) +

+ callout 2 +

+
+
+ (2) +

+ create a uniform_int distribution +

+
+
+
+
+
+

+ Callouts in code blocks +

+
+
int roll_die() {
+  boost::uniform_int<> dist(1, 6); (1)
+}
+
+
+
+ (1) +

+ create a uniform_int distribution +

+
+
+
int roll_die() {
+  (1)boost::variate_generator<boost::mt19937&, boost::uniform_int<> > die(gen, dist);
+}
+
+
+
+ (1) +
+

+ test +

+
+
+
+

+ /*< This shouldn't be a callout >*/ +

+

+ Silly test(1) +

+
+
+ (1) +

+ silly +

+
+
+
+
+ + diff --git a/src/boost/tools/quickbook/test/callouts-1_7.quickbook b/src/boost/tools/quickbook/test/callouts-1_7.quickbook new file mode 100644 index 000000000..5361ba900 --- /dev/null +++ b/src/boost/tools/quickbook/test/callouts-1_7.quickbook @@ -0,0 +1,73 @@ +[article Callout Tests + [quickbook 1.7] +] + +[import callouts.cpp] + +Example 1: + +[example1] + +Example 2: + +[example2] + +Example 3: + +[example3] + +Example 3 (again!): + +[example3] + +Example 4: + +[example4] +[example4a] + +[section:test_section Try callouts in a section] + +Example 1: + +[example1] + +Example 2: + +[example2] + +Example 3: + +[example3] + +Example 3 (again!): + +[example3] + +Example 4: + +[example4] +[example4a] + +[endsect] + +[section:blocks Callouts in code blocks] + + int roll_die() { + boost::uniform_int<> dist(1, 6); /*< create a uniform_int distribution >*/ + } + +``` +int roll_die() { + /*<< [important test] >>*/ + boost::variate_generator > die(gen, dist); +} +``` + +`/*< This shouldn't be a callout >*/` + +[block''' +Silly test +silly +'''] + +[endsect] diff --git a/src/boost/tools/quickbook/test/callouts.cpp b/src/boost/tools/quickbook/test/callouts.cpp new file mode 100644 index 000000000..8506a93f1 --- /dev/null +++ b/src/boost/tools/quickbook/test/callouts.cpp @@ -0,0 +1,52 @@ + +// Copyright 2009 Daniel James. +// Distributed under the Boost Software License, Version 1.0. (See accompanying +// file LICENSE_1_0.txt or move at http://www.boost.org/LICENSE_1_0.txt) + +// clang-format off + +/*< This shouldn't be used. >*/ + +//[ example1 + +/*` + Now we can define a function that simulates an ordinary + six-sided die. +*/ +int roll_die() { + boost::uniform_int<> dist(1, 6); /*< create a uniform_int distribution >*/ +} + +//] + +//[ example2 + +int roll_die() { + /*<< [important test] >>*/ + boost::variate_generator > die(gen, dist); +} + +//] + +//[ example3 + +int roll_die() { + /*<< [important test] + >>*/ + boost::variate_generator > die(gen, dist); +} + +//] + +//[ example4 + +int roll_die() { + /*<< callout 1 >>*/ + boost::variate_generator > die(gen, dist); +//[ example4a + /*<< callout 2 >>*/ + boost::uniform_int<> dist(1, 6); /*< create a uniform_int distribution >*/ +//] +} + +//] diff --git a/src/boost/tools/quickbook/test/code-1_1.gold b/src/boost/tools/quickbook/test/code-1_1.gold new file mode 100644 index 000000000..d7382593b --- /dev/null +++ b/src/boost/tools/quickbook/test/code-1_1.gold @@ -0,0 +1,52 @@ + + +
+ Code Block +
+ Test 1 + + A code block with proper indentation ;-) + +#include <iostream> + +int main() +{ + std::cout << "Hello, World!" << std::endl; + return 0; +} + +
+
+ Test 2 + + A code block with proper indentation ;-) + + +#include <iostream> + +int main() +{ + std::cout << "Hello, World!" << std::endl; + return 0; +} + + +
+
+ Test 3 + +print "\xfabln\xeck" + + +
+
+ Test 4 + + This isn't valid C++ but I think we should accept it; + + +std::cout<<"\xfabln\xeck"<<"\n"; + + +
+
diff --git a/src/boost/tools/quickbook/test/code-1_1.gold-html b/src/boost/tools/quickbook/test/code-1_1.gold-html new file mode 100644 index 000000000..3c676ecc2 --- /dev/null +++ b/src/boost/tools/quickbook/test/code-1_1.gold-html @@ -0,0 +1,91 @@ + + + + +

+ Code Block +

+
+

+ Table of contents +

+ +
+
+

+ Test 1 +

+
+

+ A code block with proper indentation ;-) +

+
#include <iostream>
+
+int main()
+{
+    std::cout << "Hello, World!" << std::endl;
+    return 0;
+}
+
+
+
+
+

+ Test 2 +

+
+

+ A code block with proper indentation ;-) +

+

+

#include <iostream>
+
+int main()
+{
+    std::cout << "Hello, World!" << std::endl;
+    return 0;
+}
+
+

+
+
+
+

+ Test 3 +

+
+

+

print "\xfabln\xeck"
+
+

+
+
+
+

+ Test 4 +

+
+

+ This isn't valid C++ but I think we should accept it; +

+

+

std::cout<<"\xfabln\xeck"<<"\n";
+
+

+
+
+ + diff --git a/src/boost/tools/quickbook/test/code-1_1.quickbook b/src/boost/tools/quickbook/test/code-1_1.quickbook new file mode 100644 index 000000000..8c800911a --- /dev/null +++ b/src/boost/tools/quickbook/test/code-1_1.quickbook @@ -0,0 +1,51 @@ +[article Code Block] + +[section Test 1] + +A code block with proper indentation ;-) + + #include + + int main() + { + std::cout << "Hello, World!" << std::endl; + return 0; + } + +[endsect] + +[section Test 2] + +A code block with proper indentation ;-) + +`` + #include + + int main() + { + std::cout << "Hello, World!" << std::endl; + return 0; + } +`` + +[endsect] + +[section Test 3] + +[python] +`` + print "\xfabln\xeck" +`` + +[endsect] + +[section Test 4] + +This isn't valid C++ but I think we should accept it; + +[c++] +`` + std::cout<<"\xfabln\xeck"<<"\n"; +`` + +[endsect] diff --git a/src/boost/tools/quickbook/test/code-1_5.gold b/src/boost/tools/quickbook/test/code-1_5.gold new file mode 100644 index 000000000..8ca228126 --- /dev/null +++ b/src/boost/tools/quickbook/test/code-1_5.gold @@ -0,0 +1,37 @@ + + +
+ Indented code blocks + + In a paragraph. Still in a paragraph. + +In a code block. + + + Back in a paragraph. + + Code block line 1. +Code block line 2. + Code block line 3. + + + Paragraph. + +Code block with no trailing blank lines. + + + Paragraph. + + + Code + blocks separated by comment + +First code block. + +Second code block. +[/ Comment in second code block] +Still second code block. +[/ Comment trailing second code block] + +
diff --git a/src/boost/tools/quickbook/test/code-1_5.gold-html b/src/boost/tools/quickbook/test/code-1_5.gold-html new file mode 100644 index 000000000..02164d1b9 --- /dev/null +++ b/src/boost/tools/quickbook/test/code-1_5.gold-html @@ -0,0 +1,39 @@ + + + + +

+ Indented code blocks +

+

+ In a paragraph. Still in a paragraph. +

+
In a code block.
+
+

+ Back in a paragraph. +

+
   Code block line 1.
+Code block line 2.
+       Code block line 3.
+
+

+ Paragraph. +

+
Code block with no trailing blank lines.
+
+

+ Paragraph. +

+

+ Code blocks separated by comment +

+
First code block.
+
+
Second code block.
+[/ Comment in second code block]
+Still second code block.
+[/ Comment trailing second code block]
+
+ + diff --git a/src/boost/tools/quickbook/test/code-1_5.quickbook b/src/boost/tools/quickbook/test/code-1_5.quickbook new file mode 100644 index 000000000..de377a64f --- /dev/null +++ b/src/boost/tools/quickbook/test/code-1_5.quickbook @@ -0,0 +1,29 @@ +[article Indented code blocks + [quickbook 1.5] + [source-mode teletype] +] + +In a paragraph. + Still in a paragraph. + + In a code block. + +Back in a paragraph. + + Code block line 1. + Code block line 2. + Code block line 3. + +Paragraph. + + Code block with no trailing blank lines. +Paragraph. + +[heading Code blocks separated by comment] + + First code block. +[/ Comment] + Second code block. + [/ Comment in second code block] + Still second code block. + [/ Comment trailing second code block] diff --git a/src/boost/tools/quickbook/test/code_cpp-1_5.gold b/src/boost/tools/quickbook/test/code_cpp-1_5.gold new file mode 100644 index 000000000..d0bc79a3f --- /dev/null +++ b/src/boost/tools/quickbook/test/code_cpp-1_5.gold @@ -0,0 +1,40 @@ + + +
+ C++ Code Blocks +#include <some_header> + #include "another_header.hpp" +# define A_MACRO value +#define stringize(hello) #hello +// No escape +/* No escape */ +/* No escape + * with newlines + */ +// In Header: <boost/optional/optional.hpp> +/* In Header: <boost/optional/optional.hpp> */ +/* Multiple escapes: italic + * underlinebold + */ +/* Token pasting: */ a##b + + + A badly formed comment: + +/* Oh dear + + + A badly formed comment with an escape: + +/* Oh dear bold + + + Just some code: + +int main() { + constexpr char32_t x = 'a'; + const auto y = x - ' '; +} + +
diff --git a/src/boost/tools/quickbook/test/code_cpp-1_5.gold-html b/src/boost/tools/quickbook/test/code_cpp-1_5.gold-html new file mode 100644 index 000000000..9fd45cd28 --- /dev/null +++ b/src/boost/tools/quickbook/test/code_cpp-1_5.gold-html @@ -0,0 +1,43 @@ + + + + +

+ C++ Code Blocks +

+
#include <some_header>
+    #include "another_header.hpp"
+#   define A_MACRO value
+#define stringize(hello) #hello
+// No escape
+/* No escape */
+/* No escape
+ * with newlines
+ */
+// In Header: <boost/optional/optional.hpp>
+/* In Header: <boost/optional/optional.hpp> */
+/* Multiple escapes: italic
+ * underlinebold
+ */
+/* Token pasting: */ a##b
+
+

+ A badly formed comment: +

+
/* Oh dear
+
+

+ A badly formed comment with an escape: +

+
/* Oh dear bold
+
+

+ Just some code: +

+
int main() {
+    constexpr char32_t x = 'a';
+    const auto y = x - ' ';
+}
+
+ + diff --git a/src/boost/tools/quickbook/test/code_cpp-1_5.quickbook b/src/boost/tools/quickbook/test/code_cpp-1_5.quickbook new file mode 100644 index 000000000..fdaa926bb --- /dev/null +++ b/src/boost/tools/quickbook/test/code_cpp-1_5.quickbook @@ -0,0 +1,34 @@ +[article C++ Code Blocks +[quickbook 1.5] +] + + #include + #include "another_header.hpp" + # define A_MACRO value + #define stringize(hello) #hello + // No escape + /* No escape */ + /* No escape + * with newlines + */ + // In Header: <``[@boost:/boost/optional/optional.hpp boost/optional/optional.hpp]``> + /* In Header: <``[@boost:/boost/optional/optional.hpp boost/optional/optional.hpp]``> */ + /* Multiple escapes: ``/italic/`` + * ``_underline_````*bold*`` + */ + /* Token pasting: */ a##b + +A badly formed comment: + + /* Oh dear + +A badly formed comment with an escape: + + /* Oh dear ``*bold*`` + +Just some code: + + int main() { + constexpr char32_t x = 'a'; + const auto y = x - ' '; + } diff --git a/src/boost/tools/quickbook/test/code_cpp_mismatched_escape-1_4-fail.quickbook b/src/boost/tools/quickbook/test/code_cpp_mismatched_escape-1_4-fail.quickbook new file mode 100644 index 000000000..d5d332c17 --- /dev/null +++ b/src/boost/tools/quickbook/test/code_cpp_mismatched_escape-1_4-fail.quickbook @@ -0,0 +1,5 @@ +[article Odd code markup. [quickbook 1.4] ] + +[c++] + + `` int main() {} diff --git a/src/boost/tools/quickbook/test/code_python-1_5.gold b/src/boost/tools/quickbook/test/code_python-1_5.gold new file mode 100644 index 000000000..239d1470a --- /dev/null +++ b/src/boost/tools/quickbook/test/code_python-1_5.gold @@ -0,0 +1,10 @@ + + +
+ Python Code Blocks +# No escape +# Escape: bold +# Escape: underlineitalic + +
diff --git a/src/boost/tools/quickbook/test/code_python-1_5.gold-html b/src/boost/tools/quickbook/test/code_python-1_5.gold-html new file mode 100644 index 000000000..15a7739b1 --- /dev/null +++ b/src/boost/tools/quickbook/test/code_python-1_5.gold-html @@ -0,0 +1,13 @@ + + + + +

+ Python Code Blocks +

+
# No escape
+# Escape: bold
+# Escape: underlineitalic
+
+ + diff --git a/src/boost/tools/quickbook/test/code_python-1_5.quickbook b/src/boost/tools/quickbook/test/code_python-1_5.quickbook new file mode 100644 index 000000000..45e700ecb --- /dev/null +++ b/src/boost/tools/quickbook/test/code_python-1_5.quickbook @@ -0,0 +1,8 @@ +[article Python Code Blocks +[quickbook 1.5] +[source-mode python] +] + + # No escape + # Escape: ``*bold*`` + # Escape: ``_underline_````/italic/`` diff --git a/src/boost/tools/quickbook/test/code_python_mismatched_escape-1_4-fail.quickbook b/src/boost/tools/quickbook/test/code_python_mismatched_escape-1_4-fail.quickbook new file mode 100644 index 000000000..e93cf13f1 --- /dev/null +++ b/src/boost/tools/quickbook/test/code_python_mismatched_escape-1_4-fail.quickbook @@ -0,0 +1,5 @@ +[article Odd code markup. [quickbook 1.4] ] + +[python] + + print "Hello World." `` diff --git a/src/boost/tools/quickbook/test/code_snippet-1_1.gold b/src/boost/tools/quickbook/test/code_snippet-1_1.gold new file mode 100644 index 000000000..1badf4bab --- /dev/null +++ b/src/boost/tools/quickbook/test/code_snippet-1_1.gold @@ -0,0 +1,22 @@ + + +
+ Code Snippets +
+ A code snippet + + Code snippets inlined in text, as in namespace + quickbook { + static const + int value + = 0; + }, should be properly formatted and + not glued to the surrounding text. + + + There shoud be no spacees around (this), + and spaces around this code. + +
+
diff --git a/src/boost/tools/quickbook/test/code_snippet-1_1.gold-html b/src/boost/tools/quickbook/test/code_snippet-1_1.gold-html new file mode 100644 index 000000000..a3738bf37 --- /dev/null +++ b/src/boost/tools/quickbook/test/code_snippet-1_1.gold-html @@ -0,0 +1,39 @@ + + + + +

+ Code Snippets +

+
+

+ Table of contents +

+ +
+
+

+ A code snippet +

+
+

+ Code snippets inlined in text, as in namespace + quickbook { + static const + int value + = 0; + }, should be properly formatted and + not glued to the surrounding text. +

+

+ There shoud be no spacees around (this), + and spaces around this code. +

+
+
+ + diff --git a/src/boost/tools/quickbook/test/code_snippet-1_1.quickbook b/src/boost/tools/quickbook/test/code_snippet-1_1.quickbook new file mode 100644 index 000000000..875162708 --- /dev/null +++ b/src/boost/tools/quickbook/test/code_snippet-1_1.quickbook @@ -0,0 +1,12 @@ +[article Code Snippets +] + +[section A code snippet] + +Code snippets inlined in text, as in `namespace quickbook { static const int +value = 0; }`, should be properly formatted and not glued to the surrounding +text. + +There shoud be no spacees around (`this`), and spaces around `this` code. + +[endsect] diff --git a/src/boost/tools/quickbook/test/code_teletype-1_5.gold b/src/boost/tools/quickbook/test/code_teletype-1_5.gold new file mode 100644 index 000000000..e36fb11bb --- /dev/null +++ b/src/boost/tools/quickbook/test/code_teletype-1_5.gold @@ -0,0 +1,12 @@ + + +
+ Code Block Teletype 1 +
+ <link linkend="code_block_teletype_1.a_code_block">A code block</link> +Just some plain text. +With some quickbook thrown in? + +
+
diff --git a/src/boost/tools/quickbook/test/code_teletype-1_5.gold-html b/src/boost/tools/quickbook/test/code_teletype-1_5.gold-html new file mode 100644 index 000000000..a038a4b6c --- /dev/null +++ b/src/boost/tools/quickbook/test/code_teletype-1_5.gold-html @@ -0,0 +1,29 @@ + + + + +

+ Code Block Teletype 1 +

+
+

+ Table of contents +

+ +
+
+

+ A code block +

+
+
Just some plain text.
+With some quickbook thrown in?
+
+
+
+ + diff --git a/src/boost/tools/quickbook/test/code_teletype-1_5.quickbook b/src/boost/tools/quickbook/test/code_teletype-1_5.quickbook new file mode 100644 index 000000000..841de3e54 --- /dev/null +++ b/src/boost/tools/quickbook/test/code_teletype-1_5.quickbook @@ -0,0 +1,13 @@ +[article Code Block Teletype 1 + [quickbook 1.5] + [source-mode teletype] +] + +[section A code block] + +[def __text__ text] + + Just some plain __text__. + ``With some *quickbook* thrown in?`` + +[endsect] diff --git a/src/boost/tools/quickbook/test/code_unclosed_block-1_6-fail.quickbook b/src/boost/tools/quickbook/test/code_unclosed_block-1_6-fail.quickbook new file mode 100644 index 000000000..f02887c44 --- /dev/null +++ b/src/boost/tools/quickbook/test/code_unclosed_block-1_6-fail.quickbook @@ -0,0 +1,4 @@ +[article Odd code markup. [quickbook 1.6] ] + +`` +int main() {} diff --git a/src/boost/tools/quickbook/test/command-line/Jamfile.v2 b/src/boost/tools/quickbook/test/command-line/Jamfile.v2 new file mode 100644 index 000000000..9e838e0a4 --- /dev/null +++ b/src/boost/tools/quickbook/test/command-line/Jamfile.v2 @@ -0,0 +1,28 @@ + +# +# Copyright (c) 2011 Daniel James +# +# Distributed under the Boost Software License, Version 1.0. (See +# accompanying file LICENSE_1_0.txt or copy at +# http://www.boost.org/LICENSE_1_0.txt) +# + +project quickbook/tests/command-line ; + +import quickbook-testing : quickbook-test quickbook-fail-test quickbook-error-test ; + +test-suite command-line.test : + # Check that expect-errors works as advertised. + [ quickbook-fail-test error-fail : : --expect-errors ] + [ quickbook-error-test error1 ] + [ quickbook-error-test error2 ] + + [ quickbook-error-test + non_existent_output : + basic-1_6.quickbook : + --output-file=non-existent/basic.xml ] + [ quickbook-error-test + output_nested_in_file : + basic-1_6.quickbook : + --output-file=basic-1_6.quickbook/basic.xml ] + ; diff --git a/src/boost/tools/quickbook/test/command-line/basic-1_6.quickbook b/src/boost/tools/quickbook/test/command-line/basic-1_6.quickbook new file mode 100644 index 000000000..fa8c8a693 --- /dev/null +++ b/src/boost/tools/quickbook/test/command-line/basic-1_6.quickbook @@ -0,0 +1,5 @@ +[article Basic quickbook file +[quickbook 1.5] +] + +Just used for running command line tests. \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/command-line/error-fail.quickbook b/src/boost/tools/quickbook/test/command-line/error-fail.quickbook new file mode 100644 index 000000000..835f01ad5 --- /dev/null +++ b/src/boost/tools/quickbook/test/command-line/error-fail.quickbook @@ -0,0 +1,5 @@ +[article Valid file to just that expect errors fails +[quickbook 1.5] +] + +No errors. \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/command-line/error1.quickbook b/src/boost/tools/quickbook/test/command-line/error1.quickbook new file mode 100644 index 000000000..5f76a444e --- /dev/null +++ b/src/boost/tools/quickbook/test/command-line/error1.quickbook @@ -0,0 +1,3 @@ +[article A file with an error in the docinfo +[quickbook 0.8] +] diff --git a/src/boost/tools/quickbook/test/command-line/error2.quickbook b/src/boost/tools/quickbook/test/command-line/error2.quickbook new file mode 100644 index 000000000..2eea16285 --- /dev/null +++ b/src/boost/tools/quickbook/test/command-line/error2.quickbook @@ -0,0 +1,7 @@ +[article A file with an error in the body +[quickbook 1.5] +] + +[table +[x] +] \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/command_line_macro-1_1.gold b/src/boost/tools/quickbook/test/command_line_macro-1_1.gold new file mode 100644 index 000000000..423b5cbba --- /dev/null +++ b/src/boost/tools/quickbook/test/command_line_macro-1_1.gold @@ -0,0 +1,12 @@ + + +
+ Command Line Macro + + bold + + + empty is defined + +
diff --git a/src/boost/tools/quickbook/test/command_line_macro-1_1.gold-html b/src/boost/tools/quickbook/test/command_line_macro-1_1.gold-html new file mode 100644 index 000000000..7e90fe4dd --- /dev/null +++ b/src/boost/tools/quickbook/test/command_line_macro-1_1.gold-html @@ -0,0 +1,15 @@ + + + + +

+ Command Line Macro +

+

+ bold +

+

+ empty is defined +

+ + diff --git a/src/boost/tools/quickbook/test/command_line_macro-1_1.quickbook b/src/boost/tools/quickbook/test/command_line_macro-1_1.quickbook new file mode 100644 index 000000000..5b19fc006 --- /dev/null +++ b/src/boost/tools/quickbook/test/command_line_macro-1_1.quickbook @@ -0,0 +1,10 @@ +[article Command Line Macro +] + +[/ This test relies on __macro__ being defined at the command line.] + +__macro__ + +__empty__ + +[?__empty__ empty is defined] \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/cond_phrase-1_5.gold b/src/boost/tools/quickbook/test/cond_phrase-1_5.gold new file mode 100644 index 000000000..95a1d35d7 --- /dev/null +++ b/src/boost/tools/quickbook/test/cond_phrase-1_5.gold @@ -0,0 +1,15 @@ + + +
+ Coniditional Phrase Test + + This should show + + + The should be no space inserted. + + + Bold text + +
diff --git a/src/boost/tools/quickbook/test/cond_phrase-1_5.gold-html b/src/boost/tools/quickbook/test/cond_phrase-1_5.gold-html new file mode 100644 index 000000000..c9256b0cb --- /dev/null +++ b/src/boost/tools/quickbook/test/cond_phrase-1_5.gold-html @@ -0,0 +1,18 @@ + + + + +

+ Coniditional Phrase Test +

+

+ This should show +

+

+ The should be no space inserted. +

+

+ Bold text +

+ + diff --git a/src/boost/tools/quickbook/test/cond_phrase-1_5.quickbook b/src/boost/tools/quickbook/test/cond_phrase-1_5.quickbook new file mode 100644 index 000000000..e158a251b --- /dev/null +++ b/src/boost/tools/quickbook/test/cond_phrase-1_5.quickbook @@ -0,0 +1,12 @@ +[article Coniditional Phrase Test + [quickbook 1.5] +] + +[def __defined__] + +[? __defined__ This should show] +[? __undefined__ This should not show] + +The should be no sp[?__undefined__ just some junk]ace inserted. + +[? __defined__ [*Bold text]] \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/cond_phrase-1_7.gold b/src/boost/tools/quickbook/test/cond_phrase-1_7.gold new file mode 100644 index 000000000..34ba8a0bd --- /dev/null +++ b/src/boost/tools/quickbook/test/cond_phrase-1_7.gold @@ -0,0 +1,21 @@ + + +
+ Coniditional Phrase Test + + This should show + + + But this should show + + + Weird macro is defined + + + The should be no space inserted. + + + Bold text + +
diff --git a/src/boost/tools/quickbook/test/cond_phrase-1_7.gold-html b/src/boost/tools/quickbook/test/cond_phrase-1_7.gold-html new file mode 100644 index 000000000..6c0117935 --- /dev/null +++ b/src/boost/tools/quickbook/test/cond_phrase-1_7.gold-html @@ -0,0 +1,24 @@ + + + + +

+ Coniditional Phrase Test +

+

+ This should show +

+

+ But this should show +

+

+ Weird macro is defined +

+

+ The should be no space inserted. +

+

+ Bold text +

+ + diff --git a/src/boost/tools/quickbook/test/cond_phrase-1_7.quickbook b/src/boost/tools/quickbook/test/cond_phrase-1_7.quickbook new file mode 100644 index 000000000..ebf356bf0 --- /dev/null +++ b/src/boost/tools/quickbook/test/cond_phrase-1_7.quickbook @@ -0,0 +1,20 @@ +[article Coniditional Phrase Test + [quickbook 1.7] +] + +[def __defined__] + +[? __defined__ This should show] +[? __undefined__ This should not show] + +[?! __defined__ This should also not show] +[?! __undefined__ But this should show] + +[? ! __undefined__ This shouldn't show] + +[def !weird_macro!] +[? !weird_macro! Weird macro is defined] + +The should be no sp[?__undefined__ just some junk]ace inserted. + +[? __defined__ [*Bold text]] diff --git a/src/boost/tools/quickbook/test/doc-info/Jamfile.v2 b/src/boost/tools/quickbook/test/doc-info/Jamfile.v2 new file mode 100644 index 000000000..a35229c09 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/Jamfile.v2 @@ -0,0 +1,38 @@ +# +# Copyright (c) 2005 João Abecasis +# +# Distributed under the Boost Software License, Version 1.0. (See +# accompanying file LICENSE_1_0.txt or copy at +# http://www.boost.org/LICENSE_1_0.txt) +# + +project quickbook/tests/doc-info ; + +import quickbook-testing : quickbook-test quickbook-error-test ; + +test-suite quickbook.test : + [ quickbook-test escape-1.6 ] + [ quickbook-test encode-1.5 ] + [ quickbook-test author1 ] + [ quickbook-test author2 ] + [ quickbook-test empty-attributes ] + [ quickbook-test escaped_attributes1-1_7 ] + [ quickbook-test escaped_attributes2-1_7 ] + [ quickbook-test duplicates-1.1 ] + [ quickbook-test duplicates-1.5 ] + [ quickbook-test macros1-1_5 ] + [ quickbook-test macros1-1_6 ] + [ quickbook-test source-mode-1.4 ] + [ quickbook-test source-mode-1.5 ] + [ quickbook-test source-mode-1.6 ] + [ quickbook-test copyright1 ] + [ quickbook-error-test copyright-fail1 ] + [ quickbook-error-test copyright-fail2 ] + [ quickbook-test id1-1.5 ] + [ quickbook-test title_trailing_space-1_1 ] + [ quickbook-test title_trailing_space-1_6 ] + [ quickbook-test empty_title-1_1 ] + [ quickbook-test empty_title-1_5 ] + [ quickbook-test empty_title-1_6 ] + [ quickbook-error-test missing_doc_info-1_6-fail ] + ; diff --git a/src/boost/tools/quickbook/test/doc-info/author1.gold b/src/boost/tools/quickbook/test/doc-info/author1.gold new file mode 100644 index 000000000..613fa83ef --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/author1.gold @@ -0,0 +1,13 @@ + + + + Document Information 4 + + + + Joe Blow + + + + diff --git a/src/boost/tools/quickbook/test/doc-info/author1.gold-html b/src/boost/tools/quickbook/test/doc-info/author1.gold-html new file mode 100644 index 000000000..9d39657f3 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/author1.gold-html @@ -0,0 +1,14 @@ + + + + +

+ Document Information 4 +

+
+

+ Joe Blow +

+
+ + diff --git a/src/boost/tools/quickbook/test/doc-info/author1.quickbook b/src/boost/tools/quickbook/test/doc-info/author1.quickbook new file mode 100644 index 000000000..4505b4091 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/author1.quickbook @@ -0,0 +1,5 @@ +[appendix Document Information 4 +[quickbook 1.5] +[authors [Blow, Joe]] +] +[/ Some comment] \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/doc-info/author2.gold b/src/boost/tools/quickbook/test/doc-info/author2.gold new file mode 100644 index 000000000..766d8f68b --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/author2.gold @@ -0,0 +1,19 @@ + + + + Document Information 4 + + + + Joe Blow + + + Jane Doe + + + John Coe + + + + diff --git a/src/boost/tools/quickbook/test/doc-info/author2.gold-html b/src/boost/tools/quickbook/test/doc-info/author2.gold-html new file mode 100644 index 000000000..59b9b7e5c --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/author2.gold-html @@ -0,0 +1,20 @@ + + + + +

+ Document Information 4 +

+
+

+ Joe Blow +

+

+ Jane Doe +

+

+ John Coe +

+
+ + diff --git a/src/boost/tools/quickbook/test/doc-info/author2.quickbook b/src/boost/tools/quickbook/test/doc-info/author2.quickbook new file mode 100644 index 000000000..c4737e0ac --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/author2.quickbook @@ -0,0 +1,4 @@ +[chapter Document Information 4 +[quickbook 1.5] +[authors [Blow, Joe], [Doe, Jane] [Coe, John]] +] \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/doc-info/copyright-fail1.quickbook b/src/boost/tools/quickbook/test/doc-info/copyright-fail1.quickbook new file mode 100644 index 000000000..20738cb91 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/copyright-fail1.quickbook @@ -0,0 +1,4 @@ +[article Invalid copyright years +[quickbook 1.5] +[copyright 2010-2001 Timequake man] +] \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/doc-info/copyright-fail2.quickbook b/src/boost/tools/quickbook/test/doc-info/copyright-fail2.quickbook new file mode 100644 index 000000000..607c3a789 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/copyright-fail2.quickbook @@ -0,0 +1,6 @@ +[article Invalid copyright +[quickbook 1.5] +[copyright No year] +] + +Maybe this should pass? \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/doc-info/copyright1.gold b/src/boost/tools/quickbook/test/doc-info/copyright1.gold new file mode 100644 index 000000000..3c6d40668 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/copyright1.gold @@ -0,0 +1,17 @@ + + + diff --git a/src/boost/tools/quickbook/test/doc-info/copyright1.gold-html b/src/boost/tools/quickbook/test/doc-info/copyright1.gold-html new file mode 100644 index 000000000..61b05b472 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/copyright1.gold-html @@ -0,0 +1,18 @@ + + + + +

+ Copyright Test +

+ + + + + diff --git a/src/boost/tools/quickbook/test/doc-info/copyright1.quickbook b/src/boost/tools/quickbook/test/doc-info/copyright1.quickbook new file mode 100644 index 000000000..4dff125fe --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/copyright1.quickbook @@ -0,0 +1,5 @@ +[article Copyright Test +[quickbook 1.5] +[copyright 1963-1965 Jane Doe, 2018 Joe Blow, John Coe] +[copyright 1977,1985 Someone else] +] \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/doc-info/duplicates-1.1.gold b/src/boost/tools/quickbook/test/doc-info/duplicates-1.1.gold new file mode 100644 index 000000000..7ff1fa4b9 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/duplicates-1.1.gold @@ -0,0 +1,35 @@ + + + + + + + Joe Blow + + + Jane Doe + + + + 2018 Joe Blow + + + 1963 Jane Doe + + + + Public Domain + + + + Another Duplicate + + + + Duplicates 1.1 2 + + Content + + diff --git a/src/boost/tools/quickbook/test/doc-info/duplicates-1.1.gold-html b/src/boost/tools/quickbook/test/doc-info/duplicates-1.1.gold-html new file mode 100644 index 000000000..cd1eb53d6 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/duplicates-1.1.gold-html @@ -0,0 +1,31 @@ + + + + +

+ Duplicates 1.1 2 +

+
+

+ Joe Blow +

+

+ Jane Doe +

+
+ + +
+

+ Public Domain +

+
+

+ Content +

+ + diff --git a/src/boost/tools/quickbook/test/doc-info/duplicates-1.1.quickbook b/src/boost/tools/quickbook/test/doc-info/duplicates-1.1.quickbook new file mode 100644 index 000000000..d5daa2158 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/duplicates-1.1.quickbook @@ -0,0 +1,23 @@ +[library Duplicates 1.1 + +[id thing1] +[id thing2] +[dirname thing1] +[dirname thing2] +[last-revision Yesterday] +[last-revision Tomorrow] +[purpose Test Duplicates] +[purpose Another Duplicate] +[category Category 1] +[category Category 2] +[version 1] +[version 2] +[authors [Blow, Joe]] +[authors [Doe, Jane]] +[copyright 2018 Joe Blow] +[copyright 1963 Jane Doe] +[license Some license] +[license Public Domain] +] + +Content \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/doc-info/duplicates-1.5.gold b/src/boost/tools/quickbook/test/doc-info/duplicates-1.5.gold new file mode 100644 index 000000000..71a58a8d1 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/duplicates-1.5.gold @@ -0,0 +1,32 @@ + + +
+ Duplicates 1.5 2 + + + + Joe Blow + + + Jane Doe + + + + 2018 Joe Blow + + + 1963 Jane Doe + + + + Public Domain + + + + Another Duplicate + + http://www.boost.org/tools/quickbook/test/doc-info-2.quickbook + 0-937383-18-X + +
diff --git a/src/boost/tools/quickbook/test/doc-info/duplicates-1.5.gold-html b/src/boost/tools/quickbook/test/doc-info/duplicates-1.5.gold-html new file mode 100644 index 000000000..1c448e7f2 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/duplicates-1.5.gold-html @@ -0,0 +1,28 @@ + + + + +

+ Duplicates 1.5 2 +

+
+

+ Joe Blow +

+

+ Jane Doe +

+
+ + +
+

+ Public Domain +

+
+ + diff --git a/src/boost/tools/quickbook/test/doc-info/duplicates-1.5.quickbook b/src/boost/tools/quickbook/test/doc-info/duplicates-1.5.quickbook new file mode 100644 index 000000000..ed8f5da22 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/duplicates-1.5.quickbook @@ -0,0 +1,27 @@ +[article Duplicates 1.5 +[quickbook 1.5] +[quickbook 1.5] + +[id thing1] +[id thing2] +[dirname thing1] +[dirname thing2] +[last-revision Yesterday] +[last-revision Tomorrow] +[purpose Test Duplicates] +[purpose Another Duplicate] +[category Category 1] +[category Category 2] +[lang en] +[lang de] +[version 1] +[version 2] +[authors [Blow, Joe]] +[authors [Doe, Jane]] +[copyright 2018 Joe Blow] +[copyright 1963 Jane Doe] +[license Some license] +[license Public Domain] +[biblioid uri http://www.boost.org/tools/quickbook/test/doc-info-2.quickbook] +[biblioid isbn 0-937383-18-X] +] diff --git a/src/boost/tools/quickbook/test/doc-info/empty-attributes.gold b/src/boost/tools/quickbook/test/doc-info/empty-attributes.gold new file mode 100644 index 000000000..a7f05f756 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/empty-attributes.gold @@ -0,0 +1,19 @@ + + + + + + + + + + + 2011 + + + Empty Attributes + + biblioid and source-mode can't be empty. + + diff --git a/src/boost/tools/quickbook/test/doc-info/empty-attributes.gold-html b/src/boost/tools/quickbook/test/doc-info/empty-attributes.gold-html new file mode 100644 index 000000000..07d23c0b3 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/empty-attributes.gold-html @@ -0,0 +1,19 @@ + + + + +

+ Empty Attributes +

+
+

+

+
+ +

+ biblioid and source-mode can't be empty. +

+ + diff --git a/src/boost/tools/quickbook/test/doc-info/empty-attributes.quickbook b/src/boost/tools/quickbook/test/doc-info/empty-attributes.quickbook new file mode 100644 index 000000000..a31dc7199 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/empty-attributes.quickbook @@ -0,0 +1,16 @@ +[library Empty Attributes +[version] +[id] +[dirname] +[copyright] +[copyright 2011] +[purpose] +[category] +[authors] +[authors [,]] +[license] +[last-revision] +[lang] +] + +=biblioid= and =source-mode= can't be empty. diff --git a/src/boost/tools/quickbook/test/doc-info/empty_title-1_1.gold b/src/boost/tools/quickbook/test/doc-info/empty_title-1_1.gold new file mode 100644 index 000000000..01bc60673 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/empty_title-1_1.gold @@ -0,0 +1,10 @@ + + +
+
+ Test + + Hello + +
+
diff --git a/src/boost/tools/quickbook/test/doc-info/empty_title-1_1.gold-html b/src/boost/tools/quickbook/test/doc-info/empty_title-1_1.gold-html new file mode 100644 index 000000000..359cf1546 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/empty_title-1_1.gold-html @@ -0,0 +1,26 @@ + + + + +
+

+ Table of contents +

+ +
+
+

+ Test +

+
+

+ Hello +

+
+
+ + diff --git a/src/boost/tools/quickbook/test/doc-info/empty_title-1_1.quickbook b/src/boost/tools/quickbook/test/doc-info/empty_title-1_1.quickbook new file mode 100644 index 000000000..45769a983 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/empty_title-1_1.quickbook @@ -0,0 +1,8 @@ +[article +] + +[section Test] + +Hello + +[endsect] \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/doc-info/empty_title-1_5.gold b/src/boost/tools/quickbook/test/doc-info/empty_title-1_5.gold new file mode 100644 index 000000000..034482798 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/empty_title-1_5.gold @@ -0,0 +1,10 @@ + + +
+
+ <link linkend=".test">Test</link> + + Hello + +
+
diff --git a/src/boost/tools/quickbook/test/doc-info/empty_title-1_5.gold-html b/src/boost/tools/quickbook/test/doc-info/empty_title-1_5.gold-html new file mode 100644 index 000000000..359cf1546 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/empty_title-1_5.gold-html @@ -0,0 +1,26 @@ + + + + +
+

+ Table of contents +

+ +
+
+

+ Test +

+
+

+ Hello +

+
+
+ + diff --git a/src/boost/tools/quickbook/test/doc-info/empty_title-1_5.quickbook b/src/boost/tools/quickbook/test/doc-info/empty_title-1_5.quickbook new file mode 100644 index 000000000..99cbf6b79 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/empty_title-1_5.quickbook @@ -0,0 +1,7 @@ +[article +[quickbook 1.5] +] + +[section Test] +Hello +[endsect] \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/doc-info/empty_title-1_6.gold b/src/boost/tools/quickbook/test/doc-info/empty_title-1_6.gold new file mode 100644 index 000000000..1dce22ef0 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/empty_title-1_6.gold @@ -0,0 +1,4 @@ + + +
+
diff --git a/src/boost/tools/quickbook/test/doc-info/empty_title-1_6.gold-html b/src/boost/tools/quickbook/test/doc-info/empty_title-1_6.gold-html new file mode 100644 index 000000000..ce2d4462e --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/empty_title-1_6.gold-html @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/boost/tools/quickbook/test/doc-info/empty_title-1_6.quickbook b/src/boost/tools/quickbook/test/doc-info/empty_title-1_6.quickbook new file mode 100644 index 000000000..bf310afd3 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/empty_title-1_6.quickbook @@ -0,0 +1 @@ +[quickbook 1.6][article] \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/doc-info/encode-1.5.gold b/src/boost/tools/quickbook/test/doc-info/encode-1.5.gold new file mode 100644 index 000000000..83870c7c9 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/encode-1.5.gold @@ -0,0 +1,26 @@ + + + + + + + Matti Meikäläinen + + + Pero Perić + + + + 2010 Meðal-Jón and Jóna Jónsdóttir + + + Inline code test: 1 + 2 + + + http://www.boost.org/tools/quickbook/test/doc-info-2.quickbook + 0-937383-18-X + + Karel Vomáčka and Tomáš Martiník + diff --git a/src/boost/tools/quickbook/test/doc-info/encode-1.5.gold-html b/src/boost/tools/quickbook/test/doc-info/encode-1.5.gold-html new file mode 100644 index 000000000..62ce95f86 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/encode-1.5.gold-html @@ -0,0 +1,20 @@ + + + + +

+ Karel Vomáčka and Tomáš Martiník +

+
+

+ Matti Meikäläinen +

+

+ Pero Perić +

+
+ + + diff --git a/src/boost/tools/quickbook/test/doc-info/encode-1.5.quickbook b/src/boost/tools/quickbook/test/doc-info/encode-1.5.quickbook new file mode 100644 index 000000000..c1928c6a8 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/encode-1.5.quickbook @@ -0,0 +1,14 @@ +[library Karel Vomáčka and Tomáš Martiník +[quickbook 1.5] +[authors [Meikäläinen, Matti],[Perić, Pero]] +[copyright 2010 Meðal-Jón and Jóna Jónsdóttir] +[source-mode teletype] +[purpose Inline code test: `1 + 2`] +[category tests] +[category irrelevance] +[/ [category commented out] ] +[biblioid uri http://www.boost.org/tools/quickbook/test/doc-info-2.quickbook] +[biblioid isbn 0-937383-18-X] +] + +[/ Some comment] diff --git a/src/boost/tools/quickbook/test/doc-info/escape-1.6.gold b/src/boost/tools/quickbook/test/doc-info/escape-1.6.gold new file mode 100644 index 000000000..630398679 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/escape-1.6.gold @@ -0,0 +1,24 @@ + + +
+ Karel Vomáčka and Tomáš Martiník + + + + Matti Meikäläinen + + + Pero Perić + + + + 2010 Meðal-Jón and Jóna Jónsdóttir + + + Inline code test: 1 + 2 + + + http://www.boost.org/tools/quickbook/test/doc-info-1.quickbook + +
diff --git a/src/boost/tools/quickbook/test/doc-info/escape-1.6.gold-html b/src/boost/tools/quickbook/test/doc-info/escape-1.6.gold-html new file mode 100644 index 000000000..62ce95f86 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/escape-1.6.gold-html @@ -0,0 +1,20 @@ + + + + +

+ Karel Vomáčka and Tomáš Martiník +

+
+

+ Matti Meikäläinen +

+

+ Pero Perić +

+
+ + + diff --git a/src/boost/tools/quickbook/test/doc-info/escape-1.6.quickbook b/src/boost/tools/quickbook/test/doc-info/escape-1.6.quickbook new file mode 100644 index 000000000..7ae3e7003 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/escape-1.6.quickbook @@ -0,0 +1,12 @@ +[article Karel Vom\u00E1\u010Dka and Tom\u00E1\u0161 Martin\u00EDk +[quickbook 1.6] +[authors [Meik\u00E4l\u00E4inen, Matti][Peri\u0107, Pero]] +[copyright 2010 Me\u00F0al-J\u00F3n and J\u00F3na J\u00F3nsd\u00F3ttir] +[source-mode teletype] +[purpose Inline code test: `1 + 2`] +[category tests] +[category irrelevance] +[/ [category commented out] ] +[biblioid uri http://www.boost.org/tools/quickbook/test/doc-info-1.quickbook] +[lang en] +] diff --git a/src/boost/tools/quickbook/test/doc-info/escaped_attributes1-1_7.gold b/src/boost/tools/quickbook/test/doc-info/escaped_attributes1-1_7.gold new file mode 100644 index 000000000..b6425d910 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/escaped_attributes1-1_7.gold @@ -0,0 +1,16 @@ + + + + + + 1325 John Doe + + + John + Doe + john.doe@example.com + + + Escaped name + diff --git a/src/boost/tools/quickbook/test/doc-info/escaped_attributes1-1_7.gold-html b/src/boost/tools/quickbook/test/doc-info/escaped_attributes1-1_7.gold-html new file mode 100644 index 000000000..73d9655ce --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/escaped_attributes1-1_7.gold-html @@ -0,0 +1,17 @@ + + + + +

+ Escaped name +

+
+

+ John Doe +

+
+ + + diff --git a/src/boost/tools/quickbook/test/doc-info/escaped_attributes1-1_7.quickbook b/src/boost/tools/quickbook/test/doc-info/escaped_attributes1-1_7.quickbook new file mode 100644 index 000000000..e70161375 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/escaped_attributes1-1_7.quickbook @@ -0,0 +1,11 @@ +[library Escaped name +[quickbook 1.7] +[copyright 1325 John Doe] +''' + John + Doe + john.doe@example.com +''' +[category test] +] + diff --git a/src/boost/tools/quickbook/test/doc-info/escaped_attributes2-1_7.gold b/src/boost/tools/quickbook/test/doc-info/escaped_attributes2-1_7.gold new file mode 100644 index 000000000..259111ac4 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/escaped_attributes2-1_7.gold @@ -0,0 +1,12 @@ + + +
+ Multiple escaped attributes + + + John + Doe + john.doe@example.com +Acme Corporation +
diff --git a/src/boost/tools/quickbook/test/doc-info/escaped_attributes2-1_7.gold-html b/src/boost/tools/quickbook/test/doc-info/escaped_attributes2-1_7.gold-html new file mode 100644 index 000000000..359094610 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/escaped_attributes2-1_7.gold-html @@ -0,0 +1,14 @@ + + + + +

+ Multiple escaped attributes +

+
+

+ John Doe +

+
+ + diff --git a/src/boost/tools/quickbook/test/doc-info/escaped_attributes2-1_7.quickbook b/src/boost/tools/quickbook/test/doc-info/escaped_attributes2-1_7.quickbook new file mode 100644 index 000000000..70676f8a1 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/escaped_attributes2-1_7.quickbook @@ -0,0 +1,10 @@ +[article Multiple escaped attributes +[quickbook 1.7] +''' + John + Doe + john.doe@example.com +''' +'''Acme Corporation''' +] + diff --git a/src/boost/tools/quickbook/test/doc-info/id1-1.5.gold b/src/boost/tools/quickbook/test/doc-info/id1-1.5.gold new file mode 100644 index 000000000..5b55391e2 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/id1-1.5.gold @@ -0,0 +1,27 @@ + + +
+ Missing Id test +
+ <link linkend="missing_id_test.missing_id_test_1">Missing Id test 1</link> +
+
+ <link linkend="missing_id_test.no_docinfo_test_1">No docinfo test 1</link> +
+
+ <link linkend="missing_id_test.missing_id_test_2">Missing Id test 2</link> +
+
+ <link linkend="docinfo_no_id.docinfo_no_id_1">Docinfo no id 1</link> +
+
+ <link linkend="missing_id_test.missing_id_test_3">Missing Id test 3</link> +
+
+ <link linkend="docinfo_no_id.no_docinfo_test_1">No docinfo test 1</link> +
+
+ <link linkend="missing_id_test.missing_id_test_4">Missing Id test 4</link> +
+
diff --git a/src/boost/tools/quickbook/test/doc-info/id1-1.5.gold-html b/src/boost/tools/quickbook/test/doc-info/id1-1.5.gold-html new file mode 100644 index 000000000..c6fbb841a --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/id1-1.5.gold-html @@ -0,0 +1,86 @@ + + + + +

+ Missing Id test +

+
+

+ Table of contents +

+ +
+
+

+ Missing Id test 1 +

+
+
+
+
+

+ No docinfo test 1 +

+
+
+
+
+

+ Missing Id test 2 +

+
+
+
+
+

+ Docinfo no id 1 +

+
+
+
+
+

+ Missing Id test 3 +

+
+
+
+
+

+ No docinfo test 1 +

+
+
+
+
+

+ Missing Id test 4 +

+
+
+
+ + diff --git a/src/boost/tools/quickbook/test/doc-info/id1-1.5.quickbook b/src/boost/tools/quickbook/test/doc-info/id1-1.5.quickbook new file mode 100644 index 000000000..c7065d0c5 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/id1-1.5.quickbook @@ -0,0 +1,21 @@ +[article Missing Id test +[quickbook 1.5] +] + +[section Missing Id test 1] +[endsect] + +[include id1-no-docinfo.quickbook] + +[section Missing Id test 2] +[endsect] + +[include id1-docinfo-no-id.quickbook] + +[section Missing Id test 3] +[endsect] + +[include id1-no-docinfo.quickbook] + +[section Missing Id test 4] +[endsect] diff --git a/src/boost/tools/quickbook/test/doc-info/id1-docinfo-no-id.quickbook b/src/boost/tools/quickbook/test/doc-info/id1-docinfo-no-id.quickbook new file mode 100644 index 000000000..d5e954826 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/id1-docinfo-no-id.quickbook @@ -0,0 +1,5 @@ +[article Docinfo no id +] + +[section Docinfo no id 1] +[endsect] \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/doc-info/id1-no-docinfo.quickbook b/src/boost/tools/quickbook/test/doc-info/id1-no-docinfo.quickbook new file mode 100644 index 000000000..4dbaf2dea --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/id1-no-docinfo.quickbook @@ -0,0 +1,2 @@ +[section No docinfo test 1] +[endsect] diff --git a/src/boost/tools/quickbook/test/doc-info/macros1-1_5.gold b/src/boost/tools/quickbook/test/doc-info/macros1-1_5.gold new file mode 100644 index 000000000..0b76b9da1 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/macros1-1_5.gold @@ -0,0 +1,11 @@ + + +
+ Macro shouldn't expand: __DATE__ + + + Unfortunately this does expand: 2000-Dec-20, but I'm not fixing it, as I don't + think it'll cause any real problems. + + +
diff --git a/src/boost/tools/quickbook/test/doc-info/macros1-1_5.gold-html b/src/boost/tools/quickbook/test/doc-info/macros1-1_5.gold-html new file mode 100644 index 000000000..7df921e6b --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/macros1-1_5.gold-html @@ -0,0 +1,9 @@ + + + + +

+ Macro shouldn't expand: __DATE__ +

+ + diff --git a/src/boost/tools/quickbook/test/doc-info/macros1-1_5.quickbook b/src/boost/tools/quickbook/test/doc-info/macros1-1_5.quickbook new file mode 100644 index 000000000..c66a1de6d --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/macros1-1_5.quickbook @@ -0,0 +1,6 @@ +[article Macro shouldn't expand: __DATE__ + [quickbook 1.5] + [last-revision __DATE__] + [purpose Unfortunately this does expand: __DATE__, but I'm not fixing it, + as I don't think it'll cause any real problems.] +] diff --git a/src/boost/tools/quickbook/test/doc-info/macros1-1_6.gold b/src/boost/tools/quickbook/test/doc-info/macros1-1_6.gold new file mode 100644 index 000000000..92ac1a191 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/macros1-1_6.gold @@ -0,0 +1,8 @@ + + +
+ Testing date: 2000-Dec-20 + + Testing macro date: 5 May 2013 + +
diff --git a/src/boost/tools/quickbook/test/doc-info/macros1-1_6.gold-html b/src/boost/tools/quickbook/test/doc-info/macros1-1_6.gold-html new file mode 100644 index 000000000..57b673755 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/macros1-1_6.gold-html @@ -0,0 +1,24 @@ + + + + +

+ Testing date: 2000-Dec-20 +

+
+

+ Table of contents +

+ +
+
+

+ Testing macro date: 5 May 2013 +

+
+ + diff --git a/src/boost/tools/quickbook/test/doc-info/macros1-1_6.quickbook b/src/boost/tools/quickbook/test/doc-info/macros1-1_6.quickbook new file mode 100644 index 000000000..058c34954 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/macros1-1_6.quickbook @@ -0,0 +1,7 @@ +[article Testing date: __DATE__ + [quickbook 1.6] + [last-revision __DATE__] +] + +[def NESTED_MACRO 5 May 2013] +[include macros1-inc_1_6.quickbook] diff --git a/src/boost/tools/quickbook/test/doc-info/macros1-inc_1_6.quickbook b/src/boost/tools/quickbook/test/doc-info/macros1-inc_1_6.quickbook new file mode 100644 index 000000000..47fc84a81 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/macros1-inc_1_6.quickbook @@ -0,0 +1,4 @@ +[chapter Testing macro date: NESTED_MACRO + [quickbook 1.6] + [last-revision NESTED_MACRO] +] diff --git a/src/boost/tools/quickbook/test/doc-info/missing_doc_info-1_6-fail.quickbook b/src/boost/tools/quickbook/test/doc-info/missing_doc_info-1_6-fail.quickbook new file mode 100644 index 000000000..6f0b2cdbe --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/missing_doc_info-1_6-fail.quickbook @@ -0,0 +1,3 @@ +[quickbook 1.6] + +Hello! diff --git a/src/boost/tools/quickbook/test/doc-info/source-mode-1.4.gold b/src/boost/tools/quickbook/test/doc-info/source-mode-1.4.gold new file mode 100644 index 000000000..f7fea9a71 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/source-mode-1.4.gold @@ -0,0 +1,33 @@ + + +
+ C++ test + + + + def foo(x): + print "Hello" + + + + int main() {} + + + +int main() {} + + +def foo(): + + +def foo(x): + + +int main() {} + + +int main() {} + +
diff --git a/src/boost/tools/quickbook/test/doc-info/source-mode-1.4.gold-html b/src/boost/tools/quickbook/test/doc-info/source-mode-1.4.gold-html new file mode 100644 index 000000000..e1237d1fd --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/source-mode-1.4.gold-html @@ -0,0 +1,31 @@ + + + + +

+ C++ test +

+
+

+ def foo(x): + print "Hello" +

+
+

+

int main() {}
+

+

+

def foo():
+

+

+

def foo(x):
+

+

+

int main() {}
+

+

+

int main() {}
+

+ + diff --git a/src/boost/tools/quickbook/test/doc-info/source-mode-1.4.quickbook b/src/boost/tools/quickbook/test/doc-info/source-mode-1.4.quickbook new file mode 100644 index 000000000..a04bca741 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/source-mode-1.4.quickbook @@ -0,0 +1,17 @@ +[article C++ test +[quickbook 1.5] +[source-mode python] +[license `def foo(x): print "Hello"`] +[source-mode c++] +[purpose `int main() {}`] +] + +```int main() {}``` + +[include source-mode-python-include.quickbook] + +```def foo(x):``` + +[include source-mode-cpp-include.quickbook] + +```int main() {}``` diff --git a/src/boost/tools/quickbook/test/doc-info/source-mode-1.5.gold b/src/boost/tools/quickbook/test/doc-info/source-mode-1.5.gold new file mode 100644 index 000000000..340c5d2e9 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/source-mode-1.5.gold @@ -0,0 +1,38 @@ + + +
+ C++ test + + + + def foo(x): + print "Hello" + + + + This shouldn't be highlighted + + + +This shouldn't be highlighted. + + +int main() {} + + +int main() {} + + +def foo(): + + +def foo(x): + + +This shouldn't be highlighted + + +This shouldn't be highlighted. + +
diff --git a/src/boost/tools/quickbook/test/doc-info/source-mode-1.5.gold-html b/src/boost/tools/quickbook/test/doc-info/source-mode-1.5.gold-html new file mode 100644 index 000000000..4eacbb674 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/source-mode-1.5.gold-html @@ -0,0 +1,37 @@ + + + + +

+ C++ test +

+
+

+ def foo(x): + print "Hello" +

+
+

+

This shouldn't be highlighted.
+

+

+

int main() {}
+

+

+

int main() {}
+

+

+

def foo():
+

+

+

def foo(x):
+

+

+

This shouldn't be highlighted
+

+

+

This shouldn't be highlighted.
+

+ + diff --git a/src/boost/tools/quickbook/test/doc-info/source-mode-1.5.quickbook b/src/boost/tools/quickbook/test/doc-info/source-mode-1.5.quickbook new file mode 100644 index 000000000..78e20b7c0 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/source-mode-1.5.quickbook @@ -0,0 +1,21 @@ +[article C++ test +[quickbook 1.5] +[source-mode python] +[license `def foo(x): print "Hello"`] +[source-mode teletype] +[purpose `This shouldn't be highlighted`] +] + +```This shouldn't be highlighted.``` + +[include source-mode-cpp-include.quickbook] + +```int main() {}``` + +[include source-mode-python-include.quickbook] + +```def foo(x):``` + +[include source-mode-teletype-include.quickbook] + +```This shouldn't be highlighted.``` diff --git a/src/boost/tools/quickbook/test/doc-info/source-mode-1.6.gold b/src/boost/tools/quickbook/test/doc-info/source-mode-1.6.gold new file mode 100644 index 000000000..02496673a --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/source-mode-1.6.gold @@ -0,0 +1,42 @@ + + +
+ C++ test + + + + def foo(x): + print "Hello" + + + + This shouldn't be highlighted + + +This shouldn't be highlighted. +
+ C++ source mode include + +int main() {} + +
+This shouldn't be highlighted. +
+ Python source mode include + +def foo(): + +
+This shouldn't be highlighted. +
+ Teletype source mode include + +This shouldn't be highlighted + +
+This shouldn't be highlighted. +
diff --git a/src/boost/tools/quickbook/test/doc-info/source-mode-1.6.gold-html b/src/boost/tools/quickbook/test/doc-info/source-mode-1.6.gold-html new file mode 100644 index 000000000..79390c04b --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/source-mode-1.6.gold-html @@ -0,0 +1,60 @@ + + + + +

+ C++ test +

+
+

+ def foo(x): + print "Hello" +

+
+
+

+ Table of contents +

+ +
+
This shouldn't be highlighted.
+
This shouldn't be highlighted.
+
This shouldn't be highlighted.
+
This shouldn't be highlighted.
+
+

+ C++ source mode include +

+

+

int main() {}
+

+
+
+

+ Python source mode include +

+

+

def foo():
+

+
+
+

+ Teletype source mode include +

+

+

This shouldn't be highlighted
+

+
+ + diff --git a/src/boost/tools/quickbook/test/doc-info/source-mode-1.6.quickbook b/src/boost/tools/quickbook/test/doc-info/source-mode-1.6.quickbook new file mode 100644 index 000000000..02f7ee4c4 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/source-mode-1.6.quickbook @@ -0,0 +1,21 @@ +[article C++ test +[quickbook 1.6] +[source-mode python] +[license `def foo(x): print "Hello"`] +[source-mode teletype] +[purpose `This shouldn't be highlighted`] +] + +```This shouldn't be highlighted.``` + +[include source-mode-cpp-include.quickbook] + +```This shouldn't be highlighted.``` + +[include source-mode-python-include.quickbook] + +```This shouldn't be highlighted.``` + +[include source-mode-teletype-include.quickbook] + +```This shouldn't be highlighted.``` diff --git a/src/boost/tools/quickbook/test/doc-info/source-mode-cpp-include.quickbook b/src/boost/tools/quickbook/test/doc-info/source-mode-cpp-include.quickbook new file mode 100644 index 000000000..1ff2b94cd --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/source-mode-cpp-include.quickbook @@ -0,0 +1,4 @@ +[source-mode c++] +[article C++ source mode include] + +```int main() {}``` \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/doc-info/source-mode-python-include.quickbook b/src/boost/tools/quickbook/test/doc-info/source-mode-python-include.quickbook new file mode 100644 index 000000000..31ac531d0 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/source-mode-python-include.quickbook @@ -0,0 +1,5 @@ +[article Python source mode include +[source-mode python] +] + +```def foo():``` \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/doc-info/source-mode-teletype-include.quickbook b/src/boost/tools/quickbook/test/doc-info/source-mode-teletype-include.quickbook new file mode 100644 index 000000000..c7908fb76 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/source-mode-teletype-include.quickbook @@ -0,0 +1,5 @@ +[article Teletype source mode include +[source-mode teletype] +] + +```This shouldn't be highlighted``` \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/doc-info/title_trailing_space-1_1.gold b/src/boost/tools/quickbook/test/doc-info/title_trailing_space-1_1.gold new file mode 100644 index 000000000..17e4add73 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/title_trailing_space-1_1.gold @@ -0,0 +1,9 @@ + + +
+ Trailing Space +
+ Body +
+
diff --git a/src/boost/tools/quickbook/test/doc-info/title_trailing_space-1_1.gold-html b/src/boost/tools/quickbook/test/doc-info/title_trailing_space-1_1.gold-html new file mode 100644 index 000000000..187ba4271 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/title_trailing_space-1_1.gold-html @@ -0,0 +1,26 @@ + + + + +

+ Trailing Space +

+
+

+ Table of contents +

+ +
+
+

+ Body +

+
+
+
+ + diff --git a/src/boost/tools/quickbook/test/doc-info/title_trailing_space-1_1.quickbook b/src/boost/tools/quickbook/test/doc-info/title_trailing_space-1_1.quickbook new file mode 100644 index 000000000..27305f719 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/title_trailing_space-1_1.quickbook @@ -0,0 +1,5 @@ +[article Trailing Space ] + +[section Body] + +[endsect] \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/doc-info/title_trailing_space-1_6.gold b/src/boost/tools/quickbook/test/doc-info/title_trailing_space-1_6.gold new file mode 100644 index 000000000..45231b6d1 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/title_trailing_space-1_6.gold @@ -0,0 +1,9 @@ + + +
+ Trailing Space +
+ <link linkend="trailing_space.body">Body</link> +
+
diff --git a/src/boost/tools/quickbook/test/doc-info/title_trailing_space-1_6.gold-html b/src/boost/tools/quickbook/test/doc-info/title_trailing_space-1_6.gold-html new file mode 100644 index 000000000..1b3cb4e23 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/title_trailing_space-1_6.gold-html @@ -0,0 +1,26 @@ + + + + +

+ Trailing Space +

+
+

+ Table of contents +

+ +
+
+

+ Body +

+
+
+
+ + diff --git a/src/boost/tools/quickbook/test/doc-info/title_trailing_space-1_6.quickbook b/src/boost/tools/quickbook/test/doc-info/title_trailing_space-1_6.quickbook new file mode 100644 index 000000000..b1b8cd5d2 --- /dev/null +++ b/src/boost/tools/quickbook/test/doc-info/title_trailing_space-1_6.quickbook @@ -0,0 +1,5 @@ +[article Trailing Space [quickbook 1.6]] + +[section Body] + +[endsect] \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/elements-1_5.gold b/src/boost/tools/quickbook/test/elements-1_5.gold new file mode 100644 index 000000000..e5bb24a27 --- /dev/null +++ b/src/boost/tools/quickbook/test/elements-1_5.gold @@ -0,0 +1,18 @@ + + +
+ 1.5 Elements + + [ordered_list [item1][item2]] + + + [itemized_list [item1][item2]] + + + [blockA <emphasis role="bold">simplesect</emphasis>!] + + + [block] + +
diff --git a/src/boost/tools/quickbook/test/elements-1_5.quickbook b/src/boost/tools/quickbook/test/elements-1_5.quickbook new file mode 100644 index 000000000..df8f10aa7 --- /dev/null +++ b/src/boost/tools/quickbook/test/elements-1_5.quickbook @@ -0,0 +1,13 @@ +[article 1.5 Elements +[quickbook 1.5] +] + +[/ elements from 1.6] + +[ordered_list [item1][item2]] + +[itemized_list [item1][item2]] + +[block''''''A *simplesect*!''''''] + +[block''''''] \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/elements-1_6.gold b/src/boost/tools/quickbook/test/elements-1_6.gold new file mode 100644 index 000000000..59a90af5c --- /dev/null +++ b/src/boost/tools/quickbook/test/elements-1_6.gold @@ -0,0 +1,40 @@ + + +
+ 1.6 Elements + + + + item1 + + + + + item2 + + + + + + + item1 + + + + + item2 + + + + + + + Check that bold text isn't confused with + a list. + + + + A <emphasis role="bold">simplesect</emphasis>! + +
diff --git a/src/boost/tools/quickbook/test/elements-1_6.gold-html b/src/boost/tools/quickbook/test/elements-1_6.gold-html new file mode 100644 index 000000000..17566749c --- /dev/null +++ b/src/boost/tools/quickbook/test/elements-1_6.gold-html @@ -0,0 +1,44 @@ + + + + +

+ 1.6 Elements +

+
    +
  1. +
    + item1 +
    +
  2. +
  3. +
    + item2 +
    +
  4. +
+
    +
  • +
    + item1 +
    +
  • +
  • +
    + item2 +
    +
  • +
+
    +
  1. +
    + Check that bold text isn't confused + with a list. +
    +
  2. +
+

+ A simplesect! +

+ + diff --git a/src/boost/tools/quickbook/test/elements-1_6.quickbook b/src/boost/tools/quickbook/test/elements-1_6.quickbook new file mode 100644 index 000000000..e313cd98d --- /dev/null +++ b/src/boost/tools/quickbook/test/elements-1_6.quickbook @@ -0,0 +1,21 @@ +[article 1.6 Elements +[quickbook 1.6] +] + +[/ elements from 1.6] + +[ordered_list [item1][item2]] + +[itemized_list [item1][item2]] + +[ordered_list + [ + Check that + *bold text* + isn't confused with a list. + ] +] + +[block''''''A *simplesect*!''''''] + +[block''''''] diff --git a/src/boost/tools/quickbook/test/empty-inc.quickbook b/src/boost/tools/quickbook/test/empty-inc.quickbook new file mode 100644 index 000000000..e69de29bb diff --git a/src/boost/tools/quickbook/test/endsect-unopened-1_7-fail.quickbook b/src/boost/tools/quickbook/test/endsect-unopened-1_7-fail.quickbook new file mode 100644 index 000000000..50125d967 --- /dev/null +++ b/src/boost/tools/quickbook/test/endsect-unopened-1_7-fail.quickbook @@ -0,0 +1,6 @@ +[article Endsect with wrong id 1.7 + [quickbook 1.7] + [id something] +] + +[endsect:something] diff --git a/src/boost/tools/quickbook/test/endsect-wrong-id-1_4-fail.quickbook b/src/boost/tools/quickbook/test/endsect-wrong-id-1_4-fail.quickbook new file mode 100644 index 000000000..ea833323c --- /dev/null +++ b/src/boost/tools/quickbook/test/endsect-wrong-id-1_4-fail.quickbook @@ -0,0 +1,6 @@ +[article Endsect with wrong id 1.4 + [quickbook 1.4] +] + +[section Quickbook section id test] +[endsect:id_test] diff --git a/src/boost/tools/quickbook/test/endsect-wrong-id-1_7-fail.quickbook b/src/boost/tools/quickbook/test/endsect-wrong-id-1_7-fail.quickbook new file mode 100644 index 000000000..9ef2fc925 --- /dev/null +++ b/src/boost/tools/quickbook/test/endsect-wrong-id-1_7-fail.quickbook @@ -0,0 +1,6 @@ +[article Endsect with wrong id 1.7 + [quickbook 1.7] +] + +[section:id_test1 Quickbook section id test] +[endsect:id_test] diff --git a/src/boost/tools/quickbook/test/escape-1_1.gold b/src/boost/tools/quickbook/test/escape-1_1.gold new file mode 100644 index 000000000..0c600e0dc --- /dev/null +++ b/src/boost/tools/quickbook/test/escape-1_1.gold @@ -0,0 +1,32 @@ + + +
+ Escape +
+ Escape + + Da do do do. Da da da da. That's all I have to say to you. + + + This letter α should have a space either side of it. + + + These should be properly encoded: > < " + + + This link shouldn't be changed. + + + Some other problematic links: +one, +two, +three. + + + This will be escaped + + + \[ generates [. \] generates ]. + +
+
diff --git a/src/boost/tools/quickbook/test/escape-1_1.gold-html b/src/boost/tools/quickbook/test/escape-1_1.gold-html new file mode 100644 index 000000000..61cd98261 --- /dev/null +++ b/src/boost/tools/quickbook/test/escape-1_1.gold-html @@ -0,0 +1,48 @@ + + + + +

+ Escape +

+
+

+ Table of contents +

+ +
+
+

+ Escape +

+
+

+ Da do do do. Da da da da. That's all I have + to say to you. +

+

+ This letter α should have a space either side of it. +

+

+ These should be properly encoded: > < " +

+

+ This link shouldn't be changed. +

+

+ Some other problematic links: one, two, three. +

+

+ This will be escaped +

+

+ \[ generates [. \] generates ]. +

+
+
+ + diff --git a/src/boost/tools/quickbook/test/escape-1_1.quickbook b/src/boost/tools/quickbook/test/escape-1_1.quickbook new file mode 100644 index 000000000..3536ae5d5 --- /dev/null +++ b/src/boost/tools/quickbook/test/escape-1_1.quickbook @@ -0,0 +1,34 @@ +[article Escape +] + +[section Escape] + +''' +Da do do do. Da da da da. That's all I have to say to you. +''' + +This letter '''α''' should have a space either side of it. + +These should be properly encoded: \> \< \" + +[/ The following tests are based on internal knowledge of + how quickbook's id generator works. They make sure it + doesn't mess up escaped docbook. ] + +'''This link shouldn't be changed.''' + +''' +Some other problematic links: +one, +two, +three. +''' + +[template escapedtemplate This will be escaped] + +[`escapedtemplate] + +\\\[ generates \[. +\\\] generates \]. + +[endsect] diff --git a/src/boost/tools/quickbook/test/escape-1_6.gold b/src/boost/tools/quickbook/test/escape-1_6.gold new file mode 100644 index 000000000..54056a7d8 --- /dev/null +++ b/src/boost/tools/quickbook/test/escape-1_6.gold @@ -0,0 +1,32 @@ + + +
+ Escape +
+ <link linkend="escape.escape">Escape</link> + + Da do do do. Da da da da. That's all I have to say to you. + + + This letter α should have a space either side of it. + + + These should be properly encoded: > < " + + + This link shouldn't be changed. + + + Some other problematic links: +one, +two, +three. + + + This will be escaped + + + \[ generates [. \] generates ]. + +
+
diff --git a/src/boost/tools/quickbook/test/escape-1_6.gold-html b/src/boost/tools/quickbook/test/escape-1_6.gold-html new file mode 100644 index 000000000..61cd98261 --- /dev/null +++ b/src/boost/tools/quickbook/test/escape-1_6.gold-html @@ -0,0 +1,48 @@ + + + + +

+ Escape +

+
+

+ Table of contents +

+ +
+
+

+ Escape +

+
+

+ Da do do do. Da da da da. That's all I have + to say to you. +

+

+ This letter α should have a space either side of it. +

+

+ These should be properly encoded: > < " +

+

+ This link shouldn't be changed. +

+

+ Some other problematic links: one, two, three. +

+

+ This will be escaped +

+

+ \[ generates [. \] generates ]. +

+
+
+ + diff --git a/src/boost/tools/quickbook/test/escape-1_6.quickbook b/src/boost/tools/quickbook/test/escape-1_6.quickbook new file mode 100644 index 000000000..0df903808 --- /dev/null +++ b/src/boost/tools/quickbook/test/escape-1_6.quickbook @@ -0,0 +1,35 @@ +[article Escape +[quickbook 1.6] +] + +[section Escape] + +''' +Da do do do. Da da da da. That's all I have to say to you. +''' + +This letter '''α''' should have a space either side of it. + +These should be properly encoded: \> \< \" + +[/ The following tests are based on internal knowledge of + how quickbook's id generator works. They make sure it + doesn't mess up escaped docbook. ] + +'''This link shouldn't be changed.''' + +''' +Some other problematic links: +one, +two, +three. +''' + +[template escapedtemplate This will be escaped] + +[`escapedtemplate] + +\\\[ generates \[. +\\\] generates \]. + +[endsect] diff --git a/src/boost/tools/quickbook/test/escape-mismatched-1_5-fail.quickbook b/src/boost/tools/quickbook/test/escape-mismatched-1_5-fail.quickbook new file mode 100644 index 000000000..1f9d0c0a4 --- /dev/null +++ b/src/boost/tools/quickbook/test/escape-mismatched-1_5-fail.quickbook @@ -0,0 +1,5 @@ +[article Badly escaped boostbook +[quickbook 1.5] +] + +'''something \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/footnotes-1_7.gold b/src/boost/tools/quickbook/test/footnotes-1_7.gold new file mode 100644 index 000000000..9b9e9c15e --- /dev/null +++ b/src/boost/tools/quickbook/test/footnotes-1_7.gold @@ -0,0 +1,31 @@ + + +
+ Footnotes +
+ <link linkend="footnotes.first">First Section</link> + + Some + + First footnote + + normal + + Second footnote + + footnotes + + Third footnote + + . + +
+
+ <link linkend="footnotes.second">Second Section</link> + + SomeBoostbook footnote +boostbookFootnote without id +footnotesAnother footnote without an id. + +
+
diff --git a/src/boost/tools/quickbook/test/footnotes-1_7.gold-html b/src/boost/tools/quickbook/test/footnotes-1_7.gold-html new file mode 100644 index 000000000..d8a0743d9 --- /dev/null +++ b/src/boost/tools/quickbook/test/footnotes-1_7.gold-html @@ -0,0 +1,80 @@ + + + + +

+ Footnotes +

+
+

+ Table of contents +

+ +
+
+

+ First Section +

+
+

+ Some[1] + normal[2] + footnotes[3]. +

+
+
+
+

+ Second Section +

+
+

+ Some[4] boostbook[5] + footnotes[6]. +

+
+
+
+
+
+
+

+ [1] First footnote +

+
+
+

+ [2] Second footnote +

+
+
+

+ [3] Third footnote +

+
+
+

+ [4] Boostbook footnote +

+
+
+

+ [5] Footnote without id +

+
+
+

+ [6] Another footnote without an id +

+
+
+ + diff --git a/src/boost/tools/quickbook/test/footnotes-1_7.quickbook b/src/boost/tools/quickbook/test/footnotes-1_7.quickbook new file mode 100644 index 000000000..ac3dc91f9 --- /dev/null +++ b/src/boost/tools/quickbook/test/footnotes-1_7.quickbook @@ -0,0 +1,16 @@ +[quickbook 1.7] +[article Footnotes] + +[section:first First Section] + +Some[footnote First footnote] normal[footnote Second footnote] footnotes[footnote Third footnote]. + +[endsect] + +[section:second Second Section] + +Some'''Boostbook footnote''' +boostbook'''Footnote without id''' +footnotes'''Another footnote without an id'''. + +[endsect] \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/heading-1_1.gold b/src/boost/tools/quickbook/test/heading-1_1.gold new file mode 100644 index 000000000..334d20bc1 --- /dev/null +++ b/src/boost/tools/quickbook/test/heading-1_1.gold @@ -0,0 +1,76 @@ + + +
+ Heading Test 1.1 + + Generic + header + + + Level 1 + + + Level 2 + + + Level 3 + + + Level 4 + + + Level 5 + + + Level 6 + + + Bold + + + Comment + + + :notanid + + + :also not an id + + + Anchor heading + + + Link heading + + + H1 + +
+ S1 + + H2 + +
+ S2 + + H3 + +
+ + H4 + +
+ S3 + + H5 + +
+ + H6 + +
+ + H7 + +
diff --git a/src/boost/tools/quickbook/test/heading-1_1.gold-html b/src/boost/tools/quickbook/test/heading-1_1.gold-html new file mode 100644 index 000000000..9da607a93 --- /dev/null +++ b/src/boost/tools/quickbook/test/heading-1_1.gold-html @@ -0,0 +1,100 @@ + + + + +

+ Heading Test 1.1 +

+
+

+ Table of contents +

+
    +
  • + S1 +
  • +
+
+

+ Generic header +

+

+ Level 1 +

+

+ Level 2 +

+

+ Level 3 +

+

+ Level 4 +

+
+ Level 5 +
+
+ Level 6 +
+

+ Bold +

+

+ Comment +

+

+ :notanid +

+

+ :also not an id +

+

+ Anchor heading +

+

+ Link heading +

+

+ H1 +

+

+ H7 +

+
+

+ S1 +

+
+

+ H2 +

+

+ H4 +

+

+ H6 +

+
+
+

+ S2 +

+
+

+ H3 +

+
+
+
+

+ S3 +

+
+

+ H5 +

+
+
+
+ + diff --git a/src/boost/tools/quickbook/test/heading-1_1.quickbook b/src/boost/tools/quickbook/test/heading-1_1.quickbook new file mode 100644 index 000000000..f7b2286f4 --- /dev/null +++ b/src/boost/tools/quickbook/test/heading-1_1.quickbook @@ -0,0 +1,55 @@ +[article Heading Test 1.1] + +[/ Basic headers ] + +[heading Generic header] +[h1 Level 1] +[h2 Level 2] +[h3 Level 3] +[h4 Level 4] +[h5 Level 5] +[h6 Level 6] + +[/ Test how heading ids are generated when different types of markup are present] + +[h1 *Bold*] +[h1 [/]Comment[/]] + +[/ Headings that look like ids] + +[h1:notanid] +[h1:also not an id] + +[/ Test how ids are generated for headings containing things like anchors + and links ] + +[h1 [#anchor]Anchor heading] +[h1 [link anchor Link heading]] + +[/ Test how heading ids are generated inside sections] + +[h1 H1] + +[section:s1 S1] + +[h2 H2] + +[section:s2 S2] + +[h3 H3] + +[endsect] + +[heading H4] + +[section:s3 S3] + +[h3 H5] + +[endsect] + +[heading H6] + +[endsect] + +[h1 H7] diff --git a/src/boost/tools/quickbook/test/heading-1_3.gold b/src/boost/tools/quickbook/test/heading-1_3.gold new file mode 100644 index 000000000..f883a6037 --- /dev/null +++ b/src/boost/tools/quickbook/test/heading-1_3.gold @@ -0,0 +1,24 @@ + + + diff --git a/src/boost/tools/quickbook/test/heading-1_3.gold-html b/src/boost/tools/quickbook/test/heading-1_3.gold-html new file mode 100644 index 000000000..a46543b63 --- /dev/null +++ b/src/boost/tools/quickbook/test/heading-1_3.gold-html @@ -0,0 +1,27 @@ + + + + +

+ Header +

+

+ Header Test +

+

+ Testing headers without sections. +

+

+ :Not an Id +

+

+ Paragraph. +

+

+ :Not an Id again +

+

+ Paragraph. +

+ + diff --git a/src/boost/tools/quickbook/test/heading-1_3.quickbook b/src/boost/tools/quickbook/test/heading-1_3.quickbook new file mode 100644 index 000000000..19de3a49a --- /dev/null +++ b/src/boost/tools/quickbook/test/heading-1_3.quickbook @@ -0,0 +1,16 @@ +[article Header + [quickbook 1.3] + [id header] +] + +[heading Header Test] + +Testing headers without sections. + +[heading:Not an Id] + +Paragraph. + +[h3:Not an Id again] + +Paragraph. \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/heading-1_5.gold b/src/boost/tools/quickbook/test/heading-1_5.gold new file mode 100644 index 000000000..03fe46491 --- /dev/null +++ b/src/boost/tools/quickbook/test/heading-1_5.gold @@ -0,0 +1,87 @@ + + +
+ Heading Test 1.5 + + Generic + header + + + Level + 1 + + + Level + 2 + + + Level + 3 + + + Level + 4 + + + Level + 5 + + + Level + 6 + + + Bold + + + Comment + + + :notanid + + + :also + not an id + + + Anchor heading + + + Link + heading + + + H1 + +
+ <link linkend="heading_test_1_5.s1">S1</link> + + H2 + +
+ <link linkend="heading_test_1_5.s1.s2">S2</link> + + H3 + +
+ + H4 + +
+ <link linkend="heading_test_1_5.s1.s3">S3</link> + + H5 + +
+ + H6 + +
+ + H7 + +
diff --git a/src/boost/tools/quickbook/test/heading-1_5.gold-html b/src/boost/tools/quickbook/test/heading-1_5.gold-html new file mode 100644 index 000000000..cad0e0311 --- /dev/null +++ b/src/boost/tools/quickbook/test/heading-1_5.gold-html @@ -0,0 +1,100 @@ + + + + +

+ Heading Test 1.5 +

+
+

+ Table of contents +

+
    +
  • + S1 +
  • +
+
+

+ Generic header +

+

+ Level 1 +

+

+ Level 2 +

+

+ Level 3 +

+

+ Level 4 +

+
+ Level 5 +
+
+ Level 6 +
+

+ Bold +

+

+ Comment +

+

+ :notanid +

+

+ :also not an id +

+

+ Anchor heading +

+

+ Link heading +

+

+ H1 +

+

+ H7 +

+
+

+ S1 +

+
+

+ H2 +

+

+ H4 +

+

+ H6 +

+
+
+

+ S2 +

+
+

+ H3 +

+
+
+
+

+ S3 +

+
+

+ H5 +

+
+
+
+ + diff --git a/src/boost/tools/quickbook/test/heading-1_5.quickbook b/src/boost/tools/quickbook/test/heading-1_5.quickbook new file mode 100644 index 000000000..572b184cd --- /dev/null +++ b/src/boost/tools/quickbook/test/heading-1_5.quickbook @@ -0,0 +1,57 @@ +[article Heading Test 1.5 +[quickbook 1.5] +] + +[/ Basic headers ] + +[heading Generic header] +[h1 Level 1] +[h2 Level 2] +[h3 Level 3] +[h4 Level 4] +[h5 Level 5] +[h6 Level 6] + +[/ Test how heading ids are generated when different types of markup are present] + +[h1 *Bold*] +[h1 [/]Comment[/]] + +[/ Headings that look like ids] + +[h1:notanid] +[h1:also not an id] + +[/ Test how ids are generated for headings containing things like anchors + and links ] + +[h1 [#anchor]Anchor heading] +[h1 [link anchor Link heading]] + +[/ Test how heading ids are generated inside sections] + +[heading H1] + +[section:s1 S1] + +[h2 H2] + +[section:s2 S2] + +[h3 H3] + +[endsect] + +[h2 H4] + +[section:s3 S3] + +[heading H5] + +[endsect] + +[h2 H6] + +[endsect] + +[h1 H7] diff --git a/src/boost/tools/quickbook/test/heading-1_6.gold b/src/boost/tools/quickbook/test/heading-1_6.gold new file mode 100644 index 000000000..008115d72 --- /dev/null +++ b/src/boost/tools/quickbook/test/heading-1_6.gold @@ -0,0 +1,109 @@ + + +
+ Heading Test 1.6 + + Generic + header + + + Level + 1 + + + Level + 2 + + + Level + 3 + + + Level + 4 + + + Level + 5 + + + Level + 6 + + + Bold + + + Comment + + + Anchor heading + + + Link heading + + + H1 + +
+ <link linkend="heading_test_1_6.s1">S1</link> + + H2 + +
+ <link linkend="heading_test_1_6.s1.s2">S2</link> + + H3 + +
+ + H4 + +
+ <link linkend="heading_test_1_6.s1.s3">S3</link> + + H5 + +
+ + H6 + +
+ + H7 + + + H1 + +
+ <link linkend="heading_test_1_6.s1_0">S1</link> + + H2 + +
+ <link linkend="heading_test_1_6.s1_0.s2">S2</link> + + H3 + +
+ + H4 + +
+ <link linkend="heading_test_1_6.s1_0.s3">S3</link> + + H5 + +
+ + H6 + +
+ + H7 + +
diff --git a/src/boost/tools/quickbook/test/heading-1_6.gold-html b/src/boost/tools/quickbook/test/heading-1_6.gold-html new file mode 100644 index 000000000..ce826d66b --- /dev/null +++ b/src/boost/tools/quickbook/test/heading-1_6.gold-html @@ -0,0 +1,139 @@ + + + + +

+ Heading Test 1.6 +

+
+

+ Table of contents +

+
    +
  • + S1 +
  • +
  • + S1 +
  • +
+
+

+ Generic header +

+

+ Level 1 +

+

+ Level 2 +

+

+ Level 3 +

+

+ Level 4 +

+
+ Level 5 +
+
+ Level 6 +
+

+ Bold +

+

+ Comment +

+

+ Anchor heading +

+

+ Link heading +

+

+ H1 +

+

+ H7 +

+

+ H1 +

+

+ H7 +

+
+

+ S1 +

+
+

+ H2 +

+

+ H4 +

+

+ H6 +

+
+
+

+ S2 +

+
+

+ H3 +

+
+
+
+

+ S3 +

+
+

+ H5 +

+
+
+
+
+

+ S1 +

+
+

+ H2 +

+

+ H4 +

+

+ H6 +

+
+
+

+ S2 +

+
+

+ H3 +

+
+
+
+

+ S3 +

+
+

+ H5 +

+
+
+
+ + diff --git a/src/boost/tools/quickbook/test/heading-1_6.quickbook b/src/boost/tools/quickbook/test/heading-1_6.quickbook new file mode 100644 index 000000000..b8f668694 --- /dev/null +++ b/src/boost/tools/quickbook/test/heading-1_6.quickbook @@ -0,0 +1,80 @@ +[article Heading Test 1.6 +[quickbook 1.6] +] + +[/ Basic headers ] + +[heading Generic header] +[h1 Level 1] +[h2 Level 2] +[h3 Level 3] +[h4 Level 4] +[h5 Level 5] +[h6 Level 6] + +[/ Test how heading ids are generated when different types of markup are present] + +[h1 *Bold*] +[h1 [/]Comment[/]] + +[/ Test how ids are generated for headings containing things like anchors + and links ] + +[h1 [#anchor]Anchor heading] +[h1 [link anchor Link heading]] + +[/ Test how heading ids are generated inside sections] + +[h1 H1] + +[section:s1 S1] + +[heading H2] + +[section:s2 S2] + +[h3 H3] + +[endsect] + +[h2 H4] + +[section:s3 S3] + +[heading H5] + +[endsect] + +[h2 H6] + +[endsect] + +[h1 H7] + +[/ Repeat with explicit ids] + +[h1:a1 H1] + +[section:s1 S1] + +[h2:a2 H2] + +[section:s2 S2] + +[h3:a3 H3] + +[endsect] + +[h2:a4 H4] + +[section:s3 S3] + +[h3:a5 H5] + +[endsect] + +[heading:a6 H6] + +[endsect] + +[h1:a7 H7] diff --git a/src/boost/tools/quickbook/test/heading-1_7.gold b/src/boost/tools/quickbook/test/heading-1_7.gold new file mode 100644 index 000000000..52f8291ab --- /dev/null +++ b/src/boost/tools/quickbook/test/heading-1_7.gold @@ -0,0 +1,113 @@ + + +
+ Heading Test 1.7 + + Generic + header + + + Level + 1 + + + Level + 2 + + + Level + 3 + + + Level + 4 + + + Level + 5 + + + Level + 6 + + + Bold + + + Comment + + + Anchor heading + + + Link heading + + + H1 + +
+ <link linkend="heading_test_1_7.s1">S1</link> + + H2 + +
+ <link linkend="heading_test_1_7.s1.s2">S2</link> + + H3 + +
+ + H4 + +
+ <link linkend="heading_test_1_7.s1.s3">S3</link> + + H5 + +
+ + H6 + +
+ + H7 + + + H1 + +
+ <link linkend="heading_test_1_7.s1_0">S1</link> + + H2 + +
+ <link linkend="heading_test_1_7.s1_0.s2">S2</link> + + H3 + +
+ + H4 + +
+ <link linkend="heading_test_1_7.s1_0.s3">S3</link> + + H5 + +
+ + H6 + +
+ + H7 + + + Template + Id + +
diff --git a/src/boost/tools/quickbook/test/heading-1_7.gold-html b/src/boost/tools/quickbook/test/heading-1_7.gold-html new file mode 100644 index 000000000..b0e21997b --- /dev/null +++ b/src/boost/tools/quickbook/test/heading-1_7.gold-html @@ -0,0 +1,142 @@ + + + + +

+ Heading Test 1.7 +

+
+

+ Table of contents +

+
    +
  • + S1 +
  • +
  • + S1 +
  • +
+
+

+ Generic header +

+

+ Level 1 +

+

+ Level 2 +

+

+ Level 3 +

+

+ Level 4 +

+
+ Level 5 +
+
+ Level 6 +
+

+ Bold +

+

+ Comment +

+

+ Anchor heading +

+

+ Link heading +

+

+ H1 +

+

+ H7 +

+

+ H1 +

+

+ H7 +

+

+ Template Id +

+
+

+ S1 +

+
+

+ H2 +

+

+ H4 +

+

+ H6 +

+
+
+

+ S2 +

+
+

+ H3 +

+
+
+
+

+ S3 +

+
+

+ H5 +

+
+
+
+
+

+ S1 +

+
+

+ H2 +

+

+ H4 +

+

+ H6 +

+
+
+

+ S2 +

+
+

+ H3 +

+
+
+
+

+ S3 +

+
+

+ H5 +

+
+
+
+ + diff --git a/src/boost/tools/quickbook/test/heading-1_7.quickbook b/src/boost/tools/quickbook/test/heading-1_7.quickbook new file mode 100644 index 000000000..47f878add --- /dev/null +++ b/src/boost/tools/quickbook/test/heading-1_7.quickbook @@ -0,0 +1,83 @@ +[article Heading Test 1.7 +[quickbook 1.7] +] + +[/ Basic headers ] + +[heading Generic header] +[h1 Level 1] +[h2 Level 2] +[h3 Level 3] +[h4 Level 4] +[h5 Level 5] +[h6 Level 6] + +[/ Test how heading ids are generated when different types of markup are present] + +[h1 *Bold*] +[h1 [/]Comment[/]] + +[/ Test how ids are generated for headings containing things like anchors + and links ] + +[h1 [#anchor]Anchor heading] +[h1 [link anchor Link heading]] + +[/ Test how heading ids are generated inside sections] + +[h1 H1] + +[section:s1 S1] + +[heading H2] + +[section:s2 S2] + +[h3 H3] + +[endsect] + +[h2 H4] + +[section:s3 S3] + +[heading H5] + +[endsect] + +[h2 H6] + +[endsect] + +[h1 H7] + +[/ Repeat with explicit ids] + +[h1:a1 H1] + +[section:s1 S1] + +[h2:a2 H2] + +[section:s2 S2] + +[h3:a3 H3] + +[endsect] + +[h2:a4 H4] + +[section:s3 S3] + +[h3:a5 H5] + +[endsect] + +[heading:a6 H6] + +[endsect] + +[h1:a7 H7] + +[template thing[] abc] +[heading:[thing]-2 Template Id] diff --git a/src/boost/tools/quickbook/test/heading_unclosed-1_4-fail.quickbook b/src/boost/tools/quickbook/test/heading_unclosed-1_4-fail.quickbook new file mode 100644 index 000000000..79bf3d79a --- /dev/null +++ b/src/boost/tools/quickbook/test/heading_unclosed-1_4-fail.quickbook @@ -0,0 +1,3 @@ +[article Parse error [quickbook 1.4]] + +[heading Incomplete heading diff --git a/src/boost/tools/quickbook/test/hr-1_5.gold b/src/boost/tools/quickbook/test/hr-1_5.gold new file mode 100644 index 000000000..8da9aa4d0 --- /dev/null +++ b/src/boost/tools/quickbook/test/hr-1_5.gold @@ -0,0 +1,34 @@ + + +
+ Horizontal Rule + + + This should be displayed. + + + + + * This shouldn't be a list + + + + + + This should be a list + + + + + + + + This should be a list + + + + + + +
diff --git a/src/boost/tools/quickbook/test/hr-1_5.gold-html b/src/boost/tools/quickbook/test/hr-1_5.gold-html new file mode 100644 index 000000000..14c24c067 --- /dev/null +++ b/src/boost/tools/quickbook/test/hr-1_5.gold-html @@ -0,0 +1,45 @@ + + + + +

+ Horizontal Rule +

+

+

+

+ This should be displayed. +

+

+

+

+

+

+ * This shouldn't be a list +

+

+

+
    +
  • +
    + This should be a list +
    +
  • +
+

+

+
    +
  • +
    + This should be a list +
    +
  • +
+

+

+

+

+

+

+ + diff --git a/src/boost/tools/quickbook/test/hr-1_5.quickbook b/src/boost/tools/quickbook/test/hr-1_5.quickbook new file mode 100644 index 000000000..27df9f537 --- /dev/null +++ b/src/boost/tools/quickbook/test/hr-1_5.quickbook @@ -0,0 +1,27 @@ +[article Horizontal Rule +[quickbook 1.5] +] + +---- [/ +This should be a comment. +] This should be displayed. + +---- [/ ] This shouldn't be displayed. + +---- [/ +This should be a comment. +] * This shouldn't be a list + +---- [/ +This should be a comment. +] +* This should be a list + +---- [/ This should be a comment] +* This should be a list + +---- [* This shouldn't be displayed.] + +---- This doesn't have an open bracket.] + +---- [ This doesn't have a close bracket. diff --git a/src/boost/tools/quickbook/test/hr-1_6.gold b/src/boost/tools/quickbook/test/hr-1_6.gold new file mode 100644 index 000000000..b9ef17a47 --- /dev/null +++ b/src/boost/tools/quickbook/test/hr-1_6.gold @@ -0,0 +1,39 @@ + + +
+ Horizontal Rule + + + This should be displayed. + + + + + * This shouldn't be a list + + + + + + This should be a list + + + + + + + + This should be a list + + + + + + This should be displayed. Maybe that's wrong? + + + + Odd way to get text displayed. + +
diff --git a/src/boost/tools/quickbook/test/hr-1_6.gold-html b/src/boost/tools/quickbook/test/hr-1_6.gold-html new file mode 100644 index 000000000..11e670228 --- /dev/null +++ b/src/boost/tools/quickbook/test/hr-1_6.gold-html @@ -0,0 +1,49 @@ + + + + +

+ Horizontal Rule +

+

+

+

+ This should be displayed. +

+

+

+

+

+

+ * This shouldn't be a list +

+

+

+
    +
  • +
    + This should be a list +
    +
  • +
+

+

+
    +
  • +
    + This should be a list +
    +
  • +
+

+

+

+ This should be displayed. Maybe that's wrong? +

+

+

+

+ Odd way to get text displayed. +

+ + diff --git a/src/boost/tools/quickbook/test/hr-1_6.quickbook b/src/boost/tools/quickbook/test/hr-1_6.quickbook new file mode 100644 index 000000000..0ed38c93e --- /dev/null +++ b/src/boost/tools/quickbook/test/hr-1_6.quickbook @@ -0,0 +1,26 @@ +[article Horizontal Rule +[quickbook 1.6] +] + +---- [/ +This should be a comment. +] This should be displayed. + +---- [/ ] This shouldn't be displayed. + +---- [/ +This should be a comment. +] * This shouldn't be a list + +---- [/ +This should be a comment. +] +* This should be a list + +---- [/ This should be a comment] +* This should be a list + +---- [* This should be displayed. Maybe that's wrong?] + +[template nothing] +---- [nothing] Odd way to get text displayed. diff --git a/src/boost/tools/quickbook/test/html/images/open_clipart_library_logo.svg b/src/boost/tools/quickbook/test/html/images/open_clipart_library_logo.svg new file mode 100644 index 000000000..9a4521f3a --- /dev/null +++ b/src/boost/tools/quickbook/test/html/images/open_clipart_library_logo.svg @@ -0,0 +1,143 @@ + + + + + + + + image/svg+xml + + Open Clip Art Logo + 10-01-2004 + + + Andreas Nilsson + + + + + + Jon Phillips, Tobias Jakobs + + + This is one version of the official Open Clip Art Library logo. + logo, open clip art library logo, logotype + + + + + + + + + + + + + + + + + + + diff --git a/src/boost/tools/quickbook/test/identifier-1_5.gold b/src/boost/tools/quickbook/test/identifier-1_5.gold new file mode 100644 index 000000000..0e3557b0a --- /dev/null +++ b/src/boost/tools/quickbook/test/identifier-1_5.gold @@ -0,0 +1,610 @@ + + +
+ Identifiers in quickbook 1.5 + + Test + heading with code + + + Identifier + 10 + + + Identifier + 10 + + + Identifier 10 + + + + + + + + +
+ + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having lots of headers + + + Generate + a really long id and duplicate it by having lots of headers + + + Generate + a really long id and duplicate it by having lots of headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having even more headers + + + Generate + a really long id and duplicate it by having even more headers + + + Generate + a really long id and duplicate it by having even more headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and d4 + + + Generate + a really long id and 15 + + + Generate + a really long id and d4 + + + Generate + a really long id and 15 + + + a2345678901234567890123456789012 + + + a2345678901234567890123456789012 + + + abcdefghijklmnopqrstuvwxyzabcdef + + + abcdefghijklmnopqrstuvwxyzabcdef + + + abcdefghijklmnopqrstuvwxyzabcdef + + + abcdefghijklmnopqrstuvwxyzabcdef + + + Markup + in heading in order + to test normalization + + + Markup + in heading in order + to test normalization + + + Markup + in heading in order + to test normalization + +
+ <link linkend="identifiers_in_quickbook_1_5.identifier_10">Identifier + 10</link> + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having lots of headers + + + Generate + a really long id and duplicate it by having lots of headers + + + Generate + a really long id and duplicate it by having lots of headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having even more headers + + + Generate + a really long id and duplicate it by having even more headers + + + Generate + a really long id and duplicate it by having even more headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and d4 + + + Generate + a really long id and 15 + + + Generate + a really long id and d4 + + + Generate + a really long id and 15 + + + a2345678901234567890123456789012 + + + a2345678901234567890123456789012 + + + abcdefghijklmnopqrstuvwxyzabcdef + + + abcdefghijklmnopqrstuvwxyzabcdef + + + abcdefghijklmnopqrstuvwxyzabcdef + + + abcdefghijklmnopqrstuvwxyzabcdef + + + Markup + in heading in order + to test normalization + + + Markup + in heading in order + to test normalization + + + Markup + in heading in order + to test normalization + + + h3 + + + + + + + + +
+ + h3 + + + + + + + + +
+
+
+ <link linkend="identifiers_in_quickbook_1_5.punctuation___stuff">Punctuation + & stuff</link> + + A + B + + + A + + B + +
+
diff --git a/src/boost/tools/quickbook/test/identifier-1_5.gold-html b/src/boost/tools/quickbook/test/identifier-1_5.gold-html new file mode 100644 index 000000000..4628a436f --- /dev/null +++ b/src/boost/tools/quickbook/test/identifier-1_5.gold-html @@ -0,0 +1,421 @@ + + + + +

+ Identifiers in quickbook 1.5 +

+
+

+ Table of contents +

+ +
+

+ Test heading with code +

+

+ Identifier 10 +

+

+ Identifier 10 +

+
+ + + + + + + +
Identifier 10
+
+
+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having lots of headers +

+

+ Generate a really long id and duplicate it by having lots of headers +

+

+ Generate a really long id and duplicate it by having lots of headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having even more headers +

+

+ Generate a really long id and duplicate it by having even more headers +

+

+ Generate a really long id and duplicate it by having even more headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and d4 +

+

+ Generate a really long id and 15 +

+

+ Generate a really long id and d4 +

+

+ Generate a really long id and 15 +

+

+ a2345678901234567890123456789012 +

+

+ a2345678901234567890123456789012 +

+

+ abcdefghijklmnopqrstuvwxyzabcdef +

+

+ abcdefghijklmnopqrstuvwxyzabcdef +

+

+ abcdefghijklmnopqrstuvwxyzabcdef +

+

+ abcdefghijklmnopqrstuvwxyzabcdef +

+

+ Markup in heading in order + to test normalization +

+

+ Markup in heading in order + to test normalization +

+

+ Markup in heading in order + to test normalization +

+
+

+ Identifier 10 +

+
+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having lots of headers +

+

+ Generate a really long id and duplicate it by having lots of headers +

+

+ Generate a really long id and duplicate it by having lots of headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having even more headers +

+

+ Generate a really long id and duplicate it by having even more headers +

+

+ Generate a really long id and duplicate it by having even more headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and d4 +

+

+ Generate a really long id and 15 +

+

+ Generate a really long id and d4 +

+

+ Generate a really long id and 15 +

+

+ a2345678901234567890123456789012 +

+

+ a2345678901234567890123456789012 +

+

+ abcdefghijklmnopqrstuvwxyzabcdef +

+

+ abcdefghijklmnopqrstuvwxyzabcdef +

+

+ abcdefghijklmnopqrstuvwxyzabcdef +

+

+ abcdefghijklmnopqrstuvwxyzabcdef +

+

+ Markup in heading in order to test normalization +

+

+ Markup in heading in order to test normalization +

+

+ Markup in heading in order to test normalization +

+
+ + + + + + + +
h3
+
+
+
+ + + + + + + +
h3
+
+
+
+
+
+

+ Punctuation & stuff +

+
+

+ A + B +

+

+ A + B +

+
+
+ + diff --git a/src/boost/tools/quickbook/test/identifier-1_5.quickbook b/src/boost/tools/quickbook/test/identifier-1_5.quickbook new file mode 100644 index 000000000..882d5df23 --- /dev/null +++ b/src/boost/tools/quickbook/test/identifier-1_5.quickbook @@ -0,0 +1,148 @@ +[article Identifiers in quickbook 1.5 + [quickbook 1.5] +] + +[heading Test heading with `code`] + +[heading Identifier 10] +[heading Identifier 10] +[table Identifier 10 +[[]] +] + +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having lots of headers] +[heading Generate a really long id and duplicate it by having lots of headers] +[heading Generate a really long id and duplicate it by having lots of headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having even more headers] +[heading Generate a really long id and duplicate it by having even more headers] +[heading Generate a really long id and duplicate it by having even more headers] +[heading Generate a really long id and duplicate it by having several headers] + +[heading Generate a really long id and d4] +[heading Generate a really long id and 15] +[heading Generate a really long id and d4] +[heading Generate a really long id and 15] + +[heading a2345678901234567890123456789012] +[heading a2345678901234567890123456789012] +[heading abcdefghijklmnopqrstuvwxyzabcdef] +[heading abcdefghijklmnopqrstuvwxyzabcdef] +[heading abcdefghijklmnopqrstuvwxyzabcdef] +[heading abcdefghijklmnopqrstuvwxyzabcdef] + +[heading Markup in `heading` in *order* to test normalization] +[heading Markup in `heading` in *order* to test normalization] +[heading Markup in `heading` in *order* to test normalization] + +[section Identifier 10] + +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having lots of headers] +[heading Generate a really long id and duplicate it by having lots of headers] +[heading Generate a really long id and duplicate it by having lots of headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having even more headers] +[heading Generate a really long id and duplicate it by having even more headers] +[heading Generate a really long id and duplicate it by having even more headers] +[heading Generate a really long id and duplicate it by having several headers] + +[heading Generate a really long id and d4] +[heading Generate a really long id and 15] +[heading Generate a really long id and d4] +[heading Generate a really long id and 15] + +[heading a2345678901234567890123456789012] +[heading a2345678901234567890123456789012] +[heading abcdefghijklmnopqrstuvwxyzabcdef] +[heading abcdefghijklmnopqrstuvwxyzabcdef] +[heading abcdefghijklmnopqrstuvwxyzabcdef] +[heading abcdefghijklmnopqrstuvwxyzabcdef] + +[heading Markup in `heading` in *order* to test normalization] +[heading Markup in `heading` in *order* to test normalization] +[heading Markup in `heading` in *order* to test normalization] + +[table h3 +[[]] +] + +[table h3 +[[]] +] + +[endsect] + +[section Punctuation & stuff] + +[heading A + B] +[heading A + B] + +[endsect] \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/identifier-1_6.gold b/src/boost/tools/quickbook/test/identifier-1_6.gold new file mode 100644 index 000000000..387204122 --- /dev/null +++ b/src/boost/tools/quickbook/test/identifier-1_6.gold @@ -0,0 +1,609 @@ + + +
+ Identifiers in quickbook 1.6 + + Test + heading with code + + + Identifier + 10 + + + Identifier + 10 + + + Identifier 10 + + + + + + + + +
+ + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having lots of headers + + + Generate + a really long id and duplicate it by having lots of headers + + + Generate + a really long id and duplicate it by having lots of headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having even more headers + + + Generate + a really long id and duplicate it by having even more headers + + + Generate + a really long id and duplicate it by having even more headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and d4 + + + Generate + a really long id and 15 + + + Generate + a really long id and d4 + + + Generate + a really long id and 15 + + + a2345678901234567890123456789012 + + + a2345678901234567890123456789012 + + + abcdefghijklmnopqrstuvwxyzabcdef + + + abcdefghijklmnopqrstuvwxyzabcdef + + + abcdefghijklmnopqrstuvwxyzabcdef + + + abcdefghijklmnopqrstuvwxyzabcdef + + + Markup + in heading in order + to test normalization + + + Markup + in heading in order + to test normalization + + + Markup + in heading in order + to test normalization + +
+ <link linkend="identifiers_in_quickbook_1_6.identifier_10">Identifier + 10</link> + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having lots of headers + + + Generate + a really long id and duplicate it by having lots of headers + + + Generate + a really long id and duplicate it by having lots of headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having too many headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and duplicate it by having even more headers + + + Generate + a really long id and duplicate it by having even more headers + + + Generate + a really long id and duplicate it by having even more headers + + + Generate + a really long id and duplicate it by having several headers + + + Generate + a really long id and d4 + + + Generate + a really long id and 15 + + + Generate + a really long id and d4 + + + Generate + a really long id and 15 + + + a2345678901234567890123456789012 + + + a2345678901234567890123456789012 + + + abcdefghijklmnopqrstuvwxyzabcdef + + + abcdefghijklmnopqrstuvwxyzabcdef + + + abcdefghijklmnopqrstuvwxyzabcdef + + + abcdefghijklmnopqrstuvwxyzabcdef + + + Markup + in heading in order + to test normalization + + + Markup + in heading in order + to test normalization + + + Markup + in heading in order + to test normalization + + + h3 + + + + + + + + +
+ + h3 + + + + + + + + +
+
+
+ <link linkend="identifiers_in_quickbook_1_6.punctuation_stuff">Punctuation + & stuff</link> + + A + + B + + + A + + B + +
+
diff --git a/src/boost/tools/quickbook/test/identifier-1_6.gold-html b/src/boost/tools/quickbook/test/identifier-1_6.gold-html new file mode 100644 index 000000000..d9f67439d --- /dev/null +++ b/src/boost/tools/quickbook/test/identifier-1_6.gold-html @@ -0,0 +1,421 @@ + + + + +

+ Identifiers in quickbook 1.6 +

+
+

+ Table of contents +

+ +
+

+ Test heading with code +

+

+ Identifier 10 +

+

+ Identifier 10 +

+
+ + + + + + + +
Identifier 10
+
+
+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having lots of headers +

+

+ Generate a really long id and duplicate it by having lots of headers +

+

+ Generate a really long id and duplicate it by having lots of headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having even more headers +

+

+ Generate a really long id and duplicate it by having even more headers +

+

+ Generate a really long id and duplicate it by having even more headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and d4 +

+

+ Generate a really long id and 15 +

+

+ Generate a really long id and d4 +

+

+ Generate a really long id and 15 +

+

+ a2345678901234567890123456789012 +

+

+ a2345678901234567890123456789012 +

+

+ abcdefghijklmnopqrstuvwxyzabcdef +

+

+ abcdefghijklmnopqrstuvwxyzabcdef +

+

+ abcdefghijklmnopqrstuvwxyzabcdef +

+

+ abcdefghijklmnopqrstuvwxyzabcdef +

+

+ Markup in heading in order + to test normalization +

+

+ Markup in heading in order + to test normalization +

+

+ Markup in heading in order + to test normalization +

+
+

+ Identifier 10 +

+
+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having lots of headers +

+

+ Generate a really long id and duplicate it by having lots of headers +

+

+ Generate a really long id and duplicate it by having lots of headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having too many headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and duplicate it by having even more headers +

+

+ Generate a really long id and duplicate it by having even more headers +

+

+ Generate a really long id and duplicate it by having even more headers +

+

+ Generate a really long id and duplicate it by having several headers +

+

+ Generate a really long id and d4 +

+

+ Generate a really long id and 15 +

+

+ Generate a really long id and d4 +

+

+ Generate a really long id and 15 +

+

+ a2345678901234567890123456789012 +

+

+ a2345678901234567890123456789012 +

+

+ abcdefghijklmnopqrstuvwxyzabcdef +

+

+ abcdefghijklmnopqrstuvwxyzabcdef +

+

+ abcdefghijklmnopqrstuvwxyzabcdef +

+

+ abcdefghijklmnopqrstuvwxyzabcdef +

+

+ Markup in heading in order to test normalization +

+

+ Markup in heading in order to test normalization +

+

+ Markup in heading in order to test normalization +

+
+ + + + + + + +
h3
+
+
+
+ + + + + + + +
h3
+
+
+
+
+
+

+ Punctuation & stuff +

+
+

+ A + B +

+

+ A + B +

+
+
+ + diff --git a/src/boost/tools/quickbook/test/identifier-1_6.quickbook b/src/boost/tools/quickbook/test/identifier-1_6.quickbook new file mode 100644 index 000000000..1bbf0a1c4 --- /dev/null +++ b/src/boost/tools/quickbook/test/identifier-1_6.quickbook @@ -0,0 +1,148 @@ +[article Identifiers in quickbook 1.6 + [quickbook 1.6] +] + +[heading Test heading with `code`] + +[heading Identifier 10] +[heading Identifier 10] +[table Identifier 10 +[[]] +] + +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having lots of headers] +[heading Generate a really long id and duplicate it by having lots of headers] +[heading Generate a really long id and duplicate it by having lots of headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having even more headers] +[heading Generate a really long id and duplicate it by having even more headers] +[heading Generate a really long id and duplicate it by having even more headers] +[heading Generate a really long id and duplicate it by having several headers] + +[heading Generate a really long id and d4] +[heading Generate a really long id and 15] +[heading Generate a really long id and d4] +[heading Generate a really long id and 15] + +[heading a2345678901234567890123456789012] +[heading a2345678901234567890123456789012] +[heading abcdefghijklmnopqrstuvwxyzabcdef] +[heading abcdefghijklmnopqrstuvwxyzabcdef] +[heading abcdefghijklmnopqrstuvwxyzabcdef] +[heading abcdefghijklmnopqrstuvwxyzabcdef] + +[heading Markup in `heading` in *order* to test normalization] +[heading Markup in `heading` in *order* to test normalization] +[heading Markup in `heading` in *order* to test normalization] + +[section Identifier 10] + +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having lots of headers] +[heading Generate a really long id and duplicate it by having lots of headers] +[heading Generate a really long id and duplicate it by having lots of headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having too many headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having several headers] +[heading Generate a really long id and duplicate it by having even more headers] +[heading Generate a really long id and duplicate it by having even more headers] +[heading Generate a really long id and duplicate it by having even more headers] +[heading Generate a really long id and duplicate it by having several headers] + +[heading Generate a really long id and d4] +[heading Generate a really long id and 15] +[heading Generate a really long id and d4] +[heading Generate a really long id and 15] + +[heading a2345678901234567890123456789012] +[heading a2345678901234567890123456789012] +[heading abcdefghijklmnopqrstuvwxyzabcdef] +[heading abcdefghijklmnopqrstuvwxyzabcdef] +[heading abcdefghijklmnopqrstuvwxyzabcdef] +[heading abcdefghijklmnopqrstuvwxyzabcdef] + +[heading Markup in `heading` in *order* to test normalization] +[heading Markup in `heading` in *order* to test normalization] +[heading Markup in `heading` in *order* to test normalization] + +[table h3 +[[]] +] + +[table h3 +[[]] +] + +[endsect] + +[section Punctuation & stuff] + +[heading A + B] +[heading A + B] + +[endsect] \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/image-1_5.gold b/src/boost/tools/quickbook/test/image-1_5.gold new file mode 100644 index 000000000..6364ded61 --- /dev/null +++ b/src/boost/tools/quickbook/test/image-1_5.gold @@ -0,0 +1,64 @@ + + +
+ Images 1.5 + + + + test + + + + test this + + + + test&this + + + + test + + + + Foo + + + + Foobie foobie foo + + + + Foo & bar + + + + Foo + + + + + + + test + + + + test + + + + comment + + + + + + + test + + + +
diff --git a/src/boost/tools/quickbook/test/image-1_5.gold-html b/src/boost/tools/quickbook/test/image-1_5.gold-html new file mode 100644 index 000000000..23c8e6f16 --- /dev/null +++ b/src/boost/tools/quickbook/test/image-1_5.gold-html @@ -0,0 +1,26 @@ + + + + +

+ Images 1.5 +

+

+ [] [] [] [] [] [] [] + [] +

+

+ [] [] [] +

+

+ [] +

+ + diff --git a/src/boost/tools/quickbook/test/image-1_5.quickbook b/src/boost/tools/quickbook/test/image-1_5.quickbook new file mode 100644 index 000000000..0774fd447 --- /dev/null +++ b/src/boost/tools/quickbook/test/image-1_5.quickbook @@ -0,0 +1,19 @@ +[article Images 1.5 + [quickbook 1.5] +] + +[$test.gif] +[$test this.gif] +[$test&this.gif] +[$test.gif [width 10cm] [height 10cm]] +[$test.gif [alt Foo]] +[$test.gif [alt Foobie foobie foo]] +[$test.gif [alt Foo & bar]] +[$test.gif [alt Foo] [width 10cm] [height 10cm]] + +[$ [/comment] test.gif ] +[$ [/comment] test.gif [/comment] ] +[$ [/comment] test.gif [/comment] [alt comment] ] + +[/ This should warn about repeated attribute and then ignore it. ] +[$test.gif [width 10cm] [height 10cm] [width 20cm]] diff --git a/src/boost/tools/quickbook/test/image-1_6.gold b/src/boost/tools/quickbook/test/image-1_6.gold new file mode 100644 index 000000000..d26269ac4 --- /dev/null +++ b/src/boost/tools/quickbook/test/image-1_6.gold @@ -0,0 +1,51 @@ + + +
+ Images 1.6 + + + + + + + + Foo + + + + Foobie foobie foo + + + + Foo & bar + + + + Foo + + + + Foo[] + + + + + + + + + comment + + + + + + + + + + +
diff --git a/src/boost/tools/quickbook/test/image-1_6.gold-html b/src/boost/tools/quickbook/test/image-1_6.gold-html new file mode 100644 index 000000000..2432d09b0 --- /dev/null +++ b/src/boost/tools/quickbook/test/image-1_6.gold-html @@ -0,0 +1,32 @@ + + + + +

+ Images 1.6 +

+

+ [] [] [] [] [] [] [] + [] [] +

+

+ [] [] [] +

+

+ [] +

+

+ [] [] +

+ + diff --git a/src/boost/tools/quickbook/test/image-1_6.quickbook b/src/boost/tools/quickbook/test/image-1_6.quickbook new file mode 100644 index 000000000..438c34f5d --- /dev/null +++ b/src/boost/tools/quickbook/test/image-1_6.quickbook @@ -0,0 +1,23 @@ +[article Images 1.6 + [quickbook 1.6] +] + +[$test.gif] +[$test this.gif] +[$test&this.gif] +[$test.gif [width 10cm] [height 10cm]] +[$test.gif [alt Foo]] +[$test.gif [alt Foobie foobie foo]] +[$test.gif [alt Foo & bar]] +[$test.gif [alt Foo] [width 10cm] [height 10cm]] +[$test.gif [alt Foo\[\]] [width 10cm] [height 10cm]] + +[$ [/comment] test.gif ] +[$ [/comment] test.gif [/comment] ] +[$ [/comment] test.gif [/comment] [alt comment] ] + +[/ This should warn about repeated attribute and then ignore it. ] +[$test.gif [width 10cm] [height 10cm] [width 20cm]] + +[$boost:/boost.png] +[$boost:boost.png [width 10cm] [height 10cm] [width 20cm]] diff --git a/src/boost/tools/quickbook/test/import-1_1-fail.quickbook b/src/boost/tools/quickbook/test/import-1_1-fail.quickbook new file mode 100644 index 000000000..ea60df84f --- /dev/null +++ b/src/boost/tools/quickbook/test/import-1_1-fail.quickbook @@ -0,0 +1,8 @@ +[article Expect import Fail +] + +[section Failure] + +[import this-is-not-a-file.cpp] + +[endsect] diff --git a/src/boost/tools/quickbook/test/include-1_1-fail.quickbook b/src/boost/tools/quickbook/test/include-1_1-fail.quickbook new file mode 100644 index 000000000..adb990e59 --- /dev/null +++ b/src/boost/tools/quickbook/test/include-1_1-fail.quickbook @@ -0,0 +1,8 @@ +[article Expect xinclude Fail +] + +[section Failure] + +[include this-is-not-a-file.qbk] + +[endsect] diff --git a/src/boost/tools/quickbook/test/include-1_5.gold b/src/boost/tools/quickbook/test/include-1_5.gold new file mode 100644 index 000000000..f8a347e2e --- /dev/null +++ b/src/boost/tools/quickbook/test/include-1_5.gold @@ -0,0 +1,30 @@ + + +
+ Include Test +
+ <link linkend="include_test_sub_document.test">Test</link> + + Just testing. + +
+
+ <link linkend="foo.test">Test</link> + + Just testing. + +
+ + Just trying including in a conditional macro. + +
+ <link linkend="foo2.test">Test</link> + + Just testing. + +
+ + With some text around it. + +
diff --git a/src/boost/tools/quickbook/test/include-1_5.gold-html b/src/boost/tools/quickbook/test/include-1_5.gold-html new file mode 100644 index 000000000..5a92021b4 --- /dev/null +++ b/src/boost/tools/quickbook/test/include-1_5.gold-html @@ -0,0 +1,61 @@ + + + + +

+ Include Test +

+
+

+ Table of contents +

+ +
+

+ Just trying including in a conditional macro. +

+

+ With some text around it. +

+
+

+ Test +

+
+

+ Just testing. +

+
+
+
+

+ Test +

+
+

+ Just testing. +

+
+
+
+

+ Test +

+
+

+ Just testing. +

+
+
+ + diff --git a/src/boost/tools/quickbook/test/include-1_5.quickbook b/src/boost/tools/quickbook/test/include-1_5.quickbook new file mode 100644 index 000000000..972012192 --- /dev/null +++ b/src/boost/tools/quickbook/test/include-1_5.quickbook @@ -0,0 +1,17 @@ +[article Include Test + [quickbook 1.5] + [id include-test] +] + +[include include-inc-1_5.quickbook] +[include .\include-inc.quickbook] +[include:foo include-inc.quickbook] +[include empty-inc.quickbook] + +[def __defined__] + +[? __undefined__ [include:foo1 include-inc.quickbook] ] +[? __undefined__ [include:foo1 not_a_file.quickbook] ] +[? __defined__ + Just trying including in a conditional macro. [include:foo2 include-inc.quickbook] + With some text around it.] diff --git a/src/boost/tools/quickbook/test/include-1_6.gold b/src/boost/tools/quickbook/test/include-1_6.gold new file mode 100644 index 000000000..f5b5af358 --- /dev/null +++ b/src/boost/tools/quickbook/test/include-1_6.gold @@ -0,0 +1,30 @@ + + +
+ Include Test +
+ <link linkend="include-test.test">Test</link> + + Just testing. + +
+
+ <link linkend="foo.test">Test</link> + + Just testing. + +
+ + Just trying including in a conditional macro. + +
+ <link linkend="foo2.test">Test</link> + + Just testing. + +
+ + With some text around it. + +
diff --git a/src/boost/tools/quickbook/test/include-1_6.gold-html b/src/boost/tools/quickbook/test/include-1_6.gold-html new file mode 100644 index 000000000..f7f45f34a --- /dev/null +++ b/src/boost/tools/quickbook/test/include-1_6.gold-html @@ -0,0 +1,61 @@ + + + + +

+ Include Test +

+
+

+ Table of contents +

+ +
+

+ Just trying including in a conditional macro. +

+

+ With some text around it. +

+
+

+ Test +

+
+

+ Just testing. +

+
+
+
+

+ Test +

+
+

+ Just testing. +

+
+
+
+

+ Test +

+
+

+ Just testing. +

+
+
+ + diff --git a/src/boost/tools/quickbook/test/include-1_6.quickbook b/src/boost/tools/quickbook/test/include-1_6.quickbook new file mode 100644 index 000000000..29a761192 --- /dev/null +++ b/src/boost/tools/quickbook/test/include-1_6.quickbook @@ -0,0 +1,15 @@ +[article Include Test + [quickbook 1.6] + [id include-test] +] + +[include include-inc.quickbook] +[include:foo include-inc.quickbook] + +[def __defined__] + +[? __undefined__ [include:foo1 include-inc.quickbook] ] +[? __undefined__ [include:foo1 not-a-file.quickbook] ] +[? __defined__ + Just trying including in a conditional macro. [include:foo2 include-inc.quickbook] + With some text around it.] diff --git a/src/boost/tools/quickbook/test/include-1_7.gold b/src/boost/tools/quickbook/test/include-1_7.gold new file mode 100644 index 000000000..206509bf2 --- /dev/null +++ b/src/boost/tools/quickbook/test/include-1_7.gold @@ -0,0 +1,36 @@ + + +
+ Include Test +
+ <link linkend="include-test.test">Test</link> + + Just testing. + +
+
+ <link linkend="foo.test">Test</link> + + Just testing. + +
+
+ <link linkend="foo0.test">Test</link> + + Just testing. + +
+ + Just trying including in a conditional macro. + +
+ <link linkend="foo2.test">Test</link> + + Just testing. + +
+ + With some text around it. + +
diff --git a/src/boost/tools/quickbook/test/include-1_7.gold-html b/src/boost/tools/quickbook/test/include-1_7.gold-html new file mode 100644 index 000000000..b92d56298 --- /dev/null +++ b/src/boost/tools/quickbook/test/include-1_7.gold-html @@ -0,0 +1,74 @@ + + + + +

+ Include Test +

+
+

+ Table of contents +

+ +
+

+ Just trying including in a conditional macro. +

+

+ With some text around it. +

+
+

+ Test +

+
+

+ Just testing. +

+
+
+
+

+ Test +

+
+

+ Just testing. +

+
+
+
+

+ Test +

+
+

+ Just testing. +

+
+
+
+

+ Test +

+
+

+ Just testing. +

+
+
+ + diff --git a/src/boost/tools/quickbook/test/include-1_7.quickbook b/src/boost/tools/quickbook/test/include-1_7.quickbook new file mode 100644 index 000000000..481e4130a --- /dev/null +++ b/src/boost/tools/quickbook/test/include-1_7.quickbook @@ -0,0 +1,18 @@ +[article Include Test + [quickbook 1.7] + [id include-test] +] + +[include include-inc.quickbook] +[include:foo include-inc.quickbook] + +[template id2[] include-inc] +[include:foo0 [id2].quickbook] + +[def __defined__] + +[? __undefined__ [include:foo1 include-inc.quickbook] ] +[? __undefined__ [include:foo1 not-a-file.quickbook] ] +[? __defined__ + Just trying including in a conditional macro. [include:foo2 include-inc.quickbook] + With some text around it.] diff --git a/src/boost/tools/quickbook/test/include-inc-1_5.quickbook b/src/boost/tools/quickbook/test/include-inc-1_5.quickbook new file mode 100644 index 000000000..1dcbff9ff --- /dev/null +++ b/src/boost/tools/quickbook/test/include-inc-1_5.quickbook @@ -0,0 +1,6 @@ +[article Include Test Sub Document + [quickbook 1.5] + [id include-sub] +] + +[/ Empty. Shouldn't really need this comment.] diff --git a/src/boost/tools/quickbook/test/include-inc.quickbook b/src/boost/tools/quickbook/test/include-inc.quickbook new file mode 100644 index 000000000..1fa61608b --- /dev/null +++ b/src/boost/tools/quickbook/test/include-inc.quickbook @@ -0,0 +1,9 @@ +[/ I'm trying not to break existing behaviour even when buggy. + In this case, this section will get an id using the title from + the previous 'include'.] + +[section:test Test] + +Just testing. + +[endsect] \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/include/Jamfile.v2 b/src/boost/tools/quickbook/test/include/Jamfile.v2 new file mode 100644 index 000000000..a40bf5543 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/Jamfile.v2 @@ -0,0 +1,48 @@ +# +# Copyright (c) 2011 Daniel James +# +# Distributed under the Boost Software License, Version 1.0. (See +# accompanying file LICENSE_1_0.txt or copy at +# http://www.boost.org/LICENSE_1_0.txt) +# + +project quickbook/test/includes + : requirements + msvc:off + ; + +import quickbook-testing : quickbook-test quickbook-error-test ; + +test-suite quickbook.test : + [ quickbook-test import-basic-1.6 ] + [ quickbook-test filename ] + [ quickbook-test filename-1_7 ] + [ quickbook-test filename-path : : : sub ] + [ quickbook-test filename_path-1_7 : : : sub ] + [ quickbook-test doc-title1-1.5 ] + [ quickbook-test doc-title1a-1.5 ] + [ quickbook-test section ] + [ quickbook-test section-unclosed ] + [ quickbook-test templates-1.5 ] + [ quickbook-test templates-1.6 ] + [ quickbook-test macros-1.5 ] + [ quickbook-test macros-1.6 ] + [ quickbook-test code-import ] + [ quickbook-test code-include ] + [ quickbook-test include-id-1.5 ] + [ quickbook-test include-id-1.6 ] + [ quickbook-test include_id_unbalanced-1_6 ] + [ quickbook-error-test section-fail1 ] + [ quickbook-error-test section-fail2 ] + [ quickbook-test in_section-1_5 ] + [ quickbook-test in_section-1_6 ] + [ quickbook-test compatibility-1_1 ] + [ quickbook-test compatibility-1_5 ] + [ quickbook-test compatibility-1_6 ] + [ quickbook-test source_mode-1_5 ] + [ quickbook-test source_mode-1_6 ] + [ quickbook-test nested_compatibility-1_5 ] + [ quickbook-test nested_compatibility-1_6 ] + [ quickbook-test template_include-1_7 ] + [ quickbook-test glob-1_7 ] + ; diff --git a/src/boost/tools/quickbook/test/include/code-import.gold b/src/boost/tools/quickbook/test/include/code-import.gold new file mode 100644 index 000000000..12089ece2 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/code-import.gold @@ -0,0 +1,138 @@ + + +
+ Import + + This is the foo function. + + + This description can have paragraphs... + + + + + lists + + + + + etc. + + + + + And any quickbook block markup. + + +std::string foo() +{ + // return 'em, foo man! + return "foo"; +} + + + + This is the Python foo + function. + + + This description can have paragraphs... + + + + + lists + + + + + etc. + + + + + And any quickbook block markup. + + +def foo(): + # return 'em, foo man! + return "foo" + + + + This is the C foo function. + + + This description can have paragraphs... + + + + + lists + + + + + etc. + + + + + And any quickbook block markup. + + +char* foo() +{ + // return 'em, foo man! + return "foo"; +} + + + +class x +{ +public: + + x() : n(0) + { + } + + ~x() + { + } + + int get() const + { + return n; + } + + void set(int n_) + { + n = n_; + } +}; + + + + + + Constructor + + + + + Destructor + + + + + Get the n member variable + + + + + Set the n member variable + + + +
diff --git a/src/boost/tools/quickbook/test/include/code-import.gold-html b/src/boost/tools/quickbook/test/include/code-import.gold-html new file mode 100644 index 000000000..1fbe10557 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/code-import.gold-html @@ -0,0 +1,148 @@ + + + + +

+ Import +

+

+ This is the foo + function. +

+

+ This description can have paragraphs... +

+
    +
  • +
    + lists +
    +
  • +
  • +
    + etc. +
    +
  • +
+

+ And any quickbook block markup. +

+

+

std::string foo()
+{
+    // return 'em, foo man!
+    return "foo";
+}
+
+

+

+ This is the Python foo + function. +

+

+ This description can have paragraphs... +

+
    +
  • +
    + lists +
    +
  • +
  • +
    + etc. +
    +
  • +
+

+ And any quickbook block markup. +

+

+

def foo():
+    # return 'em, foo man!
+    return "foo"
+
+

+

+ This is the C foo + function. +

+

+ This description can have paragraphs... +

+
    +
  • +
    + lists +
    +
  • +
  • +
    + etc. +
    +
  • +
+

+ And any quickbook block markup. +

+

+

char* foo()
+{
+    // return 'em, foo man!
+    return "foo";
+}
+
+

+

+

class x
+{
+public:
+
+    (1)x() : n(0)
+    {
+    }
+
+    (2)~x()
+    {
+    }
+
+    (3)int get() const
+    {
+        return n;
+    }
+
+    (4)void set(int n_)
+    {
+        n = n_;
+    }
+};
+
+

+
+
+ (1) +

+ Constructor +

+
+
+ (2) +

+ Destructor +

+
+
+ (3) +

+ Get the n member variable +

+
+
+ (4) +

+ Set the n member variable +

+
+
+ + diff --git a/src/boost/tools/quickbook/test/include/code-import.quickbook b/src/boost/tools/quickbook/test/include/code-import.quickbook new file mode 100644 index 000000000..70faf0776 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/code-import.quickbook @@ -0,0 +1,13 @@ +[article Import] + +[import ../stub.c] +[import ../stub.py] +[import ../stub.cpp] + +[foo] + +[foo_py] + +[foo_c] + +[class_] \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/include/code-include.gold b/src/boost/tools/quickbook/test/include/code-include.gold new file mode 100644 index 000000000..dfa697fd8 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/code-include.gold @@ -0,0 +1,50 @@ + + +
+ Include + + This should appear when stub.c is included. + + + This is the C foo function. + + + This description can have paragraphs... + + + + + lists + + + + + etc. + + + + + And any quickbook block markup. + +char* foo() +{ + // return 'em, foo man! + return "foo"; +} + + + This should appear when stub.py is included. + + + This should appear when stub.cpp is included. + + + [foo] + + + [foo_py] + + + [foo_c] + +
diff --git a/src/boost/tools/quickbook/test/include/code-include.gold-html b/src/boost/tools/quickbook/test/include/code-include.gold-html new file mode 100644 index 000000000..100e34a1b --- /dev/null +++ b/src/boost/tools/quickbook/test/include/code-include.gold-html @@ -0,0 +1,55 @@ + + + + +

+ Include +

+

+ This should appear when stub.c is included. +

+

+ This is the C foo + function. +

+

+ This description can have paragraphs... +

+
    +
  • +
    + lists +
    +
  • +
  • +
    + etc. +
    +
  • +
+

+ And any quickbook block markup. +

+
char* foo()
+{
+    // return 'em, foo man!
+    return "foo";
+}
+
+

+ This should appear when stub.py is included. +

+

+ This should appear when stub.cpp is included. +

+

+ [foo] +

+

+ [foo_py] +

+

+ [foo_c] +

+ + diff --git a/src/boost/tools/quickbook/test/include/code-include.quickbook b/src/boost/tools/quickbook/test/include/code-include.quickbook new file mode 100644 index 000000000..8a47538f1 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/code-include.quickbook @@ -0,0 +1,16 @@ +[article Include +[quickbook 1.6] +] + +[include ../stub.c] +[include ../stub.py] +[include ../stub.cpp] + +[/ These shouldn't expand ] + +[foo] + +[foo_py] + +[foo_c] + diff --git a/src/boost/tools/quickbook/test/include/compatibility-1_1.gold b/src/boost/tools/quickbook/test/include/compatibility-1_1.gold new file mode 100644 index 000000000..961d6aa51 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/compatibility-1_1.gold @@ -0,0 +1,362 @@ + + +
+ Test Compatibility Mode +
+ Outer +
+ Inner + + Header + + + Heading1 + + + Header + with id + + + Heading1 + with id + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + With Title + + + + + + + + + + + + + + +
+ + Id and Title + + + + + + + + + + + + + + +
+
+
+ Inner with id +
+
+
+ Include compatibility 1.1 +
+ Inner + + Header + + + Heading1 + + + Header + with id + + + Heading1 + with id + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + With Title + + + + + + + + + + + + + + +
+ + Id and Title + + + + + + + + + + + + + + +
+
+
+ Inner with id +
+
+
+ Include compatibility 1.5 +
+ <link linkend="test_compatibility_mode.collision.inner">Inner</link> + + Header + + + Heading1 + + + Header + with id + + + Heading1 + with id + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + With Title + + + + + + + + + + + + + + +
+ + Id and Title + + + + + + + + + + + + + + +
+
+
+ <link linkend="test_compatibility_mode.collision.x">Inner with id</link> +
+
+
+ Include compatibility 1.6 +
+ <link linkend="compatibility.collision.inner">Inner</link> + + Header + + + Heading1 + + + Header + with id + + + Heading1 + with id + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + With Title + + + + + + + + + + + + + + +
+ + Id and Title + + + + + + + + + + + + + + +
+
+
+ <link linkend="compatibility.collision.x">Inner with id</link> +
+
+
diff --git a/src/boost/tools/quickbook/test/include/compatibility-1_1.gold-html b/src/boost/tools/quickbook/test/include/compatibility-1_1.gold-html new file mode 100644 index 000000000..6a811781a --- /dev/null +++ b/src/boost/tools/quickbook/test/include/compatibility-1_1.gold-html @@ -0,0 +1,424 @@ + + + + +

+ Test Compatibility Mode +

+
+

+ Table of contents +

+ +
+
+

+ Outer +

+
+
+
+

+ Inner +

+
+

+ Header +

+

+ Heading1 +

+

+ Header with id +

+

+ Heading1 with id +

+
+ + + + + + + + + + + +
+
+
+
+
+ + + + + + + + + + + +
+
+
+
+
+ + + + + + + + + + + + +
With Title
+
+
+
+
+ + + + + + + + + + + + +
Id and Title
+
+
+
+
+
+
+

+ Inner with id +

+
+
+
+
+
+

+ Include compatibility 1.1 +

+
+
+
+

+ Inner +

+
+

+ Header +

+

+ Heading1 +

+

+ Header with id +

+

+ Heading1 with id +

+
+ + + + + + + + + + + +
+
+
+
+
+ + + + + + + + + + + +
+
+
+
+
+ + + + + + + + + + + + +
With Title
+
+
+
+
+ + + + + + + + + + + + +
Id and Title
+
+
+
+
+
+
+

+ Inner with id +

+
+
+
+
+
+

+ Include compatibility 1.5 +

+
+
+
+

+ Inner +

+
+

+ Header +

+

+ Heading1 +

+

+ Header with id +

+

+ Heading1 with id +

+
+ + + + + + + + + + + +
+
+
+
+
+ + + + + + + + + + + +
+
+
+
+
+ + + + + + + + + + + + +
With Title
+
+
+
+
+ + + + + + + + + + + + +
Id and Title
+
+
+
+
+
+
+

+ Inner with id +

+
+
+
+
+
+

+ Include compatibility 1.6 +

+
+
+
+

+ Inner +

+
+

+ Header +

+

+ Heading1 +

+

+ Header with id +

+

+ Heading1 with id +

+
+ + + + + + + + + + + +
+
+
+
+
+ + + + + + + + + + + +
+
+
+
+
+ + + + + + + + + + + + +
With Title
+
+
+
+
+ + + + + + + + + + + + +
Id and Title
+
+
+
+
+
+
+

+ Inner with id +

+
+
+
+
+ + diff --git a/src/boost/tools/quickbook/test/include/compatibility-1_1.quickbook b/src/boost/tools/quickbook/test/include/compatibility-1_1.quickbook new file mode 100644 index 000000000..afdd39dc4 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/compatibility-1_1.quickbook @@ -0,0 +1,18 @@ +[article Test Compatibility Mode +[quickbook 1.6] +[compatibility-mode 1.1] +[id compatibility] +] + +[section:collision Outer] +[include compatibility-inc.quickbook] +[endsect] +[section:collision Include compatibility 1.1] +[include compatibility-inc_1_1.quickbook] +[endsect] +[section:collision Include compatibility 1.5] +[include compatibility-inc_1_5.quickbook] +[endsect] +[section:collision Include compatibility 1.6] +[include compatibility-inc_1_6.quickbook] +[endsect] diff --git a/src/boost/tools/quickbook/test/include/compatibility-1_5.gold b/src/boost/tools/quickbook/test/include/compatibility-1_5.gold new file mode 100644 index 000000000..79245caf1 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/compatibility-1_5.gold @@ -0,0 +1,362 @@ + + +
+ Test Compatibility Mode +
+ <link linkend="compatibility.collision">Outer</link> +
+ <link linkend="test_compatibility_mode.collision.inner">Inner</link> + + Header + + + Heading1 + + + Header + with id + + + Heading1 + with id + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + With Title + + + + + + + + + + + + + + +
+ + Id and Title + + + + + + + + + + + + + + +
+
+
+ <link linkend="test_compatibility_mode.collision.x">Inner with id</link> +
+
+
+ <link linkend="compatibility.collision0">Include compatibility 1.1</link> +
+ Inner + + Header + + + Heading1 + + + Header + with id + + + Heading1 + with id + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + With Title + + + + + + + + + + + + + + +
+ + Id and Title + + + + + + + + + + + + + + +
+
+
+ Inner with id +
+
+
+ <link linkend="compatibility.collision1">Include compatibility 1.5</link> +
+ <link linkend="test_compatibility_mode.collision.inner0">Inner</link> + + Header + + + Heading1 + + + Header + with id + + + Heading1 + with id + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + With Title + + + + + + + + + + + + + + +
+ + Id and Title + + + + + + + + + + + + + + +
+
+
+ <link linkend="test_compatibility_mode.collision.x0">Inner with id</link> +
+
+
+ <link linkend="compatibility.collision2">Include compatibility 1.6</link> +
+ <link linkend="compatibility.collision.inner">Inner</link> + + Header + + + Heading1 + + + Header + with id + + + Heading1 + with id + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + With Title + + + + + + + + + + + + + + +
+ + Id and Title + + + + + + + + + + + + + + +
+
+
+ <link linkend="compatibility.collision.x">Inner with id</link> +
+
+
diff --git a/src/boost/tools/quickbook/test/include/compatibility-1_5.gold-html b/src/boost/tools/quickbook/test/include/compatibility-1_5.gold-html new file mode 100644 index 000000000..945b00f0b --- /dev/null +++ b/src/boost/tools/quickbook/test/include/compatibility-1_5.gold-html @@ -0,0 +1,424 @@ + + + + +

+ Test Compatibility Mode +

+
+

+ Table of contents +

+ +
+
+

+ Outer +

+
+
+
+

+ Inner +

+
+

+ Header +

+

+ Heading1 +

+

+ Header with id +

+

+ Heading1 with id +

+
+ + + + + + + + + + + +
+
+
+
+
+ + + + + + + + + + + +
+
+
+
+
+ + + + + + + + + + + + +
With Title
+
+
+
+
+ + + + + + + + + + + + +
Id and Title
+
+
+
+
+
+
+

+ Inner with id +

+
+
+
+
+
+

+ Include compatibility 1.1 +

+
+
+
+

+ Inner +

+
+

+ Header +

+

+ Heading1 +

+

+ Header with id +

+

+ Heading1 with id +

+
+ + + + + + + + + + + +
+
+
+
+
+ + + + + + + + + + + +
+
+
+
+
+ + + + + + + + + + + + +
With Title
+
+
+
+
+ + + + + + + + + + + + +
Id and Title
+
+
+
+
+
+
+

+ Inner with id +

+
+
+
+
+
+

+ Include compatibility 1.5 +

+
+
+
+

+ Inner +

+
+

+ Header +

+

+ Heading1 +

+

+ Header with id +

+

+ Heading1 with id +

+
+ + + + + + + + + + + +
+
+
+
+
+ + + + + + + + + + + +
+
+
+
+
+ + + + + + + + + + + + +
With Title
+
+
+
+
+ + + + + + + + + + + + +
Id and Title
+
+
+
+
+
+
+

+ Inner with id +

+
+
+
+
+
+

+ Include compatibility 1.6 +

+
+
+
+

+ Inner +

+
+

+ Header +

+

+ Heading1 +

+

+ Header with id +

+

+ Heading1 with id +

+
+ + + + + + + + + + + +
+
+
+
+
+ + + + + + + + + + + +
+
+
+
+
+ + + + + + + + + + + + +
With Title
+
+
+
+
+ + + + + + + + + + + + +
Id and Title
+
+
+
+
+
+
+

+ Inner with id +

+
+
+
+
+ + diff --git a/src/boost/tools/quickbook/test/include/compatibility-1_5.quickbook b/src/boost/tools/quickbook/test/include/compatibility-1_5.quickbook new file mode 100644 index 000000000..9593df720 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/compatibility-1_5.quickbook @@ -0,0 +1,18 @@ +[article Test Compatibility Mode +[compatibility-mode 1.5] +[id compatibility] +[quickbook 1.6] +] + +[section:collision Outer] +[include compatibility-inc.quickbook] +[endsect] +[section:collision Include compatibility 1.1] +[include compatibility-inc_1_1.quickbook] +[endsect] +[section:collision Include compatibility 1.5] +[include compatibility-inc_1_5.quickbook] +[endsect] +[section:collision Include compatibility 1.6] +[include compatibility-inc_1_6.quickbook] +[endsect] diff --git a/src/boost/tools/quickbook/test/include/compatibility-1_6.gold b/src/boost/tools/quickbook/test/include/compatibility-1_6.gold new file mode 100644 index 000000000..b3e51277f --- /dev/null +++ b/src/boost/tools/quickbook/test/include/compatibility-1_6.gold @@ -0,0 +1,362 @@ + + +
+ Test Compatibility Mode +
+ <link linkend="compatibility.collision">Outer</link> +
+ <link linkend="compatibility.collision.inner">Inner</link> + + Header + + + Heading1 + + + Header + with id + + + Heading1 + with id + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + With Title + + + + + + + + + + + + + + +
+ + Id and Title + + + + + + + + + + + + + + +
+
+
+ <link linkend="compatibility.collision.x">Inner with id</link> +
+
+
+ <link linkend="compatibility.collision0">Include compatibility 1.1</link> +
+ Inner + + Header + + + Heading1 + + + Header + with id + + + Heading1 + with id + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + With Title + + + + + + + + + + + + + + +
+ + Id and Title + + + + + + + + + + + + + + +
+
+
+ Inner with id +
+
+
+ <link linkend="compatibility.collision1">Include compatibility 1.5</link> +
+ <link linkend="compatibility.collision1.inner">Inner</link> + + Header + + + Heading1 + + + Header + with id + + + Heading1 + with id + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + With Title + + + + + + + + + + + + + + +
+ + Id and Title + + + + + + + + + + + + + + +
+
+
+ <link linkend="compatibility.collision1.x">Inner with id</link> +
+
+
+ <link linkend="compatibility.collision2">Include compatibility 1.6</link> +
+ <link linkend="compatibility.collision2.inner">Inner</link> + + Header + + + Heading1 + + + Header + with id + + + Heading1 + with id + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + With Title + + + + + + + + + + + + + + +
+ + Id and Title + + + + + + + + + + + + + + +
+
+
+ <link linkend="compatibility.collision2.x">Inner with id</link> +
+
+
diff --git a/src/boost/tools/quickbook/test/include/compatibility-1_6.gold-html b/src/boost/tools/quickbook/test/include/compatibility-1_6.gold-html new file mode 100644 index 000000000..eff72c000 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/compatibility-1_6.gold-html @@ -0,0 +1,424 @@ + + + + +

+ Test Compatibility Mode +

+
+

+ Table of contents +

+ +
+
+

+ Outer +

+
+
+
+

+ Inner +

+
+

+ Header +

+

+ Heading1 +

+

+ Header with id +

+

+ Heading1 with id +

+
+ + + + + + + + + + + +
+
+
+
+
+ + + + + + + + + + + +
+
+
+
+
+ + + + + + + + + + + + +
With Title
+
+
+
+
+ + + + + + + + + + + + +
Id and Title
+
+
+
+
+
+
+

+ Inner with id +

+
+
+
+
+
+

+ Include compatibility 1.1 +

+
+
+
+

+ Inner +

+
+

+ Header +

+

+ Heading1 +

+

+ Header with id +

+

+ Heading1 with id +

+
+ + + + + + + + + + + +
+
+
+
+
+ + + + + + + + + + + +
+
+
+
+
+ + + + + + + + + + + + +
With Title
+
+
+
+
+ + + + + + + + + + + + +
Id and Title
+
+
+
+
+
+
+

+ Inner with id +

+
+
+
+
+
+

+ Include compatibility 1.5 +

+
+
+
+

+ Inner +

+
+

+ Header +

+

+ Heading1 +

+

+ Header with id +

+

+ Heading1 with id +

+
+ + + + + + + + + + + +
+
+
+
+
+ + + + + + + + + + + +
+
+
+
+
+ + + + + + + + + + + + +
With Title
+
+
+
+
+ + + + + + + + + + + + +
Id and Title
+
+
+
+
+
+
+

+ Inner with id +

+
+
+
+
+
+

+ Include compatibility 1.6 +

+
+
+
+

+ Inner +

+
+

+ Header +

+

+ Heading1 +

+

+ Header with id +

+

+ Heading1 with id +

+
+ + + + + + + + + + + +
+
+
+
+
+ + + + + + + + + + + +
+
+
+
+
+ + + + + + + + + + + + +
With Title
+
+
+
+
+ + + + + + + + + + + + +
Id and Title
+
+
+
+
+
+
+

+ Inner with id +

+
+
+
+
+ + diff --git a/src/boost/tools/quickbook/test/include/compatibility-1_6.quickbook b/src/boost/tools/quickbook/test/include/compatibility-1_6.quickbook new file mode 100644 index 000000000..46880a8c3 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/compatibility-1_6.quickbook @@ -0,0 +1,17 @@ +[article Test Compatibility Mode +[id compatibility] +[quickbook 1.6] +] + +[section:collision Outer] +[include compatibility-inc.quickbook] +[endsect] +[section:collision Include compatibility 1.1] +[include compatibility-inc_1_1.quickbook] +[endsect] +[section:collision Include compatibility 1.5] +[include compatibility-inc_1_5.quickbook] +[endsect] +[section:collision Include compatibility 1.6] +[include compatibility-inc_1_6.quickbook] +[endsect] diff --git a/src/boost/tools/quickbook/test/include/compatibility-inc.quickbook b/src/boost/tools/quickbook/test/include/compatibility-inc.quickbook new file mode 100644 index 000000000..66fbb54ee --- /dev/null +++ b/src/boost/tools/quickbook/test/include/compatibility-inc.quickbook @@ -0,0 +1,31 @@ +[section Inner] + +[heading Header] + +[h1 Heading1] + +[heading:x1 Header with id] + +[h1:x2 Heading1 with id] + +[table +[[]][[]] +] + +[table:withid +[[]][[]] +] + +[table With Title +[[]][[]] +] + +[table:x Id and Title +[[]][[]] +] + + +[endsect] + +[section:x Inner with id] +[endsect] diff --git a/src/boost/tools/quickbook/test/include/compatibility-inc_1_1.quickbook b/src/boost/tools/quickbook/test/include/compatibility-inc_1_1.quickbook new file mode 100644 index 000000000..89b4d6554 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/compatibility-inc_1_1.quickbook @@ -0,0 +1,33 @@ +[compatibility-mode 1.1] + +[section Inner] + +[heading Header] + +[h1 Heading1] + +[heading:x1 Header with id] + +[h1:x2 Heading1 with id] + +[table +[[]][[]] +] + +[table:withid +[[]][[]] +] + +[table With Title +[[]][[]] +] + +[table:x Id and Title +[[]][[]] +] + + +[endsect] + +[section:x Inner with id] +[endsect] diff --git a/src/boost/tools/quickbook/test/include/compatibility-inc_1_5.quickbook b/src/boost/tools/quickbook/test/include/compatibility-inc_1_5.quickbook new file mode 100644 index 000000000..5551da5b3 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/compatibility-inc_1_5.quickbook @@ -0,0 +1,33 @@ +[compatibility-mode 1.5] + +[section Inner] + +[heading Header] + +[h1 Heading1] + +[heading:x1 Header with id] + +[h1:x2 Heading1 with id] + +[table +[[]][[]] +] + +[table:withid +[[]][[]] +] + +[table With Title +[[]][[]] +] + +[table:x Id and Title +[[]][[]] +] + + +[endsect] + +[section:x Inner with id] +[endsect] diff --git a/src/boost/tools/quickbook/test/include/compatibility-inc_1_6.quickbook b/src/boost/tools/quickbook/test/include/compatibility-inc_1_6.quickbook new file mode 100644 index 000000000..61f3c7bcd --- /dev/null +++ b/src/boost/tools/quickbook/test/include/compatibility-inc_1_6.quickbook @@ -0,0 +1,33 @@ +[compatibility-mode 1.6] + +[section Inner] + +[heading Header] + +[h1 Heading1] + +[heading:x1 Header with id] + +[h1:x2 Heading1 with id] + +[table +[[]][[]] +] + +[table:withid +[[]][[]] +] + +[table With Title +[[]][[]] +] + +[table:x Id and Title +[[]][[]] +] + + +[endsect] + +[section:x Inner with id] +[endsect] diff --git a/src/boost/tools/quickbook/test/include/doc-title1-1.5.gold b/src/boost/tools/quickbook/test/include/doc-title1-1.5.gold new file mode 100644 index 000000000..f2fb5321d --- /dev/null +++ b/src/boost/tools/quickbook/test/include/doc-title1-1.5.gold @@ -0,0 +1,27 @@ + + +
+ Doc Title 1 + + a1 + + + inc1 + + + a2 + + + inc2 + + + a3 + + + inc3 + + + a4 + +
diff --git a/src/boost/tools/quickbook/test/include/doc-title1-1.5.gold-html b/src/boost/tools/quickbook/test/include/doc-title1-1.5.gold-html new file mode 100644 index 000000000..69848ef9f --- /dev/null +++ b/src/boost/tools/quickbook/test/include/doc-title1-1.5.gold-html @@ -0,0 +1,30 @@ + + + + +

+ Doc Title 1 +

+

+ a1 +

+

+ inc1 +

+

+ a2 +

+

+ inc2 +

+

+ a3 +

+

+ inc3 +

+

+ a4 +

+ + diff --git a/src/boost/tools/quickbook/test/include/doc-title1-1.5.quickbook b/src/boost/tools/quickbook/test/include/doc-title1-1.5.quickbook new file mode 100644 index 000000000..ec7a56c86 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/doc-title1-1.5.quickbook @@ -0,0 +1,27 @@ +[article Doc Title 1 +[quickbook 1.5] +] + +[/ Doc Titles for included files is a little odd. You generally don't see + titles in them, the only way to detect them is through the generated ids. + So that's what this test is for. + + The second include has a title, because that isn't scoped by file it will + continue to be used to generated ids for the following included files - + but not in this document as the document id for the file is generated + for the whole file at the start. + ] + +[heading a1] + +[include doc-title1-inc1.quickbook] + +[heading a2] + +[include doc-title1-inc2.quickbook] + +[heading a3] + +[include doc-title1-inc3.quickbook] + +[heading a4] diff --git a/src/boost/tools/quickbook/test/include/doc-title1-inc1.quickbook b/src/boost/tools/quickbook/test/include/doc-title1-inc1.quickbook new file mode 100644 index 000000000..e17ad31d8 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/doc-title1-inc1.quickbook @@ -0,0 +1 @@ +[heading inc1] diff --git a/src/boost/tools/quickbook/test/include/doc-title1-inc2.quickbook b/src/boost/tools/quickbook/test/include/doc-title1-inc2.quickbook new file mode 100644 index 000000000..e8b18d37b --- /dev/null +++ b/src/boost/tools/quickbook/test/include/doc-title1-inc2.quickbook @@ -0,0 +1,4 @@ +[article Doc Title 1 Inc2 +] + +[heading inc2] diff --git a/src/boost/tools/quickbook/test/include/doc-title1-inc3.quickbook b/src/boost/tools/quickbook/test/include/doc-title1-inc3.quickbook new file mode 100644 index 000000000..501e3320b --- /dev/null +++ b/src/boost/tools/quickbook/test/include/doc-title1-inc3.quickbook @@ -0,0 +1 @@ +[heading inc3] diff --git a/src/boost/tools/quickbook/test/include/doc-title1a-1.5.gold b/src/boost/tools/quickbook/test/include/doc-title1a-1.5.gold new file mode 100644 index 000000000..0ee226e9e --- /dev/null +++ b/src/boost/tools/quickbook/test/include/doc-title1a-1.5.gold @@ -0,0 +1,26 @@ + + +
+ Doc Title 1a + + a1 + + + inc1 + + + a2 + + + inc2 + + + a3 + + + inc3 + + + a4 + +
diff --git a/src/boost/tools/quickbook/test/include/doc-title1a-1.5.gold-html b/src/boost/tools/quickbook/test/include/doc-title1a-1.5.gold-html new file mode 100644 index 000000000..f29d8cdb7 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/doc-title1a-1.5.gold-html @@ -0,0 +1,30 @@ + + + + +

+ Doc Title 1a +

+

+ a1 +

+

+ inc1 +

+

+ a2 +

+

+ inc2 +

+

+ a3 +

+

+ inc3 +

+

+ a4 +

+ + diff --git a/src/boost/tools/quickbook/test/include/doc-title1a-1.5.quickbook b/src/boost/tools/quickbook/test/include/doc-title1a-1.5.quickbook new file mode 100644 index 000000000..dc12d5cb7 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/doc-title1a-1.5.quickbook @@ -0,0 +1,20 @@ +[article Doc Title 1a +[quickbook 1.5] +[id doc-title] +] + +[/ A repeat of doc-title1, but with an explicit id. ] + +[heading a1] + +[include doc-title1-inc1.quickbook] + +[heading a2] + +[include doc-title1-inc2.quickbook] + +[heading a3] + +[include doc-title1-inc3.quickbook] + +[heading a4] diff --git a/src/boost/tools/quickbook/test/include/filename-1_7.gold b/src/boost/tools/quickbook/test/include/filename-1_7.gold new file mode 100644 index 000000000..935b42642 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/filename-1_7.gold @@ -0,0 +1,46 @@ + + +
+ Filename Test + + filename-1_7.quickbook + + + Test + 1 + + + sub/filename_include1.quickbook + + + sub/../filename_include2.quickbook + + + Test + 2 + + + filename_include2.quickbook + + + Test + 3 + + + sub/filename_include1.quickbook + + + sub/../filename_include2.quickbook + + + Test + 4 + + + sub/filename_include1.quickbook + + + sub/../filename_include2.quickbook + +
diff --git a/src/boost/tools/quickbook/test/include/filename-1_7.gold-html b/src/boost/tools/quickbook/test/include/filename-1_7.gold-html new file mode 100644 index 000000000..50bd60546 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/filename-1_7.gold-html @@ -0,0 +1,45 @@ + + + + +

+ Filename Test +

+

+ filename-1_7.quickbook +

+

+ Test 1 +

+

+ sub/filename_include1.quickbook +

+

+ sub/../filename_include2.quickbook +

+

+ Test 2 +

+

+ filename_include2.quickbook +

+

+ Test 3 +

+

+ sub/filename_include1.quickbook +

+

+ sub/../filename_include2.quickbook +

+

+ Test 4 +

+

+ sub/filename_include1.quickbook +

+

+ sub/../filename_include2.quickbook +

+ + diff --git a/src/boost/tools/quickbook/test/include/filename-1_7.quickbook b/src/boost/tools/quickbook/test/include/filename-1_7.quickbook new file mode 100644 index 000000000..9d462af89 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/filename-1_7.quickbook @@ -0,0 +1,21 @@ +[article Filename Test +[quickbook 1.7] +] + +__FILENAME__ + +[heading Test 1] + +[include sub/*.quickbook] + +[heading Test 2] + +[include filename_include?.quickbook] + +[heading Test 3] + +[include su\[b\]/filename\\_include1.quickbook] + +[heading Test 4] + +[include su\\b/*.quickbook] diff --git a/src/boost/tools/quickbook/test/include/filename-path.gold b/src/boost/tools/quickbook/test/include/filename-path.gold new file mode 100644 index 000000000..f77ab84a8 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/filename-path.gold @@ -0,0 +1,18 @@ + + +
+ Filename test with include path + + filename-path.quickbook + + + filename_include1.quickbook + + + ../filename_include2.quickbook + + + filename_include2.quickbook + +
diff --git a/src/boost/tools/quickbook/test/include/filename-path.gold-html b/src/boost/tools/quickbook/test/include/filename-path.gold-html new file mode 100644 index 000000000..d7a6e2e00 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/filename-path.gold-html @@ -0,0 +1,21 @@ + + + + +

+ Filename test with include path +

+

+ filename-path.quickbook +

+

+ filename_include1.quickbook +

+

+ ../filename_include2.quickbook +

+

+ filename_include2.quickbook +

+ + diff --git a/src/boost/tools/quickbook/test/include/filename-path.quickbook b/src/boost/tools/quickbook/test/include/filename-path.quickbook new file mode 100644 index 000000000..6121df5c5 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/filename-path.quickbook @@ -0,0 +1,9 @@ +[article Filename test with include path +[quickbook 1.5] +] + +__FILENAME__ + +[include filename_include1.quickbook] + +[include filename_include2.quickbook] \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/include/filename.gold b/src/boost/tools/quickbook/test/include/filename.gold new file mode 100644 index 000000000..3e895eb4e --- /dev/null +++ b/src/boost/tools/quickbook/test/include/filename.gold @@ -0,0 +1,18 @@ + + +
+ Filename Test + + filename.quickbook + + + sub/filename_include1.quickbook + + + sub/../filename_include2.quickbook + + + filename_include2.quickbook + +
diff --git a/src/boost/tools/quickbook/test/include/filename.gold-html b/src/boost/tools/quickbook/test/include/filename.gold-html new file mode 100644 index 000000000..e722f9307 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/filename.gold-html @@ -0,0 +1,21 @@ + + + + +

+ Filename Test +

+

+ filename.quickbook +

+

+ sub/filename_include1.quickbook +

+

+ sub/../filename_include2.quickbook +

+

+ filename_include2.quickbook +

+ + diff --git a/src/boost/tools/quickbook/test/include/filename.quickbook b/src/boost/tools/quickbook/test/include/filename.quickbook new file mode 100644 index 000000000..37ff37b5c --- /dev/null +++ b/src/boost/tools/quickbook/test/include/filename.quickbook @@ -0,0 +1,9 @@ +[article Filename Test +[quickbook 1.5] +] + +__FILENAME__ + +[include sub/filename_include1.quickbook] + +[include filename_include2.quickbook] diff --git a/src/boost/tools/quickbook/test/include/filename_include2.quickbook b/src/boost/tools/quickbook/test/include/filename_include2.quickbook new file mode 100644 index 000000000..f9d479a93 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/filename_include2.quickbook @@ -0,0 +1 @@ +__FILENAME__ \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/include/filename_path-1_7.gold b/src/boost/tools/quickbook/test/include/filename_path-1_7.gold new file mode 100644 index 000000000..6f52dafc1 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/filename_path-1_7.gold @@ -0,0 +1,18 @@ + + +
+ Filename test with include path + + filename_path-1_7.quickbook + + + filename_include1.quickbook + + + ../filename_include2.quickbook + + + filename_include2.quickbook + +
diff --git a/src/boost/tools/quickbook/test/include/filename_path-1_7.gold-html b/src/boost/tools/quickbook/test/include/filename_path-1_7.gold-html new file mode 100644 index 000000000..190f5d240 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/filename_path-1_7.gold-html @@ -0,0 +1,21 @@ + + + + +

+ Filename test with include path +

+

+ filename_path-1_7.quickbook +

+

+ filename_include1.quickbook +

+

+ ../filename_include2.quickbook +

+

+ filename_include2.quickbook +

+ + diff --git a/src/boost/tools/quickbook/test/include/filename_path-1_7.quickbook b/src/boost/tools/quickbook/test/include/filename_path-1_7.quickbook new file mode 100644 index 000000000..741d76ad5 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/filename_path-1_7.quickbook @@ -0,0 +1,7 @@ +[article Filename test with include path +[quickbook 1.7] +] + +__FILENAME__ + +[include filename_include?.quickbook] diff --git a/src/boost/tools/quickbook/test/include/glob-1_7.gold b/src/boost/tools/quickbook/test/include/glob-1_7.gold new file mode 100644 index 000000000..ba31ae961 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/glob-1_7.gold @@ -0,0 +1,41 @@ + + +
+ Glob Test +
+ <link linkend="glob_test.t1_0">Test 1.0</link> +
+
+ <link linkend="glob_test.t1_1">Test 1.1</link> + + A + +
+
+ <link linkend="glob_test.t1_2">Test 1.2</link> + + B + +
+
+ <link linkend="glob_test.t1_3">Test 1.3</link> + + B + +
+
+ <link linkend="glob_test.t2_1">Test 2.1</link> + + A + + + B + +
+
+ <link linkend="glob_test.t2_2">Test 2.2</link> + + B + +
+
diff --git a/src/boost/tools/quickbook/test/include/glob-1_7.gold-html b/src/boost/tools/quickbook/test/include/glob-1_7.gold-html new file mode 100644 index 000000000..9b53c2be4 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/glob-1_7.gold-html @@ -0,0 +1,94 @@ + + + + +

+ Glob Test +

+
+

+ Table of contents +

+ +
+
+

+ Test 1.0 +

+
+
+
+
+

+ Test 1.1 +

+
+

+ A +

+
+
+
+

+ Test 1.2 +

+
+

+ B +

+
+
+
+

+ Test 1.3 +

+
+

+ B +

+
+
+
+

+ Test 2.1 +

+
+

+ A +

+

+ B +

+
+
+
+

+ Test 2.2 +

+
+

+ B +

+
+
+ + diff --git a/src/boost/tools/quickbook/test/include/glob-1_7.quickbook b/src/boost/tools/quickbook/test/include/glob-1_7.quickbook new file mode 100644 index 000000000..826c12be8 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/glob-1_7.quickbook @@ -0,0 +1,39 @@ +[article Glob Test +[quickbook 1.7] +] + +[section:t1_0 Test 1.0] + +[include glob0/*] + +[endsect] [/t1_0] + +[section:t1_1 Test 1.1] + +[include glob1/*] + +[endsect] [/t1_1] + +[section:t1_2 Test 1.2] + +[include glob1/*/*] + +[endsect] [/t1_2] + +[section:t1_3 Test 1.3] + +[include glob1/*/b.qbk] + +[endsect] [/t1_3] + +[section:t2_1 Test 2.1] + +[include glob2/*] + +[endsect] [/t2_1] + +[section:t2_2 Test 2.2] + +[include glob2/*/*] + +[endsect] [/t2_2] diff --git a/src/boost/tools/quickbook/test/include/glob1/a.qbk b/src/boost/tools/quickbook/test/include/glob1/a.qbk new file mode 100644 index 000000000..f70f10e4d --- /dev/null +++ b/src/boost/tools/quickbook/test/include/glob1/a.qbk @@ -0,0 +1 @@ +A diff --git a/src/boost/tools/quickbook/test/include/glob1/glob1-1/b.qbk b/src/boost/tools/quickbook/test/include/glob1/glob1-1/b.qbk new file mode 100644 index 000000000..223b7836f --- /dev/null +++ b/src/boost/tools/quickbook/test/include/glob1/glob1-1/b.qbk @@ -0,0 +1 @@ +B diff --git a/src/boost/tools/quickbook/test/include/glob2/a.qbk b/src/boost/tools/quickbook/test/include/glob2/a.qbk new file mode 100644 index 000000000..160580801 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/glob2/a.qbk @@ -0,0 +1,3 @@ +A + +[include */*.qbk] diff --git a/src/boost/tools/quickbook/test/include/glob2/glob2-1/b.qbk b/src/boost/tools/quickbook/test/include/glob2/glob2-1/b.qbk new file mode 100644 index 000000000..223b7836f --- /dev/null +++ b/src/boost/tools/quickbook/test/include/glob2/glob2-1/b.qbk @@ -0,0 +1 @@ +B diff --git a/src/boost/tools/quickbook/test/include/import-basic-1.6.gold b/src/boost/tools/quickbook/test/include/import-basic-1.6.gold new file mode 100644 index 000000000..706589aef --- /dev/null +++ b/src/boost/tools/quickbook/test/include/import-basic-1.6.gold @@ -0,0 +1,11 @@ + + +
+ Import Quickbook Test + + Macro 1: import-basic-inc1.quickbook Template 1: import-basic-1.6.quickbook + + + Macro 2: import-basic-inc2.quickbook Template 2: import-basic-1.6.quickbook + +
diff --git a/src/boost/tools/quickbook/test/include/import-basic-1.6.gold-html b/src/boost/tools/quickbook/test/include/import-basic-1.6.gold-html new file mode 100644 index 000000000..bbc87b7d7 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/import-basic-1.6.gold-html @@ -0,0 +1,15 @@ + + + + +

+ Import Quickbook Test +

+

+ Macro 1: import-basic-inc1.quickbook Template 1: import-basic-1.6.quickbook +

+

+ Macro 2: import-basic-inc2.quickbook Template 2: import-basic-1.6.quickbook +

+ + diff --git a/src/boost/tools/quickbook/test/include/import-basic-1.6.quickbook b/src/boost/tools/quickbook/test/include/import-basic-1.6.quickbook new file mode 100644 index 000000000..934db6a9e --- /dev/null +++ b/src/boost/tools/quickbook/test/include/import-basic-1.6.quickbook @@ -0,0 +1,12 @@ +[article Import Quickbook Test +[quickbook 1.6] +[id import-1.6] +] + +[import import-basic-inc1.quickbook] + +macro1 [template1] + +[import import-basic-inc2.quickbook] + +macro2 [template2] diff --git a/src/boost/tools/quickbook/test/include/import-basic-inc1.quickbook b/src/boost/tools/quickbook/test/include/import-basic-inc1.quickbook new file mode 100644 index 000000000..469922845 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/import-basic-inc1.quickbook @@ -0,0 +1,4 @@ +This shouldn't show: __FILENAME__ + +[def macro1 Macro 1: __FILENAME__] +[template template1 Template 1: __FILENAME__] \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/include/import-basic-inc2.quickbook b/src/boost/tools/quickbook/test/include/import-basic-inc2.quickbook new file mode 100644 index 000000000..0cbaaa11d --- /dev/null +++ b/src/boost/tools/quickbook/test/include/import-basic-inc2.quickbook @@ -0,0 +1,10 @@ +[article Macro import. +[quickbook 1.6] +] + +[/ TOOD: Should I have a special docinfo type for this kind of thing? ] + +This shouldn't show: __FILENAME__ + +[def macro2 Macro 2: __FILENAME__] +[template template2 Template 2: __FILENAME__] \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/include/in_section-1_5.gold b/src/boost/tools/quickbook/test/include/in_section-1_5.gold new file mode 100644 index 000000000..b55eb73f3 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/in_section-1_5.gold @@ -0,0 +1,88 @@ + + +
+ Include in section 1.5 +
+ <link linkend="include_in_section_1_5.container">Container</link> + + Test1 + +
+ + Test2 + + + Simple + include + +
+ + Test1 + +
+ + Test2 + + + Simple + include + +
+
+ + Test1 + +
+ + Test2 + + + Simple + include + +
+ + Test1 + +
+ + Test2 + + + Simple + include + +
+
+ <link linkend="include_in_section_1_5.container2">Container2</link> + + Test1 + +
+ + Test2 + + + Simple + include + +
+ + Test1 + +
+ + Test2 + + + Simple + include + +
+
+
diff --git a/src/boost/tools/quickbook/test/include/in_section-1_5.gold-html b/src/boost/tools/quickbook/test/include/in_section-1_5.gold-html new file mode 100644 index 000000000..5bad6b570 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/in_section-1_5.gold-html @@ -0,0 +1,120 @@ + + + + +

+ Include in section 1.5 +

+
+

+ Table of contents +

+ +
+

+ Test1 +

+

+ Test1 +

+
+

+ Container +

+
+

+ Test1 +

+

+ Test1 +

+
+
+
+

+ Test2 +

+

+ Simple include +

+
+
+
+
+

+ Test2 +

+

+ Simple include +

+
+
+
+
+
+

+ Test2 +

+

+ Simple include +

+
+
+
+
+

+ Test2 +

+

+ Simple include +

+
+
+
+

+ Container2 +

+
+

+ Test1 +

+

+ Test1 +

+
+
+
+

+ Test2 +

+

+ Simple include +

+
+
+
+
+

+ Test2 +

+

+ Simple include +

+
+
+
+ + diff --git a/src/boost/tools/quickbook/test/include/in_section-1_5.quickbook b/src/boost/tools/quickbook/test/include/in_section-1_5.quickbook new file mode 100644 index 000000000..28183096a --- /dev/null +++ b/src/boost/tools/quickbook/test/include/in_section-1_5.quickbook @@ -0,0 +1,16 @@ +[article Include in section 1.5 +[quickbook 1.5] +] + +[section:container Container] +[include in_section-inc1.quickbook] +[include in_section-inc2.quickbook] +[endsect] + +[include in_section-inc1.quickbook] +[include in_section-inc2.quickbook] + +[section:container2 Container2] +[include in_section-inc1.quickbook] +[include in_section-inc2.quickbook] +[endsect] diff --git a/src/boost/tools/quickbook/test/include/in_section-1_6.gold b/src/boost/tools/quickbook/test/include/in_section-1_6.gold new file mode 100644 index 000000000..52c18a706 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/in_section-1_6.gold @@ -0,0 +1,108 @@ + + +
+ Include in section 1.6 +
+ <link linkend="include_in_section_1_6.container">Container</link> +
+ Include in section include 1 + + Test1 + +
+ + Test2 + + + Simple + include + +
+
+
+ Include in section include 2 + + Test1 + +
+ + Test2 + + + Simple + include + +
+
+
+
+ Include in section include 1 + + Test1 + +
+ + Test2 + + + Simple + include + +
+
+
+ Include in section include 2 + + Test1 + +
+ + Test2 + + + Simple + include + +
+
+
+ <link linkend="include_in_section_1_6.container2">Container2</link> +
+ Include in section include 1 + + Test1 + +
+ + Test2 + + + Simple include + +
+
+
+ Include in section include 2 + + Test1 + +
+ + Test2 + + + Simple + include + +
+
+
+
diff --git a/src/boost/tools/quickbook/test/include/in_section-1_6.gold-html b/src/boost/tools/quickbook/test/include/in_section-1_6.gold-html new file mode 100644 index 000000000..cc2c36ac0 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/in_section-1_6.gold-html @@ -0,0 +1,238 @@ + + + + +

+ Include in section 1.6 +

+ +
+

+ Container +

+
+
+
+

+ Include in section include 1 +

+
+

+ Table of contents +

+ +
+

+ Test1 +

+
+
+

+ Test2 +

+

+ Simple include +

+
+
+
+
+

+ Include in section include 2 +

+
+

+ Table of contents +

+ +
+

+ Test1 +

+
+
+

+ Test2 +

+

+ Simple include +

+
+
+
+
+
+

+ Include in section include 1 +

+
+

+ Table of contents +

+ +
+

+ Test1 +

+
+
+

+ Test2 +

+

+ Simple include +

+
+
+
+
+

+ Include in section include 2 +

+
+

+ Table of contents +

+ +
+

+ Test1 +

+
+
+

+ Test2 +

+

+ Simple include +

+
+
+
+
+

+ Container2 +

+
+
+
+

+ Include in section include 1 +

+
+

+ Table of contents +

+ +
+

+ Test1 +

+
+
+

+ Test2 +

+

+ Simple include +

+
+
+
+
+

+ Include in section include 2 +

+
+

+ Table of contents +

+ +
+

+ Test1 +

+
+
+

+ Test2 +

+

+ Simple include +

+
+
+
+
+ + diff --git a/src/boost/tools/quickbook/test/include/in_section-1_6.quickbook b/src/boost/tools/quickbook/test/include/in_section-1_6.quickbook new file mode 100644 index 000000000..686f97ec4 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/in_section-1_6.quickbook @@ -0,0 +1,16 @@ +[article Include in section 1.6 +[quickbook 1.6] +] + +[section:container Container] +[include in_section-inc1.quickbook] +[include in_section-inc2.quickbook] +[endsect] + +[include in_section-inc1.quickbook] +[include in_section-inc2.quickbook] + +[section:container2 Container2] +[include in_section-inc1.quickbook] +[include in_section-inc2.quickbook] +[endsect] diff --git a/src/boost/tools/quickbook/test/include/in_section-inc1.quickbook b/src/boost/tools/quickbook/test/include/in_section-inc1.quickbook new file mode 100644 index 000000000..f74bf5dbd --- /dev/null +++ b/src/boost/tools/quickbook/test/include/in_section-inc1.quickbook @@ -0,0 +1,13 @@ +[article Include in section include 1 +[quickbook 1.6] +] + +[h1 Test1] + +[section:inner] + +[h1 Test2] + +[include include-id-inc1.quickbook] + +[endsect] diff --git a/src/boost/tools/quickbook/test/include/in_section-inc2.quickbook b/src/boost/tools/quickbook/test/include/in_section-inc2.quickbook new file mode 100644 index 000000000..0a30aaa74 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/in_section-inc2.quickbook @@ -0,0 +1,14 @@ +[article Include in section include 2 +[quickbook 1.6] +[id section_include] +] + +[h1 Test1] + +[section:inner] + +[h1 Test2] + +[include include-id-inc1.quickbook] + +[endsect] diff --git a/src/boost/tools/quickbook/test/include/include-id-1.5.gold b/src/boost/tools/quickbook/test/include/include-id-1.5.gold new file mode 100644 index 000000000..4944d08d4 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/include-id-1.5.gold @@ -0,0 +1,26 @@ + + +
+ Include Id Test + + Simple include + + + Simple include + + + Title, no id + + + Title, no id + + + Title + with id + + + Title + with id + +
diff --git a/src/boost/tools/quickbook/test/include/include-id-1.5.gold-html b/src/boost/tools/quickbook/test/include/include-id-1.5.gold-html new file mode 100644 index 000000000..4c7b6b230 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/include-id-1.5.gold-html @@ -0,0 +1,27 @@ + + + + +

+ Include Id Test +

+

+ Simple include +

+

+ Simple include +

+

+ Title, no id +

+

+ Title, no id +

+

+ Title with id +

+

+ Title with id +

+ + diff --git a/src/boost/tools/quickbook/test/include/include-id-1.5.quickbook b/src/boost/tools/quickbook/test/include/include-id-1.5.quickbook new file mode 100644 index 000000000..dd4b50ad3 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/include-id-1.5.quickbook @@ -0,0 +1,10 @@ +[article Include Id Test +[quickbook 1.5] +] + +[include:a include-id-inc1.quickbook] +[include:b include-id-inc1.quickbook] +[include:c include-id-inc2.quickbook] +[include:d include-id-inc2.quickbook] +[include:e include-id-inc3.quickbook] +[include:f include-id-inc3.quickbook] diff --git a/src/boost/tools/quickbook/test/include/include-id-1.6.gold b/src/boost/tools/quickbook/test/include/include-id-1.6.gold new file mode 100644 index 000000000..1f4cb881f --- /dev/null +++ b/src/boost/tools/quickbook/test/include/include-id-1.6.gold @@ -0,0 +1,36 @@ + + +
+ Include Id Test + + Simple include + + + Simple include + +
+ Include without id + + Title, no id + +
+
+ Include without id + + Title, no id + +
+
+ Include with id + + Title with id + +
+
+ Include with id + + Title with id + +
+
diff --git a/src/boost/tools/quickbook/test/include/include-id-1.6.gold-html b/src/boost/tools/quickbook/test/include/include-id-1.6.gold-html new file mode 100644 index 000000000..5912dadb0 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/include-id-1.6.gold-html @@ -0,0 +1,66 @@ + + + + +

+ Include Id Test +

+
+

+ Table of contents +

+ +
+

+ Simple include +

+

+ Simple include +

+
+

+ Include without id +

+

+ Title, no id +

+
+
+

+ Include without id +

+

+ Title, no id +

+
+
+

+ Include with id +

+

+ Title with id +

+
+
+

+ Include with id +

+

+ Title with id +

+
+ + diff --git a/src/boost/tools/quickbook/test/include/include-id-1.6.quickbook b/src/boost/tools/quickbook/test/include/include-id-1.6.quickbook new file mode 100644 index 000000000..d7d5318cd --- /dev/null +++ b/src/boost/tools/quickbook/test/include/include-id-1.6.quickbook @@ -0,0 +1,10 @@ +[article Include Id Test +[quickbook 1.6] +] + +[include:a include-id-inc1.quickbook] +[include:b include-id-inc1.quickbook] +[include:c include-id-inc2.quickbook] +[include:d include-id-inc2.quickbook] +[include:e include-id-inc3.quickbook] +[include:f include-id-inc3.quickbook] diff --git a/src/boost/tools/quickbook/test/include/include-id-inc1.quickbook b/src/boost/tools/quickbook/test/include/include-id-inc1.quickbook new file mode 100644 index 000000000..63a761d56 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/include-id-inc1.quickbook @@ -0,0 +1 @@ +[heading Simple include] diff --git a/src/boost/tools/quickbook/test/include/include-id-inc2.quickbook b/src/boost/tools/quickbook/test/include/include-id-inc2.quickbook new file mode 100644 index 000000000..a7dbef41b --- /dev/null +++ b/src/boost/tools/quickbook/test/include/include-id-inc2.quickbook @@ -0,0 +1,5 @@ +[article Include without id +[quickbook 1.5] +] + +[heading Title, no id] diff --git a/src/boost/tools/quickbook/test/include/include-id-inc3.quickbook b/src/boost/tools/quickbook/test/include/include-id-inc3.quickbook new file mode 100644 index 000000000..2bd239825 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/include-id-inc3.quickbook @@ -0,0 +1,6 @@ +[article Include with id +[quickbook 1.5] +[id with-id] +] + +[heading Title with id] diff --git a/src/boost/tools/quickbook/test/include/include_id_unbalanced-1_6.gold b/src/boost/tools/quickbook/test/include/include_id_unbalanced-1_6.gold new file mode 100644 index 000000000..ede21ccbb --- /dev/null +++ b/src/boost/tools/quickbook/test/include/include_id_unbalanced-1_6.gold @@ -0,0 +1,59 @@ + + +
+ Test include ids with unbalanced sections +
+ <link linkend="include1.inc1">Include 1</link> + + Heading + 1 + + + Heading 1 + +
+ <link linkend="include1a.inc1a">Include 1a</link> + + Heading + 2 + + + Heading + 2 + + + X1 + +
+ + X2 + +
+
+ <link linkend="unbalanced.sect1">Section 1</link> + + X1 + +
+ <link linkend="unbalanced.sect1.sect2">Section 2</link> + + X2 + + + Heading 1 + +
+ + Heading 2 + + + Heading 1 + +
+ + Heading 2 + + + Heading 3 + +
diff --git a/src/boost/tools/quickbook/test/include/include_id_unbalanced-1_6.gold-html b/src/boost/tools/quickbook/test/include/include_id_unbalanced-1_6.gold-html new file mode 100644 index 000000000..85415e882 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/include_id_unbalanced-1_6.gold-html @@ -0,0 +1,89 @@ + + + + +

+ Test include ids with unbalanced sections +

+
+

+ Table of contents +

+ +
+

+ Heading 2 +

+

+ Heading 3 +

+
+

+ Include 1 +

+
+

+ Heading 1 +

+

+ Heading 1 +

+

+ X2 +

+
+
+

+ Include 1a +

+
+

+ Heading 2 +

+

+ Heading 2 +

+

+ X1 +

+
+
+
+
+

+ Section 1 +

+
+

+ X1 +

+

+ Heading 2 +

+

+ Heading 1 +

+
+
+

+ Section 2 +

+
+

+ X2 +

+

+ Heading 1 +

+
+
+
+ + diff --git a/src/boost/tools/quickbook/test/include/include_id_unbalanced-1_6.quickbook b/src/boost/tools/quickbook/test/include/include_id_unbalanced-1_6.quickbook new file mode 100644 index 000000000..b1568d4f9 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/include_id_unbalanced-1_6.quickbook @@ -0,0 +1,19 @@ +[quickbook 1.6] +[article Test include ids with unbalanced sections + [id unbalanced] +] + +[/ Sections start in included files ] + +[include:include1 include_id_unbalanced-inc1.quickbook] +[heading:x1 X1] +[endsect] +[heading:x2 X2] +[endsect] + +[/ Sections end in included files ] +[section:sect1 Section 1] +[heading:x1 X1] +[section:sect2 Section 2] +[heading:x2 X2] +[include:include2 include_id_unbalanced-inc2.quickbook] diff --git a/src/boost/tools/quickbook/test/include/include_id_unbalanced-inc1.quickbook b/src/boost/tools/quickbook/test/include/include_id_unbalanced-inc1.quickbook new file mode 100644 index 000000000..d3214811a --- /dev/null +++ b/src/boost/tools/quickbook/test/include/include_id_unbalanced-inc1.quickbook @@ -0,0 +1,4 @@ +[section:inc1 Include 1] +[heading:inc1_1 Heading 1] +[include:include1a include_id_unbalanced-inc1a.quickbook] +[heading:inc1_2 Heading 2] diff --git a/src/boost/tools/quickbook/test/include/include_id_unbalanced-inc1a.quickbook b/src/boost/tools/quickbook/test/include/include_id_unbalanced-inc1a.quickbook new file mode 100644 index 000000000..1bc46b4f5 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/include_id_unbalanced-inc1a.quickbook @@ -0,0 +1,3 @@ +[heading:inc1a_1 Heading 1] +[section:inc1a Include 1a] +[heading:inc1a_2 Heading 2] diff --git a/src/boost/tools/quickbook/test/include/include_id_unbalanced-inc2.quickbook b/src/boost/tools/quickbook/test/include/include_id_unbalanced-inc2.quickbook new file mode 100644 index 000000000..37c313cae --- /dev/null +++ b/src/boost/tools/quickbook/test/include/include_id_unbalanced-inc2.quickbook @@ -0,0 +1,5 @@ +[heading:inc2_1 Heading 1] +[endsect] +[heading:inc2_2 Heading 2] +[include:include2a include_id_unbalanced-inc2a.quickbook] +[heading:inc2_3 Heading 3] diff --git a/src/boost/tools/quickbook/test/include/include_id_unbalanced-inc2a.quickbook b/src/boost/tools/quickbook/test/include/include_id_unbalanced-inc2a.quickbook new file mode 100644 index 000000000..780fb4057 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/include_id_unbalanced-inc2a.quickbook @@ -0,0 +1,3 @@ +[heading:inc2a_1 Heading 1] +[endsect] +[heading:inc2a_2 Heading 2] diff --git a/src/boost/tools/quickbook/test/include/macros-1.5.gold b/src/boost/tools/quickbook/test/include/macros-1.5.gold new file mode 100644 index 000000000..d5e8a5193 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/macros-1.5.gold @@ -0,0 +1,39 @@ + + +
+ Macros Test 1.5 + + Foo:macros-inc1.quickbook + + + Defined conditional phrase. + + + + + __foo__ + + + + + Defined template:macros-1.5.quickbook + + + + + __defined_macro__ + + + + + [not_defined_template] + + + + + _not_defined_macro__ + + + +
diff --git a/src/boost/tools/quickbook/test/include/macros-1.5.gold-html b/src/boost/tools/quickbook/test/include/macros-1.5.gold-html new file mode 100644 index 000000000..e1a985932 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/macros-1.5.gold-html @@ -0,0 +1,42 @@ + + + + +

+ Macros Test 1.5 +

+

+ Foo:macros-inc1.quickbook +

+

+ Defined conditional phrase. +

+
    +
  • +
    + __foo__ +
    +
  • +
  • +
    + Defined template:macros-1.5.quickbook +
    +
  • +
  • +
    + __defined_macro__ +
    +
  • +
  • +
    + [not_defined_template] +
    +
  • +
  • +
    + _not_defined_macro__ +
    +
  • +
+ + diff --git a/src/boost/tools/quickbook/test/include/macros-1.5.quickbook b/src/boost/tools/quickbook/test/include/macros-1.5.quickbook new file mode 100644 index 000000000..a63a1f0ca --- /dev/null +++ b/src/boost/tools/quickbook/test/include/macros-1.5.quickbook @@ -0,0 +1,13 @@ +[article Macros Test 1.5 +[quickbook 1.5] +] + +[def __defined__] + +[include macros-inc1.quickbook] + +* __foo__ +* [defined_template] +* __defined_macro__ +* [not_defined_template] +* [__not_defined_macro__] diff --git a/src/boost/tools/quickbook/test/include/macros-1.6.gold b/src/boost/tools/quickbook/test/include/macros-1.6.gold new file mode 100644 index 000000000..ec93c05c1 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/macros-1.6.gold @@ -0,0 +1,66 @@ + + +
+ Macros Test 1.6 + + Foo:macros-inc1.quickbook + + + Defined conditional phrase. + + + + + __foo__ + + + + + [defined_template] + + + + + __defined_macro__ + + + + + [not_defined_template] + + + + + _not_defined_macro__ + + + + + + + Foo:macros-inc1.quickbook + + + + + Defined template:macros-1.6.quickbook + + + + + Defined macro:macros-inc1.quickbook + + + + + [not_defined_template] + + + + + _not_defined_macro__ + + + +
diff --git a/src/boost/tools/quickbook/test/include/macros-1.6.gold-html b/src/boost/tools/quickbook/test/include/macros-1.6.gold-html new file mode 100644 index 000000000..bb7a9c6c7 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/macros-1.6.gold-html @@ -0,0 +1,69 @@ + + + + +

+ Macros Test 1.6 +

+

+ Foo:macros-inc1.quickbook +

+

+ Defined conditional phrase. +

+
    +
  • +
    + __foo__ +
    +
  • +
  • +
    + [defined_template] +
    +
  • +
  • +
    + __defined_macro__ +
    +
  • +
  • +
    + [not_defined_template] +
    +
  • +
  • +
    + _not_defined_macro__ +
    +
  • +
+
    +
  • +
    + Foo:macros-inc1.quickbook +
    +
  • +
  • +
    + Defined template:macros-1.6.quickbook +
    +
  • +
  • +
    + Defined macro:macros-inc1.quickbook +
    +
  • +
  • +
    + [not_defined_template] +
    +
  • +
  • +
    + _not_defined_macro__ +
    +
  • +
+ + diff --git a/src/boost/tools/quickbook/test/include/macros-1.6.quickbook b/src/boost/tools/quickbook/test/include/macros-1.6.quickbook new file mode 100644 index 000000000..5355c090e --- /dev/null +++ b/src/boost/tools/quickbook/test/include/macros-1.6.quickbook @@ -0,0 +1,21 @@ +[article Macros Test 1.6 +[quickbook 1.6] +] + +[def __defined__] + +[include macros-inc1.quickbook] + +* __foo__ +* [defined_template] +* __defined_macro__ +* [not_defined_template] +* [__not_defined_macro__] + +[import macros-inc1.quickbook] + +* __foo__ +* [defined_template] +* __defined_macro__ +* [not_defined_template] +* [__not_defined_macro__] diff --git a/src/boost/tools/quickbook/test/include/macros-inc1.quickbook b/src/boost/tools/quickbook/test/include/macros-inc1.quickbook new file mode 100644 index 000000000..f8b6f25bc --- /dev/null +++ b/src/boost/tools/quickbook/test/include/macros-inc1.quickbook @@ -0,0 +1,15 @@ +[def __foo__ Foo:__FILENAME__] + +__foo__ + +[?__defined__ +Defined conditional phrase. +[template defined_template Defined template:__FILENAME__] +[def __defined_macro__ Defined macro:__FILENAME__] +] + +[?__not_defined__ +Not defined conditional phrase. +[template not_defined_template Not defined template:__FILENAME__] +[def __not_defined_macro__ Not defined macro:__FILENAME__] +] \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/include/nested_compatibility-1_5.gold b/src/boost/tools/quickbook/test/include/nested_compatibility-1_5.gold new file mode 100644 index 000000000..92c948a14 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/nested_compatibility-1_5.gold @@ -0,0 +1,48 @@ + + +
+ Nested Compatibility Test +
+ <link linkend="nested_compatibility_test.duplicate_name">Duplicate Name</link> +
+ <link linkend="nested_compatibility_test.duplicate_name.nested">Nested + Section 1.5</link> + + Nested + Heading 1.5 + +
+
+ <link linkend="nested_compatibility_test.duplicate_name.nested0">Nested + Section 1.6</link> + + Nested + Heading 1.6 + +
+
+
+ <link linkend="nested_compatibility_test.duplicate_name0">Duplicate Name</link> +
+ <link linkend="nested_compatibility_test.duplicate_name.nested1">Nested + Section 1.5</link> + + Nested + Heading 1.5 + +
+
+ <link linkend="nested_compatibility_test.duplicate_name.nested2">Nested + Section 1.6</link> + + Nested + Heading 1.6 + +
+
+
diff --git a/src/boost/tools/quickbook/test/include/nested_compatibility-1_5.gold-html b/src/boost/tools/quickbook/test/include/nested_compatibility-1_5.gold-html new file mode 100644 index 000000000..c7fe5f3e4 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/nested_compatibility-1_5.gold-html @@ -0,0 +1,76 @@ + + + + +

+ Nested Compatibility Test +

+
+

+ Table of contents +

+ +
+
+

+ Duplicate Name +

+
+
+
+

+ Nested Section 1.5 +

+
+

+ Nested Heading 1.5 +

+
+
+
+

+ Nested Section 1.6 +

+
+

+ Nested Heading 1.6 +

+
+
+
+
+

+ Duplicate Name +

+
+
+
+

+ Nested Section 1.5 +

+
+

+ Nested Heading 1.5 +

+
+
+
+

+ Nested Section 1.6 +

+
+

+ Nested Heading 1.6 +

+
+
+
+ + diff --git a/src/boost/tools/quickbook/test/include/nested_compatibility-1_5.quickbook b/src/boost/tools/quickbook/test/include/nested_compatibility-1_5.quickbook new file mode 100644 index 000000000..f9d78b1e4 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/nested_compatibility-1_5.quickbook @@ -0,0 +1,12 @@ +[quickbook 1.5] +[article Nested Compatibility Test] + +[section Duplicate Name] +[include nested_compatibility-inc-1_5.quickbook] +[include nested_compatibility-inc-1_6.quickbook] +[endsect] + +[section Duplicate Name] +[include nested_compatibility-inc-1_5.quickbook] +[include nested_compatibility-inc-1_6.quickbook] +[endsect] diff --git a/src/boost/tools/quickbook/test/include/nested_compatibility-1_6.gold b/src/boost/tools/quickbook/test/include/nested_compatibility-1_6.gold new file mode 100644 index 000000000..af09a9e87 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/nested_compatibility-1_6.gold @@ -0,0 +1,48 @@ + + +
+ Nested Compatibility Test +
+ <link linkend="nested_compatibility_test.duplicate_name">Duplicate Name</link> +
+ <link linkend="nested_compatibility_test.duplicate_name.nested">Nested + Section 1.5</link> + + Nested + Heading 1.5 + +
+
+ <link linkend="nested_compatibility_test.duplicate_name.nested0">Nested + Section 1.6</link> + + Nested + Heading 1.6 + +
+
+
+ <link linkend="nested_compatibility_test.duplicate_name0">Duplicate Name</link> +
+ <link linkend="nested_compatibility_test.duplicate_name0.nested">Nested + Section 1.5</link> + + Nested + Heading 1.5 + +
+
+ <link linkend="nested_compatibility_test.duplicate_name0.nested0">Nested + Section 1.6</link> + + Nested + Heading 1.6 + +
+
+
diff --git a/src/boost/tools/quickbook/test/include/nested_compatibility-1_6.gold-html b/src/boost/tools/quickbook/test/include/nested_compatibility-1_6.gold-html new file mode 100644 index 000000000..028e53038 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/nested_compatibility-1_6.gold-html @@ -0,0 +1,76 @@ + + + + +

+ Nested Compatibility Test +

+
+

+ Table of contents +

+ +
+
+

+ Duplicate Name +

+
+
+
+

+ Nested Section 1.5 +

+
+

+ Nested Heading 1.5 +

+
+
+
+

+ Nested Section 1.6 +

+
+

+ Nested Heading 1.6 +

+
+
+
+
+

+ Duplicate Name +

+
+
+
+

+ Nested Section 1.5 +

+
+

+ Nested Heading 1.5 +

+
+
+
+

+ Nested Section 1.6 +

+
+

+ Nested Heading 1.6 +

+
+
+
+ + diff --git a/src/boost/tools/quickbook/test/include/nested_compatibility-1_6.quickbook b/src/boost/tools/quickbook/test/include/nested_compatibility-1_6.quickbook new file mode 100644 index 000000000..8beeb8a06 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/nested_compatibility-1_6.quickbook @@ -0,0 +1,12 @@ +[quickbook 1.6] +[article Nested Compatibility Test] + +[section Duplicate Name] +[include nested_compatibility-inc-1_5.quickbook] +[include nested_compatibility-inc-1_6.quickbook] +[endsect] + +[section Duplicate Name] +[include nested_compatibility-inc-1_5.quickbook] +[include nested_compatibility-inc-1_6.quickbook] +[endsect] diff --git a/src/boost/tools/quickbook/test/include/nested_compatibility-inc-1_5.quickbook b/src/boost/tools/quickbook/test/include/nested_compatibility-inc-1_5.quickbook new file mode 100644 index 000000000..3c79855a4 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/nested_compatibility-inc-1_5.quickbook @@ -0,0 +1,5 @@ +[compatibility-mode 1.5] + +[section:nested Nested Section 1.5] +[heading Nested Heading 1.5] +[endsect] diff --git a/src/boost/tools/quickbook/test/include/nested_compatibility-inc-1_6.quickbook b/src/boost/tools/quickbook/test/include/nested_compatibility-inc-1_6.quickbook new file mode 100644 index 000000000..d0790840c --- /dev/null +++ b/src/boost/tools/quickbook/test/include/nested_compatibility-inc-1_6.quickbook @@ -0,0 +1,5 @@ +[compatibility-mode 1.6] + +[section:nested Nested Section 1.6] +[heading Nested Heading 1.6] +[endsect] diff --git a/src/boost/tools/quickbook/test/include/section-fail1.quickbook b/src/boost/tools/quickbook/test/include/section-fail1.quickbook new file mode 100644 index 000000000..ea75783e0 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/section-fail1.quickbook @@ -0,0 +1,6 @@ +[article Include Section Test +[quickbook 1.5] +] + +[include section-inc2.quickbook] +[include section-inc1.quickbook] diff --git a/src/boost/tools/quickbook/test/include/section-fail2.quickbook b/src/boost/tools/quickbook/test/include/section-fail2.quickbook new file mode 100644 index 000000000..26a481104 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/section-fail2.quickbook @@ -0,0 +1,5 @@ +[article Include Section Test +[quickbook 1.5] +] + +[include section-inc2.quickbook] diff --git a/src/boost/tools/quickbook/test/include/section-inc1.quickbook b/src/boost/tools/quickbook/test/include/section-inc1.quickbook new file mode 100644 index 000000000..9c3fdd824 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/section-inc1.quickbook @@ -0,0 +1 @@ +[section Mulitple file section] diff --git a/src/boost/tools/quickbook/test/include/section-inc2.quickbook b/src/boost/tools/quickbook/test/include/section-inc2.quickbook new file mode 100644 index 000000000..8acc6a502 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/section-inc2.quickbook @@ -0,0 +1 @@ +[endsect] diff --git a/src/boost/tools/quickbook/test/include/section-unclosed.gold b/src/boost/tools/quickbook/test/include/section-unclosed.gold new file mode 100644 index 000000000..bea5cea67 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/section-unclosed.gold @@ -0,0 +1,10 @@ + + +
+ Include Section Test +
+ <link linkend="include_section_test.mulitple_file_section">Mulitple file + section</link> +
+
diff --git a/src/boost/tools/quickbook/test/include/section-unclosed.gold-html b/src/boost/tools/quickbook/test/include/section-unclosed.gold-html new file mode 100644 index 000000000..efbdd708a --- /dev/null +++ b/src/boost/tools/quickbook/test/include/section-unclosed.gold-html @@ -0,0 +1,26 @@ + + + + +

+ Include Section Test +

+
+

+ Table of contents +

+ +
+
+

+ Mulitple file section +

+
+
+
+ + diff --git a/src/boost/tools/quickbook/test/include/section-unclosed.quickbook b/src/boost/tools/quickbook/test/include/section-unclosed.quickbook new file mode 100644 index 000000000..290cd1633 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/section-unclosed.quickbook @@ -0,0 +1,5 @@ +[article Include Section Test +[quickbook 1.5] +] + +[include section-inc1.quickbook] diff --git a/src/boost/tools/quickbook/test/include/section.gold b/src/boost/tools/quickbook/test/include/section.gold new file mode 100644 index 000000000..bea5cea67 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/section.gold @@ -0,0 +1,10 @@ + + +
+ Include Section Test +
+ <link linkend="include_section_test.mulitple_file_section">Mulitple file + section</link> +
+
diff --git a/src/boost/tools/quickbook/test/include/section.gold-html b/src/boost/tools/quickbook/test/include/section.gold-html new file mode 100644 index 000000000..efbdd708a --- /dev/null +++ b/src/boost/tools/quickbook/test/include/section.gold-html @@ -0,0 +1,26 @@ + + + + +

+ Include Section Test +

+
+

+ Table of contents +

+ +
+
+

+ Mulitple file section +

+
+
+
+ + diff --git a/src/boost/tools/quickbook/test/include/section.quickbook b/src/boost/tools/quickbook/test/include/section.quickbook new file mode 100644 index 000000000..a570b3524 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/section.quickbook @@ -0,0 +1,6 @@ +[article Include Section Test +[quickbook 1.5] +] + +[include section-inc1.quickbook] +[include section-inc2.quickbook] diff --git a/src/boost/tools/quickbook/test/include/source_mode-1_5.gold b/src/boost/tools/quickbook/test/include/source_mode-1_5.gold new file mode 100644 index 000000000..2ed6b7fee --- /dev/null +++ b/src/boost/tools/quickbook/test/include/source_mode-1_5.gold @@ -0,0 +1,9 @@ + + +
+ Souce Mode Include +void main() {} +void main() {} + +
diff --git a/src/boost/tools/quickbook/test/include/source_mode-1_5.gold-html b/src/boost/tools/quickbook/test/include/source_mode-1_5.gold-html new file mode 100644 index 000000000..8781356e2 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/source_mode-1_5.gold-html @@ -0,0 +1,12 @@ + + + + +

+ Souce Mode Include +

+
void main() {}
+
void main() {}
+
+ + diff --git a/src/boost/tools/quickbook/test/include/source_mode-1_5.quickbook b/src/boost/tools/quickbook/test/include/source_mode-1_5.quickbook new file mode 100644 index 000000000..d5df05bd4 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/source_mode-1_5.quickbook @@ -0,0 +1,4 @@ +[article Souce Mode Include [source-mode teletype][quickbook 1.5]] + +[include source_mode-inc1.quickbook] +[include source_mode-inc2.quickbook] diff --git a/src/boost/tools/quickbook/test/include/source_mode-1_6.gold b/src/boost/tools/quickbook/test/include/source_mode-1_6.gold new file mode 100644 index 000000000..aa01d2057 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/source_mode-1_6.gold @@ -0,0 +1,13 @@ + + +
+ Souce Mode Include +
+ Source include with no source-mode +void main() {} +
+void main() {} + +
diff --git a/src/boost/tools/quickbook/test/include/source_mode-1_6.gold-html b/src/boost/tools/quickbook/test/include/source_mode-1_6.gold-html new file mode 100644 index 000000000..c41dbbe70 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/source_mode-1_6.gold-html @@ -0,0 +1,27 @@ + + + + +

+ Souce Mode Include +

+
+

+ Table of contents +

+ +
+
void main() {}
+
+
+

+ Source include with no source-mode +

+
void main() {}
+
+ + diff --git a/src/boost/tools/quickbook/test/include/source_mode-1_6.quickbook b/src/boost/tools/quickbook/test/include/source_mode-1_6.quickbook new file mode 100644 index 000000000..fc4243f3b --- /dev/null +++ b/src/boost/tools/quickbook/test/include/source_mode-1_6.quickbook @@ -0,0 +1,5 @@ +[source-mode teletype][quickbook 1.6] +[article Souce Mode Include] + +[include source_mode-inc1.quickbook] +[include source_mode-inc2.quickbook] diff --git a/src/boost/tools/quickbook/test/include/source_mode-inc1.quickbook b/src/boost/tools/quickbook/test/include/source_mode-inc1.quickbook new file mode 100644 index 000000000..3cefbe6bc --- /dev/null +++ b/src/boost/tools/quickbook/test/include/source_mode-inc1.quickbook @@ -0,0 +1,3 @@ +[article Source include with no source-mode] + + void main() {} \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/include/source_mode-inc2.quickbook b/src/boost/tools/quickbook/test/include/source_mode-inc2.quickbook new file mode 100644 index 000000000..81dba8a17 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/source_mode-inc2.quickbook @@ -0,0 +1,3 @@ +[/ Source include with no source-mode, and no docinfo.] + + void main() {} diff --git a/src/boost/tools/quickbook/test/include/sub/filename_include1.quickbook b/src/boost/tools/quickbook/test/include/sub/filename_include1.quickbook new file mode 100644 index 000000000..6c57614d5 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/sub/filename_include1.quickbook @@ -0,0 +1,3 @@ +__FILENAME__ + +[include ../filename_include2.quickbook] \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/include/template_include-1_7.gold b/src/boost/tools/quickbook/test/include/template_include-1_7.gold new file mode 100644 index 000000000..163ff30ee --- /dev/null +++ b/src/boost/tools/quickbook/test/include/template_include-1_7.gold @@ -0,0 +1,12 @@ + + +
+ Template include test + + Simple + include + +void main() {} + +
diff --git a/src/boost/tools/quickbook/test/include/template_include-1_7.gold-html b/src/boost/tools/quickbook/test/include/template_include-1_7.gold-html new file mode 100644 index 000000000..fdd7ff8c5 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/template_include-1_7.gold-html @@ -0,0 +1,14 @@ + + + + +

+ Template include test +

+

+ Simple include +

+
void main() {}
+
+ + diff --git a/src/boost/tools/quickbook/test/include/template_include-1_7.quickbook b/src/boost/tools/quickbook/test/include/template_include-1_7.quickbook new file mode 100644 index 000000000..19f58fab0 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/template_include-1_7.quickbook @@ -0,0 +1,8 @@ +[article Template include test +[quickbook 1.7] +] + +[template include_foo[name] [include [name].quickbook]] + +[include_foo include-id-inc1] +[include_foo source_mode-inc2] diff --git a/src/boost/tools/quickbook/test/include/templates-1.5.gold b/src/boost/tools/quickbook/test/include/templates-1.5.gold new file mode 100644 index 000000000..7d7e5dd60 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/templates-1.5.gold @@ -0,0 +1,12 @@ + + +
+ Templates 1.5 + + Inline:templates-inc1.quickbook + + + Foo:templates-1.5.quickbook + +
diff --git a/src/boost/tools/quickbook/test/include/templates-1.5.gold-html b/src/boost/tools/quickbook/test/include/templates-1.5.gold-html new file mode 100644 index 000000000..c773637b6 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/templates-1.5.gold-html @@ -0,0 +1,15 @@ + + + + +

+ Templates 1.5 +

+

+ Inline:templates-inc1.quickbook +

+

+ Foo:templates-1.5.quickbook +

+ + diff --git a/src/boost/tools/quickbook/test/include/templates-1.5.quickbook b/src/boost/tools/quickbook/test/include/templates-1.5.quickbook new file mode 100644 index 000000000..5104ae6fa --- /dev/null +++ b/src/boost/tools/quickbook/test/include/templates-1.5.quickbook @@ -0,0 +1,7 @@ +[article Templates 1.5 +[quickbook 1.5] +] + +[include templates-inc1.quickbook] + +[foo] \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/include/templates-1.6.gold b/src/boost/tools/quickbook/test/include/templates-1.6.gold new file mode 100644 index 000000000..4e37e5e64 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/templates-1.6.gold @@ -0,0 +1,15 @@ + + +
+ Templates 1.6 + + Inline:templates-inc1.quickbook + + + [foo] + + + Foo:templates-1.6.quickbook + +
diff --git a/src/boost/tools/quickbook/test/include/templates-1.6.gold-html b/src/boost/tools/quickbook/test/include/templates-1.6.gold-html new file mode 100644 index 000000000..362390d93 --- /dev/null +++ b/src/boost/tools/quickbook/test/include/templates-1.6.gold-html @@ -0,0 +1,18 @@ + + + + +

+ Templates 1.6 +

+

+ Inline:templates-inc1.quickbook +

+

+ [foo] +

+

+ Foo:templates-1.6.quickbook +

+ + diff --git a/src/boost/tools/quickbook/test/include/templates-1.6.quickbook b/src/boost/tools/quickbook/test/include/templates-1.6.quickbook new file mode 100644 index 000000000..77d821e4c --- /dev/null +++ b/src/boost/tools/quickbook/test/include/templates-1.6.quickbook @@ -0,0 +1,11 @@ +[article Templates 1.6 +[quickbook 1.6] +] + +[include templates-inc1.quickbook] + +[foo] + +[import templates-inc1.quickbook] + +[foo] diff --git a/src/boost/tools/quickbook/test/include/templates-inc1.quickbook b/src/boost/tools/quickbook/test/include/templates-inc1.quickbook new file mode 100644 index 000000000..70574627c --- /dev/null +++ b/src/boost/tools/quickbook/test/include/templates-inc1.quickbook @@ -0,0 +1,4 @@ +Inline:__FILENAME__ + +[template foo Foo:__FILENAME__] + diff --git a/src/boost/tools/quickbook/test/include2-1_6.gold b/src/boost/tools/quickbook/test/include2-1_6.gold new file mode 100644 index 000000000..f46759b78 --- /dev/null +++ b/src/boost/tools/quickbook/test/include2-1_6.gold @@ -0,0 +1,22 @@ + + +
+ Include Test +
+ Include Test Sub Document +
+
+ <link linkend="include-test.test">Test</link> + + Just testing. + +
+
+ <link linkend="foo.test">Test</link> + + Just testing. + +
+
diff --git a/src/boost/tools/quickbook/test/include2-1_6.gold-html b/src/boost/tools/quickbook/test/include2-1_6.gold-html new file mode 100644 index 000000000..6d96cfa32 --- /dev/null +++ b/src/boost/tools/quickbook/test/include2-1_6.gold-html @@ -0,0 +1,50 @@ + + + + +

+ Include Test +

+
+

+ Table of contents +

+ +
+
+

+ Include Test Sub Document +

+
+
+

+ Test +

+
+

+ Just testing. +

+
+
+
+

+ Test +

+
+

+ Just testing. +

+
+
+ + diff --git a/src/boost/tools/quickbook/test/include2-1_6.quickbook b/src/boost/tools/quickbook/test/include2-1_6.quickbook new file mode 100644 index 000000000..66b4897ef --- /dev/null +++ b/src/boost/tools/quickbook/test/include2-1_6.quickbook @@ -0,0 +1,8 @@ +[article Include Test + [quickbook 1.6] + [id include-test] +] + +[include include-inc-1_5.quickbook] +[include include-inc.quickbook] +[include:foo include-inc.quickbook] diff --git a/src/boost/tools/quickbook/test/include_invalid_path1-1_7-fail.quickbook b/src/boost/tools/quickbook/test/include_invalid_path1-1_7-fail.quickbook new file mode 100644 index 000000000..fa7e8e337 --- /dev/null +++ b/src/boost/tools/quickbook/test/include_invalid_path1-1_7-fail.quickbook @@ -0,0 +1,5 @@ +[article Include invalid path fail +[quickbook 1.7] +] + +[include .\\\/empty-inc.quickbook] diff --git a/src/boost/tools/quickbook/test/include_invalid_path2-1_7-fail.quickbook b/src/boost/tools/quickbook/test/include_invalid_path2-1_7-fail.quickbook new file mode 100644 index 000000000..4f2672840 --- /dev/null +++ b/src/boost/tools/quickbook/test/include_invalid_path2-1_7-fail.quickbook @@ -0,0 +1,5 @@ +[article Include invalid path fail +[quickbook 1.7] +] + +[include .\\\\empty-inc.quickbook] diff --git a/src/boost/tools/quickbook/test/include_invalid_path3-1_7-fail.quickbook b/src/boost/tools/quickbook/test/include_invalid_path3-1_7-fail.quickbook new file mode 100644 index 000000000..5c99c1143 --- /dev/null +++ b/src/boost/tools/quickbook/test/include_invalid_path3-1_7-fail.quickbook @@ -0,0 +1,5 @@ +[article Include invalid path fail +[quickbook 1.7] +] + +[include empty\[-/\]inc.quickbook] diff --git a/src/boost/tools/quickbook/test/include_unicode_glob-1_7-fail.quickbook b/src/boost/tools/quickbook/test/include_unicode_glob-1_7-fail.quickbook new file mode 100644 index 000000000..79a9df667 --- /dev/null +++ b/src/boost/tools/quickbook/test/include_unicode_glob-1_7-fail.quickbook @@ -0,0 +1,5 @@ +[article Unicode glob +[quickbook 1.7] +] + +[include £*.quickbook] diff --git a/src/boost/tools/quickbook/test/include_win_path-1_6-fail.quickbook b/src/boost/tools/quickbook/test/include_win_path-1_6-fail.quickbook new file mode 100644 index 000000000..aff5fd2c3 --- /dev/null +++ b/src/boost/tools/quickbook/test/include_win_path-1_6-fail.quickbook @@ -0,0 +1,5 @@ +[article Include fail for windows path. +[quickbook 1.6] +] + +[include .\empty-inc.quickbook] diff --git a/src/boost/tools/quickbook/test/link-1_1.gold b/src/boost/tools/quickbook/test/link-1_1.gold new file mode 100644 index 000000000..955fdec76 --- /dev/null +++ b/src/boost/tools/quickbook/test/link-1_1.gold @@ -0,0 +1,45 @@ + + + diff --git a/src/boost/tools/quickbook/test/link-1_1.gold-html b/src/boost/tools/quickbook/test/link-1_1.gold-html new file mode 100644 index 000000000..92ac75b4e --- /dev/null +++ b/src/boost/tools/quickbook/test/link-1_1.gold-html @@ -0,0 +1,68 @@ + + + + +

+ Link tests +

+
+

+ Table of contents +

+ +
+ + + + + diff --git a/src/boost/tools/quickbook/test/link-1_1.quickbook b/src/boost/tools/quickbook/test/link-1_1.quickbook new file mode 100644 index 000000000..a22ce70f0 --- /dev/null +++ b/src/boost/tools/quickbook/test/link-1_1.quickbook @@ -0,0 +1,48 @@ +[article Link tests +] + +[section Different types of links] + +[@http://www.boost.org/] +[@ http://www.boost.org/ Boost] +[link link-id] +[link link-id Link Text] +[#link-id] +[funcref foo] +[funcref foo link text] +[classref foo] +[classref foo link text] +[memberref foo] +[memberref foo link text] +[enumref foo] +[enumref foo link text] +[macroref foo] +[macroref foo link text] +[headerref foo] +[headerref foo link text] +[conceptref foo] +[conceptref foo link text] +[globalref foo] +[globalref foo link text] + +[link link[/ comment]description] + +[endsect] + +[section Side-by-side links] + +[link x] and [link y] are two distinct links, which should be separated by +whitespace when they appear together as in [link x] [link y]. Also in [link x] +[link y], and in +[link x] +[link y] +as well. + +[endsect] + +[section Escaping links] + +* [@http://svn.boost.org/trac/boost/query?status=closed&milestone=Boost+1.34.1 + Boost Trac] + +[endsect] diff --git a/src/boost/tools/quickbook/test/link-1_6.gold b/src/boost/tools/quickbook/test/link-1_6.gold new file mode 100644 index 000000000..587b67be3 --- /dev/null +++ b/src/boost/tools/quickbook/test/link-1_6.gold @@ -0,0 +1,49 @@ + + + diff --git a/src/boost/tools/quickbook/test/link-1_6.gold-html b/src/boost/tools/quickbook/test/link-1_6.gold-html new file mode 100644 index 000000000..f8f9b1a2b --- /dev/null +++ b/src/boost/tools/quickbook/test/link-1_6.gold-html @@ -0,0 +1,71 @@ + + + + +

+ Link tests +

+
+

+ Table of contents +

+ +
+ + + + + diff --git a/src/boost/tools/quickbook/test/link-1_6.quickbook b/src/boost/tools/quickbook/test/link-1_6.quickbook new file mode 100644 index 000000000..c874a79c6 --- /dev/null +++ b/src/boost/tools/quickbook/test/link-1_6.quickbook @@ -0,0 +1,52 @@ +[article Link tests +[quickbook 1.6] +] + +[section Different types of links] + +[@http://www.boost.org/] +[@ http://www.boost.org/ Boost] +[link link-id] +[link link-id Link Text] +[#link-id] +[funcref foo] +[funcref foo link text] +[classref foo] +[classref foo link text] +[memberref foo] +[memberref foo link text] +[enumref foo] +[enumref foo link text] +[macroref foo] +[macroref foo link text] +[headerref foo] +[headerref foo link text] +[conceptref foo] +[conceptref foo link text] +[globalref foo] +[globalref foo link text] + +[link link[/ comment]description] + +[link link\[Hello\] description] + + +[endsect] + +[section Side-by-side links] + +[link x] and [link y] are two distinct links, which should be separated by +whitespace when they appear together as in [link x] [link y]. Also in [link x] +[link y], and in +[link x] +[link y] +as well. + +[endsect] + +[section Escaping links] + +* [@http://svn.boost.org/trac/boost/query?status=closed&milestone=Boost+1.34.1 + Boost Trac] + +[endsect] diff --git a/src/boost/tools/quickbook/test/link-1_7-fail.quickbook b/src/boost/tools/quickbook/test/link-1_7-fail.quickbook new file mode 100644 index 000000000..9f2db1fb1 --- /dev/null +++ b/src/boost/tools/quickbook/test/link-1_7-fail.quickbook @@ -0,0 +1,5 @@ +[article Link fail test +[quickbook 1.7] +] + +[link something [table]] diff --git a/src/boost/tools/quickbook/test/link-1_7-fail2.quickbook b/src/boost/tools/quickbook/test/link-1_7-fail2.quickbook new file mode 100644 index 000000000..30ac49570 --- /dev/null +++ b/src/boost/tools/quickbook/test/link-1_7-fail2.quickbook @@ -0,0 +1,6 @@ +[article Link fail test +[quickbook 1.7] +] + +[/ Escapes aren't allowed in links.] +[link '''escaped stuff'''] diff --git a/src/boost/tools/quickbook/test/link-1_7.gold b/src/boost/tools/quickbook/test/link-1_7.gold new file mode 100644 index 000000000..c2e5f0398 --- /dev/null +++ b/src/boost/tools/quickbook/test/link-1_7.gold @@ -0,0 +1,56 @@ + + + diff --git a/src/boost/tools/quickbook/test/link-1_7.gold-html b/src/boost/tools/quickbook/test/link-1_7.gold-html new file mode 100644 index 000000000..797e6a769 --- /dev/null +++ b/src/boost/tools/quickbook/test/link-1_7.gold-html @@ -0,0 +1,84 @@ + + + + +

+ Link tests +

+
+

+ Table of contents +

+ +
+ + + + + + diff --git a/src/boost/tools/quickbook/test/link-1_7.quickbook b/src/boost/tools/quickbook/test/link-1_7.quickbook new file mode 100644 index 000000000..acfba3188 --- /dev/null +++ b/src/boost/tools/quickbook/test/link-1_7.quickbook @@ -0,0 +1,61 @@ +[article Link tests +[quickbook 1.7] +] + +[section Different types of links] + +[@http://www.boost.org/] +[@ http://www.boost.org/ Boost] +[link link-id] +[link link-id Link Text] +[#link-id] +[funcref foo] +[funcref foo link text] +[classref foo] +[classref foo link text] +[memberref foo] +[memberref foo link text] +[enumref foo] +[enumref foo link text] +[macroref foo] +[macroref foo link text] +[headerref foo] +[headerref foo link text] +[conceptref foo] +[conceptref foo link text] +[globalref foo] +[globalref foo link text] + +[link link[/ comment]description] + +[endsect] + +[section Side-by-side links] + +[link x] and [link y] are two distinct links, which should be separated by +whitespace when they appear together as in [link x] [link y]. Also in [link x] +[link y], and in +[link x] +[link y] +as well. + +[endsect] + +[section Templates is links....] + +[template thing[]x] +[link blah.[thing]2 Templated link?] + +[template link_in_template[x y] [link something-[x]-[y]]] +[link_in_template one two] +[link_in_template one..two] +[link_in_template one .. two ] + +[endsect] + +[section Escaping links] + +* [@http://svn.boost.org/trac/boost/query?status=closed&milestone=Boost+1.34.1 + Boost Trac] + +[endsect] diff --git a/src/boost/tools/quickbook/test/list_test-1_5.gold b/src/boost/tools/quickbook/test/list_test-1_5.gold new file mode 100644 index 000000000..4d25aa7cc --- /dev/null +++ b/src/boost/tools/quickbook/test/list_test-1_5.gold @@ -0,0 +1,402 @@ + + +
+ List Test + + Simple list: + + + + + A + + + + + B + + + + + Simple list: + + + + + A + + + + + B + + + + + Two level list: + + + + + A + + + + A + + + + + B + + + + + + + + B + + + + A + + + + + B + + + + + + + + Two level list: + + + + + A + + + + A + + + + + B + + + + + + + + B + + + + A + + + + + B + + + + + + + + Three level list: + + + + + A + + + + A + + + + + B + + + + C + + + + + D + + + + + + + + E + + + + + F + + + + G + + + + + H + + + + + + + + + + + Three level list: + + + + + A + + + + A + + + + + B + + + + C + + + + + D + + + + + + + + + + + G + + + + + H + + + + + Inconsistent Indentation: + + + + + A1 + + + + B1 + + + + + B2 + + + + C1 + + + + + C2 + + + + + + + + B3 + + + + + B4 + + + + + B5 + + + + C3 + + + + + + + + B6 + + + + + + + + A2 + + + + + A3 + + + + + Markup in list: + + + + + Bold + + + + + Bold + + + + + Quoted + + + + + + + Footnote + + + + + + + Don't end list with comment 1: + + + + + A1 + + + + + A2 + + + + + A3 + + + + + A4 + + + + + Don't end list with comment 2: + + + + + A1 + + + + B1 + + + + + B2 + + + + + B3 + + + + + + +
+ <link linkend="list_test.list_immediately_following_markup">List immediately + following markup</link> + + + + One + + + + + Two + + + + + Three + + + +
+
+ <link linkend="list_test.list_immediately_following_markup_2">List immediately + following markup 2</link> + + + + One [section Nested section] + + + + + Two [endsect] + + + +
+
diff --git a/src/boost/tools/quickbook/test/list_test-1_5.gold-html b/src/boost/tools/quickbook/test/list_test-1_5.gold-html new file mode 100644 index 000000000..6c599de4f --- /dev/null +++ b/src/boost/tools/quickbook/test/list_test-1_5.gold-html @@ -0,0 +1,432 @@ + + + + +

+ List Test +

+ +

+ Simple list: +

+
    +
  • +
    + A +
    +
  • +
  • +
    + B +
    +
  • +
+

+ Simple list: +

+
    +
  1. +
    + A +
    +
  2. +
  3. +
    + B +
    +
  4. +
+

+ Two level list: +

+
    +
  • +
    + A +
      +
    • +
      + A +
      +
    • +
    • +
      + B +
      +
    • +
    +
    +
  • +
  • +
    + B +
      +
    • +
      + A +
      +
    • +
    • +
      + B +
      +
    • +
    +
    +
  • +
+

+ Two level list: +

+
    +
  1. +
    + A +
      +
    • +
      + A +
      +
    • +
    • +
      + B +
      +
    • +
    +
    +
  2. +
  3. +
    + B +
      +
    • +
      + A +
      +
    • +
    • +
      + B +
      +
    • +
    +
    +
  4. +
+

+ Three level list: +

+
    +
  1. +
    + A +
      +
    • +
      + A +
      +
    • +
    • +
      + B +
        +
      • +
        + C +
        +
      • +
      • +
        + D +
        +
      • +
      +
      +
    • +
    • +
      + E +
      +
    • +
    • +
      + F +
        +
      • +
        + G +
        +
      • +
      • +
        + H +
        +
      • +
      +
      +
    • +
    +
    +
  2. +
+

+ Three level list: +

+
    +
  1. +
    + A +
      +
    • +
      + A +
      +
    • +
    • +
      + B +
        +
      1. +
        + C +
        +
      2. +
      3. +
        + D +
        +
      4. +
      +
      +
    • +
    +
    +
  2. +
  3. +
    + G +
    +
  4. +
  5. +
    + H +
    +
  6. +
+

+ Inconsistent Indentation: +

+
    +
  • +
    + A1 +
      +
    • +
      + B1 +
      +
    • +
    • +
      + B2 +
        +
      • +
        + C1 +
        +
      • +
      • +
        + C2 +
        +
      • +
      +
      +
    • +
    • +
      + B3 +
      +
    • +
    • +
      + B4 +
      +
    • +
    • +
      + B5 +
        +
      • +
        + C3 +
        +
      • +
      +
      +
    • +
    • +
      + B6 +
      +
    • +
    +
    +
  • +
  • +
    + A2 +
    +
  • +
  • +
    + A3 +
    +
  • +
+

+ Markup in list: +

+
    +
  • +
    + Bold +
    +
  • +
  • +
    + Bold +
    +
  • +
  • +
    + Quoted +
    +
  • +
  • +
    + [1] +
    +
  • +
+

+ Don't end list with comment 1: +

+
    +
  • +
    + A1 +
    +
  • +
  • +
    + A2 +
    +
  • +
  • +
    + A3 +
    +
  • +
  • +
    + A4 +
    +
  • +
+

+ Don't end list with comment 2: +

+
    +
  • +
    + A1 +
      +
    • +
      + B1 +
      +
    • +
    • +
      + B2 +
      +
    • +
    • +
      + B3 +
      +
    • +
    +
    +
  • +
+
+

+ List immediately following markup +

+
+
    +
  • +
    + One +
    +
  • +
  • +
    + Two +
    +
  • +
  • +
    + Three +
    +
  • +
+
+
+
+

+ List immediately following markup 2 +

+
+
    +
  • +
    + One [section Nested section] +
    +
  • +
  • +
    + Two [endsect] +
    +
  • +
+
+
+
+
+
+
+

+ [1] Footnote +

+
+
+ + diff --git a/src/boost/tools/quickbook/test/list_test-1_5.quickbook b/src/boost/tools/quickbook/test/list_test-1_5.quickbook new file mode 100644 index 000000000..64b391a61 --- /dev/null +++ b/src/boost/tools/quickbook/test/list_test-1_5.quickbook @@ -0,0 +1,108 @@ +[article List Test +[quickbook 1.5] +] + +Simple list: + +* A +* B + +Simple list: + +#A +#B + +Two level list: + +* A + * A + * B +* B + * A + * B + +Two level list: + +# A + * A + * B +# B + * A + * B + +Three level list: + +# A + * A + * B + * C + * D + * E + * F + * G + * H + +Three level list: + +# A + * A + * B + # C + # D +# G +# H + +Inconsistent Indentation: + +* A1 + * B1 + * B2 + * C1 + * C2 + * B3 + * B4 + * B5 + * C3 + * B6 + * A2 +* A3 + +Markup in list: + +* *Bold* +* [*Bold] +* ["Quoted] +* [footnote Footnote] + +Don't end list with comment 1: + +* A1 +* A2 + +[/ End list?] +* A3 +* A4 + +Don't end list with comment 2: + +* A1 + * B1 + +[/ End list?] + * B2 + * B3 + +[section List immediately following markup] +* One +* Two +* Three + +[endsect] + +[section List immediately following markup 2] +* One +[section Nested section] +* Two +[endsect] + +[endsect] diff --git a/src/boost/tools/quickbook/test/list_test-1_6-fail.quickbook b/src/boost/tools/quickbook/test/list_test-1_6-fail.quickbook new file mode 100644 index 000000000..7ca8a9399 --- /dev/null +++ b/src/boost/tools/quickbook/test/list_test-1_6-fail.quickbook @@ -0,0 +1,46 @@ +[article List Test +[quickbook 1.6] +] + +Markup in list: + +* [table [[Heading]][[Cell]]] +* [heading The heading for a list item] + + The content of the list item. + +[section Paragraphs in list items] + +* A1 + + A2 + +* B1 + * C1 + + C2 + + B2 + +* D1 + * E1 + + E2 + + E3 + + D2 + +[endsect] + +[section Indented code blocks in lists] + +* A + + B + C +* D + + E +* F +[endsect] diff --git a/src/boost/tools/quickbook/test/list_test-1_6.gold b/src/boost/tools/quickbook/test/list_test-1_6.gold new file mode 100644 index 000000000..b6d3775a6 --- /dev/null +++ b/src/boost/tools/quickbook/test/list_test-1_6.gold @@ -0,0 +1,450 @@ + + +
+ List Test + + Simple list: + + + + + A + + + + + B + + + + + Simple list: + + + + + A + + + + + B + + + + + Two level list: + + + + + A + + + + A + + + + + B + + + + + + + + B + + + + A + + + + + B + + + + + + + + Two level list: + + + + + A + + + + A + + + + + B + + + + + + + + B + + + + A + + + + + B + + + + + + + + Three level list: + + + + + A + + + + A + + + + + B + + + + C + + + + + D + + + + + + + + E + + + + + F + + + + G + + + + + H + + + + + + + + + + + Three level list: + + + + + A + + + + A + + + + + B + + + + C + + + + + D + + + + + + + + + + + G + + + + + H + + + + + Inconsistent Indentation: + + + + + A1 + + + + B1 + + + + + B2 + + + + C1 + + + + + C2 + + + + + + + + B3 + + + + + B4 + + + + + B5 + + + + C3 + + + + + + + + B6 + + + + + + + + A2 + + + + + A3 + + + + + Markup in list: + + + + + Bold + + + + + Bold + + + + + Quoted + + + + + + + Footnote + + + + + + + + + + + + Heading + + + + + + + + + Cell + + + + + + + + Some text. + + + + + [section Doesn't expand] Blah, blah. [endsect] + + + + + Paragraph cheat 1. + + + Paragraph cheat 2. + + + + + Paragraph cheat 3. + + + Paragraph cheat 4. + + + + + Don't end list with comment 1: + + + + + A1 + + + + + A2 + + + + + A3 + + + + + A4 + + + + + Don't end list with comment 2: + + + + + A1 + + + + B1 + + + + + B2 + + + + + B3 + + + + + + +
+ <link linkend="list_test.list_immediately_following_marku">List immediately + following markup</link> + + + + One + + + + + Two + + + + + Three + + + +
+
+ <link linkend="list_test.list_immediately_following_mark0">List immediately + following markup 2</link> + + + + One [section Nested section] + + + + + Two [endsect] + + + +
+
diff --git a/src/boost/tools/quickbook/test/list_test-1_6.gold-html b/src/boost/tools/quickbook/test/list_test-1_6.gold-html new file mode 100644 index 000000000..c8ca7a85c --- /dev/null +++ b/src/boost/tools/quickbook/test/list_test-1_6.gold-html @@ -0,0 +1,480 @@ + + + + +

+ List Test +

+ +

+ Simple list: +

+
    +
  • +
    + A +
    +
  • +
  • +
    + B +
    +
  • +
+

+ Simple list: +

+
    +
  1. +
    + A +
    +
  2. +
  3. +
    + B +
    +
  4. +
+

+ Two level list: +

+
    +
  • +
    + A +
      +
    • +
      + A +
      +
    • +
    • +
      + B +
      +
    • +
    +
    +
  • +
  • +
    + B +
      +
    • +
      + A +
      +
    • +
    • +
      + B +
      +
    • +
    +
    +
  • +
+

+ Two level list: +

+
    +
  1. +
    + A +
      +
    • +
      + A +
      +
    • +
    • +
      + B +
      +
    • +
    +
    +
  2. +
  3. +
    + B +
      +
    • +
      + A +
      +
    • +
    • +
      + B +
      +
    • +
    +
    +
  4. +
+

+ Three level list: +

+
    +
  1. +
    + A +
      +
    • +
      + A +
      +
    • +
    • +
      + B +
        +
      • +
        + C +
        +
      • +
      • +
        + D +
        +
      • +
      +
      +
    • +
    • +
      + E +
      +
    • +
    • +
      + F +
        +
      • +
        + G +
        +
      • +
      • +
        + H +
        +
      • +
      +
      +
    • +
    +
    +
  2. +
+

+ Three level list: +

+
    +
  1. +
    + A +
      +
    • +
      + A +
      +
    • +
    • +
      + B +
        +
      1. +
        + C +
        +
      2. +
      3. +
        + D +
        +
      4. +
      +
      +
    • +
    +
    +
  2. +
  3. +
    + G +
    +
  4. +
  5. +
    + H +
    +
  6. +
+

+ Inconsistent Indentation: +

+
    +
  • +
    + A1 +
      +
    • +
      + B1 +
      +
    • +
    • +
      + B2 +
        +
      • +
        + C1 +
        +
      • +
      • +
        + C2 +
        +
      • +
      +
      +
    • +
    • +
      + B3 +
      +
    • +
    • +
      + B4 +
      +
    • +
    • +
      + B5 +
        +
      • +
        + C3 +
        +
      • +
      +
      +
    • +
    • +
      + B6 +
      +
    • +
    +
    +
  • +
  • +
    + A2 +
    +
  • +
  • +
    + A3 +
    +
  • +
+

+ Markup in list: +

+
    +
  • +
    + Bold +
    +
  • +
  • +
    + Bold +
    +
  • +
  • +
    + Quoted +
    +
  • +
  • +
    + [1] +
    +
  • +
  • +
    + + + + + + + + + + + +
    +

    + Heading +

    +
    +

    + Cell +

    +
    +
    +
    + Some text. +
    +
  • +
  • +
    + [section Doesn't expand] Blah, blah. [endsect] +
    +
  • +
  • +
    + Paragraph cheat 1. +
    +
    + Paragraph cheat 2. +
    +
  • +
  • +
    + Paragraph cheat 3. +
    +
    + Paragraph cheat 4. +
    +
  • +
+

+ Don't end list with comment 1: +

+
    +
  • +
    + A1 +
    +
  • +
  • +
    + A2 +
    +
  • +
  • +
    + A3 +
    +
  • +
  • +
    + A4 +
    +
  • +
+

+ Don't end list with comment 2: +

+
    +
  • +
    + A1 +
      +
    • +
      + B1 +
      +
    • +
    • +
      + B2 +
      +
    • +
    • +
      + B3 +
      +
    • +
    +
    +
  • +
+
+

+ List immediately following markup +

+
+
    +
  • +
    + One +
    +
  • +
  • +
    + Two +
    +
  • +
  • +
    + Three +
    +
  • +
+
+
+
+

+ List immediately following markup 2 +

+
+
    +
  • +
    + One [section Nested section] +
    +
  • +
  • +
    + Two [endsect] +
    +
  • +
+
+
+
+
+
+
+

+ [1] Footnote +

+
+
+ + diff --git a/src/boost/tools/quickbook/test/list_test-1_6.quickbook b/src/boost/tools/quickbook/test/list_test-1_6.quickbook new file mode 100644 index 000000000..fe1e18756 --- /dev/null +++ b/src/boost/tools/quickbook/test/list_test-1_6.quickbook @@ -0,0 +1,120 @@ +[article List Test +[quickbook 1.6] +] + +Simple list: + +* A +* B + +Simple list: + +#A +#B + +Two level list: + +* A + * A + * B +* B + * A + * B + +Two level list: + +# A + * A + * B +# B + * A + * B + +Three level list: + +# A + * A + * B + * C + * D + * E + * F + * G + * H + +Three level list: + +# A + * A + * B + # C + # D +# G +# H + +Inconsistent Indentation: + +* A1 + * B1 + * B2 + * C1 + * C2 + * B3 + * B4 + * B5 + * C3 + * B6 + * A2 +* A3 + +Markup in list: + +* *Bold* +* [*Bold] +* ["Quoted] +* [footnote Footnote] +* [table [[Heading]][[Cell]]] + Some text. +* [section Doesn't expand] + Blah, blah. + [endsect] + +* Paragraph cheat 1. + [block] + Paragraph cheat 2. +* Paragraph cheat 3. + [block] + Paragraph cheat 4. + +Don't end list with comment 1: + +* A1 +* A2 + +[/ End list?] +* A3 +* A4 + +Don't end list with comment 2: + +* A1 + * B1 + +[/ End list?] + * B2 + * B3 + +[section List immediately following markup] +* One +* Two +* Three + +[endsect] + +[section List immediately following markup 2] +* One +[section Nested section] +* Two +[endsect] + +[endsect] diff --git a/src/boost/tools/quickbook/test/list_test-1_7-fail1.quickbook b/src/boost/tools/quickbook/test/list_test-1_7-fail1.quickbook new file mode 100644 index 000000000..c8beed1c5 --- /dev/null +++ b/src/boost/tools/quickbook/test/list_test-1_7-fail1.quickbook @@ -0,0 +1,9 @@ +[article List Fail Test 1 +[quickbook 1.7] +] + +[section List immediately following markup] +* One +* Two +* Three +[endsect] diff --git a/src/boost/tools/quickbook/test/list_test-1_7.gold b/src/boost/tools/quickbook/test/list_test-1_7.gold new file mode 100644 index 000000000..dec074c74 --- /dev/null +++ b/src/boost/tools/quickbook/test/list_test-1_7.gold @@ -0,0 +1,479 @@ + + +
+ List Test + + Simple list: + + + + + A + + + + + B + + + + + Simple list: + + + + + A + + + + + B + + + + + Two level list: + + + + + A + + + + A + + + + + B + + + + + + + + B + + + + A + + + + + B + + + + + + + + Two level list: + + + + + A + + + + A + + + + + B + + + + + + + + B + + + + A + + + + + B + + + + + + + + Three level list: + + + + + A + + + + A + + + + + B + + + + C + + + + + D + + + + + + + + E + + + + + F + + + + G + + + + + H + + + + + + + + + + + Three level list: + + + + + A + + + + A + + + + + B + + + + C + + + + + D + + + + + + + + + + + G + + + + + H + + + + + Inconsistent Indentation: + + + + + A1 + + + + B1 + + + + + B2 + + + + C1 + + + + + C2 + + + + + + + + B3 + + + + + B4 + + + + + B5 + + + + C3 + + + + + + + + B6 + + + + + + + + A2 + + + + + A3 + + + + + Markup in list: + + + + + Bold + + + + + Bold + + + + + Quoted + + + + + + + Footnote + + + + + + + + + + + + Heading + + + + + + + + + Cell + + + + + + + + + + The + heading for a list item + + + The content of the list item. + + + + + Don't end list with comment 1: + + + + + A1 + + + + + A2 + + + + + A3 + + + + + A4 + + + + + Don't end list with comment 2: + + + + + A1 + + + + B1 + + + + + B2 + + + + + B3 + + + + + + +
+ <link linkend="list_test.paragraphs_in_list_items">Paragraphs in list + items</link> + + + + A1 + + + A2 + + + + + B1 + + + + C1 + + + C2 + + + + + + B2 + + + + + D1 + + + + E1 + + + E2 + + + E3 + + + + + + D2 + + + +
+
+ <link linkend="list_test.indented_code_blocks_in_lists">Indented code + blocks in lists</link> + + + + A + +B + + + C + + + + + D + +E + + + + + F + + + +
+
diff --git a/src/boost/tools/quickbook/test/list_test-1_7.gold-html b/src/boost/tools/quickbook/test/list_test-1_7.gold-html new file mode 100644 index 000000000..9d7b78eac --- /dev/null +++ b/src/boost/tools/quickbook/test/list_test-1_7.gold-html @@ -0,0 +1,507 @@ + + + + +

+ List Test +

+
+

+ Table of contents +

+ +
+

+ Simple list: +

+
    +
  • +
    + A +
    +
  • +
  • +
    + B +
    +
  • +
+

+ Simple list: +

+
    +
  1. +
    + A +
    +
  2. +
  3. +
    + B +
    +
  4. +
+

+ Two level list: +

+
    +
  • +
    + A +
      +
    • +
      + A +
      +
    • +
    • +
      + B +
      +
    • +
    +
    +
  • +
  • +
    + B +
      +
    • +
      + A +
      +
    • +
    • +
      + B +
      +
    • +
    +
    +
  • +
+

+ Two level list: +

+
    +
  1. +
    + A +
      +
    • +
      + A +
      +
    • +
    • +
      + B +
      +
    • +
    +
    +
  2. +
  3. +
    + B +
      +
    • +
      + A +
      +
    • +
    • +
      + B +
      +
    • +
    +
    +
  4. +
+

+ Three level list: +

+
    +
  1. +
    + A +
      +
    • +
      + A +
      +
    • +
    • +
      + B +
        +
      • +
        + C +
        +
      • +
      • +
        + D +
        +
      • +
      +
      +
    • +
    • +
      + E +
      +
    • +
    • +
      + F +
        +
      • +
        + G +
        +
      • +
      • +
        + H +
        +
      • +
      +
      +
    • +
    +
    +
  2. +
+

+ Three level list: +

+
    +
  1. +
    + A +
      +
    • +
      + A +
      +
    • +
    • +
      + B +
        +
      1. +
        + C +
        +
      2. +
      3. +
        + D +
        +
      4. +
      +
      +
    • +
    +
    +
  2. +
  3. +
    + G +
    +
  4. +
  5. +
    + H +
    +
  6. +
+

+ Inconsistent Indentation: +

+
    +
  • +
    + A1 +
      +
    • +
      + B1 +
      +
    • +
    • +
      + B2 +
        +
      • +
        + C1 +
        +
      • +
      • +
        + C2 +
        +
      • +
      +
      +
    • +
    • +
      + B3 +
      +
    • +
    • +
      + B4 +
      +
    • +
    • +
      + B5 +
        +
      • +
        + C3 +
        +
      • +
      +
      +
    • +
    • +
      + B6 +
      +
    • +
    +
    +
  • +
  • +
    + A2 +
    +
  • +
  • +
    + A3 +
    +
  • +
+

+ Markup in list: +

+
    +
  • +
    + Bold +
    +
  • +
  • +
    + Bold +
    +
  • +
  • +
    + Quoted +
    +
  • +
  • +
    + [1] +
    +
  • +
  • +
    + + + + + + + + + + + +
    +

    + Heading +

    +
    +

    + Cell +

    +
    +
    +
  • +
  • +

    + The heading for a list item +

    +
    + The content of the list item. +
    +
  • +
+

+ Don't end list with comment 1: +

+
    +
  • +
    + A1 +
    +
  • +
  • +
    + A2 +
    +
  • +
  • +
    + A3 +
    +
  • +
  • +
    + A4 +
    +
  • +
+

+ Don't end list with comment 2: +

+
    +
  • +
    + A1 +
      +
    • +
      + B1 +
      +
    • +
    • +
      + B2 +
      +
    • +
    • +
      + B3 +
      +
    • +
    +
    +
  • +
+
+

+ Paragraphs in list items +

+
+
    +
  • +
    + A1 +
    +
    + A2 +
    +
  • +
  • +
    + B1 +
      +
    • +
      + C1 +
      +
      + C2 +
      +
    • +
    +
    +
    + B2 +
    +
  • +
  • +
    + D1 +
      +
    • +
      + E1 +
      +
      + E2 +
      +
      + E3 +
      +
    • +
    +
    +
    + D2 +
    +
  • +
+
+
+
+

+ Indented code blocks in lists +

+
+
    +
  • +
    + A +
    +
    B
    +
    +
    + C +
    +
  • +
  • +
    + D +
    +
    E
    +
    +
  • +
  • +
    + F +
    +
  • +
+
+
+
+
+
+
+

+ [1] Footnote +

+
+
+ + diff --git a/src/boost/tools/quickbook/test/list_test-1_7.quickbook b/src/boost/tools/quickbook/test/list_test-1_7.quickbook new file mode 100644 index 000000000..8eac6a718 --- /dev/null +++ b/src/boost/tools/quickbook/test/list_test-1_7.quickbook @@ -0,0 +1,134 @@ +[article List Test +[quickbook 1.7] +] + +Simple list: + +* A +* B + +Simple list: + +#A +#B + +Two level list: + +* A + * A + * B +* B + * A + * B + +Two level list: + +# A + * A + * B +# B + * A + * B + +Three level list: + +# A + * A + * B + * C + * D + * E + * F + * G + * H + +Three level list: + +# A + * A + * B + # C + # D +# G +# H + +Inconsistent Indentation: + +* A1 + * B1 + * B2 + * C1 + * C2 + * B3 + * B4 + * B5 + * C3 + * B6 + * A2 +* A3 + +Markup in list: + +* *Bold* +* [*Bold] +* ["Quoted] +* [footnote Footnote] +* [table [[Heading]][[Cell]]] +* [heading The heading for a list item] + + The content of the list item. + +Don't end list with comment 1: + +* A1 +* A2 + +[/ End list?] +* A3 +* A4 + +Don't end list with comment 2: + +* A1 + * B1 + +[/ End list?] + * B2 + * B3 + +[section Paragraphs in list items] + +* A1 + + A2 + +* B1 + * C1 + + C2 + + B2 + +* D1 + * E1 + + E2 + + E3 + + D2 + +[endsect] + +[section Indented code blocks in lists] + +* A + + B + C +* D + + E +* F + +[endsect] diff --git a/src/boost/tools/quickbook/test/macro-1_5.gold b/src/boost/tools/quickbook/test/macro-1_5.gold new file mode 100644 index 000000000..aec771a0c --- /dev/null +++ b/src/boost/tools/quickbook/test/macro-1_5.gold @@ -0,0 +1,26 @@ + + +
+ Macro Test + + 1 + + + 2 + + + two + + + 1 + + + 1 + + + 1 + + + 1 2 + +
diff --git a/src/boost/tools/quickbook/test/macro-1_5.gold-html b/src/boost/tools/quickbook/test/macro-1_5.gold-html new file mode 100644 index 000000000..b2ffd0edd --- /dev/null +++ b/src/boost/tools/quickbook/test/macro-1_5.gold-html @@ -0,0 +1,30 @@ + + + + +

+ Macro Test +

+

+ 1 +

+

+ 2 +

+

+ two +

+

+ 1 +

+

+ 1 +

+

+ 1 +

+

+ 1 2 +

+ + diff --git a/src/boost/tools/quickbook/test/macro-1_5.quickbook b/src/boost/tools/quickbook/test/macro-1_5.quickbook new file mode 100644 index 000000000..165ad1b92 --- /dev/null +++ b/src/boost/tools/quickbook/test/macro-1_5.quickbook @@ -0,0 +1,34 @@ +[article Macro Test +[quickbook 1.5] +] + +[def one 1] + +one + +[template foo[] + +[def two 2] +two +] + +[foo] +two [/This shouldn't expand] + + +[def __foo__ 1] +[def __foo__ 2] +__foo__ + +[template foo2[] +[def __foo__ 3] +__foo__ +] + +[foo2] +__foo__ + +[def __crazy[macro__ 1] +[def __crazy\macro__ 2] +__crazy[macro__ +__crazy\macro__ \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/macro-1_6.gold b/src/boost/tools/quickbook/test/macro-1_6.gold new file mode 100644 index 000000000..291ddf1f9 --- /dev/null +++ b/src/boost/tools/quickbook/test/macro-1_6.gold @@ -0,0 +1,26 @@ + + +
+ Macro Test + + 1 + + + 2 + + + two + + + 2 + + + 3 + + + 2 + + + [1] \m2 + +
diff --git a/src/boost/tools/quickbook/test/macro-1_6.gold-html b/src/boost/tools/quickbook/test/macro-1_6.gold-html new file mode 100644 index 000000000..f49236233 --- /dev/null +++ b/src/boost/tools/quickbook/test/macro-1_6.gold-html @@ -0,0 +1,30 @@ + + + + +

+ Macro Test +

+

+ 1 +

+

+ 2 +

+

+ two +

+

+ 2 +

+

+ 3 +

+

+ 2 +

+

+ [1] \m2 +

+ + diff --git a/src/boost/tools/quickbook/test/macro-1_6.quickbook b/src/boost/tools/quickbook/test/macro-1_6.quickbook new file mode 100644 index 000000000..43f8cbc0a --- /dev/null +++ b/src/boost/tools/quickbook/test/macro-1_6.quickbook @@ -0,0 +1,34 @@ +[article Macro Test +[quickbook 1.6] +] + +[def one 1] + +one + +[template foo[] + +[def two 2] +two +] + +[foo] +two [/This shouldn't expand] + + +[def __foo__ 1] +[def __foo__ 2] +__foo__ + +[template foo2[] +[def __foo__ 3] +__foo__ +] + +[foo2] +__foo__ + +[def __crazy[1]] +[def __crazy2\m2] +__crazy +__crazy2 \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/mismatched_brackets-1_1-fail.quickbook b/src/boost/tools/quickbook/test/mismatched_brackets-1_1-fail.quickbook new file mode 100644 index 000000000..e3db0daa2 --- /dev/null +++ b/src/boost/tools/quickbook/test/mismatched_brackets-1_1-fail.quickbook @@ -0,0 +1,5 @@ +[article Mismatched brackets] + +[template foo Oops] +[template blah Eek +[foo] diff --git a/src/boost/tools/quickbook/test/mismatched_brackets1-1_1.gold b/src/boost/tools/quickbook/test/mismatched_brackets1-1_1.gold new file mode 100644 index 000000000..f6fbff497 --- /dev/null +++ b/src/boost/tools/quickbook/test/mismatched_brackets1-1_1.gold @@ -0,0 +1,12 @@ + + +
+ Mismatched brackets + + [foo + + + Eek + +
diff --git a/src/boost/tools/quickbook/test/mismatched_brackets1-1_1.gold-html b/src/boost/tools/quickbook/test/mismatched_brackets1-1_1.gold-html new file mode 100644 index 000000000..a0c96eb7a --- /dev/null +++ b/src/boost/tools/quickbook/test/mismatched_brackets1-1_1.gold-html @@ -0,0 +1,15 @@ + + + + +

+ Mismatched brackets +

+

+ [foo +

+

+ Eek +

+ + diff --git a/src/boost/tools/quickbook/test/mismatched_brackets1-1_1.quickbook b/src/boost/tools/quickbook/test/mismatched_brackets1-1_1.quickbook new file mode 100644 index 000000000..a0cfb77b3 --- /dev/null +++ b/src/boost/tools/quickbook/test/mismatched_brackets1-1_1.quickbook @@ -0,0 +1,7 @@ +[article Mismatched brackets] + +[template foo Oops] + +[foo +[template blah Eek] +[blah] \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/mismatched_brackets1-1_7.quickbook b/src/boost/tools/quickbook/test/mismatched_brackets1-1_7.quickbook new file mode 100644 index 000000000..2303fa8e8 --- /dev/null +++ b/src/boost/tools/quickbook/test/mismatched_brackets1-1_7.quickbook @@ -0,0 +1,8 @@ +[quickbook 1.7] +[article Mismatched brackets] + +[template foo Oops] + +[foo +[template blah Eek] +[blah] diff --git a/src/boost/tools/quickbook/test/mismatched_brackets2-1_1.gold b/src/boost/tools/quickbook/test/mismatched_brackets2-1_1.gold new file mode 100644 index 000000000..bdbb114c7 --- /dev/null +++ b/src/boost/tools/quickbook/test/mismatched_brackets2-1_1.gold @@ -0,0 +1,9 @@ + + +
+ Mismatched brackets + + [foo Eek + +
diff --git a/src/boost/tools/quickbook/test/mismatched_brackets2-1_1.gold-html b/src/boost/tools/quickbook/test/mismatched_brackets2-1_1.gold-html new file mode 100644 index 000000000..27c42db45 --- /dev/null +++ b/src/boost/tools/quickbook/test/mismatched_brackets2-1_1.gold-html @@ -0,0 +1,12 @@ + + + + +

+ Mismatched brackets +

+

+ [foo Eek +

+ + diff --git a/src/boost/tools/quickbook/test/mismatched_brackets2-1_1.quickbook b/src/boost/tools/quickbook/test/mismatched_brackets2-1_1.quickbook new file mode 100644 index 000000000..271fee8af --- /dev/null +++ b/src/boost/tools/quickbook/test/mismatched_brackets2-1_1.quickbook @@ -0,0 +1,7 @@ +[article Mismatched brackets] + +[template foo Oops] +[template blah Eek] + +[foo +[blah] \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/mismatched_brackets3-1_1.gold b/src/boost/tools/quickbook/test/mismatched_brackets3-1_1.gold new file mode 100644 index 000000000..a7ab11e83 --- /dev/null +++ b/src/boost/tools/quickbook/test/mismatched_brackets3-1_1.gold @@ -0,0 +1,12 @@ + + +
+ Mismatched brackets +
+ Something +
+ + ] + +
diff --git a/src/boost/tools/quickbook/test/mismatched_brackets3-1_1.gold-html b/src/boost/tools/quickbook/test/mismatched_brackets3-1_1.gold-html new file mode 100644 index 000000000..a63ee3a63 --- /dev/null +++ b/src/boost/tools/quickbook/test/mismatched_brackets3-1_1.gold-html @@ -0,0 +1,29 @@ + + + + +

+ Mismatched brackets +

+
+

+ Table of contents +

+ +
+

+ ] +

+
+

+ Something +

+
+
+
+ + diff --git a/src/boost/tools/quickbook/test/mismatched_brackets3-1_1.quickbook b/src/boost/tools/quickbook/test/mismatched_brackets3-1_1.quickbook new file mode 100644 index 000000000..dadd42692 --- /dev/null +++ b/src/boost/tools/quickbook/test/mismatched_brackets3-1_1.quickbook @@ -0,0 +1,6 @@ +[article Mismatched brackets] + +[section Something] + +[endsect] +] diff --git a/src/boost/tools/quickbook/test/newline-1_1.gold b/src/boost/tools/quickbook/test/newline-1_1.gold new file mode 100644 index 000000000..716acca12 --- /dev/null +++ b/src/boost/tools/quickbook/test/newline-1_1.gold @@ -0,0 +1,24 @@ + + +
+ Test newlines + + Line 1 Line 2 + +
+ + It is better to be approximately right than exactly wrong. + -- Old adage + +
+ + Line 1 Line 2 + +
+ + It is better to be approximately right than exactly wrong. + -- Old adage + +
+
diff --git a/src/boost/tools/quickbook/test/newline-1_1.gold-html b/src/boost/tools/quickbook/test/newline-1_1.gold-html new file mode 100644 index 000000000..ea82594a1 --- /dev/null +++ b/src/boost/tools/quickbook/test/newline-1_1.gold-html @@ -0,0 +1,27 @@ + + + + +

+ Test newlines +

+

+ Line 1
Line 2 +

+
+

+ It is better to be approximately right than exactly wrong.
-- Old adage +

+
+

+ Line 1
Line 2 +

+
+

+ It is better to be approximately right than exactly wrong.
-- Old adage +

+
+ + diff --git a/src/boost/tools/quickbook/test/newline-1_1.quickbook b/src/boost/tools/quickbook/test/newline-1_1.quickbook new file mode 100644 index 000000000..6476f6a40 --- /dev/null +++ b/src/boost/tools/quickbook/test/newline-1_1.quickbook @@ -0,0 +1,10 @@ +[article Test newlines +] + +Line 1\nLine 2 + +[:["It is better to be approximately right than exactly wrong.]\n['-- Old adage]] + +Line 1[br]Line 2 + +[:["It is better to be approximately right than exactly wrong.][br]['-- Old adage]] \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/para_test-1_5.gold b/src/boost/tools/quickbook/test/para_test-1_5.gold new file mode 100644 index 000000000..1a8f17d6a --- /dev/null +++ b/src/boost/tools/quickbook/test/para_test-1_5.gold @@ -0,0 +1,75 @@ + + +
+ Paragraph Test +
+ <link linkend="paragraph_test.some_paragraphs">Some Paragraphs</link> + + Shouldn't be a code block. + + + Should be bold. + + + Should be a single paragraph. + + + Single paragraph. + + + Single paragraph. + + + Single paragraph. + + + Single paragraph. + + + Lots of newlines round this paragraph. + + + Last paragraph. + +
+
+ <link linkend="paragraph_test.inside___breaking_comment__blocks">Inside + blocks</link> + + + + Paragraphs + + + Shouldn't be a code block. + + + Should be bold. + + + Should be a single paragraph. + + + Single paragraph. + + + Single paragraph. + + + Single paragraph. + + + Single paragraph. + + + Lots of newlines round this paragraph. + + + Last paragraph. + + + + +
+
diff --git a/src/boost/tools/quickbook/test/para_test-1_5.gold-html b/src/boost/tools/quickbook/test/para_test-1_5.gold-html new file mode 100644 index 000000000..92018efc5 --- /dev/null +++ b/src/boost/tools/quickbook/test/para_test-1_5.gold-html @@ -0,0 +1,97 @@ + + + + +

+ Paragraph Test +

+
+

+ Table of contents +

+ +
+
+

+ Some Paragraphs +

+
+

+ Shouldn't be a code block. +

+

+ Should be bold. +

+

+ Should be a single paragraph. +

+

+ Single paragraph. +

+

+ Single paragraph. +

+

+ Single paragraph. +

+

+ Single paragraph. +

+

+ Lots of newlines round this paragraph. +

+

+ Last paragraph. +

+
+
+
+

+ Inside blocks +

+
+
+
+ Paragraphs +
+
+

+ Shouldn't be a code block. +

+

+ Should be bold. +

+

+ Should be a single paragraph. +

+

+ Single paragraph. +

+

+ Single paragraph. +

+

+ Single paragraph. +

+

+ Single paragraph. +

+

+ Lots of newlines round this paragraph. +

+

+ Last paragraph. +

+
+
+
+
+ + diff --git a/src/boost/tools/quickbook/test/para_test-1_5.quickbook b/src/boost/tools/quickbook/test/para_test-1_5.quickbook new file mode 100644 index 000000000..8a099bce5 --- /dev/null +++ b/src/boost/tools/quickbook/test/para_test-1_5.quickbook @@ -0,0 +1,81 @@ +[article Paragraph Test + [quickbook 1.5] +] + +[section Some Paragraphs] + +[/ Leading comment ] Shouldn't be a code block. + +[/ Leading comment ]*Should be bold*. + +Should be a +[/ Breaking comment] +single paragraph. + +Single paragraph. +[/ Breaking comment] + +Single paragraph. + +[/ Breaking comment] +Single paragraph. + +Single paragraph.[/ Trailing comment] + + + + + + +Lots of newlines round this paragraph. + + + + + + + + +Last paragraph.[endsect] + +[section Inside +[/Breaking comment] +blocks] + +[variablelist +[[Paragraphs][ +[/ Leading comment ] Shouldn't be a code block. + +[/ Leading comment ]*Should be bold*. + +Should be a +[/ Breaking comment] +single paragraph. + +Single paragraph. +[/ Breaking comment] + +Single paragraph. + +[/ Breaking comment] +Single paragraph. + +Single paragraph.[/ Trailing comment] + + + + + + +Lots of newlines round this paragraph. + + + + + + + + +Last paragraph.]]] + +[endsect] \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/post_process-fail.quickbook b/src/boost/tools/quickbook/test/post_process-fail.quickbook new file mode 100644 index 000000000..994a63574 --- /dev/null +++ b/src/boost/tools/quickbook/test/post_process-fail.quickbook @@ -0,0 +1,3 @@ +[article Fail post process due to invalid embedded xml [quickbook 1.4] ] + +Invalid xml follows: '''<>''' diff --git a/src/boost/tools/quickbook/test/preformatted-1_1.gold b/src/boost/tools/quickbook/test/preformatted-1_1.gold new file mode 100644 index 000000000..a92b3f55a --- /dev/null +++ b/src/boost/tools/quickbook/test/preformatted-1_1.gold @@ -0,0 +1,40 @@ + + +
+ Preformatted +
+ Preformatted + + Here's the ubiquitous Hello World program in C++. + +#include <iostream> + +int main() +{ + std::cout << "Hello, World!" << std::endl; + return 0; +} + + + The code should appear as a single block of code in a monospaced font and with + no syntax highlighting. The fifth and sixth lines should appear indented to + the right, aligning under main, + on line 3. + + + Here's a one line function definitition: + +void something(); + + . + + + And some indented code: + +void go() + { + } + +
+
diff --git a/src/boost/tools/quickbook/test/preformatted-1_1.gold-html b/src/boost/tools/quickbook/test/preformatted-1_1.gold-html new file mode 100644 index 000000000..e25c047f5 --- /dev/null +++ b/src/boost/tools/quickbook/test/preformatted-1_1.gold-html @@ -0,0 +1,58 @@ + + + + +

+ Preformatted +

+
+

+ Table of contents +

+ +
+
+

+ Preformatted +

+
+

+ Here's the ubiquitous Hello World + program in C++. +

+
#include <iostream>
+
+int main()
+{
+    std::cout << "Hello, World!" << std::endl;
+    return 0;
+}
+
+

+ The code should appear as a single block of code in a monospaced font and + with no syntax highlighting. The fifth and sixth lines should appear indented + to the right, aligning under main, + on line 3. +

+

+ Here's a one line function definitition: +

+
void something(); 
+

+ . +

+

+ And some indented code: +

+
void go()
+    {
+    }
+
+
+
+ + diff --git a/src/boost/tools/quickbook/test/preformatted-1_1.quickbook b/src/boost/tools/quickbook/test/preformatted-1_1.quickbook new file mode 100644 index 000000000..e41f83b5d --- /dev/null +++ b/src/boost/tools/quickbook/test/preformatted-1_1.quickbook @@ -0,0 +1,32 @@ +[article Preformatted +] + +[section Preformatted] + +Here's the ubiquitous /Hello World/ program in C++. + +[pre +#include + +int main() +{ + std::cout << "Hello, World!" << std::endl; + return 0; +} +] + +The code should appear as a single block of code in a monospaced font and with +no syntax highlighting. The fifth and sixth lines should appear indented to the +right, aligning under `main`, on line 3. + +Here's a one line function definitition: [pre void something(); ]. + +And some indented code: + +[pre + void go() + { + } +] + +[endsect] diff --git a/src/boost/tools/quickbook/test/preformatted-1_6.gold b/src/boost/tools/quickbook/test/preformatted-1_6.gold new file mode 100644 index 000000000..46a90c98e --- /dev/null +++ b/src/boost/tools/quickbook/test/preformatted-1_6.gold @@ -0,0 +1,40 @@ + + +
+ Preformatted +
+ <link linkend="preformatted.preformatted">Preformatted</link> + + Here's the ubiquitous Hello World program in C++. + +#include <iostream> + +int main() +{ + std::cout << "Hello, World!" << std::endl; + return 0; +} + + + The code should appear as a single block of code in a monospaced font and with + no syntax highlighting. The fifth and sixth lines should appear indented to + the right, aligning under main, + on line 3. + + + Here's a one line function definitition: + +void something(); + + . + + + And some indented code: + + void go() + { + } + +
+
diff --git a/src/boost/tools/quickbook/test/preformatted-1_6.gold-html b/src/boost/tools/quickbook/test/preformatted-1_6.gold-html new file mode 100644 index 000000000..bebc28896 --- /dev/null +++ b/src/boost/tools/quickbook/test/preformatted-1_6.gold-html @@ -0,0 +1,58 @@ + + + + +

+ Preformatted +

+
+

+ Table of contents +

+ +
+
+

+ Preformatted +

+
+

+ Here's the ubiquitous Hello World + program in C++. +

+
#include <iostream>
+
+int main()
+{
+    std::cout << "Hello, World!" << std::endl;
+    return 0;
+}
+
+

+ The code should appear as a single block of code in a monospaced font and + with no syntax highlighting. The fifth and sixth lines should appear indented + to the right, aligning under main, + on line 3. +

+

+ Here's a one line function definitition: +

+
void something(); 
+

+ . +

+

+ And some indented code: +

+
    void go()
+    {
+    }
+
+
+
+ + diff --git a/src/boost/tools/quickbook/test/preformatted-1_6.quickbook b/src/boost/tools/quickbook/test/preformatted-1_6.quickbook new file mode 100644 index 000000000..25c6bc5c5 --- /dev/null +++ b/src/boost/tools/quickbook/test/preformatted-1_6.quickbook @@ -0,0 +1,33 @@ +[article Preformatted +[quickbook 1.6] +] + +[section Preformatted] + +Here's the ubiquitous /Hello World/ program in C++. + +[pre +#include + +int main() +{ + std::cout << "Hello, World!" << std::endl; + return 0; +} +] + +The code should appear as a single block of code in a monospaced font and with +no syntax highlighting. The fifth and sixth lines should appear indented to the +right, aligning under `main`, on line 3. + +Here's a one line function definitition: [pre void something(); ]. + +And some indented code: + +[pre + void go() + { + } +] + +[endsect] diff --git a/src/boost/tools/quickbook/test/python/include_glob.qbk b/src/boost/tools/quickbook/test/python/include_glob.qbk new file mode 100644 index 000000000..6e1f5248a --- /dev/null +++ b/src/boost/tools/quickbook/test/python/include_glob.qbk @@ -0,0 +1,11 @@ +[/ + Copyright 2012-2013 Daniel James + + Distributed under the Boost Software License, Version 1.0. + (See accompanying file LICENSE_1_0.txt or copy at + http://www.boost.org/LICENSE_1_0.txt) +] + +[quickbook 1.7] +[article Include Path] +[include ?.qbk] diff --git a/src/boost/tools/quickbook/test/python/include_glob_deps.txt b/src/boost/tools/quickbook/test/python/include_glob_deps.txt new file mode 100644 index 000000000..82fb66e68 --- /dev/null +++ b/src/boost/tools/quickbook/test/python/include_glob_deps.txt @@ -0,0 +1,6 @@ +# Copyright 2012-2013 Daniel James +# Distributed under the Boost Software License, Version 1.0. +# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) +include_glob.qbk +sub1/a.qbk +sub2/b.qbk diff --git a/src/boost/tools/quickbook/test/python/include_glob_locs.txt b/src/boost/tools/quickbook/test/python/include_glob_locs.txt new file mode 100644 index 000000000..ccab607e0 --- /dev/null +++ b/src/boost/tools/quickbook/test/python/include_glob_locs.txt @@ -0,0 +1,9 @@ +# Copyright 2012-2013 Daniel James +# Distributed under the Boost Software License, Version 1.0. +# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) ++ include_glob.qbk +g ?.qbk +g sub1/?.qbk ++ sub1/a.qbk +g sub2/?.qbk ++ sub2/b.qbk diff --git a/src/boost/tools/quickbook/test/python/include_path.qbk b/src/boost/tools/quickbook/test/python/include_path.qbk new file mode 100644 index 000000000..3af3b3704 --- /dev/null +++ b/src/boost/tools/quickbook/test/python/include_path.qbk @@ -0,0 +1,12 @@ +[/ + Copyright 2012-2013 Daniel James + + Distributed under the Boost Software License, Version 1.0. + (See accompanying file LICENSE_1_0.txt or copy at + http://www.boost.org/LICENSE_1_0.txt) +] + +[quickbook 1.5] +[article Include Path] +[include a.qbk] +[include b.qbk] diff --git a/src/boost/tools/quickbook/test/python/include_path_deps.txt b/src/boost/tools/quickbook/test/python/include_path_deps.txt new file mode 100644 index 000000000..86875d79b --- /dev/null +++ b/src/boost/tools/quickbook/test/python/include_path_deps.txt @@ -0,0 +1,6 @@ +# Copyright 2012-2013 Daniel James +# Distributed under the Boost Software License, Version 1.0. +# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) +include_path.qbk +sub1/a.qbk +sub2/b.qbk diff --git a/src/boost/tools/quickbook/test/python/include_path_locs.txt b/src/boost/tools/quickbook/test/python/include_path_locs.txt new file mode 100644 index 000000000..7926db615 --- /dev/null +++ b/src/boost/tools/quickbook/test/python/include_path_locs.txt @@ -0,0 +1,9 @@ +# Copyright 2012-2013 Daniel James +# Distributed under the Boost Software License, Version 1.0. +# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) ++ include_path.qbk +- a.qbk ++ sub1/a.qbk +- b.qbk +- sub1/b.qbk ++ sub2/b.qbk diff --git a/src/boost/tools/quickbook/test/python/missing_relative.qbk b/src/boost/tools/quickbook/test/python/missing_relative.qbk new file mode 100644 index 000000000..ff96b1088 --- /dev/null +++ b/src/boost/tools/quickbook/test/python/missing_relative.qbk @@ -0,0 +1,14 @@ +[/ + Copyright 2012-2013 Daniel James + + Distributed under the Boost Software License, Version 1.0. + (See accompanying file LICENSE_1_0.txt or copy at + http://www.boost.org/LICENSE_1_0.txt) +] + +[quickbook 1.5] +[article Missing Relative] + +[include ../missing.qbk] +[include missing-dir/x.qbk] +[include missing-dir/../../x.qbk] diff --git a/src/boost/tools/quickbook/test/python/missing_relative_deps.txt b/src/boost/tools/quickbook/test/python/missing_relative_deps.txt new file mode 100644 index 000000000..fb8f27fee --- /dev/null +++ b/src/boost/tools/quickbook/test/python/missing_relative_deps.txt @@ -0,0 +1,4 @@ +# Copyright 2012-2013 Daniel James +# Distributed under the Boost Software License, Version 1.0. +# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) +missing_relative.qbk diff --git a/src/boost/tools/quickbook/test/python/missing_relative_locs.txt b/src/boost/tools/quickbook/test/python/missing_relative_locs.txt new file mode 100644 index 000000000..ac85cec10 --- /dev/null +++ b/src/boost/tools/quickbook/test/python/missing_relative_locs.txt @@ -0,0 +1,7 @@ +# Copyright 2012-2013 Daniel James +# Distributed under the Boost Software License, Version 1.0. +# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) ++ missing_relative.qbk +- ../missing.qbk +- missing-dir/x.qbk +- missing-dir/../../x.qbk diff --git a/src/boost/tools/quickbook/test/python/run_tests.py b/src/boost/tools/quickbook/test/python/run_tests.py new file mode 100644 index 000000000..955f52c92 --- /dev/null +++ b/src/boost/tools/quickbook/test/python/run_tests.py @@ -0,0 +1,191 @@ +#!/usr/bin/env python + +# Copyright 2012-2013 Daniel James +# Distributed under the Boost Software License, Version 1.0. +# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) + +import sys, os, subprocess, tempfile, re + +def main(args, directory): + if len(args) != 1: + print "Usage: output-deps.py quickbook-command" + exit(1) + quickbook_command = args[0] + + failures = 0 + + # Dependency tests + + failures += run_quickbook(quickbook_command, 'svg_missing.qbk', + deps_gold = 'svg_missing_deps.txt') + failures += run_quickbook(quickbook_command, 'svg_missing.qbk', + locations_gold = 'svg_missing_locs.txt') + failures += run_quickbook(quickbook_command, 'missing_relative.qbk', + deps_gold = 'missing_relative_deps.txt', + locations_gold = 'missing_relative_locs.txt') + failures += run_quickbook(quickbook_command, 'include_path.qbk', + deps_gold = 'include_path_deps.txt', + locations_gold = 'include_path_locs.txt', + input_path = ['sub1', 'sub2']) + failures += run_quickbook(quickbook_command, 'include_glob.qbk', + deps_gold = 'include_glob_deps.txt', + locations_gold = 'include_glob_locs.txt', + input_path = ['sub1', 'sub2']) + + # Try building a simple document with various flags. + + failures += run_quickbook(quickbook_command, 'simple.qbk', + output_gold = 'simple.xml') + failures += run_quickbook(quickbook_command, 'simple.qbk', + extra_flags = ['--no-self-linked-headers'], + output_gold = 'simple_no_self_linked.xml') + failures += run_quickbook(quickbook_command, 'simple.qbk', + extra_flags = ['--no-pretty-print'], + output_gold = 'simple_no_pretty_print.xml') + failures += run_quickbook(quickbook_command, 'simple.qbk', + extra_flags = ['--indent','4','--linewidth','60'], + output_gold = 'simple_custom_pretty_print.xml') + + if failures == 0: + print "Success" + else: + print "Failures:",failures + exit(failures) + +def run_quickbook(quickbook_command, filename, output_gold = None, + deps_gold = None, locations_gold = None, input_path = [], + extra_flags = None): + failures = 0 + + command = [quickbook_command, '--debug', filename] + + output_filename = None + if output_gold: + output_filename = temp_filename('.qbk') + command.extend(['--output-file', output_filename]) + + deps_filename = None + if deps_gold: + deps_filename = temp_filename('.txt') + command.extend(['--output-deps', deps_filename]) + + locations_filename = None + if locations_gold: + locations_filename = temp_filename('.txt') + command.extend(['--output-checked-locations', locations_filename]) + + for path in input_path: + command.extend(['-I', path]) + + if extra_flags: + command.extend(extra_flags) + + try: + print 'Running: ' + ' '.join(command) + print + exit_code = subprocess.call(command) + print + success = not exit_code + + if output_filename: + output = load_file(output_filename) + else: + output = None + + if deps_filename: + deps = load_dependencies(deps_filename) + else: + deps = None + + if locations_filename: + locations = load_locations(locations_filename) + else: + locations = None + finally: + if output_filename: os.unlink(output_filename) + if deps_filename: os.unlink(deps_filename) + + if deps_gold: + gold = load_dependencies(deps_gold) + if deps != gold: + failures = failures + 1 + print "Dependencies don't match:" + print "Gold:", gold + print "Result:", deps + print + + if locations_gold: + gold = load_locations(locations_gold) + if locations != gold: + failures = failures + 1 + print "Dependencies don't match:" + print "Gold:", gold + print "Result:", locations + print + + if output_gold: + gold = load_file(output_gold) + if gold != output: + failures = failures + 1 + print "Output doesn't match:" + print + print gold + print + print output + print + + return failures + +def load_dependencies(filename): + dependencies = set() + f = open(filename, 'r') + for path in f: + if path[0] == '#': continue + if path in dependencies: + raise Exception("Duplicate path (%1s) in %2s" % (path, filename)) + dependencies.add(path) + return dependencies + +def load_locations(filename): + line_matcher = re.compile("^([+-g]) (.*)$") + dependencies = {} + f = open(filename, 'r') + glob = None + globs = {} + for line in f: + if line[0] == '#': continue + m = line_matcher.match(line) + + path = m.group(2) + + if not m: + raise Exception("Invalid dependency file: %1s" % filename) + if m.group(1) == 'g': + globs[path] = [] + glob = path + elif glob: + if m.group(1) != '+': + raise Exception("Negative match in glob.") + globs[glob].append(path) + else: + found = m.group(1) == '+' + if path in dependencies: + raise Exception("Duplicate path (%1s) in %2s" % (path, filename)) + dependencies[path] = found + return { 'dependencies': dependencies, 'globs': globs } + +def temp_filename(extension): + file = tempfile.mkstemp(suffix = extension) + os.close(file[0]) + return file[1] + +def load_file(filename): + f = open(filename, 'r') + try: + return f.read() + finally: + f.close() + + return None + +main(sys.argv[1:], os.path.dirname(sys.argv[0])) diff --git a/src/boost/tools/quickbook/test/python/simple.qbk b/src/boost/tools/quickbook/test/python/simple.qbk new file mode 100644 index 000000000..af42ca5cd --- /dev/null +++ b/src/boost/tools/quickbook/test/python/simple.qbk @@ -0,0 +1,23 @@ +[/ Copyright 2016 Daniel James. + / Distributed under the Boost Software License, Version 1.0. (See accompanying + / file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) ] + +[quickbook 1.6] +[article Simple Test Article + [copyright 2016 Daniel James] + [license + Distributed under the Boost Software License, Version 1.0. + (See accompanying file LICENSE_1_0.txt or copy at + [@http://www.boost.org/LICENSE_1_0.txt]) + ] +] + +[section:one One] + +[h1 A] + +Lorem ipsum dolor. Sit amet quis hendrerit pretium massa. Et imperdiet sit luctus et nam. Eget neque vivamus nec aliquam vestibulum. Venenatis id penatibus. Rutrum lobortis tempora. Turpis cras imperdiet. Quis parturient quam sed non libero donec in ut aliquam aliquam purus maecenas con dolor in est felis lorem amet vel. Risus mauris felis. Libero felis fringilla. Sed cursus metus dolor iaculis eget sit ac commodo. Molestie interdum nunc. Erat auctor suscipit. Turpis quisque nonummy. Integer vestibulum vivamus vulputate euismod et sed pretium urna metus scelerisque urna massa vestibulum neque. + +[heading B] + +[endsect] diff --git a/src/boost/tools/quickbook/test/python/simple.xml b/src/boost/tools/quickbook/test/python/simple.xml new file mode 100644 index 000000000..9b8f73bed --- /dev/null +++ b/src/boost/tools/quickbook/test/python/simple.xml @@ -0,0 +1,36 @@ + + +
+ Simple Test Article + + + 2016 Daniel James + + + + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) + + + +
+ <link linkend="simple_test_article.one">One</link> + + A + + + Lorem ipsum dolor. Sit amet quis hendrerit pretium massa. Et imperdiet sit + luctus et nam. Eget neque vivamus nec aliquam vestibulum. Venenatis id penatibus. + Rutrum lobortis tempora. Turpis cras imperdiet. Quis parturient quam sed non + libero donec in ut aliquam aliquam purus maecenas con dolor in est felis lorem + amet vel. Risus mauris felis. Libero felis fringilla. Sed cursus metus dolor + iaculis eget sit ac commodo. Molestie interdum nunc. Erat auctor suscipit. + Turpis quisque nonummy. Integer vestibulum vivamus vulputate euismod et sed + pretium urna metus scelerisque urna massa vestibulum neque. + + + B + +
+
diff --git a/src/boost/tools/quickbook/test/python/simple_custom_pretty_print.xml b/src/boost/tools/quickbook/test/python/simple_custom_pretty_print.xml new file mode 100644 index 000000000..07b71e5bf --- /dev/null +++ b/src/boost/tools/quickbook/test/python/simple_custom_pretty_print.xml @@ -0,0 +1,42 @@ + + +
+ Simple Test Article + + + 2016 Daniel James + + + + Distributed under the Boost Software License, + Version 1.0. (See accompanying file LICENSE_1_0.txt + or copy at http://www.boost.org/LICENSE_1_0.txt) + + + +
+ <link linkend="simple_test_article.one">One</link> + + A + + + Lorem ipsum dolor. Sit amet quis hendrerit pretium + massa. Et imperdiet sit luctus et nam. Eget neque + vivamus nec aliquam vestibulum. Venenatis id penatibus. + Rutrum lobortis tempora. Turpis cras imperdiet. Quis + parturient quam sed non libero donec in ut aliquam + aliquam purus maecenas con dolor in est felis lorem + amet vel. Risus mauris felis. Libero felis fringilla. + Sed cursus metus dolor iaculis eget sit ac commodo. + Molestie interdum nunc. Erat auctor suscipit. Turpis + quisque nonummy. Integer vestibulum vivamus vulputate + euismod et sed pretium urna metus scelerisque urna + massa vestibulum neque. + + + B + +
+
diff --git a/src/boost/tools/quickbook/test/python/simple_no_pretty_print.xml b/src/boost/tools/quickbook/test/python/simple_no_pretty_print.xml new file mode 100644 index 000000000..258b4339f --- /dev/null +++ b/src/boost/tools/quickbook/test/python/simple_no_pretty_print.xml @@ -0,0 +1,36 @@ + + +
+ Simple Test Article + + + + + + 2016 + Daniel James + + + + + Distributed under the Boost Software License, Version 1.0. + (See accompanying file LICENSE_1_0.txt or copy at + http://www.boost.org/LICENSE_1_0.txt) + + + + + + + +
+<link linkend="simple_test_article.one">One</link> +A +Lorem ipsum dolor. Sit amet quis hendrerit pretium massa. Et imperdiet sit luctus et nam. Eget neque vivamus nec aliquam vestibulum. Venenatis id penatibus. Rutrum lobortis tempora. Turpis cras imperdiet. Quis parturient quam sed non libero donec in ut aliquam aliquam purus maecenas con dolor in est felis lorem amet vel. Risus mauris felis. Libero felis fringilla. Sed cursus metus dolor iaculis eget sit ac commodo. Molestie interdum nunc. Erat auctor suscipit. Turpis quisque nonummy. Integer vestibulum vivamus vulputate euismod et sed pretium urna metus scelerisque urna massa vestibulum neque. +B
+
+ diff --git a/src/boost/tools/quickbook/test/python/simple_no_self_linked.xml b/src/boost/tools/quickbook/test/python/simple_no_self_linked.xml new file mode 100644 index 000000000..37dce222e --- /dev/null +++ b/src/boost/tools/quickbook/test/python/simple_no_self_linked.xml @@ -0,0 +1,36 @@ + + +
+ Simple Test Article + + + 2016 Daniel James + + + + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) + + + +
+ One + + A + + + Lorem ipsum dolor. Sit amet quis hendrerit pretium massa. Et imperdiet sit + luctus et nam. Eget neque vivamus nec aliquam vestibulum. Venenatis id penatibus. + Rutrum lobortis tempora. Turpis cras imperdiet. Quis parturient quam sed non + libero donec in ut aliquam aliquam purus maecenas con dolor in est felis lorem + amet vel. Risus mauris felis. Libero felis fringilla. Sed cursus metus dolor + iaculis eget sit ac commodo. Molestie interdum nunc. Erat auctor suscipit. + Turpis quisque nonummy. Integer vestibulum vivamus vulputate euismod et sed + pretium urna metus scelerisque urna massa vestibulum neque. + + + B + +
+
diff --git a/src/boost/tools/quickbook/test/python/sub1/a.qbk b/src/boost/tools/quickbook/test/python/sub1/a.qbk new file mode 100644 index 000000000..f3abe6ebf --- /dev/null +++ b/src/boost/tools/quickbook/test/python/sub1/a.qbk @@ -0,0 +1,9 @@ +[/ + Copyright 2012-2013 Daniel James + + Distributed under the Boost Software License, Version 1.0. + (See accompanying file LICENSE_1_0.txt or copy at + http://www.boost.org/LICENSE_1_0.txt) +] + +a diff --git a/src/boost/tools/quickbook/test/python/sub2/b.qbk b/src/boost/tools/quickbook/test/python/sub2/b.qbk new file mode 100644 index 000000000..9b4336bdc --- /dev/null +++ b/src/boost/tools/quickbook/test/python/sub2/b.qbk @@ -0,0 +1,9 @@ +[/ + Copyright 2012-2013 Daniel James + + Distributed under the Boost Software License, Version 1.0. + (See accompanying file LICENSE_1_0.txt or copy at + http://www.boost.org/LICENSE_1_0.txt) +] + +b diff --git a/src/boost/tools/quickbook/test/python/svg_missing.qbk b/src/boost/tools/quickbook/test/python/svg_missing.qbk new file mode 100644 index 000000000..1b54ece45 --- /dev/null +++ b/src/boost/tools/quickbook/test/python/svg_missing.qbk @@ -0,0 +1,11 @@ +[/ + Copyright 2012-2013 Daniel James + + Distributed under the Boost Software License, Version 1.0. + (See accompanying file LICENSE_1_0.txt or copy at + http://www.boost.org/LICENSE_1_0.txt) +] + +[article Dependencies for missing svg] + +[$missing.svg] diff --git a/src/boost/tools/quickbook/test/python/svg_missing_deps.txt b/src/boost/tools/quickbook/test/python/svg_missing_deps.txt new file mode 100644 index 000000000..91487e85e --- /dev/null +++ b/src/boost/tools/quickbook/test/python/svg_missing_deps.txt @@ -0,0 +1,4 @@ +# Copyright 2012-2013 Daniel James +# Distributed under the Boost Software License, Version 1.0. +# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) +svg_missing.qbk diff --git a/src/boost/tools/quickbook/test/python/svg_missing_locs.txt b/src/boost/tools/quickbook/test/python/svg_missing_locs.txt new file mode 100644 index 000000000..0f4c9b806 --- /dev/null +++ b/src/boost/tools/quickbook/test/python/svg_missing_locs.txt @@ -0,0 +1,5 @@ +# Copyright 2012-2013 Daniel James +# Distributed under the Boost Software License, Version 1.0. +# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) +- html/missing.svg ++ svg_missing.qbk diff --git a/src/boost/tools/quickbook/test/quickbook-testing.jam b/src/boost/tools/quickbook/test/quickbook-testing.jam new file mode 100644 index 000000000..a4529497c --- /dev/null +++ b/src/boost/tools/quickbook/test/quickbook-testing.jam @@ -0,0 +1,185 @@ +# +# Copyright (c) 2005 João Abecasis +# +# Distributed under the Boost Software License, Version 1.0. (See +# accompanying file LICENSE_1_0.txt or copy at +# http://www.boost.org/LICENSE_1_0.txt) +# + +import feature ; +import generators ; +import modules ; +import project ; +import targets ; +import testing ; +import toolset ; +import type ; + +feature.feature quickbook-testing.quickbook-command : : free dependency ; +feature.feature : : free ; +feature.feature : : free path ; +feature.feature : : free ; + +type.register QUICKBOOK_INPUT : quickbook ; +type.register QUICKBOOK_OUTPUT ; +type.register QUICKBOOK_HTML_OUTPUT ; + +generators.register-standard quickbook-testing.process-quickbook : QUICKBOOK_INPUT : QUICKBOOK_OUTPUT ; +generators.register-standard quickbook-testing.process-quickbook-html : QUICKBOOK_INPUT : QUICKBOOK_HTML_OUTPUT ; + +################################################################################ +# +# quickbook-test - generates a test for quickbook itself. A quickbook-test is +# actually made up of two tests: +# $(target-name).boostbook : +# generate boostbook from $(input) or $(target-name).quickbook +# +# $(target-name): +# compare generated boostbook to $(reference-output) or +# $(input).gold or $(target-name).gold +# +rule quickbook-test ( target-name : input ? : reference-output ? : requirements * ) +{ + input ?= $(target-name).quickbook ; + reference-output ?= $(input:S=.gold) ; + reference-output-html = $(input:S=.gold-html) ; + + local project = [ project.current ] ; + + local boost-root = [ modules.peek : BOOST_ROOT ] ; + + local t1 = + [ targets.create-typed-target QUICKBOOK_OUTPUT + : $(project) + : $(target-name).boostbook + : $(input) + : $(requirements) + $(target-name).test + $(boost-root)/tools/quickbook/src//quickbook + ] ; + + local t2 = + [ targets.create-typed-target RUN + : $(project) + : $(target-name) + : $(boost-root)/tools/quickbook/test/src/text_diff.cpp + : $(requirements) + $(target-name).test2 + $(reference-output) + $(target-name).boostbook + on + ] ; + + local t1-html = + [ targets.create-typed-target QUICKBOOK_HTML_OUTPUT + : $(project) + : $(target-name).html + : $(input) + : $(requirements) + $(target-name).test-html + $(boost-root)/tools/quickbook/src//quickbook + ] ; + + local t2-html = + [ targets.create-typed-target RUN + : $(project) + : $(target-name)-compare-html + : $(boost-root)/tools/quickbook/test/src/text_diff.cpp + : $(requirements) + $(target-name).test-html + $(reference-output-html) + $(target-name).html + on + ] ; + + local all-tests = [ modules.peek testing : .all-tests ] ; + all-tests += $(t2) $(t2-html) ; + modules.poke testing : .all-tests : $(all-tests) ; + + return $(t1) $(t2) $(t1-html) $(t2-html) ; +} + +rule quickbook-fail-test ( target-name : input ? : requirements * ) +{ + input ?= $(target-name).quickbook ; + + local project = [ project.current ] ; + + local boost-root = [ modules.peek : BOOST_ROOT ] ; + + local t = + [ targets.create-typed-target RUN_FAIL + : $(project) + : $(target-name) + : $(boost-root)/tools/quickbook/src//quickbook + : $(requirements) + $(input) + on + $(input) + ] + ; + + local all-tests = [ modules.peek testing : .all-tests ] ; + all-tests += $(t) ; + modules.poke testing : .all-tests : $(all-tests) ; + + return $(t) ; +} + +rule quickbook-error-test ( target-name : input ? : requirements * ) +{ + input ?= $(target-name).quickbook ; + + local project = [ project.current ] ; + + local boost-root = [ modules.peek : BOOST_ROOT ] ; + + local t = + [ targets.create-typed-target RUN + : $(project) + : $(target-name) + : $(boost-root)/tools/quickbook/src//quickbook + : $(requirements) + $(input) + --expect-errors + on + $(input) + ] + ; + + local all-tests = [ modules.peek testing : .all-tests ] ; + all-tests += $(t) ; + modules.poke testing : .all-tests : $(all-tests) ; + + return $(t) ; +} + +################################################################################ +toolset.flags quickbook-testing.process-quickbook quickbook-command ; +toolset.flags quickbook-testing.process-quickbook QB-DEFINES ; +toolset.flags quickbook-testing.process-quickbook XINCLUDE ; +toolset.flags quickbook-testing.process-quickbook INCLUDES ; +toolset.flags quickbook-testing.process-quickbook-html quickbook-command ; +toolset.flags quickbook-testing.process-quickbook-html QB-DEFINES ; +toolset.flags quickbook-testing.process-quickbook-html XINCLUDE ; +toolset.flags quickbook-testing.process-quickbook-html INCLUDES ; + +rule process-quickbook ( target : source : properties * ) +{ + DEPENDS $(target) : [ on $(target) return $(quickbook-command) ] ; +} + +actions process-quickbook bind quickbook-command +{ + $(quickbook-command) $(>) --output-file=$(<) --debug -D"$(QB-DEFINES)" -I"$(INCLUDES)" --xinclude-base="$(XINCLUDE)" +} + +rule process-quickbook-html ( target : source : properties * ) +{ + DEPENDS $(target) : [ on $(target) return $(quickbook-command) ] ; +} + +actions process-quickbook-html bind quickbook-command +{ + $(quickbook-command) $(>) --output-format=onehtml --output-file=$(<) --debug -D"$(QB-DEFINES)" -I"$(INCLUDES)" --xinclude-base="$(XINCLUDE)" +} diff --git a/src/boost/tools/quickbook/test/quickbook_manual-1_4.gold b/src/boost/tools/quickbook/test/quickbook_manual-1_4.gold new file mode 100644 index 000000000..86d2eda66 --- /dev/null +++ b/src/boost/tools/quickbook/test/quickbook_manual-1_4.gold @@ -0,0 +1,3945 @@ + + +
+ Quickbook 1.4 + + + + Joel de Guzman + + + Eric Niebler + + + + 2002 2004 2006 Joel de Guzman, + Eric Niebler + + + + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) + + + + WikiWiki style documentation tool + + +
+ <link linkend="quickbook.intro">Introduction</link> +
+ + Why program by hand in five days what + you can spend five years of your life automating? + + + -- Terrence Parr, author ANTLR/PCCTS + +
+ + Well, QuickBook started as a weekend hack. It was originally intended to be + a sample application using Spirit. + What is it? What you are viewing now, this documentation, is autogenerated + by QuickBook. These files were generated from one master: + +
+ + quickbook.qbk + +
+ + Originally named QuickDoc, this funky tool that never dies evolved into a funkier + tool thanks to Eric Niebler who resurrected the project making it generate + BoostBook + instead of HTML. The BoostBook + documentation format is an extension of DocBook, + an SGML or XML based format for describing documentation. + + + QuickBook is a WikiWiki style documentation tool geared towards C++ documentation + using simple rules and markup for simple formatting tasks. QuickBook extends + the WikiWiki concept. Like the WikiWiki, QuickBook documents are simple text + files. A single QuickBook document can generate a fully linked set of nice + HTML and PostScript/PDF documents complete with images and syntax- colorized + source code. + + + Features include: + + + + + generate BoostBook + xml, to generate HTML, PostScript and PDF + + + + + simple markup to link to Doxygen-generated entities + + + + + macro system for simple text substitution + + + + + simple markup for italics, bold, preformatted, blurbs, code samples, tables, + URLs, anchors, images, etc. + + + + + automatic syntax coloring of code samples + + + + + CSS support + + + +
+
+ <link linkend="quickbook.change_log">Change Log</link> + + Version + 1.3 + + + + + Quickbook file inclusion [include]. + + + + + Better xml output (pretty layout). Check out the generated XML. + + + + + Regression testing facility: to make sure your document will always be + compatible (full backward compatibility) regardless of changes to QuickBook. + + + + + Code cleanup and refactoring. + + + + + Allow phrase markup in the doc-info. + + + + + Preformatted code blocks via ``code`` (double ticks) allows code in tables + and lists, for example. + + + + + Quickbook versioning; allows full backward compatibility. You have to add + [quickbook 1.3] to the doc-info header to enable the new features. Without + this, QuickBook will assume that the document is a pre-1.3 document. + + + + + Better (intuitive) paragraph termination. Some markups may terminate a + paragraph. Example: +[section x] +blah... +[endsect] + + + + + Fully qualified section and headers. Subsection names are concatenated + to the ID to avoid clashing. Example: doc_name.sect_name.sub_sect_name.sub_sub_sect_name + + + + + Better &nbsp; and whitespace handling in code snippets. + + + + + [xinclude] fixes up the relative path to the target XML file when input_directory + is not the same as the output_directory. + + + + + Allow untitled tables. + + + + + Allow phrase markups in section titles. + + + + + Allow escaping back to QuickBook from code, code blocks and inline code. + + + + + Footnotes, with the [footnote This is the footnote] syntax. + + + + + Post-processor bug fix for escaped XML code that it does not recognize. + + + + + Replaceable, with the [~replacement] syntax. + + + + + Generic Headers + + + + + Code changes to allow full recursion (i.e. Collectors and push/pop functions) + + + + + Various code cleanup/maintenance + + + + + Templates! + + + + + [conceptref] for referencing BoostBook <concept> entities. + + + + + Allow escape of spaces. The escaped space is removed from the output. Syntax: + \ . + + + + + Nested comments are now allowed. + + + + + Quickbook blocks can nest inside comments. + + + + + Import facility. + + + + + Callouts on imported code + + + + + Simple markups can now span a whole block. + + + + + Blurbs, Admonitions + and table cells (see Tables) + may now contain paragraphs. + + + + + \n + and [br] are now deprecated. + + + +
+
+ <link linkend="quickbook.syntax">Syntax Summary</link> + + A QuickBook document is composed of one or more blocks. An example of a block + is the paragraph or a C++ code snippet. Some blocks have special mark-ups. + Blocks, except code snippets which have their own grammar (C++ or Python), + are composed of one or more phrases. A phrase can be a simple contiguous run + of characters. Phrases can have special mark-ups. Marked up phrases can recursively + contain other phrases, but cannot contain blocks. A terminal is a self contained + block-level or phrase-level element that does not nest anything. + + + Blocks, in general, are delimited by two end-of-lines (the block terminator). + Phrases in each block cannot contain a block terminator. This way, syntax errors + such as un-matched closing brackets do not go haywire and corrupt anything + past a single block. + +
+ <link linkend="quickbook.syntax.comments">Comments</link> + + Can be placed anywhere. + +[/ comment (no output generated) ] + +[/ comments can be nested [/ some more here] ] + +[/ Quickbook blocks can nest inside comments. [*Comment this out too!] ] + +
+
+ <link linkend="quickbook.syntax.phrase">Phrase Level Elements</link> +
+ <link linkend="quickbook.syntax.phrase.font_styles">Font Styles</link> +['italic], [*bold], [_underline], [^teletype], [-strikethrough] + + + will generate: + + + italic, bold, underline, teletype, strikethrough + + + Like all non-terminal phrase level elements, this can of course be nested: + +[*['bold-italic]] + + + will generate: + + + bold-italic + +
+
+ <link linkend="quickbook.syntax.phrase.replaceable">Replaceable</link> + + When you want content that may or must be replaced by the user, use the + syntax: + +[~replacement] + + + This will generate: + + + replacement + +
+
+ <link linkend="quickbook.syntax.phrase.quotations">Quotations</link> +["A question that sometimes drives me hazy: am I or are the others crazy?]--Einstein + + + will generate: + + + A question that sometimes drives me hazy: am I or are the others + crazy?--Einstein + + + Note the proper left and right quote marks. Also, while you can simply + use ordinary quote marks like "quoted", our quotation, above, + will generate correct DocBook quotations (e.g. <quote>quoted</quote>). + + + Like all phrase elements, quotations may be nested. Example: + +["Here's the rule for bargains: ["Do other men, for they would do you.] That's +the true business precept.] + + + will generate: + + + Here's the rule for bargains: Do other men, for they would + do you. That's the true business precept. + +
+
+ <link linkend="quickbook.syntax.phrase.simple_formatting">Simple formatting</link> + + Simple markup for formatting text, common in many applications, is now + supported: + +/italic/, *bold*, _underline_, =teletype= + + + will generate: + + + italic, bold, underline, teletype + + + Unlike QuickBook's standard formatting scheme, the rules for simpler alternatives + are much stricter + + Thanks to David Barrett, author of Qwiki, + for sharing these samples and teaching me these obscure formatting rules. + I wasn't sure at all if Spirit, + being more or less a formal EBNF parser, can handle the context sensitivity + and ambiguity. + + . + + + + + Simple markups cannot nest. You can combine a simple markup with a + nestable markup. + + + + + Simple markups cannot contain any other form of quickbook markup. + + + + + A non-space character must follow the leading markup + + + + + A non-space character must precede the trailing markup + + + + + A space or a punctuation must follow the trailing markup + + + + + If the matching markup cannot be found within a block, the formatting + will not be applied. This is to ensure that un-matched formatting markups, + which can be a common mistake, does not corrupt anything past a single + block. We do not want the rest of the document to be rendered bold + just because we forgot a trailing '*'. A single block is terminated + by two end of lines or the close bracket: ']'. + + + + + A line starting with the star will be interpreted as an unordered list. + See Unordered + lists. + + + + + More Formatting Samples + + + + + + Markup + + + + + Result + + + + + + + + + *Bold* + + + + + Bold + + + + + + + *Is bold* + + + + + Is bold + + + + + + + * Not bold* *Not bold * * Not bold * + + + + + * Not bold* *Not bold * * Not bold * + + + + + + + This*Isn't*Bold (no bold) + + + + + This*Isn't*Bold (no bold) + + + + + + + (*Bold Inside*) (parenthesis not bold) + + + + + (Bold Inside) (parenthesis not + bold) + + + + + + + *(Bold Outside)* (parenthesis bold) + + + + + (Bold Outside) (parenthesis + bold) + + + + + + + 3*4*5 = 60 (no bold) + + + + + 3*4*5 = 60 (no bold) + + + + + + + 3 * 4 * 5 = 60 (no bold) + + + + + 3 * 4 * 5 = 60 (no bold) + + + + + + + 3 *4* 5 = 60 (4 is bold) + + + + + 3 4 5 = 60 (4 is bold) + + + + + + + *This is bold* this is not *but this is* + + + + + This is bold this is not but this is + + + + + + + *This is bold*. + + + + + This is bold. + + + + + + + *B*. (bold B) + + + + + B. (bold B) + + + + + + + ['*Bold-Italic*] + + + + + Bold-Italic + + + + + + + *side-by*/-side/ + + + + + side-by-side + + + + + +
+ + As mentioned, simple markups cannot go past a single block. The text from + "have" to "full" in the following paragraph will be + rendered as bold: + +Baa baa black sheep, *have you any wool? +Yes sir, yes sir, three bags full!* +One for the master, one for the dame, +And one for the little boy who lives down the lane. + + + Baa baa black sheep, have you any wool? Yes sir, + yes sir, three bags full! One for the master, one for the dame, + And one for the little boy who lives down the lane. + + + But in the following paragraph, bold is not applied: + +Baa baa black sheep, *have you any wool? +Yes sir, yes sir, three bags full! +One for the master, one for the dame, +And one for the little boy who lives down the lane. + + + Baa baa black sheep, *have you any wool? Yes sir, yes sir, three bags full! + One for the master, one for the dame, And one for the little boy who lives + down the lane. + +
+
+ <link linkend="quickbook.syntax.phrase.inline_code">Inline code</link> + + Inlining code in paragraphs is quite common when writing C++ documentation. + We provide a very simple markup for this. For example, this: + +This text has inlined code `int main() { return 0; }` in it. + + + will generate: + + + This text has inlined code int main() { return 0; } + in it. The code will be syntax highlighted. + + + + We simply enclose the code with the tick: "`", not the + single quote: "'". + Note too that `some code` is preferred over [^some code]. + + +
+
+ <link linkend="quickbook.syntax.phrase.code_blocks">Code blocks</link> + + Preformatted code simply starts with a space or a tab (See Code). + However, such a simple syntax cannot be used as phrase elements in lists + (See Ordered + lists and Unordered + lists), tables (See Tables), + etc. Inline code (see above) can. The problem is, inline code does not + allow formatting with newlines, spaces, and tabs. These are lost. + + + We provide a phrase level markup that is a mix between the two. By using + the double-tick, instead of the single-tick, we are telling QuickBook to + use preformatted blocks of code. Example: + +`` + #include <iostream> + + int main() + { + std::cout << "Hello, World!" << std::endl; + return 0; + } +`` + + + will generate: + + +#include <iostream> + +int main() +{ + std::cout << "Hello, World!" << std::endl; + return 0; +} + + +
+
+ <link linkend="quickbook.syntax.phrase.source_mode">Source Mode</link> + + If a document contains more than one type of source code then the source + mode may be changed dynamically as the document is processed. All QuickBook + documents are initially in C++ mode by default, though an alternative initial + value may be set in the Document + section. + + + To change the source mode, use the [source-mode] markup, + where source-mode is one of the supported modes. For + example, this: + +Python's [python] `import` is rather like C++'s [c++] `#include`. A +C++ comment `// looks like this` whereas a Python comment [python] +`# looks like this`. + + + will generate: + + + Python's import is rather + like C++'s #include. + A C++ comment // looks like this + whereas a Python comment #looks like this. + + + Supported Source Modes + + + + + + Mode + + + + + Source Mode Markup + + + + + + + + + C++ + + + + + [c++] + + + + + + + Python + + + + + [python] + + + + + +
+ + + The source mode strings are lowercase. + + +
+
+ <link linkend="quickbook.syntax.phrase.line_break">line-break</link> +[br] + + + + [br] is now deprecated. Blurbs, + Admonitions + and table cells (see Tables) + may now contain paragraphs. + + +
+
+ <link linkend="quickbook.syntax.phrase.anchors">Anchors</link> +[#named_anchor] + + + A named anchor is a hook that can be referenced by a link elsewhere in + the document. You can then reference an anchor with [link named_anchor +Some link text]. + See Anchor links, + Section and Heading. + +
+ + + + +
+ <link linkend="quickbook.syntax.phrase.escape">Escape</link> + + The escape mark-up is used when we don't want to do any processing. + +''' +escape (no processing/formatting) +''' + + + Escaping allows us to pass XML markup to BoostBook + or DocBook. For example: + +''' +<emphasis role="bold">This is direct XML markup</emphasis> +''' + + + This is direct XML markup + + + + Be careful when using the escape. The text must conform to BoostBook/DocBook syntax. + + +
+
+ <link linkend="quickbook.syntax.phrase.single_char_escape">Single + char escape</link> + + The backslash may be used to escape a single punctuation character. The + punctuation immediately after the backslash is passed without any processing. + This is useful when we need to escape QuickBook punctuations such as [ and ]. + For example, how do you escape the triple quote? Simple: \'\'\' + + + \n + has a special meaning. It is used to generate line breaks. + + + + \n + and [br] are now deprecated. Blurbs, + Admonitions + and table cells (see Tables) + may now contain paragraphs. + + + + The escaped space: \ also + has a special meaning. The escaped space is removed from the output. + +
+
+ <link linkend="quickbook.syntax.phrase.images">Images</link> +[$image.jpg] + +
+
+ <link linkend="quickbook.syntax.phrase.footnotes">Footnotes</link> + + As of version 1.3, QuickBook supports footnotes. Just put the text of the + footnote in a [footnote] block, and the text will be put at the + bottom of the current page. For example, this: + +[footnote A sample footnote] + + + will generate this + + A sample footnote + + . + +
+ <link linkend="quickbook.syntax.phrase.footnotes.macro_expansion">Macro + Expansion</link> +__a_macro_identifier__ + + + See Macros for details. + +
+
+ <link linkend="quickbook.syntax.phrase.footnotes.template_expansion">Template + Expansion</link> +[a_template_identifier] + + + See Templates + for details. + +
+
+
+
+ <link linkend="quickbook.syntax.block">Block Level Elements</link> +
+ <link linkend="quickbook.syntax.block.document">Document</link> + + Every document must begin with a Document Info section, which should look + like this: + +[document-type The Document Title + [quickbook 1.3] + [version 1.0] + [id the_document_name] + [dirname the_document_dir] + [copyright 2000 2002 2003 Joe Blow, Jane Doe] + [purpose The document's reason for being] + [category The document's category] + [authors [Blow, Joe], [Doe, Jane]] + [license The document's license] + [source-mode source-type] +] + + + Where document-type is one of: + + + + + book + + + + + article + + + + + library + + + + + chapter + + + + + part + + + + + appendix + + + + + preface + + + + + qandadiv + + + + + qandaset + + + + + reference + + + + + set + + + + + quickbook 1.3 declares the version of quickbook the document is written + for. In its absence, version 1.1 is assumed. + + + version, id, dirname, + copyright, purpose, category, + authors, license, last-revision + and source-mode are optional information. + + + source-type is a lowercase string setting the initial + Source Mode. + If the source-mode field is omitted, a default value + of c++ will be used. + +
+
+ <link linkend="quickbook.syntax.block.section">Section</link> + + Starting a new section is accomplished with: + +[section:id The Section Title] + + + where id is optional. id will be the filename of the + generated section. If it is not present, "The Section Title" + will be normalized and become the id. Valid characters are a-Z, + A-Z, 0-9 and _. + All non-valid characters are converted to underscore and all upper-case + are converted to lower case. Thus: "The Section Title" will be + normalized to "the_section_title". + + + End a section with: + +[endsect] + + + Sections can nest, and that results in a hierarchy in the table of contents. + +
+
+ <link linkend="quickbook.syntax.block.xinclude">xinclude</link> + + You can include another XML file with: + +[xinclude file.xml] + + + This is useful when file.xml has been generated by Doxygen and contains + your reference section. + +
+
+ <link linkend="quickbook.syntax.block.paragraphs">Paragraphs</link> + + Paragraphs start left-flushed and are terminated by two or more newlines. + No markup is needed for paragraphs. QuickBook automatically detects paragraphs + from the context. Block markups [section, endsect, h1, h2, h3, h4, h5, + h6, blurb, (block-quote) ':', pre, def, table and include ] may also terminate + a paragraph. + +
+
+ <link linkend="quickbook.syntax.block.lists">Lists</link> +
+ <link linkend="quickbook.syntax.block.lists.ordered_lists">Ordered + lists</link> +# One +# Two +# Three + + + will generate: + + + + + One + + + + + Two + + + + + Three + + + +
+
+ <link linkend="quickbook.syntax.block.lists.list_hierarchies">List + Hierarchies</link> + + List hierarchies are supported. Example: + +# One +# Two +# Three + # Three.a + # Three.b + # Three.c +# Four + # Four.a + # Four.a.i + # Four.a.ii +# Five + + + will generate: + + + + + One + + + + + Two + + + + + Three + + + + Three.a + + + + + Three.b + + + + + Three.c + + + + + + + + Fourth + + + + Four.a + + + + Four.a.i + + + + + Four.a.ii + + + + + + + + + + + Five + + + +
+
+ <link linkend="quickbook.syntax.block.lists.long_list_lines">Long + List Lines</link> + + Long lines will be wrapped appropriately. Example: + +# A short item. +# A very long item. A very long item. A very long item. + A very long item. A very long item. A very long item. + A very long item. A very long item. A very long item. + A very long item. A very long item. A very long item. + A very long item. A very long item. A very long item. +# A short item. + + + + + A short item. + + + + + A very long item. A very long item. A very long item. A very long + item. A very long item. A very long item. A very long item. A very + long item. A very long item. A very long item. A very long item. + A very long item. A very long item. A very long item. A very long + item. + + + + + A short item. + + + +
+
+ <link linkend="quickbook.syntax.block.lists.unordered_lists">Unordered + lists</link> +* First +* Second +* Third + + + will generate: + + + + + First + + + + + Second + + + + + Third + + + +
+
+ <link linkend="quickbook.syntax.block.lists.mixed_lists">Mixed lists</link> + + Mixed lists (ordered and unordered) are supported. Example: + +# One +# Two +# Three + * Three.a + * Three.b + * Three.c +# Four + + + will generate: + + + + + One + + + + + Two + + + + + Three + + + + Three.a + + + + + Three.b + + + + + Three.c + + + + + + + + Four + + + + + And... + +# 1 + * 1.a + # 1.a.1 + # 1.a.2 + * 1.b +# 2 + * 2.a + * 2.b + # 2.b.1 + # 2.b.2 + * 2.b.2.a + * 2.b.2.b + + + will generate: + + + + + 1 + + + + 1.a + + + + 1.a.1 + + + + + 1.a.2 + + + + + + + + 1.b + + + + + + + + 2 + + + + 2.a + + + + + 2.b + + + + 2.b.1 + + + + + 2.b.2 + + + + 2.b.2.a + + + + + 2.b.2.b + + + + + + + + + + + + +
+
+
+ <link linkend="quickbook.syntax.block.code">Code</link> + + Preformatted code starts with a space or a tab. The code will be syntax + highlighted according to the current Source + Mode: + +#include <iostream> + +int main() +{ + // Sample code + std::cout << "Hello, World\n"; + return 0; +} + +import cgi + +def cookForHtml(text): + '''"Cooks" the input text for HTML.''' + + return cgi.escape(text) + + + Macros that are already defined are expanded in source code. Example: + +[def __array__ [@http://www.boost.org/doc/html/array/reference.html array]] +[def __boost__ [@http://www.boost.org/libs/libraries.htm boost]] + + using __boost__::__array__; + + + Generates: + +using boost::array; + +
+
+ <link linkend="quickbook.syntax.block.escape_back">Escaping Back To + QuickBook</link> + + Inside code, code blocks and inline code, QuickBook does not allow any + markup to avoid conflicts with the target syntax (e.g. c++). In case you + need to switch back to QuickBook markup inside code, you can do so using + a language specific escape-back delimiter. In C++ + and Python, the delimiter is the double tick (back-quote): "``" + and "``". Example: + +void ``[@http://en.wikipedia.org/wiki/Foo#Foo.2C_Bar_and_Baz foo]``() +{ +} + + + Will generate: + +void foo() +{ +} + + + When escaping from code to QuickBook, only phrase level markups are allowed. + Block level markups like lists, tables etc. are not allowed. + +
+
+ <link linkend="quickbook.syntax.block.preformatted">Preformatted</link> + + Sometimes, you don't want some preformatted text to be parsed as C++. In + such cases, use the [pre ... ] markup block. + +[pre + + Some *preformatted* text Some *preformatted* text + + Some *preformatted* text Some *preformatted* text + + Some *preformatted* text Some *preformatted* text + +] + + + Spaces, tabs and newlines are rendered as-is. Unlike all quickbook block + level markup, pre (and Code) are the only ones that allow multiple newlines. + The markup above will generate: + +Some preformatted text Some preformatted text + + Some preformatted text Some preformatted text + + Some preformatted text Some preformatted text + + + + Notice that unlike Code, phrase markup such as font style is still permitted + inside pre blocks. + +
+
+ <link linkend="quickbook.syntax.block.blockquote">Blockquote</link> +[:sometext...] + +
+ + Indents the paragraph. This applies to one paragraph only. + +
+
+
+ <link linkend="quickbook.syntax.block.admonitions">Admonitions</link> +[note This is a note] +[tip This is a tip] +[important This is important] +[caution This is a caution] +[warning This is a warning] + + + generates DocBook admonitions: + + + + This is a note + + + + + This is a tip + + + + + This is important + + + + + This is a caution + + + + + This is a warning + + + + These are the only admonitions supported by DocBook. + So, for example [information This is some information] + is unlikely to produce the desired effect. + +
+
+ <link linkend="quickbook.syntax.block.headings">Headings</link> +[h1 Heading 1] +[h2 Heading 2] +[h3 Heading 3] +[h4 Heading 4] +[h5 Heading 5] +[h6 Heading 6] + + + Heading + 1 + + + Heading + 2 + + + Heading + 3 + + + Heading + 4 + + + Heading + 5 + + + Heading + 6 + + + Headings 1-3 [h1 h2 and h3] will automatically have anchors with normalized + names with name="section_id.normalized_header_text" + (i.e. valid characters are a-z, A-Z, + 0-9 and _. All non-valid characters + are converted to underscore and all upper-case are converted to lower-case. + For example: Heading 1 in section Section 2 will be normalized to section_2.heading_1). + You can use: + +[link section_id.normalized_header_text The link text] + + + to link to them. See Anchor + links and Section + for more info. + +
+
+ <link linkend="quickbook.syntax.block.generic_heading">Generic Heading</link> + + In cases when you don't want to care about the heading level (1 to 6), + you can use the Generic Heading: + +[heading Heading] + + + The Generic Heading assumes the level, plus one, of + the innermost section where it is placed. For example, if it is placed + in the outermost section, then, it assumes h2. + + + Headings are often used as an alternative to sections. It is used particularly + if you do not want to start a new section. In many cases, however, headings + in a particular section is just flat. Example: + +[section A] +[h2 X] +[h2 Y] +[h2 Z] +[endsect] + + + Here we use h2 assuming that section A is the outermost level. If it is + placed in an inner level, you'll have to use h3, h4, etc. depending on + where the section is. In general, it is the section level plus one. It + is rather tedious, however, to scan the section level everytime. If you + rewrite the example above as shown below, this will be automatic: + +[section A] +[heading X] +[heading Y] +[heading Z] +[endsect] + + + They work well regardless where you place them. You can rearrange sections + at will without any extra work to ensure correct heading levels. In fact, + with section and heading, you + have all you need. h1..h6 becomes + redundant. h1..h6 might be deprecated + in the future. + +
+
+ <link linkend="quickbook.syntax.block.macros">Macros</link> +[def macro_identifier some text] + + + When a macro is defined, the identifier replaces the text anywhere in the + file, in paragraphs, in markups, etc. macro_identifier is a string of non- + white space characters except ']'. A macro may not follow an alphabetic + character or the underscore. The replacement text can be any phrase (even + marked up). Example: + +[def sf_logo [$http://sourceforge.net/sflogo.php?group_id=28447&type=1]] +sf_logo + + + Now everywhere the sf_logo is placed, the picture will be inlined. + + + + + sflogo + + + + + + It's a good idea to use macro identifiers that are distinguishable. For + instance, in this document, macro identifiers have two leading and trailing + underscores (e.g. __spirit__). The reason is to avoid unwanted + macro replacement. + + + + Links (URLS) and images are good candidates for macros. 1) + They tend to change a lot. It is a good idea to place all links and images + in one place near the top to make it easy to make changes. 2) + The syntax is not pretty. It's easier to read and write, e.g. __spirit__ + than [@http://spirit.sourceforge.net Spirit]. + + + Some more examples: + +[def :-) [$theme/smiley.png]] +[def __spirit__ [@http://spirit.sourceforge.net Spirit]] + + + (See Images and + Links) + + + Invoking these macros: + +Hi __spirit__ :-) + + + will generate this: + + + Hi Spirit + + smiley + + + +
+
+ <link linkend="quickbook.syntax.block.predefined_macros">Predefined + Macros</link> + + Quickbook has some predefined macros that you can already use. + + + Predefined Macros + + + + + + Macro + + + + + Meaning + + + + + Example + + + + + + + + + __DATE__ + + + + + Today's date + + + + + 2000-Dec-20 + + + + + + + __TIME__ + + + + + The current time + + + + + 12:00:00 PM + + + + + + + __FILENAME__ + + + + + Quickbook source filename + + + + + quickbook_manual-1_4.quickbook + + + + + +
+
+
+ <link linkend="quickbook.syntax.block.templates">Templates</link> + + Templates provide a more versatile text substitution mechanism. Templates + come in handy when you need to create parameterizable, multi-line, boilerplate + text that you specify once and expand many times. Templates accept one + or more arguments. These arguments act like place-holders for text replacement. + Unlike simple macros, which are limited to phrase level markup, templates + can contain block level markup (e.g. paragraphs, code blocks and tables). + + + Example template: + +[template person[name age what] + +Hi, my name is [name]. I am [age] years old. I am a [what]. + +] + + + Template + Identifier + + + Template identifiers can either consist of: + + + + + An initial alphabetic character or the underscore, followed by zero + or more alphanumeric characters or the underscore. This is similar + to your typical C/C++ identifier. + + + + + A single character punctuation (a non-alphanumeric printable character) + + + + + Formal + Template Arguments + + + Template formal arguments are identifiers consisting of an initial alphabetic + character or the underscore, followed by zero or more alphanumeric characters + or the underscore. This is similar to your typical C/C++ identifier. + + + A template formal argument temporarily hides a template of the same name + at the point where the template + is expanded. Note that the body of the person + template above refers to name age + and what as [name] [age] + and [what]. name age + and what are actually templates that exist in the duration + of the template call. + + + Template + Body + + + The template body can be just about any QuickBook block or phrase. There + are actually two forms. Templates may be phrase or block level. Phrase + templates are of the form: + +[template sample[arg1 arg2...argN] replacement text... ] + + + Block templates are of the form: + +[template sample[arg1 arg2...argN] +replacement text... +] + + + The basic rule is as follows: if a newline immediately follows the argument + list, then it is a block template, otherwise, it is a phrase template. + Phrase templates are typically expanded as part of phrases. Like macros, + block level elements are not allowed in phrase templates. + + + Template + Expansion + + + You expand a template this way: + +[template_identifier arg1..arg2..arg3] + + + At template expansion, you supply the actual arguments. The template will + be expanded with your supplied arguments. Example: + +[person James Bond..39..Spy] +[person Santa Clause..87..Big Red Fatso] + + + Which will expand to: + + + Hi, my name is James Bond. I am 39 years old. I am a Spy. + + + Hi, my name is Santa Clause. I am 87 years old. I am a Big Red Fatso. + + + + A word of caution: Templates are recursive. A template can call another + template or even itself, directly or indirectly. There are no control + structures in QuickBook (yet) so this will always mean infinite recursion. + QuickBook can detect this situation and report an error if recursion + exceeds a certain limit. + + + + Each actual argument can be a word, a text fragment or just about any + QuickBook phrase. Arguments + are separated by the double dot ".." and terminated + by the close parenthesis. + + + Nullary Templates + + + Nullary templates look and act like simple macros. Example: + +[template alpha[]'''&#945;'''] +[template beta[]'''&#946;'''] + + + Expanding: + +Some squigles...[*[alpha][beta]] + + We have: + + + Some squiggles...αβ + + + The difference with macros are + + + + + The explicit template + expansion syntax. This is an advantage because, now, we don't + have to use obscure naming conventions like double underscores (e.g. + __alpha__) to avoid unwanted macro replacement. + + + + + The template is expanded at the point where it is invoked. A macro + is expanded immediately at its point of declaration. This is subtle + and can cause a slight difference in behavior especially if you refer + to other macros and templates in the body. + + + + + The empty brackets after the template identifier (alpha[]) + indicates no arguments. If the template body does not look like a template + argument list, we can elide the empty brackets. Example: + +[template aristotle_quote Aristotle: [*['Education is the best provision +for the journey to old age.]]] + + + Expanding: + +Here's a quote from [aristotle_quote]. + + + We have: + + + Here's a quote from Aristotle: Education + is the best provision for the journey to old age.. + + + The disadvantage is that you can't avoid the space between the template + identifier, aristotle_quote, + and the template body "Aristotle...". This space will be part + of the template body. If that space is unwanted, use empty brackets or + use the space escape: "\ ". + Example: + +[template tag\ _tag] + + + Then expanding: + +`struct` x[tag]; + + + We have: + + + struct x_tag; + + + You have a couple of ways to do it. I personally prefer the explicit empty + brackets, though. + + + Simple + Arguments + + + As mentioned, arguments are separated by the double dot "..". + If there are less arguments passed than expected, QuickBook attempts to + break the last argument into two or more arguments following this logic: + + + + + Break the last argument into two, at the first space found ('', + '\n', \t' or '\r'). + + + + + Repeat until there are enough arguments or if there are no more spaces + found (in which case, an error is reported). + + + + + For example: + +[template simple[a b c d] [a][b][c][d]] +[simple w x y z] + + + will produce: + + + wxyz + + + "w x y z" is initially treated as a single argument because we + didn't supply any ".." separators. However, + since simple expects 4 arguments, "w x y z" + is broken down iteratively (applying the logic above) until we have "w", + "x", "y" and "z". + + + QuickBook only tries to get the arguments it needs. For example: + +[simple w x y z trail] + + + will produce: + + + wxyz trail + + + The arguments being: "w", "x", "y" and "z + trail". + + + It should be obvious now that for simple arguments with no spaces, we can + get by without separating the arguments with ".." + separators. It is possible to combine ".." + separators with the argument passing simplification presented above. Example: + +[simple what do you think ..m a n?] + + + will produce: + + + what do you think man? + + + Punctuation + Templates + + + With templates, one of our objectives is to allow us to rewrite QuickBook + in QuickBook (as a qbk library). For that to happen, we need to accommodate + single character punctuation templates which are fairly common in QuickBook. + You might have noticed that single character punctuations are allowed as + template + identifiers. Example: + +[template ![bar] <hey>[bar]</hey>] + + + Now, expanding this: + +[!baz] + + + We will have: + +<hey>baz</hey> + +
+
+ <link linkend="quickbook.syntax.block.blurbs">Blurbs</link> +[blurb :-) [*An eye catching advertisement or note...] + + __spirit__ is an object-oriented recursive-descent parser generator framework + implemented using template meta-programming techniques. Expression templates + allow us to approximate the syntax of Extended Backus-Normal Form (EBNF) + completely in C++. +] + + + will generate this: + + + + + + smiley + + An eye catching advertisement + or note... + + + Spirit is an object-oriented + recursive-descent parser generator framework implemented using template + meta-programming techniques. Expression templates allow us to approximate + the syntax of Extended Backus-Normal Form (EBNF) completely in C++. + + + + + Prefer admonitions + wherever appropriate. + + +
+
+ <link linkend="quickbook.syntax.block.tables">Tables</link> +[table A Simple Table + [[Heading 1] [Heading 2] [Heading 3]] + [[R0-C0] [R0-C1] [R0-C2]] + [[R1-C0] [R1-C1] [R1-C2]] + [[R2-C0] [R2-C1] [R2-C2]] +] + + + will generate: + + + A Simple Table + + + + + + Heading 1 + + + + + Heading 2 + + + + + Heading 3 + + + + + + + + + R0-C0 + + + + + R0-C1 + + + + + R0-C2 + + + + + + + R2-C0 + + + + + R2-C1 + + + + + R2-C2 + + + + + + + R3-C0 + + + + + R3-C1 + + + + + R3-C2 + + + + + +
+ + The table title is optional. The first row of the table is automatically + treated as the table header; that is, it is wrapped in <thead>...</thead> + XML tags. Note that unlike the original QuickDoc, the columns are nested + in [ cells... ]. The syntax is free-format and allows big cells to be formatted + nicely. Example: + +[table Table with fat cells + [[Heading 1] [Heading 2]] + [ + [Row 0, Col 0: a small cell] + [ + Row 0, Col 1: a big fat cell with paragraphs + + Boost provides free peer-reviewed portable C++ source libraries. + + We emphasize libraries that work well with the C++ Standard Library. + Boost libraries are intended to be widely useful, and usable across + a broad spectrum of applications. The Boost license encourages both + commercial and non-commercial use. + ] + ] + [ + [Row 1, Col 0: a small cell] + [Row 1, Col 1: a small cell] + ] +] + + + and thus: + + + Table with fat cells + + + + + + Heading 1 + + + + + Heading 2 + + + + + + + + + Row 0, Col 0: a small cell + + + + + Row 0, Col 1: a big fat cell with paragraphs + + + Boost provides free peer-reviewed portable C++ source libraries. + + + We emphasize libraries that work well with the C++ Standard Library. + Boost libraries are intended to be widely useful, and usable + across a broad spectrum of applications. The Boost license encourages + both commercial and non-commercial use. + + + + + + + Row 1, Col 0: a small cell + + + + + Row 1, Col 1: a small cell + + + + + +
+ + Here's how to have preformatted blocks of code in a table cell: + +[table Table with code + [[Comment] [Code]] + [ + [My first program] + [`` + #include <iostream> + + int main() + { + std::cout << "Hello, World!" << std::endl; + return 0; + } + ``] + ] +] + + + Table with code + + + + + + Comment + + + + + Code + + + + + + + + + My first program + + + + +#include <iostream> + +int main() +{ + std::cout << "Hello, World!" << std::endl; + return 0; +} + + + + + + +
+
+
+ <link linkend="quickbook.syntax.block.variable_lists">Variable Lists</link> +[variablelist A Variable List + [[term 1] [The definition of term 1]] + [[term 2] [The definition of term 2]] + [[term 3] [The definition of term 3]] +] + + + will generate: + + + A Variable List + + term 1 + + + The definition of term 1 + + + + + term 2 + + + The definition of term 2 + + + + + term 3 + + + The definition of term 3 + + + + + + The rules for variable lists are the same as for tables, except that only + 2 "columns" are allowed. The first column contains the terms, + and the second column contains the definitions. Those familiar with HTML + will recognize this as a "definition list". + +
+
+ <link linkend="quickbook.syntax.block.include">Include</link> + + You can include one QuickBook file from another. The syntax is simply: + +[include someother.qbk] + + + The included file will be processed as if it had been cut and pasted into + the current document, with the following exceptions: + + + + + The __FILENAME__ predefined macro will reflect the name of the file currently being + processed. + + + + + Any macros defined in the included file are scoped to that file. + + + + + The [include] directive lets you specify a document + id to use for the included file. When this id is not explicitly specified, + the id defaults to the filename ("someother", in the example + above). You can specify the id like this: + +[include:someid someother.qbk] + + + All auto-generated anchors will use the document id as a unique prefix. + So for instance, if there is a top section in someother.qbk named "Intro", + the named anchor for that section will be "someid.intro", and + you can link to it with [link someid.intro The Intro]. + +
+
+ <link linkend="quickbook.syntax.block.import">Import</link> + + When documenting code, you'd surely need to present code from actual source + files. While it is possible to copy some code and paste them in your QuickBook + file, doing so is error prone and the extracted code in the documentation + tends to get out of sync with the actual code as the code evolves. The + problem, as always, is that once documentation is written, the tendency + is for the docs to languish in the archives without maintenance. + + + QuickBook's import facility provides a nice solution. + + + Example + + + You can effortlessly import code snippets from source code into your QuickBook. + The following illustrates how this is done: + +[import ../test/stub.cpp] +[foo] +[bar] + + + The first line: + +[import ../test/stub.cpp] + + + collects specially marked-up code snippets from stub.cpp + and places them in your QuickBook file as virtual templates. Each of the + specially marked-up code snippets has a name (e.g. foo + and bar in the example + above). This shall be the template identifier for that particular code + snippet. The second and third line above does the actual template expansion: + +[foo] +[bar] + + + And the result is: + + + This is the foo function. + + + This description can have paragraphs... + + + + + lists + + + + + etc. + + + + + And any quickbook block markup. + + +std::string foo() +{ + // return 'em, foo man! + return "foo"; +} + + + + This is the bar function + + +std::string bar() +{ + // return 'em, bar man! + return "bar"; +} + + + + Some trailing text here + + + Code + Snippet Markup + + + Note how the code snippets in stub.cpp + get marked up. We use distinguishable comments following the form: + +//[id +some code here +//] + + + The first comment line above initiates a named code-snippet. This prefix + will not be visible in quickbook. The entire code-snippet in between //[id and //] + will be inserted as a template in quickbook with name id. + The comment //] ends a code-snippet + This too will not be visible in quickbook. + + + Special + Comments + + + Special comments of the form: + +//` some [*quickbook] markup here + + + and: + +/*` some [*quickbook] markup here */ + + + will be parsed by QuickBook. This can contain quickbook blocks + (e.g. sections, paragraphs, tables, etc). In the first case, the initial + slash-slash, tick and white-space shall be ignored. In the second, the + initial slash-star-tick and the final star-slash shall be ignored. + + + Callouts + + + Special comments of the form: + +/*< some [*quickbook] markup here >*/ + + + will be regarded as callouts. These will be collected, numbered and rendered + as a "callout bug" (a small icon with a number). After the whole + snippet is parsed, the callout list is generated. See Callouts + for details. Example: + + +std::string foo_bar() +{ + return "foo-bar"; +} + + + + + + The Mythical FooBar. See Foobar + for details + + + + + return 'em, foo-bar man! + + + + + Checkout stub.cpp to see the actual + code. + +
+
+
+
+ <link linkend="quickbook.install">Installation and configuration</link> + + This section provides some guidelines on how to install and configure BoostBook + and Quickbook under several operating systems. + + + Before continuing, it is very important that you keep this in mind: if you + try to build some documents and the process breaks due to misconfiguration, + be absolutely sure to delete any bin + and bin.v2 directories generated by the build before + trying again. Otherwise your configuration fixes will not take any effect. + +
+ <link linkend="quickbook.install.windows">Windows 2000, XP, 2003, Vista</link> +
+ + Section contributed by Julio M. Merino Vidal + +
+ + The following instructions apply to any Windows system based on Windows 2000, + including Windows XP, Windows 2003 Server and Windows Vista. The paths shown + below are taken from a Windows Vista machine; you will need to adjust them + to match your system in case you are running an older version. + + + + + First of all you need to have a copy of xsltproc + for Windows. There are many ways to get this tool, but to keep things + simple, use the binary + packages made by Igor Zlatkovic. At the very least, you need + to download the following packages: iconv, + zlib, libxml2 + and libxslt. + + + + + Unpack all these packages in the same directory so that you get unique + bin, include + and lib directories within + the hierarchy. These instructions use C:\Users\example\Documents\boost\xml + as the root for all files. + + + + + From the command line, go to the bin + directory and launch xsltproc.exe + to ensure it works. You should get usage information on screen. + + + + + Download Docbook + XML 4.2 and unpack it in the same directory used above. That + is: C:\Users\example\Documents\boost\xml\docbook-xml. + + + + + Download the latest Docbook + XSL version and unpack it, again in the same directory used before. + To make things easier, rename the directory created during the extraction + to docbook-xsl (bypassing the version name): + C:\Users\example\Documents\boost\xml\docbook-xsl. + + + + + Add the following to your user-config.jam + file, which should live in your home directory (%HOMEDRIVE%%HOMEPATH%). + You must already have it somewhere or otherwise you could not be building + Boost (i.e. missing tools configuration). + + + +using xsltproc + : "C:/Users/example/Documents/boost/xml/bin/xsltproc.exe" + ; + +using boostbook + : "C:/Users/example/Documents/boost/xml/docbook-xsl" + : "C:/Users/example/Documents/boost/xml/docbook-xml" + ; + + + The above steps are enough to get a functional BoostBook setup. Quickbook + will be automatically built when needed. If you want to avoid these rebuilds: + + + + + Go to Quickbook's source directory (BOOST_ROOT\tools\quickbook). + + + + + Build the utility by issuing bjam + --v2. + + + + + Copy the resulting quickbook.exe + binary (located under the BOOST_ROOT\bin.v2 + hierarchy) to a safe place. Following our previous example, you can install + it into: C:\Users\example\Documents\boost\xml\bin. + + + + + Add the following to your user-config.jam + file: + + + +using quickbook + : "C:/Users/example/Documents/boost/xml/bin/quickbook.exe" + ; + +
+
+ <link linkend="quickbook.install.linux">Debian, Ubuntu</link> + + The following instructions apply to Debian and its derivatives. They are + based on a Ubuntu Edgy install but should work on other Debian based systems. + + + First install the bjam, + xsltproc, docbook-xsl and + docbook-xml packages. For example, using apt-get: + +sudo apt-get install xsltprc docbook-xsl docbook-xml + + + If you're planning on building boost's documentation, you'll also need to + install the doxygen package + as well. + + + Next, we need to configure Boost Build to compile BoostBook files. Add the + following to your user-config.jam file, which should be in your home + directory. If you don't have one, create a file containing this text. For + more information on setting up user-config.jam, see + the Boost + Build documentation. + +using xsltproc ; + +using boostbook + : /usr/share/xml/docbook/stylesheet/nwalsh + : /usr/share/xml/docbook/schema/dtd/4.2 + ; + +# Remove this line if you're not using doxygen +using doxygen ; + + + The above steps are enough to get a functional BoostBook setup. Quickbook + will be automatically built when needed. If you want to avoid these rebuilds: + + + + + Go to Quickbook's source directory (BOOST_ROOT/tools/quickbook). + + + + + Build the utility by issuing bjam + --v2. + + + + + Copy the resulting quickbook + binary (located under the BOOST_ROOT/bin.v2 + hierarchy) to a safe place. The traditional location is /usr/local/bin. + + + + + Add the following to your user-config.jam + file, using the full path of the quickbook executable: + + + +using quickbook + : /usr/local/bin/quickbook + ; + +
+
+
+ <link linkend="quickbook.editors">Editor Support</link> + + Editing quickbook files is usually done with text editors both simple and powerful. + The following sections list the settings for some editors which can help make + editing quickbook files a bit easier. + + + + + + note + + You may submit your settings, tips, and suggestions to + the authors, or through the docs + Boost Docs mailing list. + + +
+ <link linkend="quickbook.editors.scite">Scintilla Text Editor</link> +
+ + Section contributed by Dean Michael Berris + +
+ + The Scintilla Text Editor (SciTE) is a free source code editor for Win32 + and X. It uses the SCIntilla source code editing component. + + + + + + tip + + SciTE can be downloaded from http://www.scintilla.org/SciTE.html + + + + You can use the following settings to highlight quickbook tags when editing + quickbook files. + +qbk=*.qbk +lexer.*.qbk=props +use.tabs.$(qbk)=0 +tab.size.$(qbk)=4 +indent.size.$(qbk)=4 +style.props.32=$(font.base) +comment.stream.start.props=[/ +comment.stream.end.props=] +comment.box.start.props=[/ +comment.box.middle.props= +comment.box.end.props=] + + + + + + note + + Thanks to Rene Rivera for the above SciTE settings. + + +
+
+
+ <link linkend="quickbook.faq">Frequently Asked Questions</link> + + Can + I use QuickBook for non-Boost documentation? + + + QuickBook can be used for non-Boost documentation with a little extra work. + +
+ + Faq contributed by Michael Marcin + +
+ + When building HTML documentation with BoostBook a Boost C++ Libraries header + is added to the files. When using QuickBook to document projects outside of + Boost this is not desirable. This behavior can be overridden at the BoostBook + level by specifying some XSLT options. When using Boost Build version 2 (BBv2) + this can be achieved by adding parameters to the BoostBook target declaration. + + + For example: + +using quickbook ; + +xml my_doc : my_doc.qbk ; + +boostbook standalone + : + my_doc + : + <xsl:param>boost.image.src=images/my_project_logo.png + <xsl:param>boost.image.alt="\"My Project\"" + <xsl:param>boost.image.w=100 + <xsl:param>boost.image.h=50 + <xsl:param>nav.layout=none + ; + +
+
+ <link linkend="quickbook.ref">Quick Reference</link> + + [cpp] + + + Syntax Compendium + + + + + + To do this... + + + + + Use this... + + + + + See this... + + + + + + + + + comment + + + + + [/ some comment] + + + + + Comments + + + + + + + italics + + + + + ['italics] or /italics/ + + + + + Font Styles + and Simple + formatting + + + + + + + bold + + + + + [*bold] or *bold* + + + + + Font Styles + and Simple + formatting + + + + + + + underline + + + + + [_underline] or _underline_ + + + + + Font Styles + and Simple + formatting + + + + + + + teletype + + + + + [^teletype] or =teletype= + + + + + Font Styles + and Simple + formatting + + + + + + + strikethrough + + + + + [-strikethrough] + + + + + Font Styles + and Simple + formatting + + + + + + + replaceable + + + + + [~replaceable] + + + + + Replaceble + + + + + + + source mode + + + + + [c++] or [python] + + + + + Source Mode + + + + + + + inline code + + + + + `int main();` + + + + + Inline code + + + + + + + code block + + + + + ``int main();`` + + + + + Code + + + + + + + code escape + + + + + ``from c++ to QuickBook`` + + + + + Escaping Back + To QuickBook + + + + + + + line break + + + + + [br] or \n + + + + + line-break + DEPRECATED + + + + + + + anchor + + + + + [#anchor] + + + + + Anchors + + + + + + + link + + + + + [@http://www.boost.org Boost] + + + + + Links + + + + + + + anchor link + + + + + [link section.anchor Link text] + + + + + Anchor links + + + + + + + refentry link + + + + + [link xml.refentry Link text] + + + + + refentry links + + + + + + + function link + + + + + [funcref fully::qualified::function_name Link text] + + + + + function, class, + member, enum, macro, concept or header links + + + + + + + class link + + + + + [classref fully::qualified::class_name Link text] + + + + + function, class, + member, enum, macro, concept or header links + + + + + + + member link + + + + + [memberref fully::qualified::member_name Link text] + + + + + function, class, + member, enum, macro, concept or header links + + + + + + + enum link + + + + + [enumref fully::qualified::enum_name Link text] + + + + + function, class, + member, enum, macro, concept or header links + + + + + + + macro link + + + + + [macroref MACRO_NAME Link text] + + + + + function, class, + member, enum, macro, concept or header links + + + + + + + concept link + + + + + [conceptref ConceptName Link text] + + + + + function, class, + member, enum, macro, concept or header links + + + + + + + header link + + + + + [headerref path/to/header.hpp Link text] + + + + + function, class, + member, enum, macro, concept or header links + + + + + + + escape + + + + + '''escaped text (no processing/formatting)''' + + + + + Escape + + + + + + + single char escape + + + + + \c + + + + + Single + char escape + + + + + + + images + + + + + [$image.jpg] + + + + + Images + + + + + + + begin section + + + + + [section The Section Title] + + + + + Section + + + + + + + end section + + + + + [endsect] + + + + + Section + + + + + + + paragraph + + + + + No markup. Paragraphs start left-flushed and are terminated by two + or more newlines. + + + + + Paragraphs + + + + + + + ordered list + + + +# one +# two +# three + + + + + Ordered + lists + + + + + + + unordered list + + + +* one +* two +* three + + + + + Unordered + lists + + + + + + + code + + + + + No markup. Preformatted code starts with a space or a tab. + + + + + Code + + + + + + + preformatted + + + + + [pre preformatted] + + + + + Preformatted + + + + + + + block quote + + + + + [:sometext...] + + + + + Blockquote + + + + + + + heading 1 + + + + + [h1 Heading 1] + + + + + Heading + + + + + + + heading 2 + + + + + [h2 Heading 2] + + + + + Heading + + + + + + + heading 3 + + + + + [h3 Heading 3] + + + + + Heading + + + + + + + heading 4 + + + + + [h4 Heading 4] + + + + + Heading + + + + + + + heading 5 + + + + + [h5 Heading 5] + + + + + Heading + + + + + + + heading 6 + + + + + [h6 Heading 6] + + + + + Heading + + + + + + + macro + + + + + [def macro_identifier some text] + + + + + Macros + + + + + + + template + + + + + [template[a b] [a] body [b]] + + + + + Templates + + + + + + + blurb + + + + + [blurb advertisement or note...] + + + + + Blurbs + + + + + + + admonition + + + + + [warning Warning text...] + + + + + Admonitions + + + + + + + table + + + +[table Title +[[a][b][c]] +[[a][b][c]] +] + + + + + Tables + + + + + + + variablelist + + + +[variablelist Title +[[a][b]] +[[a][b]] +] + + + + + Variable Lists + + + + + + + include + + + + + [include someother.qbk] + + + + + Include + + + + + +
+
+
diff --git a/src/boost/tools/quickbook/test/quickbook_manual-1_4.gold-html b/src/boost/tools/quickbook/test/quickbook_manual-1_4.gold-html new file mode 100644 index 000000000..0eeaf54e2 --- /dev/null +++ b/src/boost/tools/quickbook/test/quickbook_manual-1_4.gold-html @@ -0,0 +1,4177 @@ + + + + +

+ Quickbook 1.4 +

+
+

+ Joel de Guzman +

+

+ Eric Niebler +

+
+ +
+

+ Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +

+
+ +
+

+ Introduction +

+
+
+

+ Why program + by hand in five days what you can spend five years of your life automating? +

+

+ -- Terrence Parr, author ANTLR/PCCTS +

+
+

+ Well, QuickBook started as a weekend hack. It was originally intended to + be a sample application using Spirit. + What is it? What you are viewing now, this documentation, is autogenerated + by QuickBook. These files were generated from one master: +

+
+

+ quickbook.qbk +

+
+

+ Originally named QuickDoc, this funky tool that never dies evolved into + a funkier tool thanks to Eric Niebler who resurrected the project making + it generate BoostBook + instead of HTML. The BoostBook + documentation format is an extension of DocBook, + an SGML or XML based format for describing documentation. +

+

+ QuickBook is a WikiWiki style documentation tool geared towards C++ documentation + using simple rules and markup for simple formatting tasks. QuickBook extends + the WikiWiki concept. Like the WikiWiki, QuickBook documents are simple + text files. A single QuickBook document can generate a fully linked set + of nice HTML and PostScript/PDF documents complete with images and syntax- + colorized source code. +

+

+ Features include: +

+
    +
  • +
    + generate BoostBook + xml, to generate HTML, PostScript and PDF +
    +
  • +
  • +
    + simple markup to link to Doxygen-generated entities +
    +
  • +
  • +
    + macro system for simple text substitution +
    +
  • +
  • +
    + simple markup for italics, bold, preformatted, blurbs, code samples, + tables, URLs, anchors, images, etc. +
    +
  • +
  • +
    + automatic syntax coloring of code samples +
    +
  • +
  • +
    + CSS support +
    +
  • +
+
+
+
+

+ Change Log +

+
+

+ Version 1.3 +

+
    +
  • +
    + Quickbook file inclusion [include]. +
    +
  • +
  • +
    + Better xml output (pretty layout). Check out the generated XML. +
    +
  • +
  • +
    + Regression testing facility: to make sure your document will always + be compatible (full backward compatibility) regardless of changes to + QuickBook. +
    +
  • +
  • +
    + Code cleanup and refactoring. +
    +
  • +
  • +
    + Allow phrase markup in the doc-info. +
    +
  • +
  • +
    + Preformatted code blocks via ``code`` (double ticks) allows code in + tables and lists, for example. +
    +
  • +
  • +
    + Quickbook versioning; allows full backward compatibility. You have + to add [quickbook 1.3] to the doc-info header to enable the new features. + Without this, QuickBook will assume that the document is a pre-1.3 + document. +
    +
  • +
  • +
    + Better (intuitive) paragraph termination. Some markups may terminate + a paragraph. Example: +
    [section x]
    +blah...
    +[endsect]
    +
    +
  • +
  • +
    + Fully qualified section and headers. Subsection names are concatenated + to the ID to avoid clashing. Example: doc_name.sect_name.sub_sect_name.sub_sub_sect_name +
    +
  • +
  • +
    + Better &nbsp; and whitespace handling in code snippets. +
    +
  • +
  • +
    + [xinclude] fixes up the relative path to the target XML file when input_directory + is not the same as the output_directory. +
    +
  • +
  • +
    + Allow untitled tables. +
    +
  • +
  • +
    + Allow phrase markups in section titles. +
    +
  • +
  • +
    + Allow escaping back to QuickBook from code, code blocks and inline + code. +
    +
  • +
  • +
    + Footnotes, with the [footnote This is the footnote] syntax. +
    +
  • +
  • +
    + Post-processor bug fix for escaped XML code that it does not recognize. +
    +
  • +
  • +
    + Replaceable, with the [~replacement] syntax. +
    +
  • +
  • +
    + Generic Headers +
    +
  • +
  • +
    + Code changes to allow full recursion (i.e. Collectors and push/pop + functions) +
    +
  • +
  • +
    + Various code cleanup/maintenance +
    +
  • +
  • +
    + Templates! +
    +
  • +
  • +
    + [conceptref] for referencing BoostBook <concept> entities. +
    +
  • +
  • +
    + Allow escape of spaces. The escaped space is removed from the output. + Syntax: \ . +
    +
  • +
  • +
    + Nested comments are now allowed. +
    +
  • +
  • +
    + Quickbook blocks can nest inside comments. +
    +
  • +
  • +
    + Import facility. +
    +
  • +
  • +
    + Callouts on imported code +
    +
  • +
  • +
    + Simple markups can now span a whole block. +
    +
  • +
  • +
    + Blurbs, Admonitions + and table cells (see Tables) + may now contain paragraphs. +
    +
  • +
  • +
    + \n + and [br] are now deprecated. +
    +
  • +
+
+
+
+

+ Syntax Summary +

+
+

+ A QuickBook document is composed of one or more blocks. An example of a + block is the paragraph or a C++ code snippet. Some blocks have special + mark-ups. Blocks, except code snippets which have their own grammar (C++ + or Python), are composed of one or more phrases. A phrase can be a simple + contiguous run of characters. Phrases can have special mark-ups. Marked + up phrases can recursively contain other phrases, but cannot contain blocks. + A terminal is a self contained block-level or phrase-level element that + does not nest anything. +

+

+ Blocks, in general, are delimited by two end-of-lines (the block terminator). + Phrases in each block cannot contain a block terminator. This way, syntax + errors such as un-matched closing brackets do not go haywire and corrupt + anything past a single block. +

+
+
+

+ Comments +

+
+

+ Can be placed anywhere. +

+
[/ comment (no output generated) ]
+
+
[/ comments can be nested [/ some more here] ]
+
+
[/ Quickbook blocks can nest inside comments. [*Comment this out too!] ]
+
+
+
+
+

+ Phrase Level Elements +

+
+
+
+

+ Font Styles +

+
+
['italic], [*bold], [_underline], [^teletype], [-strikethrough]
+
+

+ will generate: +

+

+ italic, bold, + underline, teletype, strikethrough +

+

+ Like all non-terminal phrase level elements, this can of course be + nested: +

+
[*['bold-italic]]
+
+

+ will generate: +

+

+ bold-italic +

+
+
+
+

+ Replaceable +

+
+

+ When you want content that may or must be replaced by the user, use + the syntax: +

+
[~replacement]
+
+

+ This will generate: +

+

+ replacement +

+
+
+
+

+ Quotations +

+
+
["A question that sometimes drives me hazy: am I or are the others crazy?]--Einstein
+
+

+ will generate: +

+

+ A question that sometimes drives me hazy: am I or are the others + crazy?--Einstein +

+

+ Note the proper left and right quote marks. Also, while you can simply + use ordinary quote marks like "quoted", our quotation, above, + will generate correct DocBook quotations (e.g. <quote>quoted</quote>). +

+

+ Like all phrase elements, quotations may be nested. Example: +

+
["Here's the rule for bargains: ["Do other men, for they would do you.] That's
+the true business precept.]
+
+

+ will generate: +

+

+ Here's the rule for bargains: Do other men, for they would do + you. That's the true business precept. +

+
+
+
+

+ Simple formatting +

+
+

+ Simple markup for formatting text, common in many applications, is + now supported: +

+
/italic/, *bold*, _underline_, =teletype=
+
+

+ will generate: +

+

+ italic, bold, + underline, teletype +

+

+ Unlike QuickBook's standard formatting scheme, the rules for simpler + alternatives are much stricter[1]. +

+
    +
  • +
    + Simple markups cannot nest. You can combine a simple markup with + a nestable markup. +
    +
  • +
  • +
    + Simple markups cannot contain any other form of quickbook markup. +
    +
  • +
  • +
    + A non-space character must follow the leading markup +
    +
  • +
  • +
    + A non-space character must precede the trailing markup +
    +
  • +
  • +
    + A space or a punctuation must follow the trailing markup +
    +
  • +
  • +
    + If the matching markup cannot be found within a block, the formatting + will not be applied. This is to ensure that un-matched formatting + markups, which can be a common mistake, does not corrupt anything + past a single block. We do not want the rest of the document to + be rendered bold just because we forgot a trailing '*'. A single + block is terminated by two end of lines or the close bracket: ']'. +
    +
  • +
  • +
    + A line starting with the star will be interpreted as an unordered + list. See Unordered + lists. +
    +
  • +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
More Formatting Samples
+

+ Markup +

+
+

+ Result +

+
+

+ *Bold* +

+
+

+ Bold +

+
+

+ *Is bold* +

+
+

+ Is bold +

+
+

+ * Not bold* *Not bold * * Not bold * +

+
+

+ * Not bold* *Not bold * * Not bold * +

+
+

+ This*Isn't*Bold (no bold) +

+
+

+ This*Isn't*Bold (no bold) +

+
+

+ (*Bold Inside*) (parenthesis not bold) +

+
+

+ (Bold Inside) + (parenthesis not bold) +

+
+

+ *(Bold Outside)* (parenthesis bold) +

+
+

+ (Bold Outside) + (parenthesis bold) +

+
+

+ 3*4*5 = 60 (no bold) +

+
+

+ 3*4*5 = 60 (no bold) +

+
+

+ 3 * 4 * 5 = 60 (no bold) +

+
+

+ 3 * 4 * 5 = 60 (no bold) +

+
+

+ 3 *4* 5 = 60 (4 is bold) +

+
+

+ 3 4 5 = 60 (4 + is bold) +

+
+

+ *This is bold* this is not *but this is* +

+
+

+ This is bold this + is not but this is +

+
+

+ *This is bold*. +

+
+

+ This is bold. +

+
+

+ *B*. (bold B) +

+
+

+ B. (bold B) +

+
+

+ ['*Bold-Italic*] +

+
+

+ Bold-Italic +

+
+

+ *side-by*/-side/ +

+
+

+ side-by-side +

+
+
+

+ As mentioned, simple markups cannot go past a single block. The text + from "have" to "full" in the following paragraph + will be rendered as bold: +

+
Baa baa black sheep, *have you any wool?
+Yes sir, yes sir, three bags full!*
+One for the master, one for the dame,
+And one for the little boy who lives down the lane.
+
+

+ Baa baa black sheep, have you any wool? + Yes sir, yes sir, three bags full! One for the master, + one for the dame, And one for the little boy who lives down the lane. +

+

+ But in the following paragraph, bold is not applied: +

+
Baa baa black sheep, *have you any wool?
+Yes sir, yes sir, three bags full!
+One for the master, one for the dame,
+And one for the little boy who lives down the lane.
+
+

+ Baa baa black sheep, *have you any wool? Yes sir, yes sir, three bags + full! One for the master, one for the dame, And one for the little + boy who lives down the lane. +

+
+
+
+

+ Inline code +

+
+

+ Inlining code in paragraphs is quite common when writing C++ documentation. + We provide a very simple markup for this. For example, this: +

+
This text has inlined code `int main() { return 0; }` in it.
+
+

+ will generate: +

+

+ This text has inlined code int + main() + { return + 0; } + in it. The code will be syntax highlighted. +

+
+

+ We simply enclose the code with the tick: "`", not the single + quote: "'". Note + too that `some code` is preferred over [^some code]. +

+
+
+
+
+

+ Code blocks +

+
+

+ Preformatted code simply starts with a space or a tab (See Code). + However, such a simple syntax cannot be used as phrase elements in + lists (See Ordered + lists and Unordered + lists), tables (See Tables), + etc. Inline code (see above) can. The problem is, inline code does + not allow formatting with newlines, spaces, and tabs. These are lost. +

+

+ We provide a phrase level markup that is a mix between the two. By + using the double-tick, instead of the single-tick, we are telling QuickBook + to use preformatted blocks of code. Example: +

+
``
+    #include <iostream>
+
+    int main()
+    {
+        std::cout << "Hello, World!" << std::endl;
+        return 0;
+    }
+``
+
+

+ will generate: +

+

+

#include <iostream>
+
+int main()
+{
+    std::cout << "Hello, World!" << std::endl;
+    return 0;
+}
+
+

+
+
+
+

+ Source Mode +

+
+

+ If a document contains more than one type of source code then the source + mode may be changed dynamically as the document is processed. All QuickBook + documents are initially in C++ mode by default, though an alternative + initial value may be set in the Document + section. +

+

+ To change the source mode, use the [source-mode] markup, where + source-mode is one of the supported modes. For example, this: +

+
Python's [python] `import` is rather like C++'s [c++] `#include`. A
+C++ comment `// looks like this` whereas a Python comment [python]
+`# looks like this`.
+
+

+ will generate: +

+

+ Python's import is rather + like C++'s #include. + A C++ comment // looks like this + whereas a Python comment #looks like this. +

+
+ + + + + + + + + + + + + + + + + + +
Supported Source Modes
+

+ Mode +

+
+

+ Source Mode Markup +

+
+

+ C++ +

+
+

+ [c++] +

+
+

+ Python +

+
+

+ [python] +

+
+
+
+

+ The source mode strings are lowercase. +

+
+
+
+
+

+ line-break +

+
+
[br]
+
+
+

+ [br] is now deprecated. Blurbs, + Admonitions and + table cells (see Tables) + may now contain paragraphs. +

+
+
+
+
+

+ Anchors +

+
+
[#named_anchor]
+
+

+ A named anchor is a hook that can be referenced by a link elsewhere + in the document. You can then reference an anchor with [link named_anchor + Some link text]. See Anchor + links, Section and + Heading. +

+
+
+ + + + +
+

+ Escape +

+
+

+ The escape mark-up is used when we don't want to do any processing. +

+
'''
+escape (no processing/formatting)
+'''
+
+

+ Escaping allows us to pass XML markup to BoostBook + or DocBook. For example: +

+
'''
+<emphasis role="bold">This is direct XML markup</emphasis>
+'''
+
+

+ This is direct XML markup +

+
+

+ Be careful when using the escape. The text must conform to BoostBook/DocBook syntax. +

+
+
+
+
+

+ Single char escape +

+
+

+ The backslash may be used to escape a single punctuation character. + The punctuation immediately after the backslash is passed without any + processing. This is useful when we need to escape QuickBook punctuations + such as [ and ]. For example, how do you escape the + triple quote? Simple: \'\'\' +

+

+ \n + has a special meaning. It is used to generate line breaks. +

+
+

+ \n + and [br] are now deprecated. Blurbs, + Admonitions and + table cells (see Tables) + may now contain paragraphs. +

+
+

+ The escaped space: \ also + has a special meaning. The escaped space is removed from the output. +

+
+
+
+

+ Images +

+
+
[$image.jpg]
+
+
+
+
+

+ Footnotes +

+
+

+ As of version 1.3, QuickBook supports footnotes. Just put the text + of the footnote in a [footnote] block, and the text will be put at + the bottom of the current page. For example, this: +

+
[footnote A sample footnote]
+
+

+ will generate this[2]. +

+
+
+

+ Macro Expansion +

+
+
__a_macro_identifier__
+
+

+ See Macros for details. +

+
+
+
+

+ Template Expansion +

+
+
[a_template_identifier]
+
+

+ See Templates for + details. +

+
+
+
+
+
+

+ Block Level Elements +

+
+
+
+

+ Document +

+
+

+ Every document must begin with a Document Info section, which should + look like this: +

+
[document-type The Document Title
+    [quickbook 1.3]
+    [version 1.0]
+    [id the_document_name]
+    [dirname the_document_dir]
+    [copyright 2000 2002 2003 Joe Blow, Jane Doe]
+    [purpose The document's reason for being]
+    [category The document's category]
+    [authors [Blow, Joe], [Doe, Jane]]
+    [license The document's license]
+    [source-mode source-type]
+]
+
+

+ Where document-type is one of: +

+
    +
  • +
    + book +
    +
  • +
  • +
    + article +
    +
  • +
  • +
    + library +
    +
  • +
  • +
    + chapter +
    +
  • +
  • +
    + part +
    +
  • +
  • +
    + appendix +
    +
  • +
  • +
    + preface +
    +
  • +
  • +
    + qandadiv +
    +
  • +
  • +
    + qandaset +
    +
  • +
  • +
    + reference +
    +
  • +
  • +
    + set +
    +
  • +
+

+ quickbook 1.3 declares the version of quickbook the document is written + for. In its absence, version 1.1 is assumed. +

+

+ version, id, dirname, copyright, + purpose, category, authors, license, + last-revision and source-mode are optional information. +

+

+ source-type is a lowercase string setting the initial Source + Mode. If the source-mode field is omitted, a default value + of c++ will be used. +

+
+
+
+

+ Section +

+
+

+ Starting a new section is accomplished with: +

+
[section:id The Section Title]
+
+

+ where id is optional. id will + be the filename of the generated section. If it is not present, "The + Section Title" will be normalized and become the id. Valid characters + are a-Z, A-Z, 0-9 and _. All non-valid + characters are converted to underscore and all upper-case are converted + to lower case. Thus: "The Section Title" will be normalized + to "the_section_title". +

+

+ End a section with: +

+
[endsect]
+
+

+ Sections can nest, and that results in a hierarchy in the table of + contents. +

+
+
+
+

+ xinclude +

+
+

+ You can include another XML file with: +

+
[xinclude file.xml]
+
+

+ This is useful when file.xml has been generated by Doxygen and contains + your reference section. +

+
+
+
+

+ Paragraphs +

+
+

+ Paragraphs start left-flushed and are terminated by two or more newlines. + No markup is needed for paragraphs. QuickBook automatically detects + paragraphs from the context. Block markups [section, endsect, h1, h2, + h3, h4, h5, h6, blurb, (block-quote) ':', pre, def, table and include + ] may also terminate a paragraph. +

+
+
+
+

+ Lists +

+
+
+
+

+ Ordered lists +

+
+
# One
+# Two
+# Three
+
+

+ will generate: +

+
    +
  1. +
    + One +
    +
  2. +
  3. +
    + Two +
    +
  4. +
  5. +
    + Three +
    +
  6. +
+
+
+
+

+ List Hierarchies +

+
+

+ List hierarchies are supported. Example: +

+
# One
+# Two
+# Three
+    # Three.a
+    # Three.b
+    # Three.c
+# Four
+    # Four.a
+        # Four.a.i
+        # Four.a.ii
+# Five
+
+

+ will generate: +

+
    +
  1. +
    + One +
    +
  2. +
  3. +
    + Two +
    +
  4. +
  5. +
    + Three +
      +
    1. +
      + Three.a +
      +
    2. +
    3. +
      + Three.b +
      +
    4. +
    5. +
      + Three.c +
      +
    6. +
    +
    +
  6. +
  7. +
    + Fourth +
      +
    1. +
      + Four.a +
        +
      1. +
        + Four.a.i +
        +
      2. +
      3. +
        + Four.a.ii +
        +
      4. +
      +
      +
    2. +
    +
    +
  8. +
  9. +
    + Five +
    +
  10. +
+
+
+
+

+ Long List Lines +

+
+

+ Long lines will be wrapped appropriately. Example: +

+
# A short item.
+# A very long item. A very long item. A very long item.
+  A very long item. A very long item. A very long item.
+  A very long item. A very long item. A very long item.
+  A very long item. A very long item. A very long item.
+  A very long item. A very long item. A very long item.
+# A short item.
+
+
    +
  1. +
    + A short item. +
    +
  2. +
  3. +
    + A very long item. A very long item. A very long item. A very + long item. A very long item. A very long item. A very long item. + A very long item. A very long item. A very long item. A very + long item. A very long item. A very long item. A very long item. + A very long item. +
    +
  4. +
  5. +
    + A short item. +
    +
  6. +
+
+
+
+

+ Unordered lists +

+
+
* First
+* Second
+* Third
+
+

+ will generate: +

+
    +
  • +
    + First +
    +
  • +
  • +
    + Second +
    +
  • +
  • +
    + Third +
    +
  • +
+
+
+
+

+ Mixed lists +

+
+

+ Mixed lists (ordered and unordered) are supported. Example: +

+
# One
+# Two
+# Three
+    * Three.a
+    * Three.b
+    * Three.c
+# Four
+
+

+ will generate: +

+
    +
  1. +
    + One +
    +
  2. +
  3. +
    + Two +
    +
  4. +
  5. +
    + Three +
      +
    • +
      + Three.a +
      +
    • +
    • +
      + Three.b +
      +
    • +
    • +
      + Three.c +
      +
    • +
    +
    +
  6. +
  7. +
    + Four +
    +
  8. +
+

+ And... +

+
# 1
+    * 1.a
+        # 1.a.1
+        # 1.a.2
+    * 1.b
+# 2
+    * 2.a
+    * 2.b
+        # 2.b.1
+        # 2.b.2
+            * 2.b.2.a
+            * 2.b.2.b
+
+

+ will generate: +

+
    +
  1. +
    + 1 +
      +
    • +
      + 1.a +
        +
      1. +
        + 1.a.1 +
        +
      2. +
      3. +
        + 1.a.2 +
        +
      4. +
      +
      +
    • +
    • +
      + 1.b +
      +
    • +
    +
    +
  2. +
  3. +
    + 2 +
      +
    • +
      + 2.a +
      +
    • +
    • +
      + 2.b +
        +
      1. +
        + 2.b.1 +
        +
      2. +
      3. +
        + 2.b.2 +
          +
        • +
          + 2.b.2.a +
          +
        • +
        • +
          + 2.b.2.b +
          +
        • +
        +
        +
      4. +
      +
      +
    • +
    +
    +
  4. +
+
+
+
+
+

+ Code +

+
+

+ Preformatted code starts with a space or a tab. The code will be syntax + highlighted according to the current Source + Mode: +

+
#include <iostream>
+
+int main()
+{
+    // Sample code
+    std::cout << "Hello, World\n";
+    return 0;
+}
+
+
import cgi
+
+def cookForHtml(text):
+    '''"Cooks" the input text for HTML.'''
+
+    return cgi.escape(text)
+
+

+ Macros that are already defined are expanded in source code. Example: +

+
[def __array__ [@http://www.boost.org/doc/html/array/reference.html array]]
+[def __boost__ [@http://www.boost.org/libs/libraries.htm boost]]
+
+    using __boost__::__array__;
+
+

+ Generates: +

+
using boost::array;
+
+
+
+
+

+ Escaping Back To QuickBook +

+
+

+ Inside code, code blocks and inline code, QuickBook does not allow + any markup to avoid conflicts with the target syntax (e.g. c++). In + case you need to switch back to QuickBook markup inside code, you can + do so using a language specific escape-back + delimiter. In C++ and Python, the delimiter is the double tick (back-quote): + "``" and "``". Example: +

+
void ``[@http://en.wikipedia.org/wiki/Foo#Foo.2C_Bar_and_Baz foo]``()
+{
+}
+
+

+ Will generate: +

+
void foo()
+{
+}
+
+

+ When escaping from code to QuickBook, only phrase level markups are + allowed. Block level markups like lists, tables etc. are not allowed. +

+
+
+
+

+ Preformatted +

+
+

+ Sometimes, you don't want some preformatted text to be parsed as C++. + In such cases, use the [pre ... ] markup block. +

+
[pre
+
+    Some *preformatted* text                    Some *preformatted* text
+
+        Some *preformatted* text            Some *preformatted* text
+
+            Some *preformatted* text    Some *preformatted* text
+
+]
+
+

+ Spaces, tabs and newlines are rendered as-is. Unlike all quickbook + block level markup, pre (and Code) are the only ones that allow multiple + newlines. The markup above will generate: +

+
Some preformatted text                    Some preformatted text
+
+    Some preformatted text            Some preformatted text
+
+        Some preformatted text    Some preformatted text
+
+
+

+ Notice that unlike Code, phrase markup such as font style is still + permitted inside pre blocks. +

+
+
+
+

+ Blockquote +

+
+
[:sometext...]
+
+
+

+ Indents the paragraph. This applies to one paragraph only. +

+
+
+
+
+

+ Admonitions +

+
+
[note This is a note]
+[tip This is a tip]
+[important This is important]
+[caution This is a caution]
+[warning This is a warning]
+
+

+ generates DocBook admonitions: +

+
+

+ This is a note +

+
+
+

+ This is a tip +

+
+
+

+ This is important +

+
+
+

+ This is a caution +

+
+
+

+ This is a warning +

+
+

+ These are the only admonitions supported by DocBook. + So, for example [information This is some information] is + unlikely to produce the desired effect. +

+
+
+
+

+ Headings +

+
+
[h1 Heading 1]
+[h2 Heading 2]
+[h3 Heading 3]
+[h4 Heading 4]
+[h5 Heading 5]
+[h6 Heading 6]
+
+

+ Heading 1 +

+

+ Heading 2 +

+

+ Heading 3 +

+

+ Heading 4 +

+
+ Heading 5 +
+
+ Heading 6 +
+

+ Headings 1-3 [h1 h2 and h3] will automatically have anchors with normalized + names with name="section_id.normalized_header_text" + (i.e. valid characters are a-z, A-Z, 0-9 + and _. All non-valid characters are converted to underscore + and all upper-case are converted to lower-case. For example: Heading + 1 in section Section 2 will be normalized to section_2.heading_1). + You can use: +

+
[link section_id.normalized_header_text The link text]
+
+

+ to link to them. See Anchor + links and Section + for more info. +

+
+
+
+

+ Generic Heading +

+
+

+ In cases when you don't want to care about the heading level (1 to + 6), you can use the Generic Heading: +

+
[heading Heading]
+
+

+ The Generic Heading assumes + the level, plus one, of the innermost section where it is placed. For + example, if it is placed in the outermost section, then, it assumes + h2. +

+

+ Headings are often used as an alternative to sections. It is used particularly + if you do not want to start a new section. In many cases, however, + headings in a particular section is just flat. Example: +

+
[section A]
+[h2 X]
+[h2 Y]
+[h2 Z]
+[endsect]
+
+

+ Here we use h2 assuming that section A is the outermost level. If it + is placed in an inner level, you'll have to use h3, h4, etc. depending + on where the section is. In general, it is the section level plus one. + It is rather tedious, however, to scan the section level everytime. + If you rewrite the example above as shown below, this will be automatic: +

+
[section A]
+[heading X]
+[heading Y]
+[heading Z]
+[endsect]
+
+

+ They work well regardless where you place them. You can rearrange sections + at will without any extra work to ensure correct heading levels. In + fact, with section and heading, you have all you need. h1..h6 + becomes redundant. h1..h6 might be deprecated in the future. +

+
+
+
+

+ Macros +

+
+
[def macro_identifier some text]
+
+

+ When a macro is defined, the identifier replaces the text anywhere + in the file, in paragraphs, in markups, etc. macro_identifier is a + string of non- white space characters except ']'. A macro may not follow + an alphabetic character or the underscore. The replacement text can + be any phrase (even marked up). Example: +

+
[def sf_logo [$http://sourceforge.net/sflogo.php?group_id=28447&type=1]]
+sf_logo
+
+

+ Now everywhere the sf_logo is placed, the picture will be inlined. +

+

+ [] +

+
+

+ It's a good idea to use macro identifiers that are distinguishable. + For instance, in this document, macro identifiers have two leading + and trailing underscores (e.g. __spirit__). The reason is + to avoid unwanted macro replacement. +

+
+

+ Links (URLS) and images are good candidates for macros. 1) + They tend to change a lot. It is a good idea to place all links and + images in one place near the top to make it easy to make changes. + 2) The syntax is not pretty. + It's easier to read and write, e.g. __spirit__ than [@http://spirit.sourceforge.net + Spirit]. +

+

+ Some more examples: +

+
[def :-)            [$theme/smiley.png]]
+[def __spirit__     [@http://spirit.sourceforge.net Spirit]]
+
+

+ (See Images and Links) +

+

+ Invoking these macros: +

+
Hi __spirit__  :-)
+
+

+ will generate this: +

+

+ Hi Spirit [] +

+
+
+
+

+ Predefined Macros +

+
+

+ Quickbook has some predefined macros that you can already use. +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Predefined Macros
+

+ Macro +

+
+

+ Meaning +

+
+

+ Example +

+
+

+ __DATE__ +

+
+

+ Today's date +

+
+

+ 2000-Dec-20 +

+
+

+ __TIME__ +

+
+

+ The current time +

+
+

+ 12:00:00 PM +

+
+

+ __FILENAME__ +

+
+

+ Quickbook source filename +

+
+

+ quickbook_manual-1_4.quickbook +

+
+
+
+
+
+

+ Templates +

+
+

+ Templates provide a more versatile text substitution mechanism. Templates + come in handy when you need to create parameterizable, multi-line, + boilerplate text that you specify once and expand many times. Templates + accept one or more arguments. These arguments act like place-holders + for text replacement. Unlike simple macros, which are limited to phrase + level markup, templates can contain block level markup (e.g. paragraphs, + code blocks and tables). +

+

+ Example template: +

+
[template person[name age what]
+
+Hi, my name is [name]. I am [age] years old. I am a [what].
+
+]
+
+
+ Template Identifier +
+

+ Template identifiers can either consist of: +

+
    +
  • +
    + An initial alphabetic character or the underscore, followed by + zero or more alphanumeric characters or the underscore. This is + similar to your typical C/C++ identifier. +
    +
  • +
  • +
    + A single character punctuation (a non-alphanumeric printable character) +
    +
  • +
+
+ Formal Template Arguments +
+

+ Template formal arguments are identifiers consisting of an initial + alphabetic character or the underscore, followed by zero or more alphanumeric + characters or the underscore. This is similar to your typical C/C++ + identifier. +

+

+ A template formal argument temporarily hides a template of the same + name at the point where the template + is expanded. Note that the body of the person template + above refers to name age and what as [name] + [age] and [what]. name age and + what are actually templates that exist in the duration of + the template call. +

+
+ Template Body +
+

+ The template body can be just about any QuickBook block or phrase. + There are actually two forms. Templates may be phrase or block level. + Phrase templates are of the form: +

+
[template sample[arg1 arg2...argN] replacement text... ]
+
+

+ Block templates are of the form: +

+
[template sample[arg1 arg2...argN]
+replacement text...
+]
+
+

+ The basic rule is as follows: if a newline immediately follows the + argument list, then it is a block template, otherwise, it is a phrase + template. Phrase templates are typically expanded as part of phrases. + Like macros, block level elements are not allowed in phrase templates. +

+
+ Template Expansion +
+

+ You expand a template this way: +

+
[template_identifier arg1..arg2..arg3]
+
+

+ At template expansion, you supply the actual arguments. The template + will be expanded with your supplied arguments. Example: +

+
[person James Bond..39..Spy]
+[person Santa Clause..87..Big Red Fatso]
+
+

+ Which will expand to: +

+

+ Hi, my name is James Bond. I am 39 years old. I am a Spy. +

+

+ Hi, my name is Santa Clause. I am 87 years old. I am a Big Red Fatso. +

+
+

+ A word of caution: Templates are recursive. A template can call another + template or even itself, directly or indirectly. There are no control + structures in QuickBook (yet) so this will always mean infinite recursion. + QuickBook can detect this situation and report an error if recursion + exceeds a certain limit. +

+
+

+ Each actual argument can be a word, a text fragment or just about any + QuickBook phrase. Arguments + are separated by the double dot ".." and terminated + by the close parenthesis. +

+
+ Nullary Templates +
+

+ Nullary templates look and act like simple macros. Example: +

+
[template alpha[]'''&#945;''']
+[template beta[]'''&#946;''']
+
+

+ Expanding: +

+
Some squigles...[*[alpha][beta]]
+

+ We have: +

+

+ Some squiggles...αβ +

+

+ The difference with macros are +

+
    +
  • +
    + The explicit template + expansion syntax. This is an advantage because, now, we don't + have to use obscure naming conventions like double underscores + (e.g. __alpha__) to avoid unwanted macro replacement. +
    +
  • +
  • +
    + The template is expanded at the point where it is invoked. A macro + is expanded immediately at its point of declaration. This is subtle + and can cause a slight difference in behavior especially if you + refer to other macros and templates in the body. +
    +
  • +
+

+ The empty brackets after the template identifier (alpha[]) + indicates no arguments. If the template body does not look like a template + argument list, we can elide the empty brackets. Example: +

+
[template aristotle_quote Aristotle: [*['Education is the best provision
+for the journey to old age.]]]
+
+

+ Expanding: +

+
Here's a quote from [aristotle_quote].
+
+

+ We have: +

+

+ Here's a quote from Aristotle: Education + is the best provision for the journey to old age.. +

+

+ The disadvantage is that you can't avoid the space between the template + identifier, aristotle_quote, + and the template body "Aristotle...". This space will be + part of the template body. If that space is unwanted, use empty brackets + or use the space escape: "\ + ". Example: +

+
[template tag\ _tag]
+
+

+ Then expanding: +

+
`struct` x[tag];
+
+

+ We have: +

+

+ struct x_tag; +

+

+ You have a couple of ways to do it. I personally prefer the explicit + empty brackets, though. +

+
+ Simple Arguments +
+

+ As mentioned, arguments are separated by the double dot "..". + If there are less arguments passed than expected, QuickBook attempts + to break the last argument into two or more arguments following this + logic: +

+
    +
  • +
    + Break the last argument into two, at the first space found ('', + '\n', \t' or '\r'). +
    +
  • +
  • +
    + Repeat until there are enough arguments or if there are no more + spaces found (in which case, an error is reported). +
    +
  • +
+

+ For example: +

+
[template simple[a b c d] [a][b][c][d]]
+[simple w x y z]
+
+

+ will produce: +

+

+ wxyz +

+

+ "w x y z" is initially treated as a single argument because + we didn't supply any ".." separators. However, since + simple expects 4 arguments, "w x y z" is broken + down iteratively (applying the logic above) until we have "w", + "x", "y" and "z". +

+

+ QuickBook only tries to get the arguments it needs. For example: +

+
[simple w x y z trail]
+
+

+ will produce: +

+

+ wxyz trail +

+

+ The arguments being: "w", "x", "y" and + "z trail". +

+

+ It should be obvious now that for simple arguments with no spaces, + we can get by without separating the arguments with ".." + separators. It is possible to combine ".." separators + with the argument passing simplification presented above. Example: +

+
[simple what do you think ..m a n?]
+
+

+ will produce: +

+

+ what do you think man? +

+
+ Punctuation Templates +
+

+ With templates, one of our objectives is to allow us to rewrite QuickBook + in QuickBook (as a qbk library). For that to happen, we need to accommodate + single character punctuation templates which are fairly common in QuickBook. + You might have noticed that single character punctuations are allowed + as template + identifiers. Example: +

+
[template ![bar] <hey>[bar]</hey>]
+
+

+ Now, expanding this: +

+
[!baz]
+
+

+ We will have: +

+
<hey>baz</hey>
+
+
+
+
+

+ Blurbs +

+
+
[blurb :-) [*An eye catching advertisement or note...]
+
+    __spirit__ is an object-oriented recursive-descent parser generator framework
+    implemented using template meta-programming techniques. Expression templates
+    allow us to approximate the syntax of Extended Backus-Normal Form (EBNF)
+    completely in C++.
+]
+
+

+ will generate this: +

+
+

+ [] + An eye catching advertisement or note... +

+

+ Spirit is an object-oriented + recursive-descent parser generator framework implemented using template + meta-programming techniques. Expression templates allow us to approximate + the syntax of Extended Backus-Normal Form (EBNF) completely in C++. +

+
+
+

+ Prefer admonitions + wherever appropriate. +

+
+
+
+
+

+ Tables +

+
+
[table A Simple Table
+    [[Heading 1] [Heading 2] [Heading 3]]
+    [[R0-C0]     [R0-C1]     [R0-C2]]
+    [[R1-C0]     [R1-C1]     [R1-C2]]
+    [[R2-C0]     [R2-C1]     [R2-C2]]
+]
+
+

+ will generate: +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
A Simple Table
+

+ Heading 1 +

+
+

+ Heading 2 +

+
+

+ Heading 3 +

+
+

+ R0-C0 +

+
+

+ R0-C1 +

+
+

+ R0-C2 +

+
+

+ R2-C0 +

+
+

+ R2-C1 +

+
+

+ R2-C2 +

+
+

+ R3-C0 +

+
+

+ R3-C1 +

+
+

+ R3-C2 +

+
+
+

+ The table title is optional. The first row of the table is automatically + treated as the table header; that is, it is wrapped in <thead>...</thead> + XML tags. Note that unlike the original QuickDoc, the columns are nested + in [ cells... ]. The syntax is free-format and allows big cells to + be formatted nicely. Example: +

+
[table Table with fat cells
+    [[Heading 1] [Heading 2]]
+    [
+        [Row 0, Col 0: a small cell]
+        [
+            Row 0, Col 1: a big fat cell with paragraphs
+
+            Boost provides free peer-reviewed portable C++ source libraries.
+
+            We emphasize libraries that work well with the C++ Standard Library.
+            Boost libraries are intended to be widely useful, and usable across
+            a broad spectrum of applications. The Boost license encourages both
+            commercial and non-commercial use.
+        ]
+    ]
+    [
+        [Row 1, Col 0: a small cell]
+        [Row 1, Col 1: a small cell]
+    ]
+]
+
+

+ and thus: +

+
+ + + + + + + + + + + + + + + + + + +
Table with fat cells
+

+ Heading 1 +

+
+

+ Heading 2 +

+
+

+ Row 0, Col 0: a small cell +

+
+

+ Row 0, Col 1: a big fat cell with paragraphs +

+

+ Boost provides free peer-reviewed portable C++ source libraries. +

+

+ We emphasize libraries that work well with the C++ Standard + Library. Boost libraries are intended to be widely useful, + and usable across a broad spectrum of applications. The Boost + license encourages both commercial and non-commercial use. +

+
+

+ Row 1, Col 0: a small cell +

+
+

+ Row 1, Col 1: a small cell +

+
+
+

+ Here's how to have preformatted blocks of code in a table cell: +

+
[table Table with code
+    [[Comment] [Code]]
+    [
+        [My first program]
+        [``
+            #include <iostream>
+
+            int main()
+            {
+                std::cout << "Hello, World!" << std::endl;
+                return 0;
+            }
+        ``]
+    ]
+]
+
+
+ + + + + + + + + + + + + + +
Table with code
+

+ Comment +

+
+

+ Code +

+
+

+ My first program +

+
+

+

#include <iostream>
+
+int main()
+{
+    std::cout << "Hello, World!" << std::endl;
+    return 0;
+}
+
+

+
+
+
+
+
+

+ Variable Lists +

+
+
[variablelist A Variable List
+    [[term 1] [The definition of term 1]]
+    [[term 2] [The definition of term 2]]
+    [[term 3] [The definition of term 3]]
+]
+
+

+ will generate: +

+
+
+ term 1 +
+
+

+ The definition of term 1 +

+
+
+ term 2 +
+
+

+ The definition of term 2 +

+
+
+ term 3 +
+
+

+ The definition of term 3 +

+
+
+

+ The rules for variable lists are the same as for tables, except that + only 2 "columns" are allowed. The first column contains the + terms, and the second column contains the definitions. Those familiar + with HTML will recognize this as a "definition list". +

+
+
+
+

+ Include +

+
+

+ You can include one QuickBook file from another. The syntax is simply: +

+
[include someother.qbk]
+
+

+ The included file will be processed as if it had been cut and pasted + into the current document, with the following exceptions: +

+
    +
  • +
    + The __FILENAME__ predefined macro will reflect the name of the + file currently being processed. +
    +
  • +
  • +
    + Any macros defined in the included file are scoped to that file. +
    +
  • +
+

+ The [include] directive lets you specify a document id to + use for the included file. When this id is not explicitly specified, + the id defaults to the filename ("someother", in the example + above). You can specify the id like this: +

+
[include:someid someother.qbk]
+
+

+ All auto-generated anchors will use the document id as a unique prefix. + So for instance, if there is a top section in someother.qbk named "Intro", + the named anchor for that section will be "someid.intro", + and you can link to it with [link someid.intro The Intro]. +

+
+
+
+

+ Import +

+
+

+ When documenting code, you'd surely need to present code from actual + source files. While it is possible to copy some code and paste them + in your QuickBook file, doing so is error prone and the extracted code + in the documentation tends to get out of sync with the actual code + as the code evolves. The problem, as always, is that once documentation + is written, the tendency is for the docs to languish in the archives + without maintenance. +

+

+ QuickBook's import facility provides a nice solution. +

+
+ Example +
+

+ You can effortlessly import code snippets from source code into your + QuickBook. The following illustrates how this is done: +

+
[import ../test/stub.cpp]
+[foo]
+[bar]
+
+

+ The first line: +

+
[import ../test/stub.cpp]
+
+

+ collects specially marked-up code snippets from stub.cpp + and places them in your QuickBook file as virtual templates. Each of + the specially marked-up code snippets has a name (e.g. foo and bar + in the example above). This shall be the template identifier for that + particular code snippet. The second and third line above does the actual + template expansion: +

+
[foo]
+[bar]
+
+

+ And the result is: +

+

+ This is the foo + function. +

+

+ This description can have paragraphs... +

+
    +
  • +
    + lists +
    +
  • +
  • +
    + etc. +
    +
  • +
+

+ And any quickbook block markup. +

+

+

std::string foo()
+{
+    // return 'em, foo man!
+    return "foo";
+}
+
+

+

+ This is the bar + function +

+

+

std::string bar()
+{
+    // return 'em, bar man!
+    return "bar";
+}
+
+

+

+ Some trailing text here +

+
+ Code Snippet Markup +
+

+ Note how the code snippets in stub.cpp + get marked up. We use distinguishable comments following the form: +

+
//[id
+some code here
+//]
+
+

+ The first comment line above initiates a named code-snippet. This prefix + will not be visible in quickbook. The entire code-snippet in between + //[id and //] + will be inserted as a template in quickbook with name id. The comment //] ends a code-snippet This too will + not be visible in quickbook. +

+
+ Special Comments +
+

+ Special comments of the form: +

+
//` some [*quickbook] markup here
+
+

+ and: +

+
/*` some [*quickbook] markup here */
+
+

+ will be parsed by QuickBook. This can contain quickbook blocks + (e.g. sections, paragraphs, tables, etc). In the first case, the initial + slash-slash, tick and white-space shall be ignored. In the second, + the initial slash-star-tick and the final star-slash shall be ignored. +

+
+ Callouts +
+

+ Special comments of the form: +

+
/*< some [*quickbook] markup here >*/
+
+

+ will be regarded as callouts. These will be collected, numbered and + rendered as a "callout bug" (a small icon with a number). + After the whole snippet is parsed, the callout list is generated. See + Callouts + for details. Example: +

+

+

std::string foo_bar() (1)
+{
+    return "foo-bar"; (2)
+}
+
+

+
+
+ (1) +

+ The Mythical FooBar. See + Foobar for details +

+
+
+ (2) +

+ return 'em, foo-bar man! +

+
+
+

+ Checkout stub.cpp to see the actual + code. +

+
+
+
+
+
+

+ Installation and configuration +

+
+

+ This section provides some guidelines on how to install and configure BoostBook + and Quickbook under several operating systems. +

+

+ Before continuing, it is very important that you keep this in mind: if + you try to build some documents and the process breaks due to misconfiguration, + be absolutely sure to delete any bin + and bin.v2 directories generated by the build + before trying again. Otherwise your configuration fixes will not take any + effect. +

+
+
+

+ Windows 2000, XP, 2003, Vista +

+
+
+

+ Section contributed by Julio M. Merino Vidal +

+
+

+ The following instructions apply to any Windows system based on Windows + 2000, including Windows XP, Windows 2003 Server and Windows Vista. The + paths shown below are taken from a Windows Vista machine; you will need + to adjust them to match your system in case you are running an older + version. +

+
    +
  1. +
    + First of all you need to have a copy of xsltproc + for Windows. There are many ways to get this tool, but to keep things + simple, use the binary + packages made by Igor Zlatkovic. At the very least, you need + to download the following packages: iconv, + zlib, libxml2 + and libxslt. +
    +
  2. +
  3. +
    + Unpack all these packages in the same directory so that you get unique + bin, include + and lib directories + within the hierarchy. These instructions use C:\Users\example\Documents\boost\xml + as the root for all files. +
    +
  4. +
  5. +
    + From the command line, go to the bin + directory and launch xsltproc.exe + to ensure it works. You should get usage information on screen. +
    +
  6. +
  7. +
    + Download Docbook + XML 4.2 and unpack it in the same directory used above. That + is: C:\Users\example\Documents\boost\xml\docbook-xml. +
    +
  8. +
  9. +
    + Download the latest Docbook + XSL version and unpack it, again in the same directory used before. + To make things easier, rename the directory created during the extraction + to docbook-xsl (bypassing the version name): + C:\Users\example\Documents\boost\xml\docbook-xsl. +
    +
  10. +
  11. +
    + Add the following to your user-config.jam + file, which should live in your home directory (%HOMEDRIVE%%HOMEPATH%). + You must already have it somewhere or otherwise you could not be + building Boost (i.e. missing tools configuration). +
    +
  12. +
+
using xsltproc
+    : "C:/Users/example/Documents/boost/xml/bin/xsltproc.exe"
+    ;
+
+using boostbook
+    : "C:/Users/example/Documents/boost/xml/docbook-xsl"
+    : "C:/Users/example/Documents/boost/xml/docbook-xml"
+    ;
+
+

+ The above steps are enough to get a functional BoostBook setup. Quickbook + will be automatically built when needed. If you want to avoid these rebuilds: +

+
    +
  1. +
    + Go to Quickbook's source directory (BOOST_ROOT\tools\quickbook). +
    +
  2. +
  3. +
    + Build the utility by issuing bjam + --v2. +
    +
  4. +
  5. +
    + Copy the resulting quickbook.exe + binary (located under the BOOST_ROOT\bin.v2 + hierarchy) to a safe place. Following our previous example, you can + install it into: C:\Users\example\Documents\boost\xml\bin. +
    +
  6. +
  7. +
    + Add the following to your user-config.jam + file: +
    +
  8. +
+
using quickbook
+    : "C:/Users/example/Documents/boost/xml/bin/quickbook.exe"
+    ;
+
+
+
+
+

+ Debian, Ubuntu +

+
+

+ The following instructions apply to Debian and its derivatives. They + are based on a Ubuntu Edgy install but should work on other Debian based + systems. +

+

+ First install the bjam, + xsltproc, docbook-xsl and + docbook-xml packages. For example, using apt-get: +

+
sudo apt-get install xsltprc docbook-xsl docbook-xml
+
+

+ If you're planning on building boost's documentation, you'll also need + to install the doxygen package + as well. +

+

+ Next, we need to configure Boost Build to compile BoostBook files. Add + the following to your user-config.jam file, which should be in your home + directory. If you don't have one, create a file containing this text. + For more information on setting up user-config.jam, see the Boost + Build documentation. +

+
using xsltproc ;
+
+using boostbook
+    : /usr/share/xml/docbook/stylesheet/nwalsh
+    : /usr/share/xml/docbook/schema/dtd/4.2
+    ;
+
+# Remove this line if you're not using doxygen
+using doxygen ;
+
+

+ The above steps are enough to get a functional BoostBook setup. Quickbook + will be automatically built when needed. If you want to avoid these rebuilds: +

+
    +
  1. +
    + Go to Quickbook's source directory (BOOST_ROOT/tools/quickbook). +
    +
  2. +
  3. +
    + Build the utility by issuing bjam + --v2. +
    +
  4. +
  5. +
    + Copy the resulting quickbook + binary (located under the BOOST_ROOT/bin.v2 + hierarchy) to a safe place. The traditional location is /usr/local/bin. +
    +
  6. +
  7. +
    + Add the following to your user-config.jam + file, using the full path of the quickbook executable: +
    +
  8. +
+
using quickbook
+    : /usr/local/bin/quickbook
+    ;
+
+
+
+
+
+

+ Editor Support +

+
+

+ Editing quickbook files is usually done with text editors both simple and + powerful. The following sections list the settings for some editors which + can help make editing quickbook files a bit easier. +

+
+

+ [] + You may submit your settings, tips, and suggestions to the authors, or + through the docs + Boost Docs mailing list. +

+
+
+
+

+ Scintilla Text Editor +

+
+
+

+ Section contributed by Dean Michael Berris +

+
+

+ The Scintilla Text Editor (SciTE) is a free source code editor for Win32 + and X. It uses the SCIntilla source code editing component. +

+
+

+ [] + SciTE can be downloaded from http://www.scintilla.org/SciTE.html +

+
+

+ You can use the following settings to highlight quickbook tags when editing + quickbook files. +

+
qbk=*.qbk
+lexer.*.qbk=props
+use.tabs.$(qbk)=0
+tab.size.$(qbk)=4
+indent.size.$(qbk)=4
+style.props.32=$(font.base)
+comment.stream.start.props=[/
+comment.stream.end.props=]
+comment.box.start.props=[/
+comment.box.middle.props=
+comment.box.end.props=]
+
+
+

+ [] + Thanks to Rene Rivera for the above SciTE settings. +

+
+
+
+
+
+

+ Frequently Asked Questions +

+
+

+ Can I use QuickBook for non-Boost documentation? +

+

+ QuickBook can be used for non-Boost documentation with a little extra work. +

+
+

+ Faq contributed by Michael Marcin +

+
+

+ When building HTML documentation with BoostBook a Boost C++ Libraries header + is added to the files. When using QuickBook to document projects outside + of Boost this is not desirable. This behavior can be overridden at the + BoostBook level by specifying some XSLT options. When using Boost Build + version 2 (BBv2) this can be achieved by adding parameters to the BoostBook + target declaration. +

+

+ For example: +

+
using quickbook ;
+
+xml my_doc : my_doc.qbk ;
+
+boostbook standalone
+    :
+        my_doc
+    :
+        <xsl:param>boost.image.src=images/my_project_logo.png
+        <xsl:param>boost.image.alt="\"My Project\""
+        <xsl:param>boost.image.w=100
+        <xsl:param>boost.image.h=50
+        <xsl:param>nav.layout=none
+    ;
+
+
+
+
+

+ Quick Reference +

+
+

+ [cpp] +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Syntax Compendium
+

+ To do this... +

+
+

+ Use this... +

+
+

+ See this... +

+
+

+ comment +

+
+

+ [/ some comment] +

+
+

+ Comments +

+
+

+ italics +

+
+

+ ['italics] or /italics/ +

+
+

+ Font Styles + and Simple + formatting +

+
+

+ bold +

+
+

+ [*bold] or *bold* +

+
+

+ Font Styles + and Simple + formatting +

+
+

+ underline +

+
+

+ [_underline] or _underline_ +

+
+

+ Font Styles + and Simple + formatting +

+
+

+ teletype +

+
+

+ [^teletype] or =teletype= +

+
+

+ Font Styles + and Simple + formatting +

+
+

+ strikethrough +

+
+

+ [-strikethrough] +

+
+

+ Font Styles + and Simple + formatting +

+
+

+ replaceable +

+
+

+ [~replaceable] +

+
+

+ Replaceble +

+
+

+ source mode +

+
+

+ [c++] or [python] +

+
+

+ Source Mode +

+
+

+ inline code +

+
+

+ `int main();` +

+
+

+ Inline code +

+
+

+ code block +

+
+

+ ``int main();`` +

+
+

+ Code +

+
+

+ code escape +

+
+

+ ``from c++ to QuickBook`` +

+
+

+ Escaping Back To + QuickBook +

+
+

+ line break +

+
+

+ [br] or \n +

+
+

+ line-break + DEPRECATED +

+
+

+ anchor +

+
+

+ [#anchor] +

+
+

+ Anchors +

+
+

+ link +

+
+

+ [@http://www.boost.org Boost] +

+
+

+ Links +

+
+

+ anchor link +

+
+

+ [link section.anchor Link text] +

+
+

+ Anchor links +

+
+

+ refentry link +

+
+

+ [link xml.refentry Link text] +

+
+

+ refentry links +

+
+

+ function link +

+
+

+ [funcref fully::qualified::function_name Link text] +

+
+

+ function, class, + member, enum, macro, concept or header links +

+
+

+ class link +

+
+

+ [classref fully::qualified::class_name Link text] +

+
+

+ function, class, + member, enum, macro, concept or header links +

+
+

+ member link +

+
+

+ [memberref fully::qualified::member_name Link text] +

+
+

+ function, class, + member, enum, macro, concept or header links +

+
+

+ enum link +

+
+

+ [enumref fully::qualified::enum_name Link text] +

+
+

+ function, class, + member, enum, macro, concept or header links +

+
+

+ macro link +

+
+

+ [macroref MACRO_NAME Link text] +

+
+

+ function, class, + member, enum, macro, concept or header links +

+
+

+ concept link +

+
+

+ [conceptref ConceptName Link text] +

+
+

+ function, class, + member, enum, macro, concept or header links +

+
+

+ header link +

+
+

+ [headerref path/to/header.hpp Link text] +

+
+

+ function, class, + member, enum, macro, concept or header links +

+
+

+ escape +

+
+

+ '''escaped text (no processing/formatting)''' +

+
+

+ Escape +

+
+

+ single char escape +

+
+

+ \c +

+
+

+ Single + char escape +

+
+

+ images +

+
+

+ [$image.jpg] +

+
+

+ Images +

+
+

+ begin section +

+
+

+ [section The Section Title] +

+
+

+ Section +

+
+

+ end section +

+
+

+ [endsect] +

+
+

+ Section +

+
+

+ paragraph +

+
+

+ No markup. Paragraphs start left-flushed and are terminated by + two or more newlines. +

+
+

+ Paragraphs +

+
+

+ ordered list +

+
+
# one
+# two
+# three
+
+
+

+ Ordered + lists +

+
+

+ unordered list +

+
+
* one
+* two
+* three
+
+
+

+ Unordered + lists +

+
+

+ code +

+
+

+ No markup. Preformatted code starts with a space or a tab. +

+
+

+ Code +

+
+

+ preformatted +

+
+

+ [pre preformatted] +

+
+

+ Preformatted +

+
+

+ block quote +

+
+

+ [:sometext...] +

+
+

+ Blockquote +

+
+

+ heading 1 +

+
+

+ [h1 Heading 1] +

+
+

+ Heading +

+
+

+ heading 2 +

+
+

+ [h2 Heading 2] +

+
+

+ Heading +

+
+

+ heading 3 +

+
+

+ [h3 Heading 3] +

+
+

+ Heading +

+
+

+ heading 4 +

+
+

+ [h4 Heading 4] +

+
+

+ Heading +

+
+

+ heading 5 +

+
+

+ [h5 Heading 5] +

+
+

+ Heading +

+
+

+ heading 6 +

+
+

+ [h6 Heading 6] +

+
+

+ Heading +

+
+

+ macro +

+
+

+ [def macro_identifier some text] +

+
+

+ Macros +

+
+

+ template +

+
+

+ [template[a b] [a] body [b]] +

+
+

+ Templates +

+
+

+ blurb +

+
+

+ [blurb advertisement or note...] +

+
+

+ Blurbs +

+
+

+ admonition +

+
+

+ [warning Warning text...] +

+
+

+ Admonitions +

+
+

+ table +

+
+
[table Title
+[[a][b][c]]
+[[a][b][c]]
+]
+
+
+

+ Tables +

+
+

+ variablelist +

+
+
[variablelist Title
+[[a][b]]
+[[a][b]]
+]
+
+
+

+ Variable Lists +

+
+

+ include +

+
+

+ [include someother.qbk] +

+
+

+ Include +

+
+
+
+
+
+
+
+
+

+ [1] + Thanks to David Barrett, author of Qwiki, + for sharing these samples and teaching me these obscure formatting rules. + I wasn't sure at all if Spirit, + being more or less a formal EBNF parser, can handle the context sensitivity + and ambiguity. +

+
+
+

+ [2] A sample + footnote +

+
+
+ + diff --git a/src/boost/tools/quickbook/test/quickbook_manual-1_4.quickbook b/src/boost/tools/quickbook/test/quickbook_manual-1_4.quickbook new file mode 100644 index 000000000..00fc9caa1 --- /dev/null +++ b/src/boost/tools/quickbook/test/quickbook_manual-1_4.quickbook @@ -0,0 +1,1981 @@ +[article Quickbook + [quickbook 1.4] + [version 1.4] + [authors [de Guzman, Joel], [Niebler, Eric]] + [copyright 2002 2004 2006 Joel de Guzman, Eric Niebler] + [purpose /WikiWiki/ style documentation tool] + [license + Distributed under the Boost Software License, Version 1.0. + (See accompanying file LICENSE_1_0.txt or copy at + [@http://www.boost.org/LICENSE_1_0.txt]) + ] +] + +[/ QuickBook Document version 1.3 ] +[/ Sept 24, 2002 ] +[/ Sept 2, 2004 ] +[/ Feb 14, 2005 ] +[/ Sept 13, 2005 ] + +[/ Some links] + +[def __note__ [$images/note.png]] +[def __alert__ [$images/alert.png]] +[def __tip__ [$images/tip.png]] +[def :-) [$images/smiley.png]] +[def __spirit__ [@http://spirit.sourceforge.net Spirit]] +[def __boostbook__ [@http://www.boost.org/doc/html/boostbook.html BoostBook]] +[def __docbook__ [@http://www.docbook.org/ DocBook]] + +[def __comments__ [link quickbook.syntax.comments Comments]] + +[def __font_styles__ [link quickbook.syntax.phrase.font_styles Font Styles]] +[def __quotations__ [link quickbook.syntax.phrase.quotations Quotations]] +[def __replaceable__ [link quickbook.syntax.phrase.replaceable Replaceble]] +[def __simple_formatting__ [link quickbook.syntax.phrase.simple_formatting Simple formatting]] +[def __inline_code__ [link quickbook.syntax.phrase.inline_code Inline code]] +[def __code_blocks__ [link quickbook.syntax.phrase.code_blocks Code blocks]] +[def __source_mode__ [link quickbook.syntax.phrase.source_mode Source Mode]] +[def __line_break__ [link quickbook.syntax.phrase.line_break line-break]] +[def __anchors__ [link quickbook.syntax.phrase.anchors Anchors]] +[def __links__ [link quickbook.syntax.phrase.links Links]] +[def __anchor_links__ [link quickbook.syntax.phrase.anchor_links Anchor links]] +[def __refentry_links__ [link quickbook.syntax.phrase.refentry_links refentry links]] +[def __code_links__ [link quickbook.syntax.phrase.code_links function, class, member, enum, macro, concept or header links]] +[def __escape__ [link quickbook.syntax.phrase.escape Escape]] +[def __single_char_escape__ [link quickbook.syntax.phrase.single_char_escape Single char escape]] +[def __images__ [link quickbook.syntax.phrase.images Images]] + +[def __document__ [link quickbook.syntax.block.document Document]] +[def __section__ [link quickbook.syntax.block.section Section]] +[def __xinclude__ [link quickbook.syntax.block.xinclude xinclude]] +[def __paragraphs__ [link quickbook.syntax.block.paragraphs Paragraphs]] +[def __ordered_lists__ [link quickbook.syntax.block.lists.ordered_lists Ordered lists]] +[def __list_hierarchies__ [link quickbook.syntax.block.lists.list_hierarchies List Hierarchies]] +[def __long_list_lines__ [link quickbook.syntax.block.lists.long_list_lines Long List Lines]] +[def __unordered_lists__ [link quickbook.syntax.block.lists.unordered_lists Unordered lists]] +[def __mixed_lists__ [link quickbook.syntax.block.lists.mixed_lists Mixed lists]] +[def __code__ [link quickbook.syntax.block.code Code]] +[def __escape_back__ [link quickbook.syntax.block.escape_back Escaping Back To QuickBook]] +[def __preformatted__ [link quickbook.syntax.block.preformatted Preformatted]] +[def __blockquote__ [link quickbook.syntax.block.blockquote Blockquote]] +[def __heading__ [link quickbook.syntax.block.headings Heading]] +[def __macros__ [link quickbook.syntax.block.macros Macros]] +[def __templates__ [link quickbook.syntax.block.templates Templates]] +[def __predefined_macros__ [link quickbook.syntax.block.predefined_macros Predefined Macros]] +[def __blurbs__ [link quickbook.syntax.block.blurbs Blurbs]] +[def __admonitions__ [link quickbook.syntax.block.admonitions Admonitions]] +[def __tables__ [link quickbook.syntax.block.tables Tables]] +[def __variable_lists__ [link quickbook.syntax.block.variable_lists Variable Lists]] +[def __include__ [link quickbook.syntax.block.include Include]] +[def __import__ [link quickbook.syntax.block.import Import]] + +[section:intro Introduction] + +[:[*['["Why program by hand in five days what you can spend five years of your +life automating?]]] + +-- Terrence Parr, author ANTLR/PCCTS +] + +Well, QuickBook started as a weekend hack. It was originally intended to be a +sample application using __spirit__. What is it? What you are viewing now, this +documentation, is autogenerated by QuickBook. These files were generated from +one master: + +[:[@../quickbook.qbk quickbook.qbk]] + +Originally named QuickDoc, this funky tool that never dies evolved into a +funkier tool thanks to Eric Niebler who resurrected the project making it +generate __boostbook__ instead of HTML. The __boostbook__ documentation format +is an extension of __docbook__, an SGML or XML based format for describing +documentation. + +QuickBook is a WikiWiki style documentation tool geared towards C++ +documentation using simple rules and markup for simple formatting tasks. +QuickBook extends the WikiWiki concept. Like the WikiWiki, QuickBook documents are +simple text files. A single QuickBook document can generate a fully linked set +of nice HTML and PostScript/PDF documents complete with images and syntax- +colorized source code. + +Features include: + +* generate __boostbook__ xml, to generate HTML, PostScript and PDF +* simple markup to link to Doxygen-generated entities +* macro system for simple text substitution +* simple markup for italics, bold, preformatted, blurbs, code samples, + tables, URLs, anchors, images, etc. +* automatic syntax coloring of code samples +* CSS support + +[endsect] + +[section:change_log Change Log] + +[h3 Version 1.3] + +* Quickbook file inclusion \[include\]. +* Better xml output (pretty layout). Check out the generated XML. +* Regression testing facility: to make sure your document will always be + compatible (full backward compatibility) regardless of changes to + QuickBook. +* Code cleanup and refactoring. +* Allow phrase markup in the doc-info. +* Preformatted code blocks via \`\`code\`\` (double ticks) allows code in tables + and lists, for example. +* Quickbook versioning; allows full backward compatibility. You have to add + \[quickbook 1.3\] to the doc-info header to enable the new features. Without + this, QuickBook will assume that the document is a pre-1.3 document. +* Better (intuitive) paragraph termination. Some markups may terminate a paragraph. + Example:`` + [section x] + blah... + [endsect]`` +* Fully qualified section and headers. Subsection names are concatenated to the + ID to avoid clashing. Example: `doc_name.sect_name.sub_sect_name.sub_sub_sect_name` +* Better   and whitespace handling in code snippets. +* \[xinclude\] fixes up the relative path to the target XML file when + input_directory is not the same as the output_directory. +* Allow untitled tables. +* Allow phrase markups in section titles. +* Allow escaping back to QuickBook from code, code blocks and inline code. +* Footnotes, with the \[footnote This is the footnote\] syntax. +* Post-processor bug fix for escaped XML code that it does not recognize. +* Replaceable, with the \[~replacement\] syntax. +* Generic Headers +* Code changes to allow full recursion (i.e. Collectors and push/pop functions) +* Various code cleanup/maintenance +* Templates! +* \[conceptref\] for referencing BoostBook entities. +* Allow escape of spaces. The escaped space is removed from the output. Syntax: + `\ `. +* Nested comments are now allowed. +* Quickbook blocks can nest inside comments. +* __import__ facility. +* Callouts on imported code +* Simple markups can now span a whole block. +* __blurbs__, __admonitions__ and table cells (see __tables__) may now + contain paragraphs. +* `\n` and `[br]` are now deprecated. + +[endsect] + +[section:syntax Syntax Summary] + +A QuickBook document is composed of one or more blocks. An example of +a block is the paragraph or a C++ code snippet. Some blocks have +special mark-ups. Blocks, except code snippets which have their own +grammar (C++ or Python), are composed of one or more phrases. A phrase +can be a simple contiguous run of characters. Phrases can have special +mark-ups. Marked up phrases can recursively contain other phrases, but +cannot contain blocks. A terminal is a self contained block-level or +phrase-level element that does not nest anything. + +Blocks, in general, are delimited by two end-of-lines (the block terminator). +Phrases in each block cannot contain a block terminator. This way, syntax errors +such as un-matched closing brackets do not go haywire and corrupt anything past +a single block. + +[section Comments] + +Can be placed anywhere. + +[pre +'''[/ comment (no output generated) ]''' +] + +[/ for testing only... ] + +[pre +'''[/ comments can be nested [/ some more here] ]''' +] + +[/ for testing [/ only ] ] + +[pre +'''[/ Quickbook blocks can nest inside comments. [*Comment this out too!] ]''' +] + +[/ for testing [*only ] ] + +[endsect] + +[section:phrase Phrase Level Elements] + +[section Font Styles] + +[pre''' +['italic], [*bold], [_underline], [^teletype], [-strikethrough] +'''] + +will generate: + +['italic], [*bold], [_underline], [^teletype], [-strikethrough] + +Like all non-terminal phrase level elements, this can of course be nested: + +[pre''' +[*['bold-italic]] +'''] + +will generate: + +[*['bold-italic]] + +[endsect] + +[section Replaceable] + +When you want content that may or must be replaced by the user, use the syntax: + +[pre''' +[~replacement] +'''] + +This will generate: + +[~replacement] + +[endsect] + +[section Quotations] + +[pre''' +["A question that sometimes drives me hazy: am I or are the others crazy?]--Einstein +'''] + +will generate: + +["A question that sometimes drives me hazy: am I or are the others crazy?]--Einstein + +Note the proper left and right quote marks. Also, while you can simply use +ordinary quote marks like "quoted", our quotation, above, will generate correct +DocBook quotations (e.g. quoted). + +Like all phrase elements, quotations may be nested. Example: + +[pre''' +["Here's the rule for bargains: ["Do other men, for they would do you.] That's +the true business precept.] +'''] + +will generate: + +["Here's the rule for bargains: ["Do other men, for they would do you.] +That's the true business precept.] + +[endsect] +[section Simple formatting] + +Simple markup for formatting text, common in many applications, is now supported: + +[pre''' +/italic/, *bold*, _underline_, =teletype= +'''] + +will generate: + +/italic/, *bold*, _underline_, =teletype= + +Unlike QuickBook's standard formatting scheme, the rules for simpler +alternatives are much stricter[footnote Thanks to David Barrett, author of +[@http://quinthar.com/qwikiwiki/index.php?page=Home Qwiki], for sharing +these samples and teaching me these obscure formatting rules. I wasn't sure +at all if __spirit__, being more or less a formal EBNF parser, can handle +the context sensitivity and ambiguity.]. + +* Simple markups cannot nest. You can combine a simple markup with a nestable markup. +* Simple markups cannot contain any other form of quickbook markup. +* A non-space character must follow the leading markup +* A non-space character must precede the trailing markup +* A space or a punctuation must follow the trailing markup +* If the matching markup cannot be found within a block, the formatting + will not be applied. This is to ensure that un-matched formatting markups, + which can be a common mistake, does not corrupt anything past a single block. + We do not want the rest of the document to be rendered bold just because we + forgot a trailing '*'. A single block is terminated by two end of lines or + the close bracket: ']'. +* A line starting with the star will be interpreted as an unordered list. + See __unordered_lists__. + +[table More Formatting Samples + [[Markup] [Result]] + [[[^'''*Bold*''']] [*Bold*]] + [[[^'''*Is bold*''']] [*Is bold*]] + [[[^'''* Not bold* *Not bold * * Not bold *''']] [* Not bold* *Not bold * * Not bold *]] + [[[^'''This*Isn't*Bold (no bold)''']] [This*Isn't*Bold (no bold)]] + [[[^'''(*Bold Inside*) (parenthesis not bold)''']] [(*Bold Inside*) (parenthesis not bold)]] + [[[^'''*(Bold Outside)* (parenthesis bold)''']] [*(Bold Outside)* (parenthesis bold)]] + [[[^'''3*4*5 = 60 (no bold)''']] [3*4*5 = 60 (no bold)]] + [[[^'''3 * 4 * 5 = 60 (no bold)''']] [3 * 4 * 5 = 60 (no bold)]] + [[[^'''3 *4* 5 = 60 (4 is bold)''']] [3 *4* 5 = 60 (4 is bold)]] + [[[^'''*This is bold* this is not *but this is*''']][*This is bold* this is not *but this is*]] + [[[^'''*This is bold*.''']] [*This is bold*.]] + [[[^'''*B*. (bold B)''']] [*B*. (bold B)]] + [[[^'''['*Bold-Italic*]''']] [['*Bold-Italic*]]] + [[[^'''*side-by*/-side/''']] [*side-by*/-side/]] +] + +As mentioned, simple markups cannot go past a single block. The text +from "have" to "full" in the following paragraph will be rendered as +bold: + +[pre''' +Baa baa black sheep, *have you any wool? +Yes sir, yes sir, three bags full!* +One for the master, one for the dame, +And one for the little boy who lives down the lane. +'''] + +Baa baa black sheep, *have you any wool? +Yes sir, yes sir, three bags full!* +One for the master, one for the dame, +And one for the little boy who lives down the lane. + +But in the following paragraph, bold is not applied: + +[pre''' +Baa baa black sheep, *have you any wool? +Yes sir, yes sir, three bags full! +One for the master, one for the dame, +And one for the little boy who lives down the lane. +'''] + +Baa baa black sheep, *have you any wool? +Yes sir, yes sir, three bags full! +One for the master, one for the dame, +And one for the little boy who lives down the lane. + +[endsect] +[section Inline code] + +Inlining code in paragraphs is quite common when writing C++ documentation. We +provide a very simple markup for this. For example, this: + +[pre''' +This text has inlined code `int main() { return 0; }` in it. +'''] + +will generate: + +This text has inlined code `int main() { return 0; }` in it. The code will be +syntax highlighted. + +[note We simply enclose the code with the tick: [^'''"`"'''], not the +single quote: `"'"`. Note too that [^'''`some code`'''] is preferred over +[^'''[^some code]''']. ] + +[endsect] +[section Code blocks] + +Preformatted code simply starts with a space or a tab (See __code__). +However, such a simple syntax cannot be used as phrase elements in lists +(See __ordered_lists__ and __unordered_lists__), tables (See __tables__), +etc. Inline code (see above) can. The problem is, inline code does not +allow formatting with newlines, spaces, and tabs. These are lost. + +We provide a phrase level markup that is a mix between the two. By using the +double-tick, instead of the single-tick, we are telling QuickBook to use +preformatted blocks of code. Example: + +[pre +\`\` + #include + + int main() + { + std::cout << "Hello, World!" << std::endl; + return 0; + } +\`\` +] + +will generate: + +`` + #include + + int main() + { + std::cout << "Hello, World!" << std::endl; + return 0; + } +`` + +[endsect] +[section Source Mode] + +If a document contains more than one type of source code then the source +mode may be changed dynamically as the document is processed. All QuickBook +documents are initially in C++ mode by default, though an alternative +initial value may be set in the __document__ section. + +To change the source mode, use the [^\[source-mode\]] markup, where +=source-mode= is one of the supported modes. For example, this: + +[pre''' +Python's [python] `import` is rather like C++'s [c++] `#include`. A +C++ comment `// looks like this` whereas a Python comment [python] +`# looks like this`. +'''] + +will generate: + +Python's [python] `import` is rather like C++'s [c++] `#include`. A +C++ comment `// looks like this` whereas a Python comment [python] +`#looks like this`. + +[table Supported Source Modes + [[Mode] [Source Mode Markup]] + [[C++] [[^\[c++\]]]] + [[Python] [[^\[python\]]]] +] + +[note The source mode strings are lowercase.] + +[endsect] +[section line-break] + +[pre''' +[br] +'''] + +[warning `[br]` is now deprecated. __blurbs__, __admonitions__ and +table cells (see __tables__) may now contain paragraphs.] + +[endsect] +[section Anchors] + +[pre''' +[#named_anchor] +'''] + +A named anchor is a hook that can be referenced by a link elsewhere in the +document. You can then reference an anchor with [^'''[link named_anchor +Some link text]''']. See __anchor_links__, __section__ and __heading__. + +[endsect] +[section Links] + +[pre''' +[@http://www.boost.org this is [*boost's] website....] +'''] + +will generate: + +[@http://www.boost.org this is [*boost's] website....] + +URL links where the link text is the link itself is common. Example: + +[pre''' +see http://spirit.sourceforge.net/ +'''] + +so, when the text is absent in a link markup, the URL is assumed. Example: + +[pre +see '''[@http://spirit.sourceforge.net/]''' +] + +will generate: + +see [@http://spirit.sourceforge.net/] + +[endsect] +[section Anchor links] + +You can link within a document using: + +[pre''' +[link section_id.normalized_header_text The link text] +'''] + +See sections __section__ and __heading__ for more info. + +[endsect] +[section refentry links] + +In addition, you can link internally to an XML refentry like: + +[pre''' +[link xml.refentry The link text] +'''] + +This gets converted into [^The link text]. + +Like URLs, the link text is optional. If this is not present, the link text will +automatically be the refentry. Example: + +[pre''' +[link xml.refentry] +'''] + +This gets converted into [^xml.refentry]. + +[endsect] +[section:code_links Code Links] + +If you want to link to a function, class, member, enum, concept or header in the reference +section, you can use: + +[pre''' +[funcref fully::qualified::function_name The link text] +[classref fully::qualified::class_name The link text] +[memberref fully::qualified::member_name The link text] +[enumref fully::qualified::enum_name The link text] +[macroref MACRO_NAME The link text] +[conceptref ConceptName The link text] +[headerref path/to/header.hpp The link text] +'''] + +Again, the link text is optional. If this is not present, the link text will +automatically be the function, class, member, enum, macro, concept or header. Example: + +[pre''' +[classref boost::bar::baz] +'''] + +would have "boost::bar::baz" as the link text. + +[endsect] +[section Escape] + +The escape mark-up is used when we don't want to do any processing. + +[pre +\'\'\' +escape (no processing/formatting) +\'\'\' +] + +Escaping allows us to pass XML markup to __boostbook__ or __docbook__. For example: + +[pre +\'\'\' +This is direct XML markup +\'\'\' +] + +''' +This is direct XML markup +''' + +[important Be careful when using the escape. The text must conform to +__boostbook__/__docbook__ syntax.] + +[endsect] +[section Single char escape] + +The backslash may be used to escape a single punctuation character. The +punctuation immediately after the backslash is passed without any processing. +This is useful when we need to escape QuickBook punctuations such as `[` and `]`. +For example, how do you escape the triple quote? Simple: [^\\'\\'\\'] + + +`\n` has a special meaning. It is used to generate line breaks. + +[warning `\n` and `[br]` are now deprecated. __blurbs__, __admonitions__ +and table cells (see __tables__) may now contain paragraphs.] + +The escaped space: `\ ` also has a special meaning. The escaped space is removed +from the output. + +[endsect] +[section Images] + +[pre''' +[$image.jpg] +'''] + +[endsect] +[section Footnotes] + +As of version 1.3, QuickBook supports footnotes. Just put the text of the +footnote in a `[footnote]` block, and the text will be put at the bottom +of the current page. For example, this: + +[pre''' +[footnote A sample footnote] +'''] + +will generate this[footnote A sample footnote]. + +[section Macro Expansion] + +[pre''' +__a_macro_identifier__ +'''] + +See __macros__ for details. + +[endsect] + +[section Template Expansion] + +[pre''' +[a_template_identifier] +'''] + +See __templates__ for details. + +[endsect] + +[endsect] +[endsect] +[section:block Block Level Elements] + +[section Document] + +Every document must begin with a Document Info section, which should look +like this: + +[pre''' +[document-type The Document Title + [quickbook 1.3] + [version 1.0] + [id the_document_name] + [dirname the_document_dir] + [copyright 2000 2002 2003 Joe Blow, Jane Doe] + [purpose The document's reason for being] + [category The document's category] + [authors [Blow, Joe], [Doe, Jane]] + [license The document's license] + [source-mode source-type] +] +'''] + +Where document-type is one of: + +* book +* article +* library +* chapter +* part +* appendix +* preface +* qandadiv +* qandaset +* reference +* set + +quickbook 1.3 declares the version of quickbook the document is written for. +In its absence, version 1.1 is assumed. + +=version=, =id=, =dirname=, =copyright=, =purpose=, =category=, =authors=, +=license=, =last-revision= and =source-mode= are optional information. + +=source-type= is a lowercase string setting the initial __source_mode__. If +the =source-mode= field is omitted, a default value of =c++= will be used. + +[endsect] +[section Section] + +Starting a new section is accomplished with: + +[pre''' +[section:id The Section Title] +'''] + +where /id/ is optional. id will be the filename of the generated section. +If it is not present, "The Section Title" will be normalized and become the id. +Valid characters are =a-Z=, =A-Z=, =0-9= and =_=. All non-valid characters are +converted to underscore and all upper-case are converted to lower case. +Thus: "The Section Title" will be normalized to "the_section_title". + +End a section with: + +[pre''' +[endsect] +'''] + +Sections can nest, and that results in a hierarchy in the table of contents. + +[endsect] +[section xinclude] + +You can include another XML file with: + +[pre''' +[xinclude file.xml] +'''] + +This is useful when file.xml has been generated by Doxygen and contains your +reference section. + +[endsect] +[section Paragraphs] + +Paragraphs start left-flushed and are terminated by two or more newlines. No +markup is needed for paragraphs. QuickBook automatically detects paragraphs from +the context. Block markups \[section, endsect, h1, h2, h3, h4, h5, h6, blurb, +(block-quote) ':', pre, def, table and include \] may also terminate a paragraph. + +[endsect] + +[section Lists] +[section Ordered lists] + +[pre +# One +# Two +# Three +] + +will generate: + +# One +# Two +# Three + +[endsect] +[section List Hierarchies] + +List hierarchies are supported. Example: + +[pre +# One +# Two +# Three + # Three.a + # Three.b + # Three.c +# Four + # Four.a + # Four.a.i + # Four.a.ii +# Five +] + +will generate: + +# One +# Two +# Three + # Three.a + # Three.b + # Three.c +# Fourth + # Four.a + # Four.a.i + # Four.a.ii +# Five + +[endsect] +[section Long List Lines] + +Long lines will be wrapped appropriately. Example: + +[pre +# A short item. +# A very long item. A very long item. A very long item. + A very long item. A very long item. A very long item. + A very long item. A very long item. A very long item. + A very long item. A very long item. A very long item. + A very long item. A very long item. A very long item. +# A short item. +] + +# A short item. +# A very long item. A very long item. A very long item. + A very long item. A very long item. A very long item. + A very long item. A very long item. A very long item. + A very long item. A very long item. A very long item. + A very long item. A very long item. A very long item. +# A short item. + +[endsect] +[section Unordered lists] + +[pre''' +* First +* Second +* Third +'''] + +will generate: + +* First +* Second +* Third + +[endsect] +[section Mixed lists] + +Mixed lists (ordered and unordered) are supported. Example: + +[pre''' +# One +# Two +# Three + * Three.a + * Three.b + * Three.c +# Four +'''] + +will generate: + +# One +# Two +# Three + * Three.a + * Three.b + * Three.c +# Four + +And... + +[pre''' +# 1 + * 1.a + # 1.a.1 + # 1.a.2 + * 1.b +# 2 + * 2.a + * 2.b + # 2.b.1 + # 2.b.2 + * 2.b.2.a + * 2.b.2.b +'''] + +will generate: + +# 1 + * 1.a + # 1.a.1 + # 1.a.2 + * 1.b +# 2 + * 2.a + * 2.b + # 2.b.1 + # 2.b.2 + * 2.b.2.a + * 2.b.2.b + +[endsect] +[endsect] + +[section Code] + +Preformatted code starts with a space or a tab. The code will be +syntax highlighted according to the current __source_mode__: + +[c++] + + #include + + int main() + { + // Sample code + std::cout << "Hello, World\n"; + return 0; + } + +[python] + + import cgi + + def cookForHtml(text): + '''"Cooks" the input text for HTML.''' + + return cgi.escape(text) + +[c++] + +Macros that are already defined are expanded in source code. Example: + +[pre''' +[def __array__ [@http://www.boost.org/doc/html/array/reference.html array]] +[def __boost__ [@http://www.boost.org/libs/libraries.htm boost]] + + using __boost__::__array__; +'''] + +Generates: + +[def __array__ [@http://www.boost.org/doc/html/array/reference.html array]] +[def __boost__ [@http://www.boost.org/libs/libraries.htm boost]] + + using __boost__::__array__; + +[endsect] +[section:escape_back Escaping Back To QuickBook] + +Inside code, code blocks and inline code, QuickBook does not allow any +markup to avoid conflicts with the target syntax (e.g. c++). In case you +need to switch back to QuickBook markup inside code, you can do so using a +language specific /escape-back/ delimiter. In C++ and Python, the delimiter +is the double tick (back-quote): "\`\`" and "\`\`". Example: + +[pre''' +void ``[@http://en.wikipedia.org/wiki/Foo#Foo.2C_Bar_and_Baz foo]``() +{ +} +'''] + +Will generate: + + void ``[@http://en.wikipedia.org/wiki/Foo#Foo.2C_Bar_and_Baz foo]``() + { + } + +When escaping from code to QuickBook, only phrase level markups are +allowed. Block level markups like lists, tables etc. are not allowed. + +[endsect] +[section Preformatted] + +Sometimes, you don't want some preformatted text to be parsed as C++. In such +cases, use the [^[pre ... \]] markup block. + +[pre''' +[pre + + Some *preformatted* text Some *preformatted* text + + Some *preformatted* text Some *preformatted* text + + Some *preformatted* text Some *preformatted* text + +] +'''] + +Spaces, tabs and newlines are rendered as-is. Unlike all quickbook block level +markup, pre (and Code) are the only ones that allow multiple newlines. The +markup above will generate: + +[pre + +Some *preformatted* text Some *preformatted* text + + Some *preformatted* text Some *preformatted* text + + Some *preformatted* text Some *preformatted* text + +] + +Notice that unlike Code, phrase markup such as font style is still permitted +inside =pre= blocks. + +[endsect] +[section Blockquote] + +[pre +'''[:sometext...]''' +] + +[:Indents the paragraph. This applies to one paragraph only.] + +[endsect] +[section Admonitions] + +[pre''' +[note This is a note] +[tip This is a tip] +[important This is important] +[caution This is a caution] +[warning This is a warning] +'''] + +generates __docbook__ admonitions: + +[note This is a note] +[tip This is a tip] +[important This is important] +[caution This is a caution] +[warning This is a warning] + +These are the only admonitions supported by __docbook__. So, +for example [^\[information This is some information\]] is unlikely +to produce the desired effect. + +[endsect] +[section Headings] + +[pre''' +[h1 Heading 1] +[h2 Heading 2] +[h3 Heading 3] +[h4 Heading 4] +[h5 Heading 5] +[h6 Heading 6] +'''] + +[h1 Heading 1] +[h2 Heading 2] +[h3 Heading 3] +[h4 Heading 4] +[h5 Heading 5] +[h6 Heading 6] + +Headings 1-3 \[h1 h2 and h3\] will automatically have anchors with normalized +names with [^name="section_id.normalized_header_text"] (i.e. valid characters are +=a-z=, =A-Z=, =0-9= and =_=. All non-valid characters are converted to underscore +and all upper-case are converted to lower-case. For example: Heading +1 in section Section 2 will be normalized to [^section_2.heading_1]). You can use: + +[pre''' +[link section_id.normalized_header_text The link text] +'''] + +to link to them. See __anchor_links__ and __section__ for more info. + +[endsect] +[section Generic Heading] + +In cases when you don't want to care about the heading level (1 to 6), you +can use the /Generic Heading/: + +[pre''' +[heading Heading] +'''] + +The /Generic Heading/ assumes the level, plus one, of the innermost section +where it is placed. For example, if it is placed in the outermost section, +then, it assumes /h2/. + +Headings are often used as an alternative to sections. It is used +particularly if you do not want to start a new section. In many cases, +however, headings in a particular section is just flat. Example: + +[pre''' +[section A] +[h2 X] +[h2 Y] +[h2 Z] +[endsect] +'''] + +Here we use h2 assuming that section A is the outermost level. If it is +placed in an inner level, you'll have to use h3, h4, etc. depending on +where the section is. In general, it is the section level plus one. It is +rather tedious, however, to scan the section level everytime. If you +rewrite the example above as shown below, this will be automatic: + +[pre''' +[section A] +[heading X] +[heading Y] +[heading Z] +[endsect] +'''] + +They work well regardless where you place them. You can rearrange sections +at will without any extra work to ensure correct heading levels. In fact, +with /section/ and /heading/, you have all you need. /h1/../h6/ becomes +redundant. /h1/../h6/ might be deprecated in the future. + +[endsect] +[section Macros] + +[pre''' +[def macro_identifier some text] +'''] + +When a macro is defined, the identifier replaces the text anywhere in the +file, in paragraphs, in markups, etc. macro_identifier is a string of non- +white space characters except '\]'. A macro may not follow an alphabetic +character or the underscore. The replacement text can be any phrase (even +marked up). Example: + +[pre''' +[def sf_logo [$http://sourceforge.net/sflogo.php?group_id=28447&type=1]] +sf_logo +'''] + +Now everywhere the sf_logo is placed, the picture will be inlined. + +[def sf_logo [$http://sourceforge.net/sflogo.php?group_id=28447&type=1]] +sf_logo + +[tip It's a good idea to use macro identifiers that are distinguishable. +For instance, in this document, macro identifiers have two leading and +trailing underscores (e.g. [^'''__spirit__''']). The reason is to avoid +unwanted macro replacement.] + +Links (URLS) and images are good candidates for macros. *1*) They tend to +change a lot. It is a good idea to place all links and images in one place near the top +to make it easy to make changes. *2*) The syntax is not pretty. It's easier to read and +write, e.g. [^'''__spirit__'''] than [^'''[@http://spirit.sourceforge.net Spirit]''']. + +Some more examples: + +[pre''' +[def :-) [$theme/smiley.png]] +[def __spirit__ [@http://spirit.sourceforge.net Spirit]] +'''] + +(See __images__ and __links__) + +Invoking these macros: + +[pre''' +Hi __spirit__ :-) +'''] + +will generate this: + +Hi __spirit__ :-) + +[endsect] +[section Predefined Macros] + +Quickbook has some predefined macros that you can already use. + +[table Predefined Macros + [[Macro] [Meaning] [Example]] + [['''__DATE__'''] [Today's date] [__DATE__]] + [['''__TIME__'''] [The current time] [__TIME__]] + [['''__FILENAME__'''] [Quickbook source filename] [__FILENAME__]] +] + +[endsect] +[section Templates] + +Templates provide a more versatile text substitution mechanism. Templates +come in handy when you need to create parameterizable, multi-line, +boilerplate text that you specify once and expand many times. Templates +accept one or more arguments. These arguments act like place-holders for +text replacement. Unlike simple macros, which are limited to phrase level +markup, templates can contain block level markup (e.g. paragraphs, code +blocks and tables). + +Example template: + +[pre''' +[template person[name age what] + +Hi, my name is [name]. I am [age] years old. I am a [what]. + +] +'''] + +[template person[name age what] + +Hi, my name is [name]. I am [age] years old. I am a [what]. + +] + +[heading Template Identifier] + +Template identifiers can either consist of: + +* An initial alphabetic character or the underscore, followed by + zero or more alphanumeric characters or the underscore. This is + similar to your typical C/C++ identifier. +* A single character punctuation (a non-alphanumeric printable character) + +[heading Formal Template Arguments] + +Template formal arguments are identifiers consisting of an initial +alphabetic character or the underscore, followed by zero or more +alphanumeric characters or the underscore. This is similar to your typical +C/C++ identifier. + +A template formal argument temporarily hides a template of the same name at +the point where the [link quickbook.syntax.block.templates.template_expansion +template is expanded]. Note that the body of the [^person] template above +refers to [^name] [^age] and [^what] as [^\[name\]] [^\[age\]] and +[^\[what\]]. [^name] [^age] and [^what] are actually templates that exist +in the duration of the template call. + +[heading Template Body] + +The template body can be just about any QuickBook block or phrase. There +are actually two forms. Templates may be phrase or block level. Phrase +templates are of the form: + +[pre''' +[template sample[arg1 arg2...argN] replacement text... ] +'''] + +Block templates are of the form: + +[pre''' +[template sample[arg1 arg2...argN] +replacement text... +] +'''] + +The basic rule is as follows: if a newline immediately follows the argument +list, then it is a block template, otherwise, it is a phrase template. +Phrase templates are typically expanded as part of phrases. Like macros, +block level elements are not allowed in phrase templates. + +[heading Template Expansion] + +You expand a template this way: + +[pre''' +[template_identifier arg1..arg2..arg3] +'''] + +At template expansion, you supply the actual arguments. The template will +be expanded with your supplied arguments. Example: + +[pre''' +[person James Bond..39..Spy] +[person Santa Clause..87..Big Red Fatso] +'''] + +Which will expand to: + +[person James Bond..39..Spy] +[person Santa Clause..87..Big Red Fatso] + +[caution A word of caution: Templates are recursive. A template can call +another template or even itself, directly or indirectly. There are no +control structures in QuickBook (yet) so this will always mean infinite +recursion. QuickBook can detect this situation and report an error if +recursion exceeds a certain limit.] + +Each actual argument can be a word, a text fragment or just about any [link +quickbook.syntax.phrase QuickBook phrase]. Arguments are separated by the +double dot [^".."] and terminated by the close parenthesis. + +[heading Nullary Templates] + +Nullary templates look and act like simple macros. Example: + +[pre''' +[template alpha[]'''&#945;'''] +[template beta[]'''&#946;'''] +'''] + +[template alpha[]'''α'''] +[template beta[]'''β'''] + +Expanding: + +[pre'''Some squigles...[*[alpha][beta]]'''] + +We have: + +Some squiggles...[*[alpha][beta]] + +The difference with macros are + +* The explicit [link quickbook.syntax.block.templates.template_expansion + template expansion syntax]. This is an advantage because, now, we don't + have to use obscure naming conventions like double underscores (e.g. + \_\_alpha\_\_) to avoid unwanted + macro replacement. +* The template is expanded at the point where it is invoked. A macro is + expanded immediately at its point of declaration. This is subtle and + can cause a slight difference in behavior especially if you refer to + other macros and templates in the body. + +The empty brackets after the template identifier ([^alpha\[\]]) indicates no +arguments. If the template body does not look like a template argument list, we +can elide the empty brackets. Example: + +[pre''' +[template aristotle_quote Aristotle: [*['Education is the best provision +for the journey to old age.]]] +'''] + +[template aristotle_quote\ Aristotle: [*['Education is the best provision +for the journey to old age.]]] + +Expanding: + +[pre''' +Here's a quote from [aristotle_quote]. +'''] + +We have: + +Here's a quote from [aristotle_quote]. + +The disadvantage is that you can't avoid the space between the template +identifier, `aristotle_quote`, and the template body "Aristotle...". This space +will be part of the template body. If that space is unwanted, use empty +brackets or use the space escape: "`\ `". Example: + +[pre''' +[template tag\ _tag] +'''] + +[template tag\ _tag] + +Then expanding: + +[pre''' +`struct` x[tag]; +'''] + +We have: + +`struct` x[tag]; + +You have a couple of ways to do it. I personally prefer the explicit empty +brackets, though. + +[heading Simple Arguments] + +As mentioned, arguments are separated by the double dot [^".."]. If there +are less arguments passed than expected, QuickBook attempts to break the +last argument into two or more arguments following this logic: + +* Break the last argument into two, at the first space found ([^'', '\\n', + \\t' or '\\r']). +* Repeat until there are enough arguments or if there are no more spaces + found (in which case, an error is reported). + +For example: + +[pre''' +[template simple[a b c d] [a][b][c][d]] +[simple w x y z] +'''] + +will produce: + +[template simple[a b c d] [a][b][c][d]] +[simple w x y z] + +"w x y z" is initially treated as a single argument because we didn't +supply any [^".."] separators. However, since [^simple] expects 4 +arguments, "w x y z" is broken down iteratively (applying the logic above) +until we have "w", "x", "y" and "z". + +QuickBook only tries to get the arguments it needs. For example: + +[pre''' +[simple w x y z trail] +'''] + +will produce: + +[simple w x y z trail] + +The arguments being: "w", "x", "y" and "z trail". + +It should be obvious now that for simple arguments with no spaces, we can +get by without separating the arguments with [^".."] separators. It is +possible to combine [^".."] separators with the argument passing +simplification presented above. Example: + +[pre''' +[simple what do you think ..m a n?] +'''] + +will produce: + +[simple what do you think ..m a n?] + +[heading Punctuation Templates] + +With templates, one of our objectives is to allow us to rewrite QuickBook +in QuickBook (as a qbk library). For that to happen, we need to accommodate +single character punctuation templates which are fairly common in +QuickBook. You might have noticed that single character punctuations are +allowed as [link quickbook.syntax.block.templates.template_identifier +template identifiers]. Example: + +[pre''' +[template ![bar] ''''''[bar]''''''] +'''] + +Now, expanding this: + +[pre''' +[!baz] +'''] + +We will have: + +[pre +baz +] + +[endsect] +[section Blurbs] + +[pre''' +[blurb :-) [*An eye catching advertisement or note...] + + __spirit__ is an object-oriented recursive-descent parser generator framework + implemented using template meta-programming techniques. Expression templates + allow us to approximate the syntax of Extended Backus-Normal Form (EBNF) + completely in C++. +] +'''] + +will generate this: + +[blurb :-) [*An eye catching advertisement or note...] + + __spirit__ is an object-oriented recursive-descent parser generator + framework implemented using template meta-programming techniques. Expression + templates allow us to approximate the syntax of Extended Backus-Normal Form + (EBNF) completely in C++. +] + +[note Prefer [link quickbook.syntax.block.admonitions admonitions] wherever +appropriate.] + +[endsect] +[section Tables] + +[pre''' +[table A Simple Table + [[Heading 1] [Heading 2] [Heading 3]] + [[R0-C0] [R0-C1] [R0-C2]] + [[R1-C0] [R1-C1] [R1-C2]] + [[R2-C0] [R2-C1] [R2-C2]] +] +'''] + +will generate: + +[table A Simple Table + [[Heading 1] [Heading 2] [Heading 3]] + [[R0-C0] [R0-C1] [R0-C2]] + [[R2-C0] [R2-C1] [R2-C2]] + [[R3-C0] [R3-C1] [R3-C2]] +] + +The table title is optional. The first row of the table is automatically +treated as the table header; that is, it is wrapped in +[^...] XML tags. Note that unlike the original QuickDoc, the +columns are nested in [ cells... ]. The syntax is free-format and allows +big cells to be formatted nicely. Example: + +[pre''' +[table Table with fat cells + [[Heading 1] [Heading 2]] + [ + [Row 0, Col 0: a small cell] + [ + Row 0, Col 1: a big fat cell with paragraphs + + Boost provides free peer-reviewed portable C++ source libraries. + + We emphasize libraries that work well with the C++ Standard Library. + Boost libraries are intended to be widely useful, and usable across + a broad spectrum of applications. The Boost license encourages both + commercial and non-commercial use. + ] + ] + [ + [Row 1, Col 0: a small cell] + [Row 1, Col 1: a small cell] + ] +] +'''] + +and thus: + +[table Table with fat cells + [[Heading 1] [Heading 2]] + [ + [Row 0, Col 0: a small cell] + [ + Row 0, Col 1: a big fat cell with paragraphs + + Boost provides free peer-reviewed portable C++ source libraries. + + We emphasize libraries that work well with the C++ Standard Library. + Boost libraries are intended to be widely useful, and usable across + a broad spectrum of applications. The Boost license encourages both + commercial and non-commercial use. + ] + ] + [ + [Row 1, Col 0: a small cell] + [Row 1, Col 1: a small cell] + ] +] + +Here's how to have preformatted blocks of code in a table cell: + +[pre''' +[table Table with code + [[Comment] [Code]] + [ + [My first program] + ['''\`\` + #include + + int main() + { + std::cout << "Hello, World!" << std::endl; + return 0; + } + \`\`'''] + ] +] +'''] + +[table Table with code + [[Comment] [Code]] + [ + [My first program] + [`` + #include + + int main() + { + std::cout << "Hello, World!" << std::endl; + return 0; + } + ``] + ] +] + +[endsect] +[section Variable Lists] + +[pre''' +[variablelist A Variable List + [[term 1] [The definition of term 1]] + [[term 2] [The definition of term 2]] + [[term 3] [The definition of term 3]] +] +'''] + +will generate: + +[variablelist A Variable List + [[term 1] [The definition of term 1]] + [[term 2] [The definition of term 2]] + [[term 3] [The definition of term 3]] +] + +The rules for variable lists are the same as for tables, except that +only 2 "columns" are allowed. The first column contains the terms, and +the second column contains the definitions. Those familiar with HTML +will recognize this as a "definition list". + +[endsect] +[section Include] + +You can include one QuickBook file from another. The syntax is simply: + +[pre''' +[include someother.qbk] +'''] + +The included file will be processed as if it had been cut and pasted +into the current document, with the following exceptions: + +* The '''__FILENAME__''' predefined macro will reflect the name of the + file currently being processed. +* Any macros defined in the included file are scoped to that file. + +The [^\[include\]] directive lets you specify a document id to use for the +included file. When this id is not explicitly specified, the id defaults to +the filename ("someother", in the example above). You can specify the id +like this: + +[pre''' +[include:someid someother.qbk] +'''] + +All auto-generated anchors will use the document id as a unique prefix. So +for instance, if there is a top section in someother.qbk named "Intro", the +named anchor for that section will be "someid.intro", and you can link to +it with [^\[link someid.intro The Intro\]]. + +[endsect] + +[section Import] + +When documenting code, you'd surely need to present code from actual source +files. While it is possible to copy some code and paste them in your QuickBook +file, doing so is error prone and the extracted code in the documentation tends +to get out of sync with the actual code as the code evolves. The problem, as +always, is that once documentation is written, the tendency is for the docs to +languish in the archives without maintenance. + +QuickBook's import facility provides a nice solution. + +[heading Example] + +You can effortlessly import code snippets from source code into your QuickBook. +The following illustrates how this is done: + +[pre''' +[import ../test/stub.cpp] +[foo] +[bar] +'''] + +The first line: + +[pre''' +[import ../test/stub.cpp] +'''] + +collects specially marked-up code snippets from [@../../test/stub.cpp stub.cpp] +and places them in your QuickBook file as virtual templates. Each of the +specially marked-up code snippets has a name (e.g. `foo` and `bar` in the +example above). This shall be the template identifier for that particular code +snippet. The second and third line above does the actual template expansion: + +[pre''' +[foo] +[bar] +'''] + +And the result is: + +[import ../test/stub.cpp] +[foo] +[bar] + +[heading Code Snippet Markup] + +Note how the code snippets in [@../../test/stub.cpp stub.cpp] get marked up. We +use distinguishable comments following the form: + + //[id + some code here + //] + +The first comment line above initiates a named code-snippet. This prefix will +not be visible in quickbook. The entire code-snippet in between `//[id` and +`//]` will be inserted as a template in quickbook with name ['/id/]. The comment +`//]` ends a code-snippet This too will not be visible in quickbook. + +[heading Special Comments] + +Special comments of the form: + + //` some [*quickbook] markup here + +and: + + /*` some [*quickbook] markup here */ + +will be parsed by QuickBook. This can contain quickbook /blocks/ (e.g. sections, +paragraphs, tables, etc). In the first case, the initial slash-slash, tick and +white-space shall be ignored. In the second, the initial slash-star-tick and the +final star-slash shall be ignored. + +[heading Callouts] + +Special comments of the form: + + /*< some [*quickbook] markup here >*/ + +will be regarded as callouts. These will be collected, numbered and +rendered as a "callout bug" (a small icon with a number). After the +whole snippet is parsed, the callout list is generated. See +[@http://www.docbook.org/tdg/en/html/callout.html Callouts] for details. +Example: + +[foo_bar] + +Checkout [@../../test/stub.cpp stub.cpp] to see the actual code. + +[endsect] + +[endsect] +[endsect] + +[section:install Installation and configuration] + +This section provides some guidelines on how to install and configure +BoostBook and Quickbook under several operating systems. + +Before continuing, it is very important that you keep this in mind: if you +try to build some documents and the process breaks due to misconfiguration, +be absolutely sure to delete any `bin` and `bin.v2` directories generated +by the build before trying again. Otherwise your configuration fixes will +not take any effect. + +[section:windows Windows 2000, XP, 2003, Vista] + +[python] + +[:['Section contributed by Julio M. Merino Vidal]] + +The following instructions apply to any Windows system based on Windows +2000, including Windows XP, Windows 2003 Server and Windows Vista. The +paths shown below are taken from a Windows Vista machine; you will need to +adjust them to match your system in case you are running an older version. + +# First of all you need to have a copy of `xsltproc` for Windows. There + are many ways to get this tool, but to keep things simple, use the + [@http://www.zlatkovic.com/pub/libxml/ binary packages] made by Igor + Zlatkovic. At the very least, you need to download the following + packages: `iconv`, `zlib`, `libxml2` and `libxslt`. + +# Unpack all these packages in the same directory so that you get unique + `bin`, `include` and `lib` directories within the hierarchy. These + instructions use `C:\Users\example\Documents\boost\xml` as the root for + all files. + +# From the command line, go to the `bin` directory and launch + `xsltproc.exe` to ensure it works. You should get usage information on + screen. + +# Download [@http://www.docbook.org/xml/4.2/docbook-xml-4.2.zip Docbook XML + 4.2] and unpack it in the same directory used above. That is: + `C:\Users\example\Documents\boost\xml\docbook-xml`. + +# Download the latest + [@http://sourceforge.net/project/showfiles.php?group_id=21935&package_id=16608 + Docbook XSL] version and unpack it, again in the same directory + used before. To make things easier, rename the directory created + during the extraction to `docbook-xsl` (bypassing the version name): + `C:\Users\example\Documents\boost\xml\docbook-xsl`. + +# Add the following to your `user-config.jam` file, which should live in + your home directory (`%HOMEDRIVE%%HOMEPATH%`). You must already have it + somewhere or otherwise you could not be building Boost (i.e. missing + tools configuration). + + using xsltproc + : "C:/Users/example/Documents/boost/xml/bin/xsltproc.exe" + ; + + using boostbook + : "C:/Users/example/Documents/boost/xml/docbook-xsl" + : "C:/Users/example/Documents/boost/xml/docbook-xml" + ; + +The above steps are enough to get a functional BoostBook setup. Quickbook +will be automatically built when needed. If you want to avoid these +rebuilds: + +# Go to Quickbook's source directory (`BOOST_ROOT\tools\quickbook`). + +# Build the utility by issuing `bjam --v2`. + +# Copy the resulting `quickbook.exe` binary (located under the + `BOOST_ROOT\bin.v2` hierarchy) to a safe place. Following our previous + example, you can install it into: + `C:\Users\example\Documents\boost\xml\bin`. + +# Add the following to your `user-config.jam` file: + + using quickbook + : "C:/Users/example/Documents/boost/xml/bin/quickbook.exe" + ; + +[endsect] + +[section:linux Debian, Ubuntu] + +The following instructions apply to Debian and its derivatives. They are based +on a Ubuntu Edgy install but should work on other Debian based systems. + +First install the `bjam`, `xsltproc`, `docbook-xsl` and `docbook-xml` packages. +For example, using `apt-get`: + + sudo apt-get install xsltprc docbook-xsl docbook-xml + +If you're planning on building boost's documentation, you'll also need to +install the `doxygen` package as well. + +Next, we need to configure Boost Build to compile BoostBook files. Add the +following to your `user-config.jam` file, which should be in your home +directory. If you don't have one, create a file containing this text. For more +information on setting up `user-config.jam`, see the +[@http://boost.org/boost-build2/doc/html/bbv2/advanced/configuration.html Boost +Build documentation]. + + using xsltproc ; + + using boostbook + : /usr/share/xml/docbook/stylesheet/nwalsh + : /usr/share/xml/docbook/schema/dtd/4.2 + ; + + # Remove this line if you're not using doxygen + using doxygen ; + +The above steps are enough to get a functional BoostBook setup. Quickbook +will be automatically built when needed. If you want to avoid these +rebuilds: + +# Go to Quickbook's source directory (`BOOST_ROOT/tools/quickbook`). + +# Build the utility by issuing `bjam --v2`. + +# Copy the resulting `quickbook` binary (located under the + `BOOST_ROOT/bin.v2` hierarchy) to a safe place. The traditional location is + `/usr/local/bin`. + +# Add the following to your `user-config.jam` file, using the full path of the + quickbook executable: + + using quickbook + : /usr/local/bin/quickbook + ; + +[endsect] +[endsect] [/Installation and configuration] + +[section:editors Editor Support] + +Editing quickbook files is usually done with text editors both simple and +powerful. The following sections list the settings for some editors which can +help make editing quickbook files a bit easier. + +[blurb __note__ You may submit your settings, tips, and suggestions to the +authors, or through the [@https://lists.sourceforge.net/lists/listinfo/boost- +docs Boost Docs mailing list].] + +[section:scite Scintilla Text Editor] + +[:['Section contributed by Dean Michael Berris]] + +The Scintilla Text Editor (SciTE) is a free source code editor for Win32 and X. +It uses the SCIntilla source code editing component. + +[blurb __tip__ SciTE can be downloaded from [@http://www.scintilla.org/SciTE.html]] + +You can use the following settings to highlight quickbook tags when +editing quickbook files. + +[pre''' +qbk=*.qbk +lexer.*.qbk=props +use.tabs.$(qbk)=0 +tab.size.$(qbk)=4 +indent.size.$(qbk)=4 +style.props.32=$(font.base) +comment.stream.start.props=[/ +comment.stream.end.props=] +comment.box.start.props=[/ +comment.box.middle.props= +comment.box.end.props=] +'''] + +[blurb __note__ Thanks to Rene Rivera for the above SciTE settings.] + +[endsect] [/scite] +[endsect] [/editors] + +[section:faq Frequently Asked Questions] + +[heading Can I use QuickBook for non-Boost documentation?] + +QuickBook can be used for non-Boost documentation with a little extra work. + +[:['Faq contributed by Michael Marcin]] + +When building HTML documentation with BoostBook a Boost C++ Libraries header +is added to the files. When using QuickBook to document projects outside of +Boost this is not desirable. This behavior can be overridden at the BoostBook +level by specifying some XSLT options. When using Boost Build version 2 (BBv2) +this can be achieved by adding parameters to the BoostBook target declaration. + +For example: +[pre +using quickbook ; + +xml my_doc : my_doc.qbk ; + +boostbook standalone + : + my_doc + : + boost.image.src=images/my_project_logo.png + boost.image.alt="\\"My Project\\"" + boost.image.w=100 + boost.image.h=50 + nav.layout=none + ; +] + +[endsect] [/faq] + +[section:ref Quick Reference] + +[cpp] + +[template ordered_list_sample[] +[pre''' +# one +# two +# three +'''] +] + +[template unordered_list_sample[] +[pre''' +* one +* two +* three +'''] +] + +[template table_sample[] +[pre''' +[table Title +[[a][b][c]] +[[a][b][c]] +] +'''] +] + +[template var_list_sample[] +[pre''' +[variablelist Title +[[a][b]] +[[a][b]] +] +'''] +] + + +[table Syntax Compendium + [[To do this...] [Use this...] [See this...]] + [[comment] [[^'''[/ some comment]''']] [__comments__]] + [[['italics]] [[^'''['italics] or /italics/''']] [__font_styles__ and __simple_formatting__]] + [[[*bold]] [[^'''[*bold] or *bold*''']] [__font_styles__ and __simple_formatting__]] + [[[_underline]] [[^'''[_underline] or _underline_''']] [__font_styles__ and __simple_formatting__]] + [[[^teletype]] [[^'''[^teletype] or =teletype=''']] [__font_styles__ and __simple_formatting__]] + [[[-strikethrough]] [[^'''[-strikethrough]''']] [__font_styles__ and __simple_formatting__]] + [[[~replaceable]] [[^'''[~replaceable]''']] [__replaceable__]] + [[source mode] [[^\[c++\]] or [^\[python\]]] [__source_mode__]] + [[inline code] [[^'''`int main();`''']] [__inline_code__]] + [[code block] [[^'''``int main();``''']] [__code__]] + [[code escape] [[^'''``from c++ to QuickBook``''']] [__escape_back__]] + [[line break] [[^'''[br] or \n''']] [__line_break__ *DEPRECATED*]] + [[anchor] [[^'''[#anchor]''']] [__anchors__]] + [[link] [[^'''[@http://www.boost.org Boost]''']] [__links__]] + [[anchor link] [[^'''[link section.anchor Link text]''']] [__anchor_links__]] + [[refentry link] [[^'''[link xml.refentry Link text]''']] [__refentry_links__]] + [[function link] [[^'''[funcref fully::qualified::function_name Link text]''']] [__code_links__]] + [[class link] [[^'''[classref fully::qualified::class_name Link text]''']] [__code_links__]] + [[member link] [[^'''[memberref fully::qualified::member_name Link text]''']] [__code_links__]] + [[enum link] [[^'''[enumref fully::qualified::enum_name Link text]''']] [__code_links__]] + [[macro link] [[^'''[macroref MACRO_NAME Link text]''']] [__code_links__]] + [[concept link] [[^'''[conceptref ConceptName Link text]''']] [__code_links__]] + [[header link] [[^'''[headerref path/to/header.hpp Link text]''']] [__code_links__]] + [[escape] [[^\'\'\'escaped text (no processing/formatting)\'\'\']] [__escape__]] + [[single char escape] [[^\\c]] [__single_char_escape__]] + [[images] [[^'''[$image.jpg]''']] [__images__]] + [[begin section] [[^'''[section The Section Title]''']] [__section__]] + [[end section] [[^'''[endsect]''']] [__section__]] + [[paragraph] [No markup. Paragraphs start left-flushed and are terminated by two or more newlines.] [__paragraphs__]] + [[ordered list] [[ordered_list_sample]] [__ordered_lists__]] + [[unordered list] [[unordered_list_sample]] [__unordered_lists__]] + [[code] [No markup. Preformatted code starts with a space or a tab.] [__code__]] + [[preformatted] [[^'''[pre preformatted]''']] [__preformatted__]] + [[block quote] [[^'''[:sometext...]''']] [__blockquote__]] + [[heading 1] [[^'''[h1 Heading 1]''']] [__heading__]] + [[heading 2] [[^'''[h2 Heading 2]''']] [__heading__]] + [[heading 3] [[^'''[h3 Heading 3]''']] [__heading__]] + [[heading 4] [[^'''[h4 Heading 4]''']] [__heading__]] + [[heading 5] [[^'''[h5 Heading 5]''']] [__heading__]] + [[heading 6] [[^'''[h6 Heading 6]''']] [__heading__]] + [[macro] [[^'''[def macro_identifier some text]''']] [__macros__]] + [[template] [[^'''[template[a b] [a] body [b]]''']] [__templates__]] + [[blurb] [[^'''[blurb advertisement or note...]''']] [__blurbs__]] + [[admonition] [[^'''[warning Warning text...]''']] [__admonitions__]] + [[table] [[table_sample]] [__tables__]] + [[variablelist] [[var_list_sample]] [__variable_lists__]] + [[include] [[^'''[include someother.qbk]''']] [__include__]] +] + +[endsect] diff --git a/src/boost/tools/quickbook/test/regen-gold.sh b/src/boost/tools/quickbook/test/regen-gold.sh new file mode 100644 index 000000000..c1f9b8e8e --- /dev/null +++ b/src/boost/tools/quickbook/test/regen-gold.sh @@ -0,0 +1,47 @@ +#============================================================================== +# Copyright (c) 2017-2018 Daniel James +# +# Use, modification and distribution is subject to the Boost Software +# License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at +# http://www.boost.org/LICENSE_1_0.txt) +#============================================================================== + +#!/usr/bin/env bash + +cd $(dirname $0) + +cd .. +b2 -q || exit 1 +cd - + +find . -name "*.gold" | while read gold_file +do + flags="--debug" + + quickbook_file=$(echo $gold_file | sed 's/[.]gold/.quickbook/') + html_file=$(echo $gold_file | sed 's/[.]gold/.gold-html/') + + if [[ $gold_file =~ .*xinclude/.*-alt\.gold ]] + then + quickbook_file=$(echo $quickbook_file | sed 's/-alt\.quickbook/.quickbook/') + flags="$flags --xinclude-base xinclude/sub" + elif [[ $gold_file =~ .*xinclude/.*\.gold ]] + then + flags="$flags --xinclude-base xinclude/../.." + fi + + if [[ $gold_file =~ .*include/filename[-_]path.* ]] + then + flags="$flags -I include/sub" + fi + + if [[ $gold_file =~ .*command_line_macro.* ]] + then + flags="$flags -D__macro__=*bold* -D__empty__" + fi + + ../../../dist/bin/quickbook $quickbook_file $flags --output-file $gold_file || + echo "*** Error generating boostbook from $quickbook_file" + ../../../dist/bin/quickbook $quickbook_file $flags --output-file $html_file --output-format onehtml || + echo "*** Error generating html from $quickbook_file" +done diff --git a/src/boost/tools/quickbook/test/role-1_6.gold b/src/boost/tools/quickbook/test/role-1_6.gold new file mode 100644 index 000000000..bdb4b58ef --- /dev/null +++ b/src/boost/tools/quickbook/test/role-1_6.gold @@ -0,0 +1,9 @@ + + +
+ Quickbook Role Test + + Keyword [role] + +
diff --git a/src/boost/tools/quickbook/test/role-1_6.gold-html b/src/boost/tools/quickbook/test/role-1_6.gold-html new file mode 100644 index 000000000..536c82745 --- /dev/null +++ b/src/boost/tools/quickbook/test/role-1_6.gold-html @@ -0,0 +1,12 @@ + + + + +

+ Quickbook Role Test +

+

+ Keyword [role] +

+ + diff --git a/src/boost/tools/quickbook/test/role-1_6.quickbook b/src/boost/tools/quickbook/test/role-1_6.quickbook new file mode 100644 index 000000000..0982b9cd9 --- /dev/null +++ b/src/boost/tools/quickbook/test/role-1_6.quickbook @@ -0,0 +1,5 @@ +[article Quickbook Role Test +[quickbook 1.6] +] + +[role keyword Keyword] [role keyword] [role] diff --git a/src/boost/tools/quickbook/test/role-1_7-fail.quickbook b/src/boost/tools/quickbook/test/role-1_7-fail.quickbook new file mode 100644 index 000000000..b01d16e23 --- /dev/null +++ b/src/boost/tools/quickbook/test/role-1_7-fail.quickbook @@ -0,0 +1,5 @@ +[article Quickbook Role Fail Test +[quickbook 1.7] +] + +[role] diff --git a/src/boost/tools/quickbook/test/role-1_7.gold b/src/boost/tools/quickbook/test/role-1_7.gold new file mode 100644 index 000000000..4cd7d5bb7 --- /dev/null +++ b/src/boost/tools/quickbook/test/role-1_7.gold @@ -0,0 +1,13 @@ + + +
+ Quickbook Role Test + + Keyword + + + road Red Three + Colours Red Red Road + +
diff --git a/src/boost/tools/quickbook/test/role-1_7.gold-html b/src/boost/tools/quickbook/test/role-1_7.gold-html new file mode 100644 index 000000000..7e2eb0122 --- /dev/null +++ b/src/boost/tools/quickbook/test/role-1_7.gold-html @@ -0,0 +1,16 @@ + + + + +

+ Quickbook Role Test +

+

+ Keyword +

+

+ road Red Three + Colours Red Red Road +

+ + diff --git a/src/boost/tools/quickbook/test/role-1_7.quickbook b/src/boost/tools/quickbook/test/role-1_7.quickbook new file mode 100644 index 000000000..17bf44952 --- /dev/null +++ b/src/boost/tools/quickbook/test/role-1_7.quickbook @@ -0,0 +1,13 @@ +[article Quickbook Role Test +[quickbook 1.7] +] + +[role keyword Keyword] [role keyword] + +[template r red] +[template r2 road] +[r2] +[role [r] Red] [role [r]] +[role three-colours-[r] Three Colours Red] +[role [r]-[r2] Red Road] + diff --git a/src/boost/tools/quickbook/test/section-1_4.gold b/src/boost/tools/quickbook/test/section-1_4.gold new file mode 100644 index 000000000..07ba43a2c --- /dev/null +++ b/src/boost/tools/quickbook/test/section-1_4.gold @@ -0,0 +1,20 @@ + + +
+ Section Id 1.4 +
+ <link linkend="section_id_1_4.id_test1">Quickbook section id test</link> +
+
+ <link linkend="section_id_1_4.id_test2">Quickbook section id test</link> +
+
+ <link linkend="section_id_1_4.quickbook_section_no_id_test_1">Quickbook + section no id test 1</link> +
+
+ <link linkend="section_id_1_4.___quickbook_section_no_id_test_2">++ Quickbook + section no id test 2</link> +
+
diff --git a/src/boost/tools/quickbook/test/section-1_4.gold-html b/src/boost/tools/quickbook/test/section-1_4.gold-html new file mode 100644 index 000000000..948b8a9d7 --- /dev/null +++ b/src/boost/tools/quickbook/test/section-1_4.gold-html @@ -0,0 +1,58 @@ + + + + +

+ Section Id 1.4 +

+ +
+

+ Quickbook section id test +

+
+
+
+
+

+ Quickbook section id test +

+
+
+
+
+

+ Quickbook section no id test 1 +

+
+
+
+
+

+ ++ Quickbook section no id test 2 +

+
+
+
+ + diff --git a/src/boost/tools/quickbook/test/section-1_4.quickbook b/src/boost/tools/quickbook/test/section-1_4.quickbook new file mode 100644 index 000000000..6dd2beece --- /dev/null +++ b/src/boost/tools/quickbook/test/section-1_4.quickbook @@ -0,0 +1,12 @@ +[article Section Id 1.4 + [quickbook 1.4] +] + +[section:id_test1 Quickbook section id test] +[endsect] +[section :id_test2 Quickbook section id test] +[endsect:id_test2] +[section: Quickbook section no id test 1] +[endsect] +[section:++ Quickbook section no id test 2] +[endsect] diff --git a/src/boost/tools/quickbook/test/section-1_5-unclosed.gold b/src/boost/tools/quickbook/test/section-1_5-unclosed.gold new file mode 100644 index 000000000..b86c556ec --- /dev/null +++ b/src/boost/tools/quickbook/test/section-1_5-unclosed.gold @@ -0,0 +1,10 @@ + + +
+ Unclosed section +
+ <link linkend="unclosed_section.unclosed">Unclosed Section should be closed + with a warning</link> +
+
diff --git a/src/boost/tools/quickbook/test/section-1_5-unclosed.gold-html b/src/boost/tools/quickbook/test/section-1_5-unclosed.gold-html new file mode 100644 index 000000000..b756717b7 --- /dev/null +++ b/src/boost/tools/quickbook/test/section-1_5-unclosed.gold-html @@ -0,0 +1,27 @@ + + + + +

+ Unclosed section +

+
+

+ Table of contents +

+ +
+
+

+ Unclosed Section should be closed with a warning +

+
+
+
+ + diff --git a/src/boost/tools/quickbook/test/section-1_5-unclosed.quickbook b/src/boost/tools/quickbook/test/section-1_5-unclosed.quickbook new file mode 100644 index 000000000..49b70f491 --- /dev/null +++ b/src/boost/tools/quickbook/test/section-1_5-unclosed.quickbook @@ -0,0 +1,5 @@ +[article Unclosed section +[quickbook 1.5] +] + +[section:unclosed Unclosed Section should be closed with a warning] \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/section-1_5.gold b/src/boost/tools/quickbook/test/section-1_5.gold new file mode 100644 index 000000000..13ec9eba2 --- /dev/null +++ b/src/boost/tools/quickbook/test/section-1_5.gold @@ -0,0 +1,19 @@ + + +
+ Section Id 1.5 +
+ <link linkend="section_id_1_5.id_test1">Quickbook section id test</link> +
+
+ <link linkend="section_id_1_5.id_test2">Quickbook section id test</link> +
+
+ <link linkend="section_id_1_5.id_test3">Quickbook section id test</link> +
+
+ <link linkend="section_id_1_5.___quickbook_section_no_id_test">++ Quickbook + section no id test</link> +
+
diff --git a/src/boost/tools/quickbook/test/section-1_5.gold-html b/src/boost/tools/quickbook/test/section-1_5.gold-html new file mode 100644 index 000000000..6089cf1ac --- /dev/null +++ b/src/boost/tools/quickbook/test/section-1_5.gold-html @@ -0,0 +1,57 @@ + + + + +

+ Section Id 1.5 +

+ +
+

+ Quickbook section id test +

+
+
+
+
+

+ Quickbook section id test +

+
+
+
+
+

+ Quickbook section id test +

+
+
+
+
+

+ ++ Quickbook section no id test +

+
+
+
+ + diff --git a/src/boost/tools/quickbook/test/section-1_5.quickbook b/src/boost/tools/quickbook/test/section-1_5.quickbook new file mode 100644 index 000000000..223a7e6c8 --- /dev/null +++ b/src/boost/tools/quickbook/test/section-1_5.quickbook @@ -0,0 +1,12 @@ +[article Section Id 1.5 + [quickbook 1.5] +] + +[section:id_test1 Quickbook section id test] +[endsect] +[section :id_test2 Quickbook section id test] +[endsect:id_test2] +[section: id_test3 Quickbook section id test] +[endsect] +[section:++ Quickbook section no id test] +[endsect] diff --git a/src/boost/tools/quickbook/test/section-1_7.gold b/src/boost/tools/quickbook/test/section-1_7.gold new file mode 100644 index 000000000..02cb4c7d1 --- /dev/null +++ b/src/boost/tools/quickbook/test/section-1_7.gold @@ -0,0 +1,32 @@ + + +
+ Section Id 1.7 +
+ <link linkend="section_id_1_7.quickbook_section_no_id_test">Quickbook + section no id test</link> +
+
+ <link linkend="section_id_1_7.id_test1">Quickbook section id test</link> +
+
+ <link linkend="section_id_1_7.id_test2">Quickbook section id test</link> +
+
+ <link linkend="section_id_1_7.id_test3_quickbook_section_id_te">id_test3 + Quickbook section id test</link> +
+
+ <link linkend="section_id_1_7.--">Quickbook section odd id test</link> +
+
+ <link linkend="section_id_1_7.sect-abc">Section with template in id</link> +
+ + +
diff --git a/src/boost/tools/quickbook/test/section-1_7.gold-html b/src/boost/tools/quickbook/test/section-1_7.gold-html new file mode 100644 index 000000000..0d44ad8a2 --- /dev/null +++ b/src/boost/tools/quickbook/test/section-1_7.gold-html @@ -0,0 +1,100 @@ + + + + +

+ Section Id 1.7 +

+ +
+

+ Quickbook section no id test +

+
+
+
+
+

+ Quickbook section id test +

+
+
+
+
+

+ Quickbook section id test +

+
+
+
+
+

+ id_test3 Quickbook section id test +

+
+
+
+
+

+ Quickbook section odd id test +

+
+
+
+
+

+ Section with template in id +

+
+
+
+ + + + diff --git a/src/boost/tools/quickbook/test/section-1_7.quickbook b/src/boost/tools/quickbook/test/section-1_7.quickbook new file mode 100644 index 000000000..9c8baeb0c --- /dev/null +++ b/src/boost/tools/quickbook/test/section-1_7.quickbook @@ -0,0 +1,23 @@ +[article Section Id 1.7 + [quickbook 1.7] +] + +[section Quickbook section no id test] +[endsect] +[section:id_test1 Quickbook section id test] +[endsect] +[section :id_test2 Quickbook section id test] +[endsect:id_test2] +[section: id_test3 Quickbook section id test] +[endsect] +[section:-- Quickbook section odd id test] +[endsect] + +[template thing[] abc] +[section:sect-[thing] Section with template in id] +[endsect] + +[section [link section_id_1_7.id_test1 Link in title]] +[endsect] +[section [link section_id_1_7.id_test1 Link] in title] +[endsect] diff --git a/src/boost/tools/quickbook/test/simple_markup-1_5.gold b/src/boost/tools/quickbook/test/simple_markup-1_5.gold new file mode 100644 index 000000000..4d044ceb4 --- /dev/null +++ b/src/boost/tools/quickbook/test/simple_markup-1_5.gold @@ -0,0 +1,58 @@ + + +
+ Simple Markup Test +
+ <link linkend="simple_markup_test.simple_markup">Simple Markup</link> + + italic bold underline teletype + + + //not italic// **not bold** __not underline__ ==not teletype== + + + odd__ edge case + + + not__underlined__hopefully + + + (bold) und/er/lined + + + all/italic * not bold* + + + /not italic bold + + + not_underlined_ + + + _Should not underline escaped markup_. _or this escaped_ markup form. + + + Matti Meik\u00E4l\u00E4inen + + + replaced + + + replaced + + + _mac\ ro_ + + + italic\ + + + These shouldn't be interepted as markup: == // ** + + + < \< \\< + +
+
diff --git a/src/boost/tools/quickbook/test/simple_markup-1_5.gold-html b/src/boost/tools/quickbook/test/simple_markup-1_5.gold-html new file mode 100644 index 000000000..3e07c9b81 --- /dev/null +++ b/src/boost/tools/quickbook/test/simple_markup-1_5.gold-html @@ -0,0 +1,75 @@ + + + + +

+ Simple Markup Test +

+
+

+ Table of contents +

+ +
+
+

+ Simple Markup +

+
+

+ italic bold + underline teletype +

+

+ //not italic// **not bold** __not underline__ ==not teletype== +

+

+ odd__ edge case +

+

+ not__underlined__hopefully +

+

+ (bold) und/er/lined +

+

+ all/italic * not bold* +

+

+ /not italic bold +

+

+ not_underlined_ +

+

+ _Should not underline escaped markup_. _or this escaped_ markup form. +

+

+ Matti Meik\u00E4l\u00E4inen +

+

+ replaced +

+

+ replaced +

+

+ _mac\ ro_ +

+

+ italic\ +

+

+ These shouldn't be interepted as markup: == // ** +

+

+ < \< \\< +

+
+
+ + diff --git a/src/boost/tools/quickbook/test/simple_markup-1_5.quickbook b/src/boost/tools/quickbook/test/simple_markup-1_5.quickbook new file mode 100644 index 000000000..c8277fb32 --- /dev/null +++ b/src/boost/tools/quickbook/test/simple_markup-1_5.quickbook @@ -0,0 +1,42 @@ +[article Simple Markup Test +[quickbook 1.5] +] + +[def _macro_ replaced] + +[section Simple Markup] + +/italic/ *bold* _underline_ =teletype= + +//not italic// **not bold** __not underline__ ==not teletype== + +_odd__ edge case_ + +not__underlined__hopefully + +(*bold*) _und/er/lined_ + +/all/italic/ * not bold* + +/not italic [@http://www.boost.org/ *bold*] + +not_underlined_ + +_Should not underline '''escaped''' markup_. +_or this '''escaped_ markup''' form. + +=Matti Meik\u00E4l\u00E4inen= + +=_macro_= + +__macro__ + +=_mac\ ro_= + +/italic\/ + +These shouldn't be interepted as markup: == // ** + +=<= =\<= =\\<= + +[endsect] diff --git a/src/boost/tools/quickbook/test/snippets/Jamfile.v2 b/src/boost/tools/quickbook/test/snippets/Jamfile.v2 new file mode 100644 index 000000000..6765dff9e --- /dev/null +++ b/src/boost/tools/quickbook/test/snippets/Jamfile.v2 @@ -0,0 +1,18 @@ +# +# Copyright (c) 2011 Daniel James +# +# Distributed under the Boost Software License, Version 1.0. (See +# accompanying file LICENSE_1_0.txt or copy at +# http://www.boost.org/LICENSE_1_0.txt) +# + +project quickbook/test/snippets ; + +import quickbook-testing : quickbook-test quickbook-error-test ; + +test-suite quickbook.test : + [ quickbook-test pass_thru ] + [ quickbook-test unbalanced_snippet1-1_5 ] + [ quickbook-error-test unbalanced_snippet1-1_6-fail ] + [ quickbook-error-test unbalanced_snippet2-1_6-fail ] + ; diff --git a/src/boost/tools/quickbook/test/snippets/pass_thru.cpp b/src/boost/tools/quickbook/test/snippets/pass_thru.cpp new file mode 100644 index 000000000..c5c120a17 --- /dev/null +++ b/src/boost/tools/quickbook/test/snippets/pass_thru.cpp @@ -0,0 +1,33 @@ +// clang-format off + +//[foo_cpp_copyright +/*============================================================================= + Copyright (c) 2011 Daniel James + + Use, modification and distribution is subject to the Boost Software + License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at + http://www.boost.org/LICENSE_1_0.txt) +=============================================================================*/ +//] + +//[foo_cpp +struct Foo{ + + Foo()//=; +//<- + : x( 10 ) + {} +//-> + +//<- + int x; +//-> +}; + +/*= +int main() +{ + Foo x; +} +*/ +//] diff --git a/src/boost/tools/quickbook/test/snippets/pass_thru.gold b/src/boost/tools/quickbook/test/snippets/pass_thru.gold new file mode 100644 index 000000000..dde5deb19 --- /dev/null +++ b/src/boost/tools/quickbook/test/snippets/pass_thru.gold @@ -0,0 +1,35 @@ + + +
+ Pass thru test + +/*============================================================================= + Copyright (c) 2011 Daniel James + + Use, modification and distribution is subject to the Boost Software + License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at + http://www.boost.org/LICENSE_1_0.txt) +=============================================================================*/ + + + +struct Foo{ + + Foo(); + +}; + + +int main() +{ + Foo x; +} + + + +def foo: + print('foo') + + +
diff --git a/src/boost/tools/quickbook/test/snippets/pass_thru.gold-html b/src/boost/tools/quickbook/test/snippets/pass_thru.gold-html new file mode 100644 index 000000000..ba0237ddb --- /dev/null +++ b/src/boost/tools/quickbook/test/snippets/pass_thru.gold-html @@ -0,0 +1,38 @@ + + + + +

+ Pass thru test +

+

+

/*=============================================================================
+    Copyright (c) 2011 Daniel James
+
+    Use, modification and distribution is subject to the Boost Software
+    License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
+    http://www.boost.org/LICENSE_1_0.txt)
+=============================================================================*/
+
+

+

+

struct Foo{
+
+  Foo();
+
+};
+
+
+int main()
+{
+    Foo x;
+}
+
+

+

+

def foo:
+    print('foo')
+
+

+ + diff --git a/src/boost/tools/quickbook/test/snippets/pass_thru.py b/src/boost/tools/quickbook/test/snippets/pass_thru.py new file mode 100644 index 000000000..412cee420 --- /dev/null +++ b/src/boost/tools/quickbook/test/snippets/pass_thru.py @@ -0,0 +1,13 @@ +# Copyright (c) 2011 Daniel James +# +# Use, modification and distribution is subject to the Boost Software +# License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at +# http://www.boost.org/LICENSE_1_0.txt) + +#[foo_py +def foo: + #=print('foo') + #<- + print('bar') + #-> +#] \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/snippets/pass_thru.quickbook b/src/boost/tools/quickbook/test/snippets/pass_thru.quickbook new file mode 100644 index 000000000..7e8319478 --- /dev/null +++ b/src/boost/tools/quickbook/test/snippets/pass_thru.quickbook @@ -0,0 +1,12 @@ +[article Pass thru test +[quickbook 1.5] +] + +[import pass_thru.cpp] +[import pass_thru.py] + +[foo_cpp_copyright] + +[foo_cpp] + +[foo_py] \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/snippets/unbalanced_snippet1-1_5.gold b/src/boost/tools/quickbook/test/snippets/unbalanced_snippet1-1_5.gold new file mode 100644 index 000000000..1f9115c0f --- /dev/null +++ b/src/boost/tools/quickbook/test/snippets/unbalanced_snippet1-1_5.gold @@ -0,0 +1,10 @@ + + +
+ Unbalanced snippet fail test 1 + +int main() {} + + +
diff --git a/src/boost/tools/quickbook/test/snippets/unbalanced_snippet1-1_5.gold-html b/src/boost/tools/quickbook/test/snippets/unbalanced_snippet1-1_5.gold-html new file mode 100644 index 000000000..af90d9d35 --- /dev/null +++ b/src/boost/tools/quickbook/test/snippets/unbalanced_snippet1-1_5.gold-html @@ -0,0 +1,13 @@ + + + + +

+ Unbalanced snippet fail test 1 +

+

+

int main() {}
+
+

+ + diff --git a/src/boost/tools/quickbook/test/snippets/unbalanced_snippet1-1_5.quickbook b/src/boost/tools/quickbook/test/snippets/unbalanced_snippet1-1_5.quickbook new file mode 100644 index 000000000..7fdde6afd --- /dev/null +++ b/src/boost/tools/quickbook/test/snippets/unbalanced_snippet1-1_5.quickbook @@ -0,0 +1,8 @@ +[article Unbalanced snippet fail test 1 +[quickbook 1.5] +] + +[import unbalanced_snippet1.cpp] +[import unbalanced_snippet2.cpp] + +[unclosed] \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/snippets/unbalanced_snippet1-1_6-fail.quickbook b/src/boost/tools/quickbook/test/snippets/unbalanced_snippet1-1_6-fail.quickbook new file mode 100644 index 000000000..c2fb98ec0 --- /dev/null +++ b/src/boost/tools/quickbook/test/snippets/unbalanced_snippet1-1_6-fail.quickbook @@ -0,0 +1,7 @@ +[article Unbalanced snippet fail test 1 +[quickbook 1.6] +] + +[import unbalanced_snippet1.cpp] + +[unclosed] \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/snippets/unbalanced_snippet1.cpp b/src/boost/tools/quickbook/test/snippets/unbalanced_snippet1.cpp new file mode 100644 index 000000000..ee5983912 --- /dev/null +++ b/src/boost/tools/quickbook/test/snippets/unbalanced_snippet1.cpp @@ -0,0 +1,11 @@ +/*============================================================================= + Copyright (c) 2011 Daniel James + + Use, modification and distribution is subject to the Boost Software + License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at + http://www.boost.org/LICENSE_1_0.txt) +=============================================================================*/ + +//[unclosed + +int main() {} diff --git a/src/boost/tools/quickbook/test/snippets/unbalanced_snippet2-1_6-fail.quickbook b/src/boost/tools/quickbook/test/snippets/unbalanced_snippet2-1_6-fail.quickbook new file mode 100644 index 000000000..a06a16448 --- /dev/null +++ b/src/boost/tools/quickbook/test/snippets/unbalanced_snippet2-1_6-fail.quickbook @@ -0,0 +1,5 @@ +[article Unbalanced snippet fail test 2 +[quickbook 1.6] +] + +[import unbalanced_snippet2.cpp] diff --git a/src/boost/tools/quickbook/test/snippets/unbalanced_snippet2.cpp b/src/boost/tools/quickbook/test/snippets/unbalanced_snippet2.cpp new file mode 100644 index 000000000..b2fcb247b --- /dev/null +++ b/src/boost/tools/quickbook/test/snippets/unbalanced_snippet2.cpp @@ -0,0 +1,9 @@ +//] + +/*============================================================================= + Copyright (c) 2011 Daniel James + + Use, modification and distribution is subject to the Boost Software + License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at + http://www.boost.org/LICENSE_1_0.txt) +=============================================================================*/ diff --git a/src/boost/tools/quickbook/test/source_mode-1_7.gold b/src/boost/tools/quickbook/test/source_mode-1_7.gold new file mode 100644 index 000000000..2cc454a6d --- /dev/null +++ b/src/boost/tools/quickbook/test/source_mode-1_7.gold @@ -0,0 +1,63 @@ + + +
+ Source Mode Test + + + + + +int main() {} + + +void foo() {} + + + + + +Plain text... + + int main() {} but plain + text. + + + + + int main() {} + + + + + int main() {} + + + + + int main() {} + + + + + int main() {} and int main() + {} should both be C++ highlighted. int + main() {} shouldn't be, but int + main() {} should. + + + int main() {}. Not highlighted: + int main() {}. + +
+ <link linkend="source_mode_test.cpp">C++ section</link> +int main() {} +
+
diff --git a/src/boost/tools/quickbook/test/source_mode-1_7.gold-html b/src/boost/tools/quickbook/test/source_mode-1_7.gold-html new file mode 100644 index 000000000..f5b16981c --- /dev/null +++ b/src/boost/tools/quickbook/test/source_mode-1_7.gold-html @@ -0,0 +1,80 @@ + + + + +

+ Source Mode Test +

+
+

+ Table of contents +

+ +
+
+ + + + + + + +
+
int main() {}
+
+
void foo() {}
+
+
+
Plain text...
+

+ int main() {} but plain + text. +

+
    +
  • +
    + int main() {} +
    +
  • +
  • +
    + int main() {} +
    +
  • +
  • +
    + int main() {} +
    +
  • +
+

+ int main() {} and int main() + {} should both be C++ highlighted. int + main() {} shouldn't be, but int + main() {} + should. +

+

+ int main() {}. Not highlighted: + int main() {}. +

+
+

+ C++ section +

+
+
int main() {}
+
+
+ + diff --git a/src/boost/tools/quickbook/test/source_mode-1_7.quickbook b/src/boost/tools/quickbook/test/source_mode-1_7.quickbook new file mode 100644 index 000000000..9388867c8 --- /dev/null +++ b/src/boost/tools/quickbook/test/source_mode-1_7.quickbook @@ -0,0 +1,24 @@ +[quickbook 1.7] +[source-mode teletype] +[article Source Mode Test] + +[!c++][table [[``int main() {}``][``void foo() {}``]]] +``Plain text...`` + +[!c++]`int main() {}` but `plain text`. + +[!c++] +* `int main() {}` +* `int main() {}` +* [teletype] `int main() {}` [/ shouldn't be highlighted] + +[!c++] +`int main() {}` and `int main() {}` should both be C++ highlighted. +[!teletype]`int main() {}` shouldn't be, but `int main() {}` should. + +[!c++] `int main() {}`. Not highlighted: `int main() {}`. + +[!c++] +[section:cpp C++ section] +``int main() {}`` +[endsect] diff --git a/src/boost/tools/quickbook/test/src/text_diff.cpp b/src/boost/tools/quickbook/test/src/text_diff.cpp new file mode 100644 index 000000000..cee521173 --- /dev/null +++ b/src/boost/tools/quickbook/test/src/text_diff.cpp @@ -0,0 +1,96 @@ +// +// Copyright (c) 2005 João Abecasis +// +// Distributed under the Boost Software License, Version 1.0. (See +// accompanying file LICENSE_1_0.txt or copy at +// http://www.boost.org/LICENSE_1_0.txt) +// + +#include +#include +#include +#include +#include + +#include +#include + +namespace spirit = boost::spirit::classic; + +typedef std::istream_iterator iterator; +typedef spirit::scanner scanner; + +int main(int argc, char* argv[]) +{ + std::vector args; + bool usage_error = false; + + for (int i = 1; i < argc; ++i) { + if (std::strncmp(argv[i], "--", 2) == 0) { + if (strcmp(argv[i], "--strict") == 0) { + // Ignore --strict because the build file accidentally + // uses it. Why yes, this is a horrible hack. + } + else { + std::cerr << "ERROR: Invalid flag: " << argv[i] << std::endl; + usage_error = true; + } + } + else { + args.push_back(argv[i]); + } + } + + if (!usage_error && args.size() != 2) { + std::cerr << "ERROR: Wrong number of arguments." << std::endl; + usage_error = true; + } + + if (usage_error) { + std::cout << "Usage:\n\t" << argv[0] << " file1 file2" << std::endl; + return 1; + } + + std::ifstream file1(args[0], std::ios_base::binary | std::ios_base::in), + file2(args[1], std::ios_base::binary | std::ios_base::in); + + if (!file1 || !file2) { + std::cerr << "ERROR: Unable to open one or both files." << std::endl; + return 2; + } + + file1.unsetf(std::ios_base::skipws); + file2.unsetf(std::ios_base::skipws); + + iterator iter_file1(file1), iter_file2(file2); + + scanner scan1(iter_file1, iterator()), scan2(iter_file2, iterator()); + + std::size_t line = 1, column = 1; + + while (!scan1.at_end() && !scan2.at_end()) { + if (spirit::eol_p.parse(scan1)) { + if (!spirit::eol_p.parse(scan2)) { + std::cout << "Files differ at line " << line << ", column " + << column << '.' << std::endl; + return 3; + } + + ++line, column = 1; + continue; + } + + if (*scan1 != *scan2) { + std::cout << "Files differ at line " << line << ", column " + << column << '.' << std::endl; + return 4; + } + + ++scan1, ++scan2, ++column; + } + + if (scan1.at_end() != scan2.at_end()) { + std::cout << "Files differ in length." << std::endl; + return 5; + } +} diff --git a/src/boost/tools/quickbook/test/stray_close_bracket-1_1.gold b/src/boost/tools/quickbook/test/stray_close_bracket-1_1.gold new file mode 100644 index 000000000..c062eaab8 --- /dev/null +++ b/src/boost/tools/quickbook/test/stray_close_bracket-1_1.gold @@ -0,0 +1,9 @@ + + +
+ Stray close bracket 1.1 + + X]Y + +
diff --git a/src/boost/tools/quickbook/test/stray_close_bracket-1_1.gold-html b/src/boost/tools/quickbook/test/stray_close_bracket-1_1.gold-html new file mode 100644 index 000000000..094ac4655 --- /dev/null +++ b/src/boost/tools/quickbook/test/stray_close_bracket-1_1.gold-html @@ -0,0 +1,12 @@ + + + + +

+ Stray close bracket 1.1 +

+

+ X]Y +

+ + diff --git a/src/boost/tools/quickbook/test/stray_close_bracket-1_1.quickbook b/src/boost/tools/quickbook/test/stray_close_bracket-1_1.quickbook new file mode 100644 index 000000000..3866bdb7c --- /dev/null +++ b/src/boost/tools/quickbook/test/stray_close_bracket-1_1.quickbook @@ -0,0 +1,3 @@ +[article Stray close bracket 1.1] + +X]Y diff --git a/src/boost/tools/quickbook/test/stray_close_bracket-1_7-fail.quickbook b/src/boost/tools/quickbook/test/stray_close_bracket-1_7-fail.quickbook new file mode 100644 index 000000000..6798b679c --- /dev/null +++ b/src/boost/tools/quickbook/test/stray_close_bracket-1_7-fail.quickbook @@ -0,0 +1,5 @@ +[article Stray close bracket 1.1 + [quickbook 1.7] +] + +X]Y diff --git a/src/boost/tools/quickbook/test/stub.c b/src/boost/tools/quickbook/test/stub.c new file mode 100644 index 000000000..f7f83cfe8 --- /dev/null +++ b/src/boost/tools/quickbook/test/stub.c @@ -0,0 +1,32 @@ +/*============================================================================= + Copyright (c) 2006 Joel de Guzman + http://spirit.sourceforge.net/ + + Use, modification and distribution is subject to the Boost Software + License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at + http://www.boost.org/LICENSE_1_0.txt) +=============================================================================*/ + +/*` +This should appear when =stub.c= is included. + +[foo_c] +*/ + +/*[foo_c */ + /*` + This is the C [*['foo]] function. + + This description can have paragraphs... + + * lists + * etc. + + And any quickbook block markup. + */ +char* foo() +{ + // return 'em, foo man! + return "foo"; +} +/*]*/ diff --git a/src/boost/tools/quickbook/test/stub.cpp b/src/boost/tools/quickbook/test/stub.cpp new file mode 100644 index 000000000..ef0f03432 --- /dev/null +++ b/src/boost/tools/quickbook/test/stub.cpp @@ -0,0 +1,86 @@ +/*============================================================================= + Copyright (c) 2006 Joel de Guzman + http://spirit.sourceforge.net/ + + Use, modification and distribution is subject to the Boost Software + License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at + http://www.boost.org/LICENSE_1_0.txt) +=============================================================================*/ + +// clang-format off + +/*` This should appear when =stub.cpp= is included. */ + +#include + +//[ bar +//` This is the [*/bar/] function +std::string bar() +{ + // return 'em, bar man! + return "bar"; +} +/*` +Some trailing text here +*/ +//] + +//[ foo + /*` + This is the [*['foo]] function. + + This description can have paragraphs... + + * lists + * etc. + + And any quickbook block markup. + */ +std::string foo() +{ + // return 'em, foo man! + return "foo"; +} +//] + +//[ foo_bar +std::string foo_bar() /*< The /Mythical/ FooBar. + See [@http://en.wikipedia.org/wiki/Foobar Foobar for details] >*/ +{ + return "foo-bar"; /*< return 'em, foo-bar man! >*/ +} +//] + +//[ class_ +class x +{ +public: + + /*<< Constructor >>*/ + x() : n(0) + { + } + + /*<< Destructor >>*/ + ~x() + { + } + + /*<< Get the `n` member variable >>*/ + int get() const + { + return n; /*<- this will be ignored by quickbook ->*/ + } + + /*<< Set the `n` member variable >>*/ + void set(int n_) + { + n = n_; + } +//<- this will be ignored by quickbook +private: + + int n; +//-> +}; +//] diff --git a/src/boost/tools/quickbook/test/stub.py b/src/boost/tools/quickbook/test/stub.py new file mode 100644 index 000000000..48ba87e0c --- /dev/null +++ b/src/boost/tools/quickbook/test/stub.py @@ -0,0 +1,27 @@ +# Copyright 2009 Daniel James +# +# Use, modification and distribution is subject to the Boost Software +# License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at +# http://www.boost.org/LICENSE_1_0.txt) + +#` This should appear when =stub.py= is included. + +#[foo_py +"""` + This is the Python [*['foo]] function. + + This description can have paragraphs... + + * lists + * etc. + + And any quickbook block markup. +""" + +def foo(): + # return 'em, foo man! + return "foo" + +#] + +print foo() \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/svg-1_1.gold b/src/boost/tools/quickbook/test/svg-1_1.gold new file mode 100644 index 000000000..a8a49b06a --- /dev/null +++ b/src/boost/tools/quickbook/test/svg-1_1.gold @@ -0,0 +1,18 @@ + + +
+ SVG test + + + + open_clipart_library_logo + + + + missing_image + + + +
diff --git a/src/boost/tools/quickbook/test/svg-1_1.gold-html b/src/boost/tools/quickbook/test/svg-1_1.gold-html new file mode 100644 index 000000000..643e7762a --- /dev/null +++ b/src/boost/tools/quickbook/test/svg-1_1.gold-html @@ -0,0 +1,14 @@ + + + + +

+ SVG test +

+

+ [] [] +

+ + diff --git a/src/boost/tools/quickbook/test/svg-1_1.quickbook b/src/boost/tools/quickbook/test/svg-1_1.quickbook new file mode 100644 index 000000000..71b811a8c --- /dev/null +++ b/src/boost/tools/quickbook/test/svg-1_1.quickbook @@ -0,0 +1,4 @@ +[article SVG test] + +[$images/open_clipart_library_logo.svg] +[$images/missing_image.svg] diff --git a/src/boost/tools/quickbook/test/table-1_3.gold b/src/boost/tools/quickbook/test/table-1_3.gold new file mode 100644 index 000000000..fcda21570 --- /dev/null +++ b/src/boost/tools/quickbook/test/table-1_3.gold @@ -0,0 +1,351 @@ + + +
+ Table 1.3 + + Table 2 + + + + + + Heading + + + + + + + + + cell + + + + + +
+ + + + + + + Heading + + + + + + + + + cell + + + + + + + + Title + + + + + + Heading + + + + + + + + + cell + + + + + +
+ + Title + + + + + + Heading + + + + + + + + + cell + + + + + +
+ + Title [/ ] containing a comment + + + + + + Heading + + + + + + + + + cell + + + + + +
+ + Title + + + + + + Heading + + + + + + + + + cell + + + + + +
+ + [[Title]] + + + + + + Heading + + + + + + + + + cell + + + + + +
+
+ <link linkend="table_tests.section1">Section 1</link> + + A & B + + + + + + A + + + + + B + + + + + + + + + a + + + + + b + + + + + +
+ + Empty Table + + + + +
+ + Table with an empty cell + + + + + + x + + + + + +
+ + Indentation + + + + + + Header 1. Paragraph 1 + + + Header 1. Paragraph 2 + + + + + Header 2 + + + + + + + + + Row 1. Cell 1. + + + + + Row 1. Cell 2. + + + Row 1. Cell 2. Paragraph 2. + + + + + +
+ + Nested Tables + + + + + + Header 1 + + + + + Header 2 + + + + + + + +
+ Inner Table + + + + + + 1.1 + + + + + 1.2 + + + + + + + + + 2.1 + + + + + 2.2 + + + + + +
+ + + + + + Something. + + + + + + + + + Table with anchors + + + + + + a + + + + + + + + + b + + + + + +
+
+
diff --git a/src/boost/tools/quickbook/test/table-1_3.gold-html b/src/boost/tools/quickbook/test/table-1_3.gold-html new file mode 100644 index 000000000..99a126a92 --- /dev/null +++ b/src/boost/tools/quickbook/test/table-1_3.gold-html @@ -0,0 +1,368 @@ + + + + +

+ Table 1.3 +

+
+

+ Table of contents +

+ +
+
+ + + + + + + + + + + + +
Table 2
+

+ Heading +

+
+

+ cell +

+
+
+
+ + + + + + + + + + + +
+

+ Heading +

+
+

+ cell +

+
+
+
+ + + + + + + + + + + + +
Title
+

+ Heading +

+
+

+ cell +

+
+
+
+ + + + + + + + + + + + +
Title
+

+ Heading +

+
+

+ cell +

+
+
+
+ + + + + + + + + + + + +
Title [/ ] containing a comment
+

+ Heading +

+
+

+ cell +

+
+
+
+ + + + + + + + + + + + +
Title
+

+ Heading +

+
+

+ cell +

+
+
+
+ + + + + + + + + + + + +
[[Title]]
+

+ Heading +

+
+

+ cell +

+
+
+
+

+ Section 1 +

+
+
+ + + + + + + + + + + + + + +
A & B
+

+ A +

+
+

+ B +

+
+

+ a +

+
+

+ b +

+
+
+
+ + + + +
Empty Table
+
+
+ + + + + + + +
Table with an empty cell
+

+ x +

+
+
+
+ + + + + + + + + + + + + + +
Indentation
+

+ Header 1. Paragraph 1 +

+

+ Header 1. Paragraph 2 +

+
+

+ Header 2 +

+
+

+ Row 1. Cell 1. +

+
+

+ Row 1. Cell 2. +

+

+ Row 1. Cell 2. Paragraph 2. +

+
+
+
+ + + + + + + + + + + + + + + + +
Nested Tables
+

+ Header 1 +

+
+

+ Header 2 +

+
+
+ + + + + + + + + + + + + + +
Inner Table
+

+ 1.1 +

+
+

+ 1.2 +

+
+

+ 2.1 +

+
+

+ 2.2 +

+
+
+
+

+ Something. +

+
+
+ +
+ + + + + + + + + + + + +
Table with anchors
+

+ a +

+
+

+ b +

+
+
+
+
+ + diff --git a/src/boost/tools/quickbook/test/table-1_3.quickbook b/src/boost/tools/quickbook/test/table-1_3.quickbook new file mode 100644 index 000000000..1dc048911 --- /dev/null +++ b/src/boost/tools/quickbook/test/table-1_3.quickbook @@ -0,0 +1,113 @@ +[article Table 1.3 + [quickbook 1.3] + [id table_tests] +] + +[table Table 2 + [[Heading]] + [[cell]] +] + +[table + [[Heading]] + [[cell]] +] + +[table [/ Comment?] Title + [[Heading]] + [[cell]] +] + +[table [/ Multi line +comment] Title + [[Heading]] + [[cell]] +] + +[table Title [/ ] containing a comment + [[Heading]] + [[cell]] +] + +[/ These two might be considered to be a bug. ] + +[table [/ Multi line +comment] + Title + [[Heading]] + [[cell]] +] + +[table [/ Multi line +comment] + [[Title]] + [[Heading]] + [[cell]] +] + +[section:section1 Section 1] + +[table A & B + [[A][B]] + [[a][b]] +] + +[table Empty Table +] + +[table Table with an empty cell +[[x]]] + +[table Indentation + [ + [ + Header 1. Paragraph 1 + + Header 1. Paragraph 2 + ] + [ + Header 2 + ] + ] + [ + [ + Row 1. Cell 1. + ] + [ + Row 1. Cell 2. + + Row 1. Cell 2. Paragraph 2. + ] + ] +] + +[table Nested Tables + [ + [ + Header 1 + ] + [ + Header 2 + ] + ] + [ + [ + [table Inner Table + [[1.1][1.2]] + [[2.1][2.2]] + ] + ] + ] + [ + [ + Something. + ] + ] +] + +[#id1] +[table Table with anchors +[[[#id2]a[#id3]]][[b]] +] + +[endsect] diff --git a/src/boost/tools/quickbook/test/table-1_5.gold b/src/boost/tools/quickbook/test/table-1_5.gold new file mode 100644 index 000000000..838a400fa --- /dev/null +++ b/src/boost/tools/quickbook/test/table-1_5.gold @@ -0,0 +1,442 @@ + + +
+ Table 1.5 + + Table 1 + + + + + + Heading + + + + + + + + + cell + + + + + +
+ + Table 2 + + + + + + Heading + + + + + + + + + cell + + + + + +
+ + + + + + + Heading + + + + + + + + + cell + + + + + + + + + + + + + Heading + + + + + + + + + cell + + + + + + + + -table5- + + + + + + Heading + + + + + + + + + cell + + + + + +
+ + Title + + + + + + Heading + + + + + + + + + cell + + + + + +
+ + Title + + + + + + Heading + + + + + + + + + cell + + + + + +
+ + Title [/ ] containing a comment + + + + + + Heading + + + + + + + + + cell + + + + + +
+ + Title + + + + + + Heading + + + + + + + + + cell + + + + + +
+ + [[Title]] + + + + + + Heading + + + + + + + + + cell + + + + + +
+
+ <link linkend="table_tests.section1">Section 1</link> + + Table 1 + + + + + + Heading + + + + + + + + + cell + + + + + +
+ + A & B + + + + + + A + + + + + B + + + + + + + + + a + + + + + b + + + + + +
+ + Empty Table + + + + +
+ + Table with an empty cell + + + + + + x + + + + + +
+ + Indentation + + + + + + Header 1. Paragraph 1 + + + Header 1. Paragraph 2 + + + + + Header 2 + + + + + + + + + Row 1. Cell 1. + + + + + Row 1. Cell 2. + + + Row 1. Cell 2. Paragraph 2. + + + + + +
+ + Nested Tables + + + + + + Header 1 + + + + + Header 2 + + + + + + + +
+ Inner Table + + + + + + 1.1 + + + + + 1.2 + + + + + + + + + 2.1 + + + + + 2.2 + + + + + +
+ + + + + + Something. + + + + + + + + + Table with anchors + + + + + + a + + + + + + + + + b + + + + + +
+
+
diff --git a/src/boost/tools/quickbook/test/table-1_5.gold-html b/src/boost/tools/quickbook/test/table-1_5.gold-html new file mode 100644 index 000000000..49c999883 --- /dev/null +++ b/src/boost/tools/quickbook/test/table-1_5.gold-html @@ -0,0 +1,459 @@ + + + + +

+ Table 1.5 +

+
+

+ Table of contents +

+ +
+
+ + + + + + + + + + + + +
Table 1
+

+ Heading +

+
+

+ cell +

+
+
+
+ + + + + + + + + + + + +
Table 2
+

+ Heading +

+
+

+ cell +

+
+
+
+ + + + + + + + + + + +
+

+ Heading +

+
+

+ cell +

+
+
+
+ + + + + + + + + + + +
+

+ Heading +

+
+

+ cell +

+
+
+
+ + + + + + + + + + + + +
-table5-
+

+ Heading +

+
+

+ cell +

+
+
+
+ + + + + + + + + + + + +
Title
+

+ Heading +

+
+

+ cell +

+
+
+
+ + + + + + + + + + + + +
Title
+

+ Heading +

+
+

+ cell +

+
+
+
+ + + + + + + + + + + + +
Title [/ ] containing a comment
+

+ Heading +

+
+

+ cell +

+
+
+
+ + + + + + + + + + + + +
Title
+

+ Heading +

+
+

+ cell +

+
+
+
+ + + + + + + + + + + + +
[[Title]]
+

+ Heading +

+
+

+ cell +

+
+
+
+

+ Section 1 +

+
+
+ + + + + + + + + + + + +
Table 1
+

+ Heading +

+
+

+ cell +

+
+
+
+ + + + + + + + + + + + + + +
A & B
+

+ A +

+
+

+ B +

+
+

+ a +

+
+

+ b +

+
+
+
+ + + + +
Empty Table
+
+
+ + + + + + + +
Table with an empty cell
+

+ x +

+
+
+
+ + + + + + + + + + + + + + +
Indentation
+

+ Header 1. Paragraph 1 +

+

+ Header 1. Paragraph 2 +

+
+

+ Header 2 +

+
+

+ Row 1. Cell 1. +

+
+

+ Row 1. Cell 2. +

+

+ Row 1. Cell 2. Paragraph 2. +

+
+
+
+ + + + + + + + + + + + + + + + +
Nested Tables
+

+ Header 1 +

+
+

+ Header 2 +

+
+
+ + + + + + + + + + + + + + +
Inner Table
+

+ 1.1 +

+
+

+ 1.2 +

+
+

+ 2.1 +

+
+

+ 2.2 +

+
+
+
+

+ Something. +

+
+
+ +
+ + + + + + + + + + + + +
Table with anchors
+

+ a +

+
+

+ b +

+
+
+
+
+ + diff --git a/src/boost/tools/quickbook/test/table-1_5.quickbook b/src/boost/tools/quickbook/test/table-1_5.quickbook new file mode 100644 index 000000000..7ab15b1ac --- /dev/null +++ b/src/boost/tools/quickbook/test/table-1_5.quickbook @@ -0,0 +1,133 @@ +[article Table 1.5 + [quickbook 1.5] + [id table_tests] +] + +[table:table1 Table 1 + [[Heading]] + [[cell]] +] + +[table Table 2 + [[Heading]] + [[cell]] +] + +[table + [[Heading]] + [[cell]] +] + +[table:table4 + [[Heading]] + [[cell]] +] + +[table:-table5- + [[Heading]] + [[cell]] +] + +[table [/ Comment?] Title + [[Heading]] + [[cell]] +] + +[table [/ Multi line +comment] Title + [[Heading]] + [[cell]] +] + +[table Title [/ ] containing a comment + [[Heading]] + [[cell]] +] + +[/ These two might be considered to be a bug. ] + +[table [/ Multi line +comment] + Title + [[Heading]] + [[cell]] +] + +[table [/ Multi line +comment] + [[Title]] + [[Heading]] + [[cell]] +] + +[section:section1 Section 1] + +[table:table1 Table 1 + [[Heading]] + [[cell]] +] + +[table A & B + [[A][B]] + [[a][b]] +] + +[table Empty Table +] + +[table Table with an empty cell +[[x]]] + +[table Indentation + [ + [ + Header 1. Paragraph 1 + + Header 1. Paragraph 2 + ] + [ + Header 2 + ] + ] + [ + [ + Row 1. Cell 1. + ] + [ + Row 1. Cell 2. + + Row 1. Cell 2. Paragraph 2. + ] + ] +] + +[table Nested Tables + [ + [ + Header 1 + ] + [ + Header 2 + ] + ] + [ + [ + [table Inner Table + [[1.1][1.2]] + [[2.1][2.2]] + ] + ] + ] + [ + [ + Something. + ] + ] +] + +[#id1] +[table Table with anchors +[[[#id2]a[#id3]]][[b]] +] + +[endsect] diff --git a/src/boost/tools/quickbook/test/table-1_6.gold b/src/boost/tools/quickbook/test/table-1_6.gold new file mode 100644 index 000000000..3abe6b0d2 --- /dev/null +++ b/src/boost/tools/quickbook/test/table-1_6.gold @@ -0,0 +1,478 @@ + + +
+ Table 1.6 + + Table 1 + + + + + + Heading + + + + + + + + + cell + + + + + +
+ + Table 2 + + + + + + Heading + + + + + + + + + cell + + + + + +
+ + + + + + + Heading + + + + + + + + + cell + + + + + + + + + + + + + Heading + + + + + + + + + cell + + + + + + + + -table5- + + + + + + Heading + + + + + + + + + cell + + + + + +
+ + Title + + + + + + Heading + + + + + + + + + cell + + + + + +
+ + Title + + + + + + Heading + + + + + + + + + cell + + + + + +
+ + Title containing a comment + + + + + + Heading + + + + + + + + + cell + + + + + +
+ + Title + + + + + + Heading + + + + + + + + + cell + + + + + +
+ + + + + + + Heading + + + + + + + + + Cell 1 + + + + + + + Cell 2 + + + + + + + + Title on multiple lines with <emphasis role="bold">bold</emphasis> text? + + + + + + Heading + + + + + + + + + Cell 1 + + + + + + + Cell 2 + + + + + +
+
+ <link linkend="table_tests.section1">Section 1</link> + + Table 1 + + + + + + Heading + + + + + + + + + cell + + + + + +
+ + A & B + + + + + + A + + + + + B + + + + + + + + + a + + + + + b + + + + + +
+ + Empty Table + + + + +
+ + Table with an empty cell + + + + + + x + + + + + +
+ + Indentation + + + + + + Header 1. Paragraph 1 + + + Header 1. Paragraph 2 + + + + + Header 2 + + + + + + + + + Row 1. Cell 1. + + + + + Row 1. Cell 2. + + + Row 1. Cell 2. Paragraph 2. + + + + + +
+ + Nested Tables + + + + + + Header 1 + + + + + Header 2 + + + + + + + +
+ Inner Table + + + + + + 1.1 + + + + + 1.2 + + + + + + + + + 2.1 + + + + + 2.2 + + + + + +
+ + + + + + Something. + + + + + + + + + Table with anchors + + + + + + a + + + + + + + + + b + + + + + +
+
+
diff --git a/src/boost/tools/quickbook/test/table-1_6.gold-html b/src/boost/tools/quickbook/test/table-1_6.gold-html new file mode 100644 index 000000000..83690c32e --- /dev/null +++ b/src/boost/tools/quickbook/test/table-1_6.gold-html @@ -0,0 +1,496 @@ + + + + +

+ Table 1.6 +

+
+

+ Table of contents +

+ +
+
+ + + + + + + + + + + + +
Table 1
+

+ Heading +

+
+

+ cell +

+
+
+
+ + + + + + + + + + + + +
Table 2
+

+ Heading +

+
+

+ cell +

+
+
+
+ + + + + + + + + + + +
+

+ Heading +

+
+

+ cell +

+
+
+
+ + + + + + + + + + + +
+

+ Heading +

+
+

+ cell +

+
+
+
+ + + + + + + + + + + + +
-table5-
+

+ Heading +

+
+

+ cell +

+
+
+
+ + + + + + + + + + + + +
Title
+

+ Heading +

+
+

+ cell +

+
+
+
+ + + + + + + + + + + + +
Title
+

+ Heading +

+
+

+ cell +

+
+
+
+ + + + + + + + + + + + +
Title containing a comment
+

+ Heading +

+
+

+ cell +

+
+
+
+ + + + + + + + + + + + +
Title
+

+ Heading +

+
+

+ cell +

+
+
+
+ + + + + + + + + + + + + + +
+

+ Heading +

+
+

+ Cell 1 +

+
+

+ Cell 2 +

+
+
+
+ + + + + + + + + + + + + + + +
Title on multiple lines with bold + text?
+

+ Heading +

+
+

+ Cell 1 +

+
+

+ Cell 2 +

+
+
+
+

+ Section 1 +

+
+
+ + + + + + + + + + + + +
Table 1
+

+ Heading +

+
+

+ cell +

+
+
+
+ + + + + + + + + + + + + + +
A & B
+

+ A +

+
+

+ B +

+
+

+ a +

+
+

+ b +

+
+
+
+ + + + +
Empty Table
+
+
+ + + + + + + +
Table with an empty cell
+

+ x +

+
+
+
+ + + + + + + + + + + + + + +
Indentation
+

+ Header 1. Paragraph 1 +

+

+ Header 1. Paragraph 2 +

+
+

+ Header 2 +

+
+

+ Row 1. Cell 1. +

+
+

+ Row 1. Cell 2. +

+

+ Row 1. Cell 2. Paragraph 2. +

+
+
+
+ + + + + + + + + + + + + + + + +
Nested Tables
+

+ Header 1 +

+
+

+ Header 2 +

+
+
+ + + + + + + + + + + + + + +
Inner Table
+

+ 1.1 +

+
+

+ 1.2 +

+
+

+ 2.1 +

+
+

+ 2.2 +

+
+
+
+

+ Something. +

+
+
+ +
+ + + + + + + + + + + + +
Table with anchors
+

+ a +

+
+

+ b +

+
+
+
+
+ + diff --git a/src/boost/tools/quickbook/test/table-1_6.quickbook b/src/boost/tools/quickbook/test/table-1_6.quickbook new file mode 100644 index 000000000..332e07060 --- /dev/null +++ b/src/boost/tools/quickbook/test/table-1_6.quickbook @@ -0,0 +1,134 @@ +[article Table 1.6 + [quickbook 1.6] + [id table_tests] +] + +[table:table1 Table 1 [[Heading]][[cell]]] + +[table Table 2 + [[Heading]] + [[cell]] +] + +[table + [[Heading]] + [[cell]] +] + +[table:table4 + [[Heading]] + [[cell]] +] + +[table:-table5- + [[Heading]] + [[cell]] +] + +[table [/ Comment?] Title + [[Heading]] + [[cell]] +] + +[table [/ Multi line +comment] Title + [[Heading]] + [[cell]] +] + +[table Title [/ ] containing a comment + [[Heading]] + [[cell]] +] + +[table [/ Multi line +comment] + Title + [[Heading]] + [[cell]] +] + +[table [/ Multi line +comment] + [[Heading]] + [[Cell 1]] + [[Cell 2]] +] + +[table Title on multiple + lines with *bold* text? + [[Heading]] + [[Cell 1]] + [[Cell 2]] +] + +[section:section1 Section 1] + +[table:table1 Table 1 + [[Heading]] + [[cell]] +] + +[table A & B + [[A][B]] + [[a][b]] +] + +[table Empty Table] + +[table Table with an empty cell +[[x]]] + +[table Indentation + [ + [ + Header 1. Paragraph 1 + + Header 1. Paragraph 2 + ] + [ + Header 2 + ] + ] + [ + [ + Row 1. Cell 1. + ] + [ + Row 1. Cell 2. + + Row 1. Cell 2. Paragraph 2. + ] + ] +] + +[table Nested Tables + [ + [ + Header 1 + ] + [ + Header 2 + ] + ] + [ + [ + [table Inner Table + [[1.1][1.2]] + [[2.1][2.2]] + ] + ] + ] + [ + [ + Something. + ] + ] +] + +[#id1] +[table Table with anchors +[[[#id2]a[#id3]]][[b]] +] + +[endsect] diff --git a/src/boost/tools/quickbook/test/table-1_7.gold b/src/boost/tools/quickbook/test/table-1_7.gold new file mode 100644 index 000000000..6b8eafabf --- /dev/null +++ b/src/boost/tools/quickbook/test/table-1_7.gold @@ -0,0 +1,520 @@ + + +
+ Table 1.7 + + Table 1 + + + + + + Heading + + + + + + + + + cell + + + + + +
+ + Table 2 + + + + + + Heading + + + + + + + + + cell + + + + + +
+ + + + + + + Heading + + + + + + + + + cell + + + + + + + + + + + + + Heading + + + + + + + + + cell + + + + + + + + + + + + + Heading + + + + + + + + + cell + + + + + + + + Title + + + + + + Heading + + + + + + + + + cell + + + + + +
+ + Title + + + + + + Heading + + + + + + + + + cell + + + + + +
+ + Title containing a comment + + + + + + Heading + + + + + + + + + cell + + + + + +
+ + Title + + + + + + Heading + + + + + + + + + cell + + + + + +
+ + + + + + + Heading + + + + + + + + + Cell 1 + + + + + + + Cell 2 + + + + + + + + Title on multiple lines with <emphasis role="bold">bold</emphasis> text? + + + + + + Heading + + + + + + + + + Cell 1 + + + + + + + Cell 2 + + + + + +
+
+ <link linkend="table_tests.section1">Section 1</link> + + Table 1 + + + + + + Heading + + + + + + + + + cell + + + + + +
+ + A & B + + + + + + A + + + + + B + + + + + + + + + a + + + + + b + + + + + +
+ + Empty Table + + + + +
+ + Table with an empty cell + + + + + + x + + + + + +
+ + Indentation + + + + + + Header 1. Paragraph 1 + + + Header 1. Paragraph 2 + + + + + Header 2 + + + + + + + + + Row 1. Cell 1. + + + + + Row 1. Cell 2. + + + Row 1. Cell 2. Paragraph 2. + + + + + + + Row 2. Cell 1. + + + + + Row 2. Cell 1. List item 1. + + + + + Row 2. Cell 1. List item 2. + + + + + + + Row 2. Cell 2. + + + + + Row 2. Cell 2. List item 1. + + + + + Row 2. Cell 2. List item 2. + + + + + + + +
+ + Nested Tables + + + + + + Header 1 + + + + + Header 2 + + + + + + + +
+ Inner Table + + + + + + 1.1 + + + + + 1.2 + + + + + + + + + 2.1 + + + + + 2.2 + + + + + +
+ + + + + + Something. + + + + + + + + + Table with anchors + + + + + + a + + + + + + + + + b + + + + + +
+ + Table with template id + + + + +
+
+
diff --git a/src/boost/tools/quickbook/test/table-1_7.gold-html b/src/boost/tools/quickbook/test/table-1_7.gold-html new file mode 100644 index 000000000..90dc27274 --- /dev/null +++ b/src/boost/tools/quickbook/test/table-1_7.gold-html @@ -0,0 +1,538 @@ + + + + +

+ Table 1.7 +

+
+

+ Table of contents +

+ +
+
+ + + + + + + + + + + + +
Table 1
+

+ Heading +

+
+

+ cell +

+
+
+
+ + + + + + + + + + + + +
Table 2
+

+ Heading +

+
+

+ cell +

+
+
+
+ + + + + + + + + + + +
+

+ Heading +

+
+

+ cell +

+
+
+
+ + + + + + + + + + + +
+

+ Heading +

+
+

+ cell +

+
+
+
+ + + + + + + + + + + +
+

+ Heading +

+
+

+ cell +

+
+
+
+ + + + + + + + + + + + +
Title
+

+ Heading +

+
+

+ cell +

+
+
+
+ + + + + + + + + + + + +
Title
+

+ Heading +

+
+

+ cell +

+
+
+
+ + + + + + + + + + + + +
Title containing a comment
+

+ Heading +

+
+

+ cell +

+
+
+
+ + + + + + + + + + + + +
Title
+

+ Heading +

+
+

+ cell +

+
+
+
+ + + + + + + + + + + + + + +
+

+ Heading +

+
+

+ Cell 1 +

+
+

+ Cell 2 +

+
+
+
+ + + + + + + + + + + + + + + +
Title on multiple lines with bold + text?
+

+ Heading +

+
+

+ Cell 1 +

+
+

+ Cell 2 +

+
+
+
+

+ Section 1 +

+
+
+ + + + + + + + + + + + +
Table 1
+

+ Heading +

+
+

+ cell +

+
+
+
+ + + + + + + + + + + + + + +
A & B
+

+ A +

+
+

+ B +

+
+

+ a +

+
+

+ b +

+
+
+
+ + + + +
Empty Table
+
+
+ + + + + + + +
Table with an empty cell
+

+ x +

+
+
+
+ + + + + + + + + + + + + + + + + + +
Indentation
+

+ Header 1. Paragraph 1 +

+

+ Header 1. Paragraph 2 +

+
+

+ Header 2 +

+
+

+ Row 1. Cell 1. +

+
+

+ Row 1. Cell 2. +

+

+ Row 1. Cell 2. Paragraph 2. +

+
+

+ Row 2. Cell 1. +

+
    +
  • +
    + Row 2. Cell 1. List item 1. +
    +
  • +
  • +
    + Row 2. Cell 1. List item 2. +
    +
  • +
+
+

+ Row 2. Cell 2. +

+
    +
  • +
    + Row 2. Cell 2. List item 1. +
    +
  • +
  • +
    + Row 2. Cell 2. List item 2. +
    +
  • +
+
+
+
+ + + + + + + + + + + + + + + + +
Nested Tables
+

+ Header 1 +

+
+

+ Header 2 +

+
+
+ + + + + + + + + + + + + + +
Inner Table
+

+ 1.1 +

+
+

+ 1.2 +

+
+

+ 2.1 +

+
+

+ 2.2 +

+
+
+
+

+ Something. +

+
+
+ +
+ + + + + + + + + + + + +
Table with anchors
+

+ a +

+
+

+ b +

+
+
+
+ + + + +
Table with template id
+
+
+
+ + diff --git a/src/boost/tools/quickbook/test/table-1_7.quickbook b/src/boost/tools/quickbook/test/table-1_7.quickbook new file mode 100644 index 000000000..84d68f71d --- /dev/null +++ b/src/boost/tools/quickbook/test/table-1_7.quickbook @@ -0,0 +1,151 @@ +[article Table 1.7 + [quickbook 1.7] + [id table_tests] +] + +[table:table1 Table 1 [[Heading]][[cell]]] + +[table Table 2 + [[Heading]] + [[cell]] +] + +[table + [[Heading]] + [[cell]] +] + +[table:table4 + [[Heading]] + [[cell]] +] + +[table:-table5- + [[Heading]] + [[cell]] +] + +[table [/ Comment?] Title + [[Heading]] + [[cell]] +] + +[table [/ Multi line +comment] Title + [[Heading]] + [[cell]] +] + +[table Title [/ ] containing a comment + [[Heading]] + [[cell]] +] + +[table [/ Multi line +comment] + Title + [[Heading]] + [[cell]] +] + +[table [/ Multi line +comment] + [[Heading]] + [[Cell 1]] + [[Cell 2]] +] + +[table Title on multiple + lines with *bold* text? + [[Heading]] + [[Cell 1]] + [[Cell 2]] +] + +[section:section1 Section 1] + +[table:table1 Table 1 + [[Heading]] + [[cell]] +] + +[table A & B + [[A][B]] + [[a][b]] +] + +[table Empty Table] + +[table Table with an empty cell +[[x]]] + +[table Indentation + [ + [ + Header 1. Paragraph 1 + + Header 1. Paragraph 2 + ] + [ + Header 2 + ] + ] + [ + [ + Row 1. Cell 1. + ] + [ + Row 1. Cell 2. + + Row 1. Cell 2. Paragraph 2. + ] + ] + [ + [ +Row 2. Cell 1. + +* Row 2. Cell 1. List item 1. +* Row 2. Cell 1. List item 2. + ] + [ + Row 2. Cell 2. + + * Row 2. Cell 2. List item 1. + * Row 2. Cell 2. List item 2. + ] + ] +] + +[table Nested Tables + [ + [ + Header 1 + ] + [ + Header 2 + ] + ] + [ + [ + [table Inner Table + [[1.1][1.2]] + [[2.1][2.2]] + ] + ] + ] + [ + [ + Something. + ] + ] +] + +[#id1] +[table Table with anchors +[[[#id2]a[#id3]]][[b]] +] + +[template id_value[] id123] +[table:[id_value] Table with template id] + +[endsect] diff --git a/src/boost/tools/quickbook/test/template_arguments1-1_1-fail.quickbook b/src/boost/tools/quickbook/test/template_arguments1-1_1-fail.quickbook new file mode 100644 index 000000000..d2622373d --- /dev/null +++ b/src/boost/tools/quickbook/test/template_arguments1-1_1-fail.quickbook @@ -0,0 +1,10 @@ +[article Expect template to fail because there are too many arguments. +] + +[template unary[x] [x]] + +[section Failure] + +[unary a..b ] + +[endsect] diff --git a/src/boost/tools/quickbook/test/template_arguments1-1_5-fail.quickbook b/src/boost/tools/quickbook/test/template_arguments1-1_5-fail.quickbook new file mode 100644 index 000000000..335306a27 --- /dev/null +++ b/src/boost/tools/quickbook/test/template_arguments1-1_5-fail.quickbook @@ -0,0 +1,11 @@ +[article Expect template to fail because there are too many arguments. + [quickbook 1.5] +] + +[template unary[x] [x]] + +[section Failure] + +[unary a..b ] + +[endsect] diff --git a/src/boost/tools/quickbook/test/template_arguments2-1_1-fail.quickbook b/src/boost/tools/quickbook/test/template_arguments2-1_1-fail.quickbook new file mode 100644 index 000000000..4f8133708 --- /dev/null +++ b/src/boost/tools/quickbook/test/template_arguments2-1_1-fail.quickbook @@ -0,0 +1,10 @@ +[article Expect template to fail because there are not enough arguments. +] + +[template ternary[x y z] [x][y][z]] + +[section Failure] + +[ternary a b ] + +[endsect] diff --git a/src/boost/tools/quickbook/test/template_arguments2-1_5-fail.quickbook b/src/boost/tools/quickbook/test/template_arguments2-1_5-fail.quickbook new file mode 100644 index 000000000..1c45e09c7 --- /dev/null +++ b/src/boost/tools/quickbook/test/template_arguments2-1_5-fail.quickbook @@ -0,0 +1,6 @@ +[article Expect template to fail because there are not enough arguments on 1.5. + [quickbook 1.5] +] + +[template ternary[x y z] {[x]-[y]-[z]}] +[ternary 1..2 3 4] \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/template_arguments3-1_1-fail.quickbook b/src/boost/tools/quickbook/test/template_arguments3-1_1-fail.quickbook new file mode 100644 index 000000000..83b2daa90 --- /dev/null +++ b/src/boost/tools/quickbook/test/template_arguments3-1_1-fail.quickbook @@ -0,0 +1,10 @@ +[article Expect template to fail because there are no arguments. +] + +[template ternary[x y z] [x][y][z]] + +[section Failure] + +[ternary] + +[endsect] diff --git a/src/boost/tools/quickbook/test/template_arguments3-1_5-fail.quickbook b/src/boost/tools/quickbook/test/template_arguments3-1_5-fail.quickbook new file mode 100644 index 000000000..cd6618241 --- /dev/null +++ b/src/boost/tools/quickbook/test/template_arguments3-1_5-fail.quickbook @@ -0,0 +1,11 @@ +[article Expect template to fail because there are no arguments. + [quickbook 1.5] +] + +[template ternary[x y z] [x][y][z]] + +[section Failure] + +[ternary] + +[endsect] diff --git a/src/boost/tools/quickbook/test/template_section-1_5.gold b/src/boost/tools/quickbook/test/template_section-1_5.gold new file mode 100644 index 000000000..af270acb1 --- /dev/null +++ b/src/boost/tools/quickbook/test/template_section-1_5.gold @@ -0,0 +1,22 @@ + + +
+ Section in a template + + Some text before the section. + +
+ <link linkend="section_in_a_template.test">Test</link> + + Hello. + + + Just + to test id generation + + + Goodbye. + +
+
diff --git a/src/boost/tools/quickbook/test/template_section-1_5.gold-html b/src/boost/tools/quickbook/test/template_section-1_5.gold-html new file mode 100644 index 000000000..a21f78004 --- /dev/null +++ b/src/boost/tools/quickbook/test/template_section-1_5.gold-html @@ -0,0 +1,38 @@ + + + + +

+ Section in a template +

+
+

+ Table of contents +

+ +
+

+ Some text before the section. +

+
+

+ Test +

+
+

+ Hello. +

+

+ Just to test id generation +

+

+ Goodbye. +

+
+
+ + diff --git a/src/boost/tools/quickbook/test/template_section-1_5.quickbook b/src/boost/tools/quickbook/test/template_section-1_5.quickbook new file mode 100644 index 000000000..670654a23 --- /dev/null +++ b/src/boost/tools/quickbook/test/template_section-1_5.quickbook @@ -0,0 +1,20 @@ +[article Section in a template + [quickbook 1.5] +] + +[template nestedsection[] + +Some text before the section. + +[section Test] + +Hello. + +[heading Just to test id generation] + +Goodbye. + +[endsect] +] + +[nestedsection] \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/template_section1-1_5-fail.quickbook b/src/boost/tools/quickbook/test/template_section1-1_5-fail.quickbook new file mode 100644 index 000000000..60b34830a --- /dev/null +++ b/src/boost/tools/quickbook/test/template_section1-1_5-fail.quickbook @@ -0,0 +1,9 @@ +[article Template should contain balanced sections + [quickbook 1.5] +] + +[template begin_no_end[] +[section Test] +] + +[begin_no_end] \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/template_section2-1_5-fail.quickbook b/src/boost/tools/quickbook/test/template_section2-1_5-fail.quickbook new file mode 100644 index 000000000..5445e88e3 --- /dev/null +++ b/src/boost/tools/quickbook/test/template_section2-1_5-fail.quickbook @@ -0,0 +1,10 @@ +[article Template should contain balanced sections + [quickbook 1.5] +] + +[template end_before_begin[] +[endsect] +[section Test] +] + +[end_before_begin] \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/template_section3-1_5-fail.quickbook b/src/boost/tools/quickbook/test/template_section3-1_5-fail.quickbook new file mode 100644 index 000000000..237a9f0d1 --- /dev/null +++ b/src/boost/tools/quickbook/test/template_section3-1_5-fail.quickbook @@ -0,0 +1,9 @@ +[article Template should contain balanced sections + [quickbook 1.5] +] + +[template end_no_begin[] +[endsect] +] + +[end_no_begin] \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/templates-1_3.gold b/src/boost/tools/quickbook/test/templates-1_3.gold new file mode 100644 index 000000000..ed3668fda --- /dev/null +++ b/src/boost/tools/quickbook/test/templates-1_3.gold @@ -0,0 +1,192 @@ + + +
+ Templates +
+ <link linkend="templates.templates">Templates</link> + + nullary_arg + + + foo baz + + + foo baz + + + This is a complete paragraph. kalamazoo kalamazoo kalamazoo kalamazoo kalamazoo + kalamazoo kalamazoo kalamazoo kalamazoo.... blah blah blah...... + + + baz + + + This is a complete paragraph. madagascar madagascar madagascar madagascar madagascar + madagascar madagascar madagascar madagascar.... blah blah blah...... + + + zoom peanut zoom + + + exactly xanadu + + + wx + + + wxyz wxyz trail + +int main() +{ + std::cout << "Hello, World" << std::endl; +} + + + x2 + + + α2 + + + x2 + + + got a banana? + + + .0 00 + + + [fool] + +
+
+ <link linkend="templates.empty_templates">Empty Templates</link> +
+
+ <link linkend="templates.nested_templates">Nested Templates</link> + + Pre + + + Start block template. + + + Start block template. + + + Hello! + + + End block template. + + + End block template. + + + Post + + + Pre + + + Start block template. + + + Start phrase template. Hello! End phrase template. + + + End block template. + + + Post + + + Pre + + + Start phrase template. + + + Start block template. + + + Hello! + + + End block template. + + + End phrase template. + + + Post + + + Pre Start phrase template. Start phrase template. Hello! End phrase template. + End phrase template. Post + +
+
+ <link linkend="templates.block_markup">Block Markup</link> + + + + a + + + + + b + + + + +int main() {} + + Paragraphs 1 + + + Paragraphs 2 + + + + + + + + a + + + + + b + + + + + + + + + +int main() {} + + + + Paragraphs 1 + + + Paragraphs 2 + + + +
+
+ <link linkend="templates.escaped_templates">Escaped templates</link> + + Not real boostbook Also not real boostbook + More fake boostbook Final fake boostbook + +
+
diff --git a/src/boost/tools/quickbook/test/templates-1_3.gold-html b/src/boost/tools/quickbook/test/templates-1_3.gold-html new file mode 100644 index 000000000..1696e949e --- /dev/null +++ b/src/boost/tools/quickbook/test/templates-1_3.gold-html @@ -0,0 +1,240 @@ + + + + +

+ Templates +

+
+

+ Table of contents +

+ +
+
+

+ Templates +

+
+

+ nullary_arg +

+

+ foo baz +

+

+ foo baz +

+

+ This is a complete paragraph. kalamazoo kalamazoo kalamazoo kalamazoo kalamazoo + kalamazoo kalamazoo kalamazoo kalamazoo.... blah blah blah...... +

+

+ baz +

+

+ This is a complete paragraph. madagascar madagascar madagascar madagascar + madagascar madagascar madagascar madagascar madagascar.... blah blah blah...... +

+

+ zoom peanut zoom +

+

+ exactly xanadu +

+

+ wx +

+

+ wxyz wxyz trail +

+
int main()
+{
+    std::cout << "Hello, World" << std::endl;
+}
+
+

+ x2 +

+

+ α2 +

+

+ x2 +

+

+ got a banana? +

+

+ .0 00 +

+

+ [fool] +

+
+
+
+

+ Empty Templates +

+
+
+
+
+

+ Nested Templates +

+
+

+ Pre +

+

+ Start block template. +

+

+ Start block template. +

+

+ Hello! +

+

+ End block template. +

+

+ End block template. +

+

+ Post +

+

+ Pre +

+

+ Start block template. +

+

+ Start phrase template. Hello! End phrase template. +

+

+ End block template. +

+

+ Post +

+

+ Pre +

+

+ Start phrase template. +

+

+ Start block template. +

+

+ Hello! +

+

+ End block template. +

+

+ End phrase template. +

+

+ Post +

+

+ Pre Start phrase template. Start phrase template. Hello! End phrase template. + End phrase template. Post +

+
+
+
+

+ Block Markup +

+
+
    +
  • +
    + a +
    +
  • +
  • +
    + b +
    +
  • +
+

+

+
int main() {}
+

+ Paragraphs 1 +

+

+ Paragraphs 2 +

+
    +
  • +
    +
      +
    • +
      + a +
      +
    • +
    • +
      + b +
      +
    • +
    +
    +
  • +
  • +

    +

    +
  • +
  • +
    int main() {}
    +
  • +
  • +
    + Paragraphs 1 +
    +
    + Paragraphs 2 +
    +
  • +
+
+
+
+

+ Escaped templates +

+
+

+ Not real boostbook Also not real boostbook More fake boostbook Final fake + boostbook +

+
+
+ + diff --git a/src/boost/tools/quickbook/test/templates-1_3.quickbook b/src/boost/tools/quickbook/test/templates-1_3.quickbook new file mode 100644 index 000000000..a6d434878 --- /dev/null +++ b/src/boost/tools/quickbook/test/templates-1_3.quickbook @@ -0,0 +1,216 @@ +[article Templates + [quickbook 1.3] +] + +[section Templates] + +[/-------------------------------- nullary arg ] + +[template foo0 nullary_arg] + +[foo0] + +[/-------------------------------- unary arg, phrase syle ] + +[template foo1[bar] foo [bar]] + +[foo1 baz] + +[/-------------------------------- unary arg, block syle ] + +[template foo2[bar] +foo [bar] +] + +[foo2 baz] + +[template foo3[bar] +This is a complete paragraph. [bar] [bar] [bar] [bar] [bar] +[bar] [bar] [bar] [bar].... blah blah blah...... +] + +[foo3 kalamazoo] + +[/-------------------------------- unary arg, using punctuation ] + +[template ![bar] ''''''[bar]''''''] + +[!baz] + +[/-------------------------------- recursive templates ] + +[template foo4[bar] +[foo3 [bar]] +] + +[foo3 madagascar] + +[template foo5[x] zoom [x]] +[template foo6[x] [x] zoom] + +[foo6[foo5 peanut]] + +[template kinda_weird[x y] [x] [y]] + +[kinda_weird exactly..xanadu] + + +[/-------------------------------- space delimitted args ] + +[template simple1[a b] [a][b]] + +[simple1 w x] + +[template simple2[a b c d] [a][b][c][d]] + +[simple2 w x y z][simple2 w x y z trail] + +[/-------------------------------- John's templates ] + +[template code[x] + int main() + { + std::cout << ``[x]`` << std::endl; + } +] + +[code "Hello\, World"] + +[template alpha '''α'''] +[template pow[a b] [a]''''''[b]'''''' ] +[template super[text]''''''[text]'''''' ] + +[pow x 2] + +[pow [alpha] 2] + +x[super 2] + +[/-------------------------------- Some more ] + +[template banana got a banana?] +[template plantation[bananarama] [bananarama]] + +[plantation [banana]] + +[/-------------------------------- Not a bug (there was a syntax error here) ] + +[template join1[a b] [b][a]] +[template join2[a b] [a][b]] +[template test[x] [join1 [join2 0 [x]]...0]] +[test 0] + +[/-------------------------------- Mismatched template ] + +[template foo 1] +[fool] + +[template blah 10] + +[endsect] + +[section Empty Templates] + +[template empty1] +[template empty2 ] +[template empty3 [/comment]] +[template empty4 [/comment] + +] +[template empty5 +] +[template empty6 + +] +[template empty7 +[/comment] +] +[template empty8 + +[/comment] +] +[template empty_arg1[x]] +[template empty_arg2[x y]] + +[empty1] +[empty2] +[empty3] +[empty4] +[empty5] +[empty6] +[empty7] +[empty8] +[empty_arg1 1] +[empty_arg2 1 2] + +[endsect] + +[/----------------------------------- Nested templates ] + +[section Nested Templates] + +[template block[content] + +Start block template. + +[content] + +End block template. +] + +[template phrase[content] Start phrase template. [content] End phrase template.] + +Pre [block [block Hello!]] Post + +Pre [block [phrase Hello!]] Post + +Pre [phrase [block Hello!]] Post + +Pre [phrase [phrase Hello!]] Post + +[endsect] + +[/----------------------------------- Block Markup ] + +[section Block Markup] + +[template list +* a +* b] + +[template horizontal +----] + +[template codeblock + int main() {}] + +[template paragraphs +Paragraphs 1 + +Paragraphs 2 +] + +[list][horizontal][codeblock][paragraphs] + +* [list] +* [horizontal] +* [codeblock] +* [paragraphs] + +[endsect] + +[/----------------------------------- Escaped templates ] + +[section Escaped templates] + +[template raw_markup Not real boostbook] +[template | Also not real boostbook] +[template escaped1 [|] [`|]] +[template escaped2 [x] [`x]] + +[`raw_markup] +[`|] +[escaped1 More fake boostbook] +[escaped2 Final fake boostbook] + +[endsect] diff --git a/src/boost/tools/quickbook/test/templates-1_4.gold b/src/boost/tools/quickbook/test/templates-1_4.gold new file mode 100644 index 000000000..40c244369 --- /dev/null +++ b/src/boost/tools/quickbook/test/templates-1_4.gold @@ -0,0 +1,28 @@ + + +
+ Template 1.4 + + dynamic scoping + + + old + + + {1-2} {1-2} {1-2 3 4} {1 2-3 4} {1 2 3-4} {[1-2} {1..2-3} {1..2-3} + + + {[binary 1 2-3} 4] + + + {1-2-3} {1-2-3} {1-2-3 4} {1 2-3-4} {[1-2-3} + +
+ <link linkend="template_1_4.escaped_templates">Escaped templates</link> + + Not real boostbook Also not real boostbook + More fake boostbook Final fake boostbook + +
+
diff --git a/src/boost/tools/quickbook/test/templates-1_4.gold-html b/src/boost/tools/quickbook/test/templates-1_4.gold-html new file mode 100644 index 000000000..344d09eac --- /dev/null +++ b/src/boost/tools/quickbook/test/templates-1_4.gold-html @@ -0,0 +1,45 @@ + + + + +

+ Template 1.4 +

+
+

+ Table of contents +

+ +
+

+ dynamic scoping +

+

+ old +

+

+ {1-2} {1-2} {1-2 3 4} {1 2-3 4} {1 2 3-4} {[1-2} {1..2-3} {1..2-3} +

+

+ {[binary 1 2-3} 4] +

+

+ {1-2-3} {1-2-3} {1-2-3 4} {1 2-3-4} {[1-2-3} +

+
+

+ Escaped templates +

+
+

+ Not real boostbook Also not real boostbook More fake boostbook Final fake + boostbook +

+
+
+ + diff --git a/src/boost/tools/quickbook/test/templates-1_4.quickbook b/src/boost/tools/quickbook/test/templates-1_4.quickbook new file mode 100644 index 000000000..3fb893748 --- /dev/null +++ b/src/boost/tools/quickbook/test/templates-1_4.quickbook @@ -0,0 +1,53 @@ +[article Template 1.4 + [quickbook 1.4] +] + +[/ 1.4 uses dynamic scoping ] + +[template x static scoping] +[template foo1[] [x]] +[template foo2[x] [foo1]] +[foo2 dynamic scoping] + +[/ In 1.4 template arguments are scoped at the point they are used] + +[template y new] +[template foo3[a y] [a]] +[foo3 [y] old] + +[/ 1.4 template arguments] + +[template binary[x y] {[x]-[y]}] +[binary 1..2] [/ {1-2} ] +[binary 1 2] [/ {1-2} ] +[binary 1..2 3 4] [/ {1-2 3 4} ] +[binary 1 2..3 4] [/ {1 2-3 4} ] +[binary 1 2 3..4] [/ {1 2 3-4} ] +[binary [1..2] [/ {(1-2} but with a square bracket ] +[binary 1.\.2..3] [/ {1..2-3} ] +[binary 1.\.2 3] [/ {1..2-3} ] + +[binary [binary 1 2..3] 4] [/ {[binary 1 2-3} 4] ] + +[template ternary[x y z] {[x]-[y]-[z]}] +[ternary 1..2..3] [/ {1-2-3} ] +[ternary 1 2 3] [/ {1-2-3} ] +[ternary 1..2 3 4] [/ {1-2-3 4} ] +[ternary 1 2..3 4] [/ {1 2-3-4} ] +[ternary [1..2..3] [/ {(1-2-3} (but with a square bracket) ] + +[/----------------------------------- Escaped templates ] + +[section Escaped templates] + +[template raw_markup Not real boostbook] +[template | Also not real boostbook] +[template escaped1 [|] [`|]] +[template escaped2 [x] [`x]] + +[`raw_markup] +[`|] +[escaped1 More fake boostbook] +[escaped2 Final fake boostbook] + +[endsect] diff --git a/src/boost/tools/quickbook/test/templates-1_5.gold b/src/boost/tools/quickbook/test/templates-1_5.gold new file mode 100644 index 000000000..9577f1a91 --- /dev/null +++ b/src/boost/tools/quickbook/test/templates-1_5.gold @@ -0,0 +1,239 @@ + + +
+ Template 1.5 +
+ <link linkend="template_1_5.templates">Templates</link> + + nullary_arg + + + foo baz + + + foo baz + + + This is a complete paragraph. kalamazoo kalamazoo kalamazoo kalamazoo kalamazoo + kalamazoo kalamazoo kalamazoo kalamazoo.... blah blah blah...... + + + baz + + + This is a complete paragraph. madagascar madagascar madagascar madagascar madagascar + madagascar madagascar madagascar madagascar.... blah blah blah...... + + + zoom peanut zoom + + + exactly xanadu + + + wx + + + wxyz wxyz trail + +int main() +{ + std::cout << "Hello, World" << std::endl; +} + + + x2 + + + α2 + + + x2 + + + got a banana? + + + .0 00 + + + [fool] + +
+
+ <link linkend="template_1_5.empty_templates">Empty Templates</link> +
+
+ <link linkend="template_1_5.nested_templates">Nested Templates</link> + + Pre + + + Start block template. + + + Start block template. + + + Hello! + + + End block template. + + + End block template. + + + Post + + + Pre + + + Start block template. + + + Start phrase template. Hello! End phrase template. + + + End block template. + + + Post + + + Pre + + + Start phrase template. + + + Start block template. + + + Hello! + + + End block template. + + + End phrase template. + + + Post + + + Pre Start phrase template. Start phrase template. Hello! End phrase template. + End phrase template. Post + +
+
+ <link linkend="template_1_5.block_markup">Block Markup</link> + + + + a + + + + + b + + + + +int main() {} + + Paragraphs 1 + + + Paragraphs 2 + + + + + + + + a + + + + + b + + + + + + + + + +int main() {} + + + + Paragraphs 1 + + + Paragraphs 2 + + + +
+
+ <link linkend="template_1_5.static_scoping">Static Scoping</link> + + static scoping + + + [a] + + + new + + + foo foo + +
+
+ <link linkend="template_1_5.template_arguments">Template Arguments</link> + + {1-2} {1-2} {1-2 3 4} {1 2-3 4} {1 2 3-4} {1..2-3} {1..2-3} + + + { {1 2-3}-4} { {1 2-3}-4} { {1-2 3}-4} + + + {[1-2] 3} {[1-2] 3} {[1-2} + + + {1-2-3} {1-2-3} + +
+
+ <link linkend="template_1_5.block_and_phrase_templates">Block and phrase + templates</link> + + Some text + + + A <emphasis>paragraph</emphasis>. + + + Some *text* A paragraph. + + + Things + +
+
+ <link linkend="template_1_5.escaped_templates">Escaped templates</link> + + Not real boostbook Also not real boostbook + More fake boostbook Final fake boostbook + +
+
diff --git a/src/boost/tools/quickbook/test/templates-1_5.gold-html b/src/boost/tools/quickbook/test/templates-1_5.gold-html new file mode 100644 index 000000000..f557f0ac2 --- /dev/null +++ b/src/boost/tools/quickbook/test/templates-1_5.gold-html @@ -0,0 +1,308 @@ + + + + +

+ Template 1.5 +

+
+

+ Table of contents +

+ +
+
+

+ Templates +

+
+

+ nullary_arg +

+

+ foo baz +

+

+ foo baz +

+

+ This is a complete paragraph. kalamazoo kalamazoo kalamazoo kalamazoo kalamazoo + kalamazoo kalamazoo kalamazoo kalamazoo.... blah blah blah...... +

+

+ baz +

+

+ This is a complete paragraph. madagascar madagascar madagascar madagascar + madagascar madagascar madagascar madagascar madagascar.... blah blah blah...... +

+

+ zoom peanut zoom +

+

+ exactly xanadu +

+

+ wx +

+

+ wxyz wxyz trail +

+
int main()
+{
+    std::cout << "Hello, World" << std::endl;
+}
+
+

+ x2 +

+

+ α2 +

+

+ x2 +

+

+ got a banana? +

+

+ .0 00 +

+

+ [fool] +

+
+
+
+

+ Empty Templates +

+
+
+
+
+

+ Nested Templates +

+
+

+ Pre +

+

+ Start block template. +

+

+ Start block template. +

+

+ Hello! +

+

+ End block template. +

+

+ End block template. +

+

+ Post +

+

+ Pre +

+

+ Start block template. +

+

+ Start phrase template. Hello! End phrase template. +

+

+ End block template. +

+

+ Post +

+

+ Pre +

+

+ Start phrase template. +

+

+ Start block template. +

+

+ Hello! +

+

+ End block template. +

+

+ End phrase template. +

+

+ Post +

+

+ Pre Start phrase template. Start phrase template. Hello! End phrase template. + End phrase template. Post +

+
+
+
+

+ Block Markup +

+
+
    +
  • +
    + a +
    +
  • +
  • +
    + b +
    +
  • +
+

+

+
int main() {}
+

+ Paragraphs 1 +

+

+ Paragraphs 2 +

+
    +
  • +
    +
      +
    • +
      + a +
      +
    • +
    • +
      + b +
      +
    • +
    +
    +
  • +
  • +

    +

    +
  • +
  • +
    int main() {}
    +
  • +
  • +
    + Paragraphs 1 +
    +
    + Paragraphs 2 +
    +
  • +
+
+
+
+

+ Static Scoping +

+
+

+ static scoping +

+

+ [a] +

+

+ new +

+

+ foo foo +

+
+
+
+

+ Template Arguments +

+
+

+ {1-2} {1-2} {1-2 3 4} {1 2-3 4} {1 2 3-4} {1..2-3} {1..2-3} +

+

+ { {1 2-3}-4} { {1 2-3}-4} { {1-2 3}-4} +

+

+ {[1-2] 3} {[1-2] 3} {[1-2} +

+

+ {1-2-3} {1-2-3} +

+
+
+
+

+ Block and phrase templates +

+
+

+ Some text +

+

+ A <emphasis>paragraph</emphasis>. +

+

+ Some *text* A paragraph. +

+

+

+ Things +

+

+
+
+
+

+ Escaped templates +

+
+

+ Not real boostbook Also not real boostbook More fake boostbook Final fake + boostbook +

+
+
+ + diff --git a/src/boost/tools/quickbook/test/templates-1_5.quickbook b/src/boost/tools/quickbook/test/templates-1_5.quickbook new file mode 100644 index 000000000..55ec031fd --- /dev/null +++ b/src/boost/tools/quickbook/test/templates-1_5.quickbook @@ -0,0 +1,297 @@ +[article Template 1.5 + [quickbook 1.5] +] + +[section Templates] + +[/-------------------------------- nullary arg ] + +[template foo0 nullary_arg] + +[foo0] + +[/-------------------------------- unary arg, phrase syle ] + +[template foo1[bar] foo [bar]] + +[foo1 baz] + +[/-------------------------------- unary arg, block syle ] + +[template foo2[bar] +foo [bar] +] + +[foo2 baz] + +[template foo3[bar] +This is a complete paragraph. [bar] [bar] [bar] [bar] [bar] +[bar] [bar] [bar] [bar].... blah blah blah...... +] + +[foo3 kalamazoo] + +[/-------------------------------- unary arg, using punctuation ] + +[template ![bar] ''''''[bar]''''''] + +[!baz] + +[/-------------------------------- recursive templates ] + +[template foo4[bar] +[foo3 [bar]] +] + +[foo3 madagascar] + +[template foo5[x] zoom [x]] +[template foo6[x] [x] zoom] + +[foo6[foo5 peanut]] + +[template kinda_weird[x y] [x] [y]] + +[kinda_weird exactly..xanadu] + + +[/-------------------------------- space delimitted args ] + +[template simple1[a b] [a][b]] + +[simple1 w x] + +[template simple2[a b c d] [a][b][c][d]] + +[simple2 w x y z][simple2 w x y z trail] + +[/-------------------------------- John's templates ] + +[template code[x] + int main() + { + std::cout << ``[x]`` << std::endl; + } +] + +[code "Hello\, World"] + +[template alpha '''α'''] +[template pow[a b] [a]''''''[b]'''''' ] +[template super[text]''''''[text]'''''' ] + +[pow x 2] + +[pow [alpha] 2] + +x[super 2] + +[/-------------------------------- Some more ] + +[template banana got a banana?] +[template plantation[bananarama] [bananarama]] + +[plantation [banana]] + +[/-------------------------------- Not a bug (there was a syntax error here) ] + +[template join1[a b] [b][a]] +[template join2[a b] [a][b]] +[template test[x] [join1 [join2 0 [x]]...0]] +[test 0] + +[/-------------------------------- Mismatched template ] + +[template foo 1] +[fool] + +[template blah 10] + +[endsect] + +[section Empty Templates] + +[template empty1] +[template empty2 ] +[template empty3 [/comment]] +[template empty4 [/comment] + +] +[template empty5 +] +[template empty6 + +] +[template empty7 +[/comment] +] +[template empty8 + +[/comment] +] +[template empty_arg1[x]] +[template empty_arg2[x y]] + +[empty1] +[empty2] +[empty3] +[empty4] +[empty5] +[empty6] +[empty7] +[empty8] +[empty_arg1 1] +[empty_arg2 1 2] + +[endsect] + +[/----------------------------------- Nested templates ] + +[section Nested Templates] + +[template block[content] + +Start block template. + +[content] + +End block template. +] + +[template phrase[content] Start phrase template. [content] End phrase template.] + +Pre [block [block Hello!]] Post + +Pre [block [phrase Hello!]] Post + +Pre [phrase [block Hello!]] Post + +Pre [phrase [phrase Hello!]] Post + +[endsect] + +[/----------------------------------- Block Markup ] + +[section Block Markup] + +[template list +* a +* b] + +[template horizontal +----] + +[template codeblock + int main() {}] + +[template paragraphs +Paragraphs 1 + +Paragraphs 2 +] + +[list][horizontal][codeblock][paragraphs] + +* [list] +* [horizontal] +* [codeblock] +* [paragraphs] + +[endsect] + +[/----------------------------------- 1.5+ use static scoping ] + +[section Static Scoping] + +[template x static scoping] +[template static_test1[] [x]] +[template static_test2[x] [static_test1]] +[static_test2 dynamic scoping] + +[/ This should be '[a]' because [a] isn't matched. ] +[template test1[] [a]] +[template test2[a] [test1]] +[test2 1] + +[/ In 1.5 template arguments are scoped at the point they are defined] + +[template y new] +[template static_test3[a y] [a]] +[static_test3 [y] old] + +[/ From https://svn.boost.org/trac/boost/ticket/2034 ] + +[template same[x] [x]] +[template echo[a b] [a] [b]] +[template echo_twice[x] [echo [same [x]]..[same [x]]]] +[echo_twice foo] + +[endsect] + +[/----------------------------------- 1.5+ template arguments ] + +[section Template Arguments] + +[template binary[x y] {[x]-[y]}] +[binary 1..2] [/ {1-2} ] +[binary 1 2] [/ {1-2} ] +[binary 1..2 3 4] [/ {1-2 3 4} ] +[binary 1 2..3 4] [/ {1 2-3 4} ] +[binary 1 2 3..4] [/ {1 2 3-4} ] +[binary 1.\.2..3] [/ {1..2-3} ] +[binary 1.\.2 3] [/ {1..2-3} ] + +[binary [binary 1 2..3]..4] [/ { {1 2-3}-4} ] +[binary [binary 1 2..3] 4] [/ { {1 2-3}-4} ] +[binary [binary 1 2 3]..4] [/ { {1-2 3}-4} ] + +[binary \[1 2\] 3] [/ {[1-2] 3} ] +[binary \[1..2\] 3] [/ {[1-2] 3} ] +[binary \[1 2] [/ {(1-2} ] + +[template ternary[x y z] {[x]-[y]-[z]}] +[ternary 1..2..3] [/ {1-2-3} ] +[ternary 1 2 3] [/ {1-2-3} ] + +[endsect] + +[/----------------------------------- Block and phrases ] + +[section Block and phrase templates] + +[template phrase_template[] Some *text*] +[template block_template[] + +A paragraph. +] + +[phrase_template] +[block_template] +[`phrase_template] +[`block_template] + +[/ Trailing newline shouldn't be included] + +[template named_index[type title] +''''''[title]'''''' +] + +[named_index things Things] + +[endsect] + +[/----------------------------------- Escaped templates ] + +[section Escaped templates] + +[template raw_markup Not real boostbook] +[template | Also not real boostbook] +[template escaped1 [|] [`|]] +[template escaped2 [x] [`x]] + +[`raw_markup] +[`|] +[escaped1 More fake boostbook] +[escaped2 Final fake boostbook] + +[endsect] diff --git a/src/boost/tools/quickbook/test/templates-1_6-fail1.quickbook b/src/boost/tools/quickbook/test/templates-1_6-fail1.quickbook new file mode 100644 index 000000000..0fd039b1e --- /dev/null +++ b/src/boost/tools/quickbook/test/templates-1_6-fail1.quickbook @@ -0,0 +1,8 @@ +[article Template 1.6 fail 1 + [quickbook 1.6] +] + +[/ I've removed support for escaping punctuation templates in 1.6. ] + +[template ~ body] +[`~] diff --git a/src/boost/tools/quickbook/test/templates-1_6.gold b/src/boost/tools/quickbook/test/templates-1_6.gold new file mode 100644 index 000000000..b37604e75 --- /dev/null +++ b/src/boost/tools/quickbook/test/templates-1_6.gold @@ -0,0 +1,257 @@ + + +
+ Template 1.6 +
+ <link linkend="template_1_6.templates">Templates</link> + + nullary_arg + + + foo baz + + + foo baz + + + This is a complete paragraph. kalamazoo kalamazoo kalamazoo kalamazoo kalamazoo + kalamazoo kalamazoo kalamazoo kalamazoo.... blah blah blah...... + + + baz + + + This is a complete paragraph. madagascar madagascar madagascar madagascar madagascar + madagascar madagascar madagascar madagascar.... blah blah blah...... + + + zoom peanut zoom + + + exactly xanadu + + + wx + + + wxyz wxyz trail + +int main() +{ + std::cout << "Hello, World" << std::endl; +} + + + x2 + + + α2 + + + x2 + + + got a banana? + + + .0 00 + + + [fool] + +
+
+ <link linkend="template_1_6.empty_templates">Empty Templates</link> +
+
+ <link linkend="template_1_6.nested_templates">Nested Templates</link> + + Pre + + + Start block template. + + + Start block template. + + + Hello! + + + End block template. + + + End block template. + + + Post + + + Pre + + + Start block template. + + + Start phrase template. Hello! End phrase template. + + + End block template. + + + Post + + + Pre + + + Start phrase template. + + + Start block template. + + + Hello! + + + End block template. + + + End phrase template. + + + Post + + + Pre Start phrase template. Start phrase template. Hello! End phrase template. + End phrase template. Post + +
+
+ <link linkend="template_1_6.block_markup">Block Markup</link> + + + + a + + + + + b + + + + +int main() {} + + Paragraphs 1 + + + Paragraphs 2 + + + + + + + + a + + + + + b + + + + + + + + + +int main() {} + + + + Paragraphs 1 + + + Paragraphs 2 + + + +
+
+ <link linkend="template_1_6.static_scoping">Static Scoping</link> + + static scoping + + + [a] + + + new + + + foo foo + +
+
+ <link linkend="template_1_6.template_arguments">Template Arguments</link> + + {1-2} {1-2} {1-2 3 4} {1 2-3 4} {1 2 3-4} {1..2-3} {1..2-3} + + + { {1 2-3}-4} { {1 2-3}-4} { {1-2 3}-4} + + + {[1-2] 3} {[1-2] 3} {[1-2} + + + {1-2-3} {1-2-3} + +
+
+ <link linkend="template_1_6.block_and_phrase_templates">Block and phrase + templates</link> + + Some text + + + A <emphasis>paragraph</emphasis>. + + + Some *text* A paragraph. + + + Things + +
+
+ <link linkend="template_1_6.template_body">Skipping the template body + correctly</link> + + Argument + + + +code + + + + + + code + + + +
+
+ <link linkend="template_1_6.escaped_templates">Escaped templates</link> + + Not real boostbook More fake boostbook + +
+
diff --git a/src/boost/tools/quickbook/test/templates-1_6.gold-html b/src/boost/tools/quickbook/test/templates-1_6.gold-html new file mode 100644 index 000000000..77d55d0a0 --- /dev/null +++ b/src/boost/tools/quickbook/test/templates-1_6.gold-html @@ -0,0 +1,332 @@ + + + + +

+ Template 1.6 +

+ +
+

+ Templates +

+
+

+ nullary_arg +

+

+ foo baz +

+

+ foo baz +

+

+ This is a complete paragraph. kalamazoo kalamazoo kalamazoo kalamazoo kalamazoo + kalamazoo kalamazoo kalamazoo kalamazoo.... blah blah blah...... +

+

+ baz +

+

+ This is a complete paragraph. madagascar madagascar madagascar madagascar + madagascar madagascar madagascar madagascar madagascar.... blah blah blah...... +

+

+ zoom peanut zoom +

+

+ exactly xanadu +

+

+ wx +

+

+ wxyz wxyz trail +

+
int main()
+{
+    std::cout << "Hello, World" << std::endl;
+}
+
+

+ x2 +

+

+ α2 +

+

+ x2 +

+

+ got a banana? +

+

+ .0 00 +

+

+ [fool] +

+
+
+
+

+ Empty Templates +

+
+
+
+
+

+ Nested Templates +

+
+

+ Pre +

+

+ Start block template. +

+

+ Start block template. +

+

+ Hello! +

+

+ End block template. +

+

+ End block template. +

+

+ Post +

+

+ Pre +

+

+ Start block template. +

+

+ Start phrase template. Hello! End phrase template. +

+

+ End block template. +

+

+ Post +

+

+ Pre +

+

+ Start phrase template. +

+

+ Start block template. +

+

+ Hello! +

+

+ End block template. +

+

+ End phrase template. +

+

+ Post +

+

+ Pre Start phrase template. Start phrase template. Hello! End phrase template. + End phrase template. Post +

+
+
+
+

+ Block Markup +

+
+
    +
  • +
    + a +
    +
  • +
  • +
    + b +
    +
  • +
+

+

+
int main() {}
+

+ Paragraphs 1 +

+

+ Paragraphs 2 +

+
    +
  • +
    +
      +
    • +
      + a +
      +
    • +
    • +
      + b +
      +
    • +
    +
    +
  • +
  • +

    +

    +
  • +
  • +
    int main() {}
    +
  • +
  • +
    + Paragraphs 1 +
    +
    + Paragraphs 2 +
    +
  • +
+
+
+
+

+ Static Scoping +

+
+

+ static scoping +

+

+ [a] +

+

+ new +

+

+ foo foo +

+
+
+
+

+ Template Arguments +

+
+

+ {1-2} {1-2} {1-2 3 4} {1 2-3 4} {1 2 3-4} {1..2-3} {1..2-3} +

+

+ { {1 2-3}-4} { {1 2-3}-4} { {1-2 3}-4} +

+

+ {[1-2] 3} {[1-2] 3} {[1-2} +

+

+ {1-2-3} {1-2-3} +

+
+
+
+

+ Block and phrase templates +

+
+

+ Some text +

+

+ A <emphasis>paragraph</emphasis>. +

+

+ Some *text* A paragraph. +

+

+

+ Things +

+

+
+
+
+

+ Skipping the template body correctly +

+
+

+ Argument +

+
    +
  1. +
    code
    +
  2. +
+
    +
  1. +
    + code +
    +
  2. +
+
+
+
+

+ Escaped templates +

+
+

+ Not real boostbook More fake boostbook +

+
+
+ + diff --git a/src/boost/tools/quickbook/test/templates-1_6.quickbook b/src/boost/tools/quickbook/test/templates-1_6.quickbook new file mode 100644 index 000000000..627bd7fd8 --- /dev/null +++ b/src/boost/tools/quickbook/test/templates-1_6.quickbook @@ -0,0 +1,313 @@ +[article Template 1.6 + [quickbook 1.6] +] + +[section Templates] + +[/-------------------------------- nullary arg ] + +[template foo0 nullary_arg] + +[foo0] + +[/-------------------------------- unary arg, phrase syle ] + +[template foo1[bar] foo [bar]] + +[foo1 baz] + +[/-------------------------------- unary arg, block syle ] + +[template foo2[bar] +foo [bar] +] + +[foo2 baz] + +[template foo3[bar] +This is a complete paragraph. [bar] [bar] [bar] [bar] [bar] +[bar] [bar] [bar] [bar].... blah blah blah...... +] + +[foo3 kalamazoo] + +[/-------------------------------- unary arg, using punctuation ] + +[template ![bar] ''''''[bar]''''''] + +[!baz] + +[/-------------------------------- recursive templates ] + +[template foo4[bar] +[foo3 [bar]] +] + +[foo3 madagascar] + +[template foo5[x] zoom [x]] +[template foo6[x] [x] zoom] + +[foo6[foo5 peanut]] + +[template kinda_weird[x y] [x] [y]] + +[kinda_weird exactly..xanadu] + + +[/-------------------------------- space delimitted args ] + +[template simple1[a b] [a][b]] + +[simple1 w x] + +[template simple2[a b c d] [a][b][c][d]] + +[simple2 w x y z][simple2 w x y z trail] + +[/-------------------------------- John's templates ] + +[template code[x] + int main() + { + std::cout << ``[x]`` << std::endl; + } +] + +[code "Hello\, World"] + +[template alpha '''α'''] +[template pow[a b] [a]''''''[b]'''''' ] +[template super[text]''''''[text]'''''' ] + +[pow x 2] + +[pow [alpha] 2] + +x[super 2] + +[/-------------------------------- Some more ] + +[template banana got a banana?] +[template plantation[bananarama] [bananarama]] + +[plantation [banana]] + +[/-------------------------------- Not a bug (there was a syntax error here) ] + +[template join1[a b] [b][a]] +[template join2[a b] [a][b]] +[template test[x] [join1 [join2 0 [x]]...0]] +[test 0] + +[/-------------------------------- Mismatched template ] + +[template foo 1] +[fool] + +[template blah 10] + +[endsect] + +[section Empty Templates] + +[template empty1] +[template empty2 ] +[template empty3 [/comment]] +[template empty4 [/comment] + +] +[template empty5 +] +[template empty6 + +] +[template empty7 +[/comment] +] +[template empty8 + +[/comment] +] +[template empty_arg1[x]] +[template empty_arg2[x y]] + +[empty1] +[empty2] +[empty3] +[empty4] +[empty5] +[empty6] +[empty7] +[empty8] +[empty_arg1 1] +[empty_arg2 1 2] + +[endsect] + +[/----------------------------------- Nested templates ] + +[section Nested Templates] + +[template block_foo[content] + +Start block template. + +[content] + +End block template. +] + +[template phrase_foo[content] Start phrase template. [content] End phrase template.] + +Pre [block_foo [block_foo Hello!]] Post + +Pre [block_foo [phrase_foo Hello!]] Post + +Pre [phrase_foo [block_foo Hello!]] Post + +Pre [phrase_foo [phrase_foo Hello!]] Post + +[endsect] + +[/----------------------------------- Block Markup ] + +[section Block Markup] + +[template list +* a +* b] + +[template horizontal +----] + +[template codeblock + int main() {}] + +[template paragraphs +Paragraphs 1 + +Paragraphs 2 +] + +[list][horizontal][codeblock][paragraphs] + +* [list] +* [horizontal] +* [codeblock] +* [paragraphs] + +[endsect] + +[/----------------------------------- 1.5+ use static scoping ] + +[section Static Scoping] + +[template x static scoping] +[template static_test1[] [x]] +[template static_test2[x] [static_test1]] +[static_test2 dynamic scoping] + +[/ This should be '[a]' because [a] isn't matched. ] +[template test1[] [a]] +[template test2[a] [test1]] +[test2 1] + +[/ In 1.5 template arguments are scoped at the point they are defined] + +[template y new] +[template static_test3[a y] [a]] +[static_test3 [y] old] + +[/ From https://svn.boost.org/trac/boost/ticket/2034 ] + +[template same[x] [x]] +[template echo[a b] [a] [b]] +[template echo_twice[x] [echo [same [x]]..[same [x]]]] +[echo_twice foo] + +[endsect] + +[/----------------------------------- 1.5+ template arguments ] + +[section Template Arguments] + +[template binary[x y] {[x]-[y]}] +[binary 1..2] [/ {1-2} ] +[binary 1 2] [/ {1-2} ] +[binary 1..2 3 4] [/ {1-2 3 4} ] +[binary 1 2..3 4] [/ {1 2-3 4} ] +[binary 1 2 3..4] [/ {1 2 3-4} ] +[binary 1.\.2..3] [/ {1..2-3} ] +[binary 1.\.2 3] [/ {1..2-3} ] + +[binary [binary 1 2..3]..4] [/ { {1 2-3}-4} ] +[binary [binary 1 2..3] 4] [/ { {1 2-3}-4} ] +[binary [binary 1 2 3]..4] [/ { {1-2 3}-4} ] + +[binary \[1 2\] 3] [/ {[1-2] 3} ] +[binary \[1..2\] 3] [/ {[1-2] 3} ] +[binary \[1 2] [/ {(1-2} ] + +[template ternary[x y z] {[x]-[y]-[z]}] +[ternary 1..2..3] [/ {1-2-3} ] +[ternary 1 2 3] [/ {1-2-3} ] + +[endsect] + +[/----------------------------------- Block and phrases ] + +[section Block and phrase templates] + +[template phrase_template[] Some *text*] +[template block_template[] + +A paragraph. +] + +[phrase_template] +[block_template] +[`phrase_template] +[`block_template] + +[/ Trailing newline shouldn't be included] + +[template named_index[type title] +''''''[title]'''''' +] + +[named_index things Things] + +[endsect] + +[/-------------------------------- Skipping template body ] + +[section:template_body Skipping the template body correctly] + +[template args1[x] [`x]] +[template args2[] +[ordered_list [``code``]] +] +[/ Due to a bug in the template parser need to stop the parser + thinking that the code is an escaped template. ] +[template args3[] +[ordered_list [\ `code`]] +] + +[args1 Argument] +[args2] +[args3] + +[endsect] + +[/----------------------------------- Escaped templates ] + +[section Escaped templates] + +[template raw_markup Not real boostbook] +[template escaped1 [x] [`x]] + +[`raw_markup] +[escaped1 More fake boostbook] + +[endsect] diff --git a/src/boost/tools/quickbook/test/templates-1_7-fail1.quickbook b/src/boost/tools/quickbook/test/templates-1_7-fail1.quickbook new file mode 100644 index 000000000..0618bebb9 --- /dev/null +++ b/src/boost/tools/quickbook/test/templates-1_7-fail1.quickbook @@ -0,0 +1,12 @@ +[article Template 1.7 fail +[quickbook 1.7] +] + +[/ This should fail because it's a phrase template containing a paragraph + separator. ] + +[template fail[] Phrase content. + +Paragraph content.] + +[fail] diff --git a/src/boost/tools/quickbook/test/templates-1_7-fail2.quickbook b/src/boost/tools/quickbook/test/templates-1_7-fail2.quickbook new file mode 100644 index 000000000..548884b16 --- /dev/null +++ b/src/boost/tools/quickbook/test/templates-1_7-fail2.quickbook @@ -0,0 +1,11 @@ +[article Template 1.7 fail +[quickbook 1.7] +] + +[/ This should fail because it's a block template called from an attribute ] + +[template fail[] + +Block template.] + +[link this-should-[fail]] diff --git a/src/boost/tools/quickbook/test/templates-1_7.gold b/src/boost/tools/quickbook/test/templates-1_7.gold new file mode 100644 index 000000000..c7d4c64e0 --- /dev/null +++ b/src/boost/tools/quickbook/test/templates-1_7.gold @@ -0,0 +1,302 @@ + + +
+ Template 1.7 +
+ <link linkend="template_1_7.templates">Templates</link> + + nullary_arg + + + foo baz + + + foo baz + + + This is a complete paragraph. kalamazoo kalamazoo kalamazoo kalamazoo kalamazoo + kalamazoo kalamazoo kalamazoo kalamazoo.... blah blah blah...... + + + baz + + + This is a complete paragraph. madagascar madagascar madagascar madagascar madagascar + madagascar madagascar madagascar madagascar.... blah blah blah...... + + + zoom peanut zoom + + + exactly xanadu + + + wx + + + wxyz wxyz trail + +int main() +{ + std::cout << "Hello, World" << std::endl; +} + + + x2 + + + α2 + + + x2 + + + got a banana? + + + .0 00 + + + [fool] + +
+
+ <link linkend="template_1_7.empty_templates">Empty Templates</link> +
+
+ <link linkend="template_1_7.nested_templates">Nested Templates</link> + + Pre + + + Start block template. + + + Start block template. + + + Hello! + + + End block template. + + + End block template. + + + Post + + + Pre + + + Start block template. + + + Start phrase template. Hello! End phrase template. + + + End block template. + + + Post + + + Pre Start phrase template. + + + Start block template. + + + Hello! + + + End block template. + + + End phrase template. Post + + + Pre Start phrase template. Start phrase template. Hello! End phrase template. + End phrase template. Post + +
+
+ <link linkend="template_1_7.block_markup">Block Markup</link> + + + + a + + + + + b + + + + +int main() {} + + Paragraphs 1 + + + Paragraphs 2 + + + + + + + + a + + + + + b + + + + + + + + + +int main() {} + + + + Paragraphs 1 + + + Paragraphs 2 + + + +
+
+ <link linkend="template_1_7.static_scoping">Static Scoping</link> + + static scoping + + + [a] + + + new + + + foo foo + +
+
+ <link linkend="template_1_7.template_arguments">Template Arguments</link> + + {1-2} {1-2} {1-2 3 4} {1 2-3 4} {1 2 3-4} {1..2-3} {1..2-3} + + + { {1 2-3}-4} { {1 2-3}-4} { {1-2 3}-4} + + + {[1-2] 3} {[1-2] 3} {[1-2} + + + {1-2-3} {1-2-3} + +
+
+ <link linkend="template_1_7.block_and_phrase_templates">Block and phrase + templates</link> + + Some text + + + A <emphasis>paragraph</emphasis>. + + + Some *text* A paragraph. + + + Things + + + + + + + + + + + + + + + Text2 afterwards. Text3 before. + + + + + + + + + Text4 before. + + + + + + + + + Text4 afterwards. + + + + + + + + + * Not a list. + + + + + + + + + * Not a list. + +
+
+ <link linkend="template_1_7.template_body">Skipping the template body + correctly</link> + + Argument + + + +code + + + + + + code + + + +
+
+ <link linkend="template_1_7.escaped_templates">Escaped templates</link> + + Not real boostbook More fake boostbook + +
+
diff --git a/src/boost/tools/quickbook/test/templates-1_7.gold-html b/src/boost/tools/quickbook/test/templates-1_7.gold-html new file mode 100644 index 000000000..b79546dd9 --- /dev/null +++ b/src/boost/tools/quickbook/test/templates-1_7.gold-html @@ -0,0 +1,377 @@ + + + + +

+ Template 1.7 +

+ +
+

+ Templates +

+
+

+ nullary_arg +

+

+ foo baz +

+

+ foo baz +

+

+ This is a complete paragraph. kalamazoo kalamazoo kalamazoo kalamazoo kalamazoo + kalamazoo kalamazoo kalamazoo kalamazoo.... blah blah blah...... +

+

+ baz +

+

+ This is a complete paragraph. madagascar madagascar madagascar madagascar + madagascar madagascar madagascar madagascar madagascar.... blah blah blah...... +

+

+ zoom peanut zoom +

+

+ exactly xanadu +

+

+ wx +

+

+ wxyz wxyz trail +

+
int main()
+{
+    std::cout << "Hello, World" << std::endl;
+}
+
+

+ x2 +

+

+ α2 +

+

+ x2 +

+

+ got a banana? +

+

+ .0 00 +

+

+ [fool] +

+
+
+
+

+ Empty Templates +

+
+
+
+
+

+ Nested Templates +

+
+

+ Pre +

+

+ Start block template. +

+

+ Start block template. +

+

+ Hello! +

+

+ End block template. +

+

+ End block template. +

+

+ Post +

+

+ Pre +

+

+ Start block template. +

+

+ Start phrase template. Hello! End phrase template. +

+

+ End block template. +

+

+ Post +

+

+ Pre Start phrase template. +

+

+ Start block template. +

+

+ Hello! +

+

+ End block template. +

+

+ End phrase template. Post +

+

+ Pre Start phrase template. Start phrase template. Hello! End phrase template. + End phrase template. Post +

+
+
+
+

+ Block Markup +

+
+
    +
  • +
    + a +
    +
  • +
  • +
    + b +
    +
  • +
+

+

+
int main() {}
+

+ Paragraphs 1 +

+

+ Paragraphs 2 +

+
    +
  • +
    +
      +
    • +
      + a +
      +
    • +
    • +
      + b +
      +
    • +
    +
    +
  • +
  • +

    +

    +
  • +
  • +
    int main() {}
    +
  • +
  • +
    + Paragraphs 1 +
    +
    + Paragraphs 2 +
    +
  • +
+
+
+
+

+ Static Scoping +

+
+

+ static scoping +

+

+ [a] +

+

+ new +

+

+ foo foo +

+
+
+
+

+ Template Arguments +

+
+

+ {1-2} {1-2} {1-2 3 4} {1 2-3 4} {1 2 3-4} {1..2-3} {1..2-3} +

+

+ { {1 2-3}-4} { {1 2-3}-4} { {1-2 3}-4} +

+

+ {[1-2] 3} {[1-2] 3} {[1-2} +

+

+ {1-2-3} {1-2-3} +

+
+
+
+

+ Block and phrase templates +

+
+

+ Some text +

+

+ A <emphasis>paragraph</emphasis>. +

+

+ Some *text* A paragraph. +

+

+

+ Things +

+

+
+ + + +
+
+
+ + + +
+
+

+ Text2 afterwards. Text3 before. +

+
+ + + +
+
+

+ Text4 before. +

+
+ + + +
+
+

+ Text4 afterwards. +

+
+ + + +
+
+

+ * Not a list. +

+
+ + + +
+
+

+ * Not a list. +

+
+
+
+

+ Skipping the template body correctly +

+
+

+ Argument +

+
    +
  1. +
    code
    +
  2. +
+
    +
  1. +
    + code +
    +
  2. +
+
+
+
+

+ Escaped templates +

+
+

+ Not real boostbook More fake boostbook +

+
+
+ + diff --git a/src/boost/tools/quickbook/test/templates-1_7.quickbook b/src/boost/tools/quickbook/test/templates-1_7.quickbook new file mode 100644 index 000000000..bf1feaca2 --- /dev/null +++ b/src/boost/tools/quickbook/test/templates-1_7.quickbook @@ -0,0 +1,322 @@ +[article Template 1.7 + [quickbook 1.7] +] + +[section Templates] + +[/-------------------------------- nullary arg ] + +[template foo0 nullary_arg] + +[foo0] + +[/-------------------------------- unary arg, phrase syle ] + +[template foo1[bar] foo [bar]] + +[foo1 baz] + +[/-------------------------------- unary arg, block syle ] + +[template foo2[bar] +foo [bar] +] + +[foo2 baz] + +[template foo3[bar] +This is a complete paragraph. [bar] [bar] [bar] [bar] [bar] +[bar] [bar] [bar] [bar].... blah blah blah...... +] + +[foo3 kalamazoo] + +[/-------------------------------- unary arg, using punctuation ] + +[template |[bar] ''''''[bar]''''''] + +[|baz] + +[/-------------------------------- recursive templates ] + +[template foo4[bar] +[foo3 [bar]] +] + +[foo3 madagascar] + +[template foo5[x] zoom [x]] +[template foo6[x] [x] zoom] + +[foo6[foo5 peanut]] + +[template kinda_weird[x y] [x] [y]] + +[kinda_weird exactly..xanadu] + + +[/-------------------------------- space delimitted args ] + +[template simple1[a b] [a][b]] + +[simple1 w x] + +[template simple2[a b c d] [a][b][c][d]] + +[simple2 w x y z][simple2 w x y z trail] + +[/-------------------------------- John's templates ] + +[template code[x] + int main() + { + std::cout << ``[x]`` << std::endl; + } +] + +[code "Hello\, World"] + +[template alpha '''α'''] +[template pow[a b] [a]''''''[b]'''''' ] +[template super[text]''''''[text]'''''' ] + +[pow x 2] + +[pow [alpha] 2] + +x[super 2] + +[/-------------------------------- Some more ] + +[template banana got a banana?] +[template plantation[bananarama] [bananarama]] + +[plantation [banana]] + +[/-------------------------------- Not a bug (there was a syntax error here) ] + +[template join1[a b] [b][a]] +[template join2[a b] [a][b]] +[template test[x] [join1 [join2 0 [x]]...0]] +[test 0] + +[/-------------------------------- Mismatched template ] + +[template foo 1] +[fool] + +[template blah 10] + +[endsect] + +[section Empty Templates] + +[template empty1] +[template empty2 ] +[template empty3 [/comment]] +[template empty4 [/comment] + +] +[template empty5 +] +[template empty6 + +] +[template empty7 +[/comment] +] +[template empty8 + +[/comment] +] +[template empty_arg1[x]] +[template empty_arg2[x y]] + +[empty1] +[empty2] +[empty3] +[empty4] +[empty5] +[empty6] +[empty7] +[empty8] +[empty_arg1 1] +[empty_arg2 1 2] + +[endsect] + +[/----------------------------------- Nested templates ] + +[section Nested Templates] + +[template block_foo[content] + +Start block template. + +[content] + +End block template. +] + +[template phrase_foo[content] Start phrase template. [content] End phrase template.] + +Pre [block_foo [block_foo Hello!]] Post + +Pre [block_foo [phrase_foo Hello!]] Post + +Pre [phrase_foo [block_foo Hello!]] Post + +Pre [phrase_foo [phrase_foo Hello!]] Post + +[endsect] + +[/----------------------------------- Block Markup ] + +[section Block Markup] + +[template list +* a +* b] + +[template horizontal +----] + +[template codeblock + int main() {}] + +[template paragraphs +Paragraphs 1 + +Paragraphs 2 +] + +[list][horizontal][codeblock][paragraphs] + +* [list] +* [horizontal] +* [codeblock] +* [paragraphs] + +[endsect] + +[/----------------------------------- 1.5+ use static scoping ] + +[section Static Scoping] + +[template x static scoping] +[template static_test1[] [x]] +[template static_test2[x] [static_test1]] +[static_test2 dynamic scoping] + +[/ This should be '[a]' because [a] isn't matched. ] +[template test1[] [a]] +[template test2[a] [test1]] +[test2 1] + +[/ In 1.5 template arguments are scoped at the point they are defined] + +[template y new] +[template static_test3[a y] [a]] +[static_test3 [y] old] + +[/ From https://svn.boost.org/trac/boost/ticket/2034 ] + +[template same[x] [x]] +[template echo[a b] [a] [b]] +[template echo_twice[x] [echo [same [x]]..[same [x]]]] +[echo_twice foo] + +[endsect] + +[/----------------------------------- 1.5+ template arguments ] + +[section Template Arguments] + +[template binary[x y] {[x]-[y]}] +[binary 1..2] [/ {1-2} ] +[binary 1 2] [/ {1-2} ] +[binary 1..2 3 4] [/ {1-2 3 4} ] +[binary 1 2..3 4] [/ {1 2-3 4} ] +[binary 1 2 3..4] [/ {1 2 3-4} ] +[binary 1.\.2..3] [/ {1..2-3} ] +[binary 1.\.2 3] [/ {1..2-3} ] + +[binary [binary 1 2..3]..4] [/ { {1 2-3}-4} ] +[binary [binary 1 2..3] 4] [/ { {1 2-3}-4} ] +[binary [binary 1 2 3]..4] [/ { {1-2 3}-4} ] + +[binary \[1 2\] 3] [/ {[1-2] 3} ] +[binary \[1..2\] 3] [/ {[1-2] 3} ] +[binary \[1 2] [/ {(1-2} ] + +[template ternary[x y z] {[x]-[y]-[z]}] +[ternary 1..2..3] [/ {1-2-3} ] +[ternary 1 2 3] [/ {1-2-3} ] + +[endsect] + +[/----------------------------------- Block and phrases ] + +[section Block and phrase templates] + +[template phrase_template[] Some *text*] +[template block_template[] + +A paragraph. +] + +[phrase_template] +[block_template] +[`phrase_template] +[`block_template] + +[/ Trailing newline shouldn't be included] + +[template named_index[type title] +''''''[title]'''''' +] + +[named_index things Things] + +[/ Blocks in phrase templates ] + +[template phrase_block1[] [table]] +[template phrase_block2[] [table] Text2 afterwards.] +[template phrase_block3[] Text3 before. [table]] +[template phrase_block4[] Text4 before. [table] Text4 afterwards.] +[template phrase_block5[] [table] * Not a list.] +[template phrase_block6[] [table] +* Not a list.] + +[phrase_block1][phrase_block2][phrase_block3][phrase_block4] +[phrase_block5][phrase_block6] + +[endsect] + +[/-------------------------------- Skipping template body ] + +[section:template_body Skipping the template body correctly] + +[template args1[x] [`x]] +[template args2[] [ordered_list [``code``]]] +[/ Due to a bug in the template parser need to stop the parser + thinking that the code is an escaped template. ] +[template args3[] [ordered_list [\ `code`]]] + +[args1 Argument] +[args2] +[args3] + +[endsect] + +[/----------------------------------- Escaped templates ] + +[section Escaped templates] + +[template raw_markup Not real boostbook] +[template escaped1 [x] [`x]] + +[`raw_markup] +[escaped1 More fake boostbook] + +[endsect] diff --git a/src/boost/tools/quickbook/test/unicode_escape-1_5.gold b/src/boost/tools/quickbook/test/unicode_escape-1_5.gold new file mode 100644 index 000000000..c2a8859eb --- /dev/null +++ b/src/boost/tools/quickbook/test/unicode_escape-1_5.gold @@ -0,0 +1,156 @@ + + +
+ UTF-8 test + + Iñtërnâtiônàlizætiøn + + + + + Αα Alpha + + + + + Ββ Beta + + + + + Γγ Gamma + + + + + Δδ Delta + + + + + Εε Epsilon + + + + + Ζζ Zeta + + + + + Ηη Eta + + + + + Θθ Theta + + + + + Ιι Iota + + + + + Κκ Kappa + + + + + Λλ Lambda + + + + + Μμ Mu + + + + + Νν Nu + + + + + Ξξ Xi + + + + + Οο Omicron + + + + + Ππ Pi + + + + + Ρρ Rho + + + + + Σσς Sigma + + + + + Ττ Tau + + + + + Υυ Upsilon + + + + + Φφ Phi + + + + + Χχ Chi + + + + + Ψψ Psi + + + + + Ωω Omega + + + + + In the unlikely event that you've got a Mahjong font: + + + + + 🀀 East Wind + + + + + 🀁 South Wind + + + + + 🀂 West Wind + + + + + 🀃 North Wind + + + +
diff --git a/src/boost/tools/quickbook/test/unicode_escape-1_5.gold-html b/src/boost/tools/quickbook/test/unicode_escape-1_5.gold-html new file mode 100644 index 000000000..ab8409f10 --- /dev/null +++ b/src/boost/tools/quickbook/test/unicode_escape-1_5.gold-html @@ -0,0 +1,159 @@ + + + + +

+ UTF-8 test +

+

+ Iñtërnâtiônàlizætiøn +

+
    +
  • +
    + Αα Alpha +
    +
  • +
  • +
    + Ββ Beta +
    +
  • +
  • +
    + Γγ Gamma +
    +
  • +
  • +
    + Δδ Delta +
    +
  • +
  • +
    + Εε Epsilon +
    +
  • +
  • +
    + Ζζ Zeta +
    +
  • +
  • +
    + Ηη Eta +
    +
  • +
  • +
    + Θθ Theta +
    +
  • +
  • +
    + Ιι Iota +
    +
  • +
  • +
    + Κκ Kappa +
    +
  • +
  • +
    + Λλ Lambda +
    +
  • +
  • +
    + Μμ Mu +
    +
  • +
  • +
    + Νν Nu +
    +
  • +
  • +
    + Ξξ Xi +
    +
  • +
  • +
    + Οο Omicron +
    +
  • +
  • +
    + Ππ Pi +
    +
  • +
  • +
    + Ρρ Rho +
    +
  • +
  • +
    + Σσς Sigma +
    +
  • +
  • +
    + Ττ Tau +
    +
  • +
  • +
    + Υυ Upsilon +
    +
  • +
  • +
    + Φφ Phi +
    +
  • +
  • +
    + Χχ Chi +
    +
  • +
  • +
    + Ψψ Psi +
    +
  • +
  • +
    + Ωω Omega +
    +
  • +
+

+ In the unlikely event that you've got a Mahjong font: +

+
    +
  • +
    + 🀀 East Wind +
    +
  • +
  • +
    + 🀁 South Wind +
    +
  • +
  • +
    + 🀂 West Wind +
    +
  • +
  • +
    + 🀃 North Wind +
    +
  • +
+ + diff --git a/src/boost/tools/quickbook/test/unicode_escape-1_5.quickbook b/src/boost/tools/quickbook/test/unicode_escape-1_5.quickbook new file mode 100644 index 000000000..becdef6b8 --- /dev/null +++ b/src/boost/tools/quickbook/test/unicode_escape-1_5.quickbook @@ -0,0 +1,37 @@ +[article UTF-8 test + [quickbook 1.5] +] + +[heading I\u00F1t\u00EBrn\u00E2ti\u00F4n\u00E0liz\u00E6ti\u00F8n] + +* \u0391\u03B1 Alpha +* \u0392\u03B2 Beta +* \u0393\u03B3 Gamma +* \u0394\u03B4 Delta +* \u0395\u03B5 Epsilon +* \u0396\u03B6 Zeta +* \u0397\u03B7 Eta +* \u0398\u03B8 Theta +* \u0399\u03B9 Iota +* \u039A\u03BA Kappa +* \u039B\u03BB Lambda +* \u039C\u03BC Mu +* \u039D\u03BD Nu +* \u039E\u03BE Xi +* \u039F\u03BF Omicron +* \u03A0\u03C0 Pi +* \u03A1\u03C1 Rho +* \u03A3\u03C3\u03C2 Sigma +* \u03A4\u03C4 Tau +* \u03A5\u03C5 Upsilon +* \u03A6\u03C6 Phi +* \u03A7\u03C7 Chi +* \u03A8\u03C8 Psi +* \u03A9\u03C9 Omega + +In the unlikely event that you've got a Mahjong font: + +* \U0001F000 East Wind +* \U0001F001 South Wind +* \U0001F002 West Wind +* \U0001F003 North Wind \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/unit/Jamfile.v2 b/src/boost/tools/quickbook/test/unit/Jamfile.v2 new file mode 100644 index 000000000..43271b48c --- /dev/null +++ b/src/boost/tools/quickbook/test/unit/Jamfile.v2 @@ -0,0 +1,31 @@ +# +# Copyright (c) 2011 Daniel James +# +# Distributed under the Boost Software License, Version 1.0. (See +# accompanying file LICENSE_1_0.txt or copy at +# http://www.boost.org/LICENSE_1_0.txt) +# + +import testing ; + +project quickbook/test/unit-tests + : requirements + ../../src + all + /boost//filesystem + gcc:-g0 + darwin:-g0 + msvc:/wd4709 + ; + +run values_test.cpp ../../src/values.cpp ../../src/files.cpp ; +run post_process_test.cpp ../../src/post_process.cpp ; +run source_map_test.cpp ../../src/files.cpp ; +run glob_test.cpp ../../src/glob.cpp ; +run utils_test.cpp ../../src/id_xml.cpp ../../src/utils.cpp ; +run cleanup_test.cpp ; +run path_test.cpp ../../src/path.cpp ../../src/native_text.cpp ../../src/utils.cpp ; + +# Copied from spirit +run symbols_tests.cpp ; +run symbols_find_null.cpp ; diff --git a/src/boost/tools/quickbook/test/unit/cleanup_test.cpp b/src/boost/tools/quickbook/test/unit/cleanup_test.cpp new file mode 100644 index 000000000..4952c991a --- /dev/null +++ b/src/boost/tools/quickbook/test/unit/cleanup_test.cpp @@ -0,0 +1,80 @@ + +/*============================================================================= + Copyright (c) 2017 Daniel James + + Use, modification and distribution is subject to the Boost Software + License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at + http://www.boost.org/LICENSE_1_0.txt) +=============================================================================*/ + +#include +#include +#include "cleanup.hpp" + +struct counted +{ + static int count; + static std::vector destroyed; + static void reset() + { + count = 0; + destroyed.clear(); + } + + int value; + + counted(int v) : value(v) + { + BOOST_TEST(value != -1); + ++count; + } + + counted(counted const& x) : value(x.value) + { + BOOST_TEST(value != -1); + ++count; + } + + ~counted() + { + BOOST_TEST(value != -1); + destroyed.push_back(value); + value = -1; + BOOST_TEST(count > 0); + --count; + } +}; + +int counted::count = 0; +std::vector counted::destroyed; + +int main() +{ + counted::reset(); + { + quickbook::cleanup c; + } + BOOST_TEST(counted::count == 0); + + counted::reset(); + { + quickbook::cleanup c; + counted& v1 = c.add(new counted(1)); + counted& v2 = c.add(new counted(2)); + BOOST_TEST(v1.value == 1); + BOOST_TEST(v2.value == 2); + } + BOOST_TEST(counted::count == 0); + BOOST_TEST(counted::destroyed.size() == 2); + BOOST_TEST(counted::destroyed[0] == 2); + BOOST_TEST(counted::destroyed[1] == 1); + + counted::reset(); + { + quickbook::cleanup c; + int& x = c.add(new int(10)); + BOOST_TEST(x == 10); + } + + return boost::report_errors(); +} diff --git a/src/boost/tools/quickbook/test/unit/glob_test.cpp b/src/boost/tools/quickbook/test/unit/glob_test.cpp new file mode 100644 index 000000000..27d2611b3 --- /dev/null +++ b/src/boost/tools/quickbook/test/unit/glob_test.cpp @@ -0,0 +1,163 @@ +/*============================================================================= + Copyright (c) 2013 Daniel James + + Use, modification and distribution is subject to the Boost Software + License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at + http://www.boost.org/LICENSE_1_0.txt) +=============================================================================*/ + +#include +#include "glob.hpp" + +void glob_tests() +{ + BOOST_TEST(quickbook::glob("", "")); + + BOOST_TEST(!quickbook::glob("*", "")); + BOOST_TEST(quickbook::glob("*", "a")); + BOOST_TEST(quickbook::glob("*b", "b")); + BOOST_TEST(quickbook::glob("*b", "ab")); + BOOST_TEST(quickbook::glob("*b", "bab")); + BOOST_TEST(quickbook::glob("*b*", "b")); + BOOST_TEST(quickbook::glob("*b*", "ab")); + BOOST_TEST(quickbook::glob("*b*", "bc")); + BOOST_TEST(quickbook::glob("*b*", "abc")); + BOOST_TEST(!quickbook::glob("*b*", "")); + BOOST_TEST(!quickbook::glob("*b*", "a")); + BOOST_TEST(!quickbook::glob("*b*", "ac")); + + BOOST_TEST(quickbook::glob("hello.txt", "hello.txt")); + BOOST_TEST(!quickbook::glob("world.txt", "helloworld.txt")); + BOOST_TEST(quickbook::glob("*world.txt", "helloworld.txt")); + BOOST_TEST(!quickbook::glob("world.txt*", "helloworld.txt")); + BOOST_TEST(!quickbook::glob("hello", "helloworld.txt")); + BOOST_TEST(!quickbook::glob("*hello", "helloworld.txt")); + BOOST_TEST(quickbook::glob("hello*", "helloworld.txt")); + BOOST_TEST(quickbook::glob("*world*", "helloworld.txt")); + + BOOST_TEST(quickbook::glob("?", "a")); + BOOST_TEST(!quickbook::glob("?", "")); + BOOST_TEST(!quickbook::glob("?", "ab")); + BOOST_TEST(quickbook::glob("a?", "ab")); + BOOST_TEST(quickbook::glob("?b", "ab")); + BOOST_TEST(quickbook::glob("?bc", "abc")); + BOOST_TEST(quickbook::glob("a?c", "abc")); + BOOST_TEST(quickbook::glob("ab?", "abc")); + BOOST_TEST(!quickbook::glob("?bc", "aac")); + BOOST_TEST(!quickbook::glob("a?c", "bbc")); + BOOST_TEST(!quickbook::glob("ab?", "abcd")); + + BOOST_TEST(quickbook::glob("[a]", "a")); + BOOST_TEST(!quickbook::glob("[^a]", "a")); + BOOST_TEST(!quickbook::glob("[b]", "a")); + BOOST_TEST(quickbook::glob("[^b]", "a")); + BOOST_TEST(quickbook::glob("[a-z]", "a")); + BOOST_TEST(!quickbook::glob("[^a-z]", "a")); + BOOST_TEST(!quickbook::glob("[b-z]", "a")); + BOOST_TEST(quickbook::glob("[^b-z]", "a")); + BOOST_TEST(quickbook::glob("[-a]", "a")); + BOOST_TEST(quickbook::glob("[-a]", "-")); + BOOST_TEST(!quickbook::glob("[-a]", "b")); + BOOST_TEST(!quickbook::glob("[^-a]", "a")); + BOOST_TEST(!quickbook::glob("[^-a]", "-")); + BOOST_TEST(quickbook::glob("[^-a]", "b")); + BOOST_TEST(quickbook::glob("[a-]", "a")); + BOOST_TEST(quickbook::glob("[a-]", "-")); + BOOST_TEST(!quickbook::glob("[a-]", "b")); + BOOST_TEST(!quickbook::glob("[^a-]", "a")); + BOOST_TEST(!quickbook::glob("[^a-]", "-")); + BOOST_TEST(quickbook::glob("[^a-]", "b")); + BOOST_TEST(quickbook::glob("[a-ce-f]", "a")); + BOOST_TEST(!quickbook::glob("[a-ce-f]", "d")); + BOOST_TEST(quickbook::glob("[a-ce-f]", "f")); + BOOST_TEST(!quickbook::glob("[a-ce-f]", "g")); + BOOST_TEST(!quickbook::glob("[^a-ce-f]", "a")); + BOOST_TEST(quickbook::glob("[^a-ce-f]", "d")); + BOOST_TEST(!quickbook::glob("[^a-ce-f]", "f")); + BOOST_TEST(quickbook::glob("[^a-ce-f]", "g")); + BOOST_TEST(!quickbook::glob("[b]", "a")); + BOOST_TEST(quickbook::glob("[a]bc", "abc")); + BOOST_TEST(quickbook::glob("a[b]c", "abc")); + BOOST_TEST(quickbook::glob("ab[c]", "abc")); + BOOST_TEST(quickbook::glob("a[a-c]c", "abc")); + BOOST_TEST(quickbook::glob("*[b]*", "abc")); + BOOST_TEST(quickbook::glob("[\\]]", "]")); + BOOST_TEST(!quickbook::glob("[^\\]]", "]")); + + BOOST_TEST(quickbook::glob("b*ana", "banana")); + BOOST_TEST(quickbook::glob("1234*1234*1234", "123412341234")); + BOOST_TEST(!quickbook::glob("1234*1234*1234", "1234123341234")); + BOOST_TEST(quickbook::glob("1234*1234*1234", "123412312312341231231234")); + BOOST_TEST(!quickbook::glob("1234*1234*1234", "12341231231234123123123")); +} + +void invalid_glob_tests() +{ + // Note that glob only throws an exception when the pattern matches up to + // the point where the error occurs. + BOOST_TEST_THROWS(quickbook::glob("[", "a"), quickbook::glob_error); + BOOST_TEST_THROWS(quickbook::glob("[^", "a"), quickbook::glob_error); + BOOST_TEST_THROWS(quickbook::glob("[xyz", "a"), quickbook::glob_error); + BOOST_TEST_THROWS(quickbook::glob("[xyz\\", "a"), quickbook::glob_error); + BOOST_TEST_THROWS(quickbook::glob("[x\\y", "a"), quickbook::glob_error); + BOOST_TEST_THROWS(quickbook::glob("[a-", "a"), quickbook::glob_error); + BOOST_TEST_THROWS(quickbook::glob("[a-z", "a"), quickbook::glob_error); + BOOST_TEST_THROWS(quickbook::glob("[a-\\", "a"), quickbook::glob_error); + BOOST_TEST_THROWS(quickbook::glob("[a-\\a", "a"), quickbook::glob_error); + BOOST_TEST_THROWS(quickbook::glob("xyx[", "xyxa"), quickbook::glob_error); + BOOST_TEST_THROWS(quickbook::glob("]", "a"), quickbook::glob_error); + BOOST_TEST_THROWS(quickbook::glob("abc]", "abcd"), quickbook::glob_error); + BOOST_TEST_THROWS(quickbook::glob("]def", "a"), quickbook::glob_error); + BOOST_TEST_THROWS(quickbook::glob("[]", "a"), quickbook::glob_error); + BOOST_TEST_THROWS(quickbook::glob("[[]", "a"), quickbook::glob_error); + BOOST_TEST_THROWS(quickbook::glob("[]]", "a"), quickbook::glob_error); + BOOST_TEST_THROWS(quickbook::glob("**", "a"), quickbook::glob_error); + BOOST_TEST_THROWS(quickbook::glob("[/]", "a"), quickbook::glob_error); + BOOST_TEST_THROWS(quickbook::glob("[\\/]", "a"), quickbook::glob_error); + BOOST_TEST_THROWS(quickbook::glob("[ -/]", "a"), quickbook::glob_error); + BOOST_TEST_THROWS(quickbook::glob("[ -\\/]", "a"), quickbook::glob_error); + BOOST_TEST_THROWS(quickbook::glob("\\", "a"), quickbook::glob_error); + BOOST_TEST_THROWS(quickbook::glob("\\\\", "a"), quickbook::glob_error); +} + +void check_glob_tests() +{ + BOOST_TEST(!quickbook::check_glob("")); + BOOST_TEST(!quickbook::check_glob("file")); + BOOST_TEST(!quickbook::check_glob("file\\[\\]")); + BOOST_TEST(quickbook::check_glob("[x]")); + BOOST_TEST(quickbook::check_glob("abc[x]")); + BOOST_TEST(quickbook::check_glob("[x]abd")); + BOOST_TEST_THROWS(quickbook::check_glob("["), quickbook::glob_error); + BOOST_TEST_THROWS(quickbook::check_glob("[^"), quickbook::glob_error); + BOOST_TEST_THROWS(quickbook::check_glob("[xyz"), quickbook::glob_error); + BOOST_TEST_THROWS(quickbook::check_glob("[xyz\\"), quickbook::glob_error); + BOOST_TEST_THROWS(quickbook::check_glob("[x\\y"), quickbook::glob_error); + BOOST_TEST_THROWS(quickbook::check_glob("[a-"), quickbook::glob_error); + BOOST_TEST_THROWS(quickbook::check_glob("[a-z"), quickbook::glob_error); + BOOST_TEST_THROWS(quickbook::check_glob("[a-\\"), quickbook::glob_error); + BOOST_TEST_THROWS(quickbook::check_glob("[a-\\a"), quickbook::glob_error); + BOOST_TEST_THROWS(quickbook::check_glob("xyx["), quickbook::glob_error); + BOOST_TEST_THROWS(quickbook::check_glob("]"), quickbook::glob_error); + BOOST_TEST_THROWS(quickbook::check_glob("abc]"), quickbook::glob_error); + BOOST_TEST_THROWS(quickbook::check_glob("]def"), quickbook::glob_error); + BOOST_TEST_THROWS(quickbook::check_glob("[]"), quickbook::glob_error); + BOOST_TEST_THROWS(quickbook::check_glob("[[]"), quickbook::glob_error); + BOOST_TEST_THROWS(quickbook::check_glob("[]]"), quickbook::glob_error); + BOOST_TEST_THROWS(quickbook::check_glob("**"), quickbook::glob_error); + BOOST_TEST_THROWS(quickbook::check_glob("[/]"), quickbook::glob_error); + BOOST_TEST_THROWS(quickbook::check_glob("[\\/]"), quickbook::glob_error); + BOOST_TEST_THROWS(quickbook::check_glob("[ -/]"), quickbook::glob_error); + BOOST_TEST_THROWS(quickbook::check_glob("[ -\\/]"), quickbook::glob_error); + BOOST_TEST_THROWS(quickbook::check_glob("\\"), quickbook::glob_error); + BOOST_TEST_THROWS(quickbook::check_glob("\\\\"), quickbook::glob_error); +} + +int main() +{ + glob_tests(); + invalid_glob_tests(); + check_glob_tests(); + + return boost::report_errors(); +} diff --git a/src/boost/tools/quickbook/test/unit/path_test.cpp b/src/boost/tools/quickbook/test/unit/path_test.cpp new file mode 100644 index 000000000..734769ef6 --- /dev/null +++ b/src/boost/tools/quickbook/test/unit/path_test.cpp @@ -0,0 +1,189 @@ +/*============================================================================= + Copyright (c) 2015 Daniel James + + Use, modification and distribution is subject to the Boost Software + License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at + http://www.boost.org/LICENSE_1_0.txt) +=============================================================================*/ + +#include +#include +#include +#include "path.hpp" + +void file_path_to_url_tests() +{ + using boost::filesystem::path; + using quickbook::file_path_to_url; + + BOOST_TEST_EQ(std::string(), file_path_to_url(path())); + BOOST_TEST_EQ(std::string("."), file_path_to_url(path("."))); + BOOST_TEST_EQ(std::string("./"), file_path_to_url(path("./"))); + BOOST_TEST_EQ(std::string("a/b"), file_path_to_url(path("a/b"))); + BOOST_TEST_EQ(std::string("a/b/"), file_path_to_url(path("a/b/"))); + BOOST_TEST_EQ(std::string("./a/b"), file_path_to_url(path("./a/./././b"))); + BOOST_TEST_EQ(std::string("../a/b"), file_path_to_url(path("../a/b"))); + BOOST_TEST_EQ( + std::string("A%20B%2bC%2520"), file_path_to_url(path("A B+C%20"))); + BOOST_TEST_EQ(std::string("file:///"), file_path_to_url(path("/"))); + BOOST_TEST_EQ(std::string("file:///a/b"), file_path_to_url(path("/a/b"))); + BOOST_TEST_EQ(std::string("file:///a/b/"), file_path_to_url(path("/a/b/"))); + BOOST_TEST_EQ( + std::string("file://hello/a/b"), file_path_to_url(path("//hello/a/b"))); + +#if BOOST_OS_WINDOWS || BOOST_OS_CYGWIN + // Should this be file:///c:/x ? + BOOST_TEST_EQ( + std::string("file://?/a:/x"), file_path_to_url(path("\\\\?\\a:\\x"))); + BOOST_TEST_EQ(std::string("file:///a"), file_path_to_url(path("\\a"))); + BOOST_TEST_EQ(std::string("file:///c:/"), file_path_to_url(path("c:\\"))); + BOOST_TEST_EQ( + std::string("file:///c:/foo/bar"), + file_path_to_url(path("c:\\foo\\bar"))); + BOOST_TEST_EQ( + std::string("file://localhost/c:/foo/bar"), + file_path_to_url(path("\\\\localhost\\c:\\foo\\bar"))); + + // Really not sure what to do with these examples. + // Maybe an error? + BOOST_TEST_EQ(std::string("file:///c:"), file_path_to_url(path("c:"))); + BOOST_TEST_EQ( + std::string("file:///c:foo/bar"), file_path_to_url(path("c:foo\\bar"))); +#endif +} + +void dir_path_to_url_tests() +{ + using boost::filesystem::path; + using quickbook::dir_path_to_url; + + BOOST_TEST_EQ(std::string("./"), dir_path_to_url(path())); + BOOST_TEST_EQ(std::string("./"), dir_path_to_url(path("."))); + BOOST_TEST_EQ(std::string("./"), dir_path_to_url(path("./"))); + BOOST_TEST_EQ(std::string("a/b/"), dir_path_to_url(path("a/b"))); + BOOST_TEST_EQ(std::string("a/b/"), dir_path_to_url(path("a/b/"))); + BOOST_TEST_EQ(std::string("./a/b/"), dir_path_to_url(path("./a/./././b"))); + BOOST_TEST_EQ(std::string("../a/b/"), dir_path_to_url(path("../a/b"))); + BOOST_TEST_EQ( + std::string("A%20B%2bC%2520/"), dir_path_to_url(path("A B+C%20"))); + BOOST_TEST_EQ(std::string("file:///"), dir_path_to_url(path("/"))); + BOOST_TEST_EQ(std::string("file:///a/b/"), dir_path_to_url(path("/a/b"))); + BOOST_TEST_EQ(std::string("file:///a/b/"), dir_path_to_url(path("/a/b/"))); + BOOST_TEST_EQ( + std::string("file://hello/a/b/"), dir_path_to_url(path("//hello/a/b"))); + +#if BOOST_OS_WINDOWS || BOOST_OS_CYGWIN + // Should this be file:///c:/x/ ? + BOOST_TEST_EQ( + std::string("file://?/a:/x/"), dir_path_to_url(path("\\\\?\\a:\\x"))); + BOOST_TEST_EQ(std::string("file:///a/"), dir_path_to_url(path("\\a"))); + BOOST_TEST_EQ(std::string("file:///c:/"), dir_path_to_url(path("c:\\"))); + BOOST_TEST_EQ( + std::string("file:///c:/foo/bar/"), + dir_path_to_url(path("c:\\foo\\bar"))); + BOOST_TEST_EQ( + std::string("file://localhost/c:/foo/bar/"), + dir_path_to_url(path("\\\\localhost\\c:\\foo\\bar"))); + + // Really not sure what to do with these examples. + // Maybe an error? + BOOST_TEST_EQ(std::string("file:///c:"), dir_path_to_url(path("c:"))); + BOOST_TEST_EQ( + std::string("file:///c:foo/bar/"), dir_path_to_url(path("c:foo\\bar"))); +#endif +} + +void path_difference_tests() +{ + using boost::filesystem::current_path; + using boost::filesystem::path; + using quickbook::path_difference; + + BOOST_TEST(path(".") == path_difference(path(""), path(""))); + BOOST_TEST(path(".") == path_difference(path("a"), path("a"))); + BOOST_TEST(path(".") == path_difference(path("a/../b"), path("b"))); + BOOST_TEST(path(".") == path_difference(current_path(), current_path())); + BOOST_TEST(path("..") == path_difference(path("a"), path(""))); + BOOST_TEST( + path("..") == path_difference(current_path() / "a", current_path())); + BOOST_TEST(path("a") == path_difference(path(""), path("a"))); + BOOST_TEST( + path("a") == path_difference(current_path(), current_path() / "a")); + BOOST_TEST(path("b") == path_difference(path("a"), path("a/b"))); + BOOST_TEST( + path("b") == + path_difference(current_path() / "a", current_path() / "a" / "b")); + BOOST_TEST(path("../a/b") == path_difference(path("c"), path("a/b"))); + BOOST_TEST( + path("../a/b") == + path_difference(current_path() / "c", current_path() / "a" / "b")); + BOOST_TEST(path("..") == path_difference(path(""), path(".."))); + BOOST_TEST( + path("..") == + path_difference(current_path(), current_path().parent_path())); + BOOST_TEST(path("b") == path_difference(path("a/c/.."), path("a/b"))); + BOOST_TEST(path("b") == path_difference(path("b/c/../../a"), path("a/b"))); + BOOST_TEST( + path("b") == + path_difference(path("b/c/../../a"), path("d/f/../../a/b"))); + BOOST_TEST( + path("../../x/a/b") == + path_difference(path("b/c/../../a"), path("d/f/../../../x/a/b"))); + + // path_difference to a file, try to include the filename in the result, + // although not always possible. Maybe nonsense calls should be an error? + // + // Commented out cases are wrong because path_difference resolves the paths + // to the current working directory. In use this doesn't matter as it's + // always called with the full path, but it'd be nice to get this right. + // Or maybe just add the pre-condition to path_difference? + std::cout << path_difference(path(""), path(""), true) << std::endl; + // BOOST_TEST(path(".") == path_difference(path(""), path(""), true)); + BOOST_TEST(path("../a") == path_difference(path("a"), path("a"), true)); + BOOST_TEST( + path("../../a") == path_difference(path("a/b"), path("a"), true)); + BOOST_TEST( + path("../b") == path_difference(path("a/../b"), path("b"), true)); + BOOST_TEST( + ".." / current_path().filename() == + path_difference(current_path(), current_path(), true)); + // BOOST_TEST(path("..") == path_difference(path("a"), path(""), true)); + BOOST_TEST( + "../.." / current_path().filename() == + path_difference(current_path() / "a", current_path(), true)); + BOOST_TEST(path("a") == path_difference(path(""), path("a"), true)); + BOOST_TEST( + path("a") == + path_difference(current_path(), current_path() / "a", true)); + BOOST_TEST(path("b") == path_difference(path("a"), path("a/b"), true)); + BOOST_TEST( + path("b") == + path_difference( + current_path() / "a", current_path() / "a" / "b", true)); + BOOST_TEST(path("../a/b") == path_difference(path("c"), path("a/b"), true)); + BOOST_TEST( + path("../a/b") == + path_difference( + current_path() / "c", current_path() / "a" / "b", true)); + // BOOST_TEST(path("..") == path_difference(path(""), path(".."), true)); + BOOST_TEST( + "../.." / current_path().parent_path().filename() == + path_difference(current_path(), current_path().parent_path(), true)); + BOOST_TEST(path("b") == path_difference(path("a/c/.."), path("a/b"), true)); + BOOST_TEST( + path("b") == path_difference(path("b/c/../../a"), path("a/b"), true)); + BOOST_TEST( + path("b") == + path_difference(path("b/c/../../a"), path("d/f/../../a/b"), true)); + BOOST_TEST( + path("../../x/a/b") == + path_difference(path("b/c/../../a"), path("d/f/../../../x/a/b"), true)); +} + +int main() +{ + file_path_to_url_tests(); + dir_path_to_url_tests(); + path_difference_tests(); + return boost::report_errors(); +} diff --git a/src/boost/tools/quickbook/test/unit/post_process_test.cpp b/src/boost/tools/quickbook/test/unit/post_process_test.cpp new file mode 100644 index 000000000..e7681c72d --- /dev/null +++ b/src/boost/tools/quickbook/test/unit/post_process_test.cpp @@ -0,0 +1,27 @@ +/*============================================================================= + Copyright (c) 2011 Daniel James + + Use, modification and distribution is subject to the Boost Software + License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at + http://www.boost.org/LICENSE_1_0.txt) +=============================================================================*/ + +#include +#include "post_process.hpp" + +#define EXPECT_EXCEPTION(test, msg) \ + try { \ + test; \ + BOOST_ERROR(msg); \ + } catch (quickbook::post_process_failure&) { \ + } + +int main() +{ + EXPECT_EXCEPTION( + quickbook::post_process(""), "Succeeded with unbalanced tag"); + EXPECT_EXCEPTION( + quickbook::post_process("<"), "Succeeded with badly formed tag"); + + return boost::report_errors(); +} diff --git a/src/boost/tools/quickbook/test/unit/source_map_test.cpp b/src/boost/tools/quickbook/test/unit/source_map_test.cpp new file mode 100644 index 000000000..6248ac1f6 --- /dev/null +++ b/src/boost/tools/quickbook/test/unit/source_map_test.cpp @@ -0,0 +1,444 @@ +/*============================================================================= + Copyright (c) 2012 Daniel James + + Use, modification and distribution is subject to the Boost Software + License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at + http://www.boost.org/LICENSE_1_0.txt) +=============================================================================*/ + +#include +#include +#include "files.hpp" +#include "fwd.hpp" +#include "string_view.hpp" + +void simple_map_tests() +{ + quickbook::string_view source("First Line\nSecond Line"); + quickbook::file_ptr fake_file = + new quickbook::file("(fake file)", source, 105u); + + quickbook::string_iterator line1 = fake_file->source().begin(); + quickbook::string_iterator line1_end = + boost::find(fake_file->source(), '\n'); + quickbook::string_iterator line2 = line1_end + 1; + quickbook::string_iterator line2_end = fake_file->source().end(); + + quickbook::mapped_file_builder builder; + + { // Empty test + builder.start(fake_file); + BOOST_TEST(builder.empty()); + quickbook::file_ptr f1 = builder.release(); + BOOST_TEST(f1->source().empty()); + } + + { // Add full text + builder.start(fake_file); + builder.add(quickbook::string_view(line1, line2_end - line1)); + quickbook::file_ptr f1 = builder.release(); + BOOST_TEST_EQ(f1->source(), source); + BOOST_TEST_EQ( + f1->position_of(f1->source().begin()), + quickbook::file_position(1, 1)); + BOOST_TEST_EQ( + f1->position_of(f1->source().begin() + 2), + quickbook::file_position(1, 3)); + BOOST_TEST_EQ( + f1->position_of(f1->source().begin() + (line1_end - line1)), + quickbook::file_position(1, line1_end - line1 + 1)); + BOOST_TEST_EQ( + f1->position_of(f1->source().begin() + (line2 - line1)), + quickbook::file_position(2, 1)); + BOOST_TEST_EQ( + f1->position_of(f1->source().end()), + fake_file->position_of(fake_file->source().end())); + } + + { // Add first line + builder.start(fake_file); + builder.add(quickbook::string_view(line1, line1_end - line1)); + quickbook::file_ptr f1 = builder.release(); + BOOST_TEST_EQ( + f1->source(), + quickbook::string_view(source.begin(), line1_end - line1)); + BOOST_TEST_EQ( + f1->position_of(f1->source().begin()), + quickbook::file_position(1, 1)); + BOOST_TEST_EQ( + f1->position_of(f1->source().begin() + 2), + quickbook::file_position(1, 3)); + BOOST_TEST_EQ( + f1->position_of(f1->source().end()), + quickbook::file_position(1, line1_end - line1 + 1)); + } + + { // Add second line + builder.start(fake_file); + builder.add(quickbook::string_view(line2, line2_end - line2)); + quickbook::file_ptr f1 = builder.release(); + BOOST_TEST_EQ(f1->source(), quickbook::string_view("Second Line")); + BOOST_TEST_EQ( + f1->position_of(f1->source().begin()), + quickbook::file_position(2, 1)); + BOOST_TEST_EQ( + f1->position_of(f1->source().begin() + 2), + quickbook::file_position(2, 3)); + BOOST_TEST_EQ( + f1->position_of(f1->source().end()), + quickbook::file_position(2, line2_end - line2 + 1)); + } + + { // Out of order + builder.start(fake_file); + builder.add(quickbook::string_view(line2, line2_end - line2)); + builder.add(quickbook::string_view(line1_end, 1)); + builder.add(quickbook::string_view(line1, line1_end - line1)); + quickbook::file_ptr f1 = builder.release(); + BOOST_TEST_EQ( + f1->source(), quickbook::string_view("Second Line\nFirst Line")); + + BOOST_TEST_EQ( + f1->position_of(f1->source().begin()), + quickbook::file_position(2, 1)); + BOOST_TEST_EQ( + f1->position_of(f1->source().begin() + 2), + quickbook::file_position(2, 3)); + BOOST_TEST_EQ( + f1->position_of(f1->source().begin() + (line2_end - line2 - 1)), + quickbook::file_position(2, line2_end - line2)); + BOOST_TEST_EQ( + f1->position_of(f1->source().begin() + (line2_end - line2)), + quickbook::file_position(1, (line1_end - line1 + 1))); + BOOST_TEST_EQ( + f1->position_of(f1->source().begin() + (line2_end - line2 + 1)), + quickbook::file_position(1, 1)); + BOOST_TEST_EQ( + f1->position_of(f1->source().end()), + quickbook::file_position(1, line1_end - line1 + 1)); + } + + { // Repeated text + builder.start(fake_file); + builder.add(quickbook::string_view(line2, line2_end - line2)); + builder.add(quickbook::string_view(line1_end, 1)); + builder.add(quickbook::string_view(line2, line2_end - line2)); + quickbook::file_ptr f1 = builder.release(); + BOOST_TEST_EQ( + f1->source(), quickbook::string_view("Second Line\nSecond Line")); + + BOOST_TEST_EQ( + f1->position_of(f1->source().begin()), + quickbook::file_position(2, 1)); + BOOST_TEST_EQ( + f1->position_of(f1->source().begin() + 2), + quickbook::file_position(2, 3)); + BOOST_TEST_EQ( + f1->position_of(f1->source().begin() + (line2_end - line2 - 1)), + quickbook::file_position(2, line2_end - line2)); + BOOST_TEST_EQ( + f1->position_of(f1->source().begin() + (line2_end - line2)), + quickbook::file_position(1, (line1_end - line1 + 1))); + BOOST_TEST_EQ( + f1->position_of(f1->source().begin() + (line2_end - line2 + 1)), + quickbook::file_position(2, 1)); + BOOST_TEST_EQ( + f1->position_of(f1->source().end()), + quickbook::file_position(2, line2_end - line2 + 1)); + } + + { // Generated text + builder.start(fake_file); + builder.add_at_pos("------\n", line1); + builder.add(quickbook::string_view(line1, line1_end - line1)); + builder.add_at_pos("\n------\n", line1_end); + quickbook::file_ptr f1 = builder.release(); + BOOST_TEST_EQ( + f1->source(), + quickbook::string_view("------\nFirst Line\n------\n")); + + quickbook::string_iterator newline = boost::find(f1->source(), '\n'); + + BOOST_TEST_EQ( + f1->position_of(f1->source().begin()), + quickbook::file_position(1, 1)); + BOOST_TEST_EQ( + f1->position_of(f1->source().begin() + 2), + quickbook::file_position(1, 1)); + BOOST_TEST_EQ(f1->position_of(newline), quickbook::file_position(1, 1)); + BOOST_TEST_EQ( + f1->position_of(newline + 1), quickbook::file_position(1, 1)); + BOOST_TEST_EQ( + f1->position_of(newline + 2), quickbook::file_position(1, 2)); + BOOST_TEST_EQ( + f1->position_of(newline + (line1_end - line1)), + quickbook::file_position(1, line1_end - line1)); + BOOST_TEST_EQ( + f1->position_of(newline + (line1_end - line1 + 1)), + quickbook::file_position(1, line1_end - line1 + 1)); + BOOST_TEST_EQ( + f1->position_of(newline + (line1_end - line1 + 2)), + quickbook::file_position(1, line1_end - line1 + 1)); + BOOST_TEST_EQ( + f1->position_of(f1->source().end()), + quickbook::file_position(1, line1_end - line1 + 1)); + } +} + +void indented_map_tests() +{ + quickbook::string_view source(" Code line1\n" + " Code line2\n"); + quickbook::file_ptr fake_file = + new quickbook::file("(fake file)", source, 105u); + + quickbook::mapped_file_builder builder; + + { + builder.start(fake_file); + builder.unindent_and_add(fake_file->source()); + quickbook::file_ptr f1 = builder.release(); + BOOST_TEST_EQ( + f1->source(), quickbook::string_view("Code line1\nCode line2\n")); + BOOST_TEST_EQ( + f1->position_of(f1->source().begin()), + quickbook::file_position(1, 4)); + BOOST_TEST_EQ( + f1->position_of(f1->source().begin() + 1), + quickbook::file_position(1, 5)); + BOOST_TEST_EQ( + f1->position_of(f1->source().begin() + 5), + quickbook::file_position(1, 9)); + BOOST_TEST_EQ( + f1->position_of(f1->source().begin() + 10), + quickbook::file_position(1, 14)); + BOOST_TEST_EQ( + f1->position_of(f1->source().begin() + 11), + quickbook::file_position(2, 4)); + BOOST_TEST_EQ( + f1->position_of(f1->source().end()), + quickbook::file_position(3, 1)); + } + + { + builder.start(fake_file); + { + quickbook::mapped_file_builder builder2; + builder2.start(fake_file); + builder2.unindent_and_add(fake_file->source()); + builder.add(builder2); + } + quickbook::file_ptr f1 = builder.release(); + + BOOST_TEST_EQ( + f1->source(), quickbook::string_view("Code line1\nCode line2\n")); + BOOST_TEST_EQ( + f1->position_of(f1->source().begin()), + quickbook::file_position(1, 4)); + BOOST_TEST_EQ( + f1->position_of(f1->source().begin() + 1), + quickbook::file_position(1, 5)); + BOOST_TEST_EQ( + f1->position_of(f1->source().begin() + 5), + quickbook::file_position(1, 9)); + BOOST_TEST_EQ( + f1->position_of(f1->source().begin() + 10), + quickbook::file_position(1, 14)); + BOOST_TEST_EQ( + f1->position_of(f1->source().begin() + 11), + quickbook::file_position(2, 4)); + BOOST_TEST_EQ( + f1->position_of(f1->source().end()), + quickbook::file_position(3, 1)); + } + + { + builder.start(fake_file); + builder.unindent_and_add(quickbook::string_view( + fake_file->source().begin() + 3, + fake_file->source().end() - (fake_file->source().begin() + 3))); + quickbook::file_ptr f1 = builder.release(); + BOOST_TEST_EQ( + f1->source(), + quickbook::string_view("Code line1\n Code line2\n")); + BOOST_TEST_EQ( + f1->position_of(f1->source().begin()), + quickbook::file_position(1, 4)); + BOOST_TEST_EQ( + f1->position_of(f1->source().begin() + 1), + quickbook::file_position(1, 5)); + BOOST_TEST_EQ( + f1->position_of(f1->source().begin() + 5), + quickbook::file_position(1, 9)); + BOOST_TEST_EQ( + f1->position_of(f1->source().begin() + 10), + quickbook::file_position(1, 14)); + BOOST_TEST_EQ( + f1->position_of(f1->source().begin() + 11), + quickbook::file_position(2, 1)); + BOOST_TEST_EQ( + f1->position_of(f1->source().end()), + quickbook::file_position(3, 1)); + } +} + +void indented_map_tests2() +{ + quickbook::string_view source(" Code line1\n" + "\n" + " Code line2\n"); + quickbook::file_ptr fake_file = + new quickbook::file("(fake file)", source, 105u); + + quickbook::mapped_file_builder builder; + + { + builder.start(fake_file); + builder.unindent_and_add(fake_file->source()); + quickbook::file_ptr f1 = builder.release(); + BOOST_TEST_EQ( + f1->source(), quickbook::string_view("Code line1\n\nCode line2\n")); + BOOST_TEST_EQ( + f1->position_of(f1->source().begin()), + quickbook::file_position(1, 4)); + BOOST_TEST_EQ( + f1->position_of(f1->source().begin() + 1), + quickbook::file_position(1, 5)); + BOOST_TEST_EQ( + f1->position_of(f1->source().begin() + 5), + quickbook::file_position(1, 9)); + BOOST_TEST_EQ( + f1->position_of(f1->source().begin() + 10), + quickbook::file_position(1, 14)); + BOOST_TEST_EQ( + f1->position_of(f1->source().begin() + 11), + quickbook::file_position(2, 1)); + BOOST_TEST_EQ( + f1->position_of(f1->source().begin() + 12), + quickbook::file_position(3, 4)); + } +} + +void indented_map_leading_blanks_test() +{ + quickbook::mapped_file_builder builder; + + { + quickbook::string_view source("\n\n Code line1\n"); + quickbook::file_ptr fake_file = + new quickbook::file("(fake file)", source, 105u); + builder.start(fake_file); + builder.unindent_and_add(fake_file->source()); + quickbook::file_ptr f1 = builder.release(); + BOOST_TEST_EQ(f1->source(), quickbook::string_view("Code line1\n")); + } + + { + quickbook::string_view source(" \n \n Code line1\n"); + quickbook::file_ptr fake_file = + new quickbook::file("(fake file)", source, 105u); + builder.start(fake_file); + builder.unindent_and_add(fake_file->source()); + quickbook::file_ptr f1 = builder.release(); + BOOST_TEST_EQ(f1->source(), quickbook::string_view("Code line1\n")); + } + + { + quickbook::string_view source(" Code line1\n \n Code line2"); + quickbook::file_ptr fake_file = + new quickbook::file("(fake file)", source, 105u); + builder.start(fake_file); + builder.unindent_and_add(fake_file->source()); + quickbook::file_ptr f1 = builder.release(); + BOOST_TEST_EQ( + f1->source(), quickbook::string_view("Code line1\n\nCode line2")); + } +} + +void indented_map_trailing_blanks_test() +{ + quickbook::mapped_file_builder builder; + + { + quickbook::string_view source("\n\n Code line1\n "); + quickbook::file_ptr fake_file = + new quickbook::file("(fake file)", source, 105u); + builder.start(fake_file); + builder.unindent_and_add(fake_file->source()); + quickbook::file_ptr f1 = builder.release(); + BOOST_TEST_EQ(f1->source(), quickbook::string_view("Code line1\n")); + } + + { + quickbook::string_view source(" \n \n Code line1\n "); + quickbook::file_ptr fake_file = + new quickbook::file("(fake file)", source, 105u); + builder.start(fake_file); + builder.unindent_and_add(fake_file->source()); + quickbook::file_ptr f1 = builder.release(); + BOOST_TEST_EQ(f1->source(), quickbook::string_view("Code line1\n ")); + } + + { + quickbook::string_view source(" Code line1\n \n Code line2\n "); + quickbook::file_ptr fake_file = + new quickbook::file("(fake file)", source, 105u); + builder.start(fake_file); + builder.unindent_and_add(fake_file->source()); + quickbook::file_ptr f1 = builder.release(); + BOOST_TEST_EQ( + f1->source(), quickbook::string_view("Code line1\n\nCode line2\n")); + } +} + +void indented_map_mixed_test() +{ + quickbook::mapped_file_builder builder; + + { + quickbook::string_view source("\tCode line 1\n Code line 2\n\t " + "Code line 3\n \tCode line 4"); + quickbook::file_ptr fake_file = + new quickbook::file("(fake file)", source, 105u); + builder.start(fake_file); + builder.unindent_and_add(fake_file->source()); + quickbook::file_ptr f1 = builder.release(); + BOOST_TEST_EQ( + f1->source(), + quickbook::string_view( + "Code line 1\nCode line 2\n Code line 3\n Code line 4")); + } + + { + quickbook::string_view source(" Code line 1\n\tCode line 2"); + quickbook::file_ptr fake_file = + new quickbook::file("(fake file)", source, 105u); + builder.start(fake_file); + builder.unindent_and_add(fake_file->source()); + quickbook::file_ptr f1 = builder.release(); + BOOST_TEST_EQ( + f1->source(), quickbook::string_view("Code line 1\n Code line 2")); + } + + { + quickbook::string_view source(" Code line 1\n \tCode line 2"); + quickbook::file_ptr fake_file = + new quickbook::file("(fake file)", source, 105u); + builder.start(fake_file); + builder.unindent_and_add(fake_file->source()); + quickbook::file_ptr f1 = builder.release(); + BOOST_TEST_EQ( + f1->source(), quickbook::string_view("Code line 1\n\tCode line 2")); + } +} + +int main() +{ + simple_map_tests(); + indented_map_tests(); + indented_map_tests2(); + indented_map_leading_blanks_test(); + indented_map_trailing_blanks_test(); + indented_map_mixed_test(); + return boost::report_errors(); +} diff --git a/src/boost/tools/quickbook/test/unit/symbols_find_null.cpp b/src/boost/tools/quickbook/test/unit/symbols_find_null.cpp new file mode 100644 index 000000000..0be8ab1e5 --- /dev/null +++ b/src/boost/tools/quickbook/test/unit/symbols_find_null.cpp @@ -0,0 +1,36 @@ +/*============================================================================= + Copyright (c) 2004 Joao Abecasis + http://spirit.sourceforge.net/ + + Use, modification and distribution is subject to the Boost Software + License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at + http://www.boost.org/LICENSE_1_0.txt) +=============================================================================*/ + +#include +#include +#include "symbols.hpp" + +typedef char char_type; +typedef char const* iterator; + +char_type data_[] = "whatever"; + +iterator begin = data_; +iterator end = + data_ + + sizeof(data_) / sizeof(char_type); // Yes, this is an intentional bug ;) + +int main() +{ + typedef BOOST_SPIRIT_CLASSIC_NS::scanner<> scanner; + typedef quickbook::tst symbols; + + symbols symbols_; + + symbols_.add(begin, end - 1, (void*)boost::addressof(symbols_)); + + // The symbol table parser should not choke on input containing the null + // character. + symbols_.find(scanner(begin, end)); +} diff --git a/src/boost/tools/quickbook/test/unit/symbols_tests.cpp b/src/boost/tools/quickbook/test/unit/symbols_tests.cpp new file mode 100644 index 000000000..41f37b5e7 --- /dev/null +++ b/src/boost/tools/quickbook/test/unit/symbols_tests.cpp @@ -0,0 +1,374 @@ +/*============================================================================= + Copyright (c) 1998-2003 Joel de Guzman + Copyright (c) 2003 Martin Wille + http://spirit.sourceforge.net/ + + Use, modification and distribution is subject to the Boost Software + License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at + http://www.boost.org/LICENSE_1_0.txt) +=============================================================================*/ +#include +#include +#include +#include +#include +#include +#include "symbols.hpp" + +/////////////////////////////////////////////////////////////////////////////// +using namespace std; +using namespace BOOST_SPIRIT_CLASSIC_NS; + +/////////////////////////////////////////////////////////////////////////////// + +template bool equal(IteratorT p, IteratorT q) +{ + while (*p && *p == *q) { + ++p; + ++q; + } + return *p == *q; +} + +template +void docheck( + SymbolsT const& sym, + CharT const* candidate, + bool hit, + CharT const* result, + int length) +{ + parse_info info = parse(candidate, sym); + +#define correctly_matched hit == info.hit +#define correct_match_length unsigned(length) == info.length +#define correct_tail equal(candidate + (hit ? 1 : 0) * length, result) + + BOOST_TEST(correctly_matched); + + if (hit) { + BOOST_TEST(correct_match_length); + BOOST_TEST(correct_tail); + } + else { + BOOST_TEST(correct_tail); + } +} + +template struct store_action +{ + store_action(T const& v) : value(v) {} + void operator()(T& v) const { v = value; } + + private: + T const value; +}; + +template store_action store(T const& v) { return v; } + +template struct check_action +{ + check_action(T const& v) : value(v) {} + +#define correct_value_stored (v == value) + void operator()(T const& v) const { BOOST_TEST(correct_value_stored); } + + private: + T const value; +}; + +template check_action docheck(T const& v) { return v; } + +static void default_constructible() +{ // this actually a compile time test + symbols > ns1; + symbols > ws1; + symbols > ns2; + symbols > ws2; + + (void)ns1; + (void)ws1; + (void)ns2; + (void)ws2; +} + +typedef symbols > nsymbols; +typedef symbols > wsymbols; + +static void narrow_match_tests() +{ + nsymbols sym; + sym = "pineapple", "orange", "banana", "applepie", "apple"; + + docheck(sym, "pineapple", true, "", 9); + docheck(sym, "orange", true, "", 6); + docheck(sym, "banana", true, "", 6); + docheck(sym, "apple", true, "", 5); + docheck(sym, "pizza", false, "pizza", -1); + docheck(sym, "steak", false, "steak", -1); + docheck(sym, "applepie", true, "", 8); + docheck(sym, "bananarama", true, "rama", 6); + docheck(sym, "applet", true, "t", 5); + docheck(sym, "applepi", true, "pi", 5); + docheck(sym, "appl", false, "appl", -1); + + docheck(sym, "pineapplez", true, "z", 9); + docheck(sym, "orangez", true, "z", 6); + docheck(sym, "bananaz", true, "z", 6); + docheck(sym, "applez", true, "z", 5); + docheck(sym, "pizzaz", false, "pizzaz", -1); + docheck(sym, "steakz", false, "steakz", -1); + docheck(sym, "applepiez", true, "z", 8); + docheck(sym, "bananaramaz", true, "ramaz", 6); + docheck(sym, "appletz", true, "tz", 5); + docheck(sym, "applepix", true, "pix", 5); +} + +static void narrow_copy_ctor_tests() +{ + nsymbols sym; + sym = "pineapple", "orange", "banana", "applepie", "apple"; + + nsymbols sym2(sym); + docheck(sym2, "pineapple", true, "", 9); + docheck(sym2, "pizza", false, "pizza", -1); + docheck(sym2, "bananarama", true, "rama", 6); +} + +static void narrow_assigment_operator_tests() +{ + nsymbols sym; + sym = "pineapple", "orange", "banana", "applepie", "apple"; + + nsymbols sym2; + sym2 = sym; + + docheck(sym2, "pineapple", true, "", 9); + docheck(sym2, "pizza", false, "pizza", -1); + docheck(sym2, "bananarama", true, "rama", 6); +} + +static void narrow_swap_tests() +{ + nsymbols sym, sym2; + sym = "pineapple", "orange", "banana", "applepie", "apple"; + sym2 = "potato", "cucumber", "cauliflower", "carrot"; + + boost::swap(sym, sym2); + + docheck(sym2, "pineapple", true, "", 9); + docheck(sym2, "pizza", false, "pizza", -1); + docheck(sym2, "bananarama", true, "rama", 6); + docheck(sym, "potatoe", true, "e", 6); + docheck(sym, "cauliflour", false, "cauliflour", -1); +} + +static void narrow_value_tests() +{ // also tests the add member functions + nsymbols sym; + + sym = "orange", "banana"; + sym.add("pineapple", 1234); + sym.add("lemon"); + + parse("orange", sym[store(12345)]); + parse("orange", sym[docheck(12345)]); + parse("pineapple", sym[docheck(1234)]); + parse("banana", sym[docheck(int())]); + parse("lemon", sym[docheck(int())]); +} + +static void narrow_free_functions_tests() +{ + nsymbols sym; + +#define add_returned_non_null_value (res != 0) +#define add_returned_null (res == 0) +#define find_returned_non_null_value (res != 0) +#define find_returned_null (res == 0) + + int* res = add(sym, "pineapple"); + BOOST_TEST(add_returned_non_null_value); + res = add(sym, "pineapple"); + BOOST_TEST(add_returned_null); + + res = find(sym, "pineapple"); + BOOST_TEST(find_returned_non_null_value); + res = find(sym, "banana"); + BOOST_TEST(find_returned_null); +} + +static void wide_match_tests() +{ + wsymbols sym; + sym = L"pineapple", L"orange", L"banana", L"applepie", L"apple"; + + docheck(sym, L"pineapple", true, L"", 9); + docheck(sym, L"orange", true, L"", 6); + docheck(sym, L"banana", true, L"", 6); + docheck(sym, L"apple", true, L"", 5); + docheck(sym, L"pizza", false, L"pizza", -1); + docheck(sym, L"steak", false, L"steak", -1); + docheck(sym, L"applepie", true, L"", 8); + docheck(sym, L"bananarama", true, L"rama", 6); + docheck(sym, L"applet", true, L"t", 5); + docheck(sym, L"applepi", true, L"pi", 5); + docheck(sym, L"appl", false, L"appl", -1); + + docheck(sym, L"pineapplez", true, L"z", 9); + docheck(sym, L"orangez", true, L"z", 6); + docheck(sym, L"bananaz", true, L"z", 6); + docheck(sym, L"applez", true, L"z", 5); + docheck(sym, L"pizzaz", false, L"pizzaz", -1); + docheck(sym, L"steakz", false, L"steakz", -1); + docheck(sym, L"applepiez", true, L"z", 8); + docheck(sym, L"bananaramaz", true, L"ramaz", 6); + docheck(sym, L"appletz", true, L"tz", 5); + docheck(sym, L"applepix", true, L"pix", 5); +} + +static void wide_copy_ctor_tests() +{ + wsymbols sym; + sym = L"pineapple", L"orange", L"banana", L"applepie", L"apple"; + + wsymbols sym2(sym); + docheck(sym2, L"pineapple", true, L"", 9); + docheck(sym2, L"pizza", false, L"pizza", -1); + docheck(sym2, L"bananarama", true, L"rama", 6); +} + +static void wide_assigment_operator_tests() +{ + wsymbols sym; + sym = L"pineapple", L"orange", L"banana", L"applepie", L"apple"; + + wsymbols sym2; + sym2 = sym; + + docheck(sym2, L"pineapple", true, L"", 9); + docheck(sym2, L"pizza", false, L"pizza", -1); + docheck(sym2, L"bananarama", true, L"rama", 6); +} + +static void wide_swap_tests() +{ + wsymbols sym, sym2; + sym = L"pineapple", L"orange", L"banana", L"applepie", L"apple"; + sym2 = L"potato", L"cucumber", L"cauliflower", L"carrot"; + + boost::swap(sym, sym2); + + docheck(sym2, L"pineapple", true, L"", 9); + docheck(sym2, L"pizza", false, L"pizza", -1); + docheck(sym2, L"bananarama", true, L"rama", 6); + docheck(sym, L"potatoe", true, L"e", 6); + docheck(sym, L"cauliflour", false, L"cauliflour", -1); +} + +static void wide_value_tests() +{ // also tests the add member functions + wsymbols sym; + + sym = L"orange", L"banana"; + sym.add(L"pineapple", 1234); + sym.add(L"lemon"); + + parse(L"orange", sym[store(12345)]); + parse(L"orange", sym[docheck(12345)]); + parse(L"pineapple", sym[docheck(1234)]); + parse(L"banana", sym[docheck(int())]); + parse(L"lemon", sym[docheck(int())]); +} + +static void wide_free_functions_tests() +{ + wsymbols sym; + + int* res = add(sym, L"pineapple"); + BOOST_TEST(add_returned_non_null_value); + res = add(sym, L"pineapple"); + BOOST_TEST(add_returned_null); + + res = find(sym, L"pineapple"); + BOOST_TEST(find_returned_non_null_value); + res = find(sym, L"banana"); + BOOST_TEST(find_returned_null); +} + +static void free_add_find_functions_tests() +{ + nsymbols sym; + BOOST_TEST(*add(sym, "a", 0) == 0); + BOOST_TEST(*add(sym, "a2", 1) == 1); + BOOST_TEST(add(sym, "a2", 2) == 0); + BOOST_TEST(find(sym, "a2")); + BOOST_TEST(find(sym, "a")); +} + +// The original teneray search tree implementation contained a bug when +// inserting duplicate values. I want this implementation to be as +// close as possible to the original (so they can be easily switched) +// so check that the bug remains the same. + +struct check_parse_value +{ + explicit check_parse_value(int value) : value_(value) {} + + void operator()(int value) const { BOOST_TEST(value == value_); } + + int value_; +}; + +// My version is different to the original, if there's an existing value +// it replaces it with the new one. + +static void duplicate_add_tests() +{ + char const* foo1 = "foo"; + char const* foo2 = foo1 + 3; + + nsymbols sym; + sym.add(foo1, foo2, 1); + nsymbols sym2 = sym; + sym.add(foo1, foo2, 2); + sym2.add(foo1, foo2, 3); + + BOOST_TEST(find(sym, "foo") && *find(sym, "foo") == 2); + BOOST_TEST(find(sym2, "foo") && *find(sym2, "foo") == 3); + + parse_info info; + + info = parse("foo ", sym[check_parse_value(2)]); + BOOST_TEST(info.hit && info.length == 3); + + info = parse("foo", sym[check_parse_value(2)]); + BOOST_TEST(info.hit && info.length == 3); + + info = parse("foo ", sym2[check_parse_value(3)]); + BOOST_TEST(info.hit && info.length == 3); + + info = parse("foo", sym2[check_parse_value(3)]); + BOOST_TEST(info.hit && info.length == 3); +} + +int main() +{ + default_constructible(); + narrow_match_tests(); + narrow_copy_ctor_tests(); + narrow_assigment_operator_tests(); + narrow_swap_tests(); + narrow_value_tests(); + narrow_free_functions_tests(); + wide_match_tests(); + wide_copy_ctor_tests(); + wide_assigment_operator_tests(); + wide_swap_tests(); + wide_value_tests(); + wide_free_functions_tests(); + free_add_find_functions_tests(); + duplicate_add_tests(); + + return boost::report_errors(); +} diff --git a/src/boost/tools/quickbook/test/unit/utils_test.cpp b/src/boost/tools/quickbook/test/unit/utils_test.cpp new file mode 100644 index 000000000..6a54dccfe --- /dev/null +++ b/src/boost/tools/quickbook/test/unit/utils_test.cpp @@ -0,0 +1,67 @@ + +/*============================================================================= + Copyright (c) 2017 Daniel James + + Use, modification and distribution is subject to the Boost Software + License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at + http://www.boost.org/LICENSE_1_0.txt) +=============================================================================*/ + +#include +#include "utils.hpp" + +#include + +void linkify_test() +{ + using quickbook::detail::linkify; + + BOOST_TEST(linkify("abc", "link") == "abc"); + BOOST_TEST( + linkify("abc", "link") == + "abc"); + BOOST_TEST( + linkify("abc def", "link") == + "abc def"); + BOOST_TEST( + linkify("abc def", "link") == + "abc def"); +} + +void decode_string_test() +{ + using quickbook::detail::decode_string; + BOOST_TEST_EQ(std::string(""), decode_string("<A&B>")); + BOOST_TEST_EQ(std::string(""), decode_string("<A&B>")); + BOOST_TEST_EQ(std::string("a"), decode_string("a")); + BOOST_TEST_EQ(std::string("OO"), decode_string("OO")); + // Unicode examples taken from wikipedia. + // https://en.wikipedia.org/wiki/UTF-8#Examples + BOOST_TEST_EQ( + std::string("\x24\xc2\xa2\xe2\x82\xAC\xF0\x90\x8D\x88"), + decode_string("$¢€𐍈")); +} + +void encode_string_test() +{ + using quickbook::detail::encode_string; + BOOST_TEST_EQ(std::string("<A&B>"), encode_string("")); +} + +void escape_uri_test() +{ + using quickbook::detail::escape_uri; + using quickbook::detail::partially_escape_uri; + + BOOST_TEST_EQ(std::string("%2520%2525%25"), escape_uri("%20%25%")); + BOOST_TEST_EQ(std::string("%20%25%25"), partially_escape_uri("%20%25%")); +} + +int main() +{ + linkify_test(); + decode_string_test(); + encode_string_test(); + escape_uri_test(); + return boost::report_errors(); +} diff --git a/src/boost/tools/quickbook/test/unit/values_test.cpp b/src/boost/tools/quickbook/test/unit/values_test.cpp new file mode 100644 index 000000000..d0036d428 --- /dev/null +++ b/src/boost/tools/quickbook/test/unit/values_test.cpp @@ -0,0 +1,128 @@ +/*============================================================================= + Copyright (c) 2010-2011 Daniel James + + Use, modification and distribution is subject to the Boost Software + License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at + http://www.boost.org/LICENSE_1_0.txt) +=============================================================================*/ + +// Some very light testing for quickbook::value and friends. +// Just for a few issues that came up during development. + +#include +#include +#include +#include "files.hpp" +#include "values.hpp" + +void empty_tests() +{ + quickbook::value q; + BOOST_TEST(q.empty()); + BOOST_TEST(!q.is_list()); + BOOST_TEST(!q.is_encoded()); +} + +void qbk_tests() +{ + std::string source = "Source"; + quickbook::value q; + { + quickbook::file_ptr fake_file = + new quickbook::file("(fake file)", source, 105u); + q = quickbook::qbk_value( + fake_file, fake_file->source().begin(), fake_file->source().end()); + } + BOOST_TEST_EQ(q.get_quickbook(), quickbook::string_view(source)); +} + +void sort_test() +{ + quickbook::value_builder b; + b.insert(quickbook::encoded_value("a", 10)); + b.insert(quickbook::encoded_value("b", 2)); + b.insert(quickbook::encoded_value("c", 5)); + b.insert(quickbook::encoded_value("d", 8)); + b.sort_list(); + + quickbook::value_consumer c = b.release(); + BOOST_TEST(c.check(2)); + BOOST_TEST_EQ(c.consume(2).get_encoded(), "b"); + BOOST_TEST(c.check(5)); + c.consume(5); + BOOST_TEST(c.check(8)); + c.consume(8); + BOOST_TEST(c.check(10)); + c.consume(10); + BOOST_TEST(!c.check()); +} + +void multiple_list_test() +{ + quickbook::value_builder list1; + quickbook::value_builder list2; + + list1.insert(quickbook::encoded_value("b", 10)); + + { + quickbook::value p1 = quickbook::encoded_value("a", 5); + list1.insert(p1); + list2.insert(p1); + } + + list2.insert(quickbook::encoded_value("c", 3)); + + quickbook::value_consumer l1 = list1.release(); + quickbook::value_consumer l2 = list2.release(); + + BOOST_TEST(l1.check(10)); + BOOST_TEST_EQ(l1.consume(10).get_encoded(), "b"); + BOOST_TEST(l1.check(5)); + BOOST_TEST_EQ(l1.consume(5).get_encoded(), "a"); + BOOST_TEST(!l1.check()); + + BOOST_TEST(l2.check(5)); + BOOST_TEST_EQ(l2.consume(5).get_encoded(), "a"); + BOOST_TEST(l2.check(3)); + BOOST_TEST_EQ(l2.consume(3).get_encoded(), "c"); + BOOST_TEST(!l2.check()); +} + +void equality_tests() +{ + std::vector distinct_values; + + quickbook::value_builder builder; + quickbook::value nil; + + // 0: nil + distinct_values.push_back(nil); + + // 1: [] + distinct_values.push_back(builder.release()); + + // 2: [nil] + builder.insert(nil); + distinct_values.push_back(builder.release()); + + for (std::size_t i = 0; i < distinct_values.size(); ++i) { + for (std::size_t j = 0; j < distinct_values.size(); ++j) { + if ((i == j) != (distinct_values[i] == distinct_values[j])) { + BOOST_ERROR("Value mismatch."); + BOOST_LIGHTWEIGHT_TEST_OSTREAM << "\tat " << i << ", " << j + << std::endl; + } + } + } +} + +int main() +{ + empty_tests(); + qbk_tests(); + sort_test(); + multiple_list_test(); + equality_tests(); + + return boost::report_errors(); +} diff --git a/src/boost/tools/quickbook/test/unmatched_element-1_5.gold b/src/boost/tools/quickbook/test/unmatched_element-1_5.gold new file mode 100644 index 000000000..735503ac5 --- /dev/null +++ b/src/boost/tools/quickbook/test/unmatched_element-1_5.gold @@ -0,0 +1,12 @@ + + +
+ Unmatched elements + + [non-element] + + + [non-element] + +
diff --git a/src/boost/tools/quickbook/test/unmatched_element-1_5.gold-html b/src/boost/tools/quickbook/test/unmatched_element-1_5.gold-html new file mode 100644 index 000000000..a705860f6 --- /dev/null +++ b/src/boost/tools/quickbook/test/unmatched_element-1_5.gold-html @@ -0,0 +1,15 @@ + + + + +

+ Unmatched elements +

+

+ [non-element] +

+

+ [non-element] +

+ + diff --git a/src/boost/tools/quickbook/test/unmatched_element-1_5.quickbook b/src/boost/tools/quickbook/test/unmatched_element-1_5.quickbook new file mode 100644 index 000000000..84ea298d0 --- /dev/null +++ b/src/boost/tools/quickbook/test/unmatched_element-1_5.quickbook @@ -0,0 +1,12 @@ +[article Unmatched elements +[quickbook 1.5] +] + +[template identity[x] + +[x] +] + +[* [non-element]] + +[identity [non-element]] \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/unmatched_element-1_6.gold b/src/boost/tools/quickbook/test/unmatched_element-1_6.gold new file mode 100644 index 000000000..ad52f651a --- /dev/null +++ b/src/boost/tools/quickbook/test/unmatched_element-1_6.gold @@ -0,0 +1,12 @@ + + +
+ Unmatched elements + + [non-element] + + + [non-element] + +
diff --git a/src/boost/tools/quickbook/test/unmatched_element-1_6.gold-html b/src/boost/tools/quickbook/test/unmatched_element-1_6.gold-html new file mode 100644 index 000000000..20a7f3223 --- /dev/null +++ b/src/boost/tools/quickbook/test/unmatched_element-1_6.gold-html @@ -0,0 +1,15 @@ + + + + +

+ Unmatched elements +

+

+ [non-element] +

+

+ [non-element] +

+ + diff --git a/src/boost/tools/quickbook/test/unmatched_element-1_6.quickbook b/src/boost/tools/quickbook/test/unmatched_element-1_6.quickbook new file mode 100644 index 000000000..689e9828a --- /dev/null +++ b/src/boost/tools/quickbook/test/unmatched_element-1_6.quickbook @@ -0,0 +1,12 @@ +[article Unmatched elements +[quickbook 1.6] +] + +[template identity[x] + +[x] +] + +[* [non-element]] + +[identity [non-element]] \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/utf16be_bom-1_5-fail.quickbook b/src/boost/tools/quickbook/test/utf16be_bom-1_5-fail.quickbook new file mode 100644 index 000000000..be2bcbc44 Binary files /dev/null and b/src/boost/tools/quickbook/test/utf16be_bom-1_5-fail.quickbook differ diff --git a/src/boost/tools/quickbook/test/utf16le_bom-1_5-fail.quickbook b/src/boost/tools/quickbook/test/utf16le_bom-1_5-fail.quickbook new file mode 100644 index 000000000..d9782a465 Binary files /dev/null and b/src/boost/tools/quickbook/test/utf16le_bom-1_5-fail.quickbook differ diff --git a/src/boost/tools/quickbook/test/utf8-1_5.gold b/src/boost/tools/quickbook/test/utf8-1_5.gold new file mode 100644 index 000000000..088b314b3 --- /dev/null +++ b/src/boost/tools/quickbook/test/utf8-1_5.gold @@ -0,0 +1,130 @@ + + +
+ UTF-8 test + + Iñtërnâtiônàlizætiøn + + + + + Αα Alpha + + + + + Ββ Beta + + + + + Γγ Gamma + + + + + Δδ Delta + + + + + Εε Epsilon + + + + + Ζζ Zeta + + + + + Ηη Eta + + + + + Θθ Theta + + + + + Ιι Iota + + + + + Κκ Kappa + + + + + Λλ Lambda + + + + + Μμ Mu + + + + + Νν Nu + + + + + Ξξ Xi + + + + + Οο Omicron + + + + + Ππ Pi + + + + + Ρρ Rho + + + + + Σσς Sigma + + + + + Ττ Tau + + + + + Υυ Upsilon + + + + + Φφ Phi + + + + + Χχ Chi + + + + + Ψψ Psi + + + + + Ωω Omega + + + +
diff --git a/src/boost/tools/quickbook/test/utf8-1_5.gold-html b/src/boost/tools/quickbook/test/utf8-1_5.gold-html new file mode 100644 index 000000000..adf6b9569 --- /dev/null +++ b/src/boost/tools/quickbook/test/utf8-1_5.gold-html @@ -0,0 +1,134 @@ + + + + +

+ UTF-8 test +

+

+ Iñtërnâtiônàlizætiøn +

+
    +
  • +
    + Αα Alpha +
    +
  • +
  • +
    + Ββ Beta +
    +
  • +
  • +
    + Γγ Gamma +
    +
  • +
  • +
    + Δδ Delta +
    +
  • +
  • +
    + Εε Epsilon +
    +
  • +
  • +
    + Ζζ Zeta +
    +
  • +
  • +
    + Ηη Eta +
    +
  • +
  • +
    + Θθ Theta +
    +
  • +
  • +
    + Ιι Iota +
    +
  • +
  • +
    + Κκ Kappa +
    +
  • +
  • +
    + Λλ Lambda +
    +
  • +
  • +
    + Μμ Mu +
    +
  • +
  • +
    + Νν Nu +
    +
  • +
  • +
    + Ξξ Xi +
    +
  • +
  • +
    + Οο Omicron +
    +
  • +
  • +
    + Ππ Pi +
    +
  • +
  • +
    + Ρρ Rho +
    +
  • +
  • +
    + Σσς Sigma +
    +
  • +
  • +
    + Ττ Tau +
    +
  • +
  • +
    + Υυ Upsilon +
    +
  • +
  • +
    + Φφ Phi +
    +
  • +
  • +
    + Χχ Chi +
    +
  • +
  • +
    + Ψψ Psi +
    +
  • +
  • +
    + Ωω Omega +
    +
  • +
+ + diff --git a/src/boost/tools/quickbook/test/utf8-1_5.quickbook b/src/boost/tools/quickbook/test/utf8-1_5.quickbook new file mode 100644 index 000000000..96f02f4f4 --- /dev/null +++ b/src/boost/tools/quickbook/test/utf8-1_5.quickbook @@ -0,0 +1,30 @@ +[article UTF-8 test + [quickbook 1.5] +] + +[heading Iñtërnâtiônàlizætiøn] + +* Αα Alpha +* Ββ Beta +* Γγ Gamma +* Δδ Delta +* Εε Epsilon +* Ζζ Zeta +* Ηη Eta +* Θθ Theta +* Ιι Iota +* Κκ Kappa +* Λλ Lambda +* Μμ Mu +* Νν Nu +* Ξξ Xi +* Οο Omicron +* Ππ Pi +* Ρρ Rho +* Σσς Sigma +* Ττ Tau +* Υυ Upsilon +* Φφ Phi +* Χχ Chi +* Ψψ Psi +* Ωω Omega \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/utf8_bom-1_5.gold b/src/boost/tools/quickbook/test/utf8_bom-1_5.gold new file mode 100644 index 000000000..088b314b3 --- /dev/null +++ b/src/boost/tools/quickbook/test/utf8_bom-1_5.gold @@ -0,0 +1,130 @@ + + +
+ UTF-8 test + + Iñtërnâtiônàlizætiøn + + + + + Αα Alpha + + + + + Ββ Beta + + + + + Γγ Gamma + + + + + Δδ Delta + + + + + Εε Epsilon + + + + + Ζζ Zeta + + + + + Ηη Eta + + + + + Θθ Theta + + + + + Ιι Iota + + + + + Κκ Kappa + + + + + Λλ Lambda + + + + + Μμ Mu + + + + + Νν Nu + + + + + Ξξ Xi + + + + + Οο Omicron + + + + + Ππ Pi + + + + + Ρρ Rho + + + + + Σσς Sigma + + + + + Ττ Tau + + + + + Υυ Upsilon + + + + + Φφ Phi + + + + + Χχ Chi + + + + + Ψψ Psi + + + + + Ωω Omega + + + +
diff --git a/src/boost/tools/quickbook/test/utf8_bom-1_5.gold-html b/src/boost/tools/quickbook/test/utf8_bom-1_5.gold-html new file mode 100644 index 000000000..adf6b9569 --- /dev/null +++ b/src/boost/tools/quickbook/test/utf8_bom-1_5.gold-html @@ -0,0 +1,134 @@ + + + + +

+ UTF-8 test +

+

+ Iñtërnâtiônàlizætiøn +

+
    +
  • +
    + Αα Alpha +
    +
  • +
  • +
    + Ββ Beta +
    +
  • +
  • +
    + Γγ Gamma +
    +
  • +
  • +
    + Δδ Delta +
    +
  • +
  • +
    + Εε Epsilon +
    +
  • +
  • +
    + Ζζ Zeta +
    +
  • +
  • +
    + Ηη Eta +
    +
  • +
  • +
    + Θθ Theta +
    +
  • +
  • +
    + Ιι Iota +
    +
  • +
  • +
    + Κκ Kappa +
    +
  • +
  • +
    + Λλ Lambda +
    +
  • +
  • +
    + Μμ Mu +
    +
  • +
  • +
    + Νν Nu +
    +
  • +
  • +
    + Ξξ Xi +
    +
  • +
  • +
    + Οο Omicron +
    +
  • +
  • +
    + Ππ Pi +
    +
  • +
  • +
    + Ρρ Rho +
    +
  • +
  • +
    + Σσς Sigma +
    +
  • +
  • +
    + Ττ Tau +
    +
  • +
  • +
    + Υυ Upsilon +
    +
  • +
  • +
    + Φφ Phi +
    +
  • +
  • +
    + Χχ Chi +
    +
  • +
  • +
    + Ψψ Psi +
    +
  • +
  • +
    + Ωω Omega +
    +
  • +
+ + diff --git a/src/boost/tools/quickbook/test/utf8_bom-1_5.quickbook b/src/boost/tools/quickbook/test/utf8_bom-1_5.quickbook new file mode 100644 index 000000000..443f6c6c0 --- /dev/null +++ b/src/boost/tools/quickbook/test/utf8_bom-1_5.quickbook @@ -0,0 +1,30 @@ +[article UTF-8 test + [quickbook 1.5] +] + +[heading Iñtërnâtiônàlizætiøn] + +* Αα Alpha +* Ββ Beta +* Γγ Gamma +* Δδ Delta +* Εε Epsilon +* Ζζ Zeta +* Ηη Eta +* Θθ Theta +* Ιι Iota +* Κκ Kappa +* Λλ Lambda +* Μμ Mu +* Νν Nu +* Ξξ Xi +* Οο Omicron +* Ππ Pi +* Ρρ Rho +* Σσς Sigma +* Ττ Tau +* Υυ Upsilon +* Φφ Phi +* Χχ Chi +* Ψψ Psi +* Ωω Omega \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/variablelist-1_5-fail.quickbook b/src/boost/tools/quickbook/test/variablelist-1_5-fail.quickbook new file mode 100644 index 000000000..a7e589680 --- /dev/null +++ b/src/boost/tools/quickbook/test/variablelist-1_5-fail.quickbook @@ -0,0 +1,5 @@ +[article Parse error [quickbook 1.4]] + +[variablelist Variable List +[[1234]] +] diff --git a/src/boost/tools/quickbook/test/variablelist-1_5.gold b/src/boost/tools/quickbook/test/variablelist-1_5.gold new file mode 100644 index 000000000..08d66133e --- /dev/null +++ b/src/boost/tools/quickbook/test/variablelist-1_5.gold @@ -0,0 +1,107 @@ + + +
+ Variable List Tests + + Empty + + + One entry + + a + + + b + + + + + + One entry, multiple items + + a + + + b + + + c + + + + + + Several entries + + a + + + b + + + + + a + + + b + + + c + + + + + a + + + b + + + c + + + d + + + + + a + + + b + + + c + + + d + + + e + + + + + a + + + b + + + + + + + Variable List with anchors + + a + + + b + + + + +
diff --git a/src/boost/tools/quickbook/test/variablelist-1_5.gold-html b/src/boost/tools/quickbook/test/variablelist-1_5.gold-html new file mode 100644 index 000000000..b430fdafd --- /dev/null +++ b/src/boost/tools/quickbook/test/variablelist-1_5.gold-html @@ -0,0 +1,103 @@ + + + + +

+ Variable List Tests +

+
+
+ a +
+
+

+ b +

+
+
+
+
+ a +
+
+

+ b +

+

+ c +

+
+
+
+
+ a +
+
+

+ b +

+
+
+ a +
+
+

+ b +

+

+ c +

+
+
+ a +
+
+

+ b +

+

+ c +

+

+ d +

+
+
+ a +
+
+

+ b +

+

+ c +

+

+ d +

+

+ e +

+
+
+ a +
+
+

+ b +

+
+
+ +
+
+ a +
+
+

+ b +

+
+
+ + diff --git a/src/boost/tools/quickbook/test/variablelist-1_5.quickbook b/src/boost/tools/quickbook/test/variablelist-1_5.quickbook new file mode 100644 index 000000000..cb68a6df7 --- /dev/null +++ b/src/boost/tools/quickbook/test/variablelist-1_5.quickbook @@ -0,0 +1,30 @@ +[article Variable List Tests +[quickbook 1.5] +] + +[variablelist Empty +] + +[variablelist One entry + [[a][b]] +] + +[variablelist One entry, multiple items + [[a][b][c]] +] + +[variablelist Several entries + [[a][b]] + [[a][b][c]] + [[a][b][c][d]] + [[a][b][c][d][e]] + [[a][b]] +] + +[#id1] +[variablelist Variable List with anchors + [ + [[#id2]a[#id3]] + [[#id4]b[#id5]] + ] +] diff --git a/src/boost/tools/quickbook/test/version-0_1-fail.quickbook b/src/boost/tools/quickbook/test/version-0_1-fail.quickbook new file mode 100644 index 000000000..ac3c51250 --- /dev/null +++ b/src/boost/tools/quickbook/test/version-0_1-fail.quickbook @@ -0,0 +1,5 @@ +[article Non-existent version of quickbook + [quickbook 0.1] +] + +This should fail... \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/version-1_8-fail.quickbook b/src/boost/tools/quickbook/test/version-1_8-fail.quickbook new file mode 100644 index 000000000..4311034ba --- /dev/null +++ b/src/boost/tools/quickbook/test/version-1_8-fail.quickbook @@ -0,0 +1,5 @@ +[article Future version of quickbook + [quickbook 1.8] +] + +This should fail... \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/version-2_0-fail.quickbook b/src/boost/tools/quickbook/test/version-2_0-fail.quickbook new file mode 100644 index 000000000..973b174f6 --- /dev/null +++ b/src/boost/tools/quickbook/test/version-2_0-fail.quickbook @@ -0,0 +1,5 @@ +[article Far future version of quickbook + [quickbook 2.0] +] + +This should fail... \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/versions/Jamfile.v2 b/src/boost/tools/quickbook/test/versions/Jamfile.v2 new file mode 100644 index 000000000..dd185d587 --- /dev/null +++ b/src/boost/tools/quickbook/test/versions/Jamfile.v2 @@ -0,0 +1,19 @@ +# +# Copyright (c) 2011 Daniel James +# +# Distributed under the Boost Software License, Version 1.0. (See +# accompanying file LICENSE_1_0.txt or copy at +# http://www.boost.org/LICENSE_1_0.txt) +# + +project quickbook/test/versions + : requirements + msvc:off + ; + +import quickbook-testing : quickbook-test quickbook-error-test ; + +test-suite quickbook.test : + [ quickbook-test versions-1_6 ] + [ quickbook-test invalid_macro-1_6 ] + ; diff --git a/src/boost/tools/quickbook/test/versions/invalid_macro-1_6.gold b/src/boost/tools/quickbook/test/versions/invalid_macro-1_6.gold new file mode 100644 index 000000000..cb6241247 --- /dev/null +++ b/src/boost/tools/quickbook/test/versions/invalid_macro-1_6.gold @@ -0,0 +1,36 @@ + + +
+ Invalid macro test + + Import: + + + + + okay + + + + + __invalid\macro__ + + + + + Include: + + + + + okay + + + + + bad + + + +
diff --git a/src/boost/tools/quickbook/test/versions/invalid_macro-1_6.gold-html b/src/boost/tools/quickbook/test/versions/invalid_macro-1_6.gold-html new file mode 100644 index 000000000..52455ec95 --- /dev/null +++ b/src/boost/tools/quickbook/test/versions/invalid_macro-1_6.gold-html @@ -0,0 +1,39 @@ + + + + +

+ Invalid macro test +

+

+ Import: +

+
    +
  • +
    + okay +
    +
  • +
  • +
    + __invalid\macro__ +
    +
  • +
+

+ Include: +

+
    +
  • +
    + okay +
    +
  • +
  • +
    + bad +
    +
  • +
+ + diff --git a/src/boost/tools/quickbook/test/versions/invalid_macro-1_6.quickbook b/src/boost/tools/quickbook/test/versions/invalid_macro-1_6.quickbook new file mode 100644 index 000000000..860d58b71 --- /dev/null +++ b/src/boost/tools/quickbook/test/versions/invalid_macro-1_6.quickbook @@ -0,0 +1,14 @@ +[article Invalid macro test +[quickbook 1.6] +] + +Import: + +[import invalid_macro-inc-1_1.quickbook] + +* __valid__ +* __invalid\macro__ + +Include: + +[include invalid_macro-inc-1_1.quickbook] diff --git a/src/boost/tools/quickbook/test/versions/invalid_macro-inc-1_1.quickbook b/src/boost/tools/quickbook/test/versions/invalid_macro-inc-1_1.quickbook new file mode 100644 index 000000000..c44bd6741 --- /dev/null +++ b/src/boost/tools/quickbook/test/versions/invalid_macro-inc-1_1.quickbook @@ -0,0 +1,7 @@ +[quickbook 1.1] + +[def __valid__ okay] +[def __invalid\macro__ bad] + +* __valid__ +* __invalid\macro__ diff --git a/src/boost/tools/quickbook/test/versions/templates-inc-1_1.quickbook b/src/boost/tools/quickbook/test/versions/templates-inc-1_1.quickbook new file mode 100644 index 000000000..be5365055 --- /dev/null +++ b/src/boost/tools/quickbook/test/versions/templates-inc-1_1.quickbook @@ -0,0 +1,15 @@ +[article 1.1 Templates +[quickbook 1.1] +] + +[template section_1_1[] +[section In a 1.1 template] +Some text +[endsect] +] + +[section 1.1 Document] +[section_1_1] +[section_1_4] +[section_1_5] +[endsect] diff --git a/src/boost/tools/quickbook/test/versions/templates-inc-1_4.quickbook b/src/boost/tools/quickbook/test/versions/templates-inc-1_4.quickbook new file mode 100644 index 000000000..8b565512d --- /dev/null +++ b/src/boost/tools/quickbook/test/versions/templates-inc-1_4.quickbook @@ -0,0 +1,20 @@ +[article 1.4 Templates +[quickbook 1.4] +] + +[template section_1_4[] +[section In a 1.4 template] +Some text +[endsect] +] + +[section 1.4 Document] +[section_1_1] +[section_1_4] +[section_1_5] +[endsect] + +[/ Odd test for calling 1.4 -> 1.5 -> 1.4 template] + +[template skip_1_5[a] [skip_1_5_2 wrong]] +[template skip_1_5_3[] [a]] diff --git a/src/boost/tools/quickbook/test/versions/templates-inc-1_5.quickbook b/src/boost/tools/quickbook/test/versions/templates-inc-1_5.quickbook new file mode 100644 index 000000000..9dd07f693 --- /dev/null +++ b/src/boost/tools/quickbook/test/versions/templates-inc-1_5.quickbook @@ -0,0 +1,19 @@ +[article 1.5 Templates +[quickbook 1.5] +] + +[template section_1_5[] +[section In a 1.5 template] +Some text +[endsect] +] + +[section 1.5 Document] +[section_1_1] +[section_1_4] +[section_1_5] +[endsect] + +[/ Odd test for calling 1.4 -> 1.5 -> 1.4 template] + +[template skip_1_5_2[a] [skip_1_5_3]] diff --git a/src/boost/tools/quickbook/test/versions/versions-1_6.gold b/src/boost/tools/quickbook/test/versions/versions-1_6.gold new file mode 100644 index 000000000..7b89fdc3d --- /dev/null +++ b/src/boost/tools/quickbook/test/versions/versions-1_6.gold @@ -0,0 +1,114 @@ + + +
+ Mixed version tests + + correct + +
+ <link linkend="mixed_version_tests.section_ids">Section ids in templates</link> +
+ <link linkend="mixed_version_tests.section_ids.in_a_1_1_template">In + a 1.1 template</link> + + Some text + +
+
+ <link linkend="mixed_version_tests.section_ids.in_a_1_4_template">In + a 1.4 template</link> + + Some text + +
+
+ <link linkend="mixed_version_tests.section_ids.in_a_1_5_template">In + a 1.5 template</link> + + Some text + +
+
+
+ 1.1 Templates +
+ 1.1 Document +
+ In a 1.1 template + + Some text + +
+
+ In a 1.4 template + + Some text + +
+
+ In a 1.5 template + + Some text + +
+
+
+
+ 1.4 Templates +
+ <link linkend="1_4_templates.1_4_document">1.4 Document</link> +
+ <link linkend="1_4_templates.1_4_document.in_a_1_1_template">In a + 1.1 template</link> + + Some text + +
+
+ <link linkend="1_4_templates.1_4_document.in_a_1_4_template">In a + 1.4 template</link> + + Some text + +
+
+ <link linkend="1_4_templates.1_4_document.in_a_1_5_template">In a + 1.5 template</link> + + Some text + +
+
+
+
+ 1.5 Templates +
+ <link linkend="1_5_templates.1_5_document">1.5 Document</link> +
+ <link linkend="1_5_templates.1_5_document.in_a_1_1_template">In a + 1.1 template</link> + + Some text + +
+
+ <link linkend="1_5_templates.1_5_document.in_a_1_4_template">In a + 1.4 template</link> + + Some text + +
+
+ <link linkend="1_5_templates.1_5_document.in_a_1_5_template">In a + 1.5 template</link> + + Some text + +
+
+
+
diff --git a/src/boost/tools/quickbook/test/versions/versions-1_6.gold-html b/src/boost/tools/quickbook/test/versions/versions-1_6.gold-html new file mode 100644 index 000000000..f895a387f --- /dev/null +++ b/src/boost/tools/quickbook/test/versions/versions-1_6.gold-html @@ -0,0 +1,239 @@ + + + + +

+ Mixed version tests +

+
+

+ Table of contents +

+ +
+

+ correct +

+
+

+ Section ids in templates +

+
+
+
+

+ In a 1.1 template +

+
+

+ Some text +

+
+
+
+

+ In a 1.4 template +

+
+

+ Some text +

+
+
+
+

+ In a 1.5 template +

+
+

+ Some text +

+
+
+
+
+

+ 1.1 Templates +

+
+

+ Table of contents +

+ +
+
+

+ 1.1 Document +

+
+
+
+

+ In a 1.1 template +

+
+

+ Some text +

+
+
+
+

+ In a 1.4 template +

+
+

+ Some text +

+
+
+
+

+ In a 1.5 template +

+
+

+ Some text +

+
+
+
+
+
+

+ 1.4 Templates +

+
+

+ Table of contents +

+ +
+
+

+ 1.4 Document +

+
+
+
+

+ In a 1.1 template +

+
+

+ Some text +

+
+
+
+

+ In a 1.4 template +

+
+

+ Some text +

+
+
+
+

+ In a 1.5 template +

+
+

+ Some text +

+
+
+
+
+
+

+ 1.5 Templates +

+
+

+ Table of contents +

+ +
+
+

+ 1.5 Document +

+
+
+
+

+ In a 1.1 template +

+
+

+ Some text +

+
+
+
+

+ In a 1.4 template +

+
+

+ Some text +

+
+
+
+

+ In a 1.5 template +

+
+

+ Some text +

+
+
+
+
+ + diff --git a/src/boost/tools/quickbook/test/versions/versions-1_6.quickbook b/src/boost/tools/quickbook/test/versions/versions-1_6.quickbook new file mode 100644 index 000000000..fed5a93ea --- /dev/null +++ b/src/boost/tools/quickbook/test/versions/versions-1_6.quickbook @@ -0,0 +1,26 @@ +[quickbook 1.6] +[article Mixed version tests] + +[import templates-inc-1_1.quickbook] +[import templates-inc-1_4.quickbook] +[import templates-inc-1_5.quickbook] + +[/ This test calls a 1.4 template -> 1.5 template -> 1.4 template. + The name lookup in the 1.4 template should skip the 1.5 template + when doing dynamic name lookup. ] +[skip_1_5 correct] + +[/ When calling templates from old versions, the ids should + be consistent with their context ] + +[section:section_ids Section ids in templates] +[section_1_1] +[section_1_4] +[section_1_5] +[endsect] + +[/ For comparison] + +[include templates-inc-1_1.quickbook] +[include templates-inc-1_4.quickbook] +[include templates-inc-1_5.quickbook] diff --git a/src/boost/tools/quickbook/test/xinclude/Jamfile.v2 b/src/boost/tools/quickbook/test/xinclude/Jamfile.v2 new file mode 100644 index 000000000..4e18d4f17 --- /dev/null +++ b/src/boost/tools/quickbook/test/xinclude/Jamfile.v2 @@ -0,0 +1,31 @@ +# +# Copyright (c) 2005 João Abecasis +# +# Distributed under the Boost Software License, Version 1.0. (See +# accompanying file LICENSE_1_0.txt or copy at +# http://www.boost.org/LICENSE_1_0.txt) +# + +project quickbook/test/xinclude + : requirements + msvc:off + ; + +import quickbook-testing : quickbook-test quickbook-error-test ; + +path-constant xinclude_base1 : ../.. ; +path-constant xinclude_base2 : sub ; +path-constant xinclude_base3 : . ; + +test-suite quickbook.test : + [ quickbook-test xinclude-1_1 : : : $(xinclude_base1) ] + [ quickbook-test xmlbase1-1_6 : : : $(xinclude_base1) ] + [ quickbook-test xmlbase2-1_6 : : : $(xinclude_base1) ] + [ quickbook-test xinclude-1_1-alt : xinclude-1_1.quickbook : xinclude-1_1-alt.gold : $(xinclude_base2) ] + [ quickbook-test xmlbase1-1_6-alt : xmlbase1-1_6.quickbook : xmlbase1-1_6-alt.gold : $(xinclude_base2) ] + [ quickbook-test xmlbase2-1_6-alt : xmlbase2-1_6.quickbook : xmlbase2-1_6-alt.gold : $(xinclude_base2) ] + [ quickbook-test xinclude-1_1-alt2 : xinclude-1_1.quickbook : xinclude-1_1-alt2.gold : $(xinclude_base3) ] + [ quickbook-test xmlbase1-1_6-alt2 : xmlbase1-1_6.quickbook : xmlbase1-1_6-alt2.gold : $(xinclude_base3) ] + [ quickbook-test xmlbase2-1_6-alt2 : xmlbase2-1_6.quickbook : xmlbase2-1_6-alt2.gold : $(xinclude_base3) ] + [ quickbook-error-test xmlbase-1_6-fail ] + ; diff --git a/src/boost/tools/quickbook/test/xinclude/sub/boost-no-inspect b/src/boost/tools/quickbook/test/xinclude/sub/boost-no-inspect new file mode 100644 index 000000000..099a233ec --- /dev/null +++ b/src/boost/tools/quickbook/test/xinclude/sub/boost-no-inspect @@ -0,0 +1,2 @@ +This directory just contains simple test files, which might be disrupted by +adding copyright etc. diff --git a/src/boost/tools/quickbook/test/xinclude/sub/stub.xml b/src/boost/tools/quickbook/test/xinclude/sub/stub.xml new file mode 100644 index 000000000..e69de29bb diff --git a/src/boost/tools/quickbook/test/xinclude/xinclude-1_1-alt.gold b/src/boost/tools/quickbook/test/xinclude/xinclude-1_1-alt.gold new file mode 100644 index 000000000..cffe5296c --- /dev/null +++ b/src/boost/tools/quickbook/test/xinclude/xinclude-1_1-alt.gold @@ -0,0 +1,9 @@ + + +
+ Include + + + + +
diff --git a/src/boost/tools/quickbook/test/xinclude/xinclude-1_1-alt.gold-html b/src/boost/tools/quickbook/test/xinclude/xinclude-1_1-alt.gold-html new file mode 100644 index 000000000..8046a7261 --- /dev/null +++ b/src/boost/tools/quickbook/test/xinclude/xinclude-1_1-alt.gold-html @@ -0,0 +1,9 @@ + + + + +

+ Include +

+ + diff --git a/src/boost/tools/quickbook/test/xinclude/xinclude-1_1-alt2.gold b/src/boost/tools/quickbook/test/xinclude/xinclude-1_1-alt2.gold new file mode 100644 index 000000000..7c2e40063 --- /dev/null +++ b/src/boost/tools/quickbook/test/xinclude/xinclude-1_1-alt2.gold @@ -0,0 +1,9 @@ + + +
+ Include + + + + +
diff --git a/src/boost/tools/quickbook/test/xinclude/xinclude-1_1.gold b/src/boost/tools/quickbook/test/xinclude/xinclude-1_1.gold new file mode 100644 index 000000000..0a5707f78 --- /dev/null +++ b/src/boost/tools/quickbook/test/xinclude/xinclude-1_1.gold @@ -0,0 +1,9 @@ + + +
+ Include + + + + +
diff --git a/src/boost/tools/quickbook/test/xinclude/xinclude-1_1.gold-html b/src/boost/tools/quickbook/test/xinclude/xinclude-1_1.gold-html new file mode 100644 index 000000000..8046a7261 --- /dev/null +++ b/src/boost/tools/quickbook/test/xinclude/xinclude-1_1.gold-html @@ -0,0 +1,9 @@ + + + + +

+ Include +

+ + diff --git a/src/boost/tools/quickbook/test/xinclude/xinclude-1_1.quickbook b/src/boost/tools/quickbook/test/xinclude/xinclude-1_1.quickbook new file mode 100644 index 000000000..9405e4e78 --- /dev/null +++ b/src/boost/tools/quickbook/test/xinclude/xinclude-1_1.quickbook @@ -0,0 +1,6 @@ +[article Include] + +[xinclude ../stub.xml] +[xinclude stub.xml] +[xinclude sub/stub.xml] +[xinclude ../xinclude] diff --git a/src/boost/tools/quickbook/test/xinclude/xmlbase-1_6-fail.quickbook b/src/boost/tools/quickbook/test/xinclude/xmlbase-1_6-fail.quickbook new file mode 100644 index 000000000..899b4a2b4 --- /dev/null +++ b/src/boost/tools/quickbook/test/xinclude/xmlbase-1_6-fail.quickbook @@ -0,0 +1,4 @@ +[article Xmlbase fail +[quickbook 1.5] +[xmlbase non-existent] +] diff --git a/src/boost/tools/quickbook/test/xinclude/xmlbase1-1_6-alt.gold b/src/boost/tools/quickbook/test/xinclude/xmlbase1-1_6-alt.gold new file mode 100644 index 000000000..29a84ca26 --- /dev/null +++ b/src/boost/tools/quickbook/test/xinclude/xmlbase1-1_6-alt.gold @@ -0,0 +1,10 @@ + + +
+ XInclude with xmlbase + + + + +
diff --git a/src/boost/tools/quickbook/test/xinclude/xmlbase1-1_6-alt.gold-html b/src/boost/tools/quickbook/test/xinclude/xmlbase1-1_6-alt.gold-html new file mode 100644 index 000000000..76a1871b7 --- /dev/null +++ b/src/boost/tools/quickbook/test/xinclude/xmlbase1-1_6-alt.gold-html @@ -0,0 +1,9 @@ + + + + +

+ XInclude with xmlbase +

+ + diff --git a/src/boost/tools/quickbook/test/xinclude/xmlbase1-1_6-alt2.gold b/src/boost/tools/quickbook/test/xinclude/xmlbase1-1_6-alt2.gold new file mode 100644 index 000000000..1c2ccc2fc --- /dev/null +++ b/src/boost/tools/quickbook/test/xinclude/xmlbase1-1_6-alt2.gold @@ -0,0 +1,10 @@ + + +
+ XInclude with xmlbase + + + + +
diff --git a/src/boost/tools/quickbook/test/xinclude/xmlbase1-1_6.gold b/src/boost/tools/quickbook/test/xinclude/xmlbase1-1_6.gold new file mode 100644 index 000000000..4c97e0de9 --- /dev/null +++ b/src/boost/tools/quickbook/test/xinclude/xmlbase1-1_6.gold @@ -0,0 +1,10 @@ + + +
+ XInclude with xmlbase + + + + +
diff --git a/src/boost/tools/quickbook/test/xinclude/xmlbase1-1_6.gold-html b/src/boost/tools/quickbook/test/xinclude/xmlbase1-1_6.gold-html new file mode 100644 index 000000000..76a1871b7 --- /dev/null +++ b/src/boost/tools/quickbook/test/xinclude/xmlbase1-1_6.gold-html @@ -0,0 +1,9 @@ + + + + +

+ XInclude with xmlbase +

+ + diff --git a/src/boost/tools/quickbook/test/xinclude/xmlbase1-1_6.quickbook b/src/boost/tools/quickbook/test/xinclude/xmlbase1-1_6.quickbook new file mode 100644 index 000000000..2656c7abf --- /dev/null +++ b/src/boost/tools/quickbook/test/xinclude/xmlbase1-1_6.quickbook @@ -0,0 +1,9 @@ +[article XInclude with xmlbase +[quickbook 1.6] +[xmlbase .] +] + +[xinclude ../stub.xml] +[xinclude stub.xml] +[xinclude sub/stub.xml] +[xinclude ../xinclude] diff --git a/src/boost/tools/quickbook/test/xinclude/xmlbase2-1_6-alt.gold b/src/boost/tools/quickbook/test/xinclude/xmlbase2-1_6-alt.gold new file mode 100644 index 000000000..6cfa197b5 --- /dev/null +++ b/src/boost/tools/quickbook/test/xinclude/xmlbase2-1_6-alt.gold @@ -0,0 +1,10 @@ + + +
+ XInclude with xmlbase + + + + +
diff --git a/src/boost/tools/quickbook/test/xinclude/xmlbase2-1_6-alt.gold-html b/src/boost/tools/quickbook/test/xinclude/xmlbase2-1_6-alt.gold-html new file mode 100644 index 000000000..76a1871b7 --- /dev/null +++ b/src/boost/tools/quickbook/test/xinclude/xmlbase2-1_6-alt.gold-html @@ -0,0 +1,9 @@ + + + + +

+ XInclude with xmlbase +

+ + diff --git a/src/boost/tools/quickbook/test/xinclude/xmlbase2-1_6-alt2.gold b/src/boost/tools/quickbook/test/xinclude/xmlbase2-1_6-alt2.gold new file mode 100644 index 000000000..e3b2f6274 --- /dev/null +++ b/src/boost/tools/quickbook/test/xinclude/xmlbase2-1_6-alt2.gold @@ -0,0 +1,10 @@ + + +
+ XInclude with xmlbase + + + + +
diff --git a/src/boost/tools/quickbook/test/xinclude/xmlbase2-1_6.gold b/src/boost/tools/quickbook/test/xinclude/xmlbase2-1_6.gold new file mode 100644 index 000000000..f3507d337 --- /dev/null +++ b/src/boost/tools/quickbook/test/xinclude/xmlbase2-1_6.gold @@ -0,0 +1,10 @@ + + +
+ XInclude with xmlbase + + + + +
diff --git a/src/boost/tools/quickbook/test/xinclude/xmlbase2-1_6.gold-html b/src/boost/tools/quickbook/test/xinclude/xmlbase2-1_6.gold-html new file mode 100644 index 000000000..76a1871b7 --- /dev/null +++ b/src/boost/tools/quickbook/test/xinclude/xmlbase2-1_6.gold-html @@ -0,0 +1,9 @@ + + + + +

+ XInclude with xmlbase +

+ + diff --git a/src/boost/tools/quickbook/test/xinclude/xmlbase2-1_6.quickbook b/src/boost/tools/quickbook/test/xinclude/xmlbase2-1_6.quickbook new file mode 100644 index 000000000..252bacca1 --- /dev/null +++ b/src/boost/tools/quickbook/test/xinclude/xmlbase2-1_6.quickbook @@ -0,0 +1,9 @@ +[article XInclude with xmlbase +[quickbook 1.6] +[xmlbase ../include] +] + +[xinclude ../stub.xml] +[xinclude stub.xml] +[xinclude sub/stub.xml] +[xinclude ../xinclude] diff --git a/src/boost/tools/quickbook/test/xml_escape-1_2.gold b/src/boost/tools/quickbook/test/xml_escape-1_2.gold new file mode 100644 index 000000000..bd28ae439 --- /dev/null +++ b/src/boost/tools/quickbook/test/xml_escape-1_2.gold @@ -0,0 +1,42 @@ + + + + + + + & should be &amp;, < should &lt; + + + + & should be &amp;, < should &lt; + + + Test that &, < are being escaped. +
+ Escapes & explicitly written markup + + + + & -> &amp; + + + + + < -> &lt; + + + + + > -> &gt; + + + + + " -> &quot; + + + +
+
diff --git a/src/boost/tools/quickbook/test/xml_escape-1_2.gold-html b/src/boost/tools/quickbook/test/xml_escape-1_2.gold-html new file mode 100644 index 000000000..4b4bd7529 --- /dev/null +++ b/src/boost/tools/quickbook/test/xml_escape-1_2.gold-html @@ -0,0 +1,54 @@ + + + + +

+ Test that &, < are being escaped. +

+
+

+ & should be &amp;, < should &lt; +

+
+
+

+ Table of contents +

+ +
+
+

+ Escapes & explicitly written markup +

+
+
    +
  • +
    + & -> &amp; +
    +
  • +
  • +
    + < -> &lt; +
    +
  • +
  • +
    + > -> &gt; +
    +
  • +
  • +
    + " -> &quot; +
    +
  • +
+
+
+ + diff --git a/src/boost/tools/quickbook/test/xml_escape-1_2.quickbook b/src/boost/tools/quickbook/test/xml_escape-1_2.quickbook new file mode 100644 index 000000000..66a6086cc --- /dev/null +++ b/src/boost/tools/quickbook/test/xml_escape-1_2.quickbook @@ -0,0 +1,14 @@ +[library Test that &, < are being escaped. + [quickbook 1.2] + [purpose & should be &amp;, < should &lt;] + [license & should be &amp;, < should &lt;] +] + +[section Escapes & explicitly written markup] + +* & -> & +* < -> < +* > -> > +* " -> " + +[endsect] \ No newline at end of file diff --git a/src/boost/tools/quickbook/test/xml_escape-1_5.gold b/src/boost/tools/quickbook/test/xml_escape-1_5.gold new file mode 100644 index 000000000..f8f33edd2 --- /dev/null +++ b/src/boost/tools/quickbook/test/xml_escape-1_5.gold @@ -0,0 +1,43 @@ + + + + + + + & should be &amp;, < should &lt; + + + + & should be &amp;, < should &lt; + + + Test that &, < are being escaped. +
+ <link linkend="test_that__amp____lt__are_being_escaped_.escapes___explicitly_written_markup">Escapes + & explicitly written markup</link> + + + + & -> &amp; + + + + + < -> &lt; + + + + + > -> &gt; + + + + + " -> &quot; + + + +
+
diff --git a/src/boost/tools/quickbook/test/xml_escape-1_5.gold-html b/src/boost/tools/quickbook/test/xml_escape-1_5.gold-html new file mode 100644 index 000000000..4b4bd7529 --- /dev/null +++ b/src/boost/tools/quickbook/test/xml_escape-1_5.gold-html @@ -0,0 +1,54 @@ + + + + +

+ Test that &, < are being escaped. +

+
+

+ & should be &amp;, < should &lt; +

+
+
+

+ Table of contents +

+ +
+
+

+ Escapes & explicitly written markup +

+
+
    +
  • +
    + & -> &amp; +
    +
  • +
  • +
    + < -> &lt; +
    +
  • +
  • +
    + > -> &gt; +
    +
  • +
  • +
    + " -> &quot; +
    +
  • +
+
+
+ + diff --git a/src/boost/tools/quickbook/test/xml_escape-1_5.quickbook b/src/boost/tools/quickbook/test/xml_escape-1_5.quickbook new file mode 100644 index 000000000..642e1b537 --- /dev/null +++ b/src/boost/tools/quickbook/test/xml_escape-1_5.quickbook @@ -0,0 +1,14 @@ +[library Test that &, < are being escaped. + [quickbook 1.5] + [purpose & should be &, < should <] + [license & should be &, < should <] +] + +[section Escapes & explicitly written markup] + +* & -> & +* < -> < +* > -> > +* " -> " + +[endsect] \ No newline at end of file -- cgit v1.2.3