rrtf 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +31 -7
- data/documentation/RRTF/CharacterFormatting.html +1002 -0
- data/documentation/RRTF/CharacterStyle.html +1058 -0
- data/documentation/RRTF/Colour.html +813 -0
- data/documentation/RRTF/ColourTable.html +770 -0
- data/documentation/RRTF/CommandNode.html +2372 -0
- data/documentation/RRTF/ContainerNode.html +826 -0
- data/documentation/RRTF/Converters/HTML/Helpers.html +272 -0
- data/documentation/RRTF/Converters/HTML/Node.html +364 -0
- data/documentation/RRTF/Converters/HTML/NodeSet.html +265 -0
- data/documentation/RRTF/Converters/HTML.html +337 -0
- data/documentation/RRTF/Converters.html +117 -0
- data/documentation/RRTF/Document.html +2405 -0
- data/documentation/RRTF/DocumentStyle.html +1367 -0
- data/documentation/RRTF/Font.html +790 -0
- data/documentation/RRTF/FontTable.html +763 -0
- data/documentation/RRTF/FooterNode.html +515 -0
- data/documentation/RRTF/HeaderNode.html +515 -0
- data/documentation/RRTF/ImageNode.html +1374 -0
- data/documentation/RRTF/Information.html +809 -0
- data/documentation/RRTF/LinkNode.html +264 -0
- data/documentation/RRTF/ListLevel.html +799 -0
- data/documentation/RRTF/ListLevelNode.html +612 -0
- data/documentation/RRTF/ListMarker.html +595 -0
- data/documentation/RRTF/ListNode.html +368 -0
- data/documentation/RRTF/ListTable.html +343 -0
- data/documentation/RRTF/ListTemplate.html +433 -0
- data/documentation/RRTF/ListTextNode.html +285 -0
- data/documentation/RRTF/Node.html +616 -0
- data/documentation/RRTF/Paper.html +624 -0
- data/documentation/RRTF/ParagraphFormatting.html +749 -0
- data/documentation/RRTF/ParagraphNode.html +275 -0
- data/documentation/RRTF/ParagraphStyle.html +1319 -0
- data/documentation/RRTF/RTFError.html +295 -0
- data/documentation/RRTF/Style.html +1767 -0
- data/documentation/RRTF/Stylesheet.html +1768 -0
- data/documentation/RRTF/TableCellNode.html +1704 -0
- data/documentation/RRTF/TableNode.html +1025 -0
- data/documentation/RRTF/TableRowNode.html +675 -0
- data/documentation/RRTF/TextNode.html +600 -0
- data/documentation/RRTF/Utilities.html +201 -0
- data/documentation/RRTF.html +129 -0
- data/documentation/_index.html +478 -0
- data/documentation/class_list.html +51 -0
- data/documentation/css/common.css +1 -0
- data/documentation/css/full_list.css +58 -0
- data/documentation/css/style.css +492 -0
- data/documentation/file.README.html +223 -0
- data/documentation/file_list.html +56 -0
- data/documentation/frames.html +17 -0
- data/documentation/index.html +223 -0
- data/documentation/js/app.js +248 -0
- data/documentation/js/full_list.js +216 -0
- data/documentation/js/jquery.js +4 -0
- data/documentation/method_list.html +2203 -0
- data/documentation/top-level-namespace.html +110 -0
- data/examples/01.rtf +14 -17
- data/examples/01_mac_word15_36.png +0 -0
- data/examples/01_styles_and_paragraphs.rb +3 -4
- data/examples/resources/json/redshirt_styles.json +4 -2
- data/lib/rrtf/node.rb +86 -167
- data/lib/rrtf/style/character_style.rb +4 -3
- data/lib/rrtf/style/formatting.rb +55 -11
- data/lib/rrtf/style/paragraph_style.rb +19 -4
- data/lib/rrtf/style/style.rb +15 -15
- data/lib/rrtf/stylesheet.rb +57 -16
- data/lib/rrtf/version.rb +1 -1
- data/rrtf.gemspec +1 -0
- metadata +70 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a0351a0d1b28be98c4798d675b2f7a179ad0ad4
|
4
|
+
data.tar.gz: c6861c1a5b968868ca685009a2774c97116640fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d64ee68829290eec6c28107e1cae8f61010e8400c4f972b8de159b6cf1c8aa364fb8b308ebe1f60be69e95430edbf2380b823d638d1e9e4b43181eed09a5fdc
|
7
|
+
data.tar.gz: 1884c08c045e80c581d5899ae990c06d4263b3251efd7a9693fd99a1f787d7fb7ef49b2132bc1ed8515f8b1e983abe87bf8e56f47b4d94b3b2fd69751c685270
|
data/README.md
CHANGED
@@ -36,20 +36,36 @@ a hashmap array or JSON file:
|
|
36
36
|
"id": "TITLE",
|
37
37
|
"name": "Title",
|
38
38
|
"primary": true,
|
39
|
+
"auto_update": true,
|
39
40
|
"next_style": "BODY",
|
41
|
+
"base_style": "BODY",
|
40
42
|
"justification": "CENTER",
|
41
43
|
"space_after": 100,
|
42
44
|
"bold": true,
|
43
45
|
"underline": "DOUBLE",
|
46
|
+
"underline_color": "#ff0000",
|
44
47
|
"uppercase": true,
|
45
|
-
"font_size": 36
|
46
|
-
|
48
|
+
"font_size": 36
|
49
|
+
},
|
50
|
+
{
|
51
|
+
"type": "paragraph",
|
52
|
+
"id": "H1",
|
53
|
+
"name": "Heading 1",
|
54
|
+
"primary": true,
|
55
|
+
"next_style": "BODY",
|
56
|
+
"space_after": 40,
|
57
|
+
"space_before": 200,
|
58
|
+
"underline": "SINGLE",
|
59
|
+
"underline_color": "#ff0000",
|
60
|
+
"bold": true,
|
61
|
+
"font_size": 24
|
47
62
|
},
|
48
63
|
{
|
49
64
|
"type": "paragraph",
|
50
65
|
"id": "BODY",
|
51
|
-
"name": "
|
66
|
+
"name": "Normal",
|
52
67
|
"primary": true,
|
68
|
+
"default": true,
|
53
69
|
"justification": "LEFT",
|
54
70
|
"font_size": 24,
|
55
71
|
"hyphenate": true
|
@@ -61,7 +77,8 @@ a hashmap array or JSON file:
|
|
61
77
|
"additive": true,
|
62
78
|
"italic": true,
|
63
79
|
"bold": true,
|
64
|
-
"foreground_color": "#ff0000"
|
80
|
+
"foreground_color": "#ff0000",
|
81
|
+
"locked": true
|
65
82
|
}
|
66
83
|
]
|
67
84
|
```
|
@@ -86,9 +103,16 @@ rtf.paragraph(styles['BODY']) do |p|
|
|
86
103
|
p << "shirt, take heed and be on guard, for danger is immanent and you are "
|
87
104
|
p << "likely expendable among the crew..."
|
88
105
|
end
|
89
|
-
|
90
|
-
|
91
|
-
|
106
|
+
rtf.paragraph(styles['H1']) << "1. The Danger of Away Missions"
|
107
|
+
rtf.paragraph(styles['BODY']) do |p|
|
108
|
+
p << "If you're ever assigned an away mission, it's almost certain to be your doom. "
|
109
|
+
p << "The optimal strategy is to avoid away missions to begin with..."
|
110
|
+
end
|
111
|
+
rtf.paragraph(styles['H1']) << "2. Avoiding High-Ranking Officers"
|
112
|
+
rtf.paragraph(styles['BODY']) do |p|
|
113
|
+
p << "You're likely to notice an influx of unfortunate outcomes around "
|
114
|
+
p << "certain high-ranking officers. Its to your advantage to quickly identify and "
|
115
|
+
p << "avoid these officers..."
|
92
116
|
end
|
93
117
|
```
|
94
118
|
|