Sha256: 94ead42e55679fe6bd68809dea13decff6265143905c429c1ac1fd55c00efb54
Contents?: true
Size: 852 Bytes
Versions: 2
Compression:
Stored size: 852 Bytes
Contents
# -*- coding: utf-8 -*- # # 対象小説情報 # タイトル: まのわ ~魔物倒す・能力奪う・私強くなる~ # 作者: 紫炎 # URL: http://ncode.syosetu.com/n3730bn/ # converter "n3730bn まのわ ~魔物倒す・能力奪う・私強くなる~" do def before(io, text_type) if text_type != "postscript" 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" buffer.string.tr!("#{ConverterBase::KANJI_NUM}", "0-9") buffer.string.gsub!("2分アキ", "二分アキ") end buffer end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
narou-1.5.10.1 | preset/ncode.syosetu.com/n3730bn/converter.rb |
narou-1.5.10 | preset/ncode.syosetu.com/n3730bn/converter.rb |