Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6772002B2 - Information processing device, control method and program of information processing device - Google Patents
[go: Go Back, main page]

JP6772002B2 - Information processing device, control method and program of information processing device - Google Patents

Information processing device, control method and program of information processing device Download PDF

Info

Publication number
JP6772002B2
JP6772002B2 JP2016167137A JP2016167137A JP6772002B2 JP 6772002 B2 JP6772002 B2 JP 6772002B2 JP 2016167137 A JP2016167137 A JP 2016167137A JP 2016167137 A JP2016167137 A JP 2016167137A JP 6772002 B2 JP6772002 B2 JP 6772002B2
Authority
JP
Japan
Prior art keywords
page
column
stage
character string
information processing
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.)
Active
Application number
JP2016167137A
Other languages
Japanese (ja)
Other versions
JP2018036714A (en
Inventor
聡士 石津
聡士 石津
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 JP2016167137A priority Critical patent/JP6772002B2/en
Publication of JP2018036714A publication Critical patent/JP2018036714A/en
Application granted granted Critical
Publication of JP6772002B2 publication Critical patent/JP6772002B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)
  • Document Processing Apparatus (AREA)

Description

本発明は、文書を段組みでレイアウトすることができる情報処理装置、情報処理方法及びプログラムに関する。 The present invention relates to an information processing device, an information processing method, and a program capable of laying out documents in a stepped manner.

文書において文字列、写真、図等をレイアウトするにあたっては、複数段の段組みで文字列、写真、図等を配置することが行われている。また、ページ単位で文字のレイアウトを行い、奇数ページであるか偶数ページであるかによって、ページ番号の表示位置を指定して配置するものがある(特許文献1参照)。この特許文献1には、ページ内における画像の位置合わせを行う場合に、奇数ページ目と偶数ページ目とのそれぞれにおいて、ページ番号情報が略同一の位置に表示されるように、ページ内の画像位置を補正することが記載されている。 When laying out character strings, photographs, figures, etc. in a document, the character strings, photographs, figures, etc. are arranged in a plurality of columns. In addition, there is a method in which characters are laid out in page units and arranged by designating the display position of the page number depending on whether the page is an odd number page or an even number page (see Patent Document 1). In this patent document 1, when the image is aligned in the page, the image in the page is displayed so that the page number information is displayed at substantially the same position in each of the odd-numbered page and the even-numbered page. It is stated that the position is corrected.

特開2007−047925号公報JP-A-2007-047925

しかしながら、文書を段組みでレイアウトする場合、文書に含まれる文字列の文字数が多い場合には、文字列を1つの段に挿入するだけでなく、複数の段にまたがって挿入することが必要になる。また、文書に含まれる文字列の文字数に応じて、必要な段の数が異なる。このため、文書を段組みでレイアウトするユーザは、バランスがよく見えるように文字列を挿入するのに手間がかかっていた。より具体的には、文書の文字列が挿入されるページの配置によって、すなわちそのページが左ページであるか右ページであるかによって、バランスがよく見えるように文字列を段に挿入するための手間がかかっていた。 However, when laying out a document in columns, if the number of characters in the character string contained in the document is large, it is necessary not only to insert the character string in one column but also to insert it across multiple columns. Become. In addition, the required number of columns differs depending on the number of characters in the character string contained in the document. For this reason, the user who lays out the document in a column has trouble to insert the character string so that the balance can be seen well. More specifically, to insert strings into columns so that they look well-balanced, depending on the placement of the page on which the text in the document is inserted, that is, whether the page is a left page or a right page. It was a hassle.

本発明の目的は、文書を段組みでレイアウトする場合に、ユーザが手間をかけることなく、バランスがよく見えるように文字列を配置することができる情報処理装置、情報処理方法及びプログラムを提供することにある。 An object of the present invention is to provide an information processing device, an information processing method, and a program capable of arranging character strings so that a well-balanced appearance can be seen without any trouble by a user when laying out a document in a column. There is.

本発明の一観点によれば、文書を段組みでレイアウトする情報処理装置であって、前記文書のページの段組みの段に文字列を挿入する挿入手段と、前記ページが右ページであるか左ページであるかを判断する判断手段とを有し、前記挿入手段は、前記文書が左開きである場合の第1の処理及び前記文書が右開きである場合の第2の処理のうちの少なくとも一方を実行可能であり、前記挿入手段は、前記第1の処理において、前記ページが右ページであるときには、前記文字列が挿入される最終段が右端の段になるように前記文字列を挿入する先頭の段を決定して、前記先頭の段から前記文字列を挿入し、前記第2の処理において、前記ページが左ページであるときには、前記文字列が挿入される最終段が左端の段になるように前記文字列を挿入する先頭の段を決定して、前記先頭の段から前記文字列を挿入することを特徴とする情報処理装置が提供される。 According to one aspect of the present invention, it is an information processing apparatus that lays out a document in columns, and is an insertion means for inserting a character string in the columns of the pages of the document and whether the page is the right page. The insertion means has a determination means for determining whether or not the document is on the left page, and the insertion means is one of a first process when the document is left-opening and a second process when the document is right-opening. At least one of them can be executed, and in the first process, when the page is the right page, the insertion means inserts the character string so that the final stage into which the character string is inserted is the rightmost stage. The first column to be inserted is determined, the character string is inserted from the first column, and in the second process, when the page is the left page, the last column into which the character string is inserted is the left end. Provided is an information processing apparatus characterized in that a first stage into which the character string is inserted is determined so as to be a stage, and the character string is inserted from the first stage.

本発明の他の観点によれば、文書を段組みでレイアウトする情報処理装置の制御方法であって、前記文書のページの段組みの段に文字列を挿入する挿入ステップと、前記ページが右ページであるか左ページであるかを判断する判断ステップとを有し、前記挿入ステップは、前記文書が左開きである場合の第1の処理及び前記文書が右開きである場合の第2の処理のうちの少なくとも一方を実行可能であり、前記第1の処理において、前記ページが右ページであるときには、前記文字列が挿入される最終段が右端の段になるように前記文字列を挿入する先頭の段を決定して、前記先頭の段から前記文字列を挿入し、前記第2の処理において、前記ページが左ページであるときには、前記文字列が挿入される最終段が左端の段になるように前記文字列を挿入する先頭の段を決定して、前記先頭の段から前記文字列を挿入することを特徴とする情報処理装置の制御方法が提供される。
According to another aspect of the present invention, there is a control method of an information processing apparatus for laying out a document in columns, in which an insertion step of inserting a character string into the columns of a page of the document and the page on the right. It has a determination step of determining whether the document is a page or a left page, and in the insertion step , a first process when the document is left-opening and a second process when the document is right-opening. At least one of the processes can be executed, and in the first process, when the page is the right page, the character string is inserted so that the final column into which the character string is inserted is the rightmost column. The first column to be inserted is determined, the character string is inserted from the first column, and in the second process, when the page is the left page, the last column into which the character string is inserted is the left end. Provided is a control method of an information processing apparatus, characterized in that a first stage into which the character string is inserted is determined so as to be a stage, and the character string is inserted from the first stage.

本発明によれば、文書を段組みでレイアウトする場合に、ユーザが手間をかけることなく、バランスがよく見えるように文字列を配置することができる。 According to the present invention, when the documents are laid out in columns, the character strings can be arranged so that the user can see the balance well without any trouble.

本発明の一実施形態による情報処理装置の構成の一例を示すブロック図である。It is a block diagram which shows an example of the structure of the information processing apparatus by one Embodiment of this invention. 本発明の一実施形態による情報処理装置の画面の一例を示す図である。It is a figure which shows an example of the screen of the information processing apparatus by one Embodiment of this invention. 本発明の一実施形態による情報処理装置のデータ構成の一例を示す図である。It is a figure which shows an example of the data structure of the information processing apparatus by one Embodiment of this invention. 本発明の一実施形態による情報処理装置の処理フローの一例を示すフローチャート(その1)である。It is a flowchart (the 1) which shows an example of the processing flow of the information processing apparatus by one Embodiment of this invention. 本発明の一実施形態による情報処理装置の処理フローの一例を示すフローチャート(その2)である。It is a flowchart (the 2) which shows an example of the processing flow of the information processing apparatus by one Embodiment of this invention. 参考例による情報処理装置の画面の例を示す図である。It is a figure which shows the example of the screen of the information processing apparatus by a reference example.

[一実施形態]
以下、本発明の一実施形態による情報処理装置及び情報処理方法について図1乃至図6を参照して説明する。
[One Embodiment]
Hereinafter, the information processing apparatus and the information processing method according to the embodiment of the present invention will be described with reference to FIGS. 1 to 6.

まず、本実施形態による情報処理装置の構成について図1を用いて説明する。図1は、本実施形態による情報処理装置の構成の一例を示すブロック図である。
図1に示すように、本実施形態による情報処理装置100は、ディスプレイ101と、VRAM(Video Random Access Memory)102とを有する。また、情報処理装置100は、BMU(Bit Move Unit)103と、キーボード104と、PD(Pointing Device)105とを有する。また、情報処理装置100は、CPU(Central Processing Unit)106と、ROM(Read Only Memory)107と、RAM(Random Access Memory)108とを有する。さらに、情報処理装置100は、HDD(Hard Disk Drive)109と、FDD(Flexible Disk Drive)110と、ネットワークI/F(Interface)111と、バス112とを有する。
First, the configuration of the information processing apparatus according to the present embodiment will be described with reference to FIG. FIG. 1 is a block diagram showing an example of the configuration of the information processing apparatus according to the present embodiment.
As shown in FIG. 1, the information processing apparatus 100 according to the present embodiment includes a display 101 and a VRAM (Video Random Access Memory) 102. Further, the information processing device 100 includes a BMU (Bit Move Unit) 103, a keyboard 104, and a PD (Pointing Device) 105. Further, the information processing device 100 includes a CPU (Central Processing Unit) 106, a ROM (Read Only Memory) 107, and a RAM (Random Access Memory) 108. Further, the information processing device 100 includes an HDD (Hard Disk Drive) 109, an FDD (Flexible Disk Drive) 110, a network I / F (Interface) 111, and a bus 112.

表示部であるディスプレイ101には、例えば、文書のレイアウトを行うための画面が表示される。また、ディスプレイ101には、情報処理装置100の管理を行う、アイコン、メッセージ、メニューその他のユーザインタフェース情報が表示される。なお、ディスプレイ101としては、CRT(Cathode Ray Tube)ディスプレイ、液晶ディスプレイ等を用いることができる。 On the display 101, which is a display unit, for example, a screen for laying out a document is displayed. In addition, the display 101 displays icons, messages, menus, and other user interface information that manages the information processing device 100. As the display 101, a CRT (Cathode Ray Tube) display, a liquid crystal display, or the like can be used.

VRAM102には、ディスプレイ101に表示する画像データが格納される。このVRAM102に格納された画像データは、所定の規定に従ってディスプレイ101に転送され、これによりディスプレイ101に画像が表示される。 Image data to be displayed on the display 101 is stored in the VRAM 102. The image data stored in the VRAM 102 is transferred to the display 101 according to a predetermined regulation, whereby the image is displayed on the display 101.

BMU103は、例えば、メモリ間(例えば、VRAM102と他のメモリとの間)のデータ転送を制御する。また、BMU103は、メモリと各I/O(Input/Output)デバイス(例えば、ネットワークI/F111)との間のデータ転送を制御する。 The BMU 103 controls, for example, data transfer between memories (eg, between the VRAM 102 and another memory). The BMU 103 also controls data transfer between the memory and each I / O (Input / Output) device (eg, network I / F111).

キーボード104は、文字等を入力するための各種キーを有する。
PD105は、例えば、ディスプレイ101に表示されたアイコン、メニューその他のコンテンツを指示したり、オブジェクトをドラッグドロップ等で移動したりするために使用される。
CPU106は、ROM107、HDD109又はフレキシブルディスクに格納されたOS(Operating System)や、後述するプログラム等の制御プログラムに基づいて、文書のレイアウト処理を実行したり、各デバイスを制御したりする。
The keyboard 104 has various keys for inputting characters and the like.
The PD 105 is used, for example, for instructing icons, menus, and other contents displayed on the display 101, and for moving objects by dragging and dropping.
The CPU 106 executes document layout processing and controls each device based on an OS (Operating System) stored in a ROM 107, an HDD 109, or a flexible disk, or a control program such as a program described later.

ROM107は、各種制御プログラムやデータを保存する。
RAM108は、CPU106のワーク領域、エラー処理時のデータの退避領域、制御プログラムのロード領域等を有する。
HDD109は、情報処理装置100内で実行される各制御プログラムや一時保管したデータ等のデータを格納する。
FDD110は、フレキシブルディスクに記録された各種制御プログラムや各種データを、フレキシブルディスクから読み出す。
ネットワークI/F111は、他の情報処理装置やプリンタ等とネットワークを介して通信を行う。
The ROM 107 stores various control programs and data.
The RAM 108 has a work area of the CPU 106, a data save area at the time of error processing, a control program load area, and the like.
The HDD 109 stores data such as each control program executed in the information processing apparatus 100 and temporarily stored data.
The FDD 110 reads various control programs and various data recorded on the flexible disk from the flexible disk.
The network I / F 111 communicates with other information processing devices, printers, etc. via the network.

バス112は、アドレスバス、データバス及びコントロールバスを含む。バス112には、VRAM102、BMU103、キーボード104、PD105、CPU106、ROM107、RAM108、HDD109、FDD110、及びネットワークI/F111の各部が接続されている。バス112は、これら各部の間の信号の送受信に使用される。 Bus 112 includes an address bus, a data bus and a control bus. Each part of VRAM 102, BMU 103, keyboard 104, PD 105, CPU 106, ROM 107, RAM 108, HDD 109, FDD 110, and network I / F 111 is connected to the bus 112. Bus 112 is used to send and receive signals between these parts.

CPU106に対する制御プログラムの提供は、ROM107、HDD109又はFDD110から行うこともできるし、ネットワークI/F111を介してネットワーク経由で他の情報処理装置等から行うこともできる。
こうして、本実施形態による情報処理装置100が構成されている。
The control program for the CPU 106 can be provided from the ROM 107, the HDD 109, or the FDD 110, or can be provided from another information processing device or the like via the network via the network I / F111.
In this way, the information processing device 100 according to the present embodiment is configured.

上述のように、文書を複数段の段組みでレイアウトする場合、文書の文字列が挿入されるページが左ページであるか右ページであるかによって、バランスよく見えるように文字列を段に挿入するための手間がかかっていた。以下、この点について図6を用いて説明する。図6は、参考例による情報処理装置の画面の例を示す図であり、左開き、左横書きの文書を2段組みでレイアウトする場合の画面を示している。 As mentioned above, when laying out a document in multiple columns, the character strings are inserted in the columns so that they look well-balanced depending on whether the page on which the character string of the document is inserted is the left page or the right page. It took time and effort to do it. Hereinafter, this point will be described with reference to FIG. FIG. 6 is a diagram showing an example of a screen of an information processing apparatus according to a reference example, and shows a screen when a left-opening, left-horizontally written document is laid out in two columns.

図6(a)は、2段組みのレイアウトにおいて文字列が流し込まれた状態を示す図である。図6(a)に示すように、参考例による情報処理装置のディスプレイに表示される画面600には、左ページのレイアウトを行うためのレイアウト領域601と、右ページのレイアウトを行うためのレイアウト領域602とが表示されている。レイアウト領域601、602は、レイアウトを行う左右のページのとおりに、それぞれ画面600の左側及び右側に配置されている。レイアウト領域601は、左ページにおける2段組みのレイアウトを行うことが可能になっている。レイアウト領域602は、右ページにおける2段組みのレイアウトを行うことが可能になっている。 FIG. 6A is a diagram showing a state in which a character string is poured in a two-tiered layout. As shown in FIG. 6A, the screen 600 displayed on the display of the information processing apparatus according to the reference example has a layout area 601 for laying out the left page and a layout area 601 for laying out the right page. 602 and is displayed. The layout areas 601 and 602 are arranged on the left side and the right side of the screen 600, respectively, as shown on the left and right pages for layout. The layout area 601 is capable of performing a two-tiered layout on the left page. The layout area 602 is capable of performing a two-tiered layout on the right page.

左ページのレイアウト領域601は、左ページの2段組みの2つの段のうちの左側の段603と右側の段604とを含んでいる。また、右ページのレイアウト領域602は、右ページの2段組みの2つの段のうちの左側の段605と右側の段606とを含んでいる。段603、604、605、606は、それぞれ文字列を流し込むことができるテキスト枠になっている。 The layout area 601 on the left page includes the left side 603 and the right side 604 of the two tiers of the left page. Further, the layout area 602 on the right page includes the left column 605 and the right column 606 of the two columns of the two-stage set on the right page. The columns 603, 604, 605, and 606 are text frames into which character strings can be inserted.

一般的に、段組みの段への文字列の流し込みでは、図6(a)に示すように、左右のページに関係なく、レイアウト領域601においてもレイアウト領域602においても、それぞれ左側の段603、605から文字列が流し込まれる。 In general, in the flow of character strings into the columns of a column, as shown in FIG. 6A, in the layout area 601 and the layout area 602, the left column 603, respectively, regardless of the left and right pages. A character string is poured from 605.

一方、ページのレイアウトによっては、図6(a)に示すように左側の段からではなく、右側の段から文字列が流し込まれたように見えるようにする必要がある場合がある。例えば、2段組みのレイアウトにおいて、右ページでは、そのページに合わせて右側の段から流し込まれたように見えるようにする必要がありうる。 On the other hand, depending on the layout of the page, it may be necessary to make it appear that the character string is poured from the right side column instead of the left side column as shown in FIG. 6A. For example, in a two-tiered layout, it may be necessary for the right page to appear to be poured from the right tier to match the page.

図6(b)は、2段組みのレイアウトにおいてページに合わせて右側の段から文字列が流し込まれたように見えるようにした状態を示す図である。図6(b)に示すように、左ページのレイアウト領域601は、図6(a)に示す場合と同様である。一方、右ページのレイアウト領域602は、右ページの2段組みの2つの段のうちの左側の段607と右側の段608とを含んでいる。段607、608も、それぞれ文字列を流し込むことができるテキスト枠になっている。 FIG. 6B is a diagram showing a state in which the character string is made to appear to be poured from the right side column according to the page in the two-stage layout. As shown in FIG. 6B, the layout area 601 on the left page is the same as in the case shown in FIG. 6A. On the other hand, the layout area 602 on the right page includes the left column 607 and the right column 608 of the two columns of the two columns on the right page. The columns 607 and 608 are also text frames into which character strings can be inserted.

右ページのレイアウト領域602において、左側の段607には、最上行から最下行にわたって多数の改行コードが入力されている。このように左側の段607に改行コードが入力されていることで、文書において表示されるべき文字列が、右側の段608から流し込まれたように見えるように文書が成形されている。 In the layout area 602 on the right page, a large number of line feed codes are input from the top line to the bottom line in the left column 607. By inputting the line feed code in the left column 607 in this way, the document is shaped so that the character string to be displayed in the document appears to have flowed from the right column 608.

しかしながら、文書のレイアウトでは、図6(b)に示すように文書を成形した後に、ページの削除、挿入、移動等により左右のページが変わるページ単位の操作が行われることがある。図6(b)に示すように多数の改行コードの入力により右側の段から流し込まれたように見えるようにしていたのでは、上記のようなページ単位の操作が行われると、そのレイアウトが崩れてしまうことがある。 However, in the layout of a document, after the document is formed as shown in FIG. 6B, a page-by-page operation in which the left and right pages are changed due to page deletion, insertion, movement, or the like may be performed. As shown in Fig. 6 (b), if a large number of line feed codes were input to make it appear as if it had been poured from the right column, the layout would collapse when the above page-based operations were performed. It may end up.

図6(c)は、図6(b)で示すように成形した後に、ページの削除、挿入、移動等により左右のページが変わるページ単位の操作を行った状態を示す図である。図6(c)に示すように、画面600には、左右のページが変わるページ単位の操作後のレイアウト領域609、610が表示されている。 FIG. 6 (c) is a diagram showing a state in which the left and right pages are changed in page units due to page deletion, insertion, movement, etc. after molding as shown in FIG. 6 (b). As shown in FIG. 6C, the screen 600 displays the layout areas 609 and 610 after the operation for each page in which the left and right pages are changed.

レイアウト領域609は、左ページのレイアウト領域であり、ページ単位操作により図6(b)に示すレイアウト領域602が右ページから左ページに移動したものに対応している。レイアウト領域609は、2段組みの2つの段のうちの左側の段611と右側の段612とを含んでいる。左側の段611は、図6(b)に示す右ページの左側の段607に対応している。右側の段612は、図6(b)に示す右ページの右側の段608に対応している。 The layout area 609 is a layout area of the left page, and corresponds to a layout area 602 shown in FIG. 6B moved from the right page to the left page by a page unit operation. The layout area 609 includes the left side 611 and the right side 612 of the two stages of the two-stage set. The left column 611 corresponds to the left column 607 on the right page shown in FIG. 6 (b). The right column 612 corresponds to the right column 608 on the right page shown in FIG. 6 (b).

レイアウト領域610は、右ページのレイアウト領域であり、ページ単位操作により新たにレイアウト領域609と見開きで組になるものである。レイアウト領域610は、2段組みの2つの段のうちの左側の段613と右側の段614とを含んでいる。段613、614も、それぞれ文字列を流し込むことができるテキスト枠になっており、文字列が流し込まれた状態になっている。 The layout area 610 is a layout area of the right page, and is newly paired with the layout area 609 by a page unit operation in a spread. The layout area 610 includes the left side 613 and the right side 614 of the two stages of the two-stage set. The columns 613 and 614 are also text frames into which character strings can be inserted, and the character strings are in a state of being inserted.

上記図6(a)に示すように、一般的に、2段組みにおける文字列の流し込みでは、左右のページに関係なく左側の段から文字列が流し込まれる。このため、右ページにおいて、右側の段から流し込まれたように見えるようにするためには、図6(b)に示すように、右ページの左側の段607において、多数の改行コードを入力する必要があった。 As shown in FIG. 6A, in general, in the flow of character strings in a two-stage set, the character strings are flowed from the left column regardless of the left and right pages. Therefore, in order to make the right page look like it has been poured from the right column, a large number of line feed codes are input in the left column 607 of the right page as shown in FIG. 6 (b). I needed it.

しかしながら、図6(b)に示すように文書を成形した後に、ページ単位操作により図6(b)に示すレイアウト領域602が右ページから左ページに移動することがある。この場合には、左ページに移動したレイアウト領域609の左側の段611に成形のための改行がそのまま残っているため、それらの改行コードを削除する必要があった。 However, after the document is molded as shown in FIG. 6B, the layout area 602 shown in FIG. 6B may be moved from the right page to the left page by the page unit operation. In this case, since the line breaks for molding remain as they are in the left column 611 of the layout area 609 moved to the left page, it is necessary to delete those line break codes.

また、新たに右ページのレイアウト領域となったレイアウト領域610では、右側の段から流し込まれたように見えるようにするために、図6(b)に示す場合と同様にして、多数の改行を入力する必要があった。 Further, in the layout area 610, which is a new layout area on the right page, a large number of line breaks are inserted in the same manner as in the case shown in FIG. I had to enter it.

さらには、不図示であるが、文字列のフォントサイズや行間などの書式を変更すると、1つの段に流し込むことができる行数も変更されるため、行数の変更に応じて改行コードを増やしたり削除したりする必要があった。 Furthermore, although not shown, if the format such as the font size and line spacing of the character string is changed, the number of lines that can be flowed into one column is also changed, so the line feed code is increased according to the change in the number of lines. Or had to be deleted.

これに対して、本実施形態による情報処理装置100は、ユーザが手間をかけることなく、バランスがよく見えるように文字列を配置することを実現するものである。以下、本実施形態による情報処理装置100による文字列の配置について詳述する。 On the other hand, the information processing apparatus 100 according to the present embodiment realizes that the character strings are arranged so that the user can see the balance well without any trouble. Hereinafter, the arrangement of the character strings by the information processing apparatus 100 according to the present embodiment will be described in detail.

図2は、本実施形態による情報処理装置100の画面の例を示す図であり、左開き、左横書きの文書を2段組み又は3段組みでレイアウトする場合の画面を示している。図2に示す各画面は、ディスプレイ101に表示される。 FIG. 2 is a diagram showing an example of a screen of the information processing apparatus 100 according to the present embodiment, and shows a screen when a left-opening, left-horizontally written document is laid out in a two-stage or three-stage structure. Each screen shown in FIG. 2 is displayed on the display 101.

図2(a)は、2段組みのレイアウトで文字列が流し込まれた状態を示す図である。図2(a)に示すように、本実施形態による情報処理装置100のディスプレイ101に表示される画面200には、左ページのレイアウトを行うためのレイアウト領域201と、右ページのレイアウトを行うためのレイアウト領域202とが表示されている。レイアウト領域201、202は、レイアウトを行う左右のページのとおりに、それぞれ画面200の左側及び右側に配置されている。レイアウト領域201は、左ページにおける2段組みのレイアウトを行うことが可能になっている。レイアウト領域202は、右ページにおける2段組みのレイアウトを行うことが可能になっている。 FIG. 2A is a diagram showing a state in which character strings are poured in a two-stage layout. As shown in FIG. 2A, the screen 200 displayed on the display 101 of the information processing apparatus 100 according to the present embodiment has a layout area 201 for laying out the left page and a layout area 201 for laying out the right page. Layout area 202 and is displayed. The layout areas 201 and 202 are arranged on the left side and the right side of the screen 200, respectively, as shown on the left and right pages for layout. The layout area 201 is capable of performing a two-tiered layout on the left page. The layout area 202 is capable of performing a two-tiered layout on the right page.

左ページのレイアウト領域201は、左ページの2段組みの2つの段のうちの左側の段203と右側の段204とを含んでいる。また、右ページのレイアウト領域202は、右ページの2段組みの2つの段のうちの左側の段205と右側の段206とを含んでいる。段203、204、205、206は、それぞれ文字列を流し込むことができるテキスト枠になっている。 The layout area 201 on the left page includes the left column 203 and the right column 204 of the two columns in the two-column set on the left page. Further, the layout area 202 on the right page includes the left column 205 and the right column 206 of the two columns of the two columns on the right page. Columns 203, 204, 205, and 206 are text frames into which character strings can be inserted.

左ページのレイアウト領域201においては、左側の段203から文字列が流し込まれている。一方、右ページのレイアウト領域202においては、左側の段205よりも先に右側の段206に文字列が流し込まれている。 In the layout area 201 on the left page, a character string is poured from the left column 203. On the other hand, in the layout area 202 on the right page, the character string is poured into the right column 206 before the left column 205.

図2(b)は、2段組みのレイアウトで2段にまたがって文字列が流し込まれた状態を示す図である。図2(b)に示すように、左ページのレイアウト領域201は、図2(a)に示す場合と同様である。一方、右ページのレイアウト領域202は、右ページの2段組みの2つの段のうちの左側の段207と右側の段208とを含んでいる。段207、208も、それぞれ文字列を流し込むことができるテキスト枠になっている。 FIG. 2B is a diagram showing a state in which a character string is poured over two stages in a two-stage layout. As shown in FIG. 2B, the layout area 201 on the left page is the same as in the case shown in FIG. 2A. On the other hand, the layout area 202 on the right page includes the left column 207 and the right column 208 of the two columns of the two columns on the right page. Columns 207 and 208 are also text frames into which character strings can be inserted.

右ページのレイアウト領域202においては、左側の段207から右側の段208にまたがって文字列が流し込まれている。右側の段208には、左側の段207から溢れた文字列が流し込まれている。 In the layout area 202 on the right page, a character string is poured from the left column 207 to the right column 208. The character string overflowing from the left column 207 is poured into the right column 208.

図2(c)は、3段組みのレイアウトで2段にまたがって文字列が流し込まれた状態を示す図である。図2(c)に示すように、画面200には、左ページのレイアウトを行うためのレイアウト領域209と、右ページのレイアウトを行うためのレイアウト領域210とが表示されている。レイアウト領域209、210は、レイアウトを行う左右のページのとおりに、それぞれ画面200の左側及び右側に配置されている。レイアウト領域209は、左ページにおける3段組みのレイアウトを行うことが可能になっている。レイアウト領域210は、右ページにおける3段組みのレイアウトを行うことが可能になっている。 FIG. 2C is a diagram showing a state in which a character string is poured over two stages in a three-stage layout. As shown in FIG. 2C, the screen 200 displays a layout area 209 for laying out the left page and a layout area 210 for laying out the right page. The layout areas 209 and 210 are arranged on the left side and the right side of the screen 200, respectively, as shown on the left and right pages for layout. The layout area 209 is capable of performing a three-tiered layout on the left page. The layout area 210 is capable of performing a three-tiered layout on the right page.

左ページのレイアウト領域209は、左ページの3段組みの3つの段のうちの左側の段211と中央の段212と右側の段213とを含んでいる。また、右ページのレイアウト領域210は、右ページの3段組みの3つの段のうちの左側の段214と中央の段215と右側の段216とを含んでいる。段211、212、213、214、215、216は、それぞれ文字列を流し込むことができるテキスト枠になっている。 The layout area 209 on the left page includes the left side tier 211, the center tier 212, and the right side tier 213 out of the three tiers of the left page. Further, the layout area 210 on the right page includes the left side column 214, the center stage 215, and the right side stage 216 among the three stages of the three-stage set on the right page. The columns 211, 212, 213, 214, 215, and 216 are text frames into which character strings can be inserted.

左ページのレイアウト領域209においては、左側の段211から中央の段212にまたがって文字列が流し込まれている。中央の段212には、左側の段211から溢れた文字列が流し込まれている。 In the layout area 209 on the left page, a character string is poured from the left column 211 to the center column 212. The character string overflowing from the left column 211 is poured into the central column 212.

一方、右ページのレイアウト領域210においては、中央の段215から右側の段216にまたがって文字列が流し込まれている。右側の段216には、中央の段215から溢れた文字列が流し込まれている。 On the other hand, in the layout area 210 on the right page, the character string is poured from the central column 215 to the right column 216. The character string overflowing from the central column 215 is poured into the column 216 on the right side.

本実施形態では、後述するように、レイアウトを行うページが奇数ページであるか偶数ページであるかを判断して、そのレイアウトを行うページが左右ページのいずれかであるかを判断する。そして、左ページである場合には、左側の段から文字列を流し込む。一方、右ページである場合には、そのページ内の段のうちの文字列が流し込まれる最終段が右端の段になるように文字列の流し込みを行う。これにより、ユーザはページに合わせて右側の段から流し込まれたように見えるようにするための改行コードを多数入力する必要がなくなり、ページ単位操作や書式の変更等に応じてその都度調整をする必要がなくなる。 In the present embodiment, as will be described later, it is determined whether the page to be laid out is an odd number page or an even numbered page, and it is determined whether the page to be laid out is either a left or right page. Then, in the case of the left page, the character string is poured from the left column. On the other hand, in the case of the right page, the character string is flowed so that the final line in which the character string is flowed is the rightmost column. This eliminates the need for the user to enter a large number of line feed codes to make it appear as if it was poured from the right column according to the page, and adjusts each time according to page unit operations or format changes. No need.

次に、本実施形態による情報処理装置100により文書のレイアウトを行う際のページデータについて図3を用いて説明する。図3は、本実施形態による情報処理装置100のページデータのデータ構成の一例を示す図である。 Next, the page data when the document is laid out by the information processing apparatus 100 according to the present embodiment will be described with reference to FIG. FIG. 3 is a diagram showing an example of a data structure of page data of the information processing apparatus 100 according to the present embodiment.

図3に示すように、ページデータ300は、ページデータID(Identification)301と、ページ番号302と、段組み数303と、文字列304とを含んでいる。ページデータ300は、対応するページごとに作成されている。 As shown in FIG. 3, the page data 300 includes a page data ID (Identification) 301, a page number 302, a number of columns 303, and a character string 304. The page data 300 is created for each corresponding page.

ページデータID301は、情報処理装置100で管理するためにページデータ300ごとに割り当てたユニークなIDである。 The page data ID 301 is a unique ID assigned to each page data 300 for management by the information processing apparatus 100.

ページ番号302は、ページデータ300が対応するページのページ番号である。ページ単位の操作が行われると、ページ番号302を調整してページとページデータ300との対応関係を維持する。これにより、後述する文字列304等に影響を与えずにページ単位の操作を行うことができる。 The page number 302 is the page number of the page corresponding to the page data 300. When the page-based operation is performed, the page number 302 is adjusted to maintain the correspondence between the page and the page data 300. As a result, it is possible to perform page-by-page operations without affecting the character string 304 or the like described later.

段組み数303は、ページデータ300が対応するページの段組みの数である。例えば図2(a)又は図2(b)に示す場合は、各ページの段組みは2段組みなので、各ページに対応するページデータの段組み数303として2が設定される。また、例えば図2(c)に示す場合は、各ページの段組みは3段組みなので、各ページに対応するページデータの段組み数として3が設定される。なお、段組み数303は、後述する段組み情報に関するリレーション情報305のレコード数分と同じ値となるので、省略することもできる。 The number of columns 303 is the number of columns of the page corresponding to the page data 300. For example, in the case shown in FIG. 2A or FIG. 2B, since the columns of each page are two columns, 2 is set as the number of columns 303 of the page data corresponding to each page. Further, for example, in the case of FIG. 2C, since the columns of each page are three columns, 3 is set as the number of columns of page data corresponding to each page. Since the number of stages 303 is the same as the number of records of the relation information 305 related to the stage information described later, it can be omitted.

文字列304は、ページデータ300が対応するページに配置されるべき文字列である。文字列304は、例えばキーボード104の操作によりユーザにより入力される。この文字列304は、後述する段組み情報に関するリレーション情報305に基づいて、対応するページの段に流し込まれる。 The character string 304 is a character string to be arranged on the page to which the page data 300 corresponds. The character string 304 is input by the user, for example, by operating the keyboard 104. This character string 304 is poured into the column of the corresponding page based on the relationship information 305 related to the column information described later.

対応するページごとに作成されたページデータ300のそれぞれには、その段組み数303の値と同じレコード数のリレーション情報305が関連付けられている。リレーション情報305は、対応するページの段組み情報に関するものである。1つのページデータ300の段組み数303の値がn(ただし、nは正の整数)である場合、そのページデータ300には、レコード数nのリレーション情報305が関連付けられている。例えば1段組みのページの場合は、対応するページデータ300に関連付けられたリレーション情報305は、1レコード存在する。また、例えば図2(c)示す場合は、各ページの段組みは3段組みなので、対応するページデータ300のそれぞれに関連付けられたリレーション情報305は、3レコード存在する。なお、本実施形態では、ページデータ300の段組み数303の値nは、通常、2以上の整数である。 Each of the page data 300 created for each corresponding page is associated with the relation information 305 having the same number of records as the value of the number of columns 303. The relation information 305 relates to the column information of the corresponding page. When the value of the number of columns 303 of one page data 300 is n (where n is a positive integer), the page data 300 is associated with the relation information 305 having the number of records n. For example, in the case of a one-column page, one record of the relation information 305 associated with the corresponding page data 300 exists. Further, for example, in the case of FIG. 2C, since the columns of each page are three columns, there are three records of the relation information 305 associated with each of the corresponding page data 300. In the present embodiment, the value n of the number of columns 303 of the page data 300 is usually an integer of 2 or more.

リレーション情報305のそれぞれは、ページデータID306と、段組み管理番号307と、位置情報308と、サイズ情報309と、書式情報310とを含んでいる。
ページデータID306は、リレーション情報305が関連付けられたページデータ300のページデータID301と一致するIDである。
段組み管理番号307は、左右ページのうちの片側ページにおける段の位置を特定するための番号であり、片側ページ内の左からの段の順番を示す番号である。例えば図2(a)に示す段203、205、図2(b)に示す段207、及び図2(c)に示す段211、214はそれぞれ2段組み又は3段組みのページの左側になるので、それぞれについての段組み管理番号は1となる。また、例えば図2(c)に示す段213、216はそれぞれ3段組みのページの右側になるので、それぞれについての段組み管理番号は3となる。
位置情報308は、段組みの段のページ内の位置に関する情報である。
サイズ情報309は、段組みの段のページ内のサイズに関する情報である。
書式情報310は、段組みの段の書式に関する情報であり、例えばフォントサイズや行間等の書式情報である。
Each of the relation information 305 includes page data ID 306, step management number 307, position information 308, size information 309, and format information 310.
The page data ID 306 is an ID that matches the page data ID 301 of the page data 300 with which the relation information 305 is associated.
The column structure management number 307 is a number for specifying the position of the column on one side page of the left and right pages, and is a number indicating the order of the columns from the left in the one side page. For example, the stages 203 and 205 shown in FIG. 2A, the stages 207 shown in FIG. 2B, and the stages 211 and 214 shown in FIG. 2C are on the left side of the two-stage or three-stage page, respectively. Therefore, the step management number for each is 1. Further, for example, since the columns 213 and 216 shown in FIG. 2C are on the right side of the page of the three-column set, the step-set management number for each is 3.
The position information 308 is information regarding the position in the page of the column of the column.
The size information 309 is information about the size in the page of the column of the column.
The format information 310 is information related to the format of the columns of the column, and is, for example, format information such as font size and line spacing.

本実施形態による情報処理装置100のCPU106は、上記のページデータ300及びこれに関連付けられたリレーション情報305を用いて文書のレイアウト処理を実行する。ページデータ300及びリレーション情報305は、例えばHDD109に格納されており、文書のレイアウト処理に際して、CPU106により読み出されて取得される。 The CPU 106 of the information processing apparatus 100 according to the present embodiment executes a document layout process using the page data 300 and the relation information 305 associated with the page data 300. The page data 300 and the relation information 305 are stored in the HDD 109, for example, and are read and acquired by the CPU 106 during the document layout processing.

次に、本実施形態による情報処理装置100による情報処理方法について図4及び図5を用いて説明する。 Next, the information processing method by the information processing apparatus 100 according to the present embodiment will be described with reference to FIGS. 4 and 5.

図4は、本実施形態による情報処理装置100の処理フローの一例を示すフローチャートである。本処理フローは、文書であるブックの編集において、各ページで文字列が入力されるときに実行されるものであり、ページ単位で段組みの段に文字列を流し込んで入力するものである。編集の対象であるブックは、例えば、左開き、左横書きのものであり、さらに段組みでレイアウトすべきものである。 FIG. 4 is a flowchart showing an example of the processing flow of the information processing apparatus 100 according to the present embodiment. This processing flow is executed when a character string is input on each page in editing a book which is a document, and the character string is input by pouring the character string into the column of the column for each page. The book to be edited is, for example, left-opening, left-horizontal writing, and should be laid out in columns.

まず、ステップS401にて、CPU106は、文字列の入力対象のページのページデータ300を取得する。入力対象のページは、ディスプレイ101に表示されており、選択状態にあるページである。ページデータ300は、例えば、上記図3に示すページ番号302等のほか、ブックが左右どちら開きかを示す情報等の入力対象ページの配置を判断するのに必要な情報を有する。 First, in step S401, the CPU 106 acquires the page data 300 of the page to which the character string is input. The page to be input is the page displayed on the display 101 and in the selected state. The page data 300 has, for example, page numbers 302 and the like shown in FIG. 3, as well as information necessary for determining the arrangement of input target pages such as information indicating whether the book is open to the left or right.

次いで、ステップS402にて、CPU106は、判断手段として機能し、入力対象のページの配置を判断する。本実施形態では、ブックが左開きである場合について説明し、入力対象のページの配置の判断として、入力対象のページが左ページであるか否かを判断する。例えば、ページ番号が奇数であるか偶数であるかの情報とページが右ページであるか左ページであるかの情報とを予め対応付けておき、ページ番号が奇数であるか偶数であるかの情報に基づき、入力対象のページが左ページであるか否かを判断することができる。そして、ページ番号が奇数であれば右ページ、偶数であれば左ページであると判断するものとする。 Next, in step S402, the CPU 106 functions as a determination means and determines the arrangement of pages to be input. In the present embodiment, a case where the book is open to the left will be described, and whether or not the page to be input is the left page is determined as the arrangement of the pages to be input. For example, the information on whether the page number is odd or even and the information on whether the page is the right page or the left page are associated in advance, and whether the page number is odd or even. Based on the information, it is possible to determine whether or not the page to be input is the left page. Then, if the page number is odd, it is determined to be the right page, and if it is even, it is determined to be the left page.

入力対象のページが左ページであると判断した場合(ステップS402でYes)、CPU106は、ステップS403に処理を進める。一方、入力対象のページが左ページでない、すなわち右ページであると判断した場合(ステップS402でNo)、CPU106は、ステップS405に処理を進める。 If it is determined that the page to be input is the left page (Yes in step S402), the CPU 106 proceeds to step S403. On the other hand, when it is determined that the page to be input is not the left page, that is, the right page (No in step S402), the CPU 106 proceeds to the process in step S405.

ステップS403にて、CPU106は、ユーザの操作に応答して文字列304が入力されているか否かを判断する。
文字列304が入力されていれば(ステップS403でYes)、CPU106は、流し込み手段として機能し、順次、入力される文字列304を、段組み管理番号307の順番に従って左ページの各段へ流し込んで入力する(ステップS404)。こうして、CPU106は、左ページであると判断したページについて、左端の段から文字列304を流し込む。これにより、左ページにおいて、文字列304は、左端の段から順に挿入されて表示されることとなる。そして、文字列304の入力が終了すれば(ステップS403でNo)、CPU106は、本処理フローを終了する。
In step S403, the CPU 106 determines whether or not the character string 304 is input in response to the user's operation.
If the character string 304 is input (Yes in step S403), the CPU 106 functions as a pouring means, and sequentially pours the input character string 304 into each stage on the left page in the order of the stage structure management number 307. (Step S404). In this way, the CPU 106 flows the character string 304 from the leftmost column on the page determined to be the left page. As a result, on the left page, the character string 304 is inserted and displayed in order from the leftmost column. Then, when the input of the character string 304 is completed (No in step S403), the CPU 106 ends the main processing flow.

なお、左ページにおいて、入力された文字列304の文字数が、すべての段に入力可能な文字数に達した場合、CPU106は、本処理フローを終了する。その場合は、ページから文字が溢れる旨のメッセージを表示する等して、入力可能な文字数に達したことをユーザに通知してもよい。 When the number of characters in the input character string 304 on the left page reaches the number of characters that can be input in all the columns, the CPU 106 ends this processing flow. In that case, the user may be notified that the number of characters that can be input has been reached, such as by displaying a message that the characters overflow from the page.

一方、入力対象のページが右ページであると判断した場合(ステップS402でNo)、ステップS405にて、CPU106は、ページ内の段組み管理番号307の最大値を変数Nに設定する。 On the other hand, when it is determined that the page to be input is the right page (No in step S402), in step S405, the CPU 106 sets the maximum value of the column structure management number 307 in the page in the variable N.

次いで、ステップS406にて、CPU106は、ユーザの操作に応答して文字列304が入力されているか否かを判断する。 Next, in step S406, the CPU 106 determines whether or not the character string 304 is input in response to the user's operation.

文字列304が入力されていれば(ステップS406でYes)、CPU106は、流し込み手段として機能し、順次、入力される文字列304を、右ページにおける段組み管理番号307が「N」の段に流し込んで入力する(ステップS407)。これにより、右ページにおいて、まずは、文字列304の先頭が、右端の段から挿入されて表示されることとなる。 If the character string 304 is input (Yes in step S406), the CPU 106 functions as a pouring means, and sequentially inputs the character string 304 to the stage where the column management number 307 on the right page is "N". It is poured and input (step S407). As a result, on the right page, the beginning of the character string 304 is first inserted and displayed from the rightmost column.

次いで、ステップS408にて、CPU106は、入力されている文字列304の文字数が、入力済みの段に入力可能な文字数の合計に達したか否かを判断する。ここで、入力済みの段とは、段組み管理番号307が「N」の段から、段組み管理番号307が「ページ内の段組み管理番号307の最大値」の段までの段のことである。段組み管理番号307が「ページ内の段組み管理番号307の最大値」の段は、右ページにおける右端の段である。 Next, in step S408, the CPU 106 determines whether or not the number of characters in the input character string 304 has reached the total number of characters that can be input in the input column. Here, the entered columns are the columns from the column in which the column management number 307 is "N" to the column in which the column management number 307 is the "maximum value of the column management number 307 in the page". is there. The stage in which the stage management number 307 is "the maximum value of the stage management number 307 in the page" is the rightmost stage on the right page.

入力されている文字列304の文字数が、入力済みの段に入力可能な文字数に達したと判断すると(S408でYes)、CPU106は、変数Nから1を減算し(ステップS409)、ステップS406に戻る。なお、入力されている文字列304の数が、入力済みの段に入力可能な文字数に達していないと判断すると(S408でNo)、CPU106は、そのままステップS406に戻る。 When it is determined that the number of characters in the input character string 304 has reached the number of characters that can be input in the input column (Yes in S408), the CPU 106 subtracts 1 from the variable N (step S409) and proceeds to step S406. Return. If it is determined that the number of input character strings 304 does not reach the number of characters that can be input in the input column (No in S408), the CPU 106 returns to step S406 as it is.

次いで、文字列304の入力が継続していると判断すると(S406でYes)、CPU106は、文字列304の先頭が、段組み管理番号307が「N」の段になるようにして文字列304を順に入力する(ステップS407)。ここで、CPU106は、段組み管理番号307の順番に従って、段組み管理番号307が「N」の段から右端の段までに、入力される文字列304を流し込んで入力する。CPU106は、文字列304の入力が終了するまで、上記のステップS407、S408、S409を繰り返して実行する。これにより、右ページにおいて、文字列304がページの右寄りに挿入されて表示されることとなる。そして、文字列304の入力が終了すれば(S408でNo)、CPU106は、本処理フローを終了する。こうして、CPU106は、右ページであると判断したページについて、文字列304が流し込まれる最終段が右端の段になるように文字列304を流し込む先頭の段を決定して、先頭の段から文字列304を流し込む。 Next, when it is determined that the input of the character string 304 is continuing (Yes in S406), the CPU 106 sets the beginning of the character string 304 to the column of "N" and the column structure management number 307 is the column 304. Are input in order (step S407). Here, the CPU 106 inputs the character string 304 to be input from the stage where the stage structure control number 307 is "N" to the rightmost stage according to the order of the stage structure control number 307. The CPU 106 repeats the above steps S407, S408, and S409 until the input of the character string 304 is completed. As a result, on the right page, the character string 304 is inserted and displayed on the right side of the page. Then, when the input of the character string 304 is completed (No in S408), the CPU 106 ends the main processing flow. In this way, the CPU 106 determines the first row in which the character string 304 is poured so that the final row in which the character string 304 is poured is the rightmost row for the page determined to be the right page, and the character string starts from the first row. Pour 304.

なお、右ページにおいて、入力された文字列304の文字数が、すべての段に入力可能な文字数に達した場合、CPU106は、本処理フローを終了する。その場合は、ページから文字が溢れる旨のメッセージを表示する等して、入力可能な文字数に達したことをユーザに通知してもよい。 When the number of characters in the input character string 304 on the right page reaches the number of characters that can be input in all the columns, the CPU 106 ends this processing flow. In that case, the user may be notified that the number of characters that can be input has been reached, such as by displaying a message that the characters overflow from the page.

上述のようにすることで、ブックのページに文字列を流し込んで入力する場合に、ユーザの手間をかけることなく、ページの端に不要な余白ができるのを防ぐことができ、バランスのよいレイアウトにすることができる。 By doing as described above, it is possible to prevent unnecessary margins from being created at the edges of the page without the user's trouble when inputting a character string by pouring it into the page of the book, and a well-balanced layout. Can be.

このように、本実施形態によれば、ブックが左開きである場合において、文字列が入力されるページの配置を判断し、左ページでは左端の段から文字列を流し込み、右ページでは文字列が流し込まれる文字列の最終段が右端の段になるように、文字列を流し込む。これにより、本実施形態によれば、ユーザが手間をかけることなく、左ページ及び右ページのそれぞれに合わせて文字列をバランスよく配置することができる。 As described above, according to the present embodiment, when the book is open to the left, the arrangement of the page into which the character string is input is determined, the character string is poured from the leftmost column on the left page, and the character string is inserted on the right page. The character string is poured so that the last row of the character string into which is poured is the rightmost row. As a result, according to the present embodiment, the character strings can be arranged in a well-balanced manner according to each of the left page and the right page without any trouble for the user.

次に、図5を参照して、ブックの編集において、ページの削除、挿入又は追加が行われてページの配置が変更されるときに実行される処理フローについて説明する。図5は、本実施形態による情報処理装置100によりページの削除、挿入又は追加が行われてページの配置が変更されるときに実行される処理フローの一例を示すフローチャートである。 Next, with reference to FIG. 5, a processing flow executed when a page is deleted, inserted, or added to change the page arrangement in editing a book will be described. FIG. 5 is a flowchart showing an example of a processing flow executed when the information processing apparatus 100 according to the present embodiment deletes, inserts, or adds pages to change the arrangement of pages.

まず、ステップS501にて、CPU106は、ページの削除、挿入又は追加が指示されたか否かを判断する。ユーザは、キーボード104やPD105を操作することによりページの削除、挿入又は追加を指示することができる。ページの挿入は、ページ間に新たなページを挿入することを意味する。ページの追加は、最初のページの前又は最終のページの後に新たなページを追加することを意味する。 First, in step S501, the CPU 106 determines whether or not a page deletion, insertion, or addition is instructed. The user can instruct to delete, insert, or add a page by operating the keyboard 104 or PD105. Inserting a page means inserting a new page between pages. Adding a page means adding a new page before the first page or after the last page.

ページの削除、挿入又は追加が指示されたと判断すると(ステップS501でYes)、CPU106は、次の処理を実行する。まず、ステップS502にて、CPU106は、各ページのページデータ300を更新する。また、ステップS503にて、CPU106は、ブックの総ページ数を取得し、取得した総ページ数を変数Mに設定する。また、ステップS504にて、CPU106は、カウンタiに1を設定し、カウンタiを初期化する。なお、ステップS503、S504、S505は、任意の順序で実行することができ、また、互いに並行して実行することもできる。 When it is determined that the page deletion, insertion, or addition is instructed (Yes in step S501), the CPU 106 executes the next process. First, in step S502, the CPU 106 updates the page data 300 of each page. Further, in step S503, the CPU 106 acquires the total number of pages of the book and sets the acquired total number of pages in the variable M. Further, in step S504, the CPU 106 sets the counter i to 1 and initializes the counter i. It should be noted that steps S503, S504, and S505 can be executed in any order, or can be executed in parallel with each other.

次いで、ステップS505にて、CPU106は、ページの削除、挿入又は追加による配置変更後のi番目のページの配置を判断する。上述のように、本実施形態ではブックが左開きである場合について説明し、配置変更後のi番目のページの配置として、i番目のページが左ページであるか否かを判断する。この場合も、上記のステップS402について説明したように、ページ番号が奇数であるか偶数であるかの情報に基づき、i番目のページが左ページであるか否かを判断することができる。そして、ページ番号が奇数であれば右ページ、偶数であれば左ページであると判断するものとする。 Next, in step S505, the CPU 106 determines the arrangement of the i-th page after the arrangement is changed by deleting, inserting, or adding the page. As described above, in the present embodiment, the case where the book is open to the left will be described, and it is determined whether or not the i-th page is the left page as the arrangement of the i-th page after the arrangement change. In this case as well, as described in step S402 above, it is possible to determine whether or not the i-th page is the left page based on the information on whether the page numbers are odd or even. Then, if the page number is odd, it is determined to be the right page, and if it is even, it is determined to be the left page.

i番目のページが左ページであると判断した場合(ステップS505でYes)、CPU106は、ステップS506に処理を進める。一方、i番目のページが左ページでない、すなわち右ページであると判断した場合(ステップS505でNo)、CPU106は、ステップS509に処理を進める。 If it is determined that the i-th page is the left page (Yes in step S505), the CPU 106 proceeds to step S506. On the other hand, when it is determined that the i-th page is not the left page, that is, the right page (No in step S505), the CPU 106 proceeds to the process in step S509.

ステップS506にて、CPU106は、左ページであると判断した配置変更後のi番目のページについて、文字列304を、段組み管理番号307の順番に従って左端の段組みから順に各段に流し込んで入力する。 In step S506, the CPU 106 inputs the character string 304 into each column in order from the leftmost column according to the order of the column management number 307 for the i-th page after the rearrangement determined to be the left page. To do.

次いで、ステップS507にて、CPU106は、カウンタiに1を加算する。
次いで、ステップS508にて、CPU106は、iとMを比較して、i>Mであるか否かを判断する。CPU106は、i≦Mであれば(ステップS508でNo)、ステップS505の処理に戻り、i>Mであれば(ステップS508でYes)、本処理フローを終了する。
Then, in step S507, the CPU 106 adds 1 to the counter i.
Next, in step S508, the CPU 106 compares i and M to determine whether or not i> M. If i ≦ M (No in step S508), the CPU 106 returns to the process of step S505, and if i> M (Yes in step S508), the CPU 106 ends this processing flow.

一方、i番目のページが右ページであると判断した場合(S505でNo)、ステップS509にて、CPU106は、右ページであると判断したi番目のページについて、文字列304の入力に必要な段数を算出する。文字列304の入力に必要な段数は、各段に入力可能な文字数及び文字列の文字数から算出することができる。例えば、文字列304の文字数に基づき、文字列304の入力に必要な段数として、段組み管理番号307とは逆の順番の段の数を、サイズ情報309及び書式情報310を使って求めることができる。 On the other hand, when it is determined that the i-th page is the right page (No in S505), the CPU 106 is required to input the character string 304 for the i-th page determined to be the right page in step S509. Calculate the number of stages. The number of columns required for inputting the character string 304 can be calculated from the number of characters that can be input in each column and the number of characters in the character string. For example, based on the number of characters in the character string 304, as the number of columns required for inputting the character string 304, the number of columns in the reverse order of the column structure management number 307 can be obtained by using the size information 309 and the format information 310. it can.

次いで、ステップS510にて、CPU106は、文字列304が流し込まれる最終段が右端の段になるように、文字列304を入力する先頭の段を決定する。右端の段は、ページ内の段のうちの段組み管理番号307が最大の段である。例えば、段組みの数303からステップS509にて算出した必要な段数を引き1を足すと、先頭の段の段組み管理番号307を求めることができる。 Next, in step S510, the CPU 106 determines the first stage in which the character string 304 is input so that the final stage into which the character string 304 is poured is the rightmost stage. In the rightmost column, the column structure management number 307 of the columns in the page is the largest column. For example, by subtracting the required number of steps calculated in step S509 from the number of steps 303 and adding 1, the step setting management number 307 of the first step can be obtained.

次いで、ステップS511にて、CPU106は、決定した先頭の段から順に文字列304を流し込んで入力する。こうして、CPU106は、右ページであると判断した配置変更後のi番目のページについて、文字列304が流し込まれる最終段が右端の段になるように文字列304を流し込む先頭の段を決定して、先頭の段から文字列304を流し込む。
次いで、ステップS507、S508の処理を実行する。
Next, in step S511, the CPU 106 inputs the character string 304 in order from the determined first column. In this way, the CPU 106 determines the first row in which the character string 304 is poured so that the final row in which the character string 304 is poured is the rightmost row for the i-th page after the rearrangement determined to be the right page. , The character string 304 is poured from the first column.
Next, the processes of steps S507 and S508 are executed.

上述のようにすることで、ブックからのページの削除、挿入又は追加により各ページの配置が変更された場合であっても、ユーザの手間をかけることなく、ページの端に不要な余白ができるのを防ぐことができ、バランスのよいレイアウトにすることができる。 By doing the above, even if the arrangement of each page is changed by deleting, inserting or adding a page from the workbook, unnecessary margins can be created at the edge of the page without any user trouble. Can be prevented and the layout can be well-balanced.

なお、本実施形態では文書が左開きの場合について説明したが、これに限定されるものではない。文書が右開きの場合も、左右が逆になる点を除き、上記と同様に処理を実行することができる。 In the present embodiment, the case where the document opens to the left has been described, but the present invention is not limited to this. Even when the document opens to the right, the process can be executed in the same manner as described above except that the left and right sides are reversed.

すなわち、上記文書が左開きである場合には、CPU106は、右ページについて、文字列が流し込まれる最終段が右端の段になるように文字列を流し込む先頭の段を決定して、先頭の段から文字列を流し込む。また、この場合、CPU106は、左ページについて、左端の段から文字列を流し込む。これに対して、文書が右開きである場合には、CPU106は、左ページについて、文字列が流し込まれる最終段が左端の段になるように文字列を流し込む先頭の段を決定して、先頭の段から文字列を流し込むことができる。また、この場合、CPU106は、右ページについて、右端の段から文字列を流し込むことができる。 That is, when the above document is open to the left, the CPU 106 determines the first row in which the character string is poured so that the last row in which the character string is poured is the rightmost row for the right page, and the first row is the first row. Pour the character string from. Further, in this case, the CPU 106 flows the character string from the leftmost column on the left page. On the other hand, when the document opens to the right, the CPU 106 determines the first column in which the character string is inserted so that the last column in which the character string is inserted is the leftmost column for the left page, and the first column is used. A character string can be poured from the column of. Further, in this case, the CPU 106 can flow the character string from the rightmost column on the right page.

また、文書が右開きの場合において、ページの削除、挿入又は追加によるページの配置変更が行われたときには、配置変更後のページについて、左右が逆になる点を除き、上記と同様に処理を実行することができる。 In addition, when the document is opened to the right and the page layout is changed by deleting, inserting, or adding the page, the page after the layout change is processed in the same way as above, except that the left and right sides are reversed. Can be executed.

ユーザは、例えば、レイアウトを行うべき文書が左開きであるか右開きであるかを設定することができる。CPU106は、その開きの形式に関する設定に基づき、その文書の開きの形式に応じた処理を実行することができる。CPU106は、上記文書が右開きである場合の処理及び文書が左開きである場合の処理の両処理を実行可能である。ただし、CPU106は、これら両処理を必ずしも実行可能である必要はなく、特定の開きの形式の文書に対応して、両処理のうちの少なくとも一方を実行可能であればよい。 The user can set, for example, whether the document to be laid out is left-opening or right-opening. The CPU 106 can execute processing according to the opening format of the document based on the setting related to the opening format. The CPU 106 can execute both a process when the document is open to the right and a process when the document is open to the left. However, the CPU 106 does not necessarily have to be able to execute both of these processes, and may be capable of executing at least one of the two processes in response to a document having a specific opening format.

以上、本発明をその好適な実施形態に基づいて詳述してきたが、本発明はこれら特定の実施形態に限られるものではなく、この発明の要旨を逸脱しない範囲の様々な形態も本発明に含まれる。上述の実施形態の一部を適宜組み合わせてもよい。また、上述の実施形態の機能を実現するソフトウェアのプログラムを、記録媒体から直接、或いは有線/無線通信を用いてプログラムを実行可能なコンピュータを有するシステム又は装置に供給し、そのプログラムを実行する場合も本発明に含む。従って、本発明の機能処理をコンピュータで実現するために、該コンピュータに供給、インストールされるプログラムコード自体も本発明を実現するものである。つまり、本発明の機能処理を実現するためのコンピュータプログラム自体も本発明に含まれる。その場合、プログラムの機能を有していれば、オブジェクトコード、インタプリタにより実行されるプログラム、OSに供給するスクリプトデータ等、プログラムの形態を問わない。プログラムを供給するための記録媒体としては、例えば、ハードディスク、磁気テープ等の磁気記録媒体、光/光磁気記憶媒体、不揮発性の半導体メモリでもよい。また、プログラムの供給方法としては、コンピュータネットワーク上のサーバに本発明を形成するコンピュータプログラムを記憶し、接続のあったクライアントコンピュータがコンピュータプログラムをダウンロードしてプログラムするような方法も考えられる。本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサーがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。 Although the present invention has been described in detail based on the preferred embodiments thereof, the present invention is not limited to these specific embodiments, and various embodiments within the scope of the gist of the present invention are also included in the present invention. included. Some of the above-described embodiments may be combined as appropriate. Further, when a software program that realizes the functions of the above-described embodiment is supplied to a system or device having a computer capable of executing the program directly from a recording medium or by using wired / wireless communication, and the program is executed. Is also included in the present invention. Therefore, in order to realize the functional processing of the present invention on a computer, the program code itself supplied and installed on the computer also realizes the present invention. That is, the computer program itself for realizing the functional processing of the present invention is also included in the present invention. In that case, the form of the program does not matter, such as the object code, the program executed by the interpreter, and the script data supplied to the OS, as long as it has the function of the program. The recording medium for supplying the program may be, for example, a hard disk, a magnetic recording medium such as a magnetic tape, an optical / optical magnetic storage medium, or a non-volatile semiconductor memory. Further, as a method of supplying the program, a method in which the computer program forming the present invention is stored in a server on the computer network and the connected client computer downloads and programs the computer program can be considered. The present invention supplies a program that realizes one or more functions of the above-described embodiment to a system or device via a network or storage medium, and one or more processors in the computer of the system or device reads and executes the program. It can also be realized by the processing to be performed. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.

101 ディスプレイ
102 VRAM
103 BMU
104 キーボード
105 PD
106 CPU
107 ROM
108 RAM
109 HDD
110 FDD
111 ネットワークI/F
112 バス
101 Display 102 VRAM
103 BMU
104 keyboard 105 PD
106 CPU
107 ROM
108 RAM
109 HDD
110 FDD
111 Network I / F
112 bus

Claims (6)

文書を段組みでレイアウトする情報処理装置であって、
前記文書のページの段組みの段に文字列を挿入する挿入手段と、
前記ページが右ページであるか左ページであるかを判断する判断手段とを有し、
前記挿入手段は、前記文書が左開きである場合の第1の処理及び前記文書が右開きである場合の第2の処理のうちの少なくとも一方を実行可能であり、
前記挿入手段は、
前記第1の処理において、前記ページが右ページであるときには、前記文字列が挿入される最終段が右端の段になるように前記文字列を挿入する先頭の段を決定して、前記先頭の段から前記文字列を挿入し
前記第2の処理において、前記ページが左ページであるときには、前記文字列が挿入される最終段が左端の段になるように前記文字列を挿入する先頭の段を決定して、前記先頭の段から前記文字列を挿入する
ことを特徴とする情報処理装置。
An information processing device that lays out documents in stages.
Insertion means for inserting a character string in the column of the page of the document, and
It has a means for determining whether the page is a right page or a left page.
The insertion means can execute at least one of a first process when the document is left-opening and a second process when the document is right-opening.
The insertion means is
In the first process, when the page is the right page, the last stage string is inserted to determine the beginning of the stage of inserting the string so that the right end of stage, the beginning of the Insert the character string from the column and
In the second processing, when the page is the left page, the last stage string is inserted to determine the beginning of the stage of inserting the string so that the left end of the stage, the beginning of the An information processing device characterized by inserting the character string from a column.
前記挿入手段は、
前記第1の処理において、前記ページが左ページであるときには、左端の段から文字列を挿入し
前記第2の処理において、前記ページが右ページであるときには、右端の段から文字列を挿入する
ことを特徴とする請求項1記載の情報処理装置。
The insertion means is
In the first process, when the page is the left page, a character string is inserted from the leftmost column.
The information processing apparatus according to claim 1, wherein in the second process, when the page is the right page, a character string is inserted from the rightmost column.
前記文書の前記ページの配置が変更された場合に、前記判断手段は、配置変更後の前記ページが右ページであるか左ページであるかを判断し、
前記挿入手段は、
前記第1の処理において、前記配置変更後のページが右ページであるときには、前記配置変更後のページについて、前記文字列が挿入される最終段が右端の段になるように前記文字列を挿入する先頭の段を決定して、前記先頭の段から前記文字列を挿入し
前記第2の処理において、前記配置変更後のページが左ページであるときには、前記配置変更後のページについて、前記文字列が挿入される最終段が左端の段になるように前記文字列を挿入する先頭の段を決定して、前記先頭の段から前記文字列を挿入する
ことを特徴とする請求項1又は2に記載の情報処理装置。
When the arrangement of the pages of the document is changed, the determination means determines whether the page after the arrangement change is the right page or the left page.
The insertion means is
In the first process, when the page after the layout change is the right page, the page after the layout change, inserting the string so a final stage in which the string is inserted becomes the right end of stage to determine the beginning of the stage that, inserting the string from the beginning of the stage,
In the second processing, when the page after the layout change is the left page, the page after the layout change, inserting the string so a final stage in which the string is inserted is the left end of the stage to determine the beginning of the stage of information processing apparatus according to claim 1 or 2, characterized in that inserting the string from the beginning of the stage.
前記判断手段は、前記ページが偶数ページであるか奇数ページであるかの判断に基づき、前記ページが右ページであるか左ページであるかを判断することを特徴とする請求項1乃至3のいずれか1項に記載の情報処理装置。 The determination means according to claim 1 to 3, wherein the determination means determines whether the page is a right page or a left page based on the determination of whether the page is an even page or an odd page. The information processing apparatus according to any one item. 文書を段組みでレイアウトする情報処理装置の制御方法であって、
前記文書のページの段組みの段に文字列を挿入する挿入ステップと、
前記ページが右ページであるか左ページであるかを判断する判断ステップとを有し、
前記挿入ステップは、前記文書が左開きである場合の第1の処理及び前記文書が右開きである場合の第2の処理のうちの少なくとも一方を実行可能であり、
前記第1の処理において、前記ページが右ページであるときには、前記文字列が挿入される最終段が右端の段になるように前記文字列を挿入する先頭の段を決定して、前記先頭の段から前記文字列を挿入し
前記第2の処理において、前記ページが左ページであるときには、前記文字列が挿入される最終段が左端の段になるように前記文字列を挿入する先頭の段を決定して、前記先頭の段から前記文字列を挿入する
ことを特徴とする情報処理装置の制御方法。
It is a control method of an information processing device that lays out documents in stages.
Insertion step to insert a character string in the column of the page of the document,
It has a determination step of determining whether the page is a right page or a left page.
In the insertion step, at least one of the first process when the document is left-opening and the second process when the document is right-opening can be executed.
In the first process, when the page is the right page, the last stage string is inserted to determine the beginning of the stage of inserting the string so that the right end of stage, the beginning of the Insert the character string from the column and
In the second processing, when the page is the left page, the last stage string is inserted to determine the beginning of the stage of inserting the string so that the left end of the stage, the beginning of the A control method for an information processing device, which comprises inserting the character string from a stage.
コンピュータを請求項1乃至4のいずれか1項に記載の情報処理装置の各手段として機能させるプログラム。A program that causes a computer to function as each means of the information processing apparatus according to any one of claims 1 to 4.
JP2016167137A 2016-08-29 2016-08-29 Information processing device, control method and program of information processing device Active JP6772002B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016167137A JP6772002B2 (en) 2016-08-29 2016-08-29 Information processing device, control method and program of information processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016167137A JP6772002B2 (en) 2016-08-29 2016-08-29 Information processing device, control method and program of information processing device

Publications (2)

Publication Number Publication Date
JP2018036714A JP2018036714A (en) 2018-03-08
JP6772002B2 true JP6772002B2 (en) 2020-10-21

Family

ID=61566516

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016167137A Active JP6772002B2 (en) 2016-08-29 2016-08-29 Information processing device, control method and program of information processing device

Country Status (1)

Country Link
JP (1) JP6772002B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03176148A (en) * 1989-12-06 1991-07-31 Hitachi Ltd Document layout edition device
JP3227047B2 (en) * 1994-02-08 2001-11-12 キヤノン株式会社 Character processor
JP4626693B2 (en) * 2008-09-17 2011-02-09 富士ゼロックス株式会社 Document processing apparatus, printing system, document processing method and program
US20140115432A1 (en) * 2012-10-24 2014-04-24 ePAGINATION LIMITED (UK) Techniques for typographic electronic pagination

Also Published As

Publication number Publication date
JP2018036714A (en) 2018-03-08

Similar Documents

Publication Publication Date Title
JP4056026B2 (en) Image management apparatus, image management method, and storage medium
JP5835780B2 (en) Construction site photography program
JP4144806B2 (en) Information editing apparatus, information editing system, information editing method, and program
JP2017207975A (en) Information processing apparatus, information processing method, and program
JP5578890B2 (en) Image editing apparatus, image editing method and program
JP2018092624A (en) Layout support system
JP6772002B2 (en) Information processing device, control method and program of information processing device
JPS61863A (en) Block processing system for document processor
CN112346671B (en) Storage medium
JP2001216292A (en) Layout image editing apparatus and layout image editing method
JP6812170B2 (en) Information processing device, its control method, and control program
JP7718510B2 (en) Information processing device, layout support method, and layout support program
JP4825823B2 (en) Information editing apparatus, information editing system, information editing method, and program
JPH03176148A (en) Document layout edition device
Varma Scripting the Screen
JPH04247561A (en) Document processing device and method
JPH0969098A (en) Document creation device
JP2003223606A (en) Display control program and recording medium
JP2019036040A (en) Information processing apparatus, control method thereof, and control program
JP6376894B2 (en) Information processing apparatus, control method therefor, and program
JP7095368B2 (en) Display control device, display control program and display control method
JPS6365988B2 (en)
JP3133575B2 (en) Sentence processing equipment
CN116976296A (en) Method, device, electronic device and storage medium for setting slashes in cells
JP6551846B2 (en) Page processing apparatus, page processing method, and program

Legal Events

Date Code Title Description
RD05 Notification of revocation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7425

Effective date: 20171214

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20180126

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190828

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200520

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200602

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200728

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20200901

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200930

R151 Written notification of patent or utility model registration

Ref document number: 6772002

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151