Sha256: 6ffd6236be3bf53a8793fd4c990d41672d41cf4a8b8a863125dd4dd160e2ee43

Contents?: true

Size: 896 Bytes

Versions: 65

Compression:

Stored size: 896 Bytes

Contents

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

#
# 対象小説情報
# タイトル: 僕と彼女と実弾兵器(アンティーク)
# 作者: Gibson
# URL: http://ncode.syosetu.com/n9463br/
#
# 詳細については http://bit.ly/1vTEH04 を参照して下さい
#
converter "n9463br 僕と彼女と実弾兵器(アンティーク)" do
  # 各種変換処理がされる「前」の生データに対しての変換処理を記述
  def before(io, text_type)
    #super
    io.string.gsub!("\n\n", "\n")
    io
  end

  # 各種変換処理がされた「後」のデータに対しての変換処理を記述
  def after(io, text_type)
    super
    if text_type == "body"
      io.string.gsub!(/^( ――.+?――)$/, "[#太字]\\1[#太字終わり]")
      io.string.gsub!(/「〝(.+?)〟」/, "『\\1』")
      io.string.gsub!(/「〝([^〟]+?)」$/, "『\\1』")
    end
    io
  end
end

Version data entries

65 entries across 65 versions & 1 rubygems

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