WAP Pictogram Specification学习笔记

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.


 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值