WWW::MobileCarrierJP::Softbank::Display - XXXXXX(Softbank)
use WWW::MobileCarrierJP::Softbank::Display;
my $table = WWW::MobileCarrierJP::Softbank::Display->scrape();
my $example = shift @$table;
my $modelname = $example->{model};
my ($browser_resolution) = List::Util::first @{ $example->{browser_pixels} };
printf "browser resolution of %s is %d x %d\n", $modelname,
$browser_resolution->{width}, $browser_resolution->{height};
Arrayref of hashes, structured as follows.
{
# Model Name
model => '941SH',
# Browser Dimensions (Array) :
# Some terminal supports multiple screen modes so this property
# may have several items. The order is same as on the table.
browser_pixels => [
{
orientation => 'X',
width => 480,
height => 824,
}, ...
],
# Maximum Displayable Characters in the Browser (Array)
# Same as above, in addition, the maximum number is vary
# depends on the font size setting.
browser_characters => [
{
orientation => 'X',
size_table => [
{
size_label => 'X',
cols => 19,
rows => 14,
# indicate whether default or not on some model
extra => '',
}, ...
],
}, ...
],
# Supported Screen Size on S! Appli (Array)
appli_pixels => [
{
orientation => 'X',
size_table => [
{
# sometimes contains "(XXXXXX)" (uncommon size)
resolution => 'QQVGA',
width => 120,
height => 130,
}, ...
],
}, ...
],
# Default Font Size on S! Appli (Array)
appli_fontsize => [
{
orientation => 'X',
size_table => [
{
# sometimes contains "(XXXXXX)" (uncommon size)
resolution => 'QQVGA',
width => 12,
height => 12,
}, ...
],
}, ...
],
# Widget Dimensions, run independently (Array)
widget => [
{
orientation => 'X',
width => 480,
height => 824,
}, ...
],
# Widget Dimensions, run from homescreen (Array)
widget_homescreen => [
{
orientation => 'X',
width => 480,
height => 824,
}, ...
],
# Flash Dimensions (Hash)
flash => {
width => 480,
height => 824,
},
},
tnj / Yuki Fujisaki <tanji@nothing.sh>