JPS6385691A - Character string data conversion system - Google Patents

Character string data conversion system

Info

Publication number
JPS6385691A
JPS6385691A JP61229919A JP22991986A JPS6385691A JP S6385691 A JPS6385691 A JP S6385691A JP 61229919 A JP61229919 A JP 61229919A JP 22991986 A JP22991986 A JP 22991986A JP S6385691 A JPS6385691 A JP S6385691A
Authority
JP
Japan
Prior art keywords
code
character
line feed
line
data
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
JP61229919A
Other languages
Japanese (ja)
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP61229919A priority Critical patent/JPS6385691A/en
Publication of JPS6385691A publication Critical patent/JPS6385691A/en
Pending legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Digital Computer Display Output (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Abstract] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 〔概 要〕 文字コードと制御コードとを含む文字列データを画面上
のアドレスが付加された文字データ列に変換する変換方
式において、文字コードに対応して改行コードを付加す
るようにし、上記文字列データ内に改行コードが検出さ
れたときにはこの改行コードの前の文字コードにこの改
行コードを付加するようにして、行頭に改行コードがく
ることによって不要な改行が行われないようにした。
[Detailed Description of the Invention] [Summary] In a conversion method that converts character string data including a character code and a control code into a character data string to which an address on the screen is added, a new line code is added in correspondence with the character code. When a line feed code is detected in the above character string data, this line feed code is added to the character code before this line feed code, and unnecessary line feeds are removed by placing the line feed code at the beginning of the line. I tried not to get caught.

〔産業上の利用分野〕[Industrial application field]

文字コードと改行コードを含む制御コードからなる文字
列データ(以下、テキストデータ、という)をディスプ
レイあるいはプリンタにより表示するため、に、画面上
の位置を指定する横方向および縦方向の座標を示すアド
レスをそれぞれの文字コードに付加した文字データに変
換する方式に関する。
An address that indicates the horizontal and vertical coordinates that specify the position on the screen in order to display character string data (hereinafter referred to as text data) consisting of a control code including character codes and line feed codes on a display or printer. This article relates to a method of converting the text into character data added to each character code.

〔従来の技術〕[Conventional technology]

テキストデータは、文字情報を画面上に表示するために
必要な最小限のデータである文字コードと改行コードな
どの制御コードとからなっており、このようなテキスト
データを所要の表示形式で画面上に表示するために、画
面上の位置をこのテキストデータを構成するそれぞれの
文字コードに付加して画面表示用の文字データ列に変換
することが行われている。
Text data consists of character codes, which are the minimum data necessary to display character information on the screen, and control codes such as line feed codes, and such text data can be displayed on the screen in the desired display format. In order to display the text on the screen, the position on the screen is added to each character code that makes up this text data to convert it into a character data string for screen display.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

このテキストデータにおいては、意図的な改行を指示す
る改行コードも画面上の表示位置とは無関係にテキスト
データのコード列中に配置されているので、このテキス
トデータを構成するコードを予め定められている画面の
アドレスに順次割当て画面表示用の文字データ列に変換
したとき、改行コードが行の先頭にきて行の先頭で改行
が行われ画面上に1行の空白が生じることがある。
In this text data, line feed codes that indicate intentional line breaks are also placed in the code string of the text data regardless of the display position on the screen, so the codes that make up this text data are predetermined. When converting into a character data string for screen display, a line feed code is placed at the beginning of the line, and a line feed is performed at the beginning of the line, resulting in a blank line on the screen.

すなわち、第2図(d)は同図(alに示したテキスト
データを画面上の文字表示位置に順次配列したときの例
を示すもので、同図(alの文字コードcjが行末に位
置したとするとその次の改行コードRが次の行の先頭位
置となり、この行はこの改行コードRによってその先頭
で改行されて次の文字コードCkが次行に表示され、結
局この改行コードが行頭に位置した行はディスプレイ上
あるいはプリントの結果、空白の行として表示されてし
まうことになる。
In other words, Fig. 2(d) shows an example when the text data shown in Fig. 2 (al) is arranged sequentially at the character display positions on the screen. Then, the next line feed code R becomes the starting position of the next line, this line is broken at the beginning by this line feed code R, and the next character code Ck is displayed on the next line, and in the end, this line feed code is placed at the beginning of the line. The located line will be displayed as a blank line on the display or as a result of printing.

C問題点を解決するための手段〕 文字コードに付加される画面上のアドレスに加えて改行
コードをさらに付加し得るようにし、文字列データ内の
改行コードを検出したときに、その前の文字コードに対
応して改行コードを付加して文字データ列に変換するよ
うにした。
Measures to solve problem C] In addition to the address on the screen that is added to the character code, a line feed code can be added, so that when a line feed code is detected in character string data, the previous character Added a newline code to the code and converted it to a character data string.

第1図によって本発明の原理を具体的に説明すれば、(
a)はテキストデータ、fblはこのテキストデータか
ら本発明により変換された文字データ列であり、(81
図に示したテキストデータにおいて、C1、C2・・・
・・・cj、Ck・・・・・・Cnは文字コードであっ
て、文字コードCjとCkとの間には改行コードRが挿
入されている。
To specifically explain the principle of the present invention with reference to FIG.
a) is text data, fbl is a character data string converted from this text data according to the present invention, and (81
In the text data shown in the figure, C1, C2...
. . cj, Ck . . . Cn are character codes, and a line feed code R is inserted between the character codes Cj and Ck.

このテキストデータを変換してfbl図に示す文字デー
タ列を生成するが、各文字コードに対応してこの文字コ
ードにより指定された文字を表示する画面上の横軸の値
Xと縦軸の値yとがこれらの文字コードに付加され、本
発明によって更に改行を示す改行コードをこれらの文字
コードに対応して付加し得るようにした。
This text data is converted to generate the character data string shown in the fbl diagram, and the value X on the horizontal axis and the value on the vertical axis on the screen that displays the character specified by this character code corresponds to each character code. y is added to these character codes, and according to the present invention, a line feed code indicating a line feed can be added corresponding to these character codes.

そして、この改行コードはテキストデータでこの改行コ
ードRの前にある文字コードCjに付加され、更にこの
改行コードは文字データ列から削除されて字詰めが行な
われるものである。
Then, this line feed code is added to the character code Cj that precedes this line feed code R in the text data, and this line feed code is further deleted from the character data string to perform character filling.

〔作 用〕[For production]

本発明によって、第1図(blに示すような文字データ
列に変換されたデータによりディスプレイなどに表示を
行うと、同図(C1に示したように、文字コードCjに
より指定された文字が行末にきたとき、この文字コード
に対応して改行コードRが付加されているので改行が行
われるが、次の行の先頭に位置する文字コードCkには
改行コードが付加されていないので改行は行われず、し
たがって空白の行は生じない。
According to the present invention, when data converted to a character data string as shown in FIG. When the line feed code R is added corresponding to this character code, a line feed is performed, but a line feed is not added to the character code Ck located at the beginning of the next line because no line feed code is added. , so there are no blank lines.

〔実施例〕〔Example〕

第2図は本発明の実施例を示すもので、入力されたテキ
ストデータは1つの文字コードあるいは制御コードをラ
ッチするバッファメモリ1および改行コード検出器2に
印加され、この改行コード検出器が文字コードを検出し
ないときは上記バッファメモリから文字コードがファー
ストインファーストアウトメモリなどのメモリ3の文字
コード記憶領域にストアされ、同時にこの文字コードに
より指定された文字の表示位置を演算するプロセッサ4
からの画面上の横軸の位置Xと縦軸の位置yとが位置記
憶領域にストアされる。
FIG. 2 shows an embodiment of the present invention, in which input text data is applied to a buffer memory 1 that latches one character code or control code, and a line feed code detector 2. When no code is detected, the character code is stored in the character code storage area of the memory 3 such as the first-in-first-out memory from the buffer memory, and at the same time the processor 4 calculates the display position of the character specified by this character code.
The position X on the horizontal axis and the position y on the vertical axis on the screen are stored in the position storage area.

上記の改行コード検出器2がテキストデータ中の改行コ
ードを検出すると、改行コードを上記メモリ3の改行コ
ード記憶領域にストアするが、このときには上記バッフ
ァメモリによりlコード期間遅延したこの改行コードの
前の文字コードおよびその表示位置が文字コード記憶領
域および位置記憶領域にストアされるので、この改行コ
ードはテキストデータ中のこの改行コードの前の文字コ
−ドに対応してストアされることになる。
When the line feed code detector 2 detects a line feed code in the text data, the line feed code is stored in the line feed code storage area of the memory 3, but at this time, the line feed code before this line feed code delayed by l code period is stored in the buffer memory. Since the character code and its display position are stored in the character code storage area and position storage area, this line feed code will be stored corresponding to the character code before this line feed code in the text data. .

この実施例では、改行コードが検出されたときに上記バ
ッファメモリ1をクリアしてこの改行コードをテキスト
データの文字コード列から削除するとともに上記プロセ
ッサ4にもこの改行コードの存在を伝送して文字の表示
位置の演算に誤りが生じないように構成されている。
In this embodiment, when a line feed code is detected, the buffer memory 1 is cleared and this line feed code is deleted from the character code string of text data, and the existence of this line feed code is also transmitted to the processor 4 to It is configured so that no error occurs in the calculation of the display position.

また、ディスプレイ上に表示される文字の色を指定する
ために、上記プロセッサからの色指示信号が各文字に対
応して上記メモリ3にストアされるように、このメモリ
には色信号記憶領域がさらに設けられており、このメモ
リからは文字コード、表示位置、改行コードおよび色信
号が同時に読出されてディスプレイなどにおける表示の
ために用いられる。
In addition, this memory has a color signal storage area so that a color instruction signal from the processor is stored in the memory 3 corresponding to each character in order to specify the color of the characters displayed on the display. A memory is further provided, from which character codes, display positions, line feed codes, and color signals are simultaneously read out and used for display on a display or the like.

なお、本発明は上記のようなハードウェアーによる処理
に限られるものではなく、ソフトウェア−による処理に
よっても実行し得ることは明らかであろう。
It should be noted that the present invention is not limited to the above-described processing by hardware, but it is clear that it can also be executed by processing by software.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、テキストデータ中の改行コードが表示
画面の行頭にきた場合であっても、無用な改行が行われ
ないので、ディスプレイ上あるいはプリントされた画面
が著しく見やすくなり、また誤解されるようなことがな
いという格別の効果を達成することができる。
According to the present invention, even if a line feed code in text data comes to the beginning of a line on the display screen, an unnecessary line break is not performed, so the screen on the display or the printed screen becomes significantly easier to see, and it can also be misunderstood. It is possible to achieve a special effect in which such a situation does not occur.

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

第1図は本発明の詳細な説明するための図、第2図は本
発明の実施例を示す図である。
FIG. 1 is a diagram for explaining the present invention in detail, and FIG. 2 is a diagram showing an embodiment of the present invention.

Claims (1)

【特許請求の範囲】 文字コードと改行コードを含む制御コードとからなる文
字列データを、これらコードにそれぞれ対応する画面上
のアドレスを付加した文字データ列に変換する変換方式
において、 改行コードを上記文字コードに対応して付加するように
するとともに、文字コード列内に改行コードを検出した
ときにはこの改行コードの前のコードに対応して改行コ
ードを付加するようにしたことを特徴とする文字列デー
タの変換方式。
[Claims] In a conversion method for converting character string data consisting of a character code and a control code including a line feed code into a character data string in which on-screen addresses corresponding to these codes are added, A character string characterized in that a line feed code is added corresponding to a character code, and when a line feed code is detected in a character code string, a line feed code is added corresponding to the code before this line feed code. Data conversion method.
JP61229919A 1986-09-30 1986-09-30 Character string data conversion system Pending JPS6385691A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61229919A JPS6385691A (en) 1986-09-30 1986-09-30 Character string data conversion system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61229919A JPS6385691A (en) 1986-09-30 1986-09-30 Character string data conversion system

Publications (1)

Publication Number Publication Date
JPS6385691A true JPS6385691A (en) 1988-04-16

Family

ID=16899794

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61229919A Pending JPS6385691A (en) 1986-09-30 1986-09-30 Character string data conversion system

Country Status (1)

Country Link
JP (1) JPS6385691A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS53128234A (en) * 1977-04-14 1978-11-09 Sharp Corp Input system of sentence information
JPS57207281A (en) * 1981-06-17 1982-12-18 Tokyo Shibaura Electric Co Character display unit

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS53128234A (en) * 1977-04-14 1978-11-09 Sharp Corp Input system of sentence information
JPS57207281A (en) * 1981-06-17 1982-12-18 Tokyo Shibaura Electric Co Character display unit

Similar Documents

Publication Publication Date Title
JP3036767B2 (en) Printing apparatus and method
JPS6385691A (en) Character string data conversion system
JPS6139677B2 (en)
JPS6217766B2 (en)
JPH023099A (en) Display device
JPS604983A (en) Screen clear control system
JPS58142436A (en) Ruby display control method
JP3579064B2 (en) Character display device
JPH0247782A (en) Picture signal processor
JPS61263764A (en) Method for printer control
JPH01227189A (en) Display data control circuit
JPS59182493A (en) Character generation system
JPS59182745U (en) Document input display system
JPS6349236B2 (en)
JPS62163093A (en) Microcomputer apparatus
JPS6377088A (en) Microcomputer
JPH0214726B2 (en)
JPS60158246U (en) Raster scan type display device
JPS62249750A (en) print recording device
JPS61125644A (en) Video interface device
JPS60131591A (en) Information output method
JPH0277925A (en) handwriting input device
JPS58115474A (en) Graphic japanese character display control system
JPS59180782A (en) Optical character reader
JPH03198200A (en) Traffic information offering device