JPS6358543A - Japanese word processing method for electronic computer - Google Patents

Japanese word processing method for electronic computer

Info

Publication number
JPS6358543A
JPS6358543A JP61201656A JP20165686A JPS6358543A JP S6358543 A JPS6358543 A JP S6358543A JP 61201656 A JP61201656 A JP 61201656A JP 20165686 A JP20165686 A JP 20165686A JP S6358543 A JPS6358543 A JP S6358543A
Authority
JP
Japan
Prior art keywords
processing
japanese
kana
kernel
interrupt
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.)
Pending
Application number
JP61201656A
Other languages
Japanese (ja)
Inventor
Fujio Seya
瀬谷 藤雄
Toshiyuki Iwamoto
岩本 俊之
Toshihisa Oka
岡 敏久
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.)
Hitachi Ltd
Hitachi Information and Control Systems Inc
Original Assignee
Hitachi Ltd
Hitachi Process Computer Engineering Inc
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 Hitachi Ltd, Hitachi Process Computer Engineering Inc filed Critical Hitachi Ltd
Priority to JP61201656A priority Critical patent/JPS6358543A/en
Publication of JPS6358543A publication Critical patent/JPS6358543A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/40Processing or translation of natural language
    • G06F40/53Processing of non-Latin text

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To neglet processing time compared with keying time in terms of alphanumeric by changing the flow of data with Japanese word processing start/end instruction and minimizing overheads of an OS down to several steps against the alphanumerics. CONSTITUTION:When a Japanese word processing start key is pushed, an interruption 105 is applied to a KANA (Japanese syllabary)/KANJI (Chinese characters) conversion program 106 via an interruption process 104 of a kernel 103. The program 106 produces a system call 107 to the kernel 103 and switches the input routes. The increase of overheads can be reduced down to just several steps against the alphameric and therefore ignored against the keying time. The data inputted to the program 106 are converted into KANJI and delivered to a suer program 101 and at the same time displayed on a CRT 108. When the KANJI input processing is through and then a Japanese work processing end key is pushed, the call 107 is produced via the process 104, etc., and the flow of data is switched to an alphanumeric input process 109.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は電子計算機の日本語処理方法に係り、特に、仮
名漢字変換操作をOS内に組込んだシステムに好適な日
本語処理方法に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a Japanese language processing method for an electronic computer, and particularly to a Japanese language processing method suitable for a system in which a kana-kanji conversion operation is incorporated into an OS.

〔従来の技術〕[Conventional technology]

日本語処理は、日本語ワードプロセッサに代表されるO
A専用マシンを中心に拡大しているが。
Japanese language processing is handled by O, represented by the Japanese word processor.
We are currently expanding our focus on A-only machines.

汎用計算機システムあるいはワークステーションにおい
ても、多目的、多機能化を目的として日本語処理が組込
まれつつある。この日本語処理に於ては仮名漢字変換処
理がその中心を占め、この仮名漢字変換処理の機構を組
込む方法としては、OS内部に組込んだ「OS組込み型
」、日本語入力処理を必要とするプログラム自身が仮名
漢字変換処理機構を有している「外付は型」、端末装置
自体に仮名漢字変換機構を持たせた「端末装置型」があ
る。(「日本語リアルタイムネットワークなどの機能拡
張が進むUNIXJ、日経エレクトロニクス1984.
10.22号、p188参照)。
Japanese language processing is also being incorporated into general-purpose computer systems or workstations for the purpose of making them multipurpose and multifunctional. Kana-kanji conversion processing occupies the center of this Japanese processing, and the method of incorporating this kana-kanji conversion processing mechanism requires an "OS built-in type" built into the OS, and Japanese input processing. There are two types: ``external type'' in which the program itself has a kana-kanji conversion processing mechanism, and ``terminal device type'' in which the terminal device itself has a kana-kanji conversion mechanism. (Nikkei Electronics 1984. UNIXJ is expanding its functions such as Japanese real-time network.
10.22, p188).

このうち、計算機システムの各種プログラムを変更する
ことなくそれらのプログラムに均等に日本語を送出でき
、また高度な入力機能を提供するには、「OS組込み型
」が優れている。そしてこの「OS組込み型」日本語入
力処理方法に於ては、上記の文献のp190〜192や
、rUX−300での日本語処理」、情報処理学会第2
7回(昭和58年後期)全国大会P1225〜6゜「日
本語UNIXでの日本語入力方式と新機能」情報処理学
会日本語入力方式研究会1984.3゜15、pi〜1
0.及びrUNIX(7)OA向き機能と日本語化」2
日経バイト1984年11月号p57.60に記載され
ているように、OS内部に「漢字デーモン」と呼ばれる
仮名漢字変換処理専用のプログラム(タスクと同等)を
設けている。
Among these, the "OS built-in type" is superior in that it can uniformly send Japanese to various programs in the computer system without changing them, and also provides advanced input functions. Regarding this "OS built-in type" Japanese input processing method, see pages 190 to 192 of the above-mentioned document, "Japanese processing on rUX-300", Information Processing Society of Japan 2nd Edition.
7th (Late 1984) National Conference P1225-6゜ "Japanese Input Method and New Functions in Japanese UNIX" Information Processing Society of Japan Japanese Input Method Study Group 1984.3゜15, pi-1
0. and rUNIX (7) OA-oriented functions and Japanese localization” 2
As described in the Nikkei Byte November 1984 issue, p. 57.60, a program (equivalent to a task) dedicated to kana-kanji conversion processing called a ``kanji daemon'' is provided inside the OS.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上記従来技術は、下記2点について問題があった。第1
は、英数文字入力時も、入力データは全て前記仮名漢字
変換プログラムを通過するため、入力処理のオーバーヘ
ッドが増加する問題があつた1通常の端末操作では、各
種アプリケーションプログラムの作成が多く、日本語入
力処理よりも英数字入力処理の方が多いため、オーバー
ヘッドの増大により英数字の入力処理に時間がかかると
いうことは、プログラムの生産性に大きな影響を与える
ことになる。第2の問題点は、通常、電子計算機は多人
数が多くの端末を用いてプログラム開発、アプリケーシ
ョンプログラムの実行を同時に行なっており、全ての入
力データを前記仮名漢字変換プログラム経由で入力した
場合、多数の他タスクの動作状況によって、既成のOS
部と仮名漢字変換プログラム間での変換データの交信処
理に遅れが発生し、更に入力時間の遅れが増加し応答性
が悪くなることである。
The above-mentioned conventional technology has problems with the following two points. 1st
Even when inputting alphanumeric characters, all the input data passes through the above-mentioned kana-kanji conversion program, so there was a problem that the input processing overhead increased.1 In normal terminal operation, various application programs are often created, and in Japan Since there is more alphanumeric input processing than word input processing, the fact that alphanumeric input processing takes longer due to increased overhead has a significant impact on program productivity. The second problem is that normally, many people use many terminals to simultaneously develop programs and execute application programs on computers, and if all input data is input via the kana-kanji conversion program, Depending on the operation status of many other tasks, the ready-made OS
A delay occurs in the communication processing of conversion data between the program and the kana-kanji conversion program, which further increases the delay in input time and deteriorates responsiveness.

本発明の目的は、漢字以外の文字入力に対するオーバー
ヘッドを増加させることなく、かつ多人数で同時使用し
た場合にも漢字以外の文字入力を他タスクの影響をうけ
ることなく高速に行える電子計算機の日本語処理方法を
提供することにある。
An object of the present invention is to provide a Japanese electronic computer that can input characters other than kanji at high speed without increasing the overhead for inputting characters other than kanji, and without being affected by other tasks even when used by many people at the same time. The object of the present invention is to provide a word processing method.

〔問題点を解決するための手段〕[Means for solving problems]

上記の目的は、日本語処理を開始する旨の指示がキーボ
ードより入力された時にはその後の入力データを仮名漢
字変換プログラムへとり込んで処理し、そうでない時は
、入力データを従来の英字、数字等を処理するプログラ
ムへ直接入力するための切替機能をOS内に設けること
により達成される。
The purpose of the above is that when an instruction to start Japanese processing is input from the keyboard, the subsequent input data is imported into the Kana-Kanji conversion program and processed; otherwise, the input data is converted into conventional alphabets and numbers. This is achieved by providing a switching function within the OS for directly inputting information to the processing program.

〔作用〕[Effect]

仮名漢字変換プログラムは、OSとは別のタスク(プロ
セス)として独立に動作しうる構造であり、データ制御
情報の交信をOSと行なうことができる。そこで仮名漢
字変換プログラムは1日本語処理開始指示が割り込みに
よって伝えられると。
The kana-kanji conversion program has a structure that can operate independently as a task (process) separate from the OS, and can communicate data control information with the OS. Therefore, when the kana-kanji conversion program receives an instruction to start processing Japanese through an interrupt.

キーボードからの入力データを全て自処理の中に取り込
むように入力を切替え、以降のデータを漢字に変換する
ための元データとして扱う0日本語処理終了指示が上記
と同様割り込みによって伝えられると、入力を切替え、
自処理に取り込まないような制御を行なう、このように
データの流れを日本語処理開始・終了指示によって変更
することによって、プログラミングによく使用する英数
字に対してのOSのオーバーヘッドは、取込み先の判断
のための数ステップに極少化され、オペレーターがキー
ボードを打鍵して入力する時間に比べた場合、無視する
ことができる。また1日本語処理が始まり、入力された
仮名を漢字に変換する場合にも数ステップのoSのオー
バーヘッドであるため、特に日本語処理機能を設けたた
めの応答性の劣化は生じない。
Switches the input so that all input data from the keyboard is taken into its own processing, and treats subsequent data as the source data for converting into kanji.0 When the instruction to end Japanese processing is sent by interrupt as above, the input switch,
By controlling the flow of data so that it is not imported into its own processing, and by changing the data flow using Japanese processing start/end instructions, the OS overhead for alphanumeric characters often used in programming can be reduced. It is minimized to a few steps for making decisions, and can be ignored when compared to the time it takes for an operator to type on a keyboard. Furthermore, even when Japanese language processing starts and input kana is converted into kanji, the overhead of the OS is several steps, so there is no deterioration in responsiveness due to the provision of the Japanese language processing function.

〔実施例〕〔Example〕

以下、本発明を図に従って説明する。第2図は、本発明
の適用対象である計算機システムの構成を示す図で、計
算機本体201は処理装置や各種メモリから成っている
。この内部のプログラムによって、キーボード102よ
りの英数字や漢字等に用いる日本語データの入力を処理
し、CRT 10gへの表示を行なう。
The present invention will be explained below with reference to the drawings. FIG. 2 is a diagram showing the configuration of a computer system to which the present invention is applied, and a computer main body 201 consists of a processing device and various types of memory. This internal program processes input of Japanese data used for alphanumeric characters, kanji, etc. from the keyboard 102, and displays the data on the CRT 10g.

第1図は1本発明の方法を実現するための、計算機のO
S内のカーネルの関連部分の機能構成を示したもので、
この図によって本発明の方法の概略を述べる。まず日本
語処理開始・終了キーなどの操作キーは、OS側で使用
するテーブルにあらかじめ登録しておく。そしてこの内
の日本語処理開始キーを入力するとカーネル103に割
り込みが入り、割り込み処理104で入力データが日本
語処理開始キーかどうかの判定を行うにの場合は日本語
処理開始キーであるので割り込み処理104から再度仮
名漢字変換プログラム106に割り込み105を行ない
、制御をプログラム106へ移す、仮名漢字変換プログ
ラム106では、それ以降キーボード102から入るデ
ータを扱うために、カーネルにシステムコール107を
発行し、自プログラムへ入力データをとりこむように入
力経路の切り替えを行なう、ここでシステムコールとは
、プログラムの実行を制御したり、ハードウェアを制御
する複雑な手続きを実行したり、システム全体に障害を
及ぼす恐れのある処理を実行するための、カーネル10
3に処理を依頼するための標準手続きのことである。
Figure 1 shows the operating system of a computer for realizing the method of the present invention.
This shows the functional configuration of the relevant parts of the kernel in S.
An outline of the method of the present invention will be described with reference to this figure. First, operation keys such as Japanese language processing start and end keys are registered in advance in a table used on the OS side. When one of these Japanese processing start keys is input, an interrupt is generated in the kernel 103, and in the interrupt processing 104, it is determined whether the input data is the Japanese processing start key. From process 104, an interrupt 105 is again made to the kana-kanji conversion program 106, and control is transferred to the program 106.The kana-kanji conversion program 106 issues a system call 107 to the kernel in order to handle data input from the keyboard 102 from then on. A system call is a call that switches the input path so as to import input data into its own program.A system call is a call that controls the execution of a program, executes a complex procedure to control hardware, or a call that may cause a failure to the entire system. Kernel 10 for executing certain processing
This is a standard procedure for requesting processing from 3rd party.

人力の切り替え処理は、カーネル103の割り込み処理
104内に組み込まれているが、これは、日本語処理開
始キーが既に打鍵されているかどうかの判定処理を行な
うべく追加されたもので、通常の英数データに対しても
、数ステップの影響しか与えていない、つまり、日本語
処理追加による英数データへのオーバーヘッド増加は、
オペレータの打鍵時間を考えれば無視できる。
The manual switching process is built into the interrupt process 104 of the kernel 103, but this was added to determine whether the Japanese processing start key has already been pressed. The impact on numerical data is only a few steps; in other words, the increase in overhead for alphanumeric data due to the addition of Japanese processing is
Considering the operator's keystroke time, this can be ignored.

仮名漢字変換プログラム106に入ってきたデータは、
仮名漢字変換処理で漢字に変換され、日本語を要求して
いるユーザプログラムLotに渡されると同時に、CR
T 108にも変換した漢字が入力文字等とともに表示
される。この表示にあたっては、たとえばCRT108
画面の下2行を仮名漢字変換プログラム106で占有し
、2行の上1行を入カニリアとし、下1行をガイダンス
表示に使用し入力データを漢字などに変換するために使
用する。この場合には、ユーザ側で使用できる領域は下
2行を除いた画面領域となる。また。
The data that has entered the kana-kanji conversion program 106 is
CR
The converted kanji are also displayed at T 108 along with the input characters. For this display, for example, CRT108
The lower two lines of the screen are occupied by a kana-kanji conversion program 106, the upper one line of the two lines is used as an input character, and the lower one line is used for guidance display and for converting input data into kanji or the like. In this case, the area available to the user is the screen area excluding the bottom two lines. Also.

日本語処理終了のキーを打鍵することで、占有していた
画面の下2行は解放する。
By pressing the key to end Japanese processing, the bottom two lines of the screen that were occupied will be released.

漢字の入力処理が終り、再度英数字を入力するためにキ
ーボード102から日本語処理終了キーを打鍵すると、
割り込み処理1042割り込み105、仮名漢字変換プ
ログラム106を経てシステムコール10’7が発行さ
れ、英数字入力処理109ヘデータの流れが切り替えら
れる。こうして入力された英数字データは、ユーザプロ
グラム101へ渡されると共にCRT(108)へも表
示される。
When the kanji input process is completed and the Japanese processing end key is pressed on the keyboard 102 to input alphanumeric characters again,
System call 10'7 is issued via interrupt processing 1042, interrupt 105, and kana-kanji conversion program 106, and the flow of data is switched to alphanumeric input processing 109. The alphanumeric data thus input is passed to the user program 101 and also displayed on the CRT (108).

なお、一般的に、仮名漢字変換プログラムは60〜15
0にバイトの容量(処理ステップ)を必要とし、この大
きな処理をカーネル103に組み込むとユーザプログラ
ム1o工が動作するメモリが大幅に減ってしまい、シス
テムトータルでの負荷が増大してしまうが、第1図のよ
うにプログラム106をカーネルとは別のタスクとして
設ければ、カーネル103の容量をほとんど増加させず
に日本語処理を実現できる。
In general, kana-kanji conversion programs are 60 to 15
0 bytes (processing steps) is required, and if this large processing is incorporated into the kernel 103, the memory in which the user program 10 operates will be significantly reduced, increasing the total system load. If the program 106 is provided as a separate task from the kernel as shown in FIG. 1, Japanese language processing can be realized with almost no increase in the capacity of the kernel 103.

以上のような本発明の処理を実現するためのプログラム
の実施例を次に説明する。第3図は、仮名演1字変、換
プログラムの、本発明に関わる部分のフローを示す、こ
のプログラムは、システムの立ち上げ時に起動され、そ
のシステムで必要とする前処理や、そのシステムに接続
した端末の種類などを設定する処理を実行する。
An example of a program for realizing the processing of the present invention as described above will be described next. Figure 3 shows the flow of the part of the kana performance one-character conversion program that is related to the present invention. Executes the process of setting the type of connected terminal, etc.

即ち、起動された仮名漢字変換プログラム106は、ま
ずステップ301にて、日本語処理に必要な環境情報や
端末情報を外部のテーブルより取り込んで初期設定をす
る。ここで環境情報、端末情報としては、システム辞書
のファイル名、デフォルトの実行モードなどの情報1日
本語入力で必要になる端末のカーソル制御情報及び操作
キーの割付は情報、CRTに表示する際に必要なESC
(エスケープ)シーケンスの情報などがある1例えば、
日本語の処理開始、終了を示すキーを“K(コントロー
ルキーとKを同時に押す)に割り付けておくと、仮名漢
字変換プログラム106では、このキーの割り付は情報
を外部のテーブルより取り込み、そのコードをカーネル
103に送る。カーネル103では、仮名漢字変換プロ
グラム106から送られたコードを内部のテーブルに記
憶しておき、入力データが、「AK」かどうかを判定す
ることで日本語処理の開始・終了指示が行なわれたか否
かの区別ができる。一方、仮名漢字変換プログラム10
6でもテーブルから取り込んだコードr′K」を内部テ
ーブルに記憶しておき、カーネル103から日本語処理
の開始・終了を指示するキーが打鍵されたことを意味す
る割り込み105(第1図)が入った場合に、何回目の
「“K」のコードであるかを判定することにより、日本
語処理の開始か終了かを判定できる。
That is, the started kana-kanji conversion program 106 first takes in environment information and terminal information necessary for Japanese language processing from an external table and makes initial settings in step 301. Here, the environment information and terminal information include information such as the file name of the system dictionary and the default execution mode.1 Information about the terminal's cursor control information and the assignment of operation keys required for Japanese input. ESC required
(escape) sequence information, etc.1 For example,
If you assign a key to indicate the start and end of Japanese processing to "K" (press the control key and K at the same time), the Kana-Kanji conversion program 106 will import information from an external table and The code is sent to the kernel 103.The kernel 103 stores the code sent from the kana-kanji conversion program 106 in an internal table, and starts Japanese processing by determining whether the input data is "AK". - It is possible to distinguish whether a termination instruction has been given or not. On the other hand, Kana-Kanji conversion program 10
6, the code "r'K" fetched from the table is stored in an internal table, and an interrupt 105 (Fig. 1) indicating that a key has been pressed to instruct the start/end of Japanese language processing is issued from the kernel 103. If the code is entered, it can be determined whether the Japanese language processing has started or ended by determining how many times the "K" code has been entered.

次に、ステップ302にて端末装置に対し端末属性を設
定し、仮名漢字変換処理で使う用語辞書のファイルオー
プン処理を行い、ステップ303にて割り込み情報を登
録する。計算機の内部では。
Next, in step 302, terminal attributes are set for the terminal device, a file opening process for a terminology dictionary used in the kana-kanji conversion process is performed, and interrupt information is registered in step 303. inside the computer.

多数の割り込みが使用されているため、それぞれに意味
付けを行なうことが必要であり、このステップ303に
よってカーネルと仮名漢字変換プログラム間で使用する
「日本語処理開始・終了」を示す意味付けを与える1以
上の初期処理が終ると、仮名漢字変換プログラム106
は、日本語処理開始キー人力待ちとなる(ステップ30
4)。
Since a large number of interrupts are used, it is necessary to give each one a meaning, and this step 303 gives a meaning indicating "start/end of Japanese processing" used between the kernel and the kana-kanji conversion program. When one or more initial processes are completed, the kana-kanji conversion program 106
The Japanese language processing start key will wait for human power (step 30).
4).

仮名漢字変換プログラム106が、日本語処理の開始キ
ー人力待ち状MA(ステップ304)のとき、キーボー
ドから日本語処理開始キーを入力するとカーネルから割
り込みが発生し、これが割り込み入口311から入力さ
れる。この割り込みが入ると、まず日本語処理開始キー
の判定(ステップ309)を行なう、これはたとえば、
初期値0のカウンタを事前に初期設定ステップ301で
用意しておき、Oならカウンタに1をセットし、そして
次の仮名漢字変換プログラムの日本語入力開始処理ステ
ップ305に進み、漢字の読みの入力ステップ306、
かな漢字変換処理のステップ308を実行し再びステッ
プ304に戻る。しかし上記のカウンタがO以外なら、
カウンタを初期化(ゼロクリア)し、ステップ310で
日本語終了処理をして、漢字プロセスは、次の日本語処
理開始のためのキー人力待ちとなる。
When the kana-kanji conversion program 106 is waiting for the Japanese language processing start key manual input MA (step 304), when the Japanese language processing start key is input from the keyboard, an interrupt is generated from the kernel, and this is input from the interrupt entrance 311. When this interrupt occurs, the Japanese language processing start key is first determined (step 309).
A counter with an initial value of 0 is prepared in advance in the initial setting step 301, and if O, the counter is set to 1, and the process proceeds to the next Japanese input start processing step 305 of the kana-kanji conversion program, where the reading of the kanji is input. step 306,
Step 308 of the kana-kanji conversion process is executed and the process returns to step 304 again. However, if the above counter is other than O,
The counter is initialized (cleared to zero), the Japanese language termination process is performed in step 310, and the kanji process waits for key human power to start the next Japanese language process.

第4図は、カーネル側での入力切替え処理のフローを示
したもので、第1図の割込み処理104に対応する。こ
の処理では、キーボードからの入力があると、その入力
データが日本語開始キーがどうか判定(ステップ401
)L、、日本語開始キーであれば、仮名漢字変換プログ
ラムにより登録された割込みを発生して、第3図の割込
み入口311へ進む(ステップ404)、この後は第3
図のステップ309以降の処理を実行する0日本語処理
開始キー以外であれば、現在日本語処理中かどうかの判
定処理(ステップ402)を行ない、日本語処理中でな
い場合は、入力データを要求しているユーザプログラム
101ヘデータを渡し、日本語処理中の場合は仮名漢字
変換プログラム106へデータを渡し、仮名漢字変換プ
ログラム側で漢字に変換する操作を行なう、第1図のシ
ステムコール107は、この判定処理(ステップ402
)に対し、どちら側へデータを流すかの情報を与えるも
のである。
FIG. 4 shows the flow of input switching processing on the kernel side, and corresponds to the interrupt processing 104 in FIG. 1. In this process, when there is an input from the keyboard, it is determined whether the input data is a Japanese start key (step 401).
) L,, If it is the Japanese start key, an interrupt registered by the kana-kanji conversion program is generated and the process proceeds to the interrupt entrance 311 in FIG. 3 (step 404).
If the key is other than the 0 Japanese processing start key that executes the processes from step 309 onward in the figure, a process to determine whether Japanese processing is currently in progress is performed (step 402), and if not, input data is requested. The system call 107 in FIG. 1 passes the data to the user program 101 that is currently processing the data, passes the data to the kana-kanji conversion program 106 if Japanese processing is in progress, and performs the operation of converting the data into kanji on the kana-kanji conversion program side. This judgment process (step 402
), it provides information on which side to send data to.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、カーネル内部では日本語処理開始・終
了の判定及び日本語処理中か否かの判定を行っているの
みであり、英数字を入力する際のカーネルのオーバーヘ
ッド増加は、オペレータが打鍵する時間(秒のオーダー
)に比べてミリ秒の時間しか要しないため、システム運
用効率をほとんど低下させない。また、英字の端末であ
ればもともと日本語処理を行わせる必要性がなく、OS
のカーネル部分をそのまま使えるので、ソフトウェアの
保守の面では二重に管理を行う必要がなくなり、OSの
提供・保守・管理に要するコストを大きく低減すること
が可能である。更に、日本語サポートの要となる仮名漢
字変換部分をOSのカーネルと切離して作成しているた
め、今後の日本語サポートにおける技術革新にも容易に
追随できるという特徴を持っており、また、日本語以外
の外国語(たとえば、中国語)に対しても当該外国語の
文法に合わせて仮名漢字変換部分に相当するプログラム
を作成し、辞書を準備すれば対応可能であるという利点
がある。
According to the present invention, the kernel only judges whether Japanese processing starts and ends and whether Japanese processing is in progress, and the increase in kernel overhead when inputting alphanumeric characters is caused by the operator. Since it takes only milliseconds compared to the time required to type a key (on the order of seconds), it hardly reduces the efficiency of system operation. In addition, if the terminal uses English characters, there is no need to perform Japanese processing, and the OS
Since the kernel part of the OS can be used as is, there is no need for double management in terms of software maintenance, and the costs required for providing, maintaining, and managing the OS can be significantly reduced. Furthermore, since the kana-kanji conversion part, which is the key to Japanese language support, is created separately from the OS kernel, it has the feature of being able to easily follow future technological innovations in Japanese language support. There is an advantage in that it can be applied to foreign languages other than Japanese (for example, Chinese) by creating a program corresponding to the kana-kanji conversion part according to the grammar of the foreign language and preparing a dictionary.

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

第1図はOSの中の本発明の特徴とする部分の機能構成
を示した図、第2図は計算機システムの構成図、第3図
は仮名漢字変換プログラムの概略フローチャート、第4
図はカーネルの入力切替処理のフローチャートである。 101・・・ユーザプログラム、102・・・キーボー
ド、103・・・カーネル、104・・・割込み処理、
105・・・割込み、106・・・仮名漢字変換プログ
ラム、107・・・システムコールによる切替要求。
Fig. 1 is a diagram showing the functional configuration of the parts of the OS that are characteristic of the present invention, Fig. 2 is a configuration diagram of the computer system, Fig. 3 is a schematic flowchart of the kana-kanji conversion program, and Fig. 4
The figure is a flowchart of kernel input switching processing. 101... User program, 102... Keyboard, 103... Kernel, 104... Interrupt processing,
105...Interruption, 106...Kana-kanji conversion program, 107...Switching request by system call.

Claims (1)

【特許請求の範囲】 1、電子計算機のOS内のカーネルに割込み処理機能を
設け、また上記カーネルとは独立なタスクとして仮名漢
字変換プログラムをOS内に設けるとともに、キーボー
ドより入力データがカーネルへ与えられた時には該入力
データが日本語処理を指示するものか否かを上記割込み
処理機能によって判定し、日本語処理を指示する入力デ
ータであった時にはその旨の割込みを上記仮名漢字変換
プログラムへ送出し、該割込みを受けとった仮名漢字変
換プログラムは、該割込みが日本語処理の開始を指示す
るものであると判定してから日本語処理の終了を指示す
る割込みを受けとるまでの日本語処理期間中はカーネル
へシステムコールを発行してその間のキーボードからの
入力を自プログラムへとり込み、仮名漢字変換処理を実
行したのちその処理結果をユーザプログラムへ送出し、
上記日本語処理期間中以外でかつ日本語処理を指示する
もの以外の入力データがキーボードから入力された時に
はカーネルは当該入力データを上記仮名漢字変換プログ
ラムを介さずにユーザプログラムへ直接送るようにした
ことを特徴とする電子計算機の日本語処理方法。 2、各キーボード毎の前記日本語処理を指示する入力デ
ータを前記仮名漢字変換プログラム内のテーブルへ予め
設定しておき、カーネル内の前記割込み処理機能は上記
テーブルの内容を参照することによって入力データが日
本語処理を指示するものであるか否かを判定するように
するとともに、入力データが日本語処理を指示するもの
であった時にカーネルから与えられた割込みを受けた上
記仮名漢字変換プログラムは、当該割込みの最初のもの
から日本語処理の開始、終了が交互に順次指定されたも
のと判定するようにしたことを特徴とする特許請求の範
囲第1項記載の電子計算機の日本語処理方法。
[Claims] 1. An interrupt processing function is provided in the kernel in the OS of the electronic computer, and a kana-kanji conversion program is provided in the OS as a task independent of the kernel, and input data is sent to the kernel from the keyboard. When the input data is an instruction for Japanese processing, the interrupt processing function determines whether or not the input data instructs Japanese processing, and if the input data is an instruction for Japanese processing, an interrupt to that effect is sent to the kana-kanji conversion program. However, the Kana-Kanji conversion program that receives the interrupt will continue processing during the Japanese language processing period from when it determines that the interrupt is an instruction to start Japanese language processing until it receives an interrupt that instructs to end Japanese language processing. issues a system call to the kernel, captures the input from the keyboard during that time into its own program, performs kana-kanji conversion processing, and then sends the processing result to the user program.
When input data other than those instructing Japanese processing is input from the keyboard outside of the above Japanese language processing period, the kernel sends the input data directly to the user program without going through the above Kana-Kanji conversion program. A Japanese language processing method for electronic computers characterized by the following. 2. Input data that instructs the Japanese processing for each keyboard is set in advance in a table in the kana-kanji conversion program, and the interrupt processing function in the kernel reads the input data by referring to the contents of the table. The above kana-kanji conversion program determines whether or not the input data indicates Japanese processing, and receives an interrupt from the kernel when the input data indicates Japanese processing. , the Japanese language processing method for a computer according to claim 1, wherein the start and end of the Japanese language processing are determined to be alternately and sequentially specified from the first interrupt. .
JP61201656A 1986-08-29 1986-08-29 Japanese word processing method for electronic computer Pending JPS6358543A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61201656A JPS6358543A (en) 1986-08-29 1986-08-29 Japanese word processing method for electronic computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61201656A JPS6358543A (en) 1986-08-29 1986-08-29 Japanese word processing method for electronic computer

Publications (1)

Publication Number Publication Date
JPS6358543A true JPS6358543A (en) 1988-03-14

Family

ID=16444709

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61201656A Pending JPS6358543A (en) 1986-08-29 1986-08-29 Japanese word processing method for electronic computer

Country Status (1)

Country Link
JP (1) JPS6358543A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998058329A1 (en) * 1997-06-17 1998-12-23 Omron Corporation Information processing apparatus and method, and recording medium containing information processing program stored therein

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61253577A (en) * 1985-05-02 1986-11-11 Toshiba Corp Japanese word processing filter

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61253577A (en) * 1985-05-02 1986-11-11 Toshiba Corp Japanese word processing filter

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998058329A1 (en) * 1997-06-17 1998-12-23 Omron Corporation Information processing apparatus and method, and recording medium containing information processing program stored therein

Similar Documents

Publication Publication Date Title
JPS6358543A (en) Japanese word processing method for electronic computer
JP2000148367A (en) Character processor, its method, and storage medium having stored its program thereon
JPS62274430A (en) Japanese language processing system for electronic computer
JP2000148334A (en) Device and method for processing character and storage medium having stored program thereof
JPS6148066A (en) Data converting device
JPS61286882A (en) Screen switching sytem
JP2900071B2 (en) Programming device for programmable controller
JP2763424B2 (en) Computer with default settings
JPH04260970A (en) Method for inputting japanese language in application program
JPS6125234A (en) Keyboard system
JPH01280853A (en) Terminal computer
JPH0444159A (en) Japanese document processor
JPH04119456A (en) Data input device
JPH04205514A (en) Key input device
JPS63188261A (en) Kanji data entry device
WO1998007087A1 (en) Method and apparatus for efficient text entry and editing
JPS6336365A (en) Japanese language processor
JPS63113616A (en) Data entry device
JPH01128118A (en) Key input converting device
JPH02165257A (en) Character processor
JPS6288053A (en) Character input device
JPH0713674A (en) Information processor
JPH04314119A (en) Function key multiple registering/deleting/selecting mechanism
JPH0683514A (en) Character input device
JPH02235127A (en) Keyboard controller