rsyntaxtree 1.2.7 → 1.2.9
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/.tags +65 -0
- data/README.md +3 -2
- data/bin/rsyntaxtree +7 -5
- data/dev/generate_examples.rb +1 -13
- data/docs/_examples/000.md +1 -1
- data/docs/_examples/001.md +1 -1
- data/docs/_examples/002.md +1 -1
- data/docs/_examples/003.md +1 -1
- data/docs/_examples/004.md +1 -1
- data/docs/_examples/005.md +1 -1
- data/docs/_examples/006.md +1 -1
- data/docs/_examples/007.md +1 -1
- data/docs/_examples/008.md +1 -1
- data/docs/_examples/009.md +1 -1
- data/docs/_examples/010.md +1 -1
- data/docs/_examples/011.md +1 -1
- data/docs/_examples/012.md +1 -1
- data/docs/_examples/014.md +1 -1
- data/docs/_examples/015.md +1 -1
- data/docs/_examples/016.md +1 -1
- data/docs/_examples/019.md +1 -1
- data/docs/_examples/021.md +1 -1
- data/docs/_examples/024.md +1 -1
- data/docs/_examples/025.md +1 -1
- data/docs/_examples/026.md +1 -1
- data/docs/_examples/027.md +1 -1
- data/docs/_examples/030.md +1 -1
- data/docs/_examples/031.md +1 -1
- data/docs/_examples/032.md +1 -1
- data/docs/_examples/034.md +1 -1
- data/docs/_examples/035.md +2 -2
- data/docs/_examples/040.md +1 -1
- data/docs/_examples/042.md +1 -1
- data/docs/_examples/047.md +21 -0
- data/docs/_includes/box_and_circle_table.html +24 -0
- data/docs/assets/css/style.scss +6 -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/img/038.png +0 -0
- data/docs/assets/img/039.png +0 -0
- data/docs/assets/img/040.png +0 -0
- data/docs/assets/img/041.png +0 -0
- data/docs/assets/img/042.png +0 -0
- data/docs/assets/img/043.png +0 -0
- data/docs/assets/img/044.png +0 -0
- data/docs/assets/img/045.png +0 -0
- data/docs/assets/img/046.png +0 -0
- data/docs/assets/img/047.png +0 -0
- data/docs/assets/img/elements/arrow_both.png +0 -0
- data/docs/assets/img/elements/arrow_both_bold.png +0 -0
- data/docs/assets/img/elements/arrow_left.png +0 -0
- data/docs/assets/img/elements/arrow_left_bold.png +0 -0
- data/docs/assets/img/elements/arrow_right.png +0 -0
- data/docs/assets/img/elements/arrow_right_bold.png +0 -0
- data/docs/assets/svg/000.svg +38 -38
- data/docs/assets/svg/001.svg +19 -19
- data/docs/assets/svg/002.svg +37 -37
- data/docs/assets/svg/003.svg +29 -29
- data/docs/assets/svg/004.svg +41 -41
- data/docs/assets/svg/005.svg +21 -21
- data/docs/assets/svg/006.svg +25 -25
- data/docs/assets/svg/007.svg +31 -31
- data/docs/assets/svg/008.svg +35 -35
- data/docs/assets/svg/009.svg +35 -35
- data/docs/assets/svg/010.svg +52 -52
- data/docs/assets/svg/011.svg +30 -30
- data/docs/assets/svg/012.svg +35 -35
- data/docs/assets/svg/013.svg +142 -142
- data/docs/assets/svg/014.svg +119 -119
- data/docs/assets/svg/015.svg +33 -33
- data/docs/assets/svg/016.svg +523 -523
- data/docs/assets/svg/017.svg +49 -49
- data/docs/assets/svg/018.svg +37 -37
- data/docs/assets/svg/019.svg +172 -172
- data/docs/assets/svg/020.svg +62 -62
- data/docs/assets/svg/021.svg +73 -73
- data/docs/assets/svg/022.svg +109 -109
- data/docs/assets/svg/023.svg +73 -73
- data/docs/assets/svg/024.svg +23 -23
- data/docs/assets/svg/025.svg +147 -147
- data/docs/assets/svg/026.svg +23 -23
- data/docs/assets/svg/027.svg +64 -64
- data/docs/assets/svg/028.svg +21 -21
- data/docs/assets/svg/029.svg +79 -79
- data/docs/assets/svg/030.svg +41 -41
- data/docs/assets/svg/031.svg +15 -15
- data/docs/assets/svg/032.svg +52 -52
- data/docs/assets/svg/033.svg +43 -43
- data/docs/assets/svg/034.svg +49 -49
- data/docs/assets/svg/035.svg +39 -39
- data/docs/assets/svg/036.svg +20 -20
- data/docs/assets/svg/037.svg +33 -33
- data/docs/assets/svg/038.svg +45 -45
- data/docs/assets/svg/039.svg +7 -7
- data/docs/assets/svg/040.svg +98 -98
- data/docs/assets/svg/041.svg +55 -55
- data/docs/assets/svg/042.svg +15 -15
- data/docs/assets/svg/043.svg +187 -187
- data/docs/assets/svg/044.svg +9 -9
- data/docs/assets/svg/045.svg +66 -66
- data/docs/assets/svg/046.svg +647 -647
- data/docs/assets/svg/047.svg +62 -0
- data/docs/documentation.md +1 -1
- data/docs/documentation_ja.md +1 -1
- data/docs/examples.html +5 -4
- data/lib/rsyntaxtree/base_graph.rb +2 -1
- data/lib/rsyntaxtree/svg_graph.rb +10 -10
- data/lib/rsyntaxtree/version.rb +1 -1
- data/lib/rsyntaxtree.rb +38 -24
- data/test/example_verify_test.rb +1 -13
- 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: d78df407469b10cbb458f10770336a7c0e0ec0b6dc593b11725f378dac1f6bab
|
|
4
|
+
data.tar.gz: 1da5c7ce6ae2403edd9deb7cb85ffaf00f90662ee8d8ab9c8f35f09a5103e20e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7549edbaf67e870a56846f69c9bc3d35bb8e2737bcfc8109733b52fc9977a120e2329190b10ef532417e8364a0d3d91e33125be55716674699aa36a9ae50e530
|
|
7
|
+
data.tar.gz: f84fef34b4c8d06fbb2005403391051b2c97c4cd82c6a6175b1aa4fa788a81e297083e4eade870124a6b1001d4a6d89b46e69c0209fe1a00db55f450db2eb679
|
data/.tags
CHANGED
|
@@ -228,6 +228,7 @@ Animal ontology docs/_site/examples.html /^ <h2 id="category-formal-concept-a
|
|
|
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
230
|
BLINE_SCALING lib/rsyntaxtree.rb /^BLINE_SCALING = 5$/;" C
|
|
231
|
+
BaseGraph lib/rsyntaxtree/base_graph.rb /^ class BaseGraph$/;" c class:RSyntaxTree
|
|
231
232
|
BaseGraph lib/rsyntaxtree/base_graph.rb /^ class BaseGraph$/;" c module:RSyntaxTree
|
|
232
233
|
Basic Usage docs/_site/documentation.html /^<h3 id="basic-usage">Basic Usage<\/h3>$/;" j
|
|
233
234
|
Basic Usage docs/documentation.md /^### Basic Usage$/;" S chapter:Documentation
|
|
@@ -253,7 +254,9 @@ Draw Paths between Nodes (experimental) docs/documentation.md /^### Draw Paths b
|
|
|
253
254
|
ETYPE_LEAF lib/rsyntaxtree.rb /^ETYPE_LEAF = 2$/;" C
|
|
254
255
|
ETYPE_LEAF lib/rsyntaxtree/base_graph.rb /^ ETYPE_LEAF == target.type && parent.children.size == 1$/;" C method:RSyntaxTree.BaseGraph.calculate_height
|
|
255
256
|
ETYPE_NODE lib/rsyntaxtree.rb /^ETYPE_NODE = 1$/;" C
|
|
257
|
+
Element lib/rsyntaxtree/element.rb /^ class Element$/;" c class:RSyntaxTree
|
|
256
258
|
Element lib/rsyntaxtree/element.rb /^ class Element$/;" c module:RSyntaxTree
|
|
259
|
+
ElementList lib/rsyntaxtree/elementlist.rb /^ class ElementList$/;" c class:RSyntaxTree
|
|
257
260
|
ElementList lib/rsyntaxtree/elementlist.rb /^ class ElementList$/;" c module:RSyntaxTree
|
|
258
261
|
Escape Special Characters docs/_site/documentation.html /^<h3 id="escape-special-characters">Escape Special Characters<\/h3>$/;" j
|
|
259
262
|
Escape Special Characters docs/documentation.md /^### Escape Special Characters$/;" S chapter:Documentation
|
|
@@ -298,6 +301,7 @@ Phonology docs/_site/examples.html /^ <h2 id="category-phonology"><b>Phonolog
|
|
|
298
301
|
Phonology sample docs/_site/examples.html /^ <h2 id="category-phonology"><b>Phonology<\/b><\/h2><h3>Phonology sample<\/h3>$/;" j
|
|
299
302
|
Pragmatics docs/_site/examples.html /^ <h2 id="category-pragmatics"><b>Pragmatics<\/b><\/h2><h3>Types of meaning<\/h3>$/;" i
|
|
300
303
|
Programming language parser docs/_site/examples.html /^ <h2 id="category-computer-science"><b>Computer Science<\/b><\/h2><h3>Programming language pa/;" j
|
|
304
|
+
RSGenerator lib/rsyntaxtree.rb /^ class RSGenerator$/;" c class:RSyntaxTree
|
|
301
305
|
RSGenerator lib/rsyntaxtree.rb /^ class RSGenerator$/;" c module:RSyntaxTree
|
|
302
306
|
RSTError lib/rsyntaxtree.rb /^class RSTError < StandardError$/;" c
|
|
303
307
|
RSyntaxTree docs/_site/404.html /^ <\/h1>$/;" h
|
|
@@ -318,10 +322,12 @@ RSyntaxTree | Syntax tree generator made with Ruby docs/_site/documentation_ja.h
|
|
|
318
322
|
RSyntaxTree | Syntax tree generator made with Ruby docs/_site/examples.html /^<title>RSyntaxTree | Syntax tree generator made with Ruby<\/title>$/;" j
|
|
319
323
|
References README.md /^## References$/;" s
|
|
320
324
|
SUBSCRIPT_CONST lib/rsyntaxtree.rb /^SUBSCRIPT_CONST = 0.7$/;" C
|
|
325
|
+
SVGGraph lib/rsyntaxtree/svg_graph.rb /^ class SVGGraph < BaseGraph$/;" c class:RSyntaxTree
|
|
321
326
|
SVGGraph lib/rsyntaxtree/svg_graph.rb /^ class SVGGraph < BaseGraph$/;" c module:RSyntaxTree
|
|
322
327
|
SVG形式を用いる場合 docs/_site/documentation_ja.html /^<h3 id="svg形式を用いる場合">SVG形式を用いる場合<\/h3>$/;" j
|
|
323
328
|
SVG形式を用いる場合 docs/documentation_ja.md /^### SVG形式を用いる場合$/;" S chapter:ドキュメンテーション
|
|
324
329
|
String lib/rsyntaxtree/utils.rb /^class String$/;" c
|
|
330
|
+
StringParser lib/rsyntaxtree/string_parser.rb /^ class StringParser$/;" c class:RSyntaxTree
|
|
325
331
|
StringParser lib/rsyntaxtree/string_parser.rb /^ class StringParser$/;" c module:RSyntaxTree
|
|
326
332
|
Subject-predicate construction docs/_site/examples.html /^ <div><a href="#examples">🔝<\/a><\/div><h3>Subject-predicate construction<\/h3>$/;" j
|
|
327
333
|
Subscript and Superscript docs/documentation.md /^#### Subscript and Superscript$/;" t subsection:Documentation""Font Styles, Text Decoration, and Sub/Superscripts
|
|
@@ -355,6 +361,7 @@ a:hover docs/_site/assets/css/style.css /^a:active, a:hover { outline: 0; }$/;"
|
|
|
355
361
|
a:hover docs/_site/assets/css/style.css /^a:hover { text-decoration: underline; }$/;" s
|
|
356
362
|
abbr[title] docs/_site/assets/css/style.css /^abbr[title] { border-bottom: 1px dotted; }$/;" s
|
|
357
363
|
add lib/rsyntaxtree/elementlist.rb /^ def add(element)$/;" f class:RSyntaxTree.ElementList
|
|
364
|
+
add_child lib/rsyntaxtree/element.rb /^ def add_child(child_id)$/;" f
|
|
358
365
|
add_child lib/rsyntaxtree/element.rb /^ def add_child(child_id)$/;" f class:RSyntaxTree.Element
|
|
359
366
|
all_emoji? lib/rsyntaxtree/utils.rb /^ def all_emoji?$/;" f class:String
|
|
360
367
|
arrow docs/_site/assets/svg/000.svg /^ <marker id="arrow" markerUnits="strokeWidth" markerWidth="11.520000000000001" markerHeight="/;" d
|
|
@@ -818,9 +825,13 @@ button docs/_site/assets/css/style.css /^button, input, optgroup, select, textar
|
|
|
818
825
|
button docs/_site/assets/css/style.css /^button, select { text-transform: none; }$/;" s
|
|
819
826
|
button::-moz-focus-inner docs/_site/assets/css/style.css /^button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }$/;" s
|
|
820
827
|
button[disabled] docs/_site/assets/css/style.css /^button[disabled], html input[disabled] { cursor: default; }$/;" s
|
|
828
|
+
calculate_height lib/rsyntaxtree/base_graph.rb /^ def calculate_height(id = 1)$/;" f
|
|
821
829
|
calculate_height lib/rsyntaxtree/base_graph.rb /^ def calculate_height(id = 1)$/;" f class:RSyntaxTree.BaseGraph
|
|
830
|
+
calculate_indent lib/rsyntaxtree/base_graph.rb /^ def calculate_indent$/;" f
|
|
822
831
|
calculate_indent lib/rsyntaxtree/base_graph.rb /^ def calculate_indent$/;" f class:RSyntaxTree.BaseGraph
|
|
832
|
+
calculate_level lib/rsyntaxtree/base_graph.rb /^ def calculate_level$/;" f class:RSyntaxTree
|
|
823
833
|
calculate_level lib/rsyntaxtree/base_graph.rb /^ def calculate_level$/;" f class:RSyntaxTree.BaseGraph
|
|
834
|
+
calculate_width lib/rsyntaxtree/base_graph.rb /^ def calculate_width(id = 1)$/;" f class:RSyntaxTree
|
|
824
835
|
calculate_width lib/rsyntaxtree/base_graph.rb /^ def calculate_width(id = 1)$/;" f class:RSyntaxTree.BaseGraph
|
|
825
836
|
canvas docs/_site/assets/css/style.css /^audio, canvas, progress, video { display: inline-block; \/* 1 *\/ vertical-align: baseline; \/* /;" s
|
|
826
837
|
category-cognitive-grammar docs/_site/examples.html /^ <h2 id="category-cognitive-grammar"><b>Cognitive Grammar<\/b><\/h2><h3>Cognitive Grammar sam/;" I
|
|
@@ -836,6 +847,7 @@ category-miscellaneous docs/_site/examples.html /^ <h2 id="category-miscellan
|
|
|
836
847
|
category-phonology docs/_site/examples.html /^ <h2 id="category-phonology"><b>Phonology<\/b><\/h2><h3>Phonology sample<\/h3>$/;" I
|
|
837
848
|
category-pragmatics docs/_site/examples.html /^ <h2 id="category-pragmatics"><b>Pragmatics<\/b><\/h2><h3>Types of meaning<\/h3>$/;" I
|
|
838
849
|
category-{{category.name | slugify }} docs/examples.html /^ <h2 id="category-{{category.name | slugify }}"><b>{{ category.name }}<\/b><\/h2>$/;" I
|
|
850
|
+
check_data lib/rsyntaxtree.rb /^ def self.check_data(text)$/;" F class:RSyntaxTree
|
|
839
851
|
check_data lib/rsyntaxtree.rb /^ def self.check_data(text)$/;" S module:RSyntaxTree
|
|
840
852
|
children lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
|
|
841
853
|
children= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
|
|
@@ -855,6 +867,10 @@ content_height lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :typ
|
|
|
855
867
|
content_height= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
|
|
856
868
|
content_width lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
|
|
857
869
|
content_width= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
|
|
870
|
+
copyToClipBoard docs/_site/documentation.html /^ function copyToClipBoard(id){$/;" f
|
|
871
|
+
copyToClipBoard docs/_site/documentation_ja.html /^ function copyToClipBoard(id){$/;" f
|
|
872
|
+
copyToClipBoard docs/_site/examples.html /^ function copyToClipBoard(id){$/;" f
|
|
873
|
+
copyToClipBoard docs/examples.html /^ function copyToClipBoard(id){$/;" f
|
|
858
874
|
data lib/rsyntaxtree/string_parser.rb /^ attr_accessor :data, :elist, :pos, :id, :level$/;" A class:RSyntaxTree.StringParser
|
|
859
875
|
data= lib/rsyntaxtree/string_parser.rb /^ attr_accessor :data, :elist, :pos, :id, :level$/;" A class:RSyntaxTree.StringParser
|
|
860
876
|
details docs/_site/assets/css/style.css /^article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, s/;" s
|
|
@@ -867,14 +883,29 @@ documentation docs/_site/documentation.html /^ <h1 class="no_toc" id="docum
|
|
|
867
883
|
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
|
|
868
884
|
draw-paths-between-nodes-experimental docs/_site/documentation.html /^<h3 id="draw-paths-between-nodes-experimental">Draw Paths between Nodes (experimental)<\/h3>$/;" I
|
|
869
885
|
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
|
|
886
|
+
draw_bracket lib/rsyntaxtree/svg_graph.rb /^ def draw_bracket(x1, y1, width, height, col, bline = false)$/;" f
|
|
870
887
|
draw_bracket lib/rsyntaxtree/svg_graph.rb /^ def draw_bracket(x1, y1, width, height, col, bline = false)$/;" f class:RSyntaxTree.SVGGraph
|
|
888
|
+
draw_connector lib/rsyntaxtree/base_graph.rb /^ def draw_connector(id = 1)$/;" f
|
|
871
889
|
draw_connector lib/rsyntaxtree/base_graph.rb /^ def draw_connector(id = 1)$/;" f class:RSyntaxTree.BaseGraph
|
|
890
|
+
draw_element lib/rsyntaxtree/svg_graph.rb /^ def draw_element(element)$/;" f class:RSyntaxTree
|
|
872
891
|
draw_element lib/rsyntaxtree/svg_graph.rb /^ def draw_element(element)$/;" f class:RSyntaxTree.SVGGraph
|
|
892
|
+
draw_elements lib/rsyntaxtree/base_graph.rb /^ def draw_elements$/;" f
|
|
873
893
|
draw_elements lib/rsyntaxtree/base_graph.rb /^ def draw_elements$/;" f class:RSyntaxTree.BaseGraph
|
|
894
|
+
draw_paths lib/rsyntaxtree/svg_graph.rb /^ def draw_paths$/;" f
|
|
874
895
|
draw_paths lib/rsyntaxtree/svg_graph.rb /^ def draw_paths$/;" f class:RSyntaxTree.SVGGraph
|
|
896
|
+
draw_pdf lib/rsyntaxtree.rb /^ def draw_pdf()$/;" f class:RSyntaxTree
|
|
897
|
+
draw_pdf lib/rsyntaxtree.rb /^ def draw_pdf(binary = false)$/;" f class:RSyntaxTree
|
|
898
|
+
draw_pdf lib/rsyntaxtree.rb /^ def draw_pdf(binary = true)$/;" f class:RSyntaxTree
|
|
899
|
+
draw_pdf lib/rsyntaxtree.rb /^ def draw_pdf(filename)$/;" f class:RSyntaxTree
|
|
900
|
+
draw_png lib/rsyntaxtree.rb /^ def draw_png(binary = false)$/;" f class:RSyntaxTree
|
|
875
901
|
draw_png lib/rsyntaxtree.rb /^ def draw_png(binary = false)$/;" f module:RSyntaxTree
|
|
902
|
+
draw_rectangle lib/rsyntaxtree/svg_graph.rb /^ def draw_rectangle(x1, y1, width, height, col, bline = false)$/;" f
|
|
876
903
|
draw_rectangle lib/rsyntaxtree/svg_graph.rb /^ def draw_rectangle(x1, y1, width, height, col, bline = false)$/;" f class:RSyntaxTree.SVGGraph
|
|
904
|
+
draw_svg lib/rsyntaxtree.rb /^ def draw_svg$/;" f class:RSyntaxTree
|
|
877
905
|
draw_svg lib/rsyntaxtree.rb /^ def draw_svg$/;" f module:RSyntaxTree
|
|
906
|
+
draw_svg lib/rsyntaxtree.rb /^ def draw_svg(filename)$/;" f class:RSyntaxTree
|
|
907
|
+
draw_tree lib/rsyntaxtree.rb /^ def draw_tree # currently not used$/;" f class:RSyntaxTree
|
|
908
|
+
draw_tree lib/rsyntaxtree.rb /^ def draw_tree$/;" f class:RSyntaxTree
|
|
878
909
|
draw_tree lib/rsyntaxtree.rb /^ def draw_tree$/;" f module:RSyntaxTree
|
|
879
910
|
elements lib/rsyntaxtree/elementlist.rb /^ attr_accessor :elements, :iterator$/;" A class:RSyntaxTree.ElementList
|
|
880
911
|
elements= lib/rsyntaxtree/elementlist.rb /^ attr_accessor :elements, :iterator$/;" A class:RSyntaxTree.ElementList
|
|
@@ -899,20 +930,27 @@ fontsize= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :l
|
|
|
899
930
|
footer docs/_site/assets/css/style.css /^article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, s/;" s
|
|
900
931
|
generate Rakefile /^task :generate do$/;" t
|
|
901
932
|
generate_connectors lib/rsyntaxtree/svg_graph.rb /^ def generate_connectors(x1, y1, x2, y2, col, dashed = false, s_arrow = false, t_arrow = fals/;" f class:RSyntaxTree.SVGGraph
|
|
933
|
+
generate_connectors lib/rsyntaxtree/svg_graph.rb /^ def generate_connectors(x1, y1, x2, y2, col, dashed = false, s_arrow = false, t_arrow = false, bline = false)$/;" f
|
|
934
|
+
generate_line lib/rsyntaxtree/svg_graph.rb /^ def generate_line(x1, y1, x2, y2, col, dashed = false, arrow = false, bline = false)$/;" f
|
|
902
935
|
generate_line lib/rsyntaxtree/svg_graph.rb /^ def generate_line(x1, y1, x2, y2, col, dashed = false, arrow = false, bline = false)$/;" f class:RSyntaxTree.SVGGraph
|
|
903
936
|
get_child_count lib/rsyntaxtree/elementlist.rb /^ def get_child_count(id)$/;" f class:RSyntaxTree.ElementList
|
|
904
937
|
get_children lib/rsyntaxtree/elementlist.rb /^ def get_children(id)$/;" f class:RSyntaxTree.ElementList
|
|
905
938
|
get_element_width lib/rsyntaxtree/elementlist.rb /^ def get_element_width(id)$/;" f class:RSyntaxTree.ElementList
|
|
939
|
+
get_elementlist lib/rsyntaxtree/string_parser.rb /^ def get_elementlist$/;" f
|
|
906
940
|
get_elementlist lib/rsyntaxtree/string_parser.rb /^ def get_elementlist$/;" f class:RSyntaxTree.StringParser
|
|
907
941
|
get_elements lib/rsyntaxtree/elementlist.rb /^ def get_elements$/;" f class:RSyntaxTree.ElementList
|
|
908
942
|
get_first lib/rsyntaxtree/elementlist.rb /^ def get_first$/;" f class:RSyntaxTree.ElementList
|
|
909
943
|
get_id lib/rsyntaxtree/elementlist.rb /^ def get_id(id)$/;" f class:RSyntaxTree.ElementList
|
|
910
944
|
get_indent lib/rsyntaxtree/elementlist.rb /^ def get_indent(id)$/;" f class:RSyntaxTree.ElementList
|
|
945
|
+
get_leftmost lib/rsyntaxtree/base_graph.rb /^ def get_leftmost(id = 1)$/;" f
|
|
911
946
|
get_leftmost lib/rsyntaxtree/base_graph.rb /^ def get_leftmost(id = 1)$/;" f class:RSyntaxTree.BaseGraph
|
|
912
947
|
get_level_height lib/rsyntaxtree/elementlist.rb /^ def get_level_height$/;" f class:RSyntaxTree.ElementList
|
|
948
|
+
get_metrics lib/rsyntaxtree/utils.rb /^ def get_metrics(text, font, fontsize, font_style, font_weight)$/;" f class:FontMetrics
|
|
913
949
|
get_metrics lib/rsyntaxtree/utils.rb /^ def get_metrics(text, font, fontsize, font_style, font_weight)$/;" f module:FontMetrics
|
|
914
950
|
get_next lib/rsyntaxtree/elementlist.rb /^ def get_next$/;" f class:RSyntaxTree.ElementList
|
|
951
|
+
get_next_token lib/rsyntaxtree/string_parser.rb /^ def get_next_token$/;" f
|
|
915
952
|
get_next_token lib/rsyntaxtree/string_parser.rb /^ def get_next_token$/;" f class:RSyntaxTree.StringParser
|
|
953
|
+
get_rightmost lib/rsyntaxtree/base_graph.rb /^ def get_rightmost(id = 1)$/;" f
|
|
916
954
|
get_rightmost lib/rsyntaxtree/base_graph.rb /^ def get_rightmost(id = 1)$/;" f class:RSyntaxTree.BaseGraph
|
|
917
955
|
grid docs/assets/css/style.scss /^ div.grid {$/;" c
|
|
918
956
|
grid docs/assets/css/style.scss /^div.grid {$/;" c
|
|
@@ -1451,9 +1489,12 @@ level lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level
|
|
|
1451
1489
|
level lib/rsyntaxtree/string_parser.rb /^ attr_accessor :data, :elist, :pos, :id, :level$/;" A class:RSyntaxTree.StringParser
|
|
1452
1490
|
level= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
|
|
1453
1491
|
level= lib/rsyntaxtree/string_parser.rb /^ attr_accessor :data, :elist, :pos, :id, :level$/;" A class:RSyntaxTree.StringParser
|
|
1492
|
+
line_to_parent lib/rsyntaxtree/svg_graph.rb /^ def line_to_parent(parent, child)$/;" f
|
|
1454
1493
|
line_to_parent lib/rsyntaxtree/svg_graph.rb /^ def line_to_parent(parent, child)$/;" f class:RSyntaxTree.SVGGraph
|
|
1455
1494
|
main docs/_site/assets/css/style.css /^article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, s/;" s
|
|
1495
|
+
make_balance lib/rsyntaxtree/base_graph.rb /^ def make_balance(id = 1)$/;" f
|
|
1456
1496
|
make_balance lib/rsyntaxtree/base_graph.rb /^ def make_balance(id = 1)$/;" f class:RSyntaxTree.BaseGraph
|
|
1497
|
+
make_tree lib/rsyntaxtree/string_parser.rb /^ def make_tree(parent)$/;" f
|
|
1457
1498
|
make_tree lib/rsyntaxtree/string_parser.rb /^ def make_tree(parent)$/;" f class:RSyntaxTree.StringParser
|
|
1458
1499
|
mark docs/_site/assets/css/style.css /^mark { background: #ff0; color: #000; }$/;" s
|
|
1459
1500
|
markdown-toc docs/_site/documentation.html /^<ol id="markdown-toc">$/;" I
|
|
@@ -1494,6 +1535,7 @@ markdown-toc-水平線 docs/_site/documentation_ja.html /^ <li><a href="#
|
|
|
1494
1535
|
menu docs/_site/assets/css/style.css /^article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, s/;" s
|
|
1495
1536
|
nav docs/_site/assets/css/style.css /^article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, s/;" s
|
|
1496
1537
|
newline docs/_site/documentation.html /^<h4 id="newline">Newline<\/h4>$/;" I
|
|
1538
|
+
node_centering lib/rsyntaxtree/base_graph.rb /^ def node_centering$/;" f
|
|
1497
1539
|
node_centering lib/rsyntaxtree/base_graph.rb /^ def node_centering$/;" f class:RSyntaxTree.BaseGraph
|
|
1498
1540
|
ns1d8799cc0101 docs/assets/svg/000.svg /^ <svg width="1768.4000000000003" height="1430.0" viewBox="0, 0, 1783.6000000000004, 1452.0" ver/;" n uri:http://www.w3.org/2000/svg
|
|
1499
1541
|
ns1d99b24d0101 docs/assets/svg/001.svg /^ <svg width="624.6" height="673.2" viewBox="0, 0, 641.4, 695.2" version="1.1" xmlns="http:\/\/w/;" n uri:http://www.w3.org/2000/svg
|
|
@@ -1582,8 +1624,11 @@ optgroup docs/_site/assets/css/style.css /^button, input, optgroup, select, text
|
|
|
1582
1624
|
optgroup docs/_site/assets/css/style.css /^optgroup { font-weight: bold; }$/;" s
|
|
1583
1625
|
parent lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
|
|
1584
1626
|
parent= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
|
|
1627
|
+
parse lib/rsyntaxtree/markup_parser.rb /^ def parse(txt)$/;" f class:Markup
|
|
1585
1628
|
parse lib/rsyntaxtree/markup_parser.rb /^ def parse(txt)$/;" f module:Markup
|
|
1629
|
+
parse lib/rsyntaxtree/string_parser.rb /^ def parse$/;" f
|
|
1586
1630
|
parse lib/rsyntaxtree/string_parser.rb /^ def parse$/;" f class:RSyntaxTree.StringParser
|
|
1631
|
+
parse_list lib/rsyntaxtree/base_graph.rb /^ def parse_list$/;" f
|
|
1587
1632
|
parse_list lib/rsyntaxtree/base_graph.rb /^ def parse_list$/;" f class:RSyntaxTree.BaseGraph
|
|
1588
1633
|
path lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
|
|
1589
1634
|
path= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
|
|
@@ -1601,7 +1646,9 @@ select docs/_site/assets/css/style.css /^button, select { text-transform: none;
|
|
|
1601
1646
|
set_element_width lib/rsyntaxtree/elementlist.rb /^ def set_element_width(id, width)$/;" f class:RSyntaxTree.ElementList
|
|
1602
1647
|
set_hierarchy lib/rsyntaxtree/elementlist.rb /^ def set_hierarchy$/;" f class:RSyntaxTree.ElementList
|
|
1603
1648
|
set_indent lib/rsyntaxtree/elementlist.rb /^ def set_indent(id, indent)$/;" f class:RSyntaxTree.ElementList
|
|
1649
|
+
set_tspan lib/rsyntaxtree/svg_graph.rb /^ def set_tspan(this_x, this_y, style, decoration, fontstyle, text)$/;" f
|
|
1604
1650
|
set_tspan lib/rsyntaxtree/svg_graph.rb /^ def set_tspan(this_x, this_y, style, decoration, fontstyle, text)$/;" f class:RSyntaxTree.SVGGraph
|
|
1651
|
+
setup lib/rsyntaxtree/element.rb /^ def setup$/;" f class:RSyntaxTree
|
|
1605
1652
|
setup lib/rsyntaxtree/element.rb /^ def setup$/;" f class:RSyntaxTree.Element
|
|
1606
1653
|
setup test/markup_parser_test.rb /^ def setup$/;" f class:MarkupParserTest
|
|
1607
1654
|
skip-to-content docs/_layouts/default.html /^ <a id="skip-to-content" href="#content">Skip to the content.<\/a>$/;" I
|
|
@@ -1630,26 +1677,42 @@ table docs/_site/assets/css/style.css /^table { border-collapse: collapse; borde
|
|
|
1630
1677
|
table-of-contents docs/_site/documentation.html /^<h3 class="no_toc" id="table-of-contents">Table of Contents<\/h3>$/;" I
|
|
1631
1678
|
td docs/_site/assets/css/style.css /^td, th { padding: 0; }$/;" s
|
|
1632
1679
|
template docs/_site/assets/css/style.css /^[hidden], template { display: none; }$/;" s
|
|
1680
|
+
test_evaluator test/markup_parser_test.rb /^ def test_evaluator$/;" f
|
|
1633
1681
|
test_evaluator test/markup_parser_test.rb /^ def test_evaluator$/;" f class:MarkupParserTest
|
|
1682
|
+
test_rule_bold test/markup_parser_test.rb /^ def test_rule_bold$/;" f
|
|
1634
1683
|
test_rule_bold test/markup_parser_test.rb /^ def test_rule_bold$/;" f class:MarkupParserTest
|
|
1684
|
+
test_rule_bolditalic test/markup_parser_test.rb /^ def test_rule_bolditalic$/;" f
|
|
1635
1685
|
test_rule_bolditalic test/markup_parser_test.rb /^ def test_rule_bolditalic$/;" f class:MarkupParserTest
|
|
1686
|
+
test_rule_border test/markup_parser_test.rb /^ def test_rule_border$/;" f
|
|
1636
1687
|
test_rule_border test/markup_parser_test.rb /^ def test_rule_border$/;" f class:MarkupParserTest
|
|
1688
|
+
test_rule_box test/markup_parser_test.rb /^ def test_rule_box$/;" f
|
|
1637
1689
|
test_rule_box test/markup_parser_test.rb /^ def test_rule_box$/;" f class:MarkupParserTest
|
|
1638
1690
|
test_rule_brackets test/markup_parser_test.rb /^ def test_rule_brackets$/;" f class:MarkupParserTest
|
|
1639
1691
|
test_rule_cr test/markup_parser_test.rb /^ def test_rule_cr$/;" f class:MarkupParserTest
|
|
1640
1692
|
test_rule_escaped test/markup_parser_test.rb /^ def test_rule_escaped$/;" f class:MarkupParserTest
|
|
1693
|
+
test_rule_italic test/markup_parser_test.rb /^ def test_rule_italic$/;" f
|
|
1641
1694
|
test_rule_italic test/markup_parser_test.rb /^ def test_rule_italic$/;" f class:MarkupParserTest
|
|
1695
|
+
test_rule_line test/markup_parser_test.rb /^ def test_rule_line$/;" f
|
|
1642
1696
|
test_rule_line test/markup_parser_test.rb /^ def test_rule_line$/;" f class:MarkupParserTest
|
|
1697
|
+
test_rule_lines test/markup_parser_test.rb /^ def test_rule_lines$/;" f
|
|
1643
1698
|
test_rule_lines test/markup_parser_test.rb /^ def test_rule_lines$/;" f class:MarkupParserTest
|
|
1699
|
+
test_rule_linethrough test/markup_parser_test.rb /^ def test_rule_linethrough$/;" f
|
|
1644
1700
|
test_rule_linethrough test/markup_parser_test.rb /^ def test_rule_linethrough$/;" f class:MarkupParserTest
|
|
1701
|
+
test_rule_markup test/markup_parser_test.rb /^ def test_rule_markup$/;" f
|
|
1645
1702
|
test_rule_markup test/markup_parser_test.rb /^ def test_rule_markup$/;" f class:MarkupParserTest
|
|
1703
|
+
test_rule_non_escaped test/markup_parser_test.rb /^ def test_rule_non_escaped$/;" f
|
|
1646
1704
|
test_rule_non_escaped test/markup_parser_test.rb /^ def test_rule_non_escaped$/;" f class:MarkupParserTest
|
|
1705
|
+
test_rule_overline test/markup_parser_test.rb /^ def test_rule_overline$/;" f
|
|
1647
1706
|
test_rule_overline test/markup_parser_test.rb /^ def test_rule_overline$/;" f class:MarkupParserTest
|
|
1648
1707
|
test_rule_path test/markup_parser_test.rb /^ def test_rule_path$/;" f class:MarkupParserTest
|
|
1708
|
+
test_rule_subscript test/markup_parser_test.rb /^ def test_rule_subscript$/;" f
|
|
1649
1709
|
test_rule_subscript test/markup_parser_test.rb /^ def test_rule_subscript$/;" f class:MarkupParserTest
|
|
1710
|
+
test_rule_superscript test/markup_parser_test.rb /^ def test_rule_superscript$/;" f
|
|
1650
1711
|
test_rule_superscript test/markup_parser_test.rb /^ def test_rule_superscript$/;" f class:MarkupParserTest
|
|
1712
|
+
test_rule_text test/markup_parser_test.rb /^ def test_rule_text$/;" f
|
|
1651
1713
|
test_rule_text test/markup_parser_test.rb /^ def test_rule_text$/;" f class:MarkupParserTest
|
|
1652
1714
|
test_rule_triangle test/markup_parser_test.rb /^ def test_rule_triangle$/;" f class:MarkupParserTest
|
|
1715
|
+
test_rule_underline test/markup_parser_test.rb /^ def test_rule_underline$/;" f
|
|
1653
1716
|
test_rule_underline test/markup_parser_test.rb /^ def test_rule_underline$/;" f class:MarkupParserTest
|
|
1654
1717
|
text-000 docs/_site/examples.html /^ <div id="text-000" style='max-height: 600px; overflow-y: auto; margin-bottom: 20px;'/;" I
|
|
1655
1718
|
text-001 docs/_site/examples.html /^ <div id="text-001" style='max-height: 600px; overflow-y: auto; margin-bottom: 20px;'/;" I
|
|
@@ -1691,10 +1754,12 @@ th docs/_site/assets/css/style.css /^td, th { padding: 0; }$/;" s
|
|
|
1691
1754
|
triangle lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
|
|
1692
1755
|
triangle-square-brackets-rectangle docs/_site/documentation.html /^<h3 id="triangle-square-brackets-rectangle">Triangle, Square Brackets, Rectangle<\/h3>$/;" I
|
|
1693
1756
|
triangle= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
|
|
1757
|
+
triangle_to_parent lib/rsyntaxtree/svg_graph.rb /^ def triangle_to_parent(parent, child)$/;" f
|
|
1694
1758
|
triangle_to_parent lib/rsyntaxtree/svg_graph.rb /^ def triangle_to_parent(parent, child)$/;" f class:RSyntaxTree.SVGGraph
|
|
1695
1759
|
type lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
|
|
1696
1760
|
type= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
|
|
1697
1761
|
vP-shell (Japanese) docs/_site/examples.html /^ <div><a href="#examples">🔝<\/a><\/div><h3>vP-shell (Japanese)<\/h3>$/;" j
|
|
1762
|
+
valid lib/rsyntaxtree/string_parser.rb /^ def self.valid?(data)$/;" F class:RSyntaxTree
|
|
1698
1763
|
valid? lib/rsyntaxtree/string_parser.rb /^ def self.valid?(data)$/;" S class:RSyntaxTree.StringParser
|
|
1699
1764
|
vertical_indent lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
|
|
1700
1765
|
vertical_indent= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
|
data/README.md
CHANGED
|
@@ -29,6 +29,7 @@ See [RSyntaxTree Example Gallery](https://yohasebe.github.io/rsyntaxtree/example
|
|
|
29
29
|
- Construction Grammar
|
|
30
30
|
- Pragmatics
|
|
31
31
|
- Phonology
|
|
32
|
+
- etc.
|
|
32
33
|
|
|
33
34
|
**NOTE**: Some tree structures in the example gallery are experimental in the sense that they are not drawn according to conventions of the field.
|
|
34
35
|
|
|
@@ -82,9 +83,9 @@ where [options] are:
|
|
|
82
83
|
-y, --symmetrize=<s> Generate radically symmetrical, balanced tree: on or off (default: off)
|
|
83
84
|
-r, --transparent=<s> Make background transparent: on or off (default: off)
|
|
84
85
|
-p, --polyline=<s> draw polyline connectors: on or off (default: off)
|
|
85
|
-
-
|
|
86
|
+
-d, --hide-default-connectors=<s> make default connectors transparent: on or off (default: off)
|
|
87
|
+
-h, --help This is a custom help message
|
|
86
88
|
-e, --version Print version and exit
|
|
87
|
-
--help Show this message
|
|
88
89
|
```
|
|
89
90
|
|
|
90
91
|
See the [documentation](https://yohasebe.github.io/rsyntaxtree/documentation) for more detailed info about the syntax.
|
data/bin/rsyntaxtree
CHANGED
|
@@ -17,7 +17,7 @@ opts = Optimist.options do
|
|
|
17
17
|
BANNER
|
|
18
18
|
|
|
19
19
|
opt :outdir, "Output directory", default: "./"
|
|
20
|
-
opt :format, "Output format: png,
|
|
20
|
+
opt :format, "Output format: png, pdf, or svg", default: "png"
|
|
21
21
|
opt :leafstyle, "visual style of tree leaves: auto, triangle, bar, or nothing", default: "auto"
|
|
22
22
|
opt :fontstyle, "Font style (available when ttf font is specified): sans, serif, cjk, mono", default: "sans"
|
|
23
23
|
opt :font, "Path to a ttf font used to generate tree (optional)", type: String
|
|
@@ -33,7 +33,7 @@ opts = Optimist.options do
|
|
|
33
33
|
end
|
|
34
34
|
|
|
35
35
|
Optimist.die :outdir, "must be an exsting directory path" unless FileTest.directory?(opts[:outdir])
|
|
36
|
-
Optimist.die :format, "must be png,
|
|
36
|
+
Optimist.die :format, "must be png, pdf, or svg" unless /\A(png|jpg|gif|pdf|svg)\z/ =~ opts[:format]
|
|
37
37
|
Optimist.die :leafstyle, "must be auto, triangle, bar, or nothing" unless /\A(auto|triangle|bar|nothing)\z/ =~ opts[:leafstyle]
|
|
38
38
|
Optimist.die :fontstyle, "must be sans, serif, cjk, or mono" unless /\A(sans|serif|cjk|mono)\z/ =~ opts[:fontstyle]
|
|
39
39
|
Optimist.die :font, "must be path to an existing ttf font" if opts[:font] && !File.exist?(opts[:font])
|
|
@@ -70,11 +70,13 @@ begin
|
|
|
70
70
|
ext = string_opts[:format]
|
|
71
71
|
filepath = File.expand_path(string_opts[:outdir]) + "/syntree." + ext
|
|
72
72
|
case ext
|
|
73
|
-
when "
|
|
74
|
-
|
|
73
|
+
when "pdf"
|
|
74
|
+
outfile = File.new(filepath, "wb")
|
|
75
|
+
outfile.write rsg.draw_pdf
|
|
76
|
+
outfile.close
|
|
75
77
|
when "png"
|
|
76
78
|
outfile = File.new(filepath, "wb")
|
|
77
|
-
outfile.write rsg.
|
|
79
|
+
outfile.write rsg.draw_png
|
|
78
80
|
outfile.close
|
|
79
81
|
when "svg"
|
|
80
82
|
outfile = File.new(filepath, "wb")
|
data/dev/generate_examples.rb
CHANGED
|
@@ -24,19 +24,7 @@ Dir.glob("*.md", base: examples_dir).map do |md|
|
|
|
24
24
|
logfile.puts "Error detected in #{md}"
|
|
25
25
|
end
|
|
26
26
|
|
|
27
|
-
opts =
|
|
28
|
-
format: "png",
|
|
29
|
-
leafstyle: "auto",
|
|
30
|
-
fontstyle: "sans",
|
|
31
|
-
fontsize: 16,
|
|
32
|
-
linewidth: 1,
|
|
33
|
-
vheight: 2.0,
|
|
34
|
-
color: "modern",
|
|
35
|
-
symmetrize: "on",
|
|
36
|
-
transparent: "off",
|
|
37
|
-
polyline: "off",
|
|
38
|
-
hide_default_connectors: "off"
|
|
39
|
-
}
|
|
27
|
+
opts = DEFAULT_OPTS.dup
|
|
40
28
|
name = nil
|
|
41
29
|
config.each do |key, value|
|
|
42
30
|
next if value.to_s == ""
|
data/docs/_examples/000.md
CHANGED
data/docs/_examples/001.md
CHANGED
data/docs/_examples/002.md
CHANGED
data/docs/_examples/003.md
CHANGED
data/docs/_examples/004.md
CHANGED
data/docs/_examples/005.md
CHANGED
data/docs/_examples/006.md
CHANGED
data/docs/_examples/007.md
CHANGED
data/docs/_examples/008.md
CHANGED
data/docs/_examples/009.md
CHANGED
data/docs/_examples/010.md
CHANGED
data/docs/_examples/011.md
CHANGED
data/docs/_examples/012.md
CHANGED
data/docs/_examples/014.md
CHANGED
data/docs/_examples/015.md
CHANGED
data/docs/_examples/016.md
CHANGED
data/docs/_examples/019.md
CHANGED
data/docs/_examples/021.md
CHANGED
data/docs/_examples/024.md
CHANGED
data/docs/_examples/025.md
CHANGED
data/docs/_examples/026.md
CHANGED
data/docs/_examples/027.md
CHANGED
data/docs/_examples/030.md
CHANGED
data/docs/_examples/031.md
CHANGED
data/docs/_examples/032.md
CHANGED
data/docs/_examples/034.md
CHANGED
data/docs/_examples/035.md
CHANGED
|
@@ -6,8 +6,8 @@ category: "Construction Grammar"
|
|
|
6
6
|
polyline: "off"
|
|
7
7
|
symmetrization: "on"
|
|
8
8
|
connector: "auto"
|
|
9
|
-
|
|
10
|
-
linewidth: "
|
|
9
|
+
$onnector_height: "3"
|
|
10
|
+
linewidth: "2"
|
|
11
11
|
hide_default_connectors: "on"
|
|
12
12
|
font: "Noto Serif"
|
|
13
13
|
reference: "Goldberg 1995: 109"
|