jpmobile 0.0.4 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (192) hide show
  1. data/README.rdoc +227 -0
  2. data/Rakefile +6 -13
  3. data/lib/jpmobile/docomo_guid.rb +42 -0
  4. data/lib/jpmobile/filter.rb +1 -1
  5. data/lib/jpmobile/helpers.rb +2 -1
  6. data/lib/jpmobile/hook_action_controller.rb +12 -0
  7. data/lib/jpmobile/hook_action_view.rb +82 -72
  8. data/lib/jpmobile/{hook_abstract_request.rb → hook_request.rb} +1 -1
  9. data/lib/jpmobile/mobile/au.rb +9 -3
  10. data/lib/jpmobile/mobile/z_display_info_docomo.rb +10 -2
  11. data/lib/jpmobile/mobile/z_ip_addresses_au.rb +1 -26
  12. data/lib/jpmobile/mobile/z_ip_addresses_willcom.rb +2 -4
  13. data/lib/jpmobile/rack/auth.rb +55 -0
  14. data/lib/jpmobile/rack/combined_logger.rb +54 -0
  15. data/lib/jpmobile/rack/request.rb +7 -0
  16. data/lib/jpmobile/rack/trans_sid.rb +14 -0
  17. data/lib/jpmobile/trans_sid.rb +70 -62
  18. data/lib/jpmobile/version.rb +1 -1
  19. data/test/{au_test.rb → legacy/au_test.rb} +0 -0
  20. data/test/{autoload_test.rb → legacy/autoload_test.rb} +0 -0
  21. data/test/{docomo_test.rb → legacy/docomo_test.rb} +0 -0
  22. data/test/{emoticon_functional_test.rb → legacy/emoticon_functional_test.rb} +1 -1
  23. data/test/{emoticon_test.rb → legacy/emoticon_test.rb} +0 -0
  24. data/test/{filter_test.rb → legacy/filter_test.rb} +0 -0
  25. data/test/{helper.rb → legacy/helper.rb} +4 -5
  26. data/test/{helpers_test.rb → legacy/helpers_test.rb} +1 -1
  27. data/test/{softbank_test.rb → legacy/softbank_test.rb} +0 -0
  28. data/test/{willcom_test.rb → legacy/willcom_test.rb} +0 -0
  29. data/test/rails/overrides/app/controllers/application.rb +5 -0
  30. data/test/rails/overrides/app/controllers/docomo_guid_controller.rb +13 -0
  31. data/test/rails/overrides/app/controllers/filter_controller.rb +26 -0
  32. data/test/rails/overrides/app/controllers/mobile_spec_controller.rb +5 -0
  33. data/test/rails/overrides/app/controllers/template_path_controller.rb +6 -0
  34. data/test/rails/overrides/app/controllers/trans_sid_controller.rb +28 -0
  35. data/test/rails/overrides/app/views/filter/index.html.erb +0 -0
  36. data/test/rails/overrides/app/views/hankaku_filter/index.html.erb +0 -0
  37. data/test/rails/overrides/app/views/template_path/_partial.html.erb +1 -0
  38. data/test/rails/overrides/app/views/template_path/_partial_mobile.html.erb +1 -0
  39. data/test/rails/overrides/app/views/template_path/_partial_mobile_docomo.html.erb +1 -0
  40. data/test/rails/overrides/app/views/template_path/index.html.erb +1 -0
  41. data/test/rails/overrides/app/views/template_path/index_mobile.html.erb +1 -0
  42. data/test/rails/overrides/app/views/template_path/index_mobile_docomo.html.erb +1 -0
  43. data/test/rails/overrides/app/views/template_path/partial.html.erb +2 -0
  44. data/test/rails/overrides/lib/tasks/rspec.rake +165 -0
  45. data/test/rails/overrides/spec/controllers/docomo_guid_spec.rb +77 -0
  46. data/test/rails/overrides/spec/controllers/docomo_spec.rb +28 -0
  47. data/test/rails/overrides/spec/controllers/emobile_spec.rb +35 -0
  48. data/test/rails/overrides/spec/controllers/filter_spec.rb +157 -0
  49. data/test/rails/overrides/spec/controllers/pc_spec.rb +11 -0
  50. data/test/rails/overrides/spec/controllers/softbank_emulator_spec.rb +40 -0
  51. data/test/rails/overrides/spec/controllers/template_path_spec.rb +115 -0
  52. data/test/rails/overrides/spec/controllers/trans_sid_spec.rb +98 -0
  53. data/test/rails/overrides/spec/helpers/helpers_spec.rb +13 -0
  54. data/test/rails/overrides/spec/rcov.opts +2 -0
  55. data/test/rails/overrides/spec/rspec.rake +165 -0
  56. data/test/rails/overrides/spec/spec.opts +4 -0
  57. data/test/rails/overrides/spec/spec_helper.rb +47 -0
  58. data/test/rails/rails_root/README +256 -0
  59. data/test/rails/rails_root/Rakefile +10 -0
  60. data/test/rails/rails_root/app/controllers/application.rb +5 -0
  61. data/test/rails/rails_root/app/controllers/docomo_guid_controller.rb +13 -0
  62. data/test/rails/rails_root/app/controllers/filter_controller.rb +26 -0
  63. data/test/rails/rails_root/app/controllers/mobile_spec_controller.rb +5 -0
  64. data/test/rails/rails_root/app/controllers/template_path_controller.rb +6 -0
  65. data/test/rails/rails_root/app/controllers/trans_sid_controller.rb +26 -0
  66. data/test/rails/rails_root/app/helpers/application_helper.rb +3 -0
  67. data/test/rails/rails_root/app/views/template_path/index.html.erb +1 -0
  68. data/test/rails/rails_root/app/views/template_path/index_mobile.html.erb +1 -0
  69. data/test/rails/rails_root/app/views/template_path/index_mobile_docomo.html.erb +1 -0
  70. data/test/rails/rails_root/config/boot.rb +109 -0
  71. data/test/rails/rails_root/config/database.yml +22 -0
  72. data/test/rails/rails_root/config/environment.rb +75 -0
  73. data/test/rails/rails_root/config/environments/development.rb +17 -0
  74. data/test/rails/rails_root/config/environments/production.rb +24 -0
  75. data/test/rails/rails_root/config/environments/test.rb +22 -0
  76. data/test/rails/rails_root/config/initializers/inflections.rb +10 -0
  77. data/test/rails/rails_root/config/initializers/mime_types.rb +5 -0
  78. data/test/rails/rails_root/config/initializers/new_rails_defaults.rb +17 -0
  79. data/test/rails/rails_root/config/locales/en.yml +5 -0
  80. data/test/rails/rails_root/config/routes.rb +43 -0
  81. data/test/rails/rails_root/db/development.sqlite3 +0 -0
  82. data/test/rails/rails_root/db/schema.rb +14 -0
  83. data/test/rails/rails_root/db/test.sqlite3 +0 -0
  84. data/test/rails/rails_root/doc/README_FOR_APP +5 -0
  85. data/test/rails/rails_root/lib/tasks/rspec.rake +165 -0
  86. data/test/rails/rails_root/log/development.log +38 -0
  87. data/test/rails/rails_root/log/production.log +0 -0
  88. data/test/rails/rails_root/log/server.log +0 -0
  89. data/test/rails/rails_root/log/test.log +401 -0
  90. data/test/rails/rails_root/public/404.html +30 -0
  91. data/test/rails/rails_root/public/422.html +30 -0
  92. data/test/rails/rails_root/public/500.html +33 -0
  93. data/test/rails/rails_root/public/dispatch.cgi +10 -0
  94. data/test/rails/rails_root/public/dispatch.fcgi +24 -0
  95. data/test/rails/rails_root/public/dispatch.rb +10 -0
  96. data/test/rails/rails_root/public/favicon.ico +0 -0
  97. data/test/rails/rails_root/public/images/rails.png +0 -0
  98. data/test/rails/rails_root/public/index.html +274 -0
  99. data/test/rails/rails_root/public/javascripts/application.js +2 -0
  100. data/test/rails/rails_root/public/javascripts/controls.js +963 -0
  101. data/test/rails/rails_root/public/javascripts/dragdrop.js +973 -0
  102. data/test/rails/rails_root/public/javascripts/effects.js +1128 -0
  103. data/test/rails/rails_root/public/javascripts/prototype.js +4320 -0
  104. data/test/rails/rails_root/public/robots.txt +5 -0
  105. data/test/rails/rails_root/script/about +4 -0
  106. data/test/rails/rails_root/script/console +3 -0
  107. data/test/rails/rails_root/script/dbconsole +3 -0
  108. data/test/rails/rails_root/script/destroy +3 -0
  109. data/test/rails/rails_root/script/generate +3 -0
  110. data/test/rails/rails_root/script/performance/benchmarker +3 -0
  111. data/test/rails/rails_root/script/performance/profiler +3 -0
  112. data/test/rails/rails_root/script/performance/request +3 -0
  113. data/test/rails/rails_root/script/plugin +3 -0
  114. data/test/rails/rails_root/script/process/inspector +3 -0
  115. data/test/rails/rails_root/script/process/reaper +3 -0
  116. data/test/rails/rails_root/script/process/spawner +3 -0
  117. data/test/rails/rails_root/script/runner +3 -0
  118. data/test/rails/rails_root/script/server +3 -0
  119. data/test/rails/rails_root/spec/controllers/docomo_guid_spec.rb +77 -0
  120. data/test/rails/rails_root/spec/controllers/docomo_spec.rb +28 -0
  121. data/test/rails/rails_root/spec/controllers/emobile_spec.rb +35 -0
  122. data/test/rails/rails_root/spec/controllers/filter_spec.rb +157 -0
  123. data/test/rails/rails_root/spec/controllers/pc_spec.rb +11 -0
  124. data/test/rails/rails_root/spec/controllers/softbank_emulator_spec.rb +40 -0
  125. data/test/rails/rails_root/spec/controllers/template_path_spec.rb +85 -0
  126. data/test/rails/rails_root/spec/controllers/trans_sid_spec.rb +96 -0
  127. data/test/rails/rails_root/spec/helpers/helpers_spec.rb +13 -0
  128. data/test/rails/rails_root/spec/rcov.opts +2 -0
  129. data/test/rails/rails_root/spec/rspec.rake +165 -0
  130. data/test/rails/rails_root/spec/spec.opts +4 -0
  131. data/test/rails/rails_root/spec/spec_helper.rb +47 -0
  132. data/test/rails/rails_root/test/performance/browsing_test.rb +9 -0
  133. data/test/rails/rails_root/test/test_helper.rb +38 -0
  134. data/test/rails/rails_root/vendor/plugins/jpmobile/CHANGELOG +7 -0
  135. data/test/rails/rails_root/vendor/plugins/jpmobile/MIT-LICENSE +7 -0
  136. data/{README → test/rails/rails_root/vendor/plugins/jpmobile/README.rdoc} +15 -17
  137. data/test/rails/rails_root/vendor/plugins/jpmobile/Rakefile +116 -0
  138. data/test/rails/rails_root/vendor/plugins/jpmobile/init.rb +3 -0
  139. data/test/rails/rails_root/vendor/plugins/jpmobile/install.rb +1 -0
  140. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile.rb +42 -0
  141. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/datum_conv.rb +72 -0
  142. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/docomo_guid.rb +42 -0
  143. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/email.rb +19 -0
  144. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/emoticon.rb +123 -0
  145. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/emoticon/au.rb +1287 -0
  146. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/emoticon/conversion_table.rb +3908 -0
  147. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/emoticon/docomo.rb +255 -0
  148. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/emoticon/softbank.rb +477 -0
  149. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/emoticon/z_combine.rb +20 -0
  150. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/filter.rb +173 -0
  151. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/helpers.rb +185 -0
  152. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/hook_action_controller.rb +11 -0
  153. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/hook_action_view.rb +142 -0
  154. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/hook_request.rb +13 -0
  155. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/abstract_mobile.rb +73 -0
  156. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/au.rb +97 -0
  157. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/display.rb +33 -0
  158. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/docomo.rb +97 -0
  159. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/emobile.rb +17 -0
  160. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/softbank.rb +110 -0
  161. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/willcom.rb +39 -0
  162. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/z_display_info_docomo.rb +688 -0
  163. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/z_ip_addresses_au.rb +22 -0
  164. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/z_ip_addresses_docomo.rb +12 -0
  165. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/z_ip_addresses_emobile.rb +10 -0
  166. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/z_ip_addresses_softbank.rb +17 -0
  167. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/z_ip_addresses_willcom.rb +117 -0
  168. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/position.rb +67 -0
  169. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/request_with_mobile.rb +44 -0
  170. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/trans_sid.rb +105 -0
  171. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/util.rb +21 -0
  172. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/version.rb +9 -0
  173. data/test/rails/rails_root/vendor/plugins/jpmobile/spec/spec.opts +6 -0
  174. data/test/rails/rails_root/vendor/plugins/jpmobile/spec/spec_helper.rb +36 -0
  175. data/test/rails/rails_root/vendor/plugins/jpmobile/spec/unit/detect_by_email_spec.rb +31 -0
  176. data/test/rails/rails_root/vendor/plugins/jpmobile/spec/unit/detect_by_ua_spec.rb +42 -0
  177. data/test/rails/rails_root/vendor/plugins/jpmobile/spec/unit/is_carrier_spec.rb +93 -0
  178. data/test/rails/rails_root/vendor/plugins/jpmobile/spec/unit/spec_helper.rb +5 -0
  179. data/test/rails/rails_root/vendor/plugins/jpmobile/spec/unit/util_spec.rb +28 -0
  180. data/test/rails/rails_root/vendor/plugins/jpmobile/spec/unit/valid_ip_spec.rb +60 -0
  181. data/test/rails/rails_root/vendor/plugins/jpmobile/tasks/jpmobile_tasks.rake +59 -0
  182. data/test/rails/rails_root/vendor/plugins/jpmobile/tools/emoji/genregexp.rb +47 -0
  183. data/test/rails/rails_root/vendor/plugins/jpmobile/tools/generate_au_emoticon_table.rb +34 -0
  184. data/test/rails/rails_root/vendor/plugins/jpmobile/tools/generate_docomo_emoticon_table.rb +34 -0
  185. data/test/rails/rails_root/vendor/plugins/jpmobile/tools/generate_emoticon_conversion_table.rb +107 -0
  186. data/test/rails/rails_root/vendor/plugins/jpmobile/tools/generate_softbank_emoticon_table.rb +32 -0
  187. data/test/rails/rails_root/vendor/plugins/jpmobile/tools/list_gps_unsupported_au.rb +23 -0
  188. data/test/rails/rails_root/vendor/plugins/jpmobile/tools/update_display_info_docomo.rb +45 -0
  189. data/test/rails/rails_root/vendor/plugins/jpmobile/tools/update_ip_addresses_au.rb +29 -0
  190. data/test/rails/rails_root/vendor/plugins/jpmobile/tools/update_ip_addresses_willcom.rb +17 -0
  191. data/tools/update_ip_addresses_au.rb +15 -5
  192. metadata +188 -22
@@ -0,0 +1,116 @@
1
+ require 'rubygems'
2
+ require 'rake'
3
+ require 'rake/clean'
4
+ require 'rake/testtask'
5
+ require 'rake/packagetask'
6
+ require 'rake/gempackagetask'
7
+ require 'rake/rdoctask'
8
+ require 'rake/contrib/rubyforgepublisher'
9
+ require 'fileutils'
10
+ include FileUtils
11
+ require File.join(File.dirname(__FILE__), 'lib', 'jpmobile', 'version')
12
+
13
+ #
14
+ AUTHOR = "dara"
15
+ EMAIL = "dara@shidara.net"
16
+ DESCRIPTION = "A Rails plugin for Japanese mobile-phones"
17
+ RUBYFORGE_PROJECT = "jpmobile"
18
+ HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
19
+ BIN_FILES = %w( )
20
+
21
+ NAME = "jpmobile"
22
+ REV = File.read(".svn/entries")[/committed-rev="(d+)"/, 1] rescue nil
23
+ VERS = ENV['VERSION'] || (Jpmobile::VERSION::STRING + (REV ? ".#{REV}" : ""))
24
+ CLEAN.include ['**/.*.sw?', '*.gem', '.config']
25
+ RDOC_OPTS = ['--quiet', '--title', "jpmobile documentation",
26
+ "--opname", "index.html",
27
+ "--line-numbers",
28
+ "--main", "README.rdoc",
29
+ "--inline-source"]
30
+
31
+ desc "Packages up jpmobile gem."
32
+ task :default => [:test, :spec]
33
+ task :package => [:clean]
34
+
35
+ desc 'Default: run unit tests.'
36
+ task :default => :test
37
+
38
+
39
+ desc 'Generate documentation for the jpmobile plugin.'
40
+ Rake::RDocTask.new(:rdoc) do |rdoc|
41
+ rdoc.rdoc_dir = 'doc'
42
+ rdoc.title = 'Jpmobile'
43
+ rdoc.options << '--line-numbers' << '--inline-source' << '-c UTF-8'
44
+ rdoc.rdoc_files.include('README.rdoc')
45
+ rdoc.rdoc_files.include('CHANGELOG')
46
+ rdoc.rdoc_files.include('lib/**/*.rb')
47
+ end
48
+
49
+ spec =
50
+ Gem::Specification.new do |s|
51
+ s.name = NAME
52
+ s.version = VERS
53
+ s.platform = Gem::Platform::RUBY
54
+ s.has_rdoc = true
55
+ s.extra_rdoc_files = ["README.rdoc", "CHANGELOG"]
56
+ s.rdoc_options += RDOC_OPTS + ['--exclude', '^(examples|extras)/']
57
+ s.summary = DESCRIPTION
58
+ s.description = DESCRIPTION
59
+ s.author = AUTHOR
60
+ s.email = EMAIL
61
+ s.homepage = HOMEPATH
62
+ s.executables = BIN_FILES
63
+ s.rubyforge_project = RUBYFORGE_PROJECT
64
+ s.bindir = "bin"
65
+ s.require_path = "lib"
66
+
67
+ s.add_runtime_dependency('actionpack', '>=2.2.2')
68
+ s.add_development_dependency('rspec', '>=1.1.12')
69
+ s.add_development_dependency('rspec-rails', '>=1.1.12')
70
+ s.add_development_dependency('rspec-fixture', '>=0.0.2')
71
+
72
+ s.files = %w(README.rdoc CHANGELOG Rakefile) +
73
+ Dir.glob("{bin,doc,test,lib,templates,generator,extras,website,script}/**/*") +
74
+ Dir.glob("ext/**/*.{h,c,rb}") +
75
+ Dir.glob("examples/**/*.rb") +
76
+ Dir.glob("tools/*.rb")
77
+
78
+ # s.extensions = FileList["ext/**/extconf.rb"].to_a
79
+ end
80
+
81
+ Rake::GemPackageTask.new(spec) do |p|
82
+ p.need_tar = true
83
+ p.gem_spec = spec
84
+ end
85
+
86
+ task :install do
87
+ name = "#{NAME}-#{VERS}.gem"
88
+ sh %{rake package}
89
+ sh %{sudo gem install pkg/#{name}}
90
+ end
91
+
92
+ task :uninstall => [:clean] do
93
+ sh %{sudo gem uninstall #{NAME}}
94
+ end
95
+
96
+ desc "Publish the API documentation"
97
+ task :pdoc => [:rdoc] do
98
+ sh "rsync -azv --delete doc/ dara@rubyforge.org:/var/www/gforge-projects/jpmobile/rdoc/"
99
+ end
100
+
101
+ desc "Update misc tables"
102
+ task :update do
103
+ Dir.glob("tools/update_*.rb").each do |path|
104
+ ruby path
105
+ end
106
+ end
107
+
108
+ desc "Release helper"
109
+ task :rel => [:gem] do
110
+ puts "-"*40
111
+ puts "rubyforge add_release #{NAME} #{NAME} #{VERS} pkg/#{NAME}-#{VERS}.gem"
112
+ puts "git tag #{VERS}"
113
+ end
114
+
115
+ task :test => ['test:legacy', 'spec:unit', 'test:rails']
116
+ load 'tasks/jpmobile_tasks.rake'
@@ -0,0 +1,3 @@
1
+ # Include hook code here
2
+
3
+ require 'jpmobile'
@@ -0,0 +1 @@
1
+ # Install hook code here
@@ -0,0 +1,42 @@
1
+ $LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__)))
2
+
3
+ module Jpmobile
4
+ autoload :Email , 'jpmobile/email'
5
+ autoload :Emoticon, 'jpmobile/emoticon'
6
+ autoload :Position, 'jpmobile/position'
7
+ autoload :RequestWithMobile, 'jpmobile/request_with_mobile'
8
+ autoload :Util, 'jpmobile/util'
9
+
10
+ module Mobile
11
+ autoload :Docomo, 'jpmobile/mobile/docomo'
12
+ autoload :Au, 'jpmobile/mobile/au'
13
+ autoload :Softbank, 'jpmobile/mobile/softbank'
14
+ autoload :Vodafone, 'jpmobile/mobile/softbank'
15
+ autoload :Jphone, 'jpmobile/mobile/softbank'
16
+ autoload :Emobile, 'jpmobile/mobile/emobile'
17
+ autoload :Willcom, 'jpmobile/mobile/willcom'
18
+ autoload :Ddipocket, 'jpmobile/mobile/willcom'
19
+
20
+ def self.carriers
21
+ @carriers ||= constants
22
+ end
23
+
24
+ def self.carriers=(ary)
25
+ @carriers = ary
26
+ end
27
+ end
28
+ end
29
+
30
+ %w(
31
+ jpmobile/version.rb
32
+ jpmobile/mobile/abstract_mobile.rb
33
+ jpmobile/mobile/display.rb
34
+ ).each do |lib|
35
+ require File.expand_path(File.join(File.dirname(__FILE__), lib))
36
+ end
37
+
38
+ if defined? RAILS_ENV
39
+ Dir[File.expand_path(File.join(File.dirname(__FILE__), 'jpmobile/*.rb'))].sort.each { |lib|
40
+ require lib
41
+ }
42
+ end
@@ -0,0 +1,72 @@
1
+ # =測地系変換モジュール
2
+ #
3
+ # 参考文献:
4
+ # 飛田幹男, 世界測地系と座標変換--21世紀の測量士・位置情報ユーザ・プログラマーのために,
5
+ # 日本測量協会, 2002.
6
+
7
+ module DatumConv
8
+ GRS80 = [ 6378137, 298.257222101]
9
+ Bessel = [6377397.155, 299.152813]
10
+ Tokyo97toITRF94 = [-146.414, 507.337, 680.507]
11
+ ITRF94toTokyo97 = [ 146.414,-507.337,-680.507]
12
+ Deg2Rad = Math::PI/180
13
+
14
+ # 緯度(度),経度(度),高度(m)を三次元直交座標(m)に変換する。
15
+ def self.blh2xyz(b_deg,l_deg,he,datum)
16
+ a = datum[0].to_f
17
+ f = 1.0/datum[1]
18
+ b = b_deg * Deg2Rad
19
+ l = l_deg * Deg2Rad
20
+
21
+ e2 = f * (2 - f)
22
+ n = a / Math.sqrt(1 - e2 * Math.sin(b)**2 )
23
+
24
+ x = (n+he)*Math.cos(b)*Math.cos(l)
25
+ y = (n+he)*Math.cos(b)*Math.sin(l)
26
+ z = (n*(1-e2)+he)*Math.sin(b)
27
+ return x,y,z
28
+ end
29
+
30
+ # 三次元直交座標(m)を緯度(度),経度(度),高度(m)に変換する。
31
+ def self.xyz2blh(x,y,z,datum)
32
+ a = datum[0].to_f
33
+ f = 1.0/datum[1]
34
+ e2 = f * (2 - f)
35
+ l = Math.atan2(y,x)
36
+
37
+ p = Math.sqrt(x**2+y**2)
38
+ r = Math.sqrt(p**2+z**2)
39
+ u = Math.atan2(z*((1-f)+e2*a/r),p)
40
+ b = Math.atan2(z*(1-f)+e2*a*Math.sin(u)**3,(1-f)*(p-e2*a*Math.cos(u)**3))
41
+
42
+ he = p*Math.cos(b) + z*Math.sin(b) - a*Math.sqrt(1-e2*Math.sin(b)**2)
43
+
44
+ b_deg = b / Deg2Rad
45
+ l_deg = l / Deg2Rad
46
+ return b_deg,l_deg,he
47
+ end
48
+
49
+ # 三次元直交座標でシフトする。
50
+ def self.xyz2xyz(x,y,z,d)
51
+ return x+d[0],y+d[1],z+d[2]
52
+ end
53
+
54
+ # 日本測地系から世界測地系に変換する。
55
+ def self.tky2jgd(b,l,he=0)
56
+ x,y,z = blh2xyz(b,l,he,Bessel)
57
+ x,y,z = xyz2xyz(x,y,z,Tokyo97toITRF94)
58
+ b,l,he = xyz2blh(x,y,z,GRS80)
59
+ return b,l,he
60
+ end
61
+
62
+ # 世界測地系から日本測地系に変換する。
63
+ def self.jgd2tky(b,l,he=0)
64
+ x,y,z = blh2xyz(b,l,he,GRS80)
65
+ x,y,z = xyz2xyz(x,y,z,ITRF94toTokyo97)
66
+ b,l,he = xyz2blh(x,y,z,Bessel)
67
+ return b,l,he
68
+ end
69
+ end
70
+
71
+ #DatumConv.tky2jgd(b,l)
72
+ #DatumConv.jgd2tky(b,l)
@@ -0,0 +1,42 @@
1
+ #DoCoMoの時guid=onの付与
2
+ class ActionController::Base #:nodoc:
3
+ class_inheritable_accessor :docomo_guid_mode
4
+
5
+ class << self
6
+ def docomo_guid(mode=:docomo)
7
+ include Jpmobile::DocomoGuid
8
+ self.docomo_guid_mode = mode
9
+ end
10
+ end
11
+ end
12
+
13
+
14
+ module Jpmobile::DocomoGuid #:nodoc:
15
+ protected
16
+ def default_url_options options=nil
17
+ result = super || {}
18
+ return result unless request # for test process
19
+ return result unless apply_add_guid?
20
+ return result.merge({:guid => "ON"})
21
+ end
22
+
23
+ #guid=ONを付与すべきか否かを返す
24
+ def apply_add_guid?
25
+ return true if docomo_guid_mode == :always
26
+ return false if docomo_guid_mode == :none
27
+
28
+ return false unless request.mobile?
29
+ return false unless request.mobile.is_a?(Jpmobile::Mobile::Docomo)
30
+ return false if not_apply_guid_user_agent?
31
+
32
+ if docomo_guid_mode == :valid_ip
33
+ return false unless request.mobile.valid_ip?
34
+ end
35
+
36
+ return true
37
+ end
38
+
39
+ def not_apply_guid_user_agent?
40
+ request.user_agent.match(/(?:Googlebot|Y!J-SRD\/1\.0|Y!J-MBS\/1\.0)/)
41
+ end
42
+ end
@@ -0,0 +1,19 @@
1
+ # =メールアドレスモジュール
2
+ #
3
+ module Jpmobile
4
+ # email関連の処理
5
+ module Email
6
+
7
+ # メールアドレスよりキャリア情報を取得する
8
+ # _param1_:: email メールアドレス
9
+ # return :: Jpmobile::Mobileで定義されている携帯キャリアクラス
10
+ def self.detect(email)
11
+ Jpmobile::Mobile.carriers.each do |const|
12
+ c = Jpmobile::Mobile.const_get(const)
13
+ return c if c::MAIL_ADDRESS_REGEXP && email =~ c::MAIL_ADDRESS_REGEXP
14
+ end
15
+ nil
16
+ end
17
+
18
+ end
19
+ end
@@ -0,0 +1,123 @@
1
+ module Jpmobile
2
+ # 絵文字関連処理
3
+ module Emoticon
4
+ %w( DOCOMO_SJIS_TO_UNICODE DOCOMO_UNICODE_TO_SJIS ).each do |const|
5
+ autoload const, 'jpmobile/emoticon/docomo'
6
+ end
7
+ autoload :AU_SJIS_TO_UNICODE, 'jpmobile/emoticon/au'
8
+ %w( SOFTBANK_UNICODE_TO_WEBCODE SOFTBANK_WEBCODE_TO_UNICODE ).each do |const|
9
+ autoload const, 'jpmobile/emoticon/softbank'
10
+ end
11
+ %w( CONVERSION_TABLE_TO_DOCOMO CONVERSION_TABLE_TO_AU CONVERSION_TABLE_TO_SOFTBANK ).each do |const|
12
+ autoload const, 'jpmobile/emoticon/conversion_table'
13
+ end
14
+ %w(
15
+ SJIS_TO_UNICODE UNICODE_TO_SJIS
16
+ SJIS_REGEXP SOFTBANK_WEBCODE_REGEXP DOCOMO_SJIS_REGEXP AU_SJIS_REGEXP SOFTBANK_UNICODE_REGEXP
17
+ EMOTICON_UNICODES UTF8_REGEXP
18
+ ).each do |const|
19
+ autoload const, 'jpmobile/emoticon/z_combine'
20
+ end
21
+
22
+ # +str+ のなかでDoCoMo絵文字をUnicode数値文字参照に置換した文字列を返す。
23
+ def self.external_to_unicodecr_docomo(str)
24
+ str.gsub(DOCOMO_SJIS_REGEXP) do |match|
25
+ sjis = match.unpack('n').first
26
+ unicode = DOCOMO_SJIS_TO_UNICODE[sjis]
27
+ unicode ? ("&#x%04x;"%unicode) : match
28
+ end
29
+ end
30
+
31
+ # +str+ のなかでDoCoMo絵文字をUnicode数値文字参照に置換した文字列を返す。
32
+ def self.external_to_unicodecr_au(str)
33
+ str.gsub(AU_SJIS_REGEXP) do |match|
34
+ sjis = match.unpack('n').first
35
+ unicode = AU_SJIS_TO_UNICODE[sjis]
36
+ unicode ? ("&#x%04x;"%unicode) : match
37
+ end
38
+ end
39
+
40
+ # +str+のなかでUTF8のSoftBank絵文字を(+0x1000だけシフトして)Unicode数値文字参照に変換した文字列を返す。
41
+ def self.external_to_unicodecr_softbank(str)
42
+ # SoftBank Unicode
43
+ str.gsub(SOFTBANK_UNICODE_REGEXP) do |match|
44
+ unicode = match.unpack('U').first
45
+ "&#x%04x;" % (unicode+0x1000)
46
+ end
47
+ end
48
+ def self.external_to_unicodecr_vodafone(str)
49
+ external_to_unicodecr_softbank(str)
50
+ end
51
+ # +str+のなかでWebcodeのSoftBank絵文字を(+0x1000だけシフトして)Unicode数値文字参照に変換した文字列を返す。
52
+ def self.external_to_unicodecr_jphone(str)
53
+ # SoftBank Webcode
54
+ s = str.clone
55
+ # 連続したエスケープコードが省略されている場合は切りはなす。
56
+ s.gsub!(/\x1b\x24(.)(.+?)\x0f/) do |match|
57
+ a = $1
58
+ $2.split(//).map{|x| "\x1b\x24#{a}#{x}\x0f"}.join('')
59
+ end
60
+ # Webcodeを変換
61
+ s.gsub(SOFTBANK_WEBCODE_REGEXP) do |match|
62
+ unicode = SOFTBANK_WEBCODE_TO_UNICODE[match[2,2]] + 0x1000
63
+ unicode ? ("&#x%04x;"%unicode) : match
64
+ end
65
+ end
66
+
67
+ # +str+ のなかでUnicode数値文字参照で表記された絵文字を携帯側エンコーディングに置換する。
68
+ #
69
+ # キャリア間の変換に +conversion_table+ を使う。+conversion_table+ に+nil+を与えると、
70
+ # キャリア間の変換は行わない。
71
+ #
72
+ # 携帯側エンコーディングがShift_JIS場合は +to_sjis+ に +true+ を指定する。
73
+ # +true+ を指定すると変換テーブルに文字列が指定されている場合にShift_JISで出力される。
74
+ def self.unicodecr_to_external(str, conversion_table=nil, to_sjis=true)
75
+ str.gsub(/&#x([0-9a-f]{4});/i) do |match|
76
+ unicode = $1.scanf("%x").first
77
+ if conversion_table
78
+ converted = conversion_table[unicode] # キャリア間変換
79
+ else
80
+ converted = unicode # 変換しない
81
+ end
82
+
83
+ # 携帯側エンコーディングに変換する
84
+ case converted
85
+ when Integer
86
+ # 変換先がUnicodeで指定されている。つまり対応する絵文字がある。
87
+ if sjis = UNICODE_TO_SJIS[converted]
88
+ [sjis].pack('n')
89
+ elsif webcode = SOFTBANK_UNICODE_TO_WEBCODE[converted-0x1000]
90
+ "\x1b\x24#{webcode}\x0f"
91
+ else
92
+ # キャリア変換テーブルに指定されていたUnicodeに対応する
93
+ # 携帯側エンコーディングが見つからない(変換テーブルの不備の可能性あり)。
94
+ match
95
+ end
96
+ when String
97
+ # 変換先がUnicodeで指定されている。
98
+ to_sjis ? Kconv::kconv(converted, Kconv::SJIS, Kconv::UTF8) : converted
99
+ when nil
100
+ # 変換先が定義されていない。
101
+ match
102
+ end
103
+ end
104
+ end
105
+ # +str+ のなかでUnicode数値文字参照で表記された絵文字をUTF-8に置換する。
106
+ def self.unicodecr_to_utf8(str)
107
+ str.gsub(/&#x([0-9a-f]{4});/i) do |match|
108
+ unicode = $1.scanf("%x").first
109
+ if UNICODE_TO_SJIS[unicode] || SOFTBANK_UNICODE_TO_WEBCODE[unicode-0x1000]
110
+ [unicode].pack('U')
111
+ else
112
+ match
113
+ end
114
+ end
115
+ end
116
+ # +str+ のなかでUTF-8で表記された絵文字をUnicode数値文字参照に置換する。
117
+ def self.utf8_to_unicodecr(str)
118
+ str.gsub(UTF8_REGEXP) do |match|
119
+ "&#x%04x;" % match.unpack('U').first
120
+ end
121
+ end
122
+ end
123
+ end
@@ -0,0 +1,1287 @@
1
+ Jpmobile::Emoticon::AU_SJIS_TO_UNICODE = {
2
+ 0xF659=>0xE481,
3
+ 0xF75E=>0xE542,
4
+ 0xF65A=>0xE482,
5
+ 0xF75F=>0xE543,
6
+ 0xF65B=>0xE483,
7
+ 0xF760=>0xE544,
8
+ 0xF748=>0xE52C,
9
+ 0xF761=>0xE545,
10
+ 0xF749=>0xE52D,
11
+ 0xF762=>0xE546,
12
+ 0xF74A=>0xE52E,
13
+ 0xF763=>0xE547,
14
+ 0xF74B=>0xE52F,
15
+ 0xF764=>0xE548,
16
+ 0xF74C=>0xE530,
17
+ 0xF765=>0xE549,
18
+ 0xF74D=>0xE531,
19
+ 0xF766=>0xE54A,
20
+ 0xF74E=>0xE532,
21
+ 0xF767=>0xE54B,
22
+ 0xF74F=>0xE533,
23
+ 0xF768=>0xE54C,
24
+ 0xF69A=>0xE4C1,
25
+ 0xF769=>0xE54D,
26
+ 0xF6EA=>0xE511,
27
+ 0xF660=>0xE488,
28
+ 0xF796=>0xE579,
29
+ 0xF693=>0xE4BA,
30
+ 0xF65E=>0xE486,
31
+ 0xF7B1=>0xE594,
32
+ 0xF65F=>0xE487,
33
+ 0xF661=>0xE489,
34
+ 0xF750=>0xE534,
35
+ 0xF6EB=>0xE512,
36
+ 0xF751=>0xE535,
37
+ 0xF77C=>0xE560,
38
+ 0xF752=>0xE536,
39
+ 0xF6D3=>0xE4FA,
40
+ 0xF753=>0xE537,
41
+ 0xF7B2=>0xE595,
42
+ 0xF754=>0xE538,
43
+ 0xF69B=>0xE4C2,
44
+ 0xF755=>0xE539,
45
+ 0xF6EC=>0xE513,
46
+ 0xF756=>0xE53A,
47
+ 0xF76A=>0xE54E,
48
+ 0xF757=>0xE53B,
49
+ 0xF76B=>0xE54F,
50
+ 0xF797=>0xE57A,
51
+ 0xF77D=>0xE561,
52
+ 0xF758=>0xE53C,
53
+ 0xF798=>0xE57B,
54
+ 0xF759=>0xE53D,
55
+ 0xF654=>0xE47C,
56
+ 0xF75A=>0xE53E,
57
+ 0xF77E=>0xE562,
58
+ 0xF75B=>0xE53F,
59
+ 0xF662=>0xE48A,
60
+ 0xF75C=>0xE540,
61
+ 0xF76C=>0xE550,
62
+ 0xF75D=>0xE541,
63
+ 0xF76D=>0xE551,
64
+ 0xF76E=>0xE552,
65
+ 0xF6EE=>0xE515,
66
+ 0xF76F=>0xE553,
67
+ 0xF664=>0xE48C,
68
+ 0xF69C=>0xE4C3,
69
+ 0xF694=>0xE4BB,
70
+ 0xF770=>0xE554,
71
+ 0xF782=>0xE565,
72
+ 0xF780=>0xE563,
73
+ 0xF65C=>0xE484,
74
+ 0xF6D4=>0xE4FB,
75
+ 0xF642=>0xE46A,
76
+ 0xF663=>0xE48B,
77
+ 0xF783=>0xE566,
78
+ 0xF771=>0xE555,
79
+ 0xF784=>0xE567,
80
+ 0xF772=>0xE556,
81
+ 0xF785=>0xE568,
82
+ 0xF6ED=>0xE514,
83
+ 0xF786=>0xE569,
84
+ 0xF773=>0xE557,
85
+ 0xF6EF=>0xE516,
86
+ 0xF6B8=>0xE4DF,
87
+ 0xF787=>0xE56A,
88
+ 0xF640=>0xE468,
89
+ 0xF676=>0xE49E,
90
+ 0xF644=>0xE46C,
91
+ 0xF665=>0xE48D,
92
+ 0xF64E=>0xE476,
93
+ 0xF6FA=>0xE521,
94
+ 0xF6B9=>0xE4E0,
95
+ 0xF79A=>0xE57D,
96
+ 0xF7AC=>0xE58F,
97
+ 0xF6F0=>0xE517,
98
+ 0xF6D5=>0xE4FC,
99
+ 0xF79B=>0xE57E,
100
+ 0xF774=>0xE558,
101
+ 0xF684=>0xE4AB,
102
+ 0xF775=>0xE559,
103
+ 0xF6BD=>0xE4E4,
104
+ 0xF674=>0xE49C,
105
+ 0xF79C=>0xE57F,
106
+ 0xF7AD=>0xE590,
107
+ 0xF79D=>0xE580,
108
+ 0xF7B3=>0xE596,
109
+ 0xF6D7=>0xE4FE,
110
+ 0xF6D6=>0xE4FD,
111
+ 0xF778=>0xE55C,
112
+ 0xF799=>0xE57C,
113
+ 0xF779=>0xE55D,
114
+ 0xF776=>0xE55A,
115
+ 0xF6F1=>0xE518,
116
+ 0xF777=>0xE55B,
117
+ 0xF6F2=>0xE519,
118
+ 0xF790=>0xE573,
119
+ 0xF788=>0xE56B,
120
+ 0xF675=>0xE49D,
121
+ 0xF677=>0xE49F,
122
+ 0xF781=>0xE564,
123
+ 0xF79E=>0xE581,
124
+ 0xF7B4=>0xE597,
125
+ 0xF6F3=>0xE51A,
126
+ 0xF68A=>0xE4B1,
127
+ 0xF686=>0xE4AD,
128
+ 0xF79F=>0xE582,
129
+ 0xF78D=>0xE570,
130
+ 0xF791=>0xE574,
131
+ 0xF67A=>0xE4A2,
132
+ 0xF792=>0xE575,
133
+ 0xF793=>0xE576,
134
+ 0xF6F4=>0xE51B,
135
+ 0xF69D=>0xE4C4,
136
+ 0xF7A0=>0xE583,
137
+ 0xF7A5=>0xE588,
138
+ 0xF789=>0xE56C,
139
+ 0xF7A6=>0xE589,
140
+ 0xF77A=>0xE55E,
141
+ 0xF6DA=>0xE501,
142
+ 0xF6A7=>0xE4CE,
143
+ 0xF7A7=>0xE58A,
144
+ 0xF6BA=>0xE4E1,
145
+ 0xF6F8=>0xE51F,
146
+ 0xF7A1=>0xE584,
147
+ 0xF6F9=>0xE520,
148
+ 0xF77B=>0xE55F,
149
+ 0xF666=>0xE48E,
150
+ 0xF78A=>0xE56D,
151
+ 0xF68C=>0xE4B3,
152
+ 0xF6F5=>0xE51C,
153
+ 0xF68D=>0xE4B4,
154
+ 0xF7A2=>0xE585,
155
+ 0xF6A1=>0xE4C8,
156
+ 0xF6D8=>0xE4FF,
157
+ 0xF7A8=>0xE58B,
158
+ 0xF6D9=>0xE500,
159
+ 0xF68E=>0xE4B5,
160
+ 0xF78B=>0xE56E,
161
+ 0xF7A9=>0xE58C,
162
+ 0xF678=>0xE4A0,
163
+ 0xF7AA=>0xE58D,
164
+ 0xF6A8=>0xE4CF,
165
+ 0xF7AB=>0xE58E,
166
+ 0xF6F6=>0xE51D,
167
+ 0xF655=>0xE47D,
168
+ 0xF685=>0xE4AC,
169
+ 0xF656=>0xE47E,
170
+ 0xF78C=>0xE56F,
171
+ 0xF657=>0xE47F,
172
+ 0xF68B=>0xE4B2,
173
+ 0xF658=>0xE480,
174
+ 0xF679=>0xE4A1,
175
+ 0xF6FB=>0xE522,
176
+ 0xF7A3=>0xE586,
177
+ 0xF6FC=>0xE523,
178
+ 0xF7AE=>0xE591,
179
+ 0xF740=>0xE524,
180
+ 0xF7A4=>0xE587,
181
+ 0xF741=>0xE525,
182
+ 0xF7AF=>0xE592,
183
+ 0xF742=>0xE526,
184
+ 0xF7B0=>0xE593,
185
+ 0xF743=>0xE527,
186
+ 0xF6F7=>0xE51E,
187
+ 0xF744=>0xE528,
188
+ 0xF745=>0xE529,
189
+ 0xF643=>0xE46B,
190
+ 0xF746=>0xE52A,
191
+ 0xF68F=>0xE4B6,
192
+ 0xF747=>0xE52B,
193
+ 0xF690=>0xE4B7,
194
+ 0xF641=>0xE469,
195
+ 0xF691=>0xE4B8,
196
+ 0xF65D=>0xE485,
197
+ 0xF692=>0xE4B9,
198
+ 0xF667=>0xE48F,
199
+ 0xF645=>0xE46D,
200
+ 0xF668=>0xE490,
201
+ 0xF695=>0xE4BC,
202
+ 0xF669=>0xE491,
203
+ 0xF696=>0xE4BD,
204
+ 0xF66A=>0xE492,
205
+ 0xF697=>0xE4BE,
206
+ 0xF66B=>0xE493,
207
+ 0xF698=>0xE4BF,
208
+ 0xF66C=>0xE494,
209
+ 0xF699=>0xE4C0,
210
+ 0xF66D=>0xE495,
211
+ 0xF646=>0xE46E,
212
+ 0xF66E=>0xE496,
213
+ 0xF647=>0xE46F,
214
+ 0xF66F=>0xE497,
215
+ 0xF69E=>0xE4C5,
216
+ 0xF670=>0xE498,
217
+ 0xF69F=>0xE4C6,
218
+ 0xF671=>0xE499,
219
+ 0xF6A0=>0xE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E473,
271
+ 0xF6DD=>0xE504,
272
+ 0xF64C=>0xE474,
273
+ 0xF6DE=>0xE505,
274
+ 0xF64D=>0xE475,
275
+ 0xF6DF=>0xE506,
276
+ 0xF6BE=>0xE4E5,
277
+ 0xF6E0=>0xE507,
278
+ 0xF6BF=>0xE4E6,
279
+ 0xF6E1=>0xE508,
280
+ 0xF6C0=>0xE4E7,
281
+ 0xF6E2=>0xE509,
282
+ 0xF64F=>0xE477,
283
+ 0xF6E3=>0xE50A,
284
+ 0xF650=>0xE478,
285
+ 0xF6E4=>0xE50B,
286
+ 0xF651=>0xE479,
287
+ 0xF794=>0xE577,
288
+ 0xF652=>0xE47A,
289
+ 0xF795=>0xE578,
290
+ 0xF653=>0xE47B,
291
+ 0xF6E5=>0xE50C,
292
+ 0xF6C1=>0xE4E8,
293
+ 0xF6E6=>0xE50D,
294
+ 0xF6C2=>0xE4E9,
295
+ 0xF6E7=>0xE50E,
296
+ 0xF6C3=>0xE4EA,
297
+ 0xF6E8=>0xE50F,
298
+ 0xF6C4=>0xE4EB,
299
+ 0xF6E9=>0xE510,
300
+ 0xF6C5=>0xE4EC,
301
+ 0xF7B5=>0xE598,
302
+ 0xF6C6=>0xE4ED,
303
+ 0xF7B6=>0xE599,
304
+ 0xF6C7=>0xE4EE,
305
+ 0xF7B7=>0xE59A,
306
+ 0xF6C8=>0xE4EF,
307
+ 0xF7B8=>0xE59B,
308
+ 0xF6C9=>0xE4F0,
309
+ 0xF7B9=>0xE59C,
310
+ 0xF6CA=>0xE4F1,
311
+ 0xF7BA=>0xE59D,
312
+ 0xF7BB=>0xE59E,
313
+ 0xF7ED=>0xE5BD,
314
+ 0xF7BC=>0xE59F,
315
+ 0xF7EE=>0xE5BE,
316
+ 0xF7BD=>0xE5A0,
317
+ 0xF7EF=>0xE5BF,
318
+ 0xF7BE=>0xE5A1,
319
+ 0xF7F0=>0xE5C0,
320
+ 0xF7BF=>0xE5A2,
321
+ 0xF7F1=>0xE5C1,
322
+ 0xF7C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7EC=>0xE5BC,
373
+ 0xF34E=>0xE5DB,
374
+ 0xF34F=>0xE5DC,
375
+ 0xF36E=>0xEA9B,
376
+ 0xF350=>0xE5DD,
377
+ 0xF36F=>0xEA9C,
378
+ 0xF351=>0xE5DE,
379
+ 0xF370=>0xEA9D,
380
+ 0xF352=>0xE5DF,
381
+ 0xF371=>0xEA9E,
382
+ 0xF353=>0xEA80,
383
+ 0xF372=>0xEA9F,
384
+ 0xF354=>0xEA81,
385
+ 0xF373=>0xEAA0,
386
+ 0xF355=>0xEA82,
387
+ 0xF374=>0xEAA1,
388
+ 0xF356=>0xEA83,
389
+ 0xF375=>0xEAA2,
390
+ 0xF357=>0xEA84,
391
+ 0xF376=>0xEAA3,
392
+ 0xF358=>0xEA85,
393
+ 0xF377=>0xEAA4,
394
+ 0xF359=>0xEA86,
395
+ 0xF378=>0xEAA5,
396
+ 0xF35A=>0xEA87,
397
+ 0xF379=>0xEAA6,
398
+ 0xF35B=>0xEA88,
399
+ 0xF37A=>0xEAA7,
400
+ 0xF35C=>0xEA89,
401
+ 0xF37B=>0xEAA8,
402
+ 0xF35D=>0xEA8A,
403
+ 0xF37C=>0xEAA9,
404
+ 0xF35E=>0xEA8B,
405
+ 0xF37D=>0xEAAA,
406
+ 0xF35F=>0xEA8C,
407
+ 0xF37E=>0xEAAB,
408
+ 0xF360=>0xEA8D,
409
+ 0xF380=>0xEAAC,
410
+ 0xF361=>0xEA8E,
411
+ 0xF381=>0xEAAD,
412
+ 0xF362=>0xEA8F,
413
+ 0xF382=>0xEAAE,
414
+ 0xF363=>0xEA90,
415
+ 0xF383=>0xEAAF,
416
+ 0xF364=>0xEA91,
417
+ 0xF384=>0xEAB0,
418
+ 0xF365=>0xEA92,
419
+ 0xF385=>0xEAB1,
420
+ 0xF366=>0xEA93,
421
+ 0xF386=>0xEAB2,
422
+ 0xF367=>0xEA94,
423
+ 0xF387=>0xEAB3,
424
+ 0xF368=>0xEA95,
425
+ 0xF388=>0xEAB4,
426
+ 0xF369=>0xEA96,
427
+ 0xF389=>0xEAB5,
428
+ 0xF36A=>0xEA97,
429
+ 0xF38A=>0xEAB6,
430
+ 0xF36B=>0xEA98,
431
+ 0xF38B=>0xEAB7,
432
+ 0xF36C=>0xEA99,
433
+ 0xF38C=>0xEAB8,
434
+ 0xF36D=>0xEA9A,
435
+ 0xF38D=>0xEAB9,
436
+ 0xF38E=>0xEABA,
437
+ 0xF3AD=>0xEAD9,
438
+ 0xF38F=>0xEABB,
439
+ 0xF3AE=>0xEADA,
440
+ 0xF390=>0xEABC,
441
+ 0xF3AF=>0xEADB,
442
+ 0xF391=>0xEABD,
443
+ 0xF3B0=>0xEADC,
444
+ 0xF392=>0xEABE,
445
+ 0xF3B1=>0xEADD,
446
+ 0xF393=>0xEABF,
447
+ 0xF3B2=>0xEADE,
448
+ 0xF394=>0xEAC0,
449
+ 0xF3B3=>0xEADF,
450
+ 0xF395=>0xEAC1,
451
+ 0xF3B4=>0xEAE0,
452
+ 0xF396=>0xEAC2,
453
+ 0xF3B5=>0xEAE1,
454
+ 0xF397=>0xEAC3,
455
+ 0xF3B6=>0xEAE2,
456
+ 0xF398=>0xEAC4,
457
+ 0xF3B7=>0xEAE3,
458
+ 0xF399=>0xEAC5,
459
+ 0xF3B8=>0xEAE4,
460
+ 0xF39A=>0xEAC6,
461
+ 0xF3B9=>0xEAE5,
462
+ 0xF39B=>0xEAC7,
463
+ 0xF3BA=>0xEAE6,
464
+ 0xF39C=>0xEAC8,
465
+ 0xF3BB=>0xEAE7,
466
+ 0xF39D=>0xEAC9,
467
+ 0xF3BC=>0xEAE8,
468
+ 0xF39E=>0xEACA,
469
+ 0xF3BD=>0xEAE9,
470
+ 0xF39F=>0xEACB,
471
+ 0xF3BE=>0xEAEA,
472
+ 0xF3A0=>0xEACC,
473
+ 0xF3BF=>0xEAEB,
474
+ 0xF3A1=>0xEACD,
475
+ 0xF3C0=>0xEAEC,
476
+ 0xF3A2=>0xEACE,
477
+ 0xF3C1=>0xEAED,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0xEB3F,
579
+ 0xF462=>0xEB5E,
580
+ 0xF444=>0xEB40,
581
+ 0xF463=>0xEB5F,
582
+ 0xF445=>0xEB41,
583
+ 0xF464=>0xEB60,
584
+ 0xF446=>0xEB42,
585
+ 0xF465=>0xEB61,
586
+ 0xF447=>0xEB43,
587
+ 0xF466=>0xEB62,
588
+ 0xF448=>0xEB44,
589
+ 0xF467=>0xEB63,
590
+ 0xF449=>0xEB45,
591
+ 0xF468=>0xEB64,
592
+ 0xF44A=>0xEB46,
593
+ 0xF469=>0xEB65,
594
+ 0xF44B=>0xEB47,
595
+ 0xF46A=>0xEB66,
596
+ 0xF44C=>0xEB48,
597
+ 0xF46B=>0xEB67,
598
+ 0xF44D=>0xEB49,
599
+ 0xF46C=>0xEB68,
600
+ 0xF44E=>0xEB4A,
601
+ 0xF46D=>0xEB69,
602
+ 0xF44F=>0xEB4B,
603
+ 0xF46E=>0xEB6A,
604
+ 0xF450=>0xEB4C,
605
+ 0xF46F=>0xEB6B,
606
+ 0xF451=>0xEB4D,
607
+ 0xF470=>0xEB6C,
608
+ 0xF452=>0xEB4E,
609
+ 0xF471=>0xEB6D,
610
+ 0xF453=>0xEB4F,
611
+ 0xF472=>0xEB6E,
612
+ 0xF454=>0xEB50,
613
+ 0xF473=>0xEB6F,
614
+ 0xF455=>0xEB51,
615
+ 0xF474=>0xEB70,
616
+ 0xF456=>0xEB52,
617
+ 0xF475=>0xEB71,
618
+ 0xF457=>0xEB53,
619
+ 0xF476=>0xEB72,
620
+ 0xF458=>0xEB54,
621
+ 0xF477=>0xEB73,
622
+ 0xF478=>0xEB74,
623
+ 0xF479=>0xEB75,
624
+ 0xF47A=>0xEB76,
625
+ 0xF47B=>0xEB77,
626
+ 0xF47C=>0xEB78,
627
+ 0xF47D=>0xEB79,
628
+ 0xF47E=>0xEB7A,
629
+ 0xF480=>0xEB7B,
630
+ 0xF481=>0xEB7C,
631
+ 0xF482=>0xEB7D,
632
+ 0xF483=>0xEB7E,
633
+ 0xF484=>0xEB7F,
634
+ 0xF485=>0xEB80,
635
+ 0xF486=>0xEB81,
636
+ 0xF487=>0xEB82,
637
+ 0xF488=>0xEB83,
638
+ 0xF489=>0xEB84,
639
+ 0xF48A=>0xEB85,
640
+ 0xF48B=>0xEB86,
641
+ 0xF48C=>0xEB87,
642
+ 0xF48D=>0xEB88,
643
+ }.freeze
644
+ Jpmobile::Emoticon::AU_UNICODE_TO_SJIS = Jpmobile::Emoticon::AU_SJIS_TO_UNICODE.invert.freeze
645
+ Jpmobile::Emoticon::AU_EMAILJIS_TO_UNICODE = {
646
+ 0x753A=>0xE481,
647
+ 0x773F=>0xE542,
648
+ 0x753B=>0xE482,
649
+ 0x7740=>0xE543,
650
+ 0x753C=>0xE483,
651
+ 0x7741=>0xE544,
652
+ 0x7729=>0xE52C,
653
+ 0x7742=>0xE545,
654
+ 0x772A=>0xE52D,
655
+ 0x7743=>0xE546,
656
+ 0x772B=>0xE52E,
657
+ 0x7744=>0xE547,
658
+ 0x772C=>0xE52F,
659
+ 0x7745=>0xE548,
660
+ 0x772D=>0xE530,
661
+ 0x7746=>0xE549,
662
+ 0x772E=>0xE531,
663
+ 0x7747=>0xE54A,
664
+ 0x772F=>0xE532,
665
+ 0x7748=>0xE54B,
666
+ 0x7730=>0xE533,
667
+ 0x7749=>0xE54C,
668
+ 0x757A=>0xE4C1,
669
+ 0x774A=>0xE54D,
670
+ 0x766C=>0xE511,
671
+ 0x7541=>0xE488,
672
+ 0x7776=>0xE579,
673
+ 0x7573=>0xE4BA,
674
+ 0x753F=>0xE486,
675
+ 0x7833=>0xE594,
676
+ 0x7540=>0xE487,
677
+ 0x7542=>0xE489,
678
+ 0x7731=>0xE534,
679
+ 0x766D=>0xE512,
680
+ 0x7732=>0xE535,
681
+ 0x775D=>0xE560,
682
+ 0x7733=>0xE536,
683
+ 0x7655=>0xE4FA,
684
+ 0x7734=>0xE537,
685
+ 0x7834=>0xE595,
686
+ 0x7735=>0xE538,
687
+ 0x757B=>0xE4C2,
688
+ 0x7736=>0xE539,
689
+ 0x766E=>0xE513,
690
+ 0x7737=>0xE53A,
691
+ 0x774B=>0xE54E,
692
+ 0x7738=>0xE53B,
693
+ 0x774C=>0xE54F,
694
+ 0x7777=>0xE57A,
695
+ 0x775E=>0xE561,
696
+ 0x7739=>0xE53C,
697
+ 0x7778=>0xE57B,
698
+ 0x773A=>0xE53D,
699
+ 0x7535=>0xE47C,
700
+ 0x773B=>0xE53E,
701
+ 0x775F=>0xE562,
702
+ 0x773C=>0xE53F,
703
+ 0x7543=>0xE48A,
704
+ 0x773D=>0xE540,
705
+ 0x774D=>0xE550,
706
+ 0x773E=>0xE541,
707
+ 0x774E=>0xE551,
708
+ 0x774F=>0xE552,
709
+ 0x7670=>0xE515,
710
+ 0x7750=>0xE553,
711
+ 0x7545=>0xE48C,
712
+ 0x757C=>0xE4C3,
713
+ 0x7574=>0xE4BB,
714
+ 0x7751=>0xE554,
715
+ 0x7762=>0xE565,
716
+ 0x7760=>0xE563,
717
+ 0x753D=>0xE484,
718
+ 0x7656=>0xE4FB,
719
+ 0x7523=>0xE46A,
720
+ 0x7544=>0xE48B,
721
+ 0x7763=>0xE566,
722
+ 0x7752=>0xE555,
723
+ 0x7764=>0xE567,
724
+ 0x7753=>0xE556,
725
+ 0x7765=>0xE568,
726
+ 0x766F=>0xE514,
727
+ 0x7766=>0xE569,
728
+ 0x7754=>0xE557,
729
+ 0x7671=>0xE516,
730
+ 0x763A=>0xE4DF,
731
+ 0x7767=>0xE56A,
732
+ 0x7521=>0xE468,
733
+ 0x7557=>0xE49E,
734
+ 0x7525=>0xE46C,
735
+ 0x7546=>0xE48D,
736
+ 0x752F=>0xE476,
737
+ 0x767C=>0xE521,
738
+ 0x763B=>0xE4E0,
739
+ 0x777A=>0xE57D,
740
+ 0x782E=>0xE58F,
741
+ 0x7672=>0xE517,
742
+ 0x7657=>0xE4FC,
743
+ 0x777B=>0xE57E,
744
+ 0x7755=>0xE558,
745
+ 0x7564=>0xE4AB,
746
+ 0x7756=>0xE559,
747
+ 0x763F=>0xE4E4,
748
+ 0x7555=>0xE49C,
749
+ 0x777C=>0xE57F,
750
+ 0x782F=>0xE590,
751
+ 0x777D=>0xE580,
752
+ 0x7835=>0xE596,
753
+ 0x7659=>0xE4FE,
754
+ 0x7658=>0xE4FD,
755
+ 0x7759=>0xE55C,
756
+ 0x7779=>0xE57C,
757
+ 0x775A=>0xE55D,
758
+ 0x7757=>0xE55A,
759
+ 0x7673=>0xE518,
760
+ 0x7758=>0xE55B,
761
+ 0x7674=>0xE519,
762
+ 0x7770=>0xE573,
763
+ 0x7768=>0xE56B,
764
+ 0x7556=>0xE49D,
765
+ 0x7558=>0xE49F,
766
+ 0x7761=>0xE564,
767
+ 0x777E=>0xE581,
768
+ 0x7836=>0xE597,
769
+ 0x7675=>0xE51A,
770
+ 0x756A=>0xE4B1,
771
+ 0x7566=>0xE4AD,
772
+ 0x7821=>0xE582,
773
+ 0x776D=>0xE570,
774
+ 0x7771=>0xE574,
775
+ 0x755B=>0xE4A2,
776
+ 0x7772=>0xE575,
777
+ 0x7773=>0xE576,
778
+ 0x7676=>0xE51B,
779
+ 0x757D=>0xE4C4,
780
+ 0x7822=>0xE583,
781
+ 0x7827=>0xE588,
782
+ 0x7769=>0xE56C,
783
+ 0x7828=>0xE589,
784
+ 0x775B=>0xE55E,
785
+ 0x765C=>0xE501,
786
+ 0x7629=>0xE4CE,
787
+ 0x7829=>0xE58A,
788
+ 0x763C=>0xE4E1,
789
+ 0x767A=>0xE51F,
790
+ 0x7823=>0xE584,
791
+ 0x767B=>0xE520,
792
+ 0x775C=>0xE55F,
793
+ 0x7547=>0xE48E,
794
+ 0x776A=>0xE56D,
795
+ 0x756C=>0xE4B3,
796
+ 0x7677=>0xE51C,
797
+ 0x756D=>0xE4B4,
798
+ 0x7824=>0xE585,
799
+ 0x7623=>0xE4C8,
800
+ 0x765A=>0xE4FF,
801
+ 0x782A=>0xE58B,
802
+ 0x765B=>0xE500,
803
+ 0x756E=>0xE4B5,
804
+ 0x776B=>0xE56E,
805
+ 0x782B=>0xE58C,
806
+ 0x7559=>0xE4A0,
807
+ 0x782C=>0xE58D,
808
+ 0x762A=>0xE4CF,
809
+ 0x782D=>0xE58E,
810
+ 0x7678=>0xE51D,
811
+ 0x7536=>0xE47D,
812
+ 0x7565=>0xE4AC,
813
+ 0x7537=>0xE47E,
814
+ 0x776C=>0xE56F,
815
+ 0x7538=>0xE47F,
816
+ 0x756B=>0xE4B2,
817
+ 0x7539=>0xE480,
818
+ 0x755A=>0xE4A1,
819
+ 0x767D=>0xE522,
820
+ 0x7825=>0xE586,
821
+ 0x767E=>0xE523,
822
+ 0x7830=>0xE591,
823
+ 0x7721=>0xE524,
824
+ 0x7826=>0xE587,
825
+ 0x7722=>0xE525,
826
+ 0x7831=>0xE592,
827
+ 0x7723=>0xE526,
828
+ 0x7832=>0xE593,
829
+ 0x7724=>0xE527,
830
+ 0x7679=>0xE51E,
831
+ 0x7725=>0xE528,
832
+ 0x7726=>0xE529,
833
+ 0x7524=>0xE46B,
834
+ 0x7727=>0xE52A,
835
+ 0x756F=>0xE4B6,
836
+ 0x7728=>0xE52B,
837
+ 0x7570=>0xE4B7,
838
+ 0x7522=>0xE469,
839
+ 0x7571=>0xE4B8,
840
+ 0x753E=>0xE485,
841
+ 0x7572=>0xE4B9,
842
+ 0x7548=>0xE48F,
843
+ 0x7526=>0xE46D,
844
+ 0x7549=>0xE490,
845
+ 0x7575=>0xE4BC,
846
+ 0x754A=>0xE491,
847
+ 0x7576=>0xE4BD,
848
+ 0x754B=>0xE492,
849
+ 0x7577=>0xE4BE,
850
+ 0x754C=>0xE493,
851
+ 0x7578=>0xE4BF,
852
+ 0x754D=>0xE494,
853
+ 0x7579=>0xE4C0,
854
+ 0x754E=>0xE495,
855
+ 0x7527=>0xE46E,
856
+ 0x754F=>0xE496,
857
+ 0x7528=>0xE46F,
858
+ 0x7550=>0xE497,
859
+ 0x757E=>0xE4C5,
860
+ 0x7551=>0xE498,
861
+ 0x7621=>0xE4C6,
862
+ 0x7552=>0xE499,
863
+ 0x7622=>0xE4C7,
864
+ 0x7553=>0xE49A,
865
+ 0x7624=>0xE4C9,
866
+ 0x7554=>0xE49B,
867
+ 0x7625=>0xE4CA,
868
+ 0x755C=>0xE4A3,
869
+ 0x7626=>0xE4CB,
870
+ 0x755D=>0xE4A4,
871
+ 0x7627=>0xE4CC,
872
+ 0x755E=>0xE4A5,
873
+ 0x7628=>0xE4CD,
874
+ 0x755F=>0xE4A6,
875
+ 0x762B=>0xE4D0,
876
+ 0x7560=>0xE4A7,
877
+ 0x762C=>0xE4D1,
878
+ 0x7561=>0xE4A8,
879
+ 0x762D=>0xE4D2,
880
+ 0x7562=>0xE4A9,
881
+ 0x762E=>0xE4D3,
882
+ 0x7563=>0xE4AA,
883
+ 0x762F=>0xE4D4,
884
+ 0x776E=>0xE571,
885
+ 0x7630=>0xE4D5,
886
+ 0x776F=>0xE572,
887
+ 0x7631=>0xE4D6,
888
+ 0x7567=>0xE4AE,
889
+ 0x7529=>0xE470,
890
+ 0x7568=>0xE4AF,
891
+ 0x7632=>0xE4D7,
892
+ 0x7569=>0xE4B0,
893
+ 0x7633=>0xE4D8,
894
+ 0x7634=>0xE4D9,
895
+ 0x764D=>0xE4F2,
896
+ 0x7635=>0xE4DA,
897
+ 0x764E=>0xE4F3,
898
+ 0x7636=>0xE4DB,
899
+ 0x764F=>0xE4F4,
900
+ 0x7637=>0xE4DC,
901
+ 0x7650=>0xE4F5,
902
+ 0x7638=>0xE4DD,
903
+ 0x7651=>0xE4F6,
904
+ 0x7639=>0xE4DE,
905
+ 0x7652=>0xE4F7,
906
+ 0x763D=>0xE4E2,
907
+ 0x7653=>0xE4F8,
908
+ 0x763E=>0xE4E3,
909
+ 0x7654=>0xE4F9,
910
+ 0x752A=>0xE471,
911
+ 0x765D=>0xE502,
912
+ 0x752B=>0xE472,
913
+ 0x765E=>0xE503,
914
+ 0x752C=>0xE473,
915
+ 0x765F=>0xE504,
916
+ 0x752D=>0xE474,
917
+ 0x7660=>0xE505,
918
+ 0x752E=>0xE475,
919
+ 0x7661=>0xE506,
920
+ 0x7640=>0xE4E5,
921
+ 0x7662=>0xE507,
922
+ 0x7641=>0xE4E6,
923
+ 0x7663=>0xE508,
924
+ 0x7642=>0xE4E7,
925
+ 0x7664=>0xE509,
926
+ 0x7530=>0xE477,
927
+ 0x7665=>0xE50A,
928
+ 0x7531=>0xE478,
929
+ 0x7666=>0xE50B,
930
+ 0x7532=>0xE479,
931
+ 0x7774=>0xE577,
932
+ 0x7533=>0xE47A,
933
+ 0x7775=>0xE578,
934
+ 0x7534=>0xE47B,
935
+ 0x7667=>0xE50C,
936
+ 0x7643=>0xE4E8,
937
+ 0x7668=>0xE50D,
938
+ 0x7644=>0xE4E9,
939
+ 0x7669=>0xE50E,
940
+ 0x7645=>0xE4EA,
941
+ 0x766A=>0xE50F,
942
+ 0x7646=>0xE4EB,
943
+ 0x766B=>0xE510,
944
+ 0x7647=>0xE4EC,
945
+ 0x7837=>0xE598,
946
+ 0x7648=>0xE4ED,
947
+ 0x7838=>0xE599,
948
+ 0x7649=>0xE4EE,
949
+ 0x7839=>0xE59A,
950
+ 0x764A=>0xE4EF,
951
+ 0x783A=>0xE59B,
952
+ 0x764B=>0xE4F0,
953
+ 0x783B=>0xE59C,
954
+ 0x764C=>0xE4F1,
955
+ 0x783C=>0xE59D,
956
+ 0x783D=>0xE59E,
957
+ 0x786F=>0xE5BD,
958
+ 0x783E=>0xE59F,
959
+ 0x7870=>0xE5BE,
960
+ 0x783F=>0xE5A0,
961
+ 0x7871=>0xE5BF,
962
+ 0x7840=>0xE5A1,
963
+ 0x7872=>0xE5C0,
964
+ 0x7841=>0xE5A2,
965
+ 0x7873=>0xE5C1,
966
+ 0x7842=>0xE5A3,
967
+ 0x7874=>0xE5C2,
968
+ 0x7843=>0xE5A4,
969
+ 0x7875=>0xE5C3,
970
+ 0x7844=>0xE5A5,
971
+ 0x7876=>0xE5C4,
972
+ 0x7845=>0xE5A6,
973
+ 0x7877=>0xE5C5,
974
+ 0x7846=>0xE5A7,
975
+ 0x7878=>0xE5C6,
976
+ 0x7847=>0xE5A8,
977
+ 0x7879=>0xE5C7,
978
+ 0x7848=>0xE5A9,
979
+ 0x787A=>0xE5C8,
980
+ 0x7849=>0xE5AA,
981
+ 0x787B=>0xE5C9,
982
+ 0x784A=>0xE5AB,
983
+ 0x787C=>0xE5CA,
984
+ 0x784B=>0xE5AC,
985
+ 0x787D=>0xE5CB,
986
+ 0x784C=>0xE5AD,
987
+ 0x787E=>0xE5CC,
988
+ 0x784D=>0xE5AE,
989
+ 0x7921=>0xE5CD,
990
+ 0x784E=>0xE5AF,
991
+ 0x7922=>0xE5CE,
992
+ 0x784F=>0xE5B0,
993
+ 0x7923=>0xE5CF,
994
+ 0x7850=>0xE5B1,
995
+ 0x7924=>0xE5D0,
996
+ 0x7851=>0xE5B2,
997
+ 0x7925=>0xE5D1,
998
+ 0x7852=>0xE5B3,
999
+ 0x7926=>0xE5D2,
1000
+ 0x7853=>0xE5B4,
1001
+ 0x7927=>0xE5D3,
1002
+ 0x7867=>0xE5B5,
1003
+ 0x7928=>0xE5D4,
1004
+ 0x7868=>0xE5B6,
1005
+ 0x7929=>0xE5D5,
1006
+ 0x7869=>0xE5B7,
1007
+ 0x792A=>0xE5D6,
1008
+ 0x786A=>0xE5B8,
1009
+ 0x792B=>0xE5D7,
1010
+ 0x786B=>0xE5B9,
1011
+ 0x792C=>0xE5D8,
1012
+ 0x786C=>0xE5BA,
1013
+ 0x792D=>0xE5D9,
1014
+ 0x786D=>0xE5BB,
1015
+ 0x792E=>0xE5DA,
1016
+ 0x786E=>0xE5BC,
1017
+ 0x792F=>0xE5DB,
1018
+ 0x7930=>0xE5DC,
1019
+ 0x794F=>0xEA9B,
1020
+ 0x7931=>0xE5DD,
1021
+ 0x7950=>0xEA9C,
1022
+ 0x7932=>0xE5DE,
1023
+ 0x7951=>0xEA9D,
1024
+ 0x7933=>0xE5DF,
1025
+ 0x7952=>0xEA9E,
1026
+ 0x7934=>0xEA80,
1027
+ 0x7953=>0xEA9F,
1028
+ 0x7935=>0xEA81,
1029
+ 0x7954=>0xEAA0,
1030
+ 0x7936=>0xEA82,
1031
+ 0x7955=>0xEAA1,
1032
+ 0x7937=>0xEA83,
1033
+ 0x7956=>0xEAA2,
1034
+ 0x7938=>0xEA84,
1035
+ 0x7957=>0xEAA3,
1036
+ 0x7939=>0xEA85,
1037
+ 0x7958=>0xEAA4,
1038
+ 0x793A=>0xEA86,
1039
+ 0x7959=>0xEAA5,
1040
+ 0x793B=>0xEA87,
1041
+ 0x795A=>0xEAA6,
1042
+ 0x793C=>0xEA88,
1043
+ 0x795B=>0xEAA7,
1044
+ 0x793D=>0xEA89,
1045
+ 0x795C=>0xEAA8,
1046
+ 0x793E=>0xEA8A,
1047
+ 0x795D=>0xEAA9,
1048
+ 0x793F=>0xEA8B,
1049
+ 0x795E=>0xEAAA,
1050
+ 0x7940=>0xEA8C,
1051
+ 0x795F=>0xEAAB,
1052
+ 0x7941=>0xEA8D,
1053
+ 0x7960=>0xEAAC,
1054
+ 0x7942=>0xEA8E,
1055
+ 0x7961=>0xEAAD,
1056
+ 0x7943=>0xEA8F,
1057
+ 0x7962=>0xEAAE,
1058
+ 0x7944=>0xEA90,
1059
+ 0x7963=>0xEAAF,
1060
+ 0x7945=>0xEA91,
1061
+ 0x7964=>0xEAB0,
1062
+ 0x7946=>0xEA92,
1063
+ 0x7965=>0xEAB1,
1064
+ 0x7947=>0xEA93,
1065
+ 0x7966=>0xEAB2,
1066
+ 0x7948=>0xEA94,
1067
+ 0x7967=>0xEAB3,
1068
+ 0x7949=>0xEA95,
1069
+ 0x7968=>0xEAB4,
1070
+ 0x794A=>0xEA96,
1071
+ 0x7969=>0xEAB5,
1072
+ 0x794B=>0xEA97,
1073
+ 0x796A=>0xEAB6,
1074
+ 0x794C=>0xEA98,
1075
+ 0x796B=>0xEAB7,
1076
+ 0x794D=>0xEA99,
1077
+ 0x796C=>0xEAB8,
1078
+ 0x794E=>0xEA9A,
1079
+ 0x796D=>0xEAB9,
1080
+ 0x796E=>0xEABA,
1081
+ 0x7A2F=>0xEAD9,
1082
+ 0x796F=>0xEABB,
1083
+ 0x7A30=>0xEADA,
1084
+ 0x7970=>0xEABC,
1085
+ 0x7A31=>0xEADB,
1086
+ 0x7971=>0xEABD,
1087
+ 0x7A32=>0xEADC,
1088
+ 0x7972=>0xEABE,
1089
+ 0x7A33=>0xEADD,
1090
+ 0x7973=>0xEABF,
1091
+ 0x7A34=>0xEADE,
1092
+ 0x7974=>0xEAC0,
1093
+ 0x7A35=>0xEADF,
1094
+ 0x7975=>0xEAC1,
1095
+ 0x7A36=>0xEAE0,
1096
+ 0x7976=>0xEAC2,
1097
+ 0x7A37=>0xEAE1,
1098
+ 0x7977=>0xEAC3,
1099
+ 0x7A38=>0xEAE2,
1100
+ 0x7978=>0xEAC4,
1101
+ 0x7A39=>0xEAE3,
1102
+ 0x7979=>0xEAC5,
1103
+ 0x7A3A=>0xEAE4,
1104
+ 0x797A=>0xEAC6,
1105
+ 0x7A3B=>0xEAE5,
1106
+ 0x797B=>0xEAC7,
1107
+ 0x7A3C=>0xEAE6,
1108
+ 0x797C=>0xEAC8,
1109
+ 0x7A3D=>0xEAE7,
1110
+ 0x797D=>0xEAC9,
1111
+ 0x7A3E=>0xEAE8,
1112
+ 0x797E=>0xEACA,
1113
+ 0x7A3F=>0xEAE9,
1114
+ 0x7A21=>0xEACB,
1115
+ 0x7A40=>0xEAEA,
1116
+ 0x7A22=>0xEACC,
1117
+ 0x7A41=>0xEAEB,
1118
+ 0x7A23=>0xEACD,
1119
+ 0x7A42=>0xEAEC,
1120
+ 0x7A24=>0xEACE,
1121
+ 0x7A43=>0xEAED,
1122
+ 0x7A25=>0xEACF,
1123
+ 0x7A44=>0xEAEE,
1124
+ 0x7A26=>0xEAD0,
1125
+ 0x7A45=>0xEAEF,
1126
+ 0x7A27=>0xEAD1,
1127
+ 0x7A46=>0xEAF0,
1128
+ 0x7A28=>0xEAD2,
1129
+ 0x7A47=>0xEAF1,
1130
+ 0x7A29=>0xEAD3,
1131
+ 0x7A48=>0xEAF2,
1132
+ 0x7A2A=>0xEAD4,
1133
+ 0x7A49=>0xEAF3,
1134
+ 0x7A2B=>0xEAD5,
1135
+ 0x7A4A=>0xEAF4,
1136
+ 0x7A2C=>0xEAD6,
1137
+ 0x7A4B=>0xEAF5,
1138
+ 0x7A2D=>0xEAD7,
1139
+ 0x7A4C=>0xEAF6,
1140
+ 0x7A2E=>0xEAD8,
1141
+ 0x7A4D=>0xEAF7,
1142
+ 0x7A4E=>0xEAF8,
1143
+ 0x7A5A=>0xEB17,
1144
+ 0x7A4F=>0xEAF9,
1145
+ 0x7A5B=>0xEB18,
1146
+ 0x7A50=>0xEAFA,
1147
+ 0x7A5C=>0xEB19,
1148
+ 0x7854=>0xEAFB,
1149
+ 0x7A5D=>0xEB1A,
1150
+ 0x7855=>0xEAFC,
1151
+ 0x7A5E=>0xEB1B,
1152
+ 0x7856=>0xEAFD,
1153
+ 0x7A5F=>0xEB1C,
1154
+ 0x7857=>0xEAFE,
1155
+ 0x7A60=>0xEB1D,
1156
+ 0x7858=>0xEAFF,
1157
+ 0x7A61=>0xEB1E,
1158
+ 0x7859=>0xEB00,
1159
+ 0x7A62=>0xEB1F,
1160
+ 0x785A=>0xEB01,
1161
+ 0x7A63=>0xEB20,
1162
+ 0x785B=>0xEB02,
1163
+ 0x7A64=>0xEB21,
1164
+ 0x785C=>0xEB03,
1165
+ 0x7A65=>0xEB22,
1166
+ 0x785D=>0xEB04,
1167
+ 0x7A66=>0xEB23,
1168
+ 0x785E=>0xEB05,
1169
+ 0x7A67=>0xEB24,
1170
+ 0x785F=>0xEB06,
1171
+ 0x7A68=>0xEB25,
1172
+ 0x7860=>0xEB07,
1173
+ 0x7A69=>0xEB26,
1174
+ 0x7861=>0xEB08,
1175
+ 0x7A6A=>0xEB27,
1176
+ 0x7862=>0xEB09,
1177
+ 0x7A6B=>0xEB28,
1178
+ 0x7863=>0xEB0A,
1179
+ 0x7A6C=>0xEB29,
1180
+ 0x7864=>0xEB0B,
1181
+ 0x7A6D=>0xEB2A,
1182
+ 0x7865=>0xEB0C,
1183
+ 0x7A6E=>0xEB2B,
1184
+ 0x7866=>0xEB0D,
1185
+ 0x7A6F=>0xEB2C,
1186
+ 0x7A51=>0xEB0E,
1187
+ 0x7A70=>0xEB2D,
1188
+ 0x7A52=>0xEB0F,
1189
+ 0x7A71=>0xEB2E,
1190
+ 0x7A53=>0xEB10,
1191
+ 0x7A72=>0xEB2F,
1192
+ 0x7A54=>0xEB11,
1193
+ 0x7A73=>0xEB30,
1194
+ 0x7A55=>0xEB12,
1195
+ 0x7A74=>0xEB31,
1196
+ 0x7A56=>0xEB13,
1197
+ 0x7A75=>0xEB32,
1198
+ 0x7A57=>0xEB14,
1199
+ 0x7A76=>0xEB33,
1200
+ 0x7A58=>0xEB15,
1201
+ 0x7A77=>0xEB34,
1202
+ 0x7A59=>0xEB16,
1203
+ 0x7A78=>0xEB35,
1204
+ 0x7A79=>0xEB36,
1205
+ 0x7B3A=>0xEB55,
1206
+ 0x7A7A=>0xEB37,
1207
+ 0x7B3B=>0xEB56,
1208
+ 0x7A7B=>0xEB38,
1209
+ 0x7B3C=>0xEB57,
1210
+ 0x7A7C=>0xEB39,
1211
+ 0x7B3D=>0xEB58,
1212
+ 0x7A7D=>0xEB3A,
1213
+ 0x7B3E=>0xEB59,
1214
+ 0x7A7E=>0xEB3B,
1215
+ 0x7B3F=>0xEB5A,
1216
+ 0x7B21=>0xEB3C,
1217
+ 0x7B40=>0xEB5B,
1218
+ 0x7B22=>0xEB3D,
1219
+ 0x7B41=>0xEB5C,
1220
+ 0x7B23=>0xEB3E,
1221
+ 0x7B42=>0xEB5D,
1222
+ 0x7B24=>0xEB3F,
1223
+ 0x7B43=>0xEB5E,
1224
+ 0x7B25=>0xEB40,
1225
+ 0x7B44=>0xEB5F,
1226
+ 0x7B26=>0xEB41,
1227
+ 0x7B45=>0xEB60,
1228
+ 0x7B27=>0xEB42,
1229
+ 0x7B46=>0xEB61,
1230
+ 0x7B28=>0xEB43,
1231
+ 0x7B47=>0xEB62,
1232
+ 0x7B29=>0xEB44,
1233
+ 0x7B48=>0xEB63,
1234
+ 0x7B2A=>0xEB45,
1235
+ 0x7B49=>0xEB64,
1236
+ 0x7B2B=>0xEB46,
1237
+ 0x7B4A=>0xEB65,
1238
+ 0x7B2C=>0xEB47,
1239
+ 0x7B4B=>0xEB66,
1240
+ 0x7B2D=>0xEB48,
1241
+ 0x7B4C=>0xEB67,
1242
+ 0x7B2E=>0xEB49,
1243
+ 0x7B4D=>0xEB68,
1244
+ 0x7B2F=>0xEB4A,
1245
+ 0x7B4E=>0xEB69,
1246
+ 0x7B30=>0xEB4B,
1247
+ 0x7B4F=>0xEB6A,
1248
+ 0x7B31=>0xEB4C,
1249
+ 0x7B50=>0xEB6B,
1250
+ 0x7B32=>0xEB4D,
1251
+ 0x7B51=>0xEB6C,
1252
+ 0x7B33=>0xEB4E,
1253
+ 0x7B52=>0xEB6D,
1254
+ 0x7B34=>0xEB4F,
1255
+ 0x7B53=>0xEB6E,
1256
+ 0x7B35=>0xEB50,
1257
+ 0x7B54=>0xEB6F,
1258
+ 0x7B36=>0xEB51,
1259
+ 0x7B55=>0xEB70,
1260
+ 0x7B37=>0xEB52,
1261
+ 0x7B56=>0xEB71,
1262
+ 0x7B38=>0xEB53,
1263
+ 0x7B57=>0xEB72,
1264
+ 0x7B39=>0xEB54,
1265
+ 0x7B58=>0xEB73,
1266
+ 0x7B59=>0xEB74,
1267
+ 0x7B5A=>0xEB75,
1268
+ 0x7B5B=>0xEB76,
1269
+ 0x7B5C=>0xEB77,
1270
+ 0x7B5D=>0xEB78,
1271
+ 0x7B5E=>0xEB79,
1272
+ 0x7B5F=>0xEB7A,
1273
+ 0x7B60=>0xEB7B,
1274
+ 0x7B61=>0xEB7C,
1275
+ 0x7B62=>0xEB7D,
1276
+ 0x7B63=>0xEB7E,
1277
+ 0x7B64=>0xEB7F,
1278
+ 0x7B65=>0xEB80,
1279
+ 0x7B66=>0xEB81,
1280
+ 0x7B67=>0xEB82,
1281
+ 0x7B68=>0xEB83,
1282
+ 0x7B69=>0xEB84,
1283
+ 0x7B6A=>0xEB85,
1284
+ 0x7B6B=>0xEB86,
1285
+ 0x7B6C=>0xEB87,
1286
+ 0x7B6D=>0xEB88,
1287
+ }.freeze