JPS6113365A - Electronic apparatus - Google Patents

Electronic apparatus

Info

Publication number
JPS6113365A
JPS6113365A JP59133276A JP13327684A JPS6113365A JP S6113365 A JPS6113365 A JP S6113365A JP 59133276 A JP59133276 A JP 59133276A JP 13327684 A JP13327684 A JP 13327684A JP S6113365 A JPS6113365 A JP S6113365A
Authority
JP
Japan
Prior art keywords
memory
data
display
stores
key
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
JP59133276A
Other languages
Japanese (ja)
Inventor
Shigeru Matsuyama
茂 松山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP59133276A priority Critical patent/JPS6113365A/en
Publication of JPS6113365A publication Critical patent/JPS6113365A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

PURPOSE:To easily process an overflow, by performing the display of overflow occurrence and display of overflown character strings through the designation which replaces a character string inputted from a keyboard and stored in a text memory with another character string in the lump. CONSTITUTION:The operating state of each constituting device is stored in a RAM and input character data, etc., are stored in a text memory in the RAM. At the same time, a line buffer LB which stores character strings of one line quantity, displaying memory DISP which stores the displaying content of a display device DIS, searching data memory SRM which stores retrieved character strings, and replacing data memory RPM which stores replacing character strings are also provided in the RAM. In addition, the RAM also contains a cursor pointer CUR which stores the position of a cursor, text memory pointer TXP which stores the accessing position to the text memory, and memory area of text end TXE which stores the final data position. Display of an overflow and display of overflown characters are performed with this electronic apparatus.

Description

【発明の詳細な説明】 〔技術分野〕 本発明は、タイプインした文字データを記憶するテキス
トメモリを備え、テキストメモリ中の指定文字列(検索
−文字列)を他の文字列(置換文字列)に一括して置き
換える文字列置換機能を有する電子タイプライタ等の電
子機器の改良に関する。
[Detailed Description of the Invention] [Technical Field] The present invention includes a text memory that stores typed-in character data, and converts a designated character string (search-character string) in the text memory to another character string (replacement character string). ) This invention relates to improvements in electronic devices such as electronic typewriters that have a character string replacement function that replaces all text strings.

〔従来技術〕[Prior art]

従来、この種の電子機器において、特定キーに′より文
字列置換を指示した場合に、テキストメモリ中に記憶さ
れた文字列内の検索文字列よりも置換文字列の方が長く
、その文字列の置き換えにより1947分の印字可能な
桁数を越えるラインオーバーフローとなるときには、そ
の置き換えが正常に行われなかった。
Conventionally, in this type of electronic equipment, when a character string replacement is instructed by ′ on a specific key, the replacement character string is longer than the search character string in the character string stored in the text memory, and the character string is When the replacement caused a line overflow exceeding the number of printable digits of 1947 minutes, the replacement was not performed normally.

〔目的〕〔the purpose〕

本発明の目的は、上述した欠点を除去し、テキストメモ
リ内に記憶されたテキストデータ中の指定した文字列を
一括して他の文字列に置き換える場合に、置き換えた結
果1ラインに印字可能な桁数を越えるラインオーバーフ
ローに対しても容易に対処できるようにした電子機器を
提供することにある。
An object of the present invention is to eliminate the above-mentioned drawbacks, and when replacing specified character strings in text data stored in a text memory with other character strings all at once, it is possible to print the replaced result in one line. To provide an electronic device that can easily deal with line overflow exceeding the number of digits.

上述の目的の達成のため、本発明では、テキストメモリ
内に記憶されたテキストデータ中の指定した文字列を一
括して他の文字列に置き換える際に置き換えがあった行
を順次印字し、置き換えた結果lラインに印字可能な桁
数を越えたときには、置き換え動作をただちに中断しラ
インオーバフローである旨を表わすメツセージを表示し
、次に特定キーが押下られると、テキスト中の一括置き
換えを中断したテキストラインを表示するようにしたも
のである。
In order to achieve the above-mentioned object, the present invention sequentially prints the replaced lines when replacing specified character strings in text data stored in a text memory with other character strings at once, and performs the replacement. If the result exceeds the number of digits that can be printed on a line, the replacement operation is immediately interrupted and a message indicating a line overflow is displayed, and when a specific key is pressed next, batch replacement in the text is interrupted. It is designed to display a text line.

〔実施例〕〔Example〕

以下に、図面を参照して本発明の詳細な説明する。 The present invention will be described in detail below with reference to the drawings.

第1図は、本発明の構成例を示す、ここで、KBはキー
ボードであり、A−Zのアルファベット、スペース、お
よび0〜9の数字を入力するアルファニューメリックキ
ー(キャラクタキー)αNおよびリターンキー(RET
URN) 、  リプレースキー(REPL) 、スト
ップキー(5TOP)等を配設しである。
FIG. 1 shows a configuration example of the present invention, where KB is a keyboard, and alphanumeric keys (character keys) αN and return keys are used to input alphabets from A to Z, spaces, and numbers from 0 to 9. (RET
URN), replace key (REPL), stop key (5TOP), etc.

一方、cpuは、キーボードKBのキー入力KBSが入
力するマイクロプロセッサ等からなる制御ユニットであ
り、クロックパルス発生回路、遅延回路、ゲート回路お
よびその他の論理回路などを備えた順序制御回路の形態
に構成しである。また、PRTは印字装置であり、キー
ボードKBからタイプインしたキー入力KBSにそれぞ
れ対応する文字や数字を制御ユニッ) CPUからの印
字制御信号CPRTの制御に基づいて印字紙上に印字す
る。Disは例えば、ドツトマトリクス型の液晶表示器
などからなる表示装置であり、制御ユニッ) CPUか
らの表、示制御信号CDl5の制御に基づいて、タイプ
インしたキー入力KBSにそれぞれ対応する文字や数字
を表示する。
On the other hand, the CPU is a control unit consisting of a microprocessor, etc. to which the key input KBS of the keyboard KB is input, and is configured in the form of a sequential control circuit equipped with a clock pulse generation circuit, a delay circuit, a gate circuit, and other logic circuits. It is. Further, PRT is a printing device, which prints characters and numbers corresponding to the key inputs KBS typed in from the keyboard KB on printing paper under the control of a print control signal CPRT from the control unit (CPU). Dis is a display device consisting of, for example, a dot matrix type liquid crystal display, and the control unit (control unit) displays letters and numbers corresponding to the key input KBS based on the control of the display control signal CDl5 from the CPU. Display.

さらに、ROMは、読出し専用の記憶装置(リードオン
リメモリ)であり、制御ユニットCpuが印字装置PR
Tや表示装置DNS等の各構成装置に制御信号を順次供
給する際に必要な第3図に示すような制御手順のマイク
ロ命令群をあらかじめ記憶している。
Furthermore, the ROM is a read-only storage device (read-only memory), and the control unit CPU controls the printing device PR.
A group of microinstructions for a control procedure as shown in FIG. 3 necessary for sequentially supplying control signals to each component device such as T and display device DNS is stored in advance.

RAMはランダムアクセス可能の記憶装置(ランダムア
クセスメモリ)であり、各構成装置の動作状態を記憶し
、あるいは入力した文字や数字のデータ等を内部のテキ
ストメモリTEXに記憶する。
The RAM is a randomly accessible storage device (random access memory) that stores the operating status of each component device or stores input data such as characters and numbers in an internal text memory TEX.

また、記憶装−RAMは、その内部に一行分の文字列を
記憶するラインバッファLB、表示装置旧Sの表示内容
を記憶する表示用メモリDISP、検索文字列(サーチ
データ)を記憶するサーチデータメモリSRM 、置換
文字列(リプレースデータ)を記憶するリプレースデー
タメモリRPM 、カーソルの位置を記憶するカーソル
ポインタCUR、テキストメモリTEXへのアクセス位
置を記憶するテキストメモリポインタTXPおよびテキ
ストメモリTEXの最後のデータ位置を記憶するテキス
トエンドTXE等のメモリ領域を有する。
The storage RAM also includes a line buffer LB that stores one line of character strings, a display memory DISP that stores the display contents of the old display device S, and search data that stores a search character string (search data). Memory SRM, replacement data memory RPM that stores replacement character strings (replace data), cursor pointer CUR that stores the cursor position, text memory pointer TXP that stores the access position to text memory TEX, and the last data of text memory TEX. It has a memory area such as a text end TXE that stores the position.

また、BuSはパスラインであり、制御ユニットCPl
lと再記憶装置ROMおよびRAM間でメモリアドレス
やデータを転送する。
Moreover, BuS is a pass line, and control unit CPl
Transfers memory addresses and data between the storage device ROM and RAM.

第2図は第1図のキーボードKBのキー操作により入力
して、記憶装置RAM内に記憶させた制御キーデータの
内容の一例を示す。すなわち、キーボードKBからのキ
ー操作手順に従う記憶装置RAM内の各メモリ領域OU
R,TXP、  TXE、  SRM、RPM、LBの
記憶内容と表示装置111Sの表示内容および印字装置
PR↑の印字内容の変化を第2図に示している。
FIG. 2 shows an example of the contents of control key data inputted by key operations on the keyboard KB shown in FIG. 1 and stored in the storage device RAM. That is, each memory area OU in the storage device RAM according to the key operation procedure from the keyboard KB.
FIG. 2 shows changes in the stored contents of R, TXP, TXE, SRM, RPM, and LB, the displayed contents of the display device 111S, and the printed contents of the printing device PR↑.

次に、第2図のキー操作手順および第3図のフローチャ
ートを参照して、第1図の本発明電子機器の動作例を説
明する。第2図のキー操作手順1に従って、まず、キー
ボードKB上のパワースイッチ(PS)  (不図示)
を押してパワーオン(電源投入)にすると、制御ユニッ
)  CPUは第3図のフローチャートにおけるステッ
プS1において、記憶装置RAMの記憶領域の全体をク
リアし、表示装置DIS上のカーソル位置(−で示す)
を記憶するカーソルポインタ CUR、テキストメモリ
 TEXへのアクセス位置を記憶するテキストメモリポ
インタTXP、およびテキストメモリ TEXの最後の
データ位置を記憶するテキストエンドTXEにそれぞれ
“l”を記憶させた後に、次のステップS2およびS3
において、記憶装置RAMの表示用メモリlll5P内
の表示データを表示装置DISに表示しながらキーボー
ドKBのキーが押下されるのを待機する制御ループを実
行する。
Next, an example of the operation of the electronic device of the present invention shown in FIG. 1 will be described with reference to the key operation procedure shown in FIG. 2 and the flowchart shown in FIG. 3. According to key operation procedure 1 in Figure 2, first press the power switch (PS) (not shown) on the keyboard KB.
When the power is turned on by pressing , the CPU (control unit) clears the entire storage area of the storage device RAM in step S1 in the flowchart of FIG.
After storing "l" in each of the cursor pointer CUR that stores , the text memory pointer TXP that stores the access position to the text memory TEX, and the text end TXE that stores the last data position of the text memory TEX, the next Steps S2 and S3
, a control loop is executed in which the display data in the display memory ll5P of the storage device RAM is displayed on the display device DIS while waiting for a key on the keyboard KB to be pressed.

次に、第2図のキー操作手順2において、キーボードK
Bのアルファベットキー(A)からのキー入力信号KB
Sが入力されると、制御ユニッ) CPUは、第3図の
フローチャートにおける判定ステップS4でそのキー入
力信号KBSがキャラクタキーの゛押下による信号であ
るか否かを判別し、この場合アルファベ−/ トキーの
信号であるのでキャラクタキーの押下によるものである
と判別して、次の判定ステップS5でカーソルポインタ
 CURが示すラインバッフアLB内の位置に(A)の
キャラクタキーのキーコード(内部コード)を格納し、
カーソルポインタCURを+1だけ加算した後、ライン
バッファLBの記憶データ゛A′を表示用メモリDIS
Pに格納して上述のステップS2に戻り、メモリDIS
Pの内容“A”を表示装置DISに表示してステップS
3のキー入力待機ルーチンを実行する。これにより、第
2図のキー操作手順3の欄で示すような表示が表示装置
DISの画面上で行われる。
Next, in key operation procedure 2 in FIG.
Key input signal KB from alphabet key (A) of B
When S is input, the control unit CPU determines in determination step S4 in the flowchart of FIG. 3 whether or not the key input signal KBS is a signal caused by pressing the character key. Since the signal is from a character key, it is determined that the signal was caused by pressing a character key, and in the next determination step S5, the key code (internal code) of the character key (A) is inserted into the position in the line buffer LB indicated by the cursor pointer CUR. store,
After adding +1 to the cursor pointer CUR, the stored data 'A' in the line buffer LB is transferred to the display memory DIS.
P, and return to the above step S2, and store it in the memory DIS
Display the content “A” of P on the display device DIS and step S
3. Execute the key input waiting routine. As a result, a display as shown in the column of key operation procedure 3 in FIG. 2 is performed on the screen of the display device DIS.

次に、第2図の操作手順3でスペースキー〔〕を含むキ
ャラクタキー(B)  〔)(C)CD)()(E)の
キー入力信号KBSが順次入力されると、上述の操作手
順2におけると同様の制御過程を実行して、カーソルポ
インタ CURは“8″となり、第2図のキー操作手順
3の表示欄に示すような’AB  CD  E ”の表
示が表示装置DISで行われる。
Next, when the key input signals KBS of the character keys (B), [), (C), CD), (), and (E) including the space key [] are input in sequence in operation step 3 in FIG. By executing the same control process as in step 2, the cursor pointer CUR becomes "8" and 'AB CD E' is displayed on the display device DIS as shown in the display column of key operation procedure 3 in Fig. 2. .

次に、第2図の操作手順4で、改行を指示するリターン
キー〔RETURN)が押下されると、第3図の判定ス
テップS4は否定判定となり、入カキ−がリターンキー
(RETURN)か否かを判定する判定ステップS8が
肯定となるので、制御ユニットCPUは次のステップs
7に移行して印字処理ルーチンを実行する。すなわち、
ステップS7において、ラインバッフ−ア LBのデー
タ゛’AB  CD  E ”を印字装置PRTにより
印字用紙上に印字した後、印字装置″PRTの記録ヘッ
ドをホームポジションの位置に戻し、行方向の紙送りを
実行する。さらに、テキストメモリポインタ TXPが
示すテキストメモリTEXのアドレス位置からラインバ
ッファLBの上述のデータを格納した後、テキストメモ
リポインタTxPの内容゛“1′にデータ1行分の°8
′′を加算し、その加算結果“9″をテキストエンドT
XHにも格納する。続いて、カーソルポインタ CUR
に1′”を格納し、ラインバッファLBおよび表示用メ
モリDISPの両方をクリアする。以上のステップS7
の処理を実行後、再びステップS2に戻り、表示用メモ
リDISPの内容、すなわち空白状態を表示装置DI’
Sに表示して、ステップS3のキー入力待機J゛レーチ
ンを実行する。これにより、第2図のキー操作手順4の
欄で図示するような表示と印字が行われる。
Next, in operation step 4 of FIG. 2, when the return key [RETURN] instructing a line feed is pressed, determination step S4 of FIG. 3 becomes a negative determination, and whether or not the input key is the return key (RETURN) Since the determination step S8 is affirmative, the control unit CPU executes the next step s.
7, a print processing routine is executed. That is,
In step S7, after the data ``AB CD E'' of the line buffer LB is printed on the printing paper by the printing device PRT, the recording head of the printing device ``PRT'' is returned to the home position, and the paper is fed in the line direction. Execute. Furthermore, after storing the above-mentioned data in the line buffer LB from the address position of the text memory TEX indicated by the text memory pointer TXP, the data for one line is stored in the content ``1'' of the text memory pointer TxP.
'' and add the addition result "9" to the text end T
Also stored in XH. Next, the cursor pointer CUR
1''' is stored in the line buffer LB and the display memory DISP.The above step S7
After executing the process, the process returns to step S2 again, and the contents of the display memory DISP, that is, the blank state, are transferred to the display device DI'.
S and executes key input standby J'rechin in step S3. As a result, display and printing as shown in the column of key operation procedure 4 in FIG. 2 are performed.

次に、第2図の操作手順5,6.7および8で図示した
ようなキー操作がキーボードKBから行われると、上述
の操作手順2,3および4におけると同様の制御過程を
順次繰返し実行して、第2図に゛示すような印字が印字
装置PR↑により行われ、テキストメモリポインタ T
XPおよびテキストエンドTXHのデータがそれぞれ’
41”に変化する。
Next, when the key operations illustrated in operating steps 5, 6, 7, and 8 in FIG. Then, printing as shown in Fig. 2 is performed by the printing device PR↑, and the text memory pointer T
XP and text end TXH data are '
Changes to 41”.

以上の処理手順は通常の文章編集の場合と同様である0
次に第2図の操作手順9において、文字列の置換作業の
開始を指示するリプレースキー(REPL)が押下られ
ると、判定ステップS4およびS8は否定判定となり、
入カキ−がリプレースキー(REPL)か否かを判定す
る判定ステップS8が肯定判定となるので、制御ユニッ
) CPUは次のステップS8においてカーソルポイン
タCURおよびテキストメモリポインタ TXPにそれ
ぞれ“l IIを格納し、サーチデータメモリ SRM
およびリプレースデータメモリ RPMを共にクリアし
て、ステラ7’ SIOへ移行する。ステップSIOで
は、検索対象を意味するメツセージデーラダ’5EAR
C)l=”とサーチデータメモリ SRHのデータとを
順に表示用メモリ DISPに格納し、次のステップS
llで表示用メモリ DISPのデータを表示装置DI
Sに表示しながら、ステップS12でキャラクタキーか
リターンキー (RETURN)の押下を待機する制御
ループを実行する。
The above processing steps are the same as for normal text editing.
Next, in operation step 9 in FIG. 2, when the replace key (REPL) instructing to start the character string replacement operation is pressed, determination steps S4 and S8 become negative determinations.
Since the determination step S8 for determining whether the input key is a replace key (REPL) is an affirmative determination, the control unit (CPU) stores "lII" in the cursor pointer CUR and text memory pointer TXP, respectively, in the next step S8. Search data memory SRM
and replace data memory RPM, and move to Stella 7' SIO. In step SIO, the message data ladder '5EAR which means the search target is
C) Store l=" and the data of the search data memory SRH in the display memory DISP in order, and then proceed to the next step S.
Display memory DISP data with display device DI
In step S12, a control loop is executed to wait for the character key or return key (RETURN) to be pressed.

続いて、第2図の操作手順10でキャラクタキー(A)
からのキー入力信号−KBSが入力されると、制御ユニ
ットcpuはステップS12からステップ913に移行
して入カキ−がキャラクタキーであると肯定判定をし、
次のステップS14でカーソルポインタOURのデータ
“1゛が示すサーチデータメモリ SRMのアドレス位
置にその入力キャラクタII A 11を格納し、カー
ソルポインタCURを+1加算した後、再び上述のステ
ップSIGへ戻り、“”5EARCH= A″なるデー
タを表示用メモリn rspに格納し、ステップSll
でこのメモリDISPの内容を表示装置DISに表示す
るので、第2図の操作手順13の欄で図示するような表
示が行われ、ステップS12でのキー入力待ちの状態と
なる。
Next, press the character key (A) in operation step 10 in Figure 2.
When the key input signal -KBS is input from step S12, the control unit CPU moves from step S12 to step 913 and makes an affirmative determination that the input key is a character key.
In the next step S14, the input character II A 11 is stored in the address position of the search data memory SRM indicated by the data "1" of the cursor pointer OUR, and after +1 is added to the cursor pointer CUR, the process returns to the above-mentioned step SIG. Store the data “5EARCH=A” in the display memory nrsp, and proceed to step Sll.
Since the contents of this memory DISP are displayed on the display device DIS, a display as shown in the column of operation procedure 13 in FIG. 2 is performed, and the state waits for a key input in step S12.

次に、第2図の操作手順11において、キャラクタキー
(B)からのキー入力信号KBSが入力されると、上述
の操作手順10におけると同様の制御過程を実行して、
サーチデータメモリ SRHに11ABIIが格納され
、第2図に示すような”5EARCH=AB  ” (
7)表示カ表示装置DIsテ行わしる。
Next, in operation procedure 11 of FIG. 2, when the key input signal KBS from the character key (B) is input, the same control process as in the above-mentioned operation procedure 10 is executed,
11ABII is stored in the search data memory SRH, and "5EARCH=AB" (
7) Perform the display function DIs.

次に第2図の操作手順12においてサーチデータの指示
の終了を指示するリターンキー(RETURN)が押下
されると、制御ユニッ)  CPUは、第3図のフロー
チャートにおいて、ステップs13からステップS15
へ移行して“REPLACE = ”のメツセージデー
タとリプレースデータメモリ RPMのデータ(最初は
空白)を表示用メモリDISPに格納した後、次のステ
ップS18およびS17において表示用71 % I)
 DISP(7)データ”REPLACE =−”を表
示シナがら、キャラクタキーかリターンキー(RETU
RN)が押下られるのを待機する制御ループを実行する
Next, when the return key (RETURN) for instructing the end of the search data instruction is pressed in the operation procedure 12 of FIG.
After the message data of "REPLACE=" and the data of the replace data memory RPM (blank at first) are stored in the display memory DISP, in the next steps S18 and S17, the 71% I) for display is stored.
DISP (7) While displaying the data "REPLACE =-", press the character key or return key (RETU).
Executes a control loop that waits for RN) to be pressed.

次に第2図の操作手順13において、キャラクタキー 
(1)、(2)、(3)が順次押下られると、制御ユニ
ットCPUは第3図のフローチャートにおいて、ステッ
プSl?が肯定判定となるので、次のステップS1Bで
入力キーがキャラクタキーか否か判定するが、肯定判定
となるのでステップ5illに移行して、カーソルポイ
ンタ CURが示すリプレースデータメモリ RPMの
アドレス位置に入力キャラクタのデータを格納し、カー
ソルポイントを+1づつ加算して、再びステップS15
に戻り、ステップS1BおよびS17の制御ループを実
行するので、第2図の操作手順13の欄で図示するよう
な“’REPLACE = 123− ”の表示が行わ
れ、キャラクタキーかリターンキーの入力待ちの状態と
なる。
Next, in operation step 13 in Figure 2, press the character key
When (1), (2), and (3) are pressed in sequence, the control unit CPU executes step Sl? in the flowchart of FIG. Since the determination is affirmative, it is determined whether the input key is a character key in the next step S1B, but since the determination is affirmative, the process moves to step 5ill, and input is made to the address position of the replace data memory RPM indicated by the cursor pointer CUR. Store the character data, add 1 to the cursor point, and return to step S15.
, and the control loop of steps S1B and S17 is executed, so "'REPLACE = 123-" is displayed as shown in the column of operation procedure 13 in FIG. 2, and the system waits for input of the character key or return key. The state will be as follows.

次に第2図の操作手順14において、リプレースデータ
の指定の終了を指示するリターンキー(RETURN)
が押下られると、制御ユニー/ ) CPUはステップ
S18からステップ920に移行して、テキストメモリ
ポインタ TXPのデータ゛l”が示すテキストメモリ
 TEXの1行目の文字列°“AB CD E ”暮ラ
インバッファ LBにロードし、続いてステップS21
において、テキストメモリポインタTXPのデータ“1
”とテキストエンドTXEのデータ” 41 ”とが一
致するか否か判定する。
Next, in operation step 14 in FIG. 2, press the return key (RETURN) to instruct the end of specifying the replacement data.
When pressed, the control unit/) CPU moves from step S18 to step 920, and reads the character string °"AB CD E" of the first line of the text memory TEX indicated by the data "l" of the text memory pointer TXP. Load to LB, then step S21
, the data “1” of the text memory pointer TXP
It is determined whether or not "" and the data "41" of the text end TXE match.

この場合、ステップS21は否定判定となるので、ステ
ップS22へ移行し、サーチデータメモリSRHのデー
タ“AB”と、同じ文字列データがラインバッファLB
にあるか否かを検索する。この場゛合、同じ文字列デー
タが検出されるので、次のステップS23に移行してラ
インバッファ LBのデータ中の文字列“^B11をリ
プレースデータメモリRPMのデータ 123に置き換
え、次のステップS24でラインバッファLBのデータ
が置き換えによりラインオーバフローをしたか否かを判
断する。テキストメモリ 丁EXの1行目のデータ置き
換えではラインオーバーフローをしていないので、ステ
ップS15に移行し、ラインバッファ l、Hのデータ
”123  CD  E″を印字装置PRTにより印字
した後、ヘッドをホームポジション位置に戻し、行方向
の紙送りを実行し、テキストメモリポインタTXPのデ
ータ″1”が示すテキストメモリTExの位置にライン
バッファLBのデータを格納し、ステップ92Bに移行
する。
In this case, since a negative determination is made in step S21, the process moves to step S22, and the same character string data as the data "AB" in the search data memory SRH is stored in the line buffer LB.
Search to see if it exists. In this case, since the same character string data is detected, the process moves to the next step S23 and replaces the character string "^B11" in the data of the line buffer LB with the data 123 of the replace data memory RPM, and then moves to the next step S24. It is determined whether or not the data in the line buffer LB has line overflowed due to the replacement.Since the data replacement in the first line of the text memory LB has not caused a line overflow, the process moves to step S15, and the line buffer LB l, After printing the data "123 CD E" of H by the printing device PRT, the head is returned to the home position, the paper is fed in the line direction, and the position of the text memory TEx indicated by the data "1" of the text memory pointer TXP is The data in the line buffer LB is stored in , and the process moves to step 92B.

ステップS28ではテキストメモリポインタ丁xPのデ
ータ“1°′に1行分のアドレス“8″を加算して、そ
の加算結果“9′′をテキストメモリポインタTXPに
格納する。続いて、ステップS20に戻り上述と同様に
テキストメモリポインタ TXPが示す位置のテキスト
メモリ TEXのラインデータ(1行分のデータ)をラ
インバッファLBにロードし、ステップS21は否定判
定となるのでステップS22に移行する。テキストメモ
リ 丁EXの2行目のデータは“’XY Z LM  
”であって検索対象のサーチデータ“’AB″を含んで
いないので、上述のステップS22は否定判定となるか
らステップ92Bへ移行し、上述と同様のテキストメモ
リポインタTXPの加算の後、ステップ920.!92
1の処理を経てステップS22に移行する。
In step S28, the address "8" for one line is added to the data "1°" of the text memory pointer TXP, and the addition result "9'' is stored in the text memory pointer TXP. Next, the process returns to step S20, and the line data (one line worth of data) of the text memory TEX at the position indicated by the text memory pointer TXP is loaded into the line buffer LB in the same manner as described above.Since step S21 is a negative determination, step S22 to move to. The data on the second line of text memory DEX is “'XY Z LM
” and does not include the search data “'AB” to be searched, the above step S22 results in a negative determination, so the process moves to step 92B, and after adding the text memory pointer TXP as described above, step 920 .!92
After the process of step 1, the process moves to step S22.

上述のステップ520でラインバッファLBに新たにロ
ードされたデータ“”Q AB AB  ”中にサーチ
データ“AB”がステップS22で検出されるので。
This is because the search data "AB" is detected in step S22 in the data "Q AB AB" newly loaded into the line buffer LB in step 520 described above.

上述と同様にステップS23において、このAB″をリ
プレースデータ゛123″に置き換えるが、ラインオー
バフローとなるので、ステップS24は肯定判定となり
ステップS27に移行する。ステップS27でラインオ
ーバフローした旨の“LINE 0VERFLQ%lI
″を表示用メモリDISPにロードし、ステップS28
およびS29において、そのメツセージ“LINEOV
ERFLOW”を表示装置DISで表示しながら、リタ
ーンキ(RETURN)のキー入力を待機する制御ルー
プを実行する。
Similarly to the above, in step S23, this AB'' is replaced with the replacement data "123", but since a line overflow occurs, an affirmative determination is made in step S24, and the process moves to step S27. “LINE 0VERFLQ%lI” indicating that line overflow occurred in step S27
" is loaded into the display memory DISP, and step S28
And in S29, the message “LINEOV
A control loop is executed that waits for a key input of the RETURN key while displaying "ERFLOW" on the display device DIS.

次に、第2図の操作手順15においてラインオーバフロ
ーとなった置換え対象のラインデータの表示を指示する
リターンキー(RETtlRN)が押下られると、制御
ユニットcpuはステップS30へ移行し、テキストメ
モリポインタ TXPが示すテキストメモリ TExの
ラインデータ“”Q AB AB”をラインバフファL
Bヘロードし、次のステップS31でカーソルポインタ
 CURに“l”をロードレ、ラインバッファLBのデ
ータを表示用メモリDISPに格納し、再びステー2プ
S2に戻り、表示用メモリotspのデータを表示装置
DISで表示し、次のキー入力待ちをステップS3で実
行する。このように、オーバーフローしたラインのデー
タが表示されるので、操作者は容易に対応する処置を行
うことができる。
Next, when the return key (RETtlRN) instructing to display the line data to be replaced that caused line overflow in operation step 15 of FIG. 2 is pressed, the control unit CPU moves to step S30, and the text memory pointer TXP The text memory TEx line data “”Q AB AB” indicated by line buffer L
In the next step S31, load "l" into the cursor pointer CUR, store the data in the line buffer LB in the display memory DISP, return to step 2 S2 again, and load the data in the display memory otsp to the display device. DIS is displayed, and the process waits for the next key input in step S3. In this way, since the data of the overflowed line is displayed, the operator can easily take the corresponding action.

〔効果〕 以上の説明から明らかなように、本発明によれば、キー
ボードによりタイプインしてテキストメモリ中に記憶さ
れたデータのある文字列を、他の文字列に一括して置き
換える指令を行なうと、置き換えを実行したラインを順
次印字し、置き換えによってラインオーバーフローした
場合にはその旨を表わすメツセージを表示して、特定キ
ーの押下を待機し、その特定キーが押下されると、オー
バーフローしたラインのデータを表示するようにしたの
で、容易に、そのオーバフローしたラインを処理するこ
とができる効果が得られる。
[Effects] As is clear from the above description, according to the present invention, a command is issued to replace a certain character string of data typed in using a keyboard and stored in a text memory with another character string all at once. , the replaced lines are printed in sequence, and if a line overflows due to the replacement, a message to that effect is displayed, it waits for a specific key to be pressed, and when that specific key is pressed, the overflowed line is printed. Since the data is displayed, it is possible to easily process the overflowed line.

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

第1図は、本発明の概略構成の一例を示すブロック図、
 。 第2図は、そのキー操作の手順の一例を示す線図、 第3図は、同じくそのキー操作による制御動作例を示す
フローチャートである・ KB   ・・・ キーボード、 αN ・・・ アルファニューメリックキー、CNTR
・・・ センタリングキー、 RETURN・・・ リターンキー、 REPL  ・・・ リプレースキー、5TOP  ・
・・ ストップキー、 cpu  ・・・ 制御ユニット、 PRT  ・・・ 印字装置、 DIS  ・・・ 表示装置、 ROM  ・・・ 読出し専用記憶装置、RAM  ・
・・ ランダムアクセス可能の記憶装置、Bus  ・
・・ パスライン。
FIG. 1 is a block diagram showing an example of a schematic configuration of the present invention,
. FIG. 2 is a diagram showing an example of the key operation procedure, and FIG. 3 is a flowchart showing an example of the control operation based on the key operation. KB: Keyboard, αN: Alphanumeric key, CNTR
・・・ Centering key, RETURN... Return key, REPL ・・・ Replace key, 5TOP ・
... Stop key, CPU ... Control unit, PRT ... Printing device, DIS ... Display device, ROM ... Read-only storage device, RAM
・・ Randomly accessible storage device, Bus ・
·· Path line.

Claims (1)

【特許請求の範囲】 キー入力手段から入力した文字列を記憶するテキストメ
モリ中の指定の文字列を他の指定の文字列に一括して置
き換える指令を行う指令手段を備え、該指令手段による
指令に応じて文字列の一括置き換えを順次1行毎に行っ
て印字手段で印字する電子機器において、 前記指令手段による指令に応じて前記テキストメモリ中
の指定の文字列を該文字列よりも長い指定の文字列に置
き換えた結果、1行の印字可能桁数を越えた場合には前
記一括置き換えをただちに中断して印字可能桁数を越え
た旨を表示手段で表示して特定キーが押下げられるのを
待機し、該特定キーが押下られるのに応じて前記テキス
トメモリ中の一括置き換えを中断した行の文字列を前記
表示手段で表示するように制御する制御手段を具備した
ことを特徴とする電子機器。
[Scope of Claims] A command means for commanding to collectively replace a designated character string in a text memory storing character strings inputted from a key input means with another designated character string, the command means commanding In an electronic device that sequentially performs batch replacement of character strings line by line in response to a specified character string and prints the result using a printing means, a specified character string in the text memory is specified to be longer than the specified character string in response to a command from the command means. As a result of replacing the character string with the character string, if the number of digits that can be printed in one line is exceeded, the batch replacement is immediately interrupted, a message that the number of digits that can be printed has been exceeded is displayed on the display means, and a specific key is pressed. The present invention is characterized by comprising a control means for controlling the display means to wait for the specific key to be pressed and to display on the display means the character string of the line in which the batch replacement was interrupted in the text memory in response to the pressing of the specific key. Electronics.
JP59133276A 1984-06-29 1984-06-29 Electronic apparatus Pending JPS6113365A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59133276A JPS6113365A (en) 1984-06-29 1984-06-29 Electronic apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59133276A JPS6113365A (en) 1984-06-29 1984-06-29 Electronic apparatus

Publications (1)

Publication Number Publication Date
JPS6113365A true JPS6113365A (en) 1986-01-21

Family

ID=15100845

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59133276A Pending JPS6113365A (en) 1984-06-29 1984-06-29 Electronic apparatus

Country Status (1)

Country Link
JP (1) JPS6113365A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62203223A (en) * 1986-03-04 1987-09-07 Canon Inc Document processor
JPH01116870A (en) * 1987-10-30 1989-05-09 Pfu Ltd Display control system for lower end overflow character string in character editing

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62203223A (en) * 1986-03-04 1987-09-07 Canon Inc Document processor
JPH01116870A (en) * 1987-10-30 1989-05-09 Pfu Ltd Display control system for lower end overflow character string in character editing
JPH0544057B2 (en) * 1987-10-30 1993-07-05 Pfu Ltd

Similar Documents

Publication Publication Date Title
JPS6113365A (en) Electronic apparatus
JPS6113329A (en) Electronic apparatus
JPH0733105B2 (en) Ruled line printing method
JPH0522933B2 (en)
JPS6038750B2 (en) How to enter characters in a word processor
US4955734A (en) Information processing apparatus
US4864530A (en) Display system for a compact electronic apparatus
JPS60238919A (en) Power disconnection processing system of word processor
JPH0562076B2 (en)
JPH0340871B2 (en)
US5248206A (en) Printer carriage positioning apparatus for character deletion
KR900001252B1 (en) Method for typing reverse characters
JP2593620B2 (en) Character processor
JP2761606B2 (en) Document data processing device
JPS5814689B2 (en) Kanji-mixed sentence input device that sequentially displays homonyms
JPS6263366A (en) Searching system for unwritten part in word processor
JPH03196253A (en) Page alignment processing system
JPS58195236A (en) Processing method of character information in character processing device
JPH0340870B2 (en)
JPH0373894B2 (en)
JPS60264163A (en) Printer control system
JPS59106033A (en) Furigana (japanese syllabary attached to chinese character) adding system of text processor
JPH0638258B2 (en) Character processor
JPS61104879A (en) Letter processor
JPH069043B2 (en) Character processing method