lib/amakanize.rb in amakanize-0.4.9 vs lib/amakanize.rb in amakanize-0.5.0
- old
+ new
@@ -1,28 +1,5 @@
-require "amakanize/author_name"
-require "amakanize/author_names"
-require "amakanize/filters/base_filter"
-require "amakanize/filters/brackets_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"
-require "amakanize/filters/parentheses_deletion_filter"
-require "amakanize/filters/role_name_deletion_filter"
-require "amakanize/filters/space_between_exclamation_and_bracket_deletion_filter"
-require "amakanize/filters/space_deletion_filter"
-require "amakanize/filters/spaces_between_exclamations_deletion_filter"
-require "amakanize/filters/strip_filter"
-require "amakanize/filters/trailing_author_name_payload_deletion_filter"
-require "amakanize/filters/trailing_dash_deletion_filter"
-require "amakanize/filters/trailing_parentheses_deletion_filter"
-require "amakanize/filters/trailing_series_name_payload_deletion_filter"
-require "amakanize/filters/trailing_volume_number_deletion_filter"
-require "amakanize/series_name"
-require "amakanize/version"
-
module Amakanize
PATTERN_OF_NUMERIC_CHARACTERS = /
\d+(?:\.\d+)?
|[ivx]+
|[IVX]+
@@ -48,12 +25,35 @@
PATTERN_OF_VOLUME_PREFIX = /
episode\.?\s*
|\#
|Episode\.?\s*
|EPISODE\.?\s*
- |Lv\.?\s*
|vol(?:ume)?\.?\s*
|Vol(?:ume)?\.?\s*
|VOL(?:UME)?\.?\s*
|第
/x
end
+
+require "amakanize/author_name"
+require "amakanize/author_names"
+require "amakanize/filters/base_filter"
+require "amakanize/filters/brackets_normalization_filter"
+require "amakanize/filters/continuous_spaces_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"
+require "amakanize/filters/parentheses_deletion_filter"
+require "amakanize/filters/role_name_deletion_filter"
+require "amakanize/filters/space_between_exclamation_and_bracket_deletion_filter"
+require "amakanize/filters/space_deletion_filter"
+require "amakanize/filters/spaces_between_exclamations_deletion_filter"
+require "amakanize/filters/strip_filter"
+require "amakanize/filters/trailing_author_name_payload_deletion_filter"
+require "amakanize/filters/trailing_dash_deletion_filter"
+require "amakanize/filters/trailing_parentheses_deletion_filter"
+require "amakanize/filters/trailing_series_name_payload_deletion_filter"
+require "amakanize/filters/trailing_volume_number_deletion_filter"
+require "amakanize/series_name"
+require "amakanize/version"