Summary of the invention
In view of the above technical problems, this specification embodiment provides a kind of word display methods and device based on pronunciation,
Technical solution is as follows:
According to this specification embodiment in a first aspect, providing a kind of word display methods based on pronunciation, this method packet
It includes:
Determine target word, the target word is the word that display foundation unit is polyphone, in default pronunciation table
It is searched, is determined in the default pronunciation table with the presence or absence of target word;
If there are target words in the default pronunciation table, by the target word corresponding reading in default pronunciation table
Sound shows the target word as display foundation;
If target word is not present in the default pronunciation table, pronunciation self defined interface is provided, so that user is to described
The pronunciation progress of target word is customized, using the pronunciation in customized result as display foundation, carries out to the target word
Display.
According to the second aspect of this specification embodiment, a kind of word display device based on pronunciation, the device packet are provided
It includes:
Pronunciation searching module: for determining that target word, the target word are the word that display foundation unit is polyphone
Language is searched in default pronunciation table, is determined in the default pronunciation table with the presence or absence of target word;
First display module;For in the default pronunciation table there are when target word, by the target word pre-
If corresponding pronunciation shows the target word as display foundation in pronunciation table;
Second display module: for pronunciation is customized to be connect there is no providing when target word in the default pronunciation table
Mouthful, so that user is customized to the pronunciation progress of the target word, it is right using the pronunciation in customized result as display foundation
The target word is shown.
According to the third aspect of this specification embodiment, a kind of computer equipment is provided, including memory, processor and deposit
Store up the computer program that can be run on a memory and on a processor, wherein the processor is realized when executing described program
A kind of word display methods based on pronunciation, this method comprises:
Determine target word, the target word is the word that display foundation unit is polyphone, in default pronunciation table
It is searched, is determined in the default pronunciation table with the presence or absence of target word;
If there are target words in the default pronunciation table, by the target word corresponding reading in default pronunciation table
Sound shows the target word as display foundation;
If target word is not present in the default pronunciation table, pronunciation self defined interface is provided, so that user is to described
The pronunciation progress of target word is customized, using the pronunciation in customized result as display foundation, carries out to the target word
Display.
Technical solution provided by this specification embodiment provides a kind of word display methods and dress based on pronunciation
Set, system initiative recognition goes out whether word is polyphonic word, and active warning user according to the habit of oneself to aobvious in polyphonic word
Show according to unit, as to carry out word tone customized for the first Chinese character of word, and customized result be stored in default syllabary, with
When the subsequent lookup word in family, display position is determined according to definition of the user in default syllabary, promotes user experience.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
This specification embodiment can be limited.
In addition, any embodiment in this specification embodiment does not need to reach above-mentioned whole effects.
Specific embodiment
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 embodiments consistent with this specification.On the contrary, they are only and such as institute
The example of the consistent device and method of some aspects be described in detail in attached claims, this specification.
It is only to be not intended to be limiting this explanation merely for for the purpose of describing particular embodiments in the term that this specification uses
Book.The "an" of used singular, " described " and "the" are also intended to packet in this specification and in the appended claims
Most forms are included, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein is
Refer to and includes that one or more associated any or all of project listed may combine.
It will be appreciated that though various information may be described using term first, second, third, etc. in this specification, but
These information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not taking off
In the case where this specification range, the first information can also be referred to as the second information, and similarly, the second information can also be claimed
For the first information.Depending on context, word as used in this " if " can be construed to " ... when " or
" when ... " or " in response to determination ".
In the function of being related to name sequence (such as: address list), it will usually pass through first Chinese character in name
Pronunciation, as the foundation of sequence, such as: Lee (Li) four, (Zhang) three, since L ratio Z is forward in alphabet, so Li Si
It can come before Zhang San.With reference to Fig. 1, in this way, a kind of orderly organizational form can establish, so that user looks into
It askes.
But when polyphone occurs in first Chinese character, sortord just will appear ambiguity, and such as: enemy (chou/qiu) thousand
Ren, two different articulation types may allow the name to appear in the different location of list, and such case will increase user and seek
The difficulty looked for, influences user experience.
In view of the above problems, this specification embodiment provides a kind of word display methods and a kind of use based on pronunciation
In the word display device based on pronunciation for the service product for executing this method.Below to the present embodiment be related to based on pronunciation
Word display methods is described in detail, shown in Figure 2, and this method may comprise steps of:
S201 determines that target word, the target word are the word that display foundation unit is polyphone;
Display is used to determine the display mode of target word according to unit.With multiple name words in Fig. 1 address list into
Row citing, in address list, when name word is English, some letter with name word is display according to unit;Work as surname
It is display according to unit with the phonetic of some Chinese character of name word when name word is Chinese.It will according to display foundation unit
Corresponding grouping is added in name word, and such as Fig. 1 will be added in grouping " C " according to display according to unit with " C " correlation word.
When word is Chinese character, usually name word is shown and is set as the first Chinese character of word according to unit, such as is communicated
Name Lee (Li) four, (Zhang) three recorded in record, wherein Lee (Li) and (Zhang) are two name words respectively
Display is according to unit.Display according to unit can also situation sets itself according to actual needs, such as set it in word
Between Chinese character etc..
S202 is searched in default pronunciation table, is determined with the presence or absence of target word in the default pronunciation table, if in advance
If there are target words in pronunciation table, step S203 is executed, if target word is not present in default pronunciation table, executes step
S204;
S203, using the target word, corresponding pronunciation is as display foundation in default pronunciation table, to the target word
Language is shown;
To target word carry out display can be by target word according to display according to be placed on the different location of list into
Row display is also possible to according to display according to being divided into different grouping the target word such as show.
S204 provides pronunciation self defined interface, so that user is customized to the pronunciation progress of the target word, will make by oneself
Pronunciation in adopted result shows the target word as display foundation;
Pronunciation self defined interface is provided, so that user is carried out customized mode to the pronunciation of the target word has very much
Kind.Specifically, input frame can be provided a user, makes the pronunciation of user's polyphone in target word in input frame, and according to this
Pronunciation shows the target word as display foundation;
Or, a variety of pronunciation options of target word are shown to user, so that user carries out in a variety of pronunciation options
Selection, and the target word is shown as display foundation according to the pronunciation in the option.Wherein, polyphone is more
Kind pronunciation option can be obtained by connection server inquiry, and a variety of pronunciation options of polyphone can also be stored in advance in this
Ground is obtained by local search.
This specification embodiment also provides a kind of word display methods more specifically based on pronunciation, shown in Figure 3,
This method may comprise steps of:
S301 determines word to be shown;
S302 judges whether the display foundation unit of the word is polyphone, if the display of the word is according to unit
For polyphone, step S303. is executed, if the display of the word is not polyphone according to unit, executes step S309;
The word is determined as target word by S303;
S304 is searched in default pronunciation table, is determined with the presence or absence of target word in the default pronunciation table, if in advance
If there are target words in pronunciation table, step S305 is executed, if target word is not present in default pronunciation table, executes step
S306;
S305, using the target word, corresponding pronunciation is as display foundation in default pronunciation table, to the target word
Language is shown;
S306, to user show target word a variety of pronunciation options so that user in a variety of pronunciation options into
Row selection;
S307 receives the selection result of user, using the selection result as the customized knot of pronunciation of the target word
Fruit;
Customized result is updated to default pronunciation table by S308.
S309 shows the word for the default pronunciation of the word as display foundation.
Specifically, it with reference to Fig. 4 a, Fig. 4 b, Fig. 4 c, is illustrated with the name " thousand ren of enemy (chou/qiu) " in address list
Explanation, wherein the first Chinese character (display is according to unit) " enemy " in " thousand ren of enemy (chou/qiu) " is polyphone, triggers the polyphone
Judgement can there are many modes, such as: user inputs " thousand ren of enemy (chou/qiu) " and carries out the relevant address list of the name
It saves and can trigger polyphone judgement, or, when importing the record of " thousand ren of enemy (chou/qiu) " associated communication from server or other positions
Trigger polyphone judgement.After judging first Chinese character (display is according to unit) " enemy " and being polyphone, as shown in fig. 4 a, enemy (chou/ is shown
Qiu two kinds of pronunciations) are for selection by the user;As shown in Fig. 4 b and Fig. 4 c, if user selects pronunciation enemy (chou), by the name
It is shown in grouping " C ", if user selects pronunciation enemy (qiu), which is shown in grouping " q ".
It should be noted that the same polyphone can be customized for different pronunciations by user in different terms, such as
Correlation word comprising " enemy (chou/qiu) " is customized for " thousand ren of enemy (qiu) " and " enemy (chou) English " respectively.Another user
Carrying out customized purpose is to facilitate user subsequent according to the pronunciation of oneself definition in list or the packet lookup word.
After showing different pronunciation options to user, user may be not aware that select for which pronunciation, can refer to
Fig. 5 further provides a user more humane pronunciation option exhibition method, comprising the following steps:
S501 shows a variety of pronunciation options of target word to user, and according to preset mark strategy to the pronunciation
Option is indicated;
S502 inquires the right pronunciation of target word in dictionary, shows in the correct laggard rower of pronunciation option.
S503 is selected in user's selection percentage of a variety of pronunciation options of server-side inquiry target word in the user
The highest laggard rower of pronunciation option of ratio shows.
Corresponding to above method embodiment, this specification embodiment also provides a kind of word display device based on pronunciation,
It is shown in Figure 6, the apparatus may include: pronunciation searching module 610, the first display module 620, the second display module 630.
Pronunciation searching module 610: for determining that target word, the target word are that display foundation unit is polyphone
Word is searched in default pronunciation table, is determined in the default pronunciation table with the presence or absence of target word;
First display module 620: for, there are when target word, the target word being existed in the default pronunciation table
Corresponding pronunciation shows the target word as display foundation in default pronunciation table;
Second display module 630: when for target word to be not present in the default pronunciation table, it is customized to provide pronunciation
Interface so that user the pronunciation of the target word is carried out it is customized, using the pronunciation in customized result as showing foundation,
The target word is shown.
This specification embodiment also provides a kind of computer equipment, includes at least memory, processor and is stored in
On reservoir and the computer program that can run on a processor, wherein processor is realized aforementioned based on reading when executing described program
The word display methods of sound, the method include at least:
Determine target word, the target word is the word that display foundation unit is polyphone, in default pronunciation table
It is searched, is determined in the default pronunciation table with the presence or absence of target word;
If there are target words in the default pronunciation table, by the target word corresponding reading in default pronunciation table
Sound shows the target word as display foundation;
If target word is not present in the default pronunciation table, pronunciation self defined interface is provided, so that user is to described
The pronunciation progress of target word is customized, using the pronunciation in customized result as display foundation, carries out to the target word
Display.
Fig. 7 shows one kind provided by this specification embodiment and more specifically calculates device hardware structural schematic diagram,
The equipment may include: processor 1010, memory 1020, input/output interface 1030, communication interface 1040 and bus
1050.Wherein processor 1010, memory 1020, input/output interface 1030 and communication interface 1040 are real by bus 1050
The now communication connection inside equipment each other.
Processor 1010 can use general CPU (Central Processing Unit, central processing unit), micro- place
Reason device, application specific integrated circuit (Application Specific Integrated Circuit, ASIC) or one
Or the modes such as multiple integrated circuits are realized, for executing relative program, to realize technical side provided by this specification embodiment
Case.
Memory 1020 can use ROM (Read Only Memory, read-only memory), RAM (Random Access
Memory, random access memory), static storage device, the forms such as dynamic memory realize.Memory 1020 can store
Operating system and other applications are realizing technical solution provided by this specification embodiment by software or firmware
When, relevant program code is stored in memory 1020, and execution is called by processor 1010.
Input/output interface 1030 is for connecting input/output module, to realize information input and output.Input and output/
Module can be used as component Configuration (not shown) in a device, can also be external in equipment to provide corresponding function.Wherein
Input equipment may include keyboard, mouse, touch screen, microphone, various kinds of sensors etc., output equipment may include display,
Loudspeaker, vibrator, indicator light etc..
Communication interface 1040 is used for connection communication module (not shown), to realize the communication of this equipment and other equipment
Interaction.Wherein communication module can be realized by wired mode (such as USB, cable etc.) and be communicated, can also be wirelessly
(such as mobile network, WIFI, bluetooth etc.) realizes communication.
Bus 1050 include an access, equipment various components (such as processor 1010, memory 1020, input/it is defeated
Outgoing interface 1030 and communication interface 1040) between transmit information.
It should be noted that although above equipment illustrates only processor 1010, memory 1020, input/output interface
1030, communication interface 1040 and bus 1050, but in the specific implementation process, which can also include realizing normal fortune
Other assemblies necessary to row.In addition, it will be appreciated by those skilled in the art that, it can also be only comprising real in above equipment
Component necessary to existing this specification example scheme, without including all components shown in figure.
This specification embodiment also provides a kind of computer readable storage medium, is stored thereon with computer program, the journey
Realize that the word display methods above-mentioned based on pronunciation, the method include at least when sequence is executed by processor:
Determine target word, the target word is the word that display foundation unit is polyphone, in default pronunciation table
It is searched, is determined in the default pronunciation table with the presence or absence of target word;
If there are target words in the default pronunciation table, by the target word corresponding reading in default pronunciation table
Sound shows the target word as display foundation;
If target word is not present in the default pronunciation table, pronunciation self defined interface is provided, so that user is to described
The pronunciation progress of target word is customized, using the pronunciation in customized result as display foundation, carries out to the target word
Display.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality
Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit
The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with
It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual
The purpose for needing to select some or all of the modules therein to realize this specification scheme.Those of ordinary skill in the art are not
In the case where making the creative labor, it can understand and implement.
As seen through the above description of the embodiments, those skilled in the art can be understood that this specification
Embodiment can be realized by means of software and necessary general hardware platform.Based on this understanding, this specification is implemented
Substantially the part that contributes to existing technology can be embodied in the form of software products the technical solution of example in other words,
The computer software product can store in storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions are to make
It is each to obtain computer equipment (can be personal computer, server or the network equipment etc.) execution this specification embodiment
Method described in certain parts of a embodiment or embodiment.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity,
Or it is realized by the product with certain function.A kind of typically to realize that equipment is computer, the concrete form of computer can
To be personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play
In device, navigation equipment, E-mail receiver/send equipment, game console, tablet computer, wearable device or these equipment
The combination of any several equipment.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device reality
For applying example, since it is substantially similar to the method embodiment, so describing fairly simple, related place is referring to embodiment of the method
Part explanation.The apparatus embodiments described above are merely exemplary, wherein described be used as separate part description
Module may or may not be physically separated, can be each module when implementing this specification example scheme
Function realize in the same or multiple software and or hardware.Can also select according to the actual needs part therein or
Person's whole module achieves the purpose of the solution of this embodiment.Those of ordinary skill in the art are not the case where making the creative labor
Under, it can it understands and implements.
The above is only the specific embodiment of this specification embodiment, it is noted that for the general of the art
For logical technical staff, under the premise of not departing from this specification embodiment principle, several improvements and modifications can also be made, this
A little improvements and modifications also should be regarded as the protection scope of this specification embodiment.