A kind of data content method of adjustment and device
Technical field
The present invention relates to technical field of information processing, more particularly to a kind of data content method of adjustment and device.
Background technology
With the continuous development of the information processing technology and network technology, various electronic reading things arise at the historic moment, such as e-book,
E-magazine etc., including word, picture, sound, image digital information, it is easy to network transmission, without geographical restrictions, design essence
It is beautiful, the advantages of be easy to preservation, low price, low-carbon environment-friendly.
Because electronic reading thing has many advantages, such as, the use of electronic reading thing is more and more, makes also increasingly
Fineness, application also more and more extensively, not only can be used in the network terminal, mobile phone terminal, can be broadcasting in digital TV terminal
Put.
Present inventor during technical scheme, is present such as in finding prior art in the embodiment of the present application is realized
Lower technical problem:
In the prior art, when the modification to electronic reading thing is needed, it is often necessary to make answering for the electronic reading thing
Updated with program, and the content changed needs to be externally introduced, but in actual applications, many times, modification
Content it is related to the content of electronic reading thing and be present in electronic reading thing, such as with a certain new picture in e-magazine more
The surface plot of the e-magazine is changed, but in the prior art, is but needed to find the new picture in outside storing path, then is imported
The new picture on front cover, so, there is the technical problem that modification process is complicated, there is modification inefficiency in prior art.
The content of the invention
The embodiment of the present invention provides a kind of data content method of adjustment and device, for solving to there is modification in prior art
Flow process is complicated, the technical problem that there is modification inefficiency, and data content of the realization inside electronic reading thing is to electronic reading
Thing is modified, and improves the efficiency of modification electronic reading thing.
The embodiment of the present application provides a kind of data content method of adjustment, including:
When needing to carry out electronic reading thing content adjustment, the first operation object in the acquisition electronic reading thing
First position information, and the first data message corresponding with first position information;
When the modification for detecting the second data message of modification is operated, the corresponding second of second data message is obtained
Confidence ceases, wherein the second position information is differed with the first position information;
Based on the second position information, second data message is updated with first data message.
Optionally, before the first position information for obtaining the first operation object in the electronic reading thing, tool
Body includes:
The electronic reading thing is opened based on cross list, the cross list is with horizontal attribute and longitudinal attribute
List;
Based on the horizontal attribute or longitudinal attribute, first operation object is intercepted in sectional drawing mode.
Optionally, the first position information of first operation object for obtaining the electronic reading thing, specially:
Obtain the first sectional drawing coordinate information of first operation object;
Based on sectional drawing coordinate information and the mapping relations of positional information, obtain corresponding with the first sectional drawing coordinate information
The first position information.
Optionally, in the surface plot that second data message is the electronic reading thing, second data are obtained
The corresponding second position information of information is specially:
Obtain the corresponding surface plot positional information of surface plot described in the electronic reading thing;
Based on the surface plot positional information, the corresponding second position information of second data message is obtained.
Optionally, in the catalogue that second data message is the electronic reading thing during topic figure corresponding to title,
Obtain the corresponding second position information of second data message to be specially:
Obtain the corresponding horizontal attribute of first data message and longitudinal attribute;
Based on the horizontal attribute and longitudinal attribute, the data message of the topic figure is obtained;
Based on the data message of the topic figure, the corresponding second position information of second data message is obtained.
Optionally, it is described second data message is replaced with into first data message after, also include:
Preserve and the packet after second data message is updated with first data message, form second after adjustment
Electronic reading thing.
The embodiment of the present application also provides a kind of data content adjusting apparatus, including:
Acquiring unit, for when needing to carry out electronic reading thing content adjustment, obtaining in the electronic reading thing
The first position information of the first operation object, and the first data message corresponding with first position information;
Detector unit, is connected with the acquiring unit, for detecting the modification operation of the second data message of modification, for institute
State acquiring unit the corresponding second position information of second data message, wherein institute are obtained when the modification operation is detected
State second position information to differ with the first position information;
Adjustment unit, is connected with the acquiring unit, for according to the second position information, second data being believed
Breath replaces with first data message.
Optionally, the content adjusting apparatus also include:
Browse unit, for opening the electronic reading thing according to cross list, the cross list is with laterally category
Property and longitudinal attribute list;
Sectional drawing unit, is connected with the browse unit and the acquiring unit, for according to the horizontal attribute or described
Longitudinal attribute, intercepts first operation object in sectional drawing mode, obtains the first sectional drawing coordinate letter of first operation object
Breath, so that the acquiring unit is based on sectional drawing coordinate information and the mapping relations of positional information, is obtained and is sat with first sectional drawing
The corresponding first position information of mark information.
Optionally, the acquiring unit specifically for:
In the surface plot that second data message is the electronic reading thing, obtain described in the electronic reading thing
The corresponding surface plot positional information of surface plot, based on the surface plot positional information, obtains second data message corresponding
Second position information;
In the catalogue that second data message is the electronic reading thing during topic figure corresponding to title, obtain described
The corresponding horizontal attribute of first data message and longitudinal attribute, then belong to according to the horizontal attribute and the longitudinal direction
Property obtain the data message of the topic figure, be next based on the data message of the topic figure, obtain the second data message correspondence
Second position information.
Optionally, the content adjusting apparatus also include:
Memory element, is connected with the adjustment unit, and second data message is replaced with described first for preserving
Packet after data message, forms the second electronic reading thing after adjustment.
Said one or multiple technical schemes in the embodiment of the present application, at least imitates with following one or more technology
Really:
1st, the first position information and its corresponding first data by obtaining the first operation object in electronic reading thing is believed
Breath, then obtains the corresponding second position information of the second data message changed, and is updated in second with the first data message
The second data message put, realization are repaiied to the front cover and catalogue of electronic reading thing with the data content inside electronic reading thing
Change, in solving prior art, there is the technical problem that modification process is complicated, there is modification inefficiency, reach raising modification electricity
Son reads the technique effect of thing efficiency.
2nd, by obtaining automatically the corresponding second position information of the second data message changed, it is to avoid user voluntarily looks into again
The second data message position in electronic reading thing is looked for, so as to simplify the step of changing electronic reading thing, modification behaviour is improve
The intelligence degree of work, Consumer's Experience is more.
3rd, as the first position information of the first operation object is obtained by the way of sectional drawing, and then obtain and first position
Corresponding first data message of information, no matter the first operation object is of Word message, pictorial information, or pictorial information
Divide and can quickly obtain the first data message that user wants, the technique effect with quick obtaining data message enters one
Step improves the modification efficiency of modification electronic reading thing.
Description of the drawings
A kind of flow chart of data content methods of adjustment of the Fig. 1 to provide in the embodiment of the present application one;
Fig. 2 be the embodiment of the present application one in provide based on cross list open e-magazine schematic diagram;
Fig. 3 is the schematic diagram that the first operation object is intercepted in sectional drawing mode that provides in the embodiment of the present application one;
A kind of structured flowchart of data content adjusting apparatus of the Fig. 4 to provide in the embodiment of the present application two;
A kind of result block diagram of data content adjustment systems of the Fig. 5 to provide in the embodiment of the present application three.
Specific embodiment
In the technical scheme that the embodiment of the present application is provided, data content of the realization inside electronic reading thing is to electronic reading
Thing is modified, and there is the technical problem that modification process is complicated, there is modification inefficiency, reach and carry in solving prior art
The technique effect of high modification electronic reading thing efficiency.
Principle, specific embodiment and its correspondence are realized to the main of the embodiment of the present application technical scheme below in conjunction with the accompanying drawings
The beneficial effect that can be reached is explained in detail.
Embodiment one
Fig. 1 is refer to, the embodiment of the present application provides a kind of data content method of adjustment, including:
S101:When needing to carry out electronic reading thing content adjustment, the first operation in the electronic reading thing is obtained
The first position information of object, and the first data message corresponding with first position information;
S102:When the modification for detecting the second data message of modification is operated, second data message is obtained corresponding
Second position information, wherein the second position information is differed with the first position information;
S103:Based on the second position information, second data message is updated with first data message.
In specific implementation process, before performing S101, that is, obtaining the electronic reading thing(In embodiments of the present invention
The electronic reading thing can be e-book, e-magazines etc.)In the first operation object first position information before, be first based on
The electronic reading thing is opened in cross list, and the cross list is the list with horizontal attribute and longitudinal attribute;Then base
In the horizontal attribute and longitudinal attribute, first operation object is intercepted in sectional drawing mode.
Because each electronic reading thing is made up of several big chapters and sections, there is one or many usually below each chapters and sections
Individual article, and each article is made up of word, picture, animation etc., and the storage of electronic reading thing is usually to include content
And position, so electronic reading thing is opened based on the cross list with horizontal attribute and longitudinal attribute, wherein laterally attribute can
Be the chapters and sections of electronic reading thing, longitudinal attribute can be electronic reading thing the page number, represent that the article under same row belongs to
Same chapters and sections;Simultaneously laterally attribute can also be the page number of electronic reading thing, longitudinal attribute can also be the chapter of electronic reading thing
Section, represents that the article in same a line belongs to same chapters and sections.For example, open one have front cover, catalogue, Part I, second
Point and Part III totally 5 chapters and sections e-magazine " fantasy world ", the e-magazine is opened based on cross list, its horizontal category
Property be the page number for chapters and sections, longitudinal attribute.Refer to Fig. 2, the first of the cross list front cover for being classified as e-magazine " fantasy world ",
Secondary series e-magazine " fantasy world " for catalogue, the 3rd be classified as the Part I of e-magazine " fantasy world ", the 4th row
The Part III of e-magazine " fantasy world " is classified as the Part II of e-magazine " fantasy world ", the 5th.
Opened after electronic reading thing based on cross list, user can click on the page of arbitrary electronic reading thing, and check
The content of the inside, when user views the first operation object of oneself needs, can intercept first by way of sectional drawing
Operation object.Fig. 3 is refer to, where sectional drawing is needed on the current space of a whole page, starts one rectangle frame of picture, rectangle frame from starting point
Can be sized and position, click on sectional drawing button or double-click screenshot area, can now complete to intercept the first operation object
Operation, subsequently perform S101.
S101:When needing to carry out electronic reading thing content adjustment, the first operation in the electronic reading thing is obtained
The first position information of object, and the first data message corresponding with first position information.
Specifically, the first position information refers to particular location of first operation object in electronic reading thing, can be with
The particular location of the first operation object is obtained by the coordinate information of sectional drawing, the horizontal attribute of current page and longitudinal attribute.
Wherein institute's sectional drawing coordinate information is that with the coordinate information of the length of current page and the acquisition of a width of coordinate axess, i.e. sectional drawing coordinate is directly right
Should be in the coordinate of current page content, it is possible to based on sectional drawing coordinate information and the reciprocity mapping relations of positional information, obtain
The first position information corresponding with the first sectional drawing coordinate information.For example, the first operation object that user chooses is electricity
The a certain picture of sub- magazine " fantasy world " Part I page 5, then then corresponding to the current laterally attribute of acquisition is:First
Divide, longitudinal attribute is:Page 5, sectional drawing coordinate information is:Starting point coordinate(PointX, pointY)With the length of sectional drawing rectangle frame
Width, width height, i.e.,(PointX, pointY, width, height)Such as(1,7,4,3), then the of the first operation object
One positional information is then:Part I page 5, starting point and sectional drawing rectangle frame(5,1,7,4,3), the content of the first operation object
Then exist for current page surface frame(1,7,4,3)Interior content.
As in the packet of electronic reading thing, record has the positional information and corresponding data message of the place page, such as use
PageN represents the place page number,(PointX, pointY)The origin coordinates of the data message of the place page is represented, width represents number
It is believed that breath accounts for the width of the place page, height represents the length that data message accounts for the place page, then positional information is then represented
For:(PageN, pointX, pointY, width, height), data message corresponding with positional information is:Data X, so can
With corresponding first data message of first position acquisition of information according to the first operation object, it is assumed that e-magazine " fantasy world "
The positional information of the packet of middle picture " space ship " is(5,1,7,4,3), then correspondence obtains above-mentioned first position information
" Part I page 5, starting point and sectional drawing rectangle frame(1,7,4,3)" the first data message then for picture " space ship "
Data message.After first position information and the first data message is got, S102 is performed.
S102:When the modification for detecting the second data message of modification is operated, second data message is obtained corresponding
Second position information, wherein the second position information is differed with the first position information.
In specific implementation process, second data message be user after the first operation object is chosen, according to first
A kind of data message in operation object content selection correspondence option information, when the first operation object is picture, the second data
Information can be surface plot, or electronic reading thing catalogue in topic figure corresponding to title, such as the topic figure of a certain article;
When the first operation object is word, the second data message can be with title.For example, the first operation object is e-magazine " science fiction
Picture " space ship " in the world ", then just have for picture option of operation:1st, as surface plot, 2, as topic figure.
According to different types of second data message that user selects, the corresponding second of the second data message is obtained respectively
The specific embodiment of confidence breath includes:
The first, in the surface plot that second data message is the electronic reading thing, seals according in cross list
The page number that face is located is page 1, then can obtain the surface plot of the electronic reading thing from page 1 packet accordingly
The positional information of corresponding surface plot positional information, such as surface plot " starry sky universe " is:(1,0,0,6,8), then based on described
Surface plot positional information can just obtain the corresponding second position information of the second data message surface plot(1,0,0,6,8).
Second, in the catalogue that second data message is the electronic reading thing during topic figure corresponding to title,
The corresponding horizontal attribute of first data message and longitudinal attribute can be first obtained, such as the first data message is " too
The horizontal attribute of empty airship " is:" Part I ", longitudinal item attribute are " page 5 ";It is then based on the horizontal attribute and described
Longitudinal attribute, obtains the data message of the topic figure, i.e., gets described the according to the horizontal attribute and longitudinal attribute
Article title belonging to one data message, and then topic diagram data information of this article title in catalogue is obtained, such as the first data
The horizontal attribute of information " space ship " and longitudinal attribute " Part I, page 5 " corresponding article title are " to roam in the heavens it
Trip ", then it is picture " space an array of stars " to obtain topic diagram data information of the article " trip for roaming in the heavens " in catalogue accordingly;Tightly
Then, the data message based on the topic figure, obtains the corresponding second position information of second data message, such as according to topic figure
Data message " sky an array of stars ", obtains the second position information in its packet(2,0,4,1,1).
The third, second data message be title when, can first obtain the described horizontal category of the first data message
Property and longitudinal attribute, then obtain article title information corresponding with the horizontal attribute and longitudinal attribute, then obtain
The second position information of this article heading message is obtained, because article title information often individually goes out in the introductory song and catalogue of article
It is existing, so now second position information has two, for example, if using the first data message " future science " as title when, ten
The horizontal attribute and longitudinal attribute of " future science " are obtained in word list:Part II, page 15, then correspond to obtain second
The article title information for dividing page 15 is " science trend ", then article introductory song is obtained from two packets of " science trend "
Second position information(15,0,0,0.5,1)With the second position information of article title in catalogue(2,1,2,1,1).
After the second data message correspondence second position information is obtained, next step is performed:
S103:Based on the second position information, second data message is updated with first data message, will
First data message replaces second data message.For example, the first data message be picture " space ship ", second
Data message is surface plot " starry sky universe ", and the second position information of surface plot is:(1,0,0,6,8), then use the first data
Information " space ship " is replaced(1,0,0,6,8)The second data message " starry sky universe " in packet.
In specific implementation process, after second data message is replaced with first data message, preserve and use
First data message updates the packet after second data message, forms the second electronic reading thing after adjustment.
The front cover and title of electronic reading thing are changed by picture, lteral data information in acquisition electronic reading thing, it is real
Now electronic reading thing is modified with the data content inside electronic reading thing, particularly in electronic reading thing post-production
During typesetting, it is to avoid performing from outside and find corresponding data content, then import the data content carries out answering for corresponding modification
Miscellaneous flow process, reaches the technique effect for improving modification electronic reading thing efficiency.Meanwhile, by obtaining automatically the second data changed
, in solving prior art, there is the skill that modification process is complicated, there is modification inefficiency in the corresponding second position information of information
Art problem, so as to simplify the step of changing electronic reading thing, improves the intelligence degree of modification operation, and Consumer's Experience is more
It is good.
First position information as the first operation object is obtained by the way of sectional drawing, and then obtain and first position letter
Cease corresponding first data message, no matter the first operation object is a part for Word message, pictorial information, or pictorial information
The first data message that user wants can be quickly obtained, the technique effect with quick obtaining data message, further
Improve the modification efficiency of modification electronic reading thing.
Embodiment two
Fig. 4 is refer to, the embodiment of the present application provides a kind of data content adjusting apparatus, including:
Acquiring unit 401, for when needing to carry out electronic reading thing content adjustment, obtaining in the electronic reading thing
The first operation object first position information, and the first data message corresponding with first position information;
Detector unit 402, is connected with the acquiring unit 401, for detecting the modification operation of the second data message of modification,
So that the acquiring unit 401 obtains the corresponding second confidence of second data message when the modification operation is detected
Breath, wherein the second position information is differed with the first position information;
Adjustment unit 403, is connected with the acquiring unit 401, for according to the second position information, by described second
Data message replaces with first data message.
In specific implementation process, in order to more easily obtain the first operation object, the data content adjusting apparatus are also
Including:
Browse unit 404, for opening the electronic reading thing according to cross list, the cross list is with horizontal
The list of attribute and longitudinal attribute;
Sectional drawing unit 405, is connected with the browse unit 404 and the acquiring unit 401, for according to the horizontal category
Property or longitudinal attribute, first operation object is intercepted in sectional drawing mode, first section of first operation object is obtained
Figure coordinate information, for mapping relations of the acquiring unit 401 based on sectional drawing coordinate information and positional information, obtain with it is described
The corresponding first position information of first sectional drawing coordinate information.
Specifically, the acquiring unit 401 is different for the processing method of the second different data messages, described second
When data message is the surface plot of the electronic reading thing, the corresponding surface plot of surface plot described in the electronic reading thing is obtained
Positional information, based on the surface plot positional information, obtains the corresponding second position information of second data message;Described
Second data message be the electronic reading thing catalogue in topic figure corresponding to title when, obtain first data message pair
The described horizontal attribute answered or longitudinal attribute, then obtain the topic figure according to the horizontal attribute or longitudinal attribute
Data message, be next based on the data message of the topic figure, obtain the corresponding second position information of second data message.
In order to preserve amended packet, new electronic reading thing is formed, the data content that the application is provided is adjusted
Engagement positions, also include:Memory element, is connected with the adjustment unit 403, is replaced with second data message for preserving
Packet after first data message, forms the second electronic reading thing after adjustment.
By one or more technical schemes in the embodiment of the present application, it is possible to achieve following one or more technologies are imitated
Really:
1st, the first position information and its corresponding first data by obtaining the first operation object in electronic reading thing is believed
Breath, then obtains the corresponding second position information of the second data message changed, and is updated in second with the first data message
The second data message put, the data content inside realization electronic reading thing are modified to electronic reading thing, solve existing
There is the technical problem that modification process is complicated, there is modification inefficiency in having technology, reach raising modification electronic reading thing effect
The technique effect of rate.
2nd, by obtaining automatically the corresponding second position information of the second data message changed, it is to avoid user voluntarily looks into again
The second data message position in electronic reading thing is looked for, so as to simplify the step of changing electronic reading thing, modification behaviour is improve
The intelligence degree of work, Consumer's Experience is more preferably.
3rd, as the first position information of the first operation object is obtained by the way of sectional drawing, and then obtain and first position
Corresponding first data message of information, no matter the first operation object is of Word message, pictorial information, or pictorial information
Divide and can quickly obtain the first data message that user wants, the technique effect with quick obtaining data message enters one
Step improves the modification efficiency of modification electronic reading thing.
Embodiment three
Fig. 5 is refer to, the embodiment of the present application provides a kind of data content and adjusts system, including:
Processor 501, when needing to carry out electronic reading thing content adjustment, obtains first in the electronic reading thing
The first position information of operation object, and the first data message corresponding with first position information;Count modification second is detected
It is believed that when the modification of breath is operated, the corresponding second position information of second data message is obtained, wherein second position letter
Breath is differed with the first position information;Based on the second position information, described the is updated with first data message
Two data messages;
Memorizer 502, is connected with the processor 501, for it is described second data message is replaced with it is described
After first data message, preserve and the packet after second data message is updated with first data message, form adjustment
The second electronic reading thing afterwards.
In order to more easily obtain the first operation object, the processor 501 that the application is provided is opening electronic reading
During thing, the electronic reading thing is opened with the tabular form with horizontal attribute and longitudinal attribute, according to the horizontal attribute or
Longitudinal attribute intercepts the first operation object in sectional drawing mode, in order to obtain reflecting for sectional drawing coordinate information and positional information
Relation is penetrated, the first position information corresponding with the first sectional drawing coordinate information is obtained.
In specific implementation process, the system that the application is provided can be according to the data content adjustment side of above-described embodiment one
Method changes the front cover and title of electronic reading thing by picture, lteral data information in acquisition electronic reading thing, realizes electricity consumption
Son is read the data content inside thing and electronic reading thing is modified, particularly to electronic reading thing post-production, it is to avoid hold
Row finds corresponding data content from outside, then imports the Complicated Flow that the data content carries out accordingly changing, and reaches raising and repaiies
Change the technique effect of electronic reading thing efficiency.Meanwhile, by obtaining automatically the corresponding second of the second data message changed
Confidence ceases, and there is the technical problem that modification process is complicated, there is modification inefficiency, so as to simplify in solving prior art
The step of modification electronic reading thing, the intelligence degree of modification operation is improve, Consumer's Experience is more preferably.
Obviously, those skilled in the art can carry out the essence of various changes and modification without deviating from the present invention to the present invention
God and scope.So, if these modifications of the present invention and modification belong to the scope of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to comprising these changes and modification.