CN108519966B - The replacement method and calculating equipment of e-book particular text element - Google Patents

The replacement method and calculating equipment of e-book particular text element Download PDF

Info

Publication number
CN108519966B
CN108519966B CN201810322488.8A CN201810322488A CN108519966B CN 108519966 B CN108519966 B CN 108519966B CN 201810322488 A CN201810322488 A CN 201810322488A CN 108519966 B CN108519966 B CN 108519966B
Authority
CN
China
Prior art keywords
text element
replacement
book
text
particular text
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.)
Active
Application number
CN201810322488.8A
Other languages
Chinese (zh)
Other versions
CN108519966A (en
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.)
Zhangyue Technology Co Ltd
Original Assignee
Zhangyue Technology 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 Zhangyue Technology Co Ltd filed Critical Zhangyue Technology Co Ltd
Priority to CN201810322488.8A priority Critical patent/CN108519966B/en
Publication of CN108519966A publication Critical patent/CN108519966A/en
Application granted granted Critical
Publication of CN108519966B publication Critical patent/CN108519966B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/02Digital computers in general; Data processing equipment in general manually operated with input through keyboard and computation using a built-in program, e.g. pocket calculators
    • G06F15/025Digital computers in general; Data processing equipment in general manually operated with input through keyboard and computation using a built-in program, e.g. pocket calculators adapted to a specific application
    • G06F15/0291Digital computers in general; Data processing equipment in general manually operated with input through keyboard and computation using a built-in program, e.g. pocket calculators adapted to a specific application for reading, e.g. e-books
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/205Parsing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The invention discloses a kind of replacement method of e-book particular text element and calculate equipment, wherein method includes: the specified range of text for e-book, identifies the one or more particular text elements for meeting replacement condition;Obtain the replacement text element corresponding with one or more particular text elements that user is inputted;According to the replacement text element, one or more of particular text elements are replaced processing, obtain being replaced treated e-book.Utilize technical solution provided by the invention, user can be according to oneself to the understanding of eBook content and idea input replacement text element corresponding with one or more particular text elements, it handles to obtain individual electronic book by replacement, the enjoyment and participation in user's reading process are increased, the reading experience of user is improved.

Description

The replacement method and calculating equipment of e-book particular text element
Technical field
The present invention relates to e-book technical fields, and in particular to a kind of replacement method and meter of e-book particular text element Calculate equipment.
Background technique
Currently, popularizing with mobile terminals such as the rapid development of Internet technology and mobile phones, mobile eventually using mobile phone etc. End obtains information and has become a kind of normality, and especially in terms of reading, more and more reading fans select to be replaced with e-book Change traditional paper book.
It is existing that the platform of e-book service is provided, it is typically only capable to read to mobile phone user or reader user offer e-book Read service, and user then can only passively receive and reading electronic book content, can not active eBook content is repaired Change, so that the interactive mode of user and platform is excessively single, weaken the participation of user, further influence user uses body It tests.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind It states the replacement method of the e-book particular text element of problem and calculates equipment.
According to an aspect of the invention, there is provided a kind of replacement method of e-book particular text, comprising:
For the specified range of text of e-book, the one or more particular text elements for meeting replacement condition are identified;
Obtain the replacement text element corresponding with one or more particular text elements that user is inputted;
According to the replacement text element, one or more of particular text elements are replaced processing, obtain through Replacement treated e-book.
According to another aspect of the present invention, provide a kind of calculating equipment, comprising: processor, memory, communication interface and Communication bus, the processor, the memory and the communication interface complete mutual communication by the communication bus;
For the memory for storing an at least executable instruction, it is following that the executable instruction executes the processor Operation:
For the specified range of text of e-book, the one or more particular text elements for meeting replacement condition are identified;
Obtain the replacement text element corresponding with one or more particular text elements that user is inputted;
According to the replacement text element, one or more of particular text elements are replaced processing, obtain through Replacement treated e-book.
According to another aspect of the invention, provide a kind of computer storage medium, be stored in the storage medium to A few executable instruction, the executable instruction make processor execute following operation:
For the specified range of text of e-book, the one or more particular text elements for meeting replacement condition are identified;
Obtain the replacement text element corresponding with one or more particular text elements that user is inputted;
According to the replacement text element, one or more of particular text elements are replaced processing, obtain through Replacement treated e-book.
The replacement method and calculating equipment of e-book particular text element according to the present invention, for the specified text of e-book This range identifies the one or more particular text elements for meeting replacement condition;Obtain user inputted with one or more The corresponding replacement text element of a particular text element;It, will be one or more of specific according to the replacement text element Text element is replaced processing, obtains being replaced treated e-book.Using the present invention program, user can be according to oneself Understanding and idea input replacement text element corresponding with one or more particular text elements to eBook content, warp It crosses replacement to handle to obtain individual electronic book, increases the enjoyment and participation in user's reading process, improve user's Reading experience.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows the flow chart of the replacement method of e-book particular text element according to an embodiment of the invention;
Fig. 2 shows the processes of the replacement method of e-book particular text element in accordance with another embodiment of the present invention Figure;
Fig. 3, which is shown, to be shown that identify multiple are adjectival with underscore format and shows in a specific embodiment of the invention It is intended to;
Fig. 4 shows display replacement text element and does not show the schematic diagram of replacement two kinds of situations of text element;
Fig. 5 shows mark particular text element in the specific format and replaces the schematic diagram of text element;
Fig. 6 shows the process of the replacement method of the e-book particular text element of another embodiment according to the present invention Figure;
Fig. 7 shows the process of the replacement method of the e-book particular text element of further embodiment according to the present invention Figure;
Fig. 8 shows a kind of structural schematic diagram for calculating equipment according to an embodiment of the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
Fig. 1 shows the flow chart of the replacement method of e-book particular text element according to an embodiment of the invention. As shown in Figure 1, method includes the following steps:
Step S101: for the specified range of text of e-book, identify that the one or more for meeting replacement condition is specific Text element.
In the present invention, it is contemplated that the main body control of e-book textual content, and in view of user voluntarily selects one Or multiple particular text elements will appear the case where largely influencing e-book textual content to be replaced processing, therefore In the present invention, one or more particular text elements are determined according to the replacement condition that platform provides, it may be assumed that determine the text being replaced This element, and processing is replaced for these particular text elements.
Wherein, specified range of text can be any range in e-book, can specifically be specified by platform, can also be with It is voluntarily determined by user, the present invention is not specifically limited in this embodiment.Wherein, replacement condition is that arbitrarily can be used for sieving from e-book The condition of particular text element is selected, specifically, replacement condition includes but is not limited at least one set forth below: belonging to specific part of speech Vocabulary, belong to specific emotion vocabulary or sentence, belong to punctuation mark and/or belong to conversation content.
In the present invention, text element includes the arbitrary element for constituting e-book textual content, for example, word, sentence, mark Point symbol etc., still, the present invention is not limited thereto, in the specific implementation, those skilled in the art can will be any other on It states the unmentioned element for constituting e-book textual content and is determined as text element.And particular text element then refers to satisfaction replacement The above-mentioned text element of at least one of condition.For example, one or more if replacement condition is to belong to adjectival vocabulary Particular text element is one or more adjectives.
In addition, in the present invention, not being defined to the recognition methods of the one or more particular text elements of identification, specifically When implementation, those skilled in the art can flexibly determine corresponding recognition methods according to replacement condition.
Step S102: the replacement text element corresponding with one or more particular text elements that user is inputted is obtained Element.
After identifying and meeting one or more particular text elements of replacement condition, user is obtained according to oneself reason Solution or the corresponding replacement text of idea input.
Specifically, user can be by selecting the side for replacing text element corresponding with one or more particular text elements Formula inputs, alternatively, user can be by voluntarily keying in replacement text element corresponding with one or more particular text elements Mode input, the present invention is not especially limited this, in the specific implementation, those skilled in the art can be according to implementation condition The mode of flexible setting user input.
For example, if particular text element is foreign place name, user can be referred to as corresponding by the name of oneself residence Replacement text element, substitute into sense to enhance the whole of story content;For another example, if particular text element is one section of human dialog, User can select the conversation content of reorganization as corresponding replacement text element according to the understanding of oneself, to melt in e-books Enter the opinion of oneself.
Step S103: according to replacement text element, one or more particular text elements are replaced processing, obtain through Replacement treated e-book.
According to the replacement text element that user inputs, it is replaced processing for one or more particular text elements, In, replacement processing can be to replace text element and directly replace corresponding one or more particular text element in original text; Alternatively, replacement processing is will replace text element to show the adjacent of in original text corresponding one or more particular text elements Position.In the specific implementation, those skilled in the art can carry out flexible choice according to demand.For example, if obtaining being replaced place After e-book after reason, other users are needed to vote the replacement text element in the e-book, then for the ease of other User will replace text element and be compared with particular text element, and selection shows replacement text element corresponding in original text One or more particular text elements adjacent position.Obtained from through replacement treated e-book, it may be assumed that it is defeated including user The individual electronic book of the particular text element entered, which participated in by user, and that reflects users Understanding and idea.
According to the replacement method of e-book particular text element provided in this embodiment, for the specified text model of e-book It encloses, one or more particular text elements is identified according to the replacement condition that platform is set, so that the selection of particular text element It can be controlled by platform, to be easy to the main body control to e-book textual content;Then obtain that user inputted with one The corresponding replacement text element of a or multiple particular text elements, the input of replacement text element is participated in by user, is changed The single interactive mode of user and platform, enhance the enjoyment in the participation and reading process of user;According to the replacement text One or more of particular text elements are replaced processing by this element, obtain being replaced treated e-book, the electricity The philosophical works reflects the understanding and idea of user.It can be seen that user can be according to oneself to eBook content using the present embodiment Understanding and idea input and the corresponding replacement text element of one or more particular text elements, handled by replacement To individual electronic book, the enjoyment and participation in user's reading process are increased, the reading experience of user is improved.
Fig. 2 shows the processes of the replacement method of e-book particular text element in accordance with another embodiment of the present invention Figure.The present embodiment is primarily adapted for use in the case where particular text element is specific word or particular statement, as shown in Fig. 2, this method packet Include following steps:
Step S201: for the specified range of text of e-book, identify that the one or more for meeting replacement condition is specific Text element.
According to the difference of replacement condition, the method for identifying the one or more particular text elements for meeting replacement condition is specific Include: to be analyzed when replacement condition is to belong to the vocabulary of specific part of speech by part of speech, identify one for belonging to specific part of speech or Multiple specific words;When replacement condition is to belong to conversation content, is analyzed by specific punctuation mark, identify and belong to conversation content One or more particular statements.Need it is described herein be that the present invention is not limited with the above-mentioned replacement condition enumerated, and The present invention is not limited in the method for the above-mentioned identification particular text element enumerated, in the specific implementation, those skilled in the art Can also using other identification particular text elements method be identified, for example, it is also possible to by with the difference in lexicon The vocabulary of part of speech is matched, and identifies the one or more specific words for belonging to specific part of speech.
After identifying one or more particular text elements, to be directed to the one or more particular text convenient for user Element executes input operation, which is shown with the format for being different from other text elements, example Such as, by underscore, overstriking plus emphatically the modes such as symbol show the one or more particular text element.Fig. 3 shows this Invent the multiple adjectival schematic diagrames for showing and identifying with underscore format in a specific embodiment.As shown in figure 3, shielding In the range of curtain current page is shown, " sad ", " sadness ", " hard " and " true to nature " is identified, totally 4 adjectives, also, This 4 adjectives are shown with underscore format different from other text elements, user, which can be directed to, describing for underscore Word inputs corresponding replacement text element.
Step S202: it is shown in the corresponding position of each particular text element corresponding at least with the particular text element One replacement text element, and the selection input item of at least one replacement text element is provided.
Wherein, at least one replacement text element can obtain at least one of in the following manner:
At least one replacement text element is calculated according to replacement algorithm in mode one.Optionally, replacement algorithm is according to replacing Target is changed to determine, in some embodiments of the invention, replacement target includes that adjective is replaced near synonym or anti- Adopted word;Alternatively, replacement target includes that conversation content is replaced with the meaning between the lines in other specific embodiments of the invention, Or replace with another saying;Alternatively, replacement target includes that will express happiness in other specific embodiment of the invention The vocabulary of mood replaces with the vocabulary of expression sad mood.But the present invention is not limited with above-mentioned listed replacement target, When it is implemented, those skilled in the art can also be according to replacement demand using other targets as replacement target.For example, if Replacement target is that adjective is replaced near synonym, then replacing algorithm is the algorithm for calculating adjectival near synonym.According to replacement Algorithm, available multiple replacement text elements corresponding with one or more particular text elements, then from multiple replacement texts At least one the replacement text of the replacement text element of preset quantity as at least one particular text element is selected in this element Element.It optionally, can be according to multiple text elements and replacement target correlations of replacing by the strong replacement to weak selection preset quantity Text element.
Mode two chooses at least one replacement text element from replacement text element library.Wherein, text element library is replaced It is middle to collect the replacement text element for thering is user to pre-enter.Specifically, in replacement text element library, for different replacement mesh Mark, is stored with different multiple replacement text elements corresponding from least one particular text element.According to replacement target, from replacing At least one replacement text element of preset quantity is chosen in this element database of the exchange of notes, the present invention replaces text at least one is chosen The method of element is not specifically limited, and those skilled in the art flexibly choose in combination with practical.Optionally, of the invention some In specific embodiment, chosen by strong to weak according to multiple replacement text elements with the strength of correlation for replacing target;Alternatively, In other specific embodiments of the invention, according to the context of multiple replacement text elements and at least one particular text element Laminating degree chosen from high to low;Alternatively, in some other specific embodiments of the invention, it can be in conjunction with above-mentioned two Kind selection mode is chosen.
For example, in replacement text element library, for adjective " sad ", corresponding near synonym are stored with: It is sad, deep sorrow, melancholy, sad, sad, disconsolate, distressed, pain, pain, feel bad with it is hard to bear;And it is stored with corresponding Antonym: it is happy, glad, happy, moist, happy, happy, warm, happy, happy, gratified and happy, when replacement target is to incite somebody to action When " sad " replaces with corresponding near synonym, then most from the context of selection in multiple near synonym and the content of text where " sad " Fitting three near synonym pains, melancholy and feel bad as be shown to user at least one replacement text element.
Mode three obtains at least one preconfigured replacement text element of operation personnel.Specifically, operation personnel according to The difference of target is replaced, is provided at least one replacement text element in advance at least one particular text element.And it is showing At least one replacement text element before, then according to replacement target difference, obtain operation personnel it is preconfigured at least one Replace text element.The human input of which is larger, generally in the specific implementation, makes in combination with aforesaid way one and mode two With.
In obtaining in three kinds of modes of at least one replacement text element for foregoing description, according to replacement target, benefit With replacement target can preferable control replacement direction;And in some other embodiments of the invention, in order to increase replacement Freedom degree, replacement target can be not provided with, correspondingly, corresponding above-mentioned three kinds of modes, then without obtaining according to replacement target At least one replacement text element.
After obtaining at least one replacement text element of each particular text element, in some specific realities of the invention It applies in example, can directly show at least one replacement text element of each particular text element in corresponding position.And at this In other specific embodiments of invention, in order to avoid the replacement text element that many places are shown blocks the textual content of e-book, Alternatively, in order to avoid many places show that replacement text element influences e-book typesetting, it can also be specific for one of them in user Text element executes the operation of triggering display and then at least one replacement of the corresponding one or more particular text elements of display Text element.For example, identify when the user clicks first particular text element when, show first particular text element At least one replacement text element, and at least one replacement text element of other particular text element is not shown then.
Specifically, for each particular text element, the display mode of at least one replacement text element includes: specific Arranged adjacent shows at least one replacement text element on the position of text element.For example, e-book textual content is " this It is the cap of top red ", wherein " red " is particular text element, four replacement text elements of the particular text element are " green ", " purple ", " blue " and " yellow ", then when it is implemented, can be shown as " this be a top green/purple/blue/ The cap of yellow ".
Alternatively, user reads for convenience, it can be by least one replacement text element arrangement display in particular text member The adjacent position of element, it may be assumed that while showing at least one replacement text element and particular text element;And it will with specific markers Particular text element and at least one replacement text element distinguish, for example, at least one replacement text element is shown In bracket, then the example above can be shown as " this cap for being a top red (green/purple/blue/yellow) ".
Alternatively, rolling window is arranged in the position of particular text element, shown at least in rolling window with rolling mode One replacement text element.Optionally, in some embodiments of the invention, which can be simultaneously Show multiple replacement text elements;Alternatively, the rolling window any time only shows in other specific embodiments of the invention Show a replacement text element.It is still " this is the cap of top red " citing with e-book textual content, then it is " red in adjective Rolling window is arranged in the corresponding position of color ", and shows " green ", " purple ", " blue " and " yellow " in turn in rolling window. In the specific implementation, can be manually adjusted by user to show replacement text element, optionally, user manually perform upwards or to Under tumbling operation, alternatively, manually perform leftward or rightward moving operation, at least one replacement text element of switching display, For example, being switched to " purple " from " green " currently shown;Alternatively, under rolling mode, according to preset interval it is automatic upwards or Rolling downwards successively shows at least one replacement text element, for example, certainly every 2 seconds alternatively, being moved to the left or right automatically Rolling shows next replacement text element under trend.
Further, it is contemplated that different, each particular text elements of the character length of at least one replacement text element The different, and/or type-setting mode in view of e-book of character length is different, and in different implementation, the ruler of rolling window is arranged Very little mode is also different: in some embodiments of the invention, for the uniform format for making rolling window, in particular text The rolling window of the position setting default size of element, for example, the rolling window of 3 character lengths of setting, at least one replacement Text element is end to end to be moved horizontally from right to left.And in other specific embodiments of the invention, in order to not influence electricity The typesetting of the philosophical works, in particular for format text, according to the character length of particular text element in the position of particular text element The rolling window of corresponding size is set, correspondingly, the replacement text element that number of characters is more than particular text element is then weeded out, with Allow to be shown in replacement text element and completely shows that the mode of the size of this set rolling window can in rolling window To correspond to the particular text element of kinds of characters length, the size of rolling window is flexibly determined.Of the invention other specific In embodiment, in order to show that at least one replacement text element of all determinations can completely, according at least one replacement Rolling window of the character length of text element in the position of particular text element setting corresponding size, a kind of optional mode The maximum character length of at least one replacement text element to be counted, for example, colored, colorful, three replacement texts of multi-color system In this element, maximum character length 4, when rolling window size is arranged, rolling window height is according to e-book original text font Height parameter setting, can be identical as the height of original text font, the height of original text font can also be slightly larger than, and rolling window is long Degree is then arranged according to 4 set widths, wherein it is accounted for font spacing, correspondingly, in display, for being less than 4 words The vocabulary of symbol, can placed in the middle, left-justify, Right Aligns or both ends alignment display.For the setting side of the above-mentioned rolling window referred to Formula, in the specific implementation, those skilled in the art can carry out flexible choice according to the type-setting mode of display demand and text, The present invention is not specifically limited in this embodiment.
Also, while showing at least one replacement text element, choosing is provided at least one replacement text element Input item is selected, user can choose corresponding replacement text element by executing selection operation to the selection input item.
By this step, can be shown in the corresponding position of each particular text element corresponding with the particular text element At least one replacement text element, user can by selection input item from least one replacement text element in selection one replace Change text element.
Step S203: user is received to the selection operation of the selection input item of any replacement text element, obtains user institute The replacement text element corresponding with one or more particular text elements of selection.
User selects any replacement text element from least one replacement text element of display by executing selection operation Element, wherein selection operation includes clicking operation, chooses operation, long press operation etc., and the present invention is not specifically limited in this embodiment.Specifically Ground, the corresponding arranged adjacent on the position of particular text element show the display mode of at least one replacement text element, and, The corresponding display mode by least one replacement text element arrangement display in the adjacent position of particular text element, user click Any replacement text element then chooses the replacement text element;Scrolling windows are arranged in the corresponding position in particular text element Mouthful, the display mode of at least one replacement text element is shown with rolling mode in rolling window, then when being shown to certain automatically When one replacement text element, by selecting input item to choose the replacement text element, alternatively, display is a certain to be replaced when being manually adjusted to When changing text element, by selecting input item to choose the replacement text element, alternatively, multiple replace is shown in rolling window simultaneously Text element is changed, then passes through the one of replacement text element of selection input item selection.When receiving user to any replacement To get selected with one or more particular text element phases to user when the selection operation of the selection input item of text element Corresponding replacement text element.
It needs described herein to be that the above-mentioned steps S202 and step S203 of the present embodiment are directed to client and show The case where at least one replacement text element corresponding with particular text element, user only need to be from least one replacements of display A replacement text element is selected in text element.And in other embodiments of the invention, client can not also Show it is corresponding with particular text element at least one replacement text element, in this case, need user voluntarily key in and The corresponding replacement text element of each particular text element;Then the replacement text element that user voluntarily keys in is received, this is replaced It changes text element and is determined as replacement text element corresponding with one or more replacement text element.
Fig. 4 shows display replacement text element and does not show the schematic diagram of replacement two kinds of situations of text element.Such as Fig. 4 institute Show, corresponding adjective " sad " is the case where text element is replaced in display, and user clicks dropdown arrow, then multiple replacement texts Element " pain ", " melancholy ", " feeling bad " are simultaneously displayed in rolling window, the region where user touches or clicks " melancholy " When, the replacement text element is selected, obtains the replacement text element " melancholy " corresponding with " sad " of user's selection;It describes Corresponding word " sadness " is the case where not showing replacement text element, to be provided with input frame, user in the region where " sadness " It can be by deleting in this region particular text element " sadness ", and corresponding replacement text element is inputted, for example, input " pain The heart " then obtains the replacement text element " distressed " corresponding with " sadness " of user's input.But the present invention is not with Fig. 4 institute The display position of the input frame shown is limited, and, the defeated of replacement text element is voluntarily keyed in not with user described in example Enter mode to be limited, in the specific implementation, those skilled in the art can carry out flexible setting according to actual needs.
Step S204: according to replacement text element, one or more particular text elements are replaced processing, obtain through Replacement treated e-book.
Specifically, one or more particular text elements are replaced with into corresponding replacement text element;Alternatively, by each The corresponding replacement text element of particular text element is added to the adjacent position of particular text element, and marks in the specific format Particular text element or replacement text element out, for example, distinguishing particular text element and replacement text with formats such as bracket, underscores This element.In the specific implementation, the mode that those skilled in the art can select replacement to handle according to actual needs, optionally, The mode of replacement processing can be selected according to the purposes of obtained e-book, further, if obtained e-book is for user Personal use then can choose and one or more particular text elements directly replaced with corresponding replacement text element, it may be assumed that Replacement text element is only shown, without showing particular text element;If obtained e-book is for for platform or other users Determine that the corresponding replacement text element of each particular text element is added to by a kind of preferred replacement as a result, then can choose The adjacent position of particular text element, and particular text element or replacement text element are marked out in the specific format, it may be assumed that it shows simultaneously Show replacement text element and particular text element, for platform or other users to replacement text element and particular text element into Row compares.
Fig. 5 shows mark particular text element in the specific format and replaces the schematic diagram of text element.As shown in figure 5, After receiving " pained " that user voluntarily keys in, by particular text element " sadness " and text element " pained " is replaced simultaneously Display in e-books, with underscore and bold-faced format display replacement text element " pained ", is shown specific in bracket Text element " sadness ", and then distinguished particular text element and replacement text element.
Furthermore, it is contemplated that the typesetting of e-book adjusts the problem of difficulty or ease, the corresponding e-book with different typesetting technique typesettings, The process of replacement processing is slightly different: for the e-book using the typesetting of streaming typesetting technique, if the number of words of replacement text element More than the number of words of particular text element, then directly new eBook content can be arranged according to existing streaming typesetting technique Version rendering, the problem of not will cause Chong Die with the word later entanglement of extra number of words, therefore, to use streaming typesetting technique When particular text element in the e-book of typesetting is replaced processing, limited without the number of words to replacement text element, It is handled without the font size to replacement text element.And for the e-book using the typesetting of format typesetting technique, it may be assumed that The problem of e-book is format book, causes posterior text overlays entanglement in order to avoid extra number of words, first, general use will One or more particular text elements replace with the replacement processing mode of corresponding replacement text element;Second, if replacement text The number of words of this element and the number of words of particular text element are inconsistent, then adjust the font size of replacement text element, so that adjustment The display size of the display size and particular text element of replacement text element afterwards matches, specifically, if replacement text element The number of words of element is more than the number of words of particular text element, then reduces the font size of replacement text element;If replacing text element Number of words is less than the number of words of particular text element, then increases the font size of replacement text element.Alternatively, can also user voluntarily During keying in replacement text or determining at least one replacement text element, strict control replaces the number of words of text element, makes It is consistent with the number of words of particular text element.
Step S205: judge whether user enjoys and check the permission through replacing treated e-book;If it is not, then will be through replacing Changing treated, e-book carries out recovery processing.
After obtaining being replaced treated e-book, which can be used for several scenes, the main needle of the present invention Two kinds of scenes are illustrated, the scene that the corresponding the present embodiment of Fig. 2 is used mainly for user oneself, and under Fig. 6 is corresponding One embodiment is but of the invention then mainly for for determining a kind of scene of preferred replacement result for platform or other users It is not limited with two kinds of application scenarios.
In the present embodiment, after obtaining being replaced treated e-book, e-book can be shared with good friend by user Or share to social platform, to show that oneself participates in the achievement of replacement to good friend or social platform user, alternatively, by e-book It is covered up, these are that user oneself can also be by user oneself in these scenes using the concrete scene of the e-book Signature logo watermark be added to through in replacement treated e-book.Wherein, as an optional step of the present embodiment, E-book is being shared in the scene in good friend or social platform, is establishing the sharing through replacing treated e-book for user Channel, so that user is shared away e-book by the sharing channel.
In this step, after obtaining being replaced treated e-book, record obtains the first time of the e-book, according to This judge whether user enjoys and checks through replacement treated e-book with the time difference of the second current time at the first time Permission.Optionally, the preset time for checking the permission of e-book after processing can gratuitously be enjoyed by presetting user, if the When the time difference of one time and the second current time reach the preset time, then judges whether user enjoys and continue to check through replacing The permission for e-book of changing that treated is sentenced if user extends above-mentioned preset time by modes such as payment or accumulated point exchangings Disconnected user, which enjoys, continues to check the permission through replacing treated e-book, and using the time after extension as update it is default when Between, so that next time carries out permission judgement;If user does not take any measures to extend preset time, determine that user no longer enjoys Continue to check the permission through e-book of replacing that treated, at this point, then will through replacement, treated that e-book carries out recovery processing, Obtain e-book textual content.
Fig. 6 shows the process of the replacement method of the e-book particular text element of another embodiment according to the present invention Figure.The embodiment is mainly for for determining a kind of scene of preferred replacement result for platform or other users.Such as Fig. 6 institute Show, the principle and process of the step S601 to step S604 in this method, the step S201 in embodiment corresponding with Fig. 2 to step Rapid S204 is identical, specifically describes the step S201 that can be found in the corresponding embodiment of Fig. 2 to step S204, details are not described herein.
And including step S605: establishing the ballot canal of all replacement text elements through replacing treated e-book Road;Count the voting results of all replacement text elements;According to voting results, to the replacement text through e-book of replacing that treated This element is adjusted.
In the present embodiment, after obtaining being replaced treated e-book, which is shared with good friend or sharing It is disclosed in e-book platform or the whole network, is read for other people and in e-book to social platform, or by the e-book Replacement text element or particular text element are voted.
Specifically, the ballot channel of all replacement text elements through replacing treated e-book is established;Statistics is all Replace the voting results of text element;According to voting results, the replacement text element through e-book of replacing that treated is carried out Adjustment.Optionally, each replacement text element in corresponding e-book provides and steps on, praises option, and other users are being read through replacing During e-book that treated, is stepped on by long-pressing replacement text element pop-up, praises option, from the background according to other users to every The selection situation of a replacement text element stepped on, praised counts the voting results of each replacement text element;According to voting results, Determine whether to adopt corresponding replacement text element, and the replacement text element through e-book of replacing that treated is adjusted It is whole.Specifically, if voting results meet preset condition, for example, the corresponding quantity praised is more than the quantity stepped in voting results, or Person, the quantity praised in voting results are greater than preset quantity, alternatively, replacing the quantity of text element praised in voting results more than spy The quantity praised for determining text element then adopts the replacement text element, otherwise, does not adopt replacement text element, and will replacement text This element reduction is particular text element.
Above explained is only that other users are replaced the particular text element in treated e-book to one and replaced The scene that text element is voted is changed, and in other specific embodiments of the invention, it can be also used for other users pair Multiple scenes voted through replacing the replacement text element in treated e-book, to select and each particular text The corresponding optimal replacement text element of element.Correspondingly, the voting results of all replacement text elements of statistics;It is tied according to ballot Fruit is adjusted the replacement text element through replacing treated e-book specifically: statistics is multiple, and through replacement, treated The voting results of the corresponding multiple replacement text elements of identical particular text element in e-book;By multiple after replacement is handled E-book in the most replacement text element of number of votes obtained be determined as corresponding to the optimal replacement text element of particular text element.
In addition, in some other embodiments of the invention, it can also be corresponding with Fig. 6 by the corresponding embodiment of above-mentioned Fig. 2 Embodiment be combined, and then can will obtain that treated that e-book is applied in other scenes through replacement, for example, answer A kind of scene for being used simultaneously for user oneself and for determining preferred replacement result.
According to the replacement method for the e-book particular text element that corresponding two embodiments of above-mentioned Fig. 2 and Fig. 6 provide, needle To the specified range of text of e-book, the one or more particular text elements for meeting replacement condition are identified;Each specific The corresponding position of text element shows at least one replacement text element corresponding with the particular text element, and provides at least One replacement text element selection input item, for user directly from display at least one replacement text element in selection with The corresponding replacement text element of particular text element;User is received to grasp the selection of the selection input item of any replacement text element Make, obtains the selected replacement text element corresponding with one or more particular text elements of user;According to replacement text One or more particular text elements are replaced processing by element, obtain being replaced treated e-book;It is obtaining through replacing After e-book of changing that treated, judges whether user enjoys and check the permission through e-book of replacing that treated;If it is not, then will be through Treated that e-book carries out recovery processing for replacement;Alternatively, being established at through replacement after obtaining being replaced treated e-book The ballot channel of all replacement text elements of e-book after reason;Count the voting results of all replacement text elements;According to Voting results are adjusted the replacement text element through replacing treated e-book.Utilize this embodiment scheme, Yong Huke To input replacement corresponding with one or more particular text elements to the understanding of eBook content and idea according to oneself Text element handles to obtain individual electronic book by replacement;Also, the e-book can be applied to several scenes, not only may be used To increase the enjoyment and participation in user's reading process, and then the reading experience of user is promoted, and enrich e-book The function of service platform.
Fig. 7 shows the process of the replacement method of the e-book particular text element of further embodiment according to the present invention Figure.The present embodiment mainly for particular text element be punctuation mark the case where.As shown in fig. 7, method includes the following steps:
Step S701: being analyzed by punctuation mark, identifies one or more punctuation marks.
Specifically, by punctuation mark identification technology, all punctuation marks in specified range of text are identified.
Step S702: the one or more punctuation marks identified are deleted.
Step S703: the defeated of replacement punctuation mark is being provided in the specified range of text of e-book between arbitrary neighborhood text Enter item;Receive the replacement punctuation mark that user utilizes input item to be inputted.
The present embodiment and previously described embodiments of the present invention the difference is that, the replacement punctuation mark of user's input is simultaneously different Surely be it is one-to-one with one or more punctuation marks of deletion, user can be defeated in any input item according to the understanding of oneself Enter to replace punctuation mark.
Step S704: according to replacement punctuation mark, one or more punctuation marks is replaced processing, are obtained through replacing E-book that treated.
After receiving replacement punctuation mark, replacement punctuation mark is added between the text of corresponding position, alternatively, The one or more punctuation marks identified are replaced to replace punctuation mark, alternatively, replacement punctuation mark is added to corresponding The adjacent position of one or more punctuation marks, and then complete replacement processing obtains being replaced treated e-book.
Identical as previously described embodiments of the present invention, through replacement, treated that e-book can also answer obtained in the present embodiment Scene for referring in previous embodiment, details are not described herein.
Further, it as the improvement to above-mentioned each scheme, can also be carried out by one or more particular text elements After replacement processing, the setting link entrance on the character position of replacement text element, link entrance is for linking replacement text The particular text element that element is replaced.When receiving the trigger action of link entrance, replacement text element is revised as pair The particular text element answered.
Such as the replacement text element in original text is highlighted, and establish the chain of a corresponding replacement text element Access port, the entrance can clicking operations.(the replacement text being highlighted as is clicked on user experience when the entrance when the user clicks This element), recovery operation is carried out to replacement text element, the particular text element before display replacement.
In one implementation, the link entrance, user can be all set on the position of all replacement text elements Any one or more link entrances can be clicked, recovery operation is carried out to any one or more replacement text elements.Wherein, The link entrance of each replacement text element is linked on its corresponding particular text element.For identical multiple replacement texts This element, user click the link entrance of one of replacement text element, can be only to the replacement text on the character position Element carries out recovery operation, and still does reservation process in other positions, identical replacement text element;Or when user hits It, can also be by all replacement texts identical with the replacement text element in full text when the link entrance of one of replacement text element This element uniformly reverts to corresponding particular text element.
In application scenes, different particular text elements may be revised as identical replacement text element by user Element, such case are more common usually in the modification to specific part of speech (such as modification adjective).In this scene, when right When replacement text element is restored, need according to " particular text element --- replacement text element --- text pre-established The mapping relations of this element character position " search each corresponding particular text element of replacement text element, wherein text This element character position is used to distinguish the different location that identical replacement text element occurs in e-books, closes according to this mapping Replacement text element is reverted to corresponding particular text element by system.
This programme provides the manipulating approach of quickly reduction text element replacement for user, by specifically replacement text Setting link entrance, is able to use family in the process of reading at any time to unsatisfied replacement text element on the character position of element Restored, without interrupting reading behavior into being operated in specific set interface.In addition, chain is arranged on character position Access port can refine the operation granularity of recovery operation with the quantity of element and position aspect, and user both can be to replacement text element Element carries out unified recovery operation, can also be carried out on specific location to single or partial replacement text element according to reading requirement It is independent to restore.
Further, as an improvement of the above scheme, it can also identify that the one or more for meeting replacement condition is special After determining text element, the setting random selection entrance on the character position of particular text element.Primary random choosing is received every After the trigger action for selecting entrance, from the corresponding replacement text element of particular text element, a replacement text element is randomly choosed Element is shown on the character position of particular text element.
Illustratively, setting randomly chooses entrance, Yong Hudian on the character position of particular text element before replacement operation Particular text element is hit, random replacement is that some replacement text element can further click on if user is discontented to replacement result The replacement text element (character position that its character position is still particular text element), random replacement shows a replacement again Text element.
By chance mechanism, on the one hand this programme can provide the replacement operation experience of " it is worried to exempt selection " for user, On the other hand it can also be improved by the flexibility and diversity for the uncertain rich text content combination that text element is replaced Reading entertaining.
It according to the replacement method of e-book particular text element provided in this embodiment, is analyzed, is identified by punctuation mark One or more punctuation marks out;Delete the one or more punctuation marks identified;In the specified range of text of e-book The input item of replacement punctuation mark is provided between interior arbitrary neighborhood text;Receive the replacement punctuate that user utilizes input item to be inputted Symbol;According to replacement punctuation mark, one or more punctuation marks are replaced processing, obtain being replaced treated electronics Book.It can be seen that user can make pauses in reading unpunctuated ancient writings to e-book textual content according to the understanding of oneself using this embodiment scheme, Or to punctuate incorrect in original text carry out error correction, and then for user provide it is a kind of participate in punctuate or modification make pauses in reading unpunctuated ancient writings can Can, increase the enjoyment and participation in user's reading process, and then promote the reading experience of user.
The embodiment of the present application provides a kind of nonvolatile computer storage media, and the computer storage medium is stored with The e-book particular text in above-mentioned any means embodiment can be performed in an at least executable instruction, the computer executable instructions The replacement method of element.
Executable instruction specifically can be used for so that processor executes following operation:
For the specified range of text of e-book, the one or more particular text elements for meeting replacement condition are identified;
Obtain the replacement text element corresponding with one or more particular text elements that user is inputted;
According to the replacement text element, one or more of particular text elements are replaced processing, obtain through Replacement treated e-book.
In a kind of optional embodiment, the particular text element includes the one or more of following context element: Specific word, particular statement and punctuation mark.
In a kind of optional embodiment, the executable instruction further makes the processor execute following operation:
It is analyzed by part of speech, identifies the one or more specific words for belonging to specific part of speech.
In a kind of optional embodiment, the executable instruction further makes the processor execute following operation:
It is analyzed by specific punctuation mark, identifies the one or more particular statements for belonging to conversation content.
In a kind of optional embodiment, the executable instruction further makes the processor execute following operation:
It is analyzed by punctuation mark, identifies one or more punctuation marks.
In a kind of optional embodiment, the executable instruction also makes the processor execute following operation:
At least one replacement corresponding with the particular text element is shown in the corresponding position of each particular text element Text element, and the selection input item of at least one replacement text element is provided.
In a kind of optional embodiment, the executable instruction further makes the processor execute following operation:
User is received to the selection operation of the selection input item of any replacement text element, it is selected and one to obtain user The corresponding replacement text element of a or multiple particular text elements.
In a kind of optional embodiment, the executable instruction also makes the processor execute following operation:
Delete the one or more punctuation marks identified;
The input item of replacement punctuation mark is being provided between arbitrary neighborhood text in the specified range of text of the e-book.
In a kind of optional embodiment, the executable instruction further makes the processor execute following operation:
Receive the replacement punctuation mark that user utilizes the input item to be inputted.
In a kind of optional embodiment, the executable instruction also makes the processor execute following operation:
At least one described replacement text element is calculated according to replacement algorithm;
At least one described replacement text element is chosen from replacement text element library, is received in the replacement text element library Collect the replacement text element for thering is user to pre-enter;
Obtain at least one preconfigured described replacement text element of operation personnel.
In a kind of optional embodiment, the executable instruction further makes the processor execute following operation:
By at least one replacement text element arrangement display in the adjacent position of particular text element;
Alternatively, rolling window is arranged in the position of particular text element, shown in the rolling window with rolling mode At least one replacement text element.
In a kind of optional embodiment, the executable instruction further makes the processor execute following operation:
In the rolling window of the position of particular text element setting default size;
Alternatively, being existed according to the character length of the character length of at least one replacement text element and/or particular text element The rolling window of the position setting corresponding size of particular text element.
In a kind of optional embodiment, the executable instruction further makes the processor execute following operation:
One or more particular text elements are replaced with into the corresponding replacement text element;
Alternatively, the corresponding replacement text element of each particular text element to be added to the phase of particular text element Ortho position is set, and marks out the particular text element or the replacement text element in the specific format.
In a kind of optional embodiment, the e-book is specially format book;
The executable instruction also makes the processor execute following operation:
If the number of words of the replacement text element and the number of words of the particular text element are inconsistent, the replacement is adjusted The font size of text element, so that the display size and the particular text element of the replacement text element adjusted Display size matches.
In a kind of optional embodiment, the executable instruction also makes the processor execute following operation:
The sharing channel through replacing treated e-book is established for user.
In a kind of optional embodiment, the executable instruction also makes the processor execute following operation:
Judge whether user enjoys and checks the permission through replacing treated e-book;
If it is not, then will treated that e-book carries out recovery processing through replacement.
In a kind of optional embodiment, the executable instruction also makes the processor execute following operation:
Establish the ballot channel through replacing all replacement text elements of treated e-book;
Count the voting results of all replacement text elements;
According to voting results, the replacement text element through e-book of replacing that treated is adjusted.
In a kind of optional embodiment, the executable instruction also makes the processor execute following operation:
The setting link entrance on the character position of the replacement text element, the link entrance is for linking described replace Change the particular text element that text element is replaced;
The replacement text element is revised as corresponding particular text member by the trigger action for receiving the link entrance Element.
In a kind of optional embodiment, the executable instruction also makes the processor execute following operation:
The setting random selection entrance on the character position of the particular text element;
After every trigger action for receiving the primary random selection entrance, from the corresponding replacement of the particular text element In text element, randomly chooses a replacement text element and be shown on the character position of the particular text element.
Fig. 8 shows a kind of structural schematic diagram for calculating equipment according to an embodiment of the present invention, the specific embodiment of the invention The specific implementation for calculating equipment is not limited.
As shown in figure 8, the calculating equipment may include: processor (processor) 802, communication interface (Communications Interface) 804, memory (memory) 806 and communication bus 808.
Wherein:
Processor 802, communication interface 804 and memory 806 complete mutual communication by communication bus 808.
Communication interface 804, for being communicated with the network element of other equipment such as client or other servers etc..
Processor 802 can specifically execute the replacement side of above-mentioned e-book particular text element for executing program 810 Correlation step in method embodiment.
Specifically, program 810 may include program code, which includes computer operation instruction.
Processor 802 may be central processor CPU or specific integrated circuit ASIC (Application Specific Integrated Circuit), or be arranged to implement the integrated electricity of one or more of the embodiment of the present invention Road.The one or more processors that equipment includes are calculated, can be same type of processor, such as one or more CPU;It can also To be different types of processor, such as one or more CPU and one or more ASIC.
Memory 806, for storing program 810.Memory 806 may include high speed RAM memory, it is also possible to further include Nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.
Program 810 specifically can be used for so that processor 802 executes following operation:
For the specified range of text of e-book, the one or more particular text elements for meeting replacement condition are identified;
Obtain the replacement text element corresponding with one or more particular text elements that user is inputted;
According to the replacement text element, one or more of particular text elements are replaced processing, obtain through Replacement treated e-book.
In a kind of optional embodiment, wherein the particular text element include following context element one kind or It is a variety of: specific word, particular statement and punctuation mark.
In a kind of optional embodiment, program 810 can specifically be further used for so that processor 802 execute it is following Operation:
It is analyzed by part of speech, identifies the one or more specific words for belonging to specific part of speech.
In a kind of optional embodiment, program 810 can specifically be further used for so that processor 802 execute it is following Operation:
It is analyzed by specific punctuation mark, identifies the one or more particular statements for belonging to conversation content.
In a kind of optional embodiment, program 810 can specifically be further used for so that processor 802 execute it is following Operation:
It is analyzed by punctuation mark, identifies one or more punctuation marks.
In a kind of optional embodiment, program 810 can specifically be further used for so that processor 802 execute it is following Operation:
At least one replacement corresponding with the particular text element is shown in the corresponding position of each particular text element Text element, and the selection input item of at least one replacement text element is provided.
In a kind of optional embodiment, program 810 can specifically be further used for so that processor 802 execute it is following Operation:
User is received to the selection operation of the selection input item of any replacement text element, it is selected and one to obtain user The corresponding replacement text element of a or multiple particular text elements.
In a kind of optional embodiment, program 810 can specifically be further used for so that processor 802 execute it is following Operation:
Delete the one or more punctuation marks identified;
The input item of replacement punctuation mark is being provided between arbitrary neighborhood text in the specified range of text of the e-book.
In a kind of optional embodiment, program 810 can specifically be further used for so that processor 802 execute it is following Operation:
Receive the replacement punctuation mark that user utilizes the input item to be inputted.
In a kind of optional embodiment, program 810 can specifically be further used for so that processor 802 execute it is following Operation:
At least one described replacement text element is calculated according to replacement algorithm;
At least one described replacement text element is chosen from replacement text element library, is received in the replacement text element library Collect the replacement text element for thering is user to pre-enter;
Obtain at least one preconfigured described replacement text element of operation personnel.
In a kind of optional embodiment, program 810 can specifically be further used for so that processor 802 execute it is following Operation:
By at least one replacement text element arrangement display in the adjacent position of particular text element;
Alternatively, rolling window is arranged in the position of particular text element, shown in the rolling window with rolling mode At least one replacement text element.
In a kind of optional embodiment, program 810 can specifically be further used for so that processor 802 execute it is following Operation:
In the rolling window of the position of particular text element setting default size;
Alternatively, being existed according to the character length of the character length of at least one replacement text element and/or particular text element The rolling window of the position setting corresponding size of particular text element.
In a kind of optional embodiment, program 810 can specifically be further used for so that processor 802 execute it is following Operation:
One or more particular text elements are replaced with into the corresponding replacement text element;
Alternatively, the corresponding replacement text element of each particular text element to be added to the phase of particular text element Ortho position is set, and marks out the particular text element or the replacement text element in the specific format.
In a kind of optional embodiment, wherein the e-book is specially format book;
Program 810 can specifically be further used for so that processor 802 executes following operation: if the replacement text element Number of words and the particular text element number of words it is inconsistent, then the font size of the replacement text element is adjusted, so as to adjust The display size of the display size and the particular text element of the replacement text element after whole matches.
In a kind of optional embodiment, program 810 can specifically be further used for so that processor 802 execute it is following Operation:
The sharing channel through replacing treated e-book is established for user.
In a kind of optional embodiment, program 810 can specifically be further used for so that processor 802 execute it is following Operation:
Judge whether user enjoys and checks the permission through replacing treated e-book;
If it is not, then will treated that e-book carries out recovery processing through replacement.
In a kind of optional embodiment, program 810 can specifically be further used for so that processor 802 execute it is following Operation:
Establish the ballot channel through replacing all replacement text elements of treated e-book;
Count the voting results of all replacement text elements;
According to voting results, the replacement text element through e-book of replacing that treated is adjusted.
In a kind of optional embodiment, program 810 can specifically be further used for so that processor 802 execute it is following Operation:
The setting link entrance on the character position of the replacement text element, the link entrance is for linking described replace Change the particular text element that text element is replaced;
The replacement text element is revised as corresponding particular text member by the trigger action for receiving the link entrance Element.
In a kind of optional embodiment, program 810 can specifically be further used for so that processor 802 execute it is following Operation:
The setting random selection entrance on the character position of the particular text element;
After every trigger action for receiving the primary random selection entrance, from the corresponding replacement of the particular text element In text element, randomly chooses a replacement text element and be shown on the character position of the particular text element.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein. Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed Meaning one of can in any combination mode come using.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.The use of word first, second, and third does not indicate any sequence.These words can be construed to title.

Claims (54)

1. a kind of replacement method of e-book particular text element, comprising:
For the specified range of text of e-book, the one or more particular text elements for meeting replacement condition are identified;Wherein, The particular text element includes at least particular statement, is analyzed by specific punctuation mark, identifies and belong to the one of conversation content A or multiple particular statements;
Obtain the replacement text element corresponding with one or more particular text elements that user is inputted;Wherein, the spy Determine text element be particular statement when, replacement text element be adapt conversation content;
According to the replacement text element, one or more of particular text elements are replaced processing, are obtained through replacing E-book that treated.
2. according to the method described in claim 1, wherein, the particular text element includes one kind or more of following context element Kind: specific word and punctuation mark.
3. described to identify the one or more particular texts for meeting replacement condition according to the method described in claim 2, wherein Element further comprises:
It is analyzed by part of speech, identifies the one or more specific words for belonging to specific part of speech.
4. described to identify the one or more particular texts for meeting replacement condition according to the method described in claim 2, wherein Element further comprises:
It is analyzed by punctuation mark, identifies one or more punctuation marks.
5. according to the method described in claim 1, wherein, meet the specific texts of one or more of replacement condition in described identify After this element, the method also includes:
At least one replacement text corresponding with the particular text element is shown in the corresponding position of each particular text element Element, and the selection input item of at least one replacement text element is provided.
6. according to the method described in claim 5, wherein, the acquisition user is inputted first with one or more particular texts The corresponding replacement text element of element specifically:
Receive user to it is any replacement text element selection input item selection operation, obtain user it is selected and one or The corresponding replacement text element of multiple particular text elements.
7. according to the method described in claim 4, wherein, meet the specific texts of one or more of replacement condition in described identify After this element, the method also includes:
Delete the one or more punctuation marks identified;
The input item of replacement punctuation mark is being provided between arbitrary neighborhood text in the specified range of text of the e-book.
8. according to the method described in claim 7, wherein, the acquisition user is inputted first with one or more particular texts The corresponding replacement text element of element specifically: receive the replacement punctuation mark that user utilizes the input item to be inputted.
9. according to the method described in claim 5, wherein, at least one described replacement text element passes through one or more of Mode obtains:
At least one described replacement text element is calculated according to replacement algorithm;
At least one described replacement text element is chosen from replacement text element library, collecting in the replacement text element library has The replacement text element that user pre-enters;
Obtain at least one preconfigured described replacement text element of operation personnel.
10. according to the method described in claim 5, wherein, the corresponding position in each particular text element shows and is somebody's turn to do At least one corresponding replacement text element of particular text element further comprises:
By at least one replacement text element arrangement display in the adjacent position of particular text element;
Alternatively, rolling window is arranged in the position of particular text element, shown at least in the rolling window with rolling mode One replacement text element.
11. according to the method described in claim 10, wherein, rolling window is arranged into one in the position in particular text element Step includes:
In the rolling window of the position of particular text element setting default size;
Alternatively, according to the character length of the character length of at least one replacement text element and/or particular text element specific The rolling window of the position setting corresponding size of text element.
12. -11 described in any item methods according to claim 1, wherein it is described according to the replacement text element, it will be described One or more particular text elements are replaced processing and further comprise:
One or more particular text elements are replaced with into the corresponding replacement text element;
Alternatively, the corresponding replacement text element of each particular text element to be added to the adjacent bit of particular text element It sets, and marks out the particular text element or the replacement text element in the specific format.
13. according to the method for claim 12, wherein the e-book is specially format book;
It is described one or more particular text elements are replaced with into the corresponding replacement text element after, the method Further include:
If the number of words of the replacement text element and the number of words of the particular text element are inconsistent, the replacement text is adjusted The font size of element, so that the display of the display size and the particular text element of the replacement text element adjusted Size matches.
14. -11 described in any item methods according to claim 1, wherein the method also includes: the warp is established for user The sharing channel of replacement treated e-book.
15. -11 described in any item methods according to claim 1, wherein the method also includes:
Judge whether user enjoys and checks the permission through replacing treated e-book;
If it is not, then will treated that e-book carries out recovery processing through replacement.
16. -11 described in any item methods according to claim 1, wherein the method also includes:
Establish the ballot channel through replacing all replacement text elements of treated e-book;
Count the voting results of all replacement text elements;
According to voting results, the replacement text element through e-book of replacing that treated is adjusted.
17. -11 described in any item methods according to claim 1, wherein described by one or more of particular text members Element is replaced after processing, the method also includes:
The setting link entrance on the character position of the replacement text element, the link entrance is for linking the replacement text The particular text element that this element is replaced;
The trigger action for receiving the link entrance, is revised as corresponding particular text element for the replacement text element.
18. -11 described in any item methods according to claim 1, wherein it is described identify meet one of replacement condition or After multiple particular text elements, the method also includes:
The setting random selection entrance on the character position of the particular text element;
After every trigger action for receiving the primary random selection entrance, from the corresponding replacement text of the particular text element In element, randomly chooses a replacement text element and be shown on the character position of the particular text element.
19. a kind of calculating equipment, comprising: processor, memory, communication interface and communication bus, the processor, the storage Device and the communication interface complete mutual communication by the communication bus;
The memory makes the processor execute following behaviour for storing an at least executable instruction, the executable instruction Make:
For the specified range of text of e-book, the one or more particular text elements for meeting replacement condition are identified;Wherein, The particular text element includes at least particular statement, is analyzed by specific punctuation mark, identifies and belong to the one of conversation content A or multiple particular statements;
Obtain the replacement text element corresponding with one or more particular text elements of user;Wherein, the particular text When element is particular statement, replacement text element is the conversation content of reorganization;
According to the replacement text element, one or more of particular text elements are replaced processing, are obtained through replacing E-book that treated.
20. calculating equipment according to claim 19, wherein the particular text element includes the one of following context element Kind is a variety of: specific word and punctuation mark.
21. calculating equipment according to claim 20, it is following that the executable instruction further executes the processor Operation:
It is analyzed by part of speech, identifies the one or more specific words for belonging to specific part of speech.
22. calculating equipment according to claim 20, it is following that the executable instruction further executes the processor Operation:
It is analyzed by punctuation mark, identifies one or more punctuation marks.
23. calculating equipment according to claim 19, the executable instruction also makes the processor execute following operation:
At least one replacement text corresponding with the particular text element is shown in the corresponding position of each particular text element Element, and the selection input item of at least one replacement text element is provided.
24. calculating equipment according to claim 23, it is following that the executable instruction further executes the processor Operation:
Receive user to it is any replacement text element selection input item selection operation, obtain user it is selected and one or The corresponding replacement text element of multiple particular text elements.
25. calculating equipment according to claim 22, the executable instruction also makes the processor execute following operation:
Delete the one or more punctuation marks identified;
The input item of replacement punctuation mark is being provided between arbitrary neighborhood text in the specified range of text of the e-book.
26. calculating equipment according to claim 25, it is following that the executable instruction further executes the processor Operation:
Receive the replacement punctuation mark that user utilizes the input item to be inputted.
27. calculating equipment according to claim 23, the executable instruction also makes the processor execute following operation:
At least one described replacement text element is calculated according to replacement algorithm;
At least one described replacement text element is chosen from replacement text element library, collecting in the replacement text element library has The replacement text element that user pre-enters;
Obtain at least one preconfigured described replacement text element of operation personnel.
28. calculating equipment according to claim 23, it is following that the executable instruction further executes the processor Operation:
By at least one replacement text element arrangement display in the adjacent position of particular text element;
Alternatively, rolling window is arranged in the position of particular text element, shown at least in the rolling window with rolling mode One replacement text element.
29. calculating equipment according to claim 28, it is following that the executable instruction further executes the processor Operation:
In the rolling window of the position of particular text element setting default size;
Alternatively, according to the character length of the character length of at least one replacement text element and/or particular text element specific The rolling window of the position setting corresponding size of text element.
30. the described in any item calculating equipment of 9-29, the executable instruction further make the processor according to claim 1 Execute following operation:
One or more particular text elements are replaced with into the corresponding replacement text element;
Alternatively, the corresponding replacement text element of each particular text element to be added to the adjacent bit of particular text element It sets, and marks out the particular text element or the replacement text element in the specific format.
31. calculating equipment according to claim 30, wherein the e-book is specially format book;
The executable instruction also makes the processor execute following operation:
If the number of words of the replacement text element and the number of words of the particular text element are inconsistent, the replacement text is adjusted The font size of element, so that the display of the display size and the particular text element of the replacement text element adjusted Size matches.
32. the described in any item calculating equipment of 9-29 according to claim 1, the executable instruction also executes the processor It operates below:
The sharing channel through replacing treated e-book is established for user.
33. the described in any item calculating equipment of 9-29 according to claim 1, the executable instruction also executes the processor It operates below:
Judge whether user enjoys and checks the permission through replacing treated e-book;
If it is not, then will treated that e-book carries out recovery processing through replacement.
34. the described in any item calculating equipment of 9-29 according to claim 1, the executable instruction also executes the processor It operates below:
Establish the ballot channel through replacing all replacement text elements of treated e-book;
Count the voting results of all replacement text elements;
According to voting results, the replacement text element through e-book of replacing that treated is adjusted.
35. the described in any item calculating equipment of 9-29 according to claim 1, wherein the executable instruction also makes the processing Device executes following operation:
The setting link entrance on the character position of the replacement text element, the link entrance is for linking the replacement text The particular text element that this element is replaced;
The trigger action for receiving the link entrance, is revised as corresponding particular text element for the replacement text element.
36. the described in any item calculating equipment of 9-29 according to claim 1, wherein the executable instruction also makes the processing Device executes following operation:
The setting random selection entrance on the character position of the particular text element;
After every trigger action for receiving the primary random selection entrance, from the corresponding replacement text of the particular text element In element, randomly chooses a replacement text element and be shown on the character position of the particular text element.
37. a kind of computer storage medium, an at least executable instruction, the executable instruction are stored in the storage medium Processor is set to execute following operation:
For the specified range of text of e-book, the one or more particular text elements for meeting replacement condition are identified;Wherein, The particular text element includes at least particular statement, is analyzed by specific punctuation mark, identifies and belong to the one of conversation content A or multiple particular statements;
Obtain the replacement text element corresponding with one or more particular text elements of user;Wherein, the particular text When element is particular statement, replacement text element is the conversation content of reorganization;
According to the replacement text element, one or more of particular text elements are replaced processing, are obtained through replacing E-book that treated.
38. the computer storage medium according to claim 37, wherein the particular text element includes following context member Plain is one or more: specific word and punctuation mark.
39. the computer storage medium according to claim 38, the executable instruction further holds the processor The following operation of row:
It is analyzed by part of speech, identifies the one or more specific words for belonging to specific part of speech.
40. the computer storage medium according to claim 38, the executable instruction further holds the processor The following operation of row:
It is analyzed by punctuation mark, identifies one or more punctuation marks.
41. the computer storage medium according to claim 37, the executable instruction also execute the processor with Lower operation:
At least one replacement text corresponding with the particular text element is shown in the corresponding position of each particular text element Element, and the selection input item of at least one replacement text element is provided.
42. computer storage medium according to claim 41, the executable instruction further holds the processor The following operation of row:
Receive user to it is any replacement text element selection input item selection operation, obtain user it is selected and one or The corresponding replacement text element of multiple particular text elements.
43. computer storage medium according to claim 40, the executable instruction also execute the processor with Lower operation:
Delete the one or more punctuation marks identified;
The input item of replacement punctuation mark is being provided between arbitrary neighborhood text in the specified range of text of the e-book.
44. computer storage medium according to claim 43, the executable instruction further holds the processor The following operation of row:
Receive the replacement punctuation mark that user utilizes the input item to be inputted.
45. computer storage medium according to claim 41, the executable instruction also execute the processor with Lower operation:
At least one described replacement text element is calculated according to replacement algorithm;
At least one described replacement text element is chosen from replacement text element library, collecting in the replacement text element library has The replacement text element that user pre-enters;
Obtain at least one preconfigured described replacement text element of operation personnel.
46. computer storage medium according to claim 41, the executable instruction further holds the processor The following operation of row:
By at least one replacement text element arrangement display in the adjacent position of particular text element;
Alternatively, rolling window is arranged in the position of particular text element, shown at least in the rolling window with rolling mode One replacement text element.
47. computer storage medium according to claim 46, the executable instruction further holds the processor The following operation of row:
In the rolling window of the position of particular text element setting default size;
Alternatively, according to the character length of the character length of at least one replacement text element and/or particular text element specific The rolling window of the position setting corresponding size of text element.
48. the executable instruction further makes described according to claim 37-47 described in any item computer storage mediums Processor executes following operation:
One or more particular text elements are replaced with into the corresponding replacement text element;
Alternatively, the corresponding replacement text element of each particular text element to be added to the adjacent bit of particular text element It sets, and marks out the particular text element or the replacement text element in the specific format.
49. computer storage medium according to claim 48, wherein the e-book is specially format book;
The executable instruction also makes the processor execute following operation:
If the number of words of the replacement text element and the number of words of the particular text element are inconsistent, the replacement text is adjusted The font size of element, so that the display of the display size and the particular text element of the replacement text element adjusted Size matches.
50. according to the described in any item computer storage mediums of claim 37-47, the executable instruction also makes the processing Device executes following operation:
The sharing channel through replacing treated e-book is established for user.
51. according to the described in any item computer storage mediums of claim 37-47, the executable instruction also makes the processing Device executes following operation:
Judge whether user enjoys and checks the permission through replacing treated e-book;
If it is not, then will treated that e-book carries out recovery processing through replacement.
52. according to the described in any item computer storage mediums of claim 37-47, the executable instruction also makes the processing Device executes following operation:
Establish the ballot channel through replacing all replacement text elements of treated e-book;
Count the voting results of all replacement text elements;
According to voting results, the replacement text element through e-book of replacing that treated is adjusted.
53. according to the described in any item computer storage mediums of claim 37-47, wherein the executable instruction also makes institute It states processor and executes following operation:
The setting link entrance on the character position of the replacement text element, the link entrance is for linking the replacement text The particular text element that this element is replaced;
The trigger action for receiving the link entrance, is revised as corresponding particular text element for the replacement text element.
54. according to the described in any item computer storage mediums of claim 37-47, wherein the executable instruction also makes institute It states processor and executes following operation:
The setting random selection entrance on the character position of the particular text element;
After every trigger action for receiving the primary random selection entrance, from the corresponding replacement text of the particular text element In element, randomly chooses a replacement text element and be shown on the character position of the particular text element.
CN201810322488.8A 2018-04-11 2018-04-11 The replacement method and calculating equipment of e-book particular text element Active CN108519966B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810322488.8A CN108519966B (en) 2018-04-11 2018-04-11 The replacement method and calculating equipment of e-book particular text element

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810322488.8A CN108519966B (en) 2018-04-11 2018-04-11 The replacement method and calculating equipment of e-book particular text element

Publications (2)

Publication Number Publication Date
CN108519966A CN108519966A (en) 2018-09-11
CN108519966B true CN108519966B (en) 2019-03-29

Family

ID=63431055

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810322488.8A Active CN108519966B (en) 2018-04-11 2018-04-11 The replacement method and calculating equipment of e-book particular text element

Country Status (1)

Country Link
CN (1) CN108519966B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110109366A (en) * 2019-04-30 2019-08-09 广东美的制冷设备有限公司 Household appliance and its information display control method, device and mobile terminal
CN110502734A (en) * 2019-07-30 2019-11-26 苏州闻道网络科技股份有限公司 A kind of document creation method and device
CN110728132A (en) * 2019-09-24 2020-01-24 北京奇艺世纪科技有限公司 Text data management method and system
CN111008519B (en) * 2019-12-25 2023-06-30 掌阅科技股份有限公司 Display method of reading page, electronic equipment and computer storage medium
CN111461933A (en) * 2020-04-13 2020-07-28 向英 Text data processing method, software, storage medium and equipment
CN112949254A (en) * 2021-02-25 2021-06-11 郎丽华 System and method for processing reference numbers of patent application files
CN113204579B (en) * 2021-04-29 2024-06-07 北京金山数字娱乐科技有限公司 Content association method, system, device, electronic equipment and storage medium
CN115050349B (en) * 2022-06-14 2024-06-11 抖音视界有限公司 Method, apparatus, device and medium for text-to-audio conversion

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101063971A (en) * 2006-04-26 2007-10-31 英福达科技股份有限公司 Method for manufacturing shareable note and content correcting difference update electronic book
CN101346717A (en) * 2003-07-03 2009-01-14 怀特斯莫克公司 Method and apparatus for language processing
CN101470700A (en) * 2007-12-28 2009-07-01 日电(中国)有限公司 Text template generator, text generation equipment, text checking equipment and method thereof
CN104380261A (en) * 2012-05-16 2015-02-25 苹果公司 Locally backed cloud-based storage
CN105210069A (en) * 2013-03-15 2015-12-30 谷歌公司 Subscription-based mobile reading platform
CN105512260A (en) * 2015-12-03 2016-04-20 北京奇虎科技有限公司 E-book multi-segment excerpt sharing method and device
CN105608064A (en) * 2015-11-24 2016-05-25 小米科技有限责任公司 Character replacement method and apparatus

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE10216117A1 (en) * 2002-04-12 2003-10-23 Philips Intellectual Property Symbol sequence voice recognition involves determining sub-symbol sequence to be corrected by comparing second sequence with sub-sequences longer or shorter than second sequence by number of symbols
DE102013007502A1 (en) * 2013-04-25 2014-10-30 Elektrobit Automotive Gmbh Computer-implemented method for automatically training a dialogue system and dialog system for generating semantic annotations
CN104331390B (en) * 2014-11-18 2018-09-11 网易(杭州)网络有限公司 A kind of method and device of screening text

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101346717A (en) * 2003-07-03 2009-01-14 怀特斯莫克公司 Method and apparatus for language processing
CN101063971A (en) * 2006-04-26 2007-10-31 英福达科技股份有限公司 Method for manufacturing shareable note and content correcting difference update electronic book
CN101470700A (en) * 2007-12-28 2009-07-01 日电(中国)有限公司 Text template generator, text generation equipment, text checking equipment and method thereof
CN104380261A (en) * 2012-05-16 2015-02-25 苹果公司 Locally backed cloud-based storage
CN105210069A (en) * 2013-03-15 2015-12-30 谷歌公司 Subscription-based mobile reading platform
CN105608064A (en) * 2015-11-24 2016-05-25 小米科技有限责任公司 Character replacement method and apparatus
CN105512260A (en) * 2015-12-03 2016-04-20 北京奇虎科技有限公司 E-book multi-segment excerpt sharing method and device

Also Published As

Publication number Publication date
CN108519966A (en) 2018-09-11

Similar Documents

Publication Publication Date Title
CN108519966B (en) The replacement method and calculating equipment of e-book particular text element
CN106528845B (en) Retrieval error correction method and device based on artificial intelligence
Hinkle et al. A positive theory and empirical analysis of strategic word choice in district court opinions
CN108304379A (en) A kind of article recognition methods, device and storage medium
CN109299457A (en) A kind of opining mining method, device and equipment
US20130080471A1 (en) Interactive electronic reader with parental control
CN106844404A (en) Message display method and terminal device
CN102902675B (en) Picture content approval method and device
CN104008091A (en) Sentiment value based web text sentiment analysis method
CN106649236B (en) Modify the method and device of prompt
CN110059307A (en) Writing method, device and server
Major Objective but not impartial: Human events, Barry Goldwater, and the development of the “liberal media” in the conservative counter-sphere
CN107463543A (en) A kind of form information input method and equipment
CN108108249A (en) Data inputting method and device
CN110309114A (en) Processing method, device, storage medium and the electronic device of media information
CN106709382A (en) Keyboard display method and device
CN107832311A (en) A kind of interpretation method, device, terminal and readable storage device
CN109634570A (en) Front and back end integrated development method, device, equipment and computer readable storage medium
CN109948078A (en) Information processing system, electronic equipment, information processing method and recording medium
JP2016122139A (en) Text display device and learning device
CN111159975A (en) Display method and device
Wang et al. Safeguarding crowdsourcing surveys from chatgpt with prompt injection
Lipani et al. Visual pool: a tool to visualize and interact with the pooling method
CN109522505A (en) Information issuing method, device, storage medium and electronic device
CN106528764B (en) The search method and device of enquirement type term based on artificial intelligence

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
GR01 Patent grant
GR01 Patent grant