rsyntaxtree 1.2.0 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/.tags +84 -0
- data/Rakefile +14 -4
- data/bin/rsyntaxtree +4 -2
- data/docs/_examples/000.md +2 -1
- data/docs/_examples/001.md +2 -1
- data/docs/_examples/002.md +2 -1
- data/docs/_examples/003.md +2 -1
- data/docs/_examples/004.md +2 -1
- data/docs/_examples/005.md +2 -1
- data/docs/_examples/006.md +2 -1
- data/docs/_examples/007.md +2 -1
- data/docs/_examples/008.md +2 -1
- data/docs/_examples/009.md +2 -1
- data/docs/_examples/010.md +2 -1
- data/docs/_examples/011.md +2 -1
- data/docs/_examples/012.md +2 -1
- data/docs/_examples/013.md +2 -1
- data/docs/_examples/014.md +2 -1
- data/docs/_examples/015.md +2 -1
- data/docs/_examples/016.md +2 -1
- data/docs/_examples/017.md +2 -1
- data/docs/_examples/018.md +2 -1
- data/docs/_examples/019.md +2 -1
- data/docs/_examples/020.md +2 -1
- data/docs/_examples/021.md +2 -1
- data/docs/_examples/022.md +2 -1
- data/docs/_examples/023.md +2 -1
- data/docs/_examples/024.md +2 -1
- data/docs/_examples/025.md +2 -1
- data/docs/_examples/026.md +2 -1
- data/docs/_examples/027.md +2 -1
- data/docs/_examples/028.md +2 -1
- data/docs/_examples/029.md +2 -1
- data/docs/_examples/030.md +4 -3
- data/docs/_examples/031.md +2 -1
- data/docs/_examples/032.md +7 -5
- data/docs/_examples/033.md +16 -17
- data/docs/_examples/034.md +3 -2
- data/docs/_examples/035.md +35 -0
- data/docs/_examples/036.md +18 -0
- data/docs/_examples/037.md +18 -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/svg/000.svg +44 -38
- data/docs/assets/svg/001.svg +24 -18
- data/docs/assets/svg/002.svg +36 -30
- data/docs/assets/svg/003.svg +28 -22
- data/docs/assets/svg/004.svg +37 -31
- data/docs/assets/svg/005.svg +19 -13
- data/docs/assets/svg/006.svg +23 -17
- data/docs/assets/svg/007.svg +30 -24
- data/docs/assets/svg/008.svg +34 -28
- data/docs/assets/svg/009.svg +31 -25
- data/docs/assets/svg/010.svg +57 -51
- data/docs/assets/svg/011.svg +26 -20
- data/docs/assets/svg/012.svg +29 -23
- data/docs/assets/svg/013.svg +124 -118
- data/docs/assets/svg/014.svg +95 -89
- data/docs/assets/svg/015.svg +37 -31
- data/docs/assets/svg/016.svg +200 -194
- data/docs/assets/svg/017.svg +40 -34
- data/docs/assets/svg/018.svg +42 -36
- data/docs/assets/svg/019.svg +184 -178
- data/docs/assets/svg/020.svg +64 -58
- data/docs/assets/svg/021.svg +41 -35
- data/docs/assets/svg/022.svg +69 -63
- data/docs/assets/svg/023.svg +40 -34
- data/docs/assets/svg/024.svg +22 -16
- data/docs/assets/svg/025.svg +124 -118
- data/docs/assets/svg/026.svg +16 -10
- data/docs/assets/svg/027.svg +46 -40
- data/docs/assets/svg/028.svg +26 -20
- data/docs/assets/svg/029.svg +94 -88
- data/docs/assets/svg/030.svg +51 -45
- data/docs/assets/svg/031.svg +14 -8
- data/docs/assets/svg/032.svg +68 -49
- data/docs/assets/svg/033.svg +62 -55
- data/docs/assets/svg/034.svg +66 -60
- data/docs/assets/svg/035.svg +82 -0
- data/docs/assets/svg/036.svg +50 -0
- data/docs/assets/svg/037.svg +88 -0
- data/docs/documentation.md +4 -4
- data/docs/documentation_ja.md +10 -6
- data/docs/examples.html +1 -1
- data/lib/rsyntaxtree/base_graph.rb +29 -14
- data/lib/rsyntaxtree/element.rb +6 -11
- data/lib/rsyntaxtree/svg_graph.rb +52 -45
- data/lib/rsyntaxtree/version.rb +1 -1
- data/lib/rsyntaxtree.rb +13 -3
- data/test/example_verify_test.rb +13 -3
- metadata +12 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6d1143b257140ffb6fc35165c454b2e1ac8e9276663e1d596c8b98bc20d7ac49
|
|
4
|
+
data.tar.gz: 1726213e8b04e5b6cd868021db0aa2344f4edab7444052694e9dde82f0395bff
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 805df85ddc9feeace479d1bcb98ba21f7724536f58f7db6daeef7e84acc3c01b0ff75fa04d0c72014dacf796636b955f96b0cf7150146f19ab88f0d5be3bcc26
|
|
7
|
+
data.tar.gz: cc9339c86cc2f94f80262aad651cb5c53656e34a952deaff9357fccd0adc6e19822bff017c2f5cd80081cd5cfbed3d250920cefefeee47353c4edfb1334aae67
|
data/.rubocop.yml
CHANGED
data/.tags
CHANGED
|
@@ -227,6 +227,7 @@
|
|
|
227
227
|
Animal ontology docs/_site/examples.html /^ <h2 id="category-formal-concept-analysis"><b>Formal Concept Analysis<\/b><\/h2><h3>Animal on/;" j
|
|
228
228
|
Arithmetic parser docs/_site/examples.html /^ <div><a href="#examples">🔝<\/a><\/div><h3>Arithmetic parser<\/h3>$/;" j
|
|
229
229
|
Author README.md /^## Author$/;" s
|
|
230
|
+
BaseGraph lib/rsyntaxtree/base_graph.rb /^ class BaseGraph$/;" c class:RSyntaxTree
|
|
230
231
|
BaseGraph lib/rsyntaxtree/base_graph.rb /^ class BaseGraph$/;" c module:RSyntaxTree
|
|
231
232
|
Basic Usage docs/_site/documentation.html /^<h3 id="basic-usage">Basic Usage<\/h3>$/;" j
|
|
232
233
|
Basic Usage docs/documentation.md /^### Basic Usage$/;" S chapter:Documentation
|
|
@@ -252,7 +253,9 @@ Draw Paths between Nodes (experimental) docs/documentation.md /^### Draw Paths b
|
|
|
252
253
|
ETYPE_LEAF lib/rsyntaxtree.rb /^ETYPE_LEAF = 2$/;" C
|
|
253
254
|
ETYPE_LEAF lib/rsyntaxtree/base_graph.rb /^ ETYPE_LEAF == target.type &&$/;" C method:RSyntaxTree.BaseGraph.calculate_height
|
|
254
255
|
ETYPE_NODE lib/rsyntaxtree.rb /^ETYPE_NODE = 1$/;" C
|
|
256
|
+
Element lib/rsyntaxtree/element.rb /^ class Element$/;" c class:RSyntaxTree
|
|
255
257
|
Element lib/rsyntaxtree/element.rb /^ class Element$/;" c module:RSyntaxTree
|
|
258
|
+
ElementList lib/rsyntaxtree/elementlist.rb /^ class ElementList$/;" c class:RSyntaxTree
|
|
256
259
|
ElementList lib/rsyntaxtree/elementlist.rb /^ class ElementList$/;" c module:RSyntaxTree
|
|
257
260
|
Escape Special Characters docs/_site/documentation.html /^<h3 id="escape-special-characters">Escape Special Characters<\/h3>$/;" j
|
|
258
261
|
Escape Special Characters docs/documentation.md /^### Escape Special Characters$/;" S chapter:Documentation
|
|
@@ -296,6 +299,7 @@ Phonology docs/_site/examples.html /^ <h2 id="category-phonology"><b>Phonolog
|
|
|
296
299
|
Phonology sample docs/_site/examples.html /^ <h2 id="category-phonology"><b>Phonology<\/b><\/h2><h3>Phonology sample<\/h3>$/;" j
|
|
297
300
|
Pragmatics docs/_site/examples.html /^ <h2 id="category-pragmatics"><b>Pragmatics<\/b><\/h2><h3>Types of meaning<\/h3>$/;" i
|
|
298
301
|
Programming language parser docs/_site/examples.html /^ <h2 id="category-computer-science"><b>Computer Science<\/b><\/h2><h3>Programming language pa/;" j
|
|
302
|
+
RSGenerator lib/rsyntaxtree.rb /^ class RSGenerator$/;" c class:RSyntaxTree
|
|
299
303
|
RSGenerator lib/rsyntaxtree.rb /^ class RSGenerator$/;" c module:RSyntaxTree
|
|
300
304
|
RSTError lib/rsyntaxtree.rb /^class RSTError < StandardError$/;" c
|
|
301
305
|
RSyntaxTree docs/_site/404.html /^ <\/h1>$/;" h
|
|
@@ -316,10 +320,12 @@ RSyntaxTree | Syntax tree generator made with Ruby docs/_site/documentation_ja.h
|
|
|
316
320
|
RSyntaxTree | Syntax tree generator made with Ruby docs/_site/examples.html /^<title>RSyntaxTree | Syntax tree generator made with Ruby<\/title>$/;" j
|
|
317
321
|
References README.md /^## References$/;" s
|
|
318
322
|
SUBSCRIPT_CONST lib/rsyntaxtree.rb /^SUBSCRIPT_CONST = 0.7$/;" C
|
|
323
|
+
SVGGraph lib/rsyntaxtree/svg_graph.rb /^ class SVGGraph < BaseGraph$/;" c class:RSyntaxTree
|
|
319
324
|
SVGGraph lib/rsyntaxtree/svg_graph.rb /^ class SVGGraph < BaseGraph$/;" c module:RSyntaxTree
|
|
320
325
|
SVG形式を用いる場合 docs/_site/documentation_ja.html /^<h3 id="svg形式を用いる場合">SVG形式を用いる場合<\/h3>$/;" j
|
|
321
326
|
SVG形式を用いる場合 docs/documentation_ja.md /^### SVG形式を用いる場合$/;" S chapter:ドキュメンテーション
|
|
322
327
|
String lib/rsyntaxtree/utils.rb /^class String$/;" c
|
|
328
|
+
StringParser lib/rsyntaxtree/string_parser.rb /^ class StringParser$/;" c class:RSyntaxTree
|
|
323
329
|
StringParser lib/rsyntaxtree/string_parser.rb /^ class StringParser$/;" c module:RSyntaxTree
|
|
324
330
|
Subject-predicate construction docs/_site/examples.html /^ <div><a href="#examples">🔝<\/a><\/div><h3>Subject-predicate construction<\/h3>$/;" j
|
|
325
331
|
Subscript and Superscript docs/documentation.md /^#### Subscript and Superscript$/;" t subsection:Documentation""Font Styles, Text Decoration, and Sub/Superscripts
|
|
@@ -353,6 +359,7 @@ a:hover docs/_site/assets/css/style.css /^a:active, a:hover { outline: 0; }$/;"
|
|
|
353
359
|
a:hover docs/_site/assets/css/style.css /^a:hover { text-decoration: underline; }$/;" s
|
|
354
360
|
abbr[title] docs/_site/assets/css/style.css /^abbr[title] { border-bottom: 1px dotted; }$/;" s
|
|
355
361
|
add lib/rsyntaxtree/elementlist.rb /^ def add(element)$/;" f class:RSyntaxTree.ElementList
|
|
362
|
+
add_child lib/rsyntaxtree/element.rb /^ def add_child(child_id)$/;" f
|
|
356
363
|
add_child lib/rsyntaxtree/element.rb /^ def add_child(child_id)$/;" f class:RSyntaxTree.Element
|
|
357
364
|
all_emoji? lib/rsyntaxtree/utils.rb /^ def all_emoji?$/;" f class:String
|
|
358
365
|
arrow docs/_site/assets/svg/000.svg /^ <marker id="arrow" markerUnits="strokeWidth" markerWidth="11.520000000000001" markerHeight="/;" d
|
|
@@ -493,6 +500,8 @@ arrow docs/assets/svg/033.svg /^ <marker id="arrow" markerUnits="strokeWidth"
|
|
|
493
500
|
arrow docs/assets/svg/033.svg /^ <marker id="arrow" markerUnits="strokeWidth" markerWidth="11.520000000000001" markerHeight="/;" i
|
|
494
501
|
arrow docs/assets/svg/034.svg /^ <marker id="arrow" markerUnits="strokeWidth" markerWidth="13.440000000000001" markerHeight="/;" d
|
|
495
502
|
arrow docs/assets/svg/034.svg /^ <marker id="arrow" markerUnits="strokeWidth" markerWidth="13.440000000000001" markerHeight="/;" i
|
|
503
|
+
arrow docs/assets/svg/035.svg /^ <marker id="arrow" markerUnits="strokeWidth" markerWidth="13.440000000000001" markerHeight="/;" d
|
|
504
|
+
arrow docs/assets/svg/035.svg /^ <marker id="arrow" markerUnits="strokeWidth" markerWidth="13.440000000000001" markerHeight="/;" i
|
|
496
505
|
arrow img/sample.svg /^ <marker id="arrow" markerUnits="strokeWidth" markerWidth="7.823437500000001" markerHeight="7/;" d
|
|
497
506
|
arrow img/sample.svg /^ <marker id="arrow" markerUnits="strokeWidth" markerWidth="7.823437500000001" markerHeight="7/;" i
|
|
498
507
|
arrowSolid docs/assets/svg/000.svg /^ <marker id="arrowSolid" viewBox="0 0 10 10" refX="5" refY="5" markerWidth="7.2" markerHeight/;" d
|
|
@@ -565,6 +574,8 @@ arrowSolid docs/assets/svg/033.svg /^ <marker id="arrowSolid" viewBox="0 0 10
|
|
|
565
574
|
arrowSolid docs/assets/svg/033.svg /^ <marker id="arrowSolid" viewBox="0 0 10 10" refX="5" refY="5" markerWidth="7.2" markerHeight/;" i
|
|
566
575
|
arrowSolid docs/assets/svg/034.svg /^ <marker id="arrowSolid" viewBox="0 0 10 10" refX="5" refY="5" markerWidth="8.4" markerHeight/;" d
|
|
567
576
|
arrowSolid docs/assets/svg/034.svg /^ <marker id="arrowSolid" viewBox="0 0 10 10" refX="5" refY="5" markerWidth="8.4" markerHeight/;" i
|
|
577
|
+
arrowSolid docs/assets/svg/035.svg /^ <marker id="arrowSolid" viewBox="0 0 10 10" refX="5" refY="5" markerWidth="8.4" markerHeight/;" d
|
|
578
|
+
arrowSolid docs/assets/svg/035.svg /^ <marker id="arrowSolid" viewBox="0 0 10 10" refX="5" refY="5" markerWidth="8.4" markerHeight/;" i
|
|
568
579
|
article docs/_site/assets/css/style.css /^article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, s/;" s
|
|
569
580
|
aside docs/_site/assets/css/style.css /^article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, s/;" s
|
|
570
581
|
audio docs/_site/assets/css/style.css /^audio, canvas, progress, video { display: inline-block; \/* 1 *\/ vertical-align: baseline; \/* /;" s
|
|
@@ -580,10 +591,18 @@ button docs/_site/assets/css/style.css /^button, input, optgroup, select, textar
|
|
|
580
591
|
button docs/_site/assets/css/style.css /^button, select { text-transform: none; }$/;" s
|
|
581
592
|
button::-moz-focus-inner docs/_site/assets/css/style.css /^button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }$/;" s
|
|
582
593
|
button[disabled] docs/_site/assets/css/style.css /^button[disabled], html input[disabled] { cursor: default; }$/;" s
|
|
594
|
+
calculate_height lib/rsyntaxtree/base_graph.rb /^ def calculate_height(id = 1)$/;" f
|
|
595
|
+
calculate_height lib/rsyntaxtree/base_graph.rb /^ def calculate_height(id = 1)$/;" f class:RSyntaxTree
|
|
583
596
|
calculate_height lib/rsyntaxtree/base_graph.rb /^ def calculate_height(id = 1)$/;" f class:RSyntaxTree.BaseGraph
|
|
597
|
+
calculate_indent lib/rsyntaxtree/base_graph.rb /^ def calculate_indent$/;" f
|
|
598
|
+
calculate_indent lib/rsyntaxtree/base_graph.rb /^ def calculate_indent$/;" f class:RSyntaxTree
|
|
584
599
|
calculate_indent lib/rsyntaxtree/base_graph.rb /^ def calculate_indent$/;" f class:RSyntaxTree.BaseGraph
|
|
600
|
+
calculate_level lib/rsyntaxtree/base_graph.rb /^ def calculate_level$/;" f class:RSyntaxTree
|
|
585
601
|
calculate_level lib/rsyntaxtree/base_graph.rb /^ def calculate_level$/;" f class:RSyntaxTree.BaseGraph
|
|
602
|
+
calculate_level lib/rsyntaxtree/base_graph.rb /^ def calculate_level$/;" f class:RSyntaxTree.BaseGraph.initialize
|
|
603
|
+
calculate_width lib/rsyntaxtree/base_graph.rb /^ def calculate_width(id = 1)$/;" f class:RSyntaxTree
|
|
586
604
|
calculate_width lib/rsyntaxtree/base_graph.rb /^ def calculate_width(id = 1)$/;" f class:RSyntaxTree.BaseGraph
|
|
605
|
+
calculate_width lib/rsyntaxtree/base_graph.rb /^ def calculate_width(id = 1)$/;" f class:RSyntaxTree.BaseGraph.initialize
|
|
587
606
|
canvas docs/_site/assets/css/style.css /^audio, canvas, progress, video { display: inline-block; \/* 1 *\/ vertical-align: baseline; \/* /;" s
|
|
588
607
|
category-cognitive-grammar docs/_site/examples.html /^ <h2 id="category-cognitive-grammar"><b>Cognitive Grammar<\/b><\/h2><h3>Cognitive Grammar sam/;" I
|
|
589
608
|
category-combinatory-categorial-grammar docs/_site/examples.html /^ <h2 id="category-combinatory-categorial-grammar"><b>Combinatory Categorial Grammar<\/b><\/h2/;" I
|
|
@@ -598,6 +617,8 @@ category-miscellaneous docs/_site/examples.html /^ <h2 id="category-miscellan
|
|
|
598
617
|
category-phonology docs/_site/examples.html /^ <h2 id="category-phonology"><b>Phonology<\/b><\/h2><h3>Phonology sample<\/h3>$/;" I
|
|
599
618
|
category-pragmatics docs/_site/examples.html /^ <h2 id="category-pragmatics"><b>Pragmatics<\/b><\/h2><h3>Types of meaning<\/h3>$/;" I
|
|
600
619
|
category-{{category.name | slugify }} docs/examples.html /^ <h2 id="category-{{category.name | slugify }}"><b>{{ category.name }}<\/b><\/h2>$/;" I
|
|
620
|
+
check_data lib/rsyntaxtree.rb /^ def self.check_data(text)$/;" F class:RSyntaxTree
|
|
621
|
+
check_data lib/rsyntaxtree.rb /^ def self.check_data(text)$/;" F class:RSyntaxTree.RSGenerator
|
|
601
622
|
check_data lib/rsyntaxtree.rb /^ def self.check_data(text)$/;" S class:RSyntaxTree.RSGenerator
|
|
602
623
|
children lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
|
|
603
624
|
children= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
|
|
@@ -617,6 +638,10 @@ content_height lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :typ
|
|
|
617
638
|
content_height= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
|
|
618
639
|
content_width lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
|
|
619
640
|
content_width= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
|
|
641
|
+
copyToClipBoard docs/_site/documentation.html /^ function copyToClipBoard(id){$/;" f
|
|
642
|
+
copyToClipBoard docs/_site/documentation_ja.html /^ function copyToClipBoard(id){$/;" f
|
|
643
|
+
copyToClipBoard docs/_site/examples.html /^ function copyToClipBoard(id){$/;" f
|
|
644
|
+
copyToClipBoard docs/examples.html /^ function copyToClipBoard(id){$/;" f
|
|
620
645
|
data lib/rsyntaxtree/string_parser.rb /^ attr_accessor :data, :elist, :pos, :id, :level$/;" A class:RSyntaxTree.StringParser
|
|
621
646
|
data= lib/rsyntaxtree/string_parser.rb /^ attr_accessor :data, :elist, :pos, :id, :level$/;" A class:RSyntaxTree.StringParser
|
|
622
647
|
details docs/_site/assets/css/style.css /^article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, s/;" s
|
|
@@ -626,14 +651,26 @@ div.grid docs/_site/assets/css/style.css /^div.grid { display: grid; grid-templa
|
|
|
626
651
|
documentation docs/_site/documentation.html /^ <h1 class="no_toc" id="documentation">Documentation<\/h1>$/;" I
|
|
627
652
|
draw-extra-connectors-between-nodes-experimental docs/_site/documentation.html /^<h3 id="draw-extra-connectors-between-nodes-experimental">Draw Extra Connectors between Nodes (e/;" I
|
|
628
653
|
draw-paths-between-nodes-experimental docs/_site/documentation.html /^<h3 id="draw-paths-between-nodes-experimental">Draw Paths between Nodes (experimental)<\/h3>$/;" I
|
|
654
|
+
draw_a_path lib/rsyntaxtree/svg_graph.rb /^ def draw_a_path(s_x, s_y, t_x, t_y, target_arrow = :none)$/;" f class:RSyntaxTree
|
|
629
655
|
draw_a_path lib/rsyntaxtree/svg_graph.rb /^ def draw_a_path(s_x, s_y, t_x, t_y, target_arrow = :none)$/;" f class:RSyntaxTree.SVGGraph
|
|
656
|
+
draw_connector lib/rsyntaxtree/base_graph.rb /^ def draw_connector(id = 1)$/;" f
|
|
657
|
+
draw_connector lib/rsyntaxtree/base_graph.rb /^ def draw_connector(id = 1)$/;" f class:RSyntaxTree
|
|
630
658
|
draw_connector lib/rsyntaxtree/base_graph.rb /^ def draw_connector(id = 1)$/;" f class:RSyntaxTree.BaseGraph
|
|
659
|
+
draw_direct_line lib/rsyntaxtree/svg_graph.rb /^ def draw_direct_line(s_x, s_y, t_x, t_y, s_arrow = false, t_arrow = false)$/;" f class:RSyntaxTree
|
|
631
660
|
draw_direct_line lib/rsyntaxtree/svg_graph.rb /^ def draw_direct_line(s_x, s_y, t_x, t_y, s_arrow = false, t_arrow = false)$/;" f class:RSyntaxTree.SVGGraph
|
|
661
|
+
draw_element lib/rsyntaxtree/svg_graph.rb /^ def draw_element(element)$/;" f
|
|
662
|
+
draw_element lib/rsyntaxtree/svg_graph.rb /^ def draw_element(element)$/;" f class:RSyntaxTree
|
|
632
663
|
draw_element lib/rsyntaxtree/svg_graph.rb /^ def draw_element(element)$/;" f class:RSyntaxTree.SVGGraph
|
|
664
|
+
draw_elements lib/rsyntaxtree/base_graph.rb /^ def draw_elements$/;" f
|
|
665
|
+
draw_elements lib/rsyntaxtree/base_graph.rb /^ def draw_elements$/;" f class:RSyntaxTree
|
|
633
666
|
draw_elements lib/rsyntaxtree/base_graph.rb /^ def draw_elements$/;" f class:RSyntaxTree.BaseGraph
|
|
667
|
+
draw_paths lib/rsyntaxtree/svg_graph.rb /^ def draw_paths$/;" f
|
|
634
668
|
draw_paths lib/rsyntaxtree/svg_graph.rb /^ def draw_paths$/;" f class:RSyntaxTree.SVGGraph
|
|
669
|
+
draw_png lib/rsyntaxtree.rb /^ def draw_png(binary = false)$/;" f class:RSyntaxTree
|
|
635
670
|
draw_png lib/rsyntaxtree.rb /^ def draw_png(binary = false)$/;" f class:RSyntaxTree.RSGenerator
|
|
671
|
+
draw_svg lib/rsyntaxtree.rb /^ def draw_svg$/;" f class:RSyntaxTree
|
|
636
672
|
draw_svg lib/rsyntaxtree.rb /^ def draw_svg$/;" f class:RSyntaxTree.RSGenerator
|
|
673
|
+
draw_tree lib/rsyntaxtree.rb /^ def draw_tree$/;" f class:RSyntaxTree
|
|
637
674
|
draw_tree lib/rsyntaxtree.rb /^ def draw_tree$/;" f class:RSyntaxTree.RSGenerator
|
|
638
675
|
elements lib/rsyntaxtree/elementlist.rb /^ attr_accessor :elements, :iterator$/;" A class:RSyntaxTree.ElementList
|
|
639
676
|
elements= lib/rsyntaxtree/elementlist.rb /^ attr_accessor :elements, :iterator$/;" A class:RSyntaxTree.ElementList
|
|
@@ -657,21 +694,31 @@ fontsize lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :le
|
|
|
657
694
|
fontsize= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
|
|
658
695
|
footer docs/_site/assets/css/style.css /^article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, s/;" s
|
|
659
696
|
generate Rakefile /^task :generate do$/;" t
|
|
697
|
+
generate_connector lib/rsyntaxtree/svg_graph.rb /^ def generate_connector(x1, y1, x2, y2, col, dashed = false, s_arrow = false, t_arrow = false, stroke_width = 1)$/;" f
|
|
698
|
+
generate_connector lib/rsyntaxtree/svg_graph.rb /^ def generate_connector(x1, y1, x2, y2, col, dashed = false, s_arrow = false, t_arrow = false, stroke_width = 1)$/;" f class:draw_paths
|
|
660
699
|
generate_connector lib/rsyntaxtree/svg_graph.rb /^ def generate_connector(x1, y1, x2, y2, col, dashed = false, s_arrow = false, t_arrow = false/;" f class:RSyntaxTree.SVGGraph
|
|
700
|
+
generate_line lib/rsyntaxtree/svg_graph.rb /^ def generate_line(x1, y1, x2, y2, col, dashed = false, arrow = false, stroke_width = 1)$/;" f
|
|
661
701
|
generate_line lib/rsyntaxtree/svg_graph.rb /^ def generate_line(x1, y1, x2, y2, col, dashed = false, arrow = false, stroke_width = 1)$/;" f class:RSyntaxTree.SVGGraph
|
|
662
702
|
get_child_count lib/rsyntaxtree/elementlist.rb /^ def get_child_count(id)$/;" f class:RSyntaxTree.ElementList
|
|
663
703
|
get_children lib/rsyntaxtree/elementlist.rb /^ def get_children(id)$/;" f class:RSyntaxTree.ElementList
|
|
664
704
|
get_element_width lib/rsyntaxtree/elementlist.rb /^ def get_element_width(id)$/;" f class:RSyntaxTree.ElementList
|
|
705
|
+
get_elementlist lib/rsyntaxtree/string_parser.rb /^ def get_elementlist$/;" f
|
|
665
706
|
get_elementlist lib/rsyntaxtree/string_parser.rb /^ def get_elementlist$/;" f class:RSyntaxTree.StringParser
|
|
666
707
|
get_elements lib/rsyntaxtree/elementlist.rb /^ def get_elements$/;" f class:RSyntaxTree.ElementList
|
|
667
708
|
get_first lib/rsyntaxtree/elementlist.rb /^ def get_first$/;" f class:RSyntaxTree.ElementList
|
|
668
709
|
get_id lib/rsyntaxtree/elementlist.rb /^ def get_id(id)$/;" f class:RSyntaxTree.ElementList
|
|
669
710
|
get_indent lib/rsyntaxtree/elementlist.rb /^ def get_indent(id)$/;" f class:RSyntaxTree.ElementList
|
|
711
|
+
get_leftmost lib/rsyntaxtree/base_graph.rb /^ def get_leftmost(id = 1)$/;" f
|
|
712
|
+
get_leftmost lib/rsyntaxtree/base_graph.rb /^ def get_leftmost(id = 1)$/;" f class:RSyntaxTree
|
|
670
713
|
get_leftmost lib/rsyntaxtree/base_graph.rb /^ def get_leftmost(id = 1)$/;" f class:RSyntaxTree.BaseGraph
|
|
671
714
|
get_level_height lib/rsyntaxtree/elementlist.rb /^ def get_level_height$/;" f class:RSyntaxTree.ElementList
|
|
715
|
+
get_metrics lib/rsyntaxtree/utils.rb /^ def get_metrics(text, font, fontsize, font_style, font_weight)$/;" f class:FontMetrics
|
|
672
716
|
get_metrics lib/rsyntaxtree/utils.rb /^ def get_metrics(text, font, fontsize, font_style, font_weight)$/;" f module:FontMetrics
|
|
673
717
|
get_next lib/rsyntaxtree/elementlist.rb /^ def get_next$/;" f class:RSyntaxTree.ElementList
|
|
718
|
+
get_next_token lib/rsyntaxtree/string_parser.rb /^ def get_next_token$/;" f
|
|
674
719
|
get_next_token lib/rsyntaxtree/string_parser.rb /^ def get_next_token$/;" f class:RSyntaxTree.StringParser
|
|
720
|
+
get_rightmost lib/rsyntaxtree/base_graph.rb /^ def get_rightmost(id = 1)$/;" f
|
|
721
|
+
get_rightmost lib/rsyntaxtree/base_graph.rb /^ def get_rightmost(id = 1)$/;" f class:RSyntaxTree
|
|
675
722
|
get_rightmost lib/rsyntaxtree/base_graph.rb /^ def get_rightmost(id = 1)$/;" f class:RSyntaxTree.BaseGraph
|
|
676
723
|
grid docs/assets/css/style.scss /^ div.grid {$/;" c
|
|
677
724
|
grid docs/assets/css/style.scss /^div.grid {$/;" c
|
|
@@ -815,6 +862,8 @@ hatchBlack docs/assets/svg/033.svg /^ <pattern id="hatchBlack" x="10" y="10"
|
|
|
815
862
|
hatchBlack docs/assets/svg/033.svg /^ <pattern id="hatchBlack" x="10" y="10" width="10" height="10" patternUnits="userSpaceOnUse" /;" i
|
|
816
863
|
hatchBlack docs/assets/svg/034.svg /^ <pattern id="hatchBlack" x="10" y="10" width="10" height="10" patternUnits="userSpaceOnUse" /;" d
|
|
817
864
|
hatchBlack docs/assets/svg/034.svg /^ <pattern id="hatchBlack" x="10" y="10" width="10" height="10" patternUnits="userSpaceOnUse" /;" i
|
|
865
|
+
hatchBlack docs/assets/svg/035.svg /^ <pattern id="hatchBlack" x="10" y="10" width="10" height="10" patternUnits="userSpaceOnUse" /;" d
|
|
866
|
+
hatchBlack docs/assets/svg/035.svg /^ <pattern id="hatchBlack" x="10" y="10" width="10" height="10" patternUnits="userSpaceOnUse" /;" i
|
|
818
867
|
hatchForLeaf docs/_site/assets/svg/000.svg /^ <pattern id="hatchForLeaf" x="10" y="10" width="10" height="10" patternUnits="userSpaceOnUse/;" d
|
|
819
868
|
hatchForLeaf docs/_site/assets/svg/000.svg /^ <pattern id="hatchForLeaf" x="10" y="10" width="10" height="10" patternUnits="userSpaceOnUse/;" i
|
|
820
869
|
hatchForLeaf docs/_site/assets/svg/001.svg /^ <pattern id="hatchForLeaf" x="10" y="10" width="10" height="10" patternUnits="userSpaceOnUse/;" d
|
|
@@ -953,6 +1002,8 @@ hatchForLeaf docs/assets/svg/033.svg /^ <pattern id="hatchForLeaf" x="10" y="
|
|
|
953
1002
|
hatchForLeaf docs/assets/svg/033.svg /^ <pattern id="hatchForLeaf" x="10" y="10" width="10" height="10" patternUnits="userSpaceOnUse/;" i
|
|
954
1003
|
hatchForLeaf docs/assets/svg/034.svg /^ <pattern id="hatchForLeaf" x="10" y="10" width="10" height="10" patternUnits="userSpaceOnUse/;" d
|
|
955
1004
|
hatchForLeaf docs/assets/svg/034.svg /^ <pattern id="hatchForLeaf" x="10" y="10" width="10" height="10" patternUnits="userSpaceOnUse/;" i
|
|
1005
|
+
hatchForLeaf docs/assets/svg/035.svg /^ <pattern id="hatchForLeaf" x="10" y="10" width="10" height="10" patternUnits="userSpaceOnUse/;" d
|
|
1006
|
+
hatchForLeaf docs/assets/svg/035.svg /^ <pattern id="hatchForLeaf" x="10" y="10" width="10" height="10" patternUnits="userSpaceOnUse/;" i
|
|
956
1007
|
hatchForNode docs/_site/assets/svg/000.svg /^ <pattern id="hatchForNode" x="10" y="10" width="10" height="10" patternUnits="userSpaceOnUse/;" d
|
|
957
1008
|
hatchForNode docs/_site/assets/svg/000.svg /^ <pattern id="hatchForNode" x="10" y="10" width="10" height="10" patternUnits="userSpaceOnUse/;" i
|
|
958
1009
|
hatchForNode docs/_site/assets/svg/001.svg /^ <pattern id="hatchForNode" x="10" y="10" width="10" height="10" patternUnits="userSpaceOnUse/;" d
|
|
@@ -1091,6 +1142,8 @@ hatchForNode docs/assets/svg/033.svg /^ <pattern id="hatchForNode" x="10" y="
|
|
|
1091
1142
|
hatchForNode docs/assets/svg/033.svg /^ <pattern id="hatchForNode" x="10" y="10" width="10" height="10" patternUnits="userSpaceOnUse/;" i
|
|
1092
1143
|
hatchForNode docs/assets/svg/034.svg /^ <pattern id="hatchForNode" x="10" y="10" width="10" height="10" patternUnits="userSpaceOnUse/;" d
|
|
1093
1144
|
hatchForNode docs/assets/svg/034.svg /^ <pattern id="hatchForNode" x="10" y="10" width="10" height="10" patternUnits="userSpaceOnUse/;" i
|
|
1145
|
+
hatchForNode docs/assets/svg/035.svg /^ <pattern id="hatchForNode" x="10" y="10" width="10" height="10" patternUnits="userSpaceOnUse/;" d
|
|
1146
|
+
hatchForNode docs/assets/svg/035.svg /^ <pattern id="hatchForNode" x="10" y="10" width="10" height="10" patternUnits="userSpaceOnUse/;" i
|
|
1094
1147
|
header docs/_site/assets/css/style.css /^article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, s/;" s
|
|
1095
1148
|
height lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
|
|
1096
1149
|
height lib/rsyntaxtree/svg_graph.rb /^ attr_accessor :width, :height$/;" A class:RSyntaxTree.SVGGraph
|
|
@@ -1138,9 +1191,13 @@ level lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level
|
|
|
1138
1191
|
level lib/rsyntaxtree/string_parser.rb /^ attr_accessor :data, :elist, :pos, :id, :level$/;" A class:RSyntaxTree.StringParser
|
|
1139
1192
|
level= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
|
|
1140
1193
|
level= lib/rsyntaxtree/string_parser.rb /^ attr_accessor :data, :elist, :pos, :id, :level$/;" A class:RSyntaxTree.StringParser
|
|
1194
|
+
line_to_parent lib/rsyntaxtree/svg_graph.rb /^ def line_to_parent(parent, child)$/;" f
|
|
1141
1195
|
line_to_parent lib/rsyntaxtree/svg_graph.rb /^ def line_to_parent(parent, child)$/;" f class:RSyntaxTree.SVGGraph
|
|
1142
1196
|
main docs/_site/assets/css/style.css /^article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, s/;" s
|
|
1197
|
+
make_balance lib/rsyntaxtree/base_graph.rb /^ def make_balance(id = 1)$/;" f
|
|
1198
|
+
make_balance lib/rsyntaxtree/base_graph.rb /^ def make_balance(id = 1)$/;" f class:RSyntaxTree
|
|
1143
1199
|
make_balance lib/rsyntaxtree/base_graph.rb /^ def make_balance(id = 1)$/;" f class:RSyntaxTree.BaseGraph
|
|
1200
|
+
make_tree lib/rsyntaxtree/string_parser.rb /^ def make_tree(parent)$/;" f
|
|
1144
1201
|
make_tree lib/rsyntaxtree/string_parser.rb /^ def make_tree(parent)$/;" f class:RSyntaxTree.StringParser
|
|
1145
1202
|
mark docs/_site/assets/css/style.css /^mark { background: #ff0; color: #000; }$/;" s
|
|
1146
1203
|
markdown-toc docs/_site/documentation.html /^<ol id="markdown-toc">$/;" I
|
|
@@ -1181,6 +1238,8 @@ markdown-toc-水平線 docs/_site/documentation_ja.html /^ <li><a href="#
|
|
|
1181
1238
|
menu docs/_site/assets/css/style.css /^article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, s/;" s
|
|
1182
1239
|
nav docs/_site/assets/css/style.css /^article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, s/;" s
|
|
1183
1240
|
newline docs/_site/documentation.html /^<h4 id="newline">Newline<\/h4>$/;" I
|
|
1241
|
+
node_centering lib/rsyntaxtree/base_graph.rb /^ def node_centering$/;" f
|
|
1242
|
+
node_centering lib/rsyntaxtree/base_graph.rb /^ def node_centering$/;" f class:RSyntaxTree
|
|
1184
1243
|
node_centering lib/rsyntaxtree/base_graph.rb /^ def node_centering$/;" f class:RSyntaxTree.BaseGraph
|
|
1185
1244
|
ns1d8799cc0101 docs/assets/svg/000.svg /^ <svg width="1906.4" height="1571.2000000000003" viewBox="-20, -20, 1926.4, 1591.2000000000003"/;" n uri:http://www.w3.org/2000/svg
|
|
1186
1245
|
ns1d99b24d0101 docs/assets/svg/001.svg /^ <svg width="647.8000000000001" height="770.4" viewBox="-20, -20, 667.8000000000001, 790.4" ver/;" n uri:http://www.w3.org/2000/svg
|
|
@@ -1251,14 +1310,19 @@ ns24bd5d320101 docs/assets/svg/033.svg /^ <svg width="623.2" height="1676.8" vi
|
|
|
1251
1310
|
ns24c1ad540101 docs/_site/assets/svg/032.svg /^ <svg width="623.2" height="1500.8" viewBox="-20, -20, 643.2, 1520.8" version="1.1" xmlns="http/;" n uri:http://www.w3.org/2000/svg
|
|
1252
1311
|
ns24cf75b30101 docs/assets/svg/034.svg /^ <svg width="2715.2" height="1236.8" viewBox="-20, -20, 2735.2, 1256.8" version="1.1" xmlns="ht/;" n uri:http://www.w3.org/2000/svg
|
|
1253
1312
|
ns24d3c5d50101 docs/_site/assets/svg/033.svg /^ <svg width="623.2" height="1676.8" viewBox="-20, -20, 643.2, 1696.8" version="1.1" xmlns="http/;" n uri:http://www.w3.org/2000/svg
|
|
1313
|
+
ns24e18e340101 docs/assets/svg/035.svg /^ <svg width="3031.4" height="1958.4" viewBox="-20, -20, 3051.4, 1978.4" version="1.1" xmlns="ht/;" n uri:http://www.w3.org/2000/svg
|
|
1254
1314
|
ns59d2ecb30101 docs/_site/feed.xml /^<?xml version="1.0" encoding="utf-8"?><feed xmlns="http:\/\/www.w3.org\/2005\/Atom" ><generator /;" n uri:http://www.w3.org/2005/Atom
|
|
1255
1315
|
ns8fb8be310101 img/sample.svg /^ <svg width="1211.119140625" height="941.0" viewBox="-40, -40, 1251.119140625, 981.0" version="/;" n uri:http://www.w3.org/2000/svg
|
|
1256
1316
|
optgroup docs/_site/assets/css/style.css /^button, input, optgroup, select, textarea { color: inherit; \/* 1 *\/ font: inherit; \/* 2 *\/ m/;" s
|
|
1257
1317
|
optgroup docs/_site/assets/css/style.css /^optgroup { font-weight: bold; }$/;" s
|
|
1258
1318
|
parent lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
|
|
1259
1319
|
parent= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
|
|
1320
|
+
parse lib/rsyntaxtree/markup_parser.rb /^ def parse(txt)$/;" f class:Markup
|
|
1260
1321
|
parse lib/rsyntaxtree/markup_parser.rb /^ def parse(txt)$/;" f module:Markup
|
|
1322
|
+
parse lib/rsyntaxtree/string_parser.rb /^ def parse$/;" f
|
|
1261
1323
|
parse lib/rsyntaxtree/string_parser.rb /^ def parse$/;" f class:RSyntaxTree.StringParser
|
|
1324
|
+
parse_list lib/rsyntaxtree/base_graph.rb /^ def parse_list$/;" f
|
|
1325
|
+
parse_list lib/rsyntaxtree/base_graph.rb /^ def parse_list$/;" f class:RSyntaxTree
|
|
1262
1326
|
parse_list lib/rsyntaxtree/base_graph.rb /^ def parse_list$/;" f class:RSyntaxTree.BaseGraph
|
|
1263
1327
|
path lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
|
|
1264
1328
|
path= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
|
|
@@ -1276,7 +1340,9 @@ select docs/_site/assets/css/style.css /^button, select { text-transform: none;
|
|
|
1276
1340
|
set_element_width lib/rsyntaxtree/elementlist.rb /^ def set_element_width(id, width)$/;" f class:RSyntaxTree.ElementList
|
|
1277
1341
|
set_hierarchy lib/rsyntaxtree/elementlist.rb /^ def set_hierarchy$/;" f class:RSyntaxTree.ElementList
|
|
1278
1342
|
set_indent lib/rsyntaxtree/elementlist.rb /^ def set_indent(id, indent)$/;" f class:RSyntaxTree.ElementList
|
|
1343
|
+
set_tspan lib/rsyntaxtree/svg_graph.rb /^ def set_tspan(this_x, this_y, style, decoration, fontstyle, text)$/;" f
|
|
1279
1344
|
set_tspan lib/rsyntaxtree/svg_graph.rb /^ def set_tspan(this_x, this_y, style, decoration, fontstyle, text)$/;" f class:RSyntaxTree.SVGGraph
|
|
1345
|
+
setup lib/rsyntaxtree/element.rb /^ def setup$/;" f class:RSyntaxTree
|
|
1280
1346
|
setup lib/rsyntaxtree/element.rb /^ def setup$/;" f class:RSyntaxTree.Element
|
|
1281
1347
|
setup test/markup_parser_test.rb /^ def setup$/;" f class:MarkupParserTest
|
|
1282
1348
|
skip-to-content docs/_layouts/default.html /^ <a id="skip-to-content" href="#content">Skip to the content.<\/a>$/;" I
|
|
@@ -1305,26 +1371,42 @@ table docs/_site/assets/css/style.css /^table { border-collapse: collapse; borde
|
|
|
1305
1371
|
table-of-contents docs/_site/documentation.html /^<h3 class="no_toc" id="table-of-contents">Table of Contents<\/h3>$/;" I
|
|
1306
1372
|
td docs/_site/assets/css/style.css /^td, th { padding: 0; }$/;" s
|
|
1307
1373
|
template docs/_site/assets/css/style.css /^[hidden], template { display: none; }$/;" s
|
|
1374
|
+
test_evaluator test/markup_parser_test.rb /^ def test_evaluator$/;" f
|
|
1308
1375
|
test_evaluator test/markup_parser_test.rb /^ def test_evaluator$/;" f class:MarkupParserTest
|
|
1376
|
+
test_rule_bold test/markup_parser_test.rb /^ def test_rule_bold$/;" f
|
|
1309
1377
|
test_rule_bold test/markup_parser_test.rb /^ def test_rule_bold$/;" f class:MarkupParserTest
|
|
1378
|
+
test_rule_bolditalic test/markup_parser_test.rb /^ def test_rule_bolditalic$/;" f
|
|
1310
1379
|
test_rule_bolditalic test/markup_parser_test.rb /^ def test_rule_bolditalic$/;" f class:MarkupParserTest
|
|
1380
|
+
test_rule_border test/markup_parser_test.rb /^ def test_rule_border$/;" f
|
|
1311
1381
|
test_rule_border test/markup_parser_test.rb /^ def test_rule_border$/;" f class:MarkupParserTest
|
|
1382
|
+
test_rule_box test/markup_parser_test.rb /^ def test_rule_box$/;" f
|
|
1312
1383
|
test_rule_box test/markup_parser_test.rb /^ def test_rule_box$/;" f class:MarkupParserTest
|
|
1313
1384
|
test_rule_brackets test/markup_parser_test.rb /^ def test_rule_brackets$/;" f class:MarkupParserTest
|
|
1314
1385
|
test_rule_cr test/markup_parser_test.rb /^ def test_rule_cr$/;" f class:MarkupParserTest
|
|
1315
1386
|
test_rule_escaped test/markup_parser_test.rb /^ def test_rule_escaped$/;" f class:MarkupParserTest
|
|
1387
|
+
test_rule_italic test/markup_parser_test.rb /^ def test_rule_italic$/;" f
|
|
1316
1388
|
test_rule_italic test/markup_parser_test.rb /^ def test_rule_italic$/;" f class:MarkupParserTest
|
|
1389
|
+
test_rule_line test/markup_parser_test.rb /^ def test_rule_line$/;" f
|
|
1317
1390
|
test_rule_line test/markup_parser_test.rb /^ def test_rule_line$/;" f class:MarkupParserTest
|
|
1391
|
+
test_rule_lines test/markup_parser_test.rb /^ def test_rule_lines$/;" f
|
|
1318
1392
|
test_rule_lines test/markup_parser_test.rb /^ def test_rule_lines$/;" f class:MarkupParserTest
|
|
1393
|
+
test_rule_linethrough test/markup_parser_test.rb /^ def test_rule_linethrough$/;" f
|
|
1319
1394
|
test_rule_linethrough test/markup_parser_test.rb /^ def test_rule_linethrough$/;" f class:MarkupParserTest
|
|
1395
|
+
test_rule_markup test/markup_parser_test.rb /^ def test_rule_markup$/;" f
|
|
1320
1396
|
test_rule_markup test/markup_parser_test.rb /^ def test_rule_markup$/;" f class:MarkupParserTest
|
|
1397
|
+
test_rule_non_escaped test/markup_parser_test.rb /^ def test_rule_non_escaped$/;" f
|
|
1321
1398
|
test_rule_non_escaped test/markup_parser_test.rb /^ def test_rule_non_escaped$/;" f class:MarkupParserTest
|
|
1399
|
+
test_rule_overline test/markup_parser_test.rb /^ def test_rule_overline$/;" f
|
|
1322
1400
|
test_rule_overline test/markup_parser_test.rb /^ def test_rule_overline$/;" f class:MarkupParserTest
|
|
1323
1401
|
test_rule_path test/markup_parser_test.rb /^ def test_rule_path$/;" f class:MarkupParserTest
|
|
1402
|
+
test_rule_subscript test/markup_parser_test.rb /^ def test_rule_subscript$/;" f
|
|
1324
1403
|
test_rule_subscript test/markup_parser_test.rb /^ def test_rule_subscript$/;" f class:MarkupParserTest
|
|
1404
|
+
test_rule_superscript test/markup_parser_test.rb /^ def test_rule_superscript$/;" f
|
|
1325
1405
|
test_rule_superscript test/markup_parser_test.rb /^ def test_rule_superscript$/;" f class:MarkupParserTest
|
|
1406
|
+
test_rule_text test/markup_parser_test.rb /^ def test_rule_text$/;" f
|
|
1326
1407
|
test_rule_text test/markup_parser_test.rb /^ def test_rule_text$/;" f class:MarkupParserTest
|
|
1327
1408
|
test_rule_triangle test/markup_parser_test.rb /^ def test_rule_triangle$/;" f class:MarkupParserTest
|
|
1409
|
+
test_rule_underline test/markup_parser_test.rb /^ def test_rule_underline$/;" f
|
|
1328
1410
|
test_rule_underline test/markup_parser_test.rb /^ def test_rule_underline$/;" f class:MarkupParserTest
|
|
1329
1411
|
text-000 docs/_site/examples.html /^ <div id="text-000" style='max-height: 600px; overflow-y: auto; margin-bottom: 20px;'/;" I
|
|
1330
1412
|
text-001 docs/_site/examples.html /^ <div id="text-001" style='max-height: 600px; overflow-y: auto; margin-bottom: 20px;'/;" I
|
|
@@ -1366,10 +1448,12 @@ th docs/_site/assets/css/style.css /^td, th { padding: 0; }$/;" s
|
|
|
1366
1448
|
triangle lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
|
|
1367
1449
|
triangle-square-brackets-rectangle docs/_site/documentation.html /^<h3 id="triangle-square-brackets-rectangle">Triangle, Square Brackets, Rectangle<\/h3>$/;" I
|
|
1368
1450
|
triangle= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
|
|
1451
|
+
triangle_to_parent lib/rsyntaxtree/svg_graph.rb /^ def triangle_to_parent(parent, child)$/;" f
|
|
1369
1452
|
triangle_to_parent lib/rsyntaxtree/svg_graph.rb /^ def triangle_to_parent(parent, child)$/;" f class:RSyntaxTree.SVGGraph
|
|
1370
1453
|
type lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
|
|
1371
1454
|
type= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
|
|
1372
1455
|
vP-shell (Japanese) docs/_site/examples.html /^ <div><a href="#examples">🔝<\/a><\/div><h3>vP-shell (Japanese)<\/h3>$/;" j
|
|
1456
|
+
valid lib/rsyntaxtree/string_parser.rb /^ def self.valid?(data)$/;" F class:RSyntaxTree
|
|
1373
1457
|
valid? lib/rsyntaxtree/string_parser.rb /^ def self.valid?(data)$/;" S class:RSyntaxTree.StringParser
|
|
1374
1458
|
vertical_indent lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
|
|
1375
1459
|
vertical_indent= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
|
data/Rakefile
CHANGED
|
@@ -30,10 +30,11 @@ task :generate do
|
|
|
30
30
|
fontsize: 16,
|
|
31
31
|
margin: 1,
|
|
32
32
|
vheight: 2.0,
|
|
33
|
-
color: "
|
|
33
|
+
color: "modern",
|
|
34
34
|
symmetrize: "on",
|
|
35
35
|
transparent: "off",
|
|
36
|
-
polyline: "off"
|
|
36
|
+
polyline: "off",
|
|
37
|
+
hide_default_connectors: "off"
|
|
37
38
|
}
|
|
38
39
|
name = nil
|
|
39
40
|
config.each do |key, value|
|
|
@@ -43,10 +44,19 @@ task :generate do
|
|
|
43
44
|
when "name"
|
|
44
45
|
name = value
|
|
45
46
|
opts[:name] = name
|
|
46
|
-
when "
|
|
47
|
-
opts[:color] = value
|
|
47
|
+
when "color"
|
|
48
|
+
opts[:color] = case value
|
|
49
|
+
when "modern", "on", "true"
|
|
50
|
+
"modern"
|
|
51
|
+
when "traditional"
|
|
52
|
+
"traditional"
|
|
53
|
+
else
|
|
54
|
+
"off"
|
|
55
|
+
end
|
|
48
56
|
when "polyline"
|
|
49
57
|
opts[:polyline] = value
|
|
58
|
+
when "hide_default_connectors"
|
|
59
|
+
opts[:hide_default_connectors] = value
|
|
50
60
|
when "symmetrization"
|
|
51
61
|
opts[:symmetrize] = value
|
|
52
62
|
when "connector"
|
data/bin/rsyntaxtree
CHANGED
|
@@ -24,10 +24,11 @@ opts = Optimist.options do
|
|
|
24
24
|
opt :fontsize, "Size: 8-26", default: 16
|
|
25
25
|
opt :margin, "Margin: 0-10", default: 1
|
|
26
26
|
opt :vheight, "Connector Height: 0.5-5.0", default: 2.0
|
|
27
|
-
opt :color, "Color text and bars:
|
|
27
|
+
opt :color, "Color text and bars: modern, traditional, or off", default: "modern"
|
|
28
28
|
opt :symmetrize, "Generate radically symmetrical, balanced tree: on or off", default: "off"
|
|
29
29
|
opt :transparent, "Make background transparent: on or off", default: "off"
|
|
30
30
|
opt :polyline, "draw polyline connectors: on or off", default: "off"
|
|
31
|
+
opt :hide_default_connectors, "make default connectors transparent: on or off", default: "off"
|
|
31
32
|
end
|
|
32
33
|
|
|
33
34
|
Optimist.die :outdir, "must be an exsting directory path" unless FileTest.directory?(opts[:outdir])
|
|
@@ -36,12 +37,13 @@ Optimist.die :leafstyle, "must be auto, triangle, bar, or nothing" unless /\A(au
|
|
|
36
37
|
Optimist.die :fontstyle, "must be sans, serif, cjk, or mono" unless /\A(sans|serif|cjk|mono)\z/ =~ opts[:fontstyle]
|
|
37
38
|
Optimist.die :font, "must be path to an existing ttf font" if opts[:font] && !File.exist?(opts[:font])
|
|
38
39
|
Optimist.die :fontsize, "must be in the range of 8-26" unless opts[:fontsize] >= 8 && opts[:fontsize] <= 26
|
|
39
|
-
Optimist.die :color, "must be either
|
|
40
|
+
Optimist.die :color, "must be either modern, traditional, or off" unless /\A(modern|traditional|on|off|true|false)\z/ =~ opts[:color]
|
|
40
41
|
Optimist.die :symmetrize, "must be either on or off" unless /\A(on|off|true|false)\z/ =~ opts[:symmetrize]
|
|
41
42
|
Optimist.die :margin, "must be in the range of 0-10" if opts[:margin].negative? || opts[:margin] > 10
|
|
42
43
|
Optimist.die :vheight, "must be in the range of 0.5-5.0" if opts[:vheight] < 0.5 || opts[:vheight] > 5.0
|
|
43
44
|
Optimist.die :transparent, "must be either on or off" unless /\A(on|off|true|false)\z/ =~ opts[:transparent]
|
|
44
45
|
Optimist.die :polyline, "must be either on or off" unless /\A(on|off|true|false)\z/ =~ opts[:polyline]
|
|
46
|
+
Optimist.die :hide_default_connectors, "must be either on or off" unless /\A(on|off|true|false)\z/ =~ opts[:hide_default_connectors]
|
|
45
47
|
|
|
46
48
|
string_opts = {}
|
|
47
49
|
opts.each do |key, value|
|
data/docs/_examples/000.md
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: "000"
|
|
3
3
|
caption: "RSyntaxTree basic example"
|
|
4
|
-
|
|
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 Sans Mono"
|
|
10
11
|
reference:
|
|
11
12
|
---
|
data/docs/_examples/001.md
CHANGED
data/docs/_examples/002.md
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: "002"
|
|
3
3
|
caption: "Minimalistic syntree"
|
|
4
|
-
|
|
4
|
+
color: "off"
|
|
5
5
|
category: "Generative 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: "Chomsky 1995: 50"
|
|
11
12
|
---
|
data/docs/_examples/003.md
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: "003"
|
|
3
3
|
caption: "Minimalistic syntree"
|
|
4
|
-
|
|
4
|
+
color: "off"
|
|
5
5
|
category: "Generative 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: "Chomsky 1995: 62"
|
|
11
12
|
---
|
data/docs/_examples/004.md
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: "004"
|
|
3
3
|
caption: "Minimalistic syntree"
|
|
4
|
-
|
|
4
|
+
color: "off"
|
|
5
5
|
category: "Generative 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: "Chomsky 1995: 180"
|
|
11
12
|
---
|
data/docs/_examples/005.md
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: "005"
|
|
3
3
|
caption: "Minimalistic syntree"
|
|
4
|
-
|
|
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: "Chomsky 1995: 355"
|
|
11
12
|
---
|
data/docs/_examples/006.md
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: "006"
|
|
3
3
|
caption: "Minimalistic syntree"
|
|
4
|
-
|
|
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: "Chomsky 1995: 369"
|
|
11
12
|
---
|
data/docs/_examples/007.md
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: "007"
|
|
3
3
|
caption: "X-bar model (with Japanese labels)"
|
|
4
|
-
|
|
4
|
+
color: "off"
|
|
5
5
|
category: "Generative Grammar"
|
|
6
6
|
polyline: "off"
|
|
7
7
|
symmetrization: "off"
|
|
8
8
|
connector: "bar"
|
|
9
|
+
hide_default_connectors: "off"
|
|
9
10
|
font: "Noto Serif"
|
|
10
11
|
reference:
|
|
11
12
|
---
|
data/docs/_examples/008.md
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: "008"
|
|
3
3
|
caption: "vP-shell (Japanese)"
|
|
4
|
-
|
|
4
|
+
color: "off"
|
|
5
5
|
category: "Generative 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
|
---
|
data/docs/_examples/009.md
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: "009"
|
|
3
3
|
caption: "Non-binary tree sample"
|
|
4
|
-
|
|
4
|
+
color: "off"
|
|
5
5
|
category: "Generative 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
|
---
|
data/docs/_examples/010.md
CHANGED
data/docs/_examples/011.md
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: "011"
|
|
3
3
|
caption: "CCG sample"
|
|
4
|
-
|
|
4
|
+
color: "off"
|
|
5
5
|
category: "Combinatory Categorial 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
|
---
|
data/docs/_examples/012.md
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: "012"
|
|
3
3
|
caption: "CCG sample"
|
|
4
|
-
|
|
4
|
+
color: "off"
|
|
5
5
|
category: "Combinatory Categorial 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
|
---
|
data/docs/_examples/013.md
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: "013"
|
|
3
3
|
caption: "HPSG sample"
|
|
4
|
-
|
|
4
|
+
color: "off"
|
|
5
5
|
category: "Head-Driven Phrase Structure Grammar"
|
|
6
6
|
polyline: "off"
|
|
7
7
|
symmetrization: "off"
|
|
8
8
|
connector: "bar"
|
|
9
|
+
hide_default_connectors: "off"
|
|
9
10
|
font: "Noto Serif"
|
|
10
11
|
reference:
|
|
11
12
|
---
|