JPH096776A - String processing method - Google Patents
String processing methodInfo
- Publication number
- JPH096776A JPH096776A JP7177972A JP17797295A JPH096776A JP H096776 A JPH096776 A JP H096776A JP 7177972 A JP7177972 A JP 7177972A JP 17797295 A JP17797295 A JP 17797295A JP H096776 A JPH096776 A JP H096776A
- Authority
- JP
- Japan
- Prior art keywords
- character string
- input direction
- document
- character
- input
- 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
Links
Landscapes
- Document Processing Apparatus (AREA)
Abstract
(57)【要約】
【目的】 例えば、横書き文書中に部分的に縦書き文書
を入力する場合や縦書き文書中に部分的に横書き文書を
入力するような場合に、設定書式を変えずに、一時的に
文字列入力方向を任意の方向に変更する。
【構成】 書式メモリ7に予め文字列入力方向として横
書きが書式設定されている場合に、制御部1はこの書式
設定内容を保持したまま入力方向一時切替キーKによっ
て文字列入力方向が縦書きに切り替えられたか否かを判
別する。ここで縦書きに切り替えられた場合、制御部1
はその間に入力された文字をテキストカーソル位置に入
力すると共に、カーソル位置を縦書き方向に1文字分更
新する。
(57) [Summary] [Purpose] For example, when partially inputting a vertical document in a horizontal document or when partially inputting a horizontal document in a vertical document, do not change the setting format. , Temporarily change the character string input direction to any direction. [Structure] When horizontal writing is preliminarily formatted in the format memory 7 as the character string input direction, the control unit 1 holds the format setting contents and changes the character string input direction to vertical writing by the input direction temporary switching key K. It is determined whether it has been switched. When it is switched to vertical writing here, the control unit 1
Inputs the characters input during that time to the text cursor position and updates the cursor position by one character in the vertical writing direction.
Description
【0001】[0001]
【産業上の利用分野】この発明はワードプロセッサやパ
ーソナルコンピュータ等の文書処理装置において、入力
された文字をテキストカーソル位置に入力すると共に、
予め書式設定されている横書き/縦書き等の入力方向へ
カーソル位置を更新する文字列処理方法に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention, in a document processing device such as a word processor and a personal computer, inputs an input character to a text cursor position, and
The present invention relates to a character string processing method for updating a cursor position in an input direction such as horizontal writing / vertical writing which is formatted in advance.
【0002】[0002]
【従来の技術】従来、文書処理装置において、テキスト
画面上のカーソルは、通常、文字が入力される毎に設定
書式にしたがって横書きの場合には右から左方向へ、縦
書きの場合には上から下へ移動するが、その間の改行や
バックスペース時には下から上、左から右方向へ移動す
る場合もある。ところで、個性的で効果的な案内状等を
作成するために、横書き文書の中に部分的に縦書き文書
を入れて一部を強調したい場合があるが、このような場
合、カーソルキーを操作してカーソルを縦方向に移動す
るか、書式設定を一時的に縦書きに変更するかによって
行っていた。2. Description of the Related Art Conventionally, in a document processing apparatus, a cursor on a text screen is normally moved from right to left in the case of horizontal writing and upward in the case of vertical writing according to a setting format every time a character is input. It moves from the bottom to the bottom, but it may move from the bottom to the top or the left to the right at the time of a line break or backspace between them. By the way, in order to create a unique and effective guide, etc., it is sometimes desirable to put a vertical document in a horizontal document and emphasize a part of it.In such a case, operate the cursor key. And then move the cursor vertically, or temporarily change the formatting to vertical writing.
【0003】[0003]
【発明が解決しようとする課題】しかしながら、横書き
の書式を変更せずにカーソルキーを操作して縦書き文字
列を入力する方法では、1文字入力する毎にカーソルは
右方向へ1文字移動するため、左カーソルキーを操作し
てカーソルを戻したのち下カーソルキーを操作して縦方
向に移動するという面倒な操作を何回も繰り返して行う
必要があった。また、縦書き文書に対して文字の挿入/
削除を行うと、文書全体の文字配置状態が崩れ、横書き
文書までも影響を受けることがあり、縦書き文書のみを
部分編集することは極めて困難であった。一方、設定書
式を一時的に縦書きに変更する方法では、テキスト画面
から書式設定画面に切り替え、更に書式設定画面からテ
キスト画面に切り替えるという面倒な操作を何回も行う
必要があり、更に縦書き文書を入力する都度、その文書
範囲を指定しなければならないという面倒な操作を必要
としていた。このことは、縦書き文書の一部に横書き文
書を挿入するような場合でも同様の問題があった。この
発明の課題は例えば、横書き文書中に部分的に縦書き文
書を入力する場合や縦書き文書中に部分的に横書き文書
を入力するような場合に、設定書式を変えずに、一時的
に文字列入力方向を任意の方向に変更できるようにする
ことである。また、この発明の課題は例えば、横書き文
書の中に縦書き文書が混在する場合や縦書き文書に横書
き文書が混在するような場合に、設定書式を変えずに、
一時的に文字列編集方向を任意の方向に変更できるよう
にすることである。However, in the method of operating the cursor key and inputting a vertically written character string without changing the horizontal writing format, the cursor moves one character to the right every time one character is input. Therefore, it is necessary to repeatedly perform the troublesome operation of operating the left cursor key to return the cursor and then operating the down cursor key to move in the vertical direction many times. Also, insert characters /
When the deletion is performed, the character arrangement state of the entire document may be destroyed, and even the horizontally written document may be affected, and it is extremely difficult to partially edit only the vertically written document. On the other hand, in the method of temporarily changing the setting format to vertical writing, it is necessary to perform the troublesome operation of switching from the text screen to the formatting screen and then from the formatting screen to the text screen many times. Each time a document was input, the troublesome operation of having to specify the document range was required. This has a similar problem even when a horizontal writing document is inserted in a part of the vertical writing document. An object of the present invention is to temporarily input a vertical writing document in a horizontal writing document or a horizontal writing document in a vertical writing document without temporarily changing the setting format. It is to be able to change the character string input direction to any direction. Further, an object of the present invention is, for example, when a vertically written document is mixed in a horizontally written document or when a horizontally written document is mixed in a vertically written document, without changing the setting format,
This is to allow the character string editing direction to be temporarily changed to an arbitrary direction.
【0004】[0004]
【課題を解決するための手段およびその作用】第1の発
明の手段およびその作用は次の通りである。入力された
文字をテキストカーソル位置に入力すると共に、カーソ
ル位置を予め書式設定されている文字列入力方向へ更新
する文書処理装置において、少なくとも第1の文字列入
力方向、第2の文字列入力方向のうち、第1の文字列入
力方向が予め書式設定されている場合に、この書式設定
内容を保持したまま第2の文字列入力方向に切り替えら
れたか否かを判別し、第2の文字列入力方向に切り替え
られている間、文字入力が行われた際に、入力された文
字をテキストカーソル位置に入力すると共に、カーソル
位置を第2の文字列入力方向へ更新する。なお、前記第
1の文字列入力方向から第2の文字列入力方向に切り替
えられた際に、現在のカーソル位置から第1の文字列入
力方向に既に入力されている文字列が存在するか否かを
判別し、当該文字列が存在していることが判別された際
に、現在のテキストカーソル位置と当該文字列との間に
スペースを挿入するようにしてもよい。また、所定キー
の操作によって前記第1の文字列入力方向と第2の文字
列入力方向とを任意に切り替え指定するようにしてもよ
い。したがって、例えば、横書き文書中に部分的に縦書
き文書を入力する場合や縦書き文書中に部分的に横書き
文書を入力するような場合に、設定書式を変えずに、一
時的に文字列入力方向を任意の方向に変更することがで
きる。第2の発明の手段およびその作用は次の通りであ
る。文書編集が指示された際に、予め書式設定されてい
る文字列入力方向にしたがって編集処理を行う文書処理
装置において、少なくとも第1の文字列入力方向、第2
の文字列入力方向のうち、第1の文字列入力方向が予め
書式設定されている場合に、この書式設定内容を保持し
たまま第2の文字列入力方向に切り替えられたか否かを
判別し、第2の文字列入力方向に切り替えられている間
に文書編集が指示された際、第2の文字列入力方向に存
在する文字列に対して編集処理を行う。第3の発明の手
段およびその作用は次の通りである。文書編集が指示さ
れた際に、予め書式設定されている文字列入力方向にし
たがって編集処理を行う文書処理装置において、少なく
とも第1の文字列入力方向、第2の文字列入力方向のう
ち、第1の文字列入力方向が予め書式設定されている場
合に、この書式設定内容を保持したまま第2の文字列入
力方向に切り替えられたか否かを判別し、第2の文字列
入力方向に切り替えられている間に入力された文字に入
力方向を示す識別情報を付加し、文書編集時に、前記識
別情報が付加されている文字列に対して第2の文字列入
力方向にしたがった編集処理を行う。したがって、例え
ば、横書き文書の中に縦書き文書が混在する場合や縦書
き文書に横書き文書が混在するような場合に、設定書式
を変えずに、一時的に文字列編集方向を任意の方向に変
更することができる。Means for Solving the Problem and Its Action The means and action of the first invention are as follows. In a document processing apparatus for inputting an input character to a text cursor position and updating the cursor position to a pre-formatted character string input direction, at least a first character string input direction and a second character string input direction are provided. Of the two, if the first character string input direction is pre-formatted, it is determined whether or not the second character string input direction is switched while retaining the formatting contents. When a character is input while switching to the input direction, the input character is input to the text cursor position, and the cursor position is updated to the second character string input direction. When the first character string input direction is switched to the second character string input direction, whether or not there is a character string that has already been input from the current cursor position in the first character string input direction. Alternatively, when it is determined that the character string exists, a space may be inserted between the current text cursor position and the character string. Further, the first character string input direction and the second character string input direction may be arbitrarily switched and designated by operating a predetermined key. Therefore, for example, when partially inputting a vertical writing document in a horizontal writing document or when partially inputting a horizontal writing document in a vertical writing document, temporarily input the character string without changing the setting format. The direction can be changed to any direction. The means of the second invention and its operation are as follows. In a document processing device that performs editing processing in accordance with a character string input direction that has been preformatted when document editing is instructed, at least a first character string input direction, a second character
If the first character string input direction of the character string input directions of is formatted in advance, it is determined whether or not the second character string input direction is switched while keeping the format setting content, When the document editing is instructed while switching to the second character string input direction, the editing process is performed on the character string existing in the second character string input direction. The means of the third invention and its operation are as follows. In a document processing device that performs editing processing in accordance with a character string input direction that is preformatted when a document edit is instructed, at least the first character string input direction and the second character string input direction When the character string input direction of 1 is pre-formatted, it is determined whether or not the character string input direction is switched to the second character string input direction while keeping the format setting content, and switched to the second character string input direction. While the text is being edited, the identification information indicating the input direction is added to the characters that have been input, and when the document is edited, the editing process is performed according to the second character string input direction with respect to the character string to which the identification information is added. To do. Therefore, for example, when a vertical writing document is mixed in a horizontal writing document or when a horizontal writing document is mixed in a vertical writing document, the character string editing direction is temporarily changed to an arbitrary direction without changing the setting format. Can be changed.
【0005】[0005]
【実施例】以下、図1〜図8を参照して一実施例を説明
する。図1はワードプロセッサ等の文書処理装置を示し
たブロック構成図である。制御部1は文書処理装置の全
体構成の概要を示したブロック図である。制御部1はR
OM2等に格納されている各種プログラムにしたがって
この文書処理装置の全体動作を制御する中央演算処理装
置であり、キー入力部3から文字コードが入力される
と、この文字コードを表示データに変換して表示部4の
テキスト画面に表示出力させると共に、RAM5内の入
力バッファ5−1に文字コードを格納する。この場合、
制御部1は入力された文字をカーソルポインタ6が示す
テキストカーソル位置に表示出力させると共に、書式メ
モリ7内に予め設定されている文字列入力方向(縦書き
/横書き)にしたがってカーソルポインタ6の値を1文
字分更新する。このような動作はキー入力部3から1文
字入力される毎に実行され、その後、確定操作が行われ
ると、入力バッファ5−1内のかな文字列をかな漢字変
換あるいは無変換処理し、RAM5内の文書メモリ5−
2に格納する。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment will be described below with reference to FIGS. FIG. 1 is a block diagram showing a document processing device such as a word processor. The control unit 1 is a block diagram showing an outline of the overall configuration of the document processing apparatus. Control unit 1 is R
A central processing unit that controls the overall operation of this document processing apparatus according to various programs stored in the OM2, etc. When a character code is input from the key input unit 3, this character code is converted into display data. In addition to displaying and outputting on the text screen of the display unit 4, the character code is stored in the input buffer 5-1 in the RAM 5. in this case,
The control unit 1 causes the input character to be displayed and output at the text cursor position indicated by the cursor pointer 6, and the value of the cursor pointer 6 according to the character string input direction (vertical writing / horizontal writing) preset in the format memory 7. Is updated by one character. Such an operation is executed every time one character is input from the key input unit 3, and when a confirmation operation is performed thereafter, the kana-character string in the input buffer 5-1 is subjected to kana-kanji conversion or non-conversion processing, and the RAM 5 Document memory 5-
2 is stored.
【0006】書式メモリ7は図2に示すように行ピッ
チ、桁ピッチ、文字サイズ……の他、横書き/縦書きの
書式情報を記憶するもので、予め設定されているデフォ
ルト書式を変更する場合にはキー入力部3からその変更
を指示すると、制御部1はその指示にしたがって書式メ
モリ7の内容を書き替える。ここで、キー入力部3上に
は書式メモリ7の設定内容を変更せずに一時的に横書き
文書から縦書き文書のように文字列の入力方向を切り替
える入力方向一時切替キーKが設けられており、この入
力方向一時切替キーKが操作されると、制御部1は文字
列入力方向を一時的に切り替える。例えば、書式メモリ
7に横書きが設定されている場合、制御部1は書式メモ
リ7から行ピッチ、桁ピッチを読み出す際に、行ピッチ
と桁ピッチとを相互に入れ替えて読み出す。つまり、横
書き時の行ピッチを縦書き時の桁ピッチとして読み出
し、また横書き時の桁ピッチを縦書き時の行ピッチとし
て読み出す。なお、書式メモリ7に縦書きが設定されて
いる場合も同様であり、入力方向一時切替キーKが操作
されると、書式メモリ7の設定内容を変更せずに、行ピ
ッと桁ピッチとを相互に入れ替えて読み出す。As shown in FIG. 2, the format memory 7 stores the line pitch, digit pitch, character size, etc., as well as horizontal / vertical writing format information. When changing the preset default format. When the change is instructed from the key input section 3, the control section 1 rewrites the contents of the format memory 7 according to the instruction. Here, on the key input unit 3, there is provided an input direction temporary switching key K for temporarily switching the input direction of a character string from a horizontal writing document to a vertical writing document without changing the setting contents of the format memory 7. When the input direction temporary switching key K is operated, the control unit 1 temporarily switches the character string input direction. For example, when horizontal writing is set in the format memory 7, the control unit 1 interchanges the row pitch and the digit pitch when reading the line pitch and the digit pitch from the format memory 7. That is, the row pitch during horizontal writing is read as the digit pitch during vertical writing, and the digit pitch during horizontal writing is read as the row pitch during vertical writing. The same applies when the vertical writing is set in the format memory 7, and when the input direction temporary switching key K is operated, the line pitch and the digit pitch are changed without changing the setting contents of the format memory 7. Read each other.
【0007】図3は文書メモリ5−2の内容を概念的に
示したもので、書式メモリ7に横書きが設定されている
場合に入力方向一時切替キーKが操作され、一時的に文
字列入力方向が縦書きに切り替えられた場合のデータ構
造を例に示している。つまり、横書き文書の中に部分的
に縦書き文書を挿入するような場合、縦書きの文字コー
ドには、縦書きを示す識別コードが1文字毎に付加され
る。この場合、縦書きの文字コードと横書きの文字コー
ドとの間には少なくとも1文字分のスペースコードが強
制的に挿入される。なお、1行分のメモリ幅は書式情報
の桁数により求められる。また、文書メモリ5−2内の
文書データに対して編集指示が与えられると、制御部1
はその編集内容(文字挿入、削除、複写、移動等)にし
たがって文書メモリ5−2内の文書データを編集する
が、その際、横書き文書、あるいは縦書き文書別に編集
処理を行う。FIG. 3 conceptually shows the contents of the document memory 5-2. When horizontal writing is set in the format memory 7, the input direction temporary switching key K is operated to temporarily input a character string. The data structure when the direction is switched to vertical writing is shown as an example. That is, when a vertically written document is partially inserted in a horizontally written document, an identification code indicating vertical writing is added to each character of the vertically written character code. In this case, at least one character space code is forcibly inserted between the vertically written character code and the horizontally written character code. The memory width for one line is obtained from the number of digits of format information. When an editing instruction is given to the document data in the document memory 5-2, the control unit 1
Edits the document data in the document memory 5-2 according to the editing contents (character insertion, deletion, copying, moving, etc.), and at that time, edit processing is performed for each of the horizontal writing document and the vertical writing document.
【0008】次に、本実施例の動作を図4〜図6に示す
フローチャートにしたがって説明する。なお、図4〜図
6は横書き文書中に部分的に縦書き文書を入力する場合
や横書き文書中に縦書き文書が部分的に混在している文
書を編集する場合の動作を例示したフローチャートであ
る。また、図7はテキスト画面を例示したもので、同図
(A)は書式メモリ7に横書きが設定されている場合の
カーソルの移動方向とその文書例を示し、同図(B)は
入力方向一時切替キーKが操作される文字列入力方向が
縦書きに切り替えられた場合のカーソル移動方向とその
文書例を示している。The operation of this embodiment will be described below with reference to the flow charts shown in FIGS. 4 to 6 are flowcharts exemplifying operations when a vertical writing document is partially input in a horizontal writing document or when a document in which a vertical writing document is partially mixed in a horizontal writing document is edited. is there. Further, FIG. 7 shows an example of a text screen. FIG. 7A shows a cursor movement direction and a document example when horizontal writing is set in the format memory 7, and FIG. 7B shows an input direction. The cursor movement direction and the document example when the character string input direction in which the temporary switching key K is operated are switched to the vertical writing mode are shown.
【0009】先ず、文書入力時の動作を説明する。キー
入力待ち状態において(ステップA1)、キー入力が行
われると、入力方向一時切替キーKが操作されたかを調
べるが(ステップA2)、いま文字入力が行われたもの
とすると、ステップA6に進み、縦カーソルフラグがO
Nされているかをチェックする。ここで、縦カーソルフ
ラグは書式設定時において、横書きが指定されればOF
F、縦書きが指定されればONされるもので、いま、書
式メモリ7に横書きが設定されている場合であるので、
ステップA12に進み、入力文字を入力バッファ5−1
に一時記憶すると共に、カーソルポインタ6が示すテキ
ストカーソル位置に入力文字を表示出力させる。そし
て、現在のカーソル位置が横書きの行末でなければ(ス
テップA13)、制御部1はカーソルを設定書式に基づ
いて横方向(右方向)に1文字分移動させる(ステップ
A14)。一方、ステップA13で横書きの行末が検出
された場合には、ステップA17に進み、次の下の行の
横文字先頭位置へカーソルを移動させる。このような動
作は1文字入力毎に実行される。ここで、入力されたか
な文字列に対して無変換/かな漢字変換が指示される
と、ステップA18に進み、かな漢字変換あるいは無変
換処理が行われる。そして、確定文字列を構成する各文
字コードに属性コード等を付加して文書メモリ5−2に
格納すると共に(ステップA19)。縦カーソルフラグ
を参照し、それがONされていれば縦書きを示す識別コ
ードを当該文字にそれぞれ付加するが(ステップA2
0)、いま、縦カーソルフラグがOFFされている横書
き文書の作成時であるから、ステップA20はスキップ
される。このようにして図7(A)に示すような横書き
文書を作成したものとする。First, the operation of inputting a document will be described. When a key input is made in the key input waiting state (step A1), it is checked whether or not the input direction temporary changeover key K has been operated (step A2). If it is assumed that a character input has been made, the process proceeds to step A6. , Vertical cursor flag is O
Check if it is N. Here, the vertical cursor flag is OF when the horizontal writing is designated at the time of formatting.
If F or vertical writing is designated, it is turned on. Since the horizontal writing is currently set in the format memory 7,
The process proceeds to step A12, where the input character is input buffer 5-1.
Is temporarily stored, and the input character is displayed and output at the text cursor position indicated by the cursor pointer 6. Then, if the current cursor position is not the end of the line for horizontal writing (step A13), the control unit 1 moves the cursor horizontally (to the right) by one character based on the setting format (step A14). On the other hand, if the horizontal line end is detected in step A13, the process advances to step A17 to move the cursor to the horizontal character start position of the next lower line. Such an operation is executed for each character input. If no conversion / kana-kanji conversion is instructed for the input kana character string, the process proceeds to step A18, where kana-kanji conversion or non-conversion processing is performed. Then, an attribute code or the like is added to each character code forming the fixed character string and stored in the document memory 5-2 (step A19). The vertical cursor flag is referred to, and if it is turned on, an identification code indicating vertical writing is added to each character (step A2).
0), the step A20 is skipped because it is at the time of creating a horizontally written document in which the vertical cursor flag is OFF. In this way, it is assumed that the horizontal writing document as shown in FIG.
【0010】いま、図7(A)に示す文書例において
は、その左側に縦長の余白部分があり、この部分に縦書
きのタイトル名を挿入するものとする。この場合、書式
メモリ7には横書きが設定されているので、この設定内
容を変更せずに一時的に縦書き文書を入力する場合に
は、入力方向一時切替キーKを操作する。すると、ステ
ップA2でそのことが検出されてステップA3に進み、
縦カーソルフラグがONならOFFにセットされ、OF
FならONにセットされる。次に、このフラグ状態に応
じた書式情報を書式メモリ7から取り込んでおく(ステ
ップA4)。いま、縦カーソルフラグはOFFからON
に切り替えられるため、横書き時の設定書式のうち行と
桁の情報(行ピッチ、桁ピッチ、行数、桁数)が相互に
入れ替えられて読み出される。次に、縦カーソルフラグ
がONからOFFに切り替えられた場合には、RAM5
内に一時記憶されている縦書き文書の開始位置をクリア
する(ステップA5)。Now, in the example of the document shown in FIG. 7A, there is a vertically long margin portion on the left side thereof, and a vertically written title name is inserted in this portion. In this case, since horizontal writing is set in the format memory 7, when inputting a vertically written document without changing the setting contents, the input direction temporary switching key K is operated. Then, it is detected in step A2 and the process proceeds to step A3.
If the vertical cursor flag is ON, it will be set to OFF and OF
If it is F, it is set to ON. Next, the format information according to this flag state is fetched from the format memory 7 (step A4). The vertical cursor flag is now ON from OFF
Since it is switched to, the row and column information (row pitch, digit pitch, number of rows, number of digits) of the setting format at the time of horizontal writing are interchanged and read. Next, when the vertical cursor flag is switched from ON to OFF, the RAM 5
The start position of the vertically written document temporarily stored therein is cleared (step A5).
【0011】この状態において、文字入力が行われる
と、ステップA6で縦カーソルフラグがONされている
ことが検出される。すると、ステップA7に進み、フラ
グがONされた直後かを調べる。いま、入力方向一時切
替キーKを操作した直後に最初の文字が入力されると、
現在のテキストカーソル位置を縦書き文書の開始位置と
してRAM5内に退避させる(ステップA8)。そし
て、入力された文字を入力バッファ5−1にセットする
と共に、テキストカーソル位置に表示出力させる入力処
理が行われる(ステップA9)。When a character is input in this state, it is detected in step A6 that the vertical cursor flag is ON. Then, the process proceeds to step A7, and it is checked whether it is immediately after the flag is turned on. Now, when the first character is entered immediately after operating the input direction temporary change key K,
The current text cursor position is saved in the RAM 5 as the start position of the vertically written document (step A8). Then, the input character is set in the input buffer 5-1 and an input process for displaying and outputting the character at the position of the text cursor is performed (step A9).
【0012】この入力処理は図6に示すフローチャート
にしたがって実行される。先ず、現在のカーソル位置の
右横に横書き文字が有るかをチェックする(ステップB
1)。いま、図7(B)に示すように現在のカーソル位
置の右横には横書き文字は存在していないので、ステッ
プB3に進み、入力文字「ビ」を入力バッファ5−1に
セットすると共に、現在のカーソル位置に表示出力する
(図7(B)参照)。This input processing is executed according to the flowchart shown in FIG. First, it is checked whether there is a horizontal writing character on the right side of the current cursor position (step B
1). Now, as shown in FIG. 7B, since there is no horizontal writing character on the right side of the current cursor position, the process proceeds to step B3, where the input character "B" is set in the input buffer 5-1 and Display output is performed at the current cursor position (see FIG. 7B).
【0013】そして、図4のステップA10に進み、縦
書きの行末かをチェックし、行末でなければ、ステップ
A11に進み、カーソルを書式に基づいて縦方向(下方
向)に1文字分移動させる。そして、変換/確定等の操
作に応答してステップA18〜A20が実行されるが、
この場合、縦カーソルフラグがONされているので、確
定文字コードには縦書きを示す識別コードが付加されて
入力バッファ5−1に格納される。すなわち図3に示す
ように、縦書きの先頭文字“ビ”には縦書きコードが付
加される。同様に、次の文字として「ジ」を入力する
が、この場合、縦カーソルフラグをONした直後ではな
いのでステップA8はスキッブされ、ステップA9に進
む。この場合、図6に示す入力処理が実行されるが、い
ま、図7(B)に示すように現在のカーソル位置の右横
には横書き文字として「会場」が存在するため、右横の
横書き文字1行分を右方向へ1文字分シフトしてスペー
スを確保する。そして、入力文字「ジ」を入力バッファ
5−1にセットすると共にテキストカーソル位置に表示
出力させる(ステップB3)。そして、確定操作により
ステップA18〜A20が実行され、入力文字「ジ」に
縦書きコードが付加されて文書メモリ5−2に格納され
る。以下、同様の動作が1文字入力される毎に実行され
る。これにより図7(B)に示すように、横書き文書の
左側に縦書きの文字列「ビジネスショー」が入力され
る。Then, in step A10 in FIG. 4, it is checked whether the line is the end of the vertical writing. If it is not the end of the line, the process advances to step A11 to move the cursor vertically (downward) by one character based on the format. . Then, steps A18 to A20 are executed in response to an operation such as conversion / confirmation,
In this case, since the vertical cursor flag is turned on, an identification code indicating vertical writing is added to the confirmed character code and stored in the input buffer 5-1. That is, as shown in FIG. 3, a vertical writing code is added to the vertical writing head character “B”. Similarly, "ji" is input as the next character, but in this case, since it is not immediately after turning on the vertical cursor flag, step A8 is skipped and the process proceeds to step A9. In this case, the input process shown in FIG. 6 is executed. However, as shown in FIG. 7B, “venue” exists as a horizontal writing character on the right side of the current cursor position. A space is secured by shifting one character line to the right by one character. Then, the input character "ji" is set in the input buffer 5-1 and displayed and output at the position of the text cursor (step B3). Then, steps A18 to A20 are executed by the confirming operation, and the vertical writing code is added to the input character "J" and stored in the document memory 5-2. Hereinafter, the same operation is executed each time one character is input. As a result, as shown in FIG. 7B, the vertically written character string “business show” is input to the left side of the horizontally written document.
【0014】なお、図7では縦書きの文字列を1行分入
力した場合を示したが、複数行分入力する場合には、改
行キーを操作する。すると、縦カーソルフラグがONさ
れていれば(ステップA15)、RAM5内に退避され
ている縦書き文書の開始位置を読み出し、この開始位置
(桁位置)で、かつ現在入力されている行の次の行位置
へカーソルを移動させる(ステップA16)。図8はこ
の場合におけるカーソルの移動状態を示している。な
お、ステップA10で縦書きの行末であることが検出さ
れた場合(自動改行する場合)にもステップA16が実
行される。このようにして縦書き文書を入力したのち、
再び入力方向一時切替キーKを操作すると、縦カーソル
フラグがOFFされると共に(ステップA3)、書式メ
モリ7に設定されている横書きの書式が読み出される
(ステップA4)。そして、縦書き文書の開始位置がク
リアされる(ステップA5)、したがって、以降、入力
された文字は全て横書きで入力されることになる。Although FIG. 7 shows the case where one line of a vertically written character string is input, the line feed key is operated when inputting a plurality of lines. Then, if the vertical cursor flag is turned on (step A15), the start position of the vertical writing document saved in the RAM 5 is read out, and at the start position (column position) and next to the line currently input. The cursor is moved to the line position of (step A16). FIG. 8 shows the moving state of the cursor in this case. Note that step A16 is also executed when it is detected in step A10 that the line is the end of vertical writing (in case of automatic line feed). After inputting a vertical document in this way,
When the input direction temporary switching key K is operated again, the vertical cursor flag is turned off (step A3), and the horizontal writing format set in the format memory 7 is read (step A4). Then, the start position of the vertically written document is cleared (step A5), and hence, thereafter, all the input characters are input horizontally.
【0015】次に横書き形式の中に縦書き文書を部分的
に挿入した文書を編集する場合の動作を図5に示すフロ
ーチャートにしたがって説明する。先ず、文字挿入が指
定されると、縦カーソルフラグがONされているかを調
べる(ステップA21)、いま、縦書き文書の文字挿入
位置にカーソルを合わせ、入力方向一時切替キーKを操
作したものとすると、ステップA22に進み、現在のカ
ーソル位置に入力された文字を挿入すると共に、この文
字コードに縦書きコードを付加する。また、カーソル位
置に入力されていた元の文字が縦書き文字であれば、そ
れ以降に続く縦文字列を1文字分下に移動する。一方、
入力方向一時切替キーKが操作されず、縦カーソルフラ
グがOFFされたままの状態であっても、カーソル位置
の文字コードに縦書きコードが付加されていれば(ステ
ップA23)、上述の1文字挿入処理(ステップA2
2)が実行される。Next, the operation of editing a document in which a vertically written document is partially inserted in the horizontally written format will be described with reference to the flowchart shown in FIG. First, when character insertion is designated, it is checked whether or not the vertical cursor flag is turned on (step A21). Now, it is assumed that the cursor is positioned at the character insertion position of the vertical writing document and the input direction temporary switching key K is operated. Then, the process proceeds to step A22, where the character input at the current cursor position is inserted and the vertical writing code is added to this character code. If the original character input at the cursor position is a vertical writing character, the vertical character string that follows is moved downward by one character. on the other hand,
Even if the input direction temporary changeover key K is not operated and the vertical cursor flag remains OFF, if the vertical writing code is added to the character code at the cursor position (step A23), the above-mentioned one character Insertion process (step A2
2) is executed.
【0016】他方、横書き文書への文字挿入が指定され
た場合、つまり、縦カーソルフラグがOFFで(ステッ
プA21)、カーソル位置の文字に縦書きコードが付加
されていない場合には(ステップA23)、通常と同様
に横書き方向への1文字挿入が行われる(ステップA2
4)。ここで、挿入文字以降の文字列を1文字分右方向
へシフトさせる場合に、縦書きコード付きの文字が有れ
ば縦書き文字のシフトは行わず、横書き文字列のみをシ
フトする。On the other hand, if the insertion of characters into the horizontally written document is designated, that is, if the vertical cursor flag is OFF (step A21) and no vertical writing code is added to the character at the cursor position (step A23). , One character is inserted in the horizontal writing direction as usual (step A2).
4). Here, when shifting the character string after the inserted character to the right by one character, if there is a character with a vertical writing code, the vertical writing character is not shifted and only the horizontal writing character string is shifted.
【0017】次に、文字削除が指定されると、ステップ
A25に進み、縦カーソルフラグがONされているかを
チェックする。いま、縦書き文書の文字削除位置にカー
ソルを合わせ、入力方向一時切替キーKを操作したもの
とすると、ステップA26に進み、カーソル位置の文字
を削除する。この場合、カーソル位置の下に入力されて
いる文字が縦書き文字であれば、当該文字と共にそれ以
降に続く縦書き文字列を1文字分上に移動する。一方、
入力方向一時切替キーKが操作されず、縦カーソルフラ
グがOFFされたままの状態であっても、カーソル位置
の文字コードに縦書きコードが付加されていれば(ステ
ップA27)、上述の1文字削除処理(ステップA2
6)が実行される。他方、横書き文書への文字削除が指
定された場合には(ステップA25およびA27でN
O)、通常と同様に横書き方向への1文字削除処理が行
われる(ステップA28)。ここで、削除文字以降の文
字列を1文字分左方向へシフトさせる場合に、縦書き文
字が有れば、この文字のシフトは行われないことは文字
挿入の場合と同様である。なお、複写、移動バックスペ
ース等においても基本的には上述の編集処理と同様に縦
書き文書毎に行われる。Next, when the character deletion is designated, the process proceeds to step A25, and it is checked whether the vertical cursor flag is ON. Now, assuming that the cursor is positioned at the character deletion position of the vertically written document and the input direction temporary switching key K is operated, the process proceeds to step A26, and the character at the cursor position is deleted. In this case, if the character input below the cursor position is a vertically written character, the vertically written character string that follows the character is moved up by one character. on the other hand,
Even if the input direction temporary switching key K is not operated and the vertical cursor flag remains OFF, if the vertical writing code is added to the character code at the cursor position (step A27), the above-mentioned one character Deletion processing (step A2
6) is executed. On the other hand, when the character deletion to the horizontally written document is designated (N in steps A25 and A27)
O), one character is deleted in the horizontal writing direction as usual (step A28). Here, when shifting the character string after the deleted character by one character to the left, if there is a vertically written character, this character is not shifted, as in the case of character insertion. It should be noted that even in copying, moving back space, etc., basically, it is performed for each vertically written document similarly to the above-mentioned editing processing.
【0018】以上のように本実施例においては、横書き
文書中に部分的に縦書き文書を入力する場合には、設定
書式を横書きのまま変更せずに入力方向一時切替キーK
を操作するだけで、一時的に文字入力方向を縦書きに変
えることができる。この場合、縦書き文書と横書き文書
との間には少なくとも1文字分のスペースが挿入される
ので、横書き、縦書きの文書を容易に識別することがで
きる。また、横書き文書中に縦書き文書が混在する場合
において、文書編集が指示されると、設定書式を横書き
のまま変更せずに編集方向を縦書きに変更することがで
きる。ここで、本実施例においては文書入力時に、縦書
き文字には縦書きコードを付加するようにしたから、縦
書き文書の編集時に、入力方向一時切替キーKを操作し
なくても文書メモリ5−2の内容を参照することによ
り、縦書き文書を編集することができるが、入力方向一
時切替キーKを操作すれば、文書メモリ5−2の内容を
参照せずにそのまま縦書き文書の編集が可能となる。As described above, in this embodiment, when a vertically written document is partially input in the horizontally written document, the input direction temporary switching key K is used without changing the setting format as horizontally written.
You can temporarily change the character input direction to vertical by simply operating. In this case, since a space for at least one character is inserted between the vertically written document and the horizontally written document, it is possible to easily identify the horizontally and vertically written documents. Further, in the case where a vertically-written document is mixed in a horizontally-written document, when the document editing is instructed, the editing direction can be changed to the vertically-written mode without changing the setting format as horizontally-written. In this embodiment, since the vertical writing code is added to the vertical writing characters at the time of inputting the document, the document memory 5 is not required to operate the input direction temporary switching key K at the time of editing the vertical writing document. The vertical writing document can be edited by referring to the contents of -2. However, if the input direction temporary switching key K is operated, the vertical writing document is directly edited without referring to the contents of the document memory 5-2. Is possible.
【0019】なお、上記実施例においては横書き文書の
左余白部分に縦書き文書を入力する場合を示したが、横
書き文書の右余白部分に縦書き文書を入力する場合も、
図4に示すフローチャートと同様に実行されるが、この
場合、図6のフローチャートにおいて、現在のカーソル
位置の左横に横書き文字が有るか否かをチェックし、有
れば、横書き文字を左方向へ1文字分シフトしてスペー
スを確保すればよい。また、上述の例は横書きの文書の
一部に縦書き文書を入力する場合を示したが、これとは
逆に、縦書き文書の中に横書きの文書を入力する場合も
基本的には上述と同様である。この場合、縦カーソルフ
ラグを横カーソルフラグに変更すると共にそれに応じた
処理も縦書き、横書きに対応させればよい。更に、上記
実施例においては、縦書き文書入力時に縦書きコードを
文字コードに付加して文書メモリ5−2に格納するよう
にしたが、文字コードに縦書きコードを付加しておかな
くても、入力方向一時切替キーKを操作して編集方向を
縦書きに変更するようにしてもよい。In the above embodiment, the case of inputting the vertical writing document in the left margin portion of the horizontal writing document has been described, but in the case of inputting the vertical writing document in the right margin portion of the horizontal writing document,
It is executed in the same manner as the flowchart shown in FIG. 4, but in this case, in the flowchart of FIG. 6, it is checked whether or not there is a horizontal writing character on the left side of the current cursor position. You can shift the space by 1 character to secure a space. Further, although the above example shows the case of inputting the vertical writing document into a part of the horizontal writing document, conversely, the case of inputting the horizontal writing document in the vertical writing document is basically the same as the above. Is the same as. In this case, the vertical cursor flag may be changed to the horizontal cursor flag, and the corresponding processing may be adapted to vertical writing and horizontal writing. Further, in the above embodiment, the vertical writing code is added to the character code and stored in the document memory 5-2 when the vertical writing document is input. However, the vertical writing code may not be added to the character code. The input direction temporary switching key K may be operated to change the editing direction to vertical writing.
【0020】また、上記実施例は文字列入力方向として
横書き、縦書きを例に挙げたが、斜め書きであってもよ
い。このように斜め書きにすると、タイトル文字列を特
殊効果として強調できる。例えば、V字形、W字形のよ
うにタイトル文字列を入力すれば、より効果的なものと
なる。更に、上記実施例では入力方向の一時変更をキー
操作によって指定するようにしたが、自動的に変更する
ようにしてもよい。例えば、横書きから縦書きを始めた
ときにこれを自動的に判断して縦書き方向に変更する方
法として以下に示す方法であってもよい。 、今回入力した文字の真下にカーソルが移動されて当
該カーソル位置に文字が入力された際に、縦書き入力と
判断して以降の文字入力方向を縦書きに変更するように
してもよい。 、かな漢字変換時に例えば下カーソルキーが操作され
た際、変換文字列を縦書きに表示し、リターンキーで縦
書き入力するようにしてもよい。この場合、以降の入力
文字列を縦書きに変更するようにしてもよい。 、入力文字の周辺領域を調べ、文字が入力されていな
い空き領域が縦長であれば、縦書き方向に変更するよう
にしてもよい。また、上記実施例はカーソル形状として
正方形を例に挙げたが、横書き、縦書きによってカーソ
ル形状を変更するようにしてもよい。In the above embodiment, horizontal writing and vertical writing are taken as examples of the character string input direction, but diagonal writing may also be used. By obliquely writing in this way, the title character string can be emphasized as a special effect. For example, if a title character string such as V-shape or W-shape is input, it becomes more effective. Further, in the above embodiment, the temporary change of the input direction is designated by the key operation, but it may be automatically changed. For example, the following method may be used as a method of automatically determining the vertical writing from the horizontal writing and changing the direction to the vertical writing. When the cursor is moved directly below the character input this time and the character is input at the position of the cursor, it may be determined to be vertical writing input and the subsequent character input direction may be changed to vertical writing. When converting the kana-kanji, for example, when the down cursor key is operated, the converted character string may be displayed vertically and the return key may be used to input vertically. In this case, subsequent input character strings may be changed to vertical writing. Alternatively, the peripheral area of the input character may be checked, and if the empty area in which no character is input is vertically long, it may be changed to the vertical writing direction. Further, in the above embodiment, the cursor shape is a square, but the cursor shape may be changed by horizontal writing or vertical writing.
【0021】[0021]
【発明の効果】この発明によれば、例えば、横書き文書
中に部分的に縦書き文書を入力する場合や縦書き文書中
に部分的に横書き文書を入力するような場合に、設定書
式を変えずに、一時的に文字列入力方向を任意の方向に
変更することができ、また、例えば、横書き文書の中に
縦書き文書が混在する場合や縦書き文書に横書き文書が
混在するような場合に、設定書式を変えずに、一時的に
文字列編集方向を任意の方向に変更することができるの
で、従来に比べて操作性を大幅に向上させることが可能
となる。According to the present invention, the setting format is changed, for example, when a vertically written document is partially input in a horizontally written document or when a horizontally written document is partially input in a vertically written document. You can temporarily change the character string input direction to any direction without having to do this, and, for example, when a vertical writing document is mixed in a horizontal writing document or when a horizontal writing document is mixed in a vertical writing document. Moreover, since the character string editing direction can be temporarily changed to an arbitrary direction without changing the setting format, the operability can be significantly improved as compared with the conventional case.
【図1】実施例に係る文書処理装置のブロック構成図。FIG. 1 is a block configuration diagram of a document processing apparatus according to an embodiment.
【図2】書式メモリ7に横書き書式が設定されている場
合に、この書式メモリ7の内容を縦書き書式として読み
出す際の読み出し方法を示した図。FIG. 2 is a diagram showing a reading method for reading the contents of the format memory 7 as a vertical writing format when a horizontal writing format is set in the format memory 7.
【図3】文書メモリ5−2の内容を概念的に示した図。FIG. 3 is a diagram conceptually showing the contents of a document memory 5-2.
【図4】図7に示す文書入力時および編集時の動作を例
示したフローチャート。FIG. 4 is a flowchart illustrating an operation at the time of document input and editing shown in FIG.
【図5】図4に続くフローチャート。FIG. 5 is a flowchart following FIG. 4;
【図6】図4のステップA9(1文字入力処理)を示し
たフローチャート。FIG. 6 is a flowchart showing step A9 (one character input process) in FIG.
【図7】入力作成する文書例を示すと共にカーソルの移
動方向を示した図。FIG. 7 is a diagram showing an example of a document to be input / created and a moving direction of a cursor.
【図8】複数行の縦書き文書を入力する際の改行時にカ
ーソルがどのように移動するかを示した図。FIG. 8 is a diagram showing how the cursor moves at the time of line feed when inputting a multi-line vertical writing document.
1 制御部 2 ROM 3 キー入力部 4 表示部 5 RAM 5−1 入力バッファ 5−2 文書メモリ 6 カーソルポインタ 7 書式メモリ K 入力方向一時切替キー 1 Control Section 2 ROM 3 Key Input Section 4 Display Section 5 RAM 5-1 Input Buffer 5-2 Document Memory 6 Cursor Pointer 7 Format Memory K Input Direction Temporary Switching Key
Claims (5)
入力すると共に、カーソル位置を予め書式設定されてい
る文字列入力方向へ更新する文書処理装置において、 少なくとも第1の文字列入力方向、第2の文字列入力方
向のうち、第1の文字列入力方向が予め書式設定されて
いる場合に、この書式設定内容を保持したまま第2の文
字列入力方向に切り替えられたか否かを判別し、 第2の文字列入力方向に切り替えられている間、文字入
力が行われた際に、入力された文字をテキストカーソル
位置に入力すると共に、カーソル位置を第2の文字列入
力方向へ更新するようにしたことを特徴とする文字列処
理方法。1. A document processing apparatus for inputting an input character to a text cursor position and updating the cursor position to a pre-formatted character string input direction, comprising at least a first character string input direction and a second character string input direction. If the first character string input direction of the character string input directions of is formatted in advance, it is determined whether or not the second character string input direction is switched while keeping the format setting content, When a character is input while switching to the second character string input direction, the input character is input to the text cursor position and the cursor position is updated to the second character string input direction. A character string processing method characterized in that
列入力方向に切り替えられた際に、現在のカーソル位置
から第1の文字列入力方向に既に入力されている文字列
が存在するか否かを判別し、当該文字列が存在している
ことが判別された際に、現在のテキストカーソル位置と
当該文字列との間にスペースを挿入するようにしたこと
を特徴とする請求項(1)記載の文字列処理方法。2. When the first character string input direction is switched to the second character string input direction, there is a character string that has already been input from the current cursor position in the first character string input direction. It is determined whether or not to do so, and when it is determined that the character string exists, a space is inserted between the current text cursor position and the character string. The character string processing method according to item (1).
入力方向と第2の文字列入力方向とを任意に切り替え指
定するようにしたことを特徴とする請求項(1)記載の
文字列処理方法。3. The character string according to claim 1, wherein the first character string input direction and the second character string input direction are arbitrarily switched and designated by operating a predetermined key. Processing method.
されている文字列入力方向にしたがって編集処理を行う
文書処理装置において、 少なくとも第1の文字列入力方向、第2の文字列入力方
向のうち、第1の文字列入力方向が予め書式設定されて
いる場合に、この書式設定内容を保持したまま第2の文
字列入力方向に切り替えられたか否かを判別し、 第2の文字列入力方向に切り替えられている間に文書編
集が指示された際、第2の文字列入力方向に存在する文
字列に対して編集処理を行うようにしたことを特徴とす
る文字列処理方法。4. A document processing device for performing an editing process according to a character string input direction that is preformatted when a document edit is instructed, at least a first character string input direction and a second character string input. Among the directions, when the first character string input direction is pre-formatted, it is determined whether or not the second character string input direction is switched while retaining the formatting contents. A character string processing method, wherein when a document edit is instructed while switching to the column input direction, the character string existing in the second character string input direction is edited.
されている文字列入力方向にしたがって編集処理を行う
文書処理装置において、 少なくとも第1の文字列入力方向、第2の文字列入力方
向のうち、第1の文字列入力方向が予め書式設定されて
いる場合に、この書式設定内容を保持したまま第2の文
字列入力方向に切り替えられたか否かを判別し、 第2の文字列入力方向に切り替えられている間に入力さ
れた文字に入力方向を示す識別情報を付加し、 文書編集時に、前記識別情報が付加されている文字列に
対して第2の文字列入力方向にしたがった編集処理を行
うようにしたことを特徴とする文字列処理方法。5. A document processing device for performing an editing process according to a character string input direction which is preformatted when a document editing is instructed, at least a first character string input direction and a second character string input. Among the directions, when the first character string input direction is pre-formatted, it is determined whether or not the second character string input direction is switched while retaining the formatting contents. The identification information indicating the input direction is added to the characters input while switching to the column input direction, and when the document is edited, the identification information indicating the input direction is added to the second character string input direction with respect to the character string to which the identification information is added. A character string processing method characterized in that the editing processing is performed according to the above.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7177972A JPH096776A (en) | 1995-06-22 | 1995-06-22 | String processing method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7177972A JPH096776A (en) | 1995-06-22 | 1995-06-22 | String processing method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH096776A true JPH096776A (en) | 1997-01-10 |
Family
ID=16040306
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP7177972A Pending JPH096776A (en) | 1995-06-22 | 1995-06-22 | String processing method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH096776A (en) |
-
1995
- 1995-06-22 JP JP7177972A patent/JPH096776A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6683631B2 (en) | System and method for selecting and deselecting information in an electronic document | |
| US4785296A (en) | Method and system for displaying image data | |
| JPS6342304B2 (en) | ||
| JPH0541997B2 (en) | ||
| US5671427A (en) | Document editing apparatus using a table to link document portions | |
| JPH096776A (en) | String processing method | |
| JPH0793124A (en) | Document creating apparatus and scrolling method | |
| JP3454987B2 (en) | Document editing apparatus and method | |
| JPS60118885A (en) | Word processor | |
| JPH08185452A (en) | Document creation device | |
| JP3674905B2 (en) | Document editing device | |
| JP2879940B2 (en) | Score editing system | |
| JPH03161861A (en) | Document processing device with table creation function | |
| JPS62217320A (en) | List editing processing method | |
| JPH0749851A (en) | Document shaping device | |
| JP3154790B2 (en) | Optical character reader | |
| JPH03266068A (en) | Automatic reduction processing system for table block | |
| JP2655900B2 (en) | Character processor | |
| JPH0447865B2 (en) | ||
| JPH04369073A (en) | Menu display method and information processing device | |
| JPS6375964A (en) | Table creation method | |
| JP2834882B2 (en) | Document creation device | |
| JPS6231470A (en) | Linking method of document creation device | |
| JPH11328161A (en) | Document editing apparatus and method | |
| JPH08212220A (en) | Document creating apparatus and document editing method |