JP2000010962A - Automatic conversion device for horizontal and vertical characters and recording medium - Google Patents
Automatic conversion device for horizontal and vertical characters and recording mediumInfo
- Publication number
- JP2000010962A JP2000010962A JP10172707A JP17270798A JP2000010962A JP 2000010962 A JP2000010962 A JP 2000010962A JP 10172707 A JP10172707 A JP 10172707A JP 17270798 A JP17270798 A JP 17270798A JP 2000010962 A JP2000010962 A JP 2000010962A
- Authority
- JP
- Japan
- Prior art keywords
- character
- characters
- horizontal
- inclination angle
- vertical
- 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.)
- Withdrawn
Links
Landscapes
- Document Processing Apparatus (AREA)
Abstract
(57)【要約】
【課題】横書き文字と縦書き文字との選択を自動的に行
って変換すること。
【解決手段】文字列LSを構成する文字LTについて、
横書き文字と縦書き文字とを自動的に変換する装置であ
って、左から右へ横方向に延びる直線の傾き角度を0度
とした場合の文字LTの傾き角度α及び文字列LSの傾
き角度βを検出し、傾き角度αとβとの差(α−β)を
求め、差(α−β)が負の所定角度A以上であり且つ正
の所定角度B以下である場合に、文字列LSにおける当
該文字LTを横書き文字であると判断し、そうでない場
合に縦書き文字であると判断し、判断に応じて、当該文
字LTに横書き文字又は縦書き文字を割り当てる。
(57) [Summary] [Problem] To automatically select and convert horizontally written characters and vertically written characters. A character LT constituting a character string LS is provided.
A device for automatically converting between horizontally written characters and vertically written characters, wherein the inclination angle α of the character LT and the inclination angle of the character string LS when the inclination angle of a straight line extending horizontally from left to right is set to 0 ° β is detected, and a difference (α−β) between the inclination angles α and β is obtained. When the difference (α−β) is equal to or more than the negative predetermined angle A and equal to or less than the positive predetermined angle B, the character string The character LT in the LS is determined to be a horizontal writing character, otherwise, it is determined to be a vertical writing character, and a horizontal writing character or a vertical writing character is assigned to the character LT according to the determination.
Description
【0001】[0001]
【発明の属する技術分野】本発明は、ワードプロセッサ
などにおける横書き文字と縦書き文字の自動変換装置及
び記録媒体に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an apparatus for automatically converting horizontally written characters and vertically written characters in a word processor or the like and a recording medium.
【0002】近年において、ワードプロセッサは文書の
表現力が飛躍的に向上し、ビジネス及びプライベートの
多くの場面において用いられている。また、作図、表計
算、グラフ作成、数式作成などの種々の機能が搭載さ
れ、文書を主体としたものだけではなく、グラフィック
スを主体としたプレゼンテーション資料又はポップアー
トによる広告や資料の作成など、幅広い用途に用いられ
ている。In recent years, word processors have dramatically improved the expressiveness of documents, and have been used in many business and private situations. In addition, it is equipped with various functions such as drawing, spreadsheet, graph creation, formula creation, etc., not only for documents mainly, but also for presentation materials mainly for graphics or advertisement and materials creation by pop art, etc. Used for a wide range of applications.
【0003】このような表現力及び機能の向上に対応し
て、文字の入力についてもより一層の効率化が望まれ
る。[0003] In response to such improvements in expressiveness and functions, it is desired to further improve the efficiency of character input.
【0004】[0004]
【従来の技術】従来より、ワードプロセッサで入力可能
な文字の種類として、横書き文字と縦書き文字とが存在
する。これらは、例えば、読点、句点、、拗音、長音な
どのように、文字列を横書きにした場合と横書きにした
場合とによって、フォントマトリクス中における文字の
位置又は向きが相違する。2. Description of the Related Art Conventionally, there are horizontal writing characters and vertical writing characters as types of characters that can be input by a word processor. For example, the position or orientation of the character in the font matrix differs depending on whether the character string is written horizontally or horizontally, such as reading marks, punctuation marks, murmurs, long sounds, and the like.
【0005】従来においては、横書き文字又は縦書き文
字のいずれかの選択を、操作者が選択のためのキー操作
を行うことによって手動で行っている。例えば、操作者
が文字の読みを入力した後、変換キーを適当な回数だけ
押下することによって横書き文字又は縦書き文字を表示
させ、望みの文字が現れたところで操作者が確定キーを
押下して確定させる。又は、操作者が文字の読みを入力
したときに最初に横書き文字を表示し、もし縦書き文字
が必要である場合には操作者がキー操作を行うことによ
って縦書き文字をウインドウに表示し、その中から必要
な文字を操作者に選択させる。Conventionally, selection of either horizontal writing characters or vertical writing characters is manually performed by an operator performing key operations for selection. For example, after the operator inputs the reading of characters, the horizontal key or vertical key is displayed by pressing the conversion key an appropriate number of times, and when the desired character appears, the operator presses the enter key. determine. Or, when the operator inputs the reading of the character, the horizontal character is displayed first, and if the vertical character is necessary, the vertical character is displayed in the window by performing the key operation by the operator, The operator is allowed to select a required character from among them.
【0006】いずれにしても、ワードプロセッサは、操
作者の選択に応じて、入力された文字を横書き文字又は
縦書き文字のいずれかに変換する。In any case, the word processor converts the input characters into either horizontal writing characters or vertical writing characters in accordance with the operator's selection.
【0007】[0007]
【発明が解決しようとする課題】上述のように、従来に
おいては、操作者が文字の読みを入力した後に、横書き
文字又は縦書き文字のいずれかの選択のためのキー操作
を行っているため、操作性の点で効率が悪かった。As described above, in the prior art, after an operator inputs a reading of a character, a key operation for selecting either a horizontal writing character or a vertical writing character is performed. However, efficiency was low in terms of operability.
【0008】また、文字列が横方向又は縦方向のみでな
く、ポップアートにおけるように斜め方向にも並ぶ場合
には、その斜め方向の角度によっていずれを選択すれば
よいか迷うこともあり、この点においても操作性の問題
があった。When character strings are arranged not only in the horizontal or vertical direction but also in an oblique direction as in pop art, it may be unclear which one to select depending on the angle in the oblique direction. There was also a problem of operability in this respect.
【0009】本発明は、上述の問題に鑑みてなされたも
ので、横書き文字と縦書き文字との選択を自動的に行っ
て変換する装置及び記録媒体を提供することを目的とす
る。SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and has as its object to provide an apparatus and a recording medium for automatically selecting and converting between horizontally written characters and vertically written characters.
【0010】[0010]
【課題を解決するための手段】請求項1の発明に係る装
置は、文字列LSを構成する文字LTについて、横書き
文字と縦書き文字とを自動的に変換する装置であって、
左から右へ横方向に延びる直線の傾き角度を0度とした
場合の前記文字LTの傾き角度α及び前記文字列LSの
傾き角度βを検出する手段と、前記傾き角度αとβとの
差(α−β)を求める手段と、前記差(α−β)が負の
所定角度A以上であり且つ正の所定角度B以下である場
合に、前記文字列LSにおける当該文字を横書き文字で
あると判断し、そうでない場合に縦書き文字であると判
断する手段と、前記判断に応じて、当該文字に横書き文
字又は縦書き文字を割り当てる手段と、を有してなる。According to a first aspect of the present invention, there is provided an apparatus for automatically converting between horizontal writing characters and vertical writing characters for a character LT constituting a character string LS,
Means for detecting the inclination angle α of the character LT and the inclination angle β of the character string LS when the inclination angle of a straight line extending in the horizontal direction from left to right is set to 0 degree, and the difference between the inclination angles α and β Means for determining (α-β), and when the difference (α-β) is equal to or greater than the negative predetermined angle A and equal to or less than the positive predetermined angle B, the character in the character string LS is a horizontal character. And means for judging that the character is a vertical writing character otherwise, and means for assigning a horizontal writing character or a vertical writing character to the character in accordance with the determination.
【0011】請求項2の発明に係る装置では、前記前記
文字列LSの傾き角度βとして、当該文字LTの基準座
標位置SPと次の文字LTの基準座標位置SPとを結ぶ
直線の傾き角度を用いる。In the apparatus according to the present invention, the inclination angle β of the character string LS is the inclination angle of a straight line connecting the reference coordinate position SP of the character LT and the reference coordinate position SP of the next character LT. Used.
【0012】請求項3の発明に係る装置では、前記所定
角度Aが−45度であり、前記所定角度Bが45度であ
る。請求項4の発明に係る記録媒体は、文字列LSを構
成する文字LTについて、横書き文字と縦書き文字とを
自動的に変換するためのプログラムを記録した記録媒体
であって、左から右へ横方向に延びる直線の傾き角度を
0度とした場合の前記文字LTの傾き角度α及び前記文
字列LSの傾き角度βを検出する機能と、前記傾き角度
αとβとの差(α−β)を求める機能と、前記差(α−
β)が負の所定角度A以上であり且つ正の所定角度B以
下である場合に、前記文字列LSにおける当該文字LT
を横書き文字であると判断し、そうでない場合に縦書き
文字であると判断する機能と、前記判断に応じて、当該
文字に横書き文字又は縦書き文字を割り当てる機能と、
をコンピュータに実現させるためのプログラムを記録し
たコンピュータ読み取り可能な記録媒体である。In the apparatus according to the third aspect of the present invention, the predetermined angle A is -45 degrees, and the predetermined angle B is 45 degrees. A recording medium according to a fourth aspect of the present invention is a recording medium that stores a program for automatically converting between horizontal writing characters and vertical writing characters for characters LT forming a character string LS, from left to right. A function of detecting the inclination angle α of the character LT and the inclination angle β of the character string LS when the inclination angle of the straight line extending in the horizontal direction is set to 0 degree, and the difference between the inclination angles α and β (α−β ) And the difference (α−
β) is equal to or greater than the negative predetermined angle A and equal to or less than the positive predetermined angle B, the character LT in the character string LS
A function that determines that the character is a horizontal writing character, otherwise determines that the character is a vertical writing character, and according to the determination, a function that assigns a horizontal writing character or a vertical writing character to the character,
Is a computer-readable recording medium on which a program for causing a computer to realize the above is recorded.
【0013】本発明に係る装置は、例えばパーソナルコ
ンピュータ又はワークステーションを用いて実現され
る。本発明に係る装置を実現するためのプログラムは、
半導体メモリ、ハードディスク、CD−ROM、フロッ
ピーディスク、又は光磁気ディスクなどの記録媒体に格
納される。記録媒体に格納されたプログラムは、主メモ
リ上に適時ローディングされ、処理装置によって実行さ
れる。その際に、CD−ROMドライブ、フロッピーデ
ィスクドライブ、又は光磁気ディスクドライブなどのド
ライブ装置が必要に応じて用いられる。記録媒体がネッ
トワークなどの通信回線で結ばれたサーバに設けられて
いる場合には、通信回線を介してサーバからプログラム
が読み取られ又はダウンロードされる。また、プログラ
ムが通信回線を介して処理装置に転送される場合には、
通信回線自体も記録媒体に相当する。プログラムは、種
々のOS、プラットホーム、システム環境、又はネット
ワーク環境の下で動作するように供給可能である。The apparatus according to the present invention is realized using, for example, a personal computer or a workstation. A program for realizing the device according to the present invention includes:
It is stored in a recording medium such as a semiconductor memory, a hard disk, a CD-ROM, a floppy disk, or a magneto-optical disk. The program stored in the recording medium is loaded on the main memory as appropriate and executed by the processing device. At that time, a drive device such as a CD-ROM drive, a floppy disk drive, or a magneto-optical disk drive is used as necessary. When the recording medium is provided in a server connected by a communication line such as a network, the program is read or downloaded from the server through the communication line. When the program is transferred to the processing device via a communication line,
The communication line itself also corresponds to a recording medium. The programs can be supplied to operate under various OSs, platforms, system environments, or network environments.
【0014】[0014]
【発明の実施の形態】図1は本発明に係る自動変換装置
を用いたコンピュータシステム1の構成を示すブロック
図、図2はワードプロセッサWPの機能を示すブロック
図である。なお、以下において、ワードプロセッサWP
の機能によって作成されたファイルを「文書」と記載す
る。「文書」には、テキストデータ、イメージデータ、
制御データ、及びその他の種々のデータを含めることが
可能である。FIG. 1 is a block diagram showing a configuration of a computer system 1 using an automatic conversion device according to the present invention, and FIG. 2 is a block diagram showing functions of a word processor WP. In the following, the word processor WP
The file created by the function is described as a “document”. "Document" includes text data, image data,
Control data and various other data can be included.
【0015】図1において、コンピュータシステム1
は、処理装置10、磁気ディスク装置11、フロッピー
ディスク装置12、CDーROM装置13、表示装置1
4、プリンタ装置15、キーボード16、及びマウス1
7などから構成される。In FIG. 1, a computer system 1
Are a processing device 10, a magnetic disk device 11, a floppy disk device 12, a CD-ROM device 13, and a display device 1.
4, printer device 15, keyboard 16, and mouse 1
7 and the like.
【0016】処理装置10には、図示しないCPU(中
央処理装置)、メモリ、モデム、音源、種々のインタフ
ェース回路、及びその他の周辺回路などが内蔵されてい
る。メモリとして、BIOSなどを格納したROM、メ
インメモリ又はキャッシュメモリとして用いられるRA
M、及びビデオRAMなどが含まれる。The processing unit 10 includes a CPU (central processing unit), a memory, a modem, a sound source, various interface circuits, and other peripheral circuits (not shown). As a memory, a ROM storing a BIOS or the like, an RA used as a main memory or a cache memory.
M and a video RAM.
【0017】磁気ディスク装置11には、各種OS、各
種デバイス・ドライバー、ワープロソフトを始めとする
種々のアプリケーションプログラム、本発明に係る自動
変換装置を実現するためのプログラム、及びその他の種
々のプログラム及びデータが格納されている。それらの
プログラム又はデータは適時メインメモリにロードされ
る。The magnetic disk device 11 includes various OSs, various device drivers, various application programs including word processing software, a program for realizing the automatic conversion apparatus according to the present invention, and various other programs and programs. Data is stored. Those programs or data are loaded into the main memory at appropriate times.
【0018】フロッピーディスク装置12及びCDーR
OM装置13には、それぞれに対応する記録媒体がセッ
トされ、プログラム又はデータの読み書きなどが適時行
われる。Floppy disk drive 12 and CD-R
Recording media corresponding to the respective OM devices 13 are set, and reading or writing of programs or data is performed as appropriate.
【0019】表示装置14は、入力され又は編集された
文字、文字列、線画、及びグラフィックス、その他の種
々の画像を表示面HGに表示する。プリンタ装置15
は、表示面HGに表示された内容、その他の種々のデー
タ又は画像を、指令に応じて印字する。キーボード16
及びマウス17は、文字、文字列、線画などの種々のデ
ータを入力し、又は種々の指令を入力するために用いら
れる。The display device 14 displays input or edited characters, character strings, line drawings, graphics, and various other images on the display surface HG. Printer device 15
Prints the content displayed on the display surface HG and other various data or images in accordance with the command. Keyboard 16
The mouse 17 is used to input various data such as characters, character strings, and line drawings, or to input various commands.
【0020】処理装置10は、プログラムが実行される
ことなどによってワードプロセッサWPとして機能す
る。ワードプロセッサWPには、かな漢字変換部31、
編集部32、縦横検出部33、フォント部34、及び文
書格納部35が設けられる。The processing device 10 functions as a word processor WP by executing a program. The word processor WP has a kana-kanji conversion unit 31,
An editing unit 32, a vertical and horizontal detection unit 33, a font unit 34, and a document storage unit 35 are provided.
【0021】かな漢字変換部31は、フォント部34を
参照し、キーボード16から入力された文字の読みをか
な混じりの漢字に変換し、変換された文字又は文字列な
どからなる文書を作成する。その際に、縦横検出部33
からの縦横情報DF1に基づいて、それぞれの文字を横
書き文字又は縦書き文字のいずれかに自動的に変換す
る。作成された文書は、文書格納部35に一時的に格納
される。The kana-kanji conversion section 31 refers to the font section 34, converts the reading of characters input from the keyboard 16 into kana-mixed kanji, and creates a document composed of the converted characters or character strings. At this time, the vertical / horizontal detecting unit 33
Automatically converts each character into either a horizontal writing character or a vertical writing character based on the vertical and horizontal information DF1. The created document is temporarily stored in the document storage unit 35.
【0022】編集部32は、一旦作成された文書を表示
面HGに表示し、キーボード16及びマウス17からの
指令に基づいて種々の編集を行う。編集の際において
も、縦横検出部33からの縦横情報DF1に基づいて、
それぞれの文字を横書き文字又は縦書き文字のいずれか
に自動的に変換する。The editing unit 32 displays the document once created on the display surface HG, and performs various editing based on commands from the keyboard 16 and the mouse 17. Also at the time of editing, based on the vertical and horizontal information DF1 from the vertical and horizontal detection unit 33,
Automatically convert each character to either horizontal or vertical.
【0023】縦横検出部33は、入力された文字につい
て、その文字及び文字列の傾き角度に基づいて、横書き
文字であるか又は縦書き文字であるかを判定してその結
果である縦横情報DF1を出力する。The vertical / horizontal detecting unit 33 determines whether the input character is a horizontal writing character or a vertical writing character based on the inclination angle of the character and the character string, and obtains the vertical / horizontal information DF1 as a result. Is output.
【0024】フォント部34には、種々の書体について
のフォントが格納されている。横書き文字と縦書き文字
とがある文字については、両方のフォントが格納されて
いる。文書格納部35には、作成され又は編集された文
書が格納される。The font section 34 stores fonts for various typefaces. For characters having horizontal writing characters and vertical writing characters, both fonts are stored. The document storage unit 35 stores the created or edited document.
【0025】図3は横書き文字HL及び縦書き文字LL
の例を示す図、図4及び図5は文字列LSの傾きの例を
示す図、図6は文字列LSの傾きの検出方法を説明する
図である。FIG. 3 shows horizontal writing characters HL and vertical writing characters LL.
FIGS. 4 and 5 are diagrams illustrating examples of the inclination of the character string LS, and FIG. 6 is a diagram illustrating a method of detecting the inclination of the character string LS.
【0026】図3に示すように、横書き文字HL1〜4
と縦書き文字LL1〜4とは、文字自体の形状は同じで
あるか又は近似しているが、フォントマトリクス中にお
ける文字の位置又は向きが相違する。As shown in FIG. 3, horizontally written characters HL1 to HL4
The vertical writing characters LL1 to LL4 have the same or similar shapes of the characters themselves, but differ in the position or orientation of the characters in the font matrix.
【0027】図4において、「ワードプロセッサ」の文
字列LS1〜6が示されている。文字列LS1は、全体
として左から右へ横方向(水平方向)に延びており、こ
の場合の傾き角度βを0度とする。傾き角度βは、左回
り方向(反時計回り方向)に計測する。但し、0度≦β
≦360度とする。そうすると、文字列LS2は、傾き
角度βが約45度、文字列LS3は傾き角度βが約80
度である。また、文字列LS4,5,6は、傾き角度β
がそれぞれ、約330度,約300度,約270度であ
る。FIG. 4 shows character strings LS1 to LS6 of "word processor". The character string LS1 extends in the horizontal direction (horizontal direction) from left to right as a whole, and the inclination angle β in this case is 0 degree. The inclination angle β is measured in the counterclockwise direction (counterclockwise direction). Where 0 degrees ≦ β
≤ 360 degrees. Then, the character string LS2 has an inclination angle β of about 45 degrees, and the character string LS3 has an inclination angle β of about 80 degrees.
Degrees. In addition, the character strings LS4, 5, 6 have the inclination angle β
Are about 330 degrees, about 300 degrees, and about 270 degrees, respectively.
【0028】また、図4に示す文字列LS1〜6におい
て、「ー」「ッ」の文字を除いて、いずれも横書き文字
HLが用いられている。「ー」及び「ッ」の文字は、文
字列LSの傾き角度β(これは実は後述するようにそれ
ぞれの文字の傾き角度βである)に応じて、横書き文字
HL又は縦書き文字LLが用いられている。Further, in the character strings LS1 to LS6 shown in FIG. 4, the horizontal writing characters HL are used except for the characters "-" and "tsu". The characters "-" and "tsu" use the horizontal writing character HL or the vertical writing character LL depending on the inclination angle β of the character string LS (this is actually the inclination angle β of each character as described later). Have been.
【0029】図5において、文字列LS7,8,9のそ
れぞれの傾き角度βは、90度、180度、270度で
ある。図6(A)において、「ワードプロセッサ」とい
う8つ文字LT1〜8からなる文字列LS11が示され
ている。各文字LT1〜8において、そのフォントマト
リクスの左下端の点がそれぞれの基準座標位置SPであ
る。上に述べた文字列LSの傾き角度βは、厳密には各
文字LTについて定義される。つまり、それぞれの文字
LTについて、その文字LTの基準座標位置SPと次の
文字LTの基準座標位置SPとを結ぶ直線の水平線に対
する傾き角度として定義される。最後端の文字LTにつ
いては、その1つ前の文字との間に結ばれる直線に基づ
いて傾き角度βが決定される。In FIG. 5, the inclination angles β of the character strings LS7, LS8, and LS9 are 90 degrees, 180 degrees, and 270 degrees. FIG. 6A shows a character string LS11 composed of eight characters LT1 to 8 called "word processor". In each of the characters LT1 to LT8, the lower left point of the font matrix is the respective reference coordinate position SP. The above-described inclination angle β of the character string LS is strictly defined for each character LT. That is, for each character LT, it is defined as the inclination angle of the straight line connecting the reference coordinate position SP of the character LT and the reference coordinate position SP of the next character LT with respect to the horizontal line. For the last character LT, the inclination angle β is determined based on a straight line connected to the immediately preceding character LT.
【0030】また、各文字LTについて、文字自体の傾
き角度αが定義される。傾き角度αは、文字LTのフォ
ントマトリクスの下辺と水平線とのなす角度であり、左
回り方向(反時計回り方向)に計測する。For each character LT, a tilt angle α of the character itself is defined. The inclination angle α is an angle between the lower side of the font matrix of the character LT and the horizontal line, and is measured in the counterclockwise direction (counterclockwise direction).
【0031】図6(A)に示す文字LT1〜8は、傾き
角度α,βがともにいずれも0度である。図6(B)に
示す文字列LS12においては、各文字LT1〜3の傾
き角度αはいずれも0度であり、傾き角度βはいずれも
約20度である。図6(C)に示す文字列LS13にお
いては、各文字LT1〜5の傾き角度α,βがいずれも
異なる。In the characters LT1 to LT8 shown in FIG. 6A, both the inclination angles α and β are 0 degrees. In the character string LS12 shown in FIG. 6B, the inclination angle α of each of the characters LT1 to LT3 is 0 degree, and the inclination angle β is about 20 degrees. In the character string LS13 shown in FIG. 6C, the inclination angles α and β of the characters LT1 to LT5 are all different.
【0032】入力される文字LTについて、その傾き角
度α,βは、フォントの配置角度及び配置位置などから
検出することが可能である。縦横検出部33において
は、これらの傾き角度α,βに基づいて、横書き文字で
あるか又は縦書き文字であるかが判定される。その判定
に当たっては、A及びBを所定角度として、次の(1)
式、 A≦(α−β)≦B ……(1) の条件を満たす場合に、その文字LTを横書き文字HL
であるとし、条件を満たさない場合に、その文字LTを
縦書き文字LLであるとする。この判定結果が、縦横情
報DF1として出力される。For the input characters LT, the inclination angles α and β can be detected from the arrangement angle and arrangement position of the font. The vertical / horizontal detecting unit 33 determines whether the character is a horizontal writing character or a vertical writing character based on these inclination angles α and β. In making the determination, A and B are set to predetermined angles, and the following (1)
When the condition of A ≦ (α−β) ≦ B (1) is satisfied, the character LT is replaced with the horizontal writing character HL.
If the condition is not satisfied, the character LT is assumed to be a vertical writing character LL. This determination result is output as vertical and horizontal information DF1.
【0033】なお、図4に示す文字列LS1〜6におい
て、文字LT32,37,52,57,62,67は縦
書き文字LLであると判定され、縦書き文字LLが用い
られている。図5に示す文字列LS1,7〜9において
は、いずれの文字LTも横書き文字HLであると判定さ
れ、横書き文字HLが用いられている。In the character strings LS1 to LS6 shown in FIG. 4, the characters LT32, 37, 52, 57, 62, and 67 are determined to be vertical writing characters LL, and the vertical writing characters LL are used. In the character strings LS1, 7 to 9 shown in FIG. 5, all the characters LT are determined to be horizontal writing characters HL, and the horizontal writing characters HL are used.
【0034】なお、上の例では、所定角度Aが−45度
とされ、所定角度Bが45度とされている。しかし、所
定角度A,Bを種々変更することが可能である。例え
ば、所定角度AとBの組み合わせを、−50と50、−
40と40、−35と55、−60と55、又はその他
の角度とすることが可能である。また、(1)式におけ
る不等号は、等号を削除したものを用いることも可能で
ある。In the above example, the predetermined angle A is -45 degrees and the predetermined angle B is 45 degrees. However, the predetermined angles A and B can be variously changed. For example, the combination of the predetermined angles A and B is defined as -50 and 50,-
40 and 40, -35 and 55, -60 and 55, or other angles. Further, as the inequality sign in the equation (1), the elimination sign can be used.
【0035】次に、ワードプロセッサWPの処理動作に
ついて、フローチャートを参照して説明する。図7はワ
ードプロセッサWPの全体の処理を示すフローチャー
ト、図8は縦横変換処理を示すフローチャートである。Next, the processing operation of the word processor WP will be described with reference to a flowchart. FIG. 7 is a flowchart showing the overall processing of the word processor WP, and FIG. 8 is a flowchart showing the vertical / horizontal conversion processing.
【0036】図7において、文字LTが入力され(#1
1)、変換指令が入力されると(#12)、縦横変換の
必要な文字LTである場合に(#13でイエス)、縦横
変換処理が行われる(#14)、縦横変換の必要でない
場合には、必要に応じて漢字変換が行われる(#1
5)。In FIG. 7, a character LT is input (# 1).
1) When a conversion command is input (# 12), if the character LT needs vertical / horizontal conversion (Yes in # 13), vertical / horizontal conversion processing is performed (# 14), and vertical / horizontal conversion is not required Is converted to kanji if necessary (# 1
5).
【0037】図8において、縦横変換処理においては、
文字LT及び文字列LSの傾き角度α,βが検出される
(#21)。上の(1)式を満たすか否かによって(#
22)、縦書き文字LLを割当て(#23)、又は横書
き文字HLを割当てる(#24)。In FIG. 8, in the vertical / horizontal conversion process,
The inclination angles α and β of the character LT and the character string LS are detected (# 21). Depending on whether the above equation (1) is satisfied or not (#
22), a vertical writing character LL is allocated (# 23), or a horizontal writing character HL is allocated (# 24).
【0038】図9は横書き文字と縦書き文字とを自動的
に変換するためのプログラムを記録した記録媒体STの
形態を示す図である。図9に示すように、処理装置PS
に設けられた主メモリ、RAM、ROM、若しくはハー
ドディスクなどの記憶装置STA、CD−ROM、フロ
ッピーディスク、若しくは光磁気ディスクなどの可搬媒
体STB、ネットワーク若しくは通信回線STDで結ば
れたサーバ若しくはDASDなどの回線先媒体STC、
又は通信回線STDそれ自体が、記録媒体STとして利
用可能である。FIG. 9 is a diagram showing a form of a recording medium ST on which a program for automatically converting horizontally written characters and vertically written characters is recorded. As shown in FIG.
Storage device STA such as a main memory, a RAM, a ROM, or a hard disk, a portable medium STB such as a CD-ROM, a floppy disk, or a magneto-optical disk, a server connected to a network or a communication line STD, or a DASD. Line destination medium STC,
Alternatively, the communication line STD itself can be used as the recording medium ST.
【0039】記録媒体STが可搬媒体STBである場合
には、プログラムは可搬媒体STBの種類に対応するド
ライブ装置によって読み出され、処理装置PSの記憶装
置STAに格納され又は主メモリ上にローディングさ
れ、実行される。記録媒体STが回線先媒体STCであ
る場合には、プログラムは通信回線STDを介して記憶
装置STAにダウンロードされ、又は適時転送されて実
行される。プログラムは、種々のOS、プラットホー
ム、システム環境、又はネットワーク環境の下で動作す
るように供給可能である。When the recording medium ST is a portable medium STB, the program is read by a drive device corresponding to the type of the portable medium STB and stored in the storage device STA of the processing device PS or stored in the main memory. Loaded and executed. When the recording medium ST is the line destination medium STC, the program is downloaded to the storage device STA via the communication line STD, or is transferred and executed at appropriate times. The programs can be supplied to operate under various OSs, platforms, system environments, or network environments.
【0040】上述のコンピュータシステム1によると、
ワードプロセッサWPとして用いた場合に、キーボード
16から入力された文字LTに対して横書き文字HLと
縦書き文字LLとの判定が自動的に行われ、判定結果に
基づいて横書き文字HL又は縦書き文字LLのいずれか
が自動的に選択される。したがって、操作性が極めて良
好であり、効率が良い。According to the computer system 1 described above,
When used as a word processor WP, the character LT input from the keyboard 16 is automatically determined to be a horizontal writing character HL or a vertical writing character LL, and the horizontal writing character HL or the vertical writing character LL is determined based on the determination result. Is automatically selected. Therefore, the operability is extremely good and the efficiency is good.
【0041】上述の実施例においては、読みを入力して
かな混じりの漢字に変換するワードプロセッサWPに本
発明を適用した例を説明したが、本発明は、漢字変化を
行わないワードプロセッサにも適用できる。また、ワー
ドプロセッサWPの他に、CAD、表計算ソフトなど、
文字の入力をともなう種々の処理又は装置に適用可能で
ある。また、ワードプロセッサなどの他の機能とは分離
して、縦横情報DF1を出力する独立したパッケージと
しても適用可能である。In the above-described embodiment, an example has been described in which the present invention is applied to the word processor WP for inputting a reading and converting it into kanji mixed with kana. However, the present invention can also be applied to a word processor which does not change kanji. . In addition to the word processor WP, CAD, spreadsheet software, etc.
The present invention can be applied to various processes or devices involving input of characters. Further, the present invention can be applied as an independent package that outputs the vertical / horizontal information DF1 separately from other functions such as a word processor.
【0042】上述の実施形態において、コンピュータシ
ステム1及びワードプロセッサWPの構成、処理内容、
処理順序、動作タイミングなどは、本発明の趣旨に応じ
て適宜変更することが可能である。In the above-described embodiment, the configurations and processing contents of the computer system 1 and the word processor WP
The processing order, operation timing, and the like can be appropriately changed according to the purpose of the present invention.
【0043】[0043]
【発明の効果】本発明によると、横書き文字と縦書き文
字との選択を自動的に行って変換することができ、操作
性が向上する。According to the present invention, horizontal writing characters and vertical writing characters can be automatically selected and converted, thereby improving operability.
【図1】本発明に係る自動変換装置を用いたコンピュー
タシステムの構成を示すブロック図である。FIG. 1 is a block diagram showing a configuration of a computer system using an automatic conversion device according to the present invention.
【図2】ワードプロセッサの機能を示すブロック図であ
る。FIG. 2 is a block diagram illustrating functions of a word processor.
【図3】横書き文字及び縦書き文字の例を示す図であ
る。FIG. 3 is a diagram illustrating examples of horizontal writing characters and vertical writing characters.
【図4】文字列の傾きの例を示す図である。FIG. 4 is a diagram illustrating an example of inclination of a character string.
【図5】文字列の傾きの例を示す図である。FIG. 5 is a diagram illustrating an example of inclination of a character string.
【図6】文字列の傾きの検出方法を説明する図である。FIG. 6 is a diagram illustrating a method of detecting the inclination of a character string.
【図7】ワードプロセッサの全体の処理を示すフローチ
ャートである。FIG. 7 is a flowchart showing the entire processing of the word processor.
【図8】縦横変換処理を示すフローチャートである。FIG. 8 is a flowchart showing a vertical / horizontal conversion process.
【図9】本発明に係るプログラムを記録した記録媒体の
形態を示す図である。FIG. 9 is a diagram showing a form of a recording medium on which a program according to the present invention is recorded.
1 コンピュータシステム 33 縦横検出部 WP ワードプロセッサ(自動変換装置) LT 文字 LS 文字列 HL 横書き文字 LL 縦書き文字 SP 基準座標位置 STA,STB,STC,STD 記録媒体 1 Computer System 33 Vertical and Horizontal Detector WP Word Processor (Automatic Converter) LT Character LS Character String HL Horizontal Character LL Vertical Character SP Reference Coordinate Position STA, STB, STC, STD Recording Medium
Claims (4)
字と縦書き文字とを自動的に変換する装置であって、 左から右へ横方向に延びる直線の傾き角度を0度とした
場合の前記文字の傾き角度α及び前記文字列の傾き角度
βを検出する手段と、 前記傾き角度αとβとの差(α−β)を求める手段と、 前記差(α−β)が負の所定角度A以上であり且つ正の
所定角度B以下である場合に、前記文字列における当該
文字を横書き文字であると判断し、そうでない場合に縦
書き文字であると判断する手段と、 前記判断に応じて、当該文字に横書き文字又は縦書き文
字を割り当てる手段と、 を有してなることを特徴とする横書き文字と縦書き文字
の自動変換装置。An apparatus for automatically converting between horizontal writing characters and vertical writing characters for characters constituting a character string, wherein the inclination angle of a straight line extending horizontally from left to right is set to 0 degree. Means for detecting the inclination angle α of the character and the inclination angle β of the character string; means for calculating the difference (α-β) between the inclination angles α and β; When the angle is equal to or greater than the angle A and equal to or less than the positive predetermined angle B, the character in the character string is determined to be a horizontal writing character, and otherwise, the character is determined to be a vertical writing character. Means for allocating a horizontally written character or a vertically written character to the character according to the above. An automatic conversion device for horizontally written characters and vertically written characters, comprising:
文字の基準座標位置と次の文字の基準座標位置とを結ぶ
直線の傾き角度を用いる、 請求項1記載の横書き文字と縦書き文字の自動変換装
置。2. A horizontally written character and a vertically written character according to claim 1, wherein an inclination angle of a straight line connecting a reference coordinate position of the character and a reference coordinate position of a next character is used as the inclination angle β of the character string. Automatic conversion device.
定角度Bが45度である、 請求項1又は請求項2記載の横書き文字と縦書き文字の
自動変換装置。3. The apparatus according to claim 1, wherein the predetermined angle A is −45 degrees, and the predetermined angle B is 45 degrees.
字と縦書き文字とを自動的に変換するためのプログラム
を記録した記録媒体であって、 左から右へ横方向に延びる直線の傾き角度を0度とした
場合の前記文字の傾き角度α及び前記文字列の傾き角度
βを検出する機能と、 前記傾き角度αとβとの差(α−β)を求める機能と、 前記差(α−β)が負の所定角度A以上であり且つ正の
所定角度B以下である場合に、前記文字列における当該
文字を横書き文字であると判断し、そうでない場合に縦
書き文字であると判断する機能と、 前記判断に応じて、当該文字に横書き文字又は縦書き文
字を割り当てる機能と、 をコンピュータに実現させるためのプログラムを記録し
たコンピュータ読み取り可能な記録媒体。4. A recording medium on which a program for automatically converting between horizontal writing characters and vertical writing characters is recorded for characters constituting a character string, wherein the inclination angle of a straight line extending horizontally from left to right. A function of detecting the inclination angle α of the character and the inclination angle β of the character string in the case where is set to 0 degree; a function of calculating a difference (α−β) between the inclination angles α and β; If -β) is equal to or greater than the negative predetermined angle A and equal to or less than the positive predetermined angle B, the character in the character string is determined to be a horizontal writing character, otherwise, it is determined to be a vertical writing character. And a function of assigning a horizontally written character or a vertically written character to the character in accordance with the determination.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP10172707A JP2000010962A (en) | 1998-06-19 | 1998-06-19 | Automatic conversion device for horizontal and vertical characters and recording medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP10172707A JP2000010962A (en) | 1998-06-19 | 1998-06-19 | Automatic conversion device for horizontal and vertical characters and recording medium |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2000010962A true JP2000010962A (en) | 2000-01-14 |
Family
ID=15946860
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP10172707A Withdrawn JP2000010962A (en) | 1998-06-19 | 1998-06-19 | Automatic conversion device for horizontal and vertical characters and recording medium |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2000010962A (en) |
-
1998
- 1998-06-19 JP JP10172707A patent/JP2000010962A/en not_active Withdrawn
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1104677C (en) | Cut-and-paste method and data processing system in table | |
JP4700423B2 (en) | Common charting using shapes | |
CA2319374C (en) | Information storage and retrieval system for storing and retrieving the visual form of information from an application in a database | |
JP2001175807A (en) | Method for selecting text area | |
US20030210428A1 (en) | Non-OCR method for capture of computer filled-in forms | |
US8466921B2 (en) | Image processing apparatus and method for load balancing of plural types of image processing in plural processors | |
US20020191199A1 (en) | Printing system | |
JP3963614B2 (en) | Data communication system and server and client computer constituting data communication system | |
JPH06274307A (en) | Screen display system | |
US11393236B2 (en) | Approximating the layout of a paper document | |
JP2000010962A (en) | Automatic conversion device for horizontal and vertical characters and recording medium | |
US7928992B2 (en) | System and method for transparent object rendering | |
JPH0916609A (en) | Document search device and document search method | |
CN1326071C (en) | Electronic file display processing method and system | |
JPS6360671A (en) | Document picture processor | |
JP3220437B2 (en) | Output control device and method | |
JPH10275242A (en) | Printing processing system and method therefor | |
JPH09204481A (en) | Word processor with image processing function | |
JP2000251087A (en) | Information processor, information processing method and storage medium | |
US20070103488A1 (en) | Substituting pattern fills | |
JPH10333664A (en) | Font creation device and recording medium | |
JPH04326478A (en) | Graphic preparing device | |
JP2974638B2 (en) | Document processing apparatus and method | |
CN112233206A (en) | Character image generation method, device, device and storage medium | |
JP2000221276A (en) | Weather data display system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20050906 |