mizuho 0.9.10 → 0.9.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. data/README.markdown +18 -2
  2. data/asciidoc/BUGS +3 -6
  3. data/asciidoc/BUGS.txt +0 -3
  4. data/asciidoc/CHANGELOG +660 -397
  5. data/asciidoc/CHANGELOG.txt +237 -2
  6. data/asciidoc/INSTALL +14 -14
  7. data/asciidoc/MANIFEST +2 -0
  8. data/asciidoc/Makefile.in +9 -1
  9. data/asciidoc/README +2 -2
  10. data/asciidoc/a2x.py +101 -43
  11. data/asciidoc/asciidoc.conf +18 -11
  12. data/asciidoc/asciidoc.py +615 -260
  13. data/asciidoc/common.aap +2 -2
  14. data/asciidoc/configure +9 -9
  15. data/asciidoc/configure.ac +1 -1
  16. data/asciidoc/doc/a2x.1 +34 -4
  17. data/asciidoc/doc/a2x.1.txt +12 -0
  18. data/asciidoc/doc/article.pdf +0 -0
  19. data/asciidoc/doc/asciidoc.1 +73 -29
  20. data/asciidoc/doc/asciidoc.1.txt +56 -30
  21. data/asciidoc/doc/asciidoc.dict +23 -2
  22. data/asciidoc/doc/asciidoc.txt +468 -327
  23. data/asciidoc/doc/book.epub +0 -0
  24. data/asciidoc/doc/faq.txt +201 -25
  25. data/asciidoc/doc/latex-filter.pdf +0 -0
  26. data/asciidoc/doc/music-filter.pdf +0 -0
  27. data/asciidoc/doc/publishing-ebooks-with-asciidoc.txt +1 -1
  28. data/asciidoc/doc/source-highlight-filter.pdf +0 -0
  29. data/asciidoc/doc/source-highlight-filter.txt +48 -37
  30. data/asciidoc/docbook45.conf +4 -4
  31. data/asciidoc/examples/website/ASCIIMathML.js +938 -0
  32. data/asciidoc/examples/website/CHANGELOG.txt +3056 -0
  33. data/asciidoc/examples/website/INSTALL.txt +227 -0
  34. data/asciidoc/examples/website/LaTeXMathML.js +1223 -0
  35. data/asciidoc/examples/website/README-website.txt +29 -0
  36. data/asciidoc/examples/website/README.txt +35 -0
  37. data/asciidoc/examples/website/a2x.1.txt +358 -0
  38. data/asciidoc/examples/website/asciidoc-docbook-xsl.txt +65 -0
  39. data/asciidoc/examples/website/asciidoc-graphviz-sample.txt +170 -0
  40. data/asciidoc/examples/website/asciidoc.css +533 -0
  41. data/asciidoc/examples/website/asciidoc.js +189 -0
  42. data/asciidoc/examples/website/asciidocapi.txt +189 -0
  43. data/asciidoc/examples/website/asciimathml.txt +61 -0
  44. data/asciidoc/examples/website/build-website.sh +25 -0
  45. data/asciidoc/examples/website/customers.csv +18 -0
  46. data/asciidoc/examples/website/epub-notes.txt +210 -0
  47. data/asciidoc/examples/website/faq.txt +1298 -0
  48. data/asciidoc/examples/website/index.txt +502 -0
  49. data/asciidoc/examples/website/latex-backend.txt +192 -0
  50. data/asciidoc/examples/website/latex-bugs.txt +134 -0
  51. data/asciidoc/examples/website/latex-filter.txt +196 -0
  52. data/asciidoc/examples/website/latexmathml.txt +41 -0
  53. data/asciidoc/examples/website/layout1.conf +153 -0
  54. data/asciidoc/examples/website/layout1.css +65 -0
  55. data/asciidoc/examples/website/layout2.conf +153 -0
  56. data/asciidoc/examples/website/layout2.css +83 -0
  57. data/asciidoc/examples/website/main.aap +159 -0
  58. data/asciidoc/examples/website/manpage.txt +197 -0
  59. data/asciidoc/examples/website/music-filter.txt +148 -0
  60. data/asciidoc/examples/website/newlists.txt +40 -0
  61. data/asciidoc/examples/website/newtables.txt +743 -0
  62. data/asciidoc/examples/website/plugins.txt +91 -0
  63. data/asciidoc/examples/website/publishing-ebooks-with-asciidoc.txt +398 -0
  64. data/asciidoc/examples/website/slidy-example.txt +167 -0
  65. data/asciidoc/examples/website/slidy.txt +113 -0
  66. data/asciidoc/examples/website/source-highlight-filter.txt +239 -0
  67. data/asciidoc/examples/website/support.txt +5 -0
  68. data/asciidoc/examples/website/testasciidoc.txt +231 -0
  69. data/asciidoc/examples/website/userguide.txt +5991 -0
  70. data/asciidoc/examples/website/version83.txt +37 -0
  71. data/asciidoc/examples/website/xhtml11-quirks.css +43 -0
  72. data/asciidoc/filters/latex/latex2png.py +28 -12
  73. data/asciidoc/filters/music/music2png.py +22 -6
  74. data/asciidoc/filters/source/source-highlight-filter.conf +7 -5
  75. data/asciidoc/help.conf +147 -131
  76. data/asciidoc/html4.conf +1 -0
  77. data/asciidoc/html5.conf +37 -39
  78. data/asciidoc/javascripts/asciidoc.js +3 -3
  79. data/asciidoc/lang-de.conf +4 -0
  80. data/asciidoc/lang-es.conf +2 -0
  81. data/asciidoc/lang-fr.conf +1 -1
  82. data/asciidoc/lang-hu.conf +2 -0
  83. data/asciidoc/lang-it.conf +2 -0
  84. data/asciidoc/lang-nl.conf +5 -0
  85. data/asciidoc/lang-pt-BR.conf +2 -0
  86. data/asciidoc/lang-ru.conf +2 -3
  87. data/asciidoc/latex.conf +2 -2
  88. data/asciidoc/slidy.conf +4 -2
  89. data/asciidoc/stylesheets/asciidoc.css +29 -4
  90. data/asciidoc/stylesheets/docbook-xsl.css +12 -5
  91. data/asciidoc/stylesheets/toc2.css +1 -0
  92. data/asciidoc/stylesheets/xhtml11-quirks.css +1 -1
  93. data/asciidoc/tests/data/lang-de-man-test.txt +21 -0
  94. data/asciidoc/tests/data/lang-en-man-test.txt +21 -0
  95. data/asciidoc/tests/data/lang-es-man-test.txt +21 -0
  96. data/asciidoc/tests/data/lang-fr-man-test.txt +21 -0
  97. data/asciidoc/tests/data/lang-hu-man-test.txt +21 -0
  98. data/asciidoc/tests/data/lang-it-man-test.txt +21 -0
  99. data/asciidoc/tests/data/lang-it-test.txt +106 -0
  100. data/asciidoc/tests/data/lang-nl-man-test.txt +21 -0
  101. data/asciidoc/tests/data/lang-pt-BR-man-test.txt +21 -0
  102. data/asciidoc/tests/data/lang-ru-man-test.txt +21 -0
  103. data/asciidoc/tests/data/lang-uk-man-test.txt +21 -0
  104. data/asciidoc/tests/data/testcases.conf +10 -0
  105. data/asciidoc/tests/data/testcases.txt +40 -0
  106. data/asciidoc/tests/testasciidoc.conf +143 -17
  107. data/asciidoc/tests/testasciidoc.py +11 -2
  108. data/asciidoc/{stylesheets → themes/flask}/flask.css +0 -0
  109. data/asciidoc/{stylesheets → themes/volnitsky}/volnitsky.css +1 -1
  110. data/asciidoc/vim/ftdetect/asciidoc_filetype.vim +1 -1
  111. data/asciidoc/vim/syntax/asciidoc.vim +1 -1
  112. data/asciidoc/xhtml11-quirks.conf +2 -2
  113. data/asciidoc/xhtml11.conf +35 -37
  114. data/lib/mizuho.rb +1 -1
  115. data/lib/mizuho/generator.rb +3 -1
  116. data/source-highlight/darwin/source-highlight +0 -0
  117. data/templates/juvia.js +30 -5
  118. metadata +58 -9
  119. data/asciidoc/stylesheets/asciidoc-manpage.css +0 -18
  120. data/asciidoc/stylesheets/flask-manpage.css +0 -1
  121. data/asciidoc/stylesheets/volnitsky-manpage.css +0 -1
data/asciidoc/html4.conf CHANGED
@@ -453,6 +453,7 @@ template::[footer-text]
453
453
  {title%}<title>{doctitle=}</title>
454
454
  {docinfo1,docinfo2#}{include:{docdir}/docinfo.html}
455
455
  {docinfo,docinfo2#}{include:{docdir}/{docname}-docinfo.html}
456
+ template::[docinfo]
456
457
  </head>
457
458
 
458
459
  #--------------------------------
data/asciidoc/html5.conf CHANGED
@@ -32,8 +32,8 @@ endif::asciidoc7compatible[]
32
32
  <div style="page-break-after:always"></div>
33
33
 
34
34
  [blockdef-pass]
35
- asciimath-style=template="asciimathblock",subs=[]
36
- latexmath-style=template="latexmathblock",subs=[]
35
+ asciimath-style=template="asciimathblock",subs=()
36
+ latexmath-style=template="latexmathblock",subs=()
37
37
 
38
38
  [macros]
39
39
  (?u)^(?P<name>audio|video)::(?P<target>\S*?)(\[(?P<attrlist>.*?)\])$=#
@@ -46,14 +46,14 @@ latexmath-style=template="latexmathblock",subs=[]
46
46
  `{passtext}`
47
47
 
48
48
  [asciimath-blockmacro]
49
- <div class="mathblock{role? {role}}"{id? id="{id}"}>
49
+ <div class="mathblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
50
50
  <div class="content">
51
51
  <div class="title">{title}</div>
52
52
  `{passtext}`
53
53
  </div></div>
54
54
 
55
55
  [asciimathblock]
56
- <div class="mathblock{role? {role}}"{id? id="{id}"}>
56
+ <div class="mathblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
57
57
  <div class="content">
58
58
  <div class="title">{title}</div>
59
59
  `|`
@@ -63,14 +63,14 @@ latexmath-style=template="latexmathblock",subs=[]
63
63
  {passtext}
64
64
 
65
65
  [latexmath-blockmacro]
66
- <div class="mathblock{role? {role}}"{id? id="{id}"}>
66
+ <div class="mathblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
67
67
  <div class="content">
68
68
  <div class="title">{title}</div>
69
69
  {passtext}
70
70
  </div></div>
71
71
 
72
72
  [latexmathblock]
73
- <div class="mathblock{role? {role}}"{id? id="{id}"}>
73
+ <div class="mathblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
74
74
  <div class="content">
75
75
  <div class="title">{title}</div>
76
76
  |
@@ -80,25 +80,25 @@ latexmath-style=template="latexmathblock",subs=[]
80
80
  <span class="image{role? {role}}">
81
81
  <a class="image" href="{link}">
82
82
  {data-uri%}<img src="{imagesdir=}{imagesdir?/}{target}" alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"}{title? title="{title}"}>
83
- {data-uri#}<img alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"}{title? title="{title}"} src="data:image/{eval:os.path.splitext('{target}')[1][1:]};base64,
84
- {data-uri#}{sys3:python -uc "import base64,sys; base64.encode(sys.stdin,sys.stdout)" < "{eval:os.path.join("{indir={outdir}}","{imagesdir=}","{target}")}"}">
83
+ {data-uri#}<img alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"}{title? title="{title}"} src="data:image/{eval:os.path.splitext(r'{target}')[1][1:]};base64,
84
+ {data-uri#}{sys3:"{python}" -u -c "import base64,sys; base64.encode(sys.stdin,sys.stdout)" < "{eval:os.path.join(r"{indir={outdir}}",r"{imagesdir=}",r"{target}")}"}">
85
85
  {link#}</a>
86
86
  </span>
87
87
 
88
88
  [image-blockmacro]
89
- <div class="imageblock{style? {style}}{role? {role}}"{id? id="{id}"}{align? style="text-align:{align};"}{float? style="float:{float};"}>
89
+ <div class="imageblock{style? {style}}{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}{align? style="text-align:{align};"}{float? style="float:{float};"}>
90
90
  <div class="content">
91
91
  <a class="image" href="{link}">
92
92
  {data-uri%}<img src="{imagesdir=}{imagesdir?/}{target}" alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"}>
93
- {data-uri#}<img alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"} src="data:image/{eval:os.path.splitext('{target}')[1][1:]};base64,
94
- {data-uri#}{sys:python -uc "import base64,sys; base64.encode(sys.stdin,sys.stdout)" < "{eval:os.path.join("{indir={outdir}}","{imagesdir=}","{target}")}"}">
93
+ {data-uri#}<img alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"} src="data:image/{eval:os.path.splitext(r'{target}')[1][1:]};base64,
94
+ {data-uri#}{sys:"{python}" -u -c "import base64,sys; base64.encode(sys.stdin,sys.stdout)" < "{eval:os.path.join(r"{indir={outdir}}",r"{imagesdir=}",r"{target}")}"}">
95
95
  {link#}</a>
96
96
  </div>
97
97
  <div class="title">{caption={figure-caption} {counter:figure-number}. }{title}</div>
98
98
  </div>
99
99
 
100
100
  [audio-blockmacro]
101
- <div class="audioblock{role? {role}}"{id? id="{id}"}>
101
+ <div class="audioblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
102
102
  <div class="title">{caption=}{title}</div>
103
103
  <div class="content">
104
104
  <audio src="{imagesdir=}{imagesdir?/}{target}"{autoplay-option? autoplay}{nocontrols-option! controls}{loop-option? loop}>
@@ -107,7 +107,7 @@ Your browser does not support the audio tag.
107
107
  </div></div>
108
108
 
109
109
  [video-blockmacro]
110
- <div class="videoblock{role? {role}}"{id? id="{id}"}>
110
+ <div class="videoblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
111
111
  <div class="title">{caption=}{title}</div>
112
112
  <div class="content">
113
113
  <video src="{imagesdir=}{imagesdir?/}{target}"{width? width="{width}"}{height? height="{height}"}{poster? poster="{poster}"}{autoplay-option? autoplay}{nocontrols-option! controls}{loop-option? loop}>
@@ -118,6 +118,9 @@ Your browser does not support the video tag.
118
118
  [unfloat-blockmacro]
119
119
  <div style="clear:both;"></div>
120
120
 
121
+ [toc-blockmacro]
122
+ template::[toc]
123
+
121
124
  [indexterm-inlinemacro]
122
125
  # Index term.
123
126
  {empty}
@@ -147,7 +150,7 @@ ifndef::data-uri[]
147
150
  endif::data-uri[]
148
151
  ifdef::data-uri[]
149
152
  <img alt="{index}" src="data:image/png;base64,
150
- {sys:python -uc "import base64,sys; base64.encode(sys.stdin,sys.stdout)" < "{eval:os.path.join("{indir={outdir}}","{icon={iconsdir}/callouts/{index}.png}")}"}">
153
+ {sys:"{python}" -u -c "import base64,sys; base64.encode(sys.stdin,sys.stdout)" < "{eval:os.path.join(r"{indir={outdir}}",r"{icon={iconsdir}/callouts/{index}.png}")}"}">
151
154
  endif::data-uri[]
152
155
  endif::icons[]
153
156
 
@@ -210,7 +213,7 @@ ifndef::data-uri[]
210
213
  item=<tr><td><img src="{iconsdir}/callouts/{listindex}.png" alt="{listindex}"></td><td>|</td></tr>
211
214
  endif::data-uri[]
212
215
  ifdef::data-uri[]
213
- item=<tr><td><img alt="{listindex}" src="data:image/png;base64, {sys:python -uc "import base64,sys; base64.encode(sys.stdin,sys.stdout)" < "{eval:os.path.join("{indir={outdir}}","{icon={iconsdir}/callouts/{listindex}.png}")}"}"></td><td>|</td></tr>
216
+ item=<tr><td><img alt="{listindex}" src="data:image/png;base64, {sys:"{python}" -u -c "import base64,sys; base64.encode(sys.stdin,sys.stdout)" < "{eval:os.path.join(r"{indir={outdir}}",r"{icon={iconsdir}/callouts/{listindex}.png}")}"}"></td><td>|</td></tr>
214
217
  endif::data-uri[]
215
218
  text=|
216
219
  endif::icons[]
@@ -294,7 +297,7 @@ endif::deprecated-quotes[]
294
297
 
295
298
  # Paragraph substitution.
296
299
  [paragraph]
297
- <div class="paragraph{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<p>
300
+ <div class="paragraph{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<p>
298
301
  |
299
302
  </p></div>
300
303
 
@@ -303,7 +306,7 @@ template::[admonitionblock]
303
306
 
304
307
  # Delimited blocks.
305
308
  [listingblock]
306
- <div class="listingblock{role? {role}}"{id? id="{id}"}>
309
+ <div class="listingblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
307
310
  <div class="title">{caption=}{title}</div>
308
311
  <div class="content monospaced">
309
312
  <pre>
@@ -312,7 +315,7 @@ template::[admonitionblock]
312
315
  </div></div>
313
316
 
314
317
  [literalblock]
315
- <div class="literalblock{role? {role}}"{id? id="{id}"}>
318
+ <div class="literalblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
316
319
  <div class="title">{title}</div>
317
320
  <div class="content monospaced">
318
321
  <pre>
@@ -321,14 +324,14 @@ template::[admonitionblock]
321
324
  </div></div>
322
325
 
323
326
  [sidebarblock]
324
- <div class="sidebarblock{role? {role}}"{id? id="{id}"}>
327
+ <div class="sidebarblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
325
328
  <div class="content">
326
329
  <div class="title">{title}</div>
327
330
  |
328
331
  </div></div>
329
332
 
330
333
  [openblock]
331
- <div class="openblock{role? {role}}"{id? id="{id}"}>
334
+ <div class="openblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
332
335
  <div class="title">{title}</div>
333
336
  <div class="content">
334
337
  |
@@ -341,7 +344,7 @@ template::[openblock]
341
344
  template::[quoteblock]
342
345
 
343
346
  [quoteblock]
344
- <div class="quoteblock{role? {role}}"{id? id="{id}"}>
347
+ <div class="quoteblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
345
348
  <div class="title">{title}</div>
346
349
  <div class="content">
347
350
  |
@@ -352,7 +355,7 @@ template::[quoteblock]
352
355
  </div></div>
353
356
 
354
357
  [verseblock]
355
- <div class="verseblock{role? {role}}"{id? id="{id}"}>
358
+ <div class="verseblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
356
359
  <div class="title">{title}</div>
357
360
  <pre class="content">
358
361
  |
@@ -363,19 +366,19 @@ template::[quoteblock]
363
366
  </div></div>
364
367
 
365
368
  [exampleblock]
366
- <div class="exampleblock{role? {role}}"{id? id="{id}"}>
369
+ <div class="exampleblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
367
370
  <div class="title">{caption={example-caption} {counter:example-number}. }{title}</div>
368
371
  <div class="content">
369
372
  |
370
373
  </div></div>
371
374
 
372
375
  [admonitionblock]
373
- <div class="admonitionblock{role? {role}}"{id? id="{id}"}>
376
+ <div class="admonitionblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
374
377
  <table><tr>
375
378
  <td class="icon">
376
379
  {data-uri%}{icons#}<img src="{icon={iconsdir}/{name}.png}" alt="{caption}">
377
380
  {data-uri#}{icons#}<img alt="{caption}" src="data:image/png;base64,
378
- {data-uri#}{icons#}{sys:python -uc "import base64,sys; base64.encode(sys.stdin,sys.stdout)" < "{eval:os.path.join("{indir={outdir}}","{icon={iconsdir}/{name}.png}")}"}">
381
+ {data-uri#}{icons#}{sys:"{python}" -u -c "import base64,sys; base64.encode(sys.stdin,sys.stdout)" < "{eval:os.path.join(r"{indir={outdir}}",r"{icon={iconsdir}/{name}.png}")}"}">
379
382
  {icons%}<div class="title">{caption}</div>
380
383
  </td>
381
384
  <td class="content">
@@ -418,7 +421,7 @@ bodydata=<td class="tableblock halign-{halign=left} valign-{valign=top}" {colspa
418
421
  paragraph=
419
422
 
420
423
  [table]
421
- <table class="tableblock frame-{frame=all} grid-{grid=all}{role? {role}}"{id? id="{id}"}
424
+ <table class="tableblock frame-{frame=all} grid-{grid=all}{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}
422
425
  style="
423
426
  margin-left:{align@left:0}{align@center|right:auto}; margin-right:{align@left|center:auto}{align@right:0};
424
427
  float:{float};
@@ -541,17 +544,14 @@ bodydata=<td class="tableblock halign-{colalign=left}">|</td>
541
544
  {title%}<title>{doctitle=}</title>
542
545
  ifdef::linkcss[]
543
546
  <link rel="stylesheet" href="{stylesdir=.}/{theme=asciidoc}.css" type="text/css">
544
- {doctype-manpage}<link rel="stylesheet" href="{stylesdir=.}/{theme=asciidoc}-manpage.css" type="text/css">
545
547
  ifdef::pygments[<link rel="stylesheet" href="{stylesdir=.}/pygments.css" type="text/css">]
546
548
  ifdef::toc2[<link rel="stylesheet" href="{stylesdir=.}/toc2.css" type="text/css" />]
547
549
  <link rel="stylesheet" href="{stylesdir=.}/{stylesheet}" type="text/css">
548
550
  endif::linkcss[]
549
551
  ifndef::linkcss[]
550
552
  <style type="text/css">
551
- include1::{stylesdir=./stylesheets}/{theme=asciidoc}.css[]
552
- ifdef::doctype-manpage[]
553
- include1::{stylesdir=./stylesheets}/{theme=asciidoc}-manpage.css[]
554
- endif::doctype-manpage[]
553
+ include1::{theme%}{stylesdir=./stylesheets}/asciidoc.css[]
554
+ include1::{themedir}/{theme}.css[]
555
555
  ifdef::pygments[]
556
556
  include1::{stylesdir=./stylesheets}/pygments.css[]
557
557
  endif::pygments[]
@@ -564,6 +564,7 @@ endif::linkcss[]
564
564
  ifndef::disable-javascript[]
565
565
  ifdef::linkcss[]
566
566
  <script type="text/javascript" src="{scriptsdir=.}/asciidoc.js"></script>
567
+ <script type="text/javascript" src="{scriptsdir=.}/{theme}.js"></script>
567
568
  <script type="text/javascript">
568
569
  #TODO: Escape not necessary in HTML5?
569
570
  # Escape as CDATA to pass validators.
@@ -577,6 +578,7 @@ ifndef::linkcss[]
577
578
  # Escape as CDATA to pass validators.
578
579
  /*<![CDATA[*/
579
580
  include1::{scriptsdir=./javascripts}/asciidoc.js[]
581
+ include1::{themedir}/{theme}.js[warnings=False]
580
582
  asciidoc.install({toc,toc2?{toclevels}});
581
583
  /*]]>*/
582
584
  </script>
@@ -610,8 +612,9 @@ endif::linkcss[]
610
612
  endif::latexmath[]
611
613
  {docinfo1,docinfo2#}{include:{docdir}/docinfo.html}
612
614
  {docinfo,docinfo2#}{include:{docdir}/{docname}-docinfo.html}
615
+ template::[docinfo]
613
616
  </head>
614
- <body class="{doctype}"{max-width? style="max-width:{max-width}"}>
617
+ <body class="{doctype}"{max-width? style="max-width:{max-width}"}{css-signature? id="{css-signature}"}>
615
618
  # Article, book header.
616
619
  ifndef::doctype-manpage[]
617
620
  <div id="header">
@@ -623,7 +626,7 @@ ifdef::doctitle[]
623
626
  <span id="revdate">{revdate}</span>
624
627
  <br><span id="revremark">{revremark}</span>
625
628
  endif::doctitle[]
626
- ifdef::toc,toc2[{template:toc}]
629
+ {toc,toc2#}{toc-placement$auto:}{template:toc}
627
630
  </div>
628
631
  endif::doctype-manpage[]
629
632
  # Man page header.
@@ -632,7 +635,7 @@ ifdef::doctype-manpage[]
632
635
  <h1>
633
636
  {doctitle} Manual Page
634
637
  </h1>
635
- ifdef::toc,toc2[{template:toc}]
638
+ {toc,toc2#}{toc-placement$auto:}{template:toc}
636
639
  <h2>{manname-title}</h2>
637
640
  <div class="sectionbody">
638
641
  <p>{manname} -
@@ -667,11 +670,6 @@ ifdef::icons[]
667
670
  src="http://jigsaw.w3.org/css-validator/images/vcss-blue"
668
671
  alt="Valid CSS!">
669
672
  </a>
670
- <a href="http://www.mozilla.org/products/firefox/">
671
- <img style="border:none; width:110px; height:32px;"
672
- src="http://www.spreadfirefox.com/community/images/affiliates/Buttons/110x32/safer.gif"
673
- alt="Get Firefox!">
674
- </a>
675
673
  endif::icons[]
676
674
  </div>
677
675
  endif::badges[]
@@ -39,7 +39,7 @@ toc: function (toclevels) {
39
39
 
40
40
  function tocEntries(el, toclevels) {
41
41
  var result = new Array;
42
- var re = new RegExp('[hH]([2-'+(toclevels+1)+'])');
42
+ var re = new RegExp('[hH]([1-'+(toclevels+1)+'])');
43
43
  // Function that scans the DOM tree for header elements (the DOM2
44
44
  // nodeIterator API would be a better technique but not supported by all
45
45
  // browsers).
@@ -68,7 +68,7 @@ toc: function (toclevels) {
68
68
  var i;
69
69
  for (i = 0; i < toc.childNodes.length; i++) {
70
70
  var entry = toc.childNodes[i];
71
- if (entry.nodeName == 'DIV'
71
+ if (entry.nodeName.toLowerCase() == 'div'
72
72
  && entry.getAttribute("class")
73
73
  && entry.getAttribute("class").match(/^toclevel/))
74
74
  tocEntriesToRemove.push(entry);
@@ -114,7 +114,7 @@ footnotes: function () {
114
114
  var entriesToRemove = [];
115
115
  for (i = 0; i < noteholder.childNodes.length; i++) {
116
116
  var entry = noteholder.childNodes[i];
117
- if (entry.nodeName == 'DIV' && entry.getAttribute("class") == "footnote")
117
+ if (entry.nodeName.toLowerCase() == 'div' && entry.getAttribute("class") == "footnote")
118
118
  entriesToRemove.push(entry);
119
119
  }
120
120
  for (i = 0; i < entriesToRemove.length; i++) {
@@ -55,3 +55,7 @@ endif::doctype-book[]
55
55
  ^Anhang [A-Z][:.](?P<title>.*)$=appendix
56
56
 
57
57
  endif::basebackend-docbook[]
58
+
59
+ ifdef::doctype-manpage[]
60
+ (?i)^ÜBERSICHT$=synopsis
61
+ endif::doctype-manpage[]
@@ -3,6 +3,8 @@
3
3
  #
4
4
 
5
5
  [attributes]
6
+ #TODO: Left and right single and double quote characters.
7
+
6
8
  # Captions, used by (X)HTML backends.
7
9
  # Captions on RHS are displayed in outputs.
8
10
  ifdef::basebackend-html[]
@@ -12,10 +12,10 @@ rdquo=&#0187;
12
12
  # Captions on RHS are displayed in outputs.
13
13
  ifdef::basebackend-html[]
14
14
 
15
- tip-caption=Astuce
16
15
  caution-caption=Avertissement
17
16
  important-caption=Important
18
17
  note-caption=Note
18
+ tip-caption=Astuce
19
19
  warning-caption=Attention
20
20
  figure-caption=Figure
21
21
  table-caption=Tableau
@@ -4,6 +4,8 @@
4
4
  #
5
5
 
6
6
  [attributes]
7
+ #TODO: Left and right single and double quote characters.
8
+
7
9
  # Captions, used by (X)HTML backends.
8
10
  # Captions on RHS are displayed in outputs.
9
11
  ifdef::basebackend-html[]
@@ -3,6 +3,8 @@
3
3
  #
4
4
 
5
5
  [attributes]
6
+ #TODO: Left and right single and double quote characters.
7
+
6
8
  # Captions, used by (X)HTML backends.
7
9
  # Captions on RHS are displayed in outputs.
8
10
  ifdef::basebackend-html[]
@@ -55,3 +55,8 @@ endif::doctype-book[]
55
55
  ^Bijlage [A-Z][:.](?P<title>.*)$=appendix
56
56
 
57
57
  endif::basebackend-docbook[]
58
+
59
+ ifdef::doctype-manpage[]
60
+ #TODO: Translation of 'SYNOPSIS'.
61
+ (?i)^SYNOPSIS$=synopsis
62
+ endif::doctype-manpage[]
@@ -4,6 +4,8 @@
4
4
  #
5
5
 
6
6
  [attributes]
7
+ #TODO: Left and right single and double quote characters.
8
+
7
9
  # Captions, used by (X)HTML backends.
8
10
  # Captions on RHS are displayed in outputs.
9
11
  ifdef::basebackend-html[]
@@ -26,9 +26,8 @@ appendix-caption=Приложение
26
26
  manname-title=ИМЯ
27
27
 
28
28
  [footer-text]
29
- #TODO: Translation of 'Version' and 'Last updated'.
30
- Version {revnumber}{basebackend-xhtml11?<br />}{basebackend-xhtml11=<br>}
31
- Last updated {docdate} {doctime}
29
+ Редакция {revnumber}{basebackend-xhtml11?<br />}{basebackend-xhtml11=<br>}
30
+ Последнее обновление {docdate} {doctime}
32
31
 
33
32
  endif::basebackend-html[]
34
33
 
data/asciidoc/latex.conf CHANGED
@@ -671,7 +671,7 @@ endif::doctype-book[]
671
671
 
672
672
  %\lstset\{basicstyle=\footnotesize\ttfamily,showstringspaces=false,breaklines,frame=single, rulecolor=\color\{ListingBorderColor\}, xleftmargin=0cm, linewidth=0.95\textwidth\}
673
673
 
674
- {latex-indent-paragraphs%} \setlength\{\\parskip\}\{1ex plus 0.5ex minus 0.2ex\}
674
+ {latex-indent-paragraphs%} \setlength\{\parskip\}\{1ex plus 0.5ex minus 0.2ex\}
675
675
 
676
676
  \makeatletter
677
677
  \DeclareRobustCommand*\textsubscript[1]\{%
@@ -692,7 +692,7 @@ endif::doctype-book[]
692
692
 
693
693
  %\newcommand{\texttesh}{\textteshlig\/}
694
694
 
695
- \label\{header\}\\hypertarget\{header\}\{\}
695
+ \label\{header\}\hypertarget\{header\}\{\}
696
696
  {doctitle#\maketitle}
697
697
 
698
698
  [footer]
data/asciidoc/slidy.conf CHANGED
@@ -65,6 +65,7 @@ text=<p>|</p>
65
65
  <html xmlns="http://www.w3.org/1999/xhtml" lang="{lang=en}" xml:lang="{lang=en}">
66
66
  <head>
67
67
  <title>{doctitle=}</title>
68
+ <meta http-equiv="Content-Type" content="{quirks=application/xhtml+xml}{quirks?text/html}; charset={encoding}" />
68
69
  ifndef::copyright[<meta name="copyright" content="Copyright &#169; {author}" />]
69
70
  <meta name="copyright" content="Copyright &#169; {copyright}" />
70
71
  <meta name="generator" content="AsciiDoc {asciidoc-version}" />
@@ -78,12 +79,13 @@ ifdef::pygments[<link rel="stylesheet" href="{stylesdir=.}/pygments.css" type="t
78
79
  endif::linkcss[]
79
80
  ifndef::linkcss[]
80
81
  <style type="text/css">
81
- include1::{stylesdir=./stylesheets}/{theme=asciidoc}.css[]
82
+ include1::{theme%}{stylesdir=./stylesheets}/asciidoc.css[]
83
+ include1::{themedir}/{theme}.css[]
82
84
  include1::{stylesdir=./stylesheets}/slidy.css[]
83
- include1::{stylesheet}}
84
85
  ifdef::pygments[]
85
86
  include1::{stylesdir=./stylesheets}/pygments.css[]
86
87
  endif::pygments[]
88
+ include1::{stylesheet}[]
87
89
  </style>
88
90
  <script type="text/javascript">
89
91
  # Escape as CDATA to pass validators.
@@ -171,7 +171,7 @@ div.quoteblock, div.verseblock {
171
171
  margin-left: 1.0em;
172
172
  margin-right: 10%;
173
173
  border-left: 5px solid #f0f0f0;
174
- color: #777777;
174
+ color: #888;
175
175
  }
176
176
 
177
177
  div.quoteblock > div.attribution {
@@ -341,7 +341,7 @@ div.colist td img {
341
341
  margin-bottom: 0.1em;
342
342
  }
343
343
 
344
- div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 {
344
+ div.toclevel0, div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 {
345
345
  margin-top: 0;
346
346
  margin-bottom: 0;
347
347
  }
@@ -399,6 +399,8 @@ span.underline { text-decoration: underline; }
399
399
  span.overline { text-decoration: overline; }
400
400
  span.line-through { text-decoration: line-through; }
401
401
 
402
+ div.unbreakable { page-break-inside: avoid; }
403
+
402
404
 
403
405
  /*
404
406
  * xhtml11 specific
@@ -406,7 +408,7 @@ span.line-through { text-decoration: line-through; }
406
408
  * */
407
409
 
408
410
  tt {
409
- font-family: monospace;
411
+ font-family: "Courier New", Courier, monospace;
410
412
  font-size: inherit;
411
413
  color: navy;
412
414
  }
@@ -445,7 +447,7 @@ div.tableblock > table[frame="vsides"] {
445
447
  * */
446
448
 
447
449
  .monospaced {
448
- font-family: monospace;
450
+ font-family: "Courier New", Courier, monospace;
449
451
  font-size: inherit;
450
452
  color: navy;
451
453
  }
@@ -506,3 +508,26 @@ th.tableblock.valign-middle, td.tableblock.valign-middle {
506
508
  th.tableblock.valign-bottom, td.tableblock.valign-bottom {
507
509
  vertical-align: bottom;
508
510
  }
511
+
512
+
513
+ /*
514
+ * manpage specific
515
+ *
516
+ * */
517
+
518
+ body.manpage h1 {
519
+ padding-top: 0.5em;
520
+ padding-bottom: 0.5em;
521
+ border-top: 2px solid silver;
522
+ border-bottom: 2px solid silver;
523
+ }
524
+ body.manpage h2 {
525
+ border-style: none;
526
+ }
527
+ body.manpage div.sectionbody {
528
+ margin-left: 3em;
529
+ }
530
+
531
+ @media print {
532
+ body.manpage div#toc { display: none; }
533
+ }