CN105912519A - Electronic document typesetting method and typesetting device - Google Patents
Electronic document typesetting method and typesetting device Download PDFInfo
- Publication number
- CN105912519A CN105912519A CN201610365111.1A CN201610365111A CN105912519A CN 105912519 A CN105912519 A CN 105912519A CN 201610365111 A CN201610365111 A CN 201610365111A CN 105912519 A CN105912519 A CN 105912519A
- Authority
- CN
- China
- Prior art keywords
- font
- electronic document
- scaling
- event
- picture
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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
- G06F3/04845—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 for image manipulation, e.g. dragging, rotation, expansion or change of colour
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Artificial Intelligence (AREA)
- Human Computer Interaction (AREA)
- Document Processing Apparatus (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
The invention discloses an electronic document typesetting method and typesetting device. The typesetting method comprises the following steps that content of an electronic document is analyzed, and the electronic document is displayed according to the analyzing result; a font zooming event of the electronic document is detected; when the font zooming event is detected, the font size before zooming is obtained, and a current page before zooming is generated to be a first picture; a font zooming proportion is obtained according to the font zooming event; the first picture is zoomed to be a second picture according to the font zooming proportion; the second picture serves as a zoomed current page to be displayed in advance; zooming typesetting is conducted on the electronic document according to the font zooming proportion and the font size before zooming, and the second picture is replaced with a current page of the zoomed electronic document for displaying. According to the electronic document typesetting method and typesetting device, a user can rapidly switch back to the reading state, the reading waiting time of the user is shortened, and the reading experience of the user is improved.
Description
Technical field
The present invention relates to document typesetting field, particularly relate to composition method and the row of a kind of electronic document
Version device.
Background technology
At present, much like that the ocr software installed on the National People's Congress's many employings electronic installation read is carried out
Read.In reading, in the selection of font size, different people may have different selections,
Different environment also likely to be present different selections, thus user to be likely to adjust font at any time big
Little.Once font size changes, and is accomplished by typesetting again on showing, calculates paging, and
If electronic document typesetting again in full (i.e. resetting), often ratio is relatively time-consuming, at electronic document
In rearrangement process, the page can be waited for for a long time, just will weight after electronic document has been reset
Content after row shows.User is after being adjusted font size operation, it has to wait
For a long time, the reading experience of user is reduced.
Summary of the invention
The problem existed for prior art, it is an object of the invention to provide one and can reduce use
The waiting time at family, the composition method optimizing the electronic document of the reading experience of user and composing device.
It is an aspect of the invention to provide the composition method of a kind of electronic document, comprise the steps:
The content of electronic document is resolved, shows described electronic document according to analysis result;
The font pantograph event of detection electronic document;
When font pantograph event being detected, obtain the font size before scaling, and by before scaling
Current page is generated as the first picture;
Font pantograph ratio is obtained according to described font pantograph event;
It is second picture by described first picture according to described font pantograph proportional zoom;
Described second picture is shown as the current page after scaling in advance;And
According to the font size before described font pantograph ratio and described scaling, described electronic document is entered
Row scaling typesetting, replaces described second picture to show with the current page of the electronic document after scaling
Show.
According to an embodiment of the present invention, also include:
When font pantograph event being detected, obtain the lead-in of the current page before electronic document scaling
Symbol position.
According to an embodiment of the present invention, before according to described font pantograph ratio and described scaling
Font size zooms in and out typesetting to described electronic document and includes:
The font after scaling is calculated according to the font size before described font pantograph ratio and described scaling
Size;
The initial character position of the current page before described scaling, according to the font size pair after scaling
The current page of described electronic document zooms in and out typesetting.
According to an embodiment of the present invention, institute is replaced with the current page of the electronic document after scaling
State second picture to carry out display and include:
After the scaling typesetting of the current page of described electronic document completes, by the electronics literary composition after scaling
The current page of shelves replaces described second picture to show.
According to an embodiment of the present invention, before according to described font pantograph ratio and described scaling
Font size zooms in and out typesetting to described electronic document and includes:
The font after scaling is calculated according to the font size before described font pantograph ratio and described scaling
Size;And
From the starting position of described electronic document, according to the font size after scaling to described electronics literary composition
The full text of shelves zooms in and out typesetting.
According to an embodiment of the present invention, institute is replaced with the current page of the electronic document after scaling
State second picture to carry out display and include:
After the scaling typesetting of the full text of described electronic document completes, by the electronic document after scaling
Current page replaces described second picture to show.
According to an embodiment of the present invention, the font pantograph event of detection electronic document includes:
Detect the quantity of the touch point of the display interface of described electronic document;
When detecting that the touch point of display interface is two, detect the distance between two touch points
Change;
When the distance detected between two touch points constantly increases, it is judged that described font pantograph event
For font magnification event;
When the distance detected between two touch points constantly reduces, it is judged that described font pantograph event
Event is reduced for font.
According to an embodiment of the present invention, font pantograph ratio is obtained according to described font pantograph event
Example includes:
Obtain the initial distance between said two touch point;
Obtain the end distance between said two touch point;
Ratio according to described end distance and described initial distance is worth to described font pantograph ratio.
According to an embodiment of the present invention, the font pantograph event of detection electronic document includes:
Monitoring font pantograph instructs;
When listening to font amplification instruction, it is judged that described font pantograph event is font magnification event;
Instruction is reduced, it is judged that described font pantograph event is that font reduces event when listening to font.
According to an embodiment of the present invention, the instruction of described font pantograph includes described font pantograph
Ratio.
It is another aspect of the invention to provide the composing device of a kind of electronic document, including:
Parsing module, for resolving the content of electronic document, shows institute according to analysis result
State electronic document;
Detection module, for detecting the font pantograph event of electronic document;
Image generating module, for when font pantograph event being detected, obtains the font before scaling
Size, and the current page before scaling is generated as the first picture;
Acquisition module, for obtaining font pantograph ratio according to described font pantograph event;
Picture processing module, for by described first picture according to described font pantograph proportional zoom being
Second picture;
First display module, for entering described second picture as the current page after scaling in advance
Row display,
Type-setting module, for according to the font size pair before described font pantograph ratio and described scaling
Described electronic document zooms in and out typesetting;And
Second display module, for after described electronic document zooms in and out typesetting, after scaling
Electronic document current page replace described second picture show.
The present invention is while font pantograph event being detected, by the current reading page of electronic document
Generate picture and also zoom in and out process, using the picture after scaling is processed as working as after font pantograph
Front reading page is pre-rendered to user, and user so can be allowed to be switched fast back read state, fall
The low reading waiting time of user, improve the reading experience of user.
It should be appreciated that it is only exemplary that above general description and details hereinafter describe,
The present invention can not be limited.
Accompanying drawing explanation
Its example embodiment is described in detail by referring to accompanying drawing, above and other target of the disclosure,
Feature and advantage will become apparent from.
Fig. 1 schematically shows the flow process of the composition method of electronic document according to an embodiment of the invention
Figure;
Fig. 2 schematically shows the flow process of the composition method of electronic document according to an embodiment of the invention
Figure;
Electronic document after Fig. 3 schematically shows scaling replaces second picture to carry out showing an embodiment
Schematic flow sheet;
Electronic document after Fig. 4 schematically shows scaling replaces second picture to carry out showing that another is implemented
The schematic flow sheet of example;
The flow process of the embodiment that Fig. 5 schematically shows the font pantograph event of detection electronic document is shown
It is intended to;
Fig. 6 schematically shows the flow process of another embodiment of the font pantograph event of detection electronic document
Schematic diagram;
Fig. 7 schematically shows the embodiment according to font pantograph event acquisition font pantograph ratio
Schematic flow sheet;
Fig. 8 schematically shows the structure of the composing device of electronic document according to an embodiment of the invention
Schematic diagram.
Detailed description of the invention
It is described more fully with example embodiment referring now to accompanying drawing.But, example embodiment
Can implement in a variety of forms, and be not understood as limited to example set forth herein;On the contrary, carry
Make the disclosure will more fully and completely for these embodiments, and by the structure of example embodiment
Think to convey to those skilled in the art all sidedly.Accompanying drawing is only the schematic illustrations of the disclosure, and
Not necessarily is drawn to scale.Reference identical in figure represents same or similar part, because of
And repetition thereof will be omitted.
Additionally, described feature, structure or characteristic can be combined in one in any suitable manner
In individual or more embodiment.In the following description, it is provided that many details thus be given right
Fully understanding of embodiment of the present disclosure.It will be appreciated, however, by one skilled in the art that it is permissible
Put into practice the technical scheme of the disclosure and omit in described specific detail one or more or permissible
Use other method, constituent element, device, step etc..In other cases, be not shown in detail or
Describe known features, method, device, realization, material or operation to make to avoid that a presumptuous guest usurps the role of the host
The each side obtaining the disclosure thickens.
Some block diagrams shown in accompanying drawing are functional entitys, it is not necessary to must with physically or logically
Independent entity is corresponding.Can use software form to realize these functional entitys, or at one
Or multiple hardware module or integrated circuit realize these functional entitys, or at heterogeneous networks and/or place
Reason device device and/or microcontroller device realize these functional entitys.
Fig. 1 schematically shows the flow process of the composition method of electronic document according to an embodiment of the invention
Figure.The composition method of the electronic document that the present embodiment provides can apply in various terminal, such as
Mobile phone, panel computer and desktop computer etc., it can be realized by the most built-in software module.
As it is shown in figure 1, the composition method of the electronic document of the present embodiment, comprise the steps:
Step S100: resolve the content of electronic document, shows described electricity according to analysis result
Subdocument.Electronic document can be streaming document, the e-book of such as epub form, but the present invention
It is not limited thereto.The content of electronic document is resolved, the font of electronic document can be obtained
The information such as size, paragraph quantity, character position.Can be by electronic document according to above-mentioned analysis result
Content show.
Step S102: the font pantograph event of detection electronic document.Font pantograph event can basis
Different modes triggers, such as, triggered by double forms referring to scaling, or by clicking on electronics literary composition
Button is amplified/reduced to font in shelves display interface, triggers with the form of font pantograph instruction.Below
Citing is described in detail, is not repeated them here.
Step S104: when font pantograph event being detected, obtains the font size before scaling, and
Current page before scaling is generated as the first picture.Wherein the font size before scaling can be in step
The analysis result of rapid S100 obtains.First picture can generate by calling Snipping Tool.
Step S106: obtain font pantograph ratio according to described font pantograph event.Wherein font contracting
The acquisition mode putting ratio is relevant to the triggering form of font pantograph event, below by addition detailed for citing
Describe in detail bright, do not repeat them here.
Step S108: be second picture according to described font pantograph proportional zoom by described first picture.
Such as, if font pantograph event is font magnification event, and the font magnification ratio got is
When 20%, then obtain second picture after the size correspondence of the first picture being amplified 20%.If font
Scaling event is that font reduces event, and the font got reduces ratio when being 10%, then by
The size correspondence of one picture obtains second picture after reducing 10%.With the change of dimension of picture, picture
In the size of document font also can change therewith.
Step S110: described second picture is shown as the current page after scaling in advance.
Wherein, the size of the size of second picture and the current display page of electronic document not corresponding.As
During the size being smaller in size than current display page of really second picture, can be by second picture with between two parties
Mode is shown in current display page, and is left white around second picture so that second picture can
To be paved with current display page.If the size of second picture is more than the size of current display page,
White space around word in second picture can be cropped, by the literal field in second picture
Territory is shown in current display page.
Step S112: according to the font size before described font pantograph ratio and described scaling to described
Electronic document zooms in and out typesetting, replaces described second with the current page of the electronic document after scaling
Picture shows.Wherein, can obtain according to the font size before font pantograph ratio and scaling
Font size after scaling, and the information such as paging, the hop count of every page and number of words are recalculated with this,
Just accordingly electronic document can be zoomed in and out reset.Current page with the electronic document after scaling
Face replaces second picture to carry out the step shown, can be complete at the current page reset of electronic document
It is carried out after one-tenth, it is also possible to the full text reset at electronic document completes to perform again.Below will citing
This step is described in detail, does not repeats them here.
Picture after scaling is shown in electronic document by the composition method of the electronic document of this enforcement in advance
Current display page, the font of document can be changed and present by the change of dimension of picture is instantaneous
To reader, and scale reset without waiting for electronic document, save the reading waiting time of reader,
Improve the reading experience of user.
Fig. 2 schematically shows the stream of the composition method of electronic document according to another embodiment of the present invention
Cheng Tu.As in figure 2 it is shown, the composition method of the electronic document of the present embodiment is compared to Figure 1, mainly
Difference is step S104.Step S014 of the present embodiment ' be when font pantograph event being detected,
Obtain the font size before electronic document scaling and the initial character position of current page, and by before scaling
Current page be generated as the first picture.It is to say, when font pantograph event being detected, remove
Obtain outside the font size before scaling, in addition it is also necessary to obtain the initial character of the current page before scaling
Position, in order to preferentially the content of current page is carried out reset, Ke Yijia during follow-up reset
The speed of fast reset.In the present embodiment, other steps are identical with step in Fig. 1, the most superfluous at this
State.The present invention is not limited thereto, and follow-up reset can also be from the beginning of the initial character of electronic document
Reset, this kind of mode is compared to from the initial character typesetting of current page, and the speed of reset is relative
Relatively slow, but owing to font pantograph effect presents to reader in picture scaling, the therefore speed of reset
Spend the actual reading waiting time that can't increase user, the reading experience of reader also will not be produced
Materially affect.
Fig. 3 schematically shows the schematic flow sheet of step S112 in Fig. 2.As it is shown on figure 3,
Step S112 according to the font size before described font pantograph ratio and described scaling to described electricity
Subdocument zooms in and out typesetting, replaces described second figure with the current page of the electronic document after scaling
Sheet carries out display and includes:
Step S1121: calculate contracting according to the font size before described font pantograph ratio and described scaling
Font size after putting.Wherein, the font size after scaling can be calculated by equation below:
E=e+e × L;
N=n+n × Q;
Wherein, E represents the font size after amplification, and e represents the font size before amplification, and L represents
Font magnification ratio, N represents the font size after reducing, and n represents the font size before reducing, Q
Represent that font reduces ratio.
Such as, if the font size before Fang great ing is No. 10 words, font magnification ratio is 10%, then
Size after font is amplified is No. 11 words;If the font size before reducing is No. 10 words, font
The ratio of reducing is 10%, then the size after font reduces is No. 9 words.
Step S1122: the initial character position of the current page before described scaling, after scaling
Font size zooms in and out typesetting to the current page of described electronic document.
Step S1123: after the scaling typesetting of the current page of described electronic document completes, will scaling
After electronic document current page replace described second picture show.
The present embodiment carries out reset from the initial character position of current page, accelerates the speed of reset
Degree.
Fig. 4 schematically shows the schematic flow sheet of step S112 in Fig. 1.As shown in Figure 4,
Step S112 according to the font size before described font pantograph ratio and described scaling to described electricity
Subdocument zooms in and out typesetting, replaces described second figure with the current page of the electronic document after scaling
Sheet carries out display and includes:
Step S1121: calculate contracting according to the font size before described font pantograph ratio and described scaling
Font size after putting;And
Step S1122 ': from the starting position of described electronic document, according to the font size after scaling
The full text of described electronic document is zoomed in and out typesetting.Wherein, the starting position of electronic document refers to
The position of first character in electronic document.
Step S1123 ': after the scaling typesetting of the full text of described electronic document completes, after scaling
Electronic document current page replace described second picture show.
The present embodiment is compared with above-described embodiment, and its difference is that the starting position from electronic document
Carrying out reset, therefore the speed of its reset is compared and is carried out reset from the initial character of current page
Want slow, but reader can't be affected and switch back into the time of read state.
Type according to font pantograph event is different, the tool of the font pantograph event of detection electronic document
Body step there is also corresponding difference.Below by the word with the detection electronic document shown in Fig. 5 and Fig. 6
Illustrate as a example by body scaling event.
The flow process of the embodiment that Fig. 5 schematically shows the font pantograph event of detection electronic document is shown
It is intended to.As it is shown in figure 5, be to detection electronics literary composition as a example by double finger scaling triggers by font pantograph event
Each step of the font pantograph event of shelves describes in detail as follows:
Step S1021: detect the quantity of the touch point of the display interface of described electronic document.
Step S1022: when detecting that the touch point of display interface is two, detect two touch points
Between distance change.When touch point display interface being detected is two, and two touch points
Between distance when changing, then can tentatively judge to occur double scaling event that refers to, follow-up permissible
Increase according to the distance between two touch points or reduce and determine whether that font pantograph event is word
Body magnification event or font reduce event.
Step S1023: when the distance detected between two touch points constantly increases, it is judged that described word
Body scaling event is font magnification event.
Step S1024: when the distance detected between two touch points constantly reduces, it is judged that described word
Body scaling event is that font reduces event.
Fig. 6 schematically shows the flow process of another embodiment of the font pantograph event of detection electronic document
Schematic diagram.As shown in Figure 6, by font pantograph event for as a example by font pantograph instruction triggers to detection
Each step of the font pantograph event of electronic document describes in detail as follows:
Step S1021 ': monitor font pantograph instruction.Wherein, font pantograph instruction can be passed through a little
Hit the order button at display interface to produce.Monitoring font pantograph instructs, then need at display interface
Precalculated position monitor whether have clicking operation.
Step S1022 ': when listening to font amplification instruction, it is judged that described font pantograph event is word
Body magnification event.Such as, when listening to there is clicking operation at font large buttons, it can be determined that
Font pantograph event is font magnification event.
Step S1023 ': reduce instruction when listening to font, it is judged that described font pantograph event is word
Body reduces event.Such as, listen to when font reduces and has clicking operation at button, it can be determined that
Font pantograph event is that font reduces event.
Fig. 7 schematically shows the embodiment according to font pantograph event acquisition font pantograph ratio
Schematic flow sheet.As it is shown in fig. 7, obtain font pantograph ratio bag according to described font pantograph event
Include:
Step S1061: obtain the initial distance between said two touch point.
Step S1062: obtain the end distance between said two touch point.
Step S1063: be worth to described font according to the ratio of described end distance and described initial distance
Scaling.
Present embodiment illustrates the acquisition mode of double font pantograph ratio referring to scaling.Owing to font contracts
Put instruction and include the information of font pantograph ratio, for font pantograph instruction triggers font pantograph thing
The situation of part, then directly can obtain font pantograph ratio from font pantograph instructs.
Fig. 8 schematically shows the structure of the composing device of electronic document according to an embodiment of the invention
Schematic diagram.As shown in Figure 8, composing device 20 include parsing module 200, detection module 202,
Image generating module 204, acquisition module 206, picture processing module the 208, first display module 210,
Type-setting module 212 and the second display module 214.
Parsing module 200, for resolving the content of electronic document, shows according to analysis result
Described electronic document;
Detection module 202, for detecting the font pantograph event of electronic document;
Image generating module 204, for when font pantograph event being detected, obtains the word before scaling
Body size, and the current page before scaling is generated as the first picture;
Acquisition module 206, for obtaining font pantograph ratio according to described font pantograph event;
Picture processing module 208, is used for described first picture according to described font pantograph proportional zoom
For second picture;
First display module 210, is used for described second picture in advance as the current page after scaling
Show,
Type-setting module 212, for according to the font size before described font pantograph ratio and described scaling
Described electronic document is zoomed in and out typesetting;And
Second display module 214, for after described electronic document zooms in and out typesetting, will scale
After electronic document current page replace described second picture show.
The composing device of the electronic document that above-described embodiment provides can come real by the software of prepackage
Existing.And the process that realizes of the most each module concrete function may refer to the phase of said method embodiment
Close and describe, do not repeat them here.
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that retouch here
The example embodiment stated can be realized by software, it is also possible to combines necessary hardware by software
Mode realize.Therefore, the technical scheme according to disclosure embodiment can be with software product
Form embody, it is (permissible that this software product can be stored in a non-volatile memory medium
Be CD-ROM, USB flash disk, portable hard drive etc.) in or network on, including some instructions so that one
Platform calculates equipment (can be panel computer, desktop computer, mobile phone etc.) and performs according to the disclosure
The method of embodiment.
More than it is particularly shown and described the illustrative embodiments of the disclosure.It should be appreciated that
The disclosure is not limited to detailed construction described herein, set-up mode or implementation method;On the contrary, these public affairs
Open intention and contain the various amendments comprised in the spirit and scope of the appended claims and equivalence sets
Put.
Claims (11)
1. the composition method of an electronic document, it is characterised in that comprise the steps:
The content of electronic document is resolved, shows described electronic document according to analysis result;
The font pantograph event of detection electronic document;
When font pantograph event being detected, obtain the font size before scaling, and by before scaling
Current page is generated as the first picture;
Font pantograph ratio is obtained according to described font pantograph event;
It is second picture by described first picture according to described font pantograph proportional zoom;
Described second picture is shown as the current page after scaling in advance;And
According to the font size before described font pantograph ratio and described scaling, described electronic document is entered
Row scaling typesetting, replaces described second picture to show with the current page of the electronic document after scaling
Show.
2. the composition method of electronic document as claimed in claim 1, it is characterised in that also include:
When font pantograph event being detected, obtain the lead-in of the current page before electronic document scaling
Symbol position.
3. the composition method of electronic document as claimed in claim 2, it is characterised in that according to institute
State the font size before font pantograph ratio and described scaling and described electronic document is zoomed in and out typesetting
Including:
The font after scaling is calculated according to the font size before described font pantograph ratio and described scaling
Size;
The initial character position of the current page before described scaling, according to the font size pair after scaling
The current page of described electronic document zooms in and out typesetting.
4. the composition method of electronic document as claimed in claim 3, it is characterised in that after scaling
The current page of electronic document replace described second picture to carry out display and include:
After the scaling typesetting of the current page of described electronic document completes, by the electronics literary composition after scaling
The current page of shelves replaces described second picture to show.
5. the composition method of electronic document as claimed in claim 1, it is characterised in that according to described
Font size before font pantograph ratio and described scaling zooms in and out typesetting bag to described electronic document
Include:
The font after scaling is calculated according to the font size before described font pantograph ratio and described scaling
Size;And
From the starting position of described electronic document, according to the font size after scaling to described electronics literary composition
The full text of shelves zooms in and out typesetting.
6. the composition method of electronic document as claimed in claim 5, it is characterised in that with scaling
After the current page of electronic document replace described second picture to carry out display and include:
After the scaling typesetting of the full text of described electronic document completes, by the electronic document after scaling
Current page replaces described second picture to show.
7. the composition method of electronic document as claimed in claim 1, it is characterised in that detection electronics
The font pantograph event of document includes:
Detect the quantity of the touch point of the display interface of described electronic document;
When detecting that the touch point of display interface is two, detect the distance between two touch points
Change;
When the distance detected between two touch points constantly increases, it is judged that described font pantograph event
For font magnification event;
When the distance detected between two touch points constantly reduces, it is judged that described font pantograph event
Event is reduced for font.
8. the composition method of electronic document as claimed in claim 7, it is characterised in that according to institute
State font pantograph event acquisition font pantograph ratio to include:
Obtain the initial distance between said two touch point;
Obtain the end distance between said two touch point;
Ratio according to described end distance and described initial distance is worth to described font pantograph ratio.
9. the composition method of electronic document as claimed in claim 1, it is characterised in that detection electronics
The font pantograph event of document includes:
Monitoring font pantograph instructs;
When listening to font amplification instruction, it is judged that described font pantograph event is font magnification event;
Instruction is reduced, it is judged that described font pantograph event is that font reduces event when listening to font.
10. the composition method of electronic document as claimed in claim 9, it is characterised in that described word
Body scaling instruction includes described font pantograph ratio.
The composing device of 11. 1 kinds of electronic documents, it is characterised in that including:
Parsing module, for resolving the content of electronic document, shows institute according to analysis result
State electronic document;
Detection module, for detecting the font pantograph event of electronic document;
Image generating module, for when font pantograph event being detected, obtains the font before scaling
Size, and the current page before scaling is generated as the first picture;
Acquisition module, for obtaining font pantograph ratio according to described font pantograph event;
Picture processing module, for by described first picture according to described font pantograph proportional zoom being
Second picture;
First display module, for entering described second picture as the current page after scaling in advance
Row display,
Type-setting module, for according to the font size pair before described font pantograph ratio and described scaling
Described electronic document zooms in and out typesetting;And
Second display module, for after described electronic document zooms in and out typesetting, after scaling
Electronic document current page replace described second picture show.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610365111.1A CN105912519B (en) | 2016-05-27 | 2016-05-27 | A kind of composition method and composing device of electronic document |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610365111.1A CN105912519B (en) | 2016-05-27 | 2016-05-27 | A kind of composition method and composing device of electronic document |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105912519A true CN105912519A (en) | 2016-08-31 |
CN105912519B CN105912519B (en) | 2019-01-25 |
Family
ID=56742540
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610365111.1A Active CN105912519B (en) | 2016-05-27 | 2016-05-27 | A kind of composition method and composing device of electronic document |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105912519B (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107451113A (en) * | 2017-07-06 | 2017-12-08 | 广东小天才科技有限公司 | A kind of presentation file automatic composing method and system |
CN107920015A (en) * | 2017-11-17 | 2018-04-17 | 北京小米移动软件有限公司 | Issue the method for picture and the device of issue picture |
CN109087252A (en) * | 2018-09-26 | 2018-12-25 | 浙江浙大万朋软件有限公司 | A method of calculating picture pantograph ratio |
CN109117032A (en) * | 2017-06-22 | 2019-01-01 | 北大方正集团有限公司 | Reading processing method and device based on epub e-book |
CN109992751A (en) * | 2017-12-29 | 2019-07-09 | 珠海金山办公软件有限公司 | Amplification display method, device, electronic equipment and the storage medium of table objects |
CN111344662A (en) * | 2017-09-13 | 2020-06-26 | 深圳传音通讯有限公司 | Font size control method and font size control system based on intelligent terminal |
CN111626036A (en) * | 2020-05-27 | 2020-09-04 | 南京蓝鲸人网络科技有限公司 | Novel image-text typesetting processing method |
CN115828883A (en) * | 2022-12-07 | 2023-03-21 | 广州文石信息科技有限公司 | Document content re-typesetting method and device, electronic display equipment and medium |
CN115879436A (en) * | 2023-03-02 | 2023-03-31 | 花瓣云科技有限公司 | Electronic book quality inspection method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101916246A (en) * | 2010-07-30 | 2010-12-15 | 汉王科技股份有限公司 | Method and device for typesetting electronic document |
CN102968474A (en) * | 2012-11-15 | 2013-03-13 | 广东欧珀移动通信有限公司 | Method for displaying webpage browsed by mobile communication device |
CN104063161A (en) * | 2013-03-19 | 2014-09-24 | 腾讯科技(深圳)有限公司 | Page scaling method and device |
-
2016
- 2016-05-27 CN CN201610365111.1A patent/CN105912519B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101916246A (en) * | 2010-07-30 | 2010-12-15 | 汉王科技股份有限公司 | Method and device for typesetting electronic document |
CN102968474A (en) * | 2012-11-15 | 2013-03-13 | 广东欧珀移动通信有限公司 | Method for displaying webpage browsed by mobile communication device |
CN104063161A (en) * | 2013-03-19 | 2014-09-24 | 腾讯科技(深圳)有限公司 | Page scaling method and device |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109117032A (en) * | 2017-06-22 | 2019-01-01 | 北大方正集团有限公司 | Reading processing method and device based on epub e-book |
CN107451113A (en) * | 2017-07-06 | 2017-12-08 | 广东小天才科技有限公司 | A kind of presentation file automatic composing method and system |
CN111344662A (en) * | 2017-09-13 | 2020-06-26 | 深圳传音通讯有限公司 | Font size control method and font size control system based on intelligent terminal |
CN107920015A (en) * | 2017-11-17 | 2018-04-17 | 北京小米移动软件有限公司 | Issue the method for picture and the device of issue picture |
CN109992751A (en) * | 2017-12-29 | 2019-07-09 | 珠海金山办公软件有限公司 | Amplification display method, device, electronic equipment and the storage medium of table objects |
CN109992751B (en) * | 2017-12-29 | 2023-12-01 | 珠海金山办公软件有限公司 | Method and device for magnifying and displaying table objects, electronic equipment and storage medium |
CN109087252B (en) * | 2018-09-26 | 2022-10-28 | 浙江万朋云软件技术有限公司 | Method for calculating picture zoom ratio |
CN109087252A (en) * | 2018-09-26 | 2018-12-25 | 浙江浙大万朋软件有限公司 | A method of calculating picture pantograph ratio |
CN111626036A (en) * | 2020-05-27 | 2020-09-04 | 南京蓝鲸人网络科技有限公司 | Novel image-text typesetting processing method |
CN111626036B (en) * | 2020-05-27 | 2021-04-30 | 南京蓝鲸人网络科技有限公司 | Image-text typesetting processing method |
CN115828883A (en) * | 2022-12-07 | 2023-03-21 | 广州文石信息科技有限公司 | Document content re-typesetting method and device, electronic display equipment and medium |
CN115828883B (en) * | 2022-12-07 | 2024-05-28 | 广州文石信息科技有限公司 | Document content rearrangement method and device, electronic display equipment and medium |
CN115879436A (en) * | 2023-03-02 | 2023-03-31 | 花瓣云科技有限公司 | Electronic book quality inspection method |
CN115879436B (en) * | 2023-03-02 | 2023-05-23 | 花瓣云科技有限公司 | Electronic book quality inspection method |
Also Published As
Publication number | Publication date |
---|---|
CN105912519B (en) | 2019-01-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105912519A (en) | Electronic document typesetting method and typesetting device | |
EP3407221A1 (en) | Methods and devices for searching and displaying information on a terminal | |
CN106648661B (en) | Notification bar message processing method and mobile terminal | |
JPWO2007004489A1 (en) | Image processing apparatus and image processing method | |
CN103870102A (en) | Method and device for image switching | |
US20140317541A1 (en) | Electronic device having touch screen and method for zooming in | |
CN107450915B (en) | Method for rapidly intercepting multi-screen long image | |
US10757241B2 (en) | Method and system for dynamically changing a header space in a graphical user interface | |
JP2016517989A5 (en) | ||
CN105159581A (en) | Picture browsing method and mobile terminal | |
CN109710834A (en) | Similar web page detection method, device, storage medium and electronic equipment | |
EP2790103A1 (en) | Electronic apparatus and copy control program | |
CN105389112B (en) | The display methods and user terminal of handwriting on a kind of user terminal | |
US9201509B2 (en) | Character input method and device based on arrow key | |
CN111143731A (en) | Display method and device for webpage interface zooming and terminal equipment | |
EP2871826B1 (en) | Method, device and terminal for adjusting widget | |
US8527897B2 (en) | System, method, and computer program product for toggling back and forth between unformatted and formatted editable views of data | |
CN101699388A (en) | Image processing method and system used for liquid crystal display picture | |
CN110032418A (en) | A kind of screenshot method, system, terminal device and computer readable storage medium | |
US10254959B2 (en) | Method of inputting a character into a text string using a sliding touch gesture, and electronic device therefor | |
CN108700999A (en) | A kind of method for displaying user interface and terminal | |
CN106503061B (en) | Group message display method and mobile terminal | |
US20130326428A1 (en) | Text input method and apparatus | |
CN104636040A (en) | Image display processing method and device | |
US20130227436A1 (en) | Page-turning and operating method for reading multimedia messaging service message of a mobile phone |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |