Sha256: 824b469c5643bae2f678e9016fbe3424c0586cfb8d5a270a696c9c7b3a6b33bc
Contents?: true
Size: 671 Bytes
Versions: 2
Compression:
Stored size: 671 Bytes
Contents
# -*- coding: utf-8 -*- # # 対象小説情報 # タイトル: ログ・ホライズン # 作者: 橙乃ままれ # URL: http://ncode.syosetu.com/n8725k/ # converter "n8725k ログ・ホライズン" do def before(io, element_type) super 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!("ルビ:", "") data.gsub!("ロエ二", "ロエ2") end io end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
narou-1.7.2 | preset/ncode.syosetu.com/n8725k/converter.rb |
narou-1.7.0 | preset/ncode.syosetu.com/n8725k/converter.rb |