JPH09231292A - Character processor - Google Patents

Character processor

Info

Publication number
JPH09231292A
JPH09231292A JP8041060A JP4106096A JPH09231292A JP H09231292 A JPH09231292 A JP H09231292A JP 8041060 A JP8041060 A JP 8041060A JP 4106096 A JP4106096 A JP 4106096A JP H09231292 A JPH09231292 A JP H09231292A
Authority
JP
Japan
Prior art keywords
character
processing
character string
range
rearrangement
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
JP8041060A
Other languages
Japanese (ja)
Inventor
正光 ▲吉▼岡
Masamitsu Yoshioka
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.)
Sharp Corp
Original Assignee
Sharp Corp
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 Sharp Corp filed Critical Sharp Corp
Priority to JP8041060A priority Critical patent/JPH09231292A/en
Publication of JPH09231292A publication Critical patent/JPH09231292A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

PROBLEM TO BE SOLVED: To easily rearrange the character strings by means of the specific characters of a table form by dividing a character string into the sort reference character strings, retrieving the specific one of those divided character strings to count its appearance frequency, and performing a sorting operation based on the appearance frequency. SOLUTION: An input device sets a sorting order, a retrieval character, a retrieval system, a comparison range and a rearrangement range based on a set screen that is displayed by the selection or the rearrangement processing. A retrieval character designation means 17 instructs a character number order via a rearrangement system and designates the retrieval character. When the retrieval start is instructed, a processing range decision means 12 divides a character string of a processed document 11 into the sort reference character strings. A specific character count processing means 13 produces a processing table which stores the number of specific characters included in those divided character strings and the start/end positions of the processing unit. Then a rearrangement means 14 rearranges the contents of the processing table based on the number of characters and then generates and outputs the rearranged character strings via the output processing 15 and based on the processing table.

Description

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

【0001】[0001]

【発明の属する技術分野】文字列を入出力、編集処理す
るワードプロセッサ、エディターなどに関する発明であ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a word processor, an editor, etc. for inputting / outputting and editing character strings.

【0002】[0002]

【従来の技術】文字列の並び替え処理(以後ソートまた
はソーティングと表現する)において、従来からある技
術で、文字列をASCIIコード順や、JISコード順
等によってソーティングする方法が広く知られている。
2. Description of the Related Art In character string rearranging processing (hereinafter referred to as "sorting" or "sorting"), a method of sorting character strings in ASCII code order or JIS code order is widely known as a conventional technique. .

【0003】このような技術を用いることにより、例え
ば住所録などを作成した時においても、新しくデータを
加えたい場合において、データの最後に新規登録を行
い、ソーティングを行うことによって、適切な位置に挿
入されることになる。
By using such a technique, for example, even when an address book is created, when new data is desired to be added, new registration is performed at the end of the data and sorting is performed so that the data can be located at an appropriate position. Will be inserted.

【0004】例えば、図9(a)に示すように、新井
(あらい)、飯島(いいじま)、岡田(おかだ)、加藤
(かとう)、笹木(ささき)と、50音順にならんでい
るデータに、新たに江崎(えざき)というデータを加え
たい場合に、ユーザは挿入するべき位置を意識する必要
はなく、文末に入力した後(図9(b))に読み仮名の
項目部分に対してソーティング処理を行えば(図9
(c))よい。
For example, as shown in FIG. 9 (a), data arranged in the order of Japanese syllabary (Arai), Iijima (Ijima), Okada (Okada), Kato (Saoto), and Sasaki (Sasaki). In addition, when the user wants to add new Ezaki data, the user does not need to be aware of the position to insert, and after inputting at the end of the sentence (Fig. 9 (b)), If sorting processing is performed (Fig. 9
(C)) Good.

【0005】また、数値データなどにおいても、桁数さ
え気をつければ昇順や降順に容易に並び替えることがで
きる。
Also, numerical data and the like can be easily rearranged in ascending order or descending order if the number of digits is taken into consideration.

【0006】[0006]

【発明が解決しようとする課題】図10(a)はある文
書例である。AAAからGGGまでの各行に○がいくつ
か記されている。これを○の個数の順にソートしたい場
合には、複数の手順が必要であった。
FIG. 10A is an example of a document. Some circles are marked on each line from AAA to GGG. In order to sort them in the order of the number of circles, multiple procedures were necessary.

【0007】具体的には、まず各行に対してユーザは○
の数を目で計数する。そして、その数をデータの一番左
の位置に桁数を合わせて挿入する。例えば、図10
(a)のような文書があるというと、AAAの行には2
つ、BBBの行には3つの○があるので、それぞれ左端
に“0002”、“0003”と入力する(図10
(b))。
Specifically, first, for each line, the user
Are counted by eye. Then, the number is inserted at the leftmost position of the data with the number of digits aligned. For example, FIG.
If there is a document such as (a), there are 2 in the AAA line.
Since there are three circles in the line of BBB, enter "0002" and "0003" at the left end (Fig. 10).
(B)).

【0008】この状態で、通常のソーティング処理を行
う。先程の処理で左端に数字を入れているので、その順
序でソーティングが行われる。挿入した数字によって、
○の個数でソーティングが行われるわけである(図10
(c))。そして、ソーティングが終了した後に、先程
挿入した数字を削除して、○の個数によるソーティング
処理が終了する(図10(d))。
In this state, normal sorting processing is performed. Since the number has been put on the left end in the previous process, sorting is performed in that order. Depending on the number inserted,
Sorting is performed with the number of circles (Fig. 10).
(C)). Then, after the sorting is completed, the number inserted previously is deleted, and the sorting process by the number of circles is completed (FIG. 10 (d)).

【0009】このように従来からも○の個数などによる
ソーティングは可能ではあったが、ユーザが○の個数を
計数して、その個数をデータに挿入する必要があるの
で、○の個数が非常に多い場合は、ユーザの負担は非常
に大きいものとなってしまう。ワードプロセッサなどの
編集画面において、表などが大きいために、横方向にス
クロールする場合もあるが、このような場合計数するの
は非常に困難である。
As described above, it has been possible to sort the number of circles in the past, but since the user needs to count the number of circles and insert the number into the data, the number of circles is very large. If there are many, the burden on the user will be very heavy. On an edit screen of a word processor or the like, a table or the like is large, so that scrolling may be performed in the horizontal direction, but in such a case, it is very difficult to count.

【0010】さらに、左端に数字を挿入することは、書
式上問題を起こすことがある。例えば、1行の設定文字
数一杯まで表があった場合に、数字を挿入すると、行が
ずれてしまいその後のソーティング作業ができないとい
う問題が発生してしまうために、一時的に書式を設定し
なおす必要がある。さらに、一度挿入した数字をソーテ
ィング後に消去するのは非常に繁雑な作業となってい
た。
Further, inserting a digit at the left end may cause formatting problems. For example, if there is a table with the maximum number of set characters on one line, inserting a number will cause a problem that the line will be misaligned and the sorting work cannot be performed after that. Therefore, temporarily reset the format. There is a need. Further, it is a very complicated work to delete the inserted numbers after sorting.

【0011】そこで、本発明では、特定文字列を検索
し、その出現回数を計数し、その結果を条件としてソー
ティングを行うことによって、容易に表形式の特定文字
による並び替えを行うことができる。
Therefore, in the present invention, a specific character string is searched, the number of appearances of the specific character string is counted, and sorting is performed based on the result, so that the table can be easily sorted by the specific character.

【0012】[0012]

【課題を解決するための手段】本発明の請求項1によれ
ば、文字等を入力する入力手段と、前記入力手段より入
力された文字等を文字列として記憶する記憶手段と、前
記記憶手段に記憶された文字列を出力する出力手段と、
前記入力手段、記憶手段、出力手段を制御する制御手段
を備えた文字処理装置において、前記記憶手段に記憶さ
れた文字列を、改行等の特定の区切りによりソート基準
文字列に分割する文字列分割手段と、前記ソート基準文
字列中における特定の文字列を検索する特定文字列検索
手段と、前記特定文字列検索手段により検索された特定
文字列の出現回数を、前記ソート基準文字列ごとに計数
する計数手段と、前記計数手段による計数結果を並び替
えの条件として、前記ソート基準文字列を並び替える並
び替え手段とを備えたことによって、上記課題を解決す
る。
According to claim 1 of the present invention, input means for inputting characters and the like, storage means for storing characters and the like input by the input means as a character string, and the storage means Output means for outputting the character string stored in
A character processing device comprising a control means for controlling the input means, the storage means, and the output means, in which a character string stored in the storage means is divided into sort reference character strings by a specific delimiter such as a line feed. Means, a specific character string search means for searching for a specific character string in the sort reference character string, and the number of appearances of the specific character string searched by the specific character string search means for each sort reference character string The above-described problem is solved by providing the counting means and the sorting means that sorts the sorting reference character strings with the counting result of the counting means as the sorting condition.

【0013】また、請求項2によれば、前記記憶手段に
記憶された文字列において、特定の文字により前記並び
替え処理の範囲を認識し、その範囲に限定して前記並べ
換え処理を行うことによって、上記課題を解決する。
According to a second aspect, in the character string stored in the storage means, the range of the rearrangement process is recognized by a specific character, and the rearrangement process is limited to the range and the rearrangement process is performed. , To solve the above problems.

【0014】さらに、請求項3によれば、前記記憶手段
に記憶された文字列において、ユーザが前記並び替え処
理の範囲を指示し、その範囲に限定して前記並べ換え処
理を行うことによって、上記課題を解決する。
Further, according to a third aspect, in the character string stored in the storage means, the user designates a range of the rearrangement processing, and the rearrangement processing is limited to the range, and the rearrangement processing is performed. Solve the problem.

【0015】[0015]

【発明の実施の形態】次に図面を用いて、本発明の実施
の形態を詳細に説明する。図1において、外部記憶装置
(1)はフロッピーディスクやハードディスク、CD−
ROMなどの媒体をさす。本発明ではこれらに記憶され
ている文書などに処理を行うことになる。ROM(2)
にはあらかじめ各種プログラムやキャラクタデータなど
が格納されている。RAM(3)は一時記憶装置であ
り、一時的に処理対象となる文書、文字列などが格納さ
れる。表示装置(5)は文字などを表示するものであ
り、CRTやLCDなどがこれにあたる。また、この他
にプリンタなどの印字装置をさらに用いることも可能で
ある。入力装置(6)はキーボードなどである。さらに
手書きタブレットなどを用いることも可能である。演算
装置(4)はこれらの各装置間のデータの入出力、演算
をアドレスバス及びデータバスを用いて行う。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will now be described in detail with reference to the drawings. In FIG. 1, the external storage device (1) is a floppy disk, a hard disk, a CD-
Refers to media such as ROM. In the present invention, the documents stored in these are processed. ROM (2)
Stores various programs and character data in advance. The RAM (3) is a temporary storage device, and temporarily stores a document to be processed, a character string, and the like. The display device (5) displays characters and the like, and corresponds to a CRT or LCD. In addition to this, it is also possible to further use a printing device such as a printer. The input device (6) is a keyboard or the like. It is also possible to use a handwriting tablet or the like. The arithmetic unit (4) inputs and outputs data between these units and performs arithmetic operations using an address bus and a data bus.

【0016】第1の実施の形態について説明する。図2
は各処理の関係を示す図である。本発明における並び替
え処理を選択されると、図3(a)で示す設定画面を表
示装置(5)に表示する。ユーザはこの表示された設定
画面に基づいて、入力装置(6)から以下の項目を設定
する。
The first embodiment will be described. FIG.
[Fig. 3] is a diagram showing a relationship between processes. When the rearrangement process in the present invention is selected, the setting screen shown in FIG. 3A is displayed on the display device (5). The user sets the following items from the input device (6) based on the displayed setting screen.

【0017】項目は、ソートの順序/検索文字/検索方
式/比較範囲/並替範囲である。検索文字指定手段
(7)により、並べ換え方式から文字個数順を指示し、
検索文字として“○”を指定する。指定する文字は1文
字に限らず文字列であってもよい。最低限指定が必要な
のはここまでである。
The items are sort order / search character / search method / comparison range / sort range. The search character designating means (7) indicates the order of the number of characters from the rearrangement method,
Specify "○" as the search character. The designated character is not limited to one character and may be a character string. Up to this point, the minimum specification is required.

【0018】比較範囲は、指定した範囲の中にその文字
がいくつあるか(もしくはその範囲のコード順)を検索
する範囲を指定するものである。図3(a)では4桁目
から30桁目を検索の範囲とする。この指定は必須では
なく、省略した場合は開始位置は行頭、終了位置は行末
となる。
The comparison range specifies a range in which the number of characters in the specified range (or the code order of the range) is searched. In FIG. 3A, the search range is from the 4th digit to the 30th digit. This specification is not mandatory, and if omitted, the start position will be the beginning of the line and the end position will be the end of the line.

【0019】設定が終了して、検索開始指示を行うと、
以下の処理が行われる。特定文字計数処理手段(13)
により、RAM(3)内の被処理文書(11)におけ
る、特定文字の個数及び処理単位(例えば1行)の開始
・終了位置を格納した処理テーブル(図4(f))を作
成する。
When the search is instructed after the setting is completed,
The following processing is performed. Specific character counting processing means (13)
Thus, the processing table (FIG. 4 (f)) storing the number of specific characters and the start / end positions of the processing unit (for example, one line) in the processed document (11) in the RAM (3) is created.

【0020】引き続いて並べ換え手段(14)を用いて
文字の個数を条件として、処理テーブル(図4(g))
の並べ替えを行う。最後に並べ替えられた処理テーブル
(図4(i))を元に、出力処理(15)により並び替
えられた文字列を生成し、出力を行う。
Subsequently, the rearrangement means (14) is used to set the number of characters as a condition for the processing table (FIG. 4 (g)).
Rearrange. Based on the processing table (FIG. 4 (i)) rearranged last, the character string rearranged by the output processing (15) is generated and output.

【0021】各処理について詳細に説明を行う。計数処
理(13)を図4及び図5を用いて説明する。最初にス
テップS1として、並べ替え処理を行う文字列(11)
内の処理を行う部分の開始・終了アドレスを図4(d)
で示す内部メモリに格納する。文字列(11)の先頭及
び末尾を示すアドレスが格納される。
Each process will be described in detail. The counting process (13) will be described with reference to FIGS. 4 and 5. First, in step S1, a character string (11) to be rearranged
Figure 4 (d) shows the start and end addresses of the part of
Stored in the internal memory indicated by. Addresses indicating the beginning and end of the character string (11) are stored.

【0022】続いてステップS2では並べ替えを行う1
単位のデータ(例では1行)の開始・終了アドレスを求
め、処理テーブル図4(e)に格納する。
Subsequently, in step S2, rearrangement is performed 1
The start / end addresses of the unit data (one line in the example) are obtained and stored in the processing table FIG. 4 (e).

【0023】次に、その1データに対し、検索桁情報
(13)に格納された検索開始相対桁数目の位置を求め
る(ステップS3)。
Next, the position of the search start relative digit number stored in the search digit information (13) is obtained for the one data (step S3).

【0024】ステップS3で求めた位置の文字が、検索
文字図4(b)と比較し(ステップS5)一致した場合
は個数情報を増やす(ステップS6)。
The character at the position obtained in step S3 is compared with the retrieved character shown in FIG. 4 (b) (step S5). If they match, the number information is increased (step S6).

【0025】順次、処理位置を更新しながら(ステップ
S8)処理を繰り返し、検索桁情報図4(c)に記憶さ
れた検索終了相対桁数の位置まで処理を終えたら(ステ
ップS7)、個数情報を処理テーブル図4(e)の個数
の位置に格納する(ステップS8)。
While the processing position is sequentially updated (step S8), the processing is repeated, and when the processing is completed up to the position of the relative digit number of the search end stored in the search digit information FIG. 4 (c), the number information is displayed. Are stored in the number of positions in the processing table of FIG. 4 (e) (step S8).

【0026】以上の処理を内部メモリ図4(d)に格納
された終了アドレスまで繰り返す(ステップS10)こ
とで、図4(f)で示すような処理テーブルが作成され
る。
By repeating the above processing until the end address stored in the internal memory FIG. 4D (step S10), a processing table as shown in FIG. 4F is created.

【0027】並べ替え手段を図4及び図6を用いて説明
する。上記計数処理手段によって作成された処理テーブ
ル図4(f)より個数情報を取り出し(ステップS1
1)、すでに処理の大割った並べ替え済みテーブルの最
大のものと比較を行う(ステップS13)。
The sorting means will be described with reference to FIGS. 4 and 6. The number information is extracted from the processing table shown in FIG. 4 (f) created by the counting processing means (step S1).
1) A comparison is made with the largest sorted table that has already been largely divided (step S13).

【0028】比較の結果、取り出した個数情報のほうが
小さければ比較対象をひとつ前に変更し(ステップS1
4)、再度比較を行う。大きければ比較対象のテーブル
の次に取り出した個数情報とそのデータの開始・終了位
置を挿入する(ステップS15)。
As a result of the comparison, if the extracted number information is smaller, the comparison target is changed to the previous one (step S1).
4) Then, compare again. If it is larger, the number information extracted next to the table to be compared and the start / end positions of the data are inserted (step S15).

【0029】処理テーブルの最後まで繰り返すと図4
(g)で示すような並べ替えられた処理テーブルが作成
される(ステップS16)。
Repeating to the end of the processing table, FIG.
A rearranged processing table as shown in (g) is created (step S16).

【0030】出力処理は次のような手順で行われる。ま
ず、ポインタを初期化する(ステップS17)。そし
て、処理テーブル図4(g)から1データの開始・終了
アドレスを取り出し(ステップS18)、被処理文書図
4(a)の該当部分を中間バッファ図4(h)に転送す
る(ステップS19)。
The output process is performed in the following procedure. First, the pointer is initialized (step S17). Then, the start / end address of one data is taken out from the processing table FIG. 4 (g) (step S18), and the corresponding part of the processed document FIG. 4 (a) is transferred to the intermediate buffer FIG. 4 (h) (step S19). .

【0031】処理テーブル図4(g)のすべてのデータ
に対し転送を行い(ステップS20)、バッファ図4
(h)に追加していくと処理範囲図4(d)で指定され
た部分について並べ替えを行った中間バッファ図4
(h)が作成される。
Processing table All the data in FIG. 4 (g) are transferred (step S20), and the buffer diagram in FIG.
When added to (h), the processing range shown in FIG. 4 (d) is an intermediate buffer in which the portions specified in FIG. 4 have been rearranged.
(H) is created.

【0032】この中間バッファ図4(h)を処理範囲図
4(d)で指定され開始アドレスから終了アドレスまで
に転送する(ステップS22)と、最終的な出力である
文書バッファ図4(i)ができあがる。
When this intermediate buffer FIG. 4 (h) is transferred from the start address to the end address specified in the processing range FIG. 4 (d) (step S22), the final output is the document buffer FIG. 4 (i). Is completed.

【0033】次に、指定文字を“全文字”とした場合の
例を示す。図3(b)に設定画面例を示す。ここで、並
び替え方式を文字個数順として、指定文字を“全文字”
とする。後の設定は同様でもよいが、今回は文書バッフ
ァに図7(a)に示した例を使用することとする。そこ
で、比較範囲を1桁目から10桁目までと設定する。各
設定は図7(b)〜(d)に格納される。
Next, an example in which the designated character is "all characters" is shown. FIG. 3B shows an example of the setting screen. Here, the sorting method is the order of the number of characters, and the designated character is "all characters".
And The subsequent settings may be the same, but this time, the example shown in FIG. 7A is used for the document buffer. Therefore, the comparison range is set from the first digit to the tenth digit. The settings are stored in FIGS. 7B to 7D.

【0034】図7(a)に示すような文書バッファを文
字数順に並べ替える手順を示す。まず、ステップS1〜
ステップS3までは同様である。ステップS4で全文字
モードであるかどうかを判断し、全文字モードであるの
でステップS9で有効文字を計数する。他の処理は同様
である。
A procedure for rearranging the document buffer as shown in FIG. 7A in the order of the number of characters will be described. First, step S1
The same is true up to step S3. In step S4, it is determined whether the mode is the all-character mode. Since the mode is the all-character mode, the valid characters are counted in step S9. The other processing is the same.

【0035】メモリの様子を図7(g)に示す。1項目
の“january”を計数した時点のメモリの様子が
615である。すべて12項目の計数が終了すると61
6に示す結果が得られる。
The state of the memory is shown in FIG. The state of the memory at the time of counting “january” of one item is 615. 61 when all 12 items have been counted
The results shown in 6 are obtained.

【0036】それに対して並替処理が行われる。処理が
行われたあとのメモリの様子を図7(g)に示す。それ
に基づいて図7(h)に示す文書バッファが作成され
る。つまり、文字数の多い順に並替られることになる。
The rearrangement process is performed on it. The state of the memory after processing is shown in FIG. Based on this, the document buffer shown in FIG. 7 (h) is created. In other words, they are sorted in descending order of the number of characters.

【0037】第2の実施の形態について説明する。並べ
替え処理の開始・終了範囲の指定方法を特定の文字列に
よって、指定する方法である。図3(c)に設定の例を
示す。この設定例では、並替範囲として“文字指定”を
選択し、開始指定として“表開始”という文字列を入力
している。文書バッファ中にこの文字列がある場合に、
その次の行から処理範囲とする。
The second embodiment will be described. This is a method of designating the start / end range of the sorting process by a specific character string. FIG. 3C shows an example of setting. In this setting example, "character designation" is selected as the rearrangement range, and the character string "table start" is input as the start designation. If this string is in the document buffer,
The processing range starts from the next line.

【0038】終了指定も同様である、この例では“表終
了”という文字列を入力している。文書バッファ中にこ
の文字列が存在する場合に、その前の行までを並替の処
理範囲とするものである。
The end designation is also the same. In this example, the character string "end of table" is entered. When this character string exists in the document buffer, the processing range up to the preceding line is set.

【0039】図7のフローチャートを用いて処理の流れ
を示す。ステップS31は開始行を決定する処理か、終
了行を決定する処理かを判別するための処理であり、初
期値としては開始行決定処理が代入されている。ステッ
プS32で、文書バッファより1行分のデータを取り込
み、ステップS36で、開始文字列がそのデータ内に含
まれるかどうかをチェックする。
The flow of processing will be described with reference to the flowchart of FIG. Step S31 is a process for discriminating between the process for determining the start line and the process for determining the end line, and the start line determination process is substituted as the initial value. In step S32, one line of data is fetched from the document buffer, and in step S36, it is checked whether the start character string is included in the data.

【0040】文字列が存在した場合、その次の行の開始
アドレスを処理範囲として格納し(ステップS39)、
検索モードを終了行として(ステップS41)、同じ手
順により終了行決定処理を行う。以降の処理は上述した
第1の実施の形態と同様である。
If the character string exists, the start address of the next line is stored as the processing range (step S39),
Using the search mode as the end line (step S41), the end line determination process is performed by the same procedure. Subsequent processing is the same as in the above-described first embodiment.

【0041】この例では開始指定された文字列が存在す
る次の行及び終了指定された文字列が存在する前の行ま
でを処理範囲としているが、例えば指定した文字列が存
在する行から開始ないし終了とする設定方法を許しても
よい。
In this example, the processing range extends to the next line where the designated character string exists and the line before the end designated character string exists. However, for example, it starts from the line where the designated character string exists. Or, you may allow the setting method of ending.

【0042】第3の実施の形態について説明する。並べ
替え処理の開始・終了範囲の指定方法を直接行番号を入
力することによって指定する方法である。図3(d)に
設定の例を示す。この設定例では並替範囲として“12
行目”から“350行目”までを指定している。つま
り、文書バッファ中の12行目から350行目が処理範
囲となる。
A third embodiment will be described. This is a method of specifying the start / end range of the sorting process by directly inputting the line number. An example of setting is shown in FIG. In this setting example, the sorting range is "12.
The lines from "line 350" to "line 350" are specified, that is, the 12th to 350th lines in the document buffer are the processing range.

【0043】図8のステップS38で、行数が指定され
ていると、その行をステップS39でセットする。以降
の処理は上述した第1の実施の形態と同様である。
If the number of rows is designated in step S38 of FIG. 8, that row is set in step S39. Subsequent processing is the same as in the above-described first embodiment.

【0044】以上のような処理によって、特定の文字列
の出現回数に基づいてソーティング処理を行うことが可
能となる。
By the above processing, the sorting processing can be performed based on the number of appearances of a specific character string.

【0045】[0045]

【発明の効果】ユーザが従来は特定の文字列を文書全体
の中から捜し出して、計数し、さらにその値を文書に一
時的に書き込んでソーティングを行い、さらにそのあと
で、消去するという繁雑な処理を行う必要があったが、
本発明によれば検索、計数、および並び替えの処理を一
括して行うことが可能となる。
According to the related art, a user conventionally searches for a specific character string in the entire document, counts the value, temporarily writes the value in the document for sorting, and then deletes the complicated character string. I had to do some processing,
According to the present invention, it is possible to collectively perform the processes of searching, counting, and rearranging.

【0046】さらに、特定の文字列の出現回数によるソ
ーティングするだけでなく、全部の文字を処理対象とす
ることにより、文字数順にソーティングするということ
が可能となる。
Furthermore, not only sorting by the number of appearances of a specific character string, but also sorting of all characters by the number of characters becomes possible.

【0047】また、処理範囲を文書中に存在する特定の
文字列を指定することにより、表の長さや開始位置が異
なる場合にも自動的に表のデータ等をソーティングで
き、表の構成が同一の場合は、行数を指定することによ
って、自動的に表の部分をソーティングすることが可能
となる。
Further, by designating a specific character string existing in the document as the processing range, the table data and the like can be automatically sorted even when the table length and the start position are different, and the table configuration is the same. In the case of, by specifying the number of rows, it becomes possible to automatically sort the table portion.

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

【図1】本発明の実施の形態におけるブロック図であ
る。
FIG. 1 is a block diagram according to an embodiment of the present invention.

【図2】本発明の実施の形態における処理の関係を示す
図である。
FIG. 2 is a diagram showing a processing relationship in the embodiment of the present invention.

【図3】本発明の実施の形態における設定画面の表示例
を示す図である。
FIG. 3 is a diagram showing a display example of a setting screen in the embodiment of the present invention.

【図4】本発明の実施の形態におけるバッファ/メモリ
の様子を示す図である。
FIG. 4 is a diagram showing a state of a buffer / memory in the embodiment of the present invention.

【図5】本発明の実施の形態における計数処理の流れを
示すフローチャートである。
FIG. 5 is a flowchart showing a flow of counting processing in the embodiment of the present invention.

【図6】本発明の実施の形態における並替処理の流れを
示すフローチャートである。
FIG. 6 is a flowchart showing a flow of rearrangement processing according to the embodiment of the present invention.

【図7】本発明の実施の形態におけるバッファ/メモリ
の様子を示す図である。
FIG. 7 is a diagram showing a state of a buffer / memory in the embodiment of the present invention.

【図8】本発明の実施の形態における範囲検索処理の流
れを示すフローチャートである。
FIG. 8 is a flowchart showing a flow of range search processing according to the embodiment of the present invention.

【図9】本発明の従来技術についての説明図である。FIG. 9 is an explanatory diagram of a conventional technique of the present invention.

【図10】本発明の従来技術についての説明図である。FIG. 10 is an explanatory diagram of a conventional technique of the present invention.

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

1 外部記憶装置 2 ROM 3 RAM 4 演算装置 5 表示装置 6 入力装置 11 被処理文書 12 処理範囲決定手段 13 計数処理 14 並べ替え手段 15 出力処理 16 処理開始・終了行指定手段 17 検索文字指定手段 18 処理開始・終了文字列指定手段 19 検索手段 20 検索開始・終了桁指定手段 1 External Storage Device 2 ROM 3 RAM 4 Computing Device 5 Display Device 6 Input Device 11 Processed Document 12 Processing Range Determining Means 13 Counting Processing 14 Sorting Means 15 Output Processing 16 Processing Start / End Line Designating Means 17 Search Character Designating Means 18 Processing start / end character string specifying means 19 Search means 20 Search start / end digit specifying means

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 文字等を入力する入力手段と、 前記入力手段より入力された文字等を文字列として記憶
する記憶手段と、 前記記憶手段に記憶された文字列を出力する出力手段
と、 前記入力手段、記憶手段、出力手段を制御する制御手段
を備えた文字処理装置において、 前記記憶手段に記憶された文字列を、改行等の特定の区
切りによりソート基準文字列に分割する文字列分割手段
と、 前記ソート基準文字列中における特定の文字列を検索す
る特定文字列検索手段と、 前記特定文字列検索手段により検索された特定文字列の
出現回数を、前記ソート基準文字列ごとに計数する計数
手段と、 前記計数手段による計数結果を並び替えの条件として、
前記ソート基準文字列を並び替える並び替え手段とを備
えたことを特徴とする文字処理装置。
1. Input means for inputting characters and the like; storage means for storing the characters and the like input by the input means as a character string; output means for outputting the character string stored in the storage means; A character processing device comprising a control means for controlling an input means, a storage means, and an output means, wherein a character string dividing means for dividing a character string stored in the storage means into sort reference character strings by a specific delimiter such as a line feed A specific character string search means for searching a specific character string in the sort reference character string; and an appearance frequency of the specific character string searched by the specific character string search means is counted for each of the sort reference character strings. Counting means, as a condition of sorting the counting results by the counting means,
A character processing device comprising: a rearrangement unit that rearranges the sort reference character strings.
【請求項2】 前記記憶手段に記憶された文字列におい
て、特定の文字により前記並び替え処理の範囲を認識
し、その範囲に限定して前記並べ換え処理を行うことを
特徴とする前記請求項1記載の文字処理装置。
2. The character string stored in the storage means, the range of the rearrangement process is recognized by a specific character, and the rearrangement process is limited to the range to perform the rearrangement process. Character processing device described.
【請求項3】 前記記憶手段に記憶された文字列におい
て、ユーザが前記並び替え処理の範囲を指示し、その範
囲に限定して前記並べ換え処理を行うことを特徴とする
前記請求項1記載の文字処理装置。
3. The character string stored in the storage means, wherein the user designates a range of the rearrangement process, and the rearrangement process is limited to the range, and the rearrangement process is performed. Character processing unit.
JP8041060A 1996-02-28 1996-02-28 Character processor Pending JPH09231292A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8041060A JPH09231292A (en) 1996-02-28 1996-02-28 Character processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8041060A JPH09231292A (en) 1996-02-28 1996-02-28 Character processor

Publications (1)

Publication Number Publication Date
JPH09231292A true JPH09231292A (en) 1997-09-05

Family

ID=12597888

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8041060A Pending JPH09231292A (en) 1996-02-28 1996-02-28 Character processor

Country Status (1)

Country Link
JP (1) JPH09231292A (en)

Similar Documents

Publication Publication Date Title
JPH04281565A (en) Document retrieving device
JPH09231292A (en) Character processor
JPH11232149A (en) File comparison processing method and device, and medium storing file comparison processing program
JP2003233516A (en) Database, computer readable program, database management system, new registration method for database, retrieving method in database, and update registration method for database
JPH0514304B2 (en)
JP3225735B2 (en) Information retrieval device
JPH11161666A (en) Method and device for document data retrieval and document editing device
JP2737850B2 (en) Information processing method
JPH07230469A (en) Retrieval device
JPS6330923A (en) Menu displaying system
JP2739589B2 (en) Information retrieval device
JP2001052022A (en) Data totalization and reference type retrieval system
JPH05181719A (en) Variable length data storage and reference system
JP3237709B2 (en) Document processing apparatus and document processing method
JP3537052B2 (en) File processing device
JPH07249034A (en) Character string extraction processor
JPS62182838A (en) Document processor
JPH04167123A (en) Mixed data processing system
JPH0736916A (en) Image retrieval device
JPH04158469A (en) Document preparing device
JPS62151922A (en) Information registration and retrieval device
JPS6379178A (en) Electronic document image file device
JPH09305355A (en) Device and method for information input
JPH08287064A (en) Method for adjusting character modification
JPH08137889A (en) Method and device for data retrieval