git-scribe 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (151) hide show
  1. data/.gitignore +1 -0
  2. data/Rakefile +31 -0
  3. data/SPEC.asciidoc +126 -0
  4. data/TODO.txt +29 -0
  5. data/bin/git-scribe +2 -1
  6. data/docbook-xsl/.CatalogManager.properties.example +61 -0
  7. data/docbook-xsl/.urilist +1 -0
  8. data/git-scribe.gemspec +32 -0
  9. data/lib/git-scribe.rb +21 -315
  10. data/lib/git-scribe/check.rb +60 -0
  11. data/lib/git-scribe/cli.rb +84 -0
  12. data/lib/git-scribe/generate.rb +222 -0
  13. data/lib/git-scribe/init.rb +16 -0
  14. data/lib/git-scribe/version.rb +3 -0
  15. data/template/.gitignore +1 -0
  16. data/template/.gitscribe +5 -0
  17. data/test/check_test.rb +12 -0
  18. data/test/gen_test.rb +78 -0
  19. data/test/init_test.rb +36 -0
  20. data/test/test_helper.rb +44 -0
  21. metadata +49 -161
  22. data/example/book/big.asc +0 -5604
  23. data/example/book/holmes.asc +0 -12983
  24. data/example/output/META-INF/container.xml +0 -6
  25. data/example/output/OEBPS/ar01s02.html +0 -15
  26. data/example/output/OEBPS/ar01s03.html +0 -3
  27. data/example/output/OEBPS/content.opf +0 -21
  28. data/example/output/OEBPS/index.html +0 -5
  29. data/example/output/OEBPS/toc.ncx +0 -37
  30. data/example/output/a_case_of_identity.html +0 -725
  31. data/example/output/a_example_appendix.html +0 -63
  32. data/example/output/a_migration_notes.html +0 -95
  33. data/example/output/apa.html +0 -20
  34. data/example/output/apb.html +0 -6
  35. data/example/output/apc.html +0 -24
  36. data/example/output/apd.html +0 -30
  37. data/example/output/ape.html +0 -26
  38. data/example/output/apf.html +0 -9
  39. data/example/output/apg.html +0 -42
  40. data/example/output/aph.html +0 -89
  41. data/example/output/ar01s02.html +0 -12
  42. data/example/output/ar01s03.html +0 -34
  43. data/example/output/ar01s04.html +0 -77
  44. data/example/output/ar01s05.html +0 -272
  45. data/example/output/ar01s06.html +0 -35
  46. data/example/output/ar01s07.html +0 -105
  47. data/example/output/ar01s08.html +0 -33
  48. data/example/output/ar01s09.html +0 -12
  49. data/example/output/ar01s10.html +0 -14
  50. data/example/output/ar01s11.html +0 -34
  51. data/example/output/ar01s12.html +0 -63
  52. data/example/output/ar01s13.html +0 -156
  53. data/example/output/ar01s14.html +0 -330
  54. data/example/output/ar01s15.html +0 -22
  55. data/example/output/ar01s16.html +0 -27
  56. data/example/output/ar01s17.html +0 -94
  57. data/example/output/ar01s18.html +0 -359
  58. data/example/output/ar01s19.html +0 -373
  59. data/example/output/ar01s20.html +0 -27
  60. data/example/output/ar01s21.html +0 -33
  61. data/example/output/ar01s22.html +0 -351
  62. data/example/output/ar01s23.html +0 -21
  63. data/example/output/ar01s24.html +0 -69
  64. data/example/output/ar01s25.html +0 -60
  65. data/example/output/ar01s26.html +0 -217
  66. data/example/output/ar01s27.html +0 -88
  67. data/example/output/ar01s28.html +0 -237
  68. data/example/output/ar01s29.html +0 -68
  69. data/example/output/ar01s30.html +0 -154
  70. data/example/output/ar01s31.html +0 -6
  71. data/example/output/ar01s32.html +0 -22
  72. data/example/output/ar01s33.html +0 -209
  73. data/example/output/asciidoc_backends.html +0 -190
  74. data/example/output/asciidoc_document_types.html +0 -131
  75. data/example/output/attribute_entries.html +0 -185
  76. data/example/output/attribute_lists.html +0 -157
  77. data/example/output/attribute_references.html +0 -414
  78. data/example/output/attributelist_element.html +0 -143
  79. data/example/output/b_packager_notes.html +0 -68
  80. data/example/output/bi01.html +0 -18
  81. data/example/output/big.asc +0 -5604
  82. data/example/output/block_element_definitions.html +0 -448
  83. data/example/output/block_titles.html +0 -83
  84. data/example/output/blockid_element.html +0 -80
  85. data/example/output/book.asc +0 -5604
  86. data/example/output/book.epub +0 -0
  87. data/example/output/book.fo +0 -3788
  88. data/example/output/book.html +0 -8793
  89. data/example/output/book.xml +0 -8265
  90. data/example/output/c_asciidoc_safe_mode.html +0 -105
  91. data/example/output/callouts.html +0 -214
  92. data/example/output/catalog +0 -10
  93. data/example/output/colophon.html +0 -397
  94. data/example/output/configuration_files.html +0 -672
  95. data/example/output/converting_docbook_to_other_file_formats.html +0 -324
  96. data/example/output/d_using_asciidoc_with_non-english_languages.html +0 -107
  97. data/example/output/delimited_blocks.html +0 -455
  98. data/example/output/document_attributes.html +0 -95
  99. data/example/output/document_processing.html +0 -116
  100. data/example/output/document_structure.html +0 -493
  101. data/example/output/e_vim_syntax_highlighter.html +0 -111
  102. data/example/output/example_bibliography.html +0 -82
  103. data/example/output/example_colophon.html +0 -58
  104. data/example/output/example_glossary.html +0 -73
  105. data/example/output/example_index.html +0 -108
  106. data/example/output/f_attribute_options.html +0 -129
  107. data/example/output/filters.html +0 -179
  108. data/example/output/footnotes.html +0 -103
  109. data/example/output/g_diagnostics.html +0 -148
  110. data/example/output/generating_plain_text_files.html +0 -68
  111. data/example/output/getting_started.html +0 -87
  112. data/example/output/glossary.html +0 -95
  113. data/example/output/go01.html +0 -24
  114. data/example/output/h_backend_attributes.html +0 -308
  115. data/example/output/help_commands.html +0 -96
  116. data/example/output/holmes.asc +0 -12983
  117. data/example/output/image/octocat_professor.png +0 -0
  118. data/example/output/include/hello.c +0 -10
  119. data/example/output/index.html +0 -656
  120. data/example/output/indexes.html +0 -104
  121. data/example/output/intrinsic_attributes.html +0 -165
  122. data/example/output/ix01.html +0 -3
  123. data/example/output/lists.html +0 -666
  124. data/example/output/macros.html +0 -737
  125. data/example/output/manpage_documents.html +0 -124
  126. data/example/output/master.css +0 -281
  127. data/example/output/mathematical_formulas.html +0 -125
  128. data/example/output/page.html +0 -60
  129. data/example/output/paragraphs.html +0 -192
  130. data/example/output/pr01.html +0 -3
  131. data/example/output/source_code_highlighting.html +0 -59
  132. data/example/output/stylesheets/handbookish-quirks.css +0 -0
  133. data/example/output/stylesheets/handbookish.css +0 -233
  134. data/example/output/tables.html +0 -797
  135. data/example/output/text_formatting.html +0 -273
  136. data/example/output/the_adventure_of_the_beryl_coronet.html +0 -968
  137. data/example/output/the_adventure_of_the_blue_carbuncle.html +0 -825
  138. data/example/output/the_adventure_of_the_copper_beeches.html +0 -998
  139. data/example/output/the_adventure_of_the_engineer_s_thumb.html +0 -851
  140. data/example/output/the_adventure_of_the_noble_bachelor.html +0 -861
  141. data/example/output/the_adventure_of_the_speckled_band.html +0 -1015
  142. data/example/output/the_boscombe_valley_mystery.html +0 -974
  143. data/example/output/the_first_chapter.html +0 -110
  144. data/example/output/the_five_orange_pips.html +0 -776
  145. data/example/output/the_man_with_the_twisted_lip.html +0 -946
  146. data/example/output/the_red-headed_league.html +0 -950
  147. data/example/output/the_second_chapter.html +0 -95
  148. data/example/output/the_third_chapter.html +0 -58
  149. data/example/output/tips_and_tricks.html +0 -452
  150. data/example/output/title.html +0 -120
  151. data/example/output/titles.html +0 -126
@@ -1,63 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
- <html xmlns="http://www.w3.org/1999/xhtml">
3
- <head>
4
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
5
- <link rel="stylesheet" href="stylesheets/handbookish.css" type="text/css" />
6
- <title>Page A. Example Appendix</title>
7
- </head>
8
-
9
- <body>
10
- <table width="100%">
11
- <tr><td width="33%" align="left">
12
-
13
- <a href="the_third_chapter.html">Prev</a><br/>
14
- The Third Chapter
15
-
16
- </td><td width="33%" align="center">
17
-
18
- <a href="index.html">Home</a><br/>
19
-
20
- </td><td width="33%" align="right">
21
-
22
- <a href="example_bibliography.html">Next</a><br/>
23
- Example Bibliography
24
-
25
- </td></tr>
26
- </table>
27
-
28
- <hr/>
29
-
30
- <div class="appendix" lang="en" xml:lang="en">
31
- <div class="titlepage"><div><div><h2 class="title">
32
- <a id="_example_appendix"></a>A. Example Appendix</h2></div></div></div>
33
- <p>One or more optional appendixes go here at section level 1.</p>
34
- <div class="section" lang="en" xml:lang="en">
35
- <div class="titlepage"><div><div><h3 class="title">
36
- <a id="_appendix_sub_section"></a>Appendix Sub-section</h3></div></div></div>
37
- <p>Sub-section body.</p>
38
- </div>
39
- </div>
40
-
41
-
42
- <hr/>
43
-
44
- <table width="100%">
45
- <tr><td width="33%" align="left">
46
-
47
- <a href="the_third_chapter.html">Prev</a><br/>
48
- The Third Chapter
49
-
50
- </td><td width="33%" align="center">
51
-
52
- <a href="index.html">Home</a><br/>
53
-
54
- </td><td width="33%" align="right">
55
-
56
- <a href="example_bibliography.html">Next</a><br/>
57
- Example Bibliography
58
-
59
- </td></tr>
60
- </table>
61
-
62
- </body>
63
- </html>
@@ -1,95 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
- <html xmlns="http://www.w3.org/1999/xhtml">
3
- <head>
4
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
5
- <link rel="stylesheet" href="master.css" type="text/css" />
6
- <title>A. Migration Notes</title>
7
- </head>
8
-
9
- <body>
10
- <div class="nav" id="navheader">
11
- <table width="100%">
12
- <tr><td width="33%" align="left">
13
-
14
- <a href="glossary.html">Prev</a><br/>
15
- Glossary
16
-
17
- </td><td width="33%" align="center">
18
-
19
- <a href="index.html">Home</a><br/>
20
- <strong>AsciiDoc User Guide</strong>
21
-
22
- </td><td width="33%" align="right">
23
-
24
- <a href="b_packager_notes.html">Next</a><br/>
25
- B. Packager Notes
26
-
27
- </td></tr>
28
- </table>
29
- </div>
30
-
31
- <hr/>
32
-
33
- <div class="content">
34
- <div class="appendix" lang="en" xml:lang="en">
35
- <div class="titlepage"><div><div><h2 class="title">
36
- <a id="_migration_notes"></a>A. Migration Notes</h2></div></div></div>
37
- <div class="section" lang="en" xml:lang="en">
38
- <div class="titlepage"><div><div><h3 class="title">
39
- <a id="X53"></a>Version 7 to version 8</h3></div></div></div>
40
- <div class="itemizedlist"><ul type="disc">
41
- <li>
42
- A new set of quotes has been introduced which may match inline text
43
- in existing documents — if they do you’ll need to escape the
44
- matched text with backslashes.
45
- </li>
46
- <li>
47
- The index entry inline macro syntax has changed — if your documents
48
- include indexes you may need to edit them.
49
- </li>
50
- <li>
51
- Replaced a2x(1) <code class="literal">--no-icons</code> and <code class="literal">--no-copy</code> options with their
52
- negated equivalents: <code class="literal">--icons</code> and <code class="literal">--copy</code> respectively. The
53
- default behavior has also changed — the use of icons and copying of
54
- icon and CSS files must be specified explicitly with the <code class="literal">--icons</code>
55
- and <code class="literal">--copy</code> options.
56
- </li>
57
- </ul></div>
58
- <p>The rationale for the changes can be found in the AsciiDoc
59
- <code class="literal">CHANGELOG</code>.</p>
60
- <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
61
- <h3 class="title">Note</h3>
62
- <p>If you want to disable unconstrained quotes, the new alternative
63
- constrained quotes syntax and the new index entry syntax then you can
64
- define the attribute <code class="literal">asciidoc7compatible</code> (for example by using the
65
- <code class="literal">-a asciidoc7compatible</code> command-line option).</p>
66
- </div>
67
- </div>
68
- </div>
69
-
70
- </div>
71
-
72
- <hr/>
73
-
74
- <div class="nav" id="navfooter">
75
- <table width="100%">
76
- <tr><td width="33%" align="left">
77
-
78
- <a href="glossary.html">Prev</a><br/>
79
- Glossary
80
-
81
- </td><td width="33%" align="center">
82
-
83
- <a href="index.html">Home</a><br/>
84
- AsciiDoc User Guide
85
-
86
- </td><td width="33%" align="right">
87
-
88
- <a href="b_packager_notes.html">Next</a><br/>
89
- B. Packager Notes
90
-
91
- </td></tr>
92
- </table>
93
- </div>
94
- </body>
95
- </html>
@@ -1,20 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>A. Migration Notes</title><link rel="stylesheet" href="stylesheets/handbookish.css" type="text/css" /><meta name="generator" content="DocBook XSL Stylesheets V1.74.1" /><link rel="home" href="index.html" title="AsciiDoc User Guide" /><link rel="up" href="index.html" title="AsciiDoc User Guide" /><link rel="prev" href="go01.html" title="Glossary" /><link rel="next" href="apb.html" title="B. Packager Notes" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">A. Migration Notes</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="go01.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="apb.html">Next</a></td></tr></table><hr /></div><div class="appendix" lang="en" xml:lang="en"><div class="titlepage"><div><div><h2 class="title"><a id="_migration_notes"></a>A. Migration Notes</h2></div></div></div><div class="section" lang="en" xml:lang="en"><div class="titlepage"><div><div><h3 class="title"><a id="X53"></a>Version 7 to version 8</h3></div></div></div><div class="itemizedlist"><ul type="disc"><li>
4
- A new set of quotes has been introduced which may match inline text
5
- in existing documents — if they do you’ll need to escape the
6
- matched text with backslashes.
7
- </li><li>
8
- The index entry inline macro syntax has changed — if your documents
9
- include indexes you may need to edit them.
10
- </li><li>
11
- Replaced a2x(1) <code class="literal">--no-icons</code> and <code class="literal">--no-copy</code> options with their
12
- negated equivalents: <code class="literal">--icons</code> and <code class="literal">--copy</code> respectively. The
13
- default behavior has also changed — the use of icons and copying of
14
- icon and CSS files must be specified explicitly with the <code class="literal">--icons</code>
15
- and <code class="literal">--copy</code> options.
16
- </li></ul></div><p>The rationale for the changes can be found in the AsciiDoc
17
- <code class="literal">CHANGELOG</code>.</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>If you want to disable unconstrained quotes, the new alternative
18
- constrained quotes syntax and the new index entry syntax then you can
19
- define the attribute <code class="literal">asciidoc7compatible</code> (for example by using the
20
- <code class="literal">-a asciidoc7compatible</code> command-line option).</p></div></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="go01.html">Prev</a> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="apb.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Glossary </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> B. Packager Notes</td></tr></table></div></body></html>
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>B. Packager Notes</title><link rel="stylesheet" href="stylesheets/handbookish.css" type="text/css" /><meta name="generator" content="DocBook XSL Stylesheets V1.74.1" /><link rel="home" href="index.html" title="AsciiDoc User Guide" /><link rel="up" href="index.html" title="AsciiDoc User Guide" /><link rel="prev" href="apa.html" title="A. Migration Notes" /><link rel="next" href="apc.html" title="C. AsciiDoc Safe Mode" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">B. Packager Notes</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="apa.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="apc.html">Next</a></td></tr></table><hr /></div><div class="appendix" lang="en" xml:lang="en"><div class="titlepage"><div><div><h2 class="title"><a id="X38"></a>B. Packager Notes</h2></div></div></div><p>Read the <code class="literal">README</code> and <code class="literal">INSTALL</code> files (in the distribution root
4
- directory) for install prerequisites and procedures. The distribution
5
- <code class="literal">Makefile.in</code> (used by <code class="literal">configure</code> to generate the <code class="literal">Makefile</code>) is the
6
- canonical installation procedure.</p></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="apa.html">Prev</a> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="apc.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">A. Migration Notes </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> C. AsciiDoc Safe Mode</td></tr></table></div></body></html>
@@ -1,24 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>C. AsciiDoc Safe Mode</title><link rel="stylesheet" href="stylesheets/handbookish.css" type="text/css" /><meta name="generator" content="DocBook XSL Stylesheets V1.74.1" /><link rel="home" href="index.html" title="AsciiDoc User Guide" /><link rel="up" href="index.html" title="AsciiDoc User Guide" /><link rel="prev" href="apb.html" title="B. Packager Notes" /><link rel="next" href="apd.html" title="D. Using AsciiDoc with non-English Languages" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">C. AsciiDoc Safe Mode</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="apb.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="apd.html">Next</a></td></tr></table><hr /></div><div class="appendix" lang="en" xml:lang="en"><div class="titlepage"><div><div><h2 class="title"><a id="X39"></a>C. AsciiDoc Safe Mode</h2></div></div></div><p>AsciiDoc <span class="emphasis"><em>safe mode</em></span> skips potentially dangerous scripted sections in
4
- AsciiDoc source files by inhibiting the execution of arbitrary code or
5
- the inclusion of arbitrary files.</p><p>The safe mode is disabled by default, it can be enabled with the
6
- asciidoc(1) <code class="literal">--safe</code> command-line option.</p><div class="itemizedlist"><p class="title"><b>Safe mode constraints</b></p><ul type="disc"><li>
7
- <code class="literal">eval</code>, <code class="literal">sys</code> and <code class="literal">sys2</code> executable attributes and block macros are
8
- not executed.
9
- </li><li>
10
- <code class="literal">include::&lt;filename&gt;[]</code> and <code class="literal">include1::&lt;filename&gt;[]</code> block macro
11
- files must reside inside the parent file’s directory.
12
- </li><li>
13
- <code class="literal">{include:&lt;filename&gt;}</code> executable attribute files must reside
14
- inside the source document directory.
15
- </li><li>
16
- Passthrough Blocks are dropped.
17
- </li></ul></div><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p>The safe mode is not designed to protect against unsafe AsciiDoc
18
- configuration files. Be especially careful when:</p><div class="orderedlist"><ol type="1"><li>
19
- Implementing filters.
20
- </li><li>
21
- Implementing elements that don’t escape special characters.
22
- </li><li>
23
- Accepting configuration files from untrusted sources.
24
- </li></ol></div></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="apb.html">Prev</a> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="apd.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">B. Packager Notes </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> D. Using AsciiDoc with non-English Languages</td></tr></table></div></body></html>
@@ -1,30 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>D. Using AsciiDoc with non-English Languages</title><link rel="stylesheet" href="stylesheets/handbookish.css" type="text/css" /><meta name="generator" content="DocBook XSL Stylesheets V1.74.1" /><link rel="home" href="index.html" title="AsciiDoc User Guide" /><link rel="up" href="index.html" title="AsciiDoc User Guide" /><link rel="prev" href="apc.html" title="C. AsciiDoc Safe Mode" /><link rel="next" href="ape.html" title="E. Vim Syntax Highlighter" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">D. Using AsciiDoc with non-English Languages</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="apc.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="ape.html">Next</a></td></tr></table><hr /></div><div class="appendix" lang="en" xml:lang="en"><div class="titlepage"><div><div><h2 class="title"><a id="_using_asciidoc_with_non_english_languages"></a>D. Using AsciiDoc with non-English Languages</h2></div></div></div><p>AsciiDoc can process UTF-8 character sets but there are some things
4
- you need to be aware of:</p><div class="itemizedlist"><ul type="disc"><li><p>
5
- If you are generating output documents using a DocBook toolchain
6
- then you should set the AsciiDoc <code class="literal">lang</code> attribute to the appropriate
7
- language (it defaults to <code class="literal">en</code> (English)). This will ensure things
8
- like table of contents, figure and table captions and admonition
9
- captions are output in the specified language. For example:
10
- </p><pre class="literallayout">$ a2x -a lang=es doc/article.txt</pre></li><li><p>
11
- If you are outputting HTML directly from asciidoc(1) you’ll
12
- need to set the various <code class="literal">*_caption</code> attributes to match your target
13
- language (see the list of captions and titles in the <code class="literal">[attributes]</code>
14
- section of the distribution <code class="literal">lang-*.conf</code> files). The easiest way is
15
- to create a language <code class="literal">.conf</code> file (see the AsciiDoc’s <code class="literal">lang-en.conf</code>
16
- file).
17
- </p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>You still use the <span class="emphasis"><em>NOTE</em></span>, <span class="emphasis"><em>CAUTION</em></span>, <span class="emphasis"><em>TIP</em></span>, <span class="emphasis"><em>WARNING</em></span>,
18
- <span class="emphasis"><em>IMPORTANT</em></span> captions in the AsciiDoc source, they get translated in
19
- the HTML output file.</p></div></li><li>
20
- asciidoc(1) automatically loads configuration files named like
21
- <code class="literal">lang-&lt;lang&gt;.conf</code> where <code class="literal">&lt;lang&gt;</code> is a two letter language code that
22
- matches the current AsciiDoc <code class="literal">lang</code> attribute. See also
23
- <a class="link" href="ar01s22.html#X27" title="Configuration File Names and Locations">Configuration File Names and Locations</a>.
24
- </li><li>
25
- Some character sets display double-width characters (for example
26
- Japanese). As far as <a class="link" href="ar01s08.html" title="Titles">title underlines</a> are concerned they
27
- should be treated as single character. If you think this looks
28
- untidy so you may prefer to use the <a class="link" href="ar01s08.html#X46" title="One line titles">single line title</a>
29
- format.
30
- </li></ul></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="apc.html">Prev</a> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="ape.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">C. AsciiDoc Safe Mode </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> E. Vim Syntax Highlighter</td></tr></table></div></body></html>
@@ -1,26 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>E. Vim Syntax Highlighter</title><link rel="stylesheet" href="stylesheets/handbookish.css" type="text/css" /><meta name="generator" content="DocBook XSL Stylesheets V1.74.1" /><link rel="home" href="index.html" title="AsciiDoc User Guide" /><link rel="up" href="index.html" title="AsciiDoc User Guide" /><link rel="prev" href="apd.html" title="D. Using AsciiDoc with non-English Languages" /><link rel="next" href="apf.html" title="F. Attribute Options" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">E. Vim Syntax Highlighter</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="apd.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="apf.html">Next</a></td></tr></table><hr /></div><div class="appendix" lang="en" xml:lang="en"><div class="titlepage"><div><div><h2 class="title"><a id="_vim_syntax_highlighter"></a>E. Vim Syntax Highlighter</h2></div></div></div><p>Syntax highlighting is incredibly useful, in addition to making
4
- reading AsciiDoc documents much easier syntax highlighting also helps
5
- you catch AsciiDoc syntax errors as you write your documents.</p><p>The AsciiDoc <code class="literal">./vim/</code> distribution directory contains Vim syntax
6
- highlighter and filetype detection scripts for AsciiDoc. Syntax
7
- highlighting makes it much easier to spot AsciiDoc syntax errors.</p><p>If Vim is installed on your system the AsciiDoc installer
8
- (<code class="literal">install.sh</code>) will automatically install the vim scripts in the Vim
9
- global configuration directory (<code class="literal">/etc/vim</code>).</p><p>You can also turn on syntax highlighting by adding the following line
10
- to the end of you AsciiDoc source files:</p><pre class="literallayout">// vim: set syntax=asciidoc:</pre><div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Tip</h3><p>Bold fonts are often easier to read, use the Vim <code class="literal">:set
11
- background=dark</code> command to set bold bright fonts.</p></div><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>There are a number of alternative syntax highlighters for
12
- various editors listed on the <a class="ulink" href="http://www.methods.co.nz/asciidoc/" target="_top">AsciiDoc website</a>.</p></div><div class="section" lang="en" xml:lang="en"><div class="titlepage"><div><div><h3 class="title"><a id="_limitations"></a>Limitations</h3></div></div></div><p>The current implementation does a reasonable job but on occasions gets
13
- things wrong:</p><div class="itemizedlist"><ul type="disc"><li>
14
- Nested quoted text formatting is highlighted according to the outer
15
- format.
16
- </li><li>
17
- If a closing Example Block delimiter is sometimes mistaken for a
18
- title underline. A workaround is to insert a blank line before the
19
- closing delimiter.
20
- </li><li>
21
- Lines within a paragraph starting with equals characters may be
22
- highlighted as single-line titles.
23
- </li><li>
24
- Lines within a paragraph beginning with a period may be highlighted
25
- as block titles.
26
- </li></ul></div></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="apd.html">Prev</a> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="apf.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">D. Using AsciiDoc with non-English Languages </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> F. Attribute Options</td></tr></table></div></body></html>
@@ -1,9 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>F. Attribute Options</title><link rel="stylesheet" href="stylesheets/handbookish.css" type="text/css" /><meta name="generator" content="DocBook XSL Stylesheets V1.74.1" /><link rel="home" href="index.html" title="AsciiDoc User Guide" /><link rel="up" href="index.html" title="AsciiDoc User Guide" /><link rel="prev" href="ape.html" title="E. Vim Syntax Highlighter" /><link rel="next" href="apg.html" title="G. Diagnostics" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">F. Attribute Options</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ape.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="apg.html">Next</a></td></tr></table><hr /></div><div class="appendix" lang="en" xml:lang="en"><div class="titlepage"><div><div><h2 class="title"><a id="X74"></a>F. Attribute Options</h2></div></div></div><p>Here is the list of predefined <a class="link" href="ar01s25.html#X75" title="Options attribute">attribute list options</a>:</p><div class="informaltable"><table border="1"><colgroup><col /><col /><col /><col /></colgroup><thead><tr><th align="left" valign="top">Option</th><th align="left" valign="top">Backends</th><th align="left" valign="top">AsciiDoc Elements</th><th align="left" valign="top">Description</th></tr></thead><tbody><tr><td align="left" valign="top"><p><span class="emphasis"><em>autowidth</em></span></p></td><td align="left" valign="top"><p>xhtml11,html4</p></td><td align="left" valign="top"><p>table</p></td><td align="left" valign="top"><p>The column widths are determined by the browser, not the AsciiDoc
4
- <span class="emphasis"><em>cols</em></span> attribute. If there is no <span class="emphasis"><em>width</em></span> attribute the table width is
5
- also left up to the browser.</p></td></tr><tr><td align="left" valign="top"><p><span class="emphasis"><em>breakable, unbreakable</em></span></p></td><td align="left" valign="top"><p>docbook (XSL/FO)</p></td><td align="left" valign="top"><p>table, example, block image</p></td><td align="left" valign="top"><p>The <span class="emphasis"><em>breakable</em></span> options allows block elements to break across page
6
- boundaries; <span class="emphasis"><em>unbreakable</em></span> attempts to keep the block element together
7
- on a single page. If neither option is specified the default XSL
8
- stylesheet behavior prevails.</p></td></tr><tr><td align="left" valign="top"><p><span class="emphasis"><em>compact</em></span></p></td><td align="left" valign="top"><p>docbook, xhtml11</p></td><td align="left" valign="top"><p>bulleted list, numbered list</p></td><td align="left" valign="top"><p>Minimizes vertical space in the list</p></td></tr><tr><td align="left" valign="top"><p><span class="emphasis"><em>footer</em></span></p></td><td align="left" valign="top"><p>docbook, xhtml11, html4</p></td><td align="left" valign="top"><p>table</p></td><td align="left" valign="top"><p>The last row of the table is rendered as a footer.</p></td></tr><tr><td align="left" valign="top"><p><span class="emphasis"><em>header</em></span></p></td><td align="left" valign="top"><p>docbook, xhtml11, html4</p></td><td align="left" valign="top"><p>table</p></td><td align="left" valign="top"><p>The first row of the table is rendered as a header.</p></td></tr><tr><td align="left" valign="top"><p><span class="emphasis"><em>pgwide</em></span></p></td><td align="left" valign="top"><p>docbook (XSL/FO)</p></td><td align="left" valign="top"><p>table, block image, horizontal labeled list</p></td><td align="left" valign="top"><p>Specifies that the element should be rendered across the full text
9
- width of the page irrespective of the current indentation.</p></td></tr><tr><td align="left" valign="top"><p><span class="emphasis"><em>strong</em></span></p></td><td align="left" valign="top"><p>xhtml11,html4</p></td><td align="left" valign="top"><p>labeled lists</p></td><td align="left" valign="top"><p>Emboldens label text.</p></td></tr></tbody></table></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ape.html">Prev</a> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="apg.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">E. Vim Syntax Highlighter </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> G. Diagnostics</td></tr></table></div></body></html>
@@ -1,42 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>G. Diagnostics</title><link rel="stylesheet" href="stylesheets/handbookish.css" type="text/css" /><meta name="generator" content="DocBook XSL Stylesheets V1.74.1" /><link rel="home" href="index.html" title="AsciiDoc User Guide" /><link rel="up" href="index.html" title="AsciiDoc User Guide" /><link rel="prev" href="apf.html" title="F. Attribute Options" /><link rel="next" href="aph.html" title="H. Backend Attributes" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">G. Diagnostics</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="apf.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="aph.html">Next</a></td></tr></table><hr /></div><div class="appendix" lang="en" xml:lang="en"><div class="titlepage"><div><div><h2 class="title"><a id="X82"></a>G. Diagnostics</h2></div></div></div><p>The <code class="literal">asciidoc(1)</code> <code class="literal">--verbose</code> command-line option prints additional
4
- information to stderr: files processed, filters processed, warnings,
5
- system attribute evaluation.</p><p>A special attribute named <span class="emphasis"><em>trace</em></span> controls the output of diagnostic
6
- information. If the <span class="emphasis"><em>trace</em></span> attribute is defined then
7
- element-by-element diagnostic messages detailing output markup
8
- generation are printed to stderr. The <span class="emphasis"><em>trace</em></span> attribute can be set on
9
- the command-line or from within the document using <a class="link" href="ar01s24.html" title="Attribute Entries">Attribute Entries</a> (the latter allows tracing to be confined to specific
10
- portions of the document).</p><div class="itemizedlist"><ul type="disc"><li>
11
- Trace messages consist of a descriptive name followed by the related
12
- markup.
13
- </li><li>
14
- The trace message is only printed if the <span class="emphasis"><em>trace</em></span> attribute value
15
- matches the start of the trace name. The <span class="emphasis"><em>trace</em></span> attribute value can
16
- be any Python regular expression.
17
- </li><li>
18
- A blank trace value matches all trace names and all trace messages
19
- will be printed (this can result in large amounts of output if
20
- applied to the whole document).
21
- </li><li><p>
22
- In the case of inline substitutions:
23
- </p><div class="itemizedlist"><ul type="circle"><li>
24
- The text before and after the substitution are printed delineated
25
- by <code class="literal">&lt;&lt;&lt;</code> and <code class="literal">&gt;&gt;&gt;</code> delimiters.
26
- </li><li>
27
- The message is only printed if a substitution is made.
28
- </li><li>
29
- The <span class="emphasis"><em>subs</em></span> trace value is an alias for all inline substitutions.
30
- </li></ul></div></li></ul></div><p>Command-line examples:</p><div class="orderedlist"><ol type="1"><li><p>
31
- Trace the entire document.
32
- </p><pre class="literallayout">$ asciidoc -a trace mydoc.txt</pre></li><li><p>
33
- Trace messages whose names start with <code class="literal">quotes</code> or <code class="literal">macros</code>:
34
- </p><pre class="literallayout">$ asciidoc -a 'trace=quotes|macros' mydoc.txt</pre></li><li><p>
35
- Print the first line of all trace messages:
36
- </p><pre class="literallayout">$ asciidoc -a trace mydoc.txt 2&gt;&amp;1 | grep ^TRACE:</pre></li></ol></div><p>Attribute Entry examples:</p><div class="orderedlist"><ol type="1"><li><p>
37
- Begin printing all trace messages:
38
- </p><pre class="literallayout">:trace:</pre></li><li><p>
39
- Print only matched trace messages:
40
- </p><pre class="literallayout">:trace: quotes|macros</pre></li><li><p>
41
- Turn trace messages off:
42
- </p><pre class="literallayout">:trace!:</pre></li></ol></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="apf.html">Prev</a> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="aph.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">F. Attribute Options </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> H. Backend Attributes</td></tr></table></div></body></html>
@@ -1,89 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>H. Backend Attributes</title><link rel="stylesheet" href="stylesheets/handbookish.css" type="text/css" /><meta name="generator" content="DocBook XSL Stylesheets V1.74.1" /><link rel="home" href="index.html" title="AsciiDoc User Guide" /><link rel="up" href="index.html" title="AsciiDoc User Guide" /><link rel="prev" href="apg.html" title="G. Diagnostics" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">H. Backend Attributes</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="apg.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> </td></tr></table><hr /></div><div class="appendix" lang="en" xml:lang="en"><div class="titlepage"><div><div><h2 class="title"><a id="X88"></a>H. Backend Attributes</h2></div></div></div><p>This table contains a list of optional attributes that influence the
4
- generated outputs.</p><div class="informaltable"><table border="1"><colgroup><col /><col /><col /></colgroup><thead><tr><th align="left" valign="top">Name </th><th align="left" valign="top">Backends </th><th align="left" valign="top">Description</th></tr></thead><tbody><tr><td align="left" valign="top"><p><span class="emphasis"><em>badges</em></span></p></td><td align="left" valign="top"><p>xhtml11</p></td><td align="left" valign="top"><p>Link badges (<span class="emphasis"><em>XHTML 1.1</em></span>, <span class="emphasis"><em>CSS</em></span> and <span class="emphasis"><em>Get Firefox!</em></span>) in document
5
- footers. By default badges are omitted (<span class="emphasis"><em>badges</em></span> is undefined).</p>
6
- <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>The path names of images, icons and scripts are relative path
7
- names to the output document not the source document.</p></div></td></tr><tr><td align="left" valign="top"><p><span class="emphasis"><em>data-uri</em></span></p></td><td align="left" valign="top"><p>xhtml11</p></td><td align="left" valign="top"><p>Embed images using the <a class="link" href="ar01s18.html#X66" title="Embedding images in XHTML documents">data: uri scheme</a>.</p></td></tr><tr><td align="left" valign="top"><p><span class="emphasis"><em>disable-javascript</em></span></p></td><td align="left" valign="top"><p>xhtml11</p></td><td align="left" valign="top"><p>If the <code class="literal">disable-javascript</code> attribute is defined the <code class="literal">asciidoc.js</code>
8
- JavaScript is not embedded or linked to the output document. By
9
- default AsciiDoc automatically embeds or links the <code class="literal">asciidoc.js</code>
10
- JavaScript to the <span class="emphasis"><em>xhtml11</em></span> output document. The script dynamically
11
- generates <a class="link" href="aph.html#X91">table of contents</a> and <a class="link" href="ar01s15.html" title="Footnotes">footnotes</a>.</p></td></tr><tr><td align="left" valign="top"><p><span class="emphasis"><em><a id="X97"></a> docinfo, docinfo1, docinfo2</em></span></p></td><td align="left" valign="top"><p>All backends</p></td><td align="left" valign="top"><p>These three attributes control which <a class="link" href="ar01s05.html#X87" title="Additional document header information">document information files</a> will be included in the the header of the output file:</p>
12
- <div class="variablelist"><dl><dt><span class="term">
13
- docinfo
14
- </span></dt><dd>
15
- Include <code class="literal">&lt;filename&gt;-docinfo.&lt;ext&gt;</code>
16
- </dd><dt><span class="term">
17
- docinfo1
18
- </span></dt><dd>
19
- Include <code class="literal">docinfo.&lt;ext&gt;</code>
20
- </dd><dt><span class="term">
21
- docinfo2
22
- </span></dt><dd>
23
- Include <code class="literal">docinfo.&lt;ext&gt;</code> and <code class="literal">&lt;filename&gt;-docinfo.&lt;ext&gt;</code>
24
- </dd></dl></div>
25
- <p>Where <code class="literal">&lt;filename&gt;</code> is the file name of (sans extension) of the
26
- AsciiDoc input file and <code class="literal">&lt;ext&gt;</code> is <code class="literal">.html</code> for HTML outputs or <code class="literal">.xml</code>
27
- for DocBook outputs. The following example will include the
28
- <code class="literal">mydoc-docinfo.xml</code> docinfo file in the DocBook <code class="literal">mydoc.xml</code> output
29
- file:</p>
30
- <pre class="literallayout">$ asciidoc -a docinfo -b docbook mydoc.txt</pre>
31
- <p>This next example will include <code class="literal">docinfo.html</code> and <code class="literal">mydoc-docinfo.html</code>
32
- docinfo files in the HTML output file:</p>
33
- <pre class="literallayout">$ asciidoc -a docinfo2 -b html4 mydoc.txt</pre></td></tr><tr><td align="left" valign="top"><p><span class="emphasis"><em><a id="X54"></a>encoding</em></span></p></td><td align="left" valign="top"><p>html4, xhtml11, docbook</p></td><td align="left" valign="top"><p>Set the input and output document character set encoding. For example
34
- the <code class="literal">--attribute encoding=ISO-8859-1</code> command-line option will set the
35
- character set encoding to <code class="literal">ISO-8859-1</code>.</p>
36
- <div class="itemizedlist"><ul type="disc"><li>
37
- The default encoding is UTF-8.
38
- </li><li>
39
- This attribute specifies the character set in the output document.
40
- </li><li>
41
- The encoding name must correspond to a Python codec name or alias.
42
- </li><li><p>
43
- The <span class="emphasis"><em>encoding</em></span> attribute can be set using an AttributeEntry inside
44
- the document header. For example:
45
- </p><pre class="literallayout">:encoding: ISO-8859-1</pre></li></ul></div></td></tr><tr><td align="left" valign="top"><p><span class="emphasis"><em><a id="X45"></a>icons</em></span></p></td><td align="left" valign="top"><p>xhtml11</p></td><td align="left" valign="top"><p>Link admonition paragraph and admonition block icon images and badge
46
- images. By default <span class="emphasis"><em>icons</em></span> is undefined and text is used in place of
47
- icon images.</p></td></tr><tr><td align="left" valign="top"><p><span class="emphasis"><em><a id="X44"></a>iconsdir</em></span></p></td><td align="left" valign="top"><p>html4, xhtml11, docbook</p></td><td align="left" valign="top"><p>The name of the directory containing linked admonition and navigation
48
- icons. Defaults to <code class="literal">./images/icons</code>.</p></td></tr><tr><td align="left" valign="top"><p><span class="emphasis"><em>imagesdir</em></span></p></td><td align="left" valign="top"><p>html4, xhtml11, docbook</p></td><td align="left" valign="top"><p>If this attribute is defined it is prepended to the target image file
49
- name paths in inline and block image macros.</p></td></tr><tr><td align="left" valign="top"><p><span class="emphasis"><em>keywords, description, title</em></span></p></td><td align="left" valign="top"><p>html4, xhtml11</p></td><td align="left" valign="top"><p>The <span class="emphasis"><em>keywords</em></span> and <span class="emphasis"><em>description</em></span> attributes set the correspondingly
50
- named HTML meta tag contents; the <span class="emphasis"><em>title</em></span> attribute sets the HTML
51
- title tag contents. Their principle use is for SEO (Search Engine
52
- Optimisation). All three are optional, but if they are used they must
53
- appear in the document header (or on the command-line). If <span class="emphasis"><em>title</em></span> is
54
- not specified the AsciiDoc document title is used.</p></td></tr><tr><td align="left" valign="top"><p><span class="emphasis"><em>linkcss</em></span></p></td><td align="left" valign="top"><p>xhtml11</p></td><td align="left" valign="top"><p>Link CSS stylesheets and JavaScripts (see the <span class="emphasis"><em>stylesdir</em></span> and
55
- <span class="emphasis"><em>scriptsdir</em></span> attributes below). By default <span class="emphasis"><em>linkcss</em></span> is undefined in
56
- which case stylesheets and scripts are automatically embedded in the
57
- output document.</p></td></tr><tr><td align="left" valign="top"><p><span class="emphasis"><em>max-width</em></span></p></td><td align="left" valign="top"><p>xhtml11</p></td><td align="left" valign="top"><p>Set the document maximum display width (sets the <span class="emphasis"><em>body</em></span> element CSS
58
- <span class="emphasis"><em>max-width</em></span> property).</p></td></tr><tr><td align="left" valign="top"><p><span class="emphasis"><em>numbered</em></span></p></td><td align="left" valign="top"><p>html4, xhtml11, docbook (XSL Stylesheets)</p></td><td align="left" valign="top"><p>Adds section numbers to section titles. The <span class="emphasis"><em>docbook</em></span> backend ignores
59
- <span class="emphasis"><em>numbered</em></span> attribute entries after the document header.</p></td></tr><tr><td align="left" valign="top"><p><span class="emphasis"><em>plaintext</em></span></p></td><td align="left" valign="top"><p>All backends</p></td><td align="left" valign="top"><p>If this global attribute is defined all inline substitutions are
60
- suppressed and block indents are retained. This option is useful when
61
- dealing with large amounts of imported plain text.</p></td></tr><tr><td align="left" valign="top"><p><span class="emphasis"><em>quirks</em></span></p></td><td align="left" valign="top"><p>xhtml11</p></td><td align="left" valign="top"><p>Include the <code class="literal">xhtml11-quirks.css</code> <a class="link" href="ar01s04.html#X35" title="XHTML Stylesheets">stylesheet</a> to work around IE6
62
- browser incompatibilities.</p></td></tr><tr><td align="left" valign="top"><p><span class="emphasis"><em>revremark</em></span></p></td><td align="left" valign="top"><p>docbook</p></td><td align="left" valign="top"><p>A short summary of changes in this document revision. Must be defined
63
- prior to the first document section. The document also needs to be
64
- dated to output this attribute.</p></td></tr><tr><td align="left" valign="top"><p><span class="emphasis"><em>scriptsdir</em></span></p></td><td align="left" valign="top"><p>xhtml11</p></td><td align="left" valign="top"><p>The name of the directory containing linked JavaScripts. Defaults to
65
- <code class="literal">.</code> (the same directory as the linking document).</p></td></tr><tr><td align="left" valign="top"><p><span class="emphasis"><em>sgml</em></span></p></td><td align="left" valign="top"><p>docbook45</p></td><td align="left" valign="top"><p>The <code class="literal">--backend=docbook45</code> command-line option produces DocBook 4.5
66
- XML. You can produce the older DocBook SGML format using the
67
- <code class="literal">--attribute sgml</code> command-line option.</p></td></tr><tr><td align="left" valign="top"><p><span class="emphasis"><em>stylesdir</em></span></p></td><td align="left" valign="top"><p>xhtml11</p></td><td align="left" valign="top"><p>The name of the directory containing linked stylesheets. Defaults to
68
- <code class="literal">.</code> (the same directory as the linking document).</p></td></tr><tr><td align="left" valign="top"><p><span class="emphasis"><em>stylesheet</em></span></p></td><td align="left" valign="top"><p>xhtml11</p></td><td align="left" valign="top"><p>The file name of an optional additional CSS stylesheet. If you are
69
- embedding the stylesheet specify the actual file location; if you are
70
- linking CSS specify the file name relative to the directory specified
71
- by the <span class="emphasis"><em>stylesdir</em></span> attribute.</p></td></tr><tr><td align="left" valign="top"><p><span class="emphasis"><em>theme</em></span></p></td><td align="left" valign="top"><p>xhtml11</p></td><td align="left" valign="top"><p>Use alternative stylesheets (see <a class="link" href="ar01s04.html#X35" title="XHTML Stylesheets">Stylesheets</a>).</p></td></tr><tr><td align="left" valign="top"><p><span class="emphasis"><em><a id="X91"></a>toc</em></span></p></td><td align="left" valign="top"><p>xhtml11, docbook (XSL Stylesheets)</p></td><td align="left" valign="top"><p>Adds a table of contents to the start of an article or book document.
72
- The <code class="literal">toc</code> attribute can be specified using the <code class="literal">--attribute toc</code>
73
- command-line option or a <code class="literal">:toc:</code> attribute entry in the document
74
- header. The <span class="emphasis"><em>toc</em></span> attribute is defined by default when the <span class="emphasis"><em>docbook</em></span>
75
- backend is used. To disable table of contents generation undefine the
76
- <span class="emphasis"><em>toc</em></span> attribute by putting a <code class="literal">:toc!:</code> attribute entry in the document
77
- header or from the command-line with an <code class="literal">--attribute toc!</code> option.</p>
78
- <p><span class="strong"><strong>xhtml11 backend</strong></span></p>
79
- <div class="itemizedlist"><ul type="disc"><li>
80
- JavaScript needs to be enabled in your browser.
81
- </li><li><p>
82
- The following example generates a numbered table of contents using a
83
- JavaScript embedded in the <code class="literal">mydoc.html</code> output document (to link the
84
- script to the output document use the <span class="emphasis"><em>linkcss</em></span> and <span class="emphasis"><em>scriptsdir</em></span>
85
- attributes):
86
- </p><pre class="literallayout">$ asciidoc -a toc -a numbered mydoc.txt</pre></li></ul></div></td></tr><tr><td align="left" valign="top"><p><span class="emphasis"><em>toc-title</em></span></p></td><td align="left" valign="top"><p>xhtml11</p></td><td align="left" valign="top"><p>Sets the table of contents title (defaults to <span class="emphasis"><em>Table of Contents</em></span>).</p></td></tr><tr><td align="left" valign="top"><p><span class="emphasis"><em>toclevels</em></span></p></td><td align="left" valign="top"><p>xhtml11</p></td><td align="left" valign="top"><p>Sets the number of title levels (1..4) reported in the table of
87
- contents (see the <span class="emphasis"><em>toc</em></span> attribute above). Defaults to 2 and must be
88
- used with the <span class="emphasis"><em>toc</em></span> attribute. Example usage:</p>
89
- <pre class="literallayout">$ asciidoc -a toc -a toclevels=3 doc/asciidoc.txt</pre></td></tr></tbody></table></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="apg.html">Prev</a> </td><td width="20%" align="center"> </td><td width="40%" align="right"> </td></tr><tr><td width="40%" align="left" valign="top">G. Diagnostics </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> </td></tr></table></div></body></html>
@@ -1,12 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Getting Started</title><link rel="stylesheet" href="stylesheets/handbookish.css" type="text/css" /><meta name="generator" content="DocBook XSL Stylesheets V1.74.1" /><link rel="home" href="index.html" title="AsciiDoc User Guide" /><link rel="up" href="index.html" title="AsciiDoc User Guide" /><link rel="prev" href="index.html" title="AsciiDoc User Guide" /><link rel="next" href="ar01s03.html" title="AsciiDoc Document Types" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Getting Started</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="index.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="ar01s03.html">Next</a></td></tr></table><hr /></div><div class="section" lang="en" xml:lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="X6"></a>Getting Started</h2></div></div></div><div class="section" lang="en" xml:lang="en"><div class="titlepage"><div><div><h3 class="title"><a id="_installing_asciidoc"></a>Installing AsciiDoc</h3></div></div></div><p>See the <code class="literal">README</code> and <code class="literal">INSTALL</code> files for install prerequisites and
4
- procedures. Packagers take a look at <a class="link" href="apb.html" title="B. Packager Notes">Packager Notes</a>.</p></div><div class="section" lang="en" xml:lang="en"><div class="titlepage"><div><div><h3 class="title"><a id="X11"></a>Example AsciiDoc Documents</h3></div></div></div><p>The best way to quickly get a feel for AsciiDoc is to view the
5
- AsciiDoc web site and/or distributed examples:</p><div class="itemizedlist"><ul type="disc"><li>
6
- Take a look at the linked examples on the AsciiDoc web site home
7
- page <a class="ulink" href="http://www.methods.co.nz/asciidoc/" target="_top">http://www.methods.co.nz/asciidoc/</a>. Press the <span class="emphasis"><em>Page Source</em></span> sidebar menu item to view
8
- corresponding AsciiDoc source.
9
- </li><li>
10
- Read the <code class="literal">*.txt</code> source files in the distribution <code class="literal">./doc</code> directory
11
- along with the corresponding HTML and DocBook XML files.
12
- </li></ul></div></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="index.html">Prev</a> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="ar01s03.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">AsciiDoc User Guide </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> AsciiDoc Document Types</td></tr></table></div></body></html>
@@ -1,34 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>AsciiDoc Document Types</title><link rel="stylesheet" href="stylesheets/handbookish.css" type="text/css" /><meta name="generator" content="DocBook XSL Stylesheets V1.74.1" /><link rel="home" href="index.html" title="AsciiDoc User Guide" /><link rel="up" href="index.html" title="AsciiDoc User Guide" /><link rel="prev" href="ar01s02.html" title="Getting Started" /><link rel="next" href="ar01s04.html" title="AsciiDoc Backends" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">AsciiDoc Document Types</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ar01s02.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="ar01s04.html">Next</a></td></tr></table><hr /></div><div class="section" lang="en" xml:lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="_asciidoc_document_types"></a>AsciiDoc Document Types</h2></div></div></div><p>There are three types of AsciiDoc documents: article, book and
4
- manpage. All document types share the same AsciiDoc format with some
5
- minor variations. If you are familiar with DocBook you will have
6
- noticed that AsciiDoc document types correspond to the same-named
7
- DocBook document types).</p><p>Use the asciidoc(1) <code class="literal">-d</code> (<code class="literal">--doctype</code>) option to specify the AsciiDoc
8
- document type — the default document type is <span class="emphasis"><em>article</em></span>.</p><p>By convention the <code class="literal">.txt</code> file extension is used for AsciiDoc document
9
- source files.</p><div class="section" lang="en" xml:lang="en"><div class="titlepage"><div><div><h3 class="title"><a id="_article"></a>article</h3></div></div></div><p>Used for short documents, articles and general documentation. See the
10
- AsciiDoc distribution <code class="literal">./doc/article.txt</code> example.</p><p>AsciiDoc defines standard DocBook article frontmatter and backmatter
11
- <a class="link" href="ar01s05.html#X93" title="Section markup templates">section markup templates</a> (appendix, abstract, bibliography,
12
- glossary, index).</p></div><div class="section" lang="en" xml:lang="en"><div class="titlepage"><div><div><h3 class="title"><a id="_book"></a>book</h3></div></div></div><p>Books share the same format as articles, with the following
13
- differences:</p><div class="itemizedlist"><ul type="disc"><li>
14
- The part titles in multi-part books are <a class="link" href="ar01s08.html" title="Titles">top level titles</a>
15
- (same level as book title).
16
- </li><li>
17
- Some sections are book specific e.g. preface and colophon.
18
- </li></ul></div><p>Book documents will normally be used to produce DocBook output since
19
- DocBook processors can automatically generate footnotes, table of
20
- contents, list of tables, list of figures, list of examples and
21
- indexes.</p><p>AsciiDoc defines standard DocBook book frontmatter and backmatter
22
- <a class="link" href="ar01s05.html#X93" title="Section markup templates">section markup templates</a> (appendix, dedication, preface,
23
- bibliography, glossary, index, colophon).</p><div class="variablelist"><p class="title"><b>Example book documents</b></p><dl><dt><span class="term">
24
- Book
25
- </span></dt><dd>
26
- The <code class="literal">./doc/book.txt</code> file in the AsciiDoc distribution.
27
- </dd><dt><span class="term">
28
- Multi-part book
29
- </span></dt><dd>
30
- The <code class="literal">./doc/book-multi.txt</code> file in the AsciiDoc distribution.
31
- </dd></dl></div></div><div class="section" lang="en" xml:lang="en"><div class="titlepage"><div><div><h3 class="title"><a id="_manpage"></a>manpage</h3></div></div></div><p>Used to generate roff format UNIX manual pages. AsciiDoc manpage
32
- documents observe special header title and section naming conventions — see the <a class="link" href="ar01s20.html" title="Manpage Documents">Manpage Documents</a> section for details.</p><p>AsciiDoc defines the <span class="emphasis"><em>synopsis</em></span> <a class="link" href="ar01s05.html#X93" title="Section markup templates">section markup template</a> to
33
- generate the DocBook <code class="literal">refsynopsisdiv</code> section.</p><p>See also the asciidoc(1) man page source (<code class="literal">./doc/asciidoc.1.txt</code>) from
34
- the AsciiDoc distribution.</p></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ar01s02.html">Prev</a> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="ar01s04.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Getting Started </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> AsciiDoc Backends</td></tr></table></div></body></html>