Sha256: b38e8c6a949660cdc086cc8ec1466307b01506f211eda5fea5b6002380a8386b

Contents?: true

Size: 681 Bytes

Versions: 25

Compression:

Stored size: 681 Bytes

Contents

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

#
# 対象小説情報
# タイトル: ログ・ホライズン
# 作者: 橙乃ままれ
# URL: http://ncode.syosetu.com/n8725k/
#
converter "n8725k ログ・ホライズン" do
  def before(io, element_type)
    super
    io.string.gsub!("ルビ:", "")
    io
  end

  def after(io, element_type)
    data = io.string
    if element_type == "body"
      if data =~ /[||]([^《]+)《(、+)》/
        if $1.length == $2.length
          data.gsub!(/[||]([^《]+)《(、+)》/) do
            "[#傍点]" + $1 + "[#傍点終わり]"
          end
        end
      end
      data.gsub!("ロエ二", "ロエ2")
    end
    io
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
narou-2.8.3.1 preset/ncode.syosetu.com/n8725k/converter.rb
narou-2.8.2 preset/ncode.syosetu.com/n8725k/converter.rb
narou-2.8.1 preset/ncode.syosetu.com/n8725k/converter.rb
narou-2.8.0 preset/ncode.syosetu.com/n8725k/converter.rb
narou-2.7.2 preset/ncode.syosetu.com/n8725k/converter.rb
narou-2.7.1 preset/ncode.syosetu.com/n8725k/converter.rb
narou-2.7.0 preset/ncode.syosetu.com/n8725k/converter.rb
narou-2.6.1 preset/ncode.syosetu.com/n8725k/converter.rb
narou-2.6.0 preset/ncode.syosetu.com/n8725k/converter.rb
narou-2.5.2 preset/ncode.syosetu.com/n8725k/converter.rb
narou-2.5.1 preset/ncode.syosetu.com/n8725k/converter.rb
narou-2.4.2 preset/ncode.syosetu.com/n8725k/converter.rb
narou-2.4.1 preset/ncode.syosetu.com/n8725k/converter.rb
narou-2.4.0 preset/ncode.syosetu.com/n8725k/converter.rb
narou-2.3.3 preset/ncode.syosetu.com/n8725k/converter.rb
narou-2.3.2 preset/ncode.syosetu.com/n8725k/converter.rb
narou-2.3.1 preset/ncode.syosetu.com/n8725k/converter.rb
narou-2.3.0 preset/ncode.syosetu.com/n8725k/converter.rb
narou-2.3.0.pre.test1 preset/ncode.syosetu.com/n8725k/converter.rb
narou-2.2.0 preset/ncode.syosetu.com/n8725k/converter.rb