The output intent of Chinese-character phonetic letter character and the output device of Chinese-character phonetic letter character
Technical field
The present invention relates to Chinese-character phonetic letter character technical field, in particular to a kind of output side of Chinese-character phonetic letter character
The output device of method and Chinese-character phonetic letter character.
Background technology
In fields such as Chinese teaching, print publishing, children's book, captions, it is often necessary to give Chinese character adding phonetic, mesh
The preceding method to Chinese character adding phonetic is manually filled or using composing tools, such as:Filled in Word document, each Chinese character
Adding phonetic at least needs following 7 steps:
1st, first in Word document input Chinese character (such as:" red "), select;
2nd, the Format For menu is selected;
3rd, " Chinese format " option under the Format For menu is selected;
4th, " phonetic guide " option under " Chinese format " option is selected;
5th, prompting frame now is ejected in Word document, shows hong2 printed words, 2 and o deleted, and position a cursor over h
Between n;
6th, Chinese character coding input method is recalled, with the soft keyboard mark for clicking Chinese character coding input method by mouse right button, then selects " phonetic word
It is female ", phonetic " ó " (" U keys ") is at this moment selected from the soft keyboard of ejection, there have been " h ó ng " words;
7th, click on " it is determined that ", the filling of " red " word phonetic is completed.
Although Chinese character adding phonetic can be given in this way, because each Chinese character of such a method is required to enter one by one
The matching phonetic of 7 steps of row is to complete the filling of phonetic, and complex steps repeat, and operating efficiency is extremely low, even in higher
In the Word document of version can directly by click on " phonetic guide " icon, click on " it is determined that " be Chinese character batch adding phonetic,
But after adding phonetic Chinese character up and down typesetting it is long, it is phonetic alphabet between left and right every it is loose easily dislocation, can only be a position
Adding phonetic, many restrictions such as a phonetic are only able to display, have had a strong impact on the aesthetic property of Chinese-character phonetic letter character typesetting.
Therefore, the efficiency of adding phonetic how is improved, the aesthetic property of lifting Chinese-character phonetic letter character typesetting turns into urgently to be resolved hurrily
Technical problem.
The content of the invention
In view of the technical problem occurred in correlation technique, the invention provides a kind of output of new Chinese-character phonetic letter character
Technology, by technical scheme, using phonetic character library, directly export Chinese-character phonetic letter character, and phonetic and Chinese Character
The relative position of symbol can be adjusted, and improve the efficiency of adding phonetic, while improve the aesthetic property of Chinese-character phonetic letter character typesetting.
According to an aspect of the invention, there is provided a kind of output intent of Chinese-character phonetic letter character, including:Establish Chinese character,
Encoding of chinese characters and the set of phonetic element corresponding relation;The corresponding Chinese is found out from the set according to the encoding of chinese characters of download
Word, searched out from existing character library chinese character font corresponding with the Chinese character found out GLYPH (tag mark, character
The physical representations of given font, system are the tag mark of each font type distribution) data, and by the Chinese Character
The GLYPH data phonetic font GLYPH curved profile data corresponding with the encoding of chinese characters of symbol font are overlapped, with generation
Phonetic character library, wherein, the existing character library includes Chinese character, encoding of chinese characters, the GLYPH data of chinese character font, phonetic font
GLYPH curved profiles data and its corresponding relation;Using the phonetic character library, Chinese-character phonetic letter character is exported.
In the technical scheme, by by the GLYPH data of chinese character font and phonetic font GLYPH curved profile numbers
Phonetic character library is generated according to superposition so that when using phonetic character library output chinese character, Chinese-character phonetic letter character can be directly exported,
And the Chinese character that can be exported as needed, different phonetic is selected, with needing in the prior art for each Chinese character adding phonetic
Compare, improve the efficiency of adding phonetic, and solve the problems, such as that a Chinese character can only fill a phonetic in the prior art.
Wherein, by establishing Chinese character, encoding of chinese characters, the set of phonetic element corresponding relation, in that context it may be convenient to compiled with Chinese character
Code is bridge, the GLYPH data of chinese character font corresponding to encoding of chinese characters is found in existing character library, while pass through Chinese character
The corresponding relation of coding and phonetic element, finds phonetic font GLYPH curves corresponding with encoding of chinese characters in existing character library
Outline data, by the GLYPH data of chinese character font corresponding to same encoding of chinese characters and phonetic font GLYPH curved profiles
Data are overlapped the Chinese-character phonetic letter character for generating the Chinese character, and then generate phonetic character library.
Certainly, when needing to export Chinese-character phonetic letter character, phonetic character library can be used directly and exported, can also first use
Other character libraries export Chinese character, the font then used according to other character libraries, and calling corresponds to the display effect of the phonetic character library of font,
Can be all Chinese character adding phonetics.
In the above-mentioned technical solutions, it is preferable that described to establish Chinese character, encoding of chinese characters and the set of phonetic element corresponding relation
The step of be:For each Chinese character adding phonetic, each Chinese character is set to correspond at least one phonetic element;To described at least one
Phonetic element establishes index according to the sequencing of letter-sound, to establish the multiple phonetic element and the phonetic profile
The mapping relations of GLYPH curves.
In the technical scheme, by for each Chinese character adding phonetic, and multiple phonetics are filled for polyphone, formed
Whole phonetic transcriptions of Chinese characters data, indexed after arranging phonetic transcriptions of Chinese characters data according to letter-sound order for the foundation of phonetic element, Ke Yifang
Just phonetic element is searched by encoding of chinese characters, and then by phonetic element index in character library fast positioning to phonetic font
GLYPH curved profile data.
In the above-mentioned technical solutions, it is preferable that the phonetic font GLYPH curved profiles data are by replicating, the side of stickup
The GLYPH data of formula and the chinese character font are overlapped, and adjust the phonetic font GLYPH curved profiles data and institute
Distance and/or the direction of the GLYPH data investigations of chinese character font are stated, phonetic and the Chinese in Chinese-character phonetic letter character are exported to change
The distance of word and/or direction.
In the technical scheme, by by phonetic font GLYPH curved profile data corresponding to current chinese character, directly
Replicate, paste in current chinese character font GLYPH data, and ensure that Chinese character and phonetic will not be covered mutually, wherein, Chinese character
Spacing, relative position position and direction between phonetic can be by adjusting phonetic font GLYPH curved profile data
Position be adjusted, so as to realize each chinese character font GLYPH curved profiles and phonetic font GLYPH curved profiles
Static state superposition.
Distance, the direction of such a mode due to can directly adjust Chinese character and phonetic etc., the left side with phonetic in the prior art
The loose easily dislocation of right septum is compared, and improves the aesthetic property of Chinese-character phonetic letter character typesetting, but because phonetically similar word is excessive, can lead
Cause have identical phonetic contour curve Data duplication storage, and can not the distance between adjustment in batches phonetic and Chinese character, relatively
Position, direction, therefore, the phonetic character library that such a mode generates are applied to insensitive to memory space and require high to aesthetics
Occasion.
In the above-mentioned technical solutions, it is preferable that adjust the position coordinates ginseng of the phonetic font GLYPH curved profile data
Number, by the phonetic font GLYPH curved profiles data Jing Guo position adjustment and the GLYPH data of the chinese character font
It is overlapped, adjusts the position coordinate parameters of the phonetic font GLYPH curved profile data, Chinese-character phonetic letter word is exported to change
Distance and/or direction of the phonetic described in symbol with the Chinese character.
In the technical scheme, by adjusting the position coordinate parameters of phonetic font GLYPH curved profile data, by phonetic
On X that the GLYPH curved profiles of font GLYPH curved profiles data dynamic assignment to chinese character font are specified, Y-coordinate, lead to
The continuous dynamic for crossing position coordinate parameters adjusts, and can adjust phonetic showing in Chinese character different azimuth, namely pass through position
Coordinate parameters adjustment is put, phonetic dynamic corresponding to Chinese character can be assigned on the different position of each Chinese character, including Chinese character
Upper and lower, left and right and positive and negative two-way, a Chinese character can only specify a phonetic, can also specify multiple different phonetics.
Such a mode is due to that can pass through the dynamic adjustment of adjustment position coordinate parameters the distance between Chinese character and phonetic, direction
Deng, therefore the position adjustment of phonetic has very strong flexibility in Chinese-character phonetic letter character, simultaneously as can be shared with multiple words same
(during multiple word unisonances, each word has respective position coordinate parameters to one phonetic font GLYPH contour curve, but can share
Phonetic font GLYPH contour curves), especially save memory space, but also can batch dynamic adjustment Chinese character and phonetic it
Between position and direction etc., but due to can dynamically adjust, from being adjusted to generate phonetic character library, relative to directly duplication
, it is necessary to take some time, the phonetic character library that such a mode generates is applied to sensitive to memory space and flexibility is wanted speech more
Seek high occasion.
In the above-mentioned technical solutions, it is preferable that when the Chinese character is polyphone, by multiple spellings corresponding to the Chinese character
Multiple phonetic font GLYPH curved profiles data of tone part are superimposed upon the chinese character font corresponding with the Chinese character
GLYPH data on.
In the technical scheme, when Chinese character is polyphone, by the way that all phonetics of a Chinese character are superimposed upon currently
On Chinese character simultaneously, it is possible to achieve a Chinese character is shown with multiple phonetics.Although such a mode can once show the polyphone
Whole phonetics, display mode is direct, once but polyphone can more at most cause literal in disorder, therefore, be applicable to simultaneously
Show the occasion of multiple phonetics.
In the above-mentioned technical solutions, it is preferable that when the Chinese character is polyphone, by multiple phonetics member with the Chinese character
The chinese character font corresponding with the Chinese character respectively of multiple phonetic font GLYPH curved profiles data corresponding to part
GLYPH data are overlapped, to generate multiple phonetic character libraries.
In the technical scheme, when Chinese character is polyphone, by the way that each phonetic of the polyphone is generated into a spelling
The TTF files of sound character library, multiple phonetics generate multiple character library TTF files, then multiple TTF font files composition TTC character libraries men
The form of race, arranged according to the order of phonetic tone between multiple phonetic character libraries, voluntarily selection is different as needed by user
Phonetic character library, flexibility is preferable, but polyphone how many phonetic, it is necessary to generates how many individual phonetic character libraries texts
Part, take substantial amounts of memory space.
In the above-mentioned technical solutions, it is preferable that when the Chinese character is polyphone, according to input and each phonetic element
Corresponding tone, by the GLYPH of phonetic font GLYPH curved profiles data corresponding to the tone and the chinese character font
Data are overlapped, to export required Chinese-character phonetic letter character.
In the technical scheme, when Chinese character is polyphone, coordinates phonetic tone input method, pass through phonetic tone input method
To input the tone of some Chinese character, after phonetic character library receives the designated tones of the Chinese character, by phonetic character library by the Chinese
The GLYPH data of the chinese character font of word and the phonetic font GLYPH curved profile data of the currently assigned tone of the Chinese character are entered
After Mobile state superposition, the Chinese-character phonetic letter character after output superposition.
According to another aspect of the invention, it is proposed that a kind of output device of Chinese-character phonetic letter character, including:Associative cell,
Establish Chinese character, encoding of chinese characters and the set of phonetic element corresponding relation;Character library generation unit, according to the encoding of chinese characters of download from institute
State in set and find out corresponding Chinese character, chinese character font corresponding with the Chinese character found out is searched out from existing character library
GLYPH data, and the GLYPH data of chinese character font phonetic font GLYPH corresponding with the encoding of chinese characters is bent
Line profile data are overlapped, to generate phonetic character library, wherein, the existing character library includes Chinese character, encoding of chinese characters, chinese character
GLYPH data, phonetic font GLYPH curved profiles data and its corresponding relation of font;Output unit, use the phonetic
Character library, export Chinese-character phonetic letter character.
In the technical scheme, by by the GLYPH data of chinese character font and phonetic font GLYPH curved profile numbers
Phonetic character library is generated according to superposition so that when using phonetic character library output chinese character, Chinese-character phonetic letter character can be directly exported,
And the Chinese character that can be exported as needed, different phonetic is selected, with needing in the prior art for each Chinese character adding phonetic
Compare, improve the efficiency of adding phonetic, and solve the problems, such as that a Chinese character can only fill a phonetic in the prior art.
Wherein, by establishing Chinese character, encoding of chinese characters, the set of phonetic element corresponding relation, in that context it may be convenient to compiled with Chinese character
Code is bridge, the GLYPH data of chinese character font corresponding to encoding of chinese characters is found in existing character library, while pass through Chinese character
The corresponding relation of coding and phonetic element, finds phonetic font GLYPH curves corresponding with encoding of chinese characters in existing character library
Outline data, by the GLYPH data of chinese character font corresponding to same encoding of chinese characters and phonetic font GLYPH curved profiles
Data are overlapped the Chinese-character phonetic letter character for generating the Chinese character, and then generate phonetic character library.
Certainly, when needing to export Chinese-character phonetic letter character, phonetic character library can be used directly and exported, can also first use
Other character libraries export Chinese character, the font then used according to other character libraries, and calling corresponds to the display effect of the phonetic character library of font,
Can be all Chinese character adding phonetics.
In the above-mentioned technical solutions, it is preferable that the associative cell includes:Phonetic fills unit, for each Chinese character
Adding phonetic, each Chinese character is set to correspond at least one phonetic element;Unit is established in mapping, and at least one phonetic element is pressed
Index is established according to the sequencing of letter-sound, to establish the multiple phonetic element and the phonetic profile GLYPH curves
Mapping relations.
In the technical scheme, by for each Chinese character adding phonetic, and multiple phonetics are filled for polyphone, formed
Whole phonetic transcriptions of Chinese characters data, indexed after arranging phonetic transcriptions of Chinese characters data according to letter-sound order for the foundation of phonetic element, Ke Yifang
Just phonetic element is searched by encoding of chinese characters, and then by phonetic element index in character library fast positioning to phonetic font
GLYPH curved profile data.
In the above-mentioned technical solutions, it is preferable that the character library generation unit, in addition to:Data Synthesis unit, the phonetic
Font GLYPH curved profiles data are by replicating, bonding method and the GLYPH data of the chinese character font are overlapped,
Adjust the GLYPH data investigations of the phonetic font GLYPH curved profiles data and the chinese character font distance and/or
Direction, to change the distance and/or direction that export phonetic and Chinese character in Chinese-character phonetic letter character.
In the technical scheme, by by phonetic font GLYPH curved profile data corresponding to current chinese character, directly
Replicate, paste in current chinese character font GLYPH data, and ensure that Chinese character and phonetic will not be covered mutually, wherein, Chinese character
Spacing, relative position position and direction between phonetic can be by adjusting phonetic font GLYPH curved profile data
Position be adjusted, so as to realize each chinese character font GLYPH curved profiles and phonetic font GLYPH curved profiles
Static state superposition.
Distance, the direction of such a mode due to can directly adjust Chinese character and phonetic etc., the left side with phonetic in the prior art
The loose easily dislocation of right septum is compared, and improves the aesthetic property of Chinese-character phonetic letter character typesetting, but because phonetically similar word is excessive, can lead
Cause have identical phonetic contour curve Data duplication storage, and can not the distance between adjustment in batches phonetic and Chinese character, relatively
Position, direction, therefore, the phonetic character library that such a mode generates are applied to insensitive to memory space and require high to aesthetics
Occasion.
In the above-mentioned technical solutions, it is preferable that the Data Synthesis unit, be additionally operable to, adjust the phonetic font GLYPH
The position coordinate parameters of curved profile data, by the phonetic font GLYPH curved profiles data Jing Guo position adjustment and institute
The GLYPH data for stating chinese character font are overlapped, and adjust the position coordinates of the phonetic font GLYPH curved profile data
Parameter, to change distance and/or direction of the phonetic with the Chinese character described in output Chinese-character phonetic letter character.
In the technical scheme, by adjusting the position coordinate parameters of phonetic font GLYPH curved profile data, by phonetic
On X that the GLYPH curved profiles of font GLYPH curved profiles data dynamic assignment to chinese character font are specified, Y-coordinate, lead to
The continuous dynamic for crossing position coordinate parameters adjusts, and can adjust phonetic showing in Chinese character different azimuth, namely pass through position
Coordinate parameters adjustment is put, phonetic dynamic corresponding to Chinese character can be assigned on the different position of each Chinese character, including Chinese character
Upper and lower, left and right and positive and negative two-way, a Chinese character can only specify a phonetic, can also specify multiple different phonetics.
Such a mode is due to that can pass through the dynamic adjustment of adjustment position coordinate parameters the distance between Chinese character and phonetic, direction
Deng, therefore the position adjustment of phonetic has very strong flexibility in Chinese-character phonetic letter character, simultaneously as can be shared with multiple words same
(during multiple word unisonances, each word has respective position coordinate parameters to one phonetic font GLYPH contour curve, but can share
Phonetic font GLYPH contour curves), especially save memory space, but also can batch dynamic adjustment Chinese character and phonetic it
Between position and direction etc., but due to can dynamically adjust, from being adjusted to generate phonetic character library, relative to directly duplication
, it is necessary to take some time, the phonetic character library that such a mode generates is applied to sensitive to memory space and flexibility is wanted speech more
Seek high occasion.
In the above-mentioned technical solutions, it is preferable that the Data Synthesis unit, it is additionally operable to, when the Chinese character is polyphone,
Multiple phonetic font GLYPH curved profiles data of multiple phonetic elements corresponding to the Chinese character are superimposed upon and the Chinese
Corresponding to word in the GLYPH data of the chinese character font.
In the technical scheme, when Chinese character is polyphone, by the way that all phonetics of a Chinese character are superimposed upon currently
On Chinese character simultaneously, it is possible to achieve a Chinese character is shown with multiple phonetics.Although such a mode can once show the polyphone
Whole phonetics, display mode is direct, once but polyphone can more at most cause literal in disorder, therefore, be applicable to simultaneously
Show the occasion of multiple phonetics.
In the above-mentioned technical solutions, it is preferable that the Data Synthesis unit, it is additionally operable to, when the Chinese character is polyphone,
By multiple phonetic font GLYPH curved profiles data corresponding with multiple phonetic elements of the Chinese character respectively with the Chinese character pair
The GLYPH data for the chinese character font answered are overlapped, to generate multiple phonetic character libraries.
In the technical scheme, when Chinese character is polyphone, by the way that each phonetic of the polyphone is generated into a spelling
The TTF files of sound character library, multiple phonetics generate multiple character library TTF files, then multiple TTF font files composition TTC character libraries men
The form of race, arranged according to the order of phonetic tone between multiple phonetic character libraries, voluntarily selection is different as needed by user
Phonetic character library, flexibility is preferable, but polyphone how many phonetic, it is necessary to generates how many individual phonetic character libraries texts
Part, take substantial amounts of memory space.
In the above-mentioned technical solutions, it is preferable that the Data Synthesis unit, it is additionally operable to, when the Chinese character is polyphone,
According to input tone corresponding with each phonetic element, by phonetic font GLYPH curved profile data corresponding to the tone
It is overlapped with the GLYPH data of the chinese character font, to export required Chinese-character phonetic letter character.
In the technical scheme, when Chinese character is polyphone, coordinates phonetic tone input method, pass through phonetic tone input method
To input the tone of some Chinese character, after phonetic character library receives the designated tones of the Chinese character, by phonetic character library by the Chinese
The GLYPH data of the chinese character font of word and the phonetic font GLYPH curved profile data of the currently assigned tone of the Chinese character are entered
After Mobile state superposition, the Chinese-character phonetic letter character after output superposition.
Brief description of the drawings
Fig. 1 shows the schematic flow diagram of the output intent of Chinese-character phonetic letter character according to an embodiment of the invention;
Fig. 2 shows the schematic flow diagram of the output intent of Chinese-character phonetic letter character according to another embodiment of the present invention;
Fig. 3 shows the structural representation of the output device of Chinese-character phonetic letter character according to an embodiment of the invention;
Fig. 4 shows the schematic diagram of phonetic element according to an embodiment of the invention;
Fig. 5 shows the schematic diagram that phonetic element according to an embodiment of the invention meets with Chinese character;
Fig. 6 shows the schematic diagram of upright regular script phonetic character library according to an embodiment of the invention;
Fig. 7 shows the schematic diagram that a phonetic according to an embodiment of the invention is superimposed upon around Chinese character " ";
Fig. 8 shows the schematic diagram that four phonetic according to an embodiment of the invention is superimposed upon around Chinese character " ";
Fig. 9 shows that polyphone according to an embodiment of the invention generates the schematic diagram of multiple TTF character libraries;
Figure 10 shows that polyphone according to an embodiment of the invention generates the signal of the familial form of a TTC character library
Figure;
Figure 11 shows the schematic diagram of the one section of document according to an embodiment of the invention shown with " regular script " font;
Figure 12 shows the one section of document according to an embodiment of the invention shown with " upright regular script phonetic character library " font
Schematic diagram.
Embodiment
It is below in conjunction with the accompanying drawings and specific real in order to be more clearly understood that the above objects, features and advantages of the present invention
Mode is applied the present invention is further described in detail.It should be noted that in the case where not conflicting, the implementation of the application
Feature in example and embodiment can be mutually combined.
Many details are elaborated in the following description to facilitate a thorough understanding of the present invention, still, the present invention may be used also
To be different from other modes described here using other to implement, therefore, the present invention is not limited to following public specific real
Apply the limitation of example.
Fig. 1 shows the schematic flow diagram of the output intent of Chinese-character phonetic letter character according to an embodiment of the invention.
As shown in figure 1, the output intent of Chinese-character phonetic letter character according to an embodiment of the invention, including:Step
102, establish Chinese character, encoding of chinese characters and the set of phonetic element corresponding relation;Step 104, according to the encoding of chinese characters of download from institute
State in set and find out corresponding Chinese character, chinese character font corresponding with the Chinese character found out is searched out from existing character library
GLYPH data, and the GLYPH data of chinese character font phonetic font GLYPH corresponding with the encoding of chinese characters is bent
Line profile data are overlapped, to generate phonetic character library, wherein, the existing character library includes Chinese character, encoding of chinese characters, chinese character
GLYPH data, phonetic font GLYPH curved profiles data and its corresponding relation of font;Step 106, using the phonetic
Character library, export Chinese-character phonetic letter character.
In the technical scheme, by by the GLYPH data of chinese character font and phonetic font GLYPH curved profile numbers
Phonetic character library is generated according to superposition so that when using phonetic character library output chinese character, Chinese-character phonetic letter character can be directly exported,
And the Chinese character that can be exported as needed, different phonetic is selected, with needing in the prior art for each Chinese character adding phonetic
Compare, improve the efficiency of adding phonetic, and solve the problems, such as that a Chinese character can only fill a phonetic in the prior art.
Wherein, by establishing Chinese character, encoding of chinese characters, the set of phonetic element corresponding relation, in that context it may be convenient to compiled with Chinese character
Code is bridge, the GLYPH data of chinese character font corresponding to encoding of chinese characters is found in existing character library, while pass through Chinese character
The corresponding relation of coding and phonetic element, finds phonetic font GLYPH curves corresponding with encoding of chinese characters in existing character library
Outline data, by the GLYPH data of chinese character font corresponding to same encoding of chinese characters and phonetic font GLYPH curved profiles
Data are overlapped the Chinese-character phonetic letter character for generating the Chinese character, and then generate phonetic character library.
Certainly, when needing to export Chinese-character phonetic letter character, phonetic character library can be used directly and exported, can also first use
Other character libraries export Chinese character, the font then used according to other character libraries, and calling corresponds to the display effect of the phonetic character library of font,
Can be all Chinese character adding phonetics.
In the above-mentioned technical solutions, it is preferable that described to establish Chinese character, encoding of chinese characters and the set of phonetic element corresponding relation
The step of be:For each Chinese character adding phonetic, each Chinese character is set to correspond at least one phonetic element;To described at least one
Phonetic element establishes index according to the sequencing of letter-sound, to establish the multiple phonetic element and the phonetic profile
The mapping relations of GLYPH curves.
In the technical scheme, by for each Chinese character adding phonetic, and multiple phonetics are filled for polyphone, formed
Whole phonetic transcriptions of Chinese characters data, indexed after arranging phonetic transcriptions of Chinese characters data according to letter-sound order for the foundation of phonetic element, Ke Yifang
Just phonetic element is searched by encoding of chinese characters, and then by phonetic element index in character library fast positioning to phonetic font
GLYPH curved profile data.
In the above-mentioned technical solutions, it is preferable that the phonetic font GLYPH curved profiles data are by replicating, the side of stickup
The GLYPH data of formula and the chinese character font are overlapped, and adjust the phonetic font GLYPH curved profiles data and institute
Distance and/or the direction of the GLYPH data investigations of chinese character font are stated, phonetic and the Chinese in Chinese-character phonetic letter character are exported to change
The distance of word and/or direction.
In the technical scheme, by by phonetic font GLYPH curved profile data corresponding to current chinese character, directly
Replicate, paste in current chinese character font GLYPH data, and ensure that Chinese character and phonetic will not be covered mutually, wherein, Chinese character
Spacing, relative position position and direction between phonetic can be by adjusting phonetic font GLYPH curved profile data
Position be adjusted, so as to realize each chinese character font GLYPH curved profiles and phonetic font GLYPH curved profiles
Static state superposition.
Distance, the direction of such a mode due to can directly adjust Chinese character and phonetic etc., the left side with phonetic in the prior art
The loose easily dislocation of right septum is compared, and improves the aesthetic property of Chinese-character phonetic letter character typesetting, but because phonetically similar word is excessive, can lead
Cause have identical phonetic contour curve Data duplication storage, and can not the distance between adjustment in batches phonetic and Chinese character, relatively
Position, direction, therefore, the phonetic character library that such a mode generates are applied to insensitive to memory space and require high to aesthetics
Occasion.
In the above-mentioned technical solutions, it is preferable that adjust the position coordinates ginseng of the phonetic font GLYPH curved profile data
Number, by the phonetic font GLYPH curved profiles data Jing Guo position adjustment and the GLYPH data of the chinese character font
It is overlapped, adjusts the position coordinate parameters of the phonetic font GLYPH curved profile data, Chinese-character phonetic letter word is exported to change
Distance and/or direction of the phonetic described in symbol with the Chinese character.
In the technical scheme, by adjusting the position coordinate parameters of phonetic font GLYPH curved profile data, by phonetic
On X that the GLYPH curved profiles of font GLYPH curved profiles data dynamic assignment to chinese character font are specified, Y-coordinate, lead to
The continuous dynamic for crossing position coordinate parameters adjusts, and can adjust phonetic showing in Chinese character different azimuth, namely pass through position
Coordinate parameters adjustment is put, phonetic dynamic corresponding to Chinese character can be assigned on the different position of each Chinese character, including Chinese character
Upper and lower, left and right and positive and negative two-way, a Chinese character can only specify a phonetic, can also specify multiple different phonetics.
Such a mode is due to that can pass through the dynamic adjustment of adjustment position coordinate parameters the distance between Chinese character and phonetic, direction
Deng, therefore the position adjustment of phonetic has very strong flexibility in Chinese-character phonetic letter character, simultaneously as can be shared with multiple words same
(during multiple word unisonances, each word has respective position coordinate parameters to one phonetic font GLYPH contour curve, but can share
Phonetic font GLYPH contour curves), especially save memory space, but also can batch dynamic adjustment Chinese character and phonetic it
Between position and direction etc., but due to can dynamically adjust, from being adjusted to generate phonetic character library, relative to directly duplication
, it is necessary to take some time, the phonetic character library that such a mode generates is applied to sensitive to memory space and flexibility is wanted speech more
Seek high occasion.
In the above-mentioned technical solutions, it is preferable that when the Chinese character is polyphone, by multiple spellings corresponding to the Chinese character
Multiple phonetic font GLYPH curved profiles data of tone part are superimposed upon the chinese character font corresponding with the Chinese character
GLYPH data on.
In the technical scheme, when Chinese character is polyphone, by the way that all phonetics of a Chinese character are superimposed upon currently
On Chinese character simultaneously, it is possible to achieve a Chinese character is shown with multiple phonetics.Although such a mode can once show the polyphone
Whole phonetics, display mode is direct, once but polyphone can more at most cause literal in disorder, therefore, be applicable to simultaneously
Show the occasion of multiple phonetics.
In the above-mentioned technical solutions, it is preferable that when the Chinese character is polyphone, by multiple phonetics member with the Chinese character
The chinese character font corresponding with the Chinese character respectively of multiple phonetic font GLYPH curved profiles data corresponding to part
GLYPH data are overlapped, to generate multiple phonetic character libraries.
In the technical scheme, when Chinese character is polyphone, by the way that each phonetic of the polyphone is generated into a spelling
The TTF files of sound character library, multiple phonetics generate multiple character library TTF files, then multiple TTF font files composition TTC character libraries men
The form of race, arranged according to the order of phonetic tone between multiple phonetic character libraries, voluntarily selection is different as needed by user
Phonetic character library, flexibility is preferable, but polyphone how many phonetic, it is necessary to generates how many individual phonetic character libraries texts
Part, take substantial amounts of memory space.
In the above-mentioned technical solutions, it is preferable that when the Chinese character is polyphone, according to input and each phonetic element
Corresponding tone, by the GLYPH of phonetic font GLYPH curved profiles data corresponding to the tone and the chinese character font
Data are overlapped, to export required Chinese-character phonetic letter character.
In the technical scheme, when Chinese character is polyphone, coordinates phonetic tone input method, pass through phonetic tone input method
To input the tone of some Chinese character, after phonetic character library receives the designated tones of the Chinese character, by phonetic character library by the Chinese
The GLYPH data of the chinese character font of word and the phonetic font GLYPH curved profile data of the currently assigned tone of the Chinese character are entered
After Mobile state superposition, the Chinese-character phonetic letter character after output superposition.
Fig. 2 shows the schematic flow diagram of the output intent of Chinese-character phonetic letter character according to another embodiment of the present invention.
As shown in Fig. 2 the output intent of Chinese-character phonetic letter character according to another embodiment of the present invention, including:
Step 202, phonetic is arranged, is each Chinese character adding phonetic, arranges polyphone, one word for one tone, the feelings of a word multitone
Condition, form phonetic transcriptions of Chinese characters data.
Step 204, phonetic element is established, removes what is repeated in the phonetic data completed are arranged, establishes phonetic element.
Step 206, the correspondence set of Chinese character and phonetic element is established, namely establishes Chinese character, encoding of chinese characters, phonetic member
The set of the corresponding relation of part, phonetic element can find corresponding phonetic font GLYPH curve wheels by phonetic element index
Wide data.
Step 208, static replication superimposion, the phonetic font of corresponding phonetic element is found according to encoding of chinese characters
GLYPH curved profiles data are by replicating, bonding method with the GLYPH data of corresponding chinese character font be overlapped.
Step 210, dynamic parameter computing is superimposed, and the phonetic font of corresponding phonetic element is found according to encoding of chinese characters
After GLYPH curved profile data, the position coordinate parameters of phonetic font GLYPH curved profile data are adjusted, with corresponding Chinese character
The GLYPH data of character font are overlapped.
Step 212, phonetic font GLYPH curved profiles data and shape after the GLYPH data of corresponding chinese character font
Into the compound font file of TTF, TTC phonetic.
Step 214, the compound character library of phonetic is called, document quick adding phonetic automatically, the document generated using other character libraries,
When being shown with phonetic character library, automatic is word adding phonetic.
Fig. 3 shows the structural representation of the output device of Chinese-character phonetic letter character according to an embodiment of the invention.
As shown in figure 3, the output device 300 of Chinese-character phonetic letter character according to an embodiment of the invention, including:Associative cell
302, establish Chinese character, encoding of chinese characters and the set of phonetic element corresponding relation;Character library generation unit 304, according to the Chinese character of download
Coding finds out corresponding Chinese character from the set, and Chinese Character corresponding with the Chinese character found out is searched out from existing character library
The GLYPH data of font are accorded with, and by the GLYPH data of chinese character font phonetic font corresponding with the encoding of chinese characters
GLYPH curved profile data are overlapped, to generate phonetic character library, wherein, the existing character library include Chinese character, encoding of chinese characters,
GLYPH data, phonetic font GLYPH curved profiles data and its corresponding relation of chinese character font;Output unit 306,
Using the phonetic character library, Chinese-character phonetic letter character is exported.
In the technical scheme, by by the GLYPH data of chinese character font and phonetic font GLYPH curved profile numbers
Phonetic character library is generated according to superposition so that when using phonetic character library output chinese character, Chinese-character phonetic letter character can be directly exported,
And the Chinese character that can be exported as needed, different phonetic is selected, with needing in the prior art for each Chinese character adding phonetic
Compare, improve the efficiency of adding phonetic, and solve the problems, such as that a Chinese character can only fill a phonetic in the prior art.
Wherein, by establishing Chinese character, encoding of chinese characters, the set of phonetic element corresponding relation, in that context it may be convenient to compiled with Chinese character
Code is bridge, the GLYPH data of chinese character font corresponding to encoding of chinese characters is found in existing character library, while pass through Chinese character
The corresponding relation of coding and phonetic element, finds phonetic font GLYPH curves corresponding with encoding of chinese characters in existing character library
Outline data, by the GLYPH data of chinese character font corresponding to same encoding of chinese characters and phonetic font GLYPH curved profiles
Data are overlapped the Chinese-character phonetic letter character for generating the Chinese character, and then generate phonetic character library.
Certainly, when needing to export Chinese-character phonetic letter character, phonetic character library can be used directly and exported, can also first use
Other character libraries export Chinese character, the font then used according to other character libraries, and calling corresponds to the display effect of the phonetic character library of font,
Can be all Chinese character adding phonetics.
In the above-mentioned technical solutions, it is preferable that the associative cell 302 includes:Phonetic fills unit 3022, for each institute
Chinese character adding phonetic is stated, each Chinese character is corresponded at least one phonetic element;Unit 3024 is established in mapping, to described at least one
Phonetic element establishes index according to the sequencing of letter-sound, to establish the multiple phonetic element and the phonetic profile
The mapping relations of GLYPH curves.
In the technical scheme, by for each Chinese character adding phonetic, and multiple phonetics are filled for polyphone, formed
Whole phonetic transcriptions of Chinese characters data, indexed after arranging phonetic transcriptions of Chinese characters data according to letter-sound order for the foundation of phonetic element, Ke Yifang
Just phonetic element is searched by encoding of chinese characters, and then by phonetic element index in character library fast positioning to phonetic font
GLYPH curved profile data.
In the above-mentioned technical solutions, it is preferable that the character library generation unit 304, in addition to:Data Synthesis unit 3042,
The phonetic font GLYPH curved profiles data are by replicating, bonding method and the GLYPH data of the chinese character font enter
Row superposition, adjust the phonetic font GLYPH curved profiles data and the chinese character font GLYPH data investigations away from
From and/or direction, with change export Chinese-character phonetic letter character in phonetic and Chinese character distance and/or direction.
In the technical scheme, by by phonetic font GLYPH curved profile data corresponding to current chinese character, directly
Replicate, paste in current chinese character font GLYPH data, and ensure that Chinese character and phonetic will not be covered mutually, wherein, Chinese character
Spacing, relative position position and direction between phonetic can be by adjusting phonetic font GLYPH curved profile data
Position be adjusted, so as to realize each chinese character font GLYPH curved profiles and phonetic font GLYPH curved profiles
Static state superposition.
Distance, the direction of such a mode due to can directly adjust Chinese character and phonetic etc., the left side with phonetic in the prior art
The loose easily dislocation of right septum is compared, and improves the aesthetic property of Chinese-character phonetic letter character typesetting, but because phonetically similar word is excessive, can lead
Cause have identical phonetic contour curve Data duplication storage, and can not the distance between adjustment in batches phonetic and Chinese character, relatively
Position, direction, therefore, the phonetic character library that such a mode generates are applied to insensitive to memory space and require high to aesthetics
Occasion.
In the above-mentioned technical solutions, it is preferable that the Data Synthesis unit 3042, be additionally operable to, adjust the phonetic font
The position coordinate parameters of GLYPH curved profile data, by the phonetic font GLYPH curved profile data Jing Guo position adjustment
It is overlapped with the GLYPH data of the chinese character font, adjusts the position of the phonetic font GLYPH curved profile data
Coordinate parameters, to change distance and/or direction of the phonetic with the Chinese character described in output Chinese-character phonetic letter character.
In the technical scheme, by adjusting the position coordinate parameters of phonetic font GLYPH curved profile data, by phonetic
On X that the GLYPH curved profiles of font GLYPH curved profiles data dynamic assignment to chinese character font are specified, Y-coordinate, lead to
The continuous dynamic for crossing position coordinate parameters adjusts, and can adjust phonetic showing in Chinese character different azimuth, namely pass through position
Coordinate parameters adjustment is put, phonetic dynamic corresponding to Chinese character can be assigned on the different position of each Chinese character, including Chinese character
Upper and lower, left and right and positive and negative two-way, a Chinese character can only specify a phonetic, can also specify multiple different phonetics.
Such a mode is due to that can pass through the dynamic adjustment of adjustment position coordinate parameters the distance between Chinese character and phonetic, direction
Deng, therefore the position adjustment of phonetic has very strong flexibility in Chinese-character phonetic letter character, simultaneously as can be shared with multiple words same
(during multiple word unisonances, each word has respective position coordinate parameters to one phonetic font GLYPH contour curve, but can share
Phonetic font GLYPH contour curves), especially save memory space, but also can batch dynamic adjustment Chinese character and phonetic it
Between position and direction etc., but due to can dynamically adjust, from being adjusted to generate phonetic character library, relative to directly duplication
, it is necessary to take some time, the phonetic character library that such a mode generates is applied to sensitive to memory space and flexibility is wanted speech more
Seek high occasion.
In the above-mentioned technical solutions, it is preferable that the Data Synthesis unit 3042, be additionally operable to, be multitone in the Chinese character
During word, by multiple phonetic font GLYPH curved profiles data of multiple phonetic elements corresponding to the Chinese character be superimposed upon with
Corresponding to the Chinese character in the GLYPH data of the chinese character font.
In the technical scheme, when Chinese character is polyphone, by the way that all phonetics of a Chinese character are superimposed upon currently
On Chinese character simultaneously, it is possible to achieve a Chinese character is shown with multiple phonetics.Although such a mode can once show the polyphone
Whole phonetics, display mode is direct, once but polyphone can more at most cause literal in disorder, therefore, be applicable to simultaneously
Show the occasion of multiple phonetics.
In the above-mentioned technical solutions, it is preferable that the Data Synthesis unit 3042, be additionally operable to, be multitone in the Chinese character
During word, by multiple phonetic font GLYPH curved profiles data corresponding with multiple phonetic elements of the Chinese character respectively with it is described
The GLYPH data of the chinese character font are overlapped corresponding to Chinese character, to generate multiple phonetic character libraries.
In the technical scheme, when Chinese character is polyphone, by the way that each phonetic of the polyphone is generated into a spelling
The TTF files of sound character library, multiple phonetics generate multiple character library TTF files, then multiple TTF font files composition TTC character libraries men
The form of race, arranged according to the order of phonetic tone between multiple phonetic character libraries, voluntarily selection is different as needed by user
Phonetic character library, flexibility is preferable, but polyphone how many phonetic, it is necessary to generates how many individual phonetic character libraries texts
Part, take substantial amounts of memory space.
In the above-mentioned technical solutions, it is preferable that the Data Synthesis unit 3042, be additionally operable to, be multitone in the Chinese character
During word, according to input tone corresponding with each phonetic element, by phonetic font GLYPH curved profiles corresponding to the tone
The GLYPH data of data and the chinese character font are overlapped, to export required Chinese-character phonetic letter character.
In the technical scheme, when Chinese character is polyphone, coordinates phonetic tone input method, pass through phonetic tone input method
To input the tone of some Chinese character, after phonetic character library receives the designated tones of the Chinese character, by phonetic character library by the Chinese
The GLYPH data of the chinese character font of word and the phonetic font GLYPH curved profile data of the currently assigned tone of the Chinese character are entered
After Mobile state superposition, the Chinese-character phonetic letter character after output superposition.
Describe the output intent of the Chinese-character phonetic letter character of embodiments of the invention in detail with reference to Fig. 4 to Figure 12.
Step 1, the set of Chinese character and phonetic corresponding relation is created, it includes forming Chinese character and the spelling of Guqin abbreviated character notation character
Sound component library.
Arrange phonetic transcriptions of Chinese characters, including polyphone, one word for one tone, the situation of a word multitone;Form phonetic transcriptions of Chinese characters data, bag
Include:Chinese character, phonetic, phonetic contain tone, including the first sound, (high and level tone, or Heibei provincial opera, "-"), the rising tone, (rising tone, or rising tune,
" ˊ "), the 3rd sound, (upper sound, or upper sound, " ˇ "), the falling tone, (falling tone, or remove sound , " ˋ ") and a kind of special tone, be called light
Sound, fifth sound is also sometimes;The Chinese phonetic alphabet after arrangement is arranged according to the pronunciation ascending order of vowel and consonant, i.e.,:ā、á、ǎ、
à, ɑ i, ā i, á i, ǎ i, à i, ɑ n, ā n, á n, ǎ n, à n, ɑ ng, ā ng, á ng, ǎ ng, à ng ... zuo, zu ō, zu ó, zu ǒ, zu ò etc..
After pinyin order is arranged, the sequencing according to each phonetic according to letter-sound, index is established, is then established
Each phonetic font data GLYPH curved profiles based on standard TTF forms, the phonetic curved profile are three in TTF forms
Secondary or secondary Bezier form, can infinitely scale indeformable, ensure that the display quality of pinyin character.In standard TTF
In form, each phonetic curved profile stores successively, and corresponding contour curve index is that the index is font number in character library here
According to the index value of GLYPH curve datas, phonetic character contour curve number can quickly be navigated in character library by the index value
According to;Such as:ā (index that ā curved profiles store in TTF forms is 7444), (ā curved profiles store á in TTF forms
Index for 7445), ǎ (in TTF forms ā curved profiles store index be 7446), à (deposit in TTF forms by ā curved profiles
7447) index of storage is.
Then, it is established that Chinese character, with the correspondence set of phonetic element, including Chinese character, Chinese character standard UNICODE only
One coding, the index relative of phonetic element, as shown in table 1.
Table 1
In addition, the font of the font of Chinese character, phonetic in itself, both can be able to be regular script Hanzi font, regular script spelling with various
Sound font or black matrix Hanzi font, black matrix phonetic font, etc.;Usually regular script Hanzi font and regular script phonetic word
Type is arranged in pairs or groups, black matrix Hanzi font and the collocation of black matrix phonetic font, and same font and same phonetic collocation are visually more beautiful
See, naturally it is also possible to which a kind of Hanzi font is arranged in pairs or groups from different phonetic fonts.
Fig. 4 to Fig. 6 shows the subelement of phonetic transcriptions of Chinese characters according to a preferred embodiment of the invention.Fig. 4 shows root
According to the schematic diagram of the phonetic element of the preferred embodiments of the present invention, from fig. 5, it can be seen that the precomposed character of Chinese character+phonetic is exactly
It is made up of Chinese character+phonetic element.By building the element set, it is possible to using computer programming, spelled according to Chinese character
The contrast relationship of sound, complex superposition is carried out in the diverse location of Chinese character, so as to automatically generate composite phonetic chinese character.
The regular script pen type phonetic element sample of " " word, as shown in Figure 4.
The composite phonetic chinese character sample of regular script pen type after generation, as shown in Figure 5.
Here illustrated by taking " upright regular script phonetic character library " as an example, as shown in Figure 6.
Regular script font and regular script phonetic font figure, boldface font and black matrix phonetic font, as shown in table 2.
Chinese character |
Font type |
Phonetic and index |
|
Regular script |
ā、á、ǎ、à |
|
Black matrix |
ā、á、ǎ、à |
Table 2
Step 2, the positional structure and writing direction of Chinese character and pinyin combinations are determined, and forms the phonetic containing pinyin character
Compound.
On the basis of existing standard character library, (it is with Chinese character " " according to the Unicode codings of existing Chinese character standard one by one
Example, the UNICODE unique encodings of 16 systems of " " are 0X554A), find corresponding chinese character font GLYPH data bases
Plinth, " " this Chinese character curve font profile index value in TTF character library forms is 680, and this word is polyphone, corresponding to it
Phonetic four, i.e.,:ā (index that ā curved profiles store in TTF forms is 7444), á (deposit in TTF forms by ā curved profiles
The index of storage for 7445), ǎ (index that ā curved profiles store in TTF forms is 7446), à (in TTF forms ā curve wheels
The index of exterior feature storage is that 7447), Chinese character curved profile and phonetic font curved profile are spelled four by the following two kinds mode
Together with sound ā, á, ǎ, à are overlapped with Chinese character " " the character contour curve.
Embodiment one
By the means such as replicating, pasting, by corresponding phonetic font GLYPH curved profiles data (referring to ā, á, ǎ, à), directly
Copy in current Chinese character " " character font GLYPH data, and ensure that Chinese character and phonetic will not be covered mutually, its spacing, phase
To position, direction, can be adjusted by adjusting phonetic font GLYPH curved profile data, so as to realize each Chinese Character
Symbol font GLYPH contour curves are superimposed with the static state of phonetic font GLYPH curved profiles.
Distance, the direction of such a mode due to can directly adjust Chinese character and phonetic etc., the left side with phonetic in the prior art
The loose easily dislocation of right septum is compared, and improves the aesthetic property of Chinese-character phonetic letter character typesetting, but because phonetically similar word is excessive, can lead
Cause have identical phonetic contour curve Data duplication storage, and can not the distance between adjustment in batches phonetic and Chinese character, relatively
Position, direction, therefore, the phonetic character library that such a mode generates are applied to insensitive to memory space and require high to aesthetics
Occasion.
Embodiment two
By using the index value for introducing phonetic font GLYPH curved profile data:ā(7444)、á(7445)、ǎ
(7446), à (7447), with reference to the position coordinate parameters of introducing value, phonetic font GLYPH curved profile data dynamic assignment is arrived
On X that chinese character font GLYPH curved profiles are specified, Y-coordinate, adjusted by the continuous dynamic of position coordinate parameters, can
To adjust phonetic showing in Chinese character different azimuth, namely adjusted by position coordinate parameters, can be by spelling corresponding to Chinese character
Sound dynamic is assigned on the different position of each Chinese character, including upper and lower, left and right of Chinese character and positive and negative two-way, and a Chinese character can
Only to specify a phonetic, multiple different phonetics can also be specified.
Such a mode is due to that can pass through the dynamic adjustment of adjustment position coordinate parameters the distance between Chinese character and phonetic, direction
Deng, therefore the position adjustment of phonetic has very strong flexibility in Chinese-character phonetic letter character, simultaneously as can be shared with multiple words same
(during multiple word unisonances, each word has respective position coordinate parameters to one phonetic font GLYPH contour curve, but can share
Phonetic font GLYPH contour curves), especially save memory space, but also can batch dynamic adjustment Chinese character and phonetic it
Between position and direction etc., but due to can dynamically adjust, from being adjusted to generate phonetic character library, relative to directly duplication
, it is necessary to take some time, the phonetic character library that such a mode generates is applied to sensitive to memory space and flexibility is wanted speech more
Seek high occasion.
Specific method:
Glyph 0X554A:Off=0x003D061E (offset), len=26 (outline data length)
Composite:Flag bit, expression are compounds, or non-compound
0 (representing non-composite font, monomer word)
1 (representing compound font, it is allowed to which a Chinese character is superimposed several phonetics)
numberOfContours:The quantity of curved profile
1 (representing 1 number of contours, non-composite superposition)
2 (representing 2, a Chinese character is superimposed 1 phonetic)
3 (representing 3, a Chinese character is superimposed 2 phonetics)
4 (representing 4 fonts, a Chinese character is superimposed 3 phonetics)
xMin:X-direction min coordinates after 13//" " word 0X554A profile complex superposition phonetic profile
yMin:Y-direction min coordinates after 72//" " word 0X554A profile complex superposition phonetic profile
xMax:X-direction maximum coordinates after 235//" " word 0X554A profile complex superposition phonetic profile
yMax:Y-direction maximum coordinates after 308//" " word 0X554A profile complex superposition phonetic profile
0:Flags:0x0027, flag bit, main Chinese character curved profile is represented, wait the superposition of phonetic curved profile, the main Chinese
Word is typically without translating, rotating, scaling.
Glyf Index:The Chinese character contour index of 680//" "
X WOffset:0//X directions offset, logical calculated are used, and 0 represents not offset
Y WOffset:0//Y directions offset, logical calculated are used, and 0 represents not offset
Other:Round X,Y to Grid
1:Flags:The phonetic curved profile that 0x0007//expression will be superimposed
Glyf Index:The curved profile index of 7444//ā (7444) phonetic
X WOffset:The X-direction of 50//phonetic curved profile offsets 50 pixels
Y WOffset:The Y-direction of 50//phonetic curved profile offsets 50 pixels
Other:Whether Round X, Y to Grid, Transformation Option, enter for current curves profile
Row scaling, that is, the scale parameter scaled etc.;According to this parameter, phonetic curved profile can be zoomed in and out and rotated.
1:Flags:The phonetic curved profile that 0x0007//expression will be superimposed
Glyf Index:The curved profile index of 7445//á (7445) phonetic
X WOffset:The X-direction of -50//phonetic curved profile offsets -50 pixels
Y WOffset:The Y-direction of -50//phonetic curved profile offsets -50 pixels
Other:Whether Round X, Y to Grid, Transformation Option are carried out for current curves profile
Scaling, that is, the scale parameter scaled etc.;According to this parameter, phonetic curved profile can be zoomed in and out and rotated.
By the setting of parameter, shift operations are carried out, the dynamic Overlay such as Fig. 7 to Fig. 8 can be reached, can only be folded
Add a phonetic around " " word (as shown in Figure 7), can also four phonetic profiles simultaneously superimposion Chinese character " "
Around word (as shown in Figure 8).
Chinese-character phonetic letter after synthesis, the Unicode for being all based on standard are encoded.Therefore, " " word after synthesis
UNICODE codings remain as 0X554A, and coding does not change.
Above two embodiment, compared with being word for word adapted to the mode of phonetic after current typing Chinese character again, can significantly it carry
High workload efficiency and the aesthetic property of typesetting, and can ensure that Chinese character will not misplace with phonetic.
Chinese-character phonetic letter character after synthesis, the Unicode for being all based on standard are encoded.And due to be in standard
The superposition that Chinese character and phonetic curved profile data have been carried out in some TTF character libraries merges, therefore does not change original font
Coding, when in use, is not different with normal character library use.
For the special circumstances of polyphone, handled using 3 kinds of schemes.
Scheme one:All phonetics of one Chinese character are superimposed upon on current Chinese character, it is possible to achieve a Chinese character with it is multiple
Phonetic is shown simultaneously.Although such a mode can once show whole phonetics of the polyphone, display mode is direct, once more
Sound word can more at most cause literal in disorder, therefore, be applicable to show the occasion of multiple phonetics simultaneously, as shown in table 3.
Table 3
Scheme two:Each phonetic of the polyphone is generated to the TTF files of a phonetic character library, multiple phonetic generations are more
The form of individual character library TTF files, then multiple TTF font files composition TTC character libraries families, according to spelling between multiple phonetic character libraries
The order of sound tone is arranged, and user voluntarily selects different phonetic character libraries as needed, and flexibility is preferable, but more
How many phonetic of sound word, it is necessary to generate how many individual phonetic font files, take substantial amounts of memory space, as shown in table 4.
Table 4
Scheme three:Coordinate phonetic tone input method, the tone of some Chinese character, phonetic are inputted by phonetic tone input method
After character library receives the designated tones of the Chinese character, by phonetic character library by the GLYPH numbers of the chinese character font of the Chinese character
Enter according to the phonetic font GLYPH curved profile data with the currently assigned tone of the Chinese character after Mobile state is superimposed, after output superposition
Chinese-character phonetic letter character.
Step 3, the use of phonetic character library.
In the character library catalogue that the phonetic character library system of being installed to is specified, system will load phonetic character library automatically into system,
Application program in system, selection set phonetic character library, set suitable font size, select any Chinese character coding input method, typing is just
After normal Chinese character, you can the automatic overlaying character for showing Chinese character and phonetic, for there is the situation of polyphone, use 3 kinds of schemes
Processing.
Scheme one:All phonetics of one Chinese character are superimposed upon on current Chinese character, it is possible to achieve a Chinese character with it is multiple
Phonetic is shown simultaneously.Although such a mode can once show whole phonetics of the polyphone, display mode is direct, once more
Sound word can more at most cause literal in disorder, therefore, be applicable to show the occasion of multiple phonetics simultaneously.
Scheme two:Each phonetic of the polyphone is generated to the TTF files of a phonetic character library, multiple phonetic generations are more
The form of individual character library TTF files, then multiple TTF font files composition TTC character libraries families, according to spelling between multiple phonetic character libraries
The order of sound tone is arranged, and user voluntarily selects different phonetic character libraries as needed, and flexibility is preferable, but more
How many phonetic of sound word, it is necessary to generate how many individual phonetic font files, take substantial amounts of memory space, as shown in table 4.Such as
Shown in Fig. 9, a polyphone generates multiple TTF files, such as:Upright regular script phonetic character library D1, upright regular script phonetic character library D2,
Upright regular script phonetic character library D3 etc., but these TTF character libraries can also generate the family of TTC character library, as shown in Figure 10.
Scheme three:Coordinate phonetic tone input method, the tone of some Chinese character, phonetic are inputted by phonetic tone input method
After character library receives the designated tones of the Chinese character, by phonetic character library by the GLYPH numbers of the chinese character font of the Chinese character
Enter according to the phonetic font GLYPH curved profile data with the currently assigned tone of the Chinese character after Mobile state is superimposed, after output superposition
Chinese-character phonetic letter character.
In addition, can pass through using the data that phonetic character library provides as the data input service of other systems service
Corresponding phonetic word-base system service processing and then exported.
System is selected not have " regular script " character library of phonetic in Microsoft WORD, to show the sample of document, as shown in figure 11,
Shown with " regular script ", without adding phonetic.
By directly selecting the display effect after calling " upright regular script phonetic character library " in WORD, you can full-automatic to refresh
The display effect after adding phonetic is shown as, as shown in figure 12, its adding phonetic is natural, complete, typesetting is perfect, and in WORD texts
Need 7 steps to fill the method for a phonetic transcriptions of Chinese characters in shelves to compare, improve the efficiency of adding phonetic, while save filling
Phonetic and the time of typesetting.
Technical scheme is described in detail above in association with accompanying drawing, it is contemplated that in the prior art, Chinese character is filled
It is cumbersome during phonetic, phonetic alphabet between left and right every it is loose easily dislocation, can only be in position adding phonetic, a Zhi Nengxian
Show many restrictions such as a phonetic, the present invention proposes a kind of export technique of new Chinese-character phonetic letter character, passes through the present invention's
Technical scheme, it is overlapped, is generated by the GLYPH data and phonetic font GLYPH curved profile data of chinese character font
Phonetic character library, using phonetic character library, Chinese-character phonetic letter character is directly exported, and the relative position of phonetic and chinese character can be adjusted
Section, improves the efficiency of adding phonetic, while improve the aesthetic property of Chinese-character phonetic letter character typesetting.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should be included in the scope of the protection.