rsyntaxtree 1.2.6 → 1.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.tags +48 -48
- data/Dockerfile +3 -1
- data/README.md +0 -1
- data/Rakefile +3 -2
- data/bin/rsyntaxtree +1 -2
- data/dev/generate_examples.rb +0 -1
- data/docs/_examples/001.md +1 -1
- 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/039.png +0 -0
- data/docs/assets/img/040.png +0 -0
- data/docs/assets/img/041.png +0 -0
- data/docs/assets/img/042.png +0 -0
- data/docs/assets/img/043.png +0 -0
- data/docs/assets/img/044.png +0 -0
- data/docs/assets/img/045.png +0 -0
- data/docs/assets/svg/000.svg +2 -2
- data/docs/assets/svg/001.svg +14 -14
- data/docs/assets/svg/002.svg +2 -2
- data/docs/assets/svg/003.svg +2 -2
- data/docs/assets/svg/004.svg +2 -2
- data/docs/assets/svg/005.svg +2 -2
- data/docs/assets/svg/006.svg +2 -2
- data/docs/assets/svg/007.svg +2 -2
- data/docs/assets/svg/008.svg +2 -2
- data/docs/assets/svg/009.svg +2 -2
- data/docs/assets/svg/010.svg +2 -2
- data/docs/assets/svg/011.svg +2 -2
- data/docs/assets/svg/012.svg +2 -2
- data/docs/assets/svg/013.svg +2 -2
- data/docs/assets/svg/014.svg +2 -2
- data/docs/assets/svg/015.svg +2 -2
- data/docs/assets/svg/016.svg +2 -2
- data/docs/assets/svg/017.svg +2 -2
- data/docs/assets/svg/018.svg +2 -2
- data/docs/assets/svg/019.svg +2 -2
- data/docs/assets/svg/020.svg +2 -2
- data/docs/assets/svg/021.svg +2 -2
- data/docs/assets/svg/022.svg +2 -2
- data/docs/assets/svg/023.svg +2 -2
- data/docs/assets/svg/024.svg +2 -2
- data/docs/assets/svg/025.svg +2 -2
- data/docs/assets/svg/026.svg +2 -2
- data/docs/assets/svg/027.svg +2 -2
- data/docs/assets/svg/028.svg +2 -2
- data/docs/assets/svg/029.svg +2 -2
- data/docs/assets/svg/030.svg +2 -2
- data/docs/assets/svg/031.svg +2 -2
- data/docs/assets/svg/032.svg +2 -2
- data/docs/assets/svg/033.svg +2 -2
- data/docs/assets/svg/034.svg +2 -2
- data/docs/assets/svg/035.svg +2 -2
- data/docs/assets/svg/036.svg +2 -2
- data/docs/assets/svg/037.svg +2 -2
- data/docs/assets/svg/038.svg +2 -2
- data/docs/assets/svg/039.svg +2 -2
- data/docs/assets/svg/040.svg +2 -2
- data/docs/assets/svg/041.svg +2 -2
- data/docs/assets/svg/042.svg +2 -2
- data/docs/assets/svg/043.svg +2 -2
- data/docs/assets/svg/044.svg +2 -2
- data/docs/assets/svg/045.svg +2 -2
- data/docs/assets/svg/046.svg +2 -2
- data/lib/rsyntaxtree/svg_graph.rb +8 -7
- data/lib/rsyntaxtree/version.rb +1 -1
- data/lib/rsyntaxtree.rb +1 -5
- data/test/example_verify_test.rb +0 -1
- metadata +2 -2
data/docs/assets/svg/033.svg
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
<?xml version="1.0" standalone="no"?>
|
2
2
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
3
|
-
<svg width="
|
3
|
+
<svg width="1832.5999999999997" height="1254.0" viewBox="0, 0, 1849.3999999999996, 1276.0" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
4
4
|
<defs>
|
5
5
|
<marker id="arrow" markerUnits="userSpaceOnUse" viewBox="0 0 10 10" refX="10" refY="5" markerWidth="33.6" markerHeight="33.6" orient="auto">
|
6
6
|
<path d="M 0 0 L 10 5 L 0 10" fill="#CC79A7"/>
|
@@ -24,7 +24,7 @@
|
|
24
24
|
<line x1="0" y="0" x2="0" y2="10" stroke="#009E73" stroke-width="4"></line>
|
25
25
|
</pattern>
|
26
26
|
</defs>
|
27
|
-
<rect x="
|
27
|
+
<rect x="0" y="0" width="1849.3999999999996" height="1276.0" stroke="none" fill="white" />"
|
28
28
|
<text white-space='pre' alignment-baseline='text-top' style='fill: #0072B2; font-size: 64px;' x='686.6999999999999' y='132.0'><tspan x='686.6999999999999' y='132.0' style="" text-decoration="" font-family="'Noto Serif', 'Noto Serif JP', OpenMoji, 'OpenMoji Color', 'OpenMoji Black', serif">S</tspan>
|
29
29
|
</text>
|
30
30
|
<text white-space='pre' alignment-baseline='text-top' style='fill: #0072B2; font-size: 64px;' x='214.10000000000002' y='378.4'><tspan x='224.60000000000002' y='378.4' style="" text-decoration="overline underline" font-family="'Noto Serif', 'Noto Serif JP', OpenMoji, 'OpenMoji Color', 'OpenMoji Black', serif">NP</tspan>
|
data/docs/assets/svg/034.svg
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
<?xml version="1.0" standalone="no"?>
|
2
2
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
3
|
-
<svg width="
|
3
|
+
<svg width="2692.0" height="1183.6" viewBox="0, 0, 2708.8, 1205.6" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
4
4
|
<defs>
|
5
5
|
<marker id="arrow" markerUnits="userSpaceOnUse" viewBox="0 0 10 10" refX="10" refY="5" markerWidth="33.6" markerHeight="33.6" orient="auto">
|
6
6
|
<path d="M 0 0 L 10 5 L 0 10" fill="black"/>
|
@@ -24,7 +24,7 @@
|
|
24
24
|
<line x1="0" y="0" x2="0" y2="10" stroke="black" stroke-width="4"></line>
|
25
25
|
</pattern>
|
26
26
|
</defs>
|
27
|
-
<rect x="
|
27
|
+
<rect x="0" y="0" width="2708.8" height="1205.6" stroke="none" fill="white" />"
|
28
28
|
<text white-space='pre' alignment-baseline='text-top' style='fill: black; font-size: 64px;' x='1080.2875' y='132.0'><tspan x='1080.2875' y='132.0' style="" text-decoration="" font-family="'Noto Serif', 'Noto Serif JP', OpenMoji, 'OpenMoji Color', 'OpenMoji Black', serif">Clause</tspan>
|
29
29
|
</text>
|
30
30
|
<text white-space='pre' alignment-baseline='text-top' style='fill: black; font-size: 64px;' x='173.79999999999995' y='466.4'><tspan x='173.79999999999995' y='466.4' style="" text-decoration="" font-family="'Noto Serif', 'Noto Serif JP', OpenMoji, 'OpenMoji Color', 'OpenMoji Black', serif">Sbj<tspan style='fill:none;'>■</tspan>IntrVerb</tspan>
|
data/docs/assets/svg/035.svg
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
<?xml version="1.0" standalone="no"?>
|
2
2
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
3
|
-
<svg width="
|
3
|
+
<svg width="3607.2000000000003" height="1711.6" viewBox="0, 0, 3624.0000000000005, 1733.6" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
4
4
|
<defs>
|
5
5
|
<marker id="arrow" markerUnits="userSpaceOnUse" viewBox="0 0 10 10" refX="10" refY="5" markerWidth="33.6" markerHeight="33.6" orient="auto">
|
6
6
|
<path d="M 0 0 L 10 5 L 0 10" fill="black"/>
|
@@ -24,7 +24,7 @@
|
|
24
24
|
<line x1="0" y="0" x2="0" y2="10" stroke="black" stroke-width="4"></line>
|
25
25
|
</pattern>
|
26
26
|
</defs>
|
27
|
-
<rect x="
|
27
|
+
<rect x="0" y="0" width="3624.0000000000005" height="1733.6" stroke="none" fill="white" />"
|
28
28
|
<text white-space='pre' alignment-baseline='text-top' style='fill: black; font-size: 64px;' x='1265.0' y='132.0'><tspan x='1627.5' y='132.0' style="" text-decoration="" font-family="'Noto Serif', 'Noto Serif JP', OpenMoji, 'OpenMoji Color', 'OpenMoji Black', serif">Caused-Motion</tspan>
|
29
29
|
<tspan x='1265.0' y='308.0' style="font-style: italic; " text-decoration="" font-family="'Noto Serif', 'Noto Serif JP', OpenMoji, 'OpenMoji Color', 'OpenMoji Black', serif">Pat<tspan style='fill:none;'>■</tspan>sneezed<tspan style='fill:none;'>■</tspan>the<tspan style='fill:none;'>■</tspan>napkin<tspan style='fill:none;'>■</tspan>off<tspan style='fill:none;'>■</tspan>the<tspan style='fill:none;'>■</tspan>table</tspan>
|
30
30
|
</text>
|
data/docs/assets/svg/036.svg
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
<?xml version="1.0" standalone="no"?>
|
2
2
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
3
|
-
<svg width="
|
3
|
+
<svg width="779.8" height="514.8" viewBox="0, 0, 796.5999999999999, 536.8" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
4
4
|
<defs>
|
5
5
|
<marker id="arrow" markerUnits="userSpaceOnUse" viewBox="0 0 10 10" refX="10" refY="5" markerWidth="33.6" markerHeight="33.6" orient="auto">
|
6
6
|
<path d="M 0 0 L 10 5 L 0 10" fill="#CC79A7"/>
|
@@ -24,7 +24,7 @@
|
|
24
24
|
<line x1="0" y="0" x2="0" y2="10" stroke="#009E73" stroke-width="4"></line>
|
25
25
|
</pattern>
|
26
26
|
</defs>
|
27
|
-
<rect x="
|
27
|
+
<rect x="0" y="0" width="796.5999999999999" height="536.8" stroke="none" fill="white" />"
|
28
28
|
<text white-space='pre' alignment-baseline='text-top' style='fill: #0072B2; font-size: 64px;' x='280.29999999999995' y='132.0'><tspan x='280.29999999999995' y='132.0' style="" text-decoration="" font-family="'Noto Serif', 'Noto Serif JP', OpenMoji, 'OpenMoji Color', 'OpenMoji Black', serif">Schema</tspan>
|
29
29
|
</text>
|
30
30
|
<text white-space='pre' alignment-baseline='text-top' style='fill: #009E73; font-size: 64px;' x='33.60000000000002' y='466.4'><tspan x='33.60000000000002' y='466.4' style="" text-decoration="" font-family="'Noto Serif', 'Noto Serif JP', OpenMoji, 'OpenMoji Color', 'OpenMoji Black', serif">Prototype</tspan>
|
data/docs/assets/svg/037.svg
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
<?xml version="1.0" standalone="no"?>
|
2
2
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
3
|
-
<svg width="
|
3
|
+
<svg width="1230.3999999999999" height="532.4" viewBox="0, 0, 1247.1999999999998, 554.4" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
4
4
|
<defs>
|
5
5
|
<marker id="arrow" markerUnits="userSpaceOnUse" viewBox="0 0 10 10" refX="10" refY="5" markerWidth="33.6" markerHeight="33.6" orient="auto">
|
6
6
|
<path d="M 0 0 L 10 5 L 0 10" fill="#CC79A7"/>
|
@@ -24,7 +24,7 @@
|
|
24
24
|
<line x1="0" y="0" x2="0" y2="10" stroke="#009E73" stroke-width="4"></line>
|
25
25
|
</pattern>
|
26
26
|
</defs>
|
27
|
-
<rect x="
|
27
|
+
<rect x="0" y="0" width="1247.1999999999998" height="554.4" stroke="none" fill="white" />"
|
28
28
|
<text white-space='pre' alignment-baseline='text-top' style='fill: #009E73; font-size: 64px;' x='33.60000000000002' y='132.0'><tspan x='33.60000000000002' y='132.0' style="" text-decoration="" font-family="'Noto Serif', 'Noto Serif JP', OpenMoji, 'OpenMoji Color', 'OpenMoji Black', serif">John<tspan style='fill:none;'>■</tspan>opened<tspan style='fill:none;'>■</tspan>the<tspan style='fill:none;'>■</tspan>door<tspan style='fill:none;'>■</tspan>with<tspan style='fill:none;'>■</tspan>the<tspan style='fill:none;'>■</tspan>key</tspan>
|
29
29
|
<tspan x='604.6' y='220.0' style="" text-decoration="" font-family="'Noto Serif', 'Noto Serif JP', OpenMoji, 'OpenMoji Color', 'OpenMoji Black', serif"><tspan style='fill:none;'>■</tspan></tspan>
|
30
30
|
<tspan x='384.6' y='308.0' style="" text-decoration="" font-family="'Noto Serif', 'Noto Serif JP', OpenMoji, 'OpenMoji Color', 'OpenMoji Black', serif"> </tspan>
|
data/docs/assets/svg/038.svg
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
<?xml version="1.0" standalone="no"?>
|
2
2
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
3
|
-
<svg width="
|
3
|
+
<svg width="2109.600000000001" height="1518.0" viewBox="0, 0, 2124.000000000001, 1540.0" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
4
4
|
<defs>
|
5
5
|
<marker id="arrow" markerUnits="userSpaceOnUse" viewBox="0 0 10 10" refX="10" refY="5" markerWidth="28.8" markerHeight="28.8" orient="auto">
|
6
6
|
<path d="M 0 0 L 10 5 L 0 10" fill="black"/>
|
@@ -24,7 +24,7 @@
|
|
24
24
|
<line x1="0" y="0" x2="0" y2="10" stroke="black" stroke-width="4"></line>
|
25
25
|
</pattern>
|
26
26
|
</defs>
|
27
|
-
<rect x="
|
27
|
+
<rect x="0" y="0" width="2124.000000000001" height="1540.0" stroke="none" fill="white" />"
|
28
28
|
<text white-space='pre' alignment-baseline='text-top' style='fill: black; font-size: 64px;' x='1026.0000000000002' y='132.0'><tspan x='1026.0000000000002' y='132.0' style="" text-decoration="" font-family="'Noto Sans Mono SemiCondensed', 'Noto Sans JP', OpenMoji, 'OpenMoji Color', 'OpenMoji Black', sans-serif">hypernym</tspan>
|
29
29
|
</text>
|
30
30
|
<text white-space='pre' alignment-baseline='text-top' style='fill: black; font-size: 64px;' x='244.79999999999995' y='466.4'><tspan x='244.79999999999995' y='466.4' style="" text-decoration="" font-family="'Noto Sans Mono SemiCondensed', 'Noto Sans JP', OpenMoji, 'OpenMoji Color', 'OpenMoji Black', sans-serif">meronym</tspan>
|
data/docs/assets/svg/039.svg
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
<?xml version="1.0" standalone="no"?>
|
2
2
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
3
|
-
<svg width="
|
3
|
+
<svg width="92.39999999999999" height="180.4" viewBox="0, 0, 109.19999999999999, 202.4" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
4
4
|
<defs>
|
5
5
|
<marker id="arrow" markerUnits="userSpaceOnUse" viewBox="0 0 10 10" refX="10" refY="5" markerWidth="33.6" markerHeight="33.6" orient="auto">
|
6
6
|
<path d="M 0 0 L 10 5 L 0 10" fill="#CC79A7"/>
|
@@ -24,7 +24,7 @@
|
|
24
24
|
<line x1="0" y="0" x2="0" y2="10" stroke="#009E73" stroke-width="4"></line>
|
25
25
|
</pattern>
|
26
26
|
</defs>
|
27
|
-
<rect x="
|
27
|
+
<rect x="0" y="0" width="109.19999999999999" height="202.4" stroke="none" fill="white" />"
|
28
28
|
<text white-space='pre' alignment-baseline='text-top' style='fill: #009E73; font-size: 64px;' x='33.599999999999994' y='132.0'><tspan x='33.599999999999994' y='132.0' style="" text-decoration="" font-family="'Noto Serif', 'Noto Serif JP', OpenMoji, 'OpenMoji Color', 'OpenMoji Black', serif">X</tspan>
|
29
29
|
</text>
|
30
30
|
</svg>
|
data/docs/assets/svg/040.svg
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
<?xml version="1.0" standalone="no"?>
|
2
2
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
3
|
-
<svg width="
|
3
|
+
<svg width="2995.2000000000003" height="1711.6" viewBox="0, 0, 3009.6000000000004, 1733.6" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
4
4
|
<defs>
|
5
5
|
<marker id="arrow" markerUnits="userSpaceOnUse" viewBox="0 0 10 10" refX="10" refY="5" markerWidth="28.8" markerHeight="28.8" orient="auto">
|
6
6
|
<path d="M 0 0 L 10 5 L 0 10" fill="black"/>
|
@@ -24,7 +24,7 @@
|
|
24
24
|
<line x1="0" y="0" x2="0" y2="10" stroke="black" stroke-width="4"></line>
|
25
25
|
</pattern>
|
26
26
|
</defs>
|
27
|
-
<rect x="
|
27
|
+
<rect x="0" y="0" width="3009.6000000000004" height="1733.6" stroke="none" fill="white" />"
|
28
28
|
<text white-space='pre' alignment-baseline='text-top' style='fill: black; font-size: 64px;' x='1200.6000000000004' y='132.0'><tspan x='1560.6000000000004' y='132.0' style="" text-decoration="" font-family="'Noto Sans Mono SemiCondensed', 'Noto Sans JP', OpenMoji, 'OpenMoji Color', 'OpenMoji Black', sans-serif">root</tspan>
|
29
29
|
<tspan x='1380.6000000000004' y='220.0' style="" text-decoration="" font-family="'Noto Sans Mono SemiCondensed', 'Noto Sans JP', OpenMoji, 'OpenMoji Color', 'OpenMoji Black', sans-serif">[cons]<tspan style='fill:none;'>■</tspan>[sonor]</tspan>
|
30
30
|
<tspan x='1470.6000000000004' y='308.0' style="" text-decoration="" font-family="'Noto Sans Mono SemiCondensed', 'Noto Sans JP', OpenMoji, 'OpenMoji Color', 'OpenMoji Black', sans-serif">stricture</tspan>
|
data/docs/assets/svg/041.svg
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
<?xml version="1.0" standalone="no"?>
|
2
2
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
3
|
-
<svg width="
|
3
|
+
<svg width="1947.2" height="1870.0" viewBox="0, 0, 1964.0, 1892.0" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
4
4
|
<defs>
|
5
5
|
<marker id="arrow" markerUnits="userSpaceOnUse" viewBox="0 0 10 10" refX="10" refY="5" markerWidth="33.6" markerHeight="33.6" orient="auto">
|
6
6
|
<path d="M 0 0 L 10 5 L 0 10" fill="black"/>
|
@@ -24,7 +24,7 @@
|
|
24
24
|
<line x1="0" y="0" x2="0" y2="10" stroke="black" stroke-width="4"></line>
|
25
25
|
</pattern>
|
26
26
|
</defs>
|
27
|
-
<rect x="
|
27
|
+
<rect x="0" y="0" width="1964.0" height="1892.0" stroke="none" fill="white" />"
|
28
28
|
<text white-space='pre' alignment-baseline='text-top' style='fill: black; font-size: 64px;' x='848.5' y='132.0'><tspan x='848.5' y='132.0' style="" text-decoration="" font-family="'Noto Serif', 'Noto Serif JP', OpenMoji, 'OpenMoji Color', 'OpenMoji Black', serif">Philosophy</tspan>
|
29
29
|
</text>
|
30
30
|
<text white-space='pre' alignment-baseline='text-top' style='fill: black; font-size: 64px;' x='146.60000000000002' y='554.4'><tspan x='146.60000000000002' y='554.4' style="" text-decoration="" font-family="'Noto Serif', 'Noto Serif JP', OpenMoji, 'OpenMoji Color', 'OpenMoji Black', serif">Psychology</tspan>
|
data/docs/assets/svg/042.svg
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
<?xml version="1.0" standalone="no"?>
|
2
2
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
3
|
-
<svg width="
|
3
|
+
<svg width="431.2" height="600.2" viewBox="0, 0, 448.0, 622.2" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
4
4
|
<defs>
|
5
5
|
<marker id="arrow" markerUnits="userSpaceOnUse" viewBox="0 0 10 10" refX="10" refY="5" markerWidth="33.6" markerHeight="33.6" orient="auto">
|
6
6
|
<path d="M 0 0 L 10 5 L 0 10" fill="black"/>
|
@@ -24,7 +24,7 @@
|
|
24
24
|
<line x1="0" y="0" x2="0" y2="10" stroke="black" stroke-width="4"></line>
|
25
25
|
</pattern>
|
26
26
|
</defs>
|
27
|
-
<rect x="
|
27
|
+
<rect x="0" y="0" width="448.0" height="622.2" stroke="none" fill="white" />"
|
28
28
|
<text white-space='pre' alignment-baseline='text-top' style='fill: black; font-size: 64px;' x='162.4' y='132.0'><tspan x='162.4' y='132.0' style="" text-decoration="" font-family="'Noto Serif', 'Noto Serif JP', OpenMoji, 'OpenMoji Color', 'OpenMoji Black', serif">γ</tspan>
|
29
29
|
</text>
|
30
30
|
<text white-space='pre' alignment-baseline='text-top' style='fill: black; font-size: 64px;' x='33.599999999999994' y='339.4'><tspan x='33.599999999999994' y='339.4' style="" text-decoration="" font-family="'Noto Serif', 'Noto Serif JP', OpenMoji, 'OpenMoji Color', 'OpenMoji Black', serif">γ</tspan>
|
data/docs/assets/svg/043.svg
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
<?xml version="1.0" standalone="no"?>
|
2
2
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
3
|
-
<svg width="
|
3
|
+
<svg width="2274.6" height="1183.6" viewBox="0, 0, 2289.7999999999997, 1205.6" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
4
4
|
<defs>
|
5
5
|
<marker id="arrow" markerUnits="userSpaceOnUse" viewBox="0 0 10 10" refX="10" refY="5" markerWidth="30.400000000000002" markerHeight="30.400000000000002" orient="auto">
|
6
6
|
<path d="M 0 0 L 10 5 L 0 10" fill="#CC79A7"/>
|
@@ -24,7 +24,7 @@
|
|
24
24
|
<line x1="0" y="0" x2="0" y2="10" stroke="#009E73" stroke-width="4"></line>
|
25
25
|
</pattern>
|
26
26
|
</defs>
|
27
|
-
<rect x="
|
27
|
+
<rect x="0" y="0" width="2289.7999999999997" height="1205.6" stroke="none" fill="white" />"
|
28
28
|
<text white-space='pre' alignment-baseline='text-top' style='fill: #0072B2; font-size: 64px;' x='681.1500000000001' y='132.0'><tspan x='690.6500000000001' y='132.0' style="" text-decoration="" font-family="'Noto Sans', 'Noto Sans JP', OpenMoji, 'OpenMoji Color', 'OpenMoji Black', sans-serif">20</tspan>
|
29
29
|
<tspan x='799.6500000000001' y='132.0' style="" text-decoration="" font-family="'Noto Sans', 'Noto Sans JP', OpenMoji, 'OpenMoji Color', 'OpenMoji Black', sans-serif">2</tspan>
|
30
30
|
<tspan x='871.6500000000001' y='132.0' style="" text-decoration="" font-family="'Noto Sans', 'Noto Sans JP', OpenMoji, 'OpenMoji Color', 'OpenMoji Black', sans-serif">14</tspan>
|
data/docs/assets/svg/044.svg
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
<?xml version="1.0" standalone="no"?>
|
2
2
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
3
|
-
<svg width="
|
3
|
+
<svg width="153.6" height="180.4" viewBox="0, 0, 168.79999999999998, 202.4" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
4
4
|
<defs>
|
5
5
|
<marker id="arrow" markerUnits="userSpaceOnUse" viewBox="0 0 10 10" refX="10" refY="5" markerWidth="30.400000000000002" markerHeight="30.400000000000002" orient="auto">
|
6
6
|
<path d="M 0 0 L 10 5 L 0 10" fill="#CC79A7"/>
|
@@ -24,7 +24,7 @@
|
|
24
24
|
<line x1="0" y="0" x2="0" y2="10" stroke="#009E73" stroke-width="4"></line>
|
25
25
|
</pattern>
|
26
26
|
</defs>
|
27
|
-
<rect x="
|
27
|
+
<rect x="0" y="0" width="168.79999999999998" height="202.4" stroke="none" fill="white" />"
|
28
28
|
<text white-space='pre' alignment-baseline='text-top' style='fill: #009E73; font-size: 64px;' x='30.400000000000006' y='132.0'><tspan x='30.400000000000006' y='132.0' style="" text-decoration="" font-family="'Noto Sans', 'Noto Sans JP', OpenMoji, 'OpenMoji Color', 'OpenMoji Black', sans-serif">aaa</tspan>
|
29
29
|
</text>
|
30
30
|
<polygon style='stroke:#009E73; stroke-width:6; fill:none; stroke-linejoin:round; stroke-linecap:round;'
|
data/docs/assets/svg/045.svg
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
<?xml version="1.0" standalone="no"?>
|
2
2
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
3
|
-
<svg width="
|
3
|
+
<svg width="2555.0" height="3084.4" viewBox="0, 0, 2571.8, 3106.4" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
4
4
|
<defs>
|
5
5
|
<marker id="arrow" markerUnits="userSpaceOnUse" viewBox="0 0 10 10" refX="10" refY="5" markerWidth="33.6" markerHeight="33.6" orient="auto">
|
6
6
|
<path d="M 0 0 L 10 5 L 0 10" fill="#CC79A7"/>
|
@@ -24,7 +24,7 @@
|
|
24
24
|
<line x1="0" y="0" x2="0" y2="10" stroke="#009E73" stroke-width="4"></line>
|
25
25
|
</pattern>
|
26
26
|
</defs>
|
27
|
-
<rect x="
|
27
|
+
<rect x="0" y="0" width="2571.8" height="3106.4" stroke="none" fill="white" />"
|
28
28
|
<text white-space='pre' alignment-baseline='text-top' style='fill: #0072B2; font-size: 64px;' x='620.93125' y='132.0'><tspan x='620.93125' y='132.0' style="" text-decoration="" font-family="'Noto Serif', 'Noto Serif JP', OpenMoji, 'OpenMoji Color', 'OpenMoji Black', serif">Nominal</tspan>
|
29
29
|
</text>
|
30
30
|
<text white-space='pre' alignment-baseline='text-top' style='fill: #009E73; font-size: 64px;' x='33.60000000000002' y='466.4'><tspan x='44.10000000000002' y='466.4' style="" text-decoration="" font-family="'Noto Serif', 'Noto Serif JP', OpenMoji, 'OpenMoji Color', 'OpenMoji Black', serif">Grounding</tspan>
|
data/docs/assets/svg/046.svg
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
<?xml version="1.0" standalone="no"?>
|
2
2
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
3
|
-
<svg width="
|
3
|
+
<svg width="37586.40000000001" height="990.0" viewBox="0, 0, 37603.20000000001, 1012.0" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
4
4
|
<defs>
|
5
5
|
<marker id="arrow" markerUnits="userSpaceOnUse" viewBox="0 0 10 10" refX="10" refY="5" markerWidth="33.6" markerHeight="33.6" orient="auto">
|
6
6
|
<path d="M 0 0 L 10 5 L 0 10" fill="#CC79A7"/>
|
@@ -24,7 +24,7 @@
|
|
24
24
|
<line x1="0" y="0" x2="0" y2="10" stroke="#009E73" stroke-width="4"></line>
|
25
25
|
</pattern>
|
26
26
|
</defs>
|
27
|
-
<rect x="
|
27
|
+
<rect x="0" y="0" width="37603.20000000001" height="1012.0" stroke="none" fill="white" />"
|
28
28
|
<text white-space='pre' alignment-baseline='text-top' style='fill: #0072B2; font-size: 64px;' x='18778.600000000002' y='132.0'><tspan x='18778.600000000002' y='132.0' style="" text-decoration="" font-family="'Noto Serif', 'Noto Serif JP', OpenMoji, 'OpenMoji Color', 'OpenMoji Black', serif">A</tspan>
|
29
29
|
</text>
|
30
30
|
<text white-space='pre' alignment-baseline='text-top' style='fill: #0072B2; font-size: 64px;' x='2299.7999999999993' y='334.4'><tspan x='2299.7999999999993' y='334.4' style="" text-decoration="" font-family="'Noto Serif', 'Noto Serif JP', OpenMoji, 'OpenMoji Color', 'OpenMoji Black', serif">B</tspan>
|
@@ -26,7 +26,6 @@ module RSyntaxTree
|
|
26
26
|
@transparent = params[:transparent]
|
27
27
|
@color = params[:color]
|
28
28
|
@fontstyle = params[:fontstyle]
|
29
|
-
@margin = params[:margin].to_i
|
30
29
|
@polyline = params[:polyline]
|
31
30
|
@line_styles = "<line style='stroke:#{@col_line}; stroke-width:#{@linewidth + LINE_SCALING}; stroke-linejoin:round; stroke-linecap:round;' x1='X1' y1='Y1' x2='X2' y2='Y2' />\n"
|
32
31
|
@polyline_styles = "<polyline style='stroke:#{@col_line}; stroke-width:#{@linewidth + LINE_SCALING}; fill:none; stroke-linejoin:round; stroke-linecap:round;'
|
@@ -41,13 +40,15 @@ module RSyntaxTree
|
|
41
40
|
|
42
41
|
def svg_data
|
43
42
|
metrics = parse_list
|
44
|
-
@height = metrics[:height] + @margin * 2
|
45
|
-
@width = metrics[:width] + @margin * 2
|
46
43
|
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
44
|
+
@height = metrics[:height] + @global[:height_connector_to_text] / 2
|
45
|
+
@width = metrics[:width] + @global[:h_gap_between_nodes] / 2
|
46
|
+
|
47
|
+
x1 = 0
|
48
|
+
y1 = 0
|
49
|
+
x2 = @width + @global[:h_gap_between_nodes] / 2
|
50
|
+
y2 = @height + @global[:height_connector_to_text] / 2
|
51
|
+
|
51
52
|
extra_lines = @extra_lines.join("\n")
|
52
53
|
|
53
54
|
as2 = @global[:h_gap_between_nodes] * 1.0
|
data/lib/rsyntaxtree/version.rb
CHANGED
data/lib/rsyntaxtree.rb
CHANGED
@@ -70,8 +70,6 @@ module RSyntaxTree
|
|
70
70
|
new_params[key] = value.to_i * FONT_SCALING
|
71
71
|
when :linewidth
|
72
72
|
new_params[key] = value.to_i
|
73
|
-
when :margin
|
74
|
-
new_params[key] = value.to_i * FONT_SCALING * 5
|
75
73
|
when :vheight
|
76
74
|
new_params[key] = value.to_f
|
77
75
|
when :fontstyle
|
@@ -129,15 +127,13 @@ module RSyntaxTree
|
|
129
127
|
leafstyle: "auto",
|
130
128
|
filename: "syntree",
|
131
129
|
data: "",
|
132
|
-
margin: 0,
|
133
130
|
vheight: 1.0,
|
134
131
|
polyline: false,
|
135
132
|
hide_default_connectors: false
|
136
133
|
}
|
137
134
|
|
138
135
|
@params.merge! new_params
|
139
|
-
@params[:fontsize]
|
140
|
-
@params[:margin] = @params[:margin] * FONT_SCALING
|
136
|
+
@params[:fontsize] = @params[:fontsize] * FONT_SCALING
|
141
137
|
@params[:fontset] = fontset
|
142
138
|
single_x_metrics = FontMetrics.get_metrics("X", fontset[:normal], @params[:fontsize], :normal, :normal)
|
143
139
|
@global = {}
|
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.7
|
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-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: optimist
|