JP2017157078A - Table information processor, table information processing method, and program - Google Patents

Table information processor, table information processing method, and program Download PDF

Info

Publication number
JP2017157078A
JP2017157078A JP2016041013A JP2016041013A JP2017157078A JP 2017157078 A JP2017157078 A JP 2017157078A JP 2016041013 A JP2016041013 A JP 2016041013A JP 2016041013 A JP2016041013 A JP 2016041013A JP 2017157078 A JP2017157078 A JP 2017157078A
Authority
JP
Japan
Prior art keywords
data
unit
information
page
inspection
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
JP2016041013A
Other languages
Japanese (ja)
Inventor
植野 博
Hiroshi Ueno
博 植野
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.)
ProField Co Ltd
Original Assignee
ProField 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 ProField Co Ltd filed Critical ProField Co Ltd
Priority to JP2016041013A priority Critical patent/JP2017157078A/en
Publication of JP2017157078A publication Critical patent/JP2017157078A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To automatically determine layout of four or more pieces of data in a table in a page.SOLUTION: A table information processor 1 includes: a storage section 11 which stores page information to be information in which a determined page is constituted of a region where a table is arranged; a reception section 12 which receives four or more pieces of data arranged in the table; an inspection section 131 which inspects the data received by the reception section 12; a determination section 132 which determines layout of the four or more pieces of data in the table in the region on the basis of the inspection result in the inspection section 131; an arrangement section 133 which arranges the four or more pieces of data in the table according to the layout determined by the determination section 132; and an output section 14 which outputs the page including the table in which the arrangement section 133 arranges the four or more pieces of data using the page information. Four or more pieces of data is inspected in advance and the four or more pieces of data are arranged in the table according to the layout determined on the basis of the inspection result by the table information processor, the layout of the four or more pieces of data in the table in the page can be automatically determined.SELECTED DRAWING: Figure 1

Description

本発明は、表のデータを処理する表情報処理装置等に関するものである。   The present invention relates to a table information processing apparatus or the like that processes table data.

従来の表情報処理装置において、4以上のデータを、予め決められたレイアウトに従って、表の中に配置するものがある(例えば、非特許文献1参照)。   Some conventional table information processing apparatuses arrange four or more data in a table according to a predetermined layout (for example, see Non-Patent Document 1).

マイクロソフト、“エクセル”、[online]、[平成28年2月29日検索]、インターネット[URL:https://products.office.com/ja-jp/excel]Microsoft, “Excel”, [online], [Search February 29, 2016], Internet [URL: https://products.office.com/ja-jp/excel]

しかしながら、従来の表情報処理装置においては、表の中における4以上のデータのレイアウトを自動的に決定することができなかった。また、ページ内における表の配置を決定することもできなかった。   However, the conventional table information processing apparatus cannot automatically determine the layout of four or more data in the table. Also, the layout of the table within the page could not be determined.

そこで、本発明は、ページ内の表の中における4以上のデータのレイアウトを自動的に決定できる表情報処理装置等の提供を目的とする。   Accordingly, an object of the present invention is to provide a table information processing apparatus and the like that can automatically determine the layout of four or more data in a table in a page.

本第一の発明の表情報処理装置は、2以上の行および2以上の列を有する表が配置される領域が決められたページを構成する情報であるページ情報が格納される格納部と、表に配置される4以上のデータを受け付ける受付部と、受付部が受け付けたデータを検査する検査部と、検査部の検査結果を基に、表の中の4以上のデータのレイアウトを決定する決定部と、決定部が決定したレイアウトに従って、表の中に、4以上のデータを配置する配置部と、ページ情報を用いて、配置部が4以上のデータを配置した表を含むページを出力する出力部とを具備する表情報処理装置である。   The table information processing apparatus according to the first aspect of the present invention includes a storage unit that stores page information that is information constituting a page in which an area in which a table having two or more rows and two or more columns is arranged; The layout of four or more data in the table is determined based on the reception unit that receives four or more data arranged in the table, the inspection unit that inspects the data received by the reception unit, and the inspection result of the inspection unit According to the determining unit, the layout determined by the determining unit, an arrangement unit that arranges four or more data in a table, and a page including a table in which the arrangement unit arranges four or more data using page information A table information processing apparatus comprising:

かかる構成により、事前に4以上のデータを検査し、検査結果を基に決定したレイアウトに従って、ページ内の表の中に当該4以上のデータを配置するので、ページ内の表の中における4以上のデータのレイアウトを自動的に決定できる表情報処理装置が実現される。   With this configuration, four or more pieces of data in the table in the page are inspected in advance, and the four or more pieces of data are arranged in the table in the page according to the layout determined based on the inspection result. A table information processing apparatus that can automatically determine the layout of the data is realized.

また、本第二の発明の表情報処理装置は、第一の発明に対して、検査部は、4以上のデータのうちの1以上の各データに対応するプロパティを取得し、決定部は、検査部が取得したプロパティによって、表を構成する列または行のサイズに関する比を決定し、配置部は、決定部が決定した比に従って、表の中に、4以上のデータを配置する表情報処理装置である。   Moreover, the table | surface information processing apparatus of this 2nd invention is a 1st invention. WHEREIN: The test | inspection part acquires the property corresponding to each 1 or more data of 4 or more data, A table information processing for allocating four or more data in the table according to the ratio determined by the determining unit, determining a ratio regarding the size of the columns or rows constituting the table according to the properties acquired by the inspection unit. Device.

かかる構成により、4以上のデータが適切に(例えばバランスよく)配置された表を含むページを出力できる。また、既存のプロパティを取得することで、検査のための処理負荷を軽減できる。   With this configuration, it is possible to output a page including a table in which four or more pieces of data are appropriately arranged (for example, in a balanced manner). Also, by acquiring existing properties, the processing load for inspection can be reduced.

また、本第三の発明の表情報処理装置は、第二の発明に対して、プロパティは、データの長さ、データタイプのうちの1種類以上の情報である表情報処理装置である。   The table information processing apparatus according to the third aspect of the invention is a table information processing apparatus in which the property is one or more kinds of information of data length and data type.

かかる構成により、データの長さまたはデータタイプのうち少なくとも1つの情報を基に比を決定するので、長さやデータタイプの異なる4以上のデータが適切に配置された表を含むページを出力できる。   With this configuration, since the ratio is determined based on at least one piece of information of the data length or data type, it is possible to output a page including a table in which four or more data having different lengths or data types are appropriately arranged.

また、本第四の発明の表情報処理装置は、第三の発明に対して、プロパティは、データタイプを含み、検査部は、データに含まれる1以上の文字からデータタイプを決定する表情報処理装置である。   In the table information processing apparatus according to the fourth aspect of the invention, in contrast to the third aspect of the invention, the property includes a data type, and the inspection unit determines the data type from one or more characters included in the data. It is a processing device.

かかる構成により、取得したプロパティにデータタイプが含まれていなくても、データに含まれる1以上の文字からデータタイプの決定、ひいては比の決定が行える。   With this configuration, even if the acquired property does not include a data type, the data type can be determined from one or more characters included in the data, and thus the ratio can be determined.

また、本第五の発明の情報処理装置は、第一から第四いずれか1つの発明に対して、受付部は、表に配置される4以上のデータを受け付け、4以上のデータは、任意の属性の名称を示すデータである2以上の属性名データと、2以上の属性名データと対になるデータであり、任意の属性の値を示すデータである2以上の属性値データとを含み、決定部は、2以上の属性名データおよび2以上の属性値データの少なくともいずれか一方の検査結果を基に決定を行う情報処理装置である。   Further, in the information processing apparatus according to the fifth aspect of the present invention, with respect to any one of the first to fourth aspects, the reception unit receives four or more pieces of data arranged in a table, and the four or more pieces of data are arbitrary Including two or more attribute name data that is data indicating the name of the attribute, and two or more attribute value data that is data paired with the two or more attribute name data and indicating the value of any attribute The determination unit is an information processing apparatus that performs determination based on the inspection result of at least one of two or more attribute name data and two or more attribute value data.

かかる構成により、2以上の属性名データおよび2以上の属性値データの少なくともいずれか一方の検査結果を基に決定を行うことで、2以上の属性名データおよび2以上の属性値データの少なくともいずれか一方が適切に配置された表を含むページを出力できる。   With this configuration, by making a determination based on the inspection result of at least one of two or more attribute name data and two or more attribute value data, at least one of two or more attribute name data and two or more attribute value data You can output a page that contains a table with one of them properly arranged.

特に、2以上の属性名データおよび2以上の属性値データの両方の検査結果を基に決定を行う場合は、2以上の属性名データおよび2以上の属性値データの両方が適切に配置された表を含むページを出力できる。また、2以上の属性名データおよび2以上の属性値データのいずれか一方の検査結果を基に決定を行う場合は、検査のための処理負荷を軽減しつつ、2以上の属性名データおよび2以上の属性値データのいずれか一方が適切に配置された表を含むページを出力できる。   In particular, when making a decision based on the inspection results of both two or more attribute name data and two or more attribute value data, both the two or more attribute name data and the two or more attribute value data are appropriately arranged. A page containing a table can be output. Further, when the determination is made based on the inspection result of one of the two or more attribute name data and the two or more attribute value data, the two or more attribute name data and 2 and 2 are reduced while reducing the processing load for the inspection. A page including a table in which any one of the attribute value data is appropriately arranged can be output.

また、本第六の発明の情報処理装置は、第五の発明に対して、決定部は、2以上の属性名データが、2以上の行のうち一の行、または2以上の列のうち一の列に配置されるように、表の中における4以上のデータのレイアウトを決定する情報処理装置である。   Further, in the information processing apparatus according to the sixth invention, in contrast to the fifth invention, the determination unit includes two or more attribute name data in one row of two or more rows or two or more columns. The information processing apparatus determines the layout of four or more data in a table so as to be arranged in one column.

かかる構成により、2以上の属性名データが一の行または一の列に配置された表を含むページを出力できる。   With this configuration, it is possible to output a page including a table in which two or more attribute name data are arranged in one row or one column.

また、本第七の発明の表情報処理装置は、第一から第六いずれか1つの発明に対して、決定部は、検査部の検査結果を基に、表を構成する2以上の各列の幅、または表を構成する2以上の各行の高さのうち、1種類以上の情報を決定する表情報処理装置である。   Further, in the table information processing apparatus according to the seventh aspect of the present invention, in any one of the first to sixth aspects, the determining unit determines whether each of the two or more columns constituting the table is based on the inspection result of the inspection unit. The table information processing apparatus determines one or more types of information among the widths of two or more of the heights of two or more rows constituting the table.

かかる構成により、4以上の各データの検査結果を基に、表を構成する各列の幅または表を構成する各行の高さのうち一方または両方に関する比を決定し、決定した比に従って、表の中に当該4以上のデータを配置するので、4以上のデータが各列に適切に配置された表、または4以上のデータが各行に適切に配置された表、あるいは4以上のデータが各行および各列に適切に配置された表、を含むページを出力できる。   With such a configuration, based on the inspection result of each data of 4 or more, the ratio of one or both of the width of each column constituting the table or the height of each row constituting the table is determined, and the table is determined according to the determined ratio. Since four or more data are arranged in the table, a table in which four or more data are appropriately arranged in each column, a table in which four or more data are appropriately arranged in each row, or four or more data in each row And a page containing a table appropriately arranged in each column.

また、本第八の発明の情報処理装置は、第一から第七いずれか1つの発明に対して、受付部は、表領域の指示をさらに受け付け、決定部は、指示に応じて、ページ内における表領域の配置を決定する表情報処理装置である。   In the information processing device according to the eighth aspect of the present invention, for any one of the first to seventh aspects, the reception unit further receives an instruction for a table area, and the determination unit It is a table | surface information processing apparatus which determines arrangement | positioning of the table area | region in.

かかる構成により、ページ内における表領域の配置を決定することができる。   With this configuration, the arrangement of the table areas in the page can be determined.

本発明によれば、ページ内の表の中における4以上のデータのレイアウトを自動的に決定できる表情報処理装置等が実現される。   According to the present invention, a table information processing apparatus or the like that can automatically determine the layout of four or more data in a table in a page is realized.

実施の形態における表情報処理装置1の構成例を示すブロック図The block diagram which shows the structural example of the table | surface information processing apparatus 1 in embodiment 同表情報処理装置1の全体動作に関するフローチャートFlow chart relating to overall operation of the table information processing apparatus 1 同表情報処理装置1の一部動作(決定処理)に関するフローチャートFlowchart relating to partial operation (decision process) of the table information processing apparatus 1 同ページの構成例を示す図The figure which shows the example of composition of the same page 図6のページに対応するページ情報のデータ構造図Data structure diagram of page information corresponding to the page of FIG. 同表の構成例を示す図The figure which shows the example of composition of the same table 同列情報のデータ構造図Data structure diagram of column information 同行情報のデータ構造図Data structure diagram of accompanying information 同4以上のデータに関するデータ構造図Data structure diagram for data of 4 or more 同列情報の一例を示す図The figure which shows an example of the same column information 図12の列情報を用いた表を含むページの出力例を示す図The figure which shows the example of an output of the page containing the table | surface using the column information of FIG. 同列情報の他の一例を示す図The figure which shows another example of the same column information 図14の列情報を用いた表を含むページの出力例を示す図The figure which shows the output example of the page containing the table | surface using the column information of FIG. 同列情報のその他の一例を示す図The figure which shows another example of the same line information 図16の列情報を用いた表を含むページの出力例を示す図The figure which shows the example of an output of the page containing the table | surface using the column information of FIG. 同列情報のさらにその他の一例を示す図The figure which shows another example of the same line information 図18の列情報を用いた表を含むページの出力例を示す図The figure which shows the example of an output of the page containing the table | surface using the column information of FIG. 同コンピュータシステム900の外観図External view of the computer system 900 同コンピュータシステム900の内部構成を示す図The figure which shows the internal structure of the computer system 900

以下、表情報処理装置等の実施形態について図面を参照して説明する。なお、実施の形態において同じ符号を付した構成要素、ステップは同様の動作を行うので、再度の説明を省略する場合がある。   Hereinafter, embodiments of a table information processing apparatus and the like will be described with reference to the drawings. In addition, since the component and step which attached | subjected the same code | symbol in embodiment perform the same operation | movement, description may be abbreviate | omitted again.

本実施の形態における表情報処理装置は、ページ内の指示された領域に配置される表のデータを受け付け、表内のデータを検査し、検査結果に応じて、ページ内の表におけるデータのレイアウトを決定し、配置するというものである。   The table information processing apparatus according to the present embodiment accepts data of a table arranged in a designated area in a page, inspects the data in the table, and lays out the data in the table in the page according to the inspection result Is determined and arranged.

図1は、本実施の形態における表情報処理装置1の構成例を示すブロック図である。表情報処理装置1は、格納部11、受付部12、処理部13、出力部14を備える。   FIG. 1 is a block diagram illustrating a configuration example of a table information processing apparatus 1 according to the present embodiment. The table information processing apparatus 1 includes a storage unit 11, a reception unit 12, a processing unit 13, and an output unit 14.

処理部13は、検査部131、決定部132、配置部133を備える。   The processing unit 13 includes an inspection unit 131, a determination unit 132, and an arrangement unit 133.

前提として、格納部11には、処理部13が各種の処理を行うためのプログラムが格納される。なお、各種の処理およびプログラムについては後述する。   As a premise, the storage unit 11 stores programs for the processing unit 13 to perform various processes. Various processes and programs will be described later.

また、格納部11には、ページを構成する情報であるページ情報が格納される。   The storage unit 11 stores page information that is information constituting a page.

ページとは、電子的なページである。電子的なページとは、例えば、ディスプレイに表示したり、記録媒体に記録したり、通信回線で伝送したりすることが可能なページをいい、例えば、電子カタログ、電子雑誌、電子書籍といった電子的な出版物のページである。ただし、出版物の種類やページの内容等は問わない。   A page is an electronic page. An electronic page refers to a page that can be displayed on a display, recorded on a recording medium, or transmitted via a communication line. For example, an electronic page such as an electronic catalog, an electronic magazine, and an electronic book. It is a page of a publication. However, the type of publication and the content of the page are not important.

ページには、表が配置される領域(表領域)を含む1以上の領域(表領域のほか、例えば、画像領域、文章領域など)が決められていてもよい。   In the page, one or more areas (for example, an image area, a text area, etc. in addition to the table area) including an area (table area) where the table is arranged may be determined.

表とは、4以上のデータを横(水平)方向と縦(垂直)方向に配置するための形式をいい、2以上の行および2以上の列を有する。行とは、2以上のデータの横方向の並びをいい、列とは、2以上のデータの縦方向の並びをいう。   The table is a format for arranging four or more data in the horizontal (horizontal) direction and the vertical (vertical) direction, and has two or more rows and two or more columns. A row means a horizontal arrangement of two or more data, and a column means a vertical arrangement of two or more data.

以下では、m個の行(ただし、mは2以上の整数)およびn個の列(ただし、nは2以上の整数)を有する表を、“m行n列の表”のように記す。m行n列の表には、通常、m×n個のデータが配置されるが、少なくとも2つのデータが配置されればよい。例えば、2行2列の表には、通常、4つのデータが配置されるが、3つまたは2つのデータしか配置されない場合があっても構わない。   Hereinafter, a table having m rows (where m is an integer equal to or greater than 2) and n columns (where n is an integer equal to or greater than 2) is described as “a table of m rows and n columns”. Normally, m × n pieces of data are arranged in a table of m rows and n columns, but it is sufficient that at least two pieces of data are arranged. For example, in a table of 2 rows and 2 columns, usually four data are arranged, but there may be a case where only three or two data are arranged.

領域とは、ページ内の決められた範囲をいう。この実施の形態におけるページには、表が配置される領域である表領域が決められる。ただし、ページには、例えば、写真やイラストなどの画像が配置される領域である画像領域、商品名や説明文などの文章が配置される領域である文章領域などが、さらに決められていてもよく、一のページに配置される領域の数や、各領域に配置されるコンテンツの種類等は問わない。   An area refers to a predetermined range within a page. In the page in this embodiment, a table area that is an area in which a table is arranged is determined. However, for example, an image area that is an area where images such as photographs and illustrations are arranged, a text area that is an area where sentences such as product names and descriptions are arranged, and the like are further determined on the page. In many cases, the number of areas arranged in one page, the type of content arranged in each area, etc. are not limited.

ページ内の表領域等の領域は、通常、ユーザからの指示を受け付けることにより決められるが、予め決められていてもよく、決め方は問わない。   A region such as a table region in a page is usually determined by receiving an instruction from a user, but may be determined in advance, and the determination method is not limited.

領域は、例えば矩形の領域であり、矩形の領域は、通常、ユーザからの始点および終点の指示に応じて、一意に決められる。   The area is, for example, a rectangular area, and the rectangular area is usually uniquely determined according to the start point and end point instructions from the user.

ただし、矩形以外の領域、例えば、円形の領域や、矩形以外の多角形の領域などでもよく、領域の形状やサイズは問わない。また、例えば、受付部12がユーザから輪郭線を受け付けることで、処理部13が任意の領域を決めることも可能であり、領域の決め方も問わない。   However, a region other than a rectangle, for example, a circular region or a polygonal region other than a rectangle may be used, and the shape and size of the region are not limited. Further, for example, when the receiving unit 12 receives a contour line from the user, the processing unit 13 can determine an arbitrary region, and the method of determining the region is not limited.

決められた領域は、通常、不変であるが、例えば、決定部132がレイアウトの決定を行う際に適宜変更してもよいし、あるいは、配置部133が表の中へのデータの配置を行う際に、適宜変更しても構わない。   The determined area is usually unchanged, but may be changed as appropriate when the determination unit 132 determines the layout, or the arrangement unit 133 arranges the data in the table. At this time, it may be appropriately changed.

ページ情報は、かかる1以上の領域に関する情報である1以上の領域情報を有する。   The page information includes one or more area information that is information related to the one or more areas.

領域情報は、例えば、領域を識別する領域IDと、その領域の始点および終点に対応する一組の座標と、その領域に配置されるコンテンツ(例えば、画像、文章、表など)を識別するコンテンツIDとを有する。なお、座標は、ページ内の相対的な座標でもよいし、ページを表示するディスプレイの絶対的な座標でもよい。   The area information includes, for example, an area ID for identifying an area, a set of coordinates corresponding to the start point and end point of the area, and content for identifying content (for example, an image, a sentence, a table, etc.) arranged in the area. ID. The coordinates may be relative coordinates within the page, or may be absolute coordinates of a display that displays the page.

ただし、領域情報は、始点および終点に対応する一組の座標に代えて、例えば、輪郭線を示す情報(一連の座標など)や、中心点および半径を有していてもよく、領域を示す情報であれば種類は問わない。   However, instead of the set of coordinates corresponding to the start point and the end point, the area information may include, for example, information indicating a contour line (such as a series of coordinates), a center point, and a radius, indicating the area. Any type of information is acceptable.

ページ情報は、例えば、HTMLやXML等の形式を有するが、上記のような1以上の領域情報を有している情報であれば、形式やデータ構造は問わない。   The page information has a format such as HTML or XML, for example, but any format or data structure may be used as long as the information has one or more area information as described above.

格納部11には、上記のようなページ情報が1以上格納される。   The storage unit 11 stores one or more pieces of page information as described above.

また、格納部11には、例えば、1以上のページ情報と対にして、列情報および行情報の組が1組以上、格納される。   The storage unit 11 stores, for example, one or more sets of column information and row information in pairs with one or more page information.

列情報とは、表を構成する2以上の各列の幅を示す情報であり、例えば、列を識別する列IDと、列の幅を示す値との対の集合で構成される。ただし、例えば、2以上の各列の幅が同じである場合、列情報は、一の列の幅のみを示す情報でもよい。   The column information is information indicating the width of each of two or more columns constituting the table. For example, the column information includes a set of pairs of a column ID for identifying a column and a value indicating the width of the column. However, for example, when two or more columns have the same width, the column information may be information indicating only the width of one column.

行情報とは、表を構成する2以上の各行の高さを示す情報であり、例えば、行を識別する行IDと、行の高さを示す値との対の集合で構成される。ただし、例えば、2以上の各行の高さが同じである場合、行情報は、一の行の高さのみを示す情報でもよい。   The row information is information that indicates the height of each of two or more rows that make up the table, and includes, for example, a set of pairs of a row ID that identifies a row and a value that indicates the height of the row. However, for example, when two or more rows have the same height, the row information may be information indicating only the height of one row.

ただし、格納部11は、上述したページ情報、領域情報、列情報および行情報以外の情報、例えば、後述する検査部131の検査結果なども格納し得る。   However, the storage unit 11 can also store information other than the above-described page information, region information, column information, and row information, for example, inspection results of the inspection unit 131 described later.

受付部12は、通常、ページ内に配置される領域(表領域等)の指示を受け付ける。ただし、領域が予め決められている場合は、領域の指示の受け付けは省略してよい。   The accepting unit 12 usually accepts an instruction for an area (table area or the like) arranged in a page. However, if the area is determined in advance, the reception of the area instruction may be omitted.

また、受付部12は、通常、ページ内の表に配置される4以上のデータを受け付ける。ただし、受付部12が受け付けるデータの数は、4個未満(例えば3個または2個)でもよく、その場合、表内にデータが配置されない部分(空きセル)が生じる。   Moreover, the reception part 12 receives four or more data normally arrange | positioned at the table | surface in a page. However, the number of data received by the receiving unit 12 may be less than four (for example, three or two), and in this case, a portion (empty cell) where no data is arranged is generated in the table.

4以上のデータは、通常、順序性を有するデータである。順序性を有するデータとは、例えば、CSV形式のデータで、順に並んだデータである。ただし、4以上のデータは、順序性を有していないデータでもよく、形式やデータ構造は問わない。CSV形式では、4以上のデータが区切り文字(例えば、カンマ(“,”))で区切って列挙される。また、4以上のデータは、2以上のレコードからなり、各レコードは2以上のデータからなり、レコードの間は改行コードで区切られ、レコード内の2以上のデータの間は区切り文字(例えば、カンマ(“,”))で区切られていても良い。   Four or more pieces of data are usually ordered data. The data having order is, for example, data in CSV format and arranged in order. However, the four or more data may be data having no order, and the format and data structure are not limited. In the CSV format, four or more pieces of data are listed by being separated by a delimiter (for example, a comma (“,”)). Further, four or more data consists of two or more records, each record consists of two or more data, and records are separated by a line feed code, and two or more data in a record are separated by a delimiter (for example, They may be separated by a comma (“,”)).

受け付けとは、キーボードやマウス、タッチパネル、マイクロフォン、イメージセンサ(スキャナ、カメラ等)などの入力デバイスから入力された情報の受け付け、有線もしくは無線の通信回線を介して送信された情報の受信、光ディスクや磁気ディスク、半導体メモリなどの記録媒体から読み出された情報の受け付けなどを含む概念である。   Receiving means receiving information input from an input device such as a keyboard, mouse, touch panel, microphone, image sensor (scanner, camera, etc.), receiving information transmitted via a wired or wireless communication line, an optical disc, It is a concept including reception of information read from a recording medium such as a magnetic disk or a semiconductor memory.

受付部12が受け付ける4以上のデータは、例えば、ユーザがキーボードやマイクロフォン等の入力デバイスで入力したデータであってもよいし、記録媒体から読み出されたデータであってもよいし、格納部11または外部の格納部に格納されているデータベースから取得されたデータであってもよい。なお、マイクロフォンによる音声入力を行う場合、受付部12は、マイクロフォンからの音声データを文字データに変換するための音声認識機能を有している必要がある。   The four or more data received by the receiving unit 12 may be, for example, data input by a user using an input device such as a keyboard or a microphone, data read from a recording medium, or a storage unit 11 or data acquired from a database stored in an external storage unit. In addition, when performing voice input using a microphone, the reception unit 12 needs to have a voice recognition function for converting voice data from the microphone into character data.

受付部12が受け付ける4以上の各データは、例えば、“品番”、“サイズ”、“価格”、“A-100-001”、“5m”、“\1,000”、“A-100-002”、“10m”、“\1,500”といった内容を有する。こうしたデータのタイプは、通常、文字データであるが、画像データでもよいし、文字データおよび画像データの組み合わせでもよい。   Each of the four or more data received by the receiving unit 12 is, for example, “product number”, “size”, “price”, “A-100-001”, “5 m”, “¥ 1,000”, “A-100-002” , “10m”, “¥ 1,500”. Such data type is usually character data, but may be image data or a combination of character data and image data.

また、4以上の各データは、例えば、当該データのプロパティと対応付いている。ただし、各データは、初めからプロパティと対応付いていなくてもよく、例えば、処理部13によってプロパティと対応付けられてもよい。対応付くとは、各データが、プロパティを有することでもよいし、データID、プロパティ等と対にして、蓄積されたり伝送されたりすることでもよい。   Further, each of the four or more pieces of data is associated with the property of the data, for example. However, each data may not be associated with the property from the beginning, and may be associated with the property by the processing unit 13, for example. The correspondence may be that each data has a property, or may be stored or transmitted in pairs with a data ID, a property, or the like.

データのプロパティとは、当該データ自身の特性(特徴、種類等)をいい、データの属性値といってもよい。たたし、ここでいう“属性値”は、後述する属性名データ、属性値データという場合における属性値、つまり属性名に対する属性値とは区別される。   Data properties refer to characteristics (features, types, etc.) of the data itself, and may be referred to as data attribute values. However, the “attribute value” here is distinguished from the attribute value in the case of attribute name data and attribute value data described later, that is, the attribute value for the attribute name.

データのプロパティは、例えば、データの長さ、データタイプなどである。データの長さとは、例えば、バイト数、文字数、画素数などであるが、データの長さを示す情報であれば種類は問わない。データタイプとは、データの形式やデータ構造などに基づく分類をいい、例えば、文字データ、画像データなどである。また、データタイプは、後述する属性名データ、属性値データでもよく、分類の基準は問わない。   The data property is, for example, the length of the data, the data type, or the like. The data length is, for example, the number of bytes, the number of characters, the number of pixels, and the like, but any type of data can be used as long as the information indicates the length of the data. The data type refers to classification based on the data format, data structure, and the like, for example, character data, image data, and the like. Further, the data type may be attribute name data and attribute value data described later, and the classification standard is not limited.

上記以外のプロパティとしては、例えば、文字種(フォント、フォントサイズや、全角、半角等)、画像の縦横比などが挙げられる。   Examples of properties other than the above include character type (font, font size, full-width, half-width, etc.), image aspect ratio, and the like.

フォントとは、文字の字体、例えば、ゴシック体、明朝体等である。フォントサイズとは、フォントの大きさ、例えば10ポイント、10.5ポイント等である。全角、半角とは、文字の縦横の比に基づく分類であり、例えば、全角の縦横比は1対1、半角の縦横比は2対1(横書きの場合)である。従って、全角の縦幅と半角の縦幅と比は1:1、全角の横幅と半角の横幅との比は、2対1となる。画像の縦横比とは、画像の縦方向の長さと横方向の長さとの比であり、例えば3対4等である。だだし、これらの比は一例であり、適宜変更されてよい。   The font is a character font, for example, a Gothic font, a Mincho font, or the like. The font size is a font size, for example, 10 points, 10.5 points, and the like. Full-width and half-width are classifications based on the aspect ratio of characters. For example, the full-width aspect ratio is 1: 1, and the half-width aspect ratio is 2: 1 (in the case of horizontal writing). Therefore, the ratio between the full width and the half width is 1: 1, and the ratio between the full width and the half width is 2: 1. The aspect ratio of the image is a ratio of the length in the vertical direction and the length in the horizontal direction of the image, and is, for example, 3 to 4. However, these ratios are examples and may be changed as appropriate.

文字データとは、例えば、個々の文字を識別する文字コードまたは文字コードの集合であり、テキストデータともいう。個々の文字を識別する情報であれば、文字データの形式や種類は問わない。   Character data is, for example, a character code or a set of character codes for identifying individual characters, and is also referred to as text data. As long as the information identifies individual characters, the format and type of character data are not limited.

画像データとは、例えば、写真やイラストや文字を含む画像を構成する画素データ(ピクセル)の集合(ビットマップ等)であるが、画素データの集合で構成される情報であれば、画像の内容や形式は問わない。   Image data is, for example, a set of pixel data (pixels, etc.) that constitutes an image including photographs, illustrations, and characters (bitmaps, etc.). Any format is acceptable.

属性名データとは、表の属性名を示すデータであり、例えば、“品番”、“サイズ”、“価格”といった内容を有する。属性名データの内容は、例えば、文字データの形式を有していてもよいし、画像データの形式を有していてもよく、データ形式は問わない。   The attribute name data is data indicating the attribute name of the table, and has contents such as “product number”, “size”, and “price”, for example. The content of the attribute name data may have, for example, a character data format or an image data format, and the data format is not limited.

属性値データとは、属性名データと対になるデータであり、表の属性値を示すデータである。属性名データ“品番”と対になる属性値データは、例えば“A-100-001”といった内容を有するデータであり、属性名データ“サイズ”と対になる属性値データは、例えば“5m”といった内容を有するデータであり、属性名データ“価格”と対になる属性値データとは、例えば“\1,000”といった内容を有するデータである。属性値データの内容は、例えば、文字データの形式を有していてもよいし、画像データの形式を有していてもよく、データ形式は問わない。   The attribute value data is data that is paired with the attribute name data and is data indicating the attribute value of the table. The attribute value data paired with the attribute name data “product number” is data having contents such as “A-100-001”, for example, and the attribute value data paired with the attribute name data “size” is, for example, “5 m” The attribute value data paired with the attribute name data “price” is data having a content of “¥ 1,000”, for example. The content of the attribute value data may have, for example, a character data format or an image data format, and the data format is not limited.

データのプロパティは、例えば、当該データ自身が有していてもよいし、当該データと対応付けて、記録媒体に格納されていてもよいし、入力デバイスから入力されてもよく、当該データと対応付いていれば所在は問わない。   For example, the data property may be included in the data itself, stored in a recording medium in association with the data, input from an input device, or corresponding to the data. It doesn't matter where it is attached.

m行n列の表に対し、受付部12は、通常、m×n個のデータを受け付ける。ただし、mは2以上の整数であり、nも2以上の整数である(以下同様)。なお、m×n個とは、m行n列の表にちょうど配置されるデータの個数を示しているに過ぎず、m×n個のデータが、例えば、二次元的に配列されていたり、改行コートで区切られていたりすることを要件として示すものではない(以下同様)。   For the table of m rows and n columns, the reception unit 12 normally receives m × n pieces of data. However, m is an integer of 2 or more, and n is an integer of 2 or more (the same applies hereinafter). Note that m × n means only the number of data arranged in the table of m rows and n columns, and m × n data is arranged two-dimensionally, for example, It does not indicate that it is separated by a line feed coat as a requirement (the same applies hereinafter).

他方、m行n列の表が配置される表領域は、例えば、m+1本の縦線、およびn+1本の横線によって、縦方向にm個、横方向にn個の、合計m×n個のセルに分割される。   On the other hand, the table area where the table of m rows and n columns is arranged has a total of m × n, for example, m in the vertical direction and n in the horizontal direction by m + 1 vertical lines and n + 1 horizontal lines. Divided into cells.

以下では、m×n個のセルのうち、第i行第j列に属するセルを“セルC(i,j)”のように記す場合がある。ただし、1≦i≦m、1≦j≦nである(以下同様)。   Hereinafter, a cell belonging to the i-th row and j-th column among the m × n cells may be described as “cell C (i, j)”. However, 1 ≦ i ≦ m and 1 ≦ j ≦ n (the same applies hereinafter).

受付部12は、通常、m×n個のセルC(1,1)〜C(m,n)に配置されるm×n個のデータを受け付ける。ただし、受付部12は、2個以上で、かつm×n個よりも少ない数のデータを受け付けてもよく、その場合、m×n個のセルの中には、データが配置されないセルである空セルが含まれる結果となる。また、受付部12は、m×n個よりも多い数のデータを受け付けてもよく、その場合、余ったデータが廃棄されるか、または、処理部13が表を構成する行または列の数を増やしてもよい。   The receiving unit 12 normally receives m × n pieces of data arranged in m × n cells C (1, 1) to C (m, n). However, the receiving unit 12 may receive data of two or more and less than m × n. In this case, the m × n cells are cells in which no data is arranged. The result is an empty cell. Further, the receiving unit 12 may receive a number of data larger than m × n. In that case, excess data is discarded, or the number of rows or columns that the processing unit 13 configures the table. May be increased.

受付部12は、かかるm×n個のデータを、通常、連続したシリアルデータとして受け付ける。   The accepting unit 12 usually accepts such m × n data as continuous serial data.

受付部12が受け付ける4以上のデータは、例えば、2以上の属性名データと、当該2以上の属性名データと対になるデータであり、任意の属性の値を示すデータである2以上の属性値データとを含む。ただし、4以上のデータの種類は問わない。   The four or more data received by the receiving unit 12 are, for example, two or more attribute name data and data paired with the two or more attribute name data, and two or more attributes that are data indicating arbitrary attribute values. Value data. However, the type of data of 4 or more does not matter.

4以上のデータは、処理部13が配置先を上記のように決めた場合に、例えば、2以上の属性名データが、一の行または一の列に配置され、一の属性名データに対応する2以上の属性値データは、当該一の属性名データが配置される列と同じ列に配置されるような順序で並んでいる。   For example, when the processing unit 13 determines the arrangement destination as described above, for example, two or more pieces of data are arranged in one row or one column and correspond to one attribute name data. Two or more attribute value data to be arranged are arranged in an order such that they are arranged in the same column as the column in which the one attribute name data is arranged.

処理部13は、例えば、ページ情報、当該ページ情報と対になる列情報および行情報の少なくとも1つを用いて、ページ内における表領域の位置、当該表領域に配置される表を構成するn個の各列の幅、当該表を構成するm個の各行の高さ、当該表に含まれるm×n個の各セルの位置、等の情報を一意に決めることができる。   The processing unit 13 uses, for example, at least one of page information, column information paired with the page information, and row information, the position of the table area in the page, and the table that is arranged in the table area n Information such as the width of each column, the height of each of the m rows constituting the table, and the position of each of the m × n cells included in the table can be uniquely determined.

検査部131は、受付部12が受け付けたデータを検査する。   The inspection unit 131 inspects the data received by the reception unit 12.

検査とは、例えば、データの内容の検査、データのプロパティの取得または検査であるが、どのような検査でもよい。   The inspection is, for example, inspection of data contents, acquisition of data properties, or inspection, but any inspection may be used.

データの内容とは、データの中身であり、例えば、“品番”、“A-100-001”、“¥”といった文字列、写真や文字の画像、またはそれらの組み合わせである。画像は、通常、静止画であるが、動画でもよい。静止画は、例えばサムネイルであり、動画は、例えば代表画像である。   The content of data is the contents of the data, for example, a character string such as “Part No.”, “A-100-001”, “¥”, a photograph or a character image, or a combination thereof. The image is usually a still image, but may be a moving image. The still image is, for example, a thumbnail, and the moving image is, for example, a representative image.

データの内容の検査とは、データの中身の検査であり、通常、データが特定の文字や文字列を含むか否かの判断である。特定の文字や文字列とは、一の文字でも良いが、文字の範囲(例えば、[0−9]など)でも良い。または、データの内容の検査とは、例えば、データの文字の組み合わせの判断(例えば、数字列の後に単位を示す英文字列(例えば、cm、m、kg、g、Hzなど)が出現するか否かの判断)、“¥”が最初に出現し、“¥”の後に数字列が続く文字列であるか否かの判断などである。   The inspection of data content is an inspection of the contents of data, and is usually a determination of whether or not the data includes a specific character or character string. The specific character or character string may be a single character or a range of characters (for example, [0-9]). Or, the inspection of data contents means, for example, judgment of a combination of data characters (for example, whether an English character string indicating a unit (for example, cm, m, kg, g, Hz, etc.) appears after a number string) Determination of whether or not), “¥” appears first, and determination is made as to whether or not it is a character string in which a numerical string follows “¥”.

取得とは、例えば、データからの抽出、記録媒体からの読み出し、外部装置からの受信などを含む概念である。   Acquisition is a concept that includes, for example, extraction from data, reading from a recording medium, and reception from an external device.

プロパティの取得とは、例えば、データがプロパティを有していている場合は、データからのプロパティの抽出である。また、プロパティの取得とは、例えば、データのタイプ(文字列、静止画、動画等)の取得である。また、プロパティの取得とは、例えば、データに含まれる文字列を構成する文字数の取得、データに含まれる文字列を構成する文字が全角か半角かを判断し、全角なら2バイト、半角なら1バイトを加算し、文字列のバイト数を算出する処理、データに含まれる文字列の文字種(漢字列、カタナカ列、ひらがな列、英文字列、数字列、およびこれらの組み合わせ等)を判別する処理等である。また、プロパティの取得とは、例えば、プロパティが記録媒体に格納されている場合は、記録媒体からのプロパティの読み出しであり、プロパティが入力デバイスから入力される場合は、入力されるプロパティの受付でもよく、プロパティの取得先は問わない。   Acquisition of a property is, for example, extraction of a property from data when the data has a property. Property acquisition is acquisition of a data type (character string, still image, moving image, etc.), for example. Property acquisition refers to, for example, acquisition of the number of characters constituting the character string included in the data, determination of whether the character constituting the character string included in the data is full-width or half-width, 2 bytes if full-width, 1 if half-width Processing to add bytes and calculate the number of bytes in the character string, processing to determine the character type of the character string included in the data (Kanji string, Katanaka string, Hiragana string, English character string, numeric string, and combinations thereof) Etc. Property acquisition is, for example, reading of a property from a recording medium when the property is stored in a recording medium, and reception of an input property when the property is input from an input device. Of course, the acquisition destination of the property does not matter.

プロパティの検査とは、例えば、データの形式やデータ構造に基づいて、文字データか画像データかの判別、属性名データか属性値データかの判別、などを行うことである。   The property inspection is, for example, determining whether the data is character data or image data, determining whether the attribute name data is attribute data, or the like based on the data format or data structure.

検査部131は、受付部12が受け付けた4以上のデータのうちの1以上の各データに対応するプロパティを取得する。   The inspection unit 131 acquires a property corresponding to one or more pieces of data among the four or more pieces of data received by the receiving unit 12.

検査部131が取得するプロパティは、通常、前述した各種のプロパティのうちの1種類以上の情報である。   The property acquired by the inspection unit 131 is usually one or more types of information among the various properties described above.

検査部131は、例えば、データの長さ(バイト数、文字数、画素数等)、データタイプ(画像データ/文字データ、属性名データ/属性値データ等)のうちの1種類以上の情報を取得する。   For example, the inspection unit 131 acquires one or more types of information of data length (number of bytes, number of characters, number of pixels, etc.) and data type (image data / character data, attribute name data / attribute value data, etc.). To do.

検査部131は、データに含まれる1以上の文字からデータタイプを決定してもよい。例えば、データに含まれる1以上の文字が全角文字である場合、検査部131は、当該データが属性名データであると決定し、データに含まれる1以上の文字が半角文字である場合、検査部131は、当該データが属性値データであると決定することができる。また、検査部131は、例えば、特定の記号(例えば“\”)、特定の文字(例えば“m”,“cm”,“kg”,“bps”等)などを含んだデータを属性値データであると決定し、こうした記号や文字を含まないデータを属性名データであると決定することも可能である。さらには、例えば、“\”を含んだデータを、金額に関する属性値データである金額型データに決定したり、“m”や“kg”や“bps”といった長さや重さや速さの単位を示す文字または文字列を含んだ属性値データをサイズ型データに決定したりすることもできる。このように、検査部131が決定するデータタイプは問わない。   The inspection unit 131 may determine the data type from one or more characters included in the data. For example, when one or more characters included in the data are full-width characters, the inspection unit 131 determines that the data is attribute name data, and when one or more characters included in the data are half-width characters, The unit 131 can determine that the data is attribute value data. In addition, the inspection unit 131 uses, for example, data including a specific symbol (for example, “\”), a specific character (for example, “m”, “cm”, “kg”, “bps”, etc.), etc. It is also possible to determine that the data does not include such symbols and characters as attribute name data. Furthermore, for example, data including “\” is determined to be monetary type data that is attribute value data relating to monetary amounts, or units of length, weight, and speed such as “m”, “kg”, and “bps” are determined. The attribute value data including the character or character string to be indicated can be determined as size type data. Thus, the data type determined by the inspection unit 131 is not limited.

また、4以上のデータがタグ形式を有する場合、検査部131は、タグ<>で囲まれたデータを属性名データであると決定し、それ以外のデータを属性値データであると決定してもよい。例えば、受付部12が受け付けたデータが“<品番>A-100-001<サイズ>5m<価格>\1,000<品番>A-100-002<サイズ>10m<価格>\1,500”であれば、検査部131は、“品番”、“サイズ”、“価格”を属性名データに決定し、“A-100-001”、“5m”、“\1,000”、“A-100-002”、“10m”、“\1,500”を属性値データに決定する。   When four or more pieces of data have a tag format, the inspection unit 131 determines that the data enclosed by the tag <> is attribute name data, and determines that the other data is attribute value data. Also good. For example, if the data received by the receiving unit 12 is “<product number> A-100-001 <size> 5m <price> \ 1,000 <product number> A-100-002 <size> 10m <price> \ 1,500” The inspection unit 131 determines “part number”, “size”, and “price” as attribute name data, and “A-100-001”, “5 m”, “¥ 1,000”, “A-100-002”, “ 10m ”and“ ¥ 1,500 ”are determined as attribute value data.

受付部12が受け付けた4以上のデータは、通常、2以上の属性名データと、当該2以上の属性名データと対になる2以上の属性値データとを含んでおり、検査部131は、2以上の属性名データおよび2以上の属性値データの少なくともいずれか一方を対象に、上記のような検査を行う。   The four or more data received by the receiving unit 12 usually includes two or more attribute name data and two or more attribute value data paired with the two or more attribute name data. The above inspection is performed on at least one of two or more attribute name data and two or more attribute value data.

すなわち、検査部131の検査対象は、2以上の属性名データおよび2以上の属性値データのうち、いずれか一方でもよいし、両方でもよい。いずれか一方を検査する場合は、検査のための処理負荷の軽減と、ユーザの操作の煩雑さの軽減とを両立できる。両方を検査する場合は、ユーザの操作の煩雑さをより一層低減できる。   That is, the inspection object of the inspection unit 131 may be either one or both of two or more attribute name data and two or more attribute value data. When either one is inspected, it is possible to reduce both the processing load for the inspection and the complexity of the user's operation. When both are inspected, the complexity of the user's operation can be further reduced.

決定部132は、表の中の4以上のデータのレイアウトを決定する。レイアウトの決定とは、レイアウトを構成する情報の生成でも良い。   The determination unit 132 determines the layout of four or more data items in the table. The layout determination may be generation of information constituting the layout.

レイアウトとは、表の中における4以上のデータの配置、または、かかる配置を決定付ける表の構成に関する情報をいう。レイアウトは、ページ内の表領域等の領域を規定する情報を含んでも良い。   The layout refers to information on the arrangement of four or more data in the table or the configuration of the table that determines the arrangement. The layout may include information defining a region such as a table region in the page.

レイアウトは、例えば、表の中の列の数、表の中の行の数、セル内でのデータの位置、データのプロパティなどに関する情報を含んでもよい。プロパティは、データの長さやフォントを含んでもよい。また、レイアウトは、例えば、4以上のデータを、表の4以上のセルのうち、どのセルの位置に配置するか、といった情報を含んでいてもよい。   The layout may include, for example, information about the number of columns in the table, the number of rows in the table, the position of the data in the cell, the data properties, and the like. Properties may include data length and font. In addition, the layout may include information such as which cell position among four or more cells in the table is arranged, for example.

また、レイアウトは、例えば、表を構成する2以上の各列の幅を示す情報(列情報)、または、表を構成する2以上の各行の高さを示す情報(行情報)のうち、1以上の情報を含んでいてもよい。言い換えると、レイアウトは、一の行を構成する2以上の各セルの幅、または、一の列を構成する2以上の各セルの高さのうち、少なくとも1つの情報を含んでいてもよい。あるは、レイアウトは、各セルのサイズ(幅、高さ、対角線の長さ、面積等)に関する情報を含んでいてもよい。   The layout includes, for example, 1 of information (column information) indicating the width of each of two or more columns constituting the table, or information (row information) indicating the height of each of two or more rows configuring the table. The above information may be included. In other words, the layout may include at least one information of the width of each of two or more cells constituting one row or the height of each of two or more cells constituting one column. Alternatively, the layout may include information on the size (width, height, diagonal length, area, etc.) of each cell.

決定とは、決められたレイアウトの変更も含む。変更は、1回限りの変更に限らず、複数回の変更を含む。複数回の変更は、定期的または不定期的な変更、断続的な変更、連続的な変更(調整)などを含む。   The determination includes changing the determined layout. The change is not limited to a one-time change, but includes a plurality of changes. Multiple changes include regular or irregular changes, intermittent changes, continuous changes (adjustments), and the like.

例えば、レイアウトが列情報および行情報を含む場合、決定は、列情報および行情報のうち少なくとも1つの情報の格納部11への蓄積であってもよい。   For example, when the layout includes column information and row information, the determination may be an accumulation of at least one of the column information and the row information in the storage unit 11.

また、決定は、4以上の各データが配置されるべきセルを示す行番号および列番号の組(i,j)の決定であってもよい。   The determination may be determination of a set (i, j) of row numbers and column numbers indicating cells in which each of four or more pieces of data should be arranged.

また、レイアウトは、例えば、表を構成する各セル内におけるデータの配置に関する情報を含んでいてもよい。セル内におけるデータの配置に関する情報とは、例えば、セル内に納まらないデータを折り返して配置するか、縮小して配置するかといった情報や、データをセル内に左詰めで配置するか右詰めで配置するか中央に配置するかといった情報である   In addition, the layout may include, for example, information regarding data arrangement in each cell constituting the table. Information on the arrangement of data in a cell includes, for example, information such as whether data that does not fit in a cell is to be folded or placed, or data that is placed left-justified or right-justified in a cell. Information about whether to place in the center or in the center

決定部132は、検査部131の検査結果を基に、表の中の4以上のデータのレイアウトを決定する。   The determination unit 132 determines the layout of four or more data in the table based on the inspection result of the inspection unit 131.

決定部132は、受付部12が受け付けた4以上のデータを、表を構成するどのセルに配置するかを決定する。   The determination unit 132 determines which cell constituting the table to arrange the four or more data received by the reception unit 12.

処理部13は、例えば、4以上のデータの配置先を、例えば、1番目のデータをセルC(1,1)に、2番目のデータをセルC(1,2)に、…というように、並んでいる順に決定してもよい。   For example, the processing unit 13 arranges four or more data, for example, the first data in the cell C (1, 1), the second data in the cell C (1, 2), and so on. It may be determined in the order in which they are arranged.

または、例えば、決定部132は、検査部131が属性名データであると判別した2以上のデータが、2以上の行のうち一の行、または2以上の列のうち一の列に配置されるように、表の中における4以上のデータのレイアウト(例えば配置先のセル)を決定してもよい。   Alternatively, for example, the determination unit 132 arranges two or more data determined by the inspection unit 131 as attribute name data in one row of two or more rows or one column of two or more columns. As described above, a layout of four or more data in the table (for example, a cell to be arranged) may be determined.

具体的には、決定部132は、例えば、2以上の属性名データが、2以上の行のうちの第1行(最上位の行)に配置されるように、4以上のデータの配置先を決定する。または、決定部132は、例えば、2以上の属性名データが、2以上の列のうち第1列(最も左の列)に配置されるように、4以上のデータの配置先を決定する。ただし、2以上の属性名データの配置先は、2以上の行のうちどの行を構成する2以上のセルでもよいし、2以上の列のうちどの列を構成する2以上のセルでもよい。   Specifically, the determination unit 132 arranges four or more pieces of data so that, for example, two or more pieces of attribute name data are arranged in the first row (the top row) of the two or more rows. To decide. Or the determination part 132 determines the arrangement | positioning destination of 4 or more data so that 2 or more attribute name data may be arrange | positioned in the 1st column (leftmost column) among 2 or more columns, for example. However, the arrangement destination of two or more attribute name data may be two or more cells constituting any row of two or more rows, or two or more cells constituting any column of two or more columns.

なお、以下では、4以上のデータのうち、セルC(i,j)に配置されることが決定されたデータを“データD(i,j)”のように記す場合がある。   In the following description, data determined to be arranged in the cell C (i, j) among the four or more data may be described as “data D (i, j)”.

また、決定部132は、検査部131の検査結果を基に、表を構成する列または行のサイズ、またはサイズに関する比を決定してもよい。   Further, the determination unit 132 may determine the size of the columns or rows constituting the table, or the ratio relating to the size, based on the inspection result of the inspection unit 131.

表を構成する列または行のサイズとは、例えば、表を構成する2以上の各列の幅、または表を構成する2以上の各行の高さのうち、1種類以上の情報である。表を構成する列または行のサイズに関する比とは、例えば、表を構成する2以上の各列の幅の比、または表を構成する2以上の各行の高さの比うち、1種類以上の情報である。   The size of the column or row constituting the table is, for example, one or more types of information among the width of each of two or more columns constituting the table or the height of each of the two or more rows constituting the table. The ratio related to the size of the columns or rows constituting the table is, for example, the ratio of the widths of two or more columns constituting the table, or the ratio of the heights of two or more rows constituting the table. Information.

決定部132は、例えば、検査部131が取得したプロパティによって、表を構成する2以上の各列の幅または幅の比、または表を構成する2以上の各行の高さまたは高さの比のうち、1種類以上の情報を決定する。   For example, depending on the property acquired by the inspecting unit 131, the determination unit 132 determines the width or width ratio of each of two or more columns constituting the table, or the height or height ratio of each of two or more rows that constitute the table. Of these, one or more types of information are determined.

例えば、検査部131は、各データのプロパティからデータの長さを抽出し、決定部132は、検査部131が抽出した各データの長さを基に、2以上の各列の幅、または2以上の各行の高さに関する比を決定する。   For example, the inspection unit 131 extracts the length of data from the property of each data, and the determination unit 132 determines the width of each of two or more columns based on the length of each data extracted by the inspection unit 131, or 2 Determine the ratio for the height of each row above.

具体的には、例えば、受付部12が、2中2列の表に配置される4つのデータを受け付け、検査部131が、各データのプロパティから、データの長さ“4”,“6”,“9”,“2”を抽出した場合、決定部132は、次のようにして、2つの列の幅の比を決定することができる。   Specifically, for example, the reception unit 12 receives four pieces of data arranged in a table of two columns in two, and the inspection unit 131 determines the data lengths “4” and “6” from the properties of each data. , “9”, “2” are extracted, the determination unit 132 can determine the ratio of the widths of the two columns as follows.

決定部132は、まず、第1列に属する2つのデータの長さ“4”および“9”のうち、最も長い“9”を、第1列の代表値に決定する。次に、決定部132は、第2列に属する2つのデータの長さ“6”および“2”のうち、最も長い“6”を、第2列の代表値に決定する。次に、決定部132は、第1列の幅および第2列の幅の比を、代表値に応じた比である9対6(つまり3対2)に決定する。   First, the determination unit 132 determines the longest “9” among the lengths “4” and “9” of the two data belonging to the first column as the representative value of the first column. Next, the determination unit 132 determines the longest “6” among the lengths “6” and “2” of the two data belonging to the second column as the representative value of the second column. Next, the determination unit 132 determines the ratio of the width of the first column and the width of the second column to 9: 6 (that is, 3: 2) that is a ratio corresponding to the representative value.

また、例えば、受付部12が、2中2列の表に配置される4つのデータを受け付け、検査部131が、各データのプロパティから、データの長さ“3”,“2”,“4”,“1”を抽出した場合、決定部132は、例えば、次のようにして、2つの行の高さの比を決定することもできる。   Further, for example, the reception unit 12 receives four pieces of data arranged in a table of two columns in two, and the inspection unit 131 determines the data lengths “3”, “2”, “4” from the properties of each data. When “,” “1” is extracted, the determination unit 132 can determine the ratio of the heights of the two rows as follows, for example.

決定部132は、まず、第1行に属する2つのデータの長さ“3”および“2”のうち、最も長い“3”を、第1行の代表値に決定する。次に、決定部132は、第2行に属する2つのデータの長さ“4”および“1”のうち、最も長い“4”を、第2行の代表値に決定する。次に、決定部132は、第1行の高さおよび第2行の高さの比を、代表値に応じた比である3対4に決定する。   The determination unit 132 first determines the longest “3” among the lengths “3” and “2” of the two data belonging to the first row as the representative value of the first row. Next, the determination unit 132 determines the longest “4” among the lengths “4” and “1” of the two data belonging to the second row as the representative value of the second row. Next, the determination unit 132 determines the ratio of the height of the first row and the height of the second row to 3 to 4, which is a ratio according to the representative value.

また、例えば、受付部12が、2中2列の表に配置される4つのデータを受け付け、検査部131が、各データのプロパティから、データの横方向および縦方向の長さ“4×3”,“6×2”,“9×4”,“2×1”を抽出した場合、決定部132は、上記と同様にして、横方向の長さ“4”,“6”,“9”,“2”を基に、2つの列の幅の比を3対2に決定し、かつ、縦方向の長さ“3”,“2”,“4”,“1”を基に、2の行の高さの比を3対4に決定することができる。   In addition, for example, the reception unit 12 receives four pieces of data arranged in a table with two columns in two, and the inspection unit 131 determines the horizontal and vertical lengths of data “4 × 3” from the properties of each data. ”,“ 6 × 2 ”,“ 9 × 4 ”,“ 2 × 1 ”are extracted, the determination unit 132 performs the horizontal lengths“ 4 ”,“ 6 ”,“ 9 ”in the same manner as described above. ”,“ 2 ”, the ratio of the widths of the two columns is determined to be 3 to 2, and the longitudinal lengths“ 3 ”,“ 2 ”,“ 4 ”,“ 1 ” The ratio of the heights of the two rows can be determined to be 3 to 4.

なお、上で挙げたデータの長さは、例えば、文字数であるが、バイト数、画素数などでもよい。   The length of the data mentioned above is, for example, the number of characters, but may be the number of bytes, the number of pixels, or the like.

また、データが文字データおよび画像データの両方を含む場合は、例えば、画像データの画素数(例えば縦20画素×横100画素等)と、文字データのフォントサイズ(例えば10ポイント等)とを基に、画像データの横方向の画素数が文字何個分の長さに相当するかを計算し、計算結果を文字数に加算することで、データの長さを求めてもよい。   When the data includes both character data and image data, for example, based on the number of pixels of the image data (for example, vertical 20 pixels × horizontal 100 pixels) and the font size of the character data (for example, 10 points). Alternatively, the length of the data may be obtained by calculating the number of characters corresponding to the number of pixels in the horizontal direction of the image data and adding the calculation result to the number of characters.

また、文字数は、全角、半角や、字間のスペースを考慮した数値であることが望ましい。例えば、検査部131は、全角の文字は1文字、半角の文字は0.5文字として数え、字間のスペースも、全角は1文字、半角は0.5文字として、文字数に含めてよい。   The number of characters is preferably a numerical value that takes into consideration full-width, half-width, and space between characters. For example, the inspection unit 131 may count a full-width character as one character and a half-width character as 0.5 character, and may include spaces between characters as a full-width character and a half-width character as 0.5 characters.

また、上の例では、決定部132は、2以上の長さのうち、最も長い長さを代表値に決定しているが、例えば、2以上の長さの平均値を代表値に決定してもよい。   In the above example, the determination unit 132 determines the longest length among the two or more lengths as the representative value. For example, the determination unit 132 determines the average value of the two or more lengths as the representative value. May be.

または、決定部132は、3以上の長さの中間値(中間値が2つある場合は、それらの平均値)を代表値に決定してもよい。   Alternatively, the determining unit 132 may determine an intermediate value having a length of 3 or more (or an average value of two intermediate values) as a representative value.

3以上の長さの中に、他の値から大きく外れた値である外れ値が含まれている場合は、決定部132は、3以上の長さの中から当該外れ値を除外した上で、代表値を決定してもよい。外れ値か否かの判定は、例えば、検定等の公知のアルゴリズムを用いて行うことができる。   When an outlier that is a value greatly deviating from other values is included in the length of 3 or more, the determination unit 132 excludes the outlier from the length of 3 or more. The representative value may be determined. The determination of whether or not an outlier is present can be performed using a known algorithm such as a test.

配置部133は、決定部132が決定したレイアウトに従って、表の中に、4以上のデータを配置する。   The arrangement unit 133 arranges four or more pieces of data in the table according to the layout determined by the determination unit 132.

レイアウトに従う配置とは、例えば、4以上のデータを、表の4以上のセルのうち、決定部132が決定したセルの位置に配置することであってもよい。   The arrangement according to the layout may be, for example, arranging four or more pieces of data at the position of the cell determined by the determining unit 132 among the four or more cells in the table.

また、レイアウトに従う配置とは、例えば、決定部132が、列情報または行情報の少なくとも1つの情報を含むレイアウトを決定した場合、当該レイアウトに応じた構成を有する表に、4以上のデータを配置することであってもよい。   Also, the arrangement according to the layout means that, for example, when the determining unit 132 determines a layout including at least one piece of column information or row information, four or more pieces of data are arranged in a table having a configuration corresponding to the layout. It may be to do.

出力部14は、格納部11に格納されているページ情報を用いて、配置部133が4以上のデータを配置した表を含むページを出力する。   The output unit 14 uses the page information stored in the storage unit 11 to output a page including a table in which the arrangement unit 133 arranges four or more pieces of data.

出力とは、例えば、ディスプレイへの表示、プリンタでの印字、外部の装置への送信、記録媒体への蓄積、他の処理装置や他のプログラムなどへの処理結果の引渡しなどを含む概念である。   Output is a concept that includes, for example, display on a display, printing on a printer, transmission to an external device, storage in a recording medium, delivery of a processing result to another processing device or another program, and the like. .

出力部14は、例えば、商品の写真やイラストといった画像が画像領域に、商品の商品名や説明文を含む文章が文章領域に、商品の品番やサイズや価格などを記載した表が表領域に、それぞれ配置されたページを、ディスプレイ等の出力デバイスを介して出力する。   For example, the output unit 14 displays images such as product photos and illustrations in the image area, sentences including the product name and description of the product in the text area, and a table describing the product number, size, price, and the like in the table area. The arranged pages are output via an output device such as a display.

格納部11は、例えばハードディスクやフラッシュメモリといった不揮発性の記録媒体が好適であるが、揮発性の記録媒体でも実現可能である。   The storage unit 11 is preferably a non-volatile recording medium such as a hard disk or a flash memory, but can also be realized by a volatile recording medium.

格納部11にプログラム、ページ情報等の情報が記憶される過程は問わない。例えば、CD−ROMやメモリカードのような着脱式の記録媒体を介して情報が格納部11で記憶されるようになってもよく、通信回線等を介して送信された情報が格納部11で記憶されるようになってもよく、あるいは、入力デバイスを介して入力された情報が格納部11で記憶されるようになってもよい。   The process in which information, such as a program and page information, is stored in the storage unit 11 does not matter. For example, information may be stored in the storage unit 11 via a removable recording medium such as a CD-ROM or a memory card, and information transmitted via a communication line or the like may be stored in the storage unit 11. The information may be stored, or the information input via the input device may be stored in the storage unit 11.

入力デバイスは、キーボードやマウスやタッチパネルや入力コネクタによるもの等、何でもよい。   The input device may be anything such as a keyboard, mouse, touch panel, or input connector.

受付部12は、入力デバイスを含むと考えても含まないと考えてもよい。すなわち、受付部12は、入力デバイスのデバイスドライバーまたは、入力デバイスのデバイスドライバーと入力デバイス等で実現され得る。   The receiving unit 12 may be considered as including or not including an input device. That is, the receiving unit 12 can be realized by a device driver of an input device or a device driver and an input device of the input device.

処理部13、検査部131、決定部132、配置部133は、通常、MPUやメモリ等のハードウェアと、メモリに格納されているソフトウェアとの協働により実現されるが、ハードウェアのみ(専用回路)で実現してもよい。なお、以下では、MPUおよびメモリ等のハードウェアを“コンピュータ”、このコンピュータを処理部13等として機能させるソフトウェアを“プログラム”と呼ぶ場合がある。   The processing unit 13, the inspection unit 131, the determination unit 132, and the arrangement unit 133 are usually realized by the cooperation of hardware such as an MPU or a memory and software stored in the memory, but only the hardware (dedicated Circuit). Hereinafter, hardware such as an MPU and a memory may be referred to as a “computer”, and software that causes the computer to function as the processing unit 13 or the like may be referred to as a “program”.

出力部14は、ディスプレイやスピーカーやコネクタ等の出力デバイスを含むと考えても含まないと考えてもよい。すなわち、出力部14は、出力デバイスのドライバーソフトまたは、出力デバイスのドライバーソフトと出力デバイス等で実現され得る。   The output unit 14 may be considered as including or not including an output device such as a display, a speaker, or a connector. In other words, the output unit 14 can be realized by driver software for an output device or driver software for an output device and an output device.

次に、表情報処理装置1の動作について、図2,図3のフローチャートと、図4〜図9のデータ構造等とを用いて説明する。なお、既出の事項に関する説明は、省略または簡略化する場合がある。   Next, the operation of the table information processing apparatus 1 will be described with reference to the flowcharts of FIGS. 2 and 3 and the data structures of FIGS. Note that the description regarding the matters already described may be omitted or simplified.

図2は、表情報処理装置1の全体動作に関するフローチャートである。図3は、表情報処理装置1の一部動作の詳細に関するフローチャートである。フローチャートによる動作説明の前に、データ構造等について説明しておく。   FIG. 2 is a flowchart regarding the overall operation of the table information processing apparatus 1. FIG. 3 is a flowchart relating to details of a partial operation of the table information processing apparatus 1. Prior to the description of the operation by the flowchart, the data structure and the like will be described.

格納部11には、1または2以上のページに対応する1または2以上のページ情報が格納されている。   The storage unit 11 stores one or more page information corresponding to one or more pages.

図4は、ページの構成例を示す図であり、図5は、当該ページに対応するページ情報のデータ構造図である。ページは、1以上の領域、例えば、矩形の領域E1,E2,E3,…を含む。ページ情報は、当該1以上の領域に対応する1以上の領域情報を含む。   FIG. 4 is a diagram illustrating a configuration example of a page, and FIG. 5 is a data structure diagram of page information corresponding to the page. The page includes one or more areas, for example, rectangular areas E1, E2, E3,. The page information includes one or more area information corresponding to the one or more areas.

領域に対応する領域情報とは、例えば、当該領域を識別する領域ID、当該領域を決める始点および終点、当該領域に配置されるコンテンツを識別するコンテンツIDなどを含む情報である。始点および終点は、例えば(x,y)といった座標であるが、ページ内における位置を一意に決め得る情報であれば形式は問わない。   The area information corresponding to the area is information including, for example, an area ID for identifying the area, a start point and an end point for determining the area, a content ID for identifying content arranged in the area. The start point and the end point are coordinates such as (x, y), for example, but any format can be used as long as the information can uniquely determine the position in the page.

例えば、領域E1に対応する領域情報は、領域ID“E1”、始点P1および終点Q1、コンテンツID“K1”などを含む。領域E2に対応する領域情報は、領域ID“E2”、始点P2および終点Q2、コンテンツID“K2”などを含む。領域E3に対応する領域情報は、領域ID“E3”、始点P3および終点Q3、コンテンツID“K3”などを含む。   For example, the area information corresponding to the area E1 includes an area ID “E1”, a start point P1 and an end point Q1, a content ID “K1”, and the like. The area information corresponding to the area E2 includes an area ID “E2”, a start point P2 and an end point Q2, a content ID “K2”, and the like. The area information corresponding to the area E3 includes an area ID “E3”, a start point P3 and an end point Q3, a content ID “K3”, and the like.

ここでは、コンテンツK1は画像、コンテンツK2は文章、コンテンツK3は表であるとする。従って、領域E1は画像領域、領域E2は文章領域、領域E3は表領域である。   Here, it is assumed that the content K1 is an image, the content K2 is a sentence, and the content K3 is a table. Therefore, the area E1 is an image area, the area E2 is a text area, and the area E3 is a table area.

図6は、表領域に配置される表の構成例を示す図である。表は、2以上の行(第1行,第2行,…,第i行,…)と、2以上の列(第1列,第2列,…,第j列,…)とで構成される。表に含まれる4以上の各セルは、当該セルが属する行の番号および列の番号の組(i,j)で識別される。以下では、第i行第j列に属するセルを“セルC(i,j)”のように記す場合がある。   FIG. 6 is a diagram illustrating a configuration example of a table arranged in the table area. The table is composed of two or more rows (first row, second row, ..., i-th row, ...) and two or more columns (first column, second column, ..., j-th column, ...). Is done. Each of the four or more cells included in the table is identified by a set (i, j) of row numbers and column numbers to which the cells belong. Hereinafter, a cell belonging to the i-th row and j-th column may be described as “cell C (i, j)”.

格納部11には、さらに、上記1以上のページ情報と対にして、表を構成する行および列に関する行情報および列情報の組が1組以上、格納されている。   The storage unit 11 further stores one or more sets of row information and column information related to the rows and columns constituting the table in pairs with the one or more page information.

図7は、列情報のデータ構造図である。この列情報は、例えば、列を識別する列ID(R1,R2,…)と、列の幅を示す値(d1,d2,…)との対の集合で構成され、列R1(第1列)の幅がd1、列R2(第2列)の幅がd2、…であることを示す。なお、各列の幅が同じである場合は、列情報は、一の列の幅を示す値でもよい。   FIG. 7 is a data structure diagram of column information. This column information is composed of, for example, a set of pairs of column IDs (R1, R2,...) For identifying columns and values (d1, d2,...) Indicating column widths, and column R1 (first column). ) Is d1, and the width of the column R2 (second column) is d2,. If the widths of the columns are the same, the column information may be a value indicating the width of one column.

図8は、行情報のデータ構造図である。この行情報は、例えば、行を識別する行ID(L1,L2,…)と、行の高さを示す値(h1,h2,…)との対の集合で構成され、行L1(第1行)の高さがh1、行L2(第2行)の高さがh2、であることを示す。なお、各行の幅が同じである場合は、行情報は、一の行の高さを示す値でもよい。   FIG. 8 is a data structure diagram of row information. This row information is composed of, for example, a set of pairs of row IDs (L1, L2,...) For identifying the rows and values (h1, h2,...) Indicating the heights of the rows. The height of the row) is h1, and the height of the row L2 (second row) is h2. When the width of each line is the same, the line information may be a value indicating the height of one line.

図9は、表に配置される4以上のデータに関するデータ構造図である。4以上の各データは、当該データのプロパティなどと対応付いている。   FIG. 9 is a data structure diagram regarding four or more data arranged in a table. Each of the four or more data is associated with the property of the data.

例えば、1番目のデータの内容は“品番”であり、1番目のデータのプロパティは“文字・全角・2文字・属性名データ…”といった情報を含む。同様に、2番目のデータの内容は“サイズ”であり、2番目のデータのプロパティは“文字・全角・3文字・属性名データ…”といった情報を含む。3番目のデータの内容は“価格”であり、3番目のデータのプロパティは“文字・全角・2文字・属性名データ…”といった情報を含む。   For example, the content of the first data is “article number”, and the property of the first data includes information such as “character, double-byte, two characters, attribute name data, etc.”. Similarly, the content of the second data is “size”, and the property of the second data includes information such as “character, double-byte, three characters, attribute name data, etc.”. The content of the third data is “price”, and the property of the third data includes information such as “character, double-byte, two characters, attribute name data, etc.”.

また、n+1番目のデータの内容は“A-100-001”であり、n+1番目のデータのプロパティは“文字・半角・9文字・属性値データ”といった情報を含む。同様に、n+2番目のデータの内容は“5m”であり、n+2番目のデータのプロパティは“文字・半角・2文字・属性値データ”といった情報を含む。n+3番目のデータの内容は“\1,000”であり、n+3番目のデータのプロパティは“文字・半角・6文字・属性値データ”といった情報を含む。   The content of the (n + 1) th data is “A-100-001”, and the properties of the (n + 1) th data include information such as “character / half-width / 9 characters / attribute value data”. Similarly, the content of the (n + 2) th data is “5m”, and the properties of the (n + 2) th data include information such as “character / half-width / two characters / attribute value data”. The content of the (n + 3) th data is “¥ 1,000”, and the properties of the (n + 3) th data include information such as “character / half-width / six characters / attribute value data”.

また、2n+1番目のデータの内容は“A-100-002”であり、2n+1番目のデータのプロパティは“文字・半角・9文字・属性値データ”といった情報を含む。同様に、2n+2番目のデータの内容は“10m”であり、2n+2番目のデータのプロパティは“文字・半角・3文字・属性値データ”といった情報を含む。2n+3番目のデータの内容は“\1,500”であり、2n+3番目のデータのプロパティは“文字・半角・6文字・属性値データ”といった情報を含む。   The content of the (2n + 1) th data is “A-100-002”, and the properties of the (2n + 1) th data include information such as “character / half-width / 9 characters / attribute value data”. Similarly, the content of the 2n + 2nd data is “10m”, and the property of the 2n + 2nd data includes information such as “character / half-width / three characters / attribute value data”. The content of the 2n + 3rd data is “¥ 1,500”, and the property of the 2n + 3rd data includes information such as “character, half-width, 6 characters, attribute value data”.

図2,図3のフローチャートは、表情報処理装置1の電源オンまたはプログラムの起動などに応じて開始する。   The flowcharts of FIGS. 2 and 3 are started when the table information processing apparatus 1 is turned on or a program is started.

(ステップS201)処理部13は、格納部11に未取得のページ情報があるか否かを判別する。   (Step S201) The processing unit 13 determines whether there is unacquired page information in the storage unit 11.

格納部11に格納されている1以上の各ページ情報には、未取得か取得済みかを示すフラグが対応付いており、処理部13は、かかるフラグを基に、未取得のページ情報と取得済みのページ情報とを識別できる。   Each of the one or more pieces of page information stored in the storage unit 11 is associated with a flag indicating whether it has not been acquired or has been acquired, and the processing unit 13 acquires unacquired page information and acquisition based on the flag. Can be identified from the page information.

格納部11に未取得のページ情報があると判別された場合はステップS202に進み、ないと判別された場合は処理を終了する。   If it is determined that there is unacquired page information in the storage unit 11, the process proceeds to step S202. If it is determined that there is no page information, the process ends.

(ステップS202)処理部13は、格納部11から未取得ページ情報のうち1つを取得する。これに伴い、処理部13は、取得したページ情報に対応するフラグを、未取得から取得済みに変更する。   (Step S <b> 202) The processing unit 13 acquires one of the unacquired page information from the storage unit 11. Accordingly, the processing unit 13 changes the flag corresponding to the acquired page information from unacquired to acquired.

(ステップS203)受付部12は、取得したページ情報で構成されるページ内の表に配置される4以上のデータを受け付ける。なお、受け付けるデータの個数は、4個以上であれば何個でもよい。また、4以上のデータは、例えばCSV形式のデータであるが、データ形式は問わない。   (Step S203) The reception unit 12 receives four or more pieces of data arranged in a table in a page configured by the acquired page information. Note that the number of received data may be any number as long as it is four or more. The four or more data are, for example, CSV format data, but the data format is not limited.

(ステップS204)検査部131は、処理部13が受け付けた4以上のデータを検査する。なお、検査については詳述したので繰り返さない。   (Step S204) The inspection unit 131 inspects four or more data received by the processing unit 13. Since the inspection has been described in detail, it will not be repeated.

(ステップS205)決定部132は、検査処理の結果である4以上の検査結果を基に、表内の4以上のデータの配置を決定する処理である決定処理を実行する。なお、決定処理については後述する。   (Step S205) The determination unit 132 executes determination processing that is processing for determining the arrangement of four or more data items in the table based on four or more inspection results that are the results of the inspection processing. The determination process will be described later.

(ステップS206)配置部133は、決定部132が決定したレイアウトに従って、表の中に4以上のデータを配置する。   (Step S206) The arrangement unit 133 arranges four or more pieces of data in the table according to the layout determined by the determination unit 132.

(ステップS207)出力部14は、処理部13が取得したページ情報を用いて、配置部133が4以上のデータを配置した表を含むページを出力する。その後、ステップS201に戻る。   (Step S207) The output unit 14 uses the page information acquired by the processing unit 13 to output a page including a table in which the arrangement unit 133 arranges four or more pieces of data. Thereafter, the process returns to step S201.

図3は、決定処理の一例を示すフローチャートである。   FIG. 3 is a flowchart illustrating an example of the determination process.

(ステップS301)決定部132は、検査結果を基に、表を構成する行の数(m)および表を構成する列の数(n)と、4以上のデータの配置先となるセルC(i,j)とを決定する。   (Step S301) Based on the inspection result, the determination unit 132 determines the number of rows constituting the table (m), the number of columns that constitute the table (n), and the cell C ( i, j).

詳しくは、まず、行の数mおよび列の数nに関し、決定部132は、例えば、検査結果の数が9個であり、そのうち3個の検査結果が属性名データを示す場合、m=3,n=3のように決定する。   Specifically, first, regarding the number m of rows and the number n of columns, for example, when the number of inspection results is nine and three inspection results indicate attribute name data, m = 3 , N = 3.

次に、配置先に関し、決定部132は、検査結果が属性名データである2以上のデータを、例えば、2以上の行のうち一の行(例えば最上位の行L1)を構成する2以上のセル、または、2以上の列のうち一の列を構成する2以上のセルに配置することを決定する。ただし、1番目のデータをセルC(1,1)に、2番目のデータをセルC(1,2)に、…のように、並んでいる順番に決定してもよい。以下では、セルC(i,j)に配置することが決定されたデータを、データD(i,j)のように記す場合がある。   Next, regarding the arrangement destination, the determination unit 132 sets two or more pieces of data whose inspection result is attribute name data, for example, two or more pieces constituting one row (for example, the top row L1) among the two or more rows. Or two or more cells constituting one column of two or more columns. However, the first data may be determined in the order in which they are arranged, such as the cell C (1,1), the second data in the cell C (1,2), and so on. Hereinafter, data determined to be arranged in the cell C (i, j) may be described as data D (i, j).

(ステップS302)決定部132は、列番号を示す変数jに初期値“1”をセットする。   (Step S302) The determination unit 132 sets an initial value “1” to a variable j indicating a column number.

(ステップS303)決定部132は、行番号を示す変数iに初期値“1”をセットする。   (Step S303) The determination unit 132 sets an initial value “1” to a variable i indicating a row number.

(ステップS304)決定部132は、変数iが行の数m以下か否かを判別する。変数iが行の数m以下である(j≦m)と判別された場合はステップS305に進み、変数iが列の数m以下でない(j>m)と判別された場合はステップS308に進む。   (Step S304) The determination unit 132 determines whether the variable i is equal to or less than the number m of rows. If it is determined that the variable i is equal to or less than the number m of rows (j ≦ m), the process proceeds to step S305, and if it is determined that the variable i is not equal to or less than the number m of columns (j> m), the process proceeds to step S308. .

(ステップS305)決定部132は、変数jが列の数n以下か否かを判別する。変数jが列の数n以下である(j≦n)と判別された場合はステップS306に進み、変数jが列の数n以下でない(j>n)と判別された場合はステップS310に進む。   (Step S305) The determination unit 132 determines whether the variable j is equal to or less than the number n of columns. If it is determined that the variable j is less than or equal to the number of columns n (j ≦ n), the process proceeds to step S306. If it is determined that the variable j is not less than the number n of columns (j> n), the process proceeds to step S310. .

(ステップS306)決定部132は、格納部11から検査結果T(i,j)を取得する。   (Step S306) The determination unit 132 acquires the inspection result T (i, j) from the storage unit 11.

なお、格納部11に検査結果T(i,j)が格納されていない場合は、未取得のままステップS307に進んでよい。   If the test result T (i, j) is not stored in the storage unit 11, the process may proceed to step S307 without being acquired.

(ステップS307)決定部132は、変数iをインクリメントする。その後、ステップS304に戻る。   (Step S307) The determination unit 132 increments the variable i. Thereafter, the process returns to step S304.

(ステップS308)決定部132は、第j列に対応するn個の検査結果T(1,j)〜T(n,j)の代表値Sjを決定する。   (Step S308) The determining unit 132 determines a representative value Sj of n test results T (1, j) to T (n, j) corresponding to the j-th column.

例えば、決定部132は、検査結果T(1,j)〜T(n,j)の平均値を代表値Sjに決定する。   For example, the determination unit 132 determines the average value of the inspection results T (1, j) to T (n, j) as the representative value Sj.

または、決定部132は、検査結果T(1,j)〜T(n,j)の中央値を代表値Sjに決定してもよいし、中央値が2つの場合はそれらの平均値を代表値に決定してもよいし、代表値の決め方は問わない。   Alternatively, the determination unit 132 may determine the median value of the inspection results T (1, j) to T (n, j) as the representative value Sj, and if there are two median values, the average value thereof is represented. The value may be determined, and the method of determining the representative value does not matter.

なお、決定部132は、検査結果T(1,j)〜T(n,j)から、“属性名データ”を含む検査結果を除外した上で、代表値Sjの決定を行ってもよい。   Note that the determination unit 132 may determine the representative value Sj after excluding the inspection result including “attribute name data” from the inspection results T (1, j) to T (n, j).

また、決定部132は、例えば、検査結果T(1,j)〜T(n,j)から外れ値を除外した上で、代表値Sjの決定を行ってもよい。   For example, the determination unit 132 may determine the representative value Sj after excluding outliers from the inspection results T (1, j) to T (n, j).

なお、検査結果が1つの場合は、その検査結果が代表値に決定される。検査結果が1つもない場合は、例えば、デフォルトの値を代表値としてもよい。   When there is one inspection result, the inspection result is determined as a representative value. If there is no inspection result, for example, a default value may be used as a representative value.

(ステップS309)決定部132は、変数jをインクリメントする。その後、ステップS303に戻る。   (Step S309) The determination unit 132 increments the variable j. Thereafter, the process returns to step S303.

(ステップS310)決定部132は、n個の代表値S1〜Snを基に、第1列〜第n列の各幅、ひいては第1列〜第n列の間の幅の比を決定する。   (Step S <b> 310) The determination unit 132 determines the width ratios between the first column to the n-th column and the width between the first column to the n-th column based on the n representative values S <b> 1 to Sn.

決定部132は、第1列〜第n列の間の幅の比を、例えば、n個の代表値S1〜Snに比例するように決定してもよいし、または、n個の基準幅に対して、n個の代表値S1〜Snに比例する付加幅を付加することにより決定してもよいし、決定方法は問わない。   The determination unit 132 may determine the ratio of the width between the first column to the n-th column so as to be proportional to, for example, n representative values S1 to Sn, or to n reference widths. On the other hand, it may be determined by adding an additional width proportional to the n representative values S1 to Sn, and the determination method is not limited.

例えば、列の数nが3個で、各列の代表値がS1=4,S2=6,S3=2の場合、第1列,第2列,第3列の間の幅の比は、代表値に比例するように、4対6対2つまり2対3対1に決定されてもよい。または、3個の基準値2,2,2に、代表値に比例する3個の付加値、例えば2,3,1を加算することにより、4対4対3のように決定されてもよい。   For example, when the number n of columns is 3, and the representative values of each column are S1 = 4, S2 = 6, and S3 = 2, the width ratio between the first column, the second column, and the third column is It may be determined to be 4 to 6 to 2, that is, 2 to 3 to 1, in proportion to the representative value. Alternatively, it may be determined as 4 to 4 by 3 by adding three additional values proportional to the representative value, for example, 2, 3, and 1, to the three reference values 2, 2, and 2. .

代表値に比例する比が、例えば13対4対6の場合、値を丸めて、例えば12対4対6つまり6対2対3のように決定されてもよい。   When the ratio proportional to the representative value is, for example, 13: 4: 6, the value may be rounded to be determined, for example, 12: 4: 6, that is, 6: 2: 3.

その後、図2のフローチャートにリターンする。   Thereafter, the process returns to the flowchart of FIG.

図3のフローチャートによれば、表を構成する各列の幅の比を決定することができる。   According to the flowchart of FIG. 3, the ratio of the widths of the columns constituting the table can be determined.

また、図3のフローチャートによれば、属性名データおよび属性値データの両方またはいずれか一方に関する検査結果を基に、表を構成する各列の幅の比を決定することができる。   In addition, according to the flowchart of FIG. 3, the ratio of the widths of the columns constituting the table can be determined based on the inspection result regarding the attribute name data and / or the attribute value data.

また、図3のフローチャートにおける行と列を入れ替えれば、表を構成する各行の高さの比を決定できる。   Further, if the rows and columns in the flowchart of FIG. 3 are exchanged, the ratio of the heights of the rows constituting the table can be determined.

また、図3のフローチャートを実行し、さらに図3のフローチャートにおける行と列を入れ替えて実行することで、表を構成する各列の幅の比および各行の高さの比の両方を決定することも可能である。   Further, by executing the flowchart of FIG. 3 and further executing by exchanging the rows and columns in the flowchart of FIG. 3, both the width ratio of each column constituting the table and the ratio of the height of each row are determined. Is also possible.

なお、図2,図3のフローチャートにおいては、ステップS203で4以上のデータの受け付けが終わった後に、ステップS204以下の処理を実行しているが、例えば、一のデータの受け付けの度に、ステップS204以下の処理を実行してもよい。   In the flowcharts of FIGS. 2 and 3, after the reception of four or more data is completed in step S203, the processing from step S204 is executed. For example, each time one data is received, the step You may perform the process below S204.

また、図2,図3のフローチャートにおいては、未取得のページがなくなった時に処理が終了しているが、処理は、例えば電源オフや処理終了の割り込み等により終了してもよい。   In the flowcharts of FIGS. 2 and 3, the process is terminated when there are no unacquired pages. However, the process may be terminated by, for example, powering off or interruption of process termination.

次に、本実施の形態における表情報処理装置1の具体的な動作例について説明する。なお、前述と重複する説明は、省略または簡略化する場合がある。   Next, a specific operation example of the table information processing apparatus 1 in the present embodiment will be described. Note that description overlapping with the above description may be omitted or simplified.

以下で説明する動作例は、商品カタログのページを作成する場合の動作であるが、一例に過ぎず、本発明を何ら限定するものではない。また。以下で挙げる、具体的なデータの内容、行の数や幅、列の数や高さ等もまた、単なる例示であり、適宜変更可能である。   The operation example described below is an operation for creating a product catalog page, but is merely an example and does not limit the present invention. Also. Specific contents of data, the number and width of rows, the number and height of columns, and the like described below are also merely examples, and can be changed as appropriate.

表情報処理装置1が起動されると、ディスプレイにページの画像が表示される。表情報処理装置1のユーザは、マウスやタッチパネル等の入力デバイスを操作して、最初、このページに対し、図4に示したような領域E1,E2,E3を指示する。次に、ユーザは、入力デバイスにより、領域E1,E2,E3に配置するコンテンツK1,K2,K3の指示を行う。   When the table information processing apparatus 1 is activated, an image of a page is displayed on the display. The user of the table information processing apparatus 1 operates an input device such as a mouse or a touch panel, and first designates areas E1, E2, and E3 as shown in FIG. 4 for this page. Next, the user instructs the contents K1, K2, and K3 to be arranged in the areas E1, E2, and E3 using the input device.

例えば、コンテンツK1は、商品の写真やイラストといった画像であり、コンテンツK2は、商品の品名や説明文といった文章であり、コンテンツK3は、商品の品番やサイズや価格が登録される表である。このため、コンテンツK1が配置される領域E1は“画像領域”、コンテンツK2が配置される領域E2は“文章領域”、コンテンツK3が配置される領域E3は“表領域”となる。   For example, the content K1 is an image such as a photograph or illustration of a product, the content K2 is a sentence such as a product name or an explanation, and the content K3 is a table in which the product number, size, or price of the product is registered. For this reason, the area E1 in which the content K1 is arranged is “image area”, the area E2 in which the content K2 is arranged is “text area”, and the area E3 in which the content K3 is arranged is “table area”.

表情報処理装置1では、受付部12が、入力デバイスを介して上記のような指示を受け付け、処理部13は、受付部12が受け付けた指示を基に、図5に示したような領域情報を構成し、格納部11に蓄積する。   In the table information processing apparatus 1, the receiving unit 12 receives the above instruction via the input device, and the processing unit 13 is based on the instruction received by the receiving unit 12, as shown in FIG. And is stored in the storage unit 11.

例えば、コンテンツK3は、3行3列の表である。表の構成は、図6に示されている。   For example, the content K3 is a table with 3 rows and 3 columns. The structure of the table is shown in FIG.

次に、処理部13は、この表に関し、図7に示したような列情報と、図8に示したような行情報とを構成し、格納部11に蓄積する。列R1〜R3に対応する幅d1〜d3の初期値(デフォルト)は、いずれも“40”である。行L1〜L3に対応する高さh1〜h3の初期値は、いずれも“20”である。   Next, regarding the table, the processing unit 13 configures column information as shown in FIG. 7 and row information as shown in FIG. The initial values (default) of the widths d1 to d3 corresponding to the columns R1 to R3 are all “40”. The initial values of the heights h1 to h3 corresponding to the rows L1 to L3 are all “20”.

次に、受付部12が、表の中に配置される9つのデータを受け付ける。これら9つのデータは、本例では、記録媒体から読み出されたものであるが、ユーザが入力デバイスで入力したものでもよい。各データの内容およびプロパティは、図9に示されている。各データのプロパティは、本例では、当該データと対にして記録媒体に格納されているが、当該データが入力されたとき、当該データの内容を基に、処理部13によって作成されてもよい。   Next, the reception unit 12 receives nine pieces of data arranged in the table. These nine data are read from the recording medium in this example, but may be those input by the user with an input device. The contents and properties of each data are shown in FIG. In this example, the property of each data is stored in the recording medium in a pair with the data. However, when the data is input, it may be created by the processing unit 13 based on the content of the data. .

検査部131は、処理部13が受け付けた9つのデータD(1,1)〜D(3,3)を検査する。本例では、検査部131は、記録媒体から各データのプロパティを取得するが、各データの内容の検査(例えば、文字コードの識別、文字数のカウント等)によって、図9のプロパティと同様の情報を得てもよい。   The inspection unit 131 inspects the nine data D (1, 1) to D (3, 3) received by the processing unit 13. In this example, the inspection unit 131 acquires the property of each data from the recording medium, but information similar to the property of FIG. 9 is obtained by inspection of the contents of each data (for example, identification of character codes, count of the number of characters, etc.). You may get

検査部131は、こうして得られた、9つのデータD(1,1)〜D(3,3)に対応する9つの検査結果T(1,1)〜T(3,3)を、格納部11に蓄積する。   The inspection unit 131 stores the nine inspection results T (1,1) to T (3,3) corresponding to the nine data D (1,1) to D (3,3) obtained in this way. 11 accumulates.

決定部132は、格納部11に格納されている9つの検査結果T(1,1)〜T(3,3)を基に、表内の9つのデータの配置を決定する。   The determination unit 132 determines the arrangement of nine data in the table based on the nine inspection results T (1,1) to T (3,3) stored in the storage unit 11.

詳しくは、最初、決定部132は、第1列に対応する3個の検査結果T(1,1)〜T(3,1)の代表値S1を決定し、第2列に対応する3個の検査結果T(1,2)〜T(3,2)の代表値S2を決定し、第3列に対応する3個の検査結果T(1,3)〜T(3,3)の代表値S3を決定する。   Specifically, first, the determination unit 132 determines three representative values S1 of the three inspection results T (1,1) to T (3,1) corresponding to the first column, and three corresponding to the second column. Representative values S2 of the inspection results T (1,2) to T (3,2) are determined, and the representative of the three inspection results T (1,3) to T (3,3) corresponding to the third column The value S3 is determined.

本例では、検査部131が図9のようなプロパティを取得し、決定部132は、検査結果T(1,1)に含まれる“全角・2文字”、T(2,1)に含まれる“半角・9文字”、およびT(3,1)に含まれる“半角・9文字”のうち、最も長い“半角・9文字”を代表値S1に決定する。   In this example, the inspection unit 131 acquires properties as shown in FIG. 9, and the determination unit 132 is included in “full-width / 2 characters” and T (2, 1) included in the inspection result T (1, 1). Among “half-width / 9 characters” and “half-width / 9 characters” included in T (3, 1), the longest half-width / 9 characters is determined as the representative value S1.

また、決定部132は、検査結果T(1,2)に含まれる“全角・3文字”、T(2,2)に含まれる“半角・2文字”、およびT(3,2)に含まれる“半角・3文字”のうち、最も長い“全角・3文字(半角・6文字に相当)”を代表値S2に決定する。   Further, the determination unit 132 includes “full-width / three characters” included in the test result T (1, 2), “half-width / two characters” included in T (2, 2), and T (3, 2). Among the “half-width / 3 characters”, the longest “full-width / 3 characters (corresponding to half-width / 6 characters)” is determined as the representative value S2.

また、決定部132は、検査結果T(1,3)に含まれる“全角・3文字”、T(2,3)に含まれる“半角・2文字”、およびT(3,3)に含まれる“半角・3文字”のうち、最も長い“全角・3文字(半角・6文字に相当)”を代表値S3に決定する。   In addition, the determination unit 132 includes “full-width / three characters” included in the inspection result T (1, 3), “half-width / two characters” included in T (2, 3), and T (3, 3). Among the “half-width / 3 characters”, the longest “full-width / 3 characters (corresponding to half-width / 6 characters)” is determined as the representative value S3.

次に、決定部132は、3個の代表値S1〜S3を基に、第1列〜第3列の間の幅の比を決定する。   Next, the determination unit 132 determines the ratio of the width between the first column to the third column based on the three representative values S1 to S3.

本例では、S1が“半角・9文字”、S2が“半角・6文字”、S3が“半角・6文字”なので、決定部132は、第1列〜第3列の間の幅の比を9対6対6、つまり3対2対2に決定する。   In this example, since S1 is “half-width / 9 characters”, S2 is “half-width / six characters”, and S3 is “half-width / six characters”, the determination unit 132 determines the ratio of the width between the first column to the third column. Is determined to be 9 to 6 to 6, that is, 3 to 2 to 2.

これに伴い、決定部132は、格納部11に格納されている列情報(図7参照)を、図10に示すように更新する。更新後の列情報では、列R1の幅d1が40から50に変更され、列R2の幅d2が40から35に変更され、列R3の幅d3が40から35に変更されている。   Accordingly, the determination unit 132 updates the column information (see FIG. 7) stored in the storage unit 11 as illustrated in FIG. In the updated column information, the width d1 of the column R1 is changed from 40 to 50, the width d2 of the column R2 is changed from 40 to 35, and the width d3 of the column R3 is changed from 40 to 35.

配置部133は、こうして決定部132が決定したレイアウトに従って、3行3列の表の中に9個のデータを配置する。   The arrangement unit 133 arranges nine pieces of data in a table of 3 rows and 3 columns according to the layout determined by the determination unit 132 in this way.

本例では、配置部133は、図10に示した列情報に従う幅を有する3つの列と、図8に示した行情報に従う高さを有する3つの行とで構成された、3行3列の表に含まれる9つのセルC(1,1)〜C(3,3)の中に、9つのデータD(1,1)〜D(3,3)を配置する。   In this example, the arrangement unit 133 is composed of three rows and three columns each having three columns having a width according to the column information shown in FIG. 10 and three rows having a height according to the row information shown in FIG. Nine data D (1,1) to D (3,3) are arranged in nine cells C (1,1) to C (3,3) included in the table.

出力部14は、格納部11に格納されているページ情報を用いて、配置部133が上記のようにして9個のデータを配置した3行3列の表を含む、図11に示すようなページを出力する。このページ内の表では、3つの列R1,R2,R3の幅がそれぞれ50,35,35であり、これは、各列に属する3つのデータのうち最長のデータの長さに応じた比率(3対2対2)なので、9個のデータが適切に配置される結果となっている。   The output unit 14 uses the page information stored in the storage unit 11 and includes a 3 × 3 table in which the arrangement unit 133 arranges nine pieces of data as described above, as shown in FIG. Print the page. In the table in this page, the widths of the three columns R1, R2, and R3 are 50, 35, and 35, respectively. This is a ratio according to the length of the longest data among the three data that belong to each column ( Since it is 3 to 2 to 2), 9 data are appropriately arranged.

なお、適切に配置するとは、4以上のデータを、例えば、各データの長さまたはデータタイプの少なくとも一方に応じて、バランスよく配置することであるが、これに限らず、例えば、4以上のデータに含まれる2以上の属性名データが、一の列または一の行に並ぶように配置することでもよく、広く解する。   In addition, arranging appropriately means arranging four or more pieces of data in a balanced manner according to, for example, at least one of the length or data type of each data. It is possible to arrange two or more attribute name data included in the data so that they are arranged in one column or one row, which is widely understood.

なお、上例では、データが属性名データか属性値データかは考慮しておらず、従って、属性名データおよび属性値データの両方についての検査結果を基に、各列の幅を決定しているが、属性値データについての検査結果のみを基に各列の幅を決定してもよい。   Note that the above example does not consider whether the data is attribute name data or attribute value data. Therefore, the width of each column is determined based on the inspection results for both the attribute name data and the attribute value data. However, the width of each column may be determined based only on the inspection result of the attribute value data.

詳しくは、検査部131は、検査を行って得た検査結果が、データタイプ“属性値データ”を含んでいる場合のみ、その検査結果を格納部11に蓄積する。従って、決定部132が決定を行うとき、格納部11に格納されているのは、属性値データD(2,1)〜D(3,3)に関する検査結果T(2,1)〜T(3,3)のみとなる。   Specifically, the inspection unit 131 accumulates the inspection result in the storage unit 11 only when the inspection result obtained by performing the inspection includes the data type “attribute value data”. Therefore, when the determination unit 132 performs the determination, the storage unit 11 stores the inspection results T (2, 1) to T (T) for the attribute value data D (2, 1) to D (3, 3). 3, 3) only.

このため、決定部132は、検査結果T(2,1)に含まれる“半角・9文字”、およびT(3,1)に含まれる“半角・9文字”のうち、最も長い“半角・9文字”を代表値S1に決定する。また、決定部132は、検査結果T(2,2)に含まれる“半角・2文字”、およびT(3,2)に含まれる“半角・3文字”のうち、最も長い“半角・3文字”を代表値S2に決定する。また、決定部132は、検査結果T(2,3)に含まれる“半角・6文字”、およびT(3,3)に含まれる“半角・6文字”のうち、最も長い“半角・6文字”を代表値S3に決定する。   Therefore, the determination unit 132 selects the longest “half-width / 9 characters” included in the test result T (2, 1) and “half-width / 9 characters” included in T (3, 1). “9 characters” is determined as the representative value S1. In addition, the determination unit 132 selects the longest “half-width / 3 characters” among the “half-width / 2 characters” included in the test result T (2, 2) and the “half-width / 3 characters” included in T (3, 2). The character “is determined to be the representative value S2. Further, the determination unit 132 selects the longest “half-width · 6 characters” from among “half-width · 6 characters” included in the test result T (2, 3) and “half-width · 6 characters” included in T (3, 3). “Character” is determined as the representative value S3.

決定部132は、かかる3個の代表値S1〜S3を基に、第1列〜第3列の間の幅の比を9対3対6、つまり3対1対2に決定し、格納部11に格納されている列情報(図7参照)を、図12に示すように更新する。更新後の列情報では、列R1の幅d1が40から60に変更され、列R2の幅d2が40から20に変更され、列R3の幅d3は40に維持されている。   Based on the three representative values S1 to S3, the determination unit 132 determines the ratio of the width between the first column to the third column to 9: 3: 6, that is, 3: 1: 2, and the storage unit The column information (see FIG. 7) stored in 11 is updated as shown in FIG. In the updated column information, the width d1 of the column R1 is changed from 40 to 60, the width d2 of the column R2 is changed from 40 to 20, and the width d3 of the column R3 is maintained at 40.

配置部133は、図12に示した列情報に従う幅を有する3つの列と、図8に示した行情報に従う高さを有する3つの行とで構成された、3行3列の表に含まれる9つのセルC(1,1)〜C(3,3)の中に、9つのデータD(1,1)〜D(3,3)を配置する。   Arrangement unit 133 is included in a 3 × 3 table composed of three columns having a width according to the column information shown in FIG. 12 and three rows having a height according to the row information shown in FIG. 8. Nine data D (1,1) to D (3,3) are arranged in the nine cells C (1,1) to C (3,3).

出力部14は、配置部133が上記のようにして9個のデータを配置した3行3列の表を含む、図13に示すようなページを出力する。このページ内の表では、3つの列R1,R2,R3の幅がそれぞれ60,20,40であり、これは、各列に属する2つの属性値データのうち最長のデータの長さに応じた比率(3対1対2)なので、6個の属性値データが適切に配置される結果となっている。   The output unit 14 outputs a page as shown in FIG. 13 including a 3 × 3 table in which the arrangement unit 133 arranges nine pieces of data as described above. In the table in this page, the widths of the three columns R1, R2, and R3 are 60, 20, and 40, respectively, and this corresponds to the length of the longest data among the two attribute value data belonging to each column. Since the ratio is (3: 1: 1), 6 attribute value data are appropriately arranged.

ただし、属性名データの長さを考慮しなかった結果、“サイズ”の一部が、セルC(1,2)からはみ出すか、隣のセルC(1,3)に隠れて見えなくなる。   However, as a result of not considering the length of the attribute name data, a part of “size” protrudes from the cell C (1, 2) or is hidden behind the adjacent cell C (1, 3) and cannot be seen.

そこで、図13の例では、“サイズ”がセルC(1,2)内に納まるように、決定部132は、セル内でデータの折り返しを行うことを決定している。これも、決定部132によるレイアウトの決定の一種である。   Therefore, in the example of FIG. 13, the determination unit 132 determines to wrap data in the cell so that “size” fits in the cell C (1, 2). This is also a kind of layout determination by the determination unit 132.

または、決定部132は、3つの列R1,R2,R3の幅を、図12の例と同様、60,20,40に一旦決定した後で、例えば、図14に示すように、列R1,R3の幅は60,40に維持したまま、列R2の幅を20から35に拡大しても、図15に示すように、“サイズ”がセルC(1,2)内に納まる結果となる。これもまた、決定部132によるレイアウトの決定の一種である。   Alternatively, the determination unit 132 once determines the widths of the three columns R1, R2, and R3 to 60, 20, and 40 as in the example of FIG. 12, and then, for example, as illustrated in FIG. Even if the width of the column R2 is increased from 20 to 35 while the width of R3 is maintained at 60, 40, as shown in FIG. 15, the “size” is accommodated in the cell C (1, 2). . This is also a kind of layout determination by the determination unit 132.

ただし、図14および図15の例では、列R1,R3の幅は維持したまま、列R2の幅を拡大したことで、表の一部が表領域からはみ出す結果となっている。   However, in the examples of FIGS. 14 and 15, the width of the column R <b> 2 is expanded while maintaining the widths of the columns R <b> 1 and R <b> 3, resulting in part of the table protruding from the table area.

そこで、決定部132は、図16に示すように、3つの列R1,R2,R3の幅を60,20,40に決定した後で、図17に示すように、“サイズ”のフォントサイズを縮小して表示してもよい。これもまた、決定部132によるレイアウトの決定の一種である。   Therefore, after determining the widths of the three columns R1, R2, and R3 to 60, 20, and 40 as shown in FIG. 16, the determining unit 132 sets the font size of “size” as shown in FIG. You may reduce and display. This is also a kind of layout determination by the determination unit 132.

なお、以上の具体例では、処理部13が、受付部12が受け付けた各データを表内のどのセルに配置するかを決めているが、決定部132は、処理部13が決めた各データの表内のセルにとの対応を、検査部132の検査結果を基に変更することもできる。   In the above specific example, the processing unit 13 determines in which cell in the table each data received by the receiving unit 12 is arranged, but the determining unit 132 determines each data determined by the processing unit 13. The correspondence with the cells in the table can be changed based on the inspection result of the inspection unit 132.

例えば、3行3列の表に対し、受付部12が、例えば9個のデータを受け付け場合、処理部13は、これら9個のデータを先頭のものから順番にセルC(1,1),セルC(1,2),セルC(1,3),セルC(2,1),…,セルC(3,3)に配置することを決める。検査部131は、これら9個のデータを検査し、検査結果が、9個のデータのうち末尾の3個が属性名データであることを示す場合、決定部132は、当該末尾の3個のデータを、例えば、行L1を構成する3個のセルC(1,1)〜C(1,3)に配置するように変更してもよい。   For example, when the accepting unit 12 accepts, for example, nine pieces of data for a table of 3 rows and 3 columns, the processing unit 13 receives the nine pieces of data in order from the first one in the cells C (1, 1), The cells C (1, 2), C (1, 3), C (2, 1),..., C (3, 3) are determined. The inspection unit 131 inspects these nine pieces of data, and if the inspection result indicates that the last three of the nine pieces of data are attribute name data, the determination unit 132 For example, the data may be changed to be arranged in the three cells C (1,1) to C (1,3) constituting the row L1.

以上、本実施の形態によれば、2以上の行および2以上の列を有する表が配置される領域が決められたページを構成する情報であるページ情報が格納される格納部11と、表に配置される4以上のデータを受け付ける受付部12と、受付部12が受け付けたデータを検査する検査部131と、検査部131の検査結果を基に、表の中の4以上のデータのレイアウトを決定する決定部132と、決定部132が決定したレイアウトに従って、表の中に、4以上のデータを配置する配置部133と、ページ情報を用いて、配置部133が4以上のデータを配置した表を含むページを出力する出力部14とを具備する表情報処理装置1により、事前に4以上のデータを検査し、検査結果を基に決定したレイアウトに従って、表の中に当該4以上のデータを配置するので、事後的なレイアウトの変更操作が不要になる。   As described above, according to the present embodiment, the storage unit 11 that stores page information that is information constituting a page in which an area in which a table having two or more rows and two or more columns is arranged is stored, and the table The receiving unit 12 that receives four or more data arranged in the table, the inspection unit 131 that inspects the data received by the receiving unit 12, and the layout of four or more data in the table based on the inspection result of the inspection unit 131 In accordance with the layout determined by the determination unit 132, the arrangement unit 133 that arranges four or more data in the table, and the arrangement unit 133 arranges four or more data using page information according to the layout determined by the determination unit 132 The table information processing apparatus 1 including the output unit 14 that outputs the page including the table is inspected four or more data in advance, and according to the layout determined based on the inspection result, the four or more data in the table De Since placing the data, post-layout change operation is unnecessary.

また、上記表情報処理装置1において、検査部131は、4以上のデータのうちの1以上の各データに対応するプロパティを取得し、決定部132は、検査部131が取得したプロパティによって、表を構成する列または行のサイズに関する比を決定し、配置部133は、決定部132が決定した比に従って、表の中に、4以上のデータを配置することにより、4以上のデータが適切に配置された表を含むページを出力できる。また、既存のプロパティを取得することで、検査のための処理負荷を軽減できる。   In the table information processing apparatus 1, the inspection unit 131 acquires properties corresponding to one or more pieces of data among four or more pieces of data, and the determination unit 132 displays the properties according to the properties acquired by the inspection unit 131. The arrangement unit 133 arranges four or more data in the table according to the ratio determined by the determination unit 132, so that the four or more data can be appropriately obtained. A page including the arranged table can be output. Also, by acquiring existing properties, the processing load for inspection can be reduced.

また、上記表情報処理装置1において、プロパティは、データの長さ、データタイプのうちの1種類以上の情報であることにより、長さやデータタイプの異なる4以上のデータが適切に配置された表を含むページを出力できる。
また、上記表情報処理装置1において、プロパティは、データタイプを含み、検査部131は、データに含まれる1以上の文字からデータタイプを決定することにより、取得したプロパティにデータタイプが含まれていなくても、データタイプの決定、ひいては比の決定が行える。
In the table information processing apparatus 1, the property is a table in which four or more data having different lengths or data types are appropriately arranged because the property is one or more kinds of information of the data length and data type. A page containing can be output.
Moreover, in the said table | surface information processing apparatus 1, a property contains a data type, and the test | inspection part 131 determines a data type from one or more characters contained in data, and a data type is contained in the acquired property. Without it, you can determine the data type and thus the ratio.

また、上記表情報処理装置1において、受付部12は、表に配置される4以上のデータを受け付け、4以上のデータは、任意の属性の名称を示すデータである2以上の属性名データと、2以上の属性名データと対になるデータであり、任意の属性の値を示すデータである2以上の属性値データとを含み、決定部132は、2以上の属性名データおよび2以上の属性値データの少なくともいずれか一方の検査結果を基に決定を行うことにより、2以上の属性名データおよび2以上の属性値データの少なくとも一方が適切に配置された表を含むページを出力できる。   In the table information processing apparatus 1, the receiving unit 12 receives four or more pieces of data arranged in the table, and the four or more pieces of data include two or more pieces of attribute name data that are data indicating names of arbitrary attributes. 2 or more attribute name data that is paired with two or more attribute name data and indicating data of an arbitrary attribute. The determination unit 132 includes two or more attribute name data and two or more attribute name data. By making a determination based on the inspection result of at least one of the attribute value data, a page including a table in which at least one of the two or more attribute name data and the two or more attribute value data is appropriately arranged can be output.

特に、2以上の属性名データおよび2以上の属性値データの両方の検査結果を基に決定を行う場合は、2以上の属性名データおよび2以上の属性値データの両方が適切に配置された表を含むページを出力できる。また、2以上の属性名データまたは2以上の属性値データのいずれか一方の検査結果を基に決定を行う場合は、検査のための処理負荷を軽減しつつ、2以上の属性名データまたは2以上の属性値データのいずれか一方が適切に配置された表を含むページを出力できる。   In particular, when making a decision based on the inspection results of both two or more attribute name data and two or more attribute value data, both the two or more attribute name data and the two or more attribute value data are appropriately arranged. A page containing a table can be output. Further, when the determination is made based on the inspection result of either one of two or more attribute name data or two or more attribute value data, the two or more attribute name data or 2 or 2 is reduced while reducing the processing load for the inspection. A page including a table in which any one of the attribute value data is appropriately arranged can be output.

また、上記表情報処理装置1において、決定部132は、2以上の属性名データが、2以上の行のうち一の行、または2以上の列のうち一の列に配置されるように、表の中における4以上のデータのレイアウトを決定することにより、2以上の属性名データが一の行または一の列に配置された表を含むページを出力できる。   Moreover, in the said table | surface information processing apparatus 1, the determination part 132 is arrange | positioned so that two or more attribute name data may be arrange | positioned at one row of two or more rows, or one column of two or more columns. By determining the layout of four or more data in the table, a page including a table in which two or more attribute name data are arranged in one row or one column can be output.

また、上記表情報処理装置1において、決定部132は、検査部131の検査結果を基に、表を構成する2以上の各列の幅、または表を構成する2以上の各行の高さのうち、1種類以上の情報を決定することにより、4以上のデータが各列に適切に配置された表、または4以上のデータが各行に適切に配置された表、あるいは4以上のデータが各行および各列に適切に配置された表、を含むページを出力できる。   Further, in the table information processing apparatus 1, the determining unit 132 determines the width of each of two or more columns constituting the table or the height of each of two or more rows constituting the table based on the inspection result of the inspection unit 131. Of these, by determining one or more types of information, a table in which four or more data are appropriately arranged in each column, a table in which four or more data are appropriately arranged in each row, or four or more data in each row And a page containing a table appropriately arranged in each column.

また、上記表情報処理装置1において、受付部12は、表領域の指示をさらに受け付け、決定部132は、受付部12が受け付けた指示に応じて、ページ内における表領域の配置を決定することにより、表領域が指示に応じて配置されたページを出力することができる。   In the table information processing apparatus 1, the receiving unit 12 further receives a table area instruction, and the determining unit 132 determines the arrangement of the table area in the page according to the instruction received by the receiving unit 12. Thus, a page in which the table area is arranged according to the instruction can be output.

なお、本実施の形態における処理は、ソフトウェアで実現してもよい。そして、このソフトウェアを、例えば、ソフトウェアダウンロード等により配布してもよいし、CD−ROMなどの記録媒体に記録して流布してもよい。このことは、本明細書における他の実施の形態においても該当する。   Note that the processing in the present embodiment may be realized by software. The software may be distributed, for example, by software download or may be recorded and distributed on a recording medium such as a CD-ROM. This also applies to other embodiments in this specification.

本実施の形態における情報処理装置1を実現するソフトウェアは、例えば、以下のようなプログラムである。つまり、このプログラムは、コンピュータを、2以上の行および2以上の列を有する表が配置される領域が決められたページを構成する情報であるページ情報が格納される格納部11と、表に配置される4以上のデータを受け付ける受付部12と、受付部12が受け付けたデータを検査する検査部131と、検査部131の検査結果を基に、表の中の4以上のデータのレイアウトを決定する決定部132と、決定部132が決定したレイアウトに従って、表の中に、4以上のデータを配置する配置部133と、ページ情報を用いて、配置部133が4以上のデータを配置した表を含むページを出力する出力部14として機能させるためのプログラムである。   The software that implements the information processing apparatus 1 in the present embodiment is, for example, the following program. In other words, this program causes the computer to store the page information, which is information that constitutes a page in which an area in which a table having two or more rows and two or more columns is arranged, and stores the page information. The receiving unit 12 that receives four or more data to be arranged, the inspection unit 131 that inspects the data received by the receiving unit 12, and the layout of four or more data in the table based on the inspection result of the inspection unit 131 In accordance with the determination unit 132 to be determined, the layout determined by the determination unit 132, the arrangement unit 133 that arranges four or more data in the table, and the arrangement unit 133 arranges four or more data using page information This is a program for causing the output unit 14 to output a page including a table.

図18は、上記プログラムを実行して、上記実施の形態による表情報処理装置1を実現するコンピュータシステム900の外観の一例を示す模式図である。上記実施の形態は、コンピュータハードウェア及びその上で実行されるコンピュータプログラムによって実現されうる。   FIG. 18 is a schematic diagram showing an example of the external appearance of a computer system 900 that executes the program and realizes the table information processing apparatus 1 according to the embodiment. The above-described embodiment can be realized by computer hardware and a computer program executed on the computer hardware.

図18において、コンピュータシステム900は、CD−ROMドライブ905を含むコンピュータ901と、キーボード902と、マウス903と、ディスプレイ904とを備える。   In FIG. 18, the computer system 900 includes a computer 901 including a CD-ROM drive 905, a keyboard 902, a mouse 903, and a display 904.

図19は、コンピュータシステム900の内部構成を示す図である。図19において、コンピュータ901は、CD−ROMドライブ905に加えて、MPU(Micro Processing Unit)911と、ブートアッププログラム等のプログラムを記憶するためのROM912と、MPU911に接続され、アプリケーションプログラムの命令を一時的に記憶すると共に、一時記憶空間を提供するRAM913と、アプリケーションプログラム、システムプログラム、及びデータを記憶するハードディスク914と、MPU911、ROM912等を相互に接続するバス915と、インターネット等のネットワークへの接続を提供するネットワークカード916と、を備える。   FIG. 19 is a diagram showing an internal configuration of the computer system 900. In FIG. 19, in addition to the CD-ROM drive 905, a computer 901 is connected to an MPU (Micro Processing Unit) 911, a ROM 912 for storing a program such as a bootup program, and the MPU 911, and receives instructions of an application program. A RAM 913 that temporarily stores and provides a temporary storage space, a hard disk 914 that stores application programs, system programs, and data, a bus 915 that interconnects the MPU 911, the ROM 912, and the like, and a network such as the Internet A network card 916 for providing connection.

コンピュータシステム900に、上記実施の形態による表情報処理装置1の機能を実行させるプログラムは、CD−ROM921に記憶されて、CD−ROMドライブ905に挿入され、ハードディスク914に転送されてもよい。これに代えて、そのプログラムは、インターネット等のネットワークを介してコンピュータ901に送信され、ハードディスク914に記憶されてもよい。プログラムは、実行の際にRAM913にロードされる。なお、プログラムは、CD−ROM921、またはネットワークから直接、ロードされてもよい。また、CD−ROM921に代えて他の記録媒体(例えば、DVDやメモリカード等)を介して、プログラムがコンピュータシステム900に読み込まれてもよい。   A program that causes the computer system 900 to execute the functions of the table information processing apparatus 1 according to the above embodiment may be stored in the CD-ROM 921, inserted into the CD-ROM drive 905, and transferred to the hard disk 914. Alternatively, the program may be transmitted to the computer 901 via a network such as the Internet and stored in the hard disk 914. The program is loaded into the RAM 913 when executed. The program may be loaded directly from the CD-ROM 921 or the network. Further, the program may be read into the computer system 900 via another recording medium (for example, a DVD or a memory card) instead of the CD-ROM 921.

なお、表情報処理装置1は、上記のような据え置き型のコンピュータシステム900に限らず、例えばスマートフォンやタブレット端末やノートPCといった携帯型のコンピュータシステムで実現されてもよい。この場合、図18、図19に記載のハードウェアのうち、ハードディスク914、CD−ROMドライブ905およびCD-ROM921は、例えば、フラッシュメモリ、メモリカードスロットおよびメモリカードにそれぞれ置き換えられてよいし、また、キーボード902およびマウス903は、例えばタッチパネルへの置き換えが可能である。   The table information processing apparatus 1 is not limited to the stationary computer system 900 as described above, and may be realized by a portable computer system such as a smartphone, a tablet terminal, or a notebook PC. In this case, among the hardware described in FIGS. 18 and 19, the hard disk 914, the CD-ROM drive 905, and the CD-ROM 921 may be replaced with, for example, a flash memory, a memory card slot, and a memory card, respectively. The keyboard 902 and the mouse 903 can be replaced with a touch panel, for example.

プログラムは、コンピュータの詳細を示す901に、上記実施の形態による表情報処理装置1の機能を実行させるオペレーティングシステム(OS)、またはサードパーティプログラム等を必ずしも含んでいなくてもよい。プログラムは、制御された態様で適切な機能やモジュールを呼び出し、所望の結果が得られるようにする命令の部分のみを含んでいてもよい。コンピュータシステム900がどのように動作するのかについては周知であり、詳細な説明は省略する。   The program does not necessarily include an operating system (OS) or a third-party program that executes the function of the table information processing apparatus 1 according to the above embodiment in 901 indicating the details of the computer. The program may include only a part of an instruction that calls an appropriate function or module in a controlled manner and obtains a desired result. How the computer system 900 operates is well known and will not be described in detail.

なお、上記プログラムを実行するコンピュータは、単数であってもよく、複数であってもよい。すなわち、集中処理を行ってもよく、あるいは分散処理を行ってもよい。   In addition, the computer which performs the said program may be single, and plural may be sufficient as it. That is, centralized processing may be performed, or distributed processing may be performed.

また、上記実施の形態において、各処理(各機能)は、単一の装置(システム)によって集中処理されることによって実現されてもよく、あるいは、複数の装置によって分散処理されることによって実現されてもよい。   In the above embodiment, each processing (each function) may be realized by centralized processing by a single device (system), or may be realized by distributed processing by a plurality of devices. May be.

本発明は、以上の実施の形態に限定されることなく、種々の変更が可能であり、それらも本発明の範囲内に包含されるものであることは言うまでもない。   The present invention is not limited to the above-described embodiments, and various modifications are possible, and it goes without saying that these are also included in the scope of the present invention.

以上のように、本発明にかかる表情報処理装置は、4以上のデータに応じたレイアウトを決定し、決定したレイアウトに従って、ページ内の表の中に当該4以上のデータを配置するので、ページ内の表の中における4以上のデータのレイアウトを自動的に決定できるという効果を有し、表情報処理装置等として有用である。   As described above, the table information processing apparatus according to the present invention determines a layout according to four or more data, and arranges the four or more data in the table in the page according to the determined layout. This has the effect of automatically determining the layout of four or more data in the table, and is useful as a table information processing apparatus.

1 表情報処理装置
11 格納部
12 受付部
13 処理部
14 出力部
131 検査部
132 決定部
133 配置部
DESCRIPTION OF SYMBOLS 1 Table information processing apparatus 11 Storage part 12 Reception part 13 Processing part 14 Output part 131 Inspection part 132 Determination part 133 Arrangement part

Claims (10)

2以上の行および2以上の列を有する表が配置される領域である表領域が決められたページを構成する情報であるページ情報が格納される格納部と、
前記表に配置される4以上のデータを受け付ける受付部と、
前記前記受付部が受け付けたデータを検査する検査部と、
前記検査部の検査結果を基に、前記表の中の前記4以上のデータのレイアウトを決定する決定部と、
前記決定部が決定したレイアウトに従って、前記表の中に、前記4以上のデータを配置する配置部と、
前記ページ情報を用いて、前記配置部が前記4以上のデータを配置した表を含むページを出力する出力部とを具備する表情報処理装置。
A storage unit that stores page information that is information constituting a page in which a table area is determined, which is an area in which a table having two or more rows and two or more columns is arranged;
A reception unit that receives four or more pieces of data arranged in the table;
An inspection unit for inspecting data received by the reception unit;
A determination unit that determines a layout of the four or more data in the table based on the inspection result of the inspection unit;
According to the layout determined by the determination unit, an arrangement unit that arranges the four or more data in the table;
A table information processing apparatus comprising: an output unit that outputs a page including a table in which the arrangement unit arranges the four or more data using the page information.
前記検査部は、
前記4以上のデータのうちの1以上の各データに対応するプロパティを取得し、
前記決定部は、
前記検査部が取得したプロパティによって、前記表を構成する列または行のサイズに関する比を決定し、
前記配置部は、
前記決定部が決定した比に従って、前記表の中に、前記4以上のデータを配置する請求項1記載の表情報処理装置。
The inspection unit
Obtaining a property corresponding to each of one or more of the four or more data;
The determination unit
According to the property acquired by the inspection unit, determine a ratio regarding the size of the columns or rows constituting the table,
The placement section is
The table information processing apparatus according to claim 1, wherein the four or more pieces of data are arranged in the table according to a ratio determined by the determination unit.
前記プロパティは、
データの長さ、データタイプのうちの1種類以上の情報である請求項2記載の表情報処理装置。
The property is
The table information processing apparatus according to claim 2, wherein the table information processing apparatus is one or more kinds of information of data length and data type.
前記プロパティは、
データタイプを含み、
前記検査部は、
データに含まれる1以上の文字からデータタイプを決定する請求項3記載の表情報処理装置。
The property is
Including data types,
The inspection unit
The table information processing apparatus according to claim 3, wherein the data type is determined from one or more characters included in the data.
前記4以上のデータは、
表の属性名を示す2以上の属性名データと、当該2以上の属性名データと対になるデータであり、当該表の属性値を示す2以上の属性値データとを含み、
前記決定部は、
前記2以上の属性名データおよび前記2以上の属性値データの少なくともいずれか一方の検査結果を基に決定を行う請求項1から請求項4いずれか一項に記載の情報処理装置。
The four or more data are
Two or more attribute name data indicating the attribute name of the table, and data paired with the two or more attribute name data, including two or more attribute value data indicating the attribute value of the table,
The determination unit
The information processing apparatus according to any one of claims 1 to 4, wherein the determination is made based on a test result of at least one of the two or more attribute name data and the two or more attribute value data.
前記決定部は、
前記2以上の属性名データが、前記2以上の行のうち一の行、または前記2以上の列のうち一の列に配置されるように、前記表の中における前記4以上のデータのレイアウトを決定する請求項5記載の情報処理装置。
The determination unit
The layout of the four or more data in the table such that the two or more attribute name data are arranged in one row of the two or more rows or one column of the two or more columns. The information processing apparatus according to claim 5, which determines
前記決定部は、
前記検査部の検査結果を基に、前記表を構成する2以上の各列の幅、または前記表を構成する2以上の各行の高さのうち、1種類以上の情報を決定する請求項1から請求項6いずれか一項に記載の表情報処理装置。
The determination unit
2. One or more types of information are determined based on the inspection result of the inspection unit, from the width of each of two or more columns constituting the table or the height of each of two or more rows constituting the table. The table information processing apparatus according to claim 6.
前記受付部は、
前記表領域の指示をさらに受け付け、
前記決定部は、
前記指示に応じて、前記ページ内における前記表領域の配置を決定する請求項1から請求項7いずれか一項に記載の表情報処理装置。
The reception unit
Further accepting instructions for the table area,
The determination unit
The table information processing apparatus according to claim 1, wherein an arrangement of the table area in the page is determined according to the instruction.
格納部、受付部、検査部、決定部、配置部および出力部によって行われる表情報処理方法であって、
前記格納部に、2以上の行および2以上の列を有する表が配置される領域が決められたページを構成する情報であるページ情報が格納される格納ステップと、
前記受付部が、前記表に配置される4以上のデータを受け付ける受付ステップと、
前記検査部が、前記前記受付部が受け付けたデータを検査する検査ステップと、
前記決定部が、前記検査部の検査結果を基に、前記表の中の前記4以上のデータのレイアウトを決定する決定ステップと、
前記配置部が、前記決定部が決定したレイアウトに従って、前記表の中に、前記4以上のデータを配置する配置ステップと、
前記出力部が、前記ページ情報を用いて、前記配置部が前記4以上のデータを配置した表を含むページを出力する出力ステップとを具備する表情報処理方法。
A table information processing method performed by a storage unit, a reception unit, an inspection unit, a determination unit, an arrangement unit, and an output unit,
A storage step in which page information that is information constituting a page in which an area in which a table having two or more rows and two or more columns is arranged is stored in the storage unit;
A receiving step in which the receiving unit receives four or more pieces of data arranged in the table;
An inspection step in which the inspection unit inspects data received by the reception unit;
A determination step in which the determination unit determines a layout of the four or more data in the table based on the inspection result of the inspection unit;
An arrangement step in which the arrangement unit arranges the four or more data in the table according to the layout determined by the determination unit;
A table information processing method comprising: an output step in which the output unit outputs a page including a table in which the arrangement unit arranges the four or more data using the page information.
コンピュータを、
2以上の行および2以上の列を有する表が配置される領域が決められたページを構成する情報であるページ情報が格納される格納部と、
前記表に配置される4以上のデータを受け付ける受付部と、
前記前記受付部が受け付けたデータを検査する検査部と、
前記検査部の検査結果を基に、前記表の中の前記4以上のデータのレイアウトを決定する決定部と、
前記決定部が決定したレイアウトに従って、前記表の中に、前記4以上のデータを配置する配置部と、
前記ページ情報を用いて、前記配置部が前記4以上のデータを配置した表を含むページを出力する出力部として機能させるためのプログラム。
Computer
A storage unit that stores page information that is information constituting a page in which an area in which a table having two or more rows and two or more columns is arranged;
A reception unit that receives four or more pieces of data arranged in the table;
An inspection unit for inspecting data received by the reception unit;
A determination unit that determines a layout of the four or more data in the table based on the inspection result of the inspection unit;
According to the layout determined by the determination unit, an arrangement unit that arranges the four or more data in the table;
A program for causing the arrangement unit to function as an output unit that outputs a page including a table in which the four or more pieces of data are arranged, using the page information.
JP2016041013A 2016-03-03 2016-03-03 Table information processor, table information processing method, and program Pending JP2017157078A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016041013A JP2017157078A (en) 2016-03-03 2016-03-03 Table information processor, table information processing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016041013A JP2017157078A (en) 2016-03-03 2016-03-03 Table information processor, table information processing method, and program

Publications (1)

Publication Number Publication Date
JP2017157078A true JP2017157078A (en) 2017-09-07

Family

ID=59809857

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016041013A Pending JP2017157078A (en) 2016-03-03 2016-03-03 Table information processor, table information processing method, and program

Country Status (1)

Country Link
JP (1) JP2017157078A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2022064357A (en) * 2020-10-14 2022-04-26 株式会社アイ・コン Document output system, and program for making computer execute document output

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0668084A (en) * 1992-08-17 1994-03-11 Shizuoka Nippon Denki Software Kk Document preparation supporting device
JPH08153144A (en) * 1994-11-25 1996-06-11 Canon Inc Device and method for tabulation
JP2004157927A (en) * 2002-11-08 2004-06-03 Nec Corp Creating system for business form input, creating program and creating method
JP2006338294A (en) * 2005-06-01 2006-12-14 Fujitsu Ltd Composition program
JP2007004583A (en) * 2005-06-24 2007-01-11 Rococo:Kk Automatic composition system
JP2008052603A (en) * 2006-08-25 2008-03-06 Canon Inc Table editing device and table editing method
JP2009157860A (en) * 2007-12-28 2009-07-16 Profield Co Ltd Information editing device, information editing method, and program
JP2015170011A (en) * 2014-03-05 2015-09-28 日本電気株式会社 Table layout generation device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0668084A (en) * 1992-08-17 1994-03-11 Shizuoka Nippon Denki Software Kk Document preparation supporting device
JPH08153144A (en) * 1994-11-25 1996-06-11 Canon Inc Device and method for tabulation
JP2004157927A (en) * 2002-11-08 2004-06-03 Nec Corp Creating system for business form input, creating program and creating method
JP2006338294A (en) * 2005-06-01 2006-12-14 Fujitsu Ltd Composition program
JP2007004583A (en) * 2005-06-24 2007-01-11 Rococo:Kk Automatic composition system
JP2008052603A (en) * 2006-08-25 2008-03-06 Canon Inc Table editing device and table editing method
JP2009157860A (en) * 2007-12-28 2009-07-16 Profield Co Ltd Information editing device, information editing method, and program
JP2015170011A (en) * 2014-03-05 2015-09-28 日本電気株式会社 Table layout generation device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2022064357A (en) * 2020-10-14 2022-04-26 株式会社アイ・コン Document output system, and program for making computer execute document output
JP7308538B2 (en) 2020-10-14 2023-07-14 株式会社アイ・コン A form output system and a program for causing a computer to output a form

Similar Documents

Publication Publication Date Title
JP6282116B2 (en) Associating captured image data with a spreadsheet
US9953010B2 (en) Template-based page layout for hosted social magazines
US8325367B2 (en) System and method for a design with intent metadata
US9767088B2 (en) Stroke autocompletion in a form
JP4783802B2 (en) Method and apparatus for outputting advertisement to printed matter
CN102047247A (en) Flexible web page template building system and method
CN1692399A (en) Text display terminal device and server
CN101908218A (en) Editing equipment and method for arranging
US10970252B2 (en) Method and apparatus for generating customized digital files with variable data
CN103049430A (en) Page display method based on IDF (interactive document format) files
US20120131450A1 (en) Apparatus and method for providing electronic book service
JP4959501B2 (en) Information processing apparatus, information processing method, and program
JP2017157078A (en) Table information processor, table information processing method, and program
JP5112045B2 (en) Information editing apparatus, information editing method, and program
US20150347376A1 (en) Server-based platform for text proofreading
US20090259656A1 (en) Data search device, data search method, and recording medium
CN100592300C (en) Data display method and device
US10002400B2 (en) Method and apparatus for dynamic generation of vector graphics
JP2009230260A (en) Media creation system
CN110298680B (en) Advertisement management device, advertisement management method, and computer-readable recording medium
CN106776489B (en) Electronic document display method and system of display device
CN112988958A (en) Information processing apparatus, recording medium, and information processing method
US20120170078A1 (en) Image processing system and method
US20150062660A1 (en) File management apparatus and file management method
CN113298741B (en) Picture synthesis method and device and electronic equipment

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20181025

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190522

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190628

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20191220