-
公开(公告)号:US20150058715A1
公开(公告)日:2015-02-26
申请号:US14388529
申请日:2013-09-04
Inventor: Jie Liang , Xiaopeng He , Yongfu Yu , Shunyan Zhu , Xing Yang
CPC classification number: G06F17/2252 , G06F17/2217 , G06F17/272
Abstract: Methods and apparatus for compressing webpage text are provided. According to a webpage-opening request of a mobile terminal browser, a current language environment of the terminal is obtained. According to the language environment, a character container corresponding to the language environment is initialized. Requested webpage data are received. The received webpage data are parsed. The webpage data are merged and stored using the corresponding character container. During the initializing of the corresponding character container according to the language environment, it is determined whether the language environment belongs to Latin languages. When the language environment belongs to Latin languages, the character container is initialized to store utf-8 encoded data. Otherwise, the character container is initialized to store utf-16 encoded data. The present disclosure can intelligently determine a storage method according to the language environment, optimize and adapt stored content, and effectively reduce the browser memory occupied by the webpage data.
Abstract translation: 提供了压缩网页文本的方法和装置。 根据移动终端浏览器的网页打开请求,获得终端的当前语言环境。 根据语言环境,初始化与语言环境对应的字符容器。 收到要求的网页数据。 接收的网页数据被解析。 使用相应的字符容器合并和存储网页数据。 在根据语言环境初始化对应的字符容器时,确定语言环境是否属于拉丁语。 当语言环境属于拉丁语言时,字符容器被初始化以存储utf-8编码数据。 否则,字符容器被初始化以存储utf-16编码数据。 本公开可以根据语言环境智能地确定存储方法,优化和调整存储的内容,并有效地减少网页数据占用的浏览器内存。
-
公开(公告)号:US09542373B2
公开(公告)日:2017-01-10
申请号:US14388529
申请日:2013-09-04
Applicant: GUANGZHOU UCWEB COMPUTER TECHNOLOGY CO., LTD
Inventor: Jie Liang , Xiaopeng He , Yongfu Yu , Shunyan Zhu , Xing Yang
CPC classification number: G06F17/2252 , G06F17/2217 , G06F17/272
Abstract: Methods and apparatus for compressing webpage text are provided. According to a webpage-opening request of a mobile terminal browser, a current language environment of the terminal is obtained. According to the language environment, a character container corresponding to the language environment is initialized. Requested webpage data are received. The received webpage data are parsed. The webpage data are merged and stored using the corresponding character container. During the initializing of the corresponding character container according to the language environment, it is determined whether the language environment belongs to Latin languages. When the language environment belongs to Latin languages, the character container is initialized to store utf-8 encoded data. Otherwise, the character container is initialized to store utf-16 encoded data. The present disclosure can intelligently determine a storage method according to the language environment, optimize and adapt stored content, and effectively reduce the browser memory occupied by the webpage data.
Abstract translation: 提供了压缩网页文本的方法和装置。 根据移动终端浏览器的网页打开请求,获得终端的当前语言环境。 根据语言环境,初始化与语言环境对应的字符容器。 收到要求的网页数据。 接收的网页数据被解析。 使用相应的字符容器合并和存储网页数据。 在根据语言环境初始化对应的字符容器时,确定语言环境是否属于拉丁语。 当语言环境属于拉丁语言时,字符容器被初始化以存储utf-8编码数据。 否则,字符容器被初始化以存储utf-16编码数据。 本公开可以根据语言环境智能地确定存储方法,优化和调整存储的内容,并有效地减少网页数据占用的浏览器内存。
-