JPH0330051A - Document processor - Google Patents

Document processor

Info

Publication number
JPH0330051A
JPH0330051A JP1166381A JP16638189A JPH0330051A JP H0330051 A JPH0330051 A JP H0330051A JP 1166381 A JP1166381 A JP 1166381A JP 16638189 A JP16638189 A JP 16638189A JP H0330051 A JPH0330051 A JP H0330051A
Authority
JP
Japan
Prior art keywords
input
printing
key
formula
mathematical expression
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
JP1166381A
Other languages
Japanese (ja)
Inventor
Takuya Matsuno
松野 卓也
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.)
Canon Inc
Original Assignee
Canon 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 Canon Inc filed Critical Canon Inc
Priority to JP1166381A priority Critical patent/JPH0330051A/en
Publication of JPH0330051A publication Critical patent/JPH0330051A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To print a document in which a mathematical expression is mixed so as to be easily visible by a simple operation by determining a printing pitch at the time of printing character and symbol strings which are inputted, in accordance with the constitution of the character and symbol strings which are inputted. CONSTITUTION:A mathematical expression is generated in a mathematical expression window, and by depressing an execution key, the generated mathematical expression is outputted to a cursor position in a document screen. In that case, when it is brought to printing output as it is, a line pitch becomes a standard value which a system has, a line interval of plural lines for constituting the mathematical expression becomes large, and a result of printing tends to become indistinct. Also, when editing such as insertion of a character, etc., is executed in front of the mathematical expression, there is possibility that the inputted mathematical expression is broken down. As for a means corresponding thereto, with regard to a line pitch first, an appropriate value in the case of printing the mathematical expression in a system is determined, and outputted by adding the appropriate line pitch information at the time of output. On the other hand, as for a breakdown of the mathematical expression, a means for adding a block code frame and bringing it to display output is adopted.

Description

【発明の詳細な説明】[Detailed description of the invention]

[産業上の利用分野] 本発明は、数式記号を利用し、文書編集画面上で高度の
数式入力編集処理を行なうことのできる文書処理装置に
関する. [従来の技術] 従来の日本語ワードブロセッザなどの文書処理装置にお
いては、文書と数式が混在した文書を作或する場合、作
成した数式を文書画面に出力し、印字する際には、数式
は文書と区別されることなく、表示され、印字されてい
た。 [発明+が解決しようとしている課題]しかしながら、
上記従来の文書処理装置では、作成した数式を印字する
際の行ピッチは、文書画面の行ピッチと同一であるため
、数式の行間隔が大きくなり過ぎて、例えば分母と分子
が開きすぎてしまったり、逆に、数式の行間隔が小さく
なり過ぎて、例えば分母と分子が重なってしまったりす
るという問題が発生していた。しかも、こういった問題
は、実際に印刷して見るまでその発生に気付かず、問題
の発生に気付いても、最適な行間隔を売るためには、印
刷結果を見ながら設定を何度も仕直すという手間が必要
なことが多かった.更に、作成した数式を文書画面に出
力する際には、文書画面と特には区別されていなかった
ため、数式の前方で例えば文字挿入や削除といった編集
処理が行なわれた場合、例えば分数の分子のみがその影
響を受けて、左または右に移動し、分母とのバランスが
破壊されるといった問題が発生していた.
[Industrial Application Field] The present invention relates to a document processing device that is capable of performing sophisticated mathematical input and editing processing on a document editing screen using mathematical symbols. [Prior Art] In a conventional document processing device such as a Japanese word browser, when creating a document containing a mixture of text and mathematical formulas, the created mathematical formulas are output to the document screen, and when printing, the mathematical formulas are not included in the document. It was displayed and printed without any distinction. [The problem that Invention+ is trying to solve] However,
In the conventional document processing devices mentioned above, the line pitch when printing the created mathematical formula is the same as the line pitch on the document screen, so the line spacing of the mathematical formula becomes too large, for example, the denominator and numerator are too wide apart. On the other hand, the spacing between lines in mathematical formulas became too small, causing problems such as the denominator and numerator overlapping each other. Moreover, these problems often go unnoticed until you actually print them out, and even when you do notice them, you have to repeatedly adjust the settings while looking at the print results in order to find the optimal line spacing. It often required a lot of effort to fix it. Furthermore, when outputting the created formula to the document screen, it is not particularly distinguished from the document screen, so if editing processing such as inserting or deleting characters is performed before the formula, for example, only the numerator of the fraction will be displayed. As a result of this, problems occurred where the value moved to the left or right, destroying the balance with the denominator.

【課題を解決するための手段】[Means to solve the problem]

本発明は、文字・記号を入力する入力手段と、該入力手
段により入力された記号を表示する表示手段と、該入力
手段により入力された記号を印字する印字手段と、数式
を人力するためのモードを選択する数式入力モード選択
手段と、該数式入力モード選択手段により数式入力モー
ドが選択された時、前記入力手段により入力される文字
・記号列を前記印字手段によって印字する時の印字ピッ
チを、入力される文字・記号列の構成に従って決定する
ように制御する印字制御手段とを有して構成される. [作用] 本発明によれば、数式の印字ピッチが文書の印字ピッチ
とは独立に適切な値が設定されるので,文書の印字ピッ
チに数式が左右されなくなり、文書と数式の両方を見や
すい形で印字させることが可能となる。また、数式の前
方で文書編集を行なっても、数式が破壊されなくするこ
とを可能と[実施例] 以下、図面を参照して本発明を詳細に説明する。 第1図は、本発明の一実施例である文書処理装置の構成
を示すブロック図である。1は中央演算処理装置として
のCPU (マイクロプロセッサ)であり、文字処理や
数式処理のための演算や論理判断などを行なう.2は制
御メモリとして用いられるROM (リード・オンリー
・メモリ)であり、数式入力時の画面表示処理および数
式編集処理などについての第23図〜第33図示のフロ
ーチャートに従った制御プログラムをはじめとし、CP
UIが行なう各種制御手順をあらかじめ記憶している. 3は書き込み可能のRAM (ランダム・アクセス・メ
モリ)であり、ROM2に記憶された制御手順を実行す
るときに使用されるほか、各構或要素から与えられる各
種データの一時記憶や、CPU1の演算や論理判断にお
けるワーキングメモリとして用いられる. 4は文字入力用のキーボードであり、このキーボード4
上には、第2図につき、後述するように、cputに指
令を与える各種キー群も配置されている.5はキーボー
ドコントローラであり、キーボード4からの入力記号に
対するキーコード変換処理(内部コードへの変換)を実
行する.6は文書作成や編集用のバッファメモリであり
、キーボード4から入力されたキーコードを文字コード
(キャラクタコード)として保存する.7はCRT (
陰極線管)であり、キーボード4から入力された文字や
数式を表示し、カーソルを指定位置に表示するための表
示装置である.本実施例では、表示装置をCRTとした
が、液晶表示器などを用いてもよい.8はCRT7を駆
動するためのCRTコントローラであり、CRT7にお
いて、カーソルで指示された位置に表示したい文字列や
数式の画面上での位置決定のための制御や、内部のキャ
ラクタジェネレータの参照により、コード情報をドット
パターンデータに変換して、文字あるいは記号の表示を
行なう表示制御とを行なう。 9は画面上で作成された文書を印刷するためのプリンタ
であり、後述するプリンタコントロー5lOを持つイン
テリジェントプリンタである.10はプリンタ9を制御
するプリンタコントローラであり、CPU 1からBU
Sを通して送られた文字データ、制御データ等を解析し
プリンタ9を駆動する。 第2図はキーボード4の配置構成の例を示す図である。 同図において、Klは通常の文字や数字あるいは、記号
等を入力するのに用いられる文字キー群であり、例えば
JIS規格の鍵盤配列を有し、かなキー等からひらがな
入力、さらには仮名漢字変換機能により漢字の入力がで
きる. K2はカーソルの移動、数式入力、数式記号入力などの
特殊処理の実行を指示するために用いる機能キー群であ
り、カーソルの移動を指示する4つのカーソル移動キー
r←Jr−Jr↑1 r↓1と数式単位にカーソルを移
動を指示する2つのカーソル移動キーf4J  ff)
Jとがある。 またこのカーソル移動キー1r4J W>Aと機能キー
を同時に押下することにより、先頭の数式あるいは最終
の数式にカーソルが移動できるようになっている。 さらに、数式人力の開始を指示するための機能キーとし
てl数式人力Jキーがある。r数式人力jキーを押下す
ることにより、第3図で示すような数式入力ウインドウ
と数式ソフトキーが表示され、数式入力が可能となる。 さらに数式入力中に使用できる機能キー群としてr数式
記号Jr実行1r挿入1r削除1キーがある. r数式記号1キーは、数式特有の記号でキーボード上に
ない記号(例えばω、〔、八など)を入力する際に、例
えばウインドウにキーボード上にない数式特有の記号を
表示させることを指示するための機能キーである. r削除1キーは、入力済みの数式や文字を削除する時に
使用するキーであり、r挿入1キーは入力するモード(
挿入/オーバライト)を選択する為のキーであり、モー
ドはサイクリックに切り替わるようになっている。 r実行』キーは、数式ウィンドウ内で入力した数式を文
書画面に出力することを指示する機能キーである。 K3はソフトキー群であり、8つのソフトキーから構成
されている。通常モードでは、この8つのキーには、そ
れぞれr全角Jr倍角1 1半角』『上付下付1 rア
ンダーラインJ r均等割付1rセンタリング1 r右
寄せ1の機能が割り付けられている。しかし、モードが
変更されることにより、この8つのソフトキーの機能は
変化するようになっている.例えば、数式入力モードに
おいては、f分数J rJJ rΣJ rnJl i’
UJ rnJr一1キーが割り付けられる.更に8番目
のキーr一1を押下すると、ソフトキーの内容は第3図
に示すように変化して行くようになっている.第3図は
、本発明に係る文書処理装置の一実施例において、数式
入力モードの初期画面表示を示す図である。文書編集中
に1数式人力』キーを押下することにより、画面左下に
示すような数式ウィンドウが表示され、且つ使用できる
ソフトキー群が、画面下にソフトキーに対応して表示さ
れる。以後の数式の入力は、このソフトキー8¥K3と
文字キー群Kl、機能キー群K2を使用して行なう。本
実施例において、数式入力のために使用できるソフトキ
ーは全部で20種類ある。各キーの機能概要を以下に説
明する。 ・分数 ■このキーを押下すると分数罫が一文字分表示
され、カーソルは分母の一文字 目の入力位置に移動し、分母の入力 モードとなる. ■分母の入力を行ない、分母右端に表示されるスペース
上でv−.Aキーを押下すると、分母の入力モードを終
了し、 カーソルは分子の一文字目に移動し、 分子の入力モードとなる。 ■分子の入力を行ない、分子右端に表示されるスペース
上でV−Jキーを押下 すると分数の入力を終了する。 ■このキーを押下するとJ(ルート)罫が一文字分表示
され、カーソルはJ内 の一文字目に移動し、J内入力モード となる. ■J内の入力を行ない、J内右端に表示されるスペース
上でr−Jキーを押下 するとIの入力モードを終了する. ■このキーを押下すると3行取りの1が表示され、カー
ソルは3行取りの1の 下側の行のSのすぐ次の位置に移動 し、下限の入力モードとなる。 ■下限の入力を行ない、下限の右端に表示されるスペー
ス上でr−Jキーを押 下すると下限の入力モードを終了し、 カーソルは3行取りのSの上側の行の Sのすぐ次の位置に移動し、上限の入 力モードとなる. ■上限の入力を行ない、上式右端に表示されるスペース
上でr−Jキーを押下 ・ Σ ・ ■ ● U するとSの入力を終了する。 ■このキーを押下すると倍角のΣが表示され、カーソル
はΣの下部の先頭に移 動し、和の初項の変数値の入力モード になる。 ■初項の変数値を表わす式の入力を行ない、右端に表示
されるスペース上で r−Jキーを押下すると、下限の入力 モードを終了し、カーソルはΣの上部 の先頭の位置に移動し、和の末項の変 数値の入力モードとなる. ■和の末項の変数値の入力を行ない、その右端に表示さ
れるスペース上で r→1キーを押下するとΣの入力を終 了する. ■このキーを押下すると倍角のnが表示示され、カーソ
ルはHの下部の先頭に 移動する.後はΣに同じ. ■このキーを押下すると倍角のUが表示され、カーソル
はUの下部の先頭に移 ベr 括弧 {ベア} (ペア) 【ペア] 1ぺ11 1im ・行列 動する.後はΣに同じ. ■このキーを押下すると倍角のnが表示され、カーソル
はΣの下式の先頭に移 動する.後はΣに同じ. ■このキーを押下するとペア(開始の括弧と終了の括弧
)で該当の括弧が表示 され、カーソルはペア括弧内に移動 し、ベア括弧内の入力モードとなる. ■括弧内の入力を終了し、右端のスペース上でr→1キ
ーを押下すると、ベア 括弧入力を終了する. ■このキーを押下すると半角でlimが表示され、カー
ソルはlia+の下部の先頭に移動し、下部の入力モー
ドとなる. ■下部の入力を行ない、下部右端のス ペース上でj→1キーを押下すると、 1imの入力モードを終了する。 ■このキーを押下すると,入力する行列の行数及び列数
の指示を要求するメッ セージが表示され(本実施例では3行 3列まで)、行数及び列数を指示する {行列} と該当するサイズの行列が表示され(行列)
 る。 [行列]■行列要素の入力は、例えば、3行3列1行列
1 の行列の場合、l行1列より1行2列、1行3列、
2行1列、2行2列、 2行3列、3行1列、3行2列、3行 3列を順次入力することにより行な う。(各行の右端でIr−Jキーを押下すると、次の行
の人力となり、最終行 の右端でr→』キーを押下すると、行 列の入力は終了となる) 添字上 ■複数行とりの括弧の右横でこのキーを押下す
ると、カーソルは括弧の上の行 に移動し、上側添字の入力モードにな る。 ■上側添字の入力を終了し、右端で r−Jキーを押下すると添字上の入力 を終了する. 添字下 ■複数行とりの括弧の右横でこのキーを押下す
ると、カーソルは括弧の下の行 に移動し、下側添字の入力モードにな る。 ■下側添字の入力を終了し、右端で r−5キーを押下すると添字下の入力 を終了する. 第4図は、従来機種での数式入力モードでのカーソル移
動の様子を示す説明図である。 1→Jキーを押下すると、通常の文字入力では左から右
に1カラム移動するが、数式入力モードで!よ少し動き
が変わる.基本的には文字入力時と同様に左から右に1
カラム移動するが、分数、i、Σなどのように数式記号
の下部、上部経の文字・記号の入力を伴う数式記号があ
った場合、数式記号のセンターより下部の先頭に、下部
の最後から上部の先頭に、上部の最後から次の数式記号
のセンターに1つずつ移動していく.(詳細は第4図の
カーソルの位置を参照)r−1キーはr一1キーと逆の
動作を行なう.riJキーは、分数1、Σなどのように
下式、上式を伴う数式記号があった場合、下式より上式
の先頭にカーソルを移動するようになっており、r↓J
キーは、その逆の動作を行ない、通常の文字入力とは動
きは異なる。 第5図は、本発明での数式入力モードでのカーソル移動
方式の説明図である。 従来機種でのカーソル移動だと、1つずつしかカーソル
が動かないため、特に数式の場合はr−Jr4−Jキー
でカーソルが上下にも動くこともあり、希望する位置に
カーソルを動かすためには、多くのストローク数と時間
を要する。 本発明では、従来通り1つずつカーソルを進める手段以
外に、ソフトキーで入力した数式記号単位でカーソルを
移動する手段も存在する。すなわちf4J  lr)J
キーを押下することで、ソフトキーから入力した数式記
号単位に移動できるようになり、希望する位置にカーソ
ルを動かすことが簡単にできるように改善されている。 第5図は、lj4J  r>1キー押下によるカーソル
の移動の実施例を示す図である。第5図を用いて説明す
ると、y上にカーソルがある状態でrト1キーを押下し
ていくと、ソフトキーで入力した数式記号上を順次移動
していく。第5図の例では、y上から1上に、S上から
J上に、J上から分数罫上に、分数罫上からΣ上に移動
していく。 第6図は、本発明での数式入力モードにおける、もう1
つのカーソル移動方式の説明図である。第5図の方式の
場合、数式の先頭あるいは数式の最後にカーソルを移動
させる場合、14JlrTh−Jを複数回入力する必要
があるが、本方式では1回のキー操作で数式の先頭ある
いは数式の最後にカーソルを移動させることができるよ
うになる。 第6図を用いて説明すると、y上にカーソルがある状態
で1機能1を押しながらF>1キーを押下することによ
り、カーソルをソフトキーで入力した最後の数式記号上
、すなわち第6図の例ではΣ上に一気に移動させること
ができるようになる。 またr機能』を押しながらr4Jキーを押下することに
より、ソフトキーで入力した先頭の数式記号上、すなわ
ち第6図の例では1上に一気に移動させることができる
よになる。 第7図は、従来機種での数式入力モードにおける削除方
式を表わす説明図である。 全体を削除しようとした場合、a上にカーソルを移動さ
せ、1文字を削除するためのr削除jキーを4回押下し
、I内のデータがない状態で、更にr削除1キーを1回
押下することにより、Jを削除するという操作が必要と
なり、この例では5回r削除1キーを操作する必要があ
った。 第8図は、本発明での数式入力モードにおける削除方式
の説明図である。同図で示すように、本発明では、ソフ
トキーで入力した数式記号上にカーソルがある状態で『
削除1キーを1回押し下げるだけで、その数式記号の及
ぶ数式項全体を1度に削除できるようになっている。こ
の例では、キーを1回押し下げることにより、I全体を
一度に削除することが可能となる. 第9図は、本発明での作成した数式を文書画面内へ出力
する際の方式を説明するための図である. 本発明では数式ウィンドウ内で数式を作成し、『実行1
キーの押下により、作成された数式を、文書画面内のカ
ーソル位置に出力するようになっている。その時にその
まま印字出力すると行ピッチがシステムの持つ標準値に
なり、数式を構成する複数の行の行間隔が大きくなり、
印字結果が見づらくなる傾向が強い.さらにそのまま出
力すると、数式の前方で文字挿入などの編集を行なった
時、文字列の移動により、表示画面上で入力済の数式が
破壊される可能性がある. 本発明では上記欠点に対応する手段として、第9図で示
す2つの方式を採用している.先ず、行ピッチに関して
は、システム内で数式を印字する場合の適切な値を決め
、出力時に適切な行ピッチ情報を付加して出力する手段
を採用している。 第9図の表示画面例の左端に見られるr4Jはこのよう
にして決められた適切な行ピッチの値、rs1は行ピッ
チを元の値に戻すための行ピッチ記号である。 ケ方、数式の破壊に関しては、第9図に示すよう}こブ
ロックコード◆枠を付加して表示出力する手段を採用し
ている。このブロックにより数式全体がブロック化され
、前方での編集処理による影響を受けなくなる。 第10図は,第9図 で示す方式(行ビツチ)をさらに
改良した場合の方式を説明する為の図である。 第10図に示すように、r実行jキー押下により、行ピ
ッチの設定を、オペレータに要求するようにしている,
標準を選択した場合は、第9図と同様にシステムによる
適値の行ピッチ情報が付加されて出力される,3mm、
4■、5llllが選択された場合は、その指定された
行ピッチ情報を付加して出力し、なしが選択された場合
は行ピッチを付加しないで出力するようにすることでオ
ペレータの自由度を増す効果が生れる。 また、本実施例では設定可能な行ピッチの値を第lO図
のように定めたが、この値に限らない.また、値の選択
の方法も、第10図のようなメニュ一方式以外に、所望
の数値をキー人力することによって設定してもよい. 第11−a図は、従来の文書処理装置での数式入力の表
示方法を説明するための図である.同図に示すように、
数式内でのカーソルは、通常のアンダーカーソルではな
く、縦棒カーソルが使用されている。これは第11−b
図のようなアンダーカーソルにすると数式の最後に余分
なスペースを表示する必要があり、表示が見づらくなる
欠点があるからと考えられる. しかし、縦棒カーソルを採用した場合、通常の文書入力
時にはアンダーカーソルを使用する装置においては、オ
ペレータに不自然さを与え現在の入力文字幅モードが分
かりづらくなると共に、表示プログラムの機能追加が必
要となる等の欠点が出てくる. 第11−b図は、本発明での懺式入力での表示方法を説
明する為の図である。図に示すように、アンダーカーソ
ルを採用し、各数式項の最後には余分なスペースが表示
されている(1の上限下限、Jの内部、分数の分子分母
、Σ上部下部の最後).これは、入力した各数式項の最
後に後から数値などを追加できるようにするために存在
するスペースである.なければ各数式項の最後゛に後か
ら数値などを追加することが困難になる.本実施例では
、この入力時に必要となる、数式項の最後のスペースを
、入力数式ウィンドウ内で表示させておき、文書画面内
に出力する時に一括してサプレスするようになっている
。 第11−c図は、第11−b図につき説明した数式入力
での表示方法をさらに改良した方法を説明するための図
である.本実施例においては、同図に示すように、カー
ソルの存在する数式項のみ、第11−b図で説明したス
ペースを表示させるようにすることで、表示上の不自然
さを軽減する方式である。もちろん本実施例においても
、文書画面に出力する時に、このスペースはサブレスし
て表示する. 第12−a図は、従来の文書処理装置で分数を連続して
入力した場合を説明する図である。分数罫は、複数文字
分の大きさを持つ場合、表示および印字時につなげる必
要があるため、罫線を用いることが一般的であるが、そ
の逆効果として、同図で示すように分数を連続して入力
した場合、2つの分数罫がつながつでしまうという問題
が発生する. 第12−b図は、本発明の文書処理装置で、分数を連続
して入力した場合を説明する図である.同図に示すよう
に分数を連続して入力した場合は、2つの分数罫がつな
がらないようにするために、自動的に2つの分数罫間に
ピリオドを挿入することを行ない、従来の欠点をなくす
ように改善している。 本実施例においては、連続する2つの分数罫の間にピリ
オドを入れるように制御したが、第20−a図につき後
述するように、半角または全角のスペ.−スなどを入れ
るようにしてもよい。 本実施例においては、分数罫を例にとって説明したが、
第20−C図につき後述するように、例えばオーバーパ
ーを罫線で表わす場合などにおける罫線の連続において
ち同様である。 更に、罫線に限らず、通常の制御で、連続した時1こ補
完により連結して表示・印字が行なわれる記号を数式記
号として用いる場合にも同様である。 第13図は、本発明で数式入力を行なった場合のシフト
モードの遷移を示すための説明図である。 同図に示すように、数式入力においては、ソフトキーに
割り当てられた数式記号に続いて、英数字を入力するこ
とが通常であるため、本実施例においては、数式のソフ
トキーが入力された場合に、強制的に英数字モードに変
更する方式を採用している. 第14図は、本発明でのベア括弧、{ペア}、(ベア)
、【ベア]、1ペア1が入力された場合の表示方法及び
、ベア括弧内への入力処理を説明するための図である。 本発明では、ペア括弧ソフトキーで入力された括弧内で
数式入力を行なった場合の処理と、通常のキーにより片
方ずつ入力された括弧内で数式人力゛を行なった場合と
では異なる処理が行なわれる二通常のキー人力で入力し
た括弧は通常の文字として扱うのに対して、ベア括弧ソ
フトキーで入力した括弧は、その内部へ入力される文字
・記号の大きさに対して自動的に括弧が拡大・縮小され
る(横方向と縦方向の両方)ようになっている。 本発明では、上記2種類の括弧の違いを、オペレータが
表示上で、視覚的に区別できるようにするため、ベア括
弧ソフトキーで入力された括弧の表示形態を通常の括弧
とは、変更して表示する方式を採用している.その具体
的な例を第14図に示す.同図において、(a+b)の
括弧は通常のキー人力によっで入力されたもので、続<
 .lIC’JaA8aはペア括弧ソフトキーを使用し
て人力された括弧を示しており、ペア括弧は反転表示さ
れている。 また、一旦自動拡大してしまえば、複数行の括弧は通常
のキー人力では入力できないので、表示上でペア括弧を
反転表示などして区別する必要性はなくなる.従って、
第14図のように拡大されたべ7括弧は通常の表示に戻
すようになっている.また、この拡大された括弧が縮小
され1行取りになった場合は、再び、反転表示される。 第l5図は、本発明でのペア括弧の自動拡大処理の特殊
な場合の方式を説明する図である.文書内に複数行取り
の括弧を組み込む為には、複数種の記号を組み合わせて
複数行括弧を構成することが一般的である。例えば3行
取りの{を表数式の場合は、1続きの数式全体の中心を
合わせる必要があり、上記のように複数種の記号を組み
合わせて複数行括弧を構成する方法を採用した場合、偶
数行の括弧の中心を式の中心に揃えて表示することが不
可能となる.例えばペア括弧の中で、2行取りが行なわ
れる数式記号(J. lim ,ベクトル、オーバーバ
なと)がノζカされた場合に、ペア括弧を2行取りに拡
大すると、式の中心に揃えてベア括弧を表示出来なくな
る.本発明では、第15図に示すように、ペア括弧内に
偶数行で構成される式が入力された場合、ベア括弧を強
制的に奇数行取りに拡大する方式を採用することにより
(ペア括弧内で入力された式の行数+1)、式の中心に
ペア括弧の中心を揃えて表示することが可能となる, と表示される。 第16図は、従来の文書処理装置において、行列内で数
値を入力した場合の状態を示す説明図である。 同図は、3行3列の行列内に数値を入力した例であるが
、各列のl桁目が揃わないで表示されてしまっている。 第17図は,本実施例の装置で行列内に数値を入力した
場合の状態を示す説明図である。同図に示すように、本
実施例では行列内で自動的にデシマルタブ処理を行なう
ことにより、各列の1桁目を揃えて表示することが可能
となる。 第l8図は,、従来の文書処理装置において上下の添字
内で分数やJなどを多数使用した場合の状態を示す説明
図である。通常の式の場合は式の中心を揃えて表示する
. しかし、上下の添字内で、上記と同様にそれぞれの添字
の先頭位置に、添字とされる数式の中心を揃えて表示す
ると、第18図で示すように、上側の添字と下側の添字
が混ざってしまい、両者の区別、さらにはこれらの添字
と次式との区別が付かなくなってしまうという問題が発
生する。 第19図は、本実施例の装置において、上下の添字内で
分数やJなどを多数使用した場合の表示状態を示す説明
図である。 本実施例では、上側の添字においては、添字を構或する
式の最も下の行を、常に上側の添字の先又、下側の添字
においては、添字を構成する式の最も上の行を、常に下
側の添字の先頭位置(例では2の横に)の行に揃えて表
示するようになっている。 本方式を採用することにより、上下の添字の間には、必
ず1行スペース行が存在するようになるため、上下の添
字が混ざちてしまうことはなくなり、両者は明らかに区
別され、更に、これらの添え字と、次式との区別も明瞭
になる. 第20−a図、第20−b図、第20−c図は、第12
図につき説明した、分数が連続して入力された場合に、
分数罫がつながらないようにする方法に関する他の実施
例を説明するための図である。 第12図に示した実施例では、分数罫間にピリオドを挿
入したが、第20−a図の実施例では、半角のスペース
を挿入することにより問題を解消する。この方法によれ
ば、不要なピリオドを表示しなくてすみ、さらに改善さ
れる。 また、第20−b図の実施例は、半角のスペースを挿入
しないで、左の分数罫を左のみ伸び右方向に伸びない罫
線コードに、右の分数罫を右のみ伸び左方向に伸びない
罫線コードに変換することで、分数罫がつながる問題を
解消する実施例であり、実際入力していない半角スペー
スを表示しなくてすみ、さらに改善される。 次に、第20−c図は、分数罫の連続以外で、同様の不
具合が発生する場合の例である。同図はJの横にオーバ
ーパー(ベクトルでも同様)を入力した場合の図であり
、J罫とオーバーパー罫がつながってしまう.第20−
d図は第20−c図で示した問題を、第20−a図,第
20−b図で示した方式で解決した場合のものである。 第21−a図、第21−b図は、第15図につき説明し
た、ペア括弧内に偶数行取りの数式が入力された場合に
、r数式の行取り数+11行のペア括弧に自動拡張し、
式の中心にペア括弧の中心を揃えて表示する方法に関連
して、行列の入力に対する応用例を説明するための図で
ある。 第21−a図は2行1列の行列が入力された場合におけ
る実施例を説明する図である.ベア括弧の場合と同様に
、2行の行列として表示した場合は、式の中心に行列の
中心を揃えて表示出来なくなってしまう。更に、1行目
と2行目との行間が狭くなり、1行目と2行目の区別が
つきづらくなってしまうという問題も生じる.本実施例
では、同図で示すように、2行1列の行列が入力された
場合に、2行+1行のペアの行列括弧を生成し、かつ行
列の第1行をl行目に、第2行を3行目に表示させ、必
ず行間にスペース行が存在する方式を採用したものであ
る。 第21−b図は3行1列の行列が入力された場合におけ
る実施例を説明する図である。3行1列の行列が入力さ
れた場合も、第21−a図に示したものとほぼ同様にし
て、第21−b図に示すように、3行+2行のペアの行
列括弧を生成し、かつ行列の第l行を1行目に、第2行
を3行目に、第3行を5行目に表示させ、必ず行間に1
スペース行が存在する方式を採用したものである。 〔発明の効果〕 以上説明した如く、本発明によれば、文書画面に対する
設定とは独立に、数式に対する最適な行ピッチが設定さ
れるので、数式の混在する文書を簡単な操作で見やすく
印刷できる効果がある。
The present invention provides an input means for inputting characters and symbols, a display means for displaying the symbols input by the input means, a printing means for printing the symbols input by the input means, and a system for manually inputting mathematical formulas. A formula input mode selection means for selecting a mode, and a print pitch when the character/symbol string input by the input means is printed by the printing means when the formula input mode is selected by the formula input mode selection means. , and a printing control means for controlling the printing according to the structure of input character/symbol strings. [Function] According to the present invention, since the printing pitch of the mathematical formula is set to an appropriate value independently of the printing pitch of the document, the mathematical formula is no longer influenced by the printing pitch of the document, and both the document and the mathematical formula can be easily viewed. It is possible to print with . Further, even if a document is edited before a mathematical formula, it is possible to prevent the mathematical formula from being destroyed. [Embodiment] The present invention will be described in detail below with reference to the drawings. FIG. 1 is a block diagram showing the configuration of a document processing device that is an embodiment of the present invention. 1 is a CPU (microprocessor) as a central processing unit, which performs calculations and logical judgments for character processing and mathematical formula processing. Reference numeral 2 denotes a ROM (read-only memory) used as a control memory, which includes a control program according to the flowcharts shown in FIGS. 23 to 33 for screen display processing when inputting mathematical formulas, mathematical formula editing processing, etc. C.P.
Various control procedures performed by the UI are stored in advance. 3 is a writable RAM (Random Access Memory), which is used to execute the control procedures stored in ROM 2, as well as temporarily store various data provided from each component and perform calculations by CPU 1. It is used as working memory in logical judgments. 4 is a keyboard for inputting characters, and this keyboard 4
Various keys for giving commands to cput are also arranged on the top, as will be described later with reference to FIG. A keyboard controller 5 executes key code conversion processing (conversion into internal codes) for symbols input from the keyboard 4. Reference numeral 6 denotes a buffer memory for document creation and editing, which stores key codes input from the keyboard 4 as character codes. 7 is CRT (
A cathode ray tube) is a display device for displaying characters and mathematical formulas entered from the keyboard 4 and for displaying a cursor at a specified position. In this embodiment, a CRT is used as the display device, but a liquid crystal display or the like may also be used. 8 is a CRT controller for driving the CRT 7, and in the CRT 7, it controls the positioning on the screen of the character string or formula that you want to display at the position indicated by the cursor, and by referring to the internal character generator. Display control is performed by converting code information into dot pattern data and displaying characters or symbols. 9 is a printer for printing documents created on the screen, and is an intelligent printer having a printer controller 51O, which will be described later. 10 is a printer controller that controls the printer 9, and the CPU 1 to BU
It analyzes the character data, control data, etc. sent through S and drives the printer 9. FIG. 2 is a diagram showing an example of the arrangement of the keyboard 4. As shown in FIG. In the same figure, Kl is a group of character keys used to input ordinary letters, numbers, symbols, etc. For example, it has a keyboard layout according to the JIS standard, and it can input hiragana from kana keys, etc., and even convert kana to kanji. The function allows you to input kanji. K2 is a group of function keys used to instruct execution of special processing such as cursor movement, mathematical formula input, mathematical symbol input, etc., and four cursor movement keys r←Jr-Jr↑1 r↓ that instruct cursor movement. 1 and two cursor movement keys to instruct the cursor to move in units of formulas f4J ff)
There is a J. Also, by pressing the cursor movement key 1r4JW>A and the function key at the same time, the cursor can be moved to the first or last mathematical expression. Furthermore, there is a l mathematical formula manual J key as a function key for instructing the start of the mathematical formula manual calculation. By pressing the r mathematical expression manual j key, a mathematical expression input window and mathematical expression soft keys as shown in FIG. 3 are displayed, and it becomes possible to input a mathematical expression. Furthermore, the function keys that can be used while inputting a mathematical expression include r mathematical symbol Jr. execution 1 r insert 1 r delete 1 key. The r mathematical symbol 1 key instructs the window to display symbols unique to mathematical formulas that are not on the keyboard (for example, ω, [, 8, etc.) when entering symbols that are unique to mathematical formulas and are not on the keyboard. This is a function key for The r Delete 1 key is used to delete entered formulas and characters, and the r Insert 1 key is used to select the input mode (
This key is used to select (insert/overwrite), and the mode is switched cyclically. The ``R Execute'' key is a function key that instructs to output the mathematical expression input in the mathematical expression window to the document screen. K3 is a soft key group, consisting of eight soft keys. In the normal mode, these eight keys are assigned the following functions: r full-width Jr. double-width 1 1 half-width, superscript subscript 1 r underline J r equal allocation 1 r centering 1 r right alignment 1. However, when the mode is changed, the functions of these eight soft keys change. For example, in the formula input mode, f fraction J rJJ rΣJ rnJl i'
UJrnJr-1 key is assigned. When the eighth key r-1 is further pressed, the contents of the soft keys change as shown in FIG. FIG. 3 is a diagram showing an initial screen display in the mathematical expression input mode in an embodiment of the document processing apparatus according to the present invention. By pressing the 1 Mathematical Manual key while editing a document, a mathematical formula window as shown at the bottom left of the screen is displayed, and a group of usable soft keys are displayed at the bottom of the screen in correspondence with the soft keys. The subsequent input of mathematical expressions is performed using this soft key 8\K3, character key group Kl, and function key group K2. In this embodiment, there are a total of 20 types of soft keys that can be used to input mathematical expressions. An overview of the functions of each key is explained below.・Fraction ■When you press this key, one character of the fraction border will be displayed, the cursor will move to the input position of the first character of the denominator, and the mode will be entered for denominator input. ■Enter the denominator, and press v-. on the space displayed on the right end of the denominator. Pressing the A key ends denominator input mode, moves the cursor to the first character of the numerator, and enters numerator input mode. - Enter the numerator and press the V-J key on the space displayed at the right end of the molecule to finish inputting the fraction. ■When you press this key, one character of the J (root) line is displayed, the cursor moves to the first character in J, and the mode becomes J input mode. ■Enter the input in J and press the r-J key on the space displayed at the right end of J to exit the I input mode. - When this key is pressed, 1 in 3 lines is displayed, the cursor moves to the position immediately after S on the lower line of 1 in 3 lines, and the lower limit input mode is entered. ■Enter the lower limit and press the r-J key on the space displayed on the right edge of the lower limit to exit the lower limit input mode and move the cursor to the position immediately following S on the line above S in the 3-line grid. , and enters upper limit input mode. ■Enter the upper limit and press the r-J key on the space displayed on the right end of the above formula.・Σ・■●U Then, input of S is finished. ■When this key is pressed, a double-angle Σ is displayed, the cursor moves to the beginning of the bottom of the Σ, and the mode enters the input mode for the variable value of the first term of the sum. ■Enter the expression that represents the variable value of the first term and press the r-J key on the space displayed on the right edge to exit the lower limit input mode and move the cursor to the top position of Σ. , becomes the input mode for the variable value of the last term of the sum. ■Enter the variable value of the last term of the sum, and press the r→1 key on the space displayed on the right end to finish inputting Σ. ■When you press this key, a double-width n is displayed and the cursor moves to the beginning of the bottom of the H. The rest is the same as Σ. ■When you press this key, a double-width U is displayed, and the cursor moves to the beginning of the bottom of the U. Brackets {bear} (pair) [pair] 1pe11 1im ・Move the matrix. The rest is the same as Σ. ■When you press this key, a double-width n is displayed and the cursor moves to the beginning of the lower expression of Σ. The rest is the same as Σ. ■When you press this key, the corresponding parentheses will be displayed as a pair (opening parenthesis and ending parenthesis), the cursor will move inside the paired parentheses, and the input mode will be set to bare parentheses. ■Finish the input inside the parentheses and press the r→1 key on the rightmost space to end the bare parenthesis input. ■When you press this key, lim will be displayed in half-width characters, the cursor will move to the beginning of the bottom of lia+, and the mode will become lower input mode. ■Enter the information at the bottom and press the j→1 key on the space at the right end of the bottom to exit the 1im input mode. ■When you press this key, a message will be displayed requesting the number of rows and columns of the matrix to be input (up to 3 rows and 3 columns in this example), and the corresponding {matrix} will be displayed to indicate the number of rows and columns. A matrix of size is displayed (Matrix)
Ru. [Matrix] ■ Matrix element input is, for example, in the case of a matrix with 3 rows, 3 columns, 1 matrix, and 1, from l row and 1 column, 1 row and 2 columns, 1 row and 3 columns,
This is done by sequentially inputting 2nd row, 1st column, 2nd row, 2nd column, 2nd row, 3rd column, 3rd row, 1st column, 3rd row, 2nd column, and 3rd row, 3rd column. (Press the Ir-J key at the right end of each row to enter the next row, and press the "r→" key at the right end of the last row to complete matrix input.) On the subscript ■Brackets for multiple rows If you press this key on the right side, the cursor moves to the line above the parentheses and enters upper subscript input mode. ■Finish inputting the upper subscript and press the r-J key at the right end to finish inputting on the subscript. Subscript bottom ■If you press this key on the right side of a multi-line parenthesis, the cursor moves to the line below the parenthesis and enters the lower subscript input mode. ■Finish inputting the lower subscript and press the r-5 key at the right end to finish inputting the lower subscript. FIG. 4 is an explanatory diagram showing how the cursor moves in the mathematical expression input mode in the conventional model. When you press the 1 → J key, you move one column from left to right in normal character input, but in formula input mode! The movement changes a little. Basically, 1 from left to right, same as when inputting characters.
Columns are moved, but if there is a mathematical symbol that requires input of characters/symbols at the bottom and top of the mathematical symbol, such as fractions, i, Σ, etc., it is moved from the center of the mathematical symbol to the beginning of the bottom, and from the end of the bottom. Move one by one to the beginning of the top and from the end of the top to the center of the next mathematical symbol. (See the cursor position in Figure 4 for details.) The r-1 key performs the opposite operation to the r-1 key. The riJ key moves the cursor to the beginning of the upper expression rather than the lower expression when there is a mathematical symbol with a lower expression or an upper expression, such as a fraction 1 or Σ.
The keys perform the opposite operation, and the movement is different from normal character input. FIG. 5 is an explanatory diagram of a cursor movement method in the mathematical expression input mode according to the present invention. When moving the cursor on conventional models, you can only move the cursor one by one, so in the case of mathematical formulas in particular, the cursor can be moved up and down using the r-Jr4-J keys, so it is difficult to move the cursor to the desired position. requires a large number of strokes and time. In the present invention, in addition to the conventional means of moving the cursor one by one, there is also a means of moving the cursor in units of mathematical symbols input using soft keys. That is, f4J lr)J
By pressing the key, you can now move to the mathematical symbol unit entered from the soft key, making it easier to move the cursor to the desired position. FIG. 5 is a diagram showing an example of cursor movement by pressing the lj4J r>1 key. To explain using FIG. 5, when the cursor is placed on y and the cursor key is pressed, the cursor moves sequentially over the mathematical symbols input using the soft keys. In the example shown in FIG. 5, the movement is from above y to above 1, from above S to above J, from above J to above the fractional rule, and from above the fractional rule to Σ. FIG. 6 shows another example in the formula input mode of the present invention.
FIG. 2 is an explanatory diagram of two cursor movement methods. In the case of the method shown in Figure 5, if you want to move the cursor to the beginning or the end of a formula, you need to enter 14JlrTh-J multiple times, but with this method, you can move the cursor to the beginning of the formula or the end of the formula with one key operation. Finally, you will be able to move the cursor. To explain using Fig. 6, when the cursor is on y and the F>1 key is pressed while pressing 1 function 1, the cursor is placed on the last mathematical symbol entered with the soft key, that is, as shown in Fig. 6. In this example, you can move it all at once onto Σ. Also, by pressing the r4J key while holding down the "r function", it is possible to move all at once to the first mathematical symbol input using the soft keys, that is, to the 1 in the example of FIG. 6. FIG. 7 is an explanatory diagram showing a deletion method in the mathematical expression input mode in a conventional model. If you try to delete the whole thing, move the cursor to a, press the r delete j key four times to delete one character, and then press the r delete 1 key once again when there is no data in I. By pressing it, it is necessary to delete J, and in this example, it was necessary to operate the r delete 1 key five times. FIG. 8 is an explanatory diagram of the deletion method in the mathematical expression input mode according to the present invention. As shown in the figure, in the present invention, when the cursor is on the mathematical symbol input using the soft keys,
By simply pressing the Delete 1 key once, all formula terms covered by that formula symbol can be deleted at once. In this example, the entire I can be deleted at once by pressing the key once. FIG. 9 is a diagram for explaining the method for outputting the created mathematical formula into the document screen according to the present invention. In the present invention, a formula is created in the formula window and
By pressing the key, the created formula is output to the cursor position on the document screen. If you print it out as it is at that time, the line pitch will be the standard value of the system, and the line spacing of the multiple lines that make up the formula will become larger.
There is a strong tendency for printed results to become difficult to see. Furthermore, if you output it as is, when editing such as inserting characters before the formula, the inputted formula may be destroyed on the display screen due to the movement of the character string. In the present invention, two methods shown in FIG. 9 are adopted as means to address the above-mentioned drawbacks. First, regarding the line pitch, a method is adopted in which an appropriate value for printing a mathematical formula is determined within the system, and appropriate line pitch information is added and output at the time of output. r4J seen at the left end of the example display screen in FIG. 9 is the appropriate line pitch value determined in this manner, and rs1 is a line pitch symbol for returning the line pitch to its original value. On the other hand, regarding the destruction of mathematical formulas, as shown in FIG. 9, a means for displaying and outputting by adding a block code ◆ frame is adopted. This block turns the entire formula into a block, making it unaffected by previous editing processes. FIG. 10 is a diagram for explaining a method in which the method (row bit) shown in FIG. 9 is further improved. As shown in Fig. 10, the operator is requested to set the line pitch by pressing the r execution j key.
If you select standard, the system will output the line pitch information of the appropriate value, 3mm, similar to Figure 9.
When 4■, 5llll is selected, the specified line pitch information is added and output, and when None is selected, the line pitch is not added and output, increasing the freedom of the operator. An increasing effect is produced. Further, in this embodiment, the values of the row pitch that can be set are determined as shown in FIG. 10, but the values are not limited to these values. Furthermore, the value selection method may be set by manually inputting a desired numerical value using a key, other than the one-sided menu method as shown in FIG. 10. FIG. 11-a is a diagram for explaining a method of displaying mathematical expression input in a conventional document processing device. As shown in the figure,
The cursor in the formula is a vertical bar cursor instead of the normal under cursor. This is the 11th-b
This is thought to be because using an under cursor as shown in the figure requires an extra space to be displayed at the end of the formula, which has the disadvantage of making the display difficult to read. However, if a vertical bar cursor is used, on devices that use an under cursor during normal document input, it will feel unnatural to the operator, making it difficult to understand the current input character width mode, and it will be necessary to add functionality to the display program. There are drawbacks such as. FIG. 11-b is a diagram for explaining the display method in the screen type input according to the present invention. As shown in the figure, an under cursor is used and an extra space is displayed at the end of each formula term (upper and lower limits of 1, inside of J, numerator and denominator of fractions, and the end of the top and bottom of Σ). This is a space that exists so that you can add numbers, etc. at the end of each entered formula term. Otherwise, it will be difficult to add numerical values to the end of each formula term. In this embodiment, the last space of the formula term, which is required during input, is displayed in the input formula window and is suppressed all at once when outputting to the document screen. FIG. 11-c is a diagram for explaining a method that further improves the display method for inputting numerical formulas described in conjunction with FIG. 11-b. In this embodiment, as shown in the figure, the space explained in Figure 11-b is displayed only for the formula term where the cursor is present, thereby reducing the unnaturalness in the display. be. Of course, in this embodiment as well, when outputting to the document screen, this space is displayed as subresponse. FIG. 12-a is a diagram illustrating a case where fractions are successively input using a conventional document processing device. When fraction lines are large enough for multiple characters, they need to be connected when displaying and printing, so it is common to use ruled lines. When inputting a fraction, a problem occurs in which the two fraction lines are connected. FIG. 12-b is a diagram illustrating a case where fractions are input continuously in the document processing apparatus of the present invention. As shown in the figure, when fractions are entered consecutively, a period is automatically inserted between the two fraction lines to prevent them from connecting, eliminating the drawbacks of the conventional method. It's improving. In this embodiment, a period is inserted between two consecutive fractional lines, but as will be described later with reference to FIG. 20-a, a period is inserted between two consecutive fractional lines. - You may also include a space, etc. In this example, the explanation was given using fractional rules as an example, but
As will be described later with reference to FIG. 20-C, the same applies to the continuation of ruled lines when, for example, over-par is represented by ruled lines. Furthermore, the same applies not only to ruled lines but also to the case where symbols that are connected and displayed/printed by consecutive time-one complementation under normal control are used as mathematical symbols. FIG. 13 is an explanatory diagram showing the shift mode transition when a mathematical formula is input in the present invention. As shown in the figure, when inputting a mathematical formula, alphanumeric characters are usually entered following the mathematical symbol assigned to the soft key. We have adopted a method to forcibly change to alphanumeric mode in certain cases. Figure 14 shows bare parentheses, {pair}, (bare) in the present invention.
, [Bear], 1 Pair 1 is a diagram for explaining a display method and input processing into bare parentheses when 1 is input. In the present invention, different processing is performed when a mathematical formula is entered within parentheses entered using the paired parentheses soft key, and when a mathematical formula is entered manually within parentheses entered one by one using normal keys. 2 Normal keys Brackets entered manually are treated as normal characters, whereas parentheses entered using the bare parentheses soft key are automatically converted into parentheses according to the size of the characters/symbols entered inside them. can be enlarged or reduced (both horizontally and vertically). In the present invention, in order to enable the operator to visually distinguish the difference between the two types of parentheses on the display, the display form of parentheses input using the bare parentheses soft key is changed from that of normal parentheses. The system uses a method to display the information as follows. A specific example is shown in Figure 14. In the same figure, the parentheses (a+b) were entered manually using normal keys, and
.. lIC'JaA8a shows parentheses entered manually using the Paired Brackets softkey, with the paired parentheses highlighted. Additionally, once the text is automatically enlarged, multiple lines of parentheses cannot be entered manually using the normal keys, so there is no need to highlight pairs of parentheses on the display to distinguish them. Therefore,
As shown in Figure 14, enlarged square brackets are returned to normal display. Furthermore, when the enlarged parentheses are reduced to a single line, they are displayed in reverse video again. FIG. 15 is a diagram illustrating a special case method of automatically expanding paired parentheses according to the present invention. In order to incorporate multi-line parentheses into a document, it is common to construct multi-line parentheses by combining multiple types of symbols. For example, if { is a table formula with three lines, it is necessary to align the centers of the entire series of formulas. It becomes impossible to display the line with the center of the parentheses aligned with the center of the expression. For example, if a mathematical symbol that takes two lines (J. Bare parentheses cannot be displayed. In the present invention, as shown in FIG. The number of lines of the formula entered within + 1), the center of the pair of parentheses can be aligned with the center of the formula. FIG. 16 is an explanatory diagram showing a state when numerical values are input in a matrix in a conventional document processing device. The figure shows an example in which numerical values are input in a matrix of 3 rows and 3 columns, but the lth digit of each column is not aligned and displayed. FIG. 17 is an explanatory diagram showing a state when numerical values are input into a matrix in the apparatus of this embodiment. As shown in the figure, in this embodiment, by automatically performing decimal tab processing within the matrix, it is possible to align the first digits of each column and display them. FIG. 18 is an explanatory diagram showing a state in which a large number of fractions, J, etc. are used in upper and lower subscripts in a conventional document processing device. For normal expressions, the center of the expression is displayed. However, if you align the centers of the mathematical expressions in the upper and lower subscripts at the beginning of each subscript in the same way as above, the upper and lower subscripts will be displayed as shown in Figure 18. A problem arises in that it becomes difficult to distinguish between the two, or even between these subscripts and the following expression. FIG. 19 is an explanatory diagram showing a display state when a large number of fractions, J, etc. are used in the upper and lower subscripts in the apparatus of this embodiment. In this example, for upper subscripts, the lowest row of the expressions that make up the subscript is always the tip of the upper subscript, and for lower subscripts, the top row of the expressions that make up the subscript is always , are always displayed aligned to the line at the beginning of the lower subscript (next to 2 in the example). By adopting this method, there will always be one space between the upper and lower subscripts, so the upper and lower subscripts will not be mixed up, and the two will be clearly distinguished. The distinction between these subscripts and the following expression becomes clear. Figures 20-a, 20-b, and 20-c are the 12th
As explained in the figure, when fractions are input consecutively,
FIG. 7 is a diagram for explaining another example of a method for preventing fractional rules from connecting. In the embodiment shown in FIG. 12, a period is inserted between the fractional lines, but in the embodiment shown in FIG. 20-a, the problem is solved by inserting a half-width space. According to this method, there is no need to display unnecessary periods, which further improves the display. In addition, in the example shown in Figure 20-b, without inserting a half-width space, the left fractional rule is made into a ruled line code that extends only to the left and does not extend to the right, and the right fractional rule is made to extend only to the right and does not extend to the left. This is an example of solving the problem of connected fractional rules by converting to a ruled line code, which eliminates the need to display half-width spaces that are not actually input, and is further improved. Next, FIG. 20-c is an example in which a similar problem occurs in cases other than consecutive fractional rules. The figure shows the case where over-par (same as vector) is input next to J, and the J-rule and over-par rule are connected. 20th-
Figure d shows a case where the problem shown in Figure 20-c is solved by the method shown in Figures 20-a and 20-b. Figures 21-a and 21-b show that when a formula with an even number of rows is entered inside paired parentheses, it is automatically extended to a pair of parentheses with the number of rows in the r formula + 11 lines, as explained in Figure 15. death,
FIG. 7 is a diagram for explaining an example of application to matrix input in relation to a method of displaying the center of a pair of parentheses aligned with the center of an expression. Figure 21-a is a diagram illustrating an example in which a matrix of 2 rows and 1 column is input. As in the case of bare parentheses, if it is displayed as a two-row matrix, it will not be possible to align the center of the matrix with the center of the expression. Furthermore, the problem arises that the line spacing between the first and second lines becomes narrower, making it difficult to distinguish between the first and second lines. In this embodiment, as shown in the figure, when a matrix of 2 rows and 1 column is input, a pair of matrix parentheses of 2 rows + 1 row is generated, and the first row of the matrix is set to the lth row. The second line is displayed on the third line, and a space line always exists between the lines. FIG. 21-b is a diagram illustrating an example in which a matrix of 3 rows and 1 column is input. When a matrix with 3 rows and 1 column is input, a pair of matrix parentheses with 3 rows and 2 rows is generated as shown in Figure 21-b in almost the same way as shown in Figure 21-a. , and the lth row of the matrix is displayed on the first row, the second row is displayed on the third row, and the third row is displayed on the fifth row, and there is always 1 between the rows.
This method employs a method in which space lines exist. [Effects of the Invention] As explained above, according to the present invention, the optimal line pitch for mathematical formulas is set independently of the settings for the document screen, so documents containing a mixture of mathematical formulas can be printed in an easy-to-read manner with a simple operation. effective.

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

第l図は本発明の文書処理装置の1実施例を示すブロッ
ク図、 第2図は第1図のキーボードの配置図、第3図は数式入
力の初期画面と数式入力モード中のソフトキーの状態遷
移を示す表示画面図、第4図は数式入力における1カラ
ム単位のカーソル移動処理1→1の場合の例を示す説明
図、第5図は高速カーソル移動処理の説明図、第6図は
第5図より更に高速なカーソル移動処理の説明図、 第7図は従来装置での数式1文字削除処理を行なった場
合の遷移状態を示す説明図、 第8図は1つの数式項全体を1操作で削除する処理の説
明図、 第9図は作成した数式を文書画面に行ピッチとブロック
を付加して出力する様子を示す説明図、第10図は、行
ピッチ指定処理の説明図、9L 第11図寛1は従来の縦棒カーソルによるカーソル移動
処理を示す説明図、 −b  .第11−C図 第11?チ\;i司=墓;Li′アンダーカーソルによ
るカーソル移動処理と出力時の制御の説明図、第12−
a図は、従来装置で分数を連続入力した場合の表示例を
示す説明図、 第1 2−b図は、本発明装置で分数を連続入力した場
合の表示例を示す説明図、 第13図は、数式ソフトキーを押下した場合のシフト状
態の遷移を一示す説明図、 第14図は、通常の括弧とベア括弧の表示上の違いを示
す説明図、 第15図は、ベア括弧内で偶数行取りの数式が入力され
た場合の表示状態を示す説明図、第l6図は、従来装置
で行列内に数値を入力した場合の例を示す説明図、 第17図は、本発明装置で行列内に数値を人力した場合
の例を示す説明図、 第l8図は、従来装置で上下の添字にJ、分数を入力し
た場合の例を示す説明図、 第19図は、本発明装置で上下の添字にJ、分数を人力
した場合の例を示す説明図、 第20−a図は、第12−b図で示す方式をさらに改良
した例を示す説明図、 第20−b図は、第20−a図で示す方式をさらに改良
した例を示す説明図、 第20−c図は、従来装置でJとオーバーパーを連続し
て入力した場合の例を示す説明図、第20−d図は、本
発明装置でJとオーバーパーを連続して入力した場合の
例を示す説明図、第21−a図は、本発明装置で2行1
列の行列に数値を入力した場合の例を示す説明図、第2
2−a図は、入力される数式の例を示す図、 第22−b図は、数式制御データテーブルの構成図、 第22−c図は、第22−a図の数式を、数式制御デー
タテーブルで制御する方式を示した説明図、 第22−d図は、数式文字テーブルの説明図、第23図
は数式処理のフローチャート、第24図はファンクショ
ンキ一対応処理のフローチャート、 第25図はソフトキ一対応処理のフローチャート、 第26図は高速カーソル移動処理のフローチャート、 第27図は削除処理のフローチャート、第28図は実行
キー処理のフローチャート、第29図はカーソル移動処
理のフローチャート、 第30図は分数処理のフローチャート、第31図はベア
括弧処理のフローチャート、第32図は行列内文字入力
処理のフローチャート、 第33図は添字上下表示処理のフローチャートである. l ・・・CPU 2・・・ROM 3・・・RAM 4・・・キーボード 5・・・キーボードコントローラ 6・・・バッファメモリ 7・・・表示装置 8・・・表示装置コントローラ 9・・・プリンタ 10・・・プリンタコントローラ 1 2 3 l O 9 第1図 K 3 K 2 第 2 図 {ベア} (べr) 【べ11 1べ1 1im ベクトル オーババ一一 { } ( ) 【 l 添字添字 上  下 第 3 図 第5図 第8図 第9図 弟 1 2 −b図 第 1 1 図 第 1 1  −  1:) 図 第1 1 図 第 l 3図 第1 4図 第 1 6図 第15図 第1 7図 第1 9図 貢写 2 0 − d 凶 ジ弓 i  (J  −  b  図 第21 一a図 第2 1 − b図 第2 2 − kn図 第22−c図 第23図 第22−d図 第26図 第27図 第28図 第31図 第32図
Fig. 1 is a block diagram showing one embodiment of the document processing device of the present invention, Fig. 2 is a layout diagram of the keyboard shown in Fig. 1, and Fig. 3 shows the initial screen for inputting formulas and the soft keys in the formula input mode. Display screen diagram showing state transition, Figure 4 is an explanatory diagram showing an example of cursor movement processing in units of one column 1 → 1 in mathematical expression input, Figure 5 is an explanatory diagram of high-speed cursor movement processing, and Figure 6 is an illustration Figure 5 is an explanatory diagram of a faster cursor movement process than that of Figure 5. Figure 7 is an explanatory diagram showing the transition state when one character of a formula is deleted using a conventional device. An explanatory diagram of the process of deleting by operation. Figure 9 is an explanatory diagram showing how the created formula is output on the document screen with line pitch and blocks added. Figure 10 is an explanatory diagram of the line pitch specification process. 9L FIG. 11 Hiro 1 is an explanatory diagram showing cursor movement processing using a conventional vertical bar cursor, -b. Figure 11-C Figure 11? Chi\;
Figure a is an explanatory diagram showing an example of a display when fractions are input continuously with the conventional device; Figure 12-b is an explanatory diagram showing an example of a display when fractions are input continuously with the device of the present invention; Figure 13 is an explanatory diagram showing the shift state transition when the formula soft key is pressed, Fig. 14 is an explanatory diagram showing the difference in display between normal parentheses and bare parentheses, and Fig. 15 is an explanatory diagram showing the difference in display between normal parentheses and bare parentheses. FIG. 16 is an explanatory diagram showing the display state when a mathematical formula with even rows is input. FIG. 16 is an explanatory diagram showing an example when numerical values are input in a matrix using the conventional device. Figure 18 is an explanatory diagram showing an example of inputting numerical values manually into a matrix. Figure 18 is an explanatory diagram showing an example of inputting J and fractions in the upper and lower subscripts using a conventional device. Figure 19 is an explanatory diagram showing an example of inputting a fraction into the upper and lower subscripts using a conventional device. An explanatory diagram showing an example of a case where the upper and lower subscripts are J and fractions are entered manually. Figure 20-a is an explanatory diagram showing an example of a further improvement of the method shown in Figure 12-b. Figure 20-b is FIG. 20-c is an explanatory diagram showing an example in which the method shown in FIG. 20-a is further improved; FIG. The figure is an explanatory diagram showing an example of inputting J and over par consecutively using the device of the present invention.
Explanatory diagram showing an example of inputting numerical values into the column matrix, 2nd
Figure 2-a is a diagram showing an example of an input formula, Figure 22-b is a configuration diagram of a formula control data table, and Figure 22-c is a diagram showing the formula shown in Figure 22-a as formula control data. Figure 22-d is an explanatory diagram of the table-based control system, Figure 22-d is an explanatory diagram of the formula character table, Figure 23 is a flowchart of formula processing, Figure 24 is a flowchart of function key correspondence processing, and Figure 25 is 26 is a flowchart of high-speed cursor movement processing; FIG. 27 is a flowchart of deletion processing; FIG. 28 is a flowchart of execution key processing; FIG. 29 is a flowchart of cursor movement processing; is a flowchart of fraction processing, FIG. 31 is a flowchart of bare parenthesis processing, FIG. 32 is a flowchart of character input processing in a matrix, and FIG. 33 is a flowchart of subscript display processing. l...CPU 2...ROM 3...RAM 4...Keyboard 5...Keyboard controller 6...Buffer memory 7...Display device 8...Display device controller 9...Printer 10...Printer controller 1 2 3 l O 9 Fig. 1 K 3 K 2 Fig. 2 {bare} Lower Figure 3 Figure 5 Figure 8 Figure 9 Younger brother 1 2-b Figure 1 1 Figure 1 1-1:) Figure 1 1 Figure l 3 Figure 1 4 Figure 1 6 Figure 15 Fig. 17 Fig. 19 Tribute copy 2 0-d Kujiyumi i (J-b Fig. 21 1-a Fig. 2 1-b Fig. 2 2-kn Fig. 22-c Fig. 23 Fig. 22 -d Figure 26 Figure 27 Figure 28 Figure 31 Figure 32

Claims (3)

【特許請求の範囲】[Claims] (1)文字・記号を入力する入力手段と、 該入力手段により入力された記号を表示する表示手段と
、 該入力手段により入力された記号を印字する印字手段と
、 数式を入力するためのモードを選択する数式入力モード
選択手段と、 該数式入力モード選択手段により数式入力モードが選択
された時、前記入力手段により入力される文字・記号列
を前記印字手段によって印字する時の印字ピッチを、入
力される文字・記号列の構成に従って決定するように制
御する印字制御手段とを有することを特徴とする文書処
理装置。
(1) An input means for inputting characters and symbols, a display means for displaying the symbols input by the input means, a printing means for printing the symbols input by the input means, and a mode for inputting mathematical formulas. a formula input mode selection means for selecting a formula input mode; and when the formula input mode is selected by the formula input mode selection means, a printing pitch when the character/symbol string input by the input means is printed by the printing means; 1. A document processing apparatus, comprising: a print control means that performs control to determine according to the structure of input character/symbol strings.
(2)前記印字制御手段により決定される印字ピッチと
は異なる印字ピッチに設定可能な設定手段を有すること
を特徴とする請求項1記載の文書処理装置。
(2) The document processing apparatus according to claim 1, further comprising a setting unit capable of setting a printing pitch different from the printing pitch determined by the printing control unit.
(3)前記数式入力モードで入力された文字・記号列を
、前記表示手段上で制御文字で囲んで表示するように制
御する表示制御手段を有することを特徴とする請求項1
または2記載の文書処理装置。
(3) A display control means for controlling the character/symbol string inputted in the mathematical formula input mode to be displayed on the display means so as to be surrounded by control characters.
Or the document processing device according to 2.
JP1166381A 1989-06-27 1989-06-27 Document processor Pending JPH0330051A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1166381A JPH0330051A (en) 1989-06-27 1989-06-27 Document processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1166381A JPH0330051A (en) 1989-06-27 1989-06-27 Document processor

Publications (1)

Publication Number Publication Date
JPH0330051A true JPH0330051A (en) 1991-02-08

Family

ID=15830363

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1166381A Pending JPH0330051A (en) 1989-06-27 1989-06-27 Document processor

Country Status (1)

Country Link
JP (1) JPH0330051A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104932801A (en) * 2014-03-20 2015-09-23 卡西欧计算机株式会社 Electronic Device, Mathematical Expression Display Control Method, And Storage Medium Which Stores Mathematical Expression Control Program
JP2018081712A (en) * 2017-12-27 2018-05-24 カシオ計算機株式会社 Mathematical formula display control device, mathematical formula display control method, and mathematical formula display control program

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104932801A (en) * 2014-03-20 2015-09-23 卡西欧计算机株式会社 Electronic Device, Mathematical Expression Display Control Method, And Storage Medium Which Stores Mathematical Expression Control Program
JP2015184694A (en) * 2014-03-20 2015-10-22 カシオ計算機株式会社 Mathematical formula display control device, mathematical formula display control method, and mathematical formula display control program
US9910820B2 (en) 2014-03-20 2018-03-06 Casio Computer Co., Ltd. Electronic device, mathematical expression display control method, and storage medium which stores mathematical expression control program
CN109471583A (en) * 2014-03-20 2019-03-15 卡西欧计算机株式会社 Electronic equipment, mathematical expression display control method and recording medium
JP2018081712A (en) * 2017-12-27 2018-05-24 カシオ計算機株式会社 Mathematical formula display control device, mathematical formula display control method, and mathematical formula display control program

Similar Documents

Publication Publication Date Title
JP2966420B2 (en) Information processing device
US5130939A (en) Compact electronic calculator capable of displaying matrix element data under actual matrix form
JPH0330051A (en) Document processor
JPH0330056A (en) Document processor
EP0446886A2 (en) Information input/output apparatus
JPH0330053A (en) Document processor
JPH0330062A (en) Document processor
JPH0330054A (en) Document processor
JPS61123876A (en) Document processor
JPH0330058A (en) Document processor
JPH0330057A (en) Document processor
JPH0330052A (en) Document processor
JPH0330059A (en) Document processor
JPH0330055A (en) Document processor
JP3083665B2 (en) Sentence information processing equipment
JP2646996B2 (en) Image display control device
JPH09174798A (en) Kerning method and device therefor
JPH0512215A (en) Electronic equipment with operation/display function of matrix
JPH0581947B2 (en)
JPS63155356A (en) Document editing device
JPS6326764A (en) Document editing device
JPH02294817A (en) Document editing machine equipped with vector font
JPH0743585B2 (en) Document editing device
JPH0950535A (en) Image data output device
JPS6278586A (en) Character processor