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,149 @@
1
+ pre.cobalt .BlockQuote {
2
+ background-color: #004480;
3
+ }
4
+ pre.cobalt .DiffInserted {
5
+ background-color: #154F00;
6
+ color: #F8F8F8;
7
+ }
8
+ pre.cobalt .DiffHeader {
9
+ background-color: #000E1A;
10
+ color: #F8F8F8;
11
+ }
12
+ pre.cobalt .CssPropertyValue {
13
+ color: #F6F080;
14
+ }
15
+ pre.cobalt .CCPreprocessorDirective {
16
+ color: #AFC4DB;
17
+ }
18
+ pre.cobalt .Constant {
19
+ color: #FF628C;
20
+ }
21
+ pre.cobalt .List {
22
+ background-color: #130D26;
23
+ }
24
+ pre.cobalt .DiffChanged {
25
+ background-color: #806F00;
26
+ color: #F8F8F8;
27
+ }
28
+ pre.cobalt .EmbeddedSource {
29
+ background-color: #223545;
30
+ color: #FFFFFF;
31
+ }
32
+ pre.cobalt .Support {
33
+ color: #80FFBB;
34
+ }
35
+ pre.cobalt .Punctuation {
36
+ color: #E1EFFF;
37
+ }
38
+ pre.cobalt .RawMarkup {
39
+ background-color: #74B9D3;
40
+ }
41
+ pre.cobalt .CssConstructorArgument {
42
+ color: #EB939A;
43
+ }
44
+ pre.cobalt .LangVariable {
45
+ color: #FF80E1;
46
+ }
47
+ pre.cobalt .Storage {
48
+ color: #FFEE80;
49
+ }
50
+ pre.cobalt .line-numbers {
51
+ background-color: #B36539;
52
+ color: #000000;
53
+ }
54
+ pre.cobalt .CssClass {
55
+ color: #5FE461;
56
+ }
57
+ pre.cobalt .StringConstant {
58
+ color: #80FF82;
59
+ }
60
+ pre.cobalt .CssAtRule {
61
+ color: #F6AA11;
62
+ }
63
+ pre.cobalt .BoldMarkup {
64
+ font-weight: bold;
65
+ color: #C1AFFF;
66
+ }
67
+ pre.cobalt .CssTagName {
68
+ color: #9EFFFF;
69
+ }
70
+ pre.cobalt .Exception {
71
+ color: #FF1E00;
72
+ }
73
+ pre.cobalt .SupportConstant {
74
+ color: #EB939A;
75
+ }
76
+ pre.cobalt .ItalicMarkup {
77
+ color: #B8FFD9;
78
+ font-style: italic;
79
+ }
80
+ pre.cobalt .DiffDeleted {
81
+ background-color: #4C0900;
82
+ color: #F8F8F8;
83
+ }
84
+ pre.cobalt .CCPreprocessorLine {
85
+ color: #8996A8;
86
+ }
87
+ pre.cobalt .SupportFunction {
88
+ color: #FFB054;
89
+ }
90
+ pre.cobalt .CssAdditionalConstants {
91
+ color: #EDF080;
92
+ }
93
+ pre.cobalt .MetaTagA {
94
+ color: #9EFFFF;
95
+ }
96
+ pre.cobalt .StringRegexp {
97
+ color: #80FFC2;
98
+ }
99
+ pre.cobalt .StringEmbeddedSource {
100
+ color: #9EFF80;
101
+ }
102
+ pre.cobalt .EntityInheritedClass {
103
+ color: #80FCFF;
104
+ font-style: italic;
105
+ }
106
+ pre.cobalt .FunctionCall {
107
+ color: #FFEE80;
108
+ }
109
+ pre.cobalt {
110
+ background-color: #002240;
111
+ color: #FFFFFF;
112
+ }
113
+ pre.cobalt .CssId {
114
+ color: #FFB454;
115
+ }
116
+ pre.cobalt .StringVariable {
117
+ color: #EDEF7D;
118
+ }
119
+ pre.cobalt .Invalid {
120
+ background-color: #800F00;
121
+ color: #F8F8F8;
122
+ }
123
+ pre.cobalt .String {
124
+ color: #3AD900;
125
+ }
126
+ pre.cobalt .Keyword {
127
+ color: #FF9D00;
128
+ }
129
+ pre.cobalt .HeadingMarkup {
130
+ font-weight: bold;
131
+ background-color: #001221;
132
+ color: #C8E4FD;
133
+ }
134
+ pre.cobalt .CssPropertyName {
135
+ color: #9DF39F;
136
+ }
137
+ pre.cobalt .DoctypeXmlProcessing {
138
+ color: #73817D;
139
+ }
140
+ pre.cobalt .Variable {
141
+ color: #CCCCCC;
142
+ }
143
+ pre.cobalt .Comment {
144
+ color: #0088FF;
145
+ font-style: italic;
146
+ }
147
+ pre.cobalt .Entity {
148
+ color: #FFDD00;
149
+ }
@@ -0,0 +1,121 @@
1
+ pre.dawn .MetaSeparator {
2
+ font-weight: bold;
3
+ background-color: #DCDCDC;
4
+ color: #19356D;
5
+ }
6
+ pre.dawn .SupportVariable {
7
+ color: #234A97;
8
+ }
9
+ pre.dawn .Constant {
10
+ font-weight: bold;
11
+ color: #811F24;
12
+ }
13
+ pre.dawn .EmbeddedSource {
14
+ background-color: #829AC2;
15
+ }
16
+ pre.dawn .StringRegexpConstantCharacterEscape {
17
+ font-weight: bold;
18
+ color: #811F24;
19
+ }
20
+ pre.dawn .Support {
21
+ color: #691C97;
22
+ }
23
+ pre.dawn .MarkupList {
24
+ color: #693A17;
25
+ }
26
+ pre.dawn .Storage {
27
+ color: #A71D5D;
28
+ font-style: italic;
29
+ }
30
+ pre.dawn .line-numbers {
31
+ background-color: #7496CF;
32
+ color: #000000;
33
+ }
34
+ pre.dawn .StringConstant {
35
+ font-weight: bold;
36
+ color: #696969;
37
+ }
38
+ pre.dawn .MarkupUnderline {
39
+ text-decoration: underline;
40
+ color: #080808;
41
+ }
42
+ pre.dawn .MarkupHeading {
43
+ font-weight: bold;
44
+ color: #19356D;
45
+ }
46
+ pre.dawn .SupportConstant {
47
+ color: #B4371F;
48
+ }
49
+ pre.dawn .MarkupQuote {
50
+ background-color: #C5C5C5;
51
+ color: #0B6125;
52
+ font-style: italic;
53
+ }
54
+ pre.dawn .StringRegexpSpecial {
55
+ font-weight: bold;
56
+ color: #CF5628;
57
+ }
58
+ pre.dawn .InvalidIllegal {
59
+ background-color: #B52A1D;
60
+ color: #F8F8F8;
61
+ font-style: italic;
62
+ }
63
+ pre.dawn .MarkupDeleted {
64
+ color: #B52A1D;
65
+ }
66
+ pre.dawn .MarkupRaw {
67
+ background-color: #C5C5C5;
68
+ color: #234A97;
69
+ }
70
+ pre.dawn .SupportFunction {
71
+ color: #693A17;
72
+ }
73
+ pre.dawn .PunctuationSeparator {
74
+ color: #794938;
75
+ }
76
+ pre.dawn .StringRegexp {
77
+ color: #CF5628;
78
+ }
79
+ pre.dawn .StringEmbeddedSource {
80
+ background-color: #829AC2;
81
+ color: #080808;
82
+ }
83
+ pre.dawn .MarkupLink {
84
+ color: #234A97;
85
+ font-style: italic;
86
+ }
87
+ pre.dawn .MarkupBold {
88
+ font-weight: bold;
89
+ color: #080808;
90
+ }
91
+ pre.dawn .StringVariable {
92
+ color: #234A97;
93
+ }
94
+ pre.dawn .String {
95
+ color: #0B6125;
96
+ }
97
+ pre.dawn .Keyword {
98
+ color: #794938;
99
+ }
100
+ pre.dawn {
101
+ background-color: #F5F5F5;
102
+ color: #080808;
103
+ }
104
+ pre.dawn .MarkupItalic {
105
+ color: #080808;
106
+ font-style: italic;
107
+ }
108
+ pre.dawn .InvalidDeprecated {
109
+ font-weight: bold;
110
+ color: #B52A1D;
111
+ }
112
+ pre.dawn .Variable {
113
+ color: #234A97;
114
+ }
115
+ pre.dawn .Entity {
116
+ color: #BF4F24;
117
+ }
118
+ pre.dawn .Comment {
119
+ color: #5A525F;
120
+ font-style: italic;
121
+ }
@@ -0,0 +1,121 @@
1
+ pre.eiffel .EmbeddedSource {
2
+ background-color: #6597F6;
3
+ }
4
+ pre.eiffel .LibraryObject {
5
+ font-weight: bold;
6
+ color: #6D79DE;
7
+ }
8
+ pre.eiffel .Section {
9
+ font-style: italic;
10
+ }
11
+ pre.eiffel .FunctionArgumentAndResultTypes {
12
+ color: #70727E;
13
+ }
14
+ pre.eiffel .TypeName {
15
+ font-style: italic;
16
+ }
17
+ pre.eiffel .Number {
18
+ color: #CD0000;
19
+ font-style: italic;
20
+ }
21
+ pre.eiffel .MarkupList {
22
+ color: #B90690;
23
+ }
24
+ pre.eiffel .MarkupTagAttribute {
25
+ font-style: italic;
26
+ }
27
+ pre.eiffel .LibraryVariable {
28
+ font-weight: bold;
29
+ color: #21439C;
30
+ }
31
+ pre.eiffel .line-numbers {
32
+ background-color: #C3DCFF;
33
+ color: #000000;
34
+ }
35
+ pre.eiffel .FunctionParameter {
36
+ font-style: italic;
37
+ }
38
+ pre.eiffel .MarkupTag {
39
+ color: #1C02FF;
40
+ }
41
+ pre.eiffel {
42
+ background-color: #FFFFFF;
43
+ color: #000000;
44
+ }
45
+ pre.eiffel .MarkupHeading {
46
+ font-weight: bold;
47
+ color: #0C07FF;
48
+ }
49
+ pre.eiffel .JsOperator {
50
+ color: #687687;
51
+ }
52
+ pre.eiffel .InheritedClassName {
53
+ font-style: italic;
54
+ }
55
+ pre.eiffel .StringInterpolation {
56
+ color: #26B31A;
57
+ }
58
+ pre.eiffel .MarkupQuote {
59
+ color: #000000;
60
+ font-style: italic;
61
+ }
62
+ pre.eiffel .MarkupNameOfTag {
63
+ font-weight: bold;
64
+ }
65
+ pre.eiffel .InvalidTrailingWhitespace {
66
+ background-color: #FFD0D0;
67
+ }
68
+ pre.eiffel .LibraryConstant {
69
+ font-weight: bold;
70
+ color: #06960E;
71
+ }
72
+ pre.eiffel .MarkupXmlDeclaration {
73
+ color: #68685B;
74
+ }
75
+ pre.eiffel .PreprocessorDirective {
76
+ font-weight: bold;
77
+ color: #0C450D;
78
+ }
79
+ pre.eiffel .BuiltInConstant {
80
+ color: #585CF6;
81
+ font-style: italic;
82
+ }
83
+ pre.eiffel .MarkupDtd {
84
+ font-style: italic;
85
+ }
86
+ pre.eiffel .Invalid {
87
+ background-color: #990000;
88
+ color: #FFFFFF;
89
+ }
90
+ pre.eiffel .LibraryFunction {
91
+ font-weight: bold;
92
+ color: #3C4C72;
93
+ }
94
+ pre.eiffel .String {
95
+ color: #D80800;
96
+ }
97
+ pre.eiffel .UserDefinedConstant {
98
+ color: #C5060B;
99
+ font-style: italic;
100
+ }
101
+ pre.eiffel .Keyword {
102
+ font-weight: bold;
103
+ color: #0100B6;
104
+ }
105
+ pre.eiffel .MarkupDoctype {
106
+ color: #888888;
107
+ }
108
+ pre.eiffel .FunctionName {
109
+ font-weight: bold;
110
+ color: #0000A2;
111
+ }
112
+ pre.eiffel .PreprocessorLine {
113
+ color: #1A921C;
114
+ }
115
+ pre.eiffel .Variable {
116
+ color: #0206FF;
117
+ font-style: italic;
118
+ }
119
+ pre.eiffel .Comment {
120
+ color: #00B418;
121
+ }
@@ -0,0 +1,109 @@
1
+ pre.espresso_libre .EmbeddedSource {
2
+ background-color: #CE9065;
3
+ }
4
+ pre.espresso_libre .LibraryObject {
5
+ font-weight: bold;
6
+ color: #6D79DE;
7
+ }
8
+ pre.espresso_libre .Section {
9
+ font-style: italic;
10
+ }
11
+ pre.espresso_libre .FunctionArgumentAndResultTypes {
12
+ color: #8B8E9C;
13
+ }
14
+ pre.espresso_libre .TypeName {
15
+ text-decoration: underline;
16
+ }
17
+ pre.espresso_libre .Number {
18
+ color: #44AA43;
19
+ }
20
+ pre.espresso_libre {
21
+ background-color: #2A211C;
22
+ color: #BDAE9D;
23
+ }
24
+ pre.espresso_libre .MarkupTagAttribute {
25
+ font-style: italic;
26
+ }
27
+ pre.espresso_libre .LibraryVariable {
28
+ font-weight: bold;
29
+ color: #2F5FE0;
30
+ }
31
+ pre.espresso_libre .line-numbers {
32
+ background-color: #C3DCFF;
33
+ color: #000000;
34
+ }
35
+ pre.espresso_libre .FunctionParameter {
36
+ font-style: italic;
37
+ }
38
+ pre.espresso_libre .MarkupTag {
39
+ color: #43A8ED;
40
+ }
41
+ pre.espresso_libre .JsOperator {
42
+ color: #687687;
43
+ }
44
+ pre.espresso_libre .InheritedClassName {
45
+ font-style: italic;
46
+ }
47
+ pre.espresso_libre .StringInterpolation {
48
+ color: #2FE420;
49
+ }
50
+ pre.espresso_libre .MarkupNameOfTag {
51
+ font-weight: bold;
52
+ }
53
+ pre.espresso_libre .InvalidTrailingWhitespace {
54
+ background-color: #FFD0D0;
55
+ }
56
+ pre.espresso_libre .LibraryConstant {
57
+ font-weight: bold;
58
+ color: #00AF0E;
59
+ }
60
+ pre.espresso_libre .MarkupXmlDeclaration {
61
+ color: #8F7E65;
62
+ }
63
+ pre.espresso_libre .PreprocessorDirective {
64
+ font-weight: bold;
65
+ color: #9AFF87;
66
+ }
67
+ pre.espresso_libre .BuiltInConstant {
68
+ font-weight: bold;
69
+ color: #585CF6;
70
+ }
71
+ pre.espresso_libre .MarkupDtd {
72
+ font-style: italic;
73
+ }
74
+ pre.espresso_libre .Invalid {
75
+ background-color: #990000;
76
+ color: #FFFFFF;
77
+ }
78
+ pre.espresso_libre .LibraryFunction {
79
+ font-weight: bold;
80
+ color: #7290D9;
81
+ }
82
+ pre.espresso_libre .String {
83
+ color: #049B0A;
84
+ }
85
+ pre.espresso_libre .UserDefinedConstant {
86
+ font-weight: bold;
87
+ color: #C5656B;
88
+ }
89
+ pre.espresso_libre .Keyword {
90
+ font-weight: bold;
91
+ color: #43A8ED;
92
+ }
93
+ pre.espresso_libre .MarkupDoctype {
94
+ color: #888888;
95
+ }
96
+ pre.espresso_libre .FunctionName {
97
+ font-weight: bold;
98
+ color: #FF9358;
99
+ }
100
+ pre.espresso_libre .PreprocessorLine {
101
+ color: #1A921C;
102
+ }
103
+ pre.espresso_libre .Variable {
104
+ color: #318495;
105
+ }
106
+ pre.espresso_libre .Comment {
107
+ color: #0066FF;
108
+ font-style: italic;
109
+ }