lib/amakanize.rb in amakanize-0.2.0 vs lib/amakanize.rb in amakanize-0.2.1
- old
+ new
@@ -1,8 +1,9 @@
require "amakanize/author_name"
require "amakanize/author_names"
require "amakanize/filters/base_filter"
+require "amakanize/filters/angle_brackets_after_word_normalization_filter"
require "amakanize/filters/dash_between_alphabets_normalization_filter"
require "amakanize/filters/html_unescape_filter"
require "amakanize/filters/hyphen_minus_normalization_filter"
require "amakanize/filters/normalization_filter"
require "amakanize/filters/obvious_volume_number_deletion_filter"
@@ -19,7 +20,23 @@
require "amakanize/filters/trailing_volume_number_deletion_filter"
require "amakanize/series_name"
require "amakanize/version"
module Amakanize
- PATTERN_OF_NUMERIC_CHARACTER = /[\diIvVxX1-9①②③④⑤⑥⑦⑧⑨⑩〇一二三四五六七八九十百千万零壱弍参肆伍陸漆捌玖壹貳參拾佰仟萬]/
+ PATTERN_OF_NUMERIC_CHARACTERS = /
+ \d+
+ |[ivx]+
+ |[IVX]+
+ |[0-9]+
+ |①
+ |②
+ |③
+ |④
+ |⑤
+ |⑥
+ |⑦
+ |⑧
+ |⑨
+ |⑩
+ |[〇一二三四五六七八九十百千万零壱弍参肆伍陸漆捌玖壹貳參拾佰仟萬]+
+ /x
end