Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove DakutenKatakana; use Gaiji with kuten2png #111

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading