glyph 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. data/AUTHORS.textile +8 -0
  2. data/CHANGELOG.textile +260 -0
  3. data/LICENSE.textile +26 -0
  4. data/README.textile +49 -21
  5. data/Rakefile +17 -7
  6. data/VERSION +1 -1
  7. data/book/config.yml +11 -5
  8. data/book/document.glyph +24 -13
  9. data/book/lib/macros/reference.rb +41 -14
  10. data/book/output/html/glyph.html +2298 -687
  11. data/book/output/pdf/glyph.pdf +6218 -2698
  12. data/book/script/authors +1 -0
  13. data/book/script/changelog +1 -0
  14. data/book/script/compile.rb +8 -0
  15. data/book/script/license +1 -0
  16. data/book/script/prof +1 -0
  17. data/book/script/prof_results.htm +21079 -0
  18. data/book/script/readme +1 -0
  19. data/book/snippets.yml +3 -4
  20. data/book/text/acknowledgement.glyph +8 -0
  21. data/book/text/authoring.glyph +548 -0
  22. data/book/text/changelog.glyph +76 -0
  23. data/book/text/extending.glyph +224 -0
  24. data/book/text/{getting_started.textile → getting_started.glyph} +30 -24
  25. data/book/text/{introduction.textile → introduction.glyph} +22 -12
  26. data/book/text/license.glyph +21 -0
  27. data/book/text/{ref_commands.textile → ref_commands.glyph} +30 -8
  28. data/book/text/ref_config.glyph +108 -0
  29. data/book/text/ref_macros.glyph +378 -0
  30. data/book/text/troubleshooting.glyph +179 -0
  31. data/config.yml +16 -4
  32. data/glyph.gemspec +83 -22
  33. data/lib/glyph.rb +164 -31
  34. data/lib/glyph/commands.rb +98 -23
  35. data/lib/glyph/document.rb +13 -7
  36. data/lib/glyph/glyph_language.rb +9 -1
  37. data/lib/glyph/glyph_language.treetop +1 -1
  38. data/lib/glyph/interpreter.rb +19 -9
  39. data/lib/glyph/macro.rb +88 -11
  40. data/lib/glyph/macro_validators.rb +48 -0
  41. data/lib/glyph/node.rb +13 -1
  42. data/lib/glyph/system_extensions.rb +0 -28
  43. data/macros/common.rb +125 -31
  44. data/macros/filters.rb +19 -13
  45. data/macros/html/block.rb +119 -68
  46. data/macros/html/inline.rb +29 -3
  47. data/macros/html/structure.rb +40 -40
  48. data/spec/files/article.glyph +5 -0
  49. data/spec/lib/commands_spec.rb +98 -3
  50. data/spec/lib/document_spec.rb +15 -2
  51. data/spec/lib/glyph_spec.rb +39 -10
  52. data/spec/lib/interpreter_spec.rb +8 -2
  53. data/spec/lib/macro_spec.rb +54 -6
  54. data/spec/lib/macro_validators_spec.rb +33 -0
  55. data/spec/lib/node_spec.rb +11 -3
  56. data/spec/macros/filters_spec.rb +5 -5
  57. data/spec/macros/macros_spec.rb +185 -8
  58. data/spec/macros/textile_spec.rb +217 -0
  59. data/spec/spec_helper.rb +25 -15
  60. data/spec/tasks/generate_spec.rb +3 -3
  61. data/spec/tasks/load_spec.rb +11 -1
  62. data/spec/tasks/project_spec.rb +0 -3
  63. data/styles/coderay.css +121 -0
  64. data/styles/default.css +54 -20
  65. data/{book/styles/css3.css → styles/pagination.css} +35 -7
  66. data/styles/ultraviolet/active4d.css +114 -0
  67. data/styles/ultraviolet/all_hallows_eve.css +72 -0
  68. data/styles/ultraviolet/amy.css +147 -0
  69. data/styles/ultraviolet/blackboard.css +88 -0
  70. data/styles/ultraviolet/brilliance_black.css +605 -0
  71. data/styles/ultraviolet/brilliance_dull.css +599 -0
  72. data/styles/ultraviolet/cobalt.css +149 -0
  73. data/styles/ultraviolet/dawn.css +121 -0
  74. data/styles/ultraviolet/eiffel.css +121 -0
  75. data/styles/ultraviolet/espresso_libre.css +109 -0
  76. data/styles/ultraviolet/idle.css +62 -0
  77. data/styles/ultraviolet/iplastic.css +80 -0
  78. data/styles/ultraviolet/lazy.css +73 -0
  79. data/styles/ultraviolet/mac_classic.css +123 -0
  80. data/styles/ultraviolet/magicwb_amiga.css +104 -0
  81. data/styles/ultraviolet/pastels_on_dark.css +188 -0
  82. data/styles/ultraviolet/slush_poppies.css +85 -0
  83. data/styles/ultraviolet/spacecadet.css +51 -0
  84. data/styles/ultraviolet/sunburst.css +180 -0
  85. data/styles/ultraviolet/twilight.css +137 -0
  86. data/styles/ultraviolet/zenburnesque.css +91 -0
  87. data/tasks/generate.rake +45 -26
  88. data/tasks/load.rake +21 -18
  89. data/tasks/project.rake +3 -1
  90. metadata +210 -41
  91. data/book/styles/default.css +0 -190
  92. data/book/text/authoring.textile +0 -351
  93. data/book/text/extending.textile +0 -148
  94. data/book/text/ref_config.textile +0 -0
  95. data/book/text/ref_macros.textile +0 -256
  96. data/book/text/troubleshooting.textile +0 -118
  97. data/styles/css3.css +0 -220
@@ -0,0 +1,85 @@
1
+ pre.slush_poppies .Directives {
2
+ font-weight: bold;
3
+ }
4
+ pre.slush_poppies .TypeName {
5
+ color: #800080;
6
+ }
7
+ pre.slush_poppies .InheritedClass {
8
+ }
9
+ pre.slush_poppies .OcamlInfixFPOperators {
10
+ text-decoration: underline;
11
+ }
12
+ pre.slush_poppies .Number {
13
+ color: #0080A0;
14
+ }
15
+ pre.slush_poppies .LibraryVariable {
16
+ }
17
+ pre.slush_poppies .Storage {
18
+ color: #008080;
19
+ }
20
+ pre.slush_poppies .line-numbers {
21
+ background-color: #B0B0FF;
22
+ color: #000000;
23
+ }
24
+ pre.slush_poppies .OcamlPrefixFPOperators {
25
+ text-decoration: underline;
26
+ }
27
+ pre.slush_poppies .OcamlFloatingPointConstants {
28
+ text-decoration: underline;
29
+ }
30
+ pre.slush_poppies .LineNumberDirectives {
31
+ }
32
+ pre.slush_poppies .TagName {
33
+ }
34
+ pre.slush_poppies .StorageTypes {
35
+ color: #A08000;
36
+ }
37
+ pre.slush_poppies .Operators {
38
+ color: #2060A0;
39
+ }
40
+ pre.slush_poppies .LibraryConstant {
41
+ }
42
+ pre.slush_poppies .VariantTypes {
43
+ color: #C08060;
44
+ }
45
+ pre.slush_poppies .FunctionArgument {
46
+ }
47
+ pre.slush_poppies .BuiltInConstant {
48
+ }
49
+ pre.slush_poppies .ClassTypeName {
50
+ color: #8000C0;
51
+ }
52
+ pre.slush_poppies .ModuleKeyword {
53
+ color: #0080FF;
54
+ }
55
+ pre.slush_poppies .Invalid {
56
+ }
57
+ pre.slush_poppies .LibraryClassType {
58
+ }
59
+ pre.slush_poppies .LibraryFunction {
60
+ }
61
+ pre.slush_poppies .TagAttribute {
62
+ }
63
+ pre.slush_poppies .Keyword {
64
+ color: #2060A0;
65
+ }
66
+ pre.slush_poppies .UserDefinedConstant {
67
+ }
68
+ pre.slush_poppies .CharacterConstants {
69
+ color: #800000;
70
+ }
71
+ pre.slush_poppies .String {
72
+ color: #C03030;
73
+ }
74
+ pre.slush_poppies {
75
+ background-color: #F1F1F1;
76
+ color: #000000;
77
+ }
78
+ pre.slush_poppies .FunctionName {
79
+ color: #800000;
80
+ }
81
+ pre.slush_poppies .Variable {
82
+ }
83
+ pre.slush_poppies .Comment {
84
+ color: #406040;
85
+ }
@@ -0,0 +1,51 @@
1
+ pre.spacecadet .Constant {
2
+ color: #BF9960;
3
+ }
4
+ pre.spacecadet .Support {
5
+ color: #8A4B66;
6
+ }
7
+ pre.spacecadet .InheritedClass {
8
+ font-style: italic;
9
+ }
10
+ pre.spacecadet .LibraryVariable {
11
+ }
12
+ pre.spacecadet .Storage {
13
+ color: #9EBF60;
14
+ }
15
+ pre.spacecadet .line-numbers {
16
+ background-color: #40002F;
17
+ color: #FFFFFF;
18
+ }
19
+ pre.spacecadet {
20
+ background-color: #0D0D0D;
21
+ color: #DDE6CF;
22
+ }
23
+ pre.spacecadet .TagName {
24
+ }
25
+ pre.spacecadet .Exception {
26
+ color: #893062;
27
+ }
28
+ pre.spacecadet .LibraryConstant {
29
+ }
30
+ pre.spacecadet .Invalid {
31
+ background-color: #5F0047;
32
+ }
33
+ pre.spacecadet .LibraryClassType {
34
+ }
35
+ pre.spacecadet .TagAttribute {
36
+ }
37
+ pre.spacecadet .Keyword {
38
+ color: #728059;
39
+ }
40
+ pre.spacecadet .String {
41
+ color: #805978;
42
+ }
43
+ pre.spacecadet .Entity {
44
+ color: #6078BF;
45
+ }
46
+ pre.spacecadet .Variable {
47
+ color: #596380;
48
+ }
49
+ pre.spacecadet .Comment {
50
+ color: #473C45;
51
+ }
@@ -0,0 +1,180 @@
1
+ pre.sunburst .DiffInserted {
2
+ background-color: #253B22;
3
+ color: #F8F8F8;
4
+ }
5
+ pre.sunburst .DiffHeader {
6
+ background-color: #0E2231;
7
+ color: #F8F8F8;
8
+ font-style: italic;
9
+ }
10
+ pre.sunburst .CssPropertyValue {
11
+ color: #F9EE98;
12
+ }
13
+ pre.sunburst .CCCPreprocessorDirective {
14
+ color: #AFC4DB;
15
+ }
16
+ pre.sunburst .Constant {
17
+ color: #3387CC;
18
+ }
19
+ pre.sunburst .DiffChanged {
20
+ background-color: #4A410D;
21
+ color: #F8F8F8;
22
+ }
23
+ pre.sunburst .Support {
24
+ color: #9B859D;
25
+ }
26
+ pre.sunburst .MarkupList {
27
+ color: #E1D4B9;
28
+ }
29
+ pre.sunburst .CssConstructorArgument {
30
+ color: #8F9D6A;
31
+ }
32
+ pre.sunburst .Storage {
33
+ color: #99CF50;
34
+ }
35
+ pre.sunburst .line-numbers {
36
+ background-color: #DDF0FF;
37
+ color: #000000;
38
+ }
39
+ pre.sunburst .CssClass {
40
+ color: #9B703F;
41
+ }
42
+ pre.sunburst .StringConstant {
43
+ color: #DDF2A4;
44
+ }
45
+ pre.sunburst .MarkupSeparator {
46
+ background-color: #242424;
47
+ color: #60A633;
48
+ }
49
+ pre.sunburst .MarkupUnderline {
50
+ text-decoration: underline;
51
+ color: #E18964;
52
+ }
53
+ pre.sunburst .CssAtRule {
54
+ color: #8693A5;
55
+ }
56
+ pre.sunburst .MetaTagInline {
57
+ color: #E0C589;
58
+ }
59
+ pre.sunburst .JEntityNameType {
60
+ text-decoration: underline;
61
+ }
62
+ pre.sunburst .LogEntryError {
63
+ background-color: #751012;
64
+ }
65
+ pre.sunburst .MarkupHeading {
66
+ background-color: #632D04;
67
+ color: #FEDCC5;
68
+ }
69
+ pre.sunburst .CssTagName {
70
+ color: #CDA869;
71
+ }
72
+ pre.sunburst .SupportConstant {
73
+ color: #CF6A4C;
74
+ }
75
+ pre.sunburst .MarkupQuote {
76
+ background-color: #ECD091;
77
+ color: #E1D4B9;
78
+ font-style: italic;
79
+ }
80
+ pre.sunburst .DiffDeleted {
81
+ background-color: #420E09;
82
+ color: #F8F8F8;
83
+ }
84
+ pre.sunburst .CCCPreprocessorLine {
85
+ color: #8996A8;
86
+ }
87
+ pre.sunburst .StringRegexpSpecial {
88
+ color: #CF7D34;
89
+ }
90
+ pre.sunburst .EmbeddedSourceBright {
91
+ background-color: #ABADB4;
92
+ }
93
+ pre.sunburst .InvalidIllegal {
94
+ background-color: #150B15;
95
+ color: #FD5FF1;
96
+ }
97
+ pre.sunburst .MarkupRaw {
98
+ background-color: #ABADB4;
99
+ color: #578BB3;
100
+ }
101
+ pre.sunburst .SupportFunction {
102
+ color: #DAD085;
103
+ }
104
+ pre.sunburst .CssAdditionalConstants {
105
+ color: #DD7B3B;
106
+ }
107
+ pre.sunburst .MetaTagAll {
108
+ color: #89BDFF;
109
+ }
110
+ pre.sunburst .StringRegexp {
111
+ color: #E9C062;
112
+ }
113
+ pre.sunburst .StringEmbeddedSource {
114
+ color: #DAEFA3;
115
+ }
116
+ pre.sunburst .EntityInheritedClass {
117
+ color: #9B5C2E;
118
+ font-style: italic;
119
+ }
120
+ pre.sunburst .MarkupComment {
121
+ color: #F67B37;
122
+ font-style: italic;
123
+ }
124
+ pre.sunburst .MarkupBold {
125
+ font-weight: bold;
126
+ color: #E9C062;
127
+ }
128
+ pre.sunburst .CssId {
129
+ color: #8B98AB;
130
+ }
131
+ pre.sunburst .CssPseudoClass {
132
+ color: #8F9D6A;
133
+ }
134
+ pre.sunburst .JCast {
135
+ color: #676767;
136
+ font-style: italic;
137
+ }
138
+ pre.sunburst .StringVariable {
139
+ color: #8A9A95;
140
+ }
141
+ pre.sunburst .String {
142
+ color: #65B042;
143
+ }
144
+ pre.sunburst .Keyword {
145
+ color: #E28964;
146
+ }
147
+ pre.sunburst {
148
+ background-color: #000000;
149
+ color: #F8F8F8;
150
+ }
151
+ pre.sunburst .LogEntry {
152
+ background-color: #C7C7C7;
153
+ }
154
+ pre.sunburst .MarkupItalic {
155
+ color: #E9C062;
156
+ font-style: italic;
157
+ }
158
+ pre.sunburst .CssPropertyName {
159
+ color: #C5AF75;
160
+ }
161
+ pre.sunburst .Namespaces {
162
+ color: #E18964;
163
+ }
164
+ pre.sunburst .DoctypeXmlProcessing {
165
+ color: #494949;
166
+ }
167
+ pre.sunburst .InvalidDeprecated {
168
+ color: #FD5FF1;
169
+ font-style: italic;
170
+ }
171
+ pre.sunburst .Variable {
172
+ color: #3E87E3;
173
+ }
174
+ pre.sunburst .Entity {
175
+ color: #89BDFF;
176
+ }
177
+ pre.sunburst .Comment {
178
+ color: #AEAEAE;
179
+ font-style: italic;
180
+ }
@@ -0,0 +1,137 @@
1
+ pre.twilight .DiffInserted {
2
+ background-color: #253B22;
3
+ color: #F8F8F8;
4
+ }
5
+ pre.twilight .DiffHeader {
6
+ background-color: #0E2231;
7
+ color: #F8F8F8;
8
+ font-style: italic;
9
+ }
10
+ pre.twilight .CssPropertyValue {
11
+ color: #F9EE98;
12
+ }
13
+ pre.twilight .CCCPreprocessorDirective {
14
+ color: #AFC4DB;
15
+ }
16
+ pre.twilight .Constant {
17
+ color: #CF6A4C;
18
+ }
19
+ pre.twilight .DiffChanged {
20
+ background-color: #4A410D;
21
+ color: #F8F8F8;
22
+ }
23
+ pre.twilight .EmbeddedSource {
24
+ background-color: #A3A6AD;
25
+ }
26
+ pre.twilight .Support {
27
+ color: #9B859D;
28
+ }
29
+ pre.twilight .MarkupList {
30
+ color: #F9EE98;
31
+ }
32
+ pre.twilight .CssConstructorArgument {
33
+ color: #8F9D6A;
34
+ }
35
+ pre.twilight .Storage {
36
+ color: #F9EE98;
37
+ }
38
+ pre.twilight .line-numbers {
39
+ background-color: #DDF0FF;
40
+ color: #000000;
41
+ }
42
+ pre.twilight .CssClass {
43
+ color: #9B703F;
44
+ }
45
+ pre.twilight .StringConstant {
46
+ color: #DDF2A4;
47
+ }
48
+ pre.twilight .CssAtRule {
49
+ color: #8693A5;
50
+ }
51
+ pre.twilight .MetaTagInline {
52
+ color: #E0C589;
53
+ }
54
+ pre.twilight .MarkupHeading {
55
+ color: #CF6A4C;
56
+ }
57
+ pre.twilight .CssTagName {
58
+ color: #CDA869;
59
+ }
60
+ pre.twilight .SupportConstant {
61
+ color: #CF6A4C;
62
+ }
63
+ pre.twilight .DiffDeleted {
64
+ background-color: #420E09;
65
+ color: #F8F8F8;
66
+ }
67
+ pre.twilight .CCCPreprocessorLine {
68
+ color: #8996A8;
69
+ }
70
+ pre.twilight .StringRegexpSpecial {
71
+ color: #CF7D34;
72
+ }
73
+ pre.twilight .EmbeddedSourceBright {
74
+ background-color: #9C9EA4;
75
+ }
76
+ pre.twilight .InvalidIllegal {
77
+ background-color: #241A24;
78
+ color: #F8F8F8;
79
+ }
80
+ pre.twilight .SupportFunction {
81
+ color: #DAD085;
82
+ }
83
+ pre.twilight .CssAdditionalConstants {
84
+ color: #CA7840;
85
+ }
86
+ pre.twilight .MetaTagAll {
87
+ color: #AC885B;
88
+ }
89
+ pre.twilight .StringRegexp {
90
+ color: #E9C062;
91
+ }
92
+ pre.twilight .StringEmbeddedSource {
93
+ color: #DAEFA3;
94
+ }
95
+ pre.twilight .EntityInheritedClass {
96
+ color: #9B5C2E;
97
+ font-style: italic;
98
+ }
99
+ pre.twilight .CssId {
100
+ color: #8B98AB;
101
+ }
102
+ pre.twilight .CssPseudoClass {
103
+ color: #8F9D6A;
104
+ }
105
+ pre.twilight .StringVariable {
106
+ color: #8A9A95;
107
+ }
108
+ pre.twilight .String {
109
+ color: #8F9D6A;
110
+ }
111
+ pre.twilight .Keyword {
112
+ color: #CDA869;
113
+ }
114
+ pre.twilight {
115
+ background-color: #141414;
116
+ color: #F8F8F8;
117
+ }
118
+ pre.twilight .CssPropertyName {
119
+ color: #C5AF75;
120
+ }
121
+ pre.twilight .DoctypeXmlProcessing {
122
+ color: #494949;
123
+ }
124
+ pre.twilight .InvalidDeprecated {
125
+ color: #D2A8A1;
126
+ font-style: italic;
127
+ }
128
+ pre.twilight .Variable {
129
+ color: #7587A6;
130
+ }
131
+ pre.twilight .Entity {
132
+ color: #9B703F;
133
+ }
134
+ pre.twilight .Comment {
135
+ color: #5F5A60;
136
+ font-style: italic;
137
+ }