JPH10162004A - Character string display device - Google Patents
Character string display deviceInfo
- Publication number
- JPH10162004A JPH10162004A JP8315123A JP31512396A JPH10162004A JP H10162004 A JPH10162004 A JP H10162004A JP 8315123 A JP8315123 A JP 8315123A JP 31512396 A JP31512396 A JP 31512396A JP H10162004 A JPH10162004 A JP H10162004A
- Authority
- JP
- Japan
- Prior art keywords
- character string
- character
- line
- indentation
- rectangular 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.)
- Granted
Links
Landscapes
- Document Processing Apparatus (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】この発明は、矩形領域内に入
力文字列を表示する文字列表示装置に関し、特にウイン
ドウ内の矩形領域の行方向サイズを変更したとき、文字
列行を詰めて途中に移動した字下げ空白文字を削除し、
各行頭に字下げ空白文字を挿入して文頭を揃えて整列表
示する文字列表示装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character string display device for displaying an input character string in a rectangular area. Remove the moved indentation whitespace,
The present invention relates to a character string display device that inserts an indentation blank character at the beginning of each line and aligns and displays the sentence head.
【0002】[0002]
【従来の技術】従来、表示装置のウインドウ内矩形領域
に入力文字列を表示する場合、タブ等により字下げ(イ
ンデント)位置を決めて文字列を整列表示する。特開平
5−250356号公報によれば、字下げのための情報
を記憶する字下げ体裁記憶手段を設けて、文字列を字下
げ編集するとき、該字下げ体裁記憶手段を参照して、行
毎の行頭が特殊文字かあるいは改行コードの直後である
かを判定して、字下げ位置を制御する技術を開示してい
る。2. Description of the Related Art Conventionally, when an input character string is displayed in a rectangular area in a window of a display device, an indentation (indent) position is determined by a tab or the like, and the character strings are arranged and displayed. According to Japanese Patent Application Laid-Open No. 5-250356, an indentation style storage means for storing information for indentation is provided, and when a character string is indented and edited, a line is referred to by referring to the indentation style storage means. It discloses a technique for determining whether the beginning of each line is a special character or immediately after a line feed code, and controlling the indentation position.
【0003】また特開昭63−56575号公報によれ
ば、字下げ編集するとき、空白文字列が生じている箇所
が文書ファイル中のタブあるいは字下げなどの制御情報
によるものか、単に空白文字が挿入されたのかが区別が
つかないため、校正するときの字下げ編集にとまどうこ
とがある。それを回避するため、空白文字が挿入される
事由を特殊コードで識別可能にしている。According to Japanese Patent Application Laid-Open No. 63-56575, when indentation editing is performed, a place where a blank character string occurs is caused by control information such as tabs or indentation in a document file, or simply a blank character. Since it is indistinguishable whether or not the text has been inserted, indentation editing when proofreading may be confusing. To avoid this, the reason why a blank character is inserted can be identified by a special code.
【0004】簡易な文字列表示装置では、上述の公報と
異なり、オペレータが行頭に空白文字を入力して字下げ
を各行毎に実施するものが多い。更に、途中で矩形領域
の行サイズを変更すると、表示文字列の折り返し位置が
変わるため、字下げのために入れた空白文字が別のとこ
ろに移動して、文字列表示が整列しないという問題があ
る。電子メール等のエディタなど簡易な文字列表示装置
ではこの様なものが多く、表示フォームを整えるのに苦
労することが多いい。上述の公報および簡易な文字列表
示装置においては、矩形領域のサイズが変更されて、行
の文字数が変更されたとき、字下げによる空白文字の削
除と挿入の問題には対処されていない。[0004] In a simple character string display device, in many cases, unlike the above-mentioned publication, an operator inputs a blank character at the beginning of a line and indents each line. Furthermore, if the line size of the rectangular area is changed in the middle, the wrapping position of the display character string changes, so the blank characters inserted for indentation move to another place, and the character string display is not aligned. is there. Such a simple character string display device such as an editor for electronic mail is often used, and it is often difficult to prepare a display form. The above publication and the simple character string display device do not address the problem of deleting and inserting blank characters due to indentation when the size of a rectangular area is changed and the number of characters in a line is changed.
【0005】[0005]
【発明が解決しようとする課題】従来の簡易な文字列表
示装置では、文字列の自動折り返しによって文章が「大
項目」「小項目」など内容のレベルに応じて字下げされ
ていても、矩形領域のサイズ変更に伴い文字列の折り返
し位置が変わって表示される結果、字下げのための空白
文字が行の途中に表示されたり、行頭の字下げ(空白文
字)が消えて行頭から文字列が表示されたりする。行頭
の字下げの効果が無くなってしまい、表示がきれいに整
列しない欠点がある。In the conventional simple character string display device, even if the text is indented according to the level of the content such as "large item" or "small item" by automatic wrapping of the character string, the rectangular As the size of the area is changed, the wrapping position of the character string is changed and displayed. As a result, a blank character for indentation is displayed in the middle of the line, or the indentation (blank character) at the beginning of the line disappears and the character string from the beginning of the line Is displayed. There is a disadvantage that the effect of indentation at the beginning of the line is lost, and the display is not aligned neatly.
【0006】この発明は、上述の欠点を解決するもの
で、矩形領域のサイズ変更を、文字列表示の字下げの効
果を保ったまま行える手段を持つ文字列表示装置を提供
することを目的とする。SUMMARY OF THE INVENTION It is an object of the present invention to provide a character string display device having means for changing the size of a rectangular area while maintaining the effect of indenting a character string display. I do.
【0007】[0007]
【課題を解決するための手段】そのため、この発明のワ
ープロソフトやエディタソフトなどで、表示画面内の矩
形領域に字下げ空白文字を含む文字列が行頭を字下げし
て整列表示される文字列表示装置において、前記矩形領
域が行方向にサイズを変更したとき、変更後の矩形領域
内に文字列が行を渡って順次に詰められ、かつ行頭の字
下げ空白文字による行頭を揃えて整列表示されることを
特徴とする。更に、前記文字表示装置は、前記矩形領域
に表示されている文字列の先頭文字から、字下げ空白文
字を含む前記文字列の改行コードまでの全文字列長を算
出する文字列長算出処理部と、変更前の矩形領域に表示
されている文字列の行を走査して字下げ空白文字数を算
出する空白文字算出処理部と、変更後の矩形領域の行方
向サイズから表示可能な文字列長を算出し、行文字列の
折り返し位置を算出する文字列折り返し位置算出処理部
と、変更後の矩形領域に対して、先頭文字位置を変えず
に文字列を順次に行を渡って詰めて、文字列途中の字下
げ空白文字を削除し、各行頭に前記字下げ空白文字数の
空白文字を挿入し、行頭を揃えて整列表示する文字列出
力処理部と、を備えることを特徴とする。また、前記矩
形領域は、表示画面内のウインドウに設けられる入力文
字表示領域であることを特徴とする。Therefore, in a word processing software or an editor software of the present invention, a character string including an indented blank character in a rectangular area in a display screen is displayed in a line indented line head. In the display device, when the size of the rectangular area is changed in the line direction, the character string is sequentially packed in the changed rectangular area across the lines, and the head of the line is indented. It is characterized by being performed. Further, the character display device is a character string length calculation processing unit that calculates a total character string length from a first character of the character string displayed in the rectangular area to a line feed code of the character string including an indentation blank character. And a blank character calculation processing unit that scans the line of the character string displayed in the rectangular area before the change to calculate the number of indented blank characters, and a character string length that can be displayed based on the line size of the rectangular area after the change. And a character string wrapping position calculation processing unit that calculates the wrapping position of the line character string, and sequentially inserts the character string across the lines without changing the leading character position for the changed rectangular area, A character string output processing unit that deletes indentation blank characters in the middle of a character string, inserts the number of blank characters corresponding to the number of indentation blank characters at the beginning of each line, and aligns and displays the lines. Further, the rectangular area is an input character display area provided in a window in a display screen.
【0008】[0008]
【発明の実施の形態】この発明について、図を参照して
説明する。この発明の一実施例の構成を示す図1を参照
すると、文字列表示装置1は、文字列の先頭の文字から
改行コードまでの文字列長を算出する文字列長算出処理
部2と、図示していない画面上の矩形領域のサイズから
表示可能な行文字列長を算出し、表示文字列の折り返し
位置を算出する文字列折り返し位置算出処理部3と、表
示されている文字列を走査して、各行頭の字下げによる
空白文字数を算出する空白文字算出処理部4と、矩形領
域が変更された後、文字列が移動して空白文字が行の途
中にあれば削除し、行頭に字下げ空白文字を挿入して折
り返し位置までの文字列を表示し、折り返し後の次行の
行頭に字下げ空白文字を挿入した後、順次に残りの行文
字列を表示する文字列表示処理部5と、を備える。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described with reference to the drawings. Referring to FIG. 1 showing a configuration of an embodiment of the present invention, a character string display device 1 includes a character string length calculation processing unit 2 for calculating a character string length from the first character of a character string to a line feed code, A character string wrapping position calculation processing unit 3 for calculating a displayable character string length from a size of a rectangular area on the screen not shown and calculating a wrapping position of the display character string, and scans the displayed character string. And a blank character calculation processing unit 4 for calculating the number of blank characters due to indentation at the beginning of each line, and deleting a blank character if the character string is moved and a blank character is in the middle of the line after the rectangular area is changed. A character string display processing unit 5 that inserts indented blank characters to display the character string up to the wrap position, inserts indented blank characters at the beginning of the next line after wrapping, and sequentially displays the remaining line character strings. And.
【0009】次に、この実施例の動作を説明する。この
実施例の動作を示す流れ図2を参照する。まず新たに文
字列が画面に表示するまでの過程を説明する。矩形領域
に新たに入力文字列が表示されると、文字列長算出処理
部2は、該文字列を取得し(ステップ21)、それのフ
ォントサイズを取得して(ステップ22)、該文字列の
文字列長を算出する(ステップ23)。文字列折り返し
位置算出処理部3は、矩形領域の行方向サイズを取得し
(ステップ24)、表示可能な行文字列の長さを算出
し、文字列長算出処理部2で算出した文字列長と比較す
ることで、文字列の折り返し位置を算出する (ステップ
25) 。空白文字カウント処理部4は、表示されている
文字列を走査し(ステップ26)、行行頭に入力されて
いる字下げ空白文字数をカウントする(ステップ2
7)。文字列表示処理部5は、空白文字カウント処理部
4で算出した行頭の字下げ空白文字数に相当する空白文
字が行途中にあるか否かを判定し、空白文字があるとき
(ステップ29のY)、それを削除し(ステップ3
0)、変更後の矩形領域の行頭に空白文字カウント処理
部4で算出した行頭の字下げ空白文字数だけ空白文字を
挿入表示し(ステップ31)、続けて文字列折り返し位
置算出処理部3で算出した折り返し位置までの文字列を
表示し(ステップ32)、折り返し後の次行の行頭に空
白文字カウント処理部4で算出した先頭の字下げ空白文
字数だけ空白文字を挿入した後(ステップ33)、残り
の文字列を表示する(ステップ34) 。Next, the operation of this embodiment will be described. Reference is made to flowchart 2 illustrating the operation of this embodiment. First, a process until a character string is newly displayed on the screen will be described. When a new input character string is displayed in the rectangular area, the character string length calculation processing unit 2 obtains the character string (step 21), obtains the font size thereof (step 22), and obtains the character string. Is calculated (step 23). The character string wrap position calculation processing unit 3 acquires the size of the rectangular area in the line direction (step 24), calculates the length of the displayable line character string, and calculates the character string length calculated by the character string length calculation processing unit 2. Then, the return position of the character string is calculated by comparing with (step 25). The blank character count processing unit 4 scans the displayed character string (step 26), and counts the number of indentation blank characters input at the beginning of the line (step 2).
7). The character string display processing unit 5 determines whether a blank character corresponding to the number of indented blank characters at the beginning of the line calculated by the blank character count processing unit 4 is in the middle of the line, and when there is a blank character (Y in step 29). ) And delete it (Step 3)
0), blank characters are inserted and displayed at the beginning of the line of the changed rectangular area by the number of indentation blank characters at the beginning of the line calculated by the blank character count processing unit 4 (step 31), and subsequently calculated by the character string wrapping position calculation processing unit 3 The character string up to the folded position is displayed (step 32), and blank characters are inserted at the beginning of the next line after the folded line by the number of indentation blank characters calculated by the blank character count processing unit 4 (step 33). The remaining character strings are displayed (step 34).
【0010】この実施例において、矩形領域に表示され
る動作結果を例示する図3を参照すると、図3(a)
は、矩形領域41に入力文字列が表示され、各行頭には
空白文字411が挿入されている。サイズが変更された
矩形領域42を例示する図3(b)を参照すると、各行
は新たな折り返し位置で行変りして、行詰めによって文
字列が順次移動するため、字下げ空白文字422が行の
途中にある。また行詰めで字下げされない行423が左
端に行頭423がきている。この発明の字下げ空白文字
の削除と挿入を適用すると、図3(b)の行の途中の空
白文字422は削除され、行頭423には、図3(c)
に例示するように字下げ空白文字432が挿入されるこ
とが示される。更に図3(b)の行423の行頭に図3
(c)のように字下げ空白文字434が挿入され、行頭
が揃えられた文字列が矩形領域43に整列表示される。In this embodiment, referring to FIG. 3, which illustrates an operation result displayed in a rectangular area, FIG.
The input character string is displayed in the rectangular area 41, and a blank character 411 is inserted at the beginning of each line. Referring to FIG. 3B exemplifying the rectangular area 42 whose size has been changed, each line changes its line at a new wrapping position, and the character string moves sequentially due to line filling. On the way. A line 423 that is not indented due to line filling has a line head 423 at the left end. When the indentation blank character deletion and insertion according to the present invention is applied, the blank character 422 in the middle of the line in FIG. 3B is deleted, and the beginning 423 of FIG.
The indentation blank character 432 is inserted as illustrated in FIG. In addition, at the beginning of the line 423 in FIG.
As shown in (c), the indented blank character 434 is inserted, and the character string in which the head of the line is aligned is arranged and displayed in the rectangular area 43.
【0011】[0011]
【発明の効果】この発明は、以上説明したように、字下
げのための空白文字を行頭に持つ文字列を表示している
矩形領域のサイズを変更した場合、字下げの効果を保っ
たまま文字列を整列表示する手段を設けることにより、
字下げによる文字列の読み易さを保つことができる。As described above, according to the present invention, when the size of a rectangular area displaying a character string having a blank character for indentation at the beginning of a line is changed, the effect of indentation is maintained. By providing a means to arrange and display character strings,
The readability of the character string by indentation can be maintained.
【図1】この発明の一実施例の構成を示す図である。FIG. 1 is a diagram showing a configuration of an embodiment of the present invention.
【図2】図1の実施例の動作を示すフローチャートであ
る。FIG. 2 is a flowchart showing the operation of the embodiment of FIG.
【図3】分図(a)乃至分図(c)は、図1の実施例の
矩形領域に表示される文字列を例示する図である。FIGS. 3A to 3C are diagrams illustrating character strings displayed in a rectangular area in the embodiment of FIG. 1;
1 文字列表示装置 2 文字列長算出処理部 3 文字列折り返し位置算出処理部 4 空白文字カウント処理部 5 文字列表示処理部 DESCRIPTION OF SYMBOLS 1 Character string display device 2 Character string length calculation processing part 3 Character string return position calculation processing part 4 Blank character count processing part 5 Character string display processing part
Claims (3)
で、表示画面内の矩形領域に字下げ空白文字を含む文字
列が行頭を字下げして整列表示される文字列表示装置に
おいて、 前記矩形領域が行方向にサイズを変更したとき、変更後
の矩形領域内に文字列が行を渡って順次に詰められ、か
つ行頭の字下げ空白文字による行頭を揃えて整列表示さ
れることを特徴とする文字列表示装置。1. A character string display device in which a character string including an indentation blank character is arranged and displayed in a rectangular area on a display screen by indenting the head of a line using word processing software or editor software. When the size is changed in the direction, the character string is sequentially packed in the changed rectangular area across the lines, and displayed in line with the indentation blank character at the beginning of the line. Display device.
字下げ空白文字を含む前記文字列の改行コードまでの全
文字列長を算出する文字列長算出処理部と、 変更前の矩形領域に表示されている文字列の行を走査し
て字下げ空白文字数を算出する空白文字算出処理部と、 変更後の矩形領域の行方向サイズから表示可能な文字列
長を算出し、行文字列の折り返し位置を算出する文字列
折り返し位置算出処理部と、 変更後の矩形領域に対して、先頭文字位置を変えずに文
字列を順次に行を渡って詰めて、文字列途中の字下げ空
白文字を削除し、各行頭に前記字下げ空白文字数の空白
文字を挿入し、行頭を揃えて整列表示する文字列出力処
理部と、 を備えることを特徴とする請求項1記載の文字列表示装
置。2. The character display device according to claim 1, further comprising:
A character string length calculation processing unit that calculates the entire character string length up to the line feed code of the character string including the indentation space character, and scans the line of the character string displayed in the rectangular area before the change to indent the space A blank character calculation processing unit that calculates the number of characters, a character string wrap position calculation processing unit that calculates a displayable character string length from the line direction size of the changed rectangular area, and calculates a line character wrap position, For the subsequent rectangular area, fill the character string sequentially across the lines without changing the leading character position, delete the indented blank characters in the middle of the character string, and add the indented blank character number at the beginning of each line 2. A character string display device according to claim 1, further comprising: a character string output processing unit that inserts a character string and aligns and displays the line.
ウに設けられる入力文字表示領域であることを特徴とす
る請求項1記載の文字列表示装置。3. The character string display device according to claim 1, wherein the rectangular area is an input character display area provided in a window in a display screen.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP8315123A JP3048942B2 (en) | 1996-11-26 | 1996-11-26 | String display device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP8315123A JP3048942B2 (en) | 1996-11-26 | 1996-11-26 | String display device |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH10162004A true JPH10162004A (en) | 1998-06-19 |
JP3048942B2 JP3048942B2 (en) | 2000-06-05 |
Family
ID=18061688
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP8315123A Expired - Fee Related JP3048942B2 (en) | 1996-11-26 | 1996-11-26 | String display device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3048942B2 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6668355B1 (en) | 1999-03-30 | 2003-12-23 | Fujitsu Limited | Text editing system |
JP2010211488A (en) * | 2009-03-10 | 2010-09-24 | Fujitsu Ltd | Program, device, and method for recording electronic medical chart information |
JP5676788B1 (en) * | 2014-01-16 | 2015-02-25 | 東芝エレベータ株式会社 | Elevator display system |
-
1996
- 1996-11-26 JP JP8315123A patent/JP3048942B2/en not_active Expired - Fee Related
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6668355B1 (en) | 1999-03-30 | 2003-12-23 | Fujitsu Limited | Text editing system |
JP2010211488A (en) * | 2009-03-10 | 2010-09-24 | Fujitsu Ltd | Program, device, and method for recording electronic medical chart information |
JP5676788B1 (en) * | 2014-01-16 | 2015-02-25 | 東芝エレベータ株式会社 | Elevator display system |
Also Published As
Publication number | Publication date |
---|---|
JP3048942B2 (en) | 2000-06-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
AU719368B2 (en) | Font sharing system and method, and recording medium storing program for executing font sharing method | |
JP2713389B2 (en) | How to manage multimedia document formats | |
US7978935B2 (en) | Method for changing the dimensions of an electronically stored image | |
US6332148B1 (en) | Appearance and positioning annotation text string and base text string specifying a rule that relates the formatting annotation, base text characters | |
EP0454964A2 (en) | A system and method for editing a structured document to modify emphasis characteristics | |
JPH11327870A (en) | Device for reading-aloud document, reading-aloud control method and recording medium | |
JPH0250478B2 (en) | ||
JPS595277A (en) | Display indication system for multi-window screen | |
JP3048942B2 (en) | String display device | |
JPH08221417A (en) | New/old comparing editing device for structured document | |
JPH05135025A (en) | Document editor | |
JPS5846427A (en) | Document editing device | |
JPH08255255A (en) | Document information layout device and document information display device | |
JPH0969098A (en) | Document preparation device | |
JPS6231470A (en) | Linking system for documentation device | |
EP0360501A2 (en) | A text-editing apparatus with real time display function | |
JP3077323B2 (en) | Japanese and European mixed document editing device | |
JP3792060B2 (en) | Line feed evaluation method and line feed evaluation processing apparatus | |
JPH0635907A (en) | Structurized document editor | |
JPH0571111B2 (en) | ||
JPH0727528B2 (en) | Sillable hyphen display / non-display control method | |
JPS63304365A (en) | Text data editing/output system for multi-media editing/ output device | |
JPH0734197B2 (en) | Information processing equipment | |
JPH05298299A (en) | Method for setting hierarchical structure | |
JPH1069481A (en) | Document processor and medium where document processing program is recorded |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20000229 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
S533 | Written request for registration of change of name |
Free format text: JAPANESE INTERMEDIATE CODE: R313533 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080324 Year of fee payment: 8 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090324 Year of fee payment: 9 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100324 Year of fee payment: 10 |
|
LAPS | Cancellation because of no payment of annual fees |