Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0762841B2 - Document fair copy device - Google Patents
[go: Go Back, main page]

JPH0762841B2 - Document fair copy device - Google Patents

Document fair copy device

Info

Publication number
JPH0762841B2
JPH0762841B2 JP61151300A JP15130086A JPH0762841B2 JP H0762841 B2 JPH0762841 B2 JP H0762841B2 JP 61151300 A JP61151300 A JP 61151300A JP 15130086 A JP15130086 A JP 15130086A JP H0762841 B2 JPH0762841 B2 JP H0762841B2
Authority
JP
Japan
Prior art keywords
line
document
character
character set
prohibition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP61151300A
Other languages
Japanese (ja)
Other versions
JPS638820A (en
Inventor
俊久 青木
外治 渡辺
Original Assignee
横河・ヒユ−レツト・パツカ−ド株式会社
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 横河・ヒユ−レツト・パツカ−ド株式会社 filed Critical 横河・ヒユ−レツト・パツカ−ド株式会社
Priority to JP61151300A priority Critical patent/JPH0762841B2/en
Priority to EP87109225A priority patent/EP0251245B1/en
Priority to DE87109225T priority patent/DE3785492T2/en
Priority to KR1019870006529A priority patent/KR950007742B1/en
Priority to US07/067,565 priority patent/US4860378A/en
Publication of JPS638820A publication Critical patent/JPS638820A/en
Publication of JPH0762841B2 publication Critical patent/JPH0762841B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J5/00Devices or arrangements for controlling character selection
    • B41J5/30Character or syllable selection controlled by recorded information
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/40Processing or translation of natural language
    • G06F40/53Processing of non-Latin text

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Document Processing Apparatus (AREA)
  • Record Information Processing For Printing (AREA)
  • Communication Control (AREA)

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明は禁則処理付きでテキストの整形出力を行なう際
に有効な文書清書装置に関する。
Description: TECHNICAL FIELD OF THE INVENTION The present invention relates to a document fair copy device which is effective when text is formatted and output with prohibition processing.

〔発明の技術的背景及びその問題点〕[Technical background of the invention and its problems]

欧文のテキストの作成にあたつては、コンピユータ上に
作られたテキストを清書プログラムあるいはテキスト・
フオーマツタと呼ばれるものを用いて所望の形式(たと
えば用紙サイズに合わせて印字する、追込み印字や左右
そろえを行なう等)に整形して印字するということは広
く行なわれている。このような清書プログラムの機能、
動作、あるいは実際の構成法については当業者周知の事
項であり、多くの参考文献があるので、ここではこれ以
上説明しない。なお、参考文献としてはたとえば「ソフ
トウエア作法」第7章文書整形、第335頁ないし386頁
(著者:Brian Kernighan、P.J.Plauger、訳者:木村
泉、共立出版社刊)がある。
To create texts in European languages, copy the texts created on the computer into
It is widely practiced to use a so-called formatter to shape and print in a desired format (for example, printing according to the paper size, performing follow-up printing, right-left alignment, etc.). Functions of such a fair copy program,
The operation or actual configuration method is well known to those skilled in the art, and there are many references, so that it will not be described further here. References include, for example, "Software Manipulation", Chapter 7, Document Formatting, pages 335 to 386 (author: Brian Kernighan, PJPlauger, translator: Izumi Kimura, published by Kyoritsu Shuppansha).

従来の清書プログラムは欧文の整形のみに用いられてき
た。しかし近年、日本語テキスト処理が重要視されるよ
うになり、清書プログラムが欧文だけでなく、漢字が入
つたテキストに対しても同様に動作することが望まれる
ようになつた。更に日本語以外の非欧文、たとえば中国
語や韓国語等、も同じように清書出力できることが好ま
しい。このような多国語対応の文書清書装置を構成する
にあたつては、これまでにはなかつた新たな問題が起つ
た。
Traditional clean copy programs have been used only to format Western text. However, in recent years, Japanese text processing has come to be emphasized, and it has become desired that the clean copy program operates not only for Western texts but also for texts containing Chinese characters. Furthermore, it is preferable that non-European languages other than Japanese, such as Chinese and Korean, can be printed in the same way. In constructing such a multilingual document fair copy device, a new problem has never occurred so far.

このような問題のひとつとして禁則処理に関連するもの
がある。禁則処理とは、よく知られているように、行頭
あるいは行末に特定の文字が来ないようにすることであ
る。たとえば「。」が行頭に来る場合には、前の行から
1文字を追い出してこの行に入れることにより「。」を
行頭でないようにする。
One of such problems is related to prohibition processing. The kinsoku process is, as is well known, to prevent a specific character from starting or ending a line. For example, when "." Is at the beginning of a line, "." Is not at the beginning of the line by erasing one character from the previous line and inserting it in this line.

従来の日本語処理用の清書プログラムでは、行頭に来て
はいけない文字セツトおよび行末に来てはいけない文字
セツトは夫々固定されてそれらの文字コードがプログラ
ムのコード中に埋め込まれており、使用者側で変更する
ことはできなかつた。ところが、このような清書プログ
ラムを日本語だけではなく、中国語や韓国語にも使用し
ようとすると禁則処理上の問題が発生する。すなわち、
これらの言語間では禁則処理の対象となる文字セツトが
異なつているし、また同じ文字であつたとしても文字コ
ードとしては異なつている場合もある。更に同じ言語で
もどの文字に対して禁則処理をするかということは人に
よつて多少異なつている。従つて、このような状況に対
しては従来の清書プログラムを用いた文書清書装置は対
応できなかつた。
In a conventional clean copy program for Japanese language processing, character sets that should not come at the beginning of a line and character sets that should not come at the end of a line are fixed and their character codes are embedded in the code of the program. It couldn't be changed by the side. However, if you try to use such a clean copy program not only in Japanese but also in Chinese and Korean, there will be problems with prohibition processing. That is,
Character sets subject to prohibition processing are different between these languages, and even if they are the same character, they may be different in character code. Further, which character is subjected to the prohibition process even in the same language is slightly different depending on the person. Therefore, the document clearing apparatus using the conventional clearing program cannot cope with such a situation.

〔発明の目的〕[Object of the Invention]

本発明は上述した従来技術の問題点を解消し、単一の文
書清書装置により、言語および個人間の禁則処理の相異
に対応することを目的とする。
It is an object of the present invention to solve the above-mentioned problems of the prior art and to cope with the difference in the prohibition processing between languages and individuals by using a single document fair copy device.

〔発明の概要〕[Outline of Invention]

本発明の一実施例の文書清書装置によれば、禁則処理を
行なう文書清書装置において、使用者が必要に応じて禁
則処理の対象となる文字セツトを変更することが可能と
なる。これを行なうため、本実施例ではテキスト中に埋
め込まれた追い込み処理指定コマンドのパラメータによ
りこのような文字セツトを指定する。
According to the document fair copy device of one embodiment of the present invention, the user can change the character set to be subjected to the prohibition process in the document fair copy device for performing the prohibition process as necessary. In order to do this, in the present embodiment, such a character set is designated by the parameter of the follow-up processing designation command embedded in the text.

〔発明の実施例〕Example of Invention

第1図に本発明の実施例の文書清書装置の機能ブロツク
図を示す。同図において、清書されるべきテキストは入
力部12から読み込まれる。このテキスト中には清書され
るべき本文の他に、文書清書装置の整形動作を制御する
コマンドが埋め込まれている。本実施例ではこのような
コマンドの一つとして、追い込み処理の開始を指示する
コマンドがある。このコマンドには以下に示すように、
行頭に来てはいけない文字セツト(以下、行頭禁則セツ
トと称する)および行末に来てはいけない文字セツト
(以下、行末禁則セツトと称する)を指定するためのパ
ラメータを付加することができる: .fi p′「(〔′s′。、.,」)〕′ すなわち、上に示した例では、テキスト中でこのコマン
ド以降の部分について追い込み処理を行なうことを指示
している。これに加えて行末禁則セツトとしてpに続く
一対のアポストロフイで囲まれた文字列中の各文字(上
の例では「(〔である)を、また行頭禁則セツトとして
sに続く一対のアポストロフイで囲まれた文字列中の各
文字(上の例では。、.,」)〕である)を指定してい
る。
FIG. 1 shows a functional block diagram of a document copy writing apparatus according to an embodiment of the present invention. In the figure, the text to be printed is read from the input unit 12. In this text, in addition to the body to be printed, commands for controlling the shaping operation of the document printing device are embedded. In the present embodiment, one of such commands is a command for instructing the start of the drive-in process. This command has the following:
A parameter can be added to specify a character set that must not start at the beginning of the line (hereinafter referred to as a non-starting line set) and a character set that cannot start at the end of the line (hereinafter referred to as a line ending prohibition set): .fi p '"((''s'.,.,")]' That is, in the above-mentioned example, it is instructed to perform the follow-up process for the part after this command in the text. In addition to this, each character in the character string enclosed by a pair of apostrophes following p as an end-of-line prohibition set (in the above example, "([is a Each character (.,., ")] In the character string enclosed by is specified.

第1図において、入力部12がこのようなコマンドを検出
すると、そのコマンドは追い込み命令処理部16に送ら
れ、解析される。追い込み命令処理部16は切換部22を設
定することにより、単語生成部14の出力が追い込み処理
部24を通るようにする。追い込み処理命令部16は更にコ
マンド中から行末禁則セツトおよび行頭禁則セツトを抜
き出して、夫々第1バツフア18、第2バツフア20に記憶
する。なお、行末禁則セツトおよび行頭禁則セツトの一
方あるいは両方がこのコマンド中で指定されていない場
合には対応するバツフアの内容は書換えられない。従つ
て、一度追い込み処理を解除し、再び.fiコマンドで追
い込み処理を再開する際、このコマンドに上述のパラメ
ータを付加しなければ前回と同じ禁則処理が行なわれ
る。
In FIG. 1, when the input unit 12 detects such a command, the command is sent to the run-in command processing unit 16 and analyzed. The drive-in command processing unit 16 sets the switching unit 22 so that the output of the word generation unit 14 passes through the drive-in processing unit 24. The drive-in processing instruction section 16 further extracts the end-of-line prohibition set and the start-of-line prohibition set from the command and stores them in the first buffer 18 and the second buffer 20, respectively. If one or both of the end-of-line prohibition set and the start-of-line prohibition set is not specified in this command, the contents of the corresponding buffer cannot be rewritten. Therefore, when the chasing process is once canceled and the chasing process is restarted by the .fi command again, the same prohibition process as the previous time is performed unless the above-mentioned parameter is added to this command.

さて、入力部12がコマンド以外のもの、すなわちテキス
ト本文を取り込むと、これは単語生成部14に送られる。
ここでは入力されたテキストから単語を次々に切出し、
追い込み処理部24へ送る。ここに欧文以外のもの、たと
えば日本語文が与えられた場合には、漢字やかな等の1
つの文字を1つの単語として切出す。これにより、本文
書清書装置においては欧文も非欧文も統一的に取り扱う
ことができる。なお、以下では非欧文の処理について述
べるので、単語生成部14は1文字ずつ出力するものとし
て説明を進める(なお、非欧文の「字」は欧文の「単
語」として取り扱かわれているので、下に述べる追い込
み処理部24は欧文が入つたテキストに対しても何の問題
もなしに動作することは言うまでもない)。
Now, when the input unit 12 takes in something other than a command, that is, a text body, this is sent to the word generation unit 14.
Here, words are cut out one after another from the entered text,
Send to the drive-in processing unit 24. If non-European text, such as Japanese text, is given here, 1 such as Kanji or Kana
Cut out one letter as one word. As a result, the document fair copy device can handle both European and non-European languages in a unified manner. In addition, since the processing of non-European language will be described below, the explanation will be made assuming that the word generation unit 14 outputs one character at a time (note that non-European "characters" are treated as European "words". Needless to say, the drive-in processing unit 24 described below operates without any problem even for a text containing a European language).

追い込み処理部24は単語生成部14から文字の列を受け取
り、これを現在組立て中の行の後ろに次々と追加してい
く。この行の末尾が右マージンをこえたことを検出する
と、追い込み処理部24は最後に追加された1文字を次行
の先頭文字にまわす。
The drive-in processing unit 24 receives a character string from the word generating unit 14 and adds this character string after the line currently being assembled one after another. When detecting that the end of this line exceeds the right margin, the drive-in processing unit 24 turns the last added one character to the first character of the next line.

ここにおいて、行の末尾に位置する文字および次行の先
頭文字の夫々を第1バツフア中の行末禁則セツト中の各
文字および第2バツフア中の行頭禁則セツト中の禁則セ
ツト中の各文字と比較する。もしこれらの比較の結果が
どちらも不一致であれば、現在の行は今の状態で確定さ
れる。もしどちらか一方でも一致すれば、今の行の行末
の一文字を次行に追い出しその先頭文字とする。ここで
上述の比較、およびもし必要であれば次行への追い出
し、をくりかえす。
Here, compare each character at the end of the line and the first character of the next line with each character in the end-of-line prohibited set in the first buffer and each character in the prohibited set in the beginning-of-line prohibited set of the second buffer. To do. If the results of these comparisons do not match, then the current row is established in its current state. If either of them matches, the character at the end of the current line is pushed to the next line and becomes the first character. Here, the above-mentioned comparison and, if necessary, eviction to the next line are repeated.

次に、追い込み処理部24は確定された現在の行の末尾の
文字の位置が右マージンと完全に一致するように調節す
る。これはよく知られているように、プロポーシヨナル
印字によつてもよいしあるいは行中の所々に空白を挿入
することによつて行なつてもよい。
Next, the drive-in processing unit 24 adjusts the position of the character at the end of the confirmed current line so as to completely match the right margin. This may be done by proportional printing, as is well known, or by inserting blanks everywhere in the line.

追い込み処理部24は上述のようにして作成された現在の
行を他の処理部26へ送り出す。この行はそこで必要な処
理を受けた後出力部28により印字される。
The drive-in processing unit 24 sends the current line created as described above to another processing unit 26. This line is printed by the output unit 28 after undergoing necessary processing there.

なお、本発明は上述の実施例に限定されず、必要に応じ
て多様な変形が可能であることは言うまでもない。たと
えば、行末禁則セツト、行頭禁則セツトを入れておくバ
ツフアを複数組設けて切換えてもよい。また、追い込み
処理部24の内部動作は上述のものとは異なつてもよい。
また、出力はプリンタとは限らず、たえばデイスプレイ
に対して行なつてもよい。また、欧文の文末の記号であ
る.?!の次に空白を2文字入れるか1文字でよいかも国
によつて異なるため、どちらを選択するかを追い込み処
理を指示するコマンドのパラメータで指定することもで
きる。
Needless to say, the present invention is not limited to the above-described embodiments, and various modifications can be made if necessary. For example, a plurality of buffers for storing the end-of-line prohibition set and the start-of-line prohibition set may be provided and switched. Further, the internal operation of the drive-in processing unit 24 may be different from that described above.
Further, the output is not limited to the printer, and may be output to the display, for example. In addition, it is a symbol at the end of a sentence in the European language. It may differ depending on the country whether 2 spaces or 1 space is required after?!. Therefore, which one to select is specified by the parameter of the command instructing the drive process. You can also

〔発明の効果〕〔The invention's effect〕

以上説明したように、本発明によれば禁則文字セツトを
自由に設定、変更できるので、言語による禁則処理の違
いに対応できる文書清書装置を提供することができる。
As described above, according to the present invention, the prohibition character set can be freely set and changed, so that it is possible to provide a document fair copy apparatus that can cope with the difference in prohibition processing depending on the language.

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

第1図は本発明の一実施例にかかる文書清書装置の構成
を示す図である。 12:入力部、14:単語生成部、 16:追い込み処理命令部、 18:第1バツフア、20:第2バツフア、 24:追い込み処理部。
FIG. 1 is a diagram showing the configuration of a document fair copy apparatus according to an embodiment of the present invention. 12: input part, 14: word generation part, 16: drive-in processing command part, 18: first buffer, 20: second buffer, 24: drive-in processing part.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】テキストを入力し各行を整形するとともに
禁則処理を行う追い込み処理手段を設けることにより前
記テキストを整形出力する文書清書装置において、 前記禁則処理の対象となる文字セットを保持するととも
に、入力された前記テキスト中に埋め込まれている指令
を検出し、前記検出された指令に基いて前記文字セット
の内容を書換える手段を設けた ことを特徴とする文書清書装置。
1. A document fairing apparatus for formatting and outputting text by inputting text, formatting each line and performing prohibition processing, and holding a character set to be subject to the prohibition processing, A document cleanup device comprising means for detecting a command embedded in the input text and rewriting the content of the character set based on the detected command.
【請求項2】前記禁則処理の対象となる文字セットは、
行末禁則処理の対象となる第1の文字セットと、行頭禁
則処理の対象となる第2の文字セットからなることを特
徴とする特許請求の範囲第1項記載の文書清書装置。
2. The character set subject to the prohibition processing is
The document cleanup device according to claim 1, comprising a first character set that is subject to line-end prohibition processing and a second character set that is subject to line-end prohibition processing.
【請求項3】前記文字セットの内容を変更する手段は前
記第1の文字セットの内容と前記第2の文字セットの内
容を個別に書換えることができることを特徴とする特許
請求の範囲第2項記載の文書清書装置。
3. The means for changing the content of the character set is capable of individually rewriting the content of the first character set and the content of the second character set. Document clearing device according to the paragraph.
JP61151300A 1986-06-27 1986-06-27 Document fair copy device Expired - Lifetime JPH0762841B2 (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP61151300A JPH0762841B2 (en) 1986-06-27 1986-06-27 Document fair copy device
EP87109225A EP0251245B1 (en) 1986-06-27 1987-06-26 Text formatting apparatus
DE87109225T DE3785492T2 (en) 1986-06-27 1987-06-26 Device for designing texts.
KR1019870006529A KR950007742B1 (en) 1986-06-27 1987-06-26 Fext formating device
US07/067,565 US4860378A (en) 1986-06-27 1987-06-26 Text formatting apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61151300A JPH0762841B2 (en) 1986-06-27 1986-06-27 Document fair copy device

Publications (2)

Publication Number Publication Date
JPS638820A JPS638820A (en) 1988-01-14
JPH0762841B2 true JPH0762841B2 (en) 1995-07-05

Family

ID=15515666

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61151300A Expired - Lifetime JPH0762841B2 (en) 1986-06-27 1986-06-27 Document fair copy device

Country Status (5)

Country Link
US (1) US4860378A (en)
EP (1) EP0251245B1 (en)
JP (1) JPH0762841B2 (en)
KR (1) KR950007742B1 (en)
DE (1) DE3785492T2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5294982A (en) * 1991-12-24 1994-03-15 National Captioning Institute, Inc. Method and apparatus for providing dual language captioning of a television program
JP3098966B2 (en) 1995-12-12 2000-10-16 日本ペイント株式会社 Phosphate conversion treatment method for metal moldings
US6874122B1 (en) * 1998-01-15 2005-03-29 International Business Machines Corporation Computer system, program product and method of adjusting the display positions of hypertext links to modify the relative alignment thereof
GB201216640D0 (en) 2012-09-18 2012-10-31 Touchtype Ltd Formatting module, system and method for formatting an electronic character sequence

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4181972A (en) * 1976-05-03 1980-01-01 Burroughs Corporation Means and methods for automatic hyphenating words
US4176974A (en) * 1978-03-13 1979-12-04 Middle East Software Corporation Interactive video display and editing of text in the Arabic script
US4345245A (en) * 1979-11-26 1982-08-17 Eltra Corporation Method and apparatus for arranging segmented character groups in a digital typesetter
JPS62257568A (en) * 1986-04-30 1987-11-10 Sharp Corp Line boundary character selecting system for text processor

Also Published As

Publication number Publication date
KR880000238A (en) 1988-03-24
DE3785492D1 (en) 1993-05-27
US4860378A (en) 1989-08-22
KR950007742B1 (en) 1995-07-14
EP0251245A2 (en) 1988-01-07
JPS638820A (en) 1988-01-14
EP0251245B1 (en) 1993-04-21
EP0251245A3 (en) 1989-09-27
DE3785492T2 (en) 1993-12-09

Similar Documents

Publication Publication Date Title
KR100421129B1 (en) Character information processing device for performing printing
EP0075732A2 (en) Method and apparatus for merge processing in a text processing system
JPH0762841B2 (en) Document fair copy device
JPH0785027A (en) Document editing device
JPS6162165A (en) Character form changing system
JPH10123924A (en) Memorization learning support device and medium storing memorization learning support device control program
JP3042284B2 (en) Japanese input device
JP2786260B2 (en) Kana-Kanji conversion device
JPH0572270B2 (en)
JPS60176137A (en) Sentence generating device
JPS605318A (en) Input device of sentence composed of kana and kanji
JP2723908B2 (en) Document creation device
JPS62143178A (en) Natural language translation system
JP2864691B2 (en) Learning support device
JPH0537315Y2 (en)
JP2979201B2 (en) How to display a character string after rephrasing
JPH06149790A (en) Document processor
JPH02116963A (en) Document data processing device
JPH0664571B2 (en) Character processing method
JPH04111116A (en) character processing device
JPH0584934B2 (en)
JPH03129563A (en) Document processor
JPS63289671A (en) Character processor
JPS62270364A (en) Document processing apparatus
JPH027167A (en) Mechanical translation device

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term