JPS5839380A - Character string controller - Google Patents

Character string controller

Info

Publication number
JPS5839380A
JPS5839380A JP56136114A JP13611481A JPS5839380A JP S5839380 A JPS5839380 A JP S5839380A JP 56136114 A JP56136114 A JP 56136114A JP 13611481 A JP13611481 A JP 13611481A JP S5839380 A JPS5839380 A JP S5839380A
Authority
JP
Japan
Prior art keywords
character string
character
storage device
added
storage area
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
JP56136114A
Other languages
Japanese (ja)
Inventor
Hiroyuki Ueda
博之 上田
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 JP56136114A priority Critical patent/JPS5839380A/en
Priority to CA000408224A priority patent/CA1204215A/en
Priority to AU86608/82A priority patent/AU547181B2/en
Priority to GB08224513A priority patent/GB2106290B/en
Priority to DE3249674A priority patent/DE3249674C2/de
Priority to DE19823232248 priority patent/DE3232248A1/en
Publication of JPS5839380A publication Critical patent/JPS5839380A/en
Priority to US06/641,352 priority patent/US4585360A/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/12Use of codes for handling textual entities
    • G06F40/123Storage facilities
    • 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)
  • Memory System (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PURPOSE:To use a character string storage device efficiently by providing a variable length storage area for character string control. CONSTITUTION:A character string storage device 13 consists of directory parts DIR(A)-DIR(D), and areas wherein character strings (A)-(D) are stored, and further had a storage area DIRCNT for indicating the number of character strings. In this constitution, when a character string (E) is to be added, a hardware stack is provided with a storage area counter firstly. Then, the contents (4 in this example) of the DIRCNT are transferred to the storage area counter. The address, obtained by multiplying the DIRCNT by the number of bytes of the directory parts, and succeeding effective parts are shifted by the number of bytes. Further, a DIR(E) is generated for the addition of a new character string, and the character string (E) can be added after character string (D). The DIRCNT is increased by one and the character string (E) is added. Similarly, character strings (F) and (G) are added to a device 13.

Description

【発明の詳細な説明】 本発明は、文字列制御装置、特(二叉字列記憶装置を備
えた電子タイプライタなどの電子機器に用いられる文字
列制御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a character string control device, and particularly to a character string control device used in electronic equipment such as an electronic typewriter equipped with a two-pronged character string storage device.

最近、タイプライタは電子化され、このような電子式タ
イプライタでは機械式タイプライタのキーボードやプリ
ンタ部(:関する制御が電子化され、それ(二より機械
式タイプライタにおける種々の欠点が排除され、比較的
良好なキー押下時の感触が得られ、さらに多種の機能が
実現されている。
Recently, typewriters have been computerized, and in such electronic typewriters, the keyboard and printer control of mechanical typewriters has been computerized, and the various drawbacks of mechanical typewriters have been eliminated. , it provides a relatively good feel when pressing the keys, and also provides a wide variety of functions.

一方、このような電子タイプライタには種々の機能を実
行するために記憶装置が用いられており、この記憶装置
における記憶素子の高集積度のものが実現されフロッピ
ーディスクのような外部記憶装置を用いなくても低価格
で比較的容量の大きい不揮発性の記憶装置が利用でき、
これを文字列の記憶に用いている。これら文字列記憶装
置を備えたタイプライタでは、文章或いは良く使用する
慣用句、単語、住所等をそれぞれに対応する1文字或い
は複数文字で構成された見出しを与え、それC二よりタ
イプライタ内部の記憶装置に複数の種類の登録を行なっ
ている。一方、記憶装置(二登録された文字列を呼び出
しそれを印字することもできるよう(ニなっており、非
常(二有用な電子式タイプライタが提供されている。
On the other hand, such electronic typewriters use storage devices to perform various functions, and the storage elements in these storage devices have become highly integrated, allowing external storage devices such as floppy disks to be used. Non-volatile storage devices with relatively large capacity can be used at low cost even if they are not used.
This is used to store strings. In typewriters equipped with these character string storage devices, a heading consisting of one or more characters is given to each sentence, frequently used idiom, word, address, etc. Multiple types of registration are being performed in the storage device. On the other hand, very useful electronic typewriters are available, which have a storage device (2) that can retrieve registered character strings and print them out (2).

しかし、従来の電子タイプライタ(二用いられる文字列
記憶装置では登録できる見出し数に限定があり、短かい
文字列を多種類登録することは困難であり、また短かい
文字列を複数種類登録したとき、文字列記憶装置中(二
全く使用されない記憶域が発生し、非常に効率の悪い文
字列記憶装置となっている。例えば、第1図(=は従来
の文字列記憶装置を備えたシステムの構成がブロック図
とじて概略図示されており、同図において文字列記憶装
置1ならび(二叉字列訂正用バッファ2はそれぞれ読み
書きのタイミングを決定する信号線C8ならびにアドレ
スデータバスADBと接続されており、信号線C8(二
現れる読み書きのタイミング信号に従ってアドレスデー
タバスADB l二現れるアドレスにそれぞれ所定のデ
ータを読み書きしている。
However, the number of headings that can be registered is limited with the character string storage devices used in conventional electronic typewriters, making it difficult to register multiple types of short character strings; When the string storage device (2) is completely unused, storage space is generated, resulting in a very inefficient string storage device. For example, in Figure 1 (= is a system with a conventional string storage device The structure of is schematically illustrated as a block diagram, and in the same figure, a character string storage device 1 and a two-pronged character string correction buffer 2 are connected to a signal line C8 and an address data bus ADB, respectively, which determine read/write timing. According to the read/write timing signal that appears on the signal line C8 (2), predetermined data is read and written to addresses that appear on the address data bus ADB1 (2).

文字列記憶装置1は、第2図に図示されたように内部に
4種のディレクトリ部(見出し)、すなわちDIR(A
)、 DIR(B)、 DIR(C)、 DIR(D)
とそのディレクトリ部に対応する文字列(3)、 (B
)。
As shown in FIG.
), DIR(B), DIR(C), DIR(D)
and the character string (3) corresponding to its directory part, (B
).

(C)、 (DJから構成されており、各ディレクトリ
部、例えばDIR(B)は第3図に図示したように8バ
イトから成る見出しくID)と2バイトから成る各文字
列に対する先頭アドレス(アドレス情報部ADH)及び
2バイトから成る文字数を記憶した有効文字数情報部(
CNT)から成っている・。また、文字列(A)、 Q
3)、 (C1,■)は、文字に対応したコード(例え
ばASCIIコード)で構成された文字列であり、それ
ぞれの文字列の長さは可変に構成されている。このよう
な構成において新た(二短い文字列(E)、 CF)、
 IG)を追加しようとしたときディレクトリ部は第2
図(二おいてさら(二2つ余裕があるので第4図(二図
示した如< DIR(E)、DIR(F)ならび5二そ
れに対応した文字列(E)、 (F)は追加されるが、
文字列(G)i二対しては文字列記憶装置に未使用記憶
域が存在するにもかかわらずDIR(G)を形成するこ
とができず、結果的には文字列記憶装置(二叉字列(G
)を記憶させることができなくなる。このことは文字列
追加時(二処理を簡単にするため(二DIR(A)〜D
IR(F)で示されるディレクトリ部と文字列(8)〜
(F′)に示される文字部とに分割したこと(二原因が
あり、従来の文字列記憶装置は非常に効率の悪い用いら
れ方をしていた。
(C), (consists of DJ, each directory part, for example DIR (B) is an 8-byte header ID as shown in Figure 3), and the start address for each character string (2 bytes) ( Address information field (ADH) and effective character number information field (ADH) which stores the number of characters consisting of 2 bytes.
CNT). Also, the character string (A), Q
3), (C1, ■) is a character string composed of a code (for example, an ASCII code) corresponding to a character, and the length of each character string is configured to be variable. In such a configuration new (two short strings (E), CF),
IG), the directory part is the second
Figure (2) and (2) Since there is room for two (2), Figure 4 (2) shows <DIR(E), DIR(F) and 52, and the corresponding character strings (E) and (F) are added. However,
DIR(G) cannot be formed for the string (G)i2 even though there is unused storage space in the string storage device, and as a result, the string storage device (two-forked Column (G
) cannot be memorized. This is to simplify the process when adding character strings (2 DIR(A) to D
Directory part and character string (8) indicated by IR(F)
(F') (There are two reasons for this, and conventional character string storage devices were used very inefficiently.

従って本発明はこのような点に鑑みなされたもので、簡
単な方法で効率良く文字列の記憶を制御することができ
る文字列記憶制御方法を提供することを目的とする。
Therefore, the present invention has been made in view of these points, and it is an object of the present invention to provide a character string storage control method that can efficiently control the storage of character strings in a simple manner.

以下、図面(二示す実施例(二基づいて、本発明の詳細
な説明する。
Hereinafter, the present invention will be described in detail based on two embodiments shown in the drawings.

第5図(二は、本発明(二よる文字列記憶装置の制御を
行なうためのシステムがブロック図として図示されてい
る。図中10はマイクロプロセッサ(以下MPUという
)であ【〕、システム全体の制御をつかさどる。11は
固定記憶装置(以下ROMという)で、システムの制御
を行なう制御手順(例えば後で説明する第7図に示すプ
ログラム)を制御コードの形で内蔵しており、MPU1
0はROM11とテ°−タバスを介して接続されており
、ROM11の内容を参照しながらシステムの制御を行
なうものである。12はランダムアクセスメモリ(RA
Mという)であり、MPU 10のハードウェアスタッ
ク(システムの状態或いは一時的に用いられる記憶情報
を待機させる記憶部)などに用いられる。13は第1図
の文字列記憶装置1と同様な文字列記憶装置であり、後
述する如く本発明(二よる制御が行なわれる。14は文
字列転送用バッファであり、本実施例では512文字分
の領域の大きさを有し、処理時間は比較的短かいもので
、文字転送(−用いられる1文字以上のバッファであれ
ば実現することができ、従って処理時間を無視すればM
PUl0の内部レジスタでも転送用バッファとして用い
ることができる。15はメモリアドレスレコーダであり
、MPUl0とアドレスハフ!、ABへ・ス と接続されていて、このアドレスから得られるアドレス
をデコードしてそれぞれROM11.RAM12文字列
記憶装置132文字列転送用バッファ14の選択を行な
い、データバスDBを介し′1″MPUl0との接続を
行ないシ゛ステムコントロールバスSCHの制御(二よ
りシステム制御のための読み書き信号の伝送、アドレス
情報の伝送、各デバイス間のデータ送受を行なうもので
ある。
FIG. 5 (2) is a block diagram showing a system for controlling a character string storage device according to the present invention (2). In the figure, 10 is a microprocessor (hereinafter referred to as MPU), Reference numeral 11 denotes a fixed storage device (hereinafter referred to as ROM), which contains control procedures for controlling the system (for example, the program shown in FIG. 7, which will be explained later) in the form of control codes.
0 is connected to the ROM 11 via a data bus, and controls the system while referring to the contents of the ROM 11. 12 is random access memory (RA
M), and is used for the hardware stack of the MPU 10 (a storage unit that holds system status or temporarily used storage information). Reference numeral 13 designates a character string storage device similar to the character string storage device 1 in FIG. The processing time is relatively short, and character transfer (-) can be realized with a buffer of one or more characters, so if processing time is ignored, M
The internal register of PU10 can also be used as a transfer buffer. 15 is a memory address recorder, which records MPUl0 and address Huff! , AB are connected to each other, and the address obtained from this address is decoded and stored in the ROM 11 . It selects the RAM 12 character string storage device 132 character string transfer buffer 14, connects it to '1'' MPU10 via the data bus DB, and controls the system control bus SCH (secondarily, it transmits read/write signals for system control). , transmits address information, and sends and receives data between devices.

上記の構成(二おいて、文字列記憶装置は第6図(二図
示されたように構成される。第2図と同様にディレクト
リ部DIRならび(二叉字列を記憶する部分から構成さ
れているが、第2図と異なり新たに文字列の数を示す記
憶域D I RCNTを設け、DIR(D)の直後(二
叉字列(8)〜0)を配置している。
In the above structure (2), the character string storage device is configured as shown in FIG. 6 (2).Similarly to FIG. However, unlike FIG. 2, a new storage area DIRCNT indicating the number of character strings is provided, and the area immediately after DIR(D) (two-pronged character strings (8) to 0) is placed.

このような構成≦二おいて、い才文字列(E)を追加し
ようとするとき、第7図に示゛すような制御手順が用い
られる。まずステップSl l二おいて最初にハードウ
ェアスタックに記憶域カウンタCCNTを設ける。この
CCNTは各ディレクトリのアドレス情報部の補正に用
いられるものである。次(ニステップ521−おいて第
6図の文字画記憶装置の記憶域DIRCNTi二記憶さ
れている内容(この例の場合C二は4つの文字列が記憶
されているので4)を記憶域カウンタCCNTに転送す
る。次にステップS3(二おいて記憶域DIRCNT+
ニディレクトリのバイト数12を乗じて得られるアドレ
ス以下有効部を12バイトだけシフトする。続いてステ
ップS4においてCCNTが0か否かを判断すること(
二より各ディレクトリ−のアドレス情報部の補正が完了
したか否かが判断される。例えばCCNT = 0でな
ステ・/〕0 いと1百〔S6において順次CCNTが1ずつ減算され
ると同時にディレクトリのアドレス情報部は12加算さ
れる。一方、ステップS4においてCCNT=Oとなる
と、ステップS7において新規追加文字列のためi二D
IR(E)が作成され文字列(D)以下(二叉字列@)
を追加することができるようにな12+8と(DIRC
NT−1)X12+10を加算し、結果なADR(DI
R(E))へ入れる。またステップS9において記憶域
DIRCNTは+1されて文字列IJ追加され5個の文
字列が記憶されていることが記憶される。なお、D I
 R(E)のCNT(文字数情報部)は文字列(E)(
二対応する値に改められる。従って第8図に図示された
ような記憶構成となる。同様な手順を繰り返すことC二
より文字列記憶装置13(二叉字列(F)G)を−4,
することができる。
In such a configuration≦2, when an attempt is made to add an excellent character string (E), a control procedure as shown in FIG. 7 is used. First, in step SlI2, a storage area counter CCNT is provided in the hardware stack. This CCNT is used to correct the address information section of each directory. Next (step 521-), the storage area DIRCNTi2 of the character image storage device in FIG. CCNT.Next, in step S3 (second step, the storage area DIRCNT+
The effective part below the address obtained by multiplying the number of bytes of the two directories by 12 is shifted by 12 bytes. Next, in step S4, it is determined whether CCNT is 0 or not (
From the second step, it is determined whether the correction of the address information section of each directory has been completed. For example, if CCNT = 0, /] 0 = 100 [In S6, CCNT is sequentially subtracted by 1 and at the same time 12 is added to the address information section of the directory. On the other hand, when CCNT=O in step S4, i2D is added as a newly added character string in step S7.
IR (E) is created and the character string (D) and below (fork string @)
Now you can add 12+8 and (DIRC
NT-1)X12+10 and the resulting ADR(DI
Enter R(E)). Further, in step S9, the storage area DIRCNT is incremented by 1, character string IJ is added, and it is stored that five character strings are stored. In addition, DI
The CNT (character count information part) of R(E) is the character string (E)(
2 to the corresponding value. Therefore, the storage configuration is as shown in FIG. 8. By repeating the same procedure, the character string storage device 13 (forked character string (F)G) is set to -4 from C2,
can do.

以上説明したよう(二本発明による文字列制御装置では
文字列制御のための記憶域を可変長としているのでこれ
を電子式タイ′プライタのよ゛うC二電子機器C二応用
した場合常時はとんど使用されていない記憶装置を必要
とすることなく、さらに文字列記憶装置を効率良く使用
することができるという優れた効果が得られる。
As explained above (2) Since the character string control device according to the present invention has a variable length storage area for character string control, when this is applied to an electronic device such as an electronic typewriter, An excellent effect can be obtained in that a character string storage device can be used efficiently without requiring a storage device that is hardly used.

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

第1図〜第4図は従来の方法を説明するもので、第1図
はシステムの構成を示したブロック図、第2図は文字列
記憶装置の構成を示した説明図、第3図はディレクトリ
部のビット構成を示した説明図、第4図は文字列をさら
に追加した場合の文字列記憶装置の構成を示した説明図
、第5図〜第8図は本発明による方法を説明するもので
、第5図は全体のシステムの構成を示したブロック図、
第6図は文字列記憶装置の構成を示した説明図、第7図
は文字列制御装置の制御手順を示したフローチャート図
、第8図は文字列を追加した場合の文字列記憶装置の構
成を示した説明図である。 10・・・MPU           11・・・R
OM12・・・RAM       13・・・文字列
記憶装置14・・・文字列転送用バッファ 15・・・メモリアドレスデコーダ
Figures 1 to 4 explain the conventional method. Figure 1 is a block diagram showing the system configuration, Figure 2 is an explanatory diagram showing the configuration of the character string storage device, and Figure 3 is an explanatory diagram showing the configuration of the character string storage device. FIG. 4 is an explanatory diagram showing the bit configuration of the directory section. FIG. 4 is an explanatory diagram showing the configuration of the character string storage device when further character strings are added. FIGS. 5 to 8 explain the method according to the present invention. Figure 5 is a block diagram showing the overall system configuration.
Fig. 6 is an explanatory diagram showing the configuration of the string storage device, Fig. 7 is a flowchart showing the control procedure of the string control device, and Fig. 8 is the configuration of the string storage device when a string is added. FIG. 10...MPU 11...R
OM12...RAM 13...Character string storage device 14...Character string transfer buffer 15...Memory address decoder

Claims (1)

【特許請求の範囲】[Claims] 記憶された文字列を制御する記憶域を設け、前記記憶域
を可変長にしたことを特徴とする文字列制御装置。
A character string control device, comprising: a storage area for controlling stored character strings; and the storage area has a variable length.
JP56136114A 1981-09-01 1981-09-01 Character string controller Pending JPS5839380A (en)

Priority Applications (7)

Application Number Priority Date Filing Date Title
JP56136114A JPS5839380A (en) 1981-09-01 1981-09-01 Character string controller
CA000408224A CA1204215A (en) 1981-09-01 1982-07-28 Electronic equipment having a character sequence memory and a character display
AU86608/82A AU547181B2 (en) 1981-09-01 1982-07-30 Electronic typewriter with memory
GB08224513A GB2106290B (en) 1981-09-01 1982-08-26 Electronic equipment with character memory
DE3249674A DE3249674C2 (en) 1981-09-01 1982-08-30
DE19823232248 DE3232248A1 (en) 1981-09-01 1982-08-30 ELECTRONIC DEVICE WITH DEVICE FOR STORING STRINGS AND FOR PLAYING BACK CHARACTERS
US06/641,352 US4585360A (en) 1981-09-01 1984-08-15 Electronic equipment having a character sequence memory and a character display

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP56136114A JPS5839380A (en) 1981-09-01 1981-09-01 Character string controller

Publications (1)

Publication Number Publication Date
JPS5839380A true JPS5839380A (en) 1983-03-08

Family

ID=15167618

Family Applications (1)

Application Number Title Priority Date Filing Date
JP56136114A Pending JPS5839380A (en) 1981-09-01 1981-09-01 Character string controller

Country Status (1)

Country Link
JP (1) JPS5839380A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6065354A (en) * 1983-09-19 1985-04-15 Fujitsu Ltd Data store system
JPS61194747A (en) * 1985-02-22 1986-08-29 Mitsubishi Electric Corp Resin seal type semiconductor integrated circuit device
US5200807A (en) * 1989-10-30 1993-04-06 Mitsubishi Denki Kabushiki Kaisha Wiring connection structure for a semiconductor integrated circuit device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6065354A (en) * 1983-09-19 1985-04-15 Fujitsu Ltd Data store system
JPS61194747A (en) * 1985-02-22 1986-08-29 Mitsubishi Electric Corp Resin seal type semiconductor integrated circuit device
JPH0461495B2 (en) * 1985-02-22 1992-10-01 Mitsubishi Electric Corp
US5200807A (en) * 1989-10-30 1993-04-06 Mitsubishi Denki Kabushiki Kaisha Wiring connection structure for a semiconductor integrated circuit device

Similar Documents

Publication Publication Date Title
JPS5822782B2 (en) Pattern similarity calculation device
JPH09167495A (en) Data storage unit and data storage device using the same
JPS5839380A (en) Character string controller
JP2855207B2 (en) Form output device
GB2143066A (en) Memory control unit
JPS5839329A (en) Character string correcting device
JPS603035A (en) Storage device
JPS61121089A (en) Electronic musical instrument
JP2953701B2 (en) Memory expansion method
JPS6349809B2 (en)
JPH0756640B2 (en) Storage device
JPS6042972B2 (en) Information processing device with address conversion function
JPS6211753B2 (en)
JPS61198351A (en) Direct memory access control circuit
JPS5824831B2 (en) Automatic ticket vending machine selling price and ticket name setting device
JPS6319858Y2 (en)
JPH0133848B2 (en)
JPS6349771Y2 (en)
JPS6138505B2 (en)
JPS6246874B2 (en)
JPS60211580A (en) Method and apparatus for memorizing and retrieving data
JPH0516451A (en) Printer
JPS6165558U (en)
JPS6180447A (en) Store control system of memory
JPS61265629A (en) Storage system of printing data