ixyml 0.0.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 (93) hide show
  1. data/.gitignore +19 -0
  2. data/.gitignore~ +17 -0
  3. data/Gemfile +12 -0
  4. data/Gemfile.lock +44 -0
  5. data/Gemfile~ +13 -0
  6. data/LICENSE +22 -0
  7. data/README.md +29 -0
  8. data/Rakefile +2 -0
  9. data/bin/dbg_x2o +8 -0
  10. data/bin/x2y +8 -0
  11. data/bin/y2x +17 -0
  12. data/ixyml.gemspec +23 -0
  13. data/lib/ixyml.rb +10 -0
  14. data/lib/ixyml/version.rb +3 -0
  15. data/lib/ixyml/xyml.rb +821 -0
  16. data/lib/ixyml/xyml_element.rb +778 -0
  17. data/test/dirTemp/ktest00.nml.j2j.json +1 -0
  18. data/test/dirTemp/ktest00.nml.nml.xml +53 -0
  19. data/test/dirTemp/ktest00.nml.nml.yaml +74 -0
  20. data/test/dirTemp/ktest00.nml.x2j.json +1 -0
  21. data/test/dirTemp/ktest00.nml.x2x.xml +53 -0
  22. data/test/dirTemp/ktest00.nml.xyj.yaml +134 -0
  23. data/test/dirTemp/ktest00.nml.xyx.xml +53 -0
  24. data/test/dirTemp/ktest00.nml.xyx.yaml +134 -0
  25. data/test/dirTemp/ktest00.nml.y2j.json +1 -0
  26. data/test/dirTemp/ktest00.nml.y2y.yaml +74 -0
  27. data/test/dirTemp/ktest00.nml.yxy.xml +2 -0
  28. data/test/dirTemp/ktest00.nml.yxy.yaml +74 -0
  29. data/test/dirTemp/ktest01.nml.yaml +74 -0
  30. data/test/dirTemp/ktest01.yxy.xml +2 -0
  31. data/test/dirTemp/ktest01.yxy.yaml +74 -0
  32. data/test/dirTemp/test01.nml.nml.xml +21 -0
  33. data/test/dirTemp/test01.nml.nml.yaml +5 -0
  34. data/test/dirTemp/test01.nml.x2j.json +1 -0
  35. data/test/dirTemp/test01.nml.x2x.xml +21 -0
  36. data/test/dirTemp/test01.nml.xyj.yaml +18 -0
  37. data/test/dirTemp/test01.nml.xyx.xml +21 -0
  38. data/test/dirTemp/test01.nml.xyx.yaml +18 -0
  39. data/test/dirTemp/test01.nml.y2j.json +1 -0
  40. data/test/dirTemp/test01.nml.y2y.yaml +5 -0
  41. data/test/dirTemp/test01.nml.yaml +74 -0
  42. data/test/dirTemp/test01.nml.yxy.xml +3 -0
  43. data/test/dirTemp/test01.nml.yxy.yaml +5 -0
  44. data/test/dirTemp/test01.yxy.xml +2 -0
  45. data/test/dirTemp/test01.yxy.yaml +74 -0
  46. data/test/dirTemp/testBreak.nml.yaml +7 -0
  47. data/test/dirTemp/testBreak.yxy.xml +5 -0
  48. data/test/dirTemp/testBreak.yxy.yaml +7 -0
  49. data/test/dirTemp/testCDATA.nml.nml.xml +26 -0
  50. data/test/dirTemp/testCDATA.nml.x2j.json +1 -0
  51. data/test/dirTemp/testCDATA.nml.x2x.xml +26 -0
  52. data/test/dirTemp/testCDATA.nml.xyj.yaml +18 -0
  53. data/test/dirTemp/testCDATA.nml.xyx.xml +26 -0
  54. data/test/dirTemp/testCDATA.nml.xyx.yaml +18 -0
  55. data/test/dirTemp/testCDATA.nml.y2j.json +1 -0
  56. data/test/dirTemp/testEscape.nml.nml.xml +77 -0
  57. data/test/dirTemp/testEscape.nml.nml.yaml +53 -0
  58. data/test/dirTemp/testEscape.nml.x2j.json +1 -0
  59. data/test/dirTemp/testEscape.nml.x2x.xml +77 -0
  60. data/test/dirTemp/testEscape.nml.xyj.yaml +213 -0
  61. data/test/dirTemp/testEscape.nml.xyx.xml +77 -0
  62. data/test/dirTemp/testEscape.nml.xyx.yaml +213 -0
  63. data/test/dirTemp/testEscape.nml.y2j.json +1 -0
  64. data/test/dirTemp/testEscape.nml.y2y.yaml +53 -0
  65. data/test/dirTemp/testEscape.nml.yxy.xml +2 -0
  66. data/test/dirTemp/testEscape.nml.yxy.yaml +53 -0
  67. data/test/dirTemp/testNS.nml.nml.xml +21 -0
  68. data/test/dirTemp/testNS.nml.x2j.json +1 -0
  69. data/test/dirTemp/testNS.nml.x2x.xml +21 -0
  70. data/test/dirTemp/testNS.nml.xyj.yaml +19 -0
  71. data/test/dirTemp/testNS.nml.xyx.xml +21 -0
  72. data/test/dirTemp/testNS.nml.xyx.yaml +19 -0
  73. data/test/dirTemp/testNS.nml.y2j.json +1 -0
  74. data/test/test_xyml.rb +167 -0
  75. data/test/test_xyml.rb~ +167 -0
  76. data/test/test_xyml_element.rb +241 -0
  77. data/test/test_xyml_element.rb~ +111 -0
  78. data/test/testfiles/ktest00.nml.ori.json +1 -0
  79. data/test/testfiles/ktest00.nml.ori.xml +53 -0
  80. data/test/testfiles/ktest00.nml.ori.yaml +74 -0
  81. data/test/testfiles/ktest00.nml.ori.yaml~ +75 -0
  82. data/test/testfiles/ktest01.ori.yaml +75 -0
  83. data/test/testfiles/test01.nml.ori.xml +21 -0
  84. data/test/testfiles/test01.nml.ori.yaml +5 -0
  85. data/test/testfiles/test01.ori.yaml +75 -0
  86. data/test/testfiles/testBreak.ori.yaml +10 -0
  87. data/test/testfiles/testCDATA.ng.ng.xml +26 -0
  88. data/test/testfiles/testEscape.nml.ori.xml +77 -0
  89. data/test/testfiles/testEscape.nml.ori.yaml +105 -0
  90. data/test/testfiles/testNS.nml.ori.xml +21 -0
  91. data/test/testfiles/xmlTemp.xml +2 -0
  92. data/test/testfiles/xymlTemp.xyml +6 -0
  93. metadata +230 -0
@@ -0,0 +1,75 @@
1
+ ---
2
+ - quiz:
3
+ - quizUnit:
4
+ - unitText:
5
+ - format: html
6
+ - 次の
7
+ - u:
8
+ - 下線部
9
+ - の読み仮名を漢字に直せ。
10
+ - info2:
11
+ - type: defaultNumberOfLetters
12
+ - 3
13
+ - info:
14
+ - type: defaultAllotment
15
+ - 3
16
+ - question:
17
+ - type: handWriting
18
+ - questionText:
19
+ - format: html
20
+ - 古く、<u>ばいえん</u>
21
+ - でまっ黒にすすけた煉瓦壁の陰に汽車が停まると、
22
+ - info:
23
+ - type: numberOfLetters
24
+ - answer:
25
+ - fraction: 100
26
+ - text:
27
+ - 煤煙
28
+ - answer:
29
+ - fraction: 0
30
+ - text:
31
+ - 梅園
32
+ - feedback:
33
+ - text:
34
+ - これは”ばいえん”違いですね。
35
+ - source:
36
+ - author:
37
+ - 有島武郎
38
+ - title:
39
+ - 或る女(前編)
40
+ - link:
41
+ - label:
42
+ - 青空文庫
43
+ - url:
44
+ - http://www.aozora.gr.jp/
45
+ - question:
46
+ - type: handWriting
47
+ - questionText:
48
+ - format: html
49
+ - 2古く
50
+ - u:
51
+ - ばいえん
52
+ - でまっ黒にすすけた煉瓦壁の陰に汽車が停まると、
53
+ - info:
54
+ - type: numberOfLetters
55
+ - answer:
56
+ - fraction: 100
57
+ - text:
58
+ - 2煤煙
59
+ - answer:
60
+ - fraction: 0
61
+ - text:
62
+ - 2梅園
63
+ - feedback:
64
+ - text:
65
+ - 2これは”ばいえん”違いですね。
66
+ - source:
67
+ - author:
68
+ - 2有島武郎
69
+ - title:
70
+ - 2或る女(前編)
71
+ - link:
72
+ - label:
73
+ - 2青空文庫
74
+ - url:
75
+ - 2http://www.aozora.gr.jp/
@@ -0,0 +1,75 @@
1
+ - quiz:
2
+ - quizUnit:
3
+ - unitText:
4
+ - format: html
5
+ - 次の
6
+ - u:
7
+ - 下線部
8
+ - の読み仮名を漢字に直せ。
9
+ - info2:
10
+ - type: defaultNumberOfLetters
11
+ - 3
12
+ - info3:
13
+ - type: defaultAllotment
14
+ - 3
15
+ - question:
16
+ - type: handWriting
17
+ - questionText:
18
+ - format: html
19
+ - 古く、
20
+ - ばいえん
21
+ - でまっ黒にすすけた煉瓦壁の陰に汽車が停まると、
22
+ - info4:
23
+ - type: numberOfLetters
24
+ - answer:
25
+ - fraction: 100
26
+ - text:
27
+ - 煤煙
28
+ - answer:
29
+ - fraction: 0
30
+ - text:
31
+ - 梅園
32
+ - feedback:
33
+ - text:
34
+ - これは”ばいえん”違いですね。
35
+ - source:
36
+ - author:
37
+ - 有島武郎
38
+ - title:
39
+ - 或る女(前編)
40
+ - link:
41
+ - label:
42
+ - 青空文庫
43
+ - url:
44
+ - http://www.aozora.gr.jp/
45
+ - question:
46
+ - type: handWriting
47
+ - questionText:
48
+ - format: html
49
+ - 2古く
50
+ - u:
51
+ - ばいえん
52
+ - でまっ黒にすすけた煉瓦壁の陰に汽車が停まると、
53
+ - info5:
54
+ - type: numberOfLetters
55
+ - answer:
56
+ - fraction: 100
57
+ - text:
58
+ - 2煤煙
59
+ - answer:
60
+ - fraction: 0
61
+ - text:
62
+ - 2梅園
63
+ - feedback:
64
+ - text:
65
+ - 2これは”ばいえん”違いですね。
66
+ - source:
67
+ - author:
68
+ - 2有島武郎
69
+ - title:
70
+ - 2或る女(前編)
71
+ - link:
72
+ - label:
73
+ - 2青空文庫
74
+ - url:
75
+ - 2http://www.aozora.gr.jp/
@@ -0,0 +1,21 @@
1
+ <?xml version='1.0' encoding='UTF-8'?>
2
+ <quiz>
3
+ <group1>
4
+ <text1>
5
+ abcdefg
6
+ hijklmnopq
7
+ rstuvwxyz
8
+ </text1>
9
+ <text2>
10
+ abcdefg
11
+ hijklmnopq
12
+ rstuvwxyz
13
+ </text2>
14
+ </group1>
15
+ <group2>
16
+ <text1>
17
+ abcdefg
18
+ hijklmnopq
19
+ </text1>
20
+ </group2>
21
+ </quiz>
@@ -0,0 +1,5 @@
1
+ ---
2
+ - quiz:
3
+ - group1:
4
+ - text:
5
+ - "adfadfads asdfadsfasf adfadfadsf dafadfa\nasdfasdfasdf adfadfasdfas adfadsf dsfdas, daff"
@@ -0,0 +1,75 @@
1
+ - quiz:
2
+ - quizUnit:
3
+ - unitText:
4
+ - format: html
5
+ - 次の
6
+ - u:
7
+ - 下線部
8
+ - の読み仮名を漢字に直せ。
9
+ - info2:
10
+ - type: defaultNumberOfLetters
11
+ - 3
12
+ - info3:
13
+ - type: defaultAllotment
14
+ - 3
15
+ - question:
16
+ - type: handWriting
17
+ - questionText:
18
+ - format: html
19
+ - 古く、
20
+ - ばいえん
21
+ - でまっ黒にすすけた煉瓦壁の陰に汽車が停まると、
22
+ - info4:
23
+ - type: numberOfLetters
24
+ - answer:
25
+ - fraction: 100
26
+ - text:
27
+ - 煤煙
28
+ - answer:
29
+ - fraction: 0
30
+ - text:
31
+ - 梅園
32
+ - feedback:
33
+ - text:
34
+ - これは”ばいえん”違いですね。
35
+ - source:
36
+ - author:
37
+ - 有島武郎
38
+ - title:
39
+ - 或る女(前編)
40
+ - link:
41
+ - label:
42
+ - 青空文庫
43
+ - url:
44
+ - http://www.aozora.gr.jp/
45
+ - question:
46
+ - type: handWriting
47
+ - questionText:
48
+ - format: html
49
+ - 2古く
50
+ - u:
51
+ - ばいえん
52
+ - でまっ黒にすすけた煉瓦壁の陰に汽車が停まると、
53
+ - info5:
54
+ - type: numberOfLetters
55
+ - answer:
56
+ - fraction: 100
57
+ - text:
58
+ - 2煤煙
59
+ - answer:
60
+ - fraction: 0
61
+ - text:
62
+ - 2梅園
63
+ - feedback:
64
+ - text:
65
+ - 2これは”ばいえん”違いですね。
66
+ - source:
67
+ - author:
68
+ - 2有島武郎
69
+ - title:
70
+ - 2或る女(前編)
71
+ - link:
72
+ - label:
73
+ - 2青空文庫
74
+ - url:
75
+ - 2http://www.aozora.gr.jp/
@@ -0,0 +1,10 @@
1
+ ---
2
+ - quiz:
3
+ - group1:
4
+ - text:
5
+ - |
6
+ abcd
7
+ efghi
8
+ jkl
9
+ - text2:
10
+ - xyz
@@ -0,0 +1,26 @@
1
+ <?xml version='1.0' encoding='UTF-8'?>
2
+ <quiz>
3
+ <group1>
4
+ <text1>
5
+ abcdefg
6
+ hijklmnopq
7
+ rstuvwxyz
8
+ </text1>
9
+ <![CDATA[
10
+ aaa
11
+
12
+ ]]>
13
+
14
+ <text2>
15
+ abcdefg
16
+ hijklmnopq
17
+ rstuvwxyz
18
+ </text2>
19
+ </group1>
20
+ <group2>
21
+ <text1>
22
+ abcdefg
23
+ hijklmnopq
24
+ </text1>
25
+ </group2>
26
+ </quiz>
@@ -0,0 +1,77 @@
1
+ <?xml version='1.0' encoding='UTF-8'?>
2
+ <quiz>
3
+ <group1>
4
+ <e>-</e>
5
+ <e>?a</e>
6
+ <e>aa?</e>
7
+ <e>?</e>
8
+ <e>a:</e>
9
+ <e>:a</e>
10
+ <e>:</e>
11
+ <e>a:a</e>
12
+ <e>a:a:</e>
13
+ <e>a,</e>
14
+ <e>a[</e>
15
+ <e>a]</e>
16
+ <e>[]</e>
17
+ <e>[</e>
18
+ <e>]</e>
19
+ <e>a{</e>
20
+ <e>a}</e>
21
+ <e>{}</e>
22
+ <e>{</e>
23
+ <e>}</e>
24
+ <e>@</e>
25
+ <e>#</e>
26
+ <e>a &amp;</e>
27
+ <e>!</e>
28
+ <e>&lt;</e>
29
+ <e>&gt;</e>
30
+ <e>&apos;</e>
31
+ <e>&quot;&apos;&quot;</e>
32
+ <e>&quot;&quot;</e>
33
+ <e>&apos;&quot;&apos;</e>
34
+ <e>\</e>
35
+ <e>\:</e>
36
+ <e>&quot;aa\&quot;aa&quot;</e>
37
+ <e>&quot;\&quot;&quot;</e>
38
+ <e>%</e>
39
+ <e>`</e>
40
+ <e>&amp;</e>
41
+ </group1>
42
+ <group2>
43
+ <e a00=''/>
44
+ <e a01='-'/>
45
+ <e a02='?'/>
46
+ <e a03=','/>
47
+ <e a04='['/>
48
+ <e a05=']'/>
49
+ <e a06='{'/>
50
+ <e a07='}'/>
51
+ <e a08='@'/>
52
+ <e a09='before#after'/>
53
+ <e a10='&amp;'/>
54
+ <e a11='!'/>
55
+ <e a12='&lt;'/>
56
+ <e a13='&gt;'/>
57
+ <e a14='&quot;'/>
58
+ <e a15='&apos;'/>
59
+ <e a16='&quot;&apos;&quot;'/>
60
+ <e a17='&quot;&quot;'/>
61
+ <e a18='&apos;&quot;&apos;'/>
62
+ <e a19='\'/>
63
+ <e a20='\:'/>
64
+ <e a21='&quot;aa\&quot;aa&quot;'/>
65
+ <e a22='&quot;\&quot;&quot;'/>
66
+ <e a23='%'/>
67
+ <e a24='`'/>
68
+ <e a25='
69
+ '/>
70
+ <e a26='
71
+ a'/>
72
+ <e a27=' '/>
73
+ <e a28=' a '/>
74
+ <e a29='\t'/>
75
+ <e a30='\n'/>
76
+ </group2>
77
+ </quiz>
@@ -0,0 +1,105 @@
1
+ ---
2
+ - quiz:
3
+ - group1:
4
+ - text:
5
+ - "abc: deedfadsfads"
6
+ # - - failure
7
+ - text:
8
+ - -a
9
+ - text:
10
+ - ?a
11
+ - text:
12
+ - aa?
13
+ # - text:
14
+ # - ?
15
+ # - text:
16
+ # - a: 'a' regarded as an attribute name
17
+ # - text:
18
+ # - :a ':a' regarded as 'a'
19
+ # - text:
20
+ # - a:a: a:a regarded as an attribute name.
21
+ # - a: a: error
22
+ # - text:
23
+ # - ,a error
24
+ - text:
25
+ - a,
26
+ - text:
27
+ - a[
28
+ - text:
29
+ # - [a error
30
+ - a]
31
+ - text:
32
+ # - {a error
33
+ - a}
34
+ # - @a error
35
+ - text:
36
+ - a@
37
+ # - text:
38
+ # - #asdfdas no effection
39
+ - text:
40
+ - before1#after1
41
+ # - text:
42
+ # - before2 #after2
43
+ # '#after2' regarded as a comment
44
+ # - a& failure
45
+ # - *a error
46
+ # - &a error
47
+ - test:
48
+ - a &
49
+ - text:
50
+ - a !
51
+ # -!a
52
+ # - !
53
+ # no effection
54
+ # - |a error
55
+ - text:
56
+ - a <
57
+ - text:
58
+ - a >
59
+ # - >a error
60
+ - test:
61
+ - a '
62
+ - test:
63
+ - "'"
64
+ # - 'a error
65
+ # - "\'" &apos in xml
66
+ # - text:
67
+ # - "''" &apos
68
+ # - text:
69
+ # - a'
70
+ # - text:
71
+ # - ''a
72
+ ## - ''
73
+ - test:
74
+ - "aa\"aa"
75
+ - test:
76
+ - "\""
77
+ # - test:
78
+ # - a" failure
79
+ - text:
80
+ - a%
81
+ # - %a error
82
+ # - @a
83
+ - text:
84
+ - a`
85
+ # - `a error
86
+ - text3:
87
+ - a00: attribute
88
+ - a01:
89
+ # - a02: -
90
+ - a02: a-
91
+ - a03: ?a
92
+ - a04: aa?
93
+ # - a05: ?
94
+ # - a06: a:
95
+ # - a07: :a not ":a" but "a"
96
+ # - a08: a: a: error
97
+ # - a09: ,a error
98
+ - a10: a,
99
+ - a11: a[
100
+ # - a12: [a error
101
+ - a13: a]
102
+ # - a14: {a error
103
+ - a15: a}
104
+ # - a16: @a error
105
+ # - a17: #