JPH07287769A - Device and method for preparing document - Google Patents

Device and method for preparing document

Info

Publication number
JPH07287769A
JPH07287769A JP8042794A JP8042794A JPH07287769A JP H07287769 A JPH07287769 A JP H07287769A JP 8042794 A JP8042794 A JP 8042794A JP 8042794 A JP8042794 A JP 8042794A JP H07287769 A JPH07287769 A JP H07287769A
Authority
JP
Japan
Prior art keywords
document
input
document area
coordinates
processing
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
JP8042794A
Other languages
Japanese (ja)
Inventor
Hideji Kobayashi
秀治 小林
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.)
Toshiba Corp
Toshiba Software Engineering Corp
Original Assignee
Toshiba Corp
Toshiba Software Engineering Corp
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 Toshiba Corp, Toshiba Software Engineering Corp filed Critical Toshiba Corp
Priority to JP8042794A priority Critical patent/JPH07287769A/en
Publication of JPH07287769A publication Critical patent/JPH07287769A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

PURPOSE:To prepare a required graphic in a document area by using input operation even when the graphic is written in an extruded state from the document area by a document preparing method based upon pen input. CONSTITUTION:The document preparing method has 1st transforming processing S1, S2 for transforming the input coordinates of a graphic written by a pen into a coordinate position on a document area, 1st judging processing S3, S4 for judging whether the coordinate position obtained by the transforming processing exceeds a specific range other than the document area or not and 2nd transforming processing S5 for transforming the input coordinates judged as exceeding coordinates by the 1st judging means into coordinates in the document area. The method has also graphic recognition processing S8 for recognizing the graphic by a coordinate position sequence within a specific range which is obtained by the 1st and 2nd transforming processing, 2nd judging processing S9 for judging whether the coordinates of constitutional points of the graphic obtained by the processing S8 exceed the document area or not, 3rd transforming processing S10 for transforming the coordinates of the constitutional points judged as exceeding points by the processing S9 into coordinates in the document area, and display processing S11 for displaying a graphic in the document area which is obtained through the processing S10.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、ペン入力での筆記操作
に応じた図形表示を行なう文書作成装置及び方法に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a document creating apparatus and method for displaying a graphic according to a writing operation by pen input.

【0002】[0002]

【従来の技術】従来、日本語ワードプロセッサのほとん
どの機種では、その入力をキーボードでのキー操作によ
り行なっていた。そして、ワードプロセッサとしての機
能が順次向上するに連れて、限られた数のキーで多くの
各種機能を実行させるために、一般に機能選択キーと呼
ばれるキーを1個乃至複数個設け、この機能選択キーと
既存のキーとを組合わせて操作することにより、1つの
キーで複数種のキー入力を可能としていた。
2. Description of the Related Art Conventionally, in most Japanese word processor models, the input is performed by key operation on a keyboard. As the function as a word processor is gradually improved, one or more keys generally called function selection keys are provided in order to execute many various functions with a limited number of keys. By operating the and existing keys in combination, a plurality of types of key inputs can be made with one key.

【0003】しかるに、例えば文書上に図形を作成する
図形モードで表示画面上の任意点位置を指定するなど、
キーボードによるキー操作が比較的苦手とするポインテ
ィング指示等を補助する方法として、近年、キーボード
に加えてペン入力機能を備えたワードプロセッサが商品
化されている。
However, for example, the position of an arbitrary point on the display screen is designated in the graphic mode for creating a graphic on a document.
As a method for assisting a pointing instruction or the like, which is relatively difficult to operate with a keyboard, a word processor having a pen input function in addition to the keyboard has been commercialized in recent years.

【0004】このペン入力機能を備えたワードプロセッ
サでは、表示部の画面上に透明電極によるタブレット入
力部を一体的に構成し、このタブレット上をスタイラス
ペンと呼ばれる専用のペンでポインティング動作あるい
は筆記動作することにより、画面上の任意点位置や表示
した項目を選択入力し、あるいは手書き文字認識を行な
うようにしたものである。
In the word processor having the pen input function, a tablet input section with transparent electrodes is integrally formed on the screen of the display section, and a pointing operation or a writing operation is performed on the tablet with a dedicated pen called a stylus pen. Thus, the position of an arbitrary point on the screen or the displayed item is selected and input, or handwritten character recognition is performed.

【0005】しかるに、上記ペン入力機能を備えたワー
ドプロセッサで作成文書上に図形を作成する場合、上記
スタイラスペンで所望する図形の特徴となる点位置をポ
インティング動作により指示する方法と、所望する図形
そのものを筆記動作により描画する方法とがあった。
However, in the case of creating a figure on a created document by the word processor having the pen input function, a method of instructing a point position which is a characteristic of the desired figure by the stylus pen by a pointing operation, and the desired figure itself. There was a method of drawing by writing action.

【0006】例えば最も簡単な基本図形である直線(線
分)を作成文書上に作成、描画させる場合、上記前者の
方法では、直線の始点位置と終点位置とをポインティン
グ動作により指示し、併せてその直線の線種及び太さ等
を選択指示することで描画がなされる。
For example, when a straight line (line segment), which is the simplest basic figure, is created and drawn on a created document, in the former method, the starting point position and the ending point position of the straight line are designated by a pointing operation, and at the same time, Drawing is performed by selecting and instructing the line type and thickness of the straight line.

【0007】また、上記後者の方法では、直線の始点位
置から終点位置に至るまでを実際に筆記動作し、併せて
その直線の線種及び太さ等を選択指示することで描画が
なされる。
In the latter method, the writing is actually performed from the start point position to the end point position of the straight line, and the line type and thickness of the straight line are selected and instructed to perform drawing.

【0008】[0008]

【発明が解決しようとする課題】しかしながら、特に表
示画面に対してその時点で作成している文書の表示領域
が小さい場合など、上記前者の図形の特徴点位置をポイ
ンティング動作により指示する方法及び上記後者の図形
そのものを筆記動作により描画させる方法のいずれにあ
ってもペンの勢いによりその操作位置が文書の表示領域
を越えてしまうことがあり得る。
However, particularly when the display area of the document being created at that time is small with respect to the display screen, the method of pointing the feature point position of the former figure by the pointing operation and the above method are described. In any of the latter methods of drawing the figure itself by the writing operation, the operation position of the pen may exceed the display area of the document due to the momentum of the pen.

【0009】このような場合、ペン操作を無効として再
度入力操作を実行させるか、あるいはそのまま図形を作
成して文書領域をはみ出した図形部分のみを無効化する
ことが考えられるが、再度入力操作を実行させるもので
は必要な操作が重複するために繁雑なものとなり、ま
た、はみ出した図形部分のみを無効化するものでは所望
する図形が得られず、結局不完全な図形を削除して再度
同様の入力操作をやり直さなければならなくなるという
不具合を生じることとなる。
In such a case, it is conceivable that the pen operation is invalidated and the input operation is executed again, or the graphic is created as it is, and only the graphic portion protruding from the document area is invalidated. The one to be executed becomes complicated because the necessary operations are duplicated, and the one to invalidate only the protruding figure part does not give the desired figure. This causes a problem that the input operation has to be redone.

【0010】本発明は上記のような実情に鑑みてなされ
たもので、その目的とするところは、ポインティングデ
バイスとして特にデジタイザによるペン入力機能を備え
た文書作成装置及び方法において、あやまって文書領域
をはみ出して図形の入力操作を行なってしまった場合で
も、該入力操作を有効に利用して所望する図形を文書領
域内に作成することが可能な文書作成装置及び方法を提
供することにある。
The present invention has been made in view of the above situation, and an object of the present invention is to provide a document creating apparatus and method having a pen input function by a digitizer as a pointing device, in which a document area is intentionally set. It is an object of the present invention to provide a document creating apparatus and method capable of creating a desired figure in a document area by effectively utilizing the input operation even if the figure is pushed out and the figure is input.

【0011】[0011]

【課題を解決するための手段及び作用】すなわち本発明
は、ポインティングデバイスを用いる文書作成方法にお
いて、上記ポインティングデバイスの操作により図形を
筆記入力する入力処理と、この入力処理による入力座標
を文書領域上の座標位置に変換する第1の変換処理と、
この第1の変換処理で得た座標位置が該文書領域外の特
定される範囲を越えているか否か判断する第1の判断処
理と、この第1の判断処理で文書領域外の特定される範
囲を越えていると判断した入力座標を該文書領域内の入
力座標に変換する第2の変換処理と、上記第1及び第2
の変換処理で得た該文書領域外の特定される範囲内の座
標位置系列により筆記入力された図形を認識する図形認
識処理と、この図形認識処理で得られた図形の構成点座
標が該文書領域を越えているか否か判断する第2の判断
処理と、この第2の判断処理で文書領域を越えていると
判断した構成点座標を該文書領域内の座標に変換する第
3の変換処理と、上記第3の変換処理で得られる該文書
領域内の図形を表示する表示処理とを有するようにした
ものである。
That is, according to the present invention, in a document creating method using a pointing device, an input process of writing a figure by operating the pointing device and input coordinates by the input process are written on a document area. A first conversion process for converting to the coordinate position of
A first judgment process for judging whether the coordinate position obtained by the first conversion process exceeds a specified range outside the document region, and the first judgment process identifies the outside of the document region. A second conversion process for converting the input coordinates determined to exceed the range into the input coordinates in the document area, and the first and second conversion processes.
Figure recognition processing for recognizing a figure input by handwriting by a coordinate position sequence within a specified range outside the document area obtained by the conversion processing, and the coordinates of the constituent points of the figure obtained by this figure recognition processing are the document A second determination process for determining whether or not the region is exceeded, and a third conversion process for converting the coordinates of the constituent points determined by the second determination process to be over the document region into the coordinates within the document region. And a display process for displaying a figure in the document area obtained by the third conversion process.

【0012】上記のような方法を採ることにより、あや
まって文書領域をはみ出して図形の入力操作を行なって
しまった場合でも、大きくはみ出してしまった部分は文
書領域内に自動変換し、また小さくはみ出してしまった
部分はそのままの状態で図形認識を行ない、その後には
み出した部分を再度文書領域内に自動変換するようにし
て所望の図形を作成させるため、入力操作を有効に利用
して所望する図形を文書領域内に作成することが可能と
なる。
By adopting the method as described above, even if the document area is accidentally pushed out and the figure input operation is performed, the portion that largely protrudes is automatically converted into the document area, and the portion that protrudes too small. Figure recognition is performed with the part that has been left as it is, and the part that protrudes after that is automatically converted into the document area again to create the desired figure, so the input operation is effectively used to obtain the desired figure. Can be created in the document area.

【0013】[0013]

【実施例】以下本発明を、図形作成機能を搭載した日本
語ワードプロセッサに適用した場合の一実施例について
図面を参照して説明する。図1は全体の回路構成を示す
もので、11はマイクロプロセッサ(CPU)、12は同マ
イクロプロセッサ11によりアクセスされるRAM、13は
同ROMである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment in which the present invention is applied to a Japanese word processor having a graphic creation function will be described below with reference to the drawings. FIG. 1 shows the overall circuit configuration. 11 is a microprocessor (CPU), 12 is a RAM accessed by the microprocessor 11, and 13 is a ROM.

【0014】マイクロプロセッサ(以下CPUと称す)
11は装置全体の制御を行なうもので、上記RAM12及び
ROM13をアクセスして、入力指示に従うプログラムの
起動で、文書作成処理、図形作成処理の1つのとしての
罫線作成処理、各種ガイド表示処理等を実行する。
Microprocessor (hereinafter referred to as CPU)
Reference numeral 11 controls the entire apparatus. Accessing the RAM 12 and the ROM 13 and starting a program according to an input instruction, a ruled line creation process as one of document creation process and figure creation process, various guide display processes, etc. Run.

【0015】RAM12は、作成文書中の文字や制御コー
ド等を記憶するテキストバッファ12a、作成文書中の図
形データの座標位置や線の太さ及び線種等を示す情報を
記憶する図形バッファ12bを始め、行イメ―ジ領域(印
字バッファ)、外字登録領域、語句登録領域などの各制
御情報を記憶する領域からなる。
The RAM 12 includes a text buffer 12a for storing characters and control codes in the created document, and a figure buffer 12b for storing information indicating the coordinate position of the figure data in the created document, the line thickness, the line type, and the like. At the beginning, a line image area (print buffer), an external character registration area, a word / phrase registration area, and other areas for storing control information are formed.

【0016】ROM13は、CPU11の動作を決定するプ
ログラムやキ―入力及びペン入力に伴う語句変換ル―チ
ン、座標変換や図形認識を含む図形作成ルーチンなどの
入力処理プログラム及びその他の処理プログラムを格納
したプログラム領域13aを始め、表示あるいは印字文字
パタ―ン等を記憶する文字パタ―ン領域13b、仮名ある
いはロ―マ字で入力された読みを漢字に変換するための
各種辞書が登録された辞書領域13c等を有している。
The ROM 13 stores a program for determining the operation of the CPU 11, a word conversion routine associated with key input and pen input, an input processing program such as a coordinate creation and a graphic creation routine including graphic recognition, and other processing programs. Including the program area 13a, a character pattern area 13b for storing display or print character patterns, and a dictionary in which various dictionaries for converting kana or romanized readings into kanji are registered. It has a region 13c and the like.

【0017】また、14はキ―ボ―ド、19は表示部である
液晶表示パネル、16は液晶表示パネル19上に一体にして
設けられるタブレット入力部、17はこのタブレット入力
部16上でポインティングあるいは筆記入力を行なうため
のスタイラスペン、22はフロッピィディスク装置(FD
D)、24はプリンタである。
Further, 14 is a keyboard, 19 is a liquid crystal display panel which is a display unit, 16 is a tablet input unit integrally provided on the liquid crystal display panel 19, and 17 is a pointing unit on the tablet input unit 16. Alternatively, a stylus pen for handwriting input, 22 is a floppy disk device (FD
D) and 24 are printers.

【0018】キ―ボ―ド14は、文書作成等に必要な入力
情報をキ―ボ―ドインタフェース(KB−IF)15を介
してCPU11へ入力する。このキ―ボ―ド14には、文字
キ―、カ―ソルキ―等に加えて、これら文字キ―、カ―
ソルキ―等と組合わせて各種機能を実行するための機能
選択キー、語句の変換及び他の選択候補の表示等を指示
するための「変換/次候補」キー、各種機能の実行を指
示するための「選択/実行」キー等を含む各種のファン
クションキ―が設けられる。
The keyboard 14 inputs input information necessary for creating a document or the like to the CPU 11 via a keyboard interface (KB-IF) 15. In addition to the character keys, cursor keys, etc., this keyboard 14 has these character keys and keys.
Function selection key for executing various functions in combination with Solky, etc., "Conversion / next candidate" key for instructing conversion of words and display of other selection candidates, for instructing execution of various functions Various function keys including a "select / execute" key of are provided.

【0019】液晶表示パネル19は、例えば40字×20
行の表示を行なうドットマトリックスタイプの透過型液
晶表示パネルで構成され、その背面側には図示しないバ
ックライト装置を備える。表示コントロ―ラ(表示−C
NT)20は、CPU11の制御の下にVRAM21を用いて
上記テキストバッファ12a、罫線バッファ12bに保持さ
れるデータを重畳した表示データをビットマップ状に展
開しながら液晶表示パネル19の表示制御を行なう。
The liquid crystal display panel 19 is, for example, 40 characters × 20.
It is composed of a dot matrix type transmissive liquid crystal display panel for displaying rows, and a backlight device (not shown) is provided on the back side thereof. Display controller (Display-C
Under the control of the CPU 11, the NT) 20 controls the display of the liquid crystal display panel 19 using the VRAM 21 while expanding the display data in which the data held in the text buffer 12a and the ruled line buffer 12b are superimposed into a bit map. .

【0020】タブレット入力部16は、上記液晶表示パネ
ル19上に一体にして設けられる透明のもので、スタイラ
スペン17とで例えば電磁誘導方式のディジタイザを構成
する。しかるに、液晶表示パネル19画面上のタブレット
入力部16で該スタイラスペン17のポインティング動作あ
るいは筆記動作を行なうと、タブレット入力部16はその
動作位置を例えば120回/秒程度のサンプリング速度
でサンプリングし、得た座標位置に応じたx,y座標デ
ータを発生する。このタブレット入力部16で発生したデ
ータはCPU11の制御の下に入力動作を行なうタブレッ
トコントローラ18内で対応するコードデータに変換さ
れ、CPU11へ送られる。
The tablet input unit 16 is a transparent unit integrally provided on the liquid crystal display panel 19 and constitutes a digitizer of an electromagnetic induction system together with the stylus pen 17. However, when the pointing operation or the writing operation of the stylus pen 17 is performed by the tablet input unit 16 on the screen of the liquid crystal display panel 19, the tablet input unit 16 samples the operating position at a sampling rate of about 120 times / second, X, y coordinate data corresponding to the obtained coordinate position is generated. The data generated by the tablet input section 16 is converted into corresponding code data in the tablet controller 18 which performs an input operation under the control of the CPU 11, and is sent to the CPU 11.

【0021】フロッピィディスク装置22は、ディスクイ
ンタフェース(FDD−IF)23を介してCPU11の制
御の下に、作成された文書を保存したり、外字および第
2水準文字等を記憶する。
The floppy disk device 22 stores a created document and stores external characters and second level characters under the control of the CPU 11 via a disk interface (FDD-IF) 23.

【0022】プリンタ24は、プリンタインタフェース
(PRT−IF)25を介してCPU11の制御の下に、作
成された文書あるいは上記フロッピィディスク装置22か
ら本体内に読込んだ文書情報を印字する。
The printer 24 prints the created document or the document information read into the main body from the floppy disk device 22 under the control of the CPU 11 via the printer interface (PRT-IF) 25.

【0023】次いで上記実施例の動作について説明す
る。図2はスタイラスペン17を用いて液晶表示パネル19
に一体に構成されたタブレット入力部16上で筆記動作を
行なう実行される図形の作成処理を示すものである。こ
こでは、スタイラスペン17の筆記動作1ストロークに際
して、スタイラスペン17の先端がタブレット入力部16に
接触する「ペン先オン」あるいは上記ペン先オンの状態
が継続され実際に筆記による座標データが順次サンプリ
ングされる「ペン先ドラッグ中」の状態と、スタイラス
ペン17の先端がタブレット入力部16から離れる「ペン先
オフ」の状態の2つの状態に対して処理を行なうもので
ある。
Next, the operation of the above embodiment will be described. FIG. 2 shows a liquid crystal display panel 19 using a stylus pen 17.
7 is a diagram showing a process of creating a figure which is executed to perform a writing operation on the tablet input unit 16 which is integrally configured in FIG. Here, in one stroke of the writing operation of the stylus pen 17, the tip of the stylus pen 17 comes into contact with the tablet input unit 16 "pen tip on" or the above pen tip on state is continued and the coordinate data actually written is sequentially sampled. The processing is performed for two states, that is, the “during pen tip dragging” state and the “pen tip off” state in which the tip of the stylus pen 17 moves away from the tablet input unit 16.

【0024】その処理当初には、まず「ペン先オン」あ
るいは「ペン先ドラッグ中」の状態であるか、すなわち
ペン先がオフの状態からオンの状態に変化するか、ある
いはこのオンの状態が継続しているかにより、ペン先の
座標データがサンプリングにより入力されているか否か
を判断する(ステップS1)。
At the beginning of the processing, first, whether the pen tip is on or the pen tip is being dragged, that is, the pen tip changes from the off state to the on state, or the on state is changed. It is determined whether or not the coordinate data of the pen tip is input by sampling depending on whether or not it is continuing (step S1).

【0025】ここで「ペン先オン」あるいは「ペン先ド
ラッグ中」の状態であると判断すると、サンプリングで
入力したペン座標データを上記図形バッファ12bに格納
し(ステップS2)、この格納したペン座標データが作
成している文書領域の中に位置するものであるか否かを
テキストバッファ12aに記憶されている書式情報を参照
して判断する(ステップS3)。
When it is determined that the pen tip is on or the pen tip is being dragged, the pen coordinate data input by sampling is stored in the graphic buffer 12b (step S2), and the stored pen coordinate is stored. It is determined whether or not the data is located within the created document area by referring to the format information stored in the text buffer 12a (step S3).

【0026】ここで、入力したペン座標データが作成文
書の領域内であると判断した場合には問題ないが、領域
を外れていると判断した場合には、さらにその外れた量
が予め設定される一定範囲を越えているか否かを判断し
(ステップS4)、一定範囲を越えている場合にのみ、
領域を外れているペン座標データを作成文書の領域内の
座標データに変換する(ステップS5)。
Here, if it is determined that the input pen coordinate data is within the area of the created document, there is no problem, but if it is determined that the pen coordinate data is outside the area, the amount of deviation is set in advance. It is determined whether or not a certain range is exceeded (step S4), and only when the certain range is exceeded,
The pen coordinate data that is out of the area is converted into the coordinate data in the area of the created document (step S5).

【0027】これは、一般に丸め処理と称されるもの
で、例えば文書領域がx座標及びy座標で表わされる2
点(Xmin,Ymin)(Xmax,Ymax)を対
角とする矩形領域で表わされるものとすると、この文書
領域を外れたペン座標データの座標値をその外れた座標
成分がx座標であれば「Xmin」または「Xmax」
のいずれか近い方に、y座標であれば「Ymin」また
は「Ymax」のいずれか近い方にそれぞれ置換し、上
記図形バッファ12bに格納したペン座標データを書換え
設定するものである。
This is generally called a rounding process. For example, a document area is represented by x and y coordinates.
If a rectangular area having a point (Xmin, Ymin) (Xmax, Ymax) as a diagonal is represented, the coordinate value of the pen coordinate data outside this document area is x coordinate if the coordinate component is outside the coordinate value. Xmin "or" Xmax "
If the y coordinate is closer to any one of the two, the pen coordinate data stored in the graphic buffer 12b is rewritten and set by rewriting to "Ymin" or "Ymax", respectively.

【0028】その後、上記丸め処理の実行の有無に拘ら
ず、図形バッファ12bの当該ペン座標データに応じて液
晶表示パネル19にペンの筆記操作に対応した軌跡を表示
させ(ステップS6)、再び上記ステップS1に至る。
Thereafter, regardless of whether or not the rounding process is performed, the locus corresponding to the writing operation of the pen is displayed on the liquid crystal display panel 19 according to the pen coordinate data of the graphic buffer 12b (step S6), and again the above-mentioned. It reaches step S1.

【0029】このようにステップS1〜S6を繰返し実
行することで、サンプリングにより入力されたペン座標
データが順次図形バッファ12bに格納され、文書領域を
大きく外れたものに対してはその内容が丸め処理により
置換されて、対応する軌跡が表示されることとなる。
By repeating the steps S1 to S6 in this way, the pen coordinate data input by sampling are sequentially stored in the graphic buffer 12b, and the contents are rounded for those that greatly deviate from the document area. Will be replaced and the corresponding locus will be displayed.

【0030】その後、ステップS1で「ペン先オン」及
び「ペン先ドラッグ中」のいずれの状態でもないと判断
されると、次いで「ペン先オフ」の状態となったか否
か、すなわちペン先がオンの状態からオフの状態に変化
し、サンプリングして得られる座標データが途絶えたか
否かを判断する(ステップS7)。
After that, when it is determined in step S1 that neither the "pen tip is on" nor the "pen tip is being dragged" state, then the "pen tip is off" state, that is, the pen tip is It is determined whether or not the coordinate data obtained by sampling changes from the on state to the off state (step S7).

【0031】ここで「ペン先オフ」の状態となったと判
断すると、以上で1ストローク分の筆記入力は終えたこ
ととなるので、図形バッファ12bに格納される上記1ス
トローク分のペン座標データ系列を基に図形認識処理を
行なう(ステップS8)。
If it is determined that the "pen tip is off", it means that the writing input for one stroke has been completed. Therefore, the pen coordinate data series for one stroke stored in the graphic buffer 12b. A graphic recognition process is performed based on (step S8).

【0032】そして、得られた図形データに対して再び
そのいずれかの部分が作成している文書領域の中に位置
するものであるか否かを判断し(ステップS9)、領域
を外れていると判断した場合にのみ、上記図形認識の結
果を考慮し、該領域を外れている図形が領域内に納まる
ように、図形中の特徴を表わす点、例えば頂点位置を上
記丸め処理により置換し、あるいは図形全体を縮小変換
する(ステップS10)。その後、上記ペン入力の軌跡
に代えて認識結果の図形データを図形バッファ12bに書
込み、液晶表示パネル19で表示させて(ステップS1
1)、以上でこの処理を終了して、再び上記ステップS
1からの処理を繰返す。
Then, it is judged again whether any part of the obtained graphic data is located in the created document area (step S9), and it is out of the area. Only when it is determined that the result of the figure recognition is taken into consideration, a point representing a feature in the figure, for example, a vertex position is replaced by the rounding process so that the figure outside the area is contained in the area. Alternatively, the entire figure is reduced and converted (step S10). After that, the graphic data of the recognition result is written in the graphic buffer 12b instead of the locus of the pen input and is displayed on the liquid crystal display panel 19 (step S1).
1), the above process is completed and the above step S
The process from 1 is repeated.

【0033】また、上記ステップS7で「ペン先オフ」
の状態でもないと判断した場合には、次のストロークの
描画を待機すべく、上記ステップS1,S7の処理を繰
返し実行する。
In step S7, "pen tip off"
If it is determined that the state is not also the state of, the processes of steps S1 and S7 are repeatedly executed to wait for the drawing of the next stroke.

【0034】図3(1)は、文書領域を大きく外れたペ
ン座標データが入力された場合の上記ステップS5での
丸め処理を例示するものである。同図中、実線で示すD
Aが2点座標(Xmin,Ymin)(Xmax,Ym
ax)を対角とする矩形領域で表わされる作成中の文書
領域、破線で示すRAがこの文書領域DAから予め一定
の幅をもって規定される予備領域である。図示する如
く、一部がこの文書領域DAだけでなく予備領域RAも
外れるような3点A,B,Cを頂点とする三角形ABC
をスタイラスペン17により筆記入力した場合、外れたC
点を含む図中の破線で示す部分が上記ステップS5での
丸め処理によりD−E−Fで示す線分に置換されて軌跡
表示されることとなる。
FIG. 3A shows an example of the rounding process in the above step S5 when the pen coordinate data largely outside the document area is input. In the figure, the solid line D
A is a two-point coordinate (Xmin, Ymin) (Xmax, Ym
The document area being created, which is represented by a rectangular area whose diagonal is ax), and RA, which is indicated by a broken line, is a preliminary area defined in advance with a constant width from this document area DA. As shown in the figure, a triangle ABC having three points A, B, and C as vertices such that not only the document area DA but also the preliminary area RA is partially deviated.
When stylus pen 17 is used for writing,
By the rounding processing in step S5, the portion including the point indicated by the broken line is replaced with the line segment indicated by D-E-F and displayed as a locus.

【0035】したがって、この軌跡に対応する図形とし
て図3(2)に示すような5点A,B,D,E,Fを頂
点とする五角形ABDEFが図形認識の結果得られ、液
晶表示パネル19で表示されることとなる。
Therefore, as a figure corresponding to this locus, a pentagon ABDEF having five points A, B, D, E and F as vertices as shown in FIG. 3B is obtained as a result of figure recognition, and the liquid crystal display panel 19 is obtained. Will be displayed in.

【0036】また、図4(1)は、文書領域を僅かに外
れたペン座標データが入力された場合の上記ステップS
5での丸め処理を例示するものである。図示する如く、
一部のみがこの文書領域DAを僅かに外れ、予備領域R
Aの範囲内には納まるような3点A,B,Cを頂点とす
る三角形ABCをスタイラスペン17により筆記入力した
場合、外れた部分も許容できる範囲にあるものとして上
記ステップS5での丸め処理は行なわず、三角形ABC
のままで軌跡表示されることとなる。
Further, FIG. 4A shows the above step S when pen coordinate data slightly outside the document area is input.
5 illustrates the rounding process in No. 5. As shown,
Only a part of this area slightly deviates from the document area DA, and the spare area R
When a stylus pen 17 is used to write in a triangle ABC whose vertices are three points A, B, and C that fit within the range of A, the rounding process in step S5 is performed assuming that the misaligned part is also within the allowable range. Not performed, triangle ABC
The locus will be displayed as it is.

【0037】したがって、この軌跡に対応する図形とし
て図4(2)に一部破線で示すような3点A,B,Cを
頂点とする三角形ABCが図形認識の結果得られ、その
後ステップS9で文書領域DAを外れていることを判断
してステップS10の丸め処理により図中に実線で示す
ような3点A,B,C′を頂点とする三角形ABC′が
得られ、液晶表示パネル19で表示されることとなる。
Therefore, as a figure corresponding to this locus, a triangle ABC having three points A, B, and C as vertices as shown by broken lines in FIG. 4B is obtained as a result of figure recognition, and then in step S9. When it is determined that the document area DA is out of alignment, the rounding process in step S10 yields a triangle ABC 'having three points A, B, and C'as vertices as shown by solid lines in the figure, and the liquid crystal display panel 19 displays the triangle ABC'. Will be displayed.

【0038】このように、文書領域を大きく外れる図形
は丸め処理等の処理を予め施してから図形認識を実行
し、反対に僅かに外れるものには図形認識を実行してか
らその認識結果を尊重して丸め処理等を施すことによ
り、ペン入力の筆記操作を無駄に繰返すことなく、文書
領域内に納まる図形を認識し表示させることができる。
As described above, a figure that greatly deviates from the document area is subjected to a rounding process or the like before the figure recognition is performed, and on the contrary, a figure that slightly deviates from the figure is recognized and the recognition result is respected. By performing the rounding process and the like, it is possible to recognize and display the figure that fits in the document area without wastefully repeating the writing operation of the pen input.

【0039】なお、上記実施例では文書領域の外側に一
定の範囲である予備領域を設け、文書領域を越えたペン
座標入力であってもこの予備領域を越えていなければ先
に図形認識を行ない、その後に認識結果を活かして文書
領域内に納めることとしたが、このような予備領域を設
けず、単に文書領域を外れているペン座標入力に関して
は先に文書領域内に納める丸め処理等を施してから図形
認識を行なうようにしたもの、あるいは文書領域を外れ
ているペン座標入力はそのままに先に図形認識を行な
い、その後に認識結果を尊重して文書領域内に納める丸
め処理等を施すようにしたものとしてもよく、これらの
場合は筆記入力から図形表示の処理に要する時間をより
短縮することができる。
In the above embodiment, a preliminary area, which is a certain range, is provided outside the document area, and even if pen coordinate input exceeds the document area, graphic recognition is first performed if the pen coordinate input does not exceed the preliminary area. After that, we decided to use the recognition result to put it in the document area, but we did not provide such a spare area, but for pen coordinate input that is simply outside the document area, we perform a rounding process etc. to put it in the document area first. The shape recognition is performed first, or the pen coordinate input that is out of the document area is first recognized as it is, and then the rounding process is performed to respect the recognition result and put it in the document area. In such a case, the time required from the handwriting input to the graphic display processing can be further shortened.

【0040】[0040]

【発明の効果】以上詳記した如く本発明によれば、あや
まって文書領域をはみ出して図形の入力操作を行なって
しまった場合でも、大きくはみ出してしまった部分は文
書領域内に自動変換し、また小さくはみ出してしまった
部分はそのままの状態で図形認識を行ない、その後には
み出した部分を再度文書領域内に自動変換するようにし
て所望の図形を作成させるため、入力操作を有効に利用
して所望する図形を文書領域内に作成することが可能な
文書作成装置及び方法を提供することができる。
As described above in detail, according to the present invention, even if a user accidentally pushes out a document area and performs a graphic input operation, a portion that largely pushes out is automatically converted into the document area, In addition, the portion that protrudes slightly is recognized as it is, and after that, the portion that protrudes is automatically converted into the document area again to create the desired figure. A document creating apparatus and method capable of creating a desired figure in a document area can be provided.

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

【図1】本発明の一実施例に係る回路構成を示すブロッ
ク図。
FIG. 1 is a block diagram showing a circuit configuration according to an embodiment of the present invention.

【図2】同実施例に係る処理内容を示すフローチャー
ト。
FIG. 2 is a flowchart showing the processing contents according to the embodiment.

【図3】同実施例に係る動作を説明するための図。FIG. 3 is a diagram for explaining the operation according to the embodiment.

【図4】同実施例に係る動作を説明するための図。FIG. 4 is a view for explaining the operation according to the embodiment.

【符号の説明】[Explanation of symbols]

11…マイクロプロセッサ(CPU)、12…RAM、12a
…テキストバッファ、12b…図形バッファ、13…RO
M、13a…プログラム領域、13b…文字パタ―ン領域、
13c…辞書領域、14…キ―ボ―ド、15…キ―ボ―ドイン
タフェース(KB−IF)、16…タブレット入力部、17
…スタイラスペン、18…タブレットコントローラ(タブ
レット−CNT)、19…液晶表示パネル、20…表示コン
トロ―ラ(表示CNT)、21…VRAM、22…フロッピ
ィディスク装置(FDD)、23…ディスクインタフェー
ス(FDD−IF)、24…プリンタ、25…プリンタイン
タフェース。
11 ... Microprocessor (CPU), 12 ... RAM, 12a
… Text buffer, 12b… Graphic buffer, 13… RO
M, 13a ... Program area, 13b ... Character pattern area,
13c ... dictionary area, 14 ... keyboard, 15 ... keyboard interface (KB-IF), 16 ... tablet input section, 17
... Stylus pen, 18 ... Tablet controller (tablet-CNT), 19 ... Liquid crystal display panel, 20 ... Display controller (display CNT), 21 ... VRAM, 22 ... Floppy disk device (FDD), 23 ... Disk interface (FDD) -IF), 24 ... Printer, 25 ... Printer interface.

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 ポインティングデバイスを備えた文書作
成装置において、 上記ポインティングデバイスの操作により図形を筆記入
力する入力手段と、 この入力手段による入力座標を文書領域上の座標位置に
変換する第1の変換手段と、 この第1の変換手段で得た座標位置が該文書領域を越え
ているか否か判断する判断手段と、 この判断手段で文書領域を越えていると判断した入力座
標を該文書領域内の入力座標に変換する第2の変換手段
と、 上記第1及び第2の変換手段で得た該文書領域内の座標
位置系列により筆記入力された図形を認識する図形認識
手段と、 この図形認識手段で得られた該文書領域内の図形を表示
する表示手段とを具備したことを特徴とする文書作成装
置。
1. A document creation apparatus equipped with a pointing device, wherein input means for writing a figure by operating the pointing device, and first conversion for converting input coordinates by this input means into coordinate positions on a document area. Means, judgment means for judging whether or not the coordinate position obtained by the first conversion means exceeds the document area, and input coordinates judged by the judgment means for exceeding the document area within the document area. Second conversion means for converting the input coordinates into the input coordinates, figure recognition means for recognizing the figure written and input by the coordinate position series in the document area obtained by the first and second conversion means, and the figure recognition And a display unit for displaying the figure in the document area obtained by the unit.
【請求項2】 ポインティングデバイスを備えた文書作
成装置において、 上記ポインティングデバイスの操作により図形を筆記入
力する入力手段と、 この入力手段による入力座標を文書領域上の座標位置に
変換する第1の変換手段と、 この第1の変換手段で得た座標位置系列により筆記入力
された図形を認識する図形認識手段と、 この図形認識手段で得られた図形の構成点座標が該文書
領域を越えているか否か判断する判断手段と、 この判断手段で文書領域を越えていると判断した構成点
座標を該文書領域内の座標に変換する第2の変換手段
と、 上記第2の変換手段で得られる該文書領域内の図形を表
示する表示手段とを具備したことを特徴とする文書作成
装置。
2. A document creating apparatus equipped with a pointing device, wherein input means for writing a figure by operating the pointing device and first conversion for converting input coordinates by the input means into coordinate positions on a document area. Means, a graphic recognition means for recognizing a graphic handwritten by the coordinate position series obtained by the first conversion means, and whether the coordinates of the constituent points of the graphic obtained by the graphic recognition means exceed the document area. It is obtained by the judging means for judging whether or not, the second converting means for converting the coordinates of the constituent points, which are judged by the judging means to exceed the document area, into the coordinates within the document area, and the second converting means. A document creating apparatus comprising: a display unit for displaying a graphic in the document area.
【請求項3】 ポインティングデバイスを備えた文書作
成装置において、 上記ポインティングデバイスの操作により図形を筆記入
力する入力手段と、 この入力手段による入力座標を文書領域上の座標位置に
変換する第1の変換手段と、 この第1の変換手段で得た座標位置が該文書領域外の特
定される範囲を越えているか否か判断する第1の判断手
段と、 この第1の判断手段で文書領域外の特定される範囲を越
えていると判断した入力座標を該文書領域内の入力座標
に変換する第2の変換手段と、 上記第1及び第2の変換手段で得た該文書領域外の特定
される範囲内の座標位置系列により筆記入力された図形
を認識する図形認識手段と、 この図形認識手段で得られた図形の構成点座標が該文書
領域を越えているか否か判断する第2の判断手段と、 この第2の判断手段で文書領域を越えていると判断した
構成点座標を該文書領域内の座標に変換する第3の変換
手段と、 上記第3の変換手段で得られる該文書領域内の図形を表
示する表示手段とを具備したことを特徴とする文書作成
装置。
3. A document creating apparatus equipped with a pointing device, wherein input means for writing a figure by operating the pointing device and first conversion for converting input coordinates by the input means into coordinate positions on a document area. Means, first judging means for judging whether or not the coordinate position obtained by the first converting means exceeds a specified range outside the document area, and the first judging means determines whether the coordinate position is outside the document area. Second conversion means for converting input coordinates determined to exceed the specified range into input coordinates in the document area, and specified outside the document area obtained by the first and second conversion means Figure recognition means for recognizing a figure input by handwriting based on a coordinate position sequence within a range, and a second judgment for judging whether or not the coordinates of constituent points of the figure obtained by this figure recognition means exceed the document area. means And third conversion means for converting the coordinates of the constituent points determined by the second determination means to be beyond the document area into coordinates in the document area, and the document area obtained by the third conversion means. And a display means for displaying the figure in the document.
【請求項4】 ポインティングデバイスを用いた文書作
成方法において、 上記ポインティングデバイスの操作により図形を筆記入
力する入力処理と、 この入力処理による入力座標を文書領域上の座標位置に
変換する第1の変換処理と、 この第1の変換処理で得た座標位置が該文書領域を越え
ているか否か判断する判断処理と、 この判断処理で文書領域を越えていると判断した入力座
標を該文書領域内の入力座標に変換する第2の変換処理
と、 上記第1及び第2の変換処理で得た該文書領域内の座標
位置系列により筆記入力された図形を認識する図形認識
処理と、 この図形認識処理で得られた該文書領域内の図形を表示
する表示処理とを有したことを特徴とする文書作成装
置。
4. A document creating method using a pointing device, wherein an input process for writing a figure by operating the pointing device and a first conversion for converting input coordinates by the input process into coordinate positions on a document area. Processing, judgment processing for judging whether the coordinate position obtained by this first conversion processing exceeds the document area, and input coordinates judged by this judgment processing for exceeding the document area within the document area Second conversion processing for converting the input coordinates into the input coordinates, figure recognition processing for recognizing a figure written and input by the coordinate position series in the document area obtained by the first and second conversion processing, and this figure recognition And a display process for displaying a figure in the document area obtained by the process.
【請求項5】 ポインティングデバイスを用いた文書作
成方法において、 上記ポインティングデバイスの操作により図形を筆記入
力する入力処理と、 この入力処理による入力座標を文書領域上の座標位置に
変換する第1の変換処理と、 この第1の変換処理で得た座標位置系列により筆記入力
された図形を認識する図形認識処理と、 この図形認識処理で得られた図形の構成点座標が該文書
領域を越えているか否か判断する判断処理と、 この判断処理で文書領域を越えていると判断した構成点
座標を該文書領域内の座標に変換する第2の変換処理
と、 上記第2の変換処理で得られる該文書領域内の図形を表
示する表示処理とを有したことを特徴とする文書作成方
法。
5. A document creating method using a pointing device, wherein an input process for writing a figure by operating the pointing device and a first conversion for converting input coordinates by this input process into coordinate positions on a document area. Processing, figure recognition processing for recognizing a figure written and input by the coordinate position series obtained by this first conversion processing, and whether the coordinates of the constituent points of the figure obtained by this figure recognition processing exceed the document area It is obtained by the judgment processing for judging whether or not there is a second conversion processing for converting the coordinates of the constituent points, which are judged to exceed the document area by the judgment processing, into the coordinates within the document area, and the second conversion processing. And a display process for displaying a figure in the document area.
【請求項6】 ポインティングデバイスを用いた文書作
成方法において、 上記ポインティングデバイスの操作により図形を筆記入
力する入力処理と、 この入力処理による入力座標を文書領域上の座標位置に
変換する第1の変換処理と、 この第1の変換処理で得た座標位置が該文書領域外の特
定される範囲を越えているか否か判断する第1の判断処
理と、 この第1の判断処理で文書領域外の特定される範囲を越
えていると判断した入力座標を該文書領域内の入力座標
に変換する第2の変換処理と、 上記第1及び第2の変換処理で得た該文書領域外の特定
される範囲内の座標位置系列により筆記入力された図形
を認識する図形認識処理と、 この図形認識処理で得られた図形の構成点座標が該文書
領域を越えているか否か判断する第2の判断処理と、 この第2の判断処理で文書領域を越えていると判断した
構成点座標を該文書領域内の座標に変換する第3の変換
処理と、 上記第3の変換処理で得られる該文書領域内の図形を表
示する表示処理とを有したことを特徴とする文書作成方
法。
6. A method for creating a document using a pointing device, comprising: an input process for writing a figure by operating the pointing device; and a first conversion for converting input coordinates by this input process into coordinate positions on a document area. Processing, a first determination processing for determining whether the coordinate position obtained by the first conversion processing exceeds a specified range outside the document area, and a first determination processing for determining whether the coordinate position outside the document area A second conversion process for converting input coordinates determined to exceed the specified range into input coordinates within the document region; and a specified region outside the document region obtained by the first and second conversion processes. Figure recognition processing for recognizing a figure input by handwriting based on the coordinate position series within the range of the range, and the second judgment for judging whether the coordinates of the constituent points of the figure obtained by this figure recognition processing exceed the document area. processing And a third conversion process for converting the coordinates of the constituent points determined to exceed the document region by the second determination process into the coordinates within the document region, and the document region obtained by the third conversion process. And a display process for displaying the figure in the document.
JP8042794A 1994-04-19 1994-04-19 Device and method for preparing document Pending JPH07287769A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8042794A JPH07287769A (en) 1994-04-19 1994-04-19 Device and method for preparing document

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8042794A JPH07287769A (en) 1994-04-19 1994-04-19 Device and method for preparing document

Publications (1)

Publication Number Publication Date
JPH07287769A true JPH07287769A (en) 1995-10-31

Family

ID=13717987

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8042794A Pending JPH07287769A (en) 1994-04-19 1994-04-19 Device and method for preparing document

Country Status (1)

Country Link
JP (1) JPH07287769A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011070544A (en) * 2009-09-28 2011-04-07 Brother Industries Ltd Processing executing device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011070544A (en) * 2009-09-28 2011-04-07 Brother Industries Ltd Processing executing device
US8922495B2 (en) 2009-09-28 2014-12-30 Brother Kogyo Kabushiki Kaisha Input device with display panel

Similar Documents

Publication Publication Date Title
JPH10510639A (en) Multi pen stroke character set and handwritten document recognition system
JPH1153093A (en) Input device
JPH07287769A (en) Device and method for preparing document
JPH06202794A (en) Information processor of pen input system
JP3085552B2 (en) Character input / cursor instruction determination method in online handwriting input device
JPH0756911A (en) Document preparing device
JPS61121185A (en) Input and output device for character graphic
JP3025152B2 (en) Handwritten character recognition input device
JPH07287768A (en) Document preparing device and graphic processing method
JPH1115918A (en) Handwriting character recognizing device
JPH11345072A (en) Gesture processor and gesture processing method
JP2922068B2 (en) Word processor with character font correction function
JPH03282881A (en) Document preparation device
JPH06149465A (en) Handwriting input device
JPH07287712A (en) Device and method for preparing document
JP3417484B2 (en) Information processing method and apparatus
JP2531502B2 (en) Character processing method
JPH06161689A (en) Document preparing device and print control method
JP2635602B2 (en) Document creation device
JPH04328687A (en) Document preparing device
JPH067309B2 (en) Electronics
JPH06337864A (en) Document generation device and tag control method
JPH0784699A (en) Device and method for preparing document
JPH05324926A (en) Method and device for inputting character
JPH0785031A (en) Document preparing device and display control method