rsyntaxtree 1.0.7 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.tags +1 -31
- data/lib/rsyntaxtree/base_graph.rb +2 -0
- data/lib/rsyntaxtree/markup_parser.rb +1 -1
- data/lib/rsyntaxtree/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fb823fad881e0e75cfdee19fa41eeb5f02cd7268fcdb529e9558dbc2a9213ebd
|
|
4
|
+
data.tar.gz: 20a5ac8b3ca2679a948eb65fd6e22ecbe5226634b1b484c6673ff32a12d148f6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6c03a76be75c9edc999143b04bfdb5981605155ca594ad8f6458d9eb26b6043bfe30c7a37e45512dbbe812cd31a97cbadbed2d82d0c78817bd5793d73acff709
|
|
7
|
+
data.tar.gz: 55358b98d749d55279922b53887166f730eeafb5da3fea6a3bd76fea3ddc9c0d7b170a84a86fc9f662b2759e832dc843a951884def1090cbffc3a35973ab75a6
|
data/.tags
CHANGED
|
@@ -147,7 +147,6 @@
|
|
|
147
147
|
404 docs/404.html /^ <h1>404<\/h1>$/;" h
|
|
148
148
|
404 docs/_site/404.html /^ <h1>404<\/h1>$/;" h
|
|
149
149
|
Author README.md /^### Author$/;" S
|
|
150
|
-
BaseGraph lib/rsyntaxtree/base_graph.rb /^ class BaseGraph$/;" c class:RSyntaxTree
|
|
151
150
|
BaseGraph lib/rsyntaxtree/base_graph.rb /^ class BaseGraph$/;" c module:RSyntaxTree
|
|
152
151
|
Basic Usage docs/_site/documentation.html /^<h3 id="basic-usage">Basic Usage<\/h3>$/;" j
|
|
153
152
|
Basic Usage docs/documentation.md /^### Basic Usage$/;" S chapter:Documentation
|
|
@@ -163,9 +162,7 @@ Draw Paths between Nodes (experimental) docs/_site/documentation.html /^<h3 id="
|
|
|
163
162
|
Draw Paths between Nodes (experimental) docs/documentation.md /^### Draw Paths between Nodes (experimental)$/;" S chapter:Documentation
|
|
164
163
|
ETYPE_LEAF lib/rsyntaxtree.rb /^ETYPE_LEAF = 2$/;" C
|
|
165
164
|
ETYPE_NODE lib/rsyntaxtree.rb /^ETYPE_NODE = 1$/;" C
|
|
166
|
-
Element lib/rsyntaxtree/element.rb /^ class Element$/;" c class:RSyntaxTree
|
|
167
165
|
Element lib/rsyntaxtree/element.rb /^ class Element$/;" c module:RSyntaxTree
|
|
168
|
-
ElementList lib/rsyntaxtree/elementlist.rb /^ class ElementList$/;" c class:RSyntaxTree
|
|
169
166
|
ElementList lib/rsyntaxtree/elementlist.rb /^ class ElementList$/;" c module:RSyntaxTree
|
|
170
167
|
Escape Special Characters docs/_site/documentation.html /^<h3 id="escape-special-characters">Escape Special Characters<\/h3>$/;" j
|
|
171
168
|
Escape Special Characters docs/documentation.md /^### Escape Special Characters$/;" S chapter:Documentation
|
|
@@ -195,7 +192,6 @@ Newline docs/documentation.md /^#### Newline$/;" t subsection:Documentation""Fon
|
|
|
195
192
|
PNG形式を用いる場合 docs/_site/documentation_ja.html /^<h3 id="png形式を用いる場合">PNG形式を用いる場合<\/h3>$/;" j
|
|
196
193
|
PNG形式を用いる場合 docs/documentation_ja.md /^### PNG形式を用いる場合$/;" S chapter:ドキュメンテーション
|
|
197
194
|
Phonology docs/_site/examples.html /^<h2 id="category-phonology"><b>Phonology<\/b><\/h2>$/;" i
|
|
198
|
-
RSGenerator lib/rsyntaxtree.rb /^ class RSGenerator$/;" c class:RSyntaxTree
|
|
199
195
|
RSGenerator lib/rsyntaxtree.rb /^ class RSGenerator$/;" c module:RSyntaxTree
|
|
200
196
|
RSTError lib/rsyntaxtree.rb /^class RSTError < StandardError$/;" c
|
|
201
197
|
RSyntaxTree docs/_site/404.html /^ <\/h1>$/;" h
|
|
@@ -214,12 +210,10 @@ RSyntaxTree | Syntax tree generator made with Ruby docs/_site/documentation.html
|
|
|
214
210
|
RSyntaxTree | Syntax tree generator made with Ruby docs/_site/documentation_ja.html /^<title>RSyntaxTree | Syntax tree generator made with Ruby<\/title>$/;" j
|
|
215
211
|
RSyntaxTree | Syntax tree generator made with Ruby docs/_site/examples.html /^<title>RSyntaxTree | Syntax tree generator made with Ruby<\/title>$/;" j
|
|
216
212
|
SUBSCRIPT_CONST lib/rsyntaxtree.rb /^SUBSCRIPT_CONST = 0.7$/;" C
|
|
217
|
-
SVGGraph lib/rsyntaxtree/svg_graph.rb /^ class SVGGraph < BaseGraph$/;" c class:RSyntaxTree
|
|
218
213
|
SVGGraph lib/rsyntaxtree/svg_graph.rb /^ class SVGGraph < BaseGraph$/;" c module:RSyntaxTree
|
|
219
214
|
SVG形式を用いる場合 docs/_site/documentation_ja.html /^<h3 id="svg形式を用いる場合">SVG形式を用いる場合<\/h3>$/;" j
|
|
220
215
|
SVG形式を用いる場合 docs/documentation_ja.md /^### SVG形式を用いる場合$/;" S chapter:ドキュメンテーション
|
|
221
216
|
String lib/rsyntaxtree/utils.rb /^class String$/;" c
|
|
222
|
-
StringParser lib/rsyntaxtree/string_parser.rb /^ class StringParser$/;" c class:RSyntaxTree
|
|
223
217
|
StringParser lib/rsyntaxtree/string_parser.rb /^ class StringParser$/;" c module:RSyntaxTree
|
|
224
218
|
Subscript and Superscript docs/documentation.md /^#### Subscript and Superscript$/;" t subsection:Documentation""Font Styles, Text Decoration, and Sub/Superscripts
|
|
225
219
|
Syntax tree generator made with Ruby docs/_site/404.html /^ <h2 class="project-tagline">Syntax tree generator made with Ruby<\/h2>$/;" i
|
|
@@ -233,7 +227,7 @@ Tic-Tac-Toe docs/_site/examples.html /^<h2 id="category-tic-tac-toe"><b>Tic-Tac-
|
|
|
233
227
|
Triangle, Square Brackets, Rectangle docs/_site/documentation.html /^<h3 id="triangle-square-brackets-rectangle">Triangle, Square Brackets, Rectangle<\/h3>$/;" j
|
|
234
228
|
Triangle, Square Brackets, Rectangle docs/documentation.md /^### Triangle, Square Brackets, Rectangle$/;" S chapter:Documentation
|
|
235
229
|
Usage README.md /^### Usage$/;" S
|
|
236
|
-
VERSION lib/rsyntaxtree/version.rb /^ VERSION = "1.0.
|
|
230
|
+
VERSION lib/rsyntaxtree/version.rb /^ VERSION = "1.0.8"$/;" C module:RSyntaxTree
|
|
237
231
|
WHITESPACE_BLOCK lib/rsyntaxtree.rb /^WHITESPACE_BLOCK = "■"$/;" C
|
|
238
232
|
Web Interface README.md /^### Web Interface$/;" S
|
|
239
233
|
Whitespace inside Label docs/documentation.md /^#### Whitespace inside Label$/;" t subsection:Documentation""Font Styles, Text Decoration, and Sub/Superscripts
|
|
@@ -278,7 +272,6 @@ category-head-driven-phrase-structure-grammar-experimental docs/_site/examples.h
|
|
|
278
272
|
category-phonology docs/_site/examples.html /^<h2 id="category-phonology"><b>Phonology<\/b><\/h2>$/;" I
|
|
279
273
|
category-tic-tac-toe docs/_site/examples.html /^<h2 id="category-tic-tac-toe"><b>Tic-Tac-Toe<\/b><\/h2>$/;" I
|
|
280
274
|
category-{{category.name | slugify }} docs/examples.html /^<h2 id="category-{{category.name | slugify }}"><b>{{ category.name }}<\/b><\/h2>$/;" I
|
|
281
|
-
check_data lib/rsyntaxtree.rb /^ def self.check_data(text)$/;" F class:RSyntaxTree.RSGenerator
|
|
282
275
|
check_data lib/rsyntaxtree.rb /^ def self.check_data(text)$/;" S class:RSyntaxTree.RSGenerator
|
|
283
276
|
code docs/_site/assets/css/style.css /^code, kbd, pre, samp { font-family: monospace, monospace; font-size: 1em; }$/;" s
|
|
284
277
|
contains_cjk? lib/rsyntaxtree/utils.rb /^ def contains_cjk?$/;" f class:String
|
|
@@ -288,10 +281,6 @@ content docs/_site/404.html /^ <main id="content" class="main-content" role="
|
|
|
288
281
|
content docs/_site/documentation.html /^ <main id="content" class="main-content" role="main">$/;" I
|
|
289
282
|
content docs/_site/documentation_ja.html /^ <main id="content" class="main-content" role="main">$/;" I
|
|
290
283
|
content docs/_site/examples.html /^ <main id="content" class="main-content" role="main">$/;" I
|
|
291
|
-
copyToClipBoard docs/_site/documentation.html /^ function copyToClipBoard(id){$/;" f
|
|
292
|
-
copyToClipBoard docs/_site/documentation_ja.html /^ function copyToClipBoard(id){$/;" f
|
|
293
|
-
copyToClipBoard docs/_site/examples.html /^ function copyToClipBoard(id){$/;" f
|
|
294
|
-
copyToClipBoard docs/examples.html /^ function copyToClipBoard(id){$/;" f
|
|
295
284
|
data lib/rsyntaxtree/string_parser.rb /^ attr_accessor :data, :elist, :pos, :id, :level$/;" A class:RSyntaxTree.StringParser
|
|
296
285
|
data= lib/rsyntaxtree/string_parser.rb /^ attr_accessor :data, :elist, :pos, :id, :level$/;" A class:RSyntaxTree.StringParser
|
|
297
286
|
default Rakefile /^task default: "test"$/;" t
|
|
@@ -335,7 +324,6 @@ get_id lib/rsyntaxtree/elementlist.rb /^ def get_id(id)$/;" f class:RSyntaxTr
|
|
|
335
324
|
get_indent lib/rsyntaxtree/elementlist.rb /^ def get_indent(id)$/;" f class:RSyntaxTree.ElementList
|
|
336
325
|
get_leftmost lib/rsyntaxtree/base_graph.rb /^ def get_leftmost(id = 1)$/;" f class:RSyntaxTree.BaseGraph
|
|
337
326
|
get_level_height lib/rsyntaxtree/elementlist.rb /^ def get_level_height$/;" f class:RSyntaxTree.ElementList
|
|
338
|
-
get_metrics lib/rsyntaxtree/utils.rb /^ def get_metrics(text, font, fontsize, font_style, font_weight)$/;" f class:FontMetrics
|
|
339
327
|
get_metrics lib/rsyntaxtree/utils.rb /^ def get_metrics(text, font, fontsize, font_style, font_weight)$/;" f module:FontMetrics
|
|
340
328
|
get_next lib/rsyntaxtree/elementlist.rb /^ def get_next$/;" f class:RSyntaxTree.ElementList
|
|
341
329
|
get_next_token lib/rsyntaxtree/string_parser.rb /^ def get_next_token$/;" f class:RSyntaxTree.StringParser
|
|
@@ -431,7 +419,6 @@ ns59d2ecb30101 docs/_site/feed.xml /^<?xml version="1.0" encoding="utf-8"?><feed
|
|
|
431
419
|
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
420
|
optgroup docs/_site/assets/css/style.css /^button, input, optgroup, select, textarea { color: inherit; \/* 1 *\/ font: inherit; \/* 2 *\/ m/;" s
|
|
433
421
|
optgroup docs/_site/assets/css/style.css /^optgroup { font-weight: bold; }$/;" s
|
|
434
|
-
parse lib/rsyntaxtree/markup_parser.rb /^ def parse(txt)$/;" f class:Markup
|
|
435
422
|
parse lib/rsyntaxtree/markup_parser.rb /^ def parse(txt)$/;" f module:Markup
|
|
436
423
|
parse lib/rsyntaxtree/string_parser.rb /^ def parse$/;" f class:RSyntaxTree.StringParser
|
|
437
424
|
parse_list lib/rsyntaxtree/base_graph.rb /^ def parse_list$/;" f class:RSyntaxTree.BaseGraph
|
|
@@ -478,42 +465,26 @@ table docs/_site/assets/css/style.css /^table { border-collapse: collapse; borde
|
|
|
478
465
|
table-of-contents docs/_site/documentation.html /^<h3 class="no_toc" id="table-of-contents">Table of Contents<\/h3>$/;" I
|
|
479
466
|
td docs/_site/assets/css/style.css /^td, th { padding: 0; }$/;" s
|
|
480
467
|
template docs/_site/assets/css/style.css /^[hidden], template { display: none; }$/;" s
|
|
481
|
-
test_evaluator test/markup_parser_test.rb /^ def test_evaluator$/;" f
|
|
482
468
|
test_evaluator test/markup_parser_test.rb /^ def test_evaluator$/;" f class:MarkupParserTest
|
|
483
|
-
test_rule_bold test/markup_parser_test.rb /^ def test_rule_bold$/;" f
|
|
484
469
|
test_rule_bold test/markup_parser_test.rb /^ def test_rule_bold$/;" f class:MarkupParserTest
|
|
485
|
-
test_rule_bolditalic test/markup_parser_test.rb /^ def test_rule_bolditalic$/;" f
|
|
486
470
|
test_rule_bolditalic test/markup_parser_test.rb /^ def test_rule_bolditalic$/;" f class:MarkupParserTest
|
|
487
|
-
test_rule_border test/markup_parser_test.rb /^ def test_rule_border$/;" f
|
|
488
471
|
test_rule_border test/markup_parser_test.rb /^ def test_rule_border$/;" f class:MarkupParserTest
|
|
489
|
-
test_rule_box test/markup_parser_test.rb /^ def test_rule_box$/;" f
|
|
490
472
|
test_rule_box test/markup_parser_test.rb /^ def test_rule_box$/;" f class:MarkupParserTest
|
|
491
473
|
test_rule_brackets test/markup_parser_test.rb /^ def test_rule_brackets$/;" f class:MarkupParserTest
|
|
492
474
|
test_rule_cr test/markup_parser_test.rb /^ def test_rule_cr$/;" f class:MarkupParserTest
|
|
493
475
|
test_rule_escaped test/markup_parser_test.rb /^ def test_rule_escaped$/;" f class:MarkupParserTest
|
|
494
|
-
test_rule_italic test/markup_parser_test.rb /^ def test_rule_italic$/;" f
|
|
495
476
|
test_rule_italic test/markup_parser_test.rb /^ def test_rule_italic$/;" f class:MarkupParserTest
|
|
496
|
-
test_rule_line test/markup_parser_test.rb /^ def test_rule_line$/;" f
|
|
497
477
|
test_rule_line test/markup_parser_test.rb /^ def test_rule_line$/;" f class:MarkupParserTest
|
|
498
|
-
test_rule_lines test/markup_parser_test.rb /^ def test_rule_lines$/;" f
|
|
499
478
|
test_rule_lines test/markup_parser_test.rb /^ def test_rule_lines$/;" f class:MarkupParserTest
|
|
500
|
-
test_rule_linethrough test/markup_parser_test.rb /^ def test_rule_linethrough$/;" f
|
|
501
479
|
test_rule_linethrough test/markup_parser_test.rb /^ def test_rule_linethrough$/;" f class:MarkupParserTest
|
|
502
|
-
test_rule_markup test/markup_parser_test.rb /^ def test_rule_markup$/;" f
|
|
503
480
|
test_rule_markup test/markup_parser_test.rb /^ def test_rule_markup$/;" f class:MarkupParserTest
|
|
504
|
-
test_rule_non_escaped test/markup_parser_test.rb /^ def test_rule_non_escaped$/;" f
|
|
505
481
|
test_rule_non_escaped test/markup_parser_test.rb /^ def test_rule_non_escaped$/;" f class:MarkupParserTest
|
|
506
|
-
test_rule_overline test/markup_parser_test.rb /^ def test_rule_overline$/;" f
|
|
507
482
|
test_rule_overline test/markup_parser_test.rb /^ def test_rule_overline$/;" f class:MarkupParserTest
|
|
508
483
|
test_rule_path test/markup_parser_test.rb /^ def test_rule_path$/;" f class:MarkupParserTest
|
|
509
|
-
test_rule_subscript test/markup_parser_test.rb /^ def test_rule_subscript$/;" f
|
|
510
484
|
test_rule_subscript test/markup_parser_test.rb /^ def test_rule_subscript$/;" f class:MarkupParserTest
|
|
511
|
-
test_rule_superscript test/markup_parser_test.rb /^ def test_rule_superscript$/;" f
|
|
512
485
|
test_rule_superscript test/markup_parser_test.rb /^ def test_rule_superscript$/;" f class:MarkupParserTest
|
|
513
|
-
test_rule_text test/markup_parser_test.rb /^ def test_rule_text$/;" f
|
|
514
486
|
test_rule_text test/markup_parser_test.rb /^ def test_rule_text$/;" f class:MarkupParserTest
|
|
515
487
|
test_rule_triangle test/markup_parser_test.rb /^ def test_rule_triangle$/;" f class:MarkupParserTest
|
|
516
|
-
test_rule_underline test/markup_parser_test.rb /^ def test_rule_underline$/;" f
|
|
517
488
|
test_rule_underline test/markup_parser_test.rb /^ def test_rule_underline$/;" f class:MarkupParserTest
|
|
518
489
|
text-001 docs/_site/examples.html /^ <div id="text-001" style='max-height: 600px; overflow-y: auto; margin-bottom: 20px;'>$/;" I
|
|
519
490
|
text-002 docs/_site/examples.html /^ <div id="text-002" style='max-height: 600px; overflow-y: auto; margin-bottom: 20px;'>$/;" I
|
|
@@ -542,7 +513,6 @@ textarea docs/_site/assets/css/style.css /^textarea { overflow: auto; }$/;" s
|
|
|
542
513
|
th docs/_site/assets/css/style.css /^td, th { padding: 0; }$/;" s
|
|
543
514
|
triangle-square-brackets-rectangle docs/_site/documentation.html /^<h3 id="triangle-square-brackets-rectangle">Triangle, Square Brackets, Rectangle<\/h3>$/;" I
|
|
544
515
|
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
|
|
546
516
|
valid? lib/rsyntaxtree/string_parser.rb /^ def self.valid?(data)$/;" S class:RSyntaxTree.StringParser
|
|
547
517
|
video docs/_site/assets/css/style.css /^audio, canvas, progress, video { display: inline-block; \/* 1 *\/ vertical-align: baseline; \/* /;" s
|
|
548
518
|
whitespace-inside-label docs/_site/documentation.html /^<h4 id="whitespace-inside-label">Whitespace inside Label<\/h4>$/;" I
|
|
@@ -187,6 +187,8 @@ module RSyntaxTree
|
|
|
187
187
|
elsif(@leafstyle == "nothing")
|
|
188
188
|
if child.triangle
|
|
189
189
|
triangle_to_parent(parent, child)
|
|
190
|
+
elsif ETYPE_LEAF != child.type
|
|
191
|
+
line_to_parent(parent, child)
|
|
190
192
|
elsif ETYPE_LEAF == child.type
|
|
191
193
|
child.vertical_indent = parent.vertical_indent + parent.content_height + $height_connector / 2
|
|
192
194
|
end
|
data/lib/rsyntaxtree/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rsyntaxtree
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Yoichiro Hasebe
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-11-
|
|
11
|
+
date: 2022-11-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rmagick
|
|
@@ -211,7 +211,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
211
211
|
- !ruby/object:Gem::Version
|
|
212
212
|
version: '0'
|
|
213
213
|
requirements: []
|
|
214
|
-
rubygems_version: 3.3.
|
|
214
|
+
rubygems_version: 3.3.3
|
|
215
215
|
signing_key:
|
|
216
216
|
specification_version: 4
|
|
217
217
|
summary: RSyntaxTree is a graphical syntax tree generator written in Ruby
|