Sha256: 63af7cfc38a799125ecdd77036774f767af1da0bcb25610050e0004ba4a69ae2

Contents?: true

Size: 1.12 KB

Versions: 50

Compression:

Stored size: 1.12 KB

Contents

# -*- coding: utf-8 -*-

#
# 対象小説情報
# タイトル: うちの娘の為ならば、俺はもしかしたら魔王も倒せるかもしれない 。
# 作者: CHIROLU
# URL: http://ncode.syosetu.com/n5530cf/
#
# 詳細については http://bit.ly/1vTEH04 を参照して下さい
#
converter "n5530cf うちの娘の為ならば、俺はもしかしたら魔王も倒せるかもしれない 。" do
  # 各種変換処理がされる「前」の生データに対しての変換処理を記述
  def before(io, text_type)
    io.string.gsub!(/[-ー][-―]/, "――")
    io.string.gsub!(/\( ([前後]) \)/, "(\\1)") if text_type == "subtitle"
    if text_type =~ /body|postscript/
      io.string.gsub!(/([っッ♪…]) +([^」』\)])/, "\\1 \\2")
      io.string.gsub!(/ +/, "")
    end

    case (@current_index + 1)
    when 78
      io.string.gsub!("どうして無事だっ たのですか", "どうして無事だったのですか")
    end

    super
    io
  end

  # 各種変換処理がされた「後」のデータに対しての変換処理を記述
  def after(io, text_type)
    super
    io
  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
narou-3.9.1 preset/ncode.syosetu.com/n5530cf/converter.rb
narou-3.9.0 preset/ncode.syosetu.com/n5530cf/converter.rb
narou-3.8.2 preset/ncode.syosetu.com/n5530cf/converter.rb
narou-3.8.1 preset/ncode.syosetu.com/n5530cf/converter.rb
narou-3.8.0 preset/ncode.syosetu.com/n5530cf/converter.rb
narou-3.7.2 preset/ncode.syosetu.com/n5530cf/converter.rb
narou-3.7.1 preset/ncode.syosetu.com/n5530cf/converter.rb
narou-3.7.0 preset/ncode.syosetu.com/n5530cf/converter.rb
narou-3.6.0 preset/ncode.syosetu.com/n5530cf/converter.rb
narou-3.5.1 preset/ncode.syosetu.com/n5530cf/converter.rb
narou-3.5.0.1 preset/ncode.syosetu.com/n5530cf/converter.rb
narou-3.5.0 preset/ncode.syosetu.com/n5530cf/converter.rb
narou-3.4.8 preset/ncode.syosetu.com/n5530cf/converter.rb
narou-3.4.7.1 preset/ncode.syosetu.com/n5530cf/converter.rb
narou-3.4.7 preset/ncode.syosetu.com/n5530cf/converter.rb
narou-3.4.6.1 preset/ncode.syosetu.com/n5530cf/converter.rb
narou-3.4.6 preset/ncode.syosetu.com/n5530cf/converter.rb
narou-3.4.5 preset/ncode.syosetu.com/n5530cf/converter.rb
narou-3.4.3 preset/ncode.syosetu.com/n5530cf/converter.rb
narou-3.4.2 preset/ncode.syosetu.com/n5530cf/converter.rb