CN109408752B - Online document display method and device and electronic equipment - Google Patents
Online document display method and device and electronic equipment Download PDFInfo
- Publication number
- CN109408752B CN109408752B CN201811208364.3A CN201811208364A CN109408752B CN 109408752 B CN109408752 B CN 109408752B CN 201811208364 A CN201811208364 A CN 201811208364A CN 109408752 B CN109408752 B CN 109408752B
- Authority
- CN
- China
- Prior art keywords
- page
- online document
- list
- paging
- pages
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The disclosure provides an online document display method, an online document display device and electronic equipment, wherein the method comprises the following steps: responding to full-screen display operation of the online document, newly building a tab page of the browser, hiding a control bar of the browser in the tab page, dividing the online document into a plurality of pages, and finally performing page display on the plurality of pages in the tab page. Therefore, the online document is divided into a plurality of pages and is displayed in a paging mode in a tab page of a newly-built browser by responding to the full-screen display operation of the online document, so that the full-screen display and automatic paging functions of the online document are realized, the display efficiency of the online document is improved, the user operation is simplified, and the user experience is improved.
Description
Technical Field
The present disclosure relates to the field of internet technologies, and in particular, to an online document display method and apparatus, and an electronic device.
Background
With the development of internet technology, online documents are increasingly applied to people's work, for example, a plurality of technicians are required to work cooperatively in the product development process, different technicians are responsible for different parts, and the technicians can inform other technicians of development progress by updating the online documents. In addition, the inside of the enterprise also utilizes the online document as an information carrier to distribute information to enterprise employees.
Although the web page version of the online document in the current market has a full screen function, theoretically, the web page version is only an amplified version of a browser, and the whole document is only amplified and browsed in a full screen state, so that the online document is inconvenient to operate by a user, and the user experience is poor.
Disclosure of Invention
The present disclosure is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, the method for displaying the online document is provided, so that the technical problem that the online document cannot be displayed in a full screen mode and paged in a page mode in the prior art is solved, the operation of a user is simplified, the display efficiency of the online document is improved, and the user experience is improved.
The present disclosure provides an online document display device.
The present disclosure provides an electronic device.
The present disclosure presents a non-transitory computer-readable storage medium.
An embodiment of the disclosure provides an online document display method, including:
responding to a full-screen display operation of an online document, and creating a new tab page of a browser;
hiding a control bar of the browser in the tab page;
dividing the online document into a plurality of pages;
paging the plurality of pages within the tab page.
An embodiment of another aspect of the present disclosure provides an online document display apparatus, including:
the processing module is used for responding to full-screen display operation of the online document and creating a new tab page of the browser;
the hiding module is used for hiding a control bar of the browser in the tab page;
a paging module to divide the online document into a plurality of pages;
and the display module is used for performing paging display on the plurality of pages in the label page.
In yet another aspect, an embodiment of the present disclosure provides an electronic device, including at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being configured to perform the online document presentation method described in the above embodiments.
In yet another aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer-readable instructions for causing a computer to execute the online document presentation method according to the foregoing embodiment.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
according to the online document display method, the label page of the browser is newly built by responding to the full-screen display operation of the online document, the control bar of the browser is hidden in the label page, the online document is divided into multiple pages, and the multiple pages are displayed in the label page in a paging mode. Therefore, the online document is divided into a plurality of pages and is displayed in a paging mode in a tab page of a newly-built browser by responding to the full-screen display operation of the online document, so that the full-screen display and automatic paging functions of the online document are realized, the operation of a user is simplified, the display efficiency of the online document is improved, and the user experience is improved.
Additional aspects and advantages of the disclosure will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the disclosure.
Drawings
The foregoing and/or additional aspects and advantages of the present disclosure will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a flowchart illustrating an online document display method according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of a full screen operation provided in the embodiment of the present disclosure;
FIG. 3 is a flowchart illustrating another online document presentation method according to an embodiment of the present disclosure;
FIG. 4 is a diagram illustrating a paginated display of text portions of an online document according to an embodiment of the present disclosure;
FIG. 5 is a schematic diagram illustrating a picture display of a paged online document according to an embodiment of the present disclosure;
FIG. 6 is a diagram illustrating a table display of a paged online document according to an embodiment of the present disclosure;
FIG. 7 is a diagram illustrating a list display of post-pagination online documents according to an embodiment of the present disclosure;
FIG. 8 is a schematic structural diagram of an online document display apparatus according to an embodiment of the present disclosure;
fig. 9 is a diagram illustrating a hardware structure of an electronic device according to an embodiment of the present disclosure; and
fig. 10 is a schematic diagram illustrating a non-transitory computer-readable storage medium according to an embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the embodiments of the present disclosure, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the drawings are exemplary and intended to be illustrative of the present disclosure, and should not be construed as limiting the present disclosure.
An online document presentation method and apparatus of an embodiment of the present disclosure are described below with reference to the accompanying drawings.
Fig. 1 is a schematic flow chart of an online document display method according to an embodiment of the present disclosure.
As shown in fig. 1, the online document presentation method includes the steps of:
The online document refers to a document that can be created, edited, and shared online.
In the embodiment of the disclosure, firstly, a user operation is detected in an existing tag page of an online document displayed by a browser, if the user operation is detected to be a full-screen display operation, further, whether the existing tag page is in a full-screen display mode of a hidden control bar is judged, and if the existing tag page is determined not to be in the full-screen display mode, the full-screen display operation of the online document is responded, and the tag page of the browser is newly built so as to be displayed in a full screen in the newly built tag page.
As a possible implementation manner, whether the existing label page is in a full-screen display mode can be judged through a JavaScript scripting language, wherein standard codes and non-standard codes exist in JavaScript codes for judging whether the existing label page is in the full-screen display mode.
It should be noted that JavaScript is a client-side scripting language that is object-and event-based and has relative security. Meanwhile, the method is also a scripting language widely used for client Web development, and is often used for adding dynamic functions to an HTML webpage, such as responding to various operations of a user.
As an example, referring to FIG. 2, the button in the upper right corner area 21 in the figure is a full screen button, when it is detected that the user clicks the button in the area 21, it is determined that the existing tab page in the area 22 is not in the full screen display mode of the hidden control bar, and then in response to the full screen display operation of the online document, a new browser tab page is created, so that the online document is displayed in the new tab page in full screen.
As another possible implementation manner, if it is determined that the existing tab page is already in the full-screen display mode of the hidden control bar, the full-screen display operation is refused to be responded, and the tab page of the browser does not need to be newly created.
It should be noted that the types of browsers in the embodiment of the present disclosure are not limited, and any browser may be used, and is determined according to the habit or preference of the user, and is not limited herein.
In the embodiment of the disclosure, in an existing tab page of an online document displayed by a browser, user operation is detected, and when the existing tab page is judged not to be in a full-screen display mode, the tab page of the browser is newly created, and a control bar of the browser is hidden in the newly created tab page, that is, all redundant information except the online document is hidden.
As a possible implementation manner, in order to enable the newly created tab page to be in the full screen display mode, an Application Programming Interface (API) of the browser may be called to control the tab page to open the full screen display mode.
In step 103, the online document is divided into pages.
In the embodiment of the disclosure, because the online document is displayed in the browser in the form of a webpage, the online document is subjected to paging operation, so that text parts, pictures, tables and the like of the online document can be visually displayed to achieve a better display effect, and further, a user can browse the paged online document in a mode of operating a shortcut key.
As a possible implementation manner, a shortcut key for displaying the next page of the online document may be set as a space key, a down or right direction key, a carriage return, a PageDown key, a letter N key, etc.; a shortcut key of a page on the online document display can also be set as an upper or left direction key, a PageUp key, a P letter key and the like. Furthermore, the user can realize the page turning of the online document by operating the shortcut key, thereby simplifying the user operation and improving the user experience.
And step 104, paging and displaying the multiple pages in the label page.
Specifically, multiple pages of the online document are paginated and displayed in a tag page in a mode of displaying one of the multiple pages, and the displayed page is switched in response to a page turning operation of the online document by a user.
As an example, the current page of the online document displayed in the tab page is the fifth page, and when the shortcut key operated by the user is to enter the next page, the displayed current page is switched to the sixth page in response to the page turning operation of the online document by the user. Therefore, the online document can be subjected to page display by responding to the page turning operation of the user.
Furthermore, after the multiple pages are subjected to paging display in the tab page, when the operation that the user exits from the full screen is detected, the tab page is closed in response to the operation that the online document exits from the full screen.
As a possible implementation manner, the JavaScript code can be used for controlling the online document to exit the display mode and closing the full-screen mode of the browser tab page.
According to the online document display method, the label page of the browser is newly built by responding to the full-screen display operation of the online document, the control bar of the browser is hidden in the label page, finally, the online document is divided into multiple pages, and the multiple pages are displayed in the label page in a paging mode. Therefore, the online document is divided into a plurality of pages and is displayed in a paging mode in a tab page of a newly-built browser by responding to the full-screen display operation of the online document, so that the full-screen display and automatic paging functions of the online document are realized, the operation of a user is simplified, the display efficiency of the online document is improved, and the user experience is improved.
As a possible implementation manner, on the basis of the embodiment shown in fig. 1, referring to fig. 3, step 103 may further include the following steps:
Specifically, the pagination can be performed according to each title contained in the character part, each title and the corresponding paragraph are divided into the same page, and the font size of each title and the corresponding paragraph after the pagination are adjusted, so that the influence on the user experience due to too large or too small font size is avoided.
It should be noted that the document title of the online document is displayed in the middle, and the remaining first-level title, second-level title, third-level title, and the like are all displayed in a left-aligned manner.
As one possible implementation manner, when the text line number of a paragraph in a text portion of the online document is not greater than the third threshold, the paragraph and the corresponding heading, of which the text line number is not greater than the third threshold, are divided into the same page. The third threshold is the preset most appropriate line number of the text part of the full-screen displayed online document.
As another possible implementation manner, when the number of text lines of a paragraph in a text portion of the online document is greater than a third threshold, the paragraph with the number of text lines greater than the third threshold is divided into at least two pages, and each page contains no more text lines than the third threshold.
It should be noted that, when the number of text lines of paragraphs in a text portion of an online document is much larger than a third threshold, the paragraphs whose number of text lines is much larger than the third threshold are first divided into a long page, and then the divided long page is subjected to paging processing, where the number of text lines included in each paged page is not larger than the third threshold. The long page is not one page of the online document, but when the text line number of the text part of the online document is far larger than a third threshold value, the text part is divided into one long page, and then the divided long page is subjected to paging processing to obtain two or more pages in the online document.
As an example, the third threshold may be set to 16, i.e., the number of lines of text of the online document displayed full screen is at most 16. If the number of text lines of a paragraph in the text portion of the online document is 13 lines, the paragraph and the corresponding heading are divided into the same page. If the number of text lines of a paragraph in the text portion of the online document is 20 lines, the paragraph and the corresponding heading are divided into two pages. The number of text lines of the first page may be divided into 16 lines, the number of text lines of the second page may be divided into 4 lines, or both the number of text lines of the two pages may be divided into 10 lines. The specific dividing manner of the text line number is not limited, as long as each page contains 16 text line numbers. If the text line number of a paragraph in a text part of an online document is 50 lines, the paragraph and a corresponding title are divided into a long page, and then the long page is subjected to paging processing, and each page after paging does not exceed 16 lines.
Referring to FIG. 4, FIG. 4 is a diagram illustrating paging of text portions of an online document. And paging the text part of the online document according to each title contained in the text part, and dividing each title and the corresponding paragraph into the same page. As can be seen from fig. 4, the primary titles 41, 43 and the secondary title 44 are all displayed in left alignment. The corresponding paragraphs within the primary heading 41 and the dashed line box 42 are divided into one page, and the corresponding paragraphs within the primary heading 43, the secondary heading 44 and the dashed line box 45 are divided into one page.
In the embodiment of the disclosure, the picture of the online document is displayed in the middle, and one picture is divided into one page for display. If the picture is too large and cannot be divided into two pages, the size of the overlarge picture can be adjusted according to the page size, so that the overlarge picture can be displayed on one page, and the problem that the overlarge picture displayed on multiple pages is not beneficial to the user to view is solved. If the picture is too small, the two pictures cannot be divided into one page, and the size of the too small picture can be adjusted according to the size of the page, so that the too small picture can be clearly displayed.
As an example, referring to fig. 5, it can be known that a picture of a paginated online document is displayed in the middle and one picture is displayed on one page, and the picture is resized according to the page size.
It should be noted that when a text portion and a picture exist in one page of an online document at the same time, the text portion and the picture of the online document can be paged at the same time.
In the embodiment of the disclosure, for the tables of the online document, one table is divided into one page and displayed in the middle, and meanwhile, the word size of the text of each table is adjusted.
As a possible scenario, when the number of rows in the table is greater than a preset first threshold, a scroll bar control is added to the corresponding page for the table with the number of rows greater than the preset first threshold, so that a user can browse the table with the number of rows greater than the preset first threshold by operating the scroll bar control. Wherein the scroll bar control is used for scrolling and displaying rows of the table in one page. The preset first threshold value is the maximum row value of a display table in one page of the online document when the screen is full and is preset.
As an example, referring to fig. 6, it can be known that the table of the paginated online document is divided into one page and displayed in the middle. For example, the number of rows in table 1 is smaller than the first threshold, and can be visually displayed in one page. Table 2, because the number of lines is greater than the first threshold, for example, 11 lines, only a part of the number of lines is displayed in the page of the online document in fig. 6, and by adding the scroll bar control in the dashed box 61 to the page corresponding to table 2, the user can browse table 2 by operating the scroll bar control in the dashed box 61.
Specifically, for an ordered or unordered list of online documents, the list is paged according to the number of list lines contained in each sub-item of the highest level.
In one possible scenario, when the number of list lines included in each determined sub-item of the highest hierarchy is less than or equal to a second threshold, each sub-item of which the number of list lines is less than or equal to the second threshold is divided into a corresponding page, and the corresponding page includes at least one list of sub-items of the highest hierarchy, and the number of list lines is not greater than the second threshold. The second threshold is the maximum value of the preset display list line number in one page of the online document when the screen is full.
In another possible scenario, when the determined number of list lines included in each sub-item of the highest hierarchy is greater than the second threshold, each sub-item of the highest hierarchy, in which the number of list lines included in each sub-item is greater than the second threshold, is divided into at least two corresponding pages, and each page of the at least two corresponding pages includes a list of at least one lowest-hierarchy sub-item in the corresponding highest hierarchy, and the number of list lines included in each sub-item is not greater than the second threshold.
As an example, referring to FIG. 7, within the dashed box 71 is an ordered list of online documents that is divided into one page due to the small number of rows in the list. The dotted frames 72 and 73 are unordered lists of online documents, which are sorted into two pages according to the hierarchy of the sub-items in the list.
Optionally, after paging text parts, pictures, tables, and lists of the online document, an operation of inserting a file into the online document may be performed, and a user may click the inserted file, but the inserted file cannot be divided into one page alone, and paging may be performed according to the number of lines and context. Group cards or personal cards may also be inserted into the online document, and similarly, the group cards and personal cards may not be divided into one page separately.
It should be noted that the personal name card may be inserted in the form of "@", specifically, the user may input a character after "@", for example, input "@ little king", and further recognize the input character part, determine the matched personal name card, and insert the personal name card into the online document. When the mouse is hovered over the "@ little king", the personal business card matched with the little king is displayed.
The online document display method of the embodiment of the disclosure pages the text part of the online document according to each title contained in the text part; wherein, each title and the corresponding paragraph are divided into the same page; dividing a picture into one page for the pictures of the online document, and adjusting the size of each picture according to the page size; dividing a table of an online document into one page, adjusting the word size of the text of each table, and adding a scroll bar control in a corresponding page for the table with the number of rows greater than a preset first threshold; the scroll bar control is used for scrolling and displaying each row of the table; paging an ordered or unordered list of the online document according to the hierarchy of the sub-items in the list if the line number of the list is greater than a second threshold value; and if the number of the rows of the list is less than or equal to a second threshold value, dividing the list into one page. Therefore, automatic paging of the online documents can be realized, the display effect of the online documents is improved, and the user experience is improved.
In order to implement the above embodiments, the embodiments of the present disclosure further provide an online document display apparatus.
Fig. 8 is a schematic structural diagram of an online document display apparatus according to an embodiment of the present disclosure.
As shown in fig. 8, the online document presentation apparatus 100 includes: a processing module 110, a hiding module 120, a paging module 130, and a presentation module 140.
And the processing module 110 is configured to, in response to a full-screen display operation on the online document, newly create a tab page of the browser.
And a hiding module 120, configured to hide a control bar of the browser in the tab page.
A paging module 130 for dividing the online document into a plurality of pages.
And a display module 140 for performing page display on the plurality of pages in the label page.
As another possible implementation manner, the online document presentation apparatus 100 may further include:
and the closing module is used for responding to the full screen exiting operation of the online document and closing the tag page.
As another possible implementation manner, the processing module 110 may further include:
and the detection unit is used for detecting user operation in the existing label page of the online document displayed by the browser.
And the judging unit is used for judging whether the existing label page is in a full-screen display mode of the hidden control bar or not when the full-screen display operation is detected.
And the new building unit is used for building a new tab page of the browser after determining that the existing tab page is not in the full screen display mode.
And the response rejection unit is used for rejecting to respond to the full-screen display operation when the existing label page is determined to be in the full-screen display mode.
As another possible implementation manner, the paging module 130 may further include:
the text paging unit is used for paging the text part of the online document according to each title contained in the text part; wherein each title and corresponding paragraph are divided into the same page.
And the picture paging unit is used for dividing one picture into one page for the pictures of the online document and adjusting the size of each picture according to the page size.
The table paging unit is used for dividing one table into one page for the tables of the online documents, adjusting the word size of the text of each table, and adding a scroll bar control in the corresponding paging for the table with the table line number larger than a preset first threshold value; the scroll bar control is used for scrolling and displaying each row of the table.
The list paging unit is used for paging an ordered or unordered list of the online document according to the hierarchy of the sub-items in the list if the line number of the list is greater than a second threshold value; and if the number of the list lines is less than or equal to a second threshold value, dividing the list into one page.
As another possible implementation manner, the text paging unit is further specifically configured to divide a paragraph and a corresponding title, for which a text line number is not greater than a third threshold, into the same page;
and dividing the paragraph of which the text line number is greater than the third threshold into at least two pages, wherein each page contains the text line number which is not greater than the third threshold.
As another possible implementation manner, the list paging unit is further specifically configured to determine a list line number included in each sub-entry of the highest hierarchy;
dividing each sub item, which contains list rows not larger than a second threshold value, in each sub item of the highest level into a corresponding page; the corresponding page comprises at least one list of sub-items of the highest level, and the number of rows of the list is not more than a second threshold value;
dividing each sub item, the number of list lines of which is greater than a second threshold value, in each sub item of the highest level into at least two corresponding pages; wherein each page of the at least two corresponding pages includes a list of at least one lowest level sub-entry in the corresponding highest level, and includes a list row number not greater than a second threshold.
According to the online document display device disclosed by the embodiment of the disclosure, the label page of the browser is newly built by responding to the full-screen display operation of the online document, the control bar of the browser is hidden in the label page, finally, the online document is divided into multiple pages, and the multiple pages are further displayed in the label page in a paging mode. Therefore, the online document is divided into a plurality of pages and is displayed in a paging mode in a tab page of a newly-built browser by responding to the full-screen display operation of the online document, so that the full-screen display and automatic paging functions of the online document are realized, the operation of a user is simplified, the display efficiency of the online document is improved, and the user experience is improved.
It should be noted that the foregoing explanation on the embodiment of the online document displaying method is also applicable to the online document displaying apparatus of the embodiment, and is not repeated herein.
In order to implement the foregoing embodiments, an embodiment of the present disclosure further provides an electronic device, which includes at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being configured to perform the online document presentation method of the above embodiment.
Fig. 9 is a diagram illustrating a hardware structure of an electronic device according to an embodiment of the present disclosure. The electronic device may be implemented in various forms, and the electronic device in the embodiments of the present disclosure may include, but is not limited to, mobile terminal devices such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation apparatus, a vehicle-mounted terminal device, a vehicle-mounted display terminal, a vehicle-mounted electronic rear view mirror, and the like, and fixed terminal devices such as a digital TV, a desktop computer, and the like.
Referring now to FIG. 9, shown is a schematic diagram of an electronic device suitable for use in implementing embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 9 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 9, the electronic device may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 801 that may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage means 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data necessary for the operation of the electronic apparatus are also stored. The processing apparatus 801, the ROM 802, and the RAM 803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
Generally, the following devices may be connected to the I/O interface 805: input devices 806 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 807 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage 808 including, for example, magnetic tape, hard disk, etc.; and a communication device 809. The communication means 809 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. While fig. 9 illustrates an electronic device having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 809, or installed from the storage means 808, or installed from the ROM 802. The computer program, when executed by the processing apparatus 801, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
In order to achieve the above embodiments, the embodiments of the present disclosure further provide a computer-readable storage medium, where the computer-readable storage medium stores computer-readable instructions, and the computer-readable instructions are configured to enable a computer to execute the online document presentation method according to the above embodiments.
Fig. 10 is a schematic diagram illustrating a non-transitory computer-readable storage medium according to an embodiment of the present disclosure. As shown in fig. 10, a computer-readable storage medium 300 having non-transitory computer-readable instructions 301 stored thereon according to an embodiment of the present disclosure. The non-transitory computer readable instructions 301, when executed by a processor, perform all or part of the steps of the online document presentation method of the embodiments of the present disclosure as described above.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring at least two internet protocol addresses; sending a node evaluation request comprising the at least two internet protocol addresses to node evaluation equipment, wherein the node evaluation equipment selects the internet protocol addresses from the at least two internet protocol addresses and returns the internet protocol addresses; receiving an internet protocol address returned by the node evaluation equipment; wherein the obtained internet protocol address indicates an edge node in the content distribution network.
Alternatively, the computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving a node evaluation request comprising at least two internet protocol addresses; selecting an internet protocol address from the at least two internet protocol addresses; returning the selected internet protocol address; wherein the received internet protocol address indicates an edge node in the content distribution network.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first retrieving unit may also be described as a "unit for retrieving at least two internet protocol addresses".
Claims (14)
1. An online document presentation method, characterized in that the method comprises the steps of:
detecting user operation in an existing label page of an online document displayed by a browser;
if full screen display operation is detected, judging whether the existing label page is in a full screen display mode of a hidden control bar;
if the existing label page is determined not to be in the full-screen display mode, a label page of the browser is newly established;
hiding a control bar of the browser in the tab page;
dividing the online document into a plurality of pages; paging the text part of the online document according to each title contained in the text part, and adjusting the word size of each title and the corresponding paragraph after paging; wherein, each title and the corresponding paragraph are divided into the same page; when the text line number of the paragraphs in the word part of the online document is not more than a third threshold value, dividing the paragraphs of which the text line number is not more than the third threshold value and the corresponding titles into the same page, and when the text line number of the paragraphs in the word part of the online document is more than the third threshold value, dividing the paragraphs of which the text line number is more than the third threshold value into at least two pages, wherein each page contains the text line number which is not more than the third threshold value;
paging the plurality of pages within the tab page.
2. The online document presentation method of claim 1, wherein the dividing the online document into a plurality of pages further comprises:
and for the pictures of the online document, dividing one picture into one page, and adjusting the size of each picture according to the page size.
3. The online document presentation method of claim 1, wherein said dividing the online document into a plurality of pages comprises:
dividing a table into one page for the table of the online document, adjusting the word size of the text of each table, and adding a scroll bar control in the corresponding page for the table with the number of rows greater than a preset first threshold; the scroll bar control is used for scrolling rows of a displayed table.
4. The online document presentation method of claim 1, wherein said dividing the online document into a plurality of pages comprises:
paging the ordered or unordered list of the online document according to the hierarchy of the sub-items in the list if the line number of the list is greater than a second threshold value;
and if the number of the list lines is less than or equal to the second threshold value, dividing the list into one page.
5. The method of claim 4, wherein the paging according to the hierarchy of sub-items in the list comprises:
determining the list line number contained in each sub-item of the highest level;
dividing each sub item, which contains list rows not greater than the second threshold value, in each sub item of the highest level into a corresponding page; wherein the corresponding page contains at least one list of sub-items of the highest hierarchy level, and the number of list rows is not greater than the second threshold;
dividing each sub item, of which the list line number is greater than the second threshold value, in each sub item of the highest level into at least two corresponding pages; wherein each of the corresponding at least two pages includes a list of at least one lowest level sub-entry within a respective highest level and includes a list number of rows not greater than the second threshold.
6. The online document presentation method according to any one of claims 1 to 5, wherein the pagination presentation of the plurality of pages within the tab page comprises:
displaying one of the plurality of pages within the label page;
and responding to the page turning operation, and switching the displayed page.
7. An online document presentation apparatus, the apparatus comprising:
the processing module comprises a detection unit, a judgment unit and a newly-built unit; the detection unit is used for detecting user operation in the existing label page of the online document displayed by the browser; the judging unit is used for judging whether the existing label page is in a full-screen display mode of the hidden control bar or not if full-screen display operation is detected; the new building unit is used for building a new tab page of the browser if the existing tab page is determined not to be in the full screen display mode;
the hiding module is used for hiding a control bar of the browser in the tab page;
a paging module to divide the online document into a plurality of pages; the paging module comprises a text paging unit, a text paging unit and a text processing unit, wherein the text paging unit is used for paging the text part of the online document according to each title contained in the text part and adjusting the font size of each title and the corresponding paragraph after paging; wherein, each title and the corresponding paragraph are divided into the same page; when the text line number of the paragraphs in the word part of the online document is not more than a third threshold value, dividing the paragraphs of which the text line number is not more than the third threshold value and the corresponding titles into the same page, and when the text line number of the paragraphs in the word part of the online document is more than the third threshold value, dividing the paragraphs of which the text line number is more than the third threshold value into at least two pages, wherein each page contains the text line number which is not more than the third threshold value;
and the display module is used for performing paging display on the plurality of pages in the label page.
8. The online document presentation device of claim 7, wherein the paging module further comprises:
and the picture paging unit is used for dividing one picture into one page for the pictures of the online document and adjusting the size of each picture according to the page size.
9. The online document presentation device of claim 7, wherein the paging module further comprises:
the table paging unit is used for dividing one table into one page for the tables of the online document, adjusting the word size of the text of each table, and adding a scroll bar control in the corresponding paging for the table with the table line number larger than a preset first threshold value; the scroll bar control is used for scrolling rows of a displayed table.
10. The online document presentation device of claim 7, wherein the paging module further comprises:
the list paging unit is used for paging the ordered or unordered list of the online document according to the hierarchy of the sub-items in the list if the line number of the list is greater than a second threshold value; and if the number of the list lines is less than or equal to the second threshold value, dividing the list into one page.
11. The online document presentation device of claim 10, wherein the list paging unit is specifically configured to:
determining the list line number contained in each sub-item of the highest level;
dividing each sub item, which contains list rows not greater than the second threshold value, in each sub item of the highest level into a corresponding page; wherein the corresponding page contains at least one list of sub-items of the highest hierarchy level, and the number of list rows is not greater than the second threshold;
dividing each sub item, of which the list line number is greater than the second threshold value, in each sub item of the highest level into at least two corresponding pages; wherein each of the corresponding at least two pages includes a list of at least one lowest level sub-entry within a respective highest level and includes a list number of rows not greater than the second threshold.
12. The online document presentation device of any one of claims 8-11, wherein the presentation module is specifically configured to:
displaying one of the plurality of pages within the label page;
and responding to the page turning operation, and switching the displayed page.
13. An electronic device, comprising
At least one processor; and a memory communicatively coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor, the instructions being configured to perform the online document presentation method of any of claims 1-6.
14. A non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the online document presentation method according to any one of claims 1 to 6.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811208364.3A CN109408752B (en) | 2018-10-17 | 2018-10-17 | Online document display method and device and electronic equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811208364.3A CN109408752B (en) | 2018-10-17 | 2018-10-17 | Online document display method and device and electronic equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN109408752A CN109408752A (en) | 2019-03-01 |
| CN109408752B true CN109408752B (en) | 2020-06-19 |
Family
ID=65468288
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201811208364.3A Active CN109408752B (en) | 2018-10-17 | 2018-10-17 | Online document display method and device and electronic equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN109408752B (en) |
Families Citing this family (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109947311A (en) * | 2019-01-25 | 2019-06-28 | 维沃移动通信有限公司 | A kind of image display method and terminal device |
| CN109976617B (en) * | 2019-04-03 | 2021-06-25 | 腾讯科技(深圳)有限公司 | Document presentation method and device |
| CN111339288A (en) * | 2020-02-25 | 2020-06-26 | 北京字节跳动网络技术有限公司 | Method, device, equipment and computer readable medium for displaying text |
| CN111580818A (en) * | 2020-05-19 | 2020-08-25 | 深圳华锐金融技术股份有限公司 | Parameter configuration method and device, computer equipment and storage medium |
| CN111797603B (en) | 2020-07-02 | 2022-02-01 | 北京字节跳动网络技术有限公司 | Method and device for browsing table in document, electronic equipment and storage medium |
| CN112328926B (en) * | 2020-11-03 | 2022-11-01 | 杭州天宽科技有限公司 | Text paragraph folding and unfolding method based on webpage |
| CN112464618A (en) * | 2020-12-03 | 2021-03-09 | 北京明略软件系统有限公司 | Method and device for paging document data, storage medium and electronic equipment |
| CN112559943B (en) * | 2020-12-25 | 2024-02-27 | 北京百度网讯科技有限公司 | Webpage element display method and device, electronic equipment, storage medium and product |
| CN113011140A (en) * | 2021-02-10 | 2021-06-22 | 北京字跳网络技术有限公司 | View display method and device and electronic equipment |
| CN113297824B (en) * | 2021-05-11 | 2024-08-16 | 北京字跳网络技术有限公司 | Text display method, text display device, electronic equipment and storage medium |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7685514B1 (en) * | 2000-05-25 | 2010-03-23 | International Business Machines Corporation | Method and system for incorporation of graphical print techniques in a web browser |
| CN1503160A (en) * | 2002-11-20 | 2004-06-09 | 英业达股份有限公司 | Automatic typesetting method of electronic book reading interface executable by computer |
| CN101853293B (en) * | 2010-05-26 | 2012-07-25 | 卓望数码技术(深圳)有限公司 | Adaptive paging method and device |
-
2018
- 2018-10-17 CN CN201811208364.3A patent/CN109408752B/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| CN109408752A (en) | 2019-03-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109408752B (en) | Online document display method and device and electronic equipment | |
| US8448074B2 (en) | Method and apparatus for providing portioned web pages in a graphical user interface | |
| RU2662632C2 (en) | Presenting fixed format documents in reflowed format | |
| US10270728B1 (en) | Managing notifications across services | |
| US11360640B2 (en) | Method, device and browser for presenting recommended news, and electronic device | |
| US20250013815A1 (en) | Electronic text generation method and apparatus, device, and medium | |
| US8903931B1 (en) | Methods for generating e-mail message interfaces | |
| CN110506267B (en) | Digital component background rendering | |
| US20150205454A1 (en) | Systems and methods for displaying preview data | |
| CN105955593B (en) | Method and device for presenting discussion information | |
| CN113741773B (en) | Information display method, device, equipment and medium | |
| CN105094841A (en) | Page commenting method and device | |
| CN109389365B (en) | Multi-person collaborative document processing method and device and electronic equipment | |
| CN105808307B (en) | Page display method and device | |
| CN112052368B (en) | Method, system, storage medium and electronic device for automatically extracting list data | |
| CN111259270A (en) | Weather reminding method, equipment and computer readable medium | |
| CN111124564A (en) | Method and device for displaying user interface | |
| US8166390B2 (en) | Figure sizing and positioning on dynamic pages | |
| CN111934985A (en) | Media content sharing method, device and equipment and computer readable storage medium | |
| CN107533568A (en) | It is determined that the system and method using zoom level | |
| CN104021127A (en) | Information processing method and electronic device | |
| US20160255174A1 (en) | Data file and rule driven synchronous or asynchronous document generation | |
| CN107391534A (en) | The page is shown, pagefile return method and device, computer-readable storage medium | |
| CN110221892B (en) | Method, device, medium and electronic equipment for scrolling window information | |
| CN112667939A (en) | Webpage refreshing method and device, electronic equipment and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |