JP2018007184A - Information processing device and program - Google Patents

Information processing device and program Download PDF

Info

Publication number
JP2018007184A
JP2018007184A JP2016135364A JP2016135364A JP2018007184A JP 2018007184 A JP2018007184 A JP 2018007184A JP 2016135364 A JP2016135364 A JP 2016135364A JP 2016135364 A JP2016135364 A JP 2016135364A JP 2018007184 A JP2018007184 A JP 2018007184A
Authority
JP
Japan
Prior art keywords
information
sentences
width
recording medium
document
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
JP2016135364A
Other languages
Japanese (ja)
Inventor
攻 五十嵐
Osamu Igarashi
攻 五十嵐
真 鴛海
Makoto Oshiumi
真 鴛海
栗原 孝
Takashi Kurihara
孝 栗原
泉美 中野
Izumi Nakano
泉美 中野
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP2016135364A priority Critical patent/JP2018007184A/en
Publication of JP2018007184A publication Critical patent/JP2018007184A/en
Pending legal-status Critical Current

Links

Landscapes

  • Record Information Processing For Printing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an information processing device and program for generating print information of a layout having a margin part less than in the case of not changing the layout in the case of printing a document mainly composed of short sentences.SOLUTION: The information processing device includes: division means for dividing character information included in document information into each sentence being a series of character stings; measurement means for measuring the number of characters of each of a plurality of sentences divided by the division means; and generation means for dividing the document information into a plurality of blocks, and generating print information with a layout in which at least two or more blocks are printed on one side of one recording medium in the case that a ratio of short sentences in which the number of characters measured by the measurement means is equal to or less than a first threshold to the plurality of sentences is equal to or more than a second threshold.SELECTED DRAWING: Figure 5

Description

本発明は、情報処理装置及びプログラムに関する。   The present invention relates to an information processing apparatus and a program.

携帯端末等の普及により、形状や大きさが異なる様々な表示画面を備えた機器が使用されるようになった。これらの機器からの指示に基づく印刷は、通常、記録媒体のサイズに応じて行われる。印刷時のレイアウトを変更する場合でも、機器の表示画面での表示態様を考慮したものはない。   With the spread of mobile terminals and the like, devices equipped with various display screens with different shapes and sizes have been used. Printing based on instructions from these devices is usually performed according to the size of the recording medium. Even when the layout at the time of printing is changed, there is nothing considering the display mode on the display screen of the device.

例えば、特許文献1には、携帯端末から受信したデータに基づき出力処理を行う出力装置において、前記受信したデータのデータ種に応じたレイアウトを設定する設定手段と、前記データの内容を前記設定されたレイアウトで出力する出力処理を行う出力手段とを備えたことを特徴とする出力装置が開示されている。   For example, in Patent Document 1, in an output device that performs output processing based on data received from a mobile terminal, setting means for setting a layout according to the data type of the received data, and the contents of the data are set as described above. An output device comprising an output means for performing an output process for outputting in a layout is disclosed.

特開2005−050300号公報JP-A-2005-050300

しかしながら、機器の表示画面のサイズに合わせて表示された文書を、記録媒体のサイズに合わせて印刷すると、必ずしも読みやすい印刷結果が得られるとは限らない。例えば、メッセージをやり取りする対話文書等、短文章で構成される文書を記録媒体のサイズに合わせて印刷すると、余白部分の大きな印刷結果となってしまう。   However, if a document displayed in accordance with the size of the display screen of the device is printed in accordance with the size of the recording medium, an easily readable print result is not always obtained. For example, if a document composed of short sentences, such as a dialogue document for exchanging messages, is printed in accordance with the size of the recording medium, a print result with a large margin is generated.

そこで、本発明は、短文章で構成される文書を印刷する場合に、レイアウトを変更しない場合に比べ、余白部分の少ないレイアウトの印刷情報を生成する情報処理装置及びプログラムを提供することを目的とする。   Therefore, an object of the present invention is to provide an information processing apparatus and a program for generating print information of a layout with a small margin part when printing a document composed of short sentences compared to a case where the layout is not changed. To do.

上記目的を達成するために請求項1に記載の発明は、文書情報に含まれる文字情報を一連の文字列である文章毎に区分する区分手段と、前記区分手段で区分された複数の文章の各々の文字数を計測する計測手段と、前記計測手段で計測された文字数が第1閾値以下の短文章の前記複数の文章に対する割合が第2閾値以上の場合に、前記文書情報を複数のブロックに分割し、少なくとも2以上のブロックが1枚の記録媒体の片面に印刷されるレイアウトで印刷情報を生成する生成手段と、を備えた情報処理装置である。   In order to achieve the above object, the invention according to claim 1 is characterized in that the character information included in the document information is classified for each sentence that is a series of character strings, and a plurality of sentences divided by the classification means. Measuring means for measuring the number of each character, and when the ratio of the short sentences whose number of characters measured by the measuring means is equal to or less than a first threshold is greater than or equal to a second threshold, the document information is divided into a plurality of blocks An information processing apparatus comprising: a generation unit that divides and generates print information in a layout in which at least two or more blocks are printed on one side of one recording medium.

請求項2に記載の発明は、前記生成手段は、前記短文章の割合が第2閾値未満の場合に、前記文書情報を複数のブロックに分割せずに印刷情報を生成する、請求項1に記載の情報処理装置である。   According to a second aspect of the present invention, in the first aspect, the generation unit generates the print information without dividing the document information into a plurality of blocks when the ratio of the short sentences is less than a second threshold. The information processing apparatus described.

請求項3に記載の発明は、文書情報を提供する機器の表示画面の大きさを表す表示画面情報を前記文書情報と共に取得した場合に、前記記録媒体の印刷方向の幅と前記表示画面の幅とに基づいて、前記1枚の記録媒体の片面に印刷するブロック数を設定する設定手段を、さらに備えた、請求項1または請求項2に記載の情報処理装置である。   According to a third aspect of the present invention, when display screen information representing the size of a display screen of a device that provides document information is acquired together with the document information, the width in the print direction of the recording medium and the width of the display screen The information processing apparatus according to claim 1, further comprising setting means for setting a number of blocks to be printed on one side of the one recording medium based on the above.

請求項4に記載の発明は、前記設定手段は、前記記録媒体の印刷方向の幅を前記表示画面の幅で除算して得られた商の整数部分の値を、前記1枚の記録媒体の片面に印刷するブロック数とする、請求項3に記載の情報処理装置である。   According to a fourth aspect of the present invention, the setting means uses the value of the integer part of the quotient obtained by dividing the width of the recording medium in the printing direction by the width of the display screen. The information processing apparatus according to claim 3, wherein the number of blocks to be printed on one side is set.

請求項5に記載の発明は、前記設定手段は、前記表示画面情報が取得されない場合に、予め定めたブロック数を前記1枚の記録媒体の片面に印刷するブロック数として設定する、請求項3または請求項4に記載の情報処理装置である。   According to a fifth aspect of the present invention, the setting means sets a predetermined number of blocks as the number of blocks to be printed on one side of the one recording medium when the display screen information is not acquired. Alternatively, the information processing apparatus according to claim 4.

請求項6に記載の発明は、前記区分手段は、連続して改行が行われている箇所で文章を区切る、請求項1から請求項5までの何れか1項に記載の情報処理装置である。   The invention according to claim 6 is the information processing apparatus according to any one of claims 1 to 5, wherein the sorting means divides a sentence at a place where line breaks are continuously made. .

請求項7に記載の発明は、前記区分手段は、前記文字情報が文字位置情報を含む場合は、文字の書き出し位置が文字の書き終わり位置から連続した改行に相当する距離以上離れている箇所で文章を区切る、請求項1から請求項5までの何れか1項に記載の情報処理装置である。   According to a seventh aspect of the present invention, in the case where the character information includes character position information, the sorting unit is configured such that the character writing position is separated from the character writing end position by a distance corresponding to continuous line breaks or more. The information processing apparatus according to any one of claims 1 to 5, wherein a sentence is divided.

請求項8に記載の発明は、コンピュータを、文書情報に含まれる文字情報を一連の文字列である文章毎に区分する区分手段、前記区分手段で区分された複数の文章の各々の文字数を計測する計測手段、前記計測手段で計測された文字数が第1閾値以下の短文章の前記複数の文章に対する割合が第2閾値以上の場合に、前記文書情報を複数のブロックに分割し、少なくとも2以上のブロックが1枚の記録媒体の片面に印刷されるレイアウトで印刷情報を生成する生成手段、として機能させるプログラムである。   According to an eighth aspect of the present invention, the computer measures the number of characters in each of the plurality of sentences divided by the classification means, the classification means for dividing the character information included in the document information into sentences that are a series of character strings. Measuring means that divides the document information into a plurality of blocks when the ratio of the short sentences with the number of characters measured by the measuring means to the plurality of sentences is equal to or greater than a second threshold, and at least two or more Is a program that functions as a generation unit that generates print information with a layout in which the blocks are printed on one side of one recording medium.

請求項1、請求項8に記載の発明によれば、短文章で構成される文書を印刷する場合に、レイアウトを変更しない場合に比べ、余白部分の少ないレイアウトの印刷情報が生成される。   According to the first and eighth aspects of the present invention, when printing a document composed of short sentences, print information having a layout with fewer margins is generated than when the layout is not changed.

請求項2に記載の発明によれば、短文章で構成される文書以外の文書を印刷する場合に、レイアウトを変更しないで済む。   According to the second aspect of the present invention, when a document other than a document composed of short sentences is printed, the layout need not be changed.

請求項3に記載の発明によれば、機器の表示画面が小さい場合でも、レイアウトを変更しない場合に比べ、余白部分の少ないレイアウトの印刷情報が生成される。   According to the third aspect of the present invention, even when the display screen of the device is small, print information having a layout with a small margin is generated as compared with the case where the layout is not changed.

請求項4に記載の発明によれば、機器の表示画面に表示された表示態様で文書が印刷される。   According to the invention described in claim 4, the document is printed in the display mode displayed on the display screen of the device.

請求項5に記載の発明によれば、機器の表示画面の大きさが不明の場合でも、レイアウトを変更しない場合に比べ、余白部分の少ないレイアウトの印刷情報が生成される。   According to the fifth aspect of the present invention, even when the size of the display screen of the device is unknown, print information with a layout with fewer margins is generated as compared with the case where the layout is not changed.

請求項6に記載の発明によれば、連続した改行という指標が無い場合に比べ、文字情報が合理的に複数の文章に区分される。   According to the sixth aspect of the present invention, the character information is rationally divided into a plurality of sentences as compared with the case where there is no continuous line break indicator.

請求項7に記載の発明によれば、文字情報が文字位置情報を含む場合でも、連続した改行という指標が無い場合に比べ、文字情報が合理的に複数の文章に区分される。   According to the seventh aspect of the present invention, even when the character information includes character position information, the character information is rationally divided into a plurality of sentences as compared with a case where there is no continuous line feed index.

本発明の実施の形態に係る情報処理装置の構成の一例を示すブロック図である。It is a block diagram which shows an example of a structure of the information processing apparatus which concerns on embodiment of this invention. 端末装置の構成の一例を示すブロック図である。It is a block diagram which shows an example of a structure of a terminal device. (A)〜(D)は機器の表示画面に表示された文書を印刷した場合の印刷結果の一例を示す模式図である。(A)-(D) are the schematic diagrams which show an example of the printing result at the time of printing the document displayed on the display screen of an apparatus. 本発明の実施の形態に係る情報処理装置の機能構成の一例を示す機能ブロック図である。It is a functional block diagram which shows an example of a function structure of the information processing apparatus which concerns on embodiment of this invention. 「印刷情報生成処理」の手順の一例を示すフローチャートである。10 is a flowchart illustrating an example of a procedure of “print information generation processing”. 「ブロック数/幅決定処理」の手順の一例を示すフローチャートである。12 is a flowchart illustrating an example of a procedure of “number of blocks / width determination process”. 「文書解析処理」の手順の一例を示すフローチャートである。10 is a flowchart illustrating an example of a procedure of “document analysis processing”. 「文書/イメージ配置処理」の手順の一例を示すフローチャートである。10 is a flowchart illustrating an example of a procedure of “document / image arrangement processing”. 機器の表示画面に表示された文書の構成の一例を示す模式図である。It is a schematic diagram which shows an example of a structure of the document displayed on the display screen of an apparatus. レイアウト変更された印刷情報に基づいて記録媒体上に印刷された文書の構成の一例を示す模式図である。FIG. 5 is a schematic diagram illustrating an example of a configuration of a document printed on a recording medium based on print information whose layout has been changed. レイアウト変更された印刷情報に基づいて記録媒体上に印刷された文書の構成の他の一例を示す模式図である。FIG. 10 is a schematic diagram illustrating another example of a configuration of a document printed on a recording medium based on print information whose layout has been changed.

以下、図面を参照して本発明の実施の形態の一例を詳細に説明する。   Hereinafter, an example of an embodiment of the present invention will be described in detail with reference to the drawings.

<情報処理装置の構成>
まず、本発明の実施の形態に係る情報処理装置の全体構成について説明する。
図1は本発明の実施の形態に係る情報処理装置の構成の一例を示すブロック図である。図1に示すように、本実施の形態に係る情報処理装置10は、制御部20、表示部22、操作部24、通信部26、及び記憶部28を備えている。制御部20は、装置全体の制御及び各種演算を行うコンピュータとして構成されている。
<Configuration of information processing apparatus>
First, the overall configuration of the information processing apparatus according to the embodiment of the present invention will be described.
FIG. 1 is a block diagram showing an example of the configuration of the information processing apparatus according to the embodiment of the present invention. As illustrated in FIG. 1, the information processing apparatus 10 according to the present embodiment includes a control unit 20, a display unit 22, an operation unit 24, a communication unit 26, and a storage unit 28. The control unit 20 is configured as a computer that controls the entire apparatus and performs various calculations.

即ち、制御部20は、CPU20A、各種プログラムを記憶したROM20B、プログラムの実行時にワークエリアとして使用されるRAM20C、各種情報を記憶する不揮発性のメモリ20D、及び入出力インターフェイス(I/O)20Eを備えている。CPU20A、ROM20B、RAM20C、メモリ20D、及びI/O20Eの各々は、バス20Fを介して互いに接続されている。   That is, the control unit 20 includes a CPU 20A, a ROM 20B that stores various programs, a RAM 20C that is used as a work area when executing the programs, a non-volatile memory 20D that stores various information, and an input / output interface (I / O) 20E. I have. Each of the CPU 20A, ROM 20B, RAM 20C, memory 20D, and I / O 20E is connected to each other via a bus 20F.

本実施の形態では、後述する「印刷情報生成処理」等の制御プログラムが、ROM20Bに予め記憶されている。予め記憶された制御プログラムは、CPU20AによりROM20Bから読み出されて、RAM20Cをワークエリアとして実行される。   In the present embodiment, a control program such as “print information generation processing” described later is stored in the ROM 20B in advance. The control program stored in advance is read from the ROM 20B by the CPU 20A and executed using the RAM 20C as a work area.

表示部22、操作部24、通信部26、及び記憶部28の各部は、制御部20のI/O20Eに接続されている。制御部20は、各部と情報の授受を行って、表示部22、操作部24、通信部26、及び記憶部28の各部を制御する。   Each unit of the display unit 22, the operation unit 24, the communication unit 26, and the storage unit 28 is connected to the I / O 20 </ b> E of the control unit 20. The control unit 20 exchanges information with each unit, and controls each unit of the display unit 22, the operation unit 24, the communication unit 26, and the storage unit 28.

表示部22は、ディスプレイ等の表示装置を備え、ユーザに各種情報を表示する。操作部24は、マウス、キーボード等の入力装置を備え、ユーザからの操作を受け付ける。通信部26は、有線又は無線の通信回線を介して外部装置と通信を行うためのインターフェイスである。記憶部28は、HDD等の記憶装置を備え、各種情報を記憶する。   The display unit 22 includes a display device such as a display, and displays various types of information to the user. The operation unit 24 includes an input device such as a mouse and a keyboard, and accepts an operation from a user. The communication unit 26 is an interface for communicating with an external device via a wired or wireless communication line. The storage unit 28 includes a storage device such as an HDD, and stores various types of information.

本実施の形態では、情報処理装置10は、通信部26を介して「機器」の一例である端末装置30から文書情報を受信する。情報処理装置10は、後述する「印刷情報生成処理」により受信した文書情報から印刷情報を生成し、生成した印刷情報を通信部26を介して印刷装置50に送信する。なお、図1に示す構成は一例であり、情報処理装置10が印刷装置50に搭載されていてもよい。この場合、印刷装置50が、後述する「印刷情報生成処理」により受信した文書情報から印刷情報を生成し、生成した印刷情報に基づいて印刷を実施する。   In the present embodiment, the information processing apparatus 10 receives document information from the terminal device 30 that is an example of “apparatus” via the communication unit 26. The information processing apparatus 10 generates print information from document information received by a “print information generation process” described later, and transmits the generated print information to the printing apparatus 50 via the communication unit 26. The configuration illustrated in FIG. 1 is an example, and the information processing apparatus 10 may be mounted on the printing apparatus 50. In this case, the printing apparatus 50 generates print information from the document information received by a “print information generation process” described later, and performs printing based on the generated print information.

また、制御部20には、各種ドライブが接続されていてもよい。各種ドライブは、フレキシブルディスク、光磁気ディスク、CD−ROMなどのコンピュータ読み取り可能な可搬性の記録媒体からデータを読み込んだり、記録媒体に対してデータを書き込んだりする装置である。各種ドライブを備える場合には、可搬性の記録媒体に制御プログラムを記録しておいて、これを対応するドライブで読み込んで実行してもよい。   Various drives may be connected to the control unit 20. Each type of drive is a device that reads data from a computer-readable portable recording medium such as a flexible disk, a magneto-optical disk, or a CD-ROM, and writes data to the recording medium. When various types of drives are provided, a control program may be recorded on a portable recording medium, and this may be read and executed by a corresponding drive.

<端末装置の構成>
次に、端末装置について簡単に説明する。本実施の形態では、タブレット、スマートフォン、PDA等の携帯型の端末装置を想定している。図2は端末装置の構成の一例を示すブロック図である。図2に示すように、端末装置30は、制御部40、操作表示部42、通信部44、及び記憶部46を備えている。制御部40は、装置全体の制御及び各種演算を行うコンピュータとして構成されている。
<Configuration of terminal device>
Next, the terminal device will be briefly described. In the present embodiment, a portable terminal device such as a tablet, a smartphone, or a PDA is assumed. FIG. 2 is a block diagram illustrating an example of the configuration of the terminal device. As illustrated in FIG. 2, the terminal device 30 includes a control unit 40, an operation display unit 42, a communication unit 44, and a storage unit 46. The control unit 40 is configured as a computer that controls the entire apparatus and performs various calculations.

即ち、制御部40は、CPU40A、各種プログラムを記憶したROM40B、プログラムの実行時にワークエリアとして使用されるRAM40C、各種情報を記憶する不揮発性のメモリ40D、及び入出力インターフェイス(I/O)40Eを備えている。CPU40A、ROM40B、RAM40C、メモリ40D、及びI/O40Eの各々は、バス40Fを介して互いに接続されている。   That is, the control unit 40 includes a CPU 40A, a ROM 40B storing various programs, a RAM 40C used as a work area when executing the programs, a non-volatile memory 40D storing various information, and an input / output interface (I / O) 40E. I have. Each of the CPU 40A, ROM 40B, RAM 40C, memory 40D, and I / O 40E is connected to each other via a bus 40F.

本実施の形態では、後述する「印刷情報生成処理」等の制御プログラムが、ROM40Bに予め記憶されている。予め記憶された制御プログラムは、CPU40AによりROM40Bから読み出されて、RAM40Cをワークエリアとして実行される。   In the present embodiment, a control program such as “print information generation processing” described later is stored in advance in the ROM 40B. The control program stored in advance is read from the ROM 40B by the CPU 40A and executed using the RAM 40C as a work area.

操作表示部42、通信部44、及び記憶部46の各部は、制御部40のI/O40Eに接続されている。制御部40は、各部と情報の授受を行って、操作表示部42、通信部44、及び記憶部46の各部を制御する。   The operation display unit 42, the communication unit 44, and the storage unit 46 are connected to the I / O 40E of the control unit 40. The control unit 40 exchanges information with each unit, and controls each unit of the operation display unit 42, the communication unit 44, and the storage unit 46.

操作表示部42は、タッチパネル等の操作を受け付ける表示画面を備え、ユーザに各種画面を表示するように制御されると共に、各種画面からユーザの操作を受け付けて各種情報を取得する。なお、操作表示部42は、表示画面の外に、テンキー等の各種ボタンを備えていてもよい。通信部44は、有線又は無線の通信回線を介して外部装置と通信を行うためのインターフェイスである。記憶部46は、HDD等の記憶装置を備え、各種情報を記憶する。   The operation display unit 42 includes a display screen that accepts operations such as a touch panel, and is controlled to display various screens to the user. The operation display unit 42 accepts user operations from the various screens and acquires various types of information. The operation display unit 42 may include various buttons such as a numeric keypad outside the display screen. The communication unit 44 is an interface for communicating with an external device via a wired or wireless communication line. The storage unit 46 includes a storage device such as an HDD and stores various information.

本実施の形態では、端末装置30は「機器」の一例であり、操作表示部42に含まれる表示画面が「機器の表示画面」である。例えば、スマートフォンでは、タッチパネルが「機器の表示画面」である。ここで、短文章で構成される文書を印刷する場合の不具合について検討する。図3(A)〜(D)は機器の表示画面に表示された文書を印刷した場合の印刷結果の一例を示す模式図である。   In the present embodiment, the terminal device 30 is an example of a “device”, and the display screen included in the operation display unit 42 is a “device display screen”. For example, in a smartphone, the touch panel is a “device display screen”. Here, a problem in printing a document composed of short sentences is examined. 3A to 3D are schematic diagrams illustrating an example of a printing result when a document displayed on the display screen of the device is printed.

図3(A)に示すように、端末装置30の表示画面32に短文章で構成される文書画像32Aが表示されている場合、記録媒体52の幅Wpに応じて印刷を実施すると、図3(B)に示す印刷結果が得られる。短文章で構成される文書は改行も多いので、印刷領域の幅Wは表示画面32の幅Wdと略等しい。幅Wは記録媒体52の幅Wpに比べて狭く、幅Wの領域は記録媒体52の左側に偏在する。このため、記録媒体52の右側に大きな余白が生じてしまう。   As shown in FIG. 3A, when a document image 32A composed of short sentences is displayed on the display screen 32 of the terminal device 30, if printing is performed according to the width Wp of the recording medium 52, FIG. The printing result shown in (B) is obtained. Since a document composed of short sentences has many line breaks, the width W of the print area is substantially equal to the width Wd of the display screen 32. The width W is narrower than the width Wp of the recording medium 52, and the area of the width W is unevenly distributed on the left side of the recording medium 52. For this reason, a large margin is generated on the right side of the recording medium 52.

一方、図3(C)に示すように、端末装置30の表示画面32に長文章で構成される文書画像32Bが表示されている場合、記録媒体52の幅Wpに応じて印刷を実施すると、図3(D)に示す印刷結果が得られる。長文章で構成される文書は改行が少ないので、印刷領域の幅Wは記録媒体52の幅Wpと略等しく、記録媒体52に大きな余白が生じることはない。   On the other hand, as shown in FIG. 3C, when a document image 32B composed of long sentences is displayed on the display screen 32 of the terminal device 30, printing is performed according to the width Wp of the recording medium 52. The printing result shown in FIG. 3D is obtained. Since a document composed of long sentences has few line breaks, the width W of the print area is substantially equal to the width Wp of the recording medium 52, and no large margin is generated in the recording medium 52.

本実施の形態では、文書情報から短文章から構成される文書か否かを特定し、短文章から構成される文書である場合には、文書情報を複数のブロックに分割し、少なくとも2以上のブロックが1枚の記録媒体の片面に印刷されるレイアウトで印刷情報を生成する。これにより、レイアウトを変更しない場合に比べ、余白部分の少ないレイアウトの印刷情報が生成される。   In this embodiment, it is specified whether or not the document is composed of short sentences from the document information. When the document is composed of short sentences, the document information is divided into a plurality of blocks, and at least two or more Print information is generated in a layout in which blocks are printed on one side of one recording medium. As a result, print information of a layout with less margin is generated as compared with the case where the layout is not changed.

例えば、図3(B)に示す印刷結果において、幅Wの印刷領域に印刷される文書情報を1ブロックとした場合に、図10に示すように、複数ブロックの文書情報が1枚の記録媒体の片面に印刷されるレイアウトで印刷情報を生成する。図10では2個のブロックB11、ブロックB12が記録媒体52の幅方向に並べて配置されている。なお、文書に頁区切りがある場合は、1ブロックが1頁に相当し、いわゆるNアップ機能(1枚の記録媒体の片面に複数頁を印刷すること)を実施することになる。 For example, in the print result shown in FIG. 3B, when the document information printed in the print area with the width W is one block, as shown in FIG. Print information is generated with a layout that is printed on one side. In FIG. 10, two blocks B 11 and B 12 are arranged side by side in the width direction of the recording medium 52. If there is a page break in the document, one block corresponds to one page, and a so-called N-up function (printing a plurality of pages on one side of one recording medium) is performed.

<情報処理装置の機能>
次に、本発明の実施の形態に係る情報処理装置の機能について説明する。
図4は本発明の実施の形態に係る情報処理装置の機能構成の一例を示す機能ブロック図である。図4に示すように、本実施の形態に係る情報処理装置10は、文書解析部60、印刷情報生成部70、及びブロック数/幅設定部80を備えている。なお、情報処理装置10は、文書情報と共に、表示画面のサイズを表す表示画面情報と印刷設定情報とを取得している。
<Functions of information processing device>
Next, functions of the information processing apparatus according to the embodiment of the present invention will be described.
FIG. 4 is a functional block diagram showing an example of the functional configuration of the information processing apparatus according to the embodiment of the present invention. As illustrated in FIG. 4, the information processing apparatus 10 according to the present embodiment includes a document analysis unit 60, a print information generation unit 70, and a block number / width setting unit 80. The information processing apparatus 10 acquires display screen information indicating the size of the display screen and print setting information along with the document information.

文書解析部60は、情報分離部62、文章区分部64、文字数算出部65、短文章/長文章カウント部66、及び最大印刷幅取得部68を備えている。文書解析部60は、各部の機能により、得られた文書情報を解析してカウント情報(短文章数と長文章数)と最大印刷幅情報(イメージ)とを求めて、印刷情報生成部70に出力する。ここで、文書情報は、文字情報(テキストデータ)とイメージ情報(イメージデータ及び図形データ)とで構成されている。   The document analysis unit 60 includes an information separation unit 62, a sentence classification unit 64, a character count calculation unit 65, a short / long sentence count unit 66, and a maximum print width acquisition unit 68. The document analysis unit 60 analyzes the obtained document information by using the function of each unit to obtain count information (the number of short sentences and the number of long sentences) and maximum print width information (image), and sends them to the print information generation unit 70. Output. Here, the document information is composed of character information (text data) and image information (image data and graphic data).

具体的には、情報分離部62は、文書解析部60に入力された文書情報を、文字情報とイメージ情報とに分離する。文章区分部64は、文字情報を一連の文字列である文章毎に区分する。文字数算出部65は、区分された各文章の文字数を算出する。短文章/長文章カウント部66は、文字数が第1閾値以下の短文章の数(短文章数)と、文字数が第1閾値より大きい長文章の数(長文章数)とをカウント(計測)する。最大印刷幅取得部68は、イメージ情報からイメージの最大印刷幅を求める。ここでイメージには、図形も含まれる。   Specifically, the information separation unit 62 separates the document information input to the document analysis unit 60 into character information and image information. The sentence classification unit 64 classifies the character information for each sentence that is a series of character strings. The number-of-characters calculation unit 65 calculates the number of characters of each divided sentence. The short / long sentence counting unit 66 counts (measures) the number of short sentences (the number of short sentences) whose number of characters is equal to or less than the first threshold and the number of long sentences (the number of long sentences) whose number of characters is greater than the first threshold. To do. The maximum print width acquisition unit 68 obtains the maximum print width of the image from the image information. Here, the image includes a figure.

ブロック数/幅設定部80は、表示画面のサイズを表す表示画面情報と印刷設定情報とに基づいて、上記のブロック数Mとブロック数に応じたブロック幅W(図3の印刷領域の幅Wに相当)とを求めて、設定値として印刷情報生成部70に出力する。印刷設定情報は、記録媒体のサイズや記録媒体の向きを含む。ここで「サイズ」とは、文字が並ぶ印刷方向を「幅方向」としたときの、幅方向の長さである。例えば、印刷結果を読むことができるようにして置いたとき、記録媒体が横置きの場合は、「記録媒体の印刷方向の幅」は記録媒体の横方向の長さであり、記録媒体が縦置きの場合は、「記録媒体の印刷方向の幅」は記録媒体の縦方向の長さである。本実施の形態では、表示画面の幅方向の長さ(表示画面幅)Wd、記録媒体の幅方向の長さ(記録媒体幅)Wpに着目する。   The block number / width setting unit 80, based on the display screen information indicating the size of the display screen and the print setting information, the block number M and the block width W corresponding to the block number (the width W of the print area in FIG. 3). Is output to the print information generation unit 70 as a set value. The print setting information includes the size of the recording medium and the direction of the recording medium. Here, the “size” is the length in the width direction when the print direction in which the characters are arranged is the “width direction”. For example, when the print medium is placed so that it can be read and the recording medium is in landscape orientation, the “width in the printing direction of the recording medium” is the horizontal length of the recording medium, and the recording medium is In the case of setting, the “width in the printing direction of the recording medium” is the length in the vertical direction of the recording medium. In the present embodiment, attention is paid to the length in the width direction of the display screen (display screen width) Wd and the length in the width direction of the recording medium (recording medium width) Wp.

印刷情報生成部70は、レイアウト決定部72及び文字/イメージ配置部74を備えている。レイアウト決定部72は、文書解析部60から得られたカウント情報と、ブロック数/幅設定部80から得られたブロック数Mとから、印刷時のレイアウトを決定する。文字/イメージ配置部74は、決定されたレイアウトに従って文字及びイメージを配置する。このとき、文書解析部60から得られたイメージの最大印刷幅情報と、ブロック数/幅設定部80から得られたブロック幅Wとから、イメージがブロック内に収まらない場合は、イメージを縮小する。印刷情報生成部70は、生成した印刷情報を出力する。   The print information generation unit 70 includes a layout determination unit 72 and a character / image arrangement unit 74. The layout determination unit 72 determines a layout at the time of printing from the count information obtained from the document analysis unit 60 and the block number M obtained from the block number / width setting unit 80. The character / image arrangement unit 74 arranges characters and images according to the determined layout. At this time, if the image does not fit in the block from the maximum print width information of the image obtained from the document analysis unit 60 and the block width W obtained from the block number / width setting unit 80, the image is reduced. . The print information generation unit 70 outputs the generated print information.

<印刷情報生成処理>
次に、「印刷情報生成処理」について説明する。
図5は「印刷情報生成処理」の手順の一例を示すフローチャートである。「印刷情報生成処理」は、情報処理装置10の制御部20のCPU20Aで実行される。「印刷情報生成処理」は、ユーザにより実行開始が指示されると開始される。
<Print information generation process>
Next, the “print information generation process” will be described.
FIG. 5 is a flowchart illustrating an example of the procedure of “print information generation processing”. The “print information generation process” is executed by the CPU 20 </ b> A of the control unit 20 of the information processing apparatus 10. The “print information generation process” is started when an instruction to start execution is given by the user.

まず、ステップ100で、前回の処理で記憶した情報を消去する。前回の処理では、文書情報、表示画面情報、印刷設定情報、カウント情報、最大印刷幅情報等が、RAM20C等のメモリに記憶されているが、これらの情報がメモリから消去される。続くステップ102で、新たな文書情報、表示画面情報、印刷設定情報を、RAM20C等のメモリに記憶する。   First, in step 100, the information stored in the previous process is deleted. In the previous process, document information, display screen information, print setting information, count information, maximum print width information, and the like are stored in the memory such as the RAM 20C, but these information are deleted from the memory. In the subsequent step 102, new document information, display screen information, and print setting information are stored in a memory such as the RAM 20C.

次に、ステップ104で、「ブロック数/幅決定処理」を実行する。「ブロック数/幅決定処理」では、表示画面情報と印刷設定情報とに基づいてブロック数Mとブロック幅Wとを設定する。以下、「ブロック数/幅決定処理」について説明する。   Next, in step 104, the “number of blocks / width determination process” is executed. In the “block number / width determination process”, the block number M and the block width W are set based on the display screen information and the print setting information. The “number of blocks / width determination process” will be described below.

図6は「ブロック数/幅決定処理」の手順の一例を示すフローチャートである。図6に示すように、ステップ200で、表示画面幅Wdを取得したか否かを判定する。表示画面幅Wdを取得している場合は、ステップ202に進む。表示画面幅Wdを取得していない場合は、ステップ208に進む。ステップ208では、ブロック数Mとブロック幅Wを、記録媒体幅Wpに応じて予め定義された値に設定して、処理ルーチンを終了する。   FIG. 6 is a flowchart showing an example of the procedure of the “number of blocks / width determination process”. As shown in FIG. 6, it is determined in step 200 whether or not the display screen width Wd has been acquired. If the display screen width Wd is acquired, the process proceeds to step 202. If the display screen width Wd has not been acquired, the process proceeds to step 208. In step 208, the number of blocks M and the block width W are set to values defined in advance according to the recording medium width Wp, and the processing routine ends.

次に、ステップ202で、記録媒体幅Wpが表示画面幅Wdより大きいか否かを判定する。記録媒体幅Wpが表示画面幅Wdより大きい場合は、ステップ204に進む。記録媒体幅Wpが表示画面幅Wd以下の場合は、ステップ210に進む。ステップ210では、ブロック数Mを「1」と設定して、処理ルーチンを終了する。即ち、印刷時のレイアウトは変更されず、1枚の記録媒体の片面には分割されていない文書が印刷される。文書に頁区切りがある場合は、Nアップしないという結果になる。   Next, in step 202, it is determined whether or not the recording medium width Wp is larger than the display screen width Wd. If the recording medium width Wp is larger than the display screen width Wd, the process proceeds to step 204. If the recording medium width Wp is equal to or smaller than the display screen width Wd, the process proceeds to step 210. In step 210, the number of blocks M is set to “1”, and the processing routine ends. That is, the layout at the time of printing is not changed, and an undivided document is printed on one side of one recording medium. If there are page breaks in the document, the result is that N is not increased.

次に、ステップ204で、記録媒体幅Wpを表示画面幅Wdで除算して得られた商の整数部分の値を求め、ブロック数Mをこの整数値とする。続くステップ206で、ブロック数Mに応じたブロック幅Wを求め、得られたブロック数Mとブロック幅Wとを設定して、処理ルーチンを終了する。なお、上記では記録媒体幅Wp及び表示画面幅Wdからブロック数Mを求める方法について説明したが、文字サイズに基づいてブロック数Mを求めてもよい。例えば、印刷設定された文字サイズが小さい場合には、ブロック数Mを大きくし、印刷設定された文字サイズが大きい場合には、ブロック数Mを小さくする。   Next, in step 204, the value of the integer part of the quotient obtained by dividing the recording medium width Wp by the display screen width Wd is obtained, and the number of blocks M is set to this integer value. In subsequent step 206, the block width W corresponding to the number of blocks M is obtained, the obtained number of blocks M and the block width W are set, and the processing routine is ended. In the above description, the method for obtaining the number of blocks M from the recording medium width Wp and the display screen width Wd has been described. However, the number of blocks M may be obtained based on the character size. For example, when the print-set character size is small, the block number M is increased, and when the print-set character size is large, the block number M is decreased.

ここで、図5の説明に戻る。次に、ステップ106で、「文書解析処理」を実行する。「文書解析処理」では、文書情報を解析してカウント情報(短文章数/長文章数)とイメージの最大印刷幅情報とを求め、得られたカウント情報と最大印刷幅情報とをメモリに記憶する。以下、「文書解析処理」について説明する。   Returning to the description of FIG. Next, in step 106, “document analysis processing” is executed. In “Document Analysis”, the document information is analyzed to determine the count information (number of short text / long text) and the maximum print width information of the image, and the obtained count information and maximum print width information are stored in the memory. To do. Hereinafter, “document analysis processing” will be described.

図7は「文書解析処理」の手順の一例を示すフローチャートである。図7に示すように、ステップ300で、文書情報をデータ区切りまで読み出し、続くステップ302で、文書情報を文字情報とイメージ情報とに分離する。続くステップ304で、処理対象の情報が文字情報か否かを判断する。文字情報である場合には、ステップ306に進む。一方、文字情報ではなくイメージ情報である場合には、ステップ318に進む。   FIG. 7 is a flowchart showing an example of the procedure of “document analysis processing”. As shown in FIG. 7, in step 300, the document information is read up to the data break, and in step 302, the document information is separated into character information and image information. In subsequent step 304, it is determined whether or not the information to be processed is character information. If it is character information, the process proceeds to step 306. On the other hand, if the image information is not character information, the process proceeds to step 318.

ステップ306では、文字情報を一連の文字列である文章毎に区分する。例えば、連続して改行が行われている箇所で文章を区切る。また、文字情報が文字位置情報を含む場合は、文字の書き出し位置が文字の書き終わり位置から「連続した改行」に相当する距離以上離れている箇所で文章を区切ってもよい。   In step 306, the character information is classified for each sentence that is a series of character strings. For example, sentences are separated at places where line breaks are continuously made. When the character information includes character position information, the text may be separated at a position where the character writing position is separated from the character writing end position by a distance corresponding to “continuous line feed” or more.

続くステップ308で、区分された各文章の文字数を算出する。続くステップ310で、文字数が第1閾値以下の短文章の出現回数(短文章数)をカウントする。続くステップ312で、文字数が第1閾値より大きい長文章の出現回数(長文章数)をカウントする。続くステップ314で、得られた短文章数と長文章数とをカウント情報としてメモリに記憶する。   In the subsequent step 308, the number of characters of each divided sentence is calculated. In subsequent step 310, the number of appearances of short sentences whose number of characters is equal to or less than the first threshold (the number of short sentences) is counted. In the following step 312, the number of appearances of long sentences (number of long sentences) whose number of characters is larger than the first threshold is counted. In the following step 314, the obtained number of short sentences and the number of long sentences are stored in the memory as count information.

なお、前回記憶したカウント情報がある場合は、ステップ314で、今回取得した短文章数を、前回記憶した短文章数に加算し、今回取得した長文章数を、前回記憶した長文章数に加算する。そして、加算後のカウント値(短文章数と長文章数)を、カウント情報として記憶する。   If there is count information stored last time, in step 314, the number of short sentences acquired this time is added to the number of short sentences stored last time, and the number of long sentences acquired this time is added to the number of long sentences stored last time. To do. Then, the count value after addition (the number of short sentences and the number of long sentences) is stored as count information.

短文章で構成される文書の印刷結果では、印刷領域の幅Wは表示画面32の幅Wdと略等しいために、記録媒体52に大きな余白を生じさせる(図3(B))。従って、第1閾値は、端末装置30の表示画面32に1行または数行で表示される文字数としてもよい。或いは、140文字等、SNSアプリで投稿できる制限文字数としてもよい。   In the print result of the document composed of short sentences, the width W of the print area is substantially equal to the width Wd of the display screen 32, so that a large margin is generated on the recording medium 52 (FIG. 3B). Therefore, the first threshold value may be the number of characters displayed in one line or several lines on the display screen 32 of the terminal device 30. Or it is good also as a limit character number which can be contributed by SNS application, such as 140 characters.

一方、ステップ318では、各イメージ(図形を含む)の印刷幅を求める。続くステップ320で、バックグラウンド判定を行う。イメージの印刷幅が記録媒体幅Wpである、イメージがタイル状に配置されている、イメージに文字等の他の要素が上書きされている等の要件を満たす場合は、イメージがバックグラウンドであると判定される。続くステップ322で、バックグラウンドを除くイメージについて最大印刷幅を取得する。続くステップ314で、得られたイメージの最大印刷幅を最大印刷幅情報として記憶する。   On the other hand, in step 318, the print width of each image (including graphics) is obtained. In subsequent step 320, background determination is performed. If the image print width is the recording medium width Wp, the image is tiled, or if the image is overwritten with other elements such as characters, the image is in the background Determined. In the following step 322, the maximum print width is acquired for the image excluding the background. In the following step 314, the maximum print width of the obtained image is stored as maximum print width information.

なお、前回記憶した最大印刷幅がある場合は、ステップ314で、今回取得した最大印刷幅が、前回記憶した最大印刷幅より大きいか否かを判定する。そして、前回記憶した最大印刷幅より大きい場合に、今回取得した最大印刷幅を最大印刷幅情報としてメモリに記憶する。   If there is a previously stored maximum print width, it is determined in step 314 whether the currently acquired maximum print width is greater than the previously stored maximum print width. Then, if it is larger than the previously stored maximum print width, the maximum print width acquired this time is stored in the memory as maximum print width information.

次に、ステップ316で、読み出されていない文書情報があるか否かを判断する。読み出されていない文書情報がある場合は、ステップ300に戻って、ステップ300〜ステップ316の処理を繰り返し実行する。処理が繰り返し実行されることで、カウント情報と最大印刷幅情報とが更新される。一方、読み出されていない文書情報が無い場合は、処理ルーチンを終了する。   Next, in step 316, it is determined whether there is document information that has not been read. If there is document information that has not been read, the process returns to step 300, and the processing of step 300 to step 316 is repeatedly executed. By repeatedly executing the process, the count information and the maximum print width information are updated. On the other hand, if there is no unread document information, the processing routine is terminated.

ここで、図5の説明に戻る。次に、ステップ108で、短文章数が「0」以外か否かを判断する。短文章数が「0」以外の場合は、ステップ110に進む。短文章数が「0」の場合は、ステップ122に進む。ステップ122では、短文章から構成される文書ではないので、レイアウト変更なし(Nアップしない)、即ち、初期設定されたレイアウトと決定して、ステップ118に進む。   Returning to the description of FIG. Next, in step 108, it is determined whether or not the number of short sentences is other than “0”. If the number of short sentences is other than “0”, the process proceeds to step 110. If the number of short sentences is “0”, the process proceeds to step 122. In step 122, since it is not a document composed of short sentences, it is determined that there is no layout change (N-up is not performed), that is, an initially set layout, and the flow proceeds to step 118.

次に、ステップ110で、長文章数が「0」以外か否かを判断する。長文章数が「0」以外の場合は、ステップ112に進む。長文章数が「0」の場合は、ステップ116に進む。続くステップ112では、短文章数と全文章数とを比較して、短文章の全文章に対する割合を求める。なお、短文章数と長文章数との和が全文章数である。   Next, in step 110, it is determined whether or not the number of long sentences is other than “0”. When the number of long sentences is other than “0”, the process proceeds to step 112. If the number of long sentences is “0”, the process proceeds to step 116. In the following step 112, the number of short sentences is compared with the number of all sentences, and the ratio of short sentences to all sentences is obtained. The sum of the number of short sentences and the number of long sentences is the total number of sentences.

次に、ステップ114で、短文章の全文章に対する割合が第2閾値以上か否かを判断する。短文章の全文章に対する割合が第2閾値以上の場合は、ステップ116に進む。短文章の全文章に対する割合が第2閾値未満の場合は、ステップ122に進む。   Next, in step 114, it is determined whether or not the ratio of short sentences to all sentences is greater than or equal to a second threshold value. If the ratio of short sentences to all sentences is greater than or equal to the second threshold, the process proceeds to step 116. If the ratio of short sentences to all sentences is less than the second threshold value, the process proceeds to step 122.

短文章で構成される文書の印刷結果では、記録媒体52に余白が生じるが、長文章で構成される文書の印刷結果では、記録媒体52に余白は生じない(図3(B)、図3(D))。従って、第2閾値は、100%に近い値に設定される方がよい。例えば、90%以上100%以下の範囲としてもよい。   In the printing result of a document composed of short sentences, a margin is generated in the recording medium 52, but in the printing result of a document composed of long sentences, no margin is generated in the recording medium 52 (FIG. 3B, FIG. 3). (D)). Therefore, it is better to set the second threshold value to a value close to 100%. For example, the range may be 90% or more and 100% or less.

ステップ116では、短文章から構成される文書と判定され、ステップ104で設定したブロック数Mに応じてレイアウト変更する(Nアップする)と決定して、ステップ118に進む。なお、ステップ110で長文章数が「0」であると判定された場合も、同様に、短文章から構成される文書と判定され、ステップ116で、レイアウト変更する(Nアップする)と決定する。   In step 116, it is determined that the document is composed of short sentences, and it is determined to change the layout (N up) according to the number of blocks M set in step 104, and the process proceeds to step 118. If it is determined in step 110 that the number of long sentences is “0”, it is similarly determined that the document is composed of short sentences, and in step 116, it is determined to change the layout (N up). .

次に、ステップ118で、決定されたレイアウトに従って文字及びイメージを配置する「文字/イメージ配置処理」を実行する。図8は「文書/イメージ配置処理」の手順の一例を示すフローチャートである。図8に示すように、ステップ400では、図5のステップ106の「文書解析処理」により得られたイメージの最大印刷幅が、図5のステップ104で得られた「ブロック幅W」より大きいか否かを判断する。   Next, in step 118, “character / image placement processing” for placing characters and images according to the determined layout is executed. FIG. 8 is a flowchart showing an example of the procedure of “document / image arrangement processing”. As shown in FIG. 8, in step 400, is the maximum print width of the image obtained by the “document analysis process” in step 106 of FIG. 5 larger than the “block width W” obtained in step 104 of FIG. Judge whether or not.

イメージの最大印刷幅がブロック幅Wより大きい場合は、ステップ402に進む。イメージの最大印刷幅がブロック幅W以下の場合は、ステップ404に進む。ステップ402では、イメージの最大印刷幅がブロック幅W以下となるようにイメージを縮小して、ステップ404に進む。ここで、最大印刷幅のイメージだけでなく、その他のイメージも同じ縮小率で縮小してもよい。ステップ404では、決定されたレイアウトに従って文字及びイメージを配置して、ルーチンを終了する。   If the maximum print width of the image is larger than the block width W, the process proceeds to step 402. If the maximum print width of the image is equal to or smaller than the block width W, the process proceeds to step 404. In step 402, the image is reduced so that the maximum print width of the image is equal to or smaller than the block width W, and the process proceeds to step 404. Here, not only the image of the maximum print width but also other images may be reduced at the same reduction rate. In step 404, characters and images are arranged according to the determined layout, and the routine is terminated.

(レイアウト変更)
次に、レイアウト変更の具体例について説明する。
図9は機器の表示画面に表示された文書の構成の一例を示す模式図であり、図10はレイアウト変更された印刷情報に基づいて記録媒体上に印刷された文書の構成の一例を示す模式図である。また、図11はレイアウト変更された印刷情報に基づいて記録媒体上に印刷された文書の構成の他の一例を示す模式図である。
(Change layout)
Next, a specific example of layout change will be described.
FIG. 9 is a schematic diagram illustrating an example of the configuration of a document displayed on the display screen of the device. FIG. 10 is a schematic diagram illustrating an example of the configuration of a document printed on a recording medium based on print information whose layout has been changed. FIG. FIG. 11 is a schematic diagram showing another example of the configuration of a document printed on a recording medium based on print information whose layout has been changed.

図9に示すように、端末装置30の表示画面32には文書の一部が表示されている。図示した例では、表示された文書の一部は、イメージG、G、Gと文字列とで構成されている。文字列は、一連の文字列である文章S、S、S、S、S、Sに区分される。なお、この文書には続きがある(図10参照)。 As shown in FIG. 9, a part of the document is displayed on the display screen 32 of the terminal device 30. In the illustrated example, a part of the displayed document is composed of images G 1 , G 2 , G 3 and a character string. The character string is divided into sentences S 1 , S 2 , S 3 , S 4 , S 5 and S 6 which are a series of character strings. This document has a continuation (see FIG. 10).

図10に示すように、図示した例では、記録媒体52に印刷された文書は、60文字以下の文章を短文章とすると、短文章の割合が100%の文書である。文書はブロックB11とブロックB12の2つのブロックに分割され、1枚の記録媒体52の片面にブロックB11とブロックB12とが幅方向に並ぶようにレイアウト変更されている。 As shown in FIG. 10, in the illustrated example, the document printed on the recording medium 52 is a document in which the ratio of short sentences is 100% when a sentence of 60 characters or less is a short sentence. The document is divided into two blocks of the block B 11 and the block B 12, the block B 11 and the block B 12 is laid modified as to align in the width direction on one side of one sheet of the recording medium 52.

ブロックB11には、イメージG、G、Gと、文章S、S、S、S、S、S(前半)が含まれている。次のブロックB12には、イメージGと、文章S(後半)、S、S、S、S10、S11が含まれている。ブロックB11とブロックB12とが記録媒体52の幅方向に並ぶように印刷時のレイアウトを変更することで、印刷結果において、図3(B)に示すような大きな余白が発生しない。 The block B 11 includes images G 1 , G 2 , G 3 and sentences S 1 , S 2 , S 3 , S 4 , S 5 , S 6 (first half). The next block B 12 includes an image G 4 and sentences S 6 (second half), S 7 , S 8 , S 9 , S 10 , S 11 . By the block B 11 and the block B 12 to change the layout at the time of printing so as to be lined up in the width direction of the recording medium 52, in the printing result, is not generated a large margin, as shown in Figure 3 (B).

また、文書情報を提供する端末装置30の種類は様々であり、表示画面32の幅Wdは文書情報毎に変わる。ブロックB11とブロックB12の各々の幅Wは、端末装置30の表示画面32の幅Wdに対応している。従って、印刷結果において表示画面32における表示態様が維持されるので、端末装置30のユーザにとって読み易い印刷結果となる。 Further, there are various types of terminal devices 30 that provide document information, and the width Wd of the display screen 32 changes for each document information. The width W of each of the block B 11 and the block B 12 corresponds to the width Wd of the display screen 32 of the terminal device 30. Therefore, since the display mode on the display screen 32 is maintained in the print result, the print result is easy to read for the user of the terminal device 30.

なお、図10に示す例では、短文章で構成される文書を2つのブロックに分割する例について説明したが、短文章で構成される文書を更に細かく分割してもよい。また、図10に示す例では、複数のブロックが記録媒体52の幅方向に並ぶように印刷時のレイアウトを変更する例について説明したが、複数のブロックが記録媒体52の幅方向及び長さ方向に並ぶように印刷時のレイアウトを変更してもよい。   In the example shown in FIG. 10, an example in which a document composed of short sentences is divided into two blocks has been described. However, a document composed of short sentences may be further divided. In the example illustrated in FIG. 10, the example in which the layout at the time of printing is changed so that a plurality of blocks are arranged in the width direction of the recording medium 52 has been described, but the plurality of blocks are in the width direction and the length direction of the recording medium 52. The layout at the time of printing may be changed so as to line up.


図11は記録媒体上に印刷された文書の構成の他の一例を示す模式図である。図11に示す例では、短文章で構成される文書がブロックB11とブロックB12のブロックB21とブロックB22の4つのブロックに分割されている。文書は、ブロックB11→ブロックB12→ブロックB21→ブロックB22の順に続いている。ブロックB11が記録媒体52の左上、ブロックB12が記録媒体52の右上、ブロックB21が記録媒体52の左下、ブロックB22が記録媒体52の右下に、各々配置されるように、印刷時のレイアウトが変更されている。
,
FIG. 11 is a schematic diagram showing another example of the configuration of a document printed on a recording medium. In the example shown in FIG. 11, a document composed of short sentences is divided into four blocks, block B 11 , block B 12 , block B 21, and block B 22 . The document continues in the order of block B 11 → block B 12 → block B 21 → block B 22 . Printing is performed so that the block B 11 is arranged at the upper left of the recording medium 52, the block B 12 is arranged at the upper right of the recording medium 52, the block B 21 is arranged at the lower left of the recording medium 52, and the block B 22 is arranged at the lower right of the recording medium 52. The layout of the time has been changed.

なお、上記実施の形態で説明した情報処理装置及びプログラムの構成は一例であり、本発明の主旨を逸脱しない範囲内においてその構成を変更してもよいことは言うまでもない。例えば、フローチャートの各ステップの順序を入れ替える等してもよい。   The configuration of the information processing apparatus and program described in the above embodiment is an example, and it goes without saying that the configuration may be changed without departing from the gist of the present invention. For example, the order of the steps in the flowchart may be changed.

10 情報処理装置
20 制御部
22 表示部
24 操作部
26 通信部
28 記憶部
30 端末装置
32 表示画面
32A 文書画像
32B 文書画像
40 制御部
42 操作表示部
44 通信部
46 記憶部
50 印刷装置
52 記録媒体
60 文書解析部
62 情報分離部
64 文章区分部
65 文字数算出部
66 短文章/長文章カウント部
68 最大印刷幅取得部
70 印刷情報生成部
72 レイアウト決定部
74 イメージ配置部
80 ブロック数/幅設定部
W ブロック幅
Wd 表示画面幅
Wp 記録媒体幅
DESCRIPTION OF SYMBOLS 10 Information processing apparatus 20 Control part 22 Display part 24 Operation part 26 Communication part 28 Storage part 30 Terminal device 32 Display screen 32A Document image 32B Document image 40 Control part 42 Operation display part 44 Communication part 46 Storage part 50 Printing apparatus 52 Recording medium 60 Document Analysis Unit 62 Information Separation Unit 64 Text Classification Unit 65 Character Number Calculation Unit 66 Short Text / Long Text Count Unit 68 Maximum Print Width Acquisition Unit 70 Print Information Generation Unit 72 Layout Determination Unit 74 Image Placement Unit 80 Block Number / Width Setting Unit W Block width Wd Display screen width Wp Recording medium width

Claims (8)

文書情報に含まれる文字情報を一連の文字列である文章毎に区分する区分手段と、
前記区分手段で区分された複数の文章の各々の文字数を計測する計測手段と、
前記計測手段で計測された文字数が第1閾値以下の短文章の前記複数の文章に対する割合が第2閾値以上の場合に、前記文書情報を複数のブロックに分割し、少なくとも2以上のブロックが1枚の記録媒体の片面に印刷されるレイアウトで印刷情報を生成する生成手段と、
を備えた情報処理装置。
Classifying means for classifying character information included in document information for each sentence that is a series of character strings;
Measuring means for measuring the number of characters of each of the plurality of sentences divided by the dividing means;
When the ratio of the short sentences whose number of characters measured by the measuring means is equal to or less than a first threshold to the plurality of sentences is equal to or more than a second threshold, the document information is divided into a plurality of blocks, and at least two or more blocks are 1 Generating means for generating print information in a layout printed on one side of a sheet of recording medium;
An information processing apparatus comprising:
前記生成手段は、前記短文章の割合が第2閾値未満の場合に、前記文書情報を複数のブロックに分割せずに印刷情報を生成する、
請求項1に記載の情報処理装置。
The generating means generates print information without dividing the document information into a plurality of blocks when the ratio of the short sentences is less than a second threshold;
The information processing apparatus according to claim 1.
文書情報を提供する機器の表示画面の大きさを表す表示画面情報を前記文書情報と共に取得した場合に、前記記録媒体の印刷方向の幅と前記表示画面の幅とに基づいて、前記1枚の記録媒体の片面に印刷するブロック数を設定する設定手段を、さらに備えた、
請求項1または請求項2に記載の情報処理装置。
When the display screen information representing the size of the display screen of the device that provides the document information is acquired together with the document information, the one sheet is based on the width in the print direction of the recording medium and the width of the display screen. A setting means for setting the number of blocks to be printed on one side of the recording medium,
The information processing apparatus according to claim 1 or 2.
前記設定手段は、前記記録媒体の印刷方向の幅を前記表示画面の幅で除算して得られた商の整数部分の値を、前記1枚の記録媒体の片面に印刷するブロック数とする、
請求項3に記載の情報処理装置。
The setting means sets the value of the integer part of the quotient obtained by dividing the width in the printing direction of the recording medium by the width of the display screen as the number of blocks to be printed on one side of the one recording medium,
The information processing apparatus according to claim 3.
前記設定手段は、前記表示画面情報が取得されない場合に、予め定めたブロック数を前記1枚の記録媒体の片面に印刷するブロック数として設定する、
請求項3または請求項4に記載の情報処理装置。
The setting unit sets a predetermined number of blocks as the number of blocks to be printed on one side of the one recording medium when the display screen information is not acquired;
The information processing apparatus according to claim 3 or 4.
前記区分手段は、連続して改行が行われている箇所で文章を区切る、
請求項1から請求項5までの何れか1項に記載の情報処理装置。
The sorting means separates sentences at places where line breaks are continuously made,
The information processing apparatus according to any one of claims 1 to 5.
前記区分手段は、前記文字情報が文字位置情報を含む場合は、文字の書き出し位置が文字の書き終わり位置から連続した改行に相当する距離以上離れている箇所で文章を区切る、
請求項1から請求項5までの何れか1項に記載の情報処理装置。
When the character information includes character position information, the sorting means divides a sentence at a position where the character writing position is separated by a distance corresponding to a continuous line break from the character writing end position,
The information processing apparatus according to any one of claims 1 to 5.
コンピュータを、
文書情報に含まれる文字情報を一連の文字列である文章毎に区分する区分手段、
前記区分手段で区分された複数の文章の各々の文字数を計測する計測手段、
前記計測手段で計測された文字数が第1閾値以下の短文章の前記複数の文章に対する割合が第2閾値以上の場合に、前記文書情報を複数のブロックに分割し、少なくとも2以上のブロックが1枚の記録媒体の片面に印刷されるレイアウトで印刷情報を生成する生成手段、
として機能させるプログラム。
Computer
Classifying means for classifying character information included in document information into sentences that are a series of character strings,
Measuring means for measuring the number of characters of each of the plurality of sentences classified by the classifying means;
When the ratio of the short sentences whose number of characters measured by the measuring means is equal to or less than a first threshold to the plurality of sentences is equal to or more than a second threshold, the document information is divided into a plurality of blocks, and at least two or more blocks are 1 Generating means for generating print information in a layout printed on one side of a sheet of recording medium;
Program to function as.
JP2016135364A 2016-07-07 2016-07-07 Information processing device and program Pending JP2018007184A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016135364A JP2018007184A (en) 2016-07-07 2016-07-07 Information processing device and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016135364A JP2018007184A (en) 2016-07-07 2016-07-07 Information processing device and program

Publications (1)

Publication Number Publication Date
JP2018007184A true JP2018007184A (en) 2018-01-11

Family

ID=60946651

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016135364A Pending JP2018007184A (en) 2016-07-07 2016-07-07 Information processing device and program

Country Status (1)

Country Link
JP (1) JP2018007184A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110618795A (en) * 2018-06-19 2019-12-27 阿里巴巴集团控股有限公司 Printing processing method and device and electronic equipment
JP2020009229A (en) * 2018-07-10 2020-01-16 カシオ計算機株式会社 Print image creation device, program, and printing device
JP2020016683A (en) * 2018-07-23 2020-01-30 大日本印刷株式会社 Entry content analyzer and program
JP2021020316A (en) * 2019-07-24 2021-02-18 富士ゼロックス株式会社 Image processing device and information processing program

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110618795A (en) * 2018-06-19 2019-12-27 阿里巴巴集团控股有限公司 Printing processing method and device and electronic equipment
JP2020009229A (en) * 2018-07-10 2020-01-16 カシオ計算機株式会社 Print image creation device, program, and printing device
JP7139736B2 (en) 2018-07-10 2022-09-21 カシオ計算機株式会社 Printing system, printing layout creation device, printing device and program
JP2020016683A (en) * 2018-07-23 2020-01-30 大日本印刷株式会社 Entry content analyzer and program
JP7187863B2 (en) 2018-07-23 2022-12-13 大日本印刷株式会社 Entries analyzer and program
JP2021020316A (en) * 2019-07-24 2021-02-18 富士ゼロックス株式会社 Image processing device and information processing program
JP7318387B2 (en) 2019-07-24 2023-08-01 富士フイルムビジネスイノベーション株式会社 Image processing device, information processing program

Similar Documents

Publication Publication Date Title
JP2018007184A (en) Information processing device and program
JP2014146128A (en) Information processing apparatus, information processing system, information processing method, and program
WO2016037018A1 (en) Collecting annotations for a document by augmenting the document
JP5389241B1 (en) Electronic device and handwritten document processing method
AU2013374725B2 (en) Display control apparatus and program
EP2977865A1 (en) Information terminal, operating region control method, and operating region control program
WO2016037017A1 (en) Creating an annotation pane for a document by augmenting the document
CN102903094A (en) Method and device for rasterizing electronic documents
US9747326B2 (en) Non-transitory computer-readable recording medium that stores document evaluation program that evaluates consistency in document
JP6432449B2 (en) Information processing apparatus, information processing program, and information processing method
JP4310358B2 (en) Character scroll display device, character scroll display method, display control program, and recording medium
JP4046187B2 (en) Character scroll display device, character scroll display method, display control program, and recording medium
US20160209988A1 (en) Information Input Device, Control Method and Storage Medium
JP6160115B2 (en) Information processing apparatus, presentation material optimization method, and program
JP2011145904A (en) Information display device and program
JP2015191586A (en) image processing apparatus, image processing method, and program
JP5645481B2 (en) Apparatus, method, and program
JP4741916B2 (en) Image processing apparatus, image processing method, and computer-readable recording medium storing image processing program for executing the method
US20150277690A1 (en) Non-transitory storage medium storing display program and display device
JP2017534121A (en) Handwritten content classification method and device, and handwritten content editing device
JP2011113438A (en) Electronic book display device
JP2021111157A (en) Information processing device and information processing program
JP4281973B2 (en) Character scroll display device, character scroll display method, display control program, and recording medium
WO2018173337A1 (en) Information presentation device, information presentation method, and program
KR20090017188A (en) Method for inputting korean