CN105608064A - Character replacement method and apparatus - Google Patents

Character replacement method and apparatus Download PDF

Info

Publication number
CN105608064A
CN105608064A CN201510825559.2A CN201510825559A CN105608064A CN 105608064 A CN105608064 A CN 105608064A CN 201510825559 A CN201510825559 A CN 201510825559A CN 105608064 A CN105608064 A CN 105608064A
Authority
CN
China
Prior art keywords
character
replaced
book
replacement
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510825559.2A
Other languages
Chinese (zh)
Inventor
胡薇
庞鹏
陈晓东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510825559.2A priority Critical patent/CN105608064A/en
Publication of CN105608064A publication Critical patent/CN105608064A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

The invention relates to a character replacement method and apparatus. The method comprises the steps of obtaining a to-be-replaced character in an e-book text; searching for a target character matched with the to-be-replaced character from a preset replacement character library; and when the target character is found, replacing the to-be-replaced character in the e-book text with the target character. Through the technical scheme, a user can read an e-book conveniently, so that the user experience is improved.

Description

Character replacement method and device
Technical field
The disclosure relates to technical field of data processing, relates in particular to a kind of character replacement method and device.
Background technology
E-book claims again e-book, refer to digital code mode will scheme, literary composition, sound, as etc. information storageOn magnetic, optical, electrical medium, use by computer or similar devices, and the masses of reproducible distribution passBroadcast body. Type has: e-book, electronic journal, electronic newspaper and software reading matter etc.
Summary of the invention
Disclosure embodiment provides a kind of character replacement method and device, comprises following technical scheme:
According to the first aspect of disclosure embodiment, a kind of character replacement method is provided, comprising:
Obtain the character to be replaced in e-book text;
From default substitute character storehouse, search the target character with described character match to be replaced;
In the time finding described target character, by the character replacement described to be replaced in described e-book textFor described target character.
In one embodiment, described in obtain the character to be replaced in e-book text, comprising:
Travel through described e-book text, from described e-book text, find out and meet pre-conditioned character;
Meet pre-conditioned character and be defined as described character to be replaced described.
In one embodiment, described in obtain the character to be replaced in e-book text, comprising:
Operation is chosen in detection;
Described in detecting, choose operation, selected character is defined as to described character to be replaced.
In one embodiment, described method also comprises:
Record the replacement information between described target character and described character to be replaced, wherein said replacement letterBreath comprises the corresponding relation between described target character and described character to be replaced, and described word to be replacedSymbol or described target character residing position in described e-book text.
In one embodiment, described method also comprises:
Receive the undo command of user's input;
According to described undo command and described replacement information, by the described target word in described e-book textSymbol replaces with described character to be replaced.
In one embodiment, described method also comprises:
Receive character change order and the rear character of amendment of input;
According to described character change order, the described target character in described default substitute character storehouse is replacedFor character after described amendment.
In one embodiment, described method also comprises:
In the time not finding described target character, create target character according to described character to be replaced, and willDescribed target character and described character corresponding stored to be replaced are to described default substitute character storehouse.
In one embodiment, described character to be replaced comprises name and/or the place name of preset language.
According to the second aspect of disclosure embodiment, a kind of character replacement device is provided, comprising:
Acquisition module, for obtaining the character to be replaced of e-book text;
Search module, for searching from default substitute character storehouse and the target of described character match to be replacedCharacter;
Replacement module, in the time finding described target character, described in described e-book textCharacter replacement to be replaced is described target character.
In one embodiment, described acquisition module comprises:
Search submodule, for traveling through described e-book text, from described e-book text, find out fullThe character that foot is pre-conditioned;
First determines submodule, for meeting pre-conditioned character and be defined as described word to be replaced describedSymbol.
In one embodiment, described acquisition module comprises:
Detection sub-module, for detection of choosing operation;
Second determines submodule, for choose operation described in detecting, selected character is defined asDescribed character to be replaced.
In one embodiment, described device also comprises:
Logging modle, for recording the replacement information between described target character and described character to be replaced,Wherein said replacement information comprises the corresponding relation between described target character and described character to be replaced, withAnd described character to be replaced or described target character residing position in described e-book text.
In one embodiment, described device also comprises:
The first receiver module, for receiving the undo command of user's input;
Recovery module, for according to described undo command and described replacement information, by described e-book textIn described target character replace with described character to be replaced.
In one embodiment, described device also comprises:
The second receiver module, for receiving character change order and the rear character of amendment of input;
Modified module, for according to described character change order, by the institute in described default substitute character storehouseState target character and replace with character after described amendment.
In one embodiment, described device also comprises:
Creation module, in the time not finding described target character, creates according to described character to be replacedTarget character, and by described target character and extremely described default replacement word of described character corresponding stored to be replacedFu Ku.
In one embodiment, described character to be replaced comprises name and/or the place name of preset language.
According to the third aspect of disclosure embodiment, a kind of character replacement device is provided, comprising:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain the character to be replaced in e-book text;
From default substitute character storehouse, search the target character with described character match to be replaced;
In the time finding described target character, by the character replacement described to be replaced in described e-book textFor described target character.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect:
Technique scheme, obtains the character to be replaced in e-book text, and in default substitute character storehouseIn find and the target character of character match to be replaced, thereby use target character to replace character to be replaced,For example, for name and/or the place name of some foreign languages in e-book, can use Chinese name to replace.Like this, facilitate user's reading electronic book, promote user's experience.
Should be understood that, it is only exemplary and explanatory that above general description and details are hereinafter described, can not limit the disclosure.
Brief description of the drawings
Accompanying drawing is herein merged in description and forms the part of this description, shows and meets these public affairsThe embodiment opening, and be used from and explain principle of the present disclosure with description one.
Fig. 1 is according to the flow chart of the character replacement method shown in an exemplary embodiment.
Fig. 2 is according to the stream of step S101 in a kind of character replacement method shown in an exemplary embodimentCheng Tu.
Fig. 3 is according to step S101's in the another kind of character replacement method shown in an exemplary embodimentFlow chart.
Fig. 4 is according to the flow chart of the another kind of character replacement method shown in an exemplary embodiment.
Fig. 5 is according to the flow chart of another the character replacement method shown in an exemplary embodiment.
Fig. 6 is according to the flow chart of another the character replacement method shown in an exemplary embodiment.
Fig. 7 is according to the flow chart of another the character replacement method shown in an exemplary embodiment.
Fig. 8 is according to the block diagram of the character replacement device shown in an exemplary embodiment.
Fig. 9 is according to the frame of acquisition module in a kind of character replacement device shown in an exemplary embodimentFigure.
Figure 10 is according to acquisition module in the another kind of character replacement device shown in an exemplary embodimentBlock diagram.
Figure 11 is according to the block diagram of the another kind of character replacement device shown in an exemplary embodiment.
Figure 12 is according to the block diagram of another the character replacement device shown in an exemplary embodiment.
Figure 13 is according to the block diagram of another the character replacement device shown in an exemplary embodiment.
Figure 14 is according to the block diagram of another the character replacement device shown in an exemplary embodiment.
Figure 15 is according to the block diagram that is applicable to character replacement device shown in an exemplary embodiment.
Detailed description of the invention
Here will at length describe exemplary embodiment, its sample table shows in the accompanying drawings. Retouching belowState while relating to accompanying drawing, unless separately there is expression, the same numbers in different accompanying drawings represents same or analogous wantingElement. Embodiment described in following exemplary embodiment does not represent own consistent with the disclosureEmbodiment. On the contrary, they be only with as that described in detail in appended claims, more of the present disclosureThe example of the consistent apparatus and method in aspect.
Disclosure embodiment provides a kind of character replacement method, and the method can be used in terminal device, asShown in Fig. 1, the method comprising the steps of S101-S103:
In step S101, obtain the character to be replaced in e-book text;
In step S102, from default substitute character storehouse, search the target word with character match to be replacedSymbol;
In step S103, in the time finding target character, by the character to be replaced in e-book textReplace with target character.
In this embodiment, obtain the character to be replaced in e-book text, and in default substitute character storehouseIn find and the target character of character match to be replaced, thereby use target character to replace character to be replaced,For example, for name and/or the place name of some foreign languages in e-book, can use Chinese name to replace.As " Monroe " replaced with to " Monroe ", like this, facilitate user's reading electronic book, promote user'sExperience.
As shown in Figure 2, in one embodiment, above-mentioned steps S101 comprises step S201-S202:
In step S201, traversal e-book text finds out and meets default bar from e-book textThe character of part;
In step S202, be defined as character to be replaced by meeting pre-conditioned character. A realityExecute in example, character to be replaced comprises name and/or the place name of preset language.
In this embodiment, can travel through e-book text, automatically from e-book text, find out and meet in advanceIf the character of condition is as character to be replaced, the name of for example preset language and/or place name, as e-book literary compositionOriginally mainly show with Chinese form, so for name, the place name etc. of some foreign languages that are wherein mingled with, canTo be defined as character to be replaced, to be replaced with corresponding Chinese, thereby be convenient to user's reading.Certainly, character to be replaced can be also other characters, as popular character, abbreviated character, Chinese idiom, verse,Uncommon phrase or rarely used word etc., corresponding target character can be explanation, the phonetic etc. of its correspondence.
As shown in Figure 3, in one embodiment, above-mentioned steps S101 can also comprise stepS301-S302:
In step S301, detect and choose operation;
In step S302, choose operation when detecting, selected character is defined as to word to be replacedSymbol.
In this embodiment, can also choose character to be replaced according to user's the operation of choosing, by usingWhich character family oneself selects to be replaced, thereby meets the different replacement demands of different user, promotesUser's experience.
As shown in Figure 4, in one embodiment, said method also comprises step S401:
In step S401, the replacement information between record object character and character to be replaced, wherein replacesThe information of changing comprises the corresponding relation between target character and character to be replaced, and character to be replaced or targetCharacter is residing position in e-book text.
In this embodiment, the replacement information between record object character and character to be replaced, as both itBetween corresponding relation, or both residing positions etc. in e-book text, thus the system of being convenient to is knownThe character of which position is replaced, and replaces content accordingly, to carry out subsequent operation. Wherein,Corresponding relation between target character and character to be replaced records as shown in table 1, is replaced character and at literary compositionRecording in this before position is as shown in table 2.
Table 1
Name in original text Replace name
A a
B b
C c
Table 2
The word being replaced in original text Position in book
A P1
B P2
C P3
As shown in Figure 5, in one embodiment, said method also comprises step S501-S502:
In step S501, receive the undo command of user's input;
In step S502, according to undo command and replacement information, by the target word in e-book textSymbol replaces with character to be replaced.
In this embodiment, after the character replacement to be replaced in e-book text is target character, alsoCan, according to the user's who receives undo command, again target character be replaced with to character to be replaced, fromAnd return to the text before replacement, and like this, neither can affect checking of user, can not change again original text,Further promote user's experience.
As shown in Figure 6, in one embodiment, said method also comprises step S601-S602:
In step S601, receive character change order and the rear character of amendment of input;
In step S602, according to character change order, by the target character in default substitute character storehouseReplace with the rear character of amendment.
In this embodiment, think that user target substitute character and character to be replaced be not at once, orWhen target substitute character is inaccurate, can input character amendment orders and amended character, thereby realizeTarget character is modified, amended character is stored, thus word after further ensureing to replaceThe accuracy of symbol.
As shown in Figure 7, in one embodiment, said method also comprises step S701:
In step S701, in the time not finding target character, create target word according to character to be replacedSymbol, and by target character and the extremely default substitute character of character corresponding stored to be replaced storehouse.
In this embodiment, if can not find corresponding with character to be replaced in default substitute character storehouseTarget character, can be that it creates target character automatically, thereby both corresponding stored are replaced to defaultIn character repertoire, after being convenient to, carry out replacement operation. Particularly, can treat substitute character and identify,And create target character according to certain algorithm for it, certainly, also can remove network according to character to be replacedMiddle search, creates target character according to Search Results.
Following is disclosure device embodiment, can be for carrying out disclosure embodiment of the method.
Fig. 8 is that this device can according to the block diagram of a kind of character replacement device shown in an exemplary embodimentTo realize and to become the some or all of of terminal device by software, hardware or both combinations. As figureShown in 8, this character replacement device comprises:
Acquisition module 81 is configured to obtain the character to be replaced in e-book text;
Searching module 82 is configured to search from default substitute character storehouse and the order of character match to be replacedMarking-up symbol;
Replacement module 83 is configured in the time finding target character, by the word to be replaced in e-book textSymbol replaces with target character. In one embodiment, character to be replaced comprise preset language name and/Or place name.
As shown in Figure 9, in one embodiment, acquisition module 81 comprises:
Search submodule 91 and be configured to travel through e-book text, from e-book text, find out and meet in advanceIf the character of condition;
First determines that submodule 92 is configured to be defined as character to be replaced by meeting pre-conditioned character.
As shown in figure 10, in one embodiment, acquisition module 81 comprises:
Detection sub-module 101 is configured to detect chooses operation;
Second determines that submodule 102 is configured to choose operation when detecting, selected character is determinedFor character to be replaced.
As shown in figure 11, in one embodiment, said apparatus also comprises:
Logging modle 111 is configured to the replacement information between record object character and character to be replaced, itsMiddle replacement information comprises the corresponding relation between target character and character to be replaced, and character to be replaced orTarget character is residing position in e-book text.
As shown in figure 12, in one embodiment, said apparatus also comprises:
The first receiver module 121 is configured to receive the undo command of user's input;
Recovery module 122 is configured to according to undo command and replacement information, by the order in e-book textMarking-up symbol replaces with character to be replaced.
As shown in figure 13, in one embodiment, said apparatus also comprises:
The second receiver module 131 is configured to receive character change order and the rear character of amendment of input;
Modified module 132 is configured to according to character change order, by the target in default substitute character storehouseCharacter replacement is the rear character of amendment.
As shown in figure 14, in one embodiment, said apparatus also comprises:
Creation module 141 is configured in the time not finding target character, creates order according to character to be replacedMarking-up symbol, and by target character and the extremely default substitute character of character corresponding stored to be replaced storehouse.
According to the third aspect of disclosure embodiment, a kind of character replacement device is provided, comprising:
Processor;
For the memory of storage of processor executable instruction;
Wherein, processor is configured to:
Obtain the character to be replaced in e-book text;
From default substitute character storehouse, search the target character with described character match to be replaced;
In the time finding described target character, by the character replacement described to be replaced in described e-book textFor described target character.
Above-mentioned processor also can be configured to:
The described character to be replaced obtaining in e-book text, comprising:
Travel through described e-book text, from described e-book text, find out and meet pre-conditioned character;
Meet pre-conditioned character and be defined as described character to be replaced described.
Above-mentioned processor also can be configured to:
The described character to be replaced obtaining in e-book text, comprising:
Operation is chosen in detection;
Described in detecting, choose operation, selected character is defined as to described character to be replaced.
Above-mentioned processor also can be configured to:
Described method also comprises:
Record the replacement information between described target character and described character to be replaced, wherein said replacement letterBreath comprises the corresponding relation between described target character and described character to be replaced, and described word to be replacedSymbol or described target character residing position in described e-book text.
Above-mentioned processor also can be configured to:
Described method also comprises:
Receive the undo command of user's input;
According to described undo command and described replacement information, by the described target word in described e-book textSymbol replaces with described character to be replaced.
Above-mentioned processor also can be configured to:
Described method also comprises:
Receive character change order and the rear character of amendment of input;
According to described character change order, the described target character in described default substitute character storehouse is replacedFor character after described amendment.
Above-mentioned processor also can be configured to:
Described method also comprises:
In the time not finding described target character, create target character according to described character to be replaced, and willDescribed target character and described character corresponding stored to be replaced are to described default substitute character storehouse.
Above-mentioned processor also can be configured to:
Described character to be replaced comprises name and/or the place name of preset language.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations is havingIn the embodiment of pass the method, have been described in detail, will not elaborate explanation herein.
Figure 15 is according to a kind of block diagram for character replacement device shown in an exemplary embodiment, this dressPut and be applicable to terminal device. For example, device 1500 can be mobile phone, computer, and digital broadcasting is eventuallyEnd, information receiving and transmitting equipment, game console, tablet device, Medical Devices, body-building equipment, individual numberWord assistant etc.
Device 1500 can comprise following one or more assembly: processing components 1502, and memory 1504,Power supply module 1506, multimedia groupware 1508, audio-frequency assembly 1510, I/O (I/O) connectsMouth 1512, sensor cluster 1514, and communications component 1516.
The integrated operation of processing components 1502 common control device 1500, such as with demonstration, call,Data communication, the operation that camera operation and record operation are associated. Processing components 1502 can comprise oneOr multiple processors 1520 carry out instruction, to complete all or part of step of above-mentioned method. In addition,Processing components 1502 can comprise one or more modules, be convenient to processing components 1502 and other assemblies itBetween mutual. For example, processing components 1502 can comprise multi-media module, to facilitate multimedia groupware1508 and processing components 1502 between mutual.
Memory 1504 is configured to store various types of data to be supported in the operation of equipment 1500.The example of these data comprise for device 1500 on operation any application program or the instruction of method,Contact data, telephone book data, message, picture, video etc. Memory 1504 can be by any classThe volatibility of type or non-volatile memory device or their combination realize, as static random access memoryDevice (SRAM), Electrically Erasable Read Only Memory (EEPROM), erasable programmable is read-onlyMemory (EPROM), programmable read only memory (PROM), read-only storage (ROM), magneticMemory, flash memory, disk or CD.
Electric power assembly 1506 provides electric power for installing 1500 various assemblies. Electric power assembly 1506 can wrapDraw together power-supply management system, one or more power supplys, and other and generate, manage and distribute for device 1500The assembly that electric power is associated.
The output interface that provides between described device 1500 and user is provided multimedia groupware 1508Screen. In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input from userSignal. Touch panel comprises that one or more touch sensors are with on sensing touch, slip and touch panelGesture. Described touch sensor is the border of sensing touch or sliding action not only, but also detectsDuration and the pressure relevant to described touch or slide. In certain embodiments, multimedia groupPart 1508 comprises a front-facing camera and/or post-positioned pick-up head. When equipment 1500 is in operator scheme,During as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside many matchmakersVolume data. Each front-facing camera and post-positioned pick-up head can be a fixing optical lens system or toolThere are focal length and optical zoom ability.
Audio-frequency assembly 1510 is configured to output and/or input audio signal. For example, audio-frequency assembly 1510Comprise a microphone (MIC), when device is 1500 in operator scheme, as call model, record mouldWhen formula and speech recognition mode, microphone is configured to receive external audio signal. The audio frequency letter receivingNumber can be further stored in memory 1504 or be sent via communications component 1516. In some enforcementIn example, audio-frequency assembly 1510 also comprises a loudspeaker, for output audio signal.
I/O interface 1512 is for providing interface between processing components 1502 and peripheral interface module, above-mentioned outsideEnclosing interface module can be keyboard, some striking wheel, button etc. These buttons can include but not limited to: homepageButton, volume button, start button and locking press button.
Sensor cluster 1514 comprises one or more sensors, is used to device 1500 that each side is providedThe state estimation of face. For example, sensor cluster 1514 can detect the opening/closing shape of equipment 1500State, the relative positioning of assembly, for example described assembly is display and the keypad of device 1500, sensorThe position of all right checkout gear 1500 of assembly 1514 or 1500 assemblies of device changes, user and dressPut the existence of 1500 contacts or do not exist, the temperature of device 1500 orientation or acceleration/deceleration and device 1500Degree changes. Sensor cluster 1514 can comprise proximity transducer, be configured to without any thingNear the existence of object detecting when reason contact. Sensor cluster 1514 can also comprise optical sensor, asCMOS or ccd image sensor, for using in imaging applications. In certain embodiments, shouldSensor cluster 1514 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressureSensor or temperature sensor.
Communications component 1516 is configured to be convenient to wired or wireless mode between device 1500 and other equipmentCommunication. Device 1500 wireless networks that can access based on communication standard, as WiFi, 2G or 3G,Or their combination. In one exemplary embodiment, communications component 1516 receives via broadcast channelFrom broadcast singal or the broadcast related information of external broadcasting management system. In one exemplary embodiment,Described communications component 1516 also comprises near-field communication (NFC) module, to promote junction service. For example,Can be based on RF identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology,Ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 1500 can be by one or more application specific integrated circuits(ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), able to programme patrollingCollect device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessorOr other electronic components realizations, for carrying out said method.
In the exemplary embodiment, also provide a kind of non-provisional computer-readable storage that comprises instructionMedium, for example, comprise the memory 1504 of instruction, and above-mentioned instruction can be by the processor 1520 of device 1500Carry out to complete said method. For example, described non-provisional computer-readable recording medium can be ROM,Random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage equipment etc.
A kind of non-provisional computer-readable recording medium, when the instruction in described storage medium is by installingWhen 1500 processor is carried out, make device 1500 can carry out above-mentioned character replacement method, described sideMethod comprises:
Obtain the character to be replaced in e-book text;
From default substitute character storehouse, search the target character with described character match to be replaced;
In the time finding described target character, by the character replacement described to be replaced in described e-book textFor described target character.
In one embodiment, described in obtain the character to be replaced in e-book text, comprising:
Travel through described e-book text, from described e-book text, find out and meet pre-conditioned character;
Meet pre-conditioned character and be defined as described character to be replaced described.
In one embodiment, described in obtain the character to be replaced in e-book text, comprising:
Operation is chosen in detection;
Described in detecting, choose operation, selected character is defined as to described character to be replaced.
In one embodiment, described method also comprises:
Record the replacement information between described target character and described character to be replaced, wherein said replacement letterBreath comprises the corresponding relation between described target character and described character to be replaced, and described word to be replacedSymbol or described target character residing position in described e-book text.
In one embodiment, described method also comprises:
Receive the undo command of user's input;
According to described undo command and described replacement information, by the described target word in described e-book textSymbol replaces with described character to be replaced.
In one embodiment, described method also comprises:
Receive character change order and the rear character of amendment of input;
According to described character change order, the described target character in described default substitute character storehouse is replacedFor character after described amendment.
In one embodiment, described method also comprises:
In the time not finding described target character, create target character according to described character to be replaced, and willDescribed target character and described character corresponding stored to be replaced are to described default substitute character storehouse.
In one embodiment, described character to be replaced comprises name and/or the place name of preset language.
Those skilled in the art, considering description and putting into practice after disclosed herein disclosing, will easily expect thisDisclosed other embodiment. The application is intended to contain any modification of the present disclosure, purposes or adaptabilityChange, these modification, purposes or adaptations are followed general principle of the present disclosure and are comprised these public affairsOpen undocumented common practise or conventional techniques means in the art. Description and embodiment only byBe considered as exemplary, true scope of the present disclosure and spirit pointed out by claim below.
Should be understood that, the disclosure is not limited to described above and illustrated in the accompanying drawings accurateStructure, and can carry out various amendments and change not departing from its scope. The scope of the present disclosure is only by instituteAttached claim limits.

Claims (17)

1. a character replacement method, is characterized in that, comprising:
Obtain the character to be replaced in e-book text;
From default substitute character storehouse, search the target character with described character match to be replaced;
In the time finding described target character, by the character replacement described to be replaced in described e-book textFor described target character.
2. method according to claim 1, is characterized in that, described in obtain in e-book textCharacter to be replaced, comprising:
Travel through described e-book text, from described e-book text, find out and meet pre-conditioned character;
Meet pre-conditioned character and be defined as described character to be replaced described.
3. method according to claim 1, is characterized in that, described in obtain in e-book textCharacter to be replaced, comprising:
Operation is chosen in detection;
Described in detecting, choose operation, selected character is defined as to described character to be replaced.
4. method according to claim 1, is characterized in that, described method also comprises:
Record the replacement information between described target character and described character to be replaced, wherein said replacement letterBreath comprises the corresponding relation between described target character and described character to be replaced, and described word to be replacedSymbol or described target character residing position in described e-book text.
5. method according to claim 4, is characterized in that, described method also comprises:
Receive the undo command of user's input;
According to described undo command and described replacement information, by the described target word in described e-book textSymbol replaces with described character to be replaced.
6. method according to claim 1, is characterized in that, described method also comprises:
Receive character change order and the rear character of amendment of input;
According to described character change order, the described target character in described default substitute character storehouse is replacedFor character after described amendment.
7. according to the method described in any one in claim 1 to 6, it is characterized in that, described method alsoComprise:
In the time not finding described target character, create target character according to described character to be replaced, and willDescribed target character and described character corresponding stored to be replaced are to described default substitute character storehouse.
8. according to the method described in any one in claim 1 to 6, it is characterized in that, described to be replacedCharacter comprises name and/or the place name of preset language.
9. a character replacement device, is characterized in that, comprising:
Acquisition module, for obtaining the character to be replaced of e-book text;
Search module, for searching from default substitute character storehouse and the target of described character match to be replacedCharacter;
Replacement module, in the time finding described target character, described in described e-book textCharacter replacement to be replaced is described target character.
10. device according to claim 9, is characterized in that, described acquisition module comprises:
Search submodule, for traveling through described e-book text, from described e-book text, find out fullThe character that foot is pre-conditioned;
First determines submodule, for meeting pre-conditioned character and be defined as described word to be replaced describedSymbol.
11. devices according to claim 9, is characterized in that, described acquisition module comprises:
Detection sub-module, for detection of choosing operation;
Second determines submodule, for choose operation described in detecting, selected character is defined asDescribed character to be replaced.
12. devices according to claim 9, is characterized in that, described device also comprises:
Logging modle, for recording the replacement information between described target character and described character to be replaced,Wherein said replacement information comprises the corresponding relation between described target character and described character to be replaced, withAnd described character to be replaced or described target character residing position in described e-book text.
13. devices according to claim 12, is characterized in that, described device also comprises:
The first receiver module, for receiving the undo command of user's input;
Recovery module, for according to described undo command and described replacement information, by described e-book textIn described target character replace with described character to be replaced.
14. devices according to claim 9, is characterized in that, described device also comprises:
The second receiver module, for receiving character change order and the rear character of amendment of input;
Modified module, for according to described character change order, by the institute in described default substitute character storehouseState target character and replace with character after described amendment.
15. according to the device described in any one in claim 9 to 14, it is characterized in that described deviceAlso comprise:
Creation module, in the time not finding described target character, creates according to described character to be replacedTarget character, and by described target character and extremely described default replacement word of described character corresponding stored to be replacedFu Ku.
16. according to the device described in any one in claim 9 to 14, it is characterized in that, described in wait to replaceTranspose symbol comprises name and/or the place name of preset language.
17. 1 kinds of character replacement devices, is characterized in that, comprising:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain the character to be replaced in e-book text;
From default substitute character storehouse, search the target character with described character match to be replaced;
In the time finding described target character, by the character replacement described to be replaced in described e-book textFor described target character.
CN201510825559.2A 2015-11-24 2015-11-24 Character replacement method and apparatus Pending CN105608064A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510825559.2A CN105608064A (en) 2015-11-24 2015-11-24 Character replacement method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510825559.2A CN105608064A (en) 2015-11-24 2015-11-24 Character replacement method and apparatus

Publications (1)

Publication Number Publication Date
CN105608064A true CN105608064A (en) 2016-05-25

Family

ID=55988010

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510825559.2A Pending CN105608064A (en) 2015-11-24 2015-11-24 Character replacement method and apparatus

Country Status (1)

Country Link
CN (1) CN105608064A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106909276A (en) * 2017-01-10 2017-06-30 网易(杭州)网络有限公司 Method and apparatus for realizing electron reading content interaction
CN108519966A (en) * 2018-04-11 2018-09-11 掌阅科技股份有限公司 The replacement method and computing device of e-book particular text element
CN109902277A (en) * 2017-12-07 2019-06-18 珠海金山办公软件有限公司 A kind of document edit method, device, electronic equipment and readable storage medium storing program for executing
CN110298027A (en) * 2018-03-22 2019-10-01 卡西欧计算机株式会社 Display device, display system, display methods and recording medium
CN110728132A (en) * 2019-09-24 2020-01-24 北京奇艺世纪科技有限公司 Text data management method and system
CN111046631A (en) * 2019-10-16 2020-04-21 平安科技(深圳)有限公司 Name storage method and device based on character conversion and computer equipment
WO2020258652A1 (en) * 2019-06-25 2020-12-30 平安科技(深圳)有限公司 Character replacement method and system, computer apparatus, and computer readable storage medium
CN117591531A (en) * 2024-01-18 2024-02-23 北京快立方科技有限公司 Remote data synchronization method and system for database

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2328098A2 (en) * 2009-11-27 2011-06-01 Ricoh Company, Ltd. Apparatus and method for extracting circumscribed rectangles of characters in transplantable electronic document
CN102467376A (en) * 2010-11-10 2012-05-23 金蝶软件(中国)有限公司 Modification method and device for character information
CN102566768A (en) * 2010-12-13 2012-07-11 腾讯科技(深圳)有限公司 Method and system for automatic character judgment and correction
CN104345899A (en) * 2013-08-08 2015-02-11 阿里巴巴集团控股有限公司 Field conversion method for input method and client
CN104424168A (en) * 2013-09-11 2015-03-18 华为技术有限公司 Text editing method, text editing device and server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2328098A2 (en) * 2009-11-27 2011-06-01 Ricoh Company, Ltd. Apparatus and method for extracting circumscribed rectangles of characters in transplantable electronic document
CN102467376A (en) * 2010-11-10 2012-05-23 金蝶软件(中国)有限公司 Modification method and device for character information
CN102566768A (en) * 2010-12-13 2012-07-11 腾讯科技(深圳)有限公司 Method and system for automatic character judgment and correction
CN104345899A (en) * 2013-08-08 2015-02-11 阿里巴巴集团控股有限公司 Field conversion method for input method and client
CN104424168A (en) * 2013-09-11 2015-03-18 华为技术有限公司 Text editing method, text editing device and server

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106909276A (en) * 2017-01-10 2017-06-30 网易(杭州)网络有限公司 Method and apparatus for realizing electron reading content interaction
CN106909276B (en) * 2017-01-10 2020-04-24 网易(杭州)网络有限公司 Method and equipment for realizing content interaction of electronic reading materials
CN109902277A (en) * 2017-12-07 2019-06-18 珠海金山办公软件有限公司 A kind of document edit method, device, electronic equipment and readable storage medium storing program for executing
CN109902277B (en) * 2017-12-07 2023-05-26 珠海金山办公软件有限公司 Document editing method and device, electronic equipment and readable storage medium
CN110298027A (en) * 2018-03-22 2019-10-01 卡西欧计算机株式会社 Display device, display system, display methods and recording medium
CN108519966A (en) * 2018-04-11 2018-09-11 掌阅科技股份有限公司 The replacement method and computing device of e-book particular text element
CN108519966B (en) * 2018-04-11 2019-03-29 掌阅科技股份有限公司 The replacement method and calculating equipment of e-book particular text element
WO2020258652A1 (en) * 2019-06-25 2020-12-30 平安科技(深圳)有限公司 Character replacement method and system, computer apparatus, and computer readable storage medium
CN110728132A (en) * 2019-09-24 2020-01-24 北京奇艺世纪科技有限公司 Text data management method and system
CN111046631A (en) * 2019-10-16 2020-04-21 平安科技(深圳)有限公司 Name storage method and device based on character conversion and computer equipment
CN117591531A (en) * 2024-01-18 2024-02-23 北京快立方科技有限公司 Remote data synchronization method and system for database
CN117591531B (en) * 2024-01-18 2024-03-22 北京快立方科技有限公司 Remote data synchronization method and system for database

Similar Documents

Publication Publication Date Title
CN105608064A (en) Character replacement method and apparatus
CN105119812A (en) Method and apparatus for changing emoticons at chat interface, and terminal equipment
CN104166689A (en) Presentation method and device for electronic book
CN104679599A (en) Application program duplicating method and device
CN105260360A (en) Named entity identification method and device
CN105068976A (en) Ticket information exhibition method and device
CN105447109A (en) Key word searching method and apparatus
CN104899610A (en) Picture classification method and device
CN105404401A (en) Input processing method, apparatus and device
CN104536935A (en) Calculation displaying method, calculation editing method and device
CN104484438A (en) Image processing method and device
CN104461348A (en) Method and device for selecting information
CN105550643A (en) Medical term recognition method and device
CN105094904A (en) Application program installation method and device
CN104281703A (en) Method and device for calculating similarity among uniform resource locators (URL)
CN105354017A (en) Information processing method and apparatus
CN105376412A (en) Information processing method and device
CN105095235A (en) Application program recommendation method and device
CN105139848A (en) Data conversion method and apparatus
CN105630749A (en) Extraction method and device of digital information
CN105095170A (en) Text deleting method and device
CN105163188A (en) Video content processing method, device and apparatus
CN104317851A (en) Word prompt method and device
CN104182473A (en) Setting option display method and device
CN104216969A (en) Reading marking method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160525

RJ01 Rejection of invention patent application after publication