JPS61175761A - Recording form converting method - Google Patents

Recording form converting method

Info

Publication number
JPS61175761A
JPS61175761A JP60015439A JP1543985A JPS61175761A JP S61175761 A JPS61175761 A JP S61175761A JP 60015439 A JP60015439 A JP 60015439A JP 1543985 A JP1543985 A JP 1543985A JP S61175761 A JPS61175761 A JP S61175761A
Authority
JP
Japan
Prior art keywords
recording format
conversion
code
recording form
mode
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
JP60015439A
Other languages
Japanese (ja)
Inventor
Kazuhiro Nakamura
和弘 中村
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 JP60015439A priority Critical patent/JPS61175761A/en
Publication of JPS61175761A publication Critical patent/JPS61175761A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To select a conversion mode in response to the purpose of application of document information and to convert the selected mode to a desired recording form, by supplying selectively only a specific code of the document information to a deletion means and a conversion means and converting the recording form. CONSTITUTION:A flexible disk recorded on a recording form A is set to an FD of the source side; while a flexible disk to be written in a recording form set after conversion is set to an FD of the other side. Then a replacement mode for conversion into a recording form B or a deletion mode for conversion into a recording form C is designated. Then coincidence is checked between a read-out character code and an input code within a TBL3a in a RAM3. when the coincidence is obtained, the input code is converted into an output code of the TBL3a in response to a designated mode. Otherwise the character code is read out with nothing done and converted into the data on the recording form B or C.

Description

【発明の詳細な説明】 [技術分野] 本発明は、記録形式の異なった文書情報、例えば、電子
タイプライタ、ワードプロセッサ等で作成された文書情
報間の互換性を得ることのできる記録形式変換方法に関
する。
[Detailed Description of the Invention] [Technical Field] The present invention provides a recording format conversion method that can obtain compatibility between document information in different recording formats, for example, document information created with electronic typewriters, word processors, etc. Regarding.

[従来技術] 記録形式の異なった文書処理装置間において、文書の互
換性を得るためには、特定の規則に従って文どの記録形
式を変換する処理装置が必要となる。従来、この種の装
置では、第1の記録形式で記録された文書情報を第2の
記録形式に変換する場合1例えば1機種によって異なる
ボールド・フェイス(bo ld faceNI能等の
機能コードは、第1の記録形式から、第2の記録形式に
適合する機能コードへ変換処理を行ない、スペース、キ
ャリジ会リターンコードのような標準とされる機能は両
者の形式に共通である場合、そのままの機能として送出
されていた。
[Prior Art] In order to obtain document compatibility between document processing devices with different recording formats, a processing device that converts the recording format of sentences according to specific rules is required. Conventionally, in this type of device, when converting document information recorded in a first recording format to a second recording format, 1. Performs conversion processing from the first recording format to a function code compatible with the second recording format, and if standard functions such as spaces and carriage return codes are common to both formats, they will be converted as they are. It had been sent out.

ここで、第1の記録形式がファイナル形式、即ち、文書
作成装置がキーボード等の入力手段による入力情報に基
づき編集の過程でソフト的なスペースコード、リターン
コードを挿入し、既に編集済の形式をなす場合、このソ
フトスペースコード、リターンコードを単なる入力情報
と同一のスペースリターンコードとして変換し、第2の
記録形式へ送出すると、第1の記録形式の文書印字イメ
ージを第2の記録形式で実現することができる。しかし
、第2の記録形式に変換後、該当文書情報に編集を加え
る必要の生じた場合には、第1の記録形式において編集
の過程で挿入されたソフト的なスペースリターンコード
が通常のスペースリターンコードに変換されており、編
集時に他のスペースリターンコードと区別することがで
きず、左右マージン等を変更しても、新しいフォーマッ
トに編集し直すことは難しいという欠点があった。
Here, the first recording format is the final format, that is, the document creation device inserts software space codes and return codes in the editing process based on input information from input means such as a keyboard, and converts the already edited format into a final format. In this case, if this soft space code and return code are simply converted into a space return code that is the same as the input information and sent to the second recording format, the document print image of the first recording format can be realized in the second recording format. can do. However, if it becomes necessary to edit the document information after converting to the second recording format, the software space return code inserted during the editing process in the first recording format will be changed to the normal space return code. It has been converted into a code, so it cannot be distinguished from other space return codes when editing, and even if you change the left and right margins, it is difficult to re-edit to a new format.

[目的] 本発明は上記欠点に鑑みなされたもので、変換後の文書
情報の使用目的に応じて変換モードを選択し、使用すべ
き記録形式に任意に変換することのできる記録形式変換
方法を提案することを目的とする。
[Objective] The present invention was made in view of the above-mentioned drawbacks, and provides a recording format conversion method that allows converting document information to be arbitrarily converted to the desired recording format by selecting a conversion mode depending on the purpose of use of the converted document information. The purpose is to make suggestions.

[実施例] 以下、添付図面に従って1本発明に係る一実施例を詳細
に説明する。
[Embodiment] Hereinafter, one embodiment of the present invention will be described in detail with reference to the accompanying drawings.

第1図は本発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing one embodiment of the present invention.

図中1は本実施例の主制御を掌るセントラルブロセツシ
ングユニット(以下CPUと称す)であり、システムバ
ス(System Bus) l lを介して。
In the figure, reference numeral 1 denotes a central processing unit (hereinafter referred to as CPU) which is in charge of the main control of this embodiment, via a system bus.

互いに接続された後述する各構成要素を制御する。2は
CPUIの処理手順を記憶する制御メモリとして用いら
れるリードオンリメモリ(ROM)、3gfランダムア
クセスメモリ(RAM) であり、プログラム、各種デ
ータの一時記憶のワークメモリとして使用される。また
RAM3には後述する変換テーブル(TBL)3aが含
まれる。
Controls each component that is connected to each other and will be described later. Reference numeral 2 indicates a read-only memory (ROM) used as a control memory for storing CPU processing procedures, and a 3gf random access memory (RAM), which is used as a work memory for temporary storage of programs and various data. The RAM 3 also includes a conversion table (TBL) 3a, which will be described later.

4は文章等のデータを表示し、カーソルにより文字処理
位置指定を行なうCRT、5a及び5bは作成・編集し
た文章等を記憶し保存を行なうフレキシブルディスク装
置より成る外部メモリ(以下FDと称す)、6はキーボ
ード(以下KBと称す)であり、CPUIに指示を与え
る各種キーが配置されている。7はCRT4に表示すべ
き表示データを保持するVRAM、8はCRT4の表示
制御を行なうCRTコントローラ(以下CRTCと称す
)、9はFD5の制御装置!(以下FDCと称す)、l
OはKH2の制御を行なうキーボードコントローラ(以
下KBと称す)である。
Reference numeral 4 indicates a CRT for displaying data such as text and specifying character processing positions using a cursor; 5a and 5b are external memories (hereinafter referred to as FD) consisting of flexible disk devices for storing and storing created and edited texts, etc.; Reference numeral 6 denotes a keyboard (hereinafter referred to as KB) on which various keys for giving instructions to the CPUI are arranged. 7 is a VRAM that holds display data to be displayed on the CRT 4, 8 is a CRT controller (hereinafter referred to as CRTC) that controls the display of the CRT 4, and 9 is a control device for the FD 5! (hereinafter referred to as FDC), l
O is a keyboard controller (hereinafter referred to as KB) that controls KH2.

いま、フロッピーディスクに記録される文書記録形式A
と文書記録形式Bが存在した場合、そのままでは両者を
同一の文書処理装置で読み込み、処理することはできな
い、この実現には第2図に示すように、記録形式Aのフ
ロッピーディスクFAと記録形式Bのフロッピーディス
クFB又は記録形式CのフロッピーディスクFCとの変
換が必要となる。
Currently, document recording format A is recorded on floppy disks.
and document recording format B, it is not possible to read and process both with the same document processing device as is.To achieve this, as shown in Figure 2, a floppy disk FA of recording format A and a recording format It is necessary to convert the data into a B floppy disk FB or a recording format C floppy disk FC.

以下、第3図に示す出力フォーマットに対する各記録形
式による記録データの差異を説明する。
Hereinafter, differences in recorded data according to each recording format with respect to the output format shown in FIG. 3 will be explained.

第3図においてLFは左マージン位置、RMは右マージ
ン位置を示し、単語はこのLFとRMの中央部に出力さ
れている(インデンテーションされている)状態を示し
ている。
In FIG. 3, LF indicates the left margin position and RM indicates the right margin position, and the word is output (indented) at the center of the LF and RM.

記録形式CはオペレータがKH2より入力した文章文字
コードを何ら加工していない、そのままの状態に対応す
るものであり、この記録形式Cによる実際の記録データ
の詳細を第4図に示す。
Recording format C corresponds to the text character code input by the operator from KH2 without any processing, and the details of the actual recorded data according to this recording format C are shown in FIG.

次に記録形式A(ファイナル形式)は文書作成装置によ
り既に編集が行なわれ、文書情報には文書作成時のマー
ジン設定等に従って、ソフト的なスペース、リターンコ
ードが挿入され、印字時においてこの編集されたフォー
マットに従って記録される記録形式であり、この記録形
式Aによる実際の記録データの詳細を第5図に示す。
Next, recording format A (final format) has already been edited by the document creation device, and software spaces and return codes are inserted into the document information according to the margin settings etc. at the time of document creation, and this editing is done at the time of printing. This is a recording format in which data is recorded in accordance with the format A, and details of actual recorded data according to this recording format A are shown in FIG.

図中51は編集時に挿入されたソフトスペース、52は
キーボード等より入力されたスペース、53は編集時に
挿入されたソフトリターン、54はキーボード等より入
力されたリターンである。この記録形式Aはレフトマー
ジン機能及びライトマージン機能を有していない文書処
理装置によりIJ4’Jされた記録形式である。
In the figure, 51 is a soft space inserted during editing, 52 is a space input from a keyboard, etc., 53 is a soft return inserted during editing, and 54 is a return input from a keyboard, etc. This recording format A is a recording format subjected to IJ4'J by a document processing device that does not have a left margin function or a right margin function.

また記録形式Bは第3図に示す出力フォーマットそのま
まの記録形式であり、ソフトスペース、ソフトリターン
等の特殊コードは存在せず、記録形式Aにおけるソフト
スペース、ソフトリターンコードを通常のスペース、リ
ターンコードに変換した記録形式である。
Also, recording format B is a recording format that is the same as the output format shown in Figure 3, and there are no special codes such as soft spaces and soft returns. This is the recording format converted to .

以下1以上の構成を有する記録形式において、記録形式
Aより記録形式B又はCに変換する本実施例の動作を第
7図のフローチャートを参照して説明する。
The operation of this embodiment for converting from recording format A to recording format B or C in recording formats having one or more configurations will be described below with reference to the flowchart of FIG.

まずSlでKH2よりキーが入力されるのを待ち、キー
が入力されると32に進み、記録形式変換キー人力か否
かを調べる。ここで記録形式変換キー人力でなければキ
ー人力に対応した処理を実行し、記録形式変換キー人力
であればS3に進み、ソース側のFDに変換すべき記録
形式、即ち記録形式Aで記録されたフレキシブルディス
クがセットされているか否かを調べる。このソース側の
FDは5a又は5bのどちらでもよく、予めどちらか一
方に設定しておくこともできる。
First, wait for a key input from KH2 at Sl, and when the key is input, proceed to 32 to check whether the recording format conversion key was manually input. If the recording format conversion key is not manually operated, the processing corresponding to the key is executed, and if the recording format conversion key is manually operated, the process proceeds to S3, and the recording format to be converted, that is, recording format A, is recorded on the source side FD. Check whether a flexible disk is set. The FD on the source side may be either 5a or 5b, and can be set to either one in advance.

フレキシブルディスクがセットされていなければS4で
ディスクの挿入セットを指示しs3に戻る。ここでディ
スクがセットされればS5に進み、他方のFDに変換後
の記録形式で書き込むべきフレキシブルディスクがセッ
トされているか否かを調へ、セットされていなければS
6でディスクのFDへの挿入セットを指示する。そして
ディスクがセットされると57に進み、変換モードとし
て記録形式Bに変換する置換モード、又は記録形式Cに
変換する削除モードのいずれかの指定がなされているか
否かを調べ、指定入力がなければS8に進み、変換モー
ドの入力を指示する。そして指示入力があると59に進
む。
If the flexible disk is not set, an instruction to insert and set the disk is given in S4, and the process returns to S3. If the disk is set here, the process advances to S5, where it is checked whether or not a flexible disk to be written in the converted recording format is set on the other FD, and if it is not set, S5 is performed.
Step 6 instructs to insert the disk into the FD. When the disc is set, the process proceeds to step 57, where it is checked whether the conversion mode is either a replacement mode for converting to recording format B or a deletion mode for converting to recording format C. If so, the process advances to S8, and an instruction is given to input the conversion mode. If an instruction is input, the process advances to 59.

以上のFD及び変換モードの指定はCRT4の表示画面
上に表示し、会話形式でKH2よりの入力をうながす様
制御されている。
The above designations of the FD and conversion mode are displayed on the display screen of the CRT 4 and are controlled to prompt input from the KH 2 in a conversational manner.

S9ではソース側FDより一定μの変換すべきデータを
読み込み、RAM3内のり−ドバツファにライトする。
In S9, data to be converted with a constant μ is read from the source side FD and written to the buffer in the RAM 3.

そして続<:S10でRAM3内のり−ドバツファより
1文字分の文字コードを読み出し、Sllで読み出した
文字コードがRAM3内のTBL3a内の入力コードと
一致するか否かを調べ、一致しなければ変換処理を行な
う必要がないため314に進む、このTBL3の詳細を
第8図に示す。
Then, in S10, the character code for one character is read from the buffer in RAM3, and it is checked whether the character code read out in SLL matches the input code in TBL3a in RAM3, and if it does not match, it is converted. Since there is no need to perform this, the process proceeds to step 314. Details of this TBL3 are shown in FIG.

図中81は変換前の入力コード、82は変換すべき出力
コードを示す。
In the figure, 81 indicates an input code before conversion, and 82 indicates an output code to be converted.

Sllで入力コードと一致した時にはS12に進み、変
換モードが削除モードか否かを調べ、削除モードの時は
当該コードを削除するため何もせずにSIOに戻り、次
のリードバッファより次の文字コードを読み出す、ここ
で削除モードでなく置換モードの時はS13に進み、入
力コードをTBL3 aの出力コードに変換する。そし
てS14においてこの変換コードをRAM3のライトバ
ッファに書き込む、そして続<S15においてS9で読
み込んだデータ分の変換処理が終了したか否か調べ、終
了していなければS10に戻り、終了していればS16
でライトバッファ内の変換済データをフレキシブルディ
スクに書き込み、S17で全ての変換処理が終了したか
否かを調べ、全て終了していなければS9に戻り、ソー
ス側のFDより次の変換すべきデータを読み込む、処理
が終了していれば変換処理を終了する。
When it matches the input code in SLL, it advances to S12, checks whether the conversion mode is deletion mode or not, and if it is deletion mode, returns to SIO without doing anything to delete the code, and reads the next character from the next read buffer. The code is read. If the mode is not the deletion mode but the replacement mode, the process advances to S13 and the input code is converted into the output code of TBL3a. Then, in S14, this conversion code is written to the write buffer of RAM3, and in S15, it is checked whether the conversion process for the data read in S9 has been completed, and if it has not been completed, the process returns to S10, and if it has been completed, the process returns to S10. S16
The converted data in the write buffer is written to the flexible disk, and in S17 it is checked whether all conversion processing has been completed. If not, the process returns to S9 and the next data to be converted is written from the source FD. If the process has been completed, the conversion process ends.

以上の処理により、記録形式Aの第5図に示すデータが
削除モードのときは第4図に示す記録形式Cのデータに
、置換モードのときは第6図に示す記録形式Bのデータ
に変換される。
Through the above processing, the data shown in Figure 5 in recording format A is converted to data in recording format C shown in Figure 4 when in deletion mode, and to data in recording format B shown in Figure 6 when in replacement mode. be done.

この第4図及び第5図に示すデータを、他の右マージン
及び左マージンの異なる文書処理装置にて出力(表示出
力又は印刷出力)した場合の例を第9図(A)、(B)
に示す。
Examples of the case where the data shown in FIGS. 4 and 5 are output (displayed or printed) using other document processing devices with different right margins and left margins are shown in FIGS. 9(A) and 9(B).
Shown below.

第9図(A)は削除モードで変換された記録形式〇の第
4図に示すデータを出力した例、第9図(B)は置換モ
ードで変換された記録形式Bの第6図に示すデータを出
力した例である。
Figure 9 (A) is an example of outputting the data shown in Figure 4 for recording format 0 converted in delete mode, and Figure 9 (B) is shown in Figure 6 for recording format B converted in replacement mode. This is an example of outputting data.

第9図CB)では第3図に示した変換前の出力フォーマ
ットに従って出力することができる。
In FIG. 9 CB), it is possible to output according to the output format before conversion shown in FIG. 3.

また削除モードで変換されたデータは実際に入力された
データであるため、他の文書処理装置で再編集する場合
にも不要部分の付加がなく何の障害もなく、適正な編集
処理が行なえる。
In addition, since the data converted in delete mode is the data that was actually input, even when re-editing with another document processing device, the editing process can be performed properly without adding any unnecessary parts and without any problems. .

また以上の説明においては、ソフトリターン、ソフトス
ペースのみを変換の対象としたが、TB3bに書き込む
のみで任意の文字コードを変換対象とすることができる
Furthermore, in the above description, only soft returns and soft spaces are subject to conversion, but any character code can be subject to conversion simply by writing to TB3b.

[効果] 以上説明した様に本発明によれば、記録形式を変換する
場合に使用目的に合わせて最適の記録形式に選択変換可
能な記録形式の変換方法が提供できる。
[Effects] As described above, according to the present invention, it is possible to provide a recording format conversion method that allows selective conversion to the optimal recording format depending on the purpose of use when converting the recording format.

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

第1図は本発明に係る一実施例のブロック図、 第2図は本実施例の記録形式変換を示す図。 第3図は変換前の記録形式を用いた文書処理装置の出力
データの例を示す図、 第4図は記録形式Cにおけるデータ構成例を示す図、 第5図は記録形式Aにおけるデータ構成例を示す図、 第6図は記録形式Bにおけるデータ構成例を示す図、 第7図は本実施例の記録形式変換処理を示すフローチャ
ート、 第8図は本実施例の置の詳細を示す図、第9図(A)、
CB)は本実施例による記録形式変換後のデータの出力
例を示す図である。 図中、l・・・マイクロプロセッサCPU、2・・・リ
ードオンリメモリROM、3・・・ランダムアクセスメ
モリRAM、3b・・・TBL、4・・・表示装置CR
T、5・・・外部記憶装置FD、6・・・キーボードK
B、7・・・ビデオRAM、8・・・表示制御装置CR
TC19・・・外部記憶装置コントローラ、1o・・・
キーホー1’コントローラ、11・・・システムへスS
Bである。 第1 図 58〜11 第2図 第3図  964°0 第4図 第6図 第8図
FIG. 1 is a block diagram of an embodiment according to the present invention, and FIG. 2 is a diagram showing recording format conversion in this embodiment. Figure 3 is a diagram showing an example of output data of a document processing device using the recording format before conversion, Figure 4 is a diagram showing an example of the data configuration in recording format C, and Figure 5 is an example of the data configuration in recording format A. , FIG. 6 is a diagram showing an example of the data structure in recording format B, FIG. 7 is a flowchart showing the recording format conversion process of this embodiment, FIG. 8 is a diagram showing details of the arrangement of this embodiment, Figure 9 (A),
CB) is a diagram showing an example of data output after recording format conversion according to the present embodiment. In the figure, 1...Microprocessor CPU, 2...Read-only memory ROM, 3...Random access memory RAM, 3b...TBL, 4...Display device CR
T, 5...External storage device FD, 6...Keyboard K
B, 7... Video RAM, 8... Display control device CR
TC19...External storage device controller, 1o...
Keyho 1' controller, 11... system S
It is B. 1 Figures 58-11 Figure 2 Figure 3 964°0 Figure 4 Figure 6 Figure 8

Claims (2)

【特許請求の範囲】[Claims] (1)第1の記録形式で記録された文書情報内の特定コ
ードを検出する検出手段と、該検出手段で検出した前記
特定コードを削除する削除手段と、前記検出手段で検出
した前記特定コードを他の所定コードに変換する変換手
段と、前記削除手段又は変換手段の一方を選択する選択
手段とを備え、第1の記録形式で記録された文書情報の
前記特定コードのみを前記選択手段で選択された削除手
段又は変換手段にての出力に置換して、第2の記録形式
に変換することを特徴とする記録形式変換方法。
(1) a detection means for detecting a specific code in document information recorded in a first recording format, a deletion means for deleting the specific code detected by the detection means, and the specific code detected by the detection means and a selection means for selecting either the deletion means or the conversion means, and the selection means selects only the specific code of the document information recorded in the first recording format. A recording format conversion method characterized by converting into a second recording format by replacing it with the output of the selected deletion means or conversion means.
(2)特定コードを文書編集時に付加された付加コード
とすることを特徴とする特許請求の範囲第1項記載の記
録形式変換方法。
(2) The recording format conversion method according to claim 1, wherein the specific code is an additional code added at the time of document editing.
JP60015439A 1985-01-31 1985-01-31 Recording form converting method Pending JPS61175761A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60015439A JPS61175761A (en) 1985-01-31 1985-01-31 Recording form converting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60015439A JPS61175761A (en) 1985-01-31 1985-01-31 Recording form converting method

Publications (1)

Publication Number Publication Date
JPS61175761A true JPS61175761A (en) 1986-08-07

Family

ID=11888833

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60015439A Pending JPS61175761A (en) 1985-01-31 1985-01-31 Recording form converting method

Country Status (1)

Country Link
JP (1) JPS61175761A (en)

Similar Documents

Publication Publication Date Title
US4984162A (en) Word processor with a margin text edit function
JPS631618B2 (en)
JPH069045B2 (en) Word processor
JPS61175761A (en) Recording form converting method
JPS5843034A (en) Sentence edit processor
JPS63139751A (en) Printing method in printing system
JPH025175A (en) Character processor
JP3371435B2 (en) Input mode automatic setting method or input mode automatic setting device
JPS60253572A (en) Blank filling printing system
JP2998092B2 (en) Electronic firing device
JPH08161308A (en) Document processor
JPH0749851A (en) Document shaping device
JPH06236377A (en) Word processor and message display method
JPH01128845A (en) Character generating apparatus
JPS59140543A (en) Text editing processor
JPS60164873A (en) Word processor provided with simple language for preparation of table
JPH0535452B2 (en)
JPH03160558A (en) Document processor
JPH05108633A (en) Information processor
JPS6359658A (en) Document processor
JPH0778159A (en) Document processor
JPH05151219A (en) Document processor with partial access function
JPH0573548A (en) Document shaping device
JPH07134706A (en) Method and device for editing document
JPS6320621A (en) Editing printer