rsyntaxtree 1.0.8 → 1.1.1

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.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +77 -0
  3. data/.solargraph.yml +22 -0
  4. data/.tags +238 -10
  5. data/Gemfile +10 -5
  6. data/README.md +3 -2
  7. data/Rakefile +5 -2
  8. data/bin/rsyntaxtree +42 -50
  9. data/docs/Gemfile +3 -1
  10. data/docs/_layouts/default.html +1 -1
  11. data/docs/assets/svg/001.svg +39 -0
  12. data/docs/assets/svg/002.svg +65 -0
  13. data/docs/assets/svg/003.svg +54 -0
  14. data/docs/assets/svg/004.svg +68 -0
  15. data/docs/assets/svg/005.svg +41 -0
  16. data/docs/assets/svg/006.svg +47 -0
  17. data/docs/assets/svg/007.svg +55 -0
  18. data/docs/assets/svg/008.svg +63 -0
  19. data/docs/assets/svg/009.svg +61 -0
  20. data/docs/assets/svg/010.svg +85 -0
  21. data/docs/assets/svg/011.svg +49 -0
  22. data/docs/assets/svg/012.svg +55 -0
  23. data/docs/assets/svg/013.svg +203 -0
  24. data/docs/assets/svg/014.svg +188 -0
  25. data/docs/assets/svg/015.svg +60 -0
  26. data/docs/assets/svg/016.svg +801 -0
  27. data/docs/assets/svg/017.svg +77 -0
  28. data/docs/assets/svg/018.svg +66 -0
  29. data/docs/assets/svg/019.svg +256 -0
  30. data/docs/assets/svg/020.svg +99 -0
  31. data/lib/rsyntaxtree/base_graph.rb +260 -264
  32. data/lib/rsyntaxtree/element.rb +167 -179
  33. data/lib/rsyntaxtree/elementlist.rb +105 -124
  34. data/lib/rsyntaxtree/markup_parser.rb +82 -93
  35. data/lib/rsyntaxtree/string_parser.rb +221 -237
  36. data/lib/rsyntaxtree/svg_graph.rb +158 -197
  37. data/lib/rsyntaxtree/utils.rb +59 -63
  38. data/lib/rsyntaxtree/version.rb +3 -2
  39. data/lib/rsyntaxtree.rb +173 -177
  40. data/rsyntaxtree.gemspec +12 -10
  41. data/test/example_verify_test.rb +96 -0
  42. data/test/markup_parser_test.rb +3 -2
  43. metadata +54 -17
data/.tags CHANGED
@@ -1,14 +1,92 @@
1
+ !_TAG_EXTRA_DESCRIPTION anonymous /Include tags for non-named objects like lambda/
2
+ !_TAG_EXTRA_DESCRIPTION fileScope /Include tags of file scope/
3
+ !_TAG_EXTRA_DESCRIPTION pseudo /Include pseudo tags/
4
+ !_TAG_EXTRA_DESCRIPTION subparser /Include tags generated by subparsers/
5
+ !_TAG_FIELD_DESCRIPTION epoch /the last modified time of the input file (only for F\/file kind tag)/
6
+ !_TAG_FIELD_DESCRIPTION file /File-restricted scoping/
7
+ !_TAG_FIELD_DESCRIPTION input /input file/
8
+ !_TAG_FIELD_DESCRIPTION name /tag name/
9
+ !_TAG_FIELD_DESCRIPTION pattern /pattern/
10
+ !_TAG_FIELD_DESCRIPTION typeref /Type and name of a variable or typedef/
11
+ !_TAG_FIELD_DESCRIPTION!Ruby mixin /how the class or module is mixed in (mixin:HOW:MODULE)/
12
+ !_TAG_FIELD_DESCRIPTION!XML uri /uri associated with name prefix/
1
13
  !_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/
2
14
  !_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/
15
+ !_TAG_KIND_DESCRIPTION!CSS c,class /classes/
16
+ !_TAG_KIND_DESCRIPTION!CSS i,id /identities/
17
+ !_TAG_KIND_DESCRIPTION!CSS s,selector /selectors/
18
+ !_TAG_KIND_DESCRIPTION!GemSpec g,gem /gems/
19
+ !_TAG_KIND_DESCRIPTION!HTML C,stylesheet /stylesheets/
20
+ !_TAG_KIND_DESCRIPTION!HTML I,id /identifiers/
21
+ !_TAG_KIND_DESCRIPTION!HTML J,script /scripts/
22
+ !_TAG_KIND_DESCRIPTION!HTML a,anchor /named anchors/
23
+ !_TAG_KIND_DESCRIPTION!HTML c,class /classes/
24
+ !_TAG_KIND_DESCRIPTION!HTML h,heading1 /H1 headings/
25
+ !_TAG_KIND_DESCRIPTION!HTML i,heading2 /H2 headings/
26
+ !_TAG_KIND_DESCRIPTION!HTML j,heading3 /H3 headings/
27
+ !_TAG_KIND_DESCRIPTION!HTML t,title /titles/
28
+ !_TAG_KIND_DESCRIPTION!Markdown S,subsection /level 2 sections/
29
+ !_TAG_KIND_DESCRIPTION!Markdown T,l4subsection /level 4 sections/
30
+ !_TAG_KIND_DESCRIPTION!Markdown c,chapter /chapters/
31
+ !_TAG_KIND_DESCRIPTION!Markdown n,footnote /footnotes/
32
+ !_TAG_KIND_DESCRIPTION!Markdown s,section /sections/
33
+ !_TAG_KIND_DESCRIPTION!Markdown t,subsubsection /level 3 sections/
34
+ !_TAG_KIND_DESCRIPTION!Markdown u,l5subsection /level 5 sections/
35
+ !_TAG_KIND_DESCRIPTION!Rake d,directory /directory tasks/
36
+ !_TAG_KIND_DESCRIPTION!Rake f,File /file tasks/
37
+ !_TAG_KIND_DESCRIPTION!Rake m,multitask /multi tasks/
38
+ !_TAG_KIND_DESCRIPTION!Rake n,namespace /namespaces/
39
+ !_TAG_KIND_DESCRIPTION!Rake t,task /tasks/
40
+ !_TAG_KIND_DESCRIPTION!Rake x,xtask /tasks defined with special constructor/
41
+ !_TAG_KIND_DESCRIPTION!Ruby A,accessor /accessors/
42
+ !_TAG_KIND_DESCRIPTION!Ruby C,constant /constants/
43
+ !_TAG_KIND_DESCRIPTION!Ruby L,library /libraries/
44
+ !_TAG_KIND_DESCRIPTION!Ruby S,singletonMethod /singleton methods/
45
+ !_TAG_KIND_DESCRIPTION!Ruby a,alias /aliases/
46
+ !_TAG_KIND_DESCRIPTION!Ruby c,class /classes/
47
+ !_TAG_KIND_DESCRIPTION!Ruby f,method /methods/
48
+ !_TAG_KIND_DESCRIPTION!Ruby m,module /modules/
49
+ !_TAG_KIND_DESCRIPTION!SCSS P,placeholder /placeholder classes/
50
+ !_TAG_KIND_DESCRIPTION!SCSS c,class /classes/
51
+ !_TAG_KIND_DESCRIPTION!SCSS f,function /functions/
52
+ !_TAG_KIND_DESCRIPTION!SCSS i,id /identities/
53
+ !_TAG_KIND_DESCRIPTION!SCSS m,mixin /mixins/
54
+ !_TAG_KIND_DESCRIPTION!SCSS v,variable /variables/
55
+ !_TAG_KIND_DESCRIPTION!SCSS z,parameter /function parameters/
56
+ !_TAG_KIND_DESCRIPTION!SVG d,def /ids in defs tags/
57
+ !_TAG_KIND_DESCRIPTION!XML i,id /id attributes/
58
+ !_TAG_KIND_DESCRIPTION!XML n,nsprefix /namespace prefixes/
59
+ !_TAG_KIND_DESCRIPTION!XML r,root /root elements/
60
+ !_TAG_KIND_DESCRIPTION!Yaml a,anchor /anchors/
3
61
  !_TAG_OUTPUT_EXCMD mixed /number, pattern, mixed, or combineV2/
4
62
  !_TAG_OUTPUT_FILESEP slash /slash or backslash/
5
63
  !_TAG_OUTPUT_MODE u-ctags /u-ctags or e-ctags/
64
+ !_TAG_OUTPUT_VERSION 0.0 /current.age/
65
+ !_TAG_PARSER_VERSION!CSS 0.0 /current.age/
66
+ !_TAG_PARSER_VERSION!GemSpec 0.0 /current.age/
67
+ !_TAG_PARSER_VERSION!HTML 0.0 /current.age/
68
+ !_TAG_PARSER_VERSION!Markdown 0.0 /current.age/
69
+ !_TAG_PARSER_VERSION!Rake 0.0 /current.age/
70
+ !_TAG_PARSER_VERSION!Ruby 0.0 /current.age/
71
+ !_TAG_PARSER_VERSION!SCSS 0.0 /current.age/
72
+ !_TAG_PARSER_VERSION!SVG 0.0 /current.age/
73
+ !_TAG_PARSER_VERSION!XML 0.0 /current.age/
74
+ !_TAG_PARSER_VERSION!Yaml 0.0 /current.age/
6
75
  !_TAG_PATTERN_LENGTH_LIMIT 96 /0 for no limit/
7
76
  !_TAG_PROC_CWD /Users/yohasebe/Library/CloudStorage/Dropbox/code/rsyntaxtree/ //
8
77
  !_TAG_PROGRAM_AUTHOR Universal Ctags Team //
9
78
  !_TAG_PROGRAM_NAME Universal Ctags /Derived from Exuberant Ctags/
10
79
  !_TAG_PROGRAM_URL https://ctags.io/ /official site/
11
- !_TAG_PROGRAM_VERSION 5.9.0 /08fd0c4d/
80
+ !_TAG_PROGRAM_VERSION 6.0.0 /c39ff7a7/
81
+ !_TAG_ROLE_DESCRIPTION!GemSpec!gem develDep /specifying development dependency/
82
+ !_TAG_ROLE_DESCRIPTION!GemSpec!gem runtimeDep /specifying runtime dependency/
83
+ !_TAG_ROLE_DESCRIPTION!HTML!class attribute /assigned as attributes/
84
+ !_TAG_ROLE_DESCRIPTION!HTML!script extFile /referenced as external files/
85
+ !_TAG_ROLE_DESCRIPTION!HTML!stylesheet extFile /referenced as external files/
86
+ !_TAG_ROLE_DESCRIPTION!Ruby!library loaded /loaded by "load" method/
87
+ !_TAG_ROLE_DESCRIPTION!Ruby!library required /loaded by "require" method/
88
+ !_TAG_ROLE_DESCRIPTION!Ruby!library requiredRel /loaded by "require_relative" method/
89
+ !_TAG_ROLE_DESCRIPTION!Yaml!anchor alias /alias/
12
90
  #skip-to-content docs/_site/assets/css/style.css /^#skip-to-content { height: 1px; width: 1px; position: absolute; overflow: hidden; top: -10px; }$/;" i
13
91
  #skip-to-content:focus docs/_site/assets/css/style.css /^#skip-to-content:focus { position: fixed; top: 10px; left: 10px; height: auto; width: auto; back/;" i
14
92
  * docs/_site/assets/css/style.css /^* { box-sizing: border-box; }$/;" s
@@ -147,7 +225,9 @@
147
225
  404 docs/404.html /^ <h1>404<\/h1>$/;" h
148
226
  404 docs/_site/404.html /^ <h1>404<\/h1>$/;" h
149
227
  Author README.md /^### Author$/;" S
228
+ BaseGraph lib/rsyntaxtree/base_graph.rb /^ class BaseGraph$/;" c class:RSyntaxTree
150
229
  BaseGraph lib/rsyntaxtree/base_graph.rb /^ class BaseGraph$/;" c module:RSyntaxTree
230
+ BaseGraph lib/rsyntaxtree/base_graph_new.rb /^ class BaseGraph$/;" c class:RSyntaxTree
151
231
  Basic Usage docs/_site/documentation.html /^<h3 id="basic-usage">Basic Usage<\/h3>$/;" j
152
232
  Basic Usage docs/documentation.md /^### Basic Usage$/;" S chapter:Documentation
153
233
  Box and Circle docs/documentation.md /^#### Box and Circle$/;" t subsection:Documentation""Font Styles, Text Decoration, and Sub/Superscripts
@@ -162,14 +242,18 @@ Draw Paths between Nodes (experimental) docs/_site/documentation.html /^<h3 id="
162
242
  Draw Paths between Nodes (experimental) docs/documentation.md /^### Draw Paths between Nodes (experimental)$/;" S chapter:Documentation
163
243
  ETYPE_LEAF lib/rsyntaxtree.rb /^ETYPE_LEAF = 2$/;" C
164
244
  ETYPE_NODE lib/rsyntaxtree.rb /^ETYPE_NODE = 1$/;" C
245
+ Element lib/rsyntaxtree/element.rb /^ class Element$/;" c class:RSyntaxTree
165
246
  Element lib/rsyntaxtree/element.rb /^ class Element$/;" c module:RSyntaxTree
247
+ ElementList lib/rsyntaxtree/elementlist.rb /^ class ElementList$/;" c class:RSyntaxTree
166
248
  ElementList lib/rsyntaxtree/elementlist.rb /^ class ElementList$/;" c module:RSyntaxTree
167
249
  Escape Special Characters docs/_site/documentation.html /^<h3 id="escape-special-characters">Escape Special Characters<\/h3>$/;" j
168
250
  Escape Special Characters docs/documentation.md /^### Escape Special Characters$/;" S chapter:Documentation
169
251
  Example Gallery docs/_site/examples.html /^ <h1 id="examples">Example Gallery<\/h1>$/;" h
170
252
  Example Gallery docs/examples.html /^<h1 id="examples">Example Gallery<\/h1>$/;" h
253
+ ExampleParserTest test/example_verify_test.rb /^ class ExampleParserTest < Minitest::Test$/;" c
254
+ ExampleParserTest test/example_verify_test.rb /^class ExampleParserTest < Minitest::Test$/;" c
171
255
  Examples README.md /^### Examples$/;" S
172
- FONT_DIR lib/rsyntaxtree.rb /^FONT_DIR = File.expand_path(File.dirname(__FILE__) + "\/..\/fonts")$/;" C
256
+ FONT_DIR lib/rsyntaxtree.rb /^FONT_DIR = File.expand_path(File.join(__dir__, "\/..\/fonts"))$/;" C
173
257
  FONT_SCALING lib/rsyntaxtree.rb /^FONT_SCALING = 2$/;" C
174
258
  Font Styles docs/documentation.md /^#### Font Styles$/;" t subsection:Documentation""Font Styles, Text Decoration, and Sub/Superscripts
175
259
  Font Styles, Text Decoration, and Sub/Superscripts docs/_site/documentation.html /^<h3 id="font-styles-text-decoration-and-subsuperscripts">Font Styles, Text Decoration, and Sub\//;" j
@@ -187,11 +271,13 @@ Installation README.md /^### Installation$/;" S
187
271
  License README.md /^### License$/;" S
188
272
  Markup lib/rsyntaxtree/markup_parser.rb /^module Markup$/;" m
189
273
  MarkupParser lib/rsyntaxtree/markup_parser.rb /^class MarkupParser < Parslet::Parser$/;" c
274
+ MarkupParserTest test/example_verify_test.rb /^class MarkupParserTest < Minitest::Test$/;" c
190
275
  MarkupParserTest test/markup_parser_test.rb /^class MarkupParserTest < Minitest::Test$/;" c
191
276
  Newline docs/documentation.md /^#### Newline$/;" t subsection:Documentation""Font Styles, Text Decoration, and Sub/Superscripts
192
277
  PNG形式を用いる場合 docs/_site/documentation_ja.html /^<h3 id="png形式を用いる場合">PNG形式を用いる場合<\/h3>$/;" j
193
278
  PNG形式を用いる場合 docs/documentation_ja.md /^### PNG形式を用いる場合$/;" S chapter:ドキュメンテーション
194
279
  Phonology docs/_site/examples.html /^<h2 id="category-phonology"><b>Phonology<\/b><\/h2>$/;" i
280
+ RSGenerator lib/rsyntaxtree.rb /^ class RSGenerator$/;" c class:RSyntaxTree
195
281
  RSGenerator lib/rsyntaxtree.rb /^ class RSGenerator$/;" c module:RSyntaxTree
196
282
  RSTError lib/rsyntaxtree.rb /^class RSTError < StandardError$/;" c
197
283
  RSyntaxTree docs/_site/404.html /^ <\/h1>$/;" h
@@ -200,20 +286,25 @@ RSyntaxTree docs/_site/documentation_ja.html /^ <\/h1>$/;" h
200
286
  RSyntaxTree docs/_site/examples.html /^ <\/h1>$/;" h
201
287
  RSyntaxTree lib/rsyntaxtree.rb /^module RSyntaxTree$/;" m
202
288
  RSyntaxTree lib/rsyntaxtree/base_graph.rb /^module RSyntaxTree$/;" m
289
+ RSyntaxTree lib/rsyntaxtree/base_graph_new.rb /^module RSyntaxTree$/;" m
203
290
  RSyntaxTree lib/rsyntaxtree/element.rb /^module RSyntaxTree$/;" m
204
291
  RSyntaxTree lib/rsyntaxtree/elementlist.rb /^module RSyntaxTree$/;" m
205
292
  RSyntaxTree lib/rsyntaxtree/string_parser.rb /^module RSyntaxTree$/;" m
206
293
  RSyntaxTree lib/rsyntaxtree/svg_graph.rb /^module RSyntaxTree$/;" m
294
+ RSyntaxTree lib/rsyntaxtree/svg_graph_.rb /^module RSyntaxTree$/;" m
207
295
  RSyntaxTree lib/rsyntaxtree/version.rb /^module RSyntaxTree$/;" m
208
296
  RSyntaxTree | Syntax tree generator made with Ruby docs/_site/404.html /^<title>RSyntaxTree | Syntax tree generator made with Ruby<\/title>$/;" j
209
297
  RSyntaxTree | Syntax tree generator made with Ruby docs/_site/documentation.html /^<title>RSyntaxTree | Syntax tree generator made with Ruby<\/title>$/;" j
210
298
  RSyntaxTree | Syntax tree generator made with Ruby docs/_site/documentation_ja.html /^<title>RSyntaxTree | Syntax tree generator made with Ruby<\/title>$/;" j
211
299
  RSyntaxTree | Syntax tree generator made with Ruby docs/_site/examples.html /^<title>RSyntaxTree | Syntax tree generator made with Ruby<\/title>$/;" j
212
300
  SUBSCRIPT_CONST lib/rsyntaxtree.rb /^SUBSCRIPT_CONST = 0.7$/;" C
301
+ SVGGraph lib/rsyntaxtree/svg_graph.rb /^ class SVGGraph < BaseGraph$/;" c class:RSyntaxTree
213
302
  SVGGraph lib/rsyntaxtree/svg_graph.rb /^ class SVGGraph < BaseGraph$/;" c module:RSyntaxTree
303
+ SVGGraph lib/rsyntaxtree/svg_graph_.rb /^ class SVGGraph < BaseGraph$/;" c class:RSyntaxTree
214
304
  SVG形式を用いる場合 docs/_site/documentation_ja.html /^<h3 id="svg形式を用いる場合">SVG形式を用いる場合<\/h3>$/;" j
215
305
  SVG形式を用いる場合 docs/documentation_ja.md /^### SVG形式を用いる場合$/;" S chapter:ドキュメンテーション
216
306
  String lib/rsyntaxtree/utils.rb /^class String$/;" c
307
+ StringParser lib/rsyntaxtree/string_parser.rb /^ class StringParser$/;" c class:RSyntaxTree
217
308
  StringParser lib/rsyntaxtree/string_parser.rb /^ class StringParser$/;" c module:RSyntaxTree
218
309
  Subscript and Superscript docs/documentation.md /^#### Subscript and Superscript$/;" t subsection:Documentation""Font Styles, Text Decoration, and Sub/Superscripts
219
310
  Syntax tree generator made with Ruby docs/_site/404.html /^ <h2 class="project-tagline">Syntax tree generator made with Ruby<\/h2>$/;" i
@@ -227,7 +318,7 @@ Tic-Tac-Toe docs/_site/examples.html /^<h2 id="category-tic-tac-toe"><b>Tic-Tac-
227
318
  Triangle, Square Brackets, Rectangle docs/_site/documentation.html /^<h3 id="triangle-square-brackets-rectangle">Triangle, Square Brackets, Rectangle<\/h3>$/;" j
228
319
  Triangle, Square Brackets, Rectangle docs/documentation.md /^### Triangle, Square Brackets, Rectangle$/;" S chapter:Documentation
229
320
  Usage README.md /^### Usage$/;" S
230
- VERSION lib/rsyntaxtree/version.rb /^ VERSION = "1.0.8"$/;" C module:RSyntaxTree
321
+ VERSION lib/rsyntaxtree/version.rb /^ VERSION = "1.1.0"$/;" C module:RSyntaxTree
231
322
  WHITESPACE_BLOCK lib/rsyntaxtree.rb /^WHITESPACE_BLOCK = "■"$/;" C
232
323
  Web Interface README.md /^### Web Interface$/;" S
233
324
  Whitespace inside Label docs/documentation.md /^#### Whitespace inside Label$/;" t subsection:Documentation""Font Styles, Text Decoration, and Sub/Superscripts
@@ -239,6 +330,7 @@ a:hover docs/_site/assets/css/style.css /^a:active, a:hover { outline: 0; }$/;"
239
330
  a:hover docs/_site/assets/css/style.css /^a:hover { text-decoration: underline; }$/;" s
240
331
  abbr[title] docs/_site/assets/css/style.css /^abbr[title] { border-bottom: 1px dotted; }$/;" s
241
332
  add lib/rsyntaxtree/elementlist.rb /^ def add(element)$/;" f class:RSyntaxTree.ElementList
333
+ add_child lib/rsyntaxtree/element.rb /^ def add_child(child_id)$/;" f
242
334
  add_child lib/rsyntaxtree/element.rb /^ def add_child(child_id)$/;" f class:RSyntaxTree.Element
243
335
  all_emoji? lib/rsyntaxtree/utils.rb /^ def all_emoji?$/;" f class:String
244
336
  arrow img/sample.svg /^ <marker id="arrow" markerUnits="strokeWidth" markerWidth="7.823437500000001" markerHeight="7/;" d
@@ -258,10 +350,17 @@ button docs/_site/assets/css/style.css /^button, input, optgroup, select, textar
258
350
  button docs/_site/assets/css/style.css /^button, select { text-transform: none; }$/;" s
259
351
  button::-moz-focus-inner docs/_site/assets/css/style.css /^button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }$/;" s
260
352
  button[disabled] docs/_site/assets/css/style.css /^button[disabled], html input[disabled] { cursor: default; }$/;" s
353
+ calculate_height lib/rsyntaxtree/base_graph.rb /^ def calculate_height(id = 1)$/;" f class:RSyntaxTree
261
354
  calculate_height lib/rsyntaxtree/base_graph.rb /^ def calculate_height(id = 1)$/;" f class:RSyntaxTree.BaseGraph
355
+ calculate_height lib/rsyntaxtree/base_graph_new.rb /^ def calculate_height(id = 1)$/;" f class:RSyntaxTree
356
+ calculate_indent lib/rsyntaxtree/base_graph.rb /^ def calculate_indent$/;" f
357
+ calculate_indent lib/rsyntaxtree/base_graph.rb /^ def calculate_indent$/;" f class:RSyntaxTree
262
358
  calculate_indent lib/rsyntaxtree/base_graph.rb /^ def calculate_indent$/;" f class:RSyntaxTree.BaseGraph
359
+ calculate_indent lib/rsyntaxtree/base_graph_new.rb /^ def calculate_indent$/;" f
263
360
  calculate_level lib/rsyntaxtree/base_graph.rb /^ def calculate_level$/;" f class:RSyntaxTree.BaseGraph
361
+ calculate_level lib/rsyntaxtree/base_graph_new.rb /^ def calculate_level$/;" f class:RSyntaxTree.BaseGraph
264
362
  calculate_width lib/rsyntaxtree/base_graph.rb /^ def calculate_width(id = 1)$/;" f class:RSyntaxTree.BaseGraph
363
+ calculate_width lib/rsyntaxtree/base_graph_new.rb /^ def calculate_width(id = 1)$/;" f class:RSyntaxTree.BaseGraph
265
364
  canvas docs/_site/assets/css/style.css /^audio, canvas, progress, video { display: inline-block; \/* 1 *\/ vertical-align: baseline; \/* /;" s
266
365
  category-cognitive-grammar-experimental docs/_site/examples.html /^<h2 id="category-cognitive-grammar-experimental"><b>Cognitive Grammar (Experimental)<\/b><\/h2>$/;" I
267
366
  category-combinatory-categorial-grammar-experimental docs/_site/examples.html /^<h2 id="category-combinatory-categorial-grammar-experimental"><b>Combinatory Categorial Grammar /;" I
@@ -272,15 +371,30 @@ category-head-driven-phrase-structure-grammar-experimental docs/_site/examples.h
272
371
  category-phonology docs/_site/examples.html /^<h2 id="category-phonology"><b>Phonology<\/b><\/h2>$/;" I
273
372
  category-tic-tac-toe docs/_site/examples.html /^<h2 id="category-tic-tac-toe"><b>Tic-Tac-Toe<\/b><\/h2>$/;" I
274
373
  category-{{category.name | slugify }} docs/examples.html /^<h2 id="category-{{category.name | slugify }}"><b>{{ category.name }}<\/b><\/h2>$/;" I
374
+ check_data lib/rsyntaxtree.rb /^ def self.check_data(text)$/;" F class:RSyntaxTree.RSGenerator
275
375
  check_data lib/rsyntaxtree.rb /^ def self.check_data(text)$/;" S class:RSyntaxTree.RSGenerator
376
+ children lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
377
+ children= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
276
378
  code docs/_site/assets/css/style.css /^code, kbd, pre, samp { font-family: monospace, monospace; font-size: 1em; }$/;" s
277
379
  contains_cjk? lib/rsyntaxtree/utils.rb /^ def contains_cjk?$/;" f class:String
278
380
  contains_emoji? lib/rsyntaxtree/utils.rb /^ def contains_emoji?$/;" f class:String
381
+ contains_phrase lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
382
+ contains_phrase= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
279
383
  content docs/_layouts/default.html /^ <main id="content" class="main-content" role="main">$/;" I
280
384
  content docs/_site/404.html /^ <main id="content" class="main-content" role="main">$/;" I
281
385
  content docs/_site/documentation.html /^ <main id="content" class="main-content" role="main">$/;" I
282
386
  content docs/_site/documentation_ja.html /^ <main id="content" class="main-content" role="main">$/;" I
283
387
  content docs/_site/examples.html /^ <main id="content" class="main-content" role="main">$/;" I
388
+ content lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
389
+ content= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
390
+ content_height lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
391
+ content_height= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
392
+ content_width lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
393
+ content_width= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
394
+ copyToClipBoard docs/_site/documentation.html /^ function copyToClipBoard(id){$/;" f
395
+ copyToClipBoard docs/_site/documentation_ja.html /^ function copyToClipBoard(id){$/;" f
396
+ copyToClipBoard docs/_site/examples.html /^ function copyToClipBoard(id){$/;" f
397
+ copyToClipBoard docs/examples.html /^ function copyToClipBoard(id){$/;" f
284
398
  data lib/rsyntaxtree/string_parser.rb /^ attr_accessor :data, :elist, :pos, :id, :level$/;" A class:RSyntaxTree.StringParser
285
399
  data= lib/rsyntaxtree/string_parser.rb /^ attr_accessor :data, :elist, :pos, :id, :level$/;" A class:RSyntaxTree.StringParser
286
400
  default Rakefile /^task default: "test"$/;" t
@@ -291,17 +405,30 @@ div.grid docs/_site/assets/css/style.css /^div.grid { display: grid; grid-templa
291
405
  documentation docs/_site/documentation.html /^ <h1 class="no_toc" id="documentation">Documentation<\/h1>$/;" I
292
406
  draw-paths-between-nodes-experimental docs/_site/documentation.html /^<h3 id="draw-paths-between-nodes-experimental">Draw Paths between Nodes (experimental)<\/h3>$/;" I
293
407
  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
408
+ 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
409
+ draw_connector lib/rsyntaxtree/base_graph.rb /^ def draw_connector(id = 1)$/;" f
410
+ draw_connector lib/rsyntaxtree/base_graph.rb /^ def draw_connector(id = 1)$/;" f class:RSyntaxTree
294
411
  draw_connector lib/rsyntaxtree/base_graph.rb /^ def draw_connector(id = 1)$/;" f class:RSyntaxTree.BaseGraph
412
+ draw_connector lib/rsyntaxtree/base_graph_new.rb /^ def draw_connector(id = 1)$/;" f
413
+ draw_element lib/rsyntaxtree/svg_graph.rb /^ def draw_element(element)$/;" f class:RSyntaxTree
295
414
  draw_element lib/rsyntaxtree/svg_graph.rb /^ def draw_element(element)$/;" f class:RSyntaxTree.SVGGraph
415
+ draw_element lib/rsyntaxtree/svg_graph_.rb /^ def draw_element(element)$/;" f class:RSyntaxTree
416
+ draw_elements lib/rsyntaxtree/base_graph.rb /^ def draw_elements$/;" f
417
+ draw_elements lib/rsyntaxtree/base_graph.rb /^ def draw_elements$/;" f class:RSyntaxTree
296
418
  draw_elements lib/rsyntaxtree/base_graph.rb /^ def draw_elements$/;" f class:RSyntaxTree.BaseGraph
419
+ draw_elements lib/rsyntaxtree/base_graph_new.rb /^ def draw_elements$/;" f
420
+ draw_paths lib/rsyntaxtree/svg_graph.rb /^ def draw_paths$/;" f
297
421
  draw_paths lib/rsyntaxtree/svg_graph.rb /^ def draw_paths$/;" f class:RSyntaxTree.SVGGraph
422
+ draw_paths lib/rsyntaxtree/svg_graph_.rb /^ def draw_paths$/;" f
298
423
  draw_png lib/rsyntaxtree.rb /^ def draw_png(binary = false)$/;" f class:RSyntaxTree.RSGenerator
299
424
  draw_svg lib/rsyntaxtree.rb /^ def draw_svg$/;" f class:RSyntaxTree.RSGenerator
300
425
  draw_tree lib/rsyntaxtree.rb /^ def draw_tree$/;" f class:RSyntaxTree.RSGenerator
301
- elements lib/rsyntaxtree/elementlist.rb /^ attr_accessor :elements, :iterator $/;" A class:RSyntaxTree.ElementList
302
- elements= lib/rsyntaxtree/elementlist.rb /^ attr_accessor :elements, :iterator $/;" A class:RSyntaxTree.ElementList
426
+ elements lib/rsyntaxtree/elementlist.rb /^ attr_accessor :elements, :iterator$/;" A class:RSyntaxTree.ElementList
427
+ elements= lib/rsyntaxtree/elementlist.rb /^ attr_accessor :elements, :iterator$/;" A class:RSyntaxTree.ElementList
303
428
  elist lib/rsyntaxtree/string_parser.rb /^ attr_accessor :data, :elist, :pos, :id, :level$/;" A class:RSyntaxTree.StringParser
304
429
  elist= lib/rsyntaxtree/string_parser.rb /^ attr_accessor :data, :elist, :pos, :id, :level$/;" A class:RSyntaxTree.StringParser
430
+ enclosure lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
431
+ enclosure= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
305
432
  escape-special-characters docs/_site/documentation.html /^<h3 id="escape-special-characters">Escape Special Characters<\/h3>$/;" I
306
433
  examples docs/_site/examples.html /^ <h1 id="examples">Example Gallery<\/h1>$/;" I
307
434
  examples docs/examples.html /^<h1 id="examples">Example Gallery<\/h1>$/;" I
@@ -309,51 +436,77 @@ fieldset docs/_site/assets/css/style.css /^fieldset { border: 1px solid #c0c0c0;
309
436
  figcaption docs/_site/assets/css/style.css /^article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, s/;" s
310
437
  figure docs/_site/assets/css/style.css /^article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, s/;" s
311
438
  figure docs/_site/assets/css/style.css /^figure { margin: 1em 40px; }$/;" s
439
+ font lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
312
440
  font-styles docs/_site/documentation.html /^<h4 id="font-styles">Font Styles<\/h4>$/;" I
313
441
  font-styles-text-decoration-and-subsuperscripts docs/_site/documentation.html /^<h3 id="font-styles-text-decoration-and-subsuperscripts">Font Styles, Text Decoration, and Sub\//;" I
442
+ font= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
314
443
  fonts-used-to-generate-png docs/_site/documentation.html /^<h3 id="fonts-used-to-generate-png">Fonts Used to Generate PNG<\/h3>$/;" I
444
+ fontsize lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
445
+ fontsize= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
315
446
  footer docs/_site/assets/css/style.css /^article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, s/;" s
447
+ generate_line lib/rsyntaxtree/svg_graph.rb /^ def generate_line(x1, y1, x2, y2, col, dashed = false, arrow = false, stroke_width = 1)$/;" f
316
448
  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
449
+ generate_line lib/rsyntaxtree/svg_graph_.rb /^ def generate_line(x1, y1, x2, y2, col, dashed = false, arrow = false, stroke_width = 1)$/;" f
317
450
  get_child_count lib/rsyntaxtree/elementlist.rb /^ def get_child_count(id)$/;" f class:RSyntaxTree.ElementList
318
451
  get_children lib/rsyntaxtree/elementlist.rb /^ def get_children(id)$/;" f class:RSyntaxTree.ElementList
319
452
  get_element_width lib/rsyntaxtree/elementlist.rb /^ def get_element_width(id)$/;" f class:RSyntaxTree.ElementList
453
+ get_elementlist lib/rsyntaxtree/string_parser.rb /^ def get_elementlist$/;" f
320
454
  get_elementlist lib/rsyntaxtree/string_parser.rb /^ def get_elementlist$/;" f class:RSyntaxTree.StringParser
321
455
  get_elements lib/rsyntaxtree/elementlist.rb /^ def get_elements$/;" f class:RSyntaxTree.ElementList
322
456
  get_first lib/rsyntaxtree/elementlist.rb /^ def get_first$/;" f class:RSyntaxTree.ElementList
323
457
  get_id lib/rsyntaxtree/elementlist.rb /^ def get_id(id)$/;" f class:RSyntaxTree.ElementList
324
458
  get_indent lib/rsyntaxtree/elementlist.rb /^ def get_indent(id)$/;" f class:RSyntaxTree.ElementList
459
+ get_leftmost lib/rsyntaxtree/base_graph.rb /^ def get_leftmost(id = 1)$/;" f
460
+ get_leftmost lib/rsyntaxtree/base_graph.rb /^ def get_leftmost(id = 1)$/;" f class:RSyntaxTree
325
461
  get_leftmost lib/rsyntaxtree/base_graph.rb /^ def get_leftmost(id = 1)$/;" f class:RSyntaxTree.BaseGraph
462
+ get_leftmost lib/rsyntaxtree/base_graph_new.rb /^ def get_leftmost(id = 1)$/;" f
326
463
  get_level_height lib/rsyntaxtree/elementlist.rb /^ def get_level_height$/;" f class:RSyntaxTree.ElementList
464
+ get_metrics lib/rsyntaxtree/utils.rb /^ def get_metrics(text, font, fontsize, font_style, font_weight)$/;" f class:FontMetrics
327
465
  get_metrics lib/rsyntaxtree/utils.rb /^ def get_metrics(text, font, fontsize, font_style, font_weight)$/;" f module:FontMetrics
328
466
  get_next lib/rsyntaxtree/elementlist.rb /^ def get_next$/;" f class:RSyntaxTree.ElementList
467
+ get_next_token lib/rsyntaxtree/string_parser.rb /^ def get_next_token$/;" f
329
468
  get_next_token lib/rsyntaxtree/string_parser.rb /^ def get_next_token$/;" f class:RSyntaxTree.StringParser
469
+ get_rightmost lib/rsyntaxtree/base_graph.rb /^ def get_rightmost(id = 1)$/;" f
470
+ get_rightmost lib/rsyntaxtree/base_graph.rb /^ def get_rightmost(id = 1)$/;" f class:RSyntaxTree
330
471
  get_rightmost lib/rsyntaxtree/base_graph.rb /^ def get_rightmost(id = 1)$/;" f class:RSyntaxTree.BaseGraph
472
+ get_rightmost lib/rsyntaxtree/base_graph_new.rb /^ def get_rightmost(id = 1)$/;" f
331
473
  grid docs/assets/css/style.scss /^ div.grid {$/;" c
332
474
  grid docs/assets/css/style.scss /^div.grid {$/;" c
333
475
  h1 docs/_site/assets/css/style.css /^h1 { font-size: 2em; margin: 0.67em 0; }$/;" s
334
476
  h3 docs/_site/assets/css/style.css /^h3 { border-bottom: 1px solid lightgray; margin-top: 1em; margin-bottom: 1em; padding-bottom: 0./;" s
335
477
  header docs/_site/assets/css/style.css /^article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, s/;" s
478
+ height lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
336
479
  height lib/rsyntaxtree/svg_graph.rb /^ attr_accessor :width, :height$/;" A class:RSyntaxTree.SVGGraph
480
+ height= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
337
481
  height= lib/rsyntaxtree/svg_graph.rb /^ attr_accessor :width, :height$/;" A class:RSyntaxTree.SVGGraph
338
482
  hgroup docs/_site/assets/css/style.css /^article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, s/;" s
339
483
  hidden docs/_site/assets/css/style.css /^[hidden], template { display: none; }$/;" s
340
484
  horizontal-line docs/_site/documentation.html /^<h4 id="horizontal-line">Horizontal Line<\/h4>$/;" I
485
+ horizontal_indent lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
486
+ horizontal_indent= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
341
487
  hr docs/_site/assets/css/style.css /^hr { box-sizing: content-box; height: 0; }$/;" s
342
488
  html docs/_site/assets/css/style.css /^html { font-family: sans-serif; \/* 1 *\/ -ms-text-size-adjust: 100%; \/* 2 *\/ -webkit-text-siz/;" s
343
489
  html input[disabled] docs/_site/assets/css/style.css /^button[disabled], html input[disabled] { cursor: default; }$/;" s
344
490
  html input[type="button"] docs/_site/assets/css/style.css /^button, html input[type="button"], input[type="reset"], input[type="submit"] { -webkit-appearanc/;" s
345
- id lib/rsyntaxtree/element.rb /^ attr_accessor :id,$/;" A class:RSyntaxTree.Element
491
+ id lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
346
492
  id lib/rsyntaxtree/string_parser.rb /^ attr_accessor :data, :elist, :pos, :id, :level$/;" A class:RSyntaxTree.StringParser
347
- id= lib/rsyntaxtree/element.rb /^ attr_accessor :id,$/;" A class:RSyntaxTree.Element
493
+ id= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
348
494
  id= lib/rsyntaxtree/string_parser.rb /^ attr_accessor :data, :elist, :pos, :id, :level$/;" A class:RSyntaxTree.StringParser
349
495
  img docs/_site/assets/css/style.css /^img { border: 0; }$/;" s
350
496
  initialize lib/rsyntaxtree.rb /^ def initialize(params = {})$/;" f class:RSyntaxTree.RSGenerator
351
- initialize lib/rsyntaxtree.rb /^ def initialize(msg="Error: something unexpected occurred")$/;" f class:RSTError
497
+ initialize lib/rsyntaxtree.rb /^ def initialize(msg = "Error: something unexpected occurred")$/;" f class:RSTError
352
498
  initialize lib/rsyntaxtree/base_graph.rb /^ def initialize(element_list, params)$/;" f class:RSyntaxTree.BaseGraph
499
+ initialize lib/rsyntaxtree/base_graph.rb /^ def initialize(element_list, params, global)$/;" f class:RSyntaxTree.BaseGraph
500
+ initialize lib/rsyntaxtree/base_graph_new.rb /^ def initialize(element_list, params)$/;" f class:RSyntaxTree.BaseGraph
501
+ initialize lib/rsyntaxtree/base_graph_new.rb /^ def initialize(element_list, params, global)$/;" f class:RSyntaxTree.BaseGraph
353
502
  initialize lib/rsyntaxtree/element.rb /^ def initialize(id, parent, content, level, fontset, fontsize)$/;" f class:RSyntaxTree.Element
503
+ initialize lib/rsyntaxtree/element.rb /^ def initialize(id, parent, content, level, fontset, fontsize, global)$/;" f class:RSyntaxTree.Element
354
504
  initialize lib/rsyntaxtree/elementlist.rb /^ def initialize$/;" f class:RSyntaxTree.ElementList
355
505
  initialize lib/rsyntaxtree/string_parser.rb /^ def initialize(str, fontset, fontsize)$/;" f class:RSyntaxTree.StringParser
506
+ initialize lib/rsyntaxtree/string_parser.rb /^ def initialize(str, fontset, fontsize, global)$/;" f class:RSyntaxTree.StringParser
356
507
  initialize lib/rsyntaxtree/svg_graph.rb /^ def initialize(element_list, params)$/;" f class:RSyntaxTree.SVGGraph
508
+ initialize lib/rsyntaxtree/svg_graph.rb /^ def initialize(element_list, params, global)$/;" f class:RSyntaxTree.SVGGraph
509
+ initialize lib/rsyntaxtree/svg_graph_.rb /^ def initialize(element_list, params)$/;" f class:RSyntaxTree.SVGGraph
357
510
  input docs/_site/assets/css/style.css /^button, input, optgroup, select, textarea { color: inherit; \/* 1 *\/ font: inherit; \/* 2 *\/ m/;" s
358
511
  input docs/_site/assets/css/style.css /^input { line-height: normal; }$/;" s
359
512
  input::-moz-focus-inner docs/_site/assets/css/style.css /^button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }$/;" s
@@ -367,15 +520,23 @@ input[type="search"] ::-webkit-search-cancel-button docs/_site/assets/css/style.
367
520
  input[type="search"] ::-webkit-search-decoration docs/_site/assets/css/style.css /^input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decorat/;" s
368
521
  input[type="submit"] docs/_site/assets/css/style.css /^button, html input[type="button"], input[type="reset"], input[type="submit"] { -webkit-appearanc/;" s
369
522
  install-fonts-for-svg docs/_site/documentation.html /^<h3 id="install-fonts-for-svg">Install Fonts for SVG<\/h3>$/;" I
370
- iterator lib/rsyntaxtree/elementlist.rb /^ attr_accessor :elements, :iterator $/;" A class:RSyntaxTree.ElementList
371
- iterator= lib/rsyntaxtree/elementlist.rb /^ attr_accessor :elements, :iterator $/;" A class:RSyntaxTree.ElementList
523
+ iterator lib/rsyntaxtree/elementlist.rb /^ attr_accessor :elements, :iterator$/;" A class:RSyntaxTree.ElementList
524
+ iterator= lib/rsyntaxtree/elementlist.rb /^ attr_accessor :elements, :iterator$/;" A class:RSyntaxTree.ElementList
372
525
  kbd docs/_site/assets/css/style.css /^code, kbd, pre, samp { font-family: monospace, monospace; font-size: 1em; }$/;" s
373
526
  legend docs/_site/assets/css/style.css /^legend { border: 0; \/* 1 *\/ padding: 0; \/* 2 *\/ }$/;" s
527
+ level lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
374
528
  level lib/rsyntaxtree/string_parser.rb /^ attr_accessor :data, :elist, :pos, :id, :level$/;" A class:RSyntaxTree.StringParser
529
+ level= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
375
530
  level= lib/rsyntaxtree/string_parser.rb /^ attr_accessor :data, :elist, :pos, :id, :level$/;" A class:RSyntaxTree.StringParser
531
+ line_to_parent lib/rsyntaxtree/svg_graph.rb /^ def line_to_parent(parent, child)$/;" f
376
532
  line_to_parent lib/rsyntaxtree/svg_graph.rb /^ def line_to_parent(parent, child)$/;" f class:RSyntaxTree.SVGGraph
533
+ line_to_parent lib/rsyntaxtree/svg_graph_.rb /^ def line_to_parent(parent, child)$/;" f
377
534
  main docs/_site/assets/css/style.css /^article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, s/;" s
535
+ make_balance lib/rsyntaxtree/base_graph.rb /^ def make_balance(id = 1)$/;" f
536
+ make_balance lib/rsyntaxtree/base_graph.rb /^ def make_balance(id = 1)$/;" f class:RSyntaxTree
378
537
  make_balance lib/rsyntaxtree/base_graph.rb /^ def make_balance(id = 1)$/;" f class:RSyntaxTree.BaseGraph
538
+ make_balance lib/rsyntaxtree/base_graph_new.rb /^ def make_balance(id = 1)$/;" f
539
+ make_tree lib/rsyntaxtree/string_parser.rb /^ def make_tree(parent)$/;" f
379
540
  make_tree lib/rsyntaxtree/string_parser.rb /^ def make_tree(parent)$/;" f class:RSyntaxTree.StringParser
380
541
  mark docs/_site/assets/css/style.css /^mark { background: #ff0; color: #000; }$/;" s
381
542
  markdown-toc docs/_site/documentation.html /^<ol id="markdown-toc">$/;" I
@@ -414,14 +575,26 @@ markdown-toc-水平線 docs/_site/documentation_ja.html /^ <li><a href="#
414
575
  menu docs/_site/assets/css/style.css /^article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, s/;" s
415
576
  nav docs/_site/assets/css/style.css /^article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, s/;" s
416
577
  newline docs/_site/documentation.html /^<h4 id="newline">Newline<\/h4>$/;" I
578
+ node_centering lib/rsyntaxtree/base_graph.rb /^ def node_centering$/;" f
579
+ node_centering lib/rsyntaxtree/base_graph.rb /^ def node_centering$/;" f class:RSyntaxTree
417
580
  node_centering lib/rsyntaxtree/base_graph.rb /^ def node_centering$/;" f class:RSyntaxTree.BaseGraph
581
+ node_centering lib/rsyntaxtree/base_graph_new.rb /^ def node_centering$/;" f
418
582
  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
419
583
  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
420
584
  optgroup docs/_site/assets/css/style.css /^button, input, optgroup, select, textarea { color: inherit; \/* 1 *\/ font: inherit; \/* 2 *\/ m/;" s
421
585
  optgroup docs/_site/assets/css/style.css /^optgroup { font-weight: bold; }$/;" s
586
+ parent lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
587
+ parent= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
588
+ parse lib/rsyntaxtree/markup_parser.rb /^ def parse(txt)$/;" f class:Markup
422
589
  parse lib/rsyntaxtree/markup_parser.rb /^ def parse(txt)$/;" f module:Markup
590
+ parse lib/rsyntaxtree/string_parser.rb /^ def parse$/;" f
423
591
  parse lib/rsyntaxtree/string_parser.rb /^ def parse$/;" f class:RSyntaxTree.StringParser
592
+ parse_list lib/rsyntaxtree/base_graph.rb /^ def parse_list$/;" f
593
+ parse_list lib/rsyntaxtree/base_graph.rb /^ def parse_list$/;" f class:RSyntaxTree
424
594
  parse_list lib/rsyntaxtree/base_graph.rb /^ def parse_list$/;" f class:RSyntaxTree.BaseGraph
595
+ parse_list lib/rsyntaxtree/base_graph_new.rb /^ def parse_list$/;" f
596
+ path lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
597
+ path= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
425
598
  png形式を用いる場合 docs/_site/documentation_ja.html /^<h3 id="png形式を用いる場合">PNG形式を用いる場合<\/h3>$/;" I
426
599
  pos lib/rsyntaxtree/string_parser.rb /^ attr_accessor :data, :elist, :pos, :id, :level$/;" A class:RSyntaxTree.StringParser
427
600
  pos= lib/rsyntaxtree/string_parser.rb /^ attr_accessor :data, :elist, :pos, :id, :level$/;" A class:RSyntaxTree.StringParser
@@ -436,8 +609,13 @@ select docs/_site/assets/css/style.css /^button, select { text-transform: none;
436
609
  set_element_width lib/rsyntaxtree/elementlist.rb /^ def set_element_width(id, width)$/;" f class:RSyntaxTree.ElementList
437
610
  set_hierarchy lib/rsyntaxtree/elementlist.rb /^ def set_hierarchy$/;" f class:RSyntaxTree.ElementList
438
611
  set_indent lib/rsyntaxtree/elementlist.rb /^ def set_indent(id, indent)$/;" f class:RSyntaxTree.ElementList
612
+ set_tspan lib/rsyntaxtree/svg_graph.rb /^ def set_tspan(this_x, this_y, style, decoration, fontstyle, text)$/;" f
439
613
  set_tspan lib/rsyntaxtree/svg_graph.rb /^ def set_tspan(this_x, this_y, style, decoration, fontstyle, text)$/;" f class:RSyntaxTree.SVGGraph
614
+ set_tspan lib/rsyntaxtree/svg_graph_.rb /^ def set_tspan(this_x, this_y, style, decoration, fontstyle, text)$/;" f
615
+ setup lib/rsyntaxtree/element.rb /^ def setup$/;" f class:RSyntaxTree
440
616
  setup lib/rsyntaxtree/element.rb /^ def setup$/;" f class:RSyntaxTree.Element
617
+ setup test/example_verify_test.rb /^ def setup$/;" f class:ExampleParserTest
618
+ setup test/example_verify_test.rb /^ def setup$/;" f class:MarkupParserTest
441
619
  setup test/markup_parser_test.rb /^ def setup$/;" f class:MarkupParserTest
442
620
  skip-to-content docs/_layouts/default.html /^ <a id="skip-to-content" href="#content">Skip to the content.<\/a>$/;" I
443
621
  skip-to-content docs/_site/404.html /^ <a id="skip-to-content" href="#content">Skip to the content.<\/a>$/;" I
@@ -460,32 +638,71 @@ sup docs/_site/assets/css/style.css /^sub, sup { font-size: 75%; line-height: 0;
460
638
  sup docs/_site/assets/css/style.css /^sup { top: -0.5em; }$/;" s
461
639
  svg:not(:root) docs/_site/assets/css/style.css /^svg:not(:root) { overflow: hidden; }$/;" s
462
640
  svg_data lib/rsyntaxtree/svg_graph.rb /^ def svg_data$/;" f class:RSyntaxTree.SVGGraph
641
+ svg_data lib/rsyntaxtree/svg_graph_.rb /^ def svg_data$/;" f class:RSyntaxTree.SVGGraph
463
642
  svg形式を用いる場合 docs/_site/documentation_ja.html /^<h3 id="svg形式を用いる場合">SVG形式を用いる場合<\/h3>$/;" I
464
643
  table docs/_site/assets/css/style.css /^table { border-collapse: collapse; border-spacing: 0; }$/;" s
465
644
  table-of-contents docs/_site/documentation.html /^<h3 class="no_toc" id="table-of-contents">Table of Contents<\/h3>$/;" I
466
645
  td docs/_site/assets/css/style.css /^td, th { padding: 0; }$/;" s
467
646
  template docs/_site/assets/css/style.css /^[hidden], template { display: none; }$/;" s
647
+ test_evaluator test/example_verify_test.rb /^ def test_evaluator$/;" f
648
+ test_evaluator test/markup_parser_test.rb /^ def test_evaluator$/;" f
468
649
  test_evaluator test/markup_parser_test.rb /^ def test_evaluator$/;" f class:MarkupParserTest
650
+ test_rule_bold test/example_verify_test.rb /^ def test_rule_bold$/;" f
651
+ test_rule_bold test/markup_parser_test.rb /^ def test_rule_bold$/;" f
469
652
  test_rule_bold test/markup_parser_test.rb /^ def test_rule_bold$/;" f class:MarkupParserTest
653
+ test_rule_bolditalic test/example_verify_test.rb /^ def test_rule_bolditalic$/;" f
654
+ test_rule_bolditalic test/markup_parser_test.rb /^ def test_rule_bolditalic$/;" f
470
655
  test_rule_bolditalic test/markup_parser_test.rb /^ def test_rule_bolditalic$/;" f class:MarkupParserTest
656
+ test_rule_border test/example_verify_test.rb /^ def test_rule_border$/;" f
657
+ test_rule_border test/markup_parser_test.rb /^ def test_rule_border$/;" f
471
658
  test_rule_border test/markup_parser_test.rb /^ def test_rule_border$/;" f class:MarkupParserTest
659
+ test_rule_box test/example_verify_test.rb /^ def test_rule_box$/;" f
660
+ test_rule_box test/markup_parser_test.rb /^ def test_rule_box$/;" f
472
661
  test_rule_box test/markup_parser_test.rb /^ def test_rule_box$/;" f class:MarkupParserTest
662
+ test_rule_brackets test/example_verify_test.rb /^ def test_rule_brackets$/;" f class:MarkupParserTest
473
663
  test_rule_brackets test/markup_parser_test.rb /^ def test_rule_brackets$/;" f class:MarkupParserTest
664
+ test_rule_cr test/example_verify_test.rb /^ def test_rule_cr$/;" f class:MarkupParserTest
474
665
  test_rule_cr test/markup_parser_test.rb /^ def test_rule_cr$/;" f class:MarkupParserTest
666
+ test_rule_escaped test/example_verify_test.rb /^ def test_rule_escaped$/;" f class:MarkupParserTest
475
667
  test_rule_escaped test/markup_parser_test.rb /^ def test_rule_escaped$/;" f class:MarkupParserTest
668
+ test_rule_italic test/example_verify_test.rb /^ def test_rule_italic$/;" f
669
+ test_rule_italic test/markup_parser_test.rb /^ def test_rule_italic$/;" f
476
670
  test_rule_italic test/markup_parser_test.rb /^ def test_rule_italic$/;" f class:MarkupParserTest
671
+ test_rule_line test/example_verify_test.rb /^ def test_rule_line$/;" f
672
+ test_rule_line test/markup_parser_test.rb /^ def test_rule_line$/;" f
477
673
  test_rule_line test/markup_parser_test.rb /^ def test_rule_line$/;" f class:MarkupParserTest
674
+ test_rule_lines test/example_verify_test.rb /^ def test_rule_lines$/;" f
675
+ test_rule_lines test/markup_parser_test.rb /^ def test_rule_lines$/;" f
478
676
  test_rule_lines test/markup_parser_test.rb /^ def test_rule_lines$/;" f class:MarkupParserTest
677
+ test_rule_linethrough test/example_verify_test.rb /^ def test_rule_linethrough$/;" f
678
+ test_rule_linethrough test/markup_parser_test.rb /^ def test_rule_linethrough$/;" f
479
679
  test_rule_linethrough test/markup_parser_test.rb /^ def test_rule_linethrough$/;" f class:MarkupParserTest
680
+ test_rule_markup test/example_verify_test.rb /^ def test_rule_markup$/;" f
681
+ test_rule_markup test/markup_parser_test.rb /^ def test_rule_markup$/;" f
480
682
  test_rule_markup test/markup_parser_test.rb /^ def test_rule_markup$/;" f class:MarkupParserTest
683
+ test_rule_non_escaped test/example_verify_test.rb /^ def test_rule_non_escaped$/;" f
684
+ test_rule_non_escaped test/markup_parser_test.rb /^ def test_rule_non_escaped$/;" f
481
685
  test_rule_non_escaped test/markup_parser_test.rb /^ def test_rule_non_escaped$/;" f class:MarkupParserTest
686
+ test_rule_overline test/example_verify_test.rb /^ def test_rule_overline$/;" f
687
+ test_rule_overline test/markup_parser_test.rb /^ def test_rule_overline$/;" f
482
688
  test_rule_overline test/markup_parser_test.rb /^ def test_rule_overline$/;" f class:MarkupParserTest
689
+ test_rule_path test/example_verify_test.rb /^ def test_rule_path$/;" f class:MarkupParserTest
483
690
  test_rule_path test/markup_parser_test.rb /^ def test_rule_path$/;" f class:MarkupParserTest
691
+ test_rule_subscript test/example_verify_test.rb /^ def test_rule_subscript$/;" f
692
+ test_rule_subscript test/markup_parser_test.rb /^ def test_rule_subscript$/;" f
484
693
  test_rule_subscript test/markup_parser_test.rb /^ def test_rule_subscript$/;" f class:MarkupParserTest
694
+ test_rule_superscript test/example_verify_test.rb /^ def test_rule_superscript$/;" f
695
+ test_rule_superscript test/markup_parser_test.rb /^ def test_rule_superscript$/;" f
485
696
  test_rule_superscript test/markup_parser_test.rb /^ def test_rule_superscript$/;" f class:MarkupParserTest
697
+ test_rule_text test/example_verify_test.rb /^ def test_rule_text$/;" f
698
+ test_rule_text test/markup_parser_test.rb /^ def test_rule_text$/;" f
486
699
  test_rule_text test/markup_parser_test.rb /^ def test_rule_text$/;" f class:MarkupParserTest
700
+ test_rule_triangle test/example_verify_test.rb /^ def test_rule_triangle$/;" f class:MarkupParserTest
487
701
  test_rule_triangle test/markup_parser_test.rb /^ def test_rule_triangle$/;" f class:MarkupParserTest
702
+ test_rule_underline test/example_verify_test.rb /^ def test_rule_underline$/;" f
703
+ test_rule_underline test/markup_parser_test.rb /^ def test_rule_underline$/;" f
488
704
  test_rule_underline test/markup_parser_test.rb /^ def test_rule_underline$/;" f class:MarkupParserTest
705
+ test_setup test/example_verify_test.rb /^ def test_setup$/;" f class:MarkupParserTest
489
706
  text-001 docs/_site/examples.html /^ <div id="text-001" style='max-height: 600px; overflow-y: auto; margin-bottom: 20px;'>$/;" I
490
707
  text-002 docs/_site/examples.html /^ <div id="text-002" style='max-height: 600px; overflow-y: auto; margin-bottom: 20px;'>$/;" I
491
708
  text-003 docs/_site/examples.html /^ <div id="text-003" style='max-height: 600px; overflow-y: auto; margin-bottom: 20px;'>$/;" I
@@ -511,12 +728,23 @@ text-{{example.name}} docs/examples.html /^ <div id="text-{{example.name}}" s
511
728
  textarea docs/_site/assets/css/style.css /^button, input, optgroup, select, textarea { color: inherit; \/* 1 *\/ font: inherit; \/* 2 *\/ m/;" s
512
729
  textarea docs/_site/assets/css/style.css /^textarea { overflow: auto; }$/;" s
513
730
  th docs/_site/assets/css/style.css /^td, th { padding: 0; }$/;" s
731
+ triangle lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
514
732
  triangle-square-brackets-rectangle docs/_site/documentation.html /^<h3 id="triangle-square-brackets-rectangle">Triangle, Square Brackets, Rectangle<\/h3>$/;" I
733
+ triangle= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
734
+ triangle_to_parent lib/rsyntaxtree/svg_graph.rb /^ def triangle_to_parent(parent, child)$/;" f
515
735
  triangle_to_parent lib/rsyntaxtree/svg_graph.rb /^ def triangle_to_parent(parent, child)$/;" f class:RSyntaxTree.SVGGraph
736
+ triangle_to_parent lib/rsyntaxtree/svg_graph_.rb /^ def triangle_to_parent(parent, child)$/;" f
737
+ type lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
738
+ type= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
739
+ valid lib/rsyntaxtree/string_parser.rb /^ def self.valid?(data)$/;" F class:RSyntaxTree
516
740
  valid? lib/rsyntaxtree/string_parser.rb /^ def self.valid?(data)$/;" S class:RSyntaxTree.StringParser
741
+ vertical_indent lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
742
+ vertical_indent= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
517
743
  video docs/_site/assets/css/style.css /^audio, canvas, progress, video { display: inline-block; \/* 1 *\/ vertical-align: baseline; \/* /;" s
518
744
  whitespace-inside-label docs/_site/documentation.html /^<h4 id="whitespace-inside-label">Whitespace inside Label<\/h4>$/;" I
745
+ width lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
519
746
  width lib/rsyntaxtree/svg_graph.rb /^ attr_accessor :width, :height$/;" A class:RSyntaxTree.SVGGraph
747
+ width= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
520
748
  width= lib/rsyntaxtree/svg_graph.rb /^ attr_accessor :width, :height$/;" A class:RSyntaxTree.SVGGraph
521
749
  {{ category.name }} docs/examples.html /^<h2 id="category-{{category.name | slugify }}"><b>{{ category.name }}<\/b><\/h2>$/;" i
522
750
  {{ page.description | default: site.description | default: site.github.project_tagline }} docs/_layouts/default.html /^ <h2 class="project-tagline">{{ page.description | default: site.description | default: sit/;" i
data/Gemfile CHANGED
@@ -1,6 +1,11 @@
1
- source "http://rubygems.org"
1
+ # frozen_string_literal: true
2
2
 
3
- gem 'rmagick'
4
- gem 'optimist'
5
- gem 'parslet'
6
- gem 'rsvg2'
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in ruby-spacy.gemspec
6
+ gemspec
7
+
8
+ gem "optimist"
9
+ gem "parslet"
10
+ gem "rmagick"
11
+ gem "rsvg2"
data/README.md CHANGED
@@ -72,7 +72,8 @@ For the command-line interface, type `$rsyntaxtree -h` after installation. Here'
72
72
  RSyntaxTree, (linguistic) syntax tree generator written in Ruby.
73
73
 
74
74
  Usage:
75
- rsyntaxtree [options] "[VP [VP [V set] [NP bracket notation]] [ADV here]]"
75
+ 1) rsyntaxtree [options] "[VP [VP [V set] [NP bracket notation]] [ADV here]]"
76
+ 2) rsyntaxtree [options] "/path/to/text/file"
76
77
  where [options] are:
77
78
  -o, --outdir=<s> Output directory (default: ./)
78
79
  -f, --format=<s> Output format: png, gif, jpg, pdf, or svg (default: png)
@@ -87,7 +88,7 @@ where [options] are:
87
88
  -r, --transparent=<s> Make background transparent: on or off (default: off)
88
89
  -p, --polyline=<s> draw polyline connectors: on or off (default: off)
89
90
  -e, --version Print version and exit
90
- -h, --help Show this message```
91
+ -h, --help Show this message
91
92
  ```
92
93
 
93
94
  See the [documentation](https://yohasebe.github.io/rsyntaxtree/documentation) for more detailed info about the syntax.
data/Rakefile CHANGED
@@ -1,8 +1,11 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "bundler/gem_tasks"
2
4
  require "rake/testtask"
3
5
 
4
- task default: "test"
6
+ # task default: "test"
5
7
 
6
8
  Rake::TestTask.new do |task|
7
- task.pattern = "test/*_test.rb"
9
+ task.pattern = "test/*_test.rb"
10
+ task.warning = false
8
11
  end