JPH06102389B2 - Text data processing device - Google Patents

Text data processing device

Info

Publication number
JPH06102389B2
JPH06102389B2 JP4047618A JP4761892A JPH06102389B2 JP H06102389 B2 JPH06102389 B2 JP H06102389B2 JP 4047618 A JP4047618 A JP 4047618A JP 4761892 A JP4761892 A JP 4761892A JP H06102389 B2 JPH06102389 B2 JP H06102389B2
Authority
JP
Japan
Prior art keywords
data
address
address book
line
print
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP4047618A
Other languages
Japanese (ja)
Other versions
JPH0589131A (en
Inventor
倫生 工藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP4047618A priority Critical patent/JPH06102389B2/en
Publication of JPH0589131A publication Critical patent/JPH0589131A/en
Publication of JPH06102389B2 publication Critical patent/JPH06102389B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)
  • Record Information Processing For Printing (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、文章データの記憶、
及び印字出力を行なう文章データ処理装置に関する。
BACKGROUND OF THE INVENTION The present invention relates to storage of text data,
And a text data processing device for printing output.

【0002】[0002]

【従来の技術】従来、日本語ワードプロセッサ等で、例
えば葉書、封書等の郵便物に宛名や差出人の郵便番号、
住所、氏名を印字する場合には、美しくかつ読み易い印
字形態となるように予めそれぞれのレイアウトを考えて
入力しておく以外に方法がなかった。
2. Description of the Related Art Conventionally, in a Japanese word processor or the like, for example, a postal item such as a postcard or a sealed letter, or a postal code of the sender,
When printing the address and name, there is no other way than to preliminarily input each layout so that the printing form is beautiful and easy to read.

【0003】[0003]

【発明が解決しようとする課題】したがって、この場合
の入力は非常に手間がかかり、きわめて困難なものとな
っていた。また、住所データや氏名データなどを印字す
る場合、これらデータを毎回手入力で入力する必要があ
り、予め複数の住所データや氏名データを記憶させてお
いて、この中から所望するデータのみを抽出して自動的
にフォーマット化して出力することはできなかった。さ
らには、住所データや氏名データの種類に応じて文字サ
イズを自動的に決定したり、あるいは住所データに含ま
れるアラビア数字を漢数字を変換して出力することはで
きなかった。本発明の課題は、複数の住所録データから
所望する住所録データにより宛名フォームに従ったフォ
ーマット展開をする際に、表現力に富んでおり、かつ住
所に含まれる数字の印字が自然な感じになるように印字
できるようにすることである。
Therefore, inputting in this case is very time-consuming and extremely difficult. In addition, when printing address data and name data, it is necessary to manually enter these data each time, and multiple address data and name data are stored in advance and only the desired data is extracted from this. Then, it was not possible to automatically format and output. Furthermore, it was not possible to automatically determine the character size according to the type of address data or name data, or convert the Arabic numerals contained in the address data into Chinese numerals and output them. An object of the present invention is to express a number of address book data from a plurality of address book data according to a desired address book data, and to express a natural number in an address. Is to be able to print.

【0004】[0004]

【課題を解決するための手段】この発明の手段は次の通
りである。文章データの記憶、及び印字出力を行なう文
章データ処理装置において、宛名の住所データ及び氏名
データ等を含む住所録データを複数記億する住所録デー
タ記憶手段(実施例の住所録メモリ13に相当する)
と、検索対象となる文字データを任意に指定する指定手
段(実施例のキー入力処理部11による宛名指定の処理
に相当する)と、この指定に応じて、上記住所録データ
記憶手段を検索し、上記複数の住所録データのうちで上
記指定の文字データに対応する住所録データを、上記住
所録データ記憶手段から読み出す読出手段(実施例のC
PU1による住所録メモリ13から印字データ格納部1
4に郵便番号、住所、氏名を読み出してセットする処理
に相当する)と、この読出手段により読み出された住所
録データにおける住所データに含まれる算用数字を漢数
字に置換すると共に、この置換された住所データを、予
め決められた郵便物等に対応する第1の印字領域に第1
の文字サイズでフォーマット展開して印字出力する住所
データ出力手段(実施例の印字変換処理部15とプリン
タ19の処理に相当する)と、上記読出手段により読み
出された住所録データにおける氏名データを、予め決め
られた上記郵便物等に対応する第2の印字領域に、上記
第1の文字サイズよりも大きい第2の文字サイズでフォ
ーマット展開して印字出力する氏名データ出力手段(実
施例の印字変換処理部15とプリンタ19の処理に相当
する)と、を備え、上記文章データの印字出力の他に、
上記住所録データに従ったフォーマット印字出力を行な
えるようにしたことを特徴とする。
The means of the present invention are as follows. In a text data processing device that stores and prints text data, an address book data storage unit (corresponding to the address book memory 13 of the embodiment) that stores a plurality of address book data including address data and address data of an address. )
And a designation means (corresponding to the address designation processing by the key input processing unit 11 of the embodiment) for arbitrarily designating the character data to be searched, and the address book data storage means is searched according to this designation. Reading means for reading the address book data corresponding to the specified character data from the plurality of address book data from the address book data storage means (C in the embodiment).
Print data storage unit 1 from address book memory 13 by PU1
(Corresponding to the process of reading out and setting the postal code, address, and name in 4) and the arithmetic numerals contained in the address data in the address book data read out by this reading means are replaced with Chinese numerals. Address data in the first print area corresponding to a predetermined mail item or the like.
The address data output means (corresponding to the processing of the print conversion processing unit 15 and the printer 19 of the embodiment) for expanding the format with the character size and printing out, and the name data in the address book data read by the reading means. , Name data output means for performing format development and printing out in a second printing area corresponding to the above-mentioned mail, etc., in a second character size larger than the first character size (printing of the embodiment) (Corresponding to the processing of the conversion processing unit 15 and the printer 19), and in addition to the printout of the text data,
It is characterized in that a format printout can be performed according to the address book data.

【0005】[0005]

【作用】この発明の手段の作用は次の通りである。先
ず、指定手段により検索対象となる文字データを任意に
指定する。すると読出手段は、この指定に応じて住所録
データ記憶手段が検索し、複数の住所録データのうちで
上記指定の文字データに対応する住所録データを住所録
データ記憶手段から読み出す。そして住所データ出力手
段は、この読出手段により読み出された住所録データに
おける住所データに含まれる算用数字を漢数字に置換す
ると共に、この置換された住所データを、予め決められ
た郵便物等に対応する第1の印字領域に第1の文字サイ
ズでフォーマット展開して印字出力し、また、氏名デー
タ出力手段は、上記読出手段により読み出された住所録
データにおける氏名データを、予め決められた上記郵便
物等に対応する第2の印字領域に、上記第1の文字サイ
ズよりも大きい第2の文字サイズでフォーマット展開し
て印字出力する。その結果、文章データの印字出力の他
に住所録データに従ったフォーマット印字出力が行なえ
る。従って、文章データ処理装置において、文章データ
の処理(入力、印字出力等)を行な得るのみならず、オ
ペレータの所望する住所録データを、郵便物等の宛名印
字として最適なフォーマットで印字出力することを、簡
易に、しかも必要に応じて行なうことができる。
The operation of the means of the present invention is as follows. First, the character data to be searched is arbitrarily specified by the specifying means. Then, the reading means retrieves the address book data storage means from the address book data storage means by searching the address book data storage means according to the designation, and reading the address book data corresponding to the designated character data among the plurality of address book data. Then, the address data output means replaces the arithmetic numerals contained in the address data in the address book data read by the reading means with Chinese numerals, and replaces the replaced address data with a predetermined mail or the like. The name data output means outputs the name data in the address book data read by the reading means in a predetermined manner in the first print area corresponding to Further, in the second print area corresponding to the above-mentioned mail, etc., the format is developed with the second character size larger than the first character size and is printed out. As a result, in addition to the text data printout, the format printout according to the address book data can be performed. Therefore, in the text data processing device, not only can the text data be processed (input, print output, etc.), but the address book data desired by the operator can be printed out in the optimum format for printing the address of mail or the like. This can be done easily and as needed.

【0006】[0006]

【実施例】以下、この発明を図1〜図4を参照して具体
的に説明する。葉書印字機能を備えた日本語ワードプロ
セッサに適用した例を示している。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be specifically described below with reference to FIGS. An example applied to a Japanese word processor with a postcard printing function is shown.

【0007】構成 図1はこの日本語ワードプロセッサの基本的なブロック
回路図である。図中11はキー入力部で、そのキーボー
ド上には氏名、郵便番号、住所等を入力する各種の文字
キー等の他、葉書印字モード指定キーPKが設けられて
いる。このキー入力部11から操作キーに対応して出力
されるキーコードデータはCPU(中央演算処理回路)
12に取り込まれ、その入力処理プログラムを指定す
る。
Structure FIG. 1 is a basic block circuit diagram of the Japanese word processor. In the figure, reference numeral 11 denotes a key input unit, on which a postcard printing mode designating key PK is provided in addition to various character keys for inputting a name, postal code, address and the like. The key code data output from the key input unit 11 corresponding to the operation key is the CPU (central processing unit).
12 to specify the input processing program.

【0008】CPU12は予め記憶されているマイクロ
プログラムにしたがって入力処理、かな漢字変換処理、
印字処理等を実行するもので、CPU12には文章メモ
リ13、印字データ格納部14が接続されている。
The CPU 12 executes an input process, a kana-kanji conversion process according to a microprogram stored in advance,
The CPU 12 is connected to a text memory 13 and a print data storage unit 14 for executing print processing and the like.

【0009】文章メモリ13は、氏名、住所、郵便番号
等の複数項目からなる一連のデータ(住所録データ)を
氏名別に記憶する住所録メモリとしても使用される。な
お、文章メモリ13に記憶される住所録データには差出
人本人の氏名、住所等をも記憶されている。印字データ
格納部14は文章メモリ13から読み出された1人分の
住所録データの郵便番号、住所、氏名を記憶保持するも
ので、ここに記憶された住所録データは、印字変換処理
部15に送られる。
The text memory 13 is also used as an address book memory for storing a series of data (address book data) consisting of a plurality of items such as name, address, and zip code for each name. The address book data stored in the text memory 13 also stores the name and address of the sender. The print data storage unit 14 stores and stores the zip code, address, and name of the address book data for one person read from the text memory 13. The address book data stored here is the print conversion processing unit 15. Sent to.

【0010】印字変換処理部15は印字データ格納部1
4に格納された住所録データを宛名フォーマットメモリ
16あるいは差出人フォーマットメモリ17の内容に応
じた出力フォーマットに変換して印字バッファ18に送
るものである。即ち、印字変換処理部15はCPU12
から出力される葉書印字モード/通常文章印字モードの
切換信号に応じて印字データ格納部14に格納されたデ
ータを葉書フォーマットに変換して印字バッファ18に
送るか、文章メモリ13から読み出された文章データを
CPU12を介して取り込みそのまま印字バッファ18
に送るかを制御する。また、印字変換処理部15はCP
U12から出力される宛名/差出人切換信号に応じて宛
名フォーマットメモリ16あるいは差出人フォーマット
メモリ17の内容を取り込み、印字データ格納部14か
らのデータをそれに応じたフォーマットに変換する。宛
名フォーマットメモリ16には葉書、封書等の郵便物の
宛名印字のための郵便番号、住所、氏名に関する印字サ
イズ、印字領域、印字ピッチ等の出力フォーマットを指
定するためのデータが記憶されている。また、差出人フ
ォーマットメモリ17には差出人印字のためのフォーマ
ットデータが宛名フォーマットメモリ16と同様に記憶
されている。
The print conversion processing unit 15 is a print data storage unit 1.
The address book data stored in No. 4 is converted into an output format according to the contents of the address format memory 16 or the sender format memory 17 and sent to the print buffer 18. That is, the print conversion processing unit 15 has the CPU 12
The data stored in the print data storage unit 14 is converted into a postcard format and sent to the print buffer 18 or read from the text memory 13 in accordance with the postcard print mode / normal text print mode switching signal output from Text data is taken in via the CPU 12 and the print buffer 18 is read as it is.
To send to. Further, the print conversion processing unit 15 uses the CP
The contents of the address format memory 16 or the sender format memory 17 are fetched in accordance with the address / sender switching signal output from U12, and the data from the print data storage unit 14 is converted into a corresponding format. The address format memory 16 stores data for designating an output format such as a postal code, an address, a print size relating to a name, a print area, a print pitch for printing an address of a mail such as a postcard or a letter. In addition, the sender format memory 17 stores format data for sender printing similarly to the address format memory 16.

【0011】印字バッファ18に転送された印字データ
はプリンタ19に送られて記録紙に印字される。なお、
プリンタ19はサーマルプリンタで構成され、葉書、封
書等は横長の状態でセットされる。
The print data transferred to the print buffer 18 is sent to the printer 19 and printed on recording paper. In addition,
The printer 19 is a thermal printer, and postcards, envelopes, etc. are set in a landscape orientation.

【0012】図2は文章メモリ13に記憶された住所録
データの入力フォーマットを示している。住所録データ
は図2に示すように、氏名、郵便番号、住所、電話番号
の各項目からなるもので、各項目データは読点マー
ク「、」で区切られ、最後に改行マーク
FIG. 2 shows an input format of the address book data stored in the text memory 13. As shown in Fig. 2, the address book data consists of items such as name, zip code, address, and telephone number. Each item data is separated by a punctuation mark "," and finally a line feed mark.

【外1】 を付して入力されたものである。ここで、住所録データ
に挿入されたデリミッタ・マーク「↓」、「↑」は住所
データが長い場合に行変えを行う位置に入力されたもの
で、デリミッタ・マーク「↓」はそれ以降の住所データ
をその行の予め指定された印字領域内における始端位置
に揃えて印字させることを指定し、また、デリミッタ・
マーク「↑」はそれ以降の住所データをその行の予め指
定された印字領域内における終端位置に揃えて印字させ
ることを指定する。即ち、デリミッタ・マーク「↓」は
プリンタ19に横長の状態でセットされている葉書に対
して住所データを左詰め(縦長の状態で見れば上に詰め
た状態)で印字すべきことを指定し、またデリミッタ・
マーク「↑」は住所データを右詰め(下に詰めた状態)
で印字すべきことを指定するマークである。なお、電話
番号は葉書には印字されないデータで、このデータがな
くとも葉書印字は行なわれる。また、スペースコード
[Outer 1] It is the one that was input with. Here, the delimiter marks “↓” and “↑” inserted in the address book data are input at positions where line changes are performed when the address data is long, and the delimiter mark “↓” is the address after that. Specifies that the data should be aligned and printed at the start position of the line within the specified print area.
The mark "↑" specifies that the address data after that is to be aligned and printed at the end position in the predesignated print area of the line. That is, the delimiter mark "↓" specifies that the address data should be printed on the left side of the postcard set in the printer 19 in the horizontally long state (when it is in the vertically long state, the address data is in the upper state). , Again delimiter
The mark "↑" is right justified address data (justified at the bottom)
It is a mark that specifies that should be printed with. The telephone number is data that is not printed on postcards, and postcards can be printed without this data. Also space code

【外2】 を適宜挿入することによって左詰め印字が指定されてい
ても挿入スペース分右方向に、また右詰め印字が指定さ
れていても挿入スペース分左方向に実際の印字位置をず
らすことができる。
[Outside 2] By appropriately inserting, it is possible to shift the actual print position to the right by the insertion space even if left-justified printing is designated, and to the left by the insertion space even if right-justified printing is designated.

【0013】動作 先ず、キー入力部11の葉書印字モード指定キーPKが
操作されると、葉書印字モードとなる。この葉書印字モ
ードにおいて、キー入力部11の文字キーを操作して宛
名が入力されると、その宛名に対応する住所録データが
文章メモリ13から検索され、その氏名、郵便番号、住
所が文章メモリ13から読み出されて印字データ格納部
14に格納される。そして、印字データ格納部14の内
容が印字変換処理部15に渡され、これによって印字変
換処理部15は先ず図3のフローにしたがって動作し、
印字データ格納部14内の住所を宛名用のフォーマット
に変換して印字バッファ18に送り、プリンタ19にセ
ットされている葉書に宛先の住所を印字させる。
Operation First, when the postcard print mode designation key PK is operated, the postcard print mode is set. In this postcard printing mode, when the address is input by operating the character keys of the key input unit 11, the address book data corresponding to the address is retrieved from the text memory 13, and the name, postal code, and address are written in the text memory. The data is read from the storage unit 13 and stored in the print data storage unit 14. Then, the contents of the print data storage unit 14 are passed to the print conversion processing unit 15, whereby the print conversion processing unit 15 first operates according to the flow of FIG.
The address in the print data storage unit 14 is converted to the address format and sent to the print buffer 18, and the postcard set in the printer 19 is printed with the address of the destination.

【0014】即ち、図3は住所印字動作を示したフロー
チャートである。ここで、図2に示すように記憶された
氏名「山田一郎」に対する住所を葉書に印字する場合を
例に挙げて宛名の住所印字動作を具体的に説明する。図
4はこの場合の印字例を示している。なお、図2に示す
ようにこの場合の住所データはデリミッタ・マークによ
って5つの行単位データに区切られている。そして、本
実施例においては一連の住所データを最大5行に分けて
印字可能である。また、宛名住所印字は、予め決められ
た葉書の所定印字領域内において、その1行目には最大
14文字、2行目〜5行目にはそれぞれ最大に文字印字
可能である。したがって、1行当たりの最大文字数は1
行目と2〜5行目によって夫々異なる。
That is, FIG. 3 is a flow chart showing the address printing operation. Here, the address printing operation of the address will be specifically described by taking as an example the case where the address for the stored name "Ichiro Yamada" is printed on the postcard as shown in FIG. FIG. 4 shows an example of printing in this case. As shown in FIG. 2, the address data in this case is divided into five line unit data by delimiter marks. In this embodiment, a series of address data can be divided into a maximum of 5 lines for printing. Further, the address / address printing can print a maximum of 14 characters on the first line and a maximum of characters on the second to fifth lines in a predetermined print area of a predetermined postcard. Therefore, the maximum number of characters per line is 1.
It differs depending on the second line and the second to fifth lines.

【0015】<1行目の住所印字>先ず、宛先住所の印
字動作が開始されると、印字バッファ18の住所印字位
置の先頭行および先頭桁に相当するアドレスが指定され
(ステップS1)、そして、印字データ格納部14内の
住所データがその先頭文字から1文字分読み出される。
(ステップS2)。この場合、読み出されたデータがデ
リミッタ・マーク「↑」、「↓」か否かが調べられ(ス
テップS3、S4)、次で、住所終了、即ち、読み出さ
れたデータが住所の終了を示す読点マーク「、」かある
いは改行マーク
<Address Printing on First Line> First, when the printing operation of the destination address is started, the addresses corresponding to the first line and the first digit of the address printing position of the print buffer 18 are designated (step S1), and The address data in the print data storage unit 14 is read for one character from the first character.
(Step S2). In this case, it is checked whether or not the read data is the delimiter marks “↑” and “↓” (steps S3 and S4), and then the address end, that is, the read data indicates the end of the address. Indication mark "," or line break mark

【外1】かが調べられる(ステップS5)いま、1行目
の最初の文字が読み出された場合であるから、その文字
が印字バッファ18の指定位置に格納される(ステップ
S6)。そして、1行当たりの最大文字数分、即ち、1
行目では14文字分印字バッファ18に格納したかが調
べられる。(ステップS7)、いま、1行の1文字目が
格納されたので、ステップS2に戻り、次の文字が読み
出される。このような動作はデリミッタ・マーク「↑」
あるいは「↓」が読み出されるまで、または住所終了あ
るいは指定行の最大文字数が検出されるまで繰り返さ
れ、住所データが1文字ずつ印字バッファ18の指定位
置に格納されてゆく。これによって、印字バッファ18
には1行目の住所データが順次格納される。なお、ステ
ップS7で最大文字数が検出されると、この時点で文字
格納処理は禁止され、ステップS30に進み、印字バッ
ファ18の内容がプリンタ19に送られて印字される
為、1行目には最大14文字、2〜5行目には最大12
文字しか印字されず、それをオーバした文字は印字され
ない。しかして、いま1行目の住所データ「東京都昭島
市」の5文字が印字バッファ18に格納された後、次に
デリミッタ・マーク「↑」が検出される。この結果、ス
テップS8に進み、いま印字バッファ18に格納したデ
ータが先頭行のデータであるかが調べられるが、いま1
行目であるから先ず、そのデータを印字する為にステッ
プS10に進み、印字バッファ18の内容がプリンタ1
9に送られ、宛名用のフォーマットにしたがって先頭行
の住所データ「東京都昭島市」が葉書に倍角で印字され
る(図4参照)。この場合、予め決められている葉書に
対する宛先住所の所定印字領域内において、その先頭行
エリアの先頭桁から1行目の住所データが順次印字され
る為、1行目の住所データはその行の始端側に詰めた形
で印字される。
[External 1] is checked (step S5) Now, since the first character of the first line has been read, that character is stored in the designated position of the print buffer 18 (step S6). And the maximum number of characters per line, that is, 1
In the line 1, it is checked whether 14 characters have been stored in the print buffer 18. (Step S7) Since the first character of one line has been stored, the process returns to step S2 and the next character is read. This kind of operation is indicated by the delimiter mark "↑".
Alternatively, the process is repeated until "↓" is read or until the end of the address or the maximum number of characters in the designated line is detected, and the address data is stored character by character in the designated position of the print buffer 18. As a result, the print buffer 18
The address data of the first row is sequentially stored in. When the maximum number of characters is detected in step S7, the character storage processing is prohibited at this point, and the process proceeds to step S30, where the contents of the print buffer 18 are sent to the printer 19 and printed, so that the first line Maximum of 14 characters, maximum of 12 on lines 2-5
Only characters are printed, and characters that exceed it are not printed. Then, after the five characters of the address data "Akishima-shi, Tokyo" of the first line are stored in the print buffer 18, the delimiter mark "↑" is detected next. As a result, the process proceeds to step S8 to check whether the data currently stored in the print buffer 18 is the data of the first line.
Since this is the first line, the process first advances to step S10 to print the data, and the contents of the print buffer 18 are stored in the printer 1.
The address data "Akishima-shi, Tokyo" is printed on the postcard in double size according to the address format (see FIG. 4). In this case, since the address data on the first line from the first digit of the first line area is sequentially printed in the predetermined print area of the destination address for the postcard, which is predetermined, the address data on the first line is It is printed in a form that is packed on the starting side.

【0016】<2行目の住所印字>このようにして先頭
行の住所データが葉書に印字されると、印字バッファ1
8の住所印字行を改行して次の行をアドレス指定すると
共に、先頭行の先頭桁より2桁下げた位置をアドレス指
定する(ステップS11)。次に、2行目の住所データ
の文字数がカウントされる。先ず、印字変換処理部15
内に設けられている文字カウンタAの値がクリアされ
(ステップS12)、次で印字データ格納部14に対す
る現在のメモリアドレスが退避される(ステップS1
3)。このようなイニシャライズ処理の実行後、印字デ
ータ格納部14から次の文字が読み出され(ステップS
14)、それがデリミッタ・マークあるいは住所終了を
示す読点マーク「、」か改行マーク
<Address printing of the second line> When the address data of the first line is printed on the postcard in this way, the print buffer 1
The address print line 8 is line-feeded to address the next line, and the position lower than the first digit of the first line by two digits is addressed (step S11). Next, the number of characters of the address data on the second line is counted. First, the print conversion processing unit 15
The value of the character counter A provided therein is cleared (step S12), and then the current memory address for the print data storage unit 14 is saved (step S1).
3). After execution of such initialization processing, the next character is read from the print data storage unit 14 (step S
14), which is a delimiter mark or a punctuation mark "," indicating the end of an address or a line feed mark

【外1】かが調べられ(ステップS15、S16)、そ
の結果、デリミッタ・マークあるいは読点マーク等でな
ければ、文字カウンタAの値を「+1」するインクリメ
ント処理(ステップS17)が行なわれたのちステップ
S14に戻る。このような動作はデリミッタ・マークあ
るいは読点マーク等が検出されるまで繰り返される結
果、文字カウンタAには2行目の文字数がセットされ
る。いま、2行目の文字数は図2に示すようにスペース
を含めて7文字であるから、文字カウンタAには「7」
がセットされる。なお、デリミッタ・マークあるいは読
点マーク等が検出されると、ステップS18に進む。い
ま2行目の文字数がカウントされると、次にデリミッタ
・マーク「↑」が検出される。ここで、本実施例におい
ては住所印字の2行〜5行目は最大12文字印字可能な
為、この最大印字文字数「12」から文字カウンタAで
計数された計数値「7」を引いた値「5」を印字変換処
理部15内のBレジスタにセットし、このBレジスタ内
の文字数分「5」だけ印字バッファ18の先頭桁からス
ペースコードが順次格納される(ステップS19)。そ
して、上述のステップS13で退避させておいたメモリ
アドレスを復帰させ(ステップS20)、そのメモリア
ドレスに応じて印字データ格納部14をアドレス指定
し、その2行目の先頭文字から1文字読み出し(ステッ
プS21)、印字バッファ18に格納する(ステップS
22)。そして文字カウンタAの値を−1するデクリメ
ント処理(ステップS23)を行ったのち、その値が
「0」になったかを調べ(ステップS24)、その値が
「0」になるまでステップS21に戻り、上述の動作が
繰り返される。この結果、印字バッファ18にはまずそ
の先頭から5文字分のスペースコードに続いて「緑町4
丁目」が格納され、次で2文字分のスペースコードが格
納される。そして印字バッファ18の内容はプリンタ1
9に送られ、宛名用のフォーマットで葉書の2行目に倍
角印字される(ステップS25)。この場合、2行目の
行エリアの先頭から5文字分のスペース印字が行なわ
れ、続いて「緑町4丁目」が印字され、最後に2文字分
のスペース印字が行なわれるため、図4に示すように2
行目の住所データは2文字分の空白をあけてその行の終
端側に詰めた状態で印字される。
[External 1] is checked (steps S15 and S16), and if the result is not a delimiter mark, a reading mark, or the like, an increment process (step S17) for incrementing the value of the character counter A by "+1" is performed. It returns to step S14. Such an operation is repeated until a delimiter mark, a reading mark, or the like is detected, and as a result, the number of characters in the second line is set in the character counter A. Since the number of characters in the second line is 7 characters including spaces as shown in FIG. 2, the character counter A has "7".
Is set. When a delimiter mark or a reading mark is detected, the process proceeds to step S18. When the number of characters in the second line is counted, the delimiter mark "↑" is detected next. Here, in the present embodiment, since the second to fifth lines of the address printing can print a maximum of 12 characters, a value obtained by subtracting the count value "7" counted by the character counter A from the maximum print character number "12". "5" is set in the B register in the print conversion processing unit 15, and the space code is sequentially stored from the first digit of the print buffer 18 by "5" for the number of characters in the B register (step S19). Then, the memory address saved in the above step S13 is restored (step S20), the print data storage unit 14 is addressed according to the memory address, and one character is read from the first character of the second line ( In step S21, the print buffer 18 is stored (step S21).
22). Then, after decrementing the value of the character counter A by -1 (step S23), it is checked whether the value becomes "0" (step S24), and the process returns to step S21 until the value becomes "0". The above operation is repeated. As a result, the print buffer 18 starts with a space code of 5 characters from the beginning, followed by "Midorimachi 4
"Chome" is stored, and the space code for two characters is stored next. The content of the print buffer 18 is the printer 1
9, and double-width printing is performed on the second line of the postcard in the address format (step S25). In this case, a space for 5 characters is printed from the beginning of the second line area, "Midorimachi 4-chome" is printed next, and a space for 2 characters is printed at the end. Like 2
The address data of the line is printed with a space for two characters left and padded at the end of the line.

【0017】<3行目の住所印字>このようにして2行
目の住所データが印字されると、住所の5行全ての印字
が終了したかが調べられる(ステップS26)。ここ
で、本実施例においては最大5行に分けて住所データが
印字可能であり、ステップS26はこれを検出する為の
ものである。なお、ここで、印字終了が検出されると、
このフローから抜けて次の名前印字処理へ移行する。い
ま、2行目の印字が終了した時点であるから、ステップ
S27に進み、上記ステップS11と同様の改行・桁位
置の指定が行なわれる。そして印字データ格納部14か
ら次の文字が読み出され(ステップS28)、それがデ
リミッタ・マーク「↑」であるかが調べられる(ステッ
プS29)。ここで、図2に示すように次の文字はデリ
ミッタ・マーク「↑」であるから、再びステップS8に
進むが、いま先頭行ではないので、ステップS9に進
み、前回検出されたデリミッタ・マークが「↓」であっ
たかが調べられる。いま、前回のデリミッタ・マークは
「↑」であったので、この場合にはステップS11に進
み、印字バッファ18の改行・桁指定が行なわれる。そ
して、3行目の住所データ「1−4」の文字数「3」が
計数され(ステップS12〜S17)、そして1行当た
りの最大文字数「12」から文字数「3」を引いた数
「9」だけスペースコードが印字バッファ18に格納さ
れ(ステップS18、S19)、次で3行目の住所デー
タが印字バッファ18に格納される(ステップS20〜
S24)。この結果、3行目の住所データはその行の終
端側に詰めた形で倍角印字されるが、この場合、3行目
の住所データは番地であるから、自動的に漢数字に変換
されて印字される(図4参照)。
<Address printing of third line> When the address data of the second line is printed in this manner, it is checked whether printing of all five lines of the address is completed (step S26). Here, in the present embodiment, the address data can be printed in a maximum of 5 lines, and step S26 is for detecting this. When the end of printing is detected,
The process exits from this flow and proceeds to the next name printing process. Now, since the printing of the second line has been completed, the process proceeds to step S27, and the line feed / digit position is designated as in step S11. Then, the next character is read from the print data storage unit 14 (step S28), and it is checked whether or not it is the delimiter mark "↑" (step S29). Here, as shown in FIG. 2, since the next character is the delimiter mark "↑", the process proceeds to step S8 again, but since it is not the first line, the process proceeds to step S9, and the previously detected delimiter mark is You can check if it was "↓". Since the previous delimiter mark was ".uparw.", The process advances to step S11 in this case, and the line feed / digit designation of the print buffer 18 is performed. Then, the number of characters "3" of the address data "1-4" on the third line is counted (steps S12 to S17), and the number "9" is obtained by subtracting the number "3" of characters from the maximum number "12" of characters per line. The space code is stored in the print buffer 18 (steps S18 and S19), and then the address data of the third line is stored in the print buffer 18 (steps S20-).
S24). As a result, the address data on the third line is double-width printed in a form packed at the end of the line. In this case, since the address data on the third line is an address, it is automatically converted to Chinese numerals. It is printed (see FIG. 4).

【0018】<4行目の住所印字>いま、3行目の印字
終了時点であるから、ステップS27で改行、桁指定が
行われたのち印字データ格納部14から次の文字が読み
出されてデリミッタ・マーク「↑」であるかの判断が行
なわれる。いま、デリミッタ・マーク「↓」が検出され
るので、ステップS2に進み、以下、次のデリミッタ・
マークが検出されるまで4行目の住所データが印字バッ
ファ18に順次格納される(ステップS6)。そして、
4行目の住所デーテが全て印字バッファ18に格納され
ると、次にデリミッタ・マーク「↑」がステップS4で
検出されるので、ステップS30に進み、印字バッファ
18に格納されたデータがプリンタ19に送られて4行
目に倍角印字される。この場合、4行目の住所データは
その行の始端側に詰めた形で印字される。
<Address printing on the 4th line> Since the printing of the 3rd line is finished, the next character is read from the print data storage unit 14 after line feed and digit designation are performed in step S27. It is determined whether the delimiter mark is "↑". Since the delimiter mark "↓" is now detected, the process proceeds to step S2, and the following delimiter mark
The address data of the fourth line is sequentially stored in the print buffer 18 until the mark is detected (step S6). And
When all the address data of the fourth line is stored in the print buffer 18, the delimiter mark “↑” is detected next in step S4, and therefore the process proceeds to step S30, and the data stored in the print buffer 18 is stored in the printer 19. And double-width printing is performed on the 4th line. In this case, the address data on the fourth line is printed in a form of being packed on the starting end side of the line.

【0019】<5行目の住所印字>このようにして4行
目の印字が終ると、ステップS31に進み、5行全ての
印字が終了したかの判断が行なわれるが、いま4行印字
が終了した時点であるから、ステップS32で上述と同
様の改行・桁位置の指定が行なわれたのち、ステップS
2に進む。これによって、次にステップS5で住所終了
が検出されるまで、5行目の住所データが印字バッファ
18に順次格納されてゆく。その後、ステップS5で住
所の終了が検出されるので、ステップS30に進み、5
行目の住所データが5行目に倍角で印字される。この場
合、5行目の印字データは、その行の始端側に詰めて印
字されるが、この5行目の住所データにはその先頭から
3文字分のスペースコードが挿入されているので、実際
には行の始端位置から3文字分ずれて印字される。
<Address printing of the fifth line> When the printing of the fourth line is completed in this way, the process proceeds to step S31, where it is determined whether all five lines have been printed. Since it is the end time, after the line feed / digit position is designated in the same manner as described above in step S32, step S32 is performed.
Go to 2. As a result, the address data of the fifth line is sequentially stored in the print buffer 18 until the end of the address is detected in step S5. After that, since the end of the address is detected in step S5, the process proceeds to step S30 and 5
The address data on the line is printed on the fifth line in double-width. In this case, the print data of the 5th line is printed at the beginning of the line, but since the space code of 3 characters from the beginning is inserted in the address data of the 5th line, Is printed with a shift of 3 characters from the start position of the line.

【0020】このようにして5行目の住所データが印字
されると、ステップS31で印字終了が検出されるの
で、このフローから抜けて次の名前印字処理へ移行す
る。
When the address data on the fifth line is printed in this way, the end of printing is detected in step S31, and the flow exits from this flow and shifts to the next name printing process.

【0021】なお、宛名の氏名印字は4倍角で自動的に
均等割付けされて印字される。この場合、最大12文字
しか印字されず、オーバした文字は印字されない。ま
た、宛先の郵便番号は2倍角で印字される。更に、差出
人住所は上述の図3のフローにしたがって印字される
が、全角文字で印字される。また差出人の氏名は全角文
字で自動的に均等割付けされて印字される。
In addition, the printing of the name and address of the address is automatically and evenly printed at the quadrangle. In this case, only a maximum of 12 characters are printed and the overwritten characters are not printed. Further, the postal code of the destination is printed in double size. Further, the sender address is printed according to the flow of FIG. 3 described above, but is printed in full-width characters. Also, the sender's name is automatically evenly printed with double-byte characters.

【0022】なお、上記実施例では葉書印字に対して説
明したが、封書に対しても同様に実施可能であり、例え
ば、葉書、封書の切換えを制御することによって何れに
おいても選択的に印字することができる。
In the above embodiment, the postcard printing has been described, but the present invention can be similarly applied to a postcard. For example, by controlling switching between a postcard and a postcard, the postcard is selectively printed. be able to.

【0023】[0023]

【発明の効果】本発明によれば、文章データ処理装置に
おいて、文章データの処理(入力、印字出力等)を行な
得るのみならず、オペレータの所望する住所録データ
を、郵便物等の宛名印字として最適なフォーマットで印
字出力することを、簡易に、しかも必要に応じて行なう
ことができる。
According to the present invention, in the text data processing device, not only can the text data be processed (input, print output, etc.), but the address book data desired by the operator can be sent to the address of the mail or the like. Printing out in an optimum format for printing can be performed easily and as needed.

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

【図1】この発明を適用した葉書印字機能付ワードプロ
セッサの基本的なブロック回路図。
FIG. 1 is a basic block circuit diagram of a word processor with a postcard printing function to which the present invention is applied.

【図2】図1で示した文章メモリ13に記憶されている
葉書印字用の入力フォーマットを示す図。
FIG. 2 is a diagram showing an input format for printing a postcard stored in a text memory 13 shown in FIG.

【図3】住所印字動作を説明するためのフローチャー
ト。
FIG. 3 is a flowchart illustrating an address printing operation.

【図4】葉書印字フォーマットを示した図。FIG. 4 is a diagram showing a postcard printing format.

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

11 キー入力部 12 CPU 13 文章メモリ 14 印字データ格納 15 印字変換処理 16 宛名フォーマットメモリ 17 差出人フォマットメモリ 18 印字バッファ 19 プリンタ 11 Key Input Section 12 CPU 13 Text Memory 14 Print Data Storage 15 Print Conversion Processing 16 Address Format Memory 17 From Format Memory 18 Print Buffer 19 Printer

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】文章データの記憶、及び印字出力を行なう
文章データ処理装置において、宛名の住所データ及び氏
名データ等を含む住所録データを複数記憶する住所録デ
ータ記憶手段と、検索対象となる文字データを任意に指
定する指定手段と、この指定に応じて、上記住所録デー
タ記憶手段を検索し、上記複数の住所録データのうちで
上記指定の文字データに対応する住所録データを、上記
住所録データ記憶手段から読み出す読出手段と、この読
出手段により読み出された住所録データにおける住所デ
ータに含まれる算用数字を漢数字に置換すると共に、こ
の置換された住所データを、予め決められた郵便物等に
対応する第1の印字領域に第1の文字サイズでフォーマ
ット展開して印字出力する住所データ出力手段と、上記
読出手段により読み出された住所録データにおける氏名
データを、予め決められた上記郵便物等に対応する第2
の印字領域に、上記第1の文字サイズよりも大きい第2
の文字サイズでフォーマット展開して印字出力する氏名
データ出力手段と、を備え、上記文章データの印字出力
の他に、上記住所録データに従ったフォーマット印字出
力を行なえるようにしたことを特徴とする文章データ処
理装置。
1. Storage of text data and printing output
In the text data processing device, the address data of the address and the name of the person
Address book data that stores multiple address book data including name data
Data storage means and the character data to be searched
Specifying means to specify the address book data
Search the data storage means,
The address book data corresponding to the specified character data above is
A reading means for reading from the address book data storage means and this reading means
The address data in the address book data read by the output means
Replace the arithmetic numbers included in the data with Chinese numerals, and
Replace the replaced address data with a predetermined mail item, etc.
Format in the corresponding first print area with the first character size
Address data output means for developing and printing out
Name in the address book data read by the reading means
The second data corresponding to the above-mentioned predetermined mail items, etc.
In the print area of the second character larger than the first character size
Name to be printed out by expanding the format with the character size of
A data output means, and prints out the text data.
In addition to the above, the format printout according to the above address book data
Text data processing characterized by being able to perform
Processing equipment.
JP4047618A 1992-02-04 1992-02-04 Text data processing device Expired - Lifetime JPH06102389B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4047618A JPH06102389B2 (en) 1992-02-04 1992-02-04 Text data processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4047618A JPH06102389B2 (en) 1992-02-04 1992-02-04 Text data processing device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP4047617A Division JPH06102388B2 (en) 1992-02-04 1992-02-04 Address data printer

Publications (2)

Publication Number Publication Date
JPH0589131A JPH0589131A (en) 1993-04-09
JPH06102389B2 true JPH06102389B2 (en) 1994-12-14

Family

ID=12780210

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4047618A Expired - Lifetime JPH06102389B2 (en) 1992-02-04 1992-02-04 Text data processing device

Country Status (1)

Country Link
JP (1) JPH06102389B2 (en)

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56164472A (en) * 1980-05-23 1981-12-17 Toshiba Corp Issuing machine of fixed form document by kanji (chinese character)
JPS5710944A (en) * 1980-06-24 1982-01-20 Toshiba Corp Wire bonder
JPS57114980A (en) * 1981-01-08 1982-07-17 Casio Comput Co Ltd Document editing system
JPS59145168A (en) * 1983-02-09 1984-08-20 Usac Electronics Ind Co Ltd Printing system for postal code number
JPS59170934A (en) * 1983-03-17 1984-09-27 Fujitsu Ltd Controlling method of printing of document forming device
JPS59188738A (en) * 1983-04-11 1984-10-26 Kazuo Kai Address retrieving device
JPS59220832A (en) * 1983-05-27 1984-12-12 Fujitsu Ltd Postal card printing system of word processor
JPS60100264A (en) * 1984-09-28 1985-06-04 Hitachi Ltd Device for retrieving information

Also Published As

Publication number Publication date
JPH0589131A (en) 1993-04-09

Similar Documents

Publication Publication Date Title
US5050101A (en) Printing apparatus
JP2855207B2 (en) Form output device
JPS6174063A (en) Data output system
JPH0137783B2 (en)
JPH06102389B2 (en) Text data processing device
JPH06102388B2 (en) Address data printer
US6133899A (en) Printing device for displaying a title of a stored text
JPH0426487B2 (en)
JPS62115519A (en) Regular format printing system
JPH038063A (en) Document processor
JP2500554B2 (en) Postcard printing processor
JPH056373A (en) Address data printing device
JPS6389925A (en) Word processor
JPS62115520A (en) Regular format printing system
JP2787822B2 (en) Document processing device
JPH0666066B2 (en) Document processor with furigana addition function
JPH0615317Y2 (en) Document processor
JPH06348702A (en) Method and device for character processing
JPH0242563A (en) Document producing/editing device
JPS62266616A (en) Continuous postcard printing system in document preparing device
JPS6320621A (en) Editing printer
JPH05342207A (en) Format specifying method for word processor
JPH0612414A (en) Address printing device
JPH10232861A (en) Document output device
JPH04257056A (en) Document processor