JPH0155491B2 - - Google Patents

Info

Publication number
JPH0155491B2
JPH0155491B2 JP4639481A JP4639481A JPH0155491B2 JP H0155491 B2 JPH0155491 B2 JP H0155491B2 JP 4639481 A JP4639481 A JP 4639481A JP 4639481 A JP4639481 A JP 4639481A JP H0155491 B2 JPH0155491 B2 JP H0155491B2
Authority
JP
Japan
Prior art keywords
character
characters
input
character type
type
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
Application number
JP4639481A
Other languages
Japanese (ja)
Other versions
JPS57161920A (en
Inventor
Hiroshi Kimijima
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
Priority to JP4639481A priority Critical patent/JPS57161920A/en
Publication of JPS57161920A publication Critical patent/JPS57161920A/en
Publication of JPH0155491B2 publication Critical patent/JPH0155491B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0238Programmable keyboards

Description

【発明の詳細な説明】 本発明は文字種類の判定方法、特にコンピユー
タへ入力される文字の種類を判定する場合に好適
な判定方法に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a character type determination method, and particularly to a determination method suitable for determining the type of characters input to a computer.

コンピユータが取り扱う文字の種類には、数
字、英字、特殊文字等各種ある。このため、今入
力すべき文字がどの種類の文字なのかを認識する
必要がある。又、逆に例えばフオートラン言語で
はA001等の文字が入力される可能性はあるがA
%01の如き特殊文字を含む文字が入力される可能
性はないものとすれば、これは誤つた文字入力で
あることが入力の段階で即決できる。
There are various types of characters that computers handle, such as numbers, alphabetic characters, and special characters. For this reason, it is necessary to recognize what type of character the character to be input now is. Conversely, for example, in the Fortran language, characters such as A001 may be input, but A
Assuming that there is no possibility that a character including a special character such as %01 is input, it can be immediately determined at the input stage that this is an incorrect character input.

いずれにしても、コンピユータに対する文字入
力が如何なる種類であるかを判定することは重要
なことである。ただし、個々の種類の文字の内容
が具体的に何であるかを判定することまでは要し
ない。
In any case, it is important to determine the type of character input to the computer. However, it is not necessary to specifically determine the content of each type of character.

従来の判定方法としては大略2つの方法があつ
た。第1の方法は、例えばEBCDIC文字体系で全
種類の文字毎に割り当てられた0〜259の256通り
の数値を用いて、その数値の大小比較により該当
する文字種類の範囲を絞つて行くものである。第
2の方法は、例えば英字は1、数字は2の如く文
字種類の数値表を予め準備しておき、この数値表
と対応しながら文字種類の範囲を割り出し判定す
るというものである。上記いずれの方法も通常の
判定に殆ど支障はないが、複数種類にわたる複合
文字の判定となると、極めて効率が悪くなる。例
えば、上記第1の方法では判定回数が増加し多大
な時間を要するという欠点を伴い、又、上記第2
の方法では、前記数値表だけでは足らず、さらに
別の表を導入しなければならないという欠点を伴
う。
There are roughly two conventional determination methods. The first method uses, for example, the 256 numerical values from 0 to 259 assigned to all types of characters in the EBCDIC writing system, and narrows down the range of applicable character types by comparing the numerical values. be. The second method is to prepare in advance a numerical value table of character types, such as 1 for alphabetic characters and 2 for numbers, and determine the range of character types while corresponding to this numerical value table. All of the above methods have almost no problem in normal determination, but become extremely inefficient when it comes to determining multiple types of compound characters. For example, the first method described above has the disadvantage that the number of determinations increases and it takes a lot of time;
The method described above has the disadvantage that the numerical table alone is insufficient and another table must be introduced.

従つて本発明の目的は、上記諸欠点を排除し、
ほぼ1回の判定操作により又、単一の表により判
定を終了できる文字種類の判定方法を提案するこ
とである。
It is therefore an object of the present invention to eliminate the above-mentioned disadvantages and to
It is an object of the present invention to propose a character type determination method that can complete the determination with approximately one determination operation and a single table.

上記目的に従い本発明は、入力された文字の文
字種類を判定するための文字種類の判定方法にお
いて、全ての前記文字を前記文字種類毎に区分し
て表示する識別標識でであつて一定ビツト長から
なり且つ該文字種類毎に異なるビツトパターンを
有する2進数の識別標識を予め割り当て、ある1
つの文字入力が与えられたとき、当該文字が属す
べき前記文字種類を示す前記2進数の識別標識
と、実際に入力された当該文字入力の文字種類を
示す前記2進数の識別標識との論理積演算を、相
互のビツト位置を揃えて行い、その演算結果から
判定結果を得るようにしたことを特徴とするもの
である。
In accordance with the above object, the present invention provides a character type determination method for determining the character type of an input character, which is an identification mark that displays all the characters classified into each character type, and has a fixed bit length. and has a different bit pattern for each character type.
When one character input is given, the logical product of the binary identification indicator indicating the character type to which the character should belong and the binary identification indicator indicating the character type of the character input that was actually input. This method is characterized in that calculations are performed with mutual bit positions aligned, and a judgment result is obtained from the calculation results.

以下図面に従つて本発明を説明する。 The present invention will be explained below with reference to the drawings.

第1図は文字入力の文字種類のコード体系を示
す図であり、いわゆるEBCDICコードを示す。全
体として、機能文字、特殊文字、英数字(英字、
数字)ならびに英小文字および英大文字の階層に
分けられ、個々の文字については、一連の数値
(コード)0〜63,64〜127…が割り当てられてい
る。上記従来の方法も本発明の方法もこれら一連
の数値を利用して判定するものであるが具体的な
手法が異なる。
FIG. 1 is a diagram showing a code system for character types for character input, and shows a so-called EBCDIC code. Overall, functional characters, special characters, alphanumeric characters (letters,
The characters are divided into a hierarchy of numbers), lowercase English letters, and uppercase English letters, and each character is assigned a series of numerical values (codes) 0 to 63, 64 to 127, and so on. Both the conventional method and the method of the present invention make determinations using these series of numerical values, but the specific methods are different.

上記従来の第1の方法によれば、次のような手
順で判定される。これを図を用いて説明する。
According to the first conventional method, the determination is made in the following procedure. This will be explained using a diagram.

第2A図は文字入力が数字の種類に属するか否
かの判定をするための第1の従来方法による工程
を示すフローチヤートであり、第2B図は文字入
力が英字の種類に属するか否かの判定をするため
の第1の従来方法による工程を示すフローチヤー
トである。第2A図におけるn≧240,n≦249に
示す数値は第1図における数字(0〜9)の階層
を表わしており、当該文字入力が240以上249以下
の数値に該当していれば(0〜9)のいずれかの
数字である。ところが英字の判定になるとさらに
複雑であり第2B図の如くなる。これは、英字の
中には大文字の英字、小文字の英字がある上、さ
らにそれぞれ3つのグループに分けられているか
らである。従つて、もし英数字混合の文字入力が
与えられたときになすべき工程のフローチヤート
はさらに複雑となる。加えて、大小比較のための
ハードウエアは単純でないのが普通であるから、
判定時間ならびにハードウエア規模について不利
である。
FIG. 2A is a flowchart showing the steps of the first conventional method for determining whether input characters belong to the numeric type, and FIG. 2B shows steps for determining whether input characters belong to the alphabet type. 2 is a flowchart showing steps according to a first conventional method for determining . The numerical values indicated by n≧240 and n≦249 in Figure 2A represent the hierarchy of numbers (0 to 9) in Figure 1, and if the character input corresponds to a value between 240 and 249 (0 -9). However, when it comes to determining alphabetic characters, the process becomes even more complicated, as shown in FIG. 2B. This is because there are uppercase letters and lowercase letters, and each letter is further divided into three groups. Therefore, the flowchart of the steps to be taken when a mixed alphanumeric character input is given becomes even more complex. In addition, since the hardware for size comparison is usually not simple,
It is disadvantageous in terms of determination time and hardware scale.

第3A図は文字入が英字の種類に属するか否か
の判定をするための第2の従来方法による工程を
示すフローチヤートであり、第3B図は文字入力
が英数字の種類に属するか否かの判定をするため
の第2の従来方法による工程を示すフローチヤー
トである。この第2の従来方法では、第1図の右
欄のグループ(0〜63),(64〜127),(129〜
137),(145〜153)…毎に例えば数値1,2,3,
4…を割り振つた表を用いる。仮に英字のグルー
プに数値1を割り当てておけば、Toが1か
(YES)否か(NO)で数字か否かが判定される。
Toは、当該文字入力についての前記の表におけ
る割り当て数値を示す。ところが、この第2の従
来方法においても大文字の英字か否かという細か
い判定に及ぶと不利を生ずる。第3C図は第2の
従来方法における不利点を説明するために用いる
フローチヤートである。本図において、Uoは、
さらに細かい判定のために新たに導入されたテー
ブル(U)における割り当て数値を示す。
FIG. 3A is a flowchart showing the steps of a second conventional method for determining whether input characters belong to the type of alphanumeric characters, and FIG. It is a flowchart showing the steps of a second conventional method for making such a determination. In this second conventional method, the groups (0 to 63), (64 to 127), (129 to
137), (145-153)...for example, the numbers 1, 2, 3,
4. Use a table that allocates... If the number 1 is assigned to a group of alphabetic characters, whether or not T o is a number will be determined based on whether T o is 1 (YES) or not (NO).
T o indicates the numerical value assigned in the table above for the character input. However, this second conventional method also has disadvantages when detailed judgments such as whether or not a letter is an uppercase alphabetic character are made. FIG. 3C is a flowchart used to explain the disadvantages of the second conventional method. In this figure, U o is
The allocated numerical values in the newly introduced table (U) are shown for more detailed judgment.

そこで本発明は上述した第1および第2の従来
方法の欠点を排除し、1回の判定動作、1つのテ
ーブル(表)、単純なハードウエアで、如何なる
文字種類の組合せの文字入力にも対処できる判定
方法を提案する。ここで“如何なる文字種類の組
合せ”の意味を簡単に説明しておく。
Therefore, the present invention eliminates the drawbacks of the first and second conventional methods described above, and can handle character input of any combination of character types with one judgment operation, one table, and simple hardware. We will propose a possible determination method. Here, the meaning of "any combination of character types" will be briefly explained.

第4図は判定すべき文字種類の組合せを図解的
に示す図である。本図において文字入力が数字の
み、大文字の英字のみおよび小文字の英字のみか
ら構成されるときは、それぞれ円1、円2および
円3の範ちゆうにあり、英数字のみからなるとき
は円4の範ちゆうにあり、英字のみのときは円5
の範ちゆうにある。この他にも組合せは存在する
が5つのケースについて例示した。これらのいず
れの場合にも判定が容易であるように新規なテー
ブルを用意する。第5図は本発明の方法を実施す
るために用いるテーブルを示す図である。本図に
示すテーブル50は、前述した第2の従来方法と
異なり各文字種類が2進数表示で表わされている
(その従来方法では1,2,3,4…なる10進数
値を割り当てていた)。すなわち、(00000001),
(00000010)…等の識別標識を振つている。なお、
各文字種類内における個々の文字の表示は従来ど
おり、第1図のコードに沿つて別のメモリに記憶
されている。
FIG. 4 is a diagram schematically showing combinations of character types to be determined. In this diagram, when the character input consists of only numbers, only uppercase alphabetic characters, and only lowercase alphabetic characters, it falls within circle 1, circle 2, and circle 3, respectively, and when it consists of only alphanumeric characters, it falls within circle 4. If there are only alphabetic characters, it is 5 yen.
It is well within the range of Although there are other combinations, five cases are illustrated. A new table is prepared so that determination can be made easily in any of these cases. FIG. 5 is a diagram showing a table used to implement the method of the invention. In the table 50 shown in this figure, unlike the second conventional method described above, each character type is represented by a binary number (in that conventional method, decimal values of 1, 2, 3, 4, etc. are assigned). Ta). That is, (00000001),
They are waving identification signs such as (00000010)... In addition,
The representations of the individual characters within each character type are conventionally stored in separate memories along the codes of FIG.

このような2進数で表わされた識別標識を使用
すれば簡単に従来方法の既述の欠点が排除され
る。第6図は本発明に係る判定方法の実施例を図
解的に示す図である。本図中のFは与えられた文
字入力が有している識別標識(00000010,
0000100…等)、Frは例えばコンピユータ側から供
給される判定用の基準識別標識(00000010,
0000100…等)である。いずれの標識(F,Fr
もテーブル50によつて定められる。
The use of such binary identification marks simply eliminates the above-mentioned drawbacks of the prior art methods. FIG. 6 is a diagram schematically showing an embodiment of the determination method according to the present invention. F in this figure is an identification mark (00000010,
0000100...etc.), F r is, for example, a reference identification mark for judgment (00000010, etc.) supplied from the computer side.
0000100…etc.). Which mark (F, F r )
is also defined by table 50.

仮りに、今与えられた文字入力が数字であるべ
きならば、Frとしては(00000001)が設定され
る。そして現実の文字入力が数字(00000001)な
らば、これらの論理積()をとつてみると、 00000001(←F))00000001 (←Fr) 1 (←R) であるから(R=1)、今与えられる文字入力が
数字であると判定される。Frとして英大文字
(00000010)が設定されていれば、 00000001(←F))00000010 (←Fr) 0 (←R) であるから(R=0)、当該入力文字は英大文字
ではないことが判定される。なお論理積は第6
図のANDゲートであり、Rは論理積の演算結果
であつて、すなわち判定結果である。
If the currently given character input should be a number, (00000001) is set as F r . If the actual character input is a number (00000001), if we calculate the logical product () of these, we get 00000001 (←F) )00000001 (←F r ) 1 (←R), so (R=1) , the currently given character input is determined to be a number. If a capital letter (00000010) is set as F r , then 00000001 (←F) ) 00000010 (←F r ) 0 (←R) (R = 0), so the input character is not a capital letter. is determined. Note that the logical product is the sixth
In the AND gate shown in the figure, R is the result of the logical product operation, that is, the judgment result.

又、今与えられた文字入力が英字(大文字、小
文字を含む)と数字の混合であるべきならば、前
記Frとしては、 Fr=00000111 を設定すれば良い。この111のうち最初の1(左
側)は英小文字に相当し、引続く11はそれぞれ英
大文字および数字の各識別標識に相当する。いず
れにせよ、Frのビツト中、判定したいビツトに1
をたてておけばそれだけで判定は単なる論理積演
算で終了する。
Furthermore, if the currently given character input should be a mixture of alphabetic characters (including uppercase and lowercase letters) and numbers, then F r =00000111 may be set as F r . Of these 111, the first 1 (on the left) corresponds to a lowercase alphabetic letter, and the following 11 correspond to uppercase English letters and numerical identification marks, respectively. In any case, among the bits of F r , set 1 to the bit you want to judge.
If you set , the determination can be completed with a simple logical AND operation.

以上説明したように本発明によれば、1回の操
作で且つ単純なハードウエア(AND)のみで、
あらゆる組合せの複合文字入力の判定を行なうこ
とができる。
As explained above, according to the present invention, with only one operation and simple hardware (AND),
It is possible to judge all combinations of complex character inputs.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は文字入力の文字種類のコード体系を示
す図、第2A図は文字入力が数字の種類に属する
か否かの判定をするための第1の従来方法による
工程を示すフローチヤート、第2B図は文字入力
が英字の種類に属するか否かの判定をするための
第1の従来方法による工程を示すフローチヤー
ト、第3A図は文字入が英字の種類に属するか否
かの判定をするための第2の従来方法による工程
を示すフローチヤート、第3B図は文字入力が英
数字の種類に属するか否かの判定をするための第
2の従来方法による工程を示すフローチヤート、
第3C図は第2の従来方法における不利点を説明
するために用いるフローチヤート、第4図は判定
すべき文字種類の組合せを図解的に示す図、第5
図は本発明の方法を実施するために用いるテーブ
ルを示す図、第6図は本発明に係る判定方法の実
施例を図解的に示す図である。 1,2,3,4,5…文字種類の範ちゆう、5
0…テーブル、F…入力文字の識別標識、Fr…判
定用の基準識別標識、R…演算結果、AND…
ANDゲート。
FIG. 1 is a diagram showing the code system of the character type of character input, and FIG. Figure 2B is a flowchart showing the steps of the first conventional method for determining whether input characters belong to the type of alphabetic characters, and Figure 3A shows steps for determining whether inputted characters belong to the type of alphabetic characters. FIG. 3B is a flowchart showing steps according to a second conventional method for determining whether character input belongs to the alphanumeric type;
FIG. 3C is a flowchart used to explain the disadvantages of the second conventional method, FIG. 4 is a diagram schematically showing combinations of character types to be determined, and FIG.
This figure shows a table used to implement the method of the present invention, and FIG. 6 is a diagram schematically showing an embodiment of the determination method according to the present invention. 1, 2, 3, 4, 5... Range of character types, 5
0...Table, F...Identification indicator for input characters, F r ...Reference identification indicator for judgment, R...Computation result, AND...
AND gate.

Claims (1)

【特許請求の範囲】 1 入力された文字の文字種類を判定するための
文字種類の判定方法において、 全ての前記文字を前記文字種類毎に区分して表
示する識別標識であつて一定ビツト長からなり且
つ該文字種類毎に異なるビツトパターンを有する
2進数の識別標識を予め割り当て、 ある1つの文字入力が与えられたとき、当該文
字が属すべき前記文字種類を示す前記2進数の識
別標識と、実際に入力された当該文字入力の文字
種類を示す前記2進数の識別標識との論理積演算
を、相互のビツト位置を揃えて行い、その演算結
果から判定結果を得るようにしたことを特徴とす
る文字種類の判定方法。
[Scope of Claims] 1. In a character type determination method for determining the character type of input characters, an identification mark for displaying all of the characters classified according to the character type, from a certain bit length. and having a bit pattern that is different for each character type is assigned in advance, and when a certain character input is given, the binary identification mark indicates the character type to which the character belongs; A logical product operation with the binary identification indicator indicating the character type of the character actually inputted is performed with mutual bit positions aligned, and a determination result is obtained from the result of the operation. How to determine the character type.
JP4639481A 1981-03-31 1981-03-31 Deciding method for character type Granted JPS57161920A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4639481A JPS57161920A (en) 1981-03-31 1981-03-31 Deciding method for character type

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4639481A JPS57161920A (en) 1981-03-31 1981-03-31 Deciding method for character type

Publications (2)

Publication Number Publication Date
JPS57161920A JPS57161920A (en) 1982-10-05
JPH0155491B2 true JPH0155491B2 (en) 1989-11-24

Family

ID=12745923

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4639481A Granted JPS57161920A (en) 1981-03-31 1981-03-31 Deciding method for character type

Country Status (1)

Country Link
JP (1) JPS57161920A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2504162B2 (en) * 1989-02-09 1996-06-05 日本電気株式会社 Fault processing device
JPH04160425A (en) * 1990-10-23 1992-06-03 Hokkaido Nippon Denki Software Kk Character string adequacy deciding system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS52132631A (en) * 1976-04-30 1977-11-07 Toshiba Corp Divisional write input unit
JPS5530712A (en) * 1978-08-22 1980-03-04 Seiko Epson Corp Portable unit featuring kana letter input

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS52132631A (en) * 1976-04-30 1977-11-07 Toshiba Corp Divisional write input unit
JPS5530712A (en) * 1978-08-22 1980-03-04 Seiko Epson Corp Portable unit featuring kana letter input

Also Published As

Publication number Publication date
JPS57161920A (en) 1982-10-05

Similar Documents

Publication Publication Date Title
US5842180A (en) Method and system for detecting and correcting errors in a spreadsheet formula
US5418718A (en) Method for providing linguistic functions of English text in a mixed document of single-byte characters and double-byte characters
US4181972A (en) Means and methods for automatic hyphenating words
CA2006230C (en) Method and apparatus for validating character strings
US20050251519A1 (en) Efficient language-dependent sorting of embedded numerics
Page Error-rate estimation in discriminant analysis
JPH0155491B2 (en)
JPH06290217A (en) Document retrieval system
JPH049340B2 (en)
US5105381A (en) Word processor with selectable line-lengths which uses memory table for detecting characters not permitted at line-head or line-end
EP0772137A2 (en) Insertion bar
US20060074982A1 (en) Method for comparing tabular data
CN101587382A (en) Character input method suitable for Uighur, Kazakh and Khalkhas
JP2863077B2 (en) Electronic computing device
JP2625121B2 (en) Calculation device display method
JP3147233B2 (en) Document processing method and apparatus
US20020002553A1 (en) Date formatting system
Hines et al. Computer-aided production of book indexes
Jelen Excel: COMPARE TWO ITEMS IN A PIVOT TABLE
JPS6142307B2 (en)
JPS5829477A (en) Game electric table
JPH0635930A (en) System and method of processing table data
JPH03141462A (en) Document processor
GB2212956A (en) Method of inputting Chinese characters and keyboard for use with same
JP3256990B2 (en) Document processing device