gorgyrella 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (222) hide show
  1. data/Rakefile +1 -1
  2. data/lib/gorgyrella.rb +1 -1
  3. data/lib/gorgyrella/parser.rb +129 -128
  4. data/lib/gorgyrella/parser.rl +3 -2
  5. data/lib/webby/gorgyrella_helper.rb.~1~ +30 -0
  6. data/webby/Sitefile +5 -1
  7. data/webby/content/css/style.css +280 -0
  8. data/webby/content/faq/index.txt +10 -0
  9. data/webby/content/favicon.ico +0 -0
  10. data/webby/content/img/Thumbs.db +0 -0
  11. data/webby/content/img/bg_menu.gif +0 -0
  12. data/webby/content/img/bg_t.gif +0 -0
  13. data/webby/content/img/bullet.gif +0 -0
  14. data/webby/content/img/logo.png +0 -0
  15. data/webby/content/img/logo_.jpg +0 -0
  16. data/webby/content/img/top_bg.gif +0 -0
  17. data/webby/content/img/top_bg_.gif +0 -0
  18. data/webby/content/index.txt +2 -7
  19. data/webby/content/installation/index.txt +24 -0
  20. data/webby/layouts/web.txt +54 -32
  21. data/webby/output/css/style.css +275 -0
  22. data/webby/output/faq/index.html +56 -0
  23. data/webby/output/favicon.ico +0 -0
  24. data/webby/output/img/Thumbs.db +0 -0
  25. data/webby/output/img/bg_menu.gif +0 -0
  26. data/webby/output/img/bg_t.gif +0 -0
  27. data/webby/output/img/bullet.gif +0 -0
  28. data/webby/output/img/logo.png +0 -0
  29. data/webby/output/img/logo_.jpg +0 -0
  30. data/webby/output/img/top_bg.gif +0 -0
  31. data/webby/output/img/top_bg_.gif +0 -0
  32. data/webby/output/index.html +51 -36
  33. data/webby/output/installation/index.html +63 -0
  34. metadata +29 -197
  35. data/.bzr/README +0 -3
  36. data/.bzr/branch-format +0 -1
  37. data/.bzr/branch/branch.conf +0 -2
  38. data/.bzr/branch/format +0 -1
  39. data/.bzr/branch/last-revision +0 -1
  40. data/.bzr/branch/tags +0 -0
  41. data/.bzr/checkout/conflicts +0 -1
  42. data/.bzr/checkout/dirstate +0 -0
  43. data/.bzr/checkout/format +0 -1
  44. data/.bzr/checkout/merge-hashes +0 -33
  45. data/.bzr/repository/format +0 -1
  46. data/.bzr/repository/indices/7433d7509bfad4e7de61716fd159a28e.iix +0 -0
  47. data/.bzr/repository/indices/7433d7509bfad4e7de61716fd159a28e.rix +0 -0
  48. data/.bzr/repository/indices/7433d7509bfad4e7de61716fd159a28e.six +0 -5
  49. data/.bzr/repository/indices/7433d7509bfad4e7de61716fd159a28e.tix +0 -0
  50. data/.bzr/repository/indices/747331f41951a7f9509b3190e9082de2.iix +0 -0
  51. data/.bzr/repository/indices/747331f41951a7f9509b3190e9082de2.rix +0 -0
  52. data/.bzr/repository/indices/747331f41951a7f9509b3190e9082de2.six +0 -5
  53. data/.bzr/repository/indices/747331f41951a7f9509b3190e9082de2.tix +0 -0
  54. data/.bzr/repository/indices/94ae76525de86acde2f4722e88fec764.iix +0 -0
  55. data/.bzr/repository/indices/94ae76525de86acde2f4722e88fec764.rix +0 -0
  56. data/.bzr/repository/indices/94ae76525de86acde2f4722e88fec764.six +0 -5
  57. data/.bzr/repository/indices/94ae76525de86acde2f4722e88fec764.tix +0 -0
  58. data/.bzr/repository/indices/ae5f61661ebb8f30600ce7443b2ea000.iix +0 -0
  59. data/.bzr/repository/indices/ae5f61661ebb8f30600ce7443b2ea000.rix +0 -0
  60. data/.bzr/repository/indices/ae5f61661ebb8f30600ce7443b2ea000.six +0 -5
  61. data/.bzr/repository/indices/ae5f61661ebb8f30600ce7443b2ea000.tix +0 -0
  62. data/.bzr/repository/indices/e34ba77fcb41bb254463c3c177123bb1.iix +0 -0
  63. data/.bzr/repository/indices/e34ba77fcb41bb254463c3c177123bb1.rix +0 -0
  64. data/.bzr/repository/indices/e34ba77fcb41bb254463c3c177123bb1.six +0 -5
  65. data/.bzr/repository/indices/e34ba77fcb41bb254463c3c177123bb1.tix +0 -0
  66. data/.bzr/repository/indices/e409e77b2da885ef4e5bc5089a04e60e.iix +0 -0
  67. data/.bzr/repository/indices/e409e77b2da885ef4e5bc5089a04e60e.rix +0 -0
  68. data/.bzr/repository/indices/e409e77b2da885ef4e5bc5089a04e60e.six +0 -5
  69. data/.bzr/repository/indices/e409e77b2da885ef4e5bc5089a04e60e.tix +0 -0
  70. data/.bzr/repository/indices/fa740d26e5ddc0570df1ec65a7a2af1c.iix +0 -0
  71. data/.bzr/repository/indices/fa740d26e5ddc0570df1ec65a7a2af1c.rix +0 -0
  72. data/.bzr/repository/indices/fa740d26e5ddc0570df1ec65a7a2af1c.six +0 -5
  73. data/.bzr/repository/indices/fa740d26e5ddc0570df1ec65a7a2af1c.tix +0 -0
  74. data/.bzr/repository/obsolete_packs/24b89e5a96bc1f03a7ce1a200ab48dc9.iix +0 -0
  75. data/.bzr/repository/obsolete_packs/24b89e5a96bc1f03a7ce1a200ab48dc9.pack +0 -0
  76. data/.bzr/repository/obsolete_packs/24b89e5a96bc1f03a7ce1a200ab48dc9.rix +0 -0
  77. data/.bzr/repository/obsolete_packs/24b89e5a96bc1f03a7ce1a200ab48dc9.six +0 -5
  78. data/.bzr/repository/obsolete_packs/24b89e5a96bc1f03a7ce1a200ab48dc9.tix +0 -0
  79. data/.bzr/repository/obsolete_packs/3ed72fa820dea2da6169d4361433a5f3.iix +0 -0
  80. data/.bzr/repository/obsolete_packs/3ed72fa820dea2da6169d4361433a5f3.pack +0 -0
  81. data/.bzr/repository/obsolete_packs/3ed72fa820dea2da6169d4361433a5f3.rix +0 -0
  82. data/.bzr/repository/obsolete_packs/3ed72fa820dea2da6169d4361433a5f3.six +0 -5
  83. data/.bzr/repository/obsolete_packs/3ed72fa820dea2da6169d4361433a5f3.tix +0 -0
  84. data/.bzr/repository/obsolete_packs/acd9bdd28baefb868bf64371dde19d2b.iix +0 -0
  85. data/.bzr/repository/obsolete_packs/acd9bdd28baefb868bf64371dde19d2b.pack +0 -0
  86. data/.bzr/repository/obsolete_packs/acd9bdd28baefb868bf64371dde19d2b.rix +0 -0
  87. data/.bzr/repository/obsolete_packs/acd9bdd28baefb868bf64371dde19d2b.six +0 -5
  88. data/.bzr/repository/obsolete_packs/acd9bdd28baefb868bf64371dde19d2b.tix +0 -0
  89. data/.bzr/repository/obsolete_packs/c408af011313ac56380f5716caffaf43.iix +0 -0
  90. data/.bzr/repository/obsolete_packs/c408af011313ac56380f5716caffaf43.pack +0 -0
  91. data/.bzr/repository/obsolete_packs/c408af011313ac56380f5716caffaf43.rix +0 -0
  92. data/.bzr/repository/obsolete_packs/c408af011313ac56380f5716caffaf43.six +0 -5
  93. data/.bzr/repository/obsolete_packs/c408af011313ac56380f5716caffaf43.tix +0 -0
  94. data/.bzr/repository/obsolete_packs/cf2fbd7a25e9ab28e03fe483b1232f54.iix +0 -0
  95. data/.bzr/repository/obsolete_packs/cf2fbd7a25e9ab28e03fe483b1232f54.pack +0 -0
  96. data/.bzr/repository/obsolete_packs/cf2fbd7a25e9ab28e03fe483b1232f54.rix +0 -0
  97. data/.bzr/repository/obsolete_packs/cf2fbd7a25e9ab28e03fe483b1232f54.six +0 -5
  98. data/.bzr/repository/obsolete_packs/cf2fbd7a25e9ab28e03fe483b1232f54.tix +0 -0
  99. data/.bzr/repository/obsolete_packs/fedc9930335a072ae735da013bf94c74.iix +0 -0
  100. data/.bzr/repository/obsolete_packs/fedc9930335a072ae735da013bf94c74.pack +0 -0
  101. data/.bzr/repository/obsolete_packs/fedc9930335a072ae735da013bf94c74.rix +0 -0
  102. data/.bzr/repository/obsolete_packs/fedc9930335a072ae735da013bf94c74.six +0 -5
  103. data/.bzr/repository/obsolete_packs/fedc9930335a072ae735da013bf94c74.tix +0 -0
  104. data/.bzr/repository/pack-names +0 -0
  105. data/.bzr/repository/packs/7433d7509bfad4e7de61716fd159a28e.pack +0 -0
  106. data/.bzr/repository/packs/747331f41951a7f9509b3190e9082de2.pack +0 -0
  107. data/.bzr/repository/packs/94ae76525de86acde2f4722e88fec764.pack +0 -0
  108. data/.bzr/repository/packs/ae5f61661ebb8f30600ce7443b2ea000.pack +0 -0
  109. data/.bzr/repository/packs/e34ba77fcb41bb254463c3c177123bb1.pack +0 -0
  110. data/.bzr/repository/packs/e409e77b2da885ef4e5bc5089a04e60e.pack +0 -0
  111. data/.bzr/repository/packs/fa740d26e5ddc0570df1ec65a7a2af1c.pack +0 -0
  112. data/.bzrignore +0 -5
  113. data/gorgyrella-manual-0-0-1.pdf +0 -0
  114. data/gorgyrella.gemspec +0 -36
  115. data/spec/builder_spec.rb +0 -7
  116. data/spec/composer_spec.rb +0 -70
  117. data/spec/data/coderay.css +0 -126
  118. data/spec/data/example-python.html +0 -24
  119. data/spec/data/example-ruby.html +0 -30
  120. data/spec/data/pygments.css +0 -59
  121. data/spec/data/test.py +0 -21
  122. data/spec/data/test.rb +0 -13
  123. data/spec/data/ultraviolet/css/active4d.css +0 -114
  124. data/spec/data/ultraviolet/css/all_hallows_eve.css +0 -72
  125. data/spec/data/ultraviolet/css/amy.css +0 -147
  126. data/spec/data/ultraviolet/css/blackboard.css +0 -88
  127. data/spec/data/ultraviolet/css/brilliance_black.css +0 -605
  128. data/spec/data/ultraviolet/css/brilliance_dull.css +0 -599
  129. data/spec/data/ultraviolet/css/cobalt.css +0 -149
  130. data/spec/data/ultraviolet/css/dawn.css +0 -121
  131. data/spec/data/ultraviolet/css/eiffel.css +0 -121
  132. data/spec/data/ultraviolet/css/espresso_libre.css +0 -109
  133. data/spec/data/ultraviolet/css/idle.css +0 -62
  134. data/spec/data/ultraviolet/css/iplastic.css +0 -80
  135. data/spec/data/ultraviolet/css/lazy.css +0 -73
  136. data/spec/data/ultraviolet/css/mac_classic.css +0 -123
  137. data/spec/data/ultraviolet/css/magicwb_amiga.css +0 -104
  138. data/spec/data/ultraviolet/css/pastels_on_dark.css +0 -188
  139. data/spec/data/ultraviolet/css/slush_poppies.css +0 -85
  140. data/spec/data/ultraviolet/css/spacecadet.css +0 -51
  141. data/spec/data/ultraviolet/css/sunburst.css +0 -180
  142. data/spec/data/ultraviolet/css/twilight.css +0 -137
  143. data/spec/data/ultraviolet/css/zenburnesque.css +0 -91
  144. data/spec/data/unmarked.rb +0 -32
  145. data/spec/gorgyrella_spec.rb +0 -7
  146. data/spec/parser_spec.rb +0 -73
  147. data/spec/spec_helper.rb +0 -13
  148. data/spec/tmp/example-python-processed-coderay.html +0 -31
  149. data/spec/tmp/example-python-processed-pygments.html +0 -31
  150. data/spec/tmp/example-python-processed-ultraviolet.html +0 -31
  151. data/spec/tmp/example-ruby-processed-coderay.html +0 -31
  152. data/spec/tmp/example-ruby-processed-pygments.html +0 -37
  153. data/spec/tmp/example-ruby-processed-ultraviolet.html +0 -33
  154. data/webby/.DS_Store +0 -0
  155. data/webby/content/css/blueprint/ie.css +0 -26
  156. data/webby/content/css/blueprint/plugins/buttons/icons/cross.png +0 -0
  157. data/webby/content/css/blueprint/plugins/buttons/icons/key.png +0 -0
  158. data/webby/content/css/blueprint/plugins/buttons/icons/tick.png +0 -0
  159. data/webby/content/css/blueprint/plugins/buttons/readme.txt +0 -32
  160. data/webby/content/css/blueprint/plugins/buttons/screen.css +0 -97
  161. data/webby/content/css/blueprint/plugins/fancy-type/readme.txt +0 -14
  162. data/webby/content/css/blueprint/plugins/fancy-type/screen.css +0 -71
  163. data/webby/content/css/blueprint/plugins/link-icons/icons/doc.png +0 -0
  164. data/webby/content/css/blueprint/plugins/link-icons/icons/email.png +0 -0
  165. data/webby/content/css/blueprint/plugins/link-icons/icons/external.png +0 -0
  166. data/webby/content/css/blueprint/plugins/link-icons/icons/feed.png +0 -0
  167. data/webby/content/css/blueprint/plugins/link-icons/icons/im.png +0 -0
  168. data/webby/content/css/blueprint/plugins/link-icons/icons/pdf.png +0 -0
  169. data/webby/content/css/blueprint/plugins/link-icons/icons/visited.png +0 -0
  170. data/webby/content/css/blueprint/plugins/link-icons/icons/xls.png +0 -0
  171. data/webby/content/css/blueprint/plugins/link-icons/readme.txt +0 -18
  172. data/webby/content/css/blueprint/plugins/link-icons/screen.css +0 -40
  173. data/webby/content/css/blueprint/plugins/rtl/readme.txt +0 -10
  174. data/webby/content/css/blueprint/plugins/rtl/screen.css +0 -109
  175. data/webby/content/css/blueprint/print.css +0 -30
  176. data/webby/content/css/blueprint/screen.css +0 -251
  177. data/webby/content/css/blueprint/src/forms.css +0 -49
  178. data/webby/content/css/blueprint/src/grid.css +0 -212
  179. data/webby/content/css/blueprint/src/grid.png +0 -0
  180. data/webby/content/css/blueprint/src/ie.css +0 -59
  181. data/webby/content/css/blueprint/src/print.css +0 -85
  182. data/webby/content/css/blueprint/src/reset.css +0 -38
  183. data/webby/content/css/blueprint/src/typography.css +0 -105
  184. data/webby/content/css/site.css +0 -78
  185. data/webby/content/gorgyrella-manual.erb +0 -33
  186. data/webby/output/css/blueprint/ie.css +0 -26
  187. data/webby/output/css/blueprint/plugins/buttons/icons/cross.png +0 -0
  188. data/webby/output/css/blueprint/plugins/buttons/icons/key.png +0 -0
  189. data/webby/output/css/blueprint/plugins/buttons/icons/tick.png +0 -0
  190. data/webby/output/css/blueprint/plugins/buttons/readme.txt +0 -32
  191. data/webby/output/css/blueprint/plugins/buttons/screen.css +0 -97
  192. data/webby/output/css/blueprint/plugins/fancy-type/readme.txt +0 -14
  193. data/webby/output/css/blueprint/plugins/fancy-type/screen.css +0 -71
  194. data/webby/output/css/blueprint/plugins/link-icons/icons/doc.png +0 -0
  195. data/webby/output/css/blueprint/plugins/link-icons/icons/email.png +0 -0
  196. data/webby/output/css/blueprint/plugins/link-icons/icons/external.png +0 -0
  197. data/webby/output/css/blueprint/plugins/link-icons/icons/feed.png +0 -0
  198. data/webby/output/css/blueprint/plugins/link-icons/icons/im.png +0 -0
  199. data/webby/output/css/blueprint/plugins/link-icons/icons/pdf.png +0 -0
  200. data/webby/output/css/blueprint/plugins/link-icons/icons/visited.png +0 -0
  201. data/webby/output/css/blueprint/plugins/link-icons/icons/xls.png +0 -0
  202. data/webby/output/css/blueprint/plugins/link-icons/readme.txt +0 -18
  203. data/webby/output/css/blueprint/plugins/link-icons/screen.css +0 -40
  204. data/webby/output/css/blueprint/plugins/rtl/readme.txt +0 -10
  205. data/webby/output/css/blueprint/plugins/rtl/screen.css +0 -109
  206. data/webby/output/css/blueprint/print.css +0 -30
  207. data/webby/output/css/blueprint/screen.css +0 -251
  208. data/webby/output/css/blueprint/src/forms.css +0 -49
  209. data/webby/output/css/blueprint/src/grid.css +0 -212
  210. data/webby/output/css/blueprint/src/grid.png +0 -0
  211. data/webby/output/css/blueprint/src/ie.css +0 -59
  212. data/webby/output/css/blueprint/src/print.css +0 -85
  213. data/webby/output/css/blueprint/src/reset.css +0 -38
  214. data/webby/output/css/blueprint/src/typography.css +0 -105
  215. data/webby/output/css/site.css +0 -62
  216. data/webby/output/gorgyrella-manual.aux +0 -17
  217. data/webby/output/gorgyrella-manual.erb +0 -51
  218. data/webby/output/gorgyrella-manual.log +0 -271
  219. data/webby/output/gorgyrella-manual.out +0 -2
  220. data/webby/output/gorgyrella-manual.pdf +0 -0
  221. data/webby/output/gorgyrella-manual.tex +0 -191
  222. data/webby/tasks/latex.rake +0 -14
data/Rakefile CHANGED
@@ -24,13 +24,13 @@ PROJ.version = Gorgyrella::VERSION
24
24
  PROJ.rubyforge.name = 'gorgyrella'
25
25
 
26
26
  PROJ.spec.opts << '--color'
27
+ PROJ.exclude = %w{.bzr gorgyrella-manual-* examples spec tasks stats .DS_Store}
27
28
 
28
29
 
29
30
  require 'spec/rake/spectask'
30
31
  require 'spec/rake/verify_rcov'
31
32
 
32
33
  task :spec => :verify_rcov
33
- task :default => :verify_rcov
34
34
 
35
35
  desc "Verify RCOV coverage above threshold"
36
36
  RCov::VerifyTask.new(:verify_rcov => [:compile, 'spec:rcov']) do |t|
data/lib/gorgyrella.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Gorgyrella
2
2
  # :stopdoc:
3
- VERSION = '0.0.1'
3
+ VERSION = '0.0.2'
4
4
  LIBPATH = ::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR
5
5
  PATH = ::File.dirname(LIBPATH) + ::File::SEPARATOR
6
6
  # :startdoc:
@@ -3,7 +3,7 @@
3
3
  module Gorgyrella
4
4
  class Parser
5
5
 
6
- # line 104 "lib/gorgyrella/parser.rl"
6
+ # line 105 "lib/gorgyrella/parser.rl"
7
7
 
8
8
 
9
9
 
@@ -35,13 +35,13 @@ self._gorgyrella_parser_key_offsets = [
35
35
  79, 85, 96, 98, 100, 102, 104, 106,
36
36
  108, 111, 115, 117, 119, 122, 132, 134,
37
37
  136, 140, 147, 158, 165, 174, 180, 191,
38
- 193, 195, 197, 200, 202, 204, 208, 209,
39
- 210, 212, 214, 215, 219, 220, 221, 222,
40
- 223, 224, 226, 235, 237, 239, 243, 249,
41
- 258, 264, 275, 276, 277, 278, 279, 280,
42
- 281, 283, 286, 288, 290, 292, 301, 303,
43
- 305, 309, 315, 326, 332, 341, 347, 358,
44
- 360, 362, 366, 367, 368, 370, 376, 382
38
+ 194, 197, 200, 202, 204, 208, 209, 210,
39
+ 212, 214, 215, 219, 220, 221, 222, 223,
40
+ 224, 226, 235, 237, 239, 243, 249, 258,
41
+ 264, 275, 276, 277, 278, 279, 280, 281,
42
+ 283, 286, 288, 290, 292, 301, 303, 305,
43
+ 309, 315, 326, 332, 341, 347, 358, 360,
44
+ 362, 366, 368, 370, 374, 380, 386
45
45
  ]
46
46
 
47
47
  class << self
@@ -73,7 +73,7 @@ self._gorgyrella_parser_trans_keys = [
73
73
  45, 46, 65, 90, 97, 122, 9, 10,
74
74
  13, 32, 48, 57, 9, 10, 13, 32,
75
75
  95, 45, 46, 65, 90, 97, 122, 10,
76
- 47, 10, 47, 10, 32, 10, 13, 35,
76
+ 13, 47, 10, 13, 47, 10, 13, 35,
77
77
  13, 35, 13, 35, 10, 13, 32, 35,
78
78
  10, 64, 101, 105, 110, 120, 100, 9,
79
79
  10, 13, 32, 10, 112, 111, 114, 116,
@@ -94,10 +94,11 @@ self._gorgyrella_parser_trans_keys = [
94
94
  46, 65, 90, 97, 122, 9, 10, 13,
95
95
  32, 48, 57, 9, 10, 13, 32, 95,
96
96
  45, 46, 65, 90, 97, 122, 13, 37,
97
- 13, 37, 10, 13, 32, 37, 47, 47,
98
- 32, 47, 9, 10, 32, 35, 37, 47,
99
- 9, 10, 32, 35, 37, 47, 9, 10,
100
- 32, 35, 37, 47, 0
97
+ 13, 37, 10, 13, 32, 37, 13, 47,
98
+ 13, 47, 10, 13, 32, 47, 9, 10,
99
+ 32, 35, 37, 47, 9, 10, 32, 35,
100
+ 37, 47, 9, 10, 32, 35, 37, 47,
101
+ 0
101
102
  ]
102
103
 
103
104
  class << self
@@ -110,14 +111,14 @@ self._gorgyrella_parser_single_lengths = [
110
111
  2, 3, 4, 2, 2, 4, 3, 3,
111
112
  4, 5, 2, 2, 2, 2, 2, 2,
112
113
  3, 4, 2, 2, 3, 4, 2, 2,
113
- 4, 3, 5, 3, 3, 4, 5, 2,
114
- 2, 2, 3, 2, 2, 4, 1, 1,
115
- 2, 2, 1, 4, 1, 1, 1, 1,
116
- 1, 2, 3, 2, 2, 4, 2, 3,
117
- 4, 5, 1, 1, 1, 1, 1, 1,
118
- 2, 3, 2, 2, 2, 3, 2, 2,
119
- 4, 2, 5, 2, 3, 4, 5, 2,
120
- 2, 4, 1, 1, 2, 6, 6, 6
114
+ 4, 3, 5, 3, 3, 4, 5, 3,
115
+ 3, 3, 2, 2, 4, 1, 1, 2,
116
+ 2, 1, 4, 1, 1, 1, 1, 1,
117
+ 2, 3, 2, 2, 4, 2, 3, 4,
118
+ 5, 1, 1, 1, 1, 1, 1, 2,
119
+ 3, 2, 2, 2, 3, 2, 2, 4,
120
+ 2, 5, 2, 3, 4, 5, 2, 2,
121
+ 4, 2, 2, 4, 6, 6, 6
121
122
  ]
122
123
 
123
124
  class << self
@@ -133,11 +134,11 @@ self._gorgyrella_parser_range_lengths = [
133
134
  0, 2, 3, 2, 3, 1, 3, 0,
134
135
  0, 0, 0, 0, 0, 0, 0, 0,
135
136
  0, 0, 0, 0, 0, 0, 0, 0,
136
- 0, 0, 3, 0, 0, 0, 2, 3,
137
- 1, 3, 0, 0, 0, 0, 0, 0,
138
- 0, 0, 0, 0, 0, 3, 0, 0,
139
- 0, 2, 3, 2, 3, 1, 3, 0,
140
- 0, 0, 0, 0, 0, 0, 0, 0
137
+ 0, 3, 0, 0, 0, 2, 3, 1,
138
+ 3, 0, 0, 0, 0, 0, 0, 0,
139
+ 0, 0, 0, 0, 3, 0, 0, 0,
140
+ 2, 3, 2, 3, 1, 3, 0, 0,
141
+ 0, 0, 0, 0, 0, 0, 0
141
142
  ]
142
143
 
143
144
  class << self
@@ -151,13 +152,13 @@ self._gorgyrella_parser_index_offsets = [
151
152
  94, 100, 109, 112, 115, 118, 121, 124,
152
153
  127, 131, 136, 139, 142, 146, 154, 157,
153
154
  160, 165, 171, 180, 186, 193, 199, 208,
154
- 211, 214, 217, 221, 224, 227, 232, 234,
155
- 236, 239, 242, 244, 249, 251, 253, 255,
156
- 257, 259, 262, 269, 272, 275, 280, 285,
157
- 292, 298, 307, 309, 311, 313, 315, 317,
158
- 319, 322, 326, 329, 332, 335, 342, 345,
159
- 348, 353, 358, 367, 372, 379, 385, 394,
160
- 397, 400, 405, 407, 409, 412, 419, 426
155
+ 212, 216, 220, 223, 226, 231, 233, 235,
156
+ 238, 241, 243, 248, 250, 252, 254, 256,
157
+ 258, 261, 268, 271, 274, 279, 284, 291,
158
+ 297, 306, 308, 310, 312, 314, 316, 318,
159
+ 321, 325, 328, 331, 334, 341, 344, 347,
160
+ 352, 357, 366, 371, 378, 384, 393, 396,
161
+ 399, 404, 407, 410, 415, 422, 429
161
162
  ]
162
163
 
163
164
  class << self
@@ -165,61 +166,61 @@ class << self
165
166
  private :_gorgyrella_parser_trans_targs, :_gorgyrella_parser_trans_targs=
166
167
  end
167
168
  self._gorgyrella_parser_trans_targs = [
168
- 102, 1, 2, 102, 2, 3, 4, 47,
169
- 1, 103, 5, 50, 1, 103, 5, 6,
170
- 1, 103, 1, 103, 5, 7, 1, 103,
171
- 5, 8, 1, 103, 9, 1, 102, 10,
172
- 26, 1, 102, 11, 13, 1, 102, 12,
173
- 1, 12, 102, 1, 12, 1, 102, 14,
174
- 1, 102, 15, 1, 102, 16, 1, 102,
175
- 17, 1, 18, 102, 18, 1, 18, 102,
176
- 18, 19, 24, 25, 25, 1, 102, 21,
177
- 20, 102, 21, 20, 22, 102, 1, 22,
178
- 1, 22, 102, 22, 23, 23, 1, 102,
179
- 1, 23, 23, 23, 23, 1, 22, 102,
180
- 1, 22, 24, 1, 22, 102, 1, 22,
181
- 25, 25, 25, 25, 1, 102, 27, 1,
182
- 102, 28, 1, 102, 29, 1, 102, 30,
183
- 1, 102, 31, 1, 102, 32, 1, 33,
184
- 102, 33, 1, 33, 102, 33, 34, 1,
185
- 102, 36, 35, 102, 36, 35, 37, 102,
186
- 37, 1, 37, 102, 37, 38, 45, 46,
187
- 46, 1, 102, 40, 39, 102, 40, 39,
188
- 41, 102, 1, 41, 1, 41, 102, 41,
189
- 42, 42, 1, 43, 102, 1, 43, 42,
190
- 42, 42, 42, 1, 43, 102, 43, 44,
191
- 44, 1, 102, 1, 44, 44, 44, 44,
192
- 1, 41, 102, 1, 41, 45, 1, 41,
193
- 102, 1, 41, 46, 46, 46, 46, 1,
194
- 102, 48, 1, 102, 49, 1, 102, 8,
195
- 1, 103, 5, 7, 1, 5, 52, 1,
196
- 5, 53, 1, 1, 54, 55, 1, 0,
197
- 1, 0, 56, 1, 57, 74, 0, 58,
198
- 61, 0, 59, 0, 59, 102, 60, 59,
199
- 0, 102, 0, 62, 0, 63, 0, 64,
200
- 0, 65, 0, 66, 66, 0, 66, 66,
201
- 67, 72, 73, 73, 0, 0, 69, 68,
202
- 0, 69, 68, 70, 102, 60, 70, 0,
203
- 70, 70, 71, 71, 0, 102, 60, 71,
204
- 71, 71, 71, 0, 70, 102, 60, 70,
205
- 72, 0, 70, 102, 60, 70, 73, 73,
206
- 73, 73, 0, 75, 0, 76, 0, 77,
207
- 0, 78, 0, 79, 0, 80, 0, 81,
208
- 81, 0, 81, 81, 82, 0, 0, 84,
209
- 83, 0, 84, 83, 85, 85, 0, 85,
210
- 85, 86, 93, 94, 94, 0, 0, 88,
211
- 87, 0, 88, 87, 89, 102, 60, 89,
212
- 0, 89, 89, 90, 90, 0, 91, 102,
213
- 60, 91, 90, 90, 90, 90, 0, 91,
214
- 91, 92, 92, 0, 102, 60, 92, 92,
215
- 92, 92, 0, 89, 102, 60, 89, 93,
216
- 0, 89, 102, 60, 89, 94, 94, 94,
217
- 94, 0, 5, 96, 1, 5, 97, 1,
218
- 1, 54, 55, 1, 0, 99, 0, 100,
219
- 0, 55, 1, 0, 2, 102, 2, 51,
220
- 95, 98, 1, 2, 102, 2, 51, 95,
221
- 98, 1, 2, 102, 2, 3, 4, 47,
222
- 1, 0
169
+ 101, 1, 2, 101, 2, 3, 4, 47,
170
+ 1, 102, 5, 49, 1, 102, 5, 6,
171
+ 1, 102, 1, 102, 5, 7, 1, 102,
172
+ 5, 8, 1, 102, 9, 1, 101, 10,
173
+ 26, 1, 101, 11, 13, 1, 101, 12,
174
+ 1, 12, 101, 1, 12, 1, 101, 14,
175
+ 1, 101, 15, 1, 101, 16, 1, 101,
176
+ 17, 1, 18, 101, 18, 1, 18, 101,
177
+ 18, 19, 24, 25, 25, 1, 101, 21,
178
+ 20, 101, 21, 20, 22, 101, 1, 22,
179
+ 1, 22, 101, 22, 23, 23, 1, 101,
180
+ 1, 23, 23, 23, 23, 1, 22, 101,
181
+ 1, 22, 24, 1, 22, 101, 1, 22,
182
+ 25, 25, 25, 25, 1, 101, 27, 1,
183
+ 101, 28, 1, 101, 29, 1, 101, 30,
184
+ 1, 101, 31, 1, 101, 32, 1, 33,
185
+ 101, 33, 1, 33, 101, 33, 34, 1,
186
+ 101, 36, 35, 101, 36, 35, 37, 101,
187
+ 37, 1, 37, 101, 37, 38, 45, 46,
188
+ 46, 1, 101, 40, 39, 101, 40, 39,
189
+ 41, 101, 1, 41, 1, 41, 101, 41,
190
+ 42, 42, 1, 43, 101, 1, 43, 42,
191
+ 42, 42, 42, 1, 43, 101, 43, 44,
192
+ 44, 1, 101, 1, 44, 44, 44, 44,
193
+ 1, 41, 101, 1, 41, 45, 1, 41,
194
+ 101, 1, 41, 46, 46, 46, 46, 1,
195
+ 102, 5, 48, 1, 102, 5, 7, 1,
196
+ 102, 5, 7, 1, 5, 51, 1, 5,
197
+ 52, 1, 1, 53, 54, 1, 0, 1,
198
+ 0, 55, 1, 56, 73, 0, 57, 60,
199
+ 0, 58, 0, 58, 101, 59, 58, 0,
200
+ 101, 0, 61, 0, 62, 0, 63, 0,
201
+ 64, 0, 65, 65, 0, 65, 65, 66,
202
+ 71, 72, 72, 0, 0, 68, 67, 0,
203
+ 68, 67, 69, 101, 59, 69, 0, 69,
204
+ 69, 70, 70, 0, 101, 59, 70, 70,
205
+ 70, 70, 0, 69, 101, 59, 69, 71,
206
+ 0, 69, 101, 59, 69, 72, 72, 72,
207
+ 72, 0, 74, 0, 75, 0, 76, 0,
208
+ 77, 0, 78, 0, 79, 0, 80, 80,
209
+ 0, 80, 80, 81, 0, 0, 83, 82,
210
+ 0, 83, 82, 84, 84, 0, 84, 84,
211
+ 85, 92, 93, 93, 0, 0, 87, 86,
212
+ 0, 87, 86, 88, 101, 59, 88, 0,
213
+ 88, 88, 89, 89, 0, 90, 101, 59,
214
+ 90, 89, 89, 89, 89, 0, 90, 90,
215
+ 91, 91, 0, 101, 59, 91, 91, 91,
216
+ 91, 0, 88, 101, 59, 88, 92, 0,
217
+ 88, 101, 59, 88, 93, 93, 93, 93,
218
+ 0, 5, 95, 1, 5, 96, 1, 1,
219
+ 53, 54, 1, 0, 5, 98, 1, 5,
220
+ 99, 1, 1, 53, 54, 1, 0, 2,
221
+ 101, 2, 50, 94, 97, 1, 2, 101,
222
+ 2, 50, 94, 97, 1, 2, 101, 2,
223
+ 3, 4, 47, 1, 0
223
224
  ]
224
225
 
225
226
  class << self
@@ -255,33 +256,33 @@ self._gorgyrella_parser_trans_actions = [
255
256
  47, 47, 16, 0, 0, 0, 0, 0,
256
257
  0, 0, 0, 0, 0, 0, 0, 0,
257
258
  0, 0, 0, 0, 0, 0, 0, 0,
258
- 0, 0, 0, 0, 0, 0, 0, 1,
259
- 0, 1, 0, 0, 43, 25, 1, 0,
260
- 0, 1, 0, 1, 0, 28, 28, 0,
261
- 1, 0, 1, 0, 1, 0, 1, 0,
262
- 1, 0, 1, 0, 0, 1, 0, 0,
259
+ 0, 0, 0, 0, 0, 0, 1, 0,
260
+ 1, 0, 0, 43, 25, 1, 0, 0,
261
+ 1, 0, 1, 0, 28, 28, 0, 1,
262
+ 0, 1, 0, 1, 0, 1, 0, 1,
263
+ 0, 1, 0, 0, 1, 0, 0, 0,
264
+ 3, 3, 3, 1, 1, 13, 3, 1,
265
+ 5, 0, 11, 39, 39, 11, 1, 0,
266
+ 0, 3, 3, 1, 67, 67, 0, 0,
267
+ 0, 0, 1, 16, 52, 52, 16, 0,
268
+ 1, 16, 52, 52, 16, 0, 0, 0,
269
+ 0, 1, 0, 1, 0, 1, 0, 1,
270
+ 0, 1, 0, 1, 0, 1, 0, 0,
271
+ 1, 0, 0, 0, 1, 1, 13, 3,
272
+ 1, 5, 0, 9, 9, 1, 0, 0,
263
273
  0, 3, 3, 3, 1, 1, 13, 3,
264
- 1, 5, 0, 11, 39, 39, 11, 1,
265
- 0, 0, 3, 3, 1, 67, 67, 0,
266
- 0, 0, 0, 1, 16, 52, 52, 16,
267
- 0, 1, 16, 52, 52, 16, 0, 0,
268
- 0, 0, 1, 0, 1, 0, 1, 0,
269
- 1, 0, 1, 0, 1, 0, 1, 0,
270
- 0, 1, 0, 0, 0, 1, 1, 13,
271
- 3, 1, 5, 0, 9, 9, 1, 0,
272
- 0, 0, 3, 3, 3, 1, 1, 13,
273
- 3, 1, 5, 0, 11, 35, 35, 11,
274
- 1, 0, 0, 3, 3, 1, 19, 57,
275
- 57, 19, 0, 0, 0, 0, 1, 0,
276
- 0, 3, 3, 1, 62, 62, 0, 0,
277
- 0, 0, 1, 16, 47, 47, 16, 0,
278
- 1, 16, 47, 47, 16, 0, 0, 0,
279
- 0, 1, 0, 0, 0, 0, 0, 0,
280
- 0, 0, 0, 0, 1, 0, 1, 0,
281
- 1, 0, 0, 1, 7, 7, 7, 7,
282
- 7, 7, 7, 31, 31, 31, 31, 31,
274
+ 1, 5, 0, 11, 35, 35, 11, 1,
275
+ 0, 0, 3, 3, 1, 19, 57, 57,
276
+ 19, 0, 0, 0, 0, 1, 0, 0,
277
+ 3, 3, 1, 62, 62, 0, 0, 0,
278
+ 0, 1, 16, 47, 47, 16, 0, 1,
279
+ 16, 47, 47, 16, 0, 0, 0, 0,
280
+ 1, 0, 0, 0, 0, 0, 0, 0,
281
+ 0, 0, 0, 1, 0, 0, 0, 0,
282
+ 0, 0, 0, 0, 0, 0, 1, 7,
283
+ 7, 7, 7, 7, 7, 7, 31, 31,
283
284
  31, 31, 31, 31, 31, 31, 31, 31,
284
- 31, 0
285
+ 31, 31, 31, 31, 0
285
286
  ]
286
287
 
287
288
  class << self
@@ -301,17 +302,17 @@ self._gorgyrella_parser_eof_actions = [
301
302
  1, 1, 1, 1, 1, 1, 1, 1,
302
303
  1, 1, 1, 1, 1, 1, 1, 1,
303
304
  1, 1, 1, 1, 1, 1, 1, 1,
304
- 1, 1, 1, 1, 1, 0, 22, 22
305
+ 1, 1, 1, 1, 0, 22, 22
305
306
  ]
306
307
 
307
308
  class << self
308
309
  attr_accessor :gorgyrella_parser_start
309
310
  end
310
- self.gorgyrella_parser_start = 101;
311
+ self.gorgyrella_parser_start = 100;
311
312
  class << self
312
313
  attr_accessor :gorgyrella_parser_first_final
313
314
  end
314
- self.gorgyrella_parser_first_final = 101;
315
+ self.gorgyrella_parser_first_final = 100;
315
316
  class << self
316
317
  attr_accessor :gorgyrella_parser_error
317
318
  end
@@ -320,10 +321,10 @@ self.gorgyrella_parser_error = 0;
320
321
  class << self
321
322
  attr_accessor :gorgyrella_parser_en_document
322
323
  end
323
- self.gorgyrella_parser_en_document = 101;
324
+ self.gorgyrella_parser_en_document = 100;
324
325
 
325
326
 
326
- # line 107 "lib/gorgyrella/parser.rl"
327
+ # line 108 "lib/gorgyrella/parser.rl"
327
328
 
328
329
  ### @export "run-machine"
329
330
  def self.run_machine(data, test_mode = false)
@@ -339,16 +340,16 @@ self.gorgyrella_parser_en_document = 101;
339
340
  eof = -1
340
341
 
341
342
 
342
- # line 343 "lib/gorgyrella/parser.rb"
343
+ # line 344 "lib/gorgyrella/parser.rb"
343
344
  begin
344
345
  p ||= 0
345
346
  pe ||= data.length
346
347
  cs = gorgyrella_parser_start
347
348
  end
348
349
 
349
- # line 122 "lib/gorgyrella/parser.rl"
350
+ # line 123 "lib/gorgyrella/parser.rl"
350
351
 
351
- # line 352 "lib/gorgyrella/parser.rb"
352
+ # line 353 "lib/gorgyrella/parser.rb"
352
353
  begin
353
354
  _klen, _trans, _keys, _acts, _nacts = nil
354
355
  _goto_level = 0
@@ -553,11 +554,11 @@ when 16 then
553
554
  command = :end end
554
555
  # line 84 "lib/gorgyrella/parser.rl"
555
556
  when 17 then
556
- # line 101 "lib/gorgyrella/parser.rl"
557
+ # line 102 "lib/gorgyrella/parser.rl"
557
558
  begin
558
559
  builder.append_line(current_line_text.chomp) unless location =~ /command/ end
559
- # line 101 "lib/gorgyrella/parser.rl"
560
- # line 561 "lib/gorgyrella/parser.rb"
560
+ # line 102 "lib/gorgyrella/parser.rl"
561
+ # line 562 "lib/gorgyrella/parser.rb"
561
562
  end # action switch
562
563
  end
563
564
  end
@@ -605,11 +606,11 @@ when 6 then
605
606
  end
606
607
  # line 54 "lib/gorgyrella/parser.rl"
607
608
  when 17 then
608
- # line 101 "lib/gorgyrella/parser.rl"
609
+ # line 102 "lib/gorgyrella/parser.rl"
609
610
  begin
610
611
  builder.append_line(current_line_text.chomp) unless location =~ /command/ end
611
- # line 101 "lib/gorgyrella/parser.rl"
612
- # line 613 "lib/gorgyrella/parser.rb"
612
+ # line 102 "lib/gorgyrella/parser.rl"
613
+ # line 614 "lib/gorgyrella/parser.rb"
613
614
  end # eof action switch
614
615
  end
615
616
  if _trigger_goto
@@ -623,7 +624,7 @@ end
623
624
  end
624
625
  end
625
626
 
626
- # line 123 "lib/gorgyrella/parser.rl"
627
+ # line 124 "lib/gorgyrella/parser.rl"
627
628
 
628
629
 
629
630
  if test_mode
@@ -89,11 +89,12 @@ module Gorgyrella
89
89
  non_starter = [^#%/] - eol;
90
90
  false_start_hash = '#'{1,2} . ([^#] - eol) ;
91
91
  false_start_percent = '%'{1,2} . ([^%] - eol) ;
92
- followed_by_zlen = ('%'{1,3} | '#' {1,3}) . eol;
92
+ false_start_fwd = '/'{1,2} . ([^/] - eol) ;
93
+ followed_by_zlen = ('%'{1,3} | '#' {1,3} | '/' {1,3}) . eol;
93
94
  no_at = ("###"|'%%%'|'///') . ' ' . [^@];
94
95
  more_than_three = ("####"|'%%%%'|'////');
95
96
 
96
- not_starter = non_starter | false_start_hash | false_start_percent | no_at | followed_by_zlen | more_than_three;
97
+ not_starter = non_starter | false_start_hash | false_start_percent | false_start_fwd | no_at | followed_by_zlen | more_than_three;
97
98
 
98
99
  statement = (ws* . starter . command %process_command) ;
99
100
  junk = (ws* . not_starter . (any - eol)* ) ;
@@ -0,0 +1,30 @@
1
+ begin
2
+ require "webby"
3
+
4
+ module Webby::Helpers
5
+ module GorgyrellaHelper
6
+ def gorg(filename, section = "1", format = nil, language = nil)
7
+ if !File.exist?(filename)
8
+ filename = File.join(Webby.site.content_dir, @page.dir, filename)
9
+ end
10
+
11
+ Gorgyrella.render_section(filename, section, format, language)
12
+ end
13
+
14
+ # LaTeX Helpers
15
+ def gorgl(filename, section = "1", format = "latex", language = nil)
16
+ gorg(filename, section, format, language)
17
+ end
18
+
19
+ def pygments_latex_styles(style = 'default')
20
+ command = "pygmentize -S #{style} -f latex"
21
+ $pygments_latex_styles_cache ||= IO.popen(command).read
22
+ end
23
+ end
24
+
25
+ register(GorgyrellaHelper)
26
+ end
27
+ puts "GorgyrellaHelper registered with Webby."
28
+ rescue LoadError
29
+ puts "Webby not available, GorgyrellaHelper not registered."
30
+ end