CN105159874B - The amending method and device of word - Google Patents
The amending method and device of word Download PDFInfo
- Publication number
- CN105159874B CN105159874B CN201510532508.0A CN201510532508A CN105159874B CN 105159874 B CN105159874 B CN 105159874B CN 201510532508 A CN201510532508 A CN 201510532508A CN 105159874 B CN105159874 B CN 105159874B
- Authority
- CN
- China
- Prior art keywords
- word
- modification
- radical
- component part
- instruction
- 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
Links
Landscapes
- Document Processing Apparatus (AREA)
Abstract
The disclosure is directed to the amending method of word and devices.This method includes:When receive to word modify first modification instruction when, to second modification instruction being detected;The second modification instruction, which is used to indicate, modifies at least one component part of the word;When detecting the second modification instruction, the corresponding component part of word described in instruction modification is changed according to described second.The disclosure may be implemented to modify to the component part of the selected word of user, to realize the modification to entire word, the problem of word re-enters new word must be deleted in the case of user's input error in the related technology by avoiding, the word input operation for facilitating user, improves user experience.
Description
Technical field
This disclosure relates to the amending method and device of word input technology field more particularly to word.
Background technology
When inputting word in terminal such as mobile phone, computer, no matter using which kind of input method, all inevitable meeting input error
Word, in the related technology, when there is the case where input error, usual user needs the word of first deleting input error, then
Correct word is re-entered, for a user, word itself cannot be changed.
Invention content
The embodiment of the present disclosure provides a kind of amending method and device of word.The technical solution is as follows:
According to the first aspect of the embodiments of the present disclosure, a kind of amending method of word is provided, this method includes:
When receive to word modify first modification instruction when, to second modification instruction being detected;Described
Two modification instructions, which are used to indicate, modifies at least one component part of the word;
When detecting the second modification instruction, changes word described in instruction modification according to described second and form accordingly
Part.
The second modification instruction that above-described embodiment can be sent out according to user, carries out at least one component part of word
Modification, to realize modification to entire word, this article must be deleted in the case of user's input error in the related technology by avoiding
Word re-enters the problem of new word, facilitates the corrigendum operation when word input of user, improves user experience.
In one embodiment, it is described to second modification instruction be detected before, further include:
Distinctly display each component part that the word includes.
In the above-described embodiments, it is possible to distinguish ground shows each component part of word, and user can be facilitated to select in word
Need the component part changed.
In one embodiment, each component part for distinctly displaying the word and including, including:
Show each component part of the word respectively by different display format;Or
Each component part of the word is highlighted by identical or different display format rotation;
The display format includes following one or more:
Line color, background color, display brightness, line weight, display size.
In above-described embodiment, using different display format, show each component part of word respectively, or by identical or
The different display format rotation of person highlights each component part of word, distinctively to show that each component part of word provides
Abundant, flexible embodiment.
In one embodiment, each component part for distinctly displaying the word and including, including:
According to the mapping relations between the coding and the coding of each component part of the word, each composition is determined
Partial coding;
According to the coding of each component part, each component part is shown respectively.
Above-described embodiment is distinctively shows that each component part of word provides embodiment party that is simple and convenient, easily realizing
Formula.
In one embodiment, each component part includes each radical that word is included;
Mapping relations between the coding and the coding of each component part of the word, are set in advance by following manner
It sets:
Each word is disassembled, determines that each word includes each radical;
The machine code of each word and the machine code of each radical in the word are mapped, the word is stored
Machine code and the machine code of each radical between mapping relations.
Embodiment disclosed above provides a kind of coding and word each group of the default word simply, easily, easily realized
At the specific implementation of mapping relations between the coding of part.
In one embodiment, described to change the corresponding component part of word described in instruction modification, packet according to described second
It includes:
According to the radical to be modified of the second modification instruction instruction and the modification behaviour of the second modification instruction instruction
Make type, corresponding modification operation is executed to the radical to be modified;The modification action type includes:Delete operation is replaced
Change operation.
The specific implementation mode for the modification radical that embodiment disclosed above provides so that the modification that the embodiment of the present disclosure provides
The embodiment of the method for word is flexible, easy.
In one embodiment, described when the modification action type of the second modification instruction instruction is delete operation
Corresponding modification operation is executed to the radical to be modified, including:
The graphemic code of the radical to be modified is changed, so that the radical to be modified is shown as deleted.
The specific implementation mode for the deletion radical that embodiment disclosed above provides so that the modification that the embodiment of the present disclosure provides
The embodiment of the method for word is flexible, easy.
In one embodiment, described when the modification action type of the second modification instruction instruction is replacement operation
Corresponding modification operation is executed to the radical to be modified, including:
By the graphemic code of the radical to be modified, the graphemic code of the radical re-entered is replaced with.
The specific implementation mode for the replacement radical that embodiment disclosed above provides so that the modification that the embodiment of the present disclosure provides
The embodiment of the method for word is flexible, easy.
According to the second aspect of the embodiment of the present disclosure, a kind of modification device of word is provided, including:
Detection module, for when receive to word modify first modification instruction when, to second modification instruct into
Row detection;The second modification instruction, which is used to indicate, modifies at least one component part of the word;
Modified module, for when the detection module detects the second modification instruction, being changed according to described second
The corresponding component part of word described in instruction modification.
In one embodiment, described device further includes:Display module;
The display module, for before the modification instruction of the detection module pair second is detected, distinctly displaying institute
State each component part that word includes.
In one embodiment, the display module is additionally operable to show the word respectively by different display format
Each component part;Or each component part of the word is highlighted by identical or different display format rotation;
The display format includes following one or more:
Line color, background color, display brightness, line weight, display size.
In one embodiment, the display module, including:Determination sub-module, display sub-module;
The determination sub-module, for the mapping between the coding and the coding of each component part according to the word
Relationship determines the coding of each component part;
The display sub-module, the coding of each component part for being determined according to the determination sub-module, respectively
Show each component part.
In one embodiment, each component part that the display module is shown include word included it is each partially
It is other;
Described device further includes:Mapping relations setup module, memory module;
The mapping relations setup module determines that each word includes each radical for being disassembled to each word;
And the machine code of each word and the machine code of each radical in the word are mapped;
The memory module, the machine code for storing the word that the mapping relations setup module maps and institute
State the mapping relations between the machine code of each radical.
In one embodiment, the modified module is additionally operable to be referred to according to the second modification that the detection module detects
The modification action type that the second modification instruction that the radical to be modified indicated and the detection module detect indicates is enabled, it is right
The radical to be modified executes corresponding modification operation;The modification action type includes:Delete operation or replacement operation.
In one embodiment, the modified module is additionally operable to the second modification instruction when the detection module detects
When the modification action type of instruction is delete operation, the graphemic code of the radical to be modified is changed, so that the radical to be modified
It is shown as deleted.
In one embodiment, it is additionally operable to operate when the modification for the second modification instruction instruction that the detection module detects
When type is replacement operation, by the graphemic code of the radical to be modified, the graphemic code of the radical re-entered is replaced with.
According to the third aspect of the embodiment of the present disclosure, a kind of modification device of word is provided, including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
When receive to word modify first modification instruction when, to second modification instruction being detected;Described
Two modification instructions, which are used to indicate, modifies at least one component part of the word;
When detecting the second modification instruction, changes word described in instruction modification according to described second and form accordingly
Part.
The technical solution that the embodiment of the present disclosure provides can include the following benefits:
The amending method and device for the above-mentioned word that the embodiment of the present disclosure provides, when receiving the to modify to word
When one modification instruction, the second modification instruction is detected, when detecting the second modification instruction, is repaiied according to the second modification instruction
Change the corresponding component part of word.The embodiment of the present disclosure is instructed according to the first modification instruction and the second modification, is changed needs
Specified component part in word is modified, can be to avoid user in the related technology to realize the modification to entire word
In the case of input error must the word of deleting input error the problem of re-entering correct word, enrich word input
Mode improves user experience.
It should be understood that above general description and following detailed description is only exemplary and explanatory, not
The disclosure can be limited.
Description of the drawings
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure
Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is the flow chart according to the amending method of the word shown in an exemplary embodiment.
Fig. 2 is shown according to the interface of each component part that word includes of distinctively showing shown in an exemplary embodiment
It is intended to.
Fig. 3 is the boundary for each component part that another shown according to an exemplary embodiment distinctively shows that word includes
Face schematic diagram.
Fig. 4 is according to the flow chart for distinctly displaying each component part that word includes shown in an exemplary embodiment.
Fig. 5 is between coding and the coding of its each component part according to the setting word shown in an exemplary embodiment
The flow chart of mapping relations.
Fig. 6 is the schematic diagram according to graphemic code and corresponding Chinese type matrix shown in an exemplary embodiment.
Fig. 7 A, 7B are the schematic diagrames according to the interface of the modification word shown in an exemplary embodiment.
Fig. 8 is the block diagram for the modification device that word is shown according to an exemplary embodiment.
Fig. 9 is the another block diagram for the modification device that word is shown according to an exemplary embodiment.
Figure 10 is the block diagram according to the display module 91 shown in an exemplary embodiment.
Figure 11 is the block diagram according to the modification device for being suitable for word shown in an exemplary embodiment.
Specific implementation mode
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of flow chart of the amending method of word shown according to an exemplary embodiment, as shown in Figure 1, should
The amending method of word can be used in terminal, include the following steps S11-S12:
In step s 11, when receive to word modify first modification instruction when, to second modification instruction carry out
Detection, wherein the second modification instruction, which is used to indicate, modifies at least one component part of word.
In step s 12, it when detecting the second modification instruction, is formed accordingly according to the second modification instruction modification word
Part.
The amending method for the above-mentioned word that the embodiment of the present disclosure provides is changed when receiving first to modify to word
When instruction, the second modification instruction is detected, when detecting the second modification instruction, according to the second modification instruction modification word
Corresponding component part.The embodiment of the present disclosure is instructed according to the first modification instruction and the second modification, in the word changed needs
Specified component part modify, to realize modification to entire word, can be inputted to avoid user in the related technology wrong
In the case of accidentally must the word of deleting input error the problem of re-entering correct word, enrich the mode that word inputs,
Improve user experience.
Above steps is described in detail below.
In one embodiment, in step s 11, when receive user choose word and touch by preset function button
When operation, it can be confirmed to be to have received the first modification instruction modified to word.
For example, can pre-set one characterization need change word function button, user using mouse action,
Keyboard add mouse action or it is preset choose the modes such as command operation choose some word and touch by the function button when,
Mean that user has issued the instruction for needing to change selected word.
The embodiment of the present disclosure to word is modified first using which kind of specific function button characterization to repairing instruction simultaneously
It does not limit.
In one embodiment, as shown in Fig. 2, before being detected to the second modification instruction in above-mentioned steps S11, may be used also
To execute following step:
Distinctly display each component part that the word includes.
It distinctively shows each component part that word includes, user can be facilitated to distinguish revisable each component part,
And then user's selection is facilitated to want the component part changed.
In the above-described embodiments, it before being detected to the second modification instruction, can distinctly display in several ways
Each component part of the word.Such as:
Show each component part of the word respectively by different display format;Or
Each component part of the word is highlighted by identical or different display format rotation;
Above-mentioned display format may include following one or more:
Line color, background color, display brightness, line weight, display size etc..
In above-described embodiment, using different display format, show each component part of word respectively, or by identical or
The different display format rotation of person highlights each component part of word, distinctively to show that each component part of word provides
Abundant, flexible embodiment.
For example, as shown in Fig. 2, the different component parts of word can be shown by different line weights, with
Just user selects different radicals to modify.Or as shown in figure 3, it can show the word by different sizes
Each radical.
Each component part that the word is highlighted by identical or different format rotation can form apparent differentiation each group
At the display effect of part, user is facilitated to identify that those component parts can be changed independently.Such as protrusion may be used
Background color, different line colors, different color thicknesses highlights each component part, to facilitate use by turns
Family therefrom selects the component part for needing to change.
In one embodiment, in above-mentioned steps S13, each component part that the word includes is distinctly displayed, such as Fig. 4 institutes
Show, may be implemented as following step S41~S42:
In step S41, according to the mapping relations between the coding and the coding of its each component part of word, this article is determined
The coding of each component part of word;
In step S42, according to the word each group at the coding of part, each component part of the word is shown respectively.
Above-described embodiment is distinctively shows that each component part of word provides embodiment party that is simple and convenient, easily realizing
Formula.
By taking Chinese character as an example, Chinese character is usually made of one or more radicals, such as " you " this word, by " Ren " and " that " two
A radical composition, can be according to the mapping relations of the coding of " you " word and the coding of the coding of radical " Ren " and " that ", to user point
Radical " Ren " and " that " are not shown, so that user modifies, achieve the purpose that the entire word of modification.For example, remove " Ren ", it will
" you " word is revised as " that " word, or radical " Ren " is revised as " bending ", to which " you " word is revised as " more " word.
A variety of codings may be used in the coding of word, including:Machine code, international code, region-position code etc. can be marked uniquely
Know the coding for word.
Certainly, the embodiment of the present disclosure, which can be applicable to other, can be split as multiple component parts, and pass through modification
Component part can reach other words for changing entire word, is not limited in Chinese character, no longer illustrates one by one herein.
In one embodiment, each component part includes each radical that word is included, correspondingly, the coding of word and its
Mapping relations between the coding of each component part, as shown in figure 5, can be pre-set by following flows:
In step s 51, each word is disassembled, determines that each word includes each radical.
In step S52, the machine code of each word and the machine code of each radical in the word are mapped.
In step S53, the mapping relations between the machine code of word and the machine code of each radical of the word are stored.
Embodiment disclosed above provides coding and each composition portion of word of a kind of simple, the convenient default word easily realized
The specific implementation of mapping relations between the coding divided.
In above-mentioned steps S52, it is assumed that the machine code of " you " word is 0x3535, and the machine code of " Ren " is 0x1010,
The machine code of " that " is 0x2020, then can pre-establish the index relative of a 0x3535 → (0x1010,0x2020).This
Sample, when user chooses " you " and needs to change this word, so that it may according to the machine code of " you ", to find the machine of " Ren "
The machine code of coding and " that ", to further pass through the machine code of the machine code corresponding graphemic code and " that " of " Ren "
Corresponding graphemic code distinctively shows that " Ren " and " that " the two radicals in " you " this word, instead forward direction are whole to user
Body shows the display effect of " you " this Chinese character.
Each radical that each word and word are included is on computers in order to identify there is unique machine code, together
When, for the needs of display, each word, each radical machine code be corresponding with graphemic code again, graphemic code is in order to by Chinese character
It is exported on display or printer, Chinese character is designed to the obtained corresponding lattice codebook of dot chart by graphical symbol.Often
A graphemic code is 32 bytes, and the font seen on the screen is exactly to be formed by " 0 " and " 1 " of these graphemic codes.As shown in Figure 6
Be the graphemic code of " you " this Chinese character and corresponding Chinese type matrix.
In above-mentioned steps S12, according to the corresponding component part of word described in the second modification instruction modification, it is possible to implement
For:According to the radical to be modified of the second modification instruction instruction and the modification action type of the second modification instruction instruction, this is waited for
It changes radical and executes corresponding modification operation;Wherein, modification action type includes:Delete operation or replacement operation etc..
The specific implementation mode for the modification radical that embodiment disclosed above provides so that the modification that the embodiment of the present disclosure provides
The embodiment of the method for word is flexible, easy.
User can choose radical to be modified in word in several ways, such as position some according to key up and down and wait for
Radical is changed, is either clicked using mouse and selects the modes such as radical to be modified or the preset cursor moving command of input, up and down
Left and right ground selects radical to be modified as needed.The embodiment of the present disclosure is not limited to the above-mentioned specific side for choosing radical to be modified
Formula.As shown in Figure 7 A, can be on interactive interface after choosing radical to be modified, the side in click or striking keyboard
The option that preset modification action type is selected to key, such as is deleted, the option of operation replaced etc., alternatively, pre- by clicking
If function button, send out and need to delete or need to replace the instruction of the radical to be modified.
In one embodiment, when the modification action type of the second modification instruction instruction is delete operation, can pass through
The graphemic code of radical to be modified is changed, so that radical to be modified is shown as deleted.
The specific implementation mode for the deletion radical that embodiment disclosed above provides so that the modification that the embodiment of the present disclosure provides
The embodiment of the method for word is flexible, easy.
After user selects radical to be modified, user can press preset function key by touching, such as touch of key-press disk simultaneously
On ctrl buttons and delete buttons come execute delete the radical to be modified operation, or on interactive interface select delete
Button executes the operation for deleting the radical to be modified.It is, of course, also possible to pass through other predefined functions of being characterized as " deleting "
Key, to indicate to need to delete the radical.For example choose " Ren " this radical in " you " and delete the radical, to which " you " be repaiied
It is changed to " that ".
It, then can be by that will need if necessary to delete " Ren " this radical in " you " for example shown in fig. 6
The mode of the corresponding graphemic code whole zero setting of machine code of the radical of modification realizes the deletion of radical.
Certainly, if graphemic code use the mode opposite with graphemic code in Fig. 6 (in Fig. 6 at the position of " 0 " of graphemic code for
" 1 ", and at the position of " 1 " all it is " 0 "), then it, then can be by that will need if necessary to delete " Ren " this radical in " you "
The corresponding graphemic code of machine code of the radical of modification all sets 1 mode to realize the deletion of radical.
According to the difference of the form of expression of specific graphemic code, corresponding form may be used, the radical is enabled to show
All may be used for deleted all modes.
In one embodiment, it when the modification action type of the second modification instruction instruction is replacement operation, can will wait for
The graphemic code for changing radical, replaces with the graphemic code of the radical re-entered.
The specific implementation mode for the replacement radical that embodiment disclosed above provides so that the modification that the embodiment of the present disclosure provides
The embodiment of the method for word is flexible, easy.
When user has selected to replace some radical to be modified, a kind of mode can be used:As shown in Figure 7 B, show that this is to be repaired
Change the options for other radicals that radical can be replaced, so that the word selection therein one that user inputs as needed
;Another way can be used:The word or radical re-entered is received, as replaced radical, for example chooses " you "
In " Ren " this radical, and receive the radical " bow " that re-enters, the radical re-entered " bow " is replaced " Ren ", and this is inclined
Side, to be revised as " you " " more ".
Or for example with " you " shown in fig. 6, as shown in fig. 6, it is " bow " to replace radical " Ren ":The machine of " Ren " is compiled
The corresponding graphemic code of code replaces with " bow " corresponding graphemic code, to be revised as " you " " more ".In this way, coming from user perspective
It sees, that is, has modified the radical.
Various ways, including handwriting input or other input sides may be used in the mode for re-entering replaced radical
Formula, the embodiment of the present disclosure do not limit this.
Following is embodiment of the present disclosure, can be used for executing embodiments of the present disclosure.
Fig. 8 is a kind of block diagram of the modification device of word shown according to an exemplary embodiment, which can pass through
Software, hardware or both are implemented in combination with as some or all of of electronic equipment.As shown in figure 8, the modification of the word
Device includes:
Detection module 81, for when receive to word modify first modification instruction when, to second modification instruct
It is detected;The second modification instruction, which is used to indicate, modifies at least one component part of the word;
Modified module 82, for when detection module 81 detects the second modification instruction, being instructed according to second modification
Change the corresponding component part of the word.
As shown in figure 9, in one embodiment, the modification device of above-mentioned word can also include:Display module 91;Its
In:
Display module 91, for before detection module 81 is detected the second modification instruction, distinctly displaying the text
Each component part that word includes.
In one embodiment, display module 91 are additionally operable to show each composition of word respectively by different display format
Part;Or each component part of word is highlighted by identical or different display format rotation;
Display format includes following one or more:
Line color, background color, display brightness, line weight, display size.
In one embodiment, display module 91, as shown in Figure 10, including:Determination sub-module 9101, display sub-module
9102;Wherein:
Determination sub-module 9101, for being closed at the mapping between the coding of part according to the coding and the word each group of word
System, determines the coding of each component part;
Display sub-module 9102, the coding of each component part for being determined according to determination sub-module 9101, shows respectively
Each component part.
In one embodiment, each component part includes each radical that word is included, the modification device of above-mentioned word, such as
Shown in Fig. 9, can also include:Mapping relations setup module 92, memory module 93;Wherein:
Mapping relations setup module 92 determines that each word includes each radical for being disassembled to each word;It will
The machine code of each radical is mapped in the machine code and word of each word;
Memory module 93 maps the machine code of obtained word and each radical for storage mapping relationship setup module 92
Machine code between mapping relations.
In one embodiment, above-mentioned modified module 82 is additionally operable to be referred to according to the second modification that detection module 81 detects
The modification action type that the second modification instruction that the radical and detection module 81 to be modified of instruction detects indicates is enabled, is treated
It changes radical and executes corresponding modification operation;Changing action type includes:Delete operation or replacement operation.
In one embodiment, modified module 82 are additionally operable to the second modification instruction instruction when detection module 81 detects
Modification action type be delete operation when, the graphemic code of radical to be modified is changed, so that radical to be modified is shown as deleted.
In one embodiment, modified module 82 are additionally operable to the second modification instruction instruction when detection module 81 detects
Modification action type be replacement operation when, by the graphemic code of the radical to be modified, replace with the word of the radical re-entered
Shape code.
The embodiment of the present disclosure also provides a kind of modification device of word, including:
Processor;
Memory for storing processor-executable instruction;
Wherein, processor is configured as:
When receive to word modify first modification instruction when, to second modification instruction being detected;Second repaiies
Change to instruct to be used to indicate and modify at least one component part of word;
When detecting the second modification instruction, according to the second modification corresponding component part of instruction modification word.
Above-mentioned processor is also configured to:It is described to second modification instruction be detected before, further include:
Distinctly display each component part that the word includes.
Above-mentioned processor is also configured to:Each component part for distinctly displaying the word and including, including:
Show each component part of the word respectively by different display format;Or
Each component part of the word is highlighted by identical or different display format rotation;
The display format includes following one or more:
Line color, background color, display brightness, line weight, display size.
Above-mentioned processor is also configured to:Each component part for distinctly displaying the word and including, including:
According to the mapping relations between the coding and the coding of each component part of the word, each composition is determined
Partial coding;
According to the coding of each component part, each component part is shown respectively.
Above-mentioned processor is also configured to:Each component part includes each radical that word is included;
Mapping relations between the coding and the coding of each component part of the word, are set in advance by following manner
It sets:
Each word is disassembled, determines that each word includes each radical;
The machine code of each word and the machine code of each radical in the word are mapped, the word is stored
Machine code and the machine code of each radical between mapping relations.
Above-mentioned processor is also configured to:It is described to be formed accordingly according to word described in the second modification instruction modification
Part, including:
According to the radical to be modified of the second modification instruction instruction and the modification behaviour of the second modification instruction instruction
Make type, corresponding modification operation is executed to the radical to be modified;The modification action type includes:Delete operation is replaced
Change operation.
Above-mentioned processor is also configured to:When the modification action type of the second modification instruction instruction is delete operation
When, it is described that corresponding modification operation is executed to the radical to be modified, including:
The graphemic code of the radical to be modified is changed, so that the radical to be modified is shown as deleted.
Above-mentioned processor is also configured to:When the modification action type of the second modification instruction instruction is replacement operation
When, it is described that corresponding modification operation is executed to the radical to be modified, including:
By the graphemic code of the radical to be modified, the graphemic code of the radical re-entered is replaced with.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, explanation will be not set forth in detail herein.
Figure 11 is a kind of block diagram of modification device for word shown according to an exemplary embodiment, which is applicable in
In terminal device.For example, device 1100 can be mobile phone, and computer, digital broadcast terminal, messaging devices, game
Console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc..
Device 1100 may include following one or more components:Processing component 1102, memory 1104, power supply module
1106, multimedia component 1108, audio component 1110, the interface 1112 of input/output (I/O), sensor module 1114, and
Communication component 1116.
The integrated operation of 1102 usual control device 1100 of processing component, such as with display, call, data communication,
Camera operation and record operate associated operation.Processing element 1102 may include one or more processors 1120 to execute
Instruction, to perform all or part of the steps of the methods described above.In addition, processing component 1102 may include one or more moulds
Block, convenient for the interaction between processing component 1102 and other assemblies.For example, processing component 1102 may include multi-media module,
To facilitate the interaction between multimedia component 1108 and processing component 1102.
Memory 1104 is configured as storing various types of data to support the operation in equipment 1100.These data
Example includes the instruction for any application program or method that are operated on device 1100, contact data, telephone book data,
Message, picture, video etc..Memory 1104 can by any kind of volatibility or non-volatile memory device or they
Combination is realized, such as static RAM (SRAM), electrically erasable programmable read-only memory (EEPROM), it is erasable can
Program read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory
Reservoir, disk or CD.
Electric power assembly 1106 provides electric power for the various assemblies of device 1100.Electric power assembly 1106 may include power management
System, one or more power supplys and other generated with for device 1100, management and the associated component of distribution electric power.
Multimedia component 1108 is included in the screen of one output interface of offer between described device 1100 and user.
In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel,
Screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes that one or more touch passes
Sensor is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding is dynamic
The boundary of work, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more
Media component 1108 includes a front camera and/or rear camera.When equipment 1100 is in operation mode, mould is such as shot
When formula or video mode, front camera and/or rear camera can receive external multi-medium data.Each preposition camera shooting
Head and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 1110 is configured as output and/or input audio signal.For example, audio component 1110 includes a wheat
Gram wind (MIC), when device 1100 is in operation mode, when such as call model, logging mode and speech recognition mode, microphone quilt
It is configured to receive external audio signal.The received audio signal can be further stored in memory 1104 or via communication
Component 1116 is sent.In some embodiments, audio component 1110 further includes a loud speaker, is used for exports audio signal.
I/O interfaces 1112 provide interface, above-mentioned peripheral interface module between processing component 1102 and peripheral interface module
Can be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and
Locking press button.
Sensor module 1114 includes one or more sensors, and the state for providing various aspects for device 1100 is commented
Estimate.For example, sensor module 1114 can detect the state that opens/closes of equipment 1100, the relative positioning of component, such as institute
The display and keypad that component is device 1100 are stated, sensor module 1114 can be with detection device 1100 or device 1,100 1
The position change of a component, the existence or non-existence that user contacts with device 1100,1100 orientation of device or acceleration/deceleration and dress
Set 1100 temperature change.Sensor module 1114 may include proximity sensor, be configured in not any physics
It is detected the presence of nearby objects when contact.Sensor module 1114 can also include optical sensor, as CMOS or ccd image are sensed
Device, for being used in imaging applications.In some embodiments, which can also include acceleration sensing
Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 1116 is configured to facilitate the communication of wired or wireless way between device 1100 and other equipment.Dress
The wireless network based on communication standard, such as WiFi can be accessed by setting 1100,2G or 3G or combination thereof.It is exemplary at one
In embodiment, communication component 1116 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel
Information.In one exemplary embodiment, the communication component 1116 further includes near-field communication (NFC) module, to promote short distance
Communication.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module
(UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 1100 can be by one or more application application-specific integrated circuit (ASIC), number
Signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, it includes the non-transitorycomputer readable storage medium instructed, example to additionally provide a kind of
Such as include the memory 1104 of instruction, above-metioned instruction can be executed by the processor 1120 of device 1100 to complete the above method.Example
Such as, the non-transitorycomputer readable storage medium can be ROM, it is random access memory (RAM), CD-ROM, tape, soft
Disk and optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of device 1100
When device executes so that device 1100 is able to carry out the amending method of above-mentioned word, the method includes:
When receive to word modify first modification instruction when, to second modification instruction being detected;Described
Two modification instructions, which are used to indicate, modifies at least one component part of the word;
When detecting the second modification instruction, changes word described in instruction modification according to described second and form accordingly
Part.
The amending method and device for the above-mentioned word that the embodiment of the present disclosure provides, when receiving the to modify to word
When one modification instruction, the second modification instruction is detected, when detecting the second modification instruction, is repaiied according to the second modification instruction
Change the corresponding component part of word.The embodiment of the present disclosure is instructed according to the first modification instruction and the second modification, is changed needs
Specified component part in word is modified, can be to avoid user in the related technology to realize the modification to entire word
In the case of input error must the word of deleting input error the problem of re-entering correct word, enrich word input
Mode improves user experience.
Those skilled in the art will readily occur to its of the disclosure after considering specification and putting into practice disclosure disclosed herein
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Person's adaptive change follows the general principles of this disclosure and includes the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following
Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.
Claims (12)
1. a kind of amending method of word, which is characterized in that including:
When receive to word modify first modification instruction when, to second modification instruction being detected;Described second repaiies
Change to instruct to be used to indicate and modify at least one component part of the word;
When detecting the second modification instruction, the composition portion accordingly of word described in instruction modification is changed according to described second
Point;
It is described to second modification instruction be detected before, further include:
Distinctly display each component part that the word includes;
Each component part for distinctly displaying the word and including, including:
According to the mapping relations between the coding and the coding of each component part of the word, each component part is determined
Coding;
According to the coding of each component part, each component part is shown respectively.
2. the method as described in claim 1, which is characterized in that each component part for distinctly displaying the word and including,
Including:
Show each component part of the word respectively by different display format;Or
Each component part of the word is highlighted by identical or different display format rotation;
The display format includes following one or more:
Line color, background color, display brightness, line weight, display size.
3. the method as described in claim 1, which is characterized in that each component part includes each radical that word is included;
Mapping relations between the coding and the coding of each component part of the word, are pre-set by following manner:
Each word is disassembled, determines that each word includes each radical;
The machine code of each word and the machine code of each radical in the word are mapped, the machine of the word is stored
Device encodes the mapping relations between the machine code of each radical.
4. method as claimed in claim 3, which is characterized in that described to change word phase described in instruction modification according to described second
The component part answered, including:
Class is operated according to the modification of the radical to be modified of the second modification instruction instruction and the second modification instruction instruction
Type executes corresponding modification operation to the radical to be modified;The modification action type includes:Delete operation replaces behaviour
Make.
5. method as claimed in claim 4, which is characterized in that when the modification action type of the second modification instruction instruction is
It is described that corresponding modification operation is executed to the radical to be modified when delete operation, including:
The graphemic code of the radical to be modified is changed, so that the radical to be modified is shown as deleted.
6. method as claimed in claim 4, which is characterized in that when the modification action type of the second modification instruction instruction is
It is described that corresponding modification operation is executed to the radical to be modified when replacement operation, including:
By the graphemic code of the radical to be modified, the graphemic code of the radical re-entered is replaced with.
7. a kind of modification device of word, which is characterized in that including:
Detection module, for when receive to word modify first modification instruction when, to second modification instruction examine
It surveys;The second modification instruction, which is used to indicate, modifies at least one component part of the word;
Modified module, for when the detection module detects the second modification instruction, being instructed according to second modification
Change the corresponding component part of the word;
Display module;
The display module, for before the modification instruction of the detection module pair second is detected, distinctly displaying the text
Each component part that word includes;
The display module includes:Determination sub-module, display sub-module;
The determination sub-module is closed for the mapping between the coding and the coding of each component part according to the word
System, determines the coding of each component part;
The display sub-module, the coding of each component part for being determined according to the determination sub-module, shows respectively
Each component part.
8. device as claimed in claim 7, which is characterized in that
The display module is additionally operable to show each component part of the word respectively by different display format;Or pass through
Identical or different display format rotation highlights each component part of the word;
The display format includes following one or more:
Line color, background color, display brightness, line weight, display size.
9. device as claimed in claim 7, which is characterized in that
Each component part that the display module is shown includes each radical that word is included;
Described device further includes:Mapping relations setup module, memory module;
The mapping relations setup module determines that each word includes each radical for being disassembled to each word;And it will
The machine code and the machine code of each radical in the word of each word are mapped;
The memory module, machine code for storing the word that the mapping relations setup module maps and described each
Mapping relations between the machine code of radical.
10. device as claimed in claim 9, which is characterized in that
The modified module is additionally operable to the radical to be modified of the second modification instruction instruction detected according to the detection module,
And the second modification that the detection module detects instructs the modification action type indicated, and phase is executed to the radical to be modified
The modification operation answered;The modification action type includes:Delete operation or replacement operation.
11. device as claimed in claim 10, which is characterized in that
The modified module, the modification action type that the second modification instruction for being additionally operable to detect when the detection module indicates are
When delete operation, the graphemic code of the radical to be modified is changed, so that the radical to be modified is shown as deleted.
12. device as claimed in claim 10, which is characterized in that
The modified module, the modification action type that the second modification instruction for being additionally operable to detect when the detection module indicates are
When replacement operation, by the graphemic code of the radical to be modified, the graphemic code of the radical re-entered is replaced with.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510532508.0A CN105159874B (en) | 2015-08-26 | 2015-08-26 | The amending method and device of word |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510532508.0A CN105159874B (en) | 2015-08-26 | 2015-08-26 | The amending method and device of word |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105159874A CN105159874A (en) | 2015-12-16 |
CN105159874B true CN105159874B (en) | 2018-09-11 |
Family
ID=54800733
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510532508.0A Active CN105159874B (en) | 2015-08-26 | 2015-08-26 | The amending method and device of word |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105159874B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105653057B (en) * | 2015-12-23 | 2018-06-05 | 小米科技有限责任公司 | Export the method and device of alternative characters |
CN106527479B (en) | 2016-11-29 | 2017-12-12 | 广州极飞科技有限公司 | A kind of control method and device of unmanned plane |
CN110442313B (en) * | 2019-06-27 | 2021-09-21 | 华为技术有限公司 | Display attribute adjusting method and related equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1194396A (en) * | 1997-03-26 | 1998-09-30 | 陈伟 | Chinese character input method of stroke code |
CN103365446A (en) * | 2012-03-28 | 2013-10-23 | 联想(北京)有限公司 | Handwriting input method and device |
CN104317780A (en) * | 2014-09-28 | 2015-01-28 | 无锡卓信信息科技有限公司 | Quick correction method of Chinese input texts |
-
2015
- 2015-08-26 CN CN201510532508.0A patent/CN105159874B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1194396A (en) * | 1997-03-26 | 1998-09-30 | 陈伟 | Chinese character input method of stroke code |
CN103365446A (en) * | 2012-03-28 | 2013-10-23 | 联想(北京)有限公司 | Handwriting input method and device |
CN104317780A (en) * | 2014-09-28 | 2015-01-28 | 无锡卓信信息科技有限公司 | Quick correction method of Chinese input texts |
Also Published As
Publication number | Publication date |
---|---|
CN105159874A (en) | 2015-12-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104503689B (en) | Application interface display methods and device | |
CN107832036B (en) | Voice control method, device and computer readable storage medium | |
EP3454196B1 (en) | Method and apparatus for editing object | |
CN105487749B (en) | The method for sorting and device of application icon | |
US20150268813A1 (en) | Method and system for controlling movement of cursor in an electronic device | |
CN104486451B (en) | Application program recommends method and device | |
CN104793843B (en) | desktop display method and device | |
JP2013257694A (en) | Device, method, and program | |
KR20080068491A (en) | Touch type information inputting terminal, and method thereof | |
JP2013238935A (en) | Input device, input device controlling method, controlling program, and recording medium | |
CN104536935B (en) | Calculate display methods, calculate edit methods and device | |
CN108595074A (en) | Status bar operating method, device and computer readable storage medium | |
CN104461348B (en) | Information choosing method and device | |
CN104679599A (en) | Application program duplicating method and device | |
CN104216973B (en) | A kind of method and device of data search | |
CN104536684A (en) | Interface displaying method and device | |
CN105975156A (en) | Application interface display method and device | |
KR20140089224A (en) | Device and method for executing operation based on touch-input | |
CN105487805A (en) | Object operating method and device | |
CN106802808A (en) | Suspension button control method and device | |
CN104267881A (en) | Toolbar operating method and device | |
CN106648141A (en) | Candidate word display method and device | |
CN105159874B (en) | The amending method and device of word | |
CN107767211A (en) | Product control methods, device and storage medium based on augmented reality | |
CN106503131A (en) | Obtain the method and device of interest information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |