JP2004192236A - Method and device for processing layout correction and storage medium for storing method and device thereof - Google Patents

Method and device for processing layout correction and storage medium for storing method and device thereof Download PDF

Info

Publication number
JP2004192236A
JP2004192236A JP2002358160A JP2002358160A JP2004192236A JP 2004192236 A JP2004192236 A JP 2004192236A JP 2002358160 A JP2002358160 A JP 2002358160A JP 2002358160 A JP2002358160 A JP 2002358160A JP 2004192236 A JP2004192236 A JP 2004192236A
Authority
JP
Japan
Prior art keywords
lines
layout
space
line
size
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.)
Withdrawn
Application number
JP2002358160A
Other languages
Japanese (ja)
Inventor
Morikazu Ito
盛一 伊藤
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 JP2002358160A priority Critical patent/JP2004192236A/en
Publication of JP2004192236A publication Critical patent/JP2004192236A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Document Processing Apparatus (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To display documents with good appearance even in the environment of absence of specified fonts, where an electronic document has layout information by the pitch of the specified font, by automatically adjusting a space between letter columns and the size. <P>SOLUTION: This layout correction processing method has a step for setting information required for layout, a step for calculating total pitch width by a replaced font, a step for calculating the space and the font size such that letters do not stick out in any line, and a step for re-layouting with the calculated size. <P>COPYRIGHT: (C)2004,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は、情報処理装置及び管理装置及びそれらの制御方法ならびにそれらを記憶する記憶媒体に関する。
【0002】
【従来の技術】
従来はドキュメントの作成場所と表示場所や印刷場所が同じ場合が多かったが、インターネットの普及に伴い、ドキュメントの作成場所と表示場所や印刷場所が異なるということが増えてきた。PDFなどのように、ドキュメントに指定されたフォントのピッチによりレイアウト情報が指定してある場合、ドキュメントに指定されたフォントが閲覧状況下や印刷状況下において存在しなかった場合、置換フォントが用いられることになる。しかし、このドキュメントに指定されたフォントと置換フォントのピッチの違いによりドキュメントに指定されたレイアウトが崩れてしまうという問題が発生する。
【0003】
(発明の目的)
本発明は、このような問題点を解決するために、ドキュメントに指定されたレイアウトの初めの位置と終わりの位置のみを保持し、置換されたフォントのピッチを用い、文字間のスペースの調整や、文字サイズの変更など、新たにレイアウトをし直すことにより、文字により不自然にスペースが空いたり、文字が重なってしまうということをなくし、きれいなレイアウトで表示するを目的とする。
【0004】
【発明の実施の形態】
(実施形態1)
次に実施形態1について説明する。
【0005】
図1は、本実施形態にかかわる基本的な構成を示すブロック図である。
【0006】
図1において1はCPU、即ち中央演算処理装置であり、本装置全体の制御及び演算処理を行う。2はRAM、即ちランダムアクセスメモリであり、処理毎にそれぞれのプログラム及びデータがロードされ、実施される領域である。3はROM、即ち読み出し専用メモリであり、システム制御プログラムや、フォントデータなどの記憶領域である。4はKBC、即ちキーボード制御部であり、キーボード5(KB)からのキー入力によりデータを受け取りCPU1へ伝達する。6はPRTC、即ちプリンタ制御部であり、プリンタ装置7(PRT)を制御するためのものである。プリンタ装置7は、レーザービームプリンタ、インクジェットプリンタなどである。8はCRTC、即ちディスプレイ制御部であり、ディスプレイ装置9(CRT)への表示制御を行う。10はDKC、即ちディスク制御部であり、データ伝送などの制御を行うものである。11はFD(フロッピー(R)ディスク装置)あるいはHD(ハードディスク装置)あるいはCD(CD−ROM)などの外部記憶装置であり、プログラム及びデータを記憶させておき、実行時必要に応じて参照またはRAM2へロードする。12はシステムバスであり、上述の構成要素間におけるデータ転送の通路となるべき物である。
【0007】
本装置は、基本I/O(入出力)プログラム、OS(オペレーティングシステム)、及び以下に説明する和文フォントマッチングプログラムをCPU1が実行することにより動作する。
【0008】
基本I/OプログラムはROM3に記憶されており、OSはHD11に書き込まれている。そして本装置の電源がONにされた時、基本I/Oプログラム中のIPL(イニシャルプログラムローディング)機能によりHD11からOSがRAM2に読み込まれ、OSの動作が開始される。
【0009】
本実施形態では、レイアウト補正処理プログラム及び関連データは図2のようにFD11、またはCD−ROM11中に記録されており、このFD11またはCD−ROM11をFDドライブまたはCD−ROMドライブに記録された和文フォントマッチングプログラム及び関連データは図3に示すように、FDドライブまたはCD−ROMドライブを通じて、本装置のHD11にインストールする事が出来る。この場合FD11またはCD−ROM11をFDドライブまたはCD−ROMドライブにセットすると、OS及び基本I/Oプログラムの制御のもとに和文フォントマッチングプログラム及び関連データがFD11またはCD−ROM11から読み出され、HD11にインストールされて動作可能となる。
【0010】
図4は和文フォントマッチングプログラムがHD11にインストールされ実行可能になった状態のメモリマップを示す。
【0011】
図5は本実施形態におけるレイアウト補正処理における処理の流れを示すフローチャートである。
【0012】
まず、ステップ1では入力ドキュメントがレイアウト情報を持ち、かつ、フォントの置換が行われたかどうか判定する。条件に当てはまらない場合は処理を終了し、当てはまる場合は以下の処理を行う。ステップ2において、レイアウト補正処理を行う上で必要な情報(指定されたフォント、フォントサイズ、行ごとの文字列、レイアウト位置)が入力され、ステップ3で値をセットする。
【0013】
ステップ4において、全ての行において、置換されたフォントのピッチ(サイズは指定されたフォントのサイズ)で文字列を並べる。ステップ5はループ端で全ての行を見るまでループが回る。ステップ6において、各行ごとの使用文字列を確認し、その行は欧文文字列のみかを判定し、そうであったらステップ8で単語間のスペースの数▲1▼とスペースを含めた文字列の総ピッチ▲2▼を計算する。和欧混在あるいは和文のみも文字列の場合、和文の文字列の数をカウント▲3▼、また▲2▼と同様に文字列の総ピッチ▲4▼を計算する。ステップ9で次の行に移り、ステップ10のループ端からステップ5に戻る。これにより各行の置換されたフォントによる総文字幅が計算された。
【0014】
ステップ11はループ端で全ての行を見るまでループが回る。ステップ12のループ端は各行における文字配置のループで、ドキュメントが持っているレイアウトと▲2▼や▲4▼を比べ▲2▼や▲4▼が大きい間はループする。ステップ13において、欧文文章の場合単語間のスペース、和欧混在文章または和文文章の場合和文の文字間のスペースをそれぞれまだ小さく出来るか判定する。出来る場合は、ステップ15において、スペースの大きさを1割引く(最大5割まで引ける)。不可能な場合はフォント1ポイント小さくし、スペースを元のサイズに戻す。ステップ16でその行がはみ出さなくなるまでスペースやフォントサイズの調整を行う。ステップ17において次の行に移り、ステップ18のループ端からステップ11のループ端に飛び全ての行においてレイアウトからはみ出さない最大のフォントサイズが得られる。
【0015】
ここからレイアウトの再配置を行う。ステップ19はループ端で全ての行を見るまでループが回る。ステップ20において、全ての行において文字が重ならないよフォントサイズ(各行共通)、スペース(行ごとに異なる)を保持する。ステップ21でその行に含まれる文字列が欧文のみかを判定し、そうであったらその行のレイアウト幅(後ろのレイアウトポイントー前のレイアウトポイント)から▲2▼を引き▲1▼で割り、一つのスペース辺りのサイズを計算する。ステップ21において、和文のみの文章、あるいは、和欧混在文章と判別された場合は、ステップ23において、レイアウトから▲4▼を引き▲3▼で割り、和文における一文字ごとのスペースを計算する。この場合、欧文のスペースの変更は行わない。そして、ステップ24において、計算されたフォントサイズ、スペースを用い文字列の配置を行う。ステップ25で次の行に移り、ステップ26のループ端でステップ19のループ端に飛ぶ。全ての行の再配置が終われば終了する。
【0016】
【発明の効果】
以上説明したように本発明によれば、レイアウト情報を持ったドキュメントが指定されたフォントがない場合、置換されて、元のフォントピッチと置換されたフォントピッチの違いからレイアウトが崩れてしまう可能性がある場合でも、自動的にフォントサイズとスペースを計算し、最適な配置が行われることにより、見栄えのいい表示や印刷を行うことが可能となる。
【図面の簡単な説明】
【図1】実施形態1の情報処理装置の構成図である。
【図2】FDまたはCD−ROMの記録内容を示す図である。
【図3】FDまたはCD−ROMと情報処理装置の関係図である。
【図4】情報処理装置のハードディスクにFAXドライバがインストールされた際の情報処理装置のメモリマップを示す図である。
【図5】実施形態1のレイアウト補正処理を示すフローチャートである。
【図6】実施形態1のレイアウト補正処理の結果を表す一例。
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an information processing device, a management device, a control method thereof, and a storage medium for storing them.
[0002]
[Prior art]
Conventionally, the place where a document is created is often the same as the place where it is displayed and the place where it is printed. However, with the spread of the Internet, the place where the document is created and the place where it is displayed and where it is printed are increasing. When the layout information is specified by the font pitch specified in the document, such as PDF, or when the font specified in the document does not exist under the browsing state or the printing state, the replacement font is used. Will be. However, there is a problem that the layout specified in the document is destroyed due to the difference in pitch between the font specified in the document and the replacement font.
[0003]
(Object of the invention)
In order to solve such a problem, the present invention retains only the start position and the end position of the layout specified in the document, uses the pitch of the replaced font, adjusts the space between characters, It is another object of the present invention to display a beautiful layout by eliminating a case where a character is unnaturally occupied by spaces or overlapping characters by performing a new layout such as changing a character size.
[0004]
BEST MODE FOR CARRYING OUT THE INVENTION
(Embodiment 1)
Next, a first embodiment will be described.
[0005]
FIG. 1 is a block diagram illustrating a basic configuration according to the present embodiment.
[0006]
In FIG. 1, reference numeral 1 denotes a CPU, that is, a central processing unit, which performs control and arithmetic processing of the entire apparatus. Reference numeral 2 denotes a RAM, that is, a random access memory, which is an area where each program and data are loaded and executed for each process. Reference numeral 3 denotes a ROM, that is, a read-only memory, which is a storage area for a system control program, font data, and the like. Reference numeral 4 denotes a KBC, that is, a keyboard control unit, which receives data by key input from a keyboard 5 (KB) and transmits the data to the CPU 1. Reference numeral 6 denotes a PRTC, that is, a printer control unit, which controls the printer device 7 (PRT). The printer device 7 is a laser beam printer, an inkjet printer, or the like. Reference numeral 8 denotes a CRTC, that is, a display control unit, which controls display on a display device 9 (CRT). Reference numeral 10 denotes a DKC, that is, a disk control unit, which controls data transmission and the like. Reference numeral 11 denotes an external storage device such as an FD (floppy (R) disk device), an HD (hard disk device), or a CD (CD-ROM). To load. Reference numeral 12 denotes a system bus, which should serve as a path for data transfer between the above-described components.
[0007]
This apparatus operates by the CPU 1 executing a basic I / O (input / output) program, an OS (operating system), and a Japanese font matching program described below.
[0008]
The basic I / O program is stored in the ROM 3, and the OS is written in the HD 11. When the power of the apparatus is turned on, the OS is read from the HD 11 into the RAM 2 by the IPL (initial program loading) function in the basic I / O program, and the operation of the OS is started.
[0009]
In the present embodiment, the layout correction processing program and the related data are recorded in the FD 11 or the CD-ROM 11 as shown in FIG. 2, and the FD 11 or the CD-ROM 11 is stored in the FD drive or the CD-ROM drive. As shown in FIG. 3, the font matching program and the related data can be installed in the HD 11 of the apparatus through an FD drive or a CD-ROM drive. In this case, when the FD 11 or the CD-ROM 11 is set in the FD drive or the CD-ROM drive, a Japanese font matching program and related data are read out from the FD 11 or the CD-ROM 11 under the control of the OS and the basic I / O program. It is installed in the HD 11 and becomes operable.
[0010]
FIG. 4 shows a memory map in a state where the Japanese font matching program is installed in the HD 11 and becomes executable.
[0011]
FIG. 5 is a flowchart showing the flow of the layout correction process in this embodiment.
[0012]
First, in step 1, it is determined whether or not the input document has layout information and font replacement has been performed. If the condition is not met, the process ends. If the condition is met, the following process is performed. In step 2, information (designated font, font size, character string for each line, layout position) necessary for performing the layout correction processing is input, and in step 3, values are set.
[0013]
In step 4, character strings are arranged at the pitch of the replaced font (the size is the designated font size) in all rows. Step 5 loops until all lines are seen at the end of the loop. In step 6, the character string used for each line is checked, and it is determined whether the line is only a Roman character string. If so, in step 8, the number of spaces between words (1) and the character string including spaces Calculate the total pitch (2). In the case where the character string is a mixture of Japanese and European characters or only a Japanese sentence, the number of character strings in the Japanese sentence is counted (3), and the total pitch (4) of the character strings is calculated in the same manner as in (2). In step 9, the processing moves to the next line, and the processing returns to step 5 from the loop end of step 10. This calculated the total character width of each line with the replaced font.
[0014]
Step 11 loops until all rows are seen at the end of the loop. The loop end of step 12 is a loop of the character arrangement in each line, comparing the layout of the document with (2) and (4) and looping while (2) and (4) are large. In step 13, it is determined whether the space between words in the case of a European sentence and the space between the characters of a Japanese sentence in the case of a Japanese / Europe mixed sentence or a Japanese sentence can still be reduced. If possible, in step 15, the size of the space is discounted by one (up to 50% can be reduced). If it is not possible, reduce the font by one point and return the space to its original size. At step 16, the space and font size are adjusted until the line does not protrude. In step 17, the process moves to the next line, and jumps from the loop end of step 18 to the loop end of step 11 to obtain the maximum font size that does not exceed the layout in all lines.
[0015]
The layout is rearranged from here. Step 19 loops until all lines are seen at the end of the loop. In step 20, a font size (common to each line) and a space (different for each line) are maintained so that characters do not overlap in all lines. At step 21, it is determined whether or not the character string included in the line is only European characters. If so, subtract (2) from the layout width of the line (the layout point at the back-the layout point at the front) and divide by (1). Calculate the size of one space. If it is determined in step 21 that the sentence is only a Japanese sentence or a mixed Japanese-Europe sentence, in step 23, (4) is subtracted from the layout and divided by (3) to calculate a space for each character in the Japanese sentence. In this case, the space in the European language is not changed. Then, in step 24, the character string is arranged using the calculated font size and space. In step 25, the processing moves to the next line. When the rearrangement of all the rows is completed, the process ends.
[0016]
【The invention's effect】
As described above, according to the present invention, if a document having layout information does not have a specified font, the document may be replaced and the layout may be broken due to a difference between the original font pitch and the replaced font pitch. Even if there is, the font size and the space are automatically calculated, and the optimal arrangement is performed, so that the display and the printing with a good appearance can be performed.
[Brief description of the drawings]
FIG. 1 is a configuration diagram of an information processing apparatus according to a first embodiment.
FIG. 2 is a diagram showing recorded contents of an FD or a CD-ROM.
FIG. 3 is a diagram illustrating a relationship between an FD or a CD-ROM and an information processing apparatus.
FIG. 4 is a diagram illustrating a memory map of the information processing apparatus when a FAX driver is installed on a hard disk of the information processing apparatus.
FIG. 5 is a flowchart illustrating a layout correction process according to the first embodiment.
FIG. 6 is an example illustrating a result of a layout correction process according to the first embodiment.

Claims (12)

レイアウト情報を持つドキュメントにおいて、文字の置換が行われた場合、レイアウト情報をセットするステップと、全ての行において置換したフォントで文字列を並べるステップと、全ての行で文字列の総ピッチ幅とその行が和文or和欧混在の場合は文字数を数えるステップと、全ての行において、レイアウトからはみ出さないように、スペースを調整するステップと、全ての行において、その行の文字が重ならないように共通のフォントサイズと各行ごとのスペースサイズを保持するステップと、和文or和欧混在の場合は文字と文字の間のスペースサイズを計算するステップと、計算したスペースとフォントサイズを用いて再レイアウトを行うステップを有することを特徴としたレイアウト補正処理方法。In a document having layout information, when character replacement is performed, a step of setting layout information, a step of arranging a character string with a replaced font in all lines, and a step of setting a total pitch width of the character string in all lines. If the line is Japanese or Japanese / Western mixed, the step of counting the number of characters, the step of adjusting the space so that all lines do not protrude from the layout, and the step of counting the number of characters so that the characters of the line do not overlap in all lines A common font size and a space size for each line, a step of calculating the space size between characters in the case of Japanese or Japanese and European languages, and a relayout using the calculated space and font size. A layout correction processing method comprising the step of: レイアウト情報を持つドキュメントにおいて、文字の置換が行われた場合、レイアウト情報をセットするステップと、全ての行において置換したフォントで文字列を並べるステップと、全ての行で文字列の総ピッチ幅とその行が欧文の場合は単語と単語の間のスペース数を数えるステップと、全ての行において、レイアウトからはみ出さないように、スペースを調整するステップと、全ての行において、その行の文字が重ならないように共通のフォントサイズと各行ごとのスペースサイズを保持するステップと、欧文の場合は単語と単語の間のスペースサイズを計算するステップと、計算したスペースとフォントサイズを用いて再レイアウトを行うステップを有することを特徴としたレイアウト補正処理方法。In a document having layout information, when character replacement is performed, a step of setting layout information, a step of arranging a character string with a replaced font in all lines, and a step of setting a total pitch width of the character string in all lines. If the line is a Western language, count the number of spaces between words, adjust the space so that it does not protrude from the layout in all lines, and change the characters in that line Maintaining a common font size and space size for each line so that they do not overlap, calculating the space size between words in the case of European languages, and performing a relayout using the calculated space and font size A layout correction processing method, comprising the step of: レイアウト情報を持つドキュメントにおいて、文字の置換が行われた場合、レイアウト情報をセットするステップと、全ての行において置換したフォントで文字列を並べるステップと、全ての行で文字列の総ピッチ幅とその行が和文or和欧混在の場合は文字数を数えるステップと、全ての行において、レイアウトからはみ出さないように、フォントサイズを小さくするステップと、全ての行において、その行の文字が重ならないように共通のフォントサイズと各行ごとのスペースサイズを保持するステップと、和文or和欧混在の場合は文字と文字の間のスペースサイズを計算するステップと、計算したスペースとフォントサイズを用いて再レイアウトを行うステップを有することを特徴としたレイアウト補正処理方法。In a document having layout information, when character replacement is performed, a step of setting layout information, a step of arranging a character string with a replaced font in all lines, and a step of setting a total pitch width of the character string in all lines. If the line is a mixture of Japanese or Japanese and Western, the steps of counting the number of characters, the step of reducing the font size so that all lines do not protrude from the layout, and the characters of the line do not overlap in all lines A common font size and a space size for each line, a step of calculating the space size between characters in the case of Japanese text or a mixture of Japanese and European languages, and a step of using the calculated space and font size. A layout correction processing method comprising a step of performing a layout. レイアウト情報を持つドキュメントにおいて、文字の置換が行われた場合、レイアウト情報をセットするステップと、全ての行において置換したフォントで文字列を並べるステップと、全ての行で文字列の総ピッチ幅とその行が欧文の場合は単語と単語の間のスペース数を数えるステップと、全ての行において、レイアウトからはみ出さないように、フォントサイズを小さくするステップと、全ての行において、その行の文字が重ならないように共通のフォントサイズと各行ごとのスペースサイズを保持するステップと、欧文の場合は単語と単語の間のスペースサイズを計算するステップと、計算したスペースとフォントサイズを用いて再レイアウトを行うステップを有することを特徴としたレイアウト補正処理方法。In a document having layout information, when character replacement is performed, a step of setting layout information, a step of arranging a character string with a replaced font in all lines, and a step of setting a total pitch width of the character string in all lines. If the line is a Western language, count the number of spaces between words, reduce the font size so that it does not protrude from the layout in all lines, and change the characters in the line in all lines Maintaining a common font size and space size for each line so that they do not overlap, calculating the space size between words for Western languages, and relaying out using the calculated space and font size A layout correction processing method comprising the step of: レイアウト情報を持つドキュメントにおいて、文字の置換が行われた場合、レイアウト情報をセットする手段と、全ての行において置換したフォントで文字列を並べる手段と、全ての行で文字列の総ピッチ幅とその行が和文or和欧混在の場合は文字数を数える手段と、全ての行において、レイアウトからはみ出さないように、スペースを調整する手段と、全ての行において、その行の文字が重ならないように共通のフォントサイズと各行ごとのスペースサイズを保持する手段と、和文or和欧混在の場合は文字と文字の間のスペースサイズを計算する手段と、計算したスペースとフォントサイズを用いて再レイアウトを行う手段を有することを特徴としたレイアウト補正処理装置。In a document having layout information, when character replacement is performed, means for setting layout information, means for arranging character strings in the replaced font in all lines, total pitch width of character strings in all lines, If the line is a mixture of Japanese or Japanese and Western, means to count the number of characters, means to adjust the space so that it does not protrude from the layout in all lines, and means to not overlap characters in the line in all lines Means to maintain a common font size and space size for each line, means to calculate the space size between characters in the case of Japanese or Japanese and European languages, and re-layout using the calculated space and font size A layout correction processing device having means for performing the following. レイアウト情報を持つドキュメントにおいて、文字の置換が行われた場合、レイアウト情報をセットする手段と、全ての行において置換したフォントで文字列を並べる手段と、全ての行で文字列の総ピッチ幅とその行が欧文の場合は単語と単語の間のスペース数を数える手段と、全ての行において、レイアウトからはみ出さないように、スペースを調整する手段と、全ての行において、その行の文字が重ならないように共通のフォントサイズと各行ごとのスペースサイズを保持する手段と、欧文の場合は単語と単語の間のスペースサイズを計算する手段と、計算したスペースとフォントサイズを用いて再レイアウトを行う手段を有することを特徴としたレイアウト補正処理装置。In a document having layout information, when character replacement is performed, means for setting layout information, means for arranging character strings in the replaced font in all lines, total pitch width of character strings in all lines, If the line is a Western language, a means to count the number of spaces between words, a means to adjust the space so that it does not protrude from the layout in all lines, and a method to make the characters in the line A means to maintain a common font size and space size for each line so that they do not overlap, a means to calculate the space size between words in the case of Western languages, and a relayout using the calculated space and font size A layout correction processing device having means for performing the correction. レイアウト情報を持つドキュメントにおいて、文字の置換が行われた場合、レイアウト情報をセットする手段と、全ての行において置換したフォントで文字列を並べる手段と、全ての行で文字列の総ピッチ幅とその行が和文or和欧混在の場合は文字数を数える手段と、全ての行において、レイアウトからはみ出さないように、フォントサイズを小さくする手段と、全ての行において、その行の文字が重ならないように共通のフォントサイズと各行ごとのスペースサイズを保持する手段と、和文or和欧混在の場合は文字と文字の間のスペースサイズを計算する手段と、計算したスペースとフォントサイズを用いて再レイアウトを行う手段を有することを特徴としたレイアウト補正処理装置。In a document having layout information, when character replacement is performed, means for setting layout information, means for arranging character strings in the replaced font in all lines, total pitch width of character strings in all lines, If the line is Japanese or Japanese / Western mixed, means to count the number of characters, means to reduce the font size so that it does not protrude from the layout in all lines, and means that characters in the line do not overlap in all lines Means for maintaining a common font size and space size for each line, means for calculating the space size between characters in the case of Japanese or Japanese and European languages, and re-use using the calculated space and font size. A layout correction processing device comprising means for performing a layout. レイアウト情報を持つドキュメントにおいて、文字の置換が行われた場合、レイアウト情報をセットする手段と、全ての行において置換したフォントで文字列を並べる手段と、全ての行で文字列の総ピッチ幅とその行が欧文の場合は単語と単語の間のスペース数を数える手段と、全ての行において、レイアウトからはみ出さないように、フォントサイズを小さくする手段と、全ての行において、その行の文字が重ならないように共通のフォントサイズと各行ごとのスペースサイズを保持する手段と、欧文の場合は単語と単語の間のスペースサイズを計算する手段と、計算したスペースとフォントサイズを用いて再レイアウトを行う手段を有することを特徴としたレイアウト補正処理装置。In a document having layout information, when character replacement is performed, means for setting layout information, means for arranging character strings in the replaced font in all lines, total pitch width of character strings in all lines, If the line is a Western language, means to count the number of spaces between words, means to reduce the font size so that it does not protrude from the layout in all lines, and Means to keep a common font size and space size for each line so that they do not overlap, means to calculate the space size between words for European languages, and relayout using the calculated space and font size A layout correction processing device having means for performing the following. レイアウト情報を持つドキュメントにおいて、文字の置換が行われた場合、レイアウト情報をセットする工程と、全ての行において置換したフォントで文字列を並べる工程と、全ての行で文字列の総ピッチ幅とその行が和文or和欧混在の場合は文字数を数える工程と、全ての行において、レイアウトからはみ出さないように、スペースを調整する工程と、全ての行において、その行の文字が重ならないように共通のフォントサイズと各行ごとのスペースサイズを保持する工程と、和文or和欧混在の場合は文字と文字の間のスペースサイズを計算する工程と、計算したスペースとフォントサイズを用いて再レイアウトを行う工程を有することを特徴としたレイアウト補正処理制御プログラムを記憶した媒体。In a document having layout information, when character replacement is performed, a step of setting layout information, a step of arranging a character string with a replaced font in all lines, and a step of setting a total pitch width of the character string in all lines. If the line is Japanese or Japanese and Western mixed, the process of counting the number of characters, the process of adjusting the space so that it does not protrude from the layout in all lines, and the process of adjusting the space in all lines so that the characters in that line do not overlap To maintain the common font size and space size for each line, to calculate the space size between characters in the case of Japanese or Japanese and European languages, and to re-layout using the calculated space and font size A medium storing a layout correction processing control program, characterized by comprising a step of performing the following. レイアウト情報を持つドキュメントにおいて、文字の置換が行われた場合、レイアウト情報をセットする工程と、全ての行において置換したフォントで文字列を並べる工程と、全ての行で文字列の総ピッチ幅とその行が欧文の場合は単語と単語の間のスペース数を数える工程と、全ての行において、レイアウトからはみ出さないように、スペースを調整する工程と、全ての行において、その行の文字が重ならないように共通のフォントサイズと各行ごとのスペースサイズを保持する工程と、欧文の場合は単語と単語の間のスペースサイズを計算する工程と、計算したスペースとフォントサイズを用いて再レイアウトを行う工程を有することを特徴としたレイアウト補正処理制御プログラムを記憶した媒体。In a document having layout information, when character replacement is performed, a step of setting layout information, a step of arranging a character string with a replaced font in all lines, and a step of setting a total pitch width of the character string in all lines. If the line is a Western language, the process of counting the number of spaces between words, the process of adjusting the space so that it does not protrude from the layout in all lines, and the process of Maintain a common font size and space size for each line so that they do not overlap, calculate the space size between words for European languages, and re-layout using the calculated space and font size. A medium storing a layout correction processing control program, characterized by having a step of performing. レイアウト情報を持つドキュメントにおいて、文字の置換が行われた場合、レイアウト情報をセットする工程と、全ての行において置換したフォントで文字列を並べる工程と、全ての行で文字列の総ピッチ幅とその行が和文or和欧混在の場合は文字数を数える工程と、全ての行において、レイアウトからはみ出さないように、フォントサイズを小さくする工程と、全ての行において、その行の文字が重ならないように共通のフォントサイズと各行ごとのスペースサイズを保持する工程と、和文or和欧混在の場合は文字と文字の間のスペースサイズを計算する工程と、計算したスペースとフォントサイズを用いて再レイアウトを行う工程を有することを特徴としたレイアウト補正処理制御プログラムを記憶した媒体。In a document having layout information, when character replacement is performed, a step of setting layout information, a step of arranging a character string with a replaced font in all lines, and a step of setting a total pitch width of the character string in all lines. If the line is a mixture of Japanese or Japanese and Western, the process of counting the number of characters, the process of reducing the font size so that all lines do not protrude from the layout, and the characters of the line do not overlap in all lines A common font size and a space size for each line, a process of calculating the space size between characters in the case of Japanese or Japanese and European languages, and a process of using the calculated space and font size. A medium storing a layout correction processing control program, comprising a step of performing a layout. レイアウト情報を持つドキュメントにおいて、文字の置換が行われた場合、レイアウト情報をセットする工程と、全ての行において置換したフォントで文字列を並べる工程と、全ての行で文字列の総ピッチ幅とその行が欧文の場合は単語と単語の間のスペース数を数える工程と、全ての行において、レイアウトからはみ出さないように、フォントサイズを小さくする工程と、全ての行において、その行の文字が重ならないように共通のフォントサイズと各行ごとのスペースサイズを保持する工程と、欧文の場合は単語と単語の間のスペースサイズを計算する工程と、計算したスペースとフォントサイズを用いて再レイアウトを行う工程を有することを特徴としたレイアウト補正処理制御プログラムを記憶した媒体。In a document having layout information, when character replacement is performed, a step of setting layout information, a step of arranging a character string with a replaced font in all lines, and a step of setting a total pitch width of the character string in all lines. If the line is a Western language, the process of counting the number of spaces between words, the process of reducing the font size so that all lines do not protrude from the layout, and the process of Maintaining a common font size and space size for each line so that they do not overlap, calculating the space size between words for European languages, and re-layout using the calculated space and font size A medium storing a layout correction processing control program, characterized by comprising a step of performing the following.
JP2002358160A 2002-12-10 2002-12-10 Method and device for processing layout correction and storage medium for storing method and device thereof Withdrawn JP2004192236A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002358160A JP2004192236A (en) 2002-12-10 2002-12-10 Method and device for processing layout correction and storage medium for storing method and device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002358160A JP2004192236A (en) 2002-12-10 2002-12-10 Method and device for processing layout correction and storage medium for storing method and device thereof

Publications (1)

Publication Number Publication Date
JP2004192236A true JP2004192236A (en) 2004-07-08

Family

ID=32757961

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002358160A Withdrawn JP2004192236A (en) 2002-12-10 2002-12-10 Method and device for processing layout correction and storage medium for storing method and device thereof

Country Status (1)

Country Link
JP (1) JP2004192236A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006172259A (en) * 2004-12-17 2006-06-29 Ricoh Co Ltd Information masking device
US11386309B2 (en) 2020-03-31 2022-07-12 Brother Kogyo Kabushiki Kaisha Printing apparatus, printing method, and non-transitory computer-readable recording medium therefor
KR20220127486A (en) * 2021-03-11 2022-09-20 주식회사 한글과컴퓨터 Electronic terminal apparatus that supports application of natural substitute fonts when loading electronic documents with unsupported fonts applied and operating method thereof

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006172259A (en) * 2004-12-17 2006-06-29 Ricoh Co Ltd Information masking device
JP4663308B2 (en) * 2004-12-17 2011-04-06 株式会社リコー Information masking device
US11386309B2 (en) 2020-03-31 2022-07-12 Brother Kogyo Kabushiki Kaisha Printing apparatus, printing method, and non-transitory computer-readable recording medium therefor
KR20220127486A (en) * 2021-03-11 2022-09-20 주식회사 한글과컴퓨터 Electronic terminal apparatus that supports application of natural substitute fonts when loading electronic documents with unsupported fonts applied and operating method thereof
KR102545260B1 (en) * 2021-03-11 2023-06-20 주식회사 한글과컴퓨터 Electronic terminal apparatus that supports application of natural substitute fonts when loading electronic documents with unsupported fonts applied and operating method thereof

Similar Documents

Publication Publication Date Title
US7944581B2 (en) Imposition systems, methods and drivers for printer products
US7783969B1 (en) Rule-based text layout
US6223191B1 (en) Method and apparatus for automatically formatting multiple lines of text in a word processor
JP2004157502A (en) Method for selecting font
JP2004102712A (en) Printing device, printing instruction device, image forming device, printing method and program
US20040017577A1 (en) Printing system with reduced printer usage
KR100585312B1 (en) Method for printing web page
US8467082B1 (en) Print compound conserving font production method
JP2004192236A (en) Method and device for processing layout correction and storage medium for storing method and device thereof
JP2008134859A (en) Output document preparation device, output document preparation program, output document preparation server, and output document preparation method
JP2020024516A (en) Information processing apparatus and information processing program
JPH01229673A (en) English and european writing printing control system
JP2004118465A (en) Document printing system and method
KR100530227B1 (en) Printing Method for saving paper
JP6729234B2 (en) Image processing apparatus, printing system, and image processing method
JPH09166974A (en) Document processing device and cache functioning method
JP2576856B2 (en) Writing device
JPH11219358A (en) Document data output device and its program recording medium
JP2003006183A (en) Information processor, information processing method, program and computer-readable medium storing the program
JP2011123848A (en) Printing system
JP2003223311A (en) Color picture processing method and device, storage medium and its program
JPH04353478A (en) Reduction print controller
JP2020175593A (en) Image processing device, image processing method, and program
JP2005063052A (en) Method and device for creating document
JP4844364B2 (en) Image processing apparatus and program

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20060307