[go: up one dir, main page]

CN103092941A - Method and device showing content on electronic equipment - Google Patents

Method and device showing content on electronic equipment Download PDF

Info

Publication number
CN103092941A
CN103092941A CN2013100093317A CN201310009331A CN103092941A CN 103092941 A CN103092941 A CN 103092941A CN 2013100093317 A CN2013100093317 A CN 2013100093317A CN 201310009331 A CN201310009331 A CN 201310009331A CN 103092941 A CN103092941 A CN 103092941A
Authority
CN
China
Prior art keywords
content
control
character string
converted
father
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN2013100093317A
Other languages
Chinese (zh)
Other versions
CN103092941B (en
Inventor
范国峰
张炅轩
康永根
唐智慧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201310009331.7A priority Critical patent/CN103092941B/en
Publication of CN103092941A publication Critical patent/CN103092941A/en
Priority to PCT/CN2013/091242 priority patent/WO2014108040A1/en
Application granted granted Critical
Publication of CN103092941B publication Critical patent/CN103092941B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440236Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by media transcoding, e.g. video is transformed into a slideshow of still pictures, audio is converted into text

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to the technical field of the network data communication and discloses a method and a device showing contents on electronic equipment, wherein, the method includes the following steps of obtaining character strings of the contents, analyzing the character strings of the contents, transforming the contents into one control or multiple branching controls, creating parent controls based on the one control or multiple branching controls, transforming the parent controls into an image file for showing. The method and the device showing contents on the electronic equipment are capable of transforming the contents including large quantity of words and pictures into image files which can be directly shared, so that the problem of sharing indirectly is radically solved, the intuitive feature of sharing is achieved and the user experience is improved to a large extent. The limits of each sharing platform over the number of words and pictures are broken. The users are capable of directly reading the whole contents by checking the image files. In the way, depending on the external links to check the contents is unnecessary and the security is improved.

Description

在电子设备上呈现内容的方法和装置Method and apparatus for presenting content on an electronic device

技术领域technical field

本发明涉及网络数据通信技术领域,尤其涉及一种在电子设备上呈现内容的方法和装置。The present invention relates to the technical field of network data communication, in particular to a method and device for presenting content on electronic equipment.

背景技术Background technique

在使用电子设备(如计算机、平板电脑、移动电话等)浏览互联网网站的过程中,用户经常会遇到一些感兴趣的内容,欲将其分享给周围的人。于是,网络分享成为了一种独特又迅速的传播方式,其特点是:分享的内容较短、直观性强。然而,这种分享存在一些限制,如较为流行的“微博”平台,其要求文字不能超过140个字,且仅允许包括一张图片。In the process of using electronic devices (such as computers, tablet computers, mobile phones, etc.) to browse Internet websites, users often encounter some interesting content and want to share it with people around them. As a result, online sharing has become a unique and rapid communication method, which is characterized by short and intuitive sharing content. However, there are some restrictions on this kind of sharing, such as the more popular "Weibo" platform, which requires that the text cannot exceed 140 characters, and only one picture is allowed.

目前,最常用的分享方式是将分享的内容缩减成一段文字,然后通过调用特定的网络分享接口将其分享出去。这种方式的优点是实现起来较为简单,然而其缺点也显而易见—由于只有一部分内容被分享,用户无法直观地看到详细内容,所分享的内容的质量,一般取决于文章开头(或者特定文字)的质量。At present, the most commonly used sharing method is to reduce the shared content into a piece of text, and then share it by calling a specific network sharing interface. The advantage of this method is that it is relatively simple to implement, but its disadvantages are also obvious-since only a part of the content is shared, users cannot intuitively see the detailed content, and the quality of the shared content generally depends on the beginning of the article (or specific text) the quality of.

另外一种分享方式利用了网络分享接口中较为常见的“图片分享”功能,其从用户感兴趣的内容中选择某一张图片(通常为第一张图片)作为即将分享的文字的“封面”,然后通过调用特定的网络分享接口将其分享出去。由于这种方式可以附带一张能够大致说明内容的图片,故直观性要优于第一种分享方式。然而,这种分享方式的直观性仅仅局限于“一段文字”和“一张封面图片”,用户如果想要直观地查看详细内容,则仍较为困难。Another sharing method utilizes the more common "picture sharing" function in the network sharing interface, which selects a certain picture (usually the first picture) from the content that the user is interested in as the "cover" of the text to be shared , and then share it by calling a specific network sharing interface. Since this method can be accompanied by a picture that can roughly explain the content, it is more intuitive than the first sharing method. However, the intuitiveness of this sharing method is only limited to "a paragraph of text" and "a cover image", and it is still relatively difficult for users to intuitively view detailed content.

上文所述的“直观”,指的是能够在不需要切换网页等情况下,仅仅在当前的浏览环境中就能查看详细内容。如在“微博”客户端中,如果用户能够仅点击一次鼠标,就能够在不离开“微博”客户端的前提下查看详细内容,则符合了“直观”的特性。也就是说,即使附带有可以转向详细内容页面的链接,仍不符合“直观”的要求,因为用户需要跳转出页面,离开当前的浏览环境,而且链接的安全性也未知,这对于信息量巨大的网络分享平台而言,无疑是一种不佳的体验,亟需改进。The "intuitive" mentioned above refers to being able to view detailed content only in the current browsing environment without switching web pages or the like. For example, in the "Weibo" client, if the user can view detailed content without leaving the "Weibo" client with only one click of the mouse, it conforms to the "intuitive" feature. That is to say, even if there is a link that can turn to the detailed content page, it still does not meet the "intuitive" requirement, because the user needs to jump out of the page and leave the current browsing environment, and the security of the link is unknown, which affects the amount of information. For a huge network sharing platform, it is undoubtedly a bad experience and needs to be improved.

发明内容Contents of the invention

鉴于上述问题,提出了本发明,以便提供一种克服上述问题或者至少部分地解决上述问题的在电子设备上呈现内容的方法和装置。In view of the above problems, the present invention is proposed to provide a method and an apparatus for presenting content on an electronic device that overcome the above problems or at least partially solve the above problems.

依据本发明的一个方面,提供了一种在电子设备上呈现内容的方法,包括步骤:获取内容的字符串;解析所述内容的字符串,以将所述内容转换为一个或多个子控件;基于所述一个或多个子控件,创建父控件;以及将所述父控件转换为图像文件以用于呈现。According to one aspect of the present invention, a method for presenting content on an electronic device is provided, comprising the steps of: obtaining a character string of the content; parsing the character string of the content to convert the content into one or more sub-controls; Based on the one or more child controls, creating a parent control; and converting the parent control to an image file for rendering.

可选地,在根据本发明的实施例的在电子设备上呈现内容的方法中,所述内容的字符串包括特殊标记,所述特殊标记包括格式标记、媒体标记,所述解析所述内容的字符串、以将所述内容转换为一个或多个子控件的步骤包括:根据所述特殊标记,将所述内容的字符串分为一个或多个子字符串;以及将所述一个或多个子字符串,根据其各自的特征,转换为一个或多个子控件。Optionally, in the method for presenting content on an electronic device according to an embodiment of the present invention, the character string of the content includes special tags, the special tags include format tags and media tags, and the parsing of the content The step of converting the content into one or more sub-controls includes: dividing the content string into one or more sub-strings according to the special mark; and dividing the one or more sub-characters Strings, according to their respective characteristics, are transformed into one or more child controls.

可选地,在根据本发明的实施例的在电子设备上呈现内容的方法中,根据所述特殊标记、将所述内容的字符串分为一个或多个子字符串的步骤包括:以所述特殊标记为界,将所述内容的字符串中的无格式文本分为多个部分;以及将每个部分的无格式文本、以及所述特殊标记分别作为一个子字符串。Optionally, in the method for presenting content on an electronic device according to an embodiment of the present invention, the step of dividing the character string of the content into one or more substrings according to the special mark includes: using the The special mark is used as a boundary, and the unformatted text in the character string of the content is divided into multiple parts; and the unformatted text of each part and the special mark are respectively used as a substring.

可选地,在根据本发明的实施例的在电子设备上呈现内容的方法中,基于所述一个或多个子控件、创建父控件的步骤包括:将页眉、所述一个或多个子控件、页脚分别作为父控件的头部、中部、尾部,来创建父控件。Optionally, in the method for presenting content on an electronic device according to an embodiment of the present invention, the step of creating a parent control based on the one or more child controls includes: adding the page header, the one or more child controls, The footer is used as the head, middle, and tail of the parent control to create the parent control.

可选地,在根据本发明的实施例的在电子设备上呈现内容的方法中,所述格式标记用于指定无格式文本的格式,所述媒体标记用于指定媒体信息,所述媒体包括图像、音频、视频。Optionally, in the method for presenting content on an electronic device according to an embodiment of the present invention, the format tag is used to specify the format of unformatted text, and the media tag is used to specify media information, and the media includes images , audio, video.

可选地,在根据本发明的实施例的在电子设备上呈现内容的方法中,将所述一个或多个子字符串、根据其各自的特征、转换为一个或多个子控件的步骤包括:将格式标记转换为用于在无格式文本中表现格式的子控件;以及将媒体标记转换为用于表现媒体内容的子控件。Optionally, in the method for presenting content on an electronic device according to an embodiment of the present invention, the step of converting the one or more sub-strings into one or more sub-controls according to their respective characteristics includes: converting Formatting tags are converted into subcontrols for representing formatting in unformatted text; and media tags are converted into subcontrols for representing media content.

可选地,在根据本发明的实施例的在电子设备上呈现内容的方法中,所述页眉包括关于所述内容来源、创作方的信息,所述页脚包括关于页码、版权的信息。Optionally, in the method for presenting content on an electronic device according to an embodiment of the present invention, the header includes information about the source and author of the content, and the footer includes information about page number and copyright.

可选地,在根据本发明的实施例的在电子设备上呈现内容的方法中,将所述父控件转换为图像文件以用于呈现的步骤包括:将所述父控件转换为文件大小小于预先定义的阈值的图像文件以用于呈现。Optionally, in the method for presenting content on an electronic device according to an embodiment of the present invention, the step of converting the parent control into an image file for presentation includes: converting the parent control into a file whose size is smaller than the Image files with defined thresholds to use for rendering.

可选地,根据本发明的实施例的在电子设备上呈现内容的方法还包括:将所述图像文件上传到网站服务器;以及利用所述服务器返回的网址在所述网站上分享所述内容。Optionally, the method for presenting content on an electronic device according to an embodiment of the present invention further includes: uploading the image file to a website server; and sharing the content on the website using the URL returned by the server.

依据本发明的另一方面,还提供了一种在电子设备上呈现内容的装置,包括:内容获取器,适于获取内容的字符串;字符串解析器,适于解析所述内容的字符串,以将所述内容转换为一个或多个子控件;父控件创建器,适于基于所述一个或多个子控件,创建父控件;以及父控件转换器,适于将所述父控件转换为图像文件以用于呈现。According to another aspect of the present invention, there is also provided an apparatus for presenting content on an electronic device, including: a content acquirer adapted to acquire a character string of the content; a character string parser adapted to parse the character string of the content to convert the content into one or more child controls; a parent control creator adapted to create a parent control based on the one or more child controls; and a parent control converter adapted to convert the parent control into an image file for rendering.

可选地,在根据本发明的实施例的在电子设备上呈现内容的装置中,所述内容的字符串包括特殊标记,所述特殊标记包括格式标记、媒体标记,所述字符串解析器根据所述特殊标记,将所述内容的字符串分为一个或多个子字符串,并且将所述一个或多个子字符串,根据其各自的特征,转换为一个或多个子控件。Optionally, in the apparatus for presenting content on an electronic device according to an embodiment of the present invention, the character string of the content includes a special tag, and the special tag includes a format tag and a media tag, and the string parser is based on The special mark divides the character string of the content into one or more substrings, and converts the one or more substrings into one or more subcontrols according to their respective characteristics.

可选地,在根据本发明的实施例的在电子设备上呈现内容的装置中,所述字符串解析器以所述特殊标记为界,将所述内容的字符串中的无格式文本分为多个部分,并且将每个部分的无格式文本、以及所述特殊标记分别作为一个子字符串。Optionally, in the apparatus for presenting content on an electronic device according to an embodiment of the present invention, the character string parser divides the unformatted text in the character string of the content into multiple parts, and take the unformatted text of each part and the special mark as a substring respectively.

可选地,在根据本发明的实施例的在电子设备上呈现内容的装置中,所述父控件创建器将页眉、所述一个或多个子控件、页脚分别作为父控件的头部、中部、尾部,来创建父控件。Optionally, in the apparatus for presenting content on an electronic device according to an embodiment of the present invention, the parent control creator uses the header, the one or more child controls, and the footer as the head, Middle, tail, to create a parent control.

可选地,在根据本发明的实施例的在电子设备上呈现内容的装置中,所述格式标记用于指定无格式文本的格式,所述媒体标记用于指定媒体信息,所述媒体包括图像、音频、视频。Optionally, in the apparatus for presenting content on an electronic device according to an embodiment of the present invention, the format tag is used to specify the format of unformatted text, and the media tag is used to specify media information, and the media includes images , audio, video.

可选地,在根据本发明的实施例的在电子设备上呈现内容的装置中,所述字符串解析器将格式标记转换为用于在无格式文本中表现格式的子控件,并且将媒体标记转换为用于表现媒体内容的子控件。Optionally, in the apparatus for presenting content on an electronic device according to an embodiment of the present invention, the string parser converts format tags into sub-controls for expressing formats in unformatted text, and converts media tags Converted to a child control for representing media content.

可选地,在根据本发明的实施例的在电子设备上呈现内容的装置中,所述页眉包括关于所述内容来源、创作方的信息,所述页脚包括关于页码、版权的信息。Optionally, in the apparatus for presenting content on an electronic device according to an embodiment of the present invention, the header includes information about the source and author of the content, and the footer includes information about page number and copyright.

可选地,在根据本发明的实施例的在电子设备上呈现内容的装置中,所述父控件转换器将所述父控件转换为文件大小小于预先定义的阈值的图像文件以用于呈现。Optionally, in the apparatus for presenting content on an electronic device according to an embodiment of the present invention, the parent control converter converts the parent control into an image file whose file size is smaller than a predefined threshold for presentation.

可选地,根据本发明的实施例的在电子设备上呈现内容的装置还包括网络接口,适于将所述图像文件上传到网站服务器,并且利用所述服务器返回的网址在所述网站上分享所述内容。Optionally, the apparatus for presenting content on an electronic device according to an embodiment of the present invention further includes a network interface, adapted to upload the image file to a website server, and use the URL returned by the server to share on the website said content.

本发明提供了上述在电子设备上呈现内容的方法和装置。根据本发明的实施例,可以获取并解析内容的字符串,以转换为一个或多个子控件,并基于此来创建父控件,将父控件转换为图像文件以用于呈现。由此,可以将包含大量文字和图片的内容转换为可以直接分享的图像文件,从而从根本上解决了分享不直观的问题,实现了分享的直观性,很大程度地提高了用户体验,并且突破了各分享平台对于字数和图片数量的限制,用户可以通过查看该图像文件,直接阅览全部内容。这样,可以不再依赖于外部链接来查看内容,提高了安全性。另外,还可以在所分享的图像文件中加入水印、广告语等效果,使得分享更直观,增强了用户体验。The present invention provides the above method and device for presenting content on an electronic device. According to the embodiment of the present invention, the character string of the content can be obtained and parsed to be converted into one or more child controls, and a parent control can be created based on it, and the parent control can be converted into an image file for presentation. As a result, content containing a large amount of text and pictures can be converted into image files that can be shared directly, thereby fundamentally solving the problem of unintuitive sharing, realizing intuitive sharing, greatly improving user experience, and Breaking through the restrictions on the number of words and pictures on each sharing platform, users can directly browse the entire content by viewing the image file. In this way, it is no longer necessary to rely on external links to view content, which improves security. In addition, effects such as watermarks and slogans can also be added to the shared image files, making the sharing more intuitive and enhancing the user experience.

上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.

附图说明Description of drawings

通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same parts. In the attached picture:

图1是根据本发明的实施例的在电子设备上呈现内容的方法的流程图;1 is a flowchart of a method for presenting content on an electronic device according to an embodiment of the present invention;

图2是根据本发明的一个实施例的所呈现的内容的示意图;以及Figure 2 is a schematic diagram of rendered content according to one embodiment of the invention; and

图3是根据本发明的实施例的在电子设备上呈现内容的装置的框图。Fig. 3 is a block diagram of an apparatus for presenting content on an electronic device according to an embodiment of the present invention.

具体实施方式Detailed ways

下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

本发明的原理适用于任何包含显示部件的电子设备,包括、但不限于:基于Windows、Linux、Mac OS、Unix等桌面操作系统的计算机;基于iOS、Android、Windows Phone、Symbian等移动操作系统的移动电话、平板电脑、视频播放器、电子阅读器、数码相框等等。在下文中,将以基于Android系统的电子设备为例,对本发明的原理进行示例性地描述。然而,这只是为了以具体的示例描述本发明,以帮助读者理解本发明的原理,本发明的范围不限于此,而是可以适用于任何包含显示部件、基于任何操作系统的电子设备。The principle of the present invention is applicable to any electronic device containing display components, including, but not limited to: computers based on desktop operating systems such as Windows, Linux, Mac OS, and Unix; computers based on mobile operating systems such as iOS, Android, Windows Phone, and Symbian Mobile phones, tablets, video players, e-readers, digital photo frames, and more. In the following, the principle of the present invention will be described exemplarily by taking an electronic device based on the Android system as an example. However, this is only to describe the present invention with specific examples to help readers understand the principle of the present invention, the scope of the present invention is not limited thereto, but can be applied to any electronic device that includes a display component and is based on any operating system.

图1示意性地图示了根据本发明的实施例的在电子设备上呈现内容的方法100的流程图。如图1所示,方法100适于步骤S101,其中,获取内容的字符串。例如,在用户希望分享内容并触发“分享”事件后,就可以获取该内容的字符串。根据本发明的实施例,所述内容的字符串表示该内容的字符的表现形式,其不一定等同于该内容。例如,如果某内容包含多个图片,则在每一处需要插入图片的位置,内容的字符串中都会包含有特殊标记,例如“<img src=xxx.jpg>”等。这样,在对内容的字符串进行解析时,会将这样的特殊标记转换为不同于文字的控件,例如图片控件等,而特殊标记的字符串本身则不会被显示在所呈现的内容中。Fig. 1 schematically illustrates a flowchart of a method 100 for presenting content on an electronic device according to an embodiment of the present invention. As shown in FIG. 1 , the method 100 is suitable for step S101, wherein a character string of the content is acquired. For example, after a user wants to share content and fires a "share" event, you can get the string for that content. According to the embodiment of the present invention, the character string of the content represents the expression form of the character of the content, which is not necessarily equal to the content. For example, if a certain content contains multiple pictures, at each position where a picture needs to be inserted, the string of the content will contain a special mark, such as "<img src=xxx.jpg>" and so on. In this way, when parsing the string of the content, such a special tag will be converted into a control different from text, such as a picture control, etc., and the string of the special tag itself will not be displayed in the rendered content.

在步骤S101之后,执行步骤S103,其中,解析所述内容的字符串,以将所述内容转换为一个或多个子控件。根据本发明的实施例,所述内容的字符串包括特殊标记,所述特殊标记包括格式标记、媒体标记,其中所述格式标记用于指定无格式文本的格式,例如文本字体加粗、倾斜、加下划线、换行等等;所述媒体标记用于指定媒体信息,所述媒体可以包括图像、音频、视频等等。After step S101, step S103 is executed, wherein the character string of the content is parsed to convert the content into one or more sub-controls. According to an embodiment of the present invention, the character string of the content includes a special mark, and the special mark includes a format mark and a media mark, wherein the format mark is used to specify the format of the unformatted text, such as text font bold, italic, Underline, line break, etc.; the media tag is used to specify media information, and the media may include images, audio, video, and so on.

根据本发明的实施例,步骤S103可以包括子步骤S103a和子步骤S103b。其中,在子步骤S103a中,可以根据所述特殊标记,将所述内容的字符串分为一个或多个子字符串。可选地,可以以所述特殊标记为界,将所述内容的字符串中的无格式文本分为多个部分,并且将每个部分的无格式文本、以及所述特殊标记分别作为一个子字符串。According to an embodiment of the present invention, step S103 may include sub-step S103a and sub-step S103b. Wherein, in sub-step S103a, the character string of the content may be divided into one or more sub-strings according to the special mark. Optionally, the unformatted text in the character string of the content can be divided into multiple parts with the special tag as a boundary, and the unformatted text of each part and the special tag can be used as a sub string.

例如,某内容可能为:“某人发生了某事,网友记录下了这一幕<imgsrc=xxx.jpg>\n据了解,该人……”。在上述内容中,包含两个特殊标记:“<imgsrc=xxx.jpg>”和“\n”,它们分别为媒体标记和格式标记,分别表示插入图片“xxx.jpg”以及换行。这样,以这两个特殊标记为界,就可以将字符串中的无格式文本划分为两个部分,加上两个特殊标记,一共四个部分,分别作为一个子字符串,共四个子字符串,即:(1)“某人发生了某事,网友记录下了这一幕”、(2)“<img src=xxx.jpg>”、(3)“\n”、(4)“据了解,该人……”。For example, a certain content may be: "something happened to someone, and a netizen recorded this scene <imgsrc=xxx.jpg>\nAccording to our understanding, the person...". In the above content, there are two special tags: "<imgsrc=xxx.jpg>" and "\n", which are media tags and format tags, respectively, indicating the insertion of the picture "xxx.jpg" and line break. In this way, with these two special marks as the boundary, the unformatted text in the string can be divided into two parts, plus two special marks, a total of four parts, each as a substring, a total of four subcharacters Strings, namely: (1) "Something happened to someone, and the netizen recorded this scene", (2) "<img src=xxx.jpg>", (3) "\n", (4) "According to Understood, the person...".

根据本发明的实施例,在子步骤S103a之后,执行子步骤S103b,其中,将所述一个或多个子字符串,根据其各自的特征,转换为一个或多个子控件。可选地,可以将格式标记转换为用于在无格式文本中表现格式的子控件,并且将媒体标记转换为用于表现媒体内容的子控件。仍以上面的内容为例,对于上述四个子字符串,子字符串(1)和(4)为无格式文本,子字符串(2)为媒体标记,子字符串(3)为格式标记,以Android系统为例,根据上面四个子字符串各自的特征,可以将它们分别转换为如下的子控件:TextView、ImageView、TextView(空行)、TextView。According to an embodiment of the present invention, after substep S103a, substep S103b is performed, wherein the one or more substrings are converted into one or more subcontrols according to their respective characteristics. Optionally, formatting tags can be converted into sub-controls for representing formatting in unformatted text, and media tags can be converted into sub-controls for representing media content. Still taking the above content as an example, for the above four substrings, substrings (1) and (4) are unformatted text, substring (2) is a media tag, substring (3) is a format tag, Taking the Android system as an example, according to the respective characteristics of the above four substrings, they can be converted into the following subcontrols: TextView, ImageView, TextView (blank line), and TextView.

在步骤S103之后,执行步骤S105,其中,基于所述一个或多个子控件,创建父控件。以Android系统为例,可以采用LinearLayout,即以从上往下的顺序排列各子控件,形成一个“容器”,然后,可以调用addView方法,将各个子控件分别作为参数传递到父控件中。之后,可以将所创建的父控件放入用于描述界面的XML文件中。After step S103, step S105 is executed, wherein a parent control is created based on the one or more child controls. Taking the Android system as an example, LinearLayout can be used, that is, the child controls are arranged in order from top to bottom to form a "container". Then, the addView method can be called to pass each child control as a parameter to the parent control. Afterwards, the created parent control can be put into an XML file describing the interface.

在步骤S105中,可选地,可以将页眉、所述一个或多个子控件、页脚分别作为父控件的头部、中部、尾部,来创建父控件。上述页眉和页脚均为可选的部分,而非必备的部分。所述页眉可以包括关于所述内容来源、创作方的信息,而所述页脚可以包括关于页码、版权的信息,它们和一般文档中的页眉和页脚含义类似。In step S105, optionally, the parent control may be created by using the page header, the one or more child controls, and the page footer as the head, middle, and tail of the parent control, respectively. The above headers and footers are optional, not required. The header may include information about the source and author of the content, and the footer may include information about page numbers and copyrights, which are similar to headers and footers in general documents.

根据本发明的实施例,上文所述的控件可以是任何能够显示在所呈现的内容中的可视化部件,其包括、但不限于:电子设备的操作系统本身已有的控件、执行根据本发明的在电子设备上呈现内容的方法100的客户端自身的控件、以及上述父控件中的部件。According to an embodiment of the present invention, the control described above can be any visual component that can be displayed in the presented content, including, but not limited to: the existing controls of the operating system of the electronic device itself, the The method 100 for presenting content on an electronic device is the control of the client itself and the components in the above-mentioned parent control.

在步骤S105之后,执行步骤S107,其中,将所述父控件转换为图像文件以用于呈现。仍以Android系统为例,可以通过父控件的dispatchDraw将其转换为一个可用来转换为图片的Canvas,再将其转换成Bitmap,而Bitmap可以直接通过compress方法生成一个图像文件,以用于呈现。可选,由于电子设备和网络带宽、速度的限制,可以规定该图像文件的文件大小小于预先定义的阈值,例如100KB。此时,可以选择质量较低质量较低(如压缩率30%左右)的16位JPEG文件。After step S105, step S107 is executed, wherein the parent control is converted into an image file for presentation. Still taking the Android system as an example, it can be converted into a Canvas that can be converted into a picture through the dispatchDraw of the parent control, and then converted into a Bitmap, and the Bitmap can directly generate an image file through the compress method for presentation. Optionally, due to limitations of electronic devices and network bandwidth and speed, it may be specified that the file size of the image file is smaller than a predefined threshold, for example, 100KB. At this point, you can choose a 16-bit JPEG file with lower quality (such as a compression ratio of about 30%).

可选地,在步骤S107之后,根据本发明的在电子设备上呈现内容的方法100还可以包括步骤S109和步骤S111。在步骤S109中,可以将所述图像文件上传到一个或多个网站服务器。例如,这可以通过网站页面提供的用于分享内容的“上传图片”接口实现。随后,网站服务器可以返回用于保存所上传的图像文件的网址,例如URL(Uniform Resource Locator,统一资源定位符)。然后,在步骤S111中,就可以利用所述服务器返回的网址在所述网站上分享所述内容。例如,将这个网址URL放入网站的“网络分享”接口中的“图片URL”部分中,然后可以附上一些介绍性的文字,即可以实现对于长内容的分享。另外,也可以将该图像文件保存到本地或者服务器端的图库或收藏夹中,以在需要时进行浏览。Optionally, after step S107, the method 100 for presenting content on an electronic device according to the present invention may further include step S109 and step S111. In step S109, the image file may be uploaded to one or more web servers. For example, this can be achieved through the "upload picture" interface provided by the website page for sharing content. Subsequently, the web server may return a URL for saving the uploaded image file, such as a URL (Uniform Resource Locator, Uniform Resource Locator). Then, in step S111, the content can be shared on the website by using the URL returned by the server. For example, put this website URL into the "image URL" part of the "network sharing" interface of the website, and then attach some introductory text, which can realize the sharing of long content. In addition, the image file can also be saved to a local or server-side gallery or favorites for browsing when needed.

图2示意性地图示了根据本发明的一个实施例的所呈现的内容的示意图。如图2所示,在所呈现的内容(即,图像文件)中,包含多段文字和多幅图片、以及页眉(页脚未显示)。该图像文件可以直接上传到网络分享平台,例如“微博”等。Fig. 2 schematically illustrates a schematic diagram of presented content according to one embodiment of the present invention. As shown in FIG. 2 , the presented content (that is, the image file) includes multiple paragraphs of text, multiple pictures, and a header (the footer is not displayed). The image file can be directly uploaded to a network sharing platform, such as "Weibo" and the like.

本发明公开了一种在电子设备上呈现内容的方法。根据本发明的实施例,可以获取并解析内容的字符串,以转换为一个或多个子控件,并基于此来创建父控件,将父控件转换为图像文件以用于呈现。由此,可以将包含大量文字和图片的内容转换为可以直接分享的图像文件,从而从根本上解决了分享不直观的问题,实现了分享的直观性,很大程度地提高了用户体验,并且突破了各分享平台对于字数和图片数量的限制,用户可以通过查看该图像文件,直接阅览全部内容。这样,可以不再依赖于外部链接来查看内容,提高了安全性。另外,还可以在所分享的图像文件中加入水印、广告语等效果,使得分享更直观,增强了用户体验。The invention discloses a method for presenting content on an electronic device. According to the embodiment of the present invention, the character string of the content can be obtained and parsed to be converted into one or more child controls, and a parent control can be created based on it, and the parent control can be converted into an image file for presentation. As a result, content containing a large amount of text and pictures can be converted into image files that can be shared directly, thereby fundamentally solving the problem of unintuitive sharing, realizing intuitive sharing, greatly improving user experience, and Breaking through the restrictions on the number of words and pictures on each sharing platform, users can directly browse the entire content by viewing the image file. In this way, it is no longer necessary to rely on external links to view content, which improves security. In addition, effects such as watermarks and slogans can also be added to the shared image files, making the sharing more intuitive and enhancing the user experience.

与上述方法100相对应,本发明还提供了一种在电子设备上呈现内容的装置200。图3示意性地图示了根据本发明的实施例的在电子设备上呈现内容的装置200的框图。Corresponding to the above method 100, the present invention also provides an apparatus 200 for presenting content on an electronic device. Fig. 3 schematically illustrates a block diagram of an apparatus 200 for presenting content on an electronic device according to an embodiment of the present invention.

如图3所示,装置200主要包括内容获取器201、字符串解析器203、父控件创建器205、父控件转换器207。As shown in FIG. 3 , the device 200 mainly includes a content acquirer 201 , a string parser 203 , a parent control creator 205 , and a parent control converter 207 .

根据本发明,内容获取器201适于获取内容的字符串,字符串解析器203适于解析所述内容的字符串,以将所述内容转换为一个或多个子控件,父控件创建器205适于基于所述一个或多个子控件,创建父控件,父控件转换器207,适于将所述父控件转换为图像文件以用于呈现。上述内容获取器201、字符串解析器203、父控件创建器205、父控件转换器207可以分别用于执行上述扫描计算机病毒的方法100中的步骤S101、S103、S105、以及S107。According to the present invention, the content acquirer 201 is adapted to acquire the character string of the content, the character string parser 203 is adapted to parse the character string of the content to convert the content into one or more child controls, and the parent control creator 205 is adapted to To create a parent control based on the one or more child controls, the parent control converter 207 is adapted to convert the parent control into an image file for presentation. The content acquirer 201 , string parser 203 , parent control creator 205 , and parent control converter 207 can be used to execute steps S101 , S103 , S105 , and S107 in the method 100 for scanning computer viruses, respectively.

根据本发明的实施例,首先,内容获取器201获取内容的字符串。例如,在用户希望分享内容并触发“分享”事件后,内容获取器201就可以获取该内容的字符串。随后,字符串解析器203可以解析所述内容的字符串,以将所述内容转换为一个或多个子控件。根据本发明的实施例,所述内容的字符串包括特殊标记,所述特殊标记包括格式标记、媒体标记,其中所述格式标记用于指定无格式文本的格式,例如文本字体加粗、倾斜、加下划线、换行等等;所述媒体标记用于指定媒体信息,所述媒体可以包括图像、音频、视频等等。According to an embodiment of the present invention, first, the content obtainer 201 obtains a character string of the content. For example, after the user wishes to share the content and triggers the "share" event, the content obtainer 201 can obtain the character string of the content. Subsequently, the string parser 203 can parse the string of the content to convert the content into one or more sub-controls. According to an embodiment of the present invention, the character string of the content includes a special mark, and the special mark includes a format mark and a media mark, wherein the format mark is used to specify the format of the unformatted text, such as text font bold, italic, Underline, line break, etc.; the media tag is used to specify media information, and the media may include images, audio, video, and so on.

根据本发明的实施例,字符串解析器203可以根据所述特殊标记,将所述内容的字符串分为一个或多个子字符串。可选地,字符串解析器203可以以所述特殊标记为界,将所述内容的字符串中的无格式文本分为多个部分,并且将每个部分的无格式文本、以及所述特殊标记分别作为一个子字符串。According to an embodiment of the present invention, the character string parser 203 may divide the character string of the content into one or more substrings according to the special mark. Optionally, the character string parser 203 may divide the unformatted text in the character string of the content into multiple parts with the special tag as a boundary, and divide the unformatted text of each part and the special tokens each as a substring.

例如,某内容可能为:“某人发生了某事,网友记录下了这一幕<imgsrc=xxx.jpg>\n据了解,该人……”。在上述内容中,包含两个特殊标记:“<img src=xxx.jpg>”和“\n”,它们分别为媒体标记和格式标记,分别表示插入图片“xxx.jpg”以及换行。这样,以这两个特殊标记为界,就可以将字符串中的无格式文本划分为两个部分,加上两个特殊标记,一共四个部分,分别作为一个子字符串,共四个子字符串,即:(1)“某人发生了某事,网友记录下了这一幕”、(2)“<img src=xxx.jpg>”、(3)“\n”、(4)“据了解,该人……”。For example, a certain content may be: "something happened to someone, and a netizen recorded this scene <imgsrc=xxx.jpg>\nAccording to our understanding, the person...". In the above content, there are two special tags: "<img src=xxx.jpg>" and "\n", which are media tags and format tags, respectively, indicating the insertion of the picture "xxx.jpg" and line break. In this way, with these two special marks as the boundary, the unformatted text in the string can be divided into two parts, plus two special marks, a total of four parts, each as a substring, a total of four subcharacters Strings, namely: (1) "Something happened to someone, and the netizen recorded this scene", (2) "<img src=xxx.jpg>", (3) "\n", (4) "According to Understood, the person...".

随后,字符串解析器203可以将所述一个或多个子字符串,根据其各自的特征,转换为一个或多个子控件。可选地,字符串解析器203可以将格式标记转换为用于在无格式文本中表现格式的子控件,并且将媒体标记转换为用于表现媒体内容的子控件。仍以上面的内容为例,对于上述四个子字符串,子字符串(1)和(4)为无格式文本,子字符串(2)为媒体标记,子字符串(3)为格式标记,以Android系统为例,根据上面四个子字符串各自的特征,字符串解析器203可以将它们分别转换为如下的子控件:TextView、ImageView、TextView(空行)、TextView。Subsequently, the string parser 203 may convert the one or more substrings into one or more sub-controls according to their respective characteristics. Optionally, the string parser 203 may convert format tags into sub-controls for representing formats in unformatted text, and convert media tags into sub-controls for representing media content. Still taking the above content as an example, for the above four substrings, substrings (1) and (4) are unformatted text, substring (2) is a media tag, substring (3) is a format tag, Taking the Android system as an example, according to the respective characteristics of the above four substrings, the string parser 203 can convert them into the following subcontrols: TextView, ImageView, TextView (blank line), and TextView.

之后,父控件创建器205可以基于所述一个或多个子控件,创建父控件。以Android系统为例,父控件创建器205可以采用LinearLayout,即以从上往下的顺序排列各子控件,形成一个“容器”,然后,父控件创建器205可以调用addView方法,将各个子控件分别作为参数传递到父控件中。之后,父控件创建器205可以将所创建的父控件放入用于描述界面的XML文件中。Afterwards, the parent control creator 205 can create a parent control based on the one or more child controls. Taking the Android system as an example, the parent control creator 205 can use LinearLayout, that is, arrange the child controls in order from top to bottom to form a "container". Then, the parent control creator 205 can call the addView method to place each child control Passed as parameters to the parent control respectively. Afterwards, the parent control creator 205 can put the created parent control into the XML file used to describe the interface.

可选地,父控件创建器205可以将页眉、所述一个或多个子控件、页脚分别作为父控件的头部、中部、尾部,来创建父控件。上述页眉和页脚均为可选的部分,而非必备的部分。所述页眉可以包括关于所述内容来源、创作方的信息,而所述页脚可以包括关于页码、版权的信息,它们和一般文档中的页眉和页脚含义类似。Optionally, the parent control creator 205 may use the header, the one or more child controls, and the page footer as the head, middle, and tail of the parent control respectively to create the parent control. The above headers and footers are optional, not required. The header may include information about the source and author of the content, and the footer may include information about page numbers and copyrights, which are similar to headers and footers in general documents.

随后,父控件转换器207可以将所述父控件转换为图像文件以用于呈现。仍以Android系统为例,父控件转换器207可以通过父控件的dispatchDraw将其转换为一个可用来转换为图片的Canvas,再将其转换成Bitmap,而Bitmap可以直接通过compress方法生成一个图像文件,以用于呈现。可选,由于电子设备和网络带宽、速度的限制,可以规定该图像文件的文件大小小于预先定义的阈值,例如100KB。此时,可以选择质量较低质量较低(如压缩率30%左右)的16位JPEG文件。Subsequently, the parent control converter 207 may convert the parent control into an image file for presentation. Still taking the Android system as an example, the parent control converter 207 can convert it into a Canvas that can be converted into a picture through the dispatchDraw of the parent control, and then convert it into a Bitmap, and the Bitmap can directly generate an image file through the compress method. for rendering. Optionally, due to limitations of electronic devices and network bandwidth and speed, it may be specified that the file size of the image file is smaller than a predefined threshold, for example, 100KB. At this point, you can choose a 16-bit JPEG file with lower quality (such as a compression ratio of about 30%).

可选地,如图3所示,根据本发明的在电子设备上呈现内容的装置200还可以包括网络接口209,其可以将所述图像文件上传到一个或多个网站服务器300-1、…、300-n。例如,这可以通过网站页面提供的用于分享内容的“上传图片”接口实现。随后,一个或多个网站服务器300-1、…、300-n可以返回用于保存所上传的图像文件的网址,例如URL。然后,网络接口209就可以利用服务器返回的网址在所述网站上分享所述内容。例如,网络接口209将这个网址URL放入网站的“网络分享”接口中的“图片URL”部分中,然后可以附上一些介绍性的文字,即可以实现对于长内容的分享。另外,网络接口209也可以将该图像文件保存到本地或者服务器端的图库或收藏夹中,以在需要时进行浏览。Optionally, as shown in FIG. 3, the apparatus 200 for presenting content on an electronic device according to the present invention may also include a network interface 209, which may upload the image file to one or more website servers 300-1, . . . , 300-n. For example, this can be achieved through the "upload picture" interface provided by the website page for sharing content. Subsequently, one or more web servers 300-1, . . . , 300-n may return a web site, such as a URL, for saving the uploaded image file. Then, the network interface 209 can use the URL returned by the server to share the content on the website. For example, the network interface 209 puts this website URL into the "image URL" part of the "network sharing" interface of the website, and then can attach some introductory text, that is, the sharing of long content can be realized. In addition, the network interface 209 can also save the image file to a local or server-side gallery or favorites for browsing when needed.

由于上述各设备实施例与前述各方法实施例相对应,因此不再对各设备实施例进行详细描述。Since the foregoing device embodiments correspond to the foregoing method embodiments, detailed descriptions of the respective device embodiments are omitted.

在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays presented herein are not inherently related to any particular computer, virtual system, or other device. Various generic systems can also be used with the teachings based on this. The structure required to construct such a system is apparent from the above description. Furthermore, the present invention is not specific to any particular programming language. It should be understood that various programming languages can be used to implement the content of the present invention described herein, and the above description of specific languages is for disclosing the best mode of the present invention.

在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.

类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, in order to streamline this disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.

本领域那些技术人员可以理解,可以对实施例中的装置中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个装置中。可以把实施例中的若干模块组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者模块中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的替代特征来代替。Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. Several modules in an embodiment can be combined into one module or unit or assembly, and further they can be divided into a plurality of sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method or method so disclosed may be used in any combination, except that at least some of such features and/or procedures or modules are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.

此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will understand that although some embodiments described herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. and form different embodiments. For example, in the claims, any one of the claimed embodiments can be used in any combination.

本发明的各个装置实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的装置中的一些或者全部模块的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various apparatus embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all functions of some or all modules in the apparatus according to the embodiment of the present invention. The present invention can also be implemented as an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.

应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.

Claims (18)

1. the method for a rendering content on electronic equipment (100) comprises step:
Obtain the character string (S101) of content;
Resolve the character string of described content, described content is converted to one or more child controls (S103);
Based on described one or more child controls, create father's control (S105); And
Described father's control is converted to image file to be used for presenting (S107).
2. the method for claim 1, the character string of wherein said content comprises special marking, described special marking comprises form mark, media marking,
The character string of the described content of described parsing, comprising with the step (S103) that described content is converted to one or more child controls:
According to described special marking, the character string of described content is divided into one or more substrings (S103a); And
With described one or more substrings, according to its feature separately, be converted to one or more child controls (S103b).
3. method as claimed in claim 2 wherein comprising according to described special marking, step (S103a) that the character string of described content is divided into one or more substrings:
Take described special marking as the boundary, the unformatted text in the character string of described content is divided into a plurality of parts; And
With the unformatted text of each part and described special marking respectively as a substring.
4. method as described in any one in claims 1 to 3, wherein the step (S105) based on described one or more child controls, establishment father control comprising:
Header, described one or more child controls, footer as head, middle part, the afterbody of father's control, are created father's control respectively.
5. method as claimed in claim 2, wherein said form mark is used to specify the form of unformatted text, and described media marking is used to specify media information, and described media comprise image, audio frequency, video.
6. method as claimed in claim 5, wherein with described one or more substrings, comprising according to its separately feature, the step (S103b) that is converted to one or more child controls:
The form mark is converted to for the child control in the unformatted text representation formats; And
Media marking is converted to child control for the presentation medium content.
7. method as claimed in claim 4, wherein said header comprises the information about described content sources, creation side, described footer comprises the information about the page number, copyright.
8. method as described in any one in claims 1 to 3 wherein is converted to described father's control image file and comprises with the step (S107) that is used for presenting: described father's control is converted to file size presents being used for less than the image file of predefined threshold value.
9. method as described in any one in claims 1 to 3 also comprises:
Described image file is uploaded to Website server (S109); And
Utilize the network address that described server returns to share described content (S111) on described website.
10. the device of a rendering content on electronic equipment (200) comprising:
Content obtaining device (201) is suitable for obtaining the character string of content;
Character string parsing device (203) is suitable for resolving the character string of described content, so that described content is converted to one or more child controls;
Father's control creator (205) is suitable for based on described one or more child controls, creates father's control; And
Father's control converter (207) is suitable for that described father's control is converted to image file and presents being used for.
11. device as claimed in claim 10, the character string of wherein said content comprises special marking, and described special marking comprises form mark, media marking,
Described character string parsing device (203) is according to described special marking, the character string of described content is divided into one or more substrings, and with described one or more substrings, according to its feature separately, is converted to one or more child controls.
12. device as claimed in claim 11, wherein said character string parsing device (203) is take described special marking as the boundary, unformatted text in the character string of described content is divided into a plurality of parts, and with the unformatted text of each part and described special marking respectively as a substring.
13. device as described in any one in claim 10 to 12, wherein said father's control creator (205) as head, middle part, the afterbody of father's control, creates father's control respectively with header, described one or more child controls, footer.
14. device as claimed in claim 11, wherein said form mark is used to specify the form of unformatted text, and described media marking is used to specify media information, and described media comprise image, audio frequency, video.
15. device as claimed in claim 14, wherein said character string parsing device (203) is converted to the form mark for the child control in the unformatted text representation formats, and media marking is converted to child control for the presentation medium content.
16. device as claimed in claim 13, wherein said header comprises the information about described content sources, creation side, and described footer comprises the information about the page number, copyright.
17. device as described in any one in claim 10 to 12, wherein said father's control converter (207) are converted to file size with described father's control and present being used for less than the image file of predefined threshold value.
18. device as described in any one in claim 10 to 12 also comprises network interface (209), is suitable for described image file is uploaded to Website server, and utilizes the network address that described server returns to share described content on described website.
CN201310009331.7A 2013-01-10 2013-01-10 The method and apparatus presenting content on an electronic device Active CN103092941B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201310009331.7A CN103092941B (en) 2013-01-10 2013-01-10 The method and apparatus presenting content on an electronic device
PCT/CN2013/091242 WO2014108040A1 (en) 2013-01-10 2013-12-31 Method and apparatus for presenting content on electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310009331.7A CN103092941B (en) 2013-01-10 2013-01-10 The method and apparatus presenting content on an electronic device

Publications (2)

Publication Number Publication Date
CN103092941A true CN103092941A (en) 2013-05-08
CN103092941B CN103092941B (en) 2016-06-29

Family

ID=48205506

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310009331.7A Active CN103092941B (en) 2013-01-10 2013-01-10 The method and apparatus presenting content on an electronic device

Country Status (2)

Country Link
CN (1) CN103092941B (en)
WO (1) WO2014108040A1 (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103559288A (en) * 2013-11-08 2014-02-05 惠州Tcl移动通信有限公司 Method and mobile terminal for intelligent collecting and sharing
CN103714291A (en) * 2013-12-30 2014-04-09 联想(北京)有限公司 Information processing method and electronic equipment
WO2014108040A1 (en) * 2013-01-10 2014-07-17 北京奇虎科技有限公司 Method and apparatus for presenting content on electronic device
CN104881146A (en) * 2015-04-28 2015-09-02 北京美秒科技有限公司 Picture input method
CN104991911A (en) * 2015-06-19 2015-10-21 广州视睿电子科技有限公司 File sharing method and system
CN105120109A (en) * 2015-09-11 2015-12-02 广州视睿电子科技有限公司 file display method and system
WO2015192617A1 (en) * 2014-06-17 2015-12-23 中兴通讯股份有限公司 Conference sharing method and device for document
CN105988665A (en) * 2016-03-17 2016-10-05 广州阿里巴巴文学信息技术有限公司 Information copying system, information copying method and electronic device
CN107018443A (en) * 2017-02-16 2017-08-04 乐蜜科技有限公司 Video recording method, device and electronic equipment
CN107517323A (en) * 2017-09-08 2017-12-26 咪咕数字传媒有限公司 An information sharing method, device and storage medium
CN109151543A (en) * 2018-07-27 2019-01-04 北京优酷科技有限公司 Playing frame, display methods, device and the storage medium of media content
CN110007915A (en) * 2018-01-04 2019-07-12 武汉斗鱼网络科技有限公司 A kind of linear placement's method and device of adaptive child control

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030110449A1 (en) * 2001-12-11 2003-06-12 Wolfe Donald P. Method and system of editing web site
CN102750148A (en) * 2012-06-08 2012-10-24 Tcl集团股份有限公司 Media information display method and device
CN102789481A (en) * 2012-06-27 2012-11-21 北京神州泰岳软件股份有限公司 Method for analyzing specific type of contents of mobile phone IM (Instant Messaging) client

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102023998B (en) * 2009-09-21 2015-05-20 创新科技有限公司 Method and device for processing webpage so as to display on handheld equipment
CN103092941B (en) * 2013-01-10 2016-06-29 北京奇虎科技有限公司 The method and apparatus presenting content on an electronic device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030110449A1 (en) * 2001-12-11 2003-06-12 Wolfe Donald P. Method and system of editing web site
CN102750148A (en) * 2012-06-08 2012-10-24 Tcl集团股份有限公司 Media information display method and device
CN102789481A (en) * 2012-06-27 2012-11-21 北京神州泰岳软件股份有限公司 Method for analyzing specific type of contents of mobile phone IM (Instant Messaging) client

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014108040A1 (en) * 2013-01-10 2014-07-17 北京奇虎科技有限公司 Method and apparatus for presenting content on electronic device
US10169459B2 (en) 2013-11-08 2019-01-01 Huizhou Tcl Mobile Communication Co., Ltd. Intelligent collecting and sharing method and mobile terminal
WO2015066995A1 (en) * 2013-11-08 2015-05-14 惠州Tcl移动通信有限公司 Intelligent collection and sharing method and mobile terminal
CN103559288A (en) * 2013-11-08 2014-02-05 惠州Tcl移动通信有限公司 Method and mobile terminal for intelligent collecting and sharing
CN103714291A (en) * 2013-12-30 2014-04-09 联想(北京)有限公司 Information processing method and electronic equipment
WO2015192617A1 (en) * 2014-06-17 2015-12-23 中兴通讯股份有限公司 Conference sharing method and device for document
CN104881146A (en) * 2015-04-28 2015-09-02 北京美秒科技有限公司 Picture input method
CN104991911A (en) * 2015-06-19 2015-10-21 广州视睿电子科技有限公司 File sharing method and system
WO2016202236A1 (en) * 2015-06-19 2016-12-22 广州视睿电子科技有限公司 File sharing method and system
CN105120109A (en) * 2015-09-11 2015-12-02 广州视睿电子科技有限公司 file display method and system
CN105988665A (en) * 2016-03-17 2016-10-05 广州阿里巴巴文学信息技术有限公司 Information copying system, information copying method and electronic device
CN105988665B (en) * 2016-03-17 2017-06-16 广州阿里巴巴文学信息技术有限公司 Information dubbing system, information duplicating method and electronic equipment
CN107018443A (en) * 2017-02-16 2017-08-04 乐蜜科技有限公司 Video recording method, device and electronic equipment
CN107517323A (en) * 2017-09-08 2017-12-26 咪咕数字传媒有限公司 An information sharing method, device and storage medium
CN107517323B (en) * 2017-09-08 2019-12-24 咪咕数字传媒有限公司 An information sharing method, device and storage medium
CN110007915A (en) * 2018-01-04 2019-07-12 武汉斗鱼网络科技有限公司 A kind of linear placement's method and device of adaptive child control
CN109151543A (en) * 2018-07-27 2019-01-04 北京优酷科技有限公司 Playing frame, display methods, device and the storage medium of media content

Also Published As

Publication number Publication date
WO2014108040A1 (en) 2014-07-17
CN103092941B (en) 2016-06-29

Similar Documents

Publication Publication Date Title
CN103092941B (en) The method and apparatus presenting content on an electronic device
JP6748071B2 (en) Web content generation method and system
US10542123B2 (en) System and method for generating and monitoring feedback of a published webpage as implemented on a remote client
CN102663126B (en) Method and device for displaying webpage in mobile terminal
CN104462074B (en) A kind of method, apparatus and browser client for carrying out web data translation
US20140344707A1 (en) Information Distribution Method and Device
CN104077387B (en) A kind of web page contents display methods and browser device
US20140101539A1 (en) Website presenting method and browser
US10853319B2 (en) System and method for display of document comparisons on a remote device
CN105589836A (en) Document previewing method, terminal and server
CN103631630B (en) Dynamic skin loading method for browser and browser device
CN104361004B (en) The processing method and browser of browser collection folder data
CN103581232B (en) Web page transmission, web page display device and comprise the system of this device
CN104468774B (en) Method for exhibiting data and cloud disk client applied to cloud disk client
CN113382083B (en) Webpage screenshot method and device
CN103034700B (en) The processing method of rich text content and system
CN105979393A (en) Web page display method and device, and intelligent television system
CN103678704A (en) Picture recognition method, system, equipment and device based on picture information
CN103136259B (en) Method and equipment for processing webpage content based on content block identification
CN104536993A (en) Collected webpage processing method, collected webpage processing device and client-side
CN103761241A (en) Method for uploading picture data and browser
CN103020191A (en) Device and method for displaying file
CN104407937A (en) Method for loading data in browser and browser
CN103024010B (en) document display apparatus and method
CN115587075B (en) Layout file processing method and device, terminal equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220727

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right