rsyntaxtree 1.2.0 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (129) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +1 -1
  3. data/.tags +84 -0
  4. data/Rakefile +14 -4
  5. data/bin/rsyntaxtree +4 -2
  6. data/docs/_examples/000.md +2 -1
  7. data/docs/_examples/001.md +2 -1
  8. data/docs/_examples/002.md +2 -1
  9. data/docs/_examples/003.md +2 -1
  10. data/docs/_examples/004.md +2 -1
  11. data/docs/_examples/005.md +2 -1
  12. data/docs/_examples/006.md +2 -1
  13. data/docs/_examples/007.md +2 -1
  14. data/docs/_examples/008.md +2 -1
  15. data/docs/_examples/009.md +2 -1
  16. data/docs/_examples/010.md +2 -1
  17. data/docs/_examples/011.md +2 -1
  18. data/docs/_examples/012.md +2 -1
  19. data/docs/_examples/013.md +2 -1
  20. data/docs/_examples/014.md +2 -1
  21. data/docs/_examples/015.md +2 -1
  22. data/docs/_examples/016.md +2 -1
  23. data/docs/_examples/017.md +2 -1
  24. data/docs/_examples/018.md +2 -1
  25. data/docs/_examples/019.md +2 -1
  26. data/docs/_examples/020.md +2 -1
  27. data/docs/_examples/021.md +2 -1
  28. data/docs/_examples/022.md +2 -1
  29. data/docs/_examples/023.md +2 -1
  30. data/docs/_examples/024.md +2 -1
  31. data/docs/_examples/025.md +2 -1
  32. data/docs/_examples/026.md +2 -1
  33. data/docs/_examples/027.md +2 -1
  34. data/docs/_examples/028.md +2 -1
  35. data/docs/_examples/029.md +2 -1
  36. data/docs/_examples/030.md +4 -3
  37. data/docs/_examples/031.md +2 -1
  38. data/docs/_examples/032.md +7 -5
  39. data/docs/_examples/033.md +16 -17
  40. data/docs/_examples/034.md +3 -2
  41. data/docs/_examples/035.md +35 -0
  42. data/docs/_examples/036.md +18 -0
  43. data/docs/_examples/037.md +18 -0
  44. data/docs/assets/img/000.png +0 -0
  45. data/docs/assets/img/001.png +0 -0
  46. data/docs/assets/img/002.png +0 -0
  47. data/docs/assets/img/003.png +0 -0
  48. data/docs/assets/img/004.png +0 -0
  49. data/docs/assets/img/005.png +0 -0
  50. data/docs/assets/img/006.png +0 -0
  51. data/docs/assets/img/007.png +0 -0
  52. data/docs/assets/img/008.png +0 -0
  53. data/docs/assets/img/009.png +0 -0
  54. data/docs/assets/img/010.png +0 -0
  55. data/docs/assets/img/011.png +0 -0
  56. data/docs/assets/img/012.png +0 -0
  57. data/docs/assets/img/013.png +0 -0
  58. data/docs/assets/img/014.png +0 -0
  59. data/docs/assets/img/015.png +0 -0
  60. data/docs/assets/img/016.png +0 -0
  61. data/docs/assets/img/017.png +0 -0
  62. data/docs/assets/img/018.png +0 -0
  63. data/docs/assets/img/019.png +0 -0
  64. data/docs/assets/img/020.png +0 -0
  65. data/docs/assets/img/021.png +0 -0
  66. data/docs/assets/img/022.png +0 -0
  67. data/docs/assets/img/023.png +0 -0
  68. data/docs/assets/img/024.png +0 -0
  69. data/docs/assets/img/025.png +0 -0
  70. data/docs/assets/img/026.png +0 -0
  71. data/docs/assets/img/027.png +0 -0
  72. data/docs/assets/img/028.png +0 -0
  73. data/docs/assets/img/029.png +0 -0
  74. data/docs/assets/img/030.png +0 -0
  75. data/docs/assets/img/031.png +0 -0
  76. data/docs/assets/img/032.png +0 -0
  77. data/docs/assets/img/033.png +0 -0
  78. data/docs/assets/img/034.png +0 -0
  79. data/docs/assets/img/035.png +0 -0
  80. data/docs/assets/img/036.png +0 -0
  81. data/docs/assets/img/037.png +0 -0
  82. data/docs/assets/svg/000.svg +44 -38
  83. data/docs/assets/svg/001.svg +24 -18
  84. data/docs/assets/svg/002.svg +36 -30
  85. data/docs/assets/svg/003.svg +28 -22
  86. data/docs/assets/svg/004.svg +37 -31
  87. data/docs/assets/svg/005.svg +19 -13
  88. data/docs/assets/svg/006.svg +23 -17
  89. data/docs/assets/svg/007.svg +30 -24
  90. data/docs/assets/svg/008.svg +34 -28
  91. data/docs/assets/svg/009.svg +31 -25
  92. data/docs/assets/svg/010.svg +57 -51
  93. data/docs/assets/svg/011.svg +26 -20
  94. data/docs/assets/svg/012.svg +29 -23
  95. data/docs/assets/svg/013.svg +124 -118
  96. data/docs/assets/svg/014.svg +95 -89
  97. data/docs/assets/svg/015.svg +37 -31
  98. data/docs/assets/svg/016.svg +200 -194
  99. data/docs/assets/svg/017.svg +40 -34
  100. data/docs/assets/svg/018.svg +42 -36
  101. data/docs/assets/svg/019.svg +184 -178
  102. data/docs/assets/svg/020.svg +64 -58
  103. data/docs/assets/svg/021.svg +41 -35
  104. data/docs/assets/svg/022.svg +69 -63
  105. data/docs/assets/svg/023.svg +40 -34
  106. data/docs/assets/svg/024.svg +22 -16
  107. data/docs/assets/svg/025.svg +124 -118
  108. data/docs/assets/svg/026.svg +16 -10
  109. data/docs/assets/svg/027.svg +46 -40
  110. data/docs/assets/svg/028.svg +26 -20
  111. data/docs/assets/svg/029.svg +94 -88
  112. data/docs/assets/svg/030.svg +51 -45
  113. data/docs/assets/svg/031.svg +14 -8
  114. data/docs/assets/svg/032.svg +68 -49
  115. data/docs/assets/svg/033.svg +62 -55
  116. data/docs/assets/svg/034.svg +66 -60
  117. data/docs/assets/svg/035.svg +82 -0
  118. data/docs/assets/svg/036.svg +50 -0
  119. data/docs/assets/svg/037.svg +88 -0
  120. data/docs/documentation.md +4 -4
  121. data/docs/documentation_ja.md +10 -6
  122. data/docs/examples.html +1 -1
  123. data/lib/rsyntaxtree/base_graph.rb +29 -14
  124. data/lib/rsyntaxtree/element.rb +6 -11
  125. data/lib/rsyntaxtree/svg_graph.rb +52 -45
  126. data/lib/rsyntaxtree/version.rb +1 -1
  127. data/lib/rsyntaxtree.rb +13 -3
  128. data/test/example_verify_test.rb +13 -3
  129. metadata +12 -3
@@ -1,11 +1,12 @@
1
1
  ---
2
2
  name: "014"
3
3
  caption: "Cognitive Grammar sample"
4
- colorization: "off"
4
+ color: "off"
5
5
  category: "Cognitive Grammar"
6
6
  polyline: "off"
7
7
  symmetrization: "off"
8
8
  connector: "auto"
9
+ hide_default_connectors: "off"
9
10
  font: "Noto Serif"
10
11
  reference:
11
12
  ---
@@ -1,11 +1,12 @@
1
1
  ---
2
2
  name: "015"
3
3
  caption: "Phonology sample"
4
- colorization: "on"
4
+ color: "modern"
5
5
  category: "Phonology"
6
6
  polyline: "off"
7
7
  symmetrization: "on"
8
8
  connector: "auto"
9
+ hide_default_connectors: "off"
9
10
  font: "WQY Zen Hei"
10
11
  reference:
11
12
  ---
@@ -1,11 +1,12 @@
1
1
  ---
2
2
  name: "016"
3
3
  caption: "Tick-tac-toe"
4
- colorization: "off"
4
+ color: "off"
5
5
  category: "Miscellaneous"
6
6
  polyline: "off"
7
7
  symmetrization: "off"
8
8
  connector: "bar"
9
+ hide_default_connectors: "off"
9
10
  font: "WQY Zen Hei"
10
11
  reference:
11
12
  ---
@@ -1,11 +1,12 @@
1
1
  ---
2
2
  name: "017"
3
3
  caption: "Basic polyline sample"
4
- colorization: "on"
4
+ color: "modern"
5
5
  category: "General"
6
6
  polyline: "on"
7
7
  symmetrization: "off"
8
8
  connector: "auto"
9
+ hide_default_connectors: "off"
9
10
  font: "Noto Serif"
10
11
  reference:
11
12
  ---
@@ -3,9 +3,10 @@ name: "018"
3
3
  caption: "Tree with text labels in bold"
4
4
  category: "Generative Grammar"
5
5
  polyline: "off"
6
- colorization: "on"
6
+ color: "modern"
7
7
  symmetrization: "off"
8
8
  connector: "auto"
9
+ hide_default_connectors: "off"
9
10
  font: "Noto Serif"
10
11
  reference: "Langacker 1969: 175"
11
12
  ---
@@ -1,11 +1,12 @@
1
1
  ---
2
2
  name: "019"
3
3
  caption: "Programming language parser"
4
- colorization: "off"
4
+ color: "off"
5
5
  category: "Computer Science"
6
6
  polyline: "on"
7
7
  symmetrization: "off"
8
8
  connector: "bar"
9
+ hide_default_connectors: "off"
9
10
  font: "Noto Sans Mono"
10
11
  reference: "Stuart 2014"
11
12
  ---
@@ -1,11 +1,12 @@
1
1
  ---
2
2
  name: "020"
3
3
  caption: "From phoneme to sentence"
4
- colorization: "on"
4
+ color: "modern"
5
5
  category: "General"
6
6
  polyline: "off"
7
7
  symmetrization: "off"
8
8
  connector: "bar"
9
+ hide_default_connectors: "off"
9
10
  font: "WQY Zen Hei"
10
11
  reference:
11
12
  ---
@@ -1,11 +1,12 @@
1
1
  ---
2
2
  name: "021"
3
3
  caption: "Types of meaning"
4
- colorization: "off"
4
+ color: "off"
5
5
  category: "Pragmatics"
6
6
  polyline: "on"
7
7
  symmetrization: "off"
8
8
  connector: "bar"
9
+ hide_default_connectors: "off"
9
10
  font: "Noto Serif"
10
11
  reference: "Zufferey, Moeschler, and Reboul 2014"
11
12
  ---
@@ -1,11 +1,12 @@
1
1
  ---
2
2
  name: "022"
3
3
  caption: "Arithmetic parser"
4
- colorization: "off"
4
+ color: "off"
5
5
  category: "Computer Science"
6
6
  polyline: "on"
7
7
  symmetrization: "off"
8
8
  connector: "bar"
9
+ hide_default_connectors: "off"
9
10
  font: "Noto Sans Mono"
10
11
  reference: ""
11
12
  ---
@@ -1,11 +1,12 @@
1
1
  ---
2
2
  name: "023"
3
3
  caption: "Tournament"
4
- colorization: "off"
4
+ color: "off"
5
5
  category: "Miscellaneous"
6
6
  polyline: "on"
7
7
  symmetrization: "off"
8
8
  connector: "bar"
9
+ hide_default_connectors: "off"
9
10
  font: "Noto Sans"
10
11
  reference: ""
11
12
  ---
@@ -1,11 +1,12 @@
1
1
  ---
2
2
  name: "024"
3
3
  caption: "X-bar model"
4
- colorization: "off"
4
+ color: "off"
5
5
  category: "Generative Grammar"
6
6
  polyline: "off"
7
7
  symmetrization: "off"
8
8
  connector: "none"
9
+ hide_default_connectors: "off"
9
10
  font: "Noto Serif"
10
11
  reference:
11
12
  ---
@@ -1,11 +1,12 @@
1
1
  ---
2
2
  name: "025"
3
3
  caption: "Network of non-prototypical sentence constructions"
4
- colorization: "off"
4
+ color: "off"
5
5
  category: "Construction Grammar"
6
6
  polyline: "on"
7
7
  symmetrization: "off"
8
8
  connector: "bar"
9
+ hide_default_connectors: "off"
9
10
  font: "Noto Serif"
10
11
  reference: "Goldberg 2006: 177"
11
12
  ---
@@ -1,11 +1,12 @@
1
1
  ---
2
2
  name: "026"
3
3
  caption: "Types of reference"
4
- colorization: "off"
4
+ color: "off"
5
5
  category: "Pragmatics"
6
6
  polyline: "on"
7
7
  symmetrization: "off"
8
8
  connector: "bar"
9
+ hide_default_connectors: "off"
9
10
  font: "Noto Serif"
10
11
  reference: "Halliday and Hasan 1976: 33"
11
12
  ---
@@ -1,11 +1,12 @@
1
1
  ---
2
2
  name: "027"
3
3
  caption: "Types of rejoinder"
4
- colorization: "off"
4
+ color: "off"
5
5
  category: "Pragmatics"
6
6
  polyline: "on"
7
7
  symmetrization: "off"
8
8
  connector: "bar"
9
+ hide_default_connectors: "off"
9
10
  font: "Noto Serif"
10
11
  reference: "Halliday and Hasan 1976: 207"
11
12
  ---
@@ -1,11 +1,12 @@
1
1
  ---
2
2
  name: "028"
3
3
  caption: "Basic tree with triangles"
4
- colorization: "on"
4
+ color: "modern"
5
5
  category: "General"
6
6
  polyline: "off"
7
7
  symmetrization: "off"
8
8
  connector: "auto"
9
+ hide_default_connectors: "off"
9
10
  font: "Noto Serif"
10
11
  reference:
11
12
  ---
@@ -1,11 +1,12 @@
1
1
  ---
2
2
  name: "029"
3
3
  caption: "Animal ontology"
4
- colorization: "off"
4
+ color: "off"
5
5
  category: "Formal Concept Analysis"
6
6
  polyline: "off"
7
7
  symmetrization: "off"
8
8
  connector: "auto"
9
+ hide_default_connectors: "off"
9
10
  font: "Noto Sans Mono"
10
11
  reference:
11
12
  ---
@@ -1,13 +1,14 @@
1
1
  ---
2
2
  name: "030"
3
- caption: "Subject-predicate construction"
4
- colorization: "off"
3
+ caption: "Construction network"
4
+ color: "off"
5
5
  category: "Construction Grammar"
6
6
  polyline: "off"
7
7
  symmetrization: "off"
8
8
  connector: "auto"
9
+ hide_default_connectors: "off"
9
10
  font: "Noto Serif"
10
- reference:
11
+ reference: "Goldberg 1995: 109"
11
12
  ---
12
13
  ```
13
14
  [##Subject\-Predicate<>Construction
@@ -1,11 +1,12 @@
1
1
  ---
2
2
  name: "031"
3
3
  caption: "Lambda calculus"
4
- colorization: "off"
4
+ color: "off"
5
5
  category: "Formal Semantics"
6
6
  polyline: "off"
7
7
  symmetrization: "off"
8
8
  connector: "auto"
9
+ hide_default_connectors: "off"
9
10
  font: "Noto Sans Mono"
10
11
  reference:
11
12
  ---
@@ -3,24 +3,26 @@ name: "032"
3
3
  caption:
4
4
  category: "Test"
5
5
  polyline: "on"
6
- colorization: "off"
6
+ color: "modern"
7
7
  symmetrization: "off"
8
8
  connector: "none"
9
+ hide_default_connectors: "off"
9
10
  font: "Noto Sans Mono"
10
11
  reference: ""
11
12
  ---
12
13
  ```
13
14
  [##ABC\
14
15
  ---\
15
- abc+-3+-4+->6
16
+ abc+-4+->6
16
17
  DEF+0+->2+-4
17
18
  [##GHI\
18
19
  ---\
19
- ghi+>0+->1+-2+5+-6]
20
- [JKL
21
- [##MNO+-3
20
+ ghi+>0+->1+-2+5+->6]
21
+ [##JKL+->7+->8
22
+ [##MNO+->8
22
23
  ##XYZ+5+->1
23
24
  ]
24
25
  ]
26
+ [##PQR+->7]
25
27
  ]
26
28
  ```
@@ -2,25 +2,24 @@
2
2
  name: "033"
3
3
  category: "Test"
4
4
  caption:
5
- polyline: "on"
6
- colorization: "off"
5
+ polyline: "off"
6
+ color: "modern"
7
7
  symmetrization: "off"
8
8
  connector: "auto"
9
- font: "Noto Sans Mono"
9
+ hide_default_connectors: "off"
10
+ font: "Noto Serif"
10
11
  reference: ""
11
12
  ---
12
13
  ```
13
- [##ABC\
14
- ---\
15
- abc+-3+-4
16
- DEF+>0+-2+-4
17
- [##GHI\
18
- ---\
19
- ghi+0+-1+-2+5]
20
- [JKL
21
- [##MNO+-3
22
- ##XYZ+5+-1
23
- ]
24
- ]
25
- ]
26
- ```
14
+ [S+-2
15
+ [{=-NP-=}+-3 |R| SyntaxTree]
16
+ [VP+->3
17
+ [V+-4+-2 generates]
18
+ [NP
19
+ [Adj+->4 #\+multilingual\
20
+ \+beautiful]
21
+ [NP syntax\
22
+ trees]
23
+ ]
24
+ ]
25
+ ]```
@@ -1,13 +1,14 @@
1
1
  ---
2
2
  name: "034"
3
3
  caption: "Taxonomic Hierarchy of clauses"
4
- colorization: "off"
4
+ color: "off"
5
5
  category: "Construction Grammar"
6
6
  polyline: "off"
7
7
  symmetrization: "off"
8
8
  connector: "auto"
9
+ hide_default_connectors: "off"
9
10
  font: "Noto Serif"
10
- reference: "Croft and Cruse 2004"
11
+ reference: "Croft and Cruse 2004: 264"
11
12
  ---
12
13
  ```
13
14
  [##Clause
@@ -0,0 +1,35 @@
1
+ ---
2
+ name: "035"
3
+ caption: "Construction network"
4
+ color: "off"
5
+ category: "Construction Grammar"
6
+ polyline: "off"
7
+ symmetrization: "on"
8
+ connector: "auto"
9
+ hide_default_connectors: "on"
10
+ font: "Noto Serif"
11
+ reference: "Goldberg 1995: 109"
12
+ ---
13
+ ```
14
+ [##Caused\-Motion\
15
+ ---\
16
+ *Pat<>sneezed<>the<>napkin<>off<>the<>table*+-2+-4+-5
17
+ [##Resultative\
18
+ ---\
19
+ *She<>kissed<>him<>unconsicous*+-1+-4
20
+ [<>
21
+ [##Intransitive<>Resultative\
22
+ ---\
23
+ *The<>jello<>went<>from<>liquid<>to<>solid*+-1+-3]
24
+ ]
25
+ ]
26
+ [<>
27
+ [##Intransitive<>Motion\
28
+ ---\
29
+ *The<>boy<>ran<>home*+-2+-3]
30
+ ]
31
+ [##Transfer\
32
+ ---\
33
+ *Sally<>threw<>a<>football<>to<>him*+-5]
34
+ ]
35
+ ```
@@ -0,0 +1,18 @@
1
+ ---
2
+ name: "036"
3
+ caption: "Schema network"
4
+ color: "modern"
5
+ category: "Cognitive Grammar"
6
+ polyline: "off"
7
+ symmetrization: "on"
8
+ connector: "auto"
9
+ hide_default_connectors: "on"
10
+ font: "Noto Serif"
11
+ reference:
12
+ ---
13
+ ```
14
+ [##Schema+->0+->1
15
+ [##Prototype+->0+-2]
16
+ [##Extention+->1+->2]
17
+ ]
18
+ ```
@@ -0,0 +1,18 @@
1
+ ---
2
+ name: "037"
3
+ color: "modern"
4
+ category: "Test"
5
+ polyline: "off"
6
+ symmetrization: "on"
7
+ connector: "auto"
8
+ hide_default_connectors: "on"
9
+ font: "Noto Serif"
10
+ reference:
11
+ ---
12
+ ```
13
+ [###{X}--|x|\
14
+ <>\
15
+ {Y}--|y|--*{a}*\
16
+ <>\
17
+ {Y}--|y|]
18
+ ```
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file