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
@@ -37,7 +37,7 @@ Source highlighter
37
37
  Example article
38
38
 
39
39
  % options
40
- ['--section-numbers']
40
+ ['--section-numbers', ('--attribute','css-signature=article-test')]
41
41
 
42
42
  % attributes
43
43
  # So document date in footer doesn't generate an error.
@@ -209,11 +209,20 @@ data/lang-en-test.txt
209
209
  % attributes
210
210
  {'toc':True}
211
211
 
212
+ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
213
+ English language file (manpage)
214
+
215
+ % backends
216
+ ['docbook']
217
+
218
+ % source
219
+ data/lang-en-man-test.txt
220
+
212
221
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
213
222
  Russian language file (article)
214
223
 
215
224
  % backends
216
- ['docbook','xhtml11','html5']
225
+ ['docbook','xhtml11','html4','html5']
217
226
 
218
227
  % name
219
228
  lang-ru-article-test
@@ -231,7 +240,7 @@ data/lang-ru-test.txt
231
240
  Russian language file (book)
232
241
 
233
242
  % backends
234
- ['docbook','xhtml11','html5']
243
+ ['docbook','xhtml11','html4','html5']
235
244
 
236
245
  % name
237
246
  lang-ru-book-test
@@ -245,11 +254,20 @@ data/lang-ru-test.txt
245
254
  % attributes
246
255
  {'toc':True}
247
256
 
257
+ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
258
+ Russian language file (manpage)
259
+
260
+ % backends
261
+ ['docbook']
262
+
263
+ % source
264
+ data/lang-ru-man-test.txt
265
+
248
266
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
249
267
  French language file (article)
250
268
 
251
269
  % backends
252
- ['docbook','xhtml11','html5']
270
+ ['docbook','xhtml11','html4','html5']
253
271
 
254
272
  % name
255
273
  lang-fr-article-test
@@ -267,7 +285,7 @@ data/lang-fr-test.txt
267
285
  French language file (book)
268
286
 
269
287
  % backends
270
- ['docbook','xhtml11','html5']
288
+ ['docbook','xhtml11','html4','html5']
271
289
 
272
290
  % name
273
291
  lang-fr-book-test
@@ -281,11 +299,20 @@ data/lang-fr-test.txt
281
299
  % attributes
282
300
  {'toc':True}
283
301
 
302
+ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
303
+ French language file (manpage)
304
+
305
+ % backends
306
+ ['docbook']
307
+
308
+ % source
309
+ data/lang-fr-man-test.txt
310
+
284
311
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
285
312
  German language file (article)
286
313
 
287
314
  % backends
288
- ['docbook','xhtml11','html5']
315
+ ['docbook','xhtml11','html4','html5']
289
316
 
290
317
  % name
291
318
  lang-de-article-test
@@ -303,7 +330,7 @@ data/lang-de-test.txt
303
330
  German language file (book)
304
331
 
305
332
  % backends
306
- ['docbook','xhtml11','html5']
333
+ ['docbook','xhtml11','html4','html5']
307
334
 
308
335
  % name
309
336
  lang-de-book-test
@@ -317,11 +344,20 @@ data/lang-de-test.txt
317
344
  % attributes
318
345
  {'toc':True}
319
346
 
347
+ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
348
+ German language file (manpage)
349
+
350
+ % backends
351
+ ['docbook']
352
+
353
+ % source
354
+ data/lang-de-man-test.txt
355
+
320
356
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
321
357
  Hungarian language file (article)
322
358
 
323
359
  % backends
324
- ['docbook','xhtml11','html5']
360
+ ['docbook','xhtml11','html4','html5']
325
361
 
326
362
  % name
327
363
  lang-hu-article-test
@@ -339,7 +375,7 @@ data/lang-hu-test.txt
339
375
  Hungarian language file (book)
340
376
 
341
377
  % backends
342
- ['docbook','xhtml11','html5']
378
+ ['docbook','xhtml11','html4','html5']
343
379
 
344
380
  % name
345
381
  lang-hu-book-test
@@ -353,11 +389,20 @@ data/lang-hu-test.txt
353
389
  % attributes
354
390
  {'toc':True}
355
391
 
392
+ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
393
+ Hungarian language file (manpage)
394
+
395
+ % backends
396
+ ['docbook']
397
+
398
+ % source
399
+ data/lang-hu-man-test.txt
400
+
356
401
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
357
402
  Spanish language file (article)
358
403
 
359
404
  % backends
360
- ['docbook','xhtml11','html5']
405
+ ['docbook','xhtml11','html4','html5']
361
406
 
362
407
  % name
363
408
  lang-es-article-test
@@ -375,7 +420,7 @@ data/lang-es-test.txt
375
420
  Spanish language file (book)
376
421
 
377
422
  % backends
378
- ['docbook','xhtml11','html5']
423
+ ['docbook','xhtml11','html4','html5']
379
424
 
380
425
  % name
381
426
  lang-es-book-test
@@ -389,11 +434,20 @@ data/lang-es-test.txt
389
434
  % attributes
390
435
  {'toc':True}
391
436
 
437
+ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
438
+ Spanish language file (manpage)
439
+
440
+ % backends
441
+ ['docbook']
442
+
443
+ % source
444
+ data/lang-es-man-test.txt
445
+
392
446
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
393
447
  Brazilian Portuguese language file (article)
394
448
 
395
449
  % backends
396
- ['docbook','xhtml11','html5']
450
+ ['docbook','xhtml11','html4','html5']
397
451
 
398
452
  % name
399
453
  lang-pt-BR-article-test
@@ -411,7 +465,7 @@ data/lang-pt-BR-test.txt
411
465
  Brazilian Portuguese language file (book)
412
466
 
413
467
  % backends
414
- ['docbook','xhtml11','html5']
468
+ ['docbook','xhtml11','html4','html5']
415
469
 
416
470
  % name
417
471
  lang-pt-BR-book-test
@@ -425,11 +479,20 @@ data/lang-pt-BR-test.txt
425
479
  % attributes
426
480
  {'toc':True}
427
481
 
482
+ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
483
+ Brazilian Portuguese language file (manpage)
484
+
485
+ % backends
486
+ ['docbook']
487
+
488
+ % source
489
+ data/lang-pt-BR-man-test.txt
490
+
428
491
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
429
492
  Ukrainian language file (article)
430
493
 
431
494
  % backends
432
- ['docbook','xhtml11','html5']
495
+ ['docbook','xhtml11','html4','html5']
433
496
 
434
497
  % name
435
498
  lang-uk-article-test
@@ -447,7 +510,7 @@ data/lang-uk-test.txt
447
510
  Ukrainian language file (book)
448
511
 
449
512
  % backends
450
- ['docbook','xhtml11','html5']
513
+ ['docbook','xhtml11','html4','html5']
451
514
 
452
515
  % name
453
516
  lang-uk-book-test
@@ -461,11 +524,20 @@ data/lang-uk-test.txt
461
524
  % attributes
462
525
  {'toc':True}
463
526
 
527
+ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
528
+ Ukrainian language file (manpage)
529
+
530
+ % backends
531
+ ['docbook']
532
+
533
+ % source
534
+ data/lang-uk-man-test.txt
535
+
464
536
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
465
537
  Dutch language file (article)
466
538
 
467
539
  % backends
468
- ['docbook','xhtml11','html5']
540
+ ['docbook','xhtml11','html4','html5']
469
541
 
470
542
  % name
471
543
  lang-nl-article-test
@@ -483,7 +555,7 @@ data/lang-nl-test.txt
483
555
  Dutch language file (book)
484
556
 
485
557
  % backends
486
- ['docbook','xhtml11','html5']
558
+ ['docbook','xhtml11','html4','html5']
487
559
 
488
560
  % name
489
561
  lang-nl-book-test
@@ -497,6 +569,60 @@ data/lang-nl-test.txt
497
569
  % attributes
498
570
  {'toc':True}
499
571
 
572
+ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
573
+ Dutch language file (manpage)
574
+
575
+ % backends
576
+ ['docbook']
577
+
578
+ % source
579
+ data/lang-nl-man-test.txt
580
+
581
+ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
582
+ Italian language file (article)
583
+
584
+ % backends
585
+ ['docbook','xhtml11','html4','html5']
586
+
587
+ % name
588
+ lang-it-article-test
589
+
590
+ % source
591
+ data/lang-it-test.txt
592
+
593
+ % options
594
+ [('--doctype','article')]
595
+
596
+ % attributes
597
+ {'toc':True}
598
+
599
+ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
600
+ Italian language file (book)
601
+
602
+ % backends
603
+ ['docbook','xhtml11','html4','html5']
604
+
605
+ % name
606
+ lang-it-book-test
607
+
608
+ % source
609
+ data/lang-it-test.txt
610
+
611
+ % options
612
+ [('--doctype','book')]
613
+
614
+ % attributes
615
+ {'toc':True}
616
+
617
+ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
618
+ Italian language file (manpage)
619
+
620
+ % backends
621
+ ['docbook']
622
+
623
+ % source
624
+ data/lang-it-man-test.txt
625
+
500
626
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
501
627
  RCS $Id$ marker test
502
628
 
@@ -21,7 +21,14 @@ __version__ = '0.1.1'
21
21
  __copyright__ = 'Copyright (C) 2009 Stuart Rackham'
22
22
 
23
23
 
24
- import os, sys, re, StringIO, difflib
24
+ import os, sys, re, difflib
25
+
26
+ if sys.platform[:4] == 'java':
27
+ # Jython cStringIO is more compatible with CPython StringIO.
28
+ import cStringIO as StringIO
29
+ else:
30
+ import StringIO
31
+
25
32
  import asciidocapi
26
33
 
27
34
 
@@ -275,7 +282,9 @@ class AsciiDocTests(object):
275
282
  first = True
276
283
  while not lines.eol():
277
284
  s = lines.read_until(r'^%+$')
278
- if s:
285
+ s = [ l for l in s if l] # Drop blank lines.
286
+ # Must be at least one non-blank line in addition to delimiter.
287
+ if len(s) > 1:
279
288
  # Optional globals precede all tests.
280
289
  if first and re.match(r'^%\s*globals$',s[0]):
281
290
  self.globals = eval(' '.join(normalize_data(s[1:])))
File without changes
@@ -3,7 +3,7 @@
3
3
  * Based on css from http://volnitsky.com, which was in turn based on default
4
4
  * theme from AsciiDoc
5
5
  *
6
- * FIXME: The stlying is still a bit rough in places.
6
+ * FIXME: The styling is still a bit rough in places.
7
7
  *
8
8
  */
9
9
 
@@ -10,7 +10,7 @@
10
10
  " The first sets asciidoc syntax highlighting on all .txt files, the second
11
11
  " only existing files *.txt that appear to be AsciiDoc files.
12
12
 
13
- au BufNewFile,BufRead *.txt,README,TODO,CHANGELOG,NOTES setfiletype asciidoc
13
+ au BufNewFile,BufRead *.asciidoc,*.txt,README,TODO,CHANGELOG,NOTES setfiletype asciidoc
14
14
  "au BufRead *.txt,README,TODO,CHANGELOG,NOTES call s:FTasciidoc()
15
15
 
16
16
  " This function checks for a valid AsciiDoc document title after first
@@ -89,7 +89,7 @@ syn region asciidocFilterBlock start=/^\w*\~\{4,}$/ end=/^\w*\~\{4,}$/
89
89
  syn region asciidocMacroAttributes matchgroup=asciidocRefMacro start=/\\\@<!<<"\{-}\(\w\|-\|_\|:\|\.\)\+"\?,\?/ end=/\(>>\)\|^$/ contains=asciidocQuoted.* keepend
90
90
  syn region asciidocMacroAttributes matchgroup=asciidocAnchorMacro start=/\\\@<!\[\{2}\(\w\|-\|_\|:\|\.\)\+,\?/ end=/\]\{2}/ keepend
91
91
  syn region asciidocMacroAttributes matchgroup=asciidocAnchorMacro start=/\\\@<!\[\{3}\(\w\|-\|_\|:\|\.\)\+/ end=/\]\{3}/ keepend
92
- syn region asciidocMacroAttributes matchgroup=asciidocMacro start=/[\\0-9a-zA-Z]\@<!\w\(\w\|-\)*:\S\{-}\[/ skip=/\\\]/ end=/\]\|^$/ contains=asciidocQuoted.*,asciidocAttributeRef keepend
92
+ syn region asciidocMacroAttributes matchgroup=asciidocMacro start=/[\\0-9a-zA-Z]\@<!\w\(\w\|-\)*:\S\{-}\[/ skip=/\\\]/ end=/\]\|^$/ contains=asciidocQuoted.*,asciidocAttributeRef,asciidocEntityRef keepend
93
93
  " Highlight macro that starts with an attribute reference (a common idiom).
94
94
  syn region asciidocMacroAttributes matchgroup=asciidocMacro start=/\(\\\@<!{\w\(\w\|[-,+]\)*\([=!@#$%?:].*\)\?}\)\@<=\S\{-}\[/ skip=/\\\]/ end=/\]\|^$/ contains=asciidocQuoted.*,asciidocAttributeRef keepend
95
95
  syn region asciidocMacroAttributes matchgroup=asciidocIndexTerm start=/\\\@<!(\{2,3}/ end=/)\{2,3}/ contains=asciidocQuoted.*,asciidocAttributeRef keepend
@@ -9,8 +9,8 @@
9
9
  <div class="content">
10
10
  <a class="image" href="{link}">
11
11
  {data-uri%}<img src="{imagesdir=}{imagesdir?/}{target}" alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"} />
12
- {data-uri#}<img alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"} src="data:image/{eval:os.path.splitext('{target}')[1][1:]};base64,
13
- {data-uri#}{sys:python -uc "import base64,sys; base64.encode(sys.stdin,sys.stdout)" < "{eval:os.path.join("{indir={outdir}}","{imagesdir=}","{target}")}"}" />
12
+ {data-uri#}<img alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"} src="data:image/{eval:os.path.splitext(r'{target}')[1][1:]};base64,
13
+ {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}")}"}" />
14
14
  {link#}</a>
15
15
  </div>
16
16
  <div class="image-title">{caption={figure-caption} {counter:figure-number}: }{title}</div>
@@ -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
  # math macros.
@@ -45,14 +45,14 @@ latexmath-style=template="latexmathblock",subs=[]
45
45
  `{passtext}`
46
46
 
47
47
  [asciimath-blockmacro]
48
- <div class="mathblock{role? {role}}"{id? id="{id}"}>
48
+ <div class="mathblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
49
49
  <div class="content">
50
50
  <div class="title">{title}</div>
51
51
  `{passtext}`
52
52
  </div></div>
53
53
 
54
54
  [asciimathblock]
55
- <div class="mathblock{role? {role}}"{id? id="{id}"}>
55
+ <div class="mathblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
56
56
  <div class="content">
57
57
  <div class="title">{title}</div>
58
58
  `|`
@@ -62,14 +62,14 @@ latexmath-style=template="latexmathblock",subs=[]
62
62
  {passtext}
63
63
 
64
64
  [latexmath-blockmacro]
65
- <div class="mathblock{role? {role}}"{id? id="{id}"}>
65
+ <div class="mathblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
66
66
  <div class="content">
67
67
  <div class="title">{title}</div>
68
68
  {passtext}
69
69
  </div></div>
70
70
 
71
71
  [latexmathblock]
72
- <div class="mathblock{role? {role}}"{id? id="{id}"}>
72
+ <div class="mathblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
73
73
  <div class="content">
74
74
  <div class="title">{title}</div>
75
75
  |
@@ -79,18 +79,18 @@ latexmath-style=template="latexmathblock",subs=[]
79
79
  <span class="image{role? {role}}">
80
80
  <a class="image" href="{link}">
81
81
  {data-uri%}<img src="{imagesdir=}{imagesdir?/}{target}" alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"}{title? title="{title}"} />
82
- {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,
83
- {data-uri#}{sys3:python -uc "import base64,sys; base64.encode(sys.stdin,sys.stdout)" < "{eval:os.path.join("{indir={outdir}}","{imagesdir=}","{target}")}"}" />
82
+ {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,
83
+ {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}")}"}" />
84
84
  {link#}</a>
85
85
  </span>
86
86
 
87
87
  [image-blockmacro]
88
- <div class="imageblock{style? {style}}{role? {role}}"{id? id="{id}"}{align? style="text-align:{align};"}{float? style="float:{float};"}>
88
+ <div class="imageblock{style? {style}}{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}{align? style="text-align:{align};"}{float? style="float:{float};"}>
89
89
  <div class="content">
90
90
  <a class="image" href="{link}">
91
91
  {data-uri%}<img src="{imagesdir=}{imagesdir?/}{target}" alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"} />
92
- {data-uri#}<img alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"} src="data:image/{eval:os.path.splitext('{target}')[1][1:]};base64,
93
- {data-uri#}{sys:python -uc "import base64,sys; base64.encode(sys.stdin,sys.stdout)" < "{eval:os.path.join("{indir={outdir}}","{imagesdir=}","{target}")}"}" />
92
+ {data-uri#}<img alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"} src="data:image/{eval:os.path.splitext(r'{target}')[1][1:]};base64,
93
+ {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}")}"}" />
94
94
  {link#}</a>
95
95
  </div>
96
96
  <div class="title">{caption={figure-caption} {counter:figure-number}. }{title}</div>
@@ -99,6 +99,9 @@ latexmath-style=template="latexmathblock",subs=[]
99
99
  [unfloat-blockmacro]
100
100
  <div style="clear:both;"></div>
101
101
 
102
+ [toc-blockmacro]
103
+ template::[toc]
104
+
102
105
  [indexterm-inlinemacro]
103
106
  # Index term.
104
107
  {empty}
@@ -128,7 +131,7 @@ ifndef::data-uri[]
128
131
  endif::data-uri[]
129
132
  ifdef::data-uri[]
130
133
  <img alt="{index}" src="data:image/png;base64,
131
- {sys:python -uc "import base64,sys; base64.encode(sys.stdin,sys.stdout)" < "{eval:os.path.join("{indir={outdir}}","{icon={iconsdir}/callouts/{index}.png}")}"}" />
134
+ {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}")}"}" />
132
135
  endif::data-uri[]
133
136
  endif::icons[]
134
137
 
@@ -191,7 +194,7 @@ ifndef::data-uri[]
191
194
  item=<tr><td><img src="{iconsdir}/callouts/{listindex}.png" alt="{listindex}" /></td><td>|</td></tr>
192
195
  endif::data-uri[]
193
196
  ifdef::data-uri[]
194
- 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>
197
+ 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>
195
198
  endif::data-uri[]
196
199
  text=|
197
200
  endif::icons[]
@@ -275,7 +278,7 @@ endif::deprecated-quotes[]
275
278
 
276
279
  # Paragraph substitution.
277
280
  [paragraph]
278
- <div class="paragraph{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<p>
281
+ <div class="paragraph{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<p>
279
282
  |
280
283
  </p></div>
281
284
 
@@ -284,7 +287,7 @@ template::[admonitionblock]
284
287
 
285
288
  # Delimited blocks.
286
289
  [listingblock]
287
- <div class="listingblock{role? {role}}"{id? id="{id}"}>
290
+ <div class="listingblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
288
291
  <div class="title">{caption=}{title}</div>
289
292
  <div class="content">
290
293
  <pre><tt>
@@ -293,7 +296,7 @@ template::[admonitionblock]
293
296
  </div></div>
294
297
 
295
298
  [literalblock]
296
- <div class="literalblock{role? {role}}"{id? id="{id}"}>
299
+ <div class="literalblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
297
300
  <div class="title">{title}</div>
298
301
  <div class="content">
299
302
  <pre><tt>
@@ -302,14 +305,14 @@ template::[admonitionblock]
302
305
  </div></div>
303
306
 
304
307
  [sidebarblock]
305
- <div class="sidebarblock{role? {role}}"{id? id="{id}"}>
308
+ <div class="sidebarblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
306
309
  <div class="content">
307
310
  <div class="title">{title}</div>
308
311
  |
309
312
  </div></div>
310
313
 
311
314
  [openblock]
312
- <div class="openblock{role? {role}}"{id? id="{id}"}>
315
+ <div class="openblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
313
316
  <div class="title">{title}</div>
314
317
  <div class="content">
315
318
  |
@@ -322,7 +325,7 @@ template::[openblock]
322
325
  template::[quoteblock]
323
326
 
324
327
  [quoteblock]
325
- <div class="quoteblock{role? {role}}"{id? id="{id}"}>
328
+ <div class="quoteblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
326
329
  <div class="title">{title}</div>
327
330
  <div class="content">
328
331
  |
@@ -333,7 +336,7 @@ template::[quoteblock]
333
336
  </div></div>
334
337
 
335
338
  [verseblock]
336
- <div class="verseblock{role? {role}}"{id? id="{id}"}>
339
+ <div class="verseblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
337
340
  <div class="title">{title}</div>
338
341
  <pre class="content">
339
342
  |
@@ -344,19 +347,19 @@ template::[quoteblock]
344
347
  </div></div>
345
348
 
346
349
  [exampleblock]
347
- <div class="exampleblock{role? {role}}"{id? id="{id}"}>
350
+ <div class="exampleblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
348
351
  <div class="title">{caption={example-caption} {counter:example-number}. }{title}</div>
349
352
  <div class="content">
350
353
  |
351
354
  </div></div>
352
355
 
353
356
  [admonitionblock]
354
- <div class="admonitionblock{role? {role}}"{id? id="{id}"}>
357
+ <div class="admonitionblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
355
358
  <table><tr>
356
359
  <td class="icon">
357
360
  {data-uri%}{icons#}<img src="{icon={iconsdir}/{name}.png}" alt="{caption}" />
358
361
  {data-uri#}{icons#}<img alt="{caption}" src="data:image/png;base64,
359
- {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}")}"}" />
362
+ {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}")}"}" />
360
363
  {icons%}<div class="title">{caption}</div>
361
364
  </td>
362
365
  <td class="content">
@@ -399,7 +402,7 @@ bodydata=<td {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }a
399
402
  paragraph=
400
403
 
401
404
  [table]
402
- <div class="tableblock{role? {role}}"{id? id="{id}"}>
405
+ <div class="tableblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
403
406
  <table rules="{grid=all}"
404
407
  style="margin-left:{align@left:0}{align@center|right:auto}; margin-right:{align@left|center:auto}{align@right:0};"
405
408
  style="float:{float};"
@@ -531,7 +534,6 @@ cellspacing="0" cellpadding="4">
531
534
  {title%}<title>{doctitle=}</title>
532
535
  ifdef::linkcss[]
533
536
  <link rel="stylesheet" href="{stylesdir=.}/{theme=asciidoc}.css" type="text/css" />
534
- {doctype-manpage}<link rel="stylesheet" href="{stylesdir=.}/{theme=asciidoc}-manpage.css" type="text/css" />
535
537
  ifdef::quirks[]
536
538
  <link rel="stylesheet" href="{stylesdir=.}/xhtml11-quirks.css" type="text/css" />
537
539
  endif::quirks[]
@@ -541,10 +543,8 @@ ifdef::toc2[<link rel="stylesheet" href="{stylesdir=.}/toc2.css" type="text/css"
541
543
  endif::linkcss[]
542
544
  ifndef::linkcss[]
543
545
  <style type="text/css">
544
- include1::{stylesdir=./stylesheets}/{theme=asciidoc}.css[]
545
- ifdef::doctype-manpage[]
546
- include1::{stylesdir=./stylesheets}/{theme=asciidoc}-manpage.css[]
547
- endif::doctype-manpage[]
546
+ include1::{theme%}{stylesdir=./stylesheets}/asciidoc.css[]
547
+ include1::{themedir}/{theme}.css[]
548
548
  ifdef::quirks[]
549
549
  include1::{stylesdir=./stylesheets}/xhtml11-quirks.css[]
550
550
  endif::quirks[]
@@ -560,6 +560,7 @@ endif::linkcss[]
560
560
  ifndef::disable-javascript[]
561
561
  ifdef::linkcss[]
562
562
  <script type="text/javascript" src="{scriptsdir=.}/asciidoc.js"></script>
563
+ <script type="text/javascript" src="{scriptsdir=.}/{theme}.js"></script>
563
564
  <script type="text/javascript">
564
565
  # Escape as CDATA to pass validators.
565
566
  /*<![CDATA[*/
@@ -572,6 +573,7 @@ ifndef::linkcss[]
572
573
  # Escape as CDATA to pass validators.
573
574
  /*<![CDATA[*/
574
575
  include1::{scriptsdir=./javascripts}/asciidoc.js[]
576
+ include1::{themedir}/{theme}.js[warnings=False]
575
577
  asciidoc.install({toc,toc2?{toclevels}});
576
578
  /*]]>*/
577
579
  </script>
@@ -605,8 +607,9 @@ endif::linkcss[]
605
607
  endif::latexmath[]
606
608
  {docinfo1,docinfo2#}{include:{docdir}/docinfo.html}
607
609
  {docinfo,docinfo2#}{include:{docdir}/{docname}-docinfo.html}
610
+ template::[docinfo]
608
611
  </head>
609
- <body class="{doctype}"{max-width? style="max-width:{max-width}"}>
612
+ <body class="{doctype}"{max-width? style="max-width:{max-width}"}{css-signature? id="{css-signature}"}>
610
613
  # Article, book header.
611
614
  ifndef::doctype-manpage[]
612
615
  <div id="header">
@@ -618,7 +621,7 @@ ifdef::doctitle[]
618
621
  <span id="revdate">{revdate}</span>
619
622
  <br /><span id="revremark">{revremark}</span>
620
623
  endif::doctitle[]
621
- ifdef::toc,toc2[{template:toc}]
624
+ {toc,toc2#}{toc-placement$auto:}{template:toc}
622
625
  </div>
623
626
  endif::doctype-manpage[]
624
627
  # Man page header.
@@ -627,7 +630,7 @@ ifdef::doctype-manpage[]
627
630
  <h1>
628
631
  {doctitle} Manual Page
629
632
  </h1>
630
- ifdef::toc,toc2[{template:toc}]
633
+ {toc,toc2#}{toc-placement$auto:}{template:toc}
631
634
  <h2>{manname-title}</h2>
632
635
  <div class="sectionbody">
633
636
  <p>{manname} -
@@ -662,11 +665,6 @@ ifdef::icons[]
662
665
  src="http://jigsaw.w3.org/css-validator/images/vcss-blue"
663
666
  alt="Valid CSS!" />
664
667
  </a>
665
- <a href="http://www.mozilla.org/products/firefox/">
666
- <img style="border:none; width:110px; height:32px;"
667
- src="http://www.spreadfirefox.com/community/images/affiliates/Buttons/110x32/safer.gif"
668
- alt="Get Firefox!" />
669
- </a>
670
668
  endif::icons[]
671
669
  </div>
672
670
  endif::badges[]