From 98c7733f73a9fa93070b1fc51d44a11bfd519899 Mon Sep 17 00:00:00 2001 From: jinroq Date: Tue, 3 Nov 2026 17:31:51 +0900 Subject: [PATCH 01/74] Add URI::WHATWG_PARSER as an opt-in parser Define URI::WHATWG_Parser and the URI::WHATWG_PARSER instance, loaded with "uri" but not used by default: DEFAULT_PARSER stays RFC3986_PARSER. It can be used directly or selected with URI.parser=. The parser provides the full interface URI.parser= and URI::Generic rely on (split, parse, join, regexp, convert_to_uri, and the obsolete RFC2396-compatible extract, make_regexp, escape and unescape, which delegate to RFC2396_PARSER as RFC3986_Parser does). split only handles a simple absolute URL for now. Co-Authored-By: Claude Opus 5.5 --- lib/uri/common.rb | 6 + lib/uri/whatwg_parser.rb | 75 +++++++++++ test/uri/test_whatwg_parser.rb | 231 +++++++++++++++++++++++++++++++++ 3 files changed, 312 insertions(+) create mode 100644 lib/uri/whatwg_parser.rb create mode 100644 test/uri/test_whatwg_parser.rb diff --git a/lib/uri/common.rb b/lib/uri/common.rb index 971a684..6506500 100644 --- a/lib/uri/common.rb +++ b/lib/uri/common.rb @@ -11,6 +11,7 @@ require_relative "rfc2396_parser" require_relative "rfc3986_parser" +require_relative "whatwg_parser" module URI # The default parser instance for RFC 2396. @@ -21,6 +22,11 @@ module URI RFC3986_PARSER = RFC3986_Parser.new Ractor.make_shareable(RFC3986_PARSER) if defined?(Ractor) + # The parser instance for the WHATWG URL Standard. It is not the default; + # switch to it with URI.parser = URI::WHATWG_PARSER. + WHATWG_PARSER = WHATWG_Parser.new + Ractor.make_shareable(WHATWG_PARSER) if defined?(Ractor) + # The default parser instance. DEFAULT_PARSER = RFC3986_PARSER Ractor.make_shareable(DEFAULT_PARSER) if defined?(Ractor) diff --git a/lib/uri/whatwg_parser.rb b/lib/uri/whatwg_parser.rb new file mode 100644 index 0000000..35d92df --- /dev/null +++ b/lib/uri/whatwg_parser.rb @@ -0,0 +1,75 @@ +# frozen_string_literal: true +module URI + # A parser for the WHATWG URL Standard (https://url.spec.whatwg.org/). + # + # It is not the default parser. Use it explicitly with + # URI::WHATWG_PARSER.parse, or switch to it with + # URI.parser = URI::WHATWG_PARSER. + class WHATWG_Parser # :nodoc: + # Returns [scheme, userinfo, host, port, registry, path, opaque, query, + # fragment], the same contract as URI::RFC3986_Parser#split. + def split(uri) # :nodoc: + begin + uri = uri.to_str + rescue NoMethodError + raise InvalidURIError, "bad URI (is not URI?): #{uri.inspect}" + end + + scheme, rest = uri.split(":", 2) + authority, slash, path = rest.delete_prefix("//").partition("/") + [scheme, nil, authority, nil, nil, slash + path, nil, nil, nil] + end + + def parse(uri) # :nodoc: + URI.for(*split(uri), self) + end + + def join(*uris) # :nodoc: + uris[0] = convert_to_uri(uris[0]) + uris.inject :merge + end + + # Component syntax used by URI::Generic's setters is shared with + # URI::RFC3986_Parser. + def regexp # :nodoc: + RFC3986_PARSER.regexp + end + + # Compatibility for RFC2396 parser + def extract(str, schemes = nil, &block) # :nodoc: + warn "URI::WHATWG_PARSER.extract is obsolete. Use URI::RFC2396_PARSER.extract explicitly.", uplevel: 1 if $VERBOSE + RFC2396_PARSER.extract(str, schemes, &block) + end + + # Compatibility for RFC2396 parser + def make_regexp(schemes = nil) # :nodoc: + warn "URI::WHATWG_PARSER.make_regexp is obsolete. Use URI::RFC2396_PARSER.make_regexp explicitly.", uplevel: 1 if $VERBOSE + RFC2396_PARSER.make_regexp(schemes) + end + + # Compatibility for RFC2396 parser + def escape(str, unsafe = nil) # :nodoc: + warn "URI::WHATWG_PARSER.escape is obsolete. Use URI::RFC2396_PARSER.escape explicitly.", uplevel: 1 if $VERBOSE + unsafe ? RFC2396_PARSER.escape(str, unsafe) : RFC2396_PARSER.escape(str) + end + + # Compatibility for RFC2396 parser + def unescape(str, escaped = nil) # :nodoc: + warn "URI::WHATWG_PARSER.unescape is obsolete. Use URI::RFC2396_PARSER.unescape explicitly.", uplevel: 1 if $VERBOSE + escaped ? RFC2396_PARSER.unescape(str, escaped) : RFC2396_PARSER.unescape(str) + end + + private + + def convert_to_uri(uri) + if uri.is_a?(URI::Generic) + uri + elsif uri = String.try_convert(uri) + parse(uri) + else + raise ArgumentError, + "bad argument (expected URI object or URI string)" + end + end + end +end diff --git a/test/uri/test_whatwg_parser.rb b/test/uri/test_whatwg_parser.rb new file mode 100644 index 0000000..5a47fe8 --- /dev/null +++ b/test/uri/test_whatwg_parser.rb @@ -0,0 +1,231 @@ +# frozen_string_literal: true +require 'test/unit' +require 'envutil' +require 'stringio' +require 'uri' + +class URI::TestWHATWGParser < Test::Unit::TestCase + def teardown + URI.parser = URI::RFC3986_PARSER + end + + # --- constant / default parser ------------------------------------- + + def test_whatwg_parser_is_defined_by_requiring_uri + assert_kind_of(URI::WHATWG_Parser, URI::WHATWG_PARSER) + end + + def test_default_parser_stays_rfc3986 + assert_same(URI::RFC3986_PARSER, URI::DEFAULT_PARSER) + assert_same(URI::RFC3986_PARSER, URI::PARSER) + assert_equal(URI::RFC3986_Parser, URI::Parser) + end + + def test_whatwg_parser_is_ractor_shareable + omit "Ractor is not available" unless defined?(Ractor) + assert(Ractor.shareable?(URI::WHATWG_PARSER)) + end + + def test_whatwg_parser_can_be_instantiated_without_arguments + # URI.parser= calls Parser.new with no arguments. + assert_kind_of(URI::WHATWG_Parser, URI::WHATWG_Parser.new) + end + + # --- URI.parser= switching ----------------------------------------- + + def test_parser_switch_to_whatwg + URI.parser = URI::WHATWG_PARSER + + assert_same(URI::WHATWG_PARSER, URI::PARSER) + assert_equal(URI::WHATWG_Parser, URI::Parser) + refute defined?(URI::REGEXP) + refute defined?(URI::PATTERN) + end + + def test_parser_switch_does_not_change_default_parser + URI.parser = URI::WHATWG_PARSER + + assert_same(URI::RFC3986_PARSER, URI::DEFAULT_PARSER) + end + + def test_parser_switch_back_to_rfc3986 + URI.parser = URI::WHATWG_PARSER + URI.parser = URI::RFC3986_PARSER + + assert_same(URI::RFC3986_PARSER, URI::PARSER) + assert_equal(URI::RFC3986_Parser, URI::Parser) + end + + def test_parser_switch_back_with_default_argument + URI.parser = URI::WHATWG_PARSER + URI.parser = URI::RFC2396_PARSER + URI.parser = URI::WHATWG_PARSER + URI.send(:parser=) + + assert_same(URI::RFC3986_PARSER, URI::PARSER) + end + + def test_parser_switch_defines_regexp_constants + URI.parser = URI::WHATWG_PARSER + + URI::WHATWG_PARSER.regexp.each_pair do |name, re| + assert_same(re, URI.const_get(name, false), name.to_s) + end + end + + def test_uri_parse_uses_whatwg_parser_after_switch + URI.parser = URI::WHATWG_PARSER + + assert_same(URI::WHATWG_PARSER, URI.parse("http://example.com/").parser) + assert_same(URI::WHATWG_PARSER, URI("http://example.com/").parser) + end + + def test_uri_parse_uses_default_parser_without_switch + assert_same(URI::RFC3986_PARSER, URI.parse("http://example.com/").parser) + end + + # --- regexp -------------------------------------------------------- + + def test_regexp_has_keys_used_by_generic_setters + %i[SCHEME USERINFO HOST PORT ABS_PATH REL_PATH QUERY FRAGMENT OPAQUE].each do |key| + assert_kind_of(Regexp, URI::WHATWG_PARSER.regexp[key], key.to_s) + end + end + + # --- split / parse / join ------------------------------------------ + + def test_split_returns_nine_components + assert_equal( + ["http", nil, "example.com", nil, nil, "/", nil, nil, nil], + URI::WHATWG_PARSER.split("http://example.com/") + ) + end + + def test_split_rejects_non_string + assert_raise(URI::InvalidURIError) { URI::WHATWG_PARSER.split(nil) } + assert_raise(URI::InvalidURIError) { URI::WHATWG_PARSER.split(1) } + end + + def test_split_accepts_object_responding_to_to_str + str = Object.new + def str.to_str; "http://example.com/"; end + assert_equal("example.com", URI::WHATWG_PARSER.split(str)[2]) + end + + def test_parse_returns_scheme_class_bound_to_whatwg_parser + uri = URI::WHATWG_PARSER.parse("http://example.com/") + + assert_kind_of(URI::HTTP, uri) + assert_equal("http://example.com/", uri.to_s) + assert_same(URI::WHATWG_PARSER, uri.parser) + end + + def test_join_with_single_argument + uri = URI::WHATWG_PARSER.join("http://example.com/") + + assert_equal("http://example.com/", uri.to_s) + assert_same(URI::WHATWG_PARSER, uri.parser) + end + + def test_join_with_absolute_second_argument + assert_equal( + "http://b.example/y", + URI::WHATWG_PARSER.join("http://a.example/x", "http://b.example/y").to_s + ) + end + + def test_join_returns_given_uri_object_unchanged + uri = URI::WHATWG_PARSER.parse("http://example.com/") + + assert_same(uri, URI::WHATWG_PARSER.join(uri)) + end + + # --- convert_to_uri (used by Generic#merge / #route_to) ------------ + + def test_convert_to_uri_returns_uri_as_is + uri = URI::WHATWG_PARSER.parse("http://example.com/") + + assert_same(uri, URI::WHATWG_PARSER.__send__(:convert_to_uri, uri)) + end + + def test_convert_to_uri_parses_string + uri = URI::WHATWG_PARSER.__send__(:convert_to_uri, "http://example.com/") + + assert_equal("http://example.com/", uri.to_s) + assert_same(URI::WHATWG_PARSER, uri.parser) + end + + def test_convert_to_uri_rejects_other_objects + assert_raise(ArgumentError) { URI::WHATWG_PARSER.__send__(:convert_to_uri, nil) } + assert_raise(ArgumentError) { URI::WHATWG_PARSER.__send__(:convert_to_uri, 1) } + end + + # --- RFC2396-compatible methods (obsolete, delegated) -------------- + + def test_extract_delegates_to_rfc2396 + EnvUtil.suppress_warning do + assert_equal(["http://example.com"], URI::WHATWG_PARSER.extract("x http://example.com y")) + assert_equal([], URI::WHATWG_PARSER.extract("x http://example.com y", ["ftp"])) + assert_equal(["http://example.com"], URI::WHATWG_PARSER.extract("http://example.com", ["http"])) + end + end + + def test_extract_with_block + EnvUtil.suppress_warning do + found = [] + URI::WHATWG_PARSER.extract("http://example.com") { |u| found << u } + assert_equal(["http://example.com"], found) + end + end + + def test_make_regexp_delegates_to_rfc2396 + EnvUtil.suppress_warning do + assert_match(URI::WHATWG_PARSER.make_regexp, "http://example.com") + assert_match(URI::WHATWG_PARSER.make_regexp(["http"]), "http://example.com") + assert_no_match(URI::WHATWG_PARSER.make_regexp(["ftp"]), "http://example.com") + end + end + + def test_escape_delegates_to_rfc2396 + EnvUtil.suppress_warning do + assert_equal("a%20b", URI::WHATWG_PARSER.escape("a b")) + assert_equal("%61b", URI::WHATWG_PARSER.escape("ab", /a/)) + end + end + + def test_unescape_delegates_to_rfc2396 + EnvUtil.suppress_warning do + assert_equal("a b", URI::WHATWG_PARSER.unescape("a%20b")) + assert_equal("a%20b", URI::WHATWG_PARSER.unescape("a%20b", /%41/)) + end + end + + def test_uri_extract_and_regexp_work_after_switch + URI.parser = URI::WHATWG_PARSER + + EnvUtil.suppress_warning do + assert_equal(["http://example.com"], URI.extract("http://example.com")) + assert_match(URI.regexp, "http://example.com") + end + end + + def test_obsolete_methods_warn_when_verbose + assert_warning(/URI::WHATWG_PARSER\.extract is obsolete/) { URI::WHATWG_PARSER.extract("") } + assert_warning(/URI::WHATWG_PARSER\.make_regexp is obsolete/) { URI::WHATWG_PARSER.make_regexp } + assert_warning(/URI::WHATWG_PARSER\.escape is obsolete/) { URI::WHATWG_PARSER.escape("") } + assert_warning(/URI::WHATWG_PARSER\.unescape is obsolete/) { URI::WHATWG_PARSER.unescape("") } + end + + def test_obsolete_methods_do_not_warn_when_not_verbose + verbose, $VERBOSE = $VERBOSE, false + stderr, $stderr = $stderr, StringIO.new + URI::WHATWG_PARSER.extract("") + URI::WHATWG_PARSER.make_regexp + URI::WHATWG_PARSER.escape("") + URI::WHATWG_PARSER.unescape("") + assert_equal("", $stderr.string) + ensure + $stderr = stderr + $VERBOSE = verbose + end +end From 9f1ca6c17a4e36742496358eb0eec08eeceff6ab Mon Sep 17 00:00:00 2001 From: jinroq Date: Tue, 3 Nov 2026 17:44:46 +0900 Subject: [PATCH 02/74] Run WPT urltestdata.json against URI::WHATWG_PARSER Add `rake test:wpt`, which fetches url/resources/urltestdata.json from web-platform-tests master (or the file or https URL in WPT_URLTESTDATA) and runs each case against URI::WHATWG_PARSER. The tests live in test/wpt/, outside test/uri/, and are not part of `rake test`, since they need the network. Known failures are listed with a reason in test/wpt/urltestdata_exclusions.json. A listed case that passes, or one that no longer exists in the data, makes the run fail. `rake test:wpt:update_exclusions` regenerates the list, keeping known reasons and marking new failures "unclassified". Co-Authored-By: Claude Opus 5.5 --- Rakefile | 2 +- rakelib/wpt.rake | 16 + test/wpt/test_wpt_harness.rb | 354 +++ test/wpt/test_wpt_urltestdata.rb | 56 + test/wpt/update_exclusions.rb | 23 + test/wpt/urltestdata_exclusions.json | 4102 ++++++++++++++++++++++++++ test/wpt/wpt_url_test_data.rb | 134 + 7 files changed, 4686 insertions(+), 1 deletion(-) create mode 100644 rakelib/wpt.rake create mode 100644 test/wpt/test_wpt_harness.rb create mode 100644 test/wpt/test_wpt_urltestdata.rb create mode 100644 test/wpt/update_exclusions.rb create mode 100644 test/wpt/urltestdata_exclusions.json create mode 100644 test/wpt/wpt_url_test_data.rb diff --git a/Rakefile b/Rakefile index 3935fdf..8f138ee 100644 --- a/Rakefile +++ b/Rakefile @@ -4,7 +4,7 @@ require "rake/testtask" Rake::TestTask.new(:test) do |t| t.libs << "test/lib" t.ruby_opts << "-rhelper" - t.test_files = FileList["test/**/test_*.rb"] + t.test_files = FileList["test/**/test_*.rb"].exclude("test/wpt/**/*") end require "rdoc/task" diff --git a/rakelib/wpt.rake b/rakelib/wpt.rake new file mode 100644 index 0000000..778ac95 --- /dev/null +++ b/rakelib/wpt.rake @@ -0,0 +1,16 @@ +require "rake/testtask" + +namespace :test do + Rake::TestTask.new(:wpt) do |t| + t.description = "Run web-platform-tests urltestdata.json against URI::WHATWG_PARSER (needs network unless WPT_URLTESTDATA is a local file)" + t.libs << "lib" + t.test_files = FileList["test/wpt/test_*.rb"] + end + + namespace :wpt do + desc "Regenerate test/wpt/urltestdata_exclusions.json from the currently failing cases" + task :update_exclusions do + ruby "-Ilib", "test/wpt/update_exclusions.rb" + end + end +end diff --git a/test/wpt/test_wpt_harness.rb b/test/wpt/test_wpt_harness.rb new file mode 100644 index 0000000..d4bc28b --- /dev/null +++ b/test/wpt/test_wpt_harness.rb @@ -0,0 +1,354 @@ +# frozen_string_literal: true +require 'test/unit' +require 'json' +require 'tmpdir' +require 'uri' +require_relative 'wpt_url_test_data' + +# Tests for the harness that runs WPT url/resources/urltestdata.json. +# These never touch the network. +class WPT::TestHarness < Test::Unit::TestCase + # A parser stand-in that records how it was called and returns (or + # raises) whatever the given block produces. + class FakeParser + attr_reader :calls + + def initialize(&block) + @block = block + @calls = [] + end + + def parse(input) + @calls << [:parse, input] + @block.call(input, nil) + end + + def join(base, input) + @calls << [:join, base, input] + @block.call(input, base) + end + end + + def rfc3986(str) + URI::RFC3986_PARSER.parse(str) + end + + def passing_case(input, base, uri_str) + expected = WPT::URLTestData.components(rfc3986(uri_str)) + { "input" => input, "base" => base }.merge(expected) + end + + # --- components ---------------------------------------------------- + + def test_components_of_simple_http_url + assert_equal( + { + "href" => "http://example.com/a", + "protocol" => "http:", + "username" => "", + "password" => "", + "host" => "example.com", + "hostname" => "example.com", + "port" => "", + "pathname" => "/a", + "search" => "", + "hash" => "", + }, + WPT::URLTestData.components(rfc3986("http://example.com/a")) + ) + end + + def test_components_with_userinfo + c = WPT::URLTestData.components(rfc3986("http://user:pass@example.com/")) + assert_equal("user", c["username"]) + assert_equal("pass", c["password"]) + end + + def test_components_with_user_only + c = WPT::URLTestData.components(rfc3986("http://user@example.com/")) + assert_equal("user", c["username"]) + assert_equal("", c["password"]) + end + + def test_components_omit_default_port + c = WPT::URLTestData.components(rfc3986("http://example.com:80/")) + assert_equal("", c["port"]) + assert_equal("example.com", c["host"]) + end + + def test_components_keep_non_default_port + c = WPT::URLTestData.components(rfc3986("http://example.com:8080/")) + assert_equal("8080", c["port"]) + assert_equal("example.com:8080", c["host"]) + end + + def test_components_keep_port_zero + c = WPT::URLTestData.components(rfc3986("http://example.com:0/")) + assert_equal("0", c["port"]) + end + + def test_components_keep_port_for_scheme_without_default_port + c = WPT::URLTestData.components(rfc3986("foo://example.com:80/")) + assert_equal("80", c["port"]) + end + + def test_components_keep_ipv6_brackets_in_hostname + c = WPT::URLTestData.components(rfc3986("http://[::1]:8080/")) + assert_equal("[::1]", c["hostname"]) + assert_equal("[::1]:8080", c["host"]) + end + + def test_components_without_host + c = WPT::URLTestData.components(rfc3986("foo:/a")) + assert_equal("", c["host"]) + assert_equal("", c["hostname"]) + end + + def test_components_query_and_fragment + c = WPT::URLTestData.components(rfc3986("http://example.com/?q#f")) + assert_equal("?q", c["search"]) + assert_equal("#f", c["hash"]) + end + + def test_components_empty_query_and_fragment_are_empty_strings + # WHATWG's search/hash getters return "" for both null and "". + c = WPT::URLTestData.components(rfc3986("http://example.com/?#")) + assert_equal("", c["search"]) + assert_equal("", c["hash"]) + assert_equal("http://example.com/?#", c["href"]) + end + + def test_components_opaque_is_pathname + c = WPT::URLTestData.components(rfc3986("mailto:a@example.com")) + assert_equal("mailto:", c["protocol"]) + assert_equal("a@example.com", c["pathname"]) + end + + # --- run ----------------------------------------------------------- + + def test_run_without_base_uses_parse + parser = FakeParser.new { rfc3986("http://example.com/") } + tc = passing_case("http://example.com/", nil, "http://example.com/") + + assert_nil(WPT::URLTestData.run(tc, parser)) + assert_equal([[:parse, "http://example.com/"]], parser.calls) + end + + def test_run_with_base_uses_join + parser = FakeParser.new { rfc3986("http://example.com/b") } + tc = passing_case("b", "http://example.com/a", "http://example.com/b") + + assert_nil(WPT::URLTestData.run(tc, parser)) + assert_equal([[:join, "http://example.com/a", "b"]], parser.calls) + end + + def test_run_reports_mismatched_components + parser = FakeParser.new { rfc3986("http://example.com/x") } + tc = passing_case("http://example.com/", nil, "http://example.com/") + + message = WPT::URLTestData.run(tc, parser) + assert_match(/pathname/, message) + assert_match(/href/, message) + assert_no_match(/hostname/, message) + end + + def test_run_ignores_keys_it_does_not_compare + parser = FakeParser.new { rfc3986("http://example.com/") } + tc = passing_case("http://example.com/", nil, "http://example.com/") + tc = tc.merge("origin" => "http://example.com", "searchParams" => "", "comment" => "c") + + assert_nil(WPT::URLTestData.run(tc, parser)) + end + + def test_run_expected_failure_raising_uri_error_passes + [URI::InvalidURIError, URI::InvalidComponentError].each do |error| + parser = FakeParser.new { raise error, "bad" } + tc = { "input" => "http://[/", "base" => nil, "failure" => true } + + assert_nil(WPT::URLTestData.run(tc, parser), error.name) + end + end + + def test_run_expected_failure_not_raising_is_reported + parser = FakeParser.new { rfc3986("http://example.com/") } + tc = { "input" => "http://[/", "base" => nil, "failure" => true } + + assert_match(/expected failure/, WPT::URLTestData.run(tc, parser)) + end + + def test_run_expected_failure_with_non_uri_error_is_reported + parser = FakeParser.new { raise NoMethodError, "oops" } + tc = { "input" => "http://[/", "base" => nil, "failure" => true } + + assert_match(/NoMethodError: oops/, WPT::URLTestData.run(tc, parser)) + end + + def test_run_unexpected_error_is_reported_not_raised + [URI::InvalidURIError, NoMethodError, ArgumentError].each do |error| + parser = FakeParser.new { raise error, "boom" } + tc = passing_case("http://example.com/", nil, "http://example.com/") + + assert_match(/#{error.name}: boom/, WPT::URLTestData.run(tc, parser), error.name) + end + end + + # --- load ---------------------------------------------------------- + + def with_json_file(content) + Dir.mktmpdir do |dir| + path = File.join(dir, "urltestdata.json") + File.write(path, content) + yield path + end + end + + def test_load_from_file_drops_comments + data = ["comment", { "input" => "a", "base" => nil, "failure" => true }, "another"] + with_json_file(JSON.generate(data)) do |path| + assert_equal([data[1]], WPT::URLTestData.load(path)) + end + end + + def test_load_from_empty_array + with_json_file("[]") do |path| + assert_equal([], WPT::URLTestData.load(path)) + end + end + + def test_load_rejects_non_array + with_json_file("{}") do |path| + assert_raise(ArgumentError) { WPT::URLTestData.load(path) } + end + end + + def test_load_rejects_invalid_json + with_json_file("[") do |path| + assert_raise(JSON::ParserError) { WPT::URLTestData.load(path) } + end + end + + def test_load_rejects_non_https_url + assert_raise(ArgumentError) { WPT::URLTestData.load("http://example.com/urltestdata.json") } + end + + def test_load_rejects_missing_file + assert_raise(Errno::ENOENT) { WPT::URLTestData.load("/nonexistent/urltestdata.json") } + end + + def test_default_source_is_wpt_master + assert_equal( + "https://raw.githubusercontent.com/web-platform-tests/wpt/master/url/resources/urltestdata.json", + WPT::URLTestData::DEFAULT_SOURCE + ) + end + + def test_source_defaults_to_wpt_master + env, ENV["WPT_URLTESTDATA"] = ENV["WPT_URLTESTDATA"], nil + assert_equal(WPT::URLTestData::DEFAULT_SOURCE, WPT::URLTestData.source) + ensure + ENV["WPT_URLTESTDATA"] = env + end + + def test_source_can_be_overridden_by_env + env, ENV["WPT_URLTESTDATA"] = ENV["WPT_URLTESTDATA"], "/tmp/local.json" + assert_equal("/tmp/local.json", WPT::URLTestData.source) + ensure + ENV["WPT_URLTESTDATA"] = env + end + + def test_exclusions_path_is_next_to_the_harness + assert_equal(File.expand_path("urltestdata_exclusions.json", __dir__), WPT::Exclusions::PATH) + end + + def test_key_identifies_case_by_input_and_base + assert_equal(["a", nil], WPT::URLTestData.key("input" => "a", "base" => nil, "href" => "x")) + assert_equal(["a", "b"], WPT::URLTestData.key("input" => "a", "base" => "b")) + end + + # --- exclusions ---------------------------------------------------- + + def test_exclusions_round_trip + entries = { ["a\t", nil] => "reason 1", ["b", "http://x/"] => "reason 2" } + Dir.mktmpdir do |dir| + path = File.join(dir, "exclusions.json") + WPT::Exclusions.save(path, entries) + assert_equal(entries, WPT::Exclusions.load(path)) + end + end + + def test_exclusions_save_writes_reviewable_json + Dir.mktmpdir do |dir| + path = File.join(dir, "exclusions.json") + WPT::Exclusions.save(path, { ["a", nil] => "r" }) + assert_equal( + [{ "input" => "a", "base" => nil, "reason" => "r" }], + JSON.parse(File.read(path)) + ) + assert_operator(File.read(path).lines.size, :>, 1, "pretty-printed") + assert(File.read(path).end_with?("\n")) + end + end + + def test_exclusions_load_empty_list + Dir.mktmpdir do |dir| + path = File.join(dir, "exclusions.json") + File.write(path, "[]") + assert_equal({}, WPT::Exclusions.load(path)) + end + end + + def test_exclusions_load_rejects_duplicates + Dir.mktmpdir do |dir| + path = File.join(dir, "exclusions.json") + entry = { "input" => "a", "base" => nil, "reason" => "r" } + File.write(path, JSON.generate([entry, entry])) + assert_raise(ArgumentError) { WPT::Exclusions.load(path) } + end + end + + def test_exclusions_load_rejects_missing_reason + Dir.mktmpdir do |dir| + path = File.join(dir, "exclusions.json") + [nil, ""].each do |reason| + File.write(path, JSON.generate([{ "input" => "a", "base" => nil, "reason" => reason }])) + assert_raise(ArgumentError, reason.inspect) { WPT::Exclusions.load(path) } + end + end + end + + def test_exclusions_stale_lists_entries_not_in_data + cases = [{ "input" => "a", "base" => nil }] + exclusions = { ["a", nil] => "r", ["a", "http://x/"] => "r", ["gone", nil] => "r" } + + assert_equal([["a", "http://x/"], ["gone", nil]], WPT::Exclusions.stale(exclusions, cases)) + end + + def test_exclusions_stale_is_empty_when_all_present + cases = [{ "input" => "a", "base" => nil }] + assert_equal([], WPT::Exclusions.stale({ ["a", nil] => "r" }, cases)) + assert_equal([], WPT::Exclusions.stale({}, cases)) + end + + def test_exclusions_update + cases = %w[pass keep new gone_from_list].map { |i| { "input" => i, "base" => nil } } + failing = [["keep", nil], ["new", nil]] + current = { ["keep", nil] => "known reason", ["pass", nil] => "fixed now", ["stale", nil] => "old" } + + updated = WPT::Exclusions.update(current, cases, failing) + + assert_equal( + { ["keep", nil] => "known reason", ["new", nil] => WPT::Exclusions::UNCLASSIFIED }, + updated + ) + end + + def test_exclusions_update_follows_data_order + cases = %w[c a b].map { |i| { "input" => i, "base" => nil } } + failing = [["a", nil], ["b", nil], ["c", nil]] + + assert_equal( + [["c", nil], ["a", nil], ["b", nil]], + WPT::Exclusions.update({}, cases, failing).keys + ) + end +end diff --git a/test/wpt/test_wpt_urltestdata.rb b/test/wpt/test_wpt_urltestdata.rb new file mode 100644 index 0000000..5cc1a2d --- /dev/null +++ b/test/wpt/test_wpt_urltestdata.rb @@ -0,0 +1,56 @@ +# frozen_string_literal: true +require 'test/unit' +require 'uri' +require_relative 'wpt_url_test_data' + +# Runs WPT url/resources/urltestdata.json against URI::WHATWG_PARSER. +# +# The data is fetched from WPT master on every run, unless +# WPT_URLTESTDATA names a local file or another https URL. +# +# Cases listed in urltestdata_exclusions.json are known to fail. They are +# not run as individual tests; instead test_excluded_cases_still_fail +# fails if any of them passes, so the list never claims more than is +# true. Regenerate the list with `rake test:wpt:update_exclusions`. +class WPT::TestURLTestData < Test::Unit::TestCase + SOURCE = WPT::URLTestData.source + EXCLUSIONS_PATH = WPT::Exclusions::PATH + CASES = WPT::URLTestData.load(SOURCE) + EXCLUSIONS = WPT::Exclusions.load(EXCLUSIONS_PATH) + + def self.label(index, test_case) + "##{index + 1} #{test_case["input"].inspect} base=#{test_case["base"].inspect}" + end + + CASES.each_with_index do |test_case, index| + next if EXCLUSIONS.key?(WPT::URLTestData.key(test_case)) + data(label(index, test_case), test_case) + end + + def test_case(test_case) + message = WPT::URLTestData.run(test_case, URI::WHATWG_PARSER) + flunk(message) if message + end + + def test_excluded_cases_still_fail + passing = CASES.select do |test_case| + EXCLUSIONS.key?(WPT::URLTestData.key(test_case)) && + WPT::URLTestData.run(test_case, URI::WHATWG_PARSER).nil? + end + + assert_empty( + passing.map { |c| WPT::URLTestData.key(c) }, + "these excluded cases pass now; remove them from #{EXCLUSIONS_PATH} " \ + "(rake test:wpt:update_exclusions)" + ) + notify("urltestdata: #{CASES.size} cases, #{EXCLUSIONS.size} excluded (source: #{SOURCE})") + end + + def test_no_stale_exclusions + assert_empty( + WPT::Exclusions.stale(EXCLUSIONS, CASES), + "these exclusions match no case in #{SOURCE}; " \ + "remove them from #{EXCLUSIONS_PATH} (rake test:wpt:update_exclusions)" + ) + end +end diff --git a/test/wpt/update_exclusions.rb b/test/wpt/update_exclusions.rb new file mode 100644 index 0000000..ef7dfaf --- /dev/null +++ b/test/wpt/update_exclusions.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true +# Regenerates urltestdata_exclusions.json from the cases that currently +# fail with URI::WHATWG_PARSER. Known reasons are kept, new failures are +# marked "unclassified", and cases that pass now or no longer exist in +# the data are dropped. +# +# Usage: ruby -Ilib test/wpt/update_exclusions.rb +# (or rake test:wpt:update_exclusions) +require 'uri' +require_relative 'wpt_url_test_data' + +source = WPT::URLTestData.source +path = WPT::Exclusions::PATH + +cases = WPT::URLTestData.load(source) +current = File.exist?(path) ? WPT::Exclusions.load(path) : {} +failing = cases.reject { |c| WPT::URLTestData.run(c, URI::WHATWG_PARSER).nil? }.map { |c| WPT::URLTestData.key(c) } +updated = WPT::Exclusions.update(current, cases, failing) +WPT::Exclusions.save(path, updated) + +added = (updated.keys - current.keys).size +removed = (current.keys - updated.keys).size +puts "#{source}: #{cases.size} cases, #{cases.size - updated.size} passing, #{updated.size} excluded (+#{added}, -#{removed})" diff --git a/test/wpt/urltestdata_exclusions.json b/test/wpt/urltestdata_exclusions.json new file mode 100644 index 0000000..8e2f18e --- /dev/null +++ b/test/wpt/urltestdata_exclusions.json @@ -0,0 +1,4102 @@ +[ + { + "input": "http://example\t.\norg", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "http://user:pass@foo:21/bar;par?b#c", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "https://test:@test", + "base": null, + "reason": "unclassified" + }, + { + "input": "https://:@test", + "base": null, + "reason": "unclassified" + }, + { + "input": "non-special://test:@test/x", + "base": null, + "reason": "unclassified" + }, + { + "input": "non-special://:@test/x", + "base": null, + "reason": "unclassified" + }, + { + "input": "http:foo.com", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "\t :foo.com \n", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": " foo.com ", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "a:\t foo.com", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "http://f:21/ b ? d # e ", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "lolscheme:x x#x x", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://f:/c", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "http://f:0/c", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "http://f:00000000000000/c", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "http://f:00000000000000000000080/c", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "http://f:b/c", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "http://f: /c", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "http://f:\n/c", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "http://f:fifty-two/c", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "http://f:999999/c", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "non-special://f:999999/c", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "http://f: 21 / b ? d # e ", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": " \t", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": ":foo.com/", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": ":foo.com\\", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": ":", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": ":a", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": ":/", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": ":\\", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": ":#", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "#", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "#/", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "#\\", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "#;?", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "?", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "/", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": ":23", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "/:23", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "\\x", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "\\\\x\\hello", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "::", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "::23", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "http://a:b@c:29/d", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "http://é@é", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://é@example.com", + "base": null, + "reason": "unclassified" + }, + { + "input": "http::@c:29", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "http://&a:foo(b]c@d:2/", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "http://::@c@d:2", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "http://foo.com:b@d/", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "http://foo.com/\\@", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "http:\\\\foo.com\\", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "http:\\\\a\\b:c\\d@foo.com\\", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "http://a:b@c\\", + "base": null, + "reason": "unclassified" + }, + { + "input": "ws://a@b\\c", + "base": null, + "reason": "unclassified" + }, + { + "input": "foo:/", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "foo:/bar.com/", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "c:/foo", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "//foo/bar", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "http://foo/path;a??e#f#g", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "http://foo/abcd?efgh?ijkl", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "http://foo/abcd#foo?bar", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "[61:24:74]:98", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "http:[61:27]/:foo", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "http://[1::2]:3:4", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "http://2001::1", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "http://2001::1]", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "http://2001::1]:80", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "http://[2001::1]", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "http://[::127.0.0.1]", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "http://[::127.0.0.1.]", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "http://[0:0:0:0:0:0:13.1.68.3]", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "http://[2001::1]:80", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "http:/example.com/", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "http:/", + "base": "http://example.com/", + "reason": "unclassified" + }, + { + "input": "ftp:/example.com/", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "https:/example.com/", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "madeupscheme:/example.com/", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "file://example:1/", + "base": null, + "reason": "unclassified" + }, + { + "input": "file://example:test/", + "base": null, + "reason": "unclassified" + }, + { + "input": "file://example%/", + "base": null, + "reason": "unclassified" + }, + { + "input": "file://[example]/", + "base": null, + "reason": "unclassified" + }, + { + "input": "ftps:/example.com/", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "gopher:/example.com/", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "ws:/example.com/", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "wss:/example.com/", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "data:/example.com/", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "javascript:/example.com/", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "mailto:/example.com/", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "http:example.com/", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "ftp:example.com/", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "madeupscheme:example.com/", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "ftps:example.com/", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "gopher:example.com/", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "data:example.com/", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "javascript:example.com/", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "mailto:example.com/", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "/a/b/c", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "/a/ /c", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "/a%2fc", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "/a/%2f/c", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "#β", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "data:text/html,test#test", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "tel:1234567890", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "file:c:\\foo\\bar.html", + "base": "file:///tmp/mock/path", + "reason": "unclassified" + }, + { + "input": " File:c|////foo\\bar.html", + "base": "file:///tmp/mock/path", + "reason": "unclassified" + }, + { + "input": "C|/foo/bar", + "base": "file:///tmp/mock/path", + "reason": "unclassified" + }, + { + "input": "/C|\\foo\\bar", + "base": "file:///tmp/mock/path", + "reason": "unclassified" + }, + { + "input": "//C|/foo/bar", + "base": "file:///tmp/mock/path", + "reason": "unclassified" + }, + { + "input": "//server/file", + "base": "file:///tmp/mock/path", + "reason": "unclassified" + }, + { + "input": "\\\\server\\file", + "base": "file:///tmp/mock/path", + "reason": "unclassified" + }, + { + "input": "/\\server/file", + "base": "file:///tmp/mock/path", + "reason": "unclassified" + }, + { + "input": "//", + "base": "file:///tmp/mock/path", + "reason": "unclassified" + }, + { + "input": "///", + "base": "file:///tmp/mock/path", + "reason": "unclassified" + }, + { + "input": "///test", + "base": "file:///tmp/mock/path", + "reason": "unclassified" + }, + { + "input": "file://test", + "base": "file:///tmp/mock/path", + "reason": "unclassified" + }, + { + "input": "file://localhost", + "base": "file:///tmp/mock/path", + "reason": "unclassified" + }, + { + "input": "test", + "base": "file:///tmp/mock/path", + "reason": "unclassified" + }, + { + "input": "file:test", + "base": "file:///tmp/mock/path", + "reason": "unclassified" + }, + { + "input": "file:///w|/m", + "base": null, + "reason": "unclassified" + }, + { + "input": "file:C|/m/", + "base": null, + "reason": "unclassified" + }, + { + "input": "file:C||/m/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://example.com/././foo", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://example.com/./.foo", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://example.com/foo/.", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://example.com/foo/./", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://example.com/foo/bar/..", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://example.com/foo/bar/../", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://example.com/foo/bar/../ton", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://example.com/foo/bar/../ton/../../a", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://example.com/foo/../../..", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://example.com/foo/../../../ton", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://example.com/foo/%2e", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://example.com/foo/%2e./%2e%2e/.%2e/%2e.bar", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://example.com////../..", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://example.com/foo/bar//../..", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://example.com/foo/bar//..", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://example.com/foo%2©zbar", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://example.com/foo\t‘%91", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://example.com/foo\tbar", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://example.com\\\\foo\\\\bar", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://example.com/你好你好", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://example.com/‥/foo", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://example.com//foo", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://example.com/‮/foo/‭/bar", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://www.google.com/foo?bar=baz#", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://www.google.com/foo?bar=baz# »", + "base": null, + "reason": "unclassified" + }, + { + "input": "data:test# »", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://www.google.com", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://192.0x00A80001", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://www/foo/%2E/html", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://user:pass@/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://%25DOMAIN:foobar@foodomain.com/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http:\\\\www.google.com\\foo", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://foo:80/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://foo:81/", + "base": null, + "reason": "unclassified" + }, + { + "input": "httpa://foo:80/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://foo:-80/", + "base": null, + "reason": "unclassified" + }, + { + "input": "https://foo:443/", + "base": null, + "reason": "unclassified" + }, + { + "input": "https://foo:80/", + "base": null, + "reason": "unclassified" + }, + { + "input": "ftp://foo:21/", + "base": null, + "reason": "unclassified" + }, + { + "input": "ftp://foo:80/", + "base": null, + "reason": "unclassified" + }, + { + "input": "gopher://foo:70/", + "base": null, + "reason": "unclassified" + }, + { + "input": "gopher://foo:443/", + "base": null, + "reason": "unclassified" + }, + { + "input": "ws://foo:80/", + "base": null, + "reason": "unclassified" + }, + { + "input": "ws://foo:81/", + "base": null, + "reason": "unclassified" + }, + { + "input": "ws://foo:443/", + "base": null, + "reason": "unclassified" + }, + { + "input": "ws://foo:815/", + "base": null, + "reason": "unclassified" + }, + { + "input": "wss://foo:80/", + "base": null, + "reason": "unclassified" + }, + { + "input": "wss://foo:81/", + "base": null, + "reason": "unclassified" + }, + { + "input": "wss://foo:443/", + "base": null, + "reason": "unclassified" + }, + { + "input": "wss://foo:815/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http:/example.com/", + "base": null, + "reason": "unclassified" + }, + { + "input": "ftp:/example.com/", + "base": null, + "reason": "unclassified" + }, + { + "input": "https:/example.com/", + "base": null, + "reason": "unclassified" + }, + { + "input": "madeupscheme:/example.com/", + "base": null, + "reason": "unclassified" + }, + { + "input": "ftps:/example.com/", + "base": null, + "reason": "unclassified" + }, + { + "input": "gopher:/example.com/", + "base": null, + "reason": "unclassified" + }, + { + "input": "ws:/example.com/", + "base": null, + "reason": "unclassified" + }, + { + "input": "wss:/example.com/", + "base": null, + "reason": "unclassified" + }, + { + "input": "data:/example.com/", + "base": null, + "reason": "unclassified" + }, + { + "input": "javascript:/example.com/", + "base": null, + "reason": "unclassified" + }, + { + "input": "mailto:/example.com/", + "base": null, + "reason": "unclassified" + }, + { + "input": "ftp:example.com/", + "base": null, + "reason": "unclassified" + }, + { + "input": "madeupscheme:example.com/", + "base": null, + "reason": "unclassified" + }, + { + "input": "ftps:example.com/", + "base": null, + "reason": "unclassified" + }, + { + "input": "gopher:example.com/", + "base": null, + "reason": "unclassified" + }, + { + "input": "data:example.com/", + "base": null, + "reason": "unclassified" + }, + { + "input": "javascript:example.com/", + "base": null, + "reason": "unclassified" + }, + { + "input": "mailto:example.com/", + "base": null, + "reason": "unclassified" + }, + { + "input": "https://example.com/aaa/bbb/%2e%2e?query", + "base": null, + "reason": "unclassified" + }, + { + "input": "http:@www.example.com", + "base": null, + "reason": "unclassified" + }, + { + "input": "http:/@www.example.com", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://@www.example.com", + "base": null, + "reason": "unclassified" + }, + { + "input": "http:a:b@www.example.com", + "base": null, + "reason": "unclassified" + }, + { + "input": "http:/a:b@www.example.com", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://a:b@www.example.com", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://@pple.com", + "base": null, + "reason": "unclassified" + }, + { + "input": "http::b@www.example.com", + "base": null, + "reason": "unclassified" + }, + { + "input": "http:/:b@www.example.com", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://:b@www.example.com", + "base": null, + "reason": "unclassified" + }, + { + "input": "http:/:@/www.example.com", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://user@/www.example.com", + "base": null, + "reason": "unclassified" + }, + { + "input": "http:@/www.example.com", + "base": null, + "reason": "unclassified" + }, + { + "input": "http:/@/www.example.com", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://@/www.example.com", + "base": null, + "reason": "unclassified" + }, + { + "input": "https:@/www.example.com", + "base": null, + "reason": "unclassified" + }, + { + "input": "http:a:b@/www.example.com", + "base": null, + "reason": "unclassified" + }, + { + "input": "http:/a:b@/www.example.com", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://a:b@/www.example.com", + "base": null, + "reason": "unclassified" + }, + { + "input": "http::@/www.example.com", + "base": null, + "reason": "unclassified" + }, + { + "input": "http:a:@www.example.com", + "base": null, + "reason": "unclassified" + }, + { + "input": "http:/a:@www.example.com", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://a:@www.example.com", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://www.@pple.com", + "base": null, + "reason": "unclassified" + }, + { + "input": "http:@:www.example.com", + "base": null, + "reason": "unclassified" + }, + { + "input": "http:/@:www.example.com", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://@:www.example.com", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://:@www.example.com", + "base": null, + "reason": "unclassified" + }, + { + "input": "/", + "base": "http://www.example.com/test", + "reason": "unclassified" + }, + { + "input": "/test.txt", + "base": "http://www.example.com/test", + "reason": "unclassified" + }, + { + "input": ".", + "base": "http://www.example.com/test", + "reason": "unclassified" + }, + { + "input": "..", + "base": "http://www.example.com/test", + "reason": "unclassified" + }, + { + "input": "test.txt", + "base": "http://www.example.com/test", + "reason": "unclassified" + }, + { + "input": "./test.txt", + "base": "http://www.example.com/test", + "reason": "unclassified" + }, + { + "input": "../test.txt", + "base": "http://www.example.com/test", + "reason": "unclassified" + }, + { + "input": "../aaa/test.txt", + "base": "http://www.example.com/test", + "reason": "unclassified" + }, + { + "input": "../../test.txt", + "base": "http://www.example.com/test", + "reason": "unclassified" + }, + { + "input": "中/test.txt", + "base": "http://www.example.com/test", + "reason": "unclassified" + }, + { + "input": "http://www.example2.com", + "base": "http://www.example.com/test", + "reason": "unclassified" + }, + { + "input": "//www.example2.com", + "base": "http://www.example.com/test", + "reason": "unclassified" + }, + { + "input": "file:...", + "base": "http://www.example.com/test", + "reason": "unclassified" + }, + { + "input": "file:..", + "base": "http://www.example.com/test", + "reason": "unclassified" + }, + { + "input": "file:a", + "base": "http://www.example.com/test", + "reason": "unclassified" + }, + { + "input": "file:.", + "base": null, + "reason": "unclassified" + }, + { + "input": "file:.", + "base": "http://www.example.com/test", + "reason": "unclassified" + }, + { + "input": "http://ExAmPlE.CoM", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://example example.com", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://Goo%20 goo%7C|.com", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://[]", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://[:]", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://GOO  goo.com", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://GOO​⁠goo.com", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "\u0000\u001b\u0004\u0012 http://example.com/\u001f \r ", + "base": null, + "reason": "unclassified" + }, + { + "input": "non-special:opaque ", + "base": null, + "reason": "unclassified" + }, + { + "input": "non-special:opaque ?hi", + "base": null, + "reason": "unclassified" + }, + { + "input": "non-special:opaque #hi", + "base": null, + "reason": "unclassified" + }, + { + "input": "non-special:opaque x?hi", + "base": null, + "reason": "unclassified" + }, + { + "input": "non-special:opaque x#hi", + "base": null, + "reason": "unclassified" + }, + { + "input": "non-special:opaque \t\t \t#hi", + "base": null, + "reason": "unclassified" + }, + { + "input": "non-special:opaque \t\t #hi", + "base": null, + "reason": "unclassified" + }, + { + "input": "non-special:opaque\t\t \r #hi", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://www.foo。bar.com", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://﷐zyx.com", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://%ef%b7%90zyx.com", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "https://�", + "base": null, + "reason": "unclassified" + }, + { + "input": "https://%EF%BF%BD", + "base": null, + "reason": "unclassified" + }, + { + "input": "https://x/�?�#�", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://a.b.c.xn--pokxncvks", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://10.0.0.xn--pokxncvks", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://a.b.c.XN--pokxncvks", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://a.b.c.Xn--pokxncvks", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://10.0.0.XN--pokxncvks", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://10.0.0.xN--pokxncvks", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://Go.com", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://%41.com", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://%ef%bc%85%ef%bc%94%ef%bc%91.com", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://%00.com", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://%ef%bc%85%ef%bc%90%ef%bc%90.com", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://你好你好", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "https://faß.ExAmPlE/", + "base": null, + "reason": "unclassified" + }, + { + "input": "sc://faß.ExAmPlE/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://%zz%66%a.com", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://%25", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://hello%00", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://%30%78%63%30%2e%30%32%35%30.01", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://%30%78%63%30%2e%30%32%35%30.01%2e", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://192.168.0.257", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://%3g%78%63%30%2e%30%32%35%30%2E.01", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://192.168.0.1 hello", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "https://x x:12", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://0Xc0.0250.01", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://[www.google.com]/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://[google.com]", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://[::1.2.3.4x]", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://[::1.2.3.]", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://[::1.2.]", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://[::.1.2]", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://[::1.]", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://[::.1]", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://[::%31]", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://%5B::1]", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://foo:💩@example.com/bar", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://😀x@host/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://a:😀x@host/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://😀@host/", + "base": null, + "reason": "unclassified" + }, + { + "input": "https://localhost?q=🔥", + "base": null, + "reason": "unclassified" + }, + { + "input": "https://localhost#🔥", + "base": null, + "reason": "unclassified" + }, + { + "input": "#", + "base": "test:test", + "reason": "unclassified" + }, + { + "input": "#x", + "base": "mailto:x@x.com", + "reason": "unclassified" + }, + { + "input": "#x", + "base": "data:,", + "reason": "unclassified" + }, + { + "input": "#x", + "base": "about:blank", + "reason": "unclassified" + }, + { + "input": "#x:y", + "base": "about:blank", + "reason": "unclassified" + }, + { + "input": "#", + "base": "test:test?test", + "reason": "unclassified" + }, + { + "input": "https://@test@test@example:800/", + "base": "http://doesnotmatter/", + "reason": "unclassified" + }, + { + "input": "https://@@@example", + "base": "http://doesnotmatter/", + "reason": "unclassified" + }, + { + "input": "http://`{}:`{}@h/`{}?`{}", + "base": "http://doesnotmatter/", + "reason": "unclassified" + }, + { + "input": "http://host/?'", + "base": null, + "reason": "unclassified" + }, + { + "input": "notspecial://host/?'", + "base": null, + "reason": "unclassified" + }, + { + "input": "/some/path", + "base": "http://user@example.org/smth", + "reason": "unclassified" + }, + { + "input": "", + "base": "http://user:pass@example.org:21/smth", + "reason": "unclassified" + }, + { + "input": "/some/path", + "base": "http://user:pass@example.org:21/smth", + "reason": "unclassified" + }, + { + "input": "i", + "base": "sc:sd", + "reason": "unclassified" + }, + { + "input": "i", + "base": "sc:sd/sd", + "reason": "unclassified" + }, + { + "input": "i", + "base": "sc:/pa/pa", + "reason": "unclassified" + }, + { + "input": "i", + "base": "sc://ho/pa", + "reason": "unclassified" + }, + { + "input": "i", + "base": "sc:///pa/pa", + "reason": "unclassified" + }, + { + "input": "../i", + "base": "sc:sd", + "reason": "unclassified" + }, + { + "input": "../i", + "base": "sc:sd/sd", + "reason": "unclassified" + }, + { + "input": "../i", + "base": "sc:/pa/pa", + "reason": "unclassified" + }, + { + "input": "../i", + "base": "sc://ho/pa", + "reason": "unclassified" + }, + { + "input": "../i", + "base": "sc:///pa/pa", + "reason": "unclassified" + }, + { + "input": "/i", + "base": "sc:sd", + "reason": "unclassified" + }, + { + "input": "/i", + "base": "sc:sd/sd", + "reason": "unclassified" + }, + { + "input": "/i", + "base": "sc:/pa/pa", + "reason": "unclassified" + }, + { + "input": "/i", + "base": "sc://ho/pa", + "reason": "unclassified" + }, + { + "input": "/i", + "base": "sc:///pa/pa", + "reason": "unclassified" + }, + { + "input": "?i", + "base": "sc:sd", + "reason": "unclassified" + }, + { + "input": "?i", + "base": "sc:sd/sd", + "reason": "unclassified" + }, + { + "input": "?i", + "base": "sc:/pa/pa", + "reason": "unclassified" + }, + { + "input": "?i", + "base": "sc://ho/pa", + "reason": "unclassified" + }, + { + "input": "?i", + "base": "sc:///pa/pa", + "reason": "unclassified" + }, + { + "input": "#i", + "base": "sc:sd", + "reason": "unclassified" + }, + { + "input": "#i", + "base": "sc:sd/sd", + "reason": "unclassified" + }, + { + "input": "#i", + "base": "sc:/pa/pa", + "reason": "unclassified" + }, + { + "input": "#i", + "base": "sc://ho/pa", + "reason": "unclassified" + }, + { + "input": "#i", + "base": "sc:///pa/pa", + "reason": "unclassified" + }, + { + "input": "about:/../", + "base": null, + "reason": "unclassified" + }, + { + "input": "data:/../", + "base": null, + "reason": "unclassified" + }, + { + "input": "javascript:/../", + "base": null, + "reason": "unclassified" + }, + { + "input": "mailto:/../", + "base": null, + "reason": "unclassified" + }, + { + "input": "sc://ñ.test/", + "base": null, + "reason": "unclassified" + }, + { + "input": "sc://@/", + "base": null, + "reason": "unclassified" + }, + { + "input": "sc://te@s:t@/", + "base": null, + "reason": "unclassified" + }, + { + "input": "sc://:/", + "base": null, + "reason": "unclassified" + }, + { + "input": "sc://:12/", + "base": null, + "reason": "unclassified" + }, + { + "input": "x", + "base": "sc://ñ", + "reason": "unclassified" + }, + { + "input": "sc:\\../", + "base": null, + "reason": "unclassified" + }, + { + "input": "sc::a@example.net", + "base": null, + "reason": "unclassified" + }, + { + "input": "wow:%NBD", + "base": null, + "reason": "unclassified" + }, + { + "input": "wow:%1G", + "base": null, + "reason": "unclassified" + }, + { + "input": "wow:￿", + "base": null, + "reason": "unclassified" + }, + { + "input": "sc://a\u0000b/", + "base": null, + "reason": "unclassified" + }, + { + "input": "sc://a b/", + "base": null, + "reason": "unclassified" + }, + { + "input": "sc://ab", + "base": null, + "reason": "unclassified" + }, + { + "input": "sc://a[b/", + "base": null, + "reason": "unclassified" + }, + { + "input": "sc://a\\b/", + "base": null, + "reason": "unclassified" + }, + { + "input": "sc://a]b/", + "base": null, + "reason": "unclassified" + }, + { + "input": "sc://a^b", + "base": null, + "reason": "unclassified" + }, + { + "input": "sc://a|b/", + "base": null, + "reason": "unclassified" + }, + { + "input": "foo://ho\tst/", + "base": null, + "reason": "unclassified" + }, + { + "input": "foo://ho\nst/", + "base": null, + "reason": "unclassified" + }, + { + "input": "foo://ho\rst/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://a\u0000b/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://a\u0001b/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://a\u0002b/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://a\u0003b/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://a\u0004b/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://a\u0005b/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://a\u0006b/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://a\u0007b/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://a\bb/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://a\u000bb/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://a\fb/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://a\u000eb/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://a\u000fb/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://a\u0010b/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://a\u0011b/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://a\u0012b/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://a\u0013b/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://a\u0014b/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://a\u0015b/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://a\u0016b/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://a\u0017b/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://a\u0018b/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://a\u0019b/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://a\u001ab/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://a\u001bb/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://a\u001cb/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://a\u001db/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://a\u001eb/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://a\u001fb/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://a b/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://a%b/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ab", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://a[b/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://a]b/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://a^b", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://a|b/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ab/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho\tst/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho\nst/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho\rst/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho%00st/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho%01st/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho%02st/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho%03st/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho%04st/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho%05st/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho%06st/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho%07st/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho%08st/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho%09st/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho%0Ast/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho%0Bst/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho%0Cst/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho%0Dst/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho%0Est/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho%0Fst/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho%10st/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho%11st/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho%12st/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho%13st/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho%14st/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho%15st/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho%16st/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho%17st/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho%18st/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho%19st/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho%1Ast/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho%1Bst/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho%1Cst/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho%1Dst/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho%1Est/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho%1Fst/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho%20st/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho%23st/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho%25st/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho%2Fst/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho%3Ast/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho%3Cst/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho%3Est/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho%3Fst/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho%40st/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho%5Bst/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho%5Cst/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho%5Dst/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho%7Cst/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://ho%7Fst/", + "base": null, + "reason": "unclassified" + }, + { + "input": "sc://\u0001\u0002\u0003\u0004\u0005\u0006\u0007\b\u000b\f\u000e\u000f\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001a\u001b\u001c\u001d\u001e\u001f!\"$%&'()*+,-.;=_`{}~/", + "base": null, + "reason": "unclassified" + }, + { + "input": "ftp://example.com%80/", + "base": null, + "reason": "unclassified" + }, + { + "input": "ftp://example.com%A0/", + "base": null, + "reason": "unclassified" + }, + { + "input": "https://example.com%80/", + "base": null, + "reason": "unclassified" + }, + { + "input": "https://example.com%A0/", + "base": null, + "reason": "unclassified" + }, + { + "input": "ftp://%e2%98%83", + "base": null, + "reason": "unclassified" + }, + { + "input": "https://%e2%98%83", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://127.0.0.1:10100/relative_import.html", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://facebook.com/?foo=%7B%22abc%22", + "base": null, + "reason": "unclassified" + }, + { + "input": "https://localhost:3000/jqueryui@1.2.3", + "base": null, + "reason": "unclassified" + }, + { + "input": "h\tt\nt\rp://h\to\ns\rt:9\t0\n0\r0/p\ta\nt\rh?q\tu\ne\rry#f\tr\na\rg", + "base": null, + "reason": "unclassified" + }, + { + "input": "?a=b&c=d", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "??a=b&c=d", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "http:", + "base": "http://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "http:", + "base": "https://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "sc:", + "base": "https://example.org/foo/bar", + "reason": "unclassified" + }, + { + "input": "http://foo.bar/baz?qux#foo\bbar", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://foo.bar/baz?qux#foo\"bar", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://foo.bar/baz?qux#foobar", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://foo.bar/baz?qux#foo`bar", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://1.2.3.4./", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://192.168.257", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://192.168.257.", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://192.168.257.com", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://256", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://256.com", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://999999999", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://999999999.", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://999999999.com", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://10000000000", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://10000000000.com", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://4294967295", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://4294967296", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://18446744073709551616", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://18446744075840258049", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://0xffffffff", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://0xffffffff1", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://256.256.256.256", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "https://0x.0x.0", + "base": null, + "reason": "unclassified" + }, + { + "input": "https://0x.0x.0x.0x", + "base": null, + "reason": "unclassified" + }, + { + "input": "https://00.00.00.00", + "base": null, + "reason": "unclassified" + }, + { + "input": "https://0000000000000000000000000000000000000000177.0.0.1", + "base": null, + "reason": "unclassified" + }, + { + "input": "https://0x100000000/test", + "base": null, + "reason": "unclassified" + }, + { + "input": "https://256.0.0.1/test", + "base": null, + "reason": "unclassified" + }, + { + "input": "file://%43%3A", + "base": null, + "reason": "unclassified" + }, + { + "input": "file://%43%7C", + "base": null, + "reason": "unclassified" + }, + { + "input": "file://%43|", + "base": null, + "reason": "unclassified" + }, + { + "input": "file://C%7C", + "base": null, + "reason": "unclassified" + }, + { + "input": "file://%43%7C/", + "base": null, + "reason": "unclassified" + }, + { + "input": "https://%43%7C/", + "base": null, + "reason": "unclassified" + }, + { + "input": "asdf://%43|/", + "base": null, + "reason": "unclassified" + }, + { + "input": "pix/submit.gif", + "base": "file:///C:/Users/Domenic/Dropbox/GitHub/tmpvar/jsdom/test/level2/html/files/anchor.html", + "reason": "unclassified" + }, + { + "input": "..", + "base": "file:///C:/", + "reason": "unclassified" + }, + { + "input": "..", + "base": "file:///", + "reason": "unclassified" + }, + { + "input": "/", + "base": "file:///C:/a/b", + "reason": "unclassified" + }, + { + "input": "/", + "base": "file://h/C:/a/b", + "reason": "unclassified" + }, + { + "input": "/", + "base": "file://h/a/b", + "reason": "unclassified" + }, + { + "input": "//d:", + "base": "file:///C:/a/b", + "reason": "unclassified" + }, + { + "input": "//d:/..", + "base": "file:///C:/a/b", + "reason": "unclassified" + }, + { + "input": "..", + "base": "file:///ab:/", + "reason": "unclassified" + }, + { + "input": "..", + "base": "file:///1:/", + "reason": "unclassified" + }, + { + "input": "", + "base": "file:///test?test#test", + "reason": "unclassified" + }, + { + "input": "file:", + "base": "file:///test?test#test", + "reason": "unclassified" + }, + { + "input": "?x", + "base": "file:///test?test#test", + "reason": "unclassified" + }, + { + "input": "file:?x", + "base": "file:///test?test#test", + "reason": "unclassified" + }, + { + "input": "#x", + "base": "file:///test?test#test", + "reason": "unclassified" + }, + { + "input": "file:#x", + "base": "file:///test?test#test", + "reason": "unclassified" + }, + { + "input": "file:\\\\//", + "base": null, + "reason": "unclassified" + }, + { + "input": "file:\\\\\\\\", + "base": null, + "reason": "unclassified" + }, + { + "input": "file:\\\\\\\\?fox", + "base": null, + "reason": "unclassified" + }, + { + "input": "file:\\\\\\\\#guppy", + "base": null, + "reason": "unclassified" + }, + { + "input": "file:\\\\localhost//", + "base": null, + "reason": "unclassified" + }, + { + "input": "file://\\/localhost//cat", + "base": null, + "reason": "unclassified" + }, + { + "input": "file://localhost//a//../..//", + "base": null, + "reason": "unclassified" + }, + { + "input": "/////mouse", + "base": "file:///elephant", + "reason": "unclassified" + }, + { + "input": "\\//pig", + "base": "file://lion/", + "reason": "unclassified" + }, + { + "input": "\\/localhost//pig", + "base": "file://lion/", + "reason": "unclassified" + }, + { + "input": "//localhost//pig", + "base": "file://lion/", + "reason": "unclassified" + }, + { + "input": "/..//localhost//pig", + "base": "file://lion/", + "reason": "unclassified" + }, + { + "input": "file://", + "base": "file://ape/", + "reason": "unclassified" + }, + { + "input": "/rooibos", + "base": "file://tea/", + "reason": "unclassified" + }, + { + "input": "/?chai", + "base": "file://tea/", + "reason": "unclassified" + }, + { + "input": "C|", + "base": "file://host/dir/file", + "reason": "unclassified" + }, + { + "input": "C|", + "base": "file://host/D:/dir1/dir2/file", + "reason": "unclassified" + }, + { + "input": "C|#", + "base": "file://host/dir/file", + "reason": "unclassified" + }, + { + "input": "C|?", + "base": "file://host/dir/file", + "reason": "unclassified" + }, + { + "input": "C|/", + "base": "file://host/dir/file", + "reason": "unclassified" + }, + { + "input": "C|\n/", + "base": "file://host/dir/file", + "reason": "unclassified" + }, + { + "input": "C|\\", + "base": "file://host/dir/file", + "reason": "unclassified" + }, + { + "input": "C", + "base": "file://host/dir/file", + "reason": "unclassified" + }, + { + "input": "C|a", + "base": "file://host/dir/file", + "reason": "unclassified" + }, + { + "input": "/c:/foo/bar", + "base": "file:///c:/baz/qux", + "reason": "unclassified" + }, + { + "input": "/c|/foo/bar", + "base": "file:///c:/baz/qux", + "reason": "unclassified" + }, + { + "input": "file:\\c:\\foo\\bar", + "base": "file:///c:/baz/qux", + "reason": "unclassified" + }, + { + "input": "/c:/foo/bar", + "base": "file://host/path", + "reason": "unclassified" + }, + { + "input": "..", + "base": "abc://x/y/z/C:/", + "reason": "unclassified" + }, + { + "input": "..", + "base": "file://x/C:/", + "reason": "unclassified" + }, + { + "input": "C|/", + "base": "file://host/", + "reason": "unclassified" + }, + { + "input": "/C:/", + "base": "file://host/", + "reason": "unclassified" + }, + { + "input": "file:C:/", + "base": "file://host/", + "reason": "unclassified" + }, + { + "input": "file:/C:/", + "base": "file://host/", + "reason": "unclassified" + }, + { + "input": "//C:/", + "base": "file://host/", + "reason": "unclassified" + }, + { + "input": "file://C:/", + "base": "file://host/", + "reason": "unclassified" + }, + { + "input": "///C:/", + "base": "file://host/", + "reason": "unclassified" + }, + { + "input": "file:/C|/", + "base": null, + "reason": "unclassified" + }, + { + "input": "file://C|/", + "base": null, + "reason": "unclassified" + }, + { + "input": "file:", + "base": null, + "reason": "unclassified" + }, + { + "input": "file:?q=v", + "base": null, + "reason": "unclassified" + }, + { + "input": "file:#frag", + "base": null, + "reason": "unclassified" + }, + { + "input": "file:///./Y", + "base": null, + "reason": "unclassified" + }, + { + "input": "file:///./Y:", + "base": null, + "reason": "unclassified" + }, + { + "input": "\\\\\\.\\Y:", + "base": null, + "reason": "unclassified" + }, + { + "input": "file:///./y", + "base": null, + "reason": "unclassified" + }, + { + "input": "file:///./y:", + "base": null, + "reason": "unclassified" + }, + { + "input": "\\\\\\.\\y:", + "base": null, + "reason": "unclassified" + }, + { + "input": "file://localhost//a//../..//foo", + "base": null, + "reason": "unclassified" + }, + { + "input": "//one/two", + "base": "file:///", + "reason": "unclassified" + }, + { + "input": "///one/two", + "base": "file:///", + "reason": "unclassified" + }, + { + "input": "////one/two", + "base": "file:///", + "reason": "unclassified" + }, + { + "input": "file:///.//", + "base": "file:////", + "reason": "unclassified" + }, + { + "input": "file:.//p", + "base": null, + "reason": "unclassified" + }, + { + "input": "file:/.//p", + "base": null, + "reason": "unclassified" + }, + { + "input": "https://[0:1:2:3:4:5:192.0.02.1]/", + "base": null, + "reason": "unclassified" + }, + { + "input": "https://[192.0.2.1::]/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://[1:0::]", + "base": "http://example.net/", + "reason": "unclassified" + }, + { + "input": "http://[0:1:2:3:4:5:6:7:8]", + "base": "http://example.net/", + "reason": "unclassified" + }, + { + "input": "https://[0::0::0]", + "base": null, + "reason": "unclassified" + }, + { + "input": "https://[0:.0]", + "base": null, + "reason": "unclassified" + }, + { + "input": "https://[0:0:]", + "base": null, + "reason": "unclassified" + }, + { + "input": "https://[0:1:2:3:4:5:6:7.0.0.0.1]", + "base": null, + "reason": "unclassified" + }, + { + "input": "https://[0:1.00.0.0.0]", + "base": null, + "reason": "unclassified" + }, + { + "input": "https://[0:1.290.0.0.0]", + "base": null, + "reason": "unclassified" + }, + { + "input": "https://[0:1.23.23]", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://?", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://#", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://f:4294967377/c", + "base": "http://example.org/", + "reason": "unclassified" + }, + { + "input": "http://f:18446744073709551697/c", + "base": "http://example.org/", + "reason": "unclassified" + }, + { + "input": "http://f:340282366920938463463374607431768211537/c", + "base": "http://example.org/", + "reason": "unclassified" + }, + { + "input": "sc://ñ", + "base": null, + "reason": "unclassified" + }, + { + "input": "sc://ñ?x", + "base": null, + "reason": "unclassified" + }, + { + "input": "sc://ñ#x", + "base": null, + "reason": "unclassified" + }, + { + "input": "#x", + "base": "sc://ñ", + "reason": "unclassified" + }, + { + "input": "?x", + "base": "sc://ñ", + "reason": "unclassified" + }, + { + "input": "sc://?", + "base": null, + "reason": "unclassified" + }, + { + "input": "sc://#", + "base": null, + "reason": "unclassified" + }, + { + "input": "///", + "base": "sc://x/", + "reason": "unclassified" + }, + { + "input": "////", + "base": "sc://x/", + "reason": "unclassified" + }, + { + "input": "////x/", + "base": "sc://x/", + "reason": "unclassified" + }, + { + "input": "telnet://user:pass@foobar.com:23/", + "base": null, + "reason": "unclassified" + }, + { + "input": "ut2004://10.10.10.10:7777/Index.ut2", + "base": null, + "reason": "unclassified" + }, + { + "input": "redis://foo:bar@somehost:6379/0?baz=bam&qux=baz", + "base": null, + "reason": "unclassified" + }, + { + "input": "rsync://foo@host:911/sup", + "base": null, + "reason": "unclassified" + }, + { + "input": "irc://myserver.com:6999/channel?passwd", + "base": null, + "reason": "unclassified" + }, + { + "input": "dns://fw.example.org:9999/foo.bar.org?type=TXT", + "base": null, + "reason": "unclassified" + }, + { + "input": "ldap://localhost:389/ou=People,o=JNDITutorial", + "base": null, + "reason": "unclassified" + }, + { + "input": "urn:ietf:rfc:2648", + "base": null, + "reason": "unclassified" + }, + { + "input": "tag:joe@example.org,2001:foo/bar", + "base": null, + "reason": "unclassified" + }, + { + "input": "non-spec:/.//", + "base": null, + "reason": "unclassified" + }, + { + "input": "non-spec:/..//", + "base": null, + "reason": "unclassified" + }, + { + "input": "non-spec:/a/..//", + "base": null, + "reason": "unclassified" + }, + { + "input": "non-spec:/.//path", + "base": null, + "reason": "unclassified" + }, + { + "input": "non-spec:/..//path", + "base": null, + "reason": "unclassified" + }, + { + "input": "non-spec:/a/..//path", + "base": null, + "reason": "unclassified" + }, + { + "input": "/.//path", + "base": "non-spec:/p", + "reason": "unclassified" + }, + { + "input": "/..//path", + "base": "non-spec:/p", + "reason": "unclassified" + }, + { + "input": "..//path", + "base": "non-spec:/p", + "reason": "unclassified" + }, + { + "input": "a/..//path", + "base": "non-spec:/p", + "reason": "unclassified" + }, + { + "input": "", + "base": "non-spec:/..//p", + "reason": "unclassified" + }, + { + "input": "path", + "base": "non-spec:/..//p", + "reason": "unclassified" + }, + { + "input": "../path", + "base": "non-spec:/.//p", + "reason": "unclassified" + }, + { + "input": "non-special://[1:2:0:0:5:0:0:0]/", + "base": null, + "reason": "unclassified" + }, + { + "input": "non-special://[1:2:0:0:0:0:0:3]/", + "base": null, + "reason": "unclassified" + }, + { + "input": "non-special://[1:2::3]:80/", + "base": null, + "reason": "unclassified" + }, + { + "input": "non-special://[:80/", + "base": null, + "reason": "unclassified" + }, + { + "input": "blob:https://example.com:443/", + "base": null, + "reason": "unclassified" + }, + { + "input": "blob:http://example.org:88/", + "base": null, + "reason": "unclassified" + }, + { + "input": "blob:d3958f5c-0777-0845-9dcf-2cb28783acaf", + "base": null, + "reason": "unclassified" + }, + { + "input": "blob:", + "base": null, + "reason": "unclassified" + }, + { + "input": "blob:blob:", + "base": null, + "reason": "unclassified" + }, + { + "input": "blob:blob:https://example.org/", + "base": null, + "reason": "unclassified" + }, + { + "input": "blob:about:blank", + "base": null, + "reason": "unclassified" + }, + { + "input": "blob:file://host/path", + "base": null, + "reason": "unclassified" + }, + { + "input": "blob:ftp://host/path", + "base": null, + "reason": "unclassified" + }, + { + "input": "blob:ws://example.org/", + "base": null, + "reason": "unclassified" + }, + { + "input": "blob:wss://example.org/", + "base": null, + "reason": "unclassified" + }, + { + "input": "blob:http%3a//example.org/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://0x7f.0.0.0x7g", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://0X7F.0.0.0X7G", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://[::127.0.0.0.1]", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://[0:1:0:1:0:1:0:1]", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://[1:0:1:0:1:0:1:0]", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://example.org/test?\"", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://example.org/test?#", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://example.org/test?<", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://example.org/test?>", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://example.org/test?⌣", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://example.org/test?%23%23", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://example.org/test?%GH", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://example.org/test?a#%EF", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://example.org/test?a#%GH", + "base": null, + "reason": "unclassified" + }, + { + "input": "a", + "base": null, + "reason": "unclassified" + }, + { + "input": "a/", + "base": null, + "reason": "unclassified" + }, + { + "input": "a//", + "base": null, + "reason": "unclassified" + }, + { + "input": "test-a-colon.html", + "base": "a:", + "reason": "unclassified" + }, + { + "input": "test-a-colon-b.html", + "base": "a:b", + "reason": "unclassified" + }, + { + "input": "test-a-colon-slash.html", + "base": "a:/", + "reason": "unclassified" + }, + { + "input": "test-a-colon-slash-slash.html", + "base": "a://", + "reason": "unclassified" + }, + { + "input": "test-a-colon-slash-b.html", + "base": "a:/b", + "reason": "unclassified" + }, + { + "input": "test-a-colon-slash-slash-b.html", + "base": "a://b", + "reason": "unclassified" + }, + { + "input": "http://example.org/test?a#b\u0000c", + "base": null, + "reason": "unclassified" + }, + { + "input": "non-spec://example.org/test?a#b\u0000c", + "base": null, + "reason": "unclassified" + }, + { + "input": "non-spec:/test?a#b\u0000c", + "base": null, + "reason": "unclassified" + }, + { + "input": "10.0.0.7:8080/foo.html", + "base": "file:///some/dir/bar.html", + "reason": "unclassified" + }, + { + "input": "a!@$*=/foo.html", + "base": "file:///some/dir/bar.html", + "reason": "unclassified" + }, + { + "input": "a1234567890-+.:foo/bar", + "base": "http://example.com/dir/file", + "reason": "unclassified" + }, + { + "input": "file://a­b/p", + "base": null, + "reason": "unclassified" + }, + { + "input": "file://a%C2%ADb/p", + "base": null, + "reason": "unclassified" + }, + { + "input": "file://loC𝐀𝐋𝐇𝐨𝐬𝐭/usr/bin", + "base": null, + "reason": "unclassified" + }, + { + "input": "file://­/p", + "base": null, + "reason": "unclassified" + }, + { + "input": "file://%C2%AD/p", + "base": null, + "reason": "unclassified" + }, + { + "input": "#link", + "base": "https://example.org/##link", + "reason": "unclassified" + }, + { + "input": "non-special:cannot-be-a-base-url-\u0000\u0001\u001f\u001e~€", + "base": null, + "reason": "unclassified" + }, + { + "input": "non-special:cannot-be-a-base-url-!\"$%&'()*+,-.;<=>@[\\]^_`{|}~@/", + "base": null, + "reason": "unclassified" + }, + { + "input": "https://www.example.com/path{path.html?query'=query#fragment<fragment", + "base": null, + "reason": "unclassified" + }, + { + "input": "https://user:pass[@foo/bar", + "base": "http://example.org", + "reason": "unclassified" + }, + { + "input": "foo:// !\"$%&'()*+,-.;<=>@[\\]^_`{|}~@host/", + "base": null, + "reason": "unclassified" + }, + { + "input": "wss:// !\"$%&'()*+,-.;<=>@[]^_`{|}~@host/", + "base": null, + "reason": "unclassified" + }, + { + "input": "foo://joe: !\"$%&'()*+,-.:;<=>@[\\]^_`{|}~@host/", + "base": null, + "reason": "unclassified" + }, + { + "input": "wss://joe: !\"$%&'()*+,-.:;<=>@[]^_`{|}~@host/", + "base": null, + "reason": "unclassified" + }, + { + "input": "foo://host/ !\"$%&'()*+,-./:;<=>@[\\]^_`{|}~", + "base": null, + "reason": "unclassified" + }, + { + "input": "wss://host/ !\"$%&'()*+,-./:;<=>@[\\]^_`{|}~", + "base": null, + "reason": "unclassified" + }, + { + "input": "foo://host/dir/? !\"$%&'()*+,-./:;<=>?@[\\]^_`{|}~", + "base": null, + "reason": "unclassified" + }, + { + "input": "wss://host/dir/? !\"$%&'()*+,-./:;<=>?@[\\]^_`{|}~", + "base": null, + "reason": "unclassified" + }, + { + "input": "foo://host/dir/# !\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~", + "base": null, + "reason": "unclassified" + }, + { + "input": "wss://host/dir/# !\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~", + "base": null, + "reason": "unclassified" + }, + { + "input": "abc:rootless", + "base": "abc://host/path", + "reason": "unclassified" + }, + { + "input": "abc:rootless", + "base": "abc:/path", + "reason": "unclassified" + }, + { + "input": "abc:rootless", + "base": "abc:path", + "reason": "unclassified" + }, + { + "input": "abc:/rooted", + "base": "abc://host/path", + "reason": "unclassified" + }, + { + "input": "#", + "base": null, + "reason": "unclassified" + }, + { + "input": "?", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://1.2.3.4.5", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://1.2.3.4.5.", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://0..0x300/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://0..0x300./", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://256.256.256.256.256", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://256.256.256.256.256.", + "base": "http://other.com/", + "reason": "unclassified" + }, + { + "input": "http://1.2.3.08", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://1.2.3.08.", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://1.2.3.09", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://09.2.3.4", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://09.2.3.4.", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://01.2.3.4.5", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://01.2.3.4.5.", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://0x100.2.3.4", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://0x100.2.3.4.", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://0x1.2.3.4.5", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://0x1.2.3.4.5.", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://foo.1.2.3.4", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://foo.1.2.3.4.", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://foo.2.3.4", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://foo.2.3.4.", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://foo.09", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://foo.09.", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://foo.0x4", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://foo.0x4.", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://foo.09..", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://0999999999999999999/", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://foo.0x", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://foo.0XFfFfFfFfFfFfFfFfFfAcE123", + "base": null, + "reason": "unclassified" + }, + { + "input": "http://💩.123/", + "base": null, + "reason": "unclassified" + }, + { + "input": "https://\u0000y", + "base": null, + "reason": "unclassified" + }, + { + "input": "https://x/\u0000y", + "base": null, + "reason": "unclassified" + }, + { + "input": "https://x/?\u0000y", + "base": null, + "reason": "unclassified" + }, + { + "input": "https://x/?#\u0000y", + "base": null, + "reason": "unclassified" + }, + { + "input": "https://￿y", + "base": null, + "reason": "unclassified" + }, + { + "input": "https://x/￿y", + "base": null, + "reason": "unclassified" + }, + { + "input": "https://x/?￿y", + "base": null, + "reason": "unclassified" + }, + { + "input": "https://x/?#￿y", + "base": null, + "reason": "unclassified" + }, + { + "input": "non-special:\u0000y", + "base": null, + "reason": "unclassified" + }, + { + "input": "non-special:x/\u0000y", + "base": null, + "reason": "unclassified" + }, + { + "input": "non-special:x/?\u0000y", + "base": null, + "reason": "unclassified" + }, + { + "input": "non-special:x/?#\u0000y", + "base": null, + "reason": "unclassified" + }, + { + "input": "non-special:￿y", + "base": null, + "reason": "unclassified" + }, + { + "input": "non-special:x/￿y", + "base": null, + "reason": "unclassified" + }, + { + "input": "non-special:x/?￿y", + "base": null, + "reason": "unclassified" + }, + { + "input": "non-special:x/?#￿y", + "base": null, + "reason": "unclassified" + }, + { + "input": "", + "base": null, + "reason": "unclassified" + }, + { + "input": "https://example.com/\"quoted\"", + "base": null, + "reason": "unclassified" + }, + { + "input": "https://a%C2%ADb/", + "base": null, + "reason": "unclassified" + }, + { + "input": "https://­/", + "base": null, + "reason": "unclassified" + }, + { + "input": "https://%C2%AD/", + "base": null, + "reason": "unclassified" + }, + { + "input": "constructor:example", + "base": null, + "reason": "unclassified" + }, + { + "input": "constructor:/example", + "base": null, + "reason": "unclassified" + }, + { + "input": "constructor://HOST:80", + "base": null, + "reason": "unclassified" + }, + { + "input": "data://example.com:8080/pathname?search#hash", + "base": null, + "reason": "unclassified" + }, + { + "input": "data://test/a/../b", + "base": null, + "reason": "unclassified" + }, + { + "input": "data://:443", + "base": null, + "reason": "unclassified" + }, + { + "input": "data://test:test", + "base": null, + "reason": "unclassified" + }, + { + "input": "data://[:1]", + "base": null, + "reason": "unclassified" + }, + { + "input": "javascript://example.com:8080/pathname?search#hash", + "base": null, + "reason": "unclassified" + }, + { + "input": "javascript://test/a/../b", + "base": null, + "reason": "unclassified" + }, + { + "input": "javascript://:443", + "base": null, + "reason": "unclassified" + }, + { + "input": "javascript://test:test", + "base": null, + "reason": "unclassified" + }, + { + "input": "javascript://[:1]", + "base": null, + "reason": "unclassified" + }, + { + "input": "mailto://example.com:8080/pathname?search#hash", + "base": null, + "reason": "unclassified" + }, + { + "input": "mailto:///test", + "base": null, + "reason": "unclassified" + }, + { + "input": "mailto://test/a/../b", + "base": null, + "reason": "unclassified" + }, + { + "input": "intent://example.com:8080/pathname?search#hash", + "base": null, + "reason": "unclassified" + }, + { + "input": "intent://test/a/../b", + "base": null, + "reason": "unclassified" + }, + { + "input": "intent://:443", + "base": null, + "reason": "unclassified" + }, + { + "input": "intent://test:test", + "base": null, + "reason": "unclassified" + }, + { + "input": "intent://[:1]", + "base": null, + "reason": "unclassified" + }, + { + "input": "urn://example.com:8080/pathname?search#hash", + "base": null, + "reason": "unclassified" + }, + { + "input": "urn://test/a/../b", + "base": null, + "reason": "unclassified" + }, + { + "input": "urn://:443", + "base": null, + "reason": "unclassified" + }, + { + "input": "urn://test:test", + "base": null, + "reason": "unclassified" + }, + { + "input": "urn://[:1]", + "base": null, + "reason": "unclassified" + }, + { + "input": "turn://example.com:8080/pathname?search#hash", + "base": null, + "reason": "unclassified" + }, + { + "input": "turn://test/a/../b", + "base": null, + "reason": "unclassified" + }, + { + "input": "turn://:443", + "base": null, + "reason": "unclassified" + }, + { + "input": "turn://test:test", + "base": null, + "reason": "unclassified" + }, + { + "input": "turn://[:1]", + "base": null, + "reason": "unclassified" + }, + { + "input": "stun://example.com:8080/pathname?search#hash", + "base": null, + "reason": "unclassified" + }, + { + "input": "stun://test/a/../b", + "base": null, + "reason": "unclassified" + }, + { + "input": "stun://:443", + "base": null, + "reason": "unclassified" + }, + { + "input": "stun://test:test", + "base": null, + "reason": "unclassified" + }, + { + "input": "stun://[:1]", + "base": null, + "reason": "unclassified" + }, + { + "input": "w://x:0", + "base": null, + "reason": "unclassified" + }, + { + "input": "west://x:0", + "base": null, + "reason": "unclassified" + }, + { + "input": "android://x:0/a", + "base": null, + "reason": "unclassified" + }, + { + "input": "drivefs://x:0/a", + "base": null, + "reason": "unclassified" + }, + { + "input": "chromeos-steam://x:0/a", + "base": null, + "reason": "unclassified" + }, + { + "input": "steam://x:0/a", + "base": null, + "reason": "unclassified" + }, + { + "input": "materialized-view://x:0/a", + "base": null, + "reason": "unclassified" + }, + { + "input": "android-app://x:0", + "base": null, + "reason": "unclassified" + }, + { + "input": "chrome-distiller://x:0", + "base": null, + "reason": "unclassified" + }, + { + "input": "chrome-extension://x:0", + "base": null, + "reason": "unclassified" + }, + { + "input": "chrome-native://x:0", + "base": null, + "reason": "unclassified" + }, + { + "input": "chrome-resource://x:0", + "base": null, + "reason": "unclassified" + }, + { + "input": "chrome-search://x:0", + "base": null, + "reason": "unclassified" + }, + { + "input": "fuchsia-dir://x:0", + "base": null, + "reason": "unclassified" + }, + { + "input": "isolated-app://x:0", + "base": null, + "reason": "unclassified" + }, + { + "input": "///test", + "base": "http://example.org/", + "reason": "unclassified" + }, + { + "input": "///\\//\\//test", + "base": "http://example.org/", + "reason": "unclassified" + }, + { + "input": "///example.org/path", + "base": "http://example.org/", + "reason": "unclassified" + }, + { + "input": "///example.org/../path", + "base": "http://example.org/", + "reason": "unclassified" + }, + { + "input": "///example.org/../../", + "base": "http://example.org/", + "reason": "unclassified" + }, + { + "input": "///example.org/../path/../../", + "base": "http://example.org/", + "reason": "unclassified" + }, + { + "input": "///example.org/../path/../../path", + "base": "http://example.org/", + "reason": "unclassified" + }, + { + "input": "/\\/\\//example.org/../path", + "base": "http://example.org/", + "reason": "unclassified" + }, + { + "input": "///abcdef/../", + "base": "file:///", + "reason": "unclassified" + }, + { + "input": "/\\//\\/a/../", + "base": "file:///", + "reason": "unclassified" + }, + { + "input": "//a/../", + "base": "file:///", + "reason": "unclassified" + }, + { + "input": "non-special:\\\\opaque", + "base": null, + "reason": "unclassified" + }, + { + "input": "non-special:\\\\opaque/path", + "base": null, + "reason": "unclassified" + }, + { + "input": "non-special:\\\\opaque\\path", + "base": null, + "reason": "unclassified" + }, + { + "input": "non-special:\\/opaque", + "base": null, + "reason": "unclassified" + }, + { + "input": "non-special:/\\path", + "base": null, + "reason": "unclassified" + }, + { + "input": "non-special://host\\a", + "base": null, + "reason": "unclassified" + }, + { + "input": "\\a", + "base": "foo://foo/a", + "reason": "unclassified" + }, + { + "input": "\\/a", + "base": "foo://foo/a", + "reason": "unclassified" + }, + { + "input": "\\\\a", + "base": "foo://foo/a", + "reason": "unclassified" + }, + { + "input": "data:text/plain,test# ", + "base": null, + "reason": "unclassified" + }, + { + "input": "about:blank# ", + "base": null, + "reason": "unclassified" + }, + { + "input": "data:text/plain,test#\u0000\u0001\t\n\r\u001f !\"#$%&'()*+,-./09:;<=>?@AZ[\\]^_`az{|}~€Éé", + "base": null, + "reason": "unclassified" + }, + { + "input": "about:blank#\u0000\u0001\t\n\r\u001f !\"#$%&'()*+,-./09:;<=>?@AZ[\\]^_`az{|}~€Éé", + "base": null, + "reason": "unclassified" + } +] diff --git a/test/wpt/wpt_url_test_data.rb b/test/wpt/wpt_url_test_data.rb new file mode 100644 index 0000000..1de9b9d --- /dev/null +++ b/test/wpt/wpt_url_test_data.rb @@ -0,0 +1,134 @@ +# frozen_string_literal: true +require 'json' +require 'uri' + +# Harness for running web-platform-tests' url/resources/urltestdata.json +# (https://github.com/web-platform-tests/wpt) against a URI parser. +module WPT + module URLTestData + DEFAULT_SOURCE = "https://raw.githubusercontent.com/web-platform-tests/wpt/master/url/resources/urltestdata.json" + + # URL attributes compared against the expectations. "origin" and + # "searchParams" are not compared: URI has no equivalent of either. + COMPARED_KEYS = %w[href protocol username password host hostname port pathname search hash].freeze + + module_function + + # The data source: WPT_URLTESTDATA (a local path or an https URL) if + # set, otherwise WPT master. + def source + ENV["WPT_URLTESTDATA"] || DEFAULT_SOURCE + end + + # Loads the test cases from +source+, a local path or an https URL, + # dropping the comment strings interleaved in the data. + def load(source = DEFAULT_SOURCE) + json = source.match?(%r{\A[A-Za-z][A-Za-z0-9+.-]*://}) ? fetch(source) : File.read(source) + data = JSON.parse(json) + raise ArgumentError, "urltestdata must be a JSON array: #{source}" unless data.is_a?(Array) + data.grep(Hash) + end + + def fetch(url) + uri = URI::RFC3986_PARSER.parse(url) + raise ArgumentError, "urltestdata must be fetched over https: #{url}" unless uri.is_a?(URI::HTTPS) + + require 'net/http' + response = Net::HTTP.start(uri.host, uri.port, use_ssl: true, open_timeout: 10, read_timeout: 30) do |http| + http.get(uri.request_uri) + end + raise "failed to fetch #{url}: HTTP #{response.code}" unless response.is_a?(Net::HTTPSuccess) + response.body + end + + # A test case is identified by its input and base; the pair is unique + # in urltestdata.json. + def key(test_case) + [test_case["input"], test_case["base"]] + end + + # The URL attributes (as the WHATWG URL API exposes them) of +uri+. + def components(uri) + port = uri.port && uri.port != uri.default_port ? uri.port.to_s : "" + hostname = uri.host.to_s + { + "href" => uri.to_s, + "protocol" => "#{uri.scheme}:", + "username" => uri.user.to_s, + "password" => uri.password.to_s, + "host" => port.empty? ? hostname : "#{hostname}:#{port}", + "hostname" => hostname, + "port" => port, + "pathname" => uri.opaque || uri.path.to_s, + "search" => uri.query.to_s.empty? ? "" : "?#{uri.query}", + "hash" => uri.fragment.to_s.empty? ? "" : "##{uri.fragment}", + } + end + + # Runs +test_case+ with +parser+. Returns nil when it passes, or a + # message describing how it failed. Exceptions are reported in the + # message rather than raised, so one case cannot abort the others. + def run(test_case, parser) + input = test_case["input"] + base = test_case["base"] + begin + uri = base ? parser.join(base, input) : parser.parse(input) + rescue URI::Error => e + return nil if test_case["failure"] + return "unexpected #{e.class}: #{e.message}" + rescue StandardError => e + return "#{e.class}: #{e.message}" + end + + return "expected failure, but parsed as #{uri.to_s.inspect}" if test_case["failure"] + + actual = components(uri) + diffs = COMPARED_KEYS.select { |k| test_case.key?(k) && test_case[k] != actual[k] } + return nil if diffs.empty? + + diffs.map { |k| "#{k}: expected #{test_case[k].inspect}, got #{actual[k].inspect}" }.join("\n") + end + end + + # The list of urltestdata cases that are known to fail, each with the + # reason, stored as a JSON array of {"input", "base", "reason"}. + module Exclusions + UNCLASSIFIED = "unclassified" + PATH = File.expand_path("urltestdata_exclusions.json", __dir__) + + module_function + + # Returns a Hash of [input, base] => reason. + def load(path) + JSON.parse(File.read(path)).each_with_object({}) do |entry, result| + key = [entry["input"], entry["base"]] + reason = entry["reason"] + raise ArgumentError, "duplicate exclusion: #{key.inspect}" if result.key?(key) + raise ArgumentError, "exclusion without reason: #{key.inspect}" if reason.nil? || reason.empty? + result[key] = reason + end + end + + def save(path, exclusions) + entries = exclusions.map { |(input, base), reason| { "input" => input, "base" => base, "reason" => reason } } + File.write(path, JSON.pretty_generate(entries) + "\n") + end + + # Keys of +exclusions+ that no longer match any case in +cases+. + def stale(exclusions, cases) + present = cases.map { |c| URLTestData.key(c) } + exclusions.keys - present + end + + # Rebuilds the exclusions from the keys of the currently +failing+ + # cases, keeping known reasons and marking new ones UNCLASSIFIED. + # Cases that pass now, or that are gone from +cases+, are dropped. + # The result follows the order of +cases+. + def update(exclusions, cases, failing) + failing = failing.to_a + cases.map { |c| URLTestData.key(c) }.select { |k| failing.include?(k) }.each_with_object({}) do |k, result| + result[k] = exclusions.fetch(k, UNCLASSIFIED) + end + end + end +end From 87be3d78070ae47c8c2cdae28a0e2e2b4425cd28 Mon Sep 17 00:00:00 2001 From: jinroq Date: Tue, 3 Nov 2026 17:55:51 +0900 Subject: [PATCH 03/74] Preprocess input in URI::WHATWG_Parser#split Strip leading and trailing C0 control or space and remove all ASCII tab or newline, as the first steps of the URL Standard's basic URL parser do. The ends are found with index/rindex instead of an anchored regexp, so long inner runs of spaces cannot cause quadratic backtracking. Input is converted to UTF-8 first. A string with an invalid byte sequence, or one that cannot be converted, raises InvalidURIError. Eight WPT urltestdata cases pass now and are removed from the exclusions. Co-Authored-By: Claude Opus 5.5 --- lib/uri/whatwg_parser.rb | 24 +++++++ test/uri/test_whatwg_parser.rb | 97 ++++++++++++++++++++++++++++ test/wpt/urltestdata_exclusions.json | 40 ------------ 3 files changed, 121 insertions(+), 40 deletions(-) diff --git a/lib/uri/whatwg_parser.rb b/lib/uri/whatwg_parser.rb index 35d92df..c875499 100644 --- a/lib/uri/whatwg_parser.rb +++ b/lib/uri/whatwg_parser.rb @@ -14,6 +14,7 @@ def split(uri) # :nodoc: rescue NoMethodError raise InvalidURIError, "bad URI (is not URI?): #{uri.inspect}" end + uri = preprocess(to_utf8(uri)) scheme, rest = uri.split(":", 2) authority, slash, path = rest.delete_prefix("//").partition("/") @@ -61,6 +62,29 @@ def unescape(str, escaped = nil) # :nodoc: private + NOT_C0_CONTROL_OR_SPACE = /[^\x00-\x20]/ # :nodoc: + ASCII_TAB_OR_NEWLINE = "\t\n\r" # :nodoc: + + # The URL Standard parses a string of Unicode scalar values. + def to_utf8(input) + raise InvalidURIError, "invalid byte sequence: #{input.dump}" unless input.valid_encoding? + input.encode(Encoding::UTF_8) + rescue EncodingError + raise InvalidURIError, "cannot be converted to UTF-8: #{input.dump}" + end + + # basic URL parser, steps 1-3: strip leading and trailing C0 control + # or space, then remove all ASCII tab or newline. + # + # The ends are found with index/rindex rather than an anchored + # regexp such as /[\x00-\x20]+\z/, which backtracks quadratically on + # long inner runs of spaces. + def preprocess(input) + first = input.index(NOT_C0_CONTROL_OR_SPACE) or return +"" + last = input.rindex(NOT_C0_CONTROL_OR_SPACE) + input[first..last].delete(ASCII_TAB_OR_NEWLINE) + end + def convert_to_uri(uri) if uri.is_a?(URI::Generic) uri diff --git a/test/uri/test_whatwg_parser.rb b/test/uri/test_whatwg_parser.rb index 5a47fe8..b20550f 100644 --- a/test/uri/test_whatwg_parser.rb +++ b/test/uri/test_whatwg_parser.rb @@ -228,4 +228,101 @@ def test_obsolete_methods_do_not_warn_when_not_verbose $stderr = stderr $VERBOSE = verbose end + + # --- preprocessing ------------------------------------------------- + # https://url.spec.whatwg.org/#concept-basic-url-parser (steps 1-3) + + SIMPLE = ["http", nil, "example.com", nil, nil, "/", nil, nil, nil].freeze + + def split(str) + URI::WHATWG_PARSER.split(str) + end + + def test_split_strips_leading_and_trailing_spaces + assert_equal(SIMPLE, split(" http://example.com/ ")) + end + + def test_split_strips_leading_and_trailing_c0_controls + assert_equal(SIMPLE, split("\x00\x01\x1Fhttp://example.com/\x1F\x0B\x00")) + end + + def test_split_strips_every_c0_control_and_space_at_both_ends + all = (0x00..0x20).map(&:chr).join + assert_equal(SIMPLE, split("#{all}http://example.com/#{all}")) + end + + def test_split_does_not_strip_just_outside_c0_control_or_space_range + # U+0021 "!" and U+007F DELETE are not C0 control or space. + assert_equal("/!", split("http://example.com/!")[5]) + assert_not_equal(SIMPLE, split("http://example.com/\x7F")) + end + + def test_split_does_not_strip_non_ascii_whitespace + # U+00A0 NO-BREAK SPACE and U+3000 IDEOGRAPHIC SPACE are kept. + assert_not_equal(SIMPLE, split("http://example.com/\u00A0")) + assert_not_equal(SIMPLE, split("http://example.com/\u3000")) + end + + def test_split_removes_tab_and_newlines_anywhere + assert_equal(SIMPLE, split("ht\ttp://exa\nmple.com\r/")) + assert_equal(SIMPLE, split("\r\nhttp://example.com/\t")) + end + + def test_split_keeps_other_inner_c0_controls_and_spaces + # Only tab, LF and CR are removed from the inside of the input. + assert_not_equal(SIMPLE, split("http://example.com/a\x0Bb")) + assert_not_equal(SIMPLE, split("http://example.com/a\x0Cb")) + assert_not_equal(SIMPLE, split("http://example.com/a b")) + end + + def test_split_does_not_modify_its_argument + str = +" ht\ttp://example.com/ " + split(str) + assert_equal(" ht\ttp://example.com/ ", str) + end + + def test_split_accepts_frozen_string + assert_equal(SIMPLE, split(" http://example.com/ ".freeze)) + end + + def test_split_strips_in_linear_time + # Inner runs of C0 control or space must not cause backtracking. + pre = ->(n) { "http://example.com/" + " " * n + "a" } + assert_linear_performance((1..5).map { |i| 10**i }, pre: pre) do |uri| + split(uri) + end + end + + # --- input encoding ------------------------------------------------ + + def test_split_accepts_us_ascii_and_binary_ascii_only_input + assert_equal(SIMPLE, split("http://example.com/".encode("US-ASCII"))) + assert_equal(SIMPLE, split("http://example.com/".b)) + end + + def test_split_converts_other_encodings_to_utf8 + assert_equal(SIMPLE, split("http://example.com/".encode("UTF-16LE"))) + assert_equal(SIMPLE, split(" http://example.com/ ".encode("UTF-16BE"))) + end + + def test_split_returns_utf8_components + split("http://example.com/".encode("UTF-16LE")).compact.each do |component| + assert_equal(Encoding::UTF_8, component.encoding, component) + end + end + + def test_split_rejects_invalid_byte_sequence + assert_raise(URI::InvalidURIError) { split("http://example.com/\xFF") } + assert_raise(URI::InvalidURIError) { split("http://example.com/\xE3\x81") } + end + + def test_split_rejects_binary_input_with_non_ascii_bytes + assert_raise(URI::InvalidURIError) { split("http://example.com/\xE3\x81\x82".b) } + end + + def test_split_rejects_invalid_utf16_input + # An unpaired high surrogate (U+D800) is not a valid UTF-16 sequence. + lone_surrogate = ("http://example.com/".encode("UTF-16LE").b + "\x00\xD8".b).force_encoding("UTF-16LE") + assert_raise(URI::InvalidURIError) { split(lone_surrogate) } + end end diff --git a/test/wpt/urltestdata_exclusions.json b/test/wpt/urltestdata_exclusions.json index 8e2f18e..03cf2ef 100644 --- a/test/wpt/urltestdata_exclusions.json +++ b/test/wpt/urltestdata_exclusions.json @@ -699,11 +699,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "http://example.com/foo\tbar", - "base": null, - "reason": "unclassified" - }, { "input": "http://example.com\\\\foo\\\\bar", "base": null, @@ -1219,11 +1214,6 @@ "base": "http://other.com/", "reason": "unclassified" }, - { - "input": "\u0000\u001b\u0004\u0012 http://example.com/\u001f \r ", - "base": null, - "reason": "unclassified" - }, { "input": "non-special:opaque ", "base": null, @@ -1809,21 +1799,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "foo://ho\tst/", - "base": null, - "reason": "unclassified" - }, - { - "input": "foo://ho\nst/", - "base": null, - "reason": "unclassified" - }, - { - "input": "foo://ho\rst/", - "base": null, - "reason": "unclassified" - }, { "input": "http://a\u0000b/", "base": null, @@ -2014,21 +1989,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "http://ho\tst/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ho\nst/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ho\rst/", - "base": null, - "reason": "unclassified" - }, { "input": "http://ho%00st/", "base": null, From c0311336c1abbaa62a7e497dd1eedd9f3e222f9f Mon Sep 17 00:00:00 2001 From: jinroq Date: Tue, 3 Nov 2026 18:05:26 +0900 Subject: [PATCH 04/74] Parse the scheme in URI::WHATWG_Parser#split Follow the URL Standard's scheme start state and scheme state: a scheme is an ASCII alpha followed by ASCII alphanumerics, "+", "-" or ".", and is ASCII-lowercased. Input without a scheme raises InvalidURIError, as the no scheme state fails when there is no base URL. Special schemes (ftp, file, http, https, ws, wss) are parsed as hierarchical URLs. For other schemes, input starting with "//" has an authority, input starting with "/" has a path, and anything else is an opaque path, returned as the opaque component. 76 more WPT urltestdata cases pass and are removed from the exclusions. Co-Authored-By: Claude Opus 5.5 --- lib/uri/whatwg_parser.rb | 46 +++- test/uri/test_whatwg_parser.rb | 113 ++++++++ test/wpt/urltestdata_exclusions.json | 380 --------------------------- 3 files changed, 156 insertions(+), 383 deletions(-) diff --git a/lib/uri/whatwg_parser.rb b/lib/uri/whatwg_parser.rb index c875499..8354e9d 100644 --- a/lib/uri/whatwg_parser.rb +++ b/lib/uri/whatwg_parser.rb @@ -16,9 +16,21 @@ def split(uri) # :nodoc: end uri = preprocess(to_utf8(uri)) - scheme, rest = uri.split(":", 2) - authority, slash, path = rest.delete_prefix("//").partition("/") - [scheme, nil, authority, nil, nil, slash + path, nil, nil, nil] + scheme, rest = parse_scheme(uri) + + if SPECIAL_SCHEMES.key?(scheme) + split_hierarchical(scheme, rest) + elsif rest.start_with?("/") + # path or authority state + if rest.start_with?("//") + split_hierarchical(scheme, rest) + else + [scheme, nil, nil, nil, nil, rest, nil, nil, nil] + end + else + # opaque path state + [scheme, nil, nil, nil, nil, nil, rest, nil, nil] + end end def parse(uri) # :nodoc: @@ -62,6 +74,20 @@ def unescape(str, escaped = nil) # :nodoc: private + # https://url.spec.whatwg.org/#special-scheme + SPECIAL_SCHEMES = { + "ftp" => 21, + "file" => nil, + "http" => 80, + "https" => 443, + "ws" => 80, + "wss" => 443, + }.freeze # :nodoc: + + # scheme start state and scheme state: an ASCII alpha followed by + # ASCII alphanumerics, "+", "-" or ".", up to the first ":". + SCHEME = /\A[A-Za-z][A-Za-z0-9+\-.]*:/ # :nodoc: + NOT_C0_CONTROL_OR_SPACE = /[^\x00-\x20]/ # :nodoc: ASCII_TAB_OR_NEWLINE = "\t\n\r" # :nodoc: @@ -85,6 +111,20 @@ def preprocess(input) input[first..last].delete(ASCII_TAB_OR_NEWLINE) end + # Returns the ASCII-lowercased scheme and the rest of +input+ after + # the ":". Without a scheme, the no scheme state fails, since there + # is no base URL. + def parse_scheme(input) + scheme = input[SCHEME] or + raise InvalidURIError, "missing scheme: #{input.dump}" + [scheme.chop.downcase, input[scheme.size..-1]] + end + + def split_hierarchical(scheme, rest) + authority, slash, path = rest.delete_prefix("//").partition("/") + [scheme, nil, authority, nil, nil, slash + path, nil, nil, nil] + end + def convert_to_uri(uri) if uri.is_a?(URI::Generic) uri diff --git a/test/uri/test_whatwg_parser.rb b/test/uri/test_whatwg_parser.rb index b20550f..8e80c39 100644 --- a/test/uri/test_whatwg_parser.rb +++ b/test/uri/test_whatwg_parser.rb @@ -325,4 +325,117 @@ def test_split_rejects_invalid_utf16_input lone_surrogate = ("http://example.com/".encode("UTF-16LE").b + "\x00\xD8".b).force_encoding("UTF-16LE") assert_raise(URI::InvalidURIError) { split(lone_surrogate) } end + + # --- scheme -------------------------------------------------------- + # https://url.spec.whatwg.org/#scheme-start-state + # https://url.spec.whatwg.org/#scheme-state + # https://url.spec.whatwg.org/#no-scheme-state + + def test_split_lowercases_scheme + assert_equal("http", split("HTTP://example.com/")[0]) + assert_equal("https", split("HtTpS://example.com/")[0]) + assert_equal("foo", split("FOO:bar")[0]) + end + + def test_split_scheme_may_contain_digits_plus_hyphen_and_dot + assert_equal("a+b-c.d0", split("a+b-c.d0:x")[0]) + assert_equal("a9", split("a9:x")[0]) + end + + def test_split_single_letter_scheme + assert_equal("a", split("a:x")[0]) + assert_equal("z", split("Z:x")[0]) + end + + def test_split_scheme_letter_boundaries + # "A", "Z", "a", "z" start a scheme; "@", "[", "`", "{" (their + # neighbours in ASCII) do not. + %w[A Z a z].each { |c| assert_equal(c.downcase, split("#{c}:x")[0], c) } + ["@", "[", "`", "{"].each { |c| assert_raise(URI::InvalidURIError, c) { split("#{c}a:x") } } + end + + def test_split_scheme_digit_boundaries + # "0" and "9" may follow the first letter; "/" (before "0") may not. + assert_equal("a0", split("a0:x")[0]) + assert_equal("a9", split("a9:x")[0]) + assert_raise(URI::InvalidURIError) { split("a/:x") } + end + + def test_split_scheme_must_start_with_letter + %w[1a:x +a:x -a:x .a:x].each do |input| + assert_raise(URI::InvalidURIError, input) { split(input) } + end + end + + def test_split_scheme_rejects_other_characters + ["a_b:x", "a b:x", "a%62:x", "a!b:x"].each do |input| + assert_raise(URI::InvalidURIError, input) { split(input) } + end + end + + def test_split_scheme_rejects_non_ascii_letters + # U+212A KELVIN SIGN lowercases to "k" with Unicode case mapping, but + # it is not an ASCII alpha. + ["é:x", "aé:x", "K:x", "Khttp:x"].each do |input| + assert_raise(URI::InvalidURIError, input) { split(input) } + end + end + + def test_split_without_scheme_fails_without_base + ["example.com", "/path", "//example.com/", "?q", "#f", "", " ", ":", ":foo"].each do |input| + assert_raise(URI::InvalidURIError, input.inspect) { split(input) } + end + end + + def test_parse_without_scheme_fails + assert_raise(URI::InvalidURIError) { URI::WHATWG_PARSER.parse("example.com") } + end + + def test_split_uses_first_colon_as_scheme_delimiter + assert_equal(["foo", "bar:baz"], split("foo:bar:baz").values_at(0, 6)) + end + + def test_split_special_schemes_are_hierarchical + %w[http https ws wss ftp].each do |scheme| + assert_equal( + [scheme, nil, "example.com", nil, nil, "/", nil, nil, nil], + split("#{scheme}://example.com/"), + scheme + ) + end + end + + def test_split_file_scheme_is_hierarchical + # file is a special scheme. Its own states (file state, file host + # state, ...) are not implemented yet. + assert_equal(["file", nil], split("FILE:///tmp/a").values_at(0, 6)) + end + + def test_split_non_special_scheme_with_opaque_path + assert_equal(["foo", nil, nil, nil, nil, nil, "bar", nil, nil], split("foo:bar")) + end + + def test_split_non_special_scheme_with_empty_opaque_path + assert_equal(["foo", nil, nil, nil, nil, nil, "", nil, nil], split("foo:")) + end + + def test_split_non_special_scheme_with_path + assert_equal(["foo", nil, nil, nil, nil, "/bar", nil, nil, nil], split("foo:/bar")) + end + + def test_split_non_special_scheme_with_authority + assert_equal(["foo", nil, "host", nil, nil, "/bar", nil, nil, nil], split("foo://host/bar")) + end + + def test_split_scheme_that_only_resembles_a_special_one_is_non_special + # "http" is special only as the whole scheme. + assert_equal("httpx", split("httpx:bar")[0]) + assert_equal("bar", split("httpx:bar")[6]) + assert_equal("bar", split("htt:bar")[6]) + end + + def test_parse_non_special_opaque_round_trip + assert_equal("foo:bar", URI::WHATWG_PARSER.parse("foo:bar").to_s) + assert_equal("foo:", URI::WHATWG_PARSER.parse("foo:").to_s) + end end diff --git a/test/wpt/urltestdata_exclusions.json b/test/wpt/urltestdata_exclusions.json index 03cf2ef..10f10cf 100644 --- a/test/wpt/urltestdata_exclusions.json +++ b/test/wpt/urltestdata_exclusions.json @@ -44,11 +44,6 @@ "base": "http://example.org/foo/bar", "reason": "unclassified" }, - { - "input": "a:\t foo.com", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, { "input": "http://f:21/ b ? d # e ", "base": "http://example.org/foo/bar", @@ -279,21 +274,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "foo:/", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "foo:/bar.com/", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "c:/foo", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, { "input": "//foo/bar", "base": "http://example.org/foo/bar", @@ -389,11 +369,6 @@ "base": "http://example.org/foo/bar", "reason": "unclassified" }, - { - "input": "madeupscheme:/example.com/", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, { "input": "file://example:1/", "base": null, @@ -414,16 +389,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "ftps:/example.com/", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "gopher:/example.com/", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, { "input": "ws:/example.com/", "base": "http://example.org/foo/bar", @@ -434,16 +399,6 @@ "base": "http://example.org/foo/bar", "reason": "unclassified" }, - { - "input": "data:/example.com/", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "javascript:/example.com/", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, { "input": "mailto:/example.com/", "base": "http://example.org/foo/bar", @@ -459,31 +414,6 @@ "base": "http://example.org/foo/bar", "reason": "unclassified" }, - { - "input": "madeupscheme:example.com/", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "ftps:example.com/", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "gopher:example.com/", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "data:example.com/", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "javascript:example.com/", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, { "input": "mailto:example.com/", "base": "http://example.org/foo/bar", @@ -519,11 +449,6 @@ "base": "http://example.org/foo/bar", "reason": "unclassified" }, - { - "input": "tel:1234567890", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, { "input": "file:c:\\foo\\bar.html", "base": "file:///tmp/mock/path", @@ -874,21 +799,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "madeupscheme:/example.com/", - "base": null, - "reason": "unclassified" - }, - { - "input": "ftps:/example.com/", - "base": null, - "reason": "unclassified" - }, - { - "input": "gopher:/example.com/", - "base": null, - "reason": "unclassified" - }, { "input": "ws:/example.com/", "base": null, @@ -899,16 +809,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "data:/example.com/", - "base": null, - "reason": "unclassified" - }, - { - "input": "javascript:/example.com/", - "base": null, - "reason": "unclassified" - }, { "input": "mailto:/example.com/", "base": null, @@ -919,31 +819,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "madeupscheme:example.com/", - "base": null, - "reason": "unclassified" - }, - { - "input": "ftps:example.com/", - "base": null, - "reason": "unclassified" - }, - { - "input": "gopher:example.com/", - "base": null, - "reason": "unclassified" - }, - { - "input": "data:example.com/", - "base": null, - "reason": "unclassified" - }, - { - "input": "javascript:example.com/", - "base": null, - "reason": "unclassified" - }, { "input": "mailto:example.com/", "base": null, @@ -1214,11 +1089,6 @@ "base": "http://other.com/", "reason": "unclassified" }, - { - "input": "non-special:opaque ", - "base": null, - "reason": "unclassified" - }, { "input": "non-special:opaque ?hi", "base": null, @@ -1554,16 +1424,6 @@ "base": "http://user:pass@example.org:21/smth", "reason": "unclassified" }, - { - "input": "i", - "base": "sc:sd", - "reason": "unclassified" - }, - { - "input": "i", - "base": "sc:sd/sd", - "reason": "unclassified" - }, { "input": "i", "base": "sc:/pa/pa", @@ -1579,16 +1439,6 @@ "base": "sc:///pa/pa", "reason": "unclassified" }, - { - "input": "../i", - "base": "sc:sd", - "reason": "unclassified" - }, - { - "input": "../i", - "base": "sc:sd/sd", - "reason": "unclassified" - }, { "input": "../i", "base": "sc:/pa/pa", @@ -1604,16 +1454,6 @@ "base": "sc:///pa/pa", "reason": "unclassified" }, - { - "input": "/i", - "base": "sc:sd", - "reason": "unclassified" - }, - { - "input": "/i", - "base": "sc:sd/sd", - "reason": "unclassified" - }, { "input": "/i", "base": "sc:/pa/pa", @@ -1629,16 +1469,6 @@ "base": "sc:///pa/pa", "reason": "unclassified" }, - { - "input": "?i", - "base": "sc:sd", - "reason": "unclassified" - }, - { - "input": "?i", - "base": "sc:sd/sd", - "reason": "unclassified" - }, { "input": "?i", "base": "sc:/pa/pa", @@ -1729,26 +1559,6 @@ "base": "sc://ñ", "reason": "unclassified" }, - { - "input": "sc:\\../", - "base": null, - "reason": "unclassified" - }, - { - "input": "sc::a@example.net", - "base": null, - "reason": "unclassified" - }, - { - "input": "wow:%NBD", - "base": null, - "reason": "unclassified" - }, - { - "input": "wow:%1G", - "base": null, - "reason": "unclassified" - }, { "input": "wow:￿", "base": null, @@ -2294,11 +2104,6 @@ "base": "https://example.org/foo/bar", "reason": "unclassified" }, - { - "input": "sc:", - "base": "https://example.org/foo/bar", - "reason": "unclassified" - }, { "input": "http://foo.bar/baz?qux#foo\bbar", "base": null, @@ -2779,11 +2584,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "\\\\\\.\\Y:", - "base": null, - "reason": "unclassified" - }, { "input": "file:///./y", "base": null, @@ -2794,11 +2594,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "\\\\\\.\\y:", - "base": null, - "reason": "unclassified" - }, { "input": "file://localhost//a//../..//foo", "base": null, @@ -2999,16 +2794,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "urn:ietf:rfc:2648", - "base": null, - "reason": "unclassified" - }, - { - "input": "tag:joe@example.org,2001:foo/bar", - "base": null, - "reason": "unclassified" - }, { "input": "non-spec:/.//", "base": null, @@ -3094,66 +2879,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "blob:https://example.com:443/", - "base": null, - "reason": "unclassified" - }, - { - "input": "blob:http://example.org:88/", - "base": null, - "reason": "unclassified" - }, - { - "input": "blob:d3958f5c-0777-0845-9dcf-2cb28783acaf", - "base": null, - "reason": "unclassified" - }, - { - "input": "blob:", - "base": null, - "reason": "unclassified" - }, - { - "input": "blob:blob:", - "base": null, - "reason": "unclassified" - }, - { - "input": "blob:blob:https://example.org/", - "base": null, - "reason": "unclassified" - }, - { - "input": "blob:about:blank", - "base": null, - "reason": "unclassified" - }, - { - "input": "blob:file://host/path", - "base": null, - "reason": "unclassified" - }, - { - "input": "blob:ftp://host/path", - "base": null, - "reason": "unclassified" - }, - { - "input": "blob:ws://example.org/", - "base": null, - "reason": "unclassified" - }, - { - "input": "blob:wss://example.org/", - "base": null, - "reason": "unclassified" - }, - { - "input": "blob:http%3a//example.org/", - "base": null, - "reason": "unclassified" - }, { "input": "http://0x7f.0.0.0x7g", "base": null, @@ -3224,31 +2949,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "a", - "base": null, - "reason": "unclassified" - }, - { - "input": "a/", - "base": null, - "reason": "unclassified" - }, - { - "input": "a//", - "base": null, - "reason": "unclassified" - }, - { - "input": "test-a-colon.html", - "base": "a:", - "reason": "unclassified" - }, - { - "input": "test-a-colon-b.html", - "base": "a:b", - "reason": "unclassified" - }, { "input": "test-a-colon-slash.html", "base": "a:/", @@ -3294,11 +2994,6 @@ "base": "file:///some/dir/bar.html", "reason": "unclassified" }, - { - "input": "a1234567890-+.:foo/bar", - "base": "http://example.com/dir/file", - "reason": "unclassified" - }, { "input": "file://a­b/p", "base": null, @@ -3334,11 +3029,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "non-special:cannot-be-a-base-url-!\"$%&'()*+,-.;<=>@[\\]^_`{|}~@/", - "base": null, - "reason": "unclassified" - }, { "input": "https://www.example.com/path{path.html?query'=query#fragment<fragment", "base": null, @@ -3399,36 +3089,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "abc:rootless", - "base": "abc://host/path", - "reason": "unclassified" - }, - { - "input": "abc:rootless", - "base": "abc:/path", - "reason": "unclassified" - }, - { - "input": "abc:rootless", - "base": "abc:path", - "reason": "unclassified" - }, - { - "input": "abc:/rooted", - "base": "abc://host/path", - "reason": "unclassified" - }, - { - "input": "#", - "base": null, - "reason": "unclassified" - }, - { - "input": "?", - "base": null, - "reason": "unclassified" - }, { "input": "http://1.2.3.4.5", "base": "http://other.com/", @@ -3659,11 +3319,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "", - "base": null, - "reason": "unclassified" - }, { "input": "https://example.com/\"quoted\"", "base": null, @@ -3684,16 +3339,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "constructor:example", - "base": null, - "reason": "unclassified" - }, - { - "input": "constructor:/example", - "base": null, - "reason": "unclassified" - }, { "input": "constructor://HOST:80", "base": null, @@ -3994,31 +3639,6 @@ "base": "file:///", "reason": "unclassified" }, - { - "input": "non-special:\\\\opaque", - "base": null, - "reason": "unclassified" - }, - { - "input": "non-special:\\\\opaque/path", - "base": null, - "reason": "unclassified" - }, - { - "input": "non-special:\\\\opaque\\path", - "base": null, - "reason": "unclassified" - }, - { - "input": "non-special:\\/opaque", - "base": null, - "reason": "unclassified" - }, - { - "input": "non-special:/\\path", - "base": null, - "reason": "unclassified" - }, { "input": "non-special://host\\a", "base": null, From 551c558ec0b01f8b085bc6bbbb781b18dae86142 Mon Sep 17 00:00:00 2001 From: jinroq Date: Tue, 3 Nov 2026 18:10:59 +0900 Subject: [PATCH 05/74] Parse the authority in URI::WHATWG_Parser#split Follow the URL Standard's authority-related states: * For special schemes, any run of "/" or "\" after the scheme is skipped (special authority slashes / ignore slashes states). Other schemes need exactly "//" to have an authority. * The authority ends at "/", "?", "#", or for special schemes "\". * The last "@" ends the userinfo; earlier ones become "%40". The first ":" separates the username from the password. Empty parts are omitted as the URL serializer does. * The first ":" outside "[...]" separates the host from the port. * A missing host is an error for special schemes, after a userinfo, or before a port. Other schemes may have an empty host. file URLs keep an interim treatment until the file states are implemented: exactly two leading slashes start a host, which may be empty. 84 more WPT urltestdata cases pass and are removed from the exclusions. Co-Authored-By: Claude Opus 5.5 --- lib/uri/whatwg_parser.rb | 70 ++++- test/uri/test_whatwg_parser.rb | 160 ++++++++++ test/wpt/urltestdata_exclusions.json | 420 --------------------------- 3 files changed, 224 insertions(+), 426 deletions(-) diff --git a/lib/uri/whatwg_parser.rb b/lib/uri/whatwg_parser.rb index 8354e9d..5665728 100644 --- a/lib/uri/whatwg_parser.rb +++ b/lib/uri/whatwg_parser.rb @@ -18,12 +18,23 @@ def split(uri) # :nodoc: scheme, rest = parse_scheme(uri) - if SPECIAL_SCHEMES.key?(scheme) - split_hierarchical(scheme, rest) + if scheme == "file" + # Approximates file state, file slash state and file host state + # until they are implemented: exactly two leading "/" or "\\" + # start a host, which may be empty. + if rest.match?(FILE_SLASHES) + split_authority(scheme, rest[2..-1], true, host_required: false) + else + [scheme, nil, nil, nil, nil, rest, nil, nil, nil] + end + elsif SPECIAL_SCHEMES.key?(scheme) + # special authority slashes state and special authority ignore + # slashes state: skip any run of "/" or "\\". + split_authority(scheme, rest.sub(SPECIAL_AUTHORITY_SLASHES, ""), true) elsif rest.start_with?("/") # path or authority state if rest.start_with?("//") - split_hierarchical(scheme, rest) + split_authority(scheme, rest[2..-1], false) else [scheme, nil, nil, nil, nil, rest, nil, nil, nil] end @@ -88,6 +99,11 @@ def unescape(str, escaped = nil) # :nodoc: # ASCII alphanumerics, "+", "-" or ".", up to the first ":". SCHEME = /\A[A-Za-z][A-Za-z0-9+\-.]*:/ # :nodoc: + SPECIAL_AUTHORITY_SLASHES = %r{\A[/\\]*} # :nodoc: + FILE_SLASHES = %r{\A[/\\]{2}} # :nodoc: + AUTHORITY_END = %r{[/?#]} # :nodoc: + SPECIAL_AUTHORITY_END = %r{[/?#\\]} # :nodoc: + NOT_C0_CONTROL_OR_SPACE = /[^\x00-\x20]/ # :nodoc: ASCII_TAB_OR_NEWLINE = "\t\n\r" # :nodoc: @@ -120,9 +136,51 @@ def parse_scheme(input) [scheme.chop.downcase, input[scheme.size..-1]] end - def split_hierarchical(scheme, rest) - authority, slash, path = rest.delete_prefix("//").partition("/") - [scheme, nil, authority, nil, nil, slash + path, nil, nil, nil] + # authority state and host state. +rest+ starts right after the + # slashes preceding the authority. + def split_authority(scheme, rest, special, host_required: special) + authority_end = rest.index(special ? SPECIAL_AUTHORITY_END : AUTHORITY_END) || rest.size + authority = rest[0, authority_end] + remainder = rest[authority_end..-1] + + userinfo, host_and_port = split_userinfo(authority) + host, port = split_host_and_port(host_and_port) + raise InvalidURIError, "missing host: #{rest.dump}" if host.empty? && (host_required || port) + + [scheme, userinfo, host, port, nil, remainder, nil, nil, nil] + end + + # authority state, on "@": the last "@" ends the userinfo, and every + # earlier one is part of it, as "%40". The first ":" separates the + # username from the password. Returns the userinfo as the URL + # serializer writes it (nil when both parts are empty), and the rest. + def split_userinfo(authority) + at = authority.rindex("@") or return [nil, authority] + host_and_port = authority[at + 1..-1] + raise InvalidURIError, "missing host after userinfo: #{authority.dump}" if host_and_port.empty? + + username, _, password = authority[0, at].gsub("@", "%40").partition(":") + userinfo = + if password.empty? + username.empty? ? nil : username + else + "#{username}:#{password}" + end + [userinfo, host_and_port] + end + + # host state: the first ":" outside "[...]" starts the port. + def split_host_and_port(host_and_port) + inside_brackets = false + host_and_port.each_char.with_index do |c, i| + case c + when "[" then inside_brackets = true + when "]" then inside_brackets = false + when ":" + return [host_and_port[0, i], host_and_port[i + 1..-1]] unless inside_brackets + end + end + [host_and_port, nil] end def convert_to_uri(uri) diff --git a/test/uri/test_whatwg_parser.rb b/test/uri/test_whatwg_parser.rb index 8e80c39..cac0529 100644 --- a/test/uri/test_whatwg_parser.rb +++ b/test/uri/test_whatwg_parser.rb @@ -438,4 +438,164 @@ def test_parse_non_special_opaque_round_trip assert_equal("foo:bar", URI::WHATWG_PARSER.parse("foo:bar").to_s) assert_equal("foo:", URI::WHATWG_PARSER.parse("foo:").to_s) end + + # --- authority ----------------------------------------------------- + # https://url.spec.whatwg.org/#special-authority-slashes-state + # https://url.spec.whatwg.org/#special-authority-ignore-slashes-state + # https://url.spec.whatwg.org/#path-or-authority-state + # https://url.spec.whatwg.org/#authority-state + # https://url.spec.whatwg.org/#host-state + + USERINFO, HOST, PORT, PATH, OPAQUE = 1, 2, 3, 5, 6 + + def test_split_special_authority_ignores_any_number_of_slashes + ["http:example.com/", "http:/example.com/", "http://example.com/", + "http:///example.com/", "http:////example.com/"].each do |input| + assert_equal("example.com", split(input)[HOST], input) + end + end + + def test_split_special_authority_treats_backslash_as_slash + ["http:\\\\example.com/", "http:/\\example.com/", "http:\\/example.com/", + "http:\\example.com/"].each do |input| + assert_equal("example.com", split(input)[HOST], input) + end + end + + def test_split_ignoring_slashes_applies_to_every_special_scheme + %w[https ws wss ftp].each do |scheme| + assert_equal("example.com", split("#{scheme}:example.com/")[HOST], scheme) + assert_equal("example.com", split("#{scheme}:\\\\example.com/")[HOST], scheme) + end + end + + def test_split_non_special_needs_exactly_two_slashes_for_authority + assert_equal([nil, "/host/x"], split("foo:/host/x").values_at(HOST, PATH)) + assert_equal(["", "/x"], split("foo:///x").values_at(HOST, PATH)) + assert_equal(["host", "/x"], split("foo://host/x").values_at(HOST, PATH)) + end + + def test_split_non_special_does_not_treat_backslash_as_slash + assert_equal([nil, "\\\\host"], split("foo:\\\\host").values_at(HOST, OPAQUE)) + assert_equal([nil, "/\\host"], split("foo:/\\host").values_at(HOST, PATH)) + end + + def test_split_special_authority_ends_at_slash_question_hash_or_backslash + %w[/ ? # \\].each do |c| + assert_equal("host", split("http://host#{c}x")[HOST], c) + end + end + + def test_split_non_special_authority_ends_at_slash_question_or_hash + %w[/ ? #].each do |c| + assert_equal("host", split("foo://host#{c}x")[HOST], c) + end + end + + def test_split_authority_at_end_of_input + assert_equal("host", split("http://host")[HOST]) + assert_equal("host", split("foo://host")[HOST]) + end + + def test_split_userinfo + assert_equal(["user:pass", "host"], split("http://user:pass@host/").values_at(USERINFO, HOST)) + end + + def test_split_userinfo_username_only + assert_equal("user", split("http://user@host/")[USERINFO]) + end + + def test_split_userinfo_empty_password_is_dropped + assert_equal("user", split("http://user:@host/")[USERINFO]) + end + + def test_split_userinfo_password_only + assert_equal(":pass", split("http://:pass@host/")[USERINFO]) + end + + def test_split_userinfo_empty_is_nil + assert_nil(split("http://@host/")[USERINFO]) + assert_nil(split("http://:@host/")[USERINFO]) + end + + def test_split_userinfo_splits_at_last_at_sign + # Every "@" but the last one belongs to the userinfo, as "%40". + assert_equal(["a%40b", "host"], split("http://a@b@host/").values_at(USERINFO, HOST)) + assert_equal("a%40b%40c", split("http://a@b@c@host/")[USERINFO]) + end + + def test_split_userinfo_splits_password_at_first_colon + assert_equal("a%40b:c", split("http://a@b:c@host/")[USERINFO]) + end + + def test_split_userinfo_in_non_special_url + assert_equal(["user:pass", "host"], split("foo://user:pass@host/").values_at(USERINFO, HOST)) + end + + def test_split_at_sign_after_authority_is_not_userinfo + ["http://host/a@b", "http://host?a@b", "http://host#a@b"].each do |input| + assert_equal([nil, "host"], split(input).values_at(USERINFO, HOST), input) + end + end + + def test_split_backslash_ends_special_authority_before_at_sign + assert_equal([nil, "user"], split("http://user\\@host/").values_at(USERINFO, HOST)) + end + + def test_split_host_and_port + assert_equal(["host", "8080"], split("http://host:8080/").values_at(HOST, PORT)) + assert_equal(["host", "8080"], split("http://u:p@host:8080/").values_at(HOST, PORT)) + end + + def test_split_without_port + assert_nil(split("http://host/")[PORT]) + end + + def test_split_colon_inside_brackets_is_not_port_delimiter + assert_equal(["[::1]", "8080"], split("http://[::1]:8080/").values_at(HOST, PORT)) + assert_equal(["[::1]", nil], split("http://[::1]/").values_at(HOST, PORT)) + end + + def test_split_brackets_in_userinfo_do_not_affect_port + assert_equal(["u[", "host", "80"], split("http://u[@host:80/").values_at(USERINFO, HOST, PORT)) + end + + def test_split_special_url_needs_host + ["http://", "http:///", "http:", "http:/", "http://?q", "http://#f", "http:\\\\"].each do |input| + assert_raise(URI::InvalidURIError, input) { split(input) } + end + end + + def test_split_userinfo_without_host_fails + ["http://user@/", "http://@/", "http://user@", "http://u:p@", "foo://@", "foo://user@/"].each do |input| + assert_raise(URI::InvalidURIError, input) { split(input) } + end + end + + def test_split_port_without_host_fails + ["http://:80/", "foo://:80/", "http://u@:80/"].each do |input| + assert_raise(URI::InvalidURIError, input) { split(input) } + end + end + + def test_split_non_special_url_may_have_empty_host + assert_equal("", split("foo://")[HOST]) + assert_equal("", split("foo:///")[HOST]) + assert_equal("", split("foo://?q")[HOST]) + end + + def test_split_file_host_may_be_empty + # Interim behaviour until the file states are implemented. + assert_equal(["", "/tmp/a"], split("file:///tmp/a").values_at(HOST, PATH)) + assert_equal(["host", "/a"], split("file://host/a").values_at(HOST, PATH)) + assert_equal(["host", "/a"], split("file:\\\\host/a").values_at(HOST, PATH)) + assert_equal([nil, "/a"], split("file:/a").values_at(HOST, PATH)) + end + + def test_split_authority_in_linear_time + pre = ->(n) { "http:" + "/" * n + "a@" * n + "host/" } + assert_linear_performance((1..4).map { |i| 10**i }, pre: pre) do |uri| + split(uri) + end + end end diff --git a/test/wpt/urltestdata_exclusions.json b/test/wpt/urltestdata_exclusions.json index 10f10cf..646f2c2 100644 --- a/test/wpt/urltestdata_exclusions.json +++ b/test/wpt/urltestdata_exclusions.json @@ -19,16 +19,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "non-special://test:@test/x", - "base": null, - "reason": "unclassified" - }, - { - "input": "non-special://:@test/x", - "base": null, - "reason": "unclassified" - }, { "input": "http:foo.com", "base": "http://example.org/foo/bar", @@ -54,26 +44,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "http://f:/c", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "http://f:0/c", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "http://f:00000000000000/c", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "http://f:00000000000000000000080/c", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, { "input": "http://f:b/c", "base": "http://example.org/foo/bar", @@ -84,11 +54,6 @@ "base": "http://example.org/foo/bar", "reason": "unclassified" }, - { - "input": "http://f:\n/c", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, { "input": "http://f:fifty-two/c", "base": "http://example.org/foo/bar", @@ -214,11 +179,6 @@ "base": "http://example.org/foo/bar", "reason": "unclassified" }, - { - "input": "http://a:b@c:29/d", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, { "input": "http://é@é", "base": null, @@ -244,11 +204,6 @@ "base": "http://example.org/foo/bar", "reason": "unclassified" }, - { - "input": "http://foo.com:b@d/", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, { "input": "http://foo.com/\\@", "base": "http://example.org/foo/bar", @@ -364,11 +319,6 @@ "base": "http://example.org/foo/bar", "reason": "unclassified" }, - { - "input": "https:/example.com/", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, { "input": "file://example:1/", "base": null, @@ -389,16 +339,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "ws:/example.com/", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "wss:/example.com/", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, { "input": "mailto:/example.com/", "base": "http://example.org/foo/bar", @@ -679,51 +619,16 @@ "base": null, "reason": "unclassified" }, - { - "input": "http://user:pass@/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://%25DOMAIN:foobar@foodomain.com/", - "base": null, - "reason": "unclassified" - }, { "input": "http:\\\\www.google.com\\foo", "base": null, "reason": "unclassified" }, - { - "input": "http://foo:80/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://foo:81/", - "base": null, - "reason": "unclassified" - }, - { - "input": "httpa://foo:80/", - "base": null, - "reason": "unclassified" - }, { "input": "http://foo:-80/", "base": null, "reason": "unclassified" }, - { - "input": "https://foo:443/", - "base": null, - "reason": "unclassified" - }, - { - "input": "https://foo:80/", - "base": null, - "reason": "unclassified" - }, { "input": "ftp://foo:21/", "base": null, @@ -734,81 +639,11 @@ "base": null, "reason": "unclassified" }, - { - "input": "gopher://foo:70/", - "base": null, - "reason": "unclassified" - }, - { - "input": "gopher://foo:443/", - "base": null, - "reason": "unclassified" - }, - { - "input": "ws://foo:80/", - "base": null, - "reason": "unclassified" - }, - { - "input": "ws://foo:81/", - "base": null, - "reason": "unclassified" - }, - { - "input": "ws://foo:443/", - "base": null, - "reason": "unclassified" - }, - { - "input": "ws://foo:815/", - "base": null, - "reason": "unclassified" - }, - { - "input": "wss://foo:80/", - "base": null, - "reason": "unclassified" - }, - { - "input": "wss://foo:81/", - "base": null, - "reason": "unclassified" - }, - { - "input": "wss://foo:443/", - "base": null, - "reason": "unclassified" - }, - { - "input": "wss://foo:815/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http:/example.com/", - "base": null, - "reason": "unclassified" - }, { "input": "ftp:/example.com/", "base": null, "reason": "unclassified" }, - { - "input": "https:/example.com/", - "base": null, - "reason": "unclassified" - }, - { - "input": "ws:/example.com/", - "base": null, - "reason": "unclassified" - }, - { - "input": "wss:/example.com/", - "base": null, - "reason": "unclassified" - }, { "input": "mailto:/example.com/", "base": null, @@ -879,56 +714,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "http:/:@/www.example.com", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://user@/www.example.com", - "base": null, - "reason": "unclassified" - }, - { - "input": "http:@/www.example.com", - "base": null, - "reason": "unclassified" - }, - { - "input": "http:/@/www.example.com", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://@/www.example.com", - "base": null, - "reason": "unclassified" - }, - { - "input": "https:@/www.example.com", - "base": null, - "reason": "unclassified" - }, - { - "input": "http:a:b@/www.example.com", - "base": null, - "reason": "unclassified" - }, - { - "input": "http:/a:b@/www.example.com", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://a:b@/www.example.com", - "base": null, - "reason": "unclassified" - }, - { - "input": "http::@/www.example.com", - "base": null, - "reason": "unclassified" - }, { "input": "http:a:@www.example.com", "base": null, @@ -949,21 +734,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "http:@:www.example.com", - "base": null, - "reason": "unclassified" - }, - { - "input": "http:/@:www.example.com", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://@:www.example.com", - "base": null, - "reason": "unclassified" - }, { "input": "http://:@www.example.com", "base": null, @@ -1384,11 +1154,6 @@ "base": "test:test?test", "reason": "unclassified" }, - { - "input": "https://@test@test@example:800/", - "base": "http://doesnotmatter/", - "reason": "unclassified" - }, { "input": "https://@@@example", "base": "http://doesnotmatter/", @@ -1534,26 +1299,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "sc://@/", - "base": null, - "reason": "unclassified" - }, - { - "input": "sc://te@s:t@/", - "base": null, - "reason": "unclassified" - }, - { - "input": "sc://:/", - "base": null, - "reason": "unclassified" - }, - { - "input": "sc://:12/", - "base": null, - "reason": "unclassified" - }, { "input": "x", "base": "sc://ñ", @@ -2064,21 +1809,11 @@ "base": null, "reason": "unclassified" }, - { - "input": "http://127.0.0.1:10100/relative_import.html", - "base": null, - "reason": "unclassified" - }, { "input": "http://facebook.com/?foo=%7B%22abc%22", "base": null, "reason": "unclassified" }, - { - "input": "https://localhost:3000/jqueryui@1.2.3", - "base": null, - "reason": "unclassified" - }, { "input": "h\tt\nt\rp://h\to\ns\rt:9\t0\n0\r0/p\ta\nt\rh?q\tu\ne\rry#f\tr\na\rg", "base": null, @@ -2099,11 +1834,6 @@ "base": "http://example.org/foo/bar", "reason": "unclassified" }, - { - "input": "http:", - "base": "https://example.org/foo/bar", - "reason": "unclassified" - }, { "input": "http://foo.bar/baz?qux#foo\bbar", "base": null, @@ -2364,11 +2094,6 @@ "base": "file:///test?test#test", "reason": "unclassified" }, - { - "input": "file:\\\\//", - "base": null, - "reason": "unclassified" - }, { "input": "file:\\\\\\\\", "base": null, @@ -2384,11 +2109,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "file:\\\\localhost//", - "base": null, - "reason": "unclassified" - }, { "input": "file://\\/localhost//cat", "base": null, @@ -2684,16 +2404,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "http://?", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://#", - "base": null, - "reason": "unclassified" - }, { "input": "http://f:4294967377/c", "base": "http://example.org/", @@ -2759,26 +2469,11 @@ "base": "sc://x/", "reason": "unclassified" }, - { - "input": "telnet://user:pass@foobar.com:23/", - "base": null, - "reason": "unclassified" - }, - { - "input": "ut2004://10.10.10.10:7777/Index.ut2", - "base": null, - "reason": "unclassified" - }, { "input": "redis://foo:bar@somehost:6379/0?baz=bam&qux=baz", "base": null, "reason": "unclassified" }, - { - "input": "rsync://foo@host:911/sup", - "base": null, - "reason": "unclassified" - }, { "input": "irc://myserver.com:6999/channel?passwd", "base": null, @@ -2869,11 +2564,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "non-special://[1:2::3]:80/", - "base": null, - "reason": "unclassified" - }, { "input": "non-special://[:80/", "base": null, @@ -3339,11 +3029,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "constructor://HOST:80", - "base": null, - "reason": "unclassified" - }, { "input": "data://example.com:8080/pathname?search#hash", "base": null, @@ -3354,11 +3039,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "data://:443", - "base": null, - "reason": "unclassified" - }, { "input": "data://test:test", "base": null, @@ -3379,11 +3059,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "javascript://:443", - "base": null, - "reason": "unclassified" - }, { "input": "javascript://test:test", "base": null, @@ -3419,11 +3094,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "intent://:443", - "base": null, - "reason": "unclassified" - }, { "input": "intent://test:test", "base": null, @@ -3444,11 +3114,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "urn://:443", - "base": null, - "reason": "unclassified" - }, { "input": "urn://test:test", "base": null, @@ -3469,11 +3134,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "turn://:443", - "base": null, - "reason": "unclassified" - }, { "input": "turn://test:test", "base": null, @@ -3494,11 +3154,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "stun://:443", - "base": null, - "reason": "unclassified" - }, { "input": "stun://test:test", "base": null, @@ -3509,81 +3164,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "w://x:0", - "base": null, - "reason": "unclassified" - }, - { - "input": "west://x:0", - "base": null, - "reason": "unclassified" - }, - { - "input": "android://x:0/a", - "base": null, - "reason": "unclassified" - }, - { - "input": "drivefs://x:0/a", - "base": null, - "reason": "unclassified" - }, - { - "input": "chromeos-steam://x:0/a", - "base": null, - "reason": "unclassified" - }, - { - "input": "steam://x:0/a", - "base": null, - "reason": "unclassified" - }, - { - "input": "materialized-view://x:0/a", - "base": null, - "reason": "unclassified" - }, - { - "input": "android-app://x:0", - "base": null, - "reason": "unclassified" - }, - { - "input": "chrome-distiller://x:0", - "base": null, - "reason": "unclassified" - }, - { - "input": "chrome-extension://x:0", - "base": null, - "reason": "unclassified" - }, - { - "input": "chrome-native://x:0", - "base": null, - "reason": "unclassified" - }, - { - "input": "chrome-resource://x:0", - "base": null, - "reason": "unclassified" - }, - { - "input": "chrome-search://x:0", - "base": null, - "reason": "unclassified" - }, - { - "input": "fuchsia-dir://x:0", - "base": null, - "reason": "unclassified" - }, - { - "input": "isolated-app://x:0", - "base": null, - "reason": "unclassified" - }, { "input": "///test", "base": "http://example.org/", From 75e22de49a21fec2071820dad3ccc37e97912c52 Mon Sep 17 00:00:00 2001 From: jinroq Date: Tue, 3 Nov 2026 18:14:33 +0900 Subject: [PATCH 06/74] Parse domains and opaque hosts in URI::WHATWG_Parser#split Follow the URL Standard's host parser: * A host of a special URL is a domain. It is percent-decoded, UTF-8 decoded (invalid sequences become U+FFFD) and ASCII-lowercased, and fails if it contains a forbidden domain code point. * A host of any other URL is an opaque host. It fails if it contains a forbidden host code point, and C0 controls and non-ASCII code points are percent-encoded. * A host starting with "[" must end with "]". Not implemented yet: IPv4 and IPv6 address parsing, and domain to ASCII (UTS #46) for non-ASCII domains, which are returned unchanged for now. 117 more WPT urltestdata cases pass and are removed from the exclusions. Co-Authored-By: Claude Opus 5.5 --- lib/uri/whatwg_parser.rb | 48 +++ test/uri/test_whatwg_parser.rb | 110 +++++ test/wpt/urltestdata_exclusions.json | 585 --------------------------- 3 files changed, 158 insertions(+), 585 deletions(-) diff --git a/lib/uri/whatwg_parser.rb b/lib/uri/whatwg_parser.rb index 5665728..f8d5045 100644 --- a/lib/uri/whatwg_parser.rb +++ b/lib/uri/whatwg_parser.rb @@ -104,6 +104,15 @@ def unescape(str, escaped = nil) # :nodoc: AUTHORITY_END = %r{[/?#]} # :nodoc: SPECIAL_AUTHORITY_END = %r{[/?#\\]} # :nodoc: + # https://url.spec.whatwg.org/#forbidden-host-code-point + FORBIDDEN_HOST_CODE_POINT = %r{[\x00\t\n\r #/:<>?@\[\\\]^|]} # :nodoc: + # https://url.spec.whatwg.org/#forbidden-domain-code-point + # (forbidden host code points, C0 controls, "%" and U+007F DELETE) + FORBIDDEN_DOMAIN_CODE_POINT = %r{[\x00-\x20#/:<>?@\[\\\]^|%\x7F]} # :nodoc: + # https://url.spec.whatwg.org/#c0-control-percent-encode-set + C0_CONTROL_PERCENT_ENCODE_SET = /[^\x20-\x7E]/ # :nodoc: + PERCENT_ENCODED_BYTE = /%[0-9A-Fa-f]{2}/ # :nodoc: + NOT_C0_CONTROL_OR_SPACE = /[^\x00-\x20]/ # :nodoc: ASCII_TAB_OR_NEWLINE = "\t\n\r" # :nodoc: @@ -146,6 +155,7 @@ def split_authority(scheme, rest, special, host_required: special) userinfo, host_and_port = split_userinfo(authority) host, port = split_host_and_port(host_and_port) raise InvalidURIError, "missing host: #{rest.dump}" if host.empty? && (host_required || port) + host = parse_host(host, special) unless host.empty? [scheme, userinfo, host, port, nil, remainder, nil, nil, nil] end @@ -183,6 +193,44 @@ def split_host_and_port(host_and_port) [host_and_port, nil] end + # host parser + def parse_host(input, special) + if input.start_with?("[") + raise InvalidURIError, "unterminated IPv6 address: #{input.dump}" unless input.end_with?("]") + return input # IPv6 parsing is not implemented yet. + end + return parse_opaque_host(input) unless special + + domain = percent_decode(input) + unless domain.ascii_only? + # Interim: domain to ASCII (UTS #46) is not implemented yet, so a + # non-ASCII domain is returned unchanged. + raise InvalidURIError, "invalid host: #{input.dump}" if input.match?(FORBIDDEN_HOST_CODE_POINT) + return input + end + + # domain to ASCII, for an ASCII domain with beStrict false. + ascii_domain = domain.downcase + raise InvalidURIError, "invalid host: #{input.dump}" if ascii_domain.match?(FORBIDDEN_DOMAIN_CODE_POINT) + ascii_domain + end + + # opaque-host parser + def parse_opaque_host(input) + raise InvalidURIError, "invalid host: #{input.dump}" if input.match?(FORBIDDEN_HOST_CODE_POINT) + utf8_percent_encode(input, C0_CONTROL_PERCENT_ENCODE_SET) + end + + # percent-decode, then UTF-8 decode without BOM (invalid sequences + # become U+FFFD). + def percent_decode(input) + input.b.gsub(PERCENT_ENCODED_BYTE) { $&[1, 2].hex.chr }.force_encoding(Encoding::UTF_8).scrub + end + + def utf8_percent_encode(input, encode_set) + input.gsub(encode_set) { |c| c.unpack("C*").map { |b| format("%%%02X", b) }.join } + end + def convert_to_uri(uri) if uri.is_a?(URI::Generic) uri diff --git a/test/uri/test_whatwg_parser.rb b/test/uri/test_whatwg_parser.rb index cac0529..5850c07 100644 --- a/test/uri/test_whatwg_parser.rb +++ b/test/uri/test_whatwg_parser.rb @@ -592,6 +592,116 @@ def test_split_file_host_may_be_empty assert_equal([nil, "/a"], split("file:/a").values_at(HOST, PATH)) end + # --- host: domain ------------------------------------------------- + # https://url.spec.whatwg.org/#concept-host-parser + # https://url.spec.whatwg.org/#concept-domain-to-ascii + + def test_split_domain_is_ascii_lowercased + assert_equal("example.com", split("http://EXAMPLE.COM/")[HOST]) + assert_equal("example.com", split("http://ExAmPlE.cOm/")[HOST]) + end + + def test_split_domain_is_percent_decoded + assert_equal("example.com", split("http://ex%61mple.com/")[HOST]) + assert_equal("example.com", split("http://ex%41mple.com/")[HOST]) + assert_equal("example.com", split("http://example%2ecom/")[HOST]) + assert_equal("example.com", split("http://example%2Ecom/")[HOST]) + end + + def test_split_domain_percent_decoded_to_forbidden_code_point_fails + %w[%25 %2F %20 %00 %3A %40 %3C %7C %7F %01].each do |encoded| + assert_raise(URI::InvalidURIError, encoded) { split("http://a#{encoded}b/") } + end + end + + def test_split_domain_with_invalid_percent_sequence_fails + # "%" not followed by two hex digits is left alone, and "%" is a + # forbidden domain code point. + ["http://a%zzb/", "http://a%/", "http://a%4/", "http://a%4g/"].each do |input| + assert_raise(URI::InvalidURIError, input) { split(input) } + end + end + + def test_split_domain_with_forbidden_code_point_fails + ["\x00", " ", "<", ">", "[", "]", "^", "|", "%", "\x01", "\x1F", "\x7F"].each do |c| + assert_raise(URI::InvalidURIError, c.dump) { split("http://a#{c}b/") } + end + end + + def test_split_domain_code_point_boundaries + # U+0020 SPACE and U+007F DELETE are forbidden; U+0021 "!" and U+007E + # "~" next to them are not. + assert_equal("a!b", split("http://a!b/")[HOST]) + assert_equal("a~b", split("http://a~b/")[HOST]) + end + + def test_split_domain_allows_other_ascii_punctuation + assert_equal("a$&'()*+,;=_-b", split("http://a$&'()*+,;=_-b/")[HOST]) + end + + def test_split_domain_with_empty_labels + assert_equal(".", split("http://./")[HOST]) + assert_equal("..", split("http://../")[HOST]) + assert_equal("a..b", split("http://a..b/")[HOST]) + assert_equal("example.com.", split("http://example.com./")[HOST]) + end + + def test_split_domain_rules_apply_to_every_special_scheme + %w[https ws wss ftp].each do |scheme| + assert_equal("example.com", split("#{scheme}://EX%41MPLE.com/")[HOST], scheme) + assert_raise(URI::InvalidURIError, scheme) { split("#{scheme}://a b/") } + end + end + + def test_split_ascii_xn_label_is_lowercased + # Interim: Punycode validation of "xn--" labels is not implemented. + assert_equal("xn--9ca.example", split("http://XN--9CA.example/")[HOST]) + end + + def test_split_non_ascii_domain_is_left_as_is + # Interim behaviour until domain to ASCII (UTS #46) is implemented. + assert_equal("é.example", split("http://é.example/")[HOST]) + assert_equal("%C3%A9.example", split("http://%C3%A9.example/")[HOST]) + end + + def test_split_bracketed_host_must_end_with_bracket + ["http://[::1/", "http://[/", "http://[::1]x/", "foo://[::1/"].each do |input| + assert_raise(URI::InvalidURIError, input) { split(input) } + end + end + + # --- host: opaque host --------------------------------------------- + # https://url.spec.whatwg.org/#concept-opaque-host-parser + + def test_split_opaque_host_is_not_lowercased + assert_equal("EXAMPLE.com", split("foo://EXAMPLE.com/")[HOST]) + end + + def test_split_opaque_host_is_not_percent_decoded + assert_equal("ex%61mple", split("foo://ex%61mple/")[HOST]) + assert_equal("a%zzb", split("foo://a%zzb/")[HOST]) + assert_equal("a%", split("foo://a%/")[HOST]) + end + + def test_split_opaque_host_with_forbidden_host_code_point_fails + ["\x00", " ", "<", ">", "[", "]", "^", "|"].each do |c| + assert_raise(URI::InvalidURIError, c.dump) { split("foo://a#{c}b/") } + end + end + + def test_split_opaque_host_percent_encodes_c0_controls_and_non_ascii + assert_equal("a%01b", split("foo://a\x01b/")[HOST]) + assert_equal("a%1Fb", split("foo://a\x1Fb/")[HOST]) + assert_equal("a%7Fb", split("foo://a\x7Fb/")[HOST]) + assert_equal("a%C2%80b", split("foo://a\u0080b/")[HOST]) + assert_equal("%C3%A9", split("foo://é/")[HOST]) + assert_equal("%F0%9F%98%80", split("foo://\u{1F600}/")[HOST]) + end + + def test_split_opaque_host_keeps_printable_ascii + assert_equal("a!~%$b", split("foo://a!~%$b/")[HOST]) + end + def test_split_authority_in_linear_time pre = ->(n) { "http:" + "/" * n + "a@" * n + "host/" } assert_linear_performance((1..4).map { |i| 10**i }, pre: pre) do |uri| diff --git a/test/wpt/urltestdata_exclusions.json b/test/wpt/urltestdata_exclusions.json index 646f2c2..aca0aa1 100644 --- a/test/wpt/urltestdata_exclusions.json +++ b/test/wpt/urltestdata_exclusions.json @@ -329,11 +329,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "file://example%/", - "base": null, - "reason": "unclassified" - }, { "input": "file://[example]/", "base": null, @@ -829,16 +824,6 @@ "base": "http://other.com/", "reason": "unclassified" }, - { - "input": "http://example example.com", - "base": "http://other.com/", - "reason": "unclassified" - }, - { - "input": "http://Goo%20 goo%7C|.com", - "base": "http://other.com/", - "reason": "unclassified" - }, { "input": "http://[]", "base": "http://other.com/", @@ -989,26 +974,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "sc://faß.ExAmPlE/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://%zz%66%a.com", - "base": "http://other.com/", - "reason": "unclassified" - }, - { - "input": "http://%25", - "base": "http://other.com/", - "reason": "unclassified" - }, - { - "input": "http://hello%00", - "base": "http://other.com/", - "reason": "unclassified" - }, { "input": "http://%30%78%63%30%2e%30%32%35%30.01", "base": "http://other.com/", @@ -1024,21 +989,6 @@ "base": "http://other.com/", "reason": "unclassified" }, - { - "input": "http://%3g%78%63%30%2e%30%32%35%30%2E.01", - "base": "http://other.com/", - "reason": "unclassified" - }, - { - "input": "http://192.168.0.1 hello", - "base": "http://other.com/", - "reason": "unclassified" - }, - { - "input": "https://x x:12", - "base": null, - "reason": "unclassified" - }, { "input": "http://0Xc0.0250.01", "base": "http://other.com/", @@ -1089,11 +1039,6 @@ "base": "http://other.com/", "reason": "unclassified" }, - { - "input": "http://%5B::1]", - "base": "http://other.com/", - "reason": "unclassified" - }, { "input": "http://foo:💩@example.com/bar", "base": "http://other.com/", @@ -1294,11 +1239,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "sc://ñ.test/", - "base": null, - "reason": "unclassified" - }, { "input": "x", "base": "sc://ñ", @@ -1309,476 +1249,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "sc://a\u0000b/", - "base": null, - "reason": "unclassified" - }, - { - "input": "sc://a b/", - "base": null, - "reason": "unclassified" - }, - { - "input": "sc://ab", - "base": null, - "reason": "unclassified" - }, - { - "input": "sc://a[b/", - "base": null, - "reason": "unclassified" - }, - { - "input": "sc://a\\b/", - "base": null, - "reason": "unclassified" - }, - { - "input": "sc://a]b/", - "base": null, - "reason": "unclassified" - }, - { - "input": "sc://a^b", - "base": null, - "reason": "unclassified" - }, - { - "input": "sc://a|b/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://a\u0000b/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://a\u0001b/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://a\u0002b/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://a\u0003b/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://a\u0004b/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://a\u0005b/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://a\u0006b/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://a\u0007b/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://a\bb/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://a\u000bb/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://a\fb/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://a\u000eb/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://a\u000fb/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://a\u0010b/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://a\u0011b/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://a\u0012b/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://a\u0013b/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://a\u0014b/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://a\u0015b/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://a\u0016b/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://a\u0017b/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://a\u0018b/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://a\u0019b/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://a\u001ab/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://a\u001bb/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://a\u001cb/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://a\u001db/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://a\u001eb/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://a\u001fb/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://a b/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://a%b/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ab", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://a[b/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://a]b/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://a^b", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://a|b/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ab/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ho%00st/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ho%01st/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ho%02st/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ho%03st/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ho%04st/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ho%05st/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ho%06st/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ho%07st/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ho%08st/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ho%09st/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ho%0Ast/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ho%0Bst/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ho%0Cst/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ho%0Dst/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ho%0Est/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ho%0Fst/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ho%10st/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ho%11st/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ho%12st/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ho%13st/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ho%14st/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ho%15st/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ho%16st/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ho%17st/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ho%18st/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ho%19st/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ho%1Ast/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ho%1Bst/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ho%1Cst/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ho%1Dst/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ho%1Est/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ho%1Fst/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ho%20st/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ho%23st/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ho%25st/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ho%2Fst/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ho%3Ast/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ho%3Cst/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ho%3Est/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ho%3Fst/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ho%40st/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ho%5Bst/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ho%5Cst/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ho%5Dst/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ho%7Cst/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://ho%7Fst/", - "base": null, - "reason": "unclassified" - }, - { - "input": "sc://\u0001\u0002\u0003\u0004\u0005\u0006\u0007\b\u000b\f\u000e\u000f\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001a\u001b\u001c\u001d\u001e\u001f!\"$%&'()*+,-.;=_`{}~/", - "base": null, - "reason": "unclassified" - }, { "input": "ftp://example.com%80/", "base": null, @@ -1979,41 +1449,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "file://%43%3A", - "base": null, - "reason": "unclassified" - }, - { - "input": "file://%43%7C", - "base": null, - "reason": "unclassified" - }, - { - "input": "file://%43|", - "base": null, - "reason": "unclassified" - }, - { - "input": "file://C%7C", - "base": null, - "reason": "unclassified" - }, - { - "input": "file://%43%7C/", - "base": null, - "reason": "unclassified" - }, - { - "input": "https://%43%7C/", - "base": null, - "reason": "unclassified" - }, - { - "input": "asdf://%43|/", - "base": null, - "reason": "unclassified" - }, { "input": "pix/submit.gif", "base": "file:///C:/Users/Domenic/Dropbox/GitHub/tmpvar/jsdom/test/level2/html/files/anchor.html", @@ -2419,11 +1854,6 @@ "base": "http://example.org/", "reason": "unclassified" }, - { - "input": "sc://ñ", - "base": null, - "reason": "unclassified" - }, { "input": "sc://ñ?x", "base": null, @@ -2564,11 +1994,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "non-special://[:80/", - "base": null, - "reason": "unclassified" - }, { "input": "http://0x7f.0.0.0x7g", "base": null, @@ -2929,11 +2354,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "https://\u0000y", - "base": null, - "reason": "unclassified" - }, { "input": "https://x/\u0000y", "base": null, @@ -3219,11 +2639,6 @@ "base": "file:///", "reason": "unclassified" }, - { - "input": "non-special://host\\a", - "base": null, - "reason": "unclassified" - }, { "input": "\\a", "base": "foo://foo/a", From cee99798525f9c036cb61fac8759e533f79cb0e1 Mon Sep 17 00:00:00 2001 From: jinroq Date: Tue, 3 Nov 2026 18:18:04 +0900 Subject: [PATCH 07/74] Parse IPv4 hosts in URI::WHATWG_Parser#split A domain that ends in a number is parsed as an IPv4 address, following the URL Standard's ends in a number checker, IPv4 parser and IPv4 number parser: * Each part is decimal, octal ("0" prefix) or hex ("0x"/"0X" prefix). * Up to four parts; the last one fills the remaining bytes. * Any part but the last over 255, or a last part too large for the remaining bytes, is an error. * A single trailing "." is ignored. The address is serialized in dotted decimal. Digits are checked with a regexp before conversion, since String#to_i also accepts "_", and a number with more significant digits than 2**32 - 1 has is rejected without converting it. Opaque hosts are not parsed as IPv4. 38 more WPT urltestdata cases pass and are removed from the exclusions. Co-Authored-By: Claude Opus 5.5 --- lib/uri/whatwg_parser.rb | 69 ++++++++++ test/uri/test_whatwg_parser.rb | 146 ++++++++++++++++++++ test/wpt/urltestdata_exclusions.json | 190 --------------------------- 3 files changed, 215 insertions(+), 190 deletions(-) diff --git a/lib/uri/whatwg_parser.rb b/lib/uri/whatwg_parser.rb index f8d5045..dd85264 100644 --- a/lib/uri/whatwg_parser.rb +++ b/lib/uri/whatwg_parser.rb @@ -113,6 +113,16 @@ def unescape(str, escaped = nil) # :nodoc: C0_CONTROL_PERCENT_ENCODE_SET = /[^\x20-\x7E]/ # :nodoc: PERCENT_ENCODED_BYTE = /%[0-9A-Fa-f]{2}/ # :nodoc: + ASCII_DIGITS = /\A[0-9]+\z/ # :nodoc: + IPV4_NUMBER_DIGITS = { + 8 => /\A[0-7]+\z/, + 10 => /\A[0-9]+\z/, + 16 => /\A[0-9A-Fa-f]+\z/, + }.freeze # :nodoc: + LEADING_ZEROS = /\A0+/ # :nodoc: + # 2**32 - 1 has 11 digits in octal, 10 in decimal and 8 in hex. + IPV4_NUMBER_MAX_DIGITS = 11 # :nodoc: + NOT_C0_CONTROL_OR_SPACE = /[^\x00-\x20]/ # :nodoc: ASCII_TAB_OR_NEWLINE = "\t\n\r" # :nodoc: @@ -212,9 +222,68 @@ def parse_host(input, special) # domain to ASCII, for an ASCII domain with beStrict false. ascii_domain = domain.downcase raise InvalidURIError, "invalid host: #{input.dump}" if ascii_domain.match?(FORBIDDEN_DOMAIN_CODE_POINT) + return serialize_ipv4(parse_ipv4(ascii_domain)) if ends_in_a_number?(ascii_domain) ascii_domain end + # ends in a number checker + def ends_in_a_number?(input) + parts = input.split(".", -1) + if parts.last.empty? + return false if parts.size == 1 + parts.pop + end + last = parts.last + return true if last.match?(ASCII_DIGITS) + !parse_ipv4_number(last).nil? + end + + # IPv4 parser + def parse_ipv4(input) + parts = input.split(".", -1) + parts.pop if parts.last.empty? && parts.size > 1 + raise InvalidURIError, "invalid IPv4 address: #{input.dump}" if parts.size > 4 + + numbers = parts.map do |part| + parse_ipv4_number(part) or raise InvalidURIError, "invalid IPv4 address: #{input.dump}" + end + last = numbers.pop + if numbers.any? { |n| n > 255 } || last >= 256**(4 - numbers.size) + raise InvalidURIError, "invalid IPv4 address: #{input.dump}" + end + + numbers.each_with_index.inject(last) { |ipv4, (n, i)| ipv4 + n * 256**(3 - i) } + end + + # IPv4 number parser. Returns nil on failure. + # + # Any value of 2**32 or more makes the IPv4 parser fail, so a number + # with more significant digits than 2**32 - 1 has in any radix is + # returned as 2**32 instead of being converted. + def parse_ipv4_number(input) + return nil if input.empty? + + radix = 10 + if input.size >= 2 && input.start_with?("0x", "0X") + input = input[2..-1] + radix = 16 + elsif input.size >= 2 && input.start_with?("0") + input = input[1..-1] + radix = 8 + end + return 0 if input.empty? + return nil unless input.match?(IPV4_NUMBER_DIGITS.fetch(radix)) + + digits = input.sub(LEADING_ZEROS, "") + return 2**32 if digits.size > IPV4_NUMBER_MAX_DIGITS + digits.to_i(radix) + end + + # IPv4 serializer + def serialize_ipv4(address) + [24, 16, 8, 0].map { |shift| (address >> shift) & 0xFF }.join(".") + end + # opaque-host parser def parse_opaque_host(input) raise InvalidURIError, "invalid host: #{input.dump}" if input.match?(FORBIDDEN_HOST_CODE_POINT) diff --git a/test/uri/test_whatwg_parser.rb b/test/uri/test_whatwg_parser.rb index 5850c07..1d9f5e6 100644 --- a/test/uri/test_whatwg_parser.rb +++ b/test/uri/test_whatwg_parser.rb @@ -670,6 +670,152 @@ def test_split_bracketed_host_must_end_with_bracket end end + # --- host: IPv4 --------------------------------------------------- + # https://url.spec.whatwg.org/#ends-in-a-number-checker + # https://url.spec.whatwg.org/#concept-ipv4-parser + # https://url.spec.whatwg.org/#ipv4-number-parser + # https://url.spec.whatwg.org/#concept-ipv4-serializer + + def host(input) + split(input)[HOST] + end + + def assert_ipv4_failure(*inputs) + inputs.each do |input| + assert_raise(URI::InvalidURIError, input) { split(input) } + end + end + + def test_split_ipv4_dotted_decimal + assert_equal("192.168.0.1", host("http://192.168.0.1/")) + assert_equal("0.0.0.0", host("http://0.0.0.0/")) + assert_equal("255.255.255.255", host("http://255.255.255.255/")) + end + + def test_split_ipv4_octal_and_hex_parts + assert_equal("192.168.0.1", host("http://0300.0250.0.01/")) + assert_equal("192.168.0.1", host("http://0xc0.0xA8.0X0.0x1/")) + assert_equal("192.168.0.1", host("http://0xC0.0250.0.1/")) + end + + def test_split_ipv4_number_prefix_only + # "0x" alone is 0; "0" and "00" are 0. + assert_equal("0.0.0.0", host("http://0x/")) + assert_equal("0.0.0.0", host("http://0X/")) + assert_equal("0.0.0.0", host("http://0/")) + assert_equal("0.0.0.0", host("http://00/")) + assert_equal("1.0.0.0", host("http://1.0x.0.00/")) + end + + def test_split_ipv4_one_part + assert_equal("192.168.0.1", host("http://3232235521/")) + assert_equal("192.168.0.1", host("http://0xc0a80001/")) + end + + def test_split_ipv4_two_parts + # The last part fills the remaining three bytes. + assert_equal("192.168.0.1", host("http://192.11010049/")) + end + + def test_split_ipv4_three_parts + # The last part fills the remaining two bytes. + assert_equal("192.168.0.1", host("http://192.168.1/")) + end + + def test_split_ipv4_trailing_dot_is_ignored_once + assert_equal("1.2.3.4", host("http://1.2.3.4./")) + assert_equal("0.0.0.1", host("http://1./")) + # With two trailing dots the last label is still empty, so it does not + # end in a number and is a domain. + assert_equal("1.2.3.4..", host("http://1.2.3.4../")) + end + + def test_split_ipv4_more_than_four_parts_fails + assert_ipv4_failure("http://1.2.3.4.5/", "http://1.2.3.4.5./", "http://0.0.0.0.0/") + end + + def test_split_ipv4_empty_part_fails + assert_ipv4_failure("http://1..2/", "http://.1/", "http://1.2..3/") + end + + def test_split_ipv4_non_last_part_boundaries + assert_equal("255.0.0.0", host("http://255.0.0.0/")) + assert_ipv4_failure("http://256.0.0.0/", "http://0.256.0.0/", "http://0.0.256.0/") + assert_ipv4_failure("http://0x100.0.0.0/", "http://0400.0.0.0/") + end + + def test_split_ipv4_last_part_boundaries + assert_equal("0.0.0.255", host("http://0.0.0.255/")) + assert_ipv4_failure("http://0.0.0.256/") + + assert_equal("1.2.255.255", host("http://1.2.65535/")) + assert_ipv4_failure("http://1.2.65536/") + + assert_equal("1.255.255.255", host("http://1.16777215/")) + assert_ipv4_failure("http://1.16777216/") + + assert_equal("255.255.255.255", host("http://4294967295/")) + assert_equal("255.255.255.255", host("http://0xffffffff/")) + assert_equal("255.255.255.255", host("http://037777777777/")) + assert_ipv4_failure("http://4294967296/", "http://0x100000000/", "http://040000000000/") + end + + def test_split_ipv4_huge_numbers_fail + assert_ipv4_failure("http://99999999999999999999999999/", "http://1.2.3.99999999999999999999/", + "http://0x#{"f" * 100}/") + end + + def test_split_ipv4_leading_zeros + assert_equal("0.0.0.1", host("http://#{"0" * 1000}1/")) + assert_equal("0.0.0.1", host("http://0x#{"0" * 1000}1/")) + end + + def test_split_ipv4_invalid_digits_fail + # "08" and "09" are octal; "+", "-", "_" and spaces are not digits. + assert_ipv4_failure("http://08/", "http://09/", "http://1.08/", "http://0xg.1/", "http://0x0x1.1/", + "http://+1.2.3.4/", "http://-1.2.3.4/", "http://1_0.1/", "http://1e1.1/") + end + + def test_split_ends_in_a_number_but_not_ipv4_fails + assert_ipv4_failure("http://example.1/", "http://foo.09/", "http://foo.0x/", "http://example.1./", + "http://foo.0x1f/") + end + + def test_split_not_ending_in_a_number_is_a_domain + assert_equal("1.example", host("http://1.example/")) + assert_equal("foo.0xg", host("http://foo.0xg/")) + assert_equal("1.2.3.4a", host("http://1.2.3.4a/")) + assert_equal("1..", host("http://1../")) + assert_equal("0x1.example", host("http://0x1.example/")) + end + + def test_split_ipv4_after_percent_decoding + assert_equal("1.2.3.4", host("http://%31.%32.%33.%34/")) + assert_equal("127.0.0.1", host("http://%30x7f.1/")) + end + + def test_split_ipv4_for_every_special_scheme + %w[https ws wss ftp].each do |scheme| + assert_equal("127.0.0.1", host("#{scheme}://0x7f.1/"), scheme) + end + end + + def test_split_opaque_host_is_not_parsed_as_ipv4 + assert_equal("0x7f.1", host("foo://0x7f.1/")) + assert_equal("1.2.3.08", host("foo://1.2.3.08/")) + end + + def test_parse_serializes_ipv4_host + assert_equal("http://127.0.0.1/", URI::WHATWG_PARSER.parse("http://0x7f.1/").to_s) + end + + def test_split_ipv4_in_linear_time + pre = ->(n) { "http://1.2.3." + "9" * n + "/" } + assert_linear_performance((2..5).map { |i| 10**i }, pre: pre) do |uri| + assert_raise(URI::InvalidURIError) { split(uri) } + end + end + # --- host: opaque host --------------------------------------------- # https://url.spec.whatwg.org/#concept-opaque-host-parser diff --git a/test/wpt/urltestdata_exclusions.json b/test/wpt/urltestdata_exclusions.json index aca0aa1..2e7f153 100644 --- a/test/wpt/urltestdata_exclusions.json +++ b/test/wpt/urltestdata_exclusions.json @@ -984,11 +984,6 @@ "base": "http://other.com/", "reason": "unclassified" }, - { - "input": "http://192.168.0.257", - "base": "http://other.com/", - "reason": "unclassified" - }, { "input": "http://0Xc0.0250.01", "base": "http://other.com/", @@ -1329,11 +1324,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "http://1.2.3.4./", - "base": "http://other.com/", - "reason": "unclassified" - }, { "input": "http://192.168.257", "base": "http://other.com/", @@ -1374,11 +1364,6 @@ "base": "http://other.com/", "reason": "unclassified" }, - { - "input": "http://10000000000", - "base": "http://other.com/", - "reason": "unclassified" - }, { "input": "http://10000000000.com", "base": "http://other.com/", @@ -1389,36 +1374,11 @@ "base": "http://other.com/", "reason": "unclassified" }, - { - "input": "http://4294967296", - "base": "http://other.com/", - "reason": "unclassified" - }, - { - "input": "http://18446744073709551616", - "base": "http://other.com/", - "reason": "unclassified" - }, - { - "input": "http://18446744075840258049", - "base": "http://other.com/", - "reason": "unclassified" - }, { "input": "http://0xffffffff", "base": "http://other.com/", "reason": "unclassified" }, - { - "input": "http://0xffffffff1", - "base": "http://other.com/", - "reason": "unclassified" - }, - { - "input": "http://256.256.256.256", - "base": "http://other.com/", - "reason": "unclassified" - }, { "input": "https://0x.0x.0", "base": null, @@ -1439,16 +1399,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "https://0x100000000/test", - "base": null, - "reason": "unclassified" - }, - { - "input": "https://256.0.0.1/test", - "base": null, - "reason": "unclassified" - }, { "input": "pix/submit.gif", "base": "file:///C:/Users/Domenic/Dropbox/GitHub/tmpvar/jsdom/test/level2/html/files/anchor.html", @@ -2204,151 +2154,11 @@ "base": null, "reason": "unclassified" }, - { - "input": "http://1.2.3.4.5", - "base": "http://other.com/", - "reason": "unclassified" - }, - { - "input": "http://1.2.3.4.5.", - "base": "http://other.com/", - "reason": "unclassified" - }, - { - "input": "http://0..0x300/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://0..0x300./", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://256.256.256.256.256", - "base": "http://other.com/", - "reason": "unclassified" - }, - { - "input": "http://256.256.256.256.256.", - "base": "http://other.com/", - "reason": "unclassified" - }, - { - "input": "http://1.2.3.08", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://1.2.3.08.", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://1.2.3.09", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://09.2.3.4", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://09.2.3.4.", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://01.2.3.4.5", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://01.2.3.4.5.", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://0x100.2.3.4", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://0x100.2.3.4.", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://0x1.2.3.4.5", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://0x1.2.3.4.5.", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://foo.1.2.3.4", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://foo.1.2.3.4.", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://foo.2.3.4", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://foo.2.3.4.", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://foo.09", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://foo.09.", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://foo.0x4", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://foo.0x4.", - "base": null, - "reason": "unclassified" - }, { "input": "http://foo.09..", "base": null, "reason": "unclassified" }, - { - "input": "http://0999999999999999999/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://foo.0x", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://foo.0XFfFfFfFfFfFfFfFfFfAcE123", - "base": null, - "reason": "unclassified" - }, { "input": "http://💩.123/", "base": null, From f1a51e2636c9342cb7cf8f319c44a553619f78c6 Mon Sep 17 00:00:00 2001 From: jinroq Date: Tue, 3 Nov 2026 18:21:16 +0900 Subject: [PATCH 08/74] Parse IPv6 hosts in URI::WHATWG_Parser#split A host in "[...]" is parsed with the URL Standard's IPv6 parser, transcribed step by step so it can be compared with the standard: up to eight 16-bit pieces of at most four hex digits, one "::" compression, and an optional trailing IPv4 address of four decimal parts without leading zeros. This applies to special and non-special URLs alike. The address is serialized with the IPv6 serializer: lowercase hex without leading zeros, and the first longest run of two or more zero pieces written as "::". 32 more WPT urltestdata cases pass and are removed from the exclusions. Co-Authored-By: Claude Opus 5.5 --- lib/uri/whatwg_parser.rb | 137 ++++++++++++++++++++++- test/uri/test_whatwg_parser.rb | 119 ++++++++++++++++++++ test/wpt/urltestdata_exclusions.json | 160 --------------------------- 3 files changed, 255 insertions(+), 161 deletions(-) diff --git a/lib/uri/whatwg_parser.rb b/lib/uri/whatwg_parser.rb index dd85264..afe6f2e 100644 --- a/lib/uri/whatwg_parser.rb +++ b/lib/uri/whatwg_parser.rb @@ -114,6 +114,8 @@ def unescape(str, escaped = nil) # :nodoc: PERCENT_ENCODED_BYTE = /%[0-9A-Fa-f]{2}/ # :nodoc: ASCII_DIGITS = /\A[0-9]+\z/ # :nodoc: + ASCII_DIGIT = /\A[0-9]\z/ # :nodoc: + ASCII_HEX_DIGIT = /\A[0-9A-Fa-f]\z/ # :nodoc: IPV4_NUMBER_DIGITS = { 8 => /\A[0-7]+\z/, 10 => /\A[0-9]+\z/, @@ -207,7 +209,7 @@ def split_host_and_port(host_and_port) def parse_host(input, special) if input.start_with?("[") raise InvalidURIError, "unterminated IPv6 address: #{input.dump}" unless input.end_with?("]") - return input # IPv6 parsing is not implemented yet. + return "[#{serialize_ipv6(parse_ipv6(input[1..-2]))}]" end return parse_opaque_host(input) unless special @@ -279,6 +281,139 @@ def parse_ipv4_number(input) digits.to_i(radix) end + # IPv6 parser. Follows the standard's algorithm step by step, reading + # +input+ one code point at a time with +pointer+. + def parse_ipv6(input) + failure = -> { raise InvalidURIError, "invalid IPv6 address: #{"[#{input}]".dump}" } + failure.() unless input.ascii_only? + + address = [0] * 8 + piece_index = 0 + compress = nil + pointer = 0 + c = -> { input[pointer] } + + if c.() == ":" + failure.() unless input[pointer + 1] == ":" + pointer += 2 + piece_index += 1 + compress = piece_index + end + + while c.() + failure.() if piece_index == 8 + + if c.() == ":" + failure.() if compress + pointer += 1 + piece_index += 1 + compress = piece_index + next + end + + value = length = 0 + while length < 4 && c.()&.match?(ASCII_HEX_DIGIT) + value = value * 0x10 + c.().hex + pointer += 1 + length += 1 + end + + if c.() == "." + failure.() if length == 0 + pointer -= length + failure.() if piece_index > 6 + + numbers_seen = 0 + while c.() + ipv4_piece = nil + if numbers_seen > 0 + failure.() unless c.() == "." && numbers_seen < 4 + pointer += 1 + end + failure.() unless c.()&.match?(ASCII_DIGIT) + while c.()&.match?(ASCII_DIGIT) + number = c.().to_i + if ipv4_piece.nil? + ipv4_piece = number + elsif ipv4_piece == 0 + failure.() + else + ipv4_piece = ipv4_piece * 10 + number + end + failure.() if ipv4_piece > 255 + pointer += 1 + end + address[piece_index] = address[piece_index] * 0x100 + ipv4_piece + numbers_seen += 1 + piece_index += 1 if numbers_seen == 2 || numbers_seen == 4 + end + failure.() unless numbers_seen == 4 + break + elsif c.() == ":" + pointer += 1 + failure.() unless c.() + elsif c.() + failure.() + end + + address[piece_index] = value + piece_index += 1 + end + + if compress + swaps = piece_index - compress + piece_index = 7 + while piece_index != 0 && swaps > 0 + address[piece_index], address[compress + swaps - 1] = address[compress + swaps - 1], address[piece_index] + piece_index -= 1 + swaps -= 1 + end + elsif piece_index != 8 + failure.() + end + + address + end + + # IPv6 serializer (without the surrounding brackets): the first + # longest run of two or more zero pieces is written as "::". + def serialize_ipv6(address) + compress = longest_zero_run(address) + output = +"" + ignore0 = false + address.each_with_index do |piece, piece_index| + next if ignore0 && piece == 0 + ignore0 = false + if compress == piece_index + output << (piece_index == 0 ? "::" : ":") + ignore0 = true + next + end + output << piece.to_s(16) + output << ":" unless piece_index == 7 + end + output + end + + # Index of the first longest run of two or more zero pieces, or nil. + def longest_zero_run(address) + best = nil + best_length = 1 + run_start = nil + (address + [nil]).each_with_index do |piece, i| + if piece == 0 + run_start ||= i + elsif run_start + if i - run_start > best_length + best = run_start + best_length = i - run_start + end + run_start = nil + end + end + best + end + # IPv4 serializer def serialize_ipv4(address) [24, 16, 8, 0].map { |shift| (address >> shift) & 0xFF }.join(".") diff --git a/test/uri/test_whatwg_parser.rb b/test/uri/test_whatwg_parser.rb index 1d9f5e6..7677290 100644 --- a/test/uri/test_whatwg_parser.rb +++ b/test/uri/test_whatwg_parser.rb @@ -816,6 +816,125 @@ def test_split_ipv4_in_linear_time end end + # --- host: IPv6 --------------------------------------------------- + # https://url.spec.whatwg.org/#concept-ipv6-parser + # https://url.spec.whatwg.org/#concept-ipv6-serializer + + def ipv6(address, scheme = "http") + host("#{scheme}://[#{address}]/") + end + + def assert_ipv6_failure(*addresses) + addresses.each do |address| + assert_raise(URI::InvalidURIError, address) { split("http://[#{address}]/") } + end + end + + def test_split_ipv6_loopback_and_unspecified + assert_equal("[::1]", ipv6("::1")) + assert_equal("[::1]", ipv6("0:0:0:0:0:0:0:1")) + assert_equal("[::]", ipv6("::")) + assert_equal("[::]", ipv6("0:0:0:0:0:0:0:0")) + end + + def test_split_ipv6_full_address_is_kept + assert_equal("[2001:db8:85a3:8d3:1319:8a2e:370:7348]", ipv6("2001:db8:85a3:8d3:1319:8a2e:370:7348")) + end + + def test_split_ipv6_is_lowercased_without_leading_zeros + assert_equal("[abcd::ef]", ipv6("ABCD::EF")) + assert_equal("[1:db8::]", ipv6("0001:0db8::")) + assert_equal("[ffff::]", ipv6("FFFF::")) + end + + def test_split_ipv6_compression_position + assert_equal("[1::]", ipv6("1::")) + assert_equal("[::1:2]", ipv6("::1:2")) + assert_equal("[1:2::3:4]", ipv6("1:2::3:4")) + assert_equal("[::1:2:3:4:5:6]", ipv6("0:0:1:2:3:4:5:6")) + assert_equal("[1:2:3:4:5:6::]", ipv6("1:2:3:4:5:6:0:0")) + end + + def test_split_ipv6_compresses_longest_zero_run + assert_equal("[1:0:0:2::3]", ipv6("1:0:0:2:0:0:0:3")) + assert_equal("[1::2:0:0:3]", ipv6("1:0:0:0:2:0:0:3")) + end + + def test_split_ipv6_compresses_first_of_equally_long_zero_runs + assert_equal("[1::2:0:0:3:4]", ipv6("1:0:0:2:0:0:3:4")) + end + + def test_split_ipv6_does_not_compress_single_zero + assert_equal("[1:0:2:3:4:5:6:7]", ipv6("1:0:2:3:4:5:6:7")) + assert_equal("[1:2:3:4:5:6:7:0]", ipv6("1:2:3:4:5:6:7::")) + assert_equal("[0:1:2:3:4:5:6:7]", ipv6("::1:2:3:4:5:6:7")) + end + + def test_split_ipv6_piece_boundaries + assert_equal("[1:2:3:4:5:6:7:ffff]", ipv6("1:2:3:4:5:6:7:ffff")) + assert_ipv6_failure("10000::", "1:2:3:4:5:6:7:10000", "00000::") + end + + def test_split_ipv6_piece_count_boundaries + # 8 pieces, or fewer with "::". + assert_ipv6_failure("1:2:3:4:5:6:7", "1:2:3:4:5:6:7:8:9", "1:2:3:4:5:6:7:8::", "::1:2:3:4:5:6:7:8") + end + + def test_split_ipv6_invalid_colons_fail + assert_ipv6_failure("", ":", ":1", "1:", "1::2::3", ":::", "::1::", "1:::2", "1:2:3:4:5:6:7:8:") + end + + def test_split_ipv6_invalid_characters_fail + assert_ipv6_failure("g::", "::1 ", "::1%25eth0", "%3A%3A1", "::-1", "é::") + end + + def test_split_ipv6_embedded_ipv4 + assert_equal("[::ffff:102:304]", ipv6("::ffff:1.2.3.4")) + assert_equal("[::102:304]", ipv6("::1.2.3.4")) + assert_equal("[1:2:3:4:5:6:102:304]", ipv6("1:2:3:4:5:6:1.2.3.4")) + assert_equal("[::]", ipv6("::0.0.0.0")) + end + + def test_split_ipv6_embedded_ipv4_number_boundaries + assert_equal("[::102:3ff]", ipv6("::1.2.3.255")) + assert_equal("[::102:300]", ipv6("::1.2.3.0")) + assert_ipv6_failure("::1.2.3.256", "::256.1.2.3") + end + + def test_split_ipv6_embedded_ipv4_must_have_four_decimal_parts + assert_ipv6_failure("::1.2.3", "::1.2.3.4.5", "::1.2..3", "::.1.2.3", "::1.2.3.", "::1.2.3.4x", + "::a.b.c.d", "::0x1.2.3.4", "::1.2.3.4:5") + end + + def test_split_ipv6_embedded_ipv4_rejects_leading_zero + assert_ipv6_failure("::1.2.3.04", "::01.2.3.4", "::1.2.3.00") + end + + def test_split_ipv6_embedded_ipv4_position + # The IPv4 address takes the last two pieces. + assert_ipv6_failure("1:2:3:4:5:6:7:1.2.3.4", "1.2.3.4", "1.2.3.4::") + end + + def test_split_ipv6_embedded_ipv4_number_too_long_fails + # The leading hex piece is re-read as decimal. + assert_ipv6_failure("::1234.1.2.3", "::12345.1.2.3") + end + + def test_split_ipv6_in_non_special_url + assert_equal("[::1]", ipv6("0:0::1", "foo")) + assert_raise(URI::InvalidURIError) { split("foo://[x]/") } + end + + def test_split_ipv6_with_port + assert_equal(["[::1]", "8080"], split("http://[0::1]:8080/").values_at(HOST, PORT)) + end + + def test_parse_serializes_ipv6_host + uri = URI::WHATWG_PARSER.parse("http://[0:0::1]/") + assert_equal("http://[::1]/", uri.to_s) + assert_equal("::1", uri.hostname) + end + # --- host: opaque host --------------------------------------------- # https://url.spec.whatwg.org/#concept-opaque-host-parser diff --git a/test/wpt/urltestdata_exclusions.json b/test/wpt/urltestdata_exclusions.json index 2e7f153..4811397 100644 --- a/test/wpt/urltestdata_exclusions.json +++ b/test/wpt/urltestdata_exclusions.json @@ -289,11 +289,6 @@ "base": "http://example.org/foo/bar", "reason": "unclassified" }, - { - "input": "http://[::127.0.0.1.]", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, { "input": "http://[0:0:0:0:0:0:13.1.68.3]", "base": "http://example.org/foo/bar", @@ -329,11 +324,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "file://[example]/", - "base": null, - "reason": "unclassified" - }, { "input": "mailto:/example.com/", "base": "http://example.org/foo/bar", @@ -824,16 +814,6 @@ "base": "http://other.com/", "reason": "unclassified" }, - { - "input": "http://[]", - "base": "http://other.com/", - "reason": "unclassified" - }, - { - "input": "http://[:]", - "base": "http://other.com/", - "reason": "unclassified" - }, { "input": "http://GOO  goo.com", "base": "http://other.com/", @@ -989,51 +969,6 @@ "base": "http://other.com/", "reason": "unclassified" }, - { - "input": "http://[www.google.com]/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://[google.com]", - "base": "http://other.com/", - "reason": "unclassified" - }, - { - "input": "http://[::1.2.3.4x]", - "base": "http://other.com/", - "reason": "unclassified" - }, - { - "input": "http://[::1.2.3.]", - "base": "http://other.com/", - "reason": "unclassified" - }, - { - "input": "http://[::1.2.]", - "base": "http://other.com/", - "reason": "unclassified" - }, - { - "input": "http://[::.1.2]", - "base": "http://other.com/", - "reason": "unclassified" - }, - { - "input": "http://[::1.]", - "base": "http://other.com/", - "reason": "unclassified" - }, - { - "input": "http://[::.1]", - "base": "http://other.com/", - "reason": "unclassified" - }, - { - "input": "http://[::%31]", - "base": "http://other.com/", - "reason": "unclassified" - }, { "input": "http://foo:💩@example.com/bar", "base": "http://other.com/", @@ -1734,61 +1669,11 @@ "base": null, "reason": "unclassified" }, - { - "input": "https://[0:1:2:3:4:5:192.0.02.1]/", - "base": null, - "reason": "unclassified" - }, - { - "input": "https://[192.0.2.1::]/", - "base": null, - "reason": "unclassified" - }, { "input": "http://[1:0::]", "base": "http://example.net/", "reason": "unclassified" }, - { - "input": "http://[0:1:2:3:4:5:6:7:8]", - "base": "http://example.net/", - "reason": "unclassified" - }, - { - "input": "https://[0::0::0]", - "base": null, - "reason": "unclassified" - }, - { - "input": "https://[0:.0]", - "base": null, - "reason": "unclassified" - }, - { - "input": "https://[0:0:]", - "base": null, - "reason": "unclassified" - }, - { - "input": "https://[0:1:2:3:4:5:6:7.0.0.0.1]", - "base": null, - "reason": "unclassified" - }, - { - "input": "https://[0:1.00.0.0.0]", - "base": null, - "reason": "unclassified" - }, - { - "input": "https://[0:1.290.0.0.0]", - "base": null, - "reason": "unclassified" - }, - { - "input": "https://[0:1.23.23]", - "base": null, - "reason": "unclassified" - }, { "input": "http://f:4294967377/c", "base": "http://example.org/", @@ -1934,16 +1819,6 @@ "base": "non-spec:/.//p", "reason": "unclassified" }, - { - "input": "non-special://[1:2:0:0:5:0:0:0]/", - "base": null, - "reason": "unclassified" - }, - { - "input": "non-special://[1:2:0:0:0:0:0:3]/", - "base": null, - "reason": "unclassified" - }, { "input": "http://0x7f.0.0.0x7g", "base": null, @@ -1954,11 +1829,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "http://[::127.0.0.0.1]", - "base": null, - "reason": "unclassified" - }, { "input": "http://[0:1:0:1:0:1:0:1]", "base": null, @@ -2274,11 +2144,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "data://[:1]", - "base": null, - "reason": "unclassified" - }, { "input": "javascript://example.com:8080/pathname?search#hash", "base": null, @@ -2294,11 +2159,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "javascript://[:1]", - "base": null, - "reason": "unclassified" - }, { "input": "mailto://example.com:8080/pathname?search#hash", "base": null, @@ -2329,11 +2189,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "intent://[:1]", - "base": null, - "reason": "unclassified" - }, { "input": "urn://example.com:8080/pathname?search#hash", "base": null, @@ -2349,11 +2204,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "urn://[:1]", - "base": null, - "reason": "unclassified" - }, { "input": "turn://example.com:8080/pathname?search#hash", "base": null, @@ -2369,11 +2219,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "turn://[:1]", - "base": null, - "reason": "unclassified" - }, { "input": "stun://example.com:8080/pathname?search#hash", "base": null, @@ -2389,11 +2234,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "stun://[:1]", - "base": null, - "reason": "unclassified" - }, { "input": "///test", "base": "http://example.org/", From ae7125b59d51ad2fb051251ce6dc441b4a8f382a Mon Sep 17 00:00:00 2001 From: jinroq Date: Tue, 3 Nov 2026 18:24:18 +0900 Subject: [PATCH 09/74] Parse the port in URI::WHATWG_Parser#split Follow the URL Standard's port state: a port is ASCII digits only, at most 65535. An empty port, or one equal to the default port of a special scheme, is omitted. The port is returned as a decimal string without leading zeros. A port with more significant digits than 65535 has is rejected without converting it. 21 more WPT urltestdata cases pass and are removed from the exclusions. Co-Authored-By: Claude Opus 5.5 --- lib/uri/whatwg_parser.rb | 20 +++++ test/uri/test_whatwg_parser.rb | 105 ++++++++++++++++++++++++++- test/wpt/urltestdata_exclusions.json | 105 --------------------------- 3 files changed, 124 insertions(+), 106 deletions(-) diff --git a/lib/uri/whatwg_parser.rb b/lib/uri/whatwg_parser.rb index afe6f2e..88f3a48 100644 --- a/lib/uri/whatwg_parser.rb +++ b/lib/uri/whatwg_parser.rb @@ -125,6 +125,9 @@ def unescape(str, escaped = nil) # :nodoc: # 2**32 - 1 has 11 digits in octal, 10 in decimal and 8 in hex. IPV4_NUMBER_MAX_DIGITS = 11 # :nodoc: + MAX_PORT = 2**16 - 1 # :nodoc: + PORT_MAX_DIGITS = MAX_PORT.to_s.size # :nodoc: + NOT_C0_CONTROL_OR_SPACE = /[^\x00-\x20]/ # :nodoc: ASCII_TAB_OR_NEWLINE = "\t\n\r" # :nodoc: @@ -168,6 +171,7 @@ def split_authority(scheme, rest, special, host_required: special) host, port = split_host_and_port(host_and_port) raise InvalidURIError, "missing host: #{rest.dump}" if host.empty? && (host_required || port) host = parse_host(host, special) unless host.empty? + port = parse_port(port, scheme) if port [scheme, userinfo, host, port, nil, remainder, nil, nil, nil] end @@ -205,6 +209,22 @@ def split_host_and_port(host_and_port) [host_and_port, nil] end + # port state. +input+ is everything between the ":" and the end of + # the authority. Returns the port as a decimal string, or nil when it + # is empty or the scheme's default port. + # + # A port with more significant digits than 65535 has is rejected + # without converting it. + def parse_port(input, scheme) + return nil if input.empty? + raise InvalidURIError, "invalid port: #{input.dump}" unless input.match?(ASCII_DIGITS) + + digits = input.sub(LEADING_ZEROS, "") + port = digits.size > PORT_MAX_DIGITS ? MAX_PORT + 1 : digits.to_i + raise InvalidURIError, "port out of range: #{input.dump}" if port > MAX_PORT + port == SPECIAL_SCHEMES[scheme] ? nil : port.to_s + end + # host parser def parse_host(input, special) if input.start_with?("[") diff --git a/test/uri/test_whatwg_parser.rb b/test/uri/test_whatwg_parser.rb index 7677290..cf684b4 100644 --- a/test/uri/test_whatwg_parser.rb +++ b/test/uri/test_whatwg_parser.rb @@ -557,7 +557,7 @@ def test_split_colon_inside_brackets_is_not_port_delimiter end def test_split_brackets_in_userinfo_do_not_affect_port - assert_equal(["u[", "host", "80"], split("http://u[@host:80/").values_at(USERINFO, HOST, PORT)) + assert_equal(["u[", "host", "8080"], split("http://u[@host:8080/").values_at(USERINFO, HOST, PORT)) end def test_split_special_url_needs_host @@ -935,6 +935,109 @@ def test_parse_serializes_ipv6_host assert_equal("::1", uri.hostname) end + # --- port --------------------------------------------------------- + # https://url.spec.whatwg.org/#port-state + + def port(input) + split(input)[PORT] + end + + def assert_port_failure(*inputs) + inputs.each do |input| + assert_raise(URI::InvalidURIError, input) { split(input) } + end + end + + def test_split_port + assert_equal("8080", port("http://h:8080/")) + assert_equal("8080", port("http://u:p@h:8080/")) + end + + def test_split_empty_port_is_nil + assert_nil(port("http://h:/")) + assert_nil(port("http://h:")) + assert_nil(port("http://h:?q")) + assert_nil(port("foo://h:/")) + end + + def test_split_default_port_is_nil + { "http" => 80, "https" => 443, "ws" => 80, "wss" => 443, "ftp" => 21 }.each do |scheme, default| + assert_nil(port("#{scheme}://h:#{default}/"), scheme) + end + end + + def test_split_default_port_of_another_scheme_is_kept + assert_equal("443", port("http://h:443/")) + assert_equal("80", port("https://h:80/")) + assert_equal("80", port("ftp://h:80/")) + assert_equal("21", port("http://h:21/")) + end + + def test_split_non_special_scheme_has_no_default_port + assert_equal("80", port("foo://h:80/")) + assert_equal("443", port("foo://h:443/")) + end + + def test_split_port_leading_zeros_are_removed + assert_equal("8080", port("http://h:0008080/")) + assert_equal("80", port("foo://h:0080/")) + assert_nil(port("http://h:00080/")) + assert_equal("1", port("http://h:#{"0" * 1000}1/")) + assert_equal("0", port("http://h:000/")) + end + + def test_split_port_boundaries + assert_equal("0", port("http://h:0/")) + assert_equal("1", port("http://h:1/")) + assert_equal("65535", port("http://h:65535/")) + assert_port_failure("http://h:65536/", "http://h:99999/", "http://h:100000/", "foo://h:65536/") + end + + def test_split_huge_port_fails + assert_port_failure("http://h:#{"9" * 100}/", "http://h:1#{"0" * 100}/") + end + + def test_split_port_must_be_digits + assert_port_failure("http://h:8a/", "http://h:a/", "http://h:-1/", "http://h:+1/", "http://h: 1/", + "http://h:1 /", "http://h:1_0/", "http://h:0x10/", "http://h:1:2/", "http://h:1.0/", + "http://h:\uFF11/", "foo://h:8a/") + end + + def test_split_port_ends_at_authority_end + %w[/ ? #].each do |c| + assert_equal("8080", port("http://h:8080#{c}x"), c) + assert_equal("8080", port("foo://h:8080#{c}x"), c) + end + assert_equal("8080", port("http://h:8080\\x")) + end + + def test_split_non_special_port_does_not_end_at_backslash + assert_port_failure("foo://h:8080\\x") + end + + def test_split_port_with_ipv6_host + assert_equal("8080", port("http://[::1]:8080/")) + assert_nil(port("http://[::1]:80/")) + end + + def test_parse_port + assert_equal(8080, URI::WHATWG_PARSER.parse("http://h:8080/").port) + assert_equal("http://h:8080/", URI::WHATWG_PARSER.parse("http://h:08080/").to_s) + end + + def test_parse_default_port_is_omitted + uri = URI::WHATWG_PARSER.parse("http://h:80/") + assert_equal("http://h/", uri.to_s) + assert_equal(80, uri.port) + end + + def test_split_port_in_linear_time + pre = ->(n) { "http://h:" + "9" * n + "/" } + assert_linear_performance((2..5).map { |i| 10**i }, pre: pre) do |uri| + assert_raise(URI::InvalidURIError) { split(uri) } + end + end + # --- host: opaque host --------------------------------------------- # https://url.spec.whatwg.org/#concept-opaque-host-parser diff --git a/test/wpt/urltestdata_exclusions.json b/test/wpt/urltestdata_exclusions.json index 4811397..5990b77 100644 --- a/test/wpt/urltestdata_exclusions.json +++ b/test/wpt/urltestdata_exclusions.json @@ -44,36 +44,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "http://f:b/c", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "http://f: /c", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "http://f:fifty-two/c", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "http://f:999999/c", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "non-special://f:999999/c", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "http://f: 21 / b ? d # e ", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, { "input": "", "base": "http://example.org/foo/bar", @@ -259,26 +229,6 @@ "base": "http://example.org/foo/bar", "reason": "unclassified" }, - { - "input": "http://[1::2]:3:4", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "http://2001::1", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "http://2001::1]", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "http://2001::1]:80", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, { "input": "http://[2001::1]", "base": "http://example.org/foo/bar", @@ -319,11 +269,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "file://example:test/", - "base": null, - "reason": "unclassified" - }, { "input": "mailto:/example.com/", "base": "http://example.org/foo/bar", @@ -609,11 +554,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "http://foo:-80/", - "base": null, - "reason": "unclassified" - }, { "input": "ftp://foo:21/", "base": null, @@ -1674,21 +1614,6 @@ "base": "http://example.net/", "reason": "unclassified" }, - { - "input": "http://f:4294967377/c", - "base": "http://example.org/", - "reason": "unclassified" - }, - { - "input": "http://f:18446744073709551697/c", - "base": "http://example.org/", - "reason": "unclassified" - }, - { - "input": "http://f:340282366920938463463374607431768211537/c", - "base": "http://example.org/", - "reason": "unclassified" - }, { "input": "sc://ñ?x", "base": null, @@ -2139,11 +2064,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "data://test:test", - "base": null, - "reason": "unclassified" - }, { "input": "javascript://example.com:8080/pathname?search#hash", "base": null, @@ -2154,11 +2074,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "javascript://test:test", - "base": null, - "reason": "unclassified" - }, { "input": "mailto://example.com:8080/pathname?search#hash", "base": null, @@ -2184,11 +2099,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "intent://test:test", - "base": null, - "reason": "unclassified" - }, { "input": "urn://example.com:8080/pathname?search#hash", "base": null, @@ -2199,11 +2109,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "urn://test:test", - "base": null, - "reason": "unclassified" - }, { "input": "turn://example.com:8080/pathname?search#hash", "base": null, @@ -2214,11 +2119,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "turn://test:test", - "base": null, - "reason": "unclassified" - }, { "input": "stun://example.com:8080/pathname?search#hash", "base": null, @@ -2229,11 +2129,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "stun://test:test", - "base": null, - "reason": "unclassified" - }, { "input": "///test", "base": "http://example.org/", From f84e158da410c37bb3d03e994fa0df1d620db994 Mon Sep 17 00:00:00 2001 From: jinroq Date: Tue, 3 Nov 2026 18:29:48 +0900 Subject: [PATCH 10/74] Split the query and fragment in URI::WHATWG_Parser#split The fragment starts at the first "#" after the scheme, and the query at the first "?" before it, since every earlier state of the URL Standard's basic URL parser ends there. An empty query or fragment is kept as "" rather than nil. For an opaque path, a space right before "?" or "#" is written as "%20", and the query stays inside opaque, as URI::RFC3986_Parser does, since URI::Generic does not serialize the query of an opaque URI. The WPT harness reads the query of an opaque URI from there. 50 more WPT urltestdata cases pass and are removed from the exclusions. Co-Authored-By: Claude Opus 5.5 --- lib/uri/whatwg_parser.rb | 79 ++++++--- test/uri/test_whatwg_parser.rb | 114 ++++++++++++ test/wpt/test_wpt_harness.rb | 31 ++++ test/wpt/urltestdata_exclusions.json | 250 --------------------------- test/wpt/wpt_url_test_data.rb | 14 +- 5 files changed, 214 insertions(+), 274 deletions(-) diff --git a/lib/uri/whatwg_parser.rb b/lib/uri/whatwg_parser.rb index 88f3a48..98d7e8c 100644 --- a/lib/uri/whatwg_parser.rb +++ b/lib/uri/whatwg_parser.rb @@ -17,31 +17,18 @@ def split(uri) # :nodoc: uri = preprocess(to_utf8(uri)) scheme, rest = parse_scheme(uri) + # Every state before the fragment state ends at the first "#", and + # every state before the query state at the first "?" before it. + rest, query, fragment = split_query_and_fragment(rest) - if scheme == "file" - # Approximates file state, file slash state and file host state - # until they are implemented: exactly two leading "/" or "\\" - # start a host, which may be empty. - if rest.match?(FILE_SLASHES) - split_authority(scheme, rest[2..-1], true, host_required: false) - else - [scheme, nil, nil, nil, nil, rest, nil, nil, nil] - end - elsif SPECIAL_SCHEMES.key?(scheme) - # special authority slashes state and special authority ignore - # slashes state: skip any run of "/" or "\\". - split_authority(scheme, rest.sub(SPECIAL_AUTHORITY_SLASHES, ""), true) - elsif rest.start_with?("/") - # path or authority state - if rest.start_with?("//") - split_authority(scheme, rest[2..-1], false) - else - [scheme, nil, nil, nil, nil, rest, nil, nil, nil] - end + components = split_before_query(scheme, rest) + if (opaque = components[6]) + components[6] = opaque_with_query(opaque, query, fragment) else - # opaque path state - [scheme, nil, nil, nil, nil, nil, rest, nil, nil] + components[7] = query end + components[8] = fragment + components end def parse(uri) # :nodoc: @@ -85,6 +72,52 @@ def unescape(str, escaped = nil) # :nodoc: private + def split_query_and_fragment(rest) + rest, hash, fragment = rest.partition("#") + fragment = nil if hash.empty? + rest, question, query = rest.partition("?") + query = nil if question.empty? + [rest, query, fragment] + end + + # opaque path state: a space right before "?" or "#" is written as + # "%20". The query is kept inside opaque, as URI::RFC3986_Parser + # does, since URI::Generic does not serialize the query of an opaque + # URI. + def opaque_with_query(opaque, query, fragment) + opaque = opaque.sub(TRAILING_SPACE, "%20") if query || fragment + query ? "#{opaque}?#{query}" : opaque + end + + # Splits everything after the scheme and before the query into the + # components, leaving query and fragment nil. + def split_before_query(scheme, rest) + if scheme == "file" + # Approximates file state, file slash state and file host state + # until they are implemented: exactly two leading "/" or "\\" + # start a host, which may be empty. + if rest.match?(FILE_SLASHES) + split_authority(scheme, rest[2..-1], true, host_required: false) + else + [scheme, nil, nil, nil, nil, rest, nil, nil, nil] + end + elsif SPECIAL_SCHEMES.key?(scheme) + # special authority slashes state and special authority ignore + # slashes state: skip any run of "/" or "\\". + split_authority(scheme, rest.sub(SPECIAL_AUTHORITY_SLASHES, ""), true) + elsif rest.start_with?("/") + # path or authority state + if rest.start_with?("//") + split_authority(scheme, rest[2..-1], false) + else + [scheme, nil, nil, nil, nil, rest, nil, nil, nil] + end + else + # opaque path state + [scheme, nil, nil, nil, nil, nil, rest, nil, nil] + end + end + # https://url.spec.whatwg.org/#special-scheme SPECIAL_SCHEMES = { "ftp" => 21, @@ -128,6 +161,8 @@ def unescape(str, escaped = nil) # :nodoc: MAX_PORT = 2**16 - 1 # :nodoc: PORT_MAX_DIGITS = MAX_PORT.to_s.size # :nodoc: + TRAILING_SPACE = / \z/ # :nodoc: + NOT_C0_CONTROL_OR_SPACE = /[^\x00-\x20]/ # :nodoc: ASCII_TAB_OR_NEWLINE = "\t\n\r" # :nodoc: diff --git a/test/uri/test_whatwg_parser.rb b/test/uri/test_whatwg_parser.rb index cf684b4..63bbaf1 100644 --- a/test/uri/test_whatwg_parser.rb +++ b/test/uri/test_whatwg_parser.rb @@ -1038,6 +1038,120 @@ def test_split_port_in_linear_time end end + # --- query and fragment ------------------------------------------- + # https://url.spec.whatwg.org/#path-state + # https://url.spec.whatwg.org/#query-state + # https://url.spec.whatwg.org/#fragment-state + # https://url.spec.whatwg.org/#cannot-be-a-base-url-path-state + + QUERY, FRAGMENT = 7, 8 + + def test_split_query_and_fragment + assert_equal(["/p", "q", "f"], split("http://h/p?q#f").values_at(PATH, QUERY, FRAGMENT)) + end + + def test_split_query_only + assert_equal(["/p", "q", nil], split("http://h/p?q").values_at(PATH, QUERY, FRAGMENT)) + end + + def test_split_fragment_only + assert_equal(["/p", nil, "f"], split("http://h/p#f").values_at(PATH, QUERY, FRAGMENT)) + end + + def test_split_empty_query_and_fragment_are_kept + assert_equal(["", nil], split("http://h/p?").values_at(QUERY, FRAGMENT)) + assert_equal([nil, ""], split("http://h/p#").values_at(QUERY, FRAGMENT)) + assert_equal(["", ""], split("http://h/p?#").values_at(QUERY, FRAGMENT)) + end + + def test_split_question_mark_after_hash_is_part_of_fragment + assert_equal([nil, "f?q"], split("http://h/p#f?q").values_at(QUERY, FRAGMENT)) + end + + def test_split_query_and_fragment_split_at_first_delimiter + assert_equal("a?b", split("http://h/p?a?b")[QUERY]) + assert_equal("a#b", split("http://h/p#a#b")[FRAGMENT]) + assert_equal(["a?b", "c#d?e"], split("http://h/p?a?b#c#d?e").values_at(QUERY, FRAGMENT)) + end + + def test_split_query_and_fragment_right_after_host + assert_equal(["h", "q", nil], split("http://h?q").values_at(HOST, QUERY, FRAGMENT)) + assert_equal(["h", nil, "f"], split("http://h#f").values_at(HOST, QUERY, FRAGMENT)) + assert_equal(["h", "8080", "q"], split("http://h:8080?q").values_at(HOST, PORT, QUERY)) + end + + def test_split_hash_ends_authority_before_at_sign + assert_equal([nil, "u", "@host/"], split('http://u#@host/').values_at(USERINFO, HOST, FRAGMENT)) + end + + def test_split_backslash_in_query_and_fragment_is_kept + assert_equal(["a\\b", "c\\d"], split("http://h/?a\\b#c\\d").values_at(QUERY, FRAGMENT)) + end + + def test_split_query_and_fragment_in_non_special_url + assert_equal(["h", "/p", "q", "f"], split("foo://h/p?q#f").values_at(HOST, PATH, QUERY, FRAGMENT)) + assert_equal([nil, "/p", "q", "f"], split("foo:/p?q#f").values_at(HOST, PATH, QUERY, FRAGMENT)) + assert_equal(["", "q"], split("foo://?q").values_at(HOST, QUERY)) + end + + def test_split_query_and_fragment_in_file_url + assert_equal(["/a", "q", "f"], split("file:///a?q#f").values_at(PATH, QUERY, FRAGMENT)) + end + + # An opaque URI keeps its query inside opaque, as URI::RFC3986_Parser + # does, since URI::Generic does not serialize the query of an opaque URI. + + def test_split_opaque_path_with_query_and_fragment + assert_equal(["bar?q", nil, "f"], split("foo:bar?q#f").values_at(OPAQUE, QUERY, FRAGMENT)) + end + + def test_split_opaque_path_with_fragment_containing_question_mark + assert_equal(["bar", nil, "f?q"], split("foo:bar#f?q").values_at(OPAQUE, QUERY, FRAGMENT)) + end + + def test_split_opaque_path_with_empty_query_and_fragment + assert_equal(["bar?", nil, ""], split("foo:bar?#").values_at(OPAQUE, QUERY, FRAGMENT)) + end + + def test_split_empty_opaque_path_with_query_or_fragment + assert_equal(["?q", nil], split("foo:?q").values_at(OPAQUE, FRAGMENT)) + assert_equal(["", "f"], split("foo:#f").values_at(OPAQUE, FRAGMENT)) + end + + def test_split_opaque_path_space_before_query_or_fragment_is_encoded + # Only the space right before "?" or "#" is encoded, so it survives + # the stripping of trailing spaces when the URL is reparsed. + assert_equal("a%20?q", split("foo:a ?q")[OPAQUE]) + assert_equal("a %20", split("foo:a #f")[OPAQUE]) + assert_equal("a %20?", split("foo:a ?")[OPAQUE]) + end + + def test_split_opaque_path_other_spaces_are_kept + assert_equal("a b?q", split("foo:a b?q")[OPAQUE]) + assert_equal("a b", split("foo:a b")[OPAQUE]) + end + + def test_split_opaque_path_trailing_spaces_are_stripped + # by the preprocessing, as they are at the end of the input. + assert_equal("a", split("foo:a ")[OPAQUE]) + end + + def test_split_space_in_query_or_fragment_of_opaque_url_is_not_encoded_here + assert_equal("a? b", split("foo:a? b")[OPAQUE]) + assert_equal(" b", split("foo:a# b")[FRAGMENT]) + end + + def test_parse_round_trip_with_query_and_fragment + %w[http://h/p?q#f http://h/p?# foo:bar?q#f foo:bar?# foo://h/p?q#f].each do |input| + assert_equal(input, URI::WHATWG_PARSER.parse(input).to_s, input) + end + end + + def test_parse_query_and_fragment + uri = URI::WHATWG_PARSER.parse("http://h/p?q#f") + assert_equal(["q", "f"], [uri.query, uri.fragment]) + end + # --- host: opaque host --------------------------------------------- # https://url.spec.whatwg.org/#concept-opaque-host-parser diff --git a/test/wpt/test_wpt_harness.rb b/test/wpt/test_wpt_harness.rb index d4bc28b..9685fa7 100644 --- a/test/wpt/test_wpt_harness.rb +++ b/test/wpt/test_wpt_harness.rb @@ -124,6 +124,37 @@ def test_components_opaque_is_pathname assert_equal("a@example.com", c["pathname"]) end + def opaque_uri(opaque, fragment = nil) + # URI::Generic keeps the query of an opaque URI inside opaque. + URI::Generic.new("foo", nil, nil, nil, nil, nil, opaque, nil, fragment) + end + + def test_components_query_inside_opaque_is_search + c = WPT::URLTestData.components(opaque_uri("bar?q", "f")) + assert_equal("bar", c["pathname"]) + assert_equal("?q", c["search"]) + assert_equal("#f", c["hash"]) + assert_equal("foo:bar?q#f", c["href"]) + end + + def test_components_empty_query_inside_opaque + c = WPT::URLTestData.components(opaque_uri("bar?")) + assert_equal("bar", c["pathname"]) + assert_equal("", c["search"]) + end + + def test_components_opaque_query_containing_question_mark + c = WPT::URLTestData.components(opaque_uri("bar?a?b")) + assert_equal("bar", c["pathname"]) + assert_equal("?a?b", c["search"]) + end + + def test_components_empty_opaque + c = WPT::URLTestData.components(opaque_uri("")) + assert_equal("", c["pathname"]) + assert_equal("", c["search"]) + end + # --- run ----------------------------------------------------------- def test_run_without_base_uses_parse diff --git a/test/wpt/urltestdata_exclusions.json b/test/wpt/urltestdata_exclusions.json index 5990b77..66011e5 100644 --- a/test/wpt/urltestdata_exclusions.json +++ b/test/wpt/urltestdata_exclusions.json @@ -4,11 +4,6 @@ "base": "http://example.org/foo/bar", "reason": "unclassified" }, - { - "input": "http://user:pass@foo:21/bar;par?b#c", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, { "input": "https://test:@test", "base": null, @@ -39,11 +34,6 @@ "base": "http://example.org/foo/bar", "reason": "unclassified" }, - { - "input": "lolscheme:x x#x x", - "base": null, - "reason": "unclassified" - }, { "input": "", "base": "http://example.org/foo/bar", @@ -204,21 +194,6 @@ "base": "http://example.org/foo/bar", "reason": "unclassified" }, - { - "input": "http://foo/path;a??e#f#g", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "http://foo/abcd?efgh?ijkl", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "http://foo/abcd#foo?bar", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, { "input": "[61:24:74]:98", "base": "http://example.org/foo/bar", @@ -314,11 +289,6 @@ "base": "http://example.org/foo/bar", "reason": "unclassified" }, - { - "input": "data:text/html,test#test", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, { "input": "file:c:\\foo\\bar.html", "base": "file:///tmp/mock/path", @@ -519,21 +489,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "http://www.google.com/foo?bar=baz#", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://www.google.com/foo?bar=baz# »", - "base": null, - "reason": "unclassified" - }, - { - "input": "data:test# »", - "base": null, - "reason": "unclassified" - }, { "input": "http://www.google.com", "base": null, @@ -764,41 +719,6 @@ "base": "http://other.com/", "reason": "unclassified" }, - { - "input": "non-special:opaque ?hi", - "base": null, - "reason": "unclassified" - }, - { - "input": "non-special:opaque #hi", - "base": null, - "reason": "unclassified" - }, - { - "input": "non-special:opaque x?hi", - "base": null, - "reason": "unclassified" - }, - { - "input": "non-special:opaque x#hi", - "base": null, - "reason": "unclassified" - }, - { - "input": "non-special:opaque \t\t \t#hi", - "base": null, - "reason": "unclassified" - }, - { - "input": "non-special:opaque \t\t #hi", - "base": null, - "reason": "unclassified" - }, - { - "input": "non-special:opaque\t\t \r #hi", - "base": null, - "reason": "unclassified" - }, { "input": "http://www.foo。bar.com", "base": "http://other.com/", @@ -979,11 +899,6 @@ "base": "http://doesnotmatter/", "reason": "unclassified" }, - { - "input": "http://host/?'", - "base": null, - "reason": "unclassified" - }, { "input": "notspecial://host/?'", "base": null, @@ -1149,16 +1064,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "http://facebook.com/?foo=%7B%22abc%22", - "base": null, - "reason": "unclassified" - }, - { - "input": "h\tt\nt\rp://h\to\ns\rt:9\t0\n0\r0/p\ta\nt\rh?q\tu\ne\rry#f\tr\na\rg", - "base": null, - "reason": "unclassified" - }, { "input": "?a=b&c=d", "base": "http://example.org/foo/bar", @@ -1174,11 +1079,6 @@ "base": "http://example.org/foo/bar", "reason": "unclassified" }, - { - "input": "http://foo.bar/baz?qux#foo\bbar", - "base": null, - "reason": "unclassified" - }, { "input": "http://foo.bar/baz?qux#foo\"bar", "base": null, @@ -1614,16 +1514,6 @@ "base": "http://example.net/", "reason": "unclassified" }, - { - "input": "sc://ñ?x", - "base": null, - "reason": "unclassified" - }, - { - "input": "sc://ñ#x", - "base": null, - "reason": "unclassified" - }, { "input": "#x", "base": "sc://ñ", @@ -1634,16 +1524,6 @@ "base": "sc://ñ", "reason": "unclassified" }, - { - "input": "sc://?", - "base": null, - "reason": "unclassified" - }, - { - "input": "sc://#", - "base": null, - "reason": "unclassified" - }, { "input": "///", "base": "sc://x/", @@ -1659,21 +1539,6 @@ "base": "sc://x/", "reason": "unclassified" }, - { - "input": "redis://foo:bar@somehost:6379/0?baz=bam&qux=baz", - "base": null, - "reason": "unclassified" - }, - { - "input": "irc://myserver.com:6999/channel?passwd", - "base": null, - "reason": "unclassified" - }, - { - "input": "dns://fw.example.org:9999/foo.bar.org?type=TXT", - "base": null, - "reason": "unclassified" - }, { "input": "ldap://localhost:389/ou=People,o=JNDITutorial", "base": null, @@ -1764,51 +1629,11 @@ "base": null, "reason": "unclassified" }, - { - "input": "http://example.org/test?\"", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://example.org/test?#", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://example.org/test?<", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://example.org/test?>", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://example.org/test?⌣", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://example.org/test?%23%23", - "base": null, - "reason": "unclassified" - }, { "input": "http://example.org/test?%GH", "base": null, "reason": "unclassified" }, - { - "input": "http://example.org/test?a#%EF", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://example.org/test?a#%GH", - "base": null, - "reason": "unclassified" - }, { "input": "test-a-colon-slash.html", "base": "a:/", @@ -1829,21 +1654,6 @@ "base": "a://b", "reason": "unclassified" }, - { - "input": "http://example.org/test?a#b\u0000c", - "base": null, - "reason": "unclassified" - }, - { - "input": "non-spec://example.org/test?a#b\u0000c", - "base": null, - "reason": "unclassified" - }, - { - "input": "non-spec:/test?a#b\u0000c", - "base": null, - "reason": "unclassified" - }, { "input": "10.0.0.7:8080/foo.html", "base": "file:///some/dir/bar.html", @@ -1964,16 +1774,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "https://x/?\u0000y", - "base": null, - "reason": "unclassified" - }, - { - "input": "https://x/?#\u0000y", - "base": null, - "reason": "unclassified" - }, { "input": "https://￿y", "base": null, @@ -1984,16 +1784,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "https://x/?￿y", - "base": null, - "reason": "unclassified" - }, - { - "input": "https://x/?#￿y", - "base": null, - "reason": "unclassified" - }, { "input": "non-special:\u0000y", "base": null, @@ -2009,11 +1799,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "non-special:x/?#\u0000y", - "base": null, - "reason": "unclassified" - }, { "input": "non-special:￿y", "base": null, @@ -2029,11 +1814,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "non-special:x/?#￿y", - "base": null, - "reason": "unclassified" - }, { "input": "https://example.com/\"quoted\"", "base": null, @@ -2054,21 +1834,11 @@ "base": null, "reason": "unclassified" }, - { - "input": "data://example.com:8080/pathname?search#hash", - "base": null, - "reason": "unclassified" - }, { "input": "data://test/a/../b", "base": null, "reason": "unclassified" }, - { - "input": "javascript://example.com:8080/pathname?search#hash", - "base": null, - "reason": "unclassified" - }, { "input": "javascript://test/a/../b", "base": null, @@ -2089,41 +1859,21 @@ "base": null, "reason": "unclassified" }, - { - "input": "intent://example.com:8080/pathname?search#hash", - "base": null, - "reason": "unclassified" - }, { "input": "intent://test/a/../b", "base": null, "reason": "unclassified" }, - { - "input": "urn://example.com:8080/pathname?search#hash", - "base": null, - "reason": "unclassified" - }, { "input": "urn://test/a/../b", "base": null, "reason": "unclassified" }, - { - "input": "turn://example.com:8080/pathname?search#hash", - "base": null, - "reason": "unclassified" - }, { "input": "turn://test/a/../b", "base": null, "reason": "unclassified" }, - { - "input": "stun://example.com:8080/pathname?search#hash", - "base": null, - "reason": "unclassified" - }, { "input": "stun://test/a/../b", "base": null, diff --git a/test/wpt/wpt_url_test_data.rb b/test/wpt/wpt_url_test_data.rb index 1de9b9d..dc332ef 100644 --- a/test/wpt/wpt_url_test_data.rb +++ b/test/wpt/wpt_url_test_data.rb @@ -48,9 +48,19 @@ def key(test_case) end # The URL attributes (as the WHATWG URL API exposes them) of +uri+. + # + # URI::Generic keeps the query of an opaque URI inside opaque, after + # the first "?" (an opaque path cannot contain "?"). def components(uri) port = uri.port && uri.port != uri.default_port ? uri.port.to_s : "" hostname = uri.host.to_s + if uri.opaque + pathname, question, query = uri.opaque.partition("?") + query = nil if question.empty? + else + pathname = uri.path.to_s + query = uri.query + end { "href" => uri.to_s, "protocol" => "#{uri.scheme}:", @@ -59,8 +69,8 @@ def components(uri) "host" => port.empty? ? hostname : "#{hostname}:#{port}", "hostname" => hostname, "port" => port, - "pathname" => uri.opaque || uri.path.to_s, - "search" => uri.query.to_s.empty? ? "" : "?#{uri.query}", + "pathname" => pathname, + "search" => query.to_s.empty? ? "" : "?#{query}", "hash" => uri.fragment.to_s.empty? ? "" : "##{uri.fragment}", } end From b63d69efcb00d857717e25b801b240784b15ed72 Mon Sep 17 00:00:00 2001 From: jinroq Date: Tue, 3 Nov 2026 18:34:04 +0900 Subject: [PATCH 11/74] Parse and normalize the path in URI::WHATWG_Parser#split Follow the URL Standard's path start state and path state: * A special URL always has a path, "/" when empty. Its segments are separated by "/" or "\"; other URLs use "/" only, and have an empty path when nothing follows the authority. * Single-dot segments ("." or "%2e") are removed and double-dot segments ("..", ".%2e", "%2e." or "%2e%2e", case-insensitively) remove the previous segment, never going above the root. At the end of the path, either one leaves a trailing "/". A hostless path that would start with "//" gets the "/." prefix the URL serializer writes, as URI::Generic does not know that rule; the WPT harness drops it when reading pathname. 122 more WPT urltestdata cases pass and are removed from the exclusions. Co-Authored-By: Claude Opus 5.5 --- lib/uri/whatwg_parser.rb | 57 ++- test/uri/test_whatwg_parser.rb | 160 +++++++ test/wpt/test_wpt_harness.rb | 22 + test/wpt/urltestdata_exclusions.json | 610 --------------------------- test/wpt/wpt_url_test_data.rb | 3 + 5 files changed, 239 insertions(+), 613 deletions(-) diff --git a/lib/uri/whatwg_parser.rb b/lib/uri/whatwg_parser.rb index 98d7e8c..43ea736 100644 --- a/lib/uri/whatwg_parser.rb +++ b/lib/uri/whatwg_parser.rb @@ -99,7 +99,7 @@ def split_before_query(scheme, rest) if rest.match?(FILE_SLASHES) split_authority(scheme, rest[2..-1], true, host_required: false) else - [scheme, nil, nil, nil, nil, rest, nil, nil, nil] + [scheme, nil, nil, nil, nil, path_without_host(rest, true), nil, nil, nil] end elsif SPECIAL_SCHEMES.key?(scheme) # special authority slashes state and special authority ignore @@ -110,7 +110,7 @@ def split_before_query(scheme, rest) if rest.start_with?("//") split_authority(scheme, rest[2..-1], false) else - [scheme, nil, nil, nil, nil, rest, nil, nil, nil] + [scheme, nil, nil, nil, nil, path_without_host(rest, false), nil, nil, nil] end else # opaque path state @@ -162,6 +162,8 @@ def split_before_query(scheme, rest) PORT_MAX_DIGITS = MAX_PORT.to_s.size # :nodoc: TRAILING_SPACE = / \z/ # :nodoc: + SPECIAL_PATH_SEPARATOR = %r{[/\\]} # :nodoc: + DOUBLE_DOT_SEGMENTS = ["..", ".%2e", "%2e.", "%2e%2e"].freeze # :nodoc: NOT_C0_CONTROL_OR_SPACE = /[^\x00-\x20]/ # :nodoc: ASCII_TAB_OR_NEWLINE = "\t\n\r" # :nodoc: @@ -208,7 +210,56 @@ def split_authority(scheme, rest, special, host_required: special) host = parse_host(host, special) unless host.empty? port = parse_port(port, scheme) if port - [scheme, userinfo, host, port, nil, remainder, nil, nil, nil] + path = serialize_path(parse_path(remainder, special)) + [scheme, userinfo, host, port, nil, path, nil, nil, nil] + end + + # The path of a URL without a host. The URL serializer writes "/." + # before such a path when it would otherwise start with "//", so it + # is not mistaken for an authority when reparsed. + def path_without_host(input, special) + segments = parse_path(input, special) + path = serialize_path(segments) + segments.size > 1 && segments[0].empty? ? "/.#{path}" : path + end + + # path start state and path state. Returns the list of path segments. + def parse_path(input, special) + separator = special ? SPECIAL_PATH_SEPARATOR : "/" + # path start state: a special URL always has a path, even an empty + # one; another URL has one only if anything follows the authority. + return [] if input.empty? && !special + input = input[1..-1] if input.start_with?("/") || (special && input.start_with?("\\")) + + buffers = input.split(separator, -1) + buffers = [""] if buffers.empty? + buffers.each_with_index.with_object([]) do |(buffer, i), path| + # Whether this segment is ended by the end of the path rather + # than by a separator. + last = i == buffers.size - 1 + if double_dot_segment?(buffer) + path.pop + path << "" if last + elsif single_dot_segment?(buffer) + path << "" if last + else + path << buffer + end + end + end + + def serialize_path(segments) + segments.map { |segment| "/#{segment}" }.join + end + + # https://url.spec.whatwg.org/#single-dot-path-segment + def single_dot_segment?(buffer) + buffer == "." || buffer.downcase == "%2e" + end + + # https://url.spec.whatwg.org/#double-dot-path-segment + def double_dot_segment?(buffer) + DOUBLE_DOT_SEGMENTS.include?(buffer.downcase) end # authority state, on "@": the last "@" ends the userinfo, and every diff --git a/test/uri/test_whatwg_parser.rb b/test/uri/test_whatwg_parser.rb index 63bbaf1..0f76f91 100644 --- a/test/uri/test_whatwg_parser.rb +++ b/test/uri/test_whatwg_parser.rb @@ -1152,6 +1152,166 @@ def test_parse_query_and_fragment assert_equal(["q", "f"], [uri.query, uri.fragment]) end + # --- path --------------------------------------------------------- + # https://url.spec.whatwg.org/#path-start-state + # https://url.spec.whatwg.org/#path-state + # https://url.spec.whatwg.org/#single-dot-path-segment + # https://url.spec.whatwg.org/#double-dot-path-segment + # https://url.spec.whatwg.org/#url-serializing (the "/." prefix) + + def path(input) + split(input)[PATH] + end + + def test_split_special_empty_path_is_slash + assert_equal("/", path("http://h")) + assert_equal("/", path("http://h?q")) + assert_equal("/", path("http://h#f")) + assert_equal("/", path("http://h:8080")) + end + + def test_split_special_path + assert_equal("/", path("http://h/")) + assert_equal("/a/b", path("http://h/a/b")) + assert_equal("/a/b/", path("http://h/a/b/")) + end + + def test_split_special_path_treats_backslash_as_slash + assert_equal("/a/b", path("http://h\\a\\b")) + assert_equal("/a/b/c", path("http://h/a\\b/c")) + assert_equal("/", path("http://h\\")) + end + + def test_split_path_keeps_empty_segments + assert_equal("//a//b", path("http://h//a//b")) + assert_equal("///", path("http://h///")) + end + + def test_split_single_dot_segments_are_removed + assert_equal("/a/b", path("http://h/a/./b")) + assert_equal("/a", path("http://h/./a")) + assert_equal("/a/", path("http://h/a/./")) + assert_equal("/a/b", path("http://h/a/././b")) + end + + def test_split_trailing_single_dot_keeps_slash + assert_equal("/a/", path("http://h/a/.")) + assert_equal("/", path("http://h/.")) + end + + def test_split_double_dot_segments_remove_previous_segment + assert_equal("/a/c", path("http://h/a/b/../c")) + assert_equal("/", path("http://h/a/../")) + assert_equal("/c", path("http://h/a/b/../../c")) + end + + def test_split_trailing_double_dot_keeps_slash + assert_equal("/a/", path("http://h/a/b/..")) + assert_equal("/", path("http://h/a/..")) + assert_equal("/", path("http://h/..")) + end + + def test_split_double_dot_does_not_go_above_root + assert_equal("/a", path("http://h/../a")) + assert_equal("/a", path("http://h/../../a")) + assert_equal("/", path("http://h/a/../../..")) + end + + def test_split_double_dot_removes_empty_segment + assert_equal("/a/", path("http://h/a//..")) + assert_equal("//b", path("http://h//a/../b")) + end + + def test_split_percent_encoded_single_dot + assert_equal("/a/b", path("http://h/a/%2e/b")) + assert_equal("/a/b", path("http://h/a/%2E/b")) + assert_equal("/a/", path("http://h/a/%2e")) + end + + def test_split_percent_encoded_double_dot + [".%2e", "%2e.", "%2e%2e", ".%2E", "%2E.", "%2E%2E", "%2e%2E"].each do |dots| + assert_equal("/a/c", path("http://h/a/b/#{dots}/c"), dots) + assert_equal("/a/", path("http://h/a/b/#{dots}"), dots) + end + end + + def test_split_segments_that_only_resemble_dots_are_kept + ["...", "a.", ".a", "..a", "a..", "%2e%2e%2e", "%2", "%2ex", "%2f", ". ", "%252e"].each do |segment| + assert_equal("/#{segment}/b", path("http://h/#{segment}/b"), segment) + end + end + + def test_split_dot_segments_with_backslash_in_special_url + assert_equal("/b", path("http://h/a\\..\\b")) + assert_equal("/a/", path("http://h/a\\.")) + end + + def test_split_dot_segments_before_query_and_fragment + assert_equal(["/", "q"], split("http://h/a/..?q").values_at(PATH, QUERY)) + assert_equal(["/a/", "f"], split("http://h/a/.#f").values_at(PATH, FRAGMENT)) + assert_equal(["/a/", "q"], split("http://h/a/%2e?q").values_at(PATH, QUERY)) + end + + def test_split_dot_segments_in_every_special_scheme + %w[https ws wss ftp].each do |scheme| + assert_equal("/b", path("#{scheme}://h/a/../b"), scheme) + assert_equal("/", path("#{scheme}://h"), scheme) + end + end + + def test_split_non_special_empty_path_stays_empty + assert_equal("", path("foo://h")) + assert_equal("", path("foo://h?q")) + assert_equal("/", path("foo://h/")) + end + + def test_split_non_special_dot_segments + assert_equal("/b", path("foo://h/a/../b")) + assert_equal("/a/b", path("foo:/a/./b")) + assert_equal("/", path("foo:/a/..")) + assert_equal("/a/", path("foo:/a/.")) + assert_equal("/b", path("foo:/%2e%2e/b")) + end + + def test_split_non_special_does_not_treat_backslash_as_separator + assert_equal("/a\\..\\b", path("foo://h/a\\..\\b")) + assert_equal("/a/..\\b", path("foo://h/a/..\\b")) + end + + def test_split_hostless_path_starting_with_two_slashes_gets_dot_prefix + assert_equal("/.//p", path("foo:/..//p")) + assert_equal("/.//p", path("foo:/.//p")) + assert_equal("/.//p", path("foo:/a/..//p")) + assert_equal("/.//", path("foo:/.//")) + end + + def test_split_no_dot_prefix_when_not_needed + assert_equal("/", path("foo:/./")) + assert_equal("/p", path("foo:/./p")) + assert_equal("//p", path("foo://h/..//p")) + assert_equal("//p", path("foo:///..//p")) + end + + def test_parse_dot_prefix_round_trips + uri = URI::WHATWG_PARSER.parse("foo:/..//p") + assert_equal("foo:/.//p", uri.to_s) + assert_equal("foo:/.//p", URI::WHATWG_PARSER.parse(uri.to_s).to_s) + end + + def test_split_file_path_dot_segments + # Interim until the file states (and Windows drive letters) are + # implemented. + assert_equal("/b", path("file:///a/../b")) + assert_equal("/b", path("file:/a/../b")) + end + + def test_split_path_in_linear_time + pre = ->(n) { "http://h" + "/a/.." * n + "/b" } + assert_linear_performance((1..4).map { |i| 10**i }, pre: pre) do |uri| + split(uri) + end + end + # --- host: opaque host --------------------------------------------- # https://url.spec.whatwg.org/#concept-opaque-host-parser diff --git a/test/wpt/test_wpt_harness.rb b/test/wpt/test_wpt_harness.rb index 9685fa7..f432500 100644 --- a/test/wpt/test_wpt_harness.rb +++ b/test/wpt/test_wpt_harness.rb @@ -149,6 +149,28 @@ def test_components_opaque_query_containing_question_mark assert_equal("?a?b", c["search"]) end + def hostless_uri(path) + URI::Generic.new("foo", nil, nil, nil, nil, path, nil, nil, nil) + end + + def test_components_drops_dot_prefix_of_hostless_path + # The URL serializer writes "/." before a hostless path starting with + # "//"; pathname does not include it. + c = WPT::URLTestData.components(hostless_uri("/.//p")) + assert_equal("//p", c["pathname"]) + assert_equal("foo:/.//p", c["href"]) + end + + def test_components_keeps_other_dot_paths + assert_equal("/./p", WPT::URLTestData.components(hostless_uri("/./p"))["pathname"]) + assert_equal("/.", WPT::URLTestData.components(hostless_uri("/."))["pathname"]) + end + + def test_components_keeps_dot_prefix_when_host_is_present + uri = URI::Generic.new("foo", nil, "", nil, nil, "/.//p", nil, nil, nil) + assert_equal("/.//p", WPT::URLTestData.components(uri)["pathname"]) + end + def test_components_empty_opaque c = WPT::URLTestData.components(opaque_uri("")) assert_equal("", c["pathname"]) diff --git a/test/wpt/urltestdata_exclusions.json b/test/wpt/urltestdata_exclusions.json index 66011e5..b72d2fc 100644 --- a/test/wpt/urltestdata_exclusions.json +++ b/test/wpt/urltestdata_exclusions.json @@ -1,19 +1,4 @@ [ - { - "input": "http://example\t.\norg", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "https://test:@test", - "base": null, - "reason": "unclassified" - }, - { - "input": "https://:@test", - "base": null, - "reason": "unclassified" - }, { "input": "http:foo.com", "base": "http://example.org/foo/bar", @@ -164,31 +149,6 @@ "base": "http://example.org/foo/bar", "reason": "unclassified" }, - { - "input": "http://foo.com/\\@", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "http:\\\\foo.com\\", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "http:\\\\a\\b:c\\d@foo.com\\", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "http://a:b@c\\", - "base": null, - "reason": "unclassified" - }, - { - "input": "ws://a@b\\c", - "base": null, - "reason": "unclassified" - }, { "input": "//foo/bar", "base": "http://example.org/foo/bar", @@ -204,26 +164,6 @@ "base": "http://example.org/foo/bar", "reason": "unclassified" }, - { - "input": "http://[2001::1]", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "http://[::127.0.0.1]", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "http://[0:0:0:0:0:0:13.1.68.3]", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "http://[2001::1]:80", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, { "input": "http:/example.com/", "base": "http://example.org/foo/bar", @@ -289,11 +229,6 @@ "base": "http://example.org/foo/bar", "reason": "unclassified" }, - { - "input": "file:c:\\foo\\bar.html", - "base": "file:///tmp/mock/path", - "reason": "unclassified" - }, { "input": " File:c|////foo\\bar.html", "base": "file:///tmp/mock/path", @@ -344,16 +279,6 @@ "base": "file:///tmp/mock/path", "reason": "unclassified" }, - { - "input": "file://test", - "base": "file:///tmp/mock/path", - "reason": "unclassified" - }, - { - "input": "file://localhost", - "base": "file:///tmp/mock/path", - "reason": "unclassified" - }, { "input": "test", "base": "file:///tmp/mock/path", @@ -374,86 +299,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "file:C||/m/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://example.com/././foo", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://example.com/./.foo", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://example.com/foo/.", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://example.com/foo/./", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://example.com/foo/bar/..", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://example.com/foo/bar/../", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://example.com/foo/bar/../ton", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://example.com/foo/bar/../ton/../../a", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://example.com/foo/../../..", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://example.com/foo/../../../ton", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://example.com/foo/%2e", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://example.com/foo/%2e./%2e%2e/.%2e/%2e.bar", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://example.com////../..", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://example.com/foo/bar//../..", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://example.com/foo/bar//..", - "base": null, - "reason": "unclassified" - }, { "input": "http://example.com/foo%2©zbar", "base": null, @@ -464,11 +309,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "http://example.com\\\\foo\\\\bar", - "base": null, - "reason": "unclassified" - }, { "input": "http://example.com/你好你好", "base": null, @@ -489,26 +329,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "http://www.google.com", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://192.0x00A80001", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://www/foo/%2E/html", - "base": null, - "reason": "unclassified" - }, - { - "input": "http:\\\\www.google.com\\foo", - "base": null, - "reason": "unclassified" - }, { "input": "ftp://foo:21/", "base": null, @@ -539,86 +359,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "https://example.com/aaa/bbb/%2e%2e?query", - "base": null, - "reason": "unclassified" - }, - { - "input": "http:@www.example.com", - "base": null, - "reason": "unclassified" - }, - { - "input": "http:/@www.example.com", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://@www.example.com", - "base": null, - "reason": "unclassified" - }, - { - "input": "http:a:b@www.example.com", - "base": null, - "reason": "unclassified" - }, - { - "input": "http:/a:b@www.example.com", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://a:b@www.example.com", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://@pple.com", - "base": null, - "reason": "unclassified" - }, - { - "input": "http::b@www.example.com", - "base": null, - "reason": "unclassified" - }, - { - "input": "http:/:b@www.example.com", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://:b@www.example.com", - "base": null, - "reason": "unclassified" - }, - { - "input": "http:a:@www.example.com", - "base": null, - "reason": "unclassified" - }, - { - "input": "http:/a:@www.example.com", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://a:@www.example.com", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://www.@pple.com", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://:@www.example.com", - "base": null, - "reason": "unclassified" - }, { "input": "/", "base": "http://www.example.com/test", @@ -669,46 +409,11 @@ "base": "http://www.example.com/test", "reason": "unclassified" }, - { - "input": "http://www.example2.com", - "base": "http://www.example.com/test", - "reason": "unclassified" - }, { "input": "//www.example2.com", "base": "http://www.example.com/test", "reason": "unclassified" }, - { - "input": "file:...", - "base": "http://www.example.com/test", - "reason": "unclassified" - }, - { - "input": "file:..", - "base": "http://www.example.com/test", - "reason": "unclassified" - }, - { - "input": "file:a", - "base": "http://www.example.com/test", - "reason": "unclassified" - }, - { - "input": "file:.", - "base": null, - "reason": "unclassified" - }, - { - "input": "file:.", - "base": "http://www.example.com/test", - "reason": "unclassified" - }, - { - "input": "http://ExAmPlE.CoM", - "base": "http://other.com/", - "reason": "unclassified" - }, { "input": "http://GOO  goo.com", "base": "http://other.com/", @@ -749,36 +454,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "http://a.b.c.xn--pokxncvks", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://10.0.0.xn--pokxncvks", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://a.b.c.XN--pokxncvks", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://a.b.c.Xn--pokxncvks", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://10.0.0.XN--pokxncvks", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://10.0.0.xN--pokxncvks", - "base": null, - "reason": "unclassified" - }, { "input": "http://Go.com", "base": "http://other.com/", @@ -814,16 +489,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "http://%30%78%63%30%2e%30%32%35%30.01", - "base": "http://other.com/", - "reason": "unclassified" - }, - { - "input": "http://%30%78%63%30%2e%30%32%35%30.01%2e", - "base": "http://other.com/", - "reason": "unclassified" - }, { "input": "http://0Xc0.0250.01", "base": "http://other.com/", @@ -849,16 +514,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "https://localhost?q=🔥", - "base": null, - "reason": "unclassified" - }, - { - "input": "https://localhost#🔥", - "base": null, - "reason": "unclassified" - }, { "input": "#", "base": "test:test", @@ -889,11 +544,6 @@ "base": "test:test?test", "reason": "unclassified" }, - { - "input": "https://@@@example", - "base": "http://doesnotmatter/", - "reason": "unclassified" - }, { "input": "http://`{}:`{}@h/`{}?`{}", "base": "http://doesnotmatter/", @@ -1004,21 +654,6 @@ "base": "sc:///pa/pa", "reason": "unclassified" }, - { - "input": "about:/../", - "base": null, - "reason": "unclassified" - }, - { - "input": "data:/../", - "base": null, - "reason": "unclassified" - }, - { - "input": "javascript:/../", - "base": null, - "reason": "unclassified" - }, { "input": "mailto:/../", "base": null, @@ -1099,81 +734,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "http://192.168.257", - "base": "http://other.com/", - "reason": "unclassified" - }, - { - "input": "http://192.168.257.", - "base": "http://other.com/", - "reason": "unclassified" - }, - { - "input": "http://192.168.257.com", - "base": "http://other.com/", - "reason": "unclassified" - }, - { - "input": "http://256", - "base": "http://other.com/", - "reason": "unclassified" - }, - { - "input": "http://256.com", - "base": "http://other.com/", - "reason": "unclassified" - }, - { - "input": "http://999999999", - "base": "http://other.com/", - "reason": "unclassified" - }, - { - "input": "http://999999999.", - "base": "http://other.com/", - "reason": "unclassified" - }, - { - "input": "http://999999999.com", - "base": "http://other.com/", - "reason": "unclassified" - }, - { - "input": "http://10000000000.com", - "base": "http://other.com/", - "reason": "unclassified" - }, - { - "input": "http://4294967295", - "base": "http://other.com/", - "reason": "unclassified" - }, - { - "input": "http://0xffffffff", - "base": "http://other.com/", - "reason": "unclassified" - }, - { - "input": "https://0x.0x.0", - "base": null, - "reason": "unclassified" - }, - { - "input": "https://0x.0x.0x.0x", - "base": null, - "reason": "unclassified" - }, - { - "input": "https://00.00.00.00", - "base": null, - "reason": "unclassified" - }, - { - "input": "https://0000000000000000000000000000000000000000177.0.0.1", - "base": null, - "reason": "unclassified" - }, { "input": "pix/submit.gif", "base": "file:///C:/Users/Domenic/Dropbox/GitHub/tmpvar/jsdom/test/level2/html/files/anchor.html", @@ -1254,31 +814,6 @@ "base": "file:///test?test#test", "reason": "unclassified" }, - { - "input": "file:\\\\\\\\", - "base": null, - "reason": "unclassified" - }, - { - "input": "file:\\\\\\\\?fox", - "base": null, - "reason": "unclassified" - }, - { - "input": "file:\\\\\\\\#guppy", - "base": null, - "reason": "unclassified" - }, - { - "input": "file://\\/localhost//cat", - "base": null, - "reason": "unclassified" - }, - { - "input": "file://localhost//a//../..//", - "base": null, - "reason": "unclassified" - }, { "input": "/////mouse", "base": "file:///elephant", @@ -1304,11 +839,6 @@ "base": "file://lion/", "reason": "unclassified" }, - { - "input": "file://", - "base": "file://ape/", - "reason": "unclassified" - }, { "input": "/rooibos", "base": "file://tea/", @@ -1374,11 +904,6 @@ "base": "file:///c:/baz/qux", "reason": "unclassified" }, - { - "input": "file:\\c:\\foo\\bar", - "base": "file:///c:/baz/qux", - "reason": "unclassified" - }, { "input": "/c:/foo/bar", "base": "file://host/path", @@ -1439,46 +964,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "file:", - "base": null, - "reason": "unclassified" - }, - { - "input": "file:?q=v", - "base": null, - "reason": "unclassified" - }, - { - "input": "file:#frag", - "base": null, - "reason": "unclassified" - }, - { - "input": "file:///./Y", - "base": null, - "reason": "unclassified" - }, - { - "input": "file:///./Y:", - "base": null, - "reason": "unclassified" - }, - { - "input": "file:///./y", - "base": null, - "reason": "unclassified" - }, - { - "input": "file:///./y:", - "base": null, - "reason": "unclassified" - }, - { - "input": "file://localhost//a//../..//foo", - "base": null, - "reason": "unclassified" - }, { "input": "//one/two", "base": "file:///", @@ -1494,11 +979,6 @@ "base": "file:///", "reason": "unclassified" }, - { - "input": "file:///.//", - "base": "file:////", - "reason": "unclassified" - }, { "input": "file:.//p", "base": null, @@ -1509,11 +989,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "http://[1:0::]", - "base": "http://example.net/", - "reason": "unclassified" - }, { "input": "#x", "base": "sc://ñ", @@ -1544,36 +1019,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "non-spec:/.//", - "base": null, - "reason": "unclassified" - }, - { - "input": "non-spec:/..//", - "base": null, - "reason": "unclassified" - }, - { - "input": "non-spec:/a/..//", - "base": null, - "reason": "unclassified" - }, - { - "input": "non-spec:/.//path", - "base": null, - "reason": "unclassified" - }, - { - "input": "non-spec:/..//path", - "base": null, - "reason": "unclassified" - }, - { - "input": "non-spec:/a/..//path", - "base": null, - "reason": "unclassified" - }, { "input": "/.//path", "base": "non-spec:/p", @@ -1609,26 +1054,6 @@ "base": "non-spec:/.//p", "reason": "unclassified" }, - { - "input": "http://0x7f.0.0.0x7g", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://0X7F.0.0.0X7G", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://[0:1:0:1:0:1:0:1]", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://[1:0:1:0:1:0:1:0]", - "base": null, - "reason": "unclassified" - }, { "input": "http://example.org/test?%GH", "base": null, @@ -1759,11 +1184,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "http://foo.09..", - "base": null, - "reason": "unclassified" - }, { "input": "http://💩.123/", "base": null, @@ -1834,16 +1254,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "data://test/a/../b", - "base": null, - "reason": "unclassified" - }, - { - "input": "javascript://test/a/../b", - "base": null, - "reason": "unclassified" - }, { "input": "mailto://example.com:8080/pathname?search#hash", "base": null, @@ -1859,26 +1269,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "intent://test/a/../b", - "base": null, - "reason": "unclassified" - }, - { - "input": "urn://test/a/../b", - "base": null, - "reason": "unclassified" - }, - { - "input": "turn://test/a/../b", - "base": null, - "reason": "unclassified" - }, - { - "input": "stun://test/a/../b", - "base": null, - "reason": "unclassified" - }, { "input": "///test", "base": "http://example.org/", diff --git a/test/wpt/wpt_url_test_data.rb b/test/wpt/wpt_url_test_data.rb index dc332ef..a25f9de 100644 --- a/test/wpt/wpt_url_test_data.rb +++ b/test/wpt/wpt_url_test_data.rb @@ -59,6 +59,9 @@ def components(uri) query = nil if question.empty? else pathname = uri.path.to_s + # The "/." the URL serializer writes before a hostless path that + # starts with "//" is not part of pathname. + pathname = pathname[2..-1] if uri.host.nil? && pathname.start_with?("/.//") query = uri.query end { From 1bae0bdf4f6c22363061d291d3be1eff8918338d Mon Sep 17 00:00:00 2001 From: jinroq Date: Tue, 3 Nov 2026 18:39:30 +0900 Subject: [PATCH 12/74] Percent-encode components in URI::WHATWG_Parser#split Apply the URL Standard's percent-encode sets: the fragment set to the fragment, the special-query or query set to the query, the path set to each path segment before the dot-segment checks, the userinfo set to the username and password separately, and the C0 control set to an opaque path. Existing percent signs are left alone. 44 more WPT urltestdata cases pass and are removed from the exclusions. Co-Authored-By: Claude Opus 5.5 --- lib/uri/whatwg_parser.rb | 33 +++- test/uri/test_whatwg_parser.rb | 142 ++++++++++++++++- test/wpt/urltestdata_exclusions.json | 220 --------------------------- 3 files changed, 166 insertions(+), 229 deletions(-) diff --git a/lib/uri/whatwg_parser.rb b/lib/uri/whatwg_parser.rb index 43ea736..353ba81 100644 --- a/lib/uri/whatwg_parser.rb +++ b/lib/uri/whatwg_parser.rb @@ -21,6 +21,11 @@ def split(uri) # :nodoc: # every state before the query state at the first "?" before it. rest, query, fragment = split_query_and_fragment(rest) + # query state and fragment state + special = SPECIAL_SCHEMES.key?(scheme) + query &&= utf8_percent_encode(query, special ? SPECIAL_QUERY_PERCENT_ENCODE_SET : QUERY_PERCENT_ENCODE_SET) + fragment &&= utf8_percent_encode(fragment, FRAGMENT_PERCENT_ENCODE_SET) + components = split_before_query(scheme, rest) if (opaque = components[6]) components[6] = opaque_with_query(opaque, query, fragment) @@ -80,11 +85,13 @@ def split_query_and_fragment(rest) [rest, query, fragment] end - # opaque path state: a space right before "?" or "#" is written as - # "%20". The query is kept inside opaque, as URI::RFC3986_Parser + # opaque path state: code points in the C0 control percent-encode set + # are percent-encoded, and a space right before "?" or "#" is written + # as "%20". The query is kept inside opaque, as URI::RFC3986_Parser # does, since URI::Generic does not serialize the query of an opaque # URI. def opaque_with_query(opaque, query, fragment) + opaque = utf8_percent_encode(opaque, C0_CONTROL_PERCENT_ENCODE_SET) opaque = opaque.sub(TRAILING_SPACE, "%20") if query || fragment query ? "#{opaque}?#{query}" : opaque end @@ -142,8 +149,23 @@ def split_before_query(scheme, rest) # https://url.spec.whatwg.org/#forbidden-domain-code-point # (forbidden host code points, C0 controls, "%" and U+007F DELETE) FORBIDDEN_DOMAIN_CODE_POINT = %r{[\x00-\x20#/:<>?@\[\\\]^|%\x7F]} # :nodoc: - # https://url.spec.whatwg.org/#c0-control-percent-encode-set - C0_CONTROL_PERCENT_ENCODE_SET = /[^\x20-\x7E]/ # :nodoc: + # Percent-encode sets, https://url.spec.whatwg.org/#percent-encoded-bytes. + # Each one adds to the previous one; [^\x00-\x7E] is every code point + # greater than U+007E. + # + # C0 controls and code points greater than U+007E + C0_CONTROL_PERCENT_ENCODE_SET = /[\x00-\x1F]|[^\x00-\x7E]/ # :nodoc: + # + U+0020 SPACE, U+0022 ("), U+003C (<), U+003E (>), U+0060 (`) + FRAGMENT_PERCENT_ENCODE_SET = /[\x00-\x20"<>`]|[^\x00-\x7E]/ # :nodoc: + # C0 control set + U+0020 SPACE, U+0022 ("), U+0023 (#), U+003C (<), U+003E (>) + QUERY_PERCENT_ENCODE_SET = /[\x00-\x20"#<>]|[^\x00-\x7E]/ # :nodoc: + # query set + U+0027 (') + SPECIAL_QUERY_PERCENT_ENCODE_SET = /[\x00-\x20"#<>']|[^\x00-\x7E]/ # :nodoc: + # query set + U+003F (?), U+005E (^), U+0060 (`), U+007B ({), U+007D (}) + PATH_PERCENT_ENCODE_SET = /[\x00-\x20"#<>?^`{}]|[^\x00-\x7E]/ # :nodoc: + # path set + U+002F (/), U+003A (:), U+003B (;), U+003D (=), U+0040 (@), + # U+005B ([) to U+005E (^), U+007C (|) + USERINFO_PERCENT_ENCODE_SET = %r{[\x00-\x20"#<>?^`{}/:;=@\[\\\]|]|[^\x00-\x7E]} # :nodoc: PERCENT_ENCODED_BYTE = /%[0-9A-Fa-f]{2}/ # :nodoc: ASCII_DIGITS = /\A[0-9]+\z/ # :nodoc: @@ -234,6 +256,7 @@ def parse_path(input, special) buffers = input.split(separator, -1) buffers = [""] if buffers.empty? buffers.each_with_index.with_object([]) do |(buffer, i), path| + buffer = utf8_percent_encode(buffer, PATH_PERCENT_ENCODE_SET) # Whether this segment is ended by the end of the path rather # than by a separator. last = i == buffers.size - 1 @@ -272,6 +295,8 @@ def split_userinfo(authority) raise InvalidURIError, "missing host after userinfo: #{authority.dump}" if host_and_port.empty? username, _, password = authority[0, at].gsub("@", "%40").partition(":") + username = utf8_percent_encode(username, USERINFO_PERCENT_ENCODE_SET) + password = utf8_percent_encode(password, USERINFO_PERCENT_ENCODE_SET) userinfo = if password.empty? username.empty? ? nil : username diff --git a/test/uri/test_whatwg_parser.rb b/test/uri/test_whatwg_parser.rb index 0f76f91..ae8dd2e 100644 --- a/test/uri/test_whatwg_parser.rb +++ b/test/uri/test_whatwg_parser.rb @@ -557,7 +557,7 @@ def test_split_colon_inside_brackets_is_not_port_delimiter end def test_split_brackets_in_userinfo_do_not_affect_port - assert_equal(["u[", "host", "8080"], split("http://u[@host:8080/").values_at(USERINFO, HOST, PORT)) + assert_equal(["u%5B", "host", "8080"], split("http://u[@host:8080/").values_at(USERINFO, HOST, PORT)) end def test_split_special_url_needs_host @@ -1136,9 +1136,11 @@ def test_split_opaque_path_trailing_spaces_are_stripped assert_equal("a", split("foo:a ")[OPAQUE]) end - def test_split_space_in_query_or_fragment_of_opaque_url_is_not_encoded_here - assert_equal("a? b", split("foo:a? b")[OPAQUE]) - assert_equal(" b", split("foo:a# b")[FRAGMENT]) + def test_split_space_in_query_or_fragment_of_opaque_url_uses_their_encode_sets + # The "%20" rule for the opaque path does not apply; the query and + # fragment percent-encode sets do. + assert_equal("a?%20b", split("foo:a? b")[OPAQUE]) + assert_equal("%20b", split("foo:a# b")[FRAGMENT]) end def test_parse_round_trip_with_query_and_fragment @@ -1236,7 +1238,7 @@ def test_split_percent_encoded_double_dot end def test_split_segments_that_only_resemble_dots_are_kept - ["...", "a.", ".a", "..a", "a..", "%2e%2e%2e", "%2", "%2ex", "%2f", ". ", "%252e"].each do |segment| + ["...", "a.", ".a", "..a", "a..", "%2e%2e%2e", "%2", "%2ex", "%2f", "%252e"].each do |segment| assert_equal("/#{segment}/b", path("http://h/#{segment}/b"), segment) end end @@ -1312,6 +1314,136 @@ def test_split_path_in_linear_time end end + # --- percent-encoding --------------------------------------------- + # https://url.spec.whatwg.org/#percent-encoded-bytes + + # Printable ASCII other than alphanumerics, including the space. + PUNCTUATION = (0x20..0x7E).map(&:chr).grep(/[^A-Za-z0-9]/).freeze + + # Returns the punctuation characters that the block, given "ab", + # percent-encodes, checking that each one comes back as "a%XXb". + def encoded_characters(component) + PUNCTUATION.reject { |c| yield(c) == "a#{c}b" }.each do |c| + assert_equal("a%%%02Xb" % c.ord, yield(c), "#{component} #{c.inspect}") + end + end + + def test_split_fragment_percent_encode_set + encoded = encoded_characters("fragment") { |c| split("http://h/#a#{c}b")[FRAGMENT] } + assert_equal([" ", '"', "<", ">", "`"], encoded) + end + + def test_split_special_query_percent_encode_set + # "#" never reaches the query; it starts the fragment. + encoded = encoded_characters("query") { |c| c == "#" ? "a#b" : split("http://h/?a#{c}b")[QUERY] } + assert_equal([" ", '"', "'", "<", ">"], encoded) + end + + def test_split_non_special_query_percent_encode_set + encoded = encoded_characters("query") { |c| c == "#" ? "a#b" : split("foo://h/?a#{c}b")[QUERY] } + assert_equal([" ", '"', "<", ">"], encoded) + end + + def test_split_path_percent_encode_set + # "/" separates segments, "?" and "#" end the path; "." and "%" are + # never encoded. + encoded = encoded_characters("path") do |c| + %w[/ ? #].include?(c) ? "a#{c}b" : split("foo://h/a#{c}b")[PATH].delete_prefix("/") + end + assert_equal([" ", '"', "<", ">", "^", "`", "{", "}"], encoded) + end + + def test_split_userinfo_percent_encode_set + # "/", "?", "#" end the authority; "@" and ":" are delimiters here. + encoded = encoded_characters("userinfo") do |c| + %w[/ ? # @ :].include?(c) ? "a#{c}b" : split("foo://a#{c}b@h/")[USERINFO] + end + assert_equal([" ", '"', ";", "<", "=", ">", "[", "\\", "]", "^", "`", "{", "|", "}"], encoded) + end + + def test_split_opaque_path_keeps_printable_ascii + PUNCTUATION.each do |c| + next if %w[? #].include?(c) + opaque = split("foo:a#{c}b")[OPAQUE] + assert_equal("a#{c}b", opaque, c.inspect) + end + end + + def test_split_percent_encodes_c0_controls_and_delete + ["\x01", "\x1F", "\x7F"].each do |c| + expected = "a%%%02Xb" % c.ord + assert_equal("/#{expected}", split("http://h/a#{c}b")[PATH], c.dump) + assert_equal(expected, split("http://h/?a#{c}b")[QUERY], c.dump) + assert_equal(expected, split("http://h/#a#{c}b")[FRAGMENT], c.dump) + assert_equal(expected, split("http://a#{c}b@h/")[USERINFO], c.dump) + assert_equal(expected, split("foo:a#{c}b")[OPAQUE], c.dump) + end + end + + def test_split_percent_encodes_null + assert_equal("/a%00b", split("http://h/a\x00b")[PATH]) + assert_equal("a%00b", split("foo:a\x00b")[OPAQUE]) + end + + def test_split_percent_encodes_non_ascii_as_utf8 + { + "\u0080" => "%C2%80", + "é" => "%C3%A9", + "あ" => "%E3%81%82", + "\u{1F600}" => "%F0%9F%98%80", + }.each do |c, encoded| + assert_equal("/#{encoded}", split("http://h/#{c}")[PATH], c) + assert_equal(encoded, split("http://h/?#{c}")[QUERY], c) + assert_equal(encoded, split("http://h/##{c}")[FRAGMENT], c) + assert_equal(encoded, split("http://#{c}@h/")[USERINFO], c) + assert_equal(encoded, split("foo:#{c}")[OPAQUE], c) + end + end + + def test_split_keeps_percent_encoded_and_stray_percent_signs + ["%41", "%zz", "%", "%4"].each do |s| + assert_equal("/#{s}", split("http://h/#{s}")[PATH], s) + assert_equal(s, split("http://h/?#{s}")[QUERY], s) + assert_equal(s, split("http://h/##{s}")[FRAGMENT], s) + assert_equal(s, split("http://#{s}@h/")[USERINFO], s) + assert_equal(s, split("foo:#{s}")[OPAQUE], s) + end + end + + def test_split_encodes_username_and_password_separately + # Only the first ":" separates them; later ones are encoded. + assert_equal("u:a%3Ab", split("http://u:a:b@h/")[USERINFO]) + assert_equal("a%20b:c%20d", split("http://a b:c d@h/")[USERINFO]) + end + + def test_split_encodes_userinfo_with_at_sign_kept_as_percent_40 + assert_equal("a%40b%20c", split("http://a@b c@h/")[USERINFO]) + end + + def test_split_encoded_path_is_not_a_dot_segment + assert_equal("/a/.%20/b", path("http://h/a/.%20/b")) + assert_equal("/a/.%20/b", path("http://h/a/. /b")) + assert_equal("/a/%E3%80%82/b", path("http://h/a/。/b")) + end + + def test_split_special_query_quote_differs_from_non_special + assert_equal("%27", split("ws://h/?'")[QUERY]) + assert_equal("'", split("foo:/?'")[QUERY]) + end + + def test_parse_percent_encoded_round_trip + uri = URI::WHATWG_PARSER.parse("http://u s@h/a b?c d#e f") + assert_equal("http://u%20s@h/a%20b?c%20d#e%20f", uri.to_s) + assert_equal(uri.to_s, URI::WHATWG_PARSER.parse(uri.to_s).to_s) + end + + def test_split_percent_encode_in_linear_time + pre = ->(n) { "http://h/" + "é" * n + "?" + "é" * n + "#" + "é" * n } + assert_linear_performance((1..4).map { |i| 10**i }, pre: pre) do |uri| + split(uri) + end + end + # --- host: opaque host --------------------------------------------- # https://url.spec.whatwg.org/#concept-opaque-host-parser diff --git a/test/wpt/urltestdata_exclusions.json b/test/wpt/urltestdata_exclusions.json index b72d2fc..7e124fe 100644 --- a/test/wpt/urltestdata_exclusions.json +++ b/test/wpt/urltestdata_exclusions.json @@ -14,11 +14,6 @@ "base": "http://example.org/foo/bar", "reason": "unclassified" }, - { - "input": "http://f:21/ b ? d # e ", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, { "input": "", "base": "http://example.org/foo/bar", @@ -129,26 +124,11 @@ "base": null, "reason": "unclassified" }, - { - "input": "http://é@example.com", - "base": null, - "reason": "unclassified" - }, { "input": "http::@c:29", "base": "http://example.org/foo/bar", "reason": "unclassified" }, - { - "input": "http://&a:foo(b]c@d:2/", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "http://::@c@d:2", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, { "input": "//foo/bar", "base": "http://example.org/foo/bar", @@ -299,36 +279,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "http://example.com/foo%2©zbar", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://example.com/foo\t‘%91", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://example.com/你好你好", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://example.com/‥/foo", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://example.com//foo", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://example.com/‮/foo/‭/bar", - "base": null, - "reason": "unclassified" - }, { "input": "ftp://foo:21/", "base": null, @@ -449,11 +399,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "https://x/�?�#�", - "base": null, - "reason": "unclassified" - }, { "input": "http://Go.com", "base": "http://other.com/", @@ -494,26 +439,6 @@ "base": "http://other.com/", "reason": "unclassified" }, - { - "input": "http://foo:💩@example.com/bar", - "base": "http://other.com/", - "reason": "unclassified" - }, - { - "input": "http://😀x@host/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://a:😀x@host/", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://😀@host/", - "base": null, - "reason": "unclassified" - }, { "input": "#", "base": "test:test", @@ -664,11 +589,6 @@ "base": "sc://ñ", "reason": "unclassified" }, - { - "input": "wow:￿", - "base": null, - "reason": "unclassified" - }, { "input": "ftp://example.com%80/", "base": null, @@ -714,26 +634,6 @@ "base": "http://example.org/foo/bar", "reason": "unclassified" }, - { - "input": "http://foo.bar/baz?qux#foo\"bar", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://foo.bar/baz?qux#foobar", - "base": null, - "reason": "unclassified" - }, - { - "input": "http://foo.bar/baz?qux#foo`bar", - "base": null, - "reason": "unclassified" - }, { "input": "pix/submit.gif", "base": "file:///C:/Users/Domenic/Dropbox/GitHub/tmpvar/jsdom/test/level2/html/files/anchor.html", @@ -1119,51 +1019,6 @@ "base": "https://example.org/##link", "reason": "unclassified" }, - { - "input": "non-special:cannot-be-a-base-url-\u0000\u0001\u001f\u001e~€", - "base": null, - "reason": "unclassified" - }, - { - "input": "https://www.example.com/path{path.html?query'=query#fragment<fragment", - "base": null, - "reason": "unclassified" - }, - { - "input": "https://user:pass[@foo/bar", - "base": "http://example.org", - "reason": "unclassified" - }, - { - "input": "foo:// !\"$%&'()*+,-.;<=>@[\\]^_`{|}~@host/", - "base": null, - "reason": "unclassified" - }, - { - "input": "wss:// !\"$%&'()*+,-.;<=>@[]^_`{|}~@host/", - "base": null, - "reason": "unclassified" - }, - { - "input": "foo://joe: !\"$%&'()*+,-.:;<=>@[\\]^_`{|}~@host/", - "base": null, - "reason": "unclassified" - }, - { - "input": "wss://joe: !\"$%&'()*+,-.:;<=>@[]^_`{|}~@host/", - "base": null, - "reason": "unclassified" - }, - { - "input": "foo://host/ !\"$%&'()*+,-./:;<=>@[\\]^_`{|}~", - "base": null, - "reason": "unclassified" - }, - { - "input": "wss://host/ !\"$%&'()*+,-./:;<=>@[\\]^_`{|}~", - "base": null, - "reason": "unclassified" - }, { "input": "foo://host/dir/? !\"$%&'()*+,-./:;<=>?@[\\]^_`{|}~", "base": null, @@ -1174,71 +1029,16 @@ "base": null, "reason": "unclassified" }, - { - "input": "foo://host/dir/# !\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~", - "base": null, - "reason": "unclassified" - }, - { - "input": "wss://host/dir/# !\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~", - "base": null, - "reason": "unclassified" - }, { "input": "http://💩.123/", "base": null, "reason": "unclassified" }, - { - "input": "https://x/\u0000y", - "base": null, - "reason": "unclassified" - }, { "input": "https://￿y", "base": null, "reason": "unclassified" }, - { - "input": "https://x/￿y", - "base": null, - "reason": "unclassified" - }, - { - "input": "non-special:\u0000y", - "base": null, - "reason": "unclassified" - }, - { - "input": "non-special:x/\u0000y", - "base": null, - "reason": "unclassified" - }, - { - "input": "non-special:x/?\u0000y", - "base": null, - "reason": "unclassified" - }, - { - "input": "non-special:￿y", - "base": null, - "reason": "unclassified" - }, - { - "input": "non-special:x/￿y", - "base": null, - "reason": "unclassified" - }, - { - "input": "non-special:x/?￿y", - "base": null, - "reason": "unclassified" - }, - { - "input": "https://example.com/\"quoted\"", - "base": null, - "reason": "unclassified" - }, { "input": "https://a%C2%ADb/", "base": null, @@ -1338,25 +1138,5 @@ "input": "\\\\a", "base": "foo://foo/a", "reason": "unclassified" - }, - { - "input": "data:text/plain,test# ", - "base": null, - "reason": "unclassified" - }, - { - "input": "about:blank# ", - "base": null, - "reason": "unclassified" - }, - { - "input": "data:text/plain,test#\u0000\u0001\t\n\r\u001f !\"#$%&'()*+,-./09:;<=>?@AZ[\\]^_`az{|}~€Éé", - "base": null, - "reason": "unclassified" - }, - { - "input": "about:blank#\u0000\u0001\t\n\r\u001f !\"#$%&'()*+,-./09:;<=>?@AZ[\\]^_`az{|}~€Éé", - "base": null, - "reason": "unclassified" } ] From 7c924e8b6a07953c08055bd48b2d6dc843cd192d Mon Sep 17 00:00:00 2001 From: jinroq Date: Tue, 3 Nov 2026 18:41:08 +0900 Subject: [PATCH 13/74] Build a URL record in URI::WHATWG_Parser before splitting Parse into a URL record (scheme, username, password, host, port, path segments or opaque path, query, fragment) as the URL Standard does, and convert it to the components URI::RFC3986_Parser#split returns afterwards. This keeps the serialization rules (userinfo, the "/." prefix, the query inside opaque) in one place and lets a parsed URL be used as a base for relative references. No behavior change. Co-Authored-By: Claude Opus 5.5 --- lib/uri/whatwg_parser.rb | 167 ++++++++++++++++++++------------------- 1 file changed, 85 insertions(+), 82 deletions(-) diff --git a/lib/uri/whatwg_parser.rb b/lib/uri/whatwg_parser.rb index 353ba81..abdc9d8 100644 --- a/lib/uri/whatwg_parser.rb +++ b/lib/uri/whatwg_parser.rb @@ -6,6 +6,11 @@ module URI # URI::WHATWG_PARSER.parse, or switch to it with # URI.parser = URI::WHATWG_PARSER. class WHATWG_Parser # :nodoc: + # A URL record (https://url.spec.whatwg.org/#concept-url). +path+ is an + # Array of segments, or a String for an opaque path. +port+ is an + # Integer, or nil when it is empty or the scheme's default port. + URLRecord = Struct.new(:scheme, :username, :password, :host, :port, :path, :query, :fragment) # :nodoc: + # Returns [scheme, userinfo, host, port, registry, path, opaque, query, # fragment], the same contract as URI::RFC3986_Parser#split. def split(uri) # :nodoc: @@ -14,26 +19,7 @@ def split(uri) # :nodoc: rescue NoMethodError raise InvalidURIError, "bad URI (is not URI?): #{uri.inspect}" end - uri = preprocess(to_utf8(uri)) - - scheme, rest = parse_scheme(uri) - # Every state before the fragment state ends at the first "#", and - # every state before the query state at the first "?" before it. - rest, query, fragment = split_query_and_fragment(rest) - - # query state and fragment state - special = SPECIAL_SCHEMES.key?(scheme) - query &&= utf8_percent_encode(query, special ? SPECIAL_QUERY_PERCENT_ENCODE_SET : QUERY_PERCENT_ENCODE_SET) - fragment &&= utf8_percent_encode(fragment, FRAGMENT_PERCENT_ENCODE_SET) - - components = split_before_query(scheme, rest) - if (opaque = components[6]) - components[6] = opaque_with_query(opaque, query, fragment) - else - components[7] = query - end - components[8] = fragment - components + to_components(basic_parse(uri)) end def parse(uri) # :nodoc: @@ -77,52 +63,86 @@ def unescape(str, escaped = nil) # :nodoc: private - def split_query_and_fragment(rest) - rest, hash, fragment = rest.partition("#") - fragment = nil if hash.empty? - rest, question, query = rest.partition("?") - query = nil if question.empty? - [rest, query, fragment] - end + # basic URL parser + def basic_parse(input) + input = preprocess(to_utf8(input)) + + scheme, rest = parse_scheme(input) + # Every state before the fragment state ends at the first "#", and + # every state before the query state at the first "?" before it. + rest, query, fragment = split_query_and_fragment(rest) + + url = URLRecord.new(scheme, "", "", nil, nil, [], nil, nil) + special = SPECIAL_SCHEMES.key?(scheme) + # query state and fragment state + url.query = query && utf8_percent_encode(query, special ? SPECIAL_QUERY_PERCENT_ENCODE_SET : QUERY_PERCENT_ENCODE_SET) + url.fragment = fragment && utf8_percent_encode(fragment, FRAGMENT_PERCENT_ENCODE_SET) - # opaque path state: code points in the C0 control percent-encode set - # are percent-encoded, and a space right before "?" or "#" is written - # as "%20". The query is kept inside opaque, as URI::RFC3986_Parser - # does, since URI::Generic does not serialize the query of an opaque - # URI. - def opaque_with_query(opaque, query, fragment) - opaque = utf8_percent_encode(opaque, C0_CONTROL_PERCENT_ENCODE_SET) - opaque = opaque.sub(TRAILING_SPACE, "%20") if query || fragment - query ? "#{opaque}?#{query}" : opaque - end - - # Splits everything after the scheme and before the query into the - # components, leaving query and fragment nil. - def split_before_query(scheme, rest) if scheme == "file" # Approximates file state, file slash state and file host state # until they are implemented: exactly two leading "/" or "\\" # start a host, which may be empty. if rest.match?(FILE_SLASHES) - split_authority(scheme, rest[2..-1], true, host_required: false) + parse_authority(url, rest[2..-1], true, host_required: false) else - [scheme, nil, nil, nil, nil, path_without_host(rest, true), nil, nil, nil] + url.path = parse_path(rest, true) end - elsif SPECIAL_SCHEMES.key?(scheme) + elsif special # special authority slashes state and special authority ignore # slashes state: skip any run of "/" or "\\". - split_authority(scheme, rest.sub(SPECIAL_AUTHORITY_SLASHES, ""), true) + parse_authority(url, rest.sub(SPECIAL_AUTHORITY_SLASHES, ""), true) elsif rest.start_with?("/") # path or authority state if rest.start_with?("//") - split_authority(scheme, rest[2..-1], false) + parse_authority(url, rest[2..-1], false) else - [scheme, nil, nil, nil, nil, path_without_host(rest, false), nil, nil, nil] + url.path = parse_path(rest, false) end else - # opaque path state - [scheme, nil, nil, nil, nil, nil, rest, nil, nil] + url.path = parse_opaque_path(rest, query || fragment) end + url + end + + # The URL record as the components of URI::RFC3986_Parser#split. + def to_components(url) + userinfo = + if url.password.empty? + url.username.empty? ? nil : url.username + else + "#{url.username}:#{url.password}" + end + port = url.port&.to_s + + if url.path.is_a?(String) + # The query is kept inside opaque, as URI::RFC3986_Parser does, + # since URI::Generic does not serialize the query of an opaque URI. + opaque = url.query ? "#{url.path}?#{url.query}" : url.path + [url.scheme, userinfo, url.host, port, nil, nil, opaque, nil, url.fragment] + else + path = serialize_path(url.path) + # The URL serializer writes "/." before a hostless path that would + # otherwise start with "//", so it is not mistaken for an + # authority when reparsed. + path = "/.#{path}" if url.host.nil? && url.path.size > 1 && url.path[0].empty? + [url.scheme, userinfo, url.host, port, nil, path, nil, url.query, url.fragment] + end + end + + def split_query_and_fragment(rest) + rest, hash, fragment = rest.partition("#") + fragment = nil if hash.empty? + rest, question, query = rest.partition("?") + query = nil if question.empty? + [rest, query, fragment] + end + + # opaque path state: code points in the C0 control percent-encode set + # are percent-encoded, and a space right before "?" or "#" (when + # +followed+ by a query or fragment) is written as "%20". + def parse_opaque_path(input, followed) + opaque = utf8_percent_encode(input, C0_CONTROL_PERCENT_ENCODE_SET) + followed ? opaque.sub(TRAILING_SPACE, "%20") : opaque end # https://url.spec.whatwg.org/#special-scheme @@ -219,30 +239,19 @@ def parse_scheme(input) [scheme.chop.downcase, input[scheme.size..-1]] end - # authority state and host state. +rest+ starts right after the - # slashes preceding the authority. - def split_authority(scheme, rest, special, host_required: special) + # authority state, host state, port state and the path after them. + # +rest+ starts right after the slashes preceding the authority. + def parse_authority(url, rest, special, host_required: special) authority_end = rest.index(special ? SPECIAL_AUTHORITY_END : AUTHORITY_END) || rest.size authority = rest[0, authority_end] remainder = rest[authority_end..-1] - userinfo, host_and_port = split_userinfo(authority) + url.username, url.password, host_and_port = split_userinfo(authority) host, port = split_host_and_port(host_and_port) raise InvalidURIError, "missing host: #{rest.dump}" if host.empty? && (host_required || port) - host = parse_host(host, special) unless host.empty? - port = parse_port(port, scheme) if port - - path = serialize_path(parse_path(remainder, special)) - [scheme, userinfo, host, port, nil, path, nil, nil, nil] - end - - # The path of a URL without a host. The URL serializer writes "/." - # before such a path when it would otherwise start with "//", so it - # is not mistaken for an authority when reparsed. - def path_without_host(input, special) - segments = parse_path(input, special) - path = serialize_path(segments) - segments.size > 1 && segments[0].empty? ? "/.#{path}" : path + url.host = host.empty? ? host : parse_host(host, special) + url.port = parse_port(port, url.scheme) if port + url.path = parse_path(remainder, special) end # path start state and path state. Returns the list of path segments. @@ -287,23 +296,17 @@ def double_dot_segment?(buffer) # authority state, on "@": the last "@" ends the userinfo, and every # earlier one is part of it, as "%40". The first ":" separates the - # username from the password. Returns the userinfo as the URL - # serializer writes it (nil when both parts are empty), and the rest. + # username from the password. Returns the percent-encoded username + # and password, and the rest. def split_userinfo(authority) - at = authority.rindex("@") or return [nil, authority] + at = authority.rindex("@") or return ["", "", authority] host_and_port = authority[at + 1..-1] raise InvalidURIError, "missing host after userinfo: #{authority.dump}" if host_and_port.empty? username, _, password = authority[0, at].gsub("@", "%40").partition(":") - username = utf8_percent_encode(username, USERINFO_PERCENT_ENCODE_SET) - password = utf8_percent_encode(password, USERINFO_PERCENT_ENCODE_SET) - userinfo = - if password.empty? - username.empty? ? nil : username - else - "#{username}:#{password}" - end - [userinfo, host_and_port] + [utf8_percent_encode(username, USERINFO_PERCENT_ENCODE_SET), + utf8_percent_encode(password, USERINFO_PERCENT_ENCODE_SET), + host_and_port] end # host state: the first ":" outside "[...]" starts the port. @@ -321,8 +324,8 @@ def split_host_and_port(host_and_port) end # port state. +input+ is everything between the ":" and the end of - # the authority. Returns the port as a decimal string, or nil when it - # is empty or the scheme's default port. + # the authority. Returns the port, or nil when it is empty or the + # scheme's default port. # # A port with more significant digits than 65535 has is rejected # without converting it. @@ -333,7 +336,7 @@ def parse_port(input, scheme) digits = input.sub(LEADING_ZEROS, "") port = digits.size > PORT_MAX_DIGITS ? MAX_PORT + 1 : digits.to_i raise InvalidURIError, "port out of range: #{input.dump}" if port > MAX_PORT - port == SPECIAL_SCHEMES[scheme] ? nil : port.to_s + port == SPECIAL_SCHEMES[scheme] ? nil : port end # host parser From f75397d6a57b4eadc48eab63c3cf8e1188c43c6b Mon Sep 17 00:00:00 2001 From: jinroq Date: Tue, 3 Nov 2026 18:43:20 +0900 Subject: [PATCH 14/74] Resolve relative references in URI::WHATWG_Parser#join join now parses the base into a URL record and parses each further argument with it as the base URL, following the URL Standard's no scheme state, special relative or authority state, relative state and relative slash state, instead of using URI::Generic#merge: * Input without a scheme is relative to the base. A special scheme equal to the base's is too, unless two slashes follow it. * An empty reference keeps the base path and query; "?..." keeps the path; a path keeps the base authority and resolves its segments against the shortened base path. The base fragment is never kept. * A base with an opaque path only accepts a fragment. split and parse still fail for input without a scheme, as there is no base. 132 more WPT urltestdata cases pass and are removed from the exclusions. Co-Authored-By: Claude Opus 5.5 --- lib/uri/whatwg_parser.rb | 104 ++++- test/uri/test_whatwg_parser.rb | 211 +++++++++ test/wpt/urltestdata_exclusions.json | 660 --------------------------- 3 files changed, 295 insertions(+), 680 deletions(-) diff --git a/lib/uri/whatwg_parser.rb b/lib/uri/whatwg_parser.rb index abdc9d8..f90da1d 100644 --- a/lib/uri/whatwg_parser.rb +++ b/lib/uri/whatwg_parser.rb @@ -26,9 +26,14 @@ def parse(uri) # :nodoc: URI.for(*split(uri), self) end + # Resolves each of +uris+ after the first against the result so far, + # as the URL Standard's basic URL parser does with a base URL. def join(*uris) # :nodoc: - uris[0] = convert_to_uri(uris[0]) - uris.inject :merge + uris[1..-1].inject(convert_to_uri(uris[0])) do |base, uri| + reference = uri.is_a?(URI::Generic) ? uri.to_s : String.try_convert(uri) + raise ArgumentError, "bad argument (expected URI object or URI string)" unless reference + URI.for(*to_components(basic_parse(reference, basic_parse(base.to_s))), self) + end end # Component syntax used by URI::Generic's setters is shared with @@ -63,11 +68,25 @@ def unescape(str, escaped = nil) # :nodoc: private - # basic URL parser - def basic_parse(input) + # basic URL parser, with an optional +base+ URL record. + def basic_parse(input, base = nil) input = preprocess(to_utf8(input)) scheme, rest = parse_scheme(input) + relative = scheme.nil? + if relative + # no scheme state + raise InvalidURIError, "missing scheme: #{input.dump}" unless base + if base.path.is_a?(String) && !rest.start_with?("#") + raise InvalidURIError, "relative reference to a URL with an opaque path: #{input.dump}" + end + scheme = base.scheme + elsif base && scheme == base.scheme && scheme != "file" && SPECIAL_SCHEMES.key?(scheme) + # special relative or authority state: two slashes start an + # authority; anything else is relative to the base. + relative = !rest.match?(TWO_SLASHES) + end + # Every state before the fragment state ends at the first "#", and # every state before the query state at the first "?" before it. rest, query, fragment = split_query_and_fragment(rest) @@ -78,11 +97,13 @@ def basic_parse(input) url.query = query && utf8_percent_encode(query, special ? SPECIAL_QUERY_PERCENT_ENCODE_SET : QUERY_PERCENT_ENCODE_SET) url.fragment = fragment && utf8_percent_encode(fragment, FRAGMENT_PERCENT_ENCODE_SET) - if scheme == "file" + if relative + parse_relative(url, rest, base, special) + elsif scheme == "file" # Approximates file state, file slash state and file host state # until they are implemented: exactly two leading "/" or "\\" # start a host, which may be empty. - if rest.match?(FILE_SLASHES) + if rest.match?(TWO_SLASHES) parse_authority(url, rest[2..-1], true, host_required: false) else url.path = parse_path(rest, true) @@ -104,6 +125,48 @@ def basic_parse(input) url end + # relative state and relative slash state. +rest+ is the input after + # any scheme, without query and fragment, which +url+ already has. + def parse_relative(url, rest, base, special) + if base.path.is_a?(String) + # no scheme state, for a base with an opaque path: only a + # fragment may be given. + url.path = base.path + url.query = base.query + return + end + + if rest.start_with?("/") || (special && rest.start_with?("\\")) + # relative slash state + if special && rest.match?(TWO_SLASHES) + return parse_authority(url, rest.sub(SPECIAL_AUTHORITY_SLASHES, ""), true) + elsif !special && rest.start_with?("//") + return parse_authority(url, rest[2..-1], false) + end + copy_authority(url, base) + url.path = parse_path(rest, special) + else + copy_authority(url, base) + if rest.empty? + # c is EOF, "?" or "#": the base path, and the base query unless + # a query is given. + url.path = base.path.dup + url.query = base.query if url.query.nil? + else + path = base.path.dup + path.pop # shorten + url.path = parse_path(rest, special, path) + end + end + end + + def copy_authority(url, base) + url.username = base.username + url.password = base.password + url.host = base.host + url.port = base.port + end + # The URL record as the components of URI::RFC3986_Parser#split. def to_components(url) userinfo = @@ -160,7 +223,8 @@ def parse_opaque_path(input, followed) SCHEME = /\A[A-Za-z][A-Za-z0-9+\-.]*:/ # :nodoc: SPECIAL_AUTHORITY_SLASHES = %r{\A[/\\]*} # :nodoc: - FILE_SLASHES = %r{\A[/\\]{2}} # :nodoc: + # Two of "/" or "\\", which start an authority in a special URL. + TWO_SLASHES = %r{\A[/\\]{2}} # :nodoc: AUTHORITY_END = %r{[/?#]} # :nodoc: SPECIAL_AUTHORITY_END = %r{[/?#\\]} # :nodoc: @@ -230,12 +294,11 @@ def preprocess(input) input[first..last].delete(ASCII_TAB_OR_NEWLINE) end - # Returns the ASCII-lowercased scheme and the rest of +input+ after - # the ":". Without a scheme, the no scheme state fails, since there - # is no base URL. + # scheme start state and scheme state. Returns the ASCII-lowercased + # scheme and the rest of +input+ after the ":", or nil and +input+ + # when there is no scheme. def parse_scheme(input) - scheme = input[SCHEME] or - raise InvalidURIError, "missing scheme: #{input.dump}" + scheme = input[SCHEME] or return [nil, input] [scheme.chop.downcase, input[scheme.size..-1]] end @@ -254,28 +317,29 @@ def parse_authority(url, rest, special, host_required: special) url.path = parse_path(remainder, special) end - # path start state and path state. Returns the list of path segments. - def parse_path(input, special) + # path start state and path state. Returns the list of path segments, + # appended to +path+ (the shortened base path of a relative reference). + def parse_path(input, special, path = []) separator = special ? SPECIAL_PATH_SEPARATOR : "/" # path start state: a special URL always has a path, even an empty # one; another URL has one only if anything follows the authority. - return [] if input.empty? && !special + return path if input.empty? && !special input = input[1..-1] if input.start_with?("/") || (special && input.start_with?("\\")) buffers = input.split(separator, -1) buffers = [""] if buffers.empty? - buffers.each_with_index.with_object([]) do |(buffer, i), path| + buffers.each_with_index.with_object(path) do |(buffer, i), segments| buffer = utf8_percent_encode(buffer, PATH_PERCENT_ENCODE_SET) # Whether this segment is ended by the end of the path rather # than by a separator. last = i == buffers.size - 1 if double_dot_segment?(buffer) - path.pop - path << "" if last + segments.pop + segments << "" if last elsif single_dot_segment?(buffer) - path << "" if last + segments << "" if last else - path << buffer + segments << buffer end end end diff --git a/test/uri/test_whatwg_parser.rb b/test/uri/test_whatwg_parser.rb index ae8dd2e..bc51b02 100644 --- a/test/uri/test_whatwg_parser.rb +++ b/test/uri/test_whatwg_parser.rb @@ -1444,6 +1444,217 @@ def test_split_percent_encode_in_linear_time end end + # --- relative references ------------------------------------------ + # https://url.spec.whatwg.org/#no-scheme-state + # https://url.spec.whatwg.org/#special-relative-or-authority-state + # https://url.spec.whatwg.org/#relative-state + # https://url.spec.whatwg.org/#relative-slash-state + + RFC3986_BASE = "http://a/b/c/d;p?q" + + def join(*uris) + URI::WHATWG_PARSER.join(*uris).to_s + end + + def test_join_rfc3986_normal_examples + # RFC 3986, 5.4.1, except that "g:h" is left out (another scheme). + { + "g" => "http://a/b/c/g", + "./g" => "http://a/b/c/g", + "g/" => "http://a/b/c/g/", + "/g" => "http://a/g", + "//g" => "http://g/", + "?y" => "http://a/b/c/d;p?y", + "g?y" => "http://a/b/c/g?y", + "#s" => "http://a/b/c/d;p?q#s", + "g#s" => "http://a/b/c/g#s", + "g?y#s" => "http://a/b/c/g?y#s", + ";x" => "http://a/b/c/;x", + "g;x" => "http://a/b/c/g;x", + "g;x?y#s" => "http://a/b/c/g;x?y#s", + "" => "http://a/b/c/d;p?q", + "." => "http://a/b/c/", + "./" => "http://a/b/c/", + ".." => "http://a/b/", + "../" => "http://a/b/", + "../g" => "http://a/b/g", + "../.." => "http://a/", + "../../" => "http://a/", + "../../g" => "http://a/g", + }.each do |rel, expected| + assert_equal(expected, join(RFC3986_BASE, rel), rel) + end + end + + def test_join_rfc3986_abnormal_examples + # RFC 3986, 5.4.2. "http:g" differs: the URL Standard resolves a + # special scheme equal to the base's as a relative reference. + { + "../../../g" => "http://a/g", + "../../../../g" => "http://a/g", + "/./g" => "http://a/g", + "/../g" => "http://a/g", + "g." => "http://a/b/c/g.", + ".g" => "http://a/b/c/.g", + "g.." => "http://a/b/c/g..", + "..g" => "http://a/b/c/..g", + "./../g" => "http://a/b/g", + "./g/." => "http://a/b/c/g/", + "g/./h" => "http://a/b/c/g/h", + "g/../h" => "http://a/b/c/h", + "g;x=1/./y" => "http://a/b/c/g;x=1/y", + "g;x=1/../y" => "http://a/b/c/y", + "g?y/./x" => "http://a/b/c/g?y/./x", + "g?y/../x" => "http://a/b/c/g?y/../x", + "g#s/./x" => "http://a/b/c/g#s/./x", + "g#s/../x" => "http://a/b/c/g#s/../x", + "http:g" => "http://a/b/c/g", + }.each do |rel, expected| + assert_equal(expected, join(RFC3986_BASE, rel), rel) + end + end + + def test_join_same_special_scheme_is_relative + assert_equal("http://a/b/c/g", join(RFC3986_BASE, "HTTP:g")) + assert_equal("http://a/g", join(RFC3986_BASE, "http:/g")) + assert_equal("http://g/", join(RFC3986_BASE, "http://g")) + assert_equal("http://g/", join(RFC3986_BASE, "http:\\\\g")) + assert_equal("http://a/b/c/d;p?y", join(RFC3986_BASE, "http:?y")) + end + + def test_join_other_special_scheme_is_absolute + assert_equal("https://g/", join(RFC3986_BASE, "https:g")) + assert_equal("ws://g/", join(RFC3986_BASE, "ws:/g")) + end + + def test_join_non_special_scheme_is_absolute + assert_equal("g:h", join(RFC3986_BASE, "g:h")) + assert_equal("c:/foo", join(RFC3986_BASE, "c:/foo")) + end + + def test_join_backslash_in_special_relative_reference + assert_equal("http://a/g", join(RFC3986_BASE, "\\g")) + assert_equal("http://g/", join(RFC3986_BASE, "\\\\g")) + assert_equal("http://g/", join(RFC3986_BASE, "/\\g")) + assert_equal("http://g/", join(RFC3986_BASE, "\\/g")) + assert_equal("http://a/b/c/g/h", join(RFC3986_BASE, "g\\h")) + end + + def test_join_network_path_skips_extra_slashes_for_special + assert_equal("http://g/", join(RFC3986_BASE, "///g")) + assert_equal("http://u@g:8080/x", join(RFC3986_BASE, "//u@g:8080/x")) + end + + def test_join_network_path_without_host_fails_for_special + ["//", "///", "\\\\"].each do |rel| + assert_raise(URI::InvalidURIError, rel) { join(RFC3986_BASE, rel) } + end + end + + def test_join_keeps_base_userinfo_and_port + assert_equal("http://u:p@a:8080/c", join("http://u:p@a:8080/b", "c")) + assert_equal("http://u:p@a:8080/c", join("http://u:p@a:8080/b", "/c")) + end + + def test_join_does_not_keep_base_fragment + assert_equal("http://a/b", join("http://a/b#f", "")) + assert_equal("http://a/b?x", join("http://a/b#f", "?x")) + assert_equal("http://a/c", join("http://a/b#f", "c")) + end + + def test_join_keeps_base_query_only_without_path_or_query + assert_equal("http://a/b?q", join("http://a/b?q", "")) + assert_equal("http://a/b?q#f", join("http://a/b?q", "#f")) + assert_equal("http://a/b?", join("http://a/b?q", "?")) + assert_equal("http://a/c", join("http://a/b?q", "c")) + assert_equal("http://a/c", join("http://a/b?q", "/c")) + end + + def test_join_empty_query_and_fragment + assert_equal("http://a/b/c/d;p?", join(RFC3986_BASE, "?")) + assert_equal("http://a/b/c/d;p?q#", join(RFC3986_BASE, "#")) + end + + def test_join_preprocesses_relative_reference + assert_equal("http://a/b/c/g", join(RFC3986_BASE, " \tg\n ")) + end + + def test_join_percent_encodes_relative_reference + assert_equal("http://a/b/c/a%20b?c%20d#e%20f", join(RFC3986_BASE, "a b?c d#e f")) + assert_equal("http://a/b/c/d;p?%27", join(RFC3986_BASE, "?'")) + end + + def test_join_non_special_base + base = "foo://h/a/b" + assert_equal("foo://h/a/c", join(base, "c")) + assert_equal("foo://x/y", join(base, "//x/y")) + assert_equal("foo://h/c", join(base, "/c")) + assert_equal("foo://h/a/", join(base, ".")) + assert_equal("foo://h/", join(base, "../..")) + end + + def test_join_non_special_base_does_not_treat_backslash_as_slash + assert_equal("foo://h/\\x", join("foo://h/a/b", "/\\x")) + assert_equal("foo://h/a/\\x", join("foo://h/a/b", "\\x")) + end + + def test_join_non_special_base_with_empty_host + assert_equal("foo:///a/c", join("foo:///a/b", "c")) + assert_equal("foo://", join("foo://", "")) + end + + def test_join_hostless_base + assert_equal("foo:/a/c", join("foo:/a/b", "c")) + assert_equal("foo:/.//c", join("foo:/a/b", "..//c")) + assert_equal("foo:/c", join("foo:/a/b", "/c")) + end + + def test_join_base_with_opaque_path_accepts_only_fragment + assert_equal("foo:bar#f", join("foo:bar", "#f")) + assert_equal("foo:bar?q#f", join("foo:bar?q", "#f")) + assert_equal("foo:bar#", join("foo:bar#x", "#")) + end + + def test_join_base_with_opaque_path_rejects_anything_else + ["", "x", "?q", "/x", "//x"].each do |rel| + assert_raise(URI::InvalidURIError, rel) { join("foo:bar", rel) } + end + end + + def test_join_with_multiple_references + assert_equal("http://a/b/d/e", join("http://a/b/c", "d/", "e")) + assert_equal("http://x/z", join("http://a/b", "http://x/y", "z")) + end + + def test_join_with_uri_objects + base = URI::WHATWG_PARSER.parse("http://a/b/c") + assert_equal("http://a/b/d", join(base, "d")) + assert_equal("http://x/", join("http://a/", URI::WHATWG_PARSER.parse("http://x/"))) + end + + def test_join_result_is_bound_to_whatwg_parser + assert_same(URI::WHATWG_PARSER, URI::WHATWG_PARSER.join("http://a/b", "c").parser) + end + + def test_join_fails_without_absolute_base + assert_raise(URI::InvalidURIError) { join("g", "h") } + assert_raise(URI::InvalidURIError) { join(URI::RFC3986_PARSER.parse("g"), "h") } + end + + def test_join_rejects_non_string_reference + assert_raise(ArgumentError) { join("http://a/", nil) } + assert_raise(ArgumentError) { join("http://a/", 1) } + end + + def test_uri_join_uses_whatwg_parser_after_switch + URI.parser = URI::WHATWG_PARSER + assert_equal("http://a/b/c/g", URI.join(RFC3986_BASE, "http:g").to_s) + end + + def test_split_without_base_still_fails_for_relative_reference + assert_raise(URI::InvalidURIError) { split("g") } + end + # --- host: opaque host --------------------------------------------- # https://url.spec.whatwg.org/#concept-opaque-host-parser diff --git a/test/wpt/urltestdata_exclusions.json b/test/wpt/urltestdata_exclusions.json index 7e124fe..48ffdef 100644 --- a/test/wpt/urltestdata_exclusions.json +++ b/test/wpt/urltestdata_exclusions.json @@ -1,159 +1,9 @@ [ - { - "input": "http:foo.com", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "\t :foo.com \n", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": " foo.com ", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": " \t", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": ":foo.com/", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": ":foo.com\\", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": ":", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": ":a", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": ":/", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": ":\\", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": ":#", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "#", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "#/", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "#\\", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "#;?", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "?", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "/", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": ":23", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "/:23", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "\\x", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "\\\\x\\hello", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "::", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "::23", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, { "input": "http://é@é", "base": null, "reason": "unclassified" }, - { - "input": "http::@c:29", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "//foo/bar", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "[61:24:74]:98", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "http:[61:27]/:foo", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "http:/example.com/", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "http:/", - "base": "http://example.com/", - "reason": "unclassified" - }, { "input": "ftp:/example.com/", "base": "http://example.org/foo/bar", @@ -169,11 +19,6 @@ "base": "http://example.org/foo/bar", "reason": "unclassified" }, - { - "input": "http:example.com/", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, { "input": "ftp:example.com/", "base": "http://example.org/foo/bar", @@ -184,31 +29,6 @@ "base": "http://example.org/foo/bar", "reason": "unclassified" }, - { - "input": "/a/b/c", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "/a/ /c", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "/a%2fc", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "/a/%2f/c", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "#β", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, { "input": " File:c|////foo\\bar.html", "base": "file:///tmp/mock/path", @@ -229,21 +49,6 @@ "base": "file:///tmp/mock/path", "reason": "unclassified" }, - { - "input": "//server/file", - "base": "file:///tmp/mock/path", - "reason": "unclassified" - }, - { - "input": "\\\\server\\file", - "base": "file:///tmp/mock/path", - "reason": "unclassified" - }, - { - "input": "/\\server/file", - "base": "file:///tmp/mock/path", - "reason": "unclassified" - }, { "input": "//", "base": "file:///tmp/mock/path", @@ -259,11 +64,6 @@ "base": "file:///tmp/mock/path", "reason": "unclassified" }, - { - "input": "test", - "base": "file:///tmp/mock/path", - "reason": "unclassified" - }, { "input": "file:test", "base": "file:///tmp/mock/path", @@ -309,61 +109,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "/", - "base": "http://www.example.com/test", - "reason": "unclassified" - }, - { - "input": "/test.txt", - "base": "http://www.example.com/test", - "reason": "unclassified" - }, - { - "input": ".", - "base": "http://www.example.com/test", - "reason": "unclassified" - }, - { - "input": "..", - "base": "http://www.example.com/test", - "reason": "unclassified" - }, - { - "input": "test.txt", - "base": "http://www.example.com/test", - "reason": "unclassified" - }, - { - "input": "./test.txt", - "base": "http://www.example.com/test", - "reason": "unclassified" - }, - { - "input": "../test.txt", - "base": "http://www.example.com/test", - "reason": "unclassified" - }, - { - "input": "../aaa/test.txt", - "base": "http://www.example.com/test", - "reason": "unclassified" - }, - { - "input": "../../test.txt", - "base": "http://www.example.com/test", - "reason": "unclassified" - }, - { - "input": "中/test.txt", - "base": "http://www.example.com/test", - "reason": "unclassified" - }, - { - "input": "//www.example2.com", - "base": "http://www.example.com/test", - "reason": "unclassified" - }, { "input": "http://GOO  goo.com", "base": "http://other.com/", @@ -439,36 +184,6 @@ "base": "http://other.com/", "reason": "unclassified" }, - { - "input": "#", - "base": "test:test", - "reason": "unclassified" - }, - { - "input": "#x", - "base": "mailto:x@x.com", - "reason": "unclassified" - }, - { - "input": "#x", - "base": "data:,", - "reason": "unclassified" - }, - { - "input": "#x", - "base": "about:blank", - "reason": "unclassified" - }, - { - "input": "#x:y", - "base": "about:blank", - "reason": "unclassified" - }, - { - "input": "#", - "base": "test:test?test", - "reason": "unclassified" - }, { "input": "http://`{}:`{}@h/`{}?`{}", "base": "http://doesnotmatter/", @@ -479,116 +194,11 @@ "base": null, "reason": "unclassified" }, - { - "input": "/some/path", - "base": "http://user@example.org/smth", - "reason": "unclassified" - }, - { - "input": "", - "base": "http://user:pass@example.org:21/smth", - "reason": "unclassified" - }, - { - "input": "/some/path", - "base": "http://user:pass@example.org:21/smth", - "reason": "unclassified" - }, - { - "input": "i", - "base": "sc:/pa/pa", - "reason": "unclassified" - }, - { - "input": "i", - "base": "sc://ho/pa", - "reason": "unclassified" - }, - { - "input": "i", - "base": "sc:///pa/pa", - "reason": "unclassified" - }, - { - "input": "../i", - "base": "sc:/pa/pa", - "reason": "unclassified" - }, - { - "input": "../i", - "base": "sc://ho/pa", - "reason": "unclassified" - }, - { - "input": "../i", - "base": "sc:///pa/pa", - "reason": "unclassified" - }, - { - "input": "/i", - "base": "sc:/pa/pa", - "reason": "unclassified" - }, - { - "input": "/i", - "base": "sc://ho/pa", - "reason": "unclassified" - }, - { - "input": "/i", - "base": "sc:///pa/pa", - "reason": "unclassified" - }, - { - "input": "?i", - "base": "sc:/pa/pa", - "reason": "unclassified" - }, - { - "input": "?i", - "base": "sc://ho/pa", - "reason": "unclassified" - }, - { - "input": "?i", - "base": "sc:///pa/pa", - "reason": "unclassified" - }, - { - "input": "#i", - "base": "sc:sd", - "reason": "unclassified" - }, - { - "input": "#i", - "base": "sc:sd/sd", - "reason": "unclassified" - }, - { - "input": "#i", - "base": "sc:/pa/pa", - "reason": "unclassified" - }, - { - "input": "#i", - "base": "sc://ho/pa", - "reason": "unclassified" - }, - { - "input": "#i", - "base": "sc:///pa/pa", - "reason": "unclassified" - }, { "input": "mailto:/../", "base": null, "reason": "unclassified" }, - { - "input": "x", - "base": "sc://ñ", - "reason": "unclassified" - }, { "input": "ftp://example.com%80/", "base": null, @@ -619,36 +229,11 @@ "base": null, "reason": "unclassified" }, - { - "input": "?a=b&c=d", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "??a=b&c=d", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "http:", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "pix/submit.gif", - "base": "file:///C:/Users/Domenic/Dropbox/GitHub/tmpvar/jsdom/test/level2/html/files/anchor.html", - "reason": "unclassified" - }, { "input": "..", "base": "file:///C:/", "reason": "unclassified" }, - { - "input": "..", - "base": "file:///", - "reason": "unclassified" - }, { "input": "/", "base": "file:///C:/a/b", @@ -659,11 +244,6 @@ "base": "file://h/C:/a/b", "reason": "unclassified" }, - { - "input": "/", - "base": "file://h/a/b", - "reason": "unclassified" - }, { "input": "//d:", "base": "file:///C:/a/b", @@ -674,41 +254,16 @@ "base": "file:///C:/a/b", "reason": "unclassified" }, - { - "input": "..", - "base": "file:///ab:/", - "reason": "unclassified" - }, - { - "input": "..", - "base": "file:///1:/", - "reason": "unclassified" - }, - { - "input": "", - "base": "file:///test?test#test", - "reason": "unclassified" - }, { "input": "file:", "base": "file:///test?test#test", "reason": "unclassified" }, - { - "input": "?x", - "base": "file:///test?test#test", - "reason": "unclassified" - }, { "input": "file:?x", "base": "file:///test?test#test", "reason": "unclassified" }, - { - "input": "#x", - "base": "file:///test?test#test", - "reason": "unclassified" - }, { "input": "file:#x", "base": "file:///test?test#test", @@ -724,31 +279,6 @@ "base": "file://lion/", "reason": "unclassified" }, - { - "input": "\\/localhost//pig", - "base": "file://lion/", - "reason": "unclassified" - }, - { - "input": "//localhost//pig", - "base": "file://lion/", - "reason": "unclassified" - }, - { - "input": "/..//localhost//pig", - "base": "file://lion/", - "reason": "unclassified" - }, - { - "input": "/rooibos", - "base": "file://tea/", - "reason": "unclassified" - }, - { - "input": "/?chai", - "base": "file://tea/", - "reason": "unclassified" - }, { "input": "C|", "base": "file://host/dir/file", @@ -784,36 +314,11 @@ "base": "file://host/dir/file", "reason": "unclassified" }, - { - "input": "C", - "base": "file://host/dir/file", - "reason": "unclassified" - }, - { - "input": "C|a", - "base": "file://host/dir/file", - "reason": "unclassified" - }, - { - "input": "/c:/foo/bar", - "base": "file:///c:/baz/qux", - "reason": "unclassified" - }, { "input": "/c|/foo/bar", "base": "file:///c:/baz/qux", "reason": "unclassified" }, - { - "input": "/c:/foo/bar", - "base": "file://host/path", - "reason": "unclassified" - }, - { - "input": "..", - "base": "abc://x/y/z/C:/", - "reason": "unclassified" - }, { "input": "..", "base": "file://x/C:/", @@ -824,11 +329,6 @@ "base": "file://host/", "reason": "unclassified" }, - { - "input": "/C:/", - "base": "file://host/", - "reason": "unclassified" - }, { "input": "file:C:/", "base": "file://host/", @@ -864,11 +364,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "//one/two", - "base": "file:///", - "reason": "unclassified" - }, { "input": "///one/two", "base": "file:///", @@ -889,106 +384,16 @@ "base": null, "reason": "unclassified" }, - { - "input": "#x", - "base": "sc://ñ", - "reason": "unclassified" - }, - { - "input": "?x", - "base": "sc://ñ", - "reason": "unclassified" - }, - { - "input": "///", - "base": "sc://x/", - "reason": "unclassified" - }, - { - "input": "////", - "base": "sc://x/", - "reason": "unclassified" - }, - { - "input": "////x/", - "base": "sc://x/", - "reason": "unclassified" - }, { "input": "ldap://localhost:389/ou=People,o=JNDITutorial", "base": null, "reason": "unclassified" }, - { - "input": "/.//path", - "base": "non-spec:/p", - "reason": "unclassified" - }, - { - "input": "/..//path", - "base": "non-spec:/p", - "reason": "unclassified" - }, - { - "input": "..//path", - "base": "non-spec:/p", - "reason": "unclassified" - }, - { - "input": "a/..//path", - "base": "non-spec:/p", - "reason": "unclassified" - }, - { - "input": "", - "base": "non-spec:/..//p", - "reason": "unclassified" - }, - { - "input": "path", - "base": "non-spec:/..//p", - "reason": "unclassified" - }, - { - "input": "../path", - "base": "non-spec:/.//p", - "reason": "unclassified" - }, { "input": "http://example.org/test?%GH", "base": null, "reason": "unclassified" }, - { - "input": "test-a-colon-slash.html", - "base": "a:/", - "reason": "unclassified" - }, - { - "input": "test-a-colon-slash-slash.html", - "base": "a://", - "reason": "unclassified" - }, - { - "input": "test-a-colon-slash-b.html", - "base": "a:/b", - "reason": "unclassified" - }, - { - "input": "test-a-colon-slash-slash-b.html", - "base": "a://b", - "reason": "unclassified" - }, - { - "input": "10.0.0.7:8080/foo.html", - "base": "file:///some/dir/bar.html", - "reason": "unclassified" - }, - { - "input": "a!@$*=/foo.html", - "base": "file:///some/dir/bar.html", - "reason": "unclassified" - }, { "input": "file://a­b/p", "base": null, @@ -1014,11 +419,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "#link", - "base": "https://example.org/##link", - "reason": "unclassified" - }, { "input": "foo://host/dir/? !\"$%&'()*+,-./:;<=>?@[\\]^_`{|}~", "base": null, @@ -1069,46 +469,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "///test", - "base": "http://example.org/", - "reason": "unclassified" - }, - { - "input": "///\\//\\//test", - "base": "http://example.org/", - "reason": "unclassified" - }, - { - "input": "///example.org/path", - "base": "http://example.org/", - "reason": "unclassified" - }, - { - "input": "///example.org/../path", - "base": "http://example.org/", - "reason": "unclassified" - }, - { - "input": "///example.org/../../", - "base": "http://example.org/", - "reason": "unclassified" - }, - { - "input": "///example.org/../path/../../", - "base": "http://example.org/", - "reason": "unclassified" - }, - { - "input": "///example.org/../path/../../path", - "base": "http://example.org/", - "reason": "unclassified" - }, - { - "input": "/\\/\\//example.org/../path", - "base": "http://example.org/", - "reason": "unclassified" - }, { "input": "///abcdef/../", "base": "file:///", @@ -1118,25 +478,5 @@ "input": "/\\//\\/a/../", "base": "file:///", "reason": "unclassified" - }, - { - "input": "//a/../", - "base": "file:///", - "reason": "unclassified" - }, - { - "input": "\\a", - "base": "foo://foo/a", - "reason": "unclassified" - }, - { - "input": "\\/a", - "base": "foo://foo/a", - "reason": "unclassified" - }, - { - "input": "\\\\a", - "base": "foo://foo/a", - "reason": "unclassified" } ] From 1bb2857e11fbc560d618032ad77e20ddb8cd3c90 Mon Sep 17 00:00:00 2001 From: jinroq Date: Tue, 3 Nov 2026 18:45:09 +0900 Subject: [PATCH 15/74] Keep the query of URI::WHATWG_Parser results unescaped URI::Generic's constructor always sets the query through #query=, which re-escapes it by RFC 3986 rules: it escapes "'" and "`", and rejects a "%" not followed by two hex digits. The URL Standard keeps all of them, so WHATWG_Parser now creates the URI object without the query and sets it afterwards with a new protected URI::Generic#set_query, which assigns it as is, like the other set_* methods. 5 more WPT urltestdata cases pass and are removed from the exclusions. Co-Authored-By: Claude Opus 5.5 --- lib/uri/generic.rb | 18 +++++++++++++++++ lib/uri/whatwg_parser.rb | 14 ++++++++++++-- test/uri/test_whatwg_parser.rb | 29 ++++++++++++++++++++++++++++ test/wpt/urltestdata_exclusions.json | 25 ------------------------ 4 files changed, 59 insertions(+), 27 deletions(-) diff --git a/lib/uri/generic.rb b/lib/uri/generic.rb index fce8a8a..cd34eaf 100644 --- a/lib/uri/generic.rb +++ b/lib/uri/generic.rb @@ -866,6 +866,24 @@ def query=(v) @query = v end + # + # == Args + # + # +v+:: + # String + # + # == Description + # + # Protected setter for the query component +v+, without the escaping + # done by #query=. + # + # See also URI::Generic.query=. + # + def set_query(v) + @query = v + end + protected :set_query + # # Checks the opaque +v+ component for RFC2396 compliance and # against the +parser+ Regexp for :OPAQUE. diff --git a/lib/uri/whatwg_parser.rb b/lib/uri/whatwg_parser.rb index f90da1d..4f4da0b 100644 --- a/lib/uri/whatwg_parser.rb +++ b/lib/uri/whatwg_parser.rb @@ -23,7 +23,7 @@ def split(uri) # :nodoc: end def parse(uri) # :nodoc: - URI.for(*split(uri), self) + build(split(uri)) end # Resolves each of +uris+ after the first against the result so far, @@ -32,7 +32,7 @@ def join(*uris) # :nodoc: uris[1..-1].inject(convert_to_uri(uris[0])) do |base, uri| reference = uri.is_a?(URI::Generic) ? uri.to_s : String.try_convert(uri) raise ArgumentError, "bad argument (expected URI object or URI string)" unless reference - URI.for(*to_components(basic_parse(reference, basic_parse(base.to_s))), self) + build(to_components(basic_parse(reference, basic_parse(base.to_s)))) end end @@ -167,6 +167,16 @@ def copy_authority(url, base) url.port = base.port end + # Creates the URI object for +components+. The query is set + # afterwards with URI::Generic#set_query, as the constructor would + # re-escape it by RFC 3986 rules with URI::Generic#query=. + def build(components) + *components, query, fragment = components + uri = URI.for(*components, nil, fragment, self) + uri.__send__(:set_query, query) if query + uri + end + # The URL record as the components of URI::RFC3986_Parser#split. def to_components(url) userinfo = diff --git a/test/uri/test_whatwg_parser.rb b/test/uri/test_whatwg_parser.rb index bc51b02..47cfae7 100644 --- a/test/uri/test_whatwg_parser.rb +++ b/test/uri/test_whatwg_parser.rb @@ -1655,6 +1655,35 @@ def test_split_without_base_still_fails_for_relative_reference assert_raise(URI::InvalidURIError) { split("g") } end + # --- building URI objects ----------------------------------------- + # URI::Generic#query= re-escapes the query by RFC 3986 rules; the URL + # Standard's query must reach the URI object unchanged. + + def test_parse_keeps_query_characters_rfc3986_would_escape + assert_equal("'", URI::WHATWG_PARSER.parse("foo://h/?'").query) + assert_equal("`{}", URI::WHATWG_PARSER.parse("http://h/?`{}").query) + assert_equal("http://h/?`{}|^", URI::WHATWG_PARSER.parse("http://h/?`{}|^").to_s) + end + + def test_parse_keeps_stray_percent_sign_in_query + assert_equal("%GH", URI::WHATWG_PARSER.parse("http://h/?%GH").query) + assert_equal("a%", URI::WHATWG_PARSER.parse("http://h/?a%").query) + assert_equal("http://h/?%zz", URI::WHATWG_PARSER.parse("http://h/?%zz").to_s) + end + + def test_join_keeps_query_unchanged + assert_equal("%GH'", URI::WHATWG_PARSER.join("foo://h/", "?%GH'").query) + end + + def test_parse_without_query_has_nil_query + assert_nil(URI::WHATWG_PARSER.parse("http://h/").query) + assert_equal("", URI::WHATWG_PARSER.parse("http://h/?").query) + end + + def test_rfc3986_parser_still_rejects_stray_percent_in_query + assert_raise(URI::InvalidURIError) { URI::RFC3986_PARSER.parse("http://h/?%GH") } + end + # --- host: opaque host --------------------------------------------- # https://url.spec.whatwg.org/#concept-opaque-host-parser diff --git a/test/wpt/urltestdata_exclusions.json b/test/wpt/urltestdata_exclusions.json index 48ffdef..67dff57 100644 --- a/test/wpt/urltestdata_exclusions.json +++ b/test/wpt/urltestdata_exclusions.json @@ -184,16 +184,6 @@ "base": "http://other.com/", "reason": "unclassified" }, - { - "input": "http://`{}:`{}@h/`{}?`{}", - "base": "http://doesnotmatter/", - "reason": "unclassified" - }, - { - "input": "notspecial://host/?'", - "base": null, - "reason": "unclassified" - }, { "input": "mailto:/../", "base": null, @@ -389,11 +379,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "http://example.org/test?%GH", - "base": null, - "reason": "unclassified" - }, { "input": "file://a­b/p", "base": null, @@ -419,16 +404,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "foo://host/dir/? !\"$%&'()*+,-./:;<=>?@[\\]^_`{|}~", - "base": null, - "reason": "unclassified" - }, - { - "input": "wss://host/dir/? !\"$%&'()*+,-./:;<=>?@[\\]^_`{|}~", - "base": null, - "reason": "unclassified" - }, { "input": "http://💩.123/", "base": null, From de45375cb6b12b725bcad43cdb3494945812f1ba Mon Sep 17 00:00:00 2001 From: jinroq Date: Tue, 3 Nov 2026 18:46:31 +0900 Subject: [PATCH 16/74] Use URI::Generic for schemes whose classes disagree with WHATWG URI::WHATWG_Parser now creates scheme-specific objects only for http, https, ws, wss and file, whose classes agree with the URL Standard. Every other scheme gets URI::Generic: URI::FTP rewrites the path by RFC 1738 rules ("ftp://h//a" became "ftp://h/%2Fa"), URI::MailTo rejects opaque parts the URL Standard accepts, and URI::LDAP drops its default port, which the URL Standard keeps for a non-special scheme. URI::RFC3986_Parser is unchanged. 15 more WPT urltestdata cases pass and are removed from the exclusions. Co-Authored-By: Claude Opus 5.5 --- lib/uri/whatwg_parser.rb | 19 +++++-- test/uri/test_whatwg_parser.rb | 55 ++++++++++++++++++++ test/wpt/urltestdata_exclusions.json | 75 ---------------------------- 3 files changed, 70 insertions(+), 79 deletions(-) diff --git a/lib/uri/whatwg_parser.rb b/lib/uri/whatwg_parser.rb index 4f4da0b..4747d96 100644 --- a/lib/uri/whatwg_parser.rb +++ b/lib/uri/whatwg_parser.rb @@ -167,12 +167,21 @@ def copy_authority(url, base) url.port = base.port end - # Creates the URI object for +components+. The query is set - # afterwards with URI::Generic#set_query, as the constructor would - # re-escape it by RFC 3986 rules with URI::Generic#query=. + # Creates the URI object for +components+. + # + # Scheme-specific classes are used only for the schemes in + # SCHEMES_WITH_CLASS, whose rules agree with the URL Standard; any + # other scheme gets URI::Generic. (URI::FTP rewrites the path by RFC + # 1738 rules, URI::MailTo validates the opaque part, and URI::LDAP + # omits its default port.) + # + # The query is set afterwards with URI::Generic#set_query, as the + # constructor would re-escape it by RFC 3986 rules with + # URI::Generic#query=. def build(components) *components, query, fragment = components - uri = URI.for(*components, nil, fragment, self) + arguments = [*components, nil, fragment, self] + uri = SCHEMES_WITH_CLASS.include?(components[0]) ? URI.for(*arguments) : Generic.new(*arguments) uri.__send__(:set_query, query) if query uri end @@ -228,6 +237,8 @@ def parse_opaque_path(input, followed) "wss" => 443, }.freeze # :nodoc: + SCHEMES_WITH_CLASS = %w[http https ws wss file].freeze # :nodoc: + # scheme start state and scheme state: an ASCII alpha followed by # ASCII alphanumerics, "+", "-" or ".", up to the first ":". SCHEME = /\A[A-Za-z][A-Za-z0-9+\-.]*:/ # :nodoc: diff --git a/test/uri/test_whatwg_parser.rb b/test/uri/test_whatwg_parser.rb index 47cfae7..4c2444f 100644 --- a/test/uri/test_whatwg_parser.rb +++ b/test/uri/test_whatwg_parser.rb @@ -1680,6 +1680,61 @@ def test_parse_without_query_has_nil_query assert_equal("", URI::WHATWG_PARSER.parse("http://h/?").query) end + # Scheme-specific classes are used only where their rules agree with + # the URL Standard. URI::FTP rewrites the path by RFC 1738 rules, + # URI::MailTo validates the opaque part, and URI::LDAP drops its + # default port, so those schemes get URI::Generic. + + def test_parse_uses_scheme_classes_for_http_https_ws_wss_and_file + { + "http://h/" => URI::HTTP, + "https://h/" => URI::HTTPS, + "ws://h/" => URI::WS, + "wss://h/" => URI::WSS, + "file:///a" => URI::File, + }.each do |input, klass| + assert_instance_of(klass, URI::WHATWG_PARSER.parse(input), input) + end + end + + def test_parse_uses_generic_for_other_schemes + %w[ftp://h/ mailto:a@example.com ldap://h/ ldaps://h/ foo:bar].each do |input| + assert_instance_of(URI::Generic, URI::WHATWG_PARSER.parse(input), input) + end + end + + def test_parse_ftp_path_is_not_rewritten + assert_equal("ftp://h//a", URI::WHATWG_PARSER.parse("ftp://h//a").to_s) + uri = URI::WHATWG_PARSER.parse("ftp://h/a;type=x") + assert_equal(["ftp://h/a;type=x", "/a;type=x"], [uri.to_s, uri.path]) + end + + def test_parse_ftp_default_port_is_omitted + assert_equal("ftp://h/", URI::WHATWG_PARSER.parse("ftp://h:21/").to_s) + assert_equal("ftp://h:80/", URI::WHATWG_PARSER.parse("ftp://h:80/").to_s) + end + + def test_parse_mailto_is_not_validated_by_mailto_rules + assert_equal("mailto:/example.com/", URI::WHATWG_PARSER.parse("mailto:/example.com/").to_s) + assert_equal("mailto:a@example.com?subject=x", URI::WHATWG_PARSER.parse("mailto:a@example.com?subject=x").to_s) + assert_equal("mailto://h:8080/p?q#f", URI::WHATWG_PARSER.parse("mailto://h:8080/p?q#f").to_s) + end + + def test_parse_ldap_keeps_port_389 + uri = URI::WHATWG_PARSER.parse("ldap://h:389/x") + assert_equal(["ldap://h:389/x", 389], [uri.to_s, uri.port]) + end + + def test_join_uses_the_same_classes + assert_instance_of(URI::Generic, URI::WHATWG_PARSER.join("http://a/", "mailto:x")) + assert_instance_of(URI::HTTPS, URI::WHATWG_PARSER.join("http://a/", "https://b/")) + end + + def test_rfc3986_parser_still_uses_scheme_classes + assert_instance_of(URI::MailTo, URI::RFC3986_PARSER.parse("mailto:a@example.com")) + assert_instance_of(URI::FTP, URI::RFC3986_PARSER.parse("ftp://h/")) + end + def test_rfc3986_parser_still_rejects_stray_percent_in_query assert_raise(URI::InvalidURIError) { URI::RFC3986_PARSER.parse("http://h/?%GH") } end diff --git a/test/wpt/urltestdata_exclusions.json b/test/wpt/urltestdata_exclusions.json index 67dff57..8dca552 100644 --- a/test/wpt/urltestdata_exclusions.json +++ b/test/wpt/urltestdata_exclusions.json @@ -4,31 +4,11 @@ "base": null, "reason": "unclassified" }, - { - "input": "ftp:/example.com/", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, { "input": "file://example:1/", "base": null, "reason": "unclassified" }, - { - "input": "mailto:/example.com/", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "ftp:example.com/", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, - { - "input": "mailto:example.com/", - "base": "http://example.org/foo/bar", - "reason": "unclassified" - }, { "input": " File:c|////foo\\bar.html", "base": "file:///tmp/mock/path", @@ -79,36 +59,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "ftp://foo:21/", - "base": null, - "reason": "unclassified" - }, - { - "input": "ftp://foo:80/", - "base": null, - "reason": "unclassified" - }, - { - "input": "ftp:/example.com/", - "base": null, - "reason": "unclassified" - }, - { - "input": "mailto:/example.com/", - "base": null, - "reason": "unclassified" - }, - { - "input": "ftp:example.com/", - "base": null, - "reason": "unclassified" - }, - { - "input": "mailto:example.com/", - "base": null, - "reason": "unclassified" - }, { "input": "http://GOO  goo.com", "base": "http://other.com/", @@ -184,11 +134,6 @@ "base": "http://other.com/", "reason": "unclassified" }, - { - "input": "mailto:/../", - "base": null, - "reason": "unclassified" - }, { "input": "ftp://example.com%80/", "base": null, @@ -374,11 +319,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "ldap://localhost:389/ou=People,o=JNDITutorial", - "base": null, - "reason": "unclassified" - }, { "input": "file://a­b/p", "base": null, @@ -429,21 +369,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "mailto://example.com:8080/pathname?search#hash", - "base": null, - "reason": "unclassified" - }, - { - "input": "mailto:///test", - "base": null, - "reason": "unclassified" - }, - { - "input": "mailto://test/a/../b", - "base": null, - "reason": "unclassified" - }, { "input": "///abcdef/../", "base": "file:///", From 4ada2c451b22ac6445bff70cc11c28e600eda0f7 Mon Sep 17 00:00:00 2001 From: jinroq Date: Tue, 3 Nov 2026 18:48:55 +0900 Subject: [PATCH 17/74] Parse file URLs in URI::WHATWG_Parser Replace the interim handling of file URLs with the URL Standard's file state, file slash state and file host state: * A file URL always has a host, empty unless two slashes (or backslashes) are followed by one. The host is a domain or IP address, without userinfo or port, and "localhost" becomes empty. * A Windows drive letter in the first path segment is normalized to "X:", and shortening the path never removes it. A drive letter where the host would be starts the path instead. * Relative to a file base, the base host and path are kept, and an absolute path keeps the base's drive letter unless it has its own. 44 more WPT urltestdata cases pass and are removed from the exclusions. The remaining ones all need domain to ASCII (UTS #46). Co-Authored-By: Claude Opus 5.5 --- lib/uri/whatwg_parser.rb | 112 +++++++++++--- test/uri/test_whatwg_parser.rb | 170 ++++++++++++++++++++- test/wpt/urltestdata_exclusions.json | 220 --------------------------- 3 files changed, 261 insertions(+), 241 deletions(-) diff --git a/lib/uri/whatwg_parser.rb b/lib/uri/whatwg_parser.rb index 4747d96..8184f89 100644 --- a/lib/uri/whatwg_parser.rb +++ b/lib/uri/whatwg_parser.rb @@ -81,6 +81,8 @@ def basic_parse(input, base = nil) raise InvalidURIError, "relative reference to a URL with an opaque path: #{input.dump}" end scheme = base.scheme + # The file state handles a reference relative to a file URL. + relative = false if scheme == "file" elsif base && scheme == base.scheme && scheme != "file" && SPECIAL_SCHEMES.key?(scheme) # special relative or authority state: two slashes start an # authority; anything else is relative to the base. @@ -100,14 +102,7 @@ def basic_parse(input, base = nil) if relative parse_relative(url, rest, base, special) elsif scheme == "file" - # Approximates file state, file slash state and file host state - # until they are implemented: exactly two leading "/" or "\\" - # start a host, which may be empty. - if rest.match?(TWO_SLASHES) - parse_authority(url, rest[2..-1], true, host_required: false) - else - url.path = parse_path(rest, true) - end + parse_file(url, rest, base&.scheme == "file" ? base : nil) elsif special # special authority slashes state and special authority ignore # slashes state: skip any run of "/" or "\\". @@ -154,12 +149,84 @@ def parse_relative(url, rest, base, special) url.query = base.query if url.query.nil? else path = base.path.dup - path.pop # shorten + shorten(path, false) url.path = parse_path(rest, special, path) end end end + # file state, file slash state and file host state. +base+ is the + # base URL if it is a file URL. +rest+ is the input after any scheme, + # without query and fragment, which +url+ already has. + def parse_file(url, rest, base) + url.host = "" + if rest.start_with?("/", "\\") + rest = rest[1..-1] + # file slash state + return parse_file_host(url, rest[1..-1]) if rest.start_with?("/", "\\") + if base + url.host = base.host + if !starts_with_windows_drive_letter?(rest) && normalized_windows_drive_letter?(base.path[0]) + url.path = [base.path[0]] + end + end + url.path = parse_path(rest, true, url.path, file: true, start: false) + elsif base + url.host = base.host + url.path = base.path.dup + if rest.empty? + # c is EOF, "?" or "#": the base query too, unless a query is given. + url.query = base.query if url.query.nil? + else + if starts_with_windows_drive_letter?(rest) + url.path = [] + else + shorten(url.path, true) + end + url.path = parse_path(rest, true, url.path, file: true, start: false) + end + else + url.path = parse_path(rest, true, [], file: true, start: false) + end + end + + # file host state. +rest+ starts after the two slashes. + def parse_file_host(url, rest) + host_end = rest.index(SPECIAL_PATH_SEPARATOR) || rest.size + buffer = rest[0, host_end] + if windows_drive_letter?(buffer) + # The buffer is not a host but the start of the path. + url.path = parse_path(rest, true, [], file: true, start: false) + return + end + unless buffer.empty? + host = parse_host(buffer, true) + url.host = host == "localhost" ? "" : host + end + url.path = parse_path(rest[host_end..-1], true, [], file: true) + end + + # https://url.spec.whatwg.org/#windows-drive-letter + def windows_drive_letter?(string) + string.match?(WINDOWS_DRIVE_LETTER) + end + + def normalized_windows_drive_letter?(string) + string.to_s.match?(NORMALIZED_WINDOWS_DRIVE_LETTER) + end + + # https://url.spec.whatwg.org/#start-with-a-windows-drive-letter + def starts_with_windows_drive_letter?(string) + string.match?(STARTS_WITH_WINDOWS_DRIVE_LETTER) + end + + # shorten a URL's path: a file URL's path that is only a normalized + # Windows drive letter is kept. + def shorten(path, file) + return if file && path.size == 1 && normalized_windows_drive_letter?(path[0]) + path.pop + end + def copy_authority(url, base) url.username = base.username url.password = base.password @@ -246,6 +313,9 @@ def parse_opaque_path(input, followed) SPECIAL_AUTHORITY_SLASHES = %r{\A[/\\]*} # :nodoc: # Two of "/" or "\\", which start an authority in a special URL. TWO_SLASHES = %r{\A[/\\]{2}} # :nodoc: + WINDOWS_DRIVE_LETTER = /\A[A-Za-z][:|]\z/ # :nodoc: + NORMALIZED_WINDOWS_DRIVE_LETTER = /\A[A-Za-z]:\z/ # :nodoc: + STARTS_WITH_WINDOWS_DRIVE_LETTER = %r{\A[A-Za-z][:|](?:\z|[/\\?#])} # :nodoc: AUTHORITY_END = %r{[/?#]} # :nodoc: SPECIAL_AUTHORITY_END = %r{[/?#\\]} # :nodoc: @@ -338,14 +408,19 @@ def parse_authority(url, rest, special, host_required: special) url.path = parse_path(remainder, special) end - # path start state and path state. Returns the list of path segments, - # appended to +path+ (the shortened base path of a relative reference). - def parse_path(input, special, path = []) + # path start state (unless +start+ is false) and path state. Returns + # the list of path segments, appended to +path+ (the shortened base + # path of a relative reference). +file+ applies the Windows drive + # letter rules of file URLs. + def parse_path(input, special, path = [], file: false, start: true) separator = special ? SPECIAL_PATH_SEPARATOR : "/" - # path start state: a special URL always has a path, even an empty - # one; another URL has one only if anything follows the authority. - return path if input.empty? && !special - input = input[1..-1] if input.start_with?("/") || (special && input.start_with?("\\")) + if start + # path start state: a special URL always has a path, even an + # empty one; another URL has one only if anything follows the + # authority. + return path if input.empty? && !special + input = input[1..-1] if input.start_with?("/") || (special && input.start_with?("\\")) + end buffers = input.split(separator, -1) buffers = [""] if buffers.empty? @@ -355,11 +430,14 @@ def parse_path(input, special, path = []) # than by a separator. last = i == buffers.size - 1 if double_dot_segment?(buffer) - segments.pop + shorten(segments, file) segments << "" if last elsif single_dot_segment?(buffer) segments << "" if last else + if file && segments.empty? && windows_drive_letter?(buffer) + buffer = "#{buffer[0]}:" + end segments << buffer end end diff --git a/test/uri/test_whatwg_parser.rb b/test/uri/test_whatwg_parser.rb index 4c2444f..5f246cc 100644 --- a/test/uri/test_whatwg_parser.rb +++ b/test/uri/test_whatwg_parser.rb @@ -585,11 +585,10 @@ def test_split_non_special_url_may_have_empty_host end def test_split_file_host_may_be_empty - # Interim behaviour until the file states are implemented. assert_equal(["", "/tmp/a"], split("file:///tmp/a").values_at(HOST, PATH)) assert_equal(["host", "/a"], split("file://host/a").values_at(HOST, PATH)) assert_equal(["host", "/a"], split("file:\\\\host/a").values_at(HOST, PATH)) - assert_equal([nil, "/a"], split("file:/a").values_at(HOST, PATH)) + assert_equal(["", "/a"], split("file:/a").values_at(HOST, PATH)) end # --- host: domain ------------------------------------------------- @@ -1301,8 +1300,6 @@ def test_parse_dot_prefix_round_trips end def test_split_file_path_dot_segments - # Interim until the file states (and Windows drive letters) are - # implemented. assert_equal("/b", path("file:///a/../b")) assert_equal("/b", path("file:/a/../b")) end @@ -1655,6 +1652,171 @@ def test_split_without_base_still_fails_for_relative_reference assert_raise(URI::InvalidURIError) { split("g") } end + # --- file --------------------------------------------------------- + # https://url.spec.whatwg.org/#file-state + # https://url.spec.whatwg.org/#file-slash-state + # https://url.spec.whatwg.org/#file-host-state + # https://url.spec.whatwg.org/#windows-drive-letter + # https://url.spec.whatwg.org/#shorten-a-urls-path + + def file(input, base = nil) + base ? join(base, input) : URI::WHATWG_PARSER.parse(input).to_s + end + + def test_file_with_empty_host + assert_equal("file:///tmp/a", file("file:///tmp/a")) + assert_equal(["", "/tmp/a"], split("file:///tmp/a").values_at(HOST, PATH)) + end + + def test_file_with_host + assert_equal(["host", "/a"], split("file://host/a").values_at(HOST, PATH)) + assert_equal("file://host/a", file("FILE://HOST/a")) + end + + def test_file_without_slashes_has_empty_host + assert_equal(["", "/a"], split("file:a").values_at(HOST, PATH)) + assert_equal(["", "/a"], split("file:/a").values_at(HOST, PATH)) + assert_equal(["", "/"], split("file:").values_at(HOST, PATH)) + end + + def test_file_backslashes_are_slashes + assert_equal("file://host/a/b", file("file:\\\\host\\a\\b")) + assert_equal("file:///a", file("file:\\a")) + end + + def test_file_more_than_two_slashes_keep_empty_host + assert_equal("file:////a", file("file:////a")) + assert_equal("file:///localhost//cat", file("file:///localhost//cat")) + assert_equal("file:////localhost//cat", file("file://\\/localhost//cat")) + end + + def test_file_localhost_is_empty_host + assert_equal("file:///a", file("file://localhost/a")) + assert_equal("file:///a", file("file://LOCALHOST/a")) + assert_equal("file:///", file("file://localhost")) + assert_equal("file://localhost.example/a", file("file://localhost.example/a")) + end + + def test_file_host_is_a_domain + assert_equal("file://example.com/", file("file://EX%41MPLE.com/")) + assert_equal("file://127.0.0.1/", file("file://0x7f.1/")) + assert_equal("file://[::1]/", file("file://[0::1]/")) + end + + def test_file_host_has_no_port_or_userinfo + ["file://example:1/", "file://example:/", "file://u@host/", "file://u:p@host/", "file://ho st/"].each do |input| + assert_raise(URI::InvalidURIError, input) { split(input) } + end + end + + def test_file_query_and_fragment + assert_equal("file:///a?q#f", file("file:///a?q#f")) + assert_equal("file://host/?q", file("file://host?q")) + end + + def test_file_drive_letter_is_normalized_in_first_segment + assert_equal("file:///C:/m/", file("file:C|/m/")) + assert_equal("file:///c:/foo/bar.html", file("file:c:\\foo\\bar.html")) + assert_equal("file:///C:/", file("file:///C|/")) + assert_equal("file:///C:", file("file:///C|")) + end + + def test_file_drive_letter_only_in_first_segment + assert_equal("file:///a/C|/", file("file:///a/C|/")) + end + + def test_file_not_a_drive_letter + assert_equal("file:///C||/m/", file("file:C||/m/")) + assert_equal("file:///1:/", file("file:///1:/")) + assert_equal("file:///C%3A/", file("file:///C%3A/")) + assert_equal("file:///C%7C/", file("file:///C%7C/")) + assert_equal("file:///CC:/", file("file:///CC:/")) + end + + def test_file_drive_letter_in_host_position_is_a_path + assert_equal("file:///C:/", file("file://C:/")) + assert_equal("file:///C:/", file("file://C|/")) + assert_equal("file:///d:", file("//d:", "file:///C:/a/b")) + end + + def test_file_double_dot_does_not_remove_drive_letter + assert_equal("file:///C:/", file("file:///C:/..")) + assert_equal("file:///C:/", file("file:///C:/a/../..")) + assert_equal("file:///C:/", file("..", "file:///C:/")) + assert_equal("file:///d:/", file("//d:/..", "file:///C:/a/b")) + end + + def test_file_double_dot_removes_other_first_segments + assert_equal("file:///", file("file:///a/..")) + assert_equal("file:///", file("file:///C|a/..")) + end + + def test_file_drive_letter_with_host_keeps_host + assert_equal("file://host/C:/", file("file://host/C|/")) + assert_equal("file://host/C:", file("C|", "file://host/dir/file")) + end + + def test_file_relative_to_file_base + base = "file:///tmp/mock/path" + assert_equal("file:///tmp/mock/a", file("a", base)) + assert_equal("file:///tmp/mock/a", file("file:a", base)) + assert_equal("file:///a", file("/a", base)) + assert_equal("file:///a", file("file:/a", base)) + assert_equal("file://h/a", file("//h/a", base)) + assert_equal("file:///", file("//", base)) + assert_equal("file:///", file("///", base)) + assert_equal("file:///test", file("///test", base)) + end + + def test_file_relative_keeps_base_host + base = "file://host/dir/file" + assert_equal("file://host/dir/a", file("a", base)) + assert_equal("file://host/a", file("/a", base)) + assert_equal("file://host/dir/C|a", file("C|a", base)) + end + + def test_file_relative_keeps_base_query_only_when_empty + base = "file:///test?test#test" + assert_equal("file:///test?test", file("file:", base)) + assert_equal("file:///test?x", file("file:?x", base)) + assert_equal("file:///test?test#x", file("file:#x", base)) + assert_equal("file:///a", file("a", base)) + end + + def test_file_relative_drive_letter_replaces_base_path + base = "file:///tmp/mock/path" + assert_equal("file:///C:/foo/bar", file("C|/foo/bar", base)) + assert_equal("file:///C:/foo/bar", file("/C|\\foo\\bar", base)) + assert_equal("file:///C:/foo/bar", file("//C|/foo/bar", base)) + assert_equal("file://host/C:", file("C|", "file://host/D:/dir1/dir2/file")) + end + + def test_file_absolute_path_keeps_base_drive_letter + assert_equal("file:///C:/", file("/", "file:///C:/a/b")) + assert_equal("file://h/C:/", file("/", "file://h/C:/a/b")) + assert_equal("file:///C:/x", file("/x", "file:///C:/a/b")) + end + + def test_file_absolute_path_with_own_drive_letter + assert_equal("file:///c:/foo/bar", file("/c|/foo/bar", "file:///c:/baz/qux")) + end + + def test_file_relative_to_non_file_base_is_not_file + assert_equal("http://a/C|/x", file("C|/x", "http://a/b")) + end + + def test_file_scheme_from_non_file_base + assert_equal("file:///a", file("file:/a", "http://a/b")) + assert_equal("file:///C:/", file("file:C|/", "http://a/b")) + end + + def test_file_dot_prefix_is_never_needed + # A file URL always has a host (possibly empty), so a path starting + # with "//" needs no "/." prefix. + assert_equal("file:////p", file("file:.//p")) + assert_equal("file:////p", file("file:/.//p")) + end + # --- building URI objects ----------------------------------------- # URI::Generic#query= re-escapes the query by RFC 3986 rules; the URL # Standard's query must reach the URI object unchanged. diff --git a/test/wpt/urltestdata_exclusions.json b/test/wpt/urltestdata_exclusions.json index 8dca552..070431b 100644 --- a/test/wpt/urltestdata_exclusions.json +++ b/test/wpt/urltestdata_exclusions.json @@ -4,61 +4,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "file://example:1/", - "base": null, - "reason": "unclassified" - }, - { - "input": " File:c|////foo\\bar.html", - "base": "file:///tmp/mock/path", - "reason": "unclassified" - }, - { - "input": "C|/foo/bar", - "base": "file:///tmp/mock/path", - "reason": "unclassified" - }, - { - "input": "/C|\\foo\\bar", - "base": "file:///tmp/mock/path", - "reason": "unclassified" - }, - { - "input": "//C|/foo/bar", - "base": "file:///tmp/mock/path", - "reason": "unclassified" - }, - { - "input": "//", - "base": "file:///tmp/mock/path", - "reason": "unclassified" - }, - { - "input": "///", - "base": "file:///tmp/mock/path", - "reason": "unclassified" - }, - { - "input": "///test", - "base": "file:///tmp/mock/path", - "reason": "unclassified" - }, - { - "input": "file:test", - "base": "file:///tmp/mock/path", - "reason": "unclassified" - }, - { - "input": "file:///w|/m", - "base": null, - "reason": "unclassified" - }, - { - "input": "file:C|/m/", - "base": null, - "reason": "unclassified" - }, { "input": "http://GOO  goo.com", "base": "http://other.com/", @@ -164,161 +109,6 @@ "base": null, "reason": "unclassified" }, - { - "input": "..", - "base": "file:///C:/", - "reason": "unclassified" - }, - { - "input": "/", - "base": "file:///C:/a/b", - "reason": "unclassified" - }, - { - "input": "/", - "base": "file://h/C:/a/b", - "reason": "unclassified" - }, - { - "input": "//d:", - "base": "file:///C:/a/b", - "reason": "unclassified" - }, - { - "input": "//d:/..", - "base": "file:///C:/a/b", - "reason": "unclassified" - }, - { - "input": "file:", - "base": "file:///test?test#test", - "reason": "unclassified" - }, - { - "input": "file:?x", - "base": "file:///test?test#test", - "reason": "unclassified" - }, - { - "input": "file:#x", - "base": "file:///test?test#test", - "reason": "unclassified" - }, - { - "input": "/////mouse", - "base": "file:///elephant", - "reason": "unclassified" - }, - { - "input": "\\//pig", - "base": "file://lion/", - "reason": "unclassified" - }, - { - "input": "C|", - "base": "file://host/dir/file", - "reason": "unclassified" - }, - { - "input": "C|", - "base": "file://host/D:/dir1/dir2/file", - "reason": "unclassified" - }, - { - "input": "C|#", - "base": "file://host/dir/file", - "reason": "unclassified" - }, - { - "input": "C|?", - "base": "file://host/dir/file", - "reason": "unclassified" - }, - { - "input": "C|/", - "base": "file://host/dir/file", - "reason": "unclassified" - }, - { - "input": "C|\n/", - "base": "file://host/dir/file", - "reason": "unclassified" - }, - { - "input": "C|\\", - "base": "file://host/dir/file", - "reason": "unclassified" - }, - { - "input": "/c|/foo/bar", - "base": "file:///c:/baz/qux", - "reason": "unclassified" - }, - { - "input": "..", - "base": "file://x/C:/", - "reason": "unclassified" - }, - { - "input": "C|/", - "base": "file://host/", - "reason": "unclassified" - }, - { - "input": "file:C:/", - "base": "file://host/", - "reason": "unclassified" - }, - { - "input": "file:/C:/", - "base": "file://host/", - "reason": "unclassified" - }, - { - "input": "//C:/", - "base": "file://host/", - "reason": "unclassified" - }, - { - "input": "file://C:/", - "base": "file://host/", - "reason": "unclassified" - }, - { - "input": "///C:/", - "base": "file://host/", - "reason": "unclassified" - }, - { - "input": "file:/C|/", - "base": null, - "reason": "unclassified" - }, - { - "input": "file://C|/", - "base": null, - "reason": "unclassified" - }, - { - "input": "///one/two", - "base": "file:///", - "reason": "unclassified" - }, - { - "input": "////one/two", - "base": "file:///", - "reason": "unclassified" - }, - { - "input": "file:.//p", - "base": null, - "reason": "unclassified" - }, - { - "input": "file:/.//p", - "base": null, - "reason": "unclassified" - }, { "input": "file://a­b/p", "base": null, @@ -368,15 +158,5 @@ "input": "https://%C2%AD/", "base": null, "reason": "unclassified" - }, - { - "input": "///abcdef/../", - "base": "file:///", - "reason": "unclassified" - }, - { - "input": "/\\//\\/a/../", - "base": "file:///", - "reason": "unclassified" } ] From 35abfafa5e61ddcd1894f2efb4efe9dafe0fcde0 Mon Sep 17 00:00:00 2001 From: jinroq Date: Tue, 3 Nov 2026 18:50:12 +0900 Subject: [PATCH 18/74] Add a WPT workflow that runs weekly and on every change The workflow runs `rake test:wpt` with the latest stable Ruby against urltestdata.json from WPT master. The weekly scheduled run fails, and so notifies, when the URL Standard's tests change in a way the parser or the exclusion list does not reflect yet. On push and pull requests the result is reported without failing the checks, since a failure can come from WPT rather than from the change. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/wpt.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/wpt.yml diff --git a/.github/workflows/wpt.yml b/.github/workflows/wpt.yml new file mode 100644 index 0000000..e0d82d9 --- /dev/null +++ b/.github/workflows/wpt.yml @@ -0,0 +1,36 @@ +name: WPT + +# Runs web-platform-tests' url/resources/urltestdata.json, fetched from WPT +# master, against URI::WHATWG_PARSER (rake test:wpt). +# +# The URL Standard is a living standard and WPT follows its changes, so the +# scheduled run is how a change in the standard is noticed: it fails when a +# case newer than test/wpt/urltestdata_exclusions.json fails, or when an +# excluded case passes or disappears. On push and pull requests a failure is +# reported without failing the checks, since it can come from WPT rather +# than from the change being tested. (GitHub runs scheduled workflows on the +# default branch only, and notifies of a failed scheduled run.) + +on: + push: + pull_request: + schedule: + - cron: '17 3 * * 1' + workflow_dispatch: + +permissions: + contents: read + +jobs: + wpt: + runs-on: ubuntu-latest + continue-on-error: ${{ github.event_name == 'push' || github.event_name == 'pull_request' }} + steps: + - uses: actions/checkout@v7.0.1 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ruby + - run: bundle install --jobs 4 --retry 3 + - name: Run WPT urltestdata + run: bundle exec rake test:wpt From 705c1d1cbcc99c416403f4025acdf2b2146ea0cf Mon Sep 17 00:00:00 2001 From: jinroq Date: Tue, 3 Nov 2026 18:51:10 +0900 Subject: [PATCH 19/74] Resolve URI#merge with URI::WHATWG_Parser#join for WHATWG URIs URI::Generic#merge parsed the reference on its own before merging it by RFC 3986 rules, but the URL Standard has no relative URLs without a base, so `uri + "d"` raised InvalidURIError for every relative reference when uri came from URI::WHATWG_PARSER. Such a URI now hands the whole merge (and so URI#+ and URI#merge!) to its parser's join. URIs from other parsers are merged as before. Co-Authored-By: Claude Opus 5.5 --- lib/uri/generic.rb | 4 +++ test/uri/test_whatwg_parser.rb | 54 ++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) diff --git a/lib/uri/generic.rb b/lib/uri/generic.rb index cd34eaf..ca31144 100644 --- a/lib/uri/generic.rb +++ b/lib/uri/generic.rb @@ -1152,6 +1152,10 @@ def merge!(oth) # # => "http://my.example.com/main.rbx?page=1" # def merge(oth) + # The URL Standard resolves a reference while parsing it against a + # base, so URI::WHATWG_Parser does the whole merge. + return parser.join(self, oth) if parser.is_a?(WHATWG_Parser) + rel = parser.__send__(:convert_to_uri, oth) if rel.absolute? diff --git a/test/uri/test_whatwg_parser.rb b/test/uri/test_whatwg_parser.rb index 5f246cc..2a191a5 100644 --- a/test/uri/test_whatwg_parser.rb +++ b/test/uri/test_whatwg_parser.rb @@ -1648,6 +1648,60 @@ def test_uri_join_uses_whatwg_parser_after_switch assert_equal("http://a/b/c/g", URI.join(RFC3986_BASE, "http:g").to_s) end + def test_merge_resolves_with_whatwg_rules + uri = URI::WHATWG_PARSER.parse("http://a/b/c") + { + "d" => "http://a/b/d", + "../x" => "http://a/x", + "//h/p" => "http://h/p", + "?y" => "http://a/b/c?y", + "#f" => "http://a/b/c#f", + "http:g" => "http://a/b/g", + "\\g" => "http://a/g", + "http://q/" => "http://q/", + }.each do |rel, expected| + assert_equal(expected, uri.merge(rel).to_s, rel) + assert_equal(expected, (uri + rel).to_s, rel) + end + end + + def test_merge_result_is_bound_to_whatwg_parser + uri = URI::WHATWG_PARSER.parse("http://a/b/c") + "d" + assert_same(URI::WHATWG_PARSER, uri.parser) + assert_equal("http://a/b/e", (uri + "e").to_s) + end + + def test_merge_with_uri_object + uri = URI::WHATWG_PARSER.parse("http://a/b/c") + assert_equal("http://a/b/d", uri.merge(URI::RFC3986_PARSER.parse("d")).to_s) + end + + def test_merge_bang + uri = URI::WHATWG_PARSER.parse("http://a/b/c") + assert_same(uri, uri.merge!("d")) + assert_equal("http://a/b/d", uri.to_s) + assert_nil(uri.merge!("")) + end + + def test_merge_does_not_modify_receiver + uri = URI::WHATWG_PARSER.parse("http://a/b/c?q#f") + uri + "d" + assert_equal("http://a/b/c?q#f", uri.to_s) + end + + def test_merge_rejects_non_string + assert_raise(ArgumentError) { URI::WHATWG_PARSER.parse("http://a/") + 1 } + end + + def test_merge_after_parser_switch + URI.parser = URI::WHATWG_PARSER + assert_equal("http://a/b/g", (URI("http://a/b/c") + "http:g").to_s) + end + + def test_rfc3986_merge_is_unchanged + assert_equal("http:g", (URI::RFC3986_PARSER.parse("http://a/b/c") + "http:g").to_s) + end + def test_split_without_base_still_fails_for_relative_reference assert_raise(URI::InvalidURIError) { split("g") } end From b9db5d39e6fae1f48a306b121bbf7114bbe1893f Mon Sep 17 00:00:00 2001 From: jinroq Date: Tue, 3 Nov 2026 18:54:04 +0900 Subject: [PATCH 20/74] Give the remaining WPT exclusions their reason All 32 cases still excluded have a domain that is non-ASCII after percent-decoding, and need domain to ASCII (UTS #46), which is not implemented. Co-Authored-By: Claude Opus 5.5 --- test/wpt/urltestdata_exclusions.json | 64 ++++++++++++++-------------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/test/wpt/urltestdata_exclusions.json b/test/wpt/urltestdata_exclusions.json index 070431b..f15a1b3 100644 --- a/test/wpt/urltestdata_exclusions.json +++ b/test/wpt/urltestdata_exclusions.json @@ -2,161 +2,161 @@ { "input": "http://é@é", "base": null, - "reason": "unclassified" + "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" }, { "input": "http://GOO  goo.com", "base": "http://other.com/", - "reason": "unclassified" + "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" }, { "input": "http://GOO​⁠goo.com", "base": "http://other.com/", - "reason": "unclassified" + "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" }, { "input": "http://www.foo。bar.com", "base": "http://other.com/", - "reason": "unclassified" + "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" }, { "input": "http://﷐zyx.com", "base": "http://other.com/", - "reason": "unclassified" + "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" }, { "input": "http://%ef%b7%90zyx.com", "base": "http://other.com/", - "reason": "unclassified" + "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" }, { "input": "https://�", "base": null, - "reason": "unclassified" + "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" }, { "input": "https://%EF%BF%BD", "base": null, - "reason": "unclassified" + "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" }, { "input": "http://Go.com", "base": "http://other.com/", - "reason": "unclassified" + "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" }, { "input": "http://%41.com", "base": "http://other.com/", - "reason": "unclassified" + "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" }, { "input": "http://%ef%bc%85%ef%bc%94%ef%bc%91.com", "base": "http://other.com/", - "reason": "unclassified" + "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" }, { "input": "http://%00.com", "base": "http://other.com/", - "reason": "unclassified" + "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" }, { "input": "http://%ef%bc%85%ef%bc%90%ef%bc%90.com", "base": "http://other.com/", - "reason": "unclassified" + "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" }, { "input": "http://你好你好", "base": "http://other.com/", - "reason": "unclassified" + "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" }, { "input": "https://faß.ExAmPlE/", "base": null, - "reason": "unclassified" + "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" }, { "input": "http://0Xc0.0250.01", "base": "http://other.com/", - "reason": "unclassified" + "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" }, { "input": "ftp://example.com%80/", "base": null, - "reason": "unclassified" + "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" }, { "input": "ftp://example.com%A0/", "base": null, - "reason": "unclassified" + "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" }, { "input": "https://example.com%80/", "base": null, - "reason": "unclassified" + "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" }, { "input": "https://example.com%A0/", "base": null, - "reason": "unclassified" + "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" }, { "input": "ftp://%e2%98%83", "base": null, - "reason": "unclassified" + "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" }, { "input": "https://%e2%98%83", "base": null, - "reason": "unclassified" + "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" }, { "input": "file://a­b/p", "base": null, - "reason": "unclassified" + "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" }, { "input": "file://a%C2%ADb/p", "base": null, - "reason": "unclassified" + "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" }, { "input": "file://loC𝐀𝐋𝐇𝐨𝐬𝐭/usr/bin", "base": null, - "reason": "unclassified" + "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" }, { "input": "file://­/p", "base": null, - "reason": "unclassified" + "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" }, { "input": "file://%C2%AD/p", "base": null, - "reason": "unclassified" + "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" }, { "input": "http://💩.123/", "base": null, - "reason": "unclassified" + "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" }, { "input": "https://￿y", "base": null, - "reason": "unclassified" + "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" }, { "input": "https://a%C2%ADb/", "base": null, - "reason": "unclassified" + "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" }, { "input": "https://­/", "base": null, - "reason": "unclassified" + "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" }, { "input": "https://%C2%AD/", "base": null, - "reason": "unclassified" + "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" } ] From 756e3f860ffdd0ede8815437e4e842fcd12421a9 Mon Sep 17 00:00:00 2001 From: jinroq Date: Tue, 3 Nov 2026 18:54:32 +0900 Subject: [PATCH 21/74] Remove the unused host_required parameter from parse_authority It was only needed for the interim handling of file URLs, which now have their own states; it always equals special. Co-Authored-By: Claude Opus 5.5 --- lib/uri/whatwg_parser.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/uri/whatwg_parser.rb b/lib/uri/whatwg_parser.rb index 8184f89..60583cd 100644 --- a/lib/uri/whatwg_parser.rb +++ b/lib/uri/whatwg_parser.rb @@ -395,14 +395,14 @@ def parse_scheme(input) # authority state, host state, port state and the path after them. # +rest+ starts right after the slashes preceding the authority. - def parse_authority(url, rest, special, host_required: special) + def parse_authority(url, rest, special) authority_end = rest.index(special ? SPECIAL_AUTHORITY_END : AUTHORITY_END) || rest.size authority = rest[0, authority_end] remainder = rest[authority_end..-1] url.username, url.password, host_and_port = split_userinfo(authority) host, port = split_host_and_port(host_and_port) - raise InvalidURIError, "missing host: #{rest.dump}" if host.empty? && (host_required || port) + raise InvalidURIError, "missing host: #{rest.dump}" if host.empty? && (special || port) url.host = host.empty? ? host : parse_host(host, special) url.port = parse_port(port, url.scheme) if port url.path = parse_path(remainder, special) From eab9592bd21d307ca3cfb75fa488f7d34f6d9794 Mon Sep 17 00:00:00 2001 From: jinroq Date: Tue, 3 Nov 2026 18:54:57 +0900 Subject: [PATCH 22/74] Document URI::WHATWG_PARSER Describe how to use it, that relative references are resolved with join or URI::Generic#merge rather than parsed alone, which schemes get their own class, and that IDNA is not implemented. Co-Authored-By: Claude Opus 5.5 --- lib/uri/common.rb | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/lib/uri/common.rb b/lib/uri/common.rb index 6506500..cf12040 100644 --- a/lib/uri/common.rb +++ b/lib/uri/common.rb @@ -22,8 +22,29 @@ module URI RFC3986_PARSER = RFC3986_Parser.new Ractor.make_shareable(RFC3986_PARSER) if defined?(Ractor) - # The parser instance for the WHATWG URL Standard. It is not the default; - # switch to it with URI.parser = URI::WHATWG_PARSER. + # The parser instance for the WHATWG URL Standard + # (https://url.spec.whatwg.org/), which browsers follow. It is not the + # default; use it directly, or switch to it with + # URI.parser = URI::WHATWG_PARSER. + # + # URI::WHATWG_PARSER.parse("HTTP://EXAMPLE.com:80/a/../b c") + # # => # + # URI::WHATWG_PARSER.parse("http://0x7f.1/") + # # => # + # + # A relative reference is only meaningful against a base URL, so it is + # resolved with #join or URI::Generic#merge rather than parsed alone: + # + # URI::WHATWG_PARSER.join("http://example.com/a/b", "../c") + # # => # + # URI::WHATWG_PARSER.parse("http://example.com/a") + "b" + # # => # + # URI::WHATWG_PARSER.parse("/relative") + # # raises URI::InvalidURIError + # + # Only http, https, ws, wss and file URLs become instances of their + # scheme's class; other schemes become URI::Generic. Domain to ASCII + # (IDNA) is not implemented: a non-ASCII domain is kept as is. WHATWG_PARSER = WHATWG_Parser.new Ractor.make_shareable(WHATWG_PARSER) if defined?(Ractor) From 21b105d299ca24d4eb76bdc2330f0af5cc477826 Mon Sep 17 00:00:00 2001 From: jinroq Date: Tue, 3 Nov 2026 18:55:31 +0900 Subject: [PATCH 23/74] Avoid a void-context warning in a WHATWG_Parser merge test Co-Authored-By: Claude Opus 5.5 --- test/uri/test_whatwg_parser.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/uri/test_whatwg_parser.rb b/test/uri/test_whatwg_parser.rb index 2a191a5..b0d5abc 100644 --- a/test/uri/test_whatwg_parser.rb +++ b/test/uri/test_whatwg_parser.rb @@ -1685,7 +1685,7 @@ def test_merge_bang def test_merge_does_not_modify_receiver uri = URI::WHATWG_PARSER.parse("http://a/b/c?q#f") - uri + "d" + assert_equal("http://a/b/d", uri.merge("d").to_s) assert_equal("http://a/b/c?q#f", uri.to_s) end From 68f27e31a46890dbf323f0b1d12bc8c65e9ebc07 Mon Sep 17 00:00:00 2001 From: jinroq Date: Wed, 18 Nov 2026 17:08:47 +0900 Subject: [PATCH 24/74] Add Punycode encoding and decoding for WHATWG_Parser Domain to ASCII (UTS #46) converts each non-ASCII label to "xn--" followed by its Punycode (RFC 3492), and decodes existing "xn--" labels to validate them. Decoding returns nil for invalid input, including code points beyond U+10FFFF, surrogates, and intermediate values beyond 2**31 - 1. Co-Authored-By: Claude Opus 5.5 --- lib/uri/whatwg_parser.rb | 2 + lib/uri/whatwg_parser/punycode.rb | 142 ++++++++++++++++++++++++++++++ test/uri/test_whatwg_punycode.rb | 105 ++++++++++++++++++++++ 3 files changed, 249 insertions(+) create mode 100644 lib/uri/whatwg_parser/punycode.rb create mode 100644 test/uri/test_whatwg_punycode.rb diff --git a/lib/uri/whatwg_parser.rb b/lib/uri/whatwg_parser.rb index 60583cd..f123e28 100644 --- a/lib/uri/whatwg_parser.rb +++ b/lib/uri/whatwg_parser.rb @@ -1,4 +1,6 @@ # frozen_string_literal: true +require_relative "whatwg_parser/punycode" + module URI # A parser for the WHATWG URL Standard (https://url.spec.whatwg.org/). # diff --git a/lib/uri/whatwg_parser/punycode.rb b/lib/uri/whatwg_parser/punycode.rb new file mode 100644 index 0000000..8d2fb7b --- /dev/null +++ b/lib/uri/whatwg_parser/punycode.rb @@ -0,0 +1,142 @@ +# frozen_string_literal: true +module URI + class WHATWG_Parser + # Punycode (RFC 3492), the encoding of a domain label's code points + # in ASCII that follows "xn--" in an A-label. + module Punycode # :nodoc: + BASE = 36 + TMIN = 1 + TMAX = 26 + SKEW = 38 + DAMP = 700 + INITIAL_BIAS = 72 + INITIAL_N = 0x80 + DELIMITER = "-" + + # The largest value an intermediate integer may take while + # decoding. Ruby's integers do not overflow, but a value this large + # can only produce a code point beyond Unicode, so decoding stops + # there instead of computing with ever larger integers. + MAXINT = 0x7FFF_FFFF + MAX_CODE_POINT = 0x10FFFF + SURROGATES = (0xD800..0xDFFF).freeze + + module_function + + # Encodes +input+, a String of Unicode code points, as Punycode. + def encode(input) + code_points = input.codepoints + output = code_points.select { |c| c < INITIAL_N }.pack("U*") + basic_count = handled = output.size + output << DELIMITER if basic_count > 0 + + n = INITIAL_N + delta = 0 + bias = INITIAL_BIAS + while handled < code_points.size + m = code_points.select { |c| c >= n }.min + delta += (m - n) * (handled + 1) + n = m + code_points.each do |c| + delta += 1 if c < n + next unless c == n + + q = delta + k = BASE + loop do + t = threshold(k, bias) + break if q < t + output << digit(t + (q - t) % (BASE - t)) + q = (q - t) / (BASE - t) + k += BASE + end + output << digit(q) + bias = adapt(delta, handled + 1, handled == basic_count) + delta = 0 + handled += 1 + end + delta += 1 + n += 1 + end + output + end + + # Decodes +input+, a Punycode String. Returns nil when +input+ is + # not valid Punycode or decodes to something that is not a sequence + # of Unicode scalar values. + def decode(input) + return nil unless input.ascii_only? + + delimiter = input.rindex(DELIMITER) + output = delimiter ? input[0, delimiter].codepoints : [] + rest = delimiter ? input[delimiter + 1..-1] : input + + n = INITIAL_N + i = 0 + bias = INITIAL_BIAS + position = 0 + while position < rest.size + old_i = i + w = 1 + k = BASE + loop do + return nil if position >= rest.size + d = digit_value(rest[position]) + position += 1 + return nil unless d + i += d * w + return nil if i > MAXINT + t = threshold(k, bias) + break if d < t + w *= BASE - t + return nil if w > MAXINT + k += BASE + end + length = output.size + 1 + bias = adapt(i - old_i, length, old_i == 0) + n += i / length + return nil if n > MAX_CODE_POINT || SURROGATES.cover?(n) + i %= length + output.insert(i, n) + i += 1 + end + output.pack("U*") + end + + def threshold(k, bias) + if k <= bias + TMIN + elsif k >= bias + TMAX + TMAX + else + k - bias + end + end + + def adapt(delta, num_points, first_time) + delta = first_time ? delta / DAMP : delta / 2 + delta += delta / num_points + k = 0 + while delta > ((BASE - TMIN) * TMAX) / 2 + delta /= BASE - TMIN + k += BASE + end + k + (BASE - TMIN + 1) * delta / (delta + SKEW) + end + + # The basic code point for the digit +d+ (0..35): "a".."z", "0".."9". + def digit(d) + (d < 26 ? d + 0x61 : d + 0x16).chr + end + + # The value of the basic code point +char+ as a digit, or nil. + def digit_value(char) + case char + when "a".."z" then char.ord - 0x61 + when "A".."Z" then char.ord - 0x41 + when "0".."9" then char.ord - 0x16 + end + end + end + end +end diff --git a/test/uri/test_whatwg_punycode.rb b/test/uri/test_whatwg_punycode.rb new file mode 100644 index 0000000..96b08ea --- /dev/null +++ b/test/uri/test_whatwg_punycode.rb @@ -0,0 +1,105 @@ +# frozen_string_literal: false +require 'test/unit' +require 'uri' + +class URI::TestWHATWGPunycode < Test::Unit::TestCase + Punycode = URI::WHATWG_Parser::Punycode + + # [Unicode, Punycode] + ROUND_TRIPS = [ + ["", ""], + ["a", "a-"], + ["abc", "abc-"], + ["-> $1.00 <-", "-> $1.00 <--"], + ["ü", "tda"], + ["bücher", "bcher-kva"], + ["faß", "fa-hia"], + ["☕", "53h"], + ["日本語", "wgv71a119e"], + ["ハロー・ワールド", "gdkl8fhk5egc"], + ["3年B組金八先生", "3B-ww4c5e180e575a65lsy2b"], + # RFC 3492 7.1 (A) Arabic (Egyptian) + ["ليهمابتكلموشعربي؟", + "egbpdaj6bu4bxfgehfvwxn"], + # RFC 3492 7.1 (B) Chinese (simplified) + ["他们为什么不说中文", "ihqwcrb4cv8a8dqg056pqjye"], + ["é-", "--9fa"], + ["-é", "--bga"], + # boundaries of the code space + ["\u0080", "a"], + ["\u007F\u0080", "\u007F-ba"], + ["\u{1F600}", "e28h"], + ["\u{10FFFF}", "dn32g"], + ["\u{E000}", "0y0c"], + ] + + ROUND_TRIPS.each_with_index do |(unicode, punycode), i| + define_method("test_encode_#{i}") do + assert_equal(punycode, Punycode.encode(unicode)) + end + + define_method("test_decode_#{i}") do + assert_equal(unicode, Punycode.decode(punycode)) + end + end + + def test_encode_returns_ascii + assert_predicate(Punycode.encode("日本語"), :ascii_only?) + end + + def test_decode_returns_utf8 + assert_equal(Encoding::UTF_8, Punycode.decode("tda").encoding) + assert_equal(Encoding::UTF_8, Punycode.decode("a-").encoding) + end + + def test_decode_digits_are_case_insensitive + assert_equal("bücher", Punycode.decode("bcher-KVA")) + end + + def test_decode_keeps_the_case_of_basic_code_points + assert_equal("BüCHER", Punycode.decode("BCHER-KVA")) + end + + def test_decode_lone_delimiter + assert_equal("", Punycode.decode("-")) + end + + def test_decode_splits_at_the_last_delimiter + assert_equal("a-b", Punycode.decode("a-b-")) + end + + def test_decode_rejects_non_ascii + assert_nil(Punycode.decode("ü")) + assert_nil(Punycode.decode("ü-tda")) + end + + def test_decode_rejects_invalid_digits + assert_nil(Punycode.decode("a-!")) + assert_nil(Punycode.decode("a-_")) + assert_nil(Punycode.decode("a- ")) + end + + def test_decode_rejects_truncated_input + # "9" is a digit that does not end the variable-length integer. + assert_nil(Punycode.decode("a-9")) + assert_nil(Punycode.decode("z" * 50)) + end + + def test_decode_rejects_code_points_beyond_unicode + assert_nil(Punycode.decode("en32g")) # U+110000 + end + + def test_decode_rejects_surrogates + assert_nil(Punycode.decode("ib9b")) # U+D800 + assert_nil(Punycode.decode("zy0c")) # U+DFFF + end + + def test_decode_rejects_overflow + assert_nil(Punycode.decode("9" * 10 + "a")) + assert_nil(Punycode.decode("a-" + "9" * 10 + "a")) + end + + def test_decode_of_a_non_string + assert_raise(NoMethodError, TypeError) { Punycode.decode(nil) } + end +end From c53f5c37a03286074b3130ceb00a2bb835d1f7f3 Mon Sep 17 00:00:00 2001 From: jinroq Date: Wed, 18 Nov 2026 17:11:03 +0900 Subject: [PATCH 25/74] Generate the Unicode data for domain to ASCII `rake idna:generate` fetches the IDNA Mapping Table and the Unicode Character Database files of one Unicode version (UNICODE_VERSION, defaulting to the version of the current data) and writes lib/uri/whatwg_parser/idna_data.rb. The data covers what domain to ASCII needs with the settings of the URL Standard (Nontransitional Processing, UseSTD3ASCIIRules=false): the mapping of mapped and ignored code points, the valid code points, and, among the valid code points, General_Category=Mark, Canonical_Combining_Class=Virama, Joining_Type and Bidi_Class. The data is generated from Unicode 18.0.0. Co-Authored-By: Claude Opus 5.5 --- lib/uri/whatwg_parser/idna_data.rb | 1736 ++++++++++++++++++++++++++++ rakelib/idna.rake | 29 + rakelib/idna_data_generator.rb | 163 +++ 3 files changed, 1928 insertions(+) create mode 100644 lib/uri/whatwg_parser/idna_data.rb create mode 100644 rakelib/idna.rake create mode 100644 rakelib/idna_data_generator.rb diff --git a/lib/uri/whatwg_parser/idna_data.rb b/lib/uri/whatwg_parser/idna_data.rb new file mode 100644 index 0000000..da9a14e --- /dev/null +++ b/lib/uri/whatwg_parser/idna_data.rb @@ -0,0 +1,1736 @@ +# frozen_string_literal: true + +# This file is generated by `rake idna:generate` from Unicode 18.0.0: +# https://www.unicode.org/Public/18.0.0/idna/IdnaMappingTable.txt +# https://www.unicode.org/Public/18.0.0/ucd/extracted/DerivedBidiClass.txt +# https://www.unicode.org/Public/18.0.0/ucd/extracted/DerivedJoiningType.txt +# https://www.unicode.org/Public/18.0.0/ucd/extracted/DerivedCombiningClass.txt +# https://www.unicode.org/Public/18.0.0/ucd/extracted/DerivedGeneralCategory.txt +# Do not edit it by hand. + +module URI + class WHATWG_Parser + module IDNA # :nodoc: + UNICODE_VERSION = "18.0.0" + + # The replacement of each code point with the status "mapped" or + # "ignored" (an empty string) in the IDNA Mapping Table. + MAPPING = { + "\u{41}" => "\u{61}", "\u{42}" => "\u{62}", "\u{43}" => "\u{63}", "\u{44}" => "\u{64}", + "\u{45}" => "\u{65}", "\u{46}" => "\u{66}", "\u{47}" => "\u{67}", "\u{48}" => "\u{68}", + "\u{49}" => "\u{69}", "\u{4A}" => "\u{6A}", "\u{4B}" => "\u{6B}", "\u{4C}" => "\u{6C}", + "\u{4D}" => "\u{6D}", "\u{4E}" => "\u{6E}", "\u{4F}" => "\u{6F}", "\u{50}" => "\u{70}", + "\u{51}" => "\u{71}", "\u{52}" => "\u{72}", "\u{53}" => "\u{73}", "\u{54}" => "\u{74}", + "\u{55}" => "\u{75}", "\u{56}" => "\u{76}", "\u{57}" => "\u{77}", "\u{58}" => "\u{78}", + "\u{59}" => "\u{79}", "\u{5A}" => "\u{7A}", "\u{A0}" => "\u{20}", "\u{A8}" => "\u{20}\u{308}", + "\u{AA}" => "\u{61}", "\u{AD}" => "", "\u{AF}" => "\u{20}\u{304}", "\u{B2}" => "\u{32}", + "\u{B3}" => "\u{33}", "\u{B4}" => "\u{20}\u{301}", "\u{B5}" => "\u{3BC}", "\u{B8}" => "\u{20}\u{327}", + "\u{B9}" => "\u{31}", "\u{BA}" => "\u{6F}", "\u{BC}" => "\u{31}\u{2044}\u{34}", "\u{BD}" => "\u{31}\u{2044}\u{32}", + "\u{BE}" => "\u{33}\u{2044}\u{34}", "\u{C0}" => "\u{E0}", "\u{C1}" => "\u{E1}", "\u{C2}" => "\u{E2}", + "\u{C3}" => "\u{E3}", "\u{C4}" => "\u{E4}", "\u{C5}" => "\u{E5}", "\u{C6}" => "\u{E6}", + "\u{C7}" => "\u{E7}", "\u{C8}" => "\u{E8}", "\u{C9}" => "\u{E9}", "\u{CA}" => "\u{EA}", + "\u{CB}" => "\u{EB}", "\u{CC}" => "\u{EC}", "\u{CD}" => "\u{ED}", "\u{CE}" => "\u{EE}", + "\u{CF}" => "\u{EF}", "\u{D0}" => "\u{F0}", "\u{D1}" => "\u{F1}", "\u{D2}" => "\u{F2}", + "\u{D3}" => "\u{F3}", "\u{D4}" => "\u{F4}", "\u{D5}" => "\u{F5}", "\u{D6}" => "\u{F6}", + "\u{D8}" => "\u{F8}", "\u{D9}" => "\u{F9}", "\u{DA}" => "\u{FA}", "\u{DB}" => "\u{FB}", + "\u{DC}" => "\u{FC}", "\u{DD}" => "\u{FD}", "\u{DE}" => "\u{FE}", "\u{100}" => "\u{101}", + "\u{102}" => "\u{103}", "\u{104}" => "\u{105}", "\u{106}" => "\u{107}", "\u{108}" => "\u{109}", + "\u{10A}" => "\u{10B}", "\u{10C}" => "\u{10D}", "\u{10E}" => "\u{10F}", "\u{110}" => "\u{111}", + "\u{112}" => "\u{113}", "\u{114}" => "\u{115}", "\u{116}" => "\u{117}", "\u{118}" => "\u{119}", + "\u{11A}" => "\u{11B}", "\u{11C}" => "\u{11D}", "\u{11E}" => "\u{11F}", "\u{120}" => "\u{121}", + "\u{122}" => "\u{123}", "\u{124}" => "\u{125}", "\u{126}" => "\u{127}", "\u{128}" => "\u{129}", + "\u{12A}" => "\u{12B}", "\u{12C}" => "\u{12D}", "\u{12E}" => "\u{12F}", "\u{130}" => "\u{69}\u{307}", + "\u{132}" => "\u{69}\u{6A}", "\u{133}" => "\u{69}\u{6A}", "\u{134}" => "\u{135}", "\u{136}" => "\u{137}", + "\u{139}" => "\u{13A}", "\u{13B}" => "\u{13C}", "\u{13D}" => "\u{13E}", "\u{13F}" => "\u{6C}\u{B7}", + "\u{140}" => "\u{6C}\u{B7}", "\u{141}" => "\u{142}", "\u{143}" => "\u{144}", "\u{145}" => "\u{146}", + "\u{147}" => "\u{148}", "\u{149}" => "\u{2BC}\u{6E}", "\u{14A}" => "\u{14B}", "\u{14C}" => "\u{14D}", + "\u{14E}" => "\u{14F}", "\u{150}" => "\u{151}", "\u{152}" => "\u{153}", "\u{154}" => "\u{155}", + "\u{156}" => "\u{157}", "\u{158}" => "\u{159}", "\u{15A}" => "\u{15B}", "\u{15C}" => "\u{15D}", + "\u{15E}" => "\u{15F}", "\u{160}" => "\u{161}", "\u{162}" => "\u{163}", "\u{164}" => "\u{165}", + "\u{166}" => "\u{167}", "\u{168}" => "\u{169}", "\u{16A}" => "\u{16B}", "\u{16C}" => "\u{16D}", + "\u{16E}" => "\u{16F}", "\u{170}" => "\u{171}", "\u{172}" => "\u{173}", "\u{174}" => "\u{175}", + "\u{176}" => "\u{177}", "\u{178}" => "\u{FF}", "\u{179}" => "\u{17A}", "\u{17B}" => "\u{17C}", + "\u{17D}" => "\u{17E}", "\u{17F}" => "\u{73}", "\u{181}" => "\u{253}", "\u{182}" => "\u{183}", + "\u{184}" => "\u{185}", "\u{186}" => "\u{254}", "\u{187}" => "\u{188}", "\u{189}" => "\u{256}", + "\u{18A}" => "\u{257}", "\u{18B}" => "\u{18C}", "\u{18E}" => "\u{1DD}", "\u{18F}" => "\u{259}", + "\u{190}" => "\u{25B}", "\u{191}" => "\u{192}", "\u{193}" => "\u{260}", "\u{194}" => "\u{263}", + "\u{196}" => "\u{269}", "\u{197}" => "\u{268}", "\u{198}" => "\u{199}", "\u{19C}" => "\u{26F}", + "\u{19D}" => "\u{272}", "\u{19F}" => "\u{275}", "\u{1A0}" => "\u{1A1}", "\u{1A2}" => "\u{1A3}", + "\u{1A4}" => "\u{1A5}", "\u{1A6}" => "\u{280}", "\u{1A7}" => "\u{1A8}", "\u{1A9}" => "\u{283}", + "\u{1AC}" => "\u{1AD}", "\u{1AE}" => "\u{288}", "\u{1AF}" => "\u{1B0}", "\u{1B1}" => "\u{28A}", + "\u{1B2}" => "\u{28B}", "\u{1B3}" => "\u{1B4}", "\u{1B5}" => "\u{1B6}", "\u{1B7}" => "\u{292}", + "\u{1B8}" => "\u{1B9}", "\u{1BC}" => "\u{1BD}", "\u{1C4}" => "\u{64}\u{17E}", "\u{1C5}" => "\u{64}\u{17E}", + "\u{1C6}" => "\u{64}\u{17E}", "\u{1C7}" => "\u{6C}\u{6A}", "\u{1C8}" => "\u{6C}\u{6A}", "\u{1C9}" => "\u{6C}\u{6A}", + "\u{1CA}" => "\u{6E}\u{6A}", "\u{1CB}" => "\u{6E}\u{6A}", "\u{1CC}" => "\u{6E}\u{6A}", "\u{1CD}" => "\u{1CE}", + "\u{1CF}" => "\u{1D0}", "\u{1D1}" => "\u{1D2}", "\u{1D3}" => "\u{1D4}", "\u{1D5}" => "\u{1D6}", + "\u{1D7}" => "\u{1D8}", "\u{1D9}" => "\u{1DA}", "\u{1DB}" => "\u{1DC}", "\u{1DE}" => "\u{1DF}", + "\u{1E0}" => "\u{1E1}", "\u{1E2}" => "\u{1E3}", "\u{1E4}" => "\u{1E5}", "\u{1E6}" => "\u{1E7}", + "\u{1E8}" => "\u{1E9}", "\u{1EA}" => "\u{1EB}", "\u{1EC}" => "\u{1ED}", "\u{1EE}" => "\u{1EF}", + "\u{1F1}" => "\u{64}\u{7A}", "\u{1F2}" => "\u{64}\u{7A}", "\u{1F3}" => "\u{64}\u{7A}", "\u{1F4}" => "\u{1F5}", + "\u{1F6}" => "\u{195}", "\u{1F7}" => "\u{1BF}", "\u{1F8}" => "\u{1F9}", "\u{1FA}" => "\u{1FB}", + "\u{1FC}" => "\u{1FD}", "\u{1FE}" => "\u{1FF}", "\u{200}" => "\u{201}", "\u{202}" => "\u{203}", + "\u{204}" => "\u{205}", "\u{206}" => "\u{207}", "\u{208}" => "\u{209}", "\u{20A}" => "\u{20B}", + "\u{20C}" => "\u{20D}", "\u{20E}" => "\u{20F}", "\u{210}" => "\u{211}", "\u{212}" => "\u{213}", + "\u{214}" => "\u{215}", "\u{216}" => "\u{217}", "\u{218}" => "\u{219}", "\u{21A}" => "\u{21B}", + "\u{21C}" => "\u{21D}", "\u{21E}" => "\u{21F}", "\u{220}" => "\u{19E}", "\u{222}" => "\u{223}", + "\u{224}" => "\u{225}", "\u{226}" => "\u{227}", "\u{228}" => "\u{229}", "\u{22A}" => "\u{22B}", + "\u{22C}" => "\u{22D}", "\u{22E}" => "\u{22F}", "\u{230}" => "\u{231}", "\u{232}" => "\u{233}", + "\u{23A}" => "\u{2C65}", "\u{23B}" => "\u{23C}", "\u{23D}" => "\u{19A}", "\u{23E}" => "\u{2C66}", + "\u{241}" => "\u{242}", "\u{243}" => "\u{180}", "\u{244}" => "\u{289}", "\u{245}" => "\u{28C}", + "\u{246}" => "\u{247}", "\u{248}" => "\u{249}", "\u{24A}" => "\u{24B}", "\u{24C}" => "\u{24D}", + "\u{24E}" => "\u{24F}", "\u{2B0}" => "\u{68}", "\u{2B1}" => "\u{266}", "\u{2B2}" => "\u{6A}", + "\u{2B3}" => "\u{72}", "\u{2B4}" => "\u{279}", "\u{2B5}" => "\u{27B}", "\u{2B6}" => "\u{281}", + "\u{2B7}" => "\u{77}", "\u{2B8}" => "\u{79}", "\u{2D8}" => "\u{20}\u{306}", "\u{2D9}" => "\u{20}\u{307}", + "\u{2DA}" => "\u{20}\u{30A}", "\u{2DB}" => "\u{20}\u{328}", "\u{2DC}" => "\u{20}\u{303}", "\u{2DD}" => "\u{20}\u{30B}", + "\u{2E0}" => "\u{263}", "\u{2E1}" => "\u{6C}", "\u{2E2}" => "\u{73}", "\u{2E3}" => "\u{78}", + "\u{2E4}" => "\u{295}", "\u{340}" => "\u{300}", "\u{341}" => "\u{301}", "\u{343}" => "\u{313}", + "\u{344}" => "\u{308}\u{301}", "\u{345}" => "\u{3B9}", "\u{34F}" => "", "\u{370}" => "\u{371}", + "\u{372}" => "\u{373}", "\u{374}" => "\u{2B9}", "\u{376}" => "\u{377}", "\u{37A}" => "\u{20}\u{3B9}", + "\u{37E}" => "\u{3B}", "\u{37F}" => "\u{3F3}", "\u{384}" => "\u{20}\u{301}", "\u{385}" => "\u{20}\u{308}\u{301}", + "\u{386}" => "\u{3AC}", "\u{387}" => "\u{B7}", "\u{388}" => "\u{3AD}", "\u{389}" => "\u{3AE}", + "\u{38A}" => "\u{3AF}", "\u{38C}" => "\u{3CC}", "\u{38E}" => "\u{3CD}", "\u{38F}" => "\u{3CE}", + "\u{391}" => "\u{3B1}", "\u{392}" => "\u{3B2}", "\u{393}" => "\u{3B3}", "\u{394}" => "\u{3B4}", + "\u{395}" => "\u{3B5}", "\u{396}" => "\u{3B6}", "\u{397}" => "\u{3B7}", "\u{398}" => "\u{3B8}", + "\u{399}" => "\u{3B9}", "\u{39A}" => "\u{3BA}", "\u{39B}" => "\u{3BB}", "\u{39C}" => "\u{3BC}", + "\u{39D}" => "\u{3BD}", "\u{39E}" => "\u{3BE}", "\u{39F}" => "\u{3BF}", "\u{3A0}" => "\u{3C0}", + "\u{3A1}" => "\u{3C1}", "\u{3A3}" => "\u{3C3}", "\u{3A4}" => "\u{3C4}", "\u{3A5}" => "\u{3C5}", + "\u{3A6}" => "\u{3C6}", "\u{3A7}" => "\u{3C7}", "\u{3A8}" => "\u{3C8}", "\u{3A9}" => "\u{3C9}", + "\u{3AA}" => "\u{3CA}", "\u{3AB}" => "\u{3CB}", "\u{3CF}" => "\u{3D7}", "\u{3D0}" => "\u{3B2}", + "\u{3D1}" => "\u{3B8}", "\u{3D2}" => "\u{3C5}", "\u{3D3}" => "\u{3CD}", "\u{3D4}" => "\u{3CB}", + "\u{3D5}" => "\u{3C6}", "\u{3D6}" => "\u{3C0}", "\u{3D8}" => "\u{3D9}", "\u{3DA}" => "\u{3DB}", + "\u{3DC}" => "\u{3DD}", "\u{3DE}" => "\u{3DF}", "\u{3E0}" => "\u{3E1}", "\u{3E2}" => "\u{3E3}", + "\u{3E4}" => "\u{3E5}", "\u{3E6}" => "\u{3E7}", "\u{3E8}" => "\u{3E9}", "\u{3EA}" => "\u{3EB}", + "\u{3EC}" => "\u{3ED}", "\u{3EE}" => "\u{3EF}", "\u{3F0}" => "\u{3BA}", "\u{3F1}" => "\u{3C1}", + "\u{3F2}" => "\u{3C3}", "\u{3F4}" => "\u{3B8}", "\u{3F5}" => "\u{3B5}", "\u{3F7}" => "\u{3F8}", + "\u{3F9}" => "\u{3C3}", "\u{3FA}" => "\u{3FB}", "\u{3FD}" => "\u{37B}", "\u{3FE}" => "\u{37C}", + "\u{3FF}" => "\u{37D}", "\u{400}" => "\u{450}", "\u{401}" => "\u{451}", "\u{402}" => "\u{452}", + "\u{403}" => "\u{453}", "\u{404}" => "\u{454}", "\u{405}" => "\u{455}", "\u{406}" => "\u{456}", + "\u{407}" => "\u{457}", "\u{408}" => "\u{458}", "\u{409}" => "\u{459}", "\u{40A}" => "\u{45A}", + "\u{40B}" => "\u{45B}", "\u{40C}" => "\u{45C}", "\u{40D}" => "\u{45D}", "\u{40E}" => "\u{45E}", + "\u{40F}" => "\u{45F}", "\u{410}" => "\u{430}", "\u{411}" => "\u{431}", "\u{412}" => "\u{432}", + "\u{413}" => "\u{433}", "\u{414}" => "\u{434}", "\u{415}" => "\u{435}", "\u{416}" => "\u{436}", + "\u{417}" => "\u{437}", "\u{418}" => "\u{438}", "\u{419}" => "\u{439}", "\u{41A}" => "\u{43A}", + "\u{41B}" => "\u{43B}", "\u{41C}" => "\u{43C}", "\u{41D}" => "\u{43D}", "\u{41E}" => "\u{43E}", + "\u{41F}" => "\u{43F}", "\u{420}" => "\u{440}", "\u{421}" => "\u{441}", "\u{422}" => "\u{442}", + "\u{423}" => "\u{443}", "\u{424}" => "\u{444}", "\u{425}" => "\u{445}", "\u{426}" => "\u{446}", + "\u{427}" => "\u{447}", "\u{428}" => "\u{448}", "\u{429}" => "\u{449}", "\u{42A}" => "\u{44A}", + "\u{42B}" => "\u{44B}", "\u{42C}" => "\u{44C}", "\u{42D}" => "\u{44D}", "\u{42E}" => "\u{44E}", + "\u{42F}" => "\u{44F}", "\u{460}" => "\u{461}", "\u{462}" => "\u{463}", "\u{464}" => "\u{465}", + "\u{466}" => "\u{467}", "\u{468}" => "\u{469}", "\u{46A}" => "\u{46B}", "\u{46C}" => "\u{46D}", + "\u{46E}" => "\u{46F}", "\u{470}" => "\u{471}", "\u{472}" => "\u{473}", "\u{474}" => "\u{475}", + "\u{476}" => "\u{477}", "\u{478}" => "\u{479}", "\u{47A}" => "\u{47B}", "\u{47C}" => "\u{47D}", + "\u{47E}" => "\u{47F}", "\u{480}" => "\u{481}", "\u{48A}" => "\u{48B}", "\u{48C}" => "\u{48D}", + "\u{48E}" => "\u{48F}", "\u{490}" => "\u{491}", "\u{492}" => "\u{493}", "\u{494}" => "\u{495}", + "\u{496}" => "\u{497}", "\u{498}" => "\u{499}", "\u{49A}" => "\u{49B}", "\u{49C}" => "\u{49D}", + "\u{49E}" => "\u{49F}", "\u{4A0}" => "\u{4A1}", "\u{4A2}" => "\u{4A3}", "\u{4A4}" => "\u{4A5}", + "\u{4A6}" => "\u{4A7}", "\u{4A8}" => "\u{4A9}", "\u{4AA}" => "\u{4AB}", "\u{4AC}" => "\u{4AD}", + "\u{4AE}" => "\u{4AF}", "\u{4B0}" => "\u{4B1}", "\u{4B2}" => "\u{4B3}", "\u{4B4}" => "\u{4B5}", + "\u{4B6}" => "\u{4B7}", "\u{4B8}" => "\u{4B9}", "\u{4BA}" => "\u{4BB}", "\u{4BC}" => "\u{4BD}", + "\u{4BE}" => "\u{4BF}", "\u{4C0}" => "\u{4CF}", "\u{4C1}" => "\u{4C2}", "\u{4C3}" => "\u{4C4}", + "\u{4C5}" => "\u{4C6}", "\u{4C7}" => "\u{4C8}", "\u{4C9}" => "\u{4CA}", "\u{4CB}" => "\u{4CC}", + "\u{4CD}" => "\u{4CE}", "\u{4D0}" => "\u{4D1}", "\u{4D2}" => "\u{4D3}", "\u{4D4}" => "\u{4D5}", + "\u{4D6}" => "\u{4D7}", "\u{4D8}" => "\u{4D9}", "\u{4DA}" => "\u{4DB}", "\u{4DC}" => "\u{4DD}", + "\u{4DE}" => "\u{4DF}", "\u{4E0}" => "\u{4E1}", "\u{4E2}" => "\u{4E3}", "\u{4E4}" => "\u{4E5}", + "\u{4E6}" => "\u{4E7}", "\u{4E8}" => "\u{4E9}", "\u{4EA}" => "\u{4EB}", "\u{4EC}" => "\u{4ED}", + "\u{4EE}" => "\u{4EF}", "\u{4F0}" => "\u{4F1}", "\u{4F2}" => "\u{4F3}", "\u{4F4}" => "\u{4F5}", + "\u{4F6}" => "\u{4F7}", "\u{4F8}" => "\u{4F9}", "\u{4FA}" => "\u{4FB}", "\u{4FC}" => "\u{4FD}", + "\u{4FE}" => "\u{4FF}", "\u{500}" => "\u{501}", "\u{502}" => "\u{503}", "\u{504}" => "\u{505}", + "\u{506}" => "\u{507}", "\u{508}" => "\u{509}", "\u{50A}" => "\u{50B}", "\u{50C}" => "\u{50D}", + "\u{50E}" => "\u{50F}", "\u{510}" => "\u{511}", "\u{512}" => "\u{513}", "\u{514}" => "\u{515}", + "\u{516}" => "\u{517}", "\u{518}" => "\u{519}", "\u{51A}" => "\u{51B}", "\u{51C}" => "\u{51D}", + "\u{51E}" => "\u{51F}", "\u{520}" => "\u{521}", "\u{522}" => "\u{523}", "\u{524}" => "\u{525}", + "\u{526}" => "\u{527}", "\u{528}" => "\u{529}", "\u{52A}" => "\u{52B}", "\u{52C}" => "\u{52D}", + "\u{52E}" => "\u{52F}", "\u{531}" => "\u{561}", "\u{532}" => "\u{562}", "\u{533}" => "\u{563}", + "\u{534}" => "\u{564}", "\u{535}" => "\u{565}", "\u{536}" => "\u{566}", "\u{537}" => "\u{567}", + "\u{538}" => "\u{568}", "\u{539}" => "\u{569}", "\u{53A}" => "\u{56A}", "\u{53B}" => "\u{56B}", + "\u{53C}" => "\u{56C}", "\u{53D}" => "\u{56D}", "\u{53E}" => "\u{56E}", "\u{53F}" => "\u{56F}", + "\u{540}" => "\u{570}", "\u{541}" => "\u{571}", "\u{542}" => "\u{572}", "\u{543}" => "\u{573}", + "\u{544}" => "\u{574}", "\u{545}" => "\u{575}", "\u{546}" => "\u{576}", "\u{547}" => "\u{577}", + "\u{548}" => "\u{578}", "\u{549}" => "\u{579}", "\u{54A}" => "\u{57A}", "\u{54B}" => "\u{57B}", + "\u{54C}" => "\u{57C}", "\u{54D}" => "\u{57D}", "\u{54E}" => "\u{57E}", "\u{54F}" => "\u{57F}", + "\u{550}" => "\u{580}", "\u{551}" => "\u{581}", "\u{552}" => "\u{582}", "\u{553}" => "\u{583}", + "\u{554}" => "\u{584}", "\u{555}" => "\u{585}", "\u{556}" => "\u{586}", "\u{558}" => "\u{567}", + "\u{587}" => "\u{565}\u{582}", "\u{58B}" => "\u{56B}", "\u{58C}" => "\u{575}", "\u{675}" => "\u{627}\u{674}", + "\u{676}" => "\u{648}\u{674}", "\u{677}" => "\u{6C7}\u{674}", "\u{678}" => "\u{64A}\u{674}", "\u{958}" => "\u{915}\u{93C}", + "\u{959}" => "\u{916}\u{93C}", "\u{95A}" => "\u{917}\u{93C}", "\u{95B}" => "\u{91C}\u{93C}", "\u{95C}" => "\u{921}\u{93C}", + "\u{95D}" => "\u{922}\u{93C}", "\u{95E}" => "\u{92B}\u{93C}", "\u{95F}" => "\u{92F}\u{93C}", "\u{9DC}" => "\u{9A1}\u{9BC}", + "\u{9DD}" => "\u{9A2}\u{9BC}", "\u{9DF}" => "\u{9AF}\u{9BC}", "\u{A33}" => "\u{A32}\u{A3C}", "\u{A36}" => "\u{A38}\u{A3C}", + "\u{A59}" => "\u{A16}\u{A3C}", "\u{A5A}" => "\u{A17}\u{A3C}", "\u{A5B}" => "\u{A1C}\u{A3C}", "\u{A5E}" => "\u{A2B}\u{A3C}", + "\u{B5C}" => "\u{B21}\u{B3C}", "\u{B5D}" => "\u{B22}\u{B3C}", "\u{E33}" => "\u{E4D}\u{E32}", "\u{EB3}" => "\u{ECD}\u{EB2}", + "\u{EDC}" => "\u{EAB}\u{E99}", "\u{EDD}" => "\u{EAB}\u{EA1}", "\u{F0C}" => "\u{F0B}", "\u{F43}" => "\u{F42}\u{FB7}", + "\u{F4D}" => "\u{F4C}\u{FB7}", "\u{F52}" => "\u{F51}\u{FB7}", "\u{F57}" => "\u{F56}\u{FB7}", "\u{F5C}" => "\u{F5B}\u{FB7}", + "\u{F69}" => "\u{F40}\u{FB5}", "\u{F73}" => "\u{F71}\u{F72}", "\u{F75}" => "\u{F71}\u{F74}", "\u{F76}" => "\u{FB2}\u{F80}", + "\u{F77}" => "\u{FB2}\u{F71}\u{F80}", "\u{F78}" => "\u{FB3}\u{F80}", "\u{F79}" => "\u{FB3}\u{F71}\u{F80}", "\u{F81}" => "\u{F71}\u{F80}", + "\u{F93}" => "\u{F92}\u{FB7}", "\u{F9D}" => "\u{F9C}\u{FB7}", "\u{FA2}" => "\u{FA1}\u{FB7}", "\u{FA7}" => "\u{FA6}\u{FB7}", + "\u{FAC}" => "\u{FAB}\u{FB7}", "\u{FB9}" => "\u{F90}\u{FB5}", "\u{10A0}" => "\u{2D00}", "\u{10A1}" => "\u{2D01}", + "\u{10A2}" => "\u{2D02}", "\u{10A3}" => "\u{2D03}", "\u{10A4}" => "\u{2D04}", "\u{10A5}" => "\u{2D05}", + "\u{10A6}" => "\u{2D06}", "\u{10A7}" => "\u{2D07}", "\u{10A8}" => "\u{2D08}", "\u{10A9}" => "\u{2D09}", + "\u{10AA}" => "\u{2D0A}", "\u{10AB}" => "\u{2D0B}", "\u{10AC}" => "\u{2D0C}", "\u{10AD}" => "\u{2D0D}", + "\u{10AE}" => "\u{2D0E}", "\u{10AF}" => "\u{2D0F}", "\u{10B0}" => "\u{2D10}", "\u{10B1}" => "\u{2D11}", + "\u{10B2}" => "\u{2D12}", "\u{10B3}" => "\u{2D13}", "\u{10B4}" => "\u{2D14}", "\u{10B5}" => "\u{2D15}", + "\u{10B6}" => "\u{2D16}", "\u{10B7}" => "\u{2D17}", "\u{10B8}" => "\u{2D18}", "\u{10B9}" => "\u{2D19}", + "\u{10BA}" => "\u{2D1A}", "\u{10BB}" => "\u{2D1B}", "\u{10BC}" => "\u{2D1C}", "\u{10BD}" => "\u{2D1D}", + "\u{10BE}" => "\u{2D1E}", "\u{10BF}" => "\u{2D1F}", "\u{10C0}" => "\u{2D20}", "\u{10C1}" => "\u{2D21}", + "\u{10C2}" => "\u{2D22}", "\u{10C3}" => "\u{2D23}", "\u{10C4}" => "\u{2D24}", "\u{10C5}" => "\u{2D25}", + "\u{10C7}" => "\u{2D27}", "\u{10CD}" => "\u{2D2D}", "\u{10FC}" => "\u{10DC}", "\u{115F}" => "", + "\u{1160}" => "", "\u{13F8}" => "\u{13F0}", "\u{13F9}" => "\u{13F1}", "\u{13FA}" => "\u{13F2}", + "\u{13FB}" => "\u{13F3}", "\u{13FC}" => "\u{13F4}", "\u{13FD}" => "\u{13F5}", "\u{17B4}" => "", + "\u{17B5}" => "", "\u{180B}" => "", "\u{180C}" => "", "\u{180D}" => "", + "\u{180E}" => "", "\u{180F}" => "", "\u{1C80}" => "\u{432}", "\u{1C81}" => "\u{434}", + "\u{1C82}" => "\u{43E}", "\u{1C83}" => "\u{441}", "\u{1C84}" => "\u{442}", "\u{1C85}" => "\u{442}", + "\u{1C86}" => "\u{44A}", "\u{1C87}" => "\u{463}", "\u{1C88}" => "\u{A64B}", "\u{1C89}" => "\u{1C8A}", + "\u{1C90}" => "\u{10D0}", "\u{1C91}" => "\u{10D1}", "\u{1C92}" => "\u{10D2}", "\u{1C93}" => "\u{10D3}", + "\u{1C94}" => "\u{10D4}", "\u{1C95}" => "\u{10D5}", "\u{1C96}" => "\u{10D6}", "\u{1C97}" => "\u{10D7}", + "\u{1C98}" => "\u{10D8}", "\u{1C99}" => "\u{10D9}", "\u{1C9A}" => "\u{10DA}", "\u{1C9B}" => "\u{10DB}", + "\u{1C9C}" => "\u{10DC}", "\u{1C9D}" => "\u{10DD}", "\u{1C9E}" => "\u{10DE}", "\u{1C9F}" => "\u{10DF}", + "\u{1CA0}" => "\u{10E0}", "\u{1CA1}" => "\u{10E1}", "\u{1CA2}" => "\u{10E2}", "\u{1CA3}" => "\u{10E3}", + "\u{1CA4}" => "\u{10E4}", "\u{1CA5}" => "\u{10E5}", "\u{1CA6}" => "\u{10E6}", "\u{1CA7}" => "\u{10E7}", + "\u{1CA8}" => "\u{10E8}", "\u{1CA9}" => "\u{10E9}", "\u{1CAA}" => "\u{10EA}", "\u{1CAB}" => "\u{10EB}", + "\u{1CAC}" => "\u{10EC}", "\u{1CAD}" => "\u{10ED}", "\u{1CAE}" => "\u{10EE}", "\u{1CAF}" => "\u{10EF}", + "\u{1CB0}" => "\u{10F0}", "\u{1CB1}" => "\u{10F1}", "\u{1CB2}" => "\u{10F2}", "\u{1CB3}" => "\u{10F3}", + "\u{1CB4}" => "\u{10F4}", "\u{1CB5}" => "\u{10F5}", "\u{1CB6}" => "\u{10F6}", "\u{1CB7}" => "\u{10F7}", + "\u{1CB8}" => "\u{10F8}", "\u{1CB9}" => "\u{10F9}", "\u{1CBA}" => "\u{10FA}", "\u{1CBD}" => "\u{10FD}", + "\u{1CBE}" => "\u{10FE}", "\u{1CBF}" => "\u{10FF}", "\u{1D2C}" => "\u{61}", "\u{1D2D}" => "\u{E6}", + "\u{1D2E}" => "\u{62}", "\u{1D30}" => "\u{64}", "\u{1D31}" => "\u{65}", "\u{1D32}" => "\u{1DD}", + "\u{1D33}" => "\u{67}", "\u{1D34}" => "\u{68}", "\u{1D35}" => "\u{69}", "\u{1D36}" => "\u{6A}", + "\u{1D37}" => "\u{6B}", "\u{1D38}" => "\u{6C}", "\u{1D39}" => "\u{6D}", "\u{1D3A}" => "\u{6E}", + "\u{1D3C}" => "\u{6F}", "\u{1D3D}" => "\u{223}", "\u{1D3E}" => "\u{70}", "\u{1D3F}" => "\u{72}", + "\u{1D40}" => "\u{74}", "\u{1D41}" => "\u{75}", "\u{1D42}" => "\u{77}", "\u{1D43}" => "\u{61}", + "\u{1D44}" => "\u{250}", "\u{1D45}" => "\u{251}", "\u{1D46}" => "\u{1D02}", "\u{1D47}" => "\u{62}", + "\u{1D48}" => "\u{64}", "\u{1D49}" => "\u{65}", "\u{1D4A}" => "\u{259}", "\u{1D4B}" => "\u{25B}", + "\u{1D4C}" => "\u{25C}", "\u{1D4D}" => "\u{67}", "\u{1D4F}" => "\u{6B}", "\u{1D50}" => "\u{6D}", + "\u{1D51}" => "\u{14B}", "\u{1D52}" => "\u{6F}", "\u{1D53}" => "\u{254}", "\u{1D54}" => "\u{1D16}", + "\u{1D55}" => "\u{1D17}", "\u{1D56}" => "\u{70}", "\u{1D57}" => "\u{74}", "\u{1D58}" => "\u{75}", + "\u{1D59}" => "\u{1D1D}", "\u{1D5A}" => "\u{26F}", "\u{1D5B}" => "\u{76}", "\u{1D5C}" => "\u{1D25}", + "\u{1D5D}" => "\u{3B2}", "\u{1D5E}" => "\u{3B3}", "\u{1D5F}" => "\u{3B4}", "\u{1D60}" => "\u{3C6}", + "\u{1D61}" => "\u{3C7}", "\u{1D62}" => "\u{69}", "\u{1D63}" => "\u{72}", "\u{1D64}" => "\u{75}", + "\u{1D65}" => "\u{76}", "\u{1D66}" => "\u{3B2}", "\u{1D67}" => "\u{3B3}", "\u{1D68}" => "\u{3C1}", + "\u{1D69}" => "\u{3C6}", "\u{1D6A}" => "\u{3C7}", "\u{1D78}" => "\u{43D}", "\u{1D9B}" => "\u{252}", + "\u{1D9C}" => "\u{63}", "\u{1D9D}" => "\u{255}", "\u{1D9E}" => "\u{F0}", "\u{1D9F}" => "\u{25C}", + "\u{1DA0}" => "\u{66}", "\u{1DA1}" => "\u{25F}", "\u{1DA2}" => "\u{261}", "\u{1DA3}" => "\u{265}", + "\u{1DA4}" => "\u{268}", "\u{1DA5}" => "\u{269}", "\u{1DA6}" => "\u{26A}", "\u{1DA7}" => "\u{1D7B}", + "\u{1DA8}" => "\u{29D}", "\u{1DA9}" => "\u{26D}", "\u{1DAA}" => "\u{1D85}", "\u{1DAB}" => "\u{29F}", + "\u{1DAC}" => "\u{271}", "\u{1DAD}" => "\u{270}", "\u{1DAE}" => "\u{272}", "\u{1DAF}" => "\u{273}", + "\u{1DB0}" => "\u{274}", "\u{1DB1}" => "\u{275}", "\u{1DB2}" => "\u{278}", "\u{1DB3}" => "\u{282}", + "\u{1DB4}" => "\u{283}", "\u{1DB5}" => "\u{1AB}", "\u{1DB6}" => "\u{289}", "\u{1DB7}" => "\u{28A}", + "\u{1DB8}" => "\u{1D1C}", "\u{1DB9}" => "\u{28B}", "\u{1DBA}" => "\u{28C}", "\u{1DBB}" => "\u{7A}", + "\u{1DBC}" => "\u{290}", "\u{1DBD}" => "\u{291}", "\u{1DBE}" => "\u{292}", "\u{1DBF}" => "\u{3B8}", + "\u{1E00}" => "\u{1E01}", "\u{1E02}" => "\u{1E03}", "\u{1E04}" => "\u{1E05}", "\u{1E06}" => "\u{1E07}", + "\u{1E08}" => "\u{1E09}", "\u{1E0A}" => "\u{1E0B}", "\u{1E0C}" => "\u{1E0D}", "\u{1E0E}" => "\u{1E0F}", + "\u{1E10}" => "\u{1E11}", "\u{1E12}" => "\u{1E13}", "\u{1E14}" => "\u{1E15}", "\u{1E16}" => "\u{1E17}", + "\u{1E18}" => "\u{1E19}", "\u{1E1A}" => "\u{1E1B}", "\u{1E1C}" => "\u{1E1D}", "\u{1E1E}" => "\u{1E1F}", + "\u{1E20}" => "\u{1E21}", "\u{1E22}" => "\u{1E23}", "\u{1E24}" => "\u{1E25}", "\u{1E26}" => "\u{1E27}", + "\u{1E28}" => "\u{1E29}", "\u{1E2A}" => "\u{1E2B}", "\u{1E2C}" => "\u{1E2D}", "\u{1E2E}" => "\u{1E2F}", + "\u{1E30}" => "\u{1E31}", "\u{1E32}" => "\u{1E33}", "\u{1E34}" => "\u{1E35}", "\u{1E36}" => "\u{1E37}", + "\u{1E38}" => "\u{1E39}", "\u{1E3A}" => "\u{1E3B}", "\u{1E3C}" => "\u{1E3D}", "\u{1E3E}" => "\u{1E3F}", + "\u{1E40}" => "\u{1E41}", "\u{1E42}" => "\u{1E43}", "\u{1E44}" => "\u{1E45}", "\u{1E46}" => "\u{1E47}", + "\u{1E48}" => "\u{1E49}", "\u{1E4A}" => "\u{1E4B}", "\u{1E4C}" => "\u{1E4D}", "\u{1E4E}" => "\u{1E4F}", + "\u{1E50}" => "\u{1E51}", "\u{1E52}" => "\u{1E53}", "\u{1E54}" => "\u{1E55}", "\u{1E56}" => "\u{1E57}", + "\u{1E58}" => "\u{1E59}", "\u{1E5A}" => "\u{1E5B}", "\u{1E5C}" => "\u{1E5D}", "\u{1E5E}" => "\u{1E5F}", + "\u{1E60}" => "\u{1E61}", "\u{1E62}" => "\u{1E63}", "\u{1E64}" => "\u{1E65}", "\u{1E66}" => "\u{1E67}", + "\u{1E68}" => "\u{1E69}", "\u{1E6A}" => "\u{1E6B}", "\u{1E6C}" => "\u{1E6D}", "\u{1E6E}" => "\u{1E6F}", + "\u{1E70}" => "\u{1E71}", "\u{1E72}" => "\u{1E73}", "\u{1E74}" => "\u{1E75}", "\u{1E76}" => "\u{1E77}", + "\u{1E78}" => "\u{1E79}", "\u{1E7A}" => "\u{1E7B}", "\u{1E7C}" => "\u{1E7D}", "\u{1E7E}" => "\u{1E7F}", + "\u{1E80}" => "\u{1E81}", "\u{1E82}" => "\u{1E83}", "\u{1E84}" => "\u{1E85}", "\u{1E86}" => "\u{1E87}", + "\u{1E88}" => "\u{1E89}", "\u{1E8A}" => "\u{1E8B}", "\u{1E8C}" => "\u{1E8D}", "\u{1E8E}" => "\u{1E8F}", + "\u{1E90}" => "\u{1E91}", "\u{1E92}" => "\u{1E93}", "\u{1E94}" => "\u{1E95}", "\u{1E9A}" => "\u{61}\u{2BE}", + "\u{1E9B}" => "\u{1E61}", "\u{1E9E}" => "\u{DF}", "\u{1EA0}" => "\u{1EA1}", "\u{1EA2}" => "\u{1EA3}", + "\u{1EA4}" => "\u{1EA5}", "\u{1EA6}" => "\u{1EA7}", "\u{1EA8}" => "\u{1EA9}", "\u{1EAA}" => "\u{1EAB}", + "\u{1EAC}" => "\u{1EAD}", "\u{1EAE}" => "\u{1EAF}", "\u{1EB0}" => "\u{1EB1}", "\u{1EB2}" => "\u{1EB3}", + "\u{1EB4}" => "\u{1EB5}", "\u{1EB6}" => "\u{1EB7}", "\u{1EB8}" => "\u{1EB9}", "\u{1EBA}" => "\u{1EBB}", + "\u{1EBC}" => "\u{1EBD}", "\u{1EBE}" => "\u{1EBF}", "\u{1EC0}" => "\u{1EC1}", "\u{1EC2}" => "\u{1EC3}", + "\u{1EC4}" => "\u{1EC5}", "\u{1EC6}" => "\u{1EC7}", "\u{1EC8}" => "\u{1EC9}", "\u{1ECA}" => "\u{1ECB}", + "\u{1ECC}" => "\u{1ECD}", "\u{1ECE}" => "\u{1ECF}", "\u{1ED0}" => "\u{1ED1}", "\u{1ED2}" => "\u{1ED3}", + "\u{1ED4}" => "\u{1ED5}", "\u{1ED6}" => "\u{1ED7}", "\u{1ED8}" => "\u{1ED9}", "\u{1EDA}" => "\u{1EDB}", + "\u{1EDC}" => "\u{1EDD}", "\u{1EDE}" => "\u{1EDF}", "\u{1EE0}" => "\u{1EE1}", "\u{1EE2}" => "\u{1EE3}", + "\u{1EE4}" => "\u{1EE5}", "\u{1EE6}" => "\u{1EE7}", "\u{1EE8}" => "\u{1EE9}", "\u{1EEA}" => "\u{1EEB}", + "\u{1EEC}" => "\u{1EED}", "\u{1EEE}" => "\u{1EEF}", "\u{1EF0}" => "\u{1EF1}", "\u{1EF2}" => "\u{1EF3}", + "\u{1EF4}" => "\u{1EF5}", "\u{1EF6}" => "\u{1EF7}", "\u{1EF8}" => "\u{1EF9}", "\u{1EFA}" => "\u{1EFB}", + "\u{1EFC}" => "\u{1EFD}", "\u{1EFE}" => "\u{1EFF}", "\u{1F08}" => "\u{1F00}", "\u{1F09}" => "\u{1F01}", + "\u{1F0A}" => "\u{1F02}", "\u{1F0B}" => "\u{1F03}", "\u{1F0C}" => "\u{1F04}", "\u{1F0D}" => "\u{1F05}", + "\u{1F0E}" => "\u{1F06}", "\u{1F0F}" => "\u{1F07}", "\u{1F18}" => "\u{1F10}", "\u{1F19}" => "\u{1F11}", + "\u{1F1A}" => "\u{1F12}", "\u{1F1B}" => "\u{1F13}", "\u{1F1C}" => "\u{1F14}", "\u{1F1D}" => "\u{1F15}", + "\u{1F28}" => "\u{1F20}", "\u{1F29}" => "\u{1F21}", "\u{1F2A}" => "\u{1F22}", "\u{1F2B}" => "\u{1F23}", + "\u{1F2C}" => "\u{1F24}", "\u{1F2D}" => "\u{1F25}", "\u{1F2E}" => "\u{1F26}", "\u{1F2F}" => "\u{1F27}", + "\u{1F38}" => "\u{1F30}", "\u{1F39}" => "\u{1F31}", "\u{1F3A}" => "\u{1F32}", "\u{1F3B}" => "\u{1F33}", + "\u{1F3C}" => "\u{1F34}", "\u{1F3D}" => "\u{1F35}", "\u{1F3E}" => "\u{1F36}", "\u{1F3F}" => "\u{1F37}", + "\u{1F48}" => "\u{1F40}", "\u{1F49}" => "\u{1F41}", "\u{1F4A}" => "\u{1F42}", "\u{1F4B}" => "\u{1F43}", + "\u{1F4C}" => "\u{1F44}", "\u{1F4D}" => "\u{1F45}", "\u{1F59}" => "\u{1F51}", "\u{1F5B}" => "\u{1F53}", + "\u{1F5D}" => "\u{1F55}", "\u{1F5F}" => "\u{1F57}", "\u{1F68}" => "\u{1F60}", "\u{1F69}" => "\u{1F61}", + "\u{1F6A}" => "\u{1F62}", "\u{1F6B}" => "\u{1F63}", "\u{1F6C}" => "\u{1F64}", "\u{1F6D}" => "\u{1F65}", + "\u{1F6E}" => "\u{1F66}", "\u{1F6F}" => "\u{1F67}", "\u{1F71}" => "\u{3AC}", "\u{1F73}" => "\u{3AD}", + "\u{1F75}" => "\u{3AE}", "\u{1F77}" => "\u{3AF}", "\u{1F79}" => "\u{3CC}", "\u{1F7B}" => "\u{3CD}", + "\u{1F7D}" => "\u{3CE}", "\u{1F80}" => "\u{1F00}\u{3B9}", "\u{1F81}" => "\u{1F01}\u{3B9}", "\u{1F82}" => "\u{1F02}\u{3B9}", + "\u{1F83}" => "\u{1F03}\u{3B9}", "\u{1F84}" => "\u{1F04}\u{3B9}", "\u{1F85}" => "\u{1F05}\u{3B9}", "\u{1F86}" => "\u{1F06}\u{3B9}", + "\u{1F87}" => "\u{1F07}\u{3B9}", "\u{1F88}" => "\u{1F00}\u{3B9}", "\u{1F89}" => "\u{1F01}\u{3B9}", "\u{1F8A}" => "\u{1F02}\u{3B9}", + "\u{1F8B}" => "\u{1F03}\u{3B9}", "\u{1F8C}" => "\u{1F04}\u{3B9}", "\u{1F8D}" => "\u{1F05}\u{3B9}", "\u{1F8E}" => "\u{1F06}\u{3B9}", + "\u{1F8F}" => "\u{1F07}\u{3B9}", "\u{1F90}" => "\u{1F20}\u{3B9}", "\u{1F91}" => "\u{1F21}\u{3B9}", "\u{1F92}" => "\u{1F22}\u{3B9}", + "\u{1F93}" => "\u{1F23}\u{3B9}", "\u{1F94}" => "\u{1F24}\u{3B9}", "\u{1F95}" => "\u{1F25}\u{3B9}", "\u{1F96}" => "\u{1F26}\u{3B9}", + "\u{1F97}" => "\u{1F27}\u{3B9}", "\u{1F98}" => "\u{1F20}\u{3B9}", "\u{1F99}" => "\u{1F21}\u{3B9}", "\u{1F9A}" => "\u{1F22}\u{3B9}", + "\u{1F9B}" => "\u{1F23}\u{3B9}", "\u{1F9C}" => "\u{1F24}\u{3B9}", "\u{1F9D}" => "\u{1F25}\u{3B9}", "\u{1F9E}" => "\u{1F26}\u{3B9}", + "\u{1F9F}" => "\u{1F27}\u{3B9}", "\u{1FA0}" => "\u{1F60}\u{3B9}", "\u{1FA1}" => "\u{1F61}\u{3B9}", "\u{1FA2}" => "\u{1F62}\u{3B9}", + "\u{1FA3}" => "\u{1F63}\u{3B9}", "\u{1FA4}" => "\u{1F64}\u{3B9}", "\u{1FA5}" => "\u{1F65}\u{3B9}", "\u{1FA6}" => "\u{1F66}\u{3B9}", + "\u{1FA7}" => "\u{1F67}\u{3B9}", "\u{1FA8}" => "\u{1F60}\u{3B9}", "\u{1FA9}" => "\u{1F61}\u{3B9}", "\u{1FAA}" => "\u{1F62}\u{3B9}", + "\u{1FAB}" => "\u{1F63}\u{3B9}", "\u{1FAC}" => "\u{1F64}\u{3B9}", "\u{1FAD}" => "\u{1F65}\u{3B9}", "\u{1FAE}" => "\u{1F66}\u{3B9}", + "\u{1FAF}" => "\u{1F67}\u{3B9}", "\u{1FB2}" => "\u{1F70}\u{3B9}", "\u{1FB3}" => "\u{3B1}\u{3B9}", "\u{1FB4}" => "\u{3AC}\u{3B9}", + "\u{1FB7}" => "\u{1FB6}\u{3B9}", "\u{1FB8}" => "\u{1FB0}", "\u{1FB9}" => "\u{1FB1}", "\u{1FBA}" => "\u{1F70}", + "\u{1FBB}" => "\u{3AC}", "\u{1FBC}" => "\u{3B1}\u{3B9}", "\u{1FBD}" => "\u{20}\u{313}", "\u{1FBE}" => "\u{3B9}", + "\u{1FBF}" => "\u{20}\u{313}", "\u{1FC0}" => "\u{20}\u{342}", "\u{1FC1}" => "\u{20}\u{308}\u{342}", "\u{1FC2}" => "\u{1F74}\u{3B9}", + "\u{1FC3}" => "\u{3B7}\u{3B9}", "\u{1FC4}" => "\u{3AE}\u{3B9}", "\u{1FC7}" => "\u{1FC6}\u{3B9}", "\u{1FC8}" => "\u{1F72}", + "\u{1FC9}" => "\u{3AD}", "\u{1FCA}" => "\u{1F74}", "\u{1FCB}" => "\u{3AE}", "\u{1FCC}" => "\u{3B7}\u{3B9}", + "\u{1FCD}" => "\u{20}\u{313}\u{300}", "\u{1FCE}" => "\u{20}\u{313}\u{301}", "\u{1FCF}" => "\u{20}\u{313}\u{342}", "\u{1FD3}" => "\u{390}", + "\u{1FD8}" => "\u{1FD0}", "\u{1FD9}" => "\u{1FD1}", "\u{1FDA}" => "\u{1F76}", "\u{1FDB}" => "\u{3AF}", + "\u{1FDD}" => "\u{20}\u{314}\u{300}", "\u{1FDE}" => "\u{20}\u{314}\u{301}", "\u{1FDF}" => "\u{20}\u{314}\u{342}", "\u{1FE3}" => "\u{3B0}", + "\u{1FE8}" => "\u{1FE0}", "\u{1FE9}" => "\u{1FE1}", "\u{1FEA}" => "\u{1F7A}", "\u{1FEB}" => "\u{3CD}", + "\u{1FEC}" => "\u{1FE5}", "\u{1FED}" => "\u{20}\u{308}\u{300}", "\u{1FEE}" => "\u{20}\u{308}\u{301}", "\u{1FEF}" => "\u{60}", + "\u{1FF2}" => "\u{1F7C}\u{3B9}", "\u{1FF3}" => "\u{3C9}\u{3B9}", "\u{1FF4}" => "\u{3CE}\u{3B9}", "\u{1FF7}" => "\u{1FF6}\u{3B9}", + "\u{1FF8}" => "\u{1F78}", "\u{1FF9}" => "\u{3CC}", "\u{1FFA}" => "\u{1F7C}", "\u{1FFB}" => "\u{3CE}", + "\u{1FFC}" => "\u{3C9}\u{3B9}", "\u{1FFD}" => "\u{20}\u{301}", "\u{1FFE}" => "\u{20}\u{314}", "\u{2000}" => "\u{20}", + "\u{2001}" => "\u{20}", "\u{2002}" => "\u{20}", "\u{2003}" => "\u{20}", "\u{2004}" => "\u{20}", + "\u{2005}" => "\u{20}", "\u{2006}" => "\u{20}", "\u{2007}" => "\u{20}", "\u{2008}" => "\u{20}", + "\u{2009}" => "\u{20}", "\u{200A}" => "\u{20}", "\u{200B}" => "", "\u{2011}" => "\u{2010}", + "\u{2017}" => "\u{20}\u{333}", "\u{202F}" => "\u{20}", "\u{2033}" => "\u{2032}\u{2032}", "\u{2034}" => "\u{2032}\u{2032}\u{2032}", + "\u{2036}" => "\u{2035}\u{2035}", "\u{2037}" => "\u{2035}\u{2035}\u{2035}", "\u{203C}" => "\u{21}\u{21}", "\u{203E}" => "\u{20}\u{305}", + "\u{2047}" => "\u{3F}\u{3F}", "\u{2048}" => "\u{3F}\u{21}", "\u{2049}" => "\u{21}\u{3F}", "\u{2057}" => "\u{2032}\u{2032}\u{2032}\u{2032}", + "\u{205F}" => "\u{20}", "\u{2060}" => "", "\u{2061}" => "", "\u{2062}" => "", + "\u{2063}" => "", "\u{2064}" => "", "\u{206A}" => "", "\u{206B}" => "", + "\u{206C}" => "", "\u{206D}" => "", "\u{206E}" => "", "\u{206F}" => "", + "\u{2070}" => "\u{30}", "\u{2071}" => "\u{69}", "\u{2074}" => "\u{34}", "\u{2075}" => "\u{35}", + "\u{2076}" => "\u{36}", "\u{2077}" => "\u{37}", "\u{2078}" => "\u{38}", "\u{2079}" => "\u{39}", + "\u{207A}" => "\u{2B}", "\u{207B}" => "\u{2212}", "\u{207C}" => "\u{3D}", "\u{207D}" => "\u{28}", + "\u{207E}" => "\u{29}", "\u{207F}" => "\u{6E}", "\u{2080}" => "\u{30}", "\u{2081}" => "\u{31}", + "\u{2082}" => "\u{32}", "\u{2083}" => "\u{33}", "\u{2084}" => "\u{34}", "\u{2085}" => "\u{35}", + "\u{2086}" => "\u{36}", "\u{2087}" => "\u{37}", "\u{2088}" => "\u{38}", "\u{2089}" => "\u{39}", + "\u{208A}" => "\u{2B}", "\u{208B}" => "\u{2212}", "\u{208C}" => "\u{3D}", "\u{208D}" => "\u{28}", + "\u{208E}" => "\u{29}", "\u{2090}" => "\u{61}", "\u{2091}" => "\u{65}", "\u{2092}" => "\u{6F}", + "\u{2093}" => "\u{78}", "\u{2094}" => "\u{259}", "\u{2095}" => "\u{68}", "\u{2096}" => "\u{6B}", + "\u{2097}" => "\u{6C}", "\u{2098}" => "\u{6D}", "\u{2099}" => "\u{6E}", "\u{209A}" => "\u{70}", + "\u{209B}" => "\u{73}", "\u{209C}" => "\u{74}", "\u{209D}" => "\u{77}", "\u{209E}" => "\u{79}", + "\u{209F}" => "\u{7A}", "\u{20A8}" => "\u{72}\u{73}", "\u{2100}" => "\u{61}\u{2F}\u{63}", "\u{2101}" => "\u{61}\u{2F}\u{73}", + "\u{2102}" => "\u{63}", "\u{2103}" => "\u{B0}\u{63}", "\u{2105}" => "\u{63}\u{2F}\u{6F}", "\u{2106}" => "\u{63}\u{2F}\u{75}", + "\u{2107}" => "\u{25B}", "\u{2109}" => "\u{B0}\u{66}", "\u{210A}" => "\u{67}", "\u{210B}" => "\u{68}", + "\u{210C}" => "\u{68}", "\u{210D}" => "\u{68}", "\u{210E}" => "\u{68}", "\u{210F}" => "\u{127}", + "\u{2110}" => "\u{69}", "\u{2111}" => "\u{69}", "\u{2112}" => "\u{6C}", "\u{2113}" => "\u{6C}", + "\u{2115}" => "\u{6E}", "\u{2116}" => "\u{6E}\u{6F}", "\u{2119}" => "\u{70}", "\u{211A}" => "\u{71}", + "\u{211B}" => "\u{72}", "\u{211C}" => "\u{72}", "\u{211D}" => "\u{72}", "\u{2120}" => "\u{73}\u{6D}", + "\u{2121}" => "\u{74}\u{65}\u{6C}", "\u{2122}" => "\u{74}\u{6D}", "\u{2124}" => "\u{7A}", "\u{2126}" => "\u{3C9}", + "\u{2128}" => "\u{7A}", "\u{212A}" => "\u{6B}", "\u{212B}" => "\u{E5}", "\u{212C}" => "\u{62}", + "\u{212D}" => "\u{63}", "\u{212F}" => "\u{65}", "\u{2130}" => "\u{65}", "\u{2131}" => "\u{66}", + "\u{2132}" => "\u{214E}", "\u{2133}" => "\u{6D}", "\u{2134}" => "\u{6F}", "\u{2135}" => "\u{5D0}", + "\u{2136}" => "\u{5D1}", "\u{2137}" => "\u{5D2}", "\u{2138}" => "\u{5D3}", "\u{2139}" => "\u{69}", + "\u{213B}" => "\u{66}\u{61}\u{78}", "\u{213C}" => "\u{3C0}", "\u{213D}" => "\u{3B3}", "\u{213E}" => "\u{3B3}", + "\u{213F}" => "\u{3C0}", "\u{2140}" => "\u{2211}", "\u{2145}" => "\u{64}", "\u{2146}" => "\u{64}", + "\u{2147}" => "\u{65}", "\u{2148}" => "\u{69}", "\u{2149}" => "\u{6A}", "\u{2150}" => "\u{31}\u{2044}\u{37}", + "\u{2151}" => "\u{31}\u{2044}\u{39}", "\u{2152}" => "\u{31}\u{2044}\u{31}\u{30}", "\u{2153}" => "\u{31}\u{2044}\u{33}", "\u{2154}" => "\u{32}\u{2044}\u{33}", + "\u{2155}" => "\u{31}\u{2044}\u{35}", "\u{2156}" => "\u{32}\u{2044}\u{35}", "\u{2157}" => "\u{33}\u{2044}\u{35}", "\u{2158}" => "\u{34}\u{2044}\u{35}", + "\u{2159}" => "\u{31}\u{2044}\u{36}", "\u{215A}" => "\u{35}\u{2044}\u{36}", "\u{215B}" => "\u{31}\u{2044}\u{38}", "\u{215C}" => "\u{33}\u{2044}\u{38}", + "\u{215D}" => "\u{35}\u{2044}\u{38}", "\u{215E}" => "\u{37}\u{2044}\u{38}", "\u{215F}" => "\u{31}\u{2044}", "\u{2160}" => "\u{69}", + "\u{2161}" => "\u{69}\u{69}", "\u{2162}" => "\u{69}\u{69}\u{69}", "\u{2163}" => "\u{69}\u{76}", "\u{2164}" => "\u{76}", + "\u{2165}" => "\u{76}\u{69}", "\u{2166}" => "\u{76}\u{69}\u{69}", "\u{2167}" => "\u{76}\u{69}\u{69}\u{69}", "\u{2168}" => "\u{69}\u{78}", + "\u{2169}" => "\u{78}", "\u{216A}" => "\u{78}\u{69}", "\u{216B}" => "\u{78}\u{69}\u{69}", "\u{216C}" => "\u{6C}", + "\u{216D}" => "\u{63}", "\u{216E}" => "\u{64}", "\u{216F}" => "\u{6D}", "\u{2170}" => "\u{69}", + "\u{2171}" => "\u{69}\u{69}", "\u{2172}" => "\u{69}\u{69}\u{69}", "\u{2173}" => "\u{69}\u{76}", "\u{2174}" => "\u{76}", + "\u{2175}" => "\u{76}\u{69}", "\u{2176}" => "\u{76}\u{69}\u{69}", "\u{2177}" => "\u{76}\u{69}\u{69}\u{69}", "\u{2178}" => "\u{69}\u{78}", + "\u{2179}" => "\u{78}", "\u{217A}" => "\u{78}\u{69}", "\u{217B}" => "\u{78}\u{69}\u{69}", "\u{217C}" => "\u{6C}", + "\u{217D}" => "\u{63}", "\u{217E}" => "\u{64}", "\u{217F}" => "\u{6D}", "\u{2183}" => "\u{2184}", + "\u{2189}" => "\u{30}\u{2044}\u{33}", "\u{222C}" => "\u{222B}\u{222B}", "\u{222D}" => "\u{222B}\u{222B}\u{222B}", "\u{222F}" => "\u{222E}\u{222E}", + "\u{2230}" => "\u{222E}\u{222E}\u{222E}", "\u{2329}" => "\u{3008}", "\u{232A}" => "\u{3009}", "\u{2460}" => "\u{31}", + "\u{2461}" => "\u{32}", "\u{2462}" => "\u{33}", "\u{2463}" => "\u{34}", "\u{2464}" => "\u{35}", + "\u{2465}" => "\u{36}", "\u{2466}" => "\u{37}", "\u{2467}" => "\u{38}", "\u{2468}" => "\u{39}", + "\u{2469}" => "\u{31}\u{30}", "\u{246A}" => "\u{31}\u{31}", "\u{246B}" => "\u{31}\u{32}", "\u{246C}" => "\u{31}\u{33}", + "\u{246D}" => "\u{31}\u{34}", "\u{246E}" => "\u{31}\u{35}", "\u{246F}" => "\u{31}\u{36}", "\u{2470}" => "\u{31}\u{37}", + "\u{2471}" => "\u{31}\u{38}", "\u{2472}" => "\u{31}\u{39}", "\u{2473}" => "\u{32}\u{30}", "\u{2474}" => "\u{28}\u{31}\u{29}", + "\u{2475}" => "\u{28}\u{32}\u{29}", "\u{2476}" => "\u{28}\u{33}\u{29}", "\u{2477}" => "\u{28}\u{34}\u{29}", "\u{2478}" => "\u{28}\u{35}\u{29}", + "\u{2479}" => "\u{28}\u{36}\u{29}", "\u{247A}" => "\u{28}\u{37}\u{29}", "\u{247B}" => "\u{28}\u{38}\u{29}", "\u{247C}" => "\u{28}\u{39}\u{29}", + "\u{247D}" => "\u{28}\u{31}\u{30}\u{29}", "\u{247E}" => "\u{28}\u{31}\u{31}\u{29}", "\u{247F}" => "\u{28}\u{31}\u{32}\u{29}", "\u{2480}" => "\u{28}\u{31}\u{33}\u{29}", + "\u{2481}" => "\u{28}\u{31}\u{34}\u{29}", "\u{2482}" => "\u{28}\u{31}\u{35}\u{29}", "\u{2483}" => "\u{28}\u{31}\u{36}\u{29}", "\u{2484}" => "\u{28}\u{31}\u{37}\u{29}", + "\u{2485}" => "\u{28}\u{31}\u{38}\u{29}", "\u{2486}" => "\u{28}\u{31}\u{39}\u{29}", "\u{2487}" => "\u{28}\u{32}\u{30}\u{29}", "\u{249C}" => "\u{28}\u{61}\u{29}", + "\u{249D}" => "\u{28}\u{62}\u{29}", "\u{249E}" => "\u{28}\u{63}\u{29}", "\u{249F}" => "\u{28}\u{64}\u{29}", "\u{24A0}" => "\u{28}\u{65}\u{29}", + "\u{24A1}" => "\u{28}\u{66}\u{29}", "\u{24A2}" => "\u{28}\u{67}\u{29}", "\u{24A3}" => "\u{28}\u{68}\u{29}", "\u{24A4}" => "\u{28}\u{69}\u{29}", + "\u{24A5}" => "\u{28}\u{6A}\u{29}", "\u{24A6}" => "\u{28}\u{6B}\u{29}", "\u{24A7}" => "\u{28}\u{6C}\u{29}", "\u{24A8}" => "\u{28}\u{6D}\u{29}", + "\u{24A9}" => "\u{28}\u{6E}\u{29}", "\u{24AA}" => "\u{28}\u{6F}\u{29}", "\u{24AB}" => "\u{28}\u{70}\u{29}", "\u{24AC}" => "\u{28}\u{71}\u{29}", + "\u{24AD}" => "\u{28}\u{72}\u{29}", "\u{24AE}" => "\u{28}\u{73}\u{29}", "\u{24AF}" => "\u{28}\u{74}\u{29}", "\u{24B0}" => "\u{28}\u{75}\u{29}", + "\u{24B1}" => "\u{28}\u{76}\u{29}", "\u{24B2}" => "\u{28}\u{77}\u{29}", "\u{24B3}" => "\u{28}\u{78}\u{29}", "\u{24B4}" => "\u{28}\u{79}\u{29}", + "\u{24B5}" => "\u{28}\u{7A}\u{29}", "\u{24B6}" => "\u{61}", "\u{24B7}" => "\u{62}", "\u{24B8}" => "\u{63}", + "\u{24B9}" => "\u{64}", "\u{24BA}" => "\u{65}", "\u{24BB}" => "\u{66}", "\u{24BC}" => "\u{67}", + "\u{24BD}" => "\u{68}", "\u{24BE}" => "\u{69}", "\u{24BF}" => "\u{6A}", "\u{24C0}" => "\u{6B}", + "\u{24C1}" => "\u{6C}", "\u{24C2}" => "\u{6D}", "\u{24C3}" => "\u{6E}", "\u{24C4}" => "\u{6F}", + "\u{24C5}" => "\u{70}", "\u{24C6}" => "\u{71}", "\u{24C7}" => "\u{72}", "\u{24C8}" => "\u{73}", + "\u{24C9}" => "\u{74}", "\u{24CA}" => "\u{75}", "\u{24CB}" => "\u{76}", "\u{24CC}" => "\u{77}", + "\u{24CD}" => "\u{78}", "\u{24CE}" => "\u{79}", "\u{24CF}" => "\u{7A}", "\u{24D0}" => "\u{61}", + "\u{24D1}" => "\u{62}", "\u{24D2}" => "\u{63}", "\u{24D3}" => "\u{64}", "\u{24D4}" => "\u{65}", + "\u{24D5}" => "\u{66}", "\u{24D6}" => "\u{67}", "\u{24D7}" => "\u{68}", "\u{24D8}" => "\u{69}", + "\u{24D9}" => "\u{6A}", "\u{24DA}" => "\u{6B}", "\u{24DB}" => "\u{6C}", "\u{24DC}" => "\u{6D}", + "\u{24DD}" => "\u{6E}", "\u{24DE}" => "\u{6F}", "\u{24DF}" => "\u{70}", "\u{24E0}" => "\u{71}", + "\u{24E1}" => "\u{72}", "\u{24E2}" => "\u{73}", "\u{24E3}" => "\u{74}", "\u{24E4}" => "\u{75}", + "\u{24E5}" => "\u{76}", "\u{24E6}" => "\u{77}", "\u{24E7}" => "\u{78}", "\u{24E8}" => "\u{79}", + "\u{24E9}" => "\u{7A}", "\u{24EA}" => "\u{30}", "\u{2A0C}" => "\u{222B}\u{222B}\u{222B}\u{222B}", "\u{2A74}" => "\u{3A}\u{3A}\u{3D}", + "\u{2A75}" => "\u{3D}\u{3D}", "\u{2A76}" => "\u{3D}\u{3D}\u{3D}", "\u{2ADC}" => "\u{2ADD}\u{338}", "\u{2C00}" => "\u{2C30}", + "\u{2C01}" => "\u{2C31}", "\u{2C02}" => "\u{2C32}", "\u{2C03}" => "\u{2C33}", "\u{2C04}" => "\u{2C34}", + "\u{2C05}" => "\u{2C35}", "\u{2C06}" => "\u{2C36}", "\u{2C07}" => "\u{2C37}", "\u{2C08}" => "\u{2C38}", + "\u{2C09}" => "\u{2C39}", "\u{2C0A}" => "\u{2C3A}", "\u{2C0B}" => "\u{2C3B}", "\u{2C0C}" => "\u{2C3C}", + "\u{2C0D}" => "\u{2C3D}", "\u{2C0E}" => "\u{2C3E}", "\u{2C0F}" => "\u{2C3F}", "\u{2C10}" => "\u{2C40}", + "\u{2C11}" => "\u{2C41}", "\u{2C12}" => "\u{2C42}", "\u{2C13}" => "\u{2C43}", "\u{2C14}" => "\u{2C44}", + "\u{2C15}" => "\u{2C45}", "\u{2C16}" => "\u{2C46}", "\u{2C17}" => "\u{2C47}", "\u{2C18}" => "\u{2C48}", + "\u{2C19}" => "\u{2C49}", "\u{2C1A}" => "\u{2C4A}", "\u{2C1B}" => "\u{2C4B}", "\u{2C1C}" => "\u{2C4C}", + "\u{2C1D}" => "\u{2C4D}", "\u{2C1E}" => "\u{2C4E}", "\u{2C1F}" => "\u{2C4F}", "\u{2C20}" => "\u{2C50}", + "\u{2C21}" => "\u{2C51}", "\u{2C22}" => "\u{2C52}", "\u{2C23}" => "\u{2C53}", "\u{2C24}" => "\u{2C54}", + "\u{2C25}" => "\u{2C55}", "\u{2C26}" => "\u{2C56}", "\u{2C27}" => "\u{2C57}", "\u{2C28}" => "\u{2C58}", + "\u{2C29}" => "\u{2C59}", "\u{2C2A}" => "\u{2C5A}", "\u{2C2B}" => "\u{2C5B}", "\u{2C2C}" => "\u{2C5C}", + "\u{2C2D}" => "\u{2C5D}", "\u{2C2E}" => "\u{2C5E}", "\u{2C2F}" => "\u{2C5F}", "\u{2C60}" => "\u{2C61}", + "\u{2C62}" => "\u{26B}", "\u{2C63}" => "\u{1D7D}", "\u{2C64}" => "\u{27D}", "\u{2C67}" => "\u{2C68}", + "\u{2C69}" => "\u{2C6A}", "\u{2C6B}" => "\u{2C6C}", "\u{2C6D}" => "\u{251}", "\u{2C6E}" => "\u{271}", + "\u{2C6F}" => "\u{250}", "\u{2C70}" => "\u{252}", "\u{2C72}" => "\u{2C73}", "\u{2C75}" => "\u{2C76}", + "\u{2C7C}" => "\u{6A}", "\u{2C7D}" => "\u{76}", "\u{2C7E}" => "\u{23F}", "\u{2C7F}" => "\u{240}", + "\u{2C80}" => "\u{2C81}", "\u{2C82}" => "\u{2C83}", "\u{2C84}" => "\u{2C85}", "\u{2C86}" => "\u{2C87}", + "\u{2C88}" => "\u{2C89}", "\u{2C8A}" => "\u{2C8B}", "\u{2C8C}" => "\u{2C8D}", "\u{2C8E}" => "\u{2C8F}", + "\u{2C90}" => "\u{2C91}", "\u{2C92}" => "\u{2C93}", "\u{2C94}" => "\u{2C95}", "\u{2C96}" => "\u{2C97}", + "\u{2C98}" => "\u{2C99}", "\u{2C9A}" => "\u{2C9B}", "\u{2C9C}" => "\u{2C9D}", "\u{2C9E}" => "\u{2C9F}", + "\u{2CA0}" => "\u{2CA1}", "\u{2CA2}" => "\u{2CA3}", "\u{2CA4}" => "\u{2CA5}", "\u{2CA6}" => "\u{2CA7}", + "\u{2CA8}" => "\u{2CA9}", "\u{2CAA}" => "\u{2CAB}", "\u{2CAC}" => "\u{2CAD}", "\u{2CAE}" => "\u{2CAF}", + "\u{2CB0}" => "\u{2CB1}", "\u{2CB2}" => "\u{2CB3}", "\u{2CB4}" => "\u{2CB5}", "\u{2CB6}" => "\u{2CB7}", + "\u{2CB8}" => "\u{2CB9}", "\u{2CBA}" => "\u{2CBB}", "\u{2CBC}" => "\u{2CBD}", "\u{2CBE}" => "\u{2CBF}", + "\u{2CC0}" => "\u{2CC1}", "\u{2CC2}" => "\u{2CC3}", "\u{2CC4}" => "\u{2CC5}", "\u{2CC6}" => "\u{2CC7}", + "\u{2CC8}" => "\u{2CC9}", "\u{2CCA}" => "\u{2CCB}", "\u{2CCC}" => "\u{2CCD}", "\u{2CCE}" => "\u{2CCF}", + "\u{2CD0}" => "\u{2CD1}", "\u{2CD2}" => "\u{2CD3}", "\u{2CD4}" => "\u{2CD5}", "\u{2CD6}" => "\u{2CD7}", + "\u{2CD8}" => "\u{2CD9}", "\u{2CDA}" => "\u{2CDB}", "\u{2CDC}" => "\u{2CDD}", "\u{2CDE}" => "\u{2CDF}", + "\u{2CE0}" => "\u{2CE1}", "\u{2CE2}" => "\u{2CE3}", "\u{2CEB}" => "\u{2CEC}", "\u{2CED}" => "\u{2CEE}", + "\u{2CF2}" => "\u{2CF3}", "\u{2D6F}" => "\u{2D61}", "\u{2E9F}" => "\u{6BCD}", "\u{2EF3}" => "\u{9F9F}", + "\u{2F00}" => "\u{4E00}", "\u{2F01}" => "\u{4E28}", "\u{2F02}" => "\u{4E36}", "\u{2F03}" => "\u{4E3F}", + "\u{2F04}" => "\u{4E59}", "\u{2F05}" => "\u{4E85}", "\u{2F06}" => "\u{4E8C}", "\u{2F07}" => "\u{4EA0}", + "\u{2F08}" => "\u{4EBA}", "\u{2F09}" => "\u{513F}", "\u{2F0A}" => "\u{5165}", "\u{2F0B}" => "\u{516B}", + "\u{2F0C}" => "\u{5182}", "\u{2F0D}" => "\u{5196}", "\u{2F0E}" => "\u{51AB}", "\u{2F0F}" => "\u{51E0}", + "\u{2F10}" => "\u{51F5}", "\u{2F11}" => "\u{5200}", "\u{2F12}" => "\u{529B}", "\u{2F13}" => "\u{52F9}", + "\u{2F14}" => "\u{5315}", "\u{2F15}" => "\u{531A}", "\u{2F16}" => "\u{5338}", "\u{2F17}" => "\u{5341}", + "\u{2F18}" => "\u{535C}", "\u{2F19}" => "\u{5369}", "\u{2F1A}" => "\u{5382}", "\u{2F1B}" => "\u{53B6}", + "\u{2F1C}" => "\u{53C8}", "\u{2F1D}" => "\u{53E3}", "\u{2F1E}" => "\u{56D7}", "\u{2F1F}" => "\u{571F}", + "\u{2F20}" => "\u{58EB}", "\u{2F21}" => "\u{5902}", "\u{2F22}" => "\u{590A}", "\u{2F23}" => "\u{5915}", + "\u{2F24}" => "\u{5927}", "\u{2F25}" => "\u{5973}", "\u{2F26}" => "\u{5B50}", "\u{2F27}" => "\u{5B80}", + "\u{2F28}" => "\u{5BF8}", "\u{2F29}" => "\u{5C0F}", "\u{2F2A}" => "\u{5C22}", "\u{2F2B}" => "\u{5C38}", + "\u{2F2C}" => "\u{5C6E}", "\u{2F2D}" => "\u{5C71}", "\u{2F2E}" => "\u{5DDB}", "\u{2F2F}" => "\u{5DE5}", + "\u{2F30}" => "\u{5DF1}", "\u{2F31}" => "\u{5DFE}", "\u{2F32}" => "\u{5E72}", "\u{2F33}" => "\u{5E7A}", + "\u{2F34}" => "\u{5E7F}", "\u{2F35}" => "\u{5EF4}", "\u{2F36}" => "\u{5EFE}", "\u{2F37}" => "\u{5F0B}", + "\u{2F38}" => "\u{5F13}", "\u{2F39}" => "\u{5F50}", "\u{2F3A}" => "\u{5F61}", "\u{2F3B}" => "\u{5F73}", + "\u{2F3C}" => "\u{5FC3}", "\u{2F3D}" => "\u{6208}", "\u{2F3E}" => "\u{6236}", "\u{2F3F}" => "\u{624B}", + "\u{2F40}" => "\u{652F}", "\u{2F41}" => "\u{6534}", "\u{2F42}" => "\u{6587}", "\u{2F43}" => "\u{6597}", + "\u{2F44}" => "\u{65A4}", "\u{2F45}" => "\u{65B9}", "\u{2F46}" => "\u{65E0}", "\u{2F47}" => "\u{65E5}", + "\u{2F48}" => "\u{66F0}", "\u{2F49}" => "\u{6708}", "\u{2F4A}" => "\u{6728}", "\u{2F4B}" => "\u{6B20}", + "\u{2F4C}" => "\u{6B62}", "\u{2F4D}" => "\u{6B79}", "\u{2F4E}" => "\u{6BB3}", "\u{2F4F}" => "\u{6BCB}", + "\u{2F50}" => "\u{6BD4}", "\u{2F51}" => "\u{6BDB}", "\u{2F52}" => "\u{6C0F}", "\u{2F53}" => "\u{6C14}", + "\u{2F54}" => "\u{6C34}", "\u{2F55}" => "\u{706B}", "\u{2F56}" => "\u{722A}", "\u{2F57}" => "\u{7236}", + "\u{2F58}" => "\u{723B}", "\u{2F59}" => "\u{723F}", "\u{2F5A}" => "\u{7247}", "\u{2F5B}" => "\u{7259}", + "\u{2F5C}" => "\u{725B}", "\u{2F5D}" => "\u{72AC}", "\u{2F5E}" => "\u{7384}", "\u{2F5F}" => "\u{7389}", + "\u{2F60}" => "\u{74DC}", "\u{2F61}" => "\u{74E6}", "\u{2F62}" => "\u{7518}", "\u{2F63}" => "\u{751F}", + "\u{2F64}" => "\u{7528}", "\u{2F65}" => "\u{7530}", "\u{2F66}" => "\u{758B}", "\u{2F67}" => "\u{7592}", + "\u{2F68}" => "\u{7676}", "\u{2F69}" => "\u{767D}", "\u{2F6A}" => "\u{76AE}", "\u{2F6B}" => "\u{76BF}", + "\u{2F6C}" => "\u{76EE}", "\u{2F6D}" => "\u{77DB}", "\u{2F6E}" => "\u{77E2}", "\u{2F6F}" => "\u{77F3}", + "\u{2F70}" => "\u{793A}", "\u{2F71}" => "\u{79B8}", "\u{2F72}" => "\u{79BE}", "\u{2F73}" => "\u{7A74}", + "\u{2F74}" => "\u{7ACB}", "\u{2F75}" => "\u{7AF9}", "\u{2F76}" => "\u{7C73}", "\u{2F77}" => "\u{7CF8}", + "\u{2F78}" => "\u{7F36}", "\u{2F79}" => "\u{7F51}", "\u{2F7A}" => "\u{7F8A}", "\u{2F7B}" => "\u{7FBD}", + "\u{2F7C}" => "\u{8001}", "\u{2F7D}" => "\u{800C}", "\u{2F7E}" => "\u{8012}", "\u{2F7F}" => "\u{8033}", + "\u{2F80}" => "\u{807F}", "\u{2F81}" => "\u{8089}", "\u{2F82}" => "\u{81E3}", "\u{2F83}" => "\u{81EA}", + "\u{2F84}" => "\u{81F3}", "\u{2F85}" => "\u{81FC}", "\u{2F86}" => "\u{820C}", "\u{2F87}" => "\u{821B}", + "\u{2F88}" => "\u{821F}", "\u{2F89}" => "\u{826E}", "\u{2F8A}" => "\u{8272}", "\u{2F8B}" => "\u{8278}", + "\u{2F8C}" => "\u{864D}", "\u{2F8D}" => "\u{866B}", "\u{2F8E}" => "\u{8840}", "\u{2F8F}" => "\u{884C}", + "\u{2F90}" => "\u{8863}", "\u{2F91}" => "\u{897E}", "\u{2F92}" => "\u{898B}", "\u{2F93}" => "\u{89D2}", + "\u{2F94}" => "\u{8A00}", "\u{2F95}" => "\u{8C37}", "\u{2F96}" => "\u{8C46}", "\u{2F97}" => "\u{8C55}", + "\u{2F98}" => "\u{8C78}", "\u{2F99}" => "\u{8C9D}", "\u{2F9A}" => "\u{8D64}", "\u{2F9B}" => "\u{8D70}", + "\u{2F9C}" => "\u{8DB3}", "\u{2F9D}" => "\u{8EAB}", "\u{2F9E}" => "\u{8ECA}", "\u{2F9F}" => "\u{8F9B}", + "\u{2FA0}" => "\u{8FB0}", "\u{2FA1}" => "\u{8FB5}", "\u{2FA2}" => "\u{9091}", "\u{2FA3}" => "\u{9149}", + "\u{2FA4}" => "\u{91C6}", "\u{2FA5}" => "\u{91CC}", "\u{2FA6}" => "\u{91D1}", "\u{2FA7}" => "\u{9577}", + "\u{2FA8}" => "\u{9580}", "\u{2FA9}" => "\u{961C}", "\u{2FAA}" => "\u{96B6}", "\u{2FAB}" => "\u{96B9}", + "\u{2FAC}" => "\u{96E8}", "\u{2FAD}" => "\u{9751}", "\u{2FAE}" => "\u{975E}", "\u{2FAF}" => "\u{9762}", + "\u{2FB0}" => "\u{9769}", "\u{2FB1}" => "\u{97CB}", "\u{2FB2}" => "\u{97ED}", "\u{2FB3}" => "\u{97F3}", + "\u{2FB4}" => "\u{9801}", "\u{2FB5}" => "\u{98A8}", "\u{2FB6}" => "\u{98DB}", "\u{2FB7}" => "\u{98DF}", + "\u{2FB8}" => "\u{9996}", "\u{2FB9}" => "\u{9999}", "\u{2FBA}" => "\u{99AC}", "\u{2FBB}" => "\u{9AA8}", + "\u{2FBC}" => "\u{9AD8}", "\u{2FBD}" => "\u{9ADF}", "\u{2FBE}" => "\u{9B25}", "\u{2FBF}" => "\u{9B2F}", + "\u{2FC0}" => "\u{9B32}", "\u{2FC1}" => "\u{9B3C}", "\u{2FC2}" => "\u{9B5A}", "\u{2FC3}" => "\u{9CE5}", + "\u{2FC4}" => "\u{9E75}", "\u{2FC5}" => "\u{9E7F}", "\u{2FC6}" => "\u{9EA5}", "\u{2FC7}" => "\u{9EBB}", + "\u{2FC8}" => "\u{9EC3}", "\u{2FC9}" => "\u{9ECD}", "\u{2FCA}" => "\u{9ED1}", "\u{2FCB}" => "\u{9EF9}", + "\u{2FCC}" => "\u{9EFD}", "\u{2FCD}" => "\u{9F0E}", "\u{2FCE}" => "\u{9F13}", "\u{2FCF}" => "\u{9F20}", + "\u{2FD0}" => "\u{9F3B}", "\u{2FD1}" => "\u{9F4A}", "\u{2FD2}" => "\u{9F52}", "\u{2FD3}" => "\u{9F8D}", + "\u{2FD4}" => "\u{9F9C}", "\u{2FD5}" => "\u{9FA0}", "\u{3000}" => "\u{20}", "\u{3002}" => "\u{2E}", + "\u{3036}" => "\u{3012}", "\u{3038}" => "\u{5341}", "\u{3039}" => "\u{5344}", "\u{303A}" => "\u{5345}", + "\u{309B}" => "\u{20}\u{3099}", "\u{309C}" => "\u{20}\u{309A}", "\u{309F}" => "\u{3088}\u{308A}", "\u{30FF}" => "\u{30B3}\u{30C8}", + "\u{3131}" => "\u{1100}", "\u{3132}" => "\u{1101}", "\u{3133}" => "\u{11AA}", "\u{3134}" => "\u{1102}", + "\u{3135}" => "\u{11AC}", "\u{3136}" => "\u{11AD}", "\u{3137}" => "\u{1103}", "\u{3138}" => "\u{1104}", + "\u{3139}" => "\u{1105}", "\u{313A}" => "\u{11B0}", "\u{313B}" => "\u{11B1}", "\u{313C}" => "\u{11B2}", + "\u{313D}" => "\u{11B3}", "\u{313E}" => "\u{11B4}", "\u{313F}" => "\u{11B5}", "\u{3140}" => "\u{111A}", + "\u{3141}" => "\u{1106}", "\u{3142}" => "\u{1107}", "\u{3143}" => "\u{1108}", "\u{3144}" => "\u{1121}", + "\u{3145}" => "\u{1109}", "\u{3146}" => "\u{110A}", "\u{3147}" => "\u{110B}", "\u{3148}" => "\u{110C}", + "\u{3149}" => "\u{110D}", "\u{314A}" => "\u{110E}", "\u{314B}" => "\u{110F}", "\u{314C}" => "\u{1110}", + "\u{314D}" => "\u{1111}", "\u{314E}" => "\u{1112}", "\u{314F}" => "\u{1161}", "\u{3150}" => "\u{1162}", + "\u{3151}" => "\u{1163}", "\u{3152}" => "\u{1164}", "\u{3153}" => "\u{1165}", "\u{3154}" => "\u{1166}", + "\u{3155}" => "\u{1167}", "\u{3156}" => "\u{1168}", "\u{3157}" => "\u{1169}", "\u{3158}" => "\u{116A}", + "\u{3159}" => "\u{116B}", "\u{315A}" => "\u{116C}", "\u{315B}" => "\u{116D}", "\u{315C}" => "\u{116E}", + "\u{315D}" => "\u{116F}", "\u{315E}" => "\u{1170}", "\u{315F}" => "\u{1171}", "\u{3160}" => "\u{1172}", + "\u{3161}" => "\u{1173}", "\u{3162}" => "\u{1174}", "\u{3163}" => "\u{1175}", "\u{3164}" => "", + "\u{3165}" => "\u{1114}", "\u{3166}" => "\u{1115}", "\u{3167}" => "\u{11C7}", "\u{3168}" => "\u{11C8}", + "\u{3169}" => "\u{11CC}", "\u{316A}" => "\u{11CE}", "\u{316B}" => "\u{11D3}", "\u{316C}" => "\u{11D7}", + "\u{316D}" => "\u{11D9}", "\u{316E}" => "\u{111C}", "\u{316F}" => "\u{11DD}", "\u{3170}" => "\u{11DF}", + "\u{3171}" => "\u{111D}", "\u{3172}" => "\u{111E}", "\u{3173}" => "\u{1120}", "\u{3174}" => "\u{1122}", + "\u{3175}" => "\u{1123}", "\u{3176}" => "\u{1127}", "\u{3177}" => "\u{1129}", "\u{3178}" => "\u{112B}", + "\u{3179}" => "\u{112C}", "\u{317A}" => "\u{112D}", "\u{317B}" => "\u{112E}", "\u{317C}" => "\u{112F}", + "\u{317D}" => "\u{1132}", "\u{317E}" => "\u{1136}", "\u{317F}" => "\u{1140}", "\u{3180}" => "\u{1147}", + "\u{3181}" => "\u{114C}", "\u{3182}" => "\u{11F1}", "\u{3183}" => "\u{11F2}", "\u{3184}" => "\u{1157}", + "\u{3185}" => "\u{1158}", "\u{3186}" => "\u{1159}", "\u{3187}" => "\u{1184}", "\u{3188}" => "\u{1185}", + "\u{3189}" => "\u{1188}", "\u{318A}" => "\u{1191}", "\u{318B}" => "\u{1192}", "\u{318C}" => "\u{1194}", + "\u{318D}" => "\u{119E}", "\u{318E}" => "\u{11A1}", "\u{3192}" => "\u{4E00}", "\u{3193}" => "\u{4E8C}", + "\u{3194}" => "\u{4E09}", "\u{3195}" => "\u{56DB}", "\u{3196}" => "\u{4E0A}", "\u{3197}" => "\u{4E2D}", + "\u{3198}" => "\u{4E0B}", "\u{3199}" => "\u{7532}", "\u{319A}" => "\u{4E59}", "\u{319B}" => "\u{4E19}", + "\u{319C}" => "\u{4E01}", "\u{319D}" => "\u{5929}", "\u{319E}" => "\u{5730}", "\u{319F}" => "\u{4EBA}", + "\u{3200}" => "\u{28}\u{1100}\u{29}", "\u{3201}" => "\u{28}\u{1102}\u{29}", "\u{3202}" => "\u{28}\u{1103}\u{29}", "\u{3203}" => "\u{28}\u{1105}\u{29}", + "\u{3204}" => "\u{28}\u{1106}\u{29}", "\u{3205}" => "\u{28}\u{1107}\u{29}", "\u{3206}" => "\u{28}\u{1109}\u{29}", "\u{3207}" => "\u{28}\u{110B}\u{29}", + "\u{3208}" => "\u{28}\u{110C}\u{29}", "\u{3209}" => "\u{28}\u{110E}\u{29}", "\u{320A}" => "\u{28}\u{110F}\u{29}", "\u{320B}" => "\u{28}\u{1110}\u{29}", + "\u{320C}" => "\u{28}\u{1111}\u{29}", "\u{320D}" => "\u{28}\u{1112}\u{29}", "\u{320E}" => "\u{28}\u{AC00}\u{29}", "\u{320F}" => "\u{28}\u{B098}\u{29}", + "\u{3210}" => "\u{28}\u{B2E4}\u{29}", "\u{3211}" => "\u{28}\u{B77C}\u{29}", "\u{3212}" => "\u{28}\u{B9C8}\u{29}", "\u{3213}" => "\u{28}\u{BC14}\u{29}", + "\u{3214}" => "\u{28}\u{C0AC}\u{29}", "\u{3215}" => "\u{28}\u{C544}\u{29}", "\u{3216}" => "\u{28}\u{C790}\u{29}", "\u{3217}" => "\u{28}\u{CC28}\u{29}", + "\u{3218}" => "\u{28}\u{CE74}\u{29}", "\u{3219}" => "\u{28}\u{D0C0}\u{29}", "\u{321A}" => "\u{28}\u{D30C}\u{29}", "\u{321B}" => "\u{28}\u{D558}\u{29}", + "\u{321C}" => "\u{28}\u{C8FC}\u{29}", "\u{321D}" => "\u{28}\u{C624}\u{C804}\u{29}", "\u{321E}" => "\u{28}\u{C624}\u{D6C4}\u{29}", "\u{3220}" => "\u{28}\u{4E00}\u{29}", + "\u{3221}" => "\u{28}\u{4E8C}\u{29}", "\u{3222}" => "\u{28}\u{4E09}\u{29}", "\u{3223}" => "\u{28}\u{56DB}\u{29}", "\u{3224}" => "\u{28}\u{4E94}\u{29}", + "\u{3225}" => "\u{28}\u{516D}\u{29}", "\u{3226}" => "\u{28}\u{4E03}\u{29}", "\u{3227}" => "\u{28}\u{516B}\u{29}", "\u{3228}" => "\u{28}\u{4E5D}\u{29}", + "\u{3229}" => "\u{28}\u{5341}\u{29}", "\u{322A}" => "\u{28}\u{6708}\u{29}", "\u{322B}" => "\u{28}\u{706B}\u{29}", "\u{322C}" => "\u{28}\u{6C34}\u{29}", + "\u{322D}" => "\u{28}\u{6728}\u{29}", "\u{322E}" => "\u{28}\u{91D1}\u{29}", "\u{322F}" => "\u{28}\u{571F}\u{29}", "\u{3230}" => "\u{28}\u{65E5}\u{29}", + "\u{3231}" => "\u{28}\u{682A}\u{29}", "\u{3232}" => "\u{28}\u{6709}\u{29}", "\u{3233}" => "\u{28}\u{793E}\u{29}", "\u{3234}" => "\u{28}\u{540D}\u{29}", + "\u{3235}" => "\u{28}\u{7279}\u{29}", "\u{3236}" => "\u{28}\u{8CA1}\u{29}", "\u{3237}" => "\u{28}\u{795D}\u{29}", "\u{3238}" => "\u{28}\u{52B4}\u{29}", + "\u{3239}" => "\u{28}\u{4EE3}\u{29}", "\u{323A}" => "\u{28}\u{547C}\u{29}", "\u{323B}" => "\u{28}\u{5B66}\u{29}", "\u{323C}" => "\u{28}\u{76E3}\u{29}", + "\u{323D}" => "\u{28}\u{4F01}\u{29}", "\u{323E}" => "\u{28}\u{8CC7}\u{29}", "\u{323F}" => "\u{28}\u{5354}\u{29}", "\u{3240}" => "\u{28}\u{796D}\u{29}", + "\u{3241}" => "\u{28}\u{4F11}\u{29}", "\u{3242}" => "\u{28}\u{81EA}\u{29}", "\u{3243}" => "\u{28}\u{81F3}\u{29}", "\u{3244}" => "\u{554F}", + "\u{3245}" => "\u{5E7C}", "\u{3246}" => "\u{6587}", "\u{3247}" => "\u{7B8F}", "\u{3250}" => "\u{70}\u{74}\u{65}", + "\u{3251}" => "\u{32}\u{31}", "\u{3252}" => "\u{32}\u{32}", "\u{3253}" => "\u{32}\u{33}", "\u{3254}" => "\u{32}\u{34}", + "\u{3255}" => "\u{32}\u{35}", "\u{3256}" => "\u{32}\u{36}", "\u{3257}" => "\u{32}\u{37}", "\u{3258}" => "\u{32}\u{38}", + "\u{3259}" => "\u{32}\u{39}", "\u{325A}" => "\u{33}\u{30}", "\u{325B}" => "\u{33}\u{31}", "\u{325C}" => "\u{33}\u{32}", + "\u{325D}" => "\u{33}\u{33}", "\u{325E}" => "\u{33}\u{34}", "\u{325F}" => "\u{33}\u{35}", "\u{3260}" => "\u{1100}", + "\u{3261}" => "\u{1102}", "\u{3262}" => "\u{1103}", "\u{3263}" => "\u{1105}", "\u{3264}" => "\u{1106}", + "\u{3265}" => "\u{1107}", "\u{3266}" => "\u{1109}", "\u{3267}" => "\u{110B}", "\u{3268}" => "\u{110C}", + "\u{3269}" => "\u{110E}", "\u{326A}" => "\u{110F}", "\u{326B}" => "\u{1110}", "\u{326C}" => "\u{1111}", + "\u{326D}" => "\u{1112}", "\u{326E}" => "\u{AC00}", "\u{326F}" => "\u{B098}", "\u{3270}" => "\u{B2E4}", + "\u{3271}" => "\u{B77C}", "\u{3272}" => "\u{B9C8}", "\u{3273}" => "\u{BC14}", "\u{3274}" => "\u{C0AC}", + "\u{3275}" => "\u{C544}", "\u{3276}" => "\u{C790}", "\u{3277}" => "\u{CC28}", "\u{3278}" => "\u{CE74}", + "\u{3279}" => "\u{D0C0}", "\u{327A}" => "\u{D30C}", "\u{327B}" => "\u{D558}", "\u{327C}" => "\u{CC38}\u{ACE0}", + "\u{327D}" => "\u{C8FC}\u{C758}", "\u{327E}" => "\u{C6B0}", "\u{3280}" => "\u{4E00}", "\u{3281}" => "\u{4E8C}", + "\u{3282}" => "\u{4E09}", "\u{3283}" => "\u{56DB}", "\u{3284}" => "\u{4E94}", "\u{3285}" => "\u{516D}", + "\u{3286}" => "\u{4E03}", "\u{3287}" => "\u{516B}", "\u{3288}" => "\u{4E5D}", "\u{3289}" => "\u{5341}", + "\u{328A}" => "\u{6708}", "\u{328B}" => "\u{706B}", "\u{328C}" => "\u{6C34}", "\u{328D}" => "\u{6728}", + "\u{328E}" => "\u{91D1}", "\u{328F}" => "\u{571F}", "\u{3290}" => "\u{65E5}", "\u{3291}" => "\u{682A}", + "\u{3292}" => "\u{6709}", "\u{3293}" => "\u{793E}", "\u{3294}" => "\u{540D}", "\u{3295}" => "\u{7279}", + "\u{3296}" => "\u{8CA1}", "\u{3297}" => "\u{795D}", "\u{3298}" => "\u{52B4}", "\u{3299}" => "\u{79D8}", + "\u{329A}" => "\u{7537}", "\u{329B}" => "\u{5973}", "\u{329C}" => "\u{9069}", "\u{329D}" => "\u{512A}", + "\u{329E}" => "\u{5370}", "\u{329F}" => "\u{6CE8}", "\u{32A0}" => "\u{9805}", "\u{32A1}" => "\u{4F11}", + "\u{32A2}" => "\u{5199}", "\u{32A3}" => "\u{6B63}", "\u{32A4}" => "\u{4E0A}", "\u{32A5}" => "\u{4E2D}", + "\u{32A6}" => "\u{4E0B}", "\u{32A7}" => "\u{5DE6}", "\u{32A8}" => "\u{53F3}", "\u{32A9}" => "\u{533B}", + "\u{32AA}" => "\u{5B97}", "\u{32AB}" => "\u{5B66}", "\u{32AC}" => "\u{76E3}", "\u{32AD}" => "\u{4F01}", + "\u{32AE}" => "\u{8CC7}", "\u{32AF}" => "\u{5354}", "\u{32B0}" => "\u{591C}", "\u{32B1}" => "\u{33}\u{36}", + "\u{32B2}" => "\u{33}\u{37}", "\u{32B3}" => "\u{33}\u{38}", "\u{32B4}" => "\u{33}\u{39}", "\u{32B5}" => "\u{34}\u{30}", + "\u{32B6}" => "\u{34}\u{31}", "\u{32B7}" => "\u{34}\u{32}", "\u{32B8}" => "\u{34}\u{33}", "\u{32B9}" => "\u{34}\u{34}", + "\u{32BA}" => "\u{34}\u{35}", "\u{32BB}" => "\u{34}\u{36}", "\u{32BC}" => "\u{34}\u{37}", "\u{32BD}" => "\u{34}\u{38}", + "\u{32BE}" => "\u{34}\u{39}", "\u{32BF}" => "\u{35}\u{30}", "\u{32C0}" => "\u{31}\u{6708}", "\u{32C1}" => "\u{32}\u{6708}", + "\u{32C2}" => "\u{33}\u{6708}", "\u{32C3}" => "\u{34}\u{6708}", "\u{32C4}" => "\u{35}\u{6708}", "\u{32C5}" => "\u{36}\u{6708}", + "\u{32C6}" => "\u{37}\u{6708}", "\u{32C7}" => "\u{38}\u{6708}", "\u{32C8}" => "\u{39}\u{6708}", "\u{32C9}" => "\u{31}\u{30}\u{6708}", + "\u{32CA}" => "\u{31}\u{31}\u{6708}", "\u{32CB}" => "\u{31}\u{32}\u{6708}", "\u{32CC}" => "\u{68}\u{67}", "\u{32CD}" => "\u{65}\u{72}\u{67}", + "\u{32CE}" => "\u{65}\u{76}", "\u{32CF}" => "\u{6C}\u{74}\u{64}", "\u{32D0}" => "\u{30A2}", "\u{32D1}" => "\u{30A4}", + "\u{32D2}" => "\u{30A6}", "\u{32D3}" => "\u{30A8}", "\u{32D4}" => "\u{30AA}", "\u{32D5}" => "\u{30AB}", + "\u{32D6}" => "\u{30AD}", "\u{32D7}" => "\u{30AF}", "\u{32D8}" => "\u{30B1}", "\u{32D9}" => "\u{30B3}", + "\u{32DA}" => "\u{30B5}", "\u{32DB}" => "\u{30B7}", "\u{32DC}" => "\u{30B9}", "\u{32DD}" => "\u{30BB}", + "\u{32DE}" => "\u{30BD}", "\u{32DF}" => "\u{30BF}", "\u{32E0}" => "\u{30C1}", "\u{32E1}" => "\u{30C4}", + "\u{32E2}" => "\u{30C6}", "\u{32E3}" => "\u{30C8}", "\u{32E4}" => "\u{30CA}", "\u{32E5}" => "\u{30CB}", + "\u{32E6}" => "\u{30CC}", "\u{32E7}" => "\u{30CD}", "\u{32E8}" => "\u{30CE}", "\u{32E9}" => "\u{30CF}", + "\u{32EA}" => "\u{30D2}", "\u{32EB}" => "\u{30D5}", "\u{32EC}" => "\u{30D8}", "\u{32ED}" => "\u{30DB}", + "\u{32EE}" => "\u{30DE}", "\u{32EF}" => "\u{30DF}", "\u{32F0}" => "\u{30E0}", "\u{32F1}" => "\u{30E1}", + "\u{32F2}" => "\u{30E2}", "\u{32F3}" => "\u{30E4}", "\u{32F4}" => "\u{30E6}", "\u{32F5}" => "\u{30E8}", + "\u{32F6}" => "\u{30E9}", "\u{32F7}" => "\u{30EA}", "\u{32F8}" => "\u{30EB}", "\u{32F9}" => "\u{30EC}", + "\u{32FA}" => "\u{30ED}", "\u{32FB}" => "\u{30EF}", "\u{32FC}" => "\u{30F0}", "\u{32FD}" => "\u{30F1}", + "\u{32FE}" => "\u{30F2}", "\u{32FF}" => "\u{4EE4}\u{548C}", "\u{3300}" => "\u{30A2}\u{30D1}\u{30FC}\u{30C8}", "\u{3301}" => "\u{30A2}\u{30EB}\u{30D5}\u{30A1}", + "\u{3302}" => "\u{30A2}\u{30F3}\u{30DA}\u{30A2}", "\u{3303}" => "\u{30A2}\u{30FC}\u{30EB}", "\u{3304}" => "\u{30A4}\u{30CB}\u{30F3}\u{30B0}", "\u{3305}" => "\u{30A4}\u{30F3}\u{30C1}", + "\u{3306}" => "\u{30A6}\u{30A9}\u{30F3}", "\u{3307}" => "\u{30A8}\u{30B9}\u{30AF}\u{30FC}\u{30C9}", "\u{3308}" => "\u{30A8}\u{30FC}\u{30AB}\u{30FC}", "\u{3309}" => "\u{30AA}\u{30F3}\u{30B9}", + "\u{330A}" => "\u{30AA}\u{30FC}\u{30E0}", "\u{330B}" => "\u{30AB}\u{30A4}\u{30EA}", "\u{330C}" => "\u{30AB}\u{30E9}\u{30C3}\u{30C8}", "\u{330D}" => "\u{30AB}\u{30ED}\u{30EA}\u{30FC}", + "\u{330E}" => "\u{30AC}\u{30ED}\u{30F3}", "\u{330F}" => "\u{30AC}\u{30F3}\u{30DE}", "\u{3310}" => "\u{30AE}\u{30AC}", "\u{3311}" => "\u{30AE}\u{30CB}\u{30FC}", + "\u{3312}" => "\u{30AD}\u{30E5}\u{30EA}\u{30FC}", "\u{3313}" => "\u{30AE}\u{30EB}\u{30C0}\u{30FC}", "\u{3314}" => "\u{30AD}\u{30ED}", "\u{3315}" => "\u{30AD}\u{30ED}\u{30B0}\u{30E9}\u{30E0}", + "\u{3316}" => "\u{30AD}\u{30ED}\u{30E1}\u{30FC}\u{30C8}\u{30EB}", "\u{3317}" => "\u{30AD}\u{30ED}\u{30EF}\u{30C3}\u{30C8}", "\u{3318}" => "\u{30B0}\u{30E9}\u{30E0}", "\u{3319}" => "\u{30B0}\u{30E9}\u{30E0}\u{30C8}\u{30F3}", + "\u{331A}" => "\u{30AF}\u{30EB}\u{30BC}\u{30A4}\u{30ED}", "\u{331B}" => "\u{30AF}\u{30ED}\u{30FC}\u{30CD}", "\u{331C}" => "\u{30B1}\u{30FC}\u{30B9}", "\u{331D}" => "\u{30B3}\u{30EB}\u{30CA}", + "\u{331E}" => "\u{30B3}\u{30FC}\u{30DD}", "\u{331F}" => "\u{30B5}\u{30A4}\u{30AF}\u{30EB}", "\u{3320}" => "\u{30B5}\u{30F3}\u{30C1}\u{30FC}\u{30E0}", "\u{3321}" => "\u{30B7}\u{30EA}\u{30F3}\u{30B0}", + "\u{3322}" => "\u{30BB}\u{30F3}\u{30C1}", "\u{3323}" => "\u{30BB}\u{30F3}\u{30C8}", "\u{3324}" => "\u{30C0}\u{30FC}\u{30B9}", "\u{3325}" => "\u{30C7}\u{30B7}", + "\u{3326}" => "\u{30C9}\u{30EB}", "\u{3327}" => "\u{30C8}\u{30F3}", "\u{3328}" => "\u{30CA}\u{30CE}", "\u{3329}" => "\u{30CE}\u{30C3}\u{30C8}", + "\u{332A}" => "\u{30CF}\u{30A4}\u{30C4}", "\u{332B}" => "\u{30D1}\u{30FC}\u{30BB}\u{30F3}\u{30C8}", "\u{332C}" => "\u{30D1}\u{30FC}\u{30C4}", "\u{332D}" => "\u{30D0}\u{30FC}\u{30EC}\u{30EB}", + "\u{332E}" => "\u{30D4}\u{30A2}\u{30B9}\u{30C8}\u{30EB}", "\u{332F}" => "\u{30D4}\u{30AF}\u{30EB}", "\u{3330}" => "\u{30D4}\u{30B3}", "\u{3331}" => "\u{30D3}\u{30EB}", + "\u{3332}" => "\u{30D5}\u{30A1}\u{30E9}\u{30C3}\u{30C9}", "\u{3333}" => "\u{30D5}\u{30A3}\u{30FC}\u{30C8}", "\u{3334}" => "\u{30D6}\u{30C3}\u{30B7}\u{30A7}\u{30EB}", "\u{3335}" => "\u{30D5}\u{30E9}\u{30F3}", + "\u{3336}" => "\u{30D8}\u{30AF}\u{30BF}\u{30FC}\u{30EB}", "\u{3337}" => "\u{30DA}\u{30BD}", "\u{3338}" => "\u{30DA}\u{30CB}\u{30D2}", "\u{3339}" => "\u{30D8}\u{30EB}\u{30C4}", + "\u{333A}" => "\u{30DA}\u{30F3}\u{30B9}", "\u{333B}" => "\u{30DA}\u{30FC}\u{30B8}", "\u{333C}" => "\u{30D9}\u{30FC}\u{30BF}", "\u{333D}" => "\u{30DD}\u{30A4}\u{30F3}\u{30C8}", + "\u{333E}" => "\u{30DC}\u{30EB}\u{30C8}", "\u{333F}" => "\u{30DB}\u{30F3}", "\u{3340}" => "\u{30DD}\u{30F3}\u{30C9}", "\u{3341}" => "\u{30DB}\u{30FC}\u{30EB}", + "\u{3342}" => "\u{30DB}\u{30FC}\u{30F3}", "\u{3343}" => "\u{30DE}\u{30A4}\u{30AF}\u{30ED}", "\u{3344}" => "\u{30DE}\u{30A4}\u{30EB}", "\u{3345}" => "\u{30DE}\u{30C3}\u{30CF}", + "\u{3346}" => "\u{30DE}\u{30EB}\u{30AF}", "\u{3347}" => "\u{30DE}\u{30F3}\u{30B7}\u{30E7}\u{30F3}", "\u{3348}" => "\u{30DF}\u{30AF}\u{30ED}\u{30F3}", "\u{3349}" => "\u{30DF}\u{30EA}", + "\u{334A}" => "\u{30DF}\u{30EA}\u{30D0}\u{30FC}\u{30EB}", "\u{334B}" => "\u{30E1}\u{30AC}", "\u{334C}" => "\u{30E1}\u{30AC}\u{30C8}\u{30F3}", "\u{334D}" => "\u{30E1}\u{30FC}\u{30C8}\u{30EB}", + "\u{334E}" => "\u{30E4}\u{30FC}\u{30C9}", "\u{334F}" => "\u{30E4}\u{30FC}\u{30EB}", "\u{3350}" => "\u{30E6}\u{30A2}\u{30F3}", "\u{3351}" => "\u{30EA}\u{30C3}\u{30C8}\u{30EB}", + "\u{3352}" => "\u{30EA}\u{30E9}", "\u{3353}" => "\u{30EB}\u{30D4}\u{30FC}", "\u{3354}" => "\u{30EB}\u{30FC}\u{30D6}\u{30EB}", "\u{3355}" => "\u{30EC}\u{30E0}", + "\u{3356}" => "\u{30EC}\u{30F3}\u{30C8}\u{30B2}\u{30F3}", "\u{3357}" => "\u{30EF}\u{30C3}\u{30C8}", "\u{3358}" => "\u{30}\u{70B9}", "\u{3359}" => "\u{31}\u{70B9}", + "\u{335A}" => "\u{32}\u{70B9}", "\u{335B}" => "\u{33}\u{70B9}", "\u{335C}" => "\u{34}\u{70B9}", "\u{335D}" => "\u{35}\u{70B9}", + "\u{335E}" => "\u{36}\u{70B9}", "\u{335F}" => "\u{37}\u{70B9}", "\u{3360}" => "\u{38}\u{70B9}", "\u{3361}" => "\u{39}\u{70B9}", + "\u{3362}" => "\u{31}\u{30}\u{70B9}", "\u{3363}" => "\u{31}\u{31}\u{70B9}", "\u{3364}" => "\u{31}\u{32}\u{70B9}", "\u{3365}" => "\u{31}\u{33}\u{70B9}", + "\u{3366}" => "\u{31}\u{34}\u{70B9}", "\u{3367}" => "\u{31}\u{35}\u{70B9}", "\u{3368}" => "\u{31}\u{36}\u{70B9}", "\u{3369}" => "\u{31}\u{37}\u{70B9}", + "\u{336A}" => "\u{31}\u{38}\u{70B9}", "\u{336B}" => "\u{31}\u{39}\u{70B9}", "\u{336C}" => "\u{32}\u{30}\u{70B9}", "\u{336D}" => "\u{32}\u{31}\u{70B9}", + "\u{336E}" => "\u{32}\u{32}\u{70B9}", "\u{336F}" => "\u{32}\u{33}\u{70B9}", "\u{3370}" => "\u{32}\u{34}\u{70B9}", "\u{3371}" => "\u{68}\u{70}\u{61}", + "\u{3372}" => "\u{64}\u{61}", "\u{3373}" => "\u{61}\u{75}", "\u{3374}" => "\u{62}\u{61}\u{72}", "\u{3375}" => "\u{6F}\u{76}", + "\u{3376}" => "\u{70}\u{63}", "\u{3377}" => "\u{64}\u{6D}", "\u{3378}" => "\u{64}\u{6D}\u{32}", "\u{3379}" => "\u{64}\u{6D}\u{33}", + "\u{337A}" => "\u{69}\u{75}", "\u{337B}" => "\u{5E73}\u{6210}", "\u{337C}" => "\u{662D}\u{548C}", "\u{337D}" => "\u{5927}\u{6B63}", + "\u{337E}" => "\u{660E}\u{6CBB}", "\u{337F}" => "\u{682A}\u{5F0F}\u{4F1A}\u{793E}", "\u{3380}" => "\u{70}\u{61}", "\u{3381}" => "\u{6E}\u{61}", + "\u{3382}" => "\u{3BC}\u{61}", "\u{3383}" => "\u{6D}\u{61}", "\u{3384}" => "\u{6B}\u{61}", "\u{3385}" => "\u{6B}\u{62}", + "\u{3386}" => "\u{6D}\u{62}", "\u{3387}" => "\u{67}\u{62}", "\u{3388}" => "\u{63}\u{61}\u{6C}", "\u{3389}" => "\u{6B}\u{63}\u{61}\u{6C}", + "\u{338A}" => "\u{70}\u{66}", "\u{338B}" => "\u{6E}\u{66}", "\u{338C}" => "\u{3BC}\u{66}", "\u{338D}" => "\u{3BC}\u{67}", + "\u{338E}" => "\u{6D}\u{67}", "\u{338F}" => "\u{6B}\u{67}", "\u{3390}" => "\u{68}\u{7A}", "\u{3391}" => "\u{6B}\u{68}\u{7A}", + "\u{3392}" => "\u{6D}\u{68}\u{7A}", "\u{3393}" => "\u{67}\u{68}\u{7A}", "\u{3394}" => "\u{74}\u{68}\u{7A}", "\u{3395}" => "\u{3BC}\u{6C}", + "\u{3396}" => "\u{6D}\u{6C}", "\u{3397}" => "\u{64}\u{6C}", "\u{3398}" => "\u{6B}\u{6C}", "\u{3399}" => "\u{66}\u{6D}", + "\u{339A}" => "\u{6E}\u{6D}", "\u{339B}" => "\u{3BC}\u{6D}", "\u{339C}" => "\u{6D}\u{6D}", "\u{339D}" => "\u{63}\u{6D}", + "\u{339E}" => "\u{6B}\u{6D}", "\u{339F}" => "\u{6D}\u{6D}\u{32}", "\u{33A0}" => "\u{63}\u{6D}\u{32}", "\u{33A1}" => "\u{6D}\u{32}", + "\u{33A2}" => "\u{6B}\u{6D}\u{32}", "\u{33A3}" => "\u{6D}\u{6D}\u{33}", "\u{33A4}" => "\u{63}\u{6D}\u{33}", "\u{33A5}" => "\u{6D}\u{33}", + "\u{33A6}" => "\u{6B}\u{6D}\u{33}", "\u{33A7}" => "\u{6D}\u{2215}\u{73}", "\u{33A8}" => "\u{6D}\u{2215}\u{73}\u{32}", "\u{33A9}" => "\u{70}\u{61}", + "\u{33AA}" => "\u{6B}\u{70}\u{61}", "\u{33AB}" => "\u{6D}\u{70}\u{61}", "\u{33AC}" => "\u{67}\u{70}\u{61}", "\u{33AD}" => "\u{72}\u{61}\u{64}", + "\u{33AE}" => "\u{72}\u{61}\u{64}\u{2215}\u{73}", "\u{33AF}" => "\u{72}\u{61}\u{64}\u{2215}\u{73}\u{32}", "\u{33B0}" => "\u{70}\u{73}", "\u{33B1}" => "\u{6E}\u{73}", + "\u{33B2}" => "\u{3BC}\u{73}", "\u{33B3}" => "\u{6D}\u{73}", "\u{33B4}" => "\u{70}\u{76}", "\u{33B5}" => "\u{6E}\u{76}", + "\u{33B6}" => "\u{3BC}\u{76}", "\u{33B7}" => "\u{6D}\u{76}", "\u{33B8}" => "\u{6B}\u{76}", "\u{33B9}" => "\u{6D}\u{76}", + "\u{33BA}" => "\u{70}\u{77}", "\u{33BB}" => "\u{6E}\u{77}", "\u{33BC}" => "\u{3BC}\u{77}", "\u{33BD}" => "\u{6D}\u{77}", + "\u{33BE}" => "\u{6B}\u{77}", "\u{33BF}" => "\u{6D}\u{77}", "\u{33C0}" => "\u{6B}\u{3C9}", "\u{33C1}" => "\u{6D}\u{3C9}", + "\u{33C3}" => "\u{62}\u{71}", "\u{33C4}" => "\u{63}\u{63}", "\u{33C5}" => "\u{63}\u{64}", "\u{33C6}" => "\u{63}\u{2215}\u{6B}\u{67}", + "\u{33C8}" => "\u{64}\u{62}", "\u{33C9}" => "\u{67}\u{79}", "\u{33CA}" => "\u{68}\u{61}", "\u{33CB}" => "\u{68}\u{70}", + "\u{33CC}" => "\u{69}\u{6E}", "\u{33CD}" => "\u{6B}\u{6B}", "\u{33CE}" => "\u{6B}\u{6D}", "\u{33CF}" => "\u{6B}\u{74}", + "\u{33D0}" => "\u{6C}\u{6D}", "\u{33D1}" => "\u{6C}\u{6E}", "\u{33D2}" => "\u{6C}\u{6F}\u{67}", "\u{33D3}" => "\u{6C}\u{78}", + "\u{33D4}" => "\u{6D}\u{62}", "\u{33D5}" => "\u{6D}\u{69}\u{6C}", "\u{33D6}" => "\u{6D}\u{6F}\u{6C}", "\u{33D7}" => "\u{70}\u{68}", + "\u{33D9}" => "\u{70}\u{70}\u{6D}", "\u{33DA}" => "\u{70}\u{72}", "\u{33DB}" => "\u{73}\u{72}", "\u{33DC}" => "\u{73}\u{76}", + "\u{33DD}" => "\u{77}\u{62}", "\u{33DE}" => "\u{76}\u{2215}\u{6D}", "\u{33DF}" => "\u{61}\u{2215}\u{6D}", "\u{33E0}" => "\u{31}\u{65E5}", + "\u{33E1}" => "\u{32}\u{65E5}", "\u{33E2}" => "\u{33}\u{65E5}", "\u{33E3}" => "\u{34}\u{65E5}", "\u{33E4}" => "\u{35}\u{65E5}", + "\u{33E5}" => "\u{36}\u{65E5}", "\u{33E6}" => "\u{37}\u{65E5}", "\u{33E7}" => "\u{38}\u{65E5}", "\u{33E8}" => "\u{39}\u{65E5}", + "\u{33E9}" => "\u{31}\u{30}\u{65E5}", "\u{33EA}" => "\u{31}\u{31}\u{65E5}", "\u{33EB}" => "\u{31}\u{32}\u{65E5}", "\u{33EC}" => "\u{31}\u{33}\u{65E5}", + "\u{33ED}" => "\u{31}\u{34}\u{65E5}", "\u{33EE}" => "\u{31}\u{35}\u{65E5}", "\u{33EF}" => "\u{31}\u{36}\u{65E5}", "\u{33F0}" => "\u{31}\u{37}\u{65E5}", + "\u{33F1}" => "\u{31}\u{38}\u{65E5}", "\u{33F2}" => "\u{31}\u{39}\u{65E5}", "\u{33F3}" => "\u{32}\u{30}\u{65E5}", "\u{33F4}" => "\u{32}\u{31}\u{65E5}", + "\u{33F5}" => "\u{32}\u{32}\u{65E5}", "\u{33F6}" => "\u{32}\u{33}\u{65E5}", "\u{33F7}" => "\u{32}\u{34}\u{65E5}", "\u{33F8}" => "\u{32}\u{35}\u{65E5}", + "\u{33F9}" => "\u{32}\u{36}\u{65E5}", "\u{33FA}" => "\u{32}\u{37}\u{65E5}", "\u{33FB}" => "\u{32}\u{38}\u{65E5}", "\u{33FC}" => "\u{32}\u{39}\u{65E5}", + "\u{33FD}" => "\u{33}\u{30}\u{65E5}", "\u{33FE}" => "\u{33}\u{31}\u{65E5}", "\u{33FF}" => "\u{67}\u{61}\u{6C}", "\u{A640}" => "\u{A641}", + "\u{A642}" => "\u{A643}", "\u{A644}" => "\u{A645}", "\u{A646}" => "\u{A647}", "\u{A648}" => "\u{A649}", + "\u{A64A}" => "\u{A64B}", "\u{A64C}" => "\u{A64D}", "\u{A64E}" => "\u{A64F}", "\u{A650}" => "\u{A651}", + "\u{A652}" => "\u{A653}", "\u{A654}" => "\u{A655}", "\u{A656}" => "\u{A657}", "\u{A658}" => "\u{A659}", + "\u{A65A}" => "\u{A65B}", "\u{A65C}" => "\u{A65D}", "\u{A65E}" => "\u{A65F}", "\u{A660}" => "\u{A661}", + "\u{A662}" => "\u{A663}", "\u{A664}" => "\u{A665}", "\u{A666}" => "\u{A667}", "\u{A668}" => "\u{A669}", + "\u{A66A}" => "\u{A66B}", "\u{A66C}" => "\u{A66D}", "\u{A680}" => "\u{A681}", "\u{A682}" => "\u{A683}", + "\u{A684}" => "\u{A685}", "\u{A686}" => "\u{A687}", "\u{A688}" => "\u{A689}", "\u{A68A}" => "\u{A68B}", + "\u{A68C}" => "\u{A68D}", "\u{A68E}" => "\u{A68F}", "\u{A690}" => "\u{A691}", "\u{A692}" => "\u{A693}", + "\u{A694}" => "\u{A695}", "\u{A696}" => "\u{A697}", "\u{A698}" => "\u{A699}", "\u{A69A}" => "\u{A69B}", + "\u{A69C}" => "\u{44A}", "\u{A69D}" => "\u{44C}", "\u{A722}" => "\u{A723}", "\u{A724}" => "\u{A725}", + "\u{A726}" => "\u{A727}", "\u{A728}" => "\u{A729}", "\u{A72A}" => "\u{A72B}", "\u{A72C}" => "\u{A72D}", + "\u{A72E}" => "\u{A72F}", "\u{A732}" => "\u{A733}", "\u{A734}" => "\u{A735}", "\u{A736}" => "\u{A737}", + "\u{A738}" => "\u{A739}", "\u{A73A}" => "\u{A73B}", "\u{A73C}" => "\u{A73D}", "\u{A73E}" => "\u{A73F}", + "\u{A740}" => "\u{A741}", "\u{A742}" => "\u{A743}", "\u{A744}" => "\u{A745}", "\u{A746}" => "\u{A747}", + "\u{A748}" => "\u{A749}", "\u{A74A}" => "\u{A74B}", "\u{A74C}" => "\u{A74D}", "\u{A74E}" => "\u{A74F}", + "\u{A750}" => "\u{A751}", "\u{A752}" => "\u{A753}", "\u{A754}" => "\u{A755}", "\u{A756}" => "\u{A757}", + "\u{A758}" => "\u{A759}", "\u{A75A}" => "\u{A75B}", "\u{A75C}" => "\u{A75D}", "\u{A75E}" => "\u{A75F}", + "\u{A760}" => "\u{A761}", "\u{A762}" => "\u{A763}", "\u{A764}" => "\u{A765}", "\u{A766}" => "\u{A767}", + "\u{A768}" => "\u{A769}", "\u{A76A}" => "\u{A76B}", "\u{A76C}" => "\u{A76D}", "\u{A76E}" => "\u{A76F}", + "\u{A770}" => "\u{A76F}", "\u{A779}" => "\u{A77A}", "\u{A77B}" => "\u{A77C}", "\u{A77D}" => "\u{1D79}", + "\u{A77E}" => "\u{A77F}", "\u{A780}" => "\u{A781}", "\u{A782}" => "\u{A783}", "\u{A784}" => "\u{A785}", + "\u{A786}" => "\u{A787}", "\u{A78B}" => "\u{A78C}", "\u{A78D}" => "\u{265}", "\u{A790}" => "\u{A791}", + "\u{A792}" => "\u{A793}", "\u{A796}" => "\u{A797}", "\u{A798}" => "\u{A799}", "\u{A79A}" => "\u{A79B}", + "\u{A79C}" => "\u{A79D}", "\u{A79E}" => "\u{A79F}", "\u{A7A0}" => "\u{A7A1}", "\u{A7A2}" => "\u{A7A3}", + "\u{A7A4}" => "\u{A7A5}", "\u{A7A6}" => "\u{A7A7}", "\u{A7A8}" => "\u{A7A9}", "\u{A7AA}" => "\u{266}", + "\u{A7AB}" => "\u{25C}", "\u{A7AC}" => "\u{261}", "\u{A7AD}" => "\u{26C}", "\u{A7AE}" => "\u{26A}", + "\u{A7B0}" => "\u{29E}", "\u{A7B1}" => "\u{287}", "\u{A7B2}" => "\u{29D}", "\u{A7B3}" => "\u{AB53}", + "\u{A7B4}" => "\u{A7B5}", "\u{A7B6}" => "\u{A7B7}", "\u{A7B8}" => "\u{A7B9}", "\u{A7BA}" => "\u{A7BB}", + "\u{A7BC}" => "\u{A7BD}", "\u{A7BE}" => "\u{A7BF}", "\u{A7C0}" => "\u{A7C1}", "\u{A7C2}" => "\u{A7C3}", + "\u{A7C4}" => "\u{A794}", "\u{A7C5}" => "\u{282}", "\u{A7C6}" => "\u{1D8E}", "\u{A7C7}" => "\u{A7C8}", + "\u{A7C9}" => "\u{A7CA}", "\u{A7CB}" => "\u{264}", "\u{A7CC}" => "\u{A7CD}", "\u{A7CE}" => "\u{A7CF}", + "\u{A7D0}" => "\u{A7D1}", "\u{A7D2}" => "\u{A7D3}", "\u{A7D4}" => "\u{A7D5}", "\u{A7D6}" => "\u{A7D7}", + "\u{A7D8}" => "\u{A7D9}", "\u{A7DA}" => "\u{A7DB}", "\u{A7DC}" => "\u{19B}", "\u{A7DD}" => "\u{277}", + "\u{A7E2}" => "\u{27C}", "\u{A7F1}" => "\u{73}", "\u{A7F2}" => "\u{63}", "\u{A7F3}" => "\u{66}", + "\u{A7F4}" => "\u{71}", "\u{A7F5}" => "\u{A7F6}", "\u{A7F8}" => "\u{127}", "\u{A7F9}" => "\u{153}", + "\u{AB5C}" => "\u{A727}", "\u{AB5D}" => "\u{AB37}", "\u{AB5E}" => "\u{26B}", "\u{AB5F}" => "\u{AB52}", + "\u{AB69}" => "\u{28D}", "\u{AB6C}" => "\u{AB4B}", "\u{AB6D}" => "\u{AB4C}", "\u{AB70}" => "\u{13A0}", + "\u{AB71}" => "\u{13A1}", "\u{AB72}" => "\u{13A2}", "\u{AB73}" => "\u{13A3}", "\u{AB74}" => "\u{13A4}", + "\u{AB75}" => "\u{13A5}", "\u{AB76}" => "\u{13A6}", "\u{AB77}" => "\u{13A7}", "\u{AB78}" => "\u{13A8}", + "\u{AB79}" => "\u{13A9}", "\u{AB7A}" => "\u{13AA}", "\u{AB7B}" => "\u{13AB}", "\u{AB7C}" => "\u{13AC}", + "\u{AB7D}" => "\u{13AD}", "\u{AB7E}" => "\u{13AE}", "\u{AB7F}" => "\u{13AF}", "\u{AB80}" => "\u{13B0}", + "\u{AB81}" => "\u{13B1}", "\u{AB82}" => "\u{13B2}", "\u{AB83}" => "\u{13B3}", "\u{AB84}" => "\u{13B4}", + "\u{AB85}" => "\u{13B5}", "\u{AB86}" => "\u{13B6}", "\u{AB87}" => "\u{13B7}", "\u{AB88}" => "\u{13B8}", + "\u{AB89}" => "\u{13B9}", "\u{AB8A}" => "\u{13BA}", "\u{AB8B}" => "\u{13BB}", "\u{AB8C}" => "\u{13BC}", + "\u{AB8D}" => "\u{13BD}", "\u{AB8E}" => "\u{13BE}", "\u{AB8F}" => "\u{13BF}", "\u{AB90}" => "\u{13C0}", + "\u{AB91}" => "\u{13C1}", "\u{AB92}" => "\u{13C2}", "\u{AB93}" => "\u{13C3}", "\u{AB94}" => "\u{13C4}", + "\u{AB95}" => "\u{13C5}", "\u{AB96}" => "\u{13C6}", "\u{AB97}" => "\u{13C7}", "\u{AB98}" => "\u{13C8}", + "\u{AB99}" => "\u{13C9}", "\u{AB9A}" => "\u{13CA}", "\u{AB9B}" => "\u{13CB}", "\u{AB9C}" => "\u{13CC}", + "\u{AB9D}" => "\u{13CD}", "\u{AB9E}" => "\u{13CE}", "\u{AB9F}" => "\u{13CF}", "\u{ABA0}" => "\u{13D0}", + "\u{ABA1}" => "\u{13D1}", "\u{ABA2}" => "\u{13D2}", "\u{ABA3}" => "\u{13D3}", "\u{ABA4}" => "\u{13D4}", + "\u{ABA5}" => "\u{13D5}", "\u{ABA6}" => "\u{13D6}", "\u{ABA7}" => "\u{13D7}", "\u{ABA8}" => "\u{13D8}", + "\u{ABA9}" => "\u{13D9}", "\u{ABAA}" => "\u{13DA}", "\u{ABAB}" => "\u{13DB}", "\u{ABAC}" => "\u{13DC}", + "\u{ABAD}" => "\u{13DD}", "\u{ABAE}" => "\u{13DE}", "\u{ABAF}" => "\u{13DF}", "\u{ABB0}" => "\u{13E0}", + "\u{ABB1}" => "\u{13E1}", "\u{ABB2}" => "\u{13E2}", "\u{ABB3}" => "\u{13E3}", "\u{ABB4}" => "\u{13E4}", + "\u{ABB5}" => "\u{13E5}", "\u{ABB6}" => "\u{13E6}", "\u{ABB7}" => "\u{13E7}", "\u{ABB8}" => "\u{13E8}", + "\u{ABB9}" => "\u{13E9}", "\u{ABBA}" => "\u{13EA}", "\u{ABBB}" => "\u{13EB}", "\u{ABBC}" => "\u{13EC}", + "\u{ABBD}" => "\u{13ED}", "\u{ABBE}" => "\u{13EE}", "\u{ABBF}" => "\u{13EF}", "\u{F900}" => "\u{8C48}", + "\u{F901}" => "\u{66F4}", "\u{F902}" => "\u{8ECA}", "\u{F903}" => "\u{8CC8}", "\u{F904}" => "\u{6ED1}", + "\u{F905}" => "\u{4E32}", "\u{F906}" => "\u{53E5}", "\u{F907}" => "\u{9F9C}", "\u{F908}" => "\u{9F9C}", + "\u{F909}" => "\u{5951}", "\u{F90A}" => "\u{91D1}", "\u{F90B}" => "\u{5587}", "\u{F90C}" => "\u{5948}", + "\u{F90D}" => "\u{61F6}", "\u{F90E}" => "\u{7669}", "\u{F90F}" => "\u{7F85}", "\u{F910}" => "\u{863F}", + "\u{F911}" => "\u{87BA}", "\u{F912}" => "\u{88F8}", "\u{F913}" => "\u{908F}", "\u{F914}" => "\u{6A02}", + "\u{F915}" => "\u{6D1B}", "\u{F916}" => "\u{70D9}", "\u{F917}" => "\u{73DE}", "\u{F918}" => "\u{843D}", + "\u{F919}" => "\u{916A}", "\u{F91A}" => "\u{99F1}", "\u{F91B}" => "\u{4E82}", "\u{F91C}" => "\u{5375}", + "\u{F91D}" => "\u{6B04}", "\u{F91E}" => "\u{721B}", "\u{F91F}" => "\u{862D}", "\u{F920}" => "\u{9E1E}", + "\u{F921}" => "\u{5D50}", "\u{F922}" => "\u{6FEB}", "\u{F923}" => "\u{85CD}", "\u{F924}" => "\u{8964}", + "\u{F925}" => "\u{62C9}", "\u{F926}" => "\u{81D8}", "\u{F927}" => "\u{881F}", "\u{F928}" => "\u{5ECA}", + "\u{F929}" => "\u{6717}", "\u{F92A}" => "\u{6D6A}", "\u{F92B}" => "\u{72FC}", "\u{F92C}" => "\u{90CE}", + "\u{F92D}" => "\u{4F86}", "\u{F92E}" => "\u{51B7}", "\u{F92F}" => "\u{52DE}", "\u{F930}" => "\u{64C4}", + "\u{F931}" => "\u{6AD3}", "\u{F932}" => "\u{7210}", "\u{F933}" => "\u{76E7}", "\u{F934}" => "\u{8001}", + "\u{F935}" => "\u{8606}", "\u{F936}" => "\u{865C}", "\u{F937}" => "\u{8DEF}", "\u{F938}" => "\u{9732}", + "\u{F939}" => "\u{9B6F}", "\u{F93A}" => "\u{9DFA}", "\u{F93B}" => "\u{788C}", "\u{F93C}" => "\u{797F}", + "\u{F93D}" => "\u{7DA0}", "\u{F93E}" => "\u{83C9}", "\u{F93F}" => "\u{9304}", "\u{F940}" => "\u{9E7F}", + "\u{F941}" => "\u{8AD6}", "\u{F942}" => "\u{58DF}", "\u{F943}" => "\u{5F04}", "\u{F944}" => "\u{7C60}", + "\u{F945}" => "\u{807E}", "\u{F946}" => "\u{7262}", "\u{F947}" => "\u{78CA}", "\u{F948}" => "\u{8CC2}", + "\u{F949}" => "\u{96F7}", "\u{F94A}" => "\u{58D8}", "\u{F94B}" => "\u{5C62}", "\u{F94C}" => "\u{6A13}", + "\u{F94D}" => "\u{6DDA}", "\u{F94E}" => "\u{6F0F}", "\u{F94F}" => "\u{7D2F}", "\u{F950}" => "\u{7E37}", + "\u{F951}" => "\u{964B}", "\u{F952}" => "\u{52D2}", "\u{F953}" => "\u{808B}", "\u{F954}" => "\u{51DC}", + "\u{F955}" => "\u{51CC}", "\u{F956}" => "\u{7A1C}", "\u{F957}" => "\u{7DBE}", "\u{F958}" => "\u{83F1}", + "\u{F959}" => "\u{9675}", "\u{F95A}" => "\u{8B80}", "\u{F95B}" => "\u{62CF}", "\u{F95C}" => "\u{6A02}", + "\u{F95D}" => "\u{8AFE}", "\u{F95E}" => "\u{4E39}", "\u{F95F}" => "\u{5BE7}", "\u{F960}" => "\u{6012}", + "\u{F961}" => "\u{7387}", "\u{F962}" => "\u{7570}", "\u{F963}" => "\u{5317}", "\u{F964}" => "\u{78FB}", + "\u{F965}" => "\u{4FBF}", "\u{F966}" => "\u{5FA9}", "\u{F967}" => "\u{4E0D}", "\u{F968}" => "\u{6CCC}", + "\u{F969}" => "\u{6578}", "\u{F96A}" => "\u{7D22}", "\u{F96B}" => "\u{53C3}", "\u{F96C}" => "\u{585E}", + "\u{F96D}" => "\u{7701}", "\u{F96E}" => "\u{8449}", "\u{F96F}" => "\u{8AAA}", "\u{F970}" => "\u{6BBA}", + "\u{F971}" => "\u{8FB0}", "\u{F972}" => "\u{6C88}", "\u{F973}" => "\u{62FE}", "\u{F974}" => "\u{82E5}", + "\u{F975}" => "\u{63A0}", "\u{F976}" => "\u{7565}", "\u{F977}" => "\u{4EAE}", "\u{F978}" => "\u{5169}", + "\u{F979}" => "\u{51C9}", "\u{F97A}" => "\u{6881}", "\u{F97B}" => "\u{7CE7}", "\u{F97C}" => "\u{826F}", + "\u{F97D}" => "\u{8AD2}", "\u{F97E}" => "\u{91CF}", "\u{F97F}" => "\u{52F5}", "\u{F980}" => "\u{5442}", + "\u{F981}" => "\u{5973}", "\u{F982}" => "\u{5EEC}", "\u{F983}" => "\u{65C5}", "\u{F984}" => "\u{6FFE}", + "\u{F985}" => "\u{792A}", "\u{F986}" => "\u{95AD}", "\u{F987}" => "\u{9A6A}", "\u{F988}" => "\u{9E97}", + "\u{F989}" => "\u{9ECE}", "\u{F98A}" => "\u{529B}", "\u{F98B}" => "\u{66C6}", "\u{F98C}" => "\u{6B77}", + "\u{F98D}" => "\u{8F62}", "\u{F98E}" => "\u{5E74}", "\u{F98F}" => "\u{6190}", "\u{F990}" => "\u{6200}", + "\u{F991}" => "\u{649A}", "\u{F992}" => "\u{6F23}", "\u{F993}" => "\u{7149}", "\u{F994}" => "\u{7489}", + "\u{F995}" => "\u{79CA}", "\u{F996}" => "\u{7DF4}", "\u{F997}" => "\u{806F}", "\u{F998}" => "\u{8F26}", + "\u{F999}" => "\u{84EE}", "\u{F99A}" => "\u{9023}", "\u{F99B}" => "\u{934A}", "\u{F99C}" => "\u{5217}", + "\u{F99D}" => "\u{52A3}", "\u{F99E}" => "\u{54BD}", "\u{F99F}" => "\u{70C8}", "\u{F9A0}" => "\u{88C2}", + "\u{F9A1}" => "\u{8AAA}", "\u{F9A2}" => "\u{5EC9}", "\u{F9A3}" => "\u{5FF5}", "\u{F9A4}" => "\u{637B}", + "\u{F9A5}" => "\u{6BAE}", "\u{F9A6}" => "\u{7C3E}", "\u{F9A7}" => "\u{7375}", "\u{F9A8}" => "\u{4EE4}", + "\u{F9A9}" => "\u{56F9}", "\u{F9AA}" => "\u{5BE7}", "\u{F9AB}" => "\u{5DBA}", "\u{F9AC}" => "\u{601C}", + "\u{F9AD}" => "\u{73B2}", "\u{F9AE}" => "\u{7469}", "\u{F9AF}" => "\u{7F9A}", "\u{F9B0}" => "\u{8046}", + "\u{F9B1}" => "\u{9234}", "\u{F9B2}" => "\u{96F6}", "\u{F9B3}" => "\u{9748}", "\u{F9B4}" => "\u{9818}", + "\u{F9B5}" => "\u{4F8B}", "\u{F9B6}" => "\u{79AE}", "\u{F9B7}" => "\u{91B4}", "\u{F9B8}" => "\u{96B8}", + "\u{F9B9}" => "\u{60E1}", "\u{F9BA}" => "\u{4E86}", "\u{F9BB}" => "\u{50DA}", "\u{F9BC}" => "\u{5BEE}", + "\u{F9BD}" => "\u{5C3F}", "\u{F9BE}" => "\u{6599}", "\u{F9BF}" => "\u{6A02}", "\u{F9C0}" => "\u{71CE}", + "\u{F9C1}" => "\u{7642}", "\u{F9C2}" => "\u{84FC}", "\u{F9C3}" => "\u{907C}", "\u{F9C4}" => "\u{9F8D}", + "\u{F9C5}" => "\u{6688}", "\u{F9C6}" => "\u{962E}", "\u{F9C7}" => "\u{5289}", "\u{F9C8}" => "\u{677B}", + "\u{F9C9}" => "\u{67F3}", "\u{F9CA}" => "\u{6D41}", "\u{F9CB}" => "\u{6E9C}", "\u{F9CC}" => "\u{7409}", + "\u{F9CD}" => "\u{7559}", "\u{F9CE}" => "\u{786B}", "\u{F9CF}" => "\u{7D10}", "\u{F9D0}" => "\u{985E}", + "\u{F9D1}" => "\u{516D}", "\u{F9D2}" => "\u{622E}", "\u{F9D3}" => "\u{9678}", "\u{F9D4}" => "\u{502B}", + "\u{F9D5}" => "\u{5D19}", "\u{F9D6}" => "\u{6DEA}", "\u{F9D7}" => "\u{8F2A}", "\u{F9D8}" => "\u{5F8B}", + "\u{F9D9}" => "\u{6144}", "\u{F9DA}" => "\u{6817}", "\u{F9DB}" => "\u{7387}", "\u{F9DC}" => "\u{9686}", + "\u{F9DD}" => "\u{5229}", "\u{F9DE}" => "\u{540F}", "\u{F9DF}" => "\u{5C65}", "\u{F9E0}" => "\u{6613}", + "\u{F9E1}" => "\u{674E}", "\u{F9E2}" => "\u{68A8}", "\u{F9E3}" => "\u{6CE5}", "\u{F9E4}" => "\u{7406}", + "\u{F9E5}" => "\u{75E2}", "\u{F9E6}" => "\u{7F79}", "\u{F9E7}" => "\u{88CF}", "\u{F9E8}" => "\u{88E1}", + "\u{F9E9}" => "\u{91CC}", "\u{F9EA}" => "\u{96E2}", "\u{F9EB}" => "\u{533F}", "\u{F9EC}" => "\u{6EBA}", + "\u{F9ED}" => "\u{541D}", "\u{F9EE}" => "\u{71D0}", "\u{F9EF}" => "\u{7498}", "\u{F9F0}" => "\u{85FA}", + "\u{F9F1}" => "\u{96A3}", "\u{F9F2}" => "\u{9C57}", "\u{F9F3}" => "\u{9E9F}", "\u{F9F4}" => "\u{6797}", + "\u{F9F5}" => "\u{6DCB}", "\u{F9F6}" => "\u{81E8}", "\u{F9F7}" => "\u{7ACB}", "\u{F9F8}" => "\u{7B20}", + "\u{F9F9}" => "\u{7C92}", "\u{F9FA}" => "\u{72C0}", "\u{F9FB}" => "\u{7099}", "\u{F9FC}" => "\u{8B58}", + "\u{F9FD}" => "\u{4EC0}", "\u{F9FE}" => "\u{8336}", "\u{F9FF}" => "\u{523A}", "\u{FA00}" => "\u{5207}", + "\u{FA01}" => "\u{5EA6}", "\u{FA02}" => "\u{62D3}", "\u{FA03}" => "\u{7CD6}", "\u{FA04}" => "\u{5B85}", + "\u{FA05}" => "\u{6D1E}", "\u{FA06}" => "\u{66B4}", "\u{FA07}" => "\u{8F3B}", "\u{FA08}" => "\u{884C}", + "\u{FA09}" => "\u{964D}", "\u{FA0A}" => "\u{898B}", "\u{FA0B}" => "\u{5ED3}", "\u{FA0C}" => "\u{5140}", + "\u{FA0D}" => "\u{55C0}", "\u{FA10}" => "\u{585A}", "\u{FA12}" => "\u{6674}", "\u{FA15}" => "\u{51DE}", + "\u{FA16}" => "\u{732A}", "\u{FA17}" => "\u{76CA}", "\u{FA18}" => "\u{793C}", "\u{FA19}" => "\u{795E}", + "\u{FA1A}" => "\u{7965}", "\u{FA1B}" => "\u{798F}", "\u{FA1C}" => "\u{9756}", "\u{FA1D}" => "\u{7CBE}", + "\u{FA1E}" => "\u{7FBD}", "\u{FA20}" => "\u{8612}", "\u{FA22}" => "\u{8AF8}", "\u{FA25}" => "\u{9038}", + "\u{FA26}" => "\u{90FD}", "\u{FA2A}" => "\u{98EF}", "\u{FA2B}" => "\u{98FC}", "\u{FA2C}" => "\u{9928}", + "\u{FA2D}" => "\u{9DB4}", "\u{FA2E}" => "\u{90DE}", "\u{FA2F}" => "\u{96B7}", "\u{FA30}" => "\u{4FAE}", + "\u{FA31}" => "\u{50E7}", "\u{FA32}" => "\u{514D}", "\u{FA33}" => "\u{52C9}", "\u{FA34}" => "\u{52E4}", + "\u{FA35}" => "\u{5351}", "\u{FA36}" => "\u{559D}", "\u{FA37}" => "\u{5606}", "\u{FA38}" => "\u{5668}", + "\u{FA39}" => "\u{5840}", "\u{FA3A}" => "\u{58A8}", "\u{FA3B}" => "\u{5C64}", "\u{FA3C}" => "\u{5C6E}", + "\u{FA3D}" => "\u{6094}", "\u{FA3E}" => "\u{6168}", "\u{FA3F}" => "\u{618E}", "\u{FA40}" => "\u{61F2}", + "\u{FA41}" => "\u{654F}", "\u{FA42}" => "\u{65E2}", "\u{FA43}" => "\u{6691}", "\u{FA44}" => "\u{6885}", + "\u{FA45}" => "\u{6D77}", "\u{FA46}" => "\u{6E1A}", "\u{FA47}" => "\u{6F22}", "\u{FA48}" => "\u{716E}", + "\u{FA49}" => "\u{722B}", "\u{FA4A}" => "\u{7422}", "\u{FA4B}" => "\u{7891}", "\u{FA4C}" => "\u{793E}", + "\u{FA4D}" => "\u{7949}", "\u{FA4E}" => "\u{7948}", "\u{FA4F}" => "\u{7950}", "\u{FA50}" => "\u{7956}", + "\u{FA51}" => "\u{795D}", "\u{FA52}" => "\u{798D}", "\u{FA53}" => "\u{798E}", "\u{FA54}" => "\u{7A40}", + "\u{FA55}" => "\u{7A81}", "\u{FA56}" => "\u{7BC0}", "\u{FA57}" => "\u{7DF4}", "\u{FA58}" => "\u{7E09}", + "\u{FA59}" => "\u{7E41}", "\u{FA5A}" => "\u{7F72}", "\u{FA5B}" => "\u{8005}", "\u{FA5C}" => "\u{81ED}", + "\u{FA5D}" => "\u{8279}", "\u{FA5E}" => "\u{8279}", "\u{FA5F}" => "\u{8457}", "\u{FA60}" => "\u{8910}", + "\u{FA61}" => "\u{8996}", "\u{FA62}" => "\u{8B01}", "\u{FA63}" => "\u{8B39}", "\u{FA64}" => "\u{8CD3}", + "\u{FA65}" => "\u{8D08}", "\u{FA66}" => "\u{8FB6}", "\u{FA67}" => "\u{9038}", "\u{FA68}" => "\u{96E3}", + "\u{FA69}" => "\u{97FF}", "\u{FA6A}" => "\u{983B}", "\u{FA6B}" => "\u{6075}", "\u{FA6C}" => "\u{242EE}", + "\u{FA6D}" => "\u{8218}", "\u{FA70}" => "\u{4E26}", "\u{FA71}" => "\u{51B5}", "\u{FA72}" => "\u{5168}", + "\u{FA73}" => "\u{4F80}", "\u{FA74}" => "\u{5145}", "\u{FA75}" => "\u{5180}", "\u{FA76}" => "\u{52C7}", + "\u{FA77}" => "\u{52FA}", "\u{FA78}" => "\u{559D}", "\u{FA79}" => "\u{5555}", "\u{FA7A}" => "\u{5599}", + "\u{FA7B}" => "\u{55E2}", "\u{FA7C}" => "\u{585A}", "\u{FA7D}" => "\u{58B3}", "\u{FA7E}" => "\u{5944}", + "\u{FA7F}" => "\u{5954}", "\u{FA80}" => "\u{5A62}", "\u{FA81}" => "\u{5B28}", "\u{FA82}" => "\u{5ED2}", + "\u{FA83}" => "\u{5ED9}", "\u{FA84}" => "\u{5F69}", "\u{FA85}" => "\u{5FAD}", "\u{FA86}" => "\u{60D8}", + "\u{FA87}" => "\u{614E}", "\u{FA88}" => "\u{6108}", "\u{FA89}" => "\u{618E}", "\u{FA8A}" => "\u{6160}", + "\u{FA8B}" => "\u{61F2}", "\u{FA8C}" => "\u{6234}", "\u{FA8D}" => "\u{63C4}", "\u{FA8E}" => "\u{641C}", + "\u{FA8F}" => "\u{6452}", "\u{FA90}" => "\u{6556}", "\u{FA91}" => "\u{6674}", "\u{FA92}" => "\u{6717}", + "\u{FA93}" => "\u{671B}", "\u{FA94}" => "\u{6756}", "\u{FA95}" => "\u{6B79}", "\u{FA96}" => "\u{6BBA}", + "\u{FA97}" => "\u{6D41}", "\u{FA98}" => "\u{6EDB}", "\u{FA99}" => "\u{6ECB}", "\u{FA9A}" => "\u{6F22}", + "\u{FA9B}" => "\u{701E}", "\u{FA9C}" => "\u{716E}", "\u{FA9D}" => "\u{77A7}", "\u{FA9E}" => "\u{7235}", + "\u{FA9F}" => "\u{72AF}", "\u{FAA0}" => "\u{732A}", "\u{FAA1}" => "\u{7471}", "\u{FAA2}" => "\u{7506}", + "\u{FAA3}" => "\u{753B}", "\u{FAA4}" => "\u{761D}", "\u{FAA5}" => "\u{761F}", "\u{FAA6}" => "\u{76CA}", + "\u{FAA7}" => "\u{76DB}", "\u{FAA8}" => "\u{76F4}", "\u{FAA9}" => "\u{774A}", "\u{FAAA}" => "\u{7740}", + "\u{FAAB}" => "\u{78CC}", "\u{FAAC}" => "\u{7AB1}", "\u{FAAD}" => "\u{7BC0}", "\u{FAAE}" => "\u{7C7B}", + "\u{FAAF}" => "\u{7D5B}", "\u{FAB0}" => "\u{7DF4}", "\u{FAB1}" => "\u{7F3E}", "\u{FAB2}" => "\u{8005}", + "\u{FAB3}" => "\u{8352}", "\u{FAB4}" => "\u{83EF}", "\u{FAB5}" => "\u{8779}", "\u{FAB6}" => "\u{8941}", + "\u{FAB7}" => "\u{8986}", "\u{FAB8}" => "\u{8996}", "\u{FAB9}" => "\u{8ABF}", "\u{FABA}" => "\u{8AF8}", + "\u{FABB}" => "\u{8ACB}", "\u{FABC}" => "\u{8B01}", "\u{FABD}" => "\u{8AFE}", "\u{FABE}" => "\u{8AED}", + "\u{FABF}" => "\u{8B39}", "\u{FAC0}" => "\u{8B8A}", "\u{FAC1}" => "\u{8D08}", "\u{FAC2}" => "\u{8F38}", + "\u{FAC3}" => "\u{9072}", "\u{FAC4}" => "\u{9199}", "\u{FAC5}" => "\u{9276}", "\u{FAC6}" => "\u{967C}", + "\u{FAC7}" => "\u{96E3}", "\u{FAC8}" => "\u{9756}", "\u{FAC9}" => "\u{97DB}", "\u{FACA}" => "\u{97FF}", + "\u{FACB}" => "\u{980B}", "\u{FACC}" => "\u{983B}", "\u{FACD}" => "\u{9B12}", "\u{FACE}" => "\u{9F9C}", + "\u{FACF}" => "\u{2284A}", "\u{FAD0}" => "\u{22844}", "\u{FAD1}" => "\u{233D5}", "\u{FAD2}" => "\u{3B9D}", + "\u{FAD3}" => "\u{4018}", "\u{FAD4}" => "\u{4039}", "\u{FAD5}" => "\u{25249}", "\u{FAD6}" => "\u{25CD0}", + "\u{FAD7}" => "\u{27ED3}", "\u{FAD8}" => "\u{9F43}", "\u{FAD9}" => "\u{9F8E}", "\u{FB00}" => "\u{66}\u{66}", + "\u{FB01}" => "\u{66}\u{69}", "\u{FB02}" => "\u{66}\u{6C}", "\u{FB03}" => "\u{66}\u{66}\u{69}", "\u{FB04}" => "\u{66}\u{66}\u{6C}", + "\u{FB05}" => "\u{73}\u{74}", "\u{FB06}" => "\u{73}\u{74}", "\u{FB13}" => "\u{574}\u{576}", "\u{FB14}" => "\u{574}\u{565}", + "\u{FB15}" => "\u{574}\u{56B}", "\u{FB16}" => "\u{57E}\u{576}", "\u{FB17}" => "\u{574}\u{56D}", "\u{FB1D}" => "\u{5D9}\u{5B4}", + "\u{FB1F}" => "\u{5F2}\u{5B7}", "\u{FB20}" => "\u{5E2}", "\u{FB21}" => "\u{5D0}", "\u{FB22}" => "\u{5D3}", + "\u{FB23}" => "\u{5D4}", "\u{FB24}" => "\u{5DB}", "\u{FB25}" => "\u{5DC}", "\u{FB26}" => "\u{5DD}", + "\u{FB27}" => "\u{5E8}", "\u{FB28}" => "\u{5EA}", "\u{FB29}" => "\u{2B}", "\u{FB2A}" => "\u{5E9}\u{5C1}", + "\u{FB2B}" => "\u{5E9}\u{5C2}", "\u{FB2C}" => "\u{5E9}\u{5BC}\u{5C1}", "\u{FB2D}" => "\u{5E9}\u{5BC}\u{5C2}", "\u{FB2E}" => "\u{5D0}\u{5B7}", + "\u{FB2F}" => "\u{5D0}\u{5B8}", "\u{FB30}" => "\u{5D0}\u{5BC}", "\u{FB31}" => "\u{5D1}\u{5BC}", "\u{FB32}" => "\u{5D2}\u{5BC}", + "\u{FB33}" => "\u{5D3}\u{5BC}", "\u{FB34}" => "\u{5D4}\u{5BC}", "\u{FB35}" => "\u{5D5}\u{5BC}", "\u{FB36}" => "\u{5D6}\u{5BC}", + "\u{FB38}" => "\u{5D8}\u{5BC}", "\u{FB39}" => "\u{5D9}\u{5BC}", "\u{FB3A}" => "\u{5DA}\u{5BC}", "\u{FB3B}" => "\u{5DB}\u{5BC}", + "\u{FB3C}" => "\u{5DC}\u{5BC}", "\u{FB3E}" => "\u{5DE}\u{5BC}", "\u{FB40}" => "\u{5E0}\u{5BC}", "\u{FB41}" => "\u{5E1}\u{5BC}", + "\u{FB43}" => "\u{5E3}\u{5BC}", "\u{FB44}" => "\u{5E4}\u{5BC}", "\u{FB46}" => "\u{5E6}\u{5BC}", "\u{FB47}" => "\u{5E7}\u{5BC}", + "\u{FB48}" => "\u{5E8}\u{5BC}", "\u{FB49}" => "\u{5E9}\u{5BC}", "\u{FB4A}" => "\u{5EA}\u{5BC}", "\u{FB4B}" => "\u{5D5}\u{5B9}", + "\u{FB4C}" => "\u{5D1}\u{5BF}", "\u{FB4D}" => "\u{5DB}\u{5BF}", "\u{FB4E}" => "\u{5E4}\u{5BF}", "\u{FB4F}" => "\u{5D0}\u{5DC}", + "\u{FB50}" => "\u{671}", "\u{FB51}" => "\u{671}", "\u{FB52}" => "\u{67B}", "\u{FB53}" => "\u{67B}", + "\u{FB54}" => "\u{67B}", "\u{FB55}" => "\u{67B}", "\u{FB56}" => "\u{67E}", "\u{FB57}" => "\u{67E}", + "\u{FB58}" => "\u{67E}", "\u{FB59}" => "\u{67E}", "\u{FB5A}" => "\u{680}", "\u{FB5B}" => "\u{680}", + "\u{FB5C}" => "\u{680}", "\u{FB5D}" => "\u{680}", "\u{FB5E}" => "\u{67A}", "\u{FB5F}" => "\u{67A}", + "\u{FB60}" => "\u{67A}", "\u{FB61}" => "\u{67A}", "\u{FB62}" => "\u{67F}", "\u{FB63}" => "\u{67F}", + "\u{FB64}" => "\u{67F}", "\u{FB65}" => "\u{67F}", "\u{FB66}" => "\u{679}", "\u{FB67}" => "\u{679}", + "\u{FB68}" => "\u{679}", "\u{FB69}" => "\u{679}", "\u{FB6A}" => "\u{6A4}", "\u{FB6B}" => "\u{6A4}", + "\u{FB6C}" => "\u{6A4}", "\u{FB6D}" => "\u{6A4}", "\u{FB6E}" => "\u{6A6}", "\u{FB6F}" => "\u{6A6}", + "\u{FB70}" => "\u{6A6}", "\u{FB71}" => "\u{6A6}", "\u{FB72}" => "\u{684}", "\u{FB73}" => "\u{684}", + "\u{FB74}" => "\u{684}", "\u{FB75}" => "\u{684}", "\u{FB76}" => "\u{683}", "\u{FB77}" => "\u{683}", + "\u{FB78}" => "\u{683}", "\u{FB79}" => "\u{683}", "\u{FB7A}" => "\u{686}", "\u{FB7B}" => "\u{686}", + "\u{FB7C}" => "\u{686}", "\u{FB7D}" => "\u{686}", "\u{FB7E}" => "\u{687}", "\u{FB7F}" => "\u{687}", + "\u{FB80}" => "\u{687}", "\u{FB81}" => "\u{687}", "\u{FB82}" => "\u{68D}", "\u{FB83}" => "\u{68D}", + "\u{FB84}" => "\u{68C}", "\u{FB85}" => "\u{68C}", "\u{FB86}" => "\u{68E}", "\u{FB87}" => "\u{68E}", + "\u{FB88}" => "\u{688}", "\u{FB89}" => "\u{688}", "\u{FB8A}" => "\u{698}", "\u{FB8B}" => "\u{698}", + "\u{FB8C}" => "\u{691}", "\u{FB8D}" => "\u{691}", "\u{FB8E}" => "\u{6A9}", "\u{FB8F}" => "\u{6A9}", + "\u{FB90}" => "\u{6A9}", "\u{FB91}" => "\u{6A9}", "\u{FB92}" => "\u{6AF}", "\u{FB93}" => "\u{6AF}", + "\u{FB94}" => "\u{6AF}", "\u{FB95}" => "\u{6AF}", "\u{FB96}" => "\u{6B3}", "\u{FB97}" => "\u{6B3}", + "\u{FB98}" => "\u{6B3}", "\u{FB99}" => "\u{6B3}", "\u{FB9A}" => "\u{6B1}", "\u{FB9B}" => "\u{6B1}", + "\u{FB9C}" => "\u{6B1}", "\u{FB9D}" => "\u{6B1}", "\u{FB9E}" => "\u{6BA}", "\u{FB9F}" => "\u{6BA}", + "\u{FBA0}" => "\u{6BB}", "\u{FBA1}" => "\u{6BB}", "\u{FBA2}" => "\u{6BB}", "\u{FBA3}" => "\u{6BB}", + "\u{FBA4}" => "\u{6C0}", "\u{FBA5}" => "\u{6C0}", "\u{FBA6}" => "\u{6C1}", "\u{FBA7}" => "\u{6C1}", + "\u{FBA8}" => "\u{6C1}", "\u{FBA9}" => "\u{6C1}", "\u{FBAA}" => "\u{6BE}", "\u{FBAB}" => "\u{6BE}", + "\u{FBAC}" => "\u{6BE}", "\u{FBAD}" => "\u{6BE}", "\u{FBAE}" => "\u{6D2}", "\u{FBAF}" => "\u{6D2}", + "\u{FBB0}" => "\u{6D3}", "\u{FBB1}" => "\u{6D3}", "\u{FBD3}" => "\u{6AD}", "\u{FBD4}" => "\u{6AD}", + "\u{FBD5}" => "\u{6AD}", "\u{FBD6}" => "\u{6AD}", "\u{FBD7}" => "\u{6C7}", "\u{FBD8}" => "\u{6C7}", + "\u{FBD9}" => "\u{6C6}", "\u{FBDA}" => "\u{6C6}", "\u{FBDB}" => "\u{6C8}", "\u{FBDC}" => "\u{6C8}", + "\u{FBDD}" => "\u{6C7}\u{674}", "\u{FBDE}" => "\u{6CB}", "\u{FBDF}" => "\u{6CB}", "\u{FBE0}" => "\u{6C5}", + "\u{FBE1}" => "\u{6C5}", "\u{FBE2}" => "\u{6C9}", "\u{FBE3}" => "\u{6C9}", "\u{FBE4}" => "\u{6D0}", + "\u{FBE5}" => "\u{6D0}", "\u{FBE6}" => "\u{6D0}", "\u{FBE7}" => "\u{6D0}", "\u{FBE8}" => "\u{649}", + "\u{FBE9}" => "\u{649}", "\u{FBEA}" => "\u{626}\u{627}", "\u{FBEB}" => "\u{626}\u{627}", "\u{FBEC}" => "\u{626}\u{6D5}", + "\u{FBED}" => "\u{626}\u{6D5}", "\u{FBEE}" => "\u{626}\u{648}", "\u{FBEF}" => "\u{626}\u{648}", "\u{FBF0}" => "\u{626}\u{6C7}", + "\u{FBF1}" => "\u{626}\u{6C7}", "\u{FBF2}" => "\u{626}\u{6C6}", "\u{FBF3}" => "\u{626}\u{6C6}", "\u{FBF4}" => "\u{626}\u{6C8}", + "\u{FBF5}" => "\u{626}\u{6C8}", "\u{FBF6}" => "\u{626}\u{6D0}", "\u{FBF7}" => "\u{626}\u{6D0}", "\u{FBF8}" => "\u{626}\u{6D0}", + "\u{FBF9}" => "\u{626}\u{649}", "\u{FBFA}" => "\u{626}\u{649}", "\u{FBFB}" => "\u{626}\u{649}", "\u{FBFC}" => "\u{6CC}", + "\u{FBFD}" => "\u{6CC}", "\u{FBFE}" => "\u{6CC}", "\u{FBFF}" => "\u{6CC}", "\u{FC00}" => "\u{626}\u{62C}", + "\u{FC01}" => "\u{626}\u{62D}", "\u{FC02}" => "\u{626}\u{645}", "\u{FC03}" => "\u{626}\u{649}", "\u{FC04}" => "\u{626}\u{64A}", + "\u{FC05}" => "\u{628}\u{62C}", "\u{FC06}" => "\u{628}\u{62D}", "\u{FC07}" => "\u{628}\u{62E}", "\u{FC08}" => "\u{628}\u{645}", + "\u{FC09}" => "\u{628}\u{649}", "\u{FC0A}" => "\u{628}\u{64A}", "\u{FC0B}" => "\u{62A}\u{62C}", "\u{FC0C}" => "\u{62A}\u{62D}", + "\u{FC0D}" => "\u{62A}\u{62E}", "\u{FC0E}" => "\u{62A}\u{645}", "\u{FC0F}" => "\u{62A}\u{649}", "\u{FC10}" => "\u{62A}\u{64A}", + "\u{FC11}" => "\u{62B}\u{62C}", "\u{FC12}" => "\u{62B}\u{645}", "\u{FC13}" => "\u{62B}\u{649}", "\u{FC14}" => "\u{62B}\u{64A}", + "\u{FC15}" => "\u{62C}\u{62D}", "\u{FC16}" => "\u{62C}\u{645}", "\u{FC17}" => "\u{62D}\u{62C}", "\u{FC18}" => "\u{62D}\u{645}", + "\u{FC19}" => "\u{62E}\u{62C}", "\u{FC1A}" => "\u{62E}\u{62D}", "\u{FC1B}" => "\u{62E}\u{645}", "\u{FC1C}" => "\u{633}\u{62C}", + "\u{FC1D}" => "\u{633}\u{62D}", "\u{FC1E}" => "\u{633}\u{62E}", "\u{FC1F}" => "\u{633}\u{645}", "\u{FC20}" => "\u{635}\u{62D}", + "\u{FC21}" => "\u{635}\u{645}", "\u{FC22}" => "\u{636}\u{62C}", "\u{FC23}" => "\u{636}\u{62D}", "\u{FC24}" => "\u{636}\u{62E}", + "\u{FC25}" => "\u{636}\u{645}", "\u{FC26}" => "\u{637}\u{62D}", "\u{FC27}" => "\u{637}\u{645}", "\u{FC28}" => "\u{638}\u{645}", + "\u{FC29}" => "\u{639}\u{62C}", "\u{FC2A}" => "\u{639}\u{645}", "\u{FC2B}" => "\u{63A}\u{62C}", "\u{FC2C}" => "\u{63A}\u{645}", + "\u{FC2D}" => "\u{641}\u{62C}", "\u{FC2E}" => "\u{641}\u{62D}", "\u{FC2F}" => "\u{641}\u{62E}", "\u{FC30}" => "\u{641}\u{645}", + "\u{FC31}" => "\u{641}\u{649}", "\u{FC32}" => "\u{641}\u{64A}", "\u{FC33}" => "\u{642}\u{62D}", "\u{FC34}" => "\u{642}\u{645}", + "\u{FC35}" => "\u{642}\u{649}", "\u{FC36}" => "\u{642}\u{64A}", "\u{FC37}" => "\u{643}\u{627}", "\u{FC38}" => "\u{643}\u{62C}", + "\u{FC39}" => "\u{643}\u{62D}", "\u{FC3A}" => "\u{643}\u{62E}", "\u{FC3B}" => "\u{643}\u{644}", "\u{FC3C}" => "\u{643}\u{645}", + "\u{FC3D}" => "\u{643}\u{649}", "\u{FC3E}" => "\u{643}\u{64A}", "\u{FC3F}" => "\u{644}\u{62C}", "\u{FC40}" => "\u{644}\u{62D}", + "\u{FC41}" => "\u{644}\u{62E}", "\u{FC42}" => "\u{644}\u{645}", "\u{FC43}" => "\u{644}\u{649}", "\u{FC44}" => "\u{644}\u{64A}", + "\u{FC45}" => "\u{645}\u{62C}", "\u{FC46}" => "\u{645}\u{62D}", "\u{FC47}" => "\u{645}\u{62E}", "\u{FC48}" => "\u{645}\u{645}", + "\u{FC49}" => "\u{645}\u{649}", "\u{FC4A}" => "\u{645}\u{64A}", "\u{FC4B}" => "\u{646}\u{62C}", "\u{FC4C}" => "\u{646}\u{62D}", + "\u{FC4D}" => "\u{646}\u{62E}", "\u{FC4E}" => "\u{646}\u{645}", "\u{FC4F}" => "\u{646}\u{649}", "\u{FC50}" => "\u{646}\u{64A}", + "\u{FC51}" => "\u{647}\u{62C}", "\u{FC52}" => "\u{647}\u{645}", "\u{FC53}" => "\u{647}\u{649}", "\u{FC54}" => "\u{647}\u{64A}", + "\u{FC55}" => "\u{64A}\u{62C}", "\u{FC56}" => "\u{64A}\u{62D}", "\u{FC57}" => "\u{64A}\u{62E}", "\u{FC58}" => "\u{64A}\u{645}", + "\u{FC59}" => "\u{64A}\u{649}", "\u{FC5A}" => "\u{64A}\u{64A}", "\u{FC5B}" => "\u{630}\u{670}", "\u{FC5C}" => "\u{631}\u{670}", + "\u{FC5D}" => "\u{649}\u{670}", "\u{FC5E}" => "\u{20}\u{64C}\u{651}", "\u{FC5F}" => "\u{20}\u{64D}\u{651}", "\u{FC60}" => "\u{20}\u{64E}\u{651}", + "\u{FC61}" => "\u{20}\u{64F}\u{651}", "\u{FC62}" => "\u{20}\u{650}\u{651}", "\u{FC63}" => "\u{20}\u{651}\u{670}", "\u{FC64}" => "\u{626}\u{631}", + "\u{FC65}" => "\u{626}\u{632}", "\u{FC66}" => "\u{626}\u{645}", "\u{FC67}" => "\u{626}\u{646}", "\u{FC68}" => "\u{626}\u{649}", + "\u{FC69}" => "\u{626}\u{64A}", "\u{FC6A}" => "\u{628}\u{631}", "\u{FC6B}" => "\u{628}\u{632}", "\u{FC6C}" => "\u{628}\u{645}", + "\u{FC6D}" => "\u{628}\u{646}", "\u{FC6E}" => "\u{628}\u{649}", "\u{FC6F}" => "\u{628}\u{64A}", "\u{FC70}" => "\u{62A}\u{631}", + "\u{FC71}" => "\u{62A}\u{632}", "\u{FC72}" => "\u{62A}\u{645}", "\u{FC73}" => "\u{62A}\u{646}", "\u{FC74}" => "\u{62A}\u{649}", + "\u{FC75}" => "\u{62A}\u{64A}", "\u{FC76}" => "\u{62B}\u{631}", "\u{FC77}" => "\u{62B}\u{632}", "\u{FC78}" => "\u{62B}\u{645}", + "\u{FC79}" => "\u{62B}\u{646}", "\u{FC7A}" => "\u{62B}\u{649}", "\u{FC7B}" => "\u{62B}\u{64A}", "\u{FC7C}" => "\u{641}\u{649}", + "\u{FC7D}" => "\u{641}\u{64A}", "\u{FC7E}" => "\u{642}\u{649}", "\u{FC7F}" => "\u{642}\u{64A}", "\u{FC80}" => "\u{643}\u{627}", + "\u{FC81}" => "\u{643}\u{644}", "\u{FC82}" => "\u{643}\u{645}", "\u{FC83}" => "\u{643}\u{649}", "\u{FC84}" => "\u{643}\u{64A}", + "\u{FC85}" => "\u{644}\u{645}", "\u{FC86}" => "\u{644}\u{649}", "\u{FC87}" => "\u{644}\u{64A}", "\u{FC88}" => "\u{645}\u{627}", + "\u{FC89}" => "\u{645}\u{645}", "\u{FC8A}" => "\u{646}\u{631}", "\u{FC8B}" => "\u{646}\u{632}", "\u{FC8C}" => "\u{646}\u{645}", + "\u{FC8D}" => "\u{646}\u{646}", "\u{FC8E}" => "\u{646}\u{649}", "\u{FC8F}" => "\u{646}\u{64A}", "\u{FC90}" => "\u{649}\u{670}", + "\u{FC91}" => "\u{64A}\u{631}", "\u{FC92}" => "\u{64A}\u{632}", "\u{FC93}" => "\u{64A}\u{645}", "\u{FC94}" => "\u{64A}\u{646}", + "\u{FC95}" => "\u{64A}\u{649}", "\u{FC96}" => "\u{64A}\u{64A}", "\u{FC97}" => "\u{626}\u{62C}", "\u{FC98}" => "\u{626}\u{62D}", + "\u{FC99}" => "\u{626}\u{62E}", "\u{FC9A}" => "\u{626}\u{645}", "\u{FC9B}" => "\u{626}\u{647}", "\u{FC9C}" => "\u{628}\u{62C}", + "\u{FC9D}" => "\u{628}\u{62D}", "\u{FC9E}" => "\u{628}\u{62E}", "\u{FC9F}" => "\u{628}\u{645}", "\u{FCA0}" => "\u{628}\u{647}", + "\u{FCA1}" => "\u{62A}\u{62C}", "\u{FCA2}" => "\u{62A}\u{62D}", "\u{FCA3}" => "\u{62A}\u{62E}", "\u{FCA4}" => "\u{62A}\u{645}", + "\u{FCA5}" => "\u{62A}\u{647}", "\u{FCA6}" => "\u{62B}\u{645}", "\u{FCA7}" => "\u{62C}\u{62D}", "\u{FCA8}" => "\u{62C}\u{645}", + "\u{FCA9}" => "\u{62D}\u{62C}", "\u{FCAA}" => "\u{62D}\u{645}", "\u{FCAB}" => "\u{62E}\u{62C}", "\u{FCAC}" => "\u{62E}\u{645}", + "\u{FCAD}" => "\u{633}\u{62C}", "\u{FCAE}" => "\u{633}\u{62D}", "\u{FCAF}" => "\u{633}\u{62E}", "\u{FCB0}" => "\u{633}\u{645}", + "\u{FCB1}" => "\u{635}\u{62D}", "\u{FCB2}" => "\u{635}\u{62E}", "\u{FCB3}" => "\u{635}\u{645}", "\u{FCB4}" => "\u{636}\u{62C}", + "\u{FCB5}" => "\u{636}\u{62D}", "\u{FCB6}" => "\u{636}\u{62E}", "\u{FCB7}" => "\u{636}\u{645}", "\u{FCB8}" => "\u{637}\u{62D}", + "\u{FCB9}" => "\u{638}\u{645}", "\u{FCBA}" => "\u{639}\u{62C}", "\u{FCBB}" => "\u{639}\u{645}", "\u{FCBC}" => "\u{63A}\u{62C}", + "\u{FCBD}" => "\u{63A}\u{645}", "\u{FCBE}" => "\u{641}\u{62C}", "\u{FCBF}" => "\u{641}\u{62D}", "\u{FCC0}" => "\u{641}\u{62E}", + "\u{FCC1}" => "\u{641}\u{645}", "\u{FCC2}" => "\u{642}\u{62D}", "\u{FCC3}" => "\u{642}\u{645}", "\u{FCC4}" => "\u{643}\u{62C}", + "\u{FCC5}" => "\u{643}\u{62D}", "\u{FCC6}" => "\u{643}\u{62E}", "\u{FCC7}" => "\u{643}\u{644}", "\u{FCC8}" => "\u{643}\u{645}", + "\u{FCC9}" => "\u{644}\u{62C}", "\u{FCCA}" => "\u{644}\u{62D}", "\u{FCCB}" => "\u{644}\u{62E}", "\u{FCCC}" => "\u{644}\u{645}", + "\u{FCCD}" => "\u{644}\u{647}", "\u{FCCE}" => "\u{645}\u{62C}", "\u{FCCF}" => "\u{645}\u{62D}", "\u{FCD0}" => "\u{645}\u{62E}", + "\u{FCD1}" => "\u{645}\u{645}", "\u{FCD2}" => "\u{646}\u{62C}", "\u{FCD3}" => "\u{646}\u{62D}", "\u{FCD4}" => "\u{646}\u{62E}", + "\u{FCD5}" => "\u{646}\u{645}", "\u{FCD6}" => "\u{646}\u{647}", "\u{FCD7}" => "\u{647}\u{62C}", "\u{FCD8}" => "\u{647}\u{645}", + "\u{FCD9}" => "\u{647}\u{670}", "\u{FCDA}" => "\u{64A}\u{62C}", "\u{FCDB}" => "\u{64A}\u{62D}", "\u{FCDC}" => "\u{64A}\u{62E}", + "\u{FCDD}" => "\u{64A}\u{645}", "\u{FCDE}" => "\u{64A}\u{647}", "\u{FCDF}" => "\u{626}\u{645}", "\u{FCE0}" => "\u{626}\u{647}", + "\u{FCE1}" => "\u{628}\u{645}", "\u{FCE2}" => "\u{628}\u{647}", "\u{FCE3}" => "\u{62A}\u{645}", "\u{FCE4}" => "\u{62A}\u{647}", + "\u{FCE5}" => "\u{62B}\u{645}", "\u{FCE6}" => "\u{62B}\u{647}", "\u{FCE7}" => "\u{633}\u{645}", "\u{FCE8}" => "\u{633}\u{647}", + "\u{FCE9}" => "\u{634}\u{645}", "\u{FCEA}" => "\u{634}\u{647}", "\u{FCEB}" => "\u{643}\u{644}", "\u{FCEC}" => "\u{643}\u{645}", + "\u{FCED}" => "\u{644}\u{645}", "\u{FCEE}" => "\u{646}\u{645}", "\u{FCEF}" => "\u{646}\u{647}", "\u{FCF0}" => "\u{64A}\u{645}", + "\u{FCF1}" => "\u{64A}\u{647}", "\u{FCF2}" => "\u{640}\u{64E}\u{651}", "\u{FCF3}" => "\u{640}\u{64F}\u{651}", "\u{FCF4}" => "\u{640}\u{650}\u{651}", + "\u{FCF5}" => "\u{637}\u{649}", "\u{FCF6}" => "\u{637}\u{64A}", "\u{FCF7}" => "\u{639}\u{649}", "\u{FCF8}" => "\u{639}\u{64A}", + "\u{FCF9}" => "\u{63A}\u{649}", "\u{FCFA}" => "\u{63A}\u{64A}", "\u{FCFB}" => "\u{633}\u{649}", "\u{FCFC}" => "\u{633}\u{64A}", + "\u{FCFD}" => "\u{634}\u{649}", "\u{FCFE}" => "\u{634}\u{64A}", "\u{FCFF}" => "\u{62D}\u{649}", "\u{FD00}" => "\u{62D}\u{64A}", + "\u{FD01}" => "\u{62C}\u{649}", "\u{FD02}" => "\u{62C}\u{64A}", "\u{FD03}" => "\u{62E}\u{649}", "\u{FD04}" => "\u{62E}\u{64A}", + "\u{FD05}" => "\u{635}\u{649}", "\u{FD06}" => "\u{635}\u{64A}", "\u{FD07}" => "\u{636}\u{649}", "\u{FD08}" => "\u{636}\u{64A}", + "\u{FD09}" => "\u{634}\u{62C}", "\u{FD0A}" => "\u{634}\u{62D}", "\u{FD0B}" => "\u{634}\u{62E}", "\u{FD0C}" => "\u{634}\u{645}", + "\u{FD0D}" => "\u{634}\u{631}", "\u{FD0E}" => "\u{633}\u{631}", "\u{FD0F}" => "\u{635}\u{631}", "\u{FD10}" => "\u{636}\u{631}", + "\u{FD11}" => "\u{637}\u{649}", "\u{FD12}" => "\u{637}\u{64A}", "\u{FD13}" => "\u{639}\u{649}", "\u{FD14}" => "\u{639}\u{64A}", + "\u{FD15}" => "\u{63A}\u{649}", "\u{FD16}" => "\u{63A}\u{64A}", "\u{FD17}" => "\u{633}\u{649}", "\u{FD18}" => "\u{633}\u{64A}", + "\u{FD19}" => "\u{634}\u{649}", "\u{FD1A}" => "\u{634}\u{64A}", "\u{FD1B}" => "\u{62D}\u{649}", "\u{FD1C}" => "\u{62D}\u{64A}", + "\u{FD1D}" => "\u{62C}\u{649}", "\u{FD1E}" => "\u{62C}\u{64A}", "\u{FD1F}" => "\u{62E}\u{649}", "\u{FD20}" => "\u{62E}\u{64A}", + "\u{FD21}" => "\u{635}\u{649}", "\u{FD22}" => "\u{635}\u{64A}", "\u{FD23}" => "\u{636}\u{649}", "\u{FD24}" => "\u{636}\u{64A}", + "\u{FD25}" => "\u{634}\u{62C}", "\u{FD26}" => "\u{634}\u{62D}", "\u{FD27}" => "\u{634}\u{62E}", "\u{FD28}" => "\u{634}\u{645}", + "\u{FD29}" => "\u{634}\u{631}", "\u{FD2A}" => "\u{633}\u{631}", "\u{FD2B}" => "\u{635}\u{631}", "\u{FD2C}" => "\u{636}\u{631}", + "\u{FD2D}" => "\u{634}\u{62C}", "\u{FD2E}" => "\u{634}\u{62D}", "\u{FD2F}" => "\u{634}\u{62E}", "\u{FD30}" => "\u{634}\u{645}", + "\u{FD31}" => "\u{633}\u{647}", "\u{FD32}" => "\u{634}\u{647}", "\u{FD33}" => "\u{637}\u{645}", "\u{FD34}" => "\u{633}\u{62C}", + "\u{FD35}" => "\u{633}\u{62D}", "\u{FD36}" => "\u{633}\u{62E}", "\u{FD37}" => "\u{634}\u{62C}", "\u{FD38}" => "\u{634}\u{62D}", + "\u{FD39}" => "\u{634}\u{62E}", "\u{FD3A}" => "\u{637}\u{645}", "\u{FD3B}" => "\u{638}\u{645}", "\u{FD3C}" => "\u{627}\u{64B}", + "\u{FD3D}" => "\u{627}\u{64B}", "\u{FD50}" => "\u{62A}\u{62C}\u{645}", "\u{FD51}" => "\u{62A}\u{62D}\u{62C}", "\u{FD52}" => "\u{62A}\u{62D}\u{62C}", + "\u{FD53}" => "\u{62A}\u{62D}\u{645}", "\u{FD54}" => "\u{62A}\u{62E}\u{645}", "\u{FD55}" => "\u{62A}\u{645}\u{62C}", "\u{FD56}" => "\u{62A}\u{645}\u{62D}", + "\u{FD57}" => "\u{62A}\u{645}\u{62E}", "\u{FD58}" => "\u{62C}\u{645}\u{62D}", "\u{FD59}" => "\u{62C}\u{645}\u{62D}", "\u{FD5A}" => "\u{62D}\u{645}\u{64A}", + "\u{FD5B}" => "\u{62D}\u{645}\u{649}", "\u{FD5C}" => "\u{633}\u{62D}\u{62C}", "\u{FD5D}" => "\u{633}\u{62C}\u{62D}", "\u{FD5E}" => "\u{633}\u{62C}\u{649}", + "\u{FD5F}" => "\u{633}\u{645}\u{62D}", "\u{FD60}" => "\u{633}\u{645}\u{62D}", "\u{FD61}" => "\u{633}\u{645}\u{62C}", "\u{FD62}" => "\u{633}\u{645}\u{645}", + "\u{FD63}" => "\u{633}\u{645}\u{645}", "\u{FD64}" => "\u{635}\u{62D}\u{62D}", "\u{FD65}" => "\u{635}\u{62D}\u{62D}", "\u{FD66}" => "\u{635}\u{645}\u{645}", + "\u{FD67}" => "\u{634}\u{62D}\u{645}", "\u{FD68}" => "\u{634}\u{62D}\u{645}", "\u{FD69}" => "\u{634}\u{62C}\u{64A}", "\u{FD6A}" => "\u{634}\u{645}\u{62E}", + "\u{FD6B}" => "\u{634}\u{645}\u{62E}", "\u{FD6C}" => "\u{634}\u{645}\u{645}", "\u{FD6D}" => "\u{634}\u{645}\u{645}", "\u{FD6E}" => "\u{636}\u{62D}\u{649}", + "\u{FD6F}" => "\u{636}\u{62E}\u{645}", "\u{FD70}" => "\u{636}\u{62E}\u{645}", "\u{FD71}" => "\u{637}\u{645}\u{62D}", "\u{FD72}" => "\u{637}\u{645}\u{62D}", + "\u{FD73}" => "\u{637}\u{645}\u{645}", "\u{FD74}" => "\u{637}\u{645}\u{64A}", "\u{FD75}" => "\u{639}\u{62C}\u{645}", "\u{FD76}" => "\u{639}\u{645}\u{645}", + "\u{FD77}" => "\u{639}\u{645}\u{645}", "\u{FD78}" => "\u{639}\u{645}\u{649}", "\u{FD79}" => "\u{63A}\u{645}\u{645}", "\u{FD7A}" => "\u{63A}\u{645}\u{64A}", + "\u{FD7B}" => "\u{63A}\u{645}\u{649}", "\u{FD7C}" => "\u{641}\u{62E}\u{645}", "\u{FD7D}" => "\u{641}\u{62E}\u{645}", "\u{FD7E}" => "\u{642}\u{645}\u{62D}", + "\u{FD7F}" => "\u{642}\u{645}\u{645}", "\u{FD80}" => "\u{644}\u{62D}\u{645}", "\u{FD81}" => "\u{644}\u{62D}\u{64A}", "\u{FD82}" => "\u{644}\u{62D}\u{649}", + "\u{FD83}" => "\u{644}\u{62C}\u{62C}", "\u{FD84}" => "\u{644}\u{62C}\u{62C}", "\u{FD85}" => "\u{644}\u{62E}\u{645}", "\u{FD86}" => "\u{644}\u{62E}\u{645}", + "\u{FD87}" => "\u{644}\u{645}\u{62D}", "\u{FD88}" => "\u{644}\u{645}\u{62D}", "\u{FD89}" => "\u{645}\u{62D}\u{62C}", "\u{FD8A}" => "\u{645}\u{62D}\u{645}", + "\u{FD8B}" => "\u{645}\u{62D}\u{64A}", "\u{FD8C}" => "\u{645}\u{62C}\u{62D}", "\u{FD8D}" => "\u{645}\u{62C}\u{645}", "\u{FD8E}" => "\u{645}\u{62E}\u{62C}", + "\u{FD8F}" => "\u{645}\u{62E}\u{645}", "\u{FD92}" => "\u{645}\u{62C}\u{62E}", "\u{FD93}" => "\u{647}\u{645}\u{62C}", "\u{FD94}" => "\u{647}\u{645}\u{645}", + "\u{FD95}" => "\u{646}\u{62D}\u{645}", "\u{FD96}" => "\u{646}\u{62D}\u{649}", "\u{FD97}" => "\u{646}\u{62C}\u{645}", "\u{FD98}" => "\u{646}\u{62C}\u{645}", + "\u{FD99}" => "\u{646}\u{62C}\u{649}", "\u{FD9A}" => "\u{646}\u{645}\u{64A}", "\u{FD9B}" => "\u{646}\u{645}\u{649}", "\u{FD9C}" => "\u{64A}\u{645}\u{645}", + "\u{FD9D}" => "\u{64A}\u{645}\u{645}", "\u{FD9E}" => "\u{628}\u{62E}\u{64A}", "\u{FD9F}" => "\u{62A}\u{62C}\u{64A}", "\u{FDA0}" => "\u{62A}\u{62C}\u{649}", + "\u{FDA1}" => "\u{62A}\u{62E}\u{64A}", "\u{FDA2}" => "\u{62A}\u{62E}\u{649}", "\u{FDA3}" => "\u{62A}\u{645}\u{64A}", "\u{FDA4}" => "\u{62A}\u{645}\u{649}", + "\u{FDA5}" => "\u{62C}\u{645}\u{64A}", "\u{FDA6}" => "\u{62C}\u{62D}\u{649}", "\u{FDA7}" => "\u{62C}\u{645}\u{649}", "\u{FDA8}" => "\u{633}\u{62E}\u{649}", + "\u{FDA9}" => "\u{635}\u{62D}\u{64A}", "\u{FDAA}" => "\u{634}\u{62D}\u{64A}", "\u{FDAB}" => "\u{636}\u{62D}\u{64A}", "\u{FDAC}" => "\u{644}\u{62C}\u{64A}", + "\u{FDAD}" => "\u{644}\u{645}\u{64A}", "\u{FDAE}" => "\u{64A}\u{62D}\u{64A}", "\u{FDAF}" => "\u{64A}\u{62C}\u{64A}", "\u{FDB0}" => "\u{64A}\u{645}\u{64A}", + "\u{FDB1}" => "\u{645}\u{645}\u{64A}", "\u{FDB2}" => "\u{642}\u{645}\u{64A}", "\u{FDB3}" => "\u{646}\u{62D}\u{64A}", "\u{FDB4}" => "\u{642}\u{645}\u{62D}", + "\u{FDB5}" => "\u{644}\u{62D}\u{645}", "\u{FDB6}" => "\u{639}\u{645}\u{64A}", "\u{FDB7}" => "\u{643}\u{645}\u{64A}", "\u{FDB8}" => "\u{646}\u{62C}\u{62D}", + "\u{FDB9}" => "\u{645}\u{62E}\u{64A}", "\u{FDBA}" => "\u{644}\u{62C}\u{645}", "\u{FDBB}" => "\u{643}\u{645}\u{645}", "\u{FDBC}" => "\u{644}\u{62C}\u{645}", + "\u{FDBD}" => "\u{646}\u{62C}\u{62D}", "\u{FDBE}" => "\u{62C}\u{62D}\u{64A}", "\u{FDBF}" => "\u{62D}\u{62C}\u{64A}", "\u{FDC0}" => "\u{645}\u{62C}\u{64A}", + "\u{FDC1}" => "\u{641}\u{645}\u{64A}", "\u{FDC2}" => "\u{628}\u{62D}\u{64A}", "\u{FDC3}" => "\u{643}\u{645}\u{645}", "\u{FDC4}" => "\u{639}\u{62C}\u{645}", + "\u{FDC5}" => "\u{635}\u{645}\u{645}", "\u{FDC6}" => "\u{633}\u{62E}\u{64A}", "\u{FDC7}" => "\u{646}\u{62C}\u{64A}", "\u{FDF0}" => "\u{635}\u{644}\u{6D2}", + "\u{FDF1}" => "\u{642}\u{644}\u{6D2}", "\u{FDF2}" => "\u{627}\u{644}\u{644}\u{647}", "\u{FDF3}" => "\u{627}\u{643}\u{628}\u{631}", "\u{FDF4}" => "\u{645}\u{62D}\u{645}\u{62F}", + "\u{FDF5}" => "\u{635}\u{644}\u{639}\u{645}", "\u{FDF6}" => "\u{631}\u{633}\u{648}\u{644}", "\u{FDF7}" => "\u{639}\u{644}\u{64A}\u{647}", "\u{FDF8}" => "\u{648}\u{633}\u{644}\u{645}", + "\u{FDF9}" => "\u{635}\u{644}\u{649}", "\u{FDFA}" => "\u{635}\u{644}\u{649}\u{20}\u{627}\u{644}\u{644}\u{647}\u{20}\u{639}\u{644}\u{64A}\u{647}\u{20}\u{648}\u{633}\u{644}\u{645}", "\u{FDFB}" => "\u{62C}\u{644}\u{20}\u{62C}\u{644}\u{627}\u{644}\u{647}", "\u{FDFC}" => "\u{631}\u{6CC}\u{627}\u{644}", + "\u{FE00}" => "", "\u{FE01}" => "", "\u{FE02}" => "", "\u{FE03}" => "", + "\u{FE04}" => "", "\u{FE05}" => "", "\u{FE06}" => "", "\u{FE07}" => "", + "\u{FE08}" => "", "\u{FE09}" => "", "\u{FE0A}" => "", "\u{FE0B}" => "", + "\u{FE0C}" => "", "\u{FE0D}" => "", "\u{FE0E}" => "", "\u{FE0F}" => "", + "\u{FE10}" => "\u{2C}", "\u{FE11}" => "\u{3001}", "\u{FE13}" => "\u{3A}", "\u{FE14}" => "\u{3B}", + "\u{FE15}" => "\u{21}", "\u{FE16}" => "\u{3F}", "\u{FE17}" => "\u{3016}", "\u{FE18}" => "\u{3017}", + "\u{FE31}" => "\u{2014}", "\u{FE32}" => "\u{2013}", "\u{FE33}" => "\u{5F}", "\u{FE34}" => "\u{5F}", + "\u{FE35}" => "\u{28}", "\u{FE36}" => "\u{29}", "\u{FE37}" => "\u{7B}", "\u{FE38}" => "\u{7D}", + "\u{FE39}" => "\u{3014}", "\u{FE3A}" => "\u{3015}", "\u{FE3B}" => "\u{3010}", "\u{FE3C}" => "\u{3011}", + "\u{FE3D}" => "\u{300A}", "\u{FE3E}" => "\u{300B}", "\u{FE3F}" => "\u{3008}", "\u{FE40}" => "\u{3009}", + "\u{FE41}" => "\u{300C}", "\u{FE42}" => "\u{300D}", "\u{FE43}" => "\u{300E}", "\u{FE44}" => "\u{300F}", + "\u{FE47}" => "\u{5B}", "\u{FE48}" => "\u{5D}", "\u{FE49}" => "\u{20}\u{305}", "\u{FE4A}" => "\u{20}\u{305}", + "\u{FE4B}" => "\u{20}\u{305}", "\u{FE4C}" => "\u{20}\u{305}", "\u{FE4D}" => "\u{5F}", "\u{FE4E}" => "\u{5F}", + "\u{FE4F}" => "\u{5F}", "\u{FE50}" => "\u{2C}", "\u{FE51}" => "\u{3001}", "\u{FE54}" => "\u{3B}", + "\u{FE55}" => "\u{3A}", "\u{FE56}" => "\u{3F}", "\u{FE57}" => "\u{21}", "\u{FE58}" => "\u{2014}", + "\u{FE59}" => "\u{28}", "\u{FE5A}" => "\u{29}", "\u{FE5B}" => "\u{7B}", "\u{FE5C}" => "\u{7D}", + "\u{FE5D}" => "\u{3014}", "\u{FE5E}" => "\u{3015}", "\u{FE5F}" => "\u{23}", "\u{FE60}" => "\u{26}", + "\u{FE61}" => "\u{2A}", "\u{FE62}" => "\u{2B}", "\u{FE63}" => "\u{2D}", "\u{FE64}" => "\u{3C}", + "\u{FE65}" => "\u{3E}", "\u{FE66}" => "\u{3D}", "\u{FE68}" => "\u{5C}", "\u{FE69}" => "\u{24}", + "\u{FE6A}" => "\u{25}", "\u{FE6B}" => "\u{40}", "\u{FE70}" => "\u{20}\u{64B}", "\u{FE71}" => "\u{640}\u{64B}", + "\u{FE72}" => "\u{20}\u{64C}", "\u{FE74}" => "\u{20}\u{64D}", "\u{FE76}" => "\u{20}\u{64E}", "\u{FE77}" => "\u{640}\u{64E}", + "\u{FE78}" => "\u{20}\u{64F}", "\u{FE79}" => "\u{640}\u{64F}", "\u{FE7A}" => "\u{20}\u{650}", "\u{FE7B}" => "\u{640}\u{650}", + "\u{FE7C}" => "\u{20}\u{651}", "\u{FE7D}" => "\u{640}\u{651}", "\u{FE7E}" => "\u{20}\u{652}", "\u{FE7F}" => "\u{640}\u{652}", + "\u{FE80}" => "\u{621}", "\u{FE81}" => "\u{622}", "\u{FE82}" => "\u{622}", "\u{FE83}" => "\u{623}", + "\u{FE84}" => "\u{623}", "\u{FE85}" => "\u{624}", "\u{FE86}" => "\u{624}", "\u{FE87}" => "\u{625}", + "\u{FE88}" => "\u{625}", "\u{FE89}" => "\u{626}", "\u{FE8A}" => "\u{626}", "\u{FE8B}" => "\u{626}", + "\u{FE8C}" => "\u{626}", "\u{FE8D}" => "\u{627}", "\u{FE8E}" => "\u{627}", "\u{FE8F}" => "\u{628}", + "\u{FE90}" => "\u{628}", "\u{FE91}" => "\u{628}", "\u{FE92}" => "\u{628}", "\u{FE93}" => "\u{629}", + "\u{FE94}" => "\u{629}", "\u{FE95}" => "\u{62A}", "\u{FE96}" => "\u{62A}", "\u{FE97}" => "\u{62A}", + "\u{FE98}" => "\u{62A}", "\u{FE99}" => "\u{62B}", "\u{FE9A}" => "\u{62B}", "\u{FE9B}" => "\u{62B}", + "\u{FE9C}" => "\u{62B}", "\u{FE9D}" => "\u{62C}", "\u{FE9E}" => "\u{62C}", "\u{FE9F}" => "\u{62C}", + "\u{FEA0}" => "\u{62C}", "\u{FEA1}" => "\u{62D}", "\u{FEA2}" => "\u{62D}", "\u{FEA3}" => "\u{62D}", + "\u{FEA4}" => "\u{62D}", "\u{FEA5}" => "\u{62E}", "\u{FEA6}" => "\u{62E}", "\u{FEA7}" => "\u{62E}", + "\u{FEA8}" => "\u{62E}", "\u{FEA9}" => "\u{62F}", "\u{FEAA}" => "\u{62F}", "\u{FEAB}" => "\u{630}", + "\u{FEAC}" => "\u{630}", "\u{FEAD}" => "\u{631}", "\u{FEAE}" => "\u{631}", "\u{FEAF}" => "\u{632}", + "\u{FEB0}" => "\u{632}", "\u{FEB1}" => "\u{633}", "\u{FEB2}" => "\u{633}", "\u{FEB3}" => "\u{633}", + "\u{FEB4}" => "\u{633}", "\u{FEB5}" => "\u{634}", "\u{FEB6}" => "\u{634}", "\u{FEB7}" => "\u{634}", + "\u{FEB8}" => "\u{634}", "\u{FEB9}" => "\u{635}", "\u{FEBA}" => "\u{635}", "\u{FEBB}" => "\u{635}", + "\u{FEBC}" => "\u{635}", "\u{FEBD}" => "\u{636}", "\u{FEBE}" => "\u{636}", "\u{FEBF}" => "\u{636}", + "\u{FEC0}" => "\u{636}", "\u{FEC1}" => "\u{637}", "\u{FEC2}" => "\u{637}", "\u{FEC3}" => "\u{637}", + "\u{FEC4}" => "\u{637}", "\u{FEC5}" => "\u{638}", "\u{FEC6}" => "\u{638}", "\u{FEC7}" => "\u{638}", + "\u{FEC8}" => "\u{638}", "\u{FEC9}" => "\u{639}", "\u{FECA}" => "\u{639}", "\u{FECB}" => "\u{639}", + "\u{FECC}" => "\u{639}", "\u{FECD}" => "\u{63A}", "\u{FECE}" => "\u{63A}", "\u{FECF}" => "\u{63A}", + "\u{FED0}" => "\u{63A}", "\u{FED1}" => "\u{641}", "\u{FED2}" => "\u{641}", "\u{FED3}" => "\u{641}", + "\u{FED4}" => "\u{641}", "\u{FED5}" => "\u{642}", "\u{FED6}" => "\u{642}", "\u{FED7}" => "\u{642}", + "\u{FED8}" => "\u{642}", "\u{FED9}" => "\u{643}", "\u{FEDA}" => "\u{643}", "\u{FEDB}" => "\u{643}", + "\u{FEDC}" => "\u{643}", "\u{FEDD}" => "\u{644}", "\u{FEDE}" => "\u{644}", "\u{FEDF}" => "\u{644}", + "\u{FEE0}" => "\u{644}", "\u{FEE1}" => "\u{645}", "\u{FEE2}" => "\u{645}", "\u{FEE3}" => "\u{645}", + "\u{FEE4}" => "\u{645}", "\u{FEE5}" => "\u{646}", "\u{FEE6}" => "\u{646}", "\u{FEE7}" => "\u{646}", + "\u{FEE8}" => "\u{646}", "\u{FEE9}" => "\u{647}", "\u{FEEA}" => "\u{647}", "\u{FEEB}" => "\u{647}", + "\u{FEEC}" => "\u{647}", "\u{FEED}" => "\u{648}", "\u{FEEE}" => "\u{648}", "\u{FEEF}" => "\u{649}", + "\u{FEF0}" => "\u{649}", "\u{FEF1}" => "\u{64A}", "\u{FEF2}" => "\u{64A}", "\u{FEF3}" => "\u{64A}", + "\u{FEF4}" => "\u{64A}", "\u{FEF5}" => "\u{644}\u{622}", "\u{FEF6}" => "\u{644}\u{622}", "\u{FEF7}" => "\u{644}\u{623}", + "\u{FEF8}" => "\u{644}\u{623}", "\u{FEF9}" => "\u{644}\u{625}", "\u{FEFA}" => "\u{644}\u{625}", "\u{FEFB}" => "\u{644}\u{627}", + "\u{FEFC}" => "\u{644}\u{627}", "\u{FEFF}" => "", "\u{FF01}" => "\u{21}", "\u{FF02}" => "\u{22}", + "\u{FF03}" => "\u{23}", "\u{FF04}" => "\u{24}", "\u{FF05}" => "\u{25}", "\u{FF06}" => "\u{26}", + "\u{FF07}" => "\u{27}", "\u{FF08}" => "\u{28}", "\u{FF09}" => "\u{29}", "\u{FF0A}" => "\u{2A}", + "\u{FF0B}" => "\u{2B}", "\u{FF0C}" => "\u{2C}", "\u{FF0D}" => "\u{2D}", "\u{FF0E}" => "\u{2E}", + "\u{FF0F}" => "\u{2F}", "\u{FF10}" => "\u{30}", "\u{FF11}" => "\u{31}", "\u{FF12}" => "\u{32}", + "\u{FF13}" => "\u{33}", "\u{FF14}" => "\u{34}", "\u{FF15}" => "\u{35}", "\u{FF16}" => "\u{36}", + "\u{FF17}" => "\u{37}", "\u{FF18}" => "\u{38}", "\u{FF19}" => "\u{39}", "\u{FF1A}" => "\u{3A}", + "\u{FF1B}" => "\u{3B}", "\u{FF1C}" => "\u{3C}", "\u{FF1D}" => "\u{3D}", "\u{FF1E}" => "\u{3E}", + "\u{FF1F}" => "\u{3F}", "\u{FF20}" => "\u{40}", "\u{FF21}" => "\u{61}", "\u{FF22}" => "\u{62}", + "\u{FF23}" => "\u{63}", "\u{FF24}" => "\u{64}", "\u{FF25}" => "\u{65}", "\u{FF26}" => "\u{66}", + "\u{FF27}" => "\u{67}", "\u{FF28}" => "\u{68}", "\u{FF29}" => "\u{69}", "\u{FF2A}" => "\u{6A}", + "\u{FF2B}" => "\u{6B}", "\u{FF2C}" => "\u{6C}", "\u{FF2D}" => "\u{6D}", "\u{FF2E}" => "\u{6E}", + "\u{FF2F}" => "\u{6F}", "\u{FF30}" => "\u{70}", "\u{FF31}" => "\u{71}", "\u{FF32}" => "\u{72}", + "\u{FF33}" => "\u{73}", "\u{FF34}" => "\u{74}", "\u{FF35}" => "\u{75}", "\u{FF36}" => "\u{76}", + "\u{FF37}" => "\u{77}", "\u{FF38}" => "\u{78}", "\u{FF39}" => "\u{79}", "\u{FF3A}" => "\u{7A}", + "\u{FF3B}" => "\u{5B}", "\u{FF3C}" => "\u{5C}", "\u{FF3D}" => "\u{5D}", "\u{FF3E}" => "\u{5E}", + "\u{FF3F}" => "\u{5F}", "\u{FF40}" => "\u{60}", "\u{FF41}" => "\u{61}", "\u{FF42}" => "\u{62}", + "\u{FF43}" => "\u{63}", "\u{FF44}" => "\u{64}", "\u{FF45}" => "\u{65}", "\u{FF46}" => "\u{66}", + "\u{FF47}" => "\u{67}", "\u{FF48}" => "\u{68}", "\u{FF49}" => "\u{69}", "\u{FF4A}" => "\u{6A}", + "\u{FF4B}" => "\u{6B}", "\u{FF4C}" => "\u{6C}", "\u{FF4D}" => "\u{6D}", "\u{FF4E}" => "\u{6E}", + "\u{FF4F}" => "\u{6F}", "\u{FF50}" => "\u{70}", "\u{FF51}" => "\u{71}", "\u{FF52}" => "\u{72}", + "\u{FF53}" => "\u{73}", "\u{FF54}" => "\u{74}", "\u{FF55}" => "\u{75}", "\u{FF56}" => "\u{76}", + "\u{FF57}" => "\u{77}", "\u{FF58}" => "\u{78}", "\u{FF59}" => "\u{79}", "\u{FF5A}" => "\u{7A}", + "\u{FF5B}" => "\u{7B}", "\u{FF5C}" => "\u{7C}", "\u{FF5D}" => "\u{7D}", "\u{FF5E}" => "\u{7E}", + "\u{FF5F}" => "\u{2985}", "\u{FF60}" => "\u{2986}", "\u{FF61}" => "\u{2E}", "\u{FF62}" => "\u{300C}", + "\u{FF63}" => "\u{300D}", "\u{FF64}" => "\u{3001}", "\u{FF65}" => "\u{30FB}", "\u{FF66}" => "\u{30F2}", + "\u{FF67}" => "\u{30A1}", "\u{FF68}" => "\u{30A3}", "\u{FF69}" => "\u{30A5}", "\u{FF6A}" => "\u{30A7}", + "\u{FF6B}" => "\u{30A9}", "\u{FF6C}" => "\u{30E3}", "\u{FF6D}" => "\u{30E5}", "\u{FF6E}" => "\u{30E7}", + "\u{FF6F}" => "\u{30C3}", "\u{FF70}" => "\u{30FC}", "\u{FF71}" => "\u{30A2}", "\u{FF72}" => "\u{30A4}", + "\u{FF73}" => "\u{30A6}", "\u{FF74}" => "\u{30A8}", "\u{FF75}" => "\u{30AA}", "\u{FF76}" => "\u{30AB}", + "\u{FF77}" => "\u{30AD}", "\u{FF78}" => "\u{30AF}", "\u{FF79}" => "\u{30B1}", "\u{FF7A}" => "\u{30B3}", + "\u{FF7B}" => "\u{30B5}", "\u{FF7C}" => "\u{30B7}", "\u{FF7D}" => "\u{30B9}", "\u{FF7E}" => "\u{30BB}", + "\u{FF7F}" => "\u{30BD}", "\u{FF80}" => "\u{30BF}", "\u{FF81}" => "\u{30C1}", "\u{FF82}" => "\u{30C4}", + "\u{FF83}" => "\u{30C6}", "\u{FF84}" => "\u{30C8}", "\u{FF85}" => "\u{30CA}", "\u{FF86}" => "\u{30CB}", + "\u{FF87}" => "\u{30CC}", "\u{FF88}" => "\u{30CD}", "\u{FF89}" => "\u{30CE}", "\u{FF8A}" => "\u{30CF}", + "\u{FF8B}" => "\u{30D2}", "\u{FF8C}" => "\u{30D5}", "\u{FF8D}" => "\u{30D8}", "\u{FF8E}" => "\u{30DB}", + "\u{FF8F}" => "\u{30DE}", "\u{FF90}" => "\u{30DF}", "\u{FF91}" => "\u{30E0}", "\u{FF92}" => "\u{30E1}", + "\u{FF93}" => "\u{30E2}", "\u{FF94}" => "\u{30E4}", "\u{FF95}" => "\u{30E6}", "\u{FF96}" => "\u{30E8}", + "\u{FF97}" => "\u{30E9}", "\u{FF98}" => "\u{30EA}", "\u{FF99}" => "\u{30EB}", "\u{FF9A}" => "\u{30EC}", + "\u{FF9B}" => "\u{30ED}", "\u{FF9C}" => "\u{30EF}", "\u{FF9D}" => "\u{30F3}", "\u{FF9E}" => "\u{3099}", + "\u{FF9F}" => "\u{309A}", "\u{FFA0}" => "", "\u{FFA1}" => "\u{1100}", "\u{FFA2}" => "\u{1101}", + "\u{FFA3}" => "\u{11AA}", "\u{FFA4}" => "\u{1102}", "\u{FFA5}" => "\u{11AC}", "\u{FFA6}" => "\u{11AD}", + "\u{FFA7}" => "\u{1103}", "\u{FFA8}" => "\u{1104}", "\u{FFA9}" => "\u{1105}", "\u{FFAA}" => "\u{11B0}", + "\u{FFAB}" => "\u{11B1}", "\u{FFAC}" => "\u{11B2}", "\u{FFAD}" => "\u{11B3}", "\u{FFAE}" => "\u{11B4}", + "\u{FFAF}" => "\u{11B5}", "\u{FFB0}" => "\u{111A}", "\u{FFB1}" => "\u{1106}", "\u{FFB2}" => "\u{1107}", + "\u{FFB3}" => "\u{1108}", "\u{FFB4}" => "\u{1121}", "\u{FFB5}" => "\u{1109}", "\u{FFB6}" => "\u{110A}", + "\u{FFB7}" => "\u{110B}", "\u{FFB8}" => "\u{110C}", "\u{FFB9}" => "\u{110D}", "\u{FFBA}" => "\u{110E}", + "\u{FFBB}" => "\u{110F}", "\u{FFBC}" => "\u{1110}", "\u{FFBD}" => "\u{1111}", "\u{FFBE}" => "\u{1112}", + "\u{FFC2}" => "\u{1161}", "\u{FFC3}" => "\u{1162}", "\u{FFC4}" => "\u{1163}", "\u{FFC5}" => "\u{1164}", + "\u{FFC6}" => "\u{1165}", "\u{FFC7}" => "\u{1166}", "\u{FFCA}" => "\u{1167}", "\u{FFCB}" => "\u{1168}", + "\u{FFCC}" => "\u{1169}", "\u{FFCD}" => "\u{116A}", "\u{FFCE}" => "\u{116B}", "\u{FFCF}" => "\u{116C}", + "\u{FFD2}" => "\u{116D}", "\u{FFD3}" => "\u{116E}", "\u{FFD4}" => "\u{116F}", "\u{FFD5}" => "\u{1170}", + "\u{FFD6}" => "\u{1171}", "\u{FFD7}" => "\u{1172}", "\u{FFDA}" => "\u{1173}", "\u{FFDB}" => "\u{1174}", + "\u{FFDC}" => "\u{1175}", "\u{FFE0}" => "\u{A2}", "\u{FFE1}" => "\u{A3}", "\u{FFE2}" => "\u{AC}", + "\u{FFE3}" => "\u{20}\u{304}", "\u{FFE4}" => "\u{A6}", "\u{FFE5}" => "\u{A5}", "\u{FFE6}" => "\u{20A9}", + "\u{FFE8}" => "\u{2502}", "\u{FFE9}" => "\u{2190}", "\u{FFEA}" => "\u{2191}", "\u{FFEB}" => "\u{2192}", + "\u{FFEC}" => "\u{2193}", "\u{FFED}" => "\u{25A0}", "\u{FFEE}" => "\u{25CB}", "\u{10400}" => "\u{10428}", + "\u{10401}" => "\u{10429}", "\u{10402}" => "\u{1042A}", "\u{10403}" => "\u{1042B}", "\u{10404}" => "\u{1042C}", + "\u{10405}" => "\u{1042D}", "\u{10406}" => "\u{1042E}", "\u{10407}" => "\u{1042F}", "\u{10408}" => "\u{10430}", + "\u{10409}" => "\u{10431}", "\u{1040A}" => "\u{10432}", "\u{1040B}" => "\u{10433}", "\u{1040C}" => "\u{10434}", + "\u{1040D}" => "\u{10435}", "\u{1040E}" => "\u{10436}", "\u{1040F}" => "\u{10437}", "\u{10410}" => "\u{10438}", + "\u{10411}" => "\u{10439}", "\u{10412}" => "\u{1043A}", "\u{10413}" => "\u{1043B}", "\u{10414}" => "\u{1043C}", + "\u{10415}" => "\u{1043D}", "\u{10416}" => "\u{1043E}", "\u{10417}" => "\u{1043F}", "\u{10418}" => "\u{10440}", + "\u{10419}" => "\u{10441}", "\u{1041A}" => "\u{10442}", "\u{1041B}" => "\u{10443}", "\u{1041C}" => "\u{10444}", + "\u{1041D}" => "\u{10445}", "\u{1041E}" => "\u{10446}", "\u{1041F}" => "\u{10447}", "\u{10420}" => "\u{10448}", + "\u{10421}" => "\u{10449}", "\u{10422}" => "\u{1044A}", "\u{10423}" => "\u{1044B}", "\u{10424}" => "\u{1044C}", + "\u{10425}" => "\u{1044D}", "\u{10426}" => "\u{1044E}", "\u{10427}" => "\u{1044F}", "\u{104B0}" => "\u{104D8}", + "\u{104B1}" => "\u{104D9}", "\u{104B2}" => "\u{104DA}", "\u{104B3}" => "\u{104DB}", "\u{104B4}" => "\u{104DC}", + "\u{104B5}" => "\u{104DD}", "\u{104B6}" => "\u{104DE}", "\u{104B7}" => "\u{104DF}", "\u{104B8}" => "\u{104E0}", + "\u{104B9}" => "\u{104E1}", "\u{104BA}" => "\u{104E2}", "\u{104BB}" => "\u{104E3}", "\u{104BC}" => "\u{104E4}", + "\u{104BD}" => "\u{104E5}", "\u{104BE}" => "\u{104E6}", "\u{104BF}" => "\u{104E7}", "\u{104C0}" => "\u{104E8}", + "\u{104C1}" => "\u{104E9}", "\u{104C2}" => "\u{104EA}", "\u{104C3}" => "\u{104EB}", "\u{104C4}" => "\u{104EC}", + "\u{104C5}" => "\u{104ED}", "\u{104C6}" => "\u{104EE}", "\u{104C7}" => "\u{104EF}", "\u{104C8}" => "\u{104F0}", + "\u{104C9}" => "\u{104F1}", "\u{104CA}" => "\u{104F2}", "\u{104CB}" => "\u{104F3}", "\u{104CC}" => "\u{104F4}", + "\u{104CD}" => "\u{104F5}", "\u{104CE}" => "\u{104F6}", "\u{104CF}" => "\u{104F7}", "\u{104D0}" => "\u{104F8}", + "\u{104D1}" => "\u{104F9}", "\u{104D2}" => "\u{104FA}", "\u{104D3}" => "\u{104FB}", "\u{10570}" => "\u{10597}", + "\u{10571}" => "\u{10598}", "\u{10572}" => "\u{10599}", "\u{10573}" => "\u{1059A}", "\u{10574}" => "\u{1059B}", + "\u{10575}" => "\u{1059C}", "\u{10576}" => "\u{1059D}", "\u{10577}" => "\u{1059E}", "\u{10578}" => "\u{1059F}", + "\u{10579}" => "\u{105A0}", "\u{1057A}" => "\u{105A1}", "\u{1057C}" => "\u{105A3}", "\u{1057D}" => "\u{105A4}", + "\u{1057E}" => "\u{105A5}", "\u{1057F}" => "\u{105A6}", "\u{10580}" => "\u{105A7}", "\u{10581}" => "\u{105A8}", + "\u{10582}" => "\u{105A9}", "\u{10583}" => "\u{105AA}", "\u{10584}" => "\u{105AB}", "\u{10585}" => "\u{105AC}", + "\u{10586}" => "\u{105AD}", "\u{10587}" => "\u{105AE}", "\u{10588}" => "\u{105AF}", "\u{10589}" => "\u{105B0}", + "\u{1058A}" => "\u{105B1}", "\u{1058C}" => "\u{105B3}", "\u{1058D}" => "\u{105B4}", "\u{1058E}" => "\u{105B5}", + "\u{1058F}" => "\u{105B6}", "\u{10590}" => "\u{105B7}", "\u{10591}" => "\u{105B8}", "\u{10592}" => "\u{105B9}", + "\u{10594}" => "\u{105BB}", "\u{10595}" => "\u{105BC}", "\u{10781}" => "\u{2D0}", "\u{10782}" => "\u{2D1}", + "\u{10783}" => "\u{E6}", "\u{10784}" => "\u{299}", "\u{10785}" => "\u{253}", "\u{10787}" => "\u{2A3}", + "\u{10788}" => "\u{AB66}", "\u{10789}" => "\u{2A5}", "\u{1078A}" => "\u{2A4}", "\u{1078B}" => "\u{256}", + "\u{1078C}" => "\u{257}", "\u{1078D}" => "\u{1D91}", "\u{1078E}" => "\u{258}", "\u{1078F}" => "\u{25E}", + "\u{10790}" => "\u{2A9}", "\u{10791}" => "\u{264}", "\u{10792}" => "\u{262}", "\u{10793}" => "\u{260}", + "\u{10794}" => "\u{29B}", "\u{10795}" => "\u{127}", "\u{10796}" => "\u{29C}", "\u{10797}" => "\u{267}", + "\u{10798}" => "\u{284}", "\u{10799}" => "\u{2AA}", "\u{1079A}" => "\u{2AB}", "\u{1079B}" => "\u{26C}", + "\u{1079C}" => "\u{1DF04}", "\u{1079D}" => "\u{A78E}", "\u{1079E}" => "\u{26E}", "\u{1079F}" => "\u{1DF05}", + "\u{107A0}" => "\u{28E}", "\u{107A1}" => "\u{1DF06}", "\u{107A2}" => "\u{F8}", "\u{107A3}" => "\u{276}", + "\u{107A4}" => "\u{277}", "\u{107A5}" => "\u{71}", "\u{107A6}" => "\u{27A}", "\u{107A7}" => "\u{1DF08}", + "\u{107A8}" => "\u{27D}", "\u{107A9}" => "\u{27E}", "\u{107AA}" => "\u{280}", "\u{107AB}" => "\u{2A8}", + "\u{107AC}" => "\u{2A6}", "\u{107AD}" => "\u{AB67}", "\u{107AE}" => "\u{2A7}", "\u{107AF}" => "\u{288}", + "\u{107B0}" => "\u{2C71}", "\u{107B2}" => "\u{28F}", "\u{107B3}" => "\u{2A1}", "\u{107B4}" => "\u{2A2}", + "\u{107B5}" => "\u{298}", "\u{107B6}" => "\u{1C0}", "\u{107B7}" => "\u{1C1}", "\u{107B8}" => "\u{1C2}", + "\u{107B9}" => "\u{1DF0A}", "\u{107BA}" => "\u{1DF1E}", "\u{107BB}" => "\u{287}", "\u{107BC}" => "\u{296}", + "\u{107BD}" => "\u{297}", "\u{107BE}" => "\u{29E}", "\u{107BF}" => "\u{1DF0B}", "\u{10C80}" => "\u{10CC0}", + "\u{10C81}" => "\u{10CC1}", "\u{10C82}" => "\u{10CC2}", "\u{10C83}" => "\u{10CC3}", "\u{10C84}" => "\u{10CC4}", + "\u{10C85}" => "\u{10CC5}", "\u{10C86}" => "\u{10CC6}", "\u{10C87}" => "\u{10CC7}", "\u{10C88}" => "\u{10CC8}", + "\u{10C89}" => "\u{10CC9}", "\u{10C8A}" => "\u{10CCA}", "\u{10C8B}" => "\u{10CCB}", "\u{10C8C}" => "\u{10CCC}", + "\u{10C8D}" => "\u{10CCD}", "\u{10C8E}" => "\u{10CCE}", "\u{10C8F}" => "\u{10CCF}", "\u{10C90}" => "\u{10CD0}", + "\u{10C91}" => "\u{10CD1}", "\u{10C92}" => "\u{10CD2}", "\u{10C93}" => "\u{10CD3}", "\u{10C94}" => "\u{10CD4}", + "\u{10C95}" => "\u{10CD5}", "\u{10C96}" => "\u{10CD6}", "\u{10C97}" => "\u{10CD7}", "\u{10C98}" => "\u{10CD8}", + "\u{10C99}" => "\u{10CD9}", "\u{10C9A}" => "\u{10CDA}", "\u{10C9B}" => "\u{10CDB}", "\u{10C9C}" => "\u{10CDC}", + "\u{10C9D}" => "\u{10CDD}", "\u{10C9E}" => "\u{10CDE}", "\u{10C9F}" => "\u{10CDF}", "\u{10CA0}" => "\u{10CE0}", + "\u{10CA1}" => "\u{10CE1}", "\u{10CA2}" => "\u{10CE2}", "\u{10CA3}" => "\u{10CE3}", "\u{10CA4}" => "\u{10CE4}", + "\u{10CA5}" => "\u{10CE5}", "\u{10CA6}" => "\u{10CE6}", "\u{10CA7}" => "\u{10CE7}", "\u{10CA8}" => "\u{10CE8}", + "\u{10CA9}" => "\u{10CE9}", "\u{10CAA}" => "\u{10CEA}", "\u{10CAB}" => "\u{10CEB}", "\u{10CAC}" => "\u{10CEC}", + "\u{10CAD}" => "\u{10CED}", "\u{10CAE}" => "\u{10CEE}", "\u{10CAF}" => "\u{10CEF}", "\u{10CB0}" => "\u{10CF0}", + "\u{10CB1}" => "\u{10CF1}", "\u{10CB2}" => "\u{10CF2}", "\u{10D50}" => "\u{10D70}", "\u{10D51}" => "\u{10D71}", + "\u{10D52}" => "\u{10D72}", "\u{10D53}" => "\u{10D73}", "\u{10D54}" => "\u{10D74}", "\u{10D55}" => "\u{10D75}", + "\u{10D56}" => "\u{10D76}", "\u{10D57}" => "\u{10D77}", "\u{10D58}" => "\u{10D78}", "\u{10D59}" => "\u{10D79}", + "\u{10D5A}" => "\u{10D7A}", "\u{10D5B}" => "\u{10D7B}", "\u{10D5C}" => "\u{10D7C}", "\u{10D5D}" => "\u{10D7D}", + "\u{10D5E}" => "\u{10D7E}", "\u{10D5F}" => "\u{10D7F}", "\u{10D60}" => "\u{10D80}", "\u{10D61}" => "\u{10D81}", + "\u{10D62}" => "\u{10D82}", "\u{10D63}" => "\u{10D83}", "\u{10D64}" => "\u{10D84}", "\u{10D65}" => "\u{10D85}", + "\u{118A0}" => "\u{118C0}", "\u{118A1}" => "\u{118C1}", "\u{118A2}" => "\u{118C2}", "\u{118A3}" => "\u{118C3}", + "\u{118A4}" => "\u{118C4}", "\u{118A5}" => "\u{118C5}", "\u{118A6}" => "\u{118C6}", "\u{118A7}" => "\u{118C7}", + "\u{118A8}" => "\u{118C8}", "\u{118A9}" => "\u{118C9}", "\u{118AA}" => "\u{118CA}", "\u{118AB}" => "\u{118CB}", + "\u{118AC}" => "\u{118CC}", "\u{118AD}" => "\u{118CD}", "\u{118AE}" => "\u{118CE}", "\u{118AF}" => "\u{118CF}", + "\u{118B0}" => "\u{118D0}", "\u{118B1}" => "\u{118D1}", "\u{118B2}" => "\u{118D2}", "\u{118B3}" => "\u{118D3}", + "\u{118B4}" => "\u{118D4}", "\u{118B5}" => "\u{118D5}", "\u{118B6}" => "\u{118D6}", "\u{118B7}" => "\u{118D7}", + "\u{118B8}" => "\u{118D8}", "\u{118B9}" => "\u{118D9}", "\u{118BA}" => "\u{118DA}", "\u{118BB}" => "\u{118DB}", + "\u{118BC}" => "\u{118DC}", "\u{118BD}" => "\u{118DD}", "\u{118BE}" => "\u{118DE}", "\u{118BF}" => "\u{118DF}", + "\u{16E40}" => "\u{16E60}", "\u{16E41}" => "\u{16E61}", "\u{16E42}" => "\u{16E62}", "\u{16E43}" => "\u{16E63}", + "\u{16E44}" => "\u{16E64}", "\u{16E45}" => "\u{16E65}", "\u{16E46}" => "\u{16E66}", "\u{16E47}" => "\u{16E67}", + "\u{16E48}" => "\u{16E68}", "\u{16E49}" => "\u{16E69}", "\u{16E4A}" => "\u{16E6A}", "\u{16E4B}" => "\u{16E6B}", + "\u{16E4C}" => "\u{16E6C}", "\u{16E4D}" => "\u{16E6D}", "\u{16E4E}" => "\u{16E6E}", "\u{16E4F}" => "\u{16E6F}", + "\u{16E50}" => "\u{16E70}", "\u{16E51}" => "\u{16E71}", "\u{16E52}" => "\u{16E72}", "\u{16E53}" => "\u{16E73}", + "\u{16E54}" => "\u{16E74}", "\u{16E55}" => "\u{16E75}", "\u{16E56}" => "\u{16E76}", "\u{16E57}" => "\u{16E77}", + "\u{16E58}" => "\u{16E78}", "\u{16E59}" => "\u{16E79}", "\u{16E5A}" => "\u{16E7A}", "\u{16E5B}" => "\u{16E7B}", + "\u{16E5C}" => "\u{16E7C}", "\u{16E5D}" => "\u{16E7D}", "\u{16E5E}" => "\u{16E7E}", "\u{16E5F}" => "\u{16E7F}", + "\u{16EA0}" => "\u{16EBB}", "\u{16EA1}" => "\u{16EBC}", "\u{16EA2}" => "\u{16EBD}", "\u{16EA3}" => "\u{16EBE}", + "\u{16EA4}" => "\u{16EBF}", "\u{16EA5}" => "\u{16EC0}", "\u{16EA6}" => "\u{16EC1}", "\u{16EA7}" => "\u{16EC2}", + "\u{16EA8}" => "\u{16EC3}", "\u{16EA9}" => "\u{16EC4}", "\u{16EAA}" => "\u{16EC5}", "\u{16EAB}" => "\u{16EC6}", + "\u{16EAC}" => "\u{16EC7}", "\u{16EAD}" => "\u{16EC8}", "\u{16EAE}" => "\u{16EC9}", "\u{16EAF}" => "\u{16ECA}", + "\u{16EB0}" => "\u{16ECB}", "\u{16EB1}" => "\u{16ECC}", "\u{16EB2}" => "\u{16ECD}", "\u{16EB3}" => "\u{16ECE}", + "\u{16EB4}" => "\u{16ECF}", "\u{16EB5}" => "\u{16ED0}", "\u{16EB6}" => "\u{16ED1}", "\u{16EB7}" => "\u{16ED2}", + "\u{16EB8}" => "\u{16ED3}", "\u{1B123}" => "\u{3053}\u{3068}", "\u{1B124}" => "\u{30C8}\u{30AD}", "\u{1B125}" => "\u{30C8}\u{30C6}", + "\u{1B126}" => "\u{30E8}\u{30EA}", "\u{1BCA0}" => "", "\u{1BCA1}" => "", "\u{1BCA2}" => "", + "\u{1BCA3}" => "", "\u{1CCD6}" => "\u{61}", "\u{1CCD7}" => "\u{62}", "\u{1CCD8}" => "\u{63}", + "\u{1CCD9}" => "\u{64}", "\u{1CCDA}" => "\u{65}", "\u{1CCDB}" => "\u{66}", "\u{1CCDC}" => "\u{67}", + "\u{1CCDD}" => "\u{68}", "\u{1CCDE}" => "\u{69}", "\u{1CCDF}" => "\u{6A}", "\u{1CCE0}" => "\u{6B}", + "\u{1CCE1}" => "\u{6C}", "\u{1CCE2}" => "\u{6D}", "\u{1CCE3}" => "\u{6E}", "\u{1CCE4}" => "\u{6F}", + "\u{1CCE5}" => "\u{70}", "\u{1CCE6}" => "\u{71}", "\u{1CCE7}" => "\u{72}", "\u{1CCE8}" => "\u{73}", + "\u{1CCE9}" => "\u{74}", "\u{1CCEA}" => "\u{75}", "\u{1CCEB}" => "\u{76}", "\u{1CCEC}" => "\u{77}", + "\u{1CCED}" => "\u{78}", "\u{1CCEE}" => "\u{79}", "\u{1CCEF}" => "\u{7A}", "\u{1CCF0}" => "\u{30}", + "\u{1CCF1}" => "\u{31}", "\u{1CCF2}" => "\u{32}", "\u{1CCF3}" => "\u{33}", "\u{1CCF4}" => "\u{34}", + "\u{1CCF5}" => "\u{35}", "\u{1CCF6}" => "\u{36}", "\u{1CCF7}" => "\u{37}", "\u{1CCF8}" => "\u{38}", + "\u{1CCF9}" => "\u{39}", "\u{1D15E}" => "\u{1D157}\u{1D165}", "\u{1D15F}" => "\u{1D158}\u{1D165}", "\u{1D160}" => "\u{1D158}\u{1D165}\u{1D16E}", + "\u{1D161}" => "\u{1D158}\u{1D165}\u{1D16F}", "\u{1D162}" => "\u{1D158}\u{1D165}\u{1D170}", "\u{1D163}" => "\u{1D158}\u{1D165}\u{1D171}", "\u{1D164}" => "\u{1D158}\u{1D165}\u{1D172}", + "\u{1D173}" => "", "\u{1D174}" => "", "\u{1D175}" => "", "\u{1D176}" => "", + "\u{1D177}" => "", "\u{1D178}" => "", "\u{1D179}" => "", "\u{1D17A}" => "", + "\u{1D1BB}" => "\u{1D1B9}\u{1D165}", "\u{1D1BC}" => "\u{1D1BA}\u{1D165}", "\u{1D1BD}" => "\u{1D1B9}\u{1D165}\u{1D16E}", "\u{1D1BE}" => "\u{1D1BA}\u{1D165}\u{1D16E}", + "\u{1D1BF}" => "\u{1D1B9}\u{1D165}\u{1D16F}", "\u{1D1C0}" => "\u{1D1BA}\u{1D165}\u{1D16F}", "\u{1D400}" => "\u{61}", "\u{1D401}" => "\u{62}", + "\u{1D402}" => "\u{63}", "\u{1D403}" => "\u{64}", "\u{1D404}" => "\u{65}", "\u{1D405}" => "\u{66}", + "\u{1D406}" => "\u{67}", "\u{1D407}" => "\u{68}", "\u{1D408}" => "\u{69}", "\u{1D409}" => "\u{6A}", + "\u{1D40A}" => "\u{6B}", "\u{1D40B}" => "\u{6C}", "\u{1D40C}" => "\u{6D}", "\u{1D40D}" => "\u{6E}", + "\u{1D40E}" => "\u{6F}", "\u{1D40F}" => "\u{70}", "\u{1D410}" => "\u{71}", "\u{1D411}" => "\u{72}", + "\u{1D412}" => "\u{73}", "\u{1D413}" => "\u{74}", "\u{1D414}" => "\u{75}", "\u{1D415}" => "\u{76}", + "\u{1D416}" => "\u{77}", "\u{1D417}" => "\u{78}", "\u{1D418}" => "\u{79}", "\u{1D419}" => "\u{7A}", + "\u{1D41A}" => "\u{61}", "\u{1D41B}" => "\u{62}", "\u{1D41C}" => "\u{63}", "\u{1D41D}" => "\u{64}", + "\u{1D41E}" => "\u{65}", "\u{1D41F}" => "\u{66}", "\u{1D420}" => "\u{67}", "\u{1D421}" => "\u{68}", + "\u{1D422}" => "\u{69}", "\u{1D423}" => "\u{6A}", "\u{1D424}" => "\u{6B}", "\u{1D425}" => "\u{6C}", + "\u{1D426}" => "\u{6D}", "\u{1D427}" => "\u{6E}", "\u{1D428}" => "\u{6F}", "\u{1D429}" => "\u{70}", + "\u{1D42A}" => "\u{71}", "\u{1D42B}" => "\u{72}", "\u{1D42C}" => "\u{73}", "\u{1D42D}" => "\u{74}", + "\u{1D42E}" => "\u{75}", "\u{1D42F}" => "\u{76}", "\u{1D430}" => "\u{77}", "\u{1D431}" => "\u{78}", + "\u{1D432}" => "\u{79}", "\u{1D433}" => "\u{7A}", "\u{1D434}" => "\u{61}", "\u{1D435}" => "\u{62}", + "\u{1D436}" => "\u{63}", "\u{1D437}" => "\u{64}", "\u{1D438}" => "\u{65}", "\u{1D439}" => "\u{66}", + "\u{1D43A}" => "\u{67}", "\u{1D43B}" => "\u{68}", "\u{1D43C}" => "\u{69}", "\u{1D43D}" => "\u{6A}", + "\u{1D43E}" => "\u{6B}", "\u{1D43F}" => "\u{6C}", "\u{1D440}" => "\u{6D}", "\u{1D441}" => "\u{6E}", + "\u{1D442}" => "\u{6F}", "\u{1D443}" => "\u{70}", "\u{1D444}" => "\u{71}", "\u{1D445}" => "\u{72}", + "\u{1D446}" => "\u{73}", "\u{1D447}" => "\u{74}", "\u{1D448}" => "\u{75}", "\u{1D449}" => "\u{76}", + "\u{1D44A}" => "\u{77}", "\u{1D44B}" => "\u{78}", "\u{1D44C}" => "\u{79}", "\u{1D44D}" => "\u{7A}", + "\u{1D44E}" => "\u{61}", "\u{1D44F}" => "\u{62}", "\u{1D450}" => "\u{63}", "\u{1D451}" => "\u{64}", + "\u{1D452}" => "\u{65}", "\u{1D453}" => "\u{66}", "\u{1D454}" => "\u{67}", "\u{1D456}" => "\u{69}", + "\u{1D457}" => "\u{6A}", "\u{1D458}" => "\u{6B}", "\u{1D459}" => "\u{6C}", "\u{1D45A}" => "\u{6D}", + "\u{1D45B}" => "\u{6E}", "\u{1D45C}" => "\u{6F}", "\u{1D45D}" => "\u{70}", "\u{1D45E}" => "\u{71}", + "\u{1D45F}" => "\u{72}", "\u{1D460}" => "\u{73}", "\u{1D461}" => "\u{74}", "\u{1D462}" => "\u{75}", + "\u{1D463}" => "\u{76}", "\u{1D464}" => "\u{77}", "\u{1D465}" => "\u{78}", "\u{1D466}" => "\u{79}", + "\u{1D467}" => "\u{7A}", "\u{1D468}" => "\u{61}", "\u{1D469}" => "\u{62}", "\u{1D46A}" => "\u{63}", + "\u{1D46B}" => "\u{64}", "\u{1D46C}" => "\u{65}", "\u{1D46D}" => "\u{66}", "\u{1D46E}" => "\u{67}", + "\u{1D46F}" => "\u{68}", "\u{1D470}" => "\u{69}", "\u{1D471}" => "\u{6A}", "\u{1D472}" => "\u{6B}", + "\u{1D473}" => "\u{6C}", "\u{1D474}" => "\u{6D}", "\u{1D475}" => "\u{6E}", "\u{1D476}" => "\u{6F}", + "\u{1D477}" => "\u{70}", "\u{1D478}" => "\u{71}", "\u{1D479}" => "\u{72}", "\u{1D47A}" => "\u{73}", + "\u{1D47B}" => "\u{74}", "\u{1D47C}" => "\u{75}", "\u{1D47D}" => "\u{76}", "\u{1D47E}" => "\u{77}", + "\u{1D47F}" => "\u{78}", "\u{1D480}" => "\u{79}", "\u{1D481}" => "\u{7A}", "\u{1D482}" => "\u{61}", + "\u{1D483}" => "\u{62}", "\u{1D484}" => "\u{63}", "\u{1D485}" => "\u{64}", "\u{1D486}" => "\u{65}", + "\u{1D487}" => "\u{66}", "\u{1D488}" => "\u{67}", "\u{1D489}" => "\u{68}", "\u{1D48A}" => "\u{69}", + "\u{1D48B}" => "\u{6A}", "\u{1D48C}" => "\u{6B}", "\u{1D48D}" => "\u{6C}", "\u{1D48E}" => "\u{6D}", + "\u{1D48F}" => "\u{6E}", "\u{1D490}" => "\u{6F}", "\u{1D491}" => "\u{70}", "\u{1D492}" => "\u{71}", + "\u{1D493}" => "\u{72}", "\u{1D494}" => "\u{73}", "\u{1D495}" => "\u{74}", "\u{1D496}" => "\u{75}", + "\u{1D497}" => "\u{76}", "\u{1D498}" => "\u{77}", "\u{1D499}" => "\u{78}", "\u{1D49A}" => "\u{79}", + "\u{1D49B}" => "\u{7A}", "\u{1D49C}" => "\u{61}", "\u{1D49E}" => "\u{63}", "\u{1D49F}" => "\u{64}", + "\u{1D4A2}" => "\u{67}", "\u{1D4A5}" => "\u{6A}", "\u{1D4A6}" => "\u{6B}", "\u{1D4A9}" => "\u{6E}", + "\u{1D4AA}" => "\u{6F}", "\u{1D4AB}" => "\u{70}", "\u{1D4AC}" => "\u{71}", "\u{1D4AE}" => "\u{73}", + "\u{1D4AF}" => "\u{74}", "\u{1D4B0}" => "\u{75}", "\u{1D4B1}" => "\u{76}", "\u{1D4B2}" => "\u{77}", + "\u{1D4B3}" => "\u{78}", "\u{1D4B4}" => "\u{79}", "\u{1D4B5}" => "\u{7A}", "\u{1D4B6}" => "\u{61}", + "\u{1D4B7}" => "\u{62}", "\u{1D4B8}" => "\u{63}", "\u{1D4B9}" => "\u{64}", "\u{1D4BB}" => "\u{66}", + "\u{1D4BD}" => "\u{68}", "\u{1D4BE}" => "\u{69}", "\u{1D4BF}" => "\u{6A}", "\u{1D4C0}" => "\u{6B}", + "\u{1D4C1}" => "\u{6C}", "\u{1D4C2}" => "\u{6D}", "\u{1D4C3}" => "\u{6E}", "\u{1D4C5}" => "\u{70}", + "\u{1D4C6}" => "\u{71}", "\u{1D4C7}" => "\u{72}", "\u{1D4C8}" => "\u{73}", "\u{1D4C9}" => "\u{74}", + "\u{1D4CA}" => "\u{75}", "\u{1D4CB}" => "\u{76}", "\u{1D4CC}" => "\u{77}", "\u{1D4CD}" => "\u{78}", + "\u{1D4CE}" => "\u{79}", "\u{1D4CF}" => "\u{7A}", "\u{1D4D0}" => "\u{61}", "\u{1D4D1}" => "\u{62}", + "\u{1D4D2}" => "\u{63}", "\u{1D4D3}" => "\u{64}", "\u{1D4D4}" => "\u{65}", "\u{1D4D5}" => "\u{66}", + "\u{1D4D6}" => "\u{67}", "\u{1D4D7}" => "\u{68}", "\u{1D4D8}" => "\u{69}", "\u{1D4D9}" => "\u{6A}", + "\u{1D4DA}" => "\u{6B}", "\u{1D4DB}" => "\u{6C}", "\u{1D4DC}" => "\u{6D}", "\u{1D4DD}" => "\u{6E}", + "\u{1D4DE}" => "\u{6F}", "\u{1D4DF}" => "\u{70}", "\u{1D4E0}" => "\u{71}", "\u{1D4E1}" => "\u{72}", + "\u{1D4E2}" => "\u{73}", "\u{1D4E3}" => "\u{74}", "\u{1D4E4}" => "\u{75}", "\u{1D4E5}" => "\u{76}", + "\u{1D4E6}" => "\u{77}", "\u{1D4E7}" => "\u{78}", "\u{1D4E8}" => "\u{79}", "\u{1D4E9}" => "\u{7A}", + "\u{1D4EA}" => "\u{61}", "\u{1D4EB}" => "\u{62}", "\u{1D4EC}" => "\u{63}", "\u{1D4ED}" => "\u{64}", + "\u{1D4EE}" => "\u{65}", "\u{1D4EF}" => "\u{66}", "\u{1D4F0}" => "\u{67}", "\u{1D4F1}" => "\u{68}", + "\u{1D4F2}" => "\u{69}", "\u{1D4F3}" => "\u{6A}", "\u{1D4F4}" => "\u{6B}", "\u{1D4F5}" => "\u{6C}", + "\u{1D4F6}" => "\u{6D}", "\u{1D4F7}" => "\u{6E}", "\u{1D4F8}" => "\u{6F}", "\u{1D4F9}" => "\u{70}", + "\u{1D4FA}" => "\u{71}", "\u{1D4FB}" => "\u{72}", "\u{1D4FC}" => "\u{73}", "\u{1D4FD}" => "\u{74}", + "\u{1D4FE}" => "\u{75}", "\u{1D4FF}" => "\u{76}", "\u{1D500}" => "\u{77}", "\u{1D501}" => "\u{78}", + "\u{1D502}" => "\u{79}", "\u{1D503}" => "\u{7A}", "\u{1D504}" => "\u{61}", "\u{1D505}" => "\u{62}", + "\u{1D507}" => "\u{64}", "\u{1D508}" => "\u{65}", "\u{1D509}" => "\u{66}", "\u{1D50A}" => "\u{67}", + "\u{1D50D}" => "\u{6A}", "\u{1D50E}" => "\u{6B}", "\u{1D50F}" => "\u{6C}", "\u{1D510}" => "\u{6D}", + "\u{1D511}" => "\u{6E}", "\u{1D512}" => "\u{6F}", "\u{1D513}" => "\u{70}", "\u{1D514}" => "\u{71}", + "\u{1D516}" => "\u{73}", "\u{1D517}" => "\u{74}", "\u{1D518}" => "\u{75}", "\u{1D519}" => "\u{76}", + "\u{1D51A}" => "\u{77}", "\u{1D51B}" => "\u{78}", "\u{1D51C}" => "\u{79}", "\u{1D51E}" => "\u{61}", + "\u{1D51F}" => "\u{62}", "\u{1D520}" => "\u{63}", "\u{1D521}" => "\u{64}", "\u{1D522}" => "\u{65}", + "\u{1D523}" => "\u{66}", "\u{1D524}" => "\u{67}", "\u{1D525}" => "\u{68}", "\u{1D526}" => "\u{69}", + "\u{1D527}" => "\u{6A}", "\u{1D528}" => "\u{6B}", "\u{1D529}" => "\u{6C}", "\u{1D52A}" => "\u{6D}", + "\u{1D52B}" => "\u{6E}", "\u{1D52C}" => "\u{6F}", "\u{1D52D}" => "\u{70}", "\u{1D52E}" => "\u{71}", + "\u{1D52F}" => "\u{72}", "\u{1D530}" => "\u{73}", "\u{1D531}" => "\u{74}", "\u{1D532}" => "\u{75}", + "\u{1D533}" => "\u{76}", "\u{1D534}" => "\u{77}", "\u{1D535}" => "\u{78}", "\u{1D536}" => "\u{79}", + "\u{1D537}" => "\u{7A}", "\u{1D538}" => "\u{61}", "\u{1D539}" => "\u{62}", "\u{1D53B}" => "\u{64}", + "\u{1D53C}" => "\u{65}", "\u{1D53D}" => "\u{66}", "\u{1D53E}" => "\u{67}", "\u{1D540}" => "\u{69}", + "\u{1D541}" => "\u{6A}", "\u{1D542}" => "\u{6B}", "\u{1D543}" => "\u{6C}", "\u{1D544}" => "\u{6D}", + "\u{1D546}" => "\u{6F}", "\u{1D54A}" => "\u{73}", "\u{1D54B}" => "\u{74}", "\u{1D54C}" => "\u{75}", + "\u{1D54D}" => "\u{76}", "\u{1D54E}" => "\u{77}", "\u{1D54F}" => "\u{78}", "\u{1D550}" => "\u{79}", + "\u{1D552}" => "\u{61}", "\u{1D553}" => "\u{62}", "\u{1D554}" => "\u{63}", "\u{1D555}" => "\u{64}", + "\u{1D556}" => "\u{65}", "\u{1D557}" => "\u{66}", "\u{1D558}" => "\u{67}", "\u{1D559}" => "\u{68}", + "\u{1D55A}" => "\u{69}", "\u{1D55B}" => "\u{6A}", "\u{1D55C}" => "\u{6B}", "\u{1D55D}" => "\u{6C}", + "\u{1D55E}" => "\u{6D}", "\u{1D55F}" => "\u{6E}", "\u{1D560}" => "\u{6F}", "\u{1D561}" => "\u{70}", + "\u{1D562}" => "\u{71}", "\u{1D563}" => "\u{72}", "\u{1D564}" => "\u{73}", "\u{1D565}" => "\u{74}", + "\u{1D566}" => "\u{75}", "\u{1D567}" => "\u{76}", "\u{1D568}" => "\u{77}", "\u{1D569}" => "\u{78}", + "\u{1D56A}" => "\u{79}", "\u{1D56B}" => "\u{7A}", "\u{1D56C}" => "\u{61}", "\u{1D56D}" => "\u{62}", + "\u{1D56E}" => "\u{63}", "\u{1D56F}" => "\u{64}", "\u{1D570}" => "\u{65}", "\u{1D571}" => "\u{66}", + "\u{1D572}" => "\u{67}", "\u{1D573}" => "\u{68}", "\u{1D574}" => "\u{69}", "\u{1D575}" => "\u{6A}", + "\u{1D576}" => "\u{6B}", "\u{1D577}" => "\u{6C}", "\u{1D578}" => "\u{6D}", "\u{1D579}" => "\u{6E}", + "\u{1D57A}" => "\u{6F}", "\u{1D57B}" => "\u{70}", "\u{1D57C}" => "\u{71}", "\u{1D57D}" => "\u{72}", + "\u{1D57E}" => "\u{73}", "\u{1D57F}" => "\u{74}", "\u{1D580}" => "\u{75}", "\u{1D581}" => "\u{76}", + "\u{1D582}" => "\u{77}", "\u{1D583}" => "\u{78}", "\u{1D584}" => "\u{79}", "\u{1D585}" => "\u{7A}", + "\u{1D586}" => "\u{61}", "\u{1D587}" => "\u{62}", "\u{1D588}" => "\u{63}", "\u{1D589}" => "\u{64}", + "\u{1D58A}" => "\u{65}", "\u{1D58B}" => "\u{66}", "\u{1D58C}" => "\u{67}", "\u{1D58D}" => "\u{68}", + "\u{1D58E}" => "\u{69}", "\u{1D58F}" => "\u{6A}", "\u{1D590}" => "\u{6B}", "\u{1D591}" => "\u{6C}", + "\u{1D592}" => "\u{6D}", "\u{1D593}" => "\u{6E}", "\u{1D594}" => "\u{6F}", "\u{1D595}" => "\u{70}", + "\u{1D596}" => "\u{71}", "\u{1D597}" => "\u{72}", "\u{1D598}" => "\u{73}", "\u{1D599}" => "\u{74}", + "\u{1D59A}" => "\u{75}", "\u{1D59B}" => "\u{76}", "\u{1D59C}" => "\u{77}", "\u{1D59D}" => "\u{78}", + "\u{1D59E}" => "\u{79}", "\u{1D59F}" => "\u{7A}", "\u{1D5A0}" => "\u{61}", "\u{1D5A1}" => "\u{62}", + "\u{1D5A2}" => "\u{63}", "\u{1D5A3}" => "\u{64}", "\u{1D5A4}" => "\u{65}", "\u{1D5A5}" => "\u{66}", + "\u{1D5A6}" => "\u{67}", "\u{1D5A7}" => "\u{68}", "\u{1D5A8}" => "\u{69}", "\u{1D5A9}" => "\u{6A}", + "\u{1D5AA}" => "\u{6B}", "\u{1D5AB}" => "\u{6C}", "\u{1D5AC}" => "\u{6D}", "\u{1D5AD}" => "\u{6E}", + "\u{1D5AE}" => "\u{6F}", "\u{1D5AF}" => "\u{70}", "\u{1D5B0}" => "\u{71}", "\u{1D5B1}" => "\u{72}", + "\u{1D5B2}" => "\u{73}", "\u{1D5B3}" => "\u{74}", "\u{1D5B4}" => "\u{75}", "\u{1D5B5}" => "\u{76}", + "\u{1D5B6}" => "\u{77}", "\u{1D5B7}" => "\u{78}", "\u{1D5B8}" => "\u{79}", "\u{1D5B9}" => "\u{7A}", + "\u{1D5BA}" => "\u{61}", "\u{1D5BB}" => "\u{62}", "\u{1D5BC}" => "\u{63}", "\u{1D5BD}" => "\u{64}", + "\u{1D5BE}" => "\u{65}", "\u{1D5BF}" => "\u{66}", "\u{1D5C0}" => "\u{67}", "\u{1D5C1}" => "\u{68}", + "\u{1D5C2}" => "\u{69}", "\u{1D5C3}" => "\u{6A}", "\u{1D5C4}" => "\u{6B}", "\u{1D5C5}" => "\u{6C}", + "\u{1D5C6}" => "\u{6D}", "\u{1D5C7}" => "\u{6E}", "\u{1D5C8}" => "\u{6F}", "\u{1D5C9}" => "\u{70}", + "\u{1D5CA}" => "\u{71}", "\u{1D5CB}" => "\u{72}", "\u{1D5CC}" => "\u{73}", "\u{1D5CD}" => "\u{74}", + "\u{1D5CE}" => "\u{75}", "\u{1D5CF}" => "\u{76}", "\u{1D5D0}" => "\u{77}", "\u{1D5D1}" => "\u{78}", + "\u{1D5D2}" => "\u{79}", "\u{1D5D3}" => "\u{7A}", "\u{1D5D4}" => "\u{61}", "\u{1D5D5}" => "\u{62}", + "\u{1D5D6}" => "\u{63}", "\u{1D5D7}" => "\u{64}", "\u{1D5D8}" => "\u{65}", "\u{1D5D9}" => "\u{66}", + "\u{1D5DA}" => "\u{67}", "\u{1D5DB}" => "\u{68}", "\u{1D5DC}" => "\u{69}", "\u{1D5DD}" => "\u{6A}", + "\u{1D5DE}" => "\u{6B}", "\u{1D5DF}" => "\u{6C}", "\u{1D5E0}" => "\u{6D}", "\u{1D5E1}" => "\u{6E}", + "\u{1D5E2}" => "\u{6F}", "\u{1D5E3}" => "\u{70}", "\u{1D5E4}" => "\u{71}", "\u{1D5E5}" => "\u{72}", + "\u{1D5E6}" => "\u{73}", "\u{1D5E7}" => "\u{74}", "\u{1D5E8}" => "\u{75}", "\u{1D5E9}" => "\u{76}", + "\u{1D5EA}" => "\u{77}", "\u{1D5EB}" => "\u{78}", "\u{1D5EC}" => "\u{79}", "\u{1D5ED}" => "\u{7A}", + "\u{1D5EE}" => "\u{61}", "\u{1D5EF}" => "\u{62}", "\u{1D5F0}" => "\u{63}", "\u{1D5F1}" => "\u{64}", + "\u{1D5F2}" => "\u{65}", "\u{1D5F3}" => "\u{66}", "\u{1D5F4}" => "\u{67}", "\u{1D5F5}" => "\u{68}", + "\u{1D5F6}" => "\u{69}", "\u{1D5F7}" => "\u{6A}", "\u{1D5F8}" => "\u{6B}", "\u{1D5F9}" => "\u{6C}", + "\u{1D5FA}" => "\u{6D}", "\u{1D5FB}" => "\u{6E}", "\u{1D5FC}" => "\u{6F}", "\u{1D5FD}" => "\u{70}", + "\u{1D5FE}" => "\u{71}", "\u{1D5FF}" => "\u{72}", "\u{1D600}" => "\u{73}", "\u{1D601}" => "\u{74}", + "\u{1D602}" => "\u{75}", "\u{1D603}" => "\u{76}", "\u{1D604}" => "\u{77}", "\u{1D605}" => "\u{78}", + "\u{1D606}" => "\u{79}", "\u{1D607}" => "\u{7A}", "\u{1D608}" => "\u{61}", "\u{1D609}" => "\u{62}", + "\u{1D60A}" => "\u{63}", "\u{1D60B}" => "\u{64}", "\u{1D60C}" => "\u{65}", "\u{1D60D}" => "\u{66}", + "\u{1D60E}" => "\u{67}", "\u{1D60F}" => "\u{68}", "\u{1D610}" => "\u{69}", "\u{1D611}" => "\u{6A}", + "\u{1D612}" => "\u{6B}", "\u{1D613}" => "\u{6C}", "\u{1D614}" => "\u{6D}", "\u{1D615}" => "\u{6E}", + "\u{1D616}" => "\u{6F}", "\u{1D617}" => "\u{70}", "\u{1D618}" => "\u{71}", "\u{1D619}" => "\u{72}", + "\u{1D61A}" => "\u{73}", "\u{1D61B}" => "\u{74}", "\u{1D61C}" => "\u{75}", "\u{1D61D}" => "\u{76}", + "\u{1D61E}" => "\u{77}", "\u{1D61F}" => "\u{78}", "\u{1D620}" => "\u{79}", "\u{1D621}" => "\u{7A}", + "\u{1D622}" => "\u{61}", "\u{1D623}" => "\u{62}", "\u{1D624}" => "\u{63}", "\u{1D625}" => "\u{64}", + "\u{1D626}" => "\u{65}", "\u{1D627}" => "\u{66}", "\u{1D628}" => "\u{67}", "\u{1D629}" => "\u{68}", + "\u{1D62A}" => "\u{69}", "\u{1D62B}" => "\u{6A}", "\u{1D62C}" => "\u{6B}", "\u{1D62D}" => "\u{6C}", + "\u{1D62E}" => "\u{6D}", "\u{1D62F}" => "\u{6E}", "\u{1D630}" => "\u{6F}", "\u{1D631}" => "\u{70}", + "\u{1D632}" => "\u{71}", "\u{1D633}" => "\u{72}", "\u{1D634}" => "\u{73}", "\u{1D635}" => "\u{74}", + "\u{1D636}" => "\u{75}", "\u{1D637}" => "\u{76}", "\u{1D638}" => "\u{77}", "\u{1D639}" => "\u{78}", + "\u{1D63A}" => "\u{79}", "\u{1D63B}" => "\u{7A}", "\u{1D63C}" => "\u{61}", "\u{1D63D}" => "\u{62}", + "\u{1D63E}" => "\u{63}", "\u{1D63F}" => "\u{64}", "\u{1D640}" => "\u{65}", "\u{1D641}" => "\u{66}", + "\u{1D642}" => "\u{67}", "\u{1D643}" => "\u{68}", "\u{1D644}" => "\u{69}", "\u{1D645}" => "\u{6A}", + "\u{1D646}" => "\u{6B}", "\u{1D647}" => "\u{6C}", "\u{1D648}" => "\u{6D}", "\u{1D649}" => "\u{6E}", + "\u{1D64A}" => "\u{6F}", "\u{1D64B}" => "\u{70}", "\u{1D64C}" => "\u{71}", "\u{1D64D}" => "\u{72}", + "\u{1D64E}" => "\u{73}", "\u{1D64F}" => "\u{74}", "\u{1D650}" => "\u{75}", "\u{1D651}" => "\u{76}", + "\u{1D652}" => "\u{77}", "\u{1D653}" => "\u{78}", "\u{1D654}" => "\u{79}", "\u{1D655}" => "\u{7A}", + "\u{1D656}" => "\u{61}", "\u{1D657}" => "\u{62}", "\u{1D658}" => "\u{63}", "\u{1D659}" => "\u{64}", + "\u{1D65A}" => "\u{65}", "\u{1D65B}" => "\u{66}", "\u{1D65C}" => "\u{67}", "\u{1D65D}" => "\u{68}", + "\u{1D65E}" => "\u{69}", "\u{1D65F}" => "\u{6A}", "\u{1D660}" => "\u{6B}", "\u{1D661}" => "\u{6C}", + "\u{1D662}" => "\u{6D}", "\u{1D663}" => "\u{6E}", "\u{1D664}" => "\u{6F}", "\u{1D665}" => "\u{70}", + "\u{1D666}" => "\u{71}", "\u{1D667}" => "\u{72}", "\u{1D668}" => "\u{73}", "\u{1D669}" => "\u{74}", + "\u{1D66A}" => "\u{75}", "\u{1D66B}" => "\u{76}", "\u{1D66C}" => "\u{77}", "\u{1D66D}" => "\u{78}", + "\u{1D66E}" => "\u{79}", "\u{1D66F}" => "\u{7A}", "\u{1D670}" => "\u{61}", "\u{1D671}" => "\u{62}", + "\u{1D672}" => "\u{63}", "\u{1D673}" => "\u{64}", "\u{1D674}" => "\u{65}", "\u{1D675}" => "\u{66}", + "\u{1D676}" => "\u{67}", "\u{1D677}" => "\u{68}", "\u{1D678}" => "\u{69}", "\u{1D679}" => "\u{6A}", + "\u{1D67A}" => "\u{6B}", "\u{1D67B}" => "\u{6C}", "\u{1D67C}" => "\u{6D}", "\u{1D67D}" => "\u{6E}", + "\u{1D67E}" => "\u{6F}", "\u{1D67F}" => "\u{70}", "\u{1D680}" => "\u{71}", "\u{1D681}" => "\u{72}", + "\u{1D682}" => "\u{73}", "\u{1D683}" => "\u{74}", "\u{1D684}" => "\u{75}", "\u{1D685}" => "\u{76}", + "\u{1D686}" => "\u{77}", "\u{1D687}" => "\u{78}", "\u{1D688}" => "\u{79}", "\u{1D689}" => "\u{7A}", + "\u{1D68A}" => "\u{61}", "\u{1D68B}" => "\u{62}", "\u{1D68C}" => "\u{63}", "\u{1D68D}" => "\u{64}", + "\u{1D68E}" => "\u{65}", "\u{1D68F}" => "\u{66}", "\u{1D690}" => "\u{67}", "\u{1D691}" => "\u{68}", + "\u{1D692}" => "\u{69}", "\u{1D693}" => "\u{6A}", "\u{1D694}" => "\u{6B}", "\u{1D695}" => "\u{6C}", + "\u{1D696}" => "\u{6D}", "\u{1D697}" => "\u{6E}", "\u{1D698}" => "\u{6F}", "\u{1D699}" => "\u{70}", + "\u{1D69A}" => "\u{71}", "\u{1D69B}" => "\u{72}", "\u{1D69C}" => "\u{73}", "\u{1D69D}" => "\u{74}", + "\u{1D69E}" => "\u{75}", "\u{1D69F}" => "\u{76}", "\u{1D6A0}" => "\u{77}", "\u{1D6A1}" => "\u{78}", + "\u{1D6A2}" => "\u{79}", "\u{1D6A3}" => "\u{7A}", "\u{1D6A4}" => "\u{131}", "\u{1D6A5}" => "\u{237}", + "\u{1D6A6}" => "\u{73}\u{73}", "\u{1D6A8}" => "\u{3B1}", "\u{1D6A9}" => "\u{3B2}", "\u{1D6AA}" => "\u{3B3}", + "\u{1D6AB}" => "\u{3B4}", "\u{1D6AC}" => "\u{3B5}", "\u{1D6AD}" => "\u{3B6}", "\u{1D6AE}" => "\u{3B7}", + "\u{1D6AF}" => "\u{3B8}", "\u{1D6B0}" => "\u{3B9}", "\u{1D6B1}" => "\u{3BA}", "\u{1D6B2}" => "\u{3BB}", + "\u{1D6B3}" => "\u{3BC}", "\u{1D6B4}" => "\u{3BD}", "\u{1D6B5}" => "\u{3BE}", "\u{1D6B6}" => "\u{3BF}", + "\u{1D6B7}" => "\u{3C0}", "\u{1D6B8}" => "\u{3C1}", "\u{1D6B9}" => "\u{3B8}", "\u{1D6BA}" => "\u{3C3}", + "\u{1D6BB}" => "\u{3C4}", "\u{1D6BC}" => "\u{3C5}", "\u{1D6BD}" => "\u{3C6}", "\u{1D6BE}" => "\u{3C7}", + "\u{1D6BF}" => "\u{3C8}", "\u{1D6C0}" => "\u{3C9}", "\u{1D6C1}" => "\u{2207}", "\u{1D6C2}" => "\u{3B1}", + "\u{1D6C3}" => "\u{3B2}", "\u{1D6C4}" => "\u{3B3}", "\u{1D6C5}" => "\u{3B4}", "\u{1D6C6}" => "\u{3B5}", + "\u{1D6C7}" => "\u{3B6}", "\u{1D6C8}" => "\u{3B7}", "\u{1D6C9}" => "\u{3B8}", "\u{1D6CA}" => "\u{3B9}", + "\u{1D6CB}" => "\u{3BA}", "\u{1D6CC}" => "\u{3BB}", "\u{1D6CD}" => "\u{3BC}", "\u{1D6CE}" => "\u{3BD}", + "\u{1D6CF}" => "\u{3BE}", "\u{1D6D0}" => "\u{3BF}", "\u{1D6D1}" => "\u{3C0}", "\u{1D6D2}" => "\u{3C1}", + "\u{1D6D3}" => "\u{3C3}", "\u{1D6D4}" => "\u{3C3}", "\u{1D6D5}" => "\u{3C4}", "\u{1D6D6}" => "\u{3C5}", + "\u{1D6D7}" => "\u{3C6}", "\u{1D6D8}" => "\u{3C7}", "\u{1D6D9}" => "\u{3C8}", "\u{1D6DA}" => "\u{3C9}", + "\u{1D6DB}" => "\u{2202}", "\u{1D6DC}" => "\u{3B5}", "\u{1D6DD}" => "\u{3B8}", "\u{1D6DE}" => "\u{3BA}", + "\u{1D6DF}" => "\u{3C6}", "\u{1D6E0}" => "\u{3C1}", "\u{1D6E1}" => "\u{3C0}", "\u{1D6E2}" => "\u{3B1}", + "\u{1D6E3}" => "\u{3B2}", "\u{1D6E4}" => "\u{3B3}", "\u{1D6E5}" => "\u{3B4}", "\u{1D6E6}" => "\u{3B5}", + "\u{1D6E7}" => "\u{3B6}", "\u{1D6E8}" => "\u{3B7}", "\u{1D6E9}" => "\u{3B8}", "\u{1D6EA}" => "\u{3B9}", + "\u{1D6EB}" => "\u{3BA}", "\u{1D6EC}" => "\u{3BB}", "\u{1D6ED}" => "\u{3BC}", "\u{1D6EE}" => "\u{3BD}", + "\u{1D6EF}" => "\u{3BE}", "\u{1D6F0}" => "\u{3BF}", "\u{1D6F1}" => "\u{3C0}", "\u{1D6F2}" => "\u{3C1}", + "\u{1D6F3}" => "\u{3B8}", "\u{1D6F4}" => "\u{3C3}", "\u{1D6F5}" => "\u{3C4}", "\u{1D6F6}" => "\u{3C5}", + "\u{1D6F7}" => "\u{3C6}", "\u{1D6F8}" => "\u{3C7}", "\u{1D6F9}" => "\u{3C8}", "\u{1D6FA}" => "\u{3C9}", + "\u{1D6FB}" => "\u{2207}", "\u{1D6FC}" => "\u{3B1}", "\u{1D6FD}" => "\u{3B2}", "\u{1D6FE}" => "\u{3B3}", + "\u{1D6FF}" => "\u{3B4}", "\u{1D700}" => "\u{3B5}", "\u{1D701}" => "\u{3B6}", "\u{1D702}" => "\u{3B7}", + "\u{1D703}" => "\u{3B8}", "\u{1D704}" => "\u{3B9}", "\u{1D705}" => "\u{3BA}", "\u{1D706}" => "\u{3BB}", + "\u{1D707}" => "\u{3BC}", "\u{1D708}" => "\u{3BD}", "\u{1D709}" => "\u{3BE}", "\u{1D70A}" => "\u{3BF}", + "\u{1D70B}" => "\u{3C0}", "\u{1D70C}" => "\u{3C1}", "\u{1D70D}" => "\u{3C3}", "\u{1D70E}" => "\u{3C3}", + "\u{1D70F}" => "\u{3C4}", "\u{1D710}" => "\u{3C5}", "\u{1D711}" => "\u{3C6}", "\u{1D712}" => "\u{3C7}", + "\u{1D713}" => "\u{3C8}", "\u{1D714}" => "\u{3C9}", "\u{1D715}" => "\u{2202}", "\u{1D716}" => "\u{3B5}", + "\u{1D717}" => "\u{3B8}", "\u{1D718}" => "\u{3BA}", "\u{1D719}" => "\u{3C6}", "\u{1D71A}" => "\u{3C1}", + "\u{1D71B}" => "\u{3C0}", "\u{1D71C}" => "\u{3B1}", "\u{1D71D}" => "\u{3B2}", "\u{1D71E}" => "\u{3B3}", + "\u{1D71F}" => "\u{3B4}", "\u{1D720}" => "\u{3B5}", "\u{1D721}" => "\u{3B6}", "\u{1D722}" => "\u{3B7}", + "\u{1D723}" => "\u{3B8}", "\u{1D724}" => "\u{3B9}", "\u{1D725}" => "\u{3BA}", "\u{1D726}" => "\u{3BB}", + "\u{1D727}" => "\u{3BC}", "\u{1D728}" => "\u{3BD}", "\u{1D729}" => "\u{3BE}", "\u{1D72A}" => "\u{3BF}", + "\u{1D72B}" => "\u{3C0}", "\u{1D72C}" => "\u{3C1}", "\u{1D72D}" => "\u{3B8}", "\u{1D72E}" => "\u{3C3}", + "\u{1D72F}" => "\u{3C4}", "\u{1D730}" => "\u{3C5}", "\u{1D731}" => "\u{3C6}", "\u{1D732}" => "\u{3C7}", + "\u{1D733}" => "\u{3C8}", "\u{1D734}" => "\u{3C9}", "\u{1D735}" => "\u{2207}", "\u{1D736}" => "\u{3B1}", + "\u{1D737}" => "\u{3B2}", "\u{1D738}" => "\u{3B3}", "\u{1D739}" => "\u{3B4}", "\u{1D73A}" => "\u{3B5}", + "\u{1D73B}" => "\u{3B6}", "\u{1D73C}" => "\u{3B7}", "\u{1D73D}" => "\u{3B8}", "\u{1D73E}" => "\u{3B9}", + "\u{1D73F}" => "\u{3BA}", "\u{1D740}" => "\u{3BB}", "\u{1D741}" => "\u{3BC}", "\u{1D742}" => "\u{3BD}", + "\u{1D743}" => "\u{3BE}", "\u{1D744}" => "\u{3BF}", "\u{1D745}" => "\u{3C0}", "\u{1D746}" => "\u{3C1}", + "\u{1D747}" => "\u{3C3}", "\u{1D748}" => "\u{3C3}", "\u{1D749}" => "\u{3C4}", "\u{1D74A}" => "\u{3C5}", + "\u{1D74B}" => "\u{3C6}", "\u{1D74C}" => "\u{3C7}", "\u{1D74D}" => "\u{3C8}", "\u{1D74E}" => "\u{3C9}", + "\u{1D74F}" => "\u{2202}", "\u{1D750}" => "\u{3B5}", "\u{1D751}" => "\u{3B8}", "\u{1D752}" => "\u{3BA}", + "\u{1D753}" => "\u{3C6}", "\u{1D754}" => "\u{3C1}", "\u{1D755}" => "\u{3C0}", "\u{1D756}" => "\u{3B1}", + "\u{1D757}" => "\u{3B2}", "\u{1D758}" => "\u{3B3}", "\u{1D759}" => "\u{3B4}", "\u{1D75A}" => "\u{3B5}", + "\u{1D75B}" => "\u{3B6}", "\u{1D75C}" => "\u{3B7}", "\u{1D75D}" => "\u{3B8}", "\u{1D75E}" => "\u{3B9}", + "\u{1D75F}" => "\u{3BA}", "\u{1D760}" => "\u{3BB}", "\u{1D761}" => "\u{3BC}", "\u{1D762}" => "\u{3BD}", + "\u{1D763}" => "\u{3BE}", "\u{1D764}" => "\u{3BF}", "\u{1D765}" => "\u{3C0}", "\u{1D766}" => "\u{3C1}", + "\u{1D767}" => "\u{3B8}", "\u{1D768}" => "\u{3C3}", "\u{1D769}" => "\u{3C4}", "\u{1D76A}" => "\u{3C5}", + "\u{1D76B}" => "\u{3C6}", "\u{1D76C}" => "\u{3C7}", "\u{1D76D}" => "\u{3C8}", "\u{1D76E}" => "\u{3C9}", + "\u{1D76F}" => "\u{2207}", "\u{1D770}" => "\u{3B1}", "\u{1D771}" => "\u{3B2}", "\u{1D772}" => "\u{3B3}", + "\u{1D773}" => "\u{3B4}", "\u{1D774}" => "\u{3B5}", "\u{1D775}" => "\u{3B6}", "\u{1D776}" => "\u{3B7}", + "\u{1D777}" => "\u{3B8}", "\u{1D778}" => "\u{3B9}", "\u{1D779}" => "\u{3BA}", "\u{1D77A}" => "\u{3BB}", + "\u{1D77B}" => "\u{3BC}", "\u{1D77C}" => "\u{3BD}", "\u{1D77D}" => "\u{3BE}", "\u{1D77E}" => "\u{3BF}", + "\u{1D77F}" => "\u{3C0}", "\u{1D780}" => "\u{3C1}", "\u{1D781}" => "\u{3C3}", "\u{1D782}" => "\u{3C3}", + "\u{1D783}" => "\u{3C4}", "\u{1D784}" => "\u{3C5}", "\u{1D785}" => "\u{3C6}", "\u{1D786}" => "\u{3C7}", + "\u{1D787}" => "\u{3C8}", "\u{1D788}" => "\u{3C9}", "\u{1D789}" => "\u{2202}", "\u{1D78A}" => "\u{3B5}", + "\u{1D78B}" => "\u{3B8}", "\u{1D78C}" => "\u{3BA}", "\u{1D78D}" => "\u{3C6}", "\u{1D78E}" => "\u{3C1}", + "\u{1D78F}" => "\u{3C0}", "\u{1D790}" => "\u{3B1}", "\u{1D791}" => "\u{3B2}", "\u{1D792}" => "\u{3B3}", + "\u{1D793}" => "\u{3B4}", "\u{1D794}" => "\u{3B5}", "\u{1D795}" => "\u{3B6}", "\u{1D796}" => "\u{3B7}", + "\u{1D797}" => "\u{3B8}", "\u{1D798}" => "\u{3B9}", "\u{1D799}" => "\u{3BA}", "\u{1D79A}" => "\u{3BB}", + "\u{1D79B}" => "\u{3BC}", "\u{1D79C}" => "\u{3BD}", "\u{1D79D}" => "\u{3BE}", "\u{1D79E}" => "\u{3BF}", + "\u{1D79F}" => "\u{3C0}", "\u{1D7A0}" => "\u{3C1}", "\u{1D7A1}" => "\u{3B8}", "\u{1D7A2}" => "\u{3C3}", + "\u{1D7A3}" => "\u{3C4}", "\u{1D7A4}" => "\u{3C5}", "\u{1D7A5}" => "\u{3C6}", "\u{1D7A6}" => "\u{3C7}", + "\u{1D7A7}" => "\u{3C8}", "\u{1D7A8}" => "\u{3C9}", "\u{1D7A9}" => "\u{2207}", "\u{1D7AA}" => "\u{3B1}", + "\u{1D7AB}" => "\u{3B2}", "\u{1D7AC}" => "\u{3B3}", "\u{1D7AD}" => "\u{3B4}", "\u{1D7AE}" => "\u{3B5}", + "\u{1D7AF}" => "\u{3B6}", "\u{1D7B0}" => "\u{3B7}", "\u{1D7B1}" => "\u{3B8}", "\u{1D7B2}" => "\u{3B9}", + "\u{1D7B3}" => "\u{3BA}", "\u{1D7B4}" => "\u{3BB}", "\u{1D7B5}" => "\u{3BC}", "\u{1D7B6}" => "\u{3BD}", + "\u{1D7B7}" => "\u{3BE}", "\u{1D7B8}" => "\u{3BF}", "\u{1D7B9}" => "\u{3C0}", "\u{1D7BA}" => "\u{3C1}", + "\u{1D7BB}" => "\u{3C3}", "\u{1D7BC}" => "\u{3C3}", "\u{1D7BD}" => "\u{3C4}", "\u{1D7BE}" => "\u{3C5}", + "\u{1D7BF}" => "\u{3C6}", "\u{1D7C0}" => "\u{3C7}", "\u{1D7C1}" => "\u{3C8}", "\u{1D7C2}" => "\u{3C9}", + "\u{1D7C3}" => "\u{2202}", "\u{1D7C4}" => "\u{3B5}", "\u{1D7C5}" => "\u{3B8}", "\u{1D7C6}" => "\u{3BA}", + "\u{1D7C7}" => "\u{3C6}", "\u{1D7C8}" => "\u{3C1}", "\u{1D7C9}" => "\u{3C0}", "\u{1D7CA}" => "\u{3DD}", + "\u{1D7CB}" => "\u{3DD}", "\u{1D7CE}" => "\u{30}", "\u{1D7CF}" => "\u{31}", "\u{1D7D0}" => "\u{32}", + "\u{1D7D1}" => "\u{33}", "\u{1D7D2}" => "\u{34}", "\u{1D7D3}" => "\u{35}", "\u{1D7D4}" => "\u{36}", + "\u{1D7D5}" => "\u{37}", "\u{1D7D6}" => "\u{38}", "\u{1D7D7}" => "\u{39}", "\u{1D7D8}" => "\u{30}", + "\u{1D7D9}" => "\u{31}", "\u{1D7DA}" => "\u{32}", "\u{1D7DB}" => "\u{33}", "\u{1D7DC}" => "\u{34}", + "\u{1D7DD}" => "\u{35}", "\u{1D7DE}" => "\u{36}", "\u{1D7DF}" => "\u{37}", "\u{1D7E0}" => "\u{38}", + "\u{1D7E1}" => "\u{39}", "\u{1D7E2}" => "\u{30}", "\u{1D7E3}" => "\u{31}", "\u{1D7E4}" => "\u{32}", + "\u{1D7E5}" => "\u{33}", "\u{1D7E6}" => "\u{34}", "\u{1D7E7}" => "\u{35}", "\u{1D7E8}" => "\u{36}", + "\u{1D7E9}" => "\u{37}", "\u{1D7EA}" => "\u{38}", "\u{1D7EB}" => "\u{39}", "\u{1D7EC}" => "\u{30}", + "\u{1D7ED}" => "\u{31}", "\u{1D7EE}" => "\u{32}", "\u{1D7EF}" => "\u{33}", "\u{1D7F0}" => "\u{34}", + "\u{1D7F1}" => "\u{35}", "\u{1D7F2}" => "\u{36}", "\u{1D7F3}" => "\u{37}", "\u{1D7F4}" => "\u{38}", + "\u{1D7F5}" => "\u{39}", "\u{1D7F6}" => "\u{30}", "\u{1D7F7}" => "\u{31}", "\u{1D7F8}" => "\u{32}", + "\u{1D7F9}" => "\u{33}", "\u{1D7FA}" => "\u{34}", "\u{1D7FB}" => "\u{35}", "\u{1D7FC}" => "\u{36}", + "\u{1D7FD}" => "\u{37}", "\u{1D7FE}" => "\u{38}", "\u{1D7FF}" => "\u{39}", "\u{1DF40}" => "\u{1DF41}", + "\u{1DF48}" => "\u{1DF49}", "\u{1DF4A}" => "\u{1DF4B}", "\u{1DF4D}" => "\u{1DF4E}", "\u{1DF51}" => "\u{1DF52}", + "\u{1DF68}" => "\u{1DF69}", "\u{1DF6A}" => "\u{1DF6B}", "\u{1DF6C}" => "\u{1DF6D}", "\u{1DF6E}" => "\u{1DF6F}", + "\u{1DF72}" => "\u{1DF73}", "\u{1DF74}" => "\u{1DF75}", "\u{1DF76}" => "\u{1DF77}", "\u{1DF78}" => "\u{1DF79}", + "\u{1DF7A}" => "\u{1DF7B}", "\u{1DF7C}" => "\u{1DF7D}", "\u{1DF7E}" => "\u{1DF7F}", "\u{1DF95}" => "\u{73}\u{73}", + "\u{1DFCD}" => "\u{1DF57}", "\u{1DFCE}" => "\u{1DF58}", "\u{1DFCF}" => "\u{1DF59}", "\u{1DFD0}" => "\u{263}", + "\u{1DFD1}" => "\u{1D18}", "\u{1DFD2}" => "\u{180}", "\u{1DFD3}" => "\u{111}", "\u{1DFD4}" => "\u{1E5}", + "\u{1DFD5}" => "\u{142}", "\u{1DFD6}" => "\u{19A}", "\u{1DFD7}" => "\u{1DF50}", "\u{1DFD8}" => "\u{1DF3E}", + "\u{1DFD9}" => "\u{249}", "\u{1DFDA}" => "\u{1D7F}", "\u{1DFDB}" => "\u{1DF3F}", "\u{1DFDC}" => "\u{19E}", + "\u{1DFDD}" => "\u{27C}", "\u{1DFDE}" => "\u{238}", "\u{1DFDF}" => "\u{239}", "\u{1DFE0}" => "\u{1DF2B}", + "\u{1DFE1}" => "\u{1DF19}", "\u{1DFE2}" => "\u{286}", "\u{1DFE3}" => "\u{1D98}", "\u{1DFE4}" => "\u{1DF2C}", + "\u{1DFE5}" => "\u{1DF1C}", "\u{1DFE6}" => "\u{293}", "\u{1DFE7}" => "\u{1D9A}", "\u{1DFE8}" => "\u{1D05}", + "\u{1DFE9}" => "\u{1D00}", "\u{1DFEA}" => "\u{1D07}", "\u{1DFEB}" => "\u{27F}", "\u{1DFEC}" => "\u{285}", + "\u{1DFED}" => "\u{2AE}", "\u{1DFEE}" => "\u{2AF}", "\u{1DFEF}" => "\u{221}", "\u{1DFF0}" => "\u{234}", + "\u{1DFF1}" => "\u{235}", "\u{1DFF2}" => "\u{236}", "\u{1DFF3}" => "\u{3C8}", "\u{1DFF4}" => "\u{3C9}", + "\u{1DFF5}" => "\u{1D81}", "\u{1DFF6}" => "\u{A795}", "\u{1DFF7}" => "\u{1D87}", "\u{1DFF8}" => "\u{1D8A}", + "\u{1DFF9}" => "\u{1D8E}", "\u{1DFFA}" => "\u{188}", "\u{1DFFB}" => "\u{199}", "\u{1DFFC}" => "\u{1A5}", + "\u{1DFFD}" => "\u{2A0}", "\u{1DFFE}" => "\u{1AD}", "\u{1DFFF}" => "\u{1DF09}", "\u{1E030}" => "\u{430}", + "\u{1E031}" => "\u{431}", "\u{1E032}" => "\u{432}", "\u{1E033}" => "\u{433}", "\u{1E034}" => "\u{434}", + "\u{1E035}" => "\u{435}", "\u{1E036}" => "\u{436}", "\u{1E037}" => "\u{437}", "\u{1E038}" => "\u{438}", + "\u{1E039}" => "\u{43A}", "\u{1E03A}" => "\u{43B}", "\u{1E03B}" => "\u{43C}", "\u{1E03C}" => "\u{43E}", + "\u{1E03D}" => "\u{43F}", "\u{1E03E}" => "\u{440}", "\u{1E03F}" => "\u{441}", "\u{1E040}" => "\u{442}", + "\u{1E041}" => "\u{443}", "\u{1E042}" => "\u{444}", "\u{1E043}" => "\u{445}", "\u{1E044}" => "\u{446}", + "\u{1E045}" => "\u{447}", "\u{1E046}" => "\u{448}", "\u{1E047}" => "\u{44B}", "\u{1E048}" => "\u{44D}", + "\u{1E049}" => "\u{44E}", "\u{1E04A}" => "\u{A689}", "\u{1E04B}" => "\u{4D9}", "\u{1E04C}" => "\u{456}", + "\u{1E04D}" => "\u{458}", "\u{1E04E}" => "\u{4E9}", "\u{1E04F}" => "\u{4AF}", "\u{1E050}" => "\u{4CF}", + "\u{1E051}" => "\u{430}", "\u{1E052}" => "\u{431}", "\u{1E053}" => "\u{432}", "\u{1E054}" => "\u{433}", + "\u{1E055}" => "\u{434}", "\u{1E056}" => "\u{435}", "\u{1E057}" => "\u{436}", "\u{1E058}" => "\u{437}", + "\u{1E059}" => "\u{438}", "\u{1E05A}" => "\u{43A}", "\u{1E05B}" => "\u{43B}", "\u{1E05C}" => "\u{43E}", + "\u{1E05D}" => "\u{43F}", "\u{1E05E}" => "\u{441}", "\u{1E05F}" => "\u{443}", "\u{1E060}" => "\u{444}", + "\u{1E061}" => "\u{445}", "\u{1E062}" => "\u{446}", "\u{1E063}" => "\u{447}", "\u{1E064}" => "\u{448}", + "\u{1E065}" => "\u{44A}", "\u{1E066}" => "\u{44B}", "\u{1E067}" => "\u{491}", "\u{1E068}" => "\u{456}", + "\u{1E069}" => "\u{455}", "\u{1E06A}" => "\u{45F}", "\u{1E06B}" => "\u{4AB}", "\u{1E06C}" => "\u{A651}", + "\u{1E06D}" => "\u{4B1}", "\u{1E900}" => "\u{1E922}", "\u{1E901}" => "\u{1E923}", "\u{1E902}" => "\u{1E924}", + "\u{1E903}" => "\u{1E925}", "\u{1E904}" => "\u{1E926}", "\u{1E905}" => "\u{1E927}", "\u{1E906}" => "\u{1E928}", + "\u{1E907}" => "\u{1E929}", "\u{1E908}" => "\u{1E92A}", "\u{1E909}" => "\u{1E92B}", "\u{1E90A}" => "\u{1E92C}", + "\u{1E90B}" => "\u{1E92D}", "\u{1E90C}" => "\u{1E92E}", "\u{1E90D}" => "\u{1E92F}", "\u{1E90E}" => "\u{1E930}", + "\u{1E90F}" => "\u{1E931}", "\u{1E910}" => "\u{1E932}", "\u{1E911}" => "\u{1E933}", "\u{1E912}" => "\u{1E934}", + "\u{1E913}" => "\u{1E935}", "\u{1E914}" => "\u{1E936}", "\u{1E915}" => "\u{1E937}", "\u{1E916}" => "\u{1E938}", + "\u{1E917}" => "\u{1E939}", "\u{1E918}" => "\u{1E93A}", "\u{1E919}" => "\u{1E93B}", "\u{1E91A}" => "\u{1E93C}", + "\u{1E91B}" => "\u{1E93D}", "\u{1E91C}" => "\u{1E93E}", "\u{1E91D}" => "\u{1E93F}", "\u{1E91E}" => "\u{1E940}", + "\u{1E91F}" => "\u{1E941}", "\u{1E920}" => "\u{1E942}", "\u{1E921}" => "\u{1E943}", "\u{1EE00}" => "\u{627}", + "\u{1EE01}" => "\u{628}", "\u{1EE02}" => "\u{62C}", "\u{1EE03}" => "\u{62F}", "\u{1EE05}" => "\u{648}", + "\u{1EE06}" => "\u{632}", "\u{1EE07}" => "\u{62D}", "\u{1EE08}" => "\u{637}", "\u{1EE09}" => "\u{64A}", + "\u{1EE0A}" => "\u{643}", "\u{1EE0B}" => "\u{644}", "\u{1EE0C}" => "\u{645}", "\u{1EE0D}" => "\u{646}", + "\u{1EE0E}" => "\u{633}", "\u{1EE0F}" => "\u{639}", "\u{1EE10}" => "\u{641}", "\u{1EE11}" => "\u{635}", + "\u{1EE12}" => "\u{642}", "\u{1EE13}" => "\u{631}", "\u{1EE14}" => "\u{634}", "\u{1EE15}" => "\u{62A}", + "\u{1EE16}" => "\u{62B}", "\u{1EE17}" => "\u{62E}", "\u{1EE18}" => "\u{630}", "\u{1EE19}" => "\u{636}", + "\u{1EE1A}" => "\u{638}", "\u{1EE1B}" => "\u{63A}", "\u{1EE1C}" => "\u{66E}", "\u{1EE1D}" => "\u{6BA}", + "\u{1EE1E}" => "\u{6A1}", "\u{1EE1F}" => "\u{66F}", "\u{1EE21}" => "\u{628}", "\u{1EE22}" => "\u{62C}", + "\u{1EE24}" => "\u{647}", "\u{1EE27}" => "\u{62D}", "\u{1EE29}" => "\u{64A}", "\u{1EE2A}" => "\u{643}", + "\u{1EE2B}" => "\u{644}", "\u{1EE2C}" => "\u{645}", "\u{1EE2D}" => "\u{646}", "\u{1EE2E}" => "\u{633}", + "\u{1EE2F}" => "\u{639}", "\u{1EE30}" => "\u{641}", "\u{1EE31}" => "\u{635}", "\u{1EE32}" => "\u{642}", + "\u{1EE34}" => "\u{634}", "\u{1EE35}" => "\u{62A}", "\u{1EE36}" => "\u{62B}", "\u{1EE37}" => "\u{62E}", + "\u{1EE39}" => "\u{636}", "\u{1EE3B}" => "\u{63A}", "\u{1EE42}" => "\u{62C}", "\u{1EE47}" => "\u{62D}", + "\u{1EE49}" => "\u{64A}", "\u{1EE4B}" => "\u{644}", "\u{1EE4D}" => "\u{646}", "\u{1EE4E}" => "\u{633}", + "\u{1EE4F}" => "\u{639}", "\u{1EE51}" => "\u{635}", "\u{1EE52}" => "\u{642}", "\u{1EE54}" => "\u{634}", + "\u{1EE57}" => "\u{62E}", "\u{1EE59}" => "\u{636}", "\u{1EE5B}" => "\u{63A}", "\u{1EE5D}" => "\u{6BA}", + "\u{1EE5F}" => "\u{66F}", "\u{1EE61}" => "\u{628}", "\u{1EE62}" => "\u{62C}", "\u{1EE64}" => "\u{647}", + "\u{1EE67}" => "\u{62D}", "\u{1EE68}" => "\u{637}", "\u{1EE69}" => "\u{64A}", "\u{1EE6A}" => "\u{643}", + "\u{1EE6C}" => "\u{645}", "\u{1EE6D}" => "\u{646}", "\u{1EE6E}" => "\u{633}", "\u{1EE6F}" => "\u{639}", + "\u{1EE70}" => "\u{641}", "\u{1EE71}" => "\u{635}", "\u{1EE72}" => "\u{642}", "\u{1EE74}" => "\u{634}", + "\u{1EE75}" => "\u{62A}", "\u{1EE76}" => "\u{62B}", "\u{1EE77}" => "\u{62E}", "\u{1EE79}" => "\u{636}", + "\u{1EE7A}" => "\u{638}", "\u{1EE7B}" => "\u{63A}", "\u{1EE7C}" => "\u{66E}", "\u{1EE7E}" => "\u{6A1}", + "\u{1EE80}" => "\u{627}", "\u{1EE81}" => "\u{628}", "\u{1EE82}" => "\u{62C}", "\u{1EE83}" => "\u{62F}", + "\u{1EE84}" => "\u{647}", "\u{1EE85}" => "\u{648}", "\u{1EE86}" => "\u{632}", "\u{1EE87}" => "\u{62D}", + "\u{1EE88}" => "\u{637}", "\u{1EE89}" => "\u{64A}", "\u{1EE8B}" => "\u{644}", "\u{1EE8C}" => "\u{645}", + "\u{1EE8D}" => "\u{646}", "\u{1EE8E}" => "\u{633}", "\u{1EE8F}" => "\u{639}", "\u{1EE90}" => "\u{641}", + "\u{1EE91}" => "\u{635}", "\u{1EE92}" => "\u{642}", "\u{1EE93}" => "\u{631}", "\u{1EE94}" => "\u{634}", + "\u{1EE95}" => "\u{62A}", "\u{1EE96}" => "\u{62B}", "\u{1EE97}" => "\u{62E}", "\u{1EE98}" => "\u{630}", + "\u{1EE99}" => "\u{636}", "\u{1EE9A}" => "\u{638}", "\u{1EE9B}" => "\u{63A}", "\u{1EEA1}" => "\u{628}", + "\u{1EEA2}" => "\u{62C}", "\u{1EEA3}" => "\u{62F}", "\u{1EEA5}" => "\u{648}", "\u{1EEA6}" => "\u{632}", + "\u{1EEA7}" => "\u{62D}", "\u{1EEA8}" => "\u{637}", "\u{1EEA9}" => "\u{64A}", "\u{1EEAB}" => "\u{644}", + "\u{1EEAC}" => "\u{645}", "\u{1EEAD}" => "\u{646}", "\u{1EEAE}" => "\u{633}", "\u{1EEAF}" => "\u{639}", + "\u{1EEB0}" => "\u{641}", "\u{1EEB1}" => "\u{635}", "\u{1EEB2}" => "\u{642}", "\u{1EEB3}" => "\u{631}", + "\u{1EEB4}" => "\u{634}", "\u{1EEB5}" => "\u{62A}", "\u{1EEB6}" => "\u{62B}", "\u{1EEB7}" => "\u{62E}", + "\u{1EEB8}" => "\u{630}", "\u{1EEB9}" => "\u{636}", "\u{1EEBA}" => "\u{638}", "\u{1EEBB}" => "\u{63A}", + "\u{1F101}" => "\u{30}\u{2C}", "\u{1F102}" => "\u{31}\u{2C}", "\u{1F103}" => "\u{32}\u{2C}", "\u{1F104}" => "\u{33}\u{2C}", + "\u{1F105}" => "\u{34}\u{2C}", "\u{1F106}" => "\u{35}\u{2C}", "\u{1F107}" => "\u{36}\u{2C}", "\u{1F108}" => "\u{37}\u{2C}", + "\u{1F109}" => "\u{38}\u{2C}", "\u{1F10A}" => "\u{39}\u{2C}", "\u{1F110}" => "\u{28}\u{61}\u{29}", "\u{1F111}" => "\u{28}\u{62}\u{29}", + "\u{1F112}" => "\u{28}\u{63}\u{29}", "\u{1F113}" => "\u{28}\u{64}\u{29}", "\u{1F114}" => "\u{28}\u{65}\u{29}", "\u{1F115}" => "\u{28}\u{66}\u{29}", + "\u{1F116}" => "\u{28}\u{67}\u{29}", "\u{1F117}" => "\u{28}\u{68}\u{29}", "\u{1F118}" => "\u{28}\u{69}\u{29}", "\u{1F119}" => "\u{28}\u{6A}\u{29}", + "\u{1F11A}" => "\u{28}\u{6B}\u{29}", "\u{1F11B}" => "\u{28}\u{6C}\u{29}", "\u{1F11C}" => "\u{28}\u{6D}\u{29}", "\u{1F11D}" => "\u{28}\u{6E}\u{29}", + "\u{1F11E}" => "\u{28}\u{6F}\u{29}", "\u{1F11F}" => "\u{28}\u{70}\u{29}", "\u{1F120}" => "\u{28}\u{71}\u{29}", "\u{1F121}" => "\u{28}\u{72}\u{29}", + "\u{1F122}" => "\u{28}\u{73}\u{29}", "\u{1F123}" => "\u{28}\u{74}\u{29}", "\u{1F124}" => "\u{28}\u{75}\u{29}", "\u{1F125}" => "\u{28}\u{76}\u{29}", + "\u{1F126}" => "\u{28}\u{77}\u{29}", "\u{1F127}" => "\u{28}\u{78}\u{29}", "\u{1F128}" => "\u{28}\u{79}\u{29}", "\u{1F129}" => "\u{28}\u{7A}\u{29}", + "\u{1F12A}" => "\u{3014}\u{73}\u{3015}", "\u{1F12B}" => "\u{63}", "\u{1F12C}" => "\u{72}", "\u{1F12D}" => "\u{63}\u{64}", + "\u{1F12E}" => "\u{77}\u{7A}", "\u{1F130}" => "\u{61}", "\u{1F131}" => "\u{62}", "\u{1F132}" => "\u{63}", + "\u{1F133}" => "\u{64}", "\u{1F134}" => "\u{65}", "\u{1F135}" => "\u{66}", "\u{1F136}" => "\u{67}", + "\u{1F137}" => "\u{68}", "\u{1F138}" => "\u{69}", "\u{1F139}" => "\u{6A}", "\u{1F13A}" => "\u{6B}", + "\u{1F13B}" => "\u{6C}", "\u{1F13C}" => "\u{6D}", "\u{1F13D}" => "\u{6E}", "\u{1F13E}" => "\u{6F}", + "\u{1F13F}" => "\u{70}", "\u{1F140}" => "\u{71}", "\u{1F141}" => "\u{72}", "\u{1F142}" => "\u{73}", + "\u{1F143}" => "\u{74}", "\u{1F144}" => "\u{75}", "\u{1F145}" => "\u{76}", "\u{1F146}" => "\u{77}", + "\u{1F147}" => "\u{78}", "\u{1F148}" => "\u{79}", "\u{1F149}" => "\u{7A}", "\u{1F14A}" => "\u{68}\u{76}", + "\u{1F14B}" => "\u{6D}\u{76}", "\u{1F14C}" => "\u{73}\u{64}", "\u{1F14D}" => "\u{73}\u{73}", "\u{1F14E}" => "\u{70}\u{70}\u{76}", + "\u{1F14F}" => "\u{77}\u{63}", "\u{1F16A}" => "\u{6D}\u{63}", "\u{1F16B}" => "\u{6D}\u{64}", "\u{1F16C}" => "\u{6D}\u{72}", + "\u{1F190}" => "\u{64}\u{6A}", "\u{1F200}" => "\u{307B}\u{304B}", "\u{1F201}" => "\u{30B3}\u{30B3}", "\u{1F202}" => "\u{30B5}", + "\u{1F210}" => "\u{624B}", "\u{1F211}" => "\u{5B57}", "\u{1F212}" => "\u{53CC}", "\u{1F213}" => "\u{30C7}", + "\u{1F214}" => "\u{4E8C}", "\u{1F215}" => "\u{591A}", "\u{1F216}" => "\u{89E3}", "\u{1F217}" => "\u{5929}", + "\u{1F218}" => "\u{4EA4}", "\u{1F219}" => "\u{6620}", "\u{1F21A}" => "\u{7121}", "\u{1F21B}" => "\u{6599}", + "\u{1F21C}" => "\u{524D}", "\u{1F21D}" => "\u{5F8C}", "\u{1F21E}" => "\u{518D}", "\u{1F21F}" => "\u{65B0}", + "\u{1F220}" => "\u{521D}", "\u{1F221}" => "\u{7D42}", "\u{1F222}" => "\u{751F}", "\u{1F223}" => "\u{8CA9}", + "\u{1F224}" => "\u{58F0}", "\u{1F225}" => "\u{5439}", "\u{1F226}" => "\u{6F14}", "\u{1F227}" => "\u{6295}", + "\u{1F228}" => "\u{6355}", "\u{1F229}" => "\u{4E00}", "\u{1F22A}" => "\u{4E09}", "\u{1F22B}" => "\u{904A}", + "\u{1F22C}" => "\u{5DE6}", "\u{1F22D}" => "\u{4E2D}", "\u{1F22E}" => "\u{53F3}", "\u{1F22F}" => "\u{6307}", + "\u{1F230}" => "\u{8D70}", "\u{1F231}" => "\u{6253}", "\u{1F232}" => "\u{7981}", "\u{1F233}" => "\u{7A7A}", + "\u{1F234}" => "\u{5408}", "\u{1F235}" => "\u{6E80}", "\u{1F236}" => "\u{6709}", "\u{1F237}" => "\u{6708}", + "\u{1F238}" => "\u{7533}", "\u{1F239}" => "\u{5272}", "\u{1F23A}" => "\u{55B6}", "\u{1F23B}" => "\u{914D}", + "\u{1F240}" => "\u{3014}\u{672C}\u{3015}", "\u{1F241}" => "\u{3014}\u{4E09}\u{3015}", "\u{1F242}" => "\u{3014}\u{4E8C}\u{3015}", "\u{1F243}" => "\u{3014}\u{5B89}\u{3015}", + "\u{1F244}" => "\u{3014}\u{70B9}\u{3015}", "\u{1F245}" => "\u{3014}\u{6253}\u{3015}", "\u{1F246}" => "\u{3014}\u{76D7}\u{3015}", "\u{1F247}" => "\u{3014}\u{52DD}\u{3015}", + "\u{1F248}" => "\u{3014}\u{6557}\u{3015}", "\u{1F250}" => "\u{5F97}", "\u{1F251}" => "\u{53EF}", "\u{1FBF0}" => "\u{30}", + "\u{1FBF1}" => "\u{31}", "\u{1FBF2}" => "\u{32}", "\u{1FBF3}" => "\u{33}", "\u{1FBF4}" => "\u{34}", + "\u{1FBF5}" => "\u{35}", "\u{1FBF6}" => "\u{36}", "\u{1FBF7}" => "\u{37}", "\u{1FBF8}" => "\u{38}", + "\u{1FBF9}" => "\u{39}", "\u{2F800}" => "\u{4E3D}", "\u{2F801}" => "\u{4E38}", "\u{2F802}" => "\u{4E41}", + "\u{2F803}" => "\u{20122}", "\u{2F804}" => "\u{4F60}", "\u{2F805}" => "\u{4FAE}", "\u{2F806}" => "\u{4FBB}", + "\u{2F807}" => "\u{5002}", "\u{2F808}" => "\u{507A}", "\u{2F809}" => "\u{5099}", "\u{2F80A}" => "\u{50E7}", + "\u{2F80B}" => "\u{50CF}", "\u{2F80C}" => "\u{349E}", "\u{2F80D}" => "\u{2063A}", "\u{2F80E}" => "\u{514D}", + "\u{2F80F}" => "\u{5154}", "\u{2F810}" => "\u{5164}", "\u{2F811}" => "\u{5177}", "\u{2F812}" => "\u{2051C}", + "\u{2F813}" => "\u{34B9}", "\u{2F814}" => "\u{5167}", "\u{2F815}" => "\u{518D}", "\u{2F816}" => "\u{2054B}", + "\u{2F817}" => "\u{5197}", "\u{2F818}" => "\u{51A4}", "\u{2F819}" => "\u{4ECC}", "\u{2F81A}" => "\u{51AC}", + "\u{2F81B}" => "\u{51B5}", "\u{2F81C}" => "\u{291DF}", "\u{2F81D}" => "\u{51F5}", "\u{2F81E}" => "\u{5203}", + "\u{2F81F}" => "\u{34DF}", "\u{2F820}" => "\u{523B}", "\u{2F821}" => "\u{5246}", "\u{2F822}" => "\u{5272}", + "\u{2F823}" => "\u{5277}", "\u{2F824}" => "\u{3515}", "\u{2F825}" => "\u{52C7}", "\u{2F826}" => "\u{52C9}", + "\u{2F827}" => "\u{52E4}", "\u{2F828}" => "\u{52FA}", "\u{2F829}" => "\u{5305}", "\u{2F82A}" => "\u{5306}", + "\u{2F82B}" => "\u{5317}", "\u{2F82C}" => "\u{5349}", "\u{2F82D}" => "\u{5351}", "\u{2F82E}" => "\u{535A}", + "\u{2F82F}" => "\u{5373}", "\u{2F830}" => "\u{537D}", "\u{2F831}" => "\u{537F}", "\u{2F832}" => "\u{537F}", + "\u{2F833}" => "\u{537F}", "\u{2F834}" => "\u{20A2C}", "\u{2F835}" => "\u{7070}", "\u{2F836}" => "\u{53CA}", + "\u{2F837}" => "\u{53DF}", "\u{2F838}" => "\u{20B63}", "\u{2F839}" => "\u{53EB}", "\u{2F83A}" => "\u{53F1}", + "\u{2F83B}" => "\u{5406}", "\u{2F83C}" => "\u{549E}", "\u{2F83D}" => "\u{5438}", "\u{2F83E}" => "\u{5448}", + "\u{2F83F}" => "\u{5468}", "\u{2F840}" => "\u{54A2}", "\u{2F841}" => "\u{54F6}", "\u{2F842}" => "\u{5510}", + "\u{2F843}" => "\u{5553}", "\u{2F844}" => "\u{5563}", "\u{2F845}" => "\u{5584}", "\u{2F846}" => "\u{5584}", + "\u{2F847}" => "\u{5599}", "\u{2F848}" => "\u{55AB}", "\u{2F849}" => "\u{55B3}", "\u{2F84A}" => "\u{55C2}", + "\u{2F84B}" => "\u{5716}", "\u{2F84C}" => "\u{5606}", "\u{2F84D}" => "\u{5717}", "\u{2F84E}" => "\u{5651}", + "\u{2F84F}" => "\u{5674}", "\u{2F850}" => "\u{5207}", "\u{2F851}" => "\u{58EE}", "\u{2F852}" => "\u{57CE}", + "\u{2F853}" => "\u{57F4}", "\u{2F854}" => "\u{580D}", "\u{2F855}" => "\u{578B}", "\u{2F856}" => "\u{5832}", + "\u{2F857}" => "\u{5831}", "\u{2F858}" => "\u{58AC}", "\u{2F859}" => "\u{214E4}", "\u{2F85A}" => "\u{58F2}", + "\u{2F85B}" => "\u{58F7}", "\u{2F85C}" => "\u{5906}", "\u{2F85D}" => "\u{591A}", "\u{2F85E}" => "\u{5922}", + "\u{2F85F}" => "\u{5962}", "\u{2F860}" => "\u{216A8}", "\u{2F861}" => "\u{216EA}", "\u{2F862}" => "\u{59EC}", + "\u{2F863}" => "\u{5A1B}", "\u{2F864}" => "\u{5A27}", "\u{2F865}" => "\u{59D8}", "\u{2F866}" => "\u{5A66}", + "\u{2F867}" => "\u{36EE}", "\u{2F868}" => "\u{36FC}", "\u{2F869}" => "\u{5B08}", "\u{2F86A}" => "\u{5B3E}", + "\u{2F86B}" => "\u{5B3E}", "\u{2F86C}" => "\u{219C8}", "\u{2F86D}" => "\u{5BC3}", "\u{2F86E}" => "\u{5BD8}", + "\u{2F86F}" => "\u{5BE7}", "\u{2F870}" => "\u{5BF3}", "\u{2F871}" => "\u{21B18}", "\u{2F872}" => "\u{5BFF}", + "\u{2F873}" => "\u{5C06}", "\u{2F874}" => "\u{5F53}", "\u{2F875}" => "\u{5C22}", "\u{2F876}" => "\u{3781}", + "\u{2F877}" => "\u{5C60}", "\u{2F878}" => "\u{5C6E}", "\u{2F879}" => "\u{5CC0}", "\u{2F87A}" => "\u{5C8D}", + "\u{2F87B}" => "\u{21DE4}", "\u{2F87C}" => "\u{5D43}", "\u{2F87D}" => "\u{21DE6}", "\u{2F87E}" => "\u{5D6E}", + "\u{2F87F}" => "\u{5D6B}", "\u{2F880}" => "\u{5D7C}", "\u{2F881}" => "\u{5DE1}", "\u{2F882}" => "\u{5DE2}", + "\u{2F883}" => "\u{382F}", "\u{2F884}" => "\u{5DFD}", "\u{2F885}" => "\u{5E28}", "\u{2F886}" => "\u{5E3D}", + "\u{2F887}" => "\u{5E69}", "\u{2F888}" => "\u{3862}", "\u{2F889}" => "\u{22183}", "\u{2F88A}" => "\u{387C}", + "\u{2F88B}" => "\u{5EB0}", "\u{2F88C}" => "\u{5EB3}", "\u{2F88D}" => "\u{5EB6}", "\u{2F88E}" => "\u{5ECA}", + "\u{2F88F}" => "\u{2A392}", "\u{2F890}" => "\u{5EFE}", "\u{2F891}" => "\u{22331}", "\u{2F892}" => "\u{22331}", + "\u{2F893}" => "\u{8201}", "\u{2F894}" => "\u{5F22}", "\u{2F895}" => "\u{5F22}", "\u{2F896}" => "\u{38C7}", + "\u{2F897}" => "\u{232B8}", "\u{2F898}" => "\u{261DA}", "\u{2F899}" => "\u{5F62}", "\u{2F89A}" => "\u{5F6B}", + "\u{2F89B}" => "\u{38E3}", "\u{2F89C}" => "\u{5F9A}", "\u{2F89D}" => "\u{5FCD}", "\u{2F89E}" => "\u{5FD7}", + "\u{2F89F}" => "\u{5FF9}", "\u{2F8A0}" => "\u{6081}", "\u{2F8A1}" => "\u{393A}", "\u{2F8A2}" => "\u{391C}", + "\u{2F8A3}" => "\u{6094}", "\u{2F8A4}" => "\u{226D4}", "\u{2F8A5}" => "\u{60C7}", "\u{2F8A6}" => "\u{6148}", + "\u{2F8A7}" => "\u{614C}", "\u{2F8A8}" => "\u{614E}", "\u{2F8A9}" => "\u{614C}", "\u{2F8AA}" => "\u{617A}", + "\u{2F8AB}" => "\u{618E}", "\u{2F8AC}" => "\u{61B2}", "\u{2F8AD}" => "\u{61A4}", "\u{2F8AE}" => "\u{61AF}", + "\u{2F8AF}" => "\u{61DE}", "\u{2F8B0}" => "\u{61F2}", "\u{2F8B1}" => "\u{61F6}", "\u{2F8B2}" => "\u{6210}", + "\u{2F8B3}" => "\u{621B}", "\u{2F8B4}" => "\u{625D}", "\u{2F8B5}" => "\u{62B1}", "\u{2F8B6}" => "\u{62D4}", + "\u{2F8B7}" => "\u{6350}", "\u{2F8B8}" => "\u{22B0C}", "\u{2F8B9}" => "\u{633D}", "\u{2F8BA}" => "\u{62FC}", + "\u{2F8BB}" => "\u{6368}", "\u{2F8BC}" => "\u{6383}", "\u{2F8BD}" => "\u{63E4}", "\u{2F8BE}" => "\u{22BF1}", + "\u{2F8BF}" => "\u{6422}", "\u{2F8C0}" => "\u{63C5}", "\u{2F8C1}" => "\u{63A9}", "\u{2F8C2}" => "\u{3A2E}", + "\u{2F8C3}" => "\u{6469}", "\u{2F8C4}" => "\u{647E}", "\u{2F8C5}" => "\u{649D}", "\u{2F8C6}" => "\u{6477}", + "\u{2F8C7}" => "\u{3A6C}", "\u{2F8C8}" => "\u{654F}", "\u{2F8C9}" => "\u{656C}", "\u{2F8CA}" => "\u{2300A}", + "\u{2F8CB}" => "\u{65E3}", "\u{2F8CC}" => "\u{66F8}", "\u{2F8CD}" => "\u{6649}", "\u{2F8CE}" => "\u{3B19}", + "\u{2F8CF}" => "\u{6691}", "\u{2F8D0}" => "\u{3B08}", "\u{2F8D1}" => "\u{3AE4}", "\u{2F8D2}" => "\u{5192}", + "\u{2F8D3}" => "\u{5195}", "\u{2F8D4}" => "\u{6700}", "\u{2F8D5}" => "\u{669C}", "\u{2F8D6}" => "\u{80AD}", + "\u{2F8D7}" => "\u{43D9}", "\u{2F8D8}" => "\u{6717}", "\u{2F8D9}" => "\u{671B}", "\u{2F8DA}" => "\u{6721}", + "\u{2F8DB}" => "\u{675E}", "\u{2F8DC}" => "\u{6753}", "\u{2F8DD}" => "\u{233C3}", "\u{2F8DE}" => "\u{3B49}", + "\u{2F8DF}" => "\u{67FA}", "\u{2F8E0}" => "\u{6785}", "\u{2F8E1}" => "\u{6852}", "\u{2F8E2}" => "\u{6885}", + "\u{2F8E3}" => "\u{2346D}", "\u{2F8E4}" => "\u{688E}", "\u{2F8E5}" => "\u{681F}", "\u{2F8E6}" => "\u{6914}", + "\u{2F8E7}" => "\u{3B9D}", "\u{2F8E8}" => "\u{6942}", "\u{2F8E9}" => "\u{69A3}", "\u{2F8EA}" => "\u{69EA}", + "\u{2F8EB}" => "\u{6AA8}", "\u{2F8EC}" => "\u{236A3}", "\u{2F8ED}" => "\u{6ADB}", "\u{2F8EE}" => "\u{3C18}", + "\u{2F8EF}" => "\u{6B21}", "\u{2F8F0}" => "\u{238A7}", "\u{2F8F1}" => "\u{6B54}", "\u{2F8F2}" => "\u{3C4E}", + "\u{2F8F3}" => "\u{6B72}", "\u{2F8F4}" => "\u{6B9F}", "\u{2F8F5}" => "\u{6BBA}", "\u{2F8F6}" => "\u{6BBB}", + "\u{2F8F7}" => "\u{23A8D}", "\u{2F8F8}" => "\u{21D0B}", "\u{2F8F9}" => "\u{23AFA}", "\u{2F8FA}" => "\u{6C4E}", + "\u{2F8FB}" => "\u{23CBC}", "\u{2F8FC}" => "\u{6CBF}", "\u{2F8FD}" => "\u{6CCD}", "\u{2F8FE}" => "\u{6C67}", + "\u{2F8FF}" => "\u{6D16}", "\u{2F900}" => "\u{6D3E}", "\u{2F901}" => "\u{6D77}", "\u{2F902}" => "\u{6D41}", + "\u{2F903}" => "\u{6D69}", "\u{2F904}" => "\u{6D78}", "\u{2F905}" => "\u{6D85}", "\u{2F906}" => "\u{23D1E}", + "\u{2F907}" => "\u{6D34}", "\u{2F908}" => "\u{6E2F}", "\u{2F909}" => "\u{6E6E}", "\u{2F90A}" => "\u{3D33}", + "\u{2F90B}" => "\u{6ECB}", "\u{2F90C}" => "\u{6EC7}", "\u{2F90D}" => "\u{23ED1}", "\u{2F90E}" => "\u{6DF9}", + "\u{2F90F}" => "\u{6F6E}", "\u{2F910}" => "\u{23F5E}", "\u{2F911}" => "\u{23F8E}", "\u{2F912}" => "\u{6FC6}", + "\u{2F913}" => "\u{7039}", "\u{2F914}" => "\u{701E}", "\u{2F915}" => "\u{701B}", "\u{2F916}" => "\u{3D96}", + "\u{2F917}" => "\u{704A}", "\u{2F918}" => "\u{707D}", "\u{2F919}" => "\u{7077}", "\u{2F91A}" => "\u{70AD}", + "\u{2F91B}" => "\u{20525}", "\u{2F91C}" => "\u{7145}", "\u{2F91D}" => "\u{24263}", "\u{2F91E}" => "\u{719C}", + "\u{2F91F}" => "\u{243AB}", "\u{2F920}" => "\u{7228}", "\u{2F921}" => "\u{7235}", "\u{2F922}" => "\u{7250}", + "\u{2F923}" => "\u{24608}", "\u{2F924}" => "\u{7280}", "\u{2F925}" => "\u{7295}", "\u{2F926}" => "\u{24735}", + "\u{2F927}" => "\u{24814}", "\u{2F928}" => "\u{737A}", "\u{2F929}" => "\u{738B}", "\u{2F92A}" => "\u{3EAC}", + "\u{2F92B}" => "\u{73A5}", "\u{2F92C}" => "\u{3EB8}", "\u{2F92D}" => "\u{3EB8}", "\u{2F92E}" => "\u{7447}", + "\u{2F92F}" => "\u{745C}", "\u{2F930}" => "\u{7471}", "\u{2F931}" => "\u{7485}", "\u{2F932}" => "\u{74CA}", + "\u{2F933}" => "\u{3F1B}", "\u{2F934}" => "\u{7524}", "\u{2F935}" => "\u{24C36}", "\u{2F936}" => "\u{753E}", + "\u{2F937}" => "\u{24C92}", "\u{2F938}" => "\u{7570}", "\u{2F939}" => "\u{2219F}", "\u{2F93A}" => "\u{7610}", + "\u{2F93B}" => "\u{24FA1}", "\u{2F93C}" => "\u{24FB8}", "\u{2F93D}" => "\u{25044}", "\u{2F93E}" => "\u{3FFC}", + "\u{2F93F}" => "\u{4008}", "\u{2F940}" => "\u{76F4}", "\u{2F941}" => "\u{250F3}", "\u{2F942}" => "\u{250F2}", + "\u{2F943}" => "\u{25119}", "\u{2F944}" => "\u{25133}", "\u{2F945}" => "\u{771E}", "\u{2F946}" => "\u{771F}", + "\u{2F947}" => "\u{771F}", "\u{2F948}" => "\u{774A}", "\u{2F949}" => "\u{4039}", "\u{2F94A}" => "\u{778B}", + "\u{2F94B}" => "\u{4046}", "\u{2F94C}" => "\u{4096}", "\u{2F94D}" => "\u{2541D}", "\u{2F94E}" => "\u{784E}", + "\u{2F94F}" => "\u{788C}", "\u{2F950}" => "\u{78CC}", "\u{2F951}" => "\u{40E3}", "\u{2F952}" => "\u{25626}", + "\u{2F953}" => "\u{7956}", "\u{2F954}" => "\u{2569A}", "\u{2F955}" => "\u{256C5}", "\u{2F956}" => "\u{798F}", + "\u{2F957}" => "\u{79EB}", "\u{2F958}" => "\u{412F}", "\u{2F959}" => "\u{7A40}", "\u{2F95A}" => "\u{7A4A}", + "\u{2F95B}" => "\u{7A4F}", "\u{2F95C}" => "\u{2597C}", "\u{2F95D}" => "\u{25AA7}", "\u{2F95E}" => "\u{25AA7}", + "\u{2F95F}" => "\u{7AEE}", "\u{2F960}" => "\u{4202}", "\u{2F961}" => "\u{25BAB}", "\u{2F962}" => "\u{7BC6}", + "\u{2F963}" => "\u{7BC9}", "\u{2F964}" => "\u{4227}", "\u{2F965}" => "\u{25C80}", "\u{2F966}" => "\u{7CD2}", + "\u{2F967}" => "\u{42A0}", "\u{2F968}" => "\u{7CE8}", "\u{2F969}" => "\u{7CE3}", "\u{2F96A}" => "\u{7D00}", + "\u{2F96B}" => "\u{25F86}", "\u{2F96C}" => "\u{7D63}", "\u{2F96D}" => "\u{4301}", "\u{2F96E}" => "\u{7DC7}", + "\u{2F96F}" => "\u{7E02}", "\u{2F970}" => "\u{7E45}", "\u{2F971}" => "\u{4334}", "\u{2F972}" => "\u{26228}", + "\u{2F973}" => "\u{26247}", "\u{2F974}" => "\u{4359}", "\u{2F975}" => "\u{262D9}", "\u{2F976}" => "\u{7F7A}", + "\u{2F977}" => "\u{2633E}", "\u{2F978}" => "\u{7F95}", "\u{2F979}" => "\u{7FFA}", "\u{2F97A}" => "\u{8005}", + "\u{2F97B}" => "\u{264DA}", "\u{2F97C}" => "\u{26523}", "\u{2F97D}" => "\u{8060}", "\u{2F97E}" => "\u{265A8}", + "\u{2F97F}" => "\u{8070}", "\u{2F980}" => "\u{2335F}", "\u{2F981}" => "\u{43D5}", "\u{2F982}" => "\u{80B2}", + "\u{2F983}" => "\u{8103}", "\u{2F984}" => "\u{440B}", "\u{2F985}" => "\u{813E}", "\u{2F986}" => "\u{5AB5}", + "\u{2F987}" => "\u{267A7}", "\u{2F988}" => "\u{267B5}", "\u{2F989}" => "\u{23393}", "\u{2F98A}" => "\u{2339C}", + "\u{2F98B}" => "\u{8201}", "\u{2F98C}" => "\u{8204}", "\u{2F98D}" => "\u{8F9E}", "\u{2F98E}" => "\u{446B}", + "\u{2F98F}" => "\u{8291}", "\u{2F990}" => "\u{828B}", "\u{2F991}" => "\u{829D}", "\u{2F992}" => "\u{52B3}", + "\u{2F993}" => "\u{82B1}", "\u{2F994}" => "\u{82B3}", "\u{2F995}" => "\u{82BD}", "\u{2F996}" => "\u{82E6}", + "\u{2F997}" => "\u{26B3C}", "\u{2F998}" => "\u{82E5}", "\u{2F999}" => "\u{831D}", "\u{2F99A}" => "\u{8363}", + "\u{2F99B}" => "\u{83AD}", "\u{2F99C}" => "\u{8323}", "\u{2F99D}" => "\u{83BD}", "\u{2F99E}" => "\u{83E7}", + "\u{2F99F}" => "\u{8457}", "\u{2F9A0}" => "\u{8353}", "\u{2F9A1}" => "\u{83CA}", "\u{2F9A2}" => "\u{83CC}", + "\u{2F9A3}" => "\u{83DC}", "\u{2F9A4}" => "\u{26C36}", "\u{2F9A5}" => "\u{26D6B}", "\u{2F9A6}" => "\u{26CD5}", + "\u{2F9A7}" => "\u{452B}", "\u{2F9A8}" => "\u{84F1}", "\u{2F9A9}" => "\u{84F3}", "\u{2F9AA}" => "\u{8516}", + "\u{2F9AB}" => "\u{273CA}", "\u{2F9AC}" => "\u{8564}", "\u{2F9AD}" => "\u{26F2C}", "\u{2F9AE}" => "\u{455D}", + "\u{2F9AF}" => "\u{4561}", "\u{2F9B0}" => "\u{26FB1}", "\u{2F9B1}" => "\u{270D2}", "\u{2F9B2}" => "\u{456B}", + "\u{2F9B3}" => "\u{8650}", "\u{2F9B4}" => "\u{865C}", "\u{2F9B5}" => "\u{8667}", "\u{2F9B6}" => "\u{8669}", + "\u{2F9B7}" => "\u{86A9}", "\u{2F9B8}" => "\u{8688}", "\u{2F9B9}" => "\u{870E}", "\u{2F9BA}" => "\u{86E2}", + "\u{2F9BB}" => "\u{8779}", "\u{2F9BC}" => "\u{8728}", "\u{2F9BD}" => "\u{876B}", "\u{2F9BE}" => "\u{8786}", + "\u{2F9BF}" => "\u{45D7}", "\u{2F9C0}" => "\u{87E1}", "\u{2F9C1}" => "\u{8801}", "\u{2F9C2}" => "\u{45F9}", + "\u{2F9C3}" => "\u{8860}", "\u{2F9C4}" => "\u{8863}", "\u{2F9C5}" => "\u{27667}", "\u{2F9C6}" => "\u{88D7}", + "\u{2F9C7}" => "\u{88DE}", "\u{2F9C8}" => "\u{4635}", "\u{2F9C9}" => "\u{88FA}", "\u{2F9CA}" => "\u{34BB}", + "\u{2F9CB}" => "\u{278AE}", "\u{2F9CC}" => "\u{27966}", "\u{2F9CD}" => "\u{46BE}", "\u{2F9CE}" => "\u{46C7}", + "\u{2F9CF}" => "\u{8AA0}", "\u{2F9D0}" => "\u{8AED}", "\u{2F9D1}" => "\u{8B8A}", "\u{2F9D2}" => "\u{8C55}", + "\u{2F9D3}" => "\u{27CA8}", "\u{2F9D4}" => "\u{8CAB}", "\u{2F9D5}" => "\u{8CC1}", "\u{2F9D6}" => "\u{8D1B}", + "\u{2F9D7}" => "\u{8D77}", "\u{2F9D8}" => "\u{27F2F}", "\u{2F9D9}" => "\u{20804}", "\u{2F9DA}" => "\u{8DCB}", + "\u{2F9DB}" => "\u{8DBC}", "\u{2F9DC}" => "\u{8DF0}", "\u{2F9DD}" => "\u{208DE}", "\u{2F9DE}" => "\u{8ED4}", + "\u{2F9DF}" => "\u{8F38}", "\u{2F9E0}" => "\u{285D2}", "\u{2F9E1}" => "\u{285ED}", "\u{2F9E2}" => "\u{9094}", + "\u{2F9E3}" => "\u{90F1}", "\u{2F9E4}" => "\u{9111}", "\u{2F9E5}" => "\u{2872E}", "\u{2F9E6}" => "\u{911B}", + "\u{2F9E7}" => "\u{9238}", "\u{2F9E8}" => "\u{92D7}", "\u{2F9E9}" => "\u{92D8}", "\u{2F9EA}" => "\u{927C}", + "\u{2F9EB}" => "\u{93F9}", "\u{2F9EC}" => "\u{9415}", "\u{2F9ED}" => "\u{28BFA}", "\u{2F9EE}" => "\u{958B}", + "\u{2F9EF}" => "\u{4995}", "\u{2F9F0}" => "\u{95B7}", "\u{2F9F1}" => "\u{28D77}", "\u{2F9F2}" => "\u{49E6}", + "\u{2F9F3}" => "\u{96C3}", "\u{2F9F4}" => "\u{5DB2}", "\u{2F9F5}" => "\u{9723}", "\u{2F9F6}" => "\u{29145}", + "\u{2F9F7}" => "\u{2921A}", "\u{2F9F8}" => "\u{4A6E}", "\u{2F9F9}" => "\u{4A76}", "\u{2F9FA}" => "\u{97E0}", + "\u{2F9FB}" => "\u{2940A}", "\u{2F9FC}" => "\u{4AB2}", "\u{2F9FD}" => "\u{29496}", "\u{2F9FE}" => "\u{980B}", + "\u{2F9FF}" => "\u{980B}", "\u{2FA00}" => "\u{9829}", "\u{2FA01}" => "\u{295B6}", "\u{2FA02}" => "\u{98E2}", + "\u{2FA03}" => "\u{4B33}", "\u{2FA04}" => "\u{9929}", "\u{2FA05}" => "\u{99A7}", "\u{2FA06}" => "\u{99C2}", + "\u{2FA07}" => "\u{99FE}", "\u{2FA08}" => "\u{4BCE}", "\u{2FA09}" => "\u{29B30}", "\u{2FA0A}" => "\u{9B12}", + "\u{2FA0B}" => "\u{9C40}", "\u{2FA0C}" => "\u{9CFD}", "\u{2FA0D}" => "\u{4CCE}", "\u{2FA0E}" => "\u{4CED}", + "\u{2FA0F}" => "\u{9D67}", "\u{2FA10}" => "\u{2A0CE}", "\u{2FA11}" => "\u{4CF8}", "\u{2FA12}" => "\u{2A105}", + "\u{2FA13}" => "\u{2A20E}", "\u{2FA14}" => "\u{2A291}", "\u{2FA15}" => "\u{9EBB}", "\u{2FA16}" => "\u{4D56}", + "\u{2FA17}" => "\u{9EF9}", "\u{2FA18}" => "\u{9EFE}", "\u{2FA19}" => "\u{9F05}", "\u{2FA1A}" => "\u{9F0F}", + "\u{2FA1B}" => "\u{9F16}", "\u{2FA1C}" => "\u{9F3B}", "\u{2FA1D}" => "\u{2A600}", "\u{E0100}" => "", + "\u{E0101}" => "", "\u{E0102}" => "", "\u{E0103}" => "", "\u{E0104}" => "", + "\u{E0105}" => "", "\u{E0106}" => "", "\u{E0107}" => "", "\u{E0108}" => "", + "\u{E0109}" => "", "\u{E010A}" => "", "\u{E010B}" => "", "\u{E010C}" => "", + "\u{E010D}" => "", "\u{E010E}" => "", "\u{E010F}" => "", "\u{E0110}" => "", + "\u{E0111}" => "", "\u{E0112}" => "", "\u{E0113}" => "", "\u{E0114}" => "", + "\u{E0115}" => "", "\u{E0116}" => "", "\u{E0117}" => "", "\u{E0118}" => "", + "\u{E0119}" => "", "\u{E011A}" => "", "\u{E011B}" => "", "\u{E011C}" => "", + "\u{E011D}" => "", "\u{E011E}" => "", "\u{E011F}" => "", "\u{E0120}" => "", + "\u{E0121}" => "", "\u{E0122}" => "", "\u{E0123}" => "", "\u{E0124}" => "", + "\u{E0125}" => "", "\u{E0126}" => "", "\u{E0127}" => "", "\u{E0128}" => "", + "\u{E0129}" => "", "\u{E012A}" => "", "\u{E012B}" => "", "\u{E012C}" => "", + "\u{E012D}" => "", "\u{E012E}" => "", "\u{E012F}" => "", "\u{E0130}" => "", + "\u{E0131}" => "", "\u{E0132}" => "", "\u{E0133}" => "", "\u{E0134}" => "", + "\u{E0135}" => "", "\u{E0136}" => "", "\u{E0137}" => "", "\u{E0138}" => "", + "\u{E0139}" => "", "\u{E013A}" => "", "\u{E013B}" => "", "\u{E013C}" => "", + "\u{E013D}" => "", "\u{E013E}" => "", "\u{E013F}" => "", "\u{E0140}" => "", + "\u{E0141}" => "", "\u{E0142}" => "", "\u{E0143}" => "", "\u{E0144}" => "", + "\u{E0145}" => "", "\u{E0146}" => "", "\u{E0147}" => "", "\u{E0148}" => "", + "\u{E0149}" => "", "\u{E014A}" => "", "\u{E014B}" => "", "\u{E014C}" => "", + "\u{E014D}" => "", "\u{E014E}" => "", "\u{E014F}" => "", "\u{E0150}" => "", + "\u{E0151}" => "", "\u{E0152}" => "", "\u{E0153}" => "", "\u{E0154}" => "", + "\u{E0155}" => "", "\u{E0156}" => "", "\u{E0157}" => "", "\u{E0158}" => "", + "\u{E0159}" => "", "\u{E015A}" => "", "\u{E015B}" => "", "\u{E015C}" => "", + "\u{E015D}" => "", "\u{E015E}" => "", "\u{E015F}" => "", "\u{E0160}" => "", + "\u{E0161}" => "", "\u{E0162}" => "", "\u{E0163}" => "", "\u{E0164}" => "", + "\u{E0165}" => "", "\u{E0166}" => "", "\u{E0167}" => "", "\u{E0168}" => "", + "\u{E0169}" => "", "\u{E016A}" => "", "\u{E016B}" => "", "\u{E016C}" => "", + "\u{E016D}" => "", "\u{E016E}" => "", "\u{E016F}" => "", "\u{E0170}" => "", + "\u{E0171}" => "", "\u{E0172}" => "", "\u{E0173}" => "", "\u{E0174}" => "", + "\u{E0175}" => "", "\u{E0176}" => "", "\u{E0177}" => "", "\u{E0178}" => "", + "\u{E0179}" => "", "\u{E017A}" => "", "\u{E017B}" => "", "\u{E017C}" => "", + "\u{E017D}" => "", "\u{E017E}" => "", "\u{E017F}" => "", "\u{E0180}" => "", + "\u{E0181}" => "", "\u{E0182}" => "", "\u{E0183}" => "", "\u{E0184}" => "", + "\u{E0185}" => "", "\u{E0186}" => "", "\u{E0187}" => "", "\u{E0188}" => "", + "\u{E0189}" => "", "\u{E018A}" => "", "\u{E018B}" => "", "\u{E018C}" => "", + "\u{E018D}" => "", "\u{E018E}" => "", "\u{E018F}" => "", "\u{E0190}" => "", + "\u{E0191}" => "", "\u{E0192}" => "", "\u{E0193}" => "", "\u{E0194}" => "", + "\u{E0195}" => "", "\u{E0196}" => "", "\u{E0197}" => "", "\u{E0198}" => "", + "\u{E0199}" => "", "\u{E019A}" => "", "\u{E019B}" => "", "\u{E019C}" => "", + "\u{E019D}" => "", "\u{E019E}" => "", "\u{E019F}" => "", "\u{E01A0}" => "", + "\u{E01A1}" => "", "\u{E01A2}" => "", "\u{E01A3}" => "", "\u{E01A4}" => "", + "\u{E01A5}" => "", "\u{E01A6}" => "", "\u{E01A7}" => "", "\u{E01A8}" => "", + "\u{E01A9}" => "", "\u{E01AA}" => "", "\u{E01AB}" => "", "\u{E01AC}" => "", + "\u{E01AD}" => "", "\u{E01AE}" => "", "\u{E01AF}" => "", "\u{E01B0}" => "", + "\u{E01B1}" => "", "\u{E01B2}" => "", "\u{E01B3}" => "", "\u{E01B4}" => "", + "\u{E01B5}" => "", "\u{E01B6}" => "", "\u{E01B7}" => "", "\u{E01B8}" => "", + "\u{E01B9}" => "", "\u{E01BA}" => "", "\u{E01BB}" => "", "\u{E01BC}" => "", + "\u{E01BD}" => "", "\u{E01BE}" => "", "\u{E01BF}" => "", "\u{E01C0}" => "", + "\u{E01C1}" => "", "\u{E01C2}" => "", "\u{E01C3}" => "", "\u{E01C4}" => "", + "\u{E01C5}" => "", "\u{E01C6}" => "", "\u{E01C7}" => "", "\u{E01C8}" => "", + "\u{E01C9}" => "", "\u{E01CA}" => "", "\u{E01CB}" => "", "\u{E01CC}" => "", + "\u{E01CD}" => "", "\u{E01CE}" => "", "\u{E01CF}" => "", "\u{E01D0}" => "", + "\u{E01D1}" => "", "\u{E01D2}" => "", "\u{E01D3}" => "", "\u{E01D4}" => "", + "\u{E01D5}" => "", "\u{E01D6}" => "", "\u{E01D7}" => "", "\u{E01D8}" => "", + "\u{E01D9}" => "", "\u{E01DA}" => "", "\u{E01DB}" => "", "\u{E01DC}" => "", + "\u{E01DD}" => "", "\u{E01DE}" => "", "\u{E01DF}" => "", "\u{E01E0}" => "", + "\u{E01E1}" => "", "\u{E01E2}" => "", "\u{E01E3}" => "", "\u{E01E4}" => "", + "\u{E01E5}" => "", "\u{E01E6}" => "", "\u{E01E7}" => "", "\u{E01E8}" => "", + "\u{E01E9}" => "", "\u{E01EA}" => "", "\u{E01EB}" => "", "\u{E01EC}" => "", + "\u{E01ED}" => "", "\u{E01EE}" => "", "\u{E01EF}" => "", + }.freeze + + # A code point whose status is neither "valid" nor "deviation". + # A deviation is valid in Nontransitional Processing. + INVALID = /[^\u{0}-\u{40}\u{5B}-\u{7F}\u{A1}-\u{A7}\u{A9}\u{AB}-\u{AC}\u{AE}\u{B0}-\u{B1}\u{B6}-\u{B7}\u{BB}\u{BF}\u{D7}\u{DF}-\u{FF}\u{101}\u{103}\u{105}\u{107}\u{109}\u{10B}\u{10D}\u{10F}\u{111}\u{113}\u{115}\u{117}\u{119}\u{11B}\u{11D}\u{11F}\u{121}\u{123}\u{125}\u{127}\u{129}\u{12B}\u{12D}\u{12F}\u{131}\u{135}\u{137}-\u{138}\u{13A}\u{13C}\u{13E}\u{142}\u{144}\u{146}\u{148}\u{14B}\u{14D}\u{14F}\u{151}\u{153}\u{155}\u{157}\u{159}\u{15B}\u{15D}\u{15F}\u{161}\u{163}\u{165}\u{167}\u{169}\u{16B}\u{16D}\u{16F}\u{171}\u{173}\u{175}\u{177}\u{17A}\u{17C}\u{17E}\u{180}\u{183}\u{185}\u{188}\u{18C}-\u{18D}\u{192}\u{195}\u{199}-\u{19B}\u{19E}\u{1A1}\u{1A3}\u{1A5}\u{1A8}\u{1AA}-\u{1AB}\u{1AD}\u{1B0}\u{1B4}\u{1B6}\u{1B9}-\u{1BB}\u{1BD}-\u{1C3}\u{1CE}\u{1D0}\u{1D2}\u{1D4}\u{1D6}\u{1D8}\u{1DA}\u{1DC}-\u{1DD}\u{1DF}\u{1E1}\u{1E3}\u{1E5}\u{1E7}\u{1E9}\u{1EB}\u{1ED}\u{1EF}-\u{1F0}\u{1F5}\u{1F9}\u{1FB}\u{1FD}\u{1FF}\u{201}\u{203}\u{205}\u{207}\u{209}\u{20B}\u{20D}\u{20F}\u{211}\u{213}\u{215}\u{217}\u{219}\u{21B}\u{21D}\u{21F}\u{221}\u{223}\u{225}\u{227}\u{229}\u{22B}\u{22D}\u{22F}\u{231}\u{233}-\u{239}\u{23C}\u{23F}-\u{240}\u{242}\u{247}\u{249}\u{24B}\u{24D}\u{24F}-\u{2AF}\u{2B9}-\u{2D7}\u{2DE}-\u{2DF}\u{2E5}-\u{33F}\u{342}\u{346}-\u{34E}\u{350}-\u{36F}\u{371}\u{373}\u{375}\u{377}\u{37B}-\u{37D}\u{390}\u{3AC}-\u{3CE}\u{3D7}\u{3D9}\u{3DB}\u{3DD}\u{3DF}\u{3E1}\u{3E3}\u{3E5}\u{3E7}\u{3E9}\u{3EB}\u{3ED}\u{3EF}\u{3F3}\u{3F6}\u{3F8}\u{3FB}-\u{3FC}\u{430}-\u{45F}\u{461}\u{463}\u{465}\u{467}\u{469}\u{46B}\u{46D}\u{46F}\u{471}\u{473}\u{475}\u{477}\u{479}\u{47B}\u{47D}\u{47F}\u{481}-\u{489}\u{48B}\u{48D}\u{48F}\u{491}\u{493}\u{495}\u{497}\u{499}\u{49B}\u{49D}\u{49F}\u{4A1}\u{4A3}\u{4A5}\u{4A7}\u{4A9}\u{4AB}\u{4AD}\u{4AF}\u{4B1}\u{4B3}\u{4B5}\u{4B7}\u{4B9}\u{4BB}\u{4BD}\u{4BF}\u{4C2}\u{4C4}\u{4C6}\u{4C8}\u{4CA}\u{4CC}\u{4CE}-\u{4CF}\u{4D1}\u{4D3}\u{4D5}\u{4D7}\u{4D9}\u{4DB}\u{4DD}\u{4DF}\u{4E1}\u{4E3}\u{4E5}\u{4E7}\u{4E9}\u{4EB}\u{4ED}\u{4EF}\u{4F1}\u{4F3}\u{4F5}\u{4F7}\u{4F9}\u{4FB}\u{4FD}\u{4FF}\u{501}\u{503}\u{505}\u{507}\u{509}\u{50B}\u{50D}\u{50F}\u{511}\u{513}\u{515}\u{517}\u{519}\u{51B}\u{51D}\u{51F}\u{521}\u{523}\u{525}\u{527}\u{529}\u{52B}\u{52D}\u{52F}\u{559}-\u{586}\u{588}-\u{58A}\u{58D}-\u{58F}\u{591}-\u{5C9}\u{5D0}-\u{5EA}\u{5EF}-\u{5F4}\u{606}-\u{61B}\u{61D}-\u{674}\u{679}-\u{6DC}\u{6DE}-\u{70D}\u{710}-\u{74A}\u{74D}-\u{7B1}\u{7C0}-\u{7FA}\u{7FD}-\u{82D}\u{830}-\u{83E}\u{840}-\u{85B}\u{85E}\u{860}-\u{86A}\u{870}-\u{88F}\u{897}-\u{8E1}\u{8E3}-\u{957}\u{960}-\u{983}\u{985}-\u{98C}\u{98F}-\u{990}\u{993}-\u{9A8}\u{9AA}-\u{9B0}\u{9B2}\u{9B6}-\u{9B9}\u{9BC}-\u{9C4}\u{9C7}-\u{9C8}\u{9CB}-\u{9CE}\u{9D7}\u{9E0}-\u{9E3}\u{9E6}-\u{9FE}\u{A01}-\u{A03}\u{A05}-\u{A0A}\u{A0F}-\u{A10}\u{A13}-\u{A28}\u{A2A}-\u{A30}\u{A32}\u{A35}\u{A38}-\u{A39}\u{A3C}\u{A3E}-\u{A42}\u{A47}-\u{A48}\u{A4B}-\u{A4D}\u{A51}\u{A5C}\u{A66}-\u{A76}\u{A81}-\u{A83}\u{A85}-\u{A8D}\u{A8F}-\u{A91}\u{A93}-\u{AA8}\u{AAA}-\u{AB0}\u{AB2}-\u{AB3}\u{AB5}-\u{AB9}\u{ABC}-\u{AC5}\u{AC7}-\u{AC9}\u{ACB}-\u{ACD}\u{AD0}\u{AE0}-\u{AE3}\u{AE6}-\u{AF1}\u{AF9}-\u{AFF}\u{B01}-\u{B03}\u{B05}-\u{B0C}\u{B0F}-\u{B10}\u{B13}-\u{B28}\u{B2A}-\u{B30}\u{B32}-\u{B33}\u{B35}-\u{B39}\u{B3C}-\u{B44}\u{B47}-\u{B48}\u{B4B}-\u{B4D}\u{B53}-\u{B57}\u{B5F}-\u{B63}\u{B66}-\u{B77}\u{B82}-\u{B83}\u{B85}-\u{B8A}\u{B8E}-\u{B90}\u{B92}-\u{B95}\u{B99}-\u{B9A}\u{B9C}\u{B9E}-\u{B9F}\u{BA3}-\u{BA4}\u{BA8}-\u{BAA}\u{BAE}-\u{BB9}\u{BBE}-\u{BC2}\u{BC6}-\u{BC8}\u{BCA}-\u{BCD}\u{BD0}\u{BD7}\u{BE6}-\u{BFA}\u{C00}-\u{C0C}\u{C0E}-\u{C10}\u{C12}-\u{C28}\u{C2A}-\u{C39}\u{C3C}-\u{C44}\u{C46}-\u{C48}\u{C4A}-\u{C4D}\u{C55}-\u{C56}\u{C58}-\u{C5A}\u{C5C}-\u{C5D}\u{C60}-\u{C63}\u{C66}-\u{C6F}\u{C77}-\u{C8C}\u{C8E}-\u{C90}\u{C92}-\u{CA8}\u{CAA}-\u{CB3}\u{CB5}-\u{CB9}\u{CBC}-\u{CC4}\u{CC6}-\u{CC8}\u{CCA}-\u{CCD}\u{CD5}-\u{CD6}\u{CDC}-\u{CDE}\u{CE0}-\u{CE3}\u{CE6}-\u{CEF}\u{CF1}-\u{CF3}\u{D00}-\u{D0C}\u{D0E}-\u{D10}\u{D12}-\u{D44}\u{D46}-\u{D48}\u{D4A}-\u{D4F}\u{D54}-\u{D63}\u{D66}-\u{D7F}\u{D81}-\u{D83}\u{D85}-\u{D96}\u{D9A}-\u{DB1}\u{DB3}-\u{DBB}\u{DBD}\u{DC0}-\u{DC6}\u{DCA}\u{DCF}-\u{DD4}\u{DD6}\u{DD8}-\u{DDF}\u{DE6}-\u{DEF}\u{DF2}-\u{DF4}\u{E01}-\u{E32}\u{E34}-\u{E3A}\u{E3F}-\u{E5B}\u{E81}-\u{E82}\u{E84}\u{E86}-\u{E8A}\u{E8C}-\u{EA3}\u{EA5}\u{EA7}-\u{EB2}\u{EB4}-\u{EBD}\u{EC0}-\u{EC4}\u{EC6}\u{EC8}-\u{ECE}\u{ED0}-\u{ED9}\u{EDE}-\u{EDF}\u{F00}-\u{F0B}\u{F0D}-\u{F42}\u{F44}-\u{F47}\u{F49}-\u{F4C}\u{F4E}-\u{F51}\u{F53}-\u{F56}\u{F58}-\u{F5B}\u{F5D}-\u{F68}\u{F6A}-\u{F6C}\u{F71}-\u{F72}\u{F74}\u{F7A}-\u{F80}\u{F82}-\u{F92}\u{F94}-\u{F97}\u{F99}-\u{F9C}\u{F9E}-\u{FA1}\u{FA3}-\u{FA6}\u{FA8}-\u{FAB}\u{FAD}-\u{FB8}\u{FBA}-\u{FBC}\u{FBE}-\u{FCC}\u{FCE}-\u{FDA}\u{1000}-\u{109F}\u{10D0}-\u{10FB}\u{10FD}-\u{115E}\u{1161}-\u{1248}\u{124A}-\u{124D}\u{1250}-\u{1256}\u{1258}\u{125A}-\u{125D}\u{1260}-\u{1288}\u{128A}-\u{128D}\u{1290}-\u{12B0}\u{12B2}-\u{12B5}\u{12B8}-\u{12BE}\u{12C0}\u{12C2}-\u{12C5}\u{12C8}-\u{12D6}\u{12D8}-\u{1310}\u{1312}-\u{1315}\u{1318}-\u{135A}\u{135D}-\u{137C}\u{1380}-\u{1399}\u{13A0}-\u{13F5}\u{1400}-\u{167F}\u{1681}-\u{169C}\u{16A0}-\u{16F8}\u{1700}-\u{1715}\u{171F}-\u{1736}\u{1740}-\u{1753}\u{1760}-\u{176C}\u{176E}-\u{1770}\u{1772}-\u{1773}\u{1780}-\u{17B3}\u{17B6}-\u{17DD}\u{17E0}-\u{17E9}\u{17F0}-\u{17F9}\u{1800}-\u{180A}\u{1810}-\u{1819}\u{1820}-\u{1878}\u{1880}-\u{18AA}\u{18B0}-\u{18F5}\u{1900}-\u{191E}\u{1920}-\u{192B}\u{1930}-\u{193B}\u{1940}\u{1944}-\u{196D}\u{1970}-\u{1974}\u{1980}-\u{19AB}\u{19B0}-\u{19C9}\u{19D0}-\u{19DA}\u{19DE}-\u{1A1B}\u{1A1E}-\u{1A5E}\u{1A60}-\u{1A7C}\u{1A7F}-\u{1A89}\u{1A90}-\u{1A99}\u{1AA0}-\u{1AAD}\u{1AB0}-\u{1AF0}\u{1B00}-\u{1B4C}\u{1B4E}-\u{1BF3}\u{1BFC}-\u{1C37}\u{1C3B}-\u{1C49}\u{1C4D}-\u{1C7F}\u{1C8A}\u{1CC0}-\u{1CC7}\u{1CD0}-\u{1CFA}\u{1D00}-\u{1D2B}\u{1D2F}\u{1D3B}\u{1D4E}\u{1D6B}-\u{1D77}\u{1D79}-\u{1D9A}\u{1DC0}-\u{1DFF}\u{1E01}\u{1E03}\u{1E05}\u{1E07}\u{1E09}\u{1E0B}\u{1E0D}\u{1E0F}\u{1E11}\u{1E13}\u{1E15}\u{1E17}\u{1E19}\u{1E1B}\u{1E1D}\u{1E1F}\u{1E21}\u{1E23}\u{1E25}\u{1E27}\u{1E29}\u{1E2B}\u{1E2D}\u{1E2F}\u{1E31}\u{1E33}\u{1E35}\u{1E37}\u{1E39}\u{1E3B}\u{1E3D}\u{1E3F}\u{1E41}\u{1E43}\u{1E45}\u{1E47}\u{1E49}\u{1E4B}\u{1E4D}\u{1E4F}\u{1E51}\u{1E53}\u{1E55}\u{1E57}\u{1E59}\u{1E5B}\u{1E5D}\u{1E5F}\u{1E61}\u{1E63}\u{1E65}\u{1E67}\u{1E69}\u{1E6B}\u{1E6D}\u{1E6F}\u{1E71}\u{1E73}\u{1E75}\u{1E77}\u{1E79}\u{1E7B}\u{1E7D}\u{1E7F}\u{1E81}\u{1E83}\u{1E85}\u{1E87}\u{1E89}\u{1E8B}\u{1E8D}\u{1E8F}\u{1E91}\u{1E93}\u{1E95}-\u{1E99}\u{1E9C}-\u{1E9D}\u{1E9F}\u{1EA1}\u{1EA3}\u{1EA5}\u{1EA7}\u{1EA9}\u{1EAB}\u{1EAD}\u{1EAF}\u{1EB1}\u{1EB3}\u{1EB5}\u{1EB7}\u{1EB9}\u{1EBB}\u{1EBD}\u{1EBF}\u{1EC1}\u{1EC3}\u{1EC5}\u{1EC7}\u{1EC9}\u{1ECB}\u{1ECD}\u{1ECF}\u{1ED1}\u{1ED3}\u{1ED5}\u{1ED7}\u{1ED9}\u{1EDB}\u{1EDD}\u{1EDF}\u{1EE1}\u{1EE3}\u{1EE5}\u{1EE7}\u{1EE9}\u{1EEB}\u{1EED}\u{1EEF}\u{1EF1}\u{1EF3}\u{1EF5}\u{1EF7}\u{1EF9}\u{1EFB}\u{1EFD}\u{1EFF}-\u{1F07}\u{1F10}-\u{1F15}\u{1F20}-\u{1F27}\u{1F30}-\u{1F37}\u{1F40}-\u{1F45}\u{1F50}-\u{1F57}\u{1F60}-\u{1F67}\u{1F70}\u{1F72}\u{1F74}\u{1F76}\u{1F78}\u{1F7A}\u{1F7C}\u{1FB0}-\u{1FB1}\u{1FB6}\u{1FC6}\u{1FD0}-\u{1FD2}\u{1FD6}-\u{1FD7}\u{1FE0}-\u{1FE2}\u{1FE4}-\u{1FE7}\u{1FF6}\u{200C}-\u{200D}\u{2010}\u{2012}-\u{2016}\u{2018}-\u{2023}\u{2027}\u{2030}-\u{2032}\u{2035}\u{2038}-\u{203B}\u{203D}\u{203F}-\u{2046}\u{204A}-\u{2056}\u{2058}-\u{205E}\u{208F}\u{20A0}-\u{20A7}\u{20A9}-\u{20C4}\u{20D0}-\u{20F0}\u{2104}\u{2108}\u{2114}\u{2117}-\u{2118}\u{211E}-\u{211F}\u{2123}\u{2125}\u{2127}\u{2129}\u{212E}\u{213A}\u{2141}-\u{2144}\u{214A}-\u{214F}\u{2180}-\u{2182}\u{2184}-\u{2188}\u{218A}-\u{218B}\u{2190}-\u{222B}\u{222E}\u{2231}-\u{2328}\u{232B}-\u{2429}\u{2440}-\u{244A}\u{24EB}-\u{2A0B}\u{2A0D}-\u{2A73}\u{2A77}-\u{2ADB}\u{2ADD}-\u{2B73}\u{2B76}-\u{2BFF}\u{2C30}-\u{2C5F}\u{2C61}\u{2C65}-\u{2C66}\u{2C68}\u{2C6A}\u{2C6C}\u{2C71}\u{2C73}-\u{2C74}\u{2C76}-\u{2C7B}\u{2C81}\u{2C83}\u{2C85}\u{2C87}\u{2C89}\u{2C8B}\u{2C8D}\u{2C8F}\u{2C91}\u{2C93}\u{2C95}\u{2C97}\u{2C99}\u{2C9B}\u{2C9D}\u{2C9F}\u{2CA1}\u{2CA3}\u{2CA5}\u{2CA7}\u{2CA9}\u{2CAB}\u{2CAD}\u{2CAF}\u{2CB1}\u{2CB3}\u{2CB5}\u{2CB7}\u{2CB9}\u{2CBB}\u{2CBD}\u{2CBF}\u{2CC1}\u{2CC3}\u{2CC5}\u{2CC7}\u{2CC9}\u{2CCB}\u{2CCD}\u{2CCF}\u{2CD1}\u{2CD3}\u{2CD5}\u{2CD7}\u{2CD9}\u{2CDB}\u{2CDD}\u{2CDF}\u{2CE1}\u{2CE3}-\u{2CEA}\u{2CEC}\u{2CEE}-\u{2CF1}\u{2CF3}\u{2CF9}-\u{2D25}\u{2D27}\u{2D2D}\u{2D30}-\u{2D67}\u{2D70}\u{2D7F}-\u{2D96}\u{2DA0}-\u{2DA6}\u{2DA8}-\u{2DAE}\u{2DB0}-\u{2DB6}\u{2DB8}-\u{2DBE}\u{2DC0}-\u{2DC6}\u{2DC8}-\u{2DCE}\u{2DD0}-\u{2DD6}\u{2DD8}-\u{2DDE}\u{2DE0}-\u{2E5D}\u{2E60}-\u{2E63}\u{2E80}-\u{2E99}\u{2E9B}-\u{2E9E}\u{2EA0}-\u{2EF2}\u{3001}\u{3003}-\u{3035}\u{3037}\u{303B}-\u{303F}\u{3041}-\u{3096}\u{3099}-\u{309A}\u{309D}-\u{309E}\u{30A0}-\u{30FE}\u{3105}-\u{312F}\u{3190}-\u{3191}\u{31A0}-\u{31E5}\u{31F0}-\u{31FF}\u{3248}-\u{324F}\u{327F}\u{3400}-\u{A48C}\u{A490}-\u{A4C6}\u{A4D0}-\u{A62B}\u{A641}\u{A643}\u{A645}\u{A647}\u{A649}\u{A64B}\u{A64D}\u{A64F}\u{A651}\u{A653}\u{A655}\u{A657}\u{A659}\u{A65B}\u{A65D}\u{A65F}\u{A661}\u{A663}\u{A665}\u{A667}\u{A669}\u{A66B}\u{A66D}-\u{A67F}\u{A681}\u{A683}\u{A685}\u{A687}\u{A689}\u{A68B}\u{A68D}\u{A68F}\u{A691}\u{A693}\u{A695}\u{A697}\u{A699}\u{A69B}\u{A69E}-\u{A6F7}\u{A700}-\u{A721}\u{A723}\u{A725}\u{A727}\u{A729}\u{A72B}\u{A72D}\u{A72F}-\u{A731}\u{A733}\u{A735}\u{A737}\u{A739}\u{A73B}\u{A73D}\u{A73F}\u{A741}\u{A743}\u{A745}\u{A747}\u{A749}\u{A74B}\u{A74D}\u{A74F}\u{A751}\u{A753}\u{A755}\u{A757}\u{A759}\u{A75B}\u{A75D}\u{A75F}\u{A761}\u{A763}\u{A765}\u{A767}\u{A769}\u{A76B}\u{A76D}\u{A76F}\u{A771}-\u{A778}\u{A77A}\u{A77C}\u{A77F}\u{A781}\u{A783}\u{A785}\u{A787}-\u{A78A}\u{A78C}\u{A78E}-\u{A78F}\u{A791}\u{A793}-\u{A795}\u{A797}\u{A799}\u{A79B}\u{A79D}\u{A79F}\u{A7A1}\u{A7A3}\u{A7A5}\u{A7A7}\u{A7A9}\u{A7AF}\u{A7B5}\u{A7B7}\u{A7B9}\u{A7BB}\u{A7BD}\u{A7BF}\u{A7C1}\u{A7C3}\u{A7C8}\u{A7CA}\u{A7CD}\u{A7CF}\u{A7D1}\u{A7D3}\u{A7D5}\u{A7D7}\u{A7D9}\u{A7DB}\u{A7F6}-\u{A7F7}\u{A7FA}-\u{A82C}\u{A830}-\u{A839}\u{A840}-\u{A877}\u{A880}-\u{A8C5}\u{A8CE}-\u{A8D9}\u{A8E0}-\u{A953}\u{A95F}-\u{A97C}\u{A980}-\u{A9CD}\u{A9CF}-\u{A9D9}\u{A9DE}-\u{A9FE}\u{AA00}-\u{AA36}\u{AA40}-\u{AA4D}\u{AA50}-\u{AA59}\u{AA5C}-\u{AAC2}\u{AADB}-\u{AAF6}\u{AB01}-\u{AB06}\u{AB09}-\u{AB0E}\u{AB11}-\u{AB16}\u{AB20}-\u{AB26}\u{AB28}-\u{AB2E}\u{AB30}-\u{AB5B}\u{AB60}-\u{AB68}\u{AB6A}-\u{AB6B}\u{ABC0}-\u{ABED}\u{ABF0}-\u{ABF9}\u{AC00}-\u{D7A3}\u{D7B0}-\u{D7C6}\u{D7CB}-\u{D7FB}\u{FA0E}-\u{FA0F}\u{FA11}\u{FA13}-\u{FA14}\u{FA1F}\u{FA21}\u{FA23}-\u{FA24}\u{FA27}-\u{FA29}\u{FB1E}\u{FBB2}-\u{FBD2}\u{FD3E}-\u{FD4F}\u{FD90}-\u{FD91}\u{FDC8}-\u{FDCF}\u{FDFD}-\u{FDFF}\u{FE20}-\u{FE2F}\u{FE45}-\u{FE46}\u{FE73}\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}-\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10100}-\u{10102}\u{10107}-\u{10133}\u{10137}-\u{1018E}\u{10190}-\u{1019C}\u{101A0}\u{101D0}-\u{101FD}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{102E0}-\u{102FB}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{1037A}\u{10380}-\u{1039D}\u{1039F}-\u{103C3}\u{103C8}-\u{103D5}\u{10428}-\u{1049D}\u{104A0}-\u{104A9}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{1056F}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}-\u{105BC}\u{105C0}-\u{105F3}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}-\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}-\u{108F5}\u{108FB}-\u{1091B}\u{1091F}-\u{10939}\u{1093F}-\u{10959}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A03}\u{10A05}-\u{10A06}\u{10A0C}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A38}-\u{10A3A}\u{10A3F}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE6}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B39}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D27}\u{10D30}-\u{10D39}\u{10D40}-\u{10D4F}\u{10D69}-\u{10D85}\u{10D8E}-\u{10D8F}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EAB}-\u{10EAD}\u{10EB0}-\u{10EB1}\u{10EC2}-\u{10EC7}\u{10EC9}-\u{10EEE}\u{10EF0}-\u{10F27}\u{10F30}-\u{10F59}\u{10F70}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{11000}-\u{1104D}\u{11052}-\u{11075}\u{1107F}-\u{110BC}\u{110BE}-\u{110C2}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11100}-\u{11134}\u{11136}-\u{11147}\u{11150}-\u{11176}\u{11180}-\u{111DF}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{11241}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A9}\u{112B0}-\u{112EA}\u{112F0}-\u{112F9}\u{11300}-\u{11303}\u{11305}-\u{1130C}\u{1130F}-\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}-\u{11333}\u{11335}-\u{11339}\u{1133B}-\u{11344}\u{11347}-\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11380}-\u{11389}\u{1138B}\u{1138E}\u{11390}-\u{113B5}\u{113B7}-\u{113C0}\u{113C2}\u{113C5}\u{113C7}-\u{113CA}\u{113CC}-\u{113D5}\u{113D7}-\u{113D8}\u{113E1}-\u{113E2}\u{11400}-\u{1145B}\u{1145D}-\u{11461}\u{11480}-\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B5}\u{115B8}-\u{115DD}\u{11600}-\u{11644}\u{11650}-\u{11659}\u{11660}-\u{1166C}\u{11680}-\u{116B9}\u{116C0}-\u{116C9}\u{116D0}-\u{116E3}\u{11700}-\u{1171A}\u{1171D}-\u{1172B}\u{11730}-\u{11746}\u{11800}-\u{1183B}\u{118C0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}-\u{11916}\u{11918}-\u{11935}\u{11937}-\u{11938}\u{1193B}-\u{11946}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D7}\u{119DA}-\u{119E4}\u{11A00}-\u{11A47}\u{11A50}-\u{11AA2}\u{11AB0}-\u{11AF8}\u{11B00}-\u{11B0A}\u{11B60}-\u{11B67}\u{11BC0}-\u{11BE1}\u{11BF0}-\u{11BF9}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C36}\u{11C38}-\u{11C45}\u{11C50}-\u{11C6C}\u{11C70}-\u{11C8F}\u{11C92}-\u{11CA7}\u{11CA9}-\u{11CB6}\u{11D00}-\u{11D06}\u{11D08}-\u{11D09}\u{11D0B}-\u{11D36}\u{11D3A}\u{11D3C}-\u{11D3D}\u{11D3F}-\u{11D47}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}-\u{11D68}\u{11D6A}-\u{11D8E}\u{11D90}-\u{11D91}\u{11D93}-\u{11D98}\u{11DA0}-\u{11DA9}\u{11DB0}-\u{11DDB}\u{11DE0}-\u{11DE9}\u{11DF0}-\u{11DF1}\u{11EE0}-\u{11EF8}\u{11F00}-\u{11F10}\u{11F12}-\u{11F3A}\u{11F3E}-\u{11F5A}\u{11FB0}\u{11FC0}-\u{11FF1}\u{11FFF}-\u{12399}\u{12400}-\u{12543}\u{12550}-\u{12686}\u{12F90}-\u{12FF2}\u{13000}-\u{1342F}\u{13440}-\u{13455}\u{13460}-\u{143FA}\u{14400}-\u{14646}\u{16100}-\u{16139}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A6E}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF0}-\u{16AF5}\u{16B00}-\u{16B45}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16D40}-\u{16D79}\u{16E60}-\u{16E9A}\u{16EBB}-\u{16ED3}\u{16F00}-\u{16F4A}\u{16F4F}-\u{16F87}\u{16F8F}-\u{16F9F}\u{16FE0}-\u{16FE4}\u{16FF0}-\u{16FF6}\u{17000}-\u{18CDA}\u{18CFF}-\u{18D20}\u{18D80}-\u{18DF2}\u{18E00}-\u{19191}\u{191A0}-\u{191D2}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}-\u{1AFFE}\u{1B000}-\u{1B122}\u{1B127}-\u{1B128}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B168}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9C}-\u{1BC9F}\u{1CC00}-\u{1CCD5}\u{1CCFA}-\u{1CCFC}\u{1CD00}-\u{1CEB3}\u{1CEBA}-\u{1CED0}\u{1CED2}-\u{1CED4}\u{1CEDD}-\u{1CEFD}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D15D}\u{1D165}-\u{1D172}\u{1D17B}-\u{1D1BA}\u{1D1C1}-\u{1D245}\u{1D250}-\u{1D281}\u{1D2C0}-\u{1D2D3}\u{1D2E0}-\u{1D2F3}\u{1D300}-\u{1D356}\u{1D360}-\u{1D378}\u{1D800}-\u{1DA8B}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1DB00}-\u{1DB1C}\u{1DF00}-\u{1DF3F}\u{1DF41}-\u{1DF47}\u{1DF49}\u{1DF4B}-\u{1DF4C}\u{1DF4E}-\u{1DF50}\u{1DF52}-\u{1DF67}\u{1DF69}\u{1DF6B}\u{1DF6D}\u{1DF6F}-\u{1DF71}\u{1DF73}\u{1DF75}\u{1DF77}\u{1DF79}\u{1DF7B}\u{1DF7D}\u{1DF7F}-\u{1DF81}\u{1DF90}-\u{1DF94}\u{1DF96}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}-\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E100}-\u{1E12C}\u{1E130}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}-\u{1E14F}\u{1E290}-\u{1E2AE}\u{1E2C0}-\u{1E2F9}\u{1E2FF}\u{1E4D0}-\u{1E4F9}\u{1E5D0}-\u{1E5FA}\u{1E5FF}\u{1E6C0}-\u{1E6DE}\u{1E6E0}-\u{1E6F5}\u{1E6FE}-\u{1E6FF}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}-\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8D6}\u{1E922}-\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}-\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EEF0}-\u{1EEF1}\u{1F000}-\u{1F02B}\u{1F030}-\u{1F093}\u{1F0A0}-\u{1F0AE}\u{1F0B1}-\u{1F0BF}\u{1F0C1}-\u{1F0CF}\u{1F0D1}-\u{1F0F5}\u{1F10B}-\u{1F10F}\u{1F12F}\u{1F150}-\u{1F169}\u{1F16D}-\u{1F18F}\u{1F191}-\u{1F1AE}\u{1F1E6}-\u{1F1FF}\u{1F260}-\u{1F265}\u{1F300}-\u{1F6D9}\u{1F6DC}-\u{1F6EC}\u{1F6F0}-\u{1F6FC}\u{1F700}-\u{1F7DB}\u{1F7E0}-\u{1F7EB}\u{1F7F0}-\u{1F80B}\u{1F810}-\u{1F847}\u{1F850}-\u{1F859}\u{1F860}-\u{1F887}\u{1F890}-\u{1F8AD}\u{1F8B0}-\u{1F8BB}\u{1F8C0}-\u{1F8C1}\u{1F8D0}-\u{1F8D8}\u{1F900}-\u{1FA57}\u{1FA60}-\u{1FA6D}\u{1FA70}-\u{1FA7C}\u{1FA80}-\u{1FAC6}\u{1FAC8}\u{1FACC}-\u{1FADD}\u{1FADF}-\u{1FAEB}\u{1FAEF}-\u{1FAFA}\u{1FB00}-\u{1FB92}\u{1FB94}-\u{1FBEF}\u{1FBFA}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B81E}\u{2B820}-\u{2CEAD}\u{2CEB0}-\u{2EBE0}\u{2EBF0}-\u{2EE5D}\u{30000}-\u{3134A}\u{31350}-\u{33479}\u{3D000}-\u{3FC3F}]/ + + # General_Category=Mark, among the valid code points. + MARK = /[\u{300}-\u{33F}\u{342}\u{346}-\u{34E}\u{350}-\u{36F}\u{483}-\u{489}\u{591}-\u{5BD}\u{5BF}\u{5C1}-\u{5C2}\u{5C4}-\u{5C5}\u{5C7}-\u{5C9}\u{610}-\u{61A}\u{64B}-\u{65F}\u{670}\u{6D6}-\u{6DC}\u{6DF}-\u{6E4}\u{6E7}-\u{6E8}\u{6EA}-\u{6ED}\u{711}\u{730}-\u{74A}\u{7A6}-\u{7B0}\u{7EB}-\u{7F3}\u{7FD}\u{816}-\u{819}\u{81B}-\u{823}\u{825}-\u{827}\u{829}-\u{82D}\u{859}-\u{85B}\u{897}-\u{89F}\u{8CA}-\u{8E1}\u{8E3}-\u{903}\u{93A}-\u{93C}\u{93E}-\u{94F}\u{951}-\u{957}\u{962}-\u{963}\u{981}-\u{983}\u{9BC}\u{9BE}-\u{9C4}\u{9C7}-\u{9C8}\u{9CB}-\u{9CD}\u{9D7}\u{9E2}-\u{9E3}\u{9FE}\u{A01}-\u{A03}\u{A3C}\u{A3E}-\u{A42}\u{A47}-\u{A48}\u{A4B}-\u{A4D}\u{A51}\u{A70}-\u{A71}\u{A75}\u{A81}-\u{A83}\u{ABC}\u{ABE}-\u{AC5}\u{AC7}-\u{AC9}\u{ACB}-\u{ACD}\u{AE2}-\u{AE3}\u{AFA}-\u{AFF}\u{B01}-\u{B03}\u{B3C}\u{B3E}-\u{B44}\u{B47}-\u{B48}\u{B4B}-\u{B4D}\u{B53}-\u{B57}\u{B62}-\u{B63}\u{B82}\u{BBE}-\u{BC2}\u{BC6}-\u{BC8}\u{BCA}-\u{BCD}\u{BD7}\u{C00}-\u{C04}\u{C3C}\u{C3E}-\u{C44}\u{C46}-\u{C48}\u{C4A}-\u{C4D}\u{C55}-\u{C56}\u{C62}-\u{C63}\u{C81}-\u{C83}\u{CBC}\u{CBE}-\u{CC4}\u{CC6}-\u{CC8}\u{CCA}-\u{CCD}\u{CD5}-\u{CD6}\u{CE2}-\u{CE3}\u{CF3}\u{D00}-\u{D03}\u{D3B}-\u{D3C}\u{D3E}-\u{D44}\u{D46}-\u{D48}\u{D4A}-\u{D4D}\u{D57}\u{D62}-\u{D63}\u{D81}-\u{D83}\u{DCA}\u{DCF}-\u{DD4}\u{DD6}\u{DD8}-\u{DDF}\u{DF2}-\u{DF3}\u{E31}\u{E34}-\u{E3A}\u{E47}-\u{E4E}\u{EB1}\u{EB4}-\u{EBC}\u{EC8}-\u{ECE}\u{F18}-\u{F19}\u{F35}\u{F37}\u{F39}\u{F3E}-\u{F3F}\u{F71}-\u{F72}\u{F74}\u{F7A}-\u{F80}\u{F82}-\u{F84}\u{F86}-\u{F87}\u{F8D}-\u{F92}\u{F94}-\u{F97}\u{F99}-\u{F9C}\u{F9E}-\u{FA1}\u{FA3}-\u{FA6}\u{FA8}-\u{FAB}\u{FAD}-\u{FB8}\u{FBA}-\u{FBC}\u{FC6}\u{102B}-\u{103E}\u{1056}-\u{1059}\u{105E}-\u{1060}\u{1062}-\u{1064}\u{1067}-\u{106D}\u{1071}-\u{1074}\u{1082}-\u{108D}\u{108F}\u{109A}-\u{109D}\u{135D}-\u{135F}\u{1712}-\u{1715}\u{1732}-\u{1734}\u{1752}-\u{1753}\u{1772}-\u{1773}\u{17B6}-\u{17D3}\u{17DD}\u{1885}-\u{1886}\u{18A9}\u{1920}-\u{192B}\u{1930}-\u{193B}\u{1A17}-\u{1A1B}\u{1A55}-\u{1A5E}\u{1A60}-\u{1A7C}\u{1A7F}\u{1AB0}-\u{1AF0}\u{1B00}-\u{1B04}\u{1B34}-\u{1B44}\u{1B6B}-\u{1B73}\u{1B80}-\u{1B82}\u{1BA1}-\u{1BAD}\u{1BE6}-\u{1BF3}\u{1C24}-\u{1C37}\u{1CD0}-\u{1CD2}\u{1CD4}-\u{1CE8}\u{1CED}\u{1CF4}\u{1CF7}-\u{1CF9}\u{1DC0}-\u{1DFF}\u{20D0}-\u{20F0}\u{2CEF}-\u{2CF1}\u{2D7F}\u{2DE0}-\u{2DFF}\u{302A}-\u{302F}\u{3099}-\u{309A}\u{A66F}-\u{A672}\u{A674}-\u{A67D}\u{A69E}-\u{A69F}\u{A6F0}-\u{A6F1}\u{A802}\u{A806}\u{A80B}\u{A823}-\u{A827}\u{A82C}\u{A880}-\u{A881}\u{A8B4}-\u{A8C5}\u{A8E0}-\u{A8F1}\u{A8FF}\u{A926}-\u{A92D}\u{A947}-\u{A953}\u{A980}-\u{A983}\u{A9B3}-\u{A9C0}\u{A9E5}\u{AA29}-\u{AA36}\u{AA43}\u{AA4C}-\u{AA4D}\u{AA7B}-\u{AA7D}\u{AAB0}\u{AAB2}-\u{AAB4}\u{AAB7}-\u{AAB8}\u{AABE}-\u{AABF}\u{AAC1}\u{AAEB}-\u{AAEF}\u{AAF5}-\u{AAF6}\u{ABE3}-\u{ABEA}\u{ABEC}-\u{ABED}\u{FB1E}\u{FE20}-\u{FE2F}\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}-\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}-\u{10AE6}\u{10D24}-\u{10D27}\u{10D69}-\u{10D6D}\u{10EAB}-\u{10EAC}\u{10ECB}-\u{10ECF}\u{10EF0}-\u{10EFF}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11000}-\u{11002}\u{11038}-\u{11046}\u{11070}\u{11073}-\u{11074}\u{1107F}-\u{11082}\u{110B0}-\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{11134}\u{11145}-\u{11146}\u{11173}\u{11180}-\u{11182}\u{111B3}-\u{111C0}\u{111C9}-\u{111CC}\u{111CE}-\u{111CF}\u{1122C}-\u{11237}\u{1123E}\u{11241}\u{112DF}-\u{112EA}\u{11300}-\u{11303}\u{1133B}-\u{1133C}\u{1133E}-\u{11344}\u{11347}-\u{11348}\u{1134B}-\u{1134D}\u{11357}\u{11362}-\u{11363}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{113B8}-\u{113C0}\u{113C2}\u{113C5}\u{113C7}-\u{113CA}\u{113CC}-\u{113D0}\u{113D2}\u{113E1}-\u{113E2}\u{11435}-\u{11446}\u{1145E}\u{114B0}-\u{114C3}\u{115AF}-\u{115B5}\u{115B8}-\u{115C0}\u{115DC}-\u{115DD}\u{11630}-\u{11640}\u{116AB}-\u{116B7}\u{1171D}-\u{1172B}\u{1182C}-\u{1183A}\u{11930}-\u{11935}\u{11937}-\u{11938}\u{1193B}-\u{1193E}\u{11940}\u{11942}-\u{11943}\u{119D1}-\u{119D7}\u{119DA}-\u{119E0}\u{119E4}\u{11A01}-\u{11A0A}\u{11A33}-\u{11A39}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A5B}\u{11A8A}-\u{11A99}\u{11B60}-\u{11B67}\u{11C2F}-\u{11C36}\u{11C38}-\u{11C3F}\u{11C92}-\u{11CA7}\u{11CA9}-\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}-\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D8A}-\u{11D8E}\u{11D90}-\u{11D91}\u{11D93}-\u{11D97}\u{11DF0}\u{11EF3}-\u{11EF6}\u{11F00}-\u{11F01}\u{11F03}\u{11F34}-\u{11F3A}\u{11F3E}-\u{11F42}\u{11F5A}\u{13440}\u{13447}-\u{13455}\u{1611E}-\u{1612F}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F51}-\u{16F87}\u{16F8F}-\u{16F92}\u{16FE4}\u{16FF0}-\u{16FF1}\u{1BC9D}-\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D127}-\u{1D128}\u{1D165}-\u{1D169}\u{1D16D}-\u{1D172}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1D250}-\u{1D252}\u{1D25B}-\u{1D25C}\u{1D25F}\u{1D280}-\u{1D281}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}-\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E4EC}-\u{1E4EF}\u{1E5EE}-\u{1E5EF}\u{1E6E3}\u{1E6E6}\u{1E6EE}-\u{1E6EF}\u{1E6F5}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}]/ + + # Canonical_Combining_Class=Virama, among the valid code points. + VIRAMA = /[\u{94D}\u{9CD}\u{A4D}\u{ACD}\u{B4D}\u{BCD}\u{C4D}\u{CCD}\u{D3B}-\u{D3C}\u{D4D}\u{DCA}\u{E3A}\u{EBA}\u{F84}\u{1039}-\u{103A}\u{1714}-\u{1715}\u{1734}\u{17D2}\u{1A60}\u{1B44}\u{1BAA}-\u{1BAB}\u{1BF2}-\u{1BF3}\u{2D7F}\u{A806}\u{A82C}\u{A8C4}\u{A953}\u{A9C0}\u{AAF6}\u{ABED}\u{10A3F}\u{11046}\u{11070}\u{1107F}\u{110B9}\u{11133}-\u{11134}\u{111C0}\u{11235}\u{112EA}\u{1134D}\u{113CE}-\u{113D0}\u{11442}\u{114C2}\u{115BF}\u{1163F}\u{116B6}\u{1172B}\u{11839}\u{1193D}-\u{1193E}\u{119E0}\u{11A34}\u{11A47}\u{11A99}\u{11C3F}\u{11D44}-\u{11D45}\u{11D97}\u{11F41}-\u{11F42}\u{1612F}]/ + + # Joining_Type, among the valid code points. + JOINING_TYPE_L_OR_D = /[\u{620}\u{626}\u{628}\u{62A}-\u{62E}\u{633}-\u{63F}\u{641}-\u{647}\u{649}-\u{64A}\u{66E}-\u{66F}\u{679}-\u{687}\u{69A}-\u{6BF}\u{6C1}-\u{6C2}\u{6CC}\u{6CE}\u{6D0}-\u{6D1}\u{6FA}-\u{6FC}\u{6FF}\u{712}-\u{714}\u{71A}-\u{71D}\u{71F}-\u{727}\u{729}\u{72B}\u{72D}-\u{72E}\u{74E}-\u{758}\u{75C}-\u{76A}\u{76D}-\u{770}\u{772}\u{775}-\u{777}\u{77A}-\u{77F}\u{7CA}-\u{7EA}\u{841}-\u{845}\u{848}\u{84A}-\u{853}\u{855}\u{860}\u{862}-\u{865}\u{868}\u{886}\u{889}-\u{88D}\u{88F}\u{8A0}-\u{8A9}\u{8AF}-\u{8B0}\u{8B3}-\u{8B8}\u{8BA}-\u{8C8}\u{1807}\u{1820}-\u{1878}\u{1887}-\u{18A8}\u{18AA}\u{A840}-\u{A872}\u{10AC0}-\u{10AC4}\u{10ACD}\u{10AD3}-\u{10ADC}\u{10ADE}-\u{10AE0}\u{10AEB}-\u{10AEE}\u{10B80}\u{10B82}\u{10B86}-\u{10B88}\u{10B8A}-\u{10B8B}\u{10B8D}\u{10B90}\u{10BAD}-\u{10BAE}\u{10D00}-\u{10D21}\u{10D23}\u{10EC3}-\u{10EC4}\u{10EC6}-\u{10EC7}\u{10ED9}-\u{10EEE}\u{10F30}-\u{10F32}\u{10F34}-\u{10F44}\u{10F51}-\u{10F53}\u{10F70}-\u{10F73}\u{10F76}-\u{10F81}\u{10FB0}\u{10FB2}-\u{10FB3}\u{10FB8}\u{10FBB}-\u{10FBC}\u{10FBE}-\u{10FBF}\u{10FC1}\u{10FC4}\u{10FCA}-\u{10FCB}\u{1E922}-\u{1E943}]/ + JOINING_TYPE_R_OR_D = /[\u{620}\u{622}-\u{63F}\u{641}-\u{64A}\u{66E}-\u{66F}\u{671}-\u{673}\u{679}-\u{6D3}\u{6D5}\u{6EE}-\u{6EF}\u{6FA}-\u{6FC}\u{6FF}\u{710}\u{712}-\u{72F}\u{74D}-\u{77F}\u{7CA}-\u{7EA}\u{840}-\u{858}\u{860}\u{862}-\u{865}\u{867}-\u{86A}\u{870}-\u{882}\u{886}\u{889}-\u{88F}\u{8A0}-\u{8AC}\u{8AE}-\u{8C8}\u{1807}\u{1820}-\u{1878}\u{1887}-\u{18A8}\u{18AA}\u{A840}-\u{A871}\u{10AC0}-\u{10AC5}\u{10AC7}\u{10AC9}-\u{10ACA}\u{10ACE}-\u{10AD6}\u{10AD8}-\u{10AE1}\u{10AE4}\u{10AEB}-\u{10AEF}\u{10B80}-\u{10B91}\u{10BA9}-\u{10BAE}\u{10D01}-\u{10D23}\u{10EC2}-\u{10EC4}\u{10EC6}-\u{10EC7}\u{10F30}-\u{10F44}\u{10F51}-\u{10F54}\u{10F70}-\u{10F81}\u{10FB0}\u{10FB2}-\u{10FB6}\u{10FB8}-\u{10FBF}\u{10FC1}-\u{10FC4}\u{10FC9}-\u{10FCA}\u{1E922}-\u{1E943}]/ + JOINING_TYPE_T = /[\u{300}-\u{33F}\u{342}\u{346}-\u{34E}\u{350}-\u{36F}\u{483}-\u{489}\u{591}-\u{5BD}\u{5BF}\u{5C1}-\u{5C2}\u{5C4}-\u{5C5}\u{5C7}-\u{5C9}\u{610}-\u{61A}\u{64B}-\u{65F}\u{670}\u{6D6}-\u{6DC}\u{6DF}-\u{6E4}\u{6E7}-\u{6E8}\u{6EA}-\u{6ED}\u{711}\u{730}-\u{74A}\u{7A6}-\u{7B0}\u{7EB}-\u{7F3}\u{7FD}\u{816}-\u{819}\u{81B}-\u{823}\u{825}-\u{827}\u{829}-\u{82D}\u{859}-\u{85B}\u{897}-\u{89F}\u{8CA}-\u{8E1}\u{8E3}-\u{902}\u{93A}\u{93C}\u{941}-\u{948}\u{94D}\u{951}-\u{957}\u{962}-\u{963}\u{981}\u{9BC}\u{9C1}-\u{9C4}\u{9CD}\u{9E2}-\u{9E3}\u{9FE}\u{A01}-\u{A02}\u{A3C}\u{A41}-\u{A42}\u{A47}-\u{A48}\u{A4B}-\u{A4D}\u{A51}\u{A70}-\u{A71}\u{A75}\u{A81}-\u{A82}\u{ABC}\u{AC1}-\u{AC5}\u{AC7}-\u{AC8}\u{ACD}\u{AE2}-\u{AE3}\u{AFA}-\u{AFF}\u{B01}\u{B3C}\u{B3F}\u{B41}-\u{B44}\u{B4D}\u{B53}-\u{B56}\u{B62}-\u{B63}\u{B82}\u{BC0}\u{BCD}\u{C00}\u{C04}\u{C3C}\u{C3E}-\u{C40}\u{C46}-\u{C48}\u{C4A}-\u{C4D}\u{C55}-\u{C56}\u{C62}-\u{C63}\u{C81}\u{CBC}\u{CBF}\u{CC6}\u{CCC}-\u{CCD}\u{CE2}-\u{CE3}\u{D00}-\u{D01}\u{D3B}-\u{D3C}\u{D41}-\u{D44}\u{D4D}\u{D62}-\u{D63}\u{D81}\u{DCA}\u{DD2}-\u{DD4}\u{DD6}\u{E31}\u{E34}-\u{E3A}\u{E47}-\u{E4E}\u{EB1}\u{EB4}-\u{EBC}\u{EC8}-\u{ECE}\u{F18}-\u{F19}\u{F35}\u{F37}\u{F39}\u{F71}-\u{F72}\u{F74}\u{F7A}-\u{F7E}\u{F80}\u{F82}-\u{F84}\u{F86}-\u{F87}\u{F8D}-\u{F92}\u{F94}-\u{F97}\u{F99}-\u{F9C}\u{F9E}-\u{FA1}\u{FA3}-\u{FA6}\u{FA8}-\u{FAB}\u{FAD}-\u{FB8}\u{FBA}-\u{FBC}\u{FC6}\u{102D}-\u{1030}\u{1032}-\u{1037}\u{1039}-\u{103A}\u{103D}-\u{103E}\u{1058}-\u{1059}\u{105E}-\u{1060}\u{1071}-\u{1074}\u{1082}\u{1085}-\u{1086}\u{108D}\u{109D}\u{135D}-\u{135F}\u{1712}-\u{1714}\u{1732}-\u{1733}\u{1752}-\u{1753}\u{1772}-\u{1773}\u{17B7}-\u{17BD}\u{17C6}\u{17C9}-\u{17D3}\u{17DD}\u{1885}-\u{1886}\u{18A9}\u{1920}-\u{1922}\u{1927}-\u{1928}\u{1932}\u{1939}-\u{193B}\u{1A17}-\u{1A18}\u{1A1B}\u{1A56}\u{1A58}-\u{1A5E}\u{1A60}\u{1A62}\u{1A65}-\u{1A6C}\u{1A73}-\u{1A7C}\u{1A7F}\u{1AB0}-\u{1AF0}\u{1B00}-\u{1B03}\u{1B34}\u{1B36}-\u{1B3A}\u{1B3C}\u{1B42}\u{1B6B}-\u{1B73}\u{1B80}-\u{1B81}\u{1BA2}-\u{1BA5}\u{1BA8}-\u{1BA9}\u{1BAB}-\u{1BAD}\u{1BE6}\u{1BE8}-\u{1BE9}\u{1BED}\u{1BEF}-\u{1BF1}\u{1C2C}-\u{1C33}\u{1C36}-\u{1C37}\u{1CD0}-\u{1CD2}\u{1CD4}-\u{1CE0}\u{1CE2}-\u{1CE8}\u{1CED}\u{1CF4}\u{1CF8}-\u{1CF9}\u{1DC0}-\u{1DFF}\u{20D0}-\u{20F0}\u{2CEF}-\u{2CF1}\u{2D7F}\u{2DE0}-\u{2DFF}\u{302A}-\u{302D}\u{3099}-\u{309A}\u{A66F}-\u{A672}\u{A674}-\u{A67D}\u{A69E}-\u{A69F}\u{A6F0}-\u{A6F1}\u{A802}\u{A806}\u{A80B}\u{A825}-\u{A826}\u{A82C}\u{A8C4}-\u{A8C5}\u{A8E0}-\u{A8F1}\u{A8FF}\u{A926}-\u{A92D}\u{A947}-\u{A951}\u{A980}-\u{A982}\u{A9B3}\u{A9B6}-\u{A9B9}\u{A9BC}-\u{A9BD}\u{A9E5}\u{AA29}-\u{AA2E}\u{AA31}-\u{AA32}\u{AA35}-\u{AA36}\u{AA43}\u{AA4C}\u{AA7C}\u{AAB0}\u{AAB2}-\u{AAB4}\u{AAB7}-\u{AAB8}\u{AABE}-\u{AABF}\u{AAC1}\u{AAEC}-\u{AAED}\u{AAF6}\u{ABE5}\u{ABE8}\u{ABED}\u{FB1E}\u{FE20}-\u{FE2F}\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}-\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}-\u{10AE6}\u{10D24}-\u{10D27}\u{10D69}-\u{10D6D}\u{10EAB}-\u{10EAC}\u{10ECB}-\u{10ECF}\u{10EF0}-\u{10EFF}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11001}\u{11038}-\u{11046}\u{11070}\u{11073}-\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}-\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}-\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}-\u{11237}\u{1123E}\u{11241}\u{112DF}\u{112E3}-\u{112EA}\u{11300}-\u{11301}\u{1133B}-\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{113BB}-\u{113C0}\u{113CE}\u{113D0}\u{113D2}\u{113E1}-\u{113E2}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}-\u{114C0}\u{114C2}-\u{114C3}\u{115B2}-\u{115B5}\u{115BC}-\u{115BD}\u{115BF}-\u{115C0}\u{115DC}-\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}-\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}-\u{1183A}\u{1193B}-\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}-\u{119DB}\u{119E0}\u{11A01}-\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}-\u{11A99}\u{11B60}\u{11B62}-\u{11B64}\u{11B66}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C3F}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}-\u{11CB3}\u{11CB5}-\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}-\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}-\u{11D91}\u{11D95}\u{11D97}\u{11DF0}\u{11EF3}-\u{11EF4}\u{11F00}-\u{11F01}\u{11F36}-\u{11F3A}\u{11F40}\u{11F42}\u{11F5A}\u{13440}\u{13447}-\u{13455}\u{1611E}-\u{16129}\u{1612D}-\u{1612F}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE4}\u{1BC9D}-\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D127}-\u{1D128}\u{1D167}-\u{1D169}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1D25B}-\u{1D25C}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}-\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E4EC}-\u{1E4EF}\u{1E5EE}-\u{1E5EF}\u{1E6E3}\u{1E6E6}\u{1E6EE}-\u{1E6EF}\u{1E6F5}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94B}]/ + + # Bidi_Class, among the valid code points. The values that the + # Bidi Rule (RFC 5893) always treats alike are grouped. + BIDI_L = /[\u{61}-\u{7A}\u{DF}-\u{F6}\u{F8}-\u{FF}\u{101}\u{103}\u{105}\u{107}\u{109}\u{10B}\u{10D}\u{10F}\u{111}\u{113}\u{115}\u{117}\u{119}\u{11B}\u{11D}\u{11F}\u{121}\u{123}\u{125}\u{127}\u{129}\u{12B}\u{12D}\u{12F}\u{131}\u{135}\u{137}-\u{138}\u{13A}\u{13C}\u{13E}\u{142}\u{144}\u{146}\u{148}\u{14B}\u{14D}\u{14F}\u{151}\u{153}\u{155}\u{157}\u{159}\u{15B}\u{15D}\u{15F}\u{161}\u{163}\u{165}\u{167}\u{169}\u{16B}\u{16D}\u{16F}\u{171}\u{173}\u{175}\u{177}\u{17A}\u{17C}\u{17E}\u{180}\u{183}\u{185}\u{188}\u{18C}-\u{18D}\u{192}\u{195}\u{199}-\u{19B}\u{19E}\u{1A1}\u{1A3}\u{1A5}\u{1A8}\u{1AA}-\u{1AB}\u{1AD}\u{1B0}\u{1B4}\u{1B6}\u{1B9}-\u{1BB}\u{1BD}-\u{1C3}\u{1CE}\u{1D0}\u{1D2}\u{1D4}\u{1D6}\u{1D8}\u{1DA}\u{1DC}-\u{1DD}\u{1DF}\u{1E1}\u{1E3}\u{1E5}\u{1E7}\u{1E9}\u{1EB}\u{1ED}\u{1EF}-\u{1F0}\u{1F5}\u{1F9}\u{1FB}\u{1FD}\u{1FF}\u{201}\u{203}\u{205}\u{207}\u{209}\u{20B}\u{20D}\u{20F}\u{211}\u{213}\u{215}\u{217}\u{219}\u{21B}\u{21D}\u{21F}\u{221}\u{223}\u{225}\u{227}\u{229}\u{22B}\u{22D}\u{22F}\u{231}\u{233}-\u{239}\u{23C}\u{23F}-\u{240}\u{242}\u{247}\u{249}\u{24B}\u{24D}\u{24F}-\u{2AF}\u{2BB}-\u{2C1}\u{2D0}-\u{2D1}\u{2EE}\u{371}\u{373}\u{377}\u{37B}-\u{37D}\u{390}\u{3AC}-\u{3CE}\u{3D7}\u{3D9}\u{3DB}\u{3DD}\u{3DF}\u{3E1}\u{3E3}\u{3E5}\u{3E7}\u{3E9}\u{3EB}\u{3ED}\u{3EF}\u{3F3}\u{3F8}\u{3FB}-\u{3FC}\u{430}-\u{45F}\u{461}\u{463}\u{465}\u{467}\u{469}\u{46B}\u{46D}\u{46F}\u{471}\u{473}\u{475}\u{477}\u{479}\u{47B}\u{47D}\u{47F}\u{481}-\u{482}\u{48B}\u{48D}\u{48F}\u{491}\u{493}\u{495}\u{497}\u{499}\u{49B}\u{49D}\u{49F}\u{4A1}\u{4A3}\u{4A5}\u{4A7}\u{4A9}\u{4AB}\u{4AD}\u{4AF}\u{4B1}\u{4B3}\u{4B5}\u{4B7}\u{4B9}\u{4BB}\u{4BD}\u{4BF}\u{4C2}\u{4C4}\u{4C6}\u{4C8}\u{4CA}\u{4CC}\u{4CE}-\u{4CF}\u{4D1}\u{4D3}\u{4D5}\u{4D7}\u{4D9}\u{4DB}\u{4DD}\u{4DF}\u{4E1}\u{4E3}\u{4E5}\u{4E7}\u{4E9}\u{4EB}\u{4ED}\u{4EF}\u{4F1}\u{4F3}\u{4F5}\u{4F7}\u{4F9}\u{4FB}\u{4FD}\u{4FF}\u{501}\u{503}\u{505}\u{507}\u{509}\u{50B}\u{50D}\u{50F}\u{511}\u{513}\u{515}\u{517}\u{519}\u{51B}\u{51D}\u{51F}\u{521}\u{523}\u{525}\u{527}\u{529}\u{52B}\u{52D}\u{52F}\u{559}-\u{586}\u{588}-\u{589}\u{903}-\u{939}\u{93B}\u{93D}-\u{940}\u{949}-\u{94C}\u{94E}-\u{950}\u{960}-\u{961}\u{964}-\u{980}\u{982}-\u{983}\u{985}-\u{98C}\u{98F}-\u{990}\u{993}-\u{9A8}\u{9AA}-\u{9B0}\u{9B2}\u{9B6}-\u{9B9}\u{9BD}-\u{9C0}\u{9C7}-\u{9C8}\u{9CB}-\u{9CC}\u{9CE}\u{9D7}\u{9E0}-\u{9E1}\u{9E6}-\u{9F1}\u{9F4}-\u{9FA}\u{9FC}-\u{9FD}\u{A03}\u{A05}-\u{A0A}\u{A0F}-\u{A10}\u{A13}-\u{A28}\u{A2A}-\u{A30}\u{A32}\u{A35}\u{A38}-\u{A39}\u{A3E}-\u{A40}\u{A5C}\u{A66}-\u{A6F}\u{A72}-\u{A74}\u{A76}\u{A83}\u{A85}-\u{A8D}\u{A8F}-\u{A91}\u{A93}-\u{AA8}\u{AAA}-\u{AB0}\u{AB2}-\u{AB3}\u{AB5}-\u{AB9}\u{ABD}-\u{AC0}\u{AC9}\u{ACB}-\u{ACC}\u{AD0}\u{AE0}-\u{AE1}\u{AE6}-\u{AF0}\u{AF9}\u{B02}-\u{B03}\u{B05}-\u{B0C}\u{B0F}-\u{B10}\u{B13}-\u{B28}\u{B2A}-\u{B30}\u{B32}-\u{B33}\u{B35}-\u{B39}\u{B3D}-\u{B3E}\u{B40}\u{B47}-\u{B48}\u{B4B}-\u{B4C}\u{B57}\u{B5F}-\u{B61}\u{B66}-\u{B77}\u{B83}\u{B85}-\u{B8A}\u{B8E}-\u{B90}\u{B92}-\u{B95}\u{B99}-\u{B9A}\u{B9C}\u{B9E}-\u{B9F}\u{BA3}-\u{BA4}\u{BA8}-\u{BAA}\u{BAE}-\u{BB9}\u{BBE}-\u{BBF}\u{BC1}-\u{BC2}\u{BC6}-\u{BC8}\u{BCA}-\u{BCC}\u{BD0}\u{BD7}\u{BE6}-\u{BF2}\u{C01}-\u{C03}\u{C05}-\u{C0C}\u{C0E}-\u{C10}\u{C12}-\u{C28}\u{C2A}-\u{C39}\u{C3D}\u{C41}-\u{C44}\u{C58}-\u{C5A}\u{C5C}-\u{C5D}\u{C60}-\u{C61}\u{C66}-\u{C6F}\u{C77}\u{C7F}-\u{C80}\u{C82}-\u{C8C}\u{C8E}-\u{C90}\u{C92}-\u{CA8}\u{CAA}-\u{CB3}\u{CB5}-\u{CB9}\u{CBD}-\u{CC4}\u{CC6}-\u{CC8}\u{CCA}-\u{CCB}\u{CD5}-\u{CD6}\u{CDC}-\u{CDE}\u{CE0}-\u{CE1}\u{CE6}-\u{CEF}\u{CF1}-\u{CF3}\u{D02}-\u{D0C}\u{D0E}-\u{D10}\u{D12}-\u{D3A}\u{D3D}-\u{D40}\u{D46}-\u{D48}\u{D4A}-\u{D4C}\u{D4E}-\u{D4F}\u{D54}-\u{D61}\u{D66}-\u{D7F}\u{D82}-\u{D83}\u{D85}-\u{D96}\u{D9A}-\u{DB1}\u{DB3}-\u{DBB}\u{DBD}\u{DC0}-\u{DC6}\u{DCF}-\u{DD1}\u{DD8}-\u{DDF}\u{DE6}-\u{DEF}\u{DF2}-\u{DF4}\u{E01}-\u{E30}\u{E32}\u{E40}-\u{E46}\u{E4F}-\u{E5B}\u{E81}-\u{E82}\u{E84}\u{E86}-\u{E8A}\u{E8C}-\u{EA3}\u{EA5}\u{EA7}-\u{EB0}\u{EB2}\u{EBD}\u{EC0}-\u{EC4}\u{EC6}\u{ED0}-\u{ED9}\u{EDE}-\u{EDF}\u{F00}-\u{F0B}\u{F0D}-\u{F17}\u{F1A}-\u{F34}\u{F36}\u{F38}\u{F3E}-\u{F42}\u{F44}-\u{F47}\u{F49}-\u{F4C}\u{F4E}-\u{F51}\u{F53}-\u{F56}\u{F58}-\u{F5B}\u{F5D}-\u{F68}\u{F6A}-\u{F6C}\u{F7F}\u{F85}\u{F88}-\u{F8C}\u{FBE}-\u{FC5}\u{FC7}-\u{FCC}\u{FCE}-\u{FDA}\u{1000}-\u{102C}\u{1031}\u{1038}\u{103B}-\u{103C}\u{103F}-\u{1057}\u{105A}-\u{105D}\u{1061}-\u{1070}\u{1075}-\u{1081}\u{1083}-\u{1084}\u{1087}-\u{108C}\u{108E}-\u{109C}\u{109E}-\u{109F}\u{10D0}-\u{10FB}\u{10FD}-\u{115E}\u{1161}-\u{1248}\u{124A}-\u{124D}\u{1250}-\u{1256}\u{1258}\u{125A}-\u{125D}\u{1260}-\u{1288}\u{128A}-\u{128D}\u{1290}-\u{12B0}\u{12B2}-\u{12B5}\u{12B8}-\u{12BE}\u{12C0}\u{12C2}-\u{12C5}\u{12C8}-\u{12D6}\u{12D8}-\u{1310}\u{1312}-\u{1315}\u{1318}-\u{135A}\u{1360}-\u{137C}\u{1380}-\u{138F}\u{13A0}-\u{13F5}\u{1401}-\u{167F}\u{1681}-\u{169A}\u{16A0}-\u{16F8}\u{1700}-\u{1711}\u{1715}\u{171F}-\u{1731}\u{1734}-\u{1736}\u{1740}-\u{1751}\u{1760}-\u{176C}\u{176E}-\u{1770}\u{1780}-\u{17B3}\u{17B6}\u{17BE}-\u{17C5}\u{17C7}-\u{17C8}\u{17D4}-\u{17DA}\u{17DC}\u{17E0}-\u{17E9}\u{1810}-\u{1819}\u{1820}-\u{1878}\u{1880}-\u{1884}\u{1887}-\u{18A8}\u{18AA}\u{18B0}-\u{18F5}\u{1900}-\u{191E}\u{1923}-\u{1926}\u{1929}-\u{192B}\u{1930}-\u{1931}\u{1933}-\u{1938}\u{1946}-\u{196D}\u{1970}-\u{1974}\u{1980}-\u{19AB}\u{19B0}-\u{19C9}\u{19D0}-\u{19DA}\u{1A00}-\u{1A16}\u{1A19}-\u{1A1A}\u{1A1E}-\u{1A55}\u{1A57}\u{1A61}\u{1A63}-\u{1A64}\u{1A6D}-\u{1A72}\u{1A80}-\u{1A89}\u{1A90}-\u{1A99}\u{1AA0}-\u{1AAD}\u{1B04}-\u{1B33}\u{1B35}\u{1B3A}-\u{1B4C}\u{1B4E}-\u{1B6A}\u{1B74}-\u{1B7F}\u{1B82}-\u{1BA1}\u{1BA6}-\u{1BA7}\u{1BAA}\u{1BAE}-\u{1BE5}\u{1BE7}\u{1BEA}-\u{1BEC}\u{1BEE}\u{1BF2}-\u{1BF3}\u{1BFC}-\u{1C2B}\u{1C34}-\u{1C35}\u{1C3B}-\u{1C49}\u{1C4D}-\u{1C7F}\u{1C8A}\u{1CC0}-\u{1CC7}\u{1CD3}\u{1CE1}\u{1CE9}-\u{1CEC}\u{1CEE}-\u{1CF3}\u{1CF5}-\u{1CF7}\u{1CFA}\u{1D00}-\u{1D2B}\u{1D2F}\u{1D3B}\u{1D4E}\u{1D6B}-\u{1D77}\u{1D79}-\u{1D9A}\u{1E01}\u{1E03}\u{1E05}\u{1E07}\u{1E09}\u{1E0B}\u{1E0D}\u{1E0F}\u{1E11}\u{1E13}\u{1E15}\u{1E17}\u{1E19}\u{1E1B}\u{1E1D}\u{1E1F}\u{1E21}\u{1E23}\u{1E25}\u{1E27}\u{1E29}\u{1E2B}\u{1E2D}\u{1E2F}\u{1E31}\u{1E33}\u{1E35}\u{1E37}\u{1E39}\u{1E3B}\u{1E3D}\u{1E3F}\u{1E41}\u{1E43}\u{1E45}\u{1E47}\u{1E49}\u{1E4B}\u{1E4D}\u{1E4F}\u{1E51}\u{1E53}\u{1E55}\u{1E57}\u{1E59}\u{1E5B}\u{1E5D}\u{1E5F}\u{1E61}\u{1E63}\u{1E65}\u{1E67}\u{1E69}\u{1E6B}\u{1E6D}\u{1E6F}\u{1E71}\u{1E73}\u{1E75}\u{1E77}\u{1E79}\u{1E7B}\u{1E7D}\u{1E7F}\u{1E81}\u{1E83}\u{1E85}\u{1E87}\u{1E89}\u{1E8B}\u{1E8D}\u{1E8F}\u{1E91}\u{1E93}\u{1E95}-\u{1E99}\u{1E9C}-\u{1E9D}\u{1E9F}\u{1EA1}\u{1EA3}\u{1EA5}\u{1EA7}\u{1EA9}\u{1EAB}\u{1EAD}\u{1EAF}\u{1EB1}\u{1EB3}\u{1EB5}\u{1EB7}\u{1EB9}\u{1EBB}\u{1EBD}\u{1EBF}\u{1EC1}\u{1EC3}\u{1EC5}\u{1EC7}\u{1EC9}\u{1ECB}\u{1ECD}\u{1ECF}\u{1ED1}\u{1ED3}\u{1ED5}\u{1ED7}\u{1ED9}\u{1EDB}\u{1EDD}\u{1EDF}\u{1EE1}\u{1EE3}\u{1EE5}\u{1EE7}\u{1EE9}\u{1EEB}\u{1EED}\u{1EEF}\u{1EF1}\u{1EF3}\u{1EF5}\u{1EF7}\u{1EF9}\u{1EFB}\u{1EFD}\u{1EFF}-\u{1F07}\u{1F10}-\u{1F15}\u{1F20}-\u{1F27}\u{1F30}-\u{1F37}\u{1F40}-\u{1F45}\u{1F50}-\u{1F57}\u{1F60}-\u{1F67}\u{1F70}\u{1F72}\u{1F74}\u{1F76}\u{1F78}\u{1F7A}\u{1F7C}\u{1FB0}-\u{1FB1}\u{1FB6}\u{1FC6}\u{1FD0}-\u{1FD2}\u{1FD6}-\u{1FD7}\u{1FE0}-\u{1FE2}\u{1FE4}-\u{1FE7}\u{1FF6}\u{214E}-\u{214F}\u{2180}-\u{2182}\u{2184}-\u{2188}\u{2336}-\u{237A}\u{2395}\u{26AC}\u{2800}-\u{28FF}\u{2C30}-\u{2C5F}\u{2C61}\u{2C65}-\u{2C66}\u{2C68}\u{2C6A}\u{2C6C}\u{2C71}\u{2C73}-\u{2C74}\u{2C76}-\u{2C7B}\u{2C81}\u{2C83}\u{2C85}\u{2C87}\u{2C89}\u{2C8B}\u{2C8D}\u{2C8F}\u{2C91}\u{2C93}\u{2C95}\u{2C97}\u{2C99}\u{2C9B}\u{2C9D}\u{2C9F}\u{2CA1}\u{2CA3}\u{2CA5}\u{2CA7}\u{2CA9}\u{2CAB}\u{2CAD}\u{2CAF}\u{2CB1}\u{2CB3}\u{2CB5}\u{2CB7}\u{2CB9}\u{2CBB}\u{2CBD}\u{2CBF}\u{2CC1}\u{2CC3}\u{2CC5}\u{2CC7}\u{2CC9}\u{2CCB}\u{2CCD}\u{2CCF}\u{2CD1}\u{2CD3}\u{2CD5}\u{2CD7}\u{2CD9}\u{2CDB}\u{2CDD}\u{2CDF}\u{2CE1}\u{2CE3}-\u{2CE4}\u{2CEC}\u{2CEE}\u{2CF3}\u{2D00}-\u{2D25}\u{2D27}\u{2D2D}\u{2D30}-\u{2D67}\u{2D70}\u{2D80}-\u{2D96}\u{2DA0}-\u{2DA6}\u{2DA8}-\u{2DAE}\u{2DB0}-\u{2DB6}\u{2DB8}-\u{2DBE}\u{2DC0}-\u{2DC6}\u{2DC8}-\u{2DCE}\u{2DD0}-\u{2DD6}\u{2DD8}-\u{2DDE}\u{3005}-\u{3007}\u{3021}-\u{3029}\u{302E}-\u{302F}\u{3031}-\u{3035}\u{303B}-\u{303C}\u{3041}-\u{3096}\u{309D}-\u{309E}\u{30A1}-\u{30FA}\u{30FC}-\u{30FE}\u{3105}-\u{312F}\u{3190}-\u{3191}\u{31A0}-\u{31BF}\u{31F0}-\u{31FF}\u{3248}-\u{324F}\u{327F}\u{3400}-\u{4DBF}\u{4E00}-\u{A48C}\u{A4D0}-\u{A60C}\u{A610}-\u{A62B}\u{A641}\u{A643}\u{A645}\u{A647}\u{A649}\u{A64B}\u{A64D}\u{A64F}\u{A651}\u{A653}\u{A655}\u{A657}\u{A659}\u{A65B}\u{A65D}\u{A65F}\u{A661}\u{A663}\u{A665}\u{A667}\u{A669}\u{A66B}\u{A66D}-\u{A66E}\u{A681}\u{A683}\u{A685}\u{A687}\u{A689}\u{A68B}\u{A68D}\u{A68F}\u{A691}\u{A693}\u{A695}\u{A697}\u{A699}\u{A69B}\u{A6A0}-\u{A6EF}\u{A6F2}-\u{A6F7}\u{A723}\u{A725}\u{A727}\u{A729}\u{A72B}\u{A72D}\u{A72F}-\u{A731}\u{A733}\u{A735}\u{A737}\u{A739}\u{A73B}\u{A73D}\u{A73F}\u{A741}\u{A743}\u{A745}\u{A747}\u{A749}\u{A74B}\u{A74D}\u{A74F}\u{A751}\u{A753}\u{A755}\u{A757}\u{A759}\u{A75B}\u{A75D}\u{A75F}\u{A761}\u{A763}\u{A765}\u{A767}\u{A769}\u{A76B}\u{A76D}\u{A76F}\u{A771}-\u{A778}\u{A77A}\u{A77C}\u{A77F}\u{A781}\u{A783}\u{A785}\u{A787}\u{A789}-\u{A78A}\u{A78C}\u{A78E}-\u{A78F}\u{A791}\u{A793}-\u{A795}\u{A797}\u{A799}\u{A79B}\u{A79D}\u{A79F}\u{A7A1}\u{A7A3}\u{A7A5}\u{A7A7}\u{A7A9}\u{A7AF}\u{A7B5}\u{A7B7}\u{A7B9}\u{A7BB}\u{A7BD}\u{A7BF}\u{A7C1}\u{A7C3}\u{A7C8}\u{A7CA}\u{A7CD}\u{A7CF}\u{A7D1}\u{A7D3}\u{A7D5}\u{A7D7}\u{A7D9}\u{A7DB}\u{A7F6}-\u{A7F7}\u{A7FA}-\u{A801}\u{A803}-\u{A805}\u{A807}-\u{A80A}\u{A80C}-\u{A824}\u{A827}\u{A830}-\u{A837}\u{A840}-\u{A873}\u{A880}-\u{A8C3}\u{A8CE}-\u{A8D9}\u{A8F2}-\u{A8FE}\u{A900}-\u{A925}\u{A92E}-\u{A946}\u{A952}-\u{A953}\u{A95F}-\u{A97C}\u{A983}-\u{A9B2}\u{A9B4}-\u{A9B5}\u{A9BA}-\u{A9BB}\u{A9BE}-\u{A9CD}\u{A9CF}-\u{A9D9}\u{A9DE}-\u{A9E4}\u{A9E6}-\u{A9FE}\u{AA00}-\u{AA28}\u{AA2F}-\u{AA30}\u{AA33}-\u{AA34}\u{AA40}-\u{AA42}\u{AA44}-\u{AA4B}\u{AA4D}\u{AA50}-\u{AA59}\u{AA5C}-\u{AA7B}\u{AA7D}-\u{AAAF}\u{AAB1}\u{AAB5}-\u{AAB6}\u{AAB9}-\u{AABD}\u{AAC0}\u{AAC2}\u{AADB}-\u{AAEB}\u{AAEE}-\u{AAF5}\u{AB01}-\u{AB06}\u{AB09}-\u{AB0E}\u{AB11}-\u{AB16}\u{AB20}-\u{AB26}\u{AB28}-\u{AB2E}\u{AB30}-\u{AB5B}\u{AB60}-\u{AB68}\u{ABC0}-\u{ABE4}\u{ABE6}-\u{ABE7}\u{ABE9}-\u{ABEC}\u{ABF0}-\u{ABF9}\u{AC00}-\u{D7A3}\u{D7B0}-\u{D7C6}\u{D7CB}-\u{D7FB}\u{FA0E}-\u{FA0F}\u{FA11}\u{FA13}-\u{FA14}\u{FA1F}\u{FA21}\u{FA23}-\u{FA24}\u{FA27}-\u{FA29}\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}-\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10100}\u{10102}\u{10107}-\u{10133}\u{10137}-\u{1013F}\u{1018D}-\u{1018E}\u{101D0}-\u{101FC}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{1039F}-\u{103C3}\u{103C8}-\u{103D5}\u{10428}-\u{1049D}\u{104A0}-\u{104A9}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{1056F}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}-\u{105BC}\u{105C0}-\u{105F3}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}\u{11000}\u{11002}-\u{11037}\u{11047}-\u{1104D}\u{11066}-\u{1106F}\u{11071}-\u{11072}\u{11075}\u{11082}-\u{110B2}\u{110B7}-\u{110B8}\u{110BB}-\u{110BC}\u{110BE}-\u{110C1}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11103}-\u{11126}\u{1112C}\u{11136}-\u{11147}\u{11150}-\u{11172}\u{11174}-\u{11176}\u{11182}-\u{111B5}\u{111BF}-\u{111C8}\u{111CD}-\u{111CE}\u{111D0}-\u{111DF}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{1122E}\u{11232}-\u{11233}\u{11235}\u{11238}-\u{1123D}\u{1123F}-\u{11240}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A9}\u{112B0}-\u{112DE}\u{112E0}-\u{112E2}\u{112F0}-\u{112F9}\u{11302}-\u{11303}\u{11305}-\u{1130C}\u{1130F}-\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}-\u{11333}\u{11335}-\u{11339}\u{1133D}-\u{1133F}\u{11341}-\u{11344}\u{11347}-\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11380}-\u{11389}\u{1138B}\u{1138E}\u{11390}-\u{113B5}\u{113B7}-\u{113BA}\u{113C2}\u{113C5}\u{113C7}-\u{113CA}\u{113CC}-\u{113CD}\u{113CF}\u{113D1}\u{113D3}-\u{113D5}\u{113D7}-\u{113D8}\u{11400}-\u{11437}\u{11440}-\u{11441}\u{11445}\u{11447}-\u{1145B}\u{1145D}\u{1145F}-\u{11461}\u{11480}-\u{114B2}\u{114B9}\u{114BB}-\u{114BE}\u{114C1}\u{114C4}-\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B1}\u{115B8}-\u{115BB}\u{115BE}\u{115C1}-\u{115DB}\u{11600}-\u{11632}\u{1163B}-\u{1163C}\u{1163E}\u{11641}-\u{11644}\u{11650}-\u{11659}\u{11680}-\u{116AA}\u{116AC}\u{116AE}-\u{116AF}\u{116B6}\u{116B8}-\u{116B9}\u{116C0}-\u{116C9}\u{116D0}-\u{116E3}\u{11700}-\u{1171A}\u{1171E}\u{11720}-\u{11721}\u{11726}\u{11730}-\u{11746}\u{11800}-\u{1182E}\u{11838}\u{1183B}\u{118C0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}-\u{11916}\u{11918}-\u{11935}\u{11937}-\u{11938}\u{1193D}\u{1193F}-\u{11942}\u{11944}-\u{11946}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D3}\u{119DC}-\u{119DF}\u{119E1}-\u{119E4}\u{11A00}\u{11A07}-\u{11A08}\u{11A0B}-\u{11A32}\u{11A39}-\u{11A3A}\u{11A3F}-\u{11A46}\u{11A50}\u{11A57}-\u{11A58}\u{11A5C}-\u{11A89}\u{11A97}\u{11A9A}-\u{11AA2}\u{11AB0}-\u{11AF8}\u{11B00}-\u{11B0A}\u{11B61}\u{11B65}\u{11B67}\u{11BC0}-\u{11BE1}\u{11BF0}-\u{11BF9}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C2F}\u{11C3E}-\u{11C45}\u{11C50}-\u{11C6C}\u{11C70}-\u{11C8F}\u{11CA9}\u{11CB1}\u{11CB4}\u{11D00}-\u{11D06}\u{11D08}-\u{11D09}\u{11D0B}-\u{11D30}\u{11D46}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}-\u{11D68}\u{11D6A}-\u{11D8E}\u{11D93}-\u{11D94}\u{11D96}\u{11D98}\u{11DA0}-\u{11DA9}\u{11DB0}-\u{11DDB}\u{11DE0}-\u{11DE9}\u{11DF1}\u{11EE0}-\u{11EF2}\u{11EF5}-\u{11EF8}\u{11F02}-\u{11F10}\u{11F12}-\u{11F35}\u{11F3E}-\u{11F3F}\u{11F41}\u{11F43}-\u{11F59}\u{11FB0}\u{11FC0}-\u{11FD4}\u{11FFF}-\u{12399}\u{12400}-\u{12543}\u{12550}-\u{12686}\u{12F90}-\u{12FF2}\u{13000}-\u{1342F}\u{13441}-\u{13446}\u{13460}-\u{143FA}\u{14400}-\u{14646}\u{16100}-\u{1611D}\u{1612A}-\u{1612C}\u{16130}-\u{16139}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A6E}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF5}\u{16B00}-\u{16B2F}\u{16B37}-\u{16B45}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16D40}-\u{16D79}\u{16E60}-\u{16E9A}\u{16EBB}-\u{16ED3}\u{16F00}-\u{16F4A}\u{16F50}-\u{16F87}\u{16F93}-\u{16F9F}\u{16FE0}-\u{16FE1}\u{16FE3}\u{16FF0}-\u{16FF6}\u{17000}-\u{18CDA}\u{18CFF}-\u{18D20}\u{18D80}-\u{18DF2}\u{18E00}-\u{19191}\u{191A0}-\u{191D2}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}-\u{1AFFE}\u{1B000}-\u{1B122}\u{1B127}-\u{1B128}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B168}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9C}\u{1BC9F}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D15D}\u{1D165}-\u{1D166}\u{1D16A}-\u{1D172}\u{1D183}-\u{1D184}\u{1D18C}-\u{1D1A9}\u{1D1AE}-\u{1D1BA}\u{1D1C1}-\u{1D1E8}\u{1D1EB}-\u{1D1FF}\u{1D250}-\u{1D25A}\u{1D25D}-\u{1D281}\u{1D2C0}-\u{1D2D3}\u{1D2E0}-\u{1D2F3}\u{1D360}-\u{1D378}\u{1D800}-\u{1D9FF}\u{1DA37}-\u{1DA3A}\u{1DA6D}-\u{1DA74}\u{1DA76}-\u{1DA83}\u{1DA85}-\u{1DA8B}\u{1DF00}-\u{1DF3F}\u{1DF41}-\u{1DF47}\u{1DF49}\u{1DF4B}-\u{1DF4C}\u{1DF4E}-\u{1DF50}\u{1DF52}-\u{1DF67}\u{1DF69}\u{1DF6B}\u{1DF6D}\u{1DF6F}-\u{1DF71}\u{1DF73}\u{1DF75}\u{1DF77}\u{1DF79}\u{1DF7B}\u{1DF7D}\u{1DF7F}-\u{1DF81}\u{1DF90}-\u{1DF94}\u{1DF96}\u{1E100}-\u{1E12C}\u{1E137}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}-\u{1E14F}\u{1E290}-\u{1E2AD}\u{1E2C0}-\u{1E2EB}\u{1E2F0}-\u{1E2F9}\u{1E4D0}-\u{1E4EB}\u{1E4F0}-\u{1E4F9}\u{1E5D0}-\u{1E5ED}\u{1E5F0}-\u{1E5FA}\u{1E5FF}\u{1E6C0}-\u{1E6DE}\u{1E6E0}-\u{1E6E2}\u{1E6E4}-\u{1E6E5}\u{1E6E7}-\u{1E6ED}\u{1E6F0}-\u{1E6F4}\u{1E6FE}-\u{1E6FF}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}-\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1F150}-\u{1F169}\u{1F170}-\u{1F18F}\u{1F191}-\u{1F1AC}\u{1F1AE}\u{1F1E6}-\u{1F1FF}\u{1F7DA}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B81E}\u{2B820}-\u{2CEAD}\u{2CEB0}-\u{2EBE0}\u{2EBF0}-\u{2EE5D}\u{30000}-\u{3134A}\u{31350}-\u{33479}\u{3D000}-\u{3FC3F}]/ + BIDI_R_OR_AL = /[\u{5BE}\u{5C0}\u{5C3}\u{5C6}\u{5D0}-\u{5EA}\u{5EF}-\u{5F4}\u{608}\u{60B}\u{60D}\u{61B}\u{61D}-\u{64A}\u{66D}-\u{66F}\u{671}-\u{674}\u{679}-\u{6D5}\u{6E5}-\u{6E6}\u{6EE}-\u{6EF}\u{6FA}-\u{70D}\u{710}\u{712}-\u{72F}\u{74D}-\u{7A5}\u{7B1}\u{7C0}-\u{7EA}\u{7F4}-\u{7F5}\u{7FA}\u{7FE}-\u{815}\u{81A}\u{824}\u{828}\u{830}-\u{83E}\u{840}-\u{858}\u{85E}\u{860}-\u{86A}\u{870}-\u{88F}\u{8A0}-\u{8C9}\u{FBB2}-\u{FBC2}\u{FE73}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}-\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}-\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{1093F}-\u{10959}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE4}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10D4A}-\u{10D4F}\u{10D6F}-\u{10D85}\u{10D8E}-\u{10D8F}\u{10E80}-\u{10EA9}\u{10EAD}\u{10EB0}-\u{10EB1}\u{10EC2}-\u{10EC7}\u{10EC9}-\u{10ECA}\u{10ED9}-\u{10EEE}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F59}\u{10F70}-\u{10F81}\u{10F86}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E922}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}-\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}]/ + BIDI_AN = /[\u{660}-\u{669}\u{66B}-\u{66C}\u{10D30}-\u{10D39}\u{10D40}-\u{10D49}\u{10E60}-\u{10E7E}]/ + BIDI_EN = /[\u{30}-\u{39}\u{6F0}-\u{6F9}\u{102E1}-\u{102FB}]/ + BIDI_ES_CS_ET_ON_BN = /[\u{0}-\u{8}\u{E}-\u{1B}\u{21}-\u{2F}\u{3A}-\u{40}\u{5B}-\u{60}\u{7B}-\u{7F}\u{A1}-\u{A7}\u{A9}\u{AB}-\u{AC}\u{AE}\u{B0}-\u{B1}\u{B6}-\u{B7}\u{BB}\u{BF}\u{D7}\u{F7}\u{2B9}-\u{2BA}\u{2C2}-\u{2CF}\u{2D2}-\u{2D7}\u{2DE}-\u{2DF}\u{2E5}-\u{2ED}\u{2EF}-\u{2FF}\u{375}\u{3F6}\u{58A}\u{58D}-\u{58F}\u{606}-\u{607}\u{609}-\u{60A}\u{60C}\u{60E}-\u{60F}\u{66A}\u{6DE}\u{6E9}\u{7F6}-\u{7F9}\u{9F2}-\u{9F3}\u{9FB}\u{AF1}\u{BF3}-\u{BFA}\u{C78}-\u{C7E}\u{E3F}\u{F3A}-\u{F3D}\u{1390}-\u{1399}\u{1400}\u{169B}-\u{169C}\u{17DB}\u{17F0}-\u{17F9}\u{1800}-\u{180A}\u{1940}\u{1944}-\u{1945}\u{19DE}-\u{19FF}\u{200C}-\u{200D}\u{2010}\u{2012}-\u{2016}\u{2018}-\u{2023}\u{2027}\u{2030}-\u{2032}\u{2035}\u{2038}-\u{203B}\u{203D}\u{203F}-\u{2046}\u{204A}-\u{2056}\u{2058}-\u{205E}\u{208F}\u{20A0}-\u{20A7}\u{20A9}-\u{20C4}\u{2104}\u{2108}\u{2114}\u{2117}-\u{2118}\u{211E}-\u{211F}\u{2123}\u{2125}\u{2127}\u{2129}\u{212E}\u{213A}\u{2141}-\u{2144}\u{214A}-\u{214D}\u{218A}-\u{218B}\u{2190}-\u{222B}\u{222E}\u{2231}-\u{2328}\u{232B}-\u{2335}\u{237B}-\u{2394}\u{2396}-\u{2429}\u{2440}-\u{244A}\u{24EB}-\u{26AB}\u{26AD}-\u{27FF}\u{2900}-\u{2A0B}\u{2A0D}-\u{2A73}\u{2A77}-\u{2ADB}\u{2ADD}-\u{2B73}\u{2B76}-\u{2BFF}\u{2CE5}-\u{2CEA}\u{2CF9}-\u{2CFF}\u{2E00}-\u{2E5D}\u{2E60}-\u{2E63}\u{2E80}-\u{2E99}\u{2E9B}-\u{2E9E}\u{2EA0}-\u{2EF2}\u{3001}\u{3003}-\u{3004}\u{3008}-\u{3020}\u{3030}\u{3037}\u{303D}-\u{303F}\u{30A0}\u{30FB}\u{31C0}-\u{31E5}\u{4DC0}-\u{4DFF}\u{A490}-\u{A4C6}\u{A60D}-\u{A60F}\u{A673}\u{A67E}-\u{A67F}\u{A700}-\u{A721}\u{A788}\u{A828}-\u{A82B}\u{A838}-\u{A839}\u{A874}-\u{A877}\u{AB6A}-\u{AB6B}\u{FBC3}-\u{FBD2}\u{FD3E}-\u{FD4F}\u{FD90}-\u{FD91}\u{FDC8}-\u{FDCF}\u{FDFD}-\u{FDFF}\u{FE45}-\u{FE46}\u{10101}\u{10140}-\u{1018C}\u{10190}-\u{1019C}\u{101A0}\u{1091F}\u{10B39}-\u{10B3F}\u{10D6E}\u{10ED0}-\u{10ED8}\u{11052}-\u{11065}\u{11660}-\u{1166C}\u{11FD5}-\u{11FF1}\u{16FE2}\u{1CC00}-\u{1CCD5}\u{1CCFA}-\u{1CCFC}\u{1CD00}-\u{1CEB3}\u{1CEBA}-\u{1CED0}\u{1CED2}-\u{1CED4}\u{1CEDD}-\u{1CEFD}\u{1D1E9}-\u{1D1EA}\u{1D200}-\u{1D241}\u{1D245}\u{1D300}-\u{1D356}\u{1DB00}-\u{1DB1C}\u{1E2FF}\u{1EEF0}-\u{1EEF1}\u{1F000}-\u{1F02B}\u{1F030}-\u{1F093}\u{1F0A0}-\u{1F0AE}\u{1F0B1}-\u{1F0BF}\u{1F0C1}-\u{1F0CF}\u{1F0D1}-\u{1F0F5}\u{1F10B}-\u{1F10F}\u{1F12F}\u{1F16D}-\u{1F16F}\u{1F1AD}\u{1F260}-\u{1F265}\u{1F300}-\u{1F6D9}\u{1F6DC}-\u{1F6EC}\u{1F6F0}-\u{1F6FC}\u{1F700}-\u{1F7D9}\u{1F7DB}\u{1F7E0}-\u{1F7EB}\u{1F7F0}-\u{1F80B}\u{1F810}-\u{1F847}\u{1F850}-\u{1F859}\u{1F860}-\u{1F887}\u{1F890}-\u{1F8AD}\u{1F8B0}-\u{1F8BB}\u{1F8C0}-\u{1F8C1}\u{1F8D0}-\u{1F8D8}\u{1F900}-\u{1FA57}\u{1FA60}-\u{1FA6D}\u{1FA70}-\u{1FA7C}\u{1FA80}-\u{1FAC6}\u{1FAC8}\u{1FACC}-\u{1FADD}\u{1FADF}-\u{1FAEB}\u{1FAEF}-\u{1FAFA}\u{1FB00}-\u{1FB92}\u{1FB94}-\u{1FBEF}\u{1FBFA}]/ + BIDI_NSM = /[\u{300}-\u{33F}\u{342}\u{346}-\u{34E}\u{350}-\u{36F}\u{483}-\u{489}\u{591}-\u{5BD}\u{5BF}\u{5C1}-\u{5C2}\u{5C4}-\u{5C5}\u{5C7}-\u{5C9}\u{610}-\u{61A}\u{64B}-\u{65F}\u{670}\u{6D6}-\u{6DC}\u{6DF}-\u{6E4}\u{6E7}-\u{6E8}\u{6EA}-\u{6ED}\u{711}\u{730}-\u{74A}\u{7A6}-\u{7B0}\u{7EB}-\u{7F3}\u{7FD}\u{816}-\u{819}\u{81B}-\u{823}\u{825}-\u{827}\u{829}-\u{82D}\u{859}-\u{85B}\u{897}-\u{89F}\u{8CA}-\u{8E1}\u{8E3}-\u{902}\u{93A}\u{93C}\u{941}-\u{948}\u{94D}\u{951}-\u{957}\u{962}-\u{963}\u{981}\u{9BC}\u{9C1}-\u{9C4}\u{9CD}\u{9E2}-\u{9E3}\u{9FE}\u{A01}-\u{A02}\u{A3C}\u{A41}-\u{A42}\u{A47}-\u{A48}\u{A4B}-\u{A4D}\u{A51}\u{A70}-\u{A71}\u{A75}\u{A81}-\u{A82}\u{ABC}\u{AC1}-\u{AC5}\u{AC7}-\u{AC8}\u{ACD}\u{AE2}-\u{AE3}\u{AFA}-\u{AFF}\u{B01}\u{B3C}\u{B3F}\u{B41}-\u{B44}\u{B4D}\u{B53}-\u{B56}\u{B62}-\u{B63}\u{B82}\u{BC0}\u{BCD}\u{C00}\u{C04}\u{C3C}\u{C3E}-\u{C40}\u{C46}-\u{C48}\u{C4A}-\u{C4D}\u{C55}-\u{C56}\u{C62}-\u{C63}\u{C81}\u{CBC}\u{CCC}-\u{CCD}\u{CE2}-\u{CE3}\u{D00}-\u{D01}\u{D3B}-\u{D3C}\u{D41}-\u{D44}\u{D4D}\u{D62}-\u{D63}\u{D81}\u{DCA}\u{DD2}-\u{DD4}\u{DD6}\u{E31}\u{E34}-\u{E3A}\u{E47}-\u{E4E}\u{EB1}\u{EB4}-\u{EBC}\u{EC8}-\u{ECE}\u{F18}-\u{F19}\u{F35}\u{F37}\u{F39}\u{F71}-\u{F72}\u{F74}\u{F7A}-\u{F7E}\u{F80}\u{F82}-\u{F84}\u{F86}-\u{F87}\u{F8D}-\u{F92}\u{F94}-\u{F97}\u{F99}-\u{F9C}\u{F9E}-\u{FA1}\u{FA3}-\u{FA6}\u{FA8}-\u{FAB}\u{FAD}-\u{FB8}\u{FBA}-\u{FBC}\u{FC6}\u{102D}-\u{1030}\u{1032}-\u{1037}\u{1039}-\u{103A}\u{103D}-\u{103E}\u{1058}-\u{1059}\u{105E}-\u{1060}\u{1071}-\u{1074}\u{1082}\u{1085}-\u{1086}\u{108D}\u{109D}\u{135D}-\u{135F}\u{1712}-\u{1714}\u{1732}-\u{1733}\u{1752}-\u{1753}\u{1772}-\u{1773}\u{17B7}-\u{17BD}\u{17C6}\u{17C9}-\u{17D3}\u{17DD}\u{1885}-\u{1886}\u{18A9}\u{1920}-\u{1922}\u{1927}-\u{1928}\u{1932}\u{1939}-\u{193B}\u{1A17}-\u{1A18}\u{1A1B}\u{1A56}\u{1A58}-\u{1A5E}\u{1A60}\u{1A62}\u{1A65}-\u{1A6C}\u{1A73}-\u{1A7C}\u{1A7F}\u{1AB0}-\u{1AF0}\u{1B00}-\u{1B03}\u{1B34}\u{1B36}-\u{1B39}\u{1B6B}-\u{1B73}\u{1B80}-\u{1B81}\u{1BA2}-\u{1BA5}\u{1BA8}-\u{1BA9}\u{1BAB}-\u{1BAD}\u{1BE6}\u{1BE8}-\u{1BE9}\u{1BED}\u{1BEF}-\u{1BF1}\u{1C2C}-\u{1C33}\u{1C36}-\u{1C37}\u{1CD0}-\u{1CD2}\u{1CD4}-\u{1CE0}\u{1CE2}-\u{1CE8}\u{1CED}\u{1CF4}\u{1CF8}-\u{1CF9}\u{1DC0}-\u{1DFF}\u{20D0}-\u{20F0}\u{2CEF}-\u{2CF1}\u{2D7F}\u{2DE0}-\u{2DFF}\u{302A}-\u{302D}\u{3099}-\u{309A}\u{A66F}-\u{A672}\u{A674}-\u{A67D}\u{A69E}-\u{A69F}\u{A6F0}-\u{A6F1}\u{A802}\u{A806}\u{A80B}\u{A825}-\u{A826}\u{A82C}\u{A8C4}-\u{A8C5}\u{A8E0}-\u{A8F1}\u{A8FF}\u{A926}-\u{A92D}\u{A947}-\u{A951}\u{A980}-\u{A982}\u{A9B3}\u{A9B6}-\u{A9B9}\u{A9BC}-\u{A9BD}\u{A9E5}\u{AA29}-\u{AA2E}\u{AA31}-\u{AA32}\u{AA35}-\u{AA36}\u{AA43}\u{AA4C}\u{AA7C}\u{AAB0}\u{AAB2}-\u{AAB4}\u{AAB7}-\u{AAB8}\u{AABE}-\u{AABF}\u{AAC1}\u{AAEC}-\u{AAED}\u{AAF6}\u{ABE5}\u{ABE8}\u{ABED}\u{FB1E}\u{FE20}-\u{FE2F}\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}-\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}-\u{10AE6}\u{10D24}-\u{10D27}\u{10D69}-\u{10D6D}\u{10EAB}-\u{10EAC}\u{10ECB}-\u{10ECF}\u{10EF0}-\u{10EFF}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11001}\u{11038}-\u{11046}\u{11070}\u{11073}-\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}-\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}-\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}-\u{11237}\u{1123E}\u{11241}\u{112DF}\u{112E3}-\u{112EA}\u{11300}-\u{11301}\u{1133B}-\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{113BB}-\u{113C0}\u{113CE}\u{113D0}\u{113D2}\u{113E1}-\u{113E2}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}-\u{114C0}\u{114C2}-\u{114C3}\u{115B2}-\u{115B5}\u{115BC}-\u{115BD}\u{115BF}-\u{115C0}\u{115DC}-\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}-\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}-\u{1183A}\u{1193B}-\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}-\u{119DB}\u{119E0}\u{11A01}-\u{11A06}\u{11A09}-\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}-\u{11A99}\u{11B60}\u{11B62}-\u{11B64}\u{11B66}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}-\u{11CB3}\u{11CB5}-\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}-\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}-\u{11D91}\u{11D95}\u{11D97}\u{11DF0}\u{11EF3}-\u{11EF4}\u{11F00}-\u{11F01}\u{11F36}-\u{11F3A}\u{11F40}\u{11F42}\u{11F5A}\u{13440}\u{13447}-\u{13455}\u{1611E}-\u{16129}\u{1612D}-\u{1612F}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE4}\u{1BC9D}-\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D127}-\u{1D128}\u{1D167}-\u{1D169}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1D25B}-\u{1D25C}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}-\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E4EC}-\u{1E4EF}\u{1E5EE}-\u{1E5EF}\u{1E6E3}\u{1E6E6}\u{1E6EE}-\u{1E6EF}\u{1E6F5}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}]/ + end + end +end diff --git a/rakelib/idna.rake b/rakelib/idna.rake new file mode 100644 index 0000000..73974b0 --- /dev/null +++ b/rakelib/idna.rake @@ -0,0 +1,29 @@ +namespace :idna do + desc "Generate lib/uri/whatwg_parser/idna_data.rb from Unicode data (UNICODE_VERSION=x.y.z, default: the version of the current data)" + task :generate do + require_relative "idna_data_generator" + require "net/http" + require "fileutils" + + data_path = "lib/uri/whatwg_parser/idna_data.rb" + version = ENV["UNICODE_VERSION"] || File.read(data_path)[/UNICODE_VERSION = "([\d.]+)"/, 1] + abort "set UNICODE_VERSION" unless version + + cache_dir = File.join("tmp", "unicode", version) + FileUtils.mkdir_p(cache_dir) + sources = IDNADataGenerator::FILES.to_h do |key, file| + path = File.join(cache_dir, File.basename(file)) + unless File.exist?(path) + url = IDNADataGenerator.url(version, file) + puts "fetching #{url}" + response = Net::HTTP.get_response(URI(url)) + abort "failed to fetch #{url}: HTTP #{response.code}" unless response.is_a?(Net::HTTPSuccess) + File.binwrite(path, response.body) + end + [key, File.read(path, encoding: "UTF-8")] + end + + File.write(data_path, IDNADataGenerator.new(version, sources).generate) + puts "wrote #{data_path} (Unicode #{version})" + end +end diff --git a/rakelib/idna_data_generator.rb b/rakelib/idna_data_generator.rb new file mode 100644 index 0000000..2acee85 --- /dev/null +++ b/rakelib/idna_data_generator.rb @@ -0,0 +1,163 @@ +# frozen_string_literal: true + +# Generates lib/uri/whatwg_parser/idna_data.rb, the Unicode data that +# URI::WHATWG_Parser::IDNA needs for domain to ASCII (UTS #46 ToASCII +# with the settings of the URL Standard), from the Unicode Character +# Database files of one Unicode version. +class IDNADataGenerator + FILES = { + mapping: "idna/IdnaMappingTable.txt", + bidi_class: "ucd/extracted/DerivedBidiClass.txt", + joining_type: "ucd/extracted/DerivedJoiningType.txt", + combining_class: "ucd/extracted/DerivedCombiningClass.txt", + general_category: "ucd/extracted/DerivedGeneralCategory.txt", + }.freeze + + # Canonical_Combining_Class=Virama + VIRAMA = "9" + + def self.url(version, file) + "https://www.unicode.org/Public/#{version}/#{file}" + end + + # +sources+ maps each key of FILES to the content of that file. + def initialize(version, sources) + @version = version + @sources = sources + end + + def generate + mapping = parse_mapping + valid = mapping[:valid] + <<~RUBY + # frozen_string_literal: true + + # This file is generated by `rake idna:generate` from Unicode #{@version}: + #{FILES.values.map { |f| "# #{self.class.url(@version, f)}" }.join("\n")} + # Do not edit it by hand. + + module URI + class WHATWG_Parser + module IDNA # :nodoc: + UNICODE_VERSION = #{@version.dump} + + # The replacement of each code point with the status "mapped" or + # "ignored" (an empty string) in the IDNA Mapping Table. + MAPPING = { + #{mapping_entries(mapping[:mapped]).join("\n")} + }.freeze + + # A code point whose status is neither "valid" nor "deviation". + # A deviation is valid in Nontransitional Processing. + INVALID = #{char_class(valid, negate: true)} + + # General_Category=Mark, among the valid code points. + MARK = #{char_class(intersect(property("general_category") { |v| v.start_with?("M") }, valid))} + + # Canonical_Combining_Class=Virama, among the valid code points. + VIRAMA = #{char_class(intersect(property("combining_class") { |v| v == VIRAMA }, valid))} + + # Joining_Type, among the valid code points. + JOINING_TYPE_L_OR_D = #{char_class(intersect(property("joining_type") { |v| %w[L D].include?(v) }, valid))} + JOINING_TYPE_R_OR_D = #{char_class(intersect(property("joining_type") { |v| %w[R D].include?(v) }, valid))} + JOINING_TYPE_T = #{char_class(intersect(property("joining_type") { |v| v == "T" }, valid))} + + # Bidi_Class, among the valid code points. The values that the + # Bidi Rule (RFC 5893) always treats alike are grouped. + BIDI_L = #{char_class(intersect(bidi_class("L"), valid))} + BIDI_R_OR_AL = #{char_class(intersect(bidi_class("R", "AL"), valid))} + BIDI_AN = #{char_class(intersect(bidi_class("AN"), valid))} + BIDI_EN = #{char_class(intersect(bidi_class("EN"), valid))} + BIDI_ES_CS_ET_ON_BN = #{char_class(intersect(bidi_class("ES", "CS", "ET", "ON", "BN"), valid))} + BIDI_NSM = #{char_class(intersect(bidi_class("NSM"), valid))} + end + end + end + RUBY + end + + private + + # Returns {valid: [ranges], mapped: {code point => [code points]}}. + def parse_mapping + valid = [] + mapped = {} + each_line(:mapping) do |range, fields| + case fields[0] + when "valid", "deviation" + valid << range + when "mapped" + target = fields[1].split.map(&:hex) + range.each { |c| mapped[c] = target } + when "ignored" + range.each { |c| mapped[c] = [] } + when "disallowed" + else + raise "unknown status #{fields[0].inspect} in IdnaMappingTable.txt" + end + end + {valid: merge(valid), mapped: mapped} + end + + def property(key) + ranges = [] + each_line(key.to_sym) do |range, fields| + ranges << range if yield fields[0] + end + merge(ranges) + end + + def bidi_class(*values) + property("bidi_class") { |v| values.include?(v) } + end + + # Yields each data line of a UCD file as a code point range and the + # remaining fields, without comments. "@missing" lines are comments. + def each_line(key) + @sources.fetch(key).each_line do |line| + line = line.sub(/#.*/, "").strip + next if line.empty? + code_points, *fields = line.split(";").map(&:strip) + first, last = code_points.split("..").map(&:hex) + yield first..(last || first), fields + end + end + + def merge(ranges) + ranges.sort_by(&:first).each_with_object([]) do |range, merged| + if merged.last && merged.last.last + 1 >= range.first + merged[-1] = merged.last.first..[merged.last.last, range.last].max + else + merged << range + end + end + end + + def intersect(ranges, others) + ranges.flat_map do |range| + others.filter_map do |other| + first = [range.first, other.first].max + last = [range.last, other.last].min + first..last if first <= last + end + end + end + + def mapping_entries(mapped) + mapped.sort.each_slice(4).map do |slice| + " " + slice.map { |c, target| "#{escape([c])} => #{escape(target)}," }.join(" ") + end + end + + def escape(code_points) + "\"#{code_points.map { |c| format("\\u{%X}", c) }.join}\"" + end + + def char_class(ranges, negate: false) + body = ranges.map do |range| + first = format("\\u{%X}", range.first) + range.size == 1 ? first : "#{first}-#{format("\\u{%X}", range.last)}" + end + "/[#{"^" if negate}#{body.join}]/" + end +end From af9af3ecd1c3a445ca2d7f6d1646af0e0af96c6c Mon Sep 17 00:00:00 2001 From: jinroq Date: Wed, 18 Nov 2026 17:13:33 +0900 Subject: [PATCH 26/74] Write non-ASCII strings in WHATWG_Parser tests as escapes Escapes make every code point visible, including combining marks and look-alikes such as U+212A KELVIN SIGN. Co-Authored-By: Claude Opus 5.5 --- test/uri/test_whatwg_parser.rb | 16 ++++++++-------- test/uri/test_whatwg_punycode.rb | 32 ++++++++++++++++---------------- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/test/uri/test_whatwg_parser.rb b/test/uri/test_whatwg_parser.rb index b0d5abc..dd69d07 100644 --- a/test/uri/test_whatwg_parser.rb +++ b/test/uri/test_whatwg_parser.rb @@ -376,7 +376,7 @@ def test_split_scheme_rejects_other_characters def test_split_scheme_rejects_non_ascii_letters # U+212A KELVIN SIGN lowercases to "k" with Unicode case mapping, but # it is not an ASCII alpha. - ["é:x", "aé:x", "K:x", "Khttp:x"].each do |input| + ["\u00E9:x", "a\u00E9:x", "\u212A:x", "\u212Ahttp:x"].each do |input| assert_raise(URI::InvalidURIError, input) { split(input) } end end @@ -659,7 +659,7 @@ def test_split_ascii_xn_label_is_lowercased def test_split_non_ascii_domain_is_left_as_is # Interim behaviour until domain to ASCII (UTS #46) is implemented. - assert_equal("é.example", split("http://é.example/")[HOST]) + assert_equal("\u00E9.example", split("http://\u00E9.example/")[HOST]) assert_equal("%C3%A9.example", split("http://%C3%A9.example/")[HOST]) end @@ -884,7 +884,7 @@ def test_split_ipv6_invalid_colons_fail end def test_split_ipv6_invalid_characters_fail - assert_ipv6_failure("g::", "::1 ", "::1%25eth0", "%3A%3A1", "::-1", "é::") + assert_ipv6_failure("g::", "::1 ", "::1%25eth0", "%3A%3A1", "::-1", "\u00E9::") end def test_split_ipv6_embedded_ipv4 @@ -1385,8 +1385,8 @@ def test_split_percent_encodes_null def test_split_percent_encodes_non_ascii_as_utf8 { "\u0080" => "%C2%80", - "é" => "%C3%A9", - "あ" => "%E3%81%82", + "\u00E9" => "%C3%A9", + "\u3042" => "%E3%81%82", "\u{1F600}" => "%F0%9F%98%80", }.each do |c, encoded| assert_equal("/#{encoded}", split("http://h/#{c}")[PATH], c) @@ -1420,7 +1420,7 @@ def test_split_encodes_userinfo_with_at_sign_kept_as_percent_40 def test_split_encoded_path_is_not_a_dot_segment assert_equal("/a/.%20/b", path("http://h/a/.%20/b")) assert_equal("/a/.%20/b", path("http://h/a/. /b")) - assert_equal("/a/%E3%80%82/b", path("http://h/a/。/b")) + assert_equal("/a/%E3%80%82/b", path("http://h/a/\u3002/b")) end def test_split_special_query_quote_differs_from_non_special @@ -1435,7 +1435,7 @@ def test_parse_percent_encoded_round_trip end def test_split_percent_encode_in_linear_time - pre = ->(n) { "http://h/" + "é" * n + "?" + "é" * n + "#" + "é" * n } + pre = ->(n) { "http://h/" + "\u00E9" * n + "?" + "\u00E9" * n + "#" + "\u00E9" * n } assert_linear_performance((1..4).map { |i| 10**i }, pre: pre) do |uri| split(uri) end @@ -1979,7 +1979,7 @@ def test_split_opaque_host_percent_encodes_c0_controls_and_non_ascii assert_equal("a%1Fb", split("foo://a\x1Fb/")[HOST]) assert_equal("a%7Fb", split("foo://a\x7Fb/")[HOST]) assert_equal("a%C2%80b", split("foo://a\u0080b/")[HOST]) - assert_equal("%C3%A9", split("foo://é/")[HOST]) + assert_equal("%C3%A9", split("foo://\u00E9/")[HOST]) assert_equal("%F0%9F%98%80", split("foo://\u{1F600}/")[HOST]) end diff --git a/test/uri/test_whatwg_punycode.rb b/test/uri/test_whatwg_punycode.rb index 96b08ea..1cdfbb7 100644 --- a/test/uri/test_whatwg_punycode.rb +++ b/test/uri/test_whatwg_punycode.rb @@ -11,20 +11,20 @@ class URI::TestWHATWGPunycode < Test::Unit::TestCase ["a", "a-"], ["abc", "abc-"], ["-> $1.00 <-", "-> $1.00 <--"], - ["ü", "tda"], - ["bücher", "bcher-kva"], - ["faß", "fa-hia"], - ["☕", "53h"], - ["日本語", "wgv71a119e"], - ["ハロー・ワールド", "gdkl8fhk5egc"], - ["3年B組金八先生", "3B-ww4c5e180e575a65lsy2b"], + ["\u00FC", "tda"], + ["b\u00FCcher", "bcher-kva"], + ["fa\u00DF", "fa-hia"], + ["\u2615", "53h"], + ["\u65E5\u672C\u8A9E", "wgv71a119e"], + ["\u30CF\u30ED\u30FC\u30FB\u30EF\u30FC\u30EB\u30C9", "gdkl8fhk5egc"], + ["3\u5E74B\u7D44\u91D1\u516B\u5148\u751F", "3B-ww4c5e180e575a65lsy2b"], # RFC 3492 7.1 (A) Arabic (Egyptian) - ["ليهمابتكلموشعربي؟", + ["\u0644\u064A\u0647\u0645\u0627\u0628\u062A\u0643\u0644\u0645\u0648\u0634\u0639\u0631\u0628\u064A\u061F", "egbpdaj6bu4bxfgehfvwxn"], # RFC 3492 7.1 (B) Chinese (simplified) - ["他们为什么不说中文", "ihqwcrb4cv8a8dqg056pqjye"], - ["é-", "--9fa"], - ["-é", "--bga"], + ["\u4ED6\u4EEC\u4E3A\u4EC0\u4E48\u4E0D\u8BF4\u4E2D\u6587", "ihqwcrb4cv8a8dqg056pqjye"], + ["\u00E9-", "--9fa"], + ["-\u00E9", "--bga"], # boundaries of the code space ["\u0080", "a"], ["\u007F\u0080", "\u007F-ba"], @@ -44,7 +44,7 @@ class URI::TestWHATWGPunycode < Test::Unit::TestCase end def test_encode_returns_ascii - assert_predicate(Punycode.encode("日本語"), :ascii_only?) + assert_predicate(Punycode.encode("\u65E5\u672C\u8A9E"), :ascii_only?) end def test_decode_returns_utf8 @@ -53,11 +53,11 @@ def test_decode_returns_utf8 end def test_decode_digits_are_case_insensitive - assert_equal("bücher", Punycode.decode("bcher-KVA")) + assert_equal("b\u00FCcher", Punycode.decode("bcher-KVA")) end def test_decode_keeps_the_case_of_basic_code_points - assert_equal("BüCHER", Punycode.decode("BCHER-KVA")) + assert_equal("B\u00FCCHER", Punycode.decode("BCHER-KVA")) end def test_decode_lone_delimiter @@ -69,8 +69,8 @@ def test_decode_splits_at_the_last_delimiter end def test_decode_rejects_non_ascii - assert_nil(Punycode.decode("ü")) - assert_nil(Punycode.decode("ü-tda")) + assert_nil(Punycode.decode("\u00FC")) + assert_nil(Punycode.decode("\u00FC-tda")) end def test_decode_rejects_invalid_digits From ad71abce457e1389d04be090b8c0baa94e7b428f Mon Sep 17 00:00:00 2001 From: jinroq Date: Wed, 18 Nov 2026 17:14:20 +0900 Subject: [PATCH 27/74] Implement domain to ASCII for non-ASCII domains URI::WHATWG_Parser::IDNA.to_ascii is Unicode ToASCII (UTS #46) with the settings of the URL Standard: CheckHyphens=false, CheckBidi=true, CheckJoiners=true, UseSTD3ASCIIRules=false, Transitional_Processing=false, VerifyDnsLength=false and IgnoreInvalidPunycode=false. It maps, normalizes to NFC with String#unicode_normalize, decodes and validates "xn--" labels, checks the validity criteria, the CONTEXTJ rules and the Bidi Rule, and converts non-ASCII labels to Punycode. It returns nil on failure. The Unicode data is loaded on first use, so `require "uri"` does not pay for it. The parser does not call it yet. Co-Authored-By: Claude Opus 5.5 --- lib/uri/whatwg_parser.rb | 1 + lib/uri/whatwg_parser/idna.rb | 143 ++++++++++++++++++++ test/uri/test_whatwg_idna.rb | 239 ++++++++++++++++++++++++++++++++++ 3 files changed, 383 insertions(+) create mode 100644 lib/uri/whatwg_parser/idna.rb create mode 100644 test/uri/test_whatwg_idna.rb diff --git a/lib/uri/whatwg_parser.rb b/lib/uri/whatwg_parser.rb index f123e28..4c89833 100644 --- a/lib/uri/whatwg_parser.rb +++ b/lib/uri/whatwg_parser.rb @@ -1,5 +1,6 @@ # frozen_string_literal: true require_relative "whatwg_parser/punycode" +require_relative "whatwg_parser/idna" module URI # A parser for the WHATWG URL Standard (https://url.spec.whatwg.org/). diff --git a/lib/uri/whatwg_parser/idna.rb b/lib/uri/whatwg_parser/idna.rb new file mode 100644 index 0000000..2f33075 --- /dev/null +++ b/lib/uri/whatwg_parser/idna.rb @@ -0,0 +1,143 @@ +# frozen_string_literal: true +module URI + class WHATWG_Parser + # Domain to ASCII (https://url.spec.whatwg.org/#concept-domain-to-ascii) + # for a domain that is not ASCII: Unicode ToASCII (UTS #46, + # https://www.unicode.org/reports/tr46/) with CheckHyphens=false, + # CheckBidi=true, CheckJoiners=true, UseSTD3ASCIIRules=false, + # Transitional_Processing=false, VerifyDnsLength=false and + # IgnoreInvalidPunycode=false. + # + # The Unicode data (idna_data.rb) is loaded on first use. + module IDNA # :nodoc: + ACE_PREFIX = "xn--" + LABEL_SEPARATOR = "." + ZWNJ = 0x200C.chr(Encoding::UTF_8) + ZWJ = 0x200D.chr(Encoding::UTF_8) + + # Every code point the IDNA Mapping Table leaves unchanged is + # matched out; ASCII code points other than A-Z are among them. + MAPPING_CANDIDATE = /[A-Z]|[^\x00-\x7F]/ + + # The Bidi Rule (RFC 5893 section 2), over a label whose code points + # are replaced by their Bidi_Class: L, R (R or AL), A (AN), E (EN), + # N (ES, CS, ET, ON or BN), M (NSM), or X (anything else). + BIDI_RTL = /[RA]/ + BIDI_FIRST = /\A[LR]/ + BIDI_RTL_ALLOWED = /\A[RAENM]*\z/ + BIDI_RTL_END = /[RAE]M*\z/ + BIDI_LTR_ALLOWED = /\A[LENM]*\z/ + BIDI_LTR_END = /[LE]M*\z/ + + module_function + + # Returns the ASCII form of +domain+, or nil on failure. + def to_ascii(domain) + labels = process(domain) + return nil unless labels + labels.map { |label| label.ascii_only? ? label : ACE_PREFIX + Punycode.encode(label) }.join(LABEL_SEPARATOR) + end + + # UTS #46 Processing. Returns the labels in Unicode, or nil if an + # error is recorded. + def process(domain) + return nil unless domain.valid_encoding? + load_data + + mapped = domain.gsub(MAPPING_CANDIDATE) { |c| MAPPING.fetch(c, c) } + labels = mapped.unicode_normalize(:nfc).split(LABEL_SEPARATOR, -1) + labels.map! do |label| + label = decode_label(label) if label.start_with?(ACE_PREFIX) + return nil unless label && valid_label?(label) + label + end + return nil if bidi_domain?(labels) && !labels.all? { |label| satisfies_bidi_rule?(label) } + labels + end + + def load_data + require_relative "idna_data" unless const_defined?(:MAPPING, false) + end + + # Processing step 4 for a label that starts with "xn--". Returns the + # decoded label, or nil. + def decode_label(label) + return nil unless label.ascii_only? + decoded = Punycode.decode(label[ACE_PREFIX.size..-1]) + return nil if decoded.nil? || decoded.empty? || decoded.ascii_only? + return nil unless decoded.unicode_normalized?(:nfc) + decoded + end + + # Validity Criteria (UTS #46 section 4.1) for Nontransitional + # Processing, except the Bidi Rule, which needs the whole domain. + # Criterion 1 (NFC) holds for a label that was not decoded. + def valid_label?(label) + return true if label.empty? + !label.start_with?(ACE_PREFIX) && + !label.include?(LABEL_SEPARATOR) && + !MARK.match?(label[0]) && + !INVALID.match?(label) && + valid_joiners?(label) + end + + # CONTEXTJ rules (RFC 5892 Appendix A.1 and A.2). + def valid_joiners?(label) + return true unless label.include?(ZWNJ) || label.include?(ZWJ) + chars = label.chars + chars.each_with_index.all? do |char, i| + case char + when ZWJ + i > 0 && VIRAMA.match?(chars[i - 1]) + when ZWNJ + (i > 0 && VIRAMA.match?(chars[i - 1])) || joining_context?(chars, i) + else + true + end + end + end + + # Whether the ZWNJ at +i+ is preceded by Joining_Type L or D and + # followed by Joining_Type R or D, with only Joining_Type T between. + def joining_context?(chars, i) + before = i - 1 + before -= 1 while before >= 0 && JOINING_TYPE_T.match?(chars[before]) + return false unless before >= 0 && JOINING_TYPE_L_OR_D.match?(chars[before]) + + after = i + 1 + after += 1 while after < chars.size && JOINING_TYPE_T.match?(chars[after]) + after < chars.size && JOINING_TYPE_R_OR_D.match?(chars[after]) + end + + # A Bidi domain name contains a code point with Bidi_Class R, AL or AN. + def bidi_domain?(labels) + labels.any? { |label| BIDI_RTL.match?(bidi_classes(label)) } + end + + def satisfies_bidi_rule?(label) + return true if label.empty? + classes = bidi_classes(label) + return false unless BIDI_FIRST.match?(classes) + if BIDI_RTL.match?(classes) + BIDI_RTL_ALLOWED.match?(classes) && BIDI_RTL_END.match?(classes) && + !(classes.include?("A") && classes.include?("E")) + else + BIDI_LTR_ALLOWED.match?(classes) && BIDI_LTR_END.match?(classes) + end + end + + def bidi_classes(label) + label.each_char.map do |char| + if BIDI_L.match?(char) then "L" + elsif BIDI_R_OR_AL.match?(char) then "R" + elsif BIDI_AN.match?(char) then "A" + elsif BIDI_EN.match?(char) then "E" + elsif BIDI_ES_CS_ET_ON_BN.match?(char) then "N" + elsif BIDI_NSM.match?(char) then "M" + else "X" + end + end.join + end + end + end +end diff --git a/test/uri/test_whatwg_idna.rb b/test/uri/test_whatwg_idna.rb new file mode 100644 index 0000000..f36a02c --- /dev/null +++ b/test/uri/test_whatwg_idna.rb @@ -0,0 +1,239 @@ +# frozen_string_literal: false +require 'test/unit' +require 'uri' + +# Domain to ASCII: UTS #46 ToASCII with the settings of the URL Standard +# (CheckHyphens=false, CheckBidi=true, CheckJoiners=true, +# UseSTD3ASCIIRules=false, Transitional_Processing=false, +# VerifyDnsLength=false, IgnoreInvalidPunycode=false). +class URI::TestWHATWGIDNA < Test::Unit::TestCase + IDNA = URI::WHATWG_Parser::IDNA + + def assert_to_ascii(expected, domain) + assert_equal(expected, IDNA.to_ascii(domain), "to_ascii(#{domain.dump})") + end + + def assert_failure(domain) + assert_nil(IDNA.to_ascii(domain), "to_ascii(#{domain.dump})") + end + + # --- ASCII --------------------------------------------------------- + + def test_ascii_is_lowercased + assert_to_ascii("example.com", "EXAMPLE.com") + end + + def test_ascii_without_std3_rules + assert_to_ascii("a_b.com", "a_b.com") + assert_to_ascii("a b", "a b") + end + + def test_hyphens_are_not_checked + assert_to_ascii("-a-.com", "-a-.com") + assert_to_ascii("ab--c.com", "ab--c.com") + end + + def test_dns_length_is_not_verified + assert_to_ascii("", "") + assert_to_ascii("a..b", "a..b") + assert_to_ascii("a.", "a.") + assert_to_ascii("a" * 64, "a" * 64) + end + + # --- Map ----------------------------------------------------------- + + def test_mapped + assert_to_ascii("example.com", "\uFF25\uFF38\uFF21\uFF2D\uFF30\uFF2C\uFF25.com") + assert_to_ascii("a.com", "\u24D0.com") + end + + def test_mapped_to_several_code_points + assert_to_ascii("tm.com", "\u2122.com") + end + + def test_ignored + assert_to_ascii("example.com", "ex\u00ADample.com") + end + + def test_ideographic_full_stop_separates_labels + assert_to_ascii("xn--wgv71a119e.jp", "\u65E5\u672C\u8A9E\u3002jp") + assert_to_ascii("xn--wgv71a119e.jp", "\u65E5\u672C\u8A9E\uFF0Ejp") + assert_to_ascii("xn--wgv71a119e.jp", "\u65E5\u672C\u8A9E\uFF61jp") + end + + def test_deviation_is_kept + assert_to_ascii("xn--fa-hia.de", "fa\u00DF.de") + assert_to_ascii("xn--fa-hia.de", "FA\u1E9E.de") + end + + # --- Normalize ----------------------------------------------------- + + def test_normalized_to_nfc + assert_to_ascii("xn--9ca.com", "e\u0301.com") + end + + # --- Convert ------------------------------------------------------- + + def test_non_ascii_labels_are_converted + assert_to_ascii("xn--wgv71a119e.jp", "\u65E5\u672C\u8A9E.jp") + assert_to_ascii("xn--tda.xn--tda", "\u00FC.\u00DC") + end + + def test_result_is_ascii + assert_predicate(IDNA.to_ascii("\u65E5\u672C\u8A9E.jp"), :ascii_only?) + end + + def test_empty_labels_around_non_ascii + assert_to_ascii("xn--tda..com", "\u00FC..com") + assert_to_ascii("xn--tda.", "\u00FC.") + assert_to_ascii(".xn--tda", ".\u00FC") + end + + # --- Validity criteria --------------------------------------------- + + def test_disallowed + assert_failure("\uFFFD.com") + assert_failure("a\u2028b.com") + assert_failure("\uE000.com") + assert_failure("\u{E0001}.com") + end + + def test_leading_combining_mark + assert_failure("\u0301a.com") + assert_to_ascii("xn--9ca.com", "e\u0301.com") + end + + def test_label_starting_with_xn_dash_dash_and_non_ascii + assert_failure("xn--\u00FC.com") + end + + # --- Punycode labels ----------------------------------------------- + + def test_valid_punycode_label_is_kept + assert_to_ascii("xn--tda.xn--tda", "xn--tda.\u00FC") + assert_to_ascii("xn--tda.xn--tda", "XN--TDA.\u00FC") + end + + def test_invalid_punycode + assert_failure("xn--a-!.\u00FC") + assert_failure("xn--a-9.\u00FC") + end + + def test_empty_punycode + assert_failure("xn--.\u00FC") + assert_failure("xn---.\u00FC") + end + + def test_ascii_only_punycode + assert_failure("xn--ascii-.\u00FC") + end + + def test_punycode_decoding_to_disallowed + assert_failure("xn--a.\u00FC") # U+0080 + end + + def test_punycode_decoding_to_mapped + # U+24D0 is mapped; a decoded label is validated, not mapped. + assert_failure("xn--vuh.\u00FC") + end + + def test_punycode_decoding_to_non_nfc + assert_failure("xn--e-xbb.\u00FC") # "e\u0301" + end + + # --- CheckJoiners -------------------------------------------------- + + def test_zwnj_after_virama + assert_to_ascii("xn--11b2ezcs70k", "\u0915\u094D\u200C\u0937") + end + + def test_zwnj_in_joining_context + assert_to_ascii("xn--ngba799q", "\u0628\u200C\u0628") + end + + def test_zwnj_in_joining_context_with_transparent + assert_equal( + IDNA.to_ascii("\u0628\u064B\u200C\u064B\u0628"), + "xn--" + URI::WHATWG_Parser::Punycode.encode("\u0628\u064B\u200C\u064B\u0628") + ) + end + + def test_zwnj_without_context + assert_failure("a\u200Cb") + assert_failure("\u200Cb") + assert_failure("\u0628\u200C") + assert_failure("\u200C\u0628") + end + + def test_zwj_after_virama + assert_to_ascii("xn--11b2ezcw70k", "\u0915\u094D\u200D\u0937") + end + + def test_zwj_without_virama + assert_failure("a\u200Db") + assert_failure("\u200Db") + assert_failure("\u0628\u200D\u0628") + end + + # --- CheckBidi ----------------------------------------------------- + + def test_rtl_label + assert_to_ascii("xn--4dbc.com", "\u05D0\u05D1.com") + end + + def test_rtl_label_ending_with_nsm + assert_to_ascii("xn--7cb7d", "\u05D0\u05B0") + end + + def test_rtl_label_with_an + assert_to_ascii("xn--mgb0j", "\u0627\u0661") + end + + def test_rtl_label_with_en_at_the_end + assert_to_ascii("xn--1-zhc", "\u05D01") + end + + def test_rtl_label_with_l + assert_failure("\u05D0a") + end + + def test_rtl_label_starting_with_an + assert_failure("\u0661\u0627") + end + + def test_rtl_label_mixing_an_and_en + assert_failure("\u0627\u0661\u06F1") + end + + def test_rtl_label_ending_with_on + assert_failure("\u05D0!") + end + + def test_ltr_label_with_r + assert_failure("a\u05D0") + end + + def test_ltr_label_in_a_bidi_domain_starting_with_en + assert_failure("1a.\u05D0") + end + + def test_ltr_label_in_a_bidi_domain_ending_with_on + assert_failure("a!.\u05D0") + end + + def test_ltr_label_outside_a_bidi_domain_is_not_checked + assert_to_ascii("1a.xn--tda", "1a.\u00FC") + end + + # --- Input --------------------------------------------------------- + + def test_invalid_utf8 + assert_failure("\xFF.com".dup.force_encoding(Encoding::UTF_8)) + end + + def test_input_is_not_modified + domain = "\u00DC.com" + IDNA.to_ascii(domain) + assert_equal("\u00DC.com", domain) + end +end From 03e860d482bea97dfd158555ed4773aeecd55290 Mon Sep 17 00:00:00 2001 From: jinroq Date: Wed, 18 Nov 2026 17:16:40 +0900 Subject: [PATCH 28/74] Run Unicode's IdnaTestV2.txt in rake test:wpt IdnaTestV2.txt is the conformance test of UTS #46. It is fetched for the Unicode version of the generated IDNA data, or read from IDNA_TEST_V2. The toAsciiN column is checked, ignoring the status codes of the checks that domain to ASCII turns off (V2, V3, U1, A4_1, A4_2 and X4_2). Cases holding a surrogate are skipped. All 6394 checkable cases of Unicode 18.0.0 pass. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/wpt.yml | 3 +- rakelib/wpt.rake | 2 +- test/wpt/idna_test_v2.rb | 112 ++++++++++++++++++++++ test/wpt/test_idna_test_v2.rb | 29 ++++++ test/wpt/test_idna_test_v2_harness.rb | 129 ++++++++++++++++++++++++++ 5 files changed, 273 insertions(+), 2 deletions(-) create mode 100644 test/wpt/idna_test_v2.rb create mode 100644 test/wpt/test_idna_test_v2.rb create mode 100644 test/wpt/test_idna_test_v2_harness.rb diff --git a/.github/workflows/wpt.yml b/.github/workflows/wpt.yml index e0d82d9..29a887e 100644 --- a/.github/workflows/wpt.yml +++ b/.github/workflows/wpt.yml @@ -1,7 +1,8 @@ name: WPT # Runs web-platform-tests' url/resources/urltestdata.json, fetched from WPT -# master, against URI::WHATWG_PARSER (rake test:wpt). +# master, against URI::WHATWG_PARSER (rake test:wpt). The same task runs +# Unicode's IdnaTestV2.txt for the Unicode version of the IDNA data. # # The URL Standard is a living standard and WPT follows its changes, so the # scheduled run is how a change in the standard is noticed: it fails when a diff --git a/rakelib/wpt.rake b/rakelib/wpt.rake index 778ac95..6ec3601 100644 --- a/rakelib/wpt.rake +++ b/rakelib/wpt.rake @@ -2,7 +2,7 @@ require "rake/testtask" namespace :test do Rake::TestTask.new(:wpt) do |t| - t.description = "Run web-platform-tests urltestdata.json against URI::WHATWG_PARSER (needs network unless WPT_URLTESTDATA is a local file)" + t.description = "Run WPT urltestdata.json and Unicode IdnaTestV2.txt against URI::WHATWG_PARSER (needs network unless WPT_URLTESTDATA and IDNA_TEST_V2 are local files)" t.libs << "lib" t.test_files = FileList["test/wpt/test_*.rb"] end diff --git a/test/wpt/idna_test_v2.rb b/test/wpt/idna_test_v2.rb new file mode 100644 index 0000000..b708fb9 --- /dev/null +++ b/test/wpt/idna_test_v2.rb @@ -0,0 +1,112 @@ +# frozen_string_literal: true +require 'uri' +require_relative 'wpt_url_test_data' + +# Harness for running Unicode's IdnaTestV2.txt, the conformance test of +# UTS #46, against URI::WHATWG_Parser::IDNA.to_ascii. +# +# Each case is a Hash of :source, :to_ascii (the toAsciiN column: ToASCII +# with Nontransitional Processing), :status (the status codes of +# toAsciiN) and :line. :source and :to_ascii are nil when the column +# holds a surrogate, which a UTF-8 String cannot. +module IDNATestV2 + # Status codes of the checks that domain to ASCII turns off: + # CheckHyphens (V2, V3), UseSTD3ASCIIRules (U1) and VerifyDnsLength + # (A4_1, A4_2, and X4_2, which IdnaTestV2.txt reports for an empty + # label). + IGNORED_STATUSES = %w[V2 V3 U1 A4_1 A4_2 X4_2].freeze + + ESCAPE = /\\u(\h{4})|\\x\{(\h+)\}/ + SURROGATES = (0xD800..0xDFFF).freeze + + module_function + + def unicode_version + URI::WHATWG_Parser::IDNA.load_data + URI::WHATWG_Parser::IDNA::UNICODE_VERSION + end + + # IdnaTestV2.txt of the Unicode version of URI::WHATWG_Parser's data. + def default_source + "https://www.unicode.org/Public/#{unicode_version}/idna/IdnaTestV2.txt" + end + + # IDNA_TEST_V2 (a local path or an https URL) if set, otherwise + # default_source. + def source + ENV["IDNA_TEST_V2"] || default_source + end + + def load(source) + text = source.match?(%r{\A[A-Za-z][A-Za-z0-9+.-]*://}) ? WPT::URLTestData.fetch(source) : File.read(source) + parse(text.dup.force_encoding(Encoding::UTF_8)) + end + + def parse(text) + cases = [] + text.each_line.with_index(1) do |line, number| + line = line.sub(/#.*/, "").strip + next if line.empty? + + columns = line.split(";", -1).map(&:strip) + source = value(columns[0]) + to_unicode = columns[1].empty? ? source : value(columns[1]) + to_unicode_status = statuses(columns[2]) + to_ascii = columns[3].empty? ? to_unicode : value(columns[3]) + status = columns[4].empty? ? to_unicode_status : statuses(columns[4]) + cases << { source: source, to_ascii: to_ascii, status: status, line: number } + end + cases + end + + def value(column) + column == '""' ? "" : unescape(column) + end + + def statuses(column) + column.delete("[]").split(",").map(&:strip) + end + + # Replaces \uXXXX and \x{X...} escapes. Returns nil if one of them is a + # surrogate. + def unescape(str) + code_points = [] + result = str.gsub(ESCAPE) do + code_point = ($1 || $2).hex + code_points << code_point + SURROGATES.cover?(code_point) ? "" : code_point.chr(Encoding::UTF_8) + end + code_points.any? { |c| SURROGATES.cover?(c) } ? nil : result + end + + # {failure: true}, {value: expected ASCII}, or nil when the case cannot + # be checked: it holds a surrogate, or it has only ignored errors and + # the file gives no ASCII result for it. + def expectation(test_case) + return nil if test_case[:source].nil? || test_case[:to_ascii].nil? + return { failure: true } unless (test_case[:status] - IGNORED_STATUSES).empty? + return nil unless test_case[:to_ascii].ascii_only? + { value: test_case[:to_ascii] } + end + + # Runs +test_case+ with +to_ascii+, a callable that returns the ASCII + # domain or nil on failure. Returns nil when it passes, or a message. + def run(test_case, to_ascii) + expected = expectation(test_case) + return nil unless expected + + begin + actual = to_ascii.call(test_case[:source]) + rescue StandardError => e + return "#{e.class}: #{e.message}" + end + + if expected[:failure] + actual.nil? ? nil : "expected failure (#{test_case[:status].join(", ")}), got #{actual.inspect}" + elsif actual.nil? + "unexpected failure, expected #{expected[:value].inspect}" + elsif actual != expected[:value] + "expected #{expected[:value].inspect}, got #{actual.inspect}" + end + end +end diff --git a/test/wpt/test_idna_test_v2.rb b/test/wpt/test_idna_test_v2.rb new file mode 100644 index 0000000..b5d74fe --- /dev/null +++ b/test/wpt/test_idna_test_v2.rb @@ -0,0 +1,29 @@ +# frozen_string_literal: true +require 'test/unit' +require 'uri' +require_relative 'idna_test_v2' + +# Runs Unicode's IdnaTestV2.txt against URI::WHATWG_Parser::IDNA.to_ascii. +# +# The data is fetched for the Unicode version of the generated data +# (lib/uri/whatwg_parser/idna_data.rb), unless IDNA_TEST_V2 names a +# local file or another https URL. +class IDNATestV2::TestConformance < Test::Unit::TestCase + SOURCE = IDNATestV2.source + CASES = IDNATestV2.load(SOURCE) + + CASES.each do |test_case| + next unless IDNATestV2.expectation(test_case) + data("line #{test_case[:line]} #{test_case[:source].dump}", test_case) + end + + def test_case(test_case) + message = IDNATestV2.run(test_case, URI::WHATWG_Parser::IDNA.method(:to_ascii)) + flunk(message) if message + end + + def test_source + assert_not_empty(CASES, "no cases in #{SOURCE}") + notify("IdnaTestV2: #{CASES.size} cases (source: #{SOURCE})") + end +end diff --git a/test/wpt/test_idna_test_v2_harness.rb b/test/wpt/test_idna_test_v2_harness.rb new file mode 100644 index 0000000..9dd4a00 --- /dev/null +++ b/test/wpt/test_idna_test_v2_harness.rb @@ -0,0 +1,129 @@ +# frozen_string_literal: true +require 'test/unit' +require 'uri' +require_relative 'idna_test_v2' + +# Tests for the harness that runs Unicode's IdnaTestV2.txt. These never +# touch the network. +class IDNATestV2::TestHarness < Test::Unit::TestCase + def parse(text) + IDNATestV2.parse(text) + end + + def test_parse_skips_comments_and_blank_lines + cases = parse(<<~'TXT') + # comment + + fass.de; ; ; ; ; ; # fass.de + TXT + assert_equal(1, cases.size) + assert_equal("fass.de", cases[0][:source]) + assert_equal(3, cases[0][:line]) + end + + def test_parse_blank_columns_inherit + c = parse("Fa\\u00DF.de; fa\\u00DF.de; ; ; ; ; # x\n")[0] + # toAsciiN is the toUnicode value; its status is the toUnicode status. + assert_equal("fa\u00DF.de", c[:to_ascii]) + assert_equal([], c[:status]) + end + + def test_parse_blank_to_unicode_is_the_source + c = parse("fass.de; ; ; ; ; ;\n")[0] + assert_equal("fass.de", c[:to_ascii]) + end + + def test_parse_explicit_values + c = parse("fa\\u00DF.de; ; ; xn--fa-hia.de; ; fass.de; # x\n")[0] + assert_equal("xn--fa-hia.de", c[:to_ascii]) + assert_equal([], c[:status]) + end + + def test_parse_status_inherits_from_to_unicode + c = parse("a.-b.; ; [V3]; ; ; ;\n")[0] + assert_equal(%w[V3], c[:status]) + end + + def test_parse_status_of_to_ascii + c = parse("a.-b.; ; [V3]; ; [V3, A4_2]; ;\n")[0] + assert_equal(%w[V3 A4_2], c[:status]) + end + + def test_parse_explicit_empty_status + c = parse("a; ; [X4_2]; ; []; ;\n")[0] + assert_equal([], c[:status]) + end + + def test_parse_empty_string + c = parse("\"\"; ; [X4_2]; ; [A4_1, A4_2]; ; #\n")[0] + assert_equal("", c[:source]) + assert_equal("", c[:to_ascii]) + end + + def test_unescape + assert_equal("a\u0308b", IDNATestV2.unescape("a\\u0308b")) + assert_equal("\u{1F600}", IDNATestV2.unescape("\\x{1F600}")) + assert_equal("\u00E4", IDNATestV2.unescape("\u00E4")) + end + + def test_unescape_surrogate_is_nil + assert_nil(IDNATestV2.unescape("a\\uD800b")) + end + + def test_expectation_success + c = { source: "fa\u00DF.de", to_ascii: "xn--fa-hia.de", status: [] } + assert_equal({ value: "xn--fa-hia.de" }, IDNATestV2.expectation(c)) + end + + def test_expectation_failure + c = { source: "a\u05D0", to_ascii: "xn--a-0hc", status: %w[B5 B6] } + assert_equal({ failure: true }, IDNATestV2.expectation(c)) + end + + def test_expectation_ignores_statuses_of_disabled_checks + c = { source: "a.-b.", to_ascii: "a.-b.", status: %w[V2 V3 U1 A4_1 A4_2 X4_2] } + assert_equal({ value: "a.-b." }, IDNATestV2.expectation(c)) + end + + def test_expectation_is_nil_for_a_surrogate + assert_nil(IDNATestV2.expectation({ source: nil, to_ascii: nil, status: %w[A3] })) + end + + def test_expectation_is_nil_without_an_ascii_result + # Only ignored errors, but the file has no ToASCII value to compare. + c = { source: "\u00E4-.de", to_ascii: "\u00E4-.de", status: %w[V3] } + assert_nil(IDNATestV2.expectation(c)) + end + + def test_run_passes + c = { source: "fa\u00DF.de", to_ascii: "xn--fa-hia.de", status: [] } + assert_nil(IDNATestV2.run(c, ->(d) { "xn--fa-hia.de" })) + end + + def test_run_reports_a_wrong_value + c = { source: "fa\u00DF.de", to_ascii: "xn--fa-hia.de", status: [] } + assert_match(/expected "xn--fa-hia.de", got "fass.de"/, IDNATestV2.run(c, ->(d) { "fass.de" })) + end + + def test_run_reports_an_unexpected_failure + c = { source: "fa\u00DF.de", to_ascii: "xn--fa-hia.de", status: [] } + assert_match(/unexpected failure/, IDNATestV2.run(c, ->(d) { nil })) + end + + def test_run_reports_an_unexpected_success + c = { source: "a\u05D0", to_ascii: "xn--a-0hc", status: %w[B5] } + assert_match(/expected failure/, IDNATestV2.run(c, ->(d) { "xn--a-0hc" })) + end + + def test_run_reports_exceptions + c = { source: "a", to_ascii: "a", status: [] } + assert_match(/RuntimeError: boom/, IDNATestV2.run(c, ->(d) { raise "boom" })) + end + + def test_source_defaults_to_the_version_of_the_data + assert_equal( + "https://www.unicode.org/Public/#{IDNATestV2.unicode_version}/idna/IdnaTestV2.txt", + IDNATestV2.default_source + ) + end +end From 00f1ab15a62e6dbb9604472ad4306d930699d575 Mon Sep 17 00:00:00 2001 From: jinroq Date: Wed, 18 Nov 2026 17:18:53 +0900 Subject: [PATCH 29/74] Convert non-ASCII domains to ASCII in WHATWG_Parser The host parser now runs the domain parser of the URL Standard with beStrict false: an ASCII domain is lowercased, and any other domain goes through URI::WHATWG_Parser::IDNA.to_ascii. The result fails when it is empty or contains a forbidden domain code point, and a result that ends in a number is parsed as IPv4. A percent-decoded domain that is not valid UTF-8 fails, as its U+FFFD is disallowed. Every case of WPT urltestdata.json passes now, so the exclusion list is empty. Co-Authored-By: Claude Opus 5.5 --- lib/uri/common.rb | 7 +- lib/uri/whatwg_parser.rb | 24 ++-- test/uri/test_whatwg_parser.rb | 69 +++++++++++- test/wpt/urltestdata_exclusions.json | 163 +-------------------------- 4 files changed, 82 insertions(+), 181 deletions(-) diff --git a/lib/uri/common.rb b/lib/uri/common.rb index cf12040..894c44b 100644 --- a/lib/uri/common.rb +++ b/lib/uri/common.rb @@ -43,8 +43,11 @@ module URI # # raises URI::InvalidURIError # # Only http, https, ws, wss and file URLs become instances of their - # scheme's class; other schemes become URI::Generic. Domain to ASCII - # (IDNA) is not implemented: a non-ASCII domain is kept as is. + # scheme's class; other schemes become URI::Generic. A non-ASCII domain + # is converted to ASCII (IDNA, UTS #46): + # + # URI::WHATWG_PARSER.parse("http://\u{65E5}\u{672C}\u{8A9E}.jp/").host + # # => "xn--wgv71a119e.jp" WHATWG_PARSER = WHATWG_Parser.new Ractor.make_shareable(WHATWG_PARSER) if defined?(Ractor) diff --git a/lib/uri/whatwg_parser.rb b/lib/uri/whatwg_parser.rb index 4c89833..5af3002 100644 --- a/lib/uri/whatwg_parser.rb +++ b/lib/uri/whatwg_parser.rb @@ -513,21 +513,23 @@ def parse_host(input, special) end return parse_opaque_host(input) unless special - domain = percent_decode(input) - unless domain.ascii_only? - # Interim: domain to ASCII (UTS #46) is not implemented yet, so a - # non-ASCII domain is returned unchanged. - raise InvalidURIError, "invalid host: #{input.dump}" if input.match?(FORBIDDEN_HOST_CODE_POINT) - return input - end - - # domain to ASCII, for an ASCII domain with beStrict false. - ascii_domain = domain.downcase - raise InvalidURIError, "invalid host: #{input.dump}" if ascii_domain.match?(FORBIDDEN_DOMAIN_CODE_POINT) + ascii_domain = domain_to_ascii(percent_decode(input)) + raise InvalidURIError, "invalid host: #{input.dump}" unless ascii_domain return serialize_ipv4(parse_ipv4(ascii_domain)) if ends_in_a_number?(ascii_domain) ascii_domain end + # domain to ASCII (the domain parser) with beStrict false. Returns nil + # on failure. + # + # An ASCII domain is lowercased without Unicode ToASCII, so an "xn--" + # label in it is not validated. + def domain_to_ascii(domain) + result = domain.ascii_only? ? domain.downcase : IDNA.to_ascii(domain) + return nil if result.nil? || result.empty? || result.match?(FORBIDDEN_DOMAIN_CODE_POINT) + result + end + # ends in a number checker def ends_in_a_number?(input) parts = input.split(".", -1) diff --git a/test/uri/test_whatwg_parser.rb b/test/uri/test_whatwg_parser.rb index dd69d07..b40aae4 100644 --- a/test/uri/test_whatwg_parser.rb +++ b/test/uri/test_whatwg_parser.rb @@ -652,15 +652,72 @@ def test_split_domain_rules_apply_to_every_special_scheme end end - def test_split_ascii_xn_label_is_lowercased - # Interim: Punycode validation of "xn--" labels is not implemented. + def test_split_ascii_xn_label_is_lowercased_without_validation + # The domain parser returns an ASCII domain lowercased (beStrict is + # false), even when an "xn--" label is not valid Punycode. assert_equal("xn--9ca.example", split("http://XN--9CA.example/")[HOST]) + assert_equal("xn--", split("http://xn--/")[HOST]) + assert_equal("a.xn--pokxncvks", split("http://a.XN--pokxncvks/")[HOST]) end - def test_split_non_ascii_domain_is_left_as_is - # Interim behaviour until domain to ASCII (UTS #46) is implemented. - assert_equal("\u00E9.example", split("http://\u00E9.example/")[HOST]) - assert_equal("%C3%A9.example", split("http://%C3%A9.example/")[HOST]) + # https://url.spec.whatwg.org/#concept-domain-to-ascii + + def test_split_non_ascii_domain_to_ascii + assert_equal("xn--9ca.example", split("http://\u{E9}.example/")[HOST]) + assert_equal("xn--wgv71a119e.jp", split("http://\u{65E5}\u{672C}\u{8A9E}.jp/")[HOST]) + end + + def test_split_percent_encoded_non_ascii_domain_to_ascii + assert_equal("xn--9ca.example", split("http://%C3%A9.example/")[HOST]) + assert_equal("xn--9ca.example", split("http://%c3%a9.example/")[HOST]) + end + + def test_split_non_ascii_domain_mapped_to_ascii + assert_equal("example.com", split("http://\u{FF25}\u{FF38}\u{FF21}\u{FF2D}\u{FF30}\u{FF2C}\u{FF25}.com/")[HOST]) + assert_equal("example.com", split("http://ex\u{AD}ample.com/")[HOST]) + assert_equal("example.com", split("http://ex%C2%ADample.com/")[HOST]) + assert_equal("example.com", split("http://example\u{3002}com/")[HOST]) + end + + def test_split_non_ascii_domain_failure + [ + "http://\u{FFFD}/", # disallowed + "http://a\u{200C}b/", # ZWNJ without context + "http://\u{301}a/", # leading combining mark + "http://a\u{5D0}/", # Bidi Rule + "http://xn--a.\u{E9}/", # "xn--" label decoding to U+0080 + "http://xn--a-!.\u{E9}/", # invalid Punycode + ].each do |input| + assert_raise(URI::InvalidURIError, input.dump) { split(input) } + end + end + + def test_split_domain_not_valid_utf8_fails + ["http://%FF/", "http://a%C3/", "http://%C3%28/"].each do |input| + assert_raise(URI::InvalidURIError, input) { split(input) } + end + end + + def test_split_non_ascii_domain_mapped_to_empty_fails + assert_raise(URI::InvalidURIError) { split("http://\u{AD}/") } + assert_raise(URI::InvalidURIError) { split("http://%C2%AD/") } + end + + def test_split_non_ascii_domain_mapped_to_forbidden_code_point_fails + # U+FF05 FULLWIDTH PERCENT SIGN maps to "%". + assert_raise(URI::InvalidURIError) { split("http://a\u{FF05}b/") } + end + + def test_split_non_ascii_domain_ending_in_a_number_is_ipv4 + assert_equal("127.0.0.1", split("http://\u{FF11}\u{FF12}\u{FF17}.0.0.1/")[HOST]) + assert_equal("127.0.0.1", split("http://127\u{3002}0.0.1/")[HOST]) + end + + def test_split_non_ascii_domain_rules_apply_to_every_special_scheme + %w[https ws wss ftp].each do |scheme| + assert_equal("xn--9ca", split("#{scheme}://\u{E9}/")[HOST], scheme) + end + assert_equal("xn--9ca", split("file://\u{E9}/p")[HOST]) end def test_split_bracketed_host_must_end_with_bracket diff --git a/test/wpt/urltestdata_exclusions.json b/test/wpt/urltestdata_exclusions.json index f15a1b3..fe51488 100644 --- a/test/wpt/urltestdata_exclusions.json +++ b/test/wpt/urltestdata_exclusions.json @@ -1,162 +1 @@ -[ - { - "input": "http://é@é", - "base": null, - "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" - }, - { - "input": "http://GOO  goo.com", - "base": "http://other.com/", - "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" - }, - { - "input": "http://GOO​⁠goo.com", - "base": "http://other.com/", - "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" - }, - { - "input": "http://www.foo。bar.com", - "base": "http://other.com/", - "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" - }, - { - "input": "http://﷐zyx.com", - "base": "http://other.com/", - "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" - }, - { - "input": "http://%ef%b7%90zyx.com", - "base": "http://other.com/", - "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" - }, - { - "input": "https://�", - "base": null, - "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" - }, - { - "input": "https://%EF%BF%BD", - "base": null, - "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" - }, - { - "input": "http://Go.com", - "base": "http://other.com/", - "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" - }, - { - "input": "http://%41.com", - "base": "http://other.com/", - "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" - }, - { - "input": "http://%ef%bc%85%ef%bc%94%ef%bc%91.com", - "base": "http://other.com/", - "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" - }, - { - "input": "http://%00.com", - "base": "http://other.com/", - "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" - }, - { - "input": "http://%ef%bc%85%ef%bc%90%ef%bc%90.com", - "base": "http://other.com/", - "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" - }, - { - "input": "http://你好你好", - "base": "http://other.com/", - "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" - }, - { - "input": "https://faß.ExAmPlE/", - "base": null, - "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" - }, - { - "input": "http://0Xc0.0250.01", - "base": "http://other.com/", - "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" - }, - { - "input": "ftp://example.com%80/", - "base": null, - "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" - }, - { - "input": "ftp://example.com%A0/", - "base": null, - "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" - }, - { - "input": "https://example.com%80/", - "base": null, - "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" - }, - { - "input": "https://example.com%A0/", - "base": null, - "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" - }, - { - "input": "ftp://%e2%98%83", - "base": null, - "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" - }, - { - "input": "https://%e2%98%83", - "base": null, - "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" - }, - { - "input": "file://a­b/p", - "base": null, - "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" - }, - { - "input": "file://a%C2%ADb/p", - "base": null, - "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" - }, - { - "input": "file://loC𝐀𝐋𝐇𝐨𝐬𝐭/usr/bin", - "base": null, - "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" - }, - { - "input": "file://­/p", - "base": null, - "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" - }, - { - "input": "file://%C2%AD/p", - "base": null, - "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" - }, - { - "input": "http://💩.123/", - "base": null, - "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" - }, - { - "input": "https://￿y", - "base": null, - "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" - }, - { - "input": "https://a%C2%ADb/", - "base": null, - "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" - }, - { - "input": "https://­/", - "base": null, - "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" - }, - { - "input": "https://%C2%AD/", - "base": null, - "reason": "non-ASCII domain: domain to ASCII (UTS #46) is not implemented" - } -] +[] From 8c93d88a40ccd345016e6fcf2aa06db9c439a32c Mon Sep 17 00:00:00 2001 From: jinroq Date: Wed, 18 Nov 2026 17:23:03 +0900 Subject: [PATCH 30/74] Encode Punycode in O(n log n) time The encoding procedure of RFC 3492 scans the whole label once for each distinct non-basic code point, so a host of 8000 distinct CJK characters took 7 seconds to parse. The positions of each code point are now visited in order, and the code points smaller than it between two positions are counted with a Fenwick tree, which yields the same deltas. Co-Authored-By: Claude Opus 5.5 --- lib/uri/whatwg_parser/punycode.rb | 85 +++++++++++++++++++++++++------ test/uri/test_whatwg_parser.rb | 12 +++++ test/uri/test_whatwg_punycode.rb | 22 ++++++++ 3 files changed, 103 insertions(+), 16 deletions(-) diff --git a/lib/uri/whatwg_parser/punycode.rb b/lib/uri/whatwg_parser/punycode.rb index 8d2fb7b..dd86ecc 100644 --- a/lib/uri/whatwg_parser/punycode.rb +++ b/lib/uri/whatwg_parser/punycode.rb @@ -24,43 +24,96 @@ module Punycode # :nodoc: module_function # Encodes +input+, a String of Unicode code points, as Punycode. + # + # RFC 3492 scans the whole input once for each distinct non-basic + # code point, which takes time proportional to the length times the + # number of distinct code points. Instead, the positions of each + # code point are visited in order, and the code points smaller than + # it between two positions are counted with a Fenwick tree, which + # gives the same deltas. def encode(input) code_points = input.codepoints output = code_points.select { |c| c < INITIAL_N }.pack("U*") basic_count = handled = output.size output << DELIMITER if basic_count > 0 + smaller = FenwickTree.new(code_points.size) + positions = Hash.new { |hash, c| hash[c] = [] } + code_points.each_with_index do |c, i| + c < INITIAL_N ? smaller.add(i) : positions[c] << i + end + n = INITIAL_N delta = 0 bias = INITIAL_BIAS - while handled < code_points.size - m = code_points.select { |c| c >= n }.min + positions.keys.sort.each do |m| delta += (m - n) * (handled + 1) n = m - code_points.each do |c| - delta += 1 if c < n - next unless c == n - - q = delta - k = BASE - loop do - t = threshold(k, bias) - break if q < t - output << digit(t + (q - t) % (BASE - t)) - q = (q - t) / (BASE - t) - k += BASE - end - output << digit(q) + previous = -1 + positions[m].each do |i| + delta += smaller.count(previous + 1, i) + previous = i + encode_delta(output, delta, bias) bias = adapt(delta, handled + 1, handled == basic_count) delta = 0 handled += 1 end + delta += smaller.count(previous + 1, code_points.size) + positions[m].each { |i| smaller.add(i) } delta += 1 n += 1 end output end + # Appends +delta+ as a variable-length integer. + def encode_delta(output, delta, bias) + q = delta + k = BASE + loop do + t = threshold(k, bias) + break if q < t + output << digit(t + (q - t) % (BASE - t)) + q = (q - t) / (BASE - t) + k += BASE + end + output << digit(q) + end + + # Counts marked positions. + class FenwickTree # :nodoc: + def initialize(size) + @tree = Array.new(size + 1, 0) + end + + # Marks position +i+. + def add(i) + i += 1 + while i < @tree.size + @tree[i] += 1 + i += i & -i + end + end + + # The number of marked positions in first...last. + def count(first, last) + prefix(last) - prefix(first) + end + + private + + # The number of marked positions in 0...i. + def prefix(i) + sum = 0 + while i > 0 + sum += @tree[i] + i -= i & -i + end + sum + end + end + private_constant :FenwickTree + # Decodes +input+, a Punycode String. Returns nil when +input+ is # not valid Punycode or decodes to something that is not a sequence # of Unicode scalar values. diff --git a/test/uri/test_whatwg_parser.rb b/test/uri/test_whatwg_parser.rb index b40aae4..691db68 100644 --- a/test/uri/test_whatwg_parser.rb +++ b/test/uri/test_whatwg_parser.rb @@ -713,6 +713,18 @@ def test_split_non_ascii_domain_ending_in_a_number_is_ipv4 assert_equal("127.0.0.1", split("http://127\u{3002}0.0.1/")[HOST]) end + def test_split_non_ascii_domain_in_linear_time + distinct = ->(n) { "http://" + (0x4E00...0x4E00 + n).map { |c| c.chr(Encoding::UTF_8) }.join + "/" } + assert_linear_performance([300, 1_000, 3_000, 10_000], pre: distinct) do |uri| + split(uri) + end + # Bidi Rule and CONTEXTJ (ZWNJ between transparent marks). + rtl = ->(n) { "http://" + "\u{5D0}\u{5B0}" * n + "." + "\u{628}\u{64B}\u{200C}\u{64B}\u{628}" * n + "/" } + assert_linear_performance([300, 1_000, 3_000, 10_000], pre: rtl) do |uri| + split(uri) + end + end + def test_split_non_ascii_domain_rules_apply_to_every_special_scheme %w[https ws wss ftp].each do |scheme| assert_equal("xn--9ca", split("#{scheme}://\u{E9}/")[HOST], scheme) diff --git a/test/uri/test_whatwg_punycode.rb b/test/uri/test_whatwg_punycode.rb index 1cdfbb7..b09197f 100644 --- a/test/uri/test_whatwg_punycode.rb +++ b/test/uri/test_whatwg_punycode.rb @@ -99,6 +99,28 @@ def test_decode_rejects_overflow assert_nil(Punycode.decode("a-" + "9" * 10 + "a")) end + def test_encode_with_repeated_and_interleaved_code_points + # Each occurrence of a code point is counted against the code points + # smaller than it on both sides. + assert_equal("a\u{E9}b\u{E9}\u{FC}c\u{E9}", Punycode.decode(Punycode.encode("a\u{E9}b\u{E9}\u{FC}c\u{E9}"))) + assert_equal("ab-9iab8gc", Punycode.encode("\u{E9}a\u{FC}\u{E9}b\u{FC}")) + end + + def test_encode_in_linear_time + # The number of distinct code points must not multiply the time. + pre = ->(n) { (0x4E00...0x4E00 + n).map { |c| c.chr(Encoding::UTF_8) }.join } + assert_linear_performance([300, 1_000, 3_000, 10_000], pre: pre) do |label| + Punycode.encode(label) + end + end + + def test_decode_in_linear_time + pre = ->(n) { Punycode.encode((0x4E00...0x4E00 + n).map { |c| c.chr(Encoding::UTF_8) }.join) } + assert_linear_performance([300, 1_000, 3_000, 10_000], pre: pre) do |punycode| + Punycode.decode(punycode) + end + end + def test_decode_of_a_non_string assert_raise(NoMethodError, TypeError) { Punycode.decode(nil) } end From 0b91dbdd9cdf930623fedea51eb6442f3a128455 Mon Sep 17 00:00:00 2001 From: jinroq Date: Wed, 18 Nov 2026 17:23:43 +0900 Subject: [PATCH 31/74] Report a newer Unicode version than the IDNA data in rake test:wpt The ReadMe of the latest Unicode Character Database names its version. When it is newer than the version of lib/uri/whatwg_parser/idna_data.rb, the test fails with the command that regenerates the data, so the scheduled WPT workflow reports a new Unicode release. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/wpt.yml | 3 ++- test/wpt/idna_test_v2.rb | 13 +++++++++++++ test/wpt/test_idna_test_v2.rb | 12 ++++++++++++ test/wpt/test_idna_test_v2_harness.rb | 22 ++++++++++++++++++++++ 4 files changed, 49 insertions(+), 1 deletion(-) diff --git a/.github/workflows/wpt.yml b/.github/workflows/wpt.yml index 29a887e..2d9cbac 100644 --- a/.github/workflows/wpt.yml +++ b/.github/workflows/wpt.yml @@ -2,7 +2,8 @@ name: WPT # Runs web-platform-tests' url/resources/urltestdata.json, fetched from WPT # master, against URI::WHATWG_PARSER (rake test:wpt). The same task runs -# Unicode's IdnaTestV2.txt for the Unicode version of the IDNA data. +# Unicode's IdnaTestV2.txt for the Unicode version of the IDNA data, and +# fails when Unicode has released a newer version than that data. # # The URL Standard is a living standard and WPT follows its changes, so the # scheduled run is how a change in the standard is noticed: it fails when a diff --git a/test/wpt/idna_test_v2.rb b/test/wpt/idna_test_v2.rb index b708fb9..e3412dd 100644 --- a/test/wpt/idna_test_v2.rb +++ b/test/wpt/idna_test_v2.rb @@ -16,6 +16,9 @@ module IDNATestV2 # label). IGNORED_STATUSES = %w[V2 V3 U1 A4_1 A4_2 X4_2].freeze + # The ReadMe of the latest version of the Unicode Character Database. + LATEST_README = "https://www.unicode.org/Public/UCD/latest/ReadMe.txt" + ESCAPE = /\\u(\h{4})|\\x\{(\h+)\}/ SURROGATES = (0xD800..0xDFFF).freeze @@ -37,6 +40,16 @@ def source ENV["IDNA_TEST_V2"] || default_source end + # The Unicode version that +readme+ (LATEST_README) is for. + def latest_unicode_version(readme) + readme[/data files and charts for version (\d+\.\d+\.\d+)/, 1] or + raise "no Unicode version in #{LATEST_README}" + end + + def newer?(version, other) + Gem::Version.new(version) > Gem::Version.new(other) + end + def load(source) text = source.match?(%r{\A[A-Za-z][A-Za-z0-9+.-]*://}) ? WPT::URLTestData.fetch(source) : File.read(source) parse(text.dup.force_encoding(Encoding::UTF_8)) diff --git a/test/wpt/test_idna_test_v2.rb b/test/wpt/test_idna_test_v2.rb index b5d74fe..1f379fd 100644 --- a/test/wpt/test_idna_test_v2.rb +++ b/test/wpt/test_idna_test_v2.rb @@ -26,4 +26,16 @@ def test_source assert_not_empty(CASES, "no cases in #{SOURCE}") notify("IdnaTestV2: #{CASES.size} cases (source: #{SOURCE})") end + + # Fails when Unicode has released a newer version than the generated + # data, so that the scheduled run reports it. + def test_idna_data_is_the_latest_unicode_version + current = IDNATestV2.unicode_version + latest = IDNATestV2.latest_unicode_version(WPT::URLTestData.fetch(IDNATestV2::LATEST_README)) + assert( + !IDNATestV2.newer?(latest, current), + "Unicode #{latest} is out; the IDNA data is #{current}. " \ + "Regenerate it with `UNICODE_VERSION=#{latest} rake idna:generate`." + ) + end end diff --git a/test/wpt/test_idna_test_v2_harness.rb b/test/wpt/test_idna_test_v2_harness.rb index 9dd4a00..e2fa1d5 100644 --- a/test/wpt/test_idna_test_v2_harness.rb +++ b/test/wpt/test_idna_test_v2_harness.rb @@ -120,6 +120,28 @@ def test_run_reports_exceptions assert_match(/RuntimeError: boom/, IDNATestV2.run(c, ->(d) { raise "boom" })) end + def test_latest_unicode_version_from_readme + readme = <<~TXT + # Unicode Standard Data Files & Charts + + This directory contains final data files and charts for version 18.0.0 of the + Unicode Character Database and for the synchronized Unicode Technical Standards. + TXT + assert_equal("18.0.0", IDNATestV2.latest_unicode_version(readme)) + end + + def test_latest_unicode_version_without_a_version + assert_raise(RuntimeError) { IDNATestV2.latest_unicode_version("no version here") } + end + + def test_newer_unicode_version + assert_equal(true, IDNATestV2.newer?("18.1.0", "18.0.0")) + assert_equal(true, IDNATestV2.newer?("19.0.0", "18.0.0")) + assert_equal(true, IDNATestV2.newer?("18.0.10", "18.0.9")) + assert_equal(false, IDNATestV2.newer?("18.0.0", "18.0.0")) + assert_equal(false, IDNATestV2.newer?("17.0.0", "18.0.0")) + end + def test_source_defaults_to_the_version_of_the_data assert_equal( "https://www.unicode.org/Public/#{IDNATestV2.unicode_version}/idna/IdnaTestV2.txt", From 108b48aee7443370fa14964392c2205338fbccd3 Mon Sep 17 00:00:00 2001 From: jinroq Date: Wed, 18 Nov 2026 17:38:28 +0900 Subject: [PATCH 32/74] Generate the Unicode data for NFC normalization Domain to ASCII normalizes to NFC. String#unicode_normalize cannot run in a non-main Ractor (its tables are not shareable), and its Unicode version is the one of the running Ruby rather than the one of the IDNA data, so the generated data now includes what NFC needs: the Canonical_Combining_Class of each code point whose class is not 0, the canonical decomposition mappings from UnicodeData.txt, and the code points whose two-code-point decomposition is excluded from composition (Full_Composition_Exclusion). Co-Authored-By: Claude Opus 5.5 --- lib/uri/whatwg_parser/idna_data.rb | 790 +++++++++++++++++++++++++++++ rakelib/idna_data_generator.rb | 58 ++- 2 files changed, 846 insertions(+), 2 deletions(-) diff --git a/lib/uri/whatwg_parser/idna_data.rb b/lib/uri/whatwg_parser/idna_data.rb index da9a14e..0465edb 100644 --- a/lib/uri/whatwg_parser/idna_data.rb +++ b/lib/uri/whatwg_parser/idna_data.rb @@ -6,6 +6,8 @@ # https://www.unicode.org/Public/18.0.0/ucd/extracted/DerivedJoiningType.txt # https://www.unicode.org/Public/18.0.0/ucd/extracted/DerivedCombiningClass.txt # https://www.unicode.org/Public/18.0.0/ucd/extracted/DerivedGeneralCategory.txt +# https://www.unicode.org/Public/18.0.0/ucd/UnicodeData.txt +# https://www.unicode.org/Public/18.0.0/ucd/DerivedNormalizationProps.txt # Do not edit it by hand. module URI @@ -1731,6 +1733,794 @@ module IDNA # :nodoc: BIDI_EN = /[\u{30}-\u{39}\u{6F0}-\u{6F9}\u{102E1}-\u{102FB}]/ BIDI_ES_CS_ET_ON_BN = /[\u{0}-\u{8}\u{E}-\u{1B}\u{21}-\u{2F}\u{3A}-\u{40}\u{5B}-\u{60}\u{7B}-\u{7F}\u{A1}-\u{A7}\u{A9}\u{AB}-\u{AC}\u{AE}\u{B0}-\u{B1}\u{B6}-\u{B7}\u{BB}\u{BF}\u{D7}\u{F7}\u{2B9}-\u{2BA}\u{2C2}-\u{2CF}\u{2D2}-\u{2D7}\u{2DE}-\u{2DF}\u{2E5}-\u{2ED}\u{2EF}-\u{2FF}\u{375}\u{3F6}\u{58A}\u{58D}-\u{58F}\u{606}-\u{607}\u{609}-\u{60A}\u{60C}\u{60E}-\u{60F}\u{66A}\u{6DE}\u{6E9}\u{7F6}-\u{7F9}\u{9F2}-\u{9F3}\u{9FB}\u{AF1}\u{BF3}-\u{BFA}\u{C78}-\u{C7E}\u{E3F}\u{F3A}-\u{F3D}\u{1390}-\u{1399}\u{1400}\u{169B}-\u{169C}\u{17DB}\u{17F0}-\u{17F9}\u{1800}-\u{180A}\u{1940}\u{1944}-\u{1945}\u{19DE}-\u{19FF}\u{200C}-\u{200D}\u{2010}\u{2012}-\u{2016}\u{2018}-\u{2023}\u{2027}\u{2030}-\u{2032}\u{2035}\u{2038}-\u{203B}\u{203D}\u{203F}-\u{2046}\u{204A}-\u{2056}\u{2058}-\u{205E}\u{208F}\u{20A0}-\u{20A7}\u{20A9}-\u{20C4}\u{2104}\u{2108}\u{2114}\u{2117}-\u{2118}\u{211E}-\u{211F}\u{2123}\u{2125}\u{2127}\u{2129}\u{212E}\u{213A}\u{2141}-\u{2144}\u{214A}-\u{214D}\u{218A}-\u{218B}\u{2190}-\u{222B}\u{222E}\u{2231}-\u{2328}\u{232B}-\u{2335}\u{237B}-\u{2394}\u{2396}-\u{2429}\u{2440}-\u{244A}\u{24EB}-\u{26AB}\u{26AD}-\u{27FF}\u{2900}-\u{2A0B}\u{2A0D}-\u{2A73}\u{2A77}-\u{2ADB}\u{2ADD}-\u{2B73}\u{2B76}-\u{2BFF}\u{2CE5}-\u{2CEA}\u{2CF9}-\u{2CFF}\u{2E00}-\u{2E5D}\u{2E60}-\u{2E63}\u{2E80}-\u{2E99}\u{2E9B}-\u{2E9E}\u{2EA0}-\u{2EF2}\u{3001}\u{3003}-\u{3004}\u{3008}-\u{3020}\u{3030}\u{3037}\u{303D}-\u{303F}\u{30A0}\u{30FB}\u{31C0}-\u{31E5}\u{4DC0}-\u{4DFF}\u{A490}-\u{A4C6}\u{A60D}-\u{A60F}\u{A673}\u{A67E}-\u{A67F}\u{A700}-\u{A721}\u{A788}\u{A828}-\u{A82B}\u{A838}-\u{A839}\u{A874}-\u{A877}\u{AB6A}-\u{AB6B}\u{FBC3}-\u{FBD2}\u{FD3E}-\u{FD4F}\u{FD90}-\u{FD91}\u{FDC8}-\u{FDCF}\u{FDFD}-\u{FDFF}\u{FE45}-\u{FE46}\u{10101}\u{10140}-\u{1018C}\u{10190}-\u{1019C}\u{101A0}\u{1091F}\u{10B39}-\u{10B3F}\u{10D6E}\u{10ED0}-\u{10ED8}\u{11052}-\u{11065}\u{11660}-\u{1166C}\u{11FD5}-\u{11FF1}\u{16FE2}\u{1CC00}-\u{1CCD5}\u{1CCFA}-\u{1CCFC}\u{1CD00}-\u{1CEB3}\u{1CEBA}-\u{1CED0}\u{1CED2}-\u{1CED4}\u{1CEDD}-\u{1CEFD}\u{1D1E9}-\u{1D1EA}\u{1D200}-\u{1D241}\u{1D245}\u{1D300}-\u{1D356}\u{1DB00}-\u{1DB1C}\u{1E2FF}\u{1EEF0}-\u{1EEF1}\u{1F000}-\u{1F02B}\u{1F030}-\u{1F093}\u{1F0A0}-\u{1F0AE}\u{1F0B1}-\u{1F0BF}\u{1F0C1}-\u{1F0CF}\u{1F0D1}-\u{1F0F5}\u{1F10B}-\u{1F10F}\u{1F12F}\u{1F16D}-\u{1F16F}\u{1F1AD}\u{1F260}-\u{1F265}\u{1F300}-\u{1F6D9}\u{1F6DC}-\u{1F6EC}\u{1F6F0}-\u{1F6FC}\u{1F700}-\u{1F7D9}\u{1F7DB}\u{1F7E0}-\u{1F7EB}\u{1F7F0}-\u{1F80B}\u{1F810}-\u{1F847}\u{1F850}-\u{1F859}\u{1F860}-\u{1F887}\u{1F890}-\u{1F8AD}\u{1F8B0}-\u{1F8BB}\u{1F8C0}-\u{1F8C1}\u{1F8D0}-\u{1F8D8}\u{1F900}-\u{1FA57}\u{1FA60}-\u{1FA6D}\u{1FA70}-\u{1FA7C}\u{1FA80}-\u{1FAC6}\u{1FAC8}\u{1FACC}-\u{1FADD}\u{1FADF}-\u{1FAEB}\u{1FAEF}-\u{1FAFA}\u{1FB00}-\u{1FB92}\u{1FB94}-\u{1FBEF}\u{1FBFA}]/ BIDI_NSM = /[\u{300}-\u{33F}\u{342}\u{346}-\u{34E}\u{350}-\u{36F}\u{483}-\u{489}\u{591}-\u{5BD}\u{5BF}\u{5C1}-\u{5C2}\u{5C4}-\u{5C5}\u{5C7}-\u{5C9}\u{610}-\u{61A}\u{64B}-\u{65F}\u{670}\u{6D6}-\u{6DC}\u{6DF}-\u{6E4}\u{6E7}-\u{6E8}\u{6EA}-\u{6ED}\u{711}\u{730}-\u{74A}\u{7A6}-\u{7B0}\u{7EB}-\u{7F3}\u{7FD}\u{816}-\u{819}\u{81B}-\u{823}\u{825}-\u{827}\u{829}-\u{82D}\u{859}-\u{85B}\u{897}-\u{89F}\u{8CA}-\u{8E1}\u{8E3}-\u{902}\u{93A}\u{93C}\u{941}-\u{948}\u{94D}\u{951}-\u{957}\u{962}-\u{963}\u{981}\u{9BC}\u{9C1}-\u{9C4}\u{9CD}\u{9E2}-\u{9E3}\u{9FE}\u{A01}-\u{A02}\u{A3C}\u{A41}-\u{A42}\u{A47}-\u{A48}\u{A4B}-\u{A4D}\u{A51}\u{A70}-\u{A71}\u{A75}\u{A81}-\u{A82}\u{ABC}\u{AC1}-\u{AC5}\u{AC7}-\u{AC8}\u{ACD}\u{AE2}-\u{AE3}\u{AFA}-\u{AFF}\u{B01}\u{B3C}\u{B3F}\u{B41}-\u{B44}\u{B4D}\u{B53}-\u{B56}\u{B62}-\u{B63}\u{B82}\u{BC0}\u{BCD}\u{C00}\u{C04}\u{C3C}\u{C3E}-\u{C40}\u{C46}-\u{C48}\u{C4A}-\u{C4D}\u{C55}-\u{C56}\u{C62}-\u{C63}\u{C81}\u{CBC}\u{CCC}-\u{CCD}\u{CE2}-\u{CE3}\u{D00}-\u{D01}\u{D3B}-\u{D3C}\u{D41}-\u{D44}\u{D4D}\u{D62}-\u{D63}\u{D81}\u{DCA}\u{DD2}-\u{DD4}\u{DD6}\u{E31}\u{E34}-\u{E3A}\u{E47}-\u{E4E}\u{EB1}\u{EB4}-\u{EBC}\u{EC8}-\u{ECE}\u{F18}-\u{F19}\u{F35}\u{F37}\u{F39}\u{F71}-\u{F72}\u{F74}\u{F7A}-\u{F7E}\u{F80}\u{F82}-\u{F84}\u{F86}-\u{F87}\u{F8D}-\u{F92}\u{F94}-\u{F97}\u{F99}-\u{F9C}\u{F9E}-\u{FA1}\u{FA3}-\u{FA6}\u{FA8}-\u{FAB}\u{FAD}-\u{FB8}\u{FBA}-\u{FBC}\u{FC6}\u{102D}-\u{1030}\u{1032}-\u{1037}\u{1039}-\u{103A}\u{103D}-\u{103E}\u{1058}-\u{1059}\u{105E}-\u{1060}\u{1071}-\u{1074}\u{1082}\u{1085}-\u{1086}\u{108D}\u{109D}\u{135D}-\u{135F}\u{1712}-\u{1714}\u{1732}-\u{1733}\u{1752}-\u{1753}\u{1772}-\u{1773}\u{17B7}-\u{17BD}\u{17C6}\u{17C9}-\u{17D3}\u{17DD}\u{1885}-\u{1886}\u{18A9}\u{1920}-\u{1922}\u{1927}-\u{1928}\u{1932}\u{1939}-\u{193B}\u{1A17}-\u{1A18}\u{1A1B}\u{1A56}\u{1A58}-\u{1A5E}\u{1A60}\u{1A62}\u{1A65}-\u{1A6C}\u{1A73}-\u{1A7C}\u{1A7F}\u{1AB0}-\u{1AF0}\u{1B00}-\u{1B03}\u{1B34}\u{1B36}-\u{1B39}\u{1B6B}-\u{1B73}\u{1B80}-\u{1B81}\u{1BA2}-\u{1BA5}\u{1BA8}-\u{1BA9}\u{1BAB}-\u{1BAD}\u{1BE6}\u{1BE8}-\u{1BE9}\u{1BED}\u{1BEF}-\u{1BF1}\u{1C2C}-\u{1C33}\u{1C36}-\u{1C37}\u{1CD0}-\u{1CD2}\u{1CD4}-\u{1CE0}\u{1CE2}-\u{1CE8}\u{1CED}\u{1CF4}\u{1CF8}-\u{1CF9}\u{1DC0}-\u{1DFF}\u{20D0}-\u{20F0}\u{2CEF}-\u{2CF1}\u{2D7F}\u{2DE0}-\u{2DFF}\u{302A}-\u{302D}\u{3099}-\u{309A}\u{A66F}-\u{A672}\u{A674}-\u{A67D}\u{A69E}-\u{A69F}\u{A6F0}-\u{A6F1}\u{A802}\u{A806}\u{A80B}\u{A825}-\u{A826}\u{A82C}\u{A8C4}-\u{A8C5}\u{A8E0}-\u{A8F1}\u{A8FF}\u{A926}-\u{A92D}\u{A947}-\u{A951}\u{A980}-\u{A982}\u{A9B3}\u{A9B6}-\u{A9B9}\u{A9BC}-\u{A9BD}\u{A9E5}\u{AA29}-\u{AA2E}\u{AA31}-\u{AA32}\u{AA35}-\u{AA36}\u{AA43}\u{AA4C}\u{AA7C}\u{AAB0}\u{AAB2}-\u{AAB4}\u{AAB7}-\u{AAB8}\u{AABE}-\u{AABF}\u{AAC1}\u{AAEC}-\u{AAED}\u{AAF6}\u{ABE5}\u{ABE8}\u{ABED}\u{FB1E}\u{FE20}-\u{FE2F}\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}-\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}-\u{10AE6}\u{10D24}-\u{10D27}\u{10D69}-\u{10D6D}\u{10EAB}-\u{10EAC}\u{10ECB}-\u{10ECF}\u{10EF0}-\u{10EFF}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11001}\u{11038}-\u{11046}\u{11070}\u{11073}-\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}-\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}-\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}-\u{11237}\u{1123E}\u{11241}\u{112DF}\u{112E3}-\u{112EA}\u{11300}-\u{11301}\u{1133B}-\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{113BB}-\u{113C0}\u{113CE}\u{113D0}\u{113D2}\u{113E1}-\u{113E2}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}-\u{114C0}\u{114C2}-\u{114C3}\u{115B2}-\u{115B5}\u{115BC}-\u{115BD}\u{115BF}-\u{115C0}\u{115DC}-\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}-\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}-\u{1183A}\u{1193B}-\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}-\u{119DB}\u{119E0}\u{11A01}-\u{11A06}\u{11A09}-\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}-\u{11A99}\u{11B60}\u{11B62}-\u{11B64}\u{11B66}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}-\u{11CB3}\u{11CB5}-\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}-\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}-\u{11D91}\u{11D95}\u{11D97}\u{11DF0}\u{11EF3}-\u{11EF4}\u{11F00}-\u{11F01}\u{11F36}-\u{11F3A}\u{11F40}\u{11F42}\u{11F5A}\u{13440}\u{13447}-\u{13455}\u{1611E}-\u{16129}\u{1612D}-\u{1612F}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE4}\u{1BC9D}-\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D127}-\u{1D128}\u{1D167}-\u{1D169}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1D25B}-\u{1D25C}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}-\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E4EC}-\u{1E4EF}\u{1E5EE}-\u{1E5EF}\u{1E6E3}\u{1E6E6}\u{1E6EE}-\u{1E6EF}\u{1E6F5}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}]/ + + # Canonical_Combining_Class of each code point whose class is + # not 0. + COMBINING_CLASS = { + "\u{300}" => 230, "\u{301}" => 230, "\u{302}" => 230, "\u{303}" => 230, + "\u{304}" => 230, "\u{305}" => 230, "\u{306}" => 230, "\u{307}" => 230, + "\u{308}" => 230, "\u{309}" => 230, "\u{30A}" => 230, "\u{30B}" => 230, + "\u{30C}" => 230, "\u{30D}" => 230, "\u{30E}" => 230, "\u{30F}" => 230, + "\u{310}" => 230, "\u{311}" => 230, "\u{312}" => 230, "\u{313}" => 230, + "\u{314}" => 230, "\u{315}" => 232, "\u{316}" => 220, "\u{317}" => 220, + "\u{318}" => 220, "\u{319}" => 220, "\u{31A}" => 232, "\u{31B}" => 216, + "\u{31C}" => 220, "\u{31D}" => 220, "\u{31E}" => 220, "\u{31F}" => 220, + "\u{320}" => 220, "\u{321}" => 202, "\u{322}" => 202, "\u{323}" => 220, + "\u{324}" => 220, "\u{325}" => 220, "\u{326}" => 220, "\u{327}" => 202, + "\u{328}" => 202, "\u{329}" => 220, "\u{32A}" => 220, "\u{32B}" => 220, + "\u{32C}" => 220, "\u{32D}" => 220, "\u{32E}" => 220, "\u{32F}" => 220, + "\u{330}" => 220, "\u{331}" => 220, "\u{332}" => 220, "\u{333}" => 220, + "\u{334}" => 1, "\u{335}" => 1, "\u{336}" => 1, "\u{337}" => 1, + "\u{338}" => 1, "\u{339}" => 220, "\u{33A}" => 220, "\u{33B}" => 220, + "\u{33C}" => 220, "\u{33D}" => 230, "\u{33E}" => 230, "\u{33F}" => 230, + "\u{340}" => 230, "\u{341}" => 230, "\u{342}" => 230, "\u{343}" => 230, + "\u{344}" => 230, "\u{345}" => 240, "\u{346}" => 230, "\u{347}" => 220, + "\u{348}" => 220, "\u{349}" => 220, "\u{34A}" => 230, "\u{34B}" => 230, + "\u{34C}" => 230, "\u{34D}" => 220, "\u{34E}" => 220, "\u{350}" => 230, + "\u{351}" => 230, "\u{352}" => 230, "\u{353}" => 220, "\u{354}" => 220, + "\u{355}" => 220, "\u{356}" => 220, "\u{357}" => 230, "\u{358}" => 232, + "\u{359}" => 220, "\u{35A}" => 220, "\u{35B}" => 230, "\u{35C}" => 233, + "\u{35D}" => 234, "\u{35E}" => 234, "\u{35F}" => 233, "\u{360}" => 234, + "\u{361}" => 234, "\u{362}" => 233, "\u{363}" => 230, "\u{364}" => 230, + "\u{365}" => 230, "\u{366}" => 230, "\u{367}" => 230, "\u{368}" => 230, + "\u{369}" => 230, "\u{36A}" => 230, "\u{36B}" => 230, "\u{36C}" => 230, + "\u{36D}" => 230, "\u{36E}" => 230, "\u{36F}" => 230, "\u{483}" => 230, + "\u{484}" => 230, "\u{485}" => 230, "\u{486}" => 230, "\u{487}" => 230, + "\u{591}" => 220, "\u{592}" => 230, "\u{593}" => 230, "\u{594}" => 230, + "\u{595}" => 230, "\u{596}" => 220, "\u{597}" => 230, "\u{598}" => 230, + "\u{599}" => 230, "\u{59A}" => 222, "\u{59B}" => 220, "\u{59C}" => 230, + "\u{59D}" => 230, "\u{59E}" => 230, "\u{59F}" => 230, "\u{5A0}" => 230, + "\u{5A1}" => 230, "\u{5A2}" => 220, "\u{5A3}" => 220, "\u{5A4}" => 220, + "\u{5A5}" => 220, "\u{5A6}" => 220, "\u{5A7}" => 220, "\u{5A8}" => 230, + "\u{5A9}" => 230, "\u{5AA}" => 220, "\u{5AB}" => 230, "\u{5AC}" => 230, + "\u{5AD}" => 222, "\u{5AE}" => 228, "\u{5AF}" => 230, "\u{5B0}" => 10, + "\u{5B1}" => 11, "\u{5B2}" => 12, "\u{5B3}" => 13, "\u{5B4}" => 14, + "\u{5B5}" => 15, "\u{5B6}" => 16, "\u{5B7}" => 17, "\u{5B8}" => 18, + "\u{5B9}" => 19, "\u{5BA}" => 19, "\u{5BB}" => 20, "\u{5BC}" => 21, + "\u{5BD}" => 22, "\u{5BF}" => 23, "\u{5C1}" => 24, "\u{5C2}" => 25, + "\u{5C4}" => 230, "\u{5C5}" => 220, "\u{5C7}" => 18, "\u{5C8}" => 10, + "\u{5C9}" => 21, "\u{610}" => 230, "\u{611}" => 230, "\u{612}" => 230, + "\u{613}" => 230, "\u{614}" => 230, "\u{615}" => 230, "\u{616}" => 230, + "\u{617}" => 230, "\u{618}" => 30, "\u{619}" => 31, "\u{61A}" => 32, + "\u{64B}" => 27, "\u{64C}" => 28, "\u{64D}" => 29, "\u{64E}" => 30, + "\u{64F}" => 31, "\u{650}" => 32, "\u{651}" => 33, "\u{652}" => 34, + "\u{653}" => 230, "\u{654}" => 230, "\u{655}" => 220, "\u{656}" => 220, + "\u{657}" => 230, "\u{658}" => 230, "\u{659}" => 230, "\u{65A}" => 230, + "\u{65B}" => 230, "\u{65C}" => 220, "\u{65D}" => 230, "\u{65E}" => 230, + "\u{65F}" => 220, "\u{670}" => 35, "\u{6D6}" => 230, "\u{6D7}" => 230, + "\u{6D8}" => 230, "\u{6D9}" => 230, "\u{6DA}" => 230, "\u{6DB}" => 230, + "\u{6DC}" => 230, "\u{6DF}" => 230, "\u{6E0}" => 230, "\u{6E1}" => 230, + "\u{6E2}" => 230, "\u{6E3}" => 220, "\u{6E4}" => 230, "\u{6E7}" => 230, + "\u{6E8}" => 230, "\u{6EA}" => 220, "\u{6EB}" => 230, "\u{6EC}" => 230, + "\u{6ED}" => 220, "\u{711}" => 36, "\u{730}" => 230, "\u{731}" => 220, + "\u{732}" => 230, "\u{733}" => 230, "\u{734}" => 220, "\u{735}" => 230, + "\u{736}" => 230, "\u{737}" => 220, "\u{738}" => 220, "\u{739}" => 220, + "\u{73A}" => 230, "\u{73B}" => 220, "\u{73C}" => 220, "\u{73D}" => 230, + "\u{73E}" => 220, "\u{73F}" => 230, "\u{740}" => 230, "\u{741}" => 230, + "\u{742}" => 220, "\u{743}" => 230, "\u{744}" => 220, "\u{745}" => 230, + "\u{746}" => 220, "\u{747}" => 230, "\u{748}" => 220, "\u{749}" => 230, + "\u{74A}" => 230, "\u{7EB}" => 230, "\u{7EC}" => 230, "\u{7ED}" => 230, + "\u{7EE}" => 230, "\u{7EF}" => 230, "\u{7F0}" => 230, "\u{7F1}" => 230, + "\u{7F2}" => 220, "\u{7F3}" => 230, "\u{7FD}" => 220, "\u{816}" => 230, + "\u{817}" => 230, "\u{818}" => 230, "\u{819}" => 230, "\u{81B}" => 230, + "\u{81C}" => 230, "\u{81D}" => 230, "\u{81E}" => 230, "\u{81F}" => 230, + "\u{820}" => 230, "\u{821}" => 230, "\u{822}" => 230, "\u{823}" => 230, + "\u{825}" => 230, "\u{826}" => 230, "\u{827}" => 230, "\u{829}" => 230, + "\u{82A}" => 230, "\u{82B}" => 230, "\u{82C}" => 230, "\u{82D}" => 230, + "\u{859}" => 220, "\u{85A}" => 220, "\u{85B}" => 220, "\u{897}" => 230, + "\u{898}" => 230, "\u{899}" => 220, "\u{89A}" => 220, "\u{89B}" => 220, + "\u{89C}" => 230, "\u{89D}" => 230, "\u{89E}" => 230, "\u{89F}" => 230, + "\u{8CA}" => 230, "\u{8CB}" => 230, "\u{8CC}" => 230, "\u{8CD}" => 230, + "\u{8CE}" => 230, "\u{8CF}" => 220, "\u{8D0}" => 220, "\u{8D1}" => 220, + "\u{8D2}" => 220, "\u{8D3}" => 220, "\u{8D4}" => 230, "\u{8D5}" => 230, + "\u{8D6}" => 230, "\u{8D7}" => 230, "\u{8D8}" => 230, "\u{8D9}" => 230, + "\u{8DA}" => 230, "\u{8DB}" => 230, "\u{8DC}" => 230, "\u{8DD}" => 230, + "\u{8DE}" => 230, "\u{8DF}" => 230, "\u{8E0}" => 230, "\u{8E1}" => 230, + "\u{8E3}" => 220, "\u{8E4}" => 230, "\u{8E5}" => 230, "\u{8E6}" => 220, + "\u{8E7}" => 230, "\u{8E8}" => 230, "\u{8E9}" => 220, "\u{8EA}" => 230, + "\u{8EB}" => 230, "\u{8EC}" => 230, "\u{8ED}" => 220, "\u{8EE}" => 220, + "\u{8EF}" => 220, "\u{8F0}" => 27, "\u{8F1}" => 28, "\u{8F2}" => 29, + "\u{8F3}" => 230, "\u{8F4}" => 230, "\u{8F5}" => 230, "\u{8F6}" => 220, + "\u{8F7}" => 230, "\u{8F8}" => 230, "\u{8F9}" => 220, "\u{8FA}" => 220, + "\u{8FB}" => 230, "\u{8FC}" => 230, "\u{8FD}" => 230, "\u{8FE}" => 230, + "\u{8FF}" => 230, "\u{93C}" => 7, "\u{94D}" => 9, "\u{951}" => 230, + "\u{952}" => 220, "\u{953}" => 230, "\u{954}" => 230, "\u{9BC}" => 7, + "\u{9CD}" => 9, "\u{9FE}" => 230, "\u{A3C}" => 7, "\u{A4D}" => 9, + "\u{ABC}" => 7, "\u{ACD}" => 9, "\u{B3C}" => 7, "\u{B4D}" => 9, + "\u{BCD}" => 9, "\u{C3C}" => 7, "\u{C4D}" => 9, "\u{C55}" => 84, + "\u{C56}" => 91, "\u{CBC}" => 7, "\u{CCD}" => 9, "\u{D3B}" => 9, + "\u{D3C}" => 9, "\u{D4D}" => 9, "\u{DCA}" => 9, "\u{E38}" => 103, + "\u{E39}" => 103, "\u{E3A}" => 9, "\u{E48}" => 107, "\u{E49}" => 107, + "\u{E4A}" => 107, "\u{E4B}" => 107, "\u{EB8}" => 118, "\u{EB9}" => 118, + "\u{EBA}" => 9, "\u{EC8}" => 122, "\u{EC9}" => 122, "\u{ECA}" => 122, + "\u{ECB}" => 122, "\u{F18}" => 220, "\u{F19}" => 220, "\u{F35}" => 220, + "\u{F37}" => 220, "\u{F39}" => 216, "\u{F71}" => 129, "\u{F72}" => 130, + "\u{F74}" => 132, "\u{F7A}" => 130, "\u{F7B}" => 130, "\u{F7C}" => 130, + "\u{F7D}" => 130, "\u{F80}" => 130, "\u{F82}" => 230, "\u{F83}" => 230, + "\u{F84}" => 9, "\u{F86}" => 230, "\u{F87}" => 230, "\u{FC6}" => 220, + "\u{1037}" => 7, "\u{1039}" => 9, "\u{103A}" => 9, "\u{108D}" => 220, + "\u{135D}" => 230, "\u{135E}" => 230, "\u{135F}" => 230, "\u{1714}" => 9, + "\u{1715}" => 9, "\u{1734}" => 9, "\u{17D2}" => 9, "\u{17DD}" => 230, + "\u{18A9}" => 228, "\u{1939}" => 222, "\u{193A}" => 230, "\u{193B}" => 220, + "\u{1A17}" => 230, "\u{1A18}" => 220, "\u{1A60}" => 9, "\u{1A75}" => 230, + "\u{1A76}" => 230, "\u{1A77}" => 230, "\u{1A78}" => 230, "\u{1A79}" => 230, + "\u{1A7A}" => 230, "\u{1A7B}" => 230, "\u{1A7C}" => 230, "\u{1A7F}" => 220, + "\u{1AB0}" => 230, "\u{1AB1}" => 230, "\u{1AB2}" => 230, "\u{1AB3}" => 230, + "\u{1AB4}" => 230, "\u{1AB5}" => 220, "\u{1AB6}" => 220, "\u{1AB7}" => 220, + "\u{1AB8}" => 220, "\u{1AB9}" => 220, "\u{1ABA}" => 220, "\u{1ABB}" => 230, + "\u{1ABC}" => 230, "\u{1ABD}" => 220, "\u{1ABF}" => 220, "\u{1AC0}" => 220, + "\u{1AC1}" => 230, "\u{1AC2}" => 230, "\u{1AC3}" => 220, "\u{1AC4}" => 220, + "\u{1AC5}" => 230, "\u{1AC6}" => 230, "\u{1AC7}" => 230, "\u{1AC8}" => 230, + "\u{1AC9}" => 230, "\u{1ACA}" => 220, "\u{1ACB}" => 230, "\u{1ACC}" => 230, + "\u{1ACD}" => 230, "\u{1ACE}" => 230, "\u{1ACF}" => 230, "\u{1AD0}" => 230, + "\u{1AD1}" => 230, "\u{1AD2}" => 230, "\u{1AD3}" => 230, "\u{1AD4}" => 230, + "\u{1AD5}" => 230, "\u{1AD6}" => 230, "\u{1AD7}" => 230, "\u{1AD8}" => 230, + "\u{1AD9}" => 230, "\u{1ADA}" => 230, "\u{1ADB}" => 230, "\u{1ADC}" => 230, + "\u{1ADD}" => 220, "\u{1ADE}" => 230, "\u{1ADF}" => 230, "\u{1AE0}" => 230, + "\u{1AE1}" => 230, "\u{1AE2}" => 230, "\u{1AE3}" => 230, "\u{1AE4}" => 230, + "\u{1AE5}" => 230, "\u{1AE6}" => 220, "\u{1AE7}" => 230, "\u{1AE8}" => 230, + "\u{1AE9}" => 230, "\u{1AEA}" => 230, "\u{1AEB}" => 234, "\u{1AEC}" => 230, + "\u{1AED}" => 230, "\u{1AEE}" => 220, "\u{1AEF}" => 220, "\u{1AF0}" => 230, + "\u{1B34}" => 7, "\u{1B44}" => 9, "\u{1B6B}" => 230, "\u{1B6C}" => 220, + "\u{1B6D}" => 230, "\u{1B6E}" => 230, "\u{1B6F}" => 230, "\u{1B70}" => 230, + "\u{1B71}" => 230, "\u{1B72}" => 230, "\u{1B73}" => 230, "\u{1BAA}" => 9, + "\u{1BAB}" => 9, "\u{1BE6}" => 7, "\u{1BF2}" => 9, "\u{1BF3}" => 9, + "\u{1C37}" => 7, "\u{1CD0}" => 230, "\u{1CD1}" => 230, "\u{1CD2}" => 230, + "\u{1CD4}" => 1, "\u{1CD5}" => 220, "\u{1CD6}" => 220, "\u{1CD7}" => 220, + "\u{1CD8}" => 220, "\u{1CD9}" => 220, "\u{1CDA}" => 230, "\u{1CDB}" => 230, + "\u{1CDC}" => 220, "\u{1CDD}" => 220, "\u{1CDE}" => 220, "\u{1CDF}" => 220, + "\u{1CE0}" => 230, "\u{1CE2}" => 1, "\u{1CE3}" => 1, "\u{1CE4}" => 1, + "\u{1CE5}" => 1, "\u{1CE6}" => 1, "\u{1CE7}" => 1, "\u{1CE8}" => 1, + "\u{1CED}" => 220, "\u{1CF4}" => 230, "\u{1CF8}" => 230, "\u{1CF9}" => 230, + "\u{1DC0}" => 230, "\u{1DC1}" => 230, "\u{1DC2}" => 220, "\u{1DC3}" => 230, + "\u{1DC4}" => 230, "\u{1DC5}" => 230, "\u{1DC6}" => 230, "\u{1DC7}" => 230, + "\u{1DC8}" => 230, "\u{1DC9}" => 230, "\u{1DCA}" => 220, "\u{1DCB}" => 230, + "\u{1DCC}" => 230, "\u{1DCD}" => 234, "\u{1DCE}" => 214, "\u{1DCF}" => 220, + "\u{1DD0}" => 202, "\u{1DD1}" => 230, "\u{1DD2}" => 230, "\u{1DD3}" => 230, + "\u{1DD4}" => 230, "\u{1DD5}" => 230, "\u{1DD6}" => 230, "\u{1DD7}" => 230, + "\u{1DD8}" => 230, "\u{1DD9}" => 230, "\u{1DDA}" => 230, "\u{1DDB}" => 230, + "\u{1DDC}" => 230, "\u{1DDD}" => 230, "\u{1DDE}" => 230, "\u{1DDF}" => 230, + "\u{1DE0}" => 230, "\u{1DE1}" => 230, "\u{1DE2}" => 230, "\u{1DE3}" => 230, + "\u{1DE4}" => 230, "\u{1DE5}" => 230, "\u{1DE6}" => 230, "\u{1DE7}" => 230, + "\u{1DE8}" => 230, "\u{1DE9}" => 230, "\u{1DEA}" => 230, "\u{1DEB}" => 230, + "\u{1DEC}" => 230, "\u{1DED}" => 230, "\u{1DEE}" => 230, "\u{1DEF}" => 230, + "\u{1DF0}" => 230, "\u{1DF1}" => 230, "\u{1DF2}" => 230, "\u{1DF3}" => 230, + "\u{1DF4}" => 230, "\u{1DF5}" => 230, "\u{1DF6}" => 232, "\u{1DF7}" => 228, + "\u{1DF8}" => 228, "\u{1DF9}" => 220, "\u{1DFA}" => 218, "\u{1DFB}" => 230, + "\u{1DFC}" => 233, "\u{1DFD}" => 220, "\u{1DFE}" => 230, "\u{1DFF}" => 220, + "\u{20D0}" => 230, "\u{20D1}" => 230, "\u{20D2}" => 1, "\u{20D3}" => 1, + "\u{20D4}" => 230, "\u{20D5}" => 230, "\u{20D6}" => 230, "\u{20D7}" => 230, + "\u{20D8}" => 1, "\u{20D9}" => 1, "\u{20DA}" => 1, "\u{20DB}" => 230, + "\u{20DC}" => 230, "\u{20E1}" => 230, "\u{20E5}" => 1, "\u{20E6}" => 1, + "\u{20E7}" => 230, "\u{20E8}" => 220, "\u{20E9}" => 230, "\u{20EA}" => 1, + "\u{20EB}" => 1, "\u{20EC}" => 220, "\u{20ED}" => 220, "\u{20EE}" => 220, + "\u{20EF}" => 220, "\u{20F0}" => 230, "\u{2CEF}" => 230, "\u{2CF0}" => 230, + "\u{2CF1}" => 230, "\u{2D7F}" => 9, "\u{2DE0}" => 230, "\u{2DE1}" => 230, + "\u{2DE2}" => 230, "\u{2DE3}" => 230, "\u{2DE4}" => 230, "\u{2DE5}" => 230, + "\u{2DE6}" => 230, "\u{2DE7}" => 230, "\u{2DE8}" => 230, "\u{2DE9}" => 230, + "\u{2DEA}" => 230, "\u{2DEB}" => 230, "\u{2DEC}" => 230, "\u{2DED}" => 230, + "\u{2DEE}" => 230, "\u{2DEF}" => 230, "\u{2DF0}" => 230, "\u{2DF1}" => 230, + "\u{2DF2}" => 230, "\u{2DF3}" => 230, "\u{2DF4}" => 230, "\u{2DF5}" => 230, + "\u{2DF6}" => 230, "\u{2DF7}" => 230, "\u{2DF8}" => 230, "\u{2DF9}" => 230, + "\u{2DFA}" => 230, "\u{2DFB}" => 230, "\u{2DFC}" => 230, "\u{2DFD}" => 230, + "\u{2DFE}" => 230, "\u{2DFF}" => 230, "\u{302A}" => 218, "\u{302B}" => 228, + "\u{302C}" => 232, "\u{302D}" => 222, "\u{302E}" => 224, "\u{302F}" => 224, + "\u{3099}" => 8, "\u{309A}" => 8, "\u{A66F}" => 230, "\u{A674}" => 230, + "\u{A675}" => 230, "\u{A676}" => 230, "\u{A677}" => 230, "\u{A678}" => 230, + "\u{A679}" => 230, "\u{A67A}" => 230, "\u{A67B}" => 230, "\u{A67C}" => 230, + "\u{A67D}" => 230, "\u{A69E}" => 230, "\u{A69F}" => 230, "\u{A6F0}" => 230, + "\u{A6F1}" => 230, "\u{A806}" => 9, "\u{A82C}" => 9, "\u{A8C4}" => 9, + "\u{A8E0}" => 230, "\u{A8E1}" => 230, "\u{A8E2}" => 230, "\u{A8E3}" => 230, + "\u{A8E4}" => 230, "\u{A8E5}" => 230, "\u{A8E6}" => 230, "\u{A8E7}" => 230, + "\u{A8E8}" => 230, "\u{A8E9}" => 230, "\u{A8EA}" => 230, "\u{A8EB}" => 230, + "\u{A8EC}" => 230, "\u{A8ED}" => 230, "\u{A8EE}" => 230, "\u{A8EF}" => 230, + "\u{A8F0}" => 230, "\u{A8F1}" => 230, "\u{A92B}" => 220, "\u{A92C}" => 220, + "\u{A92D}" => 220, "\u{A953}" => 9, "\u{A9B3}" => 7, "\u{A9C0}" => 9, + "\u{AAB0}" => 230, "\u{AAB2}" => 230, "\u{AAB3}" => 230, "\u{AAB4}" => 220, + "\u{AAB7}" => 230, "\u{AAB8}" => 230, "\u{AABE}" => 230, "\u{AABF}" => 230, + "\u{AAC1}" => 230, "\u{AAF6}" => 9, "\u{ABED}" => 9, "\u{FB1E}" => 26, + "\u{FE20}" => 230, "\u{FE21}" => 230, "\u{FE22}" => 230, "\u{FE23}" => 230, + "\u{FE24}" => 230, "\u{FE25}" => 230, "\u{FE26}" => 230, "\u{FE27}" => 220, + "\u{FE28}" => 220, "\u{FE29}" => 220, "\u{FE2A}" => 220, "\u{FE2B}" => 220, + "\u{FE2C}" => 220, "\u{FE2D}" => 220, "\u{FE2E}" => 230, "\u{FE2F}" => 230, + "\u{101FD}" => 220, "\u{102E0}" => 220, "\u{10376}" => 230, "\u{10377}" => 230, + "\u{10378}" => 230, "\u{10379}" => 230, "\u{1037A}" => 230, "\u{10A0D}" => 220, + "\u{10A0F}" => 230, "\u{10A38}" => 230, "\u{10A39}" => 1, "\u{10A3A}" => 220, + "\u{10A3F}" => 9, "\u{10AE5}" => 230, "\u{10AE6}" => 220, "\u{10D24}" => 230, + "\u{10D25}" => 230, "\u{10D26}" => 230, "\u{10D27}" => 230, "\u{10D69}" => 230, + "\u{10D6A}" => 230, "\u{10D6B}" => 230, "\u{10D6C}" => 230, "\u{10D6D}" => 230, + "\u{10EAB}" => 230, "\u{10EAC}" => 230, "\u{10ECB}" => 230, "\u{10ECC}" => 220, + "\u{10ECD}" => 220, "\u{10ECE}" => 230, "\u{10ECF}" => 230, "\u{10EF0}" => 220, + "\u{10EF1}" => 220, "\u{10EF2}" => 220, "\u{10EF3}" => 230, "\u{10EF4}" => 220, + "\u{10EF5}" => 230, "\u{10EF6}" => 220, "\u{10EF7}" => 230, "\u{10EF8}" => 230, + "\u{10EF9}" => 230, "\u{10EFA}" => 220, "\u{10EFB}" => 220, "\u{10EFD}" => 220, + "\u{10EFE}" => 220, "\u{10EFF}" => 220, "\u{10F46}" => 220, "\u{10F47}" => 220, + "\u{10F48}" => 230, "\u{10F49}" => 230, "\u{10F4A}" => 230, "\u{10F4B}" => 220, + "\u{10F4C}" => 230, "\u{10F4D}" => 220, "\u{10F4E}" => 220, "\u{10F4F}" => 220, + "\u{10F50}" => 220, "\u{10F82}" => 230, "\u{10F83}" => 220, "\u{10F84}" => 230, + "\u{10F85}" => 220, "\u{11046}" => 9, "\u{11070}" => 9, "\u{1107F}" => 9, + "\u{110B9}" => 9, "\u{110BA}" => 7, "\u{11100}" => 230, "\u{11101}" => 230, + "\u{11102}" => 230, "\u{11133}" => 9, "\u{11134}" => 9, "\u{11173}" => 7, + "\u{111C0}" => 9, "\u{111CA}" => 7, "\u{11235}" => 9, "\u{11236}" => 7, + "\u{112E9}" => 7, "\u{112EA}" => 9, "\u{1133B}" => 7, "\u{1133C}" => 7, + "\u{1134D}" => 9, "\u{11366}" => 230, "\u{11367}" => 230, "\u{11368}" => 230, + "\u{11369}" => 230, "\u{1136A}" => 230, "\u{1136B}" => 230, "\u{1136C}" => 230, + "\u{11370}" => 230, "\u{11371}" => 230, "\u{11372}" => 230, "\u{11373}" => 230, + "\u{11374}" => 230, "\u{113CE}" => 9, "\u{113CF}" => 9, "\u{113D0}" => 9, + "\u{11442}" => 9, "\u{11446}" => 7, "\u{1145E}" => 230, "\u{114C2}" => 9, + "\u{114C3}" => 7, "\u{115BF}" => 9, "\u{115C0}" => 7, "\u{1163F}" => 9, + "\u{116B6}" => 9, "\u{116B7}" => 7, "\u{1172B}" => 9, "\u{11839}" => 9, + "\u{1183A}" => 7, "\u{1193D}" => 9, "\u{1193E}" => 9, "\u{11943}" => 7, + "\u{119E0}" => 9, "\u{11A34}" => 9, "\u{11A47}" => 9, "\u{11A99}" => 9, + "\u{11C3F}" => 9, "\u{11D42}" => 7, "\u{11D44}" => 9, "\u{11D45}" => 9, + "\u{11D97}" => 9, "\u{11F41}" => 9, "\u{11F42}" => 9, "\u{1612F}" => 9, + "\u{16AF0}" => 1, "\u{16AF1}" => 1, "\u{16AF2}" => 1, "\u{16AF3}" => 1, + "\u{16AF4}" => 1, "\u{16B30}" => 230, "\u{16B31}" => 230, "\u{16B32}" => 230, + "\u{16B33}" => 230, "\u{16B34}" => 230, "\u{16B35}" => 230, "\u{16B36}" => 230, + "\u{16FF0}" => 6, "\u{16FF1}" => 6, "\u{1BC9E}" => 1, "\u{1D127}" => 220, + "\u{1D128}" => 220, "\u{1D165}" => 216, "\u{1D166}" => 216, "\u{1D167}" => 1, + "\u{1D168}" => 1, "\u{1D169}" => 1, "\u{1D16D}" => 226, "\u{1D16E}" => 216, + "\u{1D16F}" => 216, "\u{1D170}" => 216, "\u{1D171}" => 216, "\u{1D172}" => 216, + "\u{1D17B}" => 220, "\u{1D17C}" => 220, "\u{1D17D}" => 220, "\u{1D17E}" => 220, + "\u{1D17F}" => 220, "\u{1D180}" => 220, "\u{1D181}" => 220, "\u{1D182}" => 220, + "\u{1D185}" => 230, "\u{1D186}" => 230, "\u{1D187}" => 230, "\u{1D188}" => 230, + "\u{1D189}" => 230, "\u{1D18A}" => 220, "\u{1D18B}" => 220, "\u{1D1AA}" => 230, + "\u{1D1AB}" => 230, "\u{1D1AC}" => 230, "\u{1D1AD}" => 230, "\u{1D242}" => 230, + "\u{1D243}" => 230, "\u{1D244}" => 230, "\u{1D250}" => 216, "\u{1D251}" => 216, + "\u{1D252}" => 216, "\u{1D25B}" => 1, "\u{1D25C}" => 1, "\u{1D25F}" => 216, + "\u{1D280}" => 216, "\u{1D281}" => 216, "\u{1E000}" => 230, "\u{1E001}" => 230, + "\u{1E002}" => 230, "\u{1E003}" => 230, "\u{1E004}" => 230, "\u{1E005}" => 230, + "\u{1E006}" => 230, "\u{1E008}" => 230, "\u{1E009}" => 230, "\u{1E00A}" => 230, + "\u{1E00B}" => 230, "\u{1E00C}" => 230, "\u{1E00D}" => 230, "\u{1E00E}" => 230, + "\u{1E00F}" => 230, "\u{1E010}" => 230, "\u{1E011}" => 230, "\u{1E012}" => 230, + "\u{1E013}" => 230, "\u{1E014}" => 230, "\u{1E015}" => 230, "\u{1E016}" => 230, + "\u{1E017}" => 230, "\u{1E018}" => 230, "\u{1E01B}" => 230, "\u{1E01C}" => 230, + "\u{1E01D}" => 230, "\u{1E01E}" => 230, "\u{1E01F}" => 230, "\u{1E020}" => 230, + "\u{1E021}" => 230, "\u{1E023}" => 230, "\u{1E024}" => 230, "\u{1E026}" => 230, + "\u{1E027}" => 230, "\u{1E028}" => 230, "\u{1E029}" => 230, "\u{1E02A}" => 230, + "\u{1E08F}" => 230, "\u{1E130}" => 230, "\u{1E131}" => 230, "\u{1E132}" => 230, + "\u{1E133}" => 230, "\u{1E134}" => 230, "\u{1E135}" => 230, "\u{1E136}" => 230, + "\u{1E2AE}" => 230, "\u{1E2EC}" => 230, "\u{1E2ED}" => 230, "\u{1E2EE}" => 230, + "\u{1E2EF}" => 230, "\u{1E4EC}" => 232, "\u{1E4ED}" => 232, "\u{1E4EE}" => 220, + "\u{1E4EF}" => 230, "\u{1E5EE}" => 230, "\u{1E5EF}" => 220, "\u{1E6E3}" => 230, + "\u{1E6E6}" => 230, "\u{1E6EE}" => 230, "\u{1E6EF}" => 230, "\u{1E6F5}" => 230, + "\u{1E8D0}" => 220, "\u{1E8D1}" => 220, "\u{1E8D2}" => 220, "\u{1E8D3}" => 220, + "\u{1E8D4}" => 220, "\u{1E8D5}" => 220, "\u{1E8D6}" => 220, "\u{1E944}" => 230, + "\u{1E945}" => 230, "\u{1E946}" => 230, "\u{1E947}" => 230, "\u{1E948}" => 230, + "\u{1E949}" => 230, "\u{1E94A}" => 7, + }.freeze + + # The canonical decomposition mapping (one level) of each code + # point that has one. Hangul syllables are not listed: they are + # decomposed algorithmically. + CANONICAL_DECOMPOSITION = { + "\u{C0}" => "\u{41}\u{300}", "\u{C1}" => "\u{41}\u{301}", "\u{C2}" => "\u{41}\u{302}", "\u{C3}" => "\u{41}\u{303}", + "\u{C4}" => "\u{41}\u{308}", "\u{C5}" => "\u{41}\u{30A}", "\u{C7}" => "\u{43}\u{327}", "\u{C8}" => "\u{45}\u{300}", + "\u{C9}" => "\u{45}\u{301}", "\u{CA}" => "\u{45}\u{302}", "\u{CB}" => "\u{45}\u{308}", "\u{CC}" => "\u{49}\u{300}", + "\u{CD}" => "\u{49}\u{301}", "\u{CE}" => "\u{49}\u{302}", "\u{CF}" => "\u{49}\u{308}", "\u{D1}" => "\u{4E}\u{303}", + "\u{D2}" => "\u{4F}\u{300}", "\u{D3}" => "\u{4F}\u{301}", "\u{D4}" => "\u{4F}\u{302}", "\u{D5}" => "\u{4F}\u{303}", + "\u{D6}" => "\u{4F}\u{308}", "\u{D9}" => "\u{55}\u{300}", "\u{DA}" => "\u{55}\u{301}", "\u{DB}" => "\u{55}\u{302}", + "\u{DC}" => "\u{55}\u{308}", "\u{DD}" => "\u{59}\u{301}", "\u{E0}" => "\u{61}\u{300}", "\u{E1}" => "\u{61}\u{301}", + "\u{E2}" => "\u{61}\u{302}", "\u{E3}" => "\u{61}\u{303}", "\u{E4}" => "\u{61}\u{308}", "\u{E5}" => "\u{61}\u{30A}", + "\u{E7}" => "\u{63}\u{327}", "\u{E8}" => "\u{65}\u{300}", "\u{E9}" => "\u{65}\u{301}", "\u{EA}" => "\u{65}\u{302}", + "\u{EB}" => "\u{65}\u{308}", "\u{EC}" => "\u{69}\u{300}", "\u{ED}" => "\u{69}\u{301}", "\u{EE}" => "\u{69}\u{302}", + "\u{EF}" => "\u{69}\u{308}", "\u{F1}" => "\u{6E}\u{303}", "\u{F2}" => "\u{6F}\u{300}", "\u{F3}" => "\u{6F}\u{301}", + "\u{F4}" => "\u{6F}\u{302}", "\u{F5}" => "\u{6F}\u{303}", "\u{F6}" => "\u{6F}\u{308}", "\u{F9}" => "\u{75}\u{300}", + "\u{FA}" => "\u{75}\u{301}", "\u{FB}" => "\u{75}\u{302}", "\u{FC}" => "\u{75}\u{308}", "\u{FD}" => "\u{79}\u{301}", + "\u{FF}" => "\u{79}\u{308}", "\u{100}" => "\u{41}\u{304}", "\u{101}" => "\u{61}\u{304}", "\u{102}" => "\u{41}\u{306}", + "\u{103}" => "\u{61}\u{306}", "\u{104}" => "\u{41}\u{328}", "\u{105}" => "\u{61}\u{328}", "\u{106}" => "\u{43}\u{301}", + "\u{107}" => "\u{63}\u{301}", "\u{108}" => "\u{43}\u{302}", "\u{109}" => "\u{63}\u{302}", "\u{10A}" => "\u{43}\u{307}", + "\u{10B}" => "\u{63}\u{307}", "\u{10C}" => "\u{43}\u{30C}", "\u{10D}" => "\u{63}\u{30C}", "\u{10E}" => "\u{44}\u{30C}", + "\u{10F}" => "\u{64}\u{30C}", "\u{112}" => "\u{45}\u{304}", "\u{113}" => "\u{65}\u{304}", "\u{114}" => "\u{45}\u{306}", + "\u{115}" => "\u{65}\u{306}", "\u{116}" => "\u{45}\u{307}", "\u{117}" => "\u{65}\u{307}", "\u{118}" => "\u{45}\u{328}", + "\u{119}" => "\u{65}\u{328}", "\u{11A}" => "\u{45}\u{30C}", "\u{11B}" => "\u{65}\u{30C}", "\u{11C}" => "\u{47}\u{302}", + "\u{11D}" => "\u{67}\u{302}", "\u{11E}" => "\u{47}\u{306}", "\u{11F}" => "\u{67}\u{306}", "\u{120}" => "\u{47}\u{307}", + "\u{121}" => "\u{67}\u{307}", "\u{122}" => "\u{47}\u{327}", "\u{123}" => "\u{67}\u{327}", "\u{124}" => "\u{48}\u{302}", + "\u{125}" => "\u{68}\u{302}", "\u{128}" => "\u{49}\u{303}", "\u{129}" => "\u{69}\u{303}", "\u{12A}" => "\u{49}\u{304}", + "\u{12B}" => "\u{69}\u{304}", "\u{12C}" => "\u{49}\u{306}", "\u{12D}" => "\u{69}\u{306}", "\u{12E}" => "\u{49}\u{328}", + "\u{12F}" => "\u{69}\u{328}", "\u{130}" => "\u{49}\u{307}", "\u{134}" => "\u{4A}\u{302}", "\u{135}" => "\u{6A}\u{302}", + "\u{136}" => "\u{4B}\u{327}", "\u{137}" => "\u{6B}\u{327}", "\u{139}" => "\u{4C}\u{301}", "\u{13A}" => "\u{6C}\u{301}", + "\u{13B}" => "\u{4C}\u{327}", "\u{13C}" => "\u{6C}\u{327}", "\u{13D}" => "\u{4C}\u{30C}", "\u{13E}" => "\u{6C}\u{30C}", + "\u{143}" => "\u{4E}\u{301}", "\u{144}" => "\u{6E}\u{301}", "\u{145}" => "\u{4E}\u{327}", "\u{146}" => "\u{6E}\u{327}", + "\u{147}" => "\u{4E}\u{30C}", "\u{148}" => "\u{6E}\u{30C}", "\u{14C}" => "\u{4F}\u{304}", "\u{14D}" => "\u{6F}\u{304}", + "\u{14E}" => "\u{4F}\u{306}", "\u{14F}" => "\u{6F}\u{306}", "\u{150}" => "\u{4F}\u{30B}", "\u{151}" => "\u{6F}\u{30B}", + "\u{154}" => "\u{52}\u{301}", "\u{155}" => "\u{72}\u{301}", "\u{156}" => "\u{52}\u{327}", "\u{157}" => "\u{72}\u{327}", + "\u{158}" => "\u{52}\u{30C}", "\u{159}" => "\u{72}\u{30C}", "\u{15A}" => "\u{53}\u{301}", "\u{15B}" => "\u{73}\u{301}", + "\u{15C}" => "\u{53}\u{302}", "\u{15D}" => "\u{73}\u{302}", "\u{15E}" => "\u{53}\u{327}", "\u{15F}" => "\u{73}\u{327}", + "\u{160}" => "\u{53}\u{30C}", "\u{161}" => "\u{73}\u{30C}", "\u{162}" => "\u{54}\u{327}", "\u{163}" => "\u{74}\u{327}", + "\u{164}" => "\u{54}\u{30C}", "\u{165}" => "\u{74}\u{30C}", "\u{168}" => "\u{55}\u{303}", "\u{169}" => "\u{75}\u{303}", + "\u{16A}" => "\u{55}\u{304}", "\u{16B}" => "\u{75}\u{304}", "\u{16C}" => "\u{55}\u{306}", "\u{16D}" => "\u{75}\u{306}", + "\u{16E}" => "\u{55}\u{30A}", "\u{16F}" => "\u{75}\u{30A}", "\u{170}" => "\u{55}\u{30B}", "\u{171}" => "\u{75}\u{30B}", + "\u{172}" => "\u{55}\u{328}", "\u{173}" => "\u{75}\u{328}", "\u{174}" => "\u{57}\u{302}", "\u{175}" => "\u{77}\u{302}", + "\u{176}" => "\u{59}\u{302}", "\u{177}" => "\u{79}\u{302}", "\u{178}" => "\u{59}\u{308}", "\u{179}" => "\u{5A}\u{301}", + "\u{17A}" => "\u{7A}\u{301}", "\u{17B}" => "\u{5A}\u{307}", "\u{17C}" => "\u{7A}\u{307}", "\u{17D}" => "\u{5A}\u{30C}", + "\u{17E}" => "\u{7A}\u{30C}", "\u{1A0}" => "\u{4F}\u{31B}", "\u{1A1}" => "\u{6F}\u{31B}", "\u{1AF}" => "\u{55}\u{31B}", + "\u{1B0}" => "\u{75}\u{31B}", "\u{1CD}" => "\u{41}\u{30C}", "\u{1CE}" => "\u{61}\u{30C}", "\u{1CF}" => "\u{49}\u{30C}", + "\u{1D0}" => "\u{69}\u{30C}", "\u{1D1}" => "\u{4F}\u{30C}", "\u{1D2}" => "\u{6F}\u{30C}", "\u{1D3}" => "\u{55}\u{30C}", + "\u{1D4}" => "\u{75}\u{30C}", "\u{1D5}" => "\u{DC}\u{304}", "\u{1D6}" => "\u{FC}\u{304}", "\u{1D7}" => "\u{DC}\u{301}", + "\u{1D8}" => "\u{FC}\u{301}", "\u{1D9}" => "\u{DC}\u{30C}", "\u{1DA}" => "\u{FC}\u{30C}", "\u{1DB}" => "\u{DC}\u{300}", + "\u{1DC}" => "\u{FC}\u{300}", "\u{1DE}" => "\u{C4}\u{304}", "\u{1DF}" => "\u{E4}\u{304}", "\u{1E0}" => "\u{226}\u{304}", + "\u{1E1}" => "\u{227}\u{304}", "\u{1E2}" => "\u{C6}\u{304}", "\u{1E3}" => "\u{E6}\u{304}", "\u{1E6}" => "\u{47}\u{30C}", + "\u{1E7}" => "\u{67}\u{30C}", "\u{1E8}" => "\u{4B}\u{30C}", "\u{1E9}" => "\u{6B}\u{30C}", "\u{1EA}" => "\u{4F}\u{328}", + "\u{1EB}" => "\u{6F}\u{328}", "\u{1EC}" => "\u{1EA}\u{304}", "\u{1ED}" => "\u{1EB}\u{304}", "\u{1EE}" => "\u{1B7}\u{30C}", + "\u{1EF}" => "\u{292}\u{30C}", "\u{1F0}" => "\u{6A}\u{30C}", "\u{1F4}" => "\u{47}\u{301}", "\u{1F5}" => "\u{67}\u{301}", + "\u{1F8}" => "\u{4E}\u{300}", "\u{1F9}" => "\u{6E}\u{300}", "\u{1FA}" => "\u{C5}\u{301}", "\u{1FB}" => "\u{E5}\u{301}", + "\u{1FC}" => "\u{C6}\u{301}", "\u{1FD}" => "\u{E6}\u{301}", "\u{1FE}" => "\u{D8}\u{301}", "\u{1FF}" => "\u{F8}\u{301}", + "\u{200}" => "\u{41}\u{30F}", "\u{201}" => "\u{61}\u{30F}", "\u{202}" => "\u{41}\u{311}", "\u{203}" => "\u{61}\u{311}", + "\u{204}" => "\u{45}\u{30F}", "\u{205}" => "\u{65}\u{30F}", "\u{206}" => "\u{45}\u{311}", "\u{207}" => "\u{65}\u{311}", + "\u{208}" => "\u{49}\u{30F}", "\u{209}" => "\u{69}\u{30F}", "\u{20A}" => "\u{49}\u{311}", "\u{20B}" => "\u{69}\u{311}", + "\u{20C}" => "\u{4F}\u{30F}", "\u{20D}" => "\u{6F}\u{30F}", "\u{20E}" => "\u{4F}\u{311}", "\u{20F}" => "\u{6F}\u{311}", + "\u{210}" => "\u{52}\u{30F}", "\u{211}" => "\u{72}\u{30F}", "\u{212}" => "\u{52}\u{311}", "\u{213}" => "\u{72}\u{311}", + "\u{214}" => "\u{55}\u{30F}", "\u{215}" => "\u{75}\u{30F}", "\u{216}" => "\u{55}\u{311}", "\u{217}" => "\u{75}\u{311}", + "\u{218}" => "\u{53}\u{326}", "\u{219}" => "\u{73}\u{326}", "\u{21A}" => "\u{54}\u{326}", "\u{21B}" => "\u{74}\u{326}", + "\u{21E}" => "\u{48}\u{30C}", "\u{21F}" => "\u{68}\u{30C}", "\u{226}" => "\u{41}\u{307}", "\u{227}" => "\u{61}\u{307}", + "\u{228}" => "\u{45}\u{327}", "\u{229}" => "\u{65}\u{327}", "\u{22A}" => "\u{D6}\u{304}", "\u{22B}" => "\u{F6}\u{304}", + "\u{22C}" => "\u{D5}\u{304}", "\u{22D}" => "\u{F5}\u{304}", "\u{22E}" => "\u{4F}\u{307}", "\u{22F}" => "\u{6F}\u{307}", + "\u{230}" => "\u{22E}\u{304}", "\u{231}" => "\u{22F}\u{304}", "\u{232}" => "\u{59}\u{304}", "\u{233}" => "\u{79}\u{304}", + "\u{340}" => "\u{300}", "\u{341}" => "\u{301}", "\u{343}" => "\u{313}", "\u{344}" => "\u{308}\u{301}", + "\u{374}" => "\u{2B9}", "\u{37E}" => "\u{3B}", "\u{385}" => "\u{A8}\u{301}", "\u{386}" => "\u{391}\u{301}", + "\u{387}" => "\u{B7}", "\u{388}" => "\u{395}\u{301}", "\u{389}" => "\u{397}\u{301}", "\u{38A}" => "\u{399}\u{301}", + "\u{38C}" => "\u{39F}\u{301}", "\u{38E}" => "\u{3A5}\u{301}", "\u{38F}" => "\u{3A9}\u{301}", "\u{390}" => "\u{3CA}\u{301}", + "\u{3AA}" => "\u{399}\u{308}", "\u{3AB}" => "\u{3A5}\u{308}", "\u{3AC}" => "\u{3B1}\u{301}", "\u{3AD}" => "\u{3B5}\u{301}", + "\u{3AE}" => "\u{3B7}\u{301}", "\u{3AF}" => "\u{3B9}\u{301}", "\u{3B0}" => "\u{3CB}\u{301}", "\u{3CA}" => "\u{3B9}\u{308}", + "\u{3CB}" => "\u{3C5}\u{308}", "\u{3CC}" => "\u{3BF}\u{301}", "\u{3CD}" => "\u{3C5}\u{301}", "\u{3CE}" => "\u{3C9}\u{301}", + "\u{3D3}" => "\u{3D2}\u{301}", "\u{3D4}" => "\u{3D2}\u{308}", "\u{400}" => "\u{415}\u{300}", "\u{401}" => "\u{415}\u{308}", + "\u{403}" => "\u{413}\u{301}", "\u{407}" => "\u{406}\u{308}", "\u{40C}" => "\u{41A}\u{301}", "\u{40D}" => "\u{418}\u{300}", + "\u{40E}" => "\u{423}\u{306}", "\u{419}" => "\u{418}\u{306}", "\u{439}" => "\u{438}\u{306}", "\u{450}" => "\u{435}\u{300}", + "\u{451}" => "\u{435}\u{308}", "\u{453}" => "\u{433}\u{301}", "\u{457}" => "\u{456}\u{308}", "\u{45C}" => "\u{43A}\u{301}", + "\u{45D}" => "\u{438}\u{300}", "\u{45E}" => "\u{443}\u{306}", "\u{476}" => "\u{474}\u{30F}", "\u{477}" => "\u{475}\u{30F}", + "\u{4C1}" => "\u{416}\u{306}", "\u{4C2}" => "\u{436}\u{306}", "\u{4D0}" => "\u{410}\u{306}", "\u{4D1}" => "\u{430}\u{306}", + "\u{4D2}" => "\u{410}\u{308}", "\u{4D3}" => "\u{430}\u{308}", "\u{4D6}" => "\u{415}\u{306}", "\u{4D7}" => "\u{435}\u{306}", + "\u{4DA}" => "\u{4D8}\u{308}", "\u{4DB}" => "\u{4D9}\u{308}", "\u{4DC}" => "\u{416}\u{308}", "\u{4DD}" => "\u{436}\u{308}", + "\u{4DE}" => "\u{417}\u{308}", "\u{4DF}" => "\u{437}\u{308}", "\u{4E2}" => "\u{418}\u{304}", "\u{4E3}" => "\u{438}\u{304}", + "\u{4E4}" => "\u{418}\u{308}", "\u{4E5}" => "\u{438}\u{308}", "\u{4E6}" => "\u{41E}\u{308}", "\u{4E7}" => "\u{43E}\u{308}", + "\u{4EA}" => "\u{4E8}\u{308}", "\u{4EB}" => "\u{4E9}\u{308}", "\u{4EC}" => "\u{42D}\u{308}", "\u{4ED}" => "\u{44D}\u{308}", + "\u{4EE}" => "\u{423}\u{304}", "\u{4EF}" => "\u{443}\u{304}", "\u{4F0}" => "\u{423}\u{308}", "\u{4F1}" => "\u{443}\u{308}", + "\u{4F2}" => "\u{423}\u{30B}", "\u{4F3}" => "\u{443}\u{30B}", "\u{4F4}" => "\u{427}\u{308}", "\u{4F5}" => "\u{447}\u{308}", + "\u{4F8}" => "\u{42B}\u{308}", "\u{4F9}" => "\u{44B}\u{308}", "\u{622}" => "\u{627}\u{653}", "\u{623}" => "\u{627}\u{654}", + "\u{624}" => "\u{648}\u{654}", "\u{625}" => "\u{627}\u{655}", "\u{626}" => "\u{64A}\u{654}", "\u{6C0}" => "\u{6D5}\u{654}", + "\u{6C2}" => "\u{6C1}\u{654}", "\u{6D3}" => "\u{6D2}\u{654}", "\u{929}" => "\u{928}\u{93C}", "\u{931}" => "\u{930}\u{93C}", + "\u{934}" => "\u{933}\u{93C}", "\u{958}" => "\u{915}\u{93C}", "\u{959}" => "\u{916}\u{93C}", "\u{95A}" => "\u{917}\u{93C}", + "\u{95B}" => "\u{91C}\u{93C}", "\u{95C}" => "\u{921}\u{93C}", "\u{95D}" => "\u{922}\u{93C}", "\u{95E}" => "\u{92B}\u{93C}", + "\u{95F}" => "\u{92F}\u{93C}", "\u{9CB}" => "\u{9C7}\u{9BE}", "\u{9CC}" => "\u{9C7}\u{9D7}", "\u{9DC}" => "\u{9A1}\u{9BC}", + "\u{9DD}" => "\u{9A2}\u{9BC}", "\u{9DF}" => "\u{9AF}\u{9BC}", "\u{A33}" => "\u{A32}\u{A3C}", "\u{A36}" => "\u{A38}\u{A3C}", + "\u{A59}" => "\u{A16}\u{A3C}", "\u{A5A}" => "\u{A17}\u{A3C}", "\u{A5B}" => "\u{A1C}\u{A3C}", "\u{A5E}" => "\u{A2B}\u{A3C}", + "\u{B48}" => "\u{B47}\u{B56}", "\u{B4B}" => "\u{B47}\u{B3E}", "\u{B4C}" => "\u{B47}\u{B57}", "\u{B5C}" => "\u{B21}\u{B3C}", + "\u{B5D}" => "\u{B22}\u{B3C}", "\u{B94}" => "\u{B92}\u{BD7}", "\u{BCA}" => "\u{BC6}\u{BBE}", "\u{BCB}" => "\u{BC7}\u{BBE}", + "\u{BCC}" => "\u{BC6}\u{BD7}", "\u{C48}" => "\u{C46}\u{C56}", "\u{CC0}" => "\u{CBF}\u{CD5}", "\u{CC7}" => "\u{CC6}\u{CD5}", + "\u{CC8}" => "\u{CC6}\u{CD6}", "\u{CCA}" => "\u{CC6}\u{CC2}", "\u{CCB}" => "\u{CCA}\u{CD5}", "\u{D4A}" => "\u{D46}\u{D3E}", + "\u{D4B}" => "\u{D47}\u{D3E}", "\u{D4C}" => "\u{D46}\u{D57}", "\u{DDA}" => "\u{DD9}\u{DCA}", "\u{DDC}" => "\u{DD9}\u{DCF}", + "\u{DDD}" => "\u{DDC}\u{DCA}", "\u{DDE}" => "\u{DD9}\u{DDF}", "\u{F43}" => "\u{F42}\u{FB7}", "\u{F4D}" => "\u{F4C}\u{FB7}", + "\u{F52}" => "\u{F51}\u{FB7}", "\u{F57}" => "\u{F56}\u{FB7}", "\u{F5C}" => "\u{F5B}\u{FB7}", "\u{F69}" => "\u{F40}\u{FB5}", + "\u{F73}" => "\u{F71}\u{F72}", "\u{F75}" => "\u{F71}\u{F74}", "\u{F76}" => "\u{FB2}\u{F80}", "\u{F78}" => "\u{FB3}\u{F80}", + "\u{F81}" => "\u{F71}\u{F80}", "\u{F93}" => "\u{F92}\u{FB7}", "\u{F9D}" => "\u{F9C}\u{FB7}", "\u{FA2}" => "\u{FA1}\u{FB7}", + "\u{FA7}" => "\u{FA6}\u{FB7}", "\u{FAC}" => "\u{FAB}\u{FB7}", "\u{FB9}" => "\u{F90}\u{FB5}", "\u{1026}" => "\u{1025}\u{102E}", + "\u{1B06}" => "\u{1B05}\u{1B35}", "\u{1B08}" => "\u{1B07}\u{1B35}", "\u{1B0A}" => "\u{1B09}\u{1B35}", "\u{1B0C}" => "\u{1B0B}\u{1B35}", + "\u{1B0E}" => "\u{1B0D}\u{1B35}", "\u{1B12}" => "\u{1B11}\u{1B35}", "\u{1B3B}" => "\u{1B3A}\u{1B35}", "\u{1B3D}" => "\u{1B3C}\u{1B35}", + "\u{1B40}" => "\u{1B3E}\u{1B35}", "\u{1B41}" => "\u{1B3F}\u{1B35}", "\u{1B43}" => "\u{1B42}\u{1B35}", "\u{1E00}" => "\u{41}\u{325}", + "\u{1E01}" => "\u{61}\u{325}", "\u{1E02}" => "\u{42}\u{307}", "\u{1E03}" => "\u{62}\u{307}", "\u{1E04}" => "\u{42}\u{323}", + "\u{1E05}" => "\u{62}\u{323}", "\u{1E06}" => "\u{42}\u{331}", "\u{1E07}" => "\u{62}\u{331}", "\u{1E08}" => "\u{C7}\u{301}", + "\u{1E09}" => "\u{E7}\u{301}", "\u{1E0A}" => "\u{44}\u{307}", "\u{1E0B}" => "\u{64}\u{307}", "\u{1E0C}" => "\u{44}\u{323}", + "\u{1E0D}" => "\u{64}\u{323}", "\u{1E0E}" => "\u{44}\u{331}", "\u{1E0F}" => "\u{64}\u{331}", "\u{1E10}" => "\u{44}\u{327}", + "\u{1E11}" => "\u{64}\u{327}", "\u{1E12}" => "\u{44}\u{32D}", "\u{1E13}" => "\u{64}\u{32D}", "\u{1E14}" => "\u{112}\u{300}", + "\u{1E15}" => "\u{113}\u{300}", "\u{1E16}" => "\u{112}\u{301}", "\u{1E17}" => "\u{113}\u{301}", "\u{1E18}" => "\u{45}\u{32D}", + "\u{1E19}" => "\u{65}\u{32D}", "\u{1E1A}" => "\u{45}\u{330}", "\u{1E1B}" => "\u{65}\u{330}", "\u{1E1C}" => "\u{228}\u{306}", + "\u{1E1D}" => "\u{229}\u{306}", "\u{1E1E}" => "\u{46}\u{307}", "\u{1E1F}" => "\u{66}\u{307}", "\u{1E20}" => "\u{47}\u{304}", + "\u{1E21}" => "\u{67}\u{304}", "\u{1E22}" => "\u{48}\u{307}", "\u{1E23}" => "\u{68}\u{307}", "\u{1E24}" => "\u{48}\u{323}", + "\u{1E25}" => "\u{68}\u{323}", "\u{1E26}" => "\u{48}\u{308}", "\u{1E27}" => "\u{68}\u{308}", "\u{1E28}" => "\u{48}\u{327}", + "\u{1E29}" => "\u{68}\u{327}", "\u{1E2A}" => "\u{48}\u{32E}", "\u{1E2B}" => "\u{68}\u{32E}", "\u{1E2C}" => "\u{49}\u{330}", + "\u{1E2D}" => "\u{69}\u{330}", "\u{1E2E}" => "\u{CF}\u{301}", "\u{1E2F}" => "\u{EF}\u{301}", "\u{1E30}" => "\u{4B}\u{301}", + "\u{1E31}" => "\u{6B}\u{301}", "\u{1E32}" => "\u{4B}\u{323}", "\u{1E33}" => "\u{6B}\u{323}", "\u{1E34}" => "\u{4B}\u{331}", + "\u{1E35}" => "\u{6B}\u{331}", "\u{1E36}" => "\u{4C}\u{323}", "\u{1E37}" => "\u{6C}\u{323}", "\u{1E38}" => "\u{1E36}\u{304}", + "\u{1E39}" => "\u{1E37}\u{304}", "\u{1E3A}" => "\u{4C}\u{331}", "\u{1E3B}" => "\u{6C}\u{331}", "\u{1E3C}" => "\u{4C}\u{32D}", + "\u{1E3D}" => "\u{6C}\u{32D}", "\u{1E3E}" => "\u{4D}\u{301}", "\u{1E3F}" => "\u{6D}\u{301}", "\u{1E40}" => "\u{4D}\u{307}", + "\u{1E41}" => "\u{6D}\u{307}", "\u{1E42}" => "\u{4D}\u{323}", "\u{1E43}" => "\u{6D}\u{323}", "\u{1E44}" => "\u{4E}\u{307}", + "\u{1E45}" => "\u{6E}\u{307}", "\u{1E46}" => "\u{4E}\u{323}", "\u{1E47}" => "\u{6E}\u{323}", "\u{1E48}" => "\u{4E}\u{331}", + "\u{1E49}" => "\u{6E}\u{331}", "\u{1E4A}" => "\u{4E}\u{32D}", "\u{1E4B}" => "\u{6E}\u{32D}", "\u{1E4C}" => "\u{D5}\u{301}", + "\u{1E4D}" => "\u{F5}\u{301}", "\u{1E4E}" => "\u{D5}\u{308}", "\u{1E4F}" => "\u{F5}\u{308}", "\u{1E50}" => "\u{14C}\u{300}", + "\u{1E51}" => "\u{14D}\u{300}", "\u{1E52}" => "\u{14C}\u{301}", "\u{1E53}" => "\u{14D}\u{301}", "\u{1E54}" => "\u{50}\u{301}", + "\u{1E55}" => "\u{70}\u{301}", "\u{1E56}" => "\u{50}\u{307}", "\u{1E57}" => "\u{70}\u{307}", "\u{1E58}" => "\u{52}\u{307}", + "\u{1E59}" => "\u{72}\u{307}", "\u{1E5A}" => "\u{52}\u{323}", "\u{1E5B}" => "\u{72}\u{323}", "\u{1E5C}" => "\u{1E5A}\u{304}", + "\u{1E5D}" => "\u{1E5B}\u{304}", "\u{1E5E}" => "\u{52}\u{331}", "\u{1E5F}" => "\u{72}\u{331}", "\u{1E60}" => "\u{53}\u{307}", + "\u{1E61}" => "\u{73}\u{307}", "\u{1E62}" => "\u{53}\u{323}", "\u{1E63}" => "\u{73}\u{323}", "\u{1E64}" => "\u{15A}\u{307}", + "\u{1E65}" => "\u{15B}\u{307}", "\u{1E66}" => "\u{160}\u{307}", "\u{1E67}" => "\u{161}\u{307}", "\u{1E68}" => "\u{1E62}\u{307}", + "\u{1E69}" => "\u{1E63}\u{307}", "\u{1E6A}" => "\u{54}\u{307}", "\u{1E6B}" => "\u{74}\u{307}", "\u{1E6C}" => "\u{54}\u{323}", + "\u{1E6D}" => "\u{74}\u{323}", "\u{1E6E}" => "\u{54}\u{331}", "\u{1E6F}" => "\u{74}\u{331}", "\u{1E70}" => "\u{54}\u{32D}", + "\u{1E71}" => "\u{74}\u{32D}", "\u{1E72}" => "\u{55}\u{324}", "\u{1E73}" => "\u{75}\u{324}", "\u{1E74}" => "\u{55}\u{330}", + "\u{1E75}" => "\u{75}\u{330}", "\u{1E76}" => "\u{55}\u{32D}", "\u{1E77}" => "\u{75}\u{32D}", "\u{1E78}" => "\u{168}\u{301}", + "\u{1E79}" => "\u{169}\u{301}", "\u{1E7A}" => "\u{16A}\u{308}", "\u{1E7B}" => "\u{16B}\u{308}", "\u{1E7C}" => "\u{56}\u{303}", + "\u{1E7D}" => "\u{76}\u{303}", "\u{1E7E}" => "\u{56}\u{323}", "\u{1E7F}" => "\u{76}\u{323}", "\u{1E80}" => "\u{57}\u{300}", + "\u{1E81}" => "\u{77}\u{300}", "\u{1E82}" => "\u{57}\u{301}", "\u{1E83}" => "\u{77}\u{301}", "\u{1E84}" => "\u{57}\u{308}", + "\u{1E85}" => "\u{77}\u{308}", "\u{1E86}" => "\u{57}\u{307}", "\u{1E87}" => "\u{77}\u{307}", "\u{1E88}" => "\u{57}\u{323}", + "\u{1E89}" => "\u{77}\u{323}", "\u{1E8A}" => "\u{58}\u{307}", "\u{1E8B}" => "\u{78}\u{307}", "\u{1E8C}" => "\u{58}\u{308}", + "\u{1E8D}" => "\u{78}\u{308}", "\u{1E8E}" => "\u{59}\u{307}", "\u{1E8F}" => "\u{79}\u{307}", "\u{1E90}" => "\u{5A}\u{302}", + "\u{1E91}" => "\u{7A}\u{302}", "\u{1E92}" => "\u{5A}\u{323}", "\u{1E93}" => "\u{7A}\u{323}", "\u{1E94}" => "\u{5A}\u{331}", + "\u{1E95}" => "\u{7A}\u{331}", "\u{1E96}" => "\u{68}\u{331}", "\u{1E97}" => "\u{74}\u{308}", "\u{1E98}" => "\u{77}\u{30A}", + "\u{1E99}" => "\u{79}\u{30A}", "\u{1E9B}" => "\u{17F}\u{307}", "\u{1EA0}" => "\u{41}\u{323}", "\u{1EA1}" => "\u{61}\u{323}", + "\u{1EA2}" => "\u{41}\u{309}", "\u{1EA3}" => "\u{61}\u{309}", "\u{1EA4}" => "\u{C2}\u{301}", "\u{1EA5}" => "\u{E2}\u{301}", + "\u{1EA6}" => "\u{C2}\u{300}", "\u{1EA7}" => "\u{E2}\u{300}", "\u{1EA8}" => "\u{C2}\u{309}", "\u{1EA9}" => "\u{E2}\u{309}", + "\u{1EAA}" => "\u{C2}\u{303}", "\u{1EAB}" => "\u{E2}\u{303}", "\u{1EAC}" => "\u{1EA0}\u{302}", "\u{1EAD}" => "\u{1EA1}\u{302}", + "\u{1EAE}" => "\u{102}\u{301}", "\u{1EAF}" => "\u{103}\u{301}", "\u{1EB0}" => "\u{102}\u{300}", "\u{1EB1}" => "\u{103}\u{300}", + "\u{1EB2}" => "\u{102}\u{309}", "\u{1EB3}" => "\u{103}\u{309}", "\u{1EB4}" => "\u{102}\u{303}", "\u{1EB5}" => "\u{103}\u{303}", + "\u{1EB6}" => "\u{1EA0}\u{306}", "\u{1EB7}" => "\u{1EA1}\u{306}", "\u{1EB8}" => "\u{45}\u{323}", "\u{1EB9}" => "\u{65}\u{323}", + "\u{1EBA}" => "\u{45}\u{309}", "\u{1EBB}" => "\u{65}\u{309}", "\u{1EBC}" => "\u{45}\u{303}", "\u{1EBD}" => "\u{65}\u{303}", + "\u{1EBE}" => "\u{CA}\u{301}", "\u{1EBF}" => "\u{EA}\u{301}", "\u{1EC0}" => "\u{CA}\u{300}", "\u{1EC1}" => "\u{EA}\u{300}", + "\u{1EC2}" => "\u{CA}\u{309}", "\u{1EC3}" => "\u{EA}\u{309}", "\u{1EC4}" => "\u{CA}\u{303}", "\u{1EC5}" => "\u{EA}\u{303}", + "\u{1EC6}" => "\u{1EB8}\u{302}", "\u{1EC7}" => "\u{1EB9}\u{302}", "\u{1EC8}" => "\u{49}\u{309}", "\u{1EC9}" => "\u{69}\u{309}", + "\u{1ECA}" => "\u{49}\u{323}", "\u{1ECB}" => "\u{69}\u{323}", "\u{1ECC}" => "\u{4F}\u{323}", "\u{1ECD}" => "\u{6F}\u{323}", + "\u{1ECE}" => "\u{4F}\u{309}", "\u{1ECF}" => "\u{6F}\u{309}", "\u{1ED0}" => "\u{D4}\u{301}", "\u{1ED1}" => "\u{F4}\u{301}", + "\u{1ED2}" => "\u{D4}\u{300}", "\u{1ED3}" => "\u{F4}\u{300}", "\u{1ED4}" => "\u{D4}\u{309}", "\u{1ED5}" => "\u{F4}\u{309}", + "\u{1ED6}" => "\u{D4}\u{303}", "\u{1ED7}" => "\u{F4}\u{303}", "\u{1ED8}" => "\u{1ECC}\u{302}", "\u{1ED9}" => "\u{1ECD}\u{302}", + "\u{1EDA}" => "\u{1A0}\u{301}", "\u{1EDB}" => "\u{1A1}\u{301}", "\u{1EDC}" => "\u{1A0}\u{300}", "\u{1EDD}" => "\u{1A1}\u{300}", + "\u{1EDE}" => "\u{1A0}\u{309}", "\u{1EDF}" => "\u{1A1}\u{309}", "\u{1EE0}" => "\u{1A0}\u{303}", "\u{1EE1}" => "\u{1A1}\u{303}", + "\u{1EE2}" => "\u{1A0}\u{323}", "\u{1EE3}" => "\u{1A1}\u{323}", "\u{1EE4}" => "\u{55}\u{323}", "\u{1EE5}" => "\u{75}\u{323}", + "\u{1EE6}" => "\u{55}\u{309}", "\u{1EE7}" => "\u{75}\u{309}", "\u{1EE8}" => "\u{1AF}\u{301}", "\u{1EE9}" => "\u{1B0}\u{301}", + "\u{1EEA}" => "\u{1AF}\u{300}", "\u{1EEB}" => "\u{1B0}\u{300}", "\u{1EEC}" => "\u{1AF}\u{309}", "\u{1EED}" => "\u{1B0}\u{309}", + "\u{1EEE}" => "\u{1AF}\u{303}", "\u{1EEF}" => "\u{1B0}\u{303}", "\u{1EF0}" => "\u{1AF}\u{323}", "\u{1EF1}" => "\u{1B0}\u{323}", + "\u{1EF2}" => "\u{59}\u{300}", "\u{1EF3}" => "\u{79}\u{300}", "\u{1EF4}" => "\u{59}\u{323}", "\u{1EF5}" => "\u{79}\u{323}", + "\u{1EF6}" => "\u{59}\u{309}", "\u{1EF7}" => "\u{79}\u{309}", "\u{1EF8}" => "\u{59}\u{303}", "\u{1EF9}" => "\u{79}\u{303}", + "\u{1F00}" => "\u{3B1}\u{313}", "\u{1F01}" => "\u{3B1}\u{314}", "\u{1F02}" => "\u{1F00}\u{300}", "\u{1F03}" => "\u{1F01}\u{300}", + "\u{1F04}" => "\u{1F00}\u{301}", "\u{1F05}" => "\u{1F01}\u{301}", "\u{1F06}" => "\u{1F00}\u{342}", "\u{1F07}" => "\u{1F01}\u{342}", + "\u{1F08}" => "\u{391}\u{313}", "\u{1F09}" => "\u{391}\u{314}", "\u{1F0A}" => "\u{1F08}\u{300}", "\u{1F0B}" => "\u{1F09}\u{300}", + "\u{1F0C}" => "\u{1F08}\u{301}", "\u{1F0D}" => "\u{1F09}\u{301}", "\u{1F0E}" => "\u{1F08}\u{342}", "\u{1F0F}" => "\u{1F09}\u{342}", + "\u{1F10}" => "\u{3B5}\u{313}", "\u{1F11}" => "\u{3B5}\u{314}", "\u{1F12}" => "\u{1F10}\u{300}", "\u{1F13}" => "\u{1F11}\u{300}", + "\u{1F14}" => "\u{1F10}\u{301}", "\u{1F15}" => "\u{1F11}\u{301}", "\u{1F18}" => "\u{395}\u{313}", "\u{1F19}" => "\u{395}\u{314}", + "\u{1F1A}" => "\u{1F18}\u{300}", "\u{1F1B}" => "\u{1F19}\u{300}", "\u{1F1C}" => "\u{1F18}\u{301}", "\u{1F1D}" => "\u{1F19}\u{301}", + "\u{1F20}" => "\u{3B7}\u{313}", "\u{1F21}" => "\u{3B7}\u{314}", "\u{1F22}" => "\u{1F20}\u{300}", "\u{1F23}" => "\u{1F21}\u{300}", + "\u{1F24}" => "\u{1F20}\u{301}", "\u{1F25}" => "\u{1F21}\u{301}", "\u{1F26}" => "\u{1F20}\u{342}", "\u{1F27}" => "\u{1F21}\u{342}", + "\u{1F28}" => "\u{397}\u{313}", "\u{1F29}" => "\u{397}\u{314}", "\u{1F2A}" => "\u{1F28}\u{300}", "\u{1F2B}" => "\u{1F29}\u{300}", + "\u{1F2C}" => "\u{1F28}\u{301}", "\u{1F2D}" => "\u{1F29}\u{301}", "\u{1F2E}" => "\u{1F28}\u{342}", "\u{1F2F}" => "\u{1F29}\u{342}", + "\u{1F30}" => "\u{3B9}\u{313}", "\u{1F31}" => "\u{3B9}\u{314}", "\u{1F32}" => "\u{1F30}\u{300}", "\u{1F33}" => "\u{1F31}\u{300}", + "\u{1F34}" => "\u{1F30}\u{301}", "\u{1F35}" => "\u{1F31}\u{301}", "\u{1F36}" => "\u{1F30}\u{342}", "\u{1F37}" => "\u{1F31}\u{342}", + "\u{1F38}" => "\u{399}\u{313}", "\u{1F39}" => "\u{399}\u{314}", "\u{1F3A}" => "\u{1F38}\u{300}", "\u{1F3B}" => "\u{1F39}\u{300}", + "\u{1F3C}" => "\u{1F38}\u{301}", "\u{1F3D}" => "\u{1F39}\u{301}", "\u{1F3E}" => "\u{1F38}\u{342}", "\u{1F3F}" => "\u{1F39}\u{342}", + "\u{1F40}" => "\u{3BF}\u{313}", "\u{1F41}" => "\u{3BF}\u{314}", "\u{1F42}" => "\u{1F40}\u{300}", "\u{1F43}" => "\u{1F41}\u{300}", + "\u{1F44}" => "\u{1F40}\u{301}", "\u{1F45}" => "\u{1F41}\u{301}", "\u{1F48}" => "\u{39F}\u{313}", "\u{1F49}" => "\u{39F}\u{314}", + "\u{1F4A}" => "\u{1F48}\u{300}", "\u{1F4B}" => "\u{1F49}\u{300}", "\u{1F4C}" => "\u{1F48}\u{301}", "\u{1F4D}" => "\u{1F49}\u{301}", + "\u{1F50}" => "\u{3C5}\u{313}", "\u{1F51}" => "\u{3C5}\u{314}", "\u{1F52}" => "\u{1F50}\u{300}", "\u{1F53}" => "\u{1F51}\u{300}", + "\u{1F54}" => "\u{1F50}\u{301}", "\u{1F55}" => "\u{1F51}\u{301}", "\u{1F56}" => "\u{1F50}\u{342}", "\u{1F57}" => "\u{1F51}\u{342}", + "\u{1F59}" => "\u{3A5}\u{314}", "\u{1F5B}" => "\u{1F59}\u{300}", "\u{1F5D}" => "\u{1F59}\u{301}", "\u{1F5F}" => "\u{1F59}\u{342}", + "\u{1F60}" => "\u{3C9}\u{313}", "\u{1F61}" => "\u{3C9}\u{314}", "\u{1F62}" => "\u{1F60}\u{300}", "\u{1F63}" => "\u{1F61}\u{300}", + "\u{1F64}" => "\u{1F60}\u{301}", "\u{1F65}" => "\u{1F61}\u{301}", "\u{1F66}" => "\u{1F60}\u{342}", "\u{1F67}" => "\u{1F61}\u{342}", + "\u{1F68}" => "\u{3A9}\u{313}", "\u{1F69}" => "\u{3A9}\u{314}", "\u{1F6A}" => "\u{1F68}\u{300}", "\u{1F6B}" => "\u{1F69}\u{300}", + "\u{1F6C}" => "\u{1F68}\u{301}", "\u{1F6D}" => "\u{1F69}\u{301}", "\u{1F6E}" => "\u{1F68}\u{342}", "\u{1F6F}" => "\u{1F69}\u{342}", + "\u{1F70}" => "\u{3B1}\u{300}", "\u{1F71}" => "\u{3AC}", "\u{1F72}" => "\u{3B5}\u{300}", "\u{1F73}" => "\u{3AD}", + "\u{1F74}" => "\u{3B7}\u{300}", "\u{1F75}" => "\u{3AE}", "\u{1F76}" => "\u{3B9}\u{300}", "\u{1F77}" => "\u{3AF}", + "\u{1F78}" => "\u{3BF}\u{300}", "\u{1F79}" => "\u{3CC}", "\u{1F7A}" => "\u{3C5}\u{300}", "\u{1F7B}" => "\u{3CD}", + "\u{1F7C}" => "\u{3C9}\u{300}", "\u{1F7D}" => "\u{3CE}", "\u{1F80}" => "\u{1F00}\u{345}", "\u{1F81}" => "\u{1F01}\u{345}", + "\u{1F82}" => "\u{1F02}\u{345}", "\u{1F83}" => "\u{1F03}\u{345}", "\u{1F84}" => "\u{1F04}\u{345}", "\u{1F85}" => "\u{1F05}\u{345}", + "\u{1F86}" => "\u{1F06}\u{345}", "\u{1F87}" => "\u{1F07}\u{345}", "\u{1F88}" => "\u{1F08}\u{345}", "\u{1F89}" => "\u{1F09}\u{345}", + "\u{1F8A}" => "\u{1F0A}\u{345}", "\u{1F8B}" => "\u{1F0B}\u{345}", "\u{1F8C}" => "\u{1F0C}\u{345}", "\u{1F8D}" => "\u{1F0D}\u{345}", + "\u{1F8E}" => "\u{1F0E}\u{345}", "\u{1F8F}" => "\u{1F0F}\u{345}", "\u{1F90}" => "\u{1F20}\u{345}", "\u{1F91}" => "\u{1F21}\u{345}", + "\u{1F92}" => "\u{1F22}\u{345}", "\u{1F93}" => "\u{1F23}\u{345}", "\u{1F94}" => "\u{1F24}\u{345}", "\u{1F95}" => "\u{1F25}\u{345}", + "\u{1F96}" => "\u{1F26}\u{345}", "\u{1F97}" => "\u{1F27}\u{345}", "\u{1F98}" => "\u{1F28}\u{345}", "\u{1F99}" => "\u{1F29}\u{345}", + "\u{1F9A}" => "\u{1F2A}\u{345}", "\u{1F9B}" => "\u{1F2B}\u{345}", "\u{1F9C}" => "\u{1F2C}\u{345}", "\u{1F9D}" => "\u{1F2D}\u{345}", + "\u{1F9E}" => "\u{1F2E}\u{345}", "\u{1F9F}" => "\u{1F2F}\u{345}", "\u{1FA0}" => "\u{1F60}\u{345}", "\u{1FA1}" => "\u{1F61}\u{345}", + "\u{1FA2}" => "\u{1F62}\u{345}", "\u{1FA3}" => "\u{1F63}\u{345}", "\u{1FA4}" => "\u{1F64}\u{345}", "\u{1FA5}" => "\u{1F65}\u{345}", + "\u{1FA6}" => "\u{1F66}\u{345}", "\u{1FA7}" => "\u{1F67}\u{345}", "\u{1FA8}" => "\u{1F68}\u{345}", "\u{1FA9}" => "\u{1F69}\u{345}", + "\u{1FAA}" => "\u{1F6A}\u{345}", "\u{1FAB}" => "\u{1F6B}\u{345}", "\u{1FAC}" => "\u{1F6C}\u{345}", "\u{1FAD}" => "\u{1F6D}\u{345}", + "\u{1FAE}" => "\u{1F6E}\u{345}", "\u{1FAF}" => "\u{1F6F}\u{345}", "\u{1FB0}" => "\u{3B1}\u{306}", "\u{1FB1}" => "\u{3B1}\u{304}", + "\u{1FB2}" => "\u{1F70}\u{345}", "\u{1FB3}" => "\u{3B1}\u{345}", "\u{1FB4}" => "\u{3AC}\u{345}", "\u{1FB6}" => "\u{3B1}\u{342}", + "\u{1FB7}" => "\u{1FB6}\u{345}", "\u{1FB8}" => "\u{391}\u{306}", "\u{1FB9}" => "\u{391}\u{304}", "\u{1FBA}" => "\u{391}\u{300}", + "\u{1FBB}" => "\u{386}", "\u{1FBC}" => "\u{391}\u{345}", "\u{1FBE}" => "\u{3B9}", "\u{1FC1}" => "\u{A8}\u{342}", + "\u{1FC2}" => "\u{1F74}\u{345}", "\u{1FC3}" => "\u{3B7}\u{345}", "\u{1FC4}" => "\u{3AE}\u{345}", "\u{1FC6}" => "\u{3B7}\u{342}", + "\u{1FC7}" => "\u{1FC6}\u{345}", "\u{1FC8}" => "\u{395}\u{300}", "\u{1FC9}" => "\u{388}", "\u{1FCA}" => "\u{397}\u{300}", + "\u{1FCB}" => "\u{389}", "\u{1FCC}" => "\u{397}\u{345}", "\u{1FCD}" => "\u{1FBF}\u{300}", "\u{1FCE}" => "\u{1FBF}\u{301}", + "\u{1FCF}" => "\u{1FBF}\u{342}", "\u{1FD0}" => "\u{3B9}\u{306}", "\u{1FD1}" => "\u{3B9}\u{304}", "\u{1FD2}" => "\u{3CA}\u{300}", + "\u{1FD3}" => "\u{390}", "\u{1FD6}" => "\u{3B9}\u{342}", "\u{1FD7}" => "\u{3CA}\u{342}", "\u{1FD8}" => "\u{399}\u{306}", + "\u{1FD9}" => "\u{399}\u{304}", "\u{1FDA}" => "\u{399}\u{300}", "\u{1FDB}" => "\u{38A}", "\u{1FDD}" => "\u{1FFE}\u{300}", + "\u{1FDE}" => "\u{1FFE}\u{301}", "\u{1FDF}" => "\u{1FFE}\u{342}", "\u{1FE0}" => "\u{3C5}\u{306}", "\u{1FE1}" => "\u{3C5}\u{304}", + "\u{1FE2}" => "\u{3CB}\u{300}", "\u{1FE3}" => "\u{3B0}", "\u{1FE4}" => "\u{3C1}\u{313}", "\u{1FE5}" => "\u{3C1}\u{314}", + "\u{1FE6}" => "\u{3C5}\u{342}", "\u{1FE7}" => "\u{3CB}\u{342}", "\u{1FE8}" => "\u{3A5}\u{306}", "\u{1FE9}" => "\u{3A5}\u{304}", + "\u{1FEA}" => "\u{3A5}\u{300}", "\u{1FEB}" => "\u{38E}", "\u{1FEC}" => "\u{3A1}\u{314}", "\u{1FED}" => "\u{A8}\u{300}", + "\u{1FEE}" => "\u{385}", "\u{1FEF}" => "\u{60}", "\u{1FF2}" => "\u{1F7C}\u{345}", "\u{1FF3}" => "\u{3C9}\u{345}", + "\u{1FF4}" => "\u{3CE}\u{345}", "\u{1FF6}" => "\u{3C9}\u{342}", "\u{1FF7}" => "\u{1FF6}\u{345}", "\u{1FF8}" => "\u{39F}\u{300}", + "\u{1FF9}" => "\u{38C}", "\u{1FFA}" => "\u{3A9}\u{300}", "\u{1FFB}" => "\u{38F}", "\u{1FFC}" => "\u{3A9}\u{345}", + "\u{1FFD}" => "\u{B4}", "\u{2000}" => "\u{2002}", "\u{2001}" => "\u{2003}", "\u{2126}" => "\u{3A9}", + "\u{212A}" => "\u{4B}", "\u{212B}" => "\u{C5}", "\u{219A}" => "\u{2190}\u{338}", "\u{219B}" => "\u{2192}\u{338}", + "\u{21AE}" => "\u{2194}\u{338}", "\u{21CD}" => "\u{21D0}\u{338}", "\u{21CE}" => "\u{21D4}\u{338}", "\u{21CF}" => "\u{21D2}\u{338}", + "\u{2204}" => "\u{2203}\u{338}", "\u{2209}" => "\u{2208}\u{338}", "\u{220C}" => "\u{220B}\u{338}", "\u{2224}" => "\u{2223}\u{338}", + "\u{2226}" => "\u{2225}\u{338}", "\u{2241}" => "\u{223C}\u{338}", "\u{2244}" => "\u{2243}\u{338}", "\u{2247}" => "\u{2245}\u{338}", + "\u{2249}" => "\u{2248}\u{338}", "\u{2260}" => "\u{3D}\u{338}", "\u{2262}" => "\u{2261}\u{338}", "\u{226D}" => "\u{224D}\u{338}", + "\u{226E}" => "\u{3C}\u{338}", "\u{226F}" => "\u{3E}\u{338}", "\u{2270}" => "\u{2264}\u{338}", "\u{2271}" => "\u{2265}\u{338}", + "\u{2274}" => "\u{2272}\u{338}", "\u{2275}" => "\u{2273}\u{338}", "\u{2278}" => "\u{2276}\u{338}", "\u{2279}" => "\u{2277}\u{338}", + "\u{2280}" => "\u{227A}\u{338}", "\u{2281}" => "\u{227B}\u{338}", "\u{2284}" => "\u{2282}\u{338}", "\u{2285}" => "\u{2283}\u{338}", + "\u{2288}" => "\u{2286}\u{338}", "\u{2289}" => "\u{2287}\u{338}", "\u{22AC}" => "\u{22A2}\u{338}", "\u{22AD}" => "\u{22A8}\u{338}", + "\u{22AE}" => "\u{22A9}\u{338}", "\u{22AF}" => "\u{22AB}\u{338}", "\u{22E0}" => "\u{227C}\u{338}", "\u{22E1}" => "\u{227D}\u{338}", + "\u{22E2}" => "\u{2291}\u{338}", "\u{22E3}" => "\u{2292}\u{338}", "\u{22EA}" => "\u{22B2}\u{338}", "\u{22EB}" => "\u{22B3}\u{338}", + "\u{22EC}" => "\u{22B4}\u{338}", "\u{22ED}" => "\u{22B5}\u{338}", "\u{2329}" => "\u{3008}", "\u{232A}" => "\u{3009}", + "\u{2ADC}" => "\u{2ADD}\u{338}", "\u{304C}" => "\u{304B}\u{3099}", "\u{304E}" => "\u{304D}\u{3099}", "\u{3050}" => "\u{304F}\u{3099}", + "\u{3052}" => "\u{3051}\u{3099}", "\u{3054}" => "\u{3053}\u{3099}", "\u{3056}" => "\u{3055}\u{3099}", "\u{3058}" => "\u{3057}\u{3099}", + "\u{305A}" => "\u{3059}\u{3099}", "\u{305C}" => "\u{305B}\u{3099}", "\u{305E}" => "\u{305D}\u{3099}", "\u{3060}" => "\u{305F}\u{3099}", + "\u{3062}" => "\u{3061}\u{3099}", "\u{3065}" => "\u{3064}\u{3099}", "\u{3067}" => "\u{3066}\u{3099}", "\u{3069}" => "\u{3068}\u{3099}", + "\u{3070}" => "\u{306F}\u{3099}", "\u{3071}" => "\u{306F}\u{309A}", "\u{3073}" => "\u{3072}\u{3099}", "\u{3074}" => "\u{3072}\u{309A}", + "\u{3076}" => "\u{3075}\u{3099}", "\u{3077}" => "\u{3075}\u{309A}", "\u{3079}" => "\u{3078}\u{3099}", "\u{307A}" => "\u{3078}\u{309A}", + "\u{307C}" => "\u{307B}\u{3099}", "\u{307D}" => "\u{307B}\u{309A}", "\u{3094}" => "\u{3046}\u{3099}", "\u{309E}" => "\u{309D}\u{3099}", + "\u{30AC}" => "\u{30AB}\u{3099}", "\u{30AE}" => "\u{30AD}\u{3099}", "\u{30B0}" => "\u{30AF}\u{3099}", "\u{30B2}" => "\u{30B1}\u{3099}", + "\u{30B4}" => "\u{30B3}\u{3099}", "\u{30B6}" => "\u{30B5}\u{3099}", "\u{30B8}" => "\u{30B7}\u{3099}", "\u{30BA}" => "\u{30B9}\u{3099}", + "\u{30BC}" => "\u{30BB}\u{3099}", "\u{30BE}" => "\u{30BD}\u{3099}", "\u{30C0}" => "\u{30BF}\u{3099}", "\u{30C2}" => "\u{30C1}\u{3099}", + "\u{30C5}" => "\u{30C4}\u{3099}", "\u{30C7}" => "\u{30C6}\u{3099}", "\u{30C9}" => "\u{30C8}\u{3099}", "\u{30D0}" => "\u{30CF}\u{3099}", + "\u{30D1}" => "\u{30CF}\u{309A}", "\u{30D3}" => "\u{30D2}\u{3099}", "\u{30D4}" => "\u{30D2}\u{309A}", "\u{30D6}" => "\u{30D5}\u{3099}", + "\u{30D7}" => "\u{30D5}\u{309A}", "\u{30D9}" => "\u{30D8}\u{3099}", "\u{30DA}" => "\u{30D8}\u{309A}", "\u{30DC}" => "\u{30DB}\u{3099}", + "\u{30DD}" => "\u{30DB}\u{309A}", "\u{30F4}" => "\u{30A6}\u{3099}", "\u{30F7}" => "\u{30EF}\u{3099}", "\u{30F8}" => "\u{30F0}\u{3099}", + "\u{30F9}" => "\u{30F1}\u{3099}", "\u{30FA}" => "\u{30F2}\u{3099}", "\u{30FE}" => "\u{30FD}\u{3099}", "\u{F900}" => "\u{8C48}", + "\u{F901}" => "\u{66F4}", "\u{F902}" => "\u{8ECA}", "\u{F903}" => "\u{8CC8}", "\u{F904}" => "\u{6ED1}", + "\u{F905}" => "\u{4E32}", "\u{F906}" => "\u{53E5}", "\u{F907}" => "\u{9F9C}", "\u{F908}" => "\u{9F9C}", + "\u{F909}" => "\u{5951}", "\u{F90A}" => "\u{91D1}", "\u{F90B}" => "\u{5587}", "\u{F90C}" => "\u{5948}", + "\u{F90D}" => "\u{61F6}", "\u{F90E}" => "\u{7669}", "\u{F90F}" => "\u{7F85}", "\u{F910}" => "\u{863F}", + "\u{F911}" => "\u{87BA}", "\u{F912}" => "\u{88F8}", "\u{F913}" => "\u{908F}", "\u{F914}" => "\u{6A02}", + "\u{F915}" => "\u{6D1B}", "\u{F916}" => "\u{70D9}", "\u{F917}" => "\u{73DE}", "\u{F918}" => "\u{843D}", + "\u{F919}" => "\u{916A}", "\u{F91A}" => "\u{99F1}", "\u{F91B}" => "\u{4E82}", "\u{F91C}" => "\u{5375}", + "\u{F91D}" => "\u{6B04}", "\u{F91E}" => "\u{721B}", "\u{F91F}" => "\u{862D}", "\u{F920}" => "\u{9E1E}", + "\u{F921}" => "\u{5D50}", "\u{F922}" => "\u{6FEB}", "\u{F923}" => "\u{85CD}", "\u{F924}" => "\u{8964}", + "\u{F925}" => "\u{62C9}", "\u{F926}" => "\u{81D8}", "\u{F927}" => "\u{881F}", "\u{F928}" => "\u{5ECA}", + "\u{F929}" => "\u{6717}", "\u{F92A}" => "\u{6D6A}", "\u{F92B}" => "\u{72FC}", "\u{F92C}" => "\u{90CE}", + "\u{F92D}" => "\u{4F86}", "\u{F92E}" => "\u{51B7}", "\u{F92F}" => "\u{52DE}", "\u{F930}" => "\u{64C4}", + "\u{F931}" => "\u{6AD3}", "\u{F932}" => "\u{7210}", "\u{F933}" => "\u{76E7}", "\u{F934}" => "\u{8001}", + "\u{F935}" => "\u{8606}", "\u{F936}" => "\u{865C}", "\u{F937}" => "\u{8DEF}", "\u{F938}" => "\u{9732}", + "\u{F939}" => "\u{9B6F}", "\u{F93A}" => "\u{9DFA}", "\u{F93B}" => "\u{788C}", "\u{F93C}" => "\u{797F}", + "\u{F93D}" => "\u{7DA0}", "\u{F93E}" => "\u{83C9}", "\u{F93F}" => "\u{9304}", "\u{F940}" => "\u{9E7F}", + "\u{F941}" => "\u{8AD6}", "\u{F942}" => "\u{58DF}", "\u{F943}" => "\u{5F04}", "\u{F944}" => "\u{7C60}", + "\u{F945}" => "\u{807E}", "\u{F946}" => "\u{7262}", "\u{F947}" => "\u{78CA}", "\u{F948}" => "\u{8CC2}", + "\u{F949}" => "\u{96F7}", "\u{F94A}" => "\u{58D8}", "\u{F94B}" => "\u{5C62}", "\u{F94C}" => "\u{6A13}", + "\u{F94D}" => "\u{6DDA}", "\u{F94E}" => "\u{6F0F}", "\u{F94F}" => "\u{7D2F}", "\u{F950}" => "\u{7E37}", + "\u{F951}" => "\u{964B}", "\u{F952}" => "\u{52D2}", "\u{F953}" => "\u{808B}", "\u{F954}" => "\u{51DC}", + "\u{F955}" => "\u{51CC}", "\u{F956}" => "\u{7A1C}", "\u{F957}" => "\u{7DBE}", "\u{F958}" => "\u{83F1}", + "\u{F959}" => "\u{9675}", "\u{F95A}" => "\u{8B80}", "\u{F95B}" => "\u{62CF}", "\u{F95C}" => "\u{6A02}", + "\u{F95D}" => "\u{8AFE}", "\u{F95E}" => "\u{4E39}", "\u{F95F}" => "\u{5BE7}", "\u{F960}" => "\u{6012}", + "\u{F961}" => "\u{7387}", "\u{F962}" => "\u{7570}", "\u{F963}" => "\u{5317}", "\u{F964}" => "\u{78FB}", + "\u{F965}" => "\u{4FBF}", "\u{F966}" => "\u{5FA9}", "\u{F967}" => "\u{4E0D}", "\u{F968}" => "\u{6CCC}", + "\u{F969}" => "\u{6578}", "\u{F96A}" => "\u{7D22}", "\u{F96B}" => "\u{53C3}", "\u{F96C}" => "\u{585E}", + "\u{F96D}" => "\u{7701}", "\u{F96E}" => "\u{8449}", "\u{F96F}" => "\u{8AAA}", "\u{F970}" => "\u{6BBA}", + "\u{F971}" => "\u{8FB0}", "\u{F972}" => "\u{6C88}", "\u{F973}" => "\u{62FE}", "\u{F974}" => "\u{82E5}", + "\u{F975}" => "\u{63A0}", "\u{F976}" => "\u{7565}", "\u{F977}" => "\u{4EAE}", "\u{F978}" => "\u{5169}", + "\u{F979}" => "\u{51C9}", "\u{F97A}" => "\u{6881}", "\u{F97B}" => "\u{7CE7}", "\u{F97C}" => "\u{826F}", + "\u{F97D}" => "\u{8AD2}", "\u{F97E}" => "\u{91CF}", "\u{F97F}" => "\u{52F5}", "\u{F980}" => "\u{5442}", + "\u{F981}" => "\u{5973}", "\u{F982}" => "\u{5EEC}", "\u{F983}" => "\u{65C5}", "\u{F984}" => "\u{6FFE}", + "\u{F985}" => "\u{792A}", "\u{F986}" => "\u{95AD}", "\u{F987}" => "\u{9A6A}", "\u{F988}" => "\u{9E97}", + "\u{F989}" => "\u{9ECE}", "\u{F98A}" => "\u{529B}", "\u{F98B}" => "\u{66C6}", "\u{F98C}" => "\u{6B77}", + "\u{F98D}" => "\u{8F62}", "\u{F98E}" => "\u{5E74}", "\u{F98F}" => "\u{6190}", "\u{F990}" => "\u{6200}", + "\u{F991}" => "\u{649A}", "\u{F992}" => "\u{6F23}", "\u{F993}" => "\u{7149}", "\u{F994}" => "\u{7489}", + "\u{F995}" => "\u{79CA}", "\u{F996}" => "\u{7DF4}", "\u{F997}" => "\u{806F}", "\u{F998}" => "\u{8F26}", + "\u{F999}" => "\u{84EE}", "\u{F99A}" => "\u{9023}", "\u{F99B}" => "\u{934A}", "\u{F99C}" => "\u{5217}", + "\u{F99D}" => "\u{52A3}", "\u{F99E}" => "\u{54BD}", "\u{F99F}" => "\u{70C8}", "\u{F9A0}" => "\u{88C2}", + "\u{F9A1}" => "\u{8AAA}", "\u{F9A2}" => "\u{5EC9}", "\u{F9A3}" => "\u{5FF5}", "\u{F9A4}" => "\u{637B}", + "\u{F9A5}" => "\u{6BAE}", "\u{F9A6}" => "\u{7C3E}", "\u{F9A7}" => "\u{7375}", "\u{F9A8}" => "\u{4EE4}", + "\u{F9A9}" => "\u{56F9}", "\u{F9AA}" => "\u{5BE7}", "\u{F9AB}" => "\u{5DBA}", "\u{F9AC}" => "\u{601C}", + "\u{F9AD}" => "\u{73B2}", "\u{F9AE}" => "\u{7469}", "\u{F9AF}" => "\u{7F9A}", "\u{F9B0}" => "\u{8046}", + "\u{F9B1}" => "\u{9234}", "\u{F9B2}" => "\u{96F6}", "\u{F9B3}" => "\u{9748}", "\u{F9B4}" => "\u{9818}", + "\u{F9B5}" => "\u{4F8B}", "\u{F9B6}" => "\u{79AE}", "\u{F9B7}" => "\u{91B4}", "\u{F9B8}" => "\u{96B8}", + "\u{F9B9}" => "\u{60E1}", "\u{F9BA}" => "\u{4E86}", "\u{F9BB}" => "\u{50DA}", "\u{F9BC}" => "\u{5BEE}", + "\u{F9BD}" => "\u{5C3F}", "\u{F9BE}" => "\u{6599}", "\u{F9BF}" => "\u{6A02}", "\u{F9C0}" => "\u{71CE}", + "\u{F9C1}" => "\u{7642}", "\u{F9C2}" => "\u{84FC}", "\u{F9C3}" => "\u{907C}", "\u{F9C4}" => "\u{9F8D}", + "\u{F9C5}" => "\u{6688}", "\u{F9C6}" => "\u{962E}", "\u{F9C7}" => "\u{5289}", "\u{F9C8}" => "\u{677B}", + "\u{F9C9}" => "\u{67F3}", "\u{F9CA}" => "\u{6D41}", "\u{F9CB}" => "\u{6E9C}", "\u{F9CC}" => "\u{7409}", + "\u{F9CD}" => "\u{7559}", "\u{F9CE}" => "\u{786B}", "\u{F9CF}" => "\u{7D10}", "\u{F9D0}" => "\u{985E}", + "\u{F9D1}" => "\u{516D}", "\u{F9D2}" => "\u{622E}", "\u{F9D3}" => "\u{9678}", "\u{F9D4}" => "\u{502B}", + "\u{F9D5}" => "\u{5D19}", "\u{F9D6}" => "\u{6DEA}", "\u{F9D7}" => "\u{8F2A}", "\u{F9D8}" => "\u{5F8B}", + "\u{F9D9}" => "\u{6144}", "\u{F9DA}" => "\u{6817}", "\u{F9DB}" => "\u{7387}", "\u{F9DC}" => "\u{9686}", + "\u{F9DD}" => "\u{5229}", "\u{F9DE}" => "\u{540F}", "\u{F9DF}" => "\u{5C65}", "\u{F9E0}" => "\u{6613}", + "\u{F9E1}" => "\u{674E}", "\u{F9E2}" => "\u{68A8}", "\u{F9E3}" => "\u{6CE5}", "\u{F9E4}" => "\u{7406}", + "\u{F9E5}" => "\u{75E2}", "\u{F9E6}" => "\u{7F79}", "\u{F9E7}" => "\u{88CF}", "\u{F9E8}" => "\u{88E1}", + "\u{F9E9}" => "\u{91CC}", "\u{F9EA}" => "\u{96E2}", "\u{F9EB}" => "\u{533F}", "\u{F9EC}" => "\u{6EBA}", + "\u{F9ED}" => "\u{541D}", "\u{F9EE}" => "\u{71D0}", "\u{F9EF}" => "\u{7498}", "\u{F9F0}" => "\u{85FA}", + "\u{F9F1}" => "\u{96A3}", "\u{F9F2}" => "\u{9C57}", "\u{F9F3}" => "\u{9E9F}", "\u{F9F4}" => "\u{6797}", + "\u{F9F5}" => "\u{6DCB}", "\u{F9F6}" => "\u{81E8}", "\u{F9F7}" => "\u{7ACB}", "\u{F9F8}" => "\u{7B20}", + "\u{F9F9}" => "\u{7C92}", "\u{F9FA}" => "\u{72C0}", "\u{F9FB}" => "\u{7099}", "\u{F9FC}" => "\u{8B58}", + "\u{F9FD}" => "\u{4EC0}", "\u{F9FE}" => "\u{8336}", "\u{F9FF}" => "\u{523A}", "\u{FA00}" => "\u{5207}", + "\u{FA01}" => "\u{5EA6}", "\u{FA02}" => "\u{62D3}", "\u{FA03}" => "\u{7CD6}", "\u{FA04}" => "\u{5B85}", + "\u{FA05}" => "\u{6D1E}", "\u{FA06}" => "\u{66B4}", "\u{FA07}" => "\u{8F3B}", "\u{FA08}" => "\u{884C}", + "\u{FA09}" => "\u{964D}", "\u{FA0A}" => "\u{898B}", "\u{FA0B}" => "\u{5ED3}", "\u{FA0C}" => "\u{5140}", + "\u{FA0D}" => "\u{55C0}", "\u{FA10}" => "\u{585A}", "\u{FA12}" => "\u{6674}", "\u{FA15}" => "\u{51DE}", + "\u{FA16}" => "\u{732A}", "\u{FA17}" => "\u{76CA}", "\u{FA18}" => "\u{793C}", "\u{FA19}" => "\u{795E}", + "\u{FA1A}" => "\u{7965}", "\u{FA1B}" => "\u{798F}", "\u{FA1C}" => "\u{9756}", "\u{FA1D}" => "\u{7CBE}", + "\u{FA1E}" => "\u{7FBD}", "\u{FA20}" => "\u{8612}", "\u{FA22}" => "\u{8AF8}", "\u{FA25}" => "\u{9038}", + "\u{FA26}" => "\u{90FD}", "\u{FA2A}" => "\u{98EF}", "\u{FA2B}" => "\u{98FC}", "\u{FA2C}" => "\u{9928}", + "\u{FA2D}" => "\u{9DB4}", "\u{FA2E}" => "\u{90DE}", "\u{FA2F}" => "\u{96B7}", "\u{FA30}" => "\u{4FAE}", + "\u{FA31}" => "\u{50E7}", "\u{FA32}" => "\u{514D}", "\u{FA33}" => "\u{52C9}", "\u{FA34}" => "\u{52E4}", + "\u{FA35}" => "\u{5351}", "\u{FA36}" => "\u{559D}", "\u{FA37}" => "\u{5606}", "\u{FA38}" => "\u{5668}", + "\u{FA39}" => "\u{5840}", "\u{FA3A}" => "\u{58A8}", "\u{FA3B}" => "\u{5C64}", "\u{FA3C}" => "\u{5C6E}", + "\u{FA3D}" => "\u{6094}", "\u{FA3E}" => "\u{6168}", "\u{FA3F}" => "\u{618E}", "\u{FA40}" => "\u{61F2}", + "\u{FA41}" => "\u{654F}", "\u{FA42}" => "\u{65E2}", "\u{FA43}" => "\u{6691}", "\u{FA44}" => "\u{6885}", + "\u{FA45}" => "\u{6D77}", "\u{FA46}" => "\u{6E1A}", "\u{FA47}" => "\u{6F22}", "\u{FA48}" => "\u{716E}", + "\u{FA49}" => "\u{722B}", "\u{FA4A}" => "\u{7422}", "\u{FA4B}" => "\u{7891}", "\u{FA4C}" => "\u{793E}", + "\u{FA4D}" => "\u{7949}", "\u{FA4E}" => "\u{7948}", "\u{FA4F}" => "\u{7950}", "\u{FA50}" => "\u{7956}", + "\u{FA51}" => "\u{795D}", "\u{FA52}" => "\u{798D}", "\u{FA53}" => "\u{798E}", "\u{FA54}" => "\u{7A40}", + "\u{FA55}" => "\u{7A81}", "\u{FA56}" => "\u{7BC0}", "\u{FA57}" => "\u{7DF4}", "\u{FA58}" => "\u{7E09}", + "\u{FA59}" => "\u{7E41}", "\u{FA5A}" => "\u{7F72}", "\u{FA5B}" => "\u{8005}", "\u{FA5C}" => "\u{81ED}", + "\u{FA5D}" => "\u{8279}", "\u{FA5E}" => "\u{8279}", "\u{FA5F}" => "\u{8457}", "\u{FA60}" => "\u{8910}", + "\u{FA61}" => "\u{8996}", "\u{FA62}" => "\u{8B01}", "\u{FA63}" => "\u{8B39}", "\u{FA64}" => "\u{8CD3}", + "\u{FA65}" => "\u{8D08}", "\u{FA66}" => "\u{8FB6}", "\u{FA67}" => "\u{9038}", "\u{FA68}" => "\u{96E3}", + "\u{FA69}" => "\u{97FF}", "\u{FA6A}" => "\u{983B}", "\u{FA6B}" => "\u{6075}", "\u{FA6C}" => "\u{242EE}", + "\u{FA6D}" => "\u{8218}", "\u{FA70}" => "\u{4E26}", "\u{FA71}" => "\u{51B5}", "\u{FA72}" => "\u{5168}", + "\u{FA73}" => "\u{4F80}", "\u{FA74}" => "\u{5145}", "\u{FA75}" => "\u{5180}", "\u{FA76}" => "\u{52C7}", + "\u{FA77}" => "\u{52FA}", "\u{FA78}" => "\u{559D}", "\u{FA79}" => "\u{5555}", "\u{FA7A}" => "\u{5599}", + "\u{FA7B}" => "\u{55E2}", "\u{FA7C}" => "\u{585A}", "\u{FA7D}" => "\u{58B3}", "\u{FA7E}" => "\u{5944}", + "\u{FA7F}" => "\u{5954}", "\u{FA80}" => "\u{5A62}", "\u{FA81}" => "\u{5B28}", "\u{FA82}" => "\u{5ED2}", + "\u{FA83}" => "\u{5ED9}", "\u{FA84}" => "\u{5F69}", "\u{FA85}" => "\u{5FAD}", "\u{FA86}" => "\u{60D8}", + "\u{FA87}" => "\u{614E}", "\u{FA88}" => "\u{6108}", "\u{FA89}" => "\u{618E}", "\u{FA8A}" => "\u{6160}", + "\u{FA8B}" => "\u{61F2}", "\u{FA8C}" => "\u{6234}", "\u{FA8D}" => "\u{63C4}", "\u{FA8E}" => "\u{641C}", + "\u{FA8F}" => "\u{6452}", "\u{FA90}" => "\u{6556}", "\u{FA91}" => "\u{6674}", "\u{FA92}" => "\u{6717}", + "\u{FA93}" => "\u{671B}", "\u{FA94}" => "\u{6756}", "\u{FA95}" => "\u{6B79}", "\u{FA96}" => "\u{6BBA}", + "\u{FA97}" => "\u{6D41}", "\u{FA98}" => "\u{6EDB}", "\u{FA99}" => "\u{6ECB}", "\u{FA9A}" => "\u{6F22}", + "\u{FA9B}" => "\u{701E}", "\u{FA9C}" => "\u{716E}", "\u{FA9D}" => "\u{77A7}", "\u{FA9E}" => "\u{7235}", + "\u{FA9F}" => "\u{72AF}", "\u{FAA0}" => "\u{732A}", "\u{FAA1}" => "\u{7471}", "\u{FAA2}" => "\u{7506}", + "\u{FAA3}" => "\u{753B}", "\u{FAA4}" => "\u{761D}", "\u{FAA5}" => "\u{761F}", "\u{FAA6}" => "\u{76CA}", + "\u{FAA7}" => "\u{76DB}", "\u{FAA8}" => "\u{76F4}", "\u{FAA9}" => "\u{774A}", "\u{FAAA}" => "\u{7740}", + "\u{FAAB}" => "\u{78CC}", "\u{FAAC}" => "\u{7AB1}", "\u{FAAD}" => "\u{7BC0}", "\u{FAAE}" => "\u{7C7B}", + "\u{FAAF}" => "\u{7D5B}", "\u{FAB0}" => "\u{7DF4}", "\u{FAB1}" => "\u{7F3E}", "\u{FAB2}" => "\u{8005}", + "\u{FAB3}" => "\u{8352}", "\u{FAB4}" => "\u{83EF}", "\u{FAB5}" => "\u{8779}", "\u{FAB6}" => "\u{8941}", + "\u{FAB7}" => "\u{8986}", "\u{FAB8}" => "\u{8996}", "\u{FAB9}" => "\u{8ABF}", "\u{FABA}" => "\u{8AF8}", + "\u{FABB}" => "\u{8ACB}", "\u{FABC}" => "\u{8B01}", "\u{FABD}" => "\u{8AFE}", "\u{FABE}" => "\u{8AED}", + "\u{FABF}" => "\u{8B39}", "\u{FAC0}" => "\u{8B8A}", "\u{FAC1}" => "\u{8D08}", "\u{FAC2}" => "\u{8F38}", + "\u{FAC3}" => "\u{9072}", "\u{FAC4}" => "\u{9199}", "\u{FAC5}" => "\u{9276}", "\u{FAC6}" => "\u{967C}", + "\u{FAC7}" => "\u{96E3}", "\u{FAC8}" => "\u{9756}", "\u{FAC9}" => "\u{97DB}", "\u{FACA}" => "\u{97FF}", + "\u{FACB}" => "\u{980B}", "\u{FACC}" => "\u{983B}", "\u{FACD}" => "\u{9B12}", "\u{FACE}" => "\u{9F9C}", + "\u{FACF}" => "\u{2284A}", "\u{FAD0}" => "\u{22844}", "\u{FAD1}" => "\u{233D5}", "\u{FAD2}" => "\u{3B9D}", + "\u{FAD3}" => "\u{4018}", "\u{FAD4}" => "\u{4039}", "\u{FAD5}" => "\u{25249}", "\u{FAD6}" => "\u{25CD0}", + "\u{FAD7}" => "\u{27ED3}", "\u{FAD8}" => "\u{9F43}", "\u{FAD9}" => "\u{9F8E}", "\u{FB1D}" => "\u{5D9}\u{5B4}", + "\u{FB1F}" => "\u{5F2}\u{5B7}", "\u{FB2A}" => "\u{5E9}\u{5C1}", "\u{FB2B}" => "\u{5E9}\u{5C2}", "\u{FB2C}" => "\u{FB49}\u{5C1}", + "\u{FB2D}" => "\u{FB49}\u{5C2}", "\u{FB2E}" => "\u{5D0}\u{5B7}", "\u{FB2F}" => "\u{5D0}\u{5B8}", "\u{FB30}" => "\u{5D0}\u{5BC}", + "\u{FB31}" => "\u{5D1}\u{5BC}", "\u{FB32}" => "\u{5D2}\u{5BC}", "\u{FB33}" => "\u{5D3}\u{5BC}", "\u{FB34}" => "\u{5D4}\u{5BC}", + "\u{FB35}" => "\u{5D5}\u{5BC}", "\u{FB36}" => "\u{5D6}\u{5BC}", "\u{FB38}" => "\u{5D8}\u{5BC}", "\u{FB39}" => "\u{5D9}\u{5BC}", + "\u{FB3A}" => "\u{5DA}\u{5BC}", "\u{FB3B}" => "\u{5DB}\u{5BC}", "\u{FB3C}" => "\u{5DC}\u{5BC}", "\u{FB3E}" => "\u{5DE}\u{5BC}", + "\u{FB40}" => "\u{5E0}\u{5BC}", "\u{FB41}" => "\u{5E1}\u{5BC}", "\u{FB43}" => "\u{5E3}\u{5BC}", "\u{FB44}" => "\u{5E4}\u{5BC}", + "\u{FB46}" => "\u{5E6}\u{5BC}", "\u{FB47}" => "\u{5E7}\u{5BC}", "\u{FB48}" => "\u{5E8}\u{5BC}", "\u{FB49}" => "\u{5E9}\u{5BC}", + "\u{FB4A}" => "\u{5EA}\u{5BC}", "\u{FB4B}" => "\u{5D5}\u{5B9}", "\u{FB4C}" => "\u{5D1}\u{5BF}", "\u{FB4D}" => "\u{5DB}\u{5BF}", + "\u{FB4E}" => "\u{5E4}\u{5BF}", "\u{105C9}" => "\u{105D2}\u{307}", "\u{105E4}" => "\u{105DA}\u{307}", "\u{1109A}" => "\u{11099}\u{110BA}", + "\u{1109C}" => "\u{1109B}\u{110BA}", "\u{110AB}" => "\u{110A5}\u{110BA}", "\u{1112E}" => "\u{11131}\u{11127}", "\u{1112F}" => "\u{11132}\u{11127}", + "\u{1134B}" => "\u{11347}\u{1133E}", "\u{1134C}" => "\u{11347}\u{11357}", "\u{11383}" => "\u{11382}\u{113C9}", "\u{11385}" => "\u{11384}\u{113BB}", + "\u{1138E}" => "\u{1138B}\u{113C2}", "\u{11391}" => "\u{11390}\u{113C9}", "\u{113C5}" => "\u{113C2}\u{113C2}", "\u{113C7}" => "\u{113C2}\u{113B8}", + "\u{113C8}" => "\u{113C2}\u{113C9}", "\u{114BB}" => "\u{114B9}\u{114BA}", "\u{114BC}" => "\u{114B9}\u{114B0}", "\u{114BE}" => "\u{114B9}\u{114BD}", + "\u{115BA}" => "\u{115B8}\u{115AF}", "\u{115BB}" => "\u{115B9}\u{115AF}", "\u{11938}" => "\u{11935}\u{11930}", "\u{16121}" => "\u{1611E}\u{1611E}", + "\u{16122}" => "\u{1611E}\u{16129}", "\u{16123}" => "\u{1611E}\u{1611F}", "\u{16124}" => "\u{16129}\u{1611F}", "\u{16125}" => "\u{1611E}\u{16120}", + "\u{16126}" => "\u{16121}\u{1611F}", "\u{16127}" => "\u{16122}\u{1611F}", "\u{16128}" => "\u{16121}\u{16120}", "\u{16D68}" => "\u{16D67}\u{16D67}", + "\u{16D69}" => "\u{16D63}\u{16D67}", "\u{16D6A}" => "\u{16D69}\u{16D67}", "\u{1D15E}" => "\u{1D157}\u{1D165}", "\u{1D15F}" => "\u{1D158}\u{1D165}", + "\u{1D160}" => "\u{1D15F}\u{1D16E}", "\u{1D161}" => "\u{1D15F}\u{1D16F}", "\u{1D162}" => "\u{1D15F}\u{1D170}", "\u{1D163}" => "\u{1D15F}\u{1D171}", + "\u{1D164}" => "\u{1D15F}\u{1D172}", "\u{1D1BB}" => "\u{1D1B9}\u{1D165}", "\u{1D1BC}" => "\u{1D1BA}\u{1D165}", "\u{1D1BD}" => "\u{1D1BB}\u{1D16E}", + "\u{1D1BE}" => "\u{1D1BC}\u{1D16E}", "\u{1D1BF}" => "\u{1D1BB}\u{1D16F}", "\u{1D1C0}" => "\u{1D1BC}\u{1D16F}", "\u{2F800}" => "\u{4E3D}", + "\u{2F801}" => "\u{4E38}", "\u{2F802}" => "\u{4E41}", "\u{2F803}" => "\u{20122}", "\u{2F804}" => "\u{4F60}", + "\u{2F805}" => "\u{4FAE}", "\u{2F806}" => "\u{4FBB}", "\u{2F807}" => "\u{5002}", "\u{2F808}" => "\u{507A}", + "\u{2F809}" => "\u{5099}", "\u{2F80A}" => "\u{50E7}", "\u{2F80B}" => "\u{50CF}", "\u{2F80C}" => "\u{349E}", + "\u{2F80D}" => "\u{2063A}", "\u{2F80E}" => "\u{514D}", "\u{2F80F}" => "\u{5154}", "\u{2F810}" => "\u{5164}", + "\u{2F811}" => "\u{5177}", "\u{2F812}" => "\u{2051C}", "\u{2F813}" => "\u{34B9}", "\u{2F814}" => "\u{5167}", + "\u{2F815}" => "\u{518D}", "\u{2F816}" => "\u{2054B}", "\u{2F817}" => "\u{5197}", "\u{2F818}" => "\u{51A4}", + "\u{2F819}" => "\u{4ECC}", "\u{2F81A}" => "\u{51AC}", "\u{2F81B}" => "\u{51B5}", "\u{2F81C}" => "\u{291DF}", + "\u{2F81D}" => "\u{51F5}", "\u{2F81E}" => "\u{5203}", "\u{2F81F}" => "\u{34DF}", "\u{2F820}" => "\u{523B}", + "\u{2F821}" => "\u{5246}", "\u{2F822}" => "\u{5272}", "\u{2F823}" => "\u{5277}", "\u{2F824}" => "\u{3515}", + "\u{2F825}" => "\u{52C7}", "\u{2F826}" => "\u{52C9}", "\u{2F827}" => "\u{52E4}", "\u{2F828}" => "\u{52FA}", + "\u{2F829}" => "\u{5305}", "\u{2F82A}" => "\u{5306}", "\u{2F82B}" => "\u{5317}", "\u{2F82C}" => "\u{5349}", + "\u{2F82D}" => "\u{5351}", "\u{2F82E}" => "\u{535A}", "\u{2F82F}" => "\u{5373}", "\u{2F830}" => "\u{537D}", + "\u{2F831}" => "\u{537F}", "\u{2F832}" => "\u{537F}", "\u{2F833}" => "\u{537F}", "\u{2F834}" => "\u{20A2C}", + "\u{2F835}" => "\u{7070}", "\u{2F836}" => "\u{53CA}", "\u{2F837}" => "\u{53DF}", "\u{2F838}" => "\u{20B63}", + "\u{2F839}" => "\u{53EB}", "\u{2F83A}" => "\u{53F1}", "\u{2F83B}" => "\u{5406}", "\u{2F83C}" => "\u{549E}", + "\u{2F83D}" => "\u{5438}", "\u{2F83E}" => "\u{5448}", "\u{2F83F}" => "\u{5468}", "\u{2F840}" => "\u{54A2}", + "\u{2F841}" => "\u{54F6}", "\u{2F842}" => "\u{5510}", "\u{2F843}" => "\u{5553}", "\u{2F844}" => "\u{5563}", + "\u{2F845}" => "\u{5584}", "\u{2F846}" => "\u{5584}", "\u{2F847}" => "\u{5599}", "\u{2F848}" => "\u{55AB}", + "\u{2F849}" => "\u{55B3}", "\u{2F84A}" => "\u{55C2}", "\u{2F84B}" => "\u{5716}", "\u{2F84C}" => "\u{5606}", + "\u{2F84D}" => "\u{5717}", "\u{2F84E}" => "\u{5651}", "\u{2F84F}" => "\u{5674}", "\u{2F850}" => "\u{5207}", + "\u{2F851}" => "\u{58EE}", "\u{2F852}" => "\u{57CE}", "\u{2F853}" => "\u{57F4}", "\u{2F854}" => "\u{580D}", + "\u{2F855}" => "\u{578B}", "\u{2F856}" => "\u{5832}", "\u{2F857}" => "\u{5831}", "\u{2F858}" => "\u{58AC}", + "\u{2F859}" => "\u{214E4}", "\u{2F85A}" => "\u{58F2}", "\u{2F85B}" => "\u{58F7}", "\u{2F85C}" => "\u{5906}", + "\u{2F85D}" => "\u{591A}", "\u{2F85E}" => "\u{5922}", "\u{2F85F}" => "\u{5962}", "\u{2F860}" => "\u{216A8}", + "\u{2F861}" => "\u{216EA}", "\u{2F862}" => "\u{59EC}", "\u{2F863}" => "\u{5A1B}", "\u{2F864}" => "\u{5A27}", + "\u{2F865}" => "\u{59D8}", "\u{2F866}" => "\u{5A66}", "\u{2F867}" => "\u{36EE}", "\u{2F868}" => "\u{36FC}", + "\u{2F869}" => "\u{5B08}", "\u{2F86A}" => "\u{5B3E}", "\u{2F86B}" => "\u{5B3E}", "\u{2F86C}" => "\u{219C8}", + "\u{2F86D}" => "\u{5BC3}", "\u{2F86E}" => "\u{5BD8}", "\u{2F86F}" => "\u{5BE7}", "\u{2F870}" => "\u{5BF3}", + "\u{2F871}" => "\u{21B18}", "\u{2F872}" => "\u{5BFF}", "\u{2F873}" => "\u{5C06}", "\u{2F874}" => "\u{5F53}", + "\u{2F875}" => "\u{5C22}", "\u{2F876}" => "\u{3781}", "\u{2F877}" => "\u{5C60}", "\u{2F878}" => "\u{5C6E}", + "\u{2F879}" => "\u{5CC0}", "\u{2F87A}" => "\u{5C8D}", "\u{2F87B}" => "\u{21DE4}", "\u{2F87C}" => "\u{5D43}", + "\u{2F87D}" => "\u{21DE6}", "\u{2F87E}" => "\u{5D6E}", "\u{2F87F}" => "\u{5D6B}", "\u{2F880}" => "\u{5D7C}", + "\u{2F881}" => "\u{5DE1}", "\u{2F882}" => "\u{5DE2}", "\u{2F883}" => "\u{382F}", "\u{2F884}" => "\u{5DFD}", + "\u{2F885}" => "\u{5E28}", "\u{2F886}" => "\u{5E3D}", "\u{2F887}" => "\u{5E69}", "\u{2F888}" => "\u{3862}", + "\u{2F889}" => "\u{22183}", "\u{2F88A}" => "\u{387C}", "\u{2F88B}" => "\u{5EB0}", "\u{2F88C}" => "\u{5EB3}", + "\u{2F88D}" => "\u{5EB6}", "\u{2F88E}" => "\u{5ECA}", "\u{2F88F}" => "\u{2A392}", "\u{2F890}" => "\u{5EFE}", + "\u{2F891}" => "\u{22331}", "\u{2F892}" => "\u{22331}", "\u{2F893}" => "\u{8201}", "\u{2F894}" => "\u{5F22}", + "\u{2F895}" => "\u{5F22}", "\u{2F896}" => "\u{38C7}", "\u{2F897}" => "\u{232B8}", "\u{2F898}" => "\u{261DA}", + "\u{2F899}" => "\u{5F62}", "\u{2F89A}" => "\u{5F6B}", "\u{2F89B}" => "\u{38E3}", "\u{2F89C}" => "\u{5F9A}", + "\u{2F89D}" => "\u{5FCD}", "\u{2F89E}" => "\u{5FD7}", "\u{2F89F}" => "\u{5FF9}", "\u{2F8A0}" => "\u{6081}", + "\u{2F8A1}" => "\u{393A}", "\u{2F8A2}" => "\u{391C}", "\u{2F8A3}" => "\u{6094}", "\u{2F8A4}" => "\u{226D4}", + "\u{2F8A5}" => "\u{60C7}", "\u{2F8A6}" => "\u{6148}", "\u{2F8A7}" => "\u{614C}", "\u{2F8A8}" => "\u{614E}", + "\u{2F8A9}" => "\u{614C}", "\u{2F8AA}" => "\u{617A}", "\u{2F8AB}" => "\u{618E}", "\u{2F8AC}" => "\u{61B2}", + "\u{2F8AD}" => "\u{61A4}", "\u{2F8AE}" => "\u{61AF}", "\u{2F8AF}" => "\u{61DE}", "\u{2F8B0}" => "\u{61F2}", + "\u{2F8B1}" => "\u{61F6}", "\u{2F8B2}" => "\u{6210}", "\u{2F8B3}" => "\u{621B}", "\u{2F8B4}" => "\u{625D}", + "\u{2F8B5}" => "\u{62B1}", "\u{2F8B6}" => "\u{62D4}", "\u{2F8B7}" => "\u{6350}", "\u{2F8B8}" => "\u{22B0C}", + "\u{2F8B9}" => "\u{633D}", "\u{2F8BA}" => "\u{62FC}", "\u{2F8BB}" => "\u{6368}", "\u{2F8BC}" => "\u{6383}", + "\u{2F8BD}" => "\u{63E4}", "\u{2F8BE}" => "\u{22BF1}", "\u{2F8BF}" => "\u{6422}", "\u{2F8C0}" => "\u{63C5}", + "\u{2F8C1}" => "\u{63A9}", "\u{2F8C2}" => "\u{3A2E}", "\u{2F8C3}" => "\u{6469}", "\u{2F8C4}" => "\u{647E}", + "\u{2F8C5}" => "\u{649D}", "\u{2F8C6}" => "\u{6477}", "\u{2F8C7}" => "\u{3A6C}", "\u{2F8C8}" => "\u{654F}", + "\u{2F8C9}" => "\u{656C}", "\u{2F8CA}" => "\u{2300A}", "\u{2F8CB}" => "\u{65E3}", "\u{2F8CC}" => "\u{66F8}", + "\u{2F8CD}" => "\u{6649}", "\u{2F8CE}" => "\u{3B19}", "\u{2F8CF}" => "\u{6691}", "\u{2F8D0}" => "\u{3B08}", + "\u{2F8D1}" => "\u{3AE4}", "\u{2F8D2}" => "\u{5192}", "\u{2F8D3}" => "\u{5195}", "\u{2F8D4}" => "\u{6700}", + "\u{2F8D5}" => "\u{669C}", "\u{2F8D6}" => "\u{80AD}", "\u{2F8D7}" => "\u{43D9}", "\u{2F8D8}" => "\u{6717}", + "\u{2F8D9}" => "\u{671B}", "\u{2F8DA}" => "\u{6721}", "\u{2F8DB}" => "\u{675E}", "\u{2F8DC}" => "\u{6753}", + "\u{2F8DD}" => "\u{233C3}", "\u{2F8DE}" => "\u{3B49}", "\u{2F8DF}" => "\u{67FA}", "\u{2F8E0}" => "\u{6785}", + "\u{2F8E1}" => "\u{6852}", "\u{2F8E2}" => "\u{6885}", "\u{2F8E3}" => "\u{2346D}", "\u{2F8E4}" => "\u{688E}", + "\u{2F8E5}" => "\u{681F}", "\u{2F8E6}" => "\u{6914}", "\u{2F8E7}" => "\u{3B9D}", "\u{2F8E8}" => "\u{6942}", + "\u{2F8E9}" => "\u{69A3}", "\u{2F8EA}" => "\u{69EA}", "\u{2F8EB}" => "\u{6AA8}", "\u{2F8EC}" => "\u{236A3}", + "\u{2F8ED}" => "\u{6ADB}", "\u{2F8EE}" => "\u{3C18}", "\u{2F8EF}" => "\u{6B21}", "\u{2F8F0}" => "\u{238A7}", + "\u{2F8F1}" => "\u{6B54}", "\u{2F8F2}" => "\u{3C4E}", "\u{2F8F3}" => "\u{6B72}", "\u{2F8F4}" => "\u{6B9F}", + "\u{2F8F5}" => "\u{6BBA}", "\u{2F8F6}" => "\u{6BBB}", "\u{2F8F7}" => "\u{23A8D}", "\u{2F8F8}" => "\u{21D0B}", + "\u{2F8F9}" => "\u{23AFA}", "\u{2F8FA}" => "\u{6C4E}", "\u{2F8FB}" => "\u{23CBC}", "\u{2F8FC}" => "\u{6CBF}", + "\u{2F8FD}" => "\u{6CCD}", "\u{2F8FE}" => "\u{6C67}", "\u{2F8FF}" => "\u{6D16}", "\u{2F900}" => "\u{6D3E}", + "\u{2F901}" => "\u{6D77}", "\u{2F902}" => "\u{6D41}", "\u{2F903}" => "\u{6D69}", "\u{2F904}" => "\u{6D78}", + "\u{2F905}" => "\u{6D85}", "\u{2F906}" => "\u{23D1E}", "\u{2F907}" => "\u{6D34}", "\u{2F908}" => "\u{6E2F}", + "\u{2F909}" => "\u{6E6E}", "\u{2F90A}" => "\u{3D33}", "\u{2F90B}" => "\u{6ECB}", "\u{2F90C}" => "\u{6EC7}", + "\u{2F90D}" => "\u{23ED1}", "\u{2F90E}" => "\u{6DF9}", "\u{2F90F}" => "\u{6F6E}", "\u{2F910}" => "\u{23F5E}", + "\u{2F911}" => "\u{23F8E}", "\u{2F912}" => "\u{6FC6}", "\u{2F913}" => "\u{7039}", "\u{2F914}" => "\u{701E}", + "\u{2F915}" => "\u{701B}", "\u{2F916}" => "\u{3D96}", "\u{2F917}" => "\u{704A}", "\u{2F918}" => "\u{707D}", + "\u{2F919}" => "\u{7077}", "\u{2F91A}" => "\u{70AD}", "\u{2F91B}" => "\u{20525}", "\u{2F91C}" => "\u{7145}", + "\u{2F91D}" => "\u{24263}", "\u{2F91E}" => "\u{719C}", "\u{2F91F}" => "\u{243AB}", "\u{2F920}" => "\u{7228}", + "\u{2F921}" => "\u{7235}", "\u{2F922}" => "\u{7250}", "\u{2F923}" => "\u{24608}", "\u{2F924}" => "\u{7280}", + "\u{2F925}" => "\u{7295}", "\u{2F926}" => "\u{24735}", "\u{2F927}" => "\u{24814}", "\u{2F928}" => "\u{737A}", + "\u{2F929}" => "\u{738B}", "\u{2F92A}" => "\u{3EAC}", "\u{2F92B}" => "\u{73A5}", "\u{2F92C}" => "\u{3EB8}", + "\u{2F92D}" => "\u{3EB8}", "\u{2F92E}" => "\u{7447}", "\u{2F92F}" => "\u{745C}", "\u{2F930}" => "\u{7471}", + "\u{2F931}" => "\u{7485}", "\u{2F932}" => "\u{74CA}", "\u{2F933}" => "\u{3F1B}", "\u{2F934}" => "\u{7524}", + "\u{2F935}" => "\u{24C36}", "\u{2F936}" => "\u{753E}", "\u{2F937}" => "\u{24C92}", "\u{2F938}" => "\u{7570}", + "\u{2F939}" => "\u{2219F}", "\u{2F93A}" => "\u{7610}", "\u{2F93B}" => "\u{24FA1}", "\u{2F93C}" => "\u{24FB8}", + "\u{2F93D}" => "\u{25044}", "\u{2F93E}" => "\u{3FFC}", "\u{2F93F}" => "\u{4008}", "\u{2F940}" => "\u{76F4}", + "\u{2F941}" => "\u{250F3}", "\u{2F942}" => "\u{250F2}", "\u{2F943}" => "\u{25119}", "\u{2F944}" => "\u{25133}", + "\u{2F945}" => "\u{771E}", "\u{2F946}" => "\u{771F}", "\u{2F947}" => "\u{771F}", "\u{2F948}" => "\u{774A}", + "\u{2F949}" => "\u{4039}", "\u{2F94A}" => "\u{778B}", "\u{2F94B}" => "\u{4046}", "\u{2F94C}" => "\u{4096}", + "\u{2F94D}" => "\u{2541D}", "\u{2F94E}" => "\u{784E}", "\u{2F94F}" => "\u{788C}", "\u{2F950}" => "\u{78CC}", + "\u{2F951}" => "\u{40E3}", "\u{2F952}" => "\u{25626}", "\u{2F953}" => "\u{7956}", "\u{2F954}" => "\u{2569A}", + "\u{2F955}" => "\u{256C5}", "\u{2F956}" => "\u{798F}", "\u{2F957}" => "\u{79EB}", "\u{2F958}" => "\u{412F}", + "\u{2F959}" => "\u{7A40}", "\u{2F95A}" => "\u{7A4A}", "\u{2F95B}" => "\u{7A4F}", "\u{2F95C}" => "\u{2597C}", + "\u{2F95D}" => "\u{25AA7}", "\u{2F95E}" => "\u{25AA7}", "\u{2F95F}" => "\u{7AEE}", "\u{2F960}" => "\u{4202}", + "\u{2F961}" => "\u{25BAB}", "\u{2F962}" => "\u{7BC6}", "\u{2F963}" => "\u{7BC9}", "\u{2F964}" => "\u{4227}", + "\u{2F965}" => "\u{25C80}", "\u{2F966}" => "\u{7CD2}", "\u{2F967}" => "\u{42A0}", "\u{2F968}" => "\u{7CE8}", + "\u{2F969}" => "\u{7CE3}", "\u{2F96A}" => "\u{7D00}", "\u{2F96B}" => "\u{25F86}", "\u{2F96C}" => "\u{7D63}", + "\u{2F96D}" => "\u{4301}", "\u{2F96E}" => "\u{7DC7}", "\u{2F96F}" => "\u{7E02}", "\u{2F970}" => "\u{7E45}", + "\u{2F971}" => "\u{4334}", "\u{2F972}" => "\u{26228}", "\u{2F973}" => "\u{26247}", "\u{2F974}" => "\u{4359}", + "\u{2F975}" => "\u{262D9}", "\u{2F976}" => "\u{7F7A}", "\u{2F977}" => "\u{2633E}", "\u{2F978}" => "\u{7F95}", + "\u{2F979}" => "\u{7FFA}", "\u{2F97A}" => "\u{8005}", "\u{2F97B}" => "\u{264DA}", "\u{2F97C}" => "\u{26523}", + "\u{2F97D}" => "\u{8060}", "\u{2F97E}" => "\u{265A8}", "\u{2F97F}" => "\u{8070}", "\u{2F980}" => "\u{2335F}", + "\u{2F981}" => "\u{43D5}", "\u{2F982}" => "\u{80B2}", "\u{2F983}" => "\u{8103}", "\u{2F984}" => "\u{440B}", + "\u{2F985}" => "\u{813E}", "\u{2F986}" => "\u{5AB5}", "\u{2F987}" => "\u{267A7}", "\u{2F988}" => "\u{267B5}", + "\u{2F989}" => "\u{23393}", "\u{2F98A}" => "\u{2339C}", "\u{2F98B}" => "\u{8201}", "\u{2F98C}" => "\u{8204}", + "\u{2F98D}" => "\u{8F9E}", "\u{2F98E}" => "\u{446B}", "\u{2F98F}" => "\u{8291}", "\u{2F990}" => "\u{828B}", + "\u{2F991}" => "\u{829D}", "\u{2F992}" => "\u{52B3}", "\u{2F993}" => "\u{82B1}", "\u{2F994}" => "\u{82B3}", + "\u{2F995}" => "\u{82BD}", "\u{2F996}" => "\u{82E6}", "\u{2F997}" => "\u{26B3C}", "\u{2F998}" => "\u{82E5}", + "\u{2F999}" => "\u{831D}", "\u{2F99A}" => "\u{8363}", "\u{2F99B}" => "\u{83AD}", "\u{2F99C}" => "\u{8323}", + "\u{2F99D}" => "\u{83BD}", "\u{2F99E}" => "\u{83E7}", "\u{2F99F}" => "\u{8457}", "\u{2F9A0}" => "\u{8353}", + "\u{2F9A1}" => "\u{83CA}", "\u{2F9A2}" => "\u{83CC}", "\u{2F9A3}" => "\u{83DC}", "\u{2F9A4}" => "\u{26C36}", + "\u{2F9A5}" => "\u{26D6B}", "\u{2F9A6}" => "\u{26CD5}", "\u{2F9A7}" => "\u{452B}", "\u{2F9A8}" => "\u{84F1}", + "\u{2F9A9}" => "\u{84F3}", "\u{2F9AA}" => "\u{8516}", "\u{2F9AB}" => "\u{273CA}", "\u{2F9AC}" => "\u{8564}", + "\u{2F9AD}" => "\u{26F2C}", "\u{2F9AE}" => "\u{455D}", "\u{2F9AF}" => "\u{4561}", "\u{2F9B0}" => "\u{26FB1}", + "\u{2F9B1}" => "\u{270D2}", "\u{2F9B2}" => "\u{456B}", "\u{2F9B3}" => "\u{8650}", "\u{2F9B4}" => "\u{865C}", + "\u{2F9B5}" => "\u{8667}", "\u{2F9B6}" => "\u{8669}", "\u{2F9B7}" => "\u{86A9}", "\u{2F9B8}" => "\u{8688}", + "\u{2F9B9}" => "\u{870E}", "\u{2F9BA}" => "\u{86E2}", "\u{2F9BB}" => "\u{8779}", "\u{2F9BC}" => "\u{8728}", + "\u{2F9BD}" => "\u{876B}", "\u{2F9BE}" => "\u{8786}", "\u{2F9BF}" => "\u{45D7}", "\u{2F9C0}" => "\u{87E1}", + "\u{2F9C1}" => "\u{8801}", "\u{2F9C2}" => "\u{45F9}", "\u{2F9C3}" => "\u{8860}", "\u{2F9C4}" => "\u{8863}", + "\u{2F9C5}" => "\u{27667}", "\u{2F9C6}" => "\u{88D7}", "\u{2F9C7}" => "\u{88DE}", "\u{2F9C8}" => "\u{4635}", + "\u{2F9C9}" => "\u{88FA}", "\u{2F9CA}" => "\u{34BB}", "\u{2F9CB}" => "\u{278AE}", "\u{2F9CC}" => "\u{27966}", + "\u{2F9CD}" => "\u{46BE}", "\u{2F9CE}" => "\u{46C7}", "\u{2F9CF}" => "\u{8AA0}", "\u{2F9D0}" => "\u{8AED}", + "\u{2F9D1}" => "\u{8B8A}", "\u{2F9D2}" => "\u{8C55}", "\u{2F9D3}" => "\u{27CA8}", "\u{2F9D4}" => "\u{8CAB}", + "\u{2F9D5}" => "\u{8CC1}", "\u{2F9D6}" => "\u{8D1B}", "\u{2F9D7}" => "\u{8D77}", "\u{2F9D8}" => "\u{27F2F}", + "\u{2F9D9}" => "\u{20804}", "\u{2F9DA}" => "\u{8DCB}", "\u{2F9DB}" => "\u{8DBC}", "\u{2F9DC}" => "\u{8DF0}", + "\u{2F9DD}" => "\u{208DE}", "\u{2F9DE}" => "\u{8ED4}", "\u{2F9DF}" => "\u{8F38}", "\u{2F9E0}" => "\u{285D2}", + "\u{2F9E1}" => "\u{285ED}", "\u{2F9E2}" => "\u{9094}", "\u{2F9E3}" => "\u{90F1}", "\u{2F9E4}" => "\u{9111}", + "\u{2F9E5}" => "\u{2872E}", "\u{2F9E6}" => "\u{911B}", "\u{2F9E7}" => "\u{9238}", "\u{2F9E8}" => "\u{92D7}", + "\u{2F9E9}" => "\u{92D8}", "\u{2F9EA}" => "\u{927C}", "\u{2F9EB}" => "\u{93F9}", "\u{2F9EC}" => "\u{9415}", + "\u{2F9ED}" => "\u{28BFA}", "\u{2F9EE}" => "\u{958B}", "\u{2F9EF}" => "\u{4995}", "\u{2F9F0}" => "\u{95B7}", + "\u{2F9F1}" => "\u{28D77}", "\u{2F9F2}" => "\u{49E6}", "\u{2F9F3}" => "\u{96C3}", "\u{2F9F4}" => "\u{5DB2}", + "\u{2F9F5}" => "\u{9723}", "\u{2F9F6}" => "\u{29145}", "\u{2F9F7}" => "\u{2921A}", "\u{2F9F8}" => "\u{4A6E}", + "\u{2F9F9}" => "\u{4A76}", "\u{2F9FA}" => "\u{97E0}", "\u{2F9FB}" => "\u{2940A}", "\u{2F9FC}" => "\u{4AB2}", + "\u{2F9FD}" => "\u{29496}", "\u{2F9FE}" => "\u{980B}", "\u{2F9FF}" => "\u{980B}", "\u{2FA00}" => "\u{9829}", + "\u{2FA01}" => "\u{295B6}", "\u{2FA02}" => "\u{98E2}", "\u{2FA03}" => "\u{4B33}", "\u{2FA04}" => "\u{9929}", + "\u{2FA05}" => "\u{99A7}", "\u{2FA06}" => "\u{99C2}", "\u{2FA07}" => "\u{99FE}", "\u{2FA08}" => "\u{4BCE}", + "\u{2FA09}" => "\u{29B30}", "\u{2FA0A}" => "\u{9B12}", "\u{2FA0B}" => "\u{9C40}", "\u{2FA0C}" => "\u{9CFD}", + "\u{2FA0D}" => "\u{4CCE}", "\u{2FA0E}" => "\u{4CED}", "\u{2FA0F}" => "\u{9D67}", "\u{2FA10}" => "\u{2A0CE}", + "\u{2FA11}" => "\u{4CF8}", "\u{2FA12}" => "\u{2A105}", "\u{2FA13}" => "\u{2A20E}", "\u{2FA14}" => "\u{2A291}", + "\u{2FA15}" => "\u{9EBB}", "\u{2FA16}" => "\u{4D56}", "\u{2FA17}" => "\u{9EF9}", "\u{2FA18}" => "\u{9EFE}", + "\u{2FA19}" => "\u{9F05}", "\u{2FA1A}" => "\u{9F0F}", "\u{2FA1B}" => "\u{9F16}", "\u{2FA1C}" => "\u{9F3B}", + "\u{2FA1D}" => "\u{2A600}", + }.freeze + + # The code points with a canonical decomposition into two code + # points that are excluded from composition + # (Full_Composition_Exclusion). + COMPOSITION_EXCLUSION = /[\u{344}\u{958}-\u{95F}\u{9DC}-\u{9DD}\u{9DF}\u{A33}\u{A36}\u{A59}-\u{A5B}\u{A5E}\u{B5C}-\u{B5D}\u{F43}\u{F4D}\u{F52}\u{F57}\u{F5C}\u{F69}\u{F73}\u{F75}-\u{F76}\u{F78}\u{F81}\u{F93}\u{F9D}\u{FA2}\u{FA7}\u{FAC}\u{FB9}\u{2ADC}\u{FB1D}\u{FB1F}\u{FB2A}-\u{FB36}\u{FB38}-\u{FB3C}\u{FB3E}\u{FB40}-\u{FB41}\u{FB43}-\u{FB44}\u{FB46}-\u{FB4E}\u{1D15E}-\u{1D164}\u{1D1BB}-\u{1D1C0}]/ end end end diff --git a/rakelib/idna_data_generator.rb b/rakelib/idna_data_generator.rb index 2acee85..be405a4 100644 --- a/rakelib/idna_data_generator.rb +++ b/rakelib/idna_data_generator.rb @@ -11,6 +11,8 @@ class IDNADataGenerator joining_type: "ucd/extracted/DerivedJoiningType.txt", combining_class: "ucd/extracted/DerivedCombiningClass.txt", general_category: "ucd/extracted/DerivedGeneralCategory.txt", + unicode_data: "ucd/UnicodeData.txt", + normalization_props: "ucd/DerivedNormalizationProps.txt", }.freeze # Canonical_Combining_Class=Virama @@ -70,6 +72,24 @@ module IDNA # :nodoc: BIDI_EN = #{char_class(intersect(bidi_class("EN"), valid))} BIDI_ES_CS_ET_ON_BN = #{char_class(intersect(bidi_class("ES", "CS", "ET", "ON", "BN"), valid))} BIDI_NSM = #{char_class(intersect(bidi_class("NSM"), valid))} + + # Canonical_Combining_Class of each code point whose class is + # not 0. + COMBINING_CLASS = { + #{hash_entries(combining_classes) { |ccc| ccc.to_s }.join("\n")} + }.freeze + + # The canonical decomposition mapping (one level) of each code + # point that has one. Hangul syllables are not listed: they are + # decomposed algorithmically. + CANONICAL_DECOMPOSITION = { + #{hash_entries(canonical_decompositions) { |target| escape(target) }.join("\n")} + }.freeze + + # The code points with a canonical decomposition into two code + # points that are excluded from composition + # (Full_Composition_Exclusion). + COMPOSITION_EXCLUSION = #{char_class(composition_exclusions)} end end end @@ -144,11 +164,45 @@ def intersect(ranges, others) end def mapping_entries(mapped) - mapped.sort.each_slice(4).map do |slice| - " " + slice.map { |c, target| "#{escape([c])} => #{escape(target)}," }.join(" ") + hash_entries(mapped) { |target| escape(target) } + end + + # Lines of Hash entries keyed by code point, with values formatted by + # the block. + def hash_entries(hash) + hash.sort.each_slice(4).map do |slice| + " " + slice.map { |c, value| "#{escape([c])} => #{yield value}," }.join(" ") + end + end + + # {code point => Canonical_Combining_Class} for classes other than 0. + def combining_classes + classes = {} + each_line(:combining_class) do |range, fields| + ccc = Integer(fields[0], 10) + range.each { |c| classes[c] = ccc } unless ccc == 0 + end + classes + end + + # {code point => [code points]}: the canonical decomposition mappings + # in UnicodeData.txt. A compatibility mapping starts with "". + def canonical_decompositions + @canonical_decompositions ||= {}.tap do |decompositions| + each_line(:unicode_data) do |range, fields| + mapping = fields[4] + next if mapping.empty? || mapping.start_with?("<") + decompositions[range.first] = mapping.split.map(&:hex) + end end end + def composition_exclusions + excluded = property("normalization_props") { |v| v == "Full_Composition_Exclusion" } + pairs = canonical_decompositions.select { |_, target| target.size == 2 }.keys + merge(pairs.select { |c| excluded.any? { |range| range.cover?(c) } }.map { |c| c..c }) + end + def escape(code_points) "\"#{code_points.map { |c| format("\\u{%X}", c) }.join}\"" end From 467eb62cc50787816489f20f8d78780ee11eb918 Mon Sep 17 00:00:00 2001 From: jinroq Date: Wed, 18 Nov 2026 17:40:51 +0900 Subject: [PATCH 33/74] Add NFC normalization with the IDNA Unicode data URI::WHATWG_Parser::NFC implements Normalization Form C (UAX #15): full canonical decomposition, the Canonical Ordering Algorithm and the Canonical Composition Algorithm, with Hangul syllables handled algorithmically. Unlike String#unicode_normalize, it uses the Unicode version of the IDNA data and works in a non-main Ractor. The decomposition and composition tables are built from the generated data when NFC is first used. Ordering sorts each run of combining marks instead of exchanging neighbours, so it takes linear time. Co-Authored-By: Claude Opus 5.5 --- lib/uri/whatwg_parser.rb | 1 + lib/uri/whatwg_parser/nfc.rb | 129 ++++++++++++++++++++++++++ lib/uri/whatwg_parser/nfc_tables.rb | 37 ++++++++ test/uri/test_whatwg_nfc.rb | 139 ++++++++++++++++++++++++++++ 4 files changed, 306 insertions(+) create mode 100644 lib/uri/whatwg_parser/nfc.rb create mode 100644 lib/uri/whatwg_parser/nfc_tables.rb create mode 100644 test/uri/test_whatwg_nfc.rb diff --git a/lib/uri/whatwg_parser.rb b/lib/uri/whatwg_parser.rb index 5af3002..1ae9934 100644 --- a/lib/uri/whatwg_parser.rb +++ b/lib/uri/whatwg_parser.rb @@ -1,5 +1,6 @@ # frozen_string_literal: true require_relative "whatwg_parser/punycode" +require_relative "whatwg_parser/nfc" require_relative "whatwg_parser/idna" module URI diff --git a/lib/uri/whatwg_parser/nfc.rb b/lib/uri/whatwg_parser/nfc.rb new file mode 100644 index 0000000..dc33a6f --- /dev/null +++ b/lib/uri/whatwg_parser/nfc.rb @@ -0,0 +1,129 @@ +# frozen_string_literal: true +module URI + class WHATWG_Parser + # Unicode Normalization Form C (UAX #15, + # https://www.unicode.org/reports/tr15/) with the Unicode data of + # IDNA, which String#unicode_normalize cannot provide: its Unicode + # version is the one of the running Ruby, and it cannot run in a + # non-main Ractor. + # + # The tables (nfc_tables.rb) are loaded on first use. + module NFC # :nodoc: + # Hangul syllable composition (Unicode Standard, section 3.12). + S_BASE = 0xAC00 + L_BASE = 0x1100 + V_BASE = 0x1161 + T_BASE = 0x11A7 + L_COUNT = 19 + V_COUNT = 21 + T_COUNT = 28 + N_COUNT = V_COUNT * T_COUNT + S_COUNT = L_COUNT * N_COUNT + + CODE_SPACE = 0x110000 + + module_function + + # Returns +input+, a UTF-8 String, in NFC. + def normalize(input) + return input.dup if input.ascii_only? + load_tables + code_points = decompose(input.codepoints) + reorder!(code_points) + compose(code_points).pack("U*") + end + + def normalized?(input) + normalize(input) == input + end + + def load_tables + require_relative "nfc_tables" unless const_defined?(:COMPOSITION, false) + end + + def pair_key(first, second) + first * CODE_SPACE + second + end + + # The full canonical decomposition of +code_points+. + def decompose(code_points) + code_points.each_with_object([]) do |c, result| + s_index = c - S_BASE + if s_index >= 0 && s_index < S_COUNT + result << L_BASE + s_index / N_COUNT << V_BASE + (s_index % N_COUNT) / T_COUNT + t = s_index % T_COUNT + result << T_BASE + t if t > 0 + elsif (decomposition = DECOMPOSITION[c]) + result.concat(decomposition) + else + result << c + end + end + end + + # The Canonical Ordering Algorithm: sorts each run of code points + # whose combining class is not 0 by class, keeping the order of + # equal classes. + def reorder!(code_points) + i = 0 + while i < code_points.size + if COMBINING_CLASS.key?(code_points[i]) + run_end = i + run_end += 1 while run_end < code_points.size && COMBINING_CLASS.key?(code_points[run_end]) + if run_end - i > 1 + run = code_points[i...run_end].each_with_index.sort_by { |c, index| [COMBINING_CLASS[c], index] } + code_points[i...run_end] = run.map(&:first) + end + i = run_end + else + i += 1 + end + end + code_points + end + + # The Canonical Composition Algorithm. + def compose(code_points) + result = [] + starter = nil + # The combining class of the last code point kept since the + # starter, or nil when the starter is the last one. + last_class = nil + code_points.each do |c| + ccc = COMBINING_CLASS.fetch(c, 0) + if starter && (last_class.nil? || last_class < ccc) + composite = compose_pair(result[starter], c) + if composite + result[starter] = composite + next + end + end + if ccc == 0 + starter = result.size + last_class = nil + else + last_class = ccc + end + result << c + end + result + end + + def compose_pair(first, second) + l_index = first - L_BASE + v_index = second - V_BASE + if l_index >= 0 && l_index < L_COUNT && v_index >= 0 && v_index < V_COUNT + return S_BASE + (l_index * V_COUNT + v_index) * T_COUNT + end + + s_index = first - S_BASE + t_index = second - T_BASE + if s_index >= 0 && s_index < S_COUNT && s_index % T_COUNT == 0 && t_index > 0 && t_index < T_COUNT + return first + t_index + end + + COMPOSITION[pair_key(first, second)] + end + end + end +end diff --git a/lib/uri/whatwg_parser/nfc_tables.rb b/lib/uri/whatwg_parser/nfc_tables.rb new file mode 100644 index 0000000..0fc445c --- /dev/null +++ b/lib/uri/whatwg_parser/nfc_tables.rb @@ -0,0 +1,37 @@ +# frozen_string_literal: true +require_relative "idna_data" + +module URI + class WHATWG_Parser + module NFC # :nodoc: + # Canonical_Combining_Class by code point, for classes other than 0. + COMBINING_CLASS = IDNA::COMBINING_CLASS.each_with_object({}) do |(char, ccc), classes| + classes[char.ord] = ccc + end.freeze + + raw = IDNA::CANONICAL_DECOMPOSITION.each_with_object({}) do |(char, target), mappings| + mappings[char.ord] = target.codepoints + end + full = lambda do |code_point| + mapping = raw[code_point] + mapping ? mapping.flat_map { |c| full.call(c) } : [code_point] + end + + # The full canonical decomposition by code point, except Hangul + # syllables. + DECOMPOSITION = raw.keys.each_with_object({}) do |code_point, decompositions| + decompositions[code_point] = full.call(code_point).freeze + end.freeze + + # The primary composite by pair of code points (see pair_key), + # except Hangul syllables. + COMPOSITION = IDNA::CANONICAL_DECOMPOSITION.each_with_object({}) do |(char, target), compositions| + next unless target.size == 2 && !IDNA::COMPOSITION_EXCLUSION.match?(char) + first, second = target.codepoints + compositions[pair_key(first, second)] = char.ord + end.freeze + + Ractor.make_shareable(DECOMPOSITION) if defined?(Ractor) + end + end +end diff --git a/test/uri/test_whatwg_nfc.rb b/test/uri/test_whatwg_nfc.rb new file mode 100644 index 0000000..cfa6f09 --- /dev/null +++ b/test/uri/test_whatwg_nfc.rb @@ -0,0 +1,139 @@ +# frozen_string_literal: false +require 'test/unit' +require 'uri' + +# Unicode Normalization Form C (UAX #15) with the Unicode data of +# URI::WHATWG_Parser::IDNA. +class URI::TestWHATWGNFC < Test::Unit::TestCase + NFC = URI::WHATWG_Parser::NFC + + def assert_nfc(expected, input) + assert_equal(expected, NFC.normalize(input), "NFC(#{input.dump})") + end + + def test_ascii_and_empty + assert_nfc("", "") + assert_nfc("example.com", "example.com") + end + + def test_already_composed + assert_nfc("\u{E9}", "\u{E9}") + assert_nfc("\u{1EBE}", "\u{1EBE}") + assert_nfc("\u{65E5}\u{672C}", "\u{65E5}\u{672C}") + end + + def test_composes + assert_nfc("\u{E9}", "e\u{301}") + assert_nfc("\u{C5}", "A\u{30A}") + assert_nfc("\u{1EBE}", "\u{CA}\u{301}") + end + + def test_decomposes_singletons + assert_nfc("\u{C5}", "\u{212B}") + assert_nfc("\u{3A9}", "\u{2126}") + assert_nfc("\u{8C48}", "\u{F900}") + end + + def test_composition_exclusions_stay_decomposed + assert_nfc("\u{915}\u{93C}", "\u{958}") + assert_nfc("\u{915}\u{93C}", "\u{915}\u{93C}") + end + + def test_non_starter_decomposition + assert_nfc("\u{308}\u{301}", "\u{344}") + end + + def test_canonical_ordering + assert_nfc("\u{1EA1}\u{301}", "a\u{301}\u{323}") + assert_nfc("\u{1E0D}\u{307}", "\u{1E0B}\u{323}") + end + + def test_composes_across_a_mark_of_another_class + assert_nfc("\u{1EAD}", "a\u{323}\u{302}") + end + + def test_blocked_by_a_mark_of_the_same_class + assert_nfc("\u{E4}\u{308}", "a\u{308}\u{308}") + assert_nfc("\u{E9}\u{301}", "e\u{301}\u{301}") + end + + def test_blocked_by_a_starter + assert_nfc("\u{1100}\u{301}\u{1161}", "\u{1100}\u{301}\u{1161}") + end + + def test_leading_combining_mark + assert_nfc("\u{301}e", "\u{301}e") + end + + def test_hangul_composes + assert_nfc("\u{AC00}", "\u{1100}\u{1161}") + assert_nfc("\u{AC01}", "\u{1100}\u{1161}\u{11A8}") + assert_nfc("\u{AC01}", "\u{AC00}\u{11A8}") + assert_nfc("\u{D7A3}", "\u{1112}\u{1175}\u{11C2}") + end + + def test_hangul_syllables_stay_composed + assert_nfc("\u{AC01}", "\u{AC01}") + assert_nfc("\u{D7A3}", "\u{D7A3}") + end + + def test_hangul_boundaries + # U+11A7 is just below the trailing consonants (U+11A8..U+11C2). + assert_nfc("\u{AC00}\u{11A7}", "\u{AC00}\u{11A7}") + # U+11C3 is just above them. + assert_nfc("\u{AC00}\u{11C3}", "\u{AC00}\u{11C3}") + # An LVT syllable takes no further trailing consonant. + assert_nfc("\u{AC01}\u{11A8}", "\u{AC01}\u{11A8}") + # U+1113 is just above the leading consonants (U+1100..U+1112). + assert_nfc("\u{1113}\u{1161}", "\u{1113}\u{1161}") + # U+1176 is just above the vowels (U+1161..U+1175). + assert_nfc("\u{1100}\u{1176}", "\u{1100}\u{1176}") + end + + def test_supplementary_planes + # U+1D15E MUSICAL SYMBOL HALF NOTE is excluded from composition. + assert_nfc("\u{1D157}\u{1D165}", "\u{1D15E}") + assert_nfc("\u{1F600}", "\u{1F600}") + end + + def test_input_is_not_modified + input = "e\u{301}" + NFC.normalize(input) + assert_equal("e\u{301}", input) + end + + def test_result_is_utf8 + assert_equal(Encoding::UTF_8, NFC.normalize("e\u{301}").encoding) + assert_equal(Encoding::UTF_8, NFC.normalize("a").encoding) + end + + def test_normalized + assert_true(NFC.normalized?("")) + assert_true(NFC.normalized?("\u{E9}")) + assert_false(NFC.normalized?("e\u{301}")) + assert_false(NFC.normalized?("\u{212B}")) + assert_false(NFC.normalized?("a\u{301}\u{323}")) + assert_true(NFC.normalized?("\u{1EA1}\u{301}")) + end + + def test_works_in_a_ractor + omit "Ractor is not available" unless defined?(Ractor) + omit "require in a Ractor needs Ruby 3.4" if RUBY_VERSION < "3.4" + assert_separately(%w[-W0], <<~'RUBY') + require "uri" + r = Ractor.new { URI::WHATWG_Parser::NFC.normalize("e\u{301}") } + assert_equal("\u{E9}", r.respond_to?(:value) ? r.value : r.take) + RUBY + end + + def test_normalize_in_linear_time + marks = ->(n) { "a" + "\u{301}\u{323}" * n } + assert_linear_performance([300, 1_000, 3_000, 10_000], pre: marks) do |input| + NFC.normalize(input) + end + hangul = ->(n) { "\u{1100}\u{1161}\u{11A8}" * n } + assert_linear_performance([300, 1_000, 3_000, 10_000], pre: hangul) do |input| + NFC.normalize(input) + end + end +end From 9d08f954219bb88855402563b86d881d8879ba1b Mon Sep 17 00:00:00 2001 From: jinroq Date: Wed, 18 Nov 2026 17:42:45 +0900 Subject: [PATCH 34/74] Run Unicode's NormalizationTest.txt in rake test:wpt NormalizationTest.txt is the conformance test of the normalization forms. It is fetched for the Unicode version of the generated data, or read from NORMALIZATION_TEST, and checked for NFC: c2 == NFC(c1..c3) and c4 == NFC(c4..c5) on every line, and every code point that Part 1 does not list is unchanged. The lines are checked in one test per part. All 20171 lines of Unicode 18.0.0 pass. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/wpt.yml | 5 +- rakelib/wpt.rake | 2 +- test/wpt/normalization_test.rb | 70 +++++++++++++++++++++ test/wpt/test_normalization_test.rb | 43 +++++++++++++ test/wpt/test_normalization_test_harness.rb | 60 ++++++++++++++++++ 5 files changed, 177 insertions(+), 3 deletions(-) create mode 100644 test/wpt/normalization_test.rb create mode 100644 test/wpt/test_normalization_test.rb create mode 100644 test/wpt/test_normalization_test_harness.rb diff --git a/.github/workflows/wpt.yml b/.github/workflows/wpt.yml index 2d9cbac..701572c 100644 --- a/.github/workflows/wpt.yml +++ b/.github/workflows/wpt.yml @@ -2,8 +2,9 @@ name: WPT # Runs web-platform-tests' url/resources/urltestdata.json, fetched from WPT # master, against URI::WHATWG_PARSER (rake test:wpt). The same task runs -# Unicode's IdnaTestV2.txt for the Unicode version of the IDNA data, and -# fails when Unicode has released a newer version than that data. +# Unicode's IdnaTestV2.txt and NormalizationTest.txt for the Unicode +# version of the IDNA data, and fails when Unicode has released a newer +# version than that data. # # The URL Standard is a living standard and WPT follows its changes, so the # scheduled run is how a change in the standard is noticed: it fails when a diff --git a/rakelib/wpt.rake b/rakelib/wpt.rake index 6ec3601..0a4e305 100644 --- a/rakelib/wpt.rake +++ b/rakelib/wpt.rake @@ -2,7 +2,7 @@ require "rake/testtask" namespace :test do Rake::TestTask.new(:wpt) do |t| - t.description = "Run WPT urltestdata.json and Unicode IdnaTestV2.txt against URI::WHATWG_PARSER (needs network unless WPT_URLTESTDATA and IDNA_TEST_V2 are local files)" + t.description = "Run WPT urltestdata.json and Unicode IdnaTestV2.txt and NormalizationTest.txt against URI::WHATWG_PARSER (needs network unless WPT_URLTESTDATA, IDNA_TEST_V2 and NORMALIZATION_TEST are local files)" t.libs << "lib" t.test_files = FileList["test/wpt/test_*.rb"] end diff --git a/test/wpt/normalization_test.rb b/test/wpt/normalization_test.rb new file mode 100644 index 0000000..88345aa --- /dev/null +++ b/test/wpt/normalization_test.rb @@ -0,0 +1,70 @@ +# frozen_string_literal: true +require 'uri' +require_relative 'idna_test_v2' + +# Harness for running Unicode's NormalizationTest.txt against +# URI::WHATWG_Parser::NFC.normalize. +# +# Each case is a Hash of :columns (c1..c5), :line and :part. For NFC, the +# file requires c2 == NFC(c1) == NFC(c2) == NFC(c3) and +# c4 == NFC(c4) == NFC(c5). Every code point that Part 1 does not list +# is unchanged by NFC. +module NormalizationTest + module_function + + # NormalizationTest.txt of the Unicode version of URI::WHATWG_Parser's + # data. + def default_source + "https://www.unicode.org/Public/#{IDNATestV2.unicode_version}/ucd/NormalizationTest.txt" + end + + # NORMALIZATION_TEST (a local path or an https URL) if set, otherwise + # default_source. + def source + ENV["NORMALIZATION_TEST"] || default_source + end + + def load(source) + text = source.match?(%r{\A[A-Za-z][A-Za-z0-9+.-]*://}) ? WPT::URLTestData.fetch(source) : File.read(source) + parse(text.dup.force_encoding(Encoding::UTF_8)) + end + + def parse(text) + part = nil + cases = [] + text.each_line.with_index(1) do |line, number| + line = line.sub(/#.*/, "").strip + next if line.empty? + if line.start_with?("@") + part = line[1..-1].strip + next + end + columns = line.split(";").first(5).map { |column| column.split.map(&:hex).pack("U*") } + cases << { columns: columns, line: number, part: part } + end + cases + end + + def part1_code_points(cases) + cases.select { |c| c[:part] == "Part1" }.map { |c| c[:columns][0].ord } + end + + # Runs +test_case+ with +nfc+, a callable. Returns nil when it passes, + # or a message. + def run(test_case, nfc) + c = test_case[:columns] + checks = [[0, 1], [1, 1], [2, 1], [3, 3], [4, 3]] + failures = checks.filter_map do |source, expected| + actual = nfc.call(c[source]) + next if actual == c[expected] + "NFC(c#{source + 1}) = #{dump(actual)}, expected c#{expected + 1} = #{dump(c[expected])}" + end + failures.empty? ? nil : failures.join("\n") + rescue StandardError => e + "#{e.class}: #{e.message}" + end + + def dump(str) + str.codepoints.map { |cp| format("%04X", cp) }.join(" ") + end +end diff --git a/test/wpt/test_normalization_test.rb b/test/wpt/test_normalization_test.rb new file mode 100644 index 0000000..c304a7b --- /dev/null +++ b/test/wpt/test_normalization_test.rb @@ -0,0 +1,43 @@ +# frozen_string_literal: true +require 'test/unit' +require 'uri' +require_relative 'normalization_test' + +# Runs Unicode's NormalizationTest.txt against +# URI::WHATWG_Parser::NFC.normalize. +# +# The data is fetched for the Unicode version of the generated data +# (lib/uri/whatwg_parser/idna_data.rb), unless NORMALIZATION_TEST names +# a local file or another https URL. +class NormalizationTest::TestConformance < Test::Unit::TestCase + SOURCE = NormalizationTest.source + CASES = NormalizationTest.load(SOURCE) + NFC = URI::WHATWG_Parser::NFC.method(:normalize) + + # One test per part: a test per line would make test-unit spend most + # of the time on its own bookkeeping. + CASES.group_by { |c| c[:part] }.each do |part, cases| + data(part, cases) + end + + def test_part(cases) + failures = cases.filter_map do |test_case| + message = NormalizationTest.run(test_case, NFC) + "line #{test_case[:line]}: #{message}" if message + end + assert_empty(failures, "#{failures.size} of #{cases.size} cases failed") + end + + def test_code_points_outside_part1_are_unchanged + listed = NormalizationTest.part1_code_points(CASES).each_with_object({}) { |c, h| h[c] = true } + changed = (0..0x10FFFF).reject do |c| + (0xD800..0xDFFF).cover?(c) || listed[c] || NFC.call(s = [c].pack("U")) == s + end + assert_empty(changed.map { |c| format("U+%04X", c) }) + end + + def test_source + assert_not_empty(CASES, "no cases in #{SOURCE}") + notify("NormalizationTest: #{CASES.size} cases (source: #{SOURCE})") + end +end diff --git a/test/wpt/test_normalization_test_harness.rb b/test/wpt/test_normalization_test_harness.rb new file mode 100644 index 0000000..799abe9 --- /dev/null +++ b/test/wpt/test_normalization_test_harness.rb @@ -0,0 +1,60 @@ +# frozen_string_literal: true +require 'test/unit' +require 'uri' +require_relative 'normalization_test' + +# Tests for the harness that runs Unicode's NormalizationTest.txt. These +# never touch the network. +class NormalizationTest::TestHarness < Test::Unit::TestCase + TEXT = <<~TXT + # comment + @Part0 # Specific cases + 1E0A;1E0A;0044 0307;1E0A;0044 0307; # comment + @Part1 # Character by character test + 00C5;00C5;0041 030A;00C5;0041 030A; + TXT + + def test_parse + cases = NormalizationTest.parse(TEXT) + assert_equal(2, cases.size) + assert_equal(["\u{1E0A}", "\u{1E0A}", "D\u{307}", "\u{1E0A}", "D\u{307}"], cases[0][:columns]) + assert_equal(3, cases[0][:line]) + assert_equal("Part0", cases[0][:part]) + assert_equal("Part1", cases[1][:part]) + end + + def test_part1_code_points + cases = NormalizationTest.parse(TEXT) + assert_equal([0xC5], NormalizationTest.part1_code_points(cases)) + end + + def test_run_passes + c = NormalizationTest.parse(TEXT)[0] + nfc = ->(s) { s == "D\u{307}" ? "\u{1E0A}" : s } + assert_nil(NormalizationTest.run(c, nfc)) + end + + def test_run_reports_c2_mismatch + c = NormalizationTest.parse(TEXT)[0] + message = NormalizationTest.run(c, ->(s) { s }) + assert_match(/NFC\(c3\)/, message) + assert_match(/expected c2/, message) + end + + def test_run_reports_c4_mismatch + c = { columns: ["a", "a", "a", "b", "c"], line: 1, part: "Part0" } + assert_match(/NFC\(c5\).*expected c4/, NormalizationTest.run(c, ->(s) { s })) + end + + def test_run_reports_exceptions + c = NormalizationTest.parse(TEXT)[0] + assert_match(/RuntimeError: boom/, NormalizationTest.run(c, ->(s) { raise "boom" })) + end + + def test_source_defaults_to_the_version_of_the_data + assert_equal( + "https://www.unicode.org/Public/#{IDNATestV2.unicode_version}/ucd/NormalizationTest.txt", + NormalizationTest.default_source + ) + end +end From 538fb7cd89e6e7c013b1b72deacc7fae7370d02a Mon Sep 17 00:00:00 2001 From: jinroq Date: Wed, 18 Nov 2026 17:46:13 +0900 Subject: [PATCH 35/74] Normalize domains with URI::WHATWG_Parser::NFC Domain to ASCII used String#unicode_normalize, which raises Ractor::IsolationError in a non-main Ractor, so parsing a non-ASCII domain failed there. It now uses URI::WHATWG_Parser::NFC, whose Unicode version is also the one of the rest of the IDNA data. The ZWNJ and ZWJ constants are frozen, so that they can be read from any Ractor. Parsing a non-ASCII domain in a Ractor works on every Ruby with Ractor (3.0 or later), so the NFC Ractor test no longer requires 3.4. Co-Authored-By: Claude Opus 5.5 --- lib/uri/whatwg_parser/idna.rb | 8 ++++---- test/uri/test_whatwg_nfc.rb | 1 - test/uri/test_whatwg_parser.rb | 9 +++++++++ 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/lib/uri/whatwg_parser/idna.rb b/lib/uri/whatwg_parser/idna.rb index 2f33075..a50495c 100644 --- a/lib/uri/whatwg_parser/idna.rb +++ b/lib/uri/whatwg_parser/idna.rb @@ -12,8 +12,8 @@ class WHATWG_Parser module IDNA # :nodoc: ACE_PREFIX = "xn--" LABEL_SEPARATOR = "." - ZWNJ = 0x200C.chr(Encoding::UTF_8) - ZWJ = 0x200D.chr(Encoding::UTF_8) + ZWNJ = 0x200C.chr(Encoding::UTF_8).freeze + ZWJ = 0x200D.chr(Encoding::UTF_8).freeze # Every code point the IDNA Mapping Table leaves unchanged is # matched out; ASCII code points other than A-Z are among them. @@ -45,7 +45,7 @@ def process(domain) load_data mapped = domain.gsub(MAPPING_CANDIDATE) { |c| MAPPING.fetch(c, c) } - labels = mapped.unicode_normalize(:nfc).split(LABEL_SEPARATOR, -1) + labels = NFC.normalize(mapped).split(LABEL_SEPARATOR, -1) labels.map! do |label| label = decode_label(label) if label.start_with?(ACE_PREFIX) return nil unless label && valid_label?(label) @@ -65,7 +65,7 @@ def decode_label(label) return nil unless label.ascii_only? decoded = Punycode.decode(label[ACE_PREFIX.size..-1]) return nil if decoded.nil? || decoded.empty? || decoded.ascii_only? - return nil unless decoded.unicode_normalized?(:nfc) + return nil unless NFC.normalized?(decoded) decoded end diff --git a/test/uri/test_whatwg_nfc.rb b/test/uri/test_whatwg_nfc.rb index cfa6f09..07eb499 100644 --- a/test/uri/test_whatwg_nfc.rb +++ b/test/uri/test_whatwg_nfc.rb @@ -118,7 +118,6 @@ def test_normalized def test_works_in_a_ractor omit "Ractor is not available" unless defined?(Ractor) - omit "require in a Ractor needs Ruby 3.4" if RUBY_VERSION < "3.4" assert_separately(%w[-W0], <<~'RUBY') require "uri" r = Ractor.new { URI::WHATWG_Parser::NFC.normalize("e\u{301}") } diff --git a/test/uri/test_whatwg_parser.rb b/test/uri/test_whatwg_parser.rb index 691db68..8c830e3 100644 --- a/test/uri/test_whatwg_parser.rb +++ b/test/uri/test_whatwg_parser.rb @@ -713,6 +713,15 @@ def test_split_non_ascii_domain_ending_in_a_number_is_ipv4 assert_equal("127.0.0.1", split("http://127\u{3002}0.0.1/")[HOST]) end + def test_split_non_ascii_domain_in_a_ractor + omit "Ractor is not available" unless defined?(Ractor) + assert_separately(%w[-W0], <<~'RUBY') + require "uri" + r = Ractor.new { URI::WHATWG_PARSER.parse("http://e\u{301}.example/").host } + assert_equal("xn--9ca.example", r.respond_to?(:value) ? r.value : r.take) + RUBY + end + def test_split_non_ascii_domain_in_linear_time distinct = ->(n) { "http://" + (0x4E00...0x4E00 + n).map { |c| c.chr(Encoding::UTF_8) }.join + "/" } assert_linear_performance([300, 1_000, 3_000, 10_000], pre: distinct) do |uri| From 4854d5527f6ab70a32a7a856928a6be9ee566604 Mon Sep 17 00:00:00 2001 From: jinroq Date: Wed, 18 Nov 2026 17:52:19 +0900 Subject: [PATCH 36/74] Run WPT toascii.json in rake test:wpt toascii.json holds IDNA cases that IdnaTestV2.txt may not cover, including ones that only apply to the domain to ASCII of the URL Standard. As in WPT's toascii.window.js, each input is parsed as the host of "https:///x" and the host, hostname, pathname and href are compared, or parsing must fail when the output is null. The host and hostname setter checks are not run, since URI's setters do not follow the URL Standard. All 87 cases pass. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/wpt.yml | 10 ++-- rakelib/wpt.rake | 2 +- test/wpt/test_wpt_toascii.rb | 27 ++++++++++ test/wpt/test_wpt_toascii_harness.rb | 76 ++++++++++++++++++++++++++++ test/wpt/wpt_url_test_data.rb | 30 +++++++++++ 5 files changed, 139 insertions(+), 6 deletions(-) create mode 100644 test/wpt/test_wpt_toascii.rb create mode 100644 test/wpt/test_wpt_toascii_harness.rb diff --git a/.github/workflows/wpt.yml b/.github/workflows/wpt.yml index 701572c..3602443 100644 --- a/.github/workflows/wpt.yml +++ b/.github/workflows/wpt.yml @@ -1,10 +1,10 @@ name: WPT -# Runs web-platform-tests' url/resources/urltestdata.json, fetched from WPT -# master, against URI::WHATWG_PARSER (rake test:wpt). The same task runs -# Unicode's IdnaTestV2.txt and NormalizationTest.txt for the Unicode -# version of the IDNA data, and fails when Unicode has released a newer -# version than that data. +# Runs web-platform-tests' url/resources/urltestdata.json and toascii.json, +# fetched from WPT master, against URI::WHATWG_PARSER (rake test:wpt). The +# same task runs Unicode's IdnaTestV2.txt and NormalizationTest.txt for the +# Unicode version of the IDNA data, and fails when Unicode has released a +# newer version than that data. # # The URL Standard is a living standard and WPT follows its changes, so the # scheduled run is how a change in the standard is noticed: it fails when a diff --git a/rakelib/wpt.rake b/rakelib/wpt.rake index 0a4e305..f9dbfd9 100644 --- a/rakelib/wpt.rake +++ b/rakelib/wpt.rake @@ -2,7 +2,7 @@ require "rake/testtask" namespace :test do Rake::TestTask.new(:wpt) do |t| - t.description = "Run WPT urltestdata.json and Unicode IdnaTestV2.txt and NormalizationTest.txt against URI::WHATWG_PARSER (needs network unless WPT_URLTESTDATA, IDNA_TEST_V2 and NORMALIZATION_TEST are local files)" + t.description = "Run WPT urltestdata.json and toascii.json and Unicode IdnaTestV2.txt and NormalizationTest.txt against URI::WHATWG_PARSER (needs network unless WPT_URLTESTDATA, WPT_TOASCII, IDNA_TEST_V2 and NORMALIZATION_TEST are local files)" t.libs << "lib" t.test_files = FileList["test/wpt/test_*.rb"] end diff --git a/test/wpt/test_wpt_toascii.rb b/test/wpt/test_wpt_toascii.rb new file mode 100644 index 0000000..9009adc --- /dev/null +++ b/test/wpt/test_wpt_toascii.rb @@ -0,0 +1,27 @@ +# frozen_string_literal: true +require 'test/unit' +require 'uri' +require_relative 'wpt_url_test_data' + +# Runs WPT url/resources/toascii.json against URI::WHATWG_PARSER. +# +# The data is fetched from WPT master on every run, unless WPT_TOASCII +# names a local file or another https URL. +class WPT::TestToASCII < Test::Unit::TestCase + SOURCE = WPT::ToASCIIData.source + CASES = WPT::URLTestData.load(SOURCE) + + CASES.each_with_index do |test_case, index| + data("##{index + 1} #{test_case["input"].dump}", test_case) + end + + def test_case(test_case) + message = WPT::ToASCIIData.run(test_case, URI::WHATWG_PARSER) + flunk(message) if message + end + + def test_source + assert_not_empty(CASES, "no cases in #{SOURCE}") + notify("toascii: #{CASES.size} cases (source: #{SOURCE})") + end +end diff --git a/test/wpt/test_wpt_toascii_harness.rb b/test/wpt/test_wpt_toascii_harness.rb new file mode 100644 index 0000000..63cc52f --- /dev/null +++ b/test/wpt/test_wpt_toascii_harness.rb @@ -0,0 +1,76 @@ +# frozen_string_literal: true +require 'test/unit' +require 'uri' +require_relative 'wpt_url_test_data' + +# Tests for the harness that runs WPT url/resources/toascii.json. These +# never touch the network. +class WPT::TestToASCIIHarness < Test::Unit::TestCase + ToASCII = WPT::ToASCIIData + + # A parser stand-in that parses with RFC3986_PARSER after replacing the + # host as the block says, or raises when the block returns nil. + class FakeParser + attr_reader :inputs + + def initialize(&block) + @block = block + @inputs = [] + end + + def parse(input) + @inputs << input + host = @block.call(input[%r{\Ahttps://(.*)/x\z}m, 1]) + raise URI::InvalidURIError, "fake failure" unless host + URI::RFC3986_PARSER.parse("https://#{host}/x") + end + end + + def test_run_parses_the_input_as_the_host_of_an_https_url + parser = FakeParser.new { |host| host } + ToASCII.run({ "input" => "example.com", "output" => "example.com" }, parser) + assert_equal(["https://example.com/x"], parser.inputs) + end + + def test_run_passes + parser = FakeParser.new { "xn--fa-hia.de" } + assert_nil(ToASCII.run({ "input" => "fa\u{DF}.de", "output" => "xn--fa-hia.de" }, parser)) + end + + def test_run_reports_a_wrong_host + parser = FakeParser.new { "fass.de" } + message = ToASCII.run({ "input" => "fa\u{DF}.de", "output" => "xn--fa-hia.de" }, parser) + assert_match(/host: expected "xn--fa-hia.de", got "fass.de"/, message) + assert_match(%r{href: expected "https://xn--fa-hia.de/x", got "https://fass.de/x"}, message) + end + + def test_run_reports_an_unexpected_failure + parser = FakeParser.new { nil } + message = ToASCII.run({ "input" => "a", "output" => "a" }, parser) + assert_match(/unexpected URI::InvalidURIError/, message) + end + + def test_run_passes_an_expected_failure + parser = FakeParser.new { nil } + assert_nil(ToASCII.run({ "input" => "a\u{200C}b", "output" => nil }, parser)) + end + + def test_run_reports_an_unexpected_success + parser = FakeParser.new { |host| host } + message = ToASCII.run({ "input" => "a", "output" => nil }, parser) + assert_match(%r{expected failure, but parsed as "https://a/x"}, message) + end + + def test_run_reports_other_exceptions + parser = Object.new + def parser.parse(_) + raise ArgumentError, "boom" + end + assert_match(/ArgumentError: boom/, ToASCII.run({ "input" => "a", "output" => "a" }, parser)) + end + + def test_source + assert_equal(ToASCII::DEFAULT_SOURCE, ToASCII.source) unless ENV["WPT_TOASCII"] + assert_match(%r{\Ahttps://.*/url/resources/toascii\.json\z}, ToASCII::DEFAULT_SOURCE) + end +end diff --git a/test/wpt/wpt_url_test_data.rb b/test/wpt/wpt_url_test_data.rb index a25f9de..ea55062 100644 --- a/test/wpt/wpt_url_test_data.rb +++ b/test/wpt/wpt_url_test_data.rb @@ -103,6 +103,36 @@ def run(test_case, parser) end end + # Harness for url/resources/toascii.json: each case is a host "input" + # and its expected ASCII "output", or null when parsing fails. As in + # WPT's toascii.window.js, the input is parsed as the host of + # "https:///x". (The host and hostname setter checks of that + # file are not run: URI's setters do not follow the URL Standard.) + module ToASCIIData + DEFAULT_SOURCE = "https://raw.githubusercontent.com/web-platform-tests/wpt/master/url/resources/toascii.json" + + module_function + + # WPT_TOASCII (a local path or an https URL) if set, otherwise WPT + # master. + def source + ENV["WPT_TOASCII"] || DEFAULT_SOURCE + end + + # Runs +test_case+ with +parser+. Returns nil when it passes, or a + # message. + def run(test_case, parser) + output = test_case["output"] + url_test_case = { "input" => "https://#{test_case["input"]}/x", "base" => nil } + if output.nil? + url_test_case["failure"] = true + else + url_test_case.merge!("host" => output, "hostname" => output, "pathname" => "/x", "href" => "https://#{output}/x") + end + URLTestData.run(url_test_case, parser) + end + end + # The list of urltestdata cases that are known to fail, each with the # reason, stored as a JSON array of {"input", "base", "reason"}. module Exclusions From a700d6b2776a1fbf25d5fa1dbce169a08efe854b Mon Sep 17 00:00:00 2001 From: jinroq Date: Wed, 18 Nov 2026 17:52:57 +0900 Subject: [PATCH 37/74] Describe URI::WHATWG_PARSER in the README Add usage examples of URI::WHATWG_PARSER and URI.parser=, note that setters still follow RFC 3986, and describe rake test:wpt, rake test:wpt:update_exclusions and rake idna:generate. Co-Authored-By: Claude Opus 5.5 --- README.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/README.md b/README.md index 5c7c0dd..1a85757 100644 --- a/README.md +++ b/README.md @@ -44,10 +44,42 @@ uri.fragment #=> "time=1305298413" uri.to_s #=> "http://foo.com/posts?id=30&limit=5#time=1305298413" ``` +### WHATWG URL Standard + +The default parser follows RFC 3986. `URI::WHATWG_PARSER` parses URLs as web browsers do, following the [WHATWG URL Standard](https://url.spec.whatwg.org/), including domain to ASCII (IDNA, [UTS #46](https://www.unicode.org/reports/tr46/)) for non-ASCII domains: + +```ruby +URI::WHATWG_PARSER.parse("HTTP://EXAMPLE.com:80/a/../b c") +#=> # +URI::WHATWG_PARSER.parse("http://0x7f.1/") +#=> # +URI::WHATWG_PARSER.parse("http://日本語.jp/").host +#=> "xn--wgv71a119e.jp" + +# A relative reference is resolved against a base URL. +URI::WHATWG_PARSER.join("http://example.com/a/b", "../c") +#=> # +``` + +It can also replace the default parser for the whole process: + +```ruby +URI.parser = URI::WHATWG_PARSER +URI("http://EXAMPLE.com/") +#=> # +URI.parser = URI::RFC3986_PARSER +``` + +Setters such as `URI::Generic#host=` still check their values with the rules of RFC 3986. + ## Development After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment. +`rake test:wpt` runs the conformance tests of `URI::WHATWG_PARSER`: web-platform-tests' `urltestdata.json` and `toascii.json`, and Unicode's `IdnaTestV2.txt` and `NormalizationTest.txt`. It fetches them over the network, unless `WPT_URLTESTDATA`, `WPT_TOASCII`, `IDNA_TEST_V2` and `NORMALIZATION_TEST` name local files. The `urltestdata.json` cases that are known to fail are listed in `test/wpt/urltestdata_exclusions.json`; regenerate it with `rake test:wpt:update_exclusions`. + +The Unicode data for IDNA, `lib/uri/whatwg_parser/idna_data.rb`, is generated by `rake idna:generate`. Set `UNICODE_VERSION` (for example `UNICODE_VERSION=18.0.0`) to generate it for another version of Unicode. + To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org). ## Contributing From 7219974cc45e8a278709f0a41dc2ec483135f3c6 Mon Sep 17 00:00:00 2001 From: jinroq Date: Wed, 18 Nov 2026 18:18:53 +0900 Subject: [PATCH 38/74] Follow the setters of the URL Standard for WHATWG URIs URI::WHATWG_Parser::GenericSetters is prepended to URI::Generic. For a URI that URI::WHATWG_Parser built, scheme=, user=, password=, host=, port=, path=, query= and fragment= apply the protocol, username, password, hostname, port, pathname, search and hash setters of the URL Standard to its URL record, so that, for example, host= converts a non-ASCII domain to ASCII and port= takes the leading digits. Other URIs, and URIs still being initialized, keep the setters of URI::Generic. Where the URL Standard leaves a URL unchanged because the value is rejected, the setter raises URI::InvalidComponentError. query= and fragment= take the value without a leading "?" or "#", as before, and nil removes the component. userinfo=, opaque= and registry= are not changed. The class of a URI stays when scheme= changes the scheme, so the default port of a WHATWG URI follows its scheme. A WHATWG URI without a port now reports the default port of its scheme, for every special scheme. merge! copies the components instead of going through the setters. Co-Authored-By: Claude Opus 5.5 --- lib/uri/generic.rb | 2 + lib/uri/whatwg_parser.rb | 1 + lib/uri/whatwg_parser/setters.rb | 280 ++++++++++++++++++++++ test/uri/test_whatwg_setters.rb | 394 +++++++++++++++++++++++++++++++ 4 files changed, 677 insertions(+) create mode 100644 lib/uri/whatwg_parser/setters.rb create mode 100644 test/uri/test_whatwg_setters.rb diff --git a/lib/uri/generic.rb b/lib/uri/generic.rb index ca31144..4888044 100644 --- a/lib/uri/generic.rb +++ b/lib/uri/generic.rb @@ -1624,3 +1624,5 @@ def self.use_proxy?(hostname, addr, port, no_proxy) # :nodoc: end end end + +require_relative "whatwg_parser/setters" diff --git a/lib/uri/whatwg_parser.rb b/lib/uri/whatwg_parser.rb index 1ae9934..91ac036 100644 --- a/lib/uri/whatwg_parser.rb +++ b/lib/uri/whatwg_parser.rb @@ -254,6 +254,7 @@ def build(components) arguments = [*components, nil, fragment, self] uri = SCHEMES_WITH_CLASS.include?(components[0]) ? URI.for(*arguments) : Generic.new(*arguments) uri.__send__(:set_query, query) if query + uri.__send__(:whatwg_url!) uri end diff --git a/lib/uri/whatwg_parser/setters.rb b/lib/uri/whatwg_parser/setters.rb new file mode 100644 index 0000000..66e6b96 --- /dev/null +++ b/lib/uri/whatwg_parser/setters.rb @@ -0,0 +1,280 @@ +# frozen_string_literal: true +module URI + class WHATWG_Parser + # The setters of the URL Standard (https://url.spec.whatwg.org/#api) + # on a URL record. Each returns false when the URL Standard leaves the + # URL unchanged because the value is rejected, and true otherwise, + # including when only a part of the value is applied. + + private + + # The protocol setter: the scheme state with a state override. + def set_url_scheme(url, value) + match = SCHEME.match(remove_tab_and_newline(value) + ":") + return false unless match + + scheme = match[0].chop.downcase + return false if special?(url.scheme) != special?(scheme) + return false if scheme == "file" && (includes_credentials?(url) || url.port) + return false if url.scheme == "file" && url.host == "" + + url.scheme = scheme + url.port = nil if url.port == SPECIAL_SCHEMES[scheme] + true + end + + # The username setter. The value is not stripped of tabs and newlines. + def set_url_username(url, value) + return false if cannot_have_credentials_or_port?(url) + url.username = utf8_percent_encode(value, USERINFO_PERCENT_ENCODE_SET) + true + end + + # The password setter. + def set_url_password(url, value) + return false if cannot_have_credentials_or_port?(url) + url.password = utf8_percent_encode(value, USERINFO_PERCENT_ENCODE_SET) + true + end + + # The hostname setter: the hostname state with a state override, or + # the file host state for a file URL. + def set_url_hostname(url, value) + return false if url.path.is_a?(String) + + input = remove_tab_and_newline(value) + return set_url_file_host(url, input) if url.scheme == "file" + + special = special?(url.scheme) + buffer = host_buffer(input, special) + # A ":" outside brackets would start the port, which the hostname + # setter does not set. + return false if input.size > buffer.size && input[buffer.size] == ":" + return false if special && buffer.empty? + return false if buffer.empty? && (includes_credentials?(url) || url.port) + + host = try_parse_host(buffer, special) + return false unless host + url.host = host + true + end + + # The file host state with a state override. + def set_url_file_host(url, input) + buffer = input[/\A[^\/\\?#]*/] + if buffer.empty? + url.host = "" + return true + end + + host = try_parse_host(buffer, true) + return false unless host + url.host = host == "localhost" ? "" : host + true + end + + # The host buffer of the host state: +input+ up to a ":" outside + # brackets, "/", "?", "#", or "\" for a special URL. + def host_buffer(input, special) + inside_brackets = false + input.each_char.with_index do |c, i| + return input[0, i] if c == ":" && !inside_brackets + return input[0, i] if c == "/" || c == "?" || c == "#" || (special && c == "\\") + if c == "[" + inside_brackets = true + elsif c == "]" + inside_brackets = false + end + end + input + end + + def try_parse_host(buffer, special) + parse_host(buffer, special) + rescue InvalidURIError + nil + end + + # The port setter: the port state with a state override, which takes + # the leading digits. + def set_url_port(url, value) + return false if cannot_have_credentials_or_port?(url) + + input = remove_tab_and_newline(value) + if input.empty? + url.port = nil + return true + end + + digits = input[/\A[0-9]*/] + return false if digits.empty? + port = digits.to_i + return false if port > MAX_PORT + url.port = port == SPECIAL_SCHEMES[url.scheme] ? nil : port + true + end + + # The pathname setter: the path start state with a state override, + # in which "?" and "#" are part of the path. + def set_url_path(url, value) + return false if url.path.is_a?(String) + + input = remove_tab_and_newline(value) + special = special?(url.scheme) + url.path = + if input.empty? && !special + url.host.nil? ? [""] : [] + else + parse_path(input, special, [], file: url.scheme == "file") + end + true + end + + # The search setter, given the query without a leading "?", or nil + # to remove it. + def set_url_query(url, value) + if value.nil? + url.query = nil + else + encode_set = special?(url.scheme) ? SPECIAL_QUERY_PERCENT_ENCODE_SET : QUERY_PERCENT_ENCODE_SET + url.query = utf8_percent_encode(remove_tab_and_newline(value), encode_set) + end + true + end + + # The hash setter, given the fragment without a leading "#", or nil + # to remove it. + def set_url_fragment(url, value) + if value.nil? + url.fragment = nil + else + url.fragment = utf8_percent_encode(remove_tab_and_newline(value), FRAGMENT_PERCENT_ENCODE_SET) + end + true + end + + def remove_tab_and_newline(value) + value.to_s.delete(ASCII_TAB_OR_NEWLINE) + end + + def special?(scheme) + SPECIAL_SCHEMES.key?(scheme) + end + + def includes_credentials?(url) + !url.username.empty? || !url.password.empty? + end + + def cannot_have_credentials_or_port?(url) + url.host.nil? || url.host == "" || url.scheme == "file" + end + + # Makes the setters of a URI built by WHATWG_Parser follow the URL + # Standard. Prepended to URI::Generic; a URI that WHATWG_Parser did + # not build, or one that is still being initialized, keeps the + # setters of URI::Generic. + # + # A value that the URL Standard ignores raises InvalidComponentError. + module GenericSetters # :nodoc: + def scheme=(v) + return super unless whatwg_url? + update_whatwg_url(:scheme, v) { |parser, url| parser.__send__(:set_url_scheme, url, v) } + end + + def user=(v) + return super unless whatwg_url? + update_whatwg_url(:user, v) { |parser, url| parser.__send__(:set_url_username, url, v.to_s) } + end + + def password=(v) + return super unless whatwg_url? + update_whatwg_url(:password, v) { |parser, url| parser.__send__(:set_url_password, url, v.to_s) } + end + + def host=(v) + return super unless whatwg_url? + update_whatwg_url(:host, v) { |parser, url| parser.__send__(:set_url_hostname, url, v) } + end + + def port=(v) + return super unless whatwg_url? + update_whatwg_url(:port, v) { |parser, url| parser.__send__(:set_url_port, url, v) } + end + + def path=(v) + return super unless whatwg_url? + update_whatwg_url(:path, v) { |parser, url| parser.__send__(:set_url_path, url, v) } + end + + def query=(v) + return super unless whatwg_url? + update_whatwg_url(:query, v) { |parser, url| parser.__send__(:set_url_query, url, v) } + end + + def fragment=(v) + return super unless whatwg_url? + update_whatwg_url(:fragment, v) { |parser, url| parser.__send__(:set_url_fragment, url, v) } + end + + # The default port of the scheme, which can change with #scheme= + # while the class stays. + def default_port + return super unless whatwg_url? + SPECIAL_SCHEMES[@scheme] + end + + protected + + # Marks a URI that WHATWG_Parser has finished building. + def whatwg_url! + @whatwg_url = true + set_port(default_port) if @port.nil? && default_port + end + + private + + COMPONENT_VARIABLES = %i[@scheme @user @password @host @port @path @query @opaque @fragment].freeze + private_constant :COMPONENT_VARIABLES + + # Generic#merge! replaces the components through the setters, which + # for a URL would apply the setters of the URL Standard to values + # that are already serialized, and would also set the registry, + # which always fails. The components are copied as they are. + def replace!(oth) + return super unless whatwg_url? + raise ArgumentError, "expected #{self.class} object" if self.class != oth.class + + COMPONENT_VARIABLES.each do |name| + instance_variable_set(name, oth.instance_variable_get(name)) + end + end + + def whatwg_url? + defined?(@whatwg_url) && @whatwg_url + end + + # Applies a setter to the URL record of this URI, and replaces the + # components with the result. + def update_whatwg_url(component, value) + parser = self.parser + url = parser.__send__(:basic_parse, to_s) + unless yield(parser, url) + raise InvalidComponentError, "bad component(expected #{component} component): #{value.inspect}" + end + + scheme, userinfo, host, port, _registry, path, opaque, query, fragment = parser.__send__(:to_components, url) + @scheme = scheme.freeze + @user, @password = userinfo ? userinfo.split(":", 2) : [nil, nil] + @host = host + @path = path + @opaque = opaque + @query = query + @fragment = fragment + @port = port ? port.to_i : default_port + value + end + end + + Generic.prepend(GenericSetters) + end +end diff --git a/test/uri/test_whatwg_setters.rb b/test/uri/test_whatwg_setters.rb new file mode 100644 index 0000000..c3cb161 --- /dev/null +++ b/test/uri/test_whatwg_setters.rb @@ -0,0 +1,394 @@ +# frozen_string_literal: false +require 'test/unit' +require 'uri' + +# Setters of URIs built by URI::WHATWG_PARSER follow the setters of the +# URL Standard (https://url.spec.whatwg.org/#api), except that a value +# the URL Standard ignores raises URI::InvalidComponentError instead of +# leaving the URI silently unchanged. +class URI::TestWHATWGSetters < Test::Unit::TestCase + def url(str) + URI::WHATWG_PARSER.parse(str) + end + + def assert_set(expected, str, attribute, value) + uri = url(str) + uri.public_send("#{attribute}=", value) + assert_equal(expected, uri.to_s, "#{str.dump}.#{attribute} = #{value.inspect}") + end + + def assert_rejected(str, attribute, value) + uri = url(str) + assert_raise(URI::InvalidComponentError, "#{str.dump}.#{attribute} = #{value.inspect}") do + uri.public_send("#{attribute}=", value) + end + assert_equal(url(str).to_s, uri.to_s, "unchanged after #{attribute} = #{value.inspect}") + end + + # --- which URIs ---------------------------------------------------- + + def test_rfc3986_uris_keep_their_setters + uri = URI::RFC3986_PARSER.parse("http://example.com/") + assert_raise(URI::InvalidComponentError) { uri.host = "\u{65E5}\u{672C}\u{8A9E}.jp" } + assert_raise(URI::InvalidComponentError) { uri.port = "8080abc" } + end + + def test_dup_keeps_the_setters + uri = url("http://example.com/").dup + uri.host = "\u{E9}" + assert_equal("http://xn--9ca/", uri.to_s) + end + + def test_marshal_keeps_the_setters + uri = Marshal.load(Marshal.dump(url("http://example.com/"))) + uri.host = "\u{E9}" + assert_equal("http://xn--9ca/", uri.to_s) + end + + def test_merged_uri_keeps_the_setters + uri = url("http://example.com/a") + "b" + uri.host = "\u{E9}" + assert_equal("http://xn--9ca/b", uri.to_s) + end + + def test_merge_bang + uri = url("http://example.com/a/b") + uri.merge!("../c?q#f") + assert_equal("http://example.com/c?q#f", uri.to_s) + end + + def test_merge_bang_on_an_opaque_path + uri = url("mailto:x") + uri.merge!("#f") + assert_equal("mailto:x#f", uri.to_s) + end + + def test_merge_bang_on_a_non_special_uri + uri = url("foo://h/a/b") + uri.merge!("c") + assert_equal("foo://h/a/c", uri.to_s) + end + + def test_the_value_is_returned + uri = url("http://example.com/") + assert_equal(8080, (uri.port = 8080)) + end + + # --- scheme= (protocol setter) ------------------------------------- + + def test_scheme + assert_set("https://example.com/", "http://example.com/", :scheme, "https") + assert_set("https://example.com/", "http://example.com/", :scheme, "HTTPS") + assert_set("wss://example.com/", "http://example.com/", :scheme, "wss") + assert_set("bar://h/", "foo://h/", :scheme, "bar") + end + + def test_scheme_up_to_a_colon + assert_set("https://example.com/", "http://example.com/", :scheme, "https:foo") + end + + def test_scheme_strips_tabs_and_newlines + assert_set("https://example.com/", "http://example.com/", :scheme, "ht\ttp\ns") + end + + def test_scheme_with_invalid_code_points + assert_rejected("http://example.com/", :scheme, "") + assert_rejected("http://example.com/", :scheme, "ht tp") + assert_rejected("http://example.com/", :scheme, "1http") + assert_rejected("http://example.com/", :scheme, "\u{E9}") + end + + def test_scheme_between_special_and_not_special + assert_rejected("http://example.com/", :scheme, "foo") + assert_rejected("foo://example.com/", :scheme, "http") + end + + def test_scheme_file_with_credentials_or_port + assert_rejected("http://u@example.com/", :scheme, "file") + assert_rejected("http://example.com:8080/", :scheme, "file") + assert_set("file://example.com/", "http://example.com/", :scheme, "file") + end + + def test_scheme_from_file_with_an_empty_host + assert_rejected("file:///p", :scheme, "http") + assert_set("http://h/p", "file://h/p", :scheme, "http") + end + + def test_scheme_drops_the_new_default_port + uri = url("http://example.com:443/") + uri.scheme = "https" + assert_equal("https://example.com/", uri.to_s) + assert_equal(443, uri.port) + assert_equal(443, uri.default_port) + end + + def test_scheme_keeps_another_port + assert_set("https://example.com:8080/", "http://example.com:8080/", :scheme, "https") + # http://example.com/ has no port, not port 80. + assert_set("https://example.com/", "http://example.com/", :scheme, "https") + end + + def test_scheme_keeps_the_class + uri = url("http://example.com/") + uri.scheme = "https" + assert_kind_of(URI::HTTP, uri) + end + + # --- user= and password= ------------------------------------------- + + def test_user + assert_set("http://me@example.com/", "http://example.com/", :user, "me") + assert_set("http://me:p@example.com/", "http://u:p@example.com/", :user, "me") + end + + def test_user_is_percent_encoded + assert_set("http://a%20b%40c%3A@example.com/", "http://example.com/", :user, "a b@c:") + assert_set("http://%C3%A9@example.com/", "http://example.com/", :user, "\u{E9}") + end + + def test_user_keeps_tabs + assert_set("http://a%09b@example.com/", "http://example.com/", :user, "a\tb") + end + + def test_empty_user + assert_set("http://example.com/", "http://u@example.com/", :user, "") + assert_set("http://:p@example.com/", "http://u:p@example.com/", :user, "") + assert_set("http://example.com/", "http://u@example.com/", :user, nil) + end + + def test_password + assert_set("http://u:p@example.com/", "http://u@example.com/", :password, "p") + assert_set("http://:p@example.com/", "http://example.com/", :password, "p") + assert_set("http://u:a%20b%40%3A@example.com/", "http://u@example.com/", :password, "a b@:") + end + + def test_empty_password + assert_set("http://u@example.com/", "http://u:p@example.com/", :password, "") + assert_set("http://example.com/", "http://:p@example.com/", :password, nil) + end + + def test_credentials_without_a_host + assert_rejected("file:///p", :user, "u") + assert_rejected("file://h/p", :password, "p") + assert_rejected("foo:///p", :user, "u") + assert_rejected("foo:/p", :password, "p") + assert_rejected("mailto:x", :user, "u") + end + + # --- host= (hostname setter) --------------------------------------- + + def test_host + assert_set("http://example.org/p", "http://example.com/p", :host, "example.org") + assert_set("http://example.org/p", "http://example.com/p", :host, "EXAMPLE.org") + assert_set("http://127.0.0.1/", "http://example.com/", :host, "0x7f.1") + assert_set("http://[::1]/", "http://example.com/", :host, "[0:0::1]") + end + + def test_host_to_ascii + assert_set("http://xn--wgv71a119e.jp/", "http://example.com/", :host, "\u{65E5}\u{672C}\u{8A9E}.jp") + end + + def test_host_keeps_the_port + assert_set("http://example.org:8080/", "http://example.com:8080/", :host, "example.org") + end + + def test_host_with_a_port + assert_rejected("http://example.com/", :host, "example.org:8080") + end + + def test_host_up_to_a_path_query_or_fragment + assert_set("http://a/p", "http://example.com/p", :host, "a/b") + assert_set("http://a/p", "http://example.com/p", :host, "a?b") + assert_set("http://a/p", "http://example.com/p", :host, "a#b") + assert_set("http://a/p", "http://example.com/p", :host, "a\\b") + end + + def test_host_strips_tabs_and_newlines + assert_set("http://example.org/", "http://example.com/", :host, "exa\tmple.o\nrg") + end + + def test_invalid_host + assert_rejected("http://example.com/", :host, "a b") + assert_rejected("http://example.com/", :host, "a%") + assert_rejected("http://example.com/", :host, "[::1") + assert_rejected("http://example.com/", :host, "a\u{200C}b") + end + + def test_empty_host_of_a_special_uri + assert_rejected("http://example.com/", :host, "") + assert_rejected("http://example.com/", :host, nil) + assert_rejected("http://example.com/", :host, "/a") + end + + def test_host_of_a_non_special_uri + assert_set("foo://example.org/p", "foo://example.com/p", :host, "example.org") + assert_set("foo://%C3%A9/p", "foo://example.com/p", :host, "\u{E9}") + assert_rejected("foo://example.com/p", :host, "a\\b") + end + + def test_empty_host_of_a_non_special_uri + assert_set("foo:///p", "foo://example.com/p", :host, "") + assert_rejected("foo://u@example.com/p", :host, "") + assert_rejected("foo://example.com:8080/p", :host, "") + end + + def test_host_of_an_opaque_path + assert_rejected("mailto:x", :host, "example.com") + end + + def test_host_of_a_file_uri + assert_set("file://example.com/p", "file:///p", :host, "example.com") + assert_set("file:///p", "file://example.com/p", :host, "localhost") + assert_set("file:///p", "file://example.com/p", :host, "") + assert_rejected("file:///p", :host, "example.com:8080") + end + + def test_hostname_wraps_ipv6 + uri = url("http://example.com/") + uri.hostname = "::1" + assert_equal("http://[::1]/", uri.to_s) + end + + # --- port= --------------------------------------------------------- + + def test_port + assert_set("http://example.com:8080/", "http://example.com/", :port, 8080) + assert_set("http://example.com:8080/", "http://example.com/", :port, "8080") + assert_set("http://example.com:0/", "http://example.com/", :port, 0) + end + + def test_port_boundaries + assert_set("http://example.com:65535/", "http://example.com/", :port, 65535) + assert_rejected("http://example.com/", :port, 65536) + assert_rejected("http://example.com/", :port, "99999999999999999999") + end + + def test_port_up_to_a_non_digit + assert_set("http://example.com:8080/", "http://example.com/", :port, "8080abc") + assert_set("http://example.com:8080/", "http://example.com/", :port, "8080/x") + end + + def test_port_strips_tabs_and_newlines + assert_set("http://example.com:8080/", "http://example.com/", :port, "80\t8\n0") + end + + def test_port_without_digits + assert_rejected("http://example.com/", :port, "abc") + assert_rejected("http://example.com/", :port, " 8080") + assert_rejected("http://example.com/", :port, -1) + end + + def test_default_port + uri = url("http://example.com:8080/") + uri.port = 80 + assert_equal("http://example.com/", uri.to_s) + assert_equal(80, uri.port) + end + + def test_empty_port + assert_set("http://example.com/", "http://example.com:8080/", :port, "") + assert_set("http://example.com/", "http://example.com:8080/", :port, nil) + assert_set("foo://example.com/", "foo://example.com:8080/", :port, nil) + end + + def test_port_without_a_host + assert_rejected("file://example.com/", :port, 8080) + assert_rejected("foo:///p", :port, 8080) + assert_rejected("foo:/p", :port, 8080) + end + + # --- path= (pathname setter) --------------------------------------- + + def test_path + assert_set("http://example.com/a/b", "http://example.com/x", :path, "/a/b") + assert_set("http://example.com/a", "http://example.com/x", :path, "a") + assert_set("http://example.com/", "http://example.com/x", :path, "") + end + + def test_path_is_normalized_and_percent_encoded + assert_set("http://example.com/b", "http://example.com/x", :path, "/a/../b") + assert_set("http://example.com/a%20b", "http://example.com/x", :path, "a b") + assert_set("http://example.com/a%3Fb%23c", "http://example.com/x", :path, "a?b#c") + end + + def test_path_keeps_query_and_fragment + assert_set("http://example.com/a?q#f", "http://example.com/x?q#f", :path, "a") + end + + def test_path_backslashes + assert_set("http://example.com/a/b", "http://example.com/x", :path, "\\a\\b") + assert_set("foo://h/\\a", "foo://h/x", :path, "\\a") + end + + def test_path_of_a_non_special_uri + assert_set("foo://h/a", "foo://h/x", :path, "a") + assert_set("foo://h", "foo://h/x", :path, "") + assert_set("foo:/", "foo:/x", :path, "") + assert_set("foo:/.//a", "foo:/x", :path, "//a") + end + + def test_path_of_a_file_uri + assert_set("file:///C:/a", "file:///x", :path, "C|/a") + end + + def test_path_of_an_opaque_path + assert_rejected("mailto:x", :path, "y") + end + + # --- query= (search setter) ---------------------------------------- + + def test_query + assert_set("http://example.com/?a=b", "http://example.com/", :query, "a=b") + assert_set("http://example.com/?a%20b", "http://example.com/?x", :query, "a b") + assert_set("http://example.com/?", "http://example.com/?x", :query, "") + end + + def test_query_keeps_a_leading_question_mark + assert_set("http://example.com/??a", "http://example.com/", :query, "?a") + end + + def test_query_percent_encoding + assert_set("http://example.com/?%27%23", "http://example.com/", :query, "'#") + assert_set("foo://h/?'%23", "foo://h/", :query, "'#") + assert_set("http://example.com/?%C3%A9", "http://example.com/", :query, "\u{E9}") + end + + def test_query_strips_tabs_and_newlines + assert_set("http://example.com/?ab", "http://example.com/", :query, "a\tb\n") + end + + def test_query_removed + assert_set("http://example.com/#f", "http://example.com/?q#f", :query, nil) + end + + def test_query_of_an_opaque_path + assert_set("mailto:x?a", "mailto:x", :query, "a") + assert_set("mailto:x", "mailto:x?q", :query, nil) + end + + def test_query_removed_from_an_opaque_path_ending_with_a_space + # The space before "?" was encoded when parsed, so it stays. + assert_set("sc:a%20", "sc:a ?q", :query, nil) + end + + # --- fragment= (hash setter) --------------------------------------- + + def test_fragment + assert_set("http://example.com/#a", "http://example.com/", :fragment, "a") + assert_set("http://example.com/#a%20b%60", "http://example.com/#x", :fragment, "a b`") + assert_set("http://example.com/#a#b", "http://example.com/", :fragment, "a#b") + assert_set("http://example.com/#", "http://example.com/#x", :fragment, "") + end + + def test_fragment_strips_tabs_and_newlines + assert_set("http://example.com/#ab", "http://example.com/", :fragment, "a\tb\n") + end + + def test_fragment_removed + assert_set("http://example.com/?q", "http://example.com/?q#f", :fragment, nil) + end + + def test_fragment_removed_from_an_opaque_path_ending_with_a_space + assert_set("sc:a%20", "sc:a #f", :fragment, nil) + end +end From 09a876dcc167d5441cabf236c0c9eb2394207bcf Mon Sep 17 00:00:00 2001 From: jinroq Date: Wed, 18 Nov 2026 18:19:54 +0900 Subject: [PATCH 39/74] Let WPT::Exclusions identify cases by other fields The fields of an entry (input and base by default) and the key of a case are now parameters, so that the exclusion list can also hold cases of setters_tests.json. Co-Authored-By: Claude Opus 5.5 --- test/wpt/test_wpt_harness.rb | 20 ++++++++++++++++++++ test/wpt/wpt_url_test_data.rb | 25 ++++++++++++++----------- 2 files changed, 34 insertions(+), 11 deletions(-) diff --git a/test/wpt/test_wpt_harness.rb b/test/wpt/test_wpt_harness.rb index f432500..03a2eec 100644 --- a/test/wpt/test_wpt_harness.rb +++ b/test/wpt/test_wpt_harness.rb @@ -404,4 +404,24 @@ def test_exclusions_update_follows_data_order WPT::Exclusions.update({}, cases, failing).keys ) end + + def test_exclusions_with_other_fields + fields = %w[setter href new_value] + entries = { ["port", "http://x/", "1"] => "r" } + Dir.mktmpdir do |dir| + path = File.join(dir, "exclusions.json") + WPT::Exclusions.save(path, entries, fields: fields) + assert_equal([{ "setter" => "port", "href" => "http://x/", "new_value" => "1", "reason" => "r" }], + JSON.parse(File.read(path))) + assert_equal(entries, WPT::Exclusions.load(path, fields: fields)) + end + end + + def test_exclusions_stale_and_update_with_another_key + key = ->(c) { [c["setter"], c["href"]] } + cases = [{ "setter" => "port", "href" => "a" }, { "setter" => "hash", "href" => "b" }] + assert_equal([["port", "gone"]], WPT::Exclusions.stale({ ["port", "gone"] => "r", ["port", "a"] => "r" }, cases, key: key)) + assert_equal({ ["hash", "b"] => WPT::Exclusions::UNCLASSIFIED }, + WPT::Exclusions.update({}, cases, [["hash", "b"]], key: key)) + end end diff --git a/test/wpt/wpt_url_test_data.rb b/test/wpt/wpt_url_test_data.rb index ea55062..8cc47d2 100644 --- a/test/wpt/wpt_url_test_data.rb +++ b/test/wpt/wpt_url_test_data.rb @@ -138,13 +138,16 @@ def run(test_case, parser) module Exclusions UNCLASSIFIED = "unclassified" PATH = File.expand_path("urltestdata_exclusions.json", __dir__) + # The fields of an entry that identify a case of urltestdata.json. + FIELDS = %w[input base].freeze module_function - # Returns a Hash of [input, base] => reason. - def load(path) + # Returns a Hash of key => reason, where the key is the values of + # +fields+ in each entry. + def load(path, fields: FIELDS) JSON.parse(File.read(path)).each_with_object({}) do |entry, result| - key = [entry["input"], entry["base"]] + key = entry.values_at(*fields) reason = entry["reason"] raise ArgumentError, "duplicate exclusion: #{key.inspect}" if result.key?(key) raise ArgumentError, "exclusion without reason: #{key.inspect}" if reason.nil? || reason.empty? @@ -152,24 +155,24 @@ def load(path) end end - def save(path, exclusions) - entries = exclusions.map { |(input, base), reason| { "input" => input, "base" => base, "reason" => reason } } + def save(path, exclusions, fields: FIELDS) + entries = exclusions.map { |key, reason| fields.zip(key).to_h.merge("reason" => reason) } File.write(path, JSON.pretty_generate(entries) + "\n") end - # Keys of +exclusions+ that no longer match any case in +cases+. - def stale(exclusions, cases) - present = cases.map { |c| URLTestData.key(c) } - exclusions.keys - present + # Keys of +exclusions+ that no longer match any case in +cases+, with + # +key+ giving the key of a case. + def stale(exclusions, cases, key: URLTestData.method(:key)) + exclusions.keys - cases.map(&key) end # Rebuilds the exclusions from the keys of the currently +failing+ # cases, keeping known reasons and marking new ones UNCLASSIFIED. # Cases that pass now, or that are gone from +cases+, are dropped. # The result follows the order of +cases+. - def update(exclusions, cases, failing) + def update(exclusions, cases, failing, key: URLTestData.method(:key)) failing = failing.to_a - cases.map { |c| URLTestData.key(c) }.select { |k| failing.include?(k) }.each_with_object({}) do |k, result| + cases.map(&key).select { |k| failing.include?(k) }.each_with_object({}) do |k, result| result[k] = exclusions.fetch(k, UNCLASSIFIED) end end From 981c5eae84d4573c8ceadadb6add4e06c3c56675 Mon Sep 17 00:00:00 2001 From: jinroq Date: Wed, 18 Nov 2026 18:20:44 +0900 Subject: [PATCH 40/74] Remove the port only for an empty value in port= The port setter of the URL Standard removes the port when the given value is the empty string, before tabs and newlines are removed. A value of only tabs and newlines leaves no digits, so it is rejected instead of removing the port. Co-Authored-By: Claude Opus 5.5 --- lib/uri/whatwg_parser/setters.rb | 7 ++++--- test/uri/test_whatwg_setters.rb | 6 ++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/lib/uri/whatwg_parser/setters.rb b/lib/uri/whatwg_parser/setters.rb index 66e6b96..d3d7359 100644 --- a/lib/uri/whatwg_parser/setters.rb +++ b/lib/uri/whatwg_parser/setters.rb @@ -100,13 +100,14 @@ def try_parse_host(buffer, special) def set_url_port(url, value) return false if cannot_have_credentials_or_port?(url) - input = remove_tab_and_newline(value) - if input.empty? + # Only the empty string removes the port, before tabs and newlines + # are removed. + if value.to_s.empty? url.port = nil return true end - digits = input[/\A[0-9]*/] + digits = remove_tab_and_newline(value)[/\A[0-9]*/] return false if digits.empty? port = digits.to_i return false if port > MAX_PORT diff --git a/test/uri/test_whatwg_setters.rb b/test/uri/test_whatwg_setters.rb index c3cb161..71d59c6 100644 --- a/test/uri/test_whatwg_setters.rb +++ b/test/uri/test_whatwg_setters.rb @@ -291,6 +291,12 @@ def test_empty_port assert_set("foo://example.com/", "foo://example.com:8080/", :port, nil) end + def test_port_of_only_tabs_and_newlines + # Only the empty string removes the port; tabs and newlines are + # removed afterwards and leave no digits. + assert_rejected("http://example.com:8080/", :port, "\n\t") + end + def test_port_without_a_host assert_rejected("file://example.com/", :port, 8080) assert_rejected("foo:///p", :port, 8080) From 2f6af2d3be9db74c7e9953fab717837adf38ba08 Mon Sep 17 00:00:00 2001 From: jinroq Date: Wed, 18 Nov 2026 18:21:52 +0900 Subject: [PATCH 41/74] Run WPT setters_tests.json in rake test:wpt setters_tests.json sets one attribute of the URL API on a parsed URL and lists the attributes expected afterwards. The protocol, username, password, hostname, port, pathname, search and hash cases run with the corresponding setters of URI; search and hash map their leading "?" or "#" and the empty string to the conventions of query= and fragment=, and a value rejected with InvalidComponentError counts as leaving the URL unchanged. The host and href cases are not run, since URI has no setter for a host with a port, nor for the whole URL. Known failures go in test/wpt/setters_tests_exclusions.json, which rake test:wpt:update_exclusions now regenerates as well. All 213 cases that run pass, so it is empty. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/wpt.yml | 13 ++-- rakelib/wpt.rake | 4 +- test/wpt/setters_tests_exclusions.json | 1 + test/wpt/test_wpt_setters.rb | 58 ++++++++++++++ test/wpt/test_wpt_setters_harness.rb | 103 +++++++++++++++++++++++++ test/wpt/update_exclusions.rb | 40 ++++++---- test/wpt/wpt_setters_test_data.rb | 92 ++++++++++++++++++++++ 7 files changed, 289 insertions(+), 22 deletions(-) create mode 100644 test/wpt/setters_tests_exclusions.json create mode 100644 test/wpt/test_wpt_setters.rb create mode 100644 test/wpt/test_wpt_setters_harness.rb create mode 100644 test/wpt/wpt_setters_test_data.rb diff --git a/.github/workflows/wpt.yml b/.github/workflows/wpt.yml index 3602443..e21e973 100644 --- a/.github/workflows/wpt.yml +++ b/.github/workflows/wpt.yml @@ -1,17 +1,18 @@ name: WPT -# Runs web-platform-tests' url/resources/urltestdata.json and toascii.json, -# fetched from WPT master, against URI::WHATWG_PARSER (rake test:wpt). The +# Runs web-platform-tests' url/resources/urltestdata.json, toascii.json and +# setters_tests.json, fetched from WPT master, against URI::WHATWG_PARSER +# (rake test:wpt). The # same task runs Unicode's IdnaTestV2.txt and NormalizationTest.txt for the # Unicode version of the IDNA data, and fails when Unicode has released a # newer version than that data. # # The URL Standard is a living standard and WPT follows its changes, so the # scheduled run is how a change in the standard is noticed: it fails when a -# case newer than test/wpt/urltestdata_exclusions.json fails, or when an -# excluded case passes or disappears. On push and pull requests a failure is -# reported without failing the checks, since it can come from WPT rather -# than from the change being tested. (GitHub runs scheduled workflows on the +# case newer than test/wpt/*_exclusions.json fails, or when an excluded case +# passes or disappears. On push and pull requests a failure is reported +# without failing the checks, since it can come from WPT rather than from +# the change being tested. (GitHub runs scheduled workflows on the # default branch only, and notifies of a failed scheduled run.) on: diff --git a/rakelib/wpt.rake b/rakelib/wpt.rake index f9dbfd9..aa1bab8 100644 --- a/rakelib/wpt.rake +++ b/rakelib/wpt.rake @@ -2,13 +2,13 @@ require "rake/testtask" namespace :test do Rake::TestTask.new(:wpt) do |t| - t.description = "Run WPT urltestdata.json and toascii.json and Unicode IdnaTestV2.txt and NormalizationTest.txt against URI::WHATWG_PARSER (needs network unless WPT_URLTESTDATA, WPT_TOASCII, IDNA_TEST_V2 and NORMALIZATION_TEST are local files)" + t.description = "Run WPT urltestdata.json, toascii.json and setters_tests.json and Unicode IdnaTestV2.txt and NormalizationTest.txt against URI::WHATWG_PARSER (needs network unless WPT_URLTESTDATA, WPT_TOASCII, WPT_SETTERS, IDNA_TEST_V2 and NORMALIZATION_TEST are local files)" t.libs << "lib" t.test_files = FileList["test/wpt/test_*.rb"] end namespace :wpt do - desc "Regenerate test/wpt/urltestdata_exclusions.json from the currently failing cases" + desc "Regenerate test/wpt/urltestdata_exclusions.json and setters_tests_exclusions.json from the currently failing cases" task :update_exclusions do ruby "-Ilib", "test/wpt/update_exclusions.rb" end diff --git a/test/wpt/setters_tests_exclusions.json b/test/wpt/setters_tests_exclusions.json new file mode 100644 index 0000000..fe51488 --- /dev/null +++ b/test/wpt/setters_tests_exclusions.json @@ -0,0 +1 @@ +[] diff --git a/test/wpt/test_wpt_setters.rb b/test/wpt/test_wpt_setters.rb new file mode 100644 index 0000000..e2c4180 --- /dev/null +++ b/test/wpt/test_wpt_setters.rb @@ -0,0 +1,58 @@ +# frozen_string_literal: true +require 'test/unit' +require 'uri' +require_relative 'wpt_setters_test_data' + +# Runs WPT url/resources/setters_tests.json against the setters of URIs +# built by URI::WHATWG_PARSER. +# +# The data is fetched from WPT master on every run, unless WPT_SETTERS +# names a local file or another https URL. The cases of setters that URI +# has no counterpart for (WPT::SettersTestData::UNSUPPORTED) are not +# run. Cases listed in setters_tests_exclusions.json are known to fail; +# as for urltestdata.json, the test fails if one of them passes or no +# longer exists. Regenerate the list with +# `rake test:wpt:update_exclusions`. +class WPT::TestSetters < Test::Unit::TestCase + Setters = WPT::SettersTestData + + SOURCE = Setters.source + CASES = Setters.load(SOURCE) + EXCLUSIONS = WPT::Exclusions.load(Setters::EXCLUSIONS_PATH, fields: Setters::EXCLUSION_FIELDS) + KEY = Setters.method(:key) + + CASES.each_with_index do |test_case, index| + next unless Setters.supported?(test_case) + next if EXCLUSIONS.key?(Setters.key(test_case)) + label = "##{index + 1} #{test_case["setter"]} #{test_case["href"].inspect} = #{test_case["new_value"].inspect}" + data(label, test_case) + end + + def test_case(test_case) + message = Setters.run(test_case, URI::WHATWG_PARSER) + flunk(message) if message + end + + def test_excluded_cases_still_fail + passing = CASES.select do |test_case| + EXCLUSIONS.key?(Setters.key(test_case)) && Setters.run(test_case, URI::WHATWG_PARSER).nil? + end + + assert_empty( + passing.map { |c| Setters.key(c) }, + "these excluded cases pass now; remove them from #{Setters::EXCLUSIONS_PATH} " \ + "(rake test:wpt:update_exclusions)" + ) + unsupported = CASES.count { |c| !Setters.supported?(c) } + notify("setters_tests: #{CASES.size} cases, #{unsupported} of unsupported setters, " \ + "#{EXCLUSIONS.size} excluded (source: #{SOURCE})") + end + + def test_no_stale_exclusions + assert_empty( + WPT::Exclusions.stale(EXCLUSIONS, CASES, key: KEY), + "these exclusions match no case in #{SOURCE}; " \ + "remove them from #{Setters::EXCLUSIONS_PATH} (rake test:wpt:update_exclusions)" + ) + end +end diff --git a/test/wpt/test_wpt_setters_harness.rb b/test/wpt/test_wpt_setters_harness.rb new file mode 100644 index 0000000..e8fa1d6 --- /dev/null +++ b/test/wpt/test_wpt_setters_harness.rb @@ -0,0 +1,103 @@ +# frozen_string_literal: true +require 'test/unit' +require 'uri' +require_relative 'wpt_setters_test_data' + +# Tests for the harness that runs WPT url/resources/setters_tests.json. +# These never touch the network. +class WPT::TestSettersHarness < Test::Unit::TestCase + Setters = WPT::SettersTestData + + def setter_case(setter, href, new_value, expected) + { "setter" => setter, "href" => href, "new_value" => new_value, "expected" => expected } + end + + def test_flatten + data = { + "comment" => ["a", "b"], + "port" => [{ "href" => "http://x/", "new_value" => "1", "expected" => { "port" => "1" } }], + "hash" => [{ "comment" => "c", "href" => "http://x/", "new_value" => "", "expected" => {} }], + } + cases = Setters.flatten(data) + assert_equal(%w[port hash], cases.map { |c| c["setter"] }) + assert_equal("http://x/", cases[0]["href"]) + assert_equal("c", cases[1]["comment"]) + end + + def test_key + assert_equal(["port", "http://x/", "1"], Setters.key(setter_case("port", "http://x/", "1", {}))) + end + + def test_supported + %w[protocol username password hostname port pathname search hash].each do |setter| + assert_true(Setters.supported?(setter_case(setter, "http://x/", "", {})), setter) + end + assert_false(Setters.supported?(setter_case("host", "http://x/", "", {}))) + assert_false(Setters.supported?(setter_case("href", "http://x/", "", {}))) + end + + def apply(setter, href, value) + uri = URI::WHATWG_PARSER.parse(href) + Setters.apply(uri, setter, value) + uri.to_s + end + + def test_apply_maps_the_setters + assert_equal("https://x/", apply("protocol", "http://x/", "https")) + assert_equal("http://u@x/", apply("username", "http://x/", "u")) + assert_equal("http://:p@x/", apply("password", "http://x/", "p")) + assert_equal("http://y/", apply("hostname", "http://x/", "y")) + assert_equal("http://x:1/", apply("port", "http://x/", "1")) + assert_equal("http://x/p", apply("pathname", "http://x/", "p")) + end + + def test_apply_search + assert_equal("http://x/?a", apply("search", "http://x/", "?a")) + assert_equal("http://x/?a", apply("search", "http://x/", "a")) + assert_equal("http://x/??a", apply("search", "http://x/", "??a")) + assert_equal("http://x/?", apply("search", "http://x/?q", "?")) + assert_equal("http://x/", apply("search", "http://x/?q", "")) + end + + def test_apply_hash + assert_equal("http://x/#a", apply("hash", "http://x/", "#a")) + assert_equal("http://x/#a", apply("hash", "http://x/", "a")) + assert_equal("http://x/##a", apply("hash", "http://x/", "##a")) + assert_equal("http://x/#", apply("hash", "http://x/#f", "#")) + assert_equal("http://x/", apply("hash", "http://x/#f", "")) + end + + def test_apply_unsupported + assert_raise(ArgumentError) { apply("host", "http://x/", "y") } + end + + def test_run_passes + c = setter_case("port", "http://x/", "8080", { "href" => "http://x:8080/", "port" => "8080" }) + assert_nil(Setters.run(c, URI::WHATWG_PARSER)) + end + + def test_run_reports_differences + c = setter_case("port", "http://x/", "8080", { "href" => "http://x:9090/", "port" => "9090" }) + message = Setters.run(c, URI::WHATWG_PARSER) + assert_match(/href: expected "http:\/\/x:9090\/", got "http:\/\/x:8080\/"/, message) + assert_match(/port: expected "9090", got "8080"/, message) + end + + def test_run_treats_a_rejected_value_as_unchanged + c = setter_case("port", "http://x/", "abc", { "href" => "http://x/", "port" => "" }) + assert_nil(Setters.run(c, URI::WHATWG_PARSER)) + end + + def test_run_reports_other_exceptions + parser = Object.new + def parser.parse(_) + raise ArgumentError, "boom" + end + c = setter_case("port", "http://x/", "1", {}) + assert_match(/ArgumentError: boom/, Setters.run(c, parser)) + end + + def test_exclusions_path + assert_equal(File.expand_path("setters_tests_exclusions.json", __dir__), Setters::EXCLUSIONS_PATH) + end +end diff --git a/test/wpt/update_exclusions.rb b/test/wpt/update_exclusions.rb index ef7dfaf..e605265 100644 --- a/test/wpt/update_exclusions.rb +++ b/test/wpt/update_exclusions.rb @@ -1,23 +1,35 @@ # frozen_string_literal: true -# Regenerates urltestdata_exclusions.json from the cases that currently -# fail with URI::WHATWG_PARSER. Known reasons are kept, new failures are -# marked "unclassified", and cases that pass now or no longer exist in -# the data are dropped. +# Regenerates urltestdata_exclusions.json and setters_tests_exclusions.json +# from the cases that currently fail with URI::WHATWG_PARSER. Known +# reasons are kept, new failures are marked "unclassified", and cases +# that pass now or no longer exist in the data are dropped. # # Usage: ruby -Ilib test/wpt/update_exclusions.rb # (or rake test:wpt:update_exclusions) require 'uri' require_relative 'wpt_url_test_data' +require_relative 'wpt_setters_test_data' -source = WPT::URLTestData.source -path = WPT::Exclusions::PATH +def update_exclusions(source:, path:, cases:, key:, fields:) + current = File.exist?(path) ? WPT::Exclusions.load(path, fields: fields) : {} + failing = cases.reject { |c| yield(c).nil? }.map(&key) + updated = WPT::Exclusions.update(current, cases, failing, key: key) + WPT::Exclusions.save(path, updated, fields: fields) + + added = (updated.keys - current.keys).size + removed = (current.keys - updated.keys).size + puts "#{source}: #{cases.size} cases, #{cases.size - updated.size} passing, #{updated.size} excluded (+#{added}, -#{removed})" +end -cases = WPT::URLTestData.load(source) -current = File.exist?(path) ? WPT::Exclusions.load(path) : {} -failing = cases.reject { |c| WPT::URLTestData.run(c, URI::WHATWG_PARSER).nil? }.map { |c| WPT::URLTestData.key(c) } -updated = WPT::Exclusions.update(current, cases, failing) -WPT::Exclusions.save(path, updated) +source = WPT::URLTestData.source +update_exclusions( + source: source, path: WPT::Exclusions::PATH, cases: WPT::URLTestData.load(source), + key: WPT::URLTestData.method(:key), fields: WPT::Exclusions::FIELDS +) { |c| WPT::URLTestData.run(c, URI::WHATWG_PARSER) } -added = (updated.keys - current.keys).size -removed = (current.keys - updated.keys).size -puts "#{source}: #{cases.size} cases, #{cases.size - updated.size} passing, #{updated.size} excluded (+#{added}, -#{removed})" +setters = WPT::SettersTestData +source = setters.source +update_exclusions( + source: source, path: setters::EXCLUSIONS_PATH, cases: setters.load(source).select { |c| setters.supported?(c) }, + key: setters.method(:key), fields: setters::EXCLUSION_FIELDS +) { |c| setters.run(c, URI::WHATWG_PARSER) } diff --git a/test/wpt/wpt_setters_test_data.rb b/test/wpt/wpt_setters_test_data.rb new file mode 100644 index 0000000..888f499 --- /dev/null +++ b/test/wpt/wpt_setters_test_data.rb @@ -0,0 +1,92 @@ +# frozen_string_literal: true +require 'json' +require 'uri' +require_relative 'wpt_url_test_data' + +module WPT + # Harness for url/resources/setters_tests.json, which sets one + # attribute of the URL API on a parsed URL and lists the attributes + # expected afterwards. + # + # The setters map to those of URI: protocol to scheme=, username to + # user=, password to password=, hostname to host=, port to port=, + # pathname to path=, search to query= and hash to fragment=. query= and + # fragment= take the value without the leading "?" or "#" that search + # and hash strip, and nil for the empty string that removes the + # component. A value that URI rejects with InvalidComponentError is + # one that the URL Standard ignores, so the attributes are compared + # as they are after it. + module SettersTestData + DEFAULT_SOURCE = "https://raw.githubusercontent.com/web-platform-tests/wpt/master/url/resources/setters_tests.json" + EXCLUSIONS_PATH = File.expand_path("setters_tests_exclusions.json", __dir__) + EXCLUSION_FIELDS = %w[setter href new_value].freeze + + # Setters of the URL API that URI has no counterpart for. + UNSUPPORTED = { + "host" => "URI has no setter for a host and a port together", + "href" => "URI has no setter for the whole URL", + }.freeze + + module_function + + # WPT_SETTERS (a local path or an https URL) if set, otherwise WPT + # master. + def source + ENV["WPT_SETTERS"] || DEFAULT_SOURCE + end + + def load(source) + json = source.match?(%r{\A[A-Za-z][A-Za-z0-9+.-]*://}) ? URLTestData.fetch(source) : File.read(source) + flatten(JSON.parse(json)) + end + + # The cases of every setter, each with its "setter". + def flatten(data) + data.flat_map do |setter, cases| + next [] if setter == "comment" + cases.map { |c| c.merge("setter" => setter) } + end + end + + def key(test_case) + test_case.values_at(*EXCLUSION_FIELDS) + end + + def supported?(test_case) + !UNSUPPORTED.key?(test_case["setter"]) + end + + def apply(uri, setter, value) + case setter + when "protocol" then uri.scheme = value + when "username" then uri.user = value + when "password" then uri.password = value + when "hostname" then uri.host = value + when "port" then uri.port = value + when "pathname" then uri.path = value + when "search" then uri.query = value.empty? ? nil : value.sub(/\A\?/, "") + when "hash" then uri.fragment = value.empty? ? nil : value.sub(/\A#/, "") + else raise ArgumentError, "unsupported setter: #{setter}" + end + end + + # Runs +test_case+ with +parser+. Returns nil when it passes, or a + # message. + def run(test_case, parser) + uri = parser.parse(test_case["href"]) + begin + apply(uri, test_case["setter"], test_case["new_value"]) + rescue URI::InvalidComponentError + # The URL Standard leaves the URL unchanged. + end + + actual = URLTestData.components(uri) + expected = test_case["expected"] + diffs = expected.keys.select { |k| actual.key?(k) && expected[k] != actual[k] } + return nil if diffs.empty? + diffs.map { |k| "#{k}: expected #{expected[k].inspect}, got #{actual[k].inspect}" }.join("\n") + rescue StandardError => e + "#{e.class}: #{e.message}" + end + end +end From bd72da17d59c8fc732a77b2eb5e57180b3f57f96 Mon Sep 17 00:00:00 2001 From: jinroq Date: Wed, 18 Nov 2026 18:22:18 +0900 Subject: [PATCH 42/74] Document the setters of WHATWG URIs Co-Authored-By: Claude Opus 5.5 --- README.md | 13 +++++++++++-- lib/uri/common.rb | 9 +++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1a85757..9404d87 100644 --- a/README.md +++ b/README.md @@ -70,13 +70,22 @@ URI("http://EXAMPLE.com/") URI.parser = URI::RFC3986_PARSER ``` -Setters such as `URI::Generic#host=` still check their values with the rules of RFC 3986. +The setters of a URI built by `URI::WHATWG_PARSER` follow the setters of the URL Standard. A value that the URL Standard ignores raises `URI::InvalidComponentError`: + +```ruby +uri = URI::WHATWG_PARSER.parse("http://example.com/") +uri.host = "日本語.jp" +uri.port = "8080abc" +uri.to_s #=> "http://xn--wgv71a119e.jp:8080/" +uri.port = "abc" +# raises URI::InvalidComponentError +``` ## Development After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment. -`rake test:wpt` runs the conformance tests of `URI::WHATWG_PARSER`: web-platform-tests' `urltestdata.json` and `toascii.json`, and Unicode's `IdnaTestV2.txt` and `NormalizationTest.txt`. It fetches them over the network, unless `WPT_URLTESTDATA`, `WPT_TOASCII`, `IDNA_TEST_V2` and `NORMALIZATION_TEST` name local files. The `urltestdata.json` cases that are known to fail are listed in `test/wpt/urltestdata_exclusions.json`; regenerate it with `rake test:wpt:update_exclusions`. +`rake test:wpt` runs the conformance tests of `URI::WHATWG_PARSER`: web-platform-tests' `urltestdata.json`, `toascii.json` and `setters_tests.json`, and Unicode's `IdnaTestV2.txt` and `NormalizationTest.txt`. It fetches them over the network, unless `WPT_URLTESTDATA`, `WPT_TOASCII`, `WPT_SETTERS`, `IDNA_TEST_V2` and `NORMALIZATION_TEST` name local files. The cases that are known to fail are listed in `test/wpt/urltestdata_exclusions.json` and `test/wpt/setters_tests_exclusions.json`; regenerate them with `rake test:wpt:update_exclusions`. The Unicode data for IDNA, `lib/uri/whatwg_parser/idna_data.rb`, is generated by `rake idna:generate`. Set `UNICODE_VERSION` (for example `UNICODE_VERSION=18.0.0`) to generate it for another version of Unicode. diff --git a/lib/uri/common.rb b/lib/uri/common.rb index 894c44b..f5bf869 100644 --- a/lib/uri/common.rb +++ b/lib/uri/common.rb @@ -48,6 +48,15 @@ module URI # # URI::WHATWG_PARSER.parse("http://\u{65E5}\u{672C}\u{8A9E}.jp/").host # # => "xn--wgv71a119e.jp" + # + # The setters of a URI it builds follow the setters of the URL + # Standard, and raise URI::InvalidComponentError for a value that the + # URL Standard ignores: + # + # uri = URI::WHATWG_PARSER.parse("http://example.com/") + # uri.port = "8080abc" + # uri.to_s + # # => "http://example.com:8080/" WHATWG_PARSER = WHATWG_Parser.new Ractor.make_shareable(WHATWG_PARSER) if defined?(Ractor) From 11a6a994e999eebcaa11625ef7b975617d469f68 Mon Sep 17 00:00:00 2001 From: jinroq Date: Wed, 18 Nov 2026 18:34:27 +0900 Subject: [PATCH 43/74] Port WPT url-setters-stripping.any.js The WPT test generates its cases in JavaScript rather than in a JSON file, so its rules are ported to test/uri: with https and a non-special scheme, U+0000, tab, LF, CR and U+001F at the start, in the middle and at the end of the value of the protocol, username, password, hostname, port, pathname, search and hash setters. The host setter and searchParams cases are not ported, since URI has no equivalent. Co-Authored-By: Claude Opus 5.5 --- test/uri/test_whatwg_setters_stripping.rb | 95 +++++++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 test/uri/test_whatwg_setters_stripping.rb diff --git a/test/uri/test_whatwg_setters_stripping.rb b/test/uri/test_whatwg_setters_stripping.rb new file mode 100644 index 0000000..1253bfc --- /dev/null +++ b/test/uri/test_whatwg_setters_stripping.rb @@ -0,0 +1,95 @@ +# frozen_string_literal: false +require 'test/unit' +require 'uri' + +# A port of WPT url/url-setters-stripping.any.js: which C0 controls the +# setters of a WHATWG URI strip (tab, LF and CR) and which they keep or +# reject, at the start, in the middle and at the end of the value. +# +# The cases of the host setter (URI has no setter for a host with a +# port) and of searchParams (URI has no equivalent) are not ported. A +# value rejected with URI::InvalidComponentError leaves the URI +# unchanged, as the URL Standard does. +class URI::TestWHATWGSettersStripping < Test::Unit::TestCase + SCHEMES = ["https", "wpt++"].freeze + # As in WPT, only these C0 controls are tested: user agents treat the + # others like U+0000 or U+001F. + CODE_POINTS = [0x00, 0x09, 0x0A, 0x0D, 0x1F].freeze + STRIPPED = [0x09, 0x0A, 0x0D].freeze + + def self.url_string(scheme: "https", username: "username", password: "password", host: "host", + port: "8000", pathname: "path", search: "query", hash: "fragment") + "#{scheme}://#{username}:#{password}@#{host}:#{port}/#{pathname}?#{search}##{hash}" + end + + # encodeURIComponent of a C0 control. + def self.encode(char) + format("%%%02X", char.ord) + end + + def self.reference(code_point) + format("U+%04X", code_point) + end + + def self.affixed(char) + [["leading", char + "test"], ["middle", "te" + char + "st"], ["trailing", "test" + char]] + end + + # Defines a test that sets +attribute+ to +value+ on the URL of + # +scheme+, expecting the URL of +expected_parts+ afterwards. + def self.define_case(name, scheme, attribute, value, expected_parts) + define_method("test_#{name} (#{scheme}:)") do + uri = URI::WHATWG_PARSER.parse(self.class.url_string(scheme: scheme)) + begin + uri.public_send("#{attribute}=", value) + rescue URI::InvalidComponentError + # Left unchanged. + end + assert_equal(self.class.url_string(scheme: scheme, **expected_parts), uri.to_s) + end + end + + SCHEMES.each do |scheme| + CODE_POINTS.each do |code_point| + char = code_point.chr + stripped = STRIPPED.include?(code_point) + ref = reference(code_point) + new_scheme = scheme == "https" ? "http" : "wpt--" + expected_scheme = stripped ? new_scheme : scheme + + define_case("scheme with leading #{ref}", scheme, :scheme, char + new_scheme, scheme: expected_scheme) + define_case("scheme with #{ref} before inserted colon", scheme, :scheme, new_scheme + char, scheme: expected_scheme) + + # No stripping. + [[:user, :username], [:password, :password]].each do |attribute, part| + affixed(char).each do |type, value| + expected = value.sub(char, encode(char)) + define_case("#{attribute} with #{type} #{ref}", scheme, attribute, value, part => expected) + end + end + + affixed(char).each do |type, value| + expected = + if code_point == 0x00 || (scheme == "https" && code_point == 0x1F) + "host" + elsif stripped + "test" + else + value.sub(char, scheme == "https" ? char : encode(char)) + end + define_case("host with #{type} #{ref}", scheme, :host, value, host: expected) + end + + define_case("port with leading #{ref}", scheme, :port, char + "9000", port: stripped ? "9000" : "8000") + define_case("port with middle #{ref}", scheme, :port, "90" + char + "00", port: stripped ? "9000" : "90") + define_case("port with trailing #{ref}", scheme, :port, "9000" + char, port: "9000") + + [[:path, :pathname], [:query, :search], [:fragment, :hash]].each do |attribute, part| + affixed(char).each do |type, value| + expected = stripped ? "test" : value.sub(char, encode(char)) + define_case("#{attribute} with #{type} #{ref}", scheme, attribute, value, part => expected) + end + end + end + end +end From 3ff9ca22893a047eef9bd1a8dc5ca3a74a4f9094 Mon Sep 17 00:00:00 2001 From: jinroq Date: Wed, 18 Nov 2026 19:08:37 +0900 Subject: [PATCH 44/74] Follow the URL Standard in userinfo= and opaque= of WHATWG URIs userinfo= applies the username and password setters to the userinfo split at its first ":", and removes the credentials for an empty value. opaque= always raises InvalidComponentError, since the URL Standard has no setter for an opaque path. Co-Authored-By: Claude Opus 5.5 --- lib/uri/whatwg_parser/setters.rb | 25 +++++++++++ test/uri/test_whatwg_setters.rb | 72 ++++++++++++++++++++++++++++++++ 2 files changed, 97 insertions(+) diff --git a/lib/uri/whatwg_parser/setters.rb b/lib/uri/whatwg_parser/setters.rb index d3d7359..c00db14 100644 --- a/lib/uri/whatwg_parser/setters.rb +++ b/lib/uri/whatwg_parser/setters.rb @@ -37,6 +37,13 @@ def set_url_password(url, value) true end + # The username and password setters together, for a userinfo that + # the basic URL parser would split at its first ":". + # Both reject the same URLs, so either both are applied or neither. + def set_url_userinfo(url, username, password) + set_url_username(url, username) && set_url_password(url, password) + end + # The hostname setter: the hostname state with a state override, or # the file host state for a file URL. def set_url_hostname(url, value) @@ -192,6 +199,17 @@ def password=(v) update_whatwg_url(:password, v) { |parser, url| parser.__send__(:set_url_password, url, v.to_s) } end + # Sets the username and the password from "user:password", split at + # the first ":", or from [user, password]. Empty or nil credentials + # are removed. + def userinfo=(v) + return super unless whatwg_url? + username, password = v.is_a?(Array) ? v : v.to_s.split(":", 2) + update_whatwg_url(:userinfo, v) do |parser, url| + parser.__send__(:set_url_userinfo, url, username.to_s, password.to_s) + end + end + def host=(v) return super unless whatwg_url? update_whatwg_url(:host, v) { |parser, url| parser.__send__(:set_url_hostname, url, v) } @@ -207,6 +225,13 @@ def path=(v) update_whatwg_url(:path, v) { |parser, url| parser.__send__(:set_url_path, url, v) } end + # The URL Standard has no setter for an opaque path, and a URL with + # a host cannot get one, so any value is rejected. + def opaque=(v) + return super unless whatwg_url? + raise InvalidComponentError, "bad component(expected opaque component): #{v.inspect}" + end + def query=(v) return super unless whatwg_url? update_whatwg_url(:query, v) { |parser, url| parser.__send__(:set_url_query, url, v) } diff --git a/test/uri/test_whatwg_setters.rb b/test/uri/test_whatwg_setters.rb index 71d59c6..0a030dc 100644 --- a/test/uri/test_whatwg_setters.rb +++ b/test/uri/test_whatwg_setters.rb @@ -175,6 +175,78 @@ def test_credentials_without_a_host assert_rejected("mailto:x", :user, "u") end + # --- userinfo= (username and password setters) --------------------- + + def test_userinfo + assert_set("http://u:p@example.com/", "http://example.com/", :userinfo, "u:p") + assert_set("http://me:pw@example.com/", "http://u:p@example.com/", :userinfo, "me:pw") + end + + def test_userinfo_without_a_colon_clears_the_password + assert_set("http://u@example.com/", "http://x:y@example.com/", :userinfo, "u") + end + + def test_userinfo_is_split_at_the_first_colon + assert_set("http://u:a%3Ab@example.com/", "http://example.com/", :userinfo, "u:a:b") + assert_set("http://:p@example.com/", "http://u@example.com/", :userinfo, ":p") + assert_set("http://u@example.com/", "http://example.com/", :userinfo, "u:") + end + + def test_userinfo_is_percent_encoded + assert_set("http://a%20b%40c:d%20e@example.com/", "http://example.com/", :userinfo, "a b@c:d e") + assert_set("http://%C3%A9:%C3%A9@example.com/", "http://example.com/", :userinfo, "\u{E9}:\u{E9}") + end + + def test_userinfo_keeps_tabs + assert_set("http://a%09b:c%0Ad@example.com/", "http://example.com/", :userinfo, "a\tb:c\nd") + end + + def test_userinfo_as_an_array + assert_set("http://u:a%3Ab@example.com/", "http://example.com/", :userinfo, ["u", "a:b"]) + assert_set("http://u@example.com/", "http://x:y@example.com/", :userinfo, ["u"]) + assert_set("http://u@example.com/", "http://x:y@example.com/", :userinfo, ["u", nil]) + end + + def test_empty_userinfo_clears_the_credentials + assert_set("http://example.com/", "http://u:p@example.com/", :userinfo, "") + assert_set("http://example.com/", "http://u:p@example.com/", :userinfo, ":") + assert_set("http://example.com/", "http://u:p@example.com/", :userinfo, nil) + end + + def test_userinfo_without_a_host + assert_rejected("file:///p", :userinfo, "u:p") + assert_rejected("file://h/p", :userinfo, "u:p") + assert_rejected("foo:///p", :userinfo, "u:p") + assert_rejected("foo:/p", :userinfo, "u:p") + assert_rejected("mailto:x", :userinfo, "u:p") + assert_rejected("foo:///p", :userinfo, nil) + end + + def test_userinfo_value_is_returned + uri = url("http://example.com/") + assert_equal("u:p", (uri.userinfo = "u:p")) + end + + def test_userinfo_keeps_the_uri_reparsable + uri = url("foo://h/x") + uri.userinfo = "a b" + uri.path = "y" + assert_equal("foo://a%20b@h/y", uri.to_s) + end + + # --- opaque= ------------------------------------------------------- + + # The URL Standard has no setter for an opaque path, and a URL with a + # host cannot get one. + def test_opaque_is_rejected + assert_rejected("mailto:x", :opaque, "y") + assert_rejected("http://example.com/", :opaque, "zz") + assert_rejected("foo:///x", :opaque, "zz") + assert_rejected("mailto:x", :opaque, "") + assert_rejected("mailto:x", :opaque, nil) + assert_rejected("http://example.com/", :opaque, nil) + end + # --- host= (hostname setter) --------------------------------------- def test_host From 94f8cf082220feece13d55d4a8cc3758541419fd Mon Sep 17 00:00:00 2001 From: jinroq Date: Wed, 18 Nov 2026 19:09:33 +0900 Subject: [PATCH 45/74] Convert the values of WHATWG setters to UTF-8 The setters percent-encoded the bytes of a value in its own encoding, and raised Encoding::CompatibilityError for an ASCII-incompatible one. A value is now converted to UTF-8 as the input of the parser is, and one that cannot be converted raises InvalidComponentError. Co-Authored-By: Claude Opus 5.5 --- lib/uri/whatwg_parser/setters.rb | 38 +++++++++++++++------- test/uri/test_whatwg_setters.rb | 54 ++++++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+), 12 deletions(-) diff --git a/lib/uri/whatwg_parser/setters.rb b/lib/uri/whatwg_parser/setters.rb index c00db14..ad4cef1 100644 --- a/lib/uri/whatwg_parser/setters.rb +++ b/lib/uri/whatwg_parser/setters.rb @@ -186,17 +186,17 @@ def cannot_have_credentials_or_port?(url) module GenericSetters # :nodoc: def scheme=(v) return super unless whatwg_url? - update_whatwg_url(:scheme, v) { |parser, url| parser.__send__(:set_url_scheme, url, v) } + update_whatwg_url(:scheme, v) { |parser, url, value| parser.__send__(:set_url_scheme, url, value) } end def user=(v) return super unless whatwg_url? - update_whatwg_url(:user, v) { |parser, url| parser.__send__(:set_url_username, url, v.to_s) } + update_whatwg_url(:user, v) { |parser, url, value| parser.__send__(:set_url_username, url, value.to_s) } end def password=(v) return super unless whatwg_url? - update_whatwg_url(:password, v) { |parser, url| parser.__send__(:set_url_password, url, v.to_s) } + update_whatwg_url(:password, v) { |parser, url, value| parser.__send__(:set_url_password, url, value.to_s) } end # Sets the username and the password from "user:password", split at @@ -204,25 +204,25 @@ def password=(v) # are removed. def userinfo=(v) return super unless whatwg_url? - username, password = v.is_a?(Array) ? v : v.to_s.split(":", 2) - update_whatwg_url(:userinfo, v) do |parser, url| + update_whatwg_url(:userinfo, v) do |parser, url, value| + username, password = value.is_a?(Array) ? value : value.to_s.split(":", 2) parser.__send__(:set_url_userinfo, url, username.to_s, password.to_s) end end def host=(v) return super unless whatwg_url? - update_whatwg_url(:host, v) { |parser, url| parser.__send__(:set_url_hostname, url, v) } + update_whatwg_url(:host, v) { |parser, url, value| parser.__send__(:set_url_hostname, url, value) } end def port=(v) return super unless whatwg_url? - update_whatwg_url(:port, v) { |parser, url| parser.__send__(:set_url_port, url, v) } + update_whatwg_url(:port, v) { |parser, url, value| parser.__send__(:set_url_port, url, value) } end def path=(v) return super unless whatwg_url? - update_whatwg_url(:path, v) { |parser, url| parser.__send__(:set_url_path, url, v) } + update_whatwg_url(:path, v) { |parser, url, value| parser.__send__(:set_url_path, url, value) } end # The URL Standard has no setter for an opaque path, and a URL with @@ -234,12 +234,12 @@ def opaque=(v) def query=(v) return super unless whatwg_url? - update_whatwg_url(:query, v) { |parser, url| parser.__send__(:set_url_query, url, v) } + update_whatwg_url(:query, v) { |parser, url, value| parser.__send__(:set_url_query, url, value) } end def fragment=(v) return super unless whatwg_url? - update_whatwg_url(:fragment, v) { |parser, url| parser.__send__(:set_url_fragment, url, v) } + update_whatwg_url(:fragment, v) { |parser, url, value| parser.__send__(:set_url_fragment, url, value) } end # The default port of the scheme, which can change with #scheme= @@ -280,11 +280,12 @@ def whatwg_url? end # Applies a setter to the URL record of this URI, and replaces the - # components with the result. + # components with the result. The setter is given +value+ with its + # strings converted to UTF-8. def update_whatwg_url(component, value) parser = self.parser url = parser.__send__(:basic_parse, to_s) - unless yield(parser, url) + unless yield(parser, url, utf8_value(parser, component, value)) raise InvalidComponentError, "bad component(expected #{component} component): #{value.inspect}" end @@ -299,6 +300,19 @@ def update_whatwg_url(component, value) @port = port ? port.to_i : default_port value end + + def utf8_value(parser, component, value) + case value + when String + parser.__send__(:to_utf8, value) + when Array + value.map { |v| utf8_value(parser, component, v) } + else + value + end + rescue InvalidURIError + raise InvalidComponentError, "bad component(expected #{component} component): #{value.inspect}" + end end Generic.prepend(GenericSetters) diff --git a/test/uri/test_whatwg_setters.rb b/test/uri/test_whatwg_setters.rb index 0a030dc..4f76c1b 100644 --- a/test/uri/test_whatwg_setters.rb +++ b/test/uri/test_whatwg_setters.rb @@ -74,6 +74,60 @@ def test_the_value_is_returned assert_equal(8080, (uri.port = 8080)) end + # --- encodings of the values --------------------------------------- + + # A value is converted to UTF-8 before it is percent-encoded, as the + # input of the parser is. + def test_values_are_converted_to_utf8 + latin1 = "\u{E9}".encode("ISO-8859-1") + assert_set("http://%C3%A9@example.com/", "http://example.com/", :user, latin1) + assert_set("http://:%C3%A9@example.com/", "http://example.com/", :password, latin1) + assert_set("http://xn--9ca/", "http://example.com/", :host, latin1) + assert_set("http://example.com/%C3%A9", "http://example.com/", :path, latin1) + assert_set("http://example.com/?%C3%A9", "http://example.com/", :query, latin1) + assert_set("http://example.com/#%C3%A9", "http://example.com/", :fragment, latin1) + end + + def test_userinfo_is_converted_to_utf8 + latin1 = "\u{E9}:\u{E9}".encode("ISO-8859-1") + assert_set("http://%C3%A9:%C3%A9@example.com/", "http://example.com/", :userinfo, latin1) + assert_set("http://%C3%A9:%C3%A9@example.com/", "http://example.com/", :userinfo, + ["\u{E9}".encode("ISO-8859-1"), "\u{E9}".encode("ISO-8859-1")]) + end + + def test_ascii_incompatible_values + assert_set("https://example.com/", "http://example.com/", :scheme, "https".encode("UTF-16LE")) + assert_set("http://u@example.com/", "http://example.com/", :user, "u".encode("UTF-16LE")) + assert_set("http://h/", "http://example.com/", :host, "h".encode("UTF-16BE")) + assert_set("http://example.com:8080/", "http://example.com/", :port, "8080".encode("UTF-16LE")) + assert_set("http://example.com/a%09b", "http://example.com/", :path, "a%09b".encode("UTF-16LE")) + assert_set("http://example.com/?a%20%C3%A9", "http://example.com/", :query, "a \u{E9}".encode("UTF-16LE")) + assert_set("http://example.com/#x", "http://example.com/", :fragment, "x".encode("UTF-32LE")) + end + + def test_ascii_only_binary_values + assert_set("http://example.com/?abc", "http://example.com/", :query, "abc".b) + end + + def test_values_with_invalid_byte_sequences + invalid = "\xFF".dup.force_encoding("UTF-8") + %i[scheme user password userinfo host port path query fragment].each do |attribute| + assert_rejected("http://example.com/", attribute, invalid) + end + assert_rejected("http://example.com/", :userinfo, ["u", invalid]) + end + + def test_values_that_cannot_be_converted_to_utf8 + assert_rejected("http://example.com/", :query, "\xE9".b) + assert_rejected("http://example.com/", :host, "\xE9".b) + end + + def test_the_value_is_returned_as_given + uri = url("http://example.com/") + latin1 = "\u{E9}".encode("ISO-8859-1") + assert_same(latin1, (uri.query = latin1)) + end + # --- scheme= (protocol setter) ------------------------------------- def test_scheme From 50a3d6dcebe68c9154252b18bb35659a077da908 Mon Sep 17 00:00:00 2001 From: jinroq Date: Wed, 18 Nov 2026 19:10:56 +0900 Subject: [PATCH 46/74] Compare WHATWG URIs by their serializations Generic#== normalized the URIs, which made URLs that the URL Standard tells apart equal, such as "foo://h" and "foo://h/", or opaque hosts differing in case. Two URIs built by WHATWG_Parser are now equal when their serializations are, and one is not equal to an RFC 3986 URI. Co-Authored-By: Claude Opus 5.5 --- lib/uri/whatwg_parser/setters.rb | 25 ++++++++---- test/uri/test_whatwg_parser.rb | 70 ++++++++++++++++++++++++++++++++ 2 files changed, 87 insertions(+), 8 deletions(-) diff --git a/lib/uri/whatwg_parser/setters.rb b/lib/uri/whatwg_parser/setters.rb index ad4cef1..1fa298d 100644 --- a/lib/uri/whatwg_parser/setters.rb +++ b/lib/uri/whatwg_parser/setters.rb @@ -177,10 +177,10 @@ def cannot_have_credentials_or_port?(url) url.host.nil? || url.host == "" || url.scheme == "file" end - # Makes the setters of a URI built by WHATWG_Parser follow the URL - # Standard. Prepended to URI::Generic; a URI that WHATWG_Parser did - # not build, or one that is still being initialized, keeps the - # setters of URI::Generic. + # Makes the setters and the equality of a URI built by WHATWG_Parser + # follow the URL Standard. Prepended to URI::Generic; a URI that + # WHATWG_Parser did not build, or one that is still being + # initialized, keeps the methods of URI::Generic. # # A value that the URL Standard ignores raises InvalidComponentError. module GenericSetters # :nodoc: @@ -249,8 +249,21 @@ def default_port SPECIAL_SCHEMES[@scheme] end + # Two URIs built by WHATWG_Parser are equal when their + # serializations are (URL equivalence), whatever their classes. One + # built by WHATWG_Parser is not equal to one that is not. + def ==(oth) + oth_whatwg_url = oth.is_a?(Generic) && oth.whatwg_url? + return super unless whatwg_url? || oth_whatwg_url + whatwg_url? && oth_whatwg_url && to_s == oth.to_s + end + protected + def whatwg_url? + defined?(@whatwg_url) && @whatwg_url + end + # Marks a URI that WHATWG_Parser has finished building. def whatwg_url! @whatwg_url = true @@ -275,10 +288,6 @@ def replace!(oth) end end - def whatwg_url? - defined?(@whatwg_url) && @whatwg_url - end - # Applies a setter to the URL record of this URI, and replaces the # components with the result. The setter is given +value+ with its # strings converted to UTF-8. diff --git a/test/uri/test_whatwg_parser.rb b/test/uri/test_whatwg_parser.rb index 8c830e3..a8f6835 100644 --- a/test/uri/test_whatwg_parser.rb +++ b/test/uri/test_whatwg_parser.rb @@ -160,6 +160,76 @@ def test_convert_to_uri_rejects_other_objects assert_raise(ArgumentError) { URI::WHATWG_PARSER.__send__(:convert_to_uri, 1) } end + # --- equality (URL equivalence) ------------------------------------ + + # Two URIs built by WHATWG_PARSER are equal when their serializations + # are (https://url.spec.whatwg.org/#url-equivalence); the URIs are not + # normalized as RFC 3986 URIs are. + def test_equal_uris + assert_equal(URI::WHATWG_PARSER.parse("http://h/a?q#f"), URI::WHATWG_PARSER.parse("http://h/a?q#f")) + assert_equal(URI::WHATWG_PARSER.parse("HTTP://H"), URI::WHATWG_PARSER.parse("http://h/")) + assert_equal(URI::WHATWG_PARSER.parse("http://h:80/"), URI::WHATWG_PARSER.parse("http://h/")) + assert_equal(URI::WHATWG_PARSER.parse("mailto:x"), URI::WHATWG_PARSER.parse("mailto:x")) + end + + def test_non_special_uris_with_and_without_an_empty_path_differ + assert_not_equal(URI::WHATWG_PARSER.parse("foo://h"), URI::WHATWG_PARSER.parse("foo://h/")) + assert_not_equal(URI::WHATWG_PARSER.parse("foo://h/"), URI::WHATWG_PARSER.parse("foo://h")) + end + + def test_opaque_hosts_differing_in_case_differ + assert_not_equal(URI::WHATWG_PARSER.parse("foo://H/"), URI::WHATWG_PARSER.parse("foo://h/")) + end + + def test_uris_differing_in_a_component_differ + base = URI::WHATWG_PARSER.parse("http://u:p@h:8080/a?q#f") + [ + "https://u:p@h:8080/a?q#f", + "http://x:p@h:8080/a?q#f", + "http://u:x@h:8080/a?q#f", + "http://u:p@x:8080/a?q#f", + "http://u:p@h:8081/a?q#f", + "http://u:p@h:8080/x?q#f", + "http://u:p@h:8080/a?x#f", + "http://u:p@h:8080/a?q#x", + "http://u:p@h:8080/a?q", + "http://u:p@h:8080/a#f", + "http://u:p@h:8080/a?q#", + ].each do |str| + assert_not_equal(base, URI::WHATWG_PARSER.parse(str), str) + end + end + + def test_equality_after_a_setter + uri = URI::WHATWG_PARSER.parse("http://h/") + uri.path = "a" + assert_equal(URI::WHATWG_PARSER.parse("http://h/a"), uri) + end + + # scheme= keeps the class, which the URL Standard does not have. + def test_equality_ignores_the_class + uri = URI::WHATWG_PARSER.parse("http://h/") + uri.scheme = "https" + assert_instance_of(URI::HTTP, uri) + assert_equal(URI::WHATWG_PARSER.parse("https://h/"), uri) + assert_equal(uri, URI::WHATWG_PARSER.parse("https://h/")) + end + + def test_whatwg_and_rfc3986_uris_differ + assert_not_equal(URI::WHATWG_PARSER.parse("http://h/"), URI::RFC3986_PARSER.parse("http://h/")) + assert_not_equal(URI::RFC3986_PARSER.parse("http://h/"), URI::WHATWG_PARSER.parse("http://h/")) + end + + def test_rfc3986_uris_keep_their_equality + assert_equal(URI::RFC3986_PARSER.parse("http://h"), URI::RFC3986_PARSER.parse("http://h/")) + assert_equal(URI::RFC3986_PARSER.parse("foo://H/"), URI::RFC3986_PARSER.parse("foo://h/")) + end + + def test_uri_is_not_equal_to_a_string + assert_not_equal(URI::WHATWG_PARSER.parse("http://h/"), "http://h/") + assert_not_equal(URI::WHATWG_PARSER.parse("http://h/"), nil) + end + # --- RFC2396-compatible methods (obsolete, delegated) -------------- def test_extract_delegates_to_rfc2396 From 67ad222d5de65b281126f7a855b9492846696753 Mon Sep 17 00:00:00 2001 From: jinroq Date: Wed, 18 Nov 2026 19:19:35 +0900 Subject: [PATCH 47/74] Raise BadURIError when merging into a relative WHATWG URI Generic#merge passed a relative URI bound to WHATWG_Parser, which Generic#route_to returns, to WHATWG_Parser#join, which raised InvalidURIError for its missing scheme. As for an RFC 3986 URI, an absolute URI is now returned, and a relative reference raises BadURIError. Co-Authored-By: Claude Opus 5.5 --- lib/uri/generic.rb | 2 +- lib/uri/whatwg_parser.rb | 19 ++++++++++++++ test/uri/test_whatwg_parser.rb | 47 ++++++++++++++++++++++++++++++++++ 3 files changed, 67 insertions(+), 1 deletion(-) diff --git a/lib/uri/generic.rb b/lib/uri/generic.rb index 4888044..da1a7bf 100644 --- a/lib/uri/generic.rb +++ b/lib/uri/generic.rb @@ -1154,7 +1154,7 @@ def merge!(oth) def merge(oth) # The URL Standard resolves a reference while parsing it against a # base, so URI::WHATWG_Parser does the whole merge. - return parser.join(self, oth) if parser.is_a?(WHATWG_Parser) + return parser.__send__(:merge, self, oth) if parser.is_a?(WHATWG_Parser) rel = parser.__send__(:convert_to_uri, oth) diff --git a/lib/uri/whatwg_parser.rb b/lib/uri/whatwg_parser.rb index 91ac036..599dd4d 100644 --- a/lib/uri/whatwg_parser.rb +++ b/lib/uri/whatwg_parser.rb @@ -739,6 +739,25 @@ def utf8_percent_encode(input, encode_set) input.gsub(encode_set) { |c| c.unpack("C*").map { |b| format("%%%02X", b) }.join } end + # Generic#merge. The URL Standard resolves a reference while parsing + # it against a base. A relative +base+, which Generic#route_to can + # return, is merged with an absolute URI only, as in Generic#merge. + def merge(base, reference) + return join(base, reference) if base.absolute? + absolute_uri(reference) or raise BadURIError, "both URI are relative" + end + + # Returns +uri+ converted to a URI if it is absolute, or nil if it is + # a relative reference. + def absolute_uri(uri) + return (uri.absolute? ? uri : nil) if uri.is_a?(URI::Generic) + + str = String.try_convert(uri) + raise ArgumentError, "bad argument (expected URI object or URI string)" unless str + scheme, = parse_scheme(preprocess(to_utf8(str))) + scheme ? parse(str) : nil + end + def convert_to_uri(uri) if uri.is_a?(URI::Generic) uri diff --git a/test/uri/test_whatwg_parser.rb b/test/uri/test_whatwg_parser.rb index a8f6835..0638d2e 100644 --- a/test/uri/test_whatwg_parser.rb +++ b/test/uri/test_whatwg_parser.rb @@ -160,6 +160,53 @@ def test_convert_to_uri_rejects_other_objects assert_raise(ArgumentError) { URI::WHATWG_PARSER.__send__(:convert_to_uri, 1) } end + # --- Generic#merge of a relative URI ------------------------------- + + # Generic#route_to can return a relative URI bound to WHATWG_PARSER. + # Merging into it behaves as for an RFC 3986 URI: an absolute URI is + # returned, and a relative reference raises BadURIError. + def relative_whatwg_uri + uri = URI::WHATWG_PARSER.parse("http://h/a/b").route_to("http://h/a/c") + assert_predicate(uri, :relative?) + assert_same(URI::WHATWG_PARSER, uri.parser) + uri + end + + def test_merge_relative_reference_into_relative_uri + ["x", "", "#f", "?q", "/x", "//h/x", "../x"].each do |reference| + assert_raise(URI::BadURIError, reference.dump) { relative_whatwg_uri.merge(reference) } + end + end + + def test_merge_relative_uri_object_into_relative_uri + assert_raise(URI::BadURIError) { relative_whatwg_uri.merge(relative_whatwg_uri) } + end + + def test_merge_absolute_string_into_relative_uri + uri = relative_whatwg_uri.merge("HTTP://H/x") + assert_equal("http://h/x", uri.to_s) + assert_same(URI::WHATWG_PARSER, uri.parser) + assert_equal("http://h/x", relative_whatwg_uri.merge(" \thttp://h/x ").to_s) + end + + def test_merge_absolute_uri_object_into_relative_uri + absolute = URI::WHATWG_PARSER.parse("http://h/x") + assert_same(absolute, relative_whatwg_uri.merge(absolute)) + end + + def test_merge_invalid_absolute_string_into_relative_uri + assert_raise(URI::InvalidURIError) { relative_whatwg_uri.merge("http://[/") } + end + + def test_merge_other_object_into_relative_uri + assert_raise(ArgumentError) { relative_whatwg_uri.merge(1) } + assert_raise(ArgumentError) { relative_whatwg_uri.merge(nil) } + end + + def test_plus_relative_reference_into_relative_uri + assert_raise(URI::BadURIError) { relative_whatwg_uri + "x" } + end + # --- equality (URL equivalence) ------------------------------------ # Two URIs built by WHATWG_PARSER are equal when their serializations From ab6e9605d0e37d0f9b6aa312bd96005fc5fde43d Mon Sep 17 00:00:00 2001 From: jinroq Date: Wed, 18 Nov 2026 19:21:20 +0900 Subject: [PATCH 48/74] Raise BadURIError for a relative reference in WHATWG routes Generic#route_to and #route_from converted a relative reference with WHATWG_Parser, which raised InvalidURIError for its missing scheme. As for an RFC 3986 URI, it now raises BadURIError. Co-Authored-By: Claude Opus 5.5 --- lib/uri/generic.rb | 14 +++++++-- test/uri/test_whatwg_parser.rb | 55 ++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+), 2 deletions(-) diff --git a/lib/uri/generic.rb b/lib/uri/generic.rb index da1a7bf..68e2e56 100644 --- a/lib/uri/generic.rb +++ b/lib/uri/generic.rb @@ -1237,8 +1237,18 @@ def route_from_path(src, dst) # :startdoc: # :stopdoc: + + # Converts +oth+ to a URI for a route. URI::WHATWG_Parser builds + # absolute URIs only, so a relative reference is rejected here as + # #route_from0 rejects a relative URI. + def convert_to_route_uri(oth) + return parser.__send__(:convert_to_uri, oth) unless parser.is_a?(WHATWG_Parser) + parser.__send__(:absolute_uri, oth) or raise BadURIError, "relative URI: #{oth}" + end + private :convert_to_route_uri + def route_from0(oth) - oth = parser.__send__(:convert_to_uri, oth) + oth = convert_to_route_uri(oth) if self.relative? raise BadURIError, "relative URI: #{self}" @@ -1346,7 +1356,7 @@ def route_from(oth) # #=> # # def route_to(oth) - parser.__send__(:convert_to_uri, oth).route_from(self) + convert_to_route_uri(oth).route_from(self) end # diff --git a/test/uri/test_whatwg_parser.rb b/test/uri/test_whatwg_parser.rb index 0638d2e..82157a4 100644 --- a/test/uri/test_whatwg_parser.rb +++ b/test/uri/test_whatwg_parser.rb @@ -207,6 +207,61 @@ def test_plus_relative_reference_into_relative_uri assert_raise(URI::BadURIError) { relative_whatwg_uri + "x" } end + # --- Generic#route_to / #route_from with a relative URI ------------ + + # As for RFC 3986 URIs, a route needs two absolute URIs, and a relative + # one raises BadURIError. + def test_route_to_relative_reference + uri = URI::WHATWG_PARSER.parse("http://h/a") + ["x", "", "#f", "?q", "/x", "//h/x"].each do |reference| + error = assert_raise(URI::BadURIError, reference.dump) { uri.route_to(reference) } + assert_equal("relative URI: #{reference}", error.message) + end + end + + def test_route_from_relative_reference + uri = URI::WHATWG_PARSER.parse("http://h/a") + ["x", "", "#f", "?q", "/x", "//h/x"].each do |reference| + assert_raise(URI::BadURIError, reference.dump) { uri.route_from(reference) } + end + end + + def test_route_to_and_from_relative_uri_object + uri = URI::WHATWG_PARSER.parse("http://h/a") + assert_raise(URI::BadURIError) { uri.route_to(relative_whatwg_uri) } + assert_raise(URI::BadURIError) { uri.route_from(relative_whatwg_uri) } + end + + def test_route_of_relative_uri + assert_raise(URI::BadURIError) { relative_whatwg_uri.route_to("http://h/a") } + assert_raise(URI::BadURIError) { relative_whatwg_uri.route_from("http://h/a") } + assert_raise(URI::BadURIError) { relative_whatwg_uri.route_to("x") } + assert_raise(URI::BadURIError) { relative_whatwg_uri.route_from("x") } + end + + def test_route_to_and_from_absolute_string + uri = URI::WHATWG_PARSER.parse("http://h/a/b") + assert_equal("c", uri.route_to("http://h/a/c").to_s) + assert_equal("c", uri.route_to(" HTTP://H/a/c ").to_s) + assert_equal("b", uri.route_from("http://h/a/c").to_s) + end + + def test_route_to_and_from_invalid_absolute_string + uri = URI::WHATWG_PARSER.parse("http://h/a") + assert_raise(URI::InvalidURIError) { uri.route_to("http://[/") } + assert_raise(URI::InvalidURIError) { uri.route_from("http://[/") } + end + + def test_route_to_and_from_other_object + uri = URI::WHATWG_PARSER.parse("http://h/a") + assert_raise(ArgumentError) { uri.route_to(1) } + assert_raise(ArgumentError) { uri.route_from(nil) } + end + + def test_minus_relative_reference + assert_raise(URI::BadURIError) { URI::WHATWG_PARSER.parse("http://h/a") - "x" } + end + # --- equality (URL equivalence) ------------------------------------ # Two URIs built by WHATWG_PARSER are equal when their serializations From 5a2fdb079984ba8c8e9c0963774624f7c6402ae0 Mon Sep 17 00:00:00 2001 From: jinroq Date: Wed, 18 Nov 2026 21:13:48 +0900 Subject: [PATCH 49/74] Load the Unicode data with uri where Ractors cannot require it safely The IDNA data and the NFC tables were loaded on first use with require_relative, which before Ruby 4.0 is not safe in concurrent non-main Ractors and could crash the process. On Ruby 3.x they are now loaded with uri; elsewhere they are still loaded on first use. Co-Authored-By: Claude Opus 5.5 --- lib/uri/whatwg_parser.rb | 8 ++++++++ lib/uri/whatwg_parser/idna.rb | 3 ++- lib/uri/whatwg_parser/nfc.rb | 3 ++- test/uri/test_whatwg_parser.rb | 27 +++++++++++++++++++++++++++ 4 files changed, 39 insertions(+), 2 deletions(-) diff --git a/lib/uri/whatwg_parser.rb b/lib/uri/whatwg_parser.rb index 599dd4d..5725472 100644 --- a/lib/uri/whatwg_parser.rb +++ b/lib/uri/whatwg_parser.rb @@ -3,6 +3,14 @@ require_relative "whatwg_parser/nfc" require_relative "whatwg_parser/idna" +# A require in a non-main Ractor is not safe before Ruby 4.0, which runs +# it in the main Ractor. Where Ractors are available before that, the +# Unicode data, otherwise loaded on first use, is loaded here. +if defined?(Ractor) && (RUBY_VERSION.split(".").map(&:to_i) <=> [4, 0]) < 0 + URI::WHATWG_Parser::IDNA.load_data + URI::WHATWG_Parser::NFC.load_tables +end + module URI # A parser for the WHATWG URL Standard (https://url.spec.whatwg.org/). # diff --git a/lib/uri/whatwg_parser/idna.rb b/lib/uri/whatwg_parser/idna.rb index a50495c..36d1189 100644 --- a/lib/uri/whatwg_parser/idna.rb +++ b/lib/uri/whatwg_parser/idna.rb @@ -8,7 +8,8 @@ class WHATWG_Parser # Transitional_Processing=false, VerifyDnsLength=false and # IgnoreInvalidPunycode=false. # - # The Unicode data (idna_data.rb) is loaded on first use. + # The Unicode data (idna_data.rb) is loaded on first use, or with + # whatwg_parser.rb where a Ractor cannot require it safely. module IDNA # :nodoc: ACE_PREFIX = "xn--" LABEL_SEPARATOR = "." diff --git a/lib/uri/whatwg_parser/nfc.rb b/lib/uri/whatwg_parser/nfc.rb index dc33a6f..e5db5d2 100644 --- a/lib/uri/whatwg_parser/nfc.rb +++ b/lib/uri/whatwg_parser/nfc.rb @@ -7,7 +7,8 @@ class WHATWG_Parser # version is the one of the running Ruby, and it cannot run in a # non-main Ractor. # - # The tables (nfc_tables.rb) are loaded on first use. + # The tables (nfc_tables.rb) are loaded on first use, or with + # whatwg_parser.rb where a Ractor cannot require them safely. module NFC # :nodoc: # Hangul syllable composition (Unicode Standard, section 3.12). S_BASE = 0xAC00 diff --git a/test/uri/test_whatwg_parser.rb b/test/uri/test_whatwg_parser.rb index 82157a4..eb38dd3 100644 --- a/test/uri/test_whatwg_parser.rb +++ b/test/uri/test_whatwg_parser.rb @@ -894,6 +894,33 @@ def test_split_non_ascii_domain_in_a_ractor RUBY end + # Before Ruby 4.0, concurrent Ractors processing non-ASCII strings can + # corrupt memory even without uri (URI.encode_www_form_component of a + # non-ASCII string crashes as well), so this runs on Ruby 4.0 or later. + def test_split_non_ascii_domain_in_concurrent_ractors + omit "Ractor is not available" unless defined?(Ractor) + omit "Ractors before Ruby 4.0 are not stable enough" if (RUBY_VERSION.split(".").map(&:to_i) <=> [4, 0]) < 0 + assert_separately(%w[-W0], <<~'RUBY') + require "uri" + ractors = 8.times.map { Ractor.new { URI::WHATWG_PARSER.parse("http://e\u{301}.example/").host } } + hosts = ractors.map { |r| r.respond_to?(:value) ? r.value : r.take } + assert_equal(["xn--9ca.example"] * 8, hosts) + RUBY + end + + # A require in a non-main Ractor is not safe before Ruby 4.0, which + # runs it in the main Ractor, so the Unicode data, which is otherwise + # loaded on first use, is loaded with uri where Ractors are available. + def test_unicode_data_is_loaded_with_uri_only_where_ractors_cannot_require + assert_separately([], <<~'RUBY') + require "uri" + version = RUBY_VERSION.split(".").map(&:to_i) + eager = !!defined?(Ractor) && (version <=> [3, 0]) >= 0 && (version <=> [4, 0]) < 0 + assert_equal(eager, URI::WHATWG_Parser::IDNA.const_defined?(:MAPPING, false), "IDNA data") + assert_equal(eager, URI::WHATWG_Parser::NFC.const_defined?(:COMPOSITION, false), "NFC tables") + RUBY + end + def test_split_non_ascii_domain_in_linear_time distinct = ->(n) { "http://" + (0x4E00...0x4E00 + n).map { |c| c.chr(Encoding::UTF_8) }.join + "/" } assert_linear_performance([300, 1_000, 3_000, 10_000], pre: distinct) do |uri| From a76fb7e38365f0f607c450bcdf753630eafe9899 Mon Sep 17 00:00:00 2001 From: jinroq Date: Wed, 18 Nov 2026 21:19:50 +0900 Subject: [PATCH 50/74] Rebuild the URL record of a WHATWG URI from its components The setters and join serialized a URI and parsed it again to get its URL record. The components of a URI that WHATWG_Parser built are those of a URL record, already serialized, so the record is now rebuilt from them directly, which makes a setter about six times faster. Co-Authored-By: Claude Opus 5.5 --- lib/uri/whatwg_parser.rb | 27 ++++++++++- lib/uri/whatwg_parser/setters.rb | 2 +- test/uri/test_whatwg_parser.rb | 10 ++++ test/uri/test_whatwg_setters.rb | 81 ++++++++++++++++++++++++++++++++ 4 files changed, 118 insertions(+), 2 deletions(-) diff --git a/lib/uri/whatwg_parser.rb b/lib/uri/whatwg_parser.rb index 5725472..960b18d 100644 --- a/lib/uri/whatwg_parser.rb +++ b/lib/uri/whatwg_parser.rb @@ -44,7 +44,7 @@ def join(*uris) # :nodoc: uris[1..-1].inject(convert_to_uri(uris[0])) do |base, uri| reference = uri.is_a?(URI::Generic) ? uri.to_s : String.try_convert(uri) raise ArgumentError, "bad argument (expected URI object or URI string)" unless reference - build(to_components(basic_parse(reference, basic_parse(base.to_s)))) + build(to_components(basic_parse(reference, url_record(base)))) end end @@ -291,6 +291,31 @@ def to_components(url) end end + # The URL record of +uri+. The components of a URI that this parser + # built are those of a URL record, already serialized, so the record + # is rebuilt from them, the reverse of #to_components; any other URI + # is parsed. The strings are copied, as a URI built from the record + # must not share them with +uri+. + def url_record(uri) + return basic_parse(uri.to_s) unless uri.__send__(:whatwg_url?) + + scheme = uri.scheme.dup + port = uri.port == SPECIAL_SCHEMES[scheme] ? nil : uri.port + url = URLRecord.new(scheme, uri.user.to_s.dup, uri.password.to_s.dup, uri.host&.dup, port, nil, + uri.query&.dup, uri.fragment&.dup) + if uri.opaque + path, question, query = uri.opaque.partition("?") + url.path = path + url.query = question.empty? ? nil : query + else + path = uri.path + path = path[2..-1] if url.host.nil? && path.start_with?("/.//") + # Each segment follows a "/". + url.path = path.split("/", -1).drop(1) + end + url + end + def split_query_and_fragment(rest) rest, hash, fragment = rest.partition("#") fragment = nil if hash.empty? diff --git a/lib/uri/whatwg_parser/setters.rb b/lib/uri/whatwg_parser/setters.rb index 1fa298d..c9cb154 100644 --- a/lib/uri/whatwg_parser/setters.rb +++ b/lib/uri/whatwg_parser/setters.rb @@ -293,7 +293,7 @@ def replace!(oth) # strings converted to UTF-8. def update_whatwg_url(component, value) parser = self.parser - url = parser.__send__(:basic_parse, to_s) + url = parser.__send__(:url_record, self) unless yield(parser, url, utf8_value(parser, component, value)) raise InvalidComponentError, "bad component(expected #{component} component): #{value.inspect}" end diff --git a/test/uri/test_whatwg_parser.rb b/test/uri/test_whatwg_parser.rb index eb38dd3..5250b48 100644 --- a/test/uri/test_whatwg_parser.rb +++ b/test/uri/test_whatwg_parser.rb @@ -134,6 +134,16 @@ def test_join_with_absolute_second_argument ) end + def test_join_does_not_share_strings_with_the_base + base = URI::WHATWG_PARSER.parse("http://u:p@h/a?q#f") + joined = URI::WHATWG_PARSER.join(base, "#g") + %i[scheme user password host path query].each do |component| + value = base.public_send(component) + value << "x" unless value.frozen? + end + assert_equal("http://u:p@h/a?q#g", joined.to_s) + end + def test_join_returns_given_uri_object_unchanged uri = URI::WHATWG_PARSER.parse("http://example.com/") diff --git a/test/uri/test_whatwg_setters.rb b/test/uri/test_whatwg_setters.rb index 4f76c1b..c94fb23 100644 --- a/test/uri/test_whatwg_setters.rb +++ b/test/uri/test_whatwg_setters.rb @@ -523,4 +523,85 @@ def test_fragment_removed def test_fragment_removed_from_an_opaque_path_ending_with_a_space assert_set("sc:a%20", "sc:a #f", :fragment, nil) end + # --- the URL record behind a URI ----------------------------------- + + # A setter applies to the URL record that the URI serializes, so + # every other part is kept as it is. + URLS_KEPT_BY_SETTERS = [ + "http://example.com/", + "http://u:p@example.com:8080/a/b?q#f", + "http://u@example.com/", + "http://:p@example.com/", + "http://example.com/?#", + "http://example.com/a/", + "http://example.com//a//b", + "http://192.168.0.1/", + "http://[::1]:8080/", + "http://xn--9ca/", + "https://example.com:443/", + "ws://example.com:80/", + "file:///", + "file:///C:/a", + "file://host/a", + "foo://", + "foo:///", + "foo://h", + "foo://h/", + "foo://H/%C3%A9", + "foo://h:1/a", + "foo:", + "foo:/", + "foo:/a/b", + "foo:/.//a/b", + "foo:/..//a", + "foo:/a/..//b", + "mailto:x", + "mailto:x?q", + "mailto:x?", + "sc:a%20", + "sc:a%20?q", + "sc:", + "sc:?q", + ].freeze + + def test_setters_keep_the_other_parts + URLS_KEPT_BY_SETTERS.each do |str| + expected = url(str).to_s + uri = url(str) + uri.fragment = "f2" + assert_equal(expected.sub(/#.*\z/, "") + "#f2", uri.to_s, str) + uri.fragment = nil + assert_equal(expected.sub(/#.*\z/, ""), uri.to_s, str) + end + end + + def test_setters_keep_the_components + URLS_KEPT_BY_SETTERS.each do |str| + uri = url(str) + uri.fragment = uri.fragment + fresh = url(str) + %i[scheme user password host port path opaque query fragment].each do |component| + assert_equal(fresh.public_send(component), uri.public_send(component), "#{str}: #{component}") + end + end + end + + def test_setters_apply_to_the_hostless_path_written_with_a_dot + assert_set("foo:/.//a/c", "foo:/.//a/b", :path, "//a/c") + assert_set("foo:/.//a/b?q", "foo:/.//a/b", :query, "q") + assert_set("foo:/a", "foo:/.//a/b", :path, "a") + end + + def test_setters_apply_to_an_opaque_path_with_a_query + assert_set("mailto:x?r", "mailto:x?q", :query, "r") + assert_set("mailto:x", "mailto:x?q", :query, nil) + assert_set("mailto:x?q#f", "mailto:x?q", :fragment, "f") + end + + def test_setters_after_normalize + uri = url("foo://H/") + uri.normalize! + uri.fragment = "f" + assert_equal("foo://h/#f", uri.to_s) + end end From 9baf41c3a3ca37b455752d265258ee036f28f5d7 Mon Sep 17 00:00:00 2001 From: jinroq Date: Wed, 18 Nov 2026 21:27:32 +0900 Subject: [PATCH 51/74] Share the conversion of port digits between parsing and port= port= converted all the digits of a value, while the parser stops converting a number with more significant digits than the largest port. Both now use the same conversion. Co-Authored-By: Claude Opus 5.5 --- lib/uri/whatwg_parser.rb | 11 +++++++++-- lib/uri/whatwg_parser/setters.rb | 2 +- test/uri/test_whatwg_setters.rb | 22 ++++++++++++++++++++++ 3 files changed, 32 insertions(+), 3 deletions(-) diff --git a/lib/uri/whatwg_parser.rb b/lib/uri/whatwg_parser.rb index 960b18d..e5cd673 100644 --- a/lib/uri/whatwg_parser.rb +++ b/lib/uri/whatwg_parser.rb @@ -534,12 +534,19 @@ def parse_port(input, scheme) return nil if input.empty? raise InvalidURIError, "invalid port: #{input.dump}" unless input.match?(ASCII_DIGITS) - digits = input.sub(LEADING_ZEROS, "") - port = digits.size > PORT_MAX_DIGITS ? MAX_PORT + 1 : digits.to_i + port = port_number(input) raise InvalidURIError, "port out of range: #{input.dump}" if port > MAX_PORT port == SPECIAL_SCHEMES[scheme] ? nil : port end + # The number that +digits+, ASCII digits, represent. A number with + # more significant digits than MAX_PORT is MAX_PORT + 1 instead of + # being converted. + def port_number(digits) + digits = digits.sub(LEADING_ZEROS, "") + digits.size > PORT_MAX_DIGITS ? MAX_PORT + 1 : digits.to_i + end + # host parser def parse_host(input, special) if input.start_with?("[") diff --git a/lib/uri/whatwg_parser/setters.rb b/lib/uri/whatwg_parser/setters.rb index c9cb154..6d1154d 100644 --- a/lib/uri/whatwg_parser/setters.rb +++ b/lib/uri/whatwg_parser/setters.rb @@ -116,7 +116,7 @@ def set_url_port(url, value) digits = remove_tab_and_newline(value)[/\A[0-9]*/] return false if digits.empty? - port = digits.to_i + port = port_number(digits) return false if port > MAX_PORT url.port = port == SPECIAL_SCHEMES[url.scheme] ? nil : port true diff --git a/test/uri/test_whatwg_setters.rb b/test/uri/test_whatwg_setters.rb index c94fb23..a67b7b9 100644 --- a/test/uri/test_whatwg_setters.rb +++ b/test/uri/test_whatwg_setters.rb @@ -389,6 +389,28 @@ def test_port_boundaries assert_rejected("http://example.com/", :port, "99999999999999999999") end + def test_port_with_leading_zeros + assert_set("http://example.com:65535/", "http://example.com/", :port, "0" * 100 + "65535") + assert_rejected("http://example.com/", :port, "0" * 100 + "65536") + assert_set("http://example.com:0/", "http://example.com/", :port, "0" * 100) + assert_set("http://example.com/", "http://example.com:8080/", :port, "0" * 100 + "80") + assert_set("http://example.com:8080/", "http://example.com/", :port, "0" * 100 + "8080abc") + end + + def test_port_with_many_digits + assert_rejected("http://example.com/", :port, "1" + "0" * 5) + assert_rejected("http://example.com/", :port, "1" * 100) + assert_rejected("http://example.com/", :port, "1" * 100 + "abc") + end + + def test_port_in_linear_time + pre = ->(n) { [url("http://example.com/"), "1" * n] } + assert_linear_performance([10_000, 100_000, 1_000_000], pre: pre) do |uri, digits| + uri.port = digits + rescue URI::InvalidComponentError + end + end + def test_port_up_to_a_non_digit assert_set("http://example.com:8080/", "http://example.com/", :port, "8080abc") assert_set("http://example.com:8080/", "http://example.com/", :port, "8080/x") From ff6472a84f9009188145833093791a9ad11cc06b Mon Sep 17 00:00:00 2001 From: jinroq Date: Wed, 18 Nov 2026 21:28:31 +0900 Subject: [PATCH 52/74] Find the host of host= as the parser does host= scanned its value for the end of the host with a loop of its own. It now cuts the value at the end of the authority and splits off the port with split_host_and_port, as the parser does. Co-Authored-By: Claude Opus 5.5 --- lib/uri/whatwg_parser/setters.rb | 25 +++++-------------------- test/uri/test_whatwg_setters.rb | 17 +++++++++++++++++ 2 files changed, 22 insertions(+), 20 deletions(-) diff --git a/lib/uri/whatwg_parser/setters.rb b/lib/uri/whatwg_parser/setters.rb index 6d1154d..dbba5e4 100644 --- a/lib/uri/whatwg_parser/setters.rb +++ b/lib/uri/whatwg_parser/setters.rb @@ -53,10 +53,11 @@ def set_url_hostname(url, value) return set_url_file_host(url, input) if url.scheme == "file" special = special?(url.scheme) - buffer = host_buffer(input, special) - # A ":" outside brackets would start the port, which the hostname - # setter does not set. - return false if input.size > buffer.size && input[buffer.size] == ":" + authority_end = input.index(special ? SPECIAL_AUTHORITY_END : AUTHORITY_END) || input.size + buffer, port = split_host_and_port(input[0, authority_end]) + # A ":" outside brackets starts the port, which the hostname setter + # does not set. + return false if port return false if special && buffer.empty? return false if buffer.empty? && (includes_credentials?(url) || url.port) @@ -80,22 +81,6 @@ def set_url_file_host(url, input) true end - # The host buffer of the host state: +input+ up to a ":" outside - # brackets, "/", "?", "#", or "\" for a special URL. - def host_buffer(input, special) - inside_brackets = false - input.each_char.with_index do |c, i| - return input[0, i] if c == ":" && !inside_brackets - return input[0, i] if c == "/" || c == "?" || c == "#" || (special && c == "\\") - if c == "[" - inside_brackets = true - elsif c == "]" - inside_brackets = false - end - end - input - end - def try_parse_host(buffer, special) parse_host(buffer, special) rescue InvalidURIError diff --git a/test/uri/test_whatwg_setters.rb b/test/uri/test_whatwg_setters.rb index a67b7b9..1b3c737 100644 --- a/test/uri/test_whatwg_setters.rb +++ b/test/uri/test_whatwg_setters.rb @@ -322,6 +322,23 @@ def test_host_with_a_port assert_rejected("http://example.com/", :host, "example.org:8080") end + # A ":" inside brackets is part of an IPv6 address, and one outside + # them starts the port, which the hostname setter does not set. + def test_host_with_colons_and_brackets + assert_set("http://[::1]/", "http://example.com/", :host, "[::1]") + assert_set("http://[::1]/", "http://example.com/", :host, "[::1]/x") + assert_set("http://[::1]/", "http://example.com/", :host, "[::1]?x") + assert_rejected("http://example.com/", :host, "[::1]:8080") + assert_rejected("http://example.com/", :host, ":") + assert_rejected("http://example.com/", :host, ":8080") + assert_rejected("http://example.com/", :host, "a:") + assert_rejected("http://example.com/", :host, "a]:b") + assert_rejected("http://example.com/", :host, "[a]b:c") + assert_rejected("http://example.com/", :host, "[::1/]") + assert_rejected("foo://example.com/", :host, "[::1]:1") + assert_set("foo://[::1]/", "foo://example.com/", :host, "[::1]") + end + def test_host_up_to_a_path_query_or_fragment assert_set("http://a/p", "http://example.com/p", :host, "a/b") assert_set("http://a/p", "http://example.com/p", :host, "a?b") From 2860adb84b40f945a29b28f4d2b4b91622fe884b Mon Sep 17 00:00:00 2001 From: jinroq Date: Wed, 18 Nov 2026 21:29:33 +0900 Subject: [PATCH 53/74] Share the host of a file URL between parsing and host= The parser and host= each turned an empty host or localhost of a file URL into an empty host. Both now use file_host. Co-Authored-By: Claude Opus 5.5 --- lib/uri/whatwg_parser.rb | 13 +++++++++---- lib/uri/whatwg_parser/setters.rb | 12 +++--------- test/uri/test_whatwg_setters.rb | 19 +++++++++++++++++++ 3 files changed, 31 insertions(+), 13 deletions(-) diff --git a/lib/uri/whatwg_parser.rb b/lib/uri/whatwg_parser.rb index e5cd673..9c7eae5 100644 --- a/lib/uri/whatwg_parser.rb +++ b/lib/uri/whatwg_parser.rb @@ -211,13 +211,18 @@ def parse_file_host(url, rest) url.path = parse_path(rest, true, [], file: true, start: false) return end - unless buffer.empty? - host = parse_host(buffer, true) - url.host = host == "localhost" ? "" : host - end + url.host = file_host(buffer) url.path = parse_path(rest[host_end..-1], true, [], file: true) end + # The host of a file URL, which is empty for an empty +buffer+ or + # localhost. + def file_host(buffer) + return "" if buffer.empty? + host = parse_host(buffer, true) + host == "localhost" ? "" : host + end + # https://url.spec.whatwg.org/#windows-drive-letter def windows_drive_letter?(string) string.match?(WINDOWS_DRIVE_LETTER) diff --git a/lib/uri/whatwg_parser/setters.rb b/lib/uri/whatwg_parser/setters.rb index dbba5e4..bcfe651 100644 --- a/lib/uri/whatwg_parser/setters.rb +++ b/lib/uri/whatwg_parser/setters.rb @@ -69,16 +69,10 @@ def set_url_hostname(url, value) # The file host state with a state override. def set_url_file_host(url, input) - buffer = input[/\A[^\/\\?#]*/] - if buffer.empty? - url.host = "" - return true - end - - host = try_parse_host(buffer, true) - return false unless host - url.host = host == "localhost" ? "" : host + url.host = file_host(input[0, input.index(SPECIAL_AUTHORITY_END) || input.size]) true + rescue InvalidURIError + false end def try_parse_host(buffer, special) diff --git a/test/uri/test_whatwg_setters.rb b/test/uri/test_whatwg_setters.rb index 1b3c737..924803c 100644 --- a/test/uri/test_whatwg_setters.rb +++ b/test/uri/test_whatwg_setters.rb @@ -386,6 +386,25 @@ def test_host_of_a_file_uri assert_rejected("file:///p", :host, "example.com:8080") end + def test_host_of_a_file_uri_is_parsed_as_a_special_host + assert_set("file:///p", "file://example.com/p", :host, "LOCALHOST") + assert_set("file:///p", "file://example.com/p", :host, "loc%41lhost") + assert_set("file://xn--9ca/p", "file:///p", :host, "\u{E9}") + assert_set("file://127.0.0.1/p", "file:///p", :host, "0x7f.1") + assert_set("file://[::1]/p", "file:///p", :host, "[::1]") + assert_rejected("file:///p", :host, "a b") + assert_rejected("file:///p", :host, "C:") + assert_rejected("file:///p", :host, "[::1") + end + + def test_host_of_a_file_uri_up_to_a_path_query_or_fragment + assert_set("file://a/p", "file:///p", :host, "a/b") + assert_set("file://a/p", "file:///p", :host, "a\\b") + assert_set("file://a/p", "file:///p", :host, "a?b") + assert_set("file://a/p", "file:///p", :host, "a#b") + assert_set("file:///p", "file://example.com/p", :host, "/a") + end + def test_hostname_wraps_ipv6 uri = url("http://example.com/") uri.hostname = "::1" From fbc7d3dc318e66082f0b82e56e7388eb98fd79cf Mon Sep 17 00:00:00 2001 From: jinroq Date: Wed, 18 Nov 2026 21:36:50 +0900 Subject: [PATCH 54/74] Keep WHATWG URIs as they are in normalize The normalization of RFC 3986 URIs made another URL of a WHATWG URI, such as by adding a path to a non-special URL or by lowercasing an opaque host. A URL is already normalized by the URL Standard, so normalize! now leaves it unchanged. Co-Authored-By: Claude Opus 5.5 --- lib/uri/whatwg_parser/setters.rb | 7 ++++++ test/uri/test_whatwg_parser.rb | 40 ++++++++++++++++++++++++++++++++ test/uri/test_whatwg_setters.rb | 2 +- 3 files changed, 48 insertions(+), 1 deletion(-) diff --git a/lib/uri/whatwg_parser/setters.rb b/lib/uri/whatwg_parser/setters.rb index bcfe651..ff3c521 100644 --- a/lib/uri/whatwg_parser/setters.rb +++ b/lib/uri/whatwg_parser/setters.rb @@ -237,6 +237,13 @@ def ==(oth) whatwg_url? && oth_whatwg_url && to_s == oth.to_s end + # A URL is already normalized by the URL Standard, which the + # normalization of RFC 3986 would make another URL of. + def normalize! + return super unless whatwg_url? + nil + end + protected def whatwg_url? diff --git a/test/uri/test_whatwg_parser.rb b/test/uri/test_whatwg_parser.rb index 5250b48..399c1ac 100644 --- a/test/uri/test_whatwg_parser.rb +++ b/test/uri/test_whatwg_parser.rb @@ -272,6 +272,46 @@ def test_minus_relative_reference assert_raise(URI::BadURIError) { URI::WHATWG_PARSER.parse("http://h/a") - "x" } end + # --- normalize ----------------------------------------------------- + + # A URI built by WHATWG_PARSER is already normalized by the URL + # Standard. The normalization of RFC 3986 URIs would make another URL + # of it, such as by adding a path to a non-special URL or by changing + # the case of an opaque host. + def test_normalize_keeps_the_url + [ + "foo://h", + "foo://H/", + "foo://H%c3%a9/", + "foo:", + "foo:/a", + "mailto:X", + "http://h/", + "http://h/a%c3%a9?Q#F", + "file:///C:/a", + ].each do |str| + uri = URI::WHATWG_PARSER.parse(str) + assert_equal(uri.to_s, uri.normalize.to_s, str) + end + end + + def test_normalize_bang_keeps_the_url + uri = URI::WHATWG_PARSER.parse("foo://H") + uri.normalize! + assert_equal("foo://H", uri.to_s) + end + + def test_normalized_uri_keeps_the_setters + uri = URI::WHATWG_PARSER.parse("http://h/").normalize + uri.host = "\u{E9}" + assert_equal("http://xn--9ca/", uri.to_s) + end + + def test_rfc3986_uris_keep_their_normalization + assert_equal("foo://h/", URI::RFC3986_PARSER.parse("foo://H").normalize.to_s) + assert_equal("http://h/", URI::RFC3986_PARSER.parse("HTTP://H").normalize.to_s) + end + # --- equality (URL equivalence) ------------------------------------ # Two URIs built by WHATWG_PARSER are equal when their serializations diff --git a/test/uri/test_whatwg_setters.rb b/test/uri/test_whatwg_setters.rb index 924803c..ead340f 100644 --- a/test/uri/test_whatwg_setters.rb +++ b/test/uri/test_whatwg_setters.rb @@ -660,6 +660,6 @@ def test_setters_after_normalize uri = url("foo://H/") uri.normalize! uri.fragment = "f" - assert_equal("foo://h/#f", uri.to_s) + assert_equal("foo://H/#f", uri.to_s) end end From 87e0475ce0b4c95ba35ac65a73aaea80c942f7b1 Mon Sep 17 00:00:00 2001 From: jinroq Date: Wed, 18 Nov 2026 21:38:26 +0900 Subject: [PATCH 55/74] Move the WHATWG branches of merge and routes out of URI::Generic Generic#merge, #route_to and #route_from0 checked for WHATWG_Parser themselves. The module prepended to URI::Generic for WHATWG URIs now overrides them, so URI::Generic keeps its methods as on master. Co-Authored-By: Claude Opus 5.5 --- lib/uri/generic.rb | 17 ++--------------- lib/uri/whatwg_parser/setters.rb | 31 +++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 15 deletions(-) diff --git a/lib/uri/generic.rb b/lib/uri/generic.rb index 68e2e56..eab95ef 100644 --- a/lib/uri/generic.rb +++ b/lib/uri/generic.rb @@ -1152,10 +1152,6 @@ def merge!(oth) # # => "http://my.example.com/main.rbx?page=1" # def merge(oth) - # The URL Standard resolves a reference while parsing it against a - # base, so URI::WHATWG_Parser does the whole merge. - return parser.__send__(:merge, self, oth) if parser.is_a?(WHATWG_Parser) - rel = parser.__send__(:convert_to_uri, oth) if rel.absolute? @@ -1238,17 +1234,8 @@ def route_from_path(src, dst) # :stopdoc: - # Converts +oth+ to a URI for a route. URI::WHATWG_Parser builds - # absolute URIs only, so a relative reference is rejected here as - # #route_from0 rejects a relative URI. - def convert_to_route_uri(oth) - return parser.__send__(:convert_to_uri, oth) unless parser.is_a?(WHATWG_Parser) - parser.__send__(:absolute_uri, oth) or raise BadURIError, "relative URI: #{oth}" - end - private :convert_to_route_uri - def route_from0(oth) - oth = convert_to_route_uri(oth) + oth = parser.__send__(:convert_to_uri, oth) if self.relative? raise BadURIError, "relative URI: #{self}" @@ -1356,7 +1343,7 @@ def route_from(oth) # #=> # # def route_to(oth) - convert_to_route_uri(oth).route_from(self) + parser.__send__(:convert_to_uri, oth).route_from(self) end # diff --git a/lib/uri/whatwg_parser/setters.rb b/lib/uri/whatwg_parser/setters.rb index ff3c521..a9c5f9b 100644 --- a/lib/uri/whatwg_parser/setters.rb +++ b/lib/uri/whatwg_parser/setters.rb @@ -237,6 +237,19 @@ def ==(oth) whatwg_url? && oth_whatwg_url && to_s == oth.to_s end + # The URL Standard resolves a reference while parsing it against a + # base, so WHATWG_Parser does the whole merge. + def merge(oth) + return super unless whatwg_parser? + parser.__send__(:merge, self, oth) + end + alias + merge + + def route_to(oth) + return super unless whatwg_parser? + route_uri(oth).route_from(self) + end + # A URL is already normalized by the URL Standard, which the # normalization of RFC 3986 would make another URL of. def normalize! @@ -274,6 +287,24 @@ def replace!(oth) end end + # Whether WHATWG_Parser built this URI, or the relative URI that + # #route_to returned for one. + def whatwg_parser? + parser.is_a?(WHATWG_Parser) + end + + def route_from0(oth) + return super unless whatwg_parser? + super(route_uri(oth)) + end + + # Converts +oth+ to a URI for a route. WHATWG_Parser builds absolute + # URIs only, so a relative reference is rejected here as + # Generic#route_from0 rejects a relative URI. + def route_uri(oth) + parser.__send__(:absolute_uri, oth) or raise BadURIError, "relative URI: #{oth}" + end + # Applies a setter to the URL record of this URI, and replaces the # components with the result. The setter is given +value+ with its # strings converted to UTF-8. From 98f0507f38de42e204f083fa1e2849e6a147e3d4 Mon Sep 17 00:00:00 2001 From: jinroq Date: Wed, 18 Nov 2026 21:39:07 +0900 Subject: [PATCH 56/74] Rename GenericSetters to URLMethods The module prepended to URI::Generic now covers equality, normalization, merge and routes as well as the setters. Co-Authored-By: Claude Opus 5.5 --- lib/uri/whatwg_parser/setters.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/uri/whatwg_parser/setters.rb b/lib/uri/whatwg_parser/setters.rb index a9c5f9b..5cc6a06 100644 --- a/lib/uri/whatwg_parser/setters.rb +++ b/lib/uri/whatwg_parser/setters.rb @@ -156,13 +156,13 @@ def cannot_have_credentials_or_port?(url) url.host.nil? || url.host == "" || url.scheme == "file" end - # Makes the setters and the equality of a URI built by WHATWG_Parser - # follow the URL Standard. Prepended to URI::Generic; a URI that - # WHATWG_Parser did not build, or one that is still being - # initialized, keeps the methods of URI::Generic. + # Makes a URI built by WHATWG_Parser follow the URL Standard in its + # setters, equality, normalization, merge and routes. Prepended to + # URI::Generic; a URI that WHATWG_Parser did not build, or one that is + # still being initialized, keeps the methods of URI::Generic. # # A value that the URL Standard ignores raises InvalidComponentError. - module GenericSetters # :nodoc: + module URLMethods # :nodoc: def scheme=(v) return super unless whatwg_url? update_whatwg_url(:scheme, v) { |parser, url, value| parser.__send__(:set_url_scheme, url, value) } @@ -341,6 +341,6 @@ def utf8_value(parser, component, value) end end - Generic.prepend(GenericSetters) + Generic.prepend(URLMethods) end end From 41a6ce3f8270ce7ee403486370f6e73de811b678 Mon Sep 17 00:00:00 2001 From: jinroq Date: Wed, 18 Nov 2026 21:43:59 +0900 Subject: [PATCH 57/74] Avoid Array#filter_map in the NormalizationTest harness It needs Ruby 2.7, while the gem supports Ruby 2.5. Co-Authored-By: Claude Opus 5.5 --- test/wpt/normalization_test.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/wpt/normalization_test.rb b/test/wpt/normalization_test.rb index 88345aa..de99cb0 100644 --- a/test/wpt/normalization_test.rb +++ b/test/wpt/normalization_test.rb @@ -54,11 +54,13 @@ def part1_code_points(cases) def run(test_case, nfc) c = test_case[:columns] checks = [[0, 1], [1, 1], [2, 1], [3, 3], [4, 3]] - failures = checks.filter_map do |source, expected| + # Array#filter_map needs Ruby 2.7, and rake test runs the harness on + # older versions too. + failures = checks.map do |source, expected| actual = nfc.call(c[source]) next if actual == c[expected] "NFC(c#{source + 1}) = #{dump(actual)}, expected c#{expected + 1} = #{dump(c[expected])}" - end + end.compact failures.empty? ? nil : failures.join("\n") rescue StandardError => e "#{e.class}: #{e.message}" From 8f5975359e1dbd4c53793a3b9990d82316a46369 Mon Sep 17 00:00:00 2001 From: jinroq Date: Wed, 18 Nov 2026 21:45:45 +0900 Subject: [PATCH 58/74] Run the tests of the WPT harness in rake test rake test left out all of test/wpt, so the tests of the harness, which need no network, ran only in the WPT workflow, whose failures on push and pull requests do not fail the checks. Co-Authored-By: Claude Opus 5.5 --- Rakefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 8f138ee..65d25b9 100644 --- a/Rakefile +++ b/Rakefile @@ -4,7 +4,9 @@ require "rake/testtask" Rake::TestTask.new(:test) do |t| t.libs << "test/lib" t.ruby_opts << "-rhelper" - t.test_files = FileList["test/**/test_*.rb"].exclude("test/wpt/**/*") + # The WPT and Unicode data tests need the network and run in rake + # test:wpt; the tests of their harness do not. + t.test_files = FileList["test/**/test_*.rb"].exclude(%r{\Atest/wpt/(?!test_\w+_harness\.rb\z)}) end require "rdoc/task" From e7426df72e38d155b2f80272be1f0ae9e0f51bcc Mon Sep 17 00:00:00 2001 From: jinroq Date: Wed, 18 Nov 2026 22:01:04 +0900 Subject: [PATCH 59/74] Serialize a postgres WHATWG URL without a host without "//" Generic#to_s writes "//" for any postgres URI, which made a hostless URL such as "postgres:/x" serialize as "postgres:///x", a URL with an empty host. The URL serializer writes "//" only for a URL with a host. Co-Authored-By: Claude Opus 5.5 --- lib/uri/whatwg_parser/setters.rb | 12 ++++++++++ test/uri/test_whatwg_parser.rb | 39 ++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) diff --git a/lib/uri/whatwg_parser/setters.rb b/lib/uri/whatwg_parser/setters.rb index 5cc6a06..4fbbdb5 100644 --- a/lib/uri/whatwg_parser/setters.rb +++ b/lib/uri/whatwg_parser/setters.rb @@ -237,6 +237,18 @@ def ==(oth) whatwg_url? && oth_whatwg_url && to_s == oth.to_s end + # The URL serializer writes "//" only for a URL with a host, while + # Generic#to_s writes it for any file or postgres URI. (A file URL + # always has a host.) + def to_s + str = super + return str unless whatwg_url? && @host.nil? + + prefix = "#{@scheme}://" + str.start_with?(prefix) ? "#{@scheme}:#{str[prefix.size..-1]}" : str + end + alias to_str to_s + # The URL Standard resolves a reference while parsing it against a # base, so WHATWG_Parser does the whole merge. def merge(oth) diff --git a/test/uri/test_whatwg_parser.rb b/test/uri/test_whatwg_parser.rb index 399c1ac..3c08b83 100644 --- a/test/uri/test_whatwg_parser.rb +++ b/test/uri/test_whatwg_parser.rb @@ -272,6 +272,45 @@ def test_minus_relative_reference assert_raise(URI::BadURIError) { URI::WHATWG_PARSER.parse("http://h/a") - "x" } end + # --- serialization ------------------------------------------------- + + # The URL serializer writes "//" only for a URL with a host, which + # Generic#to_s writes for any file or postgres URI. + def test_to_s_of_a_postgres_url_without_a_host + { + "postgres:/x" => "postgres:/x", + "postgres:/.//x" => "postgres:/.//x", + "postgres:/" => "postgres:/", + "postgres:" => "postgres:", + "postgres:?q#f" => "postgres:?q#f", + "postgres:/x?q#f" => "postgres:/x?q#f", + }.each do |input, expected| + uri = URI::WHATWG_PARSER.parse(input) + assert_equal(expected, uri.to_s, input) + assert_equal(expected, uri.to_str, input) + end + end + + def test_to_s_of_a_postgres_url_with_a_host + assert_equal("postgres://h/x", URI::WHATWG_PARSER.parse("postgres://h/x").to_s) + assert_equal("postgres:///x", URI::WHATWG_PARSER.parse("postgres:///x").to_s) + assert_equal("postgres://", URI::WHATWG_PARSER.parse("postgres://").to_s) + end + + def test_postgres_url_without_a_host + uri = URI::WHATWG_PARSER.parse("postgres:/x") + assert_not_equal(URI::WHATWG_PARSER.parse("postgres:///x"), uri) + assert_equal("postgres:/a/c", URI::WHATWG_PARSER.join("postgres:/a/b", "c").to_s) + assert_equal("postgres:/a/c", (URI::WHATWG_PARSER.parse("postgres:/a/b") + "c").to_s) + assert_equal("#", uri.inspect) + uri.path = "y" + assert_equal("postgres:/y", uri.to_s) + end + + def test_to_s_of_an_rfc3986_postgres_uri_without_a_host + assert_equal("postgres:///x", URI::RFC3986_PARSER.parse("postgres:/x").to_s) + end + # --- normalize ----------------------------------------------------- # A URI built by WHATWG_PARSER is already normalized by the URL From 4d0bdd38905edc598bd44c4c75d8ae383736f888 Mon Sep 17 00:00:00 2001 From: jinroq Date: Wed, 18 Nov 2026 22:01:51 +0900 Subject: [PATCH 60/74] Return false from == of a WHATWG URI and an RFC 3986 URI whatwg_url? returned nil for a URI that WHATWG_Parser did not build, so == of a WHATWG URI and an RFC 3986 URI returned nil. Co-Authored-By: Claude Opus 5.5 --- lib/uri/whatwg_parser/setters.rb | 2 +- test/uri/test_whatwg_parser.rb | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/lib/uri/whatwg_parser/setters.rb b/lib/uri/whatwg_parser/setters.rb index 4fbbdb5..20b0264 100644 --- a/lib/uri/whatwg_parser/setters.rb +++ b/lib/uri/whatwg_parser/setters.rb @@ -272,7 +272,7 @@ def normalize! protected def whatwg_url? - defined?(@whatwg_url) && @whatwg_url + defined?(@whatwg_url) ? @whatwg_url : false end # Marks a URI that WHATWG_Parser has finished building. diff --git a/test/uri/test_whatwg_parser.rb b/test/uri/test_whatwg_parser.rb index 3c08b83..c1e2e71 100644 --- a/test/uri/test_whatwg_parser.rb +++ b/test/uri/test_whatwg_parser.rb @@ -416,6 +416,18 @@ def test_rfc3986_uris_keep_their_equality assert_equal(URI::RFC3986_PARSER.parse("foo://H/"), URI::RFC3986_PARSER.parse("foo://h/")) end + def test_equality_returns_true_or_false + whatwg = URI::WHATWG_PARSER.parse("http://h/") + rfc3986 = URI::RFC3986_PARSER.parse("http://h/") + assert_same(true, whatwg == URI::WHATWG_PARSER.parse("http://h/")) + assert_same(false, whatwg == URI::WHATWG_PARSER.parse("http://x/")) + assert_same(false, whatwg == rfc3986) + assert_same(false, rfc3986 == whatwg) + assert_same(false, whatwg == "http://h/") + assert_same(false, whatwg == nil) + assert_same(true, rfc3986 == URI::RFC3986_PARSER.parse("http://h/")) + end + def test_uri_is_not_equal_to_a_string assert_not_equal(URI::WHATWG_PARSER.parse("http://h/"), "http://h/") assert_not_equal(URI::WHATWG_PARSER.parse("http://h/"), nil) From 705d0eb09a50fd010c8f7bcec28761ec8ec00e46 Mon Sep 17 00:00:00 2001 From: jinroq Date: Wed, 18 Nov 2026 22:03:04 +0900 Subject: [PATCH 61/74] Parse a URI of another parser given to WHATWG_Parser#join join returned a single URI argument as it was, so a URI that another parser built came back neither parsed nor normalized by the URL Standard, with the methods of an RFC 3986 URI. It is now parsed as its string would be. Co-Authored-By: Claude Opus 5.5 --- lib/uri/whatwg_parser.rb | 5 ++++- test/uri/test_whatwg_parser.rb | 38 ++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 1 deletion(-) diff --git a/lib/uri/whatwg_parser.rb b/lib/uri/whatwg_parser.rb index 9c7eae5..c056cb3 100644 --- a/lib/uri/whatwg_parser.rb +++ b/lib/uri/whatwg_parser.rb @@ -803,9 +803,12 @@ def absolute_uri(uri) scheme ? parse(str) : nil end + # A URI that this parser built, or the relative URI that + # Generic#route_to returned for one, is returned as it is; a URI that + # another parser built is parsed, as its string would be. def convert_to_uri(uri) if uri.is_a?(URI::Generic) - uri + uri.parser.is_a?(WHATWG_Parser) ? uri : parse(uri.to_s) elsif uri = String.try_convert(uri) parse(uri) else diff --git a/test/uri/test_whatwg_parser.rb b/test/uri/test_whatwg_parser.rb index c1e2e71..cf66652 100644 --- a/test/uri/test_whatwg_parser.rb +++ b/test/uri/test_whatwg_parser.rb @@ -150,6 +150,30 @@ def test_join_returns_given_uri_object_unchanged assert_same(uri, URI::WHATWG_PARSER.join(uri)) end + # A URI that another parser built is parsed by the URL Standard, as + # its string would be. + def test_join_with_single_rfc3986_uri + rfc3986 = URI::RFC3986_PARSER.parse("HTTP://A/b/../c") + uri = URI::WHATWG_PARSER.join(rfc3986) + + assert_equal("http://a/c", uri.to_s) + assert_same(URI::WHATWG_PARSER, uri.parser) + assert_equal(URI::WHATWG_PARSER.parse("http://a/c"), uri) + uri.host = "\u{E9}" + assert_equal("http://xn--9ca/c", uri.to_s) + assert_equal("http://A/b/../c", rfc3986.to_s) + end + + def test_join_with_single_relative_rfc3986_uri + assert_raise(URI::InvalidURIError) { URI::WHATWG_PARSER.join(URI::RFC3986_PARSER.parse("/a")) } + end + + def test_join_with_rfc3986_uris + uri = URI::WHATWG_PARSER.join(URI::RFC3986_PARSER.parse("HTTP://A/b/"), URI::RFC3986_PARSER.parse("../c")) + assert_equal("http://a/c", uri.to_s) + assert_same(URI::WHATWG_PARSER, uri.parser) + end + # --- convert_to_uri (used by Generic#merge / #route_to) ------------ def test_convert_to_uri_returns_uri_as_is @@ -158,6 +182,20 @@ def test_convert_to_uri_returns_uri_as_is assert_same(uri, URI::WHATWG_PARSER.__send__(:convert_to_uri, uri)) end + def test_convert_to_uri_parses_uri_of_another_parser + rfc3986 = URI::RFC3986_PARSER.parse("HTTP://A/b/../c") + uri = URI::WHATWG_PARSER.__send__(:convert_to_uri, rfc3986) + + assert_equal("http://a/c", uri.to_s) + assert_same(URI::WHATWG_PARSER, uri.parser) + end + + def test_convert_to_uri_returns_relative_uri_of_this_parser_as_is + uri = URI::WHATWG_PARSER.parse("http://h/a/b").route_to("http://h/a/c") + + assert_same(uri, URI::WHATWG_PARSER.__send__(:convert_to_uri, uri)) + end + def test_convert_to_uri_parses_string uri = URI::WHATWG_PARSER.__send__(:convert_to_uri, "http://example.com/") From 3ee464342576cb89b7cb2d4e7182ca76ca6b7c4b Mon Sep 17 00:00:00 2001 From: jinroq Date: Wed, 18 Nov 2026 22:04:46 +0900 Subject: [PATCH 62/74] Run the hostname setter checks of WPT toascii.json The harness skipped them since URI's setters did not follow the URL Standard, which they now do for WHATWG URIs. Each input is now also set with host= on "https://x/x", as toascii.window.js does with the hostname setter. Co-Authored-By: Claude Opus 5.5 --- test/wpt/test_wpt_toascii.rb | 12 ++++- test/wpt/test_wpt_toascii_harness.rb | 67 ++++++++++++++++++++++++++++ test/wpt/wpt_url_test_data.rb | 23 +++++++++- 3 files changed, 99 insertions(+), 3 deletions(-) diff --git a/test/wpt/test_wpt_toascii.rb b/test/wpt/test_wpt_toascii.rb index 9009adc..9030623 100644 --- a/test/wpt/test_wpt_toascii.rb +++ b/test/wpt/test_wpt_toascii.rb @@ -3,7 +3,8 @@ require 'uri' require_relative 'wpt_url_test_data' -# Runs WPT url/resources/toascii.json against URI::WHATWG_PARSER. +# Runs WPT url/resources/toascii.json against URI::WHATWG_PARSER and the +# host= of the URIs it builds. # # The data is fetched from WPT master on every run, unless WPT_TOASCII # names a local file or another https URL. @@ -20,6 +21,15 @@ def test_case(test_case) flunk(message) if message end + CASES.each_with_index do |test_case, index| + data("##{index + 1} #{test_case["input"].dump}", test_case) + end + + def test_setter(test_case) + message = WPT::ToASCIIData.run_setter(test_case, URI::WHATWG_PARSER) + flunk(message) if message + end + def test_source assert_not_empty(CASES, "no cases in #{SOURCE}") notify("toascii: #{CASES.size} cases (source: #{SOURCE})") diff --git a/test/wpt/test_wpt_toascii_harness.rb b/test/wpt/test_wpt_toascii_harness.rb index 63cc52f..c2bccab 100644 --- a/test/wpt/test_wpt_toascii_harness.rb +++ b/test/wpt/test_wpt_toascii_harness.rb @@ -69,6 +69,73 @@ def parser.parse(_) assert_match(/ArgumentError: boom/, ToASCII.run({ "input" => "a", "output" => "a" }, parser)) end + # A parser stand-in whose URIs set the host as the block says, or + # raise InvalidComponentError when the block returns nil. + class FakeSetterParser + FakeURI = Struct.new(:host, :setter) do + def host=(value) + host = setter.call(value) + raise URI::InvalidComponentError, "fake rejection" unless host + self[:host] = host + end + end + + attr_reader :inputs + + def initialize(&block) + @block = block + @inputs = [] + end + + def parse(input) + @inputs << input + FakeURI.new(input[%r{\Ahttps://(.*)/x\z}, 1], @block) + end + end + + def test_run_setter_sets_the_input_as_the_host_of_an_https_url + values = [] + parser = FakeSetterParser.new { |value| values << value; value } + ToASCII.run_setter({ "input" => "example.com", "output" => "example.com" }, parser) + assert_equal(["https://x/x"], parser.inputs) + assert_equal(["example.com"], values) + end + + def test_run_setter_passes + parser = FakeSetterParser.new { "xn--fa-hia.de" } + assert_nil(ToASCII.run_setter({ "input" => "fa\u{DF}.de", "output" => "xn--fa-hia.de" }, parser)) + end + + def test_run_setter_reports_a_wrong_host + parser = FakeSetterParser.new { "fass.de" } + message = ToASCII.run_setter({ "input" => "fa\u{DF}.de", "output" => "xn--fa-hia.de" }, parser) + assert_equal('hostname setter: expected "xn--fa-hia.de", got "fass.de"', message) + end + + def test_run_setter_reports_an_unexpected_rejection + parser = FakeSetterParser.new { nil } + message = ToASCII.run_setter({ "input" => "a", "output" => "a" }, parser) + assert_equal('hostname setter: expected "a", got "x"', message) + end + + # The setter ignores a host that fails to parse, so the host stays "x". + def test_run_setter_passes_an_expected_failure + parser = FakeSetterParser.new { nil } + assert_nil(ToASCII.run_setter({ "input" => "a\u{200C}b", "output" => nil }, parser)) + end + + def test_run_setter_reports_an_unexpected_success + parser = FakeSetterParser.new { |value| value } + message = ToASCII.run_setter({ "input" => "a", "output" => nil }, parser) + assert_equal('hostname setter: expected "x", got "a"', message) + end + + def test_run_setter_reports_other_exceptions + parser = FakeSetterParser.new { raise ArgumentError, "boom" } + message = ToASCII.run_setter({ "input" => "a", "output" => "a" }, parser) + assert_equal("hostname setter: unexpected ArgumentError: boom", message) + end + def test_source assert_equal(ToASCII::DEFAULT_SOURCE, ToASCII.source) unless ENV["WPT_TOASCII"] assert_match(%r{\Ahttps://.*/url/resources/toascii\.json\z}, ToASCII::DEFAULT_SOURCE) diff --git a/test/wpt/wpt_url_test_data.rb b/test/wpt/wpt_url_test_data.rb index 8cc47d2..da73ad5 100644 --- a/test/wpt/wpt_url_test_data.rb +++ b/test/wpt/wpt_url_test_data.rb @@ -106,8 +106,10 @@ def run(test_case, parser) # Harness for url/resources/toascii.json: each case is a host "input" # and its expected ASCII "output", or null when parsing fails. As in # WPT's toascii.window.js, the input is parsed as the host of - # "https:///x". (The host and hostname setter checks of that - # file are not run: URI's setters do not follow the URL Standard.) + # "https:///x" (run), and set with the hostname setter, which + # is URI's host=, on "https://x/x" (run_setter). The host setter check + # of that file is not run, as URI has no setter that takes a port; + # without a port in any input, it would give the same result. module ToASCIIData DEFAULT_SOURCE = "https://raw.githubusercontent.com/web-platform-tests/wpt/master/url/resources/toascii.json" @@ -131,6 +133,23 @@ def run(test_case, parser) end URLTestData.run(url_test_case, parser) end + + # Runs the hostname setter check of +test_case+ with +parser+. A host + # that fails to parse is ignored, which keeps the host "x". Returns + # nil when it passes, or a message. + def run_setter(test_case, parser) + uri = parser.parse("https://x/x") + begin + uri.host = test_case["input"] + rescue URI::InvalidComponentError + # The setter ignores the value. + end + expected = test_case["output"] || "x" + return nil if uri.host == expected + "hostname setter: expected #{expected.inspect}, got #{uri.host.inspect}" + rescue StandardError => e + "hostname setter: unexpected #{e.class}: #{e.message}" + end end # The list of urltestdata cases that are known to fail, each with the From 5dbac4e5c9061da37537a04501e4d9e6742e1586 Mon Sep 17 00:00:00 2001 From: jinroq Date: Wed, 18 Nov 2026 22:13:02 +0900 Subject: [PATCH 63/74] Find the route between WHATWG URLs by resolving candidates route_to and route_from used the RFC 3986 algorithm, whose references could resolve elsewhere by the URL Standard: an empty reference keeps the query of the base, a path starting with "//" is an authority, a non-special URL tells an empty path from "/", and only a fragment resolves against an opaque path. The route is now the first of the fragment, the query, the relative path, the path and the authority with the path that resolves to the target, or the target itself. Co-Authored-By: Claude Opus 5.5 --- lib/uri/whatwg_parser.rb | 54 +++++++++++++++ lib/uri/whatwg_parser/setters.rb | 19 ++++-- test/uri/test_whatwg_parser.rb | 109 +++++++++++++++++++++++++++++++ 3 files changed, 175 insertions(+), 7 deletions(-) diff --git a/lib/uri/whatwg_parser.rb b/lib/uri/whatwg_parser.rb index c056cb3..0526e35 100644 --- a/lib/uri/whatwg_parser.rb +++ b/lib/uri/whatwg_parser.rb @@ -792,6 +792,60 @@ def merge(base, reference) absolute_uri(reference) or raise BadURIError, "both URI are relative" end + # Generic#route_from: the first of the references from #route_candidates + # that resolves to +target+ against +base+, or a copy of +target+. + def route(base, target) + expected = target.to_s + route_candidates(base, target).each do |reference| + return reference if resolves_to?(base, reference, expected) + end + target.dup + end + + # The references that may resolve to +target+ against +base+, shortest + # first: the fragment, the query, the path relative to the path of + # +base+, the path, and the authority with the path. A URL with an + # opaque path is the base of a fragment only. + # + # The relative path is empty for the path of +base+, which keeps the + # query of +base+, so its last segment is tried too. + def route_candidates(base, target) + return [] unless base.scheme == target.scheme + + query = target.query + fragment = target.fragment + candidates = [relative_reference(fragment: fragment)] + return candidates if base.opaque || target.opaque + + candidates << relative_reference(query: query, fragment: fragment) if query + path = target.path + relative_path = target.__send__(:route_from_path, base.path, path) + candidates << relative_reference(path: relative_path, query: query, fragment: fragment) + if relative_path.empty? + segment = path[%r{[^/]*\z}] + segment = "./#{segment}" if segment.empty? || segment.include?(":") + candidates << relative_reference(path: segment, query: query, fragment: fragment) + end + candidates << relative_reference(path: path, query: query, fragment: fragment) + port = target.port == SPECIAL_SCHEMES[target.scheme] ? nil : target.port + candidates << relative_reference(userinfo: target.userinfo, host: target.host, port: port, + path: path, query: query, fragment: fragment) + end + + def resolves_to?(base, reference, expected) + join(base, reference).to_s == expected + rescue InvalidURIError + false + end + + # A relative URI bound to this parser. The query, which may hold + # characters that Generic#query= would escape, is set as it is. + def relative_reference(userinfo: nil, host: nil, port: nil, path: "", query: nil, fragment: nil) + uri = Generic.new(nil, userinfo, host, port, nil, path, nil, nil, fragment, self) + uri.__send__(:set_query, query) if query + uri + end + # Returns +uri+ converted to a URI if it is absolute, or nil if it is # a relative reference. def absolute_uri(uri) diff --git a/lib/uri/whatwg_parser/setters.rb b/lib/uri/whatwg_parser/setters.rb index 20b0264..3e48fb0 100644 --- a/lib/uri/whatwg_parser/setters.rb +++ b/lib/uri/whatwg_parser/setters.rb @@ -259,9 +259,19 @@ def merge(oth) def route_to(oth) return super unless whatwg_parser? - route_uri(oth).route_from(self) + parser.__send__(:convert_to_uri, route_uri(oth)).route_from(self) end + # The shortest reference that resolves to this URL against +oth+ by + # the URL Standard, as WHATWG_Parser finds it. + def route_from(oth) + return super unless whatwg_parser? + base = parser.__send__(:convert_to_uri, route_uri(oth)) + raise BadURIError, "relative URI: #{self}" if relative? + parser.__send__(:route, base, self) + end + alias - route_from + # A URL is already normalized by the URL Standard, which the # normalization of RFC 3986 would make another URL of. def normalize! @@ -305,14 +315,9 @@ def whatwg_parser? parser.is_a?(WHATWG_Parser) end - def route_from0(oth) - return super unless whatwg_parser? - super(route_uri(oth)) - end - # Converts +oth+ to a URI for a route. WHATWG_Parser builds absolute # URIs only, so a relative reference is rejected here as - # Generic#route_from0 rejects a relative URI. + # Generic#route_from rejects a relative URI. def route_uri(oth) parser.__send__(:absolute_uri, oth) or raise BadURIError, "relative URI: #{oth}" end diff --git a/test/uri/test_whatwg_parser.rb b/test/uri/test_whatwg_parser.rb index cf66652..1e5224e 100644 --- a/test/uri/test_whatwg_parser.rb +++ b/test/uri/test_whatwg_parser.rb @@ -310,6 +310,115 @@ def test_minus_relative_reference assert_raise(URI::BadURIError) { URI::WHATWG_PARSER.parse("http://h/a") - "x" } end + # --- Generic#route_to / #route_from between URLs ------------------- + + # The route from +base+ to +target+ is the shortest reference that + # resolves to +target+ against +base+ by the URL Standard. + def assert_route(expected, base, target) + base_uri = URI::WHATWG_PARSER.parse(base) + target_uri = URI::WHATWG_PARSER.parse(target) + route = base_uri.route_to(target) + message = "#{base} -> #{target}" + assert_equal(expected, route.to_s, message) + assert_equal(target_uri.to_s, (base_uri + route).to_s, message) + assert_equal(expected, target_uri.route_from(base).to_s, message) + assert_equal(expected, (target_uri - base_uri).to_s, message) + end + + def test_route_to_the_same_url + assert_route("", "http://a/b", "http://a/b") + assert_route("", "http://a/b?q", "http://a/b?q") + assert_route("#f", "http://a/b#f", "http://a/b#f") + end + + def test_route_to_a_fragment + assert_route("#f", "http://a/b", "http://a/b#f") + assert_route("", "http://a/b#f", "http://a/b") + assert_route("#", "http://a/b", "http://a/b#") + end + + def test_route_to_a_query + assert_route("?r", "http://a/b?q", "http://a/b?r") + assert_route("?r#f", "http://a/b", "http://a/b?r#f") + assert_route("?", "http://a/b", "http://a/b?") + assert_route("?%27%zz{|}", "http://a/b", "http://a/b?'%zz{|}") + assert_route("?'%zz{|}", "foo://a/b", "foo://a/b?'%zz{|}") + end + + def test_route_to_a_url_without_the_query_of_the_base + assert_route("c", "http://a/b/c?x", "http://a/b/c") + assert_route("./", "http://a/b/?x", "http://a/b/") + assert_route("./a:b", "http://a/a:b?x", "http://a/a:b") + end + + def test_route_to_a_path + assert_route("d", "http://a/b/c", "http://a/b/d") + assert_route("../x", "http://a/b/c", "http://a/x") + assert_route("c/d", "http://a/b/", "http://a/b/c/d") + assert_route("d?q#f", "http://a/b/c", "http://a/b/d?q#f") + assert_route("./a:b", "http://a/", "http://a/a:b") + end + + def test_route_to_a_path_with_empty_segments + assert_route("//a//x", "http://a/", "http://a//x") + assert_route("x//y", "http://a/b/", "http://a/b/x//y") + end + + def test_route_to_another_authority + assert_route("//b/c", "http://a/c", "http://b/c") + assert_route("//a/", "http://u@a/", "http://a/") + assert_route("//u:p@a/", "http://a/", "http://u:p@a/") + assert_route("//a/", "http://a:81/", "http://a/") + assert_route("//a:81/x", "http://a/", "http://a:81/x") + end + + def test_route_to_another_scheme + assert_route("https://a/b", "http://a/b", "https://a/b") + assert_route("foo://a/b", "http://a/b", "foo://a/b") + end + + def test_route_to_a_non_special_url_with_an_empty_path + assert_route("//h", "foo://h/a", "foo://h") + assert_route("/", "foo://h", "foo://h/") + assert_route("?q", "foo://h", "foo://h?q") + end + + def test_route_between_hostless_urls + assert_route("c", "foo:/a/b", "foo:/a/c") + assert_route("/.//b", "foo:/a", "foo:/.//b") + end + + def test_route_between_opaque_paths + assert_route("mailto:a?y", "mailto:a?x", "mailto:a?y") + assert_route("mailto:b", "mailto:a", "mailto:b") + assert_route("#f", "mailto:a", "mailto:a#f") + # Only a fragment resolves against an opaque path. + assert_route("mailto:a", "mailto:a#f", "mailto:a") + end + + def test_route_between_file_urls + assert_route("b", "file:///C:/a", "file:///C:/b") + assert_route("//h/a", "file:///a", "file://h/a") + end + + def test_route_is_bound_to_whatwg_parser + route = URI::WHATWG_PARSER.parse("http://a/b/c").route_to("http://a/b/d") + assert_predicate(route, :relative?) + assert_same(URI::WHATWG_PARSER, route.parser) + end + + def test_route_to_another_scheme_is_an_absolute_url + route = URI::WHATWG_PARSER.parse("http://a/b").route_to("https://a/b") + assert_predicate(route, :absolute?) + route.host = "\u{E9}" + assert_equal("https://xn--9ca/b", route.to_s) + end + + def test_route_to_an_rfc3986_uri + route = URI::WHATWG_PARSER.parse("http://a/b/c").route_to(URI::RFC3986_PARSER.parse("HTTP://A/b/d")) + assert_equal("d", route.to_s) + end + # --- serialization ------------------------------------------------- # The URL serializer writes "//" only for a URL with a host, which From 9fb0027713c47d32d52ac6de9b3cec48251d828b Mon Sep 17 00:00:00 2001 From: jinroq Date: Wed, 18 Nov 2026 22:13:02 +0900 Subject: [PATCH 64/74] Check the routes of WPT urltestdata.json cases For each case with a base, the route from the base to the URL it parses to must resolve back to that URL. Co-Authored-By: Claude Opus 5.5 --- test/wpt/test_wpt_harness.rb | 74 ++++++++++++++++++++++++++++++++ test/wpt/test_wpt_urltestdata.rb | 12 ++++++ test/wpt/wpt_url_test_data.rb | 22 ++++++++++ 3 files changed, 108 insertions(+) diff --git a/test/wpt/test_wpt_harness.rb b/test/wpt/test_wpt_harness.rb index 03a2eec..fa0b15b 100644 --- a/test/wpt/test_wpt_harness.rb +++ b/test/wpt/test_wpt_harness.rb @@ -424,4 +424,78 @@ def test_exclusions_stale_and_update_with_another_key assert_equal({ ["hash", "b"] => WPT::Exclusions::UNCLASSIFIED }, WPT::Exclusions.update({}, cases, [["hash", "b"]], key: key)) end + # --- run_route ----------------------------------------------------- + + # URIs of a parser stand-in for routes: the route from a base to a + # target is what +route+ returns, and a base plus a route resolves to + # what +resolve+ returns. + class FakeRouteParser + FakeURI = Struct.new(:str, :parser) do + def to_s + str + end + + def route_to(target) + parser.route.call(str, target.to_s) + end + + def +(route) + FakeURI.new(parser.resolve.call(str, route), parser) + end + end + + attr_reader :route, :resolve + + def initialize(route:, resolve:, bad: []) + @route = route + @resolve = resolve + @bad = bad + end + + def parse(input) + raise URI::InvalidURIError, "fake failure" if @bad.include?(input) + FakeURI.new(input, self) + end + + def join(base, input) + raise URI::InvalidURIError, "fake failure" if @bad.include?(input) + FakeURI.new("#{base}|#{input}", self) + end + end + + def route_parser(**options) + FakeRouteParser.new(**{ route: ->(_base, target) { target }, resolve: ->(_base, route) { route } }.merge(options)) + end + + def test_run_route_passes_when_the_route_resolves_to_the_target + assert_nil(WPT::URLTestData.run_route({ "input" => "x", "base" => "b" }, route_parser)) + end + + def test_run_route_reports_a_route_resolving_elsewhere + parser = route_parser(route: ->(_base, _target) { "r" }, resolve: ->(_base, _route) { "elsewhere" }) + message = WPT::URLTestData.run_route({ "input" => "x", "base" => "b" }, parser) + assert_equal('route: "r" from "b" resolves to "elsewhere", expected "b|x"', message) + end + + def test_run_route_skips_cases_without_a_base + parser = route_parser(resolve: ->(_base, _route) { raise "not run" }) + assert_nil(WPT::URLTestData.run_route({ "input" => "x", "base" => nil }, parser)) + end + + def test_run_route_skips_expected_failures + parser = route_parser(resolve: ->(_base, _route) { raise "not run" }) + assert_nil(WPT::URLTestData.run_route({ "input" => "x", "base" => "b", "failure" => true }, parser)) + end + + def test_run_route_skips_a_base_or_an_input_that_fails + parser = route_parser(resolve: ->(_base, _route) { raise "not run" }, bad: ["b", "x"]) + assert_nil(WPT::URLTestData.run_route({ "input" => "y", "base" => "b" }, parser)) + assert_nil(WPT::URLTestData.run_route({ "input" => "x", "base" => "c" }, parser)) + end + + def test_run_route_reports_exceptions + parser = route_parser(route: ->(_base, _target) { raise URI::BadURIError, "boom" }) + message = WPT::URLTestData.run_route({ "input" => "x", "base" => "b" }, parser) + assert_equal('route: unexpected URI::BadURIError: boom', message) + end end diff --git a/test/wpt/test_wpt_urltestdata.rb b/test/wpt/test_wpt_urltestdata.rb index 5cc1a2d..c18f2f6 100644 --- a/test/wpt/test_wpt_urltestdata.rb +++ b/test/wpt/test_wpt_urltestdata.rb @@ -32,6 +32,18 @@ def test_case(test_case) flunk(message) if message end + CASES.each_with_index do |test_case, index| + next unless test_case["base"] && !test_case["failure"] + data(label(index, test_case), test_case) + end + + # The route from the base of each case to the URL it parses to resolves + # back to that URL. + def test_route(test_case) + message = WPT::URLTestData.run_route(test_case, URI::WHATWG_PARSER) + flunk(message) if message + end + def test_excluded_cases_still_fail passing = CASES.select do |test_case| EXCLUSIONS.key?(WPT::URLTestData.key(test_case)) && diff --git a/test/wpt/wpt_url_test_data.rb b/test/wpt/wpt_url_test_data.rb index da73ad5..bf2a0ba 100644 --- a/test/wpt/wpt_url_test_data.rb +++ b/test/wpt/wpt_url_test_data.rb @@ -101,6 +101,28 @@ def run(test_case, parser) diffs.map { |k| "#{k}: expected #{test_case[k].inspect}, got #{actual[k].inspect}" }.join("\n") end + + # Checks the route from the base of +test_case+ to the URL it parses + # to: the route must resolve back to that URL. Returns nil when it + # does, or when the case has no base or fails to parse, which #run + # checks; otherwise a message. + def run_route(test_case, parser) + base = test_case["base"] + return nil if base.nil? || test_case["failure"] + + begin + base_uri = parser.parse(base) + target = parser.join(base, test_case["input"]) + rescue URI::Error + return nil + end + route = base_uri.route_to(target) + resolved = base_uri + route + return nil if resolved.to_s == target.to_s + "route: #{route.to_s.inspect} from #{base.inspect} resolves to #{resolved.to_s.inspect}, expected #{target.to_s.inspect}" + rescue StandardError => e + "route: unexpected #{e.class}: #{e.message}" + end end # Harness for url/resources/toascii.json: each case is a host "input" From cc8f4531b6e7d2783793bc21136899051767da5a Mon Sep 17 00:00:00 2001 From: jinroq Date: Wed, 18 Nov 2026 22:18:52 +0900 Subject: [PATCH 65/74] Document that scheme= keeps the class of a WHATWG URI As for an RFC 3986 URI, scheme= cannot change the class of the object, which code such as open-uri checks. Parsing the URI again gives the class of its new scheme. The test now checks the class exactly, since URI::HTTPS is a URI::HTTP. Co-Authored-By: Claude Opus 5.5 --- README.md | 9 +++++++++ lib/uri/common.rb | 9 +++++++++ test/uri/test_whatwg_setters.rb | 16 +++++++++++++++- 3 files changed, 33 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9404d87..d80d1e1 100644 --- a/README.md +++ b/README.md @@ -81,6 +81,15 @@ uri.port = "abc" # raises URI::InvalidComponentError ``` +As for any URI, `scheme=` does not change the class of the object. Parse the URI again to get the class of its new scheme, before handing it to code that checks the class, such as open-uri, which uses TLS for a `URI::HTTPS` only: + +```ruby +uri = URI::WHATWG_PARSER.parse("http://example.com/") +uri.scheme = "https" +uri #=> # +URI::WHATWG_PARSER.parse(uri.to_s) #=> # +``` + ## Development After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment. diff --git a/lib/uri/common.rb b/lib/uri/common.rb index f5bf869..758352d 100644 --- a/lib/uri/common.rb +++ b/lib/uri/common.rb @@ -57,6 +57,15 @@ module URI # uri.port = "8080abc" # uri.to_s # # => "http://example.com:8080/" + # + # As for any URI, scheme= does not change the class of the object. + # Parse the URI again to get the class of its new scheme: + # + # uri.scheme = "https" + # uri + # # => # + # URI::WHATWG_PARSER.parse(uri.to_s) + # # => # WHATWG_PARSER = WHATWG_Parser.new Ractor.make_shareable(WHATWG_PARSER) if defined?(Ractor) diff --git a/test/uri/test_whatwg_setters.rb b/test/uri/test_whatwg_setters.rb index ead340f..b2b8cdf 100644 --- a/test/uri/test_whatwg_setters.rb +++ b/test/uri/test_whatwg_setters.rb @@ -182,10 +182,24 @@ def test_scheme_keeps_another_port assert_set("https://example.com/", "http://example.com/", :scheme, "https") end + # The class of an object cannot change, as for RFC 3986 URIs; parsing + # the URI again gives the class of its new scheme. def test_scheme_keeps_the_class uri = url("http://example.com/") uri.scheme = "https" - assert_kind_of(URI::HTTP, uri) + assert_instance_of(URI::HTTP, uri) + assert_equal("https://example.com/", uri.to_s) + assert_equal(443, uri.port) + assert_instance_of(URI::HTTPS, URI::WHATWG_PARSER.parse(uri.to_s)) + + uri = url("https://example.com/") + uri.scheme = "http" + assert_instance_of(URI::HTTPS, uri) + assert_instance_of(URI::HTTP, URI::WHATWG_PARSER.parse(uri.to_s)) + + uri = url("foo://example.com/") + uri.scheme = "bar" + assert_instance_of(URI::Generic, uri) end # --- user= and password= ------------------------------------------- From 89709da7914886beb45ed150ad2e2faf4bc86a44 Mon Sep 17 00:00:00 2001 From: jinroq Date: Wed, 18 Nov 2026 22:53:34 +0900 Subject: [PATCH 66/74] Decode Punycode without inserting each code point into an array Decoding inserted each code point into the output, which takes time proportional to the square of the length when each one goes to the start, as for a label whose code points are in descending order. A 1.6MB URL with such a label took about 18 seconds to parse. The insertions are now recorded, and more than a few are placed with a Fenwick tree, going back from the last one. The URL now takes about 4 seconds, and labels of a usual length still go through an array. Co-Authored-By: Claude Opus 5.5 --- lib/uri/whatwg_parser/punycode.rb | 75 +++++++++++++++++++++++++++---- test/uri/test_whatwg_punycode.rb | 46 +++++++++++++++++++ 2 files changed, 112 insertions(+), 9 deletions(-) diff --git a/lib/uri/whatwg_parser/punycode.rb b/lib/uri/whatwg_parser/punycode.rb index dd86ecc..13bf336 100644 --- a/lib/uri/whatwg_parser/punycode.rb +++ b/lib/uri/whatwg_parser/punycode.rb @@ -21,6 +21,11 @@ module Punycode # :nodoc: MAX_CODE_POINT = 0x10FFFF SURROGATES = (0xD800..0xDFFF).freeze + # Up to this many insertions, inserting into an array is faster + # than placing them with a Fenwick tree, and takes little time even + # when each one goes to the start. + ARRAY_INSERTION_LIMIT = 1024 + module_function # Encodes +input+, a String of Unicode code points, as Punycode. @@ -82,15 +87,16 @@ def encode_delta(output, delta, bias) # Counts marked positions. class FenwickTree # :nodoc: - def initialize(size) - @tree = Array.new(size + 1, 0) + # A tree of +size+ positions, all of them marked if +marked+. + def initialize(size, marked: false) + @tree = Array.new(size + 1) { |i| marked ? i & -i : 0 } end - # Marks position +i+. - def add(i) + # Marks position +i+, or unmarks it if +value+ is -1. + def add(i, value = 1) i += 1 while i < @tree.size - @tree[i] += 1 + @tree[i] += value i += i & -i end end @@ -100,6 +106,22 @@ def count(first, last) prefix(last) - prefix(first) end + # The position of the marked position that has +k+ marked + # positions before it. + def find(k) + position = 0 + step = 1 + step <<= 1 while step * 2 < @tree.size + while step > 0 + if position + step < @tree.size && @tree[position + step] <= k + position += step + k -= @tree[position] + end + step >>= 1 + end + position + end + private # The number of marked positions in 0...i. @@ -117,12 +139,19 @@ def prefix(i) # Decodes +input+, a Punycode String. Returns nil when +input+ is # not valid Punycode or decodes to something that is not a sequence # of Unicode scalar values. + # + # RFC 3492 inserts each decoded code point into the output, which + # takes time proportional to the square of the length when each one + # goes to the start. Instead, the insertions are recorded, and then + # placed by #place, which inserts only a few into an array. def decode(input) return nil unless input.ascii_only? delimiter = input.rindex(DELIMITER) - output = delimiter ? input[0, delimiter].codepoints : [] + basic = delimiter ? input[0, delimiter].codepoints : [] rest = delimiter ? input[delimiter + 1..-1] : input + indices = [] + inserted = [] n = INITIAL_N i = 0 @@ -145,15 +174,43 @@ def decode(input) return nil if w > MAXINT k += BASE end - length = output.size + 1 + length = basic.size + indices.size + 1 bias = adapt(i - old_i, length, old_i == 0) n += i / length return nil if n > MAX_CODE_POINT || SURROGATES.cover?(n) i %= length - output.insert(i, n) + indices << i + inserted << n i += 1 end - output.pack("U*") + place(basic, indices, inserted).pack("U*") + end + + # The code points of +basic+ followed by those of +inserted+, each + # inserted at the index of the same place in +indices+, in order. + # Going back from the last insertion, each code point takes the free + # position that has as many free positions before it as its index, + # since the positions after it are those of later insertions. + def place(basic, indices, inserted) + if indices.size <= ARRAY_INSERTION_LIMIT + indices.each_with_index { |index, j| basic.insert(index, inserted[j]) } + return basic + end + + output = Array.new(basic.size + indices.size) + free = FenwickTree.new(output.size, marked: true) + (indices.size - 1).downto(0) do |j| + position = free.find(indices[j]) + output[position] = inserted[j] + free.add(position, -1) + end + # The basic code points take the positions left, in order. + basic_index = 0 + output.map! do |c| + next c if c + basic_index += 1 + basic[basic_index - 1] + end end def threshold(k, bias) diff --git a/test/uri/test_whatwg_punycode.rb b/test/uri/test_whatwg_punycode.rb index b09197f..31e233c 100644 --- a/test/uri/test_whatwg_punycode.rb +++ b/test/uri/test_whatwg_punycode.rb @@ -121,6 +121,52 @@ def test_decode_in_linear_time end end + # Code points in descending order are each inserted at the start of + # the decoded output, the worst case for inserting into an array. + def test_decode_in_linear_time_with_insertions_at_the_start + pre = ->(n) { Punycode.encode((0x10000...0x10000 + n).map { |c| c.chr(Encoding::UTF_8) }.join.reverse) } + assert_linear_performance([3_000, 10_000, 30_000, 100_000], pre: pre) do |punycode| + Punycode.decode(punycode) + end + end + + def test_decode_inverts_encode + [ + "", + "a", + "abc", + "\u{E9}", + "\u{E9}\u{E9}\u{E9}", + "\u{FC}\u{E9}", + "\u{E9}a", + "a\u{E9}", + "a\u{E9}b", + "\u{E9}ab\u{FC}", + "\u{3042}a\u{E9}b\u{3042}c\u{E9}", + "\u{10FFFF}\u{80}\u{10000}", + (0x4E00...0x4E40).map { |c| c.chr(Encoding::UTF_8) }.join.reverse, + (0x4E00...0x4E40).map { |c| c.chr(Encoding::UTF_8) }.each_slice(2).map(&:reverse).join, + "ab" + (0x4E00...0x4E20).map { |c| c.chr(Encoding::UTF_8) }.join("x").reverse, + ].each do |label| + assert_equal(label, Punycode.decode(Punycode.encode(label)), label.dump) + end + end + + # Many insertions are placed otherwise than a few. + def test_decode_inverts_encode_with_many_insertions + code_points = (0x4E00...0x4E00 + 3000).map { |c| c.chr(Encoding::UTF_8) } + [ + code_points.first(1024).reverse.join, + code_points.first(1025).reverse.join, + code_points.reverse.join, + code_points.shuffle(random: Random.new(1)).join, + code_points.shuffle(random: Random.new(2)).each_slice(3).map { |s| s.join + "a-" }.join, + code_points.first(1500).zip(code_points.last(1500)).flatten.join, + ].each_with_index do |label, i| + assert_equal(label, Punycode.decode(Punycode.encode(label)), "label #{i}") + end + end + def test_decode_of_a_non_string assert_raise(NoMethodError, TypeError) { Punycode.decode(nil) } end From 8d7b658e5442a01fdb5904a2494914427f162146 Mon Sep 17 00:00:00 2001 From: jinroq Date: Tue, 24 Nov 2026 20:31:44 +0900 Subject: [PATCH 67/74] Build the NFC tables from those of String#unicode_normalize NFC used decomposition, composition and combining class tables generated into idna_data.rb. It now builds them from the tables of lib/unicode_normalize, which every Ruby has and which can be shared between Ractors, so it has the Unicode version of the running Ruby. It also gains NFKC, for deriving the IDNA mapping. The targets of UnicodeNormalize::KOMPATIBLE_TABLE may still have canonical decompositions, so they are decomposed again. NormalizationTest.txt is now fetched for the Unicode version of the running Ruby, and checks NFKC as well. Co-Authored-By: Claude Opus 5.5 --- lib/uri/whatwg_parser/nfc.rb | 30 ++++++--- lib/uri/whatwg_parser/nfc_tables.rb | 33 +++++----- test/uri/test_whatwg_nfc.rb | 67 +++++++++++++++++++-- test/wpt/normalization_test.rb | 33 +++++----- test/wpt/test_normalization_test.rb | 18 +++--- test/wpt/test_normalization_test_harness.rb | 13 +++- 6 files changed, 142 insertions(+), 52 deletions(-) diff --git a/lib/uri/whatwg_parser/nfc.rb b/lib/uri/whatwg_parser/nfc.rb index e5db5d2..e87eb5e 100644 --- a/lib/uri/whatwg_parser/nfc.rb +++ b/lib/uri/whatwg_parser/nfc.rb @@ -1,11 +1,11 @@ # frozen_string_literal: true module URI class WHATWG_Parser - # Unicode Normalization Form C (UAX #15, - # https://www.unicode.org/reports/tr15/) with the Unicode data of - # IDNA, which String#unicode_normalize cannot provide: its Unicode - # version is the one of the running Ruby, and it cannot run in a - # non-main Ractor. + # Unicode Normalization Forms C and KC (UAX #15, + # https://www.unicode.org/reports/tr15/) with the tables of + # String#unicode_normalize, so with the Unicode version of the running + # Ruby. String#unicode_normalize itself cannot run in a non-main + # Ractor. # # The tables (nfc_tables.rb) are loaded on first use, or with # whatwg_parser.rb where a Ractor cannot require them safely. @@ -27,9 +27,19 @@ module NFC # :nodoc: # Returns +input+, a UTF-8 String, in NFC. def normalize(input) + recompose(input) { |code_points| decompose(code_points) } + end + + # Returns +input+, a UTF-8 String, in NFKC. + def normalize_kc(input) + recompose(input) { |code_points| decompose(code_points, COMPATIBILITY_DECOMPOSITION) } + end + + # Composes +input+ decomposed by the block. + def recompose(input) return input.dup if input.ascii_only? load_tables - code_points = decompose(input.codepoints) + code_points = yield input.codepoints reorder!(code_points) compose(code_points).pack("U*") end @@ -46,15 +56,17 @@ def pair_key(first, second) first * CODE_SPACE + second end - # The full canonical decomposition of +code_points+. - def decompose(code_points) + # The full canonical decomposition of +code_points+, or the full + # compatibility decomposition with COMPATIBILITY_DECOMPOSITION as + # +compatibility+. + def decompose(code_points, compatibility = nil) code_points.each_with_object([]) do |c, result| s_index = c - S_BASE if s_index >= 0 && s_index < S_COUNT result << L_BASE + s_index / N_COUNT << V_BASE + (s_index % N_COUNT) / T_COUNT t = s_index % T_COUNT result << T_BASE + t if t > 0 - elsif (decomposition = DECOMPOSITION[c]) + elsif (decomposition = (compatibility && compatibility[c]) || DECOMPOSITION[c]) result.concat(decomposition) else result << c diff --git a/lib/uri/whatwg_parser/nfc_tables.rb b/lib/uri/whatwg_parser/nfc_tables.rb index 0fc445c..e382d3f 100644 --- a/lib/uri/whatwg_parser/nfc_tables.rb +++ b/lib/uri/whatwg_parser/nfc_tables.rb @@ -1,37 +1,40 @@ # frozen_string_literal: true -require_relative "idna_data" +require "unicode_normalize/tables" module URI class WHATWG_Parser + # The tables of NFC and NFKC, built from those of + # String#unicode_normalize, which are shareable between Ractors. module NFC # :nodoc: # Canonical_Combining_Class by code point, for classes other than 0. - COMBINING_CLASS = IDNA::COMBINING_CLASS.each_with_object({}) do |(char, ccc), classes| + COMBINING_CLASS = UnicodeNormalize::CLASS_TABLE.each_with_object({}) do |(char, ccc), classes| classes[char.ord] = ccc end.freeze - raw = IDNA::CANONICAL_DECOMPOSITION.each_with_object({}) do |(char, target), mappings| - mappings[char.ord] = target.codepoints - end - full = lambda do |code_point| - mapping = raw[code_point] - mapping ? mapping.flat_map { |c| full.call(c) } : [code_point] - end - # The full canonical decomposition by code point, except Hangul # syllables. - DECOMPOSITION = raw.keys.each_with_object({}) do |code_point, decompositions| - decompositions[code_point] = full.call(code_point).freeze + DECOMPOSITION = UnicodeNormalize::DECOMPOSITION_TABLE.each_with_object({}) do |(char, target), decompositions| + decompositions[char.ord] = target.codepoints.freeze + end.freeze + + # The full compatibility decomposition by code point, for the code + # points whose compatibility decomposition differs from their + # canonical one. The targets in UnicodeNormalize::KOMPATIBLE_TABLE + # may still have canonical decompositions, such as U+0F81 in that of + # U+0F77. + COMPATIBILITY_DECOMPOSITION = UnicodeNormalize::KOMPATIBLE_TABLE.each_with_object({}) do |(char, target), decompositions| + decompositions[char.ord] = decompose(target.codepoints).freeze end.freeze # The primary composite by pair of code points (see pair_key), # except Hangul syllables. - COMPOSITION = IDNA::CANONICAL_DECOMPOSITION.each_with_object({}) do |(char, target), compositions| - next unless target.size == 2 && !IDNA::COMPOSITION_EXCLUSION.match?(char) - first, second = target.codepoints + COMPOSITION = UnicodeNormalize::COMPOSITION_TABLE.each_with_object({}) do |(pair, char), compositions| + first, second = pair.codepoints compositions[pair_key(first, second)] = char.ord end.freeze Ractor.make_shareable(DECOMPOSITION) if defined?(Ractor) + Ractor.make_shareable(COMPATIBILITY_DECOMPOSITION) if defined?(Ractor) end end end diff --git a/test/uri/test_whatwg_nfc.rb b/test/uri/test_whatwg_nfc.rb index 07eb499..08f2b38 100644 --- a/test/uri/test_whatwg_nfc.rb +++ b/test/uri/test_whatwg_nfc.rb @@ -2,8 +2,8 @@ require 'test/unit' require 'uri' -# Unicode Normalization Form C (UAX #15) with the Unicode data of -# URI::WHATWG_Parser::IDNA. +# Unicode Normalization Forms C and KC (UAX #15) with the Unicode data of +# the running Ruby. class URI::TestWHATWGNFC < Test::Unit::TestCase NFC = URI::WHATWG_Parser::NFC @@ -11,6 +11,10 @@ def assert_nfc(expected, input) assert_equal(expected, NFC.normalize(input), "NFC(#{input.dump})") end + def assert_nfkc(expected, input) + assert_equal(expected, NFC.normalize_kc(input), "NFKC(#{input.dump})") + end + def test_ascii_and_empty assert_nfc("", "") assert_nfc("example.com", "example.com") @@ -116,12 +120,63 @@ def test_normalized assert_true(NFC.normalized?("\u{1EA1}\u{301}")) end + def test_nfkc_ascii_and_empty + assert_nfkc("", "") + assert_nfkc("Example.COM", "Example.COM") + end + + def test_nfkc_decomposes_compatibility_characters + assert_nfkc("ffi", "\u{FB03}") + assert_nfkc("A", "\u{FF21}") + assert_nfkc("1", "\u{2460}") + assert_nfkc("A", "\u{1D400}") + assert_nfkc("\u{30A2}\u{30D1}\u{30FC}\u{30C8}", "\u{3300}") + end + + # Each step of a compatibility decomposition is applied: U+FFA1 is + # U+3131, which is U+1100. + def test_nfkc_decomposes_fully + assert_nfkc("\u{1100}", "\u{FFA1}") + end + + def test_nfkc_composes + assert_nfkc("\u{30AC}", "\u{FF76}\u{FF9E}") + assert_nfkc("\u{1E69}", "\u{1E9B}\u{323}") + assert_nfkc("\u{E9}", "e\u{301}") + end + + def test_nfkc_keeps_what_nfc_keeps + assert_nfkc("\u{AC00}", "\u{AC00}") + assert_nfkc("\u{3A9}", "\u{2126}") + assert_nfkc("\u{8C48}", "\u{F900}") + assert_nfkc("\u{915}\u{93C}", "\u{958}") + end + + def test_nfkc_input_is_not_modified_and_result_is_utf8 + input = "\u{FB03}" + result = NFC.normalize_kc(input) + assert_equal("\u{FB03}", input) + assert_equal(Encoding::UTF_8, result.encoding) + assert_equal(Encoding::UTF_8, NFC.normalize_kc("a").encoding) + end + + # The tables are those of String#unicode_normalize, so both agree on + # every code point that has a decomposition or a combining class. + def test_agrees_with_unicode_normalize + require "unicode_normalize/tables" + chars = UnicodeNormalize::KOMPATIBLE_TABLE.keys + UnicodeNormalize::DECOMPOSITION_TABLE.keys + + UnicodeNormalize::CLASS_TABLE.keys + ["\u{AC00}", "\u{D7A3}", "\u{1100}\u{1161}\u{11A8}"] + nfc = chars.reject { |c| NFC.normalize(c) == c.unicode_normalize(:nfc) } + nfkc = chars.reject { |c| NFC.normalize_kc(c) == c.unicode_normalize(:nfkc) } + assert_equal([[], []], [nfc.map(&:dump), nfkc.map(&:dump)]) + end + def test_works_in_a_ractor omit "Ractor is not available" unless defined?(Ractor) assert_separately(%w[-W0], <<~'RUBY') require "uri" - r = Ractor.new { URI::WHATWG_Parser::NFC.normalize("e\u{301}") } - assert_equal("\u{E9}", r.respond_to?(:value) ? r.value : r.take) + r = Ractor.new { [URI::WHATWG_Parser::NFC.normalize("e\u{301}"), URI::WHATWG_Parser::NFC.normalize_kc("\u{FB03}")] } + assert_equal(["\u{E9}", "ffi"], r.respond_to?(:value) ? r.value : r.take) RUBY end @@ -134,5 +189,9 @@ def test_normalize_in_linear_time assert_linear_performance([300, 1_000, 3_000, 10_000], pre: hangul) do |input| NFC.normalize(input) end + compatibility = ->(n) { "\u{FDFA}\u{301}" * n } + assert_linear_performance([300, 1_000, 3_000, 10_000], pre: compatibility) do |input| + NFC.normalize_kc(input) + end end end diff --git a/test/wpt/normalization_test.rb b/test/wpt/normalization_test.rb index de99cb0..9fff9ca 100644 --- a/test/wpt/normalization_test.rb +++ b/test/wpt/normalization_test.rb @@ -1,21 +1,22 @@ # frozen_string_literal: true require 'uri' -require_relative 'idna_test_v2' +require 'rbconfig' +require_relative 'wpt_url_test_data' # Harness for running Unicode's NormalizationTest.txt against -# URI::WHATWG_Parser::NFC.normalize. +# URI::WHATWG_Parser::NFC.normalize and normalize_kc. # # Each case is a Hash of :columns (c1..c5), :line and :part. For NFC, the # file requires c2 == NFC(c1) == NFC(c2) == NFC(c3) and -# c4 == NFC(c4) == NFC(c5). Every code point that Part 1 does not list -# is unchanged by NFC. +# c4 == NFC(c4) == NFC(c5); for NFKC, c4 == NFKC(c1) == ... == NFKC(c5). +# Every code point that Part 1 does not list is unchanged by both. module NormalizationTest module_function - # NormalizationTest.txt of the Unicode version of URI::WHATWG_Parser's - # data. + # NormalizationTest.txt of the Unicode version of the running Ruby, + # whose tables URI::WHATWG_Parser::NFC uses. def default_source - "https://www.unicode.org/Public/#{IDNATestV2.unicode_version}/ucd/NormalizationTest.txt" + "https://www.unicode.org/Public/#{RbConfig::CONFIG["UNICODE_VERSION"]}/ucd/NormalizationTest.txt" end # NORMALIZATION_TEST (a local path or an https URL) if set, otherwise @@ -49,17 +50,21 @@ def part1_code_points(cases) cases.select { |c| c[:part] == "Part1" }.map { |c| c[:columns][0].ord } end - # Runs +test_case+ with +nfc+, a callable. Returns nil when it passes, - # or a message. - def run(test_case, nfc) + NFC_CHECKS = [[0, 1], [1, 1], [2, 1], [3, 3], [4, 3]].freeze + NFKC_CHECKS = [[0, 3], [1, 3], [2, 3], [3, 3], [4, 3]].freeze + + # Runs +test_case+ with +nfc+, and +nfkc+ if given, callables. Returns + # nil when it passes, or a message. + def run(test_case, nfc, nfkc = nil) c = test_case[:columns] - checks = [[0, 1], [1, 1], [2, 1], [3, 3], [4, 3]] + checks = NFC_CHECKS.map { |source, expected| ["NFC", nfc, source, expected] } + checks += NFKC_CHECKS.map { |source, expected| ["NFKC", nfkc, source, expected] } if nfkc # Array#filter_map needs Ruby 2.7, and rake test runs the harness on # older versions too. - failures = checks.map do |source, expected| - actual = nfc.call(c[source]) + failures = checks.map do |form, normalize, source, expected| + actual = normalize.call(c[source]) next if actual == c[expected] - "NFC(c#{source + 1}) = #{dump(actual)}, expected c#{expected + 1} = #{dump(c[expected])}" + "#{form}(c#{source + 1}) = #{dump(actual)}, expected c#{expected + 1} = #{dump(c[expected])}" end.compact failures.empty? ? nil : failures.join("\n") rescue StandardError => e diff --git a/test/wpt/test_normalization_test.rb b/test/wpt/test_normalization_test.rb index c304a7b..ea701f3 100644 --- a/test/wpt/test_normalization_test.rb +++ b/test/wpt/test_normalization_test.rb @@ -4,15 +4,16 @@ require_relative 'normalization_test' # Runs Unicode's NormalizationTest.txt against -# URI::WHATWG_Parser::NFC.normalize. +# URI::WHATWG_Parser::NFC.normalize and normalize_kc. # -# The data is fetched for the Unicode version of the generated data -# (lib/uri/whatwg_parser/idna_data.rb), unless NORMALIZATION_TEST names -# a local file or another https URL. +# The data is fetched for the Unicode version of the running Ruby, whose +# tables NFC uses, unless NORMALIZATION_TEST names a local file or +# another https URL. class NormalizationTest::TestConformance < Test::Unit::TestCase SOURCE = NormalizationTest.source CASES = NormalizationTest.load(SOURCE) NFC = URI::WHATWG_Parser::NFC.method(:normalize) + NFKC = URI::WHATWG_Parser::NFC.method(:normalize_kc) # One test per part: a test per line would make test-unit spend most # of the time on its own bookkeeping. @@ -21,17 +22,18 @@ class NormalizationTest::TestConformance < Test::Unit::TestCase end def test_part(cases) - failures = cases.filter_map do |test_case| - message = NormalizationTest.run(test_case, NFC) + # Array#filter_map needs Ruby 2.7. + failures = cases.map do |test_case| + message = NormalizationTest.run(test_case, NFC, NFKC) "line #{test_case[:line]}: #{message}" if message - end + end.compact assert_empty(failures, "#{failures.size} of #{cases.size} cases failed") end def test_code_points_outside_part1_are_unchanged listed = NormalizationTest.part1_code_points(CASES).each_with_object({}) { |c, h| h[c] = true } changed = (0..0x10FFFF).reject do |c| - (0xD800..0xDFFF).cover?(c) || listed[c] || NFC.call(s = [c].pack("U")) == s + (0xD800..0xDFFF).cover?(c) || listed[c] || (NFC.call(s = [c].pack("U")) == s && NFKC.call(s) == s) end assert_empty(changed.map { |c| format("U+%04X", c) }) end diff --git a/test/wpt/test_normalization_test_harness.rb b/test/wpt/test_normalization_test_harness.rb index 799abe9..bf686dd 100644 --- a/test/wpt/test_normalization_test_harness.rb +++ b/test/wpt/test_normalization_test_harness.rb @@ -46,14 +46,23 @@ def test_run_reports_c4_mismatch assert_match(/NFC\(c5\).*expected c4/, NormalizationTest.run(c, ->(s) { s })) end + def test_run_checks_nfkc_when_given + c = { columns: ["\u{FB03}", "\u{FB03}", "\u{FB03}", "ffi", "ffi"], line: 1, part: "Part1" } + nfc = ->(s) { s } + assert_nil(NormalizationTest.run(c, nfc)) + assert_match(/NFKC\(c1\) = FB03, expected c4 = 0066 0066 0069/, NormalizationTest.run(c, nfc, nfc)) + assert_nil(NormalizationTest.run(c, nfc, ->(s) { s == "ffi" ? s : "ffi" })) + end + def test_run_reports_exceptions c = NormalizationTest.parse(TEXT)[0] assert_match(/RuntimeError: boom/, NormalizationTest.run(c, ->(s) { raise "boom" })) end - def test_source_defaults_to_the_version_of_the_data + # The tables of NFC are those of the running Ruby. + def test_source_defaults_to_the_unicode_version_of_ruby assert_equal( - "https://www.unicode.org/Public/#{IDNATestV2.unicode_version}/ucd/NormalizationTest.txt", + "https://www.unicode.org/Public/#{RbConfig::CONFIG["UNICODE_VERSION"]}/ucd/NormalizationTest.txt", NormalizationTest.default_source ) end From 0466d7a149eb9784ed54e6dfa87aa756f134b594 Mon Sep 17 00:00:00 2001 From: jinroq Date: Tue, 24 Nov 2026 20:35:58 +0900 Subject: [PATCH 68/74] Skip IdnaTestV2 successes with code points unknown to Ruby The IDNA mapping is about to be derived from the Unicode data of the running Ruby, which does not know the code points added since its Unicode version: a domain with one fails. The cases that succeed with such a code point, in the source or in the decoded ASCII result, are now not run, and their number is reported. Noncharacters are unassigned in every version, so they do not count. Co-Authored-By: Claude Opus 5.5 --- test/wpt/idna_test_v2.rb | 20 +++++++++++++++-- test/wpt/test_idna_test_v2.rb | 7 ++++-- test/wpt/test_idna_test_v2_harness.rb | 31 +++++++++++++++++++++++++++ 3 files changed, 54 insertions(+), 4 deletions(-) diff --git a/test/wpt/idna_test_v2.rb b/test/wpt/idna_test_v2.rb index e3412dd..d0a0e4a 100644 --- a/test/wpt/idna_test_v2.rb +++ b/test/wpt/idna_test_v2.rb @@ -1,5 +1,6 @@ # frozen_string_literal: true require 'uri' +require 'rbconfig' require_relative 'wpt_url_test_data' # Harness for running Unicode's IdnaTestV2.txt, the conformance test of @@ -21,6 +22,7 @@ module IDNATestV2 ESCAPE = /\\u(\h{4})|\\x\{(\h+)\}/ SURROGATES = (0xD800..0xDFFF).freeze + UNKNOWN_TO_RUBY = /(?!\p{Noncharacter_Code_Point})\p{Cn}/ module_function @@ -93,15 +95,29 @@ def unescape(str) end # {failure: true}, {value: expected ASCII}, or nil when the case cannot - # be checked: it holds a surrogate, or it has only ignored errors and - # the file gives no ASCII result for it. + # be checked: it holds a surrogate, it has only ignored errors and the + # file gives no ASCII result for it, or it succeeds with a code point + # that the running Ruby, whose Unicode data IDNA uses, does not know. def expectation(test_case) return nil if test_case[:source].nil? || test_case[:to_ascii].nil? return { failure: true } unless (test_case[:status] - IGNORED_STATUSES).empty? return nil unless test_case[:to_ascii].ascii_only? + return nil if unknown_to_ruby?(test_case) { value: test_case[:to_ascii] } end + # Whether +test_case+ holds a code point that is unassigned in the + # Unicode version of the running Ruby, in its source or in its ASCII + # result decoded. Noncharacters are unassigned in every version. + def unknown_to_ruby?(test_case) + [test_case[:source], test_case[:to_ascii]].compact.any? do |domain| + domain.split(".", -1).any? do |label| + decoded = URI::WHATWG_Parser::Punycode.decode(label[4..-1]) if label.start_with?("xn--") && label.ascii_only? + [label, decoded].compact.any? { |s| s.match?(UNKNOWN_TO_RUBY) } + end + end + end + # Runs +test_case+ with +to_ascii+, a callable that returns the ASCII # domain or nil on failure. Returns nil when it passes, or a message. def run(test_case, to_ascii) diff --git a/test/wpt/test_idna_test_v2.rb b/test/wpt/test_idna_test_v2.rb index 1f379fd..48d5bea 100644 --- a/test/wpt/test_idna_test_v2.rb +++ b/test/wpt/test_idna_test_v2.rb @@ -7,7 +7,8 @@ # # The data is fetched for the Unicode version of the generated data # (lib/uri/whatwg_parser/idna_data.rb), unless IDNA_TEST_V2 names a -# local file or another https URL. +# local file or another https URL. The cases that succeed with a code +# point that the running Ruby does not know are not run. class IDNATestV2::TestConformance < Test::Unit::TestCase SOURCE = IDNATestV2.source CASES = IDNATestV2.load(SOURCE) @@ -24,7 +25,9 @@ def test_case(test_case) def test_source assert_not_empty(CASES, "no cases in #{SOURCE}") - notify("IdnaTestV2: #{CASES.size} cases (source: #{SOURCE})") + unknown = CASES.count { |c| IDNATestV2.unknown_to_ruby?(c) && IDNATestV2.expectation(c).nil? } + notify("IdnaTestV2: #{CASES.size} cases, #{unknown} not run for code points unknown to " \ + "Ruby #{RUBY_VERSION} (Unicode #{RbConfig::CONFIG["UNICODE_VERSION"]}) (source: #{SOURCE})") end # Fails when Unicode has released a newer version than the generated diff --git a/test/wpt/test_idna_test_v2_harness.rb b/test/wpt/test_idna_test_v2_harness.rb index e2fa1d5..8ed9d05 100644 --- a/test/wpt/test_idna_test_v2_harness.rb +++ b/test/wpt/test_idna_test_v2_harness.rb @@ -95,6 +95,37 @@ def test_expectation_is_nil_without_an_ascii_result assert_nil(IDNATestV2.expectation(c)) end + # U+0378 is unassigned in every Unicode version so far. + def test_unknown_to_ruby_for_a_code_point_unassigned_in_ruby + assert_true(IDNATestV2.unknown_to_ruby?({ source: "a\u{378}", to_ascii: "xn--a-qib", status: [] })) + end + + def test_unknown_to_ruby_decodes_the_ascii_result + assert_true(IDNATestV2.unknown_to_ruby?({ source: "xn--a-qib", to_ascii: "xn--a-qib", status: [] })) + end + + def test_unknown_to_ruby_for_known_code_points + assert_false(IDNATestV2.unknown_to_ruby?({ source: "fa\u00DF.de", to_ascii: "xn--fa-hia.de", status: [] })) + assert_false(IDNATestV2.unknown_to_ruby?({ source: "xn--zz", to_ascii: "xn--zz", status: %w[P4] })) + assert_false(IDNATestV2.unknown_to_ruby?({ source: nil, to_ascii: nil, status: %w[A3] })) + end + + # A noncharacter is unassigned, but every Unicode version knows it. + def test_unknown_to_ruby_for_a_noncharacter + assert_false(IDNATestV2.unknown_to_ruby?({ source: "\u{FDD0}", to_ascii: "\u{FDD0}", status: %w[V7] })) + end + + # The Unicode data of IDNA is the running Ruby's, which does not know + # the code points added since its Unicode version. + def test_expectation_is_nil_for_a_success_with_a_code_point_unknown_to_ruby + assert_nil(IDNATestV2.expectation({ source: "a\u{378}", to_ascii: "xn--a-qib", status: [] })) + end + + def test_expectation_keeps_a_failure_with_a_code_point_unknown_to_ruby + c = { source: "a\u{378}", to_ascii: "xn--a-qib", status: %w[V7] } + assert_equal({ failure: true }, IDNATestV2.expectation(c)) + end + def test_run_passes c = { source: "fa\u00DF.de", to_ascii: "xn--fa-hia.de", status: [] } assert_nil(IDNATestV2.run(c, ->(d) { "xn--fa-hia.de" })) From 7af0e3f9f8c1c6c0c11b4a9a7f2cb8a52518cdad Mon Sep 17 00:00:00 2001 From: jinroq Date: Tue, 24 Nov 2026 21:05:10 +0900 Subject: [PATCH 69/74] Derive the IDNA mapping from the Unicode data of Ruby idna_data.rb held the IDNA Mapping Table and the other Unicode data of IDNA, 332KB. The status and the mapping of each code point are now derived as UTS #46 section 6 describes, from what Ruby has: NFKC and case folding for NFKC_Casefold, and the character properties for the base valid set. Marks and viramas come from Ruby as well, so idna_data.rb now holds only the Bidi_Class and Joining_Type values that the Bidi Rule and CONTEXTJ need, 17KB. Bidi_Class L, the class of most valid code points, is no longer listed. For every code point that the running Ruby knows, from Ruby 2.5 (Unicode 10.0) to 4.1 (Unicode 17.0), the derived status and mapping are those of IdnaMappingTable.txt 18.0. A code point added since the Unicode version of Ruby is unassigned, so disallowed. Co-Authored-By: Claude Opus 5.5 --- lib/uri/whatwg_parser/idna.rb | 114 +- lib/uri/whatwg_parser/idna_data.rb | 2503 +--------------------------- rakelib/idna_data_generator.rb | 125 +- test/uri/test_whatwg_idna.rb | 79 + test/uri/test_whatwg_parser.rb | 2 +- 5 files changed, 202 insertions(+), 2621 deletions(-) diff --git a/lib/uri/whatwg_parser/idna.rb b/lib/uri/whatwg_parser/idna.rb index 36d1189..f45895d 100644 --- a/lib/uri/whatwg_parser/idna.rb +++ b/lib/uri/whatwg_parser/idna.rb @@ -8,8 +8,16 @@ class WHATWG_Parser # Transitional_Processing=false, VerifyDnsLength=false and # IgnoreInvalidPunycode=false. # - # The Unicode data (idna_data.rb) is loaded on first use, or with - # whatwg_parser.rb where a Ractor cannot require it safely. + # The IDNA Mapping Table is not stored: the status and the mapping of + # each code point are derived as UTS #46 section 6 does, from the + # Unicode data of the running Ruby (its character properties, case + # folding and the tables of NFC and NFKC), so a code point added in a + # later Unicode version is disallowed. Only the Bidi_Class and + # Joining_Type values that the Bidi Rule and CONTEXTJ need, which Ruby + # has not, are generated (idna_data.rb). + # + # The data is loaded on first use, or with whatwg_parser.rb where a + # Ractor cannot require it safely. module IDNA # :nodoc: ACE_PREFIX = "xn--" LABEL_SEPARATOR = "." @@ -30,6 +38,33 @@ module IDNA # :nodoc: BIDI_LTR_ALLOWED = /\A[LENM]*\z/ BIDI_LTR_END = /[LE]M*\z/ + # The sets of the Mapping Table Derivation (UTS #46 section 6). + LABEL_SEPARATORS = ["\u{FF0E}", "\u{3002}", "\u{FF61}"].freeze + CAPITAL_SHARP_S = "\u{1E9E}" + SHARP_S = "\u{DF}" + BIDI_CONTROL = /\p{Bidi_Control}/ + DEFAULT_IGNORABLE = /\p{Default_Ignorable_Code_Point}/ + OTHER_OR_SEPARATOR = /[\p{C}\p{Z}]/ + IDS_OPERATOR = + begin + Regexp.new("[\\p{IDS_Unary_Operator}\\p{IDS_Binary_Operator}\\p{IDS_Trinary_Operator}]") + rescue RegexpError + # IDS_Unary_Operator is new in Unicode 15.1, with U+2FFE and U+2FFF. + /[\u{2FFE}\u{2FFF}\p{IDS_Binary_Operator}\p{IDS_Trinary_Operator}]/ + end + EXCLUDED = /[\u{FFFC}\u{FFFD}\u{E0001}-\u{E007F}]/ + UNASSIGNED = /\p{Cn}/ + DEVIATIONS = [ZWNJ, ZWJ, SHARP_S, "\u{3C2}"].freeze + + # General_Category=Mark. + MARK = /\p{M}/ + # Canonical_Combining_Class=Virama. + VIRAMA_CLASS = 9 + # The ASCII code points whose Bidi_Class (B, S or WS) is none that + # the Bidi Rule names. Every other valid code point not listed in + # idna_data.rb has Bidi_Class L. + BIDI_OTHER = /[\t\n\v\f\r\x1C-\x20]/ + module_function # Returns the ASCII form of +domain+, or nil on failure. @@ -45,7 +80,7 @@ def process(domain) return nil unless domain.valid_encoding? load_data - mapped = domain.gsub(MAPPING_CANDIDATE) { |c| MAPPING.fetch(c, c) } + mapped = domain.gsub(MAPPING_CANDIDATE) { |c| map(c) } labels = NFC.normalize(mapped).split(LABEL_SEPARATOR, -1) labels.map! do |label| label = decode_label(label) if label.start_with?(ACE_PREFIX) @@ -57,7 +92,62 @@ def process(domain) end def load_data - require_relative "idna_data" unless const_defined?(:MAPPING, false) + require_relative "idna_data" unless const_defined?(:BIDI_NSM, false) + NFC.load_tables + end + + # The character +c+ maps to in the IDNA Mapping Table: its mapping if + # its status is mapped or ignored, otherwise +c+ itself. + def map(c) + mapping_of(c) || c + end + + # Steps 6 and 7 for +c+: its mapping if its status is mapped or + # ignored (an empty string), or nil. + def mapping_of(c) + return nil if DEVIATIONS.include?(c) || c.match?(EXCLUDED) || c.match?(UNASSIGNED) + mapping = base_mapping(c) + return nil if mapping == c + return nil unless LABEL_SEPARATORS.include?(c) || mapping.each_char.all? { |m| base_valid?(m) } + # Step 7: a mapping that is not wholly valid is disallowed, such + # as the U+3002 of U+FE12, which is mapped itself. A mapping is + # stable under NFKC_Casefold, so this needs no repeating. + return nil unless mapping.each_char.all? { |m| m == LABEL_SEPARATOR || valid_char?(m) } + mapping + end + + # Step 6 for +c+: whether its status is valid or deviation. + def valid_char?(c) + return c != LABEL_SEPARATOR if c.ord < 0x80 + return true if DEVIATIONS.include?(c) + return false if c.match?(EXCLUDED) || c.match?(UNASSIGNED) + base_mapping(c) == c && base_valid?(c) + end + + # Step 1: the base mapping of +c+. + def base_mapping(c) + return LABEL_SEPARATOR if LABEL_SEPARATORS.include?(c) + return c if c.match?(BIDI_CONTROL) + return SHARP_S if c == CAPITAL_SHARP_S + nfkc_casefold(c) + end + + # Step 2: whether +c+ is in the base valid set. + def base_valid?(c) + return c != LABEL_SEPARATOR if c.ord < 0x80 + return true if c == SHARP_S + return false if c.match?(OTHER_OR_SEPARATOR) || c.match?(IDS_OPERATOR) + nfkc_casefold(c) == c + end + + # NFKC_Casefold: the closure of NFKC(toCasefold(NFKC(X))) with the + # default ignorable code points removed. + def nfkc_casefold(s) + loop do + t = NFC.normalize_kc(NFC.normalize_kc(s).downcase(:fold)).gsub(DEFAULT_IGNORABLE, "") + return t if t == s + s = t + end end # Processing step 4 for a label that starts with "xn--". Returns the @@ -78,7 +168,7 @@ def valid_label?(label) !label.start_with?(ACE_PREFIX) && !label.include?(LABEL_SEPARATOR) && !MARK.match?(label[0]) && - !INVALID.match?(label) && + label.each_char.all? { |c| valid_char?(c) } && valid_joiners?(label) end @@ -89,15 +179,19 @@ def valid_joiners?(label) chars.each_with_index.all? do |char, i| case char when ZWJ - i > 0 && VIRAMA.match?(chars[i - 1]) + i > 0 && virama?(chars[i - 1]) when ZWNJ - (i > 0 && VIRAMA.match?(chars[i - 1])) || joining_context?(chars, i) + (i > 0 && virama?(chars[i - 1])) || joining_context?(chars, i) else true end end end + def virama?(c) + NFC::COMBINING_CLASS[c.ord] == VIRAMA_CLASS + end + # Whether the ZWNJ at +i+ is preceded by Joining_Type L or D and # followed by Joining_Type R or D, with only Joining_Type T between. def joining_context?(chars, i) @@ -129,13 +223,13 @@ def satisfies_bidi_rule?(label) def bidi_classes(label) label.each_char.map do |char| - if BIDI_L.match?(char) then "L" - elsif BIDI_R_OR_AL.match?(char) then "R" + if BIDI_R_OR_AL.match?(char) then "R" elsif BIDI_AN.match?(char) then "A" elsif BIDI_EN.match?(char) then "E" elsif BIDI_ES_CS_ET_ON_BN.match?(char) then "N" elsif BIDI_NSM.match?(char) then "M" - else "X" + elsif BIDI_OTHER.match?(char) then "X" + else "L" end end.join end diff --git a/lib/uri/whatwg_parser/idna_data.rb b/lib/uri/whatwg_parser/idna_data.rb index 0465edb..6b99d90 100644 --- a/lib/uri/whatwg_parser/idna_data.rb +++ b/lib/uri/whatwg_parser/idna_data.rb @@ -4,10 +4,6 @@ # https://www.unicode.org/Public/18.0.0/idna/IdnaMappingTable.txt # https://www.unicode.org/Public/18.0.0/ucd/extracted/DerivedBidiClass.txt # https://www.unicode.org/Public/18.0.0/ucd/extracted/DerivedJoiningType.txt -# https://www.unicode.org/Public/18.0.0/ucd/extracted/DerivedCombiningClass.txt -# https://www.unicode.org/Public/18.0.0/ucd/extracted/DerivedGeneralCategory.txt -# https://www.unicode.org/Public/18.0.0/ucd/UnicodeData.txt -# https://www.unicode.org/Public/18.0.0/ucd/DerivedNormalizationProps.txt # Do not edit it by hand. module URI @@ -15,2512 +11,19 @@ class WHATWG_Parser module IDNA # :nodoc: UNICODE_VERSION = "18.0.0" - # The replacement of each code point with the status "mapped" or - # "ignored" (an empty string) in the IDNA Mapping Table. - MAPPING = { - "\u{41}" => "\u{61}", "\u{42}" => "\u{62}", "\u{43}" => "\u{63}", "\u{44}" => "\u{64}", - "\u{45}" => "\u{65}", "\u{46}" => "\u{66}", "\u{47}" => "\u{67}", "\u{48}" => "\u{68}", - "\u{49}" => "\u{69}", "\u{4A}" => "\u{6A}", "\u{4B}" => "\u{6B}", "\u{4C}" => "\u{6C}", - "\u{4D}" => "\u{6D}", "\u{4E}" => "\u{6E}", "\u{4F}" => "\u{6F}", "\u{50}" => "\u{70}", - "\u{51}" => "\u{71}", "\u{52}" => "\u{72}", "\u{53}" => "\u{73}", "\u{54}" => "\u{74}", - "\u{55}" => "\u{75}", "\u{56}" => "\u{76}", "\u{57}" => "\u{77}", "\u{58}" => "\u{78}", - "\u{59}" => "\u{79}", "\u{5A}" => "\u{7A}", "\u{A0}" => "\u{20}", "\u{A8}" => "\u{20}\u{308}", - "\u{AA}" => "\u{61}", "\u{AD}" => "", "\u{AF}" => "\u{20}\u{304}", "\u{B2}" => "\u{32}", - "\u{B3}" => "\u{33}", "\u{B4}" => "\u{20}\u{301}", "\u{B5}" => "\u{3BC}", "\u{B8}" => "\u{20}\u{327}", - "\u{B9}" => "\u{31}", "\u{BA}" => "\u{6F}", "\u{BC}" => "\u{31}\u{2044}\u{34}", "\u{BD}" => "\u{31}\u{2044}\u{32}", - "\u{BE}" => "\u{33}\u{2044}\u{34}", "\u{C0}" => "\u{E0}", "\u{C1}" => "\u{E1}", "\u{C2}" => "\u{E2}", - "\u{C3}" => "\u{E3}", "\u{C4}" => "\u{E4}", "\u{C5}" => "\u{E5}", "\u{C6}" => "\u{E6}", - "\u{C7}" => "\u{E7}", "\u{C8}" => "\u{E8}", "\u{C9}" => "\u{E9}", "\u{CA}" => "\u{EA}", - "\u{CB}" => "\u{EB}", "\u{CC}" => "\u{EC}", "\u{CD}" => "\u{ED}", "\u{CE}" => "\u{EE}", - "\u{CF}" => "\u{EF}", "\u{D0}" => "\u{F0}", "\u{D1}" => "\u{F1}", "\u{D2}" => "\u{F2}", - "\u{D3}" => "\u{F3}", "\u{D4}" => "\u{F4}", "\u{D5}" => "\u{F5}", "\u{D6}" => "\u{F6}", - "\u{D8}" => "\u{F8}", "\u{D9}" => "\u{F9}", "\u{DA}" => "\u{FA}", "\u{DB}" => "\u{FB}", - "\u{DC}" => "\u{FC}", "\u{DD}" => "\u{FD}", "\u{DE}" => "\u{FE}", "\u{100}" => "\u{101}", - "\u{102}" => "\u{103}", "\u{104}" => "\u{105}", "\u{106}" => "\u{107}", "\u{108}" => "\u{109}", - "\u{10A}" => "\u{10B}", "\u{10C}" => "\u{10D}", "\u{10E}" => "\u{10F}", "\u{110}" => "\u{111}", - "\u{112}" => "\u{113}", "\u{114}" => "\u{115}", "\u{116}" => "\u{117}", "\u{118}" => "\u{119}", - "\u{11A}" => "\u{11B}", "\u{11C}" => "\u{11D}", "\u{11E}" => "\u{11F}", "\u{120}" => "\u{121}", - "\u{122}" => "\u{123}", "\u{124}" => "\u{125}", "\u{126}" => "\u{127}", "\u{128}" => "\u{129}", - "\u{12A}" => "\u{12B}", "\u{12C}" => "\u{12D}", "\u{12E}" => "\u{12F}", "\u{130}" => "\u{69}\u{307}", - "\u{132}" => "\u{69}\u{6A}", "\u{133}" => "\u{69}\u{6A}", "\u{134}" => "\u{135}", "\u{136}" => "\u{137}", - "\u{139}" => "\u{13A}", "\u{13B}" => "\u{13C}", "\u{13D}" => "\u{13E}", "\u{13F}" => "\u{6C}\u{B7}", - "\u{140}" => "\u{6C}\u{B7}", "\u{141}" => "\u{142}", "\u{143}" => "\u{144}", "\u{145}" => "\u{146}", - "\u{147}" => "\u{148}", "\u{149}" => "\u{2BC}\u{6E}", "\u{14A}" => "\u{14B}", "\u{14C}" => "\u{14D}", - "\u{14E}" => "\u{14F}", "\u{150}" => "\u{151}", "\u{152}" => "\u{153}", "\u{154}" => "\u{155}", - "\u{156}" => "\u{157}", "\u{158}" => "\u{159}", "\u{15A}" => "\u{15B}", "\u{15C}" => "\u{15D}", - "\u{15E}" => "\u{15F}", "\u{160}" => "\u{161}", "\u{162}" => "\u{163}", "\u{164}" => "\u{165}", - "\u{166}" => "\u{167}", "\u{168}" => "\u{169}", "\u{16A}" => "\u{16B}", "\u{16C}" => "\u{16D}", - "\u{16E}" => "\u{16F}", "\u{170}" => "\u{171}", "\u{172}" => "\u{173}", "\u{174}" => "\u{175}", - "\u{176}" => "\u{177}", "\u{178}" => "\u{FF}", "\u{179}" => "\u{17A}", "\u{17B}" => "\u{17C}", - "\u{17D}" => "\u{17E}", "\u{17F}" => "\u{73}", "\u{181}" => "\u{253}", "\u{182}" => "\u{183}", - "\u{184}" => "\u{185}", "\u{186}" => "\u{254}", "\u{187}" => "\u{188}", "\u{189}" => "\u{256}", - "\u{18A}" => "\u{257}", "\u{18B}" => "\u{18C}", "\u{18E}" => "\u{1DD}", "\u{18F}" => "\u{259}", - "\u{190}" => "\u{25B}", "\u{191}" => "\u{192}", "\u{193}" => "\u{260}", "\u{194}" => "\u{263}", - "\u{196}" => "\u{269}", "\u{197}" => "\u{268}", "\u{198}" => "\u{199}", "\u{19C}" => "\u{26F}", - "\u{19D}" => "\u{272}", "\u{19F}" => "\u{275}", "\u{1A0}" => "\u{1A1}", "\u{1A2}" => "\u{1A3}", - "\u{1A4}" => "\u{1A5}", "\u{1A6}" => "\u{280}", "\u{1A7}" => "\u{1A8}", "\u{1A9}" => "\u{283}", - "\u{1AC}" => "\u{1AD}", "\u{1AE}" => "\u{288}", "\u{1AF}" => "\u{1B0}", "\u{1B1}" => "\u{28A}", - "\u{1B2}" => "\u{28B}", "\u{1B3}" => "\u{1B4}", "\u{1B5}" => "\u{1B6}", "\u{1B7}" => "\u{292}", - "\u{1B8}" => "\u{1B9}", "\u{1BC}" => "\u{1BD}", "\u{1C4}" => "\u{64}\u{17E}", "\u{1C5}" => "\u{64}\u{17E}", - "\u{1C6}" => "\u{64}\u{17E}", "\u{1C7}" => "\u{6C}\u{6A}", "\u{1C8}" => "\u{6C}\u{6A}", "\u{1C9}" => "\u{6C}\u{6A}", - "\u{1CA}" => "\u{6E}\u{6A}", "\u{1CB}" => "\u{6E}\u{6A}", "\u{1CC}" => "\u{6E}\u{6A}", "\u{1CD}" => "\u{1CE}", - "\u{1CF}" => "\u{1D0}", "\u{1D1}" => "\u{1D2}", "\u{1D3}" => "\u{1D4}", "\u{1D5}" => "\u{1D6}", - "\u{1D7}" => "\u{1D8}", "\u{1D9}" => "\u{1DA}", "\u{1DB}" => "\u{1DC}", "\u{1DE}" => "\u{1DF}", - "\u{1E0}" => "\u{1E1}", "\u{1E2}" => "\u{1E3}", "\u{1E4}" => "\u{1E5}", "\u{1E6}" => "\u{1E7}", - "\u{1E8}" => "\u{1E9}", "\u{1EA}" => "\u{1EB}", "\u{1EC}" => "\u{1ED}", "\u{1EE}" => "\u{1EF}", - "\u{1F1}" => "\u{64}\u{7A}", "\u{1F2}" => "\u{64}\u{7A}", "\u{1F3}" => "\u{64}\u{7A}", "\u{1F4}" => "\u{1F5}", - "\u{1F6}" => "\u{195}", "\u{1F7}" => "\u{1BF}", "\u{1F8}" => "\u{1F9}", "\u{1FA}" => "\u{1FB}", - "\u{1FC}" => "\u{1FD}", "\u{1FE}" => "\u{1FF}", "\u{200}" => "\u{201}", "\u{202}" => "\u{203}", - "\u{204}" => "\u{205}", "\u{206}" => "\u{207}", "\u{208}" => "\u{209}", "\u{20A}" => "\u{20B}", - "\u{20C}" => "\u{20D}", "\u{20E}" => "\u{20F}", "\u{210}" => "\u{211}", "\u{212}" => "\u{213}", - "\u{214}" => "\u{215}", "\u{216}" => "\u{217}", "\u{218}" => "\u{219}", "\u{21A}" => "\u{21B}", - "\u{21C}" => "\u{21D}", "\u{21E}" => "\u{21F}", "\u{220}" => "\u{19E}", "\u{222}" => "\u{223}", - "\u{224}" => "\u{225}", "\u{226}" => "\u{227}", "\u{228}" => "\u{229}", "\u{22A}" => "\u{22B}", - "\u{22C}" => "\u{22D}", "\u{22E}" => "\u{22F}", "\u{230}" => "\u{231}", "\u{232}" => "\u{233}", - "\u{23A}" => "\u{2C65}", "\u{23B}" => "\u{23C}", "\u{23D}" => "\u{19A}", "\u{23E}" => "\u{2C66}", - "\u{241}" => "\u{242}", "\u{243}" => "\u{180}", "\u{244}" => "\u{289}", "\u{245}" => "\u{28C}", - "\u{246}" => "\u{247}", "\u{248}" => "\u{249}", "\u{24A}" => "\u{24B}", "\u{24C}" => "\u{24D}", - "\u{24E}" => "\u{24F}", "\u{2B0}" => "\u{68}", "\u{2B1}" => "\u{266}", "\u{2B2}" => "\u{6A}", - "\u{2B3}" => "\u{72}", "\u{2B4}" => "\u{279}", "\u{2B5}" => "\u{27B}", "\u{2B6}" => "\u{281}", - "\u{2B7}" => "\u{77}", "\u{2B8}" => "\u{79}", "\u{2D8}" => "\u{20}\u{306}", "\u{2D9}" => "\u{20}\u{307}", - "\u{2DA}" => "\u{20}\u{30A}", "\u{2DB}" => "\u{20}\u{328}", "\u{2DC}" => "\u{20}\u{303}", "\u{2DD}" => "\u{20}\u{30B}", - "\u{2E0}" => "\u{263}", "\u{2E1}" => "\u{6C}", "\u{2E2}" => "\u{73}", "\u{2E3}" => "\u{78}", - "\u{2E4}" => "\u{295}", "\u{340}" => "\u{300}", "\u{341}" => "\u{301}", "\u{343}" => "\u{313}", - "\u{344}" => "\u{308}\u{301}", "\u{345}" => "\u{3B9}", "\u{34F}" => "", "\u{370}" => "\u{371}", - "\u{372}" => "\u{373}", "\u{374}" => "\u{2B9}", "\u{376}" => "\u{377}", "\u{37A}" => "\u{20}\u{3B9}", - "\u{37E}" => "\u{3B}", "\u{37F}" => "\u{3F3}", "\u{384}" => "\u{20}\u{301}", "\u{385}" => "\u{20}\u{308}\u{301}", - "\u{386}" => "\u{3AC}", "\u{387}" => "\u{B7}", "\u{388}" => "\u{3AD}", "\u{389}" => "\u{3AE}", - "\u{38A}" => "\u{3AF}", "\u{38C}" => "\u{3CC}", "\u{38E}" => "\u{3CD}", "\u{38F}" => "\u{3CE}", - "\u{391}" => "\u{3B1}", "\u{392}" => "\u{3B2}", "\u{393}" => "\u{3B3}", "\u{394}" => "\u{3B4}", - "\u{395}" => "\u{3B5}", "\u{396}" => "\u{3B6}", "\u{397}" => "\u{3B7}", "\u{398}" => "\u{3B8}", - "\u{399}" => "\u{3B9}", "\u{39A}" => "\u{3BA}", "\u{39B}" => "\u{3BB}", "\u{39C}" => "\u{3BC}", - "\u{39D}" => "\u{3BD}", "\u{39E}" => "\u{3BE}", "\u{39F}" => "\u{3BF}", "\u{3A0}" => "\u{3C0}", - "\u{3A1}" => "\u{3C1}", "\u{3A3}" => "\u{3C3}", "\u{3A4}" => "\u{3C4}", "\u{3A5}" => "\u{3C5}", - "\u{3A6}" => "\u{3C6}", "\u{3A7}" => "\u{3C7}", "\u{3A8}" => "\u{3C8}", "\u{3A9}" => "\u{3C9}", - "\u{3AA}" => "\u{3CA}", "\u{3AB}" => "\u{3CB}", "\u{3CF}" => "\u{3D7}", "\u{3D0}" => "\u{3B2}", - "\u{3D1}" => "\u{3B8}", "\u{3D2}" => "\u{3C5}", "\u{3D3}" => "\u{3CD}", "\u{3D4}" => "\u{3CB}", - "\u{3D5}" => "\u{3C6}", "\u{3D6}" => "\u{3C0}", "\u{3D8}" => "\u{3D9}", "\u{3DA}" => "\u{3DB}", - "\u{3DC}" => "\u{3DD}", "\u{3DE}" => "\u{3DF}", "\u{3E0}" => "\u{3E1}", "\u{3E2}" => "\u{3E3}", - "\u{3E4}" => "\u{3E5}", "\u{3E6}" => "\u{3E7}", "\u{3E8}" => "\u{3E9}", "\u{3EA}" => "\u{3EB}", - "\u{3EC}" => "\u{3ED}", "\u{3EE}" => "\u{3EF}", "\u{3F0}" => "\u{3BA}", "\u{3F1}" => "\u{3C1}", - "\u{3F2}" => "\u{3C3}", "\u{3F4}" => "\u{3B8}", "\u{3F5}" => "\u{3B5}", "\u{3F7}" => "\u{3F8}", - "\u{3F9}" => "\u{3C3}", "\u{3FA}" => "\u{3FB}", "\u{3FD}" => "\u{37B}", "\u{3FE}" => "\u{37C}", - "\u{3FF}" => "\u{37D}", "\u{400}" => "\u{450}", "\u{401}" => "\u{451}", "\u{402}" => "\u{452}", - "\u{403}" => "\u{453}", "\u{404}" => "\u{454}", "\u{405}" => "\u{455}", "\u{406}" => "\u{456}", - "\u{407}" => "\u{457}", "\u{408}" => "\u{458}", "\u{409}" => "\u{459}", "\u{40A}" => "\u{45A}", - "\u{40B}" => "\u{45B}", "\u{40C}" => "\u{45C}", "\u{40D}" => "\u{45D}", "\u{40E}" => "\u{45E}", - "\u{40F}" => "\u{45F}", "\u{410}" => "\u{430}", "\u{411}" => "\u{431}", "\u{412}" => "\u{432}", - "\u{413}" => "\u{433}", "\u{414}" => "\u{434}", "\u{415}" => "\u{435}", "\u{416}" => "\u{436}", - "\u{417}" => "\u{437}", "\u{418}" => "\u{438}", "\u{419}" => "\u{439}", "\u{41A}" => "\u{43A}", - "\u{41B}" => "\u{43B}", "\u{41C}" => "\u{43C}", "\u{41D}" => "\u{43D}", "\u{41E}" => "\u{43E}", - "\u{41F}" => "\u{43F}", "\u{420}" => "\u{440}", "\u{421}" => "\u{441}", "\u{422}" => "\u{442}", - "\u{423}" => "\u{443}", "\u{424}" => "\u{444}", "\u{425}" => "\u{445}", "\u{426}" => "\u{446}", - "\u{427}" => "\u{447}", "\u{428}" => "\u{448}", "\u{429}" => "\u{449}", "\u{42A}" => "\u{44A}", - "\u{42B}" => "\u{44B}", "\u{42C}" => "\u{44C}", "\u{42D}" => "\u{44D}", "\u{42E}" => "\u{44E}", - "\u{42F}" => "\u{44F}", "\u{460}" => "\u{461}", "\u{462}" => "\u{463}", "\u{464}" => "\u{465}", - "\u{466}" => "\u{467}", "\u{468}" => "\u{469}", "\u{46A}" => "\u{46B}", "\u{46C}" => "\u{46D}", - "\u{46E}" => "\u{46F}", "\u{470}" => "\u{471}", "\u{472}" => "\u{473}", "\u{474}" => "\u{475}", - "\u{476}" => "\u{477}", "\u{478}" => "\u{479}", "\u{47A}" => "\u{47B}", "\u{47C}" => "\u{47D}", - "\u{47E}" => "\u{47F}", "\u{480}" => "\u{481}", "\u{48A}" => "\u{48B}", "\u{48C}" => "\u{48D}", - "\u{48E}" => "\u{48F}", "\u{490}" => "\u{491}", "\u{492}" => "\u{493}", "\u{494}" => "\u{495}", - "\u{496}" => "\u{497}", "\u{498}" => "\u{499}", "\u{49A}" => "\u{49B}", "\u{49C}" => "\u{49D}", - "\u{49E}" => "\u{49F}", "\u{4A0}" => "\u{4A1}", "\u{4A2}" => "\u{4A3}", "\u{4A4}" => "\u{4A5}", - "\u{4A6}" => "\u{4A7}", "\u{4A8}" => "\u{4A9}", "\u{4AA}" => "\u{4AB}", "\u{4AC}" => "\u{4AD}", - "\u{4AE}" => "\u{4AF}", "\u{4B0}" => "\u{4B1}", "\u{4B2}" => "\u{4B3}", "\u{4B4}" => "\u{4B5}", - "\u{4B6}" => "\u{4B7}", "\u{4B8}" => "\u{4B9}", "\u{4BA}" => "\u{4BB}", "\u{4BC}" => "\u{4BD}", - "\u{4BE}" => "\u{4BF}", "\u{4C0}" => "\u{4CF}", "\u{4C1}" => "\u{4C2}", "\u{4C3}" => "\u{4C4}", - "\u{4C5}" => "\u{4C6}", "\u{4C7}" => "\u{4C8}", "\u{4C9}" => "\u{4CA}", "\u{4CB}" => "\u{4CC}", - "\u{4CD}" => "\u{4CE}", "\u{4D0}" => "\u{4D1}", "\u{4D2}" => "\u{4D3}", "\u{4D4}" => "\u{4D5}", - "\u{4D6}" => "\u{4D7}", "\u{4D8}" => "\u{4D9}", "\u{4DA}" => "\u{4DB}", "\u{4DC}" => "\u{4DD}", - "\u{4DE}" => "\u{4DF}", "\u{4E0}" => "\u{4E1}", "\u{4E2}" => "\u{4E3}", "\u{4E4}" => "\u{4E5}", - "\u{4E6}" => "\u{4E7}", "\u{4E8}" => "\u{4E9}", "\u{4EA}" => "\u{4EB}", "\u{4EC}" => "\u{4ED}", - "\u{4EE}" => "\u{4EF}", "\u{4F0}" => "\u{4F1}", "\u{4F2}" => "\u{4F3}", "\u{4F4}" => "\u{4F5}", - "\u{4F6}" => "\u{4F7}", "\u{4F8}" => "\u{4F9}", "\u{4FA}" => "\u{4FB}", "\u{4FC}" => "\u{4FD}", - "\u{4FE}" => "\u{4FF}", "\u{500}" => "\u{501}", "\u{502}" => "\u{503}", "\u{504}" => "\u{505}", - "\u{506}" => "\u{507}", "\u{508}" => "\u{509}", "\u{50A}" => "\u{50B}", "\u{50C}" => "\u{50D}", - "\u{50E}" => "\u{50F}", "\u{510}" => "\u{511}", "\u{512}" => "\u{513}", "\u{514}" => "\u{515}", - "\u{516}" => "\u{517}", "\u{518}" => "\u{519}", "\u{51A}" => "\u{51B}", "\u{51C}" => "\u{51D}", - "\u{51E}" => "\u{51F}", "\u{520}" => "\u{521}", "\u{522}" => "\u{523}", "\u{524}" => "\u{525}", - "\u{526}" => "\u{527}", "\u{528}" => "\u{529}", "\u{52A}" => "\u{52B}", "\u{52C}" => "\u{52D}", - "\u{52E}" => "\u{52F}", "\u{531}" => "\u{561}", "\u{532}" => "\u{562}", "\u{533}" => "\u{563}", - "\u{534}" => "\u{564}", "\u{535}" => "\u{565}", "\u{536}" => "\u{566}", "\u{537}" => "\u{567}", - "\u{538}" => "\u{568}", "\u{539}" => "\u{569}", "\u{53A}" => "\u{56A}", "\u{53B}" => "\u{56B}", - "\u{53C}" => "\u{56C}", "\u{53D}" => "\u{56D}", "\u{53E}" => "\u{56E}", "\u{53F}" => "\u{56F}", - "\u{540}" => "\u{570}", "\u{541}" => "\u{571}", "\u{542}" => "\u{572}", "\u{543}" => "\u{573}", - "\u{544}" => "\u{574}", "\u{545}" => "\u{575}", "\u{546}" => "\u{576}", "\u{547}" => "\u{577}", - "\u{548}" => "\u{578}", "\u{549}" => "\u{579}", "\u{54A}" => "\u{57A}", "\u{54B}" => "\u{57B}", - "\u{54C}" => "\u{57C}", "\u{54D}" => "\u{57D}", "\u{54E}" => "\u{57E}", "\u{54F}" => "\u{57F}", - "\u{550}" => "\u{580}", "\u{551}" => "\u{581}", "\u{552}" => "\u{582}", "\u{553}" => "\u{583}", - "\u{554}" => "\u{584}", "\u{555}" => "\u{585}", "\u{556}" => "\u{586}", "\u{558}" => "\u{567}", - "\u{587}" => "\u{565}\u{582}", "\u{58B}" => "\u{56B}", "\u{58C}" => "\u{575}", "\u{675}" => "\u{627}\u{674}", - "\u{676}" => "\u{648}\u{674}", "\u{677}" => "\u{6C7}\u{674}", "\u{678}" => "\u{64A}\u{674}", "\u{958}" => "\u{915}\u{93C}", - "\u{959}" => "\u{916}\u{93C}", "\u{95A}" => "\u{917}\u{93C}", "\u{95B}" => "\u{91C}\u{93C}", "\u{95C}" => "\u{921}\u{93C}", - "\u{95D}" => "\u{922}\u{93C}", "\u{95E}" => "\u{92B}\u{93C}", "\u{95F}" => "\u{92F}\u{93C}", "\u{9DC}" => "\u{9A1}\u{9BC}", - "\u{9DD}" => "\u{9A2}\u{9BC}", "\u{9DF}" => "\u{9AF}\u{9BC}", "\u{A33}" => "\u{A32}\u{A3C}", "\u{A36}" => "\u{A38}\u{A3C}", - "\u{A59}" => "\u{A16}\u{A3C}", "\u{A5A}" => "\u{A17}\u{A3C}", "\u{A5B}" => "\u{A1C}\u{A3C}", "\u{A5E}" => "\u{A2B}\u{A3C}", - "\u{B5C}" => "\u{B21}\u{B3C}", "\u{B5D}" => "\u{B22}\u{B3C}", "\u{E33}" => "\u{E4D}\u{E32}", "\u{EB3}" => "\u{ECD}\u{EB2}", - "\u{EDC}" => "\u{EAB}\u{E99}", "\u{EDD}" => "\u{EAB}\u{EA1}", "\u{F0C}" => "\u{F0B}", "\u{F43}" => "\u{F42}\u{FB7}", - "\u{F4D}" => "\u{F4C}\u{FB7}", "\u{F52}" => "\u{F51}\u{FB7}", "\u{F57}" => "\u{F56}\u{FB7}", "\u{F5C}" => "\u{F5B}\u{FB7}", - "\u{F69}" => "\u{F40}\u{FB5}", "\u{F73}" => "\u{F71}\u{F72}", "\u{F75}" => "\u{F71}\u{F74}", "\u{F76}" => "\u{FB2}\u{F80}", - "\u{F77}" => "\u{FB2}\u{F71}\u{F80}", "\u{F78}" => "\u{FB3}\u{F80}", "\u{F79}" => "\u{FB3}\u{F71}\u{F80}", "\u{F81}" => "\u{F71}\u{F80}", - "\u{F93}" => "\u{F92}\u{FB7}", "\u{F9D}" => "\u{F9C}\u{FB7}", "\u{FA2}" => "\u{FA1}\u{FB7}", "\u{FA7}" => "\u{FA6}\u{FB7}", - "\u{FAC}" => "\u{FAB}\u{FB7}", "\u{FB9}" => "\u{F90}\u{FB5}", "\u{10A0}" => "\u{2D00}", "\u{10A1}" => "\u{2D01}", - "\u{10A2}" => "\u{2D02}", "\u{10A3}" => "\u{2D03}", "\u{10A4}" => "\u{2D04}", "\u{10A5}" => "\u{2D05}", - "\u{10A6}" => "\u{2D06}", "\u{10A7}" => "\u{2D07}", "\u{10A8}" => "\u{2D08}", "\u{10A9}" => "\u{2D09}", - "\u{10AA}" => "\u{2D0A}", "\u{10AB}" => "\u{2D0B}", "\u{10AC}" => "\u{2D0C}", "\u{10AD}" => "\u{2D0D}", - "\u{10AE}" => "\u{2D0E}", "\u{10AF}" => "\u{2D0F}", "\u{10B0}" => "\u{2D10}", "\u{10B1}" => "\u{2D11}", - "\u{10B2}" => "\u{2D12}", "\u{10B3}" => "\u{2D13}", "\u{10B4}" => "\u{2D14}", "\u{10B5}" => "\u{2D15}", - "\u{10B6}" => "\u{2D16}", "\u{10B7}" => "\u{2D17}", "\u{10B8}" => "\u{2D18}", "\u{10B9}" => "\u{2D19}", - "\u{10BA}" => "\u{2D1A}", "\u{10BB}" => "\u{2D1B}", "\u{10BC}" => "\u{2D1C}", "\u{10BD}" => "\u{2D1D}", - "\u{10BE}" => "\u{2D1E}", "\u{10BF}" => "\u{2D1F}", "\u{10C0}" => "\u{2D20}", "\u{10C1}" => "\u{2D21}", - "\u{10C2}" => "\u{2D22}", "\u{10C3}" => "\u{2D23}", "\u{10C4}" => "\u{2D24}", "\u{10C5}" => "\u{2D25}", - "\u{10C7}" => "\u{2D27}", "\u{10CD}" => "\u{2D2D}", "\u{10FC}" => "\u{10DC}", "\u{115F}" => "", - "\u{1160}" => "", "\u{13F8}" => "\u{13F0}", "\u{13F9}" => "\u{13F1}", "\u{13FA}" => "\u{13F2}", - "\u{13FB}" => "\u{13F3}", "\u{13FC}" => "\u{13F4}", "\u{13FD}" => "\u{13F5}", "\u{17B4}" => "", - "\u{17B5}" => "", "\u{180B}" => "", "\u{180C}" => "", "\u{180D}" => "", - "\u{180E}" => "", "\u{180F}" => "", "\u{1C80}" => "\u{432}", "\u{1C81}" => "\u{434}", - "\u{1C82}" => "\u{43E}", "\u{1C83}" => "\u{441}", "\u{1C84}" => "\u{442}", "\u{1C85}" => "\u{442}", - "\u{1C86}" => "\u{44A}", "\u{1C87}" => "\u{463}", "\u{1C88}" => "\u{A64B}", "\u{1C89}" => "\u{1C8A}", - "\u{1C90}" => "\u{10D0}", "\u{1C91}" => "\u{10D1}", "\u{1C92}" => "\u{10D2}", "\u{1C93}" => "\u{10D3}", - "\u{1C94}" => "\u{10D4}", "\u{1C95}" => "\u{10D5}", "\u{1C96}" => "\u{10D6}", "\u{1C97}" => "\u{10D7}", - "\u{1C98}" => "\u{10D8}", "\u{1C99}" => "\u{10D9}", "\u{1C9A}" => "\u{10DA}", "\u{1C9B}" => "\u{10DB}", - "\u{1C9C}" => "\u{10DC}", "\u{1C9D}" => "\u{10DD}", "\u{1C9E}" => "\u{10DE}", "\u{1C9F}" => "\u{10DF}", - "\u{1CA0}" => "\u{10E0}", "\u{1CA1}" => "\u{10E1}", "\u{1CA2}" => "\u{10E2}", "\u{1CA3}" => "\u{10E3}", - "\u{1CA4}" => "\u{10E4}", "\u{1CA5}" => "\u{10E5}", "\u{1CA6}" => "\u{10E6}", "\u{1CA7}" => "\u{10E7}", - "\u{1CA8}" => "\u{10E8}", "\u{1CA9}" => "\u{10E9}", "\u{1CAA}" => "\u{10EA}", "\u{1CAB}" => "\u{10EB}", - "\u{1CAC}" => "\u{10EC}", "\u{1CAD}" => "\u{10ED}", "\u{1CAE}" => "\u{10EE}", "\u{1CAF}" => "\u{10EF}", - "\u{1CB0}" => "\u{10F0}", "\u{1CB1}" => "\u{10F1}", "\u{1CB2}" => "\u{10F2}", "\u{1CB3}" => "\u{10F3}", - "\u{1CB4}" => "\u{10F4}", "\u{1CB5}" => "\u{10F5}", "\u{1CB6}" => "\u{10F6}", "\u{1CB7}" => "\u{10F7}", - "\u{1CB8}" => "\u{10F8}", "\u{1CB9}" => "\u{10F9}", "\u{1CBA}" => "\u{10FA}", "\u{1CBD}" => "\u{10FD}", - "\u{1CBE}" => "\u{10FE}", "\u{1CBF}" => "\u{10FF}", "\u{1D2C}" => "\u{61}", "\u{1D2D}" => "\u{E6}", - "\u{1D2E}" => "\u{62}", "\u{1D30}" => "\u{64}", "\u{1D31}" => "\u{65}", "\u{1D32}" => "\u{1DD}", - "\u{1D33}" => "\u{67}", "\u{1D34}" => "\u{68}", "\u{1D35}" => "\u{69}", "\u{1D36}" => "\u{6A}", - "\u{1D37}" => "\u{6B}", "\u{1D38}" => "\u{6C}", "\u{1D39}" => "\u{6D}", "\u{1D3A}" => "\u{6E}", - "\u{1D3C}" => "\u{6F}", "\u{1D3D}" => "\u{223}", "\u{1D3E}" => "\u{70}", "\u{1D3F}" => "\u{72}", - "\u{1D40}" => "\u{74}", "\u{1D41}" => "\u{75}", "\u{1D42}" => "\u{77}", "\u{1D43}" => "\u{61}", - "\u{1D44}" => "\u{250}", "\u{1D45}" => "\u{251}", "\u{1D46}" => "\u{1D02}", "\u{1D47}" => "\u{62}", - "\u{1D48}" => "\u{64}", "\u{1D49}" => "\u{65}", "\u{1D4A}" => "\u{259}", "\u{1D4B}" => "\u{25B}", - "\u{1D4C}" => "\u{25C}", "\u{1D4D}" => "\u{67}", "\u{1D4F}" => "\u{6B}", "\u{1D50}" => "\u{6D}", - "\u{1D51}" => "\u{14B}", "\u{1D52}" => "\u{6F}", "\u{1D53}" => "\u{254}", "\u{1D54}" => "\u{1D16}", - "\u{1D55}" => "\u{1D17}", "\u{1D56}" => "\u{70}", "\u{1D57}" => "\u{74}", "\u{1D58}" => "\u{75}", - "\u{1D59}" => "\u{1D1D}", "\u{1D5A}" => "\u{26F}", "\u{1D5B}" => "\u{76}", "\u{1D5C}" => "\u{1D25}", - "\u{1D5D}" => "\u{3B2}", "\u{1D5E}" => "\u{3B3}", "\u{1D5F}" => "\u{3B4}", "\u{1D60}" => "\u{3C6}", - "\u{1D61}" => "\u{3C7}", "\u{1D62}" => "\u{69}", "\u{1D63}" => "\u{72}", "\u{1D64}" => "\u{75}", - "\u{1D65}" => "\u{76}", "\u{1D66}" => "\u{3B2}", "\u{1D67}" => "\u{3B3}", "\u{1D68}" => "\u{3C1}", - "\u{1D69}" => "\u{3C6}", "\u{1D6A}" => "\u{3C7}", "\u{1D78}" => "\u{43D}", "\u{1D9B}" => "\u{252}", - "\u{1D9C}" => "\u{63}", "\u{1D9D}" => "\u{255}", "\u{1D9E}" => "\u{F0}", "\u{1D9F}" => "\u{25C}", - "\u{1DA0}" => "\u{66}", "\u{1DA1}" => "\u{25F}", "\u{1DA2}" => "\u{261}", "\u{1DA3}" => "\u{265}", - "\u{1DA4}" => "\u{268}", "\u{1DA5}" => "\u{269}", "\u{1DA6}" => "\u{26A}", "\u{1DA7}" => "\u{1D7B}", - "\u{1DA8}" => "\u{29D}", "\u{1DA9}" => "\u{26D}", "\u{1DAA}" => "\u{1D85}", "\u{1DAB}" => "\u{29F}", - "\u{1DAC}" => "\u{271}", "\u{1DAD}" => "\u{270}", "\u{1DAE}" => "\u{272}", "\u{1DAF}" => "\u{273}", - "\u{1DB0}" => "\u{274}", "\u{1DB1}" => "\u{275}", "\u{1DB2}" => "\u{278}", "\u{1DB3}" => "\u{282}", - "\u{1DB4}" => "\u{283}", "\u{1DB5}" => "\u{1AB}", "\u{1DB6}" => "\u{289}", "\u{1DB7}" => "\u{28A}", - "\u{1DB8}" => "\u{1D1C}", "\u{1DB9}" => "\u{28B}", "\u{1DBA}" => "\u{28C}", "\u{1DBB}" => "\u{7A}", - "\u{1DBC}" => "\u{290}", "\u{1DBD}" => "\u{291}", "\u{1DBE}" => "\u{292}", "\u{1DBF}" => "\u{3B8}", - "\u{1E00}" => "\u{1E01}", "\u{1E02}" => "\u{1E03}", "\u{1E04}" => "\u{1E05}", "\u{1E06}" => "\u{1E07}", - "\u{1E08}" => "\u{1E09}", "\u{1E0A}" => "\u{1E0B}", "\u{1E0C}" => "\u{1E0D}", "\u{1E0E}" => "\u{1E0F}", - "\u{1E10}" => "\u{1E11}", "\u{1E12}" => "\u{1E13}", "\u{1E14}" => "\u{1E15}", "\u{1E16}" => "\u{1E17}", - "\u{1E18}" => "\u{1E19}", "\u{1E1A}" => "\u{1E1B}", "\u{1E1C}" => "\u{1E1D}", "\u{1E1E}" => "\u{1E1F}", - "\u{1E20}" => "\u{1E21}", "\u{1E22}" => "\u{1E23}", "\u{1E24}" => "\u{1E25}", "\u{1E26}" => "\u{1E27}", - "\u{1E28}" => "\u{1E29}", "\u{1E2A}" => "\u{1E2B}", "\u{1E2C}" => "\u{1E2D}", "\u{1E2E}" => "\u{1E2F}", - "\u{1E30}" => "\u{1E31}", "\u{1E32}" => "\u{1E33}", "\u{1E34}" => "\u{1E35}", "\u{1E36}" => "\u{1E37}", - "\u{1E38}" => "\u{1E39}", "\u{1E3A}" => "\u{1E3B}", "\u{1E3C}" => "\u{1E3D}", "\u{1E3E}" => "\u{1E3F}", - "\u{1E40}" => "\u{1E41}", "\u{1E42}" => "\u{1E43}", "\u{1E44}" => "\u{1E45}", "\u{1E46}" => "\u{1E47}", - "\u{1E48}" => "\u{1E49}", "\u{1E4A}" => "\u{1E4B}", "\u{1E4C}" => "\u{1E4D}", "\u{1E4E}" => "\u{1E4F}", - "\u{1E50}" => "\u{1E51}", "\u{1E52}" => "\u{1E53}", "\u{1E54}" => "\u{1E55}", "\u{1E56}" => "\u{1E57}", - "\u{1E58}" => "\u{1E59}", "\u{1E5A}" => "\u{1E5B}", "\u{1E5C}" => "\u{1E5D}", "\u{1E5E}" => "\u{1E5F}", - "\u{1E60}" => "\u{1E61}", "\u{1E62}" => "\u{1E63}", "\u{1E64}" => "\u{1E65}", "\u{1E66}" => "\u{1E67}", - "\u{1E68}" => "\u{1E69}", "\u{1E6A}" => "\u{1E6B}", "\u{1E6C}" => "\u{1E6D}", "\u{1E6E}" => "\u{1E6F}", - "\u{1E70}" => "\u{1E71}", "\u{1E72}" => "\u{1E73}", "\u{1E74}" => "\u{1E75}", "\u{1E76}" => "\u{1E77}", - "\u{1E78}" => "\u{1E79}", "\u{1E7A}" => "\u{1E7B}", "\u{1E7C}" => "\u{1E7D}", "\u{1E7E}" => "\u{1E7F}", - "\u{1E80}" => "\u{1E81}", "\u{1E82}" => "\u{1E83}", "\u{1E84}" => "\u{1E85}", "\u{1E86}" => "\u{1E87}", - "\u{1E88}" => "\u{1E89}", "\u{1E8A}" => "\u{1E8B}", "\u{1E8C}" => "\u{1E8D}", "\u{1E8E}" => "\u{1E8F}", - "\u{1E90}" => "\u{1E91}", "\u{1E92}" => "\u{1E93}", "\u{1E94}" => "\u{1E95}", "\u{1E9A}" => "\u{61}\u{2BE}", - "\u{1E9B}" => "\u{1E61}", "\u{1E9E}" => "\u{DF}", "\u{1EA0}" => "\u{1EA1}", "\u{1EA2}" => "\u{1EA3}", - "\u{1EA4}" => "\u{1EA5}", "\u{1EA6}" => "\u{1EA7}", "\u{1EA8}" => "\u{1EA9}", "\u{1EAA}" => "\u{1EAB}", - "\u{1EAC}" => "\u{1EAD}", "\u{1EAE}" => "\u{1EAF}", "\u{1EB0}" => "\u{1EB1}", "\u{1EB2}" => "\u{1EB3}", - "\u{1EB4}" => "\u{1EB5}", "\u{1EB6}" => "\u{1EB7}", "\u{1EB8}" => "\u{1EB9}", "\u{1EBA}" => "\u{1EBB}", - "\u{1EBC}" => "\u{1EBD}", "\u{1EBE}" => "\u{1EBF}", "\u{1EC0}" => "\u{1EC1}", "\u{1EC2}" => "\u{1EC3}", - "\u{1EC4}" => "\u{1EC5}", "\u{1EC6}" => "\u{1EC7}", "\u{1EC8}" => "\u{1EC9}", "\u{1ECA}" => "\u{1ECB}", - "\u{1ECC}" => "\u{1ECD}", "\u{1ECE}" => "\u{1ECF}", "\u{1ED0}" => "\u{1ED1}", "\u{1ED2}" => "\u{1ED3}", - "\u{1ED4}" => "\u{1ED5}", "\u{1ED6}" => "\u{1ED7}", "\u{1ED8}" => "\u{1ED9}", "\u{1EDA}" => "\u{1EDB}", - "\u{1EDC}" => "\u{1EDD}", "\u{1EDE}" => "\u{1EDF}", "\u{1EE0}" => "\u{1EE1}", "\u{1EE2}" => "\u{1EE3}", - "\u{1EE4}" => "\u{1EE5}", "\u{1EE6}" => "\u{1EE7}", "\u{1EE8}" => "\u{1EE9}", "\u{1EEA}" => "\u{1EEB}", - "\u{1EEC}" => "\u{1EED}", "\u{1EEE}" => "\u{1EEF}", "\u{1EF0}" => "\u{1EF1}", "\u{1EF2}" => "\u{1EF3}", - "\u{1EF4}" => "\u{1EF5}", "\u{1EF6}" => "\u{1EF7}", "\u{1EF8}" => "\u{1EF9}", "\u{1EFA}" => "\u{1EFB}", - "\u{1EFC}" => "\u{1EFD}", "\u{1EFE}" => "\u{1EFF}", "\u{1F08}" => "\u{1F00}", "\u{1F09}" => "\u{1F01}", - "\u{1F0A}" => "\u{1F02}", "\u{1F0B}" => "\u{1F03}", "\u{1F0C}" => "\u{1F04}", "\u{1F0D}" => "\u{1F05}", - "\u{1F0E}" => "\u{1F06}", "\u{1F0F}" => "\u{1F07}", "\u{1F18}" => "\u{1F10}", "\u{1F19}" => "\u{1F11}", - "\u{1F1A}" => "\u{1F12}", "\u{1F1B}" => "\u{1F13}", "\u{1F1C}" => "\u{1F14}", "\u{1F1D}" => "\u{1F15}", - "\u{1F28}" => "\u{1F20}", "\u{1F29}" => "\u{1F21}", "\u{1F2A}" => "\u{1F22}", "\u{1F2B}" => "\u{1F23}", - "\u{1F2C}" => "\u{1F24}", "\u{1F2D}" => "\u{1F25}", "\u{1F2E}" => "\u{1F26}", "\u{1F2F}" => "\u{1F27}", - "\u{1F38}" => "\u{1F30}", "\u{1F39}" => "\u{1F31}", "\u{1F3A}" => "\u{1F32}", "\u{1F3B}" => "\u{1F33}", - "\u{1F3C}" => "\u{1F34}", "\u{1F3D}" => "\u{1F35}", "\u{1F3E}" => "\u{1F36}", "\u{1F3F}" => "\u{1F37}", - "\u{1F48}" => "\u{1F40}", "\u{1F49}" => "\u{1F41}", "\u{1F4A}" => "\u{1F42}", "\u{1F4B}" => "\u{1F43}", - "\u{1F4C}" => "\u{1F44}", "\u{1F4D}" => "\u{1F45}", "\u{1F59}" => "\u{1F51}", "\u{1F5B}" => "\u{1F53}", - "\u{1F5D}" => "\u{1F55}", "\u{1F5F}" => "\u{1F57}", "\u{1F68}" => "\u{1F60}", "\u{1F69}" => "\u{1F61}", - "\u{1F6A}" => "\u{1F62}", "\u{1F6B}" => "\u{1F63}", "\u{1F6C}" => "\u{1F64}", "\u{1F6D}" => "\u{1F65}", - "\u{1F6E}" => "\u{1F66}", "\u{1F6F}" => "\u{1F67}", "\u{1F71}" => "\u{3AC}", "\u{1F73}" => "\u{3AD}", - "\u{1F75}" => "\u{3AE}", "\u{1F77}" => "\u{3AF}", "\u{1F79}" => "\u{3CC}", "\u{1F7B}" => "\u{3CD}", - "\u{1F7D}" => "\u{3CE}", "\u{1F80}" => "\u{1F00}\u{3B9}", "\u{1F81}" => "\u{1F01}\u{3B9}", "\u{1F82}" => "\u{1F02}\u{3B9}", - "\u{1F83}" => "\u{1F03}\u{3B9}", "\u{1F84}" => "\u{1F04}\u{3B9}", "\u{1F85}" => "\u{1F05}\u{3B9}", "\u{1F86}" => "\u{1F06}\u{3B9}", - "\u{1F87}" => "\u{1F07}\u{3B9}", "\u{1F88}" => "\u{1F00}\u{3B9}", "\u{1F89}" => "\u{1F01}\u{3B9}", "\u{1F8A}" => "\u{1F02}\u{3B9}", - "\u{1F8B}" => "\u{1F03}\u{3B9}", "\u{1F8C}" => "\u{1F04}\u{3B9}", "\u{1F8D}" => "\u{1F05}\u{3B9}", "\u{1F8E}" => "\u{1F06}\u{3B9}", - "\u{1F8F}" => "\u{1F07}\u{3B9}", "\u{1F90}" => "\u{1F20}\u{3B9}", "\u{1F91}" => "\u{1F21}\u{3B9}", "\u{1F92}" => "\u{1F22}\u{3B9}", - "\u{1F93}" => "\u{1F23}\u{3B9}", "\u{1F94}" => "\u{1F24}\u{3B9}", "\u{1F95}" => "\u{1F25}\u{3B9}", "\u{1F96}" => "\u{1F26}\u{3B9}", - "\u{1F97}" => "\u{1F27}\u{3B9}", "\u{1F98}" => "\u{1F20}\u{3B9}", "\u{1F99}" => "\u{1F21}\u{3B9}", "\u{1F9A}" => "\u{1F22}\u{3B9}", - "\u{1F9B}" => "\u{1F23}\u{3B9}", "\u{1F9C}" => "\u{1F24}\u{3B9}", "\u{1F9D}" => "\u{1F25}\u{3B9}", "\u{1F9E}" => "\u{1F26}\u{3B9}", - "\u{1F9F}" => "\u{1F27}\u{3B9}", "\u{1FA0}" => "\u{1F60}\u{3B9}", "\u{1FA1}" => "\u{1F61}\u{3B9}", "\u{1FA2}" => "\u{1F62}\u{3B9}", - "\u{1FA3}" => "\u{1F63}\u{3B9}", "\u{1FA4}" => "\u{1F64}\u{3B9}", "\u{1FA5}" => "\u{1F65}\u{3B9}", "\u{1FA6}" => "\u{1F66}\u{3B9}", - "\u{1FA7}" => "\u{1F67}\u{3B9}", "\u{1FA8}" => "\u{1F60}\u{3B9}", "\u{1FA9}" => "\u{1F61}\u{3B9}", "\u{1FAA}" => "\u{1F62}\u{3B9}", - "\u{1FAB}" => "\u{1F63}\u{3B9}", "\u{1FAC}" => "\u{1F64}\u{3B9}", "\u{1FAD}" => "\u{1F65}\u{3B9}", "\u{1FAE}" => "\u{1F66}\u{3B9}", - "\u{1FAF}" => "\u{1F67}\u{3B9}", "\u{1FB2}" => "\u{1F70}\u{3B9}", "\u{1FB3}" => "\u{3B1}\u{3B9}", "\u{1FB4}" => "\u{3AC}\u{3B9}", - "\u{1FB7}" => "\u{1FB6}\u{3B9}", "\u{1FB8}" => "\u{1FB0}", "\u{1FB9}" => "\u{1FB1}", "\u{1FBA}" => "\u{1F70}", - "\u{1FBB}" => "\u{3AC}", "\u{1FBC}" => "\u{3B1}\u{3B9}", "\u{1FBD}" => "\u{20}\u{313}", "\u{1FBE}" => "\u{3B9}", - "\u{1FBF}" => "\u{20}\u{313}", "\u{1FC0}" => "\u{20}\u{342}", "\u{1FC1}" => "\u{20}\u{308}\u{342}", "\u{1FC2}" => "\u{1F74}\u{3B9}", - "\u{1FC3}" => "\u{3B7}\u{3B9}", "\u{1FC4}" => "\u{3AE}\u{3B9}", "\u{1FC7}" => "\u{1FC6}\u{3B9}", "\u{1FC8}" => "\u{1F72}", - "\u{1FC9}" => "\u{3AD}", "\u{1FCA}" => "\u{1F74}", "\u{1FCB}" => "\u{3AE}", "\u{1FCC}" => "\u{3B7}\u{3B9}", - "\u{1FCD}" => "\u{20}\u{313}\u{300}", "\u{1FCE}" => "\u{20}\u{313}\u{301}", "\u{1FCF}" => "\u{20}\u{313}\u{342}", "\u{1FD3}" => "\u{390}", - "\u{1FD8}" => "\u{1FD0}", "\u{1FD9}" => "\u{1FD1}", "\u{1FDA}" => "\u{1F76}", "\u{1FDB}" => "\u{3AF}", - "\u{1FDD}" => "\u{20}\u{314}\u{300}", "\u{1FDE}" => "\u{20}\u{314}\u{301}", "\u{1FDF}" => "\u{20}\u{314}\u{342}", "\u{1FE3}" => "\u{3B0}", - "\u{1FE8}" => "\u{1FE0}", "\u{1FE9}" => "\u{1FE1}", "\u{1FEA}" => "\u{1F7A}", "\u{1FEB}" => "\u{3CD}", - "\u{1FEC}" => "\u{1FE5}", "\u{1FED}" => "\u{20}\u{308}\u{300}", "\u{1FEE}" => "\u{20}\u{308}\u{301}", "\u{1FEF}" => "\u{60}", - "\u{1FF2}" => "\u{1F7C}\u{3B9}", "\u{1FF3}" => "\u{3C9}\u{3B9}", "\u{1FF4}" => "\u{3CE}\u{3B9}", "\u{1FF7}" => "\u{1FF6}\u{3B9}", - "\u{1FF8}" => "\u{1F78}", "\u{1FF9}" => "\u{3CC}", "\u{1FFA}" => "\u{1F7C}", "\u{1FFB}" => "\u{3CE}", - "\u{1FFC}" => "\u{3C9}\u{3B9}", "\u{1FFD}" => "\u{20}\u{301}", "\u{1FFE}" => "\u{20}\u{314}", "\u{2000}" => "\u{20}", - "\u{2001}" => "\u{20}", "\u{2002}" => "\u{20}", "\u{2003}" => "\u{20}", "\u{2004}" => "\u{20}", - "\u{2005}" => "\u{20}", "\u{2006}" => "\u{20}", "\u{2007}" => "\u{20}", "\u{2008}" => "\u{20}", - "\u{2009}" => "\u{20}", "\u{200A}" => "\u{20}", "\u{200B}" => "", "\u{2011}" => "\u{2010}", - "\u{2017}" => "\u{20}\u{333}", "\u{202F}" => "\u{20}", "\u{2033}" => "\u{2032}\u{2032}", "\u{2034}" => "\u{2032}\u{2032}\u{2032}", - "\u{2036}" => "\u{2035}\u{2035}", "\u{2037}" => "\u{2035}\u{2035}\u{2035}", "\u{203C}" => "\u{21}\u{21}", "\u{203E}" => "\u{20}\u{305}", - "\u{2047}" => "\u{3F}\u{3F}", "\u{2048}" => "\u{3F}\u{21}", "\u{2049}" => "\u{21}\u{3F}", "\u{2057}" => "\u{2032}\u{2032}\u{2032}\u{2032}", - "\u{205F}" => "\u{20}", "\u{2060}" => "", "\u{2061}" => "", "\u{2062}" => "", - "\u{2063}" => "", "\u{2064}" => "", "\u{206A}" => "", "\u{206B}" => "", - "\u{206C}" => "", "\u{206D}" => "", "\u{206E}" => "", "\u{206F}" => "", - "\u{2070}" => "\u{30}", "\u{2071}" => "\u{69}", "\u{2074}" => "\u{34}", "\u{2075}" => "\u{35}", - "\u{2076}" => "\u{36}", "\u{2077}" => "\u{37}", "\u{2078}" => "\u{38}", "\u{2079}" => "\u{39}", - "\u{207A}" => "\u{2B}", "\u{207B}" => "\u{2212}", "\u{207C}" => "\u{3D}", "\u{207D}" => "\u{28}", - "\u{207E}" => "\u{29}", "\u{207F}" => "\u{6E}", "\u{2080}" => "\u{30}", "\u{2081}" => "\u{31}", - "\u{2082}" => "\u{32}", "\u{2083}" => "\u{33}", "\u{2084}" => "\u{34}", "\u{2085}" => "\u{35}", - "\u{2086}" => "\u{36}", "\u{2087}" => "\u{37}", "\u{2088}" => "\u{38}", "\u{2089}" => "\u{39}", - "\u{208A}" => "\u{2B}", "\u{208B}" => "\u{2212}", "\u{208C}" => "\u{3D}", "\u{208D}" => "\u{28}", - "\u{208E}" => "\u{29}", "\u{2090}" => "\u{61}", "\u{2091}" => "\u{65}", "\u{2092}" => "\u{6F}", - "\u{2093}" => "\u{78}", "\u{2094}" => "\u{259}", "\u{2095}" => "\u{68}", "\u{2096}" => "\u{6B}", - "\u{2097}" => "\u{6C}", "\u{2098}" => "\u{6D}", "\u{2099}" => "\u{6E}", "\u{209A}" => "\u{70}", - "\u{209B}" => "\u{73}", "\u{209C}" => "\u{74}", "\u{209D}" => "\u{77}", "\u{209E}" => "\u{79}", - "\u{209F}" => "\u{7A}", "\u{20A8}" => "\u{72}\u{73}", "\u{2100}" => "\u{61}\u{2F}\u{63}", "\u{2101}" => "\u{61}\u{2F}\u{73}", - "\u{2102}" => "\u{63}", "\u{2103}" => "\u{B0}\u{63}", "\u{2105}" => "\u{63}\u{2F}\u{6F}", "\u{2106}" => "\u{63}\u{2F}\u{75}", - "\u{2107}" => "\u{25B}", "\u{2109}" => "\u{B0}\u{66}", "\u{210A}" => "\u{67}", "\u{210B}" => "\u{68}", - "\u{210C}" => "\u{68}", "\u{210D}" => "\u{68}", "\u{210E}" => "\u{68}", "\u{210F}" => "\u{127}", - "\u{2110}" => "\u{69}", "\u{2111}" => "\u{69}", "\u{2112}" => "\u{6C}", "\u{2113}" => "\u{6C}", - "\u{2115}" => "\u{6E}", "\u{2116}" => "\u{6E}\u{6F}", "\u{2119}" => "\u{70}", "\u{211A}" => "\u{71}", - "\u{211B}" => "\u{72}", "\u{211C}" => "\u{72}", "\u{211D}" => "\u{72}", "\u{2120}" => "\u{73}\u{6D}", - "\u{2121}" => "\u{74}\u{65}\u{6C}", "\u{2122}" => "\u{74}\u{6D}", "\u{2124}" => "\u{7A}", "\u{2126}" => "\u{3C9}", - "\u{2128}" => "\u{7A}", "\u{212A}" => "\u{6B}", "\u{212B}" => "\u{E5}", "\u{212C}" => "\u{62}", - "\u{212D}" => "\u{63}", "\u{212F}" => "\u{65}", "\u{2130}" => "\u{65}", "\u{2131}" => "\u{66}", - "\u{2132}" => "\u{214E}", "\u{2133}" => "\u{6D}", "\u{2134}" => "\u{6F}", "\u{2135}" => "\u{5D0}", - "\u{2136}" => "\u{5D1}", "\u{2137}" => "\u{5D2}", "\u{2138}" => "\u{5D3}", "\u{2139}" => "\u{69}", - "\u{213B}" => "\u{66}\u{61}\u{78}", "\u{213C}" => "\u{3C0}", "\u{213D}" => "\u{3B3}", "\u{213E}" => "\u{3B3}", - "\u{213F}" => "\u{3C0}", "\u{2140}" => "\u{2211}", "\u{2145}" => "\u{64}", "\u{2146}" => "\u{64}", - "\u{2147}" => "\u{65}", "\u{2148}" => "\u{69}", "\u{2149}" => "\u{6A}", "\u{2150}" => "\u{31}\u{2044}\u{37}", - "\u{2151}" => "\u{31}\u{2044}\u{39}", "\u{2152}" => "\u{31}\u{2044}\u{31}\u{30}", "\u{2153}" => "\u{31}\u{2044}\u{33}", "\u{2154}" => "\u{32}\u{2044}\u{33}", - "\u{2155}" => "\u{31}\u{2044}\u{35}", "\u{2156}" => "\u{32}\u{2044}\u{35}", "\u{2157}" => "\u{33}\u{2044}\u{35}", "\u{2158}" => "\u{34}\u{2044}\u{35}", - "\u{2159}" => "\u{31}\u{2044}\u{36}", "\u{215A}" => "\u{35}\u{2044}\u{36}", "\u{215B}" => "\u{31}\u{2044}\u{38}", "\u{215C}" => "\u{33}\u{2044}\u{38}", - "\u{215D}" => "\u{35}\u{2044}\u{38}", "\u{215E}" => "\u{37}\u{2044}\u{38}", "\u{215F}" => "\u{31}\u{2044}", "\u{2160}" => "\u{69}", - "\u{2161}" => "\u{69}\u{69}", "\u{2162}" => "\u{69}\u{69}\u{69}", "\u{2163}" => "\u{69}\u{76}", "\u{2164}" => "\u{76}", - "\u{2165}" => "\u{76}\u{69}", "\u{2166}" => "\u{76}\u{69}\u{69}", "\u{2167}" => "\u{76}\u{69}\u{69}\u{69}", "\u{2168}" => "\u{69}\u{78}", - "\u{2169}" => "\u{78}", "\u{216A}" => "\u{78}\u{69}", "\u{216B}" => "\u{78}\u{69}\u{69}", "\u{216C}" => "\u{6C}", - "\u{216D}" => "\u{63}", "\u{216E}" => "\u{64}", "\u{216F}" => "\u{6D}", "\u{2170}" => "\u{69}", - "\u{2171}" => "\u{69}\u{69}", "\u{2172}" => "\u{69}\u{69}\u{69}", "\u{2173}" => "\u{69}\u{76}", "\u{2174}" => "\u{76}", - "\u{2175}" => "\u{76}\u{69}", "\u{2176}" => "\u{76}\u{69}\u{69}", "\u{2177}" => "\u{76}\u{69}\u{69}\u{69}", "\u{2178}" => "\u{69}\u{78}", - "\u{2179}" => "\u{78}", "\u{217A}" => "\u{78}\u{69}", "\u{217B}" => "\u{78}\u{69}\u{69}", "\u{217C}" => "\u{6C}", - "\u{217D}" => "\u{63}", "\u{217E}" => "\u{64}", "\u{217F}" => "\u{6D}", "\u{2183}" => "\u{2184}", - "\u{2189}" => "\u{30}\u{2044}\u{33}", "\u{222C}" => "\u{222B}\u{222B}", "\u{222D}" => "\u{222B}\u{222B}\u{222B}", "\u{222F}" => "\u{222E}\u{222E}", - "\u{2230}" => "\u{222E}\u{222E}\u{222E}", "\u{2329}" => "\u{3008}", "\u{232A}" => "\u{3009}", "\u{2460}" => "\u{31}", - "\u{2461}" => "\u{32}", "\u{2462}" => "\u{33}", "\u{2463}" => "\u{34}", "\u{2464}" => "\u{35}", - "\u{2465}" => "\u{36}", "\u{2466}" => "\u{37}", "\u{2467}" => "\u{38}", "\u{2468}" => "\u{39}", - "\u{2469}" => "\u{31}\u{30}", "\u{246A}" => "\u{31}\u{31}", "\u{246B}" => "\u{31}\u{32}", "\u{246C}" => "\u{31}\u{33}", - "\u{246D}" => "\u{31}\u{34}", "\u{246E}" => "\u{31}\u{35}", "\u{246F}" => "\u{31}\u{36}", "\u{2470}" => "\u{31}\u{37}", - "\u{2471}" => "\u{31}\u{38}", "\u{2472}" => "\u{31}\u{39}", "\u{2473}" => "\u{32}\u{30}", "\u{2474}" => "\u{28}\u{31}\u{29}", - "\u{2475}" => "\u{28}\u{32}\u{29}", "\u{2476}" => "\u{28}\u{33}\u{29}", "\u{2477}" => "\u{28}\u{34}\u{29}", "\u{2478}" => "\u{28}\u{35}\u{29}", - "\u{2479}" => "\u{28}\u{36}\u{29}", "\u{247A}" => "\u{28}\u{37}\u{29}", "\u{247B}" => "\u{28}\u{38}\u{29}", "\u{247C}" => "\u{28}\u{39}\u{29}", - "\u{247D}" => "\u{28}\u{31}\u{30}\u{29}", "\u{247E}" => "\u{28}\u{31}\u{31}\u{29}", "\u{247F}" => "\u{28}\u{31}\u{32}\u{29}", "\u{2480}" => "\u{28}\u{31}\u{33}\u{29}", - "\u{2481}" => "\u{28}\u{31}\u{34}\u{29}", "\u{2482}" => "\u{28}\u{31}\u{35}\u{29}", "\u{2483}" => "\u{28}\u{31}\u{36}\u{29}", "\u{2484}" => "\u{28}\u{31}\u{37}\u{29}", - "\u{2485}" => "\u{28}\u{31}\u{38}\u{29}", "\u{2486}" => "\u{28}\u{31}\u{39}\u{29}", "\u{2487}" => "\u{28}\u{32}\u{30}\u{29}", "\u{249C}" => "\u{28}\u{61}\u{29}", - "\u{249D}" => "\u{28}\u{62}\u{29}", "\u{249E}" => "\u{28}\u{63}\u{29}", "\u{249F}" => "\u{28}\u{64}\u{29}", "\u{24A0}" => "\u{28}\u{65}\u{29}", - "\u{24A1}" => "\u{28}\u{66}\u{29}", "\u{24A2}" => "\u{28}\u{67}\u{29}", "\u{24A3}" => "\u{28}\u{68}\u{29}", "\u{24A4}" => "\u{28}\u{69}\u{29}", - "\u{24A5}" => "\u{28}\u{6A}\u{29}", "\u{24A6}" => "\u{28}\u{6B}\u{29}", "\u{24A7}" => "\u{28}\u{6C}\u{29}", "\u{24A8}" => "\u{28}\u{6D}\u{29}", - "\u{24A9}" => "\u{28}\u{6E}\u{29}", "\u{24AA}" => "\u{28}\u{6F}\u{29}", "\u{24AB}" => "\u{28}\u{70}\u{29}", "\u{24AC}" => "\u{28}\u{71}\u{29}", - "\u{24AD}" => "\u{28}\u{72}\u{29}", "\u{24AE}" => "\u{28}\u{73}\u{29}", "\u{24AF}" => "\u{28}\u{74}\u{29}", "\u{24B0}" => "\u{28}\u{75}\u{29}", - "\u{24B1}" => "\u{28}\u{76}\u{29}", "\u{24B2}" => "\u{28}\u{77}\u{29}", "\u{24B3}" => "\u{28}\u{78}\u{29}", "\u{24B4}" => "\u{28}\u{79}\u{29}", - "\u{24B5}" => "\u{28}\u{7A}\u{29}", "\u{24B6}" => "\u{61}", "\u{24B7}" => "\u{62}", "\u{24B8}" => "\u{63}", - "\u{24B9}" => "\u{64}", "\u{24BA}" => "\u{65}", "\u{24BB}" => "\u{66}", "\u{24BC}" => "\u{67}", - "\u{24BD}" => "\u{68}", "\u{24BE}" => "\u{69}", "\u{24BF}" => "\u{6A}", "\u{24C0}" => "\u{6B}", - "\u{24C1}" => "\u{6C}", "\u{24C2}" => "\u{6D}", "\u{24C3}" => "\u{6E}", "\u{24C4}" => "\u{6F}", - "\u{24C5}" => "\u{70}", "\u{24C6}" => "\u{71}", "\u{24C7}" => "\u{72}", "\u{24C8}" => "\u{73}", - "\u{24C9}" => "\u{74}", "\u{24CA}" => "\u{75}", "\u{24CB}" => "\u{76}", "\u{24CC}" => "\u{77}", - "\u{24CD}" => "\u{78}", "\u{24CE}" => "\u{79}", "\u{24CF}" => "\u{7A}", "\u{24D0}" => "\u{61}", - "\u{24D1}" => "\u{62}", "\u{24D2}" => "\u{63}", "\u{24D3}" => "\u{64}", "\u{24D4}" => "\u{65}", - "\u{24D5}" => "\u{66}", "\u{24D6}" => "\u{67}", "\u{24D7}" => "\u{68}", "\u{24D8}" => "\u{69}", - "\u{24D9}" => "\u{6A}", "\u{24DA}" => "\u{6B}", "\u{24DB}" => "\u{6C}", "\u{24DC}" => "\u{6D}", - "\u{24DD}" => "\u{6E}", "\u{24DE}" => "\u{6F}", "\u{24DF}" => "\u{70}", "\u{24E0}" => "\u{71}", - "\u{24E1}" => "\u{72}", "\u{24E2}" => "\u{73}", "\u{24E3}" => "\u{74}", "\u{24E4}" => "\u{75}", - "\u{24E5}" => "\u{76}", "\u{24E6}" => "\u{77}", "\u{24E7}" => "\u{78}", "\u{24E8}" => "\u{79}", - "\u{24E9}" => "\u{7A}", "\u{24EA}" => "\u{30}", "\u{2A0C}" => "\u{222B}\u{222B}\u{222B}\u{222B}", "\u{2A74}" => "\u{3A}\u{3A}\u{3D}", - "\u{2A75}" => "\u{3D}\u{3D}", "\u{2A76}" => "\u{3D}\u{3D}\u{3D}", "\u{2ADC}" => "\u{2ADD}\u{338}", "\u{2C00}" => "\u{2C30}", - "\u{2C01}" => "\u{2C31}", "\u{2C02}" => "\u{2C32}", "\u{2C03}" => "\u{2C33}", "\u{2C04}" => "\u{2C34}", - "\u{2C05}" => "\u{2C35}", "\u{2C06}" => "\u{2C36}", "\u{2C07}" => "\u{2C37}", "\u{2C08}" => "\u{2C38}", - "\u{2C09}" => "\u{2C39}", "\u{2C0A}" => "\u{2C3A}", "\u{2C0B}" => "\u{2C3B}", "\u{2C0C}" => "\u{2C3C}", - "\u{2C0D}" => "\u{2C3D}", "\u{2C0E}" => "\u{2C3E}", "\u{2C0F}" => "\u{2C3F}", "\u{2C10}" => "\u{2C40}", - "\u{2C11}" => "\u{2C41}", "\u{2C12}" => "\u{2C42}", "\u{2C13}" => "\u{2C43}", "\u{2C14}" => "\u{2C44}", - "\u{2C15}" => "\u{2C45}", "\u{2C16}" => "\u{2C46}", "\u{2C17}" => "\u{2C47}", "\u{2C18}" => "\u{2C48}", - "\u{2C19}" => "\u{2C49}", "\u{2C1A}" => "\u{2C4A}", "\u{2C1B}" => "\u{2C4B}", "\u{2C1C}" => "\u{2C4C}", - "\u{2C1D}" => "\u{2C4D}", "\u{2C1E}" => "\u{2C4E}", "\u{2C1F}" => "\u{2C4F}", "\u{2C20}" => "\u{2C50}", - "\u{2C21}" => "\u{2C51}", "\u{2C22}" => "\u{2C52}", "\u{2C23}" => "\u{2C53}", "\u{2C24}" => "\u{2C54}", - "\u{2C25}" => "\u{2C55}", "\u{2C26}" => "\u{2C56}", "\u{2C27}" => "\u{2C57}", "\u{2C28}" => "\u{2C58}", - "\u{2C29}" => "\u{2C59}", "\u{2C2A}" => "\u{2C5A}", "\u{2C2B}" => "\u{2C5B}", "\u{2C2C}" => "\u{2C5C}", - "\u{2C2D}" => "\u{2C5D}", "\u{2C2E}" => "\u{2C5E}", "\u{2C2F}" => "\u{2C5F}", "\u{2C60}" => "\u{2C61}", - "\u{2C62}" => "\u{26B}", "\u{2C63}" => "\u{1D7D}", "\u{2C64}" => "\u{27D}", "\u{2C67}" => "\u{2C68}", - "\u{2C69}" => "\u{2C6A}", "\u{2C6B}" => "\u{2C6C}", "\u{2C6D}" => "\u{251}", "\u{2C6E}" => "\u{271}", - "\u{2C6F}" => "\u{250}", "\u{2C70}" => "\u{252}", "\u{2C72}" => "\u{2C73}", "\u{2C75}" => "\u{2C76}", - "\u{2C7C}" => "\u{6A}", "\u{2C7D}" => "\u{76}", "\u{2C7E}" => "\u{23F}", "\u{2C7F}" => "\u{240}", - "\u{2C80}" => "\u{2C81}", "\u{2C82}" => "\u{2C83}", "\u{2C84}" => "\u{2C85}", "\u{2C86}" => "\u{2C87}", - "\u{2C88}" => "\u{2C89}", "\u{2C8A}" => "\u{2C8B}", "\u{2C8C}" => "\u{2C8D}", "\u{2C8E}" => "\u{2C8F}", - "\u{2C90}" => "\u{2C91}", "\u{2C92}" => "\u{2C93}", "\u{2C94}" => "\u{2C95}", "\u{2C96}" => "\u{2C97}", - "\u{2C98}" => "\u{2C99}", "\u{2C9A}" => "\u{2C9B}", "\u{2C9C}" => "\u{2C9D}", "\u{2C9E}" => "\u{2C9F}", - "\u{2CA0}" => "\u{2CA1}", "\u{2CA2}" => "\u{2CA3}", "\u{2CA4}" => "\u{2CA5}", "\u{2CA6}" => "\u{2CA7}", - "\u{2CA8}" => "\u{2CA9}", "\u{2CAA}" => "\u{2CAB}", "\u{2CAC}" => "\u{2CAD}", "\u{2CAE}" => "\u{2CAF}", - "\u{2CB0}" => "\u{2CB1}", "\u{2CB2}" => "\u{2CB3}", "\u{2CB4}" => "\u{2CB5}", "\u{2CB6}" => "\u{2CB7}", - "\u{2CB8}" => "\u{2CB9}", "\u{2CBA}" => "\u{2CBB}", "\u{2CBC}" => "\u{2CBD}", "\u{2CBE}" => "\u{2CBF}", - "\u{2CC0}" => "\u{2CC1}", "\u{2CC2}" => "\u{2CC3}", "\u{2CC4}" => "\u{2CC5}", "\u{2CC6}" => "\u{2CC7}", - "\u{2CC8}" => "\u{2CC9}", "\u{2CCA}" => "\u{2CCB}", "\u{2CCC}" => "\u{2CCD}", "\u{2CCE}" => "\u{2CCF}", - "\u{2CD0}" => "\u{2CD1}", "\u{2CD2}" => "\u{2CD3}", "\u{2CD4}" => "\u{2CD5}", "\u{2CD6}" => "\u{2CD7}", - "\u{2CD8}" => "\u{2CD9}", "\u{2CDA}" => "\u{2CDB}", "\u{2CDC}" => "\u{2CDD}", "\u{2CDE}" => "\u{2CDF}", - "\u{2CE0}" => "\u{2CE1}", "\u{2CE2}" => "\u{2CE3}", "\u{2CEB}" => "\u{2CEC}", "\u{2CED}" => "\u{2CEE}", - "\u{2CF2}" => "\u{2CF3}", "\u{2D6F}" => "\u{2D61}", "\u{2E9F}" => "\u{6BCD}", "\u{2EF3}" => "\u{9F9F}", - "\u{2F00}" => "\u{4E00}", "\u{2F01}" => "\u{4E28}", "\u{2F02}" => "\u{4E36}", "\u{2F03}" => "\u{4E3F}", - "\u{2F04}" => "\u{4E59}", "\u{2F05}" => "\u{4E85}", "\u{2F06}" => "\u{4E8C}", "\u{2F07}" => "\u{4EA0}", - "\u{2F08}" => "\u{4EBA}", "\u{2F09}" => "\u{513F}", "\u{2F0A}" => "\u{5165}", "\u{2F0B}" => "\u{516B}", - "\u{2F0C}" => "\u{5182}", "\u{2F0D}" => "\u{5196}", "\u{2F0E}" => "\u{51AB}", "\u{2F0F}" => "\u{51E0}", - "\u{2F10}" => "\u{51F5}", "\u{2F11}" => "\u{5200}", "\u{2F12}" => "\u{529B}", "\u{2F13}" => "\u{52F9}", - "\u{2F14}" => "\u{5315}", "\u{2F15}" => "\u{531A}", "\u{2F16}" => "\u{5338}", "\u{2F17}" => "\u{5341}", - "\u{2F18}" => "\u{535C}", "\u{2F19}" => "\u{5369}", "\u{2F1A}" => "\u{5382}", "\u{2F1B}" => "\u{53B6}", - "\u{2F1C}" => "\u{53C8}", "\u{2F1D}" => "\u{53E3}", "\u{2F1E}" => "\u{56D7}", "\u{2F1F}" => "\u{571F}", - "\u{2F20}" => "\u{58EB}", "\u{2F21}" => "\u{5902}", "\u{2F22}" => "\u{590A}", "\u{2F23}" => "\u{5915}", - "\u{2F24}" => "\u{5927}", "\u{2F25}" => "\u{5973}", "\u{2F26}" => "\u{5B50}", "\u{2F27}" => "\u{5B80}", - "\u{2F28}" => "\u{5BF8}", "\u{2F29}" => "\u{5C0F}", "\u{2F2A}" => "\u{5C22}", "\u{2F2B}" => "\u{5C38}", - "\u{2F2C}" => "\u{5C6E}", "\u{2F2D}" => "\u{5C71}", "\u{2F2E}" => "\u{5DDB}", "\u{2F2F}" => "\u{5DE5}", - "\u{2F30}" => "\u{5DF1}", "\u{2F31}" => "\u{5DFE}", "\u{2F32}" => "\u{5E72}", "\u{2F33}" => "\u{5E7A}", - "\u{2F34}" => "\u{5E7F}", "\u{2F35}" => "\u{5EF4}", "\u{2F36}" => "\u{5EFE}", "\u{2F37}" => "\u{5F0B}", - "\u{2F38}" => "\u{5F13}", "\u{2F39}" => "\u{5F50}", "\u{2F3A}" => "\u{5F61}", "\u{2F3B}" => "\u{5F73}", - "\u{2F3C}" => "\u{5FC3}", "\u{2F3D}" => "\u{6208}", "\u{2F3E}" => "\u{6236}", "\u{2F3F}" => "\u{624B}", - "\u{2F40}" => "\u{652F}", "\u{2F41}" => "\u{6534}", "\u{2F42}" => "\u{6587}", "\u{2F43}" => "\u{6597}", - "\u{2F44}" => "\u{65A4}", "\u{2F45}" => "\u{65B9}", "\u{2F46}" => "\u{65E0}", "\u{2F47}" => "\u{65E5}", - "\u{2F48}" => "\u{66F0}", "\u{2F49}" => "\u{6708}", "\u{2F4A}" => "\u{6728}", "\u{2F4B}" => "\u{6B20}", - "\u{2F4C}" => "\u{6B62}", "\u{2F4D}" => "\u{6B79}", "\u{2F4E}" => "\u{6BB3}", "\u{2F4F}" => "\u{6BCB}", - "\u{2F50}" => "\u{6BD4}", "\u{2F51}" => "\u{6BDB}", "\u{2F52}" => "\u{6C0F}", "\u{2F53}" => "\u{6C14}", - "\u{2F54}" => "\u{6C34}", "\u{2F55}" => "\u{706B}", "\u{2F56}" => "\u{722A}", "\u{2F57}" => "\u{7236}", - "\u{2F58}" => "\u{723B}", "\u{2F59}" => "\u{723F}", "\u{2F5A}" => "\u{7247}", "\u{2F5B}" => "\u{7259}", - "\u{2F5C}" => "\u{725B}", "\u{2F5D}" => "\u{72AC}", "\u{2F5E}" => "\u{7384}", "\u{2F5F}" => "\u{7389}", - "\u{2F60}" => "\u{74DC}", "\u{2F61}" => "\u{74E6}", "\u{2F62}" => "\u{7518}", "\u{2F63}" => "\u{751F}", - "\u{2F64}" => "\u{7528}", "\u{2F65}" => "\u{7530}", "\u{2F66}" => "\u{758B}", "\u{2F67}" => "\u{7592}", - "\u{2F68}" => "\u{7676}", "\u{2F69}" => "\u{767D}", "\u{2F6A}" => "\u{76AE}", "\u{2F6B}" => "\u{76BF}", - "\u{2F6C}" => "\u{76EE}", "\u{2F6D}" => "\u{77DB}", "\u{2F6E}" => "\u{77E2}", "\u{2F6F}" => "\u{77F3}", - "\u{2F70}" => "\u{793A}", "\u{2F71}" => "\u{79B8}", "\u{2F72}" => "\u{79BE}", "\u{2F73}" => "\u{7A74}", - "\u{2F74}" => "\u{7ACB}", "\u{2F75}" => "\u{7AF9}", "\u{2F76}" => "\u{7C73}", "\u{2F77}" => "\u{7CF8}", - "\u{2F78}" => "\u{7F36}", "\u{2F79}" => "\u{7F51}", "\u{2F7A}" => "\u{7F8A}", "\u{2F7B}" => "\u{7FBD}", - "\u{2F7C}" => "\u{8001}", "\u{2F7D}" => "\u{800C}", "\u{2F7E}" => "\u{8012}", "\u{2F7F}" => "\u{8033}", - "\u{2F80}" => "\u{807F}", "\u{2F81}" => "\u{8089}", "\u{2F82}" => "\u{81E3}", "\u{2F83}" => "\u{81EA}", - "\u{2F84}" => "\u{81F3}", "\u{2F85}" => "\u{81FC}", "\u{2F86}" => "\u{820C}", "\u{2F87}" => "\u{821B}", - "\u{2F88}" => "\u{821F}", "\u{2F89}" => "\u{826E}", "\u{2F8A}" => "\u{8272}", "\u{2F8B}" => "\u{8278}", - "\u{2F8C}" => "\u{864D}", "\u{2F8D}" => "\u{866B}", "\u{2F8E}" => "\u{8840}", "\u{2F8F}" => "\u{884C}", - "\u{2F90}" => "\u{8863}", "\u{2F91}" => "\u{897E}", "\u{2F92}" => "\u{898B}", "\u{2F93}" => "\u{89D2}", - "\u{2F94}" => "\u{8A00}", "\u{2F95}" => "\u{8C37}", "\u{2F96}" => "\u{8C46}", "\u{2F97}" => "\u{8C55}", - "\u{2F98}" => "\u{8C78}", "\u{2F99}" => "\u{8C9D}", "\u{2F9A}" => "\u{8D64}", "\u{2F9B}" => "\u{8D70}", - "\u{2F9C}" => "\u{8DB3}", "\u{2F9D}" => "\u{8EAB}", "\u{2F9E}" => "\u{8ECA}", "\u{2F9F}" => "\u{8F9B}", - "\u{2FA0}" => "\u{8FB0}", "\u{2FA1}" => "\u{8FB5}", "\u{2FA2}" => "\u{9091}", "\u{2FA3}" => "\u{9149}", - "\u{2FA4}" => "\u{91C6}", "\u{2FA5}" => "\u{91CC}", "\u{2FA6}" => "\u{91D1}", "\u{2FA7}" => "\u{9577}", - "\u{2FA8}" => "\u{9580}", "\u{2FA9}" => "\u{961C}", "\u{2FAA}" => "\u{96B6}", "\u{2FAB}" => "\u{96B9}", - "\u{2FAC}" => "\u{96E8}", "\u{2FAD}" => "\u{9751}", "\u{2FAE}" => "\u{975E}", "\u{2FAF}" => "\u{9762}", - "\u{2FB0}" => "\u{9769}", "\u{2FB1}" => "\u{97CB}", "\u{2FB2}" => "\u{97ED}", "\u{2FB3}" => "\u{97F3}", - "\u{2FB4}" => "\u{9801}", "\u{2FB5}" => "\u{98A8}", "\u{2FB6}" => "\u{98DB}", "\u{2FB7}" => "\u{98DF}", - "\u{2FB8}" => "\u{9996}", "\u{2FB9}" => "\u{9999}", "\u{2FBA}" => "\u{99AC}", "\u{2FBB}" => "\u{9AA8}", - "\u{2FBC}" => "\u{9AD8}", "\u{2FBD}" => "\u{9ADF}", "\u{2FBE}" => "\u{9B25}", "\u{2FBF}" => "\u{9B2F}", - "\u{2FC0}" => "\u{9B32}", "\u{2FC1}" => "\u{9B3C}", "\u{2FC2}" => "\u{9B5A}", "\u{2FC3}" => "\u{9CE5}", - "\u{2FC4}" => "\u{9E75}", "\u{2FC5}" => "\u{9E7F}", "\u{2FC6}" => "\u{9EA5}", "\u{2FC7}" => "\u{9EBB}", - "\u{2FC8}" => "\u{9EC3}", "\u{2FC9}" => "\u{9ECD}", "\u{2FCA}" => "\u{9ED1}", "\u{2FCB}" => "\u{9EF9}", - "\u{2FCC}" => "\u{9EFD}", "\u{2FCD}" => "\u{9F0E}", "\u{2FCE}" => "\u{9F13}", "\u{2FCF}" => "\u{9F20}", - "\u{2FD0}" => "\u{9F3B}", "\u{2FD1}" => "\u{9F4A}", "\u{2FD2}" => "\u{9F52}", "\u{2FD3}" => "\u{9F8D}", - "\u{2FD4}" => "\u{9F9C}", "\u{2FD5}" => "\u{9FA0}", "\u{3000}" => "\u{20}", "\u{3002}" => "\u{2E}", - "\u{3036}" => "\u{3012}", "\u{3038}" => "\u{5341}", "\u{3039}" => "\u{5344}", "\u{303A}" => "\u{5345}", - "\u{309B}" => "\u{20}\u{3099}", "\u{309C}" => "\u{20}\u{309A}", "\u{309F}" => "\u{3088}\u{308A}", "\u{30FF}" => "\u{30B3}\u{30C8}", - "\u{3131}" => "\u{1100}", "\u{3132}" => "\u{1101}", "\u{3133}" => "\u{11AA}", "\u{3134}" => "\u{1102}", - "\u{3135}" => "\u{11AC}", "\u{3136}" => "\u{11AD}", "\u{3137}" => "\u{1103}", "\u{3138}" => "\u{1104}", - "\u{3139}" => "\u{1105}", "\u{313A}" => "\u{11B0}", "\u{313B}" => "\u{11B1}", "\u{313C}" => "\u{11B2}", - "\u{313D}" => "\u{11B3}", "\u{313E}" => "\u{11B4}", "\u{313F}" => "\u{11B5}", "\u{3140}" => "\u{111A}", - "\u{3141}" => "\u{1106}", "\u{3142}" => "\u{1107}", "\u{3143}" => "\u{1108}", "\u{3144}" => "\u{1121}", - "\u{3145}" => "\u{1109}", "\u{3146}" => "\u{110A}", "\u{3147}" => "\u{110B}", "\u{3148}" => "\u{110C}", - "\u{3149}" => "\u{110D}", "\u{314A}" => "\u{110E}", "\u{314B}" => "\u{110F}", "\u{314C}" => "\u{1110}", - "\u{314D}" => "\u{1111}", "\u{314E}" => "\u{1112}", "\u{314F}" => "\u{1161}", "\u{3150}" => "\u{1162}", - "\u{3151}" => "\u{1163}", "\u{3152}" => "\u{1164}", "\u{3153}" => "\u{1165}", "\u{3154}" => "\u{1166}", - "\u{3155}" => "\u{1167}", "\u{3156}" => "\u{1168}", "\u{3157}" => "\u{1169}", "\u{3158}" => "\u{116A}", - "\u{3159}" => "\u{116B}", "\u{315A}" => "\u{116C}", "\u{315B}" => "\u{116D}", "\u{315C}" => "\u{116E}", - "\u{315D}" => "\u{116F}", "\u{315E}" => "\u{1170}", "\u{315F}" => "\u{1171}", "\u{3160}" => "\u{1172}", - "\u{3161}" => "\u{1173}", "\u{3162}" => "\u{1174}", "\u{3163}" => "\u{1175}", "\u{3164}" => "", - "\u{3165}" => "\u{1114}", "\u{3166}" => "\u{1115}", "\u{3167}" => "\u{11C7}", "\u{3168}" => "\u{11C8}", - "\u{3169}" => "\u{11CC}", "\u{316A}" => "\u{11CE}", "\u{316B}" => "\u{11D3}", "\u{316C}" => "\u{11D7}", - "\u{316D}" => "\u{11D9}", "\u{316E}" => "\u{111C}", "\u{316F}" => "\u{11DD}", "\u{3170}" => "\u{11DF}", - "\u{3171}" => "\u{111D}", "\u{3172}" => "\u{111E}", "\u{3173}" => "\u{1120}", "\u{3174}" => "\u{1122}", - "\u{3175}" => "\u{1123}", "\u{3176}" => "\u{1127}", "\u{3177}" => "\u{1129}", "\u{3178}" => "\u{112B}", - "\u{3179}" => "\u{112C}", "\u{317A}" => "\u{112D}", "\u{317B}" => "\u{112E}", "\u{317C}" => "\u{112F}", - "\u{317D}" => "\u{1132}", "\u{317E}" => "\u{1136}", "\u{317F}" => "\u{1140}", "\u{3180}" => "\u{1147}", - "\u{3181}" => "\u{114C}", "\u{3182}" => "\u{11F1}", "\u{3183}" => "\u{11F2}", "\u{3184}" => "\u{1157}", - "\u{3185}" => "\u{1158}", "\u{3186}" => "\u{1159}", "\u{3187}" => "\u{1184}", "\u{3188}" => "\u{1185}", - "\u{3189}" => "\u{1188}", "\u{318A}" => "\u{1191}", "\u{318B}" => "\u{1192}", "\u{318C}" => "\u{1194}", - "\u{318D}" => "\u{119E}", "\u{318E}" => "\u{11A1}", "\u{3192}" => "\u{4E00}", "\u{3193}" => "\u{4E8C}", - "\u{3194}" => "\u{4E09}", "\u{3195}" => "\u{56DB}", "\u{3196}" => "\u{4E0A}", "\u{3197}" => "\u{4E2D}", - "\u{3198}" => "\u{4E0B}", "\u{3199}" => "\u{7532}", "\u{319A}" => "\u{4E59}", "\u{319B}" => "\u{4E19}", - "\u{319C}" => "\u{4E01}", "\u{319D}" => "\u{5929}", "\u{319E}" => "\u{5730}", "\u{319F}" => "\u{4EBA}", - "\u{3200}" => "\u{28}\u{1100}\u{29}", "\u{3201}" => "\u{28}\u{1102}\u{29}", "\u{3202}" => "\u{28}\u{1103}\u{29}", "\u{3203}" => "\u{28}\u{1105}\u{29}", - "\u{3204}" => "\u{28}\u{1106}\u{29}", "\u{3205}" => "\u{28}\u{1107}\u{29}", "\u{3206}" => "\u{28}\u{1109}\u{29}", "\u{3207}" => "\u{28}\u{110B}\u{29}", - "\u{3208}" => "\u{28}\u{110C}\u{29}", "\u{3209}" => "\u{28}\u{110E}\u{29}", "\u{320A}" => "\u{28}\u{110F}\u{29}", "\u{320B}" => "\u{28}\u{1110}\u{29}", - "\u{320C}" => "\u{28}\u{1111}\u{29}", "\u{320D}" => "\u{28}\u{1112}\u{29}", "\u{320E}" => "\u{28}\u{AC00}\u{29}", "\u{320F}" => "\u{28}\u{B098}\u{29}", - "\u{3210}" => "\u{28}\u{B2E4}\u{29}", "\u{3211}" => "\u{28}\u{B77C}\u{29}", "\u{3212}" => "\u{28}\u{B9C8}\u{29}", "\u{3213}" => "\u{28}\u{BC14}\u{29}", - "\u{3214}" => "\u{28}\u{C0AC}\u{29}", "\u{3215}" => "\u{28}\u{C544}\u{29}", "\u{3216}" => "\u{28}\u{C790}\u{29}", "\u{3217}" => "\u{28}\u{CC28}\u{29}", - "\u{3218}" => "\u{28}\u{CE74}\u{29}", "\u{3219}" => "\u{28}\u{D0C0}\u{29}", "\u{321A}" => "\u{28}\u{D30C}\u{29}", "\u{321B}" => "\u{28}\u{D558}\u{29}", - "\u{321C}" => "\u{28}\u{C8FC}\u{29}", "\u{321D}" => "\u{28}\u{C624}\u{C804}\u{29}", "\u{321E}" => "\u{28}\u{C624}\u{D6C4}\u{29}", "\u{3220}" => "\u{28}\u{4E00}\u{29}", - "\u{3221}" => "\u{28}\u{4E8C}\u{29}", "\u{3222}" => "\u{28}\u{4E09}\u{29}", "\u{3223}" => "\u{28}\u{56DB}\u{29}", "\u{3224}" => "\u{28}\u{4E94}\u{29}", - "\u{3225}" => "\u{28}\u{516D}\u{29}", "\u{3226}" => "\u{28}\u{4E03}\u{29}", "\u{3227}" => "\u{28}\u{516B}\u{29}", "\u{3228}" => "\u{28}\u{4E5D}\u{29}", - "\u{3229}" => "\u{28}\u{5341}\u{29}", "\u{322A}" => "\u{28}\u{6708}\u{29}", "\u{322B}" => "\u{28}\u{706B}\u{29}", "\u{322C}" => "\u{28}\u{6C34}\u{29}", - "\u{322D}" => "\u{28}\u{6728}\u{29}", "\u{322E}" => "\u{28}\u{91D1}\u{29}", "\u{322F}" => "\u{28}\u{571F}\u{29}", "\u{3230}" => "\u{28}\u{65E5}\u{29}", - "\u{3231}" => "\u{28}\u{682A}\u{29}", "\u{3232}" => "\u{28}\u{6709}\u{29}", "\u{3233}" => "\u{28}\u{793E}\u{29}", "\u{3234}" => "\u{28}\u{540D}\u{29}", - "\u{3235}" => "\u{28}\u{7279}\u{29}", "\u{3236}" => "\u{28}\u{8CA1}\u{29}", "\u{3237}" => "\u{28}\u{795D}\u{29}", "\u{3238}" => "\u{28}\u{52B4}\u{29}", - "\u{3239}" => "\u{28}\u{4EE3}\u{29}", "\u{323A}" => "\u{28}\u{547C}\u{29}", "\u{323B}" => "\u{28}\u{5B66}\u{29}", "\u{323C}" => "\u{28}\u{76E3}\u{29}", - "\u{323D}" => "\u{28}\u{4F01}\u{29}", "\u{323E}" => "\u{28}\u{8CC7}\u{29}", "\u{323F}" => "\u{28}\u{5354}\u{29}", "\u{3240}" => "\u{28}\u{796D}\u{29}", - "\u{3241}" => "\u{28}\u{4F11}\u{29}", "\u{3242}" => "\u{28}\u{81EA}\u{29}", "\u{3243}" => "\u{28}\u{81F3}\u{29}", "\u{3244}" => "\u{554F}", - "\u{3245}" => "\u{5E7C}", "\u{3246}" => "\u{6587}", "\u{3247}" => "\u{7B8F}", "\u{3250}" => "\u{70}\u{74}\u{65}", - "\u{3251}" => "\u{32}\u{31}", "\u{3252}" => "\u{32}\u{32}", "\u{3253}" => "\u{32}\u{33}", "\u{3254}" => "\u{32}\u{34}", - "\u{3255}" => "\u{32}\u{35}", "\u{3256}" => "\u{32}\u{36}", "\u{3257}" => "\u{32}\u{37}", "\u{3258}" => "\u{32}\u{38}", - "\u{3259}" => "\u{32}\u{39}", "\u{325A}" => "\u{33}\u{30}", "\u{325B}" => "\u{33}\u{31}", "\u{325C}" => "\u{33}\u{32}", - "\u{325D}" => "\u{33}\u{33}", "\u{325E}" => "\u{33}\u{34}", "\u{325F}" => "\u{33}\u{35}", "\u{3260}" => "\u{1100}", - "\u{3261}" => "\u{1102}", "\u{3262}" => "\u{1103}", "\u{3263}" => "\u{1105}", "\u{3264}" => "\u{1106}", - "\u{3265}" => "\u{1107}", "\u{3266}" => "\u{1109}", "\u{3267}" => "\u{110B}", "\u{3268}" => "\u{110C}", - "\u{3269}" => "\u{110E}", "\u{326A}" => "\u{110F}", "\u{326B}" => "\u{1110}", "\u{326C}" => "\u{1111}", - "\u{326D}" => "\u{1112}", "\u{326E}" => "\u{AC00}", "\u{326F}" => "\u{B098}", "\u{3270}" => "\u{B2E4}", - "\u{3271}" => "\u{B77C}", "\u{3272}" => "\u{B9C8}", "\u{3273}" => "\u{BC14}", "\u{3274}" => "\u{C0AC}", - "\u{3275}" => "\u{C544}", "\u{3276}" => "\u{C790}", "\u{3277}" => "\u{CC28}", "\u{3278}" => "\u{CE74}", - "\u{3279}" => "\u{D0C0}", "\u{327A}" => "\u{D30C}", "\u{327B}" => "\u{D558}", "\u{327C}" => "\u{CC38}\u{ACE0}", - "\u{327D}" => "\u{C8FC}\u{C758}", "\u{327E}" => "\u{C6B0}", "\u{3280}" => "\u{4E00}", "\u{3281}" => "\u{4E8C}", - "\u{3282}" => "\u{4E09}", "\u{3283}" => "\u{56DB}", "\u{3284}" => "\u{4E94}", "\u{3285}" => "\u{516D}", - "\u{3286}" => "\u{4E03}", "\u{3287}" => "\u{516B}", "\u{3288}" => "\u{4E5D}", "\u{3289}" => "\u{5341}", - "\u{328A}" => "\u{6708}", "\u{328B}" => "\u{706B}", "\u{328C}" => "\u{6C34}", "\u{328D}" => "\u{6728}", - "\u{328E}" => "\u{91D1}", "\u{328F}" => "\u{571F}", "\u{3290}" => "\u{65E5}", "\u{3291}" => "\u{682A}", - "\u{3292}" => "\u{6709}", "\u{3293}" => "\u{793E}", "\u{3294}" => "\u{540D}", "\u{3295}" => "\u{7279}", - "\u{3296}" => "\u{8CA1}", "\u{3297}" => "\u{795D}", "\u{3298}" => "\u{52B4}", "\u{3299}" => "\u{79D8}", - "\u{329A}" => "\u{7537}", "\u{329B}" => "\u{5973}", "\u{329C}" => "\u{9069}", "\u{329D}" => "\u{512A}", - "\u{329E}" => "\u{5370}", "\u{329F}" => "\u{6CE8}", "\u{32A0}" => "\u{9805}", "\u{32A1}" => "\u{4F11}", - "\u{32A2}" => "\u{5199}", "\u{32A3}" => "\u{6B63}", "\u{32A4}" => "\u{4E0A}", "\u{32A5}" => "\u{4E2D}", - "\u{32A6}" => "\u{4E0B}", "\u{32A7}" => "\u{5DE6}", "\u{32A8}" => "\u{53F3}", "\u{32A9}" => "\u{533B}", - "\u{32AA}" => "\u{5B97}", "\u{32AB}" => "\u{5B66}", "\u{32AC}" => "\u{76E3}", "\u{32AD}" => "\u{4F01}", - "\u{32AE}" => "\u{8CC7}", "\u{32AF}" => "\u{5354}", "\u{32B0}" => "\u{591C}", "\u{32B1}" => "\u{33}\u{36}", - "\u{32B2}" => "\u{33}\u{37}", "\u{32B3}" => "\u{33}\u{38}", "\u{32B4}" => "\u{33}\u{39}", "\u{32B5}" => "\u{34}\u{30}", - "\u{32B6}" => "\u{34}\u{31}", "\u{32B7}" => "\u{34}\u{32}", "\u{32B8}" => "\u{34}\u{33}", "\u{32B9}" => "\u{34}\u{34}", - "\u{32BA}" => "\u{34}\u{35}", "\u{32BB}" => "\u{34}\u{36}", "\u{32BC}" => "\u{34}\u{37}", "\u{32BD}" => "\u{34}\u{38}", - "\u{32BE}" => "\u{34}\u{39}", "\u{32BF}" => "\u{35}\u{30}", "\u{32C0}" => "\u{31}\u{6708}", "\u{32C1}" => "\u{32}\u{6708}", - "\u{32C2}" => "\u{33}\u{6708}", "\u{32C3}" => "\u{34}\u{6708}", "\u{32C4}" => "\u{35}\u{6708}", "\u{32C5}" => "\u{36}\u{6708}", - "\u{32C6}" => "\u{37}\u{6708}", "\u{32C7}" => "\u{38}\u{6708}", "\u{32C8}" => "\u{39}\u{6708}", "\u{32C9}" => "\u{31}\u{30}\u{6708}", - "\u{32CA}" => "\u{31}\u{31}\u{6708}", "\u{32CB}" => "\u{31}\u{32}\u{6708}", "\u{32CC}" => "\u{68}\u{67}", "\u{32CD}" => "\u{65}\u{72}\u{67}", - "\u{32CE}" => "\u{65}\u{76}", "\u{32CF}" => "\u{6C}\u{74}\u{64}", "\u{32D0}" => "\u{30A2}", "\u{32D1}" => "\u{30A4}", - "\u{32D2}" => "\u{30A6}", "\u{32D3}" => "\u{30A8}", "\u{32D4}" => "\u{30AA}", "\u{32D5}" => "\u{30AB}", - "\u{32D6}" => "\u{30AD}", "\u{32D7}" => "\u{30AF}", "\u{32D8}" => "\u{30B1}", "\u{32D9}" => "\u{30B3}", - "\u{32DA}" => "\u{30B5}", "\u{32DB}" => "\u{30B7}", "\u{32DC}" => "\u{30B9}", "\u{32DD}" => "\u{30BB}", - "\u{32DE}" => "\u{30BD}", "\u{32DF}" => "\u{30BF}", "\u{32E0}" => "\u{30C1}", "\u{32E1}" => "\u{30C4}", - "\u{32E2}" => "\u{30C6}", "\u{32E3}" => "\u{30C8}", "\u{32E4}" => "\u{30CA}", "\u{32E5}" => "\u{30CB}", - "\u{32E6}" => "\u{30CC}", "\u{32E7}" => "\u{30CD}", "\u{32E8}" => "\u{30CE}", "\u{32E9}" => "\u{30CF}", - "\u{32EA}" => "\u{30D2}", "\u{32EB}" => "\u{30D5}", "\u{32EC}" => "\u{30D8}", "\u{32ED}" => "\u{30DB}", - "\u{32EE}" => "\u{30DE}", "\u{32EF}" => "\u{30DF}", "\u{32F0}" => "\u{30E0}", "\u{32F1}" => "\u{30E1}", - "\u{32F2}" => "\u{30E2}", "\u{32F3}" => "\u{30E4}", "\u{32F4}" => "\u{30E6}", "\u{32F5}" => "\u{30E8}", - "\u{32F6}" => "\u{30E9}", "\u{32F7}" => "\u{30EA}", "\u{32F8}" => "\u{30EB}", "\u{32F9}" => "\u{30EC}", - "\u{32FA}" => "\u{30ED}", "\u{32FB}" => "\u{30EF}", "\u{32FC}" => "\u{30F0}", "\u{32FD}" => "\u{30F1}", - "\u{32FE}" => "\u{30F2}", "\u{32FF}" => "\u{4EE4}\u{548C}", "\u{3300}" => "\u{30A2}\u{30D1}\u{30FC}\u{30C8}", "\u{3301}" => "\u{30A2}\u{30EB}\u{30D5}\u{30A1}", - "\u{3302}" => "\u{30A2}\u{30F3}\u{30DA}\u{30A2}", "\u{3303}" => "\u{30A2}\u{30FC}\u{30EB}", "\u{3304}" => "\u{30A4}\u{30CB}\u{30F3}\u{30B0}", "\u{3305}" => "\u{30A4}\u{30F3}\u{30C1}", - "\u{3306}" => "\u{30A6}\u{30A9}\u{30F3}", "\u{3307}" => "\u{30A8}\u{30B9}\u{30AF}\u{30FC}\u{30C9}", "\u{3308}" => "\u{30A8}\u{30FC}\u{30AB}\u{30FC}", "\u{3309}" => "\u{30AA}\u{30F3}\u{30B9}", - "\u{330A}" => "\u{30AA}\u{30FC}\u{30E0}", "\u{330B}" => "\u{30AB}\u{30A4}\u{30EA}", "\u{330C}" => "\u{30AB}\u{30E9}\u{30C3}\u{30C8}", "\u{330D}" => "\u{30AB}\u{30ED}\u{30EA}\u{30FC}", - "\u{330E}" => "\u{30AC}\u{30ED}\u{30F3}", "\u{330F}" => "\u{30AC}\u{30F3}\u{30DE}", "\u{3310}" => "\u{30AE}\u{30AC}", "\u{3311}" => "\u{30AE}\u{30CB}\u{30FC}", - "\u{3312}" => "\u{30AD}\u{30E5}\u{30EA}\u{30FC}", "\u{3313}" => "\u{30AE}\u{30EB}\u{30C0}\u{30FC}", "\u{3314}" => "\u{30AD}\u{30ED}", "\u{3315}" => "\u{30AD}\u{30ED}\u{30B0}\u{30E9}\u{30E0}", - "\u{3316}" => "\u{30AD}\u{30ED}\u{30E1}\u{30FC}\u{30C8}\u{30EB}", "\u{3317}" => "\u{30AD}\u{30ED}\u{30EF}\u{30C3}\u{30C8}", "\u{3318}" => "\u{30B0}\u{30E9}\u{30E0}", "\u{3319}" => "\u{30B0}\u{30E9}\u{30E0}\u{30C8}\u{30F3}", - "\u{331A}" => "\u{30AF}\u{30EB}\u{30BC}\u{30A4}\u{30ED}", "\u{331B}" => "\u{30AF}\u{30ED}\u{30FC}\u{30CD}", "\u{331C}" => "\u{30B1}\u{30FC}\u{30B9}", "\u{331D}" => "\u{30B3}\u{30EB}\u{30CA}", - "\u{331E}" => "\u{30B3}\u{30FC}\u{30DD}", "\u{331F}" => "\u{30B5}\u{30A4}\u{30AF}\u{30EB}", "\u{3320}" => "\u{30B5}\u{30F3}\u{30C1}\u{30FC}\u{30E0}", "\u{3321}" => "\u{30B7}\u{30EA}\u{30F3}\u{30B0}", - "\u{3322}" => "\u{30BB}\u{30F3}\u{30C1}", "\u{3323}" => "\u{30BB}\u{30F3}\u{30C8}", "\u{3324}" => "\u{30C0}\u{30FC}\u{30B9}", "\u{3325}" => "\u{30C7}\u{30B7}", - "\u{3326}" => "\u{30C9}\u{30EB}", "\u{3327}" => "\u{30C8}\u{30F3}", "\u{3328}" => "\u{30CA}\u{30CE}", "\u{3329}" => "\u{30CE}\u{30C3}\u{30C8}", - "\u{332A}" => "\u{30CF}\u{30A4}\u{30C4}", "\u{332B}" => "\u{30D1}\u{30FC}\u{30BB}\u{30F3}\u{30C8}", "\u{332C}" => "\u{30D1}\u{30FC}\u{30C4}", "\u{332D}" => "\u{30D0}\u{30FC}\u{30EC}\u{30EB}", - "\u{332E}" => "\u{30D4}\u{30A2}\u{30B9}\u{30C8}\u{30EB}", "\u{332F}" => "\u{30D4}\u{30AF}\u{30EB}", "\u{3330}" => "\u{30D4}\u{30B3}", "\u{3331}" => "\u{30D3}\u{30EB}", - "\u{3332}" => "\u{30D5}\u{30A1}\u{30E9}\u{30C3}\u{30C9}", "\u{3333}" => "\u{30D5}\u{30A3}\u{30FC}\u{30C8}", "\u{3334}" => "\u{30D6}\u{30C3}\u{30B7}\u{30A7}\u{30EB}", "\u{3335}" => "\u{30D5}\u{30E9}\u{30F3}", - "\u{3336}" => "\u{30D8}\u{30AF}\u{30BF}\u{30FC}\u{30EB}", "\u{3337}" => "\u{30DA}\u{30BD}", "\u{3338}" => "\u{30DA}\u{30CB}\u{30D2}", "\u{3339}" => "\u{30D8}\u{30EB}\u{30C4}", - "\u{333A}" => "\u{30DA}\u{30F3}\u{30B9}", "\u{333B}" => "\u{30DA}\u{30FC}\u{30B8}", "\u{333C}" => "\u{30D9}\u{30FC}\u{30BF}", "\u{333D}" => "\u{30DD}\u{30A4}\u{30F3}\u{30C8}", - "\u{333E}" => "\u{30DC}\u{30EB}\u{30C8}", "\u{333F}" => "\u{30DB}\u{30F3}", "\u{3340}" => "\u{30DD}\u{30F3}\u{30C9}", "\u{3341}" => "\u{30DB}\u{30FC}\u{30EB}", - "\u{3342}" => "\u{30DB}\u{30FC}\u{30F3}", "\u{3343}" => "\u{30DE}\u{30A4}\u{30AF}\u{30ED}", "\u{3344}" => "\u{30DE}\u{30A4}\u{30EB}", "\u{3345}" => "\u{30DE}\u{30C3}\u{30CF}", - "\u{3346}" => "\u{30DE}\u{30EB}\u{30AF}", "\u{3347}" => "\u{30DE}\u{30F3}\u{30B7}\u{30E7}\u{30F3}", "\u{3348}" => "\u{30DF}\u{30AF}\u{30ED}\u{30F3}", "\u{3349}" => "\u{30DF}\u{30EA}", - "\u{334A}" => "\u{30DF}\u{30EA}\u{30D0}\u{30FC}\u{30EB}", "\u{334B}" => "\u{30E1}\u{30AC}", "\u{334C}" => "\u{30E1}\u{30AC}\u{30C8}\u{30F3}", "\u{334D}" => "\u{30E1}\u{30FC}\u{30C8}\u{30EB}", - "\u{334E}" => "\u{30E4}\u{30FC}\u{30C9}", "\u{334F}" => "\u{30E4}\u{30FC}\u{30EB}", "\u{3350}" => "\u{30E6}\u{30A2}\u{30F3}", "\u{3351}" => "\u{30EA}\u{30C3}\u{30C8}\u{30EB}", - "\u{3352}" => "\u{30EA}\u{30E9}", "\u{3353}" => "\u{30EB}\u{30D4}\u{30FC}", "\u{3354}" => "\u{30EB}\u{30FC}\u{30D6}\u{30EB}", "\u{3355}" => "\u{30EC}\u{30E0}", - "\u{3356}" => "\u{30EC}\u{30F3}\u{30C8}\u{30B2}\u{30F3}", "\u{3357}" => "\u{30EF}\u{30C3}\u{30C8}", "\u{3358}" => "\u{30}\u{70B9}", "\u{3359}" => "\u{31}\u{70B9}", - "\u{335A}" => "\u{32}\u{70B9}", "\u{335B}" => "\u{33}\u{70B9}", "\u{335C}" => "\u{34}\u{70B9}", "\u{335D}" => "\u{35}\u{70B9}", - "\u{335E}" => "\u{36}\u{70B9}", "\u{335F}" => "\u{37}\u{70B9}", "\u{3360}" => "\u{38}\u{70B9}", "\u{3361}" => "\u{39}\u{70B9}", - "\u{3362}" => "\u{31}\u{30}\u{70B9}", "\u{3363}" => "\u{31}\u{31}\u{70B9}", "\u{3364}" => "\u{31}\u{32}\u{70B9}", "\u{3365}" => "\u{31}\u{33}\u{70B9}", - "\u{3366}" => "\u{31}\u{34}\u{70B9}", "\u{3367}" => "\u{31}\u{35}\u{70B9}", "\u{3368}" => "\u{31}\u{36}\u{70B9}", "\u{3369}" => "\u{31}\u{37}\u{70B9}", - "\u{336A}" => "\u{31}\u{38}\u{70B9}", "\u{336B}" => "\u{31}\u{39}\u{70B9}", "\u{336C}" => "\u{32}\u{30}\u{70B9}", "\u{336D}" => "\u{32}\u{31}\u{70B9}", - "\u{336E}" => "\u{32}\u{32}\u{70B9}", "\u{336F}" => "\u{32}\u{33}\u{70B9}", "\u{3370}" => "\u{32}\u{34}\u{70B9}", "\u{3371}" => "\u{68}\u{70}\u{61}", - "\u{3372}" => "\u{64}\u{61}", "\u{3373}" => "\u{61}\u{75}", "\u{3374}" => "\u{62}\u{61}\u{72}", "\u{3375}" => "\u{6F}\u{76}", - "\u{3376}" => "\u{70}\u{63}", "\u{3377}" => "\u{64}\u{6D}", "\u{3378}" => "\u{64}\u{6D}\u{32}", "\u{3379}" => "\u{64}\u{6D}\u{33}", - "\u{337A}" => "\u{69}\u{75}", "\u{337B}" => "\u{5E73}\u{6210}", "\u{337C}" => "\u{662D}\u{548C}", "\u{337D}" => "\u{5927}\u{6B63}", - "\u{337E}" => "\u{660E}\u{6CBB}", "\u{337F}" => "\u{682A}\u{5F0F}\u{4F1A}\u{793E}", "\u{3380}" => "\u{70}\u{61}", "\u{3381}" => "\u{6E}\u{61}", - "\u{3382}" => "\u{3BC}\u{61}", "\u{3383}" => "\u{6D}\u{61}", "\u{3384}" => "\u{6B}\u{61}", "\u{3385}" => "\u{6B}\u{62}", - "\u{3386}" => "\u{6D}\u{62}", "\u{3387}" => "\u{67}\u{62}", "\u{3388}" => "\u{63}\u{61}\u{6C}", "\u{3389}" => "\u{6B}\u{63}\u{61}\u{6C}", - "\u{338A}" => "\u{70}\u{66}", "\u{338B}" => "\u{6E}\u{66}", "\u{338C}" => "\u{3BC}\u{66}", "\u{338D}" => "\u{3BC}\u{67}", - "\u{338E}" => "\u{6D}\u{67}", "\u{338F}" => "\u{6B}\u{67}", "\u{3390}" => "\u{68}\u{7A}", "\u{3391}" => "\u{6B}\u{68}\u{7A}", - "\u{3392}" => "\u{6D}\u{68}\u{7A}", "\u{3393}" => "\u{67}\u{68}\u{7A}", "\u{3394}" => "\u{74}\u{68}\u{7A}", "\u{3395}" => "\u{3BC}\u{6C}", - "\u{3396}" => "\u{6D}\u{6C}", "\u{3397}" => "\u{64}\u{6C}", "\u{3398}" => "\u{6B}\u{6C}", "\u{3399}" => "\u{66}\u{6D}", - "\u{339A}" => "\u{6E}\u{6D}", "\u{339B}" => "\u{3BC}\u{6D}", "\u{339C}" => "\u{6D}\u{6D}", "\u{339D}" => "\u{63}\u{6D}", - "\u{339E}" => "\u{6B}\u{6D}", "\u{339F}" => "\u{6D}\u{6D}\u{32}", "\u{33A0}" => "\u{63}\u{6D}\u{32}", "\u{33A1}" => "\u{6D}\u{32}", - "\u{33A2}" => "\u{6B}\u{6D}\u{32}", "\u{33A3}" => "\u{6D}\u{6D}\u{33}", "\u{33A4}" => "\u{63}\u{6D}\u{33}", "\u{33A5}" => "\u{6D}\u{33}", - "\u{33A6}" => "\u{6B}\u{6D}\u{33}", "\u{33A7}" => "\u{6D}\u{2215}\u{73}", "\u{33A8}" => "\u{6D}\u{2215}\u{73}\u{32}", "\u{33A9}" => "\u{70}\u{61}", - "\u{33AA}" => "\u{6B}\u{70}\u{61}", "\u{33AB}" => "\u{6D}\u{70}\u{61}", "\u{33AC}" => "\u{67}\u{70}\u{61}", "\u{33AD}" => "\u{72}\u{61}\u{64}", - "\u{33AE}" => "\u{72}\u{61}\u{64}\u{2215}\u{73}", "\u{33AF}" => "\u{72}\u{61}\u{64}\u{2215}\u{73}\u{32}", "\u{33B0}" => "\u{70}\u{73}", "\u{33B1}" => "\u{6E}\u{73}", - "\u{33B2}" => "\u{3BC}\u{73}", "\u{33B3}" => "\u{6D}\u{73}", "\u{33B4}" => "\u{70}\u{76}", "\u{33B5}" => "\u{6E}\u{76}", - "\u{33B6}" => "\u{3BC}\u{76}", "\u{33B7}" => "\u{6D}\u{76}", "\u{33B8}" => "\u{6B}\u{76}", "\u{33B9}" => "\u{6D}\u{76}", - "\u{33BA}" => "\u{70}\u{77}", "\u{33BB}" => "\u{6E}\u{77}", "\u{33BC}" => "\u{3BC}\u{77}", "\u{33BD}" => "\u{6D}\u{77}", - "\u{33BE}" => "\u{6B}\u{77}", "\u{33BF}" => "\u{6D}\u{77}", "\u{33C0}" => "\u{6B}\u{3C9}", "\u{33C1}" => "\u{6D}\u{3C9}", - "\u{33C3}" => "\u{62}\u{71}", "\u{33C4}" => "\u{63}\u{63}", "\u{33C5}" => "\u{63}\u{64}", "\u{33C6}" => "\u{63}\u{2215}\u{6B}\u{67}", - "\u{33C8}" => "\u{64}\u{62}", "\u{33C9}" => "\u{67}\u{79}", "\u{33CA}" => "\u{68}\u{61}", "\u{33CB}" => "\u{68}\u{70}", - "\u{33CC}" => "\u{69}\u{6E}", "\u{33CD}" => "\u{6B}\u{6B}", "\u{33CE}" => "\u{6B}\u{6D}", "\u{33CF}" => "\u{6B}\u{74}", - "\u{33D0}" => "\u{6C}\u{6D}", "\u{33D1}" => "\u{6C}\u{6E}", "\u{33D2}" => "\u{6C}\u{6F}\u{67}", "\u{33D3}" => "\u{6C}\u{78}", - "\u{33D4}" => "\u{6D}\u{62}", "\u{33D5}" => "\u{6D}\u{69}\u{6C}", "\u{33D6}" => "\u{6D}\u{6F}\u{6C}", "\u{33D7}" => "\u{70}\u{68}", - "\u{33D9}" => "\u{70}\u{70}\u{6D}", "\u{33DA}" => "\u{70}\u{72}", "\u{33DB}" => "\u{73}\u{72}", "\u{33DC}" => "\u{73}\u{76}", - "\u{33DD}" => "\u{77}\u{62}", "\u{33DE}" => "\u{76}\u{2215}\u{6D}", "\u{33DF}" => "\u{61}\u{2215}\u{6D}", "\u{33E0}" => "\u{31}\u{65E5}", - "\u{33E1}" => "\u{32}\u{65E5}", "\u{33E2}" => "\u{33}\u{65E5}", "\u{33E3}" => "\u{34}\u{65E5}", "\u{33E4}" => "\u{35}\u{65E5}", - "\u{33E5}" => "\u{36}\u{65E5}", "\u{33E6}" => "\u{37}\u{65E5}", "\u{33E7}" => "\u{38}\u{65E5}", "\u{33E8}" => "\u{39}\u{65E5}", - "\u{33E9}" => "\u{31}\u{30}\u{65E5}", "\u{33EA}" => "\u{31}\u{31}\u{65E5}", "\u{33EB}" => "\u{31}\u{32}\u{65E5}", "\u{33EC}" => "\u{31}\u{33}\u{65E5}", - "\u{33ED}" => "\u{31}\u{34}\u{65E5}", "\u{33EE}" => "\u{31}\u{35}\u{65E5}", "\u{33EF}" => "\u{31}\u{36}\u{65E5}", "\u{33F0}" => "\u{31}\u{37}\u{65E5}", - "\u{33F1}" => "\u{31}\u{38}\u{65E5}", "\u{33F2}" => "\u{31}\u{39}\u{65E5}", "\u{33F3}" => "\u{32}\u{30}\u{65E5}", "\u{33F4}" => "\u{32}\u{31}\u{65E5}", - "\u{33F5}" => "\u{32}\u{32}\u{65E5}", "\u{33F6}" => "\u{32}\u{33}\u{65E5}", "\u{33F7}" => "\u{32}\u{34}\u{65E5}", "\u{33F8}" => "\u{32}\u{35}\u{65E5}", - "\u{33F9}" => "\u{32}\u{36}\u{65E5}", "\u{33FA}" => "\u{32}\u{37}\u{65E5}", "\u{33FB}" => "\u{32}\u{38}\u{65E5}", "\u{33FC}" => "\u{32}\u{39}\u{65E5}", - "\u{33FD}" => "\u{33}\u{30}\u{65E5}", "\u{33FE}" => "\u{33}\u{31}\u{65E5}", "\u{33FF}" => "\u{67}\u{61}\u{6C}", "\u{A640}" => "\u{A641}", - "\u{A642}" => "\u{A643}", "\u{A644}" => "\u{A645}", "\u{A646}" => "\u{A647}", "\u{A648}" => "\u{A649}", - "\u{A64A}" => "\u{A64B}", "\u{A64C}" => "\u{A64D}", "\u{A64E}" => "\u{A64F}", "\u{A650}" => "\u{A651}", - "\u{A652}" => "\u{A653}", "\u{A654}" => "\u{A655}", "\u{A656}" => "\u{A657}", "\u{A658}" => "\u{A659}", - "\u{A65A}" => "\u{A65B}", "\u{A65C}" => "\u{A65D}", "\u{A65E}" => "\u{A65F}", "\u{A660}" => "\u{A661}", - "\u{A662}" => "\u{A663}", "\u{A664}" => "\u{A665}", "\u{A666}" => "\u{A667}", "\u{A668}" => "\u{A669}", - "\u{A66A}" => "\u{A66B}", "\u{A66C}" => "\u{A66D}", "\u{A680}" => "\u{A681}", "\u{A682}" => "\u{A683}", - "\u{A684}" => "\u{A685}", "\u{A686}" => "\u{A687}", "\u{A688}" => "\u{A689}", "\u{A68A}" => "\u{A68B}", - "\u{A68C}" => "\u{A68D}", "\u{A68E}" => "\u{A68F}", "\u{A690}" => "\u{A691}", "\u{A692}" => "\u{A693}", - "\u{A694}" => "\u{A695}", "\u{A696}" => "\u{A697}", "\u{A698}" => "\u{A699}", "\u{A69A}" => "\u{A69B}", - "\u{A69C}" => "\u{44A}", "\u{A69D}" => "\u{44C}", "\u{A722}" => "\u{A723}", "\u{A724}" => "\u{A725}", - "\u{A726}" => "\u{A727}", "\u{A728}" => "\u{A729}", "\u{A72A}" => "\u{A72B}", "\u{A72C}" => "\u{A72D}", - "\u{A72E}" => "\u{A72F}", "\u{A732}" => "\u{A733}", "\u{A734}" => "\u{A735}", "\u{A736}" => "\u{A737}", - "\u{A738}" => "\u{A739}", "\u{A73A}" => "\u{A73B}", "\u{A73C}" => "\u{A73D}", "\u{A73E}" => "\u{A73F}", - "\u{A740}" => "\u{A741}", "\u{A742}" => "\u{A743}", "\u{A744}" => "\u{A745}", "\u{A746}" => "\u{A747}", - "\u{A748}" => "\u{A749}", "\u{A74A}" => "\u{A74B}", "\u{A74C}" => "\u{A74D}", "\u{A74E}" => "\u{A74F}", - "\u{A750}" => "\u{A751}", "\u{A752}" => "\u{A753}", "\u{A754}" => "\u{A755}", "\u{A756}" => "\u{A757}", - "\u{A758}" => "\u{A759}", "\u{A75A}" => "\u{A75B}", "\u{A75C}" => "\u{A75D}", "\u{A75E}" => "\u{A75F}", - "\u{A760}" => "\u{A761}", "\u{A762}" => "\u{A763}", "\u{A764}" => "\u{A765}", "\u{A766}" => "\u{A767}", - "\u{A768}" => "\u{A769}", "\u{A76A}" => "\u{A76B}", "\u{A76C}" => "\u{A76D}", "\u{A76E}" => "\u{A76F}", - "\u{A770}" => "\u{A76F}", "\u{A779}" => "\u{A77A}", "\u{A77B}" => "\u{A77C}", "\u{A77D}" => "\u{1D79}", - "\u{A77E}" => "\u{A77F}", "\u{A780}" => "\u{A781}", "\u{A782}" => "\u{A783}", "\u{A784}" => "\u{A785}", - "\u{A786}" => "\u{A787}", "\u{A78B}" => "\u{A78C}", "\u{A78D}" => "\u{265}", "\u{A790}" => "\u{A791}", - "\u{A792}" => "\u{A793}", "\u{A796}" => "\u{A797}", "\u{A798}" => "\u{A799}", "\u{A79A}" => "\u{A79B}", - "\u{A79C}" => "\u{A79D}", "\u{A79E}" => "\u{A79F}", "\u{A7A0}" => "\u{A7A1}", "\u{A7A2}" => "\u{A7A3}", - "\u{A7A4}" => "\u{A7A5}", "\u{A7A6}" => "\u{A7A7}", "\u{A7A8}" => "\u{A7A9}", "\u{A7AA}" => "\u{266}", - "\u{A7AB}" => "\u{25C}", "\u{A7AC}" => "\u{261}", "\u{A7AD}" => "\u{26C}", "\u{A7AE}" => "\u{26A}", - "\u{A7B0}" => "\u{29E}", "\u{A7B1}" => "\u{287}", "\u{A7B2}" => "\u{29D}", "\u{A7B3}" => "\u{AB53}", - "\u{A7B4}" => "\u{A7B5}", "\u{A7B6}" => "\u{A7B7}", "\u{A7B8}" => "\u{A7B9}", "\u{A7BA}" => "\u{A7BB}", - "\u{A7BC}" => "\u{A7BD}", "\u{A7BE}" => "\u{A7BF}", "\u{A7C0}" => "\u{A7C1}", "\u{A7C2}" => "\u{A7C3}", - "\u{A7C4}" => "\u{A794}", "\u{A7C5}" => "\u{282}", "\u{A7C6}" => "\u{1D8E}", "\u{A7C7}" => "\u{A7C8}", - "\u{A7C9}" => "\u{A7CA}", "\u{A7CB}" => "\u{264}", "\u{A7CC}" => "\u{A7CD}", "\u{A7CE}" => "\u{A7CF}", - "\u{A7D0}" => "\u{A7D1}", "\u{A7D2}" => "\u{A7D3}", "\u{A7D4}" => "\u{A7D5}", "\u{A7D6}" => "\u{A7D7}", - "\u{A7D8}" => "\u{A7D9}", "\u{A7DA}" => "\u{A7DB}", "\u{A7DC}" => "\u{19B}", "\u{A7DD}" => "\u{277}", - "\u{A7E2}" => "\u{27C}", "\u{A7F1}" => "\u{73}", "\u{A7F2}" => "\u{63}", "\u{A7F3}" => "\u{66}", - "\u{A7F4}" => "\u{71}", "\u{A7F5}" => "\u{A7F6}", "\u{A7F8}" => "\u{127}", "\u{A7F9}" => "\u{153}", - "\u{AB5C}" => "\u{A727}", "\u{AB5D}" => "\u{AB37}", "\u{AB5E}" => "\u{26B}", "\u{AB5F}" => "\u{AB52}", - "\u{AB69}" => "\u{28D}", "\u{AB6C}" => "\u{AB4B}", "\u{AB6D}" => "\u{AB4C}", "\u{AB70}" => "\u{13A0}", - "\u{AB71}" => "\u{13A1}", "\u{AB72}" => "\u{13A2}", "\u{AB73}" => "\u{13A3}", "\u{AB74}" => "\u{13A4}", - "\u{AB75}" => "\u{13A5}", "\u{AB76}" => "\u{13A6}", "\u{AB77}" => "\u{13A7}", "\u{AB78}" => "\u{13A8}", - "\u{AB79}" => "\u{13A9}", "\u{AB7A}" => "\u{13AA}", "\u{AB7B}" => "\u{13AB}", "\u{AB7C}" => "\u{13AC}", - "\u{AB7D}" => "\u{13AD}", "\u{AB7E}" => "\u{13AE}", "\u{AB7F}" => "\u{13AF}", "\u{AB80}" => "\u{13B0}", - "\u{AB81}" => "\u{13B1}", "\u{AB82}" => "\u{13B2}", "\u{AB83}" => "\u{13B3}", "\u{AB84}" => "\u{13B4}", - "\u{AB85}" => "\u{13B5}", "\u{AB86}" => "\u{13B6}", "\u{AB87}" => "\u{13B7}", "\u{AB88}" => "\u{13B8}", - "\u{AB89}" => "\u{13B9}", "\u{AB8A}" => "\u{13BA}", "\u{AB8B}" => "\u{13BB}", "\u{AB8C}" => "\u{13BC}", - "\u{AB8D}" => "\u{13BD}", "\u{AB8E}" => "\u{13BE}", "\u{AB8F}" => "\u{13BF}", "\u{AB90}" => "\u{13C0}", - "\u{AB91}" => "\u{13C1}", "\u{AB92}" => "\u{13C2}", "\u{AB93}" => "\u{13C3}", "\u{AB94}" => "\u{13C4}", - "\u{AB95}" => "\u{13C5}", "\u{AB96}" => "\u{13C6}", "\u{AB97}" => "\u{13C7}", "\u{AB98}" => "\u{13C8}", - "\u{AB99}" => "\u{13C9}", "\u{AB9A}" => "\u{13CA}", "\u{AB9B}" => "\u{13CB}", "\u{AB9C}" => "\u{13CC}", - "\u{AB9D}" => "\u{13CD}", "\u{AB9E}" => "\u{13CE}", "\u{AB9F}" => "\u{13CF}", "\u{ABA0}" => "\u{13D0}", - "\u{ABA1}" => "\u{13D1}", "\u{ABA2}" => "\u{13D2}", "\u{ABA3}" => "\u{13D3}", "\u{ABA4}" => "\u{13D4}", - "\u{ABA5}" => "\u{13D5}", "\u{ABA6}" => "\u{13D6}", "\u{ABA7}" => "\u{13D7}", "\u{ABA8}" => "\u{13D8}", - "\u{ABA9}" => "\u{13D9}", "\u{ABAA}" => "\u{13DA}", "\u{ABAB}" => "\u{13DB}", "\u{ABAC}" => "\u{13DC}", - "\u{ABAD}" => "\u{13DD}", "\u{ABAE}" => "\u{13DE}", "\u{ABAF}" => "\u{13DF}", "\u{ABB0}" => "\u{13E0}", - "\u{ABB1}" => "\u{13E1}", "\u{ABB2}" => "\u{13E2}", "\u{ABB3}" => "\u{13E3}", "\u{ABB4}" => "\u{13E4}", - "\u{ABB5}" => "\u{13E5}", "\u{ABB6}" => "\u{13E6}", "\u{ABB7}" => "\u{13E7}", "\u{ABB8}" => "\u{13E8}", - "\u{ABB9}" => "\u{13E9}", "\u{ABBA}" => "\u{13EA}", "\u{ABBB}" => "\u{13EB}", "\u{ABBC}" => "\u{13EC}", - "\u{ABBD}" => "\u{13ED}", "\u{ABBE}" => "\u{13EE}", "\u{ABBF}" => "\u{13EF}", "\u{F900}" => "\u{8C48}", - "\u{F901}" => "\u{66F4}", "\u{F902}" => "\u{8ECA}", "\u{F903}" => "\u{8CC8}", "\u{F904}" => "\u{6ED1}", - "\u{F905}" => "\u{4E32}", "\u{F906}" => "\u{53E5}", "\u{F907}" => "\u{9F9C}", "\u{F908}" => "\u{9F9C}", - "\u{F909}" => "\u{5951}", "\u{F90A}" => "\u{91D1}", "\u{F90B}" => "\u{5587}", "\u{F90C}" => "\u{5948}", - "\u{F90D}" => "\u{61F6}", "\u{F90E}" => "\u{7669}", "\u{F90F}" => "\u{7F85}", "\u{F910}" => "\u{863F}", - "\u{F911}" => "\u{87BA}", "\u{F912}" => "\u{88F8}", "\u{F913}" => "\u{908F}", "\u{F914}" => "\u{6A02}", - "\u{F915}" => "\u{6D1B}", "\u{F916}" => "\u{70D9}", "\u{F917}" => "\u{73DE}", "\u{F918}" => "\u{843D}", - "\u{F919}" => "\u{916A}", "\u{F91A}" => "\u{99F1}", "\u{F91B}" => "\u{4E82}", "\u{F91C}" => "\u{5375}", - "\u{F91D}" => "\u{6B04}", "\u{F91E}" => "\u{721B}", "\u{F91F}" => "\u{862D}", "\u{F920}" => "\u{9E1E}", - "\u{F921}" => "\u{5D50}", "\u{F922}" => "\u{6FEB}", "\u{F923}" => "\u{85CD}", "\u{F924}" => "\u{8964}", - "\u{F925}" => "\u{62C9}", "\u{F926}" => "\u{81D8}", "\u{F927}" => "\u{881F}", "\u{F928}" => "\u{5ECA}", - "\u{F929}" => "\u{6717}", "\u{F92A}" => "\u{6D6A}", "\u{F92B}" => "\u{72FC}", "\u{F92C}" => "\u{90CE}", - "\u{F92D}" => "\u{4F86}", "\u{F92E}" => "\u{51B7}", "\u{F92F}" => "\u{52DE}", "\u{F930}" => "\u{64C4}", - "\u{F931}" => "\u{6AD3}", "\u{F932}" => "\u{7210}", "\u{F933}" => "\u{76E7}", "\u{F934}" => "\u{8001}", - "\u{F935}" => "\u{8606}", "\u{F936}" => "\u{865C}", "\u{F937}" => "\u{8DEF}", "\u{F938}" => "\u{9732}", - "\u{F939}" => "\u{9B6F}", "\u{F93A}" => "\u{9DFA}", "\u{F93B}" => "\u{788C}", "\u{F93C}" => "\u{797F}", - "\u{F93D}" => "\u{7DA0}", "\u{F93E}" => "\u{83C9}", "\u{F93F}" => "\u{9304}", "\u{F940}" => "\u{9E7F}", - "\u{F941}" => "\u{8AD6}", "\u{F942}" => "\u{58DF}", "\u{F943}" => "\u{5F04}", "\u{F944}" => "\u{7C60}", - "\u{F945}" => "\u{807E}", "\u{F946}" => "\u{7262}", "\u{F947}" => "\u{78CA}", "\u{F948}" => "\u{8CC2}", - "\u{F949}" => "\u{96F7}", "\u{F94A}" => "\u{58D8}", "\u{F94B}" => "\u{5C62}", "\u{F94C}" => "\u{6A13}", - "\u{F94D}" => "\u{6DDA}", "\u{F94E}" => "\u{6F0F}", "\u{F94F}" => "\u{7D2F}", "\u{F950}" => "\u{7E37}", - "\u{F951}" => "\u{964B}", "\u{F952}" => "\u{52D2}", "\u{F953}" => "\u{808B}", "\u{F954}" => "\u{51DC}", - "\u{F955}" => "\u{51CC}", "\u{F956}" => "\u{7A1C}", "\u{F957}" => "\u{7DBE}", "\u{F958}" => "\u{83F1}", - "\u{F959}" => "\u{9675}", "\u{F95A}" => "\u{8B80}", "\u{F95B}" => "\u{62CF}", "\u{F95C}" => "\u{6A02}", - "\u{F95D}" => "\u{8AFE}", "\u{F95E}" => "\u{4E39}", "\u{F95F}" => "\u{5BE7}", "\u{F960}" => "\u{6012}", - "\u{F961}" => "\u{7387}", "\u{F962}" => "\u{7570}", "\u{F963}" => "\u{5317}", "\u{F964}" => "\u{78FB}", - "\u{F965}" => "\u{4FBF}", "\u{F966}" => "\u{5FA9}", "\u{F967}" => "\u{4E0D}", "\u{F968}" => "\u{6CCC}", - "\u{F969}" => "\u{6578}", "\u{F96A}" => "\u{7D22}", "\u{F96B}" => "\u{53C3}", "\u{F96C}" => "\u{585E}", - "\u{F96D}" => "\u{7701}", "\u{F96E}" => "\u{8449}", "\u{F96F}" => "\u{8AAA}", "\u{F970}" => "\u{6BBA}", - "\u{F971}" => "\u{8FB0}", "\u{F972}" => "\u{6C88}", "\u{F973}" => "\u{62FE}", "\u{F974}" => "\u{82E5}", - "\u{F975}" => "\u{63A0}", "\u{F976}" => "\u{7565}", "\u{F977}" => "\u{4EAE}", "\u{F978}" => "\u{5169}", - "\u{F979}" => "\u{51C9}", "\u{F97A}" => "\u{6881}", "\u{F97B}" => "\u{7CE7}", "\u{F97C}" => "\u{826F}", - "\u{F97D}" => "\u{8AD2}", "\u{F97E}" => "\u{91CF}", "\u{F97F}" => "\u{52F5}", "\u{F980}" => "\u{5442}", - "\u{F981}" => "\u{5973}", "\u{F982}" => "\u{5EEC}", "\u{F983}" => "\u{65C5}", "\u{F984}" => "\u{6FFE}", - "\u{F985}" => "\u{792A}", "\u{F986}" => "\u{95AD}", "\u{F987}" => "\u{9A6A}", "\u{F988}" => "\u{9E97}", - "\u{F989}" => "\u{9ECE}", "\u{F98A}" => "\u{529B}", "\u{F98B}" => "\u{66C6}", "\u{F98C}" => "\u{6B77}", - "\u{F98D}" => "\u{8F62}", "\u{F98E}" => "\u{5E74}", "\u{F98F}" => "\u{6190}", "\u{F990}" => "\u{6200}", - "\u{F991}" => "\u{649A}", "\u{F992}" => "\u{6F23}", "\u{F993}" => "\u{7149}", "\u{F994}" => "\u{7489}", - "\u{F995}" => "\u{79CA}", "\u{F996}" => "\u{7DF4}", "\u{F997}" => "\u{806F}", "\u{F998}" => "\u{8F26}", - "\u{F999}" => "\u{84EE}", "\u{F99A}" => "\u{9023}", "\u{F99B}" => "\u{934A}", "\u{F99C}" => "\u{5217}", - "\u{F99D}" => "\u{52A3}", "\u{F99E}" => "\u{54BD}", "\u{F99F}" => "\u{70C8}", "\u{F9A0}" => "\u{88C2}", - "\u{F9A1}" => "\u{8AAA}", "\u{F9A2}" => "\u{5EC9}", "\u{F9A3}" => "\u{5FF5}", "\u{F9A4}" => "\u{637B}", - "\u{F9A5}" => "\u{6BAE}", "\u{F9A6}" => "\u{7C3E}", "\u{F9A7}" => "\u{7375}", "\u{F9A8}" => "\u{4EE4}", - "\u{F9A9}" => "\u{56F9}", "\u{F9AA}" => "\u{5BE7}", "\u{F9AB}" => "\u{5DBA}", "\u{F9AC}" => "\u{601C}", - "\u{F9AD}" => "\u{73B2}", "\u{F9AE}" => "\u{7469}", "\u{F9AF}" => "\u{7F9A}", "\u{F9B0}" => "\u{8046}", - "\u{F9B1}" => "\u{9234}", "\u{F9B2}" => "\u{96F6}", "\u{F9B3}" => "\u{9748}", "\u{F9B4}" => "\u{9818}", - "\u{F9B5}" => "\u{4F8B}", "\u{F9B6}" => "\u{79AE}", "\u{F9B7}" => "\u{91B4}", "\u{F9B8}" => "\u{96B8}", - "\u{F9B9}" => "\u{60E1}", "\u{F9BA}" => "\u{4E86}", "\u{F9BB}" => "\u{50DA}", "\u{F9BC}" => "\u{5BEE}", - "\u{F9BD}" => "\u{5C3F}", "\u{F9BE}" => "\u{6599}", "\u{F9BF}" => "\u{6A02}", "\u{F9C0}" => "\u{71CE}", - "\u{F9C1}" => "\u{7642}", "\u{F9C2}" => "\u{84FC}", "\u{F9C3}" => "\u{907C}", "\u{F9C4}" => "\u{9F8D}", - "\u{F9C5}" => "\u{6688}", "\u{F9C6}" => "\u{962E}", "\u{F9C7}" => "\u{5289}", "\u{F9C8}" => "\u{677B}", - "\u{F9C9}" => "\u{67F3}", "\u{F9CA}" => "\u{6D41}", "\u{F9CB}" => "\u{6E9C}", "\u{F9CC}" => "\u{7409}", - "\u{F9CD}" => "\u{7559}", "\u{F9CE}" => "\u{786B}", "\u{F9CF}" => "\u{7D10}", "\u{F9D0}" => "\u{985E}", - "\u{F9D1}" => "\u{516D}", "\u{F9D2}" => "\u{622E}", "\u{F9D3}" => "\u{9678}", "\u{F9D4}" => "\u{502B}", - "\u{F9D5}" => "\u{5D19}", "\u{F9D6}" => "\u{6DEA}", "\u{F9D7}" => "\u{8F2A}", "\u{F9D8}" => "\u{5F8B}", - "\u{F9D9}" => "\u{6144}", "\u{F9DA}" => "\u{6817}", "\u{F9DB}" => "\u{7387}", "\u{F9DC}" => "\u{9686}", - "\u{F9DD}" => "\u{5229}", "\u{F9DE}" => "\u{540F}", "\u{F9DF}" => "\u{5C65}", "\u{F9E0}" => "\u{6613}", - "\u{F9E1}" => "\u{674E}", "\u{F9E2}" => "\u{68A8}", "\u{F9E3}" => "\u{6CE5}", "\u{F9E4}" => "\u{7406}", - "\u{F9E5}" => "\u{75E2}", "\u{F9E6}" => "\u{7F79}", "\u{F9E7}" => "\u{88CF}", "\u{F9E8}" => "\u{88E1}", - "\u{F9E9}" => "\u{91CC}", "\u{F9EA}" => "\u{96E2}", "\u{F9EB}" => "\u{533F}", "\u{F9EC}" => "\u{6EBA}", - "\u{F9ED}" => "\u{541D}", "\u{F9EE}" => "\u{71D0}", "\u{F9EF}" => "\u{7498}", "\u{F9F0}" => "\u{85FA}", - "\u{F9F1}" => "\u{96A3}", "\u{F9F2}" => "\u{9C57}", "\u{F9F3}" => "\u{9E9F}", "\u{F9F4}" => "\u{6797}", - "\u{F9F5}" => "\u{6DCB}", "\u{F9F6}" => "\u{81E8}", "\u{F9F7}" => "\u{7ACB}", "\u{F9F8}" => "\u{7B20}", - "\u{F9F9}" => "\u{7C92}", "\u{F9FA}" => "\u{72C0}", "\u{F9FB}" => "\u{7099}", "\u{F9FC}" => "\u{8B58}", - "\u{F9FD}" => "\u{4EC0}", "\u{F9FE}" => "\u{8336}", "\u{F9FF}" => "\u{523A}", "\u{FA00}" => "\u{5207}", - "\u{FA01}" => "\u{5EA6}", "\u{FA02}" => "\u{62D3}", "\u{FA03}" => "\u{7CD6}", "\u{FA04}" => "\u{5B85}", - "\u{FA05}" => "\u{6D1E}", "\u{FA06}" => "\u{66B4}", "\u{FA07}" => "\u{8F3B}", "\u{FA08}" => "\u{884C}", - "\u{FA09}" => "\u{964D}", "\u{FA0A}" => "\u{898B}", "\u{FA0B}" => "\u{5ED3}", "\u{FA0C}" => "\u{5140}", - "\u{FA0D}" => "\u{55C0}", "\u{FA10}" => "\u{585A}", "\u{FA12}" => "\u{6674}", "\u{FA15}" => "\u{51DE}", - "\u{FA16}" => "\u{732A}", "\u{FA17}" => "\u{76CA}", "\u{FA18}" => "\u{793C}", "\u{FA19}" => "\u{795E}", - "\u{FA1A}" => "\u{7965}", "\u{FA1B}" => "\u{798F}", "\u{FA1C}" => "\u{9756}", "\u{FA1D}" => "\u{7CBE}", - "\u{FA1E}" => "\u{7FBD}", "\u{FA20}" => "\u{8612}", "\u{FA22}" => "\u{8AF8}", "\u{FA25}" => "\u{9038}", - "\u{FA26}" => "\u{90FD}", "\u{FA2A}" => "\u{98EF}", "\u{FA2B}" => "\u{98FC}", "\u{FA2C}" => "\u{9928}", - "\u{FA2D}" => "\u{9DB4}", "\u{FA2E}" => "\u{90DE}", "\u{FA2F}" => "\u{96B7}", "\u{FA30}" => "\u{4FAE}", - "\u{FA31}" => "\u{50E7}", "\u{FA32}" => "\u{514D}", "\u{FA33}" => "\u{52C9}", "\u{FA34}" => "\u{52E4}", - "\u{FA35}" => "\u{5351}", "\u{FA36}" => "\u{559D}", "\u{FA37}" => "\u{5606}", "\u{FA38}" => "\u{5668}", - "\u{FA39}" => "\u{5840}", "\u{FA3A}" => "\u{58A8}", "\u{FA3B}" => "\u{5C64}", "\u{FA3C}" => "\u{5C6E}", - "\u{FA3D}" => "\u{6094}", "\u{FA3E}" => "\u{6168}", "\u{FA3F}" => "\u{618E}", "\u{FA40}" => "\u{61F2}", - "\u{FA41}" => "\u{654F}", "\u{FA42}" => "\u{65E2}", "\u{FA43}" => "\u{6691}", "\u{FA44}" => "\u{6885}", - "\u{FA45}" => "\u{6D77}", "\u{FA46}" => "\u{6E1A}", "\u{FA47}" => "\u{6F22}", "\u{FA48}" => "\u{716E}", - "\u{FA49}" => "\u{722B}", "\u{FA4A}" => "\u{7422}", "\u{FA4B}" => "\u{7891}", "\u{FA4C}" => "\u{793E}", - "\u{FA4D}" => "\u{7949}", "\u{FA4E}" => "\u{7948}", "\u{FA4F}" => "\u{7950}", "\u{FA50}" => "\u{7956}", - "\u{FA51}" => "\u{795D}", "\u{FA52}" => "\u{798D}", "\u{FA53}" => "\u{798E}", "\u{FA54}" => "\u{7A40}", - "\u{FA55}" => "\u{7A81}", "\u{FA56}" => "\u{7BC0}", "\u{FA57}" => "\u{7DF4}", "\u{FA58}" => "\u{7E09}", - "\u{FA59}" => "\u{7E41}", "\u{FA5A}" => "\u{7F72}", "\u{FA5B}" => "\u{8005}", "\u{FA5C}" => "\u{81ED}", - "\u{FA5D}" => "\u{8279}", "\u{FA5E}" => "\u{8279}", "\u{FA5F}" => "\u{8457}", "\u{FA60}" => "\u{8910}", - "\u{FA61}" => "\u{8996}", "\u{FA62}" => "\u{8B01}", "\u{FA63}" => "\u{8B39}", "\u{FA64}" => "\u{8CD3}", - "\u{FA65}" => "\u{8D08}", "\u{FA66}" => "\u{8FB6}", "\u{FA67}" => "\u{9038}", "\u{FA68}" => "\u{96E3}", - "\u{FA69}" => "\u{97FF}", "\u{FA6A}" => "\u{983B}", "\u{FA6B}" => "\u{6075}", "\u{FA6C}" => "\u{242EE}", - "\u{FA6D}" => "\u{8218}", "\u{FA70}" => "\u{4E26}", "\u{FA71}" => "\u{51B5}", "\u{FA72}" => "\u{5168}", - "\u{FA73}" => "\u{4F80}", "\u{FA74}" => "\u{5145}", "\u{FA75}" => "\u{5180}", "\u{FA76}" => "\u{52C7}", - "\u{FA77}" => "\u{52FA}", "\u{FA78}" => "\u{559D}", "\u{FA79}" => "\u{5555}", "\u{FA7A}" => "\u{5599}", - "\u{FA7B}" => "\u{55E2}", "\u{FA7C}" => "\u{585A}", "\u{FA7D}" => "\u{58B3}", "\u{FA7E}" => "\u{5944}", - "\u{FA7F}" => "\u{5954}", "\u{FA80}" => "\u{5A62}", "\u{FA81}" => "\u{5B28}", "\u{FA82}" => "\u{5ED2}", - "\u{FA83}" => "\u{5ED9}", "\u{FA84}" => "\u{5F69}", "\u{FA85}" => "\u{5FAD}", "\u{FA86}" => "\u{60D8}", - "\u{FA87}" => "\u{614E}", "\u{FA88}" => "\u{6108}", "\u{FA89}" => "\u{618E}", "\u{FA8A}" => "\u{6160}", - "\u{FA8B}" => "\u{61F2}", "\u{FA8C}" => "\u{6234}", "\u{FA8D}" => "\u{63C4}", "\u{FA8E}" => "\u{641C}", - "\u{FA8F}" => "\u{6452}", "\u{FA90}" => "\u{6556}", "\u{FA91}" => "\u{6674}", "\u{FA92}" => "\u{6717}", - "\u{FA93}" => "\u{671B}", "\u{FA94}" => "\u{6756}", "\u{FA95}" => "\u{6B79}", "\u{FA96}" => "\u{6BBA}", - "\u{FA97}" => "\u{6D41}", "\u{FA98}" => "\u{6EDB}", "\u{FA99}" => "\u{6ECB}", "\u{FA9A}" => "\u{6F22}", - "\u{FA9B}" => "\u{701E}", "\u{FA9C}" => "\u{716E}", "\u{FA9D}" => "\u{77A7}", "\u{FA9E}" => "\u{7235}", - "\u{FA9F}" => "\u{72AF}", "\u{FAA0}" => "\u{732A}", "\u{FAA1}" => "\u{7471}", "\u{FAA2}" => "\u{7506}", - "\u{FAA3}" => "\u{753B}", "\u{FAA4}" => "\u{761D}", "\u{FAA5}" => "\u{761F}", "\u{FAA6}" => "\u{76CA}", - "\u{FAA7}" => "\u{76DB}", "\u{FAA8}" => "\u{76F4}", "\u{FAA9}" => "\u{774A}", "\u{FAAA}" => "\u{7740}", - "\u{FAAB}" => "\u{78CC}", "\u{FAAC}" => "\u{7AB1}", "\u{FAAD}" => "\u{7BC0}", "\u{FAAE}" => "\u{7C7B}", - "\u{FAAF}" => "\u{7D5B}", "\u{FAB0}" => "\u{7DF4}", "\u{FAB1}" => "\u{7F3E}", "\u{FAB2}" => "\u{8005}", - "\u{FAB3}" => "\u{8352}", "\u{FAB4}" => "\u{83EF}", "\u{FAB5}" => "\u{8779}", "\u{FAB6}" => "\u{8941}", - "\u{FAB7}" => "\u{8986}", "\u{FAB8}" => "\u{8996}", "\u{FAB9}" => "\u{8ABF}", "\u{FABA}" => "\u{8AF8}", - "\u{FABB}" => "\u{8ACB}", "\u{FABC}" => "\u{8B01}", "\u{FABD}" => "\u{8AFE}", "\u{FABE}" => "\u{8AED}", - "\u{FABF}" => "\u{8B39}", "\u{FAC0}" => "\u{8B8A}", "\u{FAC1}" => "\u{8D08}", "\u{FAC2}" => "\u{8F38}", - "\u{FAC3}" => "\u{9072}", "\u{FAC4}" => "\u{9199}", "\u{FAC5}" => "\u{9276}", "\u{FAC6}" => "\u{967C}", - "\u{FAC7}" => "\u{96E3}", "\u{FAC8}" => "\u{9756}", "\u{FAC9}" => "\u{97DB}", "\u{FACA}" => "\u{97FF}", - "\u{FACB}" => "\u{980B}", "\u{FACC}" => "\u{983B}", "\u{FACD}" => "\u{9B12}", "\u{FACE}" => "\u{9F9C}", - "\u{FACF}" => "\u{2284A}", "\u{FAD0}" => "\u{22844}", "\u{FAD1}" => "\u{233D5}", "\u{FAD2}" => "\u{3B9D}", - "\u{FAD3}" => "\u{4018}", "\u{FAD4}" => "\u{4039}", "\u{FAD5}" => "\u{25249}", "\u{FAD6}" => "\u{25CD0}", - "\u{FAD7}" => "\u{27ED3}", "\u{FAD8}" => "\u{9F43}", "\u{FAD9}" => "\u{9F8E}", "\u{FB00}" => "\u{66}\u{66}", - "\u{FB01}" => "\u{66}\u{69}", "\u{FB02}" => "\u{66}\u{6C}", "\u{FB03}" => "\u{66}\u{66}\u{69}", "\u{FB04}" => "\u{66}\u{66}\u{6C}", - "\u{FB05}" => "\u{73}\u{74}", "\u{FB06}" => "\u{73}\u{74}", "\u{FB13}" => "\u{574}\u{576}", "\u{FB14}" => "\u{574}\u{565}", - "\u{FB15}" => "\u{574}\u{56B}", "\u{FB16}" => "\u{57E}\u{576}", "\u{FB17}" => "\u{574}\u{56D}", "\u{FB1D}" => "\u{5D9}\u{5B4}", - "\u{FB1F}" => "\u{5F2}\u{5B7}", "\u{FB20}" => "\u{5E2}", "\u{FB21}" => "\u{5D0}", "\u{FB22}" => "\u{5D3}", - "\u{FB23}" => "\u{5D4}", "\u{FB24}" => "\u{5DB}", "\u{FB25}" => "\u{5DC}", "\u{FB26}" => "\u{5DD}", - "\u{FB27}" => "\u{5E8}", "\u{FB28}" => "\u{5EA}", "\u{FB29}" => "\u{2B}", "\u{FB2A}" => "\u{5E9}\u{5C1}", - "\u{FB2B}" => "\u{5E9}\u{5C2}", "\u{FB2C}" => "\u{5E9}\u{5BC}\u{5C1}", "\u{FB2D}" => "\u{5E9}\u{5BC}\u{5C2}", "\u{FB2E}" => "\u{5D0}\u{5B7}", - "\u{FB2F}" => "\u{5D0}\u{5B8}", "\u{FB30}" => "\u{5D0}\u{5BC}", "\u{FB31}" => "\u{5D1}\u{5BC}", "\u{FB32}" => "\u{5D2}\u{5BC}", - "\u{FB33}" => "\u{5D3}\u{5BC}", "\u{FB34}" => "\u{5D4}\u{5BC}", "\u{FB35}" => "\u{5D5}\u{5BC}", "\u{FB36}" => "\u{5D6}\u{5BC}", - "\u{FB38}" => "\u{5D8}\u{5BC}", "\u{FB39}" => "\u{5D9}\u{5BC}", "\u{FB3A}" => "\u{5DA}\u{5BC}", "\u{FB3B}" => "\u{5DB}\u{5BC}", - "\u{FB3C}" => "\u{5DC}\u{5BC}", "\u{FB3E}" => "\u{5DE}\u{5BC}", "\u{FB40}" => "\u{5E0}\u{5BC}", "\u{FB41}" => "\u{5E1}\u{5BC}", - "\u{FB43}" => "\u{5E3}\u{5BC}", "\u{FB44}" => "\u{5E4}\u{5BC}", "\u{FB46}" => "\u{5E6}\u{5BC}", "\u{FB47}" => "\u{5E7}\u{5BC}", - "\u{FB48}" => "\u{5E8}\u{5BC}", "\u{FB49}" => "\u{5E9}\u{5BC}", "\u{FB4A}" => "\u{5EA}\u{5BC}", "\u{FB4B}" => "\u{5D5}\u{5B9}", - "\u{FB4C}" => "\u{5D1}\u{5BF}", "\u{FB4D}" => "\u{5DB}\u{5BF}", "\u{FB4E}" => "\u{5E4}\u{5BF}", "\u{FB4F}" => "\u{5D0}\u{5DC}", - "\u{FB50}" => "\u{671}", "\u{FB51}" => "\u{671}", "\u{FB52}" => "\u{67B}", "\u{FB53}" => "\u{67B}", - "\u{FB54}" => "\u{67B}", "\u{FB55}" => "\u{67B}", "\u{FB56}" => "\u{67E}", "\u{FB57}" => "\u{67E}", - "\u{FB58}" => "\u{67E}", "\u{FB59}" => "\u{67E}", "\u{FB5A}" => "\u{680}", "\u{FB5B}" => "\u{680}", - "\u{FB5C}" => "\u{680}", "\u{FB5D}" => "\u{680}", "\u{FB5E}" => "\u{67A}", "\u{FB5F}" => "\u{67A}", - "\u{FB60}" => "\u{67A}", "\u{FB61}" => "\u{67A}", "\u{FB62}" => "\u{67F}", "\u{FB63}" => "\u{67F}", - "\u{FB64}" => "\u{67F}", "\u{FB65}" => "\u{67F}", "\u{FB66}" => "\u{679}", "\u{FB67}" => "\u{679}", - "\u{FB68}" => "\u{679}", "\u{FB69}" => "\u{679}", "\u{FB6A}" => "\u{6A4}", "\u{FB6B}" => "\u{6A4}", - "\u{FB6C}" => "\u{6A4}", "\u{FB6D}" => "\u{6A4}", "\u{FB6E}" => "\u{6A6}", "\u{FB6F}" => "\u{6A6}", - "\u{FB70}" => "\u{6A6}", "\u{FB71}" => "\u{6A6}", "\u{FB72}" => "\u{684}", "\u{FB73}" => "\u{684}", - "\u{FB74}" => "\u{684}", "\u{FB75}" => "\u{684}", "\u{FB76}" => "\u{683}", "\u{FB77}" => "\u{683}", - "\u{FB78}" => "\u{683}", "\u{FB79}" => "\u{683}", "\u{FB7A}" => "\u{686}", "\u{FB7B}" => "\u{686}", - "\u{FB7C}" => "\u{686}", "\u{FB7D}" => "\u{686}", "\u{FB7E}" => "\u{687}", "\u{FB7F}" => "\u{687}", - "\u{FB80}" => "\u{687}", "\u{FB81}" => "\u{687}", "\u{FB82}" => "\u{68D}", "\u{FB83}" => "\u{68D}", - "\u{FB84}" => "\u{68C}", "\u{FB85}" => "\u{68C}", "\u{FB86}" => "\u{68E}", "\u{FB87}" => "\u{68E}", - "\u{FB88}" => "\u{688}", "\u{FB89}" => "\u{688}", "\u{FB8A}" => "\u{698}", "\u{FB8B}" => "\u{698}", - "\u{FB8C}" => "\u{691}", "\u{FB8D}" => "\u{691}", "\u{FB8E}" => "\u{6A9}", "\u{FB8F}" => "\u{6A9}", - "\u{FB90}" => "\u{6A9}", "\u{FB91}" => "\u{6A9}", "\u{FB92}" => "\u{6AF}", "\u{FB93}" => "\u{6AF}", - "\u{FB94}" => "\u{6AF}", "\u{FB95}" => "\u{6AF}", "\u{FB96}" => "\u{6B3}", "\u{FB97}" => "\u{6B3}", - "\u{FB98}" => "\u{6B3}", "\u{FB99}" => "\u{6B3}", "\u{FB9A}" => "\u{6B1}", "\u{FB9B}" => "\u{6B1}", - "\u{FB9C}" => "\u{6B1}", "\u{FB9D}" => "\u{6B1}", "\u{FB9E}" => "\u{6BA}", "\u{FB9F}" => "\u{6BA}", - "\u{FBA0}" => "\u{6BB}", "\u{FBA1}" => "\u{6BB}", "\u{FBA2}" => "\u{6BB}", "\u{FBA3}" => "\u{6BB}", - "\u{FBA4}" => "\u{6C0}", "\u{FBA5}" => "\u{6C0}", "\u{FBA6}" => "\u{6C1}", "\u{FBA7}" => "\u{6C1}", - "\u{FBA8}" => "\u{6C1}", "\u{FBA9}" => "\u{6C1}", "\u{FBAA}" => "\u{6BE}", "\u{FBAB}" => "\u{6BE}", - "\u{FBAC}" => "\u{6BE}", "\u{FBAD}" => "\u{6BE}", "\u{FBAE}" => "\u{6D2}", "\u{FBAF}" => "\u{6D2}", - "\u{FBB0}" => "\u{6D3}", "\u{FBB1}" => "\u{6D3}", "\u{FBD3}" => "\u{6AD}", "\u{FBD4}" => "\u{6AD}", - "\u{FBD5}" => "\u{6AD}", "\u{FBD6}" => "\u{6AD}", "\u{FBD7}" => "\u{6C7}", "\u{FBD8}" => "\u{6C7}", - "\u{FBD9}" => "\u{6C6}", "\u{FBDA}" => "\u{6C6}", "\u{FBDB}" => "\u{6C8}", "\u{FBDC}" => "\u{6C8}", - "\u{FBDD}" => "\u{6C7}\u{674}", "\u{FBDE}" => "\u{6CB}", "\u{FBDF}" => "\u{6CB}", "\u{FBE0}" => "\u{6C5}", - "\u{FBE1}" => "\u{6C5}", "\u{FBE2}" => "\u{6C9}", "\u{FBE3}" => "\u{6C9}", "\u{FBE4}" => "\u{6D0}", - "\u{FBE5}" => "\u{6D0}", "\u{FBE6}" => "\u{6D0}", "\u{FBE7}" => "\u{6D0}", "\u{FBE8}" => "\u{649}", - "\u{FBE9}" => "\u{649}", "\u{FBEA}" => "\u{626}\u{627}", "\u{FBEB}" => "\u{626}\u{627}", "\u{FBEC}" => "\u{626}\u{6D5}", - "\u{FBED}" => "\u{626}\u{6D5}", "\u{FBEE}" => "\u{626}\u{648}", "\u{FBEF}" => "\u{626}\u{648}", "\u{FBF0}" => "\u{626}\u{6C7}", - "\u{FBF1}" => "\u{626}\u{6C7}", "\u{FBF2}" => "\u{626}\u{6C6}", "\u{FBF3}" => "\u{626}\u{6C6}", "\u{FBF4}" => "\u{626}\u{6C8}", - "\u{FBF5}" => "\u{626}\u{6C8}", "\u{FBF6}" => "\u{626}\u{6D0}", "\u{FBF7}" => "\u{626}\u{6D0}", "\u{FBF8}" => "\u{626}\u{6D0}", - "\u{FBF9}" => "\u{626}\u{649}", "\u{FBFA}" => "\u{626}\u{649}", "\u{FBFB}" => "\u{626}\u{649}", "\u{FBFC}" => "\u{6CC}", - "\u{FBFD}" => "\u{6CC}", "\u{FBFE}" => "\u{6CC}", "\u{FBFF}" => "\u{6CC}", "\u{FC00}" => "\u{626}\u{62C}", - "\u{FC01}" => "\u{626}\u{62D}", "\u{FC02}" => "\u{626}\u{645}", "\u{FC03}" => "\u{626}\u{649}", "\u{FC04}" => "\u{626}\u{64A}", - "\u{FC05}" => "\u{628}\u{62C}", "\u{FC06}" => "\u{628}\u{62D}", "\u{FC07}" => "\u{628}\u{62E}", "\u{FC08}" => "\u{628}\u{645}", - "\u{FC09}" => "\u{628}\u{649}", "\u{FC0A}" => "\u{628}\u{64A}", "\u{FC0B}" => "\u{62A}\u{62C}", "\u{FC0C}" => "\u{62A}\u{62D}", - "\u{FC0D}" => "\u{62A}\u{62E}", "\u{FC0E}" => "\u{62A}\u{645}", "\u{FC0F}" => "\u{62A}\u{649}", "\u{FC10}" => "\u{62A}\u{64A}", - "\u{FC11}" => "\u{62B}\u{62C}", "\u{FC12}" => "\u{62B}\u{645}", "\u{FC13}" => "\u{62B}\u{649}", "\u{FC14}" => "\u{62B}\u{64A}", - "\u{FC15}" => "\u{62C}\u{62D}", "\u{FC16}" => "\u{62C}\u{645}", "\u{FC17}" => "\u{62D}\u{62C}", "\u{FC18}" => "\u{62D}\u{645}", - "\u{FC19}" => "\u{62E}\u{62C}", "\u{FC1A}" => "\u{62E}\u{62D}", "\u{FC1B}" => "\u{62E}\u{645}", "\u{FC1C}" => "\u{633}\u{62C}", - "\u{FC1D}" => "\u{633}\u{62D}", "\u{FC1E}" => "\u{633}\u{62E}", "\u{FC1F}" => "\u{633}\u{645}", "\u{FC20}" => "\u{635}\u{62D}", - "\u{FC21}" => "\u{635}\u{645}", "\u{FC22}" => "\u{636}\u{62C}", "\u{FC23}" => "\u{636}\u{62D}", "\u{FC24}" => "\u{636}\u{62E}", - "\u{FC25}" => "\u{636}\u{645}", "\u{FC26}" => "\u{637}\u{62D}", "\u{FC27}" => "\u{637}\u{645}", "\u{FC28}" => "\u{638}\u{645}", - "\u{FC29}" => "\u{639}\u{62C}", "\u{FC2A}" => "\u{639}\u{645}", "\u{FC2B}" => "\u{63A}\u{62C}", "\u{FC2C}" => "\u{63A}\u{645}", - "\u{FC2D}" => "\u{641}\u{62C}", "\u{FC2E}" => "\u{641}\u{62D}", "\u{FC2F}" => "\u{641}\u{62E}", "\u{FC30}" => "\u{641}\u{645}", - "\u{FC31}" => "\u{641}\u{649}", "\u{FC32}" => "\u{641}\u{64A}", "\u{FC33}" => "\u{642}\u{62D}", "\u{FC34}" => "\u{642}\u{645}", - "\u{FC35}" => "\u{642}\u{649}", "\u{FC36}" => "\u{642}\u{64A}", "\u{FC37}" => "\u{643}\u{627}", "\u{FC38}" => "\u{643}\u{62C}", - "\u{FC39}" => "\u{643}\u{62D}", "\u{FC3A}" => "\u{643}\u{62E}", "\u{FC3B}" => "\u{643}\u{644}", "\u{FC3C}" => "\u{643}\u{645}", - "\u{FC3D}" => "\u{643}\u{649}", "\u{FC3E}" => "\u{643}\u{64A}", "\u{FC3F}" => "\u{644}\u{62C}", "\u{FC40}" => "\u{644}\u{62D}", - "\u{FC41}" => "\u{644}\u{62E}", "\u{FC42}" => "\u{644}\u{645}", "\u{FC43}" => "\u{644}\u{649}", "\u{FC44}" => "\u{644}\u{64A}", - "\u{FC45}" => "\u{645}\u{62C}", "\u{FC46}" => "\u{645}\u{62D}", "\u{FC47}" => "\u{645}\u{62E}", "\u{FC48}" => "\u{645}\u{645}", - "\u{FC49}" => "\u{645}\u{649}", "\u{FC4A}" => "\u{645}\u{64A}", "\u{FC4B}" => "\u{646}\u{62C}", "\u{FC4C}" => "\u{646}\u{62D}", - "\u{FC4D}" => "\u{646}\u{62E}", "\u{FC4E}" => "\u{646}\u{645}", "\u{FC4F}" => "\u{646}\u{649}", "\u{FC50}" => "\u{646}\u{64A}", - "\u{FC51}" => "\u{647}\u{62C}", "\u{FC52}" => "\u{647}\u{645}", "\u{FC53}" => "\u{647}\u{649}", "\u{FC54}" => "\u{647}\u{64A}", - "\u{FC55}" => "\u{64A}\u{62C}", "\u{FC56}" => "\u{64A}\u{62D}", "\u{FC57}" => "\u{64A}\u{62E}", "\u{FC58}" => "\u{64A}\u{645}", - "\u{FC59}" => "\u{64A}\u{649}", "\u{FC5A}" => "\u{64A}\u{64A}", "\u{FC5B}" => "\u{630}\u{670}", "\u{FC5C}" => "\u{631}\u{670}", - "\u{FC5D}" => "\u{649}\u{670}", "\u{FC5E}" => "\u{20}\u{64C}\u{651}", "\u{FC5F}" => "\u{20}\u{64D}\u{651}", "\u{FC60}" => "\u{20}\u{64E}\u{651}", - "\u{FC61}" => "\u{20}\u{64F}\u{651}", "\u{FC62}" => "\u{20}\u{650}\u{651}", "\u{FC63}" => "\u{20}\u{651}\u{670}", "\u{FC64}" => "\u{626}\u{631}", - "\u{FC65}" => "\u{626}\u{632}", "\u{FC66}" => "\u{626}\u{645}", "\u{FC67}" => "\u{626}\u{646}", "\u{FC68}" => "\u{626}\u{649}", - "\u{FC69}" => "\u{626}\u{64A}", "\u{FC6A}" => "\u{628}\u{631}", "\u{FC6B}" => "\u{628}\u{632}", "\u{FC6C}" => "\u{628}\u{645}", - "\u{FC6D}" => "\u{628}\u{646}", "\u{FC6E}" => "\u{628}\u{649}", "\u{FC6F}" => "\u{628}\u{64A}", "\u{FC70}" => "\u{62A}\u{631}", - "\u{FC71}" => "\u{62A}\u{632}", "\u{FC72}" => "\u{62A}\u{645}", "\u{FC73}" => "\u{62A}\u{646}", "\u{FC74}" => "\u{62A}\u{649}", - "\u{FC75}" => "\u{62A}\u{64A}", "\u{FC76}" => "\u{62B}\u{631}", "\u{FC77}" => "\u{62B}\u{632}", "\u{FC78}" => "\u{62B}\u{645}", - "\u{FC79}" => "\u{62B}\u{646}", "\u{FC7A}" => "\u{62B}\u{649}", "\u{FC7B}" => "\u{62B}\u{64A}", "\u{FC7C}" => "\u{641}\u{649}", - "\u{FC7D}" => "\u{641}\u{64A}", "\u{FC7E}" => "\u{642}\u{649}", "\u{FC7F}" => "\u{642}\u{64A}", "\u{FC80}" => "\u{643}\u{627}", - "\u{FC81}" => "\u{643}\u{644}", "\u{FC82}" => "\u{643}\u{645}", "\u{FC83}" => "\u{643}\u{649}", "\u{FC84}" => "\u{643}\u{64A}", - "\u{FC85}" => "\u{644}\u{645}", "\u{FC86}" => "\u{644}\u{649}", "\u{FC87}" => "\u{644}\u{64A}", "\u{FC88}" => "\u{645}\u{627}", - "\u{FC89}" => "\u{645}\u{645}", "\u{FC8A}" => "\u{646}\u{631}", "\u{FC8B}" => "\u{646}\u{632}", "\u{FC8C}" => "\u{646}\u{645}", - "\u{FC8D}" => "\u{646}\u{646}", "\u{FC8E}" => "\u{646}\u{649}", "\u{FC8F}" => "\u{646}\u{64A}", "\u{FC90}" => "\u{649}\u{670}", - "\u{FC91}" => "\u{64A}\u{631}", "\u{FC92}" => "\u{64A}\u{632}", "\u{FC93}" => "\u{64A}\u{645}", "\u{FC94}" => "\u{64A}\u{646}", - "\u{FC95}" => "\u{64A}\u{649}", "\u{FC96}" => "\u{64A}\u{64A}", "\u{FC97}" => "\u{626}\u{62C}", "\u{FC98}" => "\u{626}\u{62D}", - "\u{FC99}" => "\u{626}\u{62E}", "\u{FC9A}" => "\u{626}\u{645}", "\u{FC9B}" => "\u{626}\u{647}", "\u{FC9C}" => "\u{628}\u{62C}", - "\u{FC9D}" => "\u{628}\u{62D}", "\u{FC9E}" => "\u{628}\u{62E}", "\u{FC9F}" => "\u{628}\u{645}", "\u{FCA0}" => "\u{628}\u{647}", - "\u{FCA1}" => "\u{62A}\u{62C}", "\u{FCA2}" => "\u{62A}\u{62D}", "\u{FCA3}" => "\u{62A}\u{62E}", "\u{FCA4}" => "\u{62A}\u{645}", - "\u{FCA5}" => "\u{62A}\u{647}", "\u{FCA6}" => "\u{62B}\u{645}", "\u{FCA7}" => "\u{62C}\u{62D}", "\u{FCA8}" => "\u{62C}\u{645}", - "\u{FCA9}" => "\u{62D}\u{62C}", "\u{FCAA}" => "\u{62D}\u{645}", "\u{FCAB}" => "\u{62E}\u{62C}", "\u{FCAC}" => "\u{62E}\u{645}", - "\u{FCAD}" => "\u{633}\u{62C}", "\u{FCAE}" => "\u{633}\u{62D}", "\u{FCAF}" => "\u{633}\u{62E}", "\u{FCB0}" => "\u{633}\u{645}", - "\u{FCB1}" => "\u{635}\u{62D}", "\u{FCB2}" => "\u{635}\u{62E}", "\u{FCB3}" => "\u{635}\u{645}", "\u{FCB4}" => "\u{636}\u{62C}", - "\u{FCB5}" => "\u{636}\u{62D}", "\u{FCB6}" => "\u{636}\u{62E}", "\u{FCB7}" => "\u{636}\u{645}", "\u{FCB8}" => "\u{637}\u{62D}", - "\u{FCB9}" => "\u{638}\u{645}", "\u{FCBA}" => "\u{639}\u{62C}", "\u{FCBB}" => "\u{639}\u{645}", "\u{FCBC}" => "\u{63A}\u{62C}", - "\u{FCBD}" => "\u{63A}\u{645}", "\u{FCBE}" => "\u{641}\u{62C}", "\u{FCBF}" => "\u{641}\u{62D}", "\u{FCC0}" => "\u{641}\u{62E}", - "\u{FCC1}" => "\u{641}\u{645}", "\u{FCC2}" => "\u{642}\u{62D}", "\u{FCC3}" => "\u{642}\u{645}", "\u{FCC4}" => "\u{643}\u{62C}", - "\u{FCC5}" => "\u{643}\u{62D}", "\u{FCC6}" => "\u{643}\u{62E}", "\u{FCC7}" => "\u{643}\u{644}", "\u{FCC8}" => "\u{643}\u{645}", - "\u{FCC9}" => "\u{644}\u{62C}", "\u{FCCA}" => "\u{644}\u{62D}", "\u{FCCB}" => "\u{644}\u{62E}", "\u{FCCC}" => "\u{644}\u{645}", - "\u{FCCD}" => "\u{644}\u{647}", "\u{FCCE}" => "\u{645}\u{62C}", "\u{FCCF}" => "\u{645}\u{62D}", "\u{FCD0}" => "\u{645}\u{62E}", - "\u{FCD1}" => "\u{645}\u{645}", "\u{FCD2}" => "\u{646}\u{62C}", "\u{FCD3}" => "\u{646}\u{62D}", "\u{FCD4}" => "\u{646}\u{62E}", - "\u{FCD5}" => "\u{646}\u{645}", "\u{FCD6}" => "\u{646}\u{647}", "\u{FCD7}" => "\u{647}\u{62C}", "\u{FCD8}" => "\u{647}\u{645}", - "\u{FCD9}" => "\u{647}\u{670}", "\u{FCDA}" => "\u{64A}\u{62C}", "\u{FCDB}" => "\u{64A}\u{62D}", "\u{FCDC}" => "\u{64A}\u{62E}", - "\u{FCDD}" => "\u{64A}\u{645}", "\u{FCDE}" => "\u{64A}\u{647}", "\u{FCDF}" => "\u{626}\u{645}", "\u{FCE0}" => "\u{626}\u{647}", - "\u{FCE1}" => "\u{628}\u{645}", "\u{FCE2}" => "\u{628}\u{647}", "\u{FCE3}" => "\u{62A}\u{645}", "\u{FCE4}" => "\u{62A}\u{647}", - "\u{FCE5}" => "\u{62B}\u{645}", "\u{FCE6}" => "\u{62B}\u{647}", "\u{FCE7}" => "\u{633}\u{645}", "\u{FCE8}" => "\u{633}\u{647}", - "\u{FCE9}" => "\u{634}\u{645}", "\u{FCEA}" => "\u{634}\u{647}", "\u{FCEB}" => "\u{643}\u{644}", "\u{FCEC}" => "\u{643}\u{645}", - "\u{FCED}" => "\u{644}\u{645}", "\u{FCEE}" => "\u{646}\u{645}", "\u{FCEF}" => "\u{646}\u{647}", "\u{FCF0}" => "\u{64A}\u{645}", - "\u{FCF1}" => "\u{64A}\u{647}", "\u{FCF2}" => "\u{640}\u{64E}\u{651}", "\u{FCF3}" => "\u{640}\u{64F}\u{651}", "\u{FCF4}" => "\u{640}\u{650}\u{651}", - "\u{FCF5}" => "\u{637}\u{649}", "\u{FCF6}" => "\u{637}\u{64A}", "\u{FCF7}" => "\u{639}\u{649}", "\u{FCF8}" => "\u{639}\u{64A}", - "\u{FCF9}" => "\u{63A}\u{649}", "\u{FCFA}" => "\u{63A}\u{64A}", "\u{FCFB}" => "\u{633}\u{649}", "\u{FCFC}" => "\u{633}\u{64A}", - "\u{FCFD}" => "\u{634}\u{649}", "\u{FCFE}" => "\u{634}\u{64A}", "\u{FCFF}" => "\u{62D}\u{649}", "\u{FD00}" => "\u{62D}\u{64A}", - "\u{FD01}" => "\u{62C}\u{649}", "\u{FD02}" => "\u{62C}\u{64A}", "\u{FD03}" => "\u{62E}\u{649}", "\u{FD04}" => "\u{62E}\u{64A}", - "\u{FD05}" => "\u{635}\u{649}", "\u{FD06}" => "\u{635}\u{64A}", "\u{FD07}" => "\u{636}\u{649}", "\u{FD08}" => "\u{636}\u{64A}", - "\u{FD09}" => "\u{634}\u{62C}", "\u{FD0A}" => "\u{634}\u{62D}", "\u{FD0B}" => "\u{634}\u{62E}", "\u{FD0C}" => "\u{634}\u{645}", - "\u{FD0D}" => "\u{634}\u{631}", "\u{FD0E}" => "\u{633}\u{631}", "\u{FD0F}" => "\u{635}\u{631}", "\u{FD10}" => "\u{636}\u{631}", - "\u{FD11}" => "\u{637}\u{649}", "\u{FD12}" => "\u{637}\u{64A}", "\u{FD13}" => "\u{639}\u{649}", "\u{FD14}" => "\u{639}\u{64A}", - "\u{FD15}" => "\u{63A}\u{649}", "\u{FD16}" => "\u{63A}\u{64A}", "\u{FD17}" => "\u{633}\u{649}", "\u{FD18}" => "\u{633}\u{64A}", - "\u{FD19}" => "\u{634}\u{649}", "\u{FD1A}" => "\u{634}\u{64A}", "\u{FD1B}" => "\u{62D}\u{649}", "\u{FD1C}" => "\u{62D}\u{64A}", - "\u{FD1D}" => "\u{62C}\u{649}", "\u{FD1E}" => "\u{62C}\u{64A}", "\u{FD1F}" => "\u{62E}\u{649}", "\u{FD20}" => "\u{62E}\u{64A}", - "\u{FD21}" => "\u{635}\u{649}", "\u{FD22}" => "\u{635}\u{64A}", "\u{FD23}" => "\u{636}\u{649}", "\u{FD24}" => "\u{636}\u{64A}", - "\u{FD25}" => "\u{634}\u{62C}", "\u{FD26}" => "\u{634}\u{62D}", "\u{FD27}" => "\u{634}\u{62E}", "\u{FD28}" => "\u{634}\u{645}", - "\u{FD29}" => "\u{634}\u{631}", "\u{FD2A}" => "\u{633}\u{631}", "\u{FD2B}" => "\u{635}\u{631}", "\u{FD2C}" => "\u{636}\u{631}", - "\u{FD2D}" => "\u{634}\u{62C}", "\u{FD2E}" => "\u{634}\u{62D}", "\u{FD2F}" => "\u{634}\u{62E}", "\u{FD30}" => "\u{634}\u{645}", - "\u{FD31}" => "\u{633}\u{647}", "\u{FD32}" => "\u{634}\u{647}", "\u{FD33}" => "\u{637}\u{645}", "\u{FD34}" => "\u{633}\u{62C}", - "\u{FD35}" => "\u{633}\u{62D}", "\u{FD36}" => "\u{633}\u{62E}", "\u{FD37}" => "\u{634}\u{62C}", "\u{FD38}" => "\u{634}\u{62D}", - "\u{FD39}" => "\u{634}\u{62E}", "\u{FD3A}" => "\u{637}\u{645}", "\u{FD3B}" => "\u{638}\u{645}", "\u{FD3C}" => "\u{627}\u{64B}", - "\u{FD3D}" => "\u{627}\u{64B}", "\u{FD50}" => "\u{62A}\u{62C}\u{645}", "\u{FD51}" => "\u{62A}\u{62D}\u{62C}", "\u{FD52}" => "\u{62A}\u{62D}\u{62C}", - "\u{FD53}" => "\u{62A}\u{62D}\u{645}", "\u{FD54}" => "\u{62A}\u{62E}\u{645}", "\u{FD55}" => "\u{62A}\u{645}\u{62C}", "\u{FD56}" => "\u{62A}\u{645}\u{62D}", - "\u{FD57}" => "\u{62A}\u{645}\u{62E}", "\u{FD58}" => "\u{62C}\u{645}\u{62D}", "\u{FD59}" => "\u{62C}\u{645}\u{62D}", "\u{FD5A}" => "\u{62D}\u{645}\u{64A}", - "\u{FD5B}" => "\u{62D}\u{645}\u{649}", "\u{FD5C}" => "\u{633}\u{62D}\u{62C}", "\u{FD5D}" => "\u{633}\u{62C}\u{62D}", "\u{FD5E}" => "\u{633}\u{62C}\u{649}", - "\u{FD5F}" => "\u{633}\u{645}\u{62D}", "\u{FD60}" => "\u{633}\u{645}\u{62D}", "\u{FD61}" => "\u{633}\u{645}\u{62C}", "\u{FD62}" => "\u{633}\u{645}\u{645}", - "\u{FD63}" => "\u{633}\u{645}\u{645}", "\u{FD64}" => "\u{635}\u{62D}\u{62D}", "\u{FD65}" => "\u{635}\u{62D}\u{62D}", "\u{FD66}" => "\u{635}\u{645}\u{645}", - "\u{FD67}" => "\u{634}\u{62D}\u{645}", "\u{FD68}" => "\u{634}\u{62D}\u{645}", "\u{FD69}" => "\u{634}\u{62C}\u{64A}", "\u{FD6A}" => "\u{634}\u{645}\u{62E}", - "\u{FD6B}" => "\u{634}\u{645}\u{62E}", "\u{FD6C}" => "\u{634}\u{645}\u{645}", "\u{FD6D}" => "\u{634}\u{645}\u{645}", "\u{FD6E}" => "\u{636}\u{62D}\u{649}", - "\u{FD6F}" => "\u{636}\u{62E}\u{645}", "\u{FD70}" => "\u{636}\u{62E}\u{645}", "\u{FD71}" => "\u{637}\u{645}\u{62D}", "\u{FD72}" => "\u{637}\u{645}\u{62D}", - "\u{FD73}" => "\u{637}\u{645}\u{645}", "\u{FD74}" => "\u{637}\u{645}\u{64A}", "\u{FD75}" => "\u{639}\u{62C}\u{645}", "\u{FD76}" => "\u{639}\u{645}\u{645}", - "\u{FD77}" => "\u{639}\u{645}\u{645}", "\u{FD78}" => "\u{639}\u{645}\u{649}", "\u{FD79}" => "\u{63A}\u{645}\u{645}", "\u{FD7A}" => "\u{63A}\u{645}\u{64A}", - "\u{FD7B}" => "\u{63A}\u{645}\u{649}", "\u{FD7C}" => "\u{641}\u{62E}\u{645}", "\u{FD7D}" => "\u{641}\u{62E}\u{645}", "\u{FD7E}" => "\u{642}\u{645}\u{62D}", - "\u{FD7F}" => "\u{642}\u{645}\u{645}", "\u{FD80}" => "\u{644}\u{62D}\u{645}", "\u{FD81}" => "\u{644}\u{62D}\u{64A}", "\u{FD82}" => "\u{644}\u{62D}\u{649}", - "\u{FD83}" => "\u{644}\u{62C}\u{62C}", "\u{FD84}" => "\u{644}\u{62C}\u{62C}", "\u{FD85}" => "\u{644}\u{62E}\u{645}", "\u{FD86}" => "\u{644}\u{62E}\u{645}", - "\u{FD87}" => "\u{644}\u{645}\u{62D}", "\u{FD88}" => "\u{644}\u{645}\u{62D}", "\u{FD89}" => "\u{645}\u{62D}\u{62C}", "\u{FD8A}" => "\u{645}\u{62D}\u{645}", - "\u{FD8B}" => "\u{645}\u{62D}\u{64A}", "\u{FD8C}" => "\u{645}\u{62C}\u{62D}", "\u{FD8D}" => "\u{645}\u{62C}\u{645}", "\u{FD8E}" => "\u{645}\u{62E}\u{62C}", - "\u{FD8F}" => "\u{645}\u{62E}\u{645}", "\u{FD92}" => "\u{645}\u{62C}\u{62E}", "\u{FD93}" => "\u{647}\u{645}\u{62C}", "\u{FD94}" => "\u{647}\u{645}\u{645}", - "\u{FD95}" => "\u{646}\u{62D}\u{645}", "\u{FD96}" => "\u{646}\u{62D}\u{649}", "\u{FD97}" => "\u{646}\u{62C}\u{645}", "\u{FD98}" => "\u{646}\u{62C}\u{645}", - "\u{FD99}" => "\u{646}\u{62C}\u{649}", "\u{FD9A}" => "\u{646}\u{645}\u{64A}", "\u{FD9B}" => "\u{646}\u{645}\u{649}", "\u{FD9C}" => "\u{64A}\u{645}\u{645}", - "\u{FD9D}" => "\u{64A}\u{645}\u{645}", "\u{FD9E}" => "\u{628}\u{62E}\u{64A}", "\u{FD9F}" => "\u{62A}\u{62C}\u{64A}", "\u{FDA0}" => "\u{62A}\u{62C}\u{649}", - "\u{FDA1}" => "\u{62A}\u{62E}\u{64A}", "\u{FDA2}" => "\u{62A}\u{62E}\u{649}", "\u{FDA3}" => "\u{62A}\u{645}\u{64A}", "\u{FDA4}" => "\u{62A}\u{645}\u{649}", - "\u{FDA5}" => "\u{62C}\u{645}\u{64A}", "\u{FDA6}" => "\u{62C}\u{62D}\u{649}", "\u{FDA7}" => "\u{62C}\u{645}\u{649}", "\u{FDA8}" => "\u{633}\u{62E}\u{649}", - "\u{FDA9}" => "\u{635}\u{62D}\u{64A}", "\u{FDAA}" => "\u{634}\u{62D}\u{64A}", "\u{FDAB}" => "\u{636}\u{62D}\u{64A}", "\u{FDAC}" => "\u{644}\u{62C}\u{64A}", - "\u{FDAD}" => "\u{644}\u{645}\u{64A}", "\u{FDAE}" => "\u{64A}\u{62D}\u{64A}", "\u{FDAF}" => "\u{64A}\u{62C}\u{64A}", "\u{FDB0}" => "\u{64A}\u{645}\u{64A}", - "\u{FDB1}" => "\u{645}\u{645}\u{64A}", "\u{FDB2}" => "\u{642}\u{645}\u{64A}", "\u{FDB3}" => "\u{646}\u{62D}\u{64A}", "\u{FDB4}" => "\u{642}\u{645}\u{62D}", - "\u{FDB5}" => "\u{644}\u{62D}\u{645}", "\u{FDB6}" => "\u{639}\u{645}\u{64A}", "\u{FDB7}" => "\u{643}\u{645}\u{64A}", "\u{FDB8}" => "\u{646}\u{62C}\u{62D}", - "\u{FDB9}" => "\u{645}\u{62E}\u{64A}", "\u{FDBA}" => "\u{644}\u{62C}\u{645}", "\u{FDBB}" => "\u{643}\u{645}\u{645}", "\u{FDBC}" => "\u{644}\u{62C}\u{645}", - "\u{FDBD}" => "\u{646}\u{62C}\u{62D}", "\u{FDBE}" => "\u{62C}\u{62D}\u{64A}", "\u{FDBF}" => "\u{62D}\u{62C}\u{64A}", "\u{FDC0}" => "\u{645}\u{62C}\u{64A}", - "\u{FDC1}" => "\u{641}\u{645}\u{64A}", "\u{FDC2}" => "\u{628}\u{62D}\u{64A}", "\u{FDC3}" => "\u{643}\u{645}\u{645}", "\u{FDC4}" => "\u{639}\u{62C}\u{645}", - "\u{FDC5}" => "\u{635}\u{645}\u{645}", "\u{FDC6}" => "\u{633}\u{62E}\u{64A}", "\u{FDC7}" => "\u{646}\u{62C}\u{64A}", "\u{FDF0}" => "\u{635}\u{644}\u{6D2}", - "\u{FDF1}" => "\u{642}\u{644}\u{6D2}", "\u{FDF2}" => "\u{627}\u{644}\u{644}\u{647}", "\u{FDF3}" => "\u{627}\u{643}\u{628}\u{631}", "\u{FDF4}" => "\u{645}\u{62D}\u{645}\u{62F}", - "\u{FDF5}" => "\u{635}\u{644}\u{639}\u{645}", "\u{FDF6}" => "\u{631}\u{633}\u{648}\u{644}", "\u{FDF7}" => "\u{639}\u{644}\u{64A}\u{647}", "\u{FDF8}" => "\u{648}\u{633}\u{644}\u{645}", - "\u{FDF9}" => "\u{635}\u{644}\u{649}", "\u{FDFA}" => "\u{635}\u{644}\u{649}\u{20}\u{627}\u{644}\u{644}\u{647}\u{20}\u{639}\u{644}\u{64A}\u{647}\u{20}\u{648}\u{633}\u{644}\u{645}", "\u{FDFB}" => "\u{62C}\u{644}\u{20}\u{62C}\u{644}\u{627}\u{644}\u{647}", "\u{FDFC}" => "\u{631}\u{6CC}\u{627}\u{644}", - "\u{FE00}" => "", "\u{FE01}" => "", "\u{FE02}" => "", "\u{FE03}" => "", - "\u{FE04}" => "", "\u{FE05}" => "", "\u{FE06}" => "", "\u{FE07}" => "", - "\u{FE08}" => "", "\u{FE09}" => "", "\u{FE0A}" => "", "\u{FE0B}" => "", - "\u{FE0C}" => "", "\u{FE0D}" => "", "\u{FE0E}" => "", "\u{FE0F}" => "", - "\u{FE10}" => "\u{2C}", "\u{FE11}" => "\u{3001}", "\u{FE13}" => "\u{3A}", "\u{FE14}" => "\u{3B}", - "\u{FE15}" => "\u{21}", "\u{FE16}" => "\u{3F}", "\u{FE17}" => "\u{3016}", "\u{FE18}" => "\u{3017}", - "\u{FE31}" => "\u{2014}", "\u{FE32}" => "\u{2013}", "\u{FE33}" => "\u{5F}", "\u{FE34}" => "\u{5F}", - "\u{FE35}" => "\u{28}", "\u{FE36}" => "\u{29}", "\u{FE37}" => "\u{7B}", "\u{FE38}" => "\u{7D}", - "\u{FE39}" => "\u{3014}", "\u{FE3A}" => "\u{3015}", "\u{FE3B}" => "\u{3010}", "\u{FE3C}" => "\u{3011}", - "\u{FE3D}" => "\u{300A}", "\u{FE3E}" => "\u{300B}", "\u{FE3F}" => "\u{3008}", "\u{FE40}" => "\u{3009}", - "\u{FE41}" => "\u{300C}", "\u{FE42}" => "\u{300D}", "\u{FE43}" => "\u{300E}", "\u{FE44}" => "\u{300F}", - "\u{FE47}" => "\u{5B}", "\u{FE48}" => "\u{5D}", "\u{FE49}" => "\u{20}\u{305}", "\u{FE4A}" => "\u{20}\u{305}", - "\u{FE4B}" => "\u{20}\u{305}", "\u{FE4C}" => "\u{20}\u{305}", "\u{FE4D}" => "\u{5F}", "\u{FE4E}" => "\u{5F}", - "\u{FE4F}" => "\u{5F}", "\u{FE50}" => "\u{2C}", "\u{FE51}" => "\u{3001}", "\u{FE54}" => "\u{3B}", - "\u{FE55}" => "\u{3A}", "\u{FE56}" => "\u{3F}", "\u{FE57}" => "\u{21}", "\u{FE58}" => "\u{2014}", - "\u{FE59}" => "\u{28}", "\u{FE5A}" => "\u{29}", "\u{FE5B}" => "\u{7B}", "\u{FE5C}" => "\u{7D}", - "\u{FE5D}" => "\u{3014}", "\u{FE5E}" => "\u{3015}", "\u{FE5F}" => "\u{23}", "\u{FE60}" => "\u{26}", - "\u{FE61}" => "\u{2A}", "\u{FE62}" => "\u{2B}", "\u{FE63}" => "\u{2D}", "\u{FE64}" => "\u{3C}", - "\u{FE65}" => "\u{3E}", "\u{FE66}" => "\u{3D}", "\u{FE68}" => "\u{5C}", "\u{FE69}" => "\u{24}", - "\u{FE6A}" => "\u{25}", "\u{FE6B}" => "\u{40}", "\u{FE70}" => "\u{20}\u{64B}", "\u{FE71}" => "\u{640}\u{64B}", - "\u{FE72}" => "\u{20}\u{64C}", "\u{FE74}" => "\u{20}\u{64D}", "\u{FE76}" => "\u{20}\u{64E}", "\u{FE77}" => "\u{640}\u{64E}", - "\u{FE78}" => "\u{20}\u{64F}", "\u{FE79}" => "\u{640}\u{64F}", "\u{FE7A}" => "\u{20}\u{650}", "\u{FE7B}" => "\u{640}\u{650}", - "\u{FE7C}" => "\u{20}\u{651}", "\u{FE7D}" => "\u{640}\u{651}", "\u{FE7E}" => "\u{20}\u{652}", "\u{FE7F}" => "\u{640}\u{652}", - "\u{FE80}" => "\u{621}", "\u{FE81}" => "\u{622}", "\u{FE82}" => "\u{622}", "\u{FE83}" => "\u{623}", - "\u{FE84}" => "\u{623}", "\u{FE85}" => "\u{624}", "\u{FE86}" => "\u{624}", "\u{FE87}" => "\u{625}", - "\u{FE88}" => "\u{625}", "\u{FE89}" => "\u{626}", "\u{FE8A}" => "\u{626}", "\u{FE8B}" => "\u{626}", - "\u{FE8C}" => "\u{626}", "\u{FE8D}" => "\u{627}", "\u{FE8E}" => "\u{627}", "\u{FE8F}" => "\u{628}", - "\u{FE90}" => "\u{628}", "\u{FE91}" => "\u{628}", "\u{FE92}" => "\u{628}", "\u{FE93}" => "\u{629}", - "\u{FE94}" => "\u{629}", "\u{FE95}" => "\u{62A}", "\u{FE96}" => "\u{62A}", "\u{FE97}" => "\u{62A}", - "\u{FE98}" => "\u{62A}", "\u{FE99}" => "\u{62B}", "\u{FE9A}" => "\u{62B}", "\u{FE9B}" => "\u{62B}", - "\u{FE9C}" => "\u{62B}", "\u{FE9D}" => "\u{62C}", "\u{FE9E}" => "\u{62C}", "\u{FE9F}" => "\u{62C}", - "\u{FEA0}" => "\u{62C}", "\u{FEA1}" => "\u{62D}", "\u{FEA2}" => "\u{62D}", "\u{FEA3}" => "\u{62D}", - "\u{FEA4}" => "\u{62D}", "\u{FEA5}" => "\u{62E}", "\u{FEA6}" => "\u{62E}", "\u{FEA7}" => "\u{62E}", - "\u{FEA8}" => "\u{62E}", "\u{FEA9}" => "\u{62F}", "\u{FEAA}" => "\u{62F}", "\u{FEAB}" => "\u{630}", - "\u{FEAC}" => "\u{630}", "\u{FEAD}" => "\u{631}", "\u{FEAE}" => "\u{631}", "\u{FEAF}" => "\u{632}", - "\u{FEB0}" => "\u{632}", "\u{FEB1}" => "\u{633}", "\u{FEB2}" => "\u{633}", "\u{FEB3}" => "\u{633}", - "\u{FEB4}" => "\u{633}", "\u{FEB5}" => "\u{634}", "\u{FEB6}" => "\u{634}", "\u{FEB7}" => "\u{634}", - "\u{FEB8}" => "\u{634}", "\u{FEB9}" => "\u{635}", "\u{FEBA}" => "\u{635}", "\u{FEBB}" => "\u{635}", - "\u{FEBC}" => "\u{635}", "\u{FEBD}" => "\u{636}", "\u{FEBE}" => "\u{636}", "\u{FEBF}" => "\u{636}", - "\u{FEC0}" => "\u{636}", "\u{FEC1}" => "\u{637}", "\u{FEC2}" => "\u{637}", "\u{FEC3}" => "\u{637}", - "\u{FEC4}" => "\u{637}", "\u{FEC5}" => "\u{638}", "\u{FEC6}" => "\u{638}", "\u{FEC7}" => "\u{638}", - "\u{FEC8}" => "\u{638}", "\u{FEC9}" => "\u{639}", "\u{FECA}" => "\u{639}", "\u{FECB}" => "\u{639}", - "\u{FECC}" => "\u{639}", "\u{FECD}" => "\u{63A}", "\u{FECE}" => "\u{63A}", "\u{FECF}" => "\u{63A}", - "\u{FED0}" => "\u{63A}", "\u{FED1}" => "\u{641}", "\u{FED2}" => "\u{641}", "\u{FED3}" => "\u{641}", - "\u{FED4}" => "\u{641}", "\u{FED5}" => "\u{642}", "\u{FED6}" => "\u{642}", "\u{FED7}" => "\u{642}", - "\u{FED8}" => "\u{642}", "\u{FED9}" => "\u{643}", "\u{FEDA}" => "\u{643}", "\u{FEDB}" => "\u{643}", - "\u{FEDC}" => "\u{643}", "\u{FEDD}" => "\u{644}", "\u{FEDE}" => "\u{644}", "\u{FEDF}" => "\u{644}", - "\u{FEE0}" => "\u{644}", "\u{FEE1}" => "\u{645}", "\u{FEE2}" => "\u{645}", "\u{FEE3}" => "\u{645}", - "\u{FEE4}" => "\u{645}", "\u{FEE5}" => "\u{646}", "\u{FEE6}" => "\u{646}", "\u{FEE7}" => "\u{646}", - "\u{FEE8}" => "\u{646}", "\u{FEE9}" => "\u{647}", "\u{FEEA}" => "\u{647}", "\u{FEEB}" => "\u{647}", - "\u{FEEC}" => "\u{647}", "\u{FEED}" => "\u{648}", "\u{FEEE}" => "\u{648}", "\u{FEEF}" => "\u{649}", - "\u{FEF0}" => "\u{649}", "\u{FEF1}" => "\u{64A}", "\u{FEF2}" => "\u{64A}", "\u{FEF3}" => "\u{64A}", - "\u{FEF4}" => "\u{64A}", "\u{FEF5}" => "\u{644}\u{622}", "\u{FEF6}" => "\u{644}\u{622}", "\u{FEF7}" => "\u{644}\u{623}", - "\u{FEF8}" => "\u{644}\u{623}", "\u{FEF9}" => "\u{644}\u{625}", "\u{FEFA}" => "\u{644}\u{625}", "\u{FEFB}" => "\u{644}\u{627}", - "\u{FEFC}" => "\u{644}\u{627}", "\u{FEFF}" => "", "\u{FF01}" => "\u{21}", "\u{FF02}" => "\u{22}", - "\u{FF03}" => "\u{23}", "\u{FF04}" => "\u{24}", "\u{FF05}" => "\u{25}", "\u{FF06}" => "\u{26}", - "\u{FF07}" => "\u{27}", "\u{FF08}" => "\u{28}", "\u{FF09}" => "\u{29}", "\u{FF0A}" => "\u{2A}", - "\u{FF0B}" => "\u{2B}", "\u{FF0C}" => "\u{2C}", "\u{FF0D}" => "\u{2D}", "\u{FF0E}" => "\u{2E}", - "\u{FF0F}" => "\u{2F}", "\u{FF10}" => "\u{30}", "\u{FF11}" => "\u{31}", "\u{FF12}" => "\u{32}", - "\u{FF13}" => "\u{33}", "\u{FF14}" => "\u{34}", "\u{FF15}" => "\u{35}", "\u{FF16}" => "\u{36}", - "\u{FF17}" => "\u{37}", "\u{FF18}" => "\u{38}", "\u{FF19}" => "\u{39}", "\u{FF1A}" => "\u{3A}", - "\u{FF1B}" => "\u{3B}", "\u{FF1C}" => "\u{3C}", "\u{FF1D}" => "\u{3D}", "\u{FF1E}" => "\u{3E}", - "\u{FF1F}" => "\u{3F}", "\u{FF20}" => "\u{40}", "\u{FF21}" => "\u{61}", "\u{FF22}" => "\u{62}", - "\u{FF23}" => "\u{63}", "\u{FF24}" => "\u{64}", "\u{FF25}" => "\u{65}", "\u{FF26}" => "\u{66}", - "\u{FF27}" => "\u{67}", "\u{FF28}" => "\u{68}", "\u{FF29}" => "\u{69}", "\u{FF2A}" => "\u{6A}", - "\u{FF2B}" => "\u{6B}", "\u{FF2C}" => "\u{6C}", "\u{FF2D}" => "\u{6D}", "\u{FF2E}" => "\u{6E}", - "\u{FF2F}" => "\u{6F}", "\u{FF30}" => "\u{70}", "\u{FF31}" => "\u{71}", "\u{FF32}" => "\u{72}", - "\u{FF33}" => "\u{73}", "\u{FF34}" => "\u{74}", "\u{FF35}" => "\u{75}", "\u{FF36}" => "\u{76}", - "\u{FF37}" => "\u{77}", "\u{FF38}" => "\u{78}", "\u{FF39}" => "\u{79}", "\u{FF3A}" => "\u{7A}", - "\u{FF3B}" => "\u{5B}", "\u{FF3C}" => "\u{5C}", "\u{FF3D}" => "\u{5D}", "\u{FF3E}" => "\u{5E}", - "\u{FF3F}" => "\u{5F}", "\u{FF40}" => "\u{60}", "\u{FF41}" => "\u{61}", "\u{FF42}" => "\u{62}", - "\u{FF43}" => "\u{63}", "\u{FF44}" => "\u{64}", "\u{FF45}" => "\u{65}", "\u{FF46}" => "\u{66}", - "\u{FF47}" => "\u{67}", "\u{FF48}" => "\u{68}", "\u{FF49}" => "\u{69}", "\u{FF4A}" => "\u{6A}", - "\u{FF4B}" => "\u{6B}", "\u{FF4C}" => "\u{6C}", "\u{FF4D}" => "\u{6D}", "\u{FF4E}" => "\u{6E}", - "\u{FF4F}" => "\u{6F}", "\u{FF50}" => "\u{70}", "\u{FF51}" => "\u{71}", "\u{FF52}" => "\u{72}", - "\u{FF53}" => "\u{73}", "\u{FF54}" => "\u{74}", "\u{FF55}" => "\u{75}", "\u{FF56}" => "\u{76}", - "\u{FF57}" => "\u{77}", "\u{FF58}" => "\u{78}", "\u{FF59}" => "\u{79}", "\u{FF5A}" => "\u{7A}", - "\u{FF5B}" => "\u{7B}", "\u{FF5C}" => "\u{7C}", "\u{FF5D}" => "\u{7D}", "\u{FF5E}" => "\u{7E}", - "\u{FF5F}" => "\u{2985}", "\u{FF60}" => "\u{2986}", "\u{FF61}" => "\u{2E}", "\u{FF62}" => "\u{300C}", - "\u{FF63}" => "\u{300D}", "\u{FF64}" => "\u{3001}", "\u{FF65}" => "\u{30FB}", "\u{FF66}" => "\u{30F2}", - "\u{FF67}" => "\u{30A1}", "\u{FF68}" => "\u{30A3}", "\u{FF69}" => "\u{30A5}", "\u{FF6A}" => "\u{30A7}", - "\u{FF6B}" => "\u{30A9}", "\u{FF6C}" => "\u{30E3}", "\u{FF6D}" => "\u{30E5}", "\u{FF6E}" => "\u{30E7}", - "\u{FF6F}" => "\u{30C3}", "\u{FF70}" => "\u{30FC}", "\u{FF71}" => "\u{30A2}", "\u{FF72}" => "\u{30A4}", - "\u{FF73}" => "\u{30A6}", "\u{FF74}" => "\u{30A8}", "\u{FF75}" => "\u{30AA}", "\u{FF76}" => "\u{30AB}", - "\u{FF77}" => "\u{30AD}", "\u{FF78}" => "\u{30AF}", "\u{FF79}" => "\u{30B1}", "\u{FF7A}" => "\u{30B3}", - "\u{FF7B}" => "\u{30B5}", "\u{FF7C}" => "\u{30B7}", "\u{FF7D}" => "\u{30B9}", "\u{FF7E}" => "\u{30BB}", - "\u{FF7F}" => "\u{30BD}", "\u{FF80}" => "\u{30BF}", "\u{FF81}" => "\u{30C1}", "\u{FF82}" => "\u{30C4}", - "\u{FF83}" => "\u{30C6}", "\u{FF84}" => "\u{30C8}", "\u{FF85}" => "\u{30CA}", "\u{FF86}" => "\u{30CB}", - "\u{FF87}" => "\u{30CC}", "\u{FF88}" => "\u{30CD}", "\u{FF89}" => "\u{30CE}", "\u{FF8A}" => "\u{30CF}", - "\u{FF8B}" => "\u{30D2}", "\u{FF8C}" => "\u{30D5}", "\u{FF8D}" => "\u{30D8}", "\u{FF8E}" => "\u{30DB}", - "\u{FF8F}" => "\u{30DE}", "\u{FF90}" => "\u{30DF}", "\u{FF91}" => "\u{30E0}", "\u{FF92}" => "\u{30E1}", - "\u{FF93}" => "\u{30E2}", "\u{FF94}" => "\u{30E4}", "\u{FF95}" => "\u{30E6}", "\u{FF96}" => "\u{30E8}", - "\u{FF97}" => "\u{30E9}", "\u{FF98}" => "\u{30EA}", "\u{FF99}" => "\u{30EB}", "\u{FF9A}" => "\u{30EC}", - "\u{FF9B}" => "\u{30ED}", "\u{FF9C}" => "\u{30EF}", "\u{FF9D}" => "\u{30F3}", "\u{FF9E}" => "\u{3099}", - "\u{FF9F}" => "\u{309A}", "\u{FFA0}" => "", "\u{FFA1}" => "\u{1100}", "\u{FFA2}" => "\u{1101}", - "\u{FFA3}" => "\u{11AA}", "\u{FFA4}" => "\u{1102}", "\u{FFA5}" => "\u{11AC}", "\u{FFA6}" => "\u{11AD}", - "\u{FFA7}" => "\u{1103}", "\u{FFA8}" => "\u{1104}", "\u{FFA9}" => "\u{1105}", "\u{FFAA}" => "\u{11B0}", - "\u{FFAB}" => "\u{11B1}", "\u{FFAC}" => "\u{11B2}", "\u{FFAD}" => "\u{11B3}", "\u{FFAE}" => "\u{11B4}", - "\u{FFAF}" => "\u{11B5}", "\u{FFB0}" => "\u{111A}", "\u{FFB1}" => "\u{1106}", "\u{FFB2}" => "\u{1107}", - "\u{FFB3}" => "\u{1108}", "\u{FFB4}" => "\u{1121}", "\u{FFB5}" => "\u{1109}", "\u{FFB6}" => "\u{110A}", - "\u{FFB7}" => "\u{110B}", "\u{FFB8}" => "\u{110C}", "\u{FFB9}" => "\u{110D}", "\u{FFBA}" => "\u{110E}", - "\u{FFBB}" => "\u{110F}", "\u{FFBC}" => "\u{1110}", "\u{FFBD}" => "\u{1111}", "\u{FFBE}" => "\u{1112}", - "\u{FFC2}" => "\u{1161}", "\u{FFC3}" => "\u{1162}", "\u{FFC4}" => "\u{1163}", "\u{FFC5}" => "\u{1164}", - "\u{FFC6}" => "\u{1165}", "\u{FFC7}" => "\u{1166}", "\u{FFCA}" => "\u{1167}", "\u{FFCB}" => "\u{1168}", - "\u{FFCC}" => "\u{1169}", "\u{FFCD}" => "\u{116A}", "\u{FFCE}" => "\u{116B}", "\u{FFCF}" => "\u{116C}", - "\u{FFD2}" => "\u{116D}", "\u{FFD3}" => "\u{116E}", "\u{FFD4}" => "\u{116F}", "\u{FFD5}" => "\u{1170}", - "\u{FFD6}" => "\u{1171}", "\u{FFD7}" => "\u{1172}", "\u{FFDA}" => "\u{1173}", "\u{FFDB}" => "\u{1174}", - "\u{FFDC}" => "\u{1175}", "\u{FFE0}" => "\u{A2}", "\u{FFE1}" => "\u{A3}", "\u{FFE2}" => "\u{AC}", - "\u{FFE3}" => "\u{20}\u{304}", "\u{FFE4}" => "\u{A6}", "\u{FFE5}" => "\u{A5}", "\u{FFE6}" => "\u{20A9}", - "\u{FFE8}" => "\u{2502}", "\u{FFE9}" => "\u{2190}", "\u{FFEA}" => "\u{2191}", "\u{FFEB}" => "\u{2192}", - "\u{FFEC}" => "\u{2193}", "\u{FFED}" => "\u{25A0}", "\u{FFEE}" => "\u{25CB}", "\u{10400}" => "\u{10428}", - "\u{10401}" => "\u{10429}", "\u{10402}" => "\u{1042A}", "\u{10403}" => "\u{1042B}", "\u{10404}" => "\u{1042C}", - "\u{10405}" => "\u{1042D}", "\u{10406}" => "\u{1042E}", "\u{10407}" => "\u{1042F}", "\u{10408}" => "\u{10430}", - "\u{10409}" => "\u{10431}", "\u{1040A}" => "\u{10432}", "\u{1040B}" => "\u{10433}", "\u{1040C}" => "\u{10434}", - "\u{1040D}" => "\u{10435}", "\u{1040E}" => "\u{10436}", "\u{1040F}" => "\u{10437}", "\u{10410}" => "\u{10438}", - "\u{10411}" => "\u{10439}", "\u{10412}" => "\u{1043A}", "\u{10413}" => "\u{1043B}", "\u{10414}" => "\u{1043C}", - "\u{10415}" => "\u{1043D}", "\u{10416}" => "\u{1043E}", "\u{10417}" => "\u{1043F}", "\u{10418}" => "\u{10440}", - "\u{10419}" => "\u{10441}", "\u{1041A}" => "\u{10442}", "\u{1041B}" => "\u{10443}", "\u{1041C}" => "\u{10444}", - "\u{1041D}" => "\u{10445}", "\u{1041E}" => "\u{10446}", "\u{1041F}" => "\u{10447}", "\u{10420}" => "\u{10448}", - "\u{10421}" => "\u{10449}", "\u{10422}" => "\u{1044A}", "\u{10423}" => "\u{1044B}", "\u{10424}" => "\u{1044C}", - "\u{10425}" => "\u{1044D}", "\u{10426}" => "\u{1044E}", "\u{10427}" => "\u{1044F}", "\u{104B0}" => "\u{104D8}", - "\u{104B1}" => "\u{104D9}", "\u{104B2}" => "\u{104DA}", "\u{104B3}" => "\u{104DB}", "\u{104B4}" => "\u{104DC}", - "\u{104B5}" => "\u{104DD}", "\u{104B6}" => "\u{104DE}", "\u{104B7}" => "\u{104DF}", "\u{104B8}" => "\u{104E0}", - "\u{104B9}" => "\u{104E1}", "\u{104BA}" => "\u{104E2}", "\u{104BB}" => "\u{104E3}", "\u{104BC}" => "\u{104E4}", - "\u{104BD}" => "\u{104E5}", "\u{104BE}" => "\u{104E6}", "\u{104BF}" => "\u{104E7}", "\u{104C0}" => "\u{104E8}", - "\u{104C1}" => "\u{104E9}", "\u{104C2}" => "\u{104EA}", "\u{104C3}" => "\u{104EB}", "\u{104C4}" => "\u{104EC}", - "\u{104C5}" => "\u{104ED}", "\u{104C6}" => "\u{104EE}", "\u{104C7}" => "\u{104EF}", "\u{104C8}" => "\u{104F0}", - "\u{104C9}" => "\u{104F1}", "\u{104CA}" => "\u{104F2}", "\u{104CB}" => "\u{104F3}", "\u{104CC}" => "\u{104F4}", - "\u{104CD}" => "\u{104F5}", "\u{104CE}" => "\u{104F6}", "\u{104CF}" => "\u{104F7}", "\u{104D0}" => "\u{104F8}", - "\u{104D1}" => "\u{104F9}", "\u{104D2}" => "\u{104FA}", "\u{104D3}" => "\u{104FB}", "\u{10570}" => "\u{10597}", - "\u{10571}" => "\u{10598}", "\u{10572}" => "\u{10599}", "\u{10573}" => "\u{1059A}", "\u{10574}" => "\u{1059B}", - "\u{10575}" => "\u{1059C}", "\u{10576}" => "\u{1059D}", "\u{10577}" => "\u{1059E}", "\u{10578}" => "\u{1059F}", - "\u{10579}" => "\u{105A0}", "\u{1057A}" => "\u{105A1}", "\u{1057C}" => "\u{105A3}", "\u{1057D}" => "\u{105A4}", - "\u{1057E}" => "\u{105A5}", "\u{1057F}" => "\u{105A6}", "\u{10580}" => "\u{105A7}", "\u{10581}" => "\u{105A8}", - "\u{10582}" => "\u{105A9}", "\u{10583}" => "\u{105AA}", "\u{10584}" => "\u{105AB}", "\u{10585}" => "\u{105AC}", - "\u{10586}" => "\u{105AD}", "\u{10587}" => "\u{105AE}", "\u{10588}" => "\u{105AF}", "\u{10589}" => "\u{105B0}", - "\u{1058A}" => "\u{105B1}", "\u{1058C}" => "\u{105B3}", "\u{1058D}" => "\u{105B4}", "\u{1058E}" => "\u{105B5}", - "\u{1058F}" => "\u{105B6}", "\u{10590}" => "\u{105B7}", "\u{10591}" => "\u{105B8}", "\u{10592}" => "\u{105B9}", - "\u{10594}" => "\u{105BB}", "\u{10595}" => "\u{105BC}", "\u{10781}" => "\u{2D0}", "\u{10782}" => "\u{2D1}", - "\u{10783}" => "\u{E6}", "\u{10784}" => "\u{299}", "\u{10785}" => "\u{253}", "\u{10787}" => "\u{2A3}", - "\u{10788}" => "\u{AB66}", "\u{10789}" => "\u{2A5}", "\u{1078A}" => "\u{2A4}", "\u{1078B}" => "\u{256}", - "\u{1078C}" => "\u{257}", "\u{1078D}" => "\u{1D91}", "\u{1078E}" => "\u{258}", "\u{1078F}" => "\u{25E}", - "\u{10790}" => "\u{2A9}", "\u{10791}" => "\u{264}", "\u{10792}" => "\u{262}", "\u{10793}" => "\u{260}", - "\u{10794}" => "\u{29B}", "\u{10795}" => "\u{127}", "\u{10796}" => "\u{29C}", "\u{10797}" => "\u{267}", - "\u{10798}" => "\u{284}", "\u{10799}" => "\u{2AA}", "\u{1079A}" => "\u{2AB}", "\u{1079B}" => "\u{26C}", - "\u{1079C}" => "\u{1DF04}", "\u{1079D}" => "\u{A78E}", "\u{1079E}" => "\u{26E}", "\u{1079F}" => "\u{1DF05}", - "\u{107A0}" => "\u{28E}", "\u{107A1}" => "\u{1DF06}", "\u{107A2}" => "\u{F8}", "\u{107A3}" => "\u{276}", - "\u{107A4}" => "\u{277}", "\u{107A5}" => "\u{71}", "\u{107A6}" => "\u{27A}", "\u{107A7}" => "\u{1DF08}", - "\u{107A8}" => "\u{27D}", "\u{107A9}" => "\u{27E}", "\u{107AA}" => "\u{280}", "\u{107AB}" => "\u{2A8}", - "\u{107AC}" => "\u{2A6}", "\u{107AD}" => "\u{AB67}", "\u{107AE}" => "\u{2A7}", "\u{107AF}" => "\u{288}", - "\u{107B0}" => "\u{2C71}", "\u{107B2}" => "\u{28F}", "\u{107B3}" => "\u{2A1}", "\u{107B4}" => "\u{2A2}", - "\u{107B5}" => "\u{298}", "\u{107B6}" => "\u{1C0}", "\u{107B7}" => "\u{1C1}", "\u{107B8}" => "\u{1C2}", - "\u{107B9}" => "\u{1DF0A}", "\u{107BA}" => "\u{1DF1E}", "\u{107BB}" => "\u{287}", "\u{107BC}" => "\u{296}", - "\u{107BD}" => "\u{297}", "\u{107BE}" => "\u{29E}", "\u{107BF}" => "\u{1DF0B}", "\u{10C80}" => "\u{10CC0}", - "\u{10C81}" => "\u{10CC1}", "\u{10C82}" => "\u{10CC2}", "\u{10C83}" => "\u{10CC3}", "\u{10C84}" => "\u{10CC4}", - "\u{10C85}" => "\u{10CC5}", "\u{10C86}" => "\u{10CC6}", "\u{10C87}" => "\u{10CC7}", "\u{10C88}" => "\u{10CC8}", - "\u{10C89}" => "\u{10CC9}", "\u{10C8A}" => "\u{10CCA}", "\u{10C8B}" => "\u{10CCB}", "\u{10C8C}" => "\u{10CCC}", - "\u{10C8D}" => "\u{10CCD}", "\u{10C8E}" => "\u{10CCE}", "\u{10C8F}" => "\u{10CCF}", "\u{10C90}" => "\u{10CD0}", - "\u{10C91}" => "\u{10CD1}", "\u{10C92}" => "\u{10CD2}", "\u{10C93}" => "\u{10CD3}", "\u{10C94}" => "\u{10CD4}", - "\u{10C95}" => "\u{10CD5}", "\u{10C96}" => "\u{10CD6}", "\u{10C97}" => "\u{10CD7}", "\u{10C98}" => "\u{10CD8}", - "\u{10C99}" => "\u{10CD9}", "\u{10C9A}" => "\u{10CDA}", "\u{10C9B}" => "\u{10CDB}", "\u{10C9C}" => "\u{10CDC}", - "\u{10C9D}" => "\u{10CDD}", "\u{10C9E}" => "\u{10CDE}", "\u{10C9F}" => "\u{10CDF}", "\u{10CA0}" => "\u{10CE0}", - "\u{10CA1}" => "\u{10CE1}", "\u{10CA2}" => "\u{10CE2}", "\u{10CA3}" => "\u{10CE3}", "\u{10CA4}" => "\u{10CE4}", - "\u{10CA5}" => "\u{10CE5}", "\u{10CA6}" => "\u{10CE6}", "\u{10CA7}" => "\u{10CE7}", "\u{10CA8}" => "\u{10CE8}", - "\u{10CA9}" => "\u{10CE9}", "\u{10CAA}" => "\u{10CEA}", "\u{10CAB}" => "\u{10CEB}", "\u{10CAC}" => "\u{10CEC}", - "\u{10CAD}" => "\u{10CED}", "\u{10CAE}" => "\u{10CEE}", "\u{10CAF}" => "\u{10CEF}", "\u{10CB0}" => "\u{10CF0}", - "\u{10CB1}" => "\u{10CF1}", "\u{10CB2}" => "\u{10CF2}", "\u{10D50}" => "\u{10D70}", "\u{10D51}" => "\u{10D71}", - "\u{10D52}" => "\u{10D72}", "\u{10D53}" => "\u{10D73}", "\u{10D54}" => "\u{10D74}", "\u{10D55}" => "\u{10D75}", - "\u{10D56}" => "\u{10D76}", "\u{10D57}" => "\u{10D77}", "\u{10D58}" => "\u{10D78}", "\u{10D59}" => "\u{10D79}", - "\u{10D5A}" => "\u{10D7A}", "\u{10D5B}" => "\u{10D7B}", "\u{10D5C}" => "\u{10D7C}", "\u{10D5D}" => "\u{10D7D}", - "\u{10D5E}" => "\u{10D7E}", "\u{10D5F}" => "\u{10D7F}", "\u{10D60}" => "\u{10D80}", "\u{10D61}" => "\u{10D81}", - "\u{10D62}" => "\u{10D82}", "\u{10D63}" => "\u{10D83}", "\u{10D64}" => "\u{10D84}", "\u{10D65}" => "\u{10D85}", - "\u{118A0}" => "\u{118C0}", "\u{118A1}" => "\u{118C1}", "\u{118A2}" => "\u{118C2}", "\u{118A3}" => "\u{118C3}", - "\u{118A4}" => "\u{118C4}", "\u{118A5}" => "\u{118C5}", "\u{118A6}" => "\u{118C6}", "\u{118A7}" => "\u{118C7}", - "\u{118A8}" => "\u{118C8}", "\u{118A9}" => "\u{118C9}", "\u{118AA}" => "\u{118CA}", "\u{118AB}" => "\u{118CB}", - "\u{118AC}" => "\u{118CC}", "\u{118AD}" => "\u{118CD}", "\u{118AE}" => "\u{118CE}", "\u{118AF}" => "\u{118CF}", - "\u{118B0}" => "\u{118D0}", "\u{118B1}" => "\u{118D1}", "\u{118B2}" => "\u{118D2}", "\u{118B3}" => "\u{118D3}", - "\u{118B4}" => "\u{118D4}", "\u{118B5}" => "\u{118D5}", "\u{118B6}" => "\u{118D6}", "\u{118B7}" => "\u{118D7}", - "\u{118B8}" => "\u{118D8}", "\u{118B9}" => "\u{118D9}", "\u{118BA}" => "\u{118DA}", "\u{118BB}" => "\u{118DB}", - "\u{118BC}" => "\u{118DC}", "\u{118BD}" => "\u{118DD}", "\u{118BE}" => "\u{118DE}", "\u{118BF}" => "\u{118DF}", - "\u{16E40}" => "\u{16E60}", "\u{16E41}" => "\u{16E61}", "\u{16E42}" => "\u{16E62}", "\u{16E43}" => "\u{16E63}", - "\u{16E44}" => "\u{16E64}", "\u{16E45}" => "\u{16E65}", "\u{16E46}" => "\u{16E66}", "\u{16E47}" => "\u{16E67}", - "\u{16E48}" => "\u{16E68}", "\u{16E49}" => "\u{16E69}", "\u{16E4A}" => "\u{16E6A}", "\u{16E4B}" => "\u{16E6B}", - "\u{16E4C}" => "\u{16E6C}", "\u{16E4D}" => "\u{16E6D}", "\u{16E4E}" => "\u{16E6E}", "\u{16E4F}" => "\u{16E6F}", - "\u{16E50}" => "\u{16E70}", "\u{16E51}" => "\u{16E71}", "\u{16E52}" => "\u{16E72}", "\u{16E53}" => "\u{16E73}", - "\u{16E54}" => "\u{16E74}", "\u{16E55}" => "\u{16E75}", "\u{16E56}" => "\u{16E76}", "\u{16E57}" => "\u{16E77}", - "\u{16E58}" => "\u{16E78}", "\u{16E59}" => "\u{16E79}", "\u{16E5A}" => "\u{16E7A}", "\u{16E5B}" => "\u{16E7B}", - "\u{16E5C}" => "\u{16E7C}", "\u{16E5D}" => "\u{16E7D}", "\u{16E5E}" => "\u{16E7E}", "\u{16E5F}" => "\u{16E7F}", - "\u{16EA0}" => "\u{16EBB}", "\u{16EA1}" => "\u{16EBC}", "\u{16EA2}" => "\u{16EBD}", "\u{16EA3}" => "\u{16EBE}", - "\u{16EA4}" => "\u{16EBF}", "\u{16EA5}" => "\u{16EC0}", "\u{16EA6}" => "\u{16EC1}", "\u{16EA7}" => "\u{16EC2}", - "\u{16EA8}" => "\u{16EC3}", "\u{16EA9}" => "\u{16EC4}", "\u{16EAA}" => "\u{16EC5}", "\u{16EAB}" => "\u{16EC6}", - "\u{16EAC}" => "\u{16EC7}", "\u{16EAD}" => "\u{16EC8}", "\u{16EAE}" => "\u{16EC9}", "\u{16EAF}" => "\u{16ECA}", - "\u{16EB0}" => "\u{16ECB}", "\u{16EB1}" => "\u{16ECC}", "\u{16EB2}" => "\u{16ECD}", "\u{16EB3}" => "\u{16ECE}", - "\u{16EB4}" => "\u{16ECF}", "\u{16EB5}" => "\u{16ED0}", "\u{16EB6}" => "\u{16ED1}", "\u{16EB7}" => "\u{16ED2}", - "\u{16EB8}" => "\u{16ED3}", "\u{1B123}" => "\u{3053}\u{3068}", "\u{1B124}" => "\u{30C8}\u{30AD}", "\u{1B125}" => "\u{30C8}\u{30C6}", - "\u{1B126}" => "\u{30E8}\u{30EA}", "\u{1BCA0}" => "", "\u{1BCA1}" => "", "\u{1BCA2}" => "", - "\u{1BCA3}" => "", "\u{1CCD6}" => "\u{61}", "\u{1CCD7}" => "\u{62}", "\u{1CCD8}" => "\u{63}", - "\u{1CCD9}" => "\u{64}", "\u{1CCDA}" => "\u{65}", "\u{1CCDB}" => "\u{66}", "\u{1CCDC}" => "\u{67}", - "\u{1CCDD}" => "\u{68}", "\u{1CCDE}" => "\u{69}", "\u{1CCDF}" => "\u{6A}", "\u{1CCE0}" => "\u{6B}", - "\u{1CCE1}" => "\u{6C}", "\u{1CCE2}" => "\u{6D}", "\u{1CCE3}" => "\u{6E}", "\u{1CCE4}" => "\u{6F}", - "\u{1CCE5}" => "\u{70}", "\u{1CCE6}" => "\u{71}", "\u{1CCE7}" => "\u{72}", "\u{1CCE8}" => "\u{73}", - "\u{1CCE9}" => "\u{74}", "\u{1CCEA}" => "\u{75}", "\u{1CCEB}" => "\u{76}", "\u{1CCEC}" => "\u{77}", - "\u{1CCED}" => "\u{78}", "\u{1CCEE}" => "\u{79}", "\u{1CCEF}" => "\u{7A}", "\u{1CCF0}" => "\u{30}", - "\u{1CCF1}" => "\u{31}", "\u{1CCF2}" => "\u{32}", "\u{1CCF3}" => "\u{33}", "\u{1CCF4}" => "\u{34}", - "\u{1CCF5}" => "\u{35}", "\u{1CCF6}" => "\u{36}", "\u{1CCF7}" => "\u{37}", "\u{1CCF8}" => "\u{38}", - "\u{1CCF9}" => "\u{39}", "\u{1D15E}" => "\u{1D157}\u{1D165}", "\u{1D15F}" => "\u{1D158}\u{1D165}", "\u{1D160}" => "\u{1D158}\u{1D165}\u{1D16E}", - "\u{1D161}" => "\u{1D158}\u{1D165}\u{1D16F}", "\u{1D162}" => "\u{1D158}\u{1D165}\u{1D170}", "\u{1D163}" => "\u{1D158}\u{1D165}\u{1D171}", "\u{1D164}" => "\u{1D158}\u{1D165}\u{1D172}", - "\u{1D173}" => "", "\u{1D174}" => "", "\u{1D175}" => "", "\u{1D176}" => "", - "\u{1D177}" => "", "\u{1D178}" => "", "\u{1D179}" => "", "\u{1D17A}" => "", - "\u{1D1BB}" => "\u{1D1B9}\u{1D165}", "\u{1D1BC}" => "\u{1D1BA}\u{1D165}", "\u{1D1BD}" => "\u{1D1B9}\u{1D165}\u{1D16E}", "\u{1D1BE}" => "\u{1D1BA}\u{1D165}\u{1D16E}", - "\u{1D1BF}" => "\u{1D1B9}\u{1D165}\u{1D16F}", "\u{1D1C0}" => "\u{1D1BA}\u{1D165}\u{1D16F}", "\u{1D400}" => "\u{61}", "\u{1D401}" => "\u{62}", - "\u{1D402}" => "\u{63}", "\u{1D403}" => "\u{64}", "\u{1D404}" => "\u{65}", "\u{1D405}" => "\u{66}", - "\u{1D406}" => "\u{67}", "\u{1D407}" => "\u{68}", "\u{1D408}" => "\u{69}", "\u{1D409}" => "\u{6A}", - "\u{1D40A}" => "\u{6B}", "\u{1D40B}" => "\u{6C}", "\u{1D40C}" => "\u{6D}", "\u{1D40D}" => "\u{6E}", - "\u{1D40E}" => "\u{6F}", "\u{1D40F}" => "\u{70}", "\u{1D410}" => "\u{71}", "\u{1D411}" => "\u{72}", - "\u{1D412}" => "\u{73}", "\u{1D413}" => "\u{74}", "\u{1D414}" => "\u{75}", "\u{1D415}" => "\u{76}", - "\u{1D416}" => "\u{77}", "\u{1D417}" => "\u{78}", "\u{1D418}" => "\u{79}", "\u{1D419}" => "\u{7A}", - "\u{1D41A}" => "\u{61}", "\u{1D41B}" => "\u{62}", "\u{1D41C}" => "\u{63}", "\u{1D41D}" => "\u{64}", - "\u{1D41E}" => "\u{65}", "\u{1D41F}" => "\u{66}", "\u{1D420}" => "\u{67}", "\u{1D421}" => "\u{68}", - "\u{1D422}" => "\u{69}", "\u{1D423}" => "\u{6A}", "\u{1D424}" => "\u{6B}", "\u{1D425}" => "\u{6C}", - "\u{1D426}" => "\u{6D}", "\u{1D427}" => "\u{6E}", "\u{1D428}" => "\u{6F}", "\u{1D429}" => "\u{70}", - "\u{1D42A}" => "\u{71}", "\u{1D42B}" => "\u{72}", "\u{1D42C}" => "\u{73}", "\u{1D42D}" => "\u{74}", - "\u{1D42E}" => "\u{75}", "\u{1D42F}" => "\u{76}", "\u{1D430}" => "\u{77}", "\u{1D431}" => "\u{78}", - "\u{1D432}" => "\u{79}", "\u{1D433}" => "\u{7A}", "\u{1D434}" => "\u{61}", "\u{1D435}" => "\u{62}", - "\u{1D436}" => "\u{63}", "\u{1D437}" => "\u{64}", "\u{1D438}" => "\u{65}", "\u{1D439}" => "\u{66}", - "\u{1D43A}" => "\u{67}", "\u{1D43B}" => "\u{68}", "\u{1D43C}" => "\u{69}", "\u{1D43D}" => "\u{6A}", - "\u{1D43E}" => "\u{6B}", "\u{1D43F}" => "\u{6C}", "\u{1D440}" => "\u{6D}", "\u{1D441}" => "\u{6E}", - "\u{1D442}" => "\u{6F}", "\u{1D443}" => "\u{70}", "\u{1D444}" => "\u{71}", "\u{1D445}" => "\u{72}", - "\u{1D446}" => "\u{73}", "\u{1D447}" => "\u{74}", "\u{1D448}" => "\u{75}", "\u{1D449}" => "\u{76}", - "\u{1D44A}" => "\u{77}", "\u{1D44B}" => "\u{78}", "\u{1D44C}" => "\u{79}", "\u{1D44D}" => "\u{7A}", - "\u{1D44E}" => "\u{61}", "\u{1D44F}" => "\u{62}", "\u{1D450}" => "\u{63}", "\u{1D451}" => "\u{64}", - "\u{1D452}" => "\u{65}", "\u{1D453}" => "\u{66}", "\u{1D454}" => "\u{67}", "\u{1D456}" => "\u{69}", - "\u{1D457}" => "\u{6A}", "\u{1D458}" => "\u{6B}", "\u{1D459}" => "\u{6C}", "\u{1D45A}" => "\u{6D}", - "\u{1D45B}" => "\u{6E}", "\u{1D45C}" => "\u{6F}", "\u{1D45D}" => "\u{70}", "\u{1D45E}" => "\u{71}", - "\u{1D45F}" => "\u{72}", "\u{1D460}" => "\u{73}", "\u{1D461}" => "\u{74}", "\u{1D462}" => "\u{75}", - "\u{1D463}" => "\u{76}", "\u{1D464}" => "\u{77}", "\u{1D465}" => "\u{78}", "\u{1D466}" => "\u{79}", - "\u{1D467}" => "\u{7A}", "\u{1D468}" => "\u{61}", "\u{1D469}" => "\u{62}", "\u{1D46A}" => "\u{63}", - "\u{1D46B}" => "\u{64}", "\u{1D46C}" => "\u{65}", "\u{1D46D}" => "\u{66}", "\u{1D46E}" => "\u{67}", - "\u{1D46F}" => "\u{68}", "\u{1D470}" => "\u{69}", "\u{1D471}" => "\u{6A}", "\u{1D472}" => "\u{6B}", - "\u{1D473}" => "\u{6C}", "\u{1D474}" => "\u{6D}", "\u{1D475}" => "\u{6E}", "\u{1D476}" => "\u{6F}", - "\u{1D477}" => "\u{70}", "\u{1D478}" => "\u{71}", "\u{1D479}" => "\u{72}", "\u{1D47A}" => "\u{73}", - "\u{1D47B}" => "\u{74}", "\u{1D47C}" => "\u{75}", "\u{1D47D}" => "\u{76}", "\u{1D47E}" => "\u{77}", - "\u{1D47F}" => "\u{78}", "\u{1D480}" => "\u{79}", "\u{1D481}" => "\u{7A}", "\u{1D482}" => "\u{61}", - "\u{1D483}" => "\u{62}", "\u{1D484}" => "\u{63}", "\u{1D485}" => "\u{64}", "\u{1D486}" => "\u{65}", - "\u{1D487}" => "\u{66}", "\u{1D488}" => "\u{67}", "\u{1D489}" => "\u{68}", "\u{1D48A}" => "\u{69}", - "\u{1D48B}" => "\u{6A}", "\u{1D48C}" => "\u{6B}", "\u{1D48D}" => "\u{6C}", "\u{1D48E}" => "\u{6D}", - "\u{1D48F}" => "\u{6E}", "\u{1D490}" => "\u{6F}", "\u{1D491}" => "\u{70}", "\u{1D492}" => "\u{71}", - "\u{1D493}" => "\u{72}", "\u{1D494}" => "\u{73}", "\u{1D495}" => "\u{74}", "\u{1D496}" => "\u{75}", - "\u{1D497}" => "\u{76}", "\u{1D498}" => "\u{77}", "\u{1D499}" => "\u{78}", "\u{1D49A}" => "\u{79}", - "\u{1D49B}" => "\u{7A}", "\u{1D49C}" => "\u{61}", "\u{1D49E}" => "\u{63}", "\u{1D49F}" => "\u{64}", - "\u{1D4A2}" => "\u{67}", "\u{1D4A5}" => "\u{6A}", "\u{1D4A6}" => "\u{6B}", "\u{1D4A9}" => "\u{6E}", - "\u{1D4AA}" => "\u{6F}", "\u{1D4AB}" => "\u{70}", "\u{1D4AC}" => "\u{71}", "\u{1D4AE}" => "\u{73}", - "\u{1D4AF}" => "\u{74}", "\u{1D4B0}" => "\u{75}", "\u{1D4B1}" => "\u{76}", "\u{1D4B2}" => "\u{77}", - "\u{1D4B3}" => "\u{78}", "\u{1D4B4}" => "\u{79}", "\u{1D4B5}" => "\u{7A}", "\u{1D4B6}" => "\u{61}", - "\u{1D4B7}" => "\u{62}", "\u{1D4B8}" => "\u{63}", "\u{1D4B9}" => "\u{64}", "\u{1D4BB}" => "\u{66}", - "\u{1D4BD}" => "\u{68}", "\u{1D4BE}" => "\u{69}", "\u{1D4BF}" => "\u{6A}", "\u{1D4C0}" => "\u{6B}", - "\u{1D4C1}" => "\u{6C}", "\u{1D4C2}" => "\u{6D}", "\u{1D4C3}" => "\u{6E}", "\u{1D4C5}" => "\u{70}", - "\u{1D4C6}" => "\u{71}", "\u{1D4C7}" => "\u{72}", "\u{1D4C8}" => "\u{73}", "\u{1D4C9}" => "\u{74}", - "\u{1D4CA}" => "\u{75}", "\u{1D4CB}" => "\u{76}", "\u{1D4CC}" => "\u{77}", "\u{1D4CD}" => "\u{78}", - "\u{1D4CE}" => "\u{79}", "\u{1D4CF}" => "\u{7A}", "\u{1D4D0}" => "\u{61}", "\u{1D4D1}" => "\u{62}", - "\u{1D4D2}" => "\u{63}", "\u{1D4D3}" => "\u{64}", "\u{1D4D4}" => "\u{65}", "\u{1D4D5}" => "\u{66}", - "\u{1D4D6}" => "\u{67}", "\u{1D4D7}" => "\u{68}", "\u{1D4D8}" => "\u{69}", "\u{1D4D9}" => "\u{6A}", - "\u{1D4DA}" => "\u{6B}", "\u{1D4DB}" => "\u{6C}", "\u{1D4DC}" => "\u{6D}", "\u{1D4DD}" => "\u{6E}", - "\u{1D4DE}" => "\u{6F}", "\u{1D4DF}" => "\u{70}", "\u{1D4E0}" => "\u{71}", "\u{1D4E1}" => "\u{72}", - "\u{1D4E2}" => "\u{73}", "\u{1D4E3}" => "\u{74}", "\u{1D4E4}" => "\u{75}", "\u{1D4E5}" => "\u{76}", - "\u{1D4E6}" => "\u{77}", "\u{1D4E7}" => "\u{78}", "\u{1D4E8}" => "\u{79}", "\u{1D4E9}" => "\u{7A}", - "\u{1D4EA}" => "\u{61}", "\u{1D4EB}" => "\u{62}", "\u{1D4EC}" => "\u{63}", "\u{1D4ED}" => "\u{64}", - "\u{1D4EE}" => "\u{65}", "\u{1D4EF}" => "\u{66}", "\u{1D4F0}" => "\u{67}", "\u{1D4F1}" => "\u{68}", - "\u{1D4F2}" => "\u{69}", "\u{1D4F3}" => "\u{6A}", "\u{1D4F4}" => "\u{6B}", "\u{1D4F5}" => "\u{6C}", - "\u{1D4F6}" => "\u{6D}", "\u{1D4F7}" => "\u{6E}", "\u{1D4F8}" => "\u{6F}", "\u{1D4F9}" => "\u{70}", - "\u{1D4FA}" => "\u{71}", "\u{1D4FB}" => "\u{72}", "\u{1D4FC}" => "\u{73}", "\u{1D4FD}" => "\u{74}", - "\u{1D4FE}" => "\u{75}", "\u{1D4FF}" => "\u{76}", "\u{1D500}" => "\u{77}", "\u{1D501}" => "\u{78}", - "\u{1D502}" => "\u{79}", "\u{1D503}" => "\u{7A}", "\u{1D504}" => "\u{61}", "\u{1D505}" => "\u{62}", - "\u{1D507}" => "\u{64}", "\u{1D508}" => "\u{65}", "\u{1D509}" => "\u{66}", "\u{1D50A}" => "\u{67}", - "\u{1D50D}" => "\u{6A}", "\u{1D50E}" => "\u{6B}", "\u{1D50F}" => "\u{6C}", "\u{1D510}" => "\u{6D}", - "\u{1D511}" => "\u{6E}", "\u{1D512}" => "\u{6F}", "\u{1D513}" => "\u{70}", "\u{1D514}" => "\u{71}", - "\u{1D516}" => "\u{73}", "\u{1D517}" => "\u{74}", "\u{1D518}" => "\u{75}", "\u{1D519}" => "\u{76}", - "\u{1D51A}" => "\u{77}", "\u{1D51B}" => "\u{78}", "\u{1D51C}" => "\u{79}", "\u{1D51E}" => "\u{61}", - "\u{1D51F}" => "\u{62}", "\u{1D520}" => "\u{63}", "\u{1D521}" => "\u{64}", "\u{1D522}" => "\u{65}", - "\u{1D523}" => "\u{66}", "\u{1D524}" => "\u{67}", "\u{1D525}" => "\u{68}", "\u{1D526}" => "\u{69}", - "\u{1D527}" => "\u{6A}", "\u{1D528}" => "\u{6B}", "\u{1D529}" => "\u{6C}", "\u{1D52A}" => "\u{6D}", - "\u{1D52B}" => "\u{6E}", "\u{1D52C}" => "\u{6F}", "\u{1D52D}" => "\u{70}", "\u{1D52E}" => "\u{71}", - "\u{1D52F}" => "\u{72}", "\u{1D530}" => "\u{73}", "\u{1D531}" => "\u{74}", "\u{1D532}" => "\u{75}", - "\u{1D533}" => "\u{76}", "\u{1D534}" => "\u{77}", "\u{1D535}" => "\u{78}", "\u{1D536}" => "\u{79}", - "\u{1D537}" => "\u{7A}", "\u{1D538}" => "\u{61}", "\u{1D539}" => "\u{62}", "\u{1D53B}" => "\u{64}", - "\u{1D53C}" => "\u{65}", "\u{1D53D}" => "\u{66}", "\u{1D53E}" => "\u{67}", "\u{1D540}" => "\u{69}", - "\u{1D541}" => "\u{6A}", "\u{1D542}" => "\u{6B}", "\u{1D543}" => "\u{6C}", "\u{1D544}" => "\u{6D}", - "\u{1D546}" => "\u{6F}", "\u{1D54A}" => "\u{73}", "\u{1D54B}" => "\u{74}", "\u{1D54C}" => "\u{75}", - "\u{1D54D}" => "\u{76}", "\u{1D54E}" => "\u{77}", "\u{1D54F}" => "\u{78}", "\u{1D550}" => "\u{79}", - "\u{1D552}" => "\u{61}", "\u{1D553}" => "\u{62}", "\u{1D554}" => "\u{63}", "\u{1D555}" => "\u{64}", - "\u{1D556}" => "\u{65}", "\u{1D557}" => "\u{66}", "\u{1D558}" => "\u{67}", "\u{1D559}" => "\u{68}", - "\u{1D55A}" => "\u{69}", "\u{1D55B}" => "\u{6A}", "\u{1D55C}" => "\u{6B}", "\u{1D55D}" => "\u{6C}", - "\u{1D55E}" => "\u{6D}", "\u{1D55F}" => "\u{6E}", "\u{1D560}" => "\u{6F}", "\u{1D561}" => "\u{70}", - "\u{1D562}" => "\u{71}", "\u{1D563}" => "\u{72}", "\u{1D564}" => "\u{73}", "\u{1D565}" => "\u{74}", - "\u{1D566}" => "\u{75}", "\u{1D567}" => "\u{76}", "\u{1D568}" => "\u{77}", "\u{1D569}" => "\u{78}", - "\u{1D56A}" => "\u{79}", "\u{1D56B}" => "\u{7A}", "\u{1D56C}" => "\u{61}", "\u{1D56D}" => "\u{62}", - "\u{1D56E}" => "\u{63}", "\u{1D56F}" => "\u{64}", "\u{1D570}" => "\u{65}", "\u{1D571}" => "\u{66}", - "\u{1D572}" => "\u{67}", "\u{1D573}" => "\u{68}", "\u{1D574}" => "\u{69}", "\u{1D575}" => "\u{6A}", - "\u{1D576}" => "\u{6B}", "\u{1D577}" => "\u{6C}", "\u{1D578}" => "\u{6D}", "\u{1D579}" => "\u{6E}", - "\u{1D57A}" => "\u{6F}", "\u{1D57B}" => "\u{70}", "\u{1D57C}" => "\u{71}", "\u{1D57D}" => "\u{72}", - "\u{1D57E}" => "\u{73}", "\u{1D57F}" => "\u{74}", "\u{1D580}" => "\u{75}", "\u{1D581}" => "\u{76}", - "\u{1D582}" => "\u{77}", "\u{1D583}" => "\u{78}", "\u{1D584}" => "\u{79}", "\u{1D585}" => "\u{7A}", - "\u{1D586}" => "\u{61}", "\u{1D587}" => "\u{62}", "\u{1D588}" => "\u{63}", "\u{1D589}" => "\u{64}", - "\u{1D58A}" => "\u{65}", "\u{1D58B}" => "\u{66}", "\u{1D58C}" => "\u{67}", "\u{1D58D}" => "\u{68}", - "\u{1D58E}" => "\u{69}", "\u{1D58F}" => "\u{6A}", "\u{1D590}" => "\u{6B}", "\u{1D591}" => "\u{6C}", - "\u{1D592}" => "\u{6D}", "\u{1D593}" => "\u{6E}", "\u{1D594}" => "\u{6F}", "\u{1D595}" => "\u{70}", - "\u{1D596}" => "\u{71}", "\u{1D597}" => "\u{72}", "\u{1D598}" => "\u{73}", "\u{1D599}" => "\u{74}", - "\u{1D59A}" => "\u{75}", "\u{1D59B}" => "\u{76}", "\u{1D59C}" => "\u{77}", "\u{1D59D}" => "\u{78}", - "\u{1D59E}" => "\u{79}", "\u{1D59F}" => "\u{7A}", "\u{1D5A0}" => "\u{61}", "\u{1D5A1}" => "\u{62}", - "\u{1D5A2}" => "\u{63}", "\u{1D5A3}" => "\u{64}", "\u{1D5A4}" => "\u{65}", "\u{1D5A5}" => "\u{66}", - "\u{1D5A6}" => "\u{67}", "\u{1D5A7}" => "\u{68}", "\u{1D5A8}" => "\u{69}", "\u{1D5A9}" => "\u{6A}", - "\u{1D5AA}" => "\u{6B}", "\u{1D5AB}" => "\u{6C}", "\u{1D5AC}" => "\u{6D}", "\u{1D5AD}" => "\u{6E}", - "\u{1D5AE}" => "\u{6F}", "\u{1D5AF}" => "\u{70}", "\u{1D5B0}" => "\u{71}", "\u{1D5B1}" => "\u{72}", - "\u{1D5B2}" => "\u{73}", "\u{1D5B3}" => "\u{74}", "\u{1D5B4}" => "\u{75}", "\u{1D5B5}" => "\u{76}", - "\u{1D5B6}" => "\u{77}", "\u{1D5B7}" => "\u{78}", "\u{1D5B8}" => "\u{79}", "\u{1D5B9}" => "\u{7A}", - "\u{1D5BA}" => "\u{61}", "\u{1D5BB}" => "\u{62}", "\u{1D5BC}" => "\u{63}", "\u{1D5BD}" => "\u{64}", - "\u{1D5BE}" => "\u{65}", "\u{1D5BF}" => "\u{66}", "\u{1D5C0}" => "\u{67}", "\u{1D5C1}" => "\u{68}", - "\u{1D5C2}" => "\u{69}", "\u{1D5C3}" => "\u{6A}", "\u{1D5C4}" => "\u{6B}", "\u{1D5C5}" => "\u{6C}", - "\u{1D5C6}" => "\u{6D}", "\u{1D5C7}" => "\u{6E}", "\u{1D5C8}" => "\u{6F}", "\u{1D5C9}" => "\u{70}", - "\u{1D5CA}" => "\u{71}", "\u{1D5CB}" => "\u{72}", "\u{1D5CC}" => "\u{73}", "\u{1D5CD}" => "\u{74}", - "\u{1D5CE}" => "\u{75}", "\u{1D5CF}" => "\u{76}", "\u{1D5D0}" => "\u{77}", "\u{1D5D1}" => "\u{78}", - "\u{1D5D2}" => "\u{79}", "\u{1D5D3}" => "\u{7A}", "\u{1D5D4}" => "\u{61}", "\u{1D5D5}" => "\u{62}", - "\u{1D5D6}" => "\u{63}", "\u{1D5D7}" => "\u{64}", "\u{1D5D8}" => "\u{65}", "\u{1D5D9}" => "\u{66}", - "\u{1D5DA}" => "\u{67}", "\u{1D5DB}" => "\u{68}", "\u{1D5DC}" => "\u{69}", "\u{1D5DD}" => "\u{6A}", - "\u{1D5DE}" => "\u{6B}", "\u{1D5DF}" => "\u{6C}", "\u{1D5E0}" => "\u{6D}", "\u{1D5E1}" => "\u{6E}", - "\u{1D5E2}" => "\u{6F}", "\u{1D5E3}" => "\u{70}", "\u{1D5E4}" => "\u{71}", "\u{1D5E5}" => "\u{72}", - "\u{1D5E6}" => "\u{73}", "\u{1D5E7}" => "\u{74}", "\u{1D5E8}" => "\u{75}", "\u{1D5E9}" => "\u{76}", - "\u{1D5EA}" => "\u{77}", "\u{1D5EB}" => "\u{78}", "\u{1D5EC}" => "\u{79}", "\u{1D5ED}" => "\u{7A}", - "\u{1D5EE}" => "\u{61}", "\u{1D5EF}" => "\u{62}", "\u{1D5F0}" => "\u{63}", "\u{1D5F1}" => "\u{64}", - "\u{1D5F2}" => "\u{65}", "\u{1D5F3}" => "\u{66}", "\u{1D5F4}" => "\u{67}", "\u{1D5F5}" => "\u{68}", - "\u{1D5F6}" => "\u{69}", "\u{1D5F7}" => "\u{6A}", "\u{1D5F8}" => "\u{6B}", "\u{1D5F9}" => "\u{6C}", - "\u{1D5FA}" => "\u{6D}", "\u{1D5FB}" => "\u{6E}", "\u{1D5FC}" => "\u{6F}", "\u{1D5FD}" => "\u{70}", - "\u{1D5FE}" => "\u{71}", "\u{1D5FF}" => "\u{72}", "\u{1D600}" => "\u{73}", "\u{1D601}" => "\u{74}", - "\u{1D602}" => "\u{75}", "\u{1D603}" => "\u{76}", "\u{1D604}" => "\u{77}", "\u{1D605}" => "\u{78}", - "\u{1D606}" => "\u{79}", "\u{1D607}" => "\u{7A}", "\u{1D608}" => "\u{61}", "\u{1D609}" => "\u{62}", - "\u{1D60A}" => "\u{63}", "\u{1D60B}" => "\u{64}", "\u{1D60C}" => "\u{65}", "\u{1D60D}" => "\u{66}", - "\u{1D60E}" => "\u{67}", "\u{1D60F}" => "\u{68}", "\u{1D610}" => "\u{69}", "\u{1D611}" => "\u{6A}", - "\u{1D612}" => "\u{6B}", "\u{1D613}" => "\u{6C}", "\u{1D614}" => "\u{6D}", "\u{1D615}" => "\u{6E}", - "\u{1D616}" => "\u{6F}", "\u{1D617}" => "\u{70}", "\u{1D618}" => "\u{71}", "\u{1D619}" => "\u{72}", - "\u{1D61A}" => "\u{73}", "\u{1D61B}" => "\u{74}", "\u{1D61C}" => "\u{75}", "\u{1D61D}" => "\u{76}", - "\u{1D61E}" => "\u{77}", "\u{1D61F}" => "\u{78}", "\u{1D620}" => "\u{79}", "\u{1D621}" => "\u{7A}", - "\u{1D622}" => "\u{61}", "\u{1D623}" => "\u{62}", "\u{1D624}" => "\u{63}", "\u{1D625}" => "\u{64}", - "\u{1D626}" => "\u{65}", "\u{1D627}" => "\u{66}", "\u{1D628}" => "\u{67}", "\u{1D629}" => "\u{68}", - "\u{1D62A}" => "\u{69}", "\u{1D62B}" => "\u{6A}", "\u{1D62C}" => "\u{6B}", "\u{1D62D}" => "\u{6C}", - "\u{1D62E}" => "\u{6D}", "\u{1D62F}" => "\u{6E}", "\u{1D630}" => "\u{6F}", "\u{1D631}" => "\u{70}", - "\u{1D632}" => "\u{71}", "\u{1D633}" => "\u{72}", "\u{1D634}" => "\u{73}", "\u{1D635}" => "\u{74}", - "\u{1D636}" => "\u{75}", "\u{1D637}" => "\u{76}", "\u{1D638}" => "\u{77}", "\u{1D639}" => "\u{78}", - "\u{1D63A}" => "\u{79}", "\u{1D63B}" => "\u{7A}", "\u{1D63C}" => "\u{61}", "\u{1D63D}" => "\u{62}", - "\u{1D63E}" => "\u{63}", "\u{1D63F}" => "\u{64}", "\u{1D640}" => "\u{65}", "\u{1D641}" => "\u{66}", - "\u{1D642}" => "\u{67}", "\u{1D643}" => "\u{68}", "\u{1D644}" => "\u{69}", "\u{1D645}" => "\u{6A}", - "\u{1D646}" => "\u{6B}", "\u{1D647}" => "\u{6C}", "\u{1D648}" => "\u{6D}", "\u{1D649}" => "\u{6E}", - "\u{1D64A}" => "\u{6F}", "\u{1D64B}" => "\u{70}", "\u{1D64C}" => "\u{71}", "\u{1D64D}" => "\u{72}", - "\u{1D64E}" => "\u{73}", "\u{1D64F}" => "\u{74}", "\u{1D650}" => "\u{75}", "\u{1D651}" => "\u{76}", - "\u{1D652}" => "\u{77}", "\u{1D653}" => "\u{78}", "\u{1D654}" => "\u{79}", "\u{1D655}" => "\u{7A}", - "\u{1D656}" => "\u{61}", "\u{1D657}" => "\u{62}", "\u{1D658}" => "\u{63}", "\u{1D659}" => "\u{64}", - "\u{1D65A}" => "\u{65}", "\u{1D65B}" => "\u{66}", "\u{1D65C}" => "\u{67}", "\u{1D65D}" => "\u{68}", - "\u{1D65E}" => "\u{69}", "\u{1D65F}" => "\u{6A}", "\u{1D660}" => "\u{6B}", "\u{1D661}" => "\u{6C}", - "\u{1D662}" => "\u{6D}", "\u{1D663}" => "\u{6E}", "\u{1D664}" => "\u{6F}", "\u{1D665}" => "\u{70}", - "\u{1D666}" => "\u{71}", "\u{1D667}" => "\u{72}", "\u{1D668}" => "\u{73}", "\u{1D669}" => "\u{74}", - "\u{1D66A}" => "\u{75}", "\u{1D66B}" => "\u{76}", "\u{1D66C}" => "\u{77}", "\u{1D66D}" => "\u{78}", - "\u{1D66E}" => "\u{79}", "\u{1D66F}" => "\u{7A}", "\u{1D670}" => "\u{61}", "\u{1D671}" => "\u{62}", - "\u{1D672}" => "\u{63}", "\u{1D673}" => "\u{64}", "\u{1D674}" => "\u{65}", "\u{1D675}" => "\u{66}", - "\u{1D676}" => "\u{67}", "\u{1D677}" => "\u{68}", "\u{1D678}" => "\u{69}", "\u{1D679}" => "\u{6A}", - "\u{1D67A}" => "\u{6B}", "\u{1D67B}" => "\u{6C}", "\u{1D67C}" => "\u{6D}", "\u{1D67D}" => "\u{6E}", - "\u{1D67E}" => "\u{6F}", "\u{1D67F}" => "\u{70}", "\u{1D680}" => "\u{71}", "\u{1D681}" => "\u{72}", - "\u{1D682}" => "\u{73}", "\u{1D683}" => "\u{74}", "\u{1D684}" => "\u{75}", "\u{1D685}" => "\u{76}", - "\u{1D686}" => "\u{77}", "\u{1D687}" => "\u{78}", "\u{1D688}" => "\u{79}", "\u{1D689}" => "\u{7A}", - "\u{1D68A}" => "\u{61}", "\u{1D68B}" => "\u{62}", "\u{1D68C}" => "\u{63}", "\u{1D68D}" => "\u{64}", - "\u{1D68E}" => "\u{65}", "\u{1D68F}" => "\u{66}", "\u{1D690}" => "\u{67}", "\u{1D691}" => "\u{68}", - "\u{1D692}" => "\u{69}", "\u{1D693}" => "\u{6A}", "\u{1D694}" => "\u{6B}", "\u{1D695}" => "\u{6C}", - "\u{1D696}" => "\u{6D}", "\u{1D697}" => "\u{6E}", "\u{1D698}" => "\u{6F}", "\u{1D699}" => "\u{70}", - "\u{1D69A}" => "\u{71}", "\u{1D69B}" => "\u{72}", "\u{1D69C}" => "\u{73}", "\u{1D69D}" => "\u{74}", - "\u{1D69E}" => "\u{75}", "\u{1D69F}" => "\u{76}", "\u{1D6A0}" => "\u{77}", "\u{1D6A1}" => "\u{78}", - "\u{1D6A2}" => "\u{79}", "\u{1D6A3}" => "\u{7A}", "\u{1D6A4}" => "\u{131}", "\u{1D6A5}" => "\u{237}", - "\u{1D6A6}" => "\u{73}\u{73}", "\u{1D6A8}" => "\u{3B1}", "\u{1D6A9}" => "\u{3B2}", "\u{1D6AA}" => "\u{3B3}", - "\u{1D6AB}" => "\u{3B4}", "\u{1D6AC}" => "\u{3B5}", "\u{1D6AD}" => "\u{3B6}", "\u{1D6AE}" => "\u{3B7}", - "\u{1D6AF}" => "\u{3B8}", "\u{1D6B0}" => "\u{3B9}", "\u{1D6B1}" => "\u{3BA}", "\u{1D6B2}" => "\u{3BB}", - "\u{1D6B3}" => "\u{3BC}", "\u{1D6B4}" => "\u{3BD}", "\u{1D6B5}" => "\u{3BE}", "\u{1D6B6}" => "\u{3BF}", - "\u{1D6B7}" => "\u{3C0}", "\u{1D6B8}" => "\u{3C1}", "\u{1D6B9}" => "\u{3B8}", "\u{1D6BA}" => "\u{3C3}", - "\u{1D6BB}" => "\u{3C4}", "\u{1D6BC}" => "\u{3C5}", "\u{1D6BD}" => "\u{3C6}", "\u{1D6BE}" => "\u{3C7}", - "\u{1D6BF}" => "\u{3C8}", "\u{1D6C0}" => "\u{3C9}", "\u{1D6C1}" => "\u{2207}", "\u{1D6C2}" => "\u{3B1}", - "\u{1D6C3}" => "\u{3B2}", "\u{1D6C4}" => "\u{3B3}", "\u{1D6C5}" => "\u{3B4}", "\u{1D6C6}" => "\u{3B5}", - "\u{1D6C7}" => "\u{3B6}", "\u{1D6C8}" => "\u{3B7}", "\u{1D6C9}" => "\u{3B8}", "\u{1D6CA}" => "\u{3B9}", - "\u{1D6CB}" => "\u{3BA}", "\u{1D6CC}" => "\u{3BB}", "\u{1D6CD}" => "\u{3BC}", "\u{1D6CE}" => "\u{3BD}", - "\u{1D6CF}" => "\u{3BE}", "\u{1D6D0}" => "\u{3BF}", "\u{1D6D1}" => "\u{3C0}", "\u{1D6D2}" => "\u{3C1}", - "\u{1D6D3}" => "\u{3C3}", "\u{1D6D4}" => "\u{3C3}", "\u{1D6D5}" => "\u{3C4}", "\u{1D6D6}" => "\u{3C5}", - "\u{1D6D7}" => "\u{3C6}", "\u{1D6D8}" => "\u{3C7}", "\u{1D6D9}" => "\u{3C8}", "\u{1D6DA}" => "\u{3C9}", - "\u{1D6DB}" => "\u{2202}", "\u{1D6DC}" => "\u{3B5}", "\u{1D6DD}" => "\u{3B8}", "\u{1D6DE}" => "\u{3BA}", - "\u{1D6DF}" => "\u{3C6}", "\u{1D6E0}" => "\u{3C1}", "\u{1D6E1}" => "\u{3C0}", "\u{1D6E2}" => "\u{3B1}", - "\u{1D6E3}" => "\u{3B2}", "\u{1D6E4}" => "\u{3B3}", "\u{1D6E5}" => "\u{3B4}", "\u{1D6E6}" => "\u{3B5}", - "\u{1D6E7}" => "\u{3B6}", "\u{1D6E8}" => "\u{3B7}", "\u{1D6E9}" => "\u{3B8}", "\u{1D6EA}" => "\u{3B9}", - "\u{1D6EB}" => "\u{3BA}", "\u{1D6EC}" => "\u{3BB}", "\u{1D6ED}" => "\u{3BC}", "\u{1D6EE}" => "\u{3BD}", - "\u{1D6EF}" => "\u{3BE}", "\u{1D6F0}" => "\u{3BF}", "\u{1D6F1}" => "\u{3C0}", "\u{1D6F2}" => "\u{3C1}", - "\u{1D6F3}" => "\u{3B8}", "\u{1D6F4}" => "\u{3C3}", "\u{1D6F5}" => "\u{3C4}", "\u{1D6F6}" => "\u{3C5}", - "\u{1D6F7}" => "\u{3C6}", "\u{1D6F8}" => "\u{3C7}", "\u{1D6F9}" => "\u{3C8}", "\u{1D6FA}" => "\u{3C9}", - "\u{1D6FB}" => "\u{2207}", "\u{1D6FC}" => "\u{3B1}", "\u{1D6FD}" => "\u{3B2}", "\u{1D6FE}" => "\u{3B3}", - "\u{1D6FF}" => "\u{3B4}", "\u{1D700}" => "\u{3B5}", "\u{1D701}" => "\u{3B6}", "\u{1D702}" => "\u{3B7}", - "\u{1D703}" => "\u{3B8}", "\u{1D704}" => "\u{3B9}", "\u{1D705}" => "\u{3BA}", "\u{1D706}" => "\u{3BB}", - "\u{1D707}" => "\u{3BC}", "\u{1D708}" => "\u{3BD}", "\u{1D709}" => "\u{3BE}", "\u{1D70A}" => "\u{3BF}", - "\u{1D70B}" => "\u{3C0}", "\u{1D70C}" => "\u{3C1}", "\u{1D70D}" => "\u{3C3}", "\u{1D70E}" => "\u{3C3}", - "\u{1D70F}" => "\u{3C4}", "\u{1D710}" => "\u{3C5}", "\u{1D711}" => "\u{3C6}", "\u{1D712}" => "\u{3C7}", - "\u{1D713}" => "\u{3C8}", "\u{1D714}" => "\u{3C9}", "\u{1D715}" => "\u{2202}", "\u{1D716}" => "\u{3B5}", - "\u{1D717}" => "\u{3B8}", "\u{1D718}" => "\u{3BA}", "\u{1D719}" => "\u{3C6}", "\u{1D71A}" => "\u{3C1}", - "\u{1D71B}" => "\u{3C0}", "\u{1D71C}" => "\u{3B1}", "\u{1D71D}" => "\u{3B2}", "\u{1D71E}" => "\u{3B3}", - "\u{1D71F}" => "\u{3B4}", "\u{1D720}" => "\u{3B5}", "\u{1D721}" => "\u{3B6}", "\u{1D722}" => "\u{3B7}", - "\u{1D723}" => "\u{3B8}", "\u{1D724}" => "\u{3B9}", "\u{1D725}" => "\u{3BA}", "\u{1D726}" => "\u{3BB}", - "\u{1D727}" => "\u{3BC}", "\u{1D728}" => "\u{3BD}", "\u{1D729}" => "\u{3BE}", "\u{1D72A}" => "\u{3BF}", - "\u{1D72B}" => "\u{3C0}", "\u{1D72C}" => "\u{3C1}", "\u{1D72D}" => "\u{3B8}", "\u{1D72E}" => "\u{3C3}", - "\u{1D72F}" => "\u{3C4}", "\u{1D730}" => "\u{3C5}", "\u{1D731}" => "\u{3C6}", "\u{1D732}" => "\u{3C7}", - "\u{1D733}" => "\u{3C8}", "\u{1D734}" => "\u{3C9}", "\u{1D735}" => "\u{2207}", "\u{1D736}" => "\u{3B1}", - "\u{1D737}" => "\u{3B2}", "\u{1D738}" => "\u{3B3}", "\u{1D739}" => "\u{3B4}", "\u{1D73A}" => "\u{3B5}", - "\u{1D73B}" => "\u{3B6}", "\u{1D73C}" => "\u{3B7}", "\u{1D73D}" => "\u{3B8}", "\u{1D73E}" => "\u{3B9}", - "\u{1D73F}" => "\u{3BA}", "\u{1D740}" => "\u{3BB}", "\u{1D741}" => "\u{3BC}", "\u{1D742}" => "\u{3BD}", - "\u{1D743}" => "\u{3BE}", "\u{1D744}" => "\u{3BF}", "\u{1D745}" => "\u{3C0}", "\u{1D746}" => "\u{3C1}", - "\u{1D747}" => "\u{3C3}", "\u{1D748}" => "\u{3C3}", "\u{1D749}" => "\u{3C4}", "\u{1D74A}" => "\u{3C5}", - "\u{1D74B}" => "\u{3C6}", "\u{1D74C}" => "\u{3C7}", "\u{1D74D}" => "\u{3C8}", "\u{1D74E}" => "\u{3C9}", - "\u{1D74F}" => "\u{2202}", "\u{1D750}" => "\u{3B5}", "\u{1D751}" => "\u{3B8}", "\u{1D752}" => "\u{3BA}", - "\u{1D753}" => "\u{3C6}", "\u{1D754}" => "\u{3C1}", "\u{1D755}" => "\u{3C0}", "\u{1D756}" => "\u{3B1}", - "\u{1D757}" => "\u{3B2}", "\u{1D758}" => "\u{3B3}", "\u{1D759}" => "\u{3B4}", "\u{1D75A}" => "\u{3B5}", - "\u{1D75B}" => "\u{3B6}", "\u{1D75C}" => "\u{3B7}", "\u{1D75D}" => "\u{3B8}", "\u{1D75E}" => "\u{3B9}", - "\u{1D75F}" => "\u{3BA}", "\u{1D760}" => "\u{3BB}", "\u{1D761}" => "\u{3BC}", "\u{1D762}" => "\u{3BD}", - "\u{1D763}" => "\u{3BE}", "\u{1D764}" => "\u{3BF}", "\u{1D765}" => "\u{3C0}", "\u{1D766}" => "\u{3C1}", - "\u{1D767}" => "\u{3B8}", "\u{1D768}" => "\u{3C3}", "\u{1D769}" => "\u{3C4}", "\u{1D76A}" => "\u{3C5}", - "\u{1D76B}" => "\u{3C6}", "\u{1D76C}" => "\u{3C7}", "\u{1D76D}" => "\u{3C8}", "\u{1D76E}" => "\u{3C9}", - "\u{1D76F}" => "\u{2207}", "\u{1D770}" => "\u{3B1}", "\u{1D771}" => "\u{3B2}", "\u{1D772}" => "\u{3B3}", - "\u{1D773}" => "\u{3B4}", "\u{1D774}" => "\u{3B5}", "\u{1D775}" => "\u{3B6}", "\u{1D776}" => "\u{3B7}", - "\u{1D777}" => "\u{3B8}", "\u{1D778}" => "\u{3B9}", "\u{1D779}" => "\u{3BA}", "\u{1D77A}" => "\u{3BB}", - "\u{1D77B}" => "\u{3BC}", "\u{1D77C}" => "\u{3BD}", "\u{1D77D}" => "\u{3BE}", "\u{1D77E}" => "\u{3BF}", - "\u{1D77F}" => "\u{3C0}", "\u{1D780}" => "\u{3C1}", "\u{1D781}" => "\u{3C3}", "\u{1D782}" => "\u{3C3}", - "\u{1D783}" => "\u{3C4}", "\u{1D784}" => "\u{3C5}", "\u{1D785}" => "\u{3C6}", "\u{1D786}" => "\u{3C7}", - "\u{1D787}" => "\u{3C8}", "\u{1D788}" => "\u{3C9}", "\u{1D789}" => "\u{2202}", "\u{1D78A}" => "\u{3B5}", - "\u{1D78B}" => "\u{3B8}", "\u{1D78C}" => "\u{3BA}", "\u{1D78D}" => "\u{3C6}", "\u{1D78E}" => "\u{3C1}", - "\u{1D78F}" => "\u{3C0}", "\u{1D790}" => "\u{3B1}", "\u{1D791}" => "\u{3B2}", "\u{1D792}" => "\u{3B3}", - "\u{1D793}" => "\u{3B4}", "\u{1D794}" => "\u{3B5}", "\u{1D795}" => "\u{3B6}", "\u{1D796}" => "\u{3B7}", - "\u{1D797}" => "\u{3B8}", "\u{1D798}" => "\u{3B9}", "\u{1D799}" => "\u{3BA}", "\u{1D79A}" => "\u{3BB}", - "\u{1D79B}" => "\u{3BC}", "\u{1D79C}" => "\u{3BD}", "\u{1D79D}" => "\u{3BE}", "\u{1D79E}" => "\u{3BF}", - "\u{1D79F}" => "\u{3C0}", "\u{1D7A0}" => "\u{3C1}", "\u{1D7A1}" => "\u{3B8}", "\u{1D7A2}" => "\u{3C3}", - "\u{1D7A3}" => "\u{3C4}", "\u{1D7A4}" => "\u{3C5}", "\u{1D7A5}" => "\u{3C6}", "\u{1D7A6}" => "\u{3C7}", - "\u{1D7A7}" => "\u{3C8}", "\u{1D7A8}" => "\u{3C9}", "\u{1D7A9}" => "\u{2207}", "\u{1D7AA}" => "\u{3B1}", - "\u{1D7AB}" => "\u{3B2}", "\u{1D7AC}" => "\u{3B3}", "\u{1D7AD}" => "\u{3B4}", "\u{1D7AE}" => "\u{3B5}", - "\u{1D7AF}" => "\u{3B6}", "\u{1D7B0}" => "\u{3B7}", "\u{1D7B1}" => "\u{3B8}", "\u{1D7B2}" => "\u{3B9}", - "\u{1D7B3}" => "\u{3BA}", "\u{1D7B4}" => "\u{3BB}", "\u{1D7B5}" => "\u{3BC}", "\u{1D7B6}" => "\u{3BD}", - "\u{1D7B7}" => "\u{3BE}", "\u{1D7B8}" => "\u{3BF}", "\u{1D7B9}" => "\u{3C0}", "\u{1D7BA}" => "\u{3C1}", - "\u{1D7BB}" => "\u{3C3}", "\u{1D7BC}" => "\u{3C3}", "\u{1D7BD}" => "\u{3C4}", "\u{1D7BE}" => "\u{3C5}", - "\u{1D7BF}" => "\u{3C6}", "\u{1D7C0}" => "\u{3C7}", "\u{1D7C1}" => "\u{3C8}", "\u{1D7C2}" => "\u{3C9}", - "\u{1D7C3}" => "\u{2202}", "\u{1D7C4}" => "\u{3B5}", "\u{1D7C5}" => "\u{3B8}", "\u{1D7C6}" => "\u{3BA}", - "\u{1D7C7}" => "\u{3C6}", "\u{1D7C8}" => "\u{3C1}", "\u{1D7C9}" => "\u{3C0}", "\u{1D7CA}" => "\u{3DD}", - "\u{1D7CB}" => "\u{3DD}", "\u{1D7CE}" => "\u{30}", "\u{1D7CF}" => "\u{31}", "\u{1D7D0}" => "\u{32}", - "\u{1D7D1}" => "\u{33}", "\u{1D7D2}" => "\u{34}", "\u{1D7D3}" => "\u{35}", "\u{1D7D4}" => "\u{36}", - "\u{1D7D5}" => "\u{37}", "\u{1D7D6}" => "\u{38}", "\u{1D7D7}" => "\u{39}", "\u{1D7D8}" => "\u{30}", - "\u{1D7D9}" => "\u{31}", "\u{1D7DA}" => "\u{32}", "\u{1D7DB}" => "\u{33}", "\u{1D7DC}" => "\u{34}", - "\u{1D7DD}" => "\u{35}", "\u{1D7DE}" => "\u{36}", "\u{1D7DF}" => "\u{37}", "\u{1D7E0}" => "\u{38}", - "\u{1D7E1}" => "\u{39}", "\u{1D7E2}" => "\u{30}", "\u{1D7E3}" => "\u{31}", "\u{1D7E4}" => "\u{32}", - "\u{1D7E5}" => "\u{33}", "\u{1D7E6}" => "\u{34}", "\u{1D7E7}" => "\u{35}", "\u{1D7E8}" => "\u{36}", - "\u{1D7E9}" => "\u{37}", "\u{1D7EA}" => "\u{38}", "\u{1D7EB}" => "\u{39}", "\u{1D7EC}" => "\u{30}", - "\u{1D7ED}" => "\u{31}", "\u{1D7EE}" => "\u{32}", "\u{1D7EF}" => "\u{33}", "\u{1D7F0}" => "\u{34}", - "\u{1D7F1}" => "\u{35}", "\u{1D7F2}" => "\u{36}", "\u{1D7F3}" => "\u{37}", "\u{1D7F4}" => "\u{38}", - "\u{1D7F5}" => "\u{39}", "\u{1D7F6}" => "\u{30}", "\u{1D7F7}" => "\u{31}", "\u{1D7F8}" => "\u{32}", - "\u{1D7F9}" => "\u{33}", "\u{1D7FA}" => "\u{34}", "\u{1D7FB}" => "\u{35}", "\u{1D7FC}" => "\u{36}", - "\u{1D7FD}" => "\u{37}", "\u{1D7FE}" => "\u{38}", "\u{1D7FF}" => "\u{39}", "\u{1DF40}" => "\u{1DF41}", - "\u{1DF48}" => "\u{1DF49}", "\u{1DF4A}" => "\u{1DF4B}", "\u{1DF4D}" => "\u{1DF4E}", "\u{1DF51}" => "\u{1DF52}", - "\u{1DF68}" => "\u{1DF69}", "\u{1DF6A}" => "\u{1DF6B}", "\u{1DF6C}" => "\u{1DF6D}", "\u{1DF6E}" => "\u{1DF6F}", - "\u{1DF72}" => "\u{1DF73}", "\u{1DF74}" => "\u{1DF75}", "\u{1DF76}" => "\u{1DF77}", "\u{1DF78}" => "\u{1DF79}", - "\u{1DF7A}" => "\u{1DF7B}", "\u{1DF7C}" => "\u{1DF7D}", "\u{1DF7E}" => "\u{1DF7F}", "\u{1DF95}" => "\u{73}\u{73}", - "\u{1DFCD}" => "\u{1DF57}", "\u{1DFCE}" => "\u{1DF58}", "\u{1DFCF}" => "\u{1DF59}", "\u{1DFD0}" => "\u{263}", - "\u{1DFD1}" => "\u{1D18}", "\u{1DFD2}" => "\u{180}", "\u{1DFD3}" => "\u{111}", "\u{1DFD4}" => "\u{1E5}", - "\u{1DFD5}" => "\u{142}", "\u{1DFD6}" => "\u{19A}", "\u{1DFD7}" => "\u{1DF50}", "\u{1DFD8}" => "\u{1DF3E}", - "\u{1DFD9}" => "\u{249}", "\u{1DFDA}" => "\u{1D7F}", "\u{1DFDB}" => "\u{1DF3F}", "\u{1DFDC}" => "\u{19E}", - "\u{1DFDD}" => "\u{27C}", "\u{1DFDE}" => "\u{238}", "\u{1DFDF}" => "\u{239}", "\u{1DFE0}" => "\u{1DF2B}", - "\u{1DFE1}" => "\u{1DF19}", "\u{1DFE2}" => "\u{286}", "\u{1DFE3}" => "\u{1D98}", "\u{1DFE4}" => "\u{1DF2C}", - "\u{1DFE5}" => "\u{1DF1C}", "\u{1DFE6}" => "\u{293}", "\u{1DFE7}" => "\u{1D9A}", "\u{1DFE8}" => "\u{1D05}", - "\u{1DFE9}" => "\u{1D00}", "\u{1DFEA}" => "\u{1D07}", "\u{1DFEB}" => "\u{27F}", "\u{1DFEC}" => "\u{285}", - "\u{1DFED}" => "\u{2AE}", "\u{1DFEE}" => "\u{2AF}", "\u{1DFEF}" => "\u{221}", "\u{1DFF0}" => "\u{234}", - "\u{1DFF1}" => "\u{235}", "\u{1DFF2}" => "\u{236}", "\u{1DFF3}" => "\u{3C8}", "\u{1DFF4}" => "\u{3C9}", - "\u{1DFF5}" => "\u{1D81}", "\u{1DFF6}" => "\u{A795}", "\u{1DFF7}" => "\u{1D87}", "\u{1DFF8}" => "\u{1D8A}", - "\u{1DFF9}" => "\u{1D8E}", "\u{1DFFA}" => "\u{188}", "\u{1DFFB}" => "\u{199}", "\u{1DFFC}" => "\u{1A5}", - "\u{1DFFD}" => "\u{2A0}", "\u{1DFFE}" => "\u{1AD}", "\u{1DFFF}" => "\u{1DF09}", "\u{1E030}" => "\u{430}", - "\u{1E031}" => "\u{431}", "\u{1E032}" => "\u{432}", "\u{1E033}" => "\u{433}", "\u{1E034}" => "\u{434}", - "\u{1E035}" => "\u{435}", "\u{1E036}" => "\u{436}", "\u{1E037}" => "\u{437}", "\u{1E038}" => "\u{438}", - "\u{1E039}" => "\u{43A}", "\u{1E03A}" => "\u{43B}", "\u{1E03B}" => "\u{43C}", "\u{1E03C}" => "\u{43E}", - "\u{1E03D}" => "\u{43F}", "\u{1E03E}" => "\u{440}", "\u{1E03F}" => "\u{441}", "\u{1E040}" => "\u{442}", - "\u{1E041}" => "\u{443}", "\u{1E042}" => "\u{444}", "\u{1E043}" => "\u{445}", "\u{1E044}" => "\u{446}", - "\u{1E045}" => "\u{447}", "\u{1E046}" => "\u{448}", "\u{1E047}" => "\u{44B}", "\u{1E048}" => "\u{44D}", - "\u{1E049}" => "\u{44E}", "\u{1E04A}" => "\u{A689}", "\u{1E04B}" => "\u{4D9}", "\u{1E04C}" => "\u{456}", - "\u{1E04D}" => "\u{458}", "\u{1E04E}" => "\u{4E9}", "\u{1E04F}" => "\u{4AF}", "\u{1E050}" => "\u{4CF}", - "\u{1E051}" => "\u{430}", "\u{1E052}" => "\u{431}", "\u{1E053}" => "\u{432}", "\u{1E054}" => "\u{433}", - "\u{1E055}" => "\u{434}", "\u{1E056}" => "\u{435}", "\u{1E057}" => "\u{436}", "\u{1E058}" => "\u{437}", - "\u{1E059}" => "\u{438}", "\u{1E05A}" => "\u{43A}", "\u{1E05B}" => "\u{43B}", "\u{1E05C}" => "\u{43E}", - "\u{1E05D}" => "\u{43F}", "\u{1E05E}" => "\u{441}", "\u{1E05F}" => "\u{443}", "\u{1E060}" => "\u{444}", - "\u{1E061}" => "\u{445}", "\u{1E062}" => "\u{446}", "\u{1E063}" => "\u{447}", "\u{1E064}" => "\u{448}", - "\u{1E065}" => "\u{44A}", "\u{1E066}" => "\u{44B}", "\u{1E067}" => "\u{491}", "\u{1E068}" => "\u{456}", - "\u{1E069}" => "\u{455}", "\u{1E06A}" => "\u{45F}", "\u{1E06B}" => "\u{4AB}", "\u{1E06C}" => "\u{A651}", - "\u{1E06D}" => "\u{4B1}", "\u{1E900}" => "\u{1E922}", "\u{1E901}" => "\u{1E923}", "\u{1E902}" => "\u{1E924}", - "\u{1E903}" => "\u{1E925}", "\u{1E904}" => "\u{1E926}", "\u{1E905}" => "\u{1E927}", "\u{1E906}" => "\u{1E928}", - "\u{1E907}" => "\u{1E929}", "\u{1E908}" => "\u{1E92A}", "\u{1E909}" => "\u{1E92B}", "\u{1E90A}" => "\u{1E92C}", - "\u{1E90B}" => "\u{1E92D}", "\u{1E90C}" => "\u{1E92E}", "\u{1E90D}" => "\u{1E92F}", "\u{1E90E}" => "\u{1E930}", - "\u{1E90F}" => "\u{1E931}", "\u{1E910}" => "\u{1E932}", "\u{1E911}" => "\u{1E933}", "\u{1E912}" => "\u{1E934}", - "\u{1E913}" => "\u{1E935}", "\u{1E914}" => "\u{1E936}", "\u{1E915}" => "\u{1E937}", "\u{1E916}" => "\u{1E938}", - "\u{1E917}" => "\u{1E939}", "\u{1E918}" => "\u{1E93A}", "\u{1E919}" => "\u{1E93B}", "\u{1E91A}" => "\u{1E93C}", - "\u{1E91B}" => "\u{1E93D}", "\u{1E91C}" => "\u{1E93E}", "\u{1E91D}" => "\u{1E93F}", "\u{1E91E}" => "\u{1E940}", - "\u{1E91F}" => "\u{1E941}", "\u{1E920}" => "\u{1E942}", "\u{1E921}" => "\u{1E943}", "\u{1EE00}" => "\u{627}", - "\u{1EE01}" => "\u{628}", "\u{1EE02}" => "\u{62C}", "\u{1EE03}" => "\u{62F}", "\u{1EE05}" => "\u{648}", - "\u{1EE06}" => "\u{632}", "\u{1EE07}" => "\u{62D}", "\u{1EE08}" => "\u{637}", "\u{1EE09}" => "\u{64A}", - "\u{1EE0A}" => "\u{643}", "\u{1EE0B}" => "\u{644}", "\u{1EE0C}" => "\u{645}", "\u{1EE0D}" => "\u{646}", - "\u{1EE0E}" => "\u{633}", "\u{1EE0F}" => "\u{639}", "\u{1EE10}" => "\u{641}", "\u{1EE11}" => "\u{635}", - "\u{1EE12}" => "\u{642}", "\u{1EE13}" => "\u{631}", "\u{1EE14}" => "\u{634}", "\u{1EE15}" => "\u{62A}", - "\u{1EE16}" => "\u{62B}", "\u{1EE17}" => "\u{62E}", "\u{1EE18}" => "\u{630}", "\u{1EE19}" => "\u{636}", - "\u{1EE1A}" => "\u{638}", "\u{1EE1B}" => "\u{63A}", "\u{1EE1C}" => "\u{66E}", "\u{1EE1D}" => "\u{6BA}", - "\u{1EE1E}" => "\u{6A1}", "\u{1EE1F}" => "\u{66F}", "\u{1EE21}" => "\u{628}", "\u{1EE22}" => "\u{62C}", - "\u{1EE24}" => "\u{647}", "\u{1EE27}" => "\u{62D}", "\u{1EE29}" => "\u{64A}", "\u{1EE2A}" => "\u{643}", - "\u{1EE2B}" => "\u{644}", "\u{1EE2C}" => "\u{645}", "\u{1EE2D}" => "\u{646}", "\u{1EE2E}" => "\u{633}", - "\u{1EE2F}" => "\u{639}", "\u{1EE30}" => "\u{641}", "\u{1EE31}" => "\u{635}", "\u{1EE32}" => "\u{642}", - "\u{1EE34}" => "\u{634}", "\u{1EE35}" => "\u{62A}", "\u{1EE36}" => "\u{62B}", "\u{1EE37}" => "\u{62E}", - "\u{1EE39}" => "\u{636}", "\u{1EE3B}" => "\u{63A}", "\u{1EE42}" => "\u{62C}", "\u{1EE47}" => "\u{62D}", - "\u{1EE49}" => "\u{64A}", "\u{1EE4B}" => "\u{644}", "\u{1EE4D}" => "\u{646}", "\u{1EE4E}" => "\u{633}", - "\u{1EE4F}" => "\u{639}", "\u{1EE51}" => "\u{635}", "\u{1EE52}" => "\u{642}", "\u{1EE54}" => "\u{634}", - "\u{1EE57}" => "\u{62E}", "\u{1EE59}" => "\u{636}", "\u{1EE5B}" => "\u{63A}", "\u{1EE5D}" => "\u{6BA}", - "\u{1EE5F}" => "\u{66F}", "\u{1EE61}" => "\u{628}", "\u{1EE62}" => "\u{62C}", "\u{1EE64}" => "\u{647}", - "\u{1EE67}" => "\u{62D}", "\u{1EE68}" => "\u{637}", "\u{1EE69}" => "\u{64A}", "\u{1EE6A}" => "\u{643}", - "\u{1EE6C}" => "\u{645}", "\u{1EE6D}" => "\u{646}", "\u{1EE6E}" => "\u{633}", "\u{1EE6F}" => "\u{639}", - "\u{1EE70}" => "\u{641}", "\u{1EE71}" => "\u{635}", "\u{1EE72}" => "\u{642}", "\u{1EE74}" => "\u{634}", - "\u{1EE75}" => "\u{62A}", "\u{1EE76}" => "\u{62B}", "\u{1EE77}" => "\u{62E}", "\u{1EE79}" => "\u{636}", - "\u{1EE7A}" => "\u{638}", "\u{1EE7B}" => "\u{63A}", "\u{1EE7C}" => "\u{66E}", "\u{1EE7E}" => "\u{6A1}", - "\u{1EE80}" => "\u{627}", "\u{1EE81}" => "\u{628}", "\u{1EE82}" => "\u{62C}", "\u{1EE83}" => "\u{62F}", - "\u{1EE84}" => "\u{647}", "\u{1EE85}" => "\u{648}", "\u{1EE86}" => "\u{632}", "\u{1EE87}" => "\u{62D}", - "\u{1EE88}" => "\u{637}", "\u{1EE89}" => "\u{64A}", "\u{1EE8B}" => "\u{644}", "\u{1EE8C}" => "\u{645}", - "\u{1EE8D}" => "\u{646}", "\u{1EE8E}" => "\u{633}", "\u{1EE8F}" => "\u{639}", "\u{1EE90}" => "\u{641}", - "\u{1EE91}" => "\u{635}", "\u{1EE92}" => "\u{642}", "\u{1EE93}" => "\u{631}", "\u{1EE94}" => "\u{634}", - "\u{1EE95}" => "\u{62A}", "\u{1EE96}" => "\u{62B}", "\u{1EE97}" => "\u{62E}", "\u{1EE98}" => "\u{630}", - "\u{1EE99}" => "\u{636}", "\u{1EE9A}" => "\u{638}", "\u{1EE9B}" => "\u{63A}", "\u{1EEA1}" => "\u{628}", - "\u{1EEA2}" => "\u{62C}", "\u{1EEA3}" => "\u{62F}", "\u{1EEA5}" => "\u{648}", "\u{1EEA6}" => "\u{632}", - "\u{1EEA7}" => "\u{62D}", "\u{1EEA8}" => "\u{637}", "\u{1EEA9}" => "\u{64A}", "\u{1EEAB}" => "\u{644}", - "\u{1EEAC}" => "\u{645}", "\u{1EEAD}" => "\u{646}", "\u{1EEAE}" => "\u{633}", "\u{1EEAF}" => "\u{639}", - "\u{1EEB0}" => "\u{641}", "\u{1EEB1}" => "\u{635}", "\u{1EEB2}" => "\u{642}", "\u{1EEB3}" => "\u{631}", - "\u{1EEB4}" => "\u{634}", "\u{1EEB5}" => "\u{62A}", "\u{1EEB6}" => "\u{62B}", "\u{1EEB7}" => "\u{62E}", - "\u{1EEB8}" => "\u{630}", "\u{1EEB9}" => "\u{636}", "\u{1EEBA}" => "\u{638}", "\u{1EEBB}" => "\u{63A}", - "\u{1F101}" => "\u{30}\u{2C}", "\u{1F102}" => "\u{31}\u{2C}", "\u{1F103}" => "\u{32}\u{2C}", "\u{1F104}" => "\u{33}\u{2C}", - "\u{1F105}" => "\u{34}\u{2C}", "\u{1F106}" => "\u{35}\u{2C}", "\u{1F107}" => "\u{36}\u{2C}", "\u{1F108}" => "\u{37}\u{2C}", - "\u{1F109}" => "\u{38}\u{2C}", "\u{1F10A}" => "\u{39}\u{2C}", "\u{1F110}" => "\u{28}\u{61}\u{29}", "\u{1F111}" => "\u{28}\u{62}\u{29}", - "\u{1F112}" => "\u{28}\u{63}\u{29}", "\u{1F113}" => "\u{28}\u{64}\u{29}", "\u{1F114}" => "\u{28}\u{65}\u{29}", "\u{1F115}" => "\u{28}\u{66}\u{29}", - "\u{1F116}" => "\u{28}\u{67}\u{29}", "\u{1F117}" => "\u{28}\u{68}\u{29}", "\u{1F118}" => "\u{28}\u{69}\u{29}", "\u{1F119}" => "\u{28}\u{6A}\u{29}", - "\u{1F11A}" => "\u{28}\u{6B}\u{29}", "\u{1F11B}" => "\u{28}\u{6C}\u{29}", "\u{1F11C}" => "\u{28}\u{6D}\u{29}", "\u{1F11D}" => "\u{28}\u{6E}\u{29}", - "\u{1F11E}" => "\u{28}\u{6F}\u{29}", "\u{1F11F}" => "\u{28}\u{70}\u{29}", "\u{1F120}" => "\u{28}\u{71}\u{29}", "\u{1F121}" => "\u{28}\u{72}\u{29}", - "\u{1F122}" => "\u{28}\u{73}\u{29}", "\u{1F123}" => "\u{28}\u{74}\u{29}", "\u{1F124}" => "\u{28}\u{75}\u{29}", "\u{1F125}" => "\u{28}\u{76}\u{29}", - "\u{1F126}" => "\u{28}\u{77}\u{29}", "\u{1F127}" => "\u{28}\u{78}\u{29}", "\u{1F128}" => "\u{28}\u{79}\u{29}", "\u{1F129}" => "\u{28}\u{7A}\u{29}", - "\u{1F12A}" => "\u{3014}\u{73}\u{3015}", "\u{1F12B}" => "\u{63}", "\u{1F12C}" => "\u{72}", "\u{1F12D}" => "\u{63}\u{64}", - "\u{1F12E}" => "\u{77}\u{7A}", "\u{1F130}" => "\u{61}", "\u{1F131}" => "\u{62}", "\u{1F132}" => "\u{63}", - "\u{1F133}" => "\u{64}", "\u{1F134}" => "\u{65}", "\u{1F135}" => "\u{66}", "\u{1F136}" => "\u{67}", - "\u{1F137}" => "\u{68}", "\u{1F138}" => "\u{69}", "\u{1F139}" => "\u{6A}", "\u{1F13A}" => "\u{6B}", - "\u{1F13B}" => "\u{6C}", "\u{1F13C}" => "\u{6D}", "\u{1F13D}" => "\u{6E}", "\u{1F13E}" => "\u{6F}", - "\u{1F13F}" => "\u{70}", "\u{1F140}" => "\u{71}", "\u{1F141}" => "\u{72}", "\u{1F142}" => "\u{73}", - "\u{1F143}" => "\u{74}", "\u{1F144}" => "\u{75}", "\u{1F145}" => "\u{76}", "\u{1F146}" => "\u{77}", - "\u{1F147}" => "\u{78}", "\u{1F148}" => "\u{79}", "\u{1F149}" => "\u{7A}", "\u{1F14A}" => "\u{68}\u{76}", - "\u{1F14B}" => "\u{6D}\u{76}", "\u{1F14C}" => "\u{73}\u{64}", "\u{1F14D}" => "\u{73}\u{73}", "\u{1F14E}" => "\u{70}\u{70}\u{76}", - "\u{1F14F}" => "\u{77}\u{63}", "\u{1F16A}" => "\u{6D}\u{63}", "\u{1F16B}" => "\u{6D}\u{64}", "\u{1F16C}" => "\u{6D}\u{72}", - "\u{1F190}" => "\u{64}\u{6A}", "\u{1F200}" => "\u{307B}\u{304B}", "\u{1F201}" => "\u{30B3}\u{30B3}", "\u{1F202}" => "\u{30B5}", - "\u{1F210}" => "\u{624B}", "\u{1F211}" => "\u{5B57}", "\u{1F212}" => "\u{53CC}", "\u{1F213}" => "\u{30C7}", - "\u{1F214}" => "\u{4E8C}", "\u{1F215}" => "\u{591A}", "\u{1F216}" => "\u{89E3}", "\u{1F217}" => "\u{5929}", - "\u{1F218}" => "\u{4EA4}", "\u{1F219}" => "\u{6620}", "\u{1F21A}" => "\u{7121}", "\u{1F21B}" => "\u{6599}", - "\u{1F21C}" => "\u{524D}", "\u{1F21D}" => "\u{5F8C}", "\u{1F21E}" => "\u{518D}", "\u{1F21F}" => "\u{65B0}", - "\u{1F220}" => "\u{521D}", "\u{1F221}" => "\u{7D42}", "\u{1F222}" => "\u{751F}", "\u{1F223}" => "\u{8CA9}", - "\u{1F224}" => "\u{58F0}", "\u{1F225}" => "\u{5439}", "\u{1F226}" => "\u{6F14}", "\u{1F227}" => "\u{6295}", - "\u{1F228}" => "\u{6355}", "\u{1F229}" => "\u{4E00}", "\u{1F22A}" => "\u{4E09}", "\u{1F22B}" => "\u{904A}", - "\u{1F22C}" => "\u{5DE6}", "\u{1F22D}" => "\u{4E2D}", "\u{1F22E}" => "\u{53F3}", "\u{1F22F}" => "\u{6307}", - "\u{1F230}" => "\u{8D70}", "\u{1F231}" => "\u{6253}", "\u{1F232}" => "\u{7981}", "\u{1F233}" => "\u{7A7A}", - "\u{1F234}" => "\u{5408}", "\u{1F235}" => "\u{6E80}", "\u{1F236}" => "\u{6709}", "\u{1F237}" => "\u{6708}", - "\u{1F238}" => "\u{7533}", "\u{1F239}" => "\u{5272}", "\u{1F23A}" => "\u{55B6}", "\u{1F23B}" => "\u{914D}", - "\u{1F240}" => "\u{3014}\u{672C}\u{3015}", "\u{1F241}" => "\u{3014}\u{4E09}\u{3015}", "\u{1F242}" => "\u{3014}\u{4E8C}\u{3015}", "\u{1F243}" => "\u{3014}\u{5B89}\u{3015}", - "\u{1F244}" => "\u{3014}\u{70B9}\u{3015}", "\u{1F245}" => "\u{3014}\u{6253}\u{3015}", "\u{1F246}" => "\u{3014}\u{76D7}\u{3015}", "\u{1F247}" => "\u{3014}\u{52DD}\u{3015}", - "\u{1F248}" => "\u{3014}\u{6557}\u{3015}", "\u{1F250}" => "\u{5F97}", "\u{1F251}" => "\u{53EF}", "\u{1FBF0}" => "\u{30}", - "\u{1FBF1}" => "\u{31}", "\u{1FBF2}" => "\u{32}", "\u{1FBF3}" => "\u{33}", "\u{1FBF4}" => "\u{34}", - "\u{1FBF5}" => "\u{35}", "\u{1FBF6}" => "\u{36}", "\u{1FBF7}" => "\u{37}", "\u{1FBF8}" => "\u{38}", - "\u{1FBF9}" => "\u{39}", "\u{2F800}" => "\u{4E3D}", "\u{2F801}" => "\u{4E38}", "\u{2F802}" => "\u{4E41}", - "\u{2F803}" => "\u{20122}", "\u{2F804}" => "\u{4F60}", "\u{2F805}" => "\u{4FAE}", "\u{2F806}" => "\u{4FBB}", - "\u{2F807}" => "\u{5002}", "\u{2F808}" => "\u{507A}", "\u{2F809}" => "\u{5099}", "\u{2F80A}" => "\u{50E7}", - "\u{2F80B}" => "\u{50CF}", "\u{2F80C}" => "\u{349E}", "\u{2F80D}" => "\u{2063A}", "\u{2F80E}" => "\u{514D}", - "\u{2F80F}" => "\u{5154}", "\u{2F810}" => "\u{5164}", "\u{2F811}" => "\u{5177}", "\u{2F812}" => "\u{2051C}", - "\u{2F813}" => "\u{34B9}", "\u{2F814}" => "\u{5167}", "\u{2F815}" => "\u{518D}", "\u{2F816}" => "\u{2054B}", - "\u{2F817}" => "\u{5197}", "\u{2F818}" => "\u{51A4}", "\u{2F819}" => "\u{4ECC}", "\u{2F81A}" => "\u{51AC}", - "\u{2F81B}" => "\u{51B5}", "\u{2F81C}" => "\u{291DF}", "\u{2F81D}" => "\u{51F5}", "\u{2F81E}" => "\u{5203}", - "\u{2F81F}" => "\u{34DF}", "\u{2F820}" => "\u{523B}", "\u{2F821}" => "\u{5246}", "\u{2F822}" => "\u{5272}", - "\u{2F823}" => "\u{5277}", "\u{2F824}" => "\u{3515}", "\u{2F825}" => "\u{52C7}", "\u{2F826}" => "\u{52C9}", - "\u{2F827}" => "\u{52E4}", "\u{2F828}" => "\u{52FA}", "\u{2F829}" => "\u{5305}", "\u{2F82A}" => "\u{5306}", - "\u{2F82B}" => "\u{5317}", "\u{2F82C}" => "\u{5349}", "\u{2F82D}" => "\u{5351}", "\u{2F82E}" => "\u{535A}", - "\u{2F82F}" => "\u{5373}", "\u{2F830}" => "\u{537D}", "\u{2F831}" => "\u{537F}", "\u{2F832}" => "\u{537F}", - "\u{2F833}" => "\u{537F}", "\u{2F834}" => "\u{20A2C}", "\u{2F835}" => "\u{7070}", "\u{2F836}" => "\u{53CA}", - "\u{2F837}" => "\u{53DF}", "\u{2F838}" => "\u{20B63}", "\u{2F839}" => "\u{53EB}", "\u{2F83A}" => "\u{53F1}", - "\u{2F83B}" => "\u{5406}", "\u{2F83C}" => "\u{549E}", "\u{2F83D}" => "\u{5438}", "\u{2F83E}" => "\u{5448}", - "\u{2F83F}" => "\u{5468}", "\u{2F840}" => "\u{54A2}", "\u{2F841}" => "\u{54F6}", "\u{2F842}" => "\u{5510}", - "\u{2F843}" => "\u{5553}", "\u{2F844}" => "\u{5563}", "\u{2F845}" => "\u{5584}", "\u{2F846}" => "\u{5584}", - "\u{2F847}" => "\u{5599}", "\u{2F848}" => "\u{55AB}", "\u{2F849}" => "\u{55B3}", "\u{2F84A}" => "\u{55C2}", - "\u{2F84B}" => "\u{5716}", "\u{2F84C}" => "\u{5606}", "\u{2F84D}" => "\u{5717}", "\u{2F84E}" => "\u{5651}", - "\u{2F84F}" => "\u{5674}", "\u{2F850}" => "\u{5207}", "\u{2F851}" => "\u{58EE}", "\u{2F852}" => "\u{57CE}", - "\u{2F853}" => "\u{57F4}", "\u{2F854}" => "\u{580D}", "\u{2F855}" => "\u{578B}", "\u{2F856}" => "\u{5832}", - "\u{2F857}" => "\u{5831}", "\u{2F858}" => "\u{58AC}", "\u{2F859}" => "\u{214E4}", "\u{2F85A}" => "\u{58F2}", - "\u{2F85B}" => "\u{58F7}", "\u{2F85C}" => "\u{5906}", "\u{2F85D}" => "\u{591A}", "\u{2F85E}" => "\u{5922}", - "\u{2F85F}" => "\u{5962}", "\u{2F860}" => "\u{216A8}", "\u{2F861}" => "\u{216EA}", "\u{2F862}" => "\u{59EC}", - "\u{2F863}" => "\u{5A1B}", "\u{2F864}" => "\u{5A27}", "\u{2F865}" => "\u{59D8}", "\u{2F866}" => "\u{5A66}", - "\u{2F867}" => "\u{36EE}", "\u{2F868}" => "\u{36FC}", "\u{2F869}" => "\u{5B08}", "\u{2F86A}" => "\u{5B3E}", - "\u{2F86B}" => "\u{5B3E}", "\u{2F86C}" => "\u{219C8}", "\u{2F86D}" => "\u{5BC3}", "\u{2F86E}" => "\u{5BD8}", - "\u{2F86F}" => "\u{5BE7}", "\u{2F870}" => "\u{5BF3}", "\u{2F871}" => "\u{21B18}", "\u{2F872}" => "\u{5BFF}", - "\u{2F873}" => "\u{5C06}", "\u{2F874}" => "\u{5F53}", "\u{2F875}" => "\u{5C22}", "\u{2F876}" => "\u{3781}", - "\u{2F877}" => "\u{5C60}", "\u{2F878}" => "\u{5C6E}", "\u{2F879}" => "\u{5CC0}", "\u{2F87A}" => "\u{5C8D}", - "\u{2F87B}" => "\u{21DE4}", "\u{2F87C}" => "\u{5D43}", "\u{2F87D}" => "\u{21DE6}", "\u{2F87E}" => "\u{5D6E}", - "\u{2F87F}" => "\u{5D6B}", "\u{2F880}" => "\u{5D7C}", "\u{2F881}" => "\u{5DE1}", "\u{2F882}" => "\u{5DE2}", - "\u{2F883}" => "\u{382F}", "\u{2F884}" => "\u{5DFD}", "\u{2F885}" => "\u{5E28}", "\u{2F886}" => "\u{5E3D}", - "\u{2F887}" => "\u{5E69}", "\u{2F888}" => "\u{3862}", "\u{2F889}" => "\u{22183}", "\u{2F88A}" => "\u{387C}", - "\u{2F88B}" => "\u{5EB0}", "\u{2F88C}" => "\u{5EB3}", "\u{2F88D}" => "\u{5EB6}", "\u{2F88E}" => "\u{5ECA}", - "\u{2F88F}" => "\u{2A392}", "\u{2F890}" => "\u{5EFE}", "\u{2F891}" => "\u{22331}", "\u{2F892}" => "\u{22331}", - "\u{2F893}" => "\u{8201}", "\u{2F894}" => "\u{5F22}", "\u{2F895}" => "\u{5F22}", "\u{2F896}" => "\u{38C7}", - "\u{2F897}" => "\u{232B8}", "\u{2F898}" => "\u{261DA}", "\u{2F899}" => "\u{5F62}", "\u{2F89A}" => "\u{5F6B}", - "\u{2F89B}" => "\u{38E3}", "\u{2F89C}" => "\u{5F9A}", "\u{2F89D}" => "\u{5FCD}", "\u{2F89E}" => "\u{5FD7}", - "\u{2F89F}" => "\u{5FF9}", "\u{2F8A0}" => "\u{6081}", "\u{2F8A1}" => "\u{393A}", "\u{2F8A2}" => "\u{391C}", - "\u{2F8A3}" => "\u{6094}", "\u{2F8A4}" => "\u{226D4}", "\u{2F8A5}" => "\u{60C7}", "\u{2F8A6}" => "\u{6148}", - "\u{2F8A7}" => "\u{614C}", "\u{2F8A8}" => "\u{614E}", "\u{2F8A9}" => "\u{614C}", "\u{2F8AA}" => "\u{617A}", - "\u{2F8AB}" => "\u{618E}", "\u{2F8AC}" => "\u{61B2}", "\u{2F8AD}" => "\u{61A4}", "\u{2F8AE}" => "\u{61AF}", - "\u{2F8AF}" => "\u{61DE}", "\u{2F8B0}" => "\u{61F2}", "\u{2F8B1}" => "\u{61F6}", "\u{2F8B2}" => "\u{6210}", - "\u{2F8B3}" => "\u{621B}", "\u{2F8B4}" => "\u{625D}", "\u{2F8B5}" => "\u{62B1}", "\u{2F8B6}" => "\u{62D4}", - "\u{2F8B7}" => "\u{6350}", "\u{2F8B8}" => "\u{22B0C}", "\u{2F8B9}" => "\u{633D}", "\u{2F8BA}" => "\u{62FC}", - "\u{2F8BB}" => "\u{6368}", "\u{2F8BC}" => "\u{6383}", "\u{2F8BD}" => "\u{63E4}", "\u{2F8BE}" => "\u{22BF1}", - "\u{2F8BF}" => "\u{6422}", "\u{2F8C0}" => "\u{63C5}", "\u{2F8C1}" => "\u{63A9}", "\u{2F8C2}" => "\u{3A2E}", - "\u{2F8C3}" => "\u{6469}", "\u{2F8C4}" => "\u{647E}", "\u{2F8C5}" => "\u{649D}", "\u{2F8C6}" => "\u{6477}", - "\u{2F8C7}" => "\u{3A6C}", "\u{2F8C8}" => "\u{654F}", "\u{2F8C9}" => "\u{656C}", "\u{2F8CA}" => "\u{2300A}", - "\u{2F8CB}" => "\u{65E3}", "\u{2F8CC}" => "\u{66F8}", "\u{2F8CD}" => "\u{6649}", "\u{2F8CE}" => "\u{3B19}", - "\u{2F8CF}" => "\u{6691}", "\u{2F8D0}" => "\u{3B08}", "\u{2F8D1}" => "\u{3AE4}", "\u{2F8D2}" => "\u{5192}", - "\u{2F8D3}" => "\u{5195}", "\u{2F8D4}" => "\u{6700}", "\u{2F8D5}" => "\u{669C}", "\u{2F8D6}" => "\u{80AD}", - "\u{2F8D7}" => "\u{43D9}", "\u{2F8D8}" => "\u{6717}", "\u{2F8D9}" => "\u{671B}", "\u{2F8DA}" => "\u{6721}", - "\u{2F8DB}" => "\u{675E}", "\u{2F8DC}" => "\u{6753}", "\u{2F8DD}" => "\u{233C3}", "\u{2F8DE}" => "\u{3B49}", - "\u{2F8DF}" => "\u{67FA}", "\u{2F8E0}" => "\u{6785}", "\u{2F8E1}" => "\u{6852}", "\u{2F8E2}" => "\u{6885}", - "\u{2F8E3}" => "\u{2346D}", "\u{2F8E4}" => "\u{688E}", "\u{2F8E5}" => "\u{681F}", "\u{2F8E6}" => "\u{6914}", - "\u{2F8E7}" => "\u{3B9D}", "\u{2F8E8}" => "\u{6942}", "\u{2F8E9}" => "\u{69A3}", "\u{2F8EA}" => "\u{69EA}", - "\u{2F8EB}" => "\u{6AA8}", "\u{2F8EC}" => "\u{236A3}", "\u{2F8ED}" => "\u{6ADB}", "\u{2F8EE}" => "\u{3C18}", - "\u{2F8EF}" => "\u{6B21}", "\u{2F8F0}" => "\u{238A7}", "\u{2F8F1}" => "\u{6B54}", "\u{2F8F2}" => "\u{3C4E}", - "\u{2F8F3}" => "\u{6B72}", "\u{2F8F4}" => "\u{6B9F}", "\u{2F8F5}" => "\u{6BBA}", "\u{2F8F6}" => "\u{6BBB}", - "\u{2F8F7}" => "\u{23A8D}", "\u{2F8F8}" => "\u{21D0B}", "\u{2F8F9}" => "\u{23AFA}", "\u{2F8FA}" => "\u{6C4E}", - "\u{2F8FB}" => "\u{23CBC}", "\u{2F8FC}" => "\u{6CBF}", "\u{2F8FD}" => "\u{6CCD}", "\u{2F8FE}" => "\u{6C67}", - "\u{2F8FF}" => "\u{6D16}", "\u{2F900}" => "\u{6D3E}", "\u{2F901}" => "\u{6D77}", "\u{2F902}" => "\u{6D41}", - "\u{2F903}" => "\u{6D69}", "\u{2F904}" => "\u{6D78}", "\u{2F905}" => "\u{6D85}", "\u{2F906}" => "\u{23D1E}", - "\u{2F907}" => "\u{6D34}", "\u{2F908}" => "\u{6E2F}", "\u{2F909}" => "\u{6E6E}", "\u{2F90A}" => "\u{3D33}", - "\u{2F90B}" => "\u{6ECB}", "\u{2F90C}" => "\u{6EC7}", "\u{2F90D}" => "\u{23ED1}", "\u{2F90E}" => "\u{6DF9}", - "\u{2F90F}" => "\u{6F6E}", "\u{2F910}" => "\u{23F5E}", "\u{2F911}" => "\u{23F8E}", "\u{2F912}" => "\u{6FC6}", - "\u{2F913}" => "\u{7039}", "\u{2F914}" => "\u{701E}", "\u{2F915}" => "\u{701B}", "\u{2F916}" => "\u{3D96}", - "\u{2F917}" => "\u{704A}", "\u{2F918}" => "\u{707D}", "\u{2F919}" => "\u{7077}", "\u{2F91A}" => "\u{70AD}", - "\u{2F91B}" => "\u{20525}", "\u{2F91C}" => "\u{7145}", "\u{2F91D}" => "\u{24263}", "\u{2F91E}" => "\u{719C}", - "\u{2F91F}" => "\u{243AB}", "\u{2F920}" => "\u{7228}", "\u{2F921}" => "\u{7235}", "\u{2F922}" => "\u{7250}", - "\u{2F923}" => "\u{24608}", "\u{2F924}" => "\u{7280}", "\u{2F925}" => "\u{7295}", "\u{2F926}" => "\u{24735}", - "\u{2F927}" => "\u{24814}", "\u{2F928}" => "\u{737A}", "\u{2F929}" => "\u{738B}", "\u{2F92A}" => "\u{3EAC}", - "\u{2F92B}" => "\u{73A5}", "\u{2F92C}" => "\u{3EB8}", "\u{2F92D}" => "\u{3EB8}", "\u{2F92E}" => "\u{7447}", - "\u{2F92F}" => "\u{745C}", "\u{2F930}" => "\u{7471}", "\u{2F931}" => "\u{7485}", "\u{2F932}" => "\u{74CA}", - "\u{2F933}" => "\u{3F1B}", "\u{2F934}" => "\u{7524}", "\u{2F935}" => "\u{24C36}", "\u{2F936}" => "\u{753E}", - "\u{2F937}" => "\u{24C92}", "\u{2F938}" => "\u{7570}", "\u{2F939}" => "\u{2219F}", "\u{2F93A}" => "\u{7610}", - "\u{2F93B}" => "\u{24FA1}", "\u{2F93C}" => "\u{24FB8}", "\u{2F93D}" => "\u{25044}", "\u{2F93E}" => "\u{3FFC}", - "\u{2F93F}" => "\u{4008}", "\u{2F940}" => "\u{76F4}", "\u{2F941}" => "\u{250F3}", "\u{2F942}" => "\u{250F2}", - "\u{2F943}" => "\u{25119}", "\u{2F944}" => "\u{25133}", "\u{2F945}" => "\u{771E}", "\u{2F946}" => "\u{771F}", - "\u{2F947}" => "\u{771F}", "\u{2F948}" => "\u{774A}", "\u{2F949}" => "\u{4039}", "\u{2F94A}" => "\u{778B}", - "\u{2F94B}" => "\u{4046}", "\u{2F94C}" => "\u{4096}", "\u{2F94D}" => "\u{2541D}", "\u{2F94E}" => "\u{784E}", - "\u{2F94F}" => "\u{788C}", "\u{2F950}" => "\u{78CC}", "\u{2F951}" => "\u{40E3}", "\u{2F952}" => "\u{25626}", - "\u{2F953}" => "\u{7956}", "\u{2F954}" => "\u{2569A}", "\u{2F955}" => "\u{256C5}", "\u{2F956}" => "\u{798F}", - "\u{2F957}" => "\u{79EB}", "\u{2F958}" => "\u{412F}", "\u{2F959}" => "\u{7A40}", "\u{2F95A}" => "\u{7A4A}", - "\u{2F95B}" => "\u{7A4F}", "\u{2F95C}" => "\u{2597C}", "\u{2F95D}" => "\u{25AA7}", "\u{2F95E}" => "\u{25AA7}", - "\u{2F95F}" => "\u{7AEE}", "\u{2F960}" => "\u{4202}", "\u{2F961}" => "\u{25BAB}", "\u{2F962}" => "\u{7BC6}", - "\u{2F963}" => "\u{7BC9}", "\u{2F964}" => "\u{4227}", "\u{2F965}" => "\u{25C80}", "\u{2F966}" => "\u{7CD2}", - "\u{2F967}" => "\u{42A0}", "\u{2F968}" => "\u{7CE8}", "\u{2F969}" => "\u{7CE3}", "\u{2F96A}" => "\u{7D00}", - "\u{2F96B}" => "\u{25F86}", "\u{2F96C}" => "\u{7D63}", "\u{2F96D}" => "\u{4301}", "\u{2F96E}" => "\u{7DC7}", - "\u{2F96F}" => "\u{7E02}", "\u{2F970}" => "\u{7E45}", "\u{2F971}" => "\u{4334}", "\u{2F972}" => "\u{26228}", - "\u{2F973}" => "\u{26247}", "\u{2F974}" => "\u{4359}", "\u{2F975}" => "\u{262D9}", "\u{2F976}" => "\u{7F7A}", - "\u{2F977}" => "\u{2633E}", "\u{2F978}" => "\u{7F95}", "\u{2F979}" => "\u{7FFA}", "\u{2F97A}" => "\u{8005}", - "\u{2F97B}" => "\u{264DA}", "\u{2F97C}" => "\u{26523}", "\u{2F97D}" => "\u{8060}", "\u{2F97E}" => "\u{265A8}", - "\u{2F97F}" => "\u{8070}", "\u{2F980}" => "\u{2335F}", "\u{2F981}" => "\u{43D5}", "\u{2F982}" => "\u{80B2}", - "\u{2F983}" => "\u{8103}", "\u{2F984}" => "\u{440B}", "\u{2F985}" => "\u{813E}", "\u{2F986}" => "\u{5AB5}", - "\u{2F987}" => "\u{267A7}", "\u{2F988}" => "\u{267B5}", "\u{2F989}" => "\u{23393}", "\u{2F98A}" => "\u{2339C}", - "\u{2F98B}" => "\u{8201}", "\u{2F98C}" => "\u{8204}", "\u{2F98D}" => "\u{8F9E}", "\u{2F98E}" => "\u{446B}", - "\u{2F98F}" => "\u{8291}", "\u{2F990}" => "\u{828B}", "\u{2F991}" => "\u{829D}", "\u{2F992}" => "\u{52B3}", - "\u{2F993}" => "\u{82B1}", "\u{2F994}" => "\u{82B3}", "\u{2F995}" => "\u{82BD}", "\u{2F996}" => "\u{82E6}", - "\u{2F997}" => "\u{26B3C}", "\u{2F998}" => "\u{82E5}", "\u{2F999}" => "\u{831D}", "\u{2F99A}" => "\u{8363}", - "\u{2F99B}" => "\u{83AD}", "\u{2F99C}" => "\u{8323}", "\u{2F99D}" => "\u{83BD}", "\u{2F99E}" => "\u{83E7}", - "\u{2F99F}" => "\u{8457}", "\u{2F9A0}" => "\u{8353}", "\u{2F9A1}" => "\u{83CA}", "\u{2F9A2}" => "\u{83CC}", - "\u{2F9A3}" => "\u{83DC}", "\u{2F9A4}" => "\u{26C36}", "\u{2F9A5}" => "\u{26D6B}", "\u{2F9A6}" => "\u{26CD5}", - "\u{2F9A7}" => "\u{452B}", "\u{2F9A8}" => "\u{84F1}", "\u{2F9A9}" => "\u{84F3}", "\u{2F9AA}" => "\u{8516}", - "\u{2F9AB}" => "\u{273CA}", "\u{2F9AC}" => "\u{8564}", "\u{2F9AD}" => "\u{26F2C}", "\u{2F9AE}" => "\u{455D}", - "\u{2F9AF}" => "\u{4561}", "\u{2F9B0}" => "\u{26FB1}", "\u{2F9B1}" => "\u{270D2}", "\u{2F9B2}" => "\u{456B}", - "\u{2F9B3}" => "\u{8650}", "\u{2F9B4}" => "\u{865C}", "\u{2F9B5}" => "\u{8667}", "\u{2F9B6}" => "\u{8669}", - "\u{2F9B7}" => "\u{86A9}", "\u{2F9B8}" => "\u{8688}", "\u{2F9B9}" => "\u{870E}", "\u{2F9BA}" => "\u{86E2}", - "\u{2F9BB}" => "\u{8779}", "\u{2F9BC}" => "\u{8728}", "\u{2F9BD}" => "\u{876B}", "\u{2F9BE}" => "\u{8786}", - "\u{2F9BF}" => "\u{45D7}", "\u{2F9C0}" => "\u{87E1}", "\u{2F9C1}" => "\u{8801}", "\u{2F9C2}" => "\u{45F9}", - "\u{2F9C3}" => "\u{8860}", "\u{2F9C4}" => "\u{8863}", "\u{2F9C5}" => "\u{27667}", "\u{2F9C6}" => "\u{88D7}", - "\u{2F9C7}" => "\u{88DE}", "\u{2F9C8}" => "\u{4635}", "\u{2F9C9}" => "\u{88FA}", "\u{2F9CA}" => "\u{34BB}", - "\u{2F9CB}" => "\u{278AE}", "\u{2F9CC}" => "\u{27966}", "\u{2F9CD}" => "\u{46BE}", "\u{2F9CE}" => "\u{46C7}", - "\u{2F9CF}" => "\u{8AA0}", "\u{2F9D0}" => "\u{8AED}", "\u{2F9D1}" => "\u{8B8A}", "\u{2F9D2}" => "\u{8C55}", - "\u{2F9D3}" => "\u{27CA8}", "\u{2F9D4}" => "\u{8CAB}", "\u{2F9D5}" => "\u{8CC1}", "\u{2F9D6}" => "\u{8D1B}", - "\u{2F9D7}" => "\u{8D77}", "\u{2F9D8}" => "\u{27F2F}", "\u{2F9D9}" => "\u{20804}", "\u{2F9DA}" => "\u{8DCB}", - "\u{2F9DB}" => "\u{8DBC}", "\u{2F9DC}" => "\u{8DF0}", "\u{2F9DD}" => "\u{208DE}", "\u{2F9DE}" => "\u{8ED4}", - "\u{2F9DF}" => "\u{8F38}", "\u{2F9E0}" => "\u{285D2}", "\u{2F9E1}" => "\u{285ED}", "\u{2F9E2}" => "\u{9094}", - "\u{2F9E3}" => "\u{90F1}", "\u{2F9E4}" => "\u{9111}", "\u{2F9E5}" => "\u{2872E}", "\u{2F9E6}" => "\u{911B}", - "\u{2F9E7}" => "\u{9238}", "\u{2F9E8}" => "\u{92D7}", "\u{2F9E9}" => "\u{92D8}", "\u{2F9EA}" => "\u{927C}", - "\u{2F9EB}" => "\u{93F9}", "\u{2F9EC}" => "\u{9415}", "\u{2F9ED}" => "\u{28BFA}", "\u{2F9EE}" => "\u{958B}", - "\u{2F9EF}" => "\u{4995}", "\u{2F9F0}" => "\u{95B7}", "\u{2F9F1}" => "\u{28D77}", "\u{2F9F2}" => "\u{49E6}", - "\u{2F9F3}" => "\u{96C3}", "\u{2F9F4}" => "\u{5DB2}", "\u{2F9F5}" => "\u{9723}", "\u{2F9F6}" => "\u{29145}", - "\u{2F9F7}" => "\u{2921A}", "\u{2F9F8}" => "\u{4A6E}", "\u{2F9F9}" => "\u{4A76}", "\u{2F9FA}" => "\u{97E0}", - "\u{2F9FB}" => "\u{2940A}", "\u{2F9FC}" => "\u{4AB2}", "\u{2F9FD}" => "\u{29496}", "\u{2F9FE}" => "\u{980B}", - "\u{2F9FF}" => "\u{980B}", "\u{2FA00}" => "\u{9829}", "\u{2FA01}" => "\u{295B6}", "\u{2FA02}" => "\u{98E2}", - "\u{2FA03}" => "\u{4B33}", "\u{2FA04}" => "\u{9929}", "\u{2FA05}" => "\u{99A7}", "\u{2FA06}" => "\u{99C2}", - "\u{2FA07}" => "\u{99FE}", "\u{2FA08}" => "\u{4BCE}", "\u{2FA09}" => "\u{29B30}", "\u{2FA0A}" => "\u{9B12}", - "\u{2FA0B}" => "\u{9C40}", "\u{2FA0C}" => "\u{9CFD}", "\u{2FA0D}" => "\u{4CCE}", "\u{2FA0E}" => "\u{4CED}", - "\u{2FA0F}" => "\u{9D67}", "\u{2FA10}" => "\u{2A0CE}", "\u{2FA11}" => "\u{4CF8}", "\u{2FA12}" => "\u{2A105}", - "\u{2FA13}" => "\u{2A20E}", "\u{2FA14}" => "\u{2A291}", "\u{2FA15}" => "\u{9EBB}", "\u{2FA16}" => "\u{4D56}", - "\u{2FA17}" => "\u{9EF9}", "\u{2FA18}" => "\u{9EFE}", "\u{2FA19}" => "\u{9F05}", "\u{2FA1A}" => "\u{9F0F}", - "\u{2FA1B}" => "\u{9F16}", "\u{2FA1C}" => "\u{9F3B}", "\u{2FA1D}" => "\u{2A600}", "\u{E0100}" => "", - "\u{E0101}" => "", "\u{E0102}" => "", "\u{E0103}" => "", "\u{E0104}" => "", - "\u{E0105}" => "", "\u{E0106}" => "", "\u{E0107}" => "", "\u{E0108}" => "", - "\u{E0109}" => "", "\u{E010A}" => "", "\u{E010B}" => "", "\u{E010C}" => "", - "\u{E010D}" => "", "\u{E010E}" => "", "\u{E010F}" => "", "\u{E0110}" => "", - "\u{E0111}" => "", "\u{E0112}" => "", "\u{E0113}" => "", "\u{E0114}" => "", - "\u{E0115}" => "", "\u{E0116}" => "", "\u{E0117}" => "", "\u{E0118}" => "", - "\u{E0119}" => "", "\u{E011A}" => "", "\u{E011B}" => "", "\u{E011C}" => "", - "\u{E011D}" => "", "\u{E011E}" => "", "\u{E011F}" => "", "\u{E0120}" => "", - "\u{E0121}" => "", "\u{E0122}" => "", "\u{E0123}" => "", "\u{E0124}" => "", - "\u{E0125}" => "", "\u{E0126}" => "", "\u{E0127}" => "", "\u{E0128}" => "", - "\u{E0129}" => "", "\u{E012A}" => "", "\u{E012B}" => "", "\u{E012C}" => "", - "\u{E012D}" => "", "\u{E012E}" => "", "\u{E012F}" => "", "\u{E0130}" => "", - "\u{E0131}" => "", "\u{E0132}" => "", "\u{E0133}" => "", "\u{E0134}" => "", - "\u{E0135}" => "", "\u{E0136}" => "", "\u{E0137}" => "", "\u{E0138}" => "", - "\u{E0139}" => "", "\u{E013A}" => "", "\u{E013B}" => "", "\u{E013C}" => "", - "\u{E013D}" => "", "\u{E013E}" => "", "\u{E013F}" => "", "\u{E0140}" => "", - "\u{E0141}" => "", "\u{E0142}" => "", "\u{E0143}" => "", "\u{E0144}" => "", - "\u{E0145}" => "", "\u{E0146}" => "", "\u{E0147}" => "", "\u{E0148}" => "", - "\u{E0149}" => "", "\u{E014A}" => "", "\u{E014B}" => "", "\u{E014C}" => "", - "\u{E014D}" => "", "\u{E014E}" => "", "\u{E014F}" => "", "\u{E0150}" => "", - "\u{E0151}" => "", "\u{E0152}" => "", "\u{E0153}" => "", "\u{E0154}" => "", - "\u{E0155}" => "", "\u{E0156}" => "", "\u{E0157}" => "", "\u{E0158}" => "", - "\u{E0159}" => "", "\u{E015A}" => "", "\u{E015B}" => "", "\u{E015C}" => "", - "\u{E015D}" => "", "\u{E015E}" => "", "\u{E015F}" => "", "\u{E0160}" => "", - "\u{E0161}" => "", "\u{E0162}" => "", "\u{E0163}" => "", "\u{E0164}" => "", - "\u{E0165}" => "", "\u{E0166}" => "", "\u{E0167}" => "", "\u{E0168}" => "", - "\u{E0169}" => "", "\u{E016A}" => "", "\u{E016B}" => "", "\u{E016C}" => "", - "\u{E016D}" => "", "\u{E016E}" => "", "\u{E016F}" => "", "\u{E0170}" => "", - "\u{E0171}" => "", "\u{E0172}" => "", "\u{E0173}" => "", "\u{E0174}" => "", - "\u{E0175}" => "", "\u{E0176}" => "", "\u{E0177}" => "", "\u{E0178}" => "", - "\u{E0179}" => "", "\u{E017A}" => "", "\u{E017B}" => "", "\u{E017C}" => "", - "\u{E017D}" => "", "\u{E017E}" => "", "\u{E017F}" => "", "\u{E0180}" => "", - "\u{E0181}" => "", "\u{E0182}" => "", "\u{E0183}" => "", "\u{E0184}" => "", - "\u{E0185}" => "", "\u{E0186}" => "", "\u{E0187}" => "", "\u{E0188}" => "", - "\u{E0189}" => "", "\u{E018A}" => "", "\u{E018B}" => "", "\u{E018C}" => "", - "\u{E018D}" => "", "\u{E018E}" => "", "\u{E018F}" => "", "\u{E0190}" => "", - "\u{E0191}" => "", "\u{E0192}" => "", "\u{E0193}" => "", "\u{E0194}" => "", - "\u{E0195}" => "", "\u{E0196}" => "", "\u{E0197}" => "", "\u{E0198}" => "", - "\u{E0199}" => "", "\u{E019A}" => "", "\u{E019B}" => "", "\u{E019C}" => "", - "\u{E019D}" => "", "\u{E019E}" => "", "\u{E019F}" => "", "\u{E01A0}" => "", - "\u{E01A1}" => "", "\u{E01A2}" => "", "\u{E01A3}" => "", "\u{E01A4}" => "", - "\u{E01A5}" => "", "\u{E01A6}" => "", "\u{E01A7}" => "", "\u{E01A8}" => "", - "\u{E01A9}" => "", "\u{E01AA}" => "", "\u{E01AB}" => "", "\u{E01AC}" => "", - "\u{E01AD}" => "", "\u{E01AE}" => "", "\u{E01AF}" => "", "\u{E01B0}" => "", - "\u{E01B1}" => "", "\u{E01B2}" => "", "\u{E01B3}" => "", "\u{E01B4}" => "", - "\u{E01B5}" => "", "\u{E01B6}" => "", "\u{E01B7}" => "", "\u{E01B8}" => "", - "\u{E01B9}" => "", "\u{E01BA}" => "", "\u{E01BB}" => "", "\u{E01BC}" => "", - "\u{E01BD}" => "", "\u{E01BE}" => "", "\u{E01BF}" => "", "\u{E01C0}" => "", - "\u{E01C1}" => "", "\u{E01C2}" => "", "\u{E01C3}" => "", "\u{E01C4}" => "", - "\u{E01C5}" => "", "\u{E01C6}" => "", "\u{E01C7}" => "", "\u{E01C8}" => "", - "\u{E01C9}" => "", "\u{E01CA}" => "", "\u{E01CB}" => "", "\u{E01CC}" => "", - "\u{E01CD}" => "", "\u{E01CE}" => "", "\u{E01CF}" => "", "\u{E01D0}" => "", - "\u{E01D1}" => "", "\u{E01D2}" => "", "\u{E01D3}" => "", "\u{E01D4}" => "", - "\u{E01D5}" => "", "\u{E01D6}" => "", "\u{E01D7}" => "", "\u{E01D8}" => "", - "\u{E01D9}" => "", "\u{E01DA}" => "", "\u{E01DB}" => "", "\u{E01DC}" => "", - "\u{E01DD}" => "", "\u{E01DE}" => "", "\u{E01DF}" => "", "\u{E01E0}" => "", - "\u{E01E1}" => "", "\u{E01E2}" => "", "\u{E01E3}" => "", "\u{E01E4}" => "", - "\u{E01E5}" => "", "\u{E01E6}" => "", "\u{E01E7}" => "", "\u{E01E8}" => "", - "\u{E01E9}" => "", "\u{E01EA}" => "", "\u{E01EB}" => "", "\u{E01EC}" => "", - "\u{E01ED}" => "", "\u{E01EE}" => "", "\u{E01EF}" => "", - }.freeze - - # A code point whose status is neither "valid" nor "deviation". - # A deviation is valid in Nontransitional Processing. - INVALID = /[^\u{0}-\u{40}\u{5B}-\u{7F}\u{A1}-\u{A7}\u{A9}\u{AB}-\u{AC}\u{AE}\u{B0}-\u{B1}\u{B6}-\u{B7}\u{BB}\u{BF}\u{D7}\u{DF}-\u{FF}\u{101}\u{103}\u{105}\u{107}\u{109}\u{10B}\u{10D}\u{10F}\u{111}\u{113}\u{115}\u{117}\u{119}\u{11B}\u{11D}\u{11F}\u{121}\u{123}\u{125}\u{127}\u{129}\u{12B}\u{12D}\u{12F}\u{131}\u{135}\u{137}-\u{138}\u{13A}\u{13C}\u{13E}\u{142}\u{144}\u{146}\u{148}\u{14B}\u{14D}\u{14F}\u{151}\u{153}\u{155}\u{157}\u{159}\u{15B}\u{15D}\u{15F}\u{161}\u{163}\u{165}\u{167}\u{169}\u{16B}\u{16D}\u{16F}\u{171}\u{173}\u{175}\u{177}\u{17A}\u{17C}\u{17E}\u{180}\u{183}\u{185}\u{188}\u{18C}-\u{18D}\u{192}\u{195}\u{199}-\u{19B}\u{19E}\u{1A1}\u{1A3}\u{1A5}\u{1A8}\u{1AA}-\u{1AB}\u{1AD}\u{1B0}\u{1B4}\u{1B6}\u{1B9}-\u{1BB}\u{1BD}-\u{1C3}\u{1CE}\u{1D0}\u{1D2}\u{1D4}\u{1D6}\u{1D8}\u{1DA}\u{1DC}-\u{1DD}\u{1DF}\u{1E1}\u{1E3}\u{1E5}\u{1E7}\u{1E9}\u{1EB}\u{1ED}\u{1EF}-\u{1F0}\u{1F5}\u{1F9}\u{1FB}\u{1FD}\u{1FF}\u{201}\u{203}\u{205}\u{207}\u{209}\u{20B}\u{20D}\u{20F}\u{211}\u{213}\u{215}\u{217}\u{219}\u{21B}\u{21D}\u{21F}\u{221}\u{223}\u{225}\u{227}\u{229}\u{22B}\u{22D}\u{22F}\u{231}\u{233}-\u{239}\u{23C}\u{23F}-\u{240}\u{242}\u{247}\u{249}\u{24B}\u{24D}\u{24F}-\u{2AF}\u{2B9}-\u{2D7}\u{2DE}-\u{2DF}\u{2E5}-\u{33F}\u{342}\u{346}-\u{34E}\u{350}-\u{36F}\u{371}\u{373}\u{375}\u{377}\u{37B}-\u{37D}\u{390}\u{3AC}-\u{3CE}\u{3D7}\u{3D9}\u{3DB}\u{3DD}\u{3DF}\u{3E1}\u{3E3}\u{3E5}\u{3E7}\u{3E9}\u{3EB}\u{3ED}\u{3EF}\u{3F3}\u{3F6}\u{3F8}\u{3FB}-\u{3FC}\u{430}-\u{45F}\u{461}\u{463}\u{465}\u{467}\u{469}\u{46B}\u{46D}\u{46F}\u{471}\u{473}\u{475}\u{477}\u{479}\u{47B}\u{47D}\u{47F}\u{481}-\u{489}\u{48B}\u{48D}\u{48F}\u{491}\u{493}\u{495}\u{497}\u{499}\u{49B}\u{49D}\u{49F}\u{4A1}\u{4A3}\u{4A5}\u{4A7}\u{4A9}\u{4AB}\u{4AD}\u{4AF}\u{4B1}\u{4B3}\u{4B5}\u{4B7}\u{4B9}\u{4BB}\u{4BD}\u{4BF}\u{4C2}\u{4C4}\u{4C6}\u{4C8}\u{4CA}\u{4CC}\u{4CE}-\u{4CF}\u{4D1}\u{4D3}\u{4D5}\u{4D7}\u{4D9}\u{4DB}\u{4DD}\u{4DF}\u{4E1}\u{4E3}\u{4E5}\u{4E7}\u{4E9}\u{4EB}\u{4ED}\u{4EF}\u{4F1}\u{4F3}\u{4F5}\u{4F7}\u{4F9}\u{4FB}\u{4FD}\u{4FF}\u{501}\u{503}\u{505}\u{507}\u{509}\u{50B}\u{50D}\u{50F}\u{511}\u{513}\u{515}\u{517}\u{519}\u{51B}\u{51D}\u{51F}\u{521}\u{523}\u{525}\u{527}\u{529}\u{52B}\u{52D}\u{52F}\u{559}-\u{586}\u{588}-\u{58A}\u{58D}-\u{58F}\u{591}-\u{5C9}\u{5D0}-\u{5EA}\u{5EF}-\u{5F4}\u{606}-\u{61B}\u{61D}-\u{674}\u{679}-\u{6DC}\u{6DE}-\u{70D}\u{710}-\u{74A}\u{74D}-\u{7B1}\u{7C0}-\u{7FA}\u{7FD}-\u{82D}\u{830}-\u{83E}\u{840}-\u{85B}\u{85E}\u{860}-\u{86A}\u{870}-\u{88F}\u{897}-\u{8E1}\u{8E3}-\u{957}\u{960}-\u{983}\u{985}-\u{98C}\u{98F}-\u{990}\u{993}-\u{9A8}\u{9AA}-\u{9B0}\u{9B2}\u{9B6}-\u{9B9}\u{9BC}-\u{9C4}\u{9C7}-\u{9C8}\u{9CB}-\u{9CE}\u{9D7}\u{9E0}-\u{9E3}\u{9E6}-\u{9FE}\u{A01}-\u{A03}\u{A05}-\u{A0A}\u{A0F}-\u{A10}\u{A13}-\u{A28}\u{A2A}-\u{A30}\u{A32}\u{A35}\u{A38}-\u{A39}\u{A3C}\u{A3E}-\u{A42}\u{A47}-\u{A48}\u{A4B}-\u{A4D}\u{A51}\u{A5C}\u{A66}-\u{A76}\u{A81}-\u{A83}\u{A85}-\u{A8D}\u{A8F}-\u{A91}\u{A93}-\u{AA8}\u{AAA}-\u{AB0}\u{AB2}-\u{AB3}\u{AB5}-\u{AB9}\u{ABC}-\u{AC5}\u{AC7}-\u{AC9}\u{ACB}-\u{ACD}\u{AD0}\u{AE0}-\u{AE3}\u{AE6}-\u{AF1}\u{AF9}-\u{AFF}\u{B01}-\u{B03}\u{B05}-\u{B0C}\u{B0F}-\u{B10}\u{B13}-\u{B28}\u{B2A}-\u{B30}\u{B32}-\u{B33}\u{B35}-\u{B39}\u{B3C}-\u{B44}\u{B47}-\u{B48}\u{B4B}-\u{B4D}\u{B53}-\u{B57}\u{B5F}-\u{B63}\u{B66}-\u{B77}\u{B82}-\u{B83}\u{B85}-\u{B8A}\u{B8E}-\u{B90}\u{B92}-\u{B95}\u{B99}-\u{B9A}\u{B9C}\u{B9E}-\u{B9F}\u{BA3}-\u{BA4}\u{BA8}-\u{BAA}\u{BAE}-\u{BB9}\u{BBE}-\u{BC2}\u{BC6}-\u{BC8}\u{BCA}-\u{BCD}\u{BD0}\u{BD7}\u{BE6}-\u{BFA}\u{C00}-\u{C0C}\u{C0E}-\u{C10}\u{C12}-\u{C28}\u{C2A}-\u{C39}\u{C3C}-\u{C44}\u{C46}-\u{C48}\u{C4A}-\u{C4D}\u{C55}-\u{C56}\u{C58}-\u{C5A}\u{C5C}-\u{C5D}\u{C60}-\u{C63}\u{C66}-\u{C6F}\u{C77}-\u{C8C}\u{C8E}-\u{C90}\u{C92}-\u{CA8}\u{CAA}-\u{CB3}\u{CB5}-\u{CB9}\u{CBC}-\u{CC4}\u{CC6}-\u{CC8}\u{CCA}-\u{CCD}\u{CD5}-\u{CD6}\u{CDC}-\u{CDE}\u{CE0}-\u{CE3}\u{CE6}-\u{CEF}\u{CF1}-\u{CF3}\u{D00}-\u{D0C}\u{D0E}-\u{D10}\u{D12}-\u{D44}\u{D46}-\u{D48}\u{D4A}-\u{D4F}\u{D54}-\u{D63}\u{D66}-\u{D7F}\u{D81}-\u{D83}\u{D85}-\u{D96}\u{D9A}-\u{DB1}\u{DB3}-\u{DBB}\u{DBD}\u{DC0}-\u{DC6}\u{DCA}\u{DCF}-\u{DD4}\u{DD6}\u{DD8}-\u{DDF}\u{DE6}-\u{DEF}\u{DF2}-\u{DF4}\u{E01}-\u{E32}\u{E34}-\u{E3A}\u{E3F}-\u{E5B}\u{E81}-\u{E82}\u{E84}\u{E86}-\u{E8A}\u{E8C}-\u{EA3}\u{EA5}\u{EA7}-\u{EB2}\u{EB4}-\u{EBD}\u{EC0}-\u{EC4}\u{EC6}\u{EC8}-\u{ECE}\u{ED0}-\u{ED9}\u{EDE}-\u{EDF}\u{F00}-\u{F0B}\u{F0D}-\u{F42}\u{F44}-\u{F47}\u{F49}-\u{F4C}\u{F4E}-\u{F51}\u{F53}-\u{F56}\u{F58}-\u{F5B}\u{F5D}-\u{F68}\u{F6A}-\u{F6C}\u{F71}-\u{F72}\u{F74}\u{F7A}-\u{F80}\u{F82}-\u{F92}\u{F94}-\u{F97}\u{F99}-\u{F9C}\u{F9E}-\u{FA1}\u{FA3}-\u{FA6}\u{FA8}-\u{FAB}\u{FAD}-\u{FB8}\u{FBA}-\u{FBC}\u{FBE}-\u{FCC}\u{FCE}-\u{FDA}\u{1000}-\u{109F}\u{10D0}-\u{10FB}\u{10FD}-\u{115E}\u{1161}-\u{1248}\u{124A}-\u{124D}\u{1250}-\u{1256}\u{1258}\u{125A}-\u{125D}\u{1260}-\u{1288}\u{128A}-\u{128D}\u{1290}-\u{12B0}\u{12B2}-\u{12B5}\u{12B8}-\u{12BE}\u{12C0}\u{12C2}-\u{12C5}\u{12C8}-\u{12D6}\u{12D8}-\u{1310}\u{1312}-\u{1315}\u{1318}-\u{135A}\u{135D}-\u{137C}\u{1380}-\u{1399}\u{13A0}-\u{13F5}\u{1400}-\u{167F}\u{1681}-\u{169C}\u{16A0}-\u{16F8}\u{1700}-\u{1715}\u{171F}-\u{1736}\u{1740}-\u{1753}\u{1760}-\u{176C}\u{176E}-\u{1770}\u{1772}-\u{1773}\u{1780}-\u{17B3}\u{17B6}-\u{17DD}\u{17E0}-\u{17E9}\u{17F0}-\u{17F9}\u{1800}-\u{180A}\u{1810}-\u{1819}\u{1820}-\u{1878}\u{1880}-\u{18AA}\u{18B0}-\u{18F5}\u{1900}-\u{191E}\u{1920}-\u{192B}\u{1930}-\u{193B}\u{1940}\u{1944}-\u{196D}\u{1970}-\u{1974}\u{1980}-\u{19AB}\u{19B0}-\u{19C9}\u{19D0}-\u{19DA}\u{19DE}-\u{1A1B}\u{1A1E}-\u{1A5E}\u{1A60}-\u{1A7C}\u{1A7F}-\u{1A89}\u{1A90}-\u{1A99}\u{1AA0}-\u{1AAD}\u{1AB0}-\u{1AF0}\u{1B00}-\u{1B4C}\u{1B4E}-\u{1BF3}\u{1BFC}-\u{1C37}\u{1C3B}-\u{1C49}\u{1C4D}-\u{1C7F}\u{1C8A}\u{1CC0}-\u{1CC7}\u{1CD0}-\u{1CFA}\u{1D00}-\u{1D2B}\u{1D2F}\u{1D3B}\u{1D4E}\u{1D6B}-\u{1D77}\u{1D79}-\u{1D9A}\u{1DC0}-\u{1DFF}\u{1E01}\u{1E03}\u{1E05}\u{1E07}\u{1E09}\u{1E0B}\u{1E0D}\u{1E0F}\u{1E11}\u{1E13}\u{1E15}\u{1E17}\u{1E19}\u{1E1B}\u{1E1D}\u{1E1F}\u{1E21}\u{1E23}\u{1E25}\u{1E27}\u{1E29}\u{1E2B}\u{1E2D}\u{1E2F}\u{1E31}\u{1E33}\u{1E35}\u{1E37}\u{1E39}\u{1E3B}\u{1E3D}\u{1E3F}\u{1E41}\u{1E43}\u{1E45}\u{1E47}\u{1E49}\u{1E4B}\u{1E4D}\u{1E4F}\u{1E51}\u{1E53}\u{1E55}\u{1E57}\u{1E59}\u{1E5B}\u{1E5D}\u{1E5F}\u{1E61}\u{1E63}\u{1E65}\u{1E67}\u{1E69}\u{1E6B}\u{1E6D}\u{1E6F}\u{1E71}\u{1E73}\u{1E75}\u{1E77}\u{1E79}\u{1E7B}\u{1E7D}\u{1E7F}\u{1E81}\u{1E83}\u{1E85}\u{1E87}\u{1E89}\u{1E8B}\u{1E8D}\u{1E8F}\u{1E91}\u{1E93}\u{1E95}-\u{1E99}\u{1E9C}-\u{1E9D}\u{1E9F}\u{1EA1}\u{1EA3}\u{1EA5}\u{1EA7}\u{1EA9}\u{1EAB}\u{1EAD}\u{1EAF}\u{1EB1}\u{1EB3}\u{1EB5}\u{1EB7}\u{1EB9}\u{1EBB}\u{1EBD}\u{1EBF}\u{1EC1}\u{1EC3}\u{1EC5}\u{1EC7}\u{1EC9}\u{1ECB}\u{1ECD}\u{1ECF}\u{1ED1}\u{1ED3}\u{1ED5}\u{1ED7}\u{1ED9}\u{1EDB}\u{1EDD}\u{1EDF}\u{1EE1}\u{1EE3}\u{1EE5}\u{1EE7}\u{1EE9}\u{1EEB}\u{1EED}\u{1EEF}\u{1EF1}\u{1EF3}\u{1EF5}\u{1EF7}\u{1EF9}\u{1EFB}\u{1EFD}\u{1EFF}-\u{1F07}\u{1F10}-\u{1F15}\u{1F20}-\u{1F27}\u{1F30}-\u{1F37}\u{1F40}-\u{1F45}\u{1F50}-\u{1F57}\u{1F60}-\u{1F67}\u{1F70}\u{1F72}\u{1F74}\u{1F76}\u{1F78}\u{1F7A}\u{1F7C}\u{1FB0}-\u{1FB1}\u{1FB6}\u{1FC6}\u{1FD0}-\u{1FD2}\u{1FD6}-\u{1FD7}\u{1FE0}-\u{1FE2}\u{1FE4}-\u{1FE7}\u{1FF6}\u{200C}-\u{200D}\u{2010}\u{2012}-\u{2016}\u{2018}-\u{2023}\u{2027}\u{2030}-\u{2032}\u{2035}\u{2038}-\u{203B}\u{203D}\u{203F}-\u{2046}\u{204A}-\u{2056}\u{2058}-\u{205E}\u{208F}\u{20A0}-\u{20A7}\u{20A9}-\u{20C4}\u{20D0}-\u{20F0}\u{2104}\u{2108}\u{2114}\u{2117}-\u{2118}\u{211E}-\u{211F}\u{2123}\u{2125}\u{2127}\u{2129}\u{212E}\u{213A}\u{2141}-\u{2144}\u{214A}-\u{214F}\u{2180}-\u{2182}\u{2184}-\u{2188}\u{218A}-\u{218B}\u{2190}-\u{222B}\u{222E}\u{2231}-\u{2328}\u{232B}-\u{2429}\u{2440}-\u{244A}\u{24EB}-\u{2A0B}\u{2A0D}-\u{2A73}\u{2A77}-\u{2ADB}\u{2ADD}-\u{2B73}\u{2B76}-\u{2BFF}\u{2C30}-\u{2C5F}\u{2C61}\u{2C65}-\u{2C66}\u{2C68}\u{2C6A}\u{2C6C}\u{2C71}\u{2C73}-\u{2C74}\u{2C76}-\u{2C7B}\u{2C81}\u{2C83}\u{2C85}\u{2C87}\u{2C89}\u{2C8B}\u{2C8D}\u{2C8F}\u{2C91}\u{2C93}\u{2C95}\u{2C97}\u{2C99}\u{2C9B}\u{2C9D}\u{2C9F}\u{2CA1}\u{2CA3}\u{2CA5}\u{2CA7}\u{2CA9}\u{2CAB}\u{2CAD}\u{2CAF}\u{2CB1}\u{2CB3}\u{2CB5}\u{2CB7}\u{2CB9}\u{2CBB}\u{2CBD}\u{2CBF}\u{2CC1}\u{2CC3}\u{2CC5}\u{2CC7}\u{2CC9}\u{2CCB}\u{2CCD}\u{2CCF}\u{2CD1}\u{2CD3}\u{2CD5}\u{2CD7}\u{2CD9}\u{2CDB}\u{2CDD}\u{2CDF}\u{2CE1}\u{2CE3}-\u{2CEA}\u{2CEC}\u{2CEE}-\u{2CF1}\u{2CF3}\u{2CF9}-\u{2D25}\u{2D27}\u{2D2D}\u{2D30}-\u{2D67}\u{2D70}\u{2D7F}-\u{2D96}\u{2DA0}-\u{2DA6}\u{2DA8}-\u{2DAE}\u{2DB0}-\u{2DB6}\u{2DB8}-\u{2DBE}\u{2DC0}-\u{2DC6}\u{2DC8}-\u{2DCE}\u{2DD0}-\u{2DD6}\u{2DD8}-\u{2DDE}\u{2DE0}-\u{2E5D}\u{2E60}-\u{2E63}\u{2E80}-\u{2E99}\u{2E9B}-\u{2E9E}\u{2EA0}-\u{2EF2}\u{3001}\u{3003}-\u{3035}\u{3037}\u{303B}-\u{303F}\u{3041}-\u{3096}\u{3099}-\u{309A}\u{309D}-\u{309E}\u{30A0}-\u{30FE}\u{3105}-\u{312F}\u{3190}-\u{3191}\u{31A0}-\u{31E5}\u{31F0}-\u{31FF}\u{3248}-\u{324F}\u{327F}\u{3400}-\u{A48C}\u{A490}-\u{A4C6}\u{A4D0}-\u{A62B}\u{A641}\u{A643}\u{A645}\u{A647}\u{A649}\u{A64B}\u{A64D}\u{A64F}\u{A651}\u{A653}\u{A655}\u{A657}\u{A659}\u{A65B}\u{A65D}\u{A65F}\u{A661}\u{A663}\u{A665}\u{A667}\u{A669}\u{A66B}\u{A66D}-\u{A67F}\u{A681}\u{A683}\u{A685}\u{A687}\u{A689}\u{A68B}\u{A68D}\u{A68F}\u{A691}\u{A693}\u{A695}\u{A697}\u{A699}\u{A69B}\u{A69E}-\u{A6F7}\u{A700}-\u{A721}\u{A723}\u{A725}\u{A727}\u{A729}\u{A72B}\u{A72D}\u{A72F}-\u{A731}\u{A733}\u{A735}\u{A737}\u{A739}\u{A73B}\u{A73D}\u{A73F}\u{A741}\u{A743}\u{A745}\u{A747}\u{A749}\u{A74B}\u{A74D}\u{A74F}\u{A751}\u{A753}\u{A755}\u{A757}\u{A759}\u{A75B}\u{A75D}\u{A75F}\u{A761}\u{A763}\u{A765}\u{A767}\u{A769}\u{A76B}\u{A76D}\u{A76F}\u{A771}-\u{A778}\u{A77A}\u{A77C}\u{A77F}\u{A781}\u{A783}\u{A785}\u{A787}-\u{A78A}\u{A78C}\u{A78E}-\u{A78F}\u{A791}\u{A793}-\u{A795}\u{A797}\u{A799}\u{A79B}\u{A79D}\u{A79F}\u{A7A1}\u{A7A3}\u{A7A5}\u{A7A7}\u{A7A9}\u{A7AF}\u{A7B5}\u{A7B7}\u{A7B9}\u{A7BB}\u{A7BD}\u{A7BF}\u{A7C1}\u{A7C3}\u{A7C8}\u{A7CA}\u{A7CD}\u{A7CF}\u{A7D1}\u{A7D3}\u{A7D5}\u{A7D7}\u{A7D9}\u{A7DB}\u{A7F6}-\u{A7F7}\u{A7FA}-\u{A82C}\u{A830}-\u{A839}\u{A840}-\u{A877}\u{A880}-\u{A8C5}\u{A8CE}-\u{A8D9}\u{A8E0}-\u{A953}\u{A95F}-\u{A97C}\u{A980}-\u{A9CD}\u{A9CF}-\u{A9D9}\u{A9DE}-\u{A9FE}\u{AA00}-\u{AA36}\u{AA40}-\u{AA4D}\u{AA50}-\u{AA59}\u{AA5C}-\u{AAC2}\u{AADB}-\u{AAF6}\u{AB01}-\u{AB06}\u{AB09}-\u{AB0E}\u{AB11}-\u{AB16}\u{AB20}-\u{AB26}\u{AB28}-\u{AB2E}\u{AB30}-\u{AB5B}\u{AB60}-\u{AB68}\u{AB6A}-\u{AB6B}\u{ABC0}-\u{ABED}\u{ABF0}-\u{ABF9}\u{AC00}-\u{D7A3}\u{D7B0}-\u{D7C6}\u{D7CB}-\u{D7FB}\u{FA0E}-\u{FA0F}\u{FA11}\u{FA13}-\u{FA14}\u{FA1F}\u{FA21}\u{FA23}-\u{FA24}\u{FA27}-\u{FA29}\u{FB1E}\u{FBB2}-\u{FBD2}\u{FD3E}-\u{FD4F}\u{FD90}-\u{FD91}\u{FDC8}-\u{FDCF}\u{FDFD}-\u{FDFF}\u{FE20}-\u{FE2F}\u{FE45}-\u{FE46}\u{FE73}\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}-\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10100}-\u{10102}\u{10107}-\u{10133}\u{10137}-\u{1018E}\u{10190}-\u{1019C}\u{101A0}\u{101D0}-\u{101FD}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{102E0}-\u{102FB}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{1037A}\u{10380}-\u{1039D}\u{1039F}-\u{103C3}\u{103C8}-\u{103D5}\u{10428}-\u{1049D}\u{104A0}-\u{104A9}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{1056F}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}-\u{105BC}\u{105C0}-\u{105F3}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}-\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}-\u{108F5}\u{108FB}-\u{1091B}\u{1091F}-\u{10939}\u{1093F}-\u{10959}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A03}\u{10A05}-\u{10A06}\u{10A0C}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A38}-\u{10A3A}\u{10A3F}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE6}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B39}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D27}\u{10D30}-\u{10D39}\u{10D40}-\u{10D4F}\u{10D69}-\u{10D85}\u{10D8E}-\u{10D8F}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EAB}-\u{10EAD}\u{10EB0}-\u{10EB1}\u{10EC2}-\u{10EC7}\u{10EC9}-\u{10EEE}\u{10EF0}-\u{10F27}\u{10F30}-\u{10F59}\u{10F70}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{11000}-\u{1104D}\u{11052}-\u{11075}\u{1107F}-\u{110BC}\u{110BE}-\u{110C2}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11100}-\u{11134}\u{11136}-\u{11147}\u{11150}-\u{11176}\u{11180}-\u{111DF}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{11241}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A9}\u{112B0}-\u{112EA}\u{112F0}-\u{112F9}\u{11300}-\u{11303}\u{11305}-\u{1130C}\u{1130F}-\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}-\u{11333}\u{11335}-\u{11339}\u{1133B}-\u{11344}\u{11347}-\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11380}-\u{11389}\u{1138B}\u{1138E}\u{11390}-\u{113B5}\u{113B7}-\u{113C0}\u{113C2}\u{113C5}\u{113C7}-\u{113CA}\u{113CC}-\u{113D5}\u{113D7}-\u{113D8}\u{113E1}-\u{113E2}\u{11400}-\u{1145B}\u{1145D}-\u{11461}\u{11480}-\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B5}\u{115B8}-\u{115DD}\u{11600}-\u{11644}\u{11650}-\u{11659}\u{11660}-\u{1166C}\u{11680}-\u{116B9}\u{116C0}-\u{116C9}\u{116D0}-\u{116E3}\u{11700}-\u{1171A}\u{1171D}-\u{1172B}\u{11730}-\u{11746}\u{11800}-\u{1183B}\u{118C0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}-\u{11916}\u{11918}-\u{11935}\u{11937}-\u{11938}\u{1193B}-\u{11946}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D7}\u{119DA}-\u{119E4}\u{11A00}-\u{11A47}\u{11A50}-\u{11AA2}\u{11AB0}-\u{11AF8}\u{11B00}-\u{11B0A}\u{11B60}-\u{11B67}\u{11BC0}-\u{11BE1}\u{11BF0}-\u{11BF9}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C36}\u{11C38}-\u{11C45}\u{11C50}-\u{11C6C}\u{11C70}-\u{11C8F}\u{11C92}-\u{11CA7}\u{11CA9}-\u{11CB6}\u{11D00}-\u{11D06}\u{11D08}-\u{11D09}\u{11D0B}-\u{11D36}\u{11D3A}\u{11D3C}-\u{11D3D}\u{11D3F}-\u{11D47}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}-\u{11D68}\u{11D6A}-\u{11D8E}\u{11D90}-\u{11D91}\u{11D93}-\u{11D98}\u{11DA0}-\u{11DA9}\u{11DB0}-\u{11DDB}\u{11DE0}-\u{11DE9}\u{11DF0}-\u{11DF1}\u{11EE0}-\u{11EF8}\u{11F00}-\u{11F10}\u{11F12}-\u{11F3A}\u{11F3E}-\u{11F5A}\u{11FB0}\u{11FC0}-\u{11FF1}\u{11FFF}-\u{12399}\u{12400}-\u{12543}\u{12550}-\u{12686}\u{12F90}-\u{12FF2}\u{13000}-\u{1342F}\u{13440}-\u{13455}\u{13460}-\u{143FA}\u{14400}-\u{14646}\u{16100}-\u{16139}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A6E}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF0}-\u{16AF5}\u{16B00}-\u{16B45}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16D40}-\u{16D79}\u{16E60}-\u{16E9A}\u{16EBB}-\u{16ED3}\u{16F00}-\u{16F4A}\u{16F4F}-\u{16F87}\u{16F8F}-\u{16F9F}\u{16FE0}-\u{16FE4}\u{16FF0}-\u{16FF6}\u{17000}-\u{18CDA}\u{18CFF}-\u{18D20}\u{18D80}-\u{18DF2}\u{18E00}-\u{19191}\u{191A0}-\u{191D2}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}-\u{1AFFE}\u{1B000}-\u{1B122}\u{1B127}-\u{1B128}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B168}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9C}-\u{1BC9F}\u{1CC00}-\u{1CCD5}\u{1CCFA}-\u{1CCFC}\u{1CD00}-\u{1CEB3}\u{1CEBA}-\u{1CED0}\u{1CED2}-\u{1CED4}\u{1CEDD}-\u{1CEFD}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D15D}\u{1D165}-\u{1D172}\u{1D17B}-\u{1D1BA}\u{1D1C1}-\u{1D245}\u{1D250}-\u{1D281}\u{1D2C0}-\u{1D2D3}\u{1D2E0}-\u{1D2F3}\u{1D300}-\u{1D356}\u{1D360}-\u{1D378}\u{1D800}-\u{1DA8B}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1DB00}-\u{1DB1C}\u{1DF00}-\u{1DF3F}\u{1DF41}-\u{1DF47}\u{1DF49}\u{1DF4B}-\u{1DF4C}\u{1DF4E}-\u{1DF50}\u{1DF52}-\u{1DF67}\u{1DF69}\u{1DF6B}\u{1DF6D}\u{1DF6F}-\u{1DF71}\u{1DF73}\u{1DF75}\u{1DF77}\u{1DF79}\u{1DF7B}\u{1DF7D}\u{1DF7F}-\u{1DF81}\u{1DF90}-\u{1DF94}\u{1DF96}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}-\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E100}-\u{1E12C}\u{1E130}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}-\u{1E14F}\u{1E290}-\u{1E2AE}\u{1E2C0}-\u{1E2F9}\u{1E2FF}\u{1E4D0}-\u{1E4F9}\u{1E5D0}-\u{1E5FA}\u{1E5FF}\u{1E6C0}-\u{1E6DE}\u{1E6E0}-\u{1E6F5}\u{1E6FE}-\u{1E6FF}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}-\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8D6}\u{1E922}-\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}-\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EEF0}-\u{1EEF1}\u{1F000}-\u{1F02B}\u{1F030}-\u{1F093}\u{1F0A0}-\u{1F0AE}\u{1F0B1}-\u{1F0BF}\u{1F0C1}-\u{1F0CF}\u{1F0D1}-\u{1F0F5}\u{1F10B}-\u{1F10F}\u{1F12F}\u{1F150}-\u{1F169}\u{1F16D}-\u{1F18F}\u{1F191}-\u{1F1AE}\u{1F1E6}-\u{1F1FF}\u{1F260}-\u{1F265}\u{1F300}-\u{1F6D9}\u{1F6DC}-\u{1F6EC}\u{1F6F0}-\u{1F6FC}\u{1F700}-\u{1F7DB}\u{1F7E0}-\u{1F7EB}\u{1F7F0}-\u{1F80B}\u{1F810}-\u{1F847}\u{1F850}-\u{1F859}\u{1F860}-\u{1F887}\u{1F890}-\u{1F8AD}\u{1F8B0}-\u{1F8BB}\u{1F8C0}-\u{1F8C1}\u{1F8D0}-\u{1F8D8}\u{1F900}-\u{1FA57}\u{1FA60}-\u{1FA6D}\u{1FA70}-\u{1FA7C}\u{1FA80}-\u{1FAC6}\u{1FAC8}\u{1FACC}-\u{1FADD}\u{1FADF}-\u{1FAEB}\u{1FAEF}-\u{1FAFA}\u{1FB00}-\u{1FB92}\u{1FB94}-\u{1FBEF}\u{1FBFA}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B81E}\u{2B820}-\u{2CEAD}\u{2CEB0}-\u{2EBE0}\u{2EBF0}-\u{2EE5D}\u{30000}-\u{3134A}\u{31350}-\u{33479}\u{3D000}-\u{3FC3F}]/ - - # General_Category=Mark, among the valid code points. - MARK = /[\u{300}-\u{33F}\u{342}\u{346}-\u{34E}\u{350}-\u{36F}\u{483}-\u{489}\u{591}-\u{5BD}\u{5BF}\u{5C1}-\u{5C2}\u{5C4}-\u{5C5}\u{5C7}-\u{5C9}\u{610}-\u{61A}\u{64B}-\u{65F}\u{670}\u{6D6}-\u{6DC}\u{6DF}-\u{6E4}\u{6E7}-\u{6E8}\u{6EA}-\u{6ED}\u{711}\u{730}-\u{74A}\u{7A6}-\u{7B0}\u{7EB}-\u{7F3}\u{7FD}\u{816}-\u{819}\u{81B}-\u{823}\u{825}-\u{827}\u{829}-\u{82D}\u{859}-\u{85B}\u{897}-\u{89F}\u{8CA}-\u{8E1}\u{8E3}-\u{903}\u{93A}-\u{93C}\u{93E}-\u{94F}\u{951}-\u{957}\u{962}-\u{963}\u{981}-\u{983}\u{9BC}\u{9BE}-\u{9C4}\u{9C7}-\u{9C8}\u{9CB}-\u{9CD}\u{9D7}\u{9E2}-\u{9E3}\u{9FE}\u{A01}-\u{A03}\u{A3C}\u{A3E}-\u{A42}\u{A47}-\u{A48}\u{A4B}-\u{A4D}\u{A51}\u{A70}-\u{A71}\u{A75}\u{A81}-\u{A83}\u{ABC}\u{ABE}-\u{AC5}\u{AC7}-\u{AC9}\u{ACB}-\u{ACD}\u{AE2}-\u{AE3}\u{AFA}-\u{AFF}\u{B01}-\u{B03}\u{B3C}\u{B3E}-\u{B44}\u{B47}-\u{B48}\u{B4B}-\u{B4D}\u{B53}-\u{B57}\u{B62}-\u{B63}\u{B82}\u{BBE}-\u{BC2}\u{BC6}-\u{BC8}\u{BCA}-\u{BCD}\u{BD7}\u{C00}-\u{C04}\u{C3C}\u{C3E}-\u{C44}\u{C46}-\u{C48}\u{C4A}-\u{C4D}\u{C55}-\u{C56}\u{C62}-\u{C63}\u{C81}-\u{C83}\u{CBC}\u{CBE}-\u{CC4}\u{CC6}-\u{CC8}\u{CCA}-\u{CCD}\u{CD5}-\u{CD6}\u{CE2}-\u{CE3}\u{CF3}\u{D00}-\u{D03}\u{D3B}-\u{D3C}\u{D3E}-\u{D44}\u{D46}-\u{D48}\u{D4A}-\u{D4D}\u{D57}\u{D62}-\u{D63}\u{D81}-\u{D83}\u{DCA}\u{DCF}-\u{DD4}\u{DD6}\u{DD8}-\u{DDF}\u{DF2}-\u{DF3}\u{E31}\u{E34}-\u{E3A}\u{E47}-\u{E4E}\u{EB1}\u{EB4}-\u{EBC}\u{EC8}-\u{ECE}\u{F18}-\u{F19}\u{F35}\u{F37}\u{F39}\u{F3E}-\u{F3F}\u{F71}-\u{F72}\u{F74}\u{F7A}-\u{F80}\u{F82}-\u{F84}\u{F86}-\u{F87}\u{F8D}-\u{F92}\u{F94}-\u{F97}\u{F99}-\u{F9C}\u{F9E}-\u{FA1}\u{FA3}-\u{FA6}\u{FA8}-\u{FAB}\u{FAD}-\u{FB8}\u{FBA}-\u{FBC}\u{FC6}\u{102B}-\u{103E}\u{1056}-\u{1059}\u{105E}-\u{1060}\u{1062}-\u{1064}\u{1067}-\u{106D}\u{1071}-\u{1074}\u{1082}-\u{108D}\u{108F}\u{109A}-\u{109D}\u{135D}-\u{135F}\u{1712}-\u{1715}\u{1732}-\u{1734}\u{1752}-\u{1753}\u{1772}-\u{1773}\u{17B6}-\u{17D3}\u{17DD}\u{1885}-\u{1886}\u{18A9}\u{1920}-\u{192B}\u{1930}-\u{193B}\u{1A17}-\u{1A1B}\u{1A55}-\u{1A5E}\u{1A60}-\u{1A7C}\u{1A7F}\u{1AB0}-\u{1AF0}\u{1B00}-\u{1B04}\u{1B34}-\u{1B44}\u{1B6B}-\u{1B73}\u{1B80}-\u{1B82}\u{1BA1}-\u{1BAD}\u{1BE6}-\u{1BF3}\u{1C24}-\u{1C37}\u{1CD0}-\u{1CD2}\u{1CD4}-\u{1CE8}\u{1CED}\u{1CF4}\u{1CF7}-\u{1CF9}\u{1DC0}-\u{1DFF}\u{20D0}-\u{20F0}\u{2CEF}-\u{2CF1}\u{2D7F}\u{2DE0}-\u{2DFF}\u{302A}-\u{302F}\u{3099}-\u{309A}\u{A66F}-\u{A672}\u{A674}-\u{A67D}\u{A69E}-\u{A69F}\u{A6F0}-\u{A6F1}\u{A802}\u{A806}\u{A80B}\u{A823}-\u{A827}\u{A82C}\u{A880}-\u{A881}\u{A8B4}-\u{A8C5}\u{A8E0}-\u{A8F1}\u{A8FF}\u{A926}-\u{A92D}\u{A947}-\u{A953}\u{A980}-\u{A983}\u{A9B3}-\u{A9C0}\u{A9E5}\u{AA29}-\u{AA36}\u{AA43}\u{AA4C}-\u{AA4D}\u{AA7B}-\u{AA7D}\u{AAB0}\u{AAB2}-\u{AAB4}\u{AAB7}-\u{AAB8}\u{AABE}-\u{AABF}\u{AAC1}\u{AAEB}-\u{AAEF}\u{AAF5}-\u{AAF6}\u{ABE3}-\u{ABEA}\u{ABEC}-\u{ABED}\u{FB1E}\u{FE20}-\u{FE2F}\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}-\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}-\u{10AE6}\u{10D24}-\u{10D27}\u{10D69}-\u{10D6D}\u{10EAB}-\u{10EAC}\u{10ECB}-\u{10ECF}\u{10EF0}-\u{10EFF}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11000}-\u{11002}\u{11038}-\u{11046}\u{11070}\u{11073}-\u{11074}\u{1107F}-\u{11082}\u{110B0}-\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{11134}\u{11145}-\u{11146}\u{11173}\u{11180}-\u{11182}\u{111B3}-\u{111C0}\u{111C9}-\u{111CC}\u{111CE}-\u{111CF}\u{1122C}-\u{11237}\u{1123E}\u{11241}\u{112DF}-\u{112EA}\u{11300}-\u{11303}\u{1133B}-\u{1133C}\u{1133E}-\u{11344}\u{11347}-\u{11348}\u{1134B}-\u{1134D}\u{11357}\u{11362}-\u{11363}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{113B8}-\u{113C0}\u{113C2}\u{113C5}\u{113C7}-\u{113CA}\u{113CC}-\u{113D0}\u{113D2}\u{113E1}-\u{113E2}\u{11435}-\u{11446}\u{1145E}\u{114B0}-\u{114C3}\u{115AF}-\u{115B5}\u{115B8}-\u{115C0}\u{115DC}-\u{115DD}\u{11630}-\u{11640}\u{116AB}-\u{116B7}\u{1171D}-\u{1172B}\u{1182C}-\u{1183A}\u{11930}-\u{11935}\u{11937}-\u{11938}\u{1193B}-\u{1193E}\u{11940}\u{11942}-\u{11943}\u{119D1}-\u{119D7}\u{119DA}-\u{119E0}\u{119E4}\u{11A01}-\u{11A0A}\u{11A33}-\u{11A39}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A5B}\u{11A8A}-\u{11A99}\u{11B60}-\u{11B67}\u{11C2F}-\u{11C36}\u{11C38}-\u{11C3F}\u{11C92}-\u{11CA7}\u{11CA9}-\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}-\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D8A}-\u{11D8E}\u{11D90}-\u{11D91}\u{11D93}-\u{11D97}\u{11DF0}\u{11EF3}-\u{11EF6}\u{11F00}-\u{11F01}\u{11F03}\u{11F34}-\u{11F3A}\u{11F3E}-\u{11F42}\u{11F5A}\u{13440}\u{13447}-\u{13455}\u{1611E}-\u{1612F}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F51}-\u{16F87}\u{16F8F}-\u{16F92}\u{16FE4}\u{16FF0}-\u{16FF1}\u{1BC9D}-\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D127}-\u{1D128}\u{1D165}-\u{1D169}\u{1D16D}-\u{1D172}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1D250}-\u{1D252}\u{1D25B}-\u{1D25C}\u{1D25F}\u{1D280}-\u{1D281}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}-\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E4EC}-\u{1E4EF}\u{1E5EE}-\u{1E5EF}\u{1E6E3}\u{1E6E6}\u{1E6EE}-\u{1E6EF}\u{1E6F5}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}]/ - - # Canonical_Combining_Class=Virama, among the valid code points. - VIRAMA = /[\u{94D}\u{9CD}\u{A4D}\u{ACD}\u{B4D}\u{BCD}\u{C4D}\u{CCD}\u{D3B}-\u{D3C}\u{D4D}\u{DCA}\u{E3A}\u{EBA}\u{F84}\u{1039}-\u{103A}\u{1714}-\u{1715}\u{1734}\u{17D2}\u{1A60}\u{1B44}\u{1BAA}-\u{1BAB}\u{1BF2}-\u{1BF3}\u{2D7F}\u{A806}\u{A82C}\u{A8C4}\u{A953}\u{A9C0}\u{AAF6}\u{ABED}\u{10A3F}\u{11046}\u{11070}\u{1107F}\u{110B9}\u{11133}-\u{11134}\u{111C0}\u{11235}\u{112EA}\u{1134D}\u{113CE}-\u{113D0}\u{11442}\u{114C2}\u{115BF}\u{1163F}\u{116B6}\u{1172B}\u{11839}\u{1193D}-\u{1193E}\u{119E0}\u{11A34}\u{11A47}\u{11A99}\u{11C3F}\u{11D44}-\u{11D45}\u{11D97}\u{11F41}-\u{11F42}\u{1612F}]/ - # Joining_Type, among the valid code points. JOINING_TYPE_L_OR_D = /[\u{620}\u{626}\u{628}\u{62A}-\u{62E}\u{633}-\u{63F}\u{641}-\u{647}\u{649}-\u{64A}\u{66E}-\u{66F}\u{679}-\u{687}\u{69A}-\u{6BF}\u{6C1}-\u{6C2}\u{6CC}\u{6CE}\u{6D0}-\u{6D1}\u{6FA}-\u{6FC}\u{6FF}\u{712}-\u{714}\u{71A}-\u{71D}\u{71F}-\u{727}\u{729}\u{72B}\u{72D}-\u{72E}\u{74E}-\u{758}\u{75C}-\u{76A}\u{76D}-\u{770}\u{772}\u{775}-\u{777}\u{77A}-\u{77F}\u{7CA}-\u{7EA}\u{841}-\u{845}\u{848}\u{84A}-\u{853}\u{855}\u{860}\u{862}-\u{865}\u{868}\u{886}\u{889}-\u{88D}\u{88F}\u{8A0}-\u{8A9}\u{8AF}-\u{8B0}\u{8B3}-\u{8B8}\u{8BA}-\u{8C8}\u{1807}\u{1820}-\u{1878}\u{1887}-\u{18A8}\u{18AA}\u{A840}-\u{A872}\u{10AC0}-\u{10AC4}\u{10ACD}\u{10AD3}-\u{10ADC}\u{10ADE}-\u{10AE0}\u{10AEB}-\u{10AEE}\u{10B80}\u{10B82}\u{10B86}-\u{10B88}\u{10B8A}-\u{10B8B}\u{10B8D}\u{10B90}\u{10BAD}-\u{10BAE}\u{10D00}-\u{10D21}\u{10D23}\u{10EC3}-\u{10EC4}\u{10EC6}-\u{10EC7}\u{10ED9}-\u{10EEE}\u{10F30}-\u{10F32}\u{10F34}-\u{10F44}\u{10F51}-\u{10F53}\u{10F70}-\u{10F73}\u{10F76}-\u{10F81}\u{10FB0}\u{10FB2}-\u{10FB3}\u{10FB8}\u{10FBB}-\u{10FBC}\u{10FBE}-\u{10FBF}\u{10FC1}\u{10FC4}\u{10FCA}-\u{10FCB}\u{1E922}-\u{1E943}]/ JOINING_TYPE_R_OR_D = /[\u{620}\u{622}-\u{63F}\u{641}-\u{64A}\u{66E}-\u{66F}\u{671}-\u{673}\u{679}-\u{6D3}\u{6D5}\u{6EE}-\u{6EF}\u{6FA}-\u{6FC}\u{6FF}\u{710}\u{712}-\u{72F}\u{74D}-\u{77F}\u{7CA}-\u{7EA}\u{840}-\u{858}\u{860}\u{862}-\u{865}\u{867}-\u{86A}\u{870}-\u{882}\u{886}\u{889}-\u{88F}\u{8A0}-\u{8AC}\u{8AE}-\u{8C8}\u{1807}\u{1820}-\u{1878}\u{1887}-\u{18A8}\u{18AA}\u{A840}-\u{A871}\u{10AC0}-\u{10AC5}\u{10AC7}\u{10AC9}-\u{10ACA}\u{10ACE}-\u{10AD6}\u{10AD8}-\u{10AE1}\u{10AE4}\u{10AEB}-\u{10AEF}\u{10B80}-\u{10B91}\u{10BA9}-\u{10BAE}\u{10D01}-\u{10D23}\u{10EC2}-\u{10EC4}\u{10EC6}-\u{10EC7}\u{10F30}-\u{10F44}\u{10F51}-\u{10F54}\u{10F70}-\u{10F81}\u{10FB0}\u{10FB2}-\u{10FB6}\u{10FB8}-\u{10FBF}\u{10FC1}-\u{10FC4}\u{10FC9}-\u{10FCA}\u{1E922}-\u{1E943}]/ JOINING_TYPE_T = /[\u{300}-\u{33F}\u{342}\u{346}-\u{34E}\u{350}-\u{36F}\u{483}-\u{489}\u{591}-\u{5BD}\u{5BF}\u{5C1}-\u{5C2}\u{5C4}-\u{5C5}\u{5C7}-\u{5C9}\u{610}-\u{61A}\u{64B}-\u{65F}\u{670}\u{6D6}-\u{6DC}\u{6DF}-\u{6E4}\u{6E7}-\u{6E8}\u{6EA}-\u{6ED}\u{711}\u{730}-\u{74A}\u{7A6}-\u{7B0}\u{7EB}-\u{7F3}\u{7FD}\u{816}-\u{819}\u{81B}-\u{823}\u{825}-\u{827}\u{829}-\u{82D}\u{859}-\u{85B}\u{897}-\u{89F}\u{8CA}-\u{8E1}\u{8E3}-\u{902}\u{93A}\u{93C}\u{941}-\u{948}\u{94D}\u{951}-\u{957}\u{962}-\u{963}\u{981}\u{9BC}\u{9C1}-\u{9C4}\u{9CD}\u{9E2}-\u{9E3}\u{9FE}\u{A01}-\u{A02}\u{A3C}\u{A41}-\u{A42}\u{A47}-\u{A48}\u{A4B}-\u{A4D}\u{A51}\u{A70}-\u{A71}\u{A75}\u{A81}-\u{A82}\u{ABC}\u{AC1}-\u{AC5}\u{AC7}-\u{AC8}\u{ACD}\u{AE2}-\u{AE3}\u{AFA}-\u{AFF}\u{B01}\u{B3C}\u{B3F}\u{B41}-\u{B44}\u{B4D}\u{B53}-\u{B56}\u{B62}-\u{B63}\u{B82}\u{BC0}\u{BCD}\u{C00}\u{C04}\u{C3C}\u{C3E}-\u{C40}\u{C46}-\u{C48}\u{C4A}-\u{C4D}\u{C55}-\u{C56}\u{C62}-\u{C63}\u{C81}\u{CBC}\u{CBF}\u{CC6}\u{CCC}-\u{CCD}\u{CE2}-\u{CE3}\u{D00}-\u{D01}\u{D3B}-\u{D3C}\u{D41}-\u{D44}\u{D4D}\u{D62}-\u{D63}\u{D81}\u{DCA}\u{DD2}-\u{DD4}\u{DD6}\u{E31}\u{E34}-\u{E3A}\u{E47}-\u{E4E}\u{EB1}\u{EB4}-\u{EBC}\u{EC8}-\u{ECE}\u{F18}-\u{F19}\u{F35}\u{F37}\u{F39}\u{F71}-\u{F72}\u{F74}\u{F7A}-\u{F7E}\u{F80}\u{F82}-\u{F84}\u{F86}-\u{F87}\u{F8D}-\u{F92}\u{F94}-\u{F97}\u{F99}-\u{F9C}\u{F9E}-\u{FA1}\u{FA3}-\u{FA6}\u{FA8}-\u{FAB}\u{FAD}-\u{FB8}\u{FBA}-\u{FBC}\u{FC6}\u{102D}-\u{1030}\u{1032}-\u{1037}\u{1039}-\u{103A}\u{103D}-\u{103E}\u{1058}-\u{1059}\u{105E}-\u{1060}\u{1071}-\u{1074}\u{1082}\u{1085}-\u{1086}\u{108D}\u{109D}\u{135D}-\u{135F}\u{1712}-\u{1714}\u{1732}-\u{1733}\u{1752}-\u{1753}\u{1772}-\u{1773}\u{17B7}-\u{17BD}\u{17C6}\u{17C9}-\u{17D3}\u{17DD}\u{1885}-\u{1886}\u{18A9}\u{1920}-\u{1922}\u{1927}-\u{1928}\u{1932}\u{1939}-\u{193B}\u{1A17}-\u{1A18}\u{1A1B}\u{1A56}\u{1A58}-\u{1A5E}\u{1A60}\u{1A62}\u{1A65}-\u{1A6C}\u{1A73}-\u{1A7C}\u{1A7F}\u{1AB0}-\u{1AF0}\u{1B00}-\u{1B03}\u{1B34}\u{1B36}-\u{1B3A}\u{1B3C}\u{1B42}\u{1B6B}-\u{1B73}\u{1B80}-\u{1B81}\u{1BA2}-\u{1BA5}\u{1BA8}-\u{1BA9}\u{1BAB}-\u{1BAD}\u{1BE6}\u{1BE8}-\u{1BE9}\u{1BED}\u{1BEF}-\u{1BF1}\u{1C2C}-\u{1C33}\u{1C36}-\u{1C37}\u{1CD0}-\u{1CD2}\u{1CD4}-\u{1CE0}\u{1CE2}-\u{1CE8}\u{1CED}\u{1CF4}\u{1CF8}-\u{1CF9}\u{1DC0}-\u{1DFF}\u{20D0}-\u{20F0}\u{2CEF}-\u{2CF1}\u{2D7F}\u{2DE0}-\u{2DFF}\u{302A}-\u{302D}\u{3099}-\u{309A}\u{A66F}-\u{A672}\u{A674}-\u{A67D}\u{A69E}-\u{A69F}\u{A6F0}-\u{A6F1}\u{A802}\u{A806}\u{A80B}\u{A825}-\u{A826}\u{A82C}\u{A8C4}-\u{A8C5}\u{A8E0}-\u{A8F1}\u{A8FF}\u{A926}-\u{A92D}\u{A947}-\u{A951}\u{A980}-\u{A982}\u{A9B3}\u{A9B6}-\u{A9B9}\u{A9BC}-\u{A9BD}\u{A9E5}\u{AA29}-\u{AA2E}\u{AA31}-\u{AA32}\u{AA35}-\u{AA36}\u{AA43}\u{AA4C}\u{AA7C}\u{AAB0}\u{AAB2}-\u{AAB4}\u{AAB7}-\u{AAB8}\u{AABE}-\u{AABF}\u{AAC1}\u{AAEC}-\u{AAED}\u{AAF6}\u{ABE5}\u{ABE8}\u{ABED}\u{FB1E}\u{FE20}-\u{FE2F}\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}-\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}-\u{10AE6}\u{10D24}-\u{10D27}\u{10D69}-\u{10D6D}\u{10EAB}-\u{10EAC}\u{10ECB}-\u{10ECF}\u{10EF0}-\u{10EFF}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11001}\u{11038}-\u{11046}\u{11070}\u{11073}-\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}-\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}-\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}-\u{11237}\u{1123E}\u{11241}\u{112DF}\u{112E3}-\u{112EA}\u{11300}-\u{11301}\u{1133B}-\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{113BB}-\u{113C0}\u{113CE}\u{113D0}\u{113D2}\u{113E1}-\u{113E2}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}-\u{114C0}\u{114C2}-\u{114C3}\u{115B2}-\u{115B5}\u{115BC}-\u{115BD}\u{115BF}-\u{115C0}\u{115DC}-\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}-\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}-\u{1183A}\u{1193B}-\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}-\u{119DB}\u{119E0}\u{11A01}-\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}-\u{11A99}\u{11B60}\u{11B62}-\u{11B64}\u{11B66}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C3F}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}-\u{11CB3}\u{11CB5}-\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}-\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}-\u{11D91}\u{11D95}\u{11D97}\u{11DF0}\u{11EF3}-\u{11EF4}\u{11F00}-\u{11F01}\u{11F36}-\u{11F3A}\u{11F40}\u{11F42}\u{11F5A}\u{13440}\u{13447}-\u{13455}\u{1611E}-\u{16129}\u{1612D}-\u{1612F}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE4}\u{1BC9D}-\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D127}-\u{1D128}\u{1D167}-\u{1D169}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1D25B}-\u{1D25C}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}-\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E4EC}-\u{1E4EF}\u{1E5EE}-\u{1E5EF}\u{1E6E3}\u{1E6E6}\u{1E6EE}-\u{1E6EF}\u{1E6F5}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94B}]/ - # Bidi_Class, among the valid code points. The values that the - # Bidi Rule (RFC 5893) always treats alike are grouped. - BIDI_L = /[\u{61}-\u{7A}\u{DF}-\u{F6}\u{F8}-\u{FF}\u{101}\u{103}\u{105}\u{107}\u{109}\u{10B}\u{10D}\u{10F}\u{111}\u{113}\u{115}\u{117}\u{119}\u{11B}\u{11D}\u{11F}\u{121}\u{123}\u{125}\u{127}\u{129}\u{12B}\u{12D}\u{12F}\u{131}\u{135}\u{137}-\u{138}\u{13A}\u{13C}\u{13E}\u{142}\u{144}\u{146}\u{148}\u{14B}\u{14D}\u{14F}\u{151}\u{153}\u{155}\u{157}\u{159}\u{15B}\u{15D}\u{15F}\u{161}\u{163}\u{165}\u{167}\u{169}\u{16B}\u{16D}\u{16F}\u{171}\u{173}\u{175}\u{177}\u{17A}\u{17C}\u{17E}\u{180}\u{183}\u{185}\u{188}\u{18C}-\u{18D}\u{192}\u{195}\u{199}-\u{19B}\u{19E}\u{1A1}\u{1A3}\u{1A5}\u{1A8}\u{1AA}-\u{1AB}\u{1AD}\u{1B0}\u{1B4}\u{1B6}\u{1B9}-\u{1BB}\u{1BD}-\u{1C3}\u{1CE}\u{1D0}\u{1D2}\u{1D4}\u{1D6}\u{1D8}\u{1DA}\u{1DC}-\u{1DD}\u{1DF}\u{1E1}\u{1E3}\u{1E5}\u{1E7}\u{1E9}\u{1EB}\u{1ED}\u{1EF}-\u{1F0}\u{1F5}\u{1F9}\u{1FB}\u{1FD}\u{1FF}\u{201}\u{203}\u{205}\u{207}\u{209}\u{20B}\u{20D}\u{20F}\u{211}\u{213}\u{215}\u{217}\u{219}\u{21B}\u{21D}\u{21F}\u{221}\u{223}\u{225}\u{227}\u{229}\u{22B}\u{22D}\u{22F}\u{231}\u{233}-\u{239}\u{23C}\u{23F}-\u{240}\u{242}\u{247}\u{249}\u{24B}\u{24D}\u{24F}-\u{2AF}\u{2BB}-\u{2C1}\u{2D0}-\u{2D1}\u{2EE}\u{371}\u{373}\u{377}\u{37B}-\u{37D}\u{390}\u{3AC}-\u{3CE}\u{3D7}\u{3D9}\u{3DB}\u{3DD}\u{3DF}\u{3E1}\u{3E3}\u{3E5}\u{3E7}\u{3E9}\u{3EB}\u{3ED}\u{3EF}\u{3F3}\u{3F8}\u{3FB}-\u{3FC}\u{430}-\u{45F}\u{461}\u{463}\u{465}\u{467}\u{469}\u{46B}\u{46D}\u{46F}\u{471}\u{473}\u{475}\u{477}\u{479}\u{47B}\u{47D}\u{47F}\u{481}-\u{482}\u{48B}\u{48D}\u{48F}\u{491}\u{493}\u{495}\u{497}\u{499}\u{49B}\u{49D}\u{49F}\u{4A1}\u{4A3}\u{4A5}\u{4A7}\u{4A9}\u{4AB}\u{4AD}\u{4AF}\u{4B1}\u{4B3}\u{4B5}\u{4B7}\u{4B9}\u{4BB}\u{4BD}\u{4BF}\u{4C2}\u{4C4}\u{4C6}\u{4C8}\u{4CA}\u{4CC}\u{4CE}-\u{4CF}\u{4D1}\u{4D3}\u{4D5}\u{4D7}\u{4D9}\u{4DB}\u{4DD}\u{4DF}\u{4E1}\u{4E3}\u{4E5}\u{4E7}\u{4E9}\u{4EB}\u{4ED}\u{4EF}\u{4F1}\u{4F3}\u{4F5}\u{4F7}\u{4F9}\u{4FB}\u{4FD}\u{4FF}\u{501}\u{503}\u{505}\u{507}\u{509}\u{50B}\u{50D}\u{50F}\u{511}\u{513}\u{515}\u{517}\u{519}\u{51B}\u{51D}\u{51F}\u{521}\u{523}\u{525}\u{527}\u{529}\u{52B}\u{52D}\u{52F}\u{559}-\u{586}\u{588}-\u{589}\u{903}-\u{939}\u{93B}\u{93D}-\u{940}\u{949}-\u{94C}\u{94E}-\u{950}\u{960}-\u{961}\u{964}-\u{980}\u{982}-\u{983}\u{985}-\u{98C}\u{98F}-\u{990}\u{993}-\u{9A8}\u{9AA}-\u{9B0}\u{9B2}\u{9B6}-\u{9B9}\u{9BD}-\u{9C0}\u{9C7}-\u{9C8}\u{9CB}-\u{9CC}\u{9CE}\u{9D7}\u{9E0}-\u{9E1}\u{9E6}-\u{9F1}\u{9F4}-\u{9FA}\u{9FC}-\u{9FD}\u{A03}\u{A05}-\u{A0A}\u{A0F}-\u{A10}\u{A13}-\u{A28}\u{A2A}-\u{A30}\u{A32}\u{A35}\u{A38}-\u{A39}\u{A3E}-\u{A40}\u{A5C}\u{A66}-\u{A6F}\u{A72}-\u{A74}\u{A76}\u{A83}\u{A85}-\u{A8D}\u{A8F}-\u{A91}\u{A93}-\u{AA8}\u{AAA}-\u{AB0}\u{AB2}-\u{AB3}\u{AB5}-\u{AB9}\u{ABD}-\u{AC0}\u{AC9}\u{ACB}-\u{ACC}\u{AD0}\u{AE0}-\u{AE1}\u{AE6}-\u{AF0}\u{AF9}\u{B02}-\u{B03}\u{B05}-\u{B0C}\u{B0F}-\u{B10}\u{B13}-\u{B28}\u{B2A}-\u{B30}\u{B32}-\u{B33}\u{B35}-\u{B39}\u{B3D}-\u{B3E}\u{B40}\u{B47}-\u{B48}\u{B4B}-\u{B4C}\u{B57}\u{B5F}-\u{B61}\u{B66}-\u{B77}\u{B83}\u{B85}-\u{B8A}\u{B8E}-\u{B90}\u{B92}-\u{B95}\u{B99}-\u{B9A}\u{B9C}\u{B9E}-\u{B9F}\u{BA3}-\u{BA4}\u{BA8}-\u{BAA}\u{BAE}-\u{BB9}\u{BBE}-\u{BBF}\u{BC1}-\u{BC2}\u{BC6}-\u{BC8}\u{BCA}-\u{BCC}\u{BD0}\u{BD7}\u{BE6}-\u{BF2}\u{C01}-\u{C03}\u{C05}-\u{C0C}\u{C0E}-\u{C10}\u{C12}-\u{C28}\u{C2A}-\u{C39}\u{C3D}\u{C41}-\u{C44}\u{C58}-\u{C5A}\u{C5C}-\u{C5D}\u{C60}-\u{C61}\u{C66}-\u{C6F}\u{C77}\u{C7F}-\u{C80}\u{C82}-\u{C8C}\u{C8E}-\u{C90}\u{C92}-\u{CA8}\u{CAA}-\u{CB3}\u{CB5}-\u{CB9}\u{CBD}-\u{CC4}\u{CC6}-\u{CC8}\u{CCA}-\u{CCB}\u{CD5}-\u{CD6}\u{CDC}-\u{CDE}\u{CE0}-\u{CE1}\u{CE6}-\u{CEF}\u{CF1}-\u{CF3}\u{D02}-\u{D0C}\u{D0E}-\u{D10}\u{D12}-\u{D3A}\u{D3D}-\u{D40}\u{D46}-\u{D48}\u{D4A}-\u{D4C}\u{D4E}-\u{D4F}\u{D54}-\u{D61}\u{D66}-\u{D7F}\u{D82}-\u{D83}\u{D85}-\u{D96}\u{D9A}-\u{DB1}\u{DB3}-\u{DBB}\u{DBD}\u{DC0}-\u{DC6}\u{DCF}-\u{DD1}\u{DD8}-\u{DDF}\u{DE6}-\u{DEF}\u{DF2}-\u{DF4}\u{E01}-\u{E30}\u{E32}\u{E40}-\u{E46}\u{E4F}-\u{E5B}\u{E81}-\u{E82}\u{E84}\u{E86}-\u{E8A}\u{E8C}-\u{EA3}\u{EA5}\u{EA7}-\u{EB0}\u{EB2}\u{EBD}\u{EC0}-\u{EC4}\u{EC6}\u{ED0}-\u{ED9}\u{EDE}-\u{EDF}\u{F00}-\u{F0B}\u{F0D}-\u{F17}\u{F1A}-\u{F34}\u{F36}\u{F38}\u{F3E}-\u{F42}\u{F44}-\u{F47}\u{F49}-\u{F4C}\u{F4E}-\u{F51}\u{F53}-\u{F56}\u{F58}-\u{F5B}\u{F5D}-\u{F68}\u{F6A}-\u{F6C}\u{F7F}\u{F85}\u{F88}-\u{F8C}\u{FBE}-\u{FC5}\u{FC7}-\u{FCC}\u{FCE}-\u{FDA}\u{1000}-\u{102C}\u{1031}\u{1038}\u{103B}-\u{103C}\u{103F}-\u{1057}\u{105A}-\u{105D}\u{1061}-\u{1070}\u{1075}-\u{1081}\u{1083}-\u{1084}\u{1087}-\u{108C}\u{108E}-\u{109C}\u{109E}-\u{109F}\u{10D0}-\u{10FB}\u{10FD}-\u{115E}\u{1161}-\u{1248}\u{124A}-\u{124D}\u{1250}-\u{1256}\u{1258}\u{125A}-\u{125D}\u{1260}-\u{1288}\u{128A}-\u{128D}\u{1290}-\u{12B0}\u{12B2}-\u{12B5}\u{12B8}-\u{12BE}\u{12C0}\u{12C2}-\u{12C5}\u{12C8}-\u{12D6}\u{12D8}-\u{1310}\u{1312}-\u{1315}\u{1318}-\u{135A}\u{1360}-\u{137C}\u{1380}-\u{138F}\u{13A0}-\u{13F5}\u{1401}-\u{167F}\u{1681}-\u{169A}\u{16A0}-\u{16F8}\u{1700}-\u{1711}\u{1715}\u{171F}-\u{1731}\u{1734}-\u{1736}\u{1740}-\u{1751}\u{1760}-\u{176C}\u{176E}-\u{1770}\u{1780}-\u{17B3}\u{17B6}\u{17BE}-\u{17C5}\u{17C7}-\u{17C8}\u{17D4}-\u{17DA}\u{17DC}\u{17E0}-\u{17E9}\u{1810}-\u{1819}\u{1820}-\u{1878}\u{1880}-\u{1884}\u{1887}-\u{18A8}\u{18AA}\u{18B0}-\u{18F5}\u{1900}-\u{191E}\u{1923}-\u{1926}\u{1929}-\u{192B}\u{1930}-\u{1931}\u{1933}-\u{1938}\u{1946}-\u{196D}\u{1970}-\u{1974}\u{1980}-\u{19AB}\u{19B0}-\u{19C9}\u{19D0}-\u{19DA}\u{1A00}-\u{1A16}\u{1A19}-\u{1A1A}\u{1A1E}-\u{1A55}\u{1A57}\u{1A61}\u{1A63}-\u{1A64}\u{1A6D}-\u{1A72}\u{1A80}-\u{1A89}\u{1A90}-\u{1A99}\u{1AA0}-\u{1AAD}\u{1B04}-\u{1B33}\u{1B35}\u{1B3A}-\u{1B4C}\u{1B4E}-\u{1B6A}\u{1B74}-\u{1B7F}\u{1B82}-\u{1BA1}\u{1BA6}-\u{1BA7}\u{1BAA}\u{1BAE}-\u{1BE5}\u{1BE7}\u{1BEA}-\u{1BEC}\u{1BEE}\u{1BF2}-\u{1BF3}\u{1BFC}-\u{1C2B}\u{1C34}-\u{1C35}\u{1C3B}-\u{1C49}\u{1C4D}-\u{1C7F}\u{1C8A}\u{1CC0}-\u{1CC7}\u{1CD3}\u{1CE1}\u{1CE9}-\u{1CEC}\u{1CEE}-\u{1CF3}\u{1CF5}-\u{1CF7}\u{1CFA}\u{1D00}-\u{1D2B}\u{1D2F}\u{1D3B}\u{1D4E}\u{1D6B}-\u{1D77}\u{1D79}-\u{1D9A}\u{1E01}\u{1E03}\u{1E05}\u{1E07}\u{1E09}\u{1E0B}\u{1E0D}\u{1E0F}\u{1E11}\u{1E13}\u{1E15}\u{1E17}\u{1E19}\u{1E1B}\u{1E1D}\u{1E1F}\u{1E21}\u{1E23}\u{1E25}\u{1E27}\u{1E29}\u{1E2B}\u{1E2D}\u{1E2F}\u{1E31}\u{1E33}\u{1E35}\u{1E37}\u{1E39}\u{1E3B}\u{1E3D}\u{1E3F}\u{1E41}\u{1E43}\u{1E45}\u{1E47}\u{1E49}\u{1E4B}\u{1E4D}\u{1E4F}\u{1E51}\u{1E53}\u{1E55}\u{1E57}\u{1E59}\u{1E5B}\u{1E5D}\u{1E5F}\u{1E61}\u{1E63}\u{1E65}\u{1E67}\u{1E69}\u{1E6B}\u{1E6D}\u{1E6F}\u{1E71}\u{1E73}\u{1E75}\u{1E77}\u{1E79}\u{1E7B}\u{1E7D}\u{1E7F}\u{1E81}\u{1E83}\u{1E85}\u{1E87}\u{1E89}\u{1E8B}\u{1E8D}\u{1E8F}\u{1E91}\u{1E93}\u{1E95}-\u{1E99}\u{1E9C}-\u{1E9D}\u{1E9F}\u{1EA1}\u{1EA3}\u{1EA5}\u{1EA7}\u{1EA9}\u{1EAB}\u{1EAD}\u{1EAF}\u{1EB1}\u{1EB3}\u{1EB5}\u{1EB7}\u{1EB9}\u{1EBB}\u{1EBD}\u{1EBF}\u{1EC1}\u{1EC3}\u{1EC5}\u{1EC7}\u{1EC9}\u{1ECB}\u{1ECD}\u{1ECF}\u{1ED1}\u{1ED3}\u{1ED5}\u{1ED7}\u{1ED9}\u{1EDB}\u{1EDD}\u{1EDF}\u{1EE1}\u{1EE3}\u{1EE5}\u{1EE7}\u{1EE9}\u{1EEB}\u{1EED}\u{1EEF}\u{1EF1}\u{1EF3}\u{1EF5}\u{1EF7}\u{1EF9}\u{1EFB}\u{1EFD}\u{1EFF}-\u{1F07}\u{1F10}-\u{1F15}\u{1F20}-\u{1F27}\u{1F30}-\u{1F37}\u{1F40}-\u{1F45}\u{1F50}-\u{1F57}\u{1F60}-\u{1F67}\u{1F70}\u{1F72}\u{1F74}\u{1F76}\u{1F78}\u{1F7A}\u{1F7C}\u{1FB0}-\u{1FB1}\u{1FB6}\u{1FC6}\u{1FD0}-\u{1FD2}\u{1FD6}-\u{1FD7}\u{1FE0}-\u{1FE2}\u{1FE4}-\u{1FE7}\u{1FF6}\u{214E}-\u{214F}\u{2180}-\u{2182}\u{2184}-\u{2188}\u{2336}-\u{237A}\u{2395}\u{26AC}\u{2800}-\u{28FF}\u{2C30}-\u{2C5F}\u{2C61}\u{2C65}-\u{2C66}\u{2C68}\u{2C6A}\u{2C6C}\u{2C71}\u{2C73}-\u{2C74}\u{2C76}-\u{2C7B}\u{2C81}\u{2C83}\u{2C85}\u{2C87}\u{2C89}\u{2C8B}\u{2C8D}\u{2C8F}\u{2C91}\u{2C93}\u{2C95}\u{2C97}\u{2C99}\u{2C9B}\u{2C9D}\u{2C9F}\u{2CA1}\u{2CA3}\u{2CA5}\u{2CA7}\u{2CA9}\u{2CAB}\u{2CAD}\u{2CAF}\u{2CB1}\u{2CB3}\u{2CB5}\u{2CB7}\u{2CB9}\u{2CBB}\u{2CBD}\u{2CBF}\u{2CC1}\u{2CC3}\u{2CC5}\u{2CC7}\u{2CC9}\u{2CCB}\u{2CCD}\u{2CCF}\u{2CD1}\u{2CD3}\u{2CD5}\u{2CD7}\u{2CD9}\u{2CDB}\u{2CDD}\u{2CDF}\u{2CE1}\u{2CE3}-\u{2CE4}\u{2CEC}\u{2CEE}\u{2CF3}\u{2D00}-\u{2D25}\u{2D27}\u{2D2D}\u{2D30}-\u{2D67}\u{2D70}\u{2D80}-\u{2D96}\u{2DA0}-\u{2DA6}\u{2DA8}-\u{2DAE}\u{2DB0}-\u{2DB6}\u{2DB8}-\u{2DBE}\u{2DC0}-\u{2DC6}\u{2DC8}-\u{2DCE}\u{2DD0}-\u{2DD6}\u{2DD8}-\u{2DDE}\u{3005}-\u{3007}\u{3021}-\u{3029}\u{302E}-\u{302F}\u{3031}-\u{3035}\u{303B}-\u{303C}\u{3041}-\u{3096}\u{309D}-\u{309E}\u{30A1}-\u{30FA}\u{30FC}-\u{30FE}\u{3105}-\u{312F}\u{3190}-\u{3191}\u{31A0}-\u{31BF}\u{31F0}-\u{31FF}\u{3248}-\u{324F}\u{327F}\u{3400}-\u{4DBF}\u{4E00}-\u{A48C}\u{A4D0}-\u{A60C}\u{A610}-\u{A62B}\u{A641}\u{A643}\u{A645}\u{A647}\u{A649}\u{A64B}\u{A64D}\u{A64F}\u{A651}\u{A653}\u{A655}\u{A657}\u{A659}\u{A65B}\u{A65D}\u{A65F}\u{A661}\u{A663}\u{A665}\u{A667}\u{A669}\u{A66B}\u{A66D}-\u{A66E}\u{A681}\u{A683}\u{A685}\u{A687}\u{A689}\u{A68B}\u{A68D}\u{A68F}\u{A691}\u{A693}\u{A695}\u{A697}\u{A699}\u{A69B}\u{A6A0}-\u{A6EF}\u{A6F2}-\u{A6F7}\u{A723}\u{A725}\u{A727}\u{A729}\u{A72B}\u{A72D}\u{A72F}-\u{A731}\u{A733}\u{A735}\u{A737}\u{A739}\u{A73B}\u{A73D}\u{A73F}\u{A741}\u{A743}\u{A745}\u{A747}\u{A749}\u{A74B}\u{A74D}\u{A74F}\u{A751}\u{A753}\u{A755}\u{A757}\u{A759}\u{A75B}\u{A75D}\u{A75F}\u{A761}\u{A763}\u{A765}\u{A767}\u{A769}\u{A76B}\u{A76D}\u{A76F}\u{A771}-\u{A778}\u{A77A}\u{A77C}\u{A77F}\u{A781}\u{A783}\u{A785}\u{A787}\u{A789}-\u{A78A}\u{A78C}\u{A78E}-\u{A78F}\u{A791}\u{A793}-\u{A795}\u{A797}\u{A799}\u{A79B}\u{A79D}\u{A79F}\u{A7A1}\u{A7A3}\u{A7A5}\u{A7A7}\u{A7A9}\u{A7AF}\u{A7B5}\u{A7B7}\u{A7B9}\u{A7BB}\u{A7BD}\u{A7BF}\u{A7C1}\u{A7C3}\u{A7C8}\u{A7CA}\u{A7CD}\u{A7CF}\u{A7D1}\u{A7D3}\u{A7D5}\u{A7D7}\u{A7D9}\u{A7DB}\u{A7F6}-\u{A7F7}\u{A7FA}-\u{A801}\u{A803}-\u{A805}\u{A807}-\u{A80A}\u{A80C}-\u{A824}\u{A827}\u{A830}-\u{A837}\u{A840}-\u{A873}\u{A880}-\u{A8C3}\u{A8CE}-\u{A8D9}\u{A8F2}-\u{A8FE}\u{A900}-\u{A925}\u{A92E}-\u{A946}\u{A952}-\u{A953}\u{A95F}-\u{A97C}\u{A983}-\u{A9B2}\u{A9B4}-\u{A9B5}\u{A9BA}-\u{A9BB}\u{A9BE}-\u{A9CD}\u{A9CF}-\u{A9D9}\u{A9DE}-\u{A9E4}\u{A9E6}-\u{A9FE}\u{AA00}-\u{AA28}\u{AA2F}-\u{AA30}\u{AA33}-\u{AA34}\u{AA40}-\u{AA42}\u{AA44}-\u{AA4B}\u{AA4D}\u{AA50}-\u{AA59}\u{AA5C}-\u{AA7B}\u{AA7D}-\u{AAAF}\u{AAB1}\u{AAB5}-\u{AAB6}\u{AAB9}-\u{AABD}\u{AAC0}\u{AAC2}\u{AADB}-\u{AAEB}\u{AAEE}-\u{AAF5}\u{AB01}-\u{AB06}\u{AB09}-\u{AB0E}\u{AB11}-\u{AB16}\u{AB20}-\u{AB26}\u{AB28}-\u{AB2E}\u{AB30}-\u{AB5B}\u{AB60}-\u{AB68}\u{ABC0}-\u{ABE4}\u{ABE6}-\u{ABE7}\u{ABE9}-\u{ABEC}\u{ABF0}-\u{ABF9}\u{AC00}-\u{D7A3}\u{D7B0}-\u{D7C6}\u{D7CB}-\u{D7FB}\u{FA0E}-\u{FA0F}\u{FA11}\u{FA13}-\u{FA14}\u{FA1F}\u{FA21}\u{FA23}-\u{FA24}\u{FA27}-\u{FA29}\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}-\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10100}\u{10102}\u{10107}-\u{10133}\u{10137}-\u{1013F}\u{1018D}-\u{1018E}\u{101D0}-\u{101FC}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{1039F}-\u{103C3}\u{103C8}-\u{103D5}\u{10428}-\u{1049D}\u{104A0}-\u{104A9}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{1056F}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}-\u{105BC}\u{105C0}-\u{105F3}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}\u{11000}\u{11002}-\u{11037}\u{11047}-\u{1104D}\u{11066}-\u{1106F}\u{11071}-\u{11072}\u{11075}\u{11082}-\u{110B2}\u{110B7}-\u{110B8}\u{110BB}-\u{110BC}\u{110BE}-\u{110C1}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11103}-\u{11126}\u{1112C}\u{11136}-\u{11147}\u{11150}-\u{11172}\u{11174}-\u{11176}\u{11182}-\u{111B5}\u{111BF}-\u{111C8}\u{111CD}-\u{111CE}\u{111D0}-\u{111DF}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{1122E}\u{11232}-\u{11233}\u{11235}\u{11238}-\u{1123D}\u{1123F}-\u{11240}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A9}\u{112B0}-\u{112DE}\u{112E0}-\u{112E2}\u{112F0}-\u{112F9}\u{11302}-\u{11303}\u{11305}-\u{1130C}\u{1130F}-\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}-\u{11333}\u{11335}-\u{11339}\u{1133D}-\u{1133F}\u{11341}-\u{11344}\u{11347}-\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11380}-\u{11389}\u{1138B}\u{1138E}\u{11390}-\u{113B5}\u{113B7}-\u{113BA}\u{113C2}\u{113C5}\u{113C7}-\u{113CA}\u{113CC}-\u{113CD}\u{113CF}\u{113D1}\u{113D3}-\u{113D5}\u{113D7}-\u{113D8}\u{11400}-\u{11437}\u{11440}-\u{11441}\u{11445}\u{11447}-\u{1145B}\u{1145D}\u{1145F}-\u{11461}\u{11480}-\u{114B2}\u{114B9}\u{114BB}-\u{114BE}\u{114C1}\u{114C4}-\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B1}\u{115B8}-\u{115BB}\u{115BE}\u{115C1}-\u{115DB}\u{11600}-\u{11632}\u{1163B}-\u{1163C}\u{1163E}\u{11641}-\u{11644}\u{11650}-\u{11659}\u{11680}-\u{116AA}\u{116AC}\u{116AE}-\u{116AF}\u{116B6}\u{116B8}-\u{116B9}\u{116C0}-\u{116C9}\u{116D0}-\u{116E3}\u{11700}-\u{1171A}\u{1171E}\u{11720}-\u{11721}\u{11726}\u{11730}-\u{11746}\u{11800}-\u{1182E}\u{11838}\u{1183B}\u{118C0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}-\u{11916}\u{11918}-\u{11935}\u{11937}-\u{11938}\u{1193D}\u{1193F}-\u{11942}\u{11944}-\u{11946}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D3}\u{119DC}-\u{119DF}\u{119E1}-\u{119E4}\u{11A00}\u{11A07}-\u{11A08}\u{11A0B}-\u{11A32}\u{11A39}-\u{11A3A}\u{11A3F}-\u{11A46}\u{11A50}\u{11A57}-\u{11A58}\u{11A5C}-\u{11A89}\u{11A97}\u{11A9A}-\u{11AA2}\u{11AB0}-\u{11AF8}\u{11B00}-\u{11B0A}\u{11B61}\u{11B65}\u{11B67}\u{11BC0}-\u{11BE1}\u{11BF0}-\u{11BF9}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C2F}\u{11C3E}-\u{11C45}\u{11C50}-\u{11C6C}\u{11C70}-\u{11C8F}\u{11CA9}\u{11CB1}\u{11CB4}\u{11D00}-\u{11D06}\u{11D08}-\u{11D09}\u{11D0B}-\u{11D30}\u{11D46}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}-\u{11D68}\u{11D6A}-\u{11D8E}\u{11D93}-\u{11D94}\u{11D96}\u{11D98}\u{11DA0}-\u{11DA9}\u{11DB0}-\u{11DDB}\u{11DE0}-\u{11DE9}\u{11DF1}\u{11EE0}-\u{11EF2}\u{11EF5}-\u{11EF8}\u{11F02}-\u{11F10}\u{11F12}-\u{11F35}\u{11F3E}-\u{11F3F}\u{11F41}\u{11F43}-\u{11F59}\u{11FB0}\u{11FC0}-\u{11FD4}\u{11FFF}-\u{12399}\u{12400}-\u{12543}\u{12550}-\u{12686}\u{12F90}-\u{12FF2}\u{13000}-\u{1342F}\u{13441}-\u{13446}\u{13460}-\u{143FA}\u{14400}-\u{14646}\u{16100}-\u{1611D}\u{1612A}-\u{1612C}\u{16130}-\u{16139}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A6E}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF5}\u{16B00}-\u{16B2F}\u{16B37}-\u{16B45}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16D40}-\u{16D79}\u{16E60}-\u{16E9A}\u{16EBB}-\u{16ED3}\u{16F00}-\u{16F4A}\u{16F50}-\u{16F87}\u{16F93}-\u{16F9F}\u{16FE0}-\u{16FE1}\u{16FE3}\u{16FF0}-\u{16FF6}\u{17000}-\u{18CDA}\u{18CFF}-\u{18D20}\u{18D80}-\u{18DF2}\u{18E00}-\u{19191}\u{191A0}-\u{191D2}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}-\u{1AFFE}\u{1B000}-\u{1B122}\u{1B127}-\u{1B128}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B168}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9C}\u{1BC9F}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D15D}\u{1D165}-\u{1D166}\u{1D16A}-\u{1D172}\u{1D183}-\u{1D184}\u{1D18C}-\u{1D1A9}\u{1D1AE}-\u{1D1BA}\u{1D1C1}-\u{1D1E8}\u{1D1EB}-\u{1D1FF}\u{1D250}-\u{1D25A}\u{1D25D}-\u{1D281}\u{1D2C0}-\u{1D2D3}\u{1D2E0}-\u{1D2F3}\u{1D360}-\u{1D378}\u{1D800}-\u{1D9FF}\u{1DA37}-\u{1DA3A}\u{1DA6D}-\u{1DA74}\u{1DA76}-\u{1DA83}\u{1DA85}-\u{1DA8B}\u{1DF00}-\u{1DF3F}\u{1DF41}-\u{1DF47}\u{1DF49}\u{1DF4B}-\u{1DF4C}\u{1DF4E}-\u{1DF50}\u{1DF52}-\u{1DF67}\u{1DF69}\u{1DF6B}\u{1DF6D}\u{1DF6F}-\u{1DF71}\u{1DF73}\u{1DF75}\u{1DF77}\u{1DF79}\u{1DF7B}\u{1DF7D}\u{1DF7F}-\u{1DF81}\u{1DF90}-\u{1DF94}\u{1DF96}\u{1E100}-\u{1E12C}\u{1E137}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}-\u{1E14F}\u{1E290}-\u{1E2AD}\u{1E2C0}-\u{1E2EB}\u{1E2F0}-\u{1E2F9}\u{1E4D0}-\u{1E4EB}\u{1E4F0}-\u{1E4F9}\u{1E5D0}-\u{1E5ED}\u{1E5F0}-\u{1E5FA}\u{1E5FF}\u{1E6C0}-\u{1E6DE}\u{1E6E0}-\u{1E6E2}\u{1E6E4}-\u{1E6E5}\u{1E6E7}-\u{1E6ED}\u{1E6F0}-\u{1E6F4}\u{1E6FE}-\u{1E6FF}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}-\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1F150}-\u{1F169}\u{1F170}-\u{1F18F}\u{1F191}-\u{1F1AC}\u{1F1AE}\u{1F1E6}-\u{1F1FF}\u{1F7DA}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B81E}\u{2B820}-\u{2CEAD}\u{2CEB0}-\u{2EBE0}\u{2EBF0}-\u{2EE5D}\u{30000}-\u{3134A}\u{31350}-\u{33479}\u{3D000}-\u{3FC3F}]/ + # Bidi_Class, among the valid code points, but L, which is the + # class of the others. The values that the Bidi Rule (RFC 5893) + # always treats alike are grouped. BIDI_R_OR_AL = /[\u{5BE}\u{5C0}\u{5C3}\u{5C6}\u{5D0}-\u{5EA}\u{5EF}-\u{5F4}\u{608}\u{60B}\u{60D}\u{61B}\u{61D}-\u{64A}\u{66D}-\u{66F}\u{671}-\u{674}\u{679}-\u{6D5}\u{6E5}-\u{6E6}\u{6EE}-\u{6EF}\u{6FA}-\u{70D}\u{710}\u{712}-\u{72F}\u{74D}-\u{7A5}\u{7B1}\u{7C0}-\u{7EA}\u{7F4}-\u{7F5}\u{7FA}\u{7FE}-\u{815}\u{81A}\u{824}\u{828}\u{830}-\u{83E}\u{840}-\u{858}\u{85E}\u{860}-\u{86A}\u{870}-\u{88F}\u{8A0}-\u{8C9}\u{FBB2}-\u{FBC2}\u{FE73}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}-\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}-\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{1093F}-\u{10959}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE4}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10D4A}-\u{10D4F}\u{10D6F}-\u{10D85}\u{10D8E}-\u{10D8F}\u{10E80}-\u{10EA9}\u{10EAD}\u{10EB0}-\u{10EB1}\u{10EC2}-\u{10EC7}\u{10EC9}-\u{10ECA}\u{10ED9}-\u{10EEE}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F59}\u{10F70}-\u{10F81}\u{10F86}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E922}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}-\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}]/ BIDI_AN = /[\u{660}-\u{669}\u{66B}-\u{66C}\u{10D30}-\u{10D39}\u{10D40}-\u{10D49}\u{10E60}-\u{10E7E}]/ BIDI_EN = /[\u{30}-\u{39}\u{6F0}-\u{6F9}\u{102E1}-\u{102FB}]/ BIDI_ES_CS_ET_ON_BN = /[\u{0}-\u{8}\u{E}-\u{1B}\u{21}-\u{2F}\u{3A}-\u{40}\u{5B}-\u{60}\u{7B}-\u{7F}\u{A1}-\u{A7}\u{A9}\u{AB}-\u{AC}\u{AE}\u{B0}-\u{B1}\u{B6}-\u{B7}\u{BB}\u{BF}\u{D7}\u{F7}\u{2B9}-\u{2BA}\u{2C2}-\u{2CF}\u{2D2}-\u{2D7}\u{2DE}-\u{2DF}\u{2E5}-\u{2ED}\u{2EF}-\u{2FF}\u{375}\u{3F6}\u{58A}\u{58D}-\u{58F}\u{606}-\u{607}\u{609}-\u{60A}\u{60C}\u{60E}-\u{60F}\u{66A}\u{6DE}\u{6E9}\u{7F6}-\u{7F9}\u{9F2}-\u{9F3}\u{9FB}\u{AF1}\u{BF3}-\u{BFA}\u{C78}-\u{C7E}\u{E3F}\u{F3A}-\u{F3D}\u{1390}-\u{1399}\u{1400}\u{169B}-\u{169C}\u{17DB}\u{17F0}-\u{17F9}\u{1800}-\u{180A}\u{1940}\u{1944}-\u{1945}\u{19DE}-\u{19FF}\u{200C}-\u{200D}\u{2010}\u{2012}-\u{2016}\u{2018}-\u{2023}\u{2027}\u{2030}-\u{2032}\u{2035}\u{2038}-\u{203B}\u{203D}\u{203F}-\u{2046}\u{204A}-\u{2056}\u{2058}-\u{205E}\u{208F}\u{20A0}-\u{20A7}\u{20A9}-\u{20C4}\u{2104}\u{2108}\u{2114}\u{2117}-\u{2118}\u{211E}-\u{211F}\u{2123}\u{2125}\u{2127}\u{2129}\u{212E}\u{213A}\u{2141}-\u{2144}\u{214A}-\u{214D}\u{218A}-\u{218B}\u{2190}-\u{222B}\u{222E}\u{2231}-\u{2328}\u{232B}-\u{2335}\u{237B}-\u{2394}\u{2396}-\u{2429}\u{2440}-\u{244A}\u{24EB}-\u{26AB}\u{26AD}-\u{27FF}\u{2900}-\u{2A0B}\u{2A0D}-\u{2A73}\u{2A77}-\u{2ADB}\u{2ADD}-\u{2B73}\u{2B76}-\u{2BFF}\u{2CE5}-\u{2CEA}\u{2CF9}-\u{2CFF}\u{2E00}-\u{2E5D}\u{2E60}-\u{2E63}\u{2E80}-\u{2E99}\u{2E9B}-\u{2E9E}\u{2EA0}-\u{2EF2}\u{3001}\u{3003}-\u{3004}\u{3008}-\u{3020}\u{3030}\u{3037}\u{303D}-\u{303F}\u{30A0}\u{30FB}\u{31C0}-\u{31E5}\u{4DC0}-\u{4DFF}\u{A490}-\u{A4C6}\u{A60D}-\u{A60F}\u{A673}\u{A67E}-\u{A67F}\u{A700}-\u{A721}\u{A788}\u{A828}-\u{A82B}\u{A838}-\u{A839}\u{A874}-\u{A877}\u{AB6A}-\u{AB6B}\u{FBC3}-\u{FBD2}\u{FD3E}-\u{FD4F}\u{FD90}-\u{FD91}\u{FDC8}-\u{FDCF}\u{FDFD}-\u{FDFF}\u{FE45}-\u{FE46}\u{10101}\u{10140}-\u{1018C}\u{10190}-\u{1019C}\u{101A0}\u{1091F}\u{10B39}-\u{10B3F}\u{10D6E}\u{10ED0}-\u{10ED8}\u{11052}-\u{11065}\u{11660}-\u{1166C}\u{11FD5}-\u{11FF1}\u{16FE2}\u{1CC00}-\u{1CCD5}\u{1CCFA}-\u{1CCFC}\u{1CD00}-\u{1CEB3}\u{1CEBA}-\u{1CED0}\u{1CED2}-\u{1CED4}\u{1CEDD}-\u{1CEFD}\u{1D1E9}-\u{1D1EA}\u{1D200}-\u{1D241}\u{1D245}\u{1D300}-\u{1D356}\u{1DB00}-\u{1DB1C}\u{1E2FF}\u{1EEF0}-\u{1EEF1}\u{1F000}-\u{1F02B}\u{1F030}-\u{1F093}\u{1F0A0}-\u{1F0AE}\u{1F0B1}-\u{1F0BF}\u{1F0C1}-\u{1F0CF}\u{1F0D1}-\u{1F0F5}\u{1F10B}-\u{1F10F}\u{1F12F}\u{1F16D}-\u{1F16F}\u{1F1AD}\u{1F260}-\u{1F265}\u{1F300}-\u{1F6D9}\u{1F6DC}-\u{1F6EC}\u{1F6F0}-\u{1F6FC}\u{1F700}-\u{1F7D9}\u{1F7DB}\u{1F7E0}-\u{1F7EB}\u{1F7F0}-\u{1F80B}\u{1F810}-\u{1F847}\u{1F850}-\u{1F859}\u{1F860}-\u{1F887}\u{1F890}-\u{1F8AD}\u{1F8B0}-\u{1F8BB}\u{1F8C0}-\u{1F8C1}\u{1F8D0}-\u{1F8D8}\u{1F900}-\u{1FA57}\u{1FA60}-\u{1FA6D}\u{1FA70}-\u{1FA7C}\u{1FA80}-\u{1FAC6}\u{1FAC8}\u{1FACC}-\u{1FADD}\u{1FADF}-\u{1FAEB}\u{1FAEF}-\u{1FAFA}\u{1FB00}-\u{1FB92}\u{1FB94}-\u{1FBEF}\u{1FBFA}]/ BIDI_NSM = /[\u{300}-\u{33F}\u{342}\u{346}-\u{34E}\u{350}-\u{36F}\u{483}-\u{489}\u{591}-\u{5BD}\u{5BF}\u{5C1}-\u{5C2}\u{5C4}-\u{5C5}\u{5C7}-\u{5C9}\u{610}-\u{61A}\u{64B}-\u{65F}\u{670}\u{6D6}-\u{6DC}\u{6DF}-\u{6E4}\u{6E7}-\u{6E8}\u{6EA}-\u{6ED}\u{711}\u{730}-\u{74A}\u{7A6}-\u{7B0}\u{7EB}-\u{7F3}\u{7FD}\u{816}-\u{819}\u{81B}-\u{823}\u{825}-\u{827}\u{829}-\u{82D}\u{859}-\u{85B}\u{897}-\u{89F}\u{8CA}-\u{8E1}\u{8E3}-\u{902}\u{93A}\u{93C}\u{941}-\u{948}\u{94D}\u{951}-\u{957}\u{962}-\u{963}\u{981}\u{9BC}\u{9C1}-\u{9C4}\u{9CD}\u{9E2}-\u{9E3}\u{9FE}\u{A01}-\u{A02}\u{A3C}\u{A41}-\u{A42}\u{A47}-\u{A48}\u{A4B}-\u{A4D}\u{A51}\u{A70}-\u{A71}\u{A75}\u{A81}-\u{A82}\u{ABC}\u{AC1}-\u{AC5}\u{AC7}-\u{AC8}\u{ACD}\u{AE2}-\u{AE3}\u{AFA}-\u{AFF}\u{B01}\u{B3C}\u{B3F}\u{B41}-\u{B44}\u{B4D}\u{B53}-\u{B56}\u{B62}-\u{B63}\u{B82}\u{BC0}\u{BCD}\u{C00}\u{C04}\u{C3C}\u{C3E}-\u{C40}\u{C46}-\u{C48}\u{C4A}-\u{C4D}\u{C55}-\u{C56}\u{C62}-\u{C63}\u{C81}\u{CBC}\u{CCC}-\u{CCD}\u{CE2}-\u{CE3}\u{D00}-\u{D01}\u{D3B}-\u{D3C}\u{D41}-\u{D44}\u{D4D}\u{D62}-\u{D63}\u{D81}\u{DCA}\u{DD2}-\u{DD4}\u{DD6}\u{E31}\u{E34}-\u{E3A}\u{E47}-\u{E4E}\u{EB1}\u{EB4}-\u{EBC}\u{EC8}-\u{ECE}\u{F18}-\u{F19}\u{F35}\u{F37}\u{F39}\u{F71}-\u{F72}\u{F74}\u{F7A}-\u{F7E}\u{F80}\u{F82}-\u{F84}\u{F86}-\u{F87}\u{F8D}-\u{F92}\u{F94}-\u{F97}\u{F99}-\u{F9C}\u{F9E}-\u{FA1}\u{FA3}-\u{FA6}\u{FA8}-\u{FAB}\u{FAD}-\u{FB8}\u{FBA}-\u{FBC}\u{FC6}\u{102D}-\u{1030}\u{1032}-\u{1037}\u{1039}-\u{103A}\u{103D}-\u{103E}\u{1058}-\u{1059}\u{105E}-\u{1060}\u{1071}-\u{1074}\u{1082}\u{1085}-\u{1086}\u{108D}\u{109D}\u{135D}-\u{135F}\u{1712}-\u{1714}\u{1732}-\u{1733}\u{1752}-\u{1753}\u{1772}-\u{1773}\u{17B7}-\u{17BD}\u{17C6}\u{17C9}-\u{17D3}\u{17DD}\u{1885}-\u{1886}\u{18A9}\u{1920}-\u{1922}\u{1927}-\u{1928}\u{1932}\u{1939}-\u{193B}\u{1A17}-\u{1A18}\u{1A1B}\u{1A56}\u{1A58}-\u{1A5E}\u{1A60}\u{1A62}\u{1A65}-\u{1A6C}\u{1A73}-\u{1A7C}\u{1A7F}\u{1AB0}-\u{1AF0}\u{1B00}-\u{1B03}\u{1B34}\u{1B36}-\u{1B39}\u{1B6B}-\u{1B73}\u{1B80}-\u{1B81}\u{1BA2}-\u{1BA5}\u{1BA8}-\u{1BA9}\u{1BAB}-\u{1BAD}\u{1BE6}\u{1BE8}-\u{1BE9}\u{1BED}\u{1BEF}-\u{1BF1}\u{1C2C}-\u{1C33}\u{1C36}-\u{1C37}\u{1CD0}-\u{1CD2}\u{1CD4}-\u{1CE0}\u{1CE2}-\u{1CE8}\u{1CED}\u{1CF4}\u{1CF8}-\u{1CF9}\u{1DC0}-\u{1DFF}\u{20D0}-\u{20F0}\u{2CEF}-\u{2CF1}\u{2D7F}\u{2DE0}-\u{2DFF}\u{302A}-\u{302D}\u{3099}-\u{309A}\u{A66F}-\u{A672}\u{A674}-\u{A67D}\u{A69E}-\u{A69F}\u{A6F0}-\u{A6F1}\u{A802}\u{A806}\u{A80B}\u{A825}-\u{A826}\u{A82C}\u{A8C4}-\u{A8C5}\u{A8E0}-\u{A8F1}\u{A8FF}\u{A926}-\u{A92D}\u{A947}-\u{A951}\u{A980}-\u{A982}\u{A9B3}\u{A9B6}-\u{A9B9}\u{A9BC}-\u{A9BD}\u{A9E5}\u{AA29}-\u{AA2E}\u{AA31}-\u{AA32}\u{AA35}-\u{AA36}\u{AA43}\u{AA4C}\u{AA7C}\u{AAB0}\u{AAB2}-\u{AAB4}\u{AAB7}-\u{AAB8}\u{AABE}-\u{AABF}\u{AAC1}\u{AAEC}-\u{AAED}\u{AAF6}\u{ABE5}\u{ABE8}\u{ABED}\u{FB1E}\u{FE20}-\u{FE2F}\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}-\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}-\u{10AE6}\u{10D24}-\u{10D27}\u{10D69}-\u{10D6D}\u{10EAB}-\u{10EAC}\u{10ECB}-\u{10ECF}\u{10EF0}-\u{10EFF}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11001}\u{11038}-\u{11046}\u{11070}\u{11073}-\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}-\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}-\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}-\u{11237}\u{1123E}\u{11241}\u{112DF}\u{112E3}-\u{112EA}\u{11300}-\u{11301}\u{1133B}-\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{113BB}-\u{113C0}\u{113CE}\u{113D0}\u{113D2}\u{113E1}-\u{113E2}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}-\u{114C0}\u{114C2}-\u{114C3}\u{115B2}-\u{115B5}\u{115BC}-\u{115BD}\u{115BF}-\u{115C0}\u{115DC}-\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}-\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}-\u{1183A}\u{1193B}-\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}-\u{119DB}\u{119E0}\u{11A01}-\u{11A06}\u{11A09}-\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}-\u{11A99}\u{11B60}\u{11B62}-\u{11B64}\u{11B66}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}-\u{11CB3}\u{11CB5}-\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}-\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}-\u{11D91}\u{11D95}\u{11D97}\u{11DF0}\u{11EF3}-\u{11EF4}\u{11F00}-\u{11F01}\u{11F36}-\u{11F3A}\u{11F40}\u{11F42}\u{11F5A}\u{13440}\u{13447}-\u{13455}\u{1611E}-\u{16129}\u{1612D}-\u{1612F}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE4}\u{1BC9D}-\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D127}-\u{1D128}\u{1D167}-\u{1D169}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1D25B}-\u{1D25C}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}-\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E4EC}-\u{1E4EF}\u{1E5EE}-\u{1E5EF}\u{1E6E3}\u{1E6E6}\u{1E6EE}-\u{1E6EF}\u{1E6F5}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}]/ - - # Canonical_Combining_Class of each code point whose class is - # not 0. - COMBINING_CLASS = { - "\u{300}" => 230, "\u{301}" => 230, "\u{302}" => 230, "\u{303}" => 230, - "\u{304}" => 230, "\u{305}" => 230, "\u{306}" => 230, "\u{307}" => 230, - "\u{308}" => 230, "\u{309}" => 230, "\u{30A}" => 230, "\u{30B}" => 230, - "\u{30C}" => 230, "\u{30D}" => 230, "\u{30E}" => 230, "\u{30F}" => 230, - "\u{310}" => 230, "\u{311}" => 230, "\u{312}" => 230, "\u{313}" => 230, - "\u{314}" => 230, "\u{315}" => 232, "\u{316}" => 220, "\u{317}" => 220, - "\u{318}" => 220, "\u{319}" => 220, "\u{31A}" => 232, "\u{31B}" => 216, - "\u{31C}" => 220, "\u{31D}" => 220, "\u{31E}" => 220, "\u{31F}" => 220, - "\u{320}" => 220, "\u{321}" => 202, "\u{322}" => 202, "\u{323}" => 220, - "\u{324}" => 220, "\u{325}" => 220, "\u{326}" => 220, "\u{327}" => 202, - "\u{328}" => 202, "\u{329}" => 220, "\u{32A}" => 220, "\u{32B}" => 220, - "\u{32C}" => 220, "\u{32D}" => 220, "\u{32E}" => 220, "\u{32F}" => 220, - "\u{330}" => 220, "\u{331}" => 220, "\u{332}" => 220, "\u{333}" => 220, - "\u{334}" => 1, "\u{335}" => 1, "\u{336}" => 1, "\u{337}" => 1, - "\u{338}" => 1, "\u{339}" => 220, "\u{33A}" => 220, "\u{33B}" => 220, - "\u{33C}" => 220, "\u{33D}" => 230, "\u{33E}" => 230, "\u{33F}" => 230, - "\u{340}" => 230, "\u{341}" => 230, "\u{342}" => 230, "\u{343}" => 230, - "\u{344}" => 230, "\u{345}" => 240, "\u{346}" => 230, "\u{347}" => 220, - "\u{348}" => 220, "\u{349}" => 220, "\u{34A}" => 230, "\u{34B}" => 230, - "\u{34C}" => 230, "\u{34D}" => 220, "\u{34E}" => 220, "\u{350}" => 230, - "\u{351}" => 230, "\u{352}" => 230, "\u{353}" => 220, "\u{354}" => 220, - "\u{355}" => 220, "\u{356}" => 220, "\u{357}" => 230, "\u{358}" => 232, - "\u{359}" => 220, "\u{35A}" => 220, "\u{35B}" => 230, "\u{35C}" => 233, - "\u{35D}" => 234, "\u{35E}" => 234, "\u{35F}" => 233, "\u{360}" => 234, - "\u{361}" => 234, "\u{362}" => 233, "\u{363}" => 230, "\u{364}" => 230, - "\u{365}" => 230, "\u{366}" => 230, "\u{367}" => 230, "\u{368}" => 230, - "\u{369}" => 230, "\u{36A}" => 230, "\u{36B}" => 230, "\u{36C}" => 230, - "\u{36D}" => 230, "\u{36E}" => 230, "\u{36F}" => 230, "\u{483}" => 230, - "\u{484}" => 230, "\u{485}" => 230, "\u{486}" => 230, "\u{487}" => 230, - "\u{591}" => 220, "\u{592}" => 230, "\u{593}" => 230, "\u{594}" => 230, - "\u{595}" => 230, "\u{596}" => 220, "\u{597}" => 230, "\u{598}" => 230, - "\u{599}" => 230, "\u{59A}" => 222, "\u{59B}" => 220, "\u{59C}" => 230, - "\u{59D}" => 230, "\u{59E}" => 230, "\u{59F}" => 230, "\u{5A0}" => 230, - "\u{5A1}" => 230, "\u{5A2}" => 220, "\u{5A3}" => 220, "\u{5A4}" => 220, - "\u{5A5}" => 220, "\u{5A6}" => 220, "\u{5A7}" => 220, "\u{5A8}" => 230, - "\u{5A9}" => 230, "\u{5AA}" => 220, "\u{5AB}" => 230, "\u{5AC}" => 230, - "\u{5AD}" => 222, "\u{5AE}" => 228, "\u{5AF}" => 230, "\u{5B0}" => 10, - "\u{5B1}" => 11, "\u{5B2}" => 12, "\u{5B3}" => 13, "\u{5B4}" => 14, - "\u{5B5}" => 15, "\u{5B6}" => 16, "\u{5B7}" => 17, "\u{5B8}" => 18, - "\u{5B9}" => 19, "\u{5BA}" => 19, "\u{5BB}" => 20, "\u{5BC}" => 21, - "\u{5BD}" => 22, "\u{5BF}" => 23, "\u{5C1}" => 24, "\u{5C2}" => 25, - "\u{5C4}" => 230, "\u{5C5}" => 220, "\u{5C7}" => 18, "\u{5C8}" => 10, - "\u{5C9}" => 21, "\u{610}" => 230, "\u{611}" => 230, "\u{612}" => 230, - "\u{613}" => 230, "\u{614}" => 230, "\u{615}" => 230, "\u{616}" => 230, - "\u{617}" => 230, "\u{618}" => 30, "\u{619}" => 31, "\u{61A}" => 32, - "\u{64B}" => 27, "\u{64C}" => 28, "\u{64D}" => 29, "\u{64E}" => 30, - "\u{64F}" => 31, "\u{650}" => 32, "\u{651}" => 33, "\u{652}" => 34, - "\u{653}" => 230, "\u{654}" => 230, "\u{655}" => 220, "\u{656}" => 220, - "\u{657}" => 230, "\u{658}" => 230, "\u{659}" => 230, "\u{65A}" => 230, - "\u{65B}" => 230, "\u{65C}" => 220, "\u{65D}" => 230, "\u{65E}" => 230, - "\u{65F}" => 220, "\u{670}" => 35, "\u{6D6}" => 230, "\u{6D7}" => 230, - "\u{6D8}" => 230, "\u{6D9}" => 230, "\u{6DA}" => 230, "\u{6DB}" => 230, - "\u{6DC}" => 230, "\u{6DF}" => 230, "\u{6E0}" => 230, "\u{6E1}" => 230, - "\u{6E2}" => 230, "\u{6E3}" => 220, "\u{6E4}" => 230, "\u{6E7}" => 230, - "\u{6E8}" => 230, "\u{6EA}" => 220, "\u{6EB}" => 230, "\u{6EC}" => 230, - "\u{6ED}" => 220, "\u{711}" => 36, "\u{730}" => 230, "\u{731}" => 220, - "\u{732}" => 230, "\u{733}" => 230, "\u{734}" => 220, "\u{735}" => 230, - "\u{736}" => 230, "\u{737}" => 220, "\u{738}" => 220, "\u{739}" => 220, - "\u{73A}" => 230, "\u{73B}" => 220, "\u{73C}" => 220, "\u{73D}" => 230, - "\u{73E}" => 220, "\u{73F}" => 230, "\u{740}" => 230, "\u{741}" => 230, - "\u{742}" => 220, "\u{743}" => 230, "\u{744}" => 220, "\u{745}" => 230, - "\u{746}" => 220, "\u{747}" => 230, "\u{748}" => 220, "\u{749}" => 230, - "\u{74A}" => 230, "\u{7EB}" => 230, "\u{7EC}" => 230, "\u{7ED}" => 230, - "\u{7EE}" => 230, "\u{7EF}" => 230, "\u{7F0}" => 230, "\u{7F1}" => 230, - "\u{7F2}" => 220, "\u{7F3}" => 230, "\u{7FD}" => 220, "\u{816}" => 230, - "\u{817}" => 230, "\u{818}" => 230, "\u{819}" => 230, "\u{81B}" => 230, - "\u{81C}" => 230, "\u{81D}" => 230, "\u{81E}" => 230, "\u{81F}" => 230, - "\u{820}" => 230, "\u{821}" => 230, "\u{822}" => 230, "\u{823}" => 230, - "\u{825}" => 230, "\u{826}" => 230, "\u{827}" => 230, "\u{829}" => 230, - "\u{82A}" => 230, "\u{82B}" => 230, "\u{82C}" => 230, "\u{82D}" => 230, - "\u{859}" => 220, "\u{85A}" => 220, "\u{85B}" => 220, "\u{897}" => 230, - "\u{898}" => 230, "\u{899}" => 220, "\u{89A}" => 220, "\u{89B}" => 220, - "\u{89C}" => 230, "\u{89D}" => 230, "\u{89E}" => 230, "\u{89F}" => 230, - "\u{8CA}" => 230, "\u{8CB}" => 230, "\u{8CC}" => 230, "\u{8CD}" => 230, - "\u{8CE}" => 230, "\u{8CF}" => 220, "\u{8D0}" => 220, "\u{8D1}" => 220, - "\u{8D2}" => 220, "\u{8D3}" => 220, "\u{8D4}" => 230, "\u{8D5}" => 230, - "\u{8D6}" => 230, "\u{8D7}" => 230, "\u{8D8}" => 230, "\u{8D9}" => 230, - "\u{8DA}" => 230, "\u{8DB}" => 230, "\u{8DC}" => 230, "\u{8DD}" => 230, - "\u{8DE}" => 230, "\u{8DF}" => 230, "\u{8E0}" => 230, "\u{8E1}" => 230, - "\u{8E3}" => 220, "\u{8E4}" => 230, "\u{8E5}" => 230, "\u{8E6}" => 220, - "\u{8E7}" => 230, "\u{8E8}" => 230, "\u{8E9}" => 220, "\u{8EA}" => 230, - "\u{8EB}" => 230, "\u{8EC}" => 230, "\u{8ED}" => 220, "\u{8EE}" => 220, - "\u{8EF}" => 220, "\u{8F0}" => 27, "\u{8F1}" => 28, "\u{8F2}" => 29, - "\u{8F3}" => 230, "\u{8F4}" => 230, "\u{8F5}" => 230, "\u{8F6}" => 220, - "\u{8F7}" => 230, "\u{8F8}" => 230, "\u{8F9}" => 220, "\u{8FA}" => 220, - "\u{8FB}" => 230, "\u{8FC}" => 230, "\u{8FD}" => 230, "\u{8FE}" => 230, - "\u{8FF}" => 230, "\u{93C}" => 7, "\u{94D}" => 9, "\u{951}" => 230, - "\u{952}" => 220, "\u{953}" => 230, "\u{954}" => 230, "\u{9BC}" => 7, - "\u{9CD}" => 9, "\u{9FE}" => 230, "\u{A3C}" => 7, "\u{A4D}" => 9, - "\u{ABC}" => 7, "\u{ACD}" => 9, "\u{B3C}" => 7, "\u{B4D}" => 9, - "\u{BCD}" => 9, "\u{C3C}" => 7, "\u{C4D}" => 9, "\u{C55}" => 84, - "\u{C56}" => 91, "\u{CBC}" => 7, "\u{CCD}" => 9, "\u{D3B}" => 9, - "\u{D3C}" => 9, "\u{D4D}" => 9, "\u{DCA}" => 9, "\u{E38}" => 103, - "\u{E39}" => 103, "\u{E3A}" => 9, "\u{E48}" => 107, "\u{E49}" => 107, - "\u{E4A}" => 107, "\u{E4B}" => 107, "\u{EB8}" => 118, "\u{EB9}" => 118, - "\u{EBA}" => 9, "\u{EC8}" => 122, "\u{EC9}" => 122, "\u{ECA}" => 122, - "\u{ECB}" => 122, "\u{F18}" => 220, "\u{F19}" => 220, "\u{F35}" => 220, - "\u{F37}" => 220, "\u{F39}" => 216, "\u{F71}" => 129, "\u{F72}" => 130, - "\u{F74}" => 132, "\u{F7A}" => 130, "\u{F7B}" => 130, "\u{F7C}" => 130, - "\u{F7D}" => 130, "\u{F80}" => 130, "\u{F82}" => 230, "\u{F83}" => 230, - "\u{F84}" => 9, "\u{F86}" => 230, "\u{F87}" => 230, "\u{FC6}" => 220, - "\u{1037}" => 7, "\u{1039}" => 9, "\u{103A}" => 9, "\u{108D}" => 220, - "\u{135D}" => 230, "\u{135E}" => 230, "\u{135F}" => 230, "\u{1714}" => 9, - "\u{1715}" => 9, "\u{1734}" => 9, "\u{17D2}" => 9, "\u{17DD}" => 230, - "\u{18A9}" => 228, "\u{1939}" => 222, "\u{193A}" => 230, "\u{193B}" => 220, - "\u{1A17}" => 230, "\u{1A18}" => 220, "\u{1A60}" => 9, "\u{1A75}" => 230, - "\u{1A76}" => 230, "\u{1A77}" => 230, "\u{1A78}" => 230, "\u{1A79}" => 230, - "\u{1A7A}" => 230, "\u{1A7B}" => 230, "\u{1A7C}" => 230, "\u{1A7F}" => 220, - "\u{1AB0}" => 230, "\u{1AB1}" => 230, "\u{1AB2}" => 230, "\u{1AB3}" => 230, - "\u{1AB4}" => 230, "\u{1AB5}" => 220, "\u{1AB6}" => 220, "\u{1AB7}" => 220, - "\u{1AB8}" => 220, "\u{1AB9}" => 220, "\u{1ABA}" => 220, "\u{1ABB}" => 230, - "\u{1ABC}" => 230, "\u{1ABD}" => 220, "\u{1ABF}" => 220, "\u{1AC0}" => 220, - "\u{1AC1}" => 230, "\u{1AC2}" => 230, "\u{1AC3}" => 220, "\u{1AC4}" => 220, - "\u{1AC5}" => 230, "\u{1AC6}" => 230, "\u{1AC7}" => 230, "\u{1AC8}" => 230, - "\u{1AC9}" => 230, "\u{1ACA}" => 220, "\u{1ACB}" => 230, "\u{1ACC}" => 230, - "\u{1ACD}" => 230, "\u{1ACE}" => 230, "\u{1ACF}" => 230, "\u{1AD0}" => 230, - "\u{1AD1}" => 230, "\u{1AD2}" => 230, "\u{1AD3}" => 230, "\u{1AD4}" => 230, - "\u{1AD5}" => 230, "\u{1AD6}" => 230, "\u{1AD7}" => 230, "\u{1AD8}" => 230, - "\u{1AD9}" => 230, "\u{1ADA}" => 230, "\u{1ADB}" => 230, "\u{1ADC}" => 230, - "\u{1ADD}" => 220, "\u{1ADE}" => 230, "\u{1ADF}" => 230, "\u{1AE0}" => 230, - "\u{1AE1}" => 230, "\u{1AE2}" => 230, "\u{1AE3}" => 230, "\u{1AE4}" => 230, - "\u{1AE5}" => 230, "\u{1AE6}" => 220, "\u{1AE7}" => 230, "\u{1AE8}" => 230, - "\u{1AE9}" => 230, "\u{1AEA}" => 230, "\u{1AEB}" => 234, "\u{1AEC}" => 230, - "\u{1AED}" => 230, "\u{1AEE}" => 220, "\u{1AEF}" => 220, "\u{1AF0}" => 230, - "\u{1B34}" => 7, "\u{1B44}" => 9, "\u{1B6B}" => 230, "\u{1B6C}" => 220, - "\u{1B6D}" => 230, "\u{1B6E}" => 230, "\u{1B6F}" => 230, "\u{1B70}" => 230, - "\u{1B71}" => 230, "\u{1B72}" => 230, "\u{1B73}" => 230, "\u{1BAA}" => 9, - "\u{1BAB}" => 9, "\u{1BE6}" => 7, "\u{1BF2}" => 9, "\u{1BF3}" => 9, - "\u{1C37}" => 7, "\u{1CD0}" => 230, "\u{1CD1}" => 230, "\u{1CD2}" => 230, - "\u{1CD4}" => 1, "\u{1CD5}" => 220, "\u{1CD6}" => 220, "\u{1CD7}" => 220, - "\u{1CD8}" => 220, "\u{1CD9}" => 220, "\u{1CDA}" => 230, "\u{1CDB}" => 230, - "\u{1CDC}" => 220, "\u{1CDD}" => 220, "\u{1CDE}" => 220, "\u{1CDF}" => 220, - "\u{1CE0}" => 230, "\u{1CE2}" => 1, "\u{1CE3}" => 1, "\u{1CE4}" => 1, - "\u{1CE5}" => 1, "\u{1CE6}" => 1, "\u{1CE7}" => 1, "\u{1CE8}" => 1, - "\u{1CED}" => 220, "\u{1CF4}" => 230, "\u{1CF8}" => 230, "\u{1CF9}" => 230, - "\u{1DC0}" => 230, "\u{1DC1}" => 230, "\u{1DC2}" => 220, "\u{1DC3}" => 230, - "\u{1DC4}" => 230, "\u{1DC5}" => 230, "\u{1DC6}" => 230, "\u{1DC7}" => 230, - "\u{1DC8}" => 230, "\u{1DC9}" => 230, "\u{1DCA}" => 220, "\u{1DCB}" => 230, - "\u{1DCC}" => 230, "\u{1DCD}" => 234, "\u{1DCE}" => 214, "\u{1DCF}" => 220, - "\u{1DD0}" => 202, "\u{1DD1}" => 230, "\u{1DD2}" => 230, "\u{1DD3}" => 230, - "\u{1DD4}" => 230, "\u{1DD5}" => 230, "\u{1DD6}" => 230, "\u{1DD7}" => 230, - "\u{1DD8}" => 230, "\u{1DD9}" => 230, "\u{1DDA}" => 230, "\u{1DDB}" => 230, - "\u{1DDC}" => 230, "\u{1DDD}" => 230, "\u{1DDE}" => 230, "\u{1DDF}" => 230, - "\u{1DE0}" => 230, "\u{1DE1}" => 230, "\u{1DE2}" => 230, "\u{1DE3}" => 230, - "\u{1DE4}" => 230, "\u{1DE5}" => 230, "\u{1DE6}" => 230, "\u{1DE7}" => 230, - "\u{1DE8}" => 230, "\u{1DE9}" => 230, "\u{1DEA}" => 230, "\u{1DEB}" => 230, - "\u{1DEC}" => 230, "\u{1DED}" => 230, "\u{1DEE}" => 230, "\u{1DEF}" => 230, - "\u{1DF0}" => 230, "\u{1DF1}" => 230, "\u{1DF2}" => 230, "\u{1DF3}" => 230, - "\u{1DF4}" => 230, "\u{1DF5}" => 230, "\u{1DF6}" => 232, "\u{1DF7}" => 228, - "\u{1DF8}" => 228, "\u{1DF9}" => 220, "\u{1DFA}" => 218, "\u{1DFB}" => 230, - "\u{1DFC}" => 233, "\u{1DFD}" => 220, "\u{1DFE}" => 230, "\u{1DFF}" => 220, - "\u{20D0}" => 230, "\u{20D1}" => 230, "\u{20D2}" => 1, "\u{20D3}" => 1, - "\u{20D4}" => 230, "\u{20D5}" => 230, "\u{20D6}" => 230, "\u{20D7}" => 230, - "\u{20D8}" => 1, "\u{20D9}" => 1, "\u{20DA}" => 1, "\u{20DB}" => 230, - "\u{20DC}" => 230, "\u{20E1}" => 230, "\u{20E5}" => 1, "\u{20E6}" => 1, - "\u{20E7}" => 230, "\u{20E8}" => 220, "\u{20E9}" => 230, "\u{20EA}" => 1, - "\u{20EB}" => 1, "\u{20EC}" => 220, "\u{20ED}" => 220, "\u{20EE}" => 220, - "\u{20EF}" => 220, "\u{20F0}" => 230, "\u{2CEF}" => 230, "\u{2CF0}" => 230, - "\u{2CF1}" => 230, "\u{2D7F}" => 9, "\u{2DE0}" => 230, "\u{2DE1}" => 230, - "\u{2DE2}" => 230, "\u{2DE3}" => 230, "\u{2DE4}" => 230, "\u{2DE5}" => 230, - "\u{2DE6}" => 230, "\u{2DE7}" => 230, "\u{2DE8}" => 230, "\u{2DE9}" => 230, - "\u{2DEA}" => 230, "\u{2DEB}" => 230, "\u{2DEC}" => 230, "\u{2DED}" => 230, - "\u{2DEE}" => 230, "\u{2DEF}" => 230, "\u{2DF0}" => 230, "\u{2DF1}" => 230, - "\u{2DF2}" => 230, "\u{2DF3}" => 230, "\u{2DF4}" => 230, "\u{2DF5}" => 230, - "\u{2DF6}" => 230, "\u{2DF7}" => 230, "\u{2DF8}" => 230, "\u{2DF9}" => 230, - "\u{2DFA}" => 230, "\u{2DFB}" => 230, "\u{2DFC}" => 230, "\u{2DFD}" => 230, - "\u{2DFE}" => 230, "\u{2DFF}" => 230, "\u{302A}" => 218, "\u{302B}" => 228, - "\u{302C}" => 232, "\u{302D}" => 222, "\u{302E}" => 224, "\u{302F}" => 224, - "\u{3099}" => 8, "\u{309A}" => 8, "\u{A66F}" => 230, "\u{A674}" => 230, - "\u{A675}" => 230, "\u{A676}" => 230, "\u{A677}" => 230, "\u{A678}" => 230, - "\u{A679}" => 230, "\u{A67A}" => 230, "\u{A67B}" => 230, "\u{A67C}" => 230, - "\u{A67D}" => 230, "\u{A69E}" => 230, "\u{A69F}" => 230, "\u{A6F0}" => 230, - "\u{A6F1}" => 230, "\u{A806}" => 9, "\u{A82C}" => 9, "\u{A8C4}" => 9, - "\u{A8E0}" => 230, "\u{A8E1}" => 230, "\u{A8E2}" => 230, "\u{A8E3}" => 230, - "\u{A8E4}" => 230, "\u{A8E5}" => 230, "\u{A8E6}" => 230, "\u{A8E7}" => 230, - "\u{A8E8}" => 230, "\u{A8E9}" => 230, "\u{A8EA}" => 230, "\u{A8EB}" => 230, - "\u{A8EC}" => 230, "\u{A8ED}" => 230, "\u{A8EE}" => 230, "\u{A8EF}" => 230, - "\u{A8F0}" => 230, "\u{A8F1}" => 230, "\u{A92B}" => 220, "\u{A92C}" => 220, - "\u{A92D}" => 220, "\u{A953}" => 9, "\u{A9B3}" => 7, "\u{A9C0}" => 9, - "\u{AAB0}" => 230, "\u{AAB2}" => 230, "\u{AAB3}" => 230, "\u{AAB4}" => 220, - "\u{AAB7}" => 230, "\u{AAB8}" => 230, "\u{AABE}" => 230, "\u{AABF}" => 230, - "\u{AAC1}" => 230, "\u{AAF6}" => 9, "\u{ABED}" => 9, "\u{FB1E}" => 26, - "\u{FE20}" => 230, "\u{FE21}" => 230, "\u{FE22}" => 230, "\u{FE23}" => 230, - "\u{FE24}" => 230, "\u{FE25}" => 230, "\u{FE26}" => 230, "\u{FE27}" => 220, - "\u{FE28}" => 220, "\u{FE29}" => 220, "\u{FE2A}" => 220, "\u{FE2B}" => 220, - "\u{FE2C}" => 220, "\u{FE2D}" => 220, "\u{FE2E}" => 230, "\u{FE2F}" => 230, - "\u{101FD}" => 220, "\u{102E0}" => 220, "\u{10376}" => 230, "\u{10377}" => 230, - "\u{10378}" => 230, "\u{10379}" => 230, "\u{1037A}" => 230, "\u{10A0D}" => 220, - "\u{10A0F}" => 230, "\u{10A38}" => 230, "\u{10A39}" => 1, "\u{10A3A}" => 220, - "\u{10A3F}" => 9, "\u{10AE5}" => 230, "\u{10AE6}" => 220, "\u{10D24}" => 230, - "\u{10D25}" => 230, "\u{10D26}" => 230, "\u{10D27}" => 230, "\u{10D69}" => 230, - "\u{10D6A}" => 230, "\u{10D6B}" => 230, "\u{10D6C}" => 230, "\u{10D6D}" => 230, - "\u{10EAB}" => 230, "\u{10EAC}" => 230, "\u{10ECB}" => 230, "\u{10ECC}" => 220, - "\u{10ECD}" => 220, "\u{10ECE}" => 230, "\u{10ECF}" => 230, "\u{10EF0}" => 220, - "\u{10EF1}" => 220, "\u{10EF2}" => 220, "\u{10EF3}" => 230, "\u{10EF4}" => 220, - "\u{10EF5}" => 230, "\u{10EF6}" => 220, "\u{10EF7}" => 230, "\u{10EF8}" => 230, - "\u{10EF9}" => 230, "\u{10EFA}" => 220, "\u{10EFB}" => 220, "\u{10EFD}" => 220, - "\u{10EFE}" => 220, "\u{10EFF}" => 220, "\u{10F46}" => 220, "\u{10F47}" => 220, - "\u{10F48}" => 230, "\u{10F49}" => 230, "\u{10F4A}" => 230, "\u{10F4B}" => 220, - "\u{10F4C}" => 230, "\u{10F4D}" => 220, "\u{10F4E}" => 220, "\u{10F4F}" => 220, - "\u{10F50}" => 220, "\u{10F82}" => 230, "\u{10F83}" => 220, "\u{10F84}" => 230, - "\u{10F85}" => 220, "\u{11046}" => 9, "\u{11070}" => 9, "\u{1107F}" => 9, - "\u{110B9}" => 9, "\u{110BA}" => 7, "\u{11100}" => 230, "\u{11101}" => 230, - "\u{11102}" => 230, "\u{11133}" => 9, "\u{11134}" => 9, "\u{11173}" => 7, - "\u{111C0}" => 9, "\u{111CA}" => 7, "\u{11235}" => 9, "\u{11236}" => 7, - "\u{112E9}" => 7, "\u{112EA}" => 9, "\u{1133B}" => 7, "\u{1133C}" => 7, - "\u{1134D}" => 9, "\u{11366}" => 230, "\u{11367}" => 230, "\u{11368}" => 230, - "\u{11369}" => 230, "\u{1136A}" => 230, "\u{1136B}" => 230, "\u{1136C}" => 230, - "\u{11370}" => 230, "\u{11371}" => 230, "\u{11372}" => 230, "\u{11373}" => 230, - "\u{11374}" => 230, "\u{113CE}" => 9, "\u{113CF}" => 9, "\u{113D0}" => 9, - "\u{11442}" => 9, "\u{11446}" => 7, "\u{1145E}" => 230, "\u{114C2}" => 9, - "\u{114C3}" => 7, "\u{115BF}" => 9, "\u{115C0}" => 7, "\u{1163F}" => 9, - "\u{116B6}" => 9, "\u{116B7}" => 7, "\u{1172B}" => 9, "\u{11839}" => 9, - "\u{1183A}" => 7, "\u{1193D}" => 9, "\u{1193E}" => 9, "\u{11943}" => 7, - "\u{119E0}" => 9, "\u{11A34}" => 9, "\u{11A47}" => 9, "\u{11A99}" => 9, - "\u{11C3F}" => 9, "\u{11D42}" => 7, "\u{11D44}" => 9, "\u{11D45}" => 9, - "\u{11D97}" => 9, "\u{11F41}" => 9, "\u{11F42}" => 9, "\u{1612F}" => 9, - "\u{16AF0}" => 1, "\u{16AF1}" => 1, "\u{16AF2}" => 1, "\u{16AF3}" => 1, - "\u{16AF4}" => 1, "\u{16B30}" => 230, "\u{16B31}" => 230, "\u{16B32}" => 230, - "\u{16B33}" => 230, "\u{16B34}" => 230, "\u{16B35}" => 230, "\u{16B36}" => 230, - "\u{16FF0}" => 6, "\u{16FF1}" => 6, "\u{1BC9E}" => 1, "\u{1D127}" => 220, - "\u{1D128}" => 220, "\u{1D165}" => 216, "\u{1D166}" => 216, "\u{1D167}" => 1, - "\u{1D168}" => 1, "\u{1D169}" => 1, "\u{1D16D}" => 226, "\u{1D16E}" => 216, - "\u{1D16F}" => 216, "\u{1D170}" => 216, "\u{1D171}" => 216, "\u{1D172}" => 216, - "\u{1D17B}" => 220, "\u{1D17C}" => 220, "\u{1D17D}" => 220, "\u{1D17E}" => 220, - "\u{1D17F}" => 220, "\u{1D180}" => 220, "\u{1D181}" => 220, "\u{1D182}" => 220, - "\u{1D185}" => 230, "\u{1D186}" => 230, "\u{1D187}" => 230, "\u{1D188}" => 230, - "\u{1D189}" => 230, "\u{1D18A}" => 220, "\u{1D18B}" => 220, "\u{1D1AA}" => 230, - "\u{1D1AB}" => 230, "\u{1D1AC}" => 230, "\u{1D1AD}" => 230, "\u{1D242}" => 230, - "\u{1D243}" => 230, "\u{1D244}" => 230, "\u{1D250}" => 216, "\u{1D251}" => 216, - "\u{1D252}" => 216, "\u{1D25B}" => 1, "\u{1D25C}" => 1, "\u{1D25F}" => 216, - "\u{1D280}" => 216, "\u{1D281}" => 216, "\u{1E000}" => 230, "\u{1E001}" => 230, - "\u{1E002}" => 230, "\u{1E003}" => 230, "\u{1E004}" => 230, "\u{1E005}" => 230, - "\u{1E006}" => 230, "\u{1E008}" => 230, "\u{1E009}" => 230, "\u{1E00A}" => 230, - "\u{1E00B}" => 230, "\u{1E00C}" => 230, "\u{1E00D}" => 230, "\u{1E00E}" => 230, - "\u{1E00F}" => 230, "\u{1E010}" => 230, "\u{1E011}" => 230, "\u{1E012}" => 230, - "\u{1E013}" => 230, "\u{1E014}" => 230, "\u{1E015}" => 230, "\u{1E016}" => 230, - "\u{1E017}" => 230, "\u{1E018}" => 230, "\u{1E01B}" => 230, "\u{1E01C}" => 230, - "\u{1E01D}" => 230, "\u{1E01E}" => 230, "\u{1E01F}" => 230, "\u{1E020}" => 230, - "\u{1E021}" => 230, "\u{1E023}" => 230, "\u{1E024}" => 230, "\u{1E026}" => 230, - "\u{1E027}" => 230, "\u{1E028}" => 230, "\u{1E029}" => 230, "\u{1E02A}" => 230, - "\u{1E08F}" => 230, "\u{1E130}" => 230, "\u{1E131}" => 230, "\u{1E132}" => 230, - "\u{1E133}" => 230, "\u{1E134}" => 230, "\u{1E135}" => 230, "\u{1E136}" => 230, - "\u{1E2AE}" => 230, "\u{1E2EC}" => 230, "\u{1E2ED}" => 230, "\u{1E2EE}" => 230, - "\u{1E2EF}" => 230, "\u{1E4EC}" => 232, "\u{1E4ED}" => 232, "\u{1E4EE}" => 220, - "\u{1E4EF}" => 230, "\u{1E5EE}" => 230, "\u{1E5EF}" => 220, "\u{1E6E3}" => 230, - "\u{1E6E6}" => 230, "\u{1E6EE}" => 230, "\u{1E6EF}" => 230, "\u{1E6F5}" => 230, - "\u{1E8D0}" => 220, "\u{1E8D1}" => 220, "\u{1E8D2}" => 220, "\u{1E8D3}" => 220, - "\u{1E8D4}" => 220, "\u{1E8D5}" => 220, "\u{1E8D6}" => 220, "\u{1E944}" => 230, - "\u{1E945}" => 230, "\u{1E946}" => 230, "\u{1E947}" => 230, "\u{1E948}" => 230, - "\u{1E949}" => 230, "\u{1E94A}" => 7, - }.freeze - - # The canonical decomposition mapping (one level) of each code - # point that has one. Hangul syllables are not listed: they are - # decomposed algorithmically. - CANONICAL_DECOMPOSITION = { - "\u{C0}" => "\u{41}\u{300}", "\u{C1}" => "\u{41}\u{301}", "\u{C2}" => "\u{41}\u{302}", "\u{C3}" => "\u{41}\u{303}", - "\u{C4}" => "\u{41}\u{308}", "\u{C5}" => "\u{41}\u{30A}", "\u{C7}" => "\u{43}\u{327}", "\u{C8}" => "\u{45}\u{300}", - "\u{C9}" => "\u{45}\u{301}", "\u{CA}" => "\u{45}\u{302}", "\u{CB}" => "\u{45}\u{308}", "\u{CC}" => "\u{49}\u{300}", - "\u{CD}" => "\u{49}\u{301}", "\u{CE}" => "\u{49}\u{302}", "\u{CF}" => "\u{49}\u{308}", "\u{D1}" => "\u{4E}\u{303}", - "\u{D2}" => "\u{4F}\u{300}", "\u{D3}" => "\u{4F}\u{301}", "\u{D4}" => "\u{4F}\u{302}", "\u{D5}" => "\u{4F}\u{303}", - "\u{D6}" => "\u{4F}\u{308}", "\u{D9}" => "\u{55}\u{300}", "\u{DA}" => "\u{55}\u{301}", "\u{DB}" => "\u{55}\u{302}", - "\u{DC}" => "\u{55}\u{308}", "\u{DD}" => "\u{59}\u{301}", "\u{E0}" => "\u{61}\u{300}", "\u{E1}" => "\u{61}\u{301}", - "\u{E2}" => "\u{61}\u{302}", "\u{E3}" => "\u{61}\u{303}", "\u{E4}" => "\u{61}\u{308}", "\u{E5}" => "\u{61}\u{30A}", - "\u{E7}" => "\u{63}\u{327}", "\u{E8}" => "\u{65}\u{300}", "\u{E9}" => "\u{65}\u{301}", "\u{EA}" => "\u{65}\u{302}", - "\u{EB}" => "\u{65}\u{308}", "\u{EC}" => "\u{69}\u{300}", "\u{ED}" => "\u{69}\u{301}", "\u{EE}" => "\u{69}\u{302}", - "\u{EF}" => "\u{69}\u{308}", "\u{F1}" => "\u{6E}\u{303}", "\u{F2}" => "\u{6F}\u{300}", "\u{F3}" => "\u{6F}\u{301}", - "\u{F4}" => "\u{6F}\u{302}", "\u{F5}" => "\u{6F}\u{303}", "\u{F6}" => "\u{6F}\u{308}", "\u{F9}" => "\u{75}\u{300}", - "\u{FA}" => "\u{75}\u{301}", "\u{FB}" => "\u{75}\u{302}", "\u{FC}" => "\u{75}\u{308}", "\u{FD}" => "\u{79}\u{301}", - "\u{FF}" => "\u{79}\u{308}", "\u{100}" => "\u{41}\u{304}", "\u{101}" => "\u{61}\u{304}", "\u{102}" => "\u{41}\u{306}", - "\u{103}" => "\u{61}\u{306}", "\u{104}" => "\u{41}\u{328}", "\u{105}" => "\u{61}\u{328}", "\u{106}" => "\u{43}\u{301}", - "\u{107}" => "\u{63}\u{301}", "\u{108}" => "\u{43}\u{302}", "\u{109}" => "\u{63}\u{302}", "\u{10A}" => "\u{43}\u{307}", - "\u{10B}" => "\u{63}\u{307}", "\u{10C}" => "\u{43}\u{30C}", "\u{10D}" => "\u{63}\u{30C}", "\u{10E}" => "\u{44}\u{30C}", - "\u{10F}" => "\u{64}\u{30C}", "\u{112}" => "\u{45}\u{304}", "\u{113}" => "\u{65}\u{304}", "\u{114}" => "\u{45}\u{306}", - "\u{115}" => "\u{65}\u{306}", "\u{116}" => "\u{45}\u{307}", "\u{117}" => "\u{65}\u{307}", "\u{118}" => "\u{45}\u{328}", - "\u{119}" => "\u{65}\u{328}", "\u{11A}" => "\u{45}\u{30C}", "\u{11B}" => "\u{65}\u{30C}", "\u{11C}" => "\u{47}\u{302}", - "\u{11D}" => "\u{67}\u{302}", "\u{11E}" => "\u{47}\u{306}", "\u{11F}" => "\u{67}\u{306}", "\u{120}" => "\u{47}\u{307}", - "\u{121}" => "\u{67}\u{307}", "\u{122}" => "\u{47}\u{327}", "\u{123}" => "\u{67}\u{327}", "\u{124}" => "\u{48}\u{302}", - "\u{125}" => "\u{68}\u{302}", "\u{128}" => "\u{49}\u{303}", "\u{129}" => "\u{69}\u{303}", "\u{12A}" => "\u{49}\u{304}", - "\u{12B}" => "\u{69}\u{304}", "\u{12C}" => "\u{49}\u{306}", "\u{12D}" => "\u{69}\u{306}", "\u{12E}" => "\u{49}\u{328}", - "\u{12F}" => "\u{69}\u{328}", "\u{130}" => "\u{49}\u{307}", "\u{134}" => "\u{4A}\u{302}", "\u{135}" => "\u{6A}\u{302}", - "\u{136}" => "\u{4B}\u{327}", "\u{137}" => "\u{6B}\u{327}", "\u{139}" => "\u{4C}\u{301}", "\u{13A}" => "\u{6C}\u{301}", - "\u{13B}" => "\u{4C}\u{327}", "\u{13C}" => "\u{6C}\u{327}", "\u{13D}" => "\u{4C}\u{30C}", "\u{13E}" => "\u{6C}\u{30C}", - "\u{143}" => "\u{4E}\u{301}", "\u{144}" => "\u{6E}\u{301}", "\u{145}" => "\u{4E}\u{327}", "\u{146}" => "\u{6E}\u{327}", - "\u{147}" => "\u{4E}\u{30C}", "\u{148}" => "\u{6E}\u{30C}", "\u{14C}" => "\u{4F}\u{304}", "\u{14D}" => "\u{6F}\u{304}", - "\u{14E}" => "\u{4F}\u{306}", "\u{14F}" => "\u{6F}\u{306}", "\u{150}" => "\u{4F}\u{30B}", "\u{151}" => "\u{6F}\u{30B}", - "\u{154}" => "\u{52}\u{301}", "\u{155}" => "\u{72}\u{301}", "\u{156}" => "\u{52}\u{327}", "\u{157}" => "\u{72}\u{327}", - "\u{158}" => "\u{52}\u{30C}", "\u{159}" => "\u{72}\u{30C}", "\u{15A}" => "\u{53}\u{301}", "\u{15B}" => "\u{73}\u{301}", - "\u{15C}" => "\u{53}\u{302}", "\u{15D}" => "\u{73}\u{302}", "\u{15E}" => "\u{53}\u{327}", "\u{15F}" => "\u{73}\u{327}", - "\u{160}" => "\u{53}\u{30C}", "\u{161}" => "\u{73}\u{30C}", "\u{162}" => "\u{54}\u{327}", "\u{163}" => "\u{74}\u{327}", - "\u{164}" => "\u{54}\u{30C}", "\u{165}" => "\u{74}\u{30C}", "\u{168}" => "\u{55}\u{303}", "\u{169}" => "\u{75}\u{303}", - "\u{16A}" => "\u{55}\u{304}", "\u{16B}" => "\u{75}\u{304}", "\u{16C}" => "\u{55}\u{306}", "\u{16D}" => "\u{75}\u{306}", - "\u{16E}" => "\u{55}\u{30A}", "\u{16F}" => "\u{75}\u{30A}", "\u{170}" => "\u{55}\u{30B}", "\u{171}" => "\u{75}\u{30B}", - "\u{172}" => "\u{55}\u{328}", "\u{173}" => "\u{75}\u{328}", "\u{174}" => "\u{57}\u{302}", "\u{175}" => "\u{77}\u{302}", - "\u{176}" => "\u{59}\u{302}", "\u{177}" => "\u{79}\u{302}", "\u{178}" => "\u{59}\u{308}", "\u{179}" => "\u{5A}\u{301}", - "\u{17A}" => "\u{7A}\u{301}", "\u{17B}" => "\u{5A}\u{307}", "\u{17C}" => "\u{7A}\u{307}", "\u{17D}" => "\u{5A}\u{30C}", - "\u{17E}" => "\u{7A}\u{30C}", "\u{1A0}" => "\u{4F}\u{31B}", "\u{1A1}" => "\u{6F}\u{31B}", "\u{1AF}" => "\u{55}\u{31B}", - "\u{1B0}" => "\u{75}\u{31B}", "\u{1CD}" => "\u{41}\u{30C}", "\u{1CE}" => "\u{61}\u{30C}", "\u{1CF}" => "\u{49}\u{30C}", - "\u{1D0}" => "\u{69}\u{30C}", "\u{1D1}" => "\u{4F}\u{30C}", "\u{1D2}" => "\u{6F}\u{30C}", "\u{1D3}" => "\u{55}\u{30C}", - "\u{1D4}" => "\u{75}\u{30C}", "\u{1D5}" => "\u{DC}\u{304}", "\u{1D6}" => "\u{FC}\u{304}", "\u{1D7}" => "\u{DC}\u{301}", - "\u{1D8}" => "\u{FC}\u{301}", "\u{1D9}" => "\u{DC}\u{30C}", "\u{1DA}" => "\u{FC}\u{30C}", "\u{1DB}" => "\u{DC}\u{300}", - "\u{1DC}" => "\u{FC}\u{300}", "\u{1DE}" => "\u{C4}\u{304}", "\u{1DF}" => "\u{E4}\u{304}", "\u{1E0}" => "\u{226}\u{304}", - "\u{1E1}" => "\u{227}\u{304}", "\u{1E2}" => "\u{C6}\u{304}", "\u{1E3}" => "\u{E6}\u{304}", "\u{1E6}" => "\u{47}\u{30C}", - "\u{1E7}" => "\u{67}\u{30C}", "\u{1E8}" => "\u{4B}\u{30C}", "\u{1E9}" => "\u{6B}\u{30C}", "\u{1EA}" => "\u{4F}\u{328}", - "\u{1EB}" => "\u{6F}\u{328}", "\u{1EC}" => "\u{1EA}\u{304}", "\u{1ED}" => "\u{1EB}\u{304}", "\u{1EE}" => "\u{1B7}\u{30C}", - "\u{1EF}" => "\u{292}\u{30C}", "\u{1F0}" => "\u{6A}\u{30C}", "\u{1F4}" => "\u{47}\u{301}", "\u{1F5}" => "\u{67}\u{301}", - "\u{1F8}" => "\u{4E}\u{300}", "\u{1F9}" => "\u{6E}\u{300}", "\u{1FA}" => "\u{C5}\u{301}", "\u{1FB}" => "\u{E5}\u{301}", - "\u{1FC}" => "\u{C6}\u{301}", "\u{1FD}" => "\u{E6}\u{301}", "\u{1FE}" => "\u{D8}\u{301}", "\u{1FF}" => "\u{F8}\u{301}", - "\u{200}" => "\u{41}\u{30F}", "\u{201}" => "\u{61}\u{30F}", "\u{202}" => "\u{41}\u{311}", "\u{203}" => "\u{61}\u{311}", - "\u{204}" => "\u{45}\u{30F}", "\u{205}" => "\u{65}\u{30F}", "\u{206}" => "\u{45}\u{311}", "\u{207}" => "\u{65}\u{311}", - "\u{208}" => "\u{49}\u{30F}", "\u{209}" => "\u{69}\u{30F}", "\u{20A}" => "\u{49}\u{311}", "\u{20B}" => "\u{69}\u{311}", - "\u{20C}" => "\u{4F}\u{30F}", "\u{20D}" => "\u{6F}\u{30F}", "\u{20E}" => "\u{4F}\u{311}", "\u{20F}" => "\u{6F}\u{311}", - "\u{210}" => "\u{52}\u{30F}", "\u{211}" => "\u{72}\u{30F}", "\u{212}" => "\u{52}\u{311}", "\u{213}" => "\u{72}\u{311}", - "\u{214}" => "\u{55}\u{30F}", "\u{215}" => "\u{75}\u{30F}", "\u{216}" => "\u{55}\u{311}", "\u{217}" => "\u{75}\u{311}", - "\u{218}" => "\u{53}\u{326}", "\u{219}" => "\u{73}\u{326}", "\u{21A}" => "\u{54}\u{326}", "\u{21B}" => "\u{74}\u{326}", - "\u{21E}" => "\u{48}\u{30C}", "\u{21F}" => "\u{68}\u{30C}", "\u{226}" => "\u{41}\u{307}", "\u{227}" => "\u{61}\u{307}", - "\u{228}" => "\u{45}\u{327}", "\u{229}" => "\u{65}\u{327}", "\u{22A}" => "\u{D6}\u{304}", "\u{22B}" => "\u{F6}\u{304}", - "\u{22C}" => "\u{D5}\u{304}", "\u{22D}" => "\u{F5}\u{304}", "\u{22E}" => "\u{4F}\u{307}", "\u{22F}" => "\u{6F}\u{307}", - "\u{230}" => "\u{22E}\u{304}", "\u{231}" => "\u{22F}\u{304}", "\u{232}" => "\u{59}\u{304}", "\u{233}" => "\u{79}\u{304}", - "\u{340}" => "\u{300}", "\u{341}" => "\u{301}", "\u{343}" => "\u{313}", "\u{344}" => "\u{308}\u{301}", - "\u{374}" => "\u{2B9}", "\u{37E}" => "\u{3B}", "\u{385}" => "\u{A8}\u{301}", "\u{386}" => "\u{391}\u{301}", - "\u{387}" => "\u{B7}", "\u{388}" => "\u{395}\u{301}", "\u{389}" => "\u{397}\u{301}", "\u{38A}" => "\u{399}\u{301}", - "\u{38C}" => "\u{39F}\u{301}", "\u{38E}" => "\u{3A5}\u{301}", "\u{38F}" => "\u{3A9}\u{301}", "\u{390}" => "\u{3CA}\u{301}", - "\u{3AA}" => "\u{399}\u{308}", "\u{3AB}" => "\u{3A5}\u{308}", "\u{3AC}" => "\u{3B1}\u{301}", "\u{3AD}" => "\u{3B5}\u{301}", - "\u{3AE}" => "\u{3B7}\u{301}", "\u{3AF}" => "\u{3B9}\u{301}", "\u{3B0}" => "\u{3CB}\u{301}", "\u{3CA}" => "\u{3B9}\u{308}", - "\u{3CB}" => "\u{3C5}\u{308}", "\u{3CC}" => "\u{3BF}\u{301}", "\u{3CD}" => "\u{3C5}\u{301}", "\u{3CE}" => "\u{3C9}\u{301}", - "\u{3D3}" => "\u{3D2}\u{301}", "\u{3D4}" => "\u{3D2}\u{308}", "\u{400}" => "\u{415}\u{300}", "\u{401}" => "\u{415}\u{308}", - "\u{403}" => "\u{413}\u{301}", "\u{407}" => "\u{406}\u{308}", "\u{40C}" => "\u{41A}\u{301}", "\u{40D}" => "\u{418}\u{300}", - "\u{40E}" => "\u{423}\u{306}", "\u{419}" => "\u{418}\u{306}", "\u{439}" => "\u{438}\u{306}", "\u{450}" => "\u{435}\u{300}", - "\u{451}" => "\u{435}\u{308}", "\u{453}" => "\u{433}\u{301}", "\u{457}" => "\u{456}\u{308}", "\u{45C}" => "\u{43A}\u{301}", - "\u{45D}" => "\u{438}\u{300}", "\u{45E}" => "\u{443}\u{306}", "\u{476}" => "\u{474}\u{30F}", "\u{477}" => "\u{475}\u{30F}", - "\u{4C1}" => "\u{416}\u{306}", "\u{4C2}" => "\u{436}\u{306}", "\u{4D0}" => "\u{410}\u{306}", "\u{4D1}" => "\u{430}\u{306}", - "\u{4D2}" => "\u{410}\u{308}", "\u{4D3}" => "\u{430}\u{308}", "\u{4D6}" => "\u{415}\u{306}", "\u{4D7}" => "\u{435}\u{306}", - "\u{4DA}" => "\u{4D8}\u{308}", "\u{4DB}" => "\u{4D9}\u{308}", "\u{4DC}" => "\u{416}\u{308}", "\u{4DD}" => "\u{436}\u{308}", - "\u{4DE}" => "\u{417}\u{308}", "\u{4DF}" => "\u{437}\u{308}", "\u{4E2}" => "\u{418}\u{304}", "\u{4E3}" => "\u{438}\u{304}", - "\u{4E4}" => "\u{418}\u{308}", "\u{4E5}" => "\u{438}\u{308}", "\u{4E6}" => "\u{41E}\u{308}", "\u{4E7}" => "\u{43E}\u{308}", - "\u{4EA}" => "\u{4E8}\u{308}", "\u{4EB}" => "\u{4E9}\u{308}", "\u{4EC}" => "\u{42D}\u{308}", "\u{4ED}" => "\u{44D}\u{308}", - "\u{4EE}" => "\u{423}\u{304}", "\u{4EF}" => "\u{443}\u{304}", "\u{4F0}" => "\u{423}\u{308}", "\u{4F1}" => "\u{443}\u{308}", - "\u{4F2}" => "\u{423}\u{30B}", "\u{4F3}" => "\u{443}\u{30B}", "\u{4F4}" => "\u{427}\u{308}", "\u{4F5}" => "\u{447}\u{308}", - "\u{4F8}" => "\u{42B}\u{308}", "\u{4F9}" => "\u{44B}\u{308}", "\u{622}" => "\u{627}\u{653}", "\u{623}" => "\u{627}\u{654}", - "\u{624}" => "\u{648}\u{654}", "\u{625}" => "\u{627}\u{655}", "\u{626}" => "\u{64A}\u{654}", "\u{6C0}" => "\u{6D5}\u{654}", - "\u{6C2}" => "\u{6C1}\u{654}", "\u{6D3}" => "\u{6D2}\u{654}", "\u{929}" => "\u{928}\u{93C}", "\u{931}" => "\u{930}\u{93C}", - "\u{934}" => "\u{933}\u{93C}", "\u{958}" => "\u{915}\u{93C}", "\u{959}" => "\u{916}\u{93C}", "\u{95A}" => "\u{917}\u{93C}", - "\u{95B}" => "\u{91C}\u{93C}", "\u{95C}" => "\u{921}\u{93C}", "\u{95D}" => "\u{922}\u{93C}", "\u{95E}" => "\u{92B}\u{93C}", - "\u{95F}" => "\u{92F}\u{93C}", "\u{9CB}" => "\u{9C7}\u{9BE}", "\u{9CC}" => "\u{9C7}\u{9D7}", "\u{9DC}" => "\u{9A1}\u{9BC}", - "\u{9DD}" => "\u{9A2}\u{9BC}", "\u{9DF}" => "\u{9AF}\u{9BC}", "\u{A33}" => "\u{A32}\u{A3C}", "\u{A36}" => "\u{A38}\u{A3C}", - "\u{A59}" => "\u{A16}\u{A3C}", "\u{A5A}" => "\u{A17}\u{A3C}", "\u{A5B}" => "\u{A1C}\u{A3C}", "\u{A5E}" => "\u{A2B}\u{A3C}", - "\u{B48}" => "\u{B47}\u{B56}", "\u{B4B}" => "\u{B47}\u{B3E}", "\u{B4C}" => "\u{B47}\u{B57}", "\u{B5C}" => "\u{B21}\u{B3C}", - "\u{B5D}" => "\u{B22}\u{B3C}", "\u{B94}" => "\u{B92}\u{BD7}", "\u{BCA}" => "\u{BC6}\u{BBE}", "\u{BCB}" => "\u{BC7}\u{BBE}", - "\u{BCC}" => "\u{BC6}\u{BD7}", "\u{C48}" => "\u{C46}\u{C56}", "\u{CC0}" => "\u{CBF}\u{CD5}", "\u{CC7}" => "\u{CC6}\u{CD5}", - "\u{CC8}" => "\u{CC6}\u{CD6}", "\u{CCA}" => "\u{CC6}\u{CC2}", "\u{CCB}" => "\u{CCA}\u{CD5}", "\u{D4A}" => "\u{D46}\u{D3E}", - "\u{D4B}" => "\u{D47}\u{D3E}", "\u{D4C}" => "\u{D46}\u{D57}", "\u{DDA}" => "\u{DD9}\u{DCA}", "\u{DDC}" => "\u{DD9}\u{DCF}", - "\u{DDD}" => "\u{DDC}\u{DCA}", "\u{DDE}" => "\u{DD9}\u{DDF}", "\u{F43}" => "\u{F42}\u{FB7}", "\u{F4D}" => "\u{F4C}\u{FB7}", - "\u{F52}" => "\u{F51}\u{FB7}", "\u{F57}" => "\u{F56}\u{FB7}", "\u{F5C}" => "\u{F5B}\u{FB7}", "\u{F69}" => "\u{F40}\u{FB5}", - "\u{F73}" => "\u{F71}\u{F72}", "\u{F75}" => "\u{F71}\u{F74}", "\u{F76}" => "\u{FB2}\u{F80}", "\u{F78}" => "\u{FB3}\u{F80}", - "\u{F81}" => "\u{F71}\u{F80}", "\u{F93}" => "\u{F92}\u{FB7}", "\u{F9D}" => "\u{F9C}\u{FB7}", "\u{FA2}" => "\u{FA1}\u{FB7}", - "\u{FA7}" => "\u{FA6}\u{FB7}", "\u{FAC}" => "\u{FAB}\u{FB7}", "\u{FB9}" => "\u{F90}\u{FB5}", "\u{1026}" => "\u{1025}\u{102E}", - "\u{1B06}" => "\u{1B05}\u{1B35}", "\u{1B08}" => "\u{1B07}\u{1B35}", "\u{1B0A}" => "\u{1B09}\u{1B35}", "\u{1B0C}" => "\u{1B0B}\u{1B35}", - "\u{1B0E}" => "\u{1B0D}\u{1B35}", "\u{1B12}" => "\u{1B11}\u{1B35}", "\u{1B3B}" => "\u{1B3A}\u{1B35}", "\u{1B3D}" => "\u{1B3C}\u{1B35}", - "\u{1B40}" => "\u{1B3E}\u{1B35}", "\u{1B41}" => "\u{1B3F}\u{1B35}", "\u{1B43}" => "\u{1B42}\u{1B35}", "\u{1E00}" => "\u{41}\u{325}", - "\u{1E01}" => "\u{61}\u{325}", "\u{1E02}" => "\u{42}\u{307}", "\u{1E03}" => "\u{62}\u{307}", "\u{1E04}" => "\u{42}\u{323}", - "\u{1E05}" => "\u{62}\u{323}", "\u{1E06}" => "\u{42}\u{331}", "\u{1E07}" => "\u{62}\u{331}", "\u{1E08}" => "\u{C7}\u{301}", - "\u{1E09}" => "\u{E7}\u{301}", "\u{1E0A}" => "\u{44}\u{307}", "\u{1E0B}" => "\u{64}\u{307}", "\u{1E0C}" => "\u{44}\u{323}", - "\u{1E0D}" => "\u{64}\u{323}", "\u{1E0E}" => "\u{44}\u{331}", "\u{1E0F}" => "\u{64}\u{331}", "\u{1E10}" => "\u{44}\u{327}", - "\u{1E11}" => "\u{64}\u{327}", "\u{1E12}" => "\u{44}\u{32D}", "\u{1E13}" => "\u{64}\u{32D}", "\u{1E14}" => "\u{112}\u{300}", - "\u{1E15}" => "\u{113}\u{300}", "\u{1E16}" => "\u{112}\u{301}", "\u{1E17}" => "\u{113}\u{301}", "\u{1E18}" => "\u{45}\u{32D}", - "\u{1E19}" => "\u{65}\u{32D}", "\u{1E1A}" => "\u{45}\u{330}", "\u{1E1B}" => "\u{65}\u{330}", "\u{1E1C}" => "\u{228}\u{306}", - "\u{1E1D}" => "\u{229}\u{306}", "\u{1E1E}" => "\u{46}\u{307}", "\u{1E1F}" => "\u{66}\u{307}", "\u{1E20}" => "\u{47}\u{304}", - "\u{1E21}" => "\u{67}\u{304}", "\u{1E22}" => "\u{48}\u{307}", "\u{1E23}" => "\u{68}\u{307}", "\u{1E24}" => "\u{48}\u{323}", - "\u{1E25}" => "\u{68}\u{323}", "\u{1E26}" => "\u{48}\u{308}", "\u{1E27}" => "\u{68}\u{308}", "\u{1E28}" => "\u{48}\u{327}", - "\u{1E29}" => "\u{68}\u{327}", "\u{1E2A}" => "\u{48}\u{32E}", "\u{1E2B}" => "\u{68}\u{32E}", "\u{1E2C}" => "\u{49}\u{330}", - "\u{1E2D}" => "\u{69}\u{330}", "\u{1E2E}" => "\u{CF}\u{301}", "\u{1E2F}" => "\u{EF}\u{301}", "\u{1E30}" => "\u{4B}\u{301}", - "\u{1E31}" => "\u{6B}\u{301}", "\u{1E32}" => "\u{4B}\u{323}", "\u{1E33}" => "\u{6B}\u{323}", "\u{1E34}" => "\u{4B}\u{331}", - "\u{1E35}" => "\u{6B}\u{331}", "\u{1E36}" => "\u{4C}\u{323}", "\u{1E37}" => "\u{6C}\u{323}", "\u{1E38}" => "\u{1E36}\u{304}", - "\u{1E39}" => "\u{1E37}\u{304}", "\u{1E3A}" => "\u{4C}\u{331}", "\u{1E3B}" => "\u{6C}\u{331}", "\u{1E3C}" => "\u{4C}\u{32D}", - "\u{1E3D}" => "\u{6C}\u{32D}", "\u{1E3E}" => "\u{4D}\u{301}", "\u{1E3F}" => "\u{6D}\u{301}", "\u{1E40}" => "\u{4D}\u{307}", - "\u{1E41}" => "\u{6D}\u{307}", "\u{1E42}" => "\u{4D}\u{323}", "\u{1E43}" => "\u{6D}\u{323}", "\u{1E44}" => "\u{4E}\u{307}", - "\u{1E45}" => "\u{6E}\u{307}", "\u{1E46}" => "\u{4E}\u{323}", "\u{1E47}" => "\u{6E}\u{323}", "\u{1E48}" => "\u{4E}\u{331}", - "\u{1E49}" => "\u{6E}\u{331}", "\u{1E4A}" => "\u{4E}\u{32D}", "\u{1E4B}" => "\u{6E}\u{32D}", "\u{1E4C}" => "\u{D5}\u{301}", - "\u{1E4D}" => "\u{F5}\u{301}", "\u{1E4E}" => "\u{D5}\u{308}", "\u{1E4F}" => "\u{F5}\u{308}", "\u{1E50}" => "\u{14C}\u{300}", - "\u{1E51}" => "\u{14D}\u{300}", "\u{1E52}" => "\u{14C}\u{301}", "\u{1E53}" => "\u{14D}\u{301}", "\u{1E54}" => "\u{50}\u{301}", - "\u{1E55}" => "\u{70}\u{301}", "\u{1E56}" => "\u{50}\u{307}", "\u{1E57}" => "\u{70}\u{307}", "\u{1E58}" => "\u{52}\u{307}", - "\u{1E59}" => "\u{72}\u{307}", "\u{1E5A}" => "\u{52}\u{323}", "\u{1E5B}" => "\u{72}\u{323}", "\u{1E5C}" => "\u{1E5A}\u{304}", - "\u{1E5D}" => "\u{1E5B}\u{304}", "\u{1E5E}" => "\u{52}\u{331}", "\u{1E5F}" => "\u{72}\u{331}", "\u{1E60}" => "\u{53}\u{307}", - "\u{1E61}" => "\u{73}\u{307}", "\u{1E62}" => "\u{53}\u{323}", "\u{1E63}" => "\u{73}\u{323}", "\u{1E64}" => "\u{15A}\u{307}", - "\u{1E65}" => "\u{15B}\u{307}", "\u{1E66}" => "\u{160}\u{307}", "\u{1E67}" => "\u{161}\u{307}", "\u{1E68}" => "\u{1E62}\u{307}", - "\u{1E69}" => "\u{1E63}\u{307}", "\u{1E6A}" => "\u{54}\u{307}", "\u{1E6B}" => "\u{74}\u{307}", "\u{1E6C}" => "\u{54}\u{323}", - "\u{1E6D}" => "\u{74}\u{323}", "\u{1E6E}" => "\u{54}\u{331}", "\u{1E6F}" => "\u{74}\u{331}", "\u{1E70}" => "\u{54}\u{32D}", - "\u{1E71}" => "\u{74}\u{32D}", "\u{1E72}" => "\u{55}\u{324}", "\u{1E73}" => "\u{75}\u{324}", "\u{1E74}" => "\u{55}\u{330}", - "\u{1E75}" => "\u{75}\u{330}", "\u{1E76}" => "\u{55}\u{32D}", "\u{1E77}" => "\u{75}\u{32D}", "\u{1E78}" => "\u{168}\u{301}", - "\u{1E79}" => "\u{169}\u{301}", "\u{1E7A}" => "\u{16A}\u{308}", "\u{1E7B}" => "\u{16B}\u{308}", "\u{1E7C}" => "\u{56}\u{303}", - "\u{1E7D}" => "\u{76}\u{303}", "\u{1E7E}" => "\u{56}\u{323}", "\u{1E7F}" => "\u{76}\u{323}", "\u{1E80}" => "\u{57}\u{300}", - "\u{1E81}" => "\u{77}\u{300}", "\u{1E82}" => "\u{57}\u{301}", "\u{1E83}" => "\u{77}\u{301}", "\u{1E84}" => "\u{57}\u{308}", - "\u{1E85}" => "\u{77}\u{308}", "\u{1E86}" => "\u{57}\u{307}", "\u{1E87}" => "\u{77}\u{307}", "\u{1E88}" => "\u{57}\u{323}", - "\u{1E89}" => "\u{77}\u{323}", "\u{1E8A}" => "\u{58}\u{307}", "\u{1E8B}" => "\u{78}\u{307}", "\u{1E8C}" => "\u{58}\u{308}", - "\u{1E8D}" => "\u{78}\u{308}", "\u{1E8E}" => "\u{59}\u{307}", "\u{1E8F}" => "\u{79}\u{307}", "\u{1E90}" => "\u{5A}\u{302}", - "\u{1E91}" => "\u{7A}\u{302}", "\u{1E92}" => "\u{5A}\u{323}", "\u{1E93}" => "\u{7A}\u{323}", "\u{1E94}" => "\u{5A}\u{331}", - "\u{1E95}" => "\u{7A}\u{331}", "\u{1E96}" => "\u{68}\u{331}", "\u{1E97}" => "\u{74}\u{308}", "\u{1E98}" => "\u{77}\u{30A}", - "\u{1E99}" => "\u{79}\u{30A}", "\u{1E9B}" => "\u{17F}\u{307}", "\u{1EA0}" => "\u{41}\u{323}", "\u{1EA1}" => "\u{61}\u{323}", - "\u{1EA2}" => "\u{41}\u{309}", "\u{1EA3}" => "\u{61}\u{309}", "\u{1EA4}" => "\u{C2}\u{301}", "\u{1EA5}" => "\u{E2}\u{301}", - "\u{1EA6}" => "\u{C2}\u{300}", "\u{1EA7}" => "\u{E2}\u{300}", "\u{1EA8}" => "\u{C2}\u{309}", "\u{1EA9}" => "\u{E2}\u{309}", - "\u{1EAA}" => "\u{C2}\u{303}", "\u{1EAB}" => "\u{E2}\u{303}", "\u{1EAC}" => "\u{1EA0}\u{302}", "\u{1EAD}" => "\u{1EA1}\u{302}", - "\u{1EAE}" => "\u{102}\u{301}", "\u{1EAF}" => "\u{103}\u{301}", "\u{1EB0}" => "\u{102}\u{300}", "\u{1EB1}" => "\u{103}\u{300}", - "\u{1EB2}" => "\u{102}\u{309}", "\u{1EB3}" => "\u{103}\u{309}", "\u{1EB4}" => "\u{102}\u{303}", "\u{1EB5}" => "\u{103}\u{303}", - "\u{1EB6}" => "\u{1EA0}\u{306}", "\u{1EB7}" => "\u{1EA1}\u{306}", "\u{1EB8}" => "\u{45}\u{323}", "\u{1EB9}" => "\u{65}\u{323}", - "\u{1EBA}" => "\u{45}\u{309}", "\u{1EBB}" => "\u{65}\u{309}", "\u{1EBC}" => "\u{45}\u{303}", "\u{1EBD}" => "\u{65}\u{303}", - "\u{1EBE}" => "\u{CA}\u{301}", "\u{1EBF}" => "\u{EA}\u{301}", "\u{1EC0}" => "\u{CA}\u{300}", "\u{1EC1}" => "\u{EA}\u{300}", - "\u{1EC2}" => "\u{CA}\u{309}", "\u{1EC3}" => "\u{EA}\u{309}", "\u{1EC4}" => "\u{CA}\u{303}", "\u{1EC5}" => "\u{EA}\u{303}", - "\u{1EC6}" => "\u{1EB8}\u{302}", "\u{1EC7}" => "\u{1EB9}\u{302}", "\u{1EC8}" => "\u{49}\u{309}", "\u{1EC9}" => "\u{69}\u{309}", - "\u{1ECA}" => "\u{49}\u{323}", "\u{1ECB}" => "\u{69}\u{323}", "\u{1ECC}" => "\u{4F}\u{323}", "\u{1ECD}" => "\u{6F}\u{323}", - "\u{1ECE}" => "\u{4F}\u{309}", "\u{1ECF}" => "\u{6F}\u{309}", "\u{1ED0}" => "\u{D4}\u{301}", "\u{1ED1}" => "\u{F4}\u{301}", - "\u{1ED2}" => "\u{D4}\u{300}", "\u{1ED3}" => "\u{F4}\u{300}", "\u{1ED4}" => "\u{D4}\u{309}", "\u{1ED5}" => "\u{F4}\u{309}", - "\u{1ED6}" => "\u{D4}\u{303}", "\u{1ED7}" => "\u{F4}\u{303}", "\u{1ED8}" => "\u{1ECC}\u{302}", "\u{1ED9}" => "\u{1ECD}\u{302}", - "\u{1EDA}" => "\u{1A0}\u{301}", "\u{1EDB}" => "\u{1A1}\u{301}", "\u{1EDC}" => "\u{1A0}\u{300}", "\u{1EDD}" => "\u{1A1}\u{300}", - "\u{1EDE}" => "\u{1A0}\u{309}", "\u{1EDF}" => "\u{1A1}\u{309}", "\u{1EE0}" => "\u{1A0}\u{303}", "\u{1EE1}" => "\u{1A1}\u{303}", - "\u{1EE2}" => "\u{1A0}\u{323}", "\u{1EE3}" => "\u{1A1}\u{323}", "\u{1EE4}" => "\u{55}\u{323}", "\u{1EE5}" => "\u{75}\u{323}", - "\u{1EE6}" => "\u{55}\u{309}", "\u{1EE7}" => "\u{75}\u{309}", "\u{1EE8}" => "\u{1AF}\u{301}", "\u{1EE9}" => "\u{1B0}\u{301}", - "\u{1EEA}" => "\u{1AF}\u{300}", "\u{1EEB}" => "\u{1B0}\u{300}", "\u{1EEC}" => "\u{1AF}\u{309}", "\u{1EED}" => "\u{1B0}\u{309}", - "\u{1EEE}" => "\u{1AF}\u{303}", "\u{1EEF}" => "\u{1B0}\u{303}", "\u{1EF0}" => "\u{1AF}\u{323}", "\u{1EF1}" => "\u{1B0}\u{323}", - "\u{1EF2}" => "\u{59}\u{300}", "\u{1EF3}" => "\u{79}\u{300}", "\u{1EF4}" => "\u{59}\u{323}", "\u{1EF5}" => "\u{79}\u{323}", - "\u{1EF6}" => "\u{59}\u{309}", "\u{1EF7}" => "\u{79}\u{309}", "\u{1EF8}" => "\u{59}\u{303}", "\u{1EF9}" => "\u{79}\u{303}", - "\u{1F00}" => "\u{3B1}\u{313}", "\u{1F01}" => "\u{3B1}\u{314}", "\u{1F02}" => "\u{1F00}\u{300}", "\u{1F03}" => "\u{1F01}\u{300}", - "\u{1F04}" => "\u{1F00}\u{301}", "\u{1F05}" => "\u{1F01}\u{301}", "\u{1F06}" => "\u{1F00}\u{342}", "\u{1F07}" => "\u{1F01}\u{342}", - "\u{1F08}" => "\u{391}\u{313}", "\u{1F09}" => "\u{391}\u{314}", "\u{1F0A}" => "\u{1F08}\u{300}", "\u{1F0B}" => "\u{1F09}\u{300}", - "\u{1F0C}" => "\u{1F08}\u{301}", "\u{1F0D}" => "\u{1F09}\u{301}", "\u{1F0E}" => "\u{1F08}\u{342}", "\u{1F0F}" => "\u{1F09}\u{342}", - "\u{1F10}" => "\u{3B5}\u{313}", "\u{1F11}" => "\u{3B5}\u{314}", "\u{1F12}" => "\u{1F10}\u{300}", "\u{1F13}" => "\u{1F11}\u{300}", - "\u{1F14}" => "\u{1F10}\u{301}", "\u{1F15}" => "\u{1F11}\u{301}", "\u{1F18}" => "\u{395}\u{313}", "\u{1F19}" => "\u{395}\u{314}", - "\u{1F1A}" => "\u{1F18}\u{300}", "\u{1F1B}" => "\u{1F19}\u{300}", "\u{1F1C}" => "\u{1F18}\u{301}", "\u{1F1D}" => "\u{1F19}\u{301}", - "\u{1F20}" => "\u{3B7}\u{313}", "\u{1F21}" => "\u{3B7}\u{314}", "\u{1F22}" => "\u{1F20}\u{300}", "\u{1F23}" => "\u{1F21}\u{300}", - "\u{1F24}" => "\u{1F20}\u{301}", "\u{1F25}" => "\u{1F21}\u{301}", "\u{1F26}" => "\u{1F20}\u{342}", "\u{1F27}" => "\u{1F21}\u{342}", - "\u{1F28}" => "\u{397}\u{313}", "\u{1F29}" => "\u{397}\u{314}", "\u{1F2A}" => "\u{1F28}\u{300}", "\u{1F2B}" => "\u{1F29}\u{300}", - "\u{1F2C}" => "\u{1F28}\u{301}", "\u{1F2D}" => "\u{1F29}\u{301}", "\u{1F2E}" => "\u{1F28}\u{342}", "\u{1F2F}" => "\u{1F29}\u{342}", - "\u{1F30}" => "\u{3B9}\u{313}", "\u{1F31}" => "\u{3B9}\u{314}", "\u{1F32}" => "\u{1F30}\u{300}", "\u{1F33}" => "\u{1F31}\u{300}", - "\u{1F34}" => "\u{1F30}\u{301}", "\u{1F35}" => "\u{1F31}\u{301}", "\u{1F36}" => "\u{1F30}\u{342}", "\u{1F37}" => "\u{1F31}\u{342}", - "\u{1F38}" => "\u{399}\u{313}", "\u{1F39}" => "\u{399}\u{314}", "\u{1F3A}" => "\u{1F38}\u{300}", "\u{1F3B}" => "\u{1F39}\u{300}", - "\u{1F3C}" => "\u{1F38}\u{301}", "\u{1F3D}" => "\u{1F39}\u{301}", "\u{1F3E}" => "\u{1F38}\u{342}", "\u{1F3F}" => "\u{1F39}\u{342}", - "\u{1F40}" => "\u{3BF}\u{313}", "\u{1F41}" => "\u{3BF}\u{314}", "\u{1F42}" => "\u{1F40}\u{300}", "\u{1F43}" => "\u{1F41}\u{300}", - "\u{1F44}" => "\u{1F40}\u{301}", "\u{1F45}" => "\u{1F41}\u{301}", "\u{1F48}" => "\u{39F}\u{313}", "\u{1F49}" => "\u{39F}\u{314}", - "\u{1F4A}" => "\u{1F48}\u{300}", "\u{1F4B}" => "\u{1F49}\u{300}", "\u{1F4C}" => "\u{1F48}\u{301}", "\u{1F4D}" => "\u{1F49}\u{301}", - "\u{1F50}" => "\u{3C5}\u{313}", "\u{1F51}" => "\u{3C5}\u{314}", "\u{1F52}" => "\u{1F50}\u{300}", "\u{1F53}" => "\u{1F51}\u{300}", - "\u{1F54}" => "\u{1F50}\u{301}", "\u{1F55}" => "\u{1F51}\u{301}", "\u{1F56}" => "\u{1F50}\u{342}", "\u{1F57}" => "\u{1F51}\u{342}", - "\u{1F59}" => "\u{3A5}\u{314}", "\u{1F5B}" => "\u{1F59}\u{300}", "\u{1F5D}" => "\u{1F59}\u{301}", "\u{1F5F}" => "\u{1F59}\u{342}", - "\u{1F60}" => "\u{3C9}\u{313}", "\u{1F61}" => "\u{3C9}\u{314}", "\u{1F62}" => "\u{1F60}\u{300}", "\u{1F63}" => "\u{1F61}\u{300}", - "\u{1F64}" => "\u{1F60}\u{301}", "\u{1F65}" => "\u{1F61}\u{301}", "\u{1F66}" => "\u{1F60}\u{342}", "\u{1F67}" => "\u{1F61}\u{342}", - "\u{1F68}" => "\u{3A9}\u{313}", "\u{1F69}" => "\u{3A9}\u{314}", "\u{1F6A}" => "\u{1F68}\u{300}", "\u{1F6B}" => "\u{1F69}\u{300}", - "\u{1F6C}" => "\u{1F68}\u{301}", "\u{1F6D}" => "\u{1F69}\u{301}", "\u{1F6E}" => "\u{1F68}\u{342}", "\u{1F6F}" => "\u{1F69}\u{342}", - "\u{1F70}" => "\u{3B1}\u{300}", "\u{1F71}" => "\u{3AC}", "\u{1F72}" => "\u{3B5}\u{300}", "\u{1F73}" => "\u{3AD}", - "\u{1F74}" => "\u{3B7}\u{300}", "\u{1F75}" => "\u{3AE}", "\u{1F76}" => "\u{3B9}\u{300}", "\u{1F77}" => "\u{3AF}", - "\u{1F78}" => "\u{3BF}\u{300}", "\u{1F79}" => "\u{3CC}", "\u{1F7A}" => "\u{3C5}\u{300}", "\u{1F7B}" => "\u{3CD}", - "\u{1F7C}" => "\u{3C9}\u{300}", "\u{1F7D}" => "\u{3CE}", "\u{1F80}" => "\u{1F00}\u{345}", "\u{1F81}" => "\u{1F01}\u{345}", - "\u{1F82}" => "\u{1F02}\u{345}", "\u{1F83}" => "\u{1F03}\u{345}", "\u{1F84}" => "\u{1F04}\u{345}", "\u{1F85}" => "\u{1F05}\u{345}", - "\u{1F86}" => "\u{1F06}\u{345}", "\u{1F87}" => "\u{1F07}\u{345}", "\u{1F88}" => "\u{1F08}\u{345}", "\u{1F89}" => "\u{1F09}\u{345}", - "\u{1F8A}" => "\u{1F0A}\u{345}", "\u{1F8B}" => "\u{1F0B}\u{345}", "\u{1F8C}" => "\u{1F0C}\u{345}", "\u{1F8D}" => "\u{1F0D}\u{345}", - "\u{1F8E}" => "\u{1F0E}\u{345}", "\u{1F8F}" => "\u{1F0F}\u{345}", "\u{1F90}" => "\u{1F20}\u{345}", "\u{1F91}" => "\u{1F21}\u{345}", - "\u{1F92}" => "\u{1F22}\u{345}", "\u{1F93}" => "\u{1F23}\u{345}", "\u{1F94}" => "\u{1F24}\u{345}", "\u{1F95}" => "\u{1F25}\u{345}", - "\u{1F96}" => "\u{1F26}\u{345}", "\u{1F97}" => "\u{1F27}\u{345}", "\u{1F98}" => "\u{1F28}\u{345}", "\u{1F99}" => "\u{1F29}\u{345}", - "\u{1F9A}" => "\u{1F2A}\u{345}", "\u{1F9B}" => "\u{1F2B}\u{345}", "\u{1F9C}" => "\u{1F2C}\u{345}", "\u{1F9D}" => "\u{1F2D}\u{345}", - "\u{1F9E}" => "\u{1F2E}\u{345}", "\u{1F9F}" => "\u{1F2F}\u{345}", "\u{1FA0}" => "\u{1F60}\u{345}", "\u{1FA1}" => "\u{1F61}\u{345}", - "\u{1FA2}" => "\u{1F62}\u{345}", "\u{1FA3}" => "\u{1F63}\u{345}", "\u{1FA4}" => "\u{1F64}\u{345}", "\u{1FA5}" => "\u{1F65}\u{345}", - "\u{1FA6}" => "\u{1F66}\u{345}", "\u{1FA7}" => "\u{1F67}\u{345}", "\u{1FA8}" => "\u{1F68}\u{345}", "\u{1FA9}" => "\u{1F69}\u{345}", - "\u{1FAA}" => "\u{1F6A}\u{345}", "\u{1FAB}" => "\u{1F6B}\u{345}", "\u{1FAC}" => "\u{1F6C}\u{345}", "\u{1FAD}" => "\u{1F6D}\u{345}", - "\u{1FAE}" => "\u{1F6E}\u{345}", "\u{1FAF}" => "\u{1F6F}\u{345}", "\u{1FB0}" => "\u{3B1}\u{306}", "\u{1FB1}" => "\u{3B1}\u{304}", - "\u{1FB2}" => "\u{1F70}\u{345}", "\u{1FB3}" => "\u{3B1}\u{345}", "\u{1FB4}" => "\u{3AC}\u{345}", "\u{1FB6}" => "\u{3B1}\u{342}", - "\u{1FB7}" => "\u{1FB6}\u{345}", "\u{1FB8}" => "\u{391}\u{306}", "\u{1FB9}" => "\u{391}\u{304}", "\u{1FBA}" => "\u{391}\u{300}", - "\u{1FBB}" => "\u{386}", "\u{1FBC}" => "\u{391}\u{345}", "\u{1FBE}" => "\u{3B9}", "\u{1FC1}" => "\u{A8}\u{342}", - "\u{1FC2}" => "\u{1F74}\u{345}", "\u{1FC3}" => "\u{3B7}\u{345}", "\u{1FC4}" => "\u{3AE}\u{345}", "\u{1FC6}" => "\u{3B7}\u{342}", - "\u{1FC7}" => "\u{1FC6}\u{345}", "\u{1FC8}" => "\u{395}\u{300}", "\u{1FC9}" => "\u{388}", "\u{1FCA}" => "\u{397}\u{300}", - "\u{1FCB}" => "\u{389}", "\u{1FCC}" => "\u{397}\u{345}", "\u{1FCD}" => "\u{1FBF}\u{300}", "\u{1FCE}" => "\u{1FBF}\u{301}", - "\u{1FCF}" => "\u{1FBF}\u{342}", "\u{1FD0}" => "\u{3B9}\u{306}", "\u{1FD1}" => "\u{3B9}\u{304}", "\u{1FD2}" => "\u{3CA}\u{300}", - "\u{1FD3}" => "\u{390}", "\u{1FD6}" => "\u{3B9}\u{342}", "\u{1FD7}" => "\u{3CA}\u{342}", "\u{1FD8}" => "\u{399}\u{306}", - "\u{1FD9}" => "\u{399}\u{304}", "\u{1FDA}" => "\u{399}\u{300}", "\u{1FDB}" => "\u{38A}", "\u{1FDD}" => "\u{1FFE}\u{300}", - "\u{1FDE}" => "\u{1FFE}\u{301}", "\u{1FDF}" => "\u{1FFE}\u{342}", "\u{1FE0}" => "\u{3C5}\u{306}", "\u{1FE1}" => "\u{3C5}\u{304}", - "\u{1FE2}" => "\u{3CB}\u{300}", "\u{1FE3}" => "\u{3B0}", "\u{1FE4}" => "\u{3C1}\u{313}", "\u{1FE5}" => "\u{3C1}\u{314}", - "\u{1FE6}" => "\u{3C5}\u{342}", "\u{1FE7}" => "\u{3CB}\u{342}", "\u{1FE8}" => "\u{3A5}\u{306}", "\u{1FE9}" => "\u{3A5}\u{304}", - "\u{1FEA}" => "\u{3A5}\u{300}", "\u{1FEB}" => "\u{38E}", "\u{1FEC}" => "\u{3A1}\u{314}", "\u{1FED}" => "\u{A8}\u{300}", - "\u{1FEE}" => "\u{385}", "\u{1FEF}" => "\u{60}", "\u{1FF2}" => "\u{1F7C}\u{345}", "\u{1FF3}" => "\u{3C9}\u{345}", - "\u{1FF4}" => "\u{3CE}\u{345}", "\u{1FF6}" => "\u{3C9}\u{342}", "\u{1FF7}" => "\u{1FF6}\u{345}", "\u{1FF8}" => "\u{39F}\u{300}", - "\u{1FF9}" => "\u{38C}", "\u{1FFA}" => "\u{3A9}\u{300}", "\u{1FFB}" => "\u{38F}", "\u{1FFC}" => "\u{3A9}\u{345}", - "\u{1FFD}" => "\u{B4}", "\u{2000}" => "\u{2002}", "\u{2001}" => "\u{2003}", "\u{2126}" => "\u{3A9}", - "\u{212A}" => "\u{4B}", "\u{212B}" => "\u{C5}", "\u{219A}" => "\u{2190}\u{338}", "\u{219B}" => "\u{2192}\u{338}", - "\u{21AE}" => "\u{2194}\u{338}", "\u{21CD}" => "\u{21D0}\u{338}", "\u{21CE}" => "\u{21D4}\u{338}", "\u{21CF}" => "\u{21D2}\u{338}", - "\u{2204}" => "\u{2203}\u{338}", "\u{2209}" => "\u{2208}\u{338}", "\u{220C}" => "\u{220B}\u{338}", "\u{2224}" => "\u{2223}\u{338}", - "\u{2226}" => "\u{2225}\u{338}", "\u{2241}" => "\u{223C}\u{338}", "\u{2244}" => "\u{2243}\u{338}", "\u{2247}" => "\u{2245}\u{338}", - "\u{2249}" => "\u{2248}\u{338}", "\u{2260}" => "\u{3D}\u{338}", "\u{2262}" => "\u{2261}\u{338}", "\u{226D}" => "\u{224D}\u{338}", - "\u{226E}" => "\u{3C}\u{338}", "\u{226F}" => "\u{3E}\u{338}", "\u{2270}" => "\u{2264}\u{338}", "\u{2271}" => "\u{2265}\u{338}", - "\u{2274}" => "\u{2272}\u{338}", "\u{2275}" => "\u{2273}\u{338}", "\u{2278}" => "\u{2276}\u{338}", "\u{2279}" => "\u{2277}\u{338}", - "\u{2280}" => "\u{227A}\u{338}", "\u{2281}" => "\u{227B}\u{338}", "\u{2284}" => "\u{2282}\u{338}", "\u{2285}" => "\u{2283}\u{338}", - "\u{2288}" => "\u{2286}\u{338}", "\u{2289}" => "\u{2287}\u{338}", "\u{22AC}" => "\u{22A2}\u{338}", "\u{22AD}" => "\u{22A8}\u{338}", - "\u{22AE}" => "\u{22A9}\u{338}", "\u{22AF}" => "\u{22AB}\u{338}", "\u{22E0}" => "\u{227C}\u{338}", "\u{22E1}" => "\u{227D}\u{338}", - "\u{22E2}" => "\u{2291}\u{338}", "\u{22E3}" => "\u{2292}\u{338}", "\u{22EA}" => "\u{22B2}\u{338}", "\u{22EB}" => "\u{22B3}\u{338}", - "\u{22EC}" => "\u{22B4}\u{338}", "\u{22ED}" => "\u{22B5}\u{338}", "\u{2329}" => "\u{3008}", "\u{232A}" => "\u{3009}", - "\u{2ADC}" => "\u{2ADD}\u{338}", "\u{304C}" => "\u{304B}\u{3099}", "\u{304E}" => "\u{304D}\u{3099}", "\u{3050}" => "\u{304F}\u{3099}", - "\u{3052}" => "\u{3051}\u{3099}", "\u{3054}" => "\u{3053}\u{3099}", "\u{3056}" => "\u{3055}\u{3099}", "\u{3058}" => "\u{3057}\u{3099}", - "\u{305A}" => "\u{3059}\u{3099}", "\u{305C}" => "\u{305B}\u{3099}", "\u{305E}" => "\u{305D}\u{3099}", "\u{3060}" => "\u{305F}\u{3099}", - "\u{3062}" => "\u{3061}\u{3099}", "\u{3065}" => "\u{3064}\u{3099}", "\u{3067}" => "\u{3066}\u{3099}", "\u{3069}" => "\u{3068}\u{3099}", - "\u{3070}" => "\u{306F}\u{3099}", "\u{3071}" => "\u{306F}\u{309A}", "\u{3073}" => "\u{3072}\u{3099}", "\u{3074}" => "\u{3072}\u{309A}", - "\u{3076}" => "\u{3075}\u{3099}", "\u{3077}" => "\u{3075}\u{309A}", "\u{3079}" => "\u{3078}\u{3099}", "\u{307A}" => "\u{3078}\u{309A}", - "\u{307C}" => "\u{307B}\u{3099}", "\u{307D}" => "\u{307B}\u{309A}", "\u{3094}" => "\u{3046}\u{3099}", "\u{309E}" => "\u{309D}\u{3099}", - "\u{30AC}" => "\u{30AB}\u{3099}", "\u{30AE}" => "\u{30AD}\u{3099}", "\u{30B0}" => "\u{30AF}\u{3099}", "\u{30B2}" => "\u{30B1}\u{3099}", - "\u{30B4}" => "\u{30B3}\u{3099}", "\u{30B6}" => "\u{30B5}\u{3099}", "\u{30B8}" => "\u{30B7}\u{3099}", "\u{30BA}" => "\u{30B9}\u{3099}", - "\u{30BC}" => "\u{30BB}\u{3099}", "\u{30BE}" => "\u{30BD}\u{3099}", "\u{30C0}" => "\u{30BF}\u{3099}", "\u{30C2}" => "\u{30C1}\u{3099}", - "\u{30C5}" => "\u{30C4}\u{3099}", "\u{30C7}" => "\u{30C6}\u{3099}", "\u{30C9}" => "\u{30C8}\u{3099}", "\u{30D0}" => "\u{30CF}\u{3099}", - "\u{30D1}" => "\u{30CF}\u{309A}", "\u{30D3}" => "\u{30D2}\u{3099}", "\u{30D4}" => "\u{30D2}\u{309A}", "\u{30D6}" => "\u{30D5}\u{3099}", - "\u{30D7}" => "\u{30D5}\u{309A}", "\u{30D9}" => "\u{30D8}\u{3099}", "\u{30DA}" => "\u{30D8}\u{309A}", "\u{30DC}" => "\u{30DB}\u{3099}", - "\u{30DD}" => "\u{30DB}\u{309A}", "\u{30F4}" => "\u{30A6}\u{3099}", "\u{30F7}" => "\u{30EF}\u{3099}", "\u{30F8}" => "\u{30F0}\u{3099}", - "\u{30F9}" => "\u{30F1}\u{3099}", "\u{30FA}" => "\u{30F2}\u{3099}", "\u{30FE}" => "\u{30FD}\u{3099}", "\u{F900}" => "\u{8C48}", - "\u{F901}" => "\u{66F4}", "\u{F902}" => "\u{8ECA}", "\u{F903}" => "\u{8CC8}", "\u{F904}" => "\u{6ED1}", - "\u{F905}" => "\u{4E32}", "\u{F906}" => "\u{53E5}", "\u{F907}" => "\u{9F9C}", "\u{F908}" => "\u{9F9C}", - "\u{F909}" => "\u{5951}", "\u{F90A}" => "\u{91D1}", "\u{F90B}" => "\u{5587}", "\u{F90C}" => "\u{5948}", - "\u{F90D}" => "\u{61F6}", "\u{F90E}" => "\u{7669}", "\u{F90F}" => "\u{7F85}", "\u{F910}" => "\u{863F}", - "\u{F911}" => "\u{87BA}", "\u{F912}" => "\u{88F8}", "\u{F913}" => "\u{908F}", "\u{F914}" => "\u{6A02}", - "\u{F915}" => "\u{6D1B}", "\u{F916}" => "\u{70D9}", "\u{F917}" => "\u{73DE}", "\u{F918}" => "\u{843D}", - "\u{F919}" => "\u{916A}", "\u{F91A}" => "\u{99F1}", "\u{F91B}" => "\u{4E82}", "\u{F91C}" => "\u{5375}", - "\u{F91D}" => "\u{6B04}", "\u{F91E}" => "\u{721B}", "\u{F91F}" => "\u{862D}", "\u{F920}" => "\u{9E1E}", - "\u{F921}" => "\u{5D50}", "\u{F922}" => "\u{6FEB}", "\u{F923}" => "\u{85CD}", "\u{F924}" => "\u{8964}", - "\u{F925}" => "\u{62C9}", "\u{F926}" => "\u{81D8}", "\u{F927}" => "\u{881F}", "\u{F928}" => "\u{5ECA}", - "\u{F929}" => "\u{6717}", "\u{F92A}" => "\u{6D6A}", "\u{F92B}" => "\u{72FC}", "\u{F92C}" => "\u{90CE}", - "\u{F92D}" => "\u{4F86}", "\u{F92E}" => "\u{51B7}", "\u{F92F}" => "\u{52DE}", "\u{F930}" => "\u{64C4}", - "\u{F931}" => "\u{6AD3}", "\u{F932}" => "\u{7210}", "\u{F933}" => "\u{76E7}", "\u{F934}" => "\u{8001}", - "\u{F935}" => "\u{8606}", "\u{F936}" => "\u{865C}", "\u{F937}" => "\u{8DEF}", "\u{F938}" => "\u{9732}", - "\u{F939}" => "\u{9B6F}", "\u{F93A}" => "\u{9DFA}", "\u{F93B}" => "\u{788C}", "\u{F93C}" => "\u{797F}", - "\u{F93D}" => "\u{7DA0}", "\u{F93E}" => "\u{83C9}", "\u{F93F}" => "\u{9304}", "\u{F940}" => "\u{9E7F}", - "\u{F941}" => "\u{8AD6}", "\u{F942}" => "\u{58DF}", "\u{F943}" => "\u{5F04}", "\u{F944}" => "\u{7C60}", - "\u{F945}" => "\u{807E}", "\u{F946}" => "\u{7262}", "\u{F947}" => "\u{78CA}", "\u{F948}" => "\u{8CC2}", - "\u{F949}" => "\u{96F7}", "\u{F94A}" => "\u{58D8}", "\u{F94B}" => "\u{5C62}", "\u{F94C}" => "\u{6A13}", - "\u{F94D}" => "\u{6DDA}", "\u{F94E}" => "\u{6F0F}", "\u{F94F}" => "\u{7D2F}", "\u{F950}" => "\u{7E37}", - "\u{F951}" => "\u{964B}", "\u{F952}" => "\u{52D2}", "\u{F953}" => "\u{808B}", "\u{F954}" => "\u{51DC}", - "\u{F955}" => "\u{51CC}", "\u{F956}" => "\u{7A1C}", "\u{F957}" => "\u{7DBE}", "\u{F958}" => "\u{83F1}", - "\u{F959}" => "\u{9675}", "\u{F95A}" => "\u{8B80}", "\u{F95B}" => "\u{62CF}", "\u{F95C}" => "\u{6A02}", - "\u{F95D}" => "\u{8AFE}", "\u{F95E}" => "\u{4E39}", "\u{F95F}" => "\u{5BE7}", "\u{F960}" => "\u{6012}", - "\u{F961}" => "\u{7387}", "\u{F962}" => "\u{7570}", "\u{F963}" => "\u{5317}", "\u{F964}" => "\u{78FB}", - "\u{F965}" => "\u{4FBF}", "\u{F966}" => "\u{5FA9}", "\u{F967}" => "\u{4E0D}", "\u{F968}" => "\u{6CCC}", - "\u{F969}" => "\u{6578}", "\u{F96A}" => "\u{7D22}", "\u{F96B}" => "\u{53C3}", "\u{F96C}" => "\u{585E}", - "\u{F96D}" => "\u{7701}", "\u{F96E}" => "\u{8449}", "\u{F96F}" => "\u{8AAA}", "\u{F970}" => "\u{6BBA}", - "\u{F971}" => "\u{8FB0}", "\u{F972}" => "\u{6C88}", "\u{F973}" => "\u{62FE}", "\u{F974}" => "\u{82E5}", - "\u{F975}" => "\u{63A0}", "\u{F976}" => "\u{7565}", "\u{F977}" => "\u{4EAE}", "\u{F978}" => "\u{5169}", - "\u{F979}" => "\u{51C9}", "\u{F97A}" => "\u{6881}", "\u{F97B}" => "\u{7CE7}", "\u{F97C}" => "\u{826F}", - "\u{F97D}" => "\u{8AD2}", "\u{F97E}" => "\u{91CF}", "\u{F97F}" => "\u{52F5}", "\u{F980}" => "\u{5442}", - "\u{F981}" => "\u{5973}", "\u{F982}" => "\u{5EEC}", "\u{F983}" => "\u{65C5}", "\u{F984}" => "\u{6FFE}", - "\u{F985}" => "\u{792A}", "\u{F986}" => "\u{95AD}", "\u{F987}" => "\u{9A6A}", "\u{F988}" => "\u{9E97}", - "\u{F989}" => "\u{9ECE}", "\u{F98A}" => "\u{529B}", "\u{F98B}" => "\u{66C6}", "\u{F98C}" => "\u{6B77}", - "\u{F98D}" => "\u{8F62}", "\u{F98E}" => "\u{5E74}", "\u{F98F}" => "\u{6190}", "\u{F990}" => "\u{6200}", - "\u{F991}" => "\u{649A}", "\u{F992}" => "\u{6F23}", "\u{F993}" => "\u{7149}", "\u{F994}" => "\u{7489}", - "\u{F995}" => "\u{79CA}", "\u{F996}" => "\u{7DF4}", "\u{F997}" => "\u{806F}", "\u{F998}" => "\u{8F26}", - "\u{F999}" => "\u{84EE}", "\u{F99A}" => "\u{9023}", "\u{F99B}" => "\u{934A}", "\u{F99C}" => "\u{5217}", - "\u{F99D}" => "\u{52A3}", "\u{F99E}" => "\u{54BD}", "\u{F99F}" => "\u{70C8}", "\u{F9A0}" => "\u{88C2}", - "\u{F9A1}" => "\u{8AAA}", "\u{F9A2}" => "\u{5EC9}", "\u{F9A3}" => "\u{5FF5}", "\u{F9A4}" => "\u{637B}", - "\u{F9A5}" => "\u{6BAE}", "\u{F9A6}" => "\u{7C3E}", "\u{F9A7}" => "\u{7375}", "\u{F9A8}" => "\u{4EE4}", - "\u{F9A9}" => "\u{56F9}", "\u{F9AA}" => "\u{5BE7}", "\u{F9AB}" => "\u{5DBA}", "\u{F9AC}" => "\u{601C}", - "\u{F9AD}" => "\u{73B2}", "\u{F9AE}" => "\u{7469}", "\u{F9AF}" => "\u{7F9A}", "\u{F9B0}" => "\u{8046}", - "\u{F9B1}" => "\u{9234}", "\u{F9B2}" => "\u{96F6}", "\u{F9B3}" => "\u{9748}", "\u{F9B4}" => "\u{9818}", - "\u{F9B5}" => "\u{4F8B}", "\u{F9B6}" => "\u{79AE}", "\u{F9B7}" => "\u{91B4}", "\u{F9B8}" => "\u{96B8}", - "\u{F9B9}" => "\u{60E1}", "\u{F9BA}" => "\u{4E86}", "\u{F9BB}" => "\u{50DA}", "\u{F9BC}" => "\u{5BEE}", - "\u{F9BD}" => "\u{5C3F}", "\u{F9BE}" => "\u{6599}", "\u{F9BF}" => "\u{6A02}", "\u{F9C0}" => "\u{71CE}", - "\u{F9C1}" => "\u{7642}", "\u{F9C2}" => "\u{84FC}", "\u{F9C3}" => "\u{907C}", "\u{F9C4}" => "\u{9F8D}", - "\u{F9C5}" => "\u{6688}", "\u{F9C6}" => "\u{962E}", "\u{F9C7}" => "\u{5289}", "\u{F9C8}" => "\u{677B}", - "\u{F9C9}" => "\u{67F3}", "\u{F9CA}" => "\u{6D41}", "\u{F9CB}" => "\u{6E9C}", "\u{F9CC}" => "\u{7409}", - "\u{F9CD}" => "\u{7559}", "\u{F9CE}" => "\u{786B}", "\u{F9CF}" => "\u{7D10}", "\u{F9D0}" => "\u{985E}", - "\u{F9D1}" => "\u{516D}", "\u{F9D2}" => "\u{622E}", "\u{F9D3}" => "\u{9678}", "\u{F9D4}" => "\u{502B}", - "\u{F9D5}" => "\u{5D19}", "\u{F9D6}" => "\u{6DEA}", "\u{F9D7}" => "\u{8F2A}", "\u{F9D8}" => "\u{5F8B}", - "\u{F9D9}" => "\u{6144}", "\u{F9DA}" => "\u{6817}", "\u{F9DB}" => "\u{7387}", "\u{F9DC}" => "\u{9686}", - "\u{F9DD}" => "\u{5229}", "\u{F9DE}" => "\u{540F}", "\u{F9DF}" => "\u{5C65}", "\u{F9E0}" => "\u{6613}", - "\u{F9E1}" => "\u{674E}", "\u{F9E2}" => "\u{68A8}", "\u{F9E3}" => "\u{6CE5}", "\u{F9E4}" => "\u{7406}", - "\u{F9E5}" => "\u{75E2}", "\u{F9E6}" => "\u{7F79}", "\u{F9E7}" => "\u{88CF}", "\u{F9E8}" => "\u{88E1}", - "\u{F9E9}" => "\u{91CC}", "\u{F9EA}" => "\u{96E2}", "\u{F9EB}" => "\u{533F}", "\u{F9EC}" => "\u{6EBA}", - "\u{F9ED}" => "\u{541D}", "\u{F9EE}" => "\u{71D0}", "\u{F9EF}" => "\u{7498}", "\u{F9F0}" => "\u{85FA}", - "\u{F9F1}" => "\u{96A3}", "\u{F9F2}" => "\u{9C57}", "\u{F9F3}" => "\u{9E9F}", "\u{F9F4}" => "\u{6797}", - "\u{F9F5}" => "\u{6DCB}", "\u{F9F6}" => "\u{81E8}", "\u{F9F7}" => "\u{7ACB}", "\u{F9F8}" => "\u{7B20}", - "\u{F9F9}" => "\u{7C92}", "\u{F9FA}" => "\u{72C0}", "\u{F9FB}" => "\u{7099}", "\u{F9FC}" => "\u{8B58}", - "\u{F9FD}" => "\u{4EC0}", "\u{F9FE}" => "\u{8336}", "\u{F9FF}" => "\u{523A}", "\u{FA00}" => "\u{5207}", - "\u{FA01}" => "\u{5EA6}", "\u{FA02}" => "\u{62D3}", "\u{FA03}" => "\u{7CD6}", "\u{FA04}" => "\u{5B85}", - "\u{FA05}" => "\u{6D1E}", "\u{FA06}" => "\u{66B4}", "\u{FA07}" => "\u{8F3B}", "\u{FA08}" => "\u{884C}", - "\u{FA09}" => "\u{964D}", "\u{FA0A}" => "\u{898B}", "\u{FA0B}" => "\u{5ED3}", "\u{FA0C}" => "\u{5140}", - "\u{FA0D}" => "\u{55C0}", "\u{FA10}" => "\u{585A}", "\u{FA12}" => "\u{6674}", "\u{FA15}" => "\u{51DE}", - "\u{FA16}" => "\u{732A}", "\u{FA17}" => "\u{76CA}", "\u{FA18}" => "\u{793C}", "\u{FA19}" => "\u{795E}", - "\u{FA1A}" => "\u{7965}", "\u{FA1B}" => "\u{798F}", "\u{FA1C}" => "\u{9756}", "\u{FA1D}" => "\u{7CBE}", - "\u{FA1E}" => "\u{7FBD}", "\u{FA20}" => "\u{8612}", "\u{FA22}" => "\u{8AF8}", "\u{FA25}" => "\u{9038}", - "\u{FA26}" => "\u{90FD}", "\u{FA2A}" => "\u{98EF}", "\u{FA2B}" => "\u{98FC}", "\u{FA2C}" => "\u{9928}", - "\u{FA2D}" => "\u{9DB4}", "\u{FA2E}" => "\u{90DE}", "\u{FA2F}" => "\u{96B7}", "\u{FA30}" => "\u{4FAE}", - "\u{FA31}" => "\u{50E7}", "\u{FA32}" => "\u{514D}", "\u{FA33}" => "\u{52C9}", "\u{FA34}" => "\u{52E4}", - "\u{FA35}" => "\u{5351}", "\u{FA36}" => "\u{559D}", "\u{FA37}" => "\u{5606}", "\u{FA38}" => "\u{5668}", - "\u{FA39}" => "\u{5840}", "\u{FA3A}" => "\u{58A8}", "\u{FA3B}" => "\u{5C64}", "\u{FA3C}" => "\u{5C6E}", - "\u{FA3D}" => "\u{6094}", "\u{FA3E}" => "\u{6168}", "\u{FA3F}" => "\u{618E}", "\u{FA40}" => "\u{61F2}", - "\u{FA41}" => "\u{654F}", "\u{FA42}" => "\u{65E2}", "\u{FA43}" => "\u{6691}", "\u{FA44}" => "\u{6885}", - "\u{FA45}" => "\u{6D77}", "\u{FA46}" => "\u{6E1A}", "\u{FA47}" => "\u{6F22}", "\u{FA48}" => "\u{716E}", - "\u{FA49}" => "\u{722B}", "\u{FA4A}" => "\u{7422}", "\u{FA4B}" => "\u{7891}", "\u{FA4C}" => "\u{793E}", - "\u{FA4D}" => "\u{7949}", "\u{FA4E}" => "\u{7948}", "\u{FA4F}" => "\u{7950}", "\u{FA50}" => "\u{7956}", - "\u{FA51}" => "\u{795D}", "\u{FA52}" => "\u{798D}", "\u{FA53}" => "\u{798E}", "\u{FA54}" => "\u{7A40}", - "\u{FA55}" => "\u{7A81}", "\u{FA56}" => "\u{7BC0}", "\u{FA57}" => "\u{7DF4}", "\u{FA58}" => "\u{7E09}", - "\u{FA59}" => "\u{7E41}", "\u{FA5A}" => "\u{7F72}", "\u{FA5B}" => "\u{8005}", "\u{FA5C}" => "\u{81ED}", - "\u{FA5D}" => "\u{8279}", "\u{FA5E}" => "\u{8279}", "\u{FA5F}" => "\u{8457}", "\u{FA60}" => "\u{8910}", - "\u{FA61}" => "\u{8996}", "\u{FA62}" => "\u{8B01}", "\u{FA63}" => "\u{8B39}", "\u{FA64}" => "\u{8CD3}", - "\u{FA65}" => "\u{8D08}", "\u{FA66}" => "\u{8FB6}", "\u{FA67}" => "\u{9038}", "\u{FA68}" => "\u{96E3}", - "\u{FA69}" => "\u{97FF}", "\u{FA6A}" => "\u{983B}", "\u{FA6B}" => "\u{6075}", "\u{FA6C}" => "\u{242EE}", - "\u{FA6D}" => "\u{8218}", "\u{FA70}" => "\u{4E26}", "\u{FA71}" => "\u{51B5}", "\u{FA72}" => "\u{5168}", - "\u{FA73}" => "\u{4F80}", "\u{FA74}" => "\u{5145}", "\u{FA75}" => "\u{5180}", "\u{FA76}" => "\u{52C7}", - "\u{FA77}" => "\u{52FA}", "\u{FA78}" => "\u{559D}", "\u{FA79}" => "\u{5555}", "\u{FA7A}" => "\u{5599}", - "\u{FA7B}" => "\u{55E2}", "\u{FA7C}" => "\u{585A}", "\u{FA7D}" => "\u{58B3}", "\u{FA7E}" => "\u{5944}", - "\u{FA7F}" => "\u{5954}", "\u{FA80}" => "\u{5A62}", "\u{FA81}" => "\u{5B28}", "\u{FA82}" => "\u{5ED2}", - "\u{FA83}" => "\u{5ED9}", "\u{FA84}" => "\u{5F69}", "\u{FA85}" => "\u{5FAD}", "\u{FA86}" => "\u{60D8}", - "\u{FA87}" => "\u{614E}", "\u{FA88}" => "\u{6108}", "\u{FA89}" => "\u{618E}", "\u{FA8A}" => "\u{6160}", - "\u{FA8B}" => "\u{61F2}", "\u{FA8C}" => "\u{6234}", "\u{FA8D}" => "\u{63C4}", "\u{FA8E}" => "\u{641C}", - "\u{FA8F}" => "\u{6452}", "\u{FA90}" => "\u{6556}", "\u{FA91}" => "\u{6674}", "\u{FA92}" => "\u{6717}", - "\u{FA93}" => "\u{671B}", "\u{FA94}" => "\u{6756}", "\u{FA95}" => "\u{6B79}", "\u{FA96}" => "\u{6BBA}", - "\u{FA97}" => "\u{6D41}", "\u{FA98}" => "\u{6EDB}", "\u{FA99}" => "\u{6ECB}", "\u{FA9A}" => "\u{6F22}", - "\u{FA9B}" => "\u{701E}", "\u{FA9C}" => "\u{716E}", "\u{FA9D}" => "\u{77A7}", "\u{FA9E}" => "\u{7235}", - "\u{FA9F}" => "\u{72AF}", "\u{FAA0}" => "\u{732A}", "\u{FAA1}" => "\u{7471}", "\u{FAA2}" => "\u{7506}", - "\u{FAA3}" => "\u{753B}", "\u{FAA4}" => "\u{761D}", "\u{FAA5}" => "\u{761F}", "\u{FAA6}" => "\u{76CA}", - "\u{FAA7}" => "\u{76DB}", "\u{FAA8}" => "\u{76F4}", "\u{FAA9}" => "\u{774A}", "\u{FAAA}" => "\u{7740}", - "\u{FAAB}" => "\u{78CC}", "\u{FAAC}" => "\u{7AB1}", "\u{FAAD}" => "\u{7BC0}", "\u{FAAE}" => "\u{7C7B}", - "\u{FAAF}" => "\u{7D5B}", "\u{FAB0}" => "\u{7DF4}", "\u{FAB1}" => "\u{7F3E}", "\u{FAB2}" => "\u{8005}", - "\u{FAB3}" => "\u{8352}", "\u{FAB4}" => "\u{83EF}", "\u{FAB5}" => "\u{8779}", "\u{FAB6}" => "\u{8941}", - "\u{FAB7}" => "\u{8986}", "\u{FAB8}" => "\u{8996}", "\u{FAB9}" => "\u{8ABF}", "\u{FABA}" => "\u{8AF8}", - "\u{FABB}" => "\u{8ACB}", "\u{FABC}" => "\u{8B01}", "\u{FABD}" => "\u{8AFE}", "\u{FABE}" => "\u{8AED}", - "\u{FABF}" => "\u{8B39}", "\u{FAC0}" => "\u{8B8A}", "\u{FAC1}" => "\u{8D08}", "\u{FAC2}" => "\u{8F38}", - "\u{FAC3}" => "\u{9072}", "\u{FAC4}" => "\u{9199}", "\u{FAC5}" => "\u{9276}", "\u{FAC6}" => "\u{967C}", - "\u{FAC7}" => "\u{96E3}", "\u{FAC8}" => "\u{9756}", "\u{FAC9}" => "\u{97DB}", "\u{FACA}" => "\u{97FF}", - "\u{FACB}" => "\u{980B}", "\u{FACC}" => "\u{983B}", "\u{FACD}" => "\u{9B12}", "\u{FACE}" => "\u{9F9C}", - "\u{FACF}" => "\u{2284A}", "\u{FAD0}" => "\u{22844}", "\u{FAD1}" => "\u{233D5}", "\u{FAD2}" => "\u{3B9D}", - "\u{FAD3}" => "\u{4018}", "\u{FAD4}" => "\u{4039}", "\u{FAD5}" => "\u{25249}", "\u{FAD6}" => "\u{25CD0}", - "\u{FAD7}" => "\u{27ED3}", "\u{FAD8}" => "\u{9F43}", "\u{FAD9}" => "\u{9F8E}", "\u{FB1D}" => "\u{5D9}\u{5B4}", - "\u{FB1F}" => "\u{5F2}\u{5B7}", "\u{FB2A}" => "\u{5E9}\u{5C1}", "\u{FB2B}" => "\u{5E9}\u{5C2}", "\u{FB2C}" => "\u{FB49}\u{5C1}", - "\u{FB2D}" => "\u{FB49}\u{5C2}", "\u{FB2E}" => "\u{5D0}\u{5B7}", "\u{FB2F}" => "\u{5D0}\u{5B8}", "\u{FB30}" => "\u{5D0}\u{5BC}", - "\u{FB31}" => "\u{5D1}\u{5BC}", "\u{FB32}" => "\u{5D2}\u{5BC}", "\u{FB33}" => "\u{5D3}\u{5BC}", "\u{FB34}" => "\u{5D4}\u{5BC}", - "\u{FB35}" => "\u{5D5}\u{5BC}", "\u{FB36}" => "\u{5D6}\u{5BC}", "\u{FB38}" => "\u{5D8}\u{5BC}", "\u{FB39}" => "\u{5D9}\u{5BC}", - "\u{FB3A}" => "\u{5DA}\u{5BC}", "\u{FB3B}" => "\u{5DB}\u{5BC}", "\u{FB3C}" => "\u{5DC}\u{5BC}", "\u{FB3E}" => "\u{5DE}\u{5BC}", - "\u{FB40}" => "\u{5E0}\u{5BC}", "\u{FB41}" => "\u{5E1}\u{5BC}", "\u{FB43}" => "\u{5E3}\u{5BC}", "\u{FB44}" => "\u{5E4}\u{5BC}", - "\u{FB46}" => "\u{5E6}\u{5BC}", "\u{FB47}" => "\u{5E7}\u{5BC}", "\u{FB48}" => "\u{5E8}\u{5BC}", "\u{FB49}" => "\u{5E9}\u{5BC}", - "\u{FB4A}" => "\u{5EA}\u{5BC}", "\u{FB4B}" => "\u{5D5}\u{5B9}", "\u{FB4C}" => "\u{5D1}\u{5BF}", "\u{FB4D}" => "\u{5DB}\u{5BF}", - "\u{FB4E}" => "\u{5E4}\u{5BF}", "\u{105C9}" => "\u{105D2}\u{307}", "\u{105E4}" => "\u{105DA}\u{307}", "\u{1109A}" => "\u{11099}\u{110BA}", - "\u{1109C}" => "\u{1109B}\u{110BA}", "\u{110AB}" => "\u{110A5}\u{110BA}", "\u{1112E}" => "\u{11131}\u{11127}", "\u{1112F}" => "\u{11132}\u{11127}", - "\u{1134B}" => "\u{11347}\u{1133E}", "\u{1134C}" => "\u{11347}\u{11357}", "\u{11383}" => "\u{11382}\u{113C9}", "\u{11385}" => "\u{11384}\u{113BB}", - "\u{1138E}" => "\u{1138B}\u{113C2}", "\u{11391}" => "\u{11390}\u{113C9}", "\u{113C5}" => "\u{113C2}\u{113C2}", "\u{113C7}" => "\u{113C2}\u{113B8}", - "\u{113C8}" => "\u{113C2}\u{113C9}", "\u{114BB}" => "\u{114B9}\u{114BA}", "\u{114BC}" => "\u{114B9}\u{114B0}", "\u{114BE}" => "\u{114B9}\u{114BD}", - "\u{115BA}" => "\u{115B8}\u{115AF}", "\u{115BB}" => "\u{115B9}\u{115AF}", "\u{11938}" => "\u{11935}\u{11930}", "\u{16121}" => "\u{1611E}\u{1611E}", - "\u{16122}" => "\u{1611E}\u{16129}", "\u{16123}" => "\u{1611E}\u{1611F}", "\u{16124}" => "\u{16129}\u{1611F}", "\u{16125}" => "\u{1611E}\u{16120}", - "\u{16126}" => "\u{16121}\u{1611F}", "\u{16127}" => "\u{16122}\u{1611F}", "\u{16128}" => "\u{16121}\u{16120}", "\u{16D68}" => "\u{16D67}\u{16D67}", - "\u{16D69}" => "\u{16D63}\u{16D67}", "\u{16D6A}" => "\u{16D69}\u{16D67}", "\u{1D15E}" => "\u{1D157}\u{1D165}", "\u{1D15F}" => "\u{1D158}\u{1D165}", - "\u{1D160}" => "\u{1D15F}\u{1D16E}", "\u{1D161}" => "\u{1D15F}\u{1D16F}", "\u{1D162}" => "\u{1D15F}\u{1D170}", "\u{1D163}" => "\u{1D15F}\u{1D171}", - "\u{1D164}" => "\u{1D15F}\u{1D172}", "\u{1D1BB}" => "\u{1D1B9}\u{1D165}", "\u{1D1BC}" => "\u{1D1BA}\u{1D165}", "\u{1D1BD}" => "\u{1D1BB}\u{1D16E}", - "\u{1D1BE}" => "\u{1D1BC}\u{1D16E}", "\u{1D1BF}" => "\u{1D1BB}\u{1D16F}", "\u{1D1C0}" => "\u{1D1BC}\u{1D16F}", "\u{2F800}" => "\u{4E3D}", - "\u{2F801}" => "\u{4E38}", "\u{2F802}" => "\u{4E41}", "\u{2F803}" => "\u{20122}", "\u{2F804}" => "\u{4F60}", - "\u{2F805}" => "\u{4FAE}", "\u{2F806}" => "\u{4FBB}", "\u{2F807}" => "\u{5002}", "\u{2F808}" => "\u{507A}", - "\u{2F809}" => "\u{5099}", "\u{2F80A}" => "\u{50E7}", "\u{2F80B}" => "\u{50CF}", "\u{2F80C}" => "\u{349E}", - "\u{2F80D}" => "\u{2063A}", "\u{2F80E}" => "\u{514D}", "\u{2F80F}" => "\u{5154}", "\u{2F810}" => "\u{5164}", - "\u{2F811}" => "\u{5177}", "\u{2F812}" => "\u{2051C}", "\u{2F813}" => "\u{34B9}", "\u{2F814}" => "\u{5167}", - "\u{2F815}" => "\u{518D}", "\u{2F816}" => "\u{2054B}", "\u{2F817}" => "\u{5197}", "\u{2F818}" => "\u{51A4}", - "\u{2F819}" => "\u{4ECC}", "\u{2F81A}" => "\u{51AC}", "\u{2F81B}" => "\u{51B5}", "\u{2F81C}" => "\u{291DF}", - "\u{2F81D}" => "\u{51F5}", "\u{2F81E}" => "\u{5203}", "\u{2F81F}" => "\u{34DF}", "\u{2F820}" => "\u{523B}", - "\u{2F821}" => "\u{5246}", "\u{2F822}" => "\u{5272}", "\u{2F823}" => "\u{5277}", "\u{2F824}" => "\u{3515}", - "\u{2F825}" => "\u{52C7}", "\u{2F826}" => "\u{52C9}", "\u{2F827}" => "\u{52E4}", "\u{2F828}" => "\u{52FA}", - "\u{2F829}" => "\u{5305}", "\u{2F82A}" => "\u{5306}", "\u{2F82B}" => "\u{5317}", "\u{2F82C}" => "\u{5349}", - "\u{2F82D}" => "\u{5351}", "\u{2F82E}" => "\u{535A}", "\u{2F82F}" => "\u{5373}", "\u{2F830}" => "\u{537D}", - "\u{2F831}" => "\u{537F}", "\u{2F832}" => "\u{537F}", "\u{2F833}" => "\u{537F}", "\u{2F834}" => "\u{20A2C}", - "\u{2F835}" => "\u{7070}", "\u{2F836}" => "\u{53CA}", "\u{2F837}" => "\u{53DF}", "\u{2F838}" => "\u{20B63}", - "\u{2F839}" => "\u{53EB}", "\u{2F83A}" => "\u{53F1}", "\u{2F83B}" => "\u{5406}", "\u{2F83C}" => "\u{549E}", - "\u{2F83D}" => "\u{5438}", "\u{2F83E}" => "\u{5448}", "\u{2F83F}" => "\u{5468}", "\u{2F840}" => "\u{54A2}", - "\u{2F841}" => "\u{54F6}", "\u{2F842}" => "\u{5510}", "\u{2F843}" => "\u{5553}", "\u{2F844}" => "\u{5563}", - "\u{2F845}" => "\u{5584}", "\u{2F846}" => "\u{5584}", "\u{2F847}" => "\u{5599}", "\u{2F848}" => "\u{55AB}", - "\u{2F849}" => "\u{55B3}", "\u{2F84A}" => "\u{55C2}", "\u{2F84B}" => "\u{5716}", "\u{2F84C}" => "\u{5606}", - "\u{2F84D}" => "\u{5717}", "\u{2F84E}" => "\u{5651}", "\u{2F84F}" => "\u{5674}", "\u{2F850}" => "\u{5207}", - "\u{2F851}" => "\u{58EE}", "\u{2F852}" => "\u{57CE}", "\u{2F853}" => "\u{57F4}", "\u{2F854}" => "\u{580D}", - "\u{2F855}" => "\u{578B}", "\u{2F856}" => "\u{5832}", "\u{2F857}" => "\u{5831}", "\u{2F858}" => "\u{58AC}", - "\u{2F859}" => "\u{214E4}", "\u{2F85A}" => "\u{58F2}", "\u{2F85B}" => "\u{58F7}", "\u{2F85C}" => "\u{5906}", - "\u{2F85D}" => "\u{591A}", "\u{2F85E}" => "\u{5922}", "\u{2F85F}" => "\u{5962}", "\u{2F860}" => "\u{216A8}", - "\u{2F861}" => "\u{216EA}", "\u{2F862}" => "\u{59EC}", "\u{2F863}" => "\u{5A1B}", "\u{2F864}" => "\u{5A27}", - "\u{2F865}" => "\u{59D8}", "\u{2F866}" => "\u{5A66}", "\u{2F867}" => "\u{36EE}", "\u{2F868}" => "\u{36FC}", - "\u{2F869}" => "\u{5B08}", "\u{2F86A}" => "\u{5B3E}", "\u{2F86B}" => "\u{5B3E}", "\u{2F86C}" => "\u{219C8}", - "\u{2F86D}" => "\u{5BC3}", "\u{2F86E}" => "\u{5BD8}", "\u{2F86F}" => "\u{5BE7}", "\u{2F870}" => "\u{5BF3}", - "\u{2F871}" => "\u{21B18}", "\u{2F872}" => "\u{5BFF}", "\u{2F873}" => "\u{5C06}", "\u{2F874}" => "\u{5F53}", - "\u{2F875}" => "\u{5C22}", "\u{2F876}" => "\u{3781}", "\u{2F877}" => "\u{5C60}", "\u{2F878}" => "\u{5C6E}", - "\u{2F879}" => "\u{5CC0}", "\u{2F87A}" => "\u{5C8D}", "\u{2F87B}" => "\u{21DE4}", "\u{2F87C}" => "\u{5D43}", - "\u{2F87D}" => "\u{21DE6}", "\u{2F87E}" => "\u{5D6E}", "\u{2F87F}" => "\u{5D6B}", "\u{2F880}" => "\u{5D7C}", - "\u{2F881}" => "\u{5DE1}", "\u{2F882}" => "\u{5DE2}", "\u{2F883}" => "\u{382F}", "\u{2F884}" => "\u{5DFD}", - "\u{2F885}" => "\u{5E28}", "\u{2F886}" => "\u{5E3D}", "\u{2F887}" => "\u{5E69}", "\u{2F888}" => "\u{3862}", - "\u{2F889}" => "\u{22183}", "\u{2F88A}" => "\u{387C}", "\u{2F88B}" => "\u{5EB0}", "\u{2F88C}" => "\u{5EB3}", - "\u{2F88D}" => "\u{5EB6}", "\u{2F88E}" => "\u{5ECA}", "\u{2F88F}" => "\u{2A392}", "\u{2F890}" => "\u{5EFE}", - "\u{2F891}" => "\u{22331}", "\u{2F892}" => "\u{22331}", "\u{2F893}" => "\u{8201}", "\u{2F894}" => "\u{5F22}", - "\u{2F895}" => "\u{5F22}", "\u{2F896}" => "\u{38C7}", "\u{2F897}" => "\u{232B8}", "\u{2F898}" => "\u{261DA}", - "\u{2F899}" => "\u{5F62}", "\u{2F89A}" => "\u{5F6B}", "\u{2F89B}" => "\u{38E3}", "\u{2F89C}" => "\u{5F9A}", - "\u{2F89D}" => "\u{5FCD}", "\u{2F89E}" => "\u{5FD7}", "\u{2F89F}" => "\u{5FF9}", "\u{2F8A0}" => "\u{6081}", - "\u{2F8A1}" => "\u{393A}", "\u{2F8A2}" => "\u{391C}", "\u{2F8A3}" => "\u{6094}", "\u{2F8A4}" => "\u{226D4}", - "\u{2F8A5}" => "\u{60C7}", "\u{2F8A6}" => "\u{6148}", "\u{2F8A7}" => "\u{614C}", "\u{2F8A8}" => "\u{614E}", - "\u{2F8A9}" => "\u{614C}", "\u{2F8AA}" => "\u{617A}", "\u{2F8AB}" => "\u{618E}", "\u{2F8AC}" => "\u{61B2}", - "\u{2F8AD}" => "\u{61A4}", "\u{2F8AE}" => "\u{61AF}", "\u{2F8AF}" => "\u{61DE}", "\u{2F8B0}" => "\u{61F2}", - "\u{2F8B1}" => "\u{61F6}", "\u{2F8B2}" => "\u{6210}", "\u{2F8B3}" => "\u{621B}", "\u{2F8B4}" => "\u{625D}", - "\u{2F8B5}" => "\u{62B1}", "\u{2F8B6}" => "\u{62D4}", "\u{2F8B7}" => "\u{6350}", "\u{2F8B8}" => "\u{22B0C}", - "\u{2F8B9}" => "\u{633D}", "\u{2F8BA}" => "\u{62FC}", "\u{2F8BB}" => "\u{6368}", "\u{2F8BC}" => "\u{6383}", - "\u{2F8BD}" => "\u{63E4}", "\u{2F8BE}" => "\u{22BF1}", "\u{2F8BF}" => "\u{6422}", "\u{2F8C0}" => "\u{63C5}", - "\u{2F8C1}" => "\u{63A9}", "\u{2F8C2}" => "\u{3A2E}", "\u{2F8C3}" => "\u{6469}", "\u{2F8C4}" => "\u{647E}", - "\u{2F8C5}" => "\u{649D}", "\u{2F8C6}" => "\u{6477}", "\u{2F8C7}" => "\u{3A6C}", "\u{2F8C8}" => "\u{654F}", - "\u{2F8C9}" => "\u{656C}", "\u{2F8CA}" => "\u{2300A}", "\u{2F8CB}" => "\u{65E3}", "\u{2F8CC}" => "\u{66F8}", - "\u{2F8CD}" => "\u{6649}", "\u{2F8CE}" => "\u{3B19}", "\u{2F8CF}" => "\u{6691}", "\u{2F8D0}" => "\u{3B08}", - "\u{2F8D1}" => "\u{3AE4}", "\u{2F8D2}" => "\u{5192}", "\u{2F8D3}" => "\u{5195}", "\u{2F8D4}" => "\u{6700}", - "\u{2F8D5}" => "\u{669C}", "\u{2F8D6}" => "\u{80AD}", "\u{2F8D7}" => "\u{43D9}", "\u{2F8D8}" => "\u{6717}", - "\u{2F8D9}" => "\u{671B}", "\u{2F8DA}" => "\u{6721}", "\u{2F8DB}" => "\u{675E}", "\u{2F8DC}" => "\u{6753}", - "\u{2F8DD}" => "\u{233C3}", "\u{2F8DE}" => "\u{3B49}", "\u{2F8DF}" => "\u{67FA}", "\u{2F8E0}" => "\u{6785}", - "\u{2F8E1}" => "\u{6852}", "\u{2F8E2}" => "\u{6885}", "\u{2F8E3}" => "\u{2346D}", "\u{2F8E4}" => "\u{688E}", - "\u{2F8E5}" => "\u{681F}", "\u{2F8E6}" => "\u{6914}", "\u{2F8E7}" => "\u{3B9D}", "\u{2F8E8}" => "\u{6942}", - "\u{2F8E9}" => "\u{69A3}", "\u{2F8EA}" => "\u{69EA}", "\u{2F8EB}" => "\u{6AA8}", "\u{2F8EC}" => "\u{236A3}", - "\u{2F8ED}" => "\u{6ADB}", "\u{2F8EE}" => "\u{3C18}", "\u{2F8EF}" => "\u{6B21}", "\u{2F8F0}" => "\u{238A7}", - "\u{2F8F1}" => "\u{6B54}", "\u{2F8F2}" => "\u{3C4E}", "\u{2F8F3}" => "\u{6B72}", "\u{2F8F4}" => "\u{6B9F}", - "\u{2F8F5}" => "\u{6BBA}", "\u{2F8F6}" => "\u{6BBB}", "\u{2F8F7}" => "\u{23A8D}", "\u{2F8F8}" => "\u{21D0B}", - "\u{2F8F9}" => "\u{23AFA}", "\u{2F8FA}" => "\u{6C4E}", "\u{2F8FB}" => "\u{23CBC}", "\u{2F8FC}" => "\u{6CBF}", - "\u{2F8FD}" => "\u{6CCD}", "\u{2F8FE}" => "\u{6C67}", "\u{2F8FF}" => "\u{6D16}", "\u{2F900}" => "\u{6D3E}", - "\u{2F901}" => "\u{6D77}", "\u{2F902}" => "\u{6D41}", "\u{2F903}" => "\u{6D69}", "\u{2F904}" => "\u{6D78}", - "\u{2F905}" => "\u{6D85}", "\u{2F906}" => "\u{23D1E}", "\u{2F907}" => "\u{6D34}", "\u{2F908}" => "\u{6E2F}", - "\u{2F909}" => "\u{6E6E}", "\u{2F90A}" => "\u{3D33}", "\u{2F90B}" => "\u{6ECB}", "\u{2F90C}" => "\u{6EC7}", - "\u{2F90D}" => "\u{23ED1}", "\u{2F90E}" => "\u{6DF9}", "\u{2F90F}" => "\u{6F6E}", "\u{2F910}" => "\u{23F5E}", - "\u{2F911}" => "\u{23F8E}", "\u{2F912}" => "\u{6FC6}", "\u{2F913}" => "\u{7039}", "\u{2F914}" => "\u{701E}", - "\u{2F915}" => "\u{701B}", "\u{2F916}" => "\u{3D96}", "\u{2F917}" => "\u{704A}", "\u{2F918}" => "\u{707D}", - "\u{2F919}" => "\u{7077}", "\u{2F91A}" => "\u{70AD}", "\u{2F91B}" => "\u{20525}", "\u{2F91C}" => "\u{7145}", - "\u{2F91D}" => "\u{24263}", "\u{2F91E}" => "\u{719C}", "\u{2F91F}" => "\u{243AB}", "\u{2F920}" => "\u{7228}", - "\u{2F921}" => "\u{7235}", "\u{2F922}" => "\u{7250}", "\u{2F923}" => "\u{24608}", "\u{2F924}" => "\u{7280}", - "\u{2F925}" => "\u{7295}", "\u{2F926}" => "\u{24735}", "\u{2F927}" => "\u{24814}", "\u{2F928}" => "\u{737A}", - "\u{2F929}" => "\u{738B}", "\u{2F92A}" => "\u{3EAC}", "\u{2F92B}" => "\u{73A5}", "\u{2F92C}" => "\u{3EB8}", - "\u{2F92D}" => "\u{3EB8}", "\u{2F92E}" => "\u{7447}", "\u{2F92F}" => "\u{745C}", "\u{2F930}" => "\u{7471}", - "\u{2F931}" => "\u{7485}", "\u{2F932}" => "\u{74CA}", "\u{2F933}" => "\u{3F1B}", "\u{2F934}" => "\u{7524}", - "\u{2F935}" => "\u{24C36}", "\u{2F936}" => "\u{753E}", "\u{2F937}" => "\u{24C92}", "\u{2F938}" => "\u{7570}", - "\u{2F939}" => "\u{2219F}", "\u{2F93A}" => "\u{7610}", "\u{2F93B}" => "\u{24FA1}", "\u{2F93C}" => "\u{24FB8}", - "\u{2F93D}" => "\u{25044}", "\u{2F93E}" => "\u{3FFC}", "\u{2F93F}" => "\u{4008}", "\u{2F940}" => "\u{76F4}", - "\u{2F941}" => "\u{250F3}", "\u{2F942}" => "\u{250F2}", "\u{2F943}" => "\u{25119}", "\u{2F944}" => "\u{25133}", - "\u{2F945}" => "\u{771E}", "\u{2F946}" => "\u{771F}", "\u{2F947}" => "\u{771F}", "\u{2F948}" => "\u{774A}", - "\u{2F949}" => "\u{4039}", "\u{2F94A}" => "\u{778B}", "\u{2F94B}" => "\u{4046}", "\u{2F94C}" => "\u{4096}", - "\u{2F94D}" => "\u{2541D}", "\u{2F94E}" => "\u{784E}", "\u{2F94F}" => "\u{788C}", "\u{2F950}" => "\u{78CC}", - "\u{2F951}" => "\u{40E3}", "\u{2F952}" => "\u{25626}", "\u{2F953}" => "\u{7956}", "\u{2F954}" => "\u{2569A}", - "\u{2F955}" => "\u{256C5}", "\u{2F956}" => "\u{798F}", "\u{2F957}" => "\u{79EB}", "\u{2F958}" => "\u{412F}", - "\u{2F959}" => "\u{7A40}", "\u{2F95A}" => "\u{7A4A}", "\u{2F95B}" => "\u{7A4F}", "\u{2F95C}" => "\u{2597C}", - "\u{2F95D}" => "\u{25AA7}", "\u{2F95E}" => "\u{25AA7}", "\u{2F95F}" => "\u{7AEE}", "\u{2F960}" => "\u{4202}", - "\u{2F961}" => "\u{25BAB}", "\u{2F962}" => "\u{7BC6}", "\u{2F963}" => "\u{7BC9}", "\u{2F964}" => "\u{4227}", - "\u{2F965}" => "\u{25C80}", "\u{2F966}" => "\u{7CD2}", "\u{2F967}" => "\u{42A0}", "\u{2F968}" => "\u{7CE8}", - "\u{2F969}" => "\u{7CE3}", "\u{2F96A}" => "\u{7D00}", "\u{2F96B}" => "\u{25F86}", "\u{2F96C}" => "\u{7D63}", - "\u{2F96D}" => "\u{4301}", "\u{2F96E}" => "\u{7DC7}", "\u{2F96F}" => "\u{7E02}", "\u{2F970}" => "\u{7E45}", - "\u{2F971}" => "\u{4334}", "\u{2F972}" => "\u{26228}", "\u{2F973}" => "\u{26247}", "\u{2F974}" => "\u{4359}", - "\u{2F975}" => "\u{262D9}", "\u{2F976}" => "\u{7F7A}", "\u{2F977}" => "\u{2633E}", "\u{2F978}" => "\u{7F95}", - "\u{2F979}" => "\u{7FFA}", "\u{2F97A}" => "\u{8005}", "\u{2F97B}" => "\u{264DA}", "\u{2F97C}" => "\u{26523}", - "\u{2F97D}" => "\u{8060}", "\u{2F97E}" => "\u{265A8}", "\u{2F97F}" => "\u{8070}", "\u{2F980}" => "\u{2335F}", - "\u{2F981}" => "\u{43D5}", "\u{2F982}" => "\u{80B2}", "\u{2F983}" => "\u{8103}", "\u{2F984}" => "\u{440B}", - "\u{2F985}" => "\u{813E}", "\u{2F986}" => "\u{5AB5}", "\u{2F987}" => "\u{267A7}", "\u{2F988}" => "\u{267B5}", - "\u{2F989}" => "\u{23393}", "\u{2F98A}" => "\u{2339C}", "\u{2F98B}" => "\u{8201}", "\u{2F98C}" => "\u{8204}", - "\u{2F98D}" => "\u{8F9E}", "\u{2F98E}" => "\u{446B}", "\u{2F98F}" => "\u{8291}", "\u{2F990}" => "\u{828B}", - "\u{2F991}" => "\u{829D}", "\u{2F992}" => "\u{52B3}", "\u{2F993}" => "\u{82B1}", "\u{2F994}" => "\u{82B3}", - "\u{2F995}" => "\u{82BD}", "\u{2F996}" => "\u{82E6}", "\u{2F997}" => "\u{26B3C}", "\u{2F998}" => "\u{82E5}", - "\u{2F999}" => "\u{831D}", "\u{2F99A}" => "\u{8363}", "\u{2F99B}" => "\u{83AD}", "\u{2F99C}" => "\u{8323}", - "\u{2F99D}" => "\u{83BD}", "\u{2F99E}" => "\u{83E7}", "\u{2F99F}" => "\u{8457}", "\u{2F9A0}" => "\u{8353}", - "\u{2F9A1}" => "\u{83CA}", "\u{2F9A2}" => "\u{83CC}", "\u{2F9A3}" => "\u{83DC}", "\u{2F9A4}" => "\u{26C36}", - "\u{2F9A5}" => "\u{26D6B}", "\u{2F9A6}" => "\u{26CD5}", "\u{2F9A7}" => "\u{452B}", "\u{2F9A8}" => "\u{84F1}", - "\u{2F9A9}" => "\u{84F3}", "\u{2F9AA}" => "\u{8516}", "\u{2F9AB}" => "\u{273CA}", "\u{2F9AC}" => "\u{8564}", - "\u{2F9AD}" => "\u{26F2C}", "\u{2F9AE}" => "\u{455D}", "\u{2F9AF}" => "\u{4561}", "\u{2F9B0}" => "\u{26FB1}", - "\u{2F9B1}" => "\u{270D2}", "\u{2F9B2}" => "\u{456B}", "\u{2F9B3}" => "\u{8650}", "\u{2F9B4}" => "\u{865C}", - "\u{2F9B5}" => "\u{8667}", "\u{2F9B6}" => "\u{8669}", "\u{2F9B7}" => "\u{86A9}", "\u{2F9B8}" => "\u{8688}", - "\u{2F9B9}" => "\u{870E}", "\u{2F9BA}" => "\u{86E2}", "\u{2F9BB}" => "\u{8779}", "\u{2F9BC}" => "\u{8728}", - "\u{2F9BD}" => "\u{876B}", "\u{2F9BE}" => "\u{8786}", "\u{2F9BF}" => "\u{45D7}", "\u{2F9C0}" => "\u{87E1}", - "\u{2F9C1}" => "\u{8801}", "\u{2F9C2}" => "\u{45F9}", "\u{2F9C3}" => "\u{8860}", "\u{2F9C4}" => "\u{8863}", - "\u{2F9C5}" => "\u{27667}", "\u{2F9C6}" => "\u{88D7}", "\u{2F9C7}" => "\u{88DE}", "\u{2F9C8}" => "\u{4635}", - "\u{2F9C9}" => "\u{88FA}", "\u{2F9CA}" => "\u{34BB}", "\u{2F9CB}" => "\u{278AE}", "\u{2F9CC}" => "\u{27966}", - "\u{2F9CD}" => "\u{46BE}", "\u{2F9CE}" => "\u{46C7}", "\u{2F9CF}" => "\u{8AA0}", "\u{2F9D0}" => "\u{8AED}", - "\u{2F9D1}" => "\u{8B8A}", "\u{2F9D2}" => "\u{8C55}", "\u{2F9D3}" => "\u{27CA8}", "\u{2F9D4}" => "\u{8CAB}", - "\u{2F9D5}" => "\u{8CC1}", "\u{2F9D6}" => "\u{8D1B}", "\u{2F9D7}" => "\u{8D77}", "\u{2F9D8}" => "\u{27F2F}", - "\u{2F9D9}" => "\u{20804}", "\u{2F9DA}" => "\u{8DCB}", "\u{2F9DB}" => "\u{8DBC}", "\u{2F9DC}" => "\u{8DF0}", - "\u{2F9DD}" => "\u{208DE}", "\u{2F9DE}" => "\u{8ED4}", "\u{2F9DF}" => "\u{8F38}", "\u{2F9E0}" => "\u{285D2}", - "\u{2F9E1}" => "\u{285ED}", "\u{2F9E2}" => "\u{9094}", "\u{2F9E3}" => "\u{90F1}", "\u{2F9E4}" => "\u{9111}", - "\u{2F9E5}" => "\u{2872E}", "\u{2F9E6}" => "\u{911B}", "\u{2F9E7}" => "\u{9238}", "\u{2F9E8}" => "\u{92D7}", - "\u{2F9E9}" => "\u{92D8}", "\u{2F9EA}" => "\u{927C}", "\u{2F9EB}" => "\u{93F9}", "\u{2F9EC}" => "\u{9415}", - "\u{2F9ED}" => "\u{28BFA}", "\u{2F9EE}" => "\u{958B}", "\u{2F9EF}" => "\u{4995}", "\u{2F9F0}" => "\u{95B7}", - "\u{2F9F1}" => "\u{28D77}", "\u{2F9F2}" => "\u{49E6}", "\u{2F9F3}" => "\u{96C3}", "\u{2F9F4}" => "\u{5DB2}", - "\u{2F9F5}" => "\u{9723}", "\u{2F9F6}" => "\u{29145}", "\u{2F9F7}" => "\u{2921A}", "\u{2F9F8}" => "\u{4A6E}", - "\u{2F9F9}" => "\u{4A76}", "\u{2F9FA}" => "\u{97E0}", "\u{2F9FB}" => "\u{2940A}", "\u{2F9FC}" => "\u{4AB2}", - "\u{2F9FD}" => "\u{29496}", "\u{2F9FE}" => "\u{980B}", "\u{2F9FF}" => "\u{980B}", "\u{2FA00}" => "\u{9829}", - "\u{2FA01}" => "\u{295B6}", "\u{2FA02}" => "\u{98E2}", "\u{2FA03}" => "\u{4B33}", "\u{2FA04}" => "\u{9929}", - "\u{2FA05}" => "\u{99A7}", "\u{2FA06}" => "\u{99C2}", "\u{2FA07}" => "\u{99FE}", "\u{2FA08}" => "\u{4BCE}", - "\u{2FA09}" => "\u{29B30}", "\u{2FA0A}" => "\u{9B12}", "\u{2FA0B}" => "\u{9C40}", "\u{2FA0C}" => "\u{9CFD}", - "\u{2FA0D}" => "\u{4CCE}", "\u{2FA0E}" => "\u{4CED}", "\u{2FA0F}" => "\u{9D67}", "\u{2FA10}" => "\u{2A0CE}", - "\u{2FA11}" => "\u{4CF8}", "\u{2FA12}" => "\u{2A105}", "\u{2FA13}" => "\u{2A20E}", "\u{2FA14}" => "\u{2A291}", - "\u{2FA15}" => "\u{9EBB}", "\u{2FA16}" => "\u{4D56}", "\u{2FA17}" => "\u{9EF9}", "\u{2FA18}" => "\u{9EFE}", - "\u{2FA19}" => "\u{9F05}", "\u{2FA1A}" => "\u{9F0F}", "\u{2FA1B}" => "\u{9F16}", "\u{2FA1C}" => "\u{9F3B}", - "\u{2FA1D}" => "\u{2A600}", - }.freeze - - # The code points with a canonical decomposition into two code - # points that are excluded from composition - # (Full_Composition_Exclusion). - COMPOSITION_EXCLUSION = /[\u{344}\u{958}-\u{95F}\u{9DC}-\u{9DD}\u{9DF}\u{A33}\u{A36}\u{A59}-\u{A5B}\u{A5E}\u{B5C}-\u{B5D}\u{F43}\u{F4D}\u{F52}\u{F57}\u{F5C}\u{F69}\u{F73}\u{F75}-\u{F76}\u{F78}\u{F81}\u{F93}\u{F9D}\u{FA2}\u{FA7}\u{FAC}\u{FB9}\u{2ADC}\u{FB1D}\u{FB1F}\u{FB2A}-\u{FB36}\u{FB38}-\u{FB3C}\u{FB3E}\u{FB40}-\u{FB41}\u{FB43}-\u{FB44}\u{FB46}-\u{FB4E}\u{1D15E}-\u{1D164}\u{1D1BB}-\u{1D1C0}]/ end end end diff --git a/rakelib/idna_data_generator.rb b/rakelib/idna_data_generator.rb index be405a4..02a4928 100644 --- a/rakelib/idna_data_generator.rb +++ b/rakelib/idna_data_generator.rb @@ -2,22 +2,16 @@ # Generates lib/uri/whatwg_parser/idna_data.rb, the Unicode data that # URI::WHATWG_Parser::IDNA needs for domain to ASCII (UTS #46 ToASCII -# with the settings of the URL Standard), from the Unicode Character -# Database files of one Unicode version. +# with the settings of the URL Standard) and that Ruby has not: the +# Bidi_Class and Joining_Type values of the valid code points, from the +# Unicode Character Database files of one Unicode version. class IDNADataGenerator FILES = { mapping: "idna/IdnaMappingTable.txt", bidi_class: "ucd/extracted/DerivedBidiClass.txt", joining_type: "ucd/extracted/DerivedJoiningType.txt", - combining_class: "ucd/extracted/DerivedCombiningClass.txt", - general_category: "ucd/extracted/DerivedGeneralCategory.txt", - unicode_data: "ucd/UnicodeData.txt", - normalization_props: "ucd/DerivedNormalizationProps.txt", }.freeze - # Canonical_Combining_Class=Virama - VIRAMA = "9" - def self.url(version, file) "https://www.unicode.org/Public/#{version}/#{file}" end @@ -29,8 +23,7 @@ def initialize(version, sources) end def generate - mapping = parse_mapping - valid = mapping[:valid] + valid = valid_code_points <<~RUBY # frozen_string_literal: true @@ -43,53 +36,19 @@ class WHATWG_Parser module IDNA # :nodoc: UNICODE_VERSION = #{@version.dump} - # The replacement of each code point with the status "mapped" or - # "ignored" (an empty string) in the IDNA Mapping Table. - MAPPING = { - #{mapping_entries(mapping[:mapped]).join("\n")} - }.freeze - - # A code point whose status is neither "valid" nor "deviation". - # A deviation is valid in Nontransitional Processing. - INVALID = #{char_class(valid, negate: true)} - - # General_Category=Mark, among the valid code points. - MARK = #{char_class(intersect(property("general_category") { |v| v.start_with?("M") }, valid))} - - # Canonical_Combining_Class=Virama, among the valid code points. - VIRAMA = #{char_class(intersect(property("combining_class") { |v| v == VIRAMA }, valid))} - # Joining_Type, among the valid code points. JOINING_TYPE_L_OR_D = #{char_class(intersect(property("joining_type") { |v| %w[L D].include?(v) }, valid))} JOINING_TYPE_R_OR_D = #{char_class(intersect(property("joining_type") { |v| %w[R D].include?(v) }, valid))} JOINING_TYPE_T = #{char_class(intersect(property("joining_type") { |v| v == "T" }, valid))} - # Bidi_Class, among the valid code points. The values that the - # Bidi Rule (RFC 5893) always treats alike are grouped. - BIDI_L = #{char_class(intersect(bidi_class("L"), valid))} + # Bidi_Class, among the valid code points, but L, which is the + # class of the others. The values that the Bidi Rule (RFC 5893) + # always treats alike are grouped. BIDI_R_OR_AL = #{char_class(intersect(bidi_class("R", "AL"), valid))} BIDI_AN = #{char_class(intersect(bidi_class("AN"), valid))} BIDI_EN = #{char_class(intersect(bidi_class("EN"), valid))} BIDI_ES_CS_ET_ON_BN = #{char_class(intersect(bidi_class("ES", "CS", "ET", "ON", "BN"), valid))} BIDI_NSM = #{char_class(intersect(bidi_class("NSM"), valid))} - - # Canonical_Combining_Class of each code point whose class is - # not 0. - COMBINING_CLASS = { - #{hash_entries(combining_classes) { |ccc| ccc.to_s }.join("\n")} - }.freeze - - # The canonical decomposition mapping (one level) of each code - # point that has one. Hangul syllables are not listed: they are - # decomposed algorithmically. - CANONICAL_DECOMPOSITION = { - #{hash_entries(canonical_decompositions) { |target| escape(target) }.join("\n")} - }.freeze - - # The code points with a canonical decomposition into two code - # points that are excluded from composition - # (Full_Composition_Exclusion). - COMPOSITION_EXCLUSION = #{char_class(composition_exclusions)} end end end @@ -98,25 +57,15 @@ module IDNA # :nodoc: private - # Returns {valid: [ranges], mapped: {code point => [code points]}}. - def parse_mapping + # The ranges of the code points whose status is valid or deviation in + # the IDNA Mapping Table: the others are never checked for Bidi_Class + # or Joining_Type. + def valid_code_points valid = [] - mapped = {} each_line(:mapping) do |range, fields| - case fields[0] - when "valid", "deviation" - valid << range - when "mapped" - target = fields[1].split.map(&:hex) - range.each { |c| mapped[c] = target } - when "ignored" - range.each { |c| mapped[c] = [] } - when "disallowed" - else - raise "unknown status #{fields[0].inspect} in IdnaMappingTable.txt" - end + valid << range if %w[valid deviation].include?(fields[0]) end - {valid: merge(valid), mapped: mapped} + merge(valid) end def property(key) @@ -163,55 +112,11 @@ def intersect(ranges, others) end end - def mapping_entries(mapped) - hash_entries(mapped) { |target| escape(target) } - end - - # Lines of Hash entries keyed by code point, with values formatted by - # the block. - def hash_entries(hash) - hash.sort.each_slice(4).map do |slice| - " " + slice.map { |c, value| "#{escape([c])} => #{yield value}," }.join(" ") - end - end - - # {code point => Canonical_Combining_Class} for classes other than 0. - def combining_classes - classes = {} - each_line(:combining_class) do |range, fields| - ccc = Integer(fields[0], 10) - range.each { |c| classes[c] = ccc } unless ccc == 0 - end - classes - end - - # {code point => [code points]}: the canonical decomposition mappings - # in UnicodeData.txt. A compatibility mapping starts with "". - def canonical_decompositions - @canonical_decompositions ||= {}.tap do |decompositions| - each_line(:unicode_data) do |range, fields| - mapping = fields[4] - next if mapping.empty? || mapping.start_with?("<") - decompositions[range.first] = mapping.split.map(&:hex) - end - end - end - - def composition_exclusions - excluded = property("normalization_props") { |v| v == "Full_Composition_Exclusion" } - pairs = canonical_decompositions.select { |_, target| target.size == 2 }.keys - merge(pairs.select { |c| excluded.any? { |range| range.cover?(c) } }.map { |c| c..c }) - end - - def escape(code_points) - "\"#{code_points.map { |c| format("\\u{%X}", c) }.join}\"" - end - - def char_class(ranges, negate: false) + def char_class(ranges) body = ranges.map do |range| first = format("\\u{%X}", range.first) range.size == 1 ? first : "#{first}-#{format("\\u{%X}", range.last)}" end - "/[#{"^" if negate}#{body.join}]/" + "/[#{body.join}]/" end end diff --git a/test/uri/test_whatwg_idna.rb b/test/uri/test_whatwg_idna.rb index f36a02c..da7892d 100644 --- a/test/uri/test_whatwg_idna.rb +++ b/test/uri/test_whatwg_idna.rb @@ -66,6 +66,85 @@ def test_deviation_is_kept assert_to_ascii("xn--fa-hia.de", "FA\u1E9E.de") end + # --- Mapping table derivation (UTS #46 section 6) ----------------- + # The IDNA Mapping Table is derived from the Unicode data of the + # running Ruby. + + # Step 1: the label separators map to ".", Bidi_Control characters + # to themselves (so step 6 disallows them), and U+1E9E to U+00DF. + def test_derivation_base_mapping_exceptions + assert_to_ascii("a.b", "a\u{FF0E}b") + assert_to_ascii("a.b", "a\u{FF61}b") + assert_to_ascii(".", "\u{3002}") + assert_failure("a\u{200E}b") + assert_failure("a\u{202A}b") + assert_to_ascii("xn--zca", "\u{1E9E}") + end + + # Step 1 otherwise: NFKC_Casefold, which removes default ignorable + # code points. + def test_derivation_nfkc_casefold + assert_to_ascii("viii", "\u{2167}") + assert_to_ascii("ffi", "\u{FB03}") + assert_to_ascii("xn--bya", "\u{2126}") + assert_to_ascii("ab", "a\u{AD}b") + assert_to_ascii("ab", "a\u{200B}b") + assert_to_ascii("ab", "a\u{180E}b") + assert_to_ascii("ab", "a\u{FE0F}b") + assert_to_ascii("ab", "a\u{E0100}b") + end + + # Step 2: the base valid set has the ASCII code points but ".", and no + # other control, format, private use, unassigned or separator code + # point, nor IDS operator. + def test_derivation_base_valid_set + assert_to_ascii("a\u{0}b", "a\u{0}b") + assert_to_ascii("a b", "a\u{A0}b") + assert_to_ascii("a b", "a\u{3000}b") + assert_failure("a\u{2028}b") + assert_failure("a\u{E000}") + assert_failure("a\u{FDD0}") + assert_failure("a\u{2FF0}b") + assert_failure("a\u{2FFE}b") + assert_to_ascii("xn--a-jv3s", "a\u{1F600}") + assert_to_ascii("xn--o39a", "\u{AC00}") + end + + # Step 3: the base exclusion set. + def test_derivation_base_exclusion_set + assert_failure("a\u{FFFC}") + assert_failure("a\u{FFFD}") + assert_failure("a\u{E0001}") + assert_failure("a\u{E007F}") + end + + # Step 4: the deviations are valid in Nontransitional Processing. + def test_derivation_deviations + assert_to_ascii("xn--a-ymb", "a\u{3C2}") + assert_to_ascii("xn--fa-hia.de", "fa\u{DF}.de") + end + + # Step 6: an unassigned code point is disallowed, as is one whose + # mapping has a code point outside the base valid set, such as the + # "." of U+2488 DIGIT ONE FULL STOP. + def test_derivation_disallowed + assert_failure("a\u{378}") + assert_failure("a\u{2488}b") + end + + # Step 7: a mapping must be wholly valid. U+FE12 maps to U+3002, which + # is mapped itself. + def test_derivation_mapping_to_a_mapped_code_point + assert_failure("a\u{FE12}b") + end + + # A code point added in a later Unicode version than the running + # Ruby's is unassigned, so disallowed. + def test_code_point_unknown_to_ruby_is_disallowed + unknown = (0x30000..0x3FFFD).find { |c| c.chr(Encoding::UTF_8).match?(/\p{Cn}/) } + assert_failure("a" + unknown.chr(Encoding::UTF_8)) + end + # --- Normalize ----------------------------------------------------- def test_normalized_to_nfc diff --git a/test/uri/test_whatwg_parser.rb b/test/uri/test_whatwg_parser.rb index 1e5224e..a297b38 100644 --- a/test/uri/test_whatwg_parser.rb +++ b/test/uri/test_whatwg_parser.rb @@ -1164,7 +1164,7 @@ def test_unicode_data_is_loaded_with_uri_only_where_ractors_cannot_require require "uri" version = RUBY_VERSION.split(".").map(&:to_i) eager = !!defined?(Ractor) && (version <=> [3, 0]) >= 0 && (version <=> [4, 0]) < 0 - assert_equal(eager, URI::WHATWG_Parser::IDNA.const_defined?(:MAPPING, false), "IDNA data") + assert_equal(eager, URI::WHATWG_Parser::IDNA.const_defined?(:BIDI_NSM, false), "IDNA data") assert_equal(eager, URI::WHATWG_Parser::NFC.const_defined?(:COMPOSITION, false), "NFC tables") RUBY end From 80c9a0c9158db98d624a51419369b7959a9a3747 Mon Sep 17 00:00:00 2001 From: jinroq Date: Tue, 24 Nov 2026 21:15:53 +0900 Subject: [PATCH 70/74] Freeze the IDS operator pattern of IDNA A Regexp made with Regexp.new, unlike a literal, is not frozen, so a non-main Ractor could not read IDNA::IDS_OPERATOR on Ruby 4.0, the only version that both knows IDS_Unary_Operator and does not share such a Regexp. Every constant of IDNA and NFC is now tested to be shareable. Co-Authored-By: Claude Opus 5.5 --- lib/uri/whatwg_parser/idna.rb | 3 ++- test/uri/test_whatwg_idna.rb | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/uri/whatwg_parser/idna.rb b/lib/uri/whatwg_parser/idna.rb index f45895d..d377473 100644 --- a/lib/uri/whatwg_parser/idna.rb +++ b/lib/uri/whatwg_parser/idna.rb @@ -47,7 +47,8 @@ module IDNA # :nodoc: OTHER_OR_SEPARATOR = /[\p{C}\p{Z}]/ IDS_OPERATOR = begin - Regexp.new("[\\p{IDS_Unary_Operator}\\p{IDS_Binary_Operator}\\p{IDS_Trinary_Operator}]") + # Regexp.new, unlike a literal, is not frozen. + Regexp.new("[\\p{IDS_Unary_Operator}\\p{IDS_Binary_Operator}\\p{IDS_Trinary_Operator}]").freeze rescue RegexpError # IDS_Unary_Operator is new in Unicode 15.1, with U+2FFE and U+2FFF. /[\u{2FFE}\u{2FFF}\p{IDS_Binary_Operator}\p{IDS_Trinary_Operator}]/ diff --git a/test/uri/test_whatwg_idna.rb b/test/uri/test_whatwg_idna.rb index da7892d..01d1c21 100644 --- a/test/uri/test_whatwg_idna.rb +++ b/test/uri/test_whatwg_idna.rb @@ -306,6 +306,15 @@ def test_ltr_label_outside_a_bidi_domain_is_not_checked # --- Input --------------------------------------------------------- + # A non-main Ractor can read only shareable constants. + def test_constants_are_shareable + omit "Ractor is not available" unless defined?(Ractor) + IDNA.load_data + [IDNA, URI::WHATWG_Parser::NFC].each do |mod| + assert_equal([], mod.constants.reject { |c| Ractor.shareable?(mod.const_get(c)) }, mod.name) + end + end + def test_invalid_utf8 assert_failure("\xFF.com".dup.force_encoding(Encoding::UTF_8)) end From e131a58caf86540a3086dd64f7d6268a73e665dc Mon Sep 17 00:00:00 2001 From: jinroq Date: Tue, 24 Nov 2026 21:15:53 +0900 Subject: [PATCH 71/74] Document that IDNA uses the Unicode data of Ruby Co-Authored-By: Claude Opus 5.5 --- .github/workflows/wpt.yml | 8 ++++---- README.md | 6 +++--- lib/uri/common.rb | 4 ++++ 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/wpt.yml b/.github/workflows/wpt.yml index e21e973..d4545a1 100644 --- a/.github/workflows/wpt.yml +++ b/.github/workflows/wpt.yml @@ -2,10 +2,10 @@ name: WPT # Runs web-platform-tests' url/resources/urltestdata.json, toascii.json and # setters_tests.json, fetched from WPT master, against URI::WHATWG_PARSER -# (rake test:wpt). The -# same task runs Unicode's IdnaTestV2.txt and NormalizationTest.txt for the -# Unicode version of the IDNA data, and fails when Unicode has released a -# newer version than that data. +# (rake test:wpt). The same task runs Unicode's IdnaTestV2.txt for the +# Unicode version of the generated IDNA data and NormalizationTest.txt for +# that of Ruby, and fails when Unicode has released a newer version than +# the generated data. # # The URL Standard is a living standard and WPT follows its changes, so the # scheduled run is how a change in the standard is noticed: it fails when a diff --git a/README.md b/README.md index d80d1e1..b5469d6 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ uri.to_s #=> "http://foo.com/posts?id=30&limit=5#time=1305298413" ### WHATWG URL Standard -The default parser follows RFC 3986. `URI::WHATWG_PARSER` parses URLs as web browsers do, following the [WHATWG URL Standard](https://url.spec.whatwg.org/), including domain to ASCII (IDNA, [UTS #46](https://www.unicode.org/reports/tr46/)) for non-ASCII domains: +The default parser follows RFC 3986. `URI::WHATWG_PARSER` parses URLs as web browsers do, following the [WHATWG URL Standard](https://url.spec.whatwg.org/), including domain to ASCII (IDNA, [UTS #46](https://www.unicode.org/reports/tr46/)) for non-ASCII domains. IDNA uses the Unicode data of the running Ruby, so a domain with a character added in a later version of Unicode than `RbConfig::CONFIG["UNICODE_VERSION"]` is invalid: ```ruby URI::WHATWG_PARSER.parse("HTTP://EXAMPLE.com:80/a/../b c") @@ -94,9 +94,9 @@ URI::WHATWG_PARSER.parse(uri.to_s) #=> # After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment. -`rake test:wpt` runs the conformance tests of `URI::WHATWG_PARSER`: web-platform-tests' `urltestdata.json`, `toascii.json` and `setters_tests.json`, and Unicode's `IdnaTestV2.txt` and `NormalizationTest.txt`. It fetches them over the network, unless `WPT_URLTESTDATA`, `WPT_TOASCII`, `WPT_SETTERS`, `IDNA_TEST_V2` and `NORMALIZATION_TEST` name local files. The cases that are known to fail are listed in `test/wpt/urltestdata_exclusions.json` and `test/wpt/setters_tests_exclusions.json`; regenerate them with `rake test:wpt:update_exclusions`. +`rake test:wpt` runs the conformance tests of `URI::WHATWG_PARSER`: web-platform-tests' `urltestdata.json`, `toascii.json` and `setters_tests.json`, and Unicode's `IdnaTestV2.txt` and `NormalizationTest.txt` (the latter for the Unicode version of the running Ruby; the cases of the former that succeed with a character unknown to it are not run). It fetches them over the network, unless `WPT_URLTESTDATA`, `WPT_TOASCII`, `WPT_SETTERS`, `IDNA_TEST_V2` and `NORMALIZATION_TEST` name local files. The cases that are known to fail are listed in `test/wpt/urltestdata_exclusions.json` and `test/wpt/setters_tests_exclusions.json`; regenerate them with `rake test:wpt:update_exclusions`. -The Unicode data for IDNA, `lib/uri/whatwg_parser/idna_data.rb`, is generated by `rake idna:generate`. Set `UNICODE_VERSION` (for example `UNICODE_VERSION=18.0.0`) to generate it for another version of Unicode. +The Unicode data that IDNA needs and Ruby has not, the Bidi_Class and Joining_Type values in `lib/uri/whatwg_parser/idna_data.rb`, is generated by `rake idna:generate`. Set `UNICODE_VERSION` (for example `UNICODE_VERSION=18.0.0`) to generate it for another version of Unicode. To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org). diff --git a/lib/uri/common.rb b/lib/uri/common.rb index 758352d..794c623 100644 --- a/lib/uri/common.rb +++ b/lib/uri/common.rb @@ -49,6 +49,10 @@ module URI # URI::WHATWG_PARSER.parse("http://\u{65E5}\u{672C}\u{8A9E}.jp/").host # # => "xn--wgv71a119e.jp" # + # IDNA uses the Unicode data of the running Ruby, as String#upcase + # does, so a domain with a character added in a later version of + # Unicode than RbConfig::CONFIG["UNICODE_VERSION"] is invalid. + # # The setters of a URI it builds follow the setters of the URL # Standard, and raise URI::InvalidComponentError for a value that the # URL Standard ignores: From 48acafd2b28474a62abffb556c4c283e591f5f39 Mon Sep 17 00:00:00 2001 From: jinroq Date: Tue, 24 Nov 2026 22:33:20 +0900 Subject: [PATCH 72/74] Disallow code points newer than the generated IDNA data Whether a code point is valid comes from the Unicode data of the running Ruby, but its Bidi_Class and Joining_Type values come from the generated data, where a code point that is not listed has Bidi_Class L. On a Ruby of a later Unicode version than the data, a code point added since would then be valid with wrong values: a right-to-left letter would pass the Bidi Rule as L, and a transparent mark would break CONTEXTJ. Such a code point is now disallowed, with the Age property of Ruby. On a Ruby that does not know a later version, nothing changes. Co-Authored-By: Claude Opus 5.5 --- lib/uri/whatwg_parser/idna.rb | 20 ++++++++++++++++++-- lib/uri/whatwg_parser/idna_data.rb | 4 ++++ rakelib/idna_data_generator.rb | 4 ++++ test/uri/test_whatwg_idna.rb | 30 ++++++++++++++++++++++++++++++ 4 files changed, 56 insertions(+), 2 deletions(-) diff --git a/lib/uri/whatwg_parser/idna.rb b/lib/uri/whatwg_parser/idna.rb index d377473..dbbb546 100644 --- a/lib/uri/whatwg_parser/idna.rb +++ b/lib/uri/whatwg_parser/idna.rb @@ -106,7 +106,7 @@ def map(c) # Steps 6 and 7 for +c+: its mapping if its status is mapped or # ignored (an empty string), or nil. def mapping_of(c) - return nil if DEVIATIONS.include?(c) || c.match?(EXCLUDED) || c.match?(UNASSIGNED) + return nil if DEVIATIONS.include?(c) || c.match?(EXCLUDED) || unknown?(c) mapping = base_mapping(c) return nil if mapping == c return nil unless LABEL_SEPARATORS.include?(c) || mapping.each_char.all? { |m| base_valid?(m) } @@ -121,10 +121,26 @@ def mapping_of(c) def valid_char?(c) return c != LABEL_SEPARATOR if c.ord < 0x80 return true if DEVIATIONS.include?(c) - return false if c.match?(EXCLUDED) || c.match?(UNASSIGNED) + return false if c.match?(EXCLUDED) || unknown?(c) base_mapping(c) == c && base_valid?(c) end + # Whether +c+ is unassigned in the Unicode version of the running + # Ruby, or assigned after that of the generated data, whose + # Bidi_Class and Joining_Type values it does not have. + def unknown?(c) + c.match?(UNASSIGNED) || (!NEWER_THAN_DATA.nil? && c.match?(NEWER_THAN_DATA)) + end + + # A pattern of the code points assigned after Unicode +version+, or + # nil when the running Ruby does not know +version+, so knows no + # later one either. + def newer_than(version) + Regexp.new("(?!\\p{Age=#{version[/\A\d+\.\d+/]}})\\P{Cn}").freeze + rescue RegexpError + nil + end + # Step 1: the base mapping of +c+. def base_mapping(c) return LABEL_SEPARATOR if LABEL_SEPARATORS.include?(c) diff --git a/lib/uri/whatwg_parser/idna_data.rb b/lib/uri/whatwg_parser/idna_data.rb index 6b99d90..5ba896b 100644 --- a/lib/uri/whatwg_parser/idna_data.rb +++ b/lib/uri/whatwg_parser/idna_data.rb @@ -24,6 +24,10 @@ module IDNA # :nodoc: BIDI_EN = /[\u{30}-\u{39}\u{6F0}-\u{6F9}\u{102E1}-\u{102FB}]/ BIDI_ES_CS_ET_ON_BN = /[\u{0}-\u{8}\u{E}-\u{1B}\u{21}-\u{2F}\u{3A}-\u{40}\u{5B}-\u{60}\u{7B}-\u{7F}\u{A1}-\u{A7}\u{A9}\u{AB}-\u{AC}\u{AE}\u{B0}-\u{B1}\u{B6}-\u{B7}\u{BB}\u{BF}\u{D7}\u{F7}\u{2B9}-\u{2BA}\u{2C2}-\u{2CF}\u{2D2}-\u{2D7}\u{2DE}-\u{2DF}\u{2E5}-\u{2ED}\u{2EF}-\u{2FF}\u{375}\u{3F6}\u{58A}\u{58D}-\u{58F}\u{606}-\u{607}\u{609}-\u{60A}\u{60C}\u{60E}-\u{60F}\u{66A}\u{6DE}\u{6E9}\u{7F6}-\u{7F9}\u{9F2}-\u{9F3}\u{9FB}\u{AF1}\u{BF3}-\u{BFA}\u{C78}-\u{C7E}\u{E3F}\u{F3A}-\u{F3D}\u{1390}-\u{1399}\u{1400}\u{169B}-\u{169C}\u{17DB}\u{17F0}-\u{17F9}\u{1800}-\u{180A}\u{1940}\u{1944}-\u{1945}\u{19DE}-\u{19FF}\u{200C}-\u{200D}\u{2010}\u{2012}-\u{2016}\u{2018}-\u{2023}\u{2027}\u{2030}-\u{2032}\u{2035}\u{2038}-\u{203B}\u{203D}\u{203F}-\u{2046}\u{204A}-\u{2056}\u{2058}-\u{205E}\u{208F}\u{20A0}-\u{20A7}\u{20A9}-\u{20C4}\u{2104}\u{2108}\u{2114}\u{2117}-\u{2118}\u{211E}-\u{211F}\u{2123}\u{2125}\u{2127}\u{2129}\u{212E}\u{213A}\u{2141}-\u{2144}\u{214A}-\u{214D}\u{218A}-\u{218B}\u{2190}-\u{222B}\u{222E}\u{2231}-\u{2328}\u{232B}-\u{2335}\u{237B}-\u{2394}\u{2396}-\u{2429}\u{2440}-\u{244A}\u{24EB}-\u{26AB}\u{26AD}-\u{27FF}\u{2900}-\u{2A0B}\u{2A0D}-\u{2A73}\u{2A77}-\u{2ADB}\u{2ADD}-\u{2B73}\u{2B76}-\u{2BFF}\u{2CE5}-\u{2CEA}\u{2CF9}-\u{2CFF}\u{2E00}-\u{2E5D}\u{2E60}-\u{2E63}\u{2E80}-\u{2E99}\u{2E9B}-\u{2E9E}\u{2EA0}-\u{2EF2}\u{3001}\u{3003}-\u{3004}\u{3008}-\u{3020}\u{3030}\u{3037}\u{303D}-\u{303F}\u{30A0}\u{30FB}\u{31C0}-\u{31E5}\u{4DC0}-\u{4DFF}\u{A490}-\u{A4C6}\u{A60D}-\u{A60F}\u{A673}\u{A67E}-\u{A67F}\u{A700}-\u{A721}\u{A788}\u{A828}-\u{A82B}\u{A838}-\u{A839}\u{A874}-\u{A877}\u{AB6A}-\u{AB6B}\u{FBC3}-\u{FBD2}\u{FD3E}-\u{FD4F}\u{FD90}-\u{FD91}\u{FDC8}-\u{FDCF}\u{FDFD}-\u{FDFF}\u{FE45}-\u{FE46}\u{10101}\u{10140}-\u{1018C}\u{10190}-\u{1019C}\u{101A0}\u{1091F}\u{10B39}-\u{10B3F}\u{10D6E}\u{10ED0}-\u{10ED8}\u{11052}-\u{11065}\u{11660}-\u{1166C}\u{11FD5}-\u{11FF1}\u{16FE2}\u{1CC00}-\u{1CCD5}\u{1CCFA}-\u{1CCFC}\u{1CD00}-\u{1CEB3}\u{1CEBA}-\u{1CED0}\u{1CED2}-\u{1CED4}\u{1CEDD}-\u{1CEFD}\u{1D1E9}-\u{1D1EA}\u{1D200}-\u{1D241}\u{1D245}\u{1D300}-\u{1D356}\u{1DB00}-\u{1DB1C}\u{1E2FF}\u{1EEF0}-\u{1EEF1}\u{1F000}-\u{1F02B}\u{1F030}-\u{1F093}\u{1F0A0}-\u{1F0AE}\u{1F0B1}-\u{1F0BF}\u{1F0C1}-\u{1F0CF}\u{1F0D1}-\u{1F0F5}\u{1F10B}-\u{1F10F}\u{1F12F}\u{1F16D}-\u{1F16F}\u{1F1AD}\u{1F260}-\u{1F265}\u{1F300}-\u{1F6D9}\u{1F6DC}-\u{1F6EC}\u{1F6F0}-\u{1F6FC}\u{1F700}-\u{1F7D9}\u{1F7DB}\u{1F7E0}-\u{1F7EB}\u{1F7F0}-\u{1F80B}\u{1F810}-\u{1F847}\u{1F850}-\u{1F859}\u{1F860}-\u{1F887}\u{1F890}-\u{1F8AD}\u{1F8B0}-\u{1F8BB}\u{1F8C0}-\u{1F8C1}\u{1F8D0}-\u{1F8D8}\u{1F900}-\u{1FA57}\u{1FA60}-\u{1FA6D}\u{1FA70}-\u{1FA7C}\u{1FA80}-\u{1FAC6}\u{1FAC8}\u{1FACC}-\u{1FADD}\u{1FADF}-\u{1FAEB}\u{1FAEF}-\u{1FAFA}\u{1FB00}-\u{1FB92}\u{1FB94}-\u{1FBEF}\u{1FBFA}]/ BIDI_NSM = /[\u{300}-\u{33F}\u{342}\u{346}-\u{34E}\u{350}-\u{36F}\u{483}-\u{489}\u{591}-\u{5BD}\u{5BF}\u{5C1}-\u{5C2}\u{5C4}-\u{5C5}\u{5C7}-\u{5C9}\u{610}-\u{61A}\u{64B}-\u{65F}\u{670}\u{6D6}-\u{6DC}\u{6DF}-\u{6E4}\u{6E7}-\u{6E8}\u{6EA}-\u{6ED}\u{711}\u{730}-\u{74A}\u{7A6}-\u{7B0}\u{7EB}-\u{7F3}\u{7FD}\u{816}-\u{819}\u{81B}-\u{823}\u{825}-\u{827}\u{829}-\u{82D}\u{859}-\u{85B}\u{897}-\u{89F}\u{8CA}-\u{8E1}\u{8E3}-\u{902}\u{93A}\u{93C}\u{941}-\u{948}\u{94D}\u{951}-\u{957}\u{962}-\u{963}\u{981}\u{9BC}\u{9C1}-\u{9C4}\u{9CD}\u{9E2}-\u{9E3}\u{9FE}\u{A01}-\u{A02}\u{A3C}\u{A41}-\u{A42}\u{A47}-\u{A48}\u{A4B}-\u{A4D}\u{A51}\u{A70}-\u{A71}\u{A75}\u{A81}-\u{A82}\u{ABC}\u{AC1}-\u{AC5}\u{AC7}-\u{AC8}\u{ACD}\u{AE2}-\u{AE3}\u{AFA}-\u{AFF}\u{B01}\u{B3C}\u{B3F}\u{B41}-\u{B44}\u{B4D}\u{B53}-\u{B56}\u{B62}-\u{B63}\u{B82}\u{BC0}\u{BCD}\u{C00}\u{C04}\u{C3C}\u{C3E}-\u{C40}\u{C46}-\u{C48}\u{C4A}-\u{C4D}\u{C55}-\u{C56}\u{C62}-\u{C63}\u{C81}\u{CBC}\u{CCC}-\u{CCD}\u{CE2}-\u{CE3}\u{D00}-\u{D01}\u{D3B}-\u{D3C}\u{D41}-\u{D44}\u{D4D}\u{D62}-\u{D63}\u{D81}\u{DCA}\u{DD2}-\u{DD4}\u{DD6}\u{E31}\u{E34}-\u{E3A}\u{E47}-\u{E4E}\u{EB1}\u{EB4}-\u{EBC}\u{EC8}-\u{ECE}\u{F18}-\u{F19}\u{F35}\u{F37}\u{F39}\u{F71}-\u{F72}\u{F74}\u{F7A}-\u{F7E}\u{F80}\u{F82}-\u{F84}\u{F86}-\u{F87}\u{F8D}-\u{F92}\u{F94}-\u{F97}\u{F99}-\u{F9C}\u{F9E}-\u{FA1}\u{FA3}-\u{FA6}\u{FA8}-\u{FAB}\u{FAD}-\u{FB8}\u{FBA}-\u{FBC}\u{FC6}\u{102D}-\u{1030}\u{1032}-\u{1037}\u{1039}-\u{103A}\u{103D}-\u{103E}\u{1058}-\u{1059}\u{105E}-\u{1060}\u{1071}-\u{1074}\u{1082}\u{1085}-\u{1086}\u{108D}\u{109D}\u{135D}-\u{135F}\u{1712}-\u{1714}\u{1732}-\u{1733}\u{1752}-\u{1753}\u{1772}-\u{1773}\u{17B7}-\u{17BD}\u{17C6}\u{17C9}-\u{17D3}\u{17DD}\u{1885}-\u{1886}\u{18A9}\u{1920}-\u{1922}\u{1927}-\u{1928}\u{1932}\u{1939}-\u{193B}\u{1A17}-\u{1A18}\u{1A1B}\u{1A56}\u{1A58}-\u{1A5E}\u{1A60}\u{1A62}\u{1A65}-\u{1A6C}\u{1A73}-\u{1A7C}\u{1A7F}\u{1AB0}-\u{1AF0}\u{1B00}-\u{1B03}\u{1B34}\u{1B36}-\u{1B39}\u{1B6B}-\u{1B73}\u{1B80}-\u{1B81}\u{1BA2}-\u{1BA5}\u{1BA8}-\u{1BA9}\u{1BAB}-\u{1BAD}\u{1BE6}\u{1BE8}-\u{1BE9}\u{1BED}\u{1BEF}-\u{1BF1}\u{1C2C}-\u{1C33}\u{1C36}-\u{1C37}\u{1CD0}-\u{1CD2}\u{1CD4}-\u{1CE0}\u{1CE2}-\u{1CE8}\u{1CED}\u{1CF4}\u{1CF8}-\u{1CF9}\u{1DC0}-\u{1DFF}\u{20D0}-\u{20F0}\u{2CEF}-\u{2CF1}\u{2D7F}\u{2DE0}-\u{2DFF}\u{302A}-\u{302D}\u{3099}-\u{309A}\u{A66F}-\u{A672}\u{A674}-\u{A67D}\u{A69E}-\u{A69F}\u{A6F0}-\u{A6F1}\u{A802}\u{A806}\u{A80B}\u{A825}-\u{A826}\u{A82C}\u{A8C4}-\u{A8C5}\u{A8E0}-\u{A8F1}\u{A8FF}\u{A926}-\u{A92D}\u{A947}-\u{A951}\u{A980}-\u{A982}\u{A9B3}\u{A9B6}-\u{A9B9}\u{A9BC}-\u{A9BD}\u{A9E5}\u{AA29}-\u{AA2E}\u{AA31}-\u{AA32}\u{AA35}-\u{AA36}\u{AA43}\u{AA4C}\u{AA7C}\u{AAB0}\u{AAB2}-\u{AAB4}\u{AAB7}-\u{AAB8}\u{AABE}-\u{AABF}\u{AAC1}\u{AAEC}-\u{AAED}\u{AAF6}\u{ABE5}\u{ABE8}\u{ABED}\u{FB1E}\u{FE20}-\u{FE2F}\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}-\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}-\u{10AE6}\u{10D24}-\u{10D27}\u{10D69}-\u{10D6D}\u{10EAB}-\u{10EAC}\u{10ECB}-\u{10ECF}\u{10EF0}-\u{10EFF}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11001}\u{11038}-\u{11046}\u{11070}\u{11073}-\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}-\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}-\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}-\u{11237}\u{1123E}\u{11241}\u{112DF}\u{112E3}-\u{112EA}\u{11300}-\u{11301}\u{1133B}-\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{113BB}-\u{113C0}\u{113CE}\u{113D0}\u{113D2}\u{113E1}-\u{113E2}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}-\u{114C0}\u{114C2}-\u{114C3}\u{115B2}-\u{115B5}\u{115BC}-\u{115BD}\u{115BF}-\u{115C0}\u{115DC}-\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}-\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}-\u{1183A}\u{1193B}-\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}-\u{119DB}\u{119E0}\u{11A01}-\u{11A06}\u{11A09}-\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}-\u{11A99}\u{11B60}\u{11B62}-\u{11B64}\u{11B66}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}-\u{11CB3}\u{11CB5}-\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}-\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}-\u{11D91}\u{11D95}\u{11D97}\u{11DF0}\u{11EF3}-\u{11EF4}\u{11F00}-\u{11F01}\u{11F36}-\u{11F3A}\u{11F40}\u{11F42}\u{11F5A}\u{13440}\u{13447}-\u{13455}\u{1611E}-\u{16129}\u{1612D}-\u{1612F}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE4}\u{1BC9D}-\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D127}-\u{1D128}\u{1D167}-\u{1D169}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1D25B}-\u{1D25C}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}-\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E4EC}-\u{1E4EF}\u{1E5EE}-\u{1E5EF}\u{1E6E3}\u{1E6E6}\u{1E6EE}-\u{1E6EF}\u{1E6F5}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}]/ + + # The code points that a Ruby of a later Unicode version knows, + # but these values do not cover, or nil. + NEWER_THAN_DATA = newer_than(UNICODE_VERSION) end end end diff --git a/rakelib/idna_data_generator.rb b/rakelib/idna_data_generator.rb index 02a4928..3dacc0d 100644 --- a/rakelib/idna_data_generator.rb +++ b/rakelib/idna_data_generator.rb @@ -49,6 +49,10 @@ module IDNA # :nodoc: BIDI_EN = #{char_class(intersect(bidi_class("EN"), valid))} BIDI_ES_CS_ET_ON_BN = #{char_class(intersect(bidi_class("ES", "CS", "ET", "ON", "BN"), valid))} BIDI_NSM = #{char_class(intersect(bidi_class("NSM"), valid))} + + # The code points that a Ruby of a later Unicode version knows, + # but these values do not cover, or nil. + NEWER_THAN_DATA = newer_than(UNICODE_VERSION) end end end diff --git a/test/uri/test_whatwg_idna.rb b/test/uri/test_whatwg_idna.rb index 01d1c21..dea433b 100644 --- a/test/uri/test_whatwg_idna.rb +++ b/test/uri/test_whatwg_idna.rb @@ -145,6 +145,36 @@ def test_code_point_unknown_to_ruby_is_disallowed assert_failure("a" + unknown.chr(Encoding::UTF_8)) end + # The Bidi_Class and Joining_Type values come from generated data, so + # a code point that Ruby knows but the data does not, on a Ruby whose + # Unicode version is newer, is disallowed. + def test_newer_than_matches_code_points_assigned_after_a_version + newer = IDNA.newer_than("6.0.0") + assert_match(newer, "\u{1F600}") # Unicode 6.1 + assert_no_match(newer, "\u{263A}") # Unicode 1.1 + assert_no_match(newer, "a") + assert_no_match(newer, "\u{378}") # unassigned + assert_no_match(newer, "\u{FDD0}") # noncharacter + assert_predicate(newer, :frozen?) + end + + def test_newer_than_a_version_that_ruby_does_not_know_is_nil + assert_nil(IDNA.newer_than("999.0.0")) + end + + def test_code_point_newer_than_the_data_is_disallowed + assert_separately([], <<~'RUBY') + require "uri" + idna = URI::WHATWG_Parser::IDNA + idna.load_data + idna.send(:remove_const, :NEWER_THAN_DATA) + idna.const_set(:NEWER_THAN_DATA, idna.newer_than("6.0.0")) + assert_nil(idna.to_ascii("a\u{1F600}")) + assert_nil(idna.to_ascii("xn--a-jv3s")) + assert_equal("xn--a-60p", idna.to_ascii("a\u{263A}")) + RUBY + end + # --- Normalize ----------------------------------------------------- def test_normalized_to_nfc From 8594733a3d740d8c9116e174f6c383c7dc764f34 Mon Sep 17 00:00:00 2001 From: jinroq Date: Tue, 24 Nov 2026 22:39:04 +0900 Subject: [PATCH 73/74] Derive the IDNA status of a code point once per domain MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Deriving the status of a code point takes several NFKC normalizations, which were run again for every occurrence of the code point, and twice for its mapping and its validity: a host of 20000 "é" took 0.47 seconds, four times as long as with the bundled mapping table. The status, valid, mapped or disallowed, is now derived once per code point and domain, and a code point that has no decomposition and that case folding keeps, as most have, skips NFKC. The host takes 0.11 seconds, and one of 20000 distinct CJK ideographs 0.23 instead of 0.43. NFKC_Casefold is tested against String#unicode_normalize, on every code point with a decomposition or a combining class and a sample of the others. Co-Authored-By: Claude Opus 5.5 --- lib/uri/whatwg_parser/idna.rb | 61 ++++++++++++++++++++++------------- test/uri/test_whatwg_idna.rb | 23 +++++++++++++ 2 files changed, 61 insertions(+), 23 deletions(-) diff --git a/lib/uri/whatwg_parser/idna.rb b/lib/uri/whatwg_parser/idna.rb index dbbb546..c235537 100644 --- a/lib/uri/whatwg_parser/idna.rb +++ b/lib/uri/whatwg_parser/idna.rb @@ -27,6 +27,7 @@ module IDNA # :nodoc: # Every code point the IDNA Mapping Table leaves unchanged is # matched out; ASCII code points other than A-Z are among them. MAPPING_CANDIDATE = /[A-Z]|[^\x00-\x7F]/ + UPPERCASE_ASCII = /\A[A-Z]\z/ # The Bidi Rule (RFC 5893 section 2), over a label whose code points # are replaced by their Bidi_Class: L, R (R or AL), A (AN), E (EN), @@ -81,11 +82,17 @@ def process(domain) return nil unless domain.valid_encoding? load_data - mapped = domain.gsub(MAPPING_CANDIDATE) { |c| map(c) } + # Deriving the status of a code point takes several + # normalizations, so each one is derived once per domain. + statuses = {} + mapped = domain.gsub(MAPPING_CANDIDATE) do |c| + st = status(c, statuses) + st.is_a?(String) ? st : c + end labels = NFC.normalize(mapped).split(LABEL_SEPARATOR, -1) labels.map! do |label| label = decode_label(label) if label.start_with?(ACE_PREFIX) - return nil unless label && valid_label?(label) + return nil unless label && valid_label?(label, statuses) label end return nil if bidi_domain?(labels) && !labels.all? { |label| satisfies_bidi_rule?(label) } @@ -97,34 +104,29 @@ def load_data NFC.load_tables end - # The character +c+ maps to in the IDNA Mapping Table: its mapping if - # its status is mapped or ignored, otherwise +c+ itself. - def map(c) - mapping_of(c) || c + # Steps 6 and 7 of the Mapping Table Derivation for +c+: true if its + # status is valid or deviation, its mapping (an empty string if it + # is ignored) if it is mapped, or false if it is disallowed. + # +statuses+ caches the result by code point. + def status(c, statuses = {}) + statuses.fetch(c) { statuses[c] = derive_status(c, statuses) } end - # Steps 6 and 7 for +c+: its mapping if its status is mapped or - # ignored (an empty string), or nil. - def mapping_of(c) - return nil if DEVIATIONS.include?(c) || c.match?(EXCLUDED) || unknown?(c) + def derive_status(c, statuses) + return c.downcase if UPPERCASE_ASCII.match?(c) + return c != LABEL_SEPARATOR if c.ord < 0x80 + return true if DEVIATIONS.include?(c) + return false if c.match?(EXCLUDED) || unknown?(c) mapping = base_mapping(c) - return nil if mapping == c - return nil unless LABEL_SEPARATORS.include?(c) || mapping.each_char.all? { |m| base_valid?(m) } + return base_valid?(c) if mapping == c + return false unless LABEL_SEPARATORS.include?(c) || mapping.each_char.all? { |m| base_valid?(m) } # Step 7: a mapping that is not wholly valid is disallowed, such # as the U+3002 of U+FE12, which is mapped itself. A mapping is # stable under NFKC_Casefold, so this needs no repeating. - return nil unless mapping.each_char.all? { |m| m == LABEL_SEPARATOR || valid_char?(m) } + return false unless mapping.each_char.all? { |m| m == LABEL_SEPARATOR || status(m, statuses) == true } mapping end - # Step 6 for +c+: whether its status is valid or deviation. - def valid_char?(c) - return c != LABEL_SEPARATOR if c.ord < 0x80 - return true if DEVIATIONS.include?(c) - return false if c.match?(EXCLUDED) || unknown?(c) - base_mapping(c) == c && base_valid?(c) - end - # Whether +c+ is unassigned in the Unicode version of the running # Ruby, or assigned after that of the generated data, whose # Bidi_Class and Joining_Type values it does not have. @@ -160,6 +162,9 @@ def base_valid?(c) # NFKC_Casefold: the closure of NFKC(toCasefold(NFKC(X))) with the # default ignorable code points removed. def nfkc_casefold(s) + # Most code points have no decomposition, which NFKC keeps as they + # are, and fold to themselves. + return s if s.size == 1 && stable_code_point?(s) loop do t = NFC.normalize_kc(NFC.normalize_kc(s).downcase(:fold)).gsub(DEFAULT_IGNORABLE, "") return t if t == s @@ -167,6 +172,14 @@ def nfkc_casefold(s) end end + # Whether NFKC and case folding leave the code point +c+ unchanged, + # and it is not default ignorable, so NFKC_Casefold does. + def stable_code_point?(c) + code_point = c.ord + !NFC::DECOMPOSITION.key?(code_point) && !NFC::COMPATIBILITY_DECOMPOSITION.key?(code_point) && + c.downcase(:fold) == c && !c.match?(DEFAULT_IGNORABLE) + end + # Processing step 4 for a label that starts with "xn--". Returns the # decoded label, or nil. def decode_label(label) @@ -180,12 +193,14 @@ def decode_label(label) # Validity Criteria (UTS #46 section 4.1) for Nontransitional # Processing, except the Bidi Rule, which needs the whole domain. # Criterion 1 (NFC) holds for a label that was not decoded. - def valid_label?(label) + # + # +statuses+ caches #status by code point. + def valid_label?(label, statuses = {}) return true if label.empty? !label.start_with?(ACE_PREFIX) && !label.include?(LABEL_SEPARATOR) && !MARK.match?(label[0]) && - label.each_char.all? { |c| valid_char?(c) } && + label.each_char.all? { |c| status(c, statuses) == true } && valid_joiners?(label) end diff --git a/test/uri/test_whatwg_idna.rb b/test/uri/test_whatwg_idna.rb index dea433b..67df94d 100644 --- a/test/uri/test_whatwg_idna.rb +++ b/test/uri/test_whatwg_idna.rb @@ -145,6 +145,29 @@ def test_code_point_unknown_to_ruby_is_disallowed assert_failure("a" + unknown.chr(Encoding::UTF_8)) end + # NFKC_Casefold of one code point, computed with String#unicode_normalize + # instead of URI::WHATWG_Parser::NFC. + def reference_nfkc_casefold(s) + loop do + t = s.unicode_normalize(:nfkc).downcase(:fold).unicode_normalize(:nfkc).gsub(/\p{Default_Ignorable_Code_Point}/, "") + return t if t == s + s = t + end + end + + # Every code point with a decomposition or a combining class, and a + # sample of the others. + def test_nfkc_casefold + require "unicode_normalize/tables" + IDNA.load_data + chars = UnicodeNormalize::KOMPATIBLE_TABLE.keys + UnicodeNormalize::DECOMPOSITION_TABLE.keys + + UnicodeNormalize::CLASS_TABLE.keys + chars += (0x80..0x10FFFF).step(97).reject { |c| (0xD800..0xDFFF).cover?(c) }.map { |c| c.chr(Encoding::UTF_8) } + chars += ["A", "\u{DF}", "\u{1E9E}", "\u{130}", "\u{FB03}", "\u{AD}", "\u{AC00}", "\u{2126}", "\u{1F600}"] + wrong = chars.uniq.reject { |c| IDNA.nfkc_casefold(c) == reference_nfkc_casefold(c) } + assert_equal([], wrong.map(&:dump)) + end + # The Bidi_Class and Joining_Type values come from generated data, so # a code point that Ruby knows but the data does not, on a Ruby whose # Unicode version is newer, is disallowed. From 1df20f49abfe2cd49b3097889f889e86f68e9786 Mon Sep 17 00:00:00 2001 From: jinroq Date: Tue, 24 Nov 2026 22:39:25 +0900 Subject: [PATCH 74/74] Document the schemes that become URI::Generic with WHATWG_PARSER With URI.parser = URI::WHATWG_PARSER, ftp, mailto and ldap URLs become URI::Generic, so code that relies on URI::FTP, URI::MailTo or URI::LDAP no longer works for them: URI.open of open-uri tries to open an ftp URL as a local file. The documentation now says so, and that a character newer than the bundled IDNA data is invalid as well. Co-Authored-By: Claude Opus 5.5 --- README.md | 4 +++- lib/uri/common.rb | 7 ++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b5469d6..641b2c7 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ uri.to_s #=> "http://foo.com/posts?id=30&limit=5#time=1305298413" ### WHATWG URL Standard -The default parser follows RFC 3986. `URI::WHATWG_PARSER` parses URLs as web browsers do, following the [WHATWG URL Standard](https://url.spec.whatwg.org/), including domain to ASCII (IDNA, [UTS #46](https://www.unicode.org/reports/tr46/)) for non-ASCII domains. IDNA uses the Unicode data of the running Ruby, so a domain with a character added in a later version of Unicode than `RbConfig::CONFIG["UNICODE_VERSION"]` is invalid: +The default parser follows RFC 3986. `URI::WHATWG_PARSER` parses URLs as web browsers do, following the [WHATWG URL Standard](https://url.spec.whatwg.org/), including domain to ASCII (IDNA, [UTS #46](https://www.unicode.org/reports/tr46/)) for non-ASCII domains. IDNA uses the Unicode data of the running Ruby, so a domain with a character added in a later version of Unicode than `RbConfig::CONFIG["UNICODE_VERSION"]`, or than that of the data bundled for IDNA (18.0.0), is invalid: ```ruby URI::WHATWG_PARSER.parse("HTTP://EXAMPLE.com:80/a/../b c") @@ -70,6 +70,8 @@ URI("http://EXAMPLE.com/") URI.parser = URI::RFC3986_PARSER ``` +Only http, https, ws, wss and file URLs become instances of their scheme's class. Other schemes, ftp, mailto and ldap among them, become `URI::Generic`, since `URI::FTP`, `URI::MailTo` and `URI::LDAP` interpret their components by their own RFCs. With `URI.parser = URI::WHATWG_PARSER`, code that relies on those classes no longer works for such URLs: for example, `URI.open("ftp://...")` of open-uri, which opens a `URI::FTP` only, tries to open a local file instead and raises `Errno::ENOENT`. + The setters of a URI built by `URI::WHATWG_PARSER` follow the setters of the URL Standard. A value that the URL Standard ignores raises `URI::InvalidComponentError`: ```ruby diff --git a/lib/uri/common.rb b/lib/uri/common.rb index 794c623..45a23a7 100644 --- a/lib/uri/common.rb +++ b/lib/uri/common.rb @@ -51,7 +51,12 @@ module URI # # IDNA uses the Unicode data of the running Ruby, as String#upcase # does, so a domain with a character added in a later version of - # Unicode than RbConfig::CONFIG["UNICODE_VERSION"] is invalid. + # Unicode than RbConfig::CONFIG["UNICODE_VERSION"], or than that of the + # data bundled for IDNA, is invalid. + # + # As ftp, mailto and ldap URLs become URI::Generic, code that relies on + # URI::FTP, URI::MailTo or URI::LDAP, such as URI.open of open-uri for + # ftp, does not work for them. # # The setters of a URI it builds follow the setters of the URL # Standard, and raise URI::InvalidComponentError for a value that the