twitter_cldr 3.2.1 → 3.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +9 -4
- data/History.txt +11 -0
- data/README.md +40 -3
- data/Rakefile +26 -21
- data/lib/twitter_cldr/collation/collator.rb +3 -3
- data/lib/twitter_cldr/collation/sort_key_builder.rb +10 -10
- data/lib/twitter_cldr/data_readers/calendar_data_reader.rb +8 -8
- data/lib/twitter_cldr/data_readers/date_time_data_reader.rb +2 -2
- data/lib/twitter_cldr/data_readers/number_data_reader.rb +10 -10
- data/lib/twitter_cldr/data_readers/timespan_data_reader.rb +27 -27
- data/lib/twitter_cldr/formatters/list_formatter.rb +1 -1
- data/lib/twitter_cldr/formatters/numbers/currency_formatter.rb +3 -3
- data/lib/twitter_cldr/formatters/numbers/helpers/integer.rb +7 -5
- data/lib/twitter_cldr/formatters/numbers/rbnf/formatters.rb +1 -1
- data/lib/twitter_cldr/formatters/numbers/rbnf/rule.rb +1 -1
- data/lib/twitter_cldr/formatters/numbers/rbnf/rule_set.rb +3 -2
- data/lib/twitter_cldr/formatters/numbers/rbnf.rb +2 -2
- data/lib/twitter_cldr/formatters/plurals/rules.rb +1 -1
- data/lib/twitter_cldr/localized/localized_date.rb +2 -2
- data/lib/twitter_cldr/localized/localized_datetime.rb +8 -8
- data/lib/twitter_cldr/localized/localized_number.rb +7 -7
- data/lib/twitter_cldr/localized/localized_string.rb +33 -1
- data/lib/twitter_cldr/localized/localized_symbol.rb +9 -1
- data/lib/twitter_cldr/localized/localized_time.rb +2 -2
- data/lib/twitter_cldr/localized/localized_timespan.rb +10 -10
- data/lib/twitter_cldr/parsers/number_parser.rb +1 -1
- data/lib/twitter_cldr/parsers/parser.rb +5 -1
- data/lib/twitter_cldr/parsers/unicode_regex/character_class.rb +41 -2
- data/lib/twitter_cldr/parsers/unicode_regex/character_range.rb +8 -0
- data/lib/twitter_cldr/parsers/unicode_regex/character_set.rb +66 -23
- data/lib/twitter_cldr/parsers/unicode_regex/literal.rb +4 -0
- data/lib/twitter_cldr/parsers/unicode_regex/unicode_string.rb +6 -3
- data/lib/twitter_cldr/parsers/unicode_regex_parser.rb +65 -32
- data/lib/twitter_cldr/parsers.rb +1 -2
- data/lib/twitter_cldr/resources/custom_locales_resources_importer.rb +4 -4
- data/lib/twitter_cldr/resources/download.rb +13 -6
- data/lib/twitter_cldr/resources/language_codes_importer.rb +7 -7
- data/lib/twitter_cldr/resources/loader.rb +4 -1
- data/lib/twitter_cldr/resources/locales_resources_importer.rb +30 -12
- data/lib/twitter_cldr/resources/postal_codes_importer.rb +32 -22
- data/lib/twitter_cldr/resources/properties/age_property_importer.rb +27 -0
- data/lib/twitter_cldr/resources/properties/arabic_shaping_property_importer.rb +42 -0
- data/lib/twitter_cldr/resources/properties/bidi_brackets_property_importer.rb +41 -0
- data/lib/twitter_cldr/resources/properties/blocks_property_importer.rb +27 -0
- data/lib/twitter_cldr/resources/properties/derived_core_properties_importer.rb +36 -0
- data/lib/twitter_cldr/resources/properties/east_asian_width_property_importer.rb +27 -0
- data/lib/twitter_cldr/resources/properties/grapheme_break_property_importer.rb +27 -0
- data/lib/twitter_cldr/resources/properties/hangul_syllable_type_property_importer.rb +27 -0
- data/lib/twitter_cldr/resources/properties/indic_positional_category_property_importer.rb +27 -0
- data/lib/twitter_cldr/resources/properties/indic_syllabic_category_property_importer.rb +27 -0
- data/lib/twitter_cldr/resources/properties/jamo_property_importer.rb +27 -0
- data/lib/twitter_cldr/resources/properties/line_break_property_importer.rb +27 -0
- data/lib/twitter_cldr/resources/properties/prop_list_importer.rb +36 -0
- data/lib/twitter_cldr/resources/properties/properties_importer.rb +59 -0
- data/lib/twitter_cldr/resources/properties/property_importer.rb +83 -0
- data/lib/twitter_cldr/resources/properties/script_extensions_property_importer.rb +40 -0
- data/lib/twitter_cldr/resources/properties/script_property_importer.rb +27 -0
- data/lib/twitter_cldr/resources/properties/sentence_break_property_importer.rb +27 -0
- data/lib/twitter_cldr/resources/properties/unicode_data_properties_importer.rb +60 -0
- data/lib/twitter_cldr/resources/properties/word_break_property_importer.rb +27 -0
- data/lib/twitter_cldr/resources/properties.rb +36 -0
- data/lib/twitter_cldr/resources/readme_renderer.rb +2 -2
- data/lib/twitter_cldr/resources/segment_tests_importer.rb +66 -0
- data/lib/twitter_cldr/resources/tailoring_importer.rb +7 -7
- data/lib/twitter_cldr/resources/uli/segment_exceptions_importer.rb +1 -1
- data/lib/twitter_cldr/resources/unicode_data_importer.rb +19 -60
- data/lib/twitter_cldr/resources/unicode_property_aliases_importer.rb +97 -0
- data/lib/twitter_cldr/resources.rb +21 -22
- data/lib/twitter_cldr/segmentation/break_iterator.rb +54 -0
- data/lib/twitter_cldr/segmentation/cursor.rb +34 -0
- data/lib/twitter_cldr/segmentation/parser.rb +71 -0
- data/lib/twitter_cldr/segmentation/rule.rb +79 -0
- data/lib/twitter_cldr/segmentation/rule_set.rb +116 -0
- data/lib/twitter_cldr/segmentation/rule_set_builder.rb +142 -0
- data/lib/twitter_cldr/segmentation.rb +17 -0
- data/lib/twitter_cldr/shared/bidi.rb +4 -4
- data/lib/twitter_cldr/shared/calendar.rb +11 -11
- data/lib/twitter_cldr/shared/caser.rb +84 -0
- data/lib/twitter_cldr/shared/code_point.rb +101 -139
- data/lib/twitter_cldr/shared/currencies.rb +5 -5
- data/lib/twitter_cldr/shared/language_codes.rb +2 -2
- data/lib/twitter_cldr/shared/languages.rb +1 -1
- data/lib/twitter_cldr/shared/likely_subtags.rb +104 -0
- data/lib/twitter_cldr/shared/locale.rb +252 -0
- data/lib/twitter_cldr/shared/postal_codes.rb +21 -9
- data/lib/twitter_cldr/shared/properties/arabic_shaping.rb +40 -0
- data/lib/twitter_cldr/shared/properties/bidi_brackets.rb +28 -0
- data/lib/twitter_cldr/shared/properties.rb +13 -0
- data/lib/twitter_cldr/shared/properties_database.rb +180 -0
- data/lib/twitter_cldr/shared/property_name_aliases.rb +48 -0
- data/lib/twitter_cldr/shared/property_normalizer.rb +108 -0
- data/lib/twitter_cldr/shared/property_set.rb +113 -0
- data/lib/twitter_cldr/shared/property_value_aliases.rb +99 -0
- data/lib/twitter_cldr/shared/unicode_regex.rb +29 -3
- data/lib/twitter_cldr/shared.rb +9 -1
- data/lib/twitter_cldr/tokenizers/numbers/number_tokenizer.rb +1 -1
- data/lib/twitter_cldr/tokenizers/token.rb +1 -1
- data/lib/twitter_cldr/tokenizers/tokenizer.rb +15 -13
- data/lib/twitter_cldr/tokenizers/unicode_regex/unicode_regex_tokenizer.rb +4 -4
- data/lib/twitter_cldr/utils/file_system_trie.rb +145 -0
- data/lib/twitter_cldr/utils/range_set.rb +131 -31
- data/lib/twitter_cldr/utils/regexp_sampler.rb +0 -1
- data/lib/twitter_cldr/utils/script_detector.rb +75 -0
- data/lib/twitter_cldr/utils/yaml.rb +3 -3
- data/lib/twitter_cldr/utils.rb +8 -5
- data/lib/twitter_cldr/version.rb +1 -1
- data/lib/twitter_cldr/versions.rb +30 -0
- data/lib/twitter_cldr.rb +8 -10
- data/resources/locales/af/calendars.yml +8 -8
- data/resources/locales/af/lists.yml +8 -4
- data/resources/locales/af/numbers.yml +54 -30
- data/resources/locales/ar/lists.yml +8 -4
- data/resources/locales/ar/numbers.yml +48 -24
- data/resources/locales/be/calendars.yml +4 -4
- data/resources/locales/be/lists.yml +2 -1
- data/resources/locales/be/numbers.yml +24 -12
- data/resources/locales/bg/calendars.yml +8 -8
- data/resources/locales/bg/lists.yml +8 -4
- data/resources/locales/bg/numbers.yml +48 -24
- data/resources/locales/bn/lists.yml +8 -4
- data/resources/locales/bn/numbers.yml +48 -24
- data/resources/locales/ca/calendars.yml +8 -8
- data/resources/locales/ca/lists.yml +8 -4
- data/resources/locales/ca/numbers.yml +48 -24
- data/resources/locales/cs/calendars.yml +32 -32
- data/resources/locales/cs/lists.yml +8 -4
- data/resources/locales/cs/numbers.yml +48 -24
- data/resources/locales/cy/calendars.yml +8 -8
- data/resources/locales/cy/lists.yml +6 -3
- data/resources/locales/cy/numbers.yml +48 -24
- data/resources/locales/da/calendars.yml +10 -10
- data/resources/locales/da/lists.yml +8 -4
- data/resources/locales/da/numbers.yml +48 -24
- data/resources/locales/de/calendars.yml +8 -8
- data/resources/locales/de/lists.yml +8 -4
- data/resources/locales/de/numbers.yml +48 -24
- data/resources/locales/de-CH/calendars.yml +8 -8
- data/resources/locales/de-CH/lists.yml +8 -4
- data/resources/locales/de-CH/numbers.yml +48 -24
- data/resources/locales/el/calendars.yml +8 -8
- data/resources/locales/el/lists.yml +8 -4
- data/resources/locales/el/numbers.yml +48 -24
- data/resources/locales/en/calendars.yml +4 -4
- data/resources/locales/en/lists.yml +8 -4
- data/resources/locales/en/numbers.yml +48 -24
- data/resources/locales/en-150/calendars.yml +4 -4
- data/resources/locales/en-150/lists.yml +8 -4
- data/resources/locales/en-150/numbers.yml +48 -24
- data/resources/locales/en-AU/calendars.yml +4 -4
- data/resources/locales/en-AU/lists.yml +8 -4
- data/resources/locales/en-AU/numbers.yml +48 -24
- data/resources/locales/en-CA/calendars.yml +4 -4
- data/resources/locales/en-CA/lists.yml +8 -4
- data/resources/locales/en-CA/numbers.yml +48 -24
- data/resources/locales/en-GB/calendars.yml +4 -4
- data/resources/locales/en-GB/lists.yml +8 -4
- data/resources/locales/en-GB/numbers.yml +48 -24
- data/resources/locales/en-IE/calendars.yml +4 -4
- data/resources/locales/en-IE/lists.yml +8 -4
- data/resources/locales/en-IE/numbers.yml +48 -24
- data/resources/locales/en-SG/calendars.yml +4 -4
- data/resources/locales/en-SG/lists.yml +8 -4
- data/resources/locales/en-SG/numbers.yml +48 -24
- data/resources/locales/en-ZA/calendars.yml +4 -4
- data/resources/locales/en-ZA/lists.yml +8 -4
- data/resources/locales/en-ZA/numbers.yml +48 -24
- data/resources/locales/es/lists.yml +8 -4
- data/resources/locales/es/numbers.yml +48 -24
- data/resources/locales/es-419/calendars.yml +8 -8
- data/resources/locales/es-419/lists.yml +8 -4
- data/resources/locales/es-419/numbers.yml +50 -26
- data/resources/locales/es-CO/lists.yml +8 -4
- data/resources/locales/es-CO/numbers.yml +48 -24
- data/resources/locales/es-MX/lists.yml +8 -4
- data/resources/locales/es-MX/numbers.yml +48 -24
- data/resources/locales/es-US/lists.yml +8 -4
- data/resources/locales/es-US/numbers.yml +48 -24
- data/resources/locales/eu/calendars.yml +8 -8
- data/resources/locales/eu/lists.yml +8 -4
- data/resources/locales/eu/numbers.yml +48 -24
- data/resources/locales/fa/lists.yml +8 -4
- data/resources/locales/fa/numbers.yml +48 -24
- data/resources/locales/fi/calendars.yml +8 -8
- data/resources/locales/fi/lists.yml +8 -4
- data/resources/locales/fi/numbers.yml +48 -24
- data/resources/locales/fil/calendars.yml +8 -8
- data/resources/locales/fil/lists.yml +8 -4
- data/resources/locales/fil/numbers.yml +48 -24
- data/resources/locales/fr/calendars.yml +8 -8
- data/resources/locales/fr/lists.yml +8 -4
- data/resources/locales/fr/numbers.yml +48 -24
- data/resources/locales/fr-BE/calendars.yml +8 -8
- data/resources/locales/fr-BE/lists.yml +8 -4
- data/resources/locales/fr-BE/numbers.yml +48 -24
- data/resources/locales/fr-CA/calendars.yml +8 -8
- data/resources/locales/fr-CA/lists.yml +8 -4
- data/resources/locales/fr-CA/numbers.yml +48 -24
- data/resources/locales/fr-CH/calendars.yml +8 -8
- data/resources/locales/fr-CH/lists.yml +8 -4
- data/resources/locales/fr-CH/numbers.yml +48 -24
- data/resources/locales/ga/calendars.yml +8 -8
- data/resources/locales/ga/lists.yml +8 -4
- data/resources/locales/ga/numbers.yml +48 -24
- data/resources/locales/gl/calendars.yml +8 -8
- data/resources/locales/gl/lists.yml +8 -4
- data/resources/locales/gl/numbers.yml +48 -24
- data/resources/locales/he/calendars.yml +28 -28
- data/resources/locales/he/lists.yml +8 -4
- data/resources/locales/he/numbers.yml +48 -24
- data/resources/locales/hi/calendars.yml +8 -8
- data/resources/locales/hi/lists.yml +8 -4
- data/resources/locales/hi/numbers.yml +48 -24
- data/resources/locales/hr/lists.yml +8 -4
- data/resources/locales/hr/numbers.yml +48 -24
- data/resources/locales/hu/lists.yml +8 -4
- data/resources/locales/hu/numbers.yml +48 -24
- data/resources/locales/id/calendars.yml +8 -8
- data/resources/locales/id/lists.yml +8 -4
- data/resources/locales/id/numbers.yml +49 -25
- data/resources/locales/is/calendars.yml +8 -8
- data/resources/locales/is/lists.yml +8 -4
- data/resources/locales/is/numbers.yml +48 -24
- data/resources/locales/it/calendars.yml +8 -8
- data/resources/locales/it/lists.yml +8 -4
- data/resources/locales/it/numbers.yml +54 -30
- data/resources/locales/it-CH/calendars.yml +8 -8
- data/resources/locales/it-CH/lists.yml +8 -4
- data/resources/locales/it-CH/numbers.yml +54 -30
- data/resources/locales/ja/calendars.yml +32 -32
- data/resources/locales/ja/lists.yml +8 -4
- data/resources/locales/ja/numbers.yml +48 -24
- data/resources/locales/ko/calendars.yml +8 -8
- data/resources/locales/ko/lists.yml +8 -4
- data/resources/locales/ko/numbers.yml +48 -24
- data/resources/locales/lv/lists.yml +8 -4
- data/resources/locales/lv/numbers.yml +48 -24
- data/resources/locales/ms/calendars.yml +8 -8
- data/resources/locales/ms/lists.yml +8 -4
- data/resources/locales/ms/numbers.yml +48 -24
- data/resources/locales/nb/calendars.yml +9 -9
- data/resources/locales/nb/lists.yml +8 -4
- data/resources/locales/nb/numbers.yml +48 -24
- data/resources/locales/nl/calendars.yml +8 -8
- data/resources/locales/nl/lists.yml +8 -4
- data/resources/locales/nl/numbers.yml +48 -24
- data/resources/locales/pl/calendars.yml +8 -8
- data/resources/locales/pl/lists.yml +8 -4
- data/resources/locales/pl/numbers.yml +48 -24
- data/resources/locales/pt/calendars.yml +8 -8
- data/resources/locales/pt/lists.yml +8 -4
- data/resources/locales/pt/numbers.yml +48 -24
- data/resources/locales/ro/calendars.yml +8 -8
- data/resources/locales/ro/lists.yml +8 -4
- data/resources/locales/ro/numbers.yml +48 -24
- data/resources/locales/ru/calendars.yml +8 -8
- data/resources/locales/ru/lists.yml +8 -4
- data/resources/locales/ru/numbers.yml +48 -24
- data/resources/locales/sk/calendars.yml +8 -8
- data/resources/locales/sk/lists.yml +8 -4
- data/resources/locales/sk/numbers.yml +48 -24
- data/resources/locales/sq/calendars.yml +8 -8
- data/resources/locales/sq/lists.yml +8 -4
- data/resources/locales/sq/numbers.yml +48 -24
- data/resources/locales/sr/lists.yml +8 -4
- data/resources/locales/sr/numbers.yml +48 -24
- data/resources/locales/sv/calendars.yml +10 -10
- data/resources/locales/sv/lists.yml +8 -4
- data/resources/locales/sv/numbers.yml +48 -24
- data/resources/locales/ta/calendars.yml +8 -8
- data/resources/locales/ta/lists.yml +8 -4
- data/resources/locales/ta/numbers.yml +48 -24
- data/resources/locales/th/calendars.yml +8 -8
- data/resources/locales/th/lists.yml +8 -4
- data/resources/locales/th/numbers.yml +48 -24
- data/resources/locales/tr/lists.yml +8 -4
- data/resources/locales/tr/numbers.yml +50 -26
- data/resources/locales/uk/calendars.yml +8 -8
- data/resources/locales/uk/lists.yml +8 -4
- data/resources/locales/uk/numbers.yml +48 -24
- data/resources/locales/ur/calendars.yml +8 -8
- data/resources/locales/ur/lists.yml +8 -4
- data/resources/locales/ur/numbers.yml +48 -24
- data/resources/locales/vi/calendars.yml +32 -32
- data/resources/locales/vi/lists.yml +8 -4
- data/resources/locales/vi/numbers.yml +48 -24
- data/resources/locales/zh/calendars.yml +32 -32
- data/resources/locales/zh/lists.yml +8 -4
- data/resources/locales/zh/numbers.yml +48 -24
- data/resources/locales/zh-Hant/calendars.yml +32 -32
- data/resources/locales/zh-Hant/lists.yml +8 -4
- data/resources/locales/zh-Hant/numbers.yml +48 -24
- data/resources/shared/aliases.yml +1351 -0
- data/resources/shared/likely_subtags.yml +1149 -0
- data/resources/shared/postal_codes.yml +486 -289
- data/resources/shared/segments/segments_root.yml +57 -57
- data/resources/shared/segments/tests/sentence_break_test.yml +527 -0
- data/resources/shared/segments/tests/word_break_test.yml +1379 -0
- data/resources/shared/territories_containment.yml +25 -17
- data/resources/shared/variables.yml +1194 -0
- data/resources/unicode_data/blocks/ahom.yml +913 -0
- data/resources/unicode_data/blocks/anatolian_hieroglyphs.yml +9329 -0
- data/resources/unicode_data/blocks/arabic.yml +16 -0
- data/resources/unicode_data/blocks/arabic_presentation_forms_a.yml +2 -2
- data/resources/unicode_data/blocks/bassa_vah.yml +577 -0
- data/resources/unicode_data/blocks/buginese.yml +2 -2
- data/resources/unicode_data/blocks/caucasian_albanian.yml +849 -0
- data/resources/unicode_data/blocks/cherokee_supplement.yml +1281 -0
- data/resources/unicode_data/blocks/cjk_unified_ideographs_extension_e.yml +33 -0
- data/resources/unicode_data/blocks/combining_diacritical_marks_extended.yml +241 -0
- data/resources/unicode_data/blocks/coptic_epact_numbers.yml +449 -0
- data/resources/unicode_data/blocks/cuneiform_numbers_and_punctuation.yml +2 -2
- data/resources/unicode_data/blocks/duployan.yml +2289 -0
- data/resources/unicode_data/blocks/early_dynastic_cuneiform.yml +3137 -0
- data/resources/unicode_data/blocks/elbasan.yml +641 -0
- data/resources/unicode_data/blocks/general_punctuation.yml +64 -0
- data/resources/unicode_data/blocks/geometric_shapes_extended.yml +1361 -0
- data/resources/unicode_data/blocks/grantha.yml +1361 -0
- data/resources/unicode_data/blocks/gujarati.yml +0 -16
- data/resources/unicode_data/blocks/hatran.yml +417 -0
- data/resources/unicode_data/blocks/kannada.yml +0 -16
- data/resources/unicode_data/blocks/khojki.yml +977 -0
- data/resources/unicode_data/blocks/khudawadi.yml +1105 -0
- data/resources/unicode_data/blocks/latin_extended_e.yml +865 -0
- data/resources/unicode_data/blocks/linear_a.yml +5457 -0
- data/resources/unicode_data/blocks/mahajani.yml +625 -0
- data/resources/unicode_data/blocks/manichaean.yml +817 -0
- data/resources/unicode_data/blocks/mende_kikakui.yml +3409 -0
- data/resources/unicode_data/blocks/miscellaneous_technical.yml +4 -4
- data/resources/unicode_data/blocks/modi.yml +1265 -0
- data/resources/unicode_data/blocks/mongolian.yml +2 -2
- data/resources/unicode_data/blocks/mro.yml +689 -0
- data/resources/unicode_data/blocks/multani.yml +609 -0
- data/resources/unicode_data/blocks/myanmar_extended_b.yml +497 -0
- data/resources/unicode_data/blocks/nabataean.yml +641 -0
- data/resources/unicode_data/blocks/old_hungarian.yml +1729 -0
- data/resources/unicode_data/blocks/old_north_arabian.yml +513 -0
- data/resources/unicode_data/blocks/old_permic.yml +689 -0
- data/resources/unicode_data/blocks/ornamental_dingbats.yml +769 -0
- data/resources/unicode_data/blocks/pahawh_hmong.yml +2033 -0
- data/resources/unicode_data/blocks/palmyrene.yml +513 -0
- data/resources/unicode_data/blocks/pau_cin_hau.yml +913 -0
- data/resources/unicode_data/blocks/psalter_pahlavi.yml +465 -0
- data/resources/unicode_data/blocks/shorthand_format_controls.yml +65 -0
- data/resources/unicode_data/blocks/siddham.yml +1473 -0
- data/resources/unicode_data/blocks/sinhala_archaic_numbers.yml +321 -0
- data/resources/unicode_data/blocks/supplemental_arrows_c.yml +2369 -0
- data/resources/unicode_data/blocks/supplemental_symbols_and_pictographs.yml +241 -0
- data/resources/unicode_data/blocks/sutton_signwriting.yml +10753 -0
- data/resources/unicode_data/blocks/tirhuta.yml +1313 -0
- data/resources/unicode_data/blocks/warang_citi.yml +1345 -0
- data/resources/unicode_data/properties/ASCII_Hex_Digit/value.dump +5 -0
- data/resources/unicode_data/properties/Age/1.1/value.dump +0 -0
- data/resources/unicode_data/properties/Age/2.0/value.dump +0 -0
- data/resources/unicode_data/properties/Age/2.1/value.dump +4 -0
- data/resources/unicode_data/properties/Age/3.0/value.dump +0 -0
- data/resources/unicode_data/properties/Age/3.1/value.dump +0 -0
- data/resources/unicode_data/properties/Age/3.2/value.dump +0 -0
- data/resources/unicode_data/properties/Age/4.0/value.dump +0 -0
- data/resources/unicode_data/properties/Age/4.1/value.dump +0 -0
- data/resources/unicode_data/properties/Age/5.0/value.dump +0 -0
- data/resources/unicode_data/properties/Age/5.1/value.dump +0 -0
- data/resources/unicode_data/properties/Age/5.2/value.dump +0 -0
- data/resources/unicode_data/properties/Age/6.0/value.dump +0 -0
- data/resources/unicode_data/properties/Age/6.1/value.dump +0 -0
- data/resources/unicode_data/properties/Age/6.2/value.dump +3 -0
- data/resources/unicode_data/properties/Age/6.3/value.dump +4 -0
- data/resources/unicode_data/properties/Alphabetic/value.dump +0 -0
- data/resources/unicode_data/properties/Bidi_Class/AL/value.dump +0 -0
- data/resources/unicode_data/properties/Bidi_Class/AN/value.dump +0 -0
- data/resources/unicode_data/properties/Bidi_Class/B/value.dump +8 -0
- data/resources/unicode_data/properties/Bidi_Class/BN/value.dump +0 -0
- data/resources/unicode_data/properties/Bidi_Class/CS/value.dump +15 -0
- data/resources/unicode_data/properties/Bidi_Class/EN/value.dump +0 -0
- data/resources/unicode_data/properties/Bidi_Class/ES/value.dump +11 -0
- data/resources/unicode_data/properties/Bidi_Class/ET/value.dump +27 -0
- data/resources/unicode_data/properties/Bidi_Class/FSI/value.dump +3 -0
- data/resources/unicode_data/properties/Bidi_Class/L/value.dump +0 -0
- data/resources/unicode_data/properties/Bidi_Class/LRE/value.dump +3 -0
- data/resources/unicode_data/properties/Bidi_Class/LRI/value.dump +3 -0
- data/resources/unicode_data/properties/Bidi_Class/LRO/value.dump +3 -0
- data/resources/unicode_data/properties/Bidi_Class/NSM/value.dump +0 -0
- data/resources/unicode_data/properties/Bidi_Class/ON/value.dump +0 -0
- data/resources/unicode_data/properties/Bidi_Class/PDF/value.dump +3 -0
- data/resources/unicode_data/properties/Bidi_Class/PDI/value.dump +3 -0
- data/resources/unicode_data/properties/Bidi_Class/R/value.dump +0 -0
- data/resources/unicode_data/properties/Bidi_Class/RLE/value.dump +3 -0
- data/resources/unicode_data/properties/Bidi_Class/RLI/value.dump +3 -0
- data/resources/unicode_data/properties/Bidi_Class/RLO/value.dump +3 -0
- data/resources/unicode_data/properties/Bidi_Class/S/value.dump +5 -0
- data/resources/unicode_data/properties/Bidi_Class/WS/value.dump +0 -0
- data/resources/unicode_data/properties/Bidi_Control/value.dump +4 -0
- data/resources/unicode_data/properties/Bidi_Mirrored/N/value.dump +0 -0
- data/resources/unicode_data/properties/Bidi_Mirrored/Y/value.dump +115 -0
- data/resources/unicode_data/properties/Block/Aegean Numbers/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Alchemical Symbols/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Alphabetic Presentation Forms/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Ancient Greek Musical Notation/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Ancient Greek Numbers/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Ancient Symbols/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Arabic/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Arabic Extended-A/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Arabic Mathematical Alphabetic Symbols/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Arabic Presentation Forms-A/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Arabic Presentation Forms-B/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Arabic Supplement/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Armenian/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Arrows/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Avestan/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Balinese/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Bamum/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Bamum Supplement/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Basic Latin/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Batak/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Bengali/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Block Elements/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Bopomofo/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Bopomofo Extended/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Box Drawing/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Brahmi/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Braille Patterns/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Buginese/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Buhid/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Byzantine Musical Symbols/value.dump +0 -0
- data/resources/unicode_data/properties/Block/CJK Compatibility/value.dump +0 -0
- data/resources/unicode_data/properties/Block/CJK Compatibility Forms/value.dump +3 -0
- data/resources/unicode_data/properties/Block/CJK Compatibility Ideographs/value.dump +0 -0
- data/resources/unicode_data/properties/Block/CJK Compatibility Ideographs Supplement/value.dump +0 -0
- data/resources/unicode_data/properties/Block/CJK Radicals Supplement/value.dump +3 -0
- data/resources/unicode_data/properties/Block/CJK Strokes/value.dump +3 -0
- Punctuation/value.dump +0 -0
- data/resources/unicode_data/properties/Block/CJK Unified Ideographs/value.dump +0 -0
- data/resources/unicode_data/properties/Block/CJK Unified Ideographs Extension A/value.dump +0 -0
- data/resources/unicode_data/properties/Block/CJK Unified Ideographs Extension B/value.dump +0 -0
- data/resources/unicode_data/properties/Block/CJK Unified Ideographs Extension C/value.dump +0 -0
- data/resources/unicode_data/properties/Block/CJK Unified Ideographs Extension D/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Carian/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Chakma/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Cham/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Cherokee/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Combining Diacritical Marks/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Combining Diacritical Marks Supplement/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Combining Diacritical Marks for Symbols/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Combining Half Marks/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Common Indic Number Forms/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Control Pictures/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Coptic/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Counting Rod Numerals/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Cuneiform/value.dump +0 -0
- Punctuation/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Currency Symbols/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Cypriot Syllabary/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Cyrillic/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Cyrillic Extended-A/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Cyrillic Extended-B/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Cyrillic Supplement/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Deseret/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Devanagari/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Devanagari Extended/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Dingbats/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Domino Tiles/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Egyptian Hieroglyphs/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Emoticons/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Enclosed Alphanumeric Supplement/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Enclosed Alphanumerics/value.dump +3 -0
- Months/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Enclosed Ideographic Supplement/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Ethiopic/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Ethiopic Extended/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Ethiopic Extended-A/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Ethiopic Supplement/value.dump +3 -0
- data/resources/unicode_data/properties/Block/General Punctuation/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Geometric Shapes/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Georgian/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Georgian Supplement/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Glagolitic/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Gothic/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Greek Extended/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Greek and Coptic/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Gujarati/value.dump +4 -0
- data/resources/unicode_data/properties/Block/Gurmukhi/value.dump +0 -0
- Fullwidth Forms/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Hangul Compatibility Jamo/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Hangul Jamo/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Hangul Jamo Extended-A/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Hangul Jamo Extended-B/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Hangul Syllables/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Hanunoo/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Hebrew/value.dump +3 -0
- data/resources/unicode_data/properties/Block/High Private Use Surrogates/value.dump +3 -0
- data/resources/unicode_data/properties/Block/High Surrogates/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Hiragana/value.dump +3 -0
- data/resources/unicode_data/properties/Block/IPA Extensions/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Ideographic Description Characters/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Imperial Aramaic/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Inscriptional Pahlavi/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Inscriptional Parthian/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Javanese/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Kaithi/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Kana Supplement/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Kanbun/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Kangxi Radicals/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Kannada/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Katakana/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Katakana Phonetic Extensions/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Kayah Li/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Kharoshthi/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Khmer/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Khmer Symbols/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Lao/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Latin Extended Additional/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Latin Extended-A/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Latin Extended-B/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Latin Extended-C/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Latin Extended-D/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Latin-1 Supplement/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Lepcha/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Letterlike Symbols/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Limbu/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Linear B Ideograms/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Linear B Syllabary/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Lisu/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Low Surrogates/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Lycian/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Lydian/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Mahjong Tiles/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Malayalam/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Mandaic/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Mathematical Alphanumeric Symbols/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Mathematical Operators/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Meetei Mayek/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Meetei Mayek Extensions/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Meroitic Cursive/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Meroitic Hieroglyphs/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Miao/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Miscellaneous Mathematical Symbols-A/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Miscellaneous Mathematical Symbols-B/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Miscellaneous Symbols/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Miscellaneous Symbols And Pictographs/value.dump +0 -0
- Arrows/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Miscellaneous Technical/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Modifier Tone Letters/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Mongolian/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Musical Symbols/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Myanmar/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Myanmar Extended-A/value.dump +3 -0
- data/resources/unicode_data/properties/Block/NKo/value.dump +3 -0
- data/resources/unicode_data/properties/Block/New Tai Lue/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Number Forms/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Ogham/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Ol Chiki/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Old Italic/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Old Persian/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Old South Arabian/value.dump +5 -0
- data/resources/unicode_data/properties/Block/Old Turkic/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Optical Character Recognition/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Oriya/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Osmanya/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Phags-pa/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Phaistos Disc/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Phoenician/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Phonetic Extensions/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Phonetic Extensions Supplement/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Playing Cards/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Private Use Area/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Rejang/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Rumi Numeral Symbols/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Runic/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Samaritan/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Saurashtra/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Sharada/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Shavian/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Sinhala/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Small Form Variants/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Sora Sompeng/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Spacing Modifier Letters/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Specials/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Sundanese/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Sundanese Supplement/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Superscripts and Subscripts/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Supplemental Arrows-A/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Supplemental Arrows-B/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Supplemental Mathematical Operators/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Supplemental Punctuation/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Supplementary Private Use Area-A/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Supplementary Private Use Area-B/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Syloti Nagri/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Syriac/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Tagalog/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Tagbanwa/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Tags/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Tai Le/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Tai Tham/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Tai Viet/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Tai Xuan Jing Symbols/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Takri/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Tamil/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Telugu/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Thaana/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Thai/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Tibetan/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Tifinagh/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Transport And Map Symbols/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Ugaritic/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Unified Canadian Aboriginal Syllabics/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Unified Canadian Aboriginal Syllabics Extended/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Vai/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Variation Selectors/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Variation Selectors Supplement/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Vedic Extensions/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Vertical Forms/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Yi Radicals/value.dump +3 -0
- data/resources/unicode_data/properties/Block/Yi Syllables/value.dump +0 -0
- data/resources/unicode_data/properties/Block/Yijing Hexagram Symbols/value.dump +3 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/0/value.dump +0 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/1/value.dump +13 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/10/value.dump +3 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/103/value.dump +3 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/107/value.dump +3 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/11/value.dump +3 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/118/value.dump +3 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/12/value.dump +3 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/122/value.dump +3 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/129/value.dump +3 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/13/value.dump +3 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/130/value.dump +5 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/132/value.dump +3 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/14/value.dump +3 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/15/value.dump +3 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/16/value.dump +3 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/17/value.dump +3 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/18/value.dump +4 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/19/value.dump +3 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/20/value.dump +3 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/202/value.dump +5 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/21/value.dump +3 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/214/value.dump +3 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/216/value.dump +6 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/218/value.dump +3 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/22/value.dump +3 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/220/value.dump +70 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/222/value.dump +6 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/224/value.dump +3 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/226/value.dump +3 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/228/value.dump +5 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/23/value.dump +3 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/230/value.dump +0 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/232/value.dump +6 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/233/value.dump +6 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/234/value.dump +5 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/24/value.dump +3 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/240/value.dump +3 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/25/value.dump +3 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/26/value.dump +3 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/27/value.dump +4 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/28/value.dump +4 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/29/value.dump +4 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/30/value.dump +4 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/31/value.dump +4 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/32/value.dump +4 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/33/value.dump +3 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/34/value.dump +3 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/35/value.dump +3 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/36/value.dump +3 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/7/value.dump +19 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/8/value.dump +3 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/84/value.dump +3 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/9/value.dump +41 -0
- data/resources/unicode_data/properties/Canonical_Combining_Class/91/value.dump +3 -0
- data/resources/unicode_data/properties/Case_Ignorable/value.dump +0 -0
- data/resources/unicode_data/properties/Cased/value.dump +0 -0
- data/resources/unicode_data/properties/Changes_When_Casefolded/value.dump +0 -0
- data/resources/unicode_data/properties/Changes_When_Casemapped/value.dump +0 -0
- data/resources/unicode_data/properties/Changes_When_Lowercased/value.dump +0 -0
- data/resources/unicode_data/properties/Changes_When_Titlecased/value.dump +589 -0
- data/resources/unicode_data/properties/Changes_When_Uppercased/value.dump +588 -0
- data/resources/unicode_data/properties/Dash/value.dump +0 -0
- data/resources/unicode_data/properties/Default_Ignorable_Code_Point/value.dump +0 -0
- data/resources/unicode_data/properties/Deprecated/value.dump +0 -0
- data/resources/unicode_data/properties/Diacritic/value.dump +135 -0
- data/resources/unicode_data/properties/East_Asian_Width/A/value.dump +0 -0
- data/resources/unicode_data/properties/East_Asian_Width/F/value.dump +0 -0
- data/resources/unicode_data/properties/East_Asian_Width/H/value.dump +9 -0
- data/resources/unicode_data/properties/East_Asian_Width/N/value.dump +0 -0
- data/resources/unicode_data/properties/East_Asian_Width/Na/value.dump +9 -0
- data/resources/unicode_data/properties/East_Asian_Width/W/value.dump +0 -0
- data/resources/unicode_data/properties/Extender/value.dump +26 -0
- data/resources/unicode_data/properties/General_Category/C/c/value.dump +0 -0
- data/resources/unicode_data/properties/General_Category/C/f/value.dump +0 -0
- data/resources/unicode_data/properties/General_Category/C/o/value.dump +0 -0
- data/resources/unicode_data/properties/General_Category/C/s/value.dump +0 -0
- data/resources/unicode_data/properties/General_Category/L/l/value.dump +0 -0
- data/resources/unicode_data/properties/General_Category/L/m/value.dump +54 -0
- data/resources/unicode_data/properties/General_Category/L/o/value.dump +0 -0
- data/resources/unicode_data/properties/General_Category/L/t/value.dump +12 -0
- data/resources/unicode_data/properties/General_Category/L/u/value.dump +0 -0
- data/resources/unicode_data/properties/General_Category/M/c/value.dump +0 -0
- data/resources/unicode_data/properties/General_Category/M/e/value.dump +6 -0
- data/resources/unicode_data/properties/General_Category/M/n/value.dump +0 -0
- data/resources/unicode_data/properties/General_Category/N/d/value.dump +0 -0
- data/resources/unicode_data/properties/General_Category/N/l/value.dump +0 -0
- data/resources/unicode_data/properties/General_Category/N/o/value.dump +0 -0
- data/resources/unicode_data/properties/General_Category/P/c/value.dump +8 -0
- data/resources/unicode_data/properties/General_Category/P/d/value.dump +0 -0
- data/resources/unicode_data/properties/General_Category/P/e/value.dump +72 -0
- data/resources/unicode_data/properties/General_Category/P/f/value.dump +14 -0
- data/resources/unicode_data/properties/General_Category/P/i/value.dump +13 -0
- data/resources/unicode_data/properties/General_Category/P/o/value.dump +0 -0
- data/resources/unicode_data/properties/General_Category/P/s/value.dump +76 -0
- data/resources/unicode_data/properties/General_Category/S/c/value.dump +21 -0
- data/resources/unicode_data/properties/General_Category/S/k/value.dump +0 -0
- data/resources/unicode_data/properties/General_Category/S/m/value.dump +0 -0
- data/resources/unicode_data/properties/General_Category/S/o/value.dump +0 -0
- data/resources/unicode_data/properties/General_Category/Z/l/value.dump +3 -0
- data/resources/unicode_data/properties/General_Category/Z/p/value.dump +3 -0
- data/resources/unicode_data/properties/General_Category/Z/s/value.dump +0 -0
- data/resources/unicode_data/properties/Grapheme_Base/value.dump +0 -0
- data/resources/unicode_data/properties/Grapheme_Cluster_Break/CR/value.dump +3 -0
- data/resources/unicode_data/properties/Grapheme_Cluster_Break/Control/value.dump +0 -0
- data/resources/unicode_data/properties/Grapheme_Cluster_Break/Extend/value.dump +0 -0
- data/resources/unicode_data/properties/Grapheme_Cluster_Break/L/value.dump +0 -0
- data/resources/unicode_data/properties/Grapheme_Cluster_Break/LF/value.dump +3 -0
- data/resources/unicode_data/properties/Grapheme_Cluster_Break/LV/value.dump +0 -0
- data/resources/unicode_data/properties/Grapheme_Cluster_Break/LVT/value.dump +401 -0
- data/resources/unicode_data/properties/Grapheme_Cluster_Break/Regional_Indicator/value.dump +3 -0
- data/resources/unicode_data/properties/Grapheme_Cluster_Break/SpacingMark/value.dump +0 -0
- data/resources/unicode_data/properties/Grapheme_Cluster_Break/T/value.dump +4 -0
- data/resources/unicode_data/properties/Grapheme_Cluster_Break/V/value.dump +4 -0
- data/resources/unicode_data/properties/Grapheme_Extend/value.dump +0 -0
- data/resources/unicode_data/properties/Grapheme_Link/value.dump +41 -0
- data/resources/unicode_data/properties/Hangul_Syllable_Type/L/value.dump +0 -0
- data/resources/unicode_data/properties/Hangul_Syllable_Type/LV/value.dump +0 -0
- data/resources/unicode_data/properties/Hangul_Syllable_Type/LVT/value.dump +401 -0
- data/resources/unicode_data/properties/Hangul_Syllable_Type/T/value.dump +4 -0
- data/resources/unicode_data/properties/Hangul_Syllable_Type/V/value.dump +4 -0
- data/resources/unicode_data/properties/Hex_Digit/value.dump +8 -0
- data/resources/unicode_data/properties/Hyphen/value.dump +12 -0
- data/resources/unicode_data/properties/IDS_Binary_Operator/value.dump +4 -0
- data/resources/unicode_data/properties/IDS_Trinary_Operator/value.dump +3 -0
- data/resources/unicode_data/properties/ID_Continue/value.dump +0 -0
- data/resources/unicode_data/properties/ID_Start/value.dump +0 -0
- data/resources/unicode_data/properties/Ideographic/value.dump +0 -0
- data/resources/unicode_data/properties/Indic_Positional_Category/Bottom/value.dump +78 -0
- data/resources/unicode_data/properties/Indic_Positional_Category/Bottom_And_Right/value.dump +4 -0
- data/resources/unicode_data/properties/Indic_Positional_Category/Invisible/value.dump +10 -0
- data/resources/unicode_data/properties/Indic_Positional_Category/Left/value.dump +36 -0
- data/resources/unicode_data/properties/Indic_Positional_Category/Left_And_Right/value.dump +10 -0
- data/resources/unicode_data/properties/Indic_Positional_Category/Overstruck/value.dump +8 -0
- data/resources/unicode_data/properties/Indic_Positional_Category/Right/value.dump +86 -0
- data/resources/unicode_data/properties/Indic_Positional_Category/Top/value.dump +91 -0
- data/resources/unicode_data/properties/Indic_Positional_Category/Top_And_Bottom/value.dump +8 -0
- data/resources/unicode_data/properties/Indic_Positional_Category/Top_And_Bottom_And_Right/value.dump +3 -0
- data/resources/unicode_data/properties/Indic_Positional_Category/Top_And_Left/value.dump +6 -0
- data/resources/unicode_data/properties/Indic_Positional_Category/Top_And_Left_And_Right/value.dump +4 -0
- data/resources/unicode_data/properties/Indic_Positional_Category/Top_And_Right/value.dump +12 -0
- data/resources/unicode_data/properties/Indic_Positional_Category/Visual_Order_Left/value.dump +8 -0
- data/resources/unicode_data/properties/Indic_Syllabic_Category/Avagraha/value.dump +15 -0
- data/resources/unicode_data/properties/Indic_Syllabic_Category/Bindu/value.dump +0 -0
- data/resources/unicode_data/properties/Indic_Syllabic_Category/Consonant/value.dump +0 -0
- data/resources/unicode_data/properties/Indic_Syllabic_Category/Consonant_Dead/value.dump +4 -0
- data/resources/unicode_data/properties/Indic_Syllabic_Category/Consonant_Final/value.dump +13 -0
- data/resources/unicode_data/properties/Indic_Syllabic_Category/Consonant_Head_Letter/value.dump +3 -0
- data/resources/unicode_data/properties/Indic_Syllabic_Category/Consonant_Medial/value.dump +12 -0
- data/resources/unicode_data/properties/Indic_Syllabic_Category/Consonant_Placeholder/value.dump +0 -0
- data/resources/unicode_data/properties/Indic_Syllabic_Category/Consonant_Repha/value.dump +8 -0
- data/resources/unicode_data/properties/Indic_Syllabic_Category/Consonant_Subjoined/value.dump +11 -0
- data/resources/unicode_data/properties/Indic_Syllabic_Category/Modifying_Letter/value.dump +3 -0
- data/resources/unicode_data/properties/Indic_Syllabic_Category/Nukta/value.dump +18 -0
- data/resources/unicode_data/properties/Indic_Syllabic_Category/Register_Shifter/value.dump +3 -0
- data/resources/unicode_data/properties/Indic_Syllabic_Category/Tone_Letter/value.dump +5 -0
- data/resources/unicode_data/properties/Indic_Syllabic_Category/Tone_Mark/value.dump +17 -0
- data/resources/unicode_data/properties/Indic_Syllabic_Category/Virama/value.dump +41 -0
- data/resources/unicode_data/properties/Indic_Syllabic_Category/Visarga/value.dump +32 -0
- data/resources/unicode_data/properties/Indic_Syllabic_Category/Vowel/value.dump +6 -0
- data/resources/unicode_data/properties/Indic_Syllabic_Category/Vowel_Dependent/value.dump +112 -0
- data/resources/unicode_data/properties/Indic_Syllabic_Category/Vowel_Independent/value.dump +0 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/A/value.dump +3 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/AE/value.dump +3 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/B/value.dump +4 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/BB/value.dump +3 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/BS/value.dump +3 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/C/value.dump +4 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/D/value.dump +4 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/DD/value.dump +3 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/E/value.dump +3 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/EO/value.dump +3 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/EU/value.dump +3 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/G/value.dump +0 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/GG/value.dump +4 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/GS/value.dump +3 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/H/value.dump +4 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/I/value.dump +3 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/J/value.dump +4 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/JJ/value.dump +3 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/K/value.dump +4 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/L/value.dump +3 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/LB/value.dump +3 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/LG/value.dump +3 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/LH/value.dump +3 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/LM/value.dump +3 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/LP/value.dump +3 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/LS/value.dump +3 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/LT/value.dump +3 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/M/value.dump +4 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/N/value.dump +4 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/NG/value.dump +3 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/NH/value.dump +3 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/NJ/value.dump +3 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/O/value.dump +3 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/OE/value.dump +3 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/P/value.dump +4 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/R/value.dump +3 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/S/value.dump +4 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/SS/value.dump +6 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/T/value.dump +4 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/U/value.dump +3 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/WA/value.dump +3 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/WAE/value.dump +3 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/WE/value.dump +3 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/WEO/value.dump +3 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/WI/value.dump +3 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/YA/value.dump +3 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/YAE/value.dump +3 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/YE/value.dump +3 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/YEO/value.dump +3 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/YI/value.dump +3 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/YO/value.dump +3 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/YU/value.dump +3 -0
- data/resources/unicode_data/properties/Jamo_Short_Name/value.dump +3 -0
- data/resources/unicode_data/properties/Join_Control/value.dump +3 -0
- data/resources/unicode_data/properties/Line_Break/AI/value.dump +0 -0
- data/resources/unicode_data/properties/Line_Break/AL/value.dump +0 -0
- data/resources/unicode_data/properties/Line_Break/B2/value.dump +4 -0
- data/resources/unicode_data/properties/Line_Break/BA/value.dump +0 -0
- data/resources/unicode_data/properties/Line_Break/BB/value.dump +15 -0
- data/resources/unicode_data/properties/Line_Break/BK/value.dump +4 -0
- data/resources/unicode_data/properties/Line_Break/CB/value.dump +3 -0
- data/resources/unicode_data/properties/Line_Break/CJ/value.dump +27 -0
- data/resources/unicode_data/properties/Line_Break/CL/value.dump +81 -0
- data/resources/unicode_data/properties/Line_Break/CM/value.dump +0 -0
- data/resources/unicode_data/properties/Line_Break/CP/value.dump +4 -0
- data/resources/unicode_data/properties/Line_Break/CR/value.dump +3 -0
- data/resources/unicode_data/properties/Line_Break/EX/value.dump +24 -0
- data/resources/unicode_data/properties/Line_Break/GL/value.dump +13 -0
- data/resources/unicode_data/properties/Line_Break/H2/value.dump +0 -0
- data/resources/unicode_data/properties/Line_Break/H3/value.dump +401 -0
- data/resources/unicode_data/properties/Line_Break/HL/value.dump +12 -0
- data/resources/unicode_data/properties/Line_Break/HY/value.dump +3 -0
- data/resources/unicode_data/properties/Line_Break/ID/value.dump +0 -0
- data/resources/unicode_data/properties/Line_Break/IN/value.dump +4 -0
- data/resources/unicode_data/properties/Line_Break/IS/value.dump +12 -0
- data/resources/unicode_data/properties/Line_Break/JL/value.dump +0 -0
- data/resources/unicode_data/properties/Line_Break/JT/value.dump +4 -0
- data/resources/unicode_data/properties/Line_Break/JV/value.dump +4 -0
- data/resources/unicode_data/properties/Line_Break/LF/value.dump +3 -0
- data/resources/unicode_data/properties/Line_Break/NL/value.dump +3 -0
- data/resources/unicode_data/properties/Line_Break/NS/value.dump +17 -0
- data/resources/unicode_data/properties/Line_Break/NU/value.dump +0 -0
- data/resources/unicode_data/properties/Line_Break/OP/value.dump +83 -0
- data/resources/unicode_data/properties/Line_Break/PO/value.dump +20 -0
- data/resources/unicode_data/properties/Line_Break/PR/value.dump +24 -0
- data/resources/unicode_data/properties/Line_Break/QU/value.dump +0 -0
- data/resources/unicode_data/properties/Line_Break/RI/value.dump +3 -0
- data/resources/unicode_data/properties/Line_Break/SA/value.dump +0 -0
- data/resources/unicode_data/properties/Line_Break/SG/value.dump +0 -0
- data/resources/unicode_data/properties/Line_Break/SP/value.dump +3 -0
- data/resources/unicode_data/properties/Line_Break/SY/value.dump +3 -0
- data/resources/unicode_data/properties/Line_Break/WJ/value.dump +4 -0
- data/resources/unicode_data/properties/Line_Break/XX/value.dump +0 -0
- data/resources/unicode_data/properties/Line_Break/ZW/value.dump +3 -0
- data/resources/unicode_data/properties/Logical_Order_Exception/value.dump +8 -0
- data/resources/unicode_data/properties/Lowercase/value.dump +0 -0
- data/resources/unicode_data/properties/Math/value.dump +0 -0
- data/resources/unicode_data/properties/Noncharacter_Code_Point/value.dump +22 -0
- data/resources/unicode_data/properties/Numeric_Type/0/value.dump +0 -0
- data/resources/unicode_data/properties/Numeric_Type/1/value.dump +69 -0
- data/resources/unicode_data/properties/Numeric_Type/2/value.dump +68 -0
- data/resources/unicode_data/properties/Numeric_Type/3/value.dump +68 -0
- data/resources/unicode_data/properties/Numeric_Type/4/value.dump +68 -0
- data/resources/unicode_data/properties/Numeric_Type/5/value.dump +65 -0
- data/resources/unicode_data/properties/Numeric_Type/6/value.dump +65 -0
- data/resources/unicode_data/properties/Numeric_Type/7/value.dump +65 -0
- data/resources/unicode_data/properties/Numeric_Type/8/value.dump +65 -0
- data/resources/unicode_data/properties/Numeric_Type/9/value.dump +67 -0
- data/resources/unicode_data/properties/Numeric_Type/value.dump +0 -0
- data/resources/unicode_data/properties/Other_Alphabetic/value.dump +0 -0
- data/resources/unicode_data/properties/Other_Default_Ignorable_Code_Point/value.dump +0 -0
- data/resources/unicode_data/properties/Other_Grapheme_Extend/value.dump +19 -0
- data/resources/unicode_data/properties/Other_ID_Continue/value.dump +6 -0
- data/resources/unicode_data/properties/Other_ID_Start/value.dump +5 -0
- data/resources/unicode_data/properties/Other_Lowercase/value.dump +20 -0
- data/resources/unicode_data/properties/Other_Math/value.dump +0 -0
- data/resources/unicode_data/properties/Other_Uppercase/value.dump +4 -0
- data/resources/unicode_data/properties/Pattern_Syntax/value.dump +0 -0
- data/resources/unicode_data/properties/Pattern_White_Space/value.dump +8 -0
- data/resources/unicode_data/properties/Quotation_Mark/value.dump +14 -0
- data/resources/unicode_data/properties/Radical/value.dump +0 -0
- data/resources/unicode_data/properties/STerm/value.dump +0 -0
- data/resources/unicode_data/properties/Script/Arabic/value.dump +0 -0
- data/resources/unicode_data/properties/Script/Armenian/value.dump +8 -0
- data/resources/unicode_data/properties/Script/Avestan/value.dump +0 -0
- data/resources/unicode_data/properties/Script/Balinese/value.dump +0 -0
- data/resources/unicode_data/properties/Script/Bamum/value.dump +0 -0
- data/resources/unicode_data/properties/Script/Batak/value.dump +4 -0
- data/resources/unicode_data/properties/Script/Bengali/value.dump +16 -0
- data/resources/unicode_data/properties/Script/Bopomofo/value.dump +5 -0
- data/resources/unicode_data/properties/Script/Brahmi/value.dump +0 -0
- data/resources/unicode_data/properties/Script/Braille/value.dump +0 -0
- data/resources/unicode_data/properties/Script/Buginese/value.dump +0 -0
- data/resources/unicode_data/properties/Script/Buhid/value.dump +3 -0
- data/resources/unicode_data/properties/Script/Canadian_Aboriginal/value.dump +0 -0
- data/resources/unicode_data/properties/Script/Carian/value.dump +3 -0
- data/resources/unicode_data/properties/Script/Chakma/value.dump +0 -0
- data/resources/unicode_data/properties/Script/Cham/value.dump +0 -0
- data/resources/unicode_data/properties/Script/Cherokee/value.dump +3 -0
- data/resources/unicode_data/properties/Script/Common/value.dump +0 -0
- data/resources/unicode_data/properties/Script/Coptic/value.dump +5 -0
- data/resources/unicode_data/properties/Script/Cuneiform/value.dump +0 -0
- data/resources/unicode_data/properties/Script/Cypriot/value.dump +0 -0
- data/resources/unicode_data/properties/Script/Cyrillic/value.dump +0 -0
- data/resources/unicode_data/properties/Script/Deseret/value.dump +0 -0
- data/resources/unicode_data/properties/Script/Devanagari/value.dump +0 -0
- data/resources/unicode_data/properties/Script/Egyptian_Hieroglyphs/value.dump +0 -0
- data/resources/unicode_data/properties/Script/Ethiopic/value.dump +0 -0
- data/resources/unicode_data/properties/Script/Georgian/value.dump +0 -0
- data/resources/unicode_data/properties/Script/Glagolitic/value.dump +0 -0
- data/resources/unicode_data/properties/Script/Gothic/value.dump +3 -0
- data/resources/unicode_data/properties/Script/Greek/value.dump +0 -0
- data/resources/unicode_data/properties/Script/Gujarati/value.dump +40 -0
- data/resources/unicode_data/properties/Script/Gurmukhi/value.dump +50 -0
- data/resources/unicode_data/properties/Script/Han/value.dump +0 -0
- data/resources/unicode_data/properties/Script/Hangul/value.dump +0 -0
- data/resources/unicode_data/properties/Script/Hanunoo/value.dump +3 -0
- data/resources/unicode_data/properties/Script/Hebrew/value.dump +11 -0
- data/resources/unicode_data/properties/Script/Hiragana/value.dump +0 -0
- data/resources/unicode_data/properties/Script/Imperial_Aramaic/value.dump +4 -0
- data/resources/unicode_data/properties/Script/Inherited/value.dump +0 -0
- data/resources/unicode_data/properties/Script/Inscriptional_Pahlavi/value.dump +4 -0
- data/resources/unicode_data/properties/Script/Inscriptional_Parthian/value.dump +4 -0
- data/resources/unicode_data/properties/Script/Javanese/value.dump +5 -0
- data/resources/unicode_data/properties/Script/Kaithi/value.dump +3 -0
- data/resources/unicode_data/properties/Script/Kannada/value.dump +16 -0
- data/resources/unicode_data/properties/Script/Katakana/value.dump +0 -0
- data/resources/unicode_data/properties/Script/Kayah_Li/value.dump +0 -0
- data/resources/unicode_data/properties/Script/Kharoshthi/value.dump +0 -0
- data/resources/unicode_data/properties/Script/Khmer/value.dump +6 -0
- data/resources/unicode_data/properties/Script/Lao/value.dump +20 -0
- data/resources/unicode_data/properties/Script/Latin/value.dump +0 -0
- data/resources/unicode_data/properties/Script/Lepcha/value.dump +0 -0
- data/resources/unicode_data/properties/Script/Limbu/value.dump +0 -0
- data/resources/unicode_data/properties/Script/Linear_B/value.dump +0 -0
- data/resources/unicode_data/properties/Script/Lisu/value.dump +3 -0
- data/resources/unicode_data/properties/Script/Lycian/value.dump +3 -0
- data/resources/unicode_data/properties/Script/Lydian/value.dump +4 -0
- data/resources/unicode_data/properties/Script/Malayalam/value.dump +13 -0
- data/resources/unicode_data/properties/Script/Mandaic/value.dump +4 -0
- data/resources/unicode_data/properties/Script/Meetei_Mayek/value.dump +5 -0
- data/resources/unicode_data/properties/Script/Meroitic_Cursive/value.dump +4 -0
- data/resources/unicode_data/properties/Script/Meroitic_Hieroglyphs/value.dump +3 -0
- data/resources/unicode_data/properties/Script/Miao/value.dump +0 -0
- data/resources/unicode_data/properties/Script/Mongolian/value.dump +0 -0
- data/resources/unicode_data/properties/Script/Myanmar/value.dump +0 -0
- data/resources/unicode_data/properties/Script/New_Tai_Lue/value.dump +6 -0
- data/resources/unicode_data/properties/Script/Nko/value.dump +3 -0
- data/resources/unicode_data/properties/Script/Ogham/value.dump +3 -0
- data/resources/unicode_data/properties/Script/Ol_Chiki/value.dump +3 -0
- data/resources/unicode_data/properties/Script/Old_Italic/value.dump +0 -0
- data/resources/unicode_data/properties/Script/Old_Persian/value.dump +4 -0
- data/resources/unicode_data/properties/Script/Old_South_Arabian/value.dump +5 -0
- data/resources/unicode_data/properties/Script/Old_Turkic/value.dump +0 -0
- data/resources/unicode_data/properties/Script/Oriya/value.dump +16 -0
- data/resources/unicode_data/properties/Script/Osmanya/value.dump +4 -0
- data/resources/unicode_data/properties/Script/Phags_Pa/value.dump +3 -0
- data/resources/unicode_data/properties/Script/Phoenician/value.dump +0 -0
- data/resources/unicode_data/properties/Script/Rejang/value.dump +4 -0
- data/resources/unicode_data/properties/Script/Runic/value.dump +4 -0
- data/resources/unicode_data/properties/Script/Samaritan/value.dump +0 -0
- data/resources/unicode_data/properties/Script/Saurashtra/value.dump +4 -0
- data/resources/unicode_data/properties/Script/Sharada/value.dump +4 -0
- data/resources/unicode_data/properties/Script/Shavian/value.dump +3 -0
- data/resources/unicode_data/properties/Script/Sinhala/value.dump +13 -0
- data/resources/unicode_data/properties/Script/Sora_Sompeng/value.dump +4 -0
- data/resources/unicode_data/properties/Script/Sundanese/value.dump +4 -0
- data/resources/unicode_data/properties/Script/Syloti_Nagri/value.dump +0 -0
- data/resources/unicode_data/properties/Script/Syriac/value.dump +0 -0
- data/resources/unicode_data/properties/Script/Tagalog/value.dump +0 -0
- data/resources/unicode_data/properties/Script/Tagbanwa/value.dump +5 -0
- data/resources/unicode_data/properties/Script/Tai_Le/value.dump +4 -0
- data/resources/unicode_data/properties/Script/Tai_Tham/value.dump +8 -0
- data/resources/unicode_data/properties/Script/Tai_Viet/value.dump +4 -0
- data/resources/unicode_data/properties/Script/Takri/value.dump +4 -0
- data/resources/unicode_data/properties/Script/Tamil/value.dump +18 -0
- data/resources/unicode_data/properties/Script/Telugu/value.dump +16 -0
- data/resources/unicode_data/properties/Script/Thaana/value.dump +3 -0
- data/resources/unicode_data/properties/Script/Thai/value.dump +4 -0
- data/resources/unicode_data/properties/Script/Tibetan/value.dump +0 -0
- data/resources/unicode_data/properties/Script/Tifinagh/value.dump +5 -0
- data/resources/unicode_data/properties/Script/Ugaritic/value.dump +4 -0
- data/resources/unicode_data/properties/Script/Vai/value.dump +0 -0
- data/resources/unicode_data/properties/Script/Yi/value.dump +0 -0
- data/resources/unicode_data/properties/Script_Extensions/Arab/value.dump +11 -0
- data/resources/unicode_data/properties/Script_Extensions/Armn/value.dump +3 -0
- data/resources/unicode_data/properties/Script_Extensions/Beng/value.dump +3 -0
- data/resources/unicode_data/properties/Script_Extensions/Bopo/value.dump +19 -0
- data/resources/unicode_data/properties/Script_Extensions/Bugi/value.dump +3 -0
- data/resources/unicode_data/properties/Script_Extensions/Buhd/value.dump +3 -0
- data/resources/unicode_data/properties/Script_Extensions/Cakm/value.dump +4 -0
- data/resources/unicode_data/properties/Script_Extensions/Cprt/value.dump +0 -0
- data/resources/unicode_data/properties/Script_Extensions/Cyrl/value.dump +3 -0
- data/resources/unicode_data/properties/Script_Extensions/Deva/value.dump +4 -0
- data/resources/unicode_data/properties/Script_Extensions/Geor/value.dump +3 -0
- data/resources/unicode_data/properties/Script_Extensions/Grek/value.dump +5 -0
- data/resources/unicode_data/properties/Script_Extensions/Gujr/value.dump +3 -0
- data/resources/unicode_data/properties/Script_Extensions/Guru/value.dump +4 -0
- data/resources/unicode_data/properties/Script_Extensions/Hang/value.dump +18 -0
- data/resources/unicode_data/properties/Script_Extensions/Hani/value.dump +21 -0
- data/resources/unicode_data/properties/Script_Extensions/Hano/value.dump +3 -0
- data/resources/unicode_data/properties/Script_Extensions/Hira/value.dump +24 -0
- data/resources/unicode_data/properties/Script_Extensions/Java/value.dump +3 -0
- data/resources/unicode_data/properties/Script_Extensions/Kana/value.dump +24 -0
- data/resources/unicode_data/properties/Script_Extensions/Kthi/value.dump +3 -0
- data/resources/unicode_data/properties/Script_Extensions/Latn/value.dump +5 -0
- data/resources/unicode_data/properties/Script_Extensions/Linb/value.dump +0 -0
- data/resources/unicode_data/properties/Script_Extensions/Mand/value.dump +3 -0
- data/resources/unicode_data/properties/Script_Extensions/Mong/value.dump +4 -0
- data/resources/unicode_data/properties/Script_Extensions/Mymr/value.dump +3 -0
- data/resources/unicode_data/properties/Script_Extensions/Orya/value.dump +3 -0
- data/resources/unicode_data/properties/Script_Extensions/Phag/value.dump +4 -0
- data/resources/unicode_data/properties/Script_Extensions/Sylo/value.dump +3 -0
- data/resources/unicode_data/properties/Script_Extensions/Syrc/value.dump +8 -0
- data/resources/unicode_data/properties/Script_Extensions/Tagb/value.dump +3 -0
- data/resources/unicode_data/properties/Script_Extensions/Takr/value.dump +3 -0
- data/resources/unicode_data/properties/Script_Extensions/Tale/value.dump +3 -0
- data/resources/unicode_data/properties/Script_Extensions/Tglg/value.dump +3 -0
- data/resources/unicode_data/properties/Script_Extensions/Thaa/value.dump +8 -0
- data/resources/unicode_data/properties/Script_Extensions/Yiii/value.dump +8 -0
- data/resources/unicode_data/properties/Sentence_Break/ATerm/value.dump +6 -0
- data/resources/unicode_data/properties/Sentence_Break/CR/value.dump +3 -0
- data/resources/unicode_data/properties/Sentence_Break/Close/value.dump +0 -0
- data/resources/unicode_data/properties/Sentence_Break/Extend/value.dump +0 -0
- data/resources/unicode_data/properties/Sentence_Break/Format/value.dump +0 -0
- data/resources/unicode_data/properties/Sentence_Break/LF/value.dump +3 -0
- data/resources/unicode_data/properties/Sentence_Break/Lower/value.dump +0 -0
- data/resources/unicode_data/properties/Sentence_Break/Numeric/value.dump +0 -0
- data/resources/unicode_data/properties/Sentence_Break/OLetter/value.dump +0 -0
- data/resources/unicode_data/properties/Sentence_Break/SContinue/value.dump +21 -0
- data/resources/unicode_data/properties/Sentence_Break/STerm/value.dump +0 -0
- data/resources/unicode_data/properties/Sentence_Break/Sep/value.dump +4 -0
- data/resources/unicode_data/properties/Sentence_Break/Sp/value.dump +0 -0
- data/resources/unicode_data/properties/Sentence_Break/Upper/value.dump +0 -0
- data/resources/unicode_data/properties/Soft_Dotted/value.dump +33 -0
- data/resources/unicode_data/properties/Terminal_Punctuation/value.dump +0 -0
- data/resources/unicode_data/properties/Unified_Ideograph/value.dump +0 -0
- data/resources/unicode_data/properties/Uppercase/value.dump +0 -0
- data/resources/unicode_data/properties/Variation_Selector/value.dump +0 -0
- data/resources/unicode_data/properties/White_Space/value.dump +0 -0
- data/resources/unicode_data/properties/Word_Break/ALetter/value.dump +0 -0
- data/resources/unicode_data/properties/Word_Break/CR/value.dump +3 -0
- data/resources/unicode_data/properties/Word_Break/Double_Quote/value.dump +3 -0
- data/resources/unicode_data/properties/Word_Break/Extend/value.dump +0 -0
- data/resources/unicode_data/properties/Word_Break/ExtendNumLet/value.dump +8 -0
- data/resources/unicode_data/properties/Word_Break/Format/value.dump +0 -0
- data/resources/unicode_data/properties/Word_Break/Hebrew_Letter/value.dump +12 -0
- data/resources/unicode_data/properties/Word_Break/Katakana/value.dump +0 -0
- data/resources/unicode_data/properties/Word_Break/LF/value.dump +3 -0
- data/resources/unicode_data/properties/Word_Break/MidLetter/value.dump +10 -0
- data/resources/unicode_data/properties/Word_Break/MidNum/value.dump +16 -0
- data/resources/unicode_data/properties/Word_Break/MidNumLet/value.dump +9 -0
- data/resources/unicode_data/properties/Word_Break/Newline/value.dump +5 -0
- data/resources/unicode_data/properties/Word_Break/Numeric/value.dump +0 -0
- data/resources/unicode_data/properties/Word_Break/Regional_Indicator/value.dump +3 -0
- data/resources/unicode_data/properties/Word_Break/Single_Quote/value.dump +3 -0
- data/resources/unicode_data/properties/XID_Continue/value.dump +0 -0
- data/resources/unicode_data/properties/XID_Start/value.dump +0 -0
- data/resources/unicode_data/property_aliases.yml +350 -0
- data/resources/unicode_data/property_value_aliases.yml +1829 -0
- data/spec/bidi/bidi_spec.rb +2 -2
- data/spec/collation/collation_spec.rb +1 -1
- data/spec/collation/collator_spec.rb +6 -6
- data/spec/collation/sort_key_builder_spec.rb +11 -11
- data/spec/collation/tailoring_spec.rb +1 -1
- data/spec/collation/trie_dumps_spec.rb +1 -1
- data/spec/data_readers/date_time_data_reader_spec.rb +1 -1
- data/spec/data_readers/number_data_reader_spec.rb +19 -6
- data/spec/formatters/calendars/datetime_formatter_spec.rb +1 -1
- data/spec/formatters/numbers/abbreviated/abbreviated_number_formatter_spec.rb +1 -1
- data/spec/formatters/numbers/abbreviated/long_decimal_formatter_spec.rb +5 -5
- data/spec/formatters/numbers/abbreviated/short_decimal_formatter_spec.rb +4 -4
- data/spec/formatters/numbers/currency_formatter_spec.rb +10 -10
- data/spec/formatters/numbers/decimal_formatter_spec.rb +2 -2
- data/spec/formatters/numbers/helpers/fraction_spec.rb +4 -4
- data/spec/formatters/numbers/helpers/integer_spec.rb +21 -16
- data/spec/formatters/numbers/number_formatter_spec.rb +9 -9
- data/spec/formatters/numbers/percent_formatter_spec.rb +2 -2
- data/spec/formatters/numbers/rbnf/rbnf_spec.rb +5 -5
- data/spec/formatters/plurals/plural_formatter_spec.rb +25 -25
- data/spec/formatters/plurals/rules_spec.rb +4 -4
- data/spec/localized/localized_date_spec.rb +25 -25
- data/spec/localized/localized_datetime_spec.rb +7 -7
- data/spec/localized/localized_hash_spec.rb +1 -1
- data/spec/localized/localized_number_spec.rb +23 -23
- data/spec/localized/localized_object_spec.rb +2 -2
- data/spec/localized/localized_string_spec.rb +43 -16
- data/spec/localized/localized_symbol_spec.rb +31 -4
- data/spec/localized/localized_time_spec.rb +3 -3
- data/spec/localized/localized_timespan_spec.rb +42 -42
- data/spec/normalization_spec.rb +4 -4
- data/spec/parsers/number_parser_spec.rb +10 -10
- data/spec/parsers/parser_spec.rb +19 -3
- data/spec/parsers/symbol_table_spec.rb +1 -1
- data/spec/parsers/unicode_regex/character_class_spec.rb +12 -0
- data/spec/parsers/unicode_regex/character_range_spec.rb +24 -5
- data/spec/parsers/unicode_regex/character_set_spec.rb +9 -1
- data/spec/parsers/unicode_regex_parser_spec.rb +1 -1
- data/spec/resources/loader_spec.rb +6 -6
- data/spec/{shared → segmentation}/break_iterator_spec.rb +45 -16
- data/spec/segmentation/parser_spec.rb +107 -0
- data/spec/segmentation/rule_set_spec.rb +102 -0
- data/spec/shared/calendar_spec.rb +30 -30
- data/spec/shared/caser_spec.rb +79 -0
- data/spec/shared/code_point_spec.rb +52 -151
- data/spec/shared/currencies_spec.rb +8 -8
- data/spec/shared/language_codes_spec.rb +13 -13
- data/spec/shared/likely_subtags_spec.rb +58 -0
- data/spec/shared/locale_spec.rb +211 -0
- data/spec/shared/numbers_spec.rb +4 -4
- data/spec/shared/postal_codes_spec.rb +24 -4
- data/spec/shared/properties_database_spec.rb +157 -0
- data/spec/shared/property_name_aliases_spec.rb +56 -0
- data/spec/shared/property_normalizer_spec.rb +64 -0
- data/spec/shared/property_set_spec.rb +218 -0
- data/spec/shared/property_value_aliases_spec.rb +58 -0
- data/spec/shared/territories_spec.rb +1 -1
- data/spec/shared/unicode_regex_spec.rb +35 -2
- data/spec/spec_helper.rb +3 -3
- data/spec/tokenizers/calendars/date_tokenizer_spec.rb +23 -23
- data/spec/tokenizers/calendars/datetime_tokenizer_spec.rb +18 -18
- data/spec/tokenizers/calendars/time_tokenizer_spec.rb +19 -19
- data/spec/tokenizers/composite_token_spec.rb +4 -4
- data/spec/tokenizers/numbers/number_tokenizer_spec.rb +16 -16
- data/spec/tokenizers/token_spec.rb +2 -2
- data/spec/tokenizers/unicode_regex/unicode_regex_tokenizer_spec.rb +94 -94
- data/spec/utils/file_system_trie_spec.rb +98 -0
- data/spec/utils/range_set_spec.rb +53 -1
- data/spec/utils/script_detector_spec.rb +58 -0
- data/spec/utils/yaml/yaml_spec.rb +22 -22
- data/spec/utils_spec.rb +21 -21
- metadata +832 -28
- data/lib/twitter_cldr/parsers/segmentation_parser.rb +0 -137
- data/lib/twitter_cldr/resources/canonical_compositions_updater.rb +0 -51
- data/lib/twitter_cldr/resources/composition_exclusions_importer.rb +0 -62
- data/lib/twitter_cldr/resources/normalization_quick_check_importer.rb +0 -73
- data/lib/twitter_cldr/resources/unicode_properties_importer.rb +0 -79
- data/lib/twitter_cldr/shared/break_iterator.rb +0 -213
- data/lib/twitter_cldr/tokenizers/segmentation/segmentation_tokenizer.rb +0 -39
- data/resources/shared/segments/tailorings/en.yml +0 -8
- data/resources/unicode_data/canonical_compositions.yml +0 -4925
- data/resources/unicode_data/composition_exclusions.yml +0 -297
- data/resources/unicode_data/hangul_blocks.yml +0 -21
- data/resources/unicode_data/indices/bidi_class.yml +0 -4572
- data/resources/unicode_data/indices/bidi_mirrored.yml +0 -3087
- data/resources/unicode_data/indices/category.yml +0 -10918
- data/resources/unicode_data/indices/keys.yml +0 -101
- data/resources/unicode_data/nfc_quick_check.yml +0 -293
- data/resources/unicode_data/nfd_quick_check.yml +0 -909
- data/resources/unicode_data/nfkc_quick_check.yml +0 -989
- data/resources/unicode_data/nfkd_quick_check.yml +0 -1537
- data/resources/unicode_data/properties/line_break.yml +0 -9269
- data/resources/unicode_data/properties/sentence_break.yml +0 -8067
- data/resources/unicode_data/properties/word_break.yml +0 -3001
- data/spec/parsers/segmentation_parser_spec.rb +0 -100
- data/spec/tokenizers/segmentation/segmentation_tokenizer_spec.rb +0 -40
@@ -4,6 +4,7 @@
|
|
4
4
|
# http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
|
6
6
|
require 'spec_helper'
|
7
|
+
require 'eprun'
|
7
8
|
|
8
9
|
include TwitterCldr::Localized
|
9
10
|
|
@@ -28,53 +29,53 @@ describe LocalizedString do
|
|
28
29
|
end
|
29
30
|
|
30
31
|
context 'when argument is a Hash' do
|
31
|
-
let(:horses) { { :
|
32
|
+
let(:horses) { { one: '1 horse', other: '%{horses_count} horses' } }
|
32
33
|
|
33
34
|
before(:each) do
|
34
35
|
stub(TwitterCldr::Formatters::Plurals::Rules).rule_for { |n, _| n == 1 ? :one : :other }
|
35
36
|
end
|
36
37
|
|
37
38
|
it 'interpolates named placeholders' do
|
38
|
-
expect('%<num>.2f is a %{noun}'.localize % { :
|
39
|
+
expect('%<num>.2f is a %{noun}'.localize % { num: 3.1415, noun: 'number' }).to eq('3.14 is a number')
|
39
40
|
end
|
40
41
|
|
41
42
|
it 'performs regular pluralization' do
|
42
|
-
expect('%{horses_count:horses}'.localize % { :
|
43
|
+
expect('%{horses_count:horses}'.localize % { horses_count: 2, horses: horses }).to eq('2 horses')
|
43
44
|
end
|
44
45
|
|
45
46
|
it 'performs inline pluralization' do
|
46
47
|
string = '%<{ "horses_count": { "other": "%{horses_count} horses" } }>'.localize
|
47
|
-
expect(string % { :
|
48
|
+
expect(string % { horses_count: 2 }).to eq('2 horses')
|
48
49
|
end
|
49
50
|
|
50
51
|
it 'performs both formatting and regular pluralization simultaneously' do
|
51
52
|
string = '%{msg}: %{horses_count:horses}'.localize
|
52
|
-
expect(string % { :
|
53
|
+
expect(string % { horses_count: 2, horses: horses, msg: 'result' }).to eq('result: 2 horses')
|
53
54
|
end
|
54
55
|
|
55
56
|
it 'performs both formatting and inline pluralization simultaneously' do
|
56
57
|
string = '%{msg}: %<{"horses_count": {"other": "%{horses_count} horses"}}>'.localize
|
57
|
-
expect(string % { :
|
58
|
+
expect(string % { horses_count: 2, msg: 'result' }).to eq('result: 2 horses')
|
58
59
|
end
|
59
60
|
|
60
61
|
it 'performs both formatted interpolation and inline pluralization simultaneously' do
|
61
62
|
string = '%<number>d, %<{"horses_count": {"other": "%{horses_count} horses" }}>'.localize
|
62
|
-
expect(string % { :
|
63
|
+
expect(string % { number: 3.14, horses_count: 2 }).to eq('3, 2 horses')
|
63
64
|
end
|
64
65
|
|
65
66
|
it 'leaves regular pluralization placeholders unchanged if not enough information given' do
|
66
67
|
string = '%{msg}: %{horses_count:horses}'.localize
|
67
|
-
expect(string % { :
|
68
|
+
expect(string % { msg: 'no pluralization' } ).to eq('no pluralization: %{horses_count:horses}')
|
68
69
|
end
|
69
70
|
|
70
71
|
it 'leaves inline pluralization placeholders unchanged if not enough information given' do
|
71
72
|
string = '%<number>d, %<{"horses_count": {"one": "one horse"}}>'.localize
|
72
|
-
expect(string % { :
|
73
|
+
expect(string % { number: 3.14, horses_count: 2 }).to eq('3, %<{"horses_count": {"one": "one horse"}}>')
|
73
74
|
end
|
74
75
|
|
75
76
|
it 'raises KeyError when value for a named placeholder is missing' do
|
76
77
|
expect do
|
77
|
-
'%{msg}: %{horses_count:horses}'.localize % { :
|
78
|
+
'%{msg}: %{horses_count:horses}'.localize % { horses_count: 2, horses: horses }
|
78
79
|
end.to raise_error(KeyError)
|
79
80
|
end
|
80
81
|
end
|
@@ -139,11 +140,11 @@ describe LocalizedString do
|
|
139
140
|
|
140
141
|
it "uses specified algorithm if there is any" do
|
141
142
|
mock(Eprun).normalize(string, :nfkd) { normalized_string }
|
142
|
-
expect(localized_string.normalize(:
|
143
|
+
expect(localized_string.normalize(using: :NFKD).base_obj).to eq(normalized_string)
|
143
144
|
end
|
144
145
|
|
145
146
|
it "raises an ArgumentError if passed an unsupported normalization form" do
|
146
|
-
expect { localized_string.normalize(:
|
147
|
+
expect { localized_string.normalize(using: :blarg) }.to raise_error(ArgumentError)
|
147
148
|
end
|
148
149
|
end
|
149
150
|
|
@@ -159,7 +160,7 @@ describe LocalizedString do
|
|
159
160
|
end
|
160
161
|
|
161
162
|
it 'uses the t option when explicitly given' do
|
162
|
-
expect("Istanbul".localize.casefold(:
|
163
|
+
expect("Istanbul".localize.casefold(t: true).to_s).to eq("ıstanbul")
|
163
164
|
end
|
164
165
|
|
165
166
|
it 'uses t by default if the locale is tr (az not supported)' do
|
@@ -167,6 +168,26 @@ describe LocalizedString do
|
|
167
168
|
end
|
168
169
|
end
|
169
170
|
|
171
|
+
describe "#downcase" do
|
172
|
+
it 'lowercases the string' do
|
173
|
+
expect('FoObAr'.localize(:en).downcase.to_s).to eq('foobar')
|
174
|
+
end
|
175
|
+
end
|
176
|
+
|
177
|
+
describe "#upcase" do
|
178
|
+
it 'uppercases the string' do
|
179
|
+
expect('foObAr'.localize(:en).upcase.to_s).to eq('FOOBAR')
|
180
|
+
end
|
181
|
+
end
|
182
|
+
|
183
|
+
describe "#titlecase" do
|
184
|
+
it 'titlecases the string' do
|
185
|
+
expect('cats are cool'.localize(:en).titlecase.to_s).to(
|
186
|
+
eq('Cats Are Cool')
|
187
|
+
)
|
188
|
+
end
|
189
|
+
end
|
190
|
+
|
170
191
|
describe "#each_sentence" do
|
171
192
|
it "returns an enumerator if not passed a block" do
|
172
193
|
expect("foo bar".localize.each_sentence).to be_a(Enumerator)
|
@@ -180,7 +201,7 @@ describe LocalizedString do
|
|
180
201
|
end
|
181
202
|
|
182
203
|
expect(str.each_sentence.to_a.map(&:to_s)).to eq([
|
183
|
-
"Quick.", "
|
204
|
+
"Quick. ", "Brown. ", "Fox."
|
184
205
|
])
|
185
206
|
end
|
186
207
|
end
|
@@ -235,7 +256,7 @@ describe LocalizedString do
|
|
235
256
|
expect(chars.first).to eq("a")
|
236
257
|
expect(chars.last).to eq("b")
|
237
258
|
|
238
|
-
result = str.localize.to_reordered_s(:
|
259
|
+
result = str.localize.to_reordered_s(direction: :RTL)
|
239
260
|
result_chars = result.chars.to_a
|
240
261
|
expect(result_chars.first).to eq("b")
|
241
262
|
expect(result_chars.last).to eq("a")
|
@@ -251,4 +272,10 @@ describe LocalizedString do
|
|
251
272
|
expect(territory.code).to eq(code)
|
252
273
|
end
|
253
274
|
end
|
254
|
-
|
275
|
+
|
276
|
+
describe '#script' do
|
277
|
+
it 'detects the script the string is written in' do
|
278
|
+
expect('Кирилл'.localize.script).to eq('Cyrillic')
|
279
|
+
end
|
280
|
+
end
|
281
|
+
end
|
@@ -10,7 +10,7 @@ include TwitterCldr::Localized
|
|
10
10
|
describe LocalizedSymbol do
|
11
11
|
|
12
12
|
describe "#as_language_code" do
|
13
|
-
it "
|
13
|
+
it "calculates the correct localized language from the symbol" do
|
14
14
|
expect(:es.localize.as_language_code).to eq("Spanish")
|
15
15
|
TwitterCldr.locale = :es
|
16
16
|
expect(:es.localize.as_language_code).to eq("español")
|
@@ -20,7 +20,7 @@ describe LocalizedSymbol do
|
|
20
20
|
expect(:blarg.localize.as_language_code).to eq(nil)
|
21
21
|
end
|
22
22
|
|
23
|
-
it "
|
23
|
+
it "calculates the correct value for mapped as well as CLDR language codes" do
|
24
24
|
expect(:'zh-cn'.localize.as_language_code).to eq("Chinese")
|
25
25
|
expect(:'zh-tw'.localize.as_language_code).to eq("Traditional Chinese")
|
26
26
|
expect(:'zh-Hant'.localize.as_language_code).to eq("Traditional Chinese")
|
@@ -28,11 +28,38 @@ describe LocalizedSymbol do
|
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
31
|
+
describe "#as_territory" do
|
32
|
+
it "calculates the correct localized territory from the symbol" do
|
33
|
+
expect(:gb.localize.as_territory).to eq("U.K.")
|
34
|
+
TwitterCldr.locale = :pt
|
35
|
+
expect(:gb.localize.as_territory).to eq("Reino Unido")
|
36
|
+
end
|
37
|
+
|
38
|
+
it "returns nil if the symbol doesn't correspond to a territory code" do
|
39
|
+
expect(:blarg.localize.as_territory).to eq(nil)
|
40
|
+
end
|
41
|
+
|
42
|
+
it "calculates the correct value for mapped as well as CLDR language codes" do
|
43
|
+
expect(:gb.localize(:'en-au').as_territory).to eq("U.K.")
|
44
|
+
expect(:gb.localize(:'en-ca').as_territory).to eq("U.K.")
|
45
|
+
expect(:gb.localize(:'en-gb').as_territory).to eq("UK")
|
46
|
+
expect(:gb.localize(:'en').as_territory).to eq("U.K.")
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
31
50
|
describe "#is_rtl?" do
|
32
|
-
it "
|
51
|
+
it "returns true or false depending on the locale" do
|
33
52
|
expect(:es.localize.is_rtl?).to be_false
|
34
53
|
expect(:ar.localize.is_rtl?).to be_true
|
35
54
|
end
|
36
55
|
end
|
37
56
|
|
38
|
-
|
57
|
+
describe "#as_locale" do
|
58
|
+
it "parses the symbol as a locale and returns a Locale instance" do
|
59
|
+
locale = :ru.localize.as_locale
|
60
|
+
expect(locale).to be_a(TwitterCldr::Shared::Locale)
|
61
|
+
expect(locale.language).to eq('ru')
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
end
|
@@ -25,9 +25,9 @@ describe LocalizedTime do
|
|
25
25
|
)
|
26
26
|
|
27
27
|
#time.localize(:th, :calendar_type => :buddhist).to_full_s # It doesn't support era
|
28
|
-
time.localize(:th, :
|
29
|
-
time.localize(:th, :
|
30
|
-
time.localize(:th, :
|
28
|
+
time.localize(:th, calendar_type: :buddhist).to_long_s
|
29
|
+
time.localize(:th, calendar_type: :buddhist).to_medium_s
|
30
|
+
time.localize(:th, calendar_type: :buddhist).to_short_s
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
@@ -9,15 +9,15 @@ include TwitterCldr::Localized
|
|
9
9
|
|
10
10
|
describe LocalizedTimespan do
|
11
11
|
it "should format a numer of seconds in different units" do
|
12
|
-
timespan = LocalizedTimespan.new(-172800, :
|
13
|
-
expect(timespan.to_s(:
|
14
|
-
expect(timespan.to_s(:
|
12
|
+
timespan = LocalizedTimespan.new(-172800, locale: :de)
|
13
|
+
expect(timespan.to_s(unit: :hour)).to match_normalized("Vor 48 Stunden")
|
14
|
+
expect(timespan.to_s(unit: :day)).to match_normalized("Vor 2 Tagen")
|
15
15
|
end
|
16
16
|
|
17
17
|
it "approximates timespans accurately if explicity asked" do
|
18
18
|
options = {
|
19
|
-
:
|
20
|
-
:
|
19
|
+
direction: :none,
|
20
|
+
approximate: true
|
21
21
|
}
|
22
22
|
|
23
23
|
expected = {
|
@@ -36,13 +36,13 @@ describe LocalizedTimespan do
|
|
36
36
|
}
|
37
37
|
|
38
38
|
expected.each_pair do |seconds, text|
|
39
|
-
timespan = LocalizedTimespan.new(seconds, :
|
39
|
+
timespan = LocalizedTimespan.new(seconds, locale: :de)
|
40
40
|
expect(timespan.to_s(options)).to match_normalized(text)
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
44
44
|
it "doesn't approximate timespans by default" do
|
45
|
-
options = { :
|
45
|
+
options = { direction: :none }
|
46
46
|
expected = {
|
47
47
|
44 => "44 Sekunden",
|
48
48
|
45 => "45 Sekunden",
|
@@ -60,65 +60,65 @@ describe LocalizedTimespan do
|
|
60
60
|
}
|
61
61
|
|
62
62
|
expected.each_pair do |seconds, text|
|
63
|
-
timespan = LocalizedTimespan.new(seconds, :
|
63
|
+
timespan = LocalizedTimespan.new(seconds, locale: :de)
|
64
64
|
expect(timespan.to_s(options)).to match_normalized(text)
|
65
65
|
end
|
66
66
|
end
|
67
67
|
|
68
68
|
describe "non-directional" do
|
69
69
|
it "works for a variety of units" do
|
70
|
-
timespan = LocalizedTimespan.new(3273932, :
|
71
|
-
options = { :
|
70
|
+
timespan = LocalizedTimespan.new(3273932, locale: :de)
|
71
|
+
options = { direction: :none }
|
72
72
|
expected = {
|
73
|
-
:
|
74
|
-
:
|
75
|
-
:
|
76
|
-
:
|
77
|
-
:
|
78
|
-
:
|
79
|
-
:
|
73
|
+
year: '0 Jahre',
|
74
|
+
month: '1 Monat',
|
75
|
+
week: '5 Wochen',
|
76
|
+
day: '38 Tage',
|
77
|
+
hour: '909 Stunden',
|
78
|
+
minute: '54566 Minuten',
|
79
|
+
second: '3273932 Sekunden'
|
80
80
|
}
|
81
81
|
|
82
82
|
expected.each_pair do |unit, text|
|
83
|
-
expect(timespan.to_s(options.merge(:
|
83
|
+
expect(timespan.to_s(options.merge(unit: unit))).to match_normalized(text)
|
84
84
|
end
|
85
85
|
end
|
86
86
|
end
|
87
87
|
|
88
88
|
describe "ago" do
|
89
89
|
it "works for a variety of units" do
|
90
|
-
timespan = LocalizedTimespan.new(-3273932, :
|
90
|
+
timespan = LocalizedTimespan.new(-3273932, locale: :de)
|
91
91
|
expected = {
|
92
|
-
:
|
93
|
-
:
|
94
|
-
:
|
95
|
-
:
|
96
|
-
:
|
97
|
-
:
|
98
|
-
:
|
92
|
+
year: 'Vor 0 Jahren',
|
93
|
+
month: 'Vor 1 Monat',
|
94
|
+
week: 'Vor 5 Wochen',
|
95
|
+
day: 'Vor 38 Tagen',
|
96
|
+
hour: 'Vor 909 Stunden',
|
97
|
+
minute: 'Vor 54566 Minuten',
|
98
|
+
second: 'Vor 3273932 Sekunden'
|
99
99
|
}
|
100
100
|
|
101
101
|
expected.each_pair do |unit, text|
|
102
|
-
expect(timespan.to_s(:
|
102
|
+
expect(timespan.to_s(unit: unit)).to match_normalized(text)
|
103
103
|
end
|
104
104
|
end
|
105
105
|
end
|
106
106
|
|
107
107
|
describe "#until" do
|
108
108
|
it "works for a variety of units" do
|
109
|
-
timespan = LocalizedTimespan.new(3273932, :
|
109
|
+
timespan = LocalizedTimespan.new(3273932, locale: :de)
|
110
110
|
expected = {
|
111
|
-
:
|
112
|
-
:
|
113
|
-
:
|
114
|
-
:
|
115
|
-
:
|
116
|
-
:
|
117
|
-
:
|
111
|
+
year: 'In 0 Jahren',
|
112
|
+
month: 'In 1 Monat',
|
113
|
+
week: 'In 5 Wochen',
|
114
|
+
day: 'In 38 Tagen',
|
115
|
+
hour: 'In 909 Stunden',
|
116
|
+
minute: 'In 54566 Minuten',
|
117
|
+
second: 'In 3273932 Sekunden'
|
118
118
|
}
|
119
119
|
|
120
120
|
expected.each_pair do |unit, text|
|
121
|
-
expect(timespan.to_s(:
|
121
|
+
expect(timespan.to_s(unit: unit)).to match_normalized(text)
|
122
122
|
end
|
123
123
|
end
|
124
124
|
end
|
@@ -128,16 +128,16 @@ describe LocalizedTimespan do
|
|
128
128
|
it "works for a variety of units" do
|
129
129
|
# year/month/week not supported
|
130
130
|
timespan = LocalizedTimespan.new(3273932)
|
131
|
-
options = { :
|
131
|
+
options = { type: :abbreviated, direction: :none }
|
132
132
|
expected = {
|
133
|
-
:
|
134
|
-
:
|
135
|
-
:
|
136
|
-
:
|
133
|
+
day: '38d',
|
134
|
+
hour: '909h',
|
135
|
+
minute: '54566m',
|
136
|
+
second: '3273932s'
|
137
137
|
}
|
138
138
|
|
139
139
|
expected.each_pair do |unit, text|
|
140
|
-
expect(timespan.to_s(options.merge(:
|
140
|
+
expect(timespan.to_s(options.merge(unit: unit))).to match_normalized(text)
|
141
141
|
end
|
142
142
|
end
|
143
143
|
end
|
data/spec/normalization_spec.rb
CHANGED
@@ -18,23 +18,23 @@ describe TwitterCldr::Normalization do
|
|
18
18
|
|
19
19
|
it "uses specified algorithm if there is any" do
|
20
20
|
mock(Eprun).normalize(string, :nfkd) { normalized_string }
|
21
|
-
expect(TwitterCldr::Normalization.normalize(string, :
|
21
|
+
expect(TwitterCldr::Normalization.normalize(string, using: :nfkd)).to eq(normalized_string)
|
22
22
|
end
|
23
23
|
|
24
24
|
it "raises an ArgumentError if passed an unsupported normalizer name" do
|
25
25
|
expect do
|
26
|
-
TwitterCldr::Normalization.normalize(string, :
|
26
|
+
TwitterCldr::Normalization.normalize(string, using: :blarg)
|
27
27
|
end.to raise_error(ArgumentError)
|
28
28
|
end
|
29
29
|
|
30
30
|
it 'accepts normalizer name in upper case' do
|
31
31
|
mock(Eprun).normalize(string, :nfkd) { normalized_string }
|
32
|
-
expect(TwitterCldr::Normalization.normalize(string, :
|
32
|
+
expect(TwitterCldr::Normalization.normalize(string, using: :NFKD)).to eq(normalized_string)
|
33
33
|
end
|
34
34
|
|
35
35
|
it 'accepts a string' do
|
36
36
|
mock(Eprun).normalize(string, :nfkd) { normalized_string }
|
37
|
-
expect(TwitterCldr::Normalization.normalize(string, :
|
37
|
+
expect(TwitterCldr::Normalization.normalize(string, using: 'nfkd')).to eq(normalized_string)
|
38
38
|
end
|
39
39
|
|
40
40
|
end
|
@@ -28,30 +28,30 @@ describe NumberParser do
|
|
28
28
|
|
29
29
|
describe "#identify" do
|
30
30
|
it "properly identifies a numeric value" do
|
31
|
-
expect(@parser.send(:identify, "7841", *separators)).to eq({ :
|
31
|
+
expect(@parser.send(:identify, "7841", *separators)).to eq({ value: "7841", type: :numeric })
|
32
32
|
end
|
33
33
|
|
34
34
|
it "properly identifies a decimal separator" do
|
35
|
-
expect(@parser.send(:identify, ",", *separators)).to eq({ :
|
35
|
+
expect(@parser.send(:identify, ",", *separators)).to eq({ value: ",", type: :decimal })
|
36
36
|
end
|
37
37
|
|
38
38
|
it "properly identifies a group separator" do
|
39
|
-
expect(@parser.send(:identify, ".", *separators)).to eq({ :
|
39
|
+
expect(@parser.send(:identify, ".", *separators)).to eq({ value: ".", type: :group })
|
40
40
|
end
|
41
41
|
|
42
42
|
it "returns nil if the text doesn't match a number or either separators" do
|
43
|
-
expect(@parser.send(:identify, "abc", *separators)).to eq({ :
|
43
|
+
expect(@parser.send(:identify, "abc", *separators)).to eq({ value: "abc", type: nil })
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
47
|
describe "#tokenize" do
|
48
48
|
it "splits text by numericality and group/decimal separators" do
|
49
49
|
expect(@parser.send(:tokenize, "1,33.00", *separators)).to eq([
|
50
|
-
{ :
|
51
|
-
{ :
|
52
|
-
{ :
|
53
|
-
{ :
|
54
|
-
{ :
|
50
|
+
{ value: "1", type: :numeric },
|
51
|
+
{ value: ",", type: :decimal },
|
52
|
+
{ value: "33", type: :numeric },
|
53
|
+
{ value: ".", type: :group },
|
54
|
+
{ value: "00", type: :numeric }
|
55
55
|
])
|
56
56
|
end
|
57
57
|
|
@@ -152,7 +152,7 @@ describe NumberParser do
|
|
152
152
|
|
153
153
|
context "non-strict" do
|
154
154
|
it "succeeds in parsing even if inexact punctuation is used" do
|
155
|
-
expect(@parser.parse("5 100", :
|
155
|
+
expect(@parser.parse("5 100", strict: false)).to eq(5100)
|
156
156
|
end
|
157
157
|
end
|
158
158
|
end
|
data/spec/parsers/parser_spec.rb
CHANGED
@@ -6,6 +6,7 @@
|
|
6
6
|
require 'spec_helper'
|
7
7
|
|
8
8
|
include TwitterCldr::Parsers
|
9
|
+
include TwitterCldr::Tokenizers
|
9
10
|
|
10
11
|
class FakeParser < Parser
|
11
12
|
def do_parse(options); end
|
@@ -15,9 +16,9 @@ describe Parser do
|
|
15
16
|
let(:parser) { FakeParser.new }
|
16
17
|
let(:tokens) do
|
17
18
|
[
|
18
|
-
Token.new(:
|
19
|
-
Token.new(:
|
20
|
-
Token.new(:
|
19
|
+
Token.new(type: :a, value: "a"),
|
20
|
+
Token.new(type: :b, value: "b"),
|
21
|
+
Token.new(type: :c, value: "c")
|
21
22
|
]
|
22
23
|
end
|
23
24
|
|
@@ -57,4 +58,19 @@ describe Parser do
|
|
57
58
|
expect(parser.send(:current_token).type).to eq(:a)
|
58
59
|
end
|
59
60
|
end
|
61
|
+
|
62
|
+
describe "#eof" do
|
63
|
+
it "should return true if all tokens have been used" do
|
64
|
+
parser.parse(tokens)
|
65
|
+
parser.send(:next_token, :a)
|
66
|
+
parser.send(:next_token, :b)
|
67
|
+
parser.send(:next_token, :c)
|
68
|
+
expect(parser).to be_eof
|
69
|
+
end
|
70
|
+
|
71
|
+
it "should return false if not all tokens have been used" do
|
72
|
+
parser.parse(tokens)
|
73
|
+
expect(parser).to_not be_eof
|
74
|
+
end
|
75
|
+
end
|
60
76
|
end
|
@@ -8,7 +8,7 @@ require 'spec_helper'
|
|
8
8
|
include TwitterCldr::Parsers
|
9
9
|
|
10
10
|
describe SymbolTable do
|
11
|
-
let(:table) { SymbolTable.new(:
|
11
|
+
let(:table) { SymbolTable.new(a: "b", c: "d") }
|
12
12
|
|
13
13
|
describe "#fetch" do
|
14
14
|
it "should be able to retrieve values for symbols" do
|
@@ -117,4 +117,16 @@ describe UnicodeRegexParser::CharacterClass do
|
|
117
117
|
)
|
118
118
|
end
|
119
119
|
end
|
120
|
+
|
121
|
+
describe "#codepoints" do
|
122
|
+
it "lists all the codepoints in a range" do
|
123
|
+
char_class = char_class_from(parse(tokenize("[a-z]")))
|
124
|
+
expect(char_class.codepoints).to eq((97..122).to_a)
|
125
|
+
end
|
126
|
+
|
127
|
+
it "lists all the codepoints in a union" do
|
128
|
+
char_class = char_class_from(parse(tokenize("[[abc][def]]")))
|
129
|
+
expect(char_class.codepoints).to eq((97..102).to_a)
|
130
|
+
end
|
131
|
+
end
|
120
132
|
end
|
@@ -6,16 +6,35 @@
|
|
6
6
|
require 'spec_helper'
|
7
7
|
|
8
8
|
include TwitterCldr::Parsers
|
9
|
+
include TwitterCldr::Tokenizers
|
9
10
|
|
10
11
|
describe UnicodeRegexParser::CharacterRange do
|
12
|
+
let(:tokenizer) { UnicodeRegexTokenizer.new }
|
13
|
+
let(:parser) { UnicodeRegexParser.new }
|
14
|
+
|
15
|
+
def tokenize(str)
|
16
|
+
tokenizer.tokenize(str)
|
17
|
+
end
|
18
|
+
|
19
|
+
def parse(tokens, options = {})
|
20
|
+
parser.parse(tokens, options)
|
21
|
+
end
|
22
|
+
|
23
|
+
def char_range_from(elements)
|
24
|
+
elements.first
|
25
|
+
end
|
26
|
+
|
11
27
|
describe "#to_set" do
|
12
28
|
it "should return a range between the initial and the final values" do
|
13
|
-
range =
|
14
|
-
UnicodeRegexParser::UnicodeString.new([97]),
|
15
|
-
UnicodeRegexParser::UnicodeString.new([98])
|
16
|
-
)
|
17
|
-
|
29
|
+
range = char_range_from(parse(tokenize("a-b")))
|
18
30
|
expect(range.to_set.to_a(true)).to eq([97..98])
|
19
31
|
end
|
20
32
|
end
|
33
|
+
|
34
|
+
describe "#codepoints" do
|
35
|
+
it "lists all the codepoints in the range" do
|
36
|
+
range = char_range_from(parse(tokenize("a-z")))
|
37
|
+
expect(range.codepoints).to eq((97..122).to_a)
|
38
|
+
end
|
39
|
+
end
|
21
40
|
end
|
@@ -19,7 +19,15 @@ describe UnicodeRegexParser::CharacterSet do
|
|
19
19
|
it "should return a set containing codepoints for the given named property" do
|
20
20
|
char_set = UnicodeRegexParser::CharacterSet.new("Sentence_Break=Sp")
|
21
21
|
expect(char_set.to_set.to_a(true)).to eq([
|
22
|
-
9, 11..12, 32, 160, 5760, 8192..8202, 8239, 8287, 12288
|
22
|
+
9, 11..12, 32, 160, 5760, 6158, 8192..8202, 8239, 8287, 12288
|
23
|
+
])
|
24
|
+
end
|
25
|
+
|
26
|
+
it "should return a set containing codepoints for the given script" do
|
27
|
+
char_set = UnicodeRegexParser::CharacterSet.new('Katakana')
|
28
|
+
expect(char_set.to_set.to_a(true)).to eq([
|
29
|
+
12449..12538, 12541..12543, 12784..12799, 13008..13054, 13056..13143,
|
30
|
+
65382..65391, 65393..65437, 110592
|
23
31
|
])
|
24
32
|
end
|
25
33
|
|
@@ -32,7 +32,7 @@ describe UnicodeRegexParser do
|
|
32
32
|
|
33
33
|
it "replaces variables" do
|
34
34
|
symbol_table = SymbolTable.new("$VAR" => tokenize("\\p{L}"))
|
35
|
-
elements = parse(tokenize("($VAR)?"), :
|
35
|
+
elements = parse(tokenize("($VAR)?"), symbol_table: symbol_table)
|
36
36
|
expect(elements[1]).to be_a(UnicodeRegexParser::CharacterSet)
|
37
37
|
expect(elements[1].property_value).to eq("L")
|
38
38
|
end
|
@@ -21,7 +21,7 @@ describe Loader do
|
|
21
21
|
|
22
22
|
it 'symbolizes hash keys' do
|
23
23
|
stub_resource_file(resource_path, "---\n:a:\n :b: 3\n")
|
24
|
-
expect(loader.get_resource(:random, :resource)).to eq({ :
|
24
|
+
expect(loader.get_resource(:random, :resource)).to eq({ a: { b: 3 } })
|
25
25
|
end
|
26
26
|
|
27
27
|
it 'loads the resource only once' do
|
@@ -40,13 +40,13 @@ describe Loader do
|
|
40
40
|
|
41
41
|
it 'raises an exception if resource file is missing' do
|
42
42
|
mock(File).file?(File.join(TwitterCldr::RESOURCES_DIR, 'foo/bar.yml')) { false }
|
43
|
-
expect { loader.get_resource(:foo, :bar) }.to raise_error(
|
43
|
+
expect { loader.get_resource(:foo, :bar) }.to raise_error(ResourceLoadError, "Resource 'foo/bar.yml' not found.")
|
44
44
|
end
|
45
45
|
|
46
46
|
context 'custom resources' do
|
47
47
|
it "doesn't merge the custom resource if it doesn't exist" do
|
48
48
|
mock(loader).read_resource_file('foo/bar.yml') { ":foo: bar" }
|
49
|
-
expect(loader.get_resource(:foo, :bar)).to eq({ :
|
49
|
+
expect(loader.get_resource(:foo, :bar)).to eq({ foo: "bar" })
|
50
50
|
end
|
51
51
|
|
52
52
|
context 'with a custom resource' do
|
@@ -61,12 +61,12 @@ describe Loader do
|
|
61
61
|
mock.proxy(loader).load_resource("foo/bar.yml")
|
62
62
|
mock.proxy(loader).load_resource("custom/foo/bar.yml", false)
|
63
63
|
|
64
|
-
expect(loader.get_resource(:foo, :bar)).to eq({ :
|
64
|
+
expect(loader.get_resource(:foo, :bar)).to eq({ foo: "bar", bar: "baz" })
|
65
65
|
end
|
66
66
|
|
67
67
|
it 'does not merge the custom resource if custom resources are disabled' do
|
68
68
|
TwitterCldr.disable_custom_locale_resources = true
|
69
|
-
expect(loader.get_resource(:foo, :bar)).to eq({ :
|
69
|
+
expect(loader.get_resource(:foo, :bar)).to eq({ foo: "bar" })
|
70
70
|
TwitterCldr.disable_custom_locale_resources = false
|
71
71
|
end
|
72
72
|
end
|
@@ -175,4 +175,4 @@ describe Loader do
|
|
175
175
|
stub(File).file?(file_path) { true }
|
176
176
|
end
|
177
177
|
|
178
|
-
end
|
178
|
+
end
|