CN106776487A - Electronic publication trailing and device - Google Patents

Electronic publication trailing and device Download PDF

Info

Publication number
CN106776487A
CN106776487A CN201510819459.9A CN201510819459A CN106776487A CN 106776487 A CN106776487 A CN 106776487A CN 201510819459 A CN201510819459 A CN 201510819459A CN 106776487 A CN106776487 A CN 106776487A
Authority
CN
China
Prior art keywords
electronic publication
decorated
parameter
decorative effect
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
Application number
CN201510819459.9A
Other languages
Chinese (zh)
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.)
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Peking University Founder Group Co Ltd
Beijing Founder Electronics 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 Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University Founder Group Co Ltd
Priority to CN201510819459.9A priority Critical patent/CN106776487A/en
Publication of CN106776487A publication Critical patent/CN106776487A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/106Display of layout of documents; Previewing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The present invention provides a kind of electronic publication trailing and device, wherein electronic publication trailing, including:Obtain the extensible markup language of electronic publication to be decorated;According to the extensible markup language of the electronic publication to be decorated, decorative effect parameter is determined;According to the decorative effect parameter, the Background From Layer of Cascading Style Sheet is determined;The electronic publication to be decorated is shown on the Background From Layer.Electronic publication trailing and device that the present invention is provided, according to the corresponding efficacy parameter of electronic publication to be decorated, the Background From Layer of CSS is set, electronic publication to be decorated is shown on Background From Layer afterwards, by using the Background From Layer of the CSS for being easier to realize and change, having reached can carry out arbitrarily complicated decoration to electronic publication, and decorative effect species is more, improves Consumer's Experience.

Description

Electronic publication trailing and device
Technical field
The present invention relates to typesetting system field, more particularly to a kind of electronic publication trailing device.
Background technology
Present electronic publication (Electronic Publication, abbreviation Epub) mostly use can expand Exhibition markup language (Extensible Markup Language, abbreviation XML), also known as with cascade sample The mode that formula table (Cascading Style Sheet, abbreviation CSS) is combined.The appearance of CSS causes net The performance of page is separated from each other with content, and it can uniformly control the display properties of each mark in XML, So as to be decorated to the object in webpage.
At present, the decorative effect in CSS mainly includes:Do not make an amendment, underline, upper line, Through text a line and allow text flash etc., decorative effect species is few, it is difficult to meet the need of user Will.
The content of the invention
The present invention provides a kind of electronic publication trailing and device, for solving electronics in the prior art Publication decorative effect species is few, it is difficult to the problem the need for meeting user.
One aspect of the present invention provides a kind of electronic publication trailing, including:
Obtain the extensible markup language of electronic publication to be decorated;
According to the extensible markup language of the electronic publication to be decorated, decorative effect parameter is determined;
According to the decorative effect parameter, the Background From Layer of Cascading Style Sheet is determined;
The electronic publication to be decorated is shown on the Background From Layer.
Another aspect of the present invention provides a kind of electronic publication decoration device, including:
Acquisition module, the extensible markup language for obtaining electronic publication to be decorated;
Determining module, for the extensible markup language according to the electronic publication to be decorated, it is determined that dress Decorations efficacy parameter;
The determining module, for according to the decorative effect parameter, determining the Background of Cascading Style Sheet Layer;
Display module, for showing the electronic publication to be decorated on the Background From Layer.
Electronic publication trailing and device that the present invention is provided, according to electronic publication to be decorated correspondence Efficacy parameter, set CSS Background From Layer, afterwards by electronic publication to be decorated in Background From Layer Upper display, by using the Background From Layer of the CSS for being easier to realize and change, having reached can go out to electronics Version thing carries out arbitrarily complicated decoration, and decorative effect species is more, improves Consumer's Experience.
Brief description of the drawings
A kind of electronic publication trailing schematic flow sheet that Fig. 1 is provided for the present invention;
Another electronic publication trailing schematic flow sheet that Fig. 2 is provided for the present invention;
The display interface of the electronic publication of the electronic publication trailing decoration that Fig. 3 is provided for the present invention Schematic diagram;
A kind of structural representation of electronic publication decoration device that Fig. 4 is provided for the present invention;
The structural representation of another electronic publication decoration device that Fig. 5 is provided for the present invention.
Specific embodiment
A kind of electronic publication trailing schematic flow sheet that Fig. 1 is provided for the present invention.As shown in figure 1, The method includes:
S10, obtains the extensible markup language of electronic publication to be decorated.
S11, according to the extensible markup language of the electronic publication to be decorated, determines decorative effect parameter.
S12, according to the decorative effect parameter, determine Cascading Style Sheet (Cascading Style Sheets, Abbreviation CSS) Background From Layer.
S13, shows the electronic publication to be decorated on the Background From Layer.
Wherein, the executive agent of the electronic publication trailing that the present embodiment is provided is provided for the present invention E-file decoration device.
Specifically, when in use, can by loading, the mode such as replicate by electronic publication to be decorated XML is input in electronic publication decoration device.Wherein, the extensible markup of electronic publication to be decorated Language can be other can markup language, such as be HTML, entity indicia language (Physical Markup Language, abbreviation PML) etc..
Further, above-mentioned S11, including:
Extensible markup language to the electronic publication to be decorated is parsed;
Obtain the corresponding decorative effect parameter of each character in the electronic publication to be decorated.
Specifically, in actually used, can be included in the extensible markup language of electronic publication to be decorated The corresponding efficacy parameter of each character in electronic publication, than if any type, linear, border thickness, side Frame color, shading, shade color, Aspect Ratio, offline distance etc..Wherein, type parameter, can For limiting the pattern that character is presented in electronic publication to be decorated, such as, shown with double check with a core, with field Word lattice show, or are shown in heart-shaped, square or rhombus etc. mode;Linearly can be used for restriction to be decorated Character is linear in electronic publication, such as be single line, two-wire, dotted line etc.;Border thickness, is used for Limit the frame line thickness of character decorative effect in electronic publication to be decorated;Border color, for limiting The frame line color of character decorative effect in electronic publication to be decorated;Shading, for limiting electricity to be decorated Whether character decorative effect has shading in sub- publication;Shade color, for limiting electronic publishing to be decorated In thing in character decorative effect shading color;Aspect Ratio, for limiting electronic publication to be decorated in The length and width ratio of character;Offline distance, for limiting character and decorative effect in electronic publication to be decorated The distance of frame.It should be noted that the species and meaning of above-mentioned each efficacy parameter, are only schematically to say It is bright, it is not limited to aforesaid way.
After decorative effect parameter is determined, can according to the Background From Layer of decorative effect parameter setting CSS, Will the Background From Layer of CSS be arranged to the electronic publication to be decorated form to be presented, then in Background Electronic publication to be decorated is shown on layer, so that electronic publication to be decorated is superimposed with Background From Layer It has been shown that, to obtain being expected the electronic publication to be decorated of decorative effect, because the Background From Layer of CSS can Arbitrarily to set, therefore arbitrarily complicated decoration can be carried out to electronic publication to be decorated.
The electronic publication trailing that the present embodiment is provided, according to the corresponding effect of electronic publication to be decorated Fruit parameter, sets the Background From Layer of CSS, afterwards shows electronic publication to be decorated on Background From Layer Show, by using the Background From Layer of the CSS for being easier to realize and change, having reached can be to electronic publication Arbitrarily complicated decoration is carried out, decorative effect species is more, improves Consumer's Experience.
Another electronic publication trailing schematic flow sheet that Fig. 2 is provided for the present invention.Such as Fig. 2 institutes Show, the method includes:
S10, obtains the extensible markup language of electronic publication to be decorated.
S111, the extensible markup language to the electronic publication to be decorated is parsed.
S112, obtains the corresponding decorative effect parameter of each character in the electronic publication to be decorated.
Wherein, above-mentioned S10-S112 implements the detailed description that form can refer to above-described embodiment, this Place repeats no more.
S121, according to the decorative effect parameter, determines saleable vector graphics file (Scalable Vector Graphics, abbreviation SVG).
Specifically, above-mentioned S121 includes:
According to the corresponding decorative effect parameter of each character, saleable vector graphics file Zhong Ge areas are determined The parameter in domain;
According to the parameter in each region, each effect region in the saleable vector graphics file is entered Row is drawn.
S122, according to the saleable vector graphics file, determines the Background From Layer of the CSS.
After SVG file is determined, it is possible to by the Background From Layer application SVG file in CSS, So that the Background From Layer of CSS meets the finishing requirements of electronic publication to be decorated.
It is understood that the decorative effect parameter of each intercharacter may in electronic publication to be decorated Different, it is also possible to identical, the decorative effect parameter between adjacent character may be different, it is also possible to identical, are The accurate decoration to the electronic publication decorated is realized, electronic publication decoration device is decorated obtaining During efficacy parameter, in addition it is also necessary to determine the corresponding positional information of each parameter, i.e., each parameter is corresponding in SVG Position.For example, electronic publication to be decorated is " decoration word effect " several words, then electronics goes out Version thing decoration device, in the corresponding efficacy parameter of each character of acquisition, in addition it is also necessary to obtain each efficacy parameter pair The position of the row, column of the positional information answered, i.e. each character in the electronic publication of display.Such as Fig. 3 It is the display interface schematic diagram of the electronic publication that the electronic publication trailing that the present invention is provided is decorated.
To realize above-mentioned Fig. 3 correspondences display interface, CSS language can be as follows:
.span-svg7{background:url('../Media/book_Chapter1.css_decoFont0.svg')
no-repeat 0.000000px,url('../Media/book_Chapter1.css_decoFont0.svg')
no-repeat 21.566927px,url('../Media/book_Chapter1.css_decoFont0.svg')
no-repeat 43.133854px,url('../Media/book_Chapter1.css_decoFont0.svg')
no-repeat 64.700783px,url('../Media/book_Chapter1.css_decoFont0.svg')
no-repeat 86.267708px;display:inline;height:21.566927px;letter-spacing:1.417326px;pad ding-left:1.000000px;padding-top:1.000000px;position:absolute;width:107.834 633px;}
Accordingly, Svg is described as follows:
After the positional information of each character and decorative effect parameter is determined, you can determine each region in SVG Parameter, then just can according to the parameter in each region in SVG, draw SVG figures.During drafting, Can be drawn with subregion, such as, it is first determined the size of drawing area, then according to different effects Fruit parameter, carries out the drafting of various effects to drawing area successively;Can also a point efficacy parameter drawn, Such as, it is first determined a certain efficacy parameter, the efficacy parameter is then carried out according to different regions successively Drafting, until complete total SVG drawing.
It should be noted that in determining electronic publication to be decorated during the corresponding effect region of each character, no Only to consider the size of each character, it is also contemplated that offline distance, each character is big in SVG figures The small size equal to character and 2 times of offline distances and, the starting point in the corresponding effect region of each character, With character pitch with it is character decorative effect area size and relevant.
S13, shows the electronic publication to be decorated on the Background From Layer.
The electronic publication trailing that the present embodiment is provided, according to the corresponding effect of electronic publication to be decorated Fruit parameter, determines the parameter in each region in SVG, and then the parameter according to each region in SVG draws SVG Figure, applies the SVG figures in CSS Background From Layers afterwards, and by electronic publication to be decorated Shown on Background From Layer, the Background From Layer of CSS done by using the SVG for being easier to realize and change, Having reached can carry out arbitrarily complicated decoration to electronic publication, and decorative effect species is more, improves use Experience at family.
A kind of structural representation of electronic publication decoration device that Fig. 4 is provided for the present invention.Such as Fig. 4 institutes Show, the electronic publication decoration device 40, including:Acquisition module 41, determining module 42 and display mould Block 43.
Wherein, acquisition module 41, the extensible markup language for obtaining electronic publication to be decorated;Really Cover half block 42, for the extensible markup language according to the electronic publication to be decorated, it is determined that decoration effect Fruit parameter;The determining module 42, for according to the decorative effect parameter, determining Cascading Style Sheet Background From Layer;Display module 43, for showing the electronic publication to be decorated on the Background From Layer.
Wherein, efficacy parameter, including:
It is type, linear, border thickness, border color, shading, shade color, Aspect Ratio, offline Distance.
The electronic publication decoration device that the present embodiment is provided is used to perform the electronics of the offer of above-described embodiment one Publication trailing, the concrete function and execution flow of its each module can refer to the detailed of above-described embodiment Description, here is omitted.
The electronic publication decoration device that the present embodiment is provided, according to the corresponding effect of electronic publication to be decorated Fruit parameter, sets the Background From Layer of CSS, afterwards shows electronic publication to be decorated on Background From Layer Show, by using the Background From Layer of the CSS for being easier to realize and change, having reached can be to electronic publication Arbitrarily complicated decoration is carried out, decorative effect species is more, improves Consumer's Experience.
The structural representation of another electronic publication decoration device that Fig. 5 is provided for the present invention.Such as Fig. 5 It is shown, on the basis of shown in Fig. 4, above-mentioned determining module 42, including:
421 first determining units, for according to the decorative effect parameter, determining saleable vector graphics File;
422 second determining units, for according to the saleable vector graphics file, determining the stacking The Background From Layer of CSS.
Further, the acquisition module 41, including:
Resolution unit 411, solves for the extensible markup language to the electronic publication to be decorated Analysis;
Acquiring unit 412, for obtaining the corresponding decoration effect of each character in the electronic publication to be decorated Fruit parameter.
Further, first determining unit 421, specifically for:
According to the corresponding decorative effect parameter of each character, saleable vector graphics file Zhong Ge areas are determined The parameter in domain;
According to the parameter in each region, each effect region in the saleable vector graphics file is entered Row is drawn.
The electronic publication decoration device that the present embodiment is provided is used to perform the electronics of the offer of above-described embodiment two Publication trailing, the concrete function and execution flow of its each module can refer to the detailed of above-described embodiment Description, here is omitted.
The electronic publication trailing that the present embodiment is provided, according to the corresponding effect of electronic publication to be decorated Fruit parameter, determines the parameter in each region in SVG, and then the parameter according to each region in SVG draws SVG Figure, applies the SVG figures in CSS Background From Layers afterwards, and by electronic publication to be decorated Shown on Background From Layer, the Background From Layer of CSS done by using the SVG for being easier to realize and change, Having reached can carry out arbitrarily complicated decoration to electronic publication, and decorative effect species is more, improves use Experience at family.
One of ordinary skill in the art will appreciate that:Realize all or part of step of above-mentioned each method embodiment Suddenly can be completed by the related hardware of programmed instruction.Foregoing program can be stored in a computer can In reading storage medium.The program upon execution, performs the step of including above-mentioned each method embodiment;And Foregoing storage medium includes:ROM, RAM, magnetic disc or CD etc. are various can be with store program codes Medium.
Finally it should be noted that:Various embodiments above is merely illustrative of the technical solution of the present invention, rather than right Its limitation;Although being described in detail to the present invention with reference to foregoing embodiments, this area it is common Technical staff should be understood:It can still modify to the technical scheme described in foregoing embodiments, Or equivalent is carried out to which part or all technical characteristic;And these modifications or replacement, and The scope of the essence disengaging various embodiments of the present invention technical scheme of appropriate technical solution is not made.

Claims (10)

1. a kind of electronic publication trailing, it is characterised in that including:
Obtain the extensible markup language of electronic publication to be decorated;
According to the extensible markup language of the electronic publication to be decorated, decorative effect parameter is determined;
According to the decorative effect parameter, the Background From Layer of Cascading Style Sheet is determined;
The electronic publication to be decorated is shown on the Background From Layer.
2. method according to claim 1, it is characterised in that described to be joined according to the decorative effect Number, determines the Background From Layer of Cascading Style Sheet, including:
According to the decorative effect parameter, saleable vector graphics file is determined;
According to the saleable vector graphics file, the Background From Layer of the CSS is determined.
3. method according to claim 2, it is characterised in that according to the electronic publishing to be decorated The extensible markup language of thing, determines decorative effect parameter, including:
Extensible markup language to the electronic publication to be decorated is parsed;
Obtain the corresponding decorative effect parameter of each character in the electronic publication to be decorated.
4. method according to claim 3, it is characterised in that described to be joined according to the decorative effect Number, determines saleable vector graphics file, including:
According to the corresponding decorative effect parameter of each character, saleable vector graphics file Zhong Ge areas are determined The parameter in domain;
According to the parameter in each region, each effect region in the saleable vector graphics file is entered Row is drawn.
5. according to any described methods of claim 1-4, it is characterised in that the efficacy parameter, bag Include:
It is type, linear, border thickness, border color, shading, shade color, Aspect Ratio, offline Distance.
6. a kind of electronic publication decoration device, it is characterised in that including:
Acquisition module, the extensible markup language for obtaining electronic publication to be decorated;
Determining module, for the extensible markup language according to the electronic publication to be decorated, it is determined that dress Decorations efficacy parameter;
The determining module, for according to the decorative effect parameter, determining the Background of Cascading Style Sheet Layer;
Display module, for showing the electronic publication to be decorated on the Background From Layer.
7. device according to claim 6, it is characterised in that the determining module, including:
First determining unit, for according to the decorative effect parameter, determining saleable vector graphics file;
Second determining unit, for according to the saleable vector graphics file, determining the cascading style The Background From Layer of table.
8. device according to claim 7, it is characterised in that the acquisition module, including:
Resolution unit, parses for the extensible markup language to the electronic publication to be decorated;
Acquiring unit, for obtaining the corresponding decorative effect ginseng of each character in the electronic publication to be decorated Number.
9. device according to claim 8, it is characterised in that first determining unit, specifically For:
According to the corresponding decorative effect parameter of each character, saleable vector graphics file Zhong Ge areas are determined The parameter in domain;
According to the parameter in each region, each effect region in the saleable vector graphics file is entered Row is drawn.
10. according to any described devices of claim 6-9, it is characterised in that the efficacy parameter, Including:
It is type, linear, border thickness, border color, shading, shade color, Aspect Ratio, offline Distance.
CN201510819459.9A 2015-11-23 2015-11-23 Electronic publication trailing and device Pending CN106776487A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510819459.9A CN106776487A (en) 2015-11-23 2015-11-23 Electronic publication trailing and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510819459.9A CN106776487A (en) 2015-11-23 2015-11-23 Electronic publication trailing and device

Publications (1)

Publication Number Publication Date
CN106776487A true CN106776487A (en) 2017-05-31

Family

ID=58963040

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510819459.9A Pending CN106776487A (en) 2015-11-23 2015-11-23 Electronic publication trailing and device

Country Status (1)

Country Link
CN (1) CN106776487A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102117202A (en) * 2009-12-30 2011-07-06 北大方正集团有限公司 J2EE architecture-based code generating device
CN104239305A (en) * 2013-06-07 2014-12-24 阿里巴巴集团控股有限公司 Electronic document generating and displaying method and apparatus
CN104850316A (en) * 2015-04-29 2015-08-19 小米科技有限责任公司 Method and device for adjusting fonts of electronic books

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102117202A (en) * 2009-12-30 2011-07-06 北大方正集团有限公司 J2EE architecture-based code generating device
CN104239305A (en) * 2013-06-07 2014-12-24 阿里巴巴集团控股有限公司 Electronic document generating and displaying method and apparatus
CN104850316A (en) * 2015-04-29 2015-08-19 小米科技有限责任公司 Method and device for adjusting fonts of electronic books

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
LIZA DALY: "使用HTML5、CSS3和MathML在EPUB3中制作板式丰富的出版物", 《IBM DEVELOPER HTTPS://WWW.IBM.COM/DEVELOPERWORKS/CN/XML/X-RICHLAYOUTEPUB/#IBM-PCON》 *
小小平凡世界: "SVG学习笔录(一)", 《博客园 HTTPS://WWW.CNBLOGS.COM/PINGFAN1990/P/4757934.HTML》 *

Similar Documents

Publication Publication Date Title
US20160026730A1 (en) Html5-based document format with parts architecture
CN103488423A (en) Method and device for implementing bookmark function in electronic reader
CN102156688B (en) Character transforming effect processing method and device
CN101794455A (en) Drawable network editor and network information input editing system
CN104239282B (en) The treating method and apparatus of e-book
CN101477697A (en) Network information inputting editor, network information inputting editing system and method
Kaluvakuri et al. Harnessing the Potential of CSS: An Exhaustive Reference for Web Styling
CN106776487A (en) Electronic publication trailing and device
CN103150742A (en) Method and device for vector graphic dynamic rendering
CN106372070A (en) Method and device for displaying data in graphic interface
US11138647B2 (en) Method, device, and computer-readable storage medium for managing variations of a graphic design within a framework
Martins IPython notebook essentials
CA3061445A1 (en) Technology for enabling elastic graphic design
Gillenwater Flexible web design: creating liquid and elastic layouts with CSS
Minnick Web Design with HTML5 and CSS3: Complete
Abedin et al. R Graphs Cookbook Second Edition
US11127177B2 (en) Technology for generating product designs using multiple canvases
Weyl What's new in CSS3
CN106020799A (en) Method for designing card type enterprise address book
Tari Ornament analysis with the help of screened Poisson shape fields
Rukwaro Graffiti Artists in East Africa
DE102012216165A1 (en) Method for providing print media content in digital format for mobile display device, involves optimizing print media contents for specific display device by converting portable document format data files
Alyssa et al. Laboratory Exercise–Possible Zara Locations in Utah
COLLECTIVE Graphic design and print production fundamentals
West Rollover Menus

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

RJ01 Rejection of invention patent application after publication