Sha256: 3c248d7e52ea10b00f3190bbdbf276365961c956494acccbd15275d20dcb14c5

Contents?: true

Size: 902 Bytes

Versions: 87

Compression:

Stored size: 902 Bytes

Contents

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

#
# 対象小説情報
# タイトル: まのわ ~魔物倒す・能力奪う・私強くなる~
# 作者: 紫炎
# URL: http://ncode.syosetu.com/n3730bn/
#
converter "n3730bn まのわ ~魔物倒す・能力奪う・私強くなる~" do
  def before(io, text_type)
    if text_type == "postscript"
      @__manowa_setting_num2kanji |= @setting.enable_convert_num_to_kanji
      @setting.enable_convert_num_to_kanji = false
    else
      super
    end
    io
  end

  def after(io, text_type)
    buffer = StringIO.new
    io.each do |line|
      if line =~ /^◎/
        buffer.puts "[#ゴシック体]#{line.rstrip}[#ゴシック体終わり]"
        buffer.puts
      else
        buffer.puts line
      end
    end
    if text_type == "postscript"
      @setting.enable_convert_num_to_kanji = @__manowa_setting_num2kanji
    end
    buffer
  end
end

Version data entries

87 entries across 87 versions & 1 rubygems

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