CN108959198A - A kind of layering of interactive electronic book, classification typesetting and rendering method - Google Patents
A kind of layering of interactive electronic book, classification typesetting and rendering method Download PDFInfo
- Publication number
- CN108959198A CN108959198A CN201810675397.2A CN201810675397A CN108959198A CN 108959198 A CN108959198 A CN 108959198A CN 201810675397 A CN201810675397 A CN 201810675397A CN 108959198 A CN108959198 A CN 108959198A
- Authority
- CN
- China
- Prior art keywords
- resource
- layer
- rendering
- typesetting
- background
- 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.)
- Pending
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/103—Formatting, i.e. changing of presentation of documents
- G06F40/106—Display of layout of documents; Previewing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/103—Formatting, i.e. changing of presentation of documents
- G06F40/117—Tagging; Marking up; Designating a block; Setting of attributes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/12—Use of codes for handling textual entities
- G06F40/126—Character encoding
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/189—Automatic justification
Abstract
The present invention provides a kind of layering of interactive electronic book, classification typesetting and rendering method, comprising steps of dividing the type of digital resource;At least one layer of resource layer is respectively set to every a kind of digital resource, is arranged from bottom to top for the on-line loaded of respective resources or asynchronous downloading and the typesetting of acquired resource and rendering, each resource layer by the sequencing of typesetting and rendering;Resource presentation layer is set on top layer's resource layer, for the resource layer after showing typesetting and rendering.Mode is rendered using layering, classification typesetting, load time and the memory capacity of e-book is reduced, improves response speed, greatly improve user experience.
Description
Technical field
The invention belongs to e-book technical field more particularly to a kind of layerings of interactive electronic book, classification typesetting and rendering
Method.
Background technique
With the development of mobile internet, the function of e-book becomes stronger and stronger, is drilled by the picture and text mixing of most original
The carrier for becoming supporting all kinds of multimedias, interactive digital resource has obtained extensively in field of mobile equipment such as mobile phone, tablet computers
Using.But e-book on the market is all only embedding by the simple heap of all kinds of resources progress at present, and e-book capacity is caused sharply to increase
Greatly, loading velocity and user experience have been seriously affected.It is resourceful meeting it is therefore desirable to be improved to existing e-book
Property on the basis of, reduce the memory capacity of equipment, improve user experience.
Summary of the invention
For the above-mentioned deficiency of the prior art, the present invention provides one kind and is layered, classifies to all kinds of interactive digital contents
The technology of typesetting and rendering, on the one hand supports the asynchronous load of e-book and related resource, and is able to achieve the quick row of e-book
Version and rendering, reduce the memory requirement of equipment, improve the reading and interactive experience of user.
To achieve the above object, the present invention provides a kind of layering of interactive electronic book, classification typesetting and rendering method, the party
Method comprising steps of
(S01) digital resource is divided into fixed class, floating class and hot spot class three types, fixed class resource includes background
Material and eBook content, floating class resource are the digital resource for being arranged on eBook content, supporting user interactive operation,
Including picture, animation, formula, game exercises, mind map and examination question, hot spot class resource is the property progress according to digital resource
The resource collection of secondary classification, including document, video, audio and paper resource, pass through the class being indicated on eBook content
Type icon is associated with the foundation of similar resource;
(S02) at least one layer of resource layer is respectively set to fixed class, floating class and hot spot class resource, for respective resources
On-line loaded or asynchronous downloading and the typesetting of acquired resource and rendering, each resource layer press the sequencing of typesetting and rendering
It arranges from bottom to top;Preferably, each resource layer is followed successively by background layer from bottom to top, background effect layer, hot spot class resource layer, floats
Class resource layer, resource presentation layer and tool operation layer, wherein background layer includes background sublayer and eBook content sublayer, background effect
Fruit layer highlighting for background layer;
(S03) resource presentation layer is set on top layer's resource layer, for the resource layer after showing typesetting and rendering, preferably
, resource presentation layer is covered on all layers in the form of modal dialog box.
Preferably, setting has the tool operation layer for drawing function between top layer's resource layer and resource presentation layer.
Preferably, each resource layer uses<img>label and/or snapshot occupy-place mode are associated digital resource.
Preferably, background layer and the typesetting of background effect layer and rendering comprising steps of
(S11) background data of server is obtained;
(S12) Asynchronous Reception background picture and render on background layer, or according to (S11) obtain data be arranged background
Color;
(S13) it uses<img>label returns to the content and graphical information of the relative position information of e-book, each position;
(S14) using richtextbox control to textual portions carry out typesetting, richtextbox control further according to<img>what label determined
File type uses corresponding default icon as placeholder, completes rich text rendering;
(S15) background thread is opened, it is right<img>label is parsed, to the asynchronous downloading of server request picture and text
On-line loaded;
(S16) graphical information obtained according to (S13) renders figure on background effect layer.
Preferably, hot point resource layer is divided into several grids, will according to the hot point resource information obtained from server<img>mark
Icon corresponding to label or snapshot or thumbnail rendering are on corresponding grid.
Preferably, floating class resource layer is divided into several sublayers, each floating resource occupation one according to the quantity of floating resource
Sublayer.Preferably, the typesetting of floating class resource layer and rendering comprising steps of
(S31) list of floating resource is obtained to server;
(S32) thumbnail of layer rendering resources is pressed according to the information of acquisition, the resource of snapshot does not use default type figure
User's operation entrance is arranged in mark replacement, each layer of floating class resource sub-layer;
(S33) acquisition resource details are downloaded according to resource type to be rendered, then replaces corresponding snapshot or default
Type icon.
Beneficial effects of the present invention: by classifying to digital resource, resource then is respectively set to every a kind of resource
Layer carries out on-line loaded or asynchronous downloading to each layer in order, realizes layering, classification typesetting and rendering, reduces e-book
Load time and memory capacity improve response speed, greatly improve user experience.
Specific embodiment
The present invention will be described in detail With reference to embodiment.
Interactive electronic book layering, classification typesetting and rendering method of the invention includes being classified to digital resource, being right
All kinds of digital resources are further layered, and then successively carry out typesetting and rendering to each resource layer.
Firstly, digital resource is divided into fixed class, floating class and hot spot class three types.Wherein, fixed class resource is arranged
Version refers mainly to picture and text mixing, is the basis of e-book for showing background and eBook content.Floating class resource is arranged in electronics
On book content, user interactive operation, such as mobile, amplification are supported, floating class resource includes floating picture, animation, formula, trip
Play practice, mind map, examination question etc..Hot spot class resource is placed on eBook content, is built with type icon and similar resource
Vertical association, user, which clicks type icon, can open respective resources, including document resources, video resource, paper etc..
All kinds of resources by typesetting and are rendered into preferential stage layered according to user's vision and interaction, are divided into background layer, background effect
Fruit layer, hot spot class resource layer, floating class resource layer, resource presentation layer and tool operation layer.Wherein, background layer is responsible for fixed class money
The typesetting in source renders, and includes background sublayer and eBook content sublayer, is the basis of e-book.Background effect layer is used for background layer
Highlight, can be by carrying out frame choosing or giving prominence to the key points using all kinds of figures realize to background layer.Hot spot layer show with
The associated type icon of hot point resource.Floating class resource layer loads floating class resource, realizes that resource typesetting and preview, the layer divide again
For many levels, one layer of each floating resource occupation.Tool operation layer realizes the rendering of user's operation, as user needs in electronics
It carries out hand-written, hand-written at this time person's handwriting on book to render in the layer, which is also classified into many levels, and every kind of operation occupies one layer.Money
Source presentation layer is mainly used for the opening and displaying of all kinds of digital resources.As soon as such as opening a hot point resource, resource is rendered in the layer.
Background layer and the typesetting of background effect layer and rendering comprising steps of
(S11) background data of e-book is obtained from server;
(S12) background data is generally picture and colouring information, then high wide different from server according to equipment if it is picture
Step receives image data rendering on background layer, using asynchronous transmission primarily to avoiding obstruction subsequent step;If it is pure
Color background, directly setting corresponding color;
(S13) eBook content, the relative position information comprising e-book, each position in return information are obtained from server
Content and graphical information (be used for background effect layer), wherein display content is html format, in format Miscellaneous Documents all use <
Img > label returns, wherein the information such as the type of file, Gao Kuan, source address are contained, then using richtextbox control to text
Part carry out typesetting, richtextbox control further according to<img>the file type that label determines uses corresponding default icon as accounting for
Position symbol completes rich text rendering;
(S14) typesetting rendering is carried out to content layer: when this layer of content of text is paragraph, is arranged using richtextbox control
Version, then according to position by the ActiveX drafting to bottom, richtextbox control according to<img>information is saved in label determines text
Part type uses all types of default icons as occupy-place symbol, completes rich text rendering;
(S15) background thread is opened, it is right<img>label is parsed, asynchronous to request to server if it is picture type
Image data receives the picture icon that default is replaced after data, and other kinds of digital content is when user clicks from server
It obtains to reduce the load time of entire e-book;
(S16) downloading queue is added in the corresponding file address of the graphical information obtained (S13), and download priority is set as
Start asynchronous downloading after minimum, prevent the rendering for blocking other layers, after the completion of e-book load, global user is added in figure
Watch-list is operated, in user's mouse or when having touched frame bit selecting and setting, which, which is responsible for rendering figure according to graphical information, exists
On background effect layer, if figure is bundled with audio, start to play audio at this time.
The typesetting of hot point resource layer and rendering comprising steps of
(S21) hot point resource information, including resource location, type, snapshot etc. are obtained from server;
(S22) this layer is divided into the small lattice of square of 45*40, it is silent according to default icon for the resource of not snapshot
Rendering is recognized in corresponding lattice, there is the lattice of snapshot rendered snapshot in corresponding position.
Floating class resource layer typesetting and rendering comprising steps of
(S31) list that floating resource is obtained to server returns to the letter such as type, number, position, snapshot of floating resource
Breath;
(S32) its thumbnail is rendered by layer according to the information of acquisition, the resource of snapshot is not replaced using default type icon
It changes, corresponding user operation case can be added for each layer, such as: mobile, amplification is opened, and user can see after the completion of rendering
To preview graph;
(S33) acquisition resource details are downloaded according to floating resource type to be rendered, snapshot is replaced after the completion of rendering
Or default type icon, mind map information is such as obtained, mind map is drawn out into the corresponding snapshot layer of replacement.
Tool operation layer supports the individual operations such as scribble, spotlight, erasing rubber, magnifying glass, can be according to the class of operation
Type establishes several sublayers respectively.
Resource presentation layer is covered on all layers in the form of modal dialog box, and the resource that user is opened is rendered in this
In layer.When such as opening game exercises, game exercises address information is obtained from server, address is obtained, then opens corresponding trip
Play practice address, and render in resource presentation layer, it realizes user interactive operation, passes through this layering, classification typesetting rendering side
Formula reduces load time and the memory capacity of e-book, improves response speed, greatly improve user experience.
The preferred embodiment of the present invention has been described above in detail, still, during present invention is not limited to the embodiments described above
Detail, a variety of equivalent substitutes that those skilled in the art carries out within the scope of the technical concept of the present invention or simple become
Type mode, all belongs to the scope of protection of the present invention.
Claims (10)
1. a kind of interactive electronic book layering, classification typesetting and rendering method, which is characterized in that comprising steps of
(S01) digital resource is divided into fixed class, floating class and hot spot class three types, fixed class resource includes background material
And eBook content, floating class resource are the digital resource for being arranged on eBook content, supporting user interactive operation, hot spot
Class resource is the resource collection that secondary classification is carried out according to the property of digital resource, and by being indicated on eBook content
Type icon is associated with the foundation of similar resource;
(S02) at least one layer of resource layer is respectively set to fixed class, floating class and hot spot class resource, for the online of respective resources
Load or asynchronous downloading and the typesetting of acquired resource and rendering, each resource layer is by the sequencing of typesetting and rendering under
And upper arrangement;
(S03) resource presentation layer is set on top layer's resource layer, for the resource layer after showing typesetting and rendering.
2. the method according to claim 1, wherein the floating class resource includes picture, animation, formula, trip
Play practice, mind map and examination question;Hot spot class resource includes document, video, audio and paper resource.
3. the method according to claim 1, wherein setting has between top layer's resource layer and resource presentation layer
Draw the tool operation layer of function.
4. according to the method described in claim 3, it is characterized in that, successively being set from bottom to top by the sequencing of typesetting and rendering
Background layer, background effect layer, hot spot class resource layer, floating class resource layer, resource presentation layer and tool operation layer are set, wherein background
Effect layer highlights background layer.
5. according to the method described in claim 4, it is characterized in that, the background layer includes background sublayer and eBook content
Layer.
6. method according to claim 1-5, which is characterized in that background layer and the typesetting of background effect layer and rendering
Comprising steps of
(S11) background data of server is obtained;
(S12) Asynchronous Reception background picture and render on background layer, or according to (S11) obtain data be arranged background colour;
(S13) it uses<img>label returns to the content and graphical information of the relative position information of e-book, each position;
(S14) using richtextbox control to textual portions carry out typesetting, richtextbox control further according to<img>the file that label determines
Type uses corresponding default icon as placeholder, completes rich text rendering;
(S15) background thread is opened, it is right<img>label is parsed, online to the asynchronous downloading of server request picture and text
Load;
(S16) graphical information obtained according to (S13) renders figure on background effect layer.
7. method according to claim 1-5, which is characterized in that hot point resource layer is divided into several grids, according to
The hot point resource information obtained from server will<img>icon corresponding to label or snapshot or thumbnail rendering are in corresponding side
On lattice.
8. method according to claim 1-5, which is characterized in that floating class resource layer is according to the number of floating resource
Amount is divided into several sublayers, each one sublayer of floating resource occupation.
9. according to the method described in claim 8, it is characterized in that, floating class resource layer typesetting and rendering comprising steps of
(S31) list of floating resource is obtained to server;
(S32) thumbnail of layer rendering resources is pressed according to the information of acquisition, the resource of snapshot is not replaced using default type icon
It changes, user's operation entrance is arranged in each layer of floating class resource sub-layer;
(S33) acquisition resource details are downloaded according to resource type to be rendered, then replaces corresponding snapshot or default type
Icon.
10. the method according to claim 1, wherein resource presentation layer is covered in the form of modal dialog box
On all layers.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810675397.2A CN108959198A (en) | 2018-06-27 | 2018-06-27 | A kind of layering of interactive electronic book, classification typesetting and rendering method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810675397.2A CN108959198A (en) | 2018-06-27 | 2018-06-27 | A kind of layering of interactive electronic book, classification typesetting and rendering method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108959198A true CN108959198A (en) | 2018-12-07 |
Family
ID=64487251
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810675397.2A Pending CN108959198A (en) | 2018-06-27 | 2018-06-27 | A kind of layering of interactive electronic book, classification typesetting and rendering method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108959198A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102622332A (en) * | 2011-01-27 | 2012-08-01 | 天脉聚源(北京)传媒科技有限公司 | E-book realizing method and making system |
CN103678267A (en) * | 2012-09-17 | 2014-03-26 | 腾讯科技(深圳)有限公司 | Method and system for typesetting and rendering image-text mixed content |
CN103873277A (en) * | 2012-12-12 | 2014-06-18 | 中国科学院声学研究所 | Layered network topology visualizing method and system |
CN104239305A (en) * | 2013-06-07 | 2014-12-24 | 阿里巴巴集团控股有限公司 | Electronic document generating and displaying method and apparatus |
CN107943805A (en) * | 2016-10-12 | 2018-04-20 | 阿里巴巴集团控股有限公司 | A kind of animation renders and dissemination method, device |
-
2018
- 2018-06-27 CN CN201810675397.2A patent/CN108959198A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102622332A (en) * | 2011-01-27 | 2012-08-01 | 天脉聚源(北京)传媒科技有限公司 | E-book realizing method and making system |
CN103678267A (en) * | 2012-09-17 | 2014-03-26 | 腾讯科技(深圳)有限公司 | Method and system for typesetting and rendering image-text mixed content |
CN103873277A (en) * | 2012-12-12 | 2014-06-18 | 中国科学院声学研究所 | Layered network topology visualizing method and system |
CN104239305A (en) * | 2013-06-07 | 2014-12-24 | 阿里巴巴集团控股有限公司 | Electronic document generating and displaying method and apparatus |
CN107943805A (en) * | 2016-10-12 | 2018-04-20 | 阿里巴巴集团控股有限公司 | A kind of animation renders and dissemination method, device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Ferreira et al. | ImageJ user guide | |
CN1318940C (en) | Overlay electronic inking | |
CN100476859C (en) | Method and device for extracting metadata from document areas of pixel | |
CN108628741A (en) | Webpage test method, device, electronic equipment and medium | |
US20110102458A1 (en) | Content managing device and content managing method | |
CN114330233A (en) | Method for realizing correlation between electronic form content and file through file bottom | |
US20100074527A1 (en) | Editing 2d structures using natural input | |
AU2005202722A1 (en) | Common charting using shapes | |
CN107209756B (en) | Supporting digital ink in markup language documents | |
KR100964792B1 (en) | System and method of content adaptation for mobile web conditions | |
US20140022257A1 (en) | Method for modeling using sketches | |
CN107729897A (en) | A kind of text maninulation method, apparatus and terminal | |
CN106383718A (en) | Method and device for classifying icons | |
WO2017000898A1 (en) | Software icon display method and apparatus | |
CN110413931B (en) | Data loading method and device, computer equipment and storage medium | |
US20040139232A1 (en) | Method and system for content authoring | |
CN111695518A (en) | Method and device for labeling structured document information and electronic equipment | |
CN116663517B (en) | Single-screen operation method based on workflow form system data interaction and input content | |
CN106126084A (en) | A kind of display packing for electricity paper ink screen | |
CN108959198A (en) | A kind of layering of interactive electronic book, classification typesetting and rendering method | |
CN114995699B (en) | Interface interaction method and device | |
JP2011197983A (en) | Information display device and information display program | |
CN115373555A (en) | Display method and device of folder icon, electronic equipment and medium | |
US5956033A (en) | Document control interface and method for graphical message document software | |
CN108052259A (en) | Switch the method system and equipment of display system channel window by system access channel column |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181207 |
|
RJ01 | Rejection of invention patent application after publication |