Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0740182B2 - Document processing apparatus and method - Google Patents
[go: Go Back, main page]

JPH0740182B2 - Document processing apparatus and method - Google Patents

Document processing apparatus and method

Info

Publication number
JPH0740182B2
JPH0740182B2 JP62283182A JP28318287A JPH0740182B2 JP H0740182 B2 JPH0740182 B2 JP H0740182B2 JP 62283182 A JP62283182 A JP 62283182A JP 28318287 A JP28318287 A JP 28318287A JP H0740182 B2 JPH0740182 B2 JP H0740182B2
Authority
JP
Japan
Prior art keywords
character
display screen
document
cursor
line
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP62283182A
Other languages
Japanese (ja)
Other versions
JPH01126684A (en
Inventor
陽二 古谷
直史 井上
雅直 安田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP62283182A priority Critical patent/JPH0740182B2/en
Publication of JPH01126684A publication Critical patent/JPH01126684A/en
Publication of JPH0740182B2 publication Critical patent/JPH0740182B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Document Processing Apparatus (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は文書処理装置及び方法、詳しくは文書を編集・
作成する文書処理装置及び方法に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Industrial field of use]
The present invention relates to a document processing device and method to be created.

[従来の技術] 近年の文書処理装置における編集中に使用できる文字種
は、全角文字を始めとする横倍角、縦倍角、更には縦横
倍角文字等が挙げられる。
[Prior Art] Character types that can be used during editing in a recent document processing apparatus include double-width characters including double-byte characters, double-height characters, and double-width characters.

通常、これらの文字は全角文字パターンを基準にして、
そのパターン中の1ドツトを縦或いは横に2ドツトに展
開することにより発生していた。従つて、文書編集画面
において、例えば横倍角の文字を入力したときには、表
示画面中の文字入力枠を2つ分を占めることになる。
Usually, these characters are based on the full-width character pattern,
It was caused by developing one dot in the pattern into two dots vertically or horizontally. Therefore, when a double-width character is input on the document edit screen, for example, two character input frames on the display screen are occupied.

ところで、現在では、表示画面に1ページに相当する枠
(以下、ページ枠という)を表示するのが主流である。
この枠の大きさは初期設定処理で設定された行数及び列
数に基づくことが多く、当然、表示画面を越える大きさ
を設定する場合もある。特に、表示画面自体が40×20文
字程度の場合には往々にして良くある。
By the way, at present, the mainstream is to display a frame corresponding to one page (hereinafter referred to as a page frame) on the display screen.
The size of this frame is often based on the number of rows and the number of columns set in the initial setting process, and naturally, the size may exceed the display screen. In particular, this is often the case when the display screen itself is about 40 × 20 characters.

そこで、表示画面から外れた文書の訂正等を操作するた
めに、その訂正しようとする箇所を表示する必要があ
る。このとき、良く用いる常套手段がスクロールであ
る。
Therefore, in order to operate correction of a document that is off the display screen, it is necessary to display the portion to be corrected. At this time, a scrolling method is often used.

[発明が解決しようとする問題点] ところが、前述した縦或いは横倍角等の文字等と全角文
字とを混在した文書をスクロール表示しようとすると以
下に示す様な問題が発生する。
[Problems to be Solved by the Invention] However, if a document in which the above-described characters such as double-width characters or double-width characters and full-width characters are mixed is scroll-displayed, the following problems occur.

第10図(a)は文書情報100と表示画面の表示エリア101
との関係を概念的に示す図であり、表示画面からは外れ
た位置に縦横倍角文字と全角文字とで構成された文字列
がある状態を示している。
FIG. 10A shows the document information 100 and the display area 101 of the display screen.
FIG. 9 is a diagram conceptually showing the relationship between and, and shows a state in which there is a character string composed of double-width characters in vertical and horizontal directions and double-byte characters at a position off the display screen.

今、カーソル102が図示の位置(表示画面最下位)にあ
るとき、その下の行を見ようとしてキーボード等に備え
られたカーソルの下方向に移動させるキーを押下したと
する。すると、従来でのスクロールは全角文字の大きさ
を単位としていたため、第10図(b)に示す様な表示画
面103が表示されることになる。
Now, when the cursor 102 is located at the position shown in the drawing (bottom of the display screen), it is assumed that the user presses a key provided on a keyboard or the like to move the cursor downward in order to see the line below the cursor. Then, in the conventional scrolling, the size of the double-byte character is used as a unit, so that the display screen 103 as shown in FIG. 10B is displayed.

これではオペレータの意図した“次行を見たい”という
要求を満たしたことにはならない。
This does not mean that the operator's intention of "I want to see the next line" is not satisfied.

そして、この問題は上下スクロールにのみ発生するもの
ではない。すなわち、説明は省略するが、横倍角文字が
混在した文書の横方向のスクロールでも同様の問題が発
生する。
And this problem does not occur only in vertical scrolling. That is, although the description is omitted, the same problem occurs in horizontal scrolling of a document in which double-width characters are mixed.

本発明はかかる問題に鑑みなされたものであり、簡単な
操作でもつて使用者の要求を見たす文書スクロールを可
能とした文書処理装置及び方法を提供しようとするもの
である。
The present invention has been made in view of the above problems, and an object of the present invention is to provide a document processing apparatus and method capable of scrolling a document to meet a user's request with a simple operation.

[問題点を解決するための手段] この問題を解決するため、本発明の文書処理装置は以下
に示す構成を備える。
[Means for Solving Problems] In order to solve this problem, the document processing apparatus of the present invention has the following configuration.

すなわち、 文書を表示画面に表示して編集或は作成する文書処理装
置であって、 少なくとも前記表示画面に表示された所望の文字の位置
を指定する位置指定手段と、 該位置指定手段で前記表示画面の上または下枠を越える
文字を指定したとき、指定された文字を含む行中の文字
の高さに基づいた移動量にて文書情報を一方向にスクロ
ールするスクロール手段とを備える。
That is, a document processing device for displaying or editing or creating a document on a display screen, comprising at least a position designating means for designating a position of a desired character displayed on the display screen, and the display by the position designating means. When a character exceeding the upper or lower frame of the screen is designated, a scroll means for scrolling the document information in one direction with a movement amount based on the height of the character in the line including the designated character is provided.

また、本発明の他の文書処理装置は、 文書を表示画面に表示して編集或は作成する文書処理装
置であって、 少なくとも前記表示画面に表示された所望の文字の位置
を指定する位置指定手段と、 該位置指定手段で前記表示画面の左または右枠を越える
文字を指定したとき、指定された文字の横幅に基づいた
移動量にて表示画面を左または右方向にスクロールする
スクロール手段とを備える。
Another document processing apparatus of the present invention is a document processing apparatus for displaying a document on a display screen for editing or creating, and at least a position designation for designating a position of a desired character displayed on the display screen. Means and scroll means for scrolling the display screen leftward or rightward by a movement amount based on the width of the designated character when a character exceeding the left or right frame of the display screen is designated by the position designating means. Equipped with.

また、本発明の文書処理方法は、 記憶手段に格納された文書を表示画面に表示し、 前記表示画面上の上または下枠を越える位置の文字の表
示が指定された場合、指定された文字を含む行中の文字
の高さに基づいた移動量にて文書を上または下方向にス
クロールすることを特徴とする。
Further, the document processing method of the present invention displays the document stored in the storage means on the display screen, and when display of a character at a position beyond the upper or lower frame on the display screen is designated, the designated character is designated. It is characterized in that the document is scrolled upward or downward by the amount of movement based on the height of the characters in the line including.

[作用] かかる本発明において、例えば位置指定手段で表示画面
の上下枠を越える文字が指定された場合には、その指定
された文字を含む行中の文字の高さに基づく移動量にて
スクロールする。
[Operation] In the present invention, for example, when a character that exceeds the upper and lower frames of the display screen is designated by the position designating means, scrolling is performed by the amount of movement based on the height of the character in the line including the designated character. To do.

[実施例] 以下、添付図面に従つて本発明に係る実施例を詳細に説
明する。
Embodiments Embodiments according to the present invention will be described in detail below with reference to the accompanying drawings.

〈装置の概略構成の説明(第1図)〉 第1図に実施例における文書処理装置の構成概略を示
す。
<Explanation of Schematic Configuration of Apparatus (FIG. 1)> FIG. 1 shows a schematic configuration of the document processing apparatus in the embodiment.

図中、1は装置全体を制御するCPUであつて、メモリ2
内のプログラムエリア2a内に格納されたプログラムに従
つて動作するものである。尚、プログラムエリア2aには
第2,8,9図のフローチヤートに係るプログラムが格納さ
れている。また、メモリ2内の文書エリア2bには編集中
の文書情報が展開される。3はVRAMであつて、ここに展
開されたイメージデータは表示装置の1つであるCRT4に
表示される。5は複数種類の文字パターンを発生するこ
とが可能な文字パターン発生器であつて、例えば文書エ
リア2b内の文字コードに対応した文字パターンをVRAM3
に展開するとき等に使用する。尚、この文字パターン発
生器5から発生する文字種は、全角文字、全角文字の1.
5倍等の文字等(その文字パターンを予め保持していれ
ば達成できる)を発生する。6はCRT4の表示画面の前面
に位置する透明な感圧式のタツチパネルであつて、オペ
レータの指先が触れた位置情報はCPU1に取り込まれる。
7は各種情報を入力するキーボードであり、ジヨイステ
イツク7aを備えている。8は複数の文書情報を記憶可能
な外部記憶部(例えば磁気デイスク装置)である。ま
た、9は印刷部である。
In the figure, 1 is a CPU that controls the entire apparatus, and a memory 2
It operates according to the program stored in the program area 2a therein. The program area 2a stores programs relating to the flow charts of FIGS. The document information being edited is expanded in the document area 2b in the memory 2. Reference numeral 3 is a VRAM, and the image data developed here is displayed on a CRT 4 which is one of the display devices. Reference numeral 5 is a character pattern generator capable of generating a plurality of types of character patterns. For example, the character pattern corresponding to the character code in the document area 2b is VRAM3.
Used when deploying to. The character types generated by this character pattern generator 5 are full-width characters and full-width characters 1.
Characters such as 5 times larger (which can be achieved if the character pattern is held in advance) are generated. Reference numeral 6 denotes a transparent pressure-sensitive touch panel located on the front surface of the display screen of the CRT 4, and the position information touched by the operator's fingertip is fetched by the CPU 1.
Reference numeral 7 is a keyboard for inputting various kinds of information, and includes a Joystick 7a. Reference numeral 8 denotes an external storage unit (for example, a magnetic disk device) capable of storing a plurality of pieces of document information. Further, 9 is a printing unit.

〈文書編集処理の説明(第2図(a),(b))〉 先ず、実施例における文書処理装置の処理概要を説明す
る。尚、実施例における各種情報の入力はキーボード7
の他にCRT4の表示画面に表示された各種アイコンに対応
するタツチパネル6上の面を指等で指定することによ
り、選択するものである。また、以下の説明の“…ボタ
ン”は表示画面に表示された各種処理に対応するアイコ
ンであり、そのボタンに対応するタツチパネル6の位置
をタツチする動作を単に“タツチする”という。
<Description of Document Editing Process (FIGS. 2 (a) and 2 (b))> First, an outline of the process of the document processing apparatus according to the embodiment will be described. The keyboard 7 is used to input various information in the embodiment.
In addition, the surface of the touch panel 6 corresponding to various icons displayed on the display screen of the CRT 4 is designated by a finger or the like for selection. The "... button" in the following description is an icon corresponding to various processes displayed on the display screen, and the operation of touching the position of the touch panel 6 corresponding to the button is simply referred to as "touch".

さて、電源が投入され、文書作成に係るメニユーを選択
すると、ステツプS1でCRT4の表示画面には文書作成に係
る複数行の文書を表示可能なエリアを確保されるが、こ
れ以外に各種操作ボタン群が表示される。
Now, when the power is turned on and the menu for document creation is selected, in step S1, the display screen of the CRT4 secures an area in which multiple lines of documents related to document creation can be displayed. Groups are displayed.

さて、ステツプS2では、編集終了ボタンをタツチしたか
否かを判断する。この判断が“YES"のときには、編集処
理を終了し、この一連のフローチヤートに入る以前の処
理に戻る。
Now, in step S2, it is determined whether or not the edit end button is touched. When this determination is "YES", the editing process is terminated and the process returns to the process before entering the series of flow charts.

ステツプS3でキーボード7から文字入力があると判断し
た場合には、ステツプS4に移つて、カナ漢字変換したカ
ナ混りの文を編集画面に組み込む処理を実行する。尚、
このとき、ステツプS6で設定された文字の大きさで文字
パターンをVRAM3に展開するが、その詳細は後述する。
If it is determined that there is a character input from the keyboard 7 in step S3, the process proceeds to step S4 to execute the process of incorporating the kana-kanji converted sentence containing kana into the editing screen. still,
At this time, the character pattern is developed in the VRAM 3 in the character size set in step S6, the details of which will be described later.

また、ステツプS5でオペレータの文字種設定ボタンへの
タツチを検出した場合には、ステツプS6に移つて、編集
画面の表示モード(行桁数等)、和文入力が英文入力
か、更には文字の大きさ等の設定の処理を実行する。
If the touch of the operator's character type setting button is detected in step S5, the process moves to step S6, and the editing screen display mode (the number of line digits, etc.) Execute the processing for setting Sasa.

ステツプS7で文字種変更ボタンがタツチされたと判断し
たときには、ステツプS8に移つて、文字種を設定し、且
つ既に表示されている文書中の範囲を指定し、その指定
された範囲内の文字列を設定した文字種に変更する処理
をする。
When it is determined in step S7 that the character type change button has been touched, the process moves to step S8 to set the character type, specify the range in the already displayed document, and set the character string within the specified range. Process to change to the specified character type.

また、ステツプS9で編集ボタンへのタツチを検出した場
合には、ステツプS10に移つて、所望とする文字列の左
寄せ、右寄せ、或いはセンタリング等の編集行為を選択
し、実行する。
If a touch on the edit button is detected in step S9, the process moves to step S10 to select and execute a desired character string such as left justification, right justification, or centering.

更に、ステツプS11で読み出し・保存のボタンがタツチ
されたと判断したら、ステツプS12で編集中の文書を保
存するか或いは新たに文書を読み出すかを選択し、それ
ぞれの選択内容に基づいて処理を実行する。
Further, if it is determined in step S11 that the read / save button has been touched, in step S12 it is selected whether to save the document being edited or to read a new document, and the processing is executed based on the selected contents. .

ステツプS13で表・絵ボタンがタツチされたことを検出
した場合には、ステツプS14に移つてどちらかを選択す
るかを指定し、その選択内容によつて夫々のサブルーチ
ンを読み出し、編集画面に対話的に表或いは絵を作成し
ていく。
If it is detected in step S13 that the table / picture button has been touched, move to step S14 and specify which one to select, and read each subroutine according to the selection contents and interact with the edit screen. Create a table or a picture.

更には、ステツプS15で書式・印刷ボタンをタツチした
ときには、ステツプS16に移つて、書式変更やそれに基
づくレイアウト表示を行ない、必要なら印刷を実行す
る。
Furthermore, when the format / print button is touched in step S15, the process proceeds to step S16, the format is changed and the layout is displayed based on it, and printing is executed if necessary.

この様にして順次キーボード7或いはタツチパネル6か
らの情報を基にして各種処理を実行するが、実施例で
は、この間、キーボード7に設けられたジヨイステイツ
ク7aを操作することにより、表示画面上に表示されたカ
ーソルを移動する様にした。勿論、広く使用されている
カーソル移動に係るキーでもつて操作しても良い。
In this manner, various processes are sequentially executed based on the information from the keyboard 7 or the touch panel 6, but in the embodiment, during this period, the joystick 7a provided on the keyboard 7 is operated to display on the display screen. I moved the cursor. Of course, a widely used key for moving the cursor may be used for the operation.

〈文字記号の展開の説明(第3図)〉 以下、実施例における文字パターンの展開処理を説明す
る。
<Explanation of Character Symbol Expansion (FIG. 3)> The character pattern expansion processing in the embodiment will be described below.

第3図は実施例における縦横倍角文字30と全角文字(基
準文字)31とを混在して展開した一例を示す図である。
FIG. 3 is a diagram showing an example in which vertical and horizontal double-width characters 30 and full-width characters (reference characters) 31 are mixed and developed in the embodiment.

図中の如く縦横倍角文字30と全角文字31との文字ピツチ
及び行ピツチを見るとわかる様に、これらはその文字種
(文字の大きさ)によつて異なる。
As can be seen from the character and line pitches of the double-width characters 30 and the double-width characters 31 as shown in the figure, these differ depending on the character type (size of the character).

従つて、文字を入力したときにおけるカーソル位置は、
入力された文字種に応じた文字ピツチに従つて順次、右
方向に更新して行けば良いことになる。このとき、カー
ソルがページ枠(右マージン)を越えると判断した場合
には、全角文字の行ピツチ(基準行ピツチL0)で次行の
先頭位置にその位置を移す。
Therefore, the cursor position when entering characters is
It is sufficient to sequentially update to the right according to the character pitch corresponding to the input character type. At this time, if it is determined that the cursor exceeds the page frame (right margin), the position is moved to the start position of the next line by the line pitch of the double-byte character (reference line pitch L 0 ).

尚、カーソルが行の先頭に位置して、例えば縦横倍角を
入力したとすると、行間隔が全くない、或いは直前の行
中の文字が消去されるといつた事態が発生するので、そ
の行ピツチを変更しなければならない。
If the cursor is positioned at the beginning of a line and double-width characters are entered, for example, there will be no line spacing or the characters in the previous line will be erased. Must be changed.

そこで、実施例では、注目行中の最大文字高さよりも大
きい文字(例えば縦倍角文字や全角文字の1.5倍等の文
字)が入力されたときには、その注目行の行ピツチLを
以下の式で更新する様にした。
Therefore, in the embodiment, when a character larger than the maximum character height in the target line (for example, a double-width character or a character that is 1.5 times the double-width character) is input, the line pitch L of the target line is calculated by the following formula. I decided to update.

L=入力文字の高さと基準文字(全角文字)との差+基
準行ピツチ 図示の場合には、 L=ΔL+基準行ピツチL0 となる。
L = difference between height of input character and reference character (full-width character) + reference line pitch In the case shown, L = ΔL + reference line pitch L 0 .

尚、例えば第3図において縦横倍角の文字列“全体会
議”が削除された場合には、行ピツチLは基準行ピツチ
に変更されることになる。この処理は、削除文字列があ
つたときに、その削除される文字でもつて、その行中の
最大高さが変化するときにのみ上述した処理を実行すれ
ば良い。
In addition, for example, when the character string "whole meeting" in double-width in FIG. 3 is deleted, the row pitch L is changed to the reference row pitch. In this processing, when a deleted character string is received, the above-mentioned processing may be executed only when the maximum height in the line changes due to the character to be deleted.

〈スクロールの説明(第4図〜第9図)〉 次に上述した処理によつて文書を作成したとき、或いは
作成中における文書画面のスクロールについて説明す
る。
<Description of Scrolling (FIGS. 4 to 9)> Next, scrolling of the document screen when a document is created by the above-described processing or during creation will be described.

上スクロールの説明(第4図) 第4図(a)は文書情報40と表示画面41との関係を示し
た図である。
Description of Upward Scroll (FIG. 4) FIG. 4A is a diagram showing the relationship between the document information 40 and the display screen 41.

今、カーソル42が図示の位置(表示画面の最下行)にあ
つて、その下の行を見ようとするときにはジヨイステイ
ツク7aをその方向に倒す操作をする。
Now, when the cursor 42 is at the position shown in the drawing (the bottom line of the display screen) and the user wants to look at the line below it, he / she operates the joystick 7a in that direction.

CPU1はこの操作を検出すると、先ず、これから表示すよ
うとする行中の文字列中の最大縦幅に基づく行ピツチを
検出する。そして、画面全体をその検出された行ピツチ
分、上方向にスクロールさせ、画面最下行に該当する行
の文字列を展開する。
When detecting this operation, the CPU 1 first detects a line pitch based on the maximum width of the character string in the line to be displayed. Then, the entire screen is scrolled upward by the detected line pitch, and the character string of the line corresponding to the bottom line of the screen is expanded.

これによつて第4図(b)に示す様に、縦横倍角の文字
列“全体会議”と全角文字“に…”から構成される行が
表示されることになる。
As a result, as shown in FIG. 4 (b), a line composed of a character string "whole meeting" with double-width characters and a double-byte character "ni ..." is displayed.

下スクロールの説明(第5図) 第5図は文書情報50と表示画面51との関係を示した一例
であり、カーソル54が表示画面最上段位置にある場合を
示している。また、ここでは全角文字52及び縦横倍角文
字53は夫々説明を簡単にするために拡大して示してい
る。
Description of downward scroll (FIG. 5) FIG. 5 is an example showing the relationship between the document information 50 and the display screen 51, and shows the case where the cursor 54 is at the uppermost position of the display screen. Further, here, the full-width character 52 and the vertical and horizontal double-width character 53 are shown in an enlarged manner to simplify the explanation.

さて、この様な状況下において、画面から外れた上の行
を表示しようとしてジヨイステイツク7aを操作すると、
CPU1は以下の処理を実行して下スクロールを実現する。
Now, in this situation, if you operate the Joystick 7a to display the upper line off the screen,
CPU1 executes the following processing to realize the downward scroll.

すなわち、カーソルのある行からその上の行までの行ピ
ツチLを検出(カーソル位置する行中の最大文字高さ+
αで決定される)し、表示しようとする行中の最大文字
高さ“H"を検出する。
That is, the line pitch L from the line with the cursor to the line above it is detected (maximum character height in the line at the cursor +
Then, the maximum character height "H" in the line to be displayed is detected.

次に、求められた“L"と“H"との和から、カーソルが位
置する行中の最大文字高さを引いた値をスクロールする
量とする。
Next, a value obtained by subtracting the maximum character height in the line on which the cursor is located from the obtained sum of "L" and "H" is set as the scroll amount.

この算出結果得られた量に基づいて下スクロールするこ
とにより第5図(b)に示す表示が可能となる。
By scrolling down based on the amount obtained as a result of this calculation, the display shown in FIG. 5 (b) becomes possible.

右スクロールの説明(第6図) 次に右スクロールについて説明する。Description of Right Scroll (FIG. 6) Next, right scroll will be described.

実施例で用いる文字種は様々な大きさ(横幅が全角文字
の例えば1.3倍等)なので、横方向文字ピツチは各々の
行単位(しかも、1文字毎に)に異なる。そこで、右ス
クロールについては、カーソルの左側に存在(表示画面
からは外れている)する文字種の文字ピツチに基づいて
右スクロールする様にした。
Since the character types used in the embodiments have various sizes (the width is 1.3 times as wide as the full-width character, for example), the horizontal character pitch is different for each line unit (and each character). Therefore, for the right scroll, the right scroll is performed based on the character pitch of the character type that exists on the left side of the cursor (out of the display screen).

第6図は文書情報60と表示画面61との関係を示した一例
であり、カーソル62が表示画面最左位置にある場合を示
している。
FIG. 6 is an example showing the relationship between the document information 60 and the display screen 61, and shows the case where the cursor 62 is at the leftmost position on the display screen.

さて、このとき、現在表示されたカーソル62の位置の左
隣の文字を表示させようとする場合、ジヨイステイツク
7aをその方向に基づいた操作をする。
At this time, if you want to display the character to the left of the position of the cursor 62 that is currently displayed,
Operate 7a based on its direction.

CPU1はこの操作を検出すると、先ず、カーソル62の位置
する左隣の文字種に基づく文字ピツチを検出する。そし
て、この検出された文字ピツチ分を右スクロールするこ
とで第6図(b)に示す様な表示画面を得ることが可能
となる。
When detecting this operation, the CPU 1 first detects a character pitch based on the character type on the left side where the cursor 62 is located. Then, by scrolling the detected character pitch rightward, it is possible to obtain a display screen as shown in FIG. 6 (b).

左スクロールの説明(第7図) 次に左スクロールについて説明する。Description of Left Scroll (FIG. 7) Next, left scroll will be described.

第7図は文書情報70と表示画面71との関係を示した一例
であり、カーソル72が表示画面最右端位置にある場合を
示している。
FIG. 7 is an example showing the relationship between the document information 70 and the display screen 71, and shows the case where the cursor 72 is at the rightmost position of the display screen.

さて、この様な状況下において、画面から外れた右の文
字を表示しようとしてジヨイステイツク7aを操作する
と、CPU1は以下の処理を実行して右スクロールを実現す
る。
Under these circumstances, when the joystick 7a is operated to display the right character off the screen, the CPU 1 executes the following processing to realize right scrolling.

すなわち、カーソルのある位置からその右の文字までの
文字ピツチLを検出(カーソルの位置する文字の種類に
よつて決定される)し、表示しようとする右隣の文字幅
“W"を検出する。
That is, the character pitch L from the position where the cursor is located to the character to the right is detected (determined according to the type of character where the cursor is located), and the character width "W" on the right side to be displayed is detected. .

次に、求められた“L"と“W"との和からカーソルがある
文字の文字幅を引いた値を左スクロールする量とする。
Next, the value obtained by subtracting the character width of the character where the cursor is from the calculated sum of "L" and "W" is set as the amount of left scrolling.

この算出して得られた量に基づいて左スクロールするこ
とにより第7図(b)に示す表示が可能となる。
By scrolling to the left based on the calculated amount, the display shown in FIG. 7 (b) becomes possible.

処理手順の説明(第8図,第9図) 上述したカーソル移動に係る処理を達成する一例として
は、第8図のフローチヤートを処理すれば良い。
Description of processing procedure (FIGS. 8 and 9) As an example of achieving the processing related to the movement of the cursor, the flow chart of FIG. 8 may be processed.

先ず、ステツプS80でカーソル移動に係る操作があつた
か否かを判断する。この判断で、例えばカーソル移動以
外の操作、例えば文書を保存する等の操作があつた場合
にはステツプS81に移り、その指定された情報に基づく
処理を実行する。
First, in step S80, it is determined whether or not there is an operation related to cursor movement. In this determination, if there is an operation other than cursor movement, for example, an operation of saving a document, the process proceeds to step S81, and the process based on the designated information is executed.

また、カーソル移動に基づく操作が指定されてと判断し
た場合には、ステツプS82〜S85の判断で、指定されたカ
ーソル移動に基づく処理(ステツプS86〜S89)の1つに
分岐する。
When it is determined that the operation based on the cursor movement is designated, the process branches to one of the processes based on the designated cursor movement (steps S86 to S89) in the determination in steps S82 to S85.

以下、各々のカーソル移動に基づくCPU1の処理手順を説
明する。
The processing procedure of the CPU 1 based on each cursor movement will be described below.

−1.カーソル上移動の説明(第9図(a)) さて、第9図(a)のフローチヤートにおいては、先ず
ステツプS91で現在のカーソル位置が表示画面の最上行
にあるか否かを判断する。この判断で、それ以外の位置
にあると判断した場合には、ステツプS92に移り、その
ときのカーソル位置の直前の行中の文字位置にカーソル
を移す操作を実行する。
-1. Explanation of cursor movement (Fig. 9 (a)) Now, in the flow chart of Fig. 9 (a), first in step S91, it is determined whether or not the current cursor position is on the uppermost line of the display screen. to decide. If the result of this determination is that the position is other than that, the process moves to step S92, and the operation of moving the cursor to the character position in the line immediately before the cursor position at that time is executed.

また、画面最上行にカーソルが位置していると判断した
場合には、ステツプS93に移り、その行が編集文書の最
初の行であるか否かを判断する。編集中の文書の最初の
行以前には文書がないわけであるあから、この判別結果
が“YES"のときには何も実行せず第8図のフローチヤー
トに復帰する。
If it is determined that the cursor is located at the top line of the screen, the process moves to step S93 to determine whether or not the line is the first line of the edited document. Since there is no document before the first line of the document being edited, when this determination result is "YES", nothing is executed and the flow chart of FIG. 8 is returned to.

さて、カーソルが表示画面最上行にあつて、その行が編
集文書中の途中の行であると判断した場合には、ステツ
プS94以下を処理して下スクロール表示を実行する。
If the cursor is at the top line of the display screen and it is determined that the line is an intermediate line in the edited document, steps S94 and subsequent steps are processed to execute the downward scroll display.

先ず、ステツプS94で画面外の上の行までの行ピツチを
変数A(メモリ2内の設けられている)に代入し、ステ
ツプS95で画面外の行中の最大文字高さを変数B(変数
Aと同様にメモリ2内に設けられている)に代入する。
次にステツプS96でこれら変数A,Bの内容を加算し、その
結果からカーソルのある行中の最大文字高さを引いた値
を変数C(変数A,Bと同様)に代入する。この変数Cの
値が下スクロール量となる。
First, in step S94, the line pitch up to the upper line outside the screen is substituted into the variable A (provided in the memory 2), and in step S95 the maximum character height in the line outside the screen is changed into the variable B (variable). (Provided in the memory 2 similarly to A).
Next, in step S96, the contents of these variables A and B are added, and the value obtained by subtracting the maximum character height in the line on which the cursor is from that result is substituted into variable C (similar to variables A and B). The value of this variable C is the amount of downward scroll.

さて、このスクロール量が得られたら、今度は画面全体
を下スクロール(下方向に、“C"だけ移動)させ(ステ
ツプS97)、表示画面最上行に該当する行中の文字パタ
ーンを展開する(ステツプS98)。そうして、ステツプS
99でカーソルを表示画面最上行に移す。
Now, when this scroll amount is obtained, this time the entire screen is scrolled downward (moved by "C" in the downward direction) (step S97), and the character pattern in the line corresponding to the top line of the display screen is expanded ( Step S98). Then step S
Press 99 to move the cursor to the top line of the display screen.

−2.カーソル下移動の説明(第9図(b)) さて、第9図(b)のフローチヤートにおいては、先ず
ステツプS100で現在のカーソル位置が表示画面の最下行
にあるか否かを判断する。この判断で、それ以外の位置
にあると判断した場合には、ステツプS101に移り、その
ときのカーソル位置の直後の行中の文字位置にカーソル
を移す操作を実行する。
-2. Explanation of cursor down movement (Fig. 9 (b)) Now, in the flow chart of Fig. 9 (b), first in step S100, it is determined whether or not the current cursor position is at the bottom line of the display screen. to decide. If the result of this determination is that it is at a position other than that, the process moves to step S101, and the operation of moving the cursor to the character position in the line immediately after the cursor position at that time is executed.

また、画面最下行にカーソルが位置していると判断した
場合には、ステツプS102に移り、その行が編集文書の最
後の行であるか否かを判断する。編集中の文書の最後の
行以降には文書がないわけであるあから、この判別結果
が“YES"のときには何も実行せず第8図のフローチヤー
トに復帰する。
If it is determined that the cursor is located at the bottom line of the screen, the process moves to step S102 to determine whether or not the line is the last line of the edited document. Since there is no document after the last line of the document being edited, when this determination result is "YES", nothing is executed and the flow chart of FIG. 8 is returned to.

さて、カーソルが表示画面最下行にあつて、その行が編
集文書中の途中の行であると判断した場合には、ステツ
プS103で次の行までの行ピツチを検出する。尚、この行
ピツチは先に説明した様に次の行中の文字列群の最大高
さに基づいた行ピツチとなる。
If the cursor is at the bottom line of the display screen and it is determined that the line is an intermediate line in the edited document, the line pitch up to the next line is detected in step S103. As described above, this row pitch is a row pitch based on the maximum height of the character string group in the next row.

次のステツプS104では、画面全体を下スクロール(上方
向に、得られた行ピツチ分だけ移動)させ、表示画面最
下行に該当する行中の文字パターンを展開する(ステツ
プS105)。そうして、ステツプS106でカーソルを表示画
面最下行に移す。
In the next step S104, the entire screen is scrolled down (moved upward by the obtained line pitch), and the character pattern in the line corresponding to the bottom line of the display screen is expanded (step S105). Then, in step S106, the cursor is moved to the bottom line of the display screen.

−3.カーソル右移動の説明(第9図(c)) さて、第9図(c)のフローチヤートにおいては、先ず
ステツプS110で現在のカーソル位置が表示画面の最右端
にあるか否かを判断する。この判断で、それ以外の位置
にあると判断した場合には、ステツプS111に移り、その
ときのカーソル位置の右隣の文字位置にカーソルを移す
操作を実行する。
-3. Explanation of right movement of cursor (Fig. 9 (c)) Now, in the flow chart of Fig. 9 (c), first in step S110, it is determined whether or not the current cursor position is at the rightmost end of the display screen. to decide. If the result of this determination is that it is at a position other than that, the process moves to step S111, and the operation of moving the cursor to the character position to the right of the cursor position at that time is executed.

また、画面最右端にカーソルが位置していると判断した
場合には、ステツプS112に移り、そのカーソルが編集文
書の最右端(右マージン)に位置しているか否かを判断
する。カーソルが編集中の文書の最右端位置にあると判
断したときには、少なくともその位置より右側には文字
が存在しないことになるから、何も実行せず第8図のフ
ローチヤートに復帰する。
If it is determined that the cursor is located at the rightmost end of the screen, the process moves to step S112 to determine whether or not the cursor is located at the rightmost end (right margin) of the edited document. When it is determined that the cursor is at the rightmost position of the document being edited, there is no character at least to the right of that position, so nothing is executed and the process returns to the flowchart of FIG.

さて、カーソルが表示画面最右端にあつて、そのカーソ
ル位置が編集文書の途中にあると判断した場合には、ス
テツプS113以下を処理して左スクロール表示を実行す
る。
If the cursor is located at the right end of the display screen and it is determined that the cursor position is in the middle of the edited document, steps S113 onward are processed to execute the left scroll display.

先ず、ステツプS113で画面外の文字までの文字ピツチを
変数Aに代入し、ステツプS114で画面外のその文字の文
字幅を変数Bに代入する。次にステツプS115でこれら変
数A,Bの内容を加算し、その結果からカーソルのある文
字幅を引いた値を変数Cに代入する。この変数Cの値が
左スクロール量となる。
First, in step S113, the character pitch up to the character outside the screen is substituted into the variable A, and in step S114 the character width of the character outside the screen is substituted into the variable B. Next, in step S115, the contents of these variables A and B are added, and the value obtained by subtracting the character width at which the cursor is located from that result is assigned to variable C. The value of this variable C is the left scroll amount.

さて、このスクロール量が得られたら、今度は画面全体
を左スクロール(左方向に、“C"だけ移動)させ(ステ
ツプS116)、表示画面最右端に、少なくとも注目文字の
全パターンを含む列を表示する(ステツプS117)。そう
して、ステツプS118でカーソルを表示画面の最右端に表
示された注目文字位置に移す。
Now, when this scroll amount is obtained, this time the entire screen is scrolled to the left (moved to the left by "C") (step S116), and at the rightmost end of the display screen, a column containing at least the entire pattern of the target character Display (step S117). Then, in step S118, the cursor is moved to the focused character position displayed on the rightmost end of the display screen.

−4.カーソル左移動の説明(第9図(d)) さて、第9図(d)のフローチヤートにおいては、先ず
ステツプS120で現在のカーソル位置が表示画面の最左端
にあるか否かを判断する。この判断で、それ以外の位置
にあると判断した場合には、ステツプS121に移り、その
ときのカーソを左隣の文字に移す操作を実行する。
-4. Explanation of cursor left movement (Fig. 9 (d)) Now, in the flow chart of Fig. 9 (d), first in step S120, it is determined whether or not the current cursor position is at the leftmost end of the display screen. to decide. If the result of this determination is that it is at a position other than that, the process moves to step S121, and the operation of moving the cursor at that time to the character on the left is executed.

また、画面最下行にカーソルが位置していると判断した
場合には、ステツプS122に移り、カーソルが編集文書の
行頭にあるかを判断する。行頭にカーソルがある場合に
は、少なくともカーソルの左側に文字が存在しないこと
になるから、何も実行せず第8図のフローチヤートに復
帰する。
If it is determined that the cursor is located at the bottom line of the screen, the process moves to step S122 to determine whether the cursor is at the beginning of the line of the edited document. If there is a cursor at the beginning of the line, at least the character to the left of the cursor does not exist, so nothing is executed and the flow chart returns to FIG.

さて、カーソルが表示画面最左端にあつて、その文字が
編集文書の途中にあると判断した場合には、ステツプS1
23でカーソルの左隣までの文字種に基づいた文字ピツチ
を検出する。
If the cursor is at the leftmost position on the display screen and it is determined that the character is in the middle of the edited document, step S1
At 23, the character pitch based on the character type to the left of the cursor is detected.

次のステツプS124では、画面全体を右スクロール(右方
向に、得られた文字ピツチ分だけ移動)させ、表示画面
最左位置に、少なくとも注目文字の全パターンを含む列
を表示する(ステツプS125)。そうして、ステツプS126
でカーソルを表示画面の最左端に表示された注目文字位
置に移す。
In the next step S124, the entire screen is scrolled to the right (moved to the right by the obtained character pitch), and a column including at least all patterns of the target character is displayed at the leftmost position of the display screen (step S125). . Then step S126
Use to move the cursor to the target character position displayed on the leftmost side of the display screen.

以上説明した様に本実施例によれば、表示画面のスクロ
ールを文字の大きさに基づいて行全体或いは文字を表示
することが可能となり、その操作性は格段に向上するこ
とになる。
As described above, according to the present embodiment, it is possible to scroll the display screen to display the entire line or the character based on the size of the character, and the operability is significantly improved.

尚、実施例ではカーソル移動をキーボードに備えられた
ジヨイステイツクでもつて操作したが、これに限定され
るものではない。例えばキーボード上に設けられたカー
ソル移動に係るキーを操作しても勿論上述した効果を達
成できるからである。
In the embodiment, the cursor is moved by using the joystick provided on the keyboard, but the invention is not limited to this. This is because, for example, the above-mentioned effects can be achieved by operating the keys for moving the cursor provided on the keyboard.

また、実施例では文字の大きさが多数存在した場合につ
いて説明したが、従来の様に全角文字を基準とする縦或
いは(及び)横倍角の文字のみで編集処理する場合に
も、そのまま本実施例の原理を応用することが可能とな
る。
Further, although the embodiment has been described with respect to the case where a large number of characters are present, the present embodiment is directly performed even when the editing process is performed only with the vertical or (and) double-width characters based on the double-byte character as in the conventional case. It is possible to apply the principles of the example.

[発明の効果] 以上説明した様に本発明によれば、文字の大きさに基づ
いてスクロール表示するので、違和感のない文書表示が
可能となる。
[Effects of the Invention] As described above, according to the present invention, since scroll display is performed based on the size of a character, it is possible to display a document without a sense of discomfort.

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

第1図は実施例の文書処理装置のブロツク構成図、 第2図(a),(b)は実施例の文書処理装置の処理概
要を説明するためのフローチヤート、 第3図は実施例における文字記号の展開位置設定を説明
するための図、 第4図(a),(b)は実施例の上スクロールを説明す
るための図、 第5図(a),(b)は実施例の下スクロールを説明す
るための図、 第6図(a),(b)は実施例の右スクロールを説明す
るための図、 第7図(a),(b)は実施例の左スクロールを説明す
るための図、 第8図は実施例におけるカーソル制御に係る主要処理手
順を説明するためのフローチヤート、 第9図(a)〜(d)はカーソル移動に基づく夫々の移
動方向に係るフローチヤート、 第10図は従来のスクロール処理を説明するための図であ
る。 図中、1……CPU、2……メモリ、2a……プログラムエ
リア、2b……文書エリア、3……VRAM、4……CRT、5
……文字パターン発生器、6……タツチパネル、7……
キーボード、7a……ジヨイステイツク、8……外部記憶
部、9……印刷部である。
FIG. 1 is a block diagram of the document processing apparatus of the embodiment, FIGS. 2A and 2B are flow charts for explaining the outline of processing of the document processing apparatus of the embodiment, and FIG. FIGS. 4 (a) and 4 (b) are diagrams for explaining the upward scroll of the embodiment, and FIGS. 5 (a) and 5 (b) are diagrams for explaining the setting of the expansion positions of the character symbols. FIGS. 6 (a) and 6 (b) are diagrams for explaining the right scroll of the embodiment, and FIGS. 7 (a) and 7 (b) are diagrams for explaining the left scroll of the embodiment. FIG. 8 is a flow chart for explaining a main processing procedure relating to cursor control in the embodiment, and FIGS. 9A to 9D are flow charts relating to respective movement directions based on cursor movement. FIG. 10 is a diagram for explaining conventional scroll processing. In the figure, 1 ... CPU, 2 ... memory, 2a ... program area, 2b ... document area, 3 ... VRAM, 4 ... CRT, 5
...... Character pattern generator, 6 ... Touch panel, 7 ...
Keyboard, 7a ... Joystick, 8 ... External storage section, 9 ... Printing section.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】文書を表示画面に表示して編集或は作成す
る文書処理装置であって、 少なくとも前記表示画面に表示された所望の文字の位置
を指定する位置指定手段と、 該位置指定手段で前記表示画面の上または下枠を越える
文字を指定したとき、指定された文字を含む行中の文字
の高さに基づいた移動量にて文書情報を一方向にスクロ
ールするスクロール手段と を備えることを特徴とする文書処理装置。
1. A document processing device for displaying a document on a display screen for editing or creating, and a position designating unit for designating at least a position of a desired character displayed on the display screen, and the position designating unit. When a character exceeding the upper or lower frame of the display screen is specified by, scroll means for scrolling the document information in one direction by a movement amount based on the height of the character in the line including the specified character is provided. A document processing device characterized by the above.
【請求項2】文書を表示画面に表示して編集或は作成す
る文書処理装置であって、 少なくとも前記表示画面に表示された所望の文字の位置
を指定する位置指定手段と、 該位置指定手段で前記表示画面の左または右枠を越える
文字を指定したとき、指定された文字の横幅に基づいた
移動量にて表示画面を左または右方向にスクロールする
スクロール手段と を備えることを特徴とする文書処理装置。
2. A document processing apparatus for displaying or editing or creating a document on a display screen, comprising at least position specifying means for specifying the position of a desired character displayed on the display screen, and the position specifying means. When a character exceeding the left or right frame of the display screen is specified by, scroll means for scrolling the display screen to the left or right with a movement amount based on the width of the specified character is provided. Document processing device.
【請求項3】記憶手段に格納された文書を表示画面に表
示し、 前記表示画面上の上または下枠を越える位置の文字の表
示が指定された場合、指定された文字を含む行中の文字
の高さに基づいた移動量にて文書を上または下方向にス
クロールする ことを特徴とする文書処理方法。
3. A document stored in a storage means is displayed on a display screen, and when display of a character at a position beyond the upper or lower frame on the display screen is designated, a line in the line containing the designated character is displayed. A document processing method characterized in that a document is scrolled up or down by a movement amount based on the height of a character.
JP62283182A 1987-11-11 1987-11-11 Document processing apparatus and method Expired - Lifetime JPH0740182B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62283182A JPH0740182B2 (en) 1987-11-11 1987-11-11 Document processing apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62283182A JPH0740182B2 (en) 1987-11-11 1987-11-11 Document processing apparatus and method

Related Child Applications (2)

Application Number Title Priority Date Filing Date
JP9334650A Division JP2915879B2 (en) 1997-12-04 1997-12-04 Document processing apparatus and method
JP9334651A Division JP2915880B2 (en) 1997-12-04 1997-12-04 Document processing apparatus and method

Publications (2)

Publication Number Publication Date
JPH01126684A JPH01126684A (en) 1989-05-18
JPH0740182B2 true JPH0740182B2 (en) 1995-05-01

Family

ID=17662199

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62283182A Expired - Lifetime JPH0740182B2 (en) 1987-11-11 1987-11-11 Document processing apparatus and method

Country Status (1)

Country Link
JP (1) JPH0740182B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6528632B2 (en) * 2015-09-30 2019-06-12 ブラザー工業株式会社 Editing device, printing device, and control program

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59220785A (en) * 1983-05-31 1984-12-12 キヤノン株式会社 Crt display unit
JPS6297728A (en) * 1985-10-23 1987-05-07 Sasa Kk Core metal for edge protector
JPH0769776B2 (en) * 1987-04-20 1995-07-31 富士通株式会社 Scroll method in character type window display

Also Published As

Publication number Publication date
JPH01126684A (en) 1989-05-18

Similar Documents

Publication Publication Date Title
JP3319647B2 (en) Character input device
JP2966420B2 (en) Information processing device
JPH0363756A (en) Document editor
JPS60189568A (en) Information processor
JP3317379B2 (en) Display screen input device
JP2915879B2 (en) Document processing apparatus and method
JPH0740182B2 (en) Document processing apparatus and method
JP2692063B2 (en) Document processing device
JPH0435789B2 (en)
JP2915880B2 (en) Document processing apparatus and method
JP2646996B2 (en) Image display control device
JP2644479B2 (en) Document creation device
JP2621987B2 (en) Document processing device
JP3077777B2 (en) Document processing device
JPH0470958A (en) Document processor
JPH08123653A (en) Word processor equipment
JP2763836B2 (en) Sentence processing device and method for changing format of sentence processing device
JPH0512276A (en) Document processor
JPH0384660A (en) Document producing device
JPH05342199A (en) Document preparing device and display control method
JPH0470955A (en) Document processor
JPH11120267A (en) Document processing apparatus and recording medium therefor
JPH0470956A (en) Document processor
JPH04118745A (en) Document preparing device with layout editing function
JP2000172767A (en) Information processing apparatus and recording medium storing information processing program

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080501

Year of fee payment: 13