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,255 @@
1
+ Jpmobile::Emoticon::DOCOMO_SJIS_TO_UNICODE = {
2
+ 0xF89F=>0xE63E,
3
+ 0xF8A0=>0xE63F,
4
+ 0xF8A1=>0xE640,
5
+ 0xF8A2=>0xE641,
6
+ 0xF8A3=>0xE642,
7
+ 0xF8A4=>0xE643,
8
+ 0xF8A5=>0xE644,
9
+ 0xF8A6=>0xE645,
10
+ 0xF8A7=>0xE646,
11
+ 0xF8A8=>0xE647,
12
+ 0xF8A9=>0xE648,
13
+ 0xF8AA=>0xE649,
14
+ 0xF8AB=>0xE64A,
15
+ 0xF8AC=>0xE64B,
16
+ 0xF8AD=>0xE64C,
17
+ 0xF8AE=>0xE64D,
18
+ 0xF8AF=>0xE64E,
19
+ 0xF8B0=>0xE64F,
20
+ 0xF8B1=>0xE650,
21
+ 0xF8B2=>0xE651,
22
+ 0xF8B3=>0xE652,
23
+ 0xF8B4=>0xE653,
24
+ 0xF8B5=>0xE654,
25
+ 0xF8B6=>0xE655,
26
+ 0xF8B7=>0xE656,
27
+ 0xF8B8=>0xE657,
28
+ 0xF8B9=>0xE658,
29
+ 0xF8BA=>0xE659,
30
+ 0xF8BB=>0xE65A,
31
+ 0xF8BC=>0xE65B,
32
+ 0xF8BD=>0xE65C,
33
+ 0xF8BE=>0xE65D,
34
+ 0xF8BF=>0xE65E,
35
+ 0xF8C0=>0xE65F,
36
+ 0xF8C1=>0xE660,
37
+ 0xF8C2=>0xE661,
38
+ 0xF8C3=>0xE662,
39
+ 0xF8C4=>0xE663,
40
+ 0xF8C5=>0xE664,
41
+ 0xF8C6=>0xE665,
42
+ 0xF8C7=>0xE666,
43
+ 0xF8C8=>0xE667,
44
+ 0xF8C9=>0xE668,
45
+ 0xF8CA=>0xE669,
46
+ 0xF8CB=>0xE66A,
47
+ 0xF8CC=>0xE66B,
48
+ 0xF8CD=>0xE66C,
49
+ 0xF8CE=>0xE66D,
50
+ 0xF8CF=>0xE66E,
51
+ 0xF8D0=>0xE66F,
52
+ 0xF8D1=>0xE670,
53
+ 0xF8D2=>0xE671,
54
+ 0xF8D3=>0xE672,
55
+ 0xF8D4=>0xE673,
56
+ 0xF8D5=>0xE674,
57
+ 0xF8D6=>0xE675,
58
+ 0xF8D7=>0xE676,
59
+ 0xF8D8=>0xE677,
60
+ 0xF8D9=>0xE678,
61
+ 0xF8DA=>0xE679,
62
+ 0xF8DB=>0xE67A,
63
+ 0xF8DC=>0xE67B,
64
+ 0xF8DD=>0xE67C,
65
+ 0xF8DE=>0xE67D,
66
+ 0xF8DF=>0xE67E,
67
+ 0xF8E0=>0xE67F,
68
+ 0xF8E1=>0xE680,
69
+ 0xF8E2=>0xE681,
70
+ 0xF8E3=>0xE682,
71
+ 0xF8E4=>0xE683,
72
+ 0xF8E5=>0xE684,
73
+ 0xF8E6=>0xE685,
74
+ 0xF8E7=>0xE686,
75
+ 0xF8E8=>0xE687,
76
+ 0xF8E9=>0xE688,
77
+ 0xF8EA=>0xE689,
78
+ 0xF8EB=>0xE68A,
79
+ 0xF8EC=>0xE68B,
80
+ 0xF8ED=>0xE68C,
81
+ 0xF8EE=>0xE68D,
82
+ 0xF8EF=>0xE68E,
83
+ 0xF8F0=>0xE68F,
84
+ 0xF8F1=>0xE690,
85
+ 0xF8F2=>0xE691,
86
+ 0xF8F3=>0xE692,
87
+ 0xF8F4=>0xE693,
88
+ 0xF8F5=>0xE694,
89
+ 0xF8F6=>0xE695,
90
+ 0xF8F7=>0xE696,
91
+ 0xF8F8=>0xE697,
92
+ 0xF8F9=>0xE698,
93
+ 0xF8FA=>0xE699,
94
+ 0xF8FB=>0xE69A,
95
+ 0xF8FC=>0xE69B,
96
+ 0xF940=>0xE69C,
97
+ 0xF941=>0xE69D,
98
+ 0xF942=>0xE69E,
99
+ 0xF943=>0xE69F,
100
+ 0xF944=>0xE6A0,
101
+ 0xF945=>0xE6A1,
102
+ 0xF946=>0xE6A2,
103
+ 0xF947=>0xE6A3,
104
+ 0xF948=>0xE6A4,
105
+ 0xF949=>0xE6A5,
106
+ 0xF972=>0xE6CE,
107
+ 0xF973=>0xE6CF,
108
+ 0xF974=>0xE6D0,
109
+ 0xF975=>0xE6D1,
110
+ 0xF976=>0xE6D2,
111
+ 0xF977=>0xE6D3,
112
+ 0xF978=>0xE6D4,
113
+ 0xF979=>0xE6D5,
114
+ 0xF97A=>0xE6D6,
115
+ 0xF97B=>0xE6D7,
116
+ 0xF97C=>0xE6D8,
117
+ 0xF97D=>0xE6D9,
118
+ 0xF97E=>0xE6DA,
119
+ 0xF980=>0xE6DB,
120
+ 0xF981=>0xE6DC,
121
+ 0xF982=>0xE6DD,
122
+ 0xF983=>0xE6DE,
123
+ 0xF984=>0xE6DF,
124
+ 0xF985=>0xE6E0,
125
+ 0xF986=>0xE6E1,
126
+ 0xF987=>0xE6E2,
127
+ 0xF988=>0xE6E3,
128
+ 0xF989=>0xE6E4,
129
+ 0xF98A=>0xE6E5,
130
+ 0xF98B=>0xE6E6,
131
+ 0xF98C=>0xE6E7,
132
+ 0xF98D=>0xE6E8,
133
+ 0xF98E=>0xE6E9,
134
+ 0xF98F=>0xE6EA,
135
+ 0xF990=>0xE6EB,
136
+ 0xF9B0=>0xE70B,
137
+ 0xF991=>0xE6EC,
138
+ 0xF992=>0xE6ED,
139
+ 0xF993=>0xE6EE,
140
+ 0xF994=>0xE6EF,
141
+ 0xF995=>0xE6F0,
142
+ 0xF996=>0xE6F1,
143
+ 0xF997=>0xE6F2,
144
+ 0xF998=>0xE6F3,
145
+ 0xF999=>0xE6F4,
146
+ 0xF99A=>0xE6F5,
147
+ 0xF99B=>0xE6F6,
148
+ 0xF99C=>0xE6F7,
149
+ 0xF99D=>0xE6F8,
150
+ 0xF99E=>0xE6F9,
151
+ 0xF99F=>0xE6FA,
152
+ 0xF9A0=>0xE6FB,
153
+ 0xF9A1=>0xE6FC,
154
+ 0xF9A2=>0xE6FD,
155
+ 0xF9A3=>0xE6FE,
156
+ 0xF9A4=>0xE6FF,
157
+ 0xF9A5=>0xE700,
158
+ 0xF9A6=>0xE701,
159
+ 0xF9A7=>0xE702,
160
+ 0xF9A8=>0xE703,
161
+ 0xF9A9=>0xE704,
162
+ 0xF9AA=>0xE705,
163
+ 0xF9AB=>0xE706,
164
+ 0xF9AC=>0xE707,
165
+ 0xF9AD=>0xE708,
166
+ 0xF9AE=>0xE709,
167
+ 0xF9AF=>0xE70A,
168
+ 0xF950=>0xE6AC,
169
+ 0xF951=>0xE6AD,
170
+ 0xF952=>0xE6AE,
171
+ 0xF955=>0xE6B1,
172
+ 0xF956=>0xE6B2,
173
+ 0xF957=>0xE6B3,
174
+ 0xF95B=>0xE6B7,
175
+ 0xF95C=>0xE6B8,
176
+ 0xF95D=>0xE6B9,
177
+ 0xF95E=>0xE6BA,
178
+ 0xF9B1=>0xE70C,
179
+ 0xF9B2=>0xE70D,
180
+ 0xF9B3=>0xE70E,
181
+ 0xF9B4=>0xE70F,
182
+ 0xF9B5=>0xE710,
183
+ 0xF9B6=>0xE711,
184
+ 0xF9B7=>0xE712,
185
+ 0xF9B8=>0xE713,
186
+ 0xF9B9=>0xE714,
187
+ 0xF9BA=>0xE715,
188
+ 0xF9BB=>0xE716,
189
+ 0xF9BC=>0xE717,
190
+ 0xF9BD=>0xE718,
191
+ 0xF9BE=>0xE719,
192
+ 0xF9BF=>0xE71A,
193
+ 0xF9C0=>0xE71B,
194
+ 0xF9C1=>0xE71C,
195
+ 0xF9C2=>0xE71D,
196
+ 0xF9C3=>0xE71E,
197
+ 0xF9C4=>0xE71F,
198
+ 0xF9C5=>0xE720,
199
+ 0xF9C6=>0xE721,
200
+ 0xF9C7=>0xE722,
201
+ 0xF9C8=>0xE723,
202
+ 0xF9C9=>0xE724,
203
+ 0xF9CA=>0xE725,
204
+ 0xF9CB=>0xE726,
205
+ 0xF9CC=>0xE727,
206
+ 0xF9CD=>0xE728,
207
+ 0xF9CE=>0xE729,
208
+ 0xF9CF=>0xE72A,
209
+ 0xF9D0=>0xE72B,
210
+ 0xF9D1=>0xE72C,
211
+ 0xF9D2=>0xE72D,
212
+ 0xF9D3=>0xE72E,
213
+ 0xF9D4=>0xE72F,
214
+ 0xF9D5=>0xE730,
215
+ 0xF9D6=>0xE731,
216
+ 0xF9D7=>0xE732,
217
+ 0xF9D8=>0xE733,
218
+ 0xF9D9=>0xE734,
219
+ 0xF9DA=>0xE735,
220
+ 0xF9DB=>0xE736,
221
+ 0xF9DC=>0xE737,
222
+ 0xF9DD=>0xE738,
223
+ 0xF9DE=>0xE739,
224
+ 0xF9DF=>0xE73A,
225
+ 0xF9E0=>0xE73B,
226
+ 0xF9E1=>0xE73C,
227
+ 0xF9E2=>0xE73D,
228
+ 0xF9E3=>0xE73E,
229
+ 0xF9E4=>0xE73F,
230
+ 0xF9E5=>0xE740,
231
+ 0xF9E6=>0xE741,
232
+ 0xF9E7=>0xE742,
233
+ 0xF9E8=>0xE743,
234
+ 0xF9E9=>0xE744,
235
+ 0xF9EA=>0xE745,
236
+ 0xF9EB=>0xE746,
237
+ 0xF9EC=>0xE747,
238
+ 0xF9ED=>0xE748,
239
+ 0xF9EE=>0xE749,
240
+ 0xF9EF=>0xE74A,
241
+ 0xF9F0=>0xE74B,
242
+ 0xF9F1=>0xE74C,
243
+ 0xF9F2=>0xE74D,
244
+ 0xF9F3=>0xE74E,
245
+ 0xF9F4=>0xE74F,
246
+ 0xF9F5=>0xE750,
247
+ 0xF9F6=>0xE751,
248
+ 0xF9F7=>0xE752,
249
+ 0xF9F8=>0xE753,
250
+ 0xF9F9=>0xE754,
251
+ 0xF9FA=>0xE755,
252
+ 0xF9FB=>0xE756,
253
+ 0xF9FC=>0xE757,
254
+ }.freeze
255
+ Jpmobile::Emoticon::DOCOMO_UNICODE_TO_SJIS = Jpmobile::Emoticon::DOCOMO_SJIS_TO_UNICODE.invert.freeze
@@ -0,0 +1,477 @@
1
+ Jpmobile::Emoticon::SOFTBANK_UNICODE_TO_WEBCODE = {
2
+ 0xE001 => "G!",
3
+ 0xE002 => "G\"",
4
+ 0xE003 => "G#",
5
+ 0xE004 => "G$",
6
+ 0xE005 => "G%",
7
+ 0xE006 => "G&",
8
+ 0xE007 => "G'",
9
+ 0xE008 => "G(",
10
+ 0xE009 => "G)",
11
+ 0xE00A => "G*",
12
+ 0xE00B => "G+",
13
+ 0xE00C => "G,",
14
+ 0xE00D => "G-",
15
+ 0xE00E => "G.",
16
+ 0xE00F => "G/",
17
+ 0xE010 => "G0",
18
+ 0xE011 => "G1",
19
+ 0xE012 => "G2",
20
+ 0xE013 => "G3",
21
+ 0xE014 => "G4",
22
+ 0xE015 => "G5",
23
+ 0xE016 => "G6",
24
+ 0xE017 => "G7",
25
+ 0xE018 => "G8",
26
+ 0xE019 => "G9",
27
+ 0xE01A => "G:",
28
+ 0xE01B => "G;",
29
+ 0xE01C => "G<",
30
+ 0xE01D => "G=",
31
+ 0xE01E => "G>",
32
+ 0xE01F => "G?",
33
+ 0xE020 => "G@",
34
+ 0xE021 => "GA",
35
+ 0xE022 => "GB",
36
+ 0xE023 => "GC",
37
+ 0xE024 => "GD",
38
+ 0xE025 => "GE",
39
+ 0xE026 => "GF",
40
+ 0xE027 => "GG",
41
+ 0xE028 => "GH",
42
+ 0xE029 => "GI",
43
+ 0xE02A => "GJ",
44
+ 0xE02B => "GK",
45
+ 0xE02C => "GL",
46
+ 0xE02D => "GM",
47
+ 0xE02E => "GN",
48
+ 0xE02F => "GO",
49
+ 0xE030 => "GP",
50
+ 0xE031 => "GQ",
51
+ 0xE032 => "GR",
52
+ 0xE033 => "GS",
53
+ 0xE034 => "GT",
54
+ 0xE035 => "GU",
55
+ 0xE036 => "GV",
56
+ 0xE037 => "GW",
57
+ 0xE038 => "GX",
58
+ 0xE039 => "GY",
59
+ 0xE03A => "GZ",
60
+ 0xE03B => "G[",
61
+ 0xE03C => "G\\",
62
+ 0xE03D => "G]",
63
+ 0xE03E => "G^",
64
+ 0xE03F => "G_",
65
+ 0xE040 => "G`",
66
+ 0xE041 => "Ga",
67
+ 0xE042 => "Gb",
68
+ 0xE043 => "Gc",
69
+ 0xE044 => "Gd",
70
+ 0xE045 => "Ge",
71
+ 0xE046 => "Gf",
72
+ 0xE047 => "Gg",
73
+ 0xE048 => "Gh",
74
+ 0xE049 => "Gi",
75
+ 0xE04A => "Gj",
76
+ 0xE04B => "Gk",
77
+ 0xE04C => "Gl",
78
+ 0xE04D => "Gm",
79
+ 0xE04E => "Gn",
80
+ 0xE04F => "Go",
81
+ 0xE050 => "Gp",
82
+ 0xE051 => "Gq",
83
+ 0xE052 => "Gr",
84
+ 0xE053 => "Gs",
85
+ 0xE054 => "Gt",
86
+ 0xE055 => "Gu",
87
+ 0xE056 => "Gv",
88
+ 0xE057 => "Gw",
89
+ 0xE058 => "Gx",
90
+ 0xE059 => "Gy",
91
+ 0xE05A => "Gz",
92
+ 0xE101 => "E!",
93
+ 0xE102 => "E\"",
94
+ 0xE103 => "E#",
95
+ 0xE104 => "E$",
96
+ 0xE105 => "E%",
97
+ 0xE106 => "E&",
98
+ 0xE107 => "E'",
99
+ 0xE108 => "E(",
100
+ 0xE109 => "E)",
101
+ 0xE10A => "E*",
102
+ 0xE10B => "E+",
103
+ 0xE10C => "E,",
104
+ 0xE10D => "E-",
105
+ 0xE10E => "E.",
106
+ 0xE10F => "E/",
107
+ 0xE110 => "E0",
108
+ 0xE111 => "E1",
109
+ 0xE112 => "E2",
110
+ 0xE113 => "E3",
111
+ 0xE114 => "E4",
112
+ 0xE115 => "E5",
113
+ 0xE116 => "E6",
114
+ 0xE117 => "E7",
115
+ 0xE118 => "E8",
116
+ 0xE119 => "E9",
117
+ 0xE11A => "E:",
118
+ 0xE11B => "E;",
119
+ 0xE11C => "E<",
120
+ 0xE11D => "E=",
121
+ 0xE11E => "E>",
122
+ 0xE11F => "E?",
123
+ 0xE120 => "E@",
124
+ 0xE121 => "EA",
125
+ 0xE122 => "EB",
126
+ 0xE123 => "EC",
127
+ 0xE124 => "ED",
128
+ 0xE125 => "EE",
129
+ 0xE126 => "EF",
130
+ 0xE127 => "EG",
131
+ 0xE128 => "EH",
132
+ 0xE129 => "EI",
133
+ 0xE12A => "EJ",
134
+ 0xE12B => "EK",
135
+ 0xE12C => "EL",
136
+ 0xE12D => "EM",
137
+ 0xE12E => "EN",
138
+ 0xE12F => "EO",
139
+ 0xE130 => "EP",
140
+ 0xE131 => "EQ",
141
+ 0xE132 => "ER",
142
+ 0xE133 => "ES",
143
+ 0xE134 => "ET",
144
+ 0xE135 => "EU",
145
+ 0xE136 => "EV",
146
+ 0xE137 => "EW",
147
+ 0xE138 => "EX",
148
+ 0xE139 => "EY",
149
+ 0xE13A => "EZ",
150
+ 0xE13B => "E[",
151
+ 0xE13C => "E\\",
152
+ 0xE13D => "E]",
153
+ 0xE13E => "E^",
154
+ 0xE13F => "E_",
155
+ 0xE140 => "E`",
156
+ 0xE141 => "Ea",
157
+ 0xE142 => "Eb",
158
+ 0xE143 => "Ec",
159
+ 0xE144 => "Ed",
160
+ 0xE145 => "Ee",
161
+ 0xE146 => "Ef",
162
+ 0xE147 => "Eg",
163
+ 0xE148 => "Eh",
164
+ 0xE149 => "Ei",
165
+ 0xE14A => "Ej",
166
+ 0xE14B => "Ek",
167
+ 0xE14C => "El",
168
+ 0xE14D => "Em",
169
+ 0xE14E => "En",
170
+ 0xE14F => "Eo",
171
+ 0xE150 => "Ep",
172
+ 0xE151 => "Eq",
173
+ 0xE152 => "Er",
174
+ 0xE153 => "Es",
175
+ 0xE154 => "Et",
176
+ 0xE155 => "Eu",
177
+ 0xE156 => "Ev",
178
+ 0xE157 => "Ew",
179
+ 0xE158 => "Ex",
180
+ 0xE159 => "Ey",
181
+ 0xE15A => "Ez",
182
+ 0xE201 => "F!",
183
+ 0xE202 => "F\"",
184
+ 0xE203 => "F#",
185
+ 0xE204 => "F$",
186
+ 0xE205 => "F%",
187
+ 0xE206 => "F&",
188
+ 0xE207 => "F'",
189
+ 0xE208 => "F(",
190
+ 0xE209 => "F)",
191
+ 0xE20A => "F*",
192
+ 0xE20B => "F+",
193
+ 0xE20C => "F,",
194
+ 0xE20D => "F-",
195
+ 0xE20E => "F.",
196
+ 0xE20F => "F/",
197
+ 0xE210 => "F0",
198
+ 0xE211 => "F1",
199
+ 0xE212 => "F2",
200
+ 0xE213 => "F3",
201
+ 0xE214 => "F4",
202
+ 0xE215 => "F5",
203
+ 0xE216 => "F6",
204
+ 0xE217 => "F7",
205
+ 0xE218 => "F8",
206
+ 0xE219 => "F9",
207
+ 0xE21A => "F:",
208
+ 0xE21B => "F;",
209
+ 0xE21C => "F<",
210
+ 0xE21D => "F=",
211
+ 0xE21E => "F>",
212
+ 0xE21F => "F?",
213
+ 0xE220 => "F@",
214
+ 0xE221 => "FA",
215
+ 0xE222 => "FB",
216
+ 0xE223 => "FC",
217
+ 0xE224 => "FD",
218
+ 0xE225 => "FE",
219
+ 0xE226 => "FF",
220
+ 0xE227 => "FG",
221
+ 0xE228 => "FH",
222
+ 0xE229 => "FI",
223
+ 0xE22A => "FJ",
224
+ 0xE22B => "FK",
225
+ 0xE22C => "FL",
226
+ 0xE22D => "FM",
227
+ 0xE22E => "FN",
228
+ 0xE22F => "FO",
229
+ 0xE230 => "FP",
230
+ 0xE231 => "FQ",
231
+ 0xE232 => "FR",
232
+ 0xE233 => "FS",
233
+ 0xE234 => "FT",
234
+ 0xE235 => "FU",
235
+ 0xE236 => "FV",
236
+ 0xE237 => "FW",
237
+ 0xE238 => "FX",
238
+ 0xE239 => "FY",
239
+ 0xE23A => "FZ",
240
+ 0xE23B => "F[",
241
+ 0xE23C => "F\\",
242
+ 0xE23D => "F]",
243
+ 0xE23E => "F^",
244
+ 0xE23F => "F_",
245
+ 0xE240 => "F`",
246
+ 0xE241 => "Fa",
247
+ 0xE242 => "Fb",
248
+ 0xE243 => "Fc",
249
+ 0xE244 => "Fd",
250
+ 0xE245 => "Fe",
251
+ 0xE246 => "Ff",
252
+ 0xE247 => "Fg",
253
+ 0xE248 => "Fh",
254
+ 0xE249 => "Fi",
255
+ 0xE24A => "Fj",
256
+ 0xE24B => "Fk",
257
+ 0xE24C => "Fl",
258
+ 0xE24D => "Fm",
259
+ 0xE24E => "Fn",
260
+ 0xE24F => "Fo",
261
+ 0xE250 => "Fp",
262
+ 0xE251 => "Fq",
263
+ 0xE252 => "Fr",
264
+ 0xE253 => "Fs",
265
+ 0xE255 => "Fu",
266
+ 0xE256 => "Fv",
267
+ 0xE257 => "Fw",
268
+ 0xE301 => "O!",
269
+ 0xE302 => "O\"",
270
+ 0xE303 => "O#",
271
+ 0xE304 => "O$",
272
+ 0xE305 => "O%",
273
+ 0xE306 => "O&",
274
+ 0xE307 => "O'",
275
+ 0xE308 => "O(",
276
+ 0xE309 => "O)",
277
+ 0xE30A => "O*",
278
+ 0xE30B => "O+",
279
+ 0xE30C => "O,",
280
+ 0xE30D => "O-",
281
+ 0xE30E => "O.",
282
+ 0xE30F => "O/",
283
+ 0xE310 => "O0",
284
+ 0xE311 => "O1",
285
+ 0xE312 => "O2",
286
+ 0xE313 => "O3",
287
+ 0xE314 => "O4",
288
+ 0xE315 => "O5",
289
+ 0xE316 => "O6",
290
+ 0xE317 => "O7",
291
+ 0xE318 => "O8",
292
+ 0xE319 => "O9",
293
+ 0xE31A => "O:",
294
+ 0xE31B => "O;",
295
+ 0xE31C => "O<",
296
+ 0xE31D => "O=",
297
+ 0xE31E => "O>",
298
+ 0xE31F => "O?",
299
+ 0xE320 => "O@",
300
+ 0xE321 => "OA",
301
+ 0xE322 => "OB",
302
+ 0xE323 => "OC",
303
+ 0xE324 => "OD",
304
+ 0xE325 => "OE",
305
+ 0xE326 => "OF",
306
+ 0xE327 => "OG",
307
+ 0xE328 => "OH",
308
+ 0xE329 => "OI",
309
+ 0xE32A => "OJ",
310
+ 0xE32B => "OK",
311
+ 0xE32C => "OL",
312
+ 0xE32D => "OM",
313
+ 0xE32E => "ON",
314
+ 0xE32F => "OO",
315
+ 0xE330 => "OP",
316
+ 0xE331 => "OQ",
317
+ 0xE332 => "OR",
318
+ 0xE333 => "OS",
319
+ 0xE334 => "OT",
320
+ 0xE335 => "OU",
321
+ 0xE336 => "OV",
322
+ 0xE337 => "OW",
323
+ 0xE338 => "OX",
324
+ 0xE339 => "OY",
325
+ 0xE33A => "OZ",
326
+ 0xE33B => "O[",
327
+ 0xE33C => "O\\",
328
+ 0xE33D => "O]",
329
+ 0xE33E => "O^",
330
+ 0xE33F => "O_",
331
+ 0xE340 => "O`",
332
+ 0xE341 => "Oa",
333
+ 0xE342 => "Ob",
334
+ 0xE343 => "Oc",
335
+ 0xE344 => "Od",
336
+ 0xE345 => "Oe",
337
+ 0xE346 => "Of",
338
+ 0xE347 => "Og",
339
+ 0xE348 => "Oh",
340
+ 0xE349 => "Oi",
341
+ 0xE34A => "Oj",
342
+ 0xE34B => "Ok",
343
+ 0xE34C => "Ol",
344
+ 0xE34D => "Om",
345
+ 0xE401 => "P!",
346
+ 0xE402 => "P\"",
347
+ 0xE403 => "P#",
348
+ 0xE404 => "P$",
349
+ 0xE405 => "P%",
350
+ 0xE406 => "P&",
351
+ 0xE407 => "P'",
352
+ 0xE408 => "P(",
353
+ 0xE409 => "P)",
354
+ 0xE40A => "P*",
355
+ 0xE40B => "P+",
356
+ 0xE40C => "P,",
357
+ 0xE40D => "P-",
358
+ 0xE40E => "P.",
359
+ 0xE40F => "P/",
360
+ 0xE410 => "P0",
361
+ 0xE411 => "P1",
362
+ 0xE412 => "P2",
363
+ 0xE413 => "P3",
364
+ 0xE414 => "P4",
365
+ 0xE415 => "P5",
366
+ 0xE416 => "P6",
367
+ 0xE417 => "P7",
368
+ 0xE418 => "P8",
369
+ 0xE419 => "P9",
370
+ 0xE41A => "P:",
371
+ 0xE41B => "P;",
372
+ 0xE41C => "P<",
373
+ 0xE41D => "P=",
374
+ 0xE41E => "P>",
375
+ 0xE41F => "P?",
376
+ 0xE420 => "P@",
377
+ 0xE421 => "PA",
378
+ 0xE422 => "PB",
379
+ 0xE423 => "PC",
380
+ 0xE424 => "PD",
381
+ 0xE425 => "PE",
382
+ 0xE426 => "PF",
383
+ 0xE427 => "PG",
384
+ 0xE428 => "PH",
385
+ 0xE429 => "PI",
386
+ 0xE42A => "PJ",
387
+ 0xE42B => "PK",
388
+ 0xE42C => "PL",
389
+ 0xE42D => "PM",
390
+ 0xE42E => "PN",
391
+ 0xE42F => "PO",
392
+ 0xE430 => "PP",
393
+ 0xE431 => "PQ",
394
+ 0xE432 => "PR",
395
+ 0xE433 => "PS",
396
+ 0xE434 => "PT",
397
+ 0xE435 => "PU",
398
+ 0xE436 => "PV",
399
+ 0xE437 => "PW",
400
+ 0xE438 => "PX",
401
+ 0xE439 => "PY",
402
+ 0xE43A => "PZ",
403
+ 0xE43B => "P[",
404
+ 0xE43C => "P\\",
405
+ 0xE43D => "P]",
406
+ 0xE43E => "P^",
407
+ 0xE43F => "P_",
408
+ 0xE440 => "P`",
409
+ 0xE441 => "Pa",
410
+ 0xE442 => "Pb",
411
+ 0xE443 => "Pc",
412
+ 0xE444 => "Pd",
413
+ 0xE445 => "Pe",
414
+ 0xE446 => "Pf",
415
+ 0xE447 => "Pg",
416
+ 0xE448 => "Ph",
417
+ 0xE449 => "Pi",
418
+ 0xE44A => "Pj",
419
+ 0xE44B => "Pk",
420
+ 0xE44C => "Pl",
421
+ 0xE501 => "Q!",
422
+ 0xE502 => "Q\"",
423
+ 0xE503 => "Q#",
424
+ 0xE504 => "Q$",
425
+ 0xE505 => "Q%",
426
+ 0xE506 => "Q&",
427
+ 0xE507 => "Q'",
428
+ 0xE508 => "Q(",
429
+ 0xE509 => "Q)",
430
+ 0xE50A => "Q*",
431
+ 0xE50B => "Q+",
432
+ 0xE50C => "Q,",
433
+ 0xE50D => "Q-",
434
+ 0xE50E => "Q.",
435
+ 0xE50F => "Q/",
436
+ 0xE510 => "Q0",
437
+ 0xE511 => "Q1",
438
+ 0xE512 => "Q2",
439
+ 0xE513 => "Q3",
440
+ 0xE514 => "Q4",
441
+ 0xE515 => "Q5",
442
+ 0xE516 => "Q6",
443
+ 0xE517 => "Q7",
444
+ 0xE518 => "Q8",
445
+ 0xE519 => "Q9",
446
+ 0xE51A => "Q:",
447
+ 0xE51B => "Q;",
448
+ 0xE51C => "Q<",
449
+ 0xE51D => "Q=",
450
+ 0xE51E => "Q>",
451
+ 0xE51F => "Q?",
452
+ 0xE520 => "Q@",
453
+ 0xE521 => "QA",
454
+ 0xE522 => "QB",
455
+ 0xE523 => "QC",
456
+ 0xE524 => "QD",
457
+ 0xE525 => "QE",
458
+ 0xE526 => "QF",
459
+ 0xE527 => "QG",
460
+ 0xE528 => "QH",
461
+ 0xE529 => "QI",
462
+ 0xE52A => "QJ",
463
+ 0xE52B => "QK",
464
+ 0xE52C => "QL",
465
+ 0xE52D => "QM",
466
+ 0xE52E => "QN",
467
+ 0xE52F => "QO",
468
+ 0xE530 => "QP",
469
+ 0xE531 => "QQ",
470
+ 0xE532 => "QR",
471
+ 0xE533 => "QS",
472
+ 0xE534 => "QT",
473
+ 0xE535 => "QU",
474
+ 0xE536 => "QV",
475
+ 0xE537 => "QW",
476
+ }
477
+ Jpmobile::Emoticon::SOFTBANK_WEBCODE_TO_UNICODE = Jpmobile::Emoticon::SOFTBANK_UNICODE_TO_WEBCODE.invert