rsyntaxtree 1.0.7 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f055d3be45a6e949957cd85507a616b2bd3d7c42687aa66cf6395aa3a84a23cb
4
- data.tar.gz: 62dd409c703d11c276ba53ccb6f32fb47f9fa72f1bb3fd03b376964831576100
3
+ metadata.gz: 3b05a1bea176c2fa9ba7cb51d2479540a36e98fb769d537e69abbf04499126b5
4
+ data.tar.gz: eab24b0534ffd2bbe95d272b53edf7a26717bd9a731275e87d9d514069ca4eb6
5
5
  SHA512:
6
- metadata.gz: c95ff5976519da60442a03b98e42c4ad729a8a0ac4dfbaf1dc73f259860fd482d8159af8fb6a0a97ed3bd1a8925a74b6727043a28012580b762dbf6229b9c48a
7
- data.tar.gz: 337608460a41663650056f34b8f8fd117f13604807832f4c311923e8adf069fef66ac59b1b730ee85d11c5550a339325bb96f4888fa6b8368ce9c0769ec37149
6
+ metadata.gz: dd7f4b7baeb2ce9ee026830e7139dff3cd9b3b95af3c8116898a339f2d58c19e946cfe5350d00945e340d4966ed2f4dd476b8103321f910e0bb811df7c3362a7
7
+ data.tar.gz: ce30ae233a3cf24a6c97f2513572a03943092835958905e2966f2a2ed97ad7b64c7a1bcc91e7d48e27b452098d01b305a7c45121f3d2761efad08be9a0bac4ad
data/.rubocop.yml ADDED
@@ -0,0 +1,77 @@
1
+ AllCops:
2
+ NewCops: disable
3
+ SuggestExtensions: false
4
+ TargetRubyVersion: 2.6
5
+
6
+ Documentation:
7
+ Enabled: false
8
+
9
+ Naming/VariableNumber:
10
+ Enabled: false
11
+
12
+ Naming/AccessorMethodName:
13
+ Enabled: false
14
+
15
+ Naming/MethodParameterName:
16
+ Enabled: false
17
+
18
+ Naming/FileName:
19
+ Enabled: false
20
+
21
+ Style/SymbolArray:
22
+ Enabled: false
23
+
24
+ Style/BlockDelimiters:
25
+ Enabled: false
26
+
27
+ Style/GlobalVars:
28
+ Enabled: false
29
+
30
+ Style/PerlBackrefs:
31
+ Enabled: false
32
+
33
+ Style/Semicolon:
34
+ Enabled: false
35
+
36
+ Style/OptionalBooleanParameter:
37
+ Enabled: false
38
+
39
+ Style/StringLiterals:
40
+ Enabled: false
41
+
42
+ Style/StringConcatenation:
43
+ Enabled: false
44
+
45
+ Style/StringLiteralsInInterpolation:
46
+ Enabled: true
47
+ EnforcedStyle: double_quotes
48
+
49
+ Layout/LineLength:
50
+ Max: 400
51
+
52
+ Metrics/BlockNesting:
53
+ Max: 5
54
+
55
+ Metrics/MethodLength:
56
+ Max: 400
57
+
58
+ Metrics/BlockLength:
59
+ Max: 200
60
+
61
+ Metrics/AbcSize:
62
+ Max: 400
63
+
64
+ Metrics/PerceivedComplexity:
65
+ Max: 100
66
+
67
+ Metrics/ClassLength:
68
+ Max: 800
69
+
70
+ Metrics/CyclomaticComplexity:
71
+ Max: 100
72
+
73
+ Metrics/ParameterLists:
74
+ Max: 8
75
+
76
+ Metrics/ModuleLength:
77
+ Max: 200
data/.solargraph.yml ADDED
@@ -0,0 +1,22 @@
1
+ ---
2
+ include:
3
+ - "**/*.rb"
4
+ exclude:
5
+ - spec/**/*
6
+ - test/**/*
7
+ - vendor/**/*
8
+ - ".bundle/**/*"
9
+ require: []
10
+ domains: []
11
+ reporters:
12
+ - rubocop
13
+ # - require_not_found
14
+ formatter:
15
+ rubocop:
16
+ cops: safe
17
+ except: []
18
+ only: []
19
+ extra_args: []
20
+ require_paths: []
21
+ plugins: []
22
+ max_files: 5000
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
@@ -149,6 +227,7 @@
149
227
  Author README.md /^### Author$/;" S
150
228
  BaseGraph lib/rsyntaxtree/base_graph.rb /^ class BaseGraph$/;" c class:RSyntaxTree
151
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
152
231
  Basic Usage docs/_site/documentation.html /^<h3 id="basic-usage">Basic Usage<\/h3>$/;" j
153
232
  Basic Usage docs/documentation.md /^### Basic Usage$/;" S chapter:Documentation
154
233
  Box and Circle docs/documentation.md /^#### Box and Circle$/;" t subsection:Documentation""Font Styles, Text Decoration, and Sub/Superscripts
@@ -172,7 +251,7 @@ Escape Special Characters docs/documentation.md /^### Escape Special Characters$
172
251
  Example Gallery docs/_site/examples.html /^ <h1 id="examples">Example Gallery<\/h1>$/;" h
173
252
  Example Gallery docs/examples.html /^<h1 id="examples">Example Gallery<\/h1>$/;" h
174
253
  Examples README.md /^### Examples$/;" S
175
- FONT_DIR lib/rsyntaxtree.rb /^FONT_DIR = File.expand_path(File.dirname(__FILE__) + "\/..\/fonts")$/;" C
254
+ FONT_DIR lib/rsyntaxtree.rb /^FONT_DIR = File.expand_path(File.join(__dir__, "\/..\/fonts"))$/;" C
176
255
  FONT_SCALING lib/rsyntaxtree.rb /^FONT_SCALING = 2$/;" C
177
256
  Font Styles docs/documentation.md /^#### Font Styles$/;" t subsection:Documentation""Font Styles, Text Decoration, and Sub/Superscripts
178
257
  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
@@ -204,10 +283,12 @@ RSyntaxTree docs/_site/documentation_ja.html /^ <\/h1>$/;" h
204
283
  RSyntaxTree docs/_site/examples.html /^ <\/h1>$/;" h
205
284
  RSyntaxTree lib/rsyntaxtree.rb /^module RSyntaxTree$/;" m
206
285
  RSyntaxTree lib/rsyntaxtree/base_graph.rb /^module RSyntaxTree$/;" m
286
+ RSyntaxTree lib/rsyntaxtree/base_graph_new.rb /^module RSyntaxTree$/;" m
207
287
  RSyntaxTree lib/rsyntaxtree/element.rb /^module RSyntaxTree$/;" m
208
288
  RSyntaxTree lib/rsyntaxtree/elementlist.rb /^module RSyntaxTree$/;" m
209
289
  RSyntaxTree lib/rsyntaxtree/string_parser.rb /^module RSyntaxTree$/;" m
210
290
  RSyntaxTree lib/rsyntaxtree/svg_graph.rb /^module RSyntaxTree$/;" m
291
+ RSyntaxTree lib/rsyntaxtree/svg_graph_.rb /^module RSyntaxTree$/;" m
211
292
  RSyntaxTree lib/rsyntaxtree/version.rb /^module RSyntaxTree$/;" m
212
293
  RSyntaxTree | Syntax tree generator made with Ruby docs/_site/404.html /^<title>RSyntaxTree | Syntax tree generator made with Ruby<\/title>$/;" j
213
294
  RSyntaxTree | Syntax tree generator made with Ruby docs/_site/documentation.html /^<title>RSyntaxTree | Syntax tree generator made with Ruby<\/title>$/;" j
@@ -216,6 +297,7 @@ RSyntaxTree | Syntax tree generator made with Ruby docs/_site/examples.html /^<t
216
297
  SUBSCRIPT_CONST lib/rsyntaxtree.rb /^SUBSCRIPT_CONST = 0.7$/;" C
217
298
  SVGGraph lib/rsyntaxtree/svg_graph.rb /^ class SVGGraph < BaseGraph$/;" c class:RSyntaxTree
218
299
  SVGGraph lib/rsyntaxtree/svg_graph.rb /^ class SVGGraph < BaseGraph$/;" c module:RSyntaxTree
300
+ SVGGraph lib/rsyntaxtree/svg_graph_.rb /^ class SVGGraph < BaseGraph$/;" c class:RSyntaxTree
219
301
  SVG形式を用いる場合 docs/_site/documentation_ja.html /^<h3 id="svg形式を用いる場合">SVG形式を用いる場合<\/h3>$/;" j
220
302
  SVG形式を用いる場合 docs/documentation_ja.md /^### SVG形式を用いる場合$/;" S chapter:ドキュメンテーション
221
303
  String lib/rsyntaxtree/utils.rb /^class String$/;" c
@@ -233,7 +315,7 @@ Tic-Tac-Toe docs/_site/examples.html /^<h2 id="category-tic-tac-toe"><b>Tic-Tac-
233
315
  Triangle, Square Brackets, Rectangle docs/_site/documentation.html /^<h3 id="triangle-square-brackets-rectangle">Triangle, Square Brackets, Rectangle<\/h3>$/;" j
234
316
  Triangle, Square Brackets, Rectangle docs/documentation.md /^### Triangle, Square Brackets, Rectangle$/;" S chapter:Documentation
235
317
  Usage README.md /^### Usage$/;" S
236
- VERSION lib/rsyntaxtree/version.rb /^ VERSION = "1.0.6"$/;" C module:RSyntaxTree
318
+ VERSION lib/rsyntaxtree/version.rb /^ VERSION = "1.1.0"$/;" C module:RSyntaxTree
237
319
  WHITESPACE_BLOCK lib/rsyntaxtree.rb /^WHITESPACE_BLOCK = "■"$/;" C
238
320
  Web Interface README.md /^### Web Interface$/;" S
239
321
  Whitespace inside Label docs/documentation.md /^#### Whitespace inside Label$/;" t subsection:Documentation""Font Styles, Text Decoration, and Sub/Superscripts
@@ -245,6 +327,7 @@ a:hover docs/_site/assets/css/style.css /^a:active, a:hover { outline: 0; }$/;"
245
327
  a:hover docs/_site/assets/css/style.css /^a:hover { text-decoration: underline; }$/;" s
246
328
  abbr[title] docs/_site/assets/css/style.css /^abbr[title] { border-bottom: 1px dotted; }$/;" s
247
329
  add lib/rsyntaxtree/elementlist.rb /^ def add(element)$/;" f class:RSyntaxTree.ElementList
330
+ add_child lib/rsyntaxtree/element.rb /^ def add_child(child_id)$/;" f
248
331
  add_child lib/rsyntaxtree/element.rb /^ def add_child(child_id)$/;" f class:RSyntaxTree.Element
249
332
  all_emoji? lib/rsyntaxtree/utils.rb /^ def all_emoji?$/;" f class:String
250
333
  arrow img/sample.svg /^ <marker id="arrow" markerUnits="strokeWidth" markerWidth="7.823437500000001" markerHeight="7/;" d
@@ -264,10 +347,17 @@ button docs/_site/assets/css/style.css /^button, input, optgroup, select, textar
264
347
  button docs/_site/assets/css/style.css /^button, select { text-transform: none; }$/;" s
265
348
  button::-moz-focus-inner docs/_site/assets/css/style.css /^button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }$/;" s
266
349
  button[disabled] docs/_site/assets/css/style.css /^button[disabled], html input[disabled] { cursor: default; }$/;" s
350
+ calculate_height lib/rsyntaxtree/base_graph.rb /^ def calculate_height(id = 1)$/;" f class:RSyntaxTree
267
351
  calculate_height lib/rsyntaxtree/base_graph.rb /^ def calculate_height(id = 1)$/;" f class:RSyntaxTree.BaseGraph
352
+ calculate_height lib/rsyntaxtree/base_graph_new.rb /^ def calculate_height(id = 1)$/;" f class:RSyntaxTree
353
+ calculate_indent lib/rsyntaxtree/base_graph.rb /^ def calculate_indent$/;" f
354
+ calculate_indent lib/rsyntaxtree/base_graph.rb /^ def calculate_indent$/;" f class:RSyntaxTree
268
355
  calculate_indent lib/rsyntaxtree/base_graph.rb /^ def calculate_indent$/;" f class:RSyntaxTree.BaseGraph
356
+ calculate_indent lib/rsyntaxtree/base_graph_new.rb /^ def calculate_indent$/;" f
269
357
  calculate_level lib/rsyntaxtree/base_graph.rb /^ def calculate_level$/;" f class:RSyntaxTree.BaseGraph
358
+ calculate_level lib/rsyntaxtree/base_graph_new.rb /^ def calculate_level$/;" f class:RSyntaxTree.BaseGraph
270
359
  calculate_width lib/rsyntaxtree/base_graph.rb /^ def calculate_width(id = 1)$/;" f class:RSyntaxTree.BaseGraph
360
+ calculate_width lib/rsyntaxtree/base_graph_new.rb /^ def calculate_width(id = 1)$/;" f class:RSyntaxTree.BaseGraph
271
361
  canvas docs/_site/assets/css/style.css /^audio, canvas, progress, video { display: inline-block; \/* 1 *\/ vertical-align: baseline; \/* /;" s
272
362
  category-cognitive-grammar-experimental docs/_site/examples.html /^<h2 id="category-cognitive-grammar-experimental"><b>Cognitive Grammar (Experimental)<\/b><\/h2>$/;" I
273
363
  category-combinatory-categorial-grammar-experimental docs/_site/examples.html /^<h2 id="category-combinatory-categorial-grammar-experimental"><b>Combinatory Categorial Grammar /;" I
@@ -280,14 +370,24 @@ category-tic-tac-toe docs/_site/examples.html /^<h2 id="category-tic-tac-toe"><b
280
370
  category-{{category.name | slugify }} docs/examples.html /^<h2 id="category-{{category.name | slugify }}"><b>{{ category.name }}<\/b><\/h2>$/;" I
281
371
  check_data lib/rsyntaxtree.rb /^ def self.check_data(text)$/;" F class:RSyntaxTree.RSGenerator
282
372
  check_data lib/rsyntaxtree.rb /^ def self.check_data(text)$/;" S class:RSyntaxTree.RSGenerator
373
+ children lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
374
+ children= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
283
375
  code docs/_site/assets/css/style.css /^code, kbd, pre, samp { font-family: monospace, monospace; font-size: 1em; }$/;" s
284
376
  contains_cjk? lib/rsyntaxtree/utils.rb /^ def contains_cjk?$/;" f class:String
285
377
  contains_emoji? lib/rsyntaxtree/utils.rb /^ def contains_emoji?$/;" f class:String
378
+ contains_phrase lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
379
+ contains_phrase= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
286
380
  content docs/_layouts/default.html /^ <main id="content" class="main-content" role="main">$/;" I
287
381
  content docs/_site/404.html /^ <main id="content" class="main-content" role="main">$/;" I
288
382
  content docs/_site/documentation.html /^ <main id="content" class="main-content" role="main">$/;" I
289
383
  content docs/_site/documentation_ja.html /^ <main id="content" class="main-content" role="main">$/;" I
290
384
  content docs/_site/examples.html /^ <main id="content" class="main-content" role="main">$/;" I
385
+ content lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
386
+ content= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
387
+ content_height lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
388
+ content_height= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
389
+ content_width lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
390
+ content_width= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
291
391
  copyToClipBoard docs/_site/documentation.html /^ function copyToClipBoard(id){$/;" f
292
392
  copyToClipBoard docs/_site/documentation_ja.html /^ function copyToClipBoard(id){$/;" f
293
393
  copyToClipBoard docs/_site/examples.html /^ function copyToClipBoard(id){$/;" f
@@ -302,17 +402,30 @@ div.grid docs/_site/assets/css/style.css /^div.grid { display: grid; grid-templa
302
402
  documentation docs/_site/documentation.html /^ <h1 class="no_toc" id="documentation">Documentation<\/h1>$/;" I
303
403
  draw-paths-between-nodes-experimental docs/_site/documentation.html /^<h3 id="draw-paths-between-nodes-experimental">Draw Paths between Nodes (experimental)<\/h3>$/;" I
304
404
  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
405
+ 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
406
+ draw_connector lib/rsyntaxtree/base_graph.rb /^ def draw_connector(id = 1)$/;" f
407
+ draw_connector lib/rsyntaxtree/base_graph.rb /^ def draw_connector(id = 1)$/;" f class:RSyntaxTree
305
408
  draw_connector lib/rsyntaxtree/base_graph.rb /^ def draw_connector(id = 1)$/;" f class:RSyntaxTree.BaseGraph
409
+ draw_connector lib/rsyntaxtree/base_graph_new.rb /^ def draw_connector(id = 1)$/;" f
410
+ draw_element lib/rsyntaxtree/svg_graph.rb /^ def draw_element(element)$/;" f class:RSyntaxTree
306
411
  draw_element lib/rsyntaxtree/svg_graph.rb /^ def draw_element(element)$/;" f class:RSyntaxTree.SVGGraph
412
+ draw_element lib/rsyntaxtree/svg_graph_.rb /^ def draw_element(element)$/;" f class:RSyntaxTree
413
+ draw_elements lib/rsyntaxtree/base_graph.rb /^ def draw_elements$/;" f
414
+ draw_elements lib/rsyntaxtree/base_graph.rb /^ def draw_elements$/;" f class:RSyntaxTree
307
415
  draw_elements lib/rsyntaxtree/base_graph.rb /^ def draw_elements$/;" f class:RSyntaxTree.BaseGraph
416
+ draw_elements lib/rsyntaxtree/base_graph_new.rb /^ def draw_elements$/;" f
417
+ draw_paths lib/rsyntaxtree/svg_graph.rb /^ def draw_paths$/;" f
308
418
  draw_paths lib/rsyntaxtree/svg_graph.rb /^ def draw_paths$/;" f class:RSyntaxTree.SVGGraph
419
+ draw_paths lib/rsyntaxtree/svg_graph_.rb /^ def draw_paths$/;" f
309
420
  draw_png lib/rsyntaxtree.rb /^ def draw_png(binary = false)$/;" f class:RSyntaxTree.RSGenerator
310
421
  draw_svg lib/rsyntaxtree.rb /^ def draw_svg$/;" f class:RSyntaxTree.RSGenerator
311
422
  draw_tree lib/rsyntaxtree.rb /^ def draw_tree$/;" f class:RSyntaxTree.RSGenerator
312
- elements lib/rsyntaxtree/elementlist.rb /^ attr_accessor :elements, :iterator $/;" A class:RSyntaxTree.ElementList
313
- elements= lib/rsyntaxtree/elementlist.rb /^ attr_accessor :elements, :iterator $/;" A class:RSyntaxTree.ElementList
423
+ elements lib/rsyntaxtree/elementlist.rb /^ attr_accessor :elements, :iterator$/;" A class:RSyntaxTree.ElementList
424
+ elements= lib/rsyntaxtree/elementlist.rb /^ attr_accessor :elements, :iterator$/;" A class:RSyntaxTree.ElementList
314
425
  elist lib/rsyntaxtree/string_parser.rb /^ attr_accessor :data, :elist, :pos, :id, :level$/;" A class:RSyntaxTree.StringParser
315
426
  elist= lib/rsyntaxtree/string_parser.rb /^ attr_accessor :data, :elist, :pos, :id, :level$/;" A class:RSyntaxTree.StringParser
427
+ enclosure lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
428
+ enclosure= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
316
429
  escape-special-characters docs/_site/documentation.html /^<h3 id="escape-special-characters">Escape Special Characters<\/h3>$/;" I
317
430
  examples docs/_site/examples.html /^ <h1 id="examples">Example Gallery<\/h1>$/;" I
318
431
  examples docs/examples.html /^<h1 id="examples">Example Gallery<\/h1>$/;" I
@@ -320,52 +433,77 @@ fieldset docs/_site/assets/css/style.css /^fieldset { border: 1px solid #c0c0c0;
320
433
  figcaption docs/_site/assets/css/style.css /^article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, s/;" s
321
434
  figure docs/_site/assets/css/style.css /^article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, s/;" s
322
435
  figure docs/_site/assets/css/style.css /^figure { margin: 1em 40px; }$/;" s
436
+ font lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
323
437
  font-styles docs/_site/documentation.html /^<h4 id="font-styles">Font Styles<\/h4>$/;" I
324
438
  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
439
+ font= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
325
440
  fonts-used-to-generate-png docs/_site/documentation.html /^<h3 id="fonts-used-to-generate-png">Fonts Used to Generate PNG<\/h3>$/;" I
441
+ fontsize lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
442
+ fontsize= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
326
443
  footer docs/_site/assets/css/style.css /^article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, s/;" s
444
+ generate_line lib/rsyntaxtree/svg_graph.rb /^ def generate_line(x1, y1, x2, y2, col, dashed = false, arrow = false, stroke_width = 1)$/;" f
327
445
  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
446
+ generate_line lib/rsyntaxtree/svg_graph_.rb /^ def generate_line(x1, y1, x2, y2, col, dashed = false, arrow = false, stroke_width = 1)$/;" f
328
447
  get_child_count lib/rsyntaxtree/elementlist.rb /^ def get_child_count(id)$/;" f class:RSyntaxTree.ElementList
329
448
  get_children lib/rsyntaxtree/elementlist.rb /^ def get_children(id)$/;" f class:RSyntaxTree.ElementList
330
449
  get_element_width lib/rsyntaxtree/elementlist.rb /^ def get_element_width(id)$/;" f class:RSyntaxTree.ElementList
450
+ get_elementlist lib/rsyntaxtree/string_parser.rb /^ def get_elementlist$/;" f
331
451
  get_elementlist lib/rsyntaxtree/string_parser.rb /^ def get_elementlist$/;" f class:RSyntaxTree.StringParser
332
452
  get_elements lib/rsyntaxtree/elementlist.rb /^ def get_elements$/;" f class:RSyntaxTree.ElementList
333
453
  get_first lib/rsyntaxtree/elementlist.rb /^ def get_first$/;" f class:RSyntaxTree.ElementList
334
454
  get_id lib/rsyntaxtree/elementlist.rb /^ def get_id(id)$/;" f class:RSyntaxTree.ElementList
335
455
  get_indent lib/rsyntaxtree/elementlist.rb /^ def get_indent(id)$/;" f class:RSyntaxTree.ElementList
456
+ get_leftmost lib/rsyntaxtree/base_graph.rb /^ def get_leftmost(id = 1)$/;" f
457
+ get_leftmost lib/rsyntaxtree/base_graph.rb /^ def get_leftmost(id = 1)$/;" f class:RSyntaxTree
336
458
  get_leftmost lib/rsyntaxtree/base_graph.rb /^ def get_leftmost(id = 1)$/;" f class:RSyntaxTree.BaseGraph
459
+ get_leftmost lib/rsyntaxtree/base_graph_new.rb /^ def get_leftmost(id = 1)$/;" f
337
460
  get_level_height lib/rsyntaxtree/elementlist.rb /^ def get_level_height$/;" f class:RSyntaxTree.ElementList
338
461
  get_metrics lib/rsyntaxtree/utils.rb /^ def get_metrics(text, font, fontsize, font_style, font_weight)$/;" f class:FontMetrics
339
462
  get_metrics lib/rsyntaxtree/utils.rb /^ def get_metrics(text, font, fontsize, font_style, font_weight)$/;" f module:FontMetrics
340
463
  get_next lib/rsyntaxtree/elementlist.rb /^ def get_next$/;" f class:RSyntaxTree.ElementList
464
+ get_next_token lib/rsyntaxtree/string_parser.rb /^ def get_next_token$/;" f
341
465
  get_next_token lib/rsyntaxtree/string_parser.rb /^ def get_next_token$/;" f class:RSyntaxTree.StringParser
466
+ get_rightmost lib/rsyntaxtree/base_graph.rb /^ def get_rightmost(id = 1)$/;" f
467
+ get_rightmost lib/rsyntaxtree/base_graph.rb /^ def get_rightmost(id = 1)$/;" f class:RSyntaxTree
342
468
  get_rightmost lib/rsyntaxtree/base_graph.rb /^ def get_rightmost(id = 1)$/;" f class:RSyntaxTree.BaseGraph
469
+ get_rightmost lib/rsyntaxtree/base_graph_new.rb /^ def get_rightmost(id = 1)$/;" f
343
470
  grid docs/assets/css/style.scss /^ div.grid {$/;" c
344
471
  grid docs/assets/css/style.scss /^div.grid {$/;" c
345
472
  h1 docs/_site/assets/css/style.css /^h1 { font-size: 2em; margin: 0.67em 0; }$/;" s
346
473
  h3 docs/_site/assets/css/style.css /^h3 { border-bottom: 1px solid lightgray; margin-top: 1em; margin-bottom: 1em; padding-bottom: 0./;" s
347
474
  header docs/_site/assets/css/style.css /^article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, s/;" s
475
+ height lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
348
476
  height lib/rsyntaxtree/svg_graph.rb /^ attr_accessor :width, :height$/;" A class:RSyntaxTree.SVGGraph
477
+ height= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
349
478
  height= lib/rsyntaxtree/svg_graph.rb /^ attr_accessor :width, :height$/;" A class:RSyntaxTree.SVGGraph
350
479
  hgroup docs/_site/assets/css/style.css /^article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, s/;" s
351
480
  hidden docs/_site/assets/css/style.css /^[hidden], template { display: none; }$/;" s
352
481
  horizontal-line docs/_site/documentation.html /^<h4 id="horizontal-line">Horizontal Line<\/h4>$/;" I
482
+ horizontal_indent lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
483
+ horizontal_indent= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
353
484
  hr docs/_site/assets/css/style.css /^hr { box-sizing: content-box; height: 0; }$/;" s
354
485
  html docs/_site/assets/css/style.css /^html { font-family: sans-serif; \/* 1 *\/ -ms-text-size-adjust: 100%; \/* 2 *\/ -webkit-text-siz/;" s
355
486
  html input[disabled] docs/_site/assets/css/style.css /^button[disabled], html input[disabled] { cursor: default; }$/;" s
356
487
  html input[type="button"] docs/_site/assets/css/style.css /^button, html input[type="button"], input[type="reset"], input[type="submit"] { -webkit-appearanc/;" s
357
- id lib/rsyntaxtree/element.rb /^ attr_accessor :id,$/;" A class:RSyntaxTree.Element
488
+ id lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
358
489
  id lib/rsyntaxtree/string_parser.rb /^ attr_accessor :data, :elist, :pos, :id, :level$/;" A class:RSyntaxTree.StringParser
359
- id= lib/rsyntaxtree/element.rb /^ attr_accessor :id,$/;" A class:RSyntaxTree.Element
490
+ id= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
360
491
  id= lib/rsyntaxtree/string_parser.rb /^ attr_accessor :data, :elist, :pos, :id, :level$/;" A class:RSyntaxTree.StringParser
361
492
  img docs/_site/assets/css/style.css /^img { border: 0; }$/;" s
362
493
  initialize lib/rsyntaxtree.rb /^ def initialize(params = {})$/;" f class:RSyntaxTree.RSGenerator
363
- initialize lib/rsyntaxtree.rb /^ def initialize(msg="Error: something unexpected occurred")$/;" f class:RSTError
494
+ initialize lib/rsyntaxtree.rb /^ def initialize(msg = "Error: something unexpected occurred")$/;" f class:RSTError
364
495
  initialize lib/rsyntaxtree/base_graph.rb /^ def initialize(element_list, params)$/;" f class:RSyntaxTree.BaseGraph
496
+ initialize lib/rsyntaxtree/base_graph.rb /^ def initialize(element_list, params, global)$/;" f class:RSyntaxTree.BaseGraph
497
+ initialize lib/rsyntaxtree/base_graph_new.rb /^ def initialize(element_list, params)$/;" f class:RSyntaxTree.BaseGraph
498
+ initialize lib/rsyntaxtree/base_graph_new.rb /^ def initialize(element_list, params, global)$/;" f class:RSyntaxTree.BaseGraph
365
499
  initialize lib/rsyntaxtree/element.rb /^ def initialize(id, parent, content, level, fontset, fontsize)$/;" f class:RSyntaxTree.Element
500
+ initialize lib/rsyntaxtree/element.rb /^ def initialize(id, parent, content, level, fontset, fontsize, global)$/;" f class:RSyntaxTree.Element
366
501
  initialize lib/rsyntaxtree/elementlist.rb /^ def initialize$/;" f class:RSyntaxTree.ElementList
367
502
  initialize lib/rsyntaxtree/string_parser.rb /^ def initialize(str, fontset, fontsize)$/;" f class:RSyntaxTree.StringParser
503
+ initialize lib/rsyntaxtree/string_parser.rb /^ def initialize(str, fontset, fontsize, global)$/;" f class:RSyntaxTree.StringParser
368
504
  initialize lib/rsyntaxtree/svg_graph.rb /^ def initialize(element_list, params)$/;" f class:RSyntaxTree.SVGGraph
505
+ initialize lib/rsyntaxtree/svg_graph.rb /^ def initialize(element_list, params, global)$/;" f class:RSyntaxTree.SVGGraph
506
+ initialize lib/rsyntaxtree/svg_graph_.rb /^ def initialize(element_list, params)$/;" f class:RSyntaxTree.SVGGraph
369
507
  input docs/_site/assets/css/style.css /^button, input, optgroup, select, textarea { color: inherit; \/* 1 *\/ font: inherit; \/* 2 *\/ m/;" s
370
508
  input docs/_site/assets/css/style.css /^input { line-height: normal; }$/;" s
371
509
  input::-moz-focus-inner docs/_site/assets/css/style.css /^button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }$/;" s
@@ -379,15 +517,23 @@ input[type="search"] ::-webkit-search-cancel-button docs/_site/assets/css/style.
379
517
  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
380
518
  input[type="submit"] docs/_site/assets/css/style.css /^button, html input[type="button"], input[type="reset"], input[type="submit"] { -webkit-appearanc/;" s
381
519
  install-fonts-for-svg docs/_site/documentation.html /^<h3 id="install-fonts-for-svg">Install Fonts for SVG<\/h3>$/;" I
382
- iterator lib/rsyntaxtree/elementlist.rb /^ attr_accessor :elements, :iterator $/;" A class:RSyntaxTree.ElementList
383
- iterator= lib/rsyntaxtree/elementlist.rb /^ attr_accessor :elements, :iterator $/;" A class:RSyntaxTree.ElementList
520
+ iterator lib/rsyntaxtree/elementlist.rb /^ attr_accessor :elements, :iterator$/;" A class:RSyntaxTree.ElementList
521
+ iterator= lib/rsyntaxtree/elementlist.rb /^ attr_accessor :elements, :iterator$/;" A class:RSyntaxTree.ElementList
384
522
  kbd docs/_site/assets/css/style.css /^code, kbd, pre, samp { font-family: monospace, monospace; font-size: 1em; }$/;" s
385
523
  legend docs/_site/assets/css/style.css /^legend { border: 0; \/* 1 *\/ padding: 0; \/* 2 *\/ }$/;" s
524
+ level lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
386
525
  level lib/rsyntaxtree/string_parser.rb /^ attr_accessor :data, :elist, :pos, :id, :level$/;" A class:RSyntaxTree.StringParser
526
+ level= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
387
527
  level= lib/rsyntaxtree/string_parser.rb /^ attr_accessor :data, :elist, :pos, :id, :level$/;" A class:RSyntaxTree.StringParser
528
+ line_to_parent lib/rsyntaxtree/svg_graph.rb /^ def line_to_parent(parent, child)$/;" f
388
529
  line_to_parent lib/rsyntaxtree/svg_graph.rb /^ def line_to_parent(parent, child)$/;" f class:RSyntaxTree.SVGGraph
530
+ line_to_parent lib/rsyntaxtree/svg_graph_.rb /^ def line_to_parent(parent, child)$/;" f
389
531
  main docs/_site/assets/css/style.css /^article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, s/;" s
532
+ make_balance lib/rsyntaxtree/base_graph.rb /^ def make_balance(id = 1)$/;" f
533
+ make_balance lib/rsyntaxtree/base_graph.rb /^ def make_balance(id = 1)$/;" f class:RSyntaxTree
390
534
  make_balance lib/rsyntaxtree/base_graph.rb /^ def make_balance(id = 1)$/;" f class:RSyntaxTree.BaseGraph
535
+ make_balance lib/rsyntaxtree/base_graph_new.rb /^ def make_balance(id = 1)$/;" f
536
+ make_tree lib/rsyntaxtree/string_parser.rb /^ def make_tree(parent)$/;" f
391
537
  make_tree lib/rsyntaxtree/string_parser.rb /^ def make_tree(parent)$/;" f class:RSyntaxTree.StringParser
392
538
  mark docs/_site/assets/css/style.css /^mark { background: #ff0; color: #000; }$/;" s
393
539
  markdown-toc docs/_site/documentation.html /^<ol id="markdown-toc">$/;" I
@@ -426,15 +572,26 @@ markdown-toc-水平線 docs/_site/documentation_ja.html /^ <li><a href="#
426
572
  menu docs/_site/assets/css/style.css /^article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, s/;" s
427
573
  nav docs/_site/assets/css/style.css /^article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, s/;" s
428
574
  newline docs/_site/documentation.html /^<h4 id="newline">Newline<\/h4>$/;" I
575
+ node_centering lib/rsyntaxtree/base_graph.rb /^ def node_centering$/;" f
576
+ node_centering lib/rsyntaxtree/base_graph.rb /^ def node_centering$/;" f class:RSyntaxTree
429
577
  node_centering lib/rsyntaxtree/base_graph.rb /^ def node_centering$/;" f class:RSyntaxTree.BaseGraph
578
+ node_centering lib/rsyntaxtree/base_graph_new.rb /^ def node_centering$/;" f
430
579
  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
431
580
  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
432
581
  optgroup docs/_site/assets/css/style.css /^button, input, optgroup, select, textarea { color: inherit; \/* 1 *\/ font: inherit; \/* 2 *\/ m/;" s
433
582
  optgroup docs/_site/assets/css/style.css /^optgroup { font-weight: bold; }$/;" s
583
+ parent lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
584
+ parent= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
434
585
  parse lib/rsyntaxtree/markup_parser.rb /^ def parse(txt)$/;" f class:Markup
435
586
  parse lib/rsyntaxtree/markup_parser.rb /^ def parse(txt)$/;" f module:Markup
587
+ parse lib/rsyntaxtree/string_parser.rb /^ def parse$/;" f
436
588
  parse lib/rsyntaxtree/string_parser.rb /^ def parse$/;" f class:RSyntaxTree.StringParser
589
+ parse_list lib/rsyntaxtree/base_graph.rb /^ def parse_list$/;" f
590
+ parse_list lib/rsyntaxtree/base_graph.rb /^ def parse_list$/;" f class:RSyntaxTree
437
591
  parse_list lib/rsyntaxtree/base_graph.rb /^ def parse_list$/;" f class:RSyntaxTree.BaseGraph
592
+ parse_list lib/rsyntaxtree/base_graph_new.rb /^ def parse_list$/;" f
593
+ path lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
594
+ path= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
438
595
  png形式を用いる場合 docs/_site/documentation_ja.html /^<h3 id="png形式を用いる場合">PNG形式を用いる場合<\/h3>$/;" I
439
596
  pos lib/rsyntaxtree/string_parser.rb /^ attr_accessor :data, :elist, :pos, :id, :level$/;" A class:RSyntaxTree.StringParser
440
597
  pos= lib/rsyntaxtree/string_parser.rb /^ attr_accessor :data, :elist, :pos, :id, :level$/;" A class:RSyntaxTree.StringParser
@@ -449,7 +606,10 @@ select docs/_site/assets/css/style.css /^button, select { text-transform: none;
449
606
  set_element_width lib/rsyntaxtree/elementlist.rb /^ def set_element_width(id, width)$/;" f class:RSyntaxTree.ElementList
450
607
  set_hierarchy lib/rsyntaxtree/elementlist.rb /^ def set_hierarchy$/;" f class:RSyntaxTree.ElementList
451
608
  set_indent lib/rsyntaxtree/elementlist.rb /^ def set_indent(id, indent)$/;" f class:RSyntaxTree.ElementList
609
+ set_tspan lib/rsyntaxtree/svg_graph.rb /^ def set_tspan(this_x, this_y, style, decoration, fontstyle, text)$/;" f
452
610
  set_tspan lib/rsyntaxtree/svg_graph.rb /^ def set_tspan(this_x, this_y, style, decoration, fontstyle, text)$/;" f class:RSyntaxTree.SVGGraph
611
+ set_tspan lib/rsyntaxtree/svg_graph_.rb /^ def set_tspan(this_x, this_y, style, decoration, fontstyle, text)$/;" f
612
+ setup lib/rsyntaxtree/element.rb /^ def setup$/;" f class:RSyntaxTree
453
613
  setup lib/rsyntaxtree/element.rb /^ def setup$/;" f class:RSyntaxTree.Element
454
614
  setup test/markup_parser_test.rb /^ def setup$/;" f class:MarkupParserTest
455
615
  skip-to-content docs/_layouts/default.html /^ <a id="skip-to-content" href="#content">Skip to the content.<\/a>$/;" I
@@ -473,6 +633,7 @@ sup docs/_site/assets/css/style.css /^sub, sup { font-size: 75%; line-height: 0;
473
633
  sup docs/_site/assets/css/style.css /^sup { top: -0.5em; }$/;" s
474
634
  svg:not(:root) docs/_site/assets/css/style.css /^svg:not(:root) { overflow: hidden; }$/;" s
475
635
  svg_data lib/rsyntaxtree/svg_graph.rb /^ def svg_data$/;" f class:RSyntaxTree.SVGGraph
636
+ svg_data lib/rsyntaxtree/svg_graph_.rb /^ def svg_data$/;" f class:RSyntaxTree.SVGGraph
476
637
  svg形式を用いる場合 docs/_site/documentation_ja.html /^<h3 id="svg形式を用いる場合">SVG形式を用いる場合<\/h3>$/;" I
477
638
  table docs/_site/assets/css/style.css /^table { border-collapse: collapse; border-spacing: 0; }$/;" s
478
639
  table-of-contents docs/_site/documentation.html /^<h3 class="no_toc" id="table-of-contents">Table of Contents<\/h3>$/;" I
@@ -540,13 +701,23 @@ text-{{example.name}} docs/examples.html /^ <div id="text-{{example.name}}" s
540
701
  textarea docs/_site/assets/css/style.css /^button, input, optgroup, select, textarea { color: inherit; \/* 1 *\/ font: inherit; \/* 2 *\/ m/;" s
541
702
  textarea docs/_site/assets/css/style.css /^textarea { overflow: auto; }$/;" s
542
703
  th docs/_site/assets/css/style.css /^td, th { padding: 0; }$/;" s
704
+ triangle lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
543
705
  triangle-square-brackets-rectangle docs/_site/documentation.html /^<h3 id="triangle-square-brackets-rectangle">Triangle, Square Brackets, Rectangle<\/h3>$/;" I
706
+ triangle= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
707
+ triangle_to_parent lib/rsyntaxtree/svg_graph.rb /^ def triangle_to_parent(parent, child)$/;" f
544
708
  triangle_to_parent lib/rsyntaxtree/svg_graph.rb /^ def triangle_to_parent(parent, child)$/;" f class:RSyntaxTree.SVGGraph
545
- valid lib/rsyntaxtree/string_parser.rb /^ def self.valid?(data)$/;" F class:RSyntaxTree.StringParser
709
+ triangle_to_parent lib/rsyntaxtree/svg_graph_.rb /^ def triangle_to_parent(parent, child)$/;" f
710
+ type lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
711
+ type= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
712
+ valid lib/rsyntaxtree/string_parser.rb /^ def self.valid?(data)$/;" F class:RSyntaxTree
546
713
  valid? lib/rsyntaxtree/string_parser.rb /^ def self.valid?(data)$/;" S class:RSyntaxTree.StringParser
714
+ vertical_indent lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
715
+ vertical_indent= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
547
716
  video docs/_site/assets/css/style.css /^audio, canvas, progress, video { display: inline-block; \/* 1 *\/ vertical-align: baseline; \/* /;" s
548
717
  whitespace-inside-label docs/_site/documentation.html /^<h4 id="whitespace-inside-label">Whitespace inside Label<\/h4>$/;" I
718
+ width lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
549
719
  width lib/rsyntaxtree/svg_graph.rb /^ attr_accessor :width, :height$/;" A class:RSyntaxTree.SVGGraph
720
+ width= lib/rsyntaxtree/element.rb /^ attr_accessor :id, :parent, :type, :level, :width, :height, :content, :content_width, :conte/;" A class:RSyntaxTree.Element
550
721
  width= lib/rsyntaxtree/svg_graph.rb /^ attr_accessor :width, :height$/;" A class:RSyntaxTree.SVGGraph
551
722
  {{ category.name }} docs/examples.html /^<h2 id="category-{{category.name | slugify }}"><b>{{ category.name }}<\/b><\/h2>$/;" i
552
723
  {{ 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,10 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "bundler/gem_tasks"
2
4
  require "rake/testtask"
3
5
 
4
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"
8
10
  end