WO2014206108A1 - 用于移动终端上的文本内容显示的方法、装置及系统 - Google Patents

用于移动终端上的文本内容显示的方法、装置及系统 Download PDF

Info

Publication number
WO2014206108A1
WO2014206108A1 PCT/CN2014/072735 CN2014072735W WO2014206108A1 WO 2014206108 A1 WO2014206108 A1 WO 2014206108A1 CN 2014072735 W CN2014072735 W CN 2014072735W WO 2014206108 A1 WO2014206108 A1 WO 2014206108A1
Authority
WO
WIPO (PCT)
Prior art keywords
mobile terminal
text data
webpage
webpage text
displayed
Prior art date
Application number
PCT/CN2014/072735
Other languages
English (en)
French (fr)
Inventor
陈嘉彬
Original Assignee
广州市动景计算机科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广州市动景计算机科技有限公司 filed Critical 广州市动景计算机科技有限公司
Publication of WO2014206108A1 publication Critical patent/WO2014206108A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents

Definitions

  • the present invention relates to the field of mobile communications technologies, and, more particularly, to a method, apparatus, and system for displaying text content on a mobile terminal.
  • BACKGROUND Due to limited storage space on a mobile terminal, most mobile terminals do not install a complete text layout engine and a font library for multilingual purposes, so that when using a mobile terminal for web browsing, some special languages in the webpage cannot be correctly displayed.
  • Content For example, some mobile terminals sold in India do not provide text display support for Hindi, and Hindi is a very popular language in India. Many local websites contain content written in Hindi. In this case, these contents written in Hindi cannot be displayed on the mobile terminal.
  • a third party application needs to be installed on the mobile terminal to provide an additional means to display the Hindi content that is not supported by the mobile terminal system.
  • the first method (hereinafter referred to as method 1) is to install a typesetting software and a font library corresponding to the characters for the mobile terminal system.
  • the second method (hereinafter referred to as method 2) is to add a typesetting library and a font library of the corresponding character set in the typesetting software, and then call the corresponding typesetting library and font library to display when special characters need to be displayed.
  • Method 1 does not apply in this case. In other words, the scope of application of Method 1 is limited. Although the scope of application of the method 2 is not limited, since the corresponding typesetting library and font library need to be added to the software in the method 2, the processing resources of the mobile terminal are occupied, thereby affecting other software on the mobile terminal. operating efficiency.
  • the present invention provides a method, apparatus, and system for displaying webpage text content on a mobile terminal. The method, apparatus, and system can implement webpage text content that is not supported by the mobile terminal system on the mobile terminal.
  • a method for displaying webpage text content on a mobile terminal implemented on a cloud server side includes: after receiving webpage address information of a webpage text content to be displayed from a mobile terminal, Obtaining corresponding webpage text data from the target server according to the webpage address information; identifying, from the webpage text data, a webpage text data segment that the mobile terminal cannot display; and obtaining, by the webpage text data fragment that cannot be displayed, a picture file of a picture format supported by the mobile terminal; performing, according to the saved picture file, a replacement process of the webpage text data segment that cannot be displayed by the mobile terminal in the webpage text data; and completing the replaced webpage text Data is sent to the mobile terminal for display by the mobile terminal.
  • a method for displaying a webpage text content on a mobile terminal including: sending, on a mobile terminal side, a webpage address of a webpage to be displayed to a cloud server after receiving a webpage text content display instruction And displaying, after receiving the replaced webpage text data from the cloud server, displaying based on the received webpage text data; and receiving, on the cloud server side, the webpage text content to be displayed from the mobile terminal
  • the webpage address information the corresponding webpage text data is obtained from the target server according to the webpage address information; the webpage text data segment that the mobile terminal cannot display is identified from the webpage text data; and the webpage that cannot be displayed is
  • the text data segment is obtained as a picture file having a picture format supported by the mobile terminal; and based on the saved picture file, performing replacement processing on the webpage text data segment that cannot be displayed by the mobile terminal in the webpage text data; and Replaced web page text data To the mobile terminal.
  • a webpage text content display method including: after receiving a webpage text content display instruction, transmitting webpage address information of a webpage to be displayed to a cloud server; receiving webpage text data that cannot be displayed The segment is replaced with webpage text data of a picture file having a picture format supported by the mobile terminal; the replaced webpage text data is displayed on the mobile terminal.
  • a webpage text content display method including: acquiring corresponding webpage text data from a target server according to webpage address information from a mobile terminal; and identifying the webpage text data from the webpage text data a webpage text data segment that cannot be displayed by the mobile terminal; a webpage text data segment that cannot be displayed by the mobile terminal to obtain a photo file having a picture format supported by the mobile terminal; and a webpage that cannot be displayed by the mobile terminal in the webpage text data
  • the text data segment is replaced with the image file; the web page text data after the replacement is completed is sent to the mobile terminal.
  • an apparatus for displaying webpage text content on a mobile terminal on a cloud server including: a webpage text data acquiring unit, configured to receive webpage text to be displayed from a mobile terminal After the webpage address information of the content, the corresponding webpage text data is obtained from the target server according to the webpage address information; the identifying unit is configured to identify, from the webpage text data, that the mobile terminal cannot display a webpage text data segment; a picture saving unit, configured to obtain, by the unreachable webpage text data segment, a picture file having a picture format supported by the mobile terminal; a replacement unit, configured to use the saved image file, And the sending unit is configured to send the completed webpage text data to the mobile terminal for display by the mobile terminal, .
  • a webpage text content display system including a mobile terminal and a cloud server, wherein the mobile terminal includes: a first sending unit, after receiving the webpage text content display instruction, to the cloud The server sends the webpage address information of the webpage to be displayed; and the display unit is configured to display, according to the received webpage text data, after receiving the replaced webpage text data from the cloud server, on the cloud server side a webpage text data obtaining unit, configured to: after receiving the webpage address information of the webpage text content to be displayed from the mobile terminal, obtain corresponding webpage text data from the target server according to the webpage address information; The webpage text data identifies the webpage text data segment that the mobile terminal cannot display; the image saving unit is configured to obtain the image file having the image format supported by the mobile terminal by the webpage text data segment that cannot be displayed; Replacement unit for a saved image file, performing a replacement process on the webpage text data segment that cannot be displayed by the mobile terminal in the webpage text data; and a second sending unit, configured to send the completed webpage text data to the mobile terminal
  • a computer readable medium having program code executable by a processor, wherein, when executed, the program code causes the processor to perform the following steps: After receiving the webpage address information of the text content of the webpage to be displayed, the terminal obtains corresponding webpage text data from the target server according to the webpage address information; and identifies webpage text that cannot be displayed by the mobile terminal from the webpage text data.
  • a computer program for performing the following steps: acquiring corresponding webpage text data from a target server according to webpage address information corresponding to webpage text content to be displayed; The data text segment of the webpage that cannot be displayed by the mobile terminal is identified in the data; the image file having the image format supported by the mobile terminal is obtained from the webpage text data segment that cannot be displayed; based on the saved image file, the mobile terminal in the webpage text data cannot be The displayed webpage text data segment is subjected to replacement processing; the webpage text data after the replacement is completed is sent to the mobile terminal for display.
  • the characters that cannot be normally displayed on the mobile terminal are graphically drawn on the cloud server side and converted into image formats that the mobile terminal can support, and then the webpage text is replaced by the image file.
  • the corresponding content in the data is returned to the mobile terminal for display, and the webpage text content that the mobile terminal cannot display normally can be displayed on the mobile terminal.
  • FIG. 1 is a flow chart showing a web page text content display method according to an embodiment of the present invention
  • FIG. 2 is a block diagram showing a web page text content display system according to an embodiment of the present invention
  • 3 is a block schematic diagram of an apparatus implemented at a cloud server for display of web page text content on a mobile terminal.
  • the same reference numerals are used throughout the drawings to refer to the Specific Pulmonary Aspects Various aspects of the present disclosure are described below. It should be understood that the teachings herein may be embodied in a variety of forms, and that any specific structure, function, or both disclosed herein are merely representative.
  • FIG. 1 shows a flow chart of a web page text content display method in accordance with an embodiment of the present invention. As shown in FIG.
  • step S110 the webpage address information of the webpage to be displayed and the character set supported by the mobile terminal are transmitted to the cloud server.
  • the mobile terminal may also send other data to be submitted to the cloud server to the cloud server, such as form data for form operations.
  • step S115 the cloud server acquires corresponding webpage text data from the target server according to the webpage address information.
  • the cloud server is an intermediate server
  • the target server is a content server for providing webpage text content.
  • the webpage text data may be a webpage text string.
  • the cloud server identifies, from the acquired webpage text data, a webpage text data segment that cannot be displayed by the mobile terminal according to the character set supported by the mobile terminal. For example, the cloud server may perform query comparison on each character in the webpage text string one by one according to the character set supported by the mobile terminal. If the character is a character that the mobile terminal does not support display, the character is considered to be a character that the mobile terminal cannot display. And after completing the query comparison, the adjacent characters determined to be incapable of being displayed by the mobile terminal are combined into a webpage text data segment (string) that the mobile terminal cannot display.
  • the cloud server may further generate a corresponding character attribute lookup table according to the received character set supported by the mobile terminal.
  • the cloud server may compare the received character set (first character set) with a character set (second character set) existing in the cloud server, and set the second character set to a character different from the character in the first character set. Marked as a character that the mobile terminal cannot display, thus generating a corresponding character property lookup table. Then, the cloud server uses the character property query table to check each character in the text data of the webpage one by one, thereby finding a webpage text data segment that cannot be normally displayed by the client through the system function of the terminal.
  • the "character attribute query table" is mainly used to determine whether each character can be displayed on the mobile terminal. Each character in the character set has a unique number for its encoding.
  • a Boolean array can be used as a character property query table.
  • the subscript of the array is a character in the second character set. Encoding, the value of each subscript corresponding unit in the array is only true or false. If the character can be displayed in the mobile terminal, the value is true, otherwise it is false.
  • the text layout engine in the cloud server is invoked, and the undisplayable webpage text data segment is adapted and rearranged based on the desired font size and the screen size of the mobile terminal, thereby Determining the size and relative position of each character in the webpage text data segment that cannot be displayed when displayed.
  • the text layout engine includes, but is not limited to, a text layout engine such as Freetype, WTLayout, and the like.
  • the relative position refers to the position of each character occupied by each other at the time of typesetting.
  • the desired font size and screen size of the mobile terminal may be sent to the cloud server together with the webpage address and the character set supported by the mobile terminal or separately from the mobile terminal.
  • the webpage address and the character set supported by the mobile terminal are transmitted to the cloud server, and the model of the mobile terminal is also sent to the cloud server.
  • the cloud server After receiving the model of the mobile terminal, acquires a corresponding screen size according to the model of the mobile terminal, and specifies a desired font size according to the screen size.
  • the corresponding screen size can be obtained by querying the correspondence table.
  • the cloud server may obtain the corresponding screen size by sending the model to the network and querying via the network.
  • the layout size of the drawing space is set to be equal to the number of points between the left line of the leftmost character and the right line of the rightmost character, and the height is equal to the uppermost character. The number of points between the edge to the lower edge of the bottom character.
  • the font rendering engine in the cloud server is called to load the corresponding font library, and the graphics of each character in the font library are drawn on the corresponding positions of the set drawing space. For example, a graph of each character can be drawn based on the relative position determined above.
  • the font layout engine includes, but is not limited to, a font rendering engine such as Freetyp e or iType.
  • step S140 the drawn graphics are saved as a picture file having a picture format supported by the mobile terminal.
  • step S145 based on the saved picture file, a replacement process is performed on the webpage text data segment that cannot be displayed by the mobile terminal in the webpage text data.
  • step S150 the web page text data after the replacement is completed is transmitted to the mobile terminal.
  • the mobile terminal displays the received webpage text data in step S155, thereby implementing display of characters not supported by the mobile terminal.
  • the replacing the webpage text data segment that cannot be displayed by the mobile terminal in the webpage text data based on the saved image file may be replacing the webpage text data by using the saved image file.
  • a piece of web text data that cannot be displayed by the mobile terminal in the middle when displaying on the mobile terminal, the terminal system of the mobile terminal does not support the displayed characters, and displays based on the picture file.
  • the replacing the webpage text data segment that cannot be displayed by the mobile terminal in the webpage text data based on the saved image file may be replaced by using a reference method for the saved image file. a webpage text data segment that cannot be displayed by the mobile terminal in the webpage text data.
  • the saved picture file is also transmitted to the mobile terminal.
  • the mobile terminal finds the image file by referring to the text data in the webpage, and then displays the image file at the corresponding location.
  • the manner in which the picture file is referenced is explained by way of example as follows.
  • the cloud server returns the replaced webpage text data to the mobile terminal, the webpage source file and the webpage related content are packaged to generate a zip-like compressed package.
  • the compressed package contains a file index, which records the index name of each file in the compressed package, the original file name and the obtained path (URI, universal resource identifier), and the data of the file.
  • the file a in the compressed package may be a network file that can be obtained through the URL (for example: http://www.uc.cn/favicon.ico), or it may be A file or image that the middleware adds itself. If the file cannot be accessed by the URI, only the data of the file is given in the index and the empty string is used as the URI to distinguish.
  • Fig. 2 is a block diagram showing a webpage text content display system 1 according to an embodiment of the present invention.
  • the web page text content display system 1 includes a mobile terminal 10 and a cloud server 20.
  • the mobile terminal 10 includes a first transmitting unit 110, a first receiving unit 120, and a display unit 130.
  • the cloud server 20 includes a web page for use on the mobile terminal.
  • Device 200 for displaying text content FIG. 3 shows text content of a webpage implemented on a mobile terminal implemented in a cloud server.
  • FIG. 3 shows text content of a webpage implemented on a mobile terminal implemented in a cloud server.
  • the device 200 includes a second receiving unit 210, a webpage text data acquiring unit 211, an identifying unit 212, a text typesetting engine calling unit 213, and a font rendering engine calling unit 214. , a picture saving unit 215, a replacement unit 216, and a second transmitting unit 217.
  • the first sending unit 110 sends the webpage address information of the webpage to be displayed and the character set supported by the mobile terminal to the cloud server.
  • the display unit 130 displays the received web page text data.
  • the webpage text data acquiring unit 211 is based on the webpage address information.
  • the target server obtains corresponding webpage text data.
  • the webpage text data may be a character string.
  • the identification unit 212 identifies a webpage text data segment that the mobile terminal cannot display from the webpage text data according to the character set supported by the mobile terminal.
  • the text layout engine calling unit 213 calls the text layout engine in the cloud server, and adapts the undisplayable webpage text data segment based on the desired font size and screen size of the mobile terminal. rearrange.
  • the desired font size and screen size of the mobile terminal may be sent to the cloud server together with the webpage address and the character set supported by the mobile terminal or separately from the mobile terminal.
  • the webpage address and the character set supported by the mobile terminal are transmitted to the cloud server, and the model of the mobile terminal is also sent to the cloud server.
  • the cloud server After receiving the model of the mobile terminal, the cloud server acquires a corresponding screen size according to the model of the mobile terminal, and specifies a desired font size according to the screen size.
  • the font rendering engine calling unit 214 calls the font rendering engine in the cloud server to load the corresponding font library, and draws each corresponding position in the drawing space of the cloud server based on the size and relative position of each character after the rearrangement.
  • the apparatus 200 may further include a drawing space layout size setting unit (not shown) for setting the size based on the size and relative position of each character after the rearrangement The layout size of the drawing space.
  • the font rendering engine calling unit 214 calls the font rendering engine in the cloud server to load the corresponding font library, and draws a graphic of each character in the font library at a corresponding position of the set drawing space.
  • the picture saving unit 215 saves the drawn graphic as a picture file having a picture format supported by the mobile terminal.
  • the replacing unit 216 performs a replacement process on the webpage text data segment that cannot be displayed by the mobile terminal in the webpage text data based on the saved image file.
  • the second sending unit 217 sends the completed webpage text data to the mobile terminal for display by the mobile terminal.
  • the replacement unit 216 is configured to replace, with the saved picture file, a web page text data segment that is not displayable by the mobile terminal in the web page text data.
  • the replacement unit 216 is configured to replace a web page text data segment that is not displayable by the mobile terminal in the web page text data with a reference to the saved picture file. In this case, when the web page text data after the replacement is completed is transmitted to the mobile terminal, the second transmitting unit 217 also transmits the saved picture file to the mobile terminal.
  • the characters that cannot be normally displayed on the mobile terminal can be graphically drawn on the cloud server side and converted into image formats that the mobile terminal can support, and then the corresponding content in the webpage text data is replaced by the image file, and Returning to the mobile terminal for display, thereby displaying the webpage text content that the mobile terminal cannot display normally on the mobile terminal.
  • the mobile terminal described in the embodiment of the present invention may be various handheld terminal devices with Bluetooth functions, such as a Bluetooth-enabled mobile phone and a personal digital assistant (PDA).
  • the method according to an embodiment of the present invention may also be implemented as a computer program executed by a processor (such as a CPU) in a mobile terminal, and stored in a memory of the mobile terminal.
  • a method according to an embodiment of the invention may also be implemented as a computer program product comprising a computer readable medium having stored thereon the above defined in the method for performing an embodiment of the invention Functional computer program.
  • the method steps and system units described above may also be implemented with a controller and a computer readable storage device for storing a computer program that causes the controller to implement the steps or unit functions described above.
  • the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both.

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明提供了一种移动终端上的网页文本内容显示方法,包括:根据待显示的网页文本内容对应的网页地址信息,从目标服务器获取对应的网页文本数据;从网页文本数据中识别出移动终端无法显示的网页文本数据片段;由无法显示的网页文本数据片段得到具有移动终端支持的图片格式的图片文件;基于所保存的图片文件,对网页文本数据中的移动终端无法显示的网页文本数据片段进行替换处理;将完成替换后的网页文本数据发送给移动终端进行显示。利用该方法,可以在移动终端上显示无法正常显示的字符。

Description

用于移动终端上的文本内容显示的方法、 装置及系统 技术领域 本发明涉及移动通信技术领域, 更为具体地, 涉及一种用于移动终端上的文本内 容显示的方法、 装置及系统。 背景技术 由于移动终端上的存储空间有限, 所以大多数移动终端都没有针对多语种安装完 整的文本排版引擎和字体库, 由此在利用移动终端进行网页浏览时, 无法正确显示网 页中一些特殊语种的内容。 例如, 在印度销售的一些移动终端上没有提供对印地语的 文本显示支持, 而印地语又是印度当地非常流行的语种, 不少当地的网站上包含利用 印地语编写的内容。 在这种情况下, 在移动终端上无法显示这些利用印地语编写的内 容。 如果用户需要阅读这些内容, 就需要在移动终端上安装第三方应用程序来提供一 种额外的手段显示移动终端系统不支持的印地语内容。 对于如何在移动终端上显示移动终端系统本身并不支持的字符, 目前主要采用下 述两种方法。 第一种方法 (下文中称为方法 1 ) 是为移动终端系统安装相关字符对应 的排版软件和字体库。 第二种方法 (下文中称为方法 2) 是在排版软件中加入相应字 符集的排版库和字体库, 然后在需要显示特殊字符的时候, 调用该相应的排版库和字 体库来进行显示。 然而, 由于很多功能机的系统并不允许用户自行安装特殊字符集的排版库和字体 库, 在这种情况下, 方法 1并不适用。 换言之, 方法 1的适用范围受限。 方法 2的适用范围虽然并不受限, 但是由于在方法 2中需要在软件中额外加入相 应的排版库和字体库, 从而会占用移动终端的处理资源, 由此影响移动终端上的其它 软件的运行效率。 发明内容 鉴于上述,本发明提出了一种移动终端上的网页文本内容显示方法、装置及系统, 该方法、 装置及系统能够实现在移动终端上需要显示移动终端系统不支持的网页文本 内容。 根据本发明的一个方面, 提供了一种在云端服务器侧实现的用于移动终端上的网 页文本内容显示的方法, 包括: 在从移动终端接收到要显示的网页文本内容的网页地 址信息后, 根据所述网页地址信息, 从目标服务器获取对应的网页文本数据; 从所述 网页文本数据中识别出所述移动终端无法显示的网页文本数据片段; 由所述无法显示 的网页文本数据片段得到具有所述移动终端支持的图片格式的图片文件; 基于所保存 的图片文件, 对所述网页文本数据中的所述移动终端无法显示的网页文本数据片段进 行替换处理; 以及将完成替换后的网页文本数据发送给所述移动终端, 以供所述移动 终端进行显示。 根据本发明的另一方面,提供了一种移动终端上的网页文本内容显示方法,包括: 在移动终端侧, 在接收到网页文本内容显示指令后, 向云端服务器发送要显示的网页 的网页地址信息; 以及在从所述云端服务器接收到完成替换后的网页文本数据后, 基 于所接收的网页文本数据进行显示; 在所述云端服务器侧, 在从移动终端接收到要显 示的网页文本内容的网页地址信息后, 根据所述网页地址信息, 从目标服务器获取对 应的网页文本数据; 从所述网页文本数据中识别出所述移动终端无法显示的网页文本 数据片段; 由所述无法显示的网页文本数据片段得到具有所述移动终端支持的图片格 式的图片文件; 基于所保存的图片文件, 对所述网页文本数据中的所述移动终端无法 显示的网页文本数据片段进行替换处理; 以及将完成替换后的网页文本数据发送给所 述移动终端。
根据本发明的另一方面, 提供了一种网页文本内容显示方法, 包括: 接收到网页 文本内容显示指令后, 向云端服务器发送要显示的网页的网页地址信息; 接收将无法 显示的网页文本数据片段替换为具有移动终端支持的图片格式的图片文件的网页文本 数据; 在该移动终端上显示所述替换后的网页文本数据。
根据本发明的另一方面, 提供了一种网页文本内容显示方法, 包括: 根据来自移 动终端的网页地址信息, 从目标服务器获取对应的网页文本数据; 从所述网页文本数 据中识别出所述移动终端无法显示的网页文本数据片段; 由所述移动终端无法显示的 网页文本数据片段得到具有所述移动终端支持的图片格式的图片文件; 将所述网页文 本数据中的移动终端无法显示的网页文本数据片段替换为所述图片文件; 将完成替换 后的网页文本数据发送至所述移动终端。 根据本发明的另一方面, 提供了一种云端服务器上的用于移动终端上的网页文本 内容显示的装置, 包括: 网页文本数据获取单元, 用于在从移动终端接收到要显示的 网页文本内容的网页地址信息后, 根据所述网页地址信息, 从目标服务器获取对应的 网页文本数据; 识别单元, 用于从所述网页文本数据中识别出所述移动终端无法显示 的网页文本数据片段; 图片保存单元, 用于由所述无法显示的网页文本数据片段得到 具有所述移动终端支持的图片格式的图片文件; 替换单元, 用于基于所保存的图片文 件, 对所述网页文本数据中的所述移动终端无法显示的网页文本数据片段进行替换处 理; 以及发送单元, 用于将完成替换后的网页文本数据发送给所述移动终端, 以供所 述移动终端进行显示。 根据本发明的另一方面, 提供了一种网页文本内容显示系统, 包括移动终端和云 端服务器, 其中, 所述移动终端包括: 第一发送单元, 在接收到网页文本内容显示指 令后, 向云端服务器发送要显示的网页的网页地址信息; 以及显示单元, 用于在从所 述云端服务器接收到完成替换后的网页文本数据后, 基于所接收的网页文本数据进行 显示; 在所述云端服务器侧, 网页文本数据获取单元, 用于在从移动终端接收到要显 示的网页文本内容的网页地址信息后, 根据所述网页地址信息, 从目标服务器获取对 应的网页文本数据; 识别单元, 用于从所述网页文本数据中识别出所述移动终端无法 显示的网页文本数据片段; 图片保存单元, 用于由所述无法显示的网页文本数据片段 得到具有所述移动终端支持的图片格式的图片文件; 替换单元, 用于基于所保存的图 片文件, 对所述网页文本数据中的所述移动终端无法显示的网页文本数据片段进行替 换处理; 以及第二发送单元,用于将完成替换后的网页文本数据发送给所述移动终端。 根据本发明的另一方面, 提供了一种具有处理器可执行的程序代码的计算机可读 介质, 其特征在于, 在被执行时, 所述程序代码使得处理器执行下述步骤: 在从移动 终端接收到要显示的网页文本内容的网页地址信息后, 根据所述网页地址信息, 从目 标服务器获取对应的网页文本数据; 从所述网页文本数据中识别出所述移动终端无法 显示的网页文本数据片段; 由所述无法显示的网页文本数据片段得到具有所述移动终 端支持的图片格式的图片文件; 基于所保存的图片文件, 对所述网页文本数据中的所 述移动终端无法显示的网页文本数据片段进行替换处理; 以及将完成替换后的网页文 本数据发送给所述移动终端, 以供所述移动终端进行显示。 根据本发明的另一方面, 提供了一种计算机程序, 该计算机程序用于执行以下步 骤: 根据待显示的网页文本内容对应的网页地址信息, 从目标服务器获取对应的网页 文本数据; 从网页文本数据中识别出移动终端无法显示的网页文本数据片段; 由无法 显示的网页文本数据片段得到具有移动终端支持的图片格式的图片文件; 基于所保存 的图片文件, 对网页文本数据中的移动终端无法显示的网页文本数据片段进行替换处 理; 将完成替换后的网页文本数据发送给移动终端进行显示。 利用上述方法及系统, 通过在云端服务器侧对移动终端上无法正常显示的字符进 行图形绘制并转换为移动终端能够支持的图片格式, 然后利用该图片文件替换网页文 本数据中的对应内容, 并返回给移动终端来进行显示, 可以实现在移动终端上显示移 动终端无法正常显示的网页文本内容。 为了实现上述以及相关目的, 本发明的一个或多个方面包括后面将详细说明并在 权利要求中特别指出的特征。 下面的说明以及附图详细说明了本发明的某些示例性方 面。 然而, 这些方面指示的仅仅是可使用本发明的原理的各种方式中的一些方式。 此 夕卜, 本发明旨在包括所有这些方面以及它们的等同物。 附图说明 根据下述参照附图进行的详细描述, 本发明的上述和其他目的、 特征和优点将变 得更加显而易见。 在附图中: 图 1示出了根据本发明的实施例的网页文本内容显示方法的流程图; 图 2示出了根据本发明的实施例的网页文本内容显示系统的方框示意图; 以及 图 3示出了在云端服务器实现的用于移动终端上的网页文本内容显示的装置的方 框示意图。 在所有附图中相同的标号指示相似或相应的特征或功能。 具体实肺式 下面描述本公开的各个方面。 应该明白的是, 本文的教导可以以多种多样形式具 体体现, 并且在本文中公开的任何具体结构、 功能或两者仅仅是代表性的。 基于本文 的教导, 本领域技术人员应该明白的是, 本文所公开的一个方面可以独立于任何其它 方面实现, 并且这些方面中的两个或多个方面可以按照各种方式组合。 例如, 可以使 用本文所阐述的任何数目的方面, 实现装置或实践方法。 另外, 可以使用其它结构、 功能、 或除了本文所阐述的一个或多个方面之外或不是本文所阐述的一个或多个方面 的结构和功能, 实现这种装置或实践这种方法。 此外, 本文所描述的任何方面可以包 括权利要求的至少一个元素。 下面将参照附图描述本发明的各个实施例。 图 1示出了根据本发明的实施例的根据本发明的实施例的网页文本内容显示方法 的流程图。 如图 1所示, 在移动终端检测(接收)到网页文本内容显示指令后,在步骤 S110, 向云端服务器发送要显示的网页的网页地址信息以及移动终端支持的字符集。 在本发 明的其它示例中,移动终端还可以向云端服务器发送其它要向云端服务器提交的数据, 比如用于表单操作的表单数据等。 在接收到移动终端发送的网页地址信息以及移动终端支持显示的字符集后, 在步 骤 S115 ,云端服务器根据所述网页地址信息,从目标服务器获取对应的网页文本数据。 这里, 云端服务器是中间服务器, 目标服务器是用于提供网页文本内容的内容服务器。 所述网页文本数据可以是网页文本字符串。 在步骤 S120, 云端服务器根据所述移动终端支持的字符集, 从所获取的网页文本 数据中识别出移动终端无法显示的网页文本数据片段。 例如, 云端服务器可以根据所 述移动终端支持显示的字符集, 对网页文本字符串中的每个字符逐个进行查询比对。 如果该字符是移动终端不支持显示的字符,则认为该字符是移动终端无法显示的字符。 并且在完成查询比对后, 将相邻的被确定为是移动终端无法显示的字符组合成移动终 端无法显示的网页文本数据片段 (字符串)。 优选地, 在本发明的另一示例中, 云端服务器还可以根据所接收的移动终端支持 显示的字符集, 生成相应的字符特性查询表。 例如, 云端服务器可以将所接收的字符 集 (第一字符集) 与云端服务器中存在的字符集 (第二字符集) 进行比较, 并且将第 二字符集中与第一字符集中的字符不同的字符标记为移动终端无法显示的字符, 从而 生成相应的字符特性查询表。 然后, 云端服务器利用该字符特性查询表, 对网页文本 数据中的每个字符逐一查表判断, 从而找出无法由客户端通过终端的系统功能正常显 示的网页文本数据片段。 其中, 关于"字符特性查询表", 主要是用来确定每个字符在 移动终端上是否可显示。 字符集中每个字符都有一个唯一的编号做为其编码, 以较为 简单的实现方式为例: 可用一个布尔数组做为字符特性查询表, 该数组的下标就是一 个字符在第二字符集中的编码, 该数组中每个下标对应单元的取值仅为 true或 false, 如果该字符可在移动终端中显示就取值为 true, 否则为 false。 在如上识别出网页文本数据片段后, 在步骤 S125, 调用云端服务器中的文本排版 引擎, 基于移动终端的期望字体大小和屏幕尺寸对所述无法显示的网页文本数据片段 进行适配重排, 从而确定所述无法显示的网页文本数据片段中的每个字符在显示时的 尺寸大小和相对位置。 这里, 所述文本排版引擎包括但不限于 Freetype、 WTLayout 等文本排版引擎。 所述相对位置是指每个字符在排版时占据的彼此之间的位置。 在本发明的一个示例中, 所述移动终端的期望字体大小和屏幕尺寸可以是与网页 地址和移动终端支持显示的字符集一起或者单独从移动终端发送给云端服务器的。 或 者, 在本发明的另一示例中, 在将网页地址和移动终端支持显示的字符集发送给云端 服务器的同时,还将移动终端的型号发送给云端服务器。在接收到移动终端的型号后, 云端服务器根据该移动终端的型号, 获取对应的屏幕大小, 并且根据该屏幕大小指定 期望字体大小。 这里, 在云端服务器存储有屏幕大小与型号的对应关系表的情况下, 可以通过查询该对应关系表来获取对应的屏幕大小。 在云端服务器没有存储对应关系 表或者该对应关系表中不存在对应的屏幕尺寸的情况下, 云端服务器可以通过将该型 号发送到网络上, 经由网络查询来获取对应的屏幕大小。 在确定出所述无法显示的网页文本数据片段中的每个字符的尺寸大小和相对位置 后, 在步骤 S130, 基于适配重排后的各个字符的尺寸大小和相对位置, 设定绘图空间 的排版大小。 所述绘图空间是指用于绘制无法显示的网页文本数据片段中的字符的空 间。 在本发明的一个示例中, 所述绘图空间的排版大小被设置为宽度等于从最左方字 符的左边线到最右方字符的右边线之间的点数, 以及高度等于从最上方字符的上边线 到最下方字符的下边线之间的点数。 在步骤 S135, 调用云端服务器中的字体渲染引擎加载相应的字体库, 并在设定的 绘图空间的对应位置上绘制出各个字符在所述字体库中的图形。 例如, 可以根据上面 确定出的相对位置来绘制各个字符的图形。所述字体排版引擎包括但不限于 Freetype、 iType等字体渲染引擎。 在如上绘制出各个字符的图形后, 在步骤 S140, 将所绘制出的图形保存为具有移 动终端支持的图片格式的图片文件。 在步骤 S145, 基于所保存的图片文件, 对所述网页文本数据中的移动终端无法显 示的网页文本数据片段进行替换处理。 接着, 在步骤 S150, 将完成替换后的网页文本 数据发送给移动终端。 在从云端服务器接收到完成替换后的网页文本数据后, 在步骤 S155, 移动终端显示所接收的网页文本数据, 从而实现对移动终端不支持显示的字符 的显示。 在本发明的一个示例中, 基于所保存的图片文件, 对所述网页文本数据中的移动 终端无法显示的网页文本数据片段进行替换处理可以是利用所保存的图片文件, 替换 所述网页文本数据中的移动终端无法显示的网页文本数据片段。 在这种情况下, 在移 动终端上进行显示时, 对于移动终端的终端系统不支持显示的字符, 基于该图片文件 进行显示。 在本发明的另一示例中, 基于所保存的图片文件, 对所述网页文本数据中的移动 终端无法显示的网页文本数据片段进行替换处理可以是利用针对所保存的图片文件的 引用方式, 替换所述网页文本数据中的移动终端无法显示的网页文本数据片段。 在这 种情况下, 在将完成替换后的网页文本数据发送给移动终端时, 还将所保存的图片文 件发送给移动终端。 在移动终端上进行显示时, 移动终端通过网页文本数据中的引用 方式找到该图片文件, 然后在相应的位置上显示该图片文件。 如下以示例的方式对图片文件的引用方式进行说明。 云端服务器在将替换后的网页文本数据返回给移动终端时, 会把网页源文件以及 网页相关的内容打包生成一个类似 zip格式的压縮包。 该压縮包中包含了一个文件索 弓 |, 文件索引记录了压縮包中各个文件的索引名、 原本的文件名和获取的路径 (URI, 通用资源标识符), 以及文件的数据。 通过压縮包的文件索引,可以知道压縮包中的文件 a对应的可能是可通过 URL获 取到的网络文件 (例如: http://www.uc.cn/favicon.ico), 也可能是中间件自行添加的文 件或图片。 如果是无法通过 URI来访问的文件, 在索引中只需给出文件的数据并以空 字符串作为 URI即可, 以便区分。 云端服务器与移动终端约定一种特殊的 URI scheme (例如 local: ) 来按索引名去 引用该压縮包中的文件。例如在网页中可通过插入一个形如 <img src="local:a7>的图片 标签来引用压縮包中的文件 a。在进行网页文本数据显示时, 就把压縮包中索引名为 a 的文件数据当成图片数据来解析,再把该图片的内容替换这个 img标签该显示的区域。 如上参照图 1描述了根据本发明实施例的网页文本内容显示方法。 本发明实施例 的上述网页文本内容显示方法, 可以采用软件实现, 也可以采用硬件实现, 或采用软 件和硬件组合的方式实现。 图 2示出了根据本发明的实施例的网页文本内容显示系统 1的方框示意图。 如图 2所示, 网页文本内容显示系统 1包括移动终端 10和云端服务器 20。 移动终端 10包 括第一发送单元 110、 第一接收单元 120和显示单元 130。 云端服务器 20包括用于移 动终端上的网页文本内容显示的装置 200。 图 3示出了在云端服务器实现的用于移动终端上的网页文本内容显示的装置 200 的方框示意图。 如图 3所示, 所述装置 200包括第二接收单元 210、 网页文本数据获 取单元 211、 识别单元 212、 文本排版引擎调用单元 213、字体渲染引擎调用单元 214、 图片保存单元 215、 替换单元 216和第二发送单元 217。 在移动终端侧, 在接收到网页文本内容显示指令后, 第一发送单元 110向云端服 务器发送要显示的网页的网页地址信息以及移动终端支持显示的字符集。 在第一接收 单元 120从云端服务器接收到完成替换后的网页文本数据后, 显示单元 130显示所接 收的网页文本数据。 在云端服务器侧, 在第二接收单元 210从移动终端接收到要显示的网页文本内容 的网页地址信息以及移动终端支持显示的字符集后, 网页文本数据获取单元 211根据 所述网页地址信息, 从目标服务器获取对应的网页文本数据。 所述网页文本数据可以 是字符串。 识别单元 212根据所述移动终端支持显示的字符集, 从所述网页文本数据中识别 出移动终端无法显示的网页文本数据片段。 在识别出无法显示的网页文本数据片段后, 文本排版引擎调用单元 213调用云端 服务器中的文本排版引擎, 基于移动终端的期望字体大小和屏幕尺寸对所述无法显示 的网页文本数据片段进行适配重排。 在本发明的一个示例中, 所述移动终端的期望字 体大小和屏幕尺寸可以是与网页地址和移动终端支持显示的字符集一起或者单独从移 动终端发送给云端服务器的。 或者, 在本发明的另一示例中, 在将网页地址和移动终 端支持显示的字符集发送给云端服务器的同时, 还将移动终端的型号发送给云端服务 器。 在接收到移动终端的型号后, 云端服务器根据该移动终端的型号, 获取对应的屏 幕大小, 并且根据该屏幕大小指定期望字体大小。 字体渲染引擎调用单元 214 调用云端服务器中的字体渲染引擎加载相应的字体 库, 并基于适配重排后的各个字符的尺寸大小和相对位置, 在云端服务器的绘图空间 的对应位置上绘制出各个字符在所述字体库中的图形。 在本发明的一个示例中,所述装置 200还可以包括绘图空间排版大小设定单元 (未 示出),用于基于适配重排后的各个字符的尺寸大小和相对位置,设定所述绘图空间的 排版大小。 然后, 字体渲染引擎调用单元 214调用云端服务器中的字体渲染引擎加载 相应的字体库, 并在设定的绘图空间的对应位置上绘制出各个字符在所述字体库中的 图形。 在如上完成图形绘制后, 图片保存单元 215将所绘制出的图形保存为具有移动终 端支持的图片格式的图片文件。 然后, 替换单元 216基于所保存的图片文件, 对所述 网页文本数据中的移动终端无法显示的网页文本数据片段进行替换处理。 第二发送单 元 217将完成替换后的网页文本数据发送给移动终端, 以供移动终端进行显示。 在本发明的一个示例中, 替换单元 216被配置为利用所保存的图片文件, 替换所 述网页文本数据中的移动终端无法显示的网页文本数据片段。在本发明的另一示例中, 替换单元 216被配置为利用针对所保存的图片文件的引用方式, 替换所述网页文本数 据中的移动终端无法显示的网页文本数据片段。 在这种情况下, 在将完成替换后的网 页文本数据发送给移动终端时, 第二发送单元 217还将所保存的图片文件发送给移动 终端。 利用上述方法及系统, 可以通过在云端服务器侧对移动终端上无法正常显示的字 符进行图形绘制并转换为移动终端能够支持的图片格式, 然后利用该图片文件替换网 页文本数据中的对应内容, 并返回给移动终端来进行显示, 由此实现在移动终端上显 示移动终端无法正常显示的网页文本内容。 此外, 典型地, 本发明实施例所述的移动终端可为各种具有蓝牙功能的手持终端 设备, 例如具有蓝牙功能的手机、 个人数字助理 (PDA)。 此外, 根据本发明实施例的方法还可以被实现为由移动终端中的处理器 (比如 CPU) 执行的计算机程序, 并且存储在移动终端的存储器中。 在该计算机程序被处理 器执行时, 执行本发明实施例的方法中限定的上述功能。 此外, 根据本发明实施例的方法还可以实现为一种计算机程序产品, 该计算机程 序产品包括计算机可读介质, 在该计算机可读介质上存储有用于执行本发明实施例的 方法中限定的上述功能的计算机程序。 此外, 上述方法步骤以及系统单元也可以利用控制器以及用于存储使得控制器实 现上述步骤或单元功能的计算机程序的计算机可读存储设备实现。 本领域技术人员还将明白的是, 结合这里的公开所描述的各种示例性逻辑块、 模 块、 电路和算法步骤可以被实现为电子硬件、 计算机软件或两者的组合。 为了清楚地 说明硬件和软件的这种可互换性, 已经就各种示意性组件、 方块、 模块、 电路和步骤 的功能对其进行了一般性的描述。 这种功能是被实现为软件还是被实现为硬件取决于 具体应用以及施加给整个系统的设计约束。 本领域技术人员可以针对每种具体应用以 各种方式来实现所述的功能,但是这种实现决定不应被解释为导致脱离本发明的范围。 尽管前面公开的内容示出了本发明的示例性实施例, 但是应当注意, 在不背离权 利要求限定的本发明的范围的前提下, 可以进行多种改变和修改。 根据这里描述的发 明实施例的方法权利要求的功能、 步骤和 /或动作不需以任何特定顺序执行。 此外, 尽 管本发明的元素可以以个体形式描述或要求, 但是也可以设想多个, 除非明确限制为 单数。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领域的技 术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和原则之内, 所作的 任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。

Claims

权 利 要 求 书 、 一种在移动终端上显示网页文本内容的方法, 包括:
根据待显示的网页文本内容对应的网页地址信息, 从目标服务器获取对应 的网页文本数据;
从所述网页文本数据中识别出移动终端无法显示的网页文本数据片段; 由所述无法显示的网页文本数据片段得到具有所述移动终端支持的图片格 式的图片文件;
基于所保存的图片文件, 对所述网页文本数据中的所述移动终端无法显示 的网页文本数据片段进行替换处理;
将完成替换后的网页文本数据发送给所述移动终端进行显示。 、 根据权利要求 1所述的方法, 其中, 从所述网页文本数据中识别出移动终端无 法显示的网页文本数据片段的步骤包括:
在从移动终端接收到所述移动终端支持显示的字符集后, 根据所述移动终 端支持显示的字符集, 从所述网页文本数据中识别出所述移动终端无法显示的 网页文本数据片段。 、 根据权利要求 1所述的方法, 其中, 由所述无法显示的网页文本数据片段得到 具有所述移动终端支持的图片格式的图片文件包括:
调用云端服务器中的文本排版引擎, 基于所述移动终端的期望字体大小和 屏幕尺寸对所述无法显示的网页文本数据片段进行适配重排;
调用所述云端服务器中的字体渲染引擎加载相应的字体库, 并基于适配重 排后的各个字符的尺寸大小和相对位置, 在所述云端服务器的绘图空间的对应 位置上绘制出各个字符在所述字体库中的图形; 以及
将所绘制出的图形保存为具有所述移动终端支持的图片格式的图片文件。 、 根据权利要求 3所述的方法, 其中, 调用云端服务器中的字体渲染引擎加载相 应的字体库, 并基于适配重排后的各个字符的尺寸大小和相对位置, 在云端服 务器的绘图空间的对应位置上绘制出各个字符在所述字体库中的图形包括: 调用所述云端服务器中的字体渲染引擎加载相应的字体库; 基于适配重排后的各个字符的尺寸大小和相对位置, 设定所述绘图空间的 排版大小;
在设定的绘图空间的对应位置上绘制出各个字符在所述字体库中的图形。 、 根据权利要求 4所述的方法, 其中, 所述绘图空间的排版大小被设置为宽度等 于从最左方字符的左边线到最右方字符的右边线之间的点数, 以及高度等于从 最上方字符的上边线到最下方字符的下边线之间的点数。 、 根据权利要求 1所述的方法, 其中, 基于所保存的图片文件, 对所述网页文本 数据中的移动终端无法显示的网页文本数据片段进行替换处理包括:
利用所保存的图片文件, 替换所述网页文本数据中的移动终端无法显示的 网页文本数据片段。 、 根据权利要求 1所述的方法, 其中, 基于所保存的图片文件, 对所述网页文本 数据中的移动终端无法显示的网页文本数据片段进行替换处理包括:
利用针对所保存的图片文件的引用方式, 替换所述网页文本数据中的所述 移动终端无法显示的网页文本数据片段, 以及
在将完成替换后的网页文本数据发送给所述移动终端时, 还将所保存的图 片文件发送给所述移动终端。 、 根据权利要求 3所述的方法, 其中, 所述移动终端的期望字体大小和屏幕尺寸 是从所述移动终端发送给所述云端服务器的。 、 根据权利要求 3所述的方法, 其中, 所述移动终端的期望字体大小和屏幕尺寸 是所述云端服务器根据从所述移动终端接收的所述移动终端的设备型号确定 的。 0、 一种移动终端上的网页文本内容显示方法, 包括:
在移动终端侧,
在接收到网页文本内容显示指令后, 向云端服务器发送要显示的网页的网 页地址信息; 以及
在从所述云端服务器接收到完成替换后的网页文本数据后, 基于所接收的 网页文本数据进行显示;
在所述云端服务器侧, 在从移动终端接收到要显示的网页文本内容的网页地址信息后, 根据所述 网页地址信息, 从目标服务器获取对应的网页文本数据;
从所述网页文本数据中识别出所述移动终端无法显示的网页文本数据片 段;
由所述无法显示的网页文本数据片段得到具有所述移动终端支持的图片格 式的图片文件;
基于所保存的图片文件, 对所述网页文本数据中的所述移动终端无法显示 的网页文本数据片段进行替换处理; 以及
将完成替换后的网页文本数据发送给所述移动终端。 、 根据权利要求 10所述的移动终端上的网页文本内容显示方法, 在移动终端侧,
在接收到网页文本内容显示指令后, 向云端服务器发送所述移动终端支持 显示的字符集; 以及
在所述云端服务器侧,
根据所述移动终端支持显示的字符集, 从所述网页文本数据中识别出所述 移动终端无法显示的网页文本数据片段;
调用所述云端服务器中的文本排版引擎, 基于所述移动终端的期望字体大 小和屏幕尺寸对所述无法显示的网页文本数据片段进行适配重排;
调用所述云端服务器中的字体渲染引擎加载相应的字体库, 并基于适配重 排后的各个字符的尺寸大小和相对位置, 在所述云端服务器的绘图空间的对应 位置上绘制出各个字符在所述字体库中的图形;
将所绘制出的图形保存为具有所述移动终端支持的图片格式的图片文件。 、 一种网页文本内容显示方法, 包括:
接收到网页文本内容显示指令后, 向云端服务器发送要显示的网页的网页 地址信息;
接收将无法显示的网页文本数据片段替换为具有移动终端支持的图片格 式的图片文件的网页文本数据;
在所述移动终端上显示所述替换后的网页文本数据。 、 一种网页文本内容显示方法, 包括: 根据来自移动终端的网页地址信息, 从目标服务器获取对应的网页文本数 据;
从所述网页文本数据中识别出所述移动终端无法显示的网页文本数据片 段;
由所述移动终端无法显示的网页文本数据片段得到具有所述移动终端支 持的图片格式的图片文件;
将所述网页文本数据中的移动终端无法显示的网页文本数据片段替换为 所述图片文件;
将完成替换后的网页文本数据发送至所述移动终端。 、 一种云端服务器上的用于移动终端上的网页文本内容显示的装置, 包括: 网页文本数据获取单元, 用于在从移动终端接收到要显示的网页文本内容 的网页地址信息后, 根据所述网页地址信息, 从目标服务器获取对应的网页文 本数据;
识别单元, 用于从所述网页文本数据中识别出所述移动终端无法显示的网 页文本数据片段;
图片保存单元, 用于由所述无法显示的网页文本数据片段得到具有所述移 动终端支持的图片格式的图片文件;
替换单元, 用于基于所保存的图片文件, 对所述网页文本数据中的所述移 动终端无法显示的网页文本数据片段进行替换处理; 以及
发送单元, 用于将完成替换后的网页文本数据发送给所述移动终端, 以供 所述移动终端进行显示。 、 根据权利要求 14所述的装置,所述网页文本数据获取单元用于在从所述移动终 端接收到要显示的网页文本内容的网页地址信息以及所述移动终端支持显示的 字符集后, 根据所述网页地址信息, 从目标服务器获取对应的网页文本数据, 所述识别单元用于根据所述移动终端支持显示的字符集, 从所述网页文本数据 中识别出所述移动终端无法显示的网页文本数据片段, 所述装置还包括: 接收单元, 用于从移动终端接收到所述移动终端支持显示的字符集; 文本排版引擎调用单元, 用于调用云端服务器中的文本排版引擎, 基于所 述移动终端的期望字体大小和屏幕尺寸对所述无法显示的网页文本数据片段进 行适配重排;
字体渲染引擎调用单元, 用于调用所述云端服务器中的字体渲染引擎加载 相应的字体库, 并基于适配重排后的各个字符的尺寸大小和相对位置, 在所述 云端服务器的绘图空间的对应位置上绘制出各个字符在所述字体库中的图形。 、 根据权利要求 14所述的装置, 还包括: 绘图空间排版大小设定单元, 用于基于适配重排后的各个字符的尺寸大小 和相对位置, 设定所述绘图空间的排版大小,
所述字体渲染引擎调用单元被配置为调用云端服务器中的字体渲染引擎加 载相应的字体库, 并在设定的绘图空间的对应位置上绘制出各个字符在所述字 体库中的图形。 、 一种网页文本内容显示系统, 包括移动终端和云端服务器, 其中, 所述移动终端包括:
第一发送单元, 在接收到网页文本内容显示指令后, 向云端服务器发送要 显示的网页的网页地址信息; 以及
显示单元,用于在从所述云端服务器接收到完成替换后的网页文本数据后, 基于所接收的网页文本数据进行显示;
在所述云端服务器侧,
网页文本数据获取单元, 用于在从移动终端接收到要显示的网页文本内容 的网页地址信息后, 根据所述网页地址信息, 从目标服务器获取对应的网页文 本数据;
识别单元, 用于从所述网页文本数据中识别出所述移动终端无法显示的网 页文本数据片段;
图片保存单元, 用于由所述无法显示的网页文本数据片段得到具有所述移 动终端支持的图片格式的图片文件;
替换单元, 用于基于所保存的图片文件, 对所述网页文本数据中的所述移 动终端无法显示的网页文本数据片段进行替换处理; 以及
第二发送单元, 用于将完成替换后的网页文本数据发送给所述移动终端。 、 根据权利要求 17所述的系统,所述第一发送单元还用于在接收到网页文本内容 显示指令后, 向所述云端服务器发送所述移动终端支持显示的字符集, 所述第 二接收单元用于从所述移动终端接收到要显示的网页文本内容的网页地址信息 以及所述移动终端支持显示的字符集, 所述网页文本数据获取单元用于在从所 述移动终端接收到要显示的网页文本内容的网页地址信息以及所述移动终端支 持显示的字符集后, 根据所述网页地址信息, 从目标服务器获取对应的网页文 本数据,
所述移动终端包括:
第一接收单元, 用于从所述云端服务器接收完成替换后的网页文本数据, 所述云端服务器还包括:
识别单元, 用于根据所述移动终端支持的字符集, 从所述网页文本数据中 识别出移动终端无法显示的网页文本数据片段;
文本排版引擎调用单元, 用于调用云端服务器中的文本排版引擎, 基于所 述移动终端的期望字体大小和屏幕尺寸对所述无法显示的网页文本数据片段进 行适配重排;
字体渲染引擎调用单元, 用于调用所述云端服务器中的字体渲染引擎加载 相应的字体库, 并基于适配重排后的各个字符的尺寸大小和相对位置, 在所述 云端服务器的绘图空间的对应位置上绘制出各个字符在所述字体库中的图形。 、 一种具有处理器可执行的程序代码的计算机可读介质, 其特征在于, 在被执行 时, 所述程序代码使得处理器执行下述步骤:
在从移动终端接收到要显示的网页文本内容的网页地址信息后, 根据所述 网页地址信息, 从目标服务器获取对应的网页文本数据;
从所述网页文本数据中识别出所述移动终端无法显示的网页文本数据片 段;
由所述无法显示的网页文本数据片段得到具有所述移动终端支持的图片格 式的图片文件;
基于所保存的图片文件, 对所述网页文本数据中的所述移动终端无法显示 的网页文本数据片段进行替换处理; 以及
将完成替换后的网页文本数据发送给所述移动终端, 以供所述移动终端进 行显示。 一种计算机程序, 其特征在于, 用于执行以下步骤:
根据待显示的网页文本内容对应的网页地址信息, 从目标服务器获取对应 的网页文本数据;
从所述网页文本数据中识别出移动终端无法显示的网页文本数据片段; 由所述无法显示的网页文本数据片段得到具有所述移动终端支持的图片格 式的图片文件;
基于所保存的图片文件, 对所述网页文本数据中的所述移动终端无法显示 的网页文本数据片段进行替换处理;
将完成替换后的网页文本数据发送给所述移动终端进行显示。
PCT/CN2014/072735 2013-06-27 2014-02-28 用于移动终端上的文本内容显示的方法、装置及系统 WO2014206108A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310262072.9 2013-06-27
CN201310262072.9A CN103345493B (zh) 2013-06-27 2013-06-27 用于移动终端上的文本内容显示的方法、装置及系统

Publications (1)

Publication Number Publication Date
WO2014206108A1 true WO2014206108A1 (zh) 2014-12-31

Family

ID=49280288

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/072735 WO2014206108A1 (zh) 2013-06-27 2014-02-28 用于移动终端上的文本内容显示的方法、装置及系统

Country Status (2)

Country Link
CN (1) CN103345493B (zh)
WO (1) WO2014206108A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107301182A (zh) * 2016-04-15 2017-10-27 北京京东尚科信息技术有限公司 一种展示内嵌图片的网页的方法和装置

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103345493B (zh) * 2013-06-27 2016-12-07 广州市动景计算机科技有限公司 用于移动终端上的文本内容显示的方法、装置及系统
CN106055416B (zh) * 2016-05-23 2020-08-18 珠海市魅族科技有限公司 数据跨应用转移的方法和装置
CN106951397A (zh) * 2017-03-08 2017-07-14 福建魔方电子科技有限公司 一种嵌入式终端的多字体显示方法
CN108459998B (zh) * 2018-01-25 2022-04-15 广州视源电子科技股份有限公司 文档更新、格式转换方法、装置及设备、可读存储介质
CN108614805B (zh) * 2018-05-02 2022-03-25 武汉斗鱼网络科技有限公司 使用qml显示彩色表情的方法及系统、服务器及介质
CN109241497A (zh) * 2018-09-27 2019-01-18 腾讯音乐娱乐科技(深圳)有限公司 文本处理方法及装置
CN111199137B (zh) * 2018-10-30 2024-03-19 广州金山移动科技有限公司 一种云端字体加载方法、装置
CN112307713A (zh) * 2020-10-27 2021-02-02 广州朗国电子科技有限公司 一种基于Android系统文本自动排版方法及系统
CN114666082B (zh) * 2020-12-24 2023-09-26 上海擎感智能科技有限公司 登录方法、第一终端、第二终端、存储介质及登录系统

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101686568A (zh) * 2008-09-25 2010-03-31 深圳华为通信技术有限公司 文本信息传送的方法及终端、文本信息显示的方法及终端
CN102693094A (zh) * 2012-06-12 2012-09-26 上海量明科技发展有限公司 即时通信中调整字符的方法、客户端及系统
CN103345493A (zh) * 2013-06-27 2013-10-09 广州市动景计算机科技有限公司 用于移动终端上的文本内容显示的方法、装置及系统

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
HK1024380A2 (en) * 2000-03-28 2000-08-25 Lawrence Wai Ming Mo Internet-based font server
CN102158819B (zh) * 2011-01-25 2016-12-07 华为终端有限公司 用于移动设备显示电子邮件处理方法、服务器及移动设备

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101686568A (zh) * 2008-09-25 2010-03-31 深圳华为通信技术有限公司 文本信息传送的方法及终端、文本信息显示的方法及终端
CN102693094A (zh) * 2012-06-12 2012-09-26 上海量明科技发展有限公司 即时通信中调整字符的方法、客户端及系统
CN103345493A (zh) * 2013-06-27 2013-10-09 广州市动景计算机科技有限公司 用于移动终端上的文本内容显示的方法、装置及系统

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107301182A (zh) * 2016-04-15 2017-10-27 北京京东尚科信息技术有限公司 一种展示内嵌图片的网页的方法和装置
CN107301182B (zh) * 2016-04-15 2020-06-30 北京京东尚科信息技术有限公司 一种展示内嵌图片的网页的方法和装置

Also Published As

Publication number Publication date
CN103345493B (zh) 2016-12-07
CN103345493A (zh) 2013-10-09

Similar Documents

Publication Publication Date Title
WO2014206108A1 (zh) 用于移动终端上的文本内容显示的方法、装置及系统
US9940744B2 (en) Remote font management
WO2016177250A1 (zh) 客户端页面渲染方法及装置
US11175796B2 (en) Menu management method, server, and system
US8527862B2 (en) Methods for making ajax web applications bookmarkable and crawlable and devices thereof
US20180191798A1 (en) Methods and systems for server-side rendering of native content for presentation
US9311281B2 (en) Methods for facilitating web page image hotspots and devices thereof
WO2019154353A1 (zh) 系统运行参数查询方法、匹配方法、装置及节点设备
CN104820589B (zh) 一种动态适配网页的方法及其装置
CN105165069A (zh) 接入Wi-Fi热点设备的方法、Wi-Fi热点设备和用户设备
WO2014200853A2 (en) Determining message data to present
WO2017041595A1 (zh) 一种显示数据的方法和装置
US20150026304A1 (en) System for maintaining common data across multiple platforms
US9706006B2 (en) System and method of context aware adaption of content for a mobile device
US9576065B2 (en) Method for maintaining common data across multiple platforms
CN109274705A (zh) 基于用户身份的服务提供方法、装置及系统
CN102760157B (zh) 一种用于生成与移动终端相对应的发布信息的方法、装置与设备
US20150019955A1 (en) Method and system for displaying literal contents, mobile terminal, cloud typesetting server, and storage medium
JPWO2007088785A1 (ja) 個人情報の漏洩阻止装置・方法
WO2015058614A1 (zh) 一种书签存储方法及装置、确定待浏览书签的方法及装置
JP2018055314A (ja) 画像転送装置および画像転送方法
CN105589870B (zh) 网页广告的过滤方法和系统
JPWO2007013280A1 (ja) プラグインモジュール実行方法、ブラウザ実行方法、メーラ実行方法、プログラム、端末装置、及び、ページデータが記録されたコンピュータ読み取り可能な記録媒体
US20180046656A1 (en) Constructing filterable hierarchy based on multidimensional key
CN110309454B (zh) 一种界面显示方法、装置、设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14816692

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14816692

Country of ref document: EP

Kind code of ref document: A1