Summary of the invention
The embodiment of the present invention provides a kind of data content method of adjustment and device, be used for solving prior art and have modification process complexity, there is the technical matters of amendment inefficiency, realize with the data content of electronic reading thing inside electronic reading thing is modified, improve the efficiency of amendment electronic reading thing.
The embodiment of the present application provides a kind of data content method of adjustment, comprising:
In the time that needs carry out content adjustment to electronic reading thing, obtain the primary importance information of the first operand in described electronic reading thing, and first data message corresponding with primary importance information;
In the time the retouching operation of amendment the second data message being detected, obtain the second place information that described the second data message is corresponding, wherein said second place information is not identical with described primary importance information;
Based on described second place information, upgrade described the second data message with described the first data message.
Optionally, before the described primary importance information of obtaining the first operand in described electronic reading thing, specifically comprise:
Based on cross, described electronic reading thing is opened in list, and described cross list is to have horizontal attribute and the longitudinally list of attribute;
Based on described horizontal attribute or described longitudinal attribute, intercept described the first operand in sectional drawing mode.
Optionally, described in obtain the primary importance information of the first operand of described electronic reading thing, be specially:
Obtain the first sectional drawing coordinate information of described the first operand;
Based on the mapping relations of sectional drawing coordinate information and positional information, obtain the described primary importance information corresponding with described the first sectional drawing coordinate information.
Optionally, in the time that described the second data message is the surface plot of described electronic reading thing, obtains the second place information that described the second data message is corresponding and be specially:
Obtain surface plot positional information corresponding to surface plot described in described electronic reading thing;
Based on described surface plot positional information, obtain the second place information that described the second data message is corresponding.
Optionally, in the catalogue that is described electronic reading thing at described the second data message, when the corresponding topic figure of title, obtain the second place information that described the second data message is corresponding and be specially:
Obtain described horizontal attribute and described longitudinal attribute that described the first data message is corresponding;
Based on described horizontal attribute and described longitudinal attribute, obtain the data message of described topic figure;
Based on the data message of described topic figure, obtain the second place information that described the second data message is corresponding.
Optionally, described, described the second data message is replaced with after described the first data message, also comprises:
Preservation is upgraded the packet after described the second data message with described the first data message, forms the second electronic reading thing after adjusting.
The embodiment of the present application also provides a kind of data content adjusting gear, comprising:
Acquiring unit, in the time that needs carry out content adjustment to electronic reading thing, obtains the primary importance information of the first operand in described electronic reading thing, and first data message corresponding with primary importance information;
Detecting unit, be connected with described acquiring unit, for detection of the retouching operation of amendment the second data message, in the time described retouching operation being detected, obtain for described acquiring unit the second place information that described the second data message is corresponding, wherein said second place information is not identical with described primary importance information;
Adjustment unit, is connected with described acquiring unit, for according to described second place information, described the second data message is replaced with to described the first data message.
Optionally, described content adjusting gear also comprises:
Browse unit, for according to cross list open described electronic reading thing, described cross list is to have horizontal attribute and the longitudinally list of attribute;
Sectional drawing unit, be connected with described acquiring unit with described browse unit, be used for according to described horizontal attribute or described longitudinal attribute, intercept described the first operand in sectional drawing mode, obtain the first sectional drawing coordinate information of described the first operand, mapping relations for described acquiring unit based on sectional drawing coordinate information and positional information, obtain the described primary importance information corresponding with described the first sectional drawing coordinate information.
Optionally, described acquiring unit specifically for:
In the time that described the second data message is the surface plot of described electronic reading thing, obtain surface plot positional information corresponding to surface plot described in described electronic reading thing, based on described surface plot positional information, obtain the second place information that described the second data message is corresponding;
In the catalogue that is described electronic reading thing at described the second data message when the corresponding topic figure of title, obtain described horizontal attribute and described longitudinal attribute that described the first data message is corresponding, then obtain the data message of described topic figure according to described horizontal attribute and described longitudinal attribute, then the data message based on described topic figure, obtains the second place information that described the second data message is corresponding.
Optionally, described content adjusting gear also comprises:
Storage unit, is connected with described adjustment unit, for preserving, described the second data message is replaced with to the packet after described the first data message, forms the second electronic reading thing after adjusting.
Above-mentioned one or more technical schemes in the embodiment of the present application, at least have following one or more technique effects:
1, by obtaining primary importance information and the first corresponding data message thereof of the first operand in electronic reading thing, then obtain second place information corresponding to the second data message being modified, be updated in the second data message of the second place with the first data message, realizing front cover and the catalogue to electronic reading thing with the data content of electronic reading thing inside modifies, solve and in prior art, had modification process complexity, there is the technical matters of amendment inefficiency, reach the technique effect that improves amendment electronic reading thing efficiency.
2, second place information corresponding to the second data message being modified by automatic acquisition, avoid user to search voluntarily again the second data message position in electronic reading thing, thereby simplified the step of amendment electronic reading thing, improved the intelligent degree of retouching operation, user experiences more.
3, owing to adopting the mode of sectional drawing to obtain the primary importance information of the first operand, and then acquisition first data message corresponding with primary importance information, no matter the first operand is Word message, pictorial information, or a part for pictorial information all can obtain the first data message that user wants fast, there is the technique effect of quick obtaining data message, further improved the amendment efficiency of amendment electronic reading thing.
Embodiment
In the technical scheme that the embodiment of the present application provides, realization is modified to electronic reading thing with the data content of electronic reading thing inside, solve in prior art and had modification process complexity, had the technical matters of amendment inefficiency, reached the technique effect that improves amendment electronic reading thing efficiency.
Below in conjunction with accompanying drawing, the embodiment of the present application technical scheme main realized to principle, embodiment and the beneficial effect that should be able to reach is explained in detail.
Embodiment mono-
Please refer to Fig. 1, the embodiment of the present application provides a kind of data content method of adjustment, comprising:
S101: in the time that needs carry out content adjustment to electronic reading thing, obtain the primary importance information of the first operand in described electronic reading thing, and first data message corresponding with primary importance information;
S102: in the time the retouching operation of amendment the second data message being detected, obtain the second place information that described the second data message is corresponding, wherein said second place information is not identical with described primary importance information;
S103: based on described second place information, upgrade described the second data message with described the first data message.
In specific implementation process, before carrying out S101, before obtaining the primary importance information of the first operand in described electronic reading thing (this electronic reading thing can be e-book, electronics impurity etc. in embodiments of the present invention), first based on cross, described electronic reading thing is opened in list, and described cross list is to have horizontal attribute and the longitudinally list of attribute; Then based on described horizontal attribute and described longitudinal attribute, intercept described the first operand in sectional drawing mode.
Because each electronic reading thing is made up of several large chapters and sections, below each chapters and sections, usually there are one or more articles, and each section of article is made up of word, picture, animation etc., and the storage of electronic reading thing is usually to comprise content and position, so electronic reading thing is opened in the cross list based on having horizontal attribute and longitudinal attribute, wherein laterally attribute can be that the chapters and sections of electronic reading thing, longitudinal attribute can be the page numbers of electronic reading thing, and the article being illustrated under same row belongs to same chapters and sections; Laterally attribute can be also that the page number of electronic reading thing, longitudinal attribute can be also the chapters and sections of electronic reading thing simultaneously, and the article that is illustrated in same a line belongs to same chapters and sections.For example, open one and have front cover, catalogue, Part I, Part II and the Part III e-magazine of totally 5 chapters and sections " fantasy world ", based on cross, this e-magazine is opened in list, and its horizontal attribute is chapters and sections, longitudinally attribute is the page number.Please refer to Fig. 2, the Part II, the 5th that the Part I, the 4th of classifying e-magazine " fantasy world " as for catalogue, the 3rd that front cover, the secondary series e-magazine " fantasy world " of e-magazine " fantasy world " are classified in first of cross list as is classified e-magazine " fantasy world " as is classified the Part III of e-magazine " fantasy world " as.
Based on cross, list is opened after electronic reading thing, and user can click the page of arbitrary electronic reading thing, and checks and the content of the inside in the time that user views the first operand of own needs, can intercept the first operand by the mode of sectional drawing.Please refer to Fig. 3, on the current space of a whole page, need the place of sectional drawing to start rectangle frame of picture from starting point, rectangle frame can be adjusted size and position, clicks sectional drawing button or double-clicks sectional drawing region, now can complete the operation that intercepts the first operand, carry out subsequently S101.
S101: in the time that needs carry out content adjustment to electronic reading thing, obtain the primary importance information of the first operand in described electronic reading thing, and first data message corresponding with primary importance information.
Concrete, described primary importance information refers to the particular location of the first operand in electronic reading thing, can obtain by the horizontal attribute of the coordinate information of sectional drawing, current page and longitudinal attribute the particular location of the first operand.Wherein institute's sectional drawing coordinate information is length and the wide coordinate information obtaining as coordinate axis taking current page, it is the directly corresponding coordinate in current page content of sectional drawing coordinate, so reciprocity mapping relations that can be based on sectional drawing coordinate information and positional information, obtain the described primary importance information corresponding with described the first sectional drawing coordinate information.For example, the first operand that user chooses is a certain picture of the 5th page of e-magazine " fantasy world " Part I, so correspondence is obtained current horizontal attribute and is: Part I, longitudinally attribute is: the 5th page, sectional drawing coordinate information is: starting point coordinate (pointX, and the long width of sectional drawing rectangle frame pointY), wide height, i.e. (pointX, pointY, width, height) as (1, 7, 4, 3), the primary importance information of the first operand is so: the 5th page of Part I, starting point and sectional drawing rectangle frame (5, 1, 7, 4, 3), the content of the first operand is that current page frame is (1, 7, 4, 3) content in.
In packet due to electronic reading thing, record positional information and the corresponding data message of the place page, as represented the place page number with pageN, (pointX, pointY) represent the origin coordinates of the data message of the place page, width representative data information accounts for the width of the place page, height representative data information accounts for the length of the place page, positional information is expressed as so: (pageN, pointX, pointY, width, height), the data message corresponding with positional information is: data X, so the first data message that can be corresponding according to the primary importance acquisition of information of the first operand, the positional information of supposing the packet of picture " space ship " in e-magazine " fantasy world " is (5, 1, 7, 4, 3), so corresponding above-mentioned primary importance information " the 5th page of the Part I that obtain, starting point and sectional drawing rectangle frame (1, 7, 4, 3) the first data message " is the data message of picture " space ship ".Getting after primary importance information and the first data message, carrying out S102.
S102: in the time the retouching operation of amendment the second data message being detected, obtain the second place information that described the second data message is corresponding, wherein said second place information is not identical with described primary importance information.
In specific implementation process, described the second data message is that user is choosing after the first operand, according to a kind of data message in the corresponding option information of the first operand content choice, in the time that the first operand is picture, the second data message can be surface plot, also can be the corresponding topic figure of title in the catalogue of electronic reading thing, as the topic figure of a certain article; In the time that the first operand is word, the second data message can title.For example, the first operand is the picture " space ship " in e-magazine " fantasy world ", just has so for picture option of operation: 1, as surface plot, and 2, as topic figure.
The second dissimilar data message of selecting according to user, the embodiment of obtaining respectively the second place information that the second data message is corresponding comprises:
The first, in the time that described the second data message is the surface plot of described electronic reading thing, be first page according to the page number at front cover place in cross list, from first page packet, can obtain accordingly so the surface plot positional information corresponding to surface plot of described electronic reading thing, as the positional information of surface plot " starry sky universe " is: (1,0,0,6,8), just can obtain second place information (1 corresponding to described the second data message surface plot based on described surface plot positional information so, 0,0,6,8).
The second, in the catalogue that is described electronic reading thing at described the second data message when the corresponding topic figure of title, can first obtain described horizontal attribute and described longitudinal attribute that described the first data message is corresponding, as the horizontal attribute of the first data message " space ship " is: " Part I ", longitudinally an attribute is " the 5th page "; Then based on described horizontal attribute and described longitudinal attribute, obtain the data message of described topic figure, get the article title under described the first data message according to described horizontal attribute and described longitudinal attribute, and then the topic diagram data information of acquisition this article title in catalogue, as the horizontal attribute of the first data message " space ship " and longitudinally article title corresponding to attribute " Part I, the 5th page " be " travel roaming in the heavens ", obtaining so accordingly the topic diagram data information of article " travel roaming in the heavens " in catalogue is picture " space an array of stars "; And then, based on the data message of described topic figure, obtain the second place information that described the second data message is corresponding, as according to topic diagram data information " sky an array of stars ", obtain the second place information (2,0,4,1,1) in its packet.
The third, in the time that described the second data message is title, can first obtain described horizontal attribute and described longitudinal attribute of the first data message, then obtain the article title information corresponding with described horizontal attribute and described longitudinal attribute, the second place information of this article heading message of reentrying, because article title information often occurs separately in the introductory song of article and catalogue, so now second place information has two, for example, if using the first data message " future science " during as title, in cross list, obtain horizontal attribute and longitudinal attribute of " future science ": Part II, the 15th page, then the corresponding article title information that obtains the 15th page of Part II is " science trend ", from two packets of " science trend ", obtain again the second place information (15 of article introductory song, 0, 0, 0.5, 1) second place information (2 of article title and in catalogue, 1, 2, 1, 1).
Obtaining after the corresponding second place information of the second data message, carrying out next step:
S103: based on described second place information, upgrade described the second data message with described the first data message, replace described the second data message by described the first data message.For example, the first data message is that picture " space ship ", the second data message are surface plot " starry sky universe ", and the second place information of surface plot is: (1,0,0,6,8), use so the first data message " space ship " to replace (1,0,0,6,8) the second data message in packet " starry sky universe ".
In specific implementation process, described the second data message is being replaced with after described the first data message, preservation is upgraded the packet after described the second data message with described the first data message, forms the second electronic reading thing after adjusting.
Revise front cover and the title of electronic reading thing by obtaining picture in electronic reading thing, lteral data information, realization is modified to electronic reading thing with the data content of electronic reading thing inside, particularly in the process of typeset of electronic reading thing post-production, avoid carrying out and find corresponding data content from outside, import again the Complicated Flow that this data content carries out corresponding modify, reach the technique effect that improves amendment electronic reading thing efficiency.Simultaneously, second place information corresponding to the second data message being modified by automatic acquisition, solve and in prior art, had modification process complexity, there is the technical matters of amendment inefficiency, thereby simplify the step of amendment electronic reading thing, improved the intelligent degree of retouching operation, user experiences better.
Obtain the primary importance information of the first operand owing to adopting the mode of sectional drawing, and then acquisition first data message corresponding with primary importance information, no matter the first operand is Word message, pictorial information, or a part for pictorial information all can obtain the first data message that user wants fast, there is the technique effect of quick obtaining data message, further improved the amendment efficiency of amendment electronic reading thing.
Embodiment bis-
Please refer to Fig. 4, the embodiment of the present application provides a kind of data content adjusting gear, comprising:
Acquiring unit 401, in the time that needs carry out content adjustment to electronic reading thing, obtains the primary importance information of the first operand in described electronic reading thing, and first data message corresponding with primary importance information;
Detecting unit 402, be connected with described acquiring unit 401, for detection of the retouching operation of amendment the second data message, in the time described retouching operation being detected, obtain for described acquiring unit 401 second place information that described the second data message is corresponding, wherein said second place information is not identical with described primary importance information;
Adjustment unit 403, is connected with described acquiring unit 401, for according to described second place information, described the second data message is replaced with to described the first data message.
In specific implementation process, in order to obtain more easily the first operand, described data content adjusting gear also comprises:
Browse unit 404, for according to cross list open described electronic reading thing, described cross list is to have horizontal attribute and the longitudinally list of attribute;
Sectional drawing unit 405, be connected with described acquiring unit 401 with described browse unit 404, be used for according to described horizontal attribute or described longitudinal attribute, intercept described the first operand in sectional drawing mode, obtain the first sectional drawing coordinate information of described the first operand, mapping relations for described acquiring unit 401 based on sectional drawing coordinate information and positional information, obtain the described primary importance information corresponding with described the first sectional drawing coordinate information.
Concrete, described acquiring unit 401 is for the disposal route difference of the second different data messages, in the time that described the second data message is the surface plot of described electronic reading thing, obtain surface plot positional information corresponding to surface plot described in described electronic reading thing, based on described surface plot positional information, obtain the second place information that described the second data message is corresponding; In the catalogue that is described electronic reading thing at described the second data message when the corresponding topic figure of title, obtain described horizontal attribute or described longitudinal attribute that described the first data message is corresponding, then obtain the data message of described topic figure according to described horizontal attribute or described longitudinal attribute, then the data message based on described topic figure, obtains the second place information that described the second data message is corresponding.
In order to preserve amended packet, form new electronic reading thing, the described data content adjusting gear that the application provides, also comprise: storage unit, be connected with described adjustment unit 403, for preserving, described the second data message is replaced with to the packet after described the first data message, form the second electronic reading thing after adjusting.
By the one or more technical schemes in the embodiment of the present application, can be achieved as follows one or more technique effects:
1, by obtaining primary importance information and the first corresponding data message thereof of the first operand in electronic reading thing, then obtain second place information corresponding to the second data message being modified, be updated in the second data message of the second place with the first data message, realization is modified to electronic reading thing with the data content of electronic reading thing inside, solve and in prior art, had modification process complexity, there is the technical matters of amendment inefficiency, reach the technique effect that improves amendment electronic reading thing efficiency.
2, second place information corresponding to the second data message being modified by automatic acquisition, avoid user to search voluntarily again the second data message position in electronic reading thing, thereby simplified the step of amendment electronic reading thing, improved the intelligent degree of retouching operation, user experiences better.
3, owing to adopting the mode of sectional drawing to obtain the primary importance information of the first operand, and then acquisition first data message corresponding with primary importance information, no matter the first operand is Word message, pictorial information, or a part for pictorial information all can obtain the first data message that user wants fast, there is the technique effect of quick obtaining data message, further improved the amendment efficiency of amendment electronic reading thing.
Embodiment tri-
Please refer to Fig. 5, the embodiment of the present application provides a kind of data content adjustment System, comprising:
Processor 501, in the time that needs carry out content adjustment to electronic reading thing, obtains the primary importance information of the first operand in described electronic reading thing, and first data message corresponding with primary importance information; In the time the retouching operation of amendment the second data message being detected, obtain the second place information that described the second data message is corresponding, wherein said second place information is not identical with described primary importance information; Based on described second place information, upgrade described the second data message with described the first data message;
Storer 502, be connected with described processor 501, for described, described the second data message being replaced with after described the first data message, preservation is upgraded the packet after described the second data message with described the first data message, forms the second electronic reading thing after adjusting.
In order to obtain more easily the first operand, the described processor 501 that the application provides is in the time opening electronic reading thing, open described electronic reading thing with the tabular form with horizontal attribute and longitudinal attribute, intercept the first operand according to described horizontal attribute or described longitudinal attribute in sectional drawing mode, so that in the mapping relations of obtaining sectional drawing coordinate information and positional information, obtain the described primary importance information corresponding with described the first sectional drawing coordinate information.
In specific implementation process, the system that the application provides can be revised according to the data content method of adjustment of above-described embodiment one front cover and the title of electronic reading thing by obtaining picture in electronic reading thing, lteral data information, realization is modified to electronic reading thing with the data content of electronic reading thing inside, particularly to the post-production of electronic reading thing, avoid carrying out and find corresponding data content from outside, import again the Complicated Flow that this data content carries out corresponding modify, reach the technique effect that improves amendment electronic reading thing efficiency.Simultaneously, second place information corresponding to the second data message being modified by automatic acquisition, solve and in prior art, had modification process complexity, there is the technical matters of amendment inefficiency, thereby simplify the step of amendment electronic reading thing, improved the intelligent degree of retouching operation, user experiences better.
Obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the present invention the present invention.Like this, if these amendments of the present invention and within modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention is also intended to comprise these changes and modification interior.