[go: up one dir, main page]

CN102736819A - A method and a device for displaying an electronic document - Google Patents

A method and a device for displaying an electronic document Download PDF

Info

Publication number
CN102736819A
CN102736819A CN2011100807021A CN201110080702A CN102736819A CN 102736819 A CN102736819 A CN 102736819A CN 2011100807021 A CN2011100807021 A CN 2011100807021A CN 201110080702 A CN201110080702 A CN 201110080702A CN 102736819 A CN102736819 A CN 102736819A
Authority
CN
China
Prior art keywords
ordinate
electronic document
component
page
current page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2011100807021A
Other languages
Chinese (zh)
Other versions
CN102736819B (en
Inventor
袭建帅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hanwang Technology Co Ltd
Original Assignee
Hanwang Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hanwang Technology Co Ltd filed Critical Hanwang Technology Co Ltd
Priority to CN201110080702.1A priority Critical patent/CN102736819B/en
Publication of CN102736819A publication Critical patent/CN102736819A/en
Application granted granted Critical
Publication of CN102736819B publication Critical patent/CN102736819B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Document Processing Apparatus (AREA)

Abstract

An embodiment in the invention discloses a method and a system for displaying an electronic document, and relates to an electronic document reading and displaying technology. The method and the system allow the content of the electronic document to be displayed in an original typesetting format of a graphic/text-mixed electrical document. The method comprises the following steps: obtaining a first ordinate corresponding to a bottom side of a current page; obtaining, as a first constituent element, a constituent element having an end ordinate with a value larger than that of the first ordinate, wherein the ending ordinate corresponds to the current page; obtaining a paging ordinate corresponding to the smallest value among starting ordinate values of all the constituent elements in the first constituent element; using the paging ordinate as the ending ordinate of the current page and the starting ordinate of a page that follows the current page; obtaining, as a second constituent element, a constituent element having an ending ordinate with a value lower than or equal to that of the paging ordinate and a starting ordinate with a value larger than that of the ending ordinate of the previous page, wherein the ending ordinate and the starting ordinate correspond to the current page; and displaying the second constituent element on the current page and the first constituent element on the page that follows the current page. The method and the device are mainly used for displaying the electronic document.

Description

Electronic document display method and device
Technical field
The present invention relates to the electronic document reading display technique, relate in particular to electronic document display method and device.
Background technology
Owing to adopt the bistable state display screen of electronic ink technologies to have advantages such as power consumption is low, display effect good, under high light, also can read, so the electronic reading device of having used the bistable state display screen receives liking of reading public deeply.
At present, electronic reader can be simplified the original effect in the electronic document when showing the electronic document of image mixed character typeset, such as have with picture and literal separately separately the mode of demonstration show the content of electronic document; That have even directly the picture in the electronic document is abandoned, only show the word segment in the electronic document, do not show the picture in the electronic document.
Adopt aforesaid way to show electronic document; In the content of electronic document, comprise picture; And when the display position of picture takies identical display line with the display position of literal, can't show the original composing state of electronic document, if literal in the document and picture are explanations each other; Then read and bring very big inconvenience, reduced reading experience to the user.
Summary of the invention
Embodiments of the invention provide a kind of electronic document display method and device, can show this electronic document content according to the original typesetting format of the electronic document of image mixed character typeset.
For achieving the above object, embodiments of the invention adopt following technical scheme:
A kind of electronic document display method comprises:
Obtain corresponding first ordinate in base of current page with respect to the electronic document initial position;
Obtain first component of the corresponding termination ordinate of current page greater than said first ordinate;
Obtain the minimum value of the initial ordinate of each component in said first component, the minimum value of choosing minimum initial ordinate is as the paging ordinate;
With the initial ordinate of paging ordinate as the next page of the termination ordinate of current page and current page;
Obtain the corresponding termination ordinate of current page be less than or equal to paging ordinate, initial ordinate greater than the component of the termination ordinate of previous page as second component;
Show said second component at current page, show first component at the next page of current page.
A kind of electronic document display device comprises:
First acquiring unit is used to obtain corresponding first ordinate with respect to the electronic document initial position in base of current page;
Second acquisition unit is used to obtain first component of the corresponding termination ordinate of current page greater than said first ordinate;
The 3rd acquiring unit is used for obtaining the minimum value of the initial ordinate of said first each component of component, and the minimum value of choosing minimum initial ordinate is as the paging ordinate;
The unit is set, is used for the initial ordinate of paging ordinate as the next page of the termination ordinate of current page and current page;
The 4th acquiring unit, be used to obtain the corresponding termination ordinate of current page be less than or equal to paging ordinate, initial ordinate greater than the component of the termination ordinate of previous page as second component;
Display unit is used for showing said second component at current page, shows first component at the next page of current page.
Electronic document display method that the embodiment of the invention provides and device; When electronic document to be shown is the typesetting format of image mixed character typeset; Size according to the ordinate and the electronic reading device display window of each component in the electronic document to be shown; Judge the composing situation of the current page to be shown at the underframe place of display window; If the display window underframe has hidden the component of electronic document to be shown, then get covered component the minimum value of corresponding ordinate, corresponding ordinate is shown at the next page of current page greater than the corresponding component of the minimum value of this ordinate.Be picture when the bottom margin of the page, picture with show at the next page of current page with literal that this picture is in identical display line, can show this electronic document content according to the original typesetting format of the electronic document of image mixed character typeset.
Description of drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the invention; The accompanying drawing of required use is done to introduce simply in will describing embodiment below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
The process flow diagram of the electronic document display method that Fig. 1 provides for the embodiment of the invention;
The process flow diagram of another electronic document display method that Fig. 2 provides for the embodiment of the invention;
Fig. 3 is for obtaining the synoptic diagram of component information in the document to be shown in the embodiment of the invention;
Fig. 4 is minimum value A and the position view of maximal value B in electronic document to be shown in the embodiment of the invention;
Fig. 5 is the current page part synoptic diagram after the electronic document among Fig. 4 is slit into sheets demonstration;
Fig. 6 is next the display page part synoptic diagram after the electronic document among Fig. 4 is slit into sheets demonstration;
The structural drawing of the electronic document display device that Fig. 7 provides for the embodiment of the invention;
The structural drawing of another electronic document display device that Fig. 8 provides for the embodiment of the invention.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
The embodiment of the invention provides a kind of electronic document display method, and is as shown in Figure 1, may further comprise the steps:
101, obtain corresponding first ordinate in base of current page with respect to the electronic document initial position.
The upper left corner with the electronic document reference position is initial point, and the writing direction of display page left margin is vertical positive dirction, and the writing direction of upper edge is horizontal positive dirction.In order to confirm content, need obtain corresponding first ordinate in base of current page, as the reference value of subsequent step with respect to the electronic document page to be shown top at the electronic document of the corresponding demonstration of current page.
102, obtain in the current page stop ordinate greater than the component of said first ordinate as first component.
With respect to current page; Stop ordinate greater than the component of said first ordinate as first component; Be shown the component of the base covering of device display window exactly, this first component should show at the next page of current page.
103, obtain the minimum value of the initial ordinate of each component in said first component, the minimum value of choosing minimum initial ordinate is as the paging ordinate.
With the paging ordinate as the separatrix between the next page of current page and current page.
104, with the initial ordinate of paging ordinate as the displaying contents of the next page of the termination ordinate of current page displaying contents and current page.
From each component that the base of display device display window hides; Obtain the minimum value of the initial ordinate of each component; And from the minimum value of the initial ordinate of these components, choose minimum value again as paging ordinate A, be illustrated in figure 4 as the position at paging ordinate A place.Obtain the initial ordinate and termination ordinate of each display page successively.
With the pairing horizontal linear of paging ordinate A value as the separatrix between the next page of current page and current page; Can make all constituent elements that is shown the covering of window base at current page all in the next page demonstration, the component that current page is not shown the covering of window base shows on current page.
105, obtain in the current page stop ordinate be less than or equal to paging ordinate, initial ordinate greater than the component of the termination ordinate of previous page as second component.
106, show said second component at current page, show first component at the next page of current page.
The initial ordinate that has obtained each display page with stop ordinate after, show the content between the termination ordinate of initial ordinate and current page of current page in the electronic document to be shown, i.e. second component at current page.
The electronic document display method that the embodiment of the invention provides; When electronic document to be shown is the typesetting format of image mixed character typeset; Size according to the ordinate and the electronic reading device display window of each component in the electronic document to be shown; Judge the composing situation of current page at the underframe place of display window, if the display window underframe has hidden the component of electronic document to be shown, then get covered each component the minimum value of corresponding ordinate; The minimum value of choosing minimum initial ordinate shows greater than the corresponding component of paging ordinate corresponding ordinate as the paging ordinate at the next page of current page.Be picture when the bottom margin of the page, picture with show at the next page of current page with literal that this picture is in identical display line, can show this electronic document content according to the original typesetting format of the electronic document of image mixed character typeset.
As a kind of embodiment of the embodiment of the invention, the embodiment of the invention provides another kind of electronic document display method, and is as shown in Figure 2, may further comprise the steps:
201, from electronic document, parse initial ordinate and the termination ordinate of all constituent elements with respect to the electronic document initial position.
For the ease of calculating; The initial position of at first preset electronic document; This initial position can be the page top of electronic document; Also can be the position at the initial ordinate place of the first row component in the electronic document, the embodiment of the invention be the initial position of electronic document with the page top of electronic document.
After the initial position of the electronic document of confirming; Relative position according to all literal that parse in the streaming document and picture carries out paging to content to be displayed; The content of electronic document to be shown is divided into different components; For example can electronic document content to be shown be divided into literal section, literal line, pel, pel can comprise form, formula, picture etc. again.
In the present embodiment; Can use the Webkit kernel to open electronic document to be shown; And through the display mode and the font parameter of the electronic document display device of setting are handled this electronic document to be shown in advance; Obtain all component information that need show in this electronic document to be shown, these information can comprise position coordinates, width, highly, element type (for example: literal, mathematical formulae, picture etc.), left and right margins, go up bottom margin etc.
For example, obtain the information of each component in the electronic document shown in Figure 3, as shown in the table:
Figure BDA0000053320570000051
202, obtain corresponding first ordinate in base of current page with respect to the electronic document initial position.
For the content of the electronic document confirming in current page, to show, need obtain corresponding first ordinate in base of current page, as the reference value of subsequent step with respect to the electronic document page to be shown top.
For example, the height of known electronic document display device display window is 200pic, and the termination ordinate of last component in the electronic document content to be shown is 1900pic.Current page is for showing the 3rd page in the whole electronic document to be shown; The initial ordinate of the 1st page of displaying contents is that 0pic, termination ordinate are 100pic; The initial ordinate of the 2nd page of displaying contents is that 100pic, termination ordinate are 150pic; When current page was the 3rd page, the component at place, display window base with respect to first ordinate on document file page to be shown top was: 150pic (the termination ordinate of the 2nd page of displaying contents)+200pic (height of display window)=350pic (component at place, current page base is with respect to the ordinate on document file page to be shown top).
203, obtain the corresponding termination ordinate of current page greater than the component of said first ordinate as first component.
With respect to current page; Stop ordinate greater than the component of said first ordinate as first component; Be shown the component of the base covering of device display window exactly, this first component should show at the next page of current page.
In the present embodiment, be first component, need show at the 4th page for stopping the component of ordinate greater than 350pic.
204, judge whether said first component is the literal section.
For further accurate each display page needs content displayed; Can further judge the type of component; If first component is components such as a table, mathematical formulae, picture, then this component is put in the next page of current page and shows execution in step 206; If the literal section, then execution in step 205.
Still with the example that is shown as of electronic document shown in Figure 3, if " book is in interior reading industry, and scale is far longer than other some industries.His imagination space oooOo than other, music has bigger imagination space, also is the focus that we pay close attention to " this component base of being shown window hidden, then execution in step 205, otherwise carry out 206.
205, with stop in the literal section ordinate greater than first literal line of first ordinate as said first component.
If this first component is a literal paragraph, then judge each literal line that this article field falls, the literal line in this page not is put in the next page of current page and shows.
And then " book is in interior reading industry, and scale is far longer than other some industries to judge the literal section.His imagination space oooOo than other, music has bigger imagination space, also is the focus that we pay close attention to " in each literal line base of whether being shown window hide.If the base that " focus " is shown window literal line has hidden, then with this literal line as first component, need show at the next page of current page.
206, the initial ordinate of record first component.
For the ease of in subsequent step, confirming the boundary of the next page of current page and current page, note the along slope coordinate value of the initial ordinate of first element.
207, obtain the minimum value of the initial ordinate of each component in first component, the minimum value of choosing minimum initial ordinate is as paging ordinate A.
Confirm the separatrix between the next page of current page and current page.Be illustrated in figure 4 as the position at paging ordinate A place.
For the ease of in subsequent step, confirming the boundary of the next page of current page and current page, obtain the minimum value of the initial ordinate of each component in first component, the minimum value of choosing minimum initial ordinate is as paging ordinate A.
208, with the initial ordinate of paging ordinate A as the displaying contents of the next page of the termination ordinate of current page displaying contents and current page.
From the component that the base that is shown the device display window hides; Obtain the minimum value of the initial ordinate of each component; And in the minimum value of these initial ordinates, choose minimum value as paging ordinate A, be illustrated in figure 4 as the position at paging ordinate A place.Obtain the initial ordinate and termination ordinate of each display page successively.
To use the pairing horizontal linear of paging ordinate A value as the separatrix between the next page of current page and current page; Can make all constituent elements that is shown the covering of window base at current page all in the next page demonstration of current page, the component that current page is not shown the covering of window base shows on current page.
As a kind of embodiment of present embodiment, this step can also may further comprise the steps:
The first step is obtained in the electronic document and to be stopped ordinate and be less than or equal to paging ordinate A, initial ordinate the 3rd component greater than the termination ordinate of a last display interface.
Second goes on foot, and obtains the maximal value B of the termination coordinate of each component in the 3rd component.The position at B as shown in Figure 4 place.
The 3rd step, with the smaller value among said A and the B as the termination ordinate of current display page indication range and the initial ordinate of next display page.
This minimum value A and maximal value B are compared each other, get the smaller value among A and the B, with the smaller value among A and the B as the termination ordinate of current display page indication range and the initial ordinate of next display page.And obtain the initial ordinate of each page after the current page successively and stop ordinate.
209, obtain the corresponding termination ordinate of current page be less than or equal to paging ordinate A, initial ordinate greater than the component of the termination ordinate of previous page as second component.
With respect to current page; Stop ordinate and be less than or equal to paging ordinate A, initial ordinate second component greater than content conduct in the electronic document to be shown of the termination ordinate of previous page, being needs the component that shows in the current page.
In the present embodiment, ordinate is second component greater than 150pic less than all constituent elements in the electronic document to be shown of 350pic, just need be in current page content displayed.
210, calculate the display page quantity of electronic document to be shown.
Initial ordinate according to each display page calculates the number of pages that electronic document to be shown is divided with the termination ordinate.
211, the display page quantity by electronic document to be shown writes down said display page and the initial ordinate of this display page displaying contents in electronic document to be shown and the corresponding relation of termination ordinate.
The total paging number of pages of electronic document to be shown according to the above-mentioned steps acquisition; And the initial ordinate of each display page and termination ordinate; The method of the vertical scroll bar of manipulation that provides through the WebView that uses among the Webkit; Make display page be rolled to the initial ordinate place of appointment, only show in the display page that then this display page stops ordinate to the component between the beginning ordinate.
When the user carries out page turning or jumps page operations the electronic document display device; According to the page number of current page take out that abovementioned steps calculates to initial ordinate that should display page with stop ordinate; Vertical scroll bar that rolls then also only shows all constituent elements in this display page, realizes the arbitrarily page-turning effect of location.
212, show second component at current page, show first component at the next page of current page.
The initial ordinate that has obtained each display page with stop ordinate after, show the content between the termination ordinate of initial ordinate and current page of current page in the electronic document to be shown, i.e. second component at current page.
Display effect is illustrated in figure 5 as content displayed in current page, and shown in Figure 6 is content displayed in next display page.
The electronic document display method that the embodiment of the invention provides; When electronic document to be shown is the typesetting format of image mixed character typeset; Size according to the ordinate and the electronic reading device display window of each component in the electronic document to be shown; Judge the composing situation of the current page to be shown at the underframe place of display window; If the display window underframe has hidden the component of electronic document to be shown, then get covered component the minimum value of corresponding ordinate, corresponding ordinate is shown at the next page of current page greater than the corresponding component of the minimum value of this ordinate.Be picture when the bottom margin of the page, picture with show at the next page of current page with literal that this picture is in identical display line, can show this electronic document content according to the original typesetting format of the electronic document of image mixed character typeset.
The embodiment of the invention provides a kind of electronic document display device, and is as shown in Figure 7, comprising: first acquiring unit 71, second acquisition unit 72, the 3rd acquiring unit 73, unit 74, the 4th acquiring unit 75, display unit 76 are set.
Wherein, first acquiring unit 71 obtains corresponding first ordinate with respect to the electronic document initial position in base of current page;
For the content of the electronic document confirming in current page, to show, need obtain corresponding first ordinate in base of electronic document display device display window, as the reference value of subsequent step with respect to electronic document initial position to be shown.
Second acquisition unit 72 obtain the corresponding termination ordinate of current page greater than the component of said first ordinate as first component;
With respect to current page, stop ordinate greater than the component of said first ordinate as first component, be shown the component that the base of device display window hides exactly, this first component should show at the next page of current page.
The 3rd acquiring unit 73 obtains the minimum value of the initial ordinate of each component in said first component, and the minimum value of choosing minimum initial ordinate is as the paging ordinate.
From the component that the base that is shown the device display window hides, obtain the minimum value of the initial ordinate of each component, the minimum value of choosing minimum initial ordinate is illustrated in figure 4 as the position at paging ordinate A place as paging ordinate A.
Unit 74 is set with the initial ordinate of paging ordinate A as the displaying contents of the next page of the termination ordinate of current page displaying contents and current page;
The 4th acquiring unit 75 obtain in the current page stop ordinate be less than or equal to paging ordinate A, initial ordinate greater than the component of the termination ordinate of previous page as second component.
Display unit 76 shows said second component at current page, shows first component at the next page of current page.
The electronic document display device that the embodiment of the invention provides; If electronic document to be shown is the typesetting format of image mixed character typeset; Then according to the size of the ordinate and the electronic reading device display window of each component in the electronic document to be shown; Judge the composing situation of current page at the underframe place of display window; If the display window underframe has hidden the component of electronic document to be shown, then get the minimum value of the corresponding initial ordinate of covered component institute, the minimum value of initial ordinate of choosing minimum is as the paging ordinate;, as current page and next page separatrix corresponding ordinate is shown at the next page of current page greater than the corresponding component of the minimum value of this initial ordinate with the pairing horizontal linear of paging ordinate.Even picture is at the bottom margin of the page, picture with show at the next page of current page with literal that this picture is in identical display line, can show this electronic document content according to the original typesetting format of the electronic document of image mixed character typeset.
A kind of embodiment as the embodiment of the invention; The embodiment of the invention provides another kind of electronic document display device; As shown in Figure 8, comprising: resolution unit 81, first acquiring unit 82, second acquisition unit 83, judging unit 84, processing unit 85, the 3rd acquiring unit 86, unit 87, the 4th acquiring unit 88, first record cell 89, second record cell 810, computing unit 811, the 3rd record cell 812, display unit 813 are set.
Wherein, resolution unit 81 parses the initial ordinate and termination ordinate of all constituent elements with respect to said electronic document initial position from electronic document.
For the ease of calculating; Resolution unit 81 is carried out paging according to the relative position of all literal that parse in the streaming document and picture to content to be displayed; The content of electronic document to be shown is divided into different components; For example can electronic document content to be shown be divided into literal section, literal line, pel, pel can comprise form, formula, picture etc. again.
In the present embodiment; Can use the Webkit kernel to open electronic document to be shown; And this electronic document to be shown is handled through the display mode and the font parameter of the electronic document display device that is provided with; Obtain all component information that need show in this electronic document to be shown, these information can comprise position coordinates, width, highly, element type (for example: literal, mathematical formulae, picture etc.), left and right margins, go up bottom margin etc.
First acquiring unit 82 obtains corresponding first ordinate with respect to the electronic document initial position in base of current page;
The upper left corner with the electronic document reference position is initial point, and the writing direction of display page left margin is vertical positive dirction, and the writing direction of upper edge is horizontal positive dirction.For the content of the electronic document confirming in current page, to show, need obtain corresponding first ordinate in base of current page, as the reference value of subsequent step with respect to the electronic document page to be shown top.
Second acquisition unit 83 obtains and stops first component of ordinate greater than said first ordinate in the current page;
With respect to current page; Stop ordinate greater than the component of said first ordinate as first component; Be shown the component of the base covering of device display window exactly, this first component should show at the next page of current page.
Judging unit 84 is judged the type of said first component;
Processing unit 85 is if said first component is the literal section, then with stop in the said literal section ordinate greater than first literal line of said first ordinate as said first component.
The 3rd acquiring unit 86 obtains the minimum value of the initial ordinate of each component in said first component, and the minimum value of choosing minimum initial ordinate is as paging ordinate A;
From the component that the base that is shown the device display window hides, obtain the paging ordinate A of the initial ordinate of each component, be illustrated in figure 4 as the position at paging ordinate A place.
Unit 87 is set with the initial ordinate of paging ordinate A as the displaying contents of the next page of the termination ordinate of current page displaying contents and current page;
The 4th acquiring unit 88 obtain in the current page stop ordinate be less than or equal to paging ordinate A, initial ordinate greater than the component of the termination ordinate of previous page as second component.
The initial ordinate of said first component of first record cell, 89 records;
For the ease of in subsequent step, confirming the boundary of the next page of current page and current page, first record cell 89 is noted the along slope coordinate value of the initial ordinate of first element.
The termination ordinate of said second component of second record cell, 810 records.
Computing unit 811 calculates the display page quantity of said electronic document to be shown;
The 3rd record cell 812 writes down said display page and the initial ordinate of this display page displaying contents in electronic document to be shown and the corresponding relation that stops ordinate by the display page quantity of electronic document.
Display unit 76 shows said second component at current page, shows first component at the next page of current page.
The electronic document display device that the embodiment of the invention provides; If electronic document to be shown is the typesetting format of image mixed character typeset; Then according to the size of the ordinate and the electronic reading device display window of each component in the electronic document to be shown; Judge the composing situation of current page at the underframe place of display window; If the display window underframe has hidden the component of electronic document to be shown, then get the minimum value of the corresponding initial ordinate of covered each component institute, the minimum value of initial ordinate of choosing minimum is as the paging ordinate; The horizontal linear that this paging ordinate is corresponding shows greater than the corresponding component of this paging ordinate corresponding ordinate as current page and next page separatrix at the next page of current page.Even picture is when the bottom margin of the page, picture with show at the next page of current page with literal that this picture is in identical display line, can show this electronic document content according to the original typesetting format of the electronic document of image mixed character typeset.
Through the description of above embodiment, the those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential common hardware, can certainly pass through hardware, but the former is better embodiment under a lot of situation.Based on such understanding; The part that technical scheme of the present invention contributes to prior art in essence in other words can be come out with the embodied of software product, and this computer software product is stored in the storage medium that can read, like the floppy disk of computing machine; Hard disk or CD etc.; Comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
The above; Be merely embodiment of the present invention, but protection scope of the present invention is not limited thereto, any technician who is familiar with the present technique field is in the technical scope that the present invention discloses; Can expect easily changing or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion by said protection domain with claim.

Claims (10)

1. an electronic document display method is characterized in that, comprising:
Obtain corresponding first ordinate in base of current page with respect to the electronic document initial position;
Obtain the corresponding termination ordinate of current page greater than the component of said first ordinate as first component;
Obtain the minimum value of the initial ordinate of each component in said first component, the minimum value of choosing minimum initial ordinate is as the paging ordinate;
With the initial ordinate of paging ordinate as the next page of the termination ordinate of current page and current page;
Obtain the corresponding termination ordinate of current page be less than or equal to paging ordinate, initial ordinate greater than the component of the termination ordinate of previous page as second component;
Show said second component at current page, show first component at the next page of current page.
2. electronic document display method according to claim 1 is characterized in that, before corresponding first ordinate with respect to the electronic document initial position in the said base that obtains current page, said method also comprises:
From electronic document, parse the initial ordinate and termination ordinate of all constituent elements with respect to said electronic document initial position.
3. electronic document display method according to claim 1 is characterized in that, said obtain corresponding first component of termination ordinate of current page greater than said first ordinate after, said method also comprises:
Judge whether said first component is the literal section;
If said first component is the literal section, then with stop in the said literal section ordinate greater than first literal line of said first ordinate as said first component.
4. electronic document display method according to claim 1 is characterized in that, said method also comprises:
Write down the initial ordinate of said first component;
Write down the termination ordinate of said second component.
5. electronic document display method according to claim 1 is characterized in that, said method also comprises:
Calculate the display page quantity of said electronic document to be shown;
Display page quantity by electronic document writes down said display page and the initial ordinate of this display page displaying contents in electronic document and the corresponding relation that stops ordinate.
6. an electronic document display device is characterized in that, comprising:
First acquiring unit is used to obtain corresponding first ordinate with respect to the electronic document initial position in base of current page;
Second acquisition unit is used to obtain first component of the corresponding termination ordinate of current page greater than said first ordinate;
The 3rd acquiring unit is used for obtaining the minimum value of the initial ordinate of said first each component of component, and the minimum value of choosing minimum initial ordinate is as the paging ordinate;
The unit is set, is used for the initial ordinate of paging ordinate as the next page of the termination ordinate of current page and current page;
The 4th acquiring unit, be used to obtain the corresponding termination ordinate of current page be less than or equal to paging ordinate, initial ordinate greater than the component of the termination ordinate of previous page as second component;
Display unit is used for showing said second component at current page, shows first component at the next page of current page.
7. electronic document display device according to claim 1 is characterized in that, said electronic document display device also comprises:
Resolution unit is used for parsing the initial ordinate and termination ordinate of all constituent elements with respect to said electronic document initial position from electronic document.
8. electronic document display device according to claim 1 is characterized in that, said electronic document display device also comprises:
Judging unit is used to judge the type of said first component;
Processing unit is used for if said first component is the literal section, then with stop in the said literal section ordinate greater than first literal line of said first ordinate as said first component.
9. electronic document display device according to claim 1 is characterized in that, said electronic document display device also comprises:
First record cell is used to write down the initial ordinate of said first component;
Second record cell is used to write down the termination ordinate of said second component.
10. electronic document display device according to claim 1 is characterized in that, said electronic document display device also comprises:
Computing unit is used to calculate the display page quantity of said electronic document to be shown;
The 3rd record cell is used for writing down said display page and the initial ordinate and the corresponding relation that stop ordinate of this display page displaying contents at electronic document to be shown by the display page quantity of electronic document.
CN201110080702.1A 2011-03-31 2011-03-31 Electronic document display method and device Active CN102736819B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110080702.1A CN102736819B (en) 2011-03-31 2011-03-31 Electronic document display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110080702.1A CN102736819B (en) 2011-03-31 2011-03-31 Electronic document display method and device

Publications (2)

Publication Number Publication Date
CN102736819A true CN102736819A (en) 2012-10-17
CN102736819B CN102736819B (en) 2016-03-23

Family

ID=46992415

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110080702.1A Active CN102736819B (en) 2011-03-31 2011-03-31 Electronic document display method and device

Country Status (1)

Country Link
CN (1) CN102736819B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103268185A (en) * 2013-04-26 2013-08-28 珠海全志科技股份有限公司 Text display method and text display device for e-book reader
CN104267887A (en) * 2014-09-13 2015-01-07 重庆市科学技术研究院 Application window size parameter based application page self-adaptive layout display method
CN105808519A (en) * 2016-02-29 2016-07-27 北京当当科文电子商务有限公司 Document display method and apparatus
CN106776489A (en) * 2016-11-16 2017-05-31 广州视源电子科技股份有限公司 electronic document display method and system of display device
CN108803976A (en) * 2017-05-05 2018-11-13 北大方正集团有限公司 Electronic book methods of exhibiting and equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0969098A (en) * 1995-08-31 1997-03-11 Sharp Corp Document creation device
CN1503160A (en) * 2002-11-20 2004-06-09 英业达股份有限公司 Automatic typesetting method of electronic book reading interface executable by computer
CN101425055A (en) * 2008-10-29 2009-05-06 金蝶软件(中国)有限公司 Table outputting method, device, system and apparatus
WO2011001664A1 (en) * 2009-06-30 2011-01-06 Canon Kabushiki Kaisha Image processing apparatus, image processing method, and storage medium
CN101986290A (en) * 2010-06-30 2011-03-16 汉王科技股份有限公司 Electronic reader and document typesetting method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0969098A (en) * 1995-08-31 1997-03-11 Sharp Corp Document creation device
CN1503160A (en) * 2002-11-20 2004-06-09 英业达股份有限公司 Automatic typesetting method of electronic book reading interface executable by computer
CN101425055A (en) * 2008-10-29 2009-05-06 金蝶软件(中国)有限公司 Table outputting method, device, system and apparatus
WO2011001664A1 (en) * 2009-06-30 2011-01-06 Canon Kabushiki Kaisha Image processing apparatus, image processing method, and storage medium
CN101986290A (en) * 2010-06-30 2011-03-16 汉王科技股份有限公司 Electronic reader and document typesetting method thereof

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103268185A (en) * 2013-04-26 2013-08-28 珠海全志科技股份有限公司 Text display method and text display device for e-book reader
CN103268185B (en) * 2013-04-26 2016-11-23 珠海全志科技股份有限公司 The text display method of E-book reader and device
CN104267887A (en) * 2014-09-13 2015-01-07 重庆市科学技术研究院 Application window size parameter based application page self-adaptive layout display method
CN104267887B (en) * 2014-09-13 2017-07-28 重庆市科学技术研究院 Five application page self-adaption typesetting display methods based on application widget dimensional parameters
CN105808519A (en) * 2016-02-29 2016-07-27 北京当当科文电子商务有限公司 Document display method and apparatus
CN106776489A (en) * 2016-11-16 2017-05-31 广州视源电子科技股份有限公司 electronic document display method and system of display device
CN108803976A (en) * 2017-05-05 2018-11-13 北大方正集团有限公司 Electronic book methods of exhibiting and equipment

Also Published As

Publication number Publication date
CN102736819B (en) 2016-03-23

Similar Documents

Publication Publication Date Title
US8020093B2 (en) Aligning content in an electric document
US8600164B2 (en) Method and tool for recognizing a hand-drawn table
US8515176B1 (en) Identification of text-block frames
US11455460B2 (en) Method for displaying handwritten note in electronic book, electronic device and computer storage medium
US20140250374A1 (en) Information processing apparatus, method, and program
CN102789448B (en) Electronic data typesetting method and device
US20160154579A1 (en) Handwriting input apparatus and control method thereof
CN102419742A (en) Subtitle processing method and device applied to electronic equipment
US9460089B1 (en) Flow rendering of annotation characters
CN102331982B (en) Method and system for displaying PDF (Portable Document Format) document adaptively to window size and mobile terminal
US20150067489A1 (en) Zoomable pages for continuous digital writing
EP2523122A1 (en) Method for marking electronic book and mobile terminal
CN102736819A (en) A method and a device for displaying an electronic document
US20140157116A1 (en) Method and Device for Determining a Display Mode of Electronic Documents
CN1503160A (en) Automatic typesetting method of electronic book reading interface executable by computer
CN104615587B (en) A kind of electronic data composition method and device
US9734132B1 (en) Alignment and reflow of displayed character images
CN101424998B (en) Document page display method and system
CN106293462B (en) Character display method and device
US20190155895A1 (en) Electronic text pen systems and methods
CN105404612A (en) Digital resource display method and system
CN112181231A (en) Blackboard writing input method, system and device
US8988423B2 (en) Electronic album generating apparatus, stereoscopic image pasting apparatus, and methods and programs for controlling operation of same
CN100561466C (en) A device and method for drawing a seam stamp in an electronic document
US20130104014A1 (en) Viewer unit, server unit, display control method, digital comic editing method and non-transitory computer-readable medium

Legal Events

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