aozora2html 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +2 -3
- data/.gitignore +1 -0
- data/.rubocop.yml +3 -0
- data/CHANGELOG.md +15 -0
- data/aozora2html.gemspec +2 -2
- data/lib/aozora2html/midashi_counter.rb +32 -0
- data/lib/aozora2html/tag/ruby.rb +1 -1
- data/lib/aozora2html/version.rb +1 -1
- data/lib/aozora2html.rb +21 -50
- data/sample/chukiichiran_kinyurei.html +27 -27
- data/sample/chukiichiran_kinyurei.txt +1 -1
- metadata +23 -72
- data/test/test_aozora2html.rb +0 -368
- data/test/test_aozora_accent_parser.rb +0 -48
- data/test/test_command_parse.rb +0 -216
- data/test/test_compat.rb +0 -10
- data/test/test_dakuten_katakana_tag.rb +0 -25
- data/test/test_decorate_tag.rb +0 -27
- data/test/test_dir_tag.rb +0 -27
- data/test/test_editor_note_tag.rb +0 -25
- data/test/test_exception.rb +0 -25
- data/test/test_font_size_tag.rb +0 -44
- data/test/test_gaiji_tag.rb +0 -50
- data/test/test_header.rb +0 -45
- data/test/test_helper.rb +0 -7
- data/test/test_i18n.rb +0 -39
- data/test/test_img_tag.rb +0 -27
- data/test/test_inline_caption_tag.rb +0 -27
- data/test/test_inline_font_size_tag.rb +0 -37
- data/test/test_inline_keigakomi_tag.rb +0 -27
- data/test/test_inline_yokogumi_tag.rb +0 -27
- data/test/test_jizume_tag.rb +0 -27
- data/test/test_jstream.rb +0 -60
- data/test/test_kaeriten_tag.rb +0 -27
- data/test/test_keigakomi_tag.rb +0 -33
- data/test/test_midashi_tag.rb +0 -39
- data/test/test_multiline_caption_tag.rb +0 -27
- data/test/test_multiline_midashi_tag.rb +0 -54
- data/test/test_multiline_style_tag.rb +0 -27
- data/test/test_multiline_yokogumi_tag.rb +0 -27
- data/test/test_okurigana_tag.rb +0 -27
- data/test/test_ruby_parse.rb +0 -130
- data/test/test_ruby_tag.rb +0 -27
- data/test/test_tag_parser.rb +0 -82
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c5603337dda546fd478b05be81b81cb319feb015901766eb37d9aaf5a1787362
|
4
|
+
data.tar.gz: ea232f106d8c887b46752f09d23b3ba03ab642b0d2499d787c335f3e2ce5e702
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58b0f885285fc410914695223c6b938c826c745d1d9fad39d38c62dbed6813028eb7ee0e1ca2dbec81056563f221b7b02e420f5111eece65e4f6909a6a5d9965
|
7
|
+
data.tar.gz: 1adf2fb829035e60b9d649268062cbfcc4dd35914b0f552918355c03cfce0d68238548d27045bef04d2aca39fd2a5a442ad383614679856986c349f57811ebab
|
data/.github/workflows/ruby.yml
CHANGED
@@ -18,13 +18,13 @@ jobs:
|
|
18
18
|
strategy:
|
19
19
|
fail-fast: false
|
20
20
|
matrix:
|
21
|
-
ruby: [ '3.1', '3.0', '2.7' ]
|
21
|
+
ruby: [ '3.2', '3.1', '3.0', '2.7' ]
|
22
22
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
23
23
|
exclude:
|
24
24
|
- os: windows-latest
|
25
25
|
ruby: '3.1'
|
26
26
|
steps:
|
27
|
-
- uses: actions/checkout@
|
27
|
+
- uses: actions/checkout@v4
|
28
28
|
- name: Set up Ruby
|
29
29
|
uses: ruby/setup-ruby@v1
|
30
30
|
with:
|
@@ -32,6 +32,5 @@ jobs:
|
|
32
32
|
- name: Build and test with Rake
|
33
33
|
shell: bash
|
34
34
|
run: |
|
35
|
-
gem install bundler --no-document
|
36
35
|
bundle install --jobs 4 --retry 3
|
37
36
|
bundle exec rake
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,18 @@
|
|
1
|
+
<a name="3.0.1"></a>
|
2
|
+
## 3.0.1
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* いくつかマイナーな修正を行いました
|
7
|
+
* https://github.com/aozorahack/aozora2html/pull/100
|
8
|
+
* https://github.com/aozorahack/aozora2html/pull/101
|
9
|
+
* https://github.com/aozorahack/aozora2html/pull/103
|
10
|
+
* その他コードの挙動とは関係ない修正を行いました
|
11
|
+
* https://github.com/aozorahack/aozora2html/pull/98
|
12
|
+
* https://github.com/aozorahack/aozora2html/pull/102
|
13
|
+
* https://github.com/aozorahack/aozora2html/pull/105
|
14
|
+
* https://github.com/aozorahack/aozora2html/pull/108
|
15
|
+
|
1
16
|
<a name="3.0.0"></a>
|
2
17
|
## 3.0.0
|
3
18
|
|
data/aozora2html.gemspec
CHANGED
@@ -17,16 +17,16 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.required_ruby_version = '>= 2.7.0'
|
18
18
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
19
19
|
spec.bindir = 'bin'
|
20
|
-
spec.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
21
20
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
22
21
|
spec.require_paths = ['lib']
|
23
22
|
|
24
23
|
spec.add_dependency 'rubyzip'
|
25
24
|
spec.add_development_dependency 'bundler'
|
26
|
-
spec.add_development_dependency 'rake'
|
25
|
+
spec.add_development_dependency 'rake'
|
27
26
|
spec.add_development_dependency 'rubocop'
|
28
27
|
spec.add_development_dependency 'rubocop-performance'
|
29
28
|
spec.add_development_dependency 'rubocop-rake'
|
29
|
+
spec.add_development_dependency 'simplecov'
|
30
30
|
spec.add_development_dependency 'test-unit'
|
31
31
|
spec.add_development_dependency 'test-unit-rr'
|
32
32
|
spec.metadata = {
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class Aozora2Html
|
4
|
+
# 見出しIDカウンター
|
5
|
+
#
|
6
|
+
# 主にmidashi_idを管理する
|
7
|
+
class MidashiCounter
|
8
|
+
def initialize(current_id)
|
9
|
+
@midashi_id = current_id
|
10
|
+
end
|
11
|
+
|
12
|
+
def generate_id(size)
|
13
|
+
if size.is_a?(Integer)
|
14
|
+
@midashi_id += size
|
15
|
+
return @midashi_id
|
16
|
+
end
|
17
|
+
|
18
|
+
case size
|
19
|
+
when /#{Aozora2Html::SIZE_SMALL}/o
|
20
|
+
inc = 1
|
21
|
+
when /#{Aozora2Html::SIZE_MIDDLE}/o
|
22
|
+
inc = 10
|
23
|
+
when /#{Aozora2Html::SIZE_LARGE}/o
|
24
|
+
inc = 100
|
25
|
+
else
|
26
|
+
raise Aozora2Html::Error, I18n.t(:undefined_header)
|
27
|
+
end
|
28
|
+
|
29
|
+
@midashi_id += inc
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
data/lib/aozora2html/tag/ruby.rb
CHANGED
data/lib/aozora2html/version.rb
CHANGED
data/lib/aozora2html.rb
CHANGED
@@ -2,6 +2,7 @@ require_relative 'aozora2html/version'
|
|
2
2
|
require_relative 'extensions'
|
3
3
|
require_relative 'aozora2html/error'
|
4
4
|
require_relative 'aozora2html/i18n'
|
5
|
+
require_relative 'aozora2html/midashi_counter'
|
5
6
|
require_relative 'jstream'
|
6
7
|
require_relative 'aozora2html/tag'
|
7
8
|
require_relative 'aozora2html/tag_parser'
|
@@ -44,7 +45,7 @@ class Aozora2Html
|
|
44
45
|
PAT_HENYAKU = '編訳$'.to_sjis
|
45
46
|
PAT_TRANSLATOR = '訳$'.to_sjis
|
46
47
|
RUBY_PREFIX = '|'.to_sjis
|
47
|
-
PAT_RUBY = /#{
|
48
|
+
PAT_RUBY = /#{'《.*?》'.to_sjis}/.freeze
|
48
49
|
PAT_DIRECTION = '(右|左|上|下)に(.*)'.to_sjis
|
49
50
|
PAT_REF = '^「.+」'.to_sjis
|
50
51
|
CHUUKI_COMMAND = '注記付き'.to_sjis
|
@@ -86,13 +87,13 @@ class Aozora2Html
|
|
86
87
|
WARICHU_COMMAND = '割り注'.to_sjis
|
87
88
|
TENTSUKI_COMMAND = '天付き'.to_sjis
|
88
89
|
PAT_REST_NOTES = '(左|下)に「(.*)」の(ルビ|注記|傍記)'.to_sjis
|
89
|
-
PAT_KUTEN = /#{
|
90
|
+
PAT_KUTEN = /#{'「※」[は|の]'.to_sjis}/.freeze
|
90
91
|
PAT_KUTEN_DUAL = '※.*※'.to_sjis
|
91
92
|
PAT_GAIJI = '(?:#)(.*)(?:、)(.*)'.to_sjis
|
92
93
|
PAT_KAERITEN = '^([一二三四五六七八九十レ上中下甲乙丙丁天地人]+)$'.to_sjis
|
93
94
|
PAT_OKURIGANA = '^((.+))$'.to_sjis
|
94
|
-
PAT_REMOVE_OKURIGANA = /#{
|
95
|
-
PAT_CHITSUKI = /#{
|
95
|
+
PAT_REMOVE_OKURIGANA = /#{'[()]'.to_sjis}/.freeze
|
96
|
+
PAT_CHITSUKI = /#{'(地付き|字上げ)(終わり)*$'.to_sjis}/.freeze
|
96
97
|
PAT_ORIKAESHI_JISAGE = '折り返して(\\d*)字下げ'.to_sjis
|
97
98
|
PAT_ORIKAESHI_JISAGE2 = '(\\d*)字下げ、折り返して(\\d*)字下げ'.to_sjis
|
98
99
|
PAT_JI_LEN = '([0-9]+)字'.to_sjis
|
@@ -100,9 +101,9 @@ class Aozora2Html
|
|
100
101
|
PAT_IMAGE = '(.*)((fig.+\\.png)(、横([0-9]+)×縦([0-9]+))*)入る'.to_sjis
|
101
102
|
PAT_FRONTREF = '「([^「」]*(?:「.+」)*[^「」]*)」[にはの](「.+」の)*(.+)'.to_sjis
|
102
103
|
PAT_RUBY_DIR = '(左|下)に「([^」]*)」の(ルビ|注記)'.to_sjis
|
103
|
-
PAT_CHUUKI = /#{
|
104
|
-
PAT_BOUKI = /#{
|
105
|
-
PAT_CHARSIZE = /#{
|
104
|
+
PAT_CHUUKI = /#{'「(.+?)」の注記'.to_sjis}/.freeze
|
105
|
+
PAT_BOUKI = /#{'「(.)」の傍記'.to_sjis}/.freeze
|
106
|
+
PAT_CHARSIZE = /#{'(.*)段階(..)な文字'.to_sjis}/.freeze
|
106
107
|
|
107
108
|
REGEX_HIRAGANA = Regexp.new('[ぁ-んゝゞ]'.to_sjis)
|
108
109
|
REGEX_KATAKANA = Regexp.new('[ァ-ンーヽヾヴ]'.to_sjis)
|
@@ -157,7 +158,7 @@ class Aozora2Html
|
|
157
158
|
File.open(output, 'w')
|
158
159
|
end
|
159
160
|
@gaiji_dir = gaiji_dir || '../../../gaiji/'
|
160
|
-
@css_files = css_files ||
|
161
|
+
@css_files = css_files || ['../../aozora.css']
|
161
162
|
|
162
163
|
@buffer = TextBuffer.new
|
163
164
|
@ruby_buf = RubyBuffer.new
|
@@ -168,7 +169,7 @@ class Aozora2Html
|
|
168
169
|
@images = [] ## 使用した外字の画像保持用
|
169
170
|
@indent_stack = [] ## 基本はシンボルだが、ぶらさげのときはdivタグの文字列が入る
|
170
171
|
@tag_stack = []
|
171
|
-
@
|
172
|
+
@midashi_counter = MidashiCounter.new(0) ## 見出しのカウンタ、見出しの種類によって増分が異なる
|
172
173
|
@terprip = true ## 改行制御用 (terpriはLisp由来?)
|
173
174
|
@endchar = :eof ## 解析終了文字、AccentParserやTagParserでは異なる
|
174
175
|
@noprint = nil ## 行末を読み込んだとき、何も出力しないかどうかのフラグ
|
@@ -205,22 +206,7 @@ class Aozora2Html
|
|
205
206
|
end
|
206
207
|
|
207
208
|
def new_midashi_id(size)
|
208
|
-
|
209
|
-
@midashi_id += size
|
210
|
-
return @midashi_id
|
211
|
-
end
|
212
|
-
|
213
|
-
case size
|
214
|
-
when /#{SIZE_SMALL}/o
|
215
|
-
inc = 1
|
216
|
-
when /#{SIZE_MIDDLE}/o
|
217
|
-
inc = 10
|
218
|
-
when /#{SIZE_LARGE}/o
|
219
|
-
inc = 100
|
220
|
-
else
|
221
|
-
raise Aozora2Html::Error, I18n.t(:undefined_header)
|
222
|
-
end
|
223
|
-
@midashi_id += inc
|
209
|
+
@midashi_counter.generate_id(size)
|
224
210
|
end
|
225
211
|
|
226
212
|
def kuten2png(substring)
|
@@ -781,14 +767,12 @@ class Aozora2Html
|
|
781
767
|
check = @ruby_buf.last
|
782
768
|
|
783
769
|
# NOTE: Do not remove duplicates!
|
784
|
-
# rubocop:disable Style/IdenticalConditionalBranches
|
785
770
|
if check.is_a?(String) && check.end_with?(PAREN_BEGIN_MARK)
|
786
771
|
push_char('<span class="warichu">')
|
787
772
|
else
|
788
773
|
push_char('<span class="warichu">')
|
789
774
|
push_char(PAREN_BEGIN_MARK)
|
790
775
|
end
|
791
|
-
# rubocop:enable Style/IdenticalConditionalBranches
|
792
776
|
end
|
793
777
|
nil
|
794
778
|
end
|
@@ -893,33 +877,33 @@ class Aozora2Html
|
|
893
877
|
when OMIDASHI_COMMAND
|
894
878
|
@style_stack.push([command, '</a></h3>'])
|
895
879
|
@terprip = false
|
896
|
-
push_char("<h3 class=\"o-midashi\"><a class=\"midashi_anchor\" id=\"midashi#{
|
880
|
+
push_char("<h3 class=\"o-midashi\"><a class=\"midashi_anchor\" id=\"midashi#{@midashi_counter.generate_id(100)}\">")
|
897
881
|
when NAKAMIDASHI_COMMAND
|
898
882
|
@style_stack.push([command, '</a></h4>'])
|
899
883
|
@terprip = false
|
900
|
-
push_char("<h4 class=\"naka-midashi\"><a class=\"midashi_anchor\" id=\"midashi#{
|
884
|
+
push_char("<h4 class=\"naka-midashi\"><a class=\"midashi_anchor\" id=\"midashi#{@midashi_counter.generate_id(10)}\">")
|
901
885
|
when KOMIDASHI_COMMAND
|
902
886
|
@style_stack.push([command, '</a></h5>'])
|
903
887
|
@terprip = false
|
904
|
-
push_char("<h5 class=\"ko-midashi\"><a class=\"midashi_anchor\" id=\"midashi#{
|
888
|
+
push_char("<h5 class=\"ko-midashi\"><a class=\"midashi_anchor\" id=\"midashi#{@midashi_counter.generate_id(1)}\">")
|
905
889
|
when DOGYO_OMIDASHI_COMMAND
|
906
890
|
@style_stack.push([command, '</a></h3>'])
|
907
|
-
push_char("<h3 class=\"dogyo-o-midashi\"><a class=\"midashi_anchor\" id=\"midashi#{
|
891
|
+
push_char("<h3 class=\"dogyo-o-midashi\"><a class=\"midashi_anchor\" id=\"midashi#{@midashi_counter.generate_id(100)}\">")
|
908
892
|
when DOGYO_NAKAMIDASHI_COMMAND
|
909
893
|
@style_stack.push([command, '</a></h4>'])
|
910
|
-
push_char("<h4 class=\"dogyo-naka-midashi\"><a class=\"midashi_anchor\" id=\"midashi#{
|
894
|
+
push_char("<h4 class=\"dogyo-naka-midashi\"><a class=\"midashi_anchor\" id=\"midashi#{@midashi_counter.generate_id(10)}\">")
|
911
895
|
when DOGYO_KOMIDASHI_COMMAND
|
912
896
|
@style_stack.push([command, '</a></h5>'])
|
913
|
-
push_char("<h5 class=\"dogyo-ko-midashi\"><a class=\"midashi_anchor\" id=\"midashi#{
|
897
|
+
push_char("<h5 class=\"dogyo-ko-midashi\"><a class=\"midashi_anchor\" id=\"midashi#{@midashi_counter.generate_id(1)}\">")
|
914
898
|
when MADO_OMIDASHI_COMMAND
|
915
899
|
@style_stack.push([command, '</a></h3>'])
|
916
|
-
push_char("<h3 class=\"mado-o-midashi\"><a class=\"midashi_anchor\" id=\"midashi#{
|
900
|
+
push_char("<h3 class=\"mado-o-midashi\"><a class=\"midashi_anchor\" id=\"midashi#{@midashi_counter.generate_id(100)}\">")
|
917
901
|
when MADO_NAKAMIDASHI_COMMAND
|
918
902
|
@style_stack.push([command, '</a></h4>'])
|
919
|
-
push_char("<h4 class=\"mado-naka-midashi\"><a class=\"midashi_anchor\" id=\"midashi#{
|
903
|
+
push_char("<h4 class=\"mado-naka-midashi\"><a class=\"midashi_anchor\" id=\"midashi#{@midashi_counter.generate_id(10)}\">")
|
920
904
|
when MADO_KOMIDASHI_COMMAND
|
921
905
|
@style_stack.push([command, '</a></h5>'])
|
922
|
-
push_char("<h5 class=\"mado-ko-midashi\"><a class=\"midashi_anchor\" id=\"midashi#{
|
906
|
+
push_char("<h5 class=\"mado-ko-midashi\"><a class=\"midashi_anchor\" id=\"midashi#{@midashi_counter.generate_id(1)}\">")
|
923
907
|
when PAT_CHARSIZE
|
924
908
|
@style_stack.push([command, '</span>'])
|
925
909
|
_whole, nest, style = command.match(PAT_CHARSIZE).to_a
|
@@ -1328,20 +1312,7 @@ class Aozora2Html
|
|
1328
1312
|
@images.each do |cell|
|
1329
1313
|
k, *v = cell
|
1330
1314
|
vs = v.join('、'.to_sjis)
|
1331
|
-
@out.print "
|
1332
|
-
<td>
|
1333
|
-
#{k}
|
1334
|
-
</td>
|
1335
|
-
<td> </td>
|
1336
|
-
<td>
|
1337
|
-
#{vs} </td>
|
1338
|
-
<!--
|
1339
|
-
<td>
|
1340
|
-
" + ' '.to_sjis + "<img src=\"../../../gaiji/others/xxxx.png\" alt=\"#{k}\" width=32 height=32 />
|
1341
|
-
</td>
|
1342
|
-
-->
|
1343
|
-
</tr>
|
1344
|
-
".to_sjis
|
1315
|
+
@out.print "\t\t\t<tr>\r\n\t\t\t\t<td>\r\n\t\t\t\t#{k}\r\n\t\t\t\t</td>\r\n\t\t\t\t<td> </td>\r\n\t\t\t\t<td>\r\n#{vs}\t\t\t\t</td>\r\n\t\t\t\t<!--\r\n\t\t\t\t<td>\r\n\t\t\t\t" + ' '.to_sjis + "<img src=\"../../../gaiji/others/xxxx.png\" alt=\"#{k}\" width=32 height=32 />\r\n\t\t\t\t</td>\r\n\t\t\t\t-->\r\n\t\t\t</tr>\r\n".to_sjis
|
1345
1316
|
end
|
1346
1317
|
@out.print "\t\t</table>\r\n".to_sjis
|
1347
1318
|
else
|
@@ -310,7 +310,7 @@
|
|
310
310
|
<br />
|
311
311
|
�@�\�\�\�\�\�\�\�\�\�\<br />
|
312
312
|
<br />
|
313
|
-
<div class="
|
313
|
+
<div class="jisage_3" style="margin-left: 3em">
|
314
314
|
<h4 class="naka-midashi"><a class="midashi_anchor" id="midashi822">
|
315
315
|
��������������������<br />
|
316
316
|
��������������������<br />
|
@@ -1054,32 +1054,32 @@ Mors ubi dira fuit vita salusque patent.<br />
|
|
1054
1054
|
</ul>
|
1055
1055
|
<br />
|
1056
1056
|
<table class="gaiji_list">
|
1057
|
-
<tr>
|
1058
|
-
<td>
|
1059
|
-
�u���{���v�AU+546D
|
1060
|
-
</td>
|
1061
|
-
<td> </td>
|
1062
|
-
<td>
|
1063
|
-
�y�[�W��-�s�� </td>
|
1064
|
-
<!--
|
1065
|
-
<td>
|
1066
|
-
�@�@<img src="../../../gaiji/others/xxxx.png" alt="�u���{���v�AU+546D" width=32 height=32 />
|
1067
|
-
</td>
|
1068
|
-
-->
|
1069
|
-
</tr>
|
1070
|
-
<tr>
|
1071
|
-
<td>
|
1072
|
-
�u�y�ւ�{��v
|
1073
|
-
</td>
|
1074
|
-
<td> </td>
|
1075
|
-
<td>
|
1076
|
-
�y�[�W��-�s�� </td>
|
1077
|
-
<!--
|
1078
|
-
<td>
|
1079
|
-
�@�@<img src="../../../gaiji/others/xxxx.png" alt="�u�y�ւ�{��v" width=32 height=32 />
|
1080
|
-
</td>
|
1081
|
-
-->
|
1082
|
-
</tr>
|
1057
|
+
<tr>
|
1058
|
+
<td>
|
1059
|
+
�u���{���v�AU+546D
|
1060
|
+
</td>
|
1061
|
+
<td> </td>
|
1062
|
+
<td>
|
1063
|
+
�y�[�W��-�s�� </td>
|
1064
|
+
<!--
|
1065
|
+
<td>
|
1066
|
+
�@�@<img src="../../../gaiji/others/xxxx.png" alt="�u���{���v�AU+546D" width=32 height=32 />
|
1067
|
+
</td>
|
1068
|
+
-->
|
1069
|
+
</tr>
|
1070
|
+
<tr>
|
1071
|
+
<td>
|
1072
|
+
�u�y�ւ�{��v
|
1073
|
+
</td>
|
1074
|
+
<td> </td>
|
1075
|
+
<td>
|
1076
|
+
�y�[�W��-�s�� </td>
|
1077
|
+
<!--
|
1078
|
+
<td>
|
1079
|
+
�@�@<img src="../../../gaiji/others/xxxx.png" alt="�u�y�ւ�{��v" width=32 height=32 />
|
1080
|
+
</td>
|
1081
|
+
-->
|
1082
|
+
</tr>
|
1083
1083
|
</table>
|
1084
1084
|
</div>
|
1085
1085
|
<div id="card">
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aozora2html
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- aozorahack team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyzip
|
@@ -42,16 +42,16 @@ dependencies:
|
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rubocop
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -94,6 +94,20 @@ dependencies:
|
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: simplecov
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
97
111
|
- !ruby/object:Gem::Dependency
|
98
112
|
name: test-unit
|
99
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -150,6 +164,7 @@ files:
|
|
150
164
|
- lib/aozora2html/error.rb
|
151
165
|
- lib/aozora2html/header.rb
|
152
166
|
- lib/aozora2html/i18n.rb
|
167
|
+
- lib/aozora2html/midashi_counter.rb
|
153
168
|
- lib/aozora2html/ruby_buffer.rb
|
154
169
|
- lib/aozora2html/string_refinements.rb
|
155
170
|
- lib/aozora2html/style_stack.rb
|
@@ -201,38 +216,6 @@ files:
|
|
201
216
|
- lib/jstream.rb
|
202
217
|
- sample/chukiichiran_kinyurei.html
|
203
218
|
- sample/chukiichiran_kinyurei.txt
|
204
|
-
- test/test_aozora2html.rb
|
205
|
-
- test/test_aozora_accent_parser.rb
|
206
|
-
- test/test_command_parse.rb
|
207
|
-
- test/test_compat.rb
|
208
|
-
- test/test_dakuten_katakana_tag.rb
|
209
|
-
- test/test_decorate_tag.rb
|
210
|
-
- test/test_dir_tag.rb
|
211
|
-
- test/test_editor_note_tag.rb
|
212
|
-
- test/test_exception.rb
|
213
|
-
- test/test_font_size_tag.rb
|
214
|
-
- test/test_gaiji_tag.rb
|
215
|
-
- test/test_header.rb
|
216
|
-
- test/test_helper.rb
|
217
|
-
- test/test_i18n.rb
|
218
|
-
- test/test_img_tag.rb
|
219
|
-
- test/test_inline_caption_tag.rb
|
220
|
-
- test/test_inline_font_size_tag.rb
|
221
|
-
- test/test_inline_keigakomi_tag.rb
|
222
|
-
- test/test_inline_yokogumi_tag.rb
|
223
|
-
- test/test_jizume_tag.rb
|
224
|
-
- test/test_jstream.rb
|
225
|
-
- test/test_kaeriten_tag.rb
|
226
|
-
- test/test_keigakomi_tag.rb
|
227
|
-
- test/test_midashi_tag.rb
|
228
|
-
- test/test_multiline_caption_tag.rb
|
229
|
-
- test/test_multiline_midashi_tag.rb
|
230
|
-
- test/test_multiline_style_tag.rb
|
231
|
-
- test/test_multiline_yokogumi_tag.rb
|
232
|
-
- test/test_okurigana_tag.rb
|
233
|
-
- test/test_ruby_parse.rb
|
234
|
-
- test/test_ruby_tag.rb
|
235
|
-
- test/test_tag_parser.rb
|
236
219
|
- vendor/jis2ucs/README.md
|
237
220
|
- vendor/jis2ucs/jisx0213-2004-mono.html
|
238
221
|
- vendor/jis2ucs/mkconv.rb
|
@@ -259,41 +242,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
259
242
|
- !ruby/object:Gem::Version
|
260
243
|
version: '0'
|
261
244
|
requirements: []
|
262
|
-
rubygems_version: 3.
|
245
|
+
rubygems_version: 3.4.10
|
263
246
|
signing_key:
|
264
247
|
specification_version: 4
|
265
248
|
summary: converter from Aozora Bunko format into xhtml. It's based of t2hs.rb from
|
266
249
|
kumihan.aozora.gr.jp.
|
267
|
-
test_files:
|
268
|
-
- test/test_aozora2html.rb
|
269
|
-
- test/test_aozora_accent_parser.rb
|
270
|
-
- test/test_command_parse.rb
|
271
|
-
- test/test_compat.rb
|
272
|
-
- test/test_dakuten_katakana_tag.rb
|
273
|
-
- test/test_decorate_tag.rb
|
274
|
-
- test/test_dir_tag.rb
|
275
|
-
- test/test_editor_note_tag.rb
|
276
|
-
- test/test_exception.rb
|
277
|
-
- test/test_font_size_tag.rb
|
278
|
-
- test/test_gaiji_tag.rb
|
279
|
-
- test/test_header.rb
|
280
|
-
- test/test_helper.rb
|
281
|
-
- test/test_i18n.rb
|
282
|
-
- test/test_img_tag.rb
|
283
|
-
- test/test_inline_caption_tag.rb
|
284
|
-
- test/test_inline_font_size_tag.rb
|
285
|
-
- test/test_inline_keigakomi_tag.rb
|
286
|
-
- test/test_inline_yokogumi_tag.rb
|
287
|
-
- test/test_jizume_tag.rb
|
288
|
-
- test/test_jstream.rb
|
289
|
-
- test/test_kaeriten_tag.rb
|
290
|
-
- test/test_keigakomi_tag.rb
|
291
|
-
- test/test_midashi_tag.rb
|
292
|
-
- test/test_multiline_caption_tag.rb
|
293
|
-
- test/test_multiline_midashi_tag.rb
|
294
|
-
- test/test_multiline_style_tag.rb
|
295
|
-
- test/test_multiline_yokogumi_tag.rb
|
296
|
-
- test/test_okurigana_tag.rb
|
297
|
-
- test/test_ruby_parse.rb
|
298
|
-
- test/test_ruby_tag.rb
|
299
|
-
- test/test_tag_parser.rb
|
250
|
+
test_files: []
|