WAP Pictogram Specification学习笔记
1。
Pictograms需要user agent预装的,它分为文本和图片两种。文本的pictogram一般是unicode 中已经定义的,占用2-4个字节,不能扩展;图片的pictogram,则是可以动态添加的。主要分Core和Pictogram Dictionary两个大的类别。
2。
pict_URI = abs_URI
abs_URI = scheme ":" net_path
scheme = "pict"
net_path = "//" authority abs_path
abs_path = "/" path_segments
authority = [ server ]
server = hostport
hostport = host [ ":" port ]
host = hostname | IPv4address
hostname = *( domainlabel "." ) toplabel [ "." ]
= alphanum | alphanum *( alphanum | "-" ) alphanum
domainlabel
toplabel = alpha | alpha *( alphanum | "-" ) alphanum
IPv4address = 1*digit "." 1*digit "." 1*digit "." 1*digit
port = *digit
path_segments = class_name "/" pictogram_name
class_name = segment *( "/" segment )
segment = *pchar
pictogram_name= *pchar
pchar = unreserved | escaped |
":" | "@" | "&" | "=" | "+" | "$" | ","
3 General Processing Model
1. If "pict" scheme is identified it MUST be treated as a pictogram.
2. If the authority is omitted in the local name, the user agent MUST assume that it is "www.wapforum.org".
3. If the user agent supports graphical image and does not have the image data of the pictogram, it SHOULD download the
image data from the URL specified in the src attribute if it’s provided.
4. If the user agent does not support graphical image, or unable to download the image by any reason, it MUST render or
present the alternative text in the alt attribute in the most appropriate way to its capability.
1。
Pictograms需要user agent预装的,它分为文本和图片两种。文本的pictogram一般是unicode 中已经定义的,占用2-4个字节,不能扩展;图片的pictogram,则是可以动态添加的。主要分Core和Pictogram Dictionary两个大的类别。
2。
pict_URI = abs_URI
abs_URI = scheme ":" net_path
scheme = "pict"
net_path = "//" authority abs_path
abs_path = "/" path_segments
authority = [ server ]
server = hostport
hostport = host [ ":" port ]
host = hostname | IPv4address
hostname = *( domainlabel "." ) toplabel [ "." ]
= alphanum | alphanum *( alphanum | "-" ) alphanum
domainlabel
toplabel = alpha | alpha *( alphanum | "-" ) alphanum
IPv4address = 1*digit "." 1*digit "." 1*digit "." 1*digit
port = *digit
path_segments = class_name "/" pictogram_name
class_name = segment *( "/" segment )
segment = *pchar
pictogram_name= *pchar
pchar = unreserved | escaped |
":" | "@" | "&" | "=" | "+" | "$" | ","
3 General Processing Model
1. If "pict" scheme is identified it MUST be treated as a pictogram.
2. If the authority is omitted in the local name, the user agent MUST assume that it is "www.wapforum.org".
3. If the user agent supports graphical image and does not have the image data of the pictogram, it SHOULD download the
image data from the URL specified in the src attribute if it’s provided.
4. If the user agent does not support graphical image, or unable to download the image by any reason, it MUST render or
present the alternative text in the alt attribute in the most appropriate way to its capability.