jpmobile 1.0.0.pre.4 → 1.0.0.pre.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (233) hide show
  1. data/.rspec +4 -0
  2. data/Gemfile +3 -3
  3. data/VERSION.yml +2 -2
  4. data/jpmobile.gemspec +335 -0
  5. data/lib/jpmobile.rb +0 -1
  6. data/lib/jpmobile/email.rb +47 -21
  7. data/lib/jpmobile/mail.rb +33 -26
  8. data/lib/jpmobile/mailer.rb +2 -0
  9. data/lib/jpmobile/util.rb +3 -3
  10. data/spec/unit/email-fixtures/au-attached.eml +1551 -0
  11. data/spec/unit/email-fixtures/au-decomail.eml +44 -0
  12. data/spec/unit/email-fixtures/au-emoji.eml +19 -0
  13. data/spec/unit/email-fixtures/au-emoji2.eml +45 -0
  14. data/spec/unit/email-fixtures/au-emoji5.eml +24 -0
  15. data/spec/unit/email-fixtures/docomo-emoji.eml +19 -0
  16. data/spec/unit/email-fixtures/docomo-gmail-sjis.eml +45 -0
  17. data/spec/unit/email-fixtures/docomo-jis.eml +20 -0
  18. data/spec/unit/email-fixtures/pc-mail-multi.eml +77 -0
  19. data/spec/unit/email-fixtures/pc-mail-single.eml +29 -0
  20. data/spec/unit/email-fixtures/softbank-blank.eml +20 -0
  21. data/spec/unit/email-fixtures/softbank-emoji-utf8.eml +19 -0
  22. data/spec/unit/email-fixtures/softbank-emoji.eml +19 -0
  23. data/spec/unit/email-fixtures/softbank-gmail-sjis.eml +45 -0
  24. data/spec/unit/email-fixtures/softbank-gmail-utf8.eml +45 -0
  25. data/spec/unit/{detect_by_email_spec.rb → email_spec.rb} +25 -2
  26. data/spec/unit/emoticon_spec.rb +1 -1
  27. data/spec/unit/encoding_spec.rb +1 -1
  28. data/spec/unit/is_carrier_spec.rb +1 -1
  29. data/spec/unit/mail_spec.rb +1 -1
  30. data/spec/unit/receive_mail_spec.rb +26 -1
  31. data/spec/unit/util_spec.rb +1 -1
  32. data/spec/unit/valid_ip_spec.rb +1 -1
  33. data/test/rails/.gitignore +1 -0
  34. data/test/rails/overrides/.rspec +5 -0
  35. data/test/rails/overrides/Gemfile +33 -0
  36. data/test/rails/overrides/app/views/filter/index.html.erb +0 -0
  37. data/test/rails/overrides/app/views/hankaku_filter/index.html.erb +0 -0
  38. data/test/rails/overrides/app/views/hankaku_input_filter/index.html.erb +0 -0
  39. data/test/rails/overrides/app/views/hankaku_input_filter/index_xhtml.html.erb +1 -0
  40. data/test/rails/overrides/app/views/layouts/xhtml.html.erb +12 -0
  41. data/test/rails/overrides/app/views/links/au_gps.html.erb +1 -0
  42. data/test/rails/overrides/app/views/links/au_location.html.erb +1 -0
  43. data/test/rails/overrides/app/views/links/docomo_foma_gps.html.erb +1 -0
  44. data/test/rails/overrides/app/views/links/docomo_openiarea.html.erb +1 -0
  45. data/test/rails/overrides/app/views/links/docomo_utn.html.erb +1 -0
  46. data/test/rails/overrides/app/views/links/link.html.erb +1 -0
  47. data/test/rails/overrides/app/views/links/show_all.html.erb +1 -0
  48. data/test/rails/overrides/app/views/links/softbank_location.html.erb +1 -0
  49. data/test/rails/overrides/app/views/links/willcom_location.html.erb +1 -0
  50. data/test/rails/overrides/app/views/mobile_mailer/multi_message.html.erb +11 -0
  51. data/test/rails/overrides/app/views/mobile_mailer/multi_message.text.erb +2 -0
  52. data/test/rails/overrides/app/views/mobile_mailer/view_selection.html.erb +3 -0
  53. data/test/rails/overrides/app/views/mobile_mailer/view_selection_mobile.html.erb +3 -0
  54. data/test/rails/overrides/app/views/mobile_mailer/view_selection_mobile_au.html.erb +3 -0
  55. data/test/rails/overrides/app/views/mobile_mailer/view_selection_mobile_docomo.html.erb +3 -0
  56. data/test/rails/overrides/app/views/mobile_mailer/view_selection_mobile_emobile.html.erb +3 -0
  57. data/test/rails/overrides/app/views/mobile_mailer/view_selection_mobile_softbank.html.erb +3 -0
  58. data/test/rails/overrides/app/views/mobile_mailer/view_selection_mobile_vodafone.html.erb +3 -0
  59. data/test/rails/overrides/app/views/mobile_mailer/view_selection_mobile_willcom.html.erb +3 -0
  60. data/test/rails/overrides/app/views/normal_mailer/msg.text.erb +3 -0
  61. data/test/rails/overrides/app/views/template_path/_partial.html.erb +1 -0
  62. data/test/rails/overrides/app/views/template_path/_partial_mobile.html.erb +1 -0
  63. data/test/rails/overrides/app/views/template_path/_partial_mobile_docomo.html.erb +1 -0
  64. data/test/rails/overrides/app/views/template_path/_partial_smart_phone.html.erb +1 -0
  65. data/test/rails/overrides/app/views/template_path/_partial_smart_phone_iphone.html.erb +1 -0
  66. data/test/rails/overrides/app/views/template_path/index.html.erb +1 -0
  67. data/test/rails/overrides/app/views/template_path/index_mobile.html.erb +1 -0
  68. data/test/rails/overrides/app/views/template_path/index_mobile_docomo.html.erb +1 -0
  69. data/test/rails/overrides/app/views/template_path/index_smart_phone.html.erb +1 -0
  70. data/test/rails/overrides/app/views/template_path/index_smart_phone_iphone.html.erb +1 -0
  71. data/test/rails/overrides/app/views/template_path/partial.html.erb +2 -0
  72. data/test/rails/overrides/app/views/template_path/show_mobile.html.erb +1 -0
  73. data/test/rails/overrides/app/views/template_path/show_mobile_docomo.html.erb +1 -0
  74. data/test/rails/overrides/spec/fixtures/mobile_mailer/au-attached.eml +1551 -0
  75. data/test/rails/overrides/spec/fixtures/mobile_mailer/au-decomail.eml +44 -0
  76. data/test/rails/overrides/spec/fixtures/mobile_mailer/au-emoji.eml +19 -0
  77. data/test/rails/overrides/spec/fixtures/mobile_mailer/au-emoji2.eml +45 -0
  78. data/test/rails/overrides/spec/fixtures/mobile_mailer/au-emoji5.eml +24 -0
  79. data/test/rails/overrides/spec/fixtures/mobile_mailer/docomo-emoji.eml +19 -0
  80. data/test/rails/overrides/spec/fixtures/mobile_mailer/docomo-gmail-sjis.eml +45 -0
  81. data/test/rails/overrides/spec/fixtures/mobile_mailer/docomo-jis.eml +20 -0
  82. data/test/rails/overrides/spec/fixtures/mobile_mailer/no-from.eml +78 -0
  83. data/test/rails/overrides/spec/fixtures/mobile_mailer/non-jp.eml +45 -0
  84. data/test/rails/overrides/spec/fixtures/mobile_mailer/softbank-blank.eml +20 -0
  85. data/test/rails/overrides/spec/fixtures/mobile_mailer/softbank-emoji-utf8.eml +19 -0
  86. data/test/rails/overrides/spec/fixtures/mobile_mailer/softbank-emoji.eml +19 -0
  87. data/test/rails/overrides/spec/fixtures/mobile_mailer/softbank-gmail-sjis.eml +45 -0
  88. data/test/rails/overrides/spec/fixtures/mobile_mailer/softbank-gmail-utf8.eml +45 -0
  89. data/test/rails/overrides/spec/helpers/helpers_spec.rb +1 -2
  90. data/test/rails/overrides/spec/models/mobile_mailer_spec.rb +37 -1
  91. data/test/rails/overrides/spec/models/normal_mailer_spec.rb +1 -1
  92. data/test/rails/overrides/spec/rcov.opts +2 -0
  93. data/test/rails/overrides/spec/requests/docomo_guid_spec.rb +1 -2
  94. data/test/rails/overrides/spec/requests/docomo_spec.rb +1 -2
  95. data/test/rails/overrides/spec/requests/emobile_spec.rb +1 -2
  96. data/test/rails/overrides/spec/requests/filter_spec.rb +1 -1
  97. data/test/rails/overrides/spec/requests/helpers_spec.rb +1 -1
  98. data/test/rails/overrides/spec/requests/pc_spec.rb +1 -2
  99. data/test/rails/overrides/spec/requests/softbank_emulator_spec.rb +1 -2
  100. data/test/rails/overrides/spec/requests/template_path_spec.rb +1 -2
  101. data/test/rails/overrides/spec/requests/trans_sid_spec.rb +1 -2
  102. data/test/rails/overrides/spec/spec_helper.rb +1 -1
  103. metadata +229 -386
  104. data/test/rails/rails_root/app/controllers/application_controller.rb +0 -6
  105. data/test/rails/rails_root/app/controllers/docomo_guid_always_controller.rb +0 -3
  106. data/test/rails/rails_root/app/controllers/docomo_guid_base_controller.rb +0 -5
  107. data/test/rails/rails_root/app/controllers/docomo_guid_docomo_controller.rb +0 -3
  108. data/test/rails/rails_root/app/controllers/filter_controller.rb +0 -3
  109. data/test/rails/rails_root/app/controllers/filter_controller_base.rb +0 -25
  110. data/test/rails/rails_root/app/controllers/hankaku_filter_controller.rb +0 -3
  111. data/test/rails/rails_root/app/controllers/hankaku_input_filter_controller.rb +0 -7
  112. data/test/rails/rails_root/app/controllers/links_controller.rb +0 -28
  113. data/test/rails/rails_root/app/controllers/mobile_spec_controller.rb +0 -5
  114. data/test/rails/rails_root/app/controllers/template_path_controller.rb +0 -17
  115. data/test/rails/rails_root/app/controllers/trans_sid_always_and_session_off_controller.rb +0 -4
  116. data/test/rails/rails_root/app/controllers/trans_sid_always_controller.rb +0 -3
  117. data/test/rails/rails_root/app/controllers/trans_sid_base_controller.rb +0 -40
  118. data/test/rails/rails_root/app/controllers/trans_sid_metal_controller.rb +0 -15
  119. data/test/rails/rails_root/app/controllers/trans_sid_mobile_controller.rb +0 -3
  120. data/test/rails/rails_root/app/controllers/trans_sid_none_controller.rb +0 -3
  121. data/test/rails/rails_root/app/helpers/application_helper.rb +0 -2
  122. data/test/rails/rails_root/app/models/mobile_mailer.rb +0 -19
  123. data/test/rails/rails_root/app/models/normal_mailer.rb +0 -9
  124. data/test/rails/rails_root/app/models/user.rb +0 -2
  125. data/test/rails/rails_root/autotest/discover.rb +0 -2
  126. data/test/rails/rails_root/config/application.rb +0 -42
  127. data/test/rails/rails_root/config/boot.rb +0 -6
  128. data/test/rails/rails_root/config/environment.rb +0 -5
  129. data/test/rails/rails_root/config/environments/development.rb +0 -26
  130. data/test/rails/rails_root/config/environments/production.rb +0 -49
  131. data/test/rails/rails_root/config/environments/test.rb +0 -35
  132. data/test/rails/rails_root/config/initializers/backtrace_silencers.rb +0 -7
  133. data/test/rails/rails_root/config/initializers/inflections.rb +0 -10
  134. data/test/rails/rails_root/config/initializers/jpmobile_generator.rb +0 -2
  135. data/test/rails/rails_root/config/initializers/mime_types.rb +0 -5
  136. data/test/rails/rails_root/config/initializers/secret_token.rb +0 -7
  137. data/test/rails/rails_root/config/initializers/session_store.rb +0 -2
  138. data/test/rails/rails_root/config/routes.rb +0 -7
  139. data/test/rails/rails_root/db/migrate/001_add_sessions_table.rb +0 -16
  140. data/test/rails/rails_root/db/migrate/20100824062306_create_users.rb +0 -13
  141. data/test/rails/rails_root/db/schema.rb +0 -31
  142. data/test/rails/rails_root/db/seeds.rb +0 -7
  143. data/test/rails/rails_root/spec/helpers/helpers_spec.rb +0 -15
  144. data/test/rails/rails_root/spec/models/mobile_mailer_spec.rb +0 -737
  145. data/test/rails/rails_root/spec/models/normal_mailer_spec.rb +0 -34
  146. data/test/rails/rails_root/spec/requests/docomo_guid_spec.rb +0 -102
  147. data/test/rails/rails_root/spec/requests/docomo_spec.rb +0 -33
  148. data/test/rails/rails_root/spec/requests/emobile_spec.rb +0 -53
  149. data/test/rails/rails_root/spec/requests/filter_spec.rb +0 -221
  150. data/test/rails/rails_root/spec/requests/helpers_spec.rb +0 -187
  151. data/test/rails/rails_root/spec/requests/pc_spec.rb +0 -22
  152. data/test/rails/rails_root/spec/requests/softbank_emulator_spec.rb +0 -21
  153. data/test/rails/rails_root/spec/requests/template_path_spec.rb +0 -240
  154. data/test/rails/rails_root/spec/requests/trans_sid_spec.rb +0 -207
  155. data/test/rails/rails_root/spec/spec_helper.rb +0 -38
  156. data/test/rails/rails_root/test/performance/browsing_test.rb +0 -9
  157. data/test/rails/rails_root/test/test_helper.rb +0 -13
  158. data/test/rails/rails_root/vendor/plugins/jpmobile-ipaddresses/lib/jpmobile-ipaddresses.rb +0 -18
  159. data/test/rails/rails_root/vendor/plugins/jpmobile-ipaddresses/lib/jpmobile/mobile/ip_addresses/abstract_ip_addresses.rb +0 -23
  160. data/test/rails/rails_root/vendor/plugins/jpmobile-ipaddresses/lib/jpmobile/mobile/ip_addresses/au.rb +0 -40
  161. data/test/rails/rails_root/vendor/plugins/jpmobile-ipaddresses/lib/jpmobile/mobile/ip_addresses/docomo.rb +0 -22
  162. data/test/rails/rails_root/vendor/plugins/jpmobile-ipaddresses/lib/jpmobile/mobile/ip_addresses/emobile.rb +0 -15
  163. data/test/rails/rails_root/vendor/plugins/jpmobile-ipaddresses/lib/jpmobile/mobile/ip_addresses/softbank.rb +0 -20
  164. data/test/rails/rails_root/vendor/plugins/jpmobile-ipaddresses/lib/jpmobile/mobile/ip_addresses/willcom.rb +0 -158
  165. data/test/rails/rails_root/vendor/plugins/jpmobile-terminfo/lib/jpmobile-terminfo.rb +0 -9
  166. data/test/rails/rails_root/vendor/plugins/jpmobile-terminfo/lib/jpmobile/mobile/terminfo.rb +0 -62
  167. data/test/rails/rails_root/vendor/plugins/jpmobile-terminfo/lib/jpmobile/mobile/terminfo/docomo.rb +0 -739
  168. data/test/rails/rails_root/vendor/plugins/jpmobile-terminfo/spec/spec_helper.rb +0 -2
  169. data/test/rails/rails_root/vendor/plugins/jpmobile-terminfo/spec/terminfo_spec.rb +0 -54
  170. data/test/rails/rails_root/vendor/plugins/jpmobile/init.rb +0 -3
  171. data/test/rails/rails_root/vendor/plugins/jpmobile/install.rb +0 -1
  172. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile.rb +0 -59
  173. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/datum_conv.rb +0 -72
  174. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/docomo_guid.rb +0 -43
  175. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/email.rb +0 -33
  176. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/emoticon.rb +0 -205
  177. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/emoticon/au.rb +0 -1931
  178. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/emoticon/conversion_table.rb +0 -3909
  179. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/emoticon/docomo.rb +0 -255
  180. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/emoticon/softbank.rb +0 -965
  181. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/emoticon/z_combine.rb +0 -36
  182. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/encoding.rb +0 -29
  183. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/filter.rb +0 -113
  184. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/helpers.rb +0 -174
  185. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/hook_action_controller.rb +0 -18
  186. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/hook_action_dispatch.rb +0 -2
  187. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/hook_action_view.rb +0 -33
  188. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/lookup_context.rb +0 -2
  189. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mail.rb +0 -330
  190. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mailer.rb +0 -41
  191. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/abstract_mobile.rb +0 -168
  192. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/android.rb +0 -10
  193. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/au.rb +0 -128
  194. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/ddipocket.rb +0 -12
  195. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/docomo.rb +0 -149
  196. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/emobile.rb +0 -16
  197. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/iphone.rb +0 -26
  198. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/smart_phone.rb +0 -21
  199. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/softbank.rb +0 -91
  200. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/vodafone.rb +0 -17
  201. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/willcom.rb +0 -28
  202. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/windows_phone.rb +0 -10
  203. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/path_set.rb +0 -40
  204. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/position.rb +0 -68
  205. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/rack.rb +0 -49
  206. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/rack/filter.rb +0 -50
  207. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/rack/mobile_carrier.rb +0 -33
  208. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/rack/params_filter.rb +0 -47
  209. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/rails.rb +0 -50
  210. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/request_with_mobile.rb +0 -45
  211. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/resolver.rb +0 -38
  212. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/trans_sid.rb +0 -133
  213. data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/util.rb +0 -370
  214. data/test/rails/rails_root/vendor/plugins/jpmobile/tmp/conversion-table.rb +0 -2588
  215. data/test/rails/rails_root/vendor/plugins/jpmobile/tmp/utf8_to_image.rb +0 -1407
  216. data/test/rails/rails_root/vendor/plugins/jpmobile/tools/emoji/genregexp.rb +0 -47
  217. data/test/rails/rails_root/vendor/plugins/jpmobile/tools/generate_au_emoticon_table.rb +0 -34
  218. data/test/rails/rails_root/vendor/plugins/jpmobile/tools/generate_docomo_emoticon_table.rb +0 -33
  219. data/test/rails/rails_root/vendor/plugins/jpmobile/tools/generate_emoticon_conversion_table.rb +0 -107
  220. data/test/rails/rails_root/vendor/plugins/jpmobile/tools/generate_softbank_emoticon_table.rb +0 -31
  221. data/test/rails/rails_root/vendor/plugins/jpmobile/tools/list_gps_unsupported_au.rb +0 -23
  222. data/test/rails/rails_root/vendor/plugins/jpmobile/vendor/jpmobile-ipaddresses/lib/jpmobile-ipaddresses.rb +0 -18
  223. data/test/rails/rails_root/vendor/plugins/jpmobile/vendor/jpmobile-ipaddresses/lib/jpmobile/mobile/ip_addresses/abstract_ip_addresses.rb +0 -23
  224. data/test/rails/rails_root/vendor/plugins/jpmobile/vendor/jpmobile-ipaddresses/lib/jpmobile/mobile/ip_addresses/au.rb +0 -40
  225. data/test/rails/rails_root/vendor/plugins/jpmobile/vendor/jpmobile-ipaddresses/lib/jpmobile/mobile/ip_addresses/docomo.rb +0 -22
  226. data/test/rails/rails_root/vendor/plugins/jpmobile/vendor/jpmobile-ipaddresses/lib/jpmobile/mobile/ip_addresses/emobile.rb +0 -15
  227. data/test/rails/rails_root/vendor/plugins/jpmobile/vendor/jpmobile-ipaddresses/lib/jpmobile/mobile/ip_addresses/softbank.rb +0 -20
  228. data/test/rails/rails_root/vendor/plugins/jpmobile/vendor/jpmobile-ipaddresses/lib/jpmobile/mobile/ip_addresses/willcom.rb +0 -158
  229. data/test/rails/rails_root/vendor/plugins/jpmobile/vendor/jpmobile-terminfo/lib/jpmobile-terminfo.rb +0 -9
  230. data/test/rails/rails_root/vendor/plugins/jpmobile/vendor/jpmobile-terminfo/lib/jpmobile/mobile/terminfo.rb +0 -62
  231. data/test/rails/rails_root/vendor/plugins/jpmobile/vendor/jpmobile-terminfo/lib/jpmobile/mobile/terminfo/docomo.rb +0 -739
  232. data/test/rails/rails_root/vendor/plugins/jpmobile/vendor/jpmobile-terminfo/spec/spec_helper.rb +0 -2
  233. data/test/rails/rails_root/vendor/plugins/jpmobile/vendor/jpmobile-terminfo/spec/terminfo_spec.rb +0 -54
@@ -1,9 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- $:.unshift(File.dirname(__FILE__)) unless $:.include?(File.dirname(__FILE__)) ||
3
- $:.include?(File.expand_path(File.dirname(__FILE__)))
4
-
5
- module Jpmobile
6
- module Mobile
7
- autoload :Terminfo, 'jpmobile/mobile/terminfo'
8
- end
9
- end
@@ -1,62 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- module Jpmobile
3
- module Mobile
4
- class Terminfo
5
- autoload :Docomo, 'jpmobile/mobile/terminfo/docomo'
6
-
7
- def initialize(carrier, env)
8
- case carrier.class.name
9
- when /Docomo/
10
- display_info = Docomo::DISPLAY_INFO[carrier.model_name] || {}
11
- @browser_width = display_info[:browser_width]
12
- @browser_height = display_info[:browser_height]
13
- @color_p = display_info[:color_p]
14
- @colors = display_info[:colors]
15
- when /Au/
16
- if r = env['HTTP_X_UP_DEVCAP_SCREENPIXELS']
17
- @physical_width, @physical_height = r.split(/,/,2).map {|x| x.to_i}
18
- end
19
- if r = env['HTTP_X_UP_DEVCAP_ISCOLOR']
20
- @color_p = (r == '1')
21
- end
22
- if r = env['HTTP_X_UP_DEVCAP_SCREENDEPTH']
23
- a = r.split(/,/)
24
- @colors = 2 ** a[0].to_i
25
- end
26
- when /Softbank/, /Vodafone/
27
- if r = env['HTTP_X_JPHONE_DISPLAY']
28
- @physical_width, @physical_height = r.split(/\*/,2).map {|x| x.to_i}
29
- end
30
- if r = env['HTTP_X_JPHONE_COLOR']
31
- case r
32
- when /^C/
33
- @color_p = true
34
- when /^G/
35
- @color_p = false
36
- end
37
- if r =~ /^.(\d+)$/
38
- @colors = $1.to_i
39
- end
40
- end
41
- end
42
- end
43
-
44
- # 画面がカラーならば +true+、白黒ならば +false+ を返す。不明の場合は +nil+。
45
- def color?; @color_p; end
46
- # 画面の色数を返す。不明の場合は +nil+。
47
- def colors; @colors; end
48
- # ディスプレイの画面幅を返す。不明の場合は +nil+。
49
- def physical_width; @physical_width; end
50
- # ディスプレイの画面高さを返す。不明の場合は +nil+。
51
- def physical_height; @physical_height; end
52
- # ブラウザの画面幅を返す。不明の場合は +nil+。
53
- def browser_width; @browser_width; end
54
- # ブラウザの画面高さを返す。不明の場合は +nil+。
55
- def browser_height; @browser_height; end
56
- # 画面の幅を返す。ブラウザ画面の幅がわかる場合はそれを優先する。不明の場合は +nil+。
57
- def width; browser_width || physical_width; end
58
- # 画面の高さを返す。ブラウザ画面の高さがわかる場合はそれを優先する。不明の場合は +nil+。
59
- def height; browser_height || physical_height; end
60
- end
61
- end
62
- end
@@ -1,739 +0,0 @@
1
- module Jpmobile::Mobile::Terminfo::Docomo
2
- DISPLAY_INFO =
3
- {"SH06A3"=>
4
- {:browser_width=>240,
5
- :browser_height=>296,
6
- :color_p=>true,
7
- :colors=>16777216},
8
- "F10A"=>
9
- {:browser_width=>240, :browser_height=>330, :color_p=>true, :colors=>262144},
10
- "F905iBiz"=>
11
- {:browser_width=>240,
12
- :browser_height=>352,
13
- :color_p=>true,
14
- :colors=>16777216},
15
- "N600i"=>
16
- {:browser_width=>176, :browser_height=>180, :color_p=>true, :colors=>65536},
17
- "P900iV"=>
18
- {:browser_width=>240, :browser_height=>266, :color_p=>true, :colors=>262144},
19
- "P703imyu"=>
20
- {:browser_width=>240, :browser_height=>270, :color_p=>true, :colors=>262144},
21
- "F02A"=>
22
- {:browser_width=>240, :browser_height=>352, :color_p=>true, :colors=>262144},
23
- "SH704i"=>
24
- {:browser_width=>240, :browser_height=>320, :color_p=>true, :colors=>262144},
25
- "F503iS"=>
26
- {:browser_width=>120, :browser_height=>130, :color_p=>true, :colors=>4096},
27
- "F505i"=>
28
- {:browser_width=>240, :browser_height=>268, :color_p=>true, :colors=>262144},
29
- "F883i"=>
30
- {:browser_width=>240, :browser_height=>256, :color_p=>true, :colors=>65536},
31
- "D851iWM"=>
32
- {:browser_width=>230, :browser_height=>320, :color_p=>true, :colors=>262144},
33
- "P06A"=>
34
- {:browser_width=>240, :browser_height=>350, :color_p=>true, :colors=>262144},
35
- "N705imyu"=>
36
- {:browser_width=>240, :browser_height=>320, :color_p=>true, :colors=>262144},
37
- "F902i"=>
38
- {:browser_width=>230, :browser_height=>240, :color_p=>true, :colors=>262144},
39
- "N505i"=>
40
- {:browser_width=>240, :browser_height=>270, :color_p=>true, :colors=>262144},
41
- "F700i"=>
42
- {:browser_width=>230, :browser_height=>240, :color_p=>true, :colors=>262144},
43
- "D903i"=>
44
- {:browser_width=>230, :browser_height=>320, :color_p=>true, :colors=>262144},
45
- "SA800i"=>
46
- {:browser_width=>240, :browser_height=>252, :color_p=>true, :colors=>65536},
47
- "N902i"=>
48
- {:browser_width=>240, :browser_height=>270, :color_p=>true, :colors=>262144},
49
- "KO210i"=>
50
- {:browser_width=>96, :browser_height=>96, :color_p=>true, :colors=>256},
51
- "D902iS"=>
52
- {:browser_width=>230, :browser_height=>320, :color_p=>true, :colors=>262144},
53
- "SO213iWR"=>
54
- {:browser_width=>120, :browser_height=>112, :color_p=>true, :colors=>65536},
55
- "N700i"=>
56
- {:browser_width=>240, :browser_height=>270, :color_p=>true, :colors=>65536},
57
- "N2001"=>
58
- {:browser_width=>118, :browser_height=>128, :color_p=>true, :colors=>4096},
59
- "SH821i"=>
60
- {:browser_width=>96, :browser_height=>78, :color_p=>true, :colors=>256},
61
- "SH01A"=>
62
- {:browser_width=>240,
63
- :browser_height=>320,
64
- :color_p=>true,
65
- :colors=>16777216},
66
- "N905iBiz"=>
67
- {:browser_width=>240, :browser_height=>320, :color_p=>true, :colors=>262144},
68
- "F05A"=>
69
- {:browser_width=>240, :browser_height=>352, :color_p=>true, :colors=>65536},
70
- "SH706ie"=>
71
- {:browser_width=>240, :browser_height=>320, :color_p=>true, :colors=>262144},
72
- "F901iC"=>
73
- {:browser_width=>230, :browser_height=>240, :color_p=>true, :colors=>262144},
74
- "N2002"=>
75
- {:browser_width=>118, :browser_height=>128, :color_p=>true, :colors=>65536},
76
- "F209i"=>
77
- {:browser_width=>96, :browser_height=>91, :color_p=>true, :colors=>256},
78
- "N706ie"=>
79
- {:browser_width=>240, :browser_height=>320, :color_p=>true, :colors=>262144},
80
- "P706imyu"=>
81
- {:browser_width=>240, :browser_height=>350, :color_p=>true, :colors=>262144},
82
- "P905iTV"=>
83
- {:browser_width=>240, :browser_height=>350, :color_p=>true, :colors=>262144},
84
- "F905i"=>
85
- {:browser_width=>240,
86
- :browser_height=>352,
87
- :color_p=>true,
88
- :colors=>16777216},
89
- "F703i"=>
90
- {:browser_width=>230, :browser_height=>240, :color_p=>true, :colors=>262144},
91
- "N209i"=>
92
- {:browser_width=>108, :browser_height=>82, :color_p=>false, :colors=>4},
93
- "P209iS"=>
94
- {:browser_width=>96, :browser_height=>87, :color_p=>true, :colors=>256},
95
- "D210i"=>
96
- {:browser_width=>96, :browser_height=>91, :color_p=>true, :colors=>256},
97
- "SO210i"=>
98
- {:browser_width=>120, :browser_height=>113, :color_p=>true, :colors=>256},
99
- "SH902i"=>
100
- {:browser_width=>240, :browser_height=>240, :color_p=>true, :colors=>262144},
101
- "N252i"=>
102
- {:browser_width=>132, :browser_height=>140, :color_p=>true, :colors=>65536},
103
- "SH505iS"=>
104
- {:browser_width=>240, :browser_height=>252, :color_p=>true, :colors=>262144},
105
- "N905i"=>
106
- {:browser_width=>240, :browser_height=>320, :color_p=>true, :colors=>262144},
107
- "N704imyu"=>
108
- {:browser_width=>240, :browser_height=>270, :color_p=>true, :colors=>262144},
109
- "P903iX"=>
110
- {:browser_width=>240, :browser_height=>270, :color_p=>true, :colors=>262144},
111
- "N505iS"=>
112
- {:browser_width=>240, :browser_height=>270, :color_p=>true, :colors=>262144},
113
- "NM502i"=>
114
- {:browser_width=>111, :browser_height=>106, :color_p=>false, :colors=>2},
115
- "R692i"=>
116
- {:browser_width=>96, :browser_height=>98, :color_p=>true, :colors=>4096},
117
- "N2102V"=>
118
- {:browser_width=>176, :browser_height=>198, :color_p=>true, :colors=>65536},
119
- "D705imyu"=>
120
- {:browser_width=>240, :browser_height=>240, :color_p=>true, :colors=>262144},
121
- "SO903iTV"=>
122
- {:browser_width=>240, :browser_height=>368, :color_p=>true, :colors=>262144},
123
- "F903iX"=>
124
- {:browser_width=>230, :browser_height=>240, :color_p=>true, :colors=>262144},
125
- "P253i"=>
126
- {:browser_width=>132, :browser_height=>144, :color_p=>true, :colors=>65536},
127
- "SH702iD"=>
128
- {:browser_width=>240, :browser_height=>240, :color_p=>true, :colors=>262144},
129
- "L852i"=>
130
- {:browser_width=>240, :browser_height=>298, :color_p=>true, :colors=>65536},
131
- "SH04A"=>
132
- {:browser_width=>240,
133
- :browser_height=>320,
134
- :color_p=>true,
135
- :colors=>16777216},
136
- "P704i"=>
137
- {:browser_width=>240, :browser_height=>270, :color_p=>true, :colors=>262144},
138
- "SH851i"=>
139
- {:browser_width=>240, :browser_height=>252, :color_p=>true, :colors=>262144},
140
- "N07A3"=>
141
- {:browser_width=>240, :browser_height=>320, :color_p=>true, :colors=>262144},
142
- "N01A"=>
143
- {:browser_width=>240, :browser_height=>320, :color_p=>true, :colors=>262144},
144
- "F706i"=>
145
- {:browser_width=>240, :browser_height=>352, :color_p=>true, :colors=>262144},
146
- "P705iCL"=>
147
- {:browser_width=>240, :browser_height=>350, :color_p=>true, :colors=>262144},
148
- "SH905i"=>
149
- {:browser_width=>240,
150
- :browser_height=>320,
151
- :color_p=>true,
152
- :colors=>16777216},
153
- "N211iS"=>
154
- {:browser_width=>118, :browser_height=>128, :color_p=>true, :colors=>4096},
155
- "P502i"=>
156
- {:browser_width=>96, :browser_height=>117, :color_p=>false, :colors=>4},
157
- "SO213iS"=>
158
- {:browser_width=>120, :browser_height=>112, :color_p=>true, :colors=>65536},
159
- "T2101V"=>
160
- {:browser_width=>176, :browser_height=>144, :color_p=>true, :colors=>262144},
161
- "SO213i"=>
162
- {:browser_width=>120, :browser_height=>112, :color_p=>true, :colors=>65536},
163
- "N702iD"=>
164
- {:browser_width=>240, :browser_height=>270, :color_p=>true, :colors=>65536},
165
- "F08A3"=>
166
- {:browser_width=>240, :browser_height=>324, :color_p=>true, :colors=>262144},
167
- "N706i"=>
168
- {:browser_width=>240, :browser_height=>320, :color_p=>true, :colors=>262144},
169
- "F502it"=>
170
- {:browser_width=>96, :browser_height=>91, :color_p=>true, :colors=>256},
171
- "SH901iS"=>
172
- {:browser_width=>240, :browser_height=>252, :color_p=>true, :colors=>262144},
173
- "N901iS"=>
174
- {:browser_width=>240, :browser_height=>270, :color_p=>true, :colors=>65536},
175
- "P505i"=>
176
- {:browser_width=>240, :browser_height=>266, :color_p=>true, :colors=>65536},
177
- "D701iWM"=>
178
- {:browser_width=>230, :browser_height=>240, :color_p=>true, :colors=>65536},
179
- "P821i"=>
180
- {:browser_width=>118, :browser_height=>128, :color_p=>false, :colors=>4},
181
- "L602i"=>
182
- {:browser_width=>170, :browser_height=>189, :color_p=>true, :colors=>65536},
183
- "P09A3"=>
184
- {:browser_width=>240, :browser_height=>331, :color_p=>true, :colors=>262144},
185
- "N04A"=>
186
- {:browser_width=>240, :browser_height=>320, :color_p=>true, :colors=>262144},
187
- "D251i"=>
188
- {:browser_width=>132, :browser_height=>144, :color_p=>true, :colors=>262144},
189
- "D251iS"=>
190
- {:browser_width=>132, :browser_height=>144, :color_p=>true, :colors=>262144},
191
- "P902i"=>
192
- {:browser_width=>240, :browser_height=>270, :color_p=>true, :colors=>262144},
193
- "SO502iWM"=>
194
- {:browser_width=>120, :browser_height=>113, :color_p=>true, :colors=>256},
195
- "SH506iC"=>
196
- {:browser_width=>240, :browser_height=>252, :color_p=>true, :colors=>262144},
197
- "P252iS"=>
198
- {:browser_width=>132, :browser_height=>144, :color_p=>true, :colors=>65536},
199
- "P706ie"=>
200
- {:browser_width=>240, :browser_height=>350, :color_p=>true, :colors=>262144},
201
- "P2102V"=>
202
- {:browser_width=>176, :browser_height=>198, :color_p=>true, :colors=>262144},
203
- "D702i"=>
204
- {:browser_width=>230, :browser_height=>240, :color_p=>true, :colors=>262144},
205
- "P505iS"=>
206
- {:browser_width=>240, :browser_height=>266, :color_p=>true, :colors=>65536},
207
- "SO702i"=>
208
- {:browser_width=>240, :browser_height=>256, :color_p=>true, :colors=>262144},
209
- "F210i"=>
210
- {:browser_width=>96, :browser_height=>113, :color_p=>true, :colors=>256},
211
- "P10A"=>
212
- {:browser_width=>240, :browser_height=>350, :color_p=>true, :colors=>262144},
213
- "P905i"=>
214
- {:browser_width=>240, :browser_height=>350, :color_p=>true, :colors=>262144},
215
- "P851i"=>
216
- {:browser_width=>240, :browser_height=>270, :color_p=>true, :colors=>65536},
217
- "SH700i"=>
218
- {:browser_width=>240, :browser_height=>252, :color_p=>true, :colors=>262144},
219
- "F501i"=>
220
- {:browser_width=>112, :browser_height=>84, :color_p=>false, :colors=>2},
221
- "P02A"=>
222
- {:browser_width=>240, :browser_height=>350, :color_p=>true, :colors=>262144},
223
- "P702iD"=>
224
- {:browser_width=>240, :browser_height=>270, :color_p=>true, :colors=>262144},
225
- "P211iS"=>
226
- {:browser_width=>120, :browser_height=>130, :color_p=>true, :colors=>65536},
227
- "F700iS"=>
228
- {:browser_width=>230, :browser_height=>240, :color_p=>true, :colors=>262144},
229
- "N210i"=>
230
- {:browser_width=>118, :browser_height=>113, :color_p=>true, :colors=>256},
231
- "SO705i"=>
232
- {:browser_width=>240, :browser_height=>320, :color_p=>true, :colors=>262144},
233
- "D705i"=>
234
- {:browser_width=>240, :browser_height=>320, :color_p=>true, :colors=>262144},
235
- "D503i"=>
236
- {:browser_width=>132, :browser_height=>126, :color_p=>true, :colors=>4096},
237
- "NM850iG"=>
238
- {:browser_width=>176, :browser_height=>144, :color_p=>true, :colors=>65536},
239
- "SO503i"=>
240
- {:browser_width=>120, :browser_height=>113, :color_p=>true, :colors=>65536},
241
- "SH252i"=>
242
- {:browser_width=>240, :browser_height=>252, :color_p=>true, :colors=>262144},
243
- "N501i"=>
244
- {:browser_width=>118, :browser_height=>128, :color_p=>false, :colors=>2},
245
- "P211i"=>
246
- {:browser_width=>120, :browser_height=>130, :color_p=>true, :colors=>65536},
247
- "P901iS"=>
248
- {:browser_width=>240, :browser_height=>270, :color_p=>true, :colors=>65536},
249
- "L705i"=>
250
- {:browser_width=>240, :browser_height=>280, :color_p=>true, :colors=>262144},
251
- "F901iS"=>
252
- {:browser_width=>230, :browser_height=>240, :color_p=>true, :colors=>262144},
253
- "F01A"=>
254
- {:browser_width=>240,
255
- :browser_height=>352,
256
- :color_p=>true,
257
- :colors=>16777216},
258
- "N906imyu"=>
259
- {:browser_width=>240, :browser_height=>320, :color_p=>true, :colors=>262144},
260
- "SH703i"=>
261
- {:browser_width=>240, :browser_height=>240, :color_p=>true, :colors=>262144},
262
- "F504i"=>
263
- {:browser_width=>132, :browser_height=>136, :color_p=>true, :colors=>65536},
264
- "P05A"=>
265
- {:browser_width=>240, :browser_height=>350, :color_p=>true, :colors=>262144},
266
- "SH706iw"=>
267
- {:browser_width=>240,
268
- :browser_height=>320,
269
- :color_p=>true,
270
- :colors=>16777216},
271
- "P705imyu"=>
272
- {:browser_width=>240, :browser_height=>350, :color_p=>true, :colors=>262144},
273
- "N504i"=>
274
- {:browser_width=>160, :browser_height=>180, :color_p=>true, :colors=>65536},
275
- "F880iES"=>
276
- {:browser_width=>240, :browser_height=>256, :color_p=>true, :colors=>65536},
277
- "SH07A3"=>
278
- {:browser_width=>240,
279
- :browser_height=>296,
280
- :color_p=>true,
281
- :colors=>16777216},
282
- "SO506i"=>
283
- {:browser_width=>240, :browser_height=>256, :color_p=>true, :colors=>262144},
284
- "P901iTV"=>
285
- {:browser_width=>240, :browser_height=>270, :color_p=>true, :colors=>65536},
286
- "D902i"=>
287
- {:browser_width=>230, :browser_height=>320, :color_p=>true, :colors=>262144},
288
- "P506iC"=>
289
- {:browser_width=>240, :browser_height=>266, :color_p=>true, :colors=>65536},
290
- "SH702iS"=>
291
- {:browser_width=>240, :browser_height=>240, :color_p=>true, :colors=>262144},
292
- "SA702i"=>
293
- {:browser_width=>240, :browser_height=>252, :color_p=>true, :colors=>65536},
294
- "D903iTV"=>
295
- {:browser_width=>230, :browser_height=>320, :color_p=>true, :colors=>262144},
296
- "D506i"=>
297
- {:browser_width=>240, :browser_height=>270, :color_p=>true, :colors=>262144},
298
- "SH903iTV"=>
299
- {:browser_width=>240, :browser_height=>320, :color_p=>true, :colors=>262144},
300
- "SO903i"=>
301
- {:browser_width=>240, :browser_height=>368, :color_p=>true, :colors=>262144},
302
- "F504iS"=>
303
- {:browser_width=>132, :browser_height=>136, :color_p=>true, :colors=>65536},
304
- "N702iS"=>
305
- {:browser_width=>240, :browser_height=>270, :color_p=>true, :colors=>65536},
306
- "F04A"=>
307
- {:browser_width=>240, :browser_height=>352, :color_p=>true, :colors=>262144},
308
- "SH706i"=>
309
- {:browser_width=>240,
310
- :browser_height=>320,
311
- :color_p=>true,
312
- :colors=>16777216},
313
- "N503iS"=>
314
- {:browser_width=>118, :browser_height=>128, :color_p=>true, :colors=>4096},
315
- "L705iX"=>
316
- {:browser_width=>240, :browser_height=>280, :color_p=>true, :colors=>262144},
317
- "F251i"=>
318
- {:browser_width=>132, :browser_height=>140, :color_p=>true, :colors=>65536},
319
- "N905imyu"=>
320
- {:browser_width=>240, :browser_height=>320, :color_p=>true, :colors=>262144},
321
- "F904i"=>
322
- {:browser_width=>240, :browser_height=>352, :color_p=>true, :colors=>262144},
323
- "P700i"=>
324
- {:browser_width=>240, :browser_height=>270, :color_p=>true, :colors=>65536},
325
- "N251i"=>
326
- {:browser_width=>132, :browser_height=>140, :color_p=>true, :colors=>65536},
327
- "SO902iWP+"=>
328
- {:browser_width=>240, :browser_height=>256, :color_p=>true, :colors=>262144},
329
- "F881iES"=>
330
- {:browser_width=>240, :browser_height=>256, :color_p=>true, :colors=>65536},
331
- "D905i"=>
332
- {:browser_width=>240, :browser_height=>352, :color_p=>true, :colors=>262144},
333
- "N904i"=>
334
- {:browser_width=>240, :browser_height=>352, :color_p=>true, :colors=>262144},
335
- "P2002"=>
336
- {:browser_width=>118, :browser_height=>128, :color_p=>true, :colors=>65536},
337
- "R691i"=>
338
- {:browser_width=>96, :browser_height=>72, :color_p=>false, :colors=>4},
339
- "SO906i"=>
340
- {:browser_width=>240,
341
- :browser_height=>368,
342
- :color_p=>true,
343
- :colors=>16777216},
344
- "N902iL"=>
345
- {:browser_width=>240, :browser_height=>270, :color_p=>true, :colors=>262144},
346
- "P252i"=>
347
- {:browser_width=>132, :browser_height=>144, :color_p=>true, :colors=>65536},
348
- "P209i"=>
349
- {:browser_width=>96, :browser_height=>87, :color_p=>false, :colors=>4},
350
- "SH03A"=>
351
- {:browser_width=>240,
352
- :browser_height=>320,
353
- :color_p=>true,
354
- :colors=>16777216},
355
- "F07A"=>
356
- {:browser_width=>240, :browser_height=>256, :color_p=>true, :colors=>262144},
357
- "P703i"=>
358
- {:browser_width=>240, :browser_height=>270, :color_p=>true, :colors=>262144},
359
- "F705i"=>
360
- {:browser_width=>240, :browser_height=>352, :color_p=>true, :colors=>262144},
361
- "SH904i"=>
362
- {:browser_width=>240, :browser_height=>320, :color_p=>true, :colors=>262144},
363
- "SH902iSL"=>
364
- {:browser_width=>240, :browser_height=>240, :color_p=>true, :colors=>262144},
365
- "N506iS"=>
366
- {:browser_width=>240, :browser_height=>295, :color_p=>true, :colors=>262144},
367
- "P501i"=>
368
- {:browser_width=>96, :browser_height=>120, :color_p=>false, :colors=>2},
369
- "SO212i"=>
370
- {:browser_width=>120, :browser_height=>112, :color_p=>true, :colors=>65536},
371
- "N705i"=>
372
- {:browser_width=>240, :browser_height=>320, :color_p=>true, :colors=>262144},
373
- "NM706i"=>
374
- {:browser_width=>231,
375
- :browser_height=>235,
376
- :color_p=>true,
377
- :colors=>16777216},
378
- "F661i"=>
379
- {:browser_width=>132, :browser_height=>136, :color_p=>true, :colors=>65536},
380
- "F671iS"=>
381
- {:browser_width=>160, :browser_height=>120, :color_p=>true, :colors=>65536},
382
- "F2051"=>
383
- {:browser_width=>176, :browser_height=>182, :color_p=>true, :colors=>65536},
384
- "R211i"=>
385
- {:browser_width=>96, :browser_height=>98, :color_p=>true, :colors=>4096},
386
- "P07A3"=>
387
- {:browser_width=>240, :browser_height=>331, :color_p=>true, :colors=>262144},
388
- "N2051"=>
389
- {:browser_width=>176, :browser_height=>198, :color_p=>true, :colors=>65536},
390
- "N08A3"=>
391
- {:browser_width=>240, :browser_height=>320, :color_p=>true, :colors=>262144},
392
- "N703iD"=>
393
- {:browser_width=>240, :browser_height=>270, :color_p=>true, :colors=>262144},
394
- "L601i"=>
395
- {:browser_width=>170, :browser_height=>189, :color_p=>true, :colors=>65536},
396
- "F09A3"=>
397
- {:browser_width=>240,
398
- :browser_height=>324,
399
- :color_p=>true,
400
- :colors=>16777216},
401
- "N03A"=>
402
- {:browser_width=>240, :browser_height=>320, :color_p=>true, :colors=>262144},
403
- "SO905iCS"=>
404
- {:browser_width=>240,
405
- :browser_height=>368,
406
- :color_p=>true,
407
- :colors=>16777216},
408
- "SH902iS"=>
409
- {:browser_width=>240, :browser_height=>240, :color_p=>true, :colors=>262144},
410
- "F672i"=>
411
- {:browser_width=>160, :browser_height=>120, :color_p=>true, :colors=>65536},
412
- "P503iS"=>
413
- {:browser_width=>120, :browser_height=>130, :color_p=>true, :colors=>256},
414
- "P504i"=>
415
- {:browser_width=>132, :browser_height=>144, :color_p=>true, :colors=>65536},
416
- "L01A"=>
417
- {:browser_width=>240, :browser_height=>350, :color_p=>true, :colors=>262144},
418
- "N821i"=>
419
- {:browser_width=>118, :browser_height=>128, :color_p=>false, :colors=>4},
420
- "P901i"=>
421
- {:browser_width=>240, :browser_height=>270, :color_p=>true, :colors=>65536},
422
- "N902iS"=>
423
- {:browser_width=>240, :browser_height=>270, :color_p=>true, :colors=>262144},
424
- "P506iCII"=>
425
- {:browser_width=>240, :browser_height=>266, :color_p=>true, :colors=>65536},
426
- "N701iECO"=>
427
- {:browser_width=>240, :browser_height=>270, :color_p=>true, :colors=>65536},
428
- "N502it"=>
429
- {:browser_width=>118, :browser_height=>128, :color_p=>true, :colors=>256},
430
- "P2101V"=>
431
- {:browser_width=>163, :browser_height=>182, :color_p=>true, :colors=>262144},
432
- "D701i"=>
433
- {:browser_width=>230, :browser_height=>240, :color_p=>true, :colors=>65536},
434
- "P253iS"=>
435
- {:browser_width=>132, :browser_height=>144, :color_p=>true, :colors=>65536},
436
- "SO505iS"=>
437
- {:browser_width=>240, :browser_height=>256, :color_p=>true, :colors=>262144},
438
- "N2701"=>
439
- {:browser_width=>176, :browser_height=>198, :color_p=>true, :colors=>65536},
440
- "P904i"=>
441
- {:browser_width=>240, :browser_height=>350, :color_p=>true, :colors=>262144},
442
- "D253i"=>
443
- {:browser_width=>176, :browser_height=>198, :color_p=>true, :colors=>262144},
444
- "SH505i"=>
445
- {:browser_width=>240, :browser_height=>252, :color_p=>true, :colors=>262144},
446
- "L04A"=>
447
- {:browser_width=>240, :browser_height=>313, :color_p=>true, :colors=>262144},
448
- "P01A"=>
449
- {:browser_width=>240, :browser_height=>350, :color_p=>true, :colors=>262144},
450
- "SH705iII"=>
451
- {:browser_width=>240, :browser_height=>320, :color_p=>true, :colors=>262144},
452
- "D704i"=>
453
- {:browser_width=>230, :browser_height=>240, :color_p=>true, :colors=>262144},
454
- "SO704i"=>
455
- {:browser_width=>240, :browser_height=>368, :color_p=>true, :colors=>262144},
456
- "SH251i"=>
457
- {:browser_width=>120, :browser_height=>130, :color_p=>true, :colors=>65536},
458
- "N902iX"=>
459
- {:browser_width=>240, :browser_height=>270, :color_p=>true, :colors=>262144},
460
- "D502i"=>
461
- {:browser_width=>96, :browser_height=>90, :color_p=>true, :colors=>256},
462
- "SO502i"=>
463
- {:browser_width=>120, :browser_height=>120, :color_p=>false, :colors=>4},
464
- "D505iS"=>
465
- {:browser_width=>240, :browser_height=>270, :color_p=>true, :colors=>262144},
466
- "R209i"=>
467
- {:browser_width=>96, :browser_height=>72, :color_p=>false, :colors=>4},
468
- "L704i"=>
469
- {:browser_width=>240, :browser_height=>280, :color_p=>true, :colors=>262144},
470
- "P210i"=>
471
- {:browser_width=>96, :browser_height=>91, :color_p=>true, :colors=>256},
472
- "M702iG"=>
473
- {:browser_width=>240, :browser_height=>267, :color_p=>true, :colors=>262144},
474
- "F212i"=>
475
- {:browser_width=>132, :browser_height=>136, :color_p=>true, :colors=>65536},
476
- "SH05A3"=>
477
- {:browser_width=>240,
478
- :browser_height=>296,
479
- :color_p=>true,
480
- :colors=>16777216},
481
- "F883iESS"=>
482
- {:browser_width=>240, :browser_height=>256, :color_p=>true, :colors=>65536},
483
- "SH700iS"=>
484
- {:browser_width=>240, :browser_height=>252, :color_p=>true, :colors=>262144},
485
- "N900iG"=>
486
- {:browser_width=>240, :browser_height=>269, :color_p=>true, :colors=>65536},
487
- "F503i"=>
488
- {:browser_width=>120, :browser_height=>130, :color_p=>true, :colors=>256},
489
- "P04A"=>
490
- {:browser_width=>240, :browser_height=>350, :color_p=>true, :colors=>262144},
491
- "F900i"=>
492
- {:browser_width=>230, :browser_height=>240, :color_p=>true, :colors=>262144},
493
- "N503i"=>
494
- {:browser_width=>118, :browser_height=>128, :color_p=>true, :colors=>4096},
495
- "P651ps"=>
496
- {:browser_width=>96, :browser_height=>87, :color_p=>false, :colors=>4},
497
- "D505i"=>
498
- {:browser_width=>240, :browser_height=>270, :color_p=>true, :colors=>262144},
499
- "N900i"=>
500
- {:browser_width=>240, :browser_height=>269, :color_p=>true, :colors=>65536},
501
- "D702iF"=>
502
- {:browser_width=>230, :browser_height=>240, :color_p=>true, :colors=>262144},
503
- "SO505i"=>
504
- {:browser_width=>256, :browser_height=>240, :color_p=>true, :colors=>262144},
505
- "F902iS"=>
506
- {:browser_width=>230, :browser_height=>240, :color_p=>true, :colors=>262144},
507
- "SO506iC"=>
508
- {:browser_width=>240, :browser_height=>256, :color_p=>true, :colors=>262144},
509
- "D901i"=>
510
- {:browser_width=>230, :browser_height=>240, :color_p=>true, :colors=>262144},
511
- "P902iS"=>
512
- {:browser_width=>240, :browser_height=>270, :color_p=>true, :colors=>262144},
513
- "N703imyu"=>
514
- {:browser_width=>240, :browser_height=>270, :color_p=>true, :colors=>262144},
515
- "D901iS"=>
516
- {:browser_width=>230, :browser_height=>240, :color_p=>true, :colors=>262144},
517
- "P213i"=>
518
- {:browser_width=>132, :browser_height=>144, :color_p=>true, :colors=>65536},
519
- "SO902i"=>
520
- {:browser_width=>240, :browser_height=>256, :color_p=>true, :colors=>262144},
521
- "N601i"=>
522
- {:browser_width=>240, :browser_height=>270, :color_p=>true, :colors=>65536},
523
- "F03A"=>
524
- {:browser_width=>240,
525
- :browser_height=>352,
526
- :color_p=>true,
527
- :colors=>16777216},
528
- "F884i"=>
529
- {:browser_width=>240, :browser_height=>364, :color_p=>true, :colors=>262144},
530
- "SH705i"=>
531
- {:browser_width=>240, :browser_height=>320, :color_p=>true, :colors=>262144},
532
- "F506i"=>
533
- {:browser_width=>240, :browser_height=>268, :color_p=>true, :colors=>262144},
534
- "SH251iS"=>
535
- {:browser_width=>176, :browser_height=>187, :color_p=>true, :colors=>65536},
536
- "SH08A3"=>
537
- {:browser_width=>240,
538
- :browser_height=>296,
539
- :color_p=>true,
540
- :colors=>16777216},
541
- "N706iII"=>
542
- {:browser_width=>240, :browser_height=>320, :color_p=>true, :colors=>262144},
543
- "F903i"=>
544
- {:browser_width=>230, :browser_height=>240, :color_p=>true, :colors=>262144},
545
- "N506i"=>
546
- {:browser_width=>240, :browser_height=>295, :color_p=>true, :colors=>262144},
547
- "SH900i"=>
548
- {:browser_width=>240, :browser_height=>252, :color_p=>true, :colors=>262144},
549
- "N900iL"=>
550
- {:browser_width=>240, :browser_height=>269, :color_p=>true, :colors=>65536},
551
- "ER209i"=>
552
- {:browser_width=>120, :browser_height=>72, :color_p=>false, :colors=>2},
553
- "F900iC"=>
554
- {:browser_width=>230, :browser_height=>240, :color_p=>true, :colors=>262144},
555
- "N251iS"=>
556
- {:browser_width=>132, :browser_height=>140, :color_p=>true, :colors=>65536},
557
- "D904i"=>
558
- {:browser_width=>240, :browser_height=>320, :color_p=>true, :colors=>262144},
559
- "N903i"=>
560
- {:browser_width=>240, :browser_height=>270, :color_p=>true, :colors=>262144},
561
- "D253iWM"=>
562
- {:browser_width=>220, :browser_height=>144, :color_p=>true, :colors=>262144},
563
- "F2102V"=>
564
- {:browser_width=>176, :browser_height=>182, :color_p=>true, :colors=>65536},
565
- "N701i"=>
566
- {:browser_width=>240, :browser_height=>270, :color_p=>true, :colors=>65536},
567
- "SO905i"=>
568
- {:browser_width=>240,
569
- :browser_height=>368,
570
- :color_p=>true,
571
- :colors=>16777216},
572
- "N504iS"=>
573
- {:browser_width=>160, :browser_height=>180, :color_p=>true, :colors=>65536},
574
- "SH02A"=>
575
- {:browser_width=>240,
576
- :browser_height=>320,
577
- :color_p=>true,
578
- :colors=>16777216},
579
- "F06A"=>
580
- {:browser_width=>240,
581
- :browser_height=>352,
582
- :color_p=>true,
583
- :colors=>16777216},
584
- "D800iDS"=>
585
- {:browser_width=>230, :browser_height=>240, :color_p=>true, :colors=>262144},
586
- "F906i"=>
587
- {:browser_width=>240,
588
- :browser_height=>352,
589
- :color_p=>true,
590
- :colors=>16777216},
591
- "F801i"=>
592
- {:browser_width=>240, :browser_height=>352, :color_p=>true, :colors=>65536},
593
- "F704i"=>
594
- {:browser_width=>230, :browser_height=>240, :color_p=>true, :colors=>262144},
595
- "D211i"=>
596
- {:browser_width=>100, :browser_height=>91, :color_p=>true, :colors=>4096},
597
- "SO211i"=>
598
- {:browser_width=>120, :browser_height=>112, :color_p=>true, :colors=>4096},
599
- "SH903i"=>
600
- {:browser_width=>240, :browser_height=>320, :color_p=>true, :colors=>262144},
601
- "P702i"=>
602
- {:browser_width=>240, :browser_height=>270, :color_p=>true, :colors=>262144},
603
- "N253i"=>
604
- {:browser_width=>160, :browser_height=>180, :color_p=>true, :colors=>65536},
605
- "F505iGPS"=>
606
- {:browser_width=>240, :browser_height=>268, :color_p=>true, :colors=>262144},
607
- "F702iD"=>
608
- {:browser_width=>230, :browser_height=>240, :color_p=>true, :colors=>262144},
609
- "N06A3"=>
610
- {:browser_width=>240, :browser_height=>320, :color_p=>true, :colors=>262144},
611
- "N906i"=>
612
- {:browser_width=>240, :browser_height=>320, :color_p=>true, :colors=>262144},
613
- "NM705i"=>
614
- {:browser_width=>231,
615
- :browser_height=>235,
616
- :color_p=>true,
617
- :colors=>16777216},
618
- "F882iES"=>
619
- {:browser_width=>240, :browser_height=>256, :color_p=>true, :colors=>65536},
620
- "M702iS"=>
621
- {:browser_width=>240, :browser_height=>267, :color_p=>true, :colors=>262144},
622
- "SH906i"=>
623
- {:browser_width=>240,
624
- :browser_height=>320,
625
- :color_p=>true,
626
- :colors=>16777216},
627
- "P705i"=>
628
- {:browser_width=>240, :browser_height=>350, :color_p=>true, :colors=>262144},
629
- "SH905iTV"=>
630
- {:browser_width=>240,
631
- :browser_height=>320,
632
- :color_p=>true,
633
- :colors=>16777216},
634
- "N900iS"=>
635
- {:browser_width=>240, :browser_height=>269, :color_p=>true, :colors=>65536},
636
- "L600i"=>
637
- {:browser_width=>170, :browser_height=>189, :color_p=>true, :colors=>65536},
638
- "N02A"=>
639
- {:browser_width=>240, :browser_height=>320, :color_p=>true, :colors=>262144},
640
- "SA700iS"=>
641
- {:browser_width=>240, :browser_height=>252, :color_p=>true, :colors=>65536},
642
- "F671i"=>
643
- {:browser_width=>120, :browser_height=>126, :color_p=>true, :colors=>256},
644
- "P503i"=>
645
- {:browser_width=>120, :browser_height=>130, :color_p=>true, :colors=>256},
646
- "P08A3"=>
647
- {:browser_width=>240, :browser_height=>331, :color_p=>true, :colors=>262144},
648
- "F883iES"=>
649
- {:browser_width=>240, :browser_height=>256, :color_p=>true, :colors=>65536},
650
- "P900i"=>
651
- {:browser_width=>240, :browser_height=>266, :color_p=>true, :colors=>65536},
652
- "P251iS"=>
653
- {:browser_width=>132, :browser_height=>144, :color_p=>true, :colors=>65536},
654
- "SO503iS"=>
655
- {:browser_width=>120, :browser_height=>113, :color_p=>true, :colors=>65536},
656
- "N09A3"=>
657
- {:browser_width=>240, :browser_height=>320, :color_p=>true, :colors=>262144},
658
- "N906iL"=>
659
- {:browser_width=>240, :browser_height=>320, :color_p=>true, :colors=>262144},
660
- "KO209i"=>
661
- {:browser_width=>96, :browser_height=>96, :color_p=>true, :colors=>256},
662
- "SH906iTV"=>
663
- {:browser_width=>240,
664
- :browser_height=>320,
665
- :color_p=>true,
666
- :colors=>16777216},
667
- "F903iBSC"=>
668
- {:browser_width=>230, :browser_height=>240, :color_p=>true, :colors=>262144},
669
- "P504iS"=>
670
- {:browser_width=>132, :browser_height=>144, :color_p=>true, :colors=>65536},
671
- "D503iS"=>
672
- {:browser_width=>132, :browser_height=>126, :color_p=>true, :colors=>4096},
673
- "N05A"=>
674
- {:browser_width=>240, :browser_height=>320, :color_p=>true, :colors=>262144},
675
- "L03A"=>
676
- {:browser_width=>240, :browser_height=>280, :color_p=>true, :colors=>262144},
677
- "P903i"=>
678
- {:browser_width=>240, :browser_height=>270, :color_p=>true, :colors=>262144},
679
- "D252i"=>
680
- {:browser_width=>176, :browser_height=>198, :color_p=>true, :colors=>262144},
681
- "SH2101V"=>
682
- {:browser_width=>800, :browser_height=>600, :color_p=>true, :colors=>65536},
683
- "F884iES"=>
684
- {:browser_width=>240, :browser_height=>282, :color_p=>true, :colors=>262144},
685
- "SH901iC"=>
686
- {:browser_width=>240, :browser_height=>252, :color_p=>true, :colors=>262144},
687
- "D2101V"=>
688
- {:browser_width=>120, :browser_height=>130, :color_p=>true, :colors=>262144},
689
- "D209i"=>
690
- {:browser_width=>96, :browser_height=>90, :color_p=>true, :colors=>256},
691
- "SO703i"=>
692
- {:browser_width=>240, :browser_height=>368, :color_p=>true, :colors=>262144},
693
- "D703i"=>
694
- {:browser_width=>230, :browser_height=>240, :color_p=>true, :colors=>262144},
695
- "SO506iS"=>
696
- {:browser_width=>240, :browser_height=>256, :color_p=>true, :colors=>262144},
697
- "D702iBCL"=>
698
- {:browser_width=>230, :browser_height=>240, :color_p=>true, :colors=>262144},
699
- "F883iS"=>
700
- {:browser_width=>240, :browser_height=>256, :color_p=>true, :colors=>65536},
701
- "P704imyu"=>
702
- {:browser_width=>240, :browser_height=>270, :color_p=>true, :colors=>262144},
703
- "D501i"=>
704
- {:browser_width=>96, :browser_height=>72, :color_p=>false, :colors=>2},
705
- "P701iD"=>
706
- {:browser_width=>240, :browser_height=>270, :color_p=>true, :colors=>65536},
707
- "F211i"=>
708
- {:browser_width=>96, :browser_height=>113, :color_p=>true, :colors=>4096},
709
- "N901iC"=>
710
- {:browser_width=>240, :browser_height=>270, :color_p=>true, :colors=>65536},
711
- "P906i"=>
712
- {:browser_width=>240, :browser_height=>350, :color_p=>true, :colors=>262144},
713
- "F502i"=>
714
- {:browser_width=>96, :browser_height=>91, :color_p=>true, :colors=>256},
715
- "L706ie"=>
716
- {:browser_width=>240, :browser_height=>280, :color_p=>true, :colors=>262144},
717
- "N506iSII"=>
718
- {:browser_width=>240, :browser_height=>295, :color_p=>true, :colors=>262144},
719
- "L06A"=>
720
- {:browser_width=>240, :browser_height=>313, :color_p=>true, :colors=>262144},
721
- "P03A"=>
722
- {:browser_width=>240, :browser_height=>350, :color_p=>true, :colors=>262144},
723
- "P903iTV"=>
724
- {:browser_width=>240, :browser_height=>350, :color_p=>true, :colors=>262144},
725
- "N211i"=>
726
- {:browser_width=>118, :browser_height=>128, :color_p=>true, :colors=>4096},
727
- "F900iT"=>
728
- {:browser_width=>230, :browser_height=>240, :color_p=>true, :colors=>262144},
729
- "SO706i"=>
730
- {:browser_width=>240, :browser_height=>320, :color_p=>true, :colors=>262144},
731
- "D900i"=>
732
- {:browser_width=>240, :browser_height=>270, :color_p=>true, :colors=>262144},
733
- "N502i"=>
734
- {:browser_width=>118, :browser_height=>128, :color_p=>false, :colors=>4},
735
- "D504i"=>
736
- {:browser_width=>132, :browser_height=>144, :color_p=>true, :colors=>262144},
737
- "SO504i"=>
738
- {:browser_width=>120, :browser_height=>112, :color_p=>true, :colors=>65536}}
739
- end