gorgyrella 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/gorgyrella.rb +1 -1
- data/lib/gorgyrella/parser.rb +129 -128
- data/lib/gorgyrella/parser.rl +3 -2
- data/lib/webby/gorgyrella_helper.rb.~1~ +30 -0
- data/webby/Sitefile +5 -1
- data/webby/content/css/style.css +280 -0
- data/webby/content/faq/index.txt +10 -0
- data/webby/content/favicon.ico +0 -0
- data/webby/content/img/Thumbs.db +0 -0
- data/webby/content/img/bg_menu.gif +0 -0
- data/webby/content/img/bg_t.gif +0 -0
- data/webby/content/img/bullet.gif +0 -0
- data/webby/content/img/logo.png +0 -0
- data/webby/content/img/logo_.jpg +0 -0
- data/webby/content/img/top_bg.gif +0 -0
- data/webby/content/img/top_bg_.gif +0 -0
- data/webby/content/index.txt +2 -7
- data/webby/content/installation/index.txt +24 -0
- data/webby/layouts/web.txt +54 -32
- data/webby/output/css/style.css +275 -0
- data/webby/output/faq/index.html +56 -0
- data/webby/output/favicon.ico +0 -0
- data/webby/output/img/Thumbs.db +0 -0
- data/webby/output/img/bg_menu.gif +0 -0
- data/webby/output/img/bg_t.gif +0 -0
- data/webby/output/img/bullet.gif +0 -0
- data/webby/output/img/logo.png +0 -0
- data/webby/output/img/logo_.jpg +0 -0
- data/webby/output/img/top_bg.gif +0 -0
- data/webby/output/img/top_bg_.gif +0 -0
- data/webby/output/index.html +51 -36
- data/webby/output/installation/index.html +63 -0
- metadata +29 -197
- data/.bzr/README +0 -3
- data/.bzr/branch-format +0 -1
- data/.bzr/branch/branch.conf +0 -2
- data/.bzr/branch/format +0 -1
- data/.bzr/branch/last-revision +0 -1
- data/.bzr/branch/tags +0 -0
- data/.bzr/checkout/conflicts +0 -1
- data/.bzr/checkout/dirstate +0 -0
- data/.bzr/checkout/format +0 -1
- data/.bzr/checkout/merge-hashes +0 -33
- data/.bzr/repository/format +0 -1
- data/.bzr/repository/indices/7433d7509bfad4e7de61716fd159a28e.iix +0 -0
- data/.bzr/repository/indices/7433d7509bfad4e7de61716fd159a28e.rix +0 -0
- data/.bzr/repository/indices/7433d7509bfad4e7de61716fd159a28e.six +0 -5
- data/.bzr/repository/indices/7433d7509bfad4e7de61716fd159a28e.tix +0 -0
- data/.bzr/repository/indices/747331f41951a7f9509b3190e9082de2.iix +0 -0
- data/.bzr/repository/indices/747331f41951a7f9509b3190e9082de2.rix +0 -0
- data/.bzr/repository/indices/747331f41951a7f9509b3190e9082de2.six +0 -5
- data/.bzr/repository/indices/747331f41951a7f9509b3190e9082de2.tix +0 -0
- data/.bzr/repository/indices/94ae76525de86acde2f4722e88fec764.iix +0 -0
- data/.bzr/repository/indices/94ae76525de86acde2f4722e88fec764.rix +0 -0
- data/.bzr/repository/indices/94ae76525de86acde2f4722e88fec764.six +0 -5
- data/.bzr/repository/indices/94ae76525de86acde2f4722e88fec764.tix +0 -0
- data/.bzr/repository/indices/ae5f61661ebb8f30600ce7443b2ea000.iix +0 -0
- data/.bzr/repository/indices/ae5f61661ebb8f30600ce7443b2ea000.rix +0 -0
- data/.bzr/repository/indices/ae5f61661ebb8f30600ce7443b2ea000.six +0 -5
- data/.bzr/repository/indices/ae5f61661ebb8f30600ce7443b2ea000.tix +0 -0
- data/.bzr/repository/indices/e34ba77fcb41bb254463c3c177123bb1.iix +0 -0
- data/.bzr/repository/indices/e34ba77fcb41bb254463c3c177123bb1.rix +0 -0
- data/.bzr/repository/indices/e34ba77fcb41bb254463c3c177123bb1.six +0 -5
- data/.bzr/repository/indices/e34ba77fcb41bb254463c3c177123bb1.tix +0 -0
- data/.bzr/repository/indices/e409e77b2da885ef4e5bc5089a04e60e.iix +0 -0
- data/.bzr/repository/indices/e409e77b2da885ef4e5bc5089a04e60e.rix +0 -0
- data/.bzr/repository/indices/e409e77b2da885ef4e5bc5089a04e60e.six +0 -5
- data/.bzr/repository/indices/e409e77b2da885ef4e5bc5089a04e60e.tix +0 -0
- data/.bzr/repository/indices/fa740d26e5ddc0570df1ec65a7a2af1c.iix +0 -0
- data/.bzr/repository/indices/fa740d26e5ddc0570df1ec65a7a2af1c.rix +0 -0
- data/.bzr/repository/indices/fa740d26e5ddc0570df1ec65a7a2af1c.six +0 -5
- data/.bzr/repository/indices/fa740d26e5ddc0570df1ec65a7a2af1c.tix +0 -0
- data/.bzr/repository/obsolete_packs/24b89e5a96bc1f03a7ce1a200ab48dc9.iix +0 -0
- data/.bzr/repository/obsolete_packs/24b89e5a96bc1f03a7ce1a200ab48dc9.pack +0 -0
- data/.bzr/repository/obsolete_packs/24b89e5a96bc1f03a7ce1a200ab48dc9.rix +0 -0
- data/.bzr/repository/obsolete_packs/24b89e5a96bc1f03a7ce1a200ab48dc9.six +0 -5
- data/.bzr/repository/obsolete_packs/24b89e5a96bc1f03a7ce1a200ab48dc9.tix +0 -0
- data/.bzr/repository/obsolete_packs/3ed72fa820dea2da6169d4361433a5f3.iix +0 -0
- data/.bzr/repository/obsolete_packs/3ed72fa820dea2da6169d4361433a5f3.pack +0 -0
- data/.bzr/repository/obsolete_packs/3ed72fa820dea2da6169d4361433a5f3.rix +0 -0
- data/.bzr/repository/obsolete_packs/3ed72fa820dea2da6169d4361433a5f3.six +0 -5
- data/.bzr/repository/obsolete_packs/3ed72fa820dea2da6169d4361433a5f3.tix +0 -0
- data/.bzr/repository/obsolete_packs/acd9bdd28baefb868bf64371dde19d2b.iix +0 -0
- data/.bzr/repository/obsolete_packs/acd9bdd28baefb868bf64371dde19d2b.pack +0 -0
- data/.bzr/repository/obsolete_packs/acd9bdd28baefb868bf64371dde19d2b.rix +0 -0
- data/.bzr/repository/obsolete_packs/acd9bdd28baefb868bf64371dde19d2b.six +0 -5
- data/.bzr/repository/obsolete_packs/acd9bdd28baefb868bf64371dde19d2b.tix +0 -0
- data/.bzr/repository/obsolete_packs/c408af011313ac56380f5716caffaf43.iix +0 -0
- data/.bzr/repository/obsolete_packs/c408af011313ac56380f5716caffaf43.pack +0 -0
- data/.bzr/repository/obsolete_packs/c408af011313ac56380f5716caffaf43.rix +0 -0
- data/.bzr/repository/obsolete_packs/c408af011313ac56380f5716caffaf43.six +0 -5
- data/.bzr/repository/obsolete_packs/c408af011313ac56380f5716caffaf43.tix +0 -0
- data/.bzr/repository/obsolete_packs/cf2fbd7a25e9ab28e03fe483b1232f54.iix +0 -0
- data/.bzr/repository/obsolete_packs/cf2fbd7a25e9ab28e03fe483b1232f54.pack +0 -0
- data/.bzr/repository/obsolete_packs/cf2fbd7a25e9ab28e03fe483b1232f54.rix +0 -0
- data/.bzr/repository/obsolete_packs/cf2fbd7a25e9ab28e03fe483b1232f54.six +0 -5
- data/.bzr/repository/obsolete_packs/cf2fbd7a25e9ab28e03fe483b1232f54.tix +0 -0
- data/.bzr/repository/obsolete_packs/fedc9930335a072ae735da013bf94c74.iix +0 -0
- data/.bzr/repository/obsolete_packs/fedc9930335a072ae735da013bf94c74.pack +0 -0
- data/.bzr/repository/obsolete_packs/fedc9930335a072ae735da013bf94c74.rix +0 -0
- data/.bzr/repository/obsolete_packs/fedc9930335a072ae735da013bf94c74.six +0 -5
- data/.bzr/repository/obsolete_packs/fedc9930335a072ae735da013bf94c74.tix +0 -0
- data/.bzr/repository/pack-names +0 -0
- data/.bzr/repository/packs/7433d7509bfad4e7de61716fd159a28e.pack +0 -0
- data/.bzr/repository/packs/747331f41951a7f9509b3190e9082de2.pack +0 -0
- data/.bzr/repository/packs/94ae76525de86acde2f4722e88fec764.pack +0 -0
- data/.bzr/repository/packs/ae5f61661ebb8f30600ce7443b2ea000.pack +0 -0
- data/.bzr/repository/packs/e34ba77fcb41bb254463c3c177123bb1.pack +0 -0
- data/.bzr/repository/packs/e409e77b2da885ef4e5bc5089a04e60e.pack +0 -0
- data/.bzr/repository/packs/fa740d26e5ddc0570df1ec65a7a2af1c.pack +0 -0
- data/.bzrignore +0 -5
- data/gorgyrella-manual-0-0-1.pdf +0 -0
- data/gorgyrella.gemspec +0 -36
- data/spec/builder_spec.rb +0 -7
- data/spec/composer_spec.rb +0 -70
- data/spec/data/coderay.css +0 -126
- data/spec/data/example-python.html +0 -24
- data/spec/data/example-ruby.html +0 -30
- data/spec/data/pygments.css +0 -59
- data/spec/data/test.py +0 -21
- data/spec/data/test.rb +0 -13
- data/spec/data/ultraviolet/css/active4d.css +0 -114
- data/spec/data/ultraviolet/css/all_hallows_eve.css +0 -72
- data/spec/data/ultraviolet/css/amy.css +0 -147
- data/spec/data/ultraviolet/css/blackboard.css +0 -88
- data/spec/data/ultraviolet/css/brilliance_black.css +0 -605
- data/spec/data/ultraviolet/css/brilliance_dull.css +0 -599
- data/spec/data/ultraviolet/css/cobalt.css +0 -149
- data/spec/data/ultraviolet/css/dawn.css +0 -121
- data/spec/data/ultraviolet/css/eiffel.css +0 -121
- data/spec/data/ultraviolet/css/espresso_libre.css +0 -109
- data/spec/data/ultraviolet/css/idle.css +0 -62
- data/spec/data/ultraviolet/css/iplastic.css +0 -80
- data/spec/data/ultraviolet/css/lazy.css +0 -73
- data/spec/data/ultraviolet/css/mac_classic.css +0 -123
- data/spec/data/ultraviolet/css/magicwb_amiga.css +0 -104
- data/spec/data/ultraviolet/css/pastels_on_dark.css +0 -188
- data/spec/data/ultraviolet/css/slush_poppies.css +0 -85
- data/spec/data/ultraviolet/css/spacecadet.css +0 -51
- data/spec/data/ultraviolet/css/sunburst.css +0 -180
- data/spec/data/ultraviolet/css/twilight.css +0 -137
- data/spec/data/ultraviolet/css/zenburnesque.css +0 -91
- data/spec/data/unmarked.rb +0 -32
- data/spec/gorgyrella_spec.rb +0 -7
- data/spec/parser_spec.rb +0 -73
- data/spec/spec_helper.rb +0 -13
- data/spec/tmp/example-python-processed-coderay.html +0 -31
- data/spec/tmp/example-python-processed-pygments.html +0 -31
- data/spec/tmp/example-python-processed-ultraviolet.html +0 -31
- data/spec/tmp/example-ruby-processed-coderay.html +0 -31
- data/spec/tmp/example-ruby-processed-pygments.html +0 -37
- data/spec/tmp/example-ruby-processed-ultraviolet.html +0 -33
- data/webby/.DS_Store +0 -0
- data/webby/content/css/blueprint/ie.css +0 -26
- data/webby/content/css/blueprint/plugins/buttons/icons/cross.png +0 -0
- data/webby/content/css/blueprint/plugins/buttons/icons/key.png +0 -0
- data/webby/content/css/blueprint/plugins/buttons/icons/tick.png +0 -0
- data/webby/content/css/blueprint/plugins/buttons/readme.txt +0 -32
- data/webby/content/css/blueprint/plugins/buttons/screen.css +0 -97
- data/webby/content/css/blueprint/plugins/fancy-type/readme.txt +0 -14
- data/webby/content/css/blueprint/plugins/fancy-type/screen.css +0 -71
- data/webby/content/css/blueprint/plugins/link-icons/icons/doc.png +0 -0
- data/webby/content/css/blueprint/plugins/link-icons/icons/email.png +0 -0
- data/webby/content/css/blueprint/plugins/link-icons/icons/external.png +0 -0
- data/webby/content/css/blueprint/plugins/link-icons/icons/feed.png +0 -0
- data/webby/content/css/blueprint/plugins/link-icons/icons/im.png +0 -0
- data/webby/content/css/blueprint/plugins/link-icons/icons/pdf.png +0 -0
- data/webby/content/css/blueprint/plugins/link-icons/icons/visited.png +0 -0
- data/webby/content/css/blueprint/plugins/link-icons/icons/xls.png +0 -0
- data/webby/content/css/blueprint/plugins/link-icons/readme.txt +0 -18
- data/webby/content/css/blueprint/plugins/link-icons/screen.css +0 -40
- data/webby/content/css/blueprint/plugins/rtl/readme.txt +0 -10
- data/webby/content/css/blueprint/plugins/rtl/screen.css +0 -109
- data/webby/content/css/blueprint/print.css +0 -30
- data/webby/content/css/blueprint/screen.css +0 -251
- data/webby/content/css/blueprint/src/forms.css +0 -49
- data/webby/content/css/blueprint/src/grid.css +0 -212
- data/webby/content/css/blueprint/src/grid.png +0 -0
- data/webby/content/css/blueprint/src/ie.css +0 -59
- data/webby/content/css/blueprint/src/print.css +0 -85
- data/webby/content/css/blueprint/src/reset.css +0 -38
- data/webby/content/css/blueprint/src/typography.css +0 -105
- data/webby/content/css/site.css +0 -78
- data/webby/content/gorgyrella-manual.erb +0 -33
- data/webby/output/css/blueprint/ie.css +0 -26
- data/webby/output/css/blueprint/plugins/buttons/icons/cross.png +0 -0
- data/webby/output/css/blueprint/plugins/buttons/icons/key.png +0 -0
- data/webby/output/css/blueprint/plugins/buttons/icons/tick.png +0 -0
- data/webby/output/css/blueprint/plugins/buttons/readme.txt +0 -32
- data/webby/output/css/blueprint/plugins/buttons/screen.css +0 -97
- data/webby/output/css/blueprint/plugins/fancy-type/readme.txt +0 -14
- data/webby/output/css/blueprint/plugins/fancy-type/screen.css +0 -71
- data/webby/output/css/blueprint/plugins/link-icons/icons/doc.png +0 -0
- data/webby/output/css/blueprint/plugins/link-icons/icons/email.png +0 -0
- data/webby/output/css/blueprint/plugins/link-icons/icons/external.png +0 -0
- data/webby/output/css/blueprint/plugins/link-icons/icons/feed.png +0 -0
- data/webby/output/css/blueprint/plugins/link-icons/icons/im.png +0 -0
- data/webby/output/css/blueprint/plugins/link-icons/icons/pdf.png +0 -0
- data/webby/output/css/blueprint/plugins/link-icons/icons/visited.png +0 -0
- data/webby/output/css/blueprint/plugins/link-icons/icons/xls.png +0 -0
- data/webby/output/css/blueprint/plugins/link-icons/readme.txt +0 -18
- data/webby/output/css/blueprint/plugins/link-icons/screen.css +0 -40
- data/webby/output/css/blueprint/plugins/rtl/readme.txt +0 -10
- data/webby/output/css/blueprint/plugins/rtl/screen.css +0 -109
- data/webby/output/css/blueprint/print.css +0 -30
- data/webby/output/css/blueprint/screen.css +0 -251
- data/webby/output/css/blueprint/src/forms.css +0 -49
- data/webby/output/css/blueprint/src/grid.css +0 -212
- data/webby/output/css/blueprint/src/grid.png +0 -0
- data/webby/output/css/blueprint/src/ie.css +0 -59
- data/webby/output/css/blueprint/src/print.css +0 -85
- data/webby/output/css/blueprint/src/reset.css +0 -38
- data/webby/output/css/blueprint/src/typography.css +0 -105
- data/webby/output/css/site.css +0 -62
- data/webby/output/gorgyrella-manual.aux +0 -17
- data/webby/output/gorgyrella-manual.erb +0 -51
- data/webby/output/gorgyrella-manual.log +0 -271
- data/webby/output/gorgyrella-manual.out +0 -2
- data/webby/output/gorgyrella-manual.pdf +0 -0
- data/webby/output/gorgyrella-manual.tex +0 -191
- 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
data/lib/gorgyrella/parser.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
module Gorgyrella
|
4
4
|
class Parser
|
5
5
|
|
6
|
-
# line
|
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
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
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,
|
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,
|
98
|
-
|
99
|
-
|
100
|
-
32, 35, 37, 47,
|
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,
|
114
|
-
|
115
|
-
2,
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
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,
|
137
|
-
|
138
|
-
0, 0, 0, 0,
|
139
|
-
|
140
|
-
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
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
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
|
-
|
169
|
-
1,
|
170
|
-
1,
|
171
|
-
5, 8, 1,
|
172
|
-
26, 1,
|
173
|
-
1, 12,
|
174
|
-
1,
|
175
|
-
17, 1, 18,
|
176
|
-
18, 19, 24, 25, 25, 1,
|
177
|
-
20,
|
178
|
-
1, 22,
|
179
|
-
1, 23, 23, 23, 23, 1, 22,
|
180
|
-
1, 22, 24, 1, 22,
|
181
|
-
25, 25, 25, 25, 1,
|
182
|
-
|
183
|
-
1,
|
184
|
-
|
185
|
-
|
186
|
-
37, 1, 37,
|
187
|
-
46, 1,
|
188
|
-
41,
|
189
|
-
42, 42, 1, 43,
|
190
|
-
42, 42, 42, 1, 43,
|
191
|
-
44, 1,
|
192
|
-
1, 41,
|
193
|
-
|
194
|
-
102, 48, 1, 102,
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
0,
|
200
|
-
0, 65,
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
0, 78, 0, 79, 0, 80,
|
208
|
-
|
209
|
-
83,
|
210
|
-
85,
|
211
|
-
87,
|
212
|
-
|
213
|
-
|
214
|
-
91,
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
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,
|
259
|
-
|
260
|
-
|
261
|
-
1, 0, 1, 0, 1, 0, 1,
|
262
|
-
|
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,
|
265
|
-
0, 0, 3, 3, 1,
|
266
|
-
|
267
|
-
|
268
|
-
0,
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
0, 0,
|
273
|
-
|
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,
|
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 =
|
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 =
|
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 =
|
324
|
+
self.gorgyrella_parser_en_document = 100;
|
324
325
|
|
325
326
|
|
326
|
-
# line
|
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
|
+
# 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
|
350
|
+
# line 123 "lib/gorgyrella/parser.rl"
|
350
351
|
|
351
|
-
# line
|
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
|
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
|
560
|
-
# line
|
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
|
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
|
612
|
-
# line
|
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
|
627
|
+
# line 124 "lib/gorgyrella/parser.rl"
|
627
628
|
|
628
629
|
|
629
630
|
if test_mode
|
data/lib/gorgyrella/parser.rl
CHANGED
@@ -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
|
-
|
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
|