A kind of braille Chinese character converter and its method
Technical field
The present invention relates to braille input technology field, more particularly to a kind of braille Chinese character converter and its method.
Background technology
As China is for undertakings for disabled people growing interest, and information-intensive society continuous progress, blind person should enjoy impression
The freedom of information age, should also obtain using the right of electronic product, and special blind person is that blind person enters style of writing with normal visual acuity personage
The method and approach of word exchange, this is accomplished by braille simplicity, is quickly converted into Chinese character.
Blind person uses Braille writing and exchanges.Also known as braille, international braille is base by 6 round dots of projection to braille
This structure composition, is the letter symbol specialized in blind person's touching reading, write with " side " for unit.Blair (Braille) create by
The braille of structure based on 6 points, the projection having on paper, what is had is not raised, forms 64 kinds of changes, i.e., 64 kinds symbols.
Each symbol or so two is arranged, each three points of each column, be called 1 from top to bottom from the left side, 2,3 points, be called 4 from top to bottom from the right,
5th, 6 points, as shown in Figure 1.
At present, occur in that some aim at the braille input unit or method of blind person's design, most device or method can only be entered
The digitlization input of row braille, it is impossible to carry out braille Chinese character conversion.Most input units use input through keyboard braille, such as computer
Keyboard, cell phone keyboard, blind person's needs are input into braille in strict accordance with the keyboard position for limiting, and operation is not easy enough, flexible.
Patent of invention number is 01118674.7 " automatic switching method of Chinese braille to Chinese character ", and books printed in braille are scanned
Braille text is identified as, or uses input through keyboard braille text, by the braille text as phonetic stream, comprehensively known using Chinese braille
Know storehouse, realize braille to the automatic conversion of Chinese character.The method conversion accuracy is high, is adapted to the big braille Chinese character conversion of batch, but
Blind person can not intervene transfer process, it is impossible to carry out necessary modification, be not suitable for the Chinese character conversion of a small amount of braille or personalized word.
Patent of invention number is 200610034539.4 " patent half square braille digital coding Chinese character inputting method ", will be original
Button Braille input method is improved, and side input is split as into en input, without multiple button during blind person one side of input, is carried
Input efficiency high.However, input method requirement blind person remembers excessive rule and coded system.
" planarization input method of braille " of Application No. 200910042415.4, using additional character "+" and " O " generation
For concave point and salient point in braille, three-dimensional braille is converted into the input of plane braille on touch pad or touch-screen.The method is beaten
The writing characteristics of Braille are broken, and has required that blind person is often input into side's point and will be input into all 6 points of information, it is inefficient.
A kind of " Braille input method based on gesture identification " of Application No. 201210502329.9, adopts according to gesture induction
The user input contrast gesture feature storehouse of collection, restores corresponding braille information.Figure of the method according to six-dot braille position
Characteristic information defines a set of gesture braille corresponding table, it is necessary to blind person's learning and memory gesture, and abandons the book of Braille
Write feature.
In sum, Braille input method of the prior art, using the method for the new rule of definition, although braille can be realized
Input, but be not easy to the study and grasp of blind person;Once for a long time without, easily forget, be unfavorable for that blind person's is actually used.
The content of the invention
The purpose of the present invention and the technical problem for solving are directed to the defect of prior art presence, propose a kind of braille Chinese character
Conversion equipment and its method, realize braille to Chinese character it is natural, quickly change.Blind person only need to be according to the habit of daily writing braille
It is used, impact Braille on the touch-screen of device of the invention, you can quickly realize braille to the conversion of Chinese character, and word
Typing.The present invention realizes the fast of syllable and word by embedded database storage standard syllable characteristic value storehouse and character word stock
Speed retrieval.
In order to realize above-mentioned purpose, the technical scheme is that:
A kind of braille Chinese character converter, is closed by the voice in the touch-screen 1 and housing 14 that are separately positioned on housing 14
Constituted into module 2, usb interface module 3 and microprocessor 4, wherein the microprocessor 4 is to be obtained comprising braille and braille Chinese character
The embedded microprocessor of conversion program module, the microprocessor 4 connects with touch-screen 1, voice synthetic module 2 and USB respectively
Mouth mold block 3 is connected.
The touch-screen 1 is used to gather the coordinate of blind person's click Braille, and reaches microprocessor 4;The four of touch-screen 1
The triangle positioning mark of projection, the bounds for indicating touch-screen 1 are respectively equipped with the outer framework of angle;The right side of touch-screen 1
Outer framework is provided with the circle starting guiding mark of projection, for indicating blind person to click on the original position of Braille.
The voice synthetic module 2 is used to export the voice of prompting operation by blind.
The usb interface module 3 is used to be connected with other digital devices, exports braille and Chinese character information.
The microcontroller 4 is embedded microprocessor, runs braille Chinese character conversion program, for processing Braille letter
Breath and the conversion of braille Chinese character.
In order to realize above-mentioned purpose, another technical scheme of the invention is:
A kind of conversion method of braille Chinese character converter of the invention, comprises the following steps:
(1)Generation standard syllable characteristic value storehouse, in units of syllable, the corresponding braille characteristic value of storage syllable;Generation word
The information such as dictionary, storage Chinese character, syllable identifier, word frequency, everyday expressions;
(2)User impacts Braille on the touch-screen 1 according to the natural sequential write of " right-to-left ";It is described micro-
Processor(4)Collection Braille information, and by braille characteristic value acquisition algorithm, obtain braille characteristic value;
(3)The microprocessor 4 is matched braille characteristic value with the characteristic value in standard syllable characteristic value storehouse, if
With unsuccessful, then go to step(7);If the match is successful, syllable identifier is obtained;
(4)Corresponding Chinese character, letter, numeral and punctuation mark are searched in character word stock according to syllable identifier, and is passed through
The voice synthetic module 2 is pointed out with voice mode;
(5)If Chinese character, the microprocessor 4 lists unisonance candidate word with use and word frequency sequence recently, passes through
The voice synthetic module 2 reads aloud the prompting word related to unisonance candidate word with voice mode one by one, for user's selection;User
Using clicking, the mode of touch-screen 1 is selected currently to read aloud the corresponding Chinese character of word, and using double-clicking, the mode of touch-screen 1 is selected currently to read aloud
Whole word, stop and skip the current unisonance candidate word read aloud using the mode of touch-screen 1 is drawn to the left, using drawing touch to the right
Shield 1 mode and read aloud previous unisonance candidate word;
(6)User deletes the last selected Chinese character or word using the mode of touch-screen 1 is drawn upwards;
(7)User terminates the conversion of this braille Chinese character using the mode of touch-screen 1 is drawn downwards, otherwise, goes to step(2);
(8)Chinese character word string after the braille of the output user input of the usb interface module 3 and conversion.
Above-mentioned steps(2)Described braille characteristic value acquisition algorithm, comprises the following steps:
(1)User impacts one " side " or many " side " Brailles on the touch-screen 1;The microprocessor 4 is remembered in real time
Coordinate, the order of point are recorded, is suspended to impact;
(2)The record of the microprocessor 4 pairs coordinate a little, x coordinate value and y-coordinate value are ranked up respectively,
Analyze and rotating coordinate system, calculate braille line-spacing, row away from average value, and distance between " side ", 6 points of generation judges templates;
(3)With " side " for unit, right-to-left, by each point and 6 points of judgement template matches, is generated the microprocessor 4
Braille characteristic value;
(4)The microprocessor 4 merges respectively " side " braille characteristic value, produces braille characteristic value.
Beneficial effect:A kind of braille Chinese character converter of the invention and its method, for blind person and vision disorder personage
Deng user's design, without remembering button and predefined rule, need to only be accustomed to according to braille daily writing(That is, right-to-left is clicked on
Braille), on the touchscreen with finger stroke Braille and swiping, you can carry out braille Chinese character conversion.The input
Method provides verbal association function, and word frequency or word frequency sequence are carried out to used Chinese character or word, and high frequency Chinese character or word are preferential
Selection, improves the efficiency that braille changes Chinese character.
Apparatus and method of the present invention is simple to operate, natural, without special study and training, is conducive to popularization and application.
Device of the invention is input into and blind Chinese conversion equipment as a kind of braille, is connected with the digital device such as computer, PDA, mobile phone, can
To realize instant, easily communication text, such as mail, short message, the chat of blind person and the normal human world, can be greatly enhanced blind
The ability to exchange and quality of life of people.
Brief description of the drawings
Fig. 1 is the bit map/bitmap of the Braille of prior art;
Fig. 2 is a kind of aufbauprinciple block diagram of braille Chinese character converter of the invention;
Fig. 3 is a kind of front schematic view of braille Chinese character converter touch-screen of the invention;
Fig. 4 is a kind of flow chart of the conversion method of braille Chinese character converter of the invention;
Fig. 5 is a kind of bit map/bitmap of the Braille input of braille Chinese character converter of the invention;
Fig. 6 is a kind of configuration example in the standard syllable characteristic value storehouse of the conversion method of braille Chinese character converter of the invention
Figure;
Fig. 7 is a kind of structure illustration of the character word stock of the conversion method of braille Chinese character converter of the invention;
Fig. 8 is a kind of flow of the braille characteristic value acquisition algorithm of the conversion method of braille Chinese character converter of the invention
Figure.
Specific embodiment
The present invention will be further described with reference to the accompanying drawings and detailed description.
As shown in Fig. 2 a kind of braille Chinese character converter, by the touch-screen 1 and housing 14 that are separately positioned on housing 14
Interior voice synthetic module 2, usb interface module 3 and microprocessor 4 are constituted, wherein the microprocessor 4 is to be obtained comprising braille
And the embedded microprocessor of braille Chinese character conversion program module, the microprocessor 4 respectively with touch-screen 1, phonetic synthesis mould
Block 2 is connected with usb interface module 3.
The touch-screen 1 selects capacitive touch screen, and its surface uses heavy sheet glass or plastics, sturdy and durable, is adapted to blind person
Operation.Touch-screen 1 is connected by SPI interface with microprocessor 4, and the coordinate of Braille is clicked on for gathering blind person.Such as Fig. 3 institutes
Show, the triangle positioning mark 11 of projection, the border for indicating touch-screen 1 are respectively equipped with the corner outer framework of touch-screen 1
Scope, right side outer framework is provided with the circle starting guiding mark 12 of projection, for indicating blind person to click on the starting of Braille
Position;In Fig. 3, the body 13 of touch-screen 1 is fixed on device case 14.
The voice synthetic module 2 can synthesize arbitrary Chinese from Chinese speech synthesis chip XF-S4040, the chip
Text and English alphabet, support tetra- kinds of texts of ISN of GB2312, GBK, BIG5, UNICODE, and phonetic synthesis effect is clearly, certainly
So, accurately, with 6 kinds of speaker sound, it is connected with microprocessor 4 by I2C buses.
The usb interface module 3 is usb circuit, and for being connected with other digital devices, output braille and Chinese character are believed
Breath.
The microprocessor 4 runs braille Chinese character conversion program, for processing from the embedded microprocessor of ARM9 cores
Braille information and braille Chinese character are changed.
As shown in figure 4, being a kind of conversion method of braille Chinese character converter of the invention, comprise the following steps:
(1)Generation standard syllable characteristic value storehouse, in units of syllable, the corresponding braille characteristic value of storage syllable;Generation word
The information such as dictionary, storage Chinese character, syllable identifier, word frequency, everyday expressions;
(2)User impacts Braille on the touch-screen 1 according to the natural sequential write of " right-to-left ";It is described micro-
Processor 4 gathers Braille information, and by braille characteristic value acquisition algorithm, obtains braille characteristic value;
(3)The microprocessor 4 is matched braille characteristic value with the characteristic value in standard syllable characteristic value storehouse, if
With unsuccessful, then go to step(7);If the match is successful, syllable identifier is obtained;
(4)Corresponding Chinese character, letter, numeral and punctuation mark are searched in character word stock according to syllable identifier, and is passed through
The voice synthetic module 2 is pointed out with voice mode;
(5)If Chinese character, the microprocessor 4 lists unisonance candidate word with use and word frequency sequence recently, passes through
The voice synthetic module 2 reads aloud the prompting word related to unisonance candidate word with voice mode one by one, for user's selection;User
Using clicking, the mode of touch-screen 1 is selected currently to read aloud the corresponding Chinese character of word, and using double-clicking, the mode of touch-screen 1 is selected currently to read aloud
Whole word, stop and skip the current unisonance candidate word read aloud using the mode of touch-screen 1 is drawn to the left, using drawing touch to the right
Shield 1 mode and read aloud previous unisonance candidate word;
(6)User deletes the last selected Chinese character or word using the mode of touch-screen 1 is drawn upwards;
(7)User terminates the conversion of this braille Chinese character using the mode of touch-screen 1 is drawn downwards, otherwise, goes to step(2);
(8)Chinese character word string after the braille of the output user input of the usb interface module 3 and conversion.
In method described above, user impacts Braille by the natural sequential write of " right-to-left ".It is of the invention
A kind of braille Chinese character converter, the point bit number for gathering Braille is as shown in Figure 5.
Standard syllable characteristic value storehouse described above, in units of Chinese Pinyin syllables, the corresponding braille of storage syllable is special
Value indicative.
Chinese braille Pinyin coding, is by the initial consonant of Chinese and simple or compound vowel of a Chinese syllable combination syllabication.Inventor is by the braille point of syllable
Word characteristic value merges, and generates the Standard Eigenvalue of syllable, in storage to standard syllable characteristic value data storehouse, its structure such as Fig. 6 institutes
Show.For example:Ba this syllable, is made up of initial consonant b and simple or compound vowel of a Chinese syllable a.The braille of initial consonant b isPoint position characteristic value is 12, simple or compound vowel of a Chinese syllable a's
Braille isPoint position characteristic value is 35, and two side's brailles of syllabication ba arePoint position feature coding is 12 ' 35, this volume
Code is the Standard Eigenvalue of ba syllables.
Therefore, Chinese braille at least needs two " side " brailles to represent a Chinese-character pronunciation.If mark-on tone, need to be further added by
One " side " tone braille, totally three " side " braille.Input tone information, can reduce the quantity of candidate word, improve efficiency of selection.
In view of other characters, and simplified storage is input into, by English alphabet, numeral and punctuation mark, a list is regarded as
Only syllable, is stored in same standard syllable feature database with the Chinese phonetic alphabet.
The information, its structure such as character word stock described above, storage Chinese character, syllable identifier, tone, word frequency, everyday expressions
As shown in fig. 7, being easy to retrieve unisonance Chinese character, and dynamic order is carried out to word frequency according to Chinese character selection.It is first during unisonance character reminding
The Chinese character of the last input is first pointed out, is secondly just pointed out according to word frequency.Verbal association function is supported, is easy to blind person fast
Fast typing Chinese character.
The databases such as standard syllable characteristic value storehouse, character word stock described above, are designed using SQLite.SQLite is one
Relationship type embedded database is planted, transplantability is good, it is efficiently and reliable.
As shown in figure 8, a kind of braille characteristic value acquisition algorithm of braille Chinese character converter of the invention, including following step
Suddenly:
(1)User impacts one " side " or many " side " Brailles on the touch-screen 1;The microprocessor 4 is remembered in real time
Coordinate, the order of point are recorded, is suspended to impact;
(2)The record of the microprocessor 4 pairs coordinate a little, x coordinate value and y-coordinate value are ranked up respectively,
Analyze and rotating coordinate system, calculate braille line-spacing, row away from average value, and distance between " side ", 6 points of generation judges templates;
(3)With " side " for unit, right-to-left, by each point and 6 points of judgement template matches, is generated the microprocessor 4
Braille characteristic value;
(4)The microprocessor 4 merges respectively " side " braille characteristic value, produces braille characteristic value.
Blind person's daily writing braille on paper by scale and awl, it is necessary to get ready, existing keyboard Braille input method
It is to correspond button and braille point.The algorithm is not strict spacing to getting ready, as long as the point position Relative distribution of Braille is just
Really, multi-party braille is write allows to incline, and point column pitch can be scaling.Therefore, the algorithm has stronger adaptability,
The blind userses for being adapted to different writing styles are used.
Application method
1. blind userses right-to-left finger or braille pen on the touch-screen 1 of device of the invention impacts braille point
Word.
2. device of the invention corresponds to Chinese character, letter, numeral, punctuate etc. by the braille that voice message is input into.
If 3. Chinese character, and have phonetically similar word, user selects currently to read aloud according to the word of voice message, point touching screen 1
The corresponding Chinese character of word, or double-click the word that touch-screen 1 selects currently to read aloud;Swiped by a left side and stop and skip what is currently read aloud
Unisonance candidate word, is swiped by the right side and reads aloud previous unisonance candidate word;Deleted by above swiping the last selected Chinese character or
Word;Swipe end this braille Chinese character conversion under.
4. device of the invention exports to institute the Chinese character word string after the braille of user input and conversion by USB interface
Connect other digital devices.
The present embodiment is more excellent implementation method of the invention, it is necessary to explanation, without departing substantially from spirit of the invention and its
In the case of essence, those of ordinary skill in the art work as can make various corresponding changes and deformation, but this according to the present invention
It is a little to change and deform the protection domain that all belong to appended claims of the invention.