Skip to content

Commit

Permalink
remove DakutenKatakana; use Gaiji with kuten2png
Browse files Browse the repository at this point in the history
  • Loading branch information
takahashim committed Jan 31, 2024
1 parent 3c4b044 commit 2d83077
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 65 deletions.
13 changes: 0 additions & 13 deletions lib/aozora2html.rb
Original file line number Diff line number Diff line change
Expand Up @@ -692,8 +692,6 @@ def dispatch_aozora_command
nil
elsif command.match?(PAT_REF)
exec_frontref_command(command)
elsif command.match?(/1-7-8[2345]/)
apply_dakuten_katakana(command)
elsif command.match?(PAT_KAERITEN)
Aozora2Html::Tag::Kaeriten.new(self, command)
elsif command.match?(PAT_OKURIGANA)
Expand Down Expand Up @@ -1189,17 +1187,6 @@ def exec_style(targets, command)
end
end

def apply_dakuten_katakana(command)
n = command.match(/1-7-8([2345])/).to_a[1]
frontref = DAKUTEN_KATAKANA_TABLE[n]
found = search_front_reference(frontref)
if found
Aozora2Html::Tag::DakutenKatakana.new(self, n, found.join, gaiji_dir: @gaiji_dir)
else
apply_rest_notes(command)
end
end

# くの字点の処理
#
# くの字点は現状そのまま出力するのでフッタの「表記について」で出力するかどうかのフラグ処理だけ行う
Expand Down
1 change: 0 additions & 1 deletion lib/aozora2html/tag.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
require_relative 'tag/inline_caption'
require_relative 'tag/inline_font_size'
require_relative 'tag/decorate'
require_relative 'tag/dakuten_katakana'
require_relative 'tag/dir'
require_relative 'tag/img'

Expand Down
25 changes: 0 additions & 25 deletions lib/aozora2html/tag/dakuten_katakana.rb

This file was deleted.

1 change: 0 additions & 1 deletion test/test_aozora2html.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ def test_char_type
assert_equal :hankaku, Aozora2Html::Tag::Accent.new(nil, 123, 'abc', gaiji_dir: nil).char_type
assert_equal :else, Aozora2Html::Tag::Okurigana.new(nil, 'abc').char_type
assert_equal :else, Aozora2Html::Tag::InlineKeigakomi.new(nil, 'abc').char_type
assert_equal :katakana, Aozora2Html::Tag::DakutenKatakana.new(nil, 1, 'abc', gaiji_dir: nil).char_type

assert_equal :hiragana, 'あ'.to_sjis.char_type
assert_equal :hiragana, 'っ'.to_sjis.char_type
Expand Down
25 changes: 0 additions & 25 deletions test/test_dakuten_katakana_tag.rb

This file was deleted.

0 comments on commit 2d83077

Please sign in to comment.