rsyntaxtree 1.2.6 → 1.2.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (106) hide show
  1. checksums.yaml +4 -4
  2. data/.tags +48 -48
  3. data/Dockerfile +3 -1
  4. data/README.md +0 -1
  5. data/Rakefile +3 -2
  6. data/bin/rsyntaxtree +1 -2
  7. data/dev/generate_examples.rb +0 -1
  8. data/docs/_examples/001.md +1 -1
  9. data/docs/assets/img/000.png +0 -0
  10. data/docs/assets/img/001.png +0 -0
  11. data/docs/assets/img/002.png +0 -0
  12. data/docs/assets/img/003.png +0 -0
  13. data/docs/assets/img/004.png +0 -0
  14. data/docs/assets/img/005.png +0 -0
  15. data/docs/assets/img/006.png +0 -0
  16. data/docs/assets/img/007.png +0 -0
  17. data/docs/assets/img/008.png +0 -0
  18. data/docs/assets/img/009.png +0 -0
  19. data/docs/assets/img/010.png +0 -0
  20. data/docs/assets/img/011.png +0 -0
  21. data/docs/assets/img/012.png +0 -0
  22. data/docs/assets/img/013.png +0 -0
  23. data/docs/assets/img/014.png +0 -0
  24. data/docs/assets/img/015.png +0 -0
  25. data/docs/assets/img/016.png +0 -0
  26. data/docs/assets/img/017.png +0 -0
  27. data/docs/assets/img/018.png +0 -0
  28. data/docs/assets/img/019.png +0 -0
  29. data/docs/assets/img/020.png +0 -0
  30. data/docs/assets/img/021.png +0 -0
  31. data/docs/assets/img/022.png +0 -0
  32. data/docs/assets/img/023.png +0 -0
  33. data/docs/assets/img/024.png +0 -0
  34. data/docs/assets/img/025.png +0 -0
  35. data/docs/assets/img/026.png +0 -0
  36. data/docs/assets/img/027.png +0 -0
  37. data/docs/assets/img/028.png +0 -0
  38. data/docs/assets/img/029.png +0 -0
  39. data/docs/assets/img/030.png +0 -0
  40. data/docs/assets/img/031.png +0 -0
  41. data/docs/assets/img/032.png +0 -0
  42. data/docs/assets/img/033.png +0 -0
  43. data/docs/assets/img/034.png +0 -0
  44. data/docs/assets/img/035.png +0 -0
  45. data/docs/assets/img/036.png +0 -0
  46. data/docs/assets/img/037.png +0 -0
  47. data/docs/assets/img/038.png +0 -0
  48. data/docs/assets/img/039.png +0 -0
  49. data/docs/assets/img/040.png +0 -0
  50. data/docs/assets/img/041.png +0 -0
  51. data/docs/assets/img/042.png +0 -0
  52. data/docs/assets/img/043.png +0 -0
  53. data/docs/assets/img/044.png +0 -0
  54. data/docs/assets/img/045.png +0 -0
  55. data/docs/assets/svg/000.svg +2 -2
  56. data/docs/assets/svg/001.svg +14 -14
  57. data/docs/assets/svg/002.svg +2 -2
  58. data/docs/assets/svg/003.svg +2 -2
  59. data/docs/assets/svg/004.svg +2 -2
  60. data/docs/assets/svg/005.svg +2 -2
  61. data/docs/assets/svg/006.svg +2 -2
  62. data/docs/assets/svg/007.svg +2 -2
  63. data/docs/assets/svg/008.svg +2 -2
  64. data/docs/assets/svg/009.svg +2 -2
  65. data/docs/assets/svg/010.svg +2 -2
  66. data/docs/assets/svg/011.svg +2 -2
  67. data/docs/assets/svg/012.svg +2 -2
  68. data/docs/assets/svg/013.svg +2 -2
  69. data/docs/assets/svg/014.svg +2 -2
  70. data/docs/assets/svg/015.svg +2 -2
  71. data/docs/assets/svg/016.svg +2 -2
  72. data/docs/assets/svg/017.svg +2 -2
  73. data/docs/assets/svg/018.svg +2 -2
  74. data/docs/assets/svg/019.svg +2 -2
  75. data/docs/assets/svg/020.svg +2 -2
  76. data/docs/assets/svg/021.svg +2 -2
  77. data/docs/assets/svg/022.svg +2 -2
  78. data/docs/assets/svg/023.svg +2 -2
  79. data/docs/assets/svg/024.svg +2 -2
  80. data/docs/assets/svg/025.svg +2 -2
  81. data/docs/assets/svg/026.svg +2 -2
  82. data/docs/assets/svg/027.svg +2 -2
  83. data/docs/assets/svg/028.svg +2 -2
  84. data/docs/assets/svg/029.svg +2 -2
  85. data/docs/assets/svg/030.svg +2 -2
  86. data/docs/assets/svg/031.svg +2 -2
  87. data/docs/assets/svg/032.svg +2 -2
  88. data/docs/assets/svg/033.svg +2 -2
  89. data/docs/assets/svg/034.svg +2 -2
  90. data/docs/assets/svg/035.svg +2 -2
  91. data/docs/assets/svg/036.svg +2 -2
  92. data/docs/assets/svg/037.svg +2 -2
  93. data/docs/assets/svg/038.svg +2 -2
  94. data/docs/assets/svg/039.svg +2 -2
  95. data/docs/assets/svg/040.svg +2 -2
  96. data/docs/assets/svg/041.svg +2 -2
  97. data/docs/assets/svg/042.svg +2 -2
  98. data/docs/assets/svg/043.svg +2 -2
  99. data/docs/assets/svg/044.svg +2 -2
  100. data/docs/assets/svg/045.svg +2 -2
  101. data/docs/assets/svg/046.svg +2 -2
  102. data/lib/rsyntaxtree/svg_graph.rb +8 -7
  103. data/lib/rsyntaxtree/version.rb +1 -1
  104. data/lib/rsyntaxtree.rb +1 -5
  105. data/test/example_verify_test.rb +0 -1
  106. metadata +2 -2
@@ -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="1855.7999999999997" height="1272.0" viewBox="-20, -20, 1895.7999999999997, 1312.0" version="1.1" xmlns="http://www.w3.org/2000/svg">
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="-20" y="-20" width="1895.7999999999997" height="1312.0" stroke="none" fill="white" />"
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>
@@ -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="2715.2" height="1201.6" viewBox="-20, -20, 2755.2, 1241.6" version="1.1" xmlns="http://www.w3.org/2000/svg">
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="-20" y="-20" width="2755.2" height="1241.6" stroke="none" fill="white" />"
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>
@@ -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="3630.4" height="1729.6" viewBox="-20, -20, 3670.4, 1769.6" version="1.1" xmlns="http://www.w3.org/2000/svg">
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="-20" y="-20" width="3670.4" height="1769.6" stroke="none" fill="white" />"
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>
@@ -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="803.0" height="532.8" viewBox="-20, -20, 843.0, 572.8" version="1.1" xmlns="http://www.w3.org/2000/svg">
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="-20" y="-20" width="843.0" height="572.8" stroke="none" fill="white" />"
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>
@@ -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="1253.6" height="550.4" viewBox="-20, -20, 1293.6, 590.4" version="1.1" xmlns="http://www.w3.org/2000/svg">
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="-20" y="-20" width="1293.6" height="590.4" stroke="none" fill="white" />"
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>
@@ -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="2135.2000000000007" height="1536.0" viewBox="-20, -20, 2175.2000000000007, 1576.0" version="1.1" xmlns="http://www.w3.org/2000/svg">
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="-20" y="-20" width="2175.2000000000007" height="1576.0" stroke="none" fill="white" />"
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>
@@ -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="115.6" height="198.4" viewBox="-20, -20, 155.6, 238.4" version="1.1" xmlns="http://www.w3.org/2000/svg">
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="-20" y="-20" width="155.6" height="238.4" stroke="none" fill="white" />"
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>
@@ -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="3020.8" height="1729.6" viewBox="-20, -20, 3060.8, 1769.6" version="1.1" xmlns="http://www.w3.org/2000/svg">
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="-20" y="-20" width="3060.8" height="1769.6" stroke="none" fill="white" />"
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>
@@ -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="1970.4" height="1888.0" viewBox="-20, -20, 2010.4, 1928.0" version="1.1" xmlns="http://www.w3.org/2000/svg">
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="-20" y="-20" width="2010.4" height="1928.0" stroke="none" fill="white" />"
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>
@@ -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="454.4" height="618.2" viewBox="-20, -20, 494.4, 658.2" version="1.1" xmlns="http://www.w3.org/2000/svg">
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="-20" y="-20" width="494.4" height="658.2" stroke="none" fill="white" />"
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>
@@ -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="2299.4" height="1201.6" viewBox="-20, -20, 2339.4, 1241.6" version="1.1" xmlns="http://www.w3.org/2000/svg">
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="-20" y="-20" width="2339.4" height="1241.6" stroke="none" fill="white" />"
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>
@@ -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="178.4" height="198.4" viewBox="-20, -20, 218.4, 238.4" version="1.1" xmlns="http://www.w3.org/2000/svg">
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="-20" y="-20" width="218.4" height="238.4" stroke="none" fill="white" />"
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;'
@@ -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="2578.2" height="3102.4" viewBox="-20, -20, 2618.2, 3142.4" version="1.1" xmlns="http://www.w3.org/2000/svg">
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="-20" y="-20" width="2618.2" height="3142.4" stroke="none" fill="white" />"
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>
@@ -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="37609.600000000006" height="1008.0" viewBox="-20, -20, 37649.600000000006, 1048.0" version="1.1" xmlns="http://www.w3.org/2000/svg">
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="-20" y="-20" width="37649.600000000006" height="1048.0" stroke="none" fill="white" />"
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
- x1 = 0 - @margin
48
- y1 = 0 - @margin
49
- x2 = @width + @margin * 2
50
- y2 = @height + @margin * 2
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RSyntaxTree
4
- VERSION = "1.2.6"
4
+ VERSION = "1.2.7"
5
5
  end
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] = @params[:fontsize] * FONT_SCALING
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 = {}
@@ -21,7 +21,6 @@ class ExampleParserTest < Minitest::Test
21
21
  fontstyle: "sans",
22
22
  fontsize: 16,
23
23
  linewidth: 1,
24
- margin: 1,
25
24
  vheight: 2.0,
26
25
  color: "on",
27
26
  symmetrize: "on",
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.6
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-06 00:00:00.000000000 Z
11
+ date: 2023-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: optimist