rsyntaxtree 1.2.3 → 1.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.tags +364 -127
- data/Rakefile +3 -0
- data/bin/rsyntaxtree +2 -0
- data/docs/_examples/000.md +2 -1
- data/docs/_examples/001.md +1 -0
- data/docs/_examples/002.md +1 -0
- data/docs/_examples/003.md +1 -0
- data/docs/_examples/004.md +1 -0
- data/docs/_examples/005.md +1 -0
- data/docs/_examples/006.md +1 -0
- data/docs/_examples/007.md +1 -0
- data/docs/_examples/008.md +1 -0
- data/docs/_examples/009.md +1 -0
- data/docs/_examples/010.md +1 -0
- data/docs/_examples/011.md +1 -0
- data/docs/_examples/012.md +1 -0
- data/docs/_examples/013.md +1 -0
- data/docs/_examples/014.md +1 -0
- data/docs/_examples/015.md +1 -0
- data/docs/_examples/016.md +1 -0
- data/docs/_examples/017.md +1 -0
- data/docs/_examples/018.md +1 -0
- data/docs/_examples/019.md +1 -0
- data/docs/_examples/020.md +7 -6
- data/docs/_examples/021.md +1 -0
- data/docs/_examples/022.md +1 -0
- data/docs/_examples/023.md +1 -0
- data/docs/_examples/024.md +1 -0
- data/docs/_examples/025.md +1 -0
- data/docs/_examples/026.md +1 -0
- data/docs/_examples/027.md +1 -0
- data/docs/_examples/028.md +1 -0
- data/docs/_examples/029.md +1 -0
- data/docs/_examples/030.md +1 -0
- data/docs/_examples/031.md +1 -0
- data/docs/_examples/032.md +1 -0
- data/docs/_examples/033.md +1 -0
- data/docs/_examples/034.md +1 -0
- data/docs/_examples/035.md +1 -0
- data/docs/_examples/036.md +1 -0
- data/docs/_examples/037.md +1 -0
- data/docs/_examples/038.md +2 -1
- data/docs/_examples/039.md +2 -0
- data/docs/_examples/040.md +62 -0
- data/docs/_examples/041.md +34 -0
- data/docs/assets/img/000.png +0 -0
- data/docs/assets/img/001.png +0 -0
- data/docs/assets/img/002.png +0 -0
- data/docs/assets/img/003.png +0 -0
- data/docs/assets/img/004.png +0 -0
- data/docs/assets/img/005.png +0 -0
- data/docs/assets/img/006.png +0 -0
- data/docs/assets/img/007.png +0 -0
- data/docs/assets/img/008.png +0 -0
- data/docs/assets/img/009.png +0 -0
- data/docs/assets/img/010.png +0 -0
- data/docs/assets/img/011.png +0 -0
- data/docs/assets/img/012.png +0 -0
- data/docs/assets/img/013.png +0 -0
- data/docs/assets/img/014.png +0 -0
- data/docs/assets/img/015.png +0 -0
- data/docs/assets/img/016.png +0 -0
- data/docs/assets/img/017.png +0 -0
- data/docs/assets/img/018.png +0 -0
- data/docs/assets/img/019.png +0 -0
- data/docs/assets/img/020.png +0 -0
- data/docs/assets/img/021.png +0 -0
- data/docs/assets/img/022.png +0 -0
- data/docs/assets/img/023.png +0 -0
- data/docs/assets/img/024.png +0 -0
- data/docs/assets/img/025.png +0 -0
- data/docs/assets/img/026.png +0 -0
- data/docs/assets/img/027.png +0 -0
- data/docs/assets/img/028.png +0 -0
- data/docs/assets/img/029.png +0 -0
- data/docs/assets/img/030.png +0 -0
- data/docs/assets/img/031.png +0 -0
- data/docs/assets/img/032.png +0 -0
- data/docs/assets/img/033.png +0 -0
- data/docs/assets/img/034.png +0 -0
- data/docs/assets/img/035.png +0 -0
- data/docs/assets/img/036.png +0 -0
- data/docs/assets/img/037.png +0 -0
- data/docs/assets/img/038.png +0 -0
- data/docs/assets/img/040.png +0 -0
- data/docs/assets/img/041.png +0 -0
- data/docs/assets/svg/000.svg +43 -43
- data/docs/assets/svg/001.svg +14 -14
- data/docs/assets/svg/002.svg +19 -19
- data/docs/assets/svg/003.svg +16 -16
- data/docs/assets/svg/004.svg +18 -18
- data/docs/assets/svg/005.svg +11 -11
- data/docs/assets/svg/006.svg +13 -13
- data/docs/assets/svg/007.svg +15 -15
- data/docs/assets/svg/008.svg +19 -19
- data/docs/assets/svg/009.svg +17 -17
- data/docs/assets/svg/010.svg +32 -32
- data/docs/assets/svg/011.svg +15 -15
- data/docs/assets/svg/012.svg +16 -16
- data/docs/assets/svg/013.svg +140 -140
- data/docs/assets/svg/014.svg +102 -109
- data/docs/assets/svg/015.svg +21 -21
- data/docs/assets/svg/016.svg +144 -144
- data/docs/assets/svg/017.svg +22 -22
- data/docs/assets/svg/018.svg +25 -25
- data/docs/assets/svg/019.svg +202 -232
- data/docs/assets/svg/020.svg +37 -35
- data/docs/assets/svg/021.svg +20 -20
- data/docs/assets/svg/022.svg +39 -39
- data/docs/assets/svg/023.svg +31 -31
- data/docs/assets/svg/024.svg +11 -11
- data/docs/assets/svg/025.svg +144 -144
- data/docs/assets/svg/026.svg +9 -9
- data/docs/assets/svg/027.svg +19 -19
- data/docs/assets/svg/028.svg +15 -15
- data/docs/assets/svg/029.svg +88 -98
- data/docs/assets/svg/030.svg +47 -53
- data/docs/assets/svg/031.svg +9 -9
- data/docs/assets/svg/032.svg +60 -66
- data/docs/assets/svg/033.svg +29 -29
- data/docs/assets/svg/034.svg +58 -67
- data/docs/assets/svg/035.svg +48 -53
- data/docs/assets/svg/036.svg +26 -29
- data/docs/assets/svg/037.svg +24 -25
- data/docs/assets/svg/038.svg +51 -57
- data/docs/assets/svg/039.svg +8 -8
- data/docs/assets/svg/040.svg +120 -0
- data/docs/assets/svg/041.svg +93 -0
- data/docs/documentation.md +7 -3
- data/docs/documentation_ja.md +7 -3
- data/docs/examples.html +2 -0
- data/lib/rsyntaxtree/base_graph.rb +7 -6
- data/lib/rsyntaxtree/element.rb +2 -0
- data/lib/rsyntaxtree/svg_graph.rb +51 -48
- data/lib/rsyntaxtree/version.rb +1 -1
- data/lib/rsyntaxtree.rb +5 -0
- data/test/example_verify_test.rb +1 -0
- metadata +9 -3
data/lib/rsyntaxtree.rb
CHANGED
@@ -13,6 +13,8 @@ ETYPE_NODE = 1
|
|
13
13
|
ETYPE_LEAF = 2
|
14
14
|
SUBSCRIPT_CONST = 0.7
|
15
15
|
FONT_SCALING = 2
|
16
|
+
LINE_SCALING = 2
|
17
|
+
BLINE_SCALING = 5
|
16
18
|
WHITESPACE_BLOCK = "■"
|
17
19
|
|
18
20
|
class RSTError < StandardError
|
@@ -66,6 +68,8 @@ module RSyntaxTree
|
|
66
68
|
end
|
67
69
|
when :fontsize
|
68
70
|
new_params[key] = value.to_i * FONT_SCALING
|
71
|
+
when :linewidth
|
72
|
+
new_params[key] = value.to_i
|
69
73
|
when :margin
|
70
74
|
new_params[key] = value.to_i * FONT_SCALING * 5
|
71
75
|
when :vheight
|
@@ -120,6 +124,7 @@ module RSyntaxTree
|
|
120
124
|
color: "modern",
|
121
125
|
transparent: false,
|
122
126
|
fontsize: 16,
|
127
|
+
linewidth: 2,
|
123
128
|
format: "png",
|
124
129
|
leafstyle: "auto",
|
125
130
|
filename: "syntree",
|
data/test/example_verify_test.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rsyntaxtree
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yoichiro Hasebe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-02-
|
11
|
+
date: 2023-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: optimist
|
@@ -152,6 +152,8 @@ files:
|
|
152
152
|
- docs/_examples/037.md
|
153
153
|
- docs/_examples/038.md
|
154
154
|
- docs/_examples/039.md
|
155
|
+
- docs/_examples/040.md
|
156
|
+
- docs/_examples/041.md
|
155
157
|
- docs/_includes/box_and_circle_table.html
|
156
158
|
- docs/_includes/escape_char_table.html
|
157
159
|
- docs/_includes/social_media_links.html
|
@@ -197,6 +199,8 @@ files:
|
|
197
199
|
- docs/assets/img/037.png
|
198
200
|
- docs/assets/img/038.png
|
199
201
|
- docs/assets/img/039.png
|
202
|
+
- docs/assets/img/040.png
|
203
|
+
- docs/assets/img/041.png
|
200
204
|
- docs/assets/img/elements/circle.png
|
201
205
|
- docs/assets/img/elements/circle_abc.png
|
202
206
|
- docs/assets/img/elements/circle_bold.png
|
@@ -253,6 +257,8 @@ files:
|
|
253
257
|
- docs/assets/svg/037.svg
|
254
258
|
- docs/assets/svg/038.svg
|
255
259
|
- docs/assets/svg/039.svg
|
260
|
+
- docs/assets/svg/040.svg
|
261
|
+
- docs/assets/svg/041.svg
|
256
262
|
- docs/documentation.md
|
257
263
|
- docs/documentation_ja.md
|
258
264
|
- docs/examples.html
|
@@ -310,7 +316,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
310
316
|
- !ruby/object:Gem::Version
|
311
317
|
version: '0'
|
312
318
|
requirements: []
|
313
|
-
rubygems_version: 3.4.
|
319
|
+
rubygems_version: 3.4.2
|
314
320
|
signing_key:
|
315
321
|
specification_version: 4
|
316
322
|
summary: RSyntaxTree is a graphical syntax tree generator written in Ruby
|