rsyntaxtree 1.0.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/.tags +438 -20
  3. data/README.md +61 -28
  4. data/bin/rsyntaxtree +0 -1
  5. data/docs/.gitignore +5 -0
  6. data/docs/404.html +25 -0
  7. data/docs/Gemfile +31 -0
  8. data/docs/_config.yml +77 -0
  9. data/docs/_examples/001.md +22 -0
  10. data/docs/_examples/002.md +31 -0
  11. data/docs/_examples/003.md +25 -0
  12. data/docs/_examples/004.md +25 -0
  13. data/docs/_examples/005.md +22 -0
  14. data/docs/_examples/006.md +25 -0
  15. data/docs/_examples/007.md +26 -0
  16. data/docs/_examples/008.md +28 -0
  17. data/docs/_examples/009.md +24 -0
  18. data/docs/_examples/010.md +48 -0
  19. data/docs/_examples/011.md +37 -0
  20. data/docs/_examples/012.md +40 -0
  21. data/docs/_examples/013.md +62 -0
  22. data/docs/_examples/014.md +47 -0
  23. data/docs/_examples/015.md +30 -0
  24. data/docs/_examples/016.md +82 -0
  25. data/docs/_examples/017.md +22 -0
  26. data/docs/_examples/018.md +28 -0
  27. data/docs/_examples/019.md +59 -0
  28. data/docs/_examples/020.md +39 -0
  29. data/docs/_includes/box_and_circle_table.html +54 -0
  30. data/docs/_includes/escape_char_table.html +28 -0
  31. data/docs/_includes/social_media_links.html +13 -0
  32. data/docs/_layouts/default.html +43 -0
  33. data/docs/assets/css/style.scss +25 -0
  34. data/docs/assets/img/001.png +0 -0
  35. data/docs/assets/img/002.png +0 -0
  36. data/docs/assets/img/003.png +0 -0
  37. data/docs/assets/img/004.png +0 -0
  38. data/docs/assets/img/005.png +0 -0
  39. data/docs/assets/img/006.png +0 -0
  40. data/docs/assets/img/007.png +0 -0
  41. data/docs/assets/img/008.png +0 -0
  42. data/docs/assets/img/009.png +0 -0
  43. data/docs/assets/img/010.png +0 -0
  44. data/docs/assets/img/011.png +0 -0
  45. data/docs/assets/img/012.png +0 -0
  46. data/docs/assets/img/013.png +0 -0
  47. data/docs/assets/img/014.png +0 -0
  48. data/docs/assets/img/015.png +0 -0
  49. data/docs/assets/img/016.png +0 -0
  50. data/docs/assets/img/017.png +0 -0
  51. data/docs/assets/img/018.png +0 -0
  52. data/docs/assets/img/019.png +0 -0
  53. data/docs/assets/img/020.png +0 -0
  54. data/{img → docs/assets/img}/elements/circle.png +0 -0
  55. data/{img → docs/assets/img}/elements/circle_abc.png +0 -0
  56. data/{img → docs/assets/img}/elements/circle_bold.png +0 -0
  57. data/{img → docs/assets/img}/elements/circle_hatched.png +0 -0
  58. data/{img → docs/assets/img}/elements/circle_one.png +0 -0
  59. data/{img → docs/assets/img}/elements/connector.png +0 -0
  60. data/{img → docs/assets/img}/elements/connector_bold.png +0 -0
  61. data/{img → docs/assets/img}/elements/square.png +0 -0
  62. data/{img → docs/assets/img}/elements/square_abc.png +0 -0
  63. data/{img → docs/assets/img}/elements/square_bold.png +0 -0
  64. data/{img → docs/assets/img}/elements/square_hatched.png +0 -0
  65. data/{img → docs/assets/img}/elements/square_one.png +0 -0
  66. data/docs/assets/img/favicon/apple-touch-icon.png +0 -0
  67. data/docs/assets/img/favicon/favicon-16x16.png +0 -0
  68. data/docs/assets/img/favicon/favicon-32x32.png +0 -0
  69. data/docs/assets/img/favicon/favicon.ico +0 -0
  70. data/docs/documentation.md +153 -0
  71. data/docs/documentation_ja.md +166 -0
  72. data/docs/examples.html +68 -0
  73. data/docs/index.html +2 -0
  74. data/img/rsyntaxtree-web-screenshot.png +0 -0
  75. data/lib/rsyntaxtree/version.rb +1 -1
  76. data/lib/rsyntaxtree.rb +2 -0
  77. data/rsyntaxtree.gemspec +1 -1
  78. metadata +74 -16
@@ -0,0 +1,47 @@
1
+ ---
2
+ name: "014"
3
+ colorization: "off"
4
+ category: "Cognitive Grammar (Experimental)"
5
+ polyline: "off"
6
+ symmetrization: "off"
7
+ connector: "auto"
8
+ font: "Noto Serif"
9
+ reference:
10
+ ---
11
+ ```
12
+ [##*{👧}**--**|s|*\
13
+ __|G|__<>RELATION\
14
+ ---\
15
+ *that<>girl<>is<>smart*
16
+ [##*{👧}*\
17
+ __|G|__<>THING\
18
+ ---\
19
+ *that<>girl*
20
+ [##*{/}*\
21
+ __|G|__<>THING\
22
+ ----\
23
+ *that*
24
+ ]
25
+ [##*{👧}*\
26
+ THING\
27
+ ----\
28
+ *girl*
29
+ ]
30
+ ]
31
+ [##{/}*--**|s|*\
32
+ __|G|__<>RELATION\
33
+ ---\
34
+ *is<>smart*
35
+ [##{/}*--*|/|\
36
+ __|G|__<>RELATION\
37
+ ---\
38
+ *is*
39
+ ]
40
+ [##{/}--*|s|*\
41
+ RELATION\
42
+ ---\
43
+ *smart*
44
+ ]
45
+ ]
46
+ ]
47
+ ```
@@ -0,0 +1,30 @@
1
+ ---
2
+ name: "015"
3
+ colorization: "on"
4
+ category: "Phonology"
5
+ polyline: "off"
6
+ symmetrization: "on"
7
+ connector: "auto"
8
+ font: "WQY Zen Hei"
9
+ reference:
10
+ ---
11
+ ```
12
+
13
+ [Onset
14
+ [s]
15
+ [t]
16
+ [r]
17
+ ]
18
+ [Rhyme
19
+ [Nucleus ɛ]
20
+ [Coda
21
+ [ŋ]
22
+ [k]
23
+ ]
24
+ ]
25
+ [Appendix
26
+ [θ]
27
+ [S]
28
+ ]
29
+ ]
30
+ ```
@@ -0,0 +1,82 @@
1
+ ---
2
+ name: "016"
3
+ colorization: "off"
4
+ category: "Tic-Tac-Toe"
5
+ polyline: "off"
6
+ symmetrization: "off"
7
+ connector: "bar"
8
+ font: "WQY Zen Hei"
9
+ reference:
10
+ ---
11
+ ```
12
+ [
13
+ |○|||||\
14
+ |×||×||○|\
15
+ |×||○|||
16
+ [
17
+ |○|*|○|*||\
18
+ |×||×||○|\
19
+ |×||○|||
20
+ [
21
+ |○||○|*|×|*\
22
+ |×||×||○|\
23
+ |×||○|||
24
+ ]
25
+ [
26
+ |○||○|||\
27
+ |×||×||○|\
28
+ |×||○|*|×|*
29
+ [
30
+ |○||○|*|○|*\
31
+ |×||×||○|\
32
+ |×||○||×|
33
+ ]
34
+ ]
35
+ ]
36
+ [
37
+ |○|||*|○|*\
38
+ |×||×||○|\
39
+ |×||○|||
40
+ [
41
+ |○|*|×|*|○|\
42
+ |×||×||○|\
43
+ |×||○|||
44
+ [
45
+ |○||×||○|\
46
+ |×||×||○|\
47
+ |×||○|*|○|*
48
+ ]
49
+ ]
50
+ [
51
+ |○||||○|\
52
+ |×||×||○|\
53
+ |×||○|*|×|*
54
+ [
55
+ |○|*|○|*|○|\
56
+ |×||×||○|\
57
+ |×||○||×|
58
+ ]
59
+ ]
60
+ ]
61
+ [
62
+ |○|||||\
63
+ |×||×||○|\
64
+ |×||○|*|○|*
65
+ [
66
+ |○|*|×|*||\
67
+ |×||×||○|\
68
+ |×||○||○|
69
+ [
70
+ |○||×|*|○|*\
71
+ |×||×||○|\
72
+ |×||○||○|
73
+ ]
74
+ ]
75
+ [
76
+ |○|||*|×|*\
77
+ |×||×||○|\
78
+ |×||○||○|
79
+ ]
80
+ ]
81
+ ]
82
+ ```
@@ -0,0 +1,22 @@
1
+ ---
2
+ name: "017"
3
+ colorization: "on"
4
+ category: "General"
5
+ polyline: "on"
6
+ symmetrization: "off"
7
+ connector: "auto"
8
+ font: "Noto Serif"
9
+ reference:
10
+ ---
11
+ ```
12
+ [A
13
+ [B
14
+ [D [H] [I]]
15
+ [E [J] [K]]
16
+ ]
17
+ [C
18
+ [F [L] [M]]
19
+ [G [N] [O]]
20
+ ]
21
+ ]
22
+ ```
@@ -0,0 +1,28 @@
1
+ ---
2
+ name: "018"
3
+ category: "Generative Grammar"
4
+ polyline: "off"
5
+ colorization: "on"
6
+ symmetrization: "off"
7
+ connector: "auto"
8
+ font: "Noto Serif"
9
+ reference: "Langacker 1969: 175"
10
+ ---
11
+ ```
12
+ [S
13
+ [NP I]
14
+ [PdP
15
+ [VP
16
+ [V knew]
17
+ [NP **Harvey**]
18
+ ]
19
+ [Adv
20
+ [when]
21
+ [S
22
+ [NP **Harvey**]
23
+ [PdP was a little boy]
24
+ ]
25
+ ]
26
+ ]
27
+ ]
28
+ ```
@@ -0,0 +1,59 @@
1
+ ---
2
+ name: "019"
3
+ colorization: "off"
4
+ category: "Computer Science"
5
+ polyline: "on"
6
+ symmetrization: "off"
7
+ connector: "bar"
8
+ font: "Noto Sans"
9
+ reference: "Stuart 2014"
10
+ ---
11
+ ```
12
+ [##\<statement\>
13
+ [##\<while\>
14
+ [##<>w<>]
15
+ [##<>(<>]
16
+ [##\<expression\>
17
+ [##\<less\-than\>
18
+ [##\<multiply\>
19
+ [##\<term\>
20
+ [##<>v<>]
21
+ ]
22
+ ]
23
+ [##<>\<<>]
24
+ [##\<less\-than\>
25
+ [##\<multiply\>
26
+ [##\<term\>
27
+ [##<>n<>]
28
+ ]
29
+ ]
30
+ ]
31
+ ]
32
+ ]
33
+ [##<>)<>]
34
+ [##<>\{<>]
35
+ [##\<statement\>
36
+ [##\<assign\>
37
+ [##<>v<>]
38
+ [##<>\=<>]
39
+ [##\<\expression\>
40
+ [##\<less\-than\>
41
+ [##\<multiply\>
42
+ [##\<term\>
43
+ [##<>v<>]
44
+ ]
45
+ [##<>\*<>]
46
+ [##\<multiply\>
47
+ [##\<term\>
48
+ [##<>n<>]
49
+ ]
50
+ ]
51
+ ]
52
+ ]
53
+ ]
54
+ ]
55
+ ]
56
+ [##<>\}<>]
57
+ ]
58
+ ]
59
+ ```
@@ -0,0 +1,39 @@
1
+ ---
2
+ name: "020"
3
+ colorization: "on"
4
+ category: "General"
5
+ polyline: "off"
6
+ symmetrization: "off"
7
+ connector: "bar"
8
+ font: "WQY Zen Hei"
9
+ reference:
10
+ ---
11
+ ```
12
+ [The<>umpires<>talked<>to<>the<>players
13
+ [the<>umpires
14
+ [the
15
+ [<> ði]
16
+ ]
17
+ [umpires
18
+ [umpire ʌ́mpaɪər]
19
+ [s z]
20
+ ]
21
+ ]
22
+ [talked<>to<>the<>players
23
+ [talked
24
+ [talk tɔːk]
25
+ [ed t]
26
+ ]
27
+ [to
28
+ [<> tə]
29
+ ]
30
+ [the
31
+ [<> ðə]
32
+ ]
33
+ [players
34
+ [player pléɪər]
35
+ [s z]
36
+ ]
37
+ ]
38
+ ]
39
+ ```
@@ -0,0 +1,54 @@
1
+ <table class='table table-sm table-bordered '><thead><tr>
2
+ <th>Sample Input</th>
3
+ <th>Output</th>
4
+ </tr>
5
+ </thead><tbody>
6
+ <tr>
7
+ <td><code>||</code></td>
8
+ <td><img style='height: 1em;' src='./assets/img/elements/square.png' /></td>
9
+ </tr>
10
+ <tr>
11
+ <td><code>{}</code></td>
12
+ <td><img style='height: 1em;' src='./assets/img/elements/circle.png' /></td>
13
+ </tr>
14
+ <tr>
15
+ <td><code>*||*</code></td>
16
+ <td><img style='height: 1em;' src='./assets/img/elements/square_bold.png' /></td>
17
+ </tr>
18
+ <tr>
19
+ <td><code>*{}*</code></td>
20
+ <td><img style='height: 1em;' src='./assets/img/elements/circle_bold.png' /></td>
21
+ </tr>
22
+ <tr>
23
+ <td><code>|/|</code></td>
24
+ <td><img style='height: 1em;' src='./assets/img/elements/square_hatched.png' /></td>
25
+ </tr>
26
+ <tr>
27
+ <td><code>{/}</code></td>
28
+ <td><img style='height: 1em;' src='./assets/img/elements/circle_hatched.png' /></td>
29
+ </tr>
30
+ <tr>
31
+ <td><code>|1|</code></td>
32
+ <td><img style='height: 1em;' src='./assets/img/elements/square_one.png' /></td>
33
+ </tr>
34
+ <tr>
35
+ <td><code>{1}</code></td>
36
+ <td><img style='height: 1em;' src='./assets/img/elements/circle_one.png' /></td>
37
+ </tr>
38
+ <tr>
39
+ <td><code>|abc|</code></td>
40
+ <td><img style='height: 1em;' src='./assets/img/elements/square_abc.png' /></td>
41
+ </tr>
42
+ <tr>
43
+ <td><code>{abc}</code></td>
44
+ <td><img style='height: 1em;' src='./assets/img/elements/circle_abc.png' /></td>
45
+ </tr>
46
+ <tr>
47
+ <td><code>--</code></td>
48
+ <td><img style='height: 1em;' src='./assets/img/elements/connector.png' /></td>
49
+ </tr>
50
+ <tr>
51
+ <td><code>*--*</code></td>
52
+ <td><img style='height: 1em;' src='./assets/img/elements/connector_bold.png' /></td>
53
+ </tr>
54
+ </tbody></table>
@@ -0,0 +1,28 @@
1
+ <table class='table table-sm table-bordered '>
2
+ <thead>
3
+ <tr>
4
+ <th>Input</th>
5
+ <th>Apearance</th>
6
+ </tr>
7
+ </thead>
8
+ <tbody>
9
+ <tr><td><code>\[</code></td><td><code>[</code></td></tr>
10
+ <tr><td><code>\]</code></td><td><code>]</code></td></tr>
11
+ <tr><td><code>\<</code></td><td><code>&lt;</code></td></tr>
12
+ <tr><td><code>\></code></td><td><code>&gt;</code></td></tr>
13
+ <tr><td><code>\^</code></td><td><code>^</code></td></tr>
14
+ <tr><td><code>\+</code></td><td><code>+</code></td></tr>
15
+ <tr><td><code>\*</code></td><td><code>*</code></td></tr>
16
+ <tr><td><code>\-</code></td><td><code>-</code></td></tr>
17
+ <tr><td><code>\_</code></td><td><code>_</code></td></tr>
18
+ <tr><td><code>\=</code></td><td><code>=</code></td></tr>
19
+ <tr><td><code>\~</code></td><td><code>~</code></td></tr>
20
+ <tr><td><code>\|</code></td><td><code>|</code></td></tr>
21
+ <tr><td><code>\\</code></td><td><code>\</code></td></tr>
22
+ <tr><td><code>\¥</code></td><td><code>¥</code></td></tr>
23
+ <tr><td><code><></code></td><td>whitespace</td> </tr>
24
+ <tr><td><code>\n</code></td><td><code>↩️</code></td></tr>
25
+ <tr><td><code>\↩️</code></td><td><code>↩️</code></td></tr>
26
+ <tr><td><code>\</code> + whitespace</td><td><code>↩️</code></td></tr>
27
+ </tbody>
28
+ </table>
@@ -0,0 +1,13 @@
1
+ {% if site.social-media %}
2
+ <div id="social-media" style='color: black;'>
3
+ {% assign sm = site.social-media %}
4
+ {% for entry in sm %}
5
+ {% assign key = entry | first %}
6
+ {% if sm[key].id %}
7
+ <a href="{{ sm[key].href }}{{ sm[key].id }}" title="{{ sm[key].title }}">
8
+ <i class="{{sm[key].category}} {{ sm[key].fa-icon }}" aria-hidden="true"></i>
9
+ </a>
10
+ {% endif %}
11
+ {% endfor %}
12
+ </div>
13
+ {% endif %}
@@ -0,0 +1,43 @@
1
+ <!DOCTYPE html>
2
+ <html lang="{{ site.lang | default: "en-US" }}">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <link rel="apple-touch-icon" sizes="180x180" href="assets/img/favicon/apple-touch-icon.png">
6
+ <link rel="icon" type="image/png" sizes="32x32" href="assets/img/favicon/favicon-32x32.png">
7
+ <link rel="icon" type="image/png" sizes="16x16" href="assets/img/favicon/favicon-16x16.png">
8
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/lightbox2@2.11.3/src/css/lightbox.css" />
9
+ <link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css" crossorigin="anonymous"/>
10
+ {% seo %}
11
+ <link rel="preconnect" href="https://fonts.gstatic.com">
12
+ <link rel="preload" href="https://fonts.googleapis.com/css?family=Open+Sans:400,700&display=swap" as="style" type="text/css" crossorigin>
13
+ <meta name="viewport" content="width=device-width, initial-scale=1">
14
+ <meta name="theme-color" content="#157878">
15
+ <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
16
+ <link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
17
+ {% include head-custom.html %}
18
+ </head>
19
+ <body>
20
+ <a id="skip-to-content" href="#content">Skip to the content.</a>
21
+
22
+ <header class="page-header" role="banner">
23
+ <h1 class="project-name">
24
+ <img src='https://yohasebe.com/rsyntaxtree/img/rsyntaxtree.png' style='height: 1.355555em; vertical-align: text-bottom;' />
25
+ {{ page.title | default: site.title | default: site.github.repository_name }}
26
+ </h1>
27
+ <h2 class="project-tagline">{{ page.description | default: site.description | default: site.github.project_tagline }}</h2>
28
+ <a href="https://yohasebe.com/rsyntaxtree" class="btn">Web Interface</a>
29
+ <a href="{{site.url}}/rsyntaxtree/documentation" class="btn">Documentation</a>
30
+ <a href="{{site.url}}/rsyntaxtree/examples" class="btn">Example Gallery</a>
31
+ <a href="https://github.com/yohasebe/rsyntaxtree" class="btn">GitHub Repo</a>
32
+ </header>
33
+
34
+ <main id="content" class="main-content" role="main">
35
+ {{ content }}
36
+
37
+ <footer class="site-footer" style='border-top-width: 0; text-align: center;'>
38
+ <div> <span class="site-footer-credits">© Yoichiro HASEBE 2009-2022</span></div>
39
+ {% include social_media_links.html %}
40
+ </footer>
41
+ </main>
42
+ </body>
43
+ </html>
@@ -0,0 +1,25 @@
1
+ ---
2
+ ---
3
+ @import "{{ site.theme }}";
4
+
5
+ div.grid {
6
+ display: grid;
7
+ grid-template-columns: 1fr 1fr;
8
+ }
9
+
10
+ @media only screen and (max-width: 768px) {
11
+ div.grid {
12
+ display: block;
13
+ }
14
+ }
15
+
16
+ h3 {
17
+ border-bottom: 1px solid lightgray;
18
+ margin-top: 1em;
19
+ margin-bottom: 1em;
20
+ padding-bottom: 0.5em;
21
+ }
22
+
23
+ a i {
24
+ margin: 5px;
25
+ }
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
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
Binary file