CN1109311C - Apparatus and method for inserting specified character codes between characters - Google Patents

Apparatus and method for inserting specified character codes between characters Download PDF

Info

Publication number
CN1109311C
CN1109311C CN 96100625 CN96100625A CN1109311C CN 1109311 C CN1109311 C CN 1109311C CN 96100625 CN96100625 CN 96100625 CN 96100625 A CN96100625 A CN 96100625A CN 1109311 C CN1109311 C CN 1109311C
Authority
CN
China
Prior art keywords
character
character string
undetermined
space
word
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN 96100625
Other languages
Chinese (zh)
Other versions
CN1133996A (en
Inventor
山县裕美子
山田恒夫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Publication of CN1133996A publication Critical patent/CN1133996A/en
Application granted granted Critical
Publication of CN1109311C publication Critical patent/CN1109311C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

The present invention relates to an apparatus and method for inserting specified character codes between characters, or an inter-character insertion apparatus and method for inserting specified character codes such as spaces among characters constituting a second character string in the course of converting an arbitrary first character string into another second character string. An inter-character insertion apparatus in accordance with the present invention comprises: a unit for converting character data, or a character data converting unit for converting a character string entered at an input unit into a second character string and outputting the second character string as an undetermined character string serving as a character string created during conversion; a unit for indicating insertion of specified character codes, or an inter-character insertion indicating unit for indicating insertion of specified character codes among characters constituting the undetermined character string; a unit for determining whether or not indication of insertion is valid, or a validity-of-insertion indication determining unit for determining, according to the state of the undetermined character string, whether or not inter-character insertion indication made by the inter-character insertion indicating unit is valid; and a unit for processing an undetermined character string, or an undetermined character string processing unit that, when it is determined that inter-character insertion indication is valid, inserts the specified character codes among characters constituting the undetermined character string in response to the inter-character insertion indication and provides a resultant character string as a determined second character string.

Description

Between word, insert the apparatus and method of specific character sign indicating number
Technical field
The present invention relates to insert between word the apparatus and method of specific character code, or any one first character string is being converted in the process of another second character string and display result character string, in constituting those characters of second character string, insert between the used word of regulation character code such as space or mid point " " and insert apparatus and method.
More particularly, the present invention is relevant with following a kind of technology: when personal computer or word processor are used for handling in Japanese, Chinese or the Korea character process, in case input is represented and is included the character of assumed name and so in the character data of first character string and show on display screen, so as long as by a kind of shirtsleeve operation, first character string is converted to second character string that comprises Chinese character and so on character, form and insert space or mid point " " in the character of second character string, thereby make second character string that obtains after the conversion be easy to identification.
Background technology
In order to produce a document with personal computer or word processor, on a table of given format, to write the project of heading or address, name and so on.At this moment each that constitutes title can separate with suitable space character, makes title recognize easily.Traditionally, the space is inserted in those characters that constitute second character string of determining, so-called second character string of determining is after pressing shift key or similar key original character data to be changed resulting character string.Constituting those character sequences of determining character string moves so that equidistantly show.Up to now, reuse this method of work always.Therefore, the Chinese character number is many more in second character string, and it is complicated more to work.
In order to overcome this shortcoming, imagination is converted to Chinese character to the kana character of Japanese like this: pressing on the keyboard after the input of given key belongs to those kana characters of first character string, insert desirable space by key operation in first character string immediately.This process had been disclosed on the Japanese unexamined patent open (kokai) that is numbered 3-257660 already.
Let us illustrates conventional procedure with reference to chart, therefrom will be appreciated that the existing problem of conventional procedure of inserting character between word.
Fig. 1 is the schematic diagram of the conventional procedure of insertion between the word that discloses in Japanese unexamined patent open (kokai) numbering 3-257660.First character string comprises several kana characters " To ほ ん ご ", these kana characters is converted to second character string that comprises Chinese character " Japanese ".This transfer process is described below and in above-mentioned Chinese character string, inserts the process in suitable space.
(1) key on the lower keyboard is pressed in explanation in Fig. 1 (a), by means of the display screen input kana character " To ほ ん ご " of display.
(2) then, moving cursor is imported five spaces (referring to Fig. 1 (b)) in succession after character data " To ほ ん ご ".
(3) shift key on the lower keyboard is pressed in Fig. 1 (b) expression.Thereby " To ほ ん ご " is converted into " Japanese ".According to the space number that inserts, each of formation character string " Japanese " is to being separated by suitable space between the character, and character string is displayed on the screen as a result.
Utilize said process, the input in space was finished before the character data conversion.Seem, after determining second character string, there is no need to insert space character again at intercharacter.
But this conventional procedure of insertion has to determine the number in space before execution assumed name-Chinese character conversion between the word that Japanese unexamined patent open (kokai) numbering 3-257660 upward discloses.If the transformation result on assumed name-Chinese character conversion back discovery display screen and the result of anticipation are inconsistent, for example, still remain unchanged after conversion if wish the position of importing before assumed name-Chinese character conversion, space, this situation is only just handled by simple key operation and is not known clearly.As an object lesson, suppose to require to replace with " Japanese 00000 " " 0000 languages zero on the zero " (each circle is represented a space) in previous example, the character string that obtains after the conversion can't be made amendment by shirtsleeve operation so.
According to the custom process of insertion between above-mentioned word, before conversion, must predict the Chinese character number (the perhaps Chinese character number in the text of Chinese character and assumed name composition) that comprises in second character string.So the Chinese character number is many more, workload or MHRS (the being the time) cost of calculating the space number are big more.
Summary of the invention
The present invention attempts to solve an above-mentioned difficult problem.Target of the present invention provides in a kind of apparatus and method of intercharacter insertion designated character sign indicating number or cries and insert apparatus and method between word, when producing document or similar thing with personal computer or word processor, cause a kind of conversion by simple processing or operation, insert the special code such as space or mid point between the word of second character string after the feasible conversion, described transfer process is that any first character string that contains assumed name and so on character is become to containing another second character string of Chinese character and so on character, and demonstrates character string as a result.
In order to achieve the above object, insert device between word of the present invention and comprise following apparatus: input media is used for importing the character data of representing first character string; The character data conversion equipment is used for input character data is converted to another second character string, and this second character string is seen as the character string that produces in the transfer process, and as character string output undetermined; Insert indicating device between the device of indication insertion particular code or word, be used to refer in those character strings that constitute character string undetermined and insert specific character code; Judge to insert and to indicate whether effectively device or effectively insert indication and determine device, be used for whether being in the still uncompleted state of conversion and judge to insert between word to insert between the word that indicating device provides and indicate whether effectively according to character string undetermined; Also has a device or a character string processing apparatus undetermined that is used for handling character string undetermined, in case conclude and insert indication between word effectively, it is just according to inserting indication between this word, in the middle of forming those characters of character string undetermined, insert specific character code, and go out the result as second character string display of determining.
For inserting device between word of the present invention, preferably first character string is made up of assumed name or roman character and second character string is made up of Chinese character and kana character.
With regard to inserting device between word of the present invention, in the middle of the character of character string undetermined, form preferably space of the used specific character code of certain intervals.
The insertion method comprises the following steps: the first step between word of the present invention, and the character data of any one first character string is represented in input; In second step, institute's input character data is converted to another second character string; In the 3rd step, produce second character string as the character string undetermined of transition period generation; The 4th step, in this step, if the indication that should insert the designated character sign indicating number in all characters of character string undetermined is arranged, and being in conversion in character string undetermined still concludes under the situation of uncompleted state and inserts indication between word effectively, so just, in the middle of all characters of character string undetermined, insert the character code of appointment according to inserting indication between this word; Reaching final step is output string, and in this step, specific character code is inserted into second character string that character is middle and formation is determined of character string undetermined; With regard to insertion method between word of the present invention, preferably, first character string is made up of assumed name or roman character, and second character string is made up of Chinese character and kana character.
With regard to insertion method between word of the present invention, in the middle of all characters of specific character string, form preferably space of the used specific character code of a determining deviation.
According to inserting apparatus and method between word of the present invention, when any one first character string that contains assumed name or similar character is converted into second character string that contains Chinese character and so on character, second character string occurs with character string forms undetermined, promptly is in the still unclosed state of transfer process.When character string display undetermined is on screen, can in the middle of character, insert apace by means of display screen by simple key operation such as the such specific character sign indicating number in space, make and between each is to such character, arrange proper spacing.
Effectively can insertion be indicated definite device to judge before character string undetermined is operated and insert the space between character, so each character will have the form arrangement of specific interval with every pair of intercharacter.Have only when the space and can correctly be inserted (for example, all characters are allowed to equidistant arrangement), the character in space and so on can be inserted in the character string undetermined quickly so.
According to the present invention, do not resemble prior art, need before assumed name-Chinese character conversion, not determine the number of space and so on character earlier.Therefore the phenomenon that transformation result on the display screen is different from desired transformation result takes place never.In addition because there is no need to pre-determine the number in space and so on, so, even the Chinese character number is a lot of or second character in the row at place very long, the also unnecessary needed spaces of the number number that goes.Insertion work is lacked than prior art required work or man-hour between word.
Come to the point, according to way of the present invention, when any one first character string was converted into second character string, second character string was as the character string appearance undetermined that is in the state that transfer process not have to finish.By the time after the specific character resemble the space was inserted into each character centre of character string undetermined, this second character string was just as determining that character string provides.By than prior art simple the operation of Duoing, reached the purpose of inserting between word fast.
Description of drawings
To contrast corresponding legend below most preferred embodiment will be described, thereby will understand above-mentioned target of the present invention and characteristic more.
Fig. 1 describes between the word of conventional procedure to insert ratio juris figure;
Fig. 2 is the calcspar of an embodiment doing according to the principle of inserting device between word of the present invention.
Fig. 3 is the process flow diagram of an embodiment doing according to the principle of insertion method between word of the present invention.
Fig. 4 is the calcspar of the theory structure of explanation most preferred embodiment of the present invention.
Fig. 5 is a process flow diagram of describing buffer zone action in the most preferred embodiment of the present invention.
Fig. 6 is the calcspar of an example of system configuration of explanation the present invention's most preferred embodiment.
Keyboard shown in Fig. 7 presentation graphs 6 for example.
Fig. 8 be in explanation the present invention's the most preferred embodiment between word the process flow diagram of insertion/demonstration space process.
Fig. 9 be in explanation the present invention's the most preferred embodiment between word the detail flowchart in insertion/deletion space.
Figure 10 represents the schematic diagram according to first example of insertion/deletion between half-size scale mode of the present invention and full-scale mode word.
Figure 11 represents the schematic diagram according to second example of insertion/deletion between half-size scale mode of the present invention and full-scale mode word.
Figure 12 and 13 is first and second portions of a process flow diagram, and they have described insertion/delete procedure between the word in the embodiments of the invention in detail.
Embodiment
(Fig. 2 is to Figure 13) describes one embodiment of the present of invention in detail below with reference to accompanying drawings.
Fig. 2 is according to the calcspar that inserts an embodiment of principle of device between word of the present invention.
Inserting between word according to the present invention among the embodiment of principle of device as shown in Figure 2, insert device between word and comprise: input media 1 is used for importing the character data of representing any first character string; The device of hand over word data or character data conversion equipment 2 are used for input character data being converted to another second character string and exporting second character string that a character string that generates as the transition period is referred to as character string undetermined; Insert indicating device 3 between the device of indication insertion specific character sign indicating number or word, in all characters of forming character string undetermined, insert specific character code in order to indicate; Judge to insert to indicate whether effective the device or effective definite device 4 of indication that inserts, be used for judging that according to the state of character string undetermined insertion indicates whether effectively between the word of being done by insertion indicating device 3 between word; And device or the character string processing apparatus undetermined 5 of handling character string undetermined, when confirming that the insertion indication is effective between word, this treating apparatus 5 just is inserted into specific character code to form and treats in the middle of each character of character string according to inserting indication between its word, and goes out this character string as a result as the second definite character string display.
Fig. 3 explanation is according to the process flow diagram of an embodiment of insertion method principle between word of the present invention.
In this embodiment, the insertion method comprises as shown in Figure 3 some steps between word: the character data of any first character string of step S1 input representative; Step S2 is converted to another second character string to the character data of input; Step S3 produces second character string as character string undetermined, and this character string generated in the transition period; Step S5 is inserted into specific character code between each character of the character string undetermined that insertion is pointed out between word, its condition is to insert indicating device between word to point out that (step 4) should be inserted into specific character code between each character of forming character string undetermined, and has determined to insert indication between word effectively according to the state of character string undetermined; And character string of step S6 output, specific character code has been inserted between all characters of forming character string undetermined in the character string that is output, and Shu Chu character string is called the second definite character string (final character string) like this.
In Fig. 2 and Fig. 3, preferably, first character string to be imported is made up of assumed name or roman character, and second character string then is made up of Chinese character and kana character.
In Fig. 2 and Fig. 3, insert intercharacter be used for the character of character string undetermined between form certain intervals specific character sign indicating number space preferably.
In Fig. 2 and Fig. 3, when any first character string of being made up of assumed name and so on character was converted into another second character string that comprises Chinese character and so on character, second character string was that the character string of unfinished state occurs as changing still, and is called character string undetermined.When this character string undetermined is displayed on the display screen of display device 6 (Fig. 2), just can promptly be inserted into the specific character code such as the space once between each character by simple key operation, thereby make each keeping suitable distance between the character by means of display screen.
In Fig. 2, effectively insert indication and determine that device 4 is judged before to string operation undetermined and can insert the character in space and so at intercharacter, its objective is to make the specific interval of maintenance between every pair of character.Only when the character that needs to insert space and so on (for example keeping equidistant between each character), Cai in character string undetermined, once insert the character in space and so in order to make.
In the embodiment shown in Figure 2, do not resemble prior art, before assumed name-Chinese character conversion, needn't determine the number in space and so on earlier.Therefore the transformation result that takes place to occur on the display screen never is different from the situation of envisioning transformation result.Because the unnecessary number that pre-determines space and so on is so even the Chinese character number that comprises is a lot, also needn't calculate needed space number in second character string.So required work or the man-hour of insertion work will be economized than prior art between word.
As mentioned above, in Fig. 2 and embodiments of the invention shown in Figure 3, when one first character string was converted into second character string arbitrarily, second character string was as changing character string being produced in the knot state not and occurring with character string forms undetermined.By the time after the specific character sign indicating number was inserted into the character centre of this character string undetermined, this second character string was just as determining that character string provides.The insertion method is much rapider and simple in operation than prior art between such word.
Fig. 4 shows the calcspar of the system configuration of most preferred embodiment of the present invention.Wherein, insert between word of the present invention that the insertion method realizes with computer system between device or word.Give identical numbering with the identical person of device of above description.
Such just as the input media among Fig. 21, input media 10 is by key operation input Japanese, Chinese or the Korea character data of keyboard and so on.Insert indicating device 3, the definite device 4 of effective insertion indication and character string processing apparatus undetermined 5 between character data conversion equipment 2, word and realize that by control module 7 this control module comprises a central processing unit (after this being abbreviated as CPU).Display unit 60 and the display device among Fig. 1 that display is such are similar.All be presented on the display screen of display unit 60 by the character data of input block 10 inputs and by character string undetermined and definite character string that control module 7 provides.
Comprise the memory cell of forming by buffer zone 40 in addition, when pressing given key (for example shift key in the input block 10) when first character string is converted to second character string, character string undetermined (as the character string that is established of done state not in the transfer process) is stored to get off.Another way is, can comprise dictionary unit 20 in addition, in order to deposit the dictionary data of read-only usefulness RAM and ROM as the memory cell 40 among the CPU of control module 7.For first character string is converted to second character string, the CPU in the control module 7 finds out necessary information from dictionary.
The given key of pressing in the input block 10 (for example space insertion key) is inserted into specific character code between the character of character string undetermined, character string undetermined is like this delivered to storage temporarily the memory cell 40 from importing 10, by the time each of a character string has been to having had between the character after the proper spacing, presses given key (for example acknowledgement key or cursor movement key) in the input block 10 again so that the second final character string to be provided.
According to most preferred embodiment shown in Figure 4, character string undetermined that is converted to by character string and second character string of net result are along with simple key operation skew and be shown on the display screen of display unit 60.In order to generate document, on input block 10, carry out a kind of shirtsleeve operation, making has suitable space thereby those characters are arranged in by the character that inserts space and so between all characters of forming character string between every pair of character.
Fig. 5 is a process flow diagram of describing buffer zone action in the most preferred embodiment of the present invention.Wherein describe the action of the various buffer zones of memory cell 40 among Fig. 4 in detail.
At first, in this step of the S10 of Fig. 5, be stored in reading in the buffer storage that character string uses in the memory cell 40 (Fig. 4) in the character data (for example " To ほ ん ご ") that input block 10 (Fig. 4) is gone up representative first character string of input.
Secondly, press shift key in this step of S11 after, the conversion in the control module 7 indicates that being configured to the indication conversion carries out.Be stored in the character data of reading in the character string buffer zone and be converted into second character string.Result after the conversion (for example " Japanese ") is stored in the buffer storage of the character string that is converted in order to storage, or is stored in being converted in the character string buffer zone in the memory cell 40.
The key that key and so on is inserted in the space is supressed in S12 step expression, and the space is inserted in each character of character string undetermined, and making all characters be arranged between every pair of character has proper spacing.The character string of filling up the proper number space is produced (for example, " day zero zero language "), and is stored in order to place in the memory that inserts character string behind the space, perhaps inserts behind the space in the character string buffer zone.The character string buffer zone keeps a definite character string after inserting the space, wherein needed space has been inserted between all characters as the final character string of determining, be converted the character string buffer zone and then preserve character string content undetermined, wherein be inserted in the middle of the character without any the space.
Use is converted the character string buffer zone and may contains the space for example insert the space again under the situation of " conversion zero text line " in the original characters string.For example, consider conversion zero text line " such character string, if a character is also regarded as in original space, after each intercharacter inserted the space, the character string after insert in the space became " become zero and change 000 civilian zero word, zero row " so.
After insert in the space, when the character string display in the character string buffer zone is checked, had desirable space number if confirm this character string on the display screen of display unit 60, can press the character string after acknowledgement key or cursor movement key are confirmed with output.Subsequently, the conversion in the control module 7 indicates removing, and the transfer process from first character string to second character string leaves it at that.
Fig. 6 is the calcspar of system configuration example that shows the present invention's most preferred embodiment.Now more specific description is made in the configuration of the embodiment shown in Fig. 4.
Insert device between word shown in Figure 6 and comprise a CPU70, be used to control various operations, comprise according to inserting between character string conversion of the present invention and word.Input block 10 (Fig. 4) comprises a keyboard 12 and keyboard driver 14, and keyboard is used to import arbitrarily character data or carries out specific key operation.Keyboard driver is used for signal that conversion keyboard 12 sends and consequential signal is sent to CPU70.
In Fig. 6, display unit 60 (Fig. 4) comprises that a display 62 (for example is a cathode-ray tube (CRT), be abbreviated as CRT backward) and display driver 64, display be used for showing the transformation result of the character that is transfused to or display string or the word carried out by CPU70 between the insertion process.Display driver 64 is used to ensure that display 62 can correctly work.Display unit 60 comprises printer 68, is used for inserting the result between the transformation result of printable character string or word, and comprises printer driver 66, is used to ensure that printer 68 can correctly work.
In Fig. 6, memory cell 40 (Fig. 4) comprises memory cell and 41 and in order to deposit an outer memory cell of other data, memory cell 40 is equivalent to main memory, memory cell 41 is used for preserving the kernel program as monitor system components, and operating system is used to manage whole computer system.Memory cell 40 has a program, between character string conversion of the present invention of execution under the CPU70 control and word, insert, memory cell 40 also comprises a dictionary high-speed cache, be used for preserving the dictionary data of frequent use, also comprise a font high-speed cache, in order to preserve character string font commonly used and font data.
Outer memory cell comprises that floppy disk, floppy disk, hard disk and hard disk drive device.Floppy disk (FPD) 44 usefulness are deposited many data not too commonly used, the read write device that floppy disk (FD driver) 45 is used for driving in the floppy disk 44; Hard disk (HDD) 46 is used for storing various all data, and hard disk drive 47 (HD driver) is used for driving the read write device in the hard disk 46.Various font datas comprise that the font data that does not often use often is stored in hard disk 46.When 42 actions of font driver, represent the font data of certain specific font just to be read out.In hard disk 46, have in advance first character string is converted to the required data of second character string.
In Fig. 6, dictionary unit 20 (Fig. 4) comprises CD-ROM equipment 22 and CD-ROM drive 24, and the former is in order to preserve the read-only dictionary data of putting well in advance, and the latter is in order to drive the read mechanism of CD-ROM equipment.
Inserting device between the present invention's who realizes with computer system shown in Figure 6 word can be connected via fit line in the Local Area Network of network drive 43.
In the device of the present invention that utilizes aforementioned calculation machine system, as explanation in conjunction with Fig. 3 did, also export the character string of determining from input character data to the character of forming character string undetermined, inserting the specific character sign indicating number, this series of processes step is finished by the program in the memory cell 40 of residing in, and that is to say it is to finish by means of software.In the embodiment shown in fig. 6, according to insertion process between word of the present invention not needs increase the hardware number and just can realize.
Fig. 7 is that the keyboard shown in Fig. 6 is given an example.As shown in Figure 7, the keyboard 12 in the input block 10 is useful on the key of input kana character and roman character, also has various function keys, such as shift key 14, can insert key 15 and space delete key 16 to the space of inserting a space in the middle of the character at each.These function keys get and are added in advance on the normally used keyboard.Like this, must repack into by used keyboard and have specific function to satisfy customer requirements.When pressing shift key 14, there is a signal to be sent to CPU.First character string of being made up of assumed name and so on character is converted into second character string that comprises Chinese character.The ongoing character string undetermined of expression conversion is produced.Insert key 15 whenever pressing the space, just to CPU sends a signal and makes that a space is inserted into composition character string undetermined each to character in the middle of.Whenever press 16, one signals of space delete key also be sent to CPU and from form character string undetermined each to character between existing space of deletion.After pressing space insertion key or purpose character string of space delete key generation, press acknowledgement key or cursor movement key.Character string undetermined is the result thus, thereby obtains second character string after the final conversion.As mentioned above, because key is inserted in the space and the space delete key is installed separately, so as long as can revise the space number that will insert in those characters that constitute character string undetermined by simple key operation.
Fig. 8 is the process flow diagram of explanation according to embodiment of the invention interword space insertion/display process process.For operation of the present invention is described, adopt following operation as an example:, finish the operation steps of between the character that constitutes character string undetermined, inserting the space therebetween when first character string that is made up of kana character is converted to second character string that includes Chinese character.
At first, in this step of Fig. 8 S20, by keyboard operation and comprise the first character body (" the ガ ガ ん じ へ ん ガ for example of kana character by means of the input of the display screen of display
Figure C9610062500161
").
Then in the S21 step, press shift key (Fig. 6), first character string is converted into the character string undetermined (for example " conversion of ガ Chinese character ") that comprises Chinese character and kana character.
After obtaining transformation result, press the space in the S22 step and insert key (Fig. 7).Thereby the space that is equivalent to a character be inserted into occur on the display screen each in the middle of the character.
Press after the space inserts key in S23 step, another space that is equivalent to a character just be inserted into occur on the screen each between the character.Therefore, in the character string undetermined as intermediate result, there is the space that is equivalent to two characters to be inserted into each between the character.
Press after the space inserts key in S24 step, another space that is equivalent to a character be inserted into again occur on the screen each in the middle of the character.Therefore, as intermediate result, every pair of intercharacter has injected the space that is equivalent to three characters altogether in the character string undetermined.Therefore, whenever insert key 15 by a space, the space number that is inserted into just adds l.
In the S25 step, whenever by a space delete key 16, each that occurs on the display screen has the space number just to subtract 1 to the reality between the character.
Every pair of intercharacter has inserted after the number of desirable space in the character string on being presented at screen, just can press acknowledgement key or cursor movement key in the S26 step.Character string undetermined is identified thus, thereby each has inserted the space that is equivalent to two characters (for example, 0000 Chinese, 00 words 00 become 00 change ") between to character in second character string.
In above-mentioned assumed name-Chinese character conversion and interword space insertion/deletion action, as long as the predetermined special keys of operation just can produce a desirable character string apace, wherein each is to having injected the space of proper number between the character.
Process flow diagram shown in Figure 9 describes the process in insertion/deletion space between the word of doing according to most preferred embodiment of the present invention in detail, wherein used an example that the relevant operation of the present invention is described, these operations are to insert the space to take between first character string that comprises kana character is converted in the process of second character string that comprises Chinese character for all characters of forming character string undetermined.
Shown in this step of the S30 among Fig. 9, the conversion among the CPU indicates to be in usually removes attitude (" off ").
Shown in the S31 step, when the key on the keyboard of pressing in the intended manner by means of the display screen that shows in the input block, input is formed first character string by kana character.Thereby stored readable character string buffer zone (S36 step) as the character data of first character string.
Subsequent press shift key in S32 step after, be sent to CPU from a signal of shift key.This makes the conversion among the CPU indicate that becoming the state of setting (becoming " on ") carries out (S33 step) to point out conversion.In this case, the character data in the readable character string buffer zone is converted into second character string (S34 step) that comprises Chinese character and kana character.Transformation result is stored in the character string buffer zone after the conversion.As long as conversion is masked as " on ", always be stored in the character string buffer zone that is converted as character string undetermined as second character string of transformation result.Confirmed that on 35 steps conversion being masked as " on " afterwards, inserted key (S37 step) in case press the space, the space change of respective number be inserted into character string undetermined each between the character.In contrast, when pressing the space delete key, just from character string undetermined each between the character deletion some existing space (S39 step).Have only when changing to be masked as " on ", could confirm that key is inserted in the space and the space delete key is effective.The character string that has been inserted into the space between the character is stored in and is inserted with in the space character string buffer zone.
Be inserted with between the character of the character string of being preserved in the space character string impact damper and inserted the space of final affirmation, and do not have the space between the character of the character string of being preserved in the character string impact damper that is converted.
When pressing the space when inserting key, for the half-size scale mode, the space of a half-size scale will be inserted into character string undetermined each between the character.Corresponding situation is, for full-scale mode, the space of a full-size (space of two half-size scales just) will be inserted into character string undetermined each between the character.When pressing delete key, for the half-size scale mode, the space of a half-size scale will be from each of character string undetermined to deleted in the middle of the character.For full-scale mode, the space of a full-size, also promptly the space of two half-size scales will be from each of character string undetermined to deleting between the character.
In brief, no matter be which kind of mode (half-size scale or full-scale), as long as key or space delete key are inserted in the operation blank, each that just can be in being converted the character string impact damper to character between the space of insertion proper number.When the character after is inserted the space is identified as and is required character string, can press acknowledgement key or cursor movement key, shown in the S31 step.After pressing acknowledgement key or cursor movement key, the conversion among the CPU indicates by " on " and becomes " off " (S37 ' step).Character string undetermined is identified, and second character string after the conversion is as a result of exported (S38 step).
As mentioned above, when the conversion among the CPU indicated by " on " change " off ", the transfer process from first character string to second character string just finished.
This schematic diagram of Figure 10 is represented first example according to insertion/deletion action between the word of the half-size scale of the present invention's realization and full-scale mode.Among the figure in conjunction with the rotating direction of the display screen of display 62, half-size scale mode and full-scale mode have been described for insertion/delete procedure between the performed word of character string undetermined (for example " Japanese "), character string undetermined is converted to by assumed name-Chinese character, and first character string before the conversion includes only full-scale kana character (for example " To ほ ん ご ").
Shown in the top part of Figure 10,, conversion is displayed on the display screen of display 62 as character string undetermined by second character string (for example " Japanese ") that is converted to when being set up along with pressing of shift key when indicating.Byte location in the numeral character string that the top of the display screen of display 62 is write.A full-scale character accounts for two byte longs.
When making between word insertion/deletion of the half-size scale mode, whenever insert key by a space, the signal that inserts between directive is sent to CPU, the space of a half-size scale just be inserted into character string undetermined each in the middle of the character.When pressing the space delete key, the signal of deleting between directive is sent to CPU, and each of character string undetermined is just deleted to the space of a half-size scale between the character.
When making between word insertion/deletion of full-scale mode, whenever insert key by a space, have the signal that inserts between a directive to be sent to CPU, the space of a full-scale size (that is space of two half-size scale sizes) be inserted into character string undetermined each between the character.Whenever by a space delete key, be sent to CPU, thereby a full-scale space (that is space of two half-size scales) will be from each of character string undetermined to leaving out the existing space between the character with regard to the signal of deleting between a word is arranged.
Figure 11 schematic diagram is represented second example with insertion/deletion between half-size scale and the full-scale word of being done according to the present invention.Among the figure in conjunction with the rotating direction of the display screen of display 62, half-size scale and full-scale mode have been described (for example for character string undetermined, " the 1st time ") insertion/deletion between performed word, first character string that character string undetermined is made up of the numeral of full-scale kana character and half-size scale (for example, " だ い 1 か い ") obtains after changing through assumed name-Chinese character.
Shown in the upper part of Figure 11,, conversion is displayed on the display screen of display 62 as character string undetermined by second character string (for example " the 1st time ") that is converted to when being set up along with pressing of shift key when indicating.
When making between word insertion/deletion of the half-size scale mode, be similar to example shown in Figure 9, whenever insert key by a space, the signal that inserts between directive is sent to CPU, the space of a half-size scale just be inserted into character string undetermined each in the middle of the character.Whenever by a space delete key, the signal of deleting between directive is addressed to CPU, and each of character string undetermined is left out the space of an existing half-size scale size between the character.
When making between word insertion/deletion of full-scale mode, be similar to example shown in Figure 9, whenever insert key by space, the signal that inserts between directive is sent to CPU, a full-scale space (i.e. two half-size scale spaces) be inserted into character string undetermined each between the character.Whenever by a space delete key, the signal of deleting between directive is addressed to CPU, and each of character string undetermined is left out an existing full-scale space between the character (i.e. two half-size scale spaces).
As mentioned above,, form, can in the middle of all characters of character string, insert rightly or the deletion space equally even first character string is mixed by assumed name and other type character (numeral) according to inserting (or deleting between word) technology between word of the present invention.
Figure 12 and 13 is the process flow diagrams (first and second portion) that describe insertion/delete procedure between word used in the embodiment of the invention in detail.Supposing has a software program to be used for this real process being described according to insertion/deletion between the word of insertion method enforcement half-size scale mode and full-scale mode between word of the present invention.
Before beginning explanation, get between first defined word and insert/delete variable set in the program of falling usefulness.To this, seven variablees have been defined below altogether.In this embodiment, a character should be two byte longs (sixteen bit).
(1) T: the space number that between each of character string undetermined is to character, once insert (or therefrom deletion).
For the half-size scale mode, T equals 1.For full-scale mode, T equals 2.
(2) S: the space number (sum) that between each character of a character string, should insert.
(3) I: the byte location that is converted character string.
(4) J: represent certain character number and variable (no matter be half-size scale mode or full-scale mode, all be meant single character).
(5) H: the number of the leading half-size scale character of this character.
(6) K: the variable (1 or 2) of pointing out each byte number in the character.
(7) L: the byte location in character string that is inserted with the space.
When the S40 in Figure 12 had determined to carry out space insertion/deletion between word with the half-size scale mode on this step, variable T put for 1 (S41 step).If with full-scale insertion/deletion of doing between word, variable T is put 2.
Then in the S43 step, CPU detects whether supress space insertion key or space delete key.
Insert key if find to supress the space, variable S is revised as S+T (S=S+T) (S44 step).Control forwards the S47 step to then.
When finding to press the space delete key, variable S is modified as S-T (S=S-T) (S45 step).
CPU checks whether the new value of variable S is negative (S<0) (S46 step).If value is negative (S<0), mean between each character of character string not have the space that then the value of variable S was reset to for 0 (S48 step).If this value is equal to or greater than 0 (S 〉=0), this means that this fixed symbol between the character of going here and there has the space.Can delete the space.In S47 step, variable I, J and H be set to initial value (I=1, J=1, H=0).Variable K is set to 1 (K=1).
In the S49 step of Figure 13, calculate the value of variables L, the position of byte in being inserted with the character string in space of this value representation.The value of variables L is calculated by following expression formula:
L=(S+2)×(J-1)+K-H。
In S50 step, the character string that the transition period is generated is that the character of I byte location in the character string undetermined copies to L the byte location that is inserted with in the space character string buffer zone.Therefore, injected a space after that character on I byte location.
In the S51 step, CPU checks whether the character on the I byte location is the half-size scale character.If the character on the I byte location of character string undetermined is the half-size scale character,, increase by 1 (H=H+1) in order to the value of the variable H that points out before that character on the I byte location, to have a plurality of half-size scale characters then in S52 step.After variable H was reset, the control of CPU forwarded the S53 step of process flow diagram to.
If the character string on the I byte location of character string undetermined is not the half-size scale character, control just forwards the S53 step to.In this step, the value of variable I adds 1 (I=I+1).
In the S54 step, CPU checks that whether the length of the character string undetermined that has been converted is less than the I byte.If less than the I byte, this means, the length of character string undetermined no longer needs space insertion/deletion action.Program leaves it at that.
If the length of character string undetermined, means insertion/deletion of not finishing the space as yet greater than the I byte.The control of CPU is transferred to the S55 step.
In the S55 step, CPU checks whether the I byte location is second byte location of a full-scale character in the character string undetermined.If the I byte location is not second byte location (so, it is first byte location) of a full-scale character in the character string undetermined, the value of variable J adds 1, and the value of variable K remained for 1 (J=J+1, K=1) (S56 step).Therefore, prepare on the I byte location, to insert a space after a full-scale character.After the variable value of putting, the control of CPU turns back to the S49 step in the process flow diagram, carries out those steps from S49 to S55 once more.
If the I byte location is second byte location of a full-scale character in the character string undetermined, so just think that a full-scale character has occupied second byte location in the character.Therefore in the S57 step, the value of variable K is put 2 (K=2).Therefore just prepare to insert a space after that the full-scale character on second byte location of a character.After above-mentioned K variable value of putting, the control of CPU turns back to the S49 step of process flow diagram, repeats S49 once more and goes on foot to S55.
S49 go on foot length that S55 step repeats character string undetermined less than the I byte till.This has just obtained having injected a character string of space (or having left out the space) between all characters of forming character string undetermined.
Above-mentioned steps is to realize automatically by means of the execution of a specific program under the CPU control.Insert the specific character such as the space in each character of the character string that is converted one at a time, its operation is much simpler than method commonly used in the past.
Insert between word of the present invention apparatus and method for example all suppose that be Chinese character to the Japanese ideogram character conversion; That is to say that first character string of being made up of kana character is converted into second character string of being made up of Chinese character and kana character.
Inserting apparatus and method between word of the present invention can be used for any first character string of being made up of Chinese, unsimplified Hanzi or Korean is converted to desirable second character string.
Consider Chinese example, the input of Chinese character be by impact consonant key (for example b, p and m) and vowel key (a for example ...) (being referred to as two key input methods).Second character string is made up of consonant and vowel, as pressing the character string undetermined in the transfer process behind the shift key.Utilize and insert apparatus and method between word of the present invention and be similar to the above embodiments, also can be converted to second character string of between the character of Chinese character and so on, inserting space and so on character to character string undetermined.
The above-mentioned example all is to suppose that the character between each character that inserts a character string is the space.In fact, the character that is inserted into is not limited to the space.Character such as " ", "-" or "~" all can be inserted in the character string.
According to above-mentioned most preferred embodiment of the present invention, when any one first character string that comprises kana character is transferred to second character string that comprises Chinese character and so on character, as long as use than traditional method simple the operation of Duoing, just can promptly be inserted into the specific character sign indicating number in space and so between each character, thus make each character arrange character between leave proper spacing.The benefit that injects space and so on character between each character in second character string that in transfer process, produces show when the character string that be converted be particularly evident under the situation of title of a document, the title of document requires each character to show equidistantly.Workload when adopting said method can save the generation document.
According to most preferred embodiment of the present invention, not be used in assumed name-preceding number of determining the space of Chinese character conversion.The transformation result that occurs on the display screen is different from the transformation result of anticipation never.Because the number in space and so on needn't pre-determine, so even the very big number that also needn't go to the number space of the Chinese character number that in a character string, is comprised that produces when the transition period.Thereby, saved significantly and inserted needed work or man-hour amount between word with respect to prior art.

Claims (8)

1. insert the device of specific character sign indicating number at intercharacter, be called and insert device between word, this device comprises:
Input media is used for importing the character data of representing any first character string;
The device that is used for the hand over word data, be called the character data conversion equipment, be used for described input character data is converted to another second character string, and described second character string is provided as character string undetermined, the character string that this character string undetermined produced as the transition period;
Be used to indicate the device that inserts the specific character sign indicating number, be called and insert indicating device between word, be used for indicating and between each character that constitutes described character string undetermined, insert the specific character sign indicating number;
Be used for determine inserting and indicate whether effective device, be called effective insertion indication and determine device, be used for whether being in the still uncompleted state of conversion and determine to insert between word to insert between the given word of indicating device and indicate whether effectively according to described character string undetermined; And
Be used to handle the device of character string undetermined, be called character string processing apparatus undetermined, when having confirmed that the insertion indication is effective between above-mentioned word, just respond, described specific character is inserted between each character that constitutes described character string undetermined and demonstrates character string as a result as the second definite character string to inserting indication between described word.
2. the described device of claim 1, wherein said first character string is made up of kana character or roman character, and described second character string is made up of Chinese character and kana character.
3. the described device of claim 1, wherein said specific character sign indicating number is the space, is used in constituting described character string undetermined each to produce certain interval between to character.
4. the described device of claim 2, wherein said specific character sign indicating number is the space, is used in constituting described character string undetermined each to produce certain interval between to character.
5. insert a kind of method of specific character sign indicating number at intercharacter, be called insertion method between word, the method comprises the following steps:
The character data of any one first character string is represented in input;
Described input character data is converted to another second character string;
Described second character string is generated as character string undetermined, the character string that this character string undetermined generated as the transition period;
Should be inserted into the specific character sign indicating number between each character that constitutes described character string undetermined and be in after conversion still determines to insert between described word effectively under the situation of uncompleted state when indicating, respond described specific character sign indicating number is inserted between each character of the described character string undetermined of formation inserting indication between described word in described character string undetermined; And
Export a character string as second character string of determining, a described character string promptly is that described specific character sign indicating number is inserted into the character string between each character that constitutes described character string undetermined.
6. the described method of claim 5, wherein said first character string is made up of assumed name or roman character, and described second character string is made up of Chinese character and kana character.
7. the described method of claim 5, wherein said specific character sign indicating number is the space, is used for producing certain interval in each that constitutes described character string undetermined between to character.
8. the described method of claim 6, wherein said specific character sign indicating number is the space, is used for producing certain interval in each that constitutes described character string undetermined between to character.
CN 96100625 1995-01-06 1996-01-05 Apparatus and method for inserting specified character codes between characters Expired - Fee Related CN1109311C (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP000733/1995 1995-01-06
JP000733/95 1995-01-06
JP00073395A JP3209870B2 (en) 1995-01-06 1995-01-06 Character insertion device and insertion method

Publications (2)

Publication Number Publication Date
CN1133996A CN1133996A (en) 1996-10-23
CN1109311C true CN1109311C (en) 2003-05-21

Family

ID=11481935

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 96100625 Expired - Fee Related CN1109311C (en) 1995-01-06 1996-01-05 Apparatus and method for inserting specified character codes between characters

Country Status (4)

Country Link
JP (1) JP3209870B2 (en)
KR (1) KR100235523B1 (en)
CN (1) CN1109311C (en)
TW (2) TW432289B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011186847A (en) * 2010-03-09 2011-09-22 Panasonic Corp Character input device, character input method, and program
CN101848286A (en) * 2010-04-01 2010-09-29 中兴通讯股份有限公司 Dual-tone multi-frequency signal sending method and device
US8850350B2 (en) 2012-10-16 2014-09-30 Google Inc. Partial gesture text entry
US8843845B2 (en) 2012-10-16 2014-09-23 Google Inc. Multi-gesture text input prediction
US8701032B1 (en) 2012-10-16 2014-04-15 Google Inc. Incremental multi-word recognition
US8819574B2 (en) * 2012-10-22 2014-08-26 Google Inc. Space prediction for text input
US8832589B2 (en) 2013-01-15 2014-09-09 Google Inc. Touch keyboard using language and spatial models

Also Published As

Publication number Publication date
TW430764B (en) 2001-04-21
CN1133996A (en) 1996-10-23
JP3209870B2 (en) 2001-09-17
TW432289B (en) 2001-05-01
JPH08190558A (en) 1996-07-23
KR960029944A (en) 1996-08-17
KR100235523B1 (en) 1999-12-15

Similar Documents

Publication Publication Date Title
CN1023916C (en) Chinese keyboard entry technique with both simplified and original complex form of Chinese character root and its keyboard
CN1045307A (en) The method and apparatus that Chinese character is encoded and deciphered
CN1607491A (en) System and method for Chinese input using a joystick
CN1180369C (en) Equipment and method for input of character string
CN1330333A (en) Chinese input transformation device and input transformation processing method and recording medium
CN1922594A (en) Efficient method and apparatus for text entry based on trigger sequences
CN1126051C (en) Progressively renderable outline font and methods of generating transmitting and rendering the same
CN1794218A (en) Generating method of computer format document and opening method
CN1497438A (en) Device and method of character generating and computer readable storage medium of recording its program
CN1109311C (en) Apparatus and method for inserting specified character codes between characters
CN1110759C (en) Information processing method and apparatus
CN1316689A (en) Chinese character input unit and method
CN1606750A (en) Method and apparatus for selecting symbols in ideographic languages
CN1591297A (en) Chinese character input method and apparatus
CN1237435C (en) Chinese Character graphic form input device and method
CN1117156A (en) Kanji conversion result amending system
CN1689028A (en) Onling hand-written character input device and method
CN1147659A (en) Character processing apparatus, character processing, and memory
CN1136496C (en) Simplified spelling-touching screen mouse chinese character input method
CN1497525A (en) Technique for setting printing width of outline character
JPH08305701A (en) Improved character input system
CN1205530C (en) Automatic Chinese character font forming method and device
CN1177285C (en) Ultralarge Chinese character information treating device and method
CN1808347A (en) Computer input method for Tibetan
CN1679023A (en) Method and system of creating and using chinese language data and user-corrected data

Legal Events

Date Code Title Description
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C06 Publication
PB01 Publication
C14 Grant of patent or utility model
GR01 Patent grant
REG Reference to a national code

Ref country code: HK

Ref legal event code: GR

Ref document number: 1024088

Country of ref document: HK

C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20030521

Termination date: 20110105