WO2018000603A1 - Document display method and browser assembly - Google Patents

Document display method and browser assembly Download PDF

Info

Publication number
WO2018000603A1
WO2018000603A1 PCT/CN2016/099909 CN2016099909W WO2018000603A1 WO 2018000603 A1 WO2018000603 A1 WO 2018000603A1 CN 2016099909 W CN2016099909 W CN 2016099909W WO 2018000603 A1 WO2018000603 A1 WO 2018000603A1
Authority
WO
WIPO (PCT)
Prior art keywords
document
display
display mode
displayed
browser component
Prior art date
Application number
PCT/CN2016/099909
Other languages
French (fr)
Chinese (zh)
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 WO2018000603A1 publication Critical patent/WO2018000603A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/168Details of user interfaces specifically adapted to file systems, e.g. browsing and visualisation, 2d or 3d GUIs

Definitions

  • processor coupled to the memory for executing the instructions to perform the following steps when the instructions are executed:
  • FIG. 6 is a structural block diagram of a browser component according to Embodiment 2 of the present invention.
  • the browser component may specifically be a browser component in a smart phone, a browser component in a notebook computer, and of course, other devices capable of connecting to the Internet.
  • the browser components in the electronic device are not exemplified here.
  • the method in the embodiment of the present invention is described in detail by taking the browser component as a browser component in a notebook computer as an example.
  • the browser component determines a first display mode corresponding to the type information based on the correspondence.
  • the browser divides the content of the document 2 into 12 sub-display documents, and sorts the 12 sub-display documents according to the original content of the document 2, and finally displays the interface in the browser.
  • the 12 sub-display documents are sequentially output to realize the slide show mode.
  • Embodiment 4 of the present invention provides a non-transitory storage medium for storing a computer program, the computer program comprising instructions for executing the foregoing document display method.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

Provided are a document display method and a browser assembly. The method comprises: when a document to be displayed is detected, the browser assembly acquiring attribute information about the document to be displayed; based on the attribute information, the browser assembly determining, from at least two display modes, a first display mode corresponding to the attribute information; and the browser assembly displaying the document to be displayed on a display unit in the first display mode. The technical effects of displaying different types of display documents in different display modes and increasing the display manners of a browser are achieved.

Description

一种文档显示方法及浏览器组件Document display method and browser component
本申请要求在2016年06月27日提交中国专利局、申请号为201610483842.6、发明名称为“一种文档显示方法及浏览器组件”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201610483842.6, entitled "A Document Display Method and Browser Component", filed on June 27, 2016, the entire contents of which are incorporated herein by reference. In the application.
技术领域Technical field
本申请涉及电子技术领域,尤其涉及一种文档显示方法及浏览器组件。The present application relates to the field of electronic technologies, and in particular, to a document display method and a browser component.
背景技术Background technique
随着科学技术的不断进步,电子技术也得到了飞速的发展,许多电子设备,如智能手机、平板电脑等,成为了人们日常生活的必需品,从而使用户可以通过浏览器、微信等各种应用程序获取所需的信息。With the continuous advancement of science and technology, electronic technology has also developed rapidly. Many electronic devices, such as smart phones and tablet computers, have become a necessity for people's daily life, so that users can use various applications such as browsers and WeChat. The program gets the information you need.
在现有技术中,用户可以通过浏览器阅读各种文档,如word文档、PDF文档等,当选择浏览器中的某一文档时,浏览器便将该文档以网页的形式显示出来,以供用户阅读。In the prior art, a user can read various documents, such as a word document, a PDF document, and the like through a browser. When a certain document in the browser is selected, the browser displays the document as a web page for providing. User reading.
本发明的发明人在实现本发明过程中,发现由于在现有技术中无论浏览器显示的文档是何种类型,均只能以网页显示方式显示出来,可见,现有技术中的浏览器组件存在显示方式单一的缺陷。In the process of implementing the present invention, the inventor of the present invention finds that, in the prior art, no matter what type of document the browser displays, it can only be displayed in a webpage display manner. It can be seen that the browser component in the prior art is visible. There is a defect in the display mode.
发明内容Summary of the invention
本申请提供一种文档显示方法及浏览器组件,用以解决现有技术中的浏览器组件存在显示方式单一的缺陷,实现浏览器组件在显示文档时显示方式的多样化。The present application provides a document display method and a browser component for solving the defect that the browser component of the prior art has a single display mode, and realizes diversification of display modes of the browser component when displaying a document.
第一方面,本申请实施例提供一种文档显示方法,包括:In a first aspect, an embodiment of the present application provides a document display method, including:
浏览器组件在检测到一待显示文档时,获取所述待显示文档的属性信息;The browser component acquires attribute information of the to-be-displayed document when detecting a to-be-displayed document;
所述浏览器组件基于所述属性信息,从至少两种显示模式中确定与所述属性信息对应的第一显示模式;Determining, by the browser component, a first display mode corresponding to the attribute information from at least two display modes based on the attribute information;
所述浏览器组件将所述待显示文档以所述第一显示模式显示在所述浏 览器组件的显示界面上。The browser component displays the to-be-displayed document in the first display mode on the browsing On the display interface of the browser component.
第二方面,本申请实施例还提供了一种浏览器组件,包括:In a second aspect, the embodiment of the present application further provides a browser component, including:
获取模块,用于在检测到一待显示文档时,获取所述待显示文档的属性信息;An acquiring module, configured to acquire attribute information of the to-be-displayed document when detecting a to-be-displayed document;
确定模块,用于基于所述属性信息,从至少两种显示模式中确定与所述属性信息对应的第一显示模式;a determining module, configured to determine, according to the attribute information, a first display mode corresponding to the attribute information from at least two display modes;
执行模块,用于将所述待显示文档以所述第一显示模式显示在所述浏览器组件的显示界面上。And an execution module, configured to display the to-be-displayed document on the display interface of the browser component in the first display mode.
第三方面,本申请实施例还提供了一种浏览器组件,包括:In a third aspect, the embodiment of the present application further provides a browser component, including:
存储器,用于存储指令;a memory for storing instructions;
处理器,与所述存储器相连,用于执行所述指令,以在执行所述指令时执行如下步骤:a processor coupled to the memory for executing the instructions to perform the following steps when the instructions are executed:
在检测到一待显示文档时,获取所述待显示文档的属性信息;Obtaining attribute information of the to-be-displayed document when detecting a to-be-displayed document;
基于所述属性信息,从至少两种显示模式中确定与所述属性信息对应的第一显示模式;Determining, according to the attribute information, a first display mode corresponding to the attribute information from at least two display modes;
将所述待显示文档以所述第一显示模式显示在所述浏览器组件的显示界面上。Displaying the to-be-displayed document on the display interface of the browser component in the first display mode.
第四方面,本申请实施例提供一种非暂态存储介质,所述非暂态存储介质用于存储计算机程序,所述计算机程序包括用于执行前述文档显示方法的指令。In a fourth aspect, an embodiment of the present application provides a non-transitory storage medium, where the non-transitory storage medium is used to store a computer program, where the computer program includes instructions for executing the foregoing document display method.
第五方面,本申请实施例提供一种计算机程序,其特征在于,所述计算机程序包括用于执行前述文档显示方法的指令。In a fifth aspect, an embodiment of the present application provides a computer program, where the computer program includes an instruction for executing the foregoing document display method.
本申请实施例提供的文档显示方法及浏览器组件,通过浏览器组件在检测到有待显示文档时,首先获取待显示文档的属性信息,然后选择与属性信息相对应的显示方式显示该文档,从而具有不同属性信息的文档能够以不同的显示方式显示在浏览器界面上,改变了现有技术中浏览器在显示文档时只能以网页显示模式进行显示的单一性,实现了以不同的显示模式显示不同类型的显示文档,增加浏览器的显示方式的技术效果。The document display method and the browser component provided by the embodiment of the present application, when detecting a document to be displayed by the browser component, first acquiring attribute information of the document to be displayed, and then selecting a display manner corresponding to the attribute information to display the document, thereby Documents with different attribute information can be displayed on the browser interface in different display manners, which changes the singularity that the browser can only display in the webpage display mode when displaying the document in the prior art, and realizes different display modes. Display different types of display documents and increase the technical effect of the browser display mode.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对 实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following will The drawings used in the embodiments or the description of the prior art are briefly described. It is obvious that the drawings in the following description are some embodiments of the present invention, and are not creative to those skilled in the art. Other drawings can also be obtained from these drawings on the premise of labor.
图1为为本发明实施例一提供的一种文档显示方法的流程图;1 is a flowchart of a document display method according to Embodiment 1 of the present invention;
图2为本发明实施例一中浏览器显示多个文档的页面示意图;2 is a schematic diagram of a page for displaying a plurality of documents by a browser according to Embodiment 1 of the present invention;
图3为本发明实施例一中在所述属性信息为所述待显示文档的类型信息时步骤S102的具体实现方式流程图;3 is a flowchart of a specific implementation manner of step S102 when the attribute information is type information of the to-be-displayed document in the first embodiment of the present invention;
图4为本发明实施例一中在所述属性信息为所述待显示文档的页码信息时步骤S102的具体实现方式流程图;4 is a flowchart of a specific implementation manner of step S102 when the attribute information is the page number information of the to-be-displayed document in the first embodiment of the present invention;
图5为本发明实施例一中在所述第一显示模式为幻灯片显示模式时步骤S103的具体实现方式流程图;FIG. 5 is a flowchart of a specific implementation manner of step S103 when the first display mode is a slide show mode according to the first embodiment of the present invention;
图6为本发明实施例二提供的一种浏览器组件的结构框图;6 is a structural block diagram of a browser component according to Embodiment 2 of the present invention;
图7为本发明实施例三提供的一种浏览器组件的结构示意图。FIG. 7 is a schematic structural diagram of a browser component according to Embodiment 3 of the present invention.
具体实施方式detailed description
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
实施例一Embodiment 1
请参考图1,为本发明实施例一提供的一种文档显示方法的流程图,所述方法包括:Please refer to FIG. 1 , which is a flowchart of a method for displaying a document according to a first embodiment of the present invention, where the method includes:
S101:浏览器组件在检测到一待显示文档时,获取所述待显示文档的属性信息;S101: The browser component acquires attribute information of the to-be-displayed document when detecting a to-be-displayed document;
S102:所述浏览器组件基于所述属性信息,从至少两种显示模式中确定与所述属性信息对应的第一显示模式;S102: The browser component determines, according to the attribute information, a first display mode corresponding to the attribute information from at least two display modes;
S103:所述浏览器组件将所述待显示文档以所述第一显示模式显示在所述浏览器组件的显示界面上。S103: The browser component displays the to-be-displayed document on the display interface of the browser component in the first display mode.
在具体实施过程中,所述浏览器组件具体可以是智能手机中的浏览器组件、笔记本电脑中的浏览器组件,当然,也可以是其他能够连接互联网 的电子设备中的浏览器组件,在此,就不一一举例了。在本发明实施例中,将以所述浏览器组件为笔记本电脑中的浏览器组件为例,来对本发明实施例中的方法进行详细描述。In a specific implementation process, the browser component may specifically be a browser component in a smart phone, a browser component in a notebook computer, and of course, other devices capable of connecting to the Internet. The browser components in the electronic device are not exemplified here. In the embodiment of the present invention, the method in the embodiment of the present invention is described in detail by taking the browser component as a browser component in a notebook computer as an example.
采用本发明实施例中的方法显示文档时,首先执行步骤S101,即:浏览器组件在检测到一待显示文档时,获取所述待显示文档的属性信息。When the document is displayed by using the method in the embodiment of the present invention, the step S101 is first performed, that is, the browser component acquires the attribute information of the to-be-displayed document when detecting the to-be-displayed document.
在具体实施过程中,以所述浏览器组件为笔记本电脑中的浏览器组件为例,当用户在使用笔记本电脑中的IE浏览器浏览网页时,当前网页上显示有多个文档的链接,如文档1.doc、文档2.PDF,如图2所示。当用户点击文档1.doc所在的位置时,笔记本电脑的浏览器便检测到了待显示文档“文档1.doc”,然后获取文档1.doc的属性信息,如文档1.doc的文件大小或文件类型或文件的页码信息等,本领域技术人员可以根据实际使用需求设定浏览器需获取的具体属性信息,在本发明实施例中,将以所述属性信息包括所述待显示文档的类型信息或所述待显示文档的页码信息为例,来进行详细说明,如,获取文档1.doc的类型信息为Word类型或获取文档1.doc的页码信息为10页。In a specific implementation process, taking the browser component as a browser component in a notebook computer as an example, when a user browses a webpage by using an IE browser in a laptop, a link of multiple documents is displayed on the current webpage, such as Document 1.doc, document 2.PDF, as shown in Figure 2. When the user clicks on the location of the document 1.doc, the browser of the laptop detects the document "document 1.doc" to be displayed, and then obtains the attribute information of the document 1.doc, such as the file size or file of the document 1.doc. For the page number information of the type or the file, the person skilled in the art can set the specific attribute information that the browser needs to obtain according to the actual use requirement. In the embodiment of the present invention, the attribute information includes the type information of the document to be displayed. Or the page number information of the document to be displayed is taken as an example for detailed description, for example, the type information of the document 1.doc is obtained as the Word type or the page number information of the document 1.doc is 10 pages.
在执行完成步骤S101之后,本发明实施例中的方法便执行步骤S102,即:所述浏览器组件基于所述属性信息,从至少两种显示模式中确定与所述属性信息对应的第一显示模式。After the step S101 is performed, the method in the embodiment of the present invention performs step S102, that is, the browser component determines, according to the attribute information, a first display corresponding to the attribute information from at least two display modes. mode.
在本发明实施例中,由于获取的属性信息不同,步骤S102的具体实现方式也不同,在下面的描述中将分别以所述属性信息为所述待显示文档的类型信息以及以所述属性信息为所述待显示文档的页码信息这两种方式来对步骤S102的具体实现方式进行详细说明。In the embodiment of the present invention, the specific implementation manner of the step S102 is different because the acquired attribute information is different. In the following description, the attribute information is respectively used as the type information of the to-be-displayed document and the attribute information. The specific implementation manner of step S102 is described in detail for the two methods of page number information of the document to be displayed.
第一种方式,请参考图3,在所述属性信息为所述待显示文档的类型信息时,步骤S102包括:In the first manner, referring to FIG. 3, when the attribute information is the type information of the document to be displayed, step S102 includes:
S301:所述浏览器组件获取预存的类型与显示模式的对应关系,其中,所述第一对应关系中至少包含word类型与网页显示模式的第一对应关系及PDF类型与幻灯片显示模式的第二对应关系;S301: The browser component acquires a correspondence between a pre-stored type and a display mode, where the first correspondence includes at least a first correspondence between a word type and a webpage display mode, and a PDF type and a slideshow mode. Two correspondences;
S302:所述浏览器组件基于所述对应关系,确定与所述类型信息对应的第一显示模式。S302: The browser component determines a first display mode corresponding to the type information based on the correspondence.
在具体实施过程中,沿用上述例子,当笔记本电脑的浏览器获取文档1.doc的类型信息为Word类型后,浏览器便从笔记本电脑中的与浏览器对 应的存储空间中获取预存的文档类型与显示模式的对应关系,所述对应关系可以是用户设置的,如,对应关系为“word类型:网页显示模式;PDF类型:幻灯片显示模式;txt类型:网页显示模式”,由于文档1.doc的类型信息为Word类型,因此,确定文档1.doc的显示模式为网页显示模式。In the specific implementation process, following the above example, when the browser of the laptop obtains the type information of the document 1.doc as the Word type, the browser is from the browser to the browser. Corresponding relationship between the pre-stored document type and the display mode is obtained in the storage space, and the corresponding relationship may be set by the user, for example, the correspondence relationship is “word type: webpage display mode; PDF type: slideshow mode; txt type : Web page display mode", since the type information of the document 1.doc is of the Word type, it is determined that the display mode of the document 1.doc is the web page display mode.
当用户选中文档2.PDF作为待显示文档时,笔记本电脑的浏览器获取文档2.PDF的类型信息为PDF类型,则根据上述对应关系,确定出文档2.PDF的显示模式为幻灯片显示模式。这样,浏览器可以根据文档类型自动调整该文档在浏览器显示界面上的显示方式,方便用户查阅,提高用户体验。When the user selects the document 2.PDF as the document to be displayed, the browser of the laptop acquires the document 2. The type information of the PDF is the PDF type, and according to the above correspondence, the display mode of the document 2. The PDF is displayed in the slideshow mode. . In this way, the browser can automatically adjust the display mode of the document on the browser display interface according to the type of the document, which is convenient for the user to consult and improve the user experience.
第二种方式,请参考图4,在所述属性信息为所述待显示文档的页码信息时,步骤S102包括:In the second mode, referring to FIG. 4, when the attribute information is the page number information of the document to be displayed, step S102 includes:
S401:所述浏览器组件判断所述页码信息是否大于等于预设页码值,获得判断结果;S401: The browser component determines whether the page number information is greater than or equal to a preset page code value, and obtains a determination result;
S402:所述浏览器组件基于所述判断结果,确定与所述页码信息对应的第一显示模式;S402: The browser component determines, according to the determination result, a first display mode corresponding to the page number information;
其中,当所述判断结果为是时,确定幻灯片模式为第一显示模式;当所述判断结果为否时,确定网页显示模式为第一显示模式。Wherein, when the determination result is YES, determining that the slideshow mode is the first display mode; when the determination result is no, determining that the webpage display mode is the first display mode.
在具体实施过程中,沿用上述例子,当笔记本电脑的浏览器获取文档1.doc的页码信息为10页后,浏览器便需要对获取的页码信息进行判断,即,将获取的页码信息与浏览器的存储空间中预存的页码值进行比较,如,预存的页码值为8页,由于10>8,因此,获得判断结果为是。在笔记本电脑中的与浏览器对应的存储空间中预存有判断结果与显示模式的对应关系,所述对应关系可以是用户设置的,如,对应关系为“判断结果为是:幻灯片显示模式;判断结果为否:网页显示模式”,由于对文档1.doc的页码信息的判断结果为是,从而确定文档1.doc的显示模式为幻灯片显示模式。In the specific implementation process, following the above example, when the browser of the notebook computer obtains the page number information of the document 1.doc to 10 pages, the browser needs to judge the obtained page number information, that is, the obtained page number information and browsing. The pre-stored page code values in the storage space of the device are compared. For example, the pre-stored page code value is 8 pages, and since 10>8, the judgment result is yes. The correspondence between the judgment result and the display mode is pre-stored in the storage space corresponding to the browser in the notebook computer, and the corresponding relationship may be set by the user, for example, the correspondence relationship is “the judgment result is yes: the slide show mode; The judgment result is No: web page display mode", since the judgment result of the page number information of the document 1.doc is YES, it is determined that the display mode of the document 1.doc is the slide show mode.
当用户选中文档2.PDF作为待显示文档时,笔记本电脑的浏览器获取文档2.PDF的页码信息为5页,判断出文档2.PDF的页码信息小于预设的页码值8页,从而获得判断结果为否。进一步根据上述对应关系,确定出文档2.PDF的显示模式为网页显示模式。这样,浏览器可以根据文档的页码信息自动调整该文档在浏览器显示界面上的显示方式,当页码较少时,则采用网页显示模式;而当页码较多时,则采用幻灯片显示模式,以使用 户不需要进行多次滑动滚动条的操作便能阅读完全文;且避免了当文档页码较多时,用户需要确认上一次的阅读位置来滑动滚动条,方便用户操作。When the user selects the document 2.PDF as the document to be displayed, the browser of the laptop obtains the page number information of the document 2. The PDF is 5 pages, and it is determined that the page number information of the document 2.PDF is less than the preset page number value of 8 pages, thereby obtaining The judgment result is no. Further, according to the above correspondence, it is determined that the display mode of the document 2. PDF is the web page display mode. In this way, the browser can automatically adjust the display mode of the document on the browser display interface according to the page number information of the document. When the page number is small, the webpage display mode is adopted; and when the page number is large, the slideshow mode is adopted, Use The user does not need to perform the operation of sliding the scroll bar multiple times to read the complete text; and avoids when the page number of the document is large, the user needs to confirm the last reading position to slide the scroll bar, which is convenient for the user to operate.
当然,本领域技术人员也可以采用其它的文档属性信息对浏览器的显示模式进行切换,如,根据文档的大小调整浏览器的显示模式等;也可以增加其他的浏览器显示模式,如逐行显示等,在本发明实施例中不作限制。Of course, those skilled in the art can also use other document attribute information to switch the display mode of the browser, for example, adjust the display mode of the browser according to the size of the document, and also add other browser display modes, such as progressive. The display and the like are not limited in the embodiment of the present invention.
在执行完成步骤S102之后,本发明实施例中的方法便执行步骤S103,即:所述浏览器组件将所述待显示文档以所述第一显示模式显示在所述浏览器组件的显示界面上。After performing the step S102, the method in the embodiment of the present invention performs step S103, that is, the browser component displays the to-be-displayed document in the first display mode on the display interface of the browser component. .
在具体实施过程中,沿用上述例子,当笔记本的浏览器确定文档1.doc的显示模式为网页显示模式时,则将文档1.doc的内容以网页的方式显示在浏览器的显示界面上,即现有技术中的显示方式;当笔记本的浏览器确定出文档2.PDF的显示模式为幻灯片显示模式时,则将文档2.PDF的内容拆分成一页一页,并以幻灯片的方式逐页显示出文档2.PDF的内容。In the specific implementation process, following the above example, when the browser of the notebook determines that the display mode of the document 1.doc is the webpage display mode, the content of the document 1.doc is displayed on the display interface of the browser as a webpage. That is, the display mode in the prior art; when the browser of the notebook determines that the display mode of the document 2. PDF is the slide show mode, the content of the document 2. PDF is split into one page, and the slide is The way to display the contents of the document 2.PDF page by page.
具体来讲,在本发明实施例中,请参考图5,在所述第一显示模式为幻灯片显示模式时,步骤S103包括:Specifically, in the embodiment of the present invention, referring to FIG. 5, when the first display mode is the slide show mode, step S103 includes:
S501:所述浏览器组件获取所述浏览器组件的显示页面的页面尺寸及所述待显示文档的占用空间;S501: The browser component acquires a page size of a display page of the browser component and a occupied space of the to-be-displayed document;
S502:基于所述页面尺寸及所述占用空间,将所述待显示文档划分为与所述页面尺寸匹配的至少两个子显示文档;S502: Divide the to-be-displayed document into at least two sub-display documents that match the page size, based on the page size and the occupied space;
S503:将所述至少两个子显示文档依次显示在所述浏览器组件的显示界面上。S503: Display the at least two sub-display documents in sequence on a display interface of the browser component.
在具体实施过程中,沿用上述例子,当笔记本的浏览器确定出文档2.PDF的显示模式为幻灯片显示模式时,首先获取浏览器的显示页面的页面尺寸,如35cm*25cm,以及文档2的文件大小,如582KB,浏览器预先设置:在页面尺寸小于70cm*50cm时,幻灯片显示模式的每页显示字体为四号,每页输出内容的最大值为50KB;在页面尺寸大于70cm*50cm时,幻灯片显示模式的每页显示字体为三号,每页输出内容的最大值为100KB。由于页面尺寸35cm*25cm<70cm*50cm,从而浏览器将文档2的内容划分为12个子显示文档,并根据文档2的原始内容对所述12个子显示文档进行排序,最后在浏览器的显示界面中依次输出所述12个子显示文档,实现幻灯片显示模式。 In the specific implementation process, following the above example, when the browser of the notebook determines that the display mode of the document 2. PDF is the slide show mode, first obtain the page size of the display page of the browser, such as 35 cm * 25 cm, and the document 2 The file size, such as 582KB, browser preset: When the page size is less than 70cm*50cm, the display font of each page of the slideshow mode is No.4, the maximum output content of each page is 50KB; the page size is larger than 70cm* At 50cm, the display font for each page of the slideshow mode is number three, and the maximum value of output per page is 100KB. Since the page size is 35cm*25cm<70cm*50cm, the browser divides the content of the document 2 into 12 sub-display documents, and sorts the 12 sub-display documents according to the original content of the document 2, and finally displays the interface in the browser. The 12 sub-display documents are sequentially output to realize the slide show mode.
实施例二Embodiment 2
基于与本发明实施例一相同的发明构思,请参考图6,本发明实施例二提供一种浏览器组件,所述浏览器组件可以应用到智能手机、平板电脑,或者其他能够连接互联网的电子设备中,所述浏览器组件包括:获取模块10、确定模块20以及执行模块30,而且本发明实施例二中的获取模块10、确定模块20以及执行模块30可以通过硬件处理器(hardware processor)来实现相关功能单元,其中:Based on the same inventive concept as the first embodiment of the present invention, please refer to FIG. 6. The second embodiment of the present invention provides a browser component, which can be applied to a smart phone, a tablet computer, or other electronic device capable of connecting to the Internet. In the device, the browser component includes: an obtaining module 10, a determining module 20, and an executing module 30, and the obtaining module 10, the determining module 20, and the executing module 30 in the second embodiment of the present invention may pass through a hardware processor. To implement the relevant functional units, where:
获取模块10,用于在检测到一待显示文档时,获取所述待显示文档的属性信息;The obtaining module 10 is configured to acquire attribute information of the to-be-displayed document when detecting a to-be-displayed document;
确定模块20,用于基于所述属性信息,从至少两种显示模式中确定与所述属性信息对应的第一显示模式;a determining module 20, configured to determine, according to the attribute information, a first display mode corresponding to the attribute information from at least two display modes;
执行模块30,用于将所述待显示文档以所述第一显示模式显示在所述浏览器组件的显示界面上。The executing module 30 is configured to display the to-be-displayed document on the display interface of the browser component in the first display mode.
在具体实施过程中,获取模块10、确定模块20以及执行模块30可以是独立的单元,也可以是集成在浏览器内核中的功能模块,在本发明实施例中不作限制。In the specific implementation process, the obtaining module 10, the determining module 20, and the executing module 30 may be independent units, or may be functional modules integrated in the browser kernel, which are not limited in the embodiment of the present invention.
当用户使用所述浏览器组件浏览网页时,获取模块10便能监测用户在浏览器组件的显示界面上的操作,当获取模块10检测到用户点击了某个文档的链接时,获取模块10便将获取该文档的属性信息,所述属性信息包括所述待显示文档的类型信息或所述待显示文档的页码信息。然后获取模块10将获取的属性信息发送至确定模块20进行处理,确定模块20通过文档的属性信息确定出该文档的显示模式,并将确定结果发送至执行模块30,以使执行模块30在接收到确定结果后,控制浏览器以与该文档匹配的显示模式显示该文档。When the user browses the webpage using the browser component, the obtaining module 10 can monitor the operation of the user on the display interface of the browser component. When the obtaining module 10 detects that the user clicks on the link of a certain document, the obtaining module 10 The attribute information of the document is obtained, and the attribute information includes type information of the document to be displayed or page number information of the document to be displayed. The obtaining module 10 then sends the acquired attribute information to the determining module 20 for processing. The determining module 20 determines the display mode of the document by using the attribute information of the document, and sends the determination result to the executing module 30, so that the executing module 30 is receiving. After the result is determined, the control browser displays the document in a display mode that matches the document.
在本发明实施例二中,由于获取模块10获取的属性信息的不同,确定模块20的具体实现方式也不同。在下面的描述中将如下两种具体实现方式为例,来对确定模块20进行说明。In the second embodiment of the present invention, the specific implementation manner of the determining module 20 is different due to the difference in the attribute information acquired by the obtaining module 10. In the following description, the following two specific implementation manners are taken as an example to describe the determination module 20.
第一种方式,在所述属性信息为所述待显示文档的类型信息时,确定模块20包括:In the first manner, when the attribute information is the type information of the document to be displayed, the determining module 20 includes:
第一获取单元,用于获取预存的类型与显示模式的对应关系,其中,所述第一对应关系中至少包含word类型与网页显示模式的第一对应关系及 PDF类型与幻灯片显示模式的第二对应关系;a first acquiring unit, configured to acquire a correspondence between a pre-stored type and a display mode, where the first correspondence includes at least a first correspondence between a word type and a webpage display mode, and a second correspondence between the PDF type and the slide show mode;
第一确定单元,用于基于所述对应关系,确定与所述类型信息对应的第一显示模式。The first determining unit is configured to determine, according to the correspondence, a first display mode corresponding to the type information.
在具体实施过程中,所述浏览器组件中还设置有第一存储器,所述第一存储器中存储有文档类型与显示模式的对应关系,如,第一存储器中存储的对应关系为:word类型:网页显示模式;PDF类型:幻灯片显示模式;txt类型:网页显示模式。当确定模块20接收到由获取模块10发送的类型信息之后,第一获取单元便从所述第一存储器中获取预存的对应关系,发送至第一确定单元,由第一确定单元根据接收到的属性信息及预存的对应关系确定出与该文档对应的显示模式。这样,浏览器组件可以根据文档类型自动调整该文档在浏览器显示界面上的显示方式,方便用户查阅,提高用户体验。In a specific implementation process, the browser component is further provided with a first memory, where the correspondence between the document type and the display mode is stored in the first memory, for example, the corresponding relationship stored in the first memory is: word type : Web page display mode; PDF type: slide show mode; txt type: web page display mode. After the determining module 20 receives the type information sent by the obtaining module 10, the first acquiring unit acquires the pre-stored correspondence from the first memory, and sends the corresponding relationship to the first determining unit, according to the received information by the first determining unit. The attribute information and the pre-stored correspondence determine the display mode corresponding to the document. In this way, the browser component can automatically adjust the display mode of the document on the browser display interface according to the type of the document, which is convenient for the user to consult and improve the user experience.
第二种方式,在所述属性信息为所述待显示文档的页码信息时,确定模块20包括:In a second mode, when the attribute information is the page number information of the document to be displayed, the determining module 20 includes:
第一判断单元,用于判断所述页码信息是否大于等于预设页码值,获得判断结果;a first determining unit, configured to determine whether the page number information is greater than or equal to a preset page number value, and obtain a determination result;
第二确定单元,用于基于所述判断结果,确定与所述页码信息对应的第一显示模式;a second determining unit, configured to determine, according to the determining result, a first display mode corresponding to the page number information;
其中,当所述判断结果为是时,确定幻灯片模式为第一显示模式;当所述判断结果为否时,确定网页显示模式为第一显示模式。Wherein, when the determination result is YES, determining that the slideshow mode is the first display mode; when the determination result is no, determining that the webpage display mode is the first display mode.
在具体实施过程中,所述浏览器组件中还设置有第二存储器,所述第二存储器中存储有预设页码值及页码信息与显示模式的对应关系,如,第二存储器中存储的预设页码值为8页,当确定模块20接收到由获取模块10发送的页码信息之后,第一判断单元便从所述第二存储器中获取预存的页码值,将文档的页码信息与预存的页码值进行比较,将比较结果发送至第二确定单元,此时,第二确定单元从所述第二存储器中获取预存的对应关系,如,第二存储器存储的对应关系为:判断结果为是:幻灯片显示模式;判断结果为否:网页显示模式。然后第二确定单元基于所述对应关系及第一判断发送的判断结果,确定与文档对应的显示模式。这样,浏览器组件可以根据文档的页码信息自动调整该文档在浏览器显示界面上的显示方式,当页码较少时,则采用网页显示模式;而当页码较多时,则采用幻灯 片显示模式,以使用户不需要进行多次滑动滚动条的操作便能阅读完全文;且避免了当文档页码较多时,用户需要确认上一次的阅读位置来滑动滚动条,方便用户操作。In a specific implementation process, the browser component is further provided with a second memory, where the second memory stores a preset page number value and a correspondence between page number information and a display mode, for example, a pre-stored in the second memory. The page number value is 8 pages. After the determining module 20 receives the page code information sent by the obtaining module 10, the first determining unit acquires the pre-stored page code value from the second memory, and the page number information of the document and the pre-stored page number. The value is compared, and the comparison result is sent to the second determining unit. At this time, the second determining unit acquires the pre-stored correspondence from the second memory. For example, the correspondence stored in the second memory is: the judgment result is: Slide show mode; the judgment result is no: web page display mode. Then, the second determining unit determines a display mode corresponding to the document based on the correspondence relationship and the determination result of the first determination transmission. In this way, the browser component can automatically adjust the display mode of the document on the browser display interface according to the page number information of the document. When the page number is small, the webpage display mode is adopted; and when the page number is large, the slideshow is used. The slice display mode allows the user to read the complete text without having to perform the operation of sliding the scroll bar multiple times; and avoids when the page number of the document is large, the user needs to confirm the last reading position to slide the scroll bar, which is convenient for the user to operate.
当然,本领域技术人员也可以设置其他的模块,使浏览器组件采用其它的文档属性信息对浏览器组件的显示模式进行切换,如,根据文档的大小调整浏览器组件的显示模式等;也可以增加其他的浏览器组件显示模式,如逐行显示等,在本发明实施例中不作限制。Of course, those skilled in the art can also set other modules, so that the browser component uses other document attribute information to switch the display mode of the browser component, for example, adjusting the display mode of the browser component according to the size of the document; Adding other browser component display modes, such as progressive display, etc., is not limited in the embodiment of the present invention.
在本发明实施例中,在所述第一显示模式为幻灯片显示模式时,执行模块30包括:In the embodiment of the present invention, when the first display mode is the slide show mode, the executing module 30 includes:
第二获取单元,用于获取所述浏览器组件的显示页面的页面尺寸及所述待显示文档的占用空间;a second obtaining unit, configured to acquire a page size of the display page of the browser component and a occupied space of the document to be displayed;
第一分割单元,用于基于所述页面尺寸及所述占用空间,将所述待显示文档划分为与所述页面尺寸匹配的至少两个子显示文档;a first dividing unit, configured to divide the to-be-displayed document into at least two sub-display documents that match the page size, based on the page size and the occupied space;
第一执行单元,用于将所述至少两个子显示文档依次显示在所述浏览器组件的显示界面上。a first execution unit, configured to sequentially display the at least two sub-display documents on a display interface of the browser component.
在具体实施过程中,当确定模块20确定出文档的显示模式为幻灯片显示模式后,第二获取单元便浏览器组件的显示页面的页面尺寸以及浏览器组件的存储器中预存的幻灯片显示模式的相关参数,如,所述相关参数为:在页面尺寸小于70cm*50cm时,幻灯片显示模式的每页显示字体为四号,每页输出内容的最大值为50KB;在页面尺寸大于70cm*50cm时,幻灯片显示模式的每页显示字体为三号,每页输出内容的最大值为100KB。则第一分割单元根据所述相关参数及页面尺寸,将文档分割成多个子显示文档,并为各个子显示文档排序,由第一执行单元按照先后顺序将所述多个子显示文档显示在浏览器组件的显示界面上,实现幻灯片显示模式。In a specific implementation process, when the determining module 20 determines that the display mode of the document is the slide show mode, the second obtaining unit displays the page size of the display page of the browser component and the pre-stored slide show mode in the memory of the browser component. The relevant parameters, for example, the relevant parameters are: when the page size is less than 70cm*50cm, the display font of each page of the slide show mode is No. 4, the maximum value of the output content of each page is 50 KB; and the page size is greater than 70 cm* At 50cm, the display font for each page of the slideshow mode is number three, and the maximum value of output per page is 100KB. The first dividing unit divides the document into a plurality of sub-display documents according to the related parameters and the page size, and sorts the sub-display documents, and the first execution unit displays the plurality of sub-display documents in the browser in sequence. The slideshow mode is implemented on the component's display interface.
实施例三Embodiment 3
图7为本发明实施例三提供的浏览器组件的结构示意图,浏览器组件包括:总线701以及分别连接总线701的存储器702以及处理器703。其中,存储器702用于存储指令;处理器703用于执行所述指令,以在执行所述指令时执行如下步骤:在检测到一待显示文档时,获取所述待显示文档的属性信息;基于所述属性信息,从至少两种显示模式中确定与所述属性信息对应的第一显示模式;将所述待显示文档以所述第一显示模式显示在所 述浏览器组件的显示界面上。FIG. 7 is a schematic structural diagram of a browser component according to Embodiment 3 of the present invention. The browser component includes a bus 701, a memory 702 respectively connected to the bus 701, and a processor 703. The memory 702 is configured to store the instruction, and the processor 703 is configured to execute the instruction to: when the instruction is executed, acquiring the attribute information of the to-be-displayed document when detecting the to-be-displayed document; Determining, by the attribute information, a first display mode corresponding to the attribute information from at least two display modes; displaying the to-be-displayed document in the first display mode On the display interface of the browser component.
可选的,在所述属性信息为所述待显示文档的类型信息时,处理器703具体用于:Optionally, when the attribute information is type information of the to-be-displayed document, the processor 703 is specifically configured to:
获取预存的类型与显示模式的对应关系,其中,所述第一对应关系中至少包含word类型与网页显示模式的第一对应关系及PDF类型与幻灯片显示模式的第二对应关系;Obtaining a correspondence between the pre-stored type and the display mode, where the first correspondence includes at least a first correspondence between the word type and the webpage display mode and a second correspondence between the PDF type and the slideshow mode;
基于所述对应关系,确定与所述类型信息对应的第一显示模式。And determining, according to the correspondence, a first display mode corresponding to the type information.
可选的,在所述属性信息为所述待显示文档的页码信息时,处理器703具体用于:Optionally, when the attribute information is the page number information of the to-be-displayed document, the processor 703 is specifically configured to:
判断所述页码信息是否大于等于预设页码值,获得判断结果;Determining whether the page number information is greater than or equal to a preset page number value, and obtaining a judgment result;
基于所述判断结果,确定与所述页码信息对应的第一显示模式;Determining, according to the determination result, a first display mode corresponding to the page number information;
其中,当所述判断结果为是时,确定幻灯片模式为第一显示模式;当所述判断结果为否时,确定网页显示模式为第一显示模式。Wherein, when the determination result is YES, determining that the slideshow mode is the first display mode; when the determination result is no, determining that the webpage display mode is the first display mode.
可选的,在所述第一显示模式为幻灯片显示模式时,处理器703具体用于:Optionally, when the first display mode is a slide show mode, the processor 703 is specifically configured to:
获取所述浏览器组件的显示页面的页面尺寸及所述待显示文档的占用空间;Obtaining a page size of the display page of the browser component and a occupied space of the document to be displayed;
基于所述页面尺寸及所述占用空间,将所述待显示文档划分为与所述页面尺寸匹配的至少两个子显示文档;And dividing the to-be-displayed document into at least two sub-display documents that match the page size, based on the page size and the occupied space;
将所述至少两个子显示文档依次显示在所述浏览器组件的显示界面上。The at least two sub-display documents are sequentially displayed on a display interface of the browser component.
实施例四Embodiment 4
本发明实施例四提供一种非暂态存储介质,所述非暂态存储介质用于存储计算机程序,所述计算机程序包括用于执行前述文档显示方法的指令。Embodiment 4 of the present invention provides a non-transitory storage medium for storing a computer program, the computer program comprising instructions for executing the foregoing document display method.
具体地,在所述属性信息为所述待显示文档的类型信息时,所述计算机程序可设置为:Specifically, when the attribute information is type information of the document to be displayed, the computer program may be configured as:
获取预存的类型与显示模式的对应关系,其中,所述第一对应关系中至少包含word类型与网页显示模式的第一对应关系及PDF类型与幻灯片显示模式的第二对应关系;Obtaining a correspondence between the pre-stored type and the display mode, where the first correspondence includes at least a first correspondence between the word type and the webpage display mode and a second correspondence between the PDF type and the slideshow mode;
基于所述对应关系,确定与所述类型信息对应的第一显示模式。 And determining, according to the correspondence, a first display mode corresponding to the type information.
在所述属性信息为所述待显示文档的页码信息时,所述计算机程序可设置为:When the attribute information is the page number information of the document to be displayed, the computer program may be set as:
判断所述页码信息是否大于等于预设页码值,获得判断结果;Determining whether the page number information is greater than or equal to a preset page number value, and obtaining a judgment result;
基于所述判断结果,确定与所述页码信息对应的第一显示模式;Determining, according to the determination result, a first display mode corresponding to the page number information;
其中,当所述判断结果为是时,确定幻灯片模式为第一显示模式;当所述判断结果为否时,确定网页显示模式为第一显示模式。Wherein, when the determination result is YES, determining that the slideshow mode is the first display mode; when the determination result is no, determining that the webpage display mode is the first display mode.
在所述第一显示模式为幻灯片显示模式时,所述计算机程序可设置为:When the first display mode is the slide show mode, the computer program can be set to:
获取所述浏览器组件的显示页面的页面尺寸及所述待显示文档的占用空间;Obtaining a page size of the display page of the browser component and a occupied space of the document to be displayed;
基于所述页面尺寸及所述占用空间,将所述待显示文档划分为与所述页面尺寸匹配的至少两个子显示文档;And dividing the to-be-displayed document into at least two sub-display documents that match the page size, based on the page size and the occupied space;
将所述至少两个子显示文档依次显示在所述浏览器组件的显示界面上。The at least two sub-display documents are sequentially displayed on a display interface of the browser component.
实施例五Embodiment 5
本发明实施例五提供一种计算机程序,其特征在于,所述计算机程序包括用于执行前述文档显示方法的指令。Embodiment 5 of the present invention provides a computer program, characterized in that the computer program comprises instructions for executing the aforementioned document display method.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without deliberate labor.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the various embodiments can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware. Based on such understanding, the above-described technical solutions may be embodied in the form of software products in essence or in the form of software products, which may be stored in a computer readable storage medium such as ROM/RAM, magnetic Discs, optical discs, etc., include instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments or portions of the embodiments.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通 技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。 Finally, it should be noted that the above embodiments are only for explaining the technical solutions of the present invention, and are not limited thereto; although the present invention has been described in detail with reference to the foregoing embodiments, ordinary in the art It should be understood by those skilled in the art that the technical solutions described in the foregoing embodiments may be modified or equivalently substituted for some of the technical features; and the modifications or substitutions do not deviate from the embodiments of the present invention. The spirit and scope of the technical solution.

Claims (13)

  1. 一种文档显示方法,应用于浏览器组件,其特征在于,包括:A document display method, applied to a browser component, comprising:
    所述浏览器组件在检测到一待显示文档时,获取所述待显示文档的属性信息;The browser component acquires attribute information of the to-be-displayed document when detecting a to-be-displayed document;
    所述浏览器组件基于所述属性信息,从至少两种显示模式中确定与所述属性信息对应的第一显示模式;Determining, by the browser component, a first display mode corresponding to the attribute information from at least two display modes based on the attribute information;
    所述浏览器组件将所述待显示文档以所述第一显示模式显示在所述浏览器组件的显示界面上。The browser component displays the to-be-displayed document on the display interface of the browser component in the first display mode.
  2. 根据权利要求1所述的方法,其特征在于,所述属性信息包括所述待显示文档的类型信息或所述待显示文档的页码信息。The method according to claim 1, wherein the attribute information comprises type information of the document to be displayed or page number information of the document to be displayed.
  3. 根据权利要求2所述的方法,其特征在于,在所述属性信息为所述待显示文档的类型信息时,所述浏览器组件基于所述属性信息,从至少两种显示模式中确定与所述属性信息对应的第一显示模式,包括:The method according to claim 2, wherein when the attribute information is type information of the document to be displayed, the browser component determines the location from the at least two display modes based on the attribute information. The first display mode corresponding to the attribute information includes:
    所述浏览器组件获取预存的类型与显示模式的对应关系,其中,所述第一对应关系中至少包含word类型与网页显示模式的第一对应关系及PDF类型与幻灯片显示模式的第二对应关系;The browser component obtains a correspondence between the pre-stored type and the display mode, where the first correspondence includes at least a first correspondence between the word type and the webpage display mode and a second correspondence between the PDF type and the slideshow mode. relationship;
    所述浏览器组件基于所述对应关系,确定与所述类型信息对应的第一显示模式。The browser component determines a first display mode corresponding to the type information based on the correspondence.
  4. 根据权利要求2所述的方法,其特征在于,在所述属性信息为所述待显示文档的页码信息时,所述浏览器组件基于所述属性信息,从至少两种显示模式中确定与所述属性信息对应的第一显示模式,包括:The method according to claim 2, wherein when the attribute information is the page number information of the document to be displayed, the browser component determines the location from the at least two display modes based on the attribute information. The first display mode corresponding to the attribute information includes:
    所述浏览器组件判断所述页码信息是否大于等于预设页码值,获得判断结果;The browser component determines whether the page number information is greater than or equal to a preset page number value, and obtains a determination result;
    所述浏览器组件基于所述判断结果,确定与所述页码信息对应的第一显示模式;Determining, by the browser component, a first display mode corresponding to the page number information based on the determination result;
    其中,当所述判断结果为是时,确定幻灯片模式为第一显示模式;当所述判断结果为否时,确定网页显示模式为第一显示模式。Wherein, when the determination result is YES, determining that the slideshow mode is the first display mode; when the determination result is no, determining that the webpage display mode is the first display mode.
  5. 根据权利要求3或4所述的方法,其特征在于,在所述第一显示模式为幻灯片显示模式时,所述浏览器组件将所述待显示文档以所述第一显示模式显示在所述浏览器组件的显示界面上,包括:The method according to claim 3 or 4, wherein the browser component displays the document to be displayed in the first display mode when the first display mode is a slide show mode The display interface of the browser component includes:
    所述浏览器组件获取所述浏览器组件的显示页面的页面尺寸及所述待 显示文档的占用空间;The browser component acquires a page size of the display page of the browser component and the Display the footprint of the document;
    基于所述页面尺寸及所述占用空间,将所述待显示文档划分为与所述页面尺寸匹配的至少两个子显示文档;And dividing the to-be-displayed document into at least two sub-display documents that match the page size, based on the page size and the occupied space;
    将所述至少两个子显示文档依次显示在所述浏览器组件的显示界面上。The at least two sub-display documents are sequentially displayed on a display interface of the browser component.
  6. 一种浏览器组件,其特征在于,包括:A browser component, comprising:
    获取模块,用于在检测到一待显示文档时,获取所述待显示文档的属性信息;An acquiring module, configured to acquire attribute information of the to-be-displayed document when detecting a to-be-displayed document;
    确定模块,用于基于所述属性信息,从至少两种显示模式中确定与所述属性信息对应的第一显示模式;a determining module, configured to determine, according to the attribute information, a first display mode corresponding to the attribute information from at least two display modes;
    执行模块,用于将所述待显示文档以所述第一显示模式显示在所述浏览器组件的显示界面上。And an execution module, configured to display the to-be-displayed document on the display interface of the browser component in the first display mode.
  7. 根据权利要求6所述的浏览器组件,其特征在于,所述属性信息包括所述待显示文档的类型信息或所述待显示文档的页码信息。The browser component according to claim 6, wherein the attribute information comprises type information of the document to be displayed or page number information of the document to be displayed.
  8. 根据权利要求7所述的浏览器组件,其特征在于,在所述属性信息为所述待显示文档的类型信息时,所述确定模块包括:The browser component according to claim 7, wherein when the attribute information is type information of the document to be displayed, the determining module comprises:
    第一获取单元,用于获取预存的类型与显示模式的对应关系,其中,所述第一对应关系中至少包含word类型与网页显示模式的第一对应关系及PDF类型与幻灯片显示模式的第二对应关系;a first acquiring unit, configured to acquire a correspondence between a pre-stored type and a display mode, where the first correspondence includes at least a first correspondence between a word type and a webpage display mode, and a PDF type and a slideshow mode Two correspondences;
    第一确定单元,用于基于所述对应关系,确定与所述类型信息对应的第一显示模式。The first determining unit is configured to determine, according to the correspondence, a first display mode corresponding to the type information.
  9. 根据权利要求7所述的浏览器组件,其特征在于,在所述属性信息为所述待显示文档的页码信息时,所述确定模块包括:The browser component according to claim 7, wherein when the attribute information is the page number information of the document to be displayed, the determining module comprises:
    第一判断单元,用于判断所述页码信息是否大于等于预设页码值,获得判断结果;a first determining unit, configured to determine whether the page number information is greater than or equal to a preset page number value, and obtain a determination result;
    第二确定单元,用于基于所述判断结果,确定与所述页码信息对应的第一显示模式;a second determining unit, configured to determine, according to the determining result, a first display mode corresponding to the page number information;
    其中,当所述判断结果为是时,确定幻灯片模式为第一显示模式;当所述判断结果为否时,确定网页显示模式为第一显示模式。Wherein, when the determination result is YES, determining that the slideshow mode is the first display mode; when the determination result is no, determining that the webpage display mode is the first display mode.
  10. 根据权利要求8或9所述的浏览器组件,其特征在于,在所述第一显示模式为幻灯片显示模式时,所述执行模块包括: The browser component according to claim 8 or 9, wherein when the first display mode is a slide show mode, the execution module comprises:
    第二获取单元,用于获取所述浏览器组件的显示页面的页面尺寸及所述待显示文档的占用空间;a second obtaining unit, configured to acquire a page size of the display page of the browser component and a occupied space of the document to be displayed;
    第一分割单元,用于基于所述页面尺寸及所述占用空间,将所述待显示文档划分为与所述页面尺寸匹配的至少两个子显示文档;a first dividing unit, configured to divide the to-be-displayed document into at least two sub-display documents that match the page size, based on the page size and the occupied space;
    第一执行单元,用于将所述至少两个子显示文档依次显示在所述浏览器组件的显示界面上。a first execution unit, configured to sequentially display the at least two sub-display documents on a display interface of the browser component.
  11. 一种浏览器组件,其特征在于,包括:A browser component, comprising:
    存储器,用于存储指令;a memory for storing instructions;
    处理器,与所述存储器相连,用于执行所述指令,以在执行所述指令时执行如下步骤:a processor coupled to the memory for executing the instructions to perform the following steps when the instructions are executed:
    在检测到一待显示文档时,获取所述待显示文档的属性信息;Obtaining attribute information of the to-be-displayed document when detecting a to-be-displayed document;
    基于所述属性信息,从至少两种显示模式中确定与所述属性信息对应的第一显示模式;Determining, according to the attribute information, a first display mode corresponding to the attribute information from at least two display modes;
    将所述待显示文档以所述第一显示模式显示在所述浏览器组件的显示界面上。Displaying the to-be-displayed document on the display interface of the browser component in the first display mode.
  12. 一种非暂态存储介质,其特征在于,所述非暂态存储介质用于存储计算机程序,所述计算机程序包括用于执行权利要求1至5任一项所述的方法的指令。A non-transitory storage medium for storing a computer program, the computer program comprising instructions for performing the method of any one of claims 1 to 5.
  13. 一种计算机程序,其特征在于,所述计算机程序包括用于执行权利要求1至5任一项所述的方法的指令。 A computer program, characterized in that the computer program comprises instructions for performing the method of any one of claims 1 to 5.
PCT/CN2016/099909 2016-06-27 2016-09-23 Document display method and browser assembly WO2018000603A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610483842.6 2016-06-27
CN201610483842.6A CN106202196A (en) 2016-06-27 2016-06-27 A kind of document display method and browser component

Publications (1)

Publication Number Publication Date
WO2018000603A1 true WO2018000603A1 (en) 2018-01-04

Family

ID=57462173

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/099909 WO2018000603A1 (en) 2016-06-27 2016-09-23 Document display method and browser assembly

Country Status (2)

Country Link
CN (1) CN106202196A (en)
WO (1) WO2018000603A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115827572A (en) * 2023-01-10 2023-03-21 北京志翔科技股份有限公司 File preview method, device and equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109002335A (en) * 2017-06-06 2018-12-14 北京京东尚科信息技术有限公司 Page file playing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1419210A (en) * 2001-11-12 2003-05-21 实密科技股份有限公司 Method for checkikng and viewing archives files by combining with network browser
US20070005595A1 (en) * 2005-06-30 2007-01-04 Neal Gafter Document access control
US20130031088A1 (en) * 2010-02-10 2013-01-31 Python4Fun, Inc. Finding relevant documents
CN104156341A (en) * 2014-07-31 2014-11-19 武钢集团昆明钢铁股份有限公司 Online reading system and method
CN105095160A (en) * 2015-07-31 2015-11-25 河南大学 Document conversion reading method and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104715060B (en) * 2012-06-29 2019-03-08 北京奇虎科技有限公司 A kind of web-based image display method and device
CN105528332A (en) * 2014-10-23 2016-04-27 珠海金山办公软件有限公司 A presentation file processing method and device
CN104881776B (en) * 2015-06-17 2018-05-15 贵州七十二弯信息科技有限公司 Easy to the office system of multi-user Cooperation

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1419210A (en) * 2001-11-12 2003-05-21 实密科技股份有限公司 Method for checkikng and viewing archives files by combining with network browser
US20070005595A1 (en) * 2005-06-30 2007-01-04 Neal Gafter Document access control
US20130031088A1 (en) * 2010-02-10 2013-01-31 Python4Fun, Inc. Finding relevant documents
CN104156341A (en) * 2014-07-31 2014-11-19 武钢集团昆明钢铁股份有限公司 Online reading system and method
CN105095160A (en) * 2015-07-31 2015-11-25 河南大学 Document conversion reading method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115827572A (en) * 2023-01-10 2023-03-21 北京志翔科技股份有限公司 File preview method, device and equipment

Also Published As

Publication number Publication date
CN106202196A (en) 2016-12-07

Similar Documents

Publication Publication Date Title
US11256848B2 (en) Automated augmentation of text, web and physical environments using multimedia content
US8341543B2 (en) Method and apparatus of scrolling a document displayed in a browser window
CA2918840C (en) Presenting fixed format documents in reflowed format
US9904936B2 (en) Method and apparatus for identifying elements of a webpage in different viewports of sizes
US9378297B2 (en) Task-based address bar and tabs scaling
US20170255597A1 (en) Automatically identifying complementary digital fonts based on digital text in electronic documents
US20130179773A1 (en) Method for online editing and publishing and device thereof
US11080322B2 (en) Search methods, servers, and systems
KR20170061683A (en) Inferring layout intent
US20140053065A1 (en) System and method for adjusting website displays
TW201423554A (en) Conversion of non-book documents for consistency in e-reader experience
TW201501016A (en) Data searching method and electronic apparatus thereof
WO2016130236A1 (en) Responsive course design system and method
WO2017101390A1 (en) Picture display method and apparatus
WO2018000603A1 (en) Document display method and browser assembly
EP3084636A1 (en) Identifying semantically-meaningful text selections
US20130179832A1 (en) Method and apparatus for displaying suggestions to a user of a software application
Garcia-Lopez et al. Comparing zooming methods in mobile devices: effectiveness, efficiency, and user satisfaction in touch and nontouch smartphones
AU2016205616A1 (en) Method of displaying content and electronic device implementing same
US9250782B1 (en) Using split windows for cross-platform document views
TWI489370B (en) System and method for rendering widget
US20150347376A1 (en) Server-based platform for text proofreading
US20140325346A1 (en) Shortened Network Address Linking to Image Representation of Web Page
US20140139530A1 (en) Systems and methods for user viewable truncation
US20140143663A1 (en) Systems and methods for providing contextual based truncation

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: 16906999

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: 16906999

Country of ref document: EP

Kind code of ref document: A1