JP4413952B2 - Method, apparatus, program, and program medium for display control - Google Patents

Method, apparatus, program, and program medium for display control Download PDF

Info

Publication number
JP4413952B2
JP4413952B2 JP2007180382A JP2007180382A JP4413952B2 JP 4413952 B2 JP4413952 B2 JP 4413952B2 JP 2007180382 A JP2007180382 A JP 2007180382A JP 2007180382 A JP2007180382 A JP 2007180382A JP 4413952 B2 JP4413952 B2 JP 4413952B2
Authority
JP
Japan
Prior art keywords
display
range
document
layout
size
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP2007180382A
Other languages
Japanese (ja)
Other versions
JP2007305154A (en
Inventor
昌司 広沢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sharp Corp
Original Assignee
Sharp Corp
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 Sharp Corp filed Critical Sharp Corp
Priority to JP2007180382A priority Critical patent/JP4413952B2/en
Publication of JP2007305154A publication Critical patent/JP2007305154A/en
Application granted granted Critical
Publication of JP4413952B2 publication Critical patent/JP4413952B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Description

本発明は、スクロールバーを表示したり、スクロールバーを操作して表示範囲を制御したりする方法、その方法を実施するための装置、プログラム、記録媒体に関する。   The present invention relates to a method for displaying a scroll bar or operating a scroll bar to control a display range, an apparatus for implementing the method, a program, and a recording medium.

ディスプレイやウィンドウなどの表示範囲に収まりきらない文書や絵、図などのコンテンツを扱う方法として、スクロールバーおよびスクロールボックスを利用する方法は、ワードプロセッサーや電子書籍リーダー、WWWブラウザー、エディターなど様々なアプリケーション、装置で広く使われている。   As a method of handling content such as documents, pictures, and drawings that do not fit within the display range of displays and windows, scroll bars and scroll boxes use various applications such as word processors, e-book readers, WWW browsers, and editors. Widely used in equipment.

例えば、スクロールバー上に表示されたスクロールボックスの大きさ(長さ)は、コンテンツ全体の中で表示されている部分の割合を表す。また、スクロールバー上でのスクロールボックスの表示位置は、コンテンツ全体に対する表示されている部分の相対的位置を表す。   For example, the size (length) of the scroll box displayed on the scroll bar represents the proportion of the portion displayed in the entire content. The display position of the scroll box on the scroll bar represents the relative position of the displayed part with respect to the entire content.

上述のアプリケーションや装置では、スクロールバー上に表示するスクロールボックスの位置と大きさは、通常、表示内容のレイアウトサイズあるいはページ数を使って計算する。なお、「レイアウトサイズ」とは、ここでは文章や絵などのコンテンツを表示した時に、着目した表示範囲の大きさのことを指し、例えばドット数などで表される。「ページ数」とは、ここでは表示をページ単位で行う場合のページの総数を指す。   In the above-described application or apparatus, the position and size of the scroll box displayed on the scroll bar are usually calculated using the layout size or the number of pages of the display content. Here, the “layout size” refers to the size of the display range in which attention is paid when content such as a sentence or a picture is displayed, and is represented by, for example, the number of dots. Here, the “number of pages” refers to the total number of pages when display is performed in units of pages.

例えばレイアウトサイズを使った計算の場合、表示されている部分のスクロールボックスの大きさの割合は、
(表示範囲のレイアウトサイズ)/(全レイアウトサイズ)、
で求まり、また、表示されている部分のスクロールボックスの位置の割合は、
(コンテンツ先頭から表示範囲先頭までのレイアウトサイズ)/(全レイアウトサイズ)となる。「全レイアウトサイズ」は、表示されていないコンテンツ部分も含んだコンテンツ全体のレイアウトサイズである。
For example, in the calculation using the layout size, the ratio of the size of the scroll box in the displayed part is
(Layout size of display range) / (All layout sizes),
The percentage of the scroll box position in the displayed part is
(Layout size from the top of the content to the top of the display range) / (All layout sizes). “Total layout size” is the layout size of the entire content including the content portion that is not displayed.

また、例えばページ数を使って計算する場合、表示されている部分のスクロールボックスのサイズの割合は、
(表示範囲のページ数)/(全ページ数)
で求まり、また、表示されている部分のスクロールボックスの位置の割合は、
(先頭から表示範囲までのページ数)/(全ページ数)
となる。「全ページ数」は、表示されていないコンテンツ部分も含んだページ数である。
For example, when calculating using the number of pages, the ratio of the size of the scroll box in the displayed part is
(Number of pages in the display range) / (Total number of pages)
The percentage of the scroll box position in the displayed part is
(Number of pages from top to display range) / (total number of pages)
It becomes. The “total number of pages” is the number of pages including a content portion that is not displayed.

コンテンツの表示の仕方には2種類あり、PDF(portable document format)の様に文字の大きさや位置といったレイアウトやページの大きさが固定されているもの(固定レイアウト)と、WWW(World Wide Web)ブラウザの様に文字の大きさやページの大きさが固定されておらず、自由にユーザーが変更できるもの(可変レイアウト)とがある。   There are two types of content display methods, such as PDF (portable document format) in which the layout and page size such as character size and position are fixed (fixed layout), and WWW (World Wide Web). Some browsers do not have a fixed character size or page size and can be freely changed by the user (variable layout).

固定レイアウトの場合は、レイアウトサイズやページ数や全レイアウトサイズはコンテンツによって予め決まっているが、可変レイアウトの場合は、文字の大きさやページの大きさ(行数や行内文字数等)によって、レイアウトサイズやページ数や全レイアウトサイズは変わる。
特開平5−282255号公報 特開平8−314906号公報
In the case of a fixed layout, the layout size, the number of pages, and the total layout size are determined in advance by the content. In the case of a variable layout, the layout size depends on the character size and page size (number of lines, number of characters in a line, etc.). The number of pages and total layout size will change.
JP-A-5-282255 JP-A-8-314906

ところが、可変レイアウトの場合、文字の大きさやページサイズの設定がその時々によって変わるため、コンテンツ全体のレイアウトサイズやページ数を予め計算しておくことはできない。このため、実際に表示させる時に文字の大きさやページサイズの設定に合わせてコンテンツ全体をレイアウトしてみないことには、レイアウトサイズやページ数を用いて、スクロールボックスの位置や大きさの割合を計算することができない。   However, in the case of the variable layout, since the setting of the character size and the page size changes from time to time, the layout size and the number of pages of the entire content cannot be calculated in advance. For this reason, in order to avoid laying out the entire content according to the character size and page size settings when actually displaying, the layout size and number of pages can be used to set the scroll box position and size ratio. It cannot be calculated.

しかし、コンテンツ全体をレイアウトする場合、コンテンツのデータ量が大きければ大きいほど、そのレイアウト処理に時間がかかるという問題が出てくる。また、レイアウト結果を保存しておく為のメモリも大量に必要となるという問題も出てくる。表示に使わない部分のレイアウトを破棄することでメモリの問題を回避するにしても、せっかく作成したレイアウトを破棄するのでは、無駄な処理を行うことになるという問題がある。   However, when the entire content is laid out, the larger the content data amount, the longer the time required for the layout process. Another problem is that a large amount of memory is required to store the layout results. Even if the memory problem is avoided by discarding the layout that is not used for display, there is a problem in that wasteful processing is performed if the layout created is discarded.

またこれらの問題は、「スクロールバーの表示」(表示範囲に相当するスクロールボックスの位置や大きさを求めて表示すること)の時だけでなく、「スクロールバーによる制御」(指定されたスクロールボックスの位置や大きさに相当する表示範囲を表示すること)の時にも発生する。指定されたスクロールボックスの位置や大きさの割合から、相当する表示範囲を求めようとすれば、結局、コンテンツ全体のレイアウトが分からないと、コンテンツ全体のどこの部分のレイアウトを表示すればよいか求まらないからである。   These problems are not only caused by “displaying the scroll bar” (displaying the position and size of the scroll box corresponding to the display range), but also “control by scroll bar” (specified scroll box This also occurs when a display range corresponding to the position and size of the image is displayed. If you try to find the corresponding display range from the specified scroll box position and size ratio, if you do not know the layout of the entire content, where should you display the layout of the entire content? It is because it is not found.

このような問題に対して、本発明は、文字の大きさやページサイズなどの設定を自由に変えられる可変レイアウトの文書において、高速かつできるだけ正確に、スクロールバーの表示やスクロールバーを用いた表示制御を処理すること、少ないメモリ環境などにおいても無駄なく処理を行うこと、などを主な目的とする。   In response to such problems, the present invention provides a scroll bar display and display control using a scroll bar as quickly and accurately as possible in a variable layout document in which settings such as character size and page size can be freely changed. The main purpose is to perform processing without waste even in a small memory environment.

本発明に係る表示制御方法は、上記の課題を解決する為に、文書を、表示要素やレイアウト的にきりの良い所で複数の部分に分割した分割文書の各データサイズを得る分割データサイズ取得ステップと、表示範囲を指定するためにスクロールバー内に表示されるスクロールボックスのスクロールバー内の位置に応じて、前記表示範囲が文書中に占める位置を表す基準となるスクロールボックス上の基準位置に対応する指定位置データ位置を含むように、上記文書に対して指定された指定範囲を含む分割文書を特定すると共に、特定した分割文書を元にして前記指定範囲のデータサイズを求める指定範囲データサイズ取得ステップと、前記分割データサイズ取得ステップから得た分割文書の各データサイズの和と、前記指定範囲データサイズ取得ステップから得た前記指定範囲のデータサイズとから、文書中に前記指定範囲が占める割合を求める割合取得ステップと、前記指定範囲を前記表示範囲とし、前記割合取得ステップから得られた割合に応じたスクロールバーを表示し、また、ユーザーのスクロールバー操作に応じて前記表示範囲の表示内容を制御するスクロールバー表示制御ステップとを有し、前記スクロールバー表示制御ステップにおいて、前記表示範囲を指定するためにスクロールバー内に表示されるスクロールボックスが、スクロールバーの始端もしくは終端を含む範囲を指定している場合には、文書の最初から、もしくは最後まで表示するようにすることを特徴とする。   In order to solve the above-described problem, the display control method according to the present invention obtains divided data size to obtain each data size of a divided document obtained by dividing a document into a plurality of parts in a place where display documents and layout are well-defined. According to the step and the position in the scroll bar of the scroll box displayed in the scroll bar for designating the display range, the reference range on the scroll box serving as a reference representing the position occupied in the document by the display range is set. A specified range data size for specifying a divided document including a specified range specified for the document so as to include a corresponding specified position data position and obtaining a data size of the specified range based on the specified divided document The acquisition step, the sum of the data sizes of the divided documents obtained from the divided data size acquisition step, and the specified range data size acquisition. From the data size of the specified range obtained from the step, a ratio acquisition step for obtaining a ratio occupied by the specified range in the document, the specified range as the display range, and according to the ratio obtained from the ratio acquisition step A scroll bar display control step for displaying a scroll bar and controlling the display content of the display range in accordance with a user's scroll bar operation, and for specifying the display range in the scroll bar display control step If the scroll box displayed in the scroll bar specifies a range including the start or end of the scroll bar, the scroll box is displayed from the beginning to the end of the document.

上記の構成において、「表示」は、一般には情報を視覚的に知覚できるような形態で表示媒体上に出力することを言う。本発明ではレイアウトの表示媒体に対する「表示」だけに限らず、レイアウトの印刷記録媒体に対する「印刷」やレイアウトのデータ記録媒体に対する「ファイル出力」など「出力」一般にも適用可能である。説明を分かり易くする為、以降の説明では、「表示」という言葉を用いることが多いが、「出力」の意も含まれているとする。   In the above configuration, “display” generally means that information is output on a display medium in a form in which information can be visually perceived. The present invention is not limited to “display” for a layout display medium, but can be applied to “output” such as “print” for a layout print recording medium and “file output” for a layout data recording medium. In order to make the explanation easier to understand, in the following explanation, the word “display” is often used, but the meaning of “output” is also included.

「レイアウト」とは、表示要素が2次元または3次元の空間座標上に、位置とサイズ、外形の属性をもって配置されること、あるいは配置されたもののことを言う。位置やサイズは、通常は何らかの単位を使った値として表現される。例えば、画素の集まりからなるディスプレイに表示する場合は、一般に(画素)ドットの単位で表現される。一つないし複数の表示要素がレイアウトされた結果、その表示要素に関して定まる空間座標上の位置のことを「レイアウト位置」、一つないし複数の表示要素がレイアウトされた結果、その表示要素に関して定まる空間座標上のサイズのことを「レイアウトサイズ」と以降では呼ぶ場合もある。   The “layout” means that display elements are arranged on the two-dimensional or three-dimensional space coordinates with attributes of position, size, and outer shape, or arranged. The position and size are usually expressed as values using some unit. For example, when displaying on a display composed of a collection of pixels, it is generally expressed in units of (pixel) dots. As a result of the layout of one or more display elements, the position on the spatial coordinates determined for the display element is “layout position”, and as a result of the layout of one or more display elements, the space determined for the display element The size on the coordinates may be referred to as “layout size” hereinafter.

「文書」とは、一つまたは複数の表示要素がレイアウトされたもの、あるいはレイアウトしたり、レイアウトに基づいて表示要素を表示したりすることができるだけの情報量を持ったデータを指す。文書データは、表示要素のデータも含む場合と、レイアウト情報だけ持っていて表示要素のデータの一部を含む場合やあるいはまったく含まない場合もある。いずれにしろ、文書データを使って、レイアウトに従った表示や出力ができる。   “Document” refers to data in which one or a plurality of display elements are laid out, or data having an amount of information that can be laid out or displayed based on the layout. The document data may include display element data, may have only layout information, and may include a part of display element data, or may not include at all. In any case, the document data can be used for display and output according to the layout.

文書の「指定範囲」とは、スクロールバーの場合で言えば、その文書中の表示したい範囲を指す。通常は、レイアウトされた文書中での位置とサイズ、外形で指定する。外形は矩形が一般的である。なお、「指定範囲」は、表示したい範囲に限らず、印刷したい範囲の場合もあり、また、PDFなどのデータフォーマット形式で主記憶上や外部記憶上に記録したい範囲の場合もある。   In the case of a scroll bar, the “specified range” of a document refers to a range to be displayed in the document. Normally, it is specified by the position, size, and outline in the laid out document. The outer shape is generally rectangular. The “designated range” is not limited to the range to be displayed but may be a range to be printed, or may be a range to be recorded on the main memory or the external memory in a data format format such as PDF.

一般に、スクロールバーは、表示媒体の表示範囲に表示される文書中の部分が、文書全体のどのあたりに位置しているかという位置と、表示範囲のレイアウトサイズが全文書のレイアウトサイズ中に占める割合とに基づいて表示されたり、制御されたりしている。このとき、その割合は、表示範囲のレイアウトサイズと全文書のレイアウトサイズとがわかれば、求めることができる。   In general, the scroll bar indicates the position in the document where the portion of the document displayed in the display range of the display medium is located, and the ratio of the layout size of the display range to the layout size of the entire document. It is displayed or controlled based on. At this time, the ratio can be obtained if the layout size of the display range and the layout size of the entire document are known.

レイアウトサイズを高速に得るには予め計算しておくなどの方法が考えられるが、表示範囲の大きさやフォントサイズなどをユーザが自由に変更できる可変レイアウトの場合は、表示時のレイアウト設定などによってレイアウトサイズが変わってしまう為、予め計算しておいても、その結果は、レイアウト設定が変われば使うことができない。   In order to obtain the layout size at a high speed, a method such as calculating in advance can be considered, but in the case of a variable layout in which the user can freely change the size of the display range, font size, etc., the layout can be set according to the layout setting at the time of display. Since the size changes, even if it is calculated in advance, the result cannot be used if the layout setting changes.

レイアウト割合を真に正確に求めるのは難しいが、ある程度の精度で推定することはできる。推定する手段として、データサイズは固定レイアウトでも可変レイアウトでも一定であり、レイアウト処理とは無関係に決まる情報量なので、レイアウトサイズでなくデータサイズを使えば簡単に計算できる点と、複数の分割文書から構成された文書であれば、必要な分割文書のみを処理対象とすることによって、簡単にデータサイズを決めることができる点とに本願発明者は着目した。   Although it is difficult to determine the layout ratio truly accurately, it can be estimated with a certain degree of accuracy. As a means of estimation, the data size is constant for both fixed and variable layouts, and the amount of information is determined independently of the layout process, so it can be easily calculated using the data size instead of the layout size. The inventor of the present application paid attention to the fact that the data size can be easily determined by processing only necessary divided documents as long as the document is configured.

すなわち、上記の構成によれば、分割データサイズ取得ステップから得た分割文書の各データサイズの和と、指定範囲データサイズ取得ステップから得た前記指定範囲のデータサイズとから、文書中に前記指定範囲が占める割合を推定することができる。   That is, according to the above configuration, the designation in the document is performed from the sum of the data sizes of the divided documents obtained from the divided data size obtaining step and the data size of the designated range obtained from the designated range data size obtaining step. The proportion of the range can be estimated.

より詳しくは、分割データサイズ取得ステップから、分割文書の各データサイズを、レイアウト設定とは無関係に得ることができる。さらに、文書全体のデータサイズを分割文書のデータサイズの和として求めることができる。   More specifically, each data size of the divided document can be obtained from the divided data size acquisition step regardless of the layout setting. Furthermore, the data size of the entire document can be obtained as the sum of the data sizes of the divided documents.

なお、文書における指定範囲は、通常、文書に対して例えばユーザが指定した位置と、表示媒体について設定される表示範囲の大きさとによって決めることができる。したがって、指定範囲データサイズ取得ステップでは、指定範囲に伴う文書中のデータ位置等を基準とすることによって、指定範囲を含む分割文書を特定することができる。   Note that the designated range in a document can usually be determined by the position designated by the user for the document and the size of the display range set for the display medium. Therefore, in the designated range data size acquisition step, a divided document including the designated range can be specified by using the data position in the document associated with the designated range as a reference.

指定範囲のデータサイズは、分割文書が特定されれば求めることができる。例えば、単純な方法としては、特定した分割文書のデータサイズを合算すればよい。この場合、指定範囲からはみ出して表示されない部分を持つ分割文書が含まれることもあるが、要は、最終的に求めたい割合の精度の問題に帰着する。分割文書のデータサイズの合算によって指定範囲のデータサイズを求める手法では、精度を上げたければ、文書の分割数を増やして、1つの分割文書のデータサイズを小さくすればよい。   The data size of the specified range can be obtained if a divided document is specified. For example, as a simple method, the data sizes of the specified divided documents may be added up. In this case, a divided document having a portion that is not displayed outside the specified range may be included, but in short, it results in a problem of accuracy of a ratio to be finally obtained. In the method of obtaining the data size of the specified range by adding the data sizes of the divided documents, if the accuracy is to be increased, the number of divided documents may be increased to reduce the data size of one divided document.

この手法では、文書のレイアウトを全く行わずに、文書中に指定範囲が占める割合を推定的に求めることができるので、処理が極めて簡便であり、かつ処理に必要なリソースを格段に減らすことができる。   This method can estimate the proportion of the specified range in the document without any layout of the document, so the processing is extremely simple and the resources required for the processing can be greatly reduced. it can.

他の手法としては、特定した分割文書を、可変レイアウトのその時の設定に従ってレイアウトし、表示される部分のデータサイズを求めればよい。この手法は、指定範囲を含む分割文書のみをレイアウトするので、文書全体をレイアウトする必要が無く、処理が簡便であり、処理に必要なリソースが少なくて済む上に、上記の手法より精度を向上させることができる。   As another method, the specified divided document may be laid out according to the current setting of the variable layout, and the data size of the displayed portion may be obtained. This method lays out only the divided documents including the specified range, so there is no need to lay out the entire document, the processing is simple, the resources required for processing are less, and the accuracy is improved over the above method. Can be made.

これによって、可変レイアウトの集まりからなる文書であっても、高速に指定範囲の割合を得ることができる効果が出てくる。また割合を計算する為にレイアウトをまったく保持する必要が無い、あるいは一部しか保持する必要がないので、少ない処理リソース(CPU処理能力やメモリ環境など)でも処理できる効果が出てくる。   As a result, even for a document consisting of a collection of variable layouts, the ratio of the specified range can be obtained at high speed. In addition, since it is not necessary to hold the layout at all or only a part of the layout to calculate the ratio, an effect that processing can be performed with a small processing resource (CPU processing capacity, memory environment, etc.) is obtained.

また、本発明の表示制御方法は、上述のように、前記指定範囲を前記表示範囲とし、前記割合取得ステップから得られた割合に応じたスクロールバーを表示し、また、ユーザーのスクロールバー操作に応じて前記表示範囲の表示内容を制御するスクロールバー表示制御ステップを有することを特徴とする。   In addition, as described above, the display control method of the present invention uses the specified range as the display range, displays a scroll bar corresponding to the ratio obtained from the ratio acquisition step, and allows the user to operate the scroll bar. Accordingly, there is provided a scroll bar display control step for controlling the display contents of the display range.

上記の構成によれば、指定範囲に応じた文書の部分の表示を行い、また、割合取得ステップから得られた割合に応じたスクロールバーを高速に表示することで、指定範囲をスクロールバー表示を伴って表示させることができる。   According to the above configuration, the portion of the document corresponding to the specified range is displayed, and the scroll bar corresponding to the ratio obtained from the ratio acquisition step is displayed at high speed, so that the specified range can be displayed in the scroll bar. It can be displayed with it.

また、ユーザーがスクロールバーを操作するなどして指定した位置を基準とすることで、可変レイアウトの表示システムでも、ユーザーが所望する範囲を高速に表示させるような制御を行うことができるようになる。   In addition, by using the position specified by the user by operating the scroll bar as a reference, even in a variable layout display system, it is possible to perform control so that the range desired by the user can be displayed at high speed. .

これによって、可変レイアウトの表示システムでも、スクロールバーを使った表示や制御が高速に行えるという効果が出てくる。   As a result, even with a variable layout display system, the display and control using the scroll bar can be performed at high speed.

なお、本方法を、既に説明した本発明の各方法のいずれかと、適宜組み合わせることができる。   Note that this method can be appropriately combined with any of the methods of the present invention already described.

また、本発明に係る表示制御方法は、上述のように、前記スクロールバー表示制御ステップにおいて、前記表示範囲を指定するためにスクロールバー内に表示されるスクロールボックスが、スクロールバーの始端もしくは終端を含む範囲を指定している場合には、文書の最初から、もしくは最後まで表示するようにすることを特徴とする。   In the display control method according to the present invention, as described above, in the scroll bar display control step, the scroll box displayed in the scroll bar for designating the display range has a start or end of the scroll bar. When a range to be included is specified, the document is displayed from the beginning or the end.

上記の構成において、スクロールボックスが、スクロールバーの始端もしくは終端を含む範囲を指定している場合、スクロールボックスの長さが固定されているならば、スクロールボックスがスクロールバーの中心に位置しようと、端に位置しようと、指定した範囲と表示結果とは、ずれることなく一致する。しかし、スクロールボックスの長さが本発明のように推定値であり、位置によって変化し得る場合、指定した範囲と表示結果とが一致しないことが考えられる。   In the above configuration, when the scroll box specifies a range including the start or end of the scroll bar, if the scroll box has a fixed length, the scroll box attempts to be positioned at the center of the scroll bar. Regardless of whether it is positioned at the end, the specified range matches the display result without any deviation. However, when the length of the scroll box is an estimated value as in the present invention and can change depending on the position, it is conceivable that the designated range does not match the display result.

この不一致によって、推定値の値によっては、文書の最初または最後の部分を表示するように指定できなくなったり、あるいは余計な空白を入れた表示をしてしまうことが考えられる。   Due to this discrepancy, depending on the value of the estimated value, it may not be possible to specify to display the first or last part of the document, or it may be displayed with an extra blank.

また、文書の最初もしくは最後を含む範囲を指定した場合は、そのスクロールボックスの中心位置に相当する文書の範囲を表示したいというよりも、文書の最初からあるいは最後までの範囲を表示したいと解釈する方が自然である。   Also, if you specify a range that includes the beginning or end of the document, it is interpreted that you want to display the range from the beginning to the end of the document rather than displaying the range of the document corresponding to the center position of the scroll box. Is more natural.

そこで、スクロールボックスが、スクロールバーの始端もしくは終端を含む範囲を指定している場合には、文書の最初から、もしくは最後までを含むような指定範囲が指定されたとして解釈して、表示を行うことで、推定誤差による上記不具合を回避し、またユーザーの意図に沿った処理を行うことができるという効果が出てくる。   Therefore, if the scroll box specifies a range that includes the start or end of the scroll bar, it is interpreted as a specified range that includes the beginning or end of the document, and is displayed. As a result, it is possible to avoid the above problems due to the estimation error and to perform processing according to the user's intention.

また、本発明に係る表示制御方法は、上記の課題を解決する為に、前記分割文書および前記指定範囲のデータサイズとして、バイト数やビット数などの符号化データサイズを使うことを特徴とする。   In addition, the display control method according to the present invention is characterized by using an encoded data size such as the number of bytes or the number of bits as the data size of the divided document and the specified range in order to solve the above-described problem. .

上記の構成によれば、バイトやビットは、主記憶や外部記憶上などで扱うデータサイズの単位なので、文書データなどをコンピュータ上で扱う場合、データサイズを示す指標としては、符号化データサイズが最も得やすく、また扱い易いという効果が出てくる。ひいては割合を求めるなどの処理も簡単になるという効果が得られる。   According to the above configuration, since bytes and bits are units of data size to be handled on the main memory or external memory, when handling document data on a computer, an encoded data size is used as an index indicating the data size. It is easy to obtain and easy to handle. As a result, it is possible to obtain an effect of simplifying the processing such as obtaining the ratio.

なお、本方法を、既に説明した本発明の前記各方法と、必要に応じて任意に組み合わせてもよい。   In addition, you may combine this method arbitrarily with each said method of this invention already demonstrated as needed.

また、本発明に係る表示制御方法は、上記の課題を解決する為に、前記分割文書のデータサイズとして分割文書の意味単位に基づく数を使うことを特徴とする。   The display control method according to the present invention is characterized in that a number based on a semantic unit of a divided document is used as a data size of the divided document in order to solve the above-described problem.

上記の構成によれば、表示割合をデータサイズなどを使って推測する場合に、文書データ中にはレイアウトサイズにあまり関係ないようなデータ、例えば文字の色など、が含まれていることがあるので、精度を上げるには、レイアウトサイズにあまり関係ないデータを除くことが好ましい。   According to the above configuration, when the display ratio is estimated using the data size or the like, the document data may include data that is not so much related to the layout size, for example, the character color. Therefore, in order to increase the accuracy, it is preferable to exclude data that is not significantly related to the layout size.

上記の「意味単位に基づく数」とは、人間に知覚できるような処理単位を意味単位として捉えた時の処理単位の数ということで、文書の場合で言えば、文字(要素)数や行数、改行数などが該当する。   The above “number based on semantic units” means the number of processing units when processing units that can be perceived by humans are considered as semantic units. In the case of documents, the number of characters (elements) and lines Number, number of line breaks, etc.

このような意味単位に基づく数をデータサイズとして使うことで、レイアウトサイズにあまり関係ないデータの影響を少なくすることができる効果が出てくる。   By using the number based on such a semantic unit as the data size, there is an effect that the influence of the data not so much related to the layout size can be reduced.

また、これらの意味単位に基づく数は、レイアウト処理によって変わるものではないので、事前に数えておくことが可能であり、レイアウト処理などを最小限に抑えた処理を可能にするという前述の効果が変わりなく得られるものである。   In addition, since the number based on these semantic units does not change depending on the layout processing, it can be counted in advance, and the above-described effect of enabling processing with minimal layout processing is achieved. It can be obtained without change.

なお、本方法を、既に説明した本発明の前記各方法と、必要に応じて任意に組み合わせてもよい。   In addition, you may combine this method arbitrarily with each said method of this invention already demonstrated as needed.

また、本発明に係る表示制御方法は、上記の課題を解決する為に、前記意味単位に基づく数として文字数あるいは単語数を使うことを特徴とする。   The display control method according to the present invention is characterized in that the number of characters or the number of words is used as the number based on the semantic unit in order to solve the above-described problem.

上記の構成によれば、データサイズとして上述の意味単位に基づく数を使う場合に、意味単位が小さい程、データサイズの精度が上がるので、表示割合の算出精度を上げることができる。すると、意味単位として、単語数は改行数や行数に比べて小さな単位であり、文字数は単語数より更に小さな単位である。したがって、意味単位の中でも、単語数を用いれば、表示割合の算出精度を相対的に高めることができ、特に文字数を用いれば、算出精度を更に上げることができる。   According to the above configuration, when the number based on the above-described semantic unit is used as the data size, the accuracy of the data size increases as the semantic unit decreases, so that the calculation accuracy of the display ratio can be increased. Then, as a semantic unit, the number of words is a unit smaller than the number of line breaks or lines, and the number of characters is a unit smaller than the number of words. Therefore, among the semantic units, if the number of words is used, the calculation accuracy of the display ratio can be relatively increased, and if the number of characters is particularly used, the calculation accuracy can be further increased.

また、本発明に係る表示制御方法は、上記の課題を解決する為に、前記分割文書または前記指定範囲のデータサイズを得る際、実際の表示サイズがデータサイズと相関しない表示要素が文書中に含まれている場合、当該表示要素の表示サイズをデータサイズに換算した値を使うことを特徴とする。   Further, in order to solve the above problem, the display control method according to the present invention has a display element whose actual display size does not correlate with the data size in the document when obtaining the data size of the divided document or the specified range. If included, a value obtained by converting the display size of the display element into a data size is used.

上記の構成で、実際の表示サイズがデータサイズと相関しない表示要素とは、例えば表示形態に関するデータやファイル名のデータのみが文書データ中に記述された画像である。このような場合、表示形態やファイル名のデータのサイズを、バイト数やビット数などで取得しても、実際の表示サイズとは不一致となり、通常小さくなることが多い。   In the above configuration, the display element whose actual display size does not correlate with the data size is, for example, an image in which only data relating to the display form and data of the file name are described in the document data. In such a case, even if the display format or the file name data size is acquired in terms of the number of bytes, the number of bits, etc., the actual display size does not match and it is usually small.

文字や画像の大きさは実際にはレイアウトしないと完全に決定しないこともあるが、基準文字サイズを仮決めするなど、何らかの仮定をおいてレイアウトを行っても、ある程度の傾向は出てくる。そこで、実際の表示サイズがデータサイズと相関しない表示要素のレイアウトの大きさを、何らかの仮定の元に推定し、それをデータサイズに換算することで、データサイズだけで推定するよりも推定精度が増す可能性が大きくなるという効果が出てくる。   Although the size of characters and images may not be completely determined unless they are actually laid out, a certain degree of tendency appears even if the layout is made with some assumptions such as temporarily determining the reference character size. Therefore, by estimating the layout size of the display element whose actual display size does not correlate with the data size under some assumptions, and converting it to the data size, the estimation accuracy is higher than the estimation based on the data size alone. The effect that the possibility of increasing becomes large comes out.

なお、本方法を、既に説明した本発明の前記各方法と、必要に応じて任意に組み合わせてもよい。   In addition, you may combine this method arbitrarily with each said method of this invention already demonstrated as needed.

また、本発明に係る表示制御方法は、上記の課題を解決する為に、前記スクロールバー表示制御ステップにおいて、前記表示範囲を指定するためにスクロールバー内に表示されるスクロールボックスの中央位置が、前記表示範囲の中央位置の表示割合を示すようにすることを特徴とする。   Further, in order to solve the above-described problem, the display control method according to the present invention has a center position of a scroll box displayed in the scroll bar for designating the display range in the scroll bar display control step. The display ratio of the center position of the display range is indicated.

上記の構成において、指定範囲の割合は、表示倍率などを変えない限りは通常は一定となる。しかし、本発明では、指定範囲の割合をデータサイズを元にして推測しているので、一定とは限らない。その為、指定範囲の位置によっては、スクロールボックスの長さが変わってしまうことがある。この長さの変化は推測誤差に相当する。   In the above configuration, the ratio of the designated range is usually constant unless the display magnification is changed. However, in the present invention, since the ratio of the designated range is estimated based on the data size, it is not always constant. Therefore, the length of the scroll box may change depending on the position of the specified range. This change in length corresponds to an estimation error.

上記の構成によれば、表示範囲を指定するスクロールボックスの中央位置が、表示範囲の中央位置の表示割合を示すようにすることで、その誤差をスクロールボックスの両端に分散させ、長さの変化に対する視覚的な違和感を軽減することができる効果がある。   According to the above configuration, the center position of the scroll box that specifies the display range indicates the display ratio of the center position of the display range, so that the error is distributed to both ends of the scroll box and the length changes. There is an effect that can reduce the visual discomfort to the.

また、ユーザーにとって、スクロールバーを操作する際に、視覚上、直感的に表示割合や表示部分の位置を捉えやすくなる効果も出てくる。   In addition, when the user operates the scroll bar, the user can easily visually grasp the display ratio and the position of the display portion.

また、本発明に係る表示制御方法は、上記の課題を解決する為に、前記スクロールバー表示制御ステップにおいて、前記スクロールボックス上の基準位置を変更すると共に、該スクロールボックス上の基準位置に対応する前記指定位置データ位置を合わせて変更することを特徴とする。   In addition, in order to solve the above-described problem, the display control method according to the present invention changes the reference position on the scroll box and corresponds to the reference position on the scroll box in the scroll bar display control step. The designated position data position is changed in accordance with the designated position data position.

先に説明した方法によれば、スクロールボックスが、スクロールバーの始端もしくは終端を含む範囲を指定している場合もうまく処理できるようになるが、始端もしくは終端をわずかに含まない範囲を指定した場合に、スクロールボックスの中心位置を使った表示方法を実行するとすれば、端を含むか含まないかの差はわずかなのに、表示結果は大きく飛んでしまうことが起こるという不具合が考えられる。   According to the method explained earlier, the scroll box can be processed well even if the range including the start or end of the scroll bar is specified, but if the range that does not include the start or end slightly is specified However, if the display method using the center position of the scroll box is executed, there is a problem that the display result may be greatly skipped although the difference between whether or not the edge is included is small.

そこで、上記の構成によれば、表示範囲を指定するスクロールボックスのスクロールバー内の位置に応じて、スクロールボックスと表示範囲とで対応付けされた基準位置を変更するように指定範囲を解釈する。   Therefore, according to the above configuration, the specified range is interpreted so that the reference position associated with the scroll box and the display range is changed according to the position in the scroll bar of the scroll box specifying the display range.

例えば、スクロールボックスがスクロールバーの中心付近に位置する場合は、表示範囲が文書中に占める位置と割合とを表す基準となるスクロールボックス上の基準位置と、表示範囲上の基準位置(指定位置データ位置)とを、共に中心付近で一致させるようにする。   For example, when the scroll box is located near the center of the scroll bar, the reference position on the scroll box, which is a reference indicating the position and ratio of the display range in the document, and the reference position on the display range (specified position data) And (position) are matched in the vicinity of the center.

そして、スクロールボックスがスクロールバーの中心から離れるのに応じて(例えば比例して)、両者の基準位置を共にずらしていく。   Then, as the scroll box moves away from the center of the scroll bar (for example, in proportion), both reference positions are shifted together.

さらに、文書の最初や最後を含む範囲が指定された場合には、スクロールボックスの始端または終端を基準位置とすると共に、表示範囲についても始端または終端を基準位置として、スクロールボックスおよび表示範囲の基準位置を始端または終端に一致させるようにする。   In addition, when a range that includes the beginning or end of the document is specified, the start or end of the scroll box is used as the reference position, and the display range is also used as the reference position for the scroll box and display range. Match the position to the start or end.

これによって、スクロールバー末端付近のスクロールボックスのわずかな位置の違いで表示が大きくずれてしまうことを防ぐ効果が出てくる。   As a result, an effect of preventing the display from being largely shifted due to a slight difference in the position of the scroll box near the end of the scroll bar can be obtained.

また、本発明に係る表示制御装置は、上記の課題を解決する為に、文書を、表示要素やレイアウト的にきりの良い所で複数の部分に分割した分割文書の各データサイズを得る分割データサイズ取得手段と、表示範囲を指定するためにスクロールバー内に表示されるスクロールボックスのスクロールバー内の位置に応じて、前記表示範囲が文書中に占める位置を表す基準となるスクロールボックス上の基準位置に対応する指定位置データ位置を含むように、上記文書に対して指定された指定範囲を含む分割文書を特定すると共に、特定した分割文書を元にして前記指定範囲のデータサイズを求める指定範囲データサイズ取得手段と、前記分割データサイズ取得手段から得た分割文書の各データサイズの和と、前記指定範囲データサイズ取得手段から得た前記指定範囲のデータサイズとから、文書中に前記指定範囲が占める割合を求める割合取得手段と、前記指定範囲を前記表示範囲とし、前記割合取得手段から得られた割合に応じたスクロールバーを表示し、また、ユーザーのスクロールバー操作に応じて前記表示範囲の表示内容を制御するスクロールバー表示制御手段とを有し、前記スクロールバー表示制御手段は、前記表示範囲を指定するためにスクロールバー内に表示されるスクロールボックスが、スクロールバーの始端もしくは終端を含む範囲を指定している場合には、文書の最初から、もしくは最後まで表示するようにするように構成されていることを特徴とする。   Further, in order to solve the above-described problem, the display control apparatus according to the present invention provides divided data that obtains each data size of a divided document obtained by dividing a document into a plurality of portions where the display element or layout is well-defined. A reference on the scroll box serving as a reference representing the position occupied by the display range in the document according to the size acquisition means and the position in the scroll bar of the scroll box displayed in the scroll bar to specify the display range A specified range for specifying a divided document including a specified range specified for the document so as to include a specified position data position corresponding to the position, and obtaining a data size of the specified range based on the specified divided document A data size acquisition unit, a sum of data sizes of the divided documents obtained from the divided data size acquisition unit, and the specified range data size acquisition unit From the data size of the specified range obtained from the ratio acquisition means for obtaining the proportion of the specified range in the document, and the scroll according to the ratio obtained from the ratio acquisition means, the specified range as the display range A scroll bar display control means for displaying a bar and controlling the display content of the display range in accordance with a user's scroll bar operation, the scroll bar display control means for designating the display range. If the scroll box displayed in the scroll bar specifies a range that includes the start or end of the scroll bar, make sure that the scroll box is displayed from the beginning or end of the document. Features.

これによる作用、効果は上で説明した方法と同様であるが、作用の説明を補足しておく。   The operation and effect by this are the same as the method described above, but the explanation of the operation will be supplemented.

分割データサイズ取得手段は、分割文書の各データサイズを、レイアウト設定とは無関係に得ることができる。例えば、文書をどう分割するかを文書データの作成時に予め決め、どう分割したかの情報をデータとして、文書を配信するサーバのメモリ上、または文書データを記録した記録メディアに別ファイルとして記録しておく。あるいは、文書データの一部としてヘッダ情報などの形で含めておき、文書データを記録媒体または伝送媒体を介して読み込んだときに、分割文書の各データサイズ情報を、主記憶または外部記憶などに格納しておいてもよい。   The divided data size acquisition means can obtain each data size of the divided document regardless of the layout setting. For example, how to divide a document is determined in advance when creating document data, and information on how the document is divided is recorded as data on a server memory that distributes the document or as a separate file on the recording medium that records the document data. Keep it. Alternatively, it is included as part of the document data in the form of header information, etc., and when the document data is read via a recording medium or transmission medium, each piece of data size information of the divided document is stored in main memory or external storage. It may be stored.

これにより、分割データサイズ取得手段は、分割文書の各データサイズを入手する必要が生じた時に、上記メモリ、記録メディア、主記憶または外部記憶などにアクセスして、データサイズを入手することができる。   As a result, the divided data size acquisition unit can obtain the data size by accessing the memory, the recording medium, the main memory, or the external storage when it becomes necessary to obtain each data size of the divided document. .

また、文書における指定範囲は、通常、文書に対して例えばユーザが指定した位置と、表示媒体について設定される表示範囲の大きさとによって決まるので、指定範囲データサイズ取得手段は、指定された位置を基準とすることによって、指定範囲を含む分割文書を特定することができ、さらに、指定範囲のデータサイズを、特定した分割文書を元に、既に説明した方法によって求めることができる。   In addition, the designated range in the document is usually determined by, for example, the position designated by the user with respect to the document and the size of the display range set for the display medium. Therefore, the designated range data size acquisition unit determines the designated position. By using the reference, the divided document including the specified range can be specified, and the data size of the specified range can be obtained by the method already described based on the specified divided document.

最後に、割合取得手段は、分割データサイズ取得手段から得た分割文書の各データサイズを合算することによって、指定範囲データサイズ取得手段から得た前記指定範囲のデータサイズの割合を算出することができる。   Finally, the ratio acquisition unit may calculate the ratio of the data size of the specified range obtained from the specified range data size acquisition unit by adding the data sizes of the divided documents obtained from the divided data size acquisition unit. it can.

また、本発明に係る表示制御プログラムは、上記の課題を解決する為に、上記スクロールバー表示制御方法が備える各ステップをコンピュータに実行させることを特徴とする。   A display control program according to the present invention causes a computer to execute each step included in the scroll bar display control method in order to solve the above-described problem.

これにより、汎用のコンピュータに、本発明のスクロールバー表示制御方法を実行させ、上記の作用、効果を得ることができる。   As a result, the general-purpose computer can execute the scroll bar display control method of the present invention, and the above-described operations and effects can be obtained.

また、本発明に係る表示制御プログラムは、上記の課題を解決する為に、上記表示制御装置が備える各手段として、コンピュータを機能させることを特徴とする。   In addition, a display control program according to the present invention causes a computer to function as each means included in the display control device in order to solve the above-described problems.

また、本発明に係る記録媒体は、上記の課題を解決する為に、上記表示制御プログラムを記録したことを特徴とする。   The recording medium according to the present invention is characterized in that the display control program is recorded in order to solve the above-described problems.

これにより、上記記録媒体から汎用のコンピュータに、表示制御プログラムをインストールすることによって、本発明の表示制御方法を実行させ、上記の作用、効果を得ることができる。   Thus, by installing the display control program from the recording medium to a general-purpose computer, the display control method of the present invention can be executed, and the above-described operations and effects can be obtained.

以上、説明したように、本発明に係る表示制御方法は、文書を、表示要素やレイアウト的にきりの良い所で複数の部分に分割した分割文書の各データサイズを得る分割データサイズ取得ステップと、表示範囲を指定するためにスクロールバー内に表示されるスクロールボックスのスクロールバー内の位置に応じて、前記表示範囲が文書中に占める位置を表す基準となるスクロールボックス上の基準位置に対応する指定位置データ位置を含むように、上記文書に対して指定された指定範囲を含む分割文書を特定すると共に、特定した分割文書を元にして前記指定範囲のデータサイズを求める指定範囲データサイズ取得ステップと、前記分割データサイズ取得ステップから得た分割文書の各データサイズの和と、前記指定範囲データサイズ取得ステップから得た前記指定範囲のデータサイズとから、文書中に前記指定範囲が占める割合を求める割合取得ステップと、前記指定範囲を前記表示範囲とし、前記割合取得ステップから得られた割合に応じたスクロールバーを表示し、また、ユーザーのスクロールバー操作に応じて前記表示範囲の表示内容を制御するスクロールバー表示制御ステップとを有し、前記スクロールバー表示制御ステップにおいて、前記表示範囲を指定するためにスクロールバー内に表示されるスクロールボックスが、スクロールバーの始端もしくは終端を含む範囲を指定している場合には、文書の最初から、もしくは最後まで表示するようにする方法である。   As described above, the display control method according to the present invention includes a divided data size acquisition step for obtaining each data size of a divided document obtained by dividing a document into a plurality of portions at a place where display documents and layout are well-defined. According to the position in the scroll bar of the scroll box displayed in the scroll bar for designating the display range, the display range corresponds to the reference position on the scroll box that is a reference representing the position in the document. A specified range data size acquisition step for specifying a divided document including a specified range specified for the document so as to include a specified position data position and obtaining a data size of the specified range based on the specified divided document And the sum of the data sizes of the divided documents obtained from the divided data size acquisition step, and the specified range data size acquisition step From the data size of the specified range obtained from the step, a ratio acquisition step for obtaining a ratio of the specified range in the document, and using the specified range as the display range, according to the ratio obtained from the ratio acquisition step And a scroll bar display control step for controlling the display contents of the display range in accordance with a user's scroll bar operation. In the scroll bar display control step, the display range is designated. Therefore, when the scroll box displayed in the scroll bar designates a range including the start or end of the scroll bar, the scroll box is displayed from the beginning to the end of the document.

また、本発明の表示制御装置は、以上のように、文書を、表示要素やレイアウト的にきりの良い所で複数の部分に分割した分割文書の各データサイズを得る分割データサイズ取得手段と、表示範囲を指定するためにスクロールバー内に表示されるスクロールボックスのスクロールバー内の位置に応じて、前記表示範囲が文書中に占める位置を表す基準となるスクロールボックス上の基準位置に対応する指定位置データ位置を含むように、上記文書に対して指定された指定範囲を含む分割文書を特定すると共に、特定した分割文書を元にして前記指定範囲のデータサイズを求める指定範囲データサイズ取得手段と、前記分割データサイズ取得手段から得た分割文書の各データサイズの和と、前記指定範囲データサイズ取得手段から得た前記指定範囲のデータサイズとから、文書中に前記指定範囲が占める割合を求める割合取得手段と、前記指定範囲を前記表示範囲とし、前記割合取得手段から得られた割合に応じたスクロールバーを表示し、また、ユーザーのスクロールバー操作に応じて前記表示範囲の表示内容を制御するスクロールバー表示制御手段とを有し、前記スクロールバー表示制御手段は、前記表示範囲を指定するためにスクロールバー内に表示されるスクロールボックスが、スクロールバーの始端もしくは終端を含む範囲を指定している場合には、文書の最初から、もしくは最後まで表示するようにするように構成されているものである。   Further, as described above, the display control apparatus according to the present invention is a divided data size acquisition unit that obtains each data size of a divided document obtained by dividing a document into a plurality of portions at a place where display documents and layout are well-defined. A designation corresponding to a reference position on the scroll box which is a reference representing the position occupied by the display range in the document according to the position in the scroll bar of the scroll box displayed in the scroll bar for specifying the display range. A specified range data size acquisition unit that specifies a divided document including a specified range specified for the document so as to include a position data position, and obtains a data size of the specified range based on the specified divided document; , The sum of each data size of the divided document obtained from the divided data size acquisition unit, and the designation obtained from the designated range data size acquisition unit From the data size of the enclosure, a ratio acquisition means for obtaining a ratio occupied by the specified range in the document, the display range as the specified range, and a scroll bar corresponding to the ratio obtained from the ratio acquisition means, Scroll bar display control means for controlling the display contents of the display range in accordance with a user's scroll bar operation, the scroll bar display control means displaying in the scroll bar to designate the display range When the scroll box specifies the range including the start or end of the scroll bar, the scroll box is configured to display from the beginning of the document to the end.

それゆえ、本発明は、文字の大きさやページサイズなどの設定を自由に変えられる可変レイアウトの文書において、高速かつできるだけ正確に、スクロールバーの表示やスクロールバーを用いた表示制御を処理すること、少ないメモリ環境などにおいても無駄なく処理を行うこと、などができる表示制御方法及び表示制御装置を提供することができるという効果を奏する。   Therefore, the present invention processes display of a scroll bar and display control using the scroll bar as quickly and as accurately as possible in a variable layout document in which settings such as character size and page size can be freely changed. There is an effect that it is possible to provide a display control method and a display control apparatus capable of performing processing without waste even in a small memory environment.

以下、本発明の実施の形態を図面を参照して説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

まず用語と概念について説明する。   First, terms and concepts will be explained.

「表示」は、一般には情報を視覚的に知覚できるような形態で表示媒体上に出力することを言う。本発明では、表示媒体に対するレイアウトの「表示」だけに限らず、印刷記録媒体に対するレイアウトの「印刷」や、データ記録媒体に対するレイアウトの「ファイル出力」など、「出力」一般にも適用可能である。説明を分かり易くする為、以降の説明では、「表示」という言葉を用いることが多いが、「出力」の意も含まれているとする。   “Display” generally means that information is output on a display medium in a form that can be visually perceived. The present invention can be applied not only to “display” of a layout for a display medium but also to “output” in general such as “print” of a layout for a print recording medium and “file output” of a layout for a data recording medium. In order to make the explanation easier to understand, in the following explanation, the word “display” is often used, but the meaning of “output” is also included.

「表示要素」とは、文字や絵、写真、図形、動画像など、表示することのできるデータ要素を指す。表示する為には、通常、表示位置と表示サイズの他に、外形、表示表現形態などの属性を、表示要素は持っている必要があり、表示装置はそれらの取得手段を持っている必要がある。   A “display element” refers to a data element that can be displayed, such as a character, a picture, a photograph, a figure, or a moving image. In order to display, in addition to the display position and display size, it is usually necessary for the display element to have attributes such as the outer shape and the display expression form, and the display device must have means for acquiring them. is there.

但し、表示要素は、表示している状態のデータ要素だけを指すのではなく、主記憶や外部記憶、その他の機器上に、表示/出力に備えて記録/格納されているデータ要素も含む。何かの形に置き換えて出力するという意味では、「出力要素」と言い換えても良いが、上述した様に以降では分かり易くする為に「表示要素」と表現しておく。また、表示は2次元表示だけでなく、3次元表示も含む。   However, the display element does not indicate only the data element in the displayed state, but also includes a data element recorded / stored for display / output on main memory, external storage, or other devices. In terms of output in some form of replacement, it may be paraphrased as “output element”, but as described above, it will be expressed as “display element” for the sake of simplicity. The display includes not only two-dimensional display but also three-dimensional display.

「表示表現形態」は、例えば文字ならば、文字の輪郭および内部を表示装置上の画素位置として計算し、その画素を設定された文字色で塗りつぶすことになる。表示でなくて、印刷の場合も画素で塗りつぶす行為が、紙に点を印刷することに相当するだけで、同様の方法で出力できる。PDFなどに表示要素のデータを出力する場合も、画素情報に展開して出力することもできるし、その手前の輪郭データなどとして出力することもできるし、PDFデータを後でPDF用アプリケーションが解釈する際に、画素情報などに展開できるだけの十分な情報量のデータ(例えば、フォント名と文字コード、位置、文字サイズ、文字色など)として出力することもできる。   For example, if the “display expression form” is a character, the contour and the inside of the character are calculated as pixel positions on the display device, and the pixels are filled with the set character color. In the case of printing instead of displaying, the act of painting with pixels is equivalent to printing dots on paper and can be output in the same manner. When outputting display element data to a PDF or the like, it can be expanded into pixel information and output as contour data before that, or the PDF data can be interpreted later by an application for PDF. In this case, the data can be output as data having a sufficient amount of information (for example, font name and character code, position, character size, character color, etc.) that can be developed into pixel information.

「レイアウト」とは、表示要素が2次元または3次元の空間座標上に、位置とサイズ、外形の属性をもって配置されること、あるいは配置されたもののことを言う。位置やサイズは、通常は何らかの単位を使った値として表現される。例えば、画素の集まりからなるディスプレイに表示する場合は、(画素)ドットの単位で表現される。1つないし複数の表示要素がレイアウトされた結果、その表示要素に関して定まる空間座標上の位置のことを「レイアウト位置」、1つないし複数の表示要素がレイアウトされた結果、その表示要素に関して定まる空間座標上のサイズのことを「レイアウトサイズ」と以降では呼ぶ場合もある。   The “layout” means that display elements are arranged on the two-dimensional or three-dimensional space coordinates with attributes of position, size, and outer shape, or arranged. The position and size are usually expressed as values using some unit. For example, when displaying on a display composed of a collection of pixels, it is expressed in units of (pixel) dots. As a result of the layout of one or a plurality of display elements, a position on a space coordinate determined for the display element is “layout position”. As a result of the layout of one or a plurality of display elements, a space determined for the display element The size on the coordinates may be referred to as “layout size” hereinafter.

「文書」とは、一つまたは複数の表示要素がレイアウトされたもの、あるいはレイアウトしたり、レイアウトに基づいて表示要素を表示したりすることができるだけの情報量を持ったデータを指す。文書データは、表示要素のデータも含む場合と、レイアウト情報だけ持っていて表示要素のデータの一部を含む場合やあるいはまったく含まない場合もある。いずれにしろ、文書データを使って、レイアウトに従った表示や出力ができる。   “Document” refers to data in which one or a plurality of display elements are laid out, or data having an amount of information that can be laid out or displayed based on the layout. The document data may include display element data, may have only layout information, and may include a part of display element data, or may not include at all. In any case, the document data can be used for display and output according to the layout.

図1は、ある文書がレイアウトされた例を示している。図1の110はレイアウト全体を指し、その中のそれぞれの文字や画像がレイアウトされた表示要素にあたる。実際に表示される際は、ここから表示範囲のレイアウトが切り出されて表示される。   FIG. 1 shows an example in which a certain document is laid out. 110 in FIG. 1 indicates the entire layout, and each character or image in the layout corresponds to a layout display element. When actually displayed, the layout of the display range is cut out from here and displayed.

文書の「指定範囲」とは、スクロールバーの場合で言えば、その文書中の表示したい範囲を指す。通常は、レイアウトされた文書中での位置とサイズ、外形で指定する。外形は矩形が一般的である。なお、「指定範囲」は、表示したい範囲に限らず、印刷したい範囲の場合もあり、また、PDFなどのデータフォーマット形式で主記憶上や外部記憶上に記録したい範囲の場合もある。   In the case of a scroll bar, the “specified range” of a document refers to a range to be displayed in the document. Normally, it is specified by the position, size, and outline in the laid out document. The outer shape is generally rectangular. The “designated range” is not limited to the range to be displayed but may be a range to be printed, or may be a range to be recorded on the main memory or the external memory in a data format format such as PDF.

スクロールバーで指定範囲を指定する場合、スクロールボックスのサイズが指定範囲のサイズとなり、スクロールボックスの位置が指定範囲の位置となる。スクロールボックスのサイズはスクロールバーの直接操作では通常は変更できないので、位置を変えるだけになる。スクロールボックスのサイズを変更するには、表示倍率を変える、などの操作を別途行わなければならない。   When the specified range is specified by the scroll bar, the size of the scroll box becomes the size of the specified range, and the position of the scroll box becomes the position of the specified range. The size of the scroll box cannot usually be changed by direct manipulation of the scroll bar, so only the position is changed. In order to change the size of the scroll box, it is necessary to separately perform operations such as changing the display magnification.

スクロールボックスの位置の変更操作は、通常、マウスやキーボードなどを使って行われる。例えば、スクロールボックス上にマウスカーソルを移動させ、マウスの左ボタンを押す。そのボタンを押しつづけたまま、スクロールボックスを移動させたい位置までマウスを動かし、移動させたい位置でボタンを離す。スクロールボックスをいわゆる「ドラッグ&ドロップ」することになる。   The operation of changing the position of the scroll box is usually performed using a mouse or a keyboard. For example, move the mouse cursor over the scroll box and press the left mouse button. While holding down the button, move the mouse to the position where you want to move the scroll box, and release the button at the position where you want to move it. The scroll box is called “drag and drop”.

また、スクロールバー上にスクロールボックスを移動させるスクロールボタン(矢印の表示をしていることが多い)などがある場合、そのスクロールボタンを押すことで、所定の方向に所定量だけスクロールボックスが移動する。スクロールボタンと同様の操作は、キーボード上の方向キーやスペースキーなどを押すことでもできる場合もある。   In addition, when there is a scroll button for moving the scroll box on the scroll bar (an arrow is often displayed), the scroll box is moved by a predetermined amount in a predetermined direction by pressing the scroll button. . The same operation as the scroll button may be performed by pressing a direction key or a space key on the keyboard.

スクロールバーから指定範囲を得る場合、スクロールバー中でスクロールボックスを配置できる範囲のサイズ、その範囲中でのスクロールボックスの位置、スクロールボックスのサイズが得られれば、スクロールボックスによって指定される範囲が分かる。   When the specified range is obtained from the scroll bar, if the size of the range in which the scroll box can be placed in the scroll bar, the position of the scroll box in the range, and the size of the scroll box are obtained, the range specified by the scroll box is known. .

スクロールバーやスクロールボックスの位置、サイズは、通常、画面表示のドット数で表される。例えば、スクロールバー中でスクロールボックスを配置できる範囲が250ドットで、スクロールボックスはその配置できる範囲の先頭から100ドットの所に位置し、そこから50ドット分のサイズを占める、などとなる。スクロールバーのどちらの端が先頭かは目的に応じて決めればよい。   The position and size of the scroll bar and scroll box are usually represented by the number of dots displayed on the screen. For example, the range in which the scroll box can be arranged in the scroll bar is 250 dots, the scroll box is located 100 dots from the head of the arrangeable range, and occupies the size of 50 dots from there. Which end of the scroll bar is the top may be determined according to the purpose.

スクロールバーを使って指定範囲を得る場合や、現在表示している範囲をスクロールバーで表示する場合、最終的には画面表示のドット数が単位となるのだが、スクロールバー全体の大きさも変わったりするので、以降では説明を汎用的にする為、スクロールボックスの位置、サイズは、ドット数ではなくて割合を使って主に説明する。割合は0.0〜1.0の値となる。   When the specified range is obtained using the scroll bar, or when the currently displayed range is displayed with the scroll bar, the number of dots on the screen will eventually be the unit, but the overall size of the scroll bar may also change. Therefore, in the following, in order to make the description general, the position and size of the scroll box will be mainly described by using the ratio, not the number of dots. The ratio is a value of 0.0 to 1.0.

例えば、先の例では、スクロールボックスの位置の割合は、(100/250)=0.4となり、スクロールボックスのサイズの割合は、(50/250)=0.2となる。   For example, in the previous example, the ratio of the position of the scroll box is (100/250) = 0.4, and the ratio of the size of the scroll box is (50/250) = 0.2.

指定範囲の指定の仕方としては、文書の全体縮小表示上でマウスドラッグなどにより矩形を指定することで行われることもある。この場合は位置とサイズを同時に指定することができる。   The specification range may be specified by specifying a rectangle by dragging the mouse on the entire reduced display of the document. In this case, the position and size can be specified at the same time.

指定範囲の位置とサイズはどんな単位系で表現されても良いのだが、スクロールバーなどで指定される場合は、文書全体の中での割合として得られることが多い。   The position and size of the specified range may be expressed in any unit system, but when specified with a scroll bar or the like, it is often obtained as a ratio in the entire document.

次に、文書の「分割」とは、レイアウト的な分割とデータ的な分割の2通り考えられるが、本発明ではデータ的な分割を対象とする。   Next, “division” of a document can be considered in two ways: layout division and data division. In the present invention, data division is targeted.

レイアウト的な分割とは、表示要素がレイアウトされた状態で、座標空間上の範囲として分割することである。例えて言えば、印刷された紙を鋏で切るようなものである。   The layout division is to divide the display element as a range on the coordinate space in a state where the display element is laid out. For example, it is like cutting printed paper with a scissors.

一方、データ的な分割は、バイトやビットなどのデジタル量として表現された文書データを、データ列として分割することである。これは人間が直接知覚することはできないが、表示要素やレイアウト的にきりの良い所(例えば、改行や段落の前後)でデータ列を分割した場合、その分割データの表示や出力はレイアウト的に分割されたように表現されるので、間接的に知覚できる。また、表示要素やレイアウト的にきりの良い所でデータ列を分割した方が後の処理がしやすい。   On the other hand, the data division is to divide document data expressed as digital quantities such as bytes and bits into a data string. This cannot be perceived directly by humans, but when a data string is divided at a place where display elements and layout are well-defined (for example, before and after line breaks and paragraphs), the display and output of the divided data is in terms of layout. Since it is expressed as divided, it can be perceived indirectly. In addition, it is easier to perform subsequent processing if the data string is divided at a place where display elements and layout are well-defined.

また、どちらの場合でも、表示要素やレイアウト的にきりの良い所で文書を分割した場合、レイアウト的な分割でもデータ的な分割でもどちらの形でも分割状態として表現できることが多い。   In either case, when a document is divided at a place where display elements and layout are well-defined, it can often be expressed as a divided state in either form of layout division or data division.

図2は、図1の文書レイアウトの文書データ(HTMLで記述されているとする)を分割した例である。分割文書データ50〜55のように、元の文書データがHTMLソースの文字単位で分割されている。また、レイアウト的に切りが良いように、改行(「<BR/>」)の前後などでできるだけ分割している。この分割の処理は、コンテンツデータが作成される時に行われるとし、コンテンツデータを読み込む段階では、どう分割されたかの情報は入手できるとする。   FIG. 2 is an example in which the document data of the document layout of FIG. 1 (described in HTML) is divided. Like the divided document data 50 to 55, the original document data is divided in units of characters of the HTML source. In addition, it is divided as much as possible before and after a line feed (“<BR/>”) so that the layout is good. It is assumed that this division processing is performed when content data is created, and information on how the data has been divided can be obtained at the stage of reading the content data.

文書の「データサイズ」とは、データの規模を示す値で、一般には文書データをバイトやビットなどの符号化量(デジタル量)として表現、記録した時のサイズであるが、ここでは後に説明する「意味単位に基づく数」などもデータの規模を示すものとしてデータサイズに含まれるとする。   The “data size” of a document is a value indicating the scale of the data, and is generally a size when document data is expressed and recorded as an encoded amount (digital amount) such as bytes or bits. It is assumed that the “number based on the semantic unit” and the like are included in the data size as indicating the scale of the data.

文書の「意味単位に基づく数」とは、人間に知覚できるような処理単位を意味単位として捉えた時の処理単位の数ということで、文書の場合で言えば、文字(要素)数や行数、改行数などが考えられる。   The “number based on semantic units” of a document means the number of processing units when processing units that can be perceived by humans are considered as semantic units. In the case of documents, the number of characters (elements) and lines Numbers, line breaks, etc.

図26は、本発明の実施の一形態に係り、上述したスクロールバー表示制御方法を実施するスクロールバー表示制御装置を示す構成図である。   FIG. 26 is a configuration diagram illustrating a scroll bar display control apparatus that performs the above-described scroll bar display control method according to an embodiment of the present invention.

すなわち、スクロールバー表示制御装置の要部を、分割データサイズ取得手段1、指定範囲データサイズ取得手段2、割合取得手段3、スクロールバー表示手段4、指定範囲取得手段5、指定範囲レイアウト取得手段6、レイアウト表示手段7、分割文書レイアウト取得手段8に展開して示すことができる。   That is, the main parts of the scroll bar display control device are divided data size acquisition means 1, specified range data size acquisition means 2, ratio acquisition means 3, scroll bar display means 4, specified range acquisition means 5, and specified range layout acquisition means 6. The layout display means 7 and the divided document layout acquisition means 8 can be expanded and shown.

図27は、図26の各手段1〜8を具体的に実現する装置の構成例である。   FIG. 27 is a configuration example of a device that specifically realizes each of the means 1 to 8 in FIG.

CPU(central processing unit)20は、上記分割データサイズ取得手段1、指定範囲データサイズ取得手段2、割合取得手段3、スクロールバー表示手段4、指定範囲取得手段5、指定範囲レイアウト取得手段6、レイアウト表示手段7、分割文書レイアウト取得手段8として機能し、これら各手段1〜8による処理手順が記述されたプログラムを主記憶25、外部記憶26、通信デバイス29を経たネットワーク先などから得る。   The CPU (central processing unit) 20 includes the divided data size acquisition unit 1, the specified range data size acquisition unit 2, the ratio acquisition unit 3, the scroll bar display unit 4, the specified range acquisition unit 5, the specified range layout acquisition unit 6, and the layout. It functions as the display means 7 and the divided document layout acquisition means 8 and obtains a program in which processing procedures by these means 1 to 8 are described from the main memory 25, the external memory 26, the network destination via the communication device 29, and the like.

また、CPU20は、CPU20を含めてバス30を通じ相互に接続されたグラフィックデバイス21、プリンタ23、スピーカー24、主記憶25、外部記憶26、マウス27、キーボード28、通信デバイス29とデータのやりとりを行ないながら、既に説明した各処理を行なう。   Further, the CPU 20 exchanges data with the graphic device 21, the printer 23, the speaker 24, the main memory 25, the external storage 26, the mouse 27, the keyboard 28, and the communication device 29 that are mutually connected through the bus 30 including the CPU 20. However, the processes described above are performed.

なお、データのやりとりは、バス30を介して行う場合に限らず、データを送受信できるものならば、通信ケーブルや無線通信装置などを介してもよい。また、各手段1〜8の実現手段としては、CPUに限らず、DSP( digital signal processor)や処理手順が回路として組み込まれているロジック回路などを用いることもできる。   Note that data exchange is not limited to being performed via the bus 30, but may be via a communication cable or a wireless communication device as long as data can be transmitted and received. In addition, the means for realizing each of the means 1 to 8 is not limited to the CPU, and a DSP (digital signal processor) or a logic circuit in which a processing procedure is incorporated as a circuit may be used.

主記憶25は、通常はDRAM(dynamic random access memory)やフラッシュメモリなどのメモリデバイスで構成される。外部記憶26は、HDD (hard disk drive)やPC(personal computer) カードなどの装脱着可能な記憶手段である。あるいはCPU20と通信デバイス29を介して有線または無線で接続された他のネットワーク機器に取り付けられたメモリデバイスなどを外部記憶26として用いることもできる。   The main memory 25 is usually composed of a memory device such as a DRAM (dynamic random access memory) or a flash memory. The external storage 26 is a storage means such as an HDD (hard disk drive) or a PC (personal computer) card that can be attached and detached. Alternatively, a memory device or the like attached to another network device that is wired or wirelessly connected to the CPU 20 via the communication device 29 can be used as the external storage 26.

ユーザの操作を入力する手段として、マウス27やキーボード28、マイク31などがある。この他にもボタンやタッチパネルなど、様々な手段が使用可能である。   As means for inputting user operations, there are a mouse 27, a keyboard 28, a microphone 31, and the like. In addition, various means such as buttons and a touch panel can be used.

グラフィックデバイス21は、通常はグラフィックカードなどによって実現され、VRAM(video random access memory)を有し、VRAM上のデータを表示信号に変換して、グラフィックデバイス21に接続されたモニタ22に送り、モニタ22は表示信号を画像として表示する。   The graphic device 21 is usually realized by a graphic card or the like, has a VRAM (video random access memory), converts data on the VRAM into a display signal, and sends the display signal to a monitor 22 connected to the graphic device 21. 22 displays the display signal as an image.

プリンタ23は、バス30を介して得た印刷データを用紙に印刷する。スピーカ24は、バス30を介して得た音データを音として出力する。マウス27やキーボード28、マイク31は、ユーザーによる入力をバス30を介して他の手段に伝える。   The printer 23 prints the print data obtained via the bus 30 on a sheet. The speaker 24 outputs sound data obtained via the bus 30 as sound. The mouse 27, keyboard 28, and microphone 31 transmit user input to other means via the bus 30.

通信デバイス29は、ネットワークカードなどにより実現され、無線や有線などによりネットワークを介して接続された他のネットワーク機器とデータをやりとりする。   The communication device 29 is realized by a network card or the like, and exchanges data with other network devices connected via a network by wireless or wired communication.

図26の各手段1〜8について、各手段間のデータの授受という観点も含めて、その実現方法を説明する。   The means for realizing each means 1 to 8 in FIG. 26 will be described, including the viewpoint of data exchange between the means.

図26の分割データサイズ取得手段1としてのCPU20は、主記憶25、外部記憶26、通信デバイス29などから各分割文書のデータサイズを得る。各分割文書のデータサイズは、文書データ中に既に記述されていたり、文書データを解釈することで得られるとする。各分割文書のデータサイズの形式については、後述するが、例えば図6のような構造が考えられる。   The CPU 20 as the divided data size acquisition unit 1 in FIG. 26 obtains the data size of each divided document from the main memory 25, the external storage 26, the communication device 29, and the like. The data size of each divided document is assumed to be already described in the document data or obtained by interpreting the document data. The format of the data size of each divided document will be described later. For example, a structure as shown in FIG. 6 can be considered.

図26の指定範囲データサイズ取得手段2としてのCPU20による処理は、主記憶25、外部記憶26、通信デバイス29などから処理プログラムを読み込み、指定範囲レイアウト取得手段6からデータ位置、サイズ情報を含んだ指定範囲のレイアウトデータを得て、処理プログラムに従い処理し、割合取得手段3に指定範囲のデータサイズを出力することで行なわれる。出力処理プログラムの中身は、フローチャートなどを元に後述する。   The processing by the CPU 20 as the designated range data size acquisition unit 2 in FIG. 26 includes reading the processing program from the main memory 25, the external storage 26, the communication device 29, etc., and including the data position and size information from the designated range layout acquisition unit 6. This is done by obtaining the layout data of the specified range, processing according to the processing program, and outputting the data size of the specified range to the ratio acquisition means 3. The contents of the output processing program will be described later based on a flowchart and the like.

なお、CPUやDSPは処理手順をプログラムとして読み込むが、ロジック回路などのように処理手順が回路として組み込まれている場合はプログラムを読み込む必要はなくなる。   The CPU and DSP read the processing procedure as a program. However, when the processing procedure is incorporated as a circuit such as a logic circuit, it is not necessary to read the program.

図26の割合取得手段3としてのCPU20による処理は、主記憶25、外部記憶26、通信デバイス29などから処理プログラムを読み込み、指定範囲データサイズ取得手段2から指定範囲のデータサイズを得て、分割データサイズ取得手段1から各分割文書のデータサイズを得て、処理プログラムに従い処理し、割合をスクロールバー表示手段4に渡すことで行なわれる。出力処理プログラムの中身は、フローチャートなどを元に後述する。   The processing by the CPU 20 as the ratio acquisition unit 3 in FIG. 26 reads the processing program from the main memory 25, the external storage 26, the communication device 29, etc., obtains the data size of the specified range from the specified range data size acquisition unit 2, and divides the processing program. This is done by obtaining the data size of each divided document from the data size acquisition means 1, processing according to the processing program, and passing the ratio to the scroll bar display means 4. The contents of the output processing program will be described later based on a flowchart and the like.

図26の指定範囲レイアウト取得手段6としてのCPU20による処理は、主記憶25、外部記憶26、通信デバイス29などから処理プログラムを読み込み、指定範囲取得手段5から指定範囲を得て、分割データサイズ取得手段1から各分割文書のデータサイズを得て、分割文書レイアウト取得手段8から分割文書のレイアウトを得て、処理プログラムに従い処理し、指定範囲のレイアウトやデータ位置、サイズなどを指定範囲データサイズ取得手段2やレイアウト表示手段7に渡すことで行なわれる。出力処理プログラムの中身は、フローチャートなどを元に後述する。   The processing by the CPU 20 as the designated range layout acquisition unit 6 in FIG. 26 reads a processing program from the main memory 25, the external storage 26, the communication device 29, etc., obtains the designated range from the designated range acquisition unit 5, and acquires the divided data size. The data size of each divided document is obtained from the means 1, the layout of the divided document is obtained from the divided document layout obtaining means 8, and is processed according to the processing program, and the designated range layout, data position, size, etc. are obtained. This is done by passing to the means 2 and the layout display means 7. The contents of the output processing program will be described later based on a flowchart and the like.

図26のレイアウト表示手段7としてのCPU20は、指定範囲の表示要素の出力表現形式を出力先(グラフィックデバイス21およびモニタ22、またはプリンタ23等)に出力する。出力表現形式は用語の説明で説明したように、例えばモニター22に表示する場合、グラフィックデバイス21のVRAM上に画素データとして書き込まれ、モニタ22に表示される。一方、例えば印刷の場合には、プリンタ24に印刷データとして送られ、プリンタ24 が印刷データを解釈して、用紙に印刷する。PDFならば、対応する位置に文字を配置するデータをPDFデータとして書き込み、主記憶25や外部記憶26、通信デバイス29などを通じて記録される。   The CPU 20 as the layout display means 7 in FIG. 26 outputs the output expression format of the display elements in the specified range to the output destination (graphic device 21 and monitor 22, printer 23, etc.). As described in the explanation of terms, the output expression format is written as pixel data on the VRAM of the graphic device 21 and displayed on the monitor 22 when displayed on the monitor 22, for example. On the other hand, in the case of printing, for example, it is sent to the printer 24 as print data, and the printer 24 interprets the print data and prints it on paper. In the case of PDF, data for arranging characters at corresponding positions is written as PDF data and recorded through the main memory 25, the external memory 26, the communication device 29, and the like.

図26の指定範囲取得手段5としてのCPU20は、指定範囲のデータを主記憶25、外部記憶26、通信デバイス29などから読み取られるプログラムから得たり、ユーザの操作によりマウス27、キーボード28、マイク31などから入力されたデータとして得たり、グラフィックデバイス21、主記憶25、外部記憶26、プリンタ23、通信デバイス29からデータとして得たりする。   The CPU 20 as the designated range acquisition means 5 in FIG. 26 obtains data of the designated range from a program that is read from the main memory 25, the external storage 26, the communication device 29, or the like, or by a user operation, the mouse 27, the keyboard 28, and the microphone 31. Or as data input from the graphic device 21, the main storage 25, the external storage 26, the printer 23, or the communication device 29.

例えばモニタ22上に表示されているウィンドウのサイズを指定範囲の大きさとするならば、CPU20は、主記憶25上のウィンドウサイズデータを参照したり、ウィンドウサイズ取得APIを呼び出すなどして指定範囲の大きさのデータを得る。また印刷ならば、プリンタ23、あるいは用紙設定が記録された主記憶25や外部記憶26上などの用紙設定データをCPU20が参照したり、用紙サイズ取得APIを呼び出すなどして用紙サイズを得ればよい。   For example, if the size of the window displayed on the monitor 22 is set to the size of the specified range, the CPU 20 refers to the window size data on the main memory 25 or calls the window size acquisition API, etc. Get the size data. For printing, the CPU 20 refers to paper setting data on the printer 23 or the main memory 25 or the external storage 26 in which paper settings are recorded, or calls the paper size acquisition API to obtain the paper size. Good.

また、例えばモニタ22上に表示されているスクロールバー上のスクロールボックスの位置を指定範囲の位置とするならば、CPU20は、主記憶25上のスクロールボックス位置を参照したり、スクロールバー情報取得APIを呼び出すなどして指定範囲の位置のデータを得る。   For example, if the position of the scroll box on the scroll bar displayed on the monitor 22 is set as the position of the specified range, the CPU 20 refers to the position of the scroll box on the main memory 25 or the scroll bar information acquisition API. The data of the position of the specified range is obtained by calling.

図26のスクロールバー表示手段4としてのCPU20は、割合取得手段3から得た指定範囲の割合に応じて、スクロールバーを出力先(グラフィックデバイス21およびモニタ22、またはプリンタ23等)に出力する。出力の実現方法については、レイアウト表示手段7と同様だが、出力する内容はスクロールバーである。   The CPU 20 as the scroll bar display unit 4 in FIG. 26 outputs the scroll bar to the output destination (graphic device 21 and monitor 22, printer 23, etc.) according to the ratio of the specified range obtained from the ratio acquisition unit 3. The output implementation method is the same as that of the layout display means 7, but the output content is a scroll bar.

図26の分割文書レイアウト取得手段8としてのCPU20は、主記憶25、外部記憶26、通信デバイス29などから分割文書のレイアウトデータを得る。レイアウトデータは、WWWブラウザのレイアウト処理など他のプログラムなどによって既に作成されており、それらの他のプログラムや処理ルーチンを呼び出すことで得られるとする。それらのルーチンなどの内部では、既に作成したレイアウトがあればそれを使い、まだ作成していなかったり、表示設定が変わったりした場合は、作成し直される。レイアウトデータの形式については後述するが、図8のような構造が考えられる。   The CPU 20 as the divided document layout acquisition unit 8 in FIG. 26 obtains divided document layout data from the main memory 25, the external storage 26, the communication device 29, and the like. It is assumed that the layout data has already been created by other programs such as the layout processing of the WWW browser, and can be obtained by calling these other programs and processing routines. Inside these routines, if there is a layout that has already been created, it will be used, and if it has not been created or the display settings have changed, it will be recreated. Although the format of the layout data will be described later, a structure as shown in FIG. 8 can be considered.

図28は、装置の外観例を示している。本体123上に表示手段122があるが、これはタブレット機能も兼ねており、ペン124によるタブレット操作が可能である。表示手段122中に、指定範囲のレイアウトが表示され、またその横にスクロールバー120が表示されている。スクロールバー120中にスクロールボックス121がある。   FIG. 28 shows an example of the appearance of the apparatus. The display unit 122 is provided on the main body 123, which also serves as a tablet function and can be operated by the pen 124. In the display means 122, the layout of the specified range is displayed, and a scroll bar 120 is displayed beside it. There is a scroll box 121 in the scroll bar 120.

ペン124によって、スクロールバー120をタッチしたり、スクロールボックス121をドラッグしたりしてタブレット操作することで、指定範囲を指定できる。表示手段122は、図27では表示機能がグラフィックデバイス21、モニタ22など、ペンと合わせたタブレット機能がマウスやキーボードなどの入力操作手段に相当する。   The specified range can be specified by touching the scroll bar 120 or dragging the scroll box 121 with the pen 124 and operating the tablet. In FIG. 27, the display unit 122 corresponds to an input operation unit such as a mouse or a keyboard.

図3は、本発明の実施の一形態に係るスクロールバー表示制御方法を示すフローチャート図である。   FIG. 3 is a flowchart showing a scroll bar display control method according to an embodiment of the present invention.

このフローチャート図では、ユーザーがスクロールバーを使う典型的な操作として、
(1)ユーザーが表示させたい範囲をスクロールボックスを用いて指定し、
(2)指定された範囲を表示し、
(3)表示された範囲に相当するスクロールボックスをスクロールバー上に表示し直す、までの全体の一連の処理を説明している。(1)、(2)は「スクロールバーによる制御」、(3)は「スクロールバーの表示」に主に相当する。
In this flowchart, as a typical operation of the user using the scroll bar,
(1) Use the scroll box to specify the range that the user wants to display,
(2) Display the specified range,
(3) The entire series of processing until the scroll box corresponding to the displayed range is displayed again on the scroll bar is described. (1) and (2) mainly correspond to “control by scroll bar”, and (3) mainly corresponds to “display of scroll bar”.

まず、これらの処理の概要を一通り説明する。各処理の詳細は後で述べる。   First, an overview of these processes will be described. Details of each process will be described later.

まず、ステップS10(以下、「ステップS」を「S」と略記する)で、指定範囲取得手段5が、前述したように指定範囲を得て、連結点P10(以下、「連結点P」を「P」と略記する)を経て、S11へ進む。   First, in step S10 (hereinafter, “step S” is abbreviated as “S”), the designated range acquisition unit 5 obtains the designated range as described above, and connects the connection point P10 (hereinafter, “connection point P”). The process proceeds to S11.

「指定範囲」については、言葉の説明で上述した通りである。例えば、指定範囲は、スクロールバーや全体縮小表示における範囲指定操作などを使って、ユーザーから指示されたとする。スクロールバーによる範囲指定操作は、先に「指定範囲」の定義に関連して説明した通りである。   The “specified range” is as described above in the explanation of words. For example, it is assumed that the designated range is instructed by the user using a scroll bar or a range designation operation in the entire reduced display. The range specifying operation using the scroll bar is as described above in connection with the definition of “specified range”.

スクロールバーから得られる範囲は、文書全体に対する割合として得られるとする。   The range obtained from the scroll bar is assumed to be obtained as a percentage of the entire document.

指定範囲のサイズに関しては、スクロールボックスで指定されるサイズの割合でも良いのだが、本発明をスクロールバーと共に用いた場合、表示手段の表示画面のドットサイズを使う方がユーザーにとって自然だと思われるので、その値を使うとしておく。表示手段の表示画面のドットサイズは、この場合、表示されているコンテンツの部分のレイアウトサイズと常に同じである。   As for the size of the specified range, the ratio of the size specified in the scroll box may be used, but when the present invention is used with the scroll bar, it seems natural for the user to use the dot size of the display screen of the display means. So let's use that value. In this case, the dot size of the display screen of the display means is always the same as the layout size of the displayed content portion.

一般にスクロールボックスは、「表示されているコンテンツの部分のレイアウト」に対応し、その位置とサイズは、「表示されているコンテンツの部分のレイアウト」の全レイアウト上での位置とサイズで決まる。「表示されているコンテンツの部分のレイアウト」サイズも、全レイアウトのサイズも、コンテンツ全てをレイアウトすれば値は決まるので、スクロールボックスの位置をスクロールバー上でいくら移動させても、スクロールボックスのサイズ(およびスクロールバー上でのサイズの割合)は通常、固定である。   In general, the scroll box corresponds to “layout of the displayed content portion”, and its position and size are determined by the position and size on the entire layout of “layout of the displayed content portion”. The size of the “layout of the displayed content” and the size of all layouts are determined by laying out the entire content, so the scroll box size can be moved no matter how much the scroll box is moved on the scroll bar. (And the percentage of size on the scroll bar) is usually fixed.

詳しくは後で説明するが、本実施例では、全レイアウトサイズを求めずに、「表示されているコンテンツの部分のレイアウト」の全レイアウト上での位置とサイズを、各種データサイズから推測する。推測なので、スクロールボックスのサイズ(およびそのサイズの割合)は、表示する範囲によって多少変わってくることがある。従って、以前のスクロールボックスのサイズ(およびそのサイズの割合)に相当する部分のコンテンツを表示させようとすると、そのレイアウトサイズは、表示手段の表示画面のドットサイズと一致しない場合が出てくる。その場合、表示に欠けができたり、表示しきれない部分が出てくるかもしれない。これはユーザーにとっては不自然な表示結果となってしまう。   Although details will be described later, in this embodiment, the position and size of the “layout of the displayed content portion” on the entire layout are estimated from various data sizes without obtaining the total layout size. As a guess, the size of the scroll box (and its percentage) may vary slightly depending on the display range. Therefore, if an attempt is made to display a part of the content corresponding to the previous scroll box size (and the ratio of the size), the layout size may not match the dot size of the display screen of the display means. In that case, the display may be missing or a part that cannot be displayed may appear. This results in an unnatural display result for the user.

従って、ここでは指定範囲を、スクロールボックスのサイズで指定するのではなく、表示手段の表示画面のドットサイズで指定するとした方が、ユーザーにとって違和感が少なく、望ましい。   Therefore, it is preferable that the designation range is designated not by the size of the scroll box but by the dot size of the display screen of the display unit, because it is less uncomfortable for the user.

なお、指定範囲の外形は矩形としておくが、矩形でなくても原理的にここで説明するのと同様の方法を適用できる。   Although the outer shape of the designated range is a rectangle, a method similar to that described here can be applied in principle even if it is not a rectangle.

S10は、先に説明した「(1)ユーザーがスクロールボックスで、表示する範囲を指定する」に相当する。   S10 corresponds to “(1) The user designates a display range using a scroll box” described above.

S11では、指定範囲レイアウト取得手段6が、S10で得た指定範囲のレイアウトを本発明の特徴的な方法に従って得て、P20を経て、S12へ進む。ここでの処理の詳細に関しては、後で図5を参照して説明する。   In S11, the designated range layout obtaining unit 6 obtains the layout of the designated range obtained in S10 according to the characteristic method of the present invention, and proceeds to S12 via P20. Details of the processing here will be described later with reference to FIG.

S12では、レイアウト表示手段7が、S11で得た指定範囲のレイアウトを表示して、P30を経て、S13へ進む。   In S12, the layout display means 7 displays the layout of the designated range obtained in S11, and proceeds to S13 via P30.

指定範囲のレイアウトの取得に関しては、後で図11などの説明で出てくるが、レイアウトの上限と下限の表示要素が得られるので、その間の表示要素が指定範囲のレイアウトの表示要素となる。   Regarding the acquisition of the layout of the designated range, which will be described later with reference to FIG. 11 and the like, the display elements at the upper and lower limits of the layout are obtained, and the display elements between them are the display elements of the layout of the designated range.

表示の仕方は、本発明の主旨ではないので詳しくは説明しないが、レイアウトされた文書中での各表示要素の位置とサイズ、外形、表示倍率などに従い、各表示要素の表示表現形態を表示する。表示要素の位置はレイアウト座標系での値なので、表示する際は、通常は表示手段原点からの表示座標系に変換して表示する。   Although the display method is not the gist of the present invention and will not be described in detail, the display expression form of each display element is displayed in accordance with the position and size of each display element in the layout document, the external shape, the display magnification, and the like. . Since the position of the display element is a value in the layout coordinate system, when displaying, the display element is usually converted into the display coordinate system from the display means origin and displayed.

図4は、図1の文書全体のレイアウト110から表示範囲(指定範囲)111の表示要素を抜き出してきて、表示手段122に表示した例である。レイアウト110中の表示要素はレイアウト110の左上隅を原点とし、右方向を+X方向、下方向を+Y方向とする座標系で表されるとする。表示範囲111の開始位置の座標値を各表示要素の位置の座標値から引算することで、表示手段122の左上を原点とした表示座標系に変換され、表示手段122の範囲に収まったものだけが表示される。   FIG. 4 shows an example in which the display elements of the display range (designated range) 111 are extracted from the layout 110 of the entire document shown in FIG. The display elements in the layout 110 are represented by a coordinate system in which the upper left corner of the layout 110 is the origin, the right direction is the + X direction, and the lower direction is the + Y direction. By subtracting the coordinate value of the start position of the display range 111 from the coordinate value of the position of each display element, it is converted into a display coordinate system with the upper left of the display means 122 as the origin, and is within the range of the display means 122 Only is displayed.

S11、S12は、先に説明した「(2)指定された範囲を表示する」処理に相当する。   S11 and S12 correspond to the “(2) display the specified range” described above.

S13では、割合取得手段3が、指定範囲に基づく表示範囲の全文書内の位置と割合を本発明の特徴的な方法に従って計算して、P40を経て、S14へ進む。ここでの処理の詳細に関しては、後で図14、図19を参照して説明する。   In S13, the ratio acquisition unit 3 calculates the position and ratio of the display range in the entire document based on the specified range according to the characteristic method of the present invention, and proceeds to S14 via P40. Details of the processing here will be described later with reference to FIGS.

なお、S10の説明で述べた通り、指定範囲の位置は全文書内の割合で指定されるが、サイズは表示サイズ(例えばドットサイズ)で指定される。もし、サイズも全文書内割合で指定するのならば、S13では特に計算する必要はなく、割合で指定された位置とサイズをそのまま使えば良い。   As described in the description of S10, the position of the designated range is designated by the ratio in the entire document, but the size is designated by the display size (for example, dot size). If the size is specified as a ratio in all documents, it is not necessary to calculate in S13, and the position and size specified in the ratio may be used as they are.

S14では、スクロールバー表示手段4が、S13で得た全文書内の位置とサイズを得て、スクロールバー120を表示して、処理を終了する。   In S14, the scroll bar display unit 4 obtains the positions and sizes in all the documents obtained in S13, displays the scroll bar 120, and ends the process.

図4では、スクロールバー120上に表示範囲111の位置と大きさを示すスクロールボックス121が黒く示されている。   In FIG. 4, a scroll box 121 indicating the position and size of the display range 111 is shown in black on the scroll bar 120.

S13、S14は、先に説明した「(3)表示された範囲に相当するスクロールボックスをスクロールバー上に表示する」処理に相当する。   S13 and S14 correspond to the above-described process “(3) display on the scroll bar a scroll box corresponding to the displayed range”.

以上の処理によって、先に説明した番号に則して言えば、(1)ユーザーがスクロールバーなどを操作して指定した指定範囲について、(2)指定範囲に相当する部分のレイアウトを表示し、さらに(3)指定範囲に応じたスクロールバーが表示されることになる。   According to the above-described processing, in accordance with the numbers described above, (1) for the designated range designated by the user operating the scroll bar or the like, (2) the layout corresponding to the designated range is displayed, Further, (3) a scroll bar corresponding to the designated range is displayed.

一般に、コンテンツを見ようとした場合、(1)から(3)の操作を繰り返して様々な場所を見ることになる。(1)のスクロールバーの代わりに、キーボードやマウスなどを使って次に表示する範囲を指定する場合もある。例えば、WWWブラウザではスペースキーを押すと、次の1ページ分が表示指定されたことになる。なお、この繰り返し処理はコンテンツを見るだけに限らず、編集などの操作、処理が間に挟まれることもある。   Generally, when trying to view content, operations (1) to (3) are repeated to view various places. In some cases, instead of the scroll bar of (1), a range to be displayed next is specified using a keyboard, a mouse, or the like. For example, when the space key is pressed in the WWW browser, the display for the next page is designated. Note that this repetitive processing is not limited to viewing content, and operations such as editing and processing may be sandwiched between them.

図5は、本発明の表示制御方法の特徴である図3のS11の処理の詳細を示すフローチャート図である。   FIG. 5 is a flowchart showing details of the processing of S11 of FIG. 3 which is a feature of the display control method of the present invention.

処理を具体的に説明する為、図3のS10で得られた指定範囲の位置が0.5、サイズが指定位置を中心に上下100ドット(合わせて200ドット)としておく。   In order to describe the processing specifically, the position of the designated range obtained in S10 of FIG. 3 is set to 0.5, and the size is set to 100 dots at the top and bottom (200 dots in total) centering on the designated position.

まず、P10を経てS20へ進み、指定範囲レイアウト取得手段6が、分割データサイズ取得手段1から各分割文書のデータサイズを得て、S21へ進む。   First, the process proceeds to S20 via P10, and the designated range layout obtaining unit 6 obtains the data size of each divided document from the divided data size obtaining unit 1, and then proceeds to S21.

各分割文書は予め作成しておく。すなわち、コンテンツをどう分割するかを予め決め、どう分割したかの情報をデータとして記録しておく。例えば後で説明する図6の「データサイズ」の項の値の配列のように記録しておけばよい。これはコンテンツデータと別にファイルなどとして記録メディア上などに記録してもよいし、コンテンツデータの一部としてヘッダ情報などの形で記録しておいてもよい。   Each divided document is created in advance. That is, how the content is divided is determined in advance, and information on how the content is divided is recorded as data. For example, it may be recorded as an array of values of the term “data size” in FIG. This may be recorded on a recording medium as a file separately from the content data, or may be recorded in the form of header information as part of the content data.

各分割文書のデータサイズは、先に説明した「どう分割したかの情報」などから得られる。各分割文書のレイアウトサイズは、可変レイアウトの場合、文字の大きさの設定などによって変わるが、各分割文書のデータサイズは、可変レイアウトであっても変わることはない。本発明でスクロールバーによる制御や表示を高速に行うことが可能となる理由の一つは、データサイズを予め求めておくことができるためである。   The data size of each divided document is obtained from the “information on how to divide” described above. The layout size of each divided document changes depending on the character size setting in the case of a variable layout, but the data size of each divided document does not change even in the variable layout. One of the reasons why the control and display by the scroll bar can be performed at high speed in the present invention is because the data size can be obtained in advance.

図6は、取得した各分割文書のデータサイズの例である。各分割文書のデータサイズ70〜75は値の配列として得られるとする。その下にデータサイズ70〜75の和「604」も示してある。データサイズ比80〜85は、データサイズ70〜75の和を1.00とした時の比率である。データサイズ70〜75の総和は604なので、例えばデータサイズ比80は、126/604=0.21(以降、説明の為、小数点第3位を四捨五入)で得られる。累積データサイズ比90〜96は、データサイズ比80〜85の累積値である(なお、累積誤差を少なくする為、図6の値は、四捨五入された80〜85の和ではなく、データサイズの和から比率を計算している。そのため、データサイズ比の和と一致しない部分が一部ある)。最初の0.00と最後の1.00も含めてある。データサイズ70〜75、データサイズ比80〜85、累積データサイズ比90〜96は0から始まるインデックス番号によってアクセス可能とする。   FIG. 6 is an example of the data size of each obtained divided document. It is assumed that the data size 70 to 75 of each divided document is obtained as an array of values. Below that, the sum “604” of data sizes 70 to 75 is also shown. The data size ratio 80 to 85 is a ratio when the sum of the data sizes 70 to 75 is 1.00. Since the sum of the data sizes 70 to 75 is 604, for example, the data size ratio 80 can be obtained by 126/604 = 0.21 (hereinafter, the third decimal place is rounded off for explanation). The cumulative data size ratio 90 to 96 is a cumulative value of the data size ratio 80 to 85 (in order to reduce the cumulative error, the value in FIG. 6 is not the sum of rounded 80 to 85 but the data size The ratio is calculated from the sum, so there are some parts that do not match the sum of the data size ratios). The first 0.00 and the last 1.00 are also included. Data sizes 70 to 75, data size ratios 80 to 85, and cumulative data size ratios 90 to 96 can be accessed by index numbers starting from 0.

なお、各分割文書の分割の仕方について簡単に説明しておく。分割の仕方に決まりはないが、表示上、区切りの良い意味単位で分割する方が一般によい。区切りの良い意味単位とは、文字単位などは当然として、ここでは「改行」や「段落」などのもう少し大きな意味単位である。   A method of dividing each divided document will be briefly described. There is no rule on how to divide, but it is generally better to divide in semantic units with good separation for display. A well-separated semantic unit is a larger semantic unit such as “line feed” or “paragraph” as a matter of course, such as a character unit.

例えば、図2の例では、改行となる「<BR/>」や「<P/>」の後で分割している所が多い。これは後で説明するようにレイアウトを分割文書単位で行う場合などに、各分割文書のレイアウトが改行などの区切りの良い単位でまとまっていた方が、それぞれの分割文書で独立してレイアウトすることができる利点が出てくるからである。   For example, in the example of FIG. 2, there are many places where the line is divided after “<BR/>” or “<P />” as a line feed. This is because, as will be described later, when the layout is performed in units of divided documents, if the layout of each divided document is grouped in units with good delimiters such as line breaks, the layout of each divided document is independent. This is because there is an advantage that can be achieved.

例えば、図1のレイアウト結果を見ると分かるように、図2の分割文書データ50のレイアウト結果は「<BR/>」が最後にあるので「視野が狭い」の行で終わり、分割文書データ51のレイアウト結果は次の行の行頭から「 人間の視野は」で始まる。行が分かれているので、表示する時は単にそれぞれの行を並べて表示すればよい。従って、分割文書データ51、分割文書データ50の順でレイアウトを作成しても問題ない。   For example, as can be seen from the layout result of FIG. 1, the layout result of the divided document data 50 of FIG. 2 ends with the line “Narrow view” because “<BR/>” is the last, and the divided document data 51 The layout result of starts with "Human vision" from the beginning of the next line. Since the lines are separated, it is only necessary to display each line side by side. Therefore, there is no problem even if the layout is created in the order of the divided document data 51 and the divided document data 50.

もし区切りの良く無い部分で分割してしまうと、その部分が連続されるように同じ行にレイアウトしないといけない。例えば、図2の分割文書データ54のレイアウト結果は「機能は」で終わるが、「<BR/>」や「<P/>」で終わっていないので、ここでは改行されない。従って、続く分割文書データ55のレイアウト結果は、「機能は」の行に続けて、「人間の視野と」となる。この結果、分割文書データ54と分割文書データ55とで、レイアウト結果の行が同一行にだぶることになる。   If you divide in a poorly divided part, you must lay out on the same line so that the part is continuous. For example, the layout result of the divided document data 54 in FIG. 2 ends with “function is”, but does not end with “<BR/>” or “<P />”, so no line break is made here. Accordingly, the layout result of the subsequent divided document data 55 becomes “with human vision” following the “function is” line. As a result, the divided document data 54 and the divided document data 55 have the same layout result line.

このため、分割文書データ54、分割文書データ55の順にレイアウトするのならばよいが、分割文書データ55、分割文書データ54の順に独立してレイアウトしてしまうと、「機能は」の部分が行末にレイアウトされるとは限らず、行の途中にレイアウトされてしまうと、その後に妙な空白部分が続いてしまう。そして次の行の行頭は「人間の視野と」となってしまう。これでは文章としてのつながりがなくなってしまう。   For this reason, it is only necessary to lay out the divided document data 54 and the divided document data 55 in this order. However, if the divided document data 55 and the divided document data 54 are laid out independently in this order, the “function” part is the end of the line. Not necessarily laid out, but if it is laid out in the middle of a line, a strange white space will follow. And the beginning of the next line becomes “with human vision”. This breaks the connection as a sentence.

それを回避する為には、例えば、分割文書データ55のレイアウトを一旦破棄して、分割文書データ54、分割文書データ55の順に作成し直すなどの処置が必要となる。これは非常に無駄な処理となってしまう。   In order to avoid this, for example, it is necessary to temporarily discard the layout of the divided document data 55 and recreate the divided document data 54 and the divided document data 55 in this order. This is a very wasteful process.

従って、文書の分割は、分割文書データ50〜53のように、改行などの区切りの良い部分で行うようにした方がよい。   Therefore, it is better to divide the document at a portion having a good delimiter such as a line feed like the divided document data 50 to 53.

また、各分割文書のデータサイズやレイアウトサイズの大きさは、大きすぎても小さすぎてもよくない。レイアウトを作成する単位を分割文書とすると、あまり大きな分割文書はレイアウトにかかる時間が大きくなってしまう。逆に小さすぎると、分割文書のデータサイズを記録する部分が多くなり、(レイアウトにかかる時間に比べれば通常たいしたことはないが)割合の計算も多少増えてしまう。   Further, the data size and layout size of each divided document may not be too large or too small. If a unit for creating a layout is a divided document, a very large divided document takes a long time for layout. On the other hand, if it is too small, there will be many portions for recording the data size of the divided document, and the calculation of the ratio will be somewhat increased (although it is usually not much compared with the time required for layout).

また、あまり細かくしようとしても、改行などのきりの良い所で分割できるとは限らない。分割量の1つの基準としては、標準的な表示設定で1画面に表示されるコンテンツ量が考えられる。例えば、この0.5〜2倍程度に収まる程度にするとよい。   Also, even if you try to make it too fine, it is not always possible to divide it at a place where a line break is good. One criterion for the amount of division is the amount of content displayed on one screen with standard display settings. For example, it may be set to be within a range of about 0.5 to 2 times this.

また、各分割文書の分割は、各分割文書のデータサイズやレイアウトサイズに大きな差が出ないようにした方が一般によい。これはレイアウトにかかる時間に大きな差が出てしまうのを防ぐ意味もある。   In addition, it is generally better to divide each divided document so that there is no significant difference in the data size or layout size of each divided document. This also has the meaning of preventing a large difference in layout time.

なお、コンテンツデータが圧縮や暗号化されている場合、各分割文書単位で展開や復号できるようにしておくと、分割文書単位でのレイアウトにかかる時間を小さくすることができるようになる利点が出てくる。   Note that when content data is compressed or encrypted, if it can be expanded and decrypted in units of divided documents, there is an advantage that the time required for layout in units of divided documents can be reduced. Come.

S21では、指定範囲レイアウト取得手段6が、指定位置の分割文書を同定して、S22へ進む。   In S21, the designated range layout acquisition unit 6 identifies the divided document at the designated position, and proceeds to S22.

指定位置を図6の累積データサイズ比90〜96と比較して、指定位置がどの区間に入るかを調べれば、指定位置がどの分割文書内に位置するかが得られる。例では指定位置が0.5なので、累積データサイズ比92の値0.34と93の値0.53の間に位置することが分かる。この区間はデータサイズ比82、データサイズ72に相当するので、指定範囲の分割文書には、少なくとも3番目の分割文書データ52が含まれることが分かる。   By comparing the designated position with the accumulated data size ratios 90 to 96 in FIG. 6 and checking which section the designated position falls in, it is possible to obtain which divided document the designated position is located in. In the example, since the designated position is 0.5, it can be seen that it is located between the value 0.34 of the cumulative data size ratio 92 and the value 0.53 of 93. Since this section corresponds to the data size ratio 82 and the data size 72, it can be seen that the divided document in the designated range includes at least the third divided document data 52.

図7は、この状態を示したもので、分割文書データ50〜55は、データサイズ70〜75に概ね比例した高さで表現されている。指定中心位置は0.5であり、これが3番目の分割文書データ52内に含まれることが示されている。   FIG. 7 shows this state, and the divided document data 50 to 55 are expressed by a height that is approximately proportional to the data size 70 to 75. The designated center position is 0.5, which indicates that it is included in the third divided document data 52.

S22では、分割文書レイアウト取得手段8が、指定位置が含まれる分割文書のレイアウトを得て、P11を経てS23へ進む。指定位置が含まれる分割文書については、指定範囲レイアウト取得手段6から指定される。   In S22, the divided document layout acquisition unit 8 obtains the layout of the divided document including the designated position, and proceeds to S23 via P11. The divided document including the designated position is designated by the designated range layout acquisition unit 6.

この例では、分割文書レイアウト取得手段8が、分割文書データ52のレイアウトを得ることになる。もし、分割文書データ52のレイアウトデータが主記憶25や外部記憶26、他の機器上などにキャッシュデータなどとして蓄積されているならそれをそのまま使えばよい。もし蓄積されていないのならば、分割文書データ52を読み込んで、レイアウトを作成すればよい。   In this example, the divided document layout acquisition unit 8 obtains the layout of the divided document data 52. If the layout data of the divided document data 52 is stored as cache data or the like in the main memory 25, the external memory 26, or another device, it can be used as it is. If it is not stored, the divided document data 52 may be read to create a layout.

図8は、レイアウトされた表示要素データのデータ構造例である。ここでは、文書データがHTML形式で、
「<HTML>あいう<BR/><IMG SRC=“img.png”/><BR/>え</HTML>」
と記述されている時に、WWWブラウザなどによってレイアウトされた結果得られたレイアウトデータ例を示している。なお、レイアウト方法自体は、本発明の主旨ではないので、詳細は省略する。WWWブラウザでなくても、レイアウト処理によって図8のようなデータが得られるのならば、ワードプロセッサでも何でも良い。
FIG. 8 shows an example of the data structure of the laid out display element data. Here, the document data is in HTML format,
“<HTML> that <BR/><IMG SRC =“ img. png "/><BR/> e </ HTML>"
Is shown as an example of layout data obtained as a result of layout by a WWW browser or the like. Since the layout method itself is not the gist of the present invention, the details are omitted. Even if it is not a WWW browser, a word processor may be used as long as the data as shown in FIG. 8 can be obtained by layout processing.

表示要素40〜44の各行は図8の様に、データ開始位置、データサイズ、レイアウトX位置、レイアウトY位置、レイアウト幅、レイアウト高さ、表示データの情報を持っているとする。   As shown in FIG. 8, each row of the display elements 40 to 44 has data start position, data size, layout X position, layout Y position, layout width, layout height, and display data information.

データ開始位置は、この表示要素が文書データ中に記述される最初のデータ位置を意味する。最初の表示要素40は、HTMLデータの最初の「あ」の文字に相当し、7バイト目なので0から始まるとしてデータ開始位置を「6」としている。また、全角文字が2バイトで表現されているとすると、データサイズは「2」、レイアウトX,Y位置は原点とすると「0」、大きさは文字サイズが14ドットとして「14」、表示データとして文字「あ」の文字コードとなる。実際はこの表示データが「文字」であることを何らかの識別子で示す必要があるが、表示要素の表示の仕方自体は本発明の主旨ではないので、ここでは省略して「あ」という文字が表示できるだけの情報を表しているとする。   The data start position means the first data position where this display element is described in the document data. The first display element 40 corresponds to the first “A” character of the HTML data, and since it is the seventh byte, the data start position is set to “6” since it starts from 0. If the full-width character is expressed by 2 bytes, the data size is “2”, the layout X and Y positions are “0” when the origin is the origin, the size is “14”, the character size is 14 dots, and the display data Is the character code of the character “A”. Actually, it is necessary to indicate that this display data is “character” by some kind of identifier. However, since the display element display method itself is not the gist of the present invention, it can be omitted and only the character “A” can be displayed. It is assumed that the information is represented.

同様に、表示要素41〜44も図8のようになる。表示要素43は「<IMG…/>」で表される画像要素の例で、画像の大きさ(レイアウトサイズ)は50ドット×100ドットで、表示データは画像ファイル名「img.png」となっている。   Similarly, the display elements 41 to 44 are as shown in FIG. The display element 43 is an example of an image element represented by “<IMG...>”, The image size (layout size) is 50 dots × 100 dots, and the display data is the image file name “img.png”. ing.

S23では、指定範囲レイアウト取得手段6が、指定範囲で指定されたサイズだけのレイアウトが確保できたかどうかを判断して、必要なら周囲の分割文書データのレイアウトを分割文書レイアウト取得手段8から取得して、P15を経て、S24へ進む。ここでの処理の詳細に関しては、後で図9を参照して説明する。   In S23, the designated range layout acquisition unit 6 determines whether a layout having a size specified in the specified range has been secured, and acquires the layout of surrounding divided document data from the divided document layout acquisition unit 8 if necessary. After P15, the process proceeds to S24. Details of the processing here will be described later with reference to FIG.

S24では、指定範囲レイアウト取得手段6が、指定範囲の表示要素を取得して、P20へ抜ける。ここでの処理の詳細に関しては、後で図11を参照して説明する。   In S24, the designated range layout acquisition means 6 acquires the display element of the designated range, and goes to P20. Details of the processing here will be described later with reference to FIG.

以上の処理によって、図3のS11の処理が行われ、指定範囲のレイアウトが得られる。   Through the above processing, the processing of S11 in FIG. 3 is performed, and the layout of the specified range is obtained.

図9は、図5のS23の処理の詳細を示すフローチャート図である。   FIG. 9 is a flowchart showing details of the process in S23 of FIG.

なお、この例では上下方向のスクロールバーを想定していて、下のレイアウトほど先の文書内容になっているとしておく。その為、以降の説明では、先の内容のレイアウトに関して、「下」という表現をすることにし、指定範囲やレイアウトに関しても、主に上下方向(図8のレイアウトY位置)に関して説明する。   In this example, it is assumed that the scroll bar is in the vertical direction, and the lower the layout, the earlier the document content. For this reason, in the following description, the expression “down” is used for the layout of the previous contents, and the specified range and layout are mainly described in the vertical direction (layout Y position in FIG. 8).

P11からS30へ進み、指定範囲レイアウト取得手段6が、現在、分割文書レイアウト取得手段8から取得済みのレイアウトに関して、指定範囲と比べて上の部分のレイアウトが足りないかどうかを判断し、足りない場合はP12を経てS31へ進み、足りている場合はP13を経てS32へ進む。   Proceeding from P11 to S30, the designated range layout acquisition unit 6 determines whether or not the layout in the upper part of the layout already acquired from the divided document layout acquisition unit 8 is insufficient compared to the specified range. If so, the process proceeds to S31 via P12, and if sufficient, the process proceeds to S32 via P13.

図10は、この判断をする為に使うデータの例であり、主記憶25、外部記憶26、または他の機器上に蓄積されている。開始分割文書インデックス100は、既にレイアウトを取得している分割文書データの最初のインデックス番号である。同様に終了分割文書インデックス101は、既にレイアウトを取得している分割文書データの最後のインデックス番号である。ここでは3番目の分割文書データしかレイアウトしておらず、また1番目の分割文書データのインデックス番号を前述のように0とするので、どちらも「2」となっている。   FIG. 10 shows an example of data used to make this determination, which is stored in the main memory 25, the external memory 26, or another device. The starting divided document index 100 is the first index number of divided document data for which a layout has already been acquired. Similarly, the end divided document index 101 is the last index number of the divided document data whose layout has already been acquired. Here, only the third divided document data is laid out, and the index number of the first divided document data is set to 0 as described above, so both are “2”.

指定位置データ位置102は、指定位置が文書のデータサイズでどの位置を示しているかを表す。これは全データサイズと指定位置(割合)を掛ければ算出される。算出した値をそのまま使っても良いし、その値を含むあるいは最も近いデータ範囲を持つ表示要素のデータ開始位置(あるいはそれプラス(表示要素データサイズ/2))を探して、その値を使っても良い。   The designated position data position 102 indicates which position the designated position indicates in the data size of the document. This is calculated by multiplying the total data size by the specified position (ratio). You can use the calculated value as is, or search for the data start position (or plus (display element data size / 2)) of the display element that contains that value or has the closest data range, and use that value. Also good.

図6の例では、中心位置(指定位置)0.5は、
(全分割文書データサイズの和)×(指定位置割合)
=604×0.5=302
より、302バイト目となる。図2の分割文書データ52では、「レンジ」の「ジ」に当たる。図1の表示範囲111で、この指定位置を中心の○印で表している。
In the example of FIG. 6, the center position (designated position) 0.5 is
(Sum of all divided document data sizes) x (specified position ratio)
= 604 * 0.5 = 302
Therefore, it becomes the 302nd byte. In the divided document data 52 of FIG. 2, it corresponds to “di” of “range”. In the display range 111 of FIG. 1, this designated position is represented by a circle mark at the center.

上側レイアウトサイズ103、下側レイアウトサイズ104は、指定位置データ位置102(を含む行の中心)の上下にどれだけの大きさ、レイアウトされているかを意味する。ここでは図10の開始分割文書インデックス、終了分割文書インデックスが2なので、図2の分割文書52だけがレイアウトされている状態である。全文書レイアウトを示す図1より、分割文書52のレイアウトは「 人間は」(先頭は全角スペース)から「低い」までの5行分である。1行の高さを16ドット(文字14ドット+行間2ドット)として、「ジ」の行中心で分けて考えると、上に
(4.5行分のレイアウト)=16×4.5=72ドット
下に
(0.5行分のレイアウト)=16×0.5=8ドット
となっている。なお、「4.5」、「0.5」は、「指定位置データ位置102を含む行の中心」で処理している為、その行を上下に0.5行分ずつ分けた為である。
The upper layout size 103 and the lower layout size 104 mean how much size is laid out above and below the specified position data position 102 (including the center of the row). Here, since the start divided document index and the end divided document index in FIG. 10 are 2, only the divided document 52 in FIG. 2 is laid out. From FIG. 1 showing the entire document layout, the layout of the divided document 52 is five lines from “Human is” (starting with a full-width space) to “Low”. Assuming that the height of one line is 16 dots (characters 14 dots + line spacing 2 dots) and is divided at the center of the line “di”, the top (layout of 4.5 lines) = 16 × 4.5 = 72 Below the dots (0.5 line layout) = 16 × 0.5 = 8 dots. Note that “4.5” and “0.5” are because processing is performed at “the center of the row including the designated position data position 102”, and the row is divided into 0.5 rows at the top and bottom. .

なお図10の夫々の値は、各分割文書のレイアウトを得る度に更新しておくとする。   Each value in FIG. 10 is updated every time a layout of each divided document is obtained.

この例では、指定範囲の大きさが指定位置を中心に上下100ドットなので、上側レイアウトサイズ103の72ドットと比べると足りないので、指定範囲レイアウト取得手段6は上側レイアウトが足りないと判断する。   In this example, since the size of the designated range is 100 dots up and down centered on the designated position, it is not sufficient as compared with 72 dots of the upper layout size 103, so the designated range layout acquisition means 6 determines that the upper layout is insufficient.

S31では、指定範囲レイアウト取得手段6が、上の分割文書データ51のレイアウトを分割文書レイアウト取得手段8から取得して、P13を経て、S32へ進む。ここでの処理の詳細に関しては、後で図12を参照して説明する。   In S31, the designated range layout obtaining unit 6 obtains the layout of the divided document data 51 from the divided document layout obtaining unit 8, and proceeds to S32 through P13. Details of the processing here will be described later with reference to FIG.

S32では、指定範囲レイアウト取得手段6が、現在取得したレイアウトに関して、指定範囲と比べて下の部分のレイアウトが足りないかどうかを判断し、足りない場合はS33へ進み、足りている場合はP15へ抜ける。ここでの処理は、S30の上側レイアウトに関する処理と同様なので、説明は省略する。   In S32, the designated range layout acquisition means 6 determines whether or not the layout below the specified range is insufficient with respect to the currently acquired layout. If not, the process proceeds to S33. Break through. Since the process here is the same as the process related to the upper layout in S30, a description thereof will be omitted.

S33では、指定範囲レイアウト取得手段6が、下の分割文書データのレイアウトを分割文書レイアウト取得手段8から取得して、P15へ抜ける。ここでの処理も、S31の上側レイアウトに関する処理と同様なので、説明は省略する。   In S33, the designated range layout acquisition unit 6 acquires the layout of the lower divided document data from the divided document layout acquisition unit 8, and the process goes to P15. Since the process here is also the same as the process related to the upper layout in S31, the description thereof is omitted.

以上の処理によって、図5のS23の処理が行われ、指定範囲のレイアウトが得られる。   Through the above processing, the processing of S23 in FIG. 5 is performed, and a layout of the designated range is obtained.

図12は、図9のS31の処理の詳細を示すフローチャート図である。   FIG. 12 is a flowchart showing details of the process of S31 of FIG.

P12からS40へ進み、指定範囲レイアウト取得手段6が、上側に不足するレイアウト量を求めて、S41へ進む。   Proceeding from P12 to S40, the designated range layout obtaining unit 6 obtains a layout amount that is insufficient on the upper side, and proceeds to S41.

これは、指定範囲の上側サイズから図10の上側レイアウトサイズ103を引算すればよい。図10の場合、100−72=28ドットという値が得られる。   This can be done by subtracting the upper layout size 103 of FIG. 10 from the upper size of the specified range. In the case of FIG. 10, a value of 100−72 = 28 dots is obtained.

S41では、指定範囲レイアウト取得手段6が、S40で得られた上側の不足レイアウト量が0かどうかを判断し、0の場合はP13へ抜け、0で無い場合はS42へ進む。   In S41, the designated range layout acquisition means 6 determines whether or not the upper insufficient layout amount obtained in S40 is 0. If it is 0, the process goes to P13, and if it is not 0, the process goes to S42.

S42では、指定範囲レイアウト取得手段6が、上の分割文書があるかどうかを判断し、ある場合はS43へ進み、無い場合はP13へ抜ける。   In S42, the designated range layout obtaining unit 6 determines whether or not there is an upper divided document. If there is, the process proceeds to S43, and if not, the process exits to P13.

上の分割文書があるかどうかは、図10の開始分割文書インデックス100が0でないかどうかを見れば良い。なお、先にS33の説明で、上側レイアウトに関する処理と同様と説明したが、S42での処理のみ、下の分割文書が存在するかどうかの判断が、終了分割文書インデックス101が(分割文書数−1)でないかどうかによる所が異なる。   Whether there is an upper divided document can be determined by checking whether the starting divided document index 100 in FIG. In the description of S33, the process is the same as the process related to the upper layout. However, only in the process of S42, whether or not the lower divided document exists is determined by the end divided document index 101 (number of divided documents− 1) Depending on whether or not.

S43では、指定範囲レイアウト取得手段6が、上の分割文書のレイアウトを分割文書レイアウト取得手段8から取得して、図10のデータを更新し、S40へ進む。   In S43, the designated range layout acquisition unit 6 acquires the layout of the upper divided document from the divided document layout acquisition unit 8, updates the data in FIG. 10, and proceeds to S40.

以上の処理によって、図9のS31の処理が行われる。   The process of S31 of FIG. 9 is performed by the above process.

この例では、分割文書データ51をさらに読み込むことで、図1より、
(3行分のレイアウト)=16×3=48ドット
が上に追加されるので、
(上側レイアウトサイズ103)=72+48=120ドット > 指定100ドット
となるので、上のレイアウトの読み込みはこれで十分である。この場合、開始分割文書インデックス100は1に更新されると共に、上側レイアウトサイズ103は、72から上限の100に更新される。
In this example, by further reading the divided document data 51, from FIG.
(3 lines of layout) = 16 × 3 = 48 dots are added above,
Since (upper layout size 103) = 72 + 48 = 120 dots> specified 100 dots, this is sufficient for reading the upper layout. In this case, the start divided document index 100 is updated to 1, and the upper layout size 103 is updated from 72 to the upper limit of 100.

下は、分割文書データ53を読み込むことで
(8行分のレイアウト)=16×8=128ドット
が下に追加されるので、
(下側レイアウトサイズ104)=8+128=136ドット > 指定100ドット
となるので、下のレイアウトの読み込みもこれで十分である。この場合、終了分割文書インデックス101は3に更新されると共に、下側レイアウトサイズ104は、8から下限の100に更新される。
The bottom is that by reading the divided document data 53 (8 lines of layout) = 16 × 8 = 128 dots are added below.
(Lower layout size 104) = 8 + 128 = 136 dots> Specified 100 dots, so it is sufficient to read the lower layout. In this case, the end divided document index 101 is updated to 3, and the lower layout size 104 is updated from 8 to 100, which is the lower limit.

図11は、図5のS24の処理の詳細を示すフローチャート図である。   FIG. 11 is a flowchart showing details of the process in S24 of FIG.

P15からS70へ進み、指定範囲レイアウト取得手段6が、上限の表示要素を取得して、P16を経て、S71へ進む。ここでの処理の詳細に関しては、後で図13を参照して説明する。   Proceeding from P15 to S70, the designated range layout obtaining means 6 obtains an upper limit display element, and proceeds to S71 via P16. Details of the processing here will be described later with reference to FIG.

S71では、同手段6が、下限の表示要素を取得して、P20へ抜ける。ここでの処理は、S70の処理と同様なので、説明は省略する。   In S71, the means 6 obtains the lower limit display element and goes to P20. Since the process here is the same as the process of S70, description is abbreviate | omitted.

以上の処理によって、図5のS24の処理が行われる。   The process of S24 of FIG. 5 is performed by the above process.

図13は、図11のS70の処理の詳細を示すフローチャート図である。   FIG. 13 is a flowchart showing details of the process in S70 of FIG.

P15からS80へ進み、指定範囲レイアウト取得手段6が、指定位置の表示要素をカレント要素に設定して、S81へ進む。指定位置の表示要素は、図10の指定位置データ位置102を含む、あるいは最も近いデータ範囲を持つ表示要素を探せば良い。探すには指定位置を含む分割文書のレイアウトデータを順に見ていけば良い。   Proceeding from P15 to S80, the designated range layout acquisition means 6 sets the display element at the designated position as the current element, and proceeds to S81. The display element of the designated position may be searched for a display element including the designated position data position 102 in FIG. 10 or having the closest data range. To search, it is sufficient to look at the layout data of the divided document including the designated position in order.

S81では、同手段6が、カレント要素の前の表示要素を得て、S82へ進む。   In S81, the means 6 obtains a display element before the current element, and proceeds to S82.

S82では、同手段6が、指定位置の表示要素からS81で得た表示要素までのレイアウトサイズが、図10の上側レイアウトサイズ103を超えたかどうかを判断し、超えた場合はS83へ進み、超えない場合はS84へ進む。指定位置の表示要素からS81で得た表示要素までのレイアウトサイズを求めるには、カレント要素のレイアウトY位置(図8)と、S81で得たカレント要素の前の表示要素のレイアウトY位置の差分を取れば良い。   In S82, the means 6 determines whether or not the layout size from the display element at the designated position to the display element obtained in S81 exceeds the upper layout size 103 in FIG. If not, the process proceeds to S84. To obtain the layout size from the display element at the designated position to the display element obtained in S81, the difference between the layout Y position of the current element (FIG. 8) and the layout Y position of the display element before the current element obtained in S81. Just take it.

S83では、同手段6が、カレント要素を上限の表示要素として、P16へ抜ける。   In S83, the means 6 exits to P16 using the current element as the upper limit display element.

S84では、同手段6が、上の表示要素をカレント要素として、S81へ戻る。   In S84, the means 6 sets the upper display element as the current element and returns to S81.

以上の処理によって、図11のS70の処理が行われる。   The process of S70 of FIG. 11 is performed by the above process.

図14は、本発明の表示制御方法の特徴である図3のS13の処理の詳細を示すフローチャート図である。   FIG. 14 is a flowchart showing details of the process of S13 of FIG. 3 which is a feature of the display control method of the present invention.

P30からS50へ進み、指定範囲データサイズ取得手段2が、指定範囲のデータサイズSDを取得し、割合取得手段3に与えて、S51へ進む。   Proceeding from P30 to S50, the designated range data size obtaining unit 2 obtains the data size SD of the designated range, gives it to the ratio obtaining unit 3, and proceeds to S51.

図3のS11で指定範囲の表示要素を取得したが、指定範囲のデータサイズはその時に同時に得ることができる。図5、図11、図13などを使って説明した通り、指定範囲の最初と最後の表示要素を得ることができる。表示要素は図8の通り、データ開始位置やデータサイズの属性を持っているので、最後の表示要素の(データ開始位置+データサイズ)から最初の表示要素のデータ開始位置を引けば、指定範囲のデータサイズを得ることができる。   Although the display element of the designated range is acquired in S11 of FIG. 3, the data size of the designated range can be obtained at the same time. As described with reference to FIGS. 5, 11, and 13, the first and last display elements of the designated range can be obtained. Since the display element has the data start position and data size attributes as shown in FIG. 8, if the data start position of the first display element is subtracted from (data start position + data size) of the last display element, the specified range Data size can be obtained.

例として、ここでは指定範囲の位置として、図1の上から12行目の「ジが低い」の行(以下、指定行と呼ぶ)を中心として上下100ドットなので、上下6.25行分(=100/16)の指定範囲のデータサイズを求める。「ジが低い」の指定行の中心から6.25行分上は、図1の上から6行目の「度以上に達する」の行の中心(ここまでで指定行の中心から6行分)からさらに0.25行分上まで含んだ範囲となるので、同じ「度以上に達する」の行の下側0.75行分までが指定範囲に含まれる。下側0.75行分は12ドット(=16×0.75)である。   As an example, here, the position of the designated range is 100 dots up and down centering on the 12th row from the top of FIG. = 100/16) The data size in the specified range is obtained. 6.25 lines above the center of the designated line where “di is low” is the center of the 6th line from the top of FIG. ) Further up to 0.25 lines up to 0.75 lines below the same “reaching more than” line is included in the designated range. The lower 0.75 lines are 12 dots (= 16 × 0.75).

同様に、指定行の下側は、上から18行目の「 人間は本来並列的に」の行の中心(ここまでで指定行の中心から6行分)からさらに0.25行分下まで含んだ範囲となるので、同じ「 人間は本来並列的に」の行の上側0.75行分(=12ドット分)までとなる。   Similarly, the lower side of the designated line is from the top of the 18th line of “Human is essentially in parallel” to the 0.25th line below from the center of the line (so far, 6 lines from the center of the designated line). Since the range is included, it is up to 0.75 lines (= 12 dots) on the upper side of the same “human beings in parallel” line.

これら表示範囲の上限および下限によって途中で切れる行を表示に含めるかどうかで判断が分かれるが、ここでは表示に含めるとして考える。従って、上から6行目の最初から18行目の最後までがデータサイズを求める範囲だとする。   The determination depends on whether or not to include a line that is cut off in the middle depending on the upper and lower limits of the display range, but here it is considered to be included in the display. Accordingly, it is assumed that the range from the top of the sixth line to the end of the 18th line is the range for obtaining the data size.

すると、最初の表示要素は、上から6行目の最初の文字「度」となり、分割文書データ51内の11番目の文字「度」にあたるので、図8のようなデータ構造からデータ開始位置を得れば良い。本来はレイアウト作成時に同時にデータ開始位置を得られるはずだが、ここでは説明の為、最初の表示要素のデータ開始位置を計算で求めてみると、
(分割文書データ内の開始バイト位置)=(11文字分のバイト数)=11×2=22バイト
より、データ開始位置は、
(前の分割文書データサイズ)+(分割文書データ内の開始バイト位置)=126+22=148バイト
となる。
Then, the first display element is the first character “degree” on the sixth line from the top, and corresponds to the eleventh character “degree” in the divided document data 51, so the data start position is determined from the data structure as shown in FIG. Just get it. Originally, you should be able to get the data start position at the same time when creating the layout, but for the sake of explanation here, when you calculate the data start position of the first display element,
(Start byte position in the divided document data) = (Number of bytes for 11 characters) = 11 × 2 = 22 bytes From the data start position,
(Previous divided document data size) + (start byte position in the divided document data) = 126 + 22 = 148 bytes.

最後の表示要素のデータ開始位置も同様に計算で求めてみると、最後の表示要素は4番目の分割文書データ53内に含まれ、ここでは、「並列的に」の「に」にあたる。そこで、分割文書データ53内の開始バイト位置は、「に」の後の18文字分などを引いて求めると、
(分割文書データサイズ)−((18文字分のバイト数)+(「<BR/>」のバイト数)+(「<P/>」のバイト数)+(改行コードのバイト数))=161−(18×2+5+4+1)=115
となる。この結果、最後の表示要素のデータ開始位置は、
(前の分割文書データサイズ)+(分割文書データ内の開始バイト位置)=(126+77+117)+115=435バイト
となる。
When the data start position of the last display element is similarly calculated, the last display element is included in the fourth divided document data 53, and here corresponds to “ni” of “in parallel”. Therefore, if the start byte position in the divided document data 53 is obtained by subtracting 18 characters after “ni”, etc.,
(Divided document data size) − ((number of bytes for 18 characters) + (number of bytes of “<BR/>”) + (number of bytes of “<P />”) + (number of bytes of line feed code)) = 161- (18 × 2 + 5 + 4 + 1) = 115
It becomes. As a result, the data start position of the last display element is
(Previous division document data size) + (start byte position in division document data) = (126 + 77 + 117) + 115 = 435 bytes.

すると、指定範囲のデータサイズSDは、((最後の表示要素のデータ開始位置)+(最後の表示要素のデータサイズ))−(最初の表示要素のデータ開始位置)の演算によって求まるから、
435+2−148=289
となる。
Then, the data size SD of the specified range is obtained by the calculation of ((data start position of the last display element) + (data size of the last display element)) − (data start position of the first display element).
435 + 2-148 = 289
It becomes.

S51では、割合取得手段3が、分割データサイズ取得手段1から全文書のデータサイズADを取得して、S52へ進む。   In S51, the ratio acquisition unit 3 acquires the data size AD of all documents from the divided data size acquisition unit 1, and the process proceeds to S52.

全文書のデータサイズは各分割文書のデータサイズの和だから、ここではADは、図6にも示すとおり604となる。あるいは別途、全文書のデータサイズがどこかに記録されていたり、ファイルシステムなどの記録手段から得られるならばそれを使っても良い。   Since the data size of all documents is the sum of the data sizes of the divided documents, AD is 604 as shown in FIG. Alternatively, if the data size of all documents is recorded somewhere or obtained from recording means such as a file system, it may be used.

S52では、割合取得手段3が、S50で得た指定範囲のデータサイズSDとS51で得た全文書のデータサイズADとから指定範囲の割合を算出して、P40へ抜ける。   In S52, the ratio acquisition unit 3 calculates the ratio of the designated range from the data size SD of the designated range obtained in S50 and the data size AD of all the documents obtained in S51, and the process goes to P40.

例えば、単純に指定範囲のデータサイズSDを全文書のデータサイズADで割れば指定範囲の大きさの割合が得られる。ここでは、289/604=0.48となる。   For example, if the data size SD of the specified range is simply divided by the data size AD of all documents, the ratio of the size of the specified range can be obtained. Here, 289/604 = 0.48.

これによって、図7の指定範囲データサイズSDが全文書データサイズADの48%の大きさだということが分かり、図4では、スクロールボックス121が、スクロールバー120の48%の大きさ、中心位置50%で表示されている。   7 indicates that the specified range data size SD in FIG. 7 is 48% of the total document data size AD. In FIG. 4, the scroll box 121 is 48% of the scroll bar 120 and the center position 50. It is displayed in%.

以上の処理によって、図3のS13の処理が行われる。   The process of S13 of FIG. 3 is performed by the above process.

以上、説明してきた方法により、文書を複数の部分に分割した時のデータサイズと、指定範囲の位置およびデータサイズとから、文書中に指定範囲が占める位置およびデータサイズの各割合を得ることができる。   As described above, the ratio of the position and the data size occupied by the specified range in the document can be obtained from the data size when the document is divided into a plurality of parts and the position and data size of the specified range. it can.

また、指定範囲のレイアウトを表示して、得られた位置と割合でスクロールバーを表示することで、指定範囲に応じたスクロールバーを表示することができるようになる。   In addition, by displaying the layout of the specified range and displaying the scroll bar at the obtained position and ratio, it is possible to display the scroll bar corresponding to the specified range.

さらに、スクロールバー上で指定範囲の位置を指定することで、ユーザーのスクロールバー操作に応じて表示範囲を制御することができるようになる。   Furthermore, by designating the position of the designated range on the scroll bar, the display range can be controlled according to the user's scroll bar operation.

一般に、スクロールバーは表示範囲とレイアウトサイズとが、全文書のレイアウトサイズ中に占める割合に基づいて表示されたり、制御されたりしている。その割合を求めるには、本来、表示範囲と全文書とに関するレイアウトサイズが必要である。レイアウトサイズを高速に得るには予め計算しておくなどの方法が考えられるが、可変レイアウトの場合は表示手段の表示サイズや表示時のレイアウト設定などによってレイアウトサイズが変わってしまう為、予め計算しておくことはできない。   Generally, the scroll bar is displayed or controlled based on the ratio of the display range and layout size to the layout size of all documents. In order to obtain the ratio, the layout size related to the display range and the entire document is originally required. In order to obtain the layout size at high speed, a method such as calculating in advance can be considered, but in the case of variable layout, the layout size changes depending on the display size of the display means and the layout setting at the time of display. I can't keep it.

全文書のレイアウトサイズを求めずに表示範囲のレイアウト割合を真に正確に求めるのは難しいが、ある程度の精度で「推定」(この言葉の意味については後で説明する)することはできる。そこで、本実施の形態では、指定範囲の表示レイアウトとデータサイズとを得る為に、必要最小限の分割文書だけレイアウトし(図3のS11)、それ以外の分割文書はレイアウトを求めていない。そして、指定範囲のデータサイズからレイアウト割合を推定している(図3のS13、特に図14のS50〜52)。   Although it is difficult to truly accurately determine the layout ratio of the display range without determining the layout size of the entire document, it can be “estimated” (the meaning of this term will be explained later) with a certain degree of accuracy. Therefore, in this embodiment, in order to obtain the display layout and data size of the specified range, only the minimum necessary divided document is laid out (S11 in FIG. 3), and the layout of other divided documents is not obtained. Then, the layout ratio is estimated from the data size of the designated range (S13 in FIG. 3, particularly S50 to 52 in FIG. 14).

これによって、可変レイアウトの集まりからなる文書であっても、文書全てをレイアウトするのに比べて高速に指定範囲の割合を得ることができる効果が出てくる。また割合を計算する為に全てのレイアウトを保持する必要もないので、少ないメモリ環境などでも処理できる効果が出てくる。   As a result, even for a document composed of a collection of variable layouts, it is possible to obtain the ratio of the designated range at a higher speed than when all the documents are laid out. In addition, since it is not necessary to hold all layouts in order to calculate the ratio, there is an effect that processing can be performed even in a small memory environment.

なお、「推定」という言葉は、データサイズを使って求める割合が誤っていることを意味するものではない。例えば、データサイズを使って求める位置の割合もレイアウトサイズだけを使って求める位置の割合も、どちらも指定範囲の位置が上下すればそれに応じて求められる割合も上下する。従って、位置の割合を求めるどちらの方法を使ってもスクロールバーとしての基本的な機能は満たす。   Note that the term “estimation” does not mean that the ratio calculated using the data size is incorrect. For example, both the ratio of the position obtained using the data size and the ratio of the position obtained using only the layout size both increase and decrease the required ratio when the position of the specified range increases or decreases. Therefore, the basic function as a scroll bar is satisfied regardless of which method of obtaining the position ratio.

ただし、レイアウトサイズだけを使って求める割合は、指定範囲の位置の変化量と割合の変化量の比は一定の値になるが、データサイズを使って求める割合の場合、その比は一定とは限らず、指定範囲の位置によってその比は多少変動する。   However, the ratio calculated using only the layout size is a constant ratio between the change in the position of the specified range and the change in the ratio, but if the ratio is calculated using the data size, the ratio is constant. The ratio varies somewhat depending on the position of the specified range.

比が一定であるかどうかがどう違うか分かり易い例で説明すると、レイアウトサイズだけを使って求める割合の場合、ユーザーが表示範囲を一定の速度でスクロールさせると、表示範囲の文書中での位置を示すスクロールボックスもそれに応じて徐々に位置が変わり、その時のスクロールボックスの移動速度も一定となる。しかし、データサイズを使って求める割合の場合、ユーザーが表示範囲を一定の速度でスクロールさせると、表示範囲を示すスクロールボックスもそれに応じて徐々に位置が変わるが、スクロールボックスの移動速度は一定とはならず、場所によって、多少速くなったり遅くなったりする。   In an easy-to-understand example of whether the ratio is constant or not, in the case of the ratio obtained using only the layout size, if the user scrolls the display range at a constant speed, the position of the display range in the document The position of the scroll box indicating gradually changes accordingly, and the moving speed of the scroll box at that time is also constant. However, in the case of the ratio obtained using the data size, if the user scrolls the display range at a constant speed, the scroll box indicating the display range gradually changes accordingly, but the moving speed of the scroll box is constant. Don't let it go faster or slower depending on the location.

また、スクロールボックスの大きさも、レイアウトサイズだけを使って求める割合の場合は一定の大きさだが、データサイズを使って求める割合の場合はスクロールボックスの位置によって大きさが多少変化する。スクロールボックスの移動速度や大きさの多少の変化は、スクロールバーとして使用するには大きな問題とはならないが、多少違和感が感じられるかもしれない。   In addition, the size of the scroll box is a constant size when the ratio is obtained using only the layout size, but the size is slightly changed depending on the position of the scroll box when the ratio is obtained using the data size. A slight change in the moving speed and size of the scroll box is not a big problem to use as a scroll bar, but you may feel a little uncomfortable.

文書の表示などを行うアプリケーションでは、普通、スクロールバーはレイアウトサイズだけを使って求められており、ユーザーもそのことに慣れている。従って、ユーザーに違和感を抱かせないようにするならば、レイアウトサイズだけを使って求める割合が「理想」であって、データサイズを使って求める割合はその理想の値にできるだけ近いことが望まれる。理想の値にできるだけ近い値を求めたいという意味で、データサイズを使って割合を求めることを「推定」と呼んでいる。後で出てくる「誤差」という言葉も、同様の考え方で、理想の値とデータサイズを使って求めた値との差を「誤差」、「推定誤差」などと呼んでいる。   In an application that displays a document or the like, the scroll bar is usually required only by using the layout size, and the user is used to that. Therefore, if you do not want the user to feel uncomfortable, the ratio calculated using only the layout size is “ideal”, and the ratio calculated using the data size should be as close as possible to the ideal value. . In the sense that we want to find a value that is as close as possible to the ideal value, finding the ratio using the data size is called "estimation". The term “error” that appears later also refers to the difference between the ideal value and the value obtained using the data size as “error”, “estimation error”, and the like based on the same concept.

なお、説明の為、レイアウトサイズだけを使って割合を求める場合を「レイアウトサイズベース」、データサイズを使って割合を求める場合を「データサイズベース」と以降、呼ぶことがある。   For the sake of explanation, the case where the ratio is obtained using only the layout size is sometimes referred to as “layout size base”, and the case where the ratio is obtained using the data size is sometimes referred to as “data size base”.

ちなみに「誤差」を計算してみると、図4の例では指定範囲の大きさが200ドットで、レイアウト全体のドット単位の大きさが
(27行分の高さ)=16×27=432ドットなので、全ての分割文書でレイアウトを求めた際のドット単位による理想的な表示範囲の大きさの割合は、200/432=0.46より、実際のレイアウトによる指定範囲は46%の大きさとなる。バイト単位でのデータサイズによる推定では、前記のように48%の大きさなので、推定誤差2%となっている。
By the way, when “error” is calculated, in the example of FIG. 4, the size of the specified range is 200 dots, and the size of the dot unit of the entire layout is (height for 27 lines) = 16 × 27 = 432 dots. Therefore, the ratio of the ideal display range size in dot units when layouts are obtained for all divided documents is 200/432 = 0.46, and the designated range by the actual layout is 46%. . In the estimation based on the data size in byte units, the estimation error is 2% because the size is 48% as described above.

また、推定した中心位置(12行目の中心なので、11.5行分の位置)のレイアウト上の位置は、
(11.5行分の高さ)/432=(16*11.5)/432=0.43
より、43%の位置になっている。レイアウトサイズベースでは、指定範囲の中心位置は50%なので、推定誤差7%となっている。これを表しているのが図1の表示範囲111(データサイズベース)と表示範囲113(レイアウトサイズベース)であり、表示範囲の中心の○がそれぞれの指定位置を示す。表示範囲113はレイアウト上の理想的な指定位置であり、ここで推定して求めた表示範囲111の指定位置とずれている。
In addition, the position on the layout of the estimated center position (the position of 11.5 lines since the center of the 12th line) is
(Height for 11.5 rows) / 432 = (16 * 11.5) /432=0.43
The position is 43%. On the basis of the layout size, since the center position of the designated range is 50%, the estimation error is 7%. This is represented by the display range 111 (data size base) and the display range 113 (layout size base) in FIG. The display range 113 is an ideal designated position on the layout, and deviates from the designated position of the display range 111 obtained by estimation here.

なお、図14のS50の説明では指定範囲が指定位置と表示サイズとで指定されるケースを説明する為、指定範囲のレイアウトを利用しているが、指定範囲の大きさとして表示サイズでなくデータサイズが指定されるのならば、レイアウトからデータサイズを求める必要はなく、そのまま指定されたデータサイズを使えば良いのでより簡単な処理になる。さらに、指定範囲のレイアウトを表示するのではなく、スクロールバーだけを表示するなど、単に割合を得るだけで良いならもっと簡単な処理になり、レイアウトを得る必要もなくなってくる。   In the description of S50 in FIG. 14, the layout of the specified range is used to explain the case where the specified range is specified by the specified position and the display size. However, the size of the specified range is not a display size but data. If the size is specified, it is not necessary to obtain the data size from the layout, and it is simpler to use the specified data size as it is. Furthermore, if it is sufficient to simply obtain the ratio, such as displaying only the scroll bar instead of displaying the layout of the specified range, the process becomes simpler, and the layout need not be obtained.

図6では、分割文書のデータサイズとしてバイト数を使ったが、他の単位を使う方法も考えられる。例えば意味単位である。   In FIG. 6, the number of bytes is used as the data size of the divided document, but a method using other units is also conceivable. For example, a semantic unit.

例えば、意味単位として文字数を使った方法について説明する。データ中には、文字の色などの指定やコメントなど、必ずしもレイアウト位置やサイズに直接関係ない情報が含まれていることもある。実際にレイアウトされる文字数を予め勘定しておくことで、バイト数よりレイアウトサイズに近い値が得られる場合も出てくる効果がある。   For example, a method using the number of characters as a semantic unit will be described. The data may include information that is not necessarily directly related to the layout position and size, such as designation of character color and comments. By counting the number of characters actually laid out in advance, there is an effect that a value closer to the layout size than the number of bytes can be obtained.

文字数の数え方は、例えばHTMLのタグなどの表示に直接現れない制御文字列をどう扱うか、全角文字を半角文字2つ分とするかどうか、など色々考えられる。図15は、図2の分割文書データを文字数で数えたデータサイズ例を示している。データサイズ170〜175は、HTMLのタグなどの制御文字を全て無視し、全角は半角2つ分として、半角文字数で数えることにより求められている。   There are various ways to count the number of characters, for example, how to handle a control character string that does not appear directly in the display of HTML tags, etc., or whether to use two half-width characters as two half-width characters. FIG. 15 shows a data size example in which the divided document data of FIG. 2 is counted by the number of characters. The data sizes 170 to 175 are obtained by ignoring all control characters such as HTML tags, and counting by the number of half-width characters with two full-width characters.

図6と比較すると、データサイズ170〜175が変わったことに伴って、データサイズ比180〜185および累積データサイズ比190〜196も変わっていることがわかる。図15では、指定範囲の中心位置0.5が累積データサイズ比192と累積データサイズ比193の境界に来ているので、表示中心となる表示要素が、図6のデータを基に処理する場合と多少前後する。   Compared with FIG. 6, it can be seen that the data size ratios 180 to 185 and the cumulative data size ratio 190 to 196 have changed as the data sizes 170 to 175 have changed. In FIG. 15, since the center position 0.5 of the designated range is at the boundary between the cumulative data size ratio 192 and the cumulative data size ratio 193, the display element serving as the display center is processed based on the data of FIG. And slightly back and forth.

元とするデータが図15のものとなる以外は図6の処理と一緒なので詳細な計算過程は省くが、指定範囲の中心位置は、累積データサイズ比192と累積データサイズ比193の境界に来ているので、分割文書データ53の最初の文字「 」(全角スペース)とする。これは図1では上から13行目の先頭文字であり、中心位置は12.5行目の位置となる。   The detailed calculation process is omitted because the original data is the same as that of FIG. 6 except that the original data is that of FIG. 15, but the center position of the designated range comes to the boundary between the cumulative data size ratio 192 and the cumulative data size ratio 193. Therefore, the first character “” (double-byte space) of the divided document data 53 is used. In FIG. 1, this is the first character on the 13th line from the top, and the center position is the position on the 12.5th line.

レイアウト上の位置や大きさの計算は、先に説明したバイト単位の場合と同様なので、詳しい説明は省いて式のみ示すが、中心位置の割合は、
(12.5行分の高さ)/432=(16*12.5)/432=0.46
より、46%となり、誤差は4%となる。バイト単位の場合は誤差7%だったので、中心位置の精度が少し良くなっている。
Since the calculation of the position and size on the layout is the same as in the case of the byte unit described above, the detailed description is omitted and only the formula is shown, but the ratio of the center position is
(Height for 12.5 rows) / 432 = (16 * 12.5) /432=0.46
Thus, 46% and the error is 4%. In the case of byte unit, the error was 7%, so the accuracy of the center position is a little better.

指定範囲はこの中心位置から上下に6.25行分なので、上から7行目の「(2)」から19行目の「する能力」までの範囲となる。「(2)」は、分割文書データ51中の19文字目なのでデータ位置は(62+19×2=100)、「力」は、分割文書データ53中の59文字目なのでデータ位置は(62+54+94+59×2=328)となり、指定範囲のデータサイズSDはその差に、終了文字のデータサイズを加えた230となる。   Since the designated range is 6.25 lines up and down from this center position, the range is from “(2)” on the seventh line from the top to “ability to do” on the 19th line. Since “(2)” is the 19th character in the divided document data 51, the data position is (62 + 19 × 2 = 100), and “force” is the 59th character in the divided document data 53, so the data position is (62 + 54 + 94 + 59 × 2). = 328), and the data size SD of the specified range is 230 obtained by adding the data size of the end character to the difference.

SD/AD=230/(62+54+94+132+22+60)=0.54より、大きさは54%で誤差8%となる。この場合、図6を元にバイト単位で計算した誤差2%よりもむしろ誤差が大きくなっている。すなわち、誤差は文書データの内容により変わり、全ての場合において、推定精度がよくなる訳ではない。   Since SD / AD = 230 / (62 + 54 + 94 + 132 + 22 + 60) = 0.54, the size is 54% and the error is 8%. In this case, the error is larger than the error of 2% calculated in bytes based on FIG. That is, the error varies depending on the contents of the document data, and the estimation accuracy is not improved in all cases.

分割文書のデータサイズとしては、バイト数、文字数以外にも、例えば単語数や行数を使う方法も考えられる。単語数は英語など単語の区切りがはっきりしている場合は意味単位として使いやすい。また、改行の場合、データ記述上の改行コードはレイアウト上の改行とは必ずしも限らないので、一般にレイアウト上の改行数を使った方が精度がよい。改行数だけだと1行の長さがまちまちの場合、精度が良く無いので、文字数と組み合わせるなどすると良い。   As the data size of the divided document, for example, a method of using the number of words or the number of lines in addition to the number of bytes and the number of characters can be considered. The number of words is easy to use as a semantic unit when the word division is clear, such as English. In the case of a line break, the line break code in the data description is not necessarily the line break in the layout, so it is generally better to use the number of line breaks in the layout. If the number of line breaks alone is different, the accuracy is not good if the length of one line varies, so it is better to combine it with the number of characters.

図15での誤差は、画像部分に関しての処理を無視した影響が大きい。図6では、画像をあらわす「<IMG>」タグをバイト数で数えてはいるが、画像の大きさを直接表している訳ではないので、やはり正確さに欠ける。これを補正する為、文章中に含まれる文字や画像などの表示要素の表示サイズをデータサイズに換算した値を使う方法が考えられる。   The error in FIG. 15 is greatly affected by ignoring the processing relating to the image portion. In FIG. 6, the “<IMG>” tag representing the image is counted in terms of the number of bytes, but it does not directly represent the size of the image, so it is still inaccurate. In order to correct this, a method of using a value obtained by converting a display size of a display element such as a character or an image included in a sentence into a data size can be considered.

例えば文字の大きさが途中で変わる場合、(文字数)=(データサイズ)、すなわち文字数だけを数えただけではデータサイズの精度が落ちてしまうが、文字の大きさの変化に応じて、(文字数)×(文字サイズ比)=(データサイズ)などと換算してやれば、精度を上げることができるようになる。同様に画像も、画像の表示サイズや面積をデータサイズに換算してやることで精度を上げることができるようになる効果が出てくる。   For example, if the character size changes in the middle, (number of characters) = (data size), that is, just counting the number of characters will reduce the accuracy of the data size, but depending on the change in character size, ) × (character size ratio) = (data size), etc., the accuracy can be improved. Similarly, the image can be improved in accuracy by converting the display size and area of the image into the data size.

例えば、図2の分割文書データ54中に出てくるIMGで指定されている画像eye.pngの大きさが、70ドット×35ドットだったとする。14ドット×14ドットの全角文字(文字間1ドット、行間2ドット)を単位とした場合、この画像を、
(文字横サイズ)=(文字幅)+(文字間)=14+1=15
(データ横サイズ)=((画像幅)+(文字サイズ)−1))/(文字サイズ))
=(70+14−1)/14=5.9
(文字縦サイズ)=(文字高さ)+(行間)=14+2=16
(データ縦サイズ)=((画像高さ)+(文字縦サイズ)−1)/(文字縦サイズ)
=(35+16−1)×16=3.2
(データサイズ)=(データ横サイズ)×(データ縦サイズ)=5×3=15文字(全角)=30文字(半角)
分のデータサイズと換算する。なお、ここでは縦横の文字分を整数とする為、(データ横サイズ)、(データ縦サイズ)は、共に少数点以下切り捨てしてある。
For example, the image eye.designated by the IMG appearing in the divided document data 54 of FIG. Assume that the size of png is 70 dots × 35 dots. When a 14-dot × 14-dot full-width character (1 dot between characters, 2 dots between lines) is used as a unit, this image is
(Character width size) = (Character width) + (Between characters) = 14 + 1 = 15
(Data horizontal size) = ((image width) + (character size) -1)) / (character size))
= (70 + 14-1) /14=5.9
(Character vertical size) = (character height) + (line spacing) = 14 + 2 = 16
(Data vertical size) = ((image height) + (character vertical size) -1) / (character vertical size)
= (35 + 16-1) × 16 = 3.2
(Data size) = (data horizontal size) × (data vertical size) = 5 × 3 = 15 characters (full-width) = 30 characters (half-width)
Convert to the data size of minutes. Here, since the vertical and horizontal characters are integers, (data horizontal size) and (data vertical size) are both rounded down to the nearest decimal point.

図16は図15にこの換算値を追加したものである。図15と比較すると、図15のデータサイズ174に換算値30が加算され、データサイズ270〜275が再定義されたことに伴って、データサイズ比280〜285および累積データサイズ比290〜296も変わっていることがわかる。   FIG. 16 is obtained by adding this converted value to FIG. Compared with FIG. 15, the conversion value 30 is added to the data size 174 of FIG. 15, and the data size ratio 280 to 285 and the cumulative data size ratio 290 to 296 are also associated with the redefinition of the data size 270 to 275. You can see that it has changed.

元とするデータが図16となる以外は図15の処理と一緒なので詳細な説明は省くが、指定範囲の中心位置は、4番目の分割文書内の「60dB」の「B」の文字になる。これは上から14行目なので、中心位置は13.5行目の所となり (13.5行分の高さ)/432=(16*13.5)/432=0.50
より、中心位置は50%となり、誤差0%となる。図1の理想的な表示範囲113と重なる結果が得られた。
Since the original data is the same as the processing of FIG. 15 except that it is FIG. 16, the detailed description is omitted, but the center position of the designated range is the character “B” of “60 dB” in the fourth divided document. . Since this is the 14th line from the top, the center position is at the 13.5th line (height for 13.5 lines) / 432 = (16 * 13.5) /432=0.50
Thus, the center position is 50%, and the error is 0%. A result overlapping the ideal display range 113 in FIG. 1 was obtained.

指定範囲はこの中心位置から上下に6.25行分なので、8行目の「 人間は」から20行目の「持っている。」までの範囲となる。「 人間は」のスペース「 」は、分割文書データ52中の最初の文字なのでデータ開始位置は(62+54)となる。また、「持っている。」の終了文字「。」は、分割文書データ53中の最後の文字なのでデータ位置は(62+54+94+132)となり、指定範囲のデータサイズSDはその差の226となる。   Since the designated range is 6.25 lines up and down from this center position, the range is from "Human" on the 8th line to "Hold" on the 20th line. Since the space “” of “Human is” is the first character in the divided document data 52, the data start position is (62 + 54). Since the end character “.” Of “has” is the last character in the divided document data 53, the data position is (62 + 54 + 94 + 132), and the data size SD of the designated range is 226 of the difference.

SD/AD=226/(62+54+94+132+52+60)=0.50より、大きさは50%となり、レイアウトサイズベースとの誤差は4%である。   Since SD / AD = 226 / (62 + 54 + 94 + 132 + 52 + 60) = 0.50, the size is 50%, and the error from the layout size base is 4%.

図6のバイト単位のものや図15の文字単位のものに比べて、中心位置の誤差と大きさの誤差の和で総合的に比較してみると、図6のバイト単位は2%、図15の文字単位で指定範囲の大きさを求めた場合の誤差は8%であるのに比べて、図16の文字数換算手法を使った場合は4%となり、図15の手法と比べると誤差が小さくなっている。図6の手法に対しても同様に、画像の表示要素をバイトに換算した値を加えれば、誤差2%を更に小さくすることができる。   Compared to the byte unit of FIG. 6 and the character unit of FIG. 15, when compared comprehensively by the sum of the error of the center position and the error of the size, the byte unit of FIG. The error when the size of the designated range is calculated in units of 15 characters is 8%, compared to 4% when the number of characters conversion method of FIG. 16 is used, and the error is compared with the method of FIG. It is getting smaller. Similarly, the error 2% can be further reduced by adding a value obtained by converting the display element of the image into bytes in the method of FIG.

もちろん、文書の内容によっては、誤差がかえって大きくなることもありえるが、データサイズの計算にレイアウトサイズの要素を考慮した換算値を加えることで、レイアウトベースの値と近い値が得られる可能性が高まると言える。   Of course, depending on the content of the document, the error may increase, but by adding a conversion value that considers the layout size factor in the data size calculation, there is a possibility that a value close to the layout base value can be obtained. It can be said that it will increase.

この様に、文書中に含まれる文字や画像などの表示要素の表示サイズをデータサイズに換算した値を使うことで、推定精度を高くする可能性を大きくする効果がある。   In this way, there is an effect of increasing the possibility of increasing the estimation accuracy by using a value obtained by converting the display size of display elements such as characters and images included in the document into the data size.

ところで、ここまで説明してきた手法では、例えば図4に示すように、指定範囲の位置(スクロールボックス121の中心位置)が、表示範囲の中心と一致するようにしている。   By the way, in the method described so far, for example, as shown in FIG. 4, the position of the specified range (the center position of the scroll box 121) is made to coincide with the center of the display range.

図17はこの状況を詳細に説明するものである。分かりやすいように、レイアウト全体の中で表示される範囲を枠で囲い、その横にスクロールバーをつけてある。実際に表示されるのは枠の中のレイアウトとスクロールバーだけである。   FIG. 17 explains this situation in detail. For easy understanding, the range displayed in the entire layout is surrounded by a frame, and a scroll bar is added next to it. Only the layout inside the frame and the scroll bar are actually displayed.

スクロールバー全体の大きさ(長さ)をSA、スクロールボックスの大きさをSD、スクロールバーの開始位置から基準点SP(後述)までの大きさをSM、スクロールボックス内での基準点SPの上側の大きさをSPD、下側の大きさをSFDとする。   The size (length) of the entire scroll bar is SA, the size of the scroll box is SD, the size from the start position of the scroll bar to a reference point SP (described later) is SM, and the upper side of the reference point SP in the scroll box. Is SPD and the lower size is SFD.

同様に、レイアウト全体の大きさをLA,指定範囲のレイアウトの大きさをLD,先頭から基準点LP(後述)までの大きさをLM、基準点LPより上側の大きさをLPD,下側の大きさをLFDとする。右のスクロールバー側と左のレイアウト側に説明の記号が分けて書いてあるが、同じような意味をもつ記号は、記号名の末尾をそれぞれ同じ文字(列)としてある。   Similarly, the size of the entire layout is LA, the size of the layout in the specified range is LD, the size from the top to a reference point LP (described later) is LM, the size above the reference point LP is LPD, and the lower side is LPD. The size is LFD. The explanation symbols are written separately on the right scroll bar side and the left layout side, but symbols having similar meanings have the same character (column) at the end of the symbol name.

「基準点」とは、スクロールバー上あるいはレイアウト上、指定範囲(表示範囲)の中のどこを指定範囲の「位置」とするか(どこを基準にするか)を意味する。レイアウト基準点LPは、その点の上下LPD、LFDの大きさだけレイアウトを表示することになる。スクロールバー基準点SPは、その点の上下SPD、SFDの大きさだけスクロールボックスを表示することになる。   The “reference point” means where in the specified range (display range) on the scroll bar or layout the “position” of the specified range (where the reference is based). The layout reference point LP displays the layout by the size of the upper and lower LPD and LFD of that point. The scroll bar reference point SP displays the scroll box by the size of the upper and lower SPD and SFD of the point.

スクロールバー基準点SPとレイアウト基準点LPは、文書全体の中で割合的に同じ位置を表す。従って、SM/SA=LM/LAとなる。なお、図17ではたまたまSPとLPとが一直線上に並んでいるが、基準点の取り方やスクロールバーの位置によっては、後で説明する図24のように一直線上に並ばない場合もある。   The scroll bar reference point SP and the layout reference point LP represent the same position proportionally in the entire document. Therefore, SM / SA = LM / LA. In FIG. 17, SP and LP happen to be aligned on a straight line, but depending on how to set the reference point and the position of the scroll bar, they may not be aligned on a straight line as shown in FIG.

スクロールバー基準点SPとは、分かり易く言えば、指定範囲の位置(指定位置)を意味する。図17では、スクロールボックスはスクロールバーの中心に位置し、SM=SA/2、SPD=SFDとなっている。   The scroll bar reference point SP means the position (specified position) of the specified range, if it is easy to understand. In FIG. 17, the scroll box is located at the center of the scroll bar, and SM = SA / 2 and SPD = SFD.

一方、レイアウト基準点LPは、スクロールバー基準点SPに対応するレイアウト上の位置である。図17の例では、位置指定は(LM/LA)の割合で示されていることになる。図17ではスクロールバー基準点SPが、スクロールバーの真中を指しているので、レイアウト基準点LPも中央のレイアウト「 人間の受光能力は60」の行の中心に位置している。このとき、LM=LA/2、LPD=LFDである。   On the other hand, the layout reference point LP is a position on the layout corresponding to the scroll bar reference point SP. In the example of FIG. 17, the position designation is indicated by the ratio (LM / LA). In FIG. 17, since the scroll bar reference point SP points to the middle of the scroll bar, the layout reference point LP is also located at the center of the row of the center layout “human light receiving ability is 60”. At this time, LM = LA / 2 and LPD = LFD.

スクロールバー基準点SPは、通常、スクロールボックスの中央にとる。すなわち、スクロールボックスによって表示範囲が指定された場合は、スクロールボックスの中央位置に対応するレイアウト上の位置が、表示の中心となるようにレイアウトを表示する。逆にある表示範囲のスクロールバーを表示する時は、表示範囲のレイアウトの中心に対応するスクロールバー上の位置が、スクロールボックスの中央となるようにスクロールバーを表示する。   The scroll bar reference point SP is usually set at the center of the scroll box. That is, when the display range is designated by the scroll box, the layout is displayed so that the position on the layout corresponding to the center position of the scroll box becomes the center of the display. Conversely, when displaying a scroll bar of a certain display range, the scroll bar is displayed so that the position on the scroll bar corresponding to the center of the layout of the display range is the center of the scroll box.

レイアウトをベースにしたスクロールバーでは、スクロールボックスの大きさと表示範囲の大きさは対応しており、表示範囲の大きさや表示倍率を変えるなどしなければ、スクロールボックスの大きさは変化しない。   In a scroll bar based on the layout, the size of the scroll box corresponds to the size of the display range, and the size of the scroll box does not change unless the size of the display range or the display magnification is changed.

しかし、本発明ではスクロールボックスの大きさは推測であり、指定範囲の位置と指定範囲に含まれるデータサイズとに応じて逐次求められるので、例えばスクロールボックスの移動によって変化する。表示される範囲はレイアウトサイズで指定しているので、200ドットなら200ドット分が常に表示されていて、表示倍率が変わる訳ではないのだが、スクロールボックスの大きさが変わってくる。通常のスクロールバーでは、表示倍率を変えない限り、スクロールボックスのサイズは変わらないので、ユーザーは少し違和感があるかもしれない。   However, in the present invention, the size of the scroll box is speculative, and is sequentially obtained according to the position of the designated range and the data size included in the designated range, and thus changes depending on the movement of the scroll box, for example. Since the display range is specified by the layout size, if 200 dots, 200 dots are always displayed, and the display magnification does not change, but the size of the scroll box changes. With a normal scroll bar, the size of the scroll box does not change unless the display magnification is changed, so the user may feel a little uncomfortable.

しかし、指定範囲の位置として中心位置を使うと、スクロールボックスの伸び縮みが両端に分散されるので、違和感を多少和らげる効果が出てくることがある。   However, if the center position is used as the position of the specified range, the expansion and contraction of the scroll box is distributed at both ends, so that there may be an effect that the feeling of strangeness is somewhat relieved.

ただし、スクロールボックスの位置が、スクロールバーの最初や最後の端に接する位置付近に指定された場合、基準点としてスクロールボックスの中央位置を取るとうまくいかないことがある。   However, if the position of the scroll box is specified near the position touching the first or last end of the scroll bar, taking the center position of the scroll box as a reference point may not work.

図18は、スクロールボックス121をスクロールバー120の上端に移動させて表示範囲を指定した時、スクロールボックス121が上端に位置し、表示は最初の行から隙間無く表示され、通常のスクロールバーによる指定と同様に表示された問題の無い例である。しかし、コンテンツやスクロールボックスの状態によっては、図18のようには表示されず、ユーザーの意図と異なる表示のされかたをしてしまうことがある。   In FIG. 18, when the scroll box 121 is moved to the upper end of the scroll bar 120 and the display range is specified, the scroll box 121 is positioned at the upper end, the display is displayed without a gap from the first line, and is specified by the normal scroll bar. This is a non-problematic example displayed in the same way. However, depending on the contents and the state of the scroll box, it may not be displayed as shown in FIG. 18 and may be displayed differently from the user's intention.

例えば、図19は、スクロールボックス121を上端に移動させて表示範囲を指定した時、スクロールボックス121が上端に位置するにも関わらず、最初の行が表示されず、途中から表示されてしまっている例である。図19は実際には処理の途中状態である。   For example, in FIG. 19, when the scroll box 121 is moved to the upper end and the display range is specified, the first line is not displayed and the display is displayed halfway though the scroll box 121 is positioned at the upper end. This is an example. FIG. 19 is actually a state in the middle of processing.

図3のフローチャート図に沿った処理で説明すれば、スクロールボックス121を上端に移動させて表示範囲を指定することがS10に相当し、指定範囲を表示する処理はS12に相当する。S12で指定範囲を表示した結果、図19のように文書の途中から表示される。そして図19の表示範囲にあわせたスクロールバー120を表示させる処理はS14に相当する。S14で図19の表示範囲にあわせたスクロールバー120を表示させた結果が図20である。表示範囲にスクロールバー表示を合わすと、図20のようにスクロールボックス121の上に少し隙間がないといけないはずである。ユーザーは最終的には図20の状態を見ることになる。   If it demonstrates with the process along the flowchart figure of FIG. 3, moving the scroll box 121 to an upper end will correspond to S10, and the process which displays a designated range is equivalent to S12. As a result of displaying the designated range in S12, it is displayed from the middle of the document as shown in FIG. The process of displaying the scroll bar 120 in accordance with the display range in FIG. 19 corresponds to S14. FIG. 20 shows the result of displaying the scroll bar 120 in accordance with the display range of FIG. 19 in S14. When the scroll bar display is aligned with the display range, there should be a little space above the scroll box 121 as shown in FIG. The user finally sees the state of FIG.

図21は、同様にスクロールボックス121を上端に移動させて表示範囲を指定した時、最初の行の前に空白が空いて表示されてしまっている例である。図19同様、図3のフローチャート図の処理を一通り行うのだが、図21は図19と違い、ほぼユーザーが最終的に見る状態である(正確に言えば、図21より若干、スクロールボックスが小さくなるかもしれない)。   FIG. 21 is an example in which when the scroll box 121 is similarly moved to the upper end and a display range is designated, a blank is displayed before the first line. As in FIG. 19, the process of the flowchart of FIG. 3 is performed all the time. However, unlike FIG. 19, FIG. 21 is almost in the state that the user finally sees. May be smaller).

表示範囲にスクロールバー表示を無理に合わすなら、このような表示は実際にはありえないが、図22のようにスクロールボックス121がスクロールバー120を上に突き抜けたようになり、これは本来レイアウトがない場所までも表示してしまっていることを表している。(なお、説明の都合上、同じコンテンツを使っているが、スクロールボックスを上端に移動させて表示範囲を指定した時に図19と図21が同時に起こる訳ではなく、コンテンツやスクロールバーの状態によってはどちらも起こりうるという意味で例にあげているだけである)。   If the scroll bar display is forcibly adjusted to the display range, such a display is not actually possible. However, as shown in FIG. 22, the scroll box 121 penetrates the scroll bar 120 upward, and this originally has no layout. It shows that even the place has been displayed. (For convenience of explanation, the same content is used. However, when the display range is specified by moving the scroll box to the upper end, FIG. 19 and FIG. 21 do not occur at the same time, depending on the content and the state of the scroll bar. It is just an example in the sense that both can happen).

このような不具合は、スクロールボックスの大きさが位置によって変わる(大きさが変わる理由は「推測」の言葉の意味について述べた際に説明した)ため、発生する。スクロールボックスの大きさが変わるとは、例えば、図18のようにコンテンツの先頭位置から表示される時のスクロールボックス121の大きさと、図4のようにコンテンツの途中の位置から表示される時のスクロールボックス121の大きさは同じとは限らないということである。   Such a problem occurs because the size of the scroll box changes depending on the position (the reason why the size changes is explained when the meaning of the word “guess” is described). The size of the scroll box changes when, for example, the size of the scroll box 121 is displayed from the top position of the content as shown in FIG. 18 and when the scroll box is displayed from the middle position of the content as shown in FIG. That is, the size of the scroll box 121 is not necessarily the same.

レイアウトサイズベースのスクロールボックスを使って新たな表示範囲を指定する時、普通はスクロールボックスをマウスなどで移動させて指示する。その際、スクロールボックスの大きさは、普通変わらない。しかし、データサイズベースのスクロールボックスを同じ方法で表示範囲指定に使うと問題が発生する。   When a new display range is specified using a layout size-based scroll box, the scroll box is usually moved by using a mouse or the like. At that time, the size of the scroll box does not usually change. However, there is a problem if the data size based scroll box is used to specify the display range in the same way.

例えば、図4に示す大きさのスクロールボックス121をマウスなどでスクロールバー120の上端位置に移動させるとする。スクロールボックス121の大きさは図4のままとする。ユーザーの意図としては図18のように表示したい訳だが、場合によっては、図20や図21のような表示になってしまうことがある。直接的な原因は、この時のスクロールボックス121による表示範囲の指定が、コンテンツの先頭からの範囲として指定できていないからである。   For example, assume that the scroll box 121 having the size shown in FIG. 4 is moved to the upper end position of the scroll bar 120 with a mouse or the like. The size of the scroll box 121 remains as shown in FIG. The user's intention is to display as shown in FIG. 18, but in some cases, the display may be as shown in FIG. 20 or FIG. The direct cause is that the display range specified by the scroll box 121 at this time cannot be specified as the range from the top of the content.

なぜコンテンツの先頭からの範囲として指定できないかというと、この時のスクロールボックス121の中心位置の指定が、コンテンツの先頭からの表示範囲の時のスクロールボックス121の位置である図18のスクロールボックス121の中心位置とずれているからである。指定範囲は、スクロールボックスの中心位置から上下に何ドットという指定の仕方をしているので、スクロールボックスの中心位置さえ同じならば、同じ指定範囲になるはずである。しかし、先に説明したように、図18のスクロールボックス121の大きさと図4のスクロールボックス121の大きさは同じとは限らないので、スクロールボックスを上端に移動させた時のスクロールボックスの中心位置は同じとは限らなくなってしまう。これが、図20や図21のような表示になってしまう理由である。   The reason why the range from the beginning of the content cannot be specified is that the designation of the center position of the scroll box 121 at this time is the position of the scroll box 121 when the display range is from the beginning of the content. This is because it is deviated from the center position. Since the designated range is specified by how many dots above and below the center position of the scroll box, if the center position of the scroll box is the same, it should be the same designated range. However, as described above, since the size of the scroll box 121 in FIG. 18 and the size of the scroll box 121 in FIG. 4 are not necessarily the same, the center position of the scroll box when the scroll box is moved to the upper end. Will no longer be the same. This is the reason why the display is as shown in FIGS.

図18の時のスクロールボックス121の大きさはレイアウトしてみないと得られないので事前に得ることは難しい。また、スクロールボックス121の操作中は、通常、スクロールボックス121のサイズは変わらないので、事前に知ることができても、それをスクロールバー120の操作に反映させることが難しい。また反映できたとしても、ユーザーが端に移動したい時のみスクロールボックス121のサイズを変える為には、ユーザーの意向を知らなければいけないが、それはさらに難しい。   The size of the scroll box 121 at the time of FIG. 18 is difficult to obtain in advance because it cannot be obtained unless layout is performed. In addition, during the operation of the scroll box 121, since the size of the scroll box 121 does not normally change, even if it can be known in advance, it is difficult to reflect it in the operation of the scroll bar 120. Even if it can be reflected, in order to change the size of the scroll box 121 only when the user wants to move to the end, it is necessary to know the intention of the user, but this is more difficult.

これらの不具合を防止する為、ユーザーが指定範囲として端に接するような位置を指定した場合は、スクロールバー基準点SPはスクロールボックスの中心位置を取らず、端を取るようにすれば良い。また、レイアウト基準点LPについても同様に表示範囲の端をとるようにする。   In order to prevent these problems, when the user designates a position that touches the end as the designated range, the scroll bar reference point SP may be taken without taking the center position of the scroll box. Similarly, the layout reference point LP also takes the end of the display range.

つまり指定範囲の大きさを、今までの例では上下にLPD=LFD=100ドットあわせて200ドットとしていたが、例えば上端を指定された場合は上にLPD=0ドット、下にLFD=200ドット、あわせて200ドットとしてやればよい。下端の場合は逆である。   In other words, the size of the designated range has been set to 200 dots including the upper and lower portions of LPD = LFD = 100 dots in the previous examples. For example, when the upper end is designated, LPD = 0 dots on the upper side and LFD = 200 dots on the lower side. In total, 200 dots may be used. The opposite is true for the lower end.

図23はスクロールバー基準点SPをスクロールボックスの上端に取ると共に、レイアウト基準点LPを表示範囲の上端に取った状態を示したものである。図24では、基準点SP、LPが端に位置しないが、図23では端に位置している。   FIG. 23 shows a state in which the scroll bar reference point SP is taken at the upper end of the scroll box and the layout reference point LP is taken at the upper end of the display range. In FIG. 24, the reference points SP and LP are not located at the ends, but are located at the ends in FIG.

これらの処理は、具体的には、図3のS10で指定範囲を得る際に、スクロールボックスがスクロールバーの上端または下端に位置しているか否かの判断を加えてやればよい。   Specifically, these processes may be performed by determining whether or not the scroll box is positioned at the upper end or the lower end of the scroll bar when obtaining the designated range in S10 of FIG.

このように、スクロールボックスがスクロールバーの最初もしくは最後を含む範囲として指定されている場合は、文書の最初からもしくは最後まで表示するように表示制御することで、端を含む範囲の指定を問題なく行えるようにすることができる効果がある。   In this way, if the scroll box is specified as a range that includes the beginning or end of the scroll bar, display control is performed so that the document is displayed from the beginning to the end of the document. There is an effect that can be performed.

ただ、端を含む場合だけに限定してしまうと、端を含む場合と端をわずかに含まない場合で表示される範囲に大きなずれがでてしまうことがあり、スクロールバー操作の連続性が失われてしまうかもしれない。   However, if it is limited to cases that include edges, there may be a large shift in the displayed range when the edges are included and when the edges are not included slightly, and the continuity of scroll bar operation is lost. It may be broken.

これはそもそもスクロールバーが端に来た時にだけ急に基準点を変更したのが原因なので、スクロールボックスの位置に応じて、あるいはスクロールボックスが位置する範囲に応じて、基準点を滑らかまたは段階的に変化させることで、不連続性を抑えることができる。   This is because the reference point is suddenly changed only when the scroll bar reaches the end, so the reference point is smoothed or stepped according to the position of the scroll box or the range where the scroll box is located. By changing to, discontinuity can be suppressed.

基準点の変化のさせ方としては色々考えられるが、最も単純な方法として、スクロールボックスが中央に位置する時はスクロールボックスの中央にし、端に位置する時はスクロールボックスの端にし、その間は線形に変化させる方法がある。また、レイアウトの基準点も同様にそれに応じて変化させる。   There are various ways to change the reference point, but the simplest method is to use the center of the scroll box when the scroll box is at the center, the end of the scroll box when it is at the end, and linear between them. There is a way to change. Similarly, the layout reference point is changed accordingly.

図で具体的に説明すると、スクロールバーが中央の時は図17、スクロールバーが端に来た時は図23、この中間の状態が図25である。以降、説明を一般的にする為、図25を基に説明する。   Specifically, FIG. 17 shows when the scroll bar is in the center, FIG. 23 shows when the scroll bar reaches the end, and FIG. 25 shows an intermediate state. In the following, for general description, description will be made based on FIG.

図25で、スクロールバーによって指定された場合、スクロールバーの開始位置から基準点SPまでの大きさSMは、スクロールボックス内のどこに基準点を取るかによって決まる。スクロールバー内でスクロールボックスより上の空きスペースの大きさをSTとする。STは、スクロールボックスが中央の場合、
SM/SA=0.5、ST=(SA−SD)/2
であり、スクロールボックスが上端の場合、
SM/SA=0.0、ST=0.0
なので、
SM=0.5×ST/((SA−SD)/2)
とすれば、SMを線形に求められる。つまり、スクロールボックスの位置からSMを直接求めるのではなく、スクロールボックス以外の残りの部分の大きさに注目して、SMを求めている。
In FIG. 25, when designated by the scroll bar, the size SM from the start position of the scroll bar to the reference point SP is determined by where the reference point is taken in the scroll box. Let ST be the size of the empty space above the scroll box in the scroll bar. ST is when the scroll box is in the center
SM / SA = 0.5, ST = (SA-SD) / 2
And if the scroll box is at the top,
SM / SA = 0.0, ST = 0.0
So,
SM = 0.5 × ST / ((SA-SD) / 2)
Then, SM can be obtained linearly. That is, instead of directly obtaining the SM from the position of the scroll box, the SM is obtained by paying attention to the size of the remaining part other than the scroll box.

SMが求まれば、LM/LA=SM/SAより、
LM=LA×(SM/SA)
でLMが求まる。
If SM is found, LM / LA = SM / SA,
LM = LA × (SM / SA)
LM can be obtained.

次に、LPD、LFDだが、LPD/LD=LM/LAとするので、
LPD=LD×(LM/LA)
でLPDが求まる。LFDもLFD=LD−LPDで求まる。これによって、表示すべきレイアウト範囲が求まる。
Next, although LPD and LFD, since LPD / LD = LM / LA,
LPD = LD × (LM / LA)
The LPD can be obtained with LFD is also obtained by LFD = LD-LPD. Thereby, the layout range to be displayed is obtained.

レイアウト範囲が求まったら、スクロールバーの描画だが、SMは求まっているので、SPD、SFD、SDが求まれば良い。SDは既に説明した本発明の手法により、SMとLPD、LFDが決まればスクロールボックスの割合が求まるのだから、SDは求まる。SPDとSFDについては、SPD/SD=LPD/LDとすればよいので、
SPD=SD×(LPD/LD)でSPDが求まる。SFD=SD−SPDより、SFDも求まる。これによって、スクロールバーを表示させるだけの情報、SM,SPD,SFDが得られる。
When the layout range is obtained, scroll bar drawing is performed, but since SM is obtained, SPD, SFD, and SD may be obtained. SD can be obtained because the ratio of the scroll box can be obtained if SM, LPD, and LFD are determined by the method of the present invention described above. For SPD and SFD, SPD / SD = LPD / LD may be used.
SPD is obtained by SPD = SD × (LPD / LD). SFD is also obtained from SFD = SD-SPD. As a result, information, SM, SPD, SFD sufficient to display the scroll bar can be obtained.

なお、これらの計算結果でスクロールバーを再表示させた際、SDやSTはスクロールバーで操作を行った時とは若干変化するかもしれないが、大幅な変化ではないので、違和感は少ない。   It should be noted that when the scroll bar is redisplayed with these calculation results, SD and ST may slightly change from those when the operation is performed with the scroll bar, but there is little discomfort because it is not a significant change.

以上の処理によって、スクロールバー端でも表示やスクロールバーが不連続に変化することを防ぎつつ、スクロールバーによる指定に応じたレイアウト範囲を表示し、またそのレイアウト範囲に応じたスクロールバーを表示することができるようになる。   With the above processing, the layout range corresponding to the designation by the scroll bar is displayed and the scroll bar corresponding to the layout range is displayed while preventing the display and the scroll bar from changing discontinuously at the end of the scroll bar. Will be able to.

また、スクロールボックスの位置を表す割合に応じて基準位置を変化させることで、表示範囲を連続的に変更することができ、ひいてはスクロールバーによる指定を連続的に行えるようにすることができる効果が出てくる。   In addition, by changing the reference position in accordance with the ratio representing the position of the scroll box, the display range can be changed continuously, so that the designation by the scroll bar can be performed continuously. Come out.

ちなみに、この手法で表示させた場合、図25のように、基準点の高さ方向はほぼ一致するはずである。   By the way, when displayed by this method, the height direction of the reference points should almost coincide as shown in FIG.

ところで、これまで説明してきた手法では、表示範囲のデータサイズをレイアウトやユーザー指定などから求めているが、精度が粗くてよいなら、表示範囲を含む分割文書を単位としてしまう方法も考えられる。すなわち、図14のS50で指定範囲のデータサイズを取得する際、指定範囲を含む分割文書のデータサイズの和を表示範囲のデータサイズとしてしまうということである。これによって表示範囲のデータサイズを得る処理が省けるので、処理が簡単になるという効果がある。   By the way, in the methods described so far, the data size of the display range is obtained from layout, user designation, etc. However, if the accuracy may be rough, a method of using divided documents including the display range as a unit may be considered. That is, when the data size of the designated range is acquired in S50 of FIG. 14, the sum of the data sizes of the divided documents including the designated range is used as the data size of the display range. As a result, the process of obtaining the data size of the display range can be omitted, and the process can be simplified.

同様に、指定範囲の位置に関しても、精度が粗くてよいなら、分割文書の単位で計算してしまう方法が考えられる。どの分割文書を指しているかだけを求め、その分割文書の頭や真中などから表示するとしてしまえばよい。これによって処理が簡単になるという効果がある。   Similarly, regarding the position of the designated range, if the accuracy may be coarse, a method of calculating in units of divided documents can be considered. It is only necessary to obtain only which divided document is indicated and to display from the head or middle of the divided document. This has the effect of simplifying the processing.

また、データサイズとして、分割文書のデータサイズを使った例で説明したが、例えば分割文書がほぼ同じようなデータサイズやレイアウトサイズで分割されているなら、データサイズとして指定範囲を含む分割文書の個数を使ってもその割合はほぼ推定できる。各分割文書のデータサイズの取得や和を求める処理も、数が多くなるとそれなりの処理時間となってしまうが、分割文書数だけで概算できるのならば、これらの処理をさらに省くことができる効果がある。   In addition, although the example using the data size of the divided document as the data size has been described, for example, if the divided document is divided with substantially the same data size or layout size, the data size of the divided document including the specified range as the data size is described. Even if the number is used, the ratio can be almost estimated. The process of obtaining the data size and calculating the sum of each divided document also takes a certain amount of processing time if the number is large, but if it can be estimated only by the number of divided documents, these processes can be further omitted. There is.

上記の分割文書を単位とする手法では、分割の仕方を細かくする程、精度を上げることができる。   In the above-described method using divided documents as a unit, the accuracy can be improved as the division method is made finer.

以上のように、分割データサイズ取得手段1が、文書を複数の部分に分割した分割文書のデータサイズを取得し、指定範囲取得手段5がユーザーによって指定された範囲を得ると、指定範囲レイアウト取得手段6が、その指定範囲を含む分割文書を特定し、指定範囲データサイズ取得手段2が、特定された分割文書のデータサイズを元にして指定範囲のデータサイズを求める。これにより、割合取得手段3は、分割文書の各データサイズの和と上記指定範囲のデータサイズとから、指定範囲のスクロールボックスの位置と割合を算出することができる。   As described above, when the divided data size obtaining unit 1 obtains the data size of the divided document obtained by dividing the document into a plurality of parts, and the designated range obtaining unit 5 obtains the range designated by the user, the designated range layout is obtained. The means 6 specifies a divided document including the specified range, and the specified range data size acquisition means 2 obtains the data size of the specified range based on the data size of the specified divided document. Thereby, the ratio acquisition unit 3 can calculate the position and ratio of the scroll box in the specified range from the sum of the data sizes of the divided documents and the data size of the specified range.

この結果、本発明によれば、文字や表示ウィンドウのサイズ設定などによって、レイアウトが変わる表示システムでも、少ない処理時間およびリソースで、高速かつ精度の良いスクロールバーの表示制御を実現することができる。   As a result, according to the present invention, it is possible to realize high-speed and high-precision scroll bar display control with less processing time and resources even in a display system whose layout changes depending on the size setting of characters and display windows.

なお、特許文献1(特開平5−282255号公報)では、複数のページからなる項目が複数ある時、各項目の区切りをスクロールバー上に表示し、また、表示をページ単位で行い、表示されているページ範囲をスクロールボックスとして表示させている。   In Patent Document 1 (Japanese Patent Application Laid-Open No. 5-282255), when there are a plurality of items consisting of a plurality of pages, the division of each item is displayed on a scroll bar, and the display is performed in units of pages. The displayed page range is displayed as a scroll box.

一見、各項目や各ページが本発明の分割文書に相当するように見えるが、全く異なる発明である。   At first glance, each item and each page seems to correspond to the divided document of the present invention, but it is a completely different invention.

そもそも発明の課題が異なる。該公報の課題は「ユーザーの望む個所を簡単かつ確実に表示でき、また、手帳情報が複数の項目を有する場合に、各項目の占める分量を把握できる」ことである。本発明の課題は、可変レイアウトの文書において、高速かつできるだけ正確にスクロールバーの表示や制御を処理すること、少ないメモリ環境などにおいても無駄なく処理を行うことである。   In the first place, the problems of the invention are different. The problem with this publication is that “the location desired by the user can be displayed easily and reliably, and when the notebook information has a plurality of items, the amount of each item can be grasped”. An object of the present invention is to process scroll bar display and control as fast and as accurately as possible in a variable layout document, and to perform processing without waste even in a small memory environment.

課題が異なる為、課題を解決する為の手段も異なり、該公報では、ユーザーに分かり易いようにスクロールバーを表示、制御する為に各項目のページ数の情報などを使っている。つまり、ページ数の情報の表示の仕方などに発明のポイントがあるのであり、ページ数の情報の求め方自体には発明のポイントはない。   Since the problems are different, the means for solving the problems are also different. In this publication, information on the number of pages of each item is used to display and control the scroll bar so that the user can easily understand. In other words, there is a point of the invention in the way of displaying the information on the number of pages, and there is no point of the invention in the method for obtaining the information on the number of pages.

従って、ページ数の情報を可変レイアウトで高速に少ないメモリで算出する方法は請求項では述べられておらず、実施例などでも説明されていない。予め用意されているものとして説明されている。   Therefore, a method for calculating the information on the number of pages with a variable layout at a high speed with a small amount of memory is not described in the claims, and is not described in the embodiments. It is described as being prepared in advance.

本発明は、分割文書や指定範囲の「データサイズ」からスクロールボックス位置、サイズを求めるステップ/手段(割合取得ステップ)などを用いることで、可変レイアウトであっても高速に少ないメモリでスクロールバーを表示/制御することができることを示している。つまり、可変レイアウトでスクロールバーの表示/制御を行う為の計算を高速、省メモリで行うことに発明のポイントがあるのであり、計算で得られた後の表示の仕方などに発明のポイントがあるのではない。   The present invention uses a step / means (ratio acquisition step) for obtaining the position and size of a scroll box from a divided document or a “data size” of a specified range, so that a scroll bar can be formed with a small amount of memory at high speed even in a variable layout. It shows that it can be displayed / controlled. In other words, the point of the invention is that the calculation for performing the display / control of the scroll bar with the variable layout is performed at high speed and in the memory saving, and the point of the invention is in the display method after the calculation is obtained. Not.

従って、可変レイアウトであっても高速に少ないメモリでスクロールバーを表示/制御する方法として、分割文書や指定範囲のデータサイズを利用する方法が請求項で述べられている。   Therefore, as a method for displaying / controlling the scroll bar with a small memory at high speed even in a variable layout, a method using a divided document or a data size of a specified range is described in the claims.

このように両者は、異なる課題を持ち異なる手段を用いた異なる発明である。   Thus, both are different inventions having different problems and using different means.

また、特許文献2(特開平8−314906号公報)では、文書量に応じたページ区切り幅を計算し、その区切り幅でページ番号を付与したスクロールバーを表示/制御している。ページ区切り幅は、レイアウトサイズから計算している。   In Patent Document 2 (Japanese Patent Laid-Open No. 8-314906), a page break width corresponding to the document amount is calculated, and a scroll bar to which a page number is assigned is displayed / controlled by the page break width. The page break width is calculated from the layout size.

これも一見、「文書量に応じたページ区切り幅」が本発明の分割文書のデータサイズから求めるスクロールボックスサイズに相当するように見えるが、全く異なる発明である。   At first glance, this seems to be equivalent to the scroll box size obtained from the data size of the divided document according to the present invention, but this is a completely different invention.

これもそもそも発明の課題が異なる。該公報の課題は「内部の文書量が異なる各ページが均等の幅でスクロールバー上に表示されるために、各ページのおおよその文書量を把握できない」ことである。本発明の課題は、上で説明した通り、可変レイアウトの文書において、高速かつできるだけ正確にスクロールバーの表示や制御を処理すること、少ないメモリ環境などにおいても無駄なく処理を行うことである。   In the first place, the problems of the invention are different. The problem of this publication is that “the pages with different document volumes are displayed on the scroll bar with equal width, so that the approximate document volume of each page cannot be grasped”. As described above, an object of the present invention is to process scroll bar display and control at high speed and as accurately as possible in a variable layout document, and to perform processing without waste even in a small memory environment.

課題が異なる為、課題を解決する為の手段も異なり、該公報では、各ページの文書量がユーザーに分かるようにスクロールバーを表示、制御する為に各ページの文書量を使っている。つまり、各ページの文書量の表示の仕方などに発明のポイントがあるのであり、各ページの文書量の取得の仕方自体には発明のポイントはない。   Since the problem is different, the means for solving the problem is also different. In this publication, the document amount of each page is used to display and control the scroll bar so that the user can know the document amount of each page. That is, there is an invention point in how to display the document amount of each page, and there is no invention point in the way of acquiring the document amount of each page.

各ページの文書量はレイアウトサイズを使うことが請求項で述べられているが、そのレイアウトサイズを高速、省メモリで求める方法は述べられていない。全てのレイアウトサイズを求めると説明されているのみである。   Although it is stated in the claims that the document size of each page uses the layout size, there is no description of a method for obtaining the layout size with high speed and memory saving. It is only described that all layout sizes are obtained.

本発明は、上で説明した様に、可変レイアウトであっても高速に少ないメモリでスクロールバーを表示/制御する方法として、分割文書や指定範囲のデータサイズを利用する方法が請求項で述べられている。   In the present invention, as described above, as a method for displaying / controlling a scroll bar with a small amount of memory at high speed even in a variable layout, a method using a divided document or a data size of a specified range is described in the claims. ing.

このように両者は、異なる課題を持ち、異なる手段を用いた異なる発明である。   Thus, both have different problems and are different inventions using different means.

なお、本発明の目的は、前述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体(主記憶25または外部記憶26等)を、システムあるいは装置に供給し、そのシステムあるいは装置のコンピュータ(またはCPUやMPU)が記憶媒体に格納されたプログラムコードを読み出し実行することによっても、達成されることは言うまでもない。   An object of the present invention is to supply a storage medium (such as the main storage 25 or the external storage 26) on which a program code of software for realizing the functions of the above-described embodiments is recorded to the system or apparatus, and to Needless to say, this can also be achieved by a computer (or CPU or MPU) reading and executing the program code stored in the storage medium.

この場合、記憶媒体から読み出されたプログラムコード自体が前述した実施形態の機能を実現することになり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。   In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiments, and the storage medium storing the program code constitutes the present invention.

プログラムコードを供給するための記憶媒体としては、例えば、フロッピディスク,ハードディスク,光ディスク,光磁気ディスク,磁気テープ,不揮発性のメモリカード,等を用いることができる。   As a storage medium for supplying the program code, for example, a floppy disk, a hard disk, an optical disk, a magneto-optical disk, a magnetic tape, a nonvolatile memory card, or the like can be used.

また、上記プログラムコードは、通信ネットワークのような伝送媒体を介して、他のコンピュータシステムから主記憶25または外部記憶26等へダウンロードされるものであってもよい。   The program code may be downloaded from another computer system to the main memory 25 or the external memory 26 via a transmission medium such as a communication network.

また、コンピュータが読み出したプログラムコードを実行することにより、前述した実施形態の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼働しているOS(オペレーティングシステム)などが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。   Further, by executing the program code read by the computer, not only the functions of the above-described embodiments are realized, but also an OS (operating system) operating on the computer based on the instruction of the program code. It goes without saying that a case where the function of the above-described embodiment is realized by performing part or all of the actual processing and the processing is included.

さらに、記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書込まれた後、そのプログラムコードの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。   Further, after the program code read from the storage medium is written in a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, the function is determined based on the instruction of the program code. It goes without saying that the CPU of the expansion board or function expansion unit performs part or all of the actual processing, and the functions of the above-described embodiments are realized by the processing.

本発明を上記記憶媒体に適用する場合、その記憶媒体には、先に説明したフローチャートに対応するプログラムコードを格納することになる。   When the present invention is applied to the storage medium, the storage medium stores program codes corresponding to the flowcharts described above.

本発明は上述した各実施形態に限らず、請求項に示した範囲で種々の変更が可能である。   The present invention is not limited to the above-described embodiments, and various modifications are possible within the scope of the claims.

なお、本発明の表示制御方法は、文書を複数の部分に分割した分割文書の各データサイズを得る分割データサイズ取得ステップと、上記文書に対して指定した指定範囲を含む分割文書を特定すると共に、特定した分割文書の少なくとも一部を、そのときの設定に従ってレイアウトすることにより、指定範囲のデータサイズを求める指定範囲データサイズ取得ステップと、分割データサイズ取得ステップから得た分割文書の各データサイズの和と、指定範囲データサイズ取得ステップから得た前記指定範囲のデータサイズとから、文書中に前記指定範囲が占める割合を求める割合取得ステップと、を有しても良い。   The display control method of the present invention specifies a divided data size acquisition step for obtaining each data size of a divided document obtained by dividing the document into a plurality of parts, and specifies a divided document including a designated range specified for the document. The specified range data size acquisition step for obtaining the data size of the specified range by laying out at least a part of the specified divided document according to the setting at that time, and each data size of the divided document obtained from the divided data size acquisition step And a ratio acquisition step of obtaining a ratio of the specified range in the document from the sum of the data and the data size of the specified range obtained from the specified range data size acquisition step.

上記の構成において、「レイアウト」とは、表示要素が2次元または3次元の空間座標上に、位置とサイズ、外形の属性をもって配置されること、あるいは配置されたもののことを言う。位置やサイズは、通常は何らかの単位を使った値として表現される。例えば、画素の集まりからなるディスプレイに表示する場合は、(画素)ドットの単位で表現される。   In the above configuration, “layout” means that display elements are arranged with the attributes of position, size, and outer shape on two-dimensional or three-dimensional spatial coordinates, or are arranged. The position and size are usually expressed as values using some unit. For example, when displaying on a display composed of a collection of pixels, it is expressed in units of (pixel) dots.

上記の構成によれば、特定した分割文書の少なくとも一部を、可変レイアウトのその時の設定に従ってレイアウトし、表示される部分のデータサイズを求めるので、文書全体をレイアウトする必要が無く、処理が簡便であり、処理に必要なリソースが少なくて済む上に、精度を向上させることができる。   According to the above configuration, at least a part of the specified divided document is laid out according to the setting of the variable layout at that time, and the data size of the displayed part is obtained. In addition, fewer resources are required for processing, and the accuracy can be improved.

なお、特定した分割文書の少なくとも一部をレイアウトする理由は、指定範囲に完全に含まれる分割文書については、そのデータサイズをそのまま割合算出に使えばよいのでレイアウトする必要が無いためである。すなわち、指定範囲から一部がはみ出す分割文書についてのみ、その時の設定に従ってレイアウトすれば、指定範囲のデータサイズを求めることができる。   The reason for laying out at least a part of the specified divided document is that it is not necessary to lay out the divided document that is completely included in the specified range because the data size can be used as it is for the ratio calculation. That is, the data size of the specified range can be obtained by laying out only the divided documents partially protruding from the specified range according to the settings at that time.

また、本発明の表示制御装置は、文書を複数の部分に分割した分割文書の各データサイズを得る分割データサイズ取得手段と、上記文書に対して指定された位置を基準とする指定範囲を含む分割文書を特定すると共に、特定した分割文書を元にして指定範囲のデータサイズを求める指定範囲データサイズ取得手段と、分割データサイズ取得手段から得た分割文書の各データサイズの和と、指定範囲データサイズ取得手段から得た前記指定範囲のデータサイズとから、文書中に前記指定範囲が占める割合を求める割合取得手段と、を有しても良い。   Further, the display control apparatus of the present invention includes a divided data size acquisition unit that obtains each data size of a divided document obtained by dividing the document into a plurality of parts, and a specified range based on a position specified for the document. A specified range data size acquisition unit that specifies a divided document and obtains a data size of the specified range based on the specified divided document, a sum of each data size of the divided document obtained from the divided data size acquisition unit, and a specified range You may have a ratio acquisition means which calculates | requires the ratio which the said specified range occupies in a document from the data size of the said specified range obtained from the data size acquisition means.

これによる作用、効果は上で説明した方法と同様であるが、作用の説明を補足しておく。   The operation and effect by this are the same as the method described above, but the explanation of the operation will be supplemented.

分割データサイズ取得手段は、分割文書の各データサイズを、レイアウト設定とは無関係に得ることができる。例えば、文書をどう分割するかを文書データの作成時に予め決め、どう分割したかの情報をデータとして、文書を配信するサーバのメモリ上、または文書データを記録した記録メディアに別ファイルとして記録しておく。あるいは、文書データの一部としてヘッダ情報などの形で含めておき、文書データを記録媒体または伝送媒体を介して読み込んだときに、分割文書の各データサイズ情報を、主記憶または外部記憶などに格納しておいてもよい。   The divided data size acquisition means can obtain each data size of the divided document regardless of the layout setting. For example, how to divide a document is determined in advance when creating document data, and information on how the document is divided is recorded as data on a server memory that distributes the document or as a separate file on the recording medium that records the document data. Keep it. Alternatively, it is included as part of the document data in the form of header information, etc., and when the document data is read via a recording medium or transmission medium, each piece of data size information of the divided document is stored in main memory or external storage. It may be stored.

これにより、分割データサイズ取得手段は、分割文書の各データサイズを入手する必要が生じた時に、上記メモリ、記録メディア、主記憶または外部記憶などにアクセスして、データサイズを入手することができる。   As a result, the divided data size acquisition unit can obtain the data size by accessing the memory, the recording medium, the main memory, or the external storage when it becomes necessary to obtain each data size of the divided document. .

また、文書における指定範囲は、通常、文書に対して例えばユーザが指定した位置と、表示媒体について設定される表示範囲の大きさとによって決まるので、指定範囲データサイズ取得手段は、指定された位置を基準とすることによって、指定範囲を含む分割文書を特定することができ、さらに、指定範囲のデータサイズを、特定した分割文書を元に、既に説明した方法によって求めることができる。   In addition, the designated range in the document is usually determined by, for example, the position designated by the user with respect to the document and the size of the display range set for the display medium. Therefore, the designated range data size acquisition unit determines the designated position. By using the reference, the divided document including the specified range can be specified, and the data size of the specified range can be obtained by the method already described based on the specified divided document.

最後に、割合取得手段は、分割データサイズ取得手段から得た分割文書の各データサイズを合算することによって、指定範囲データサイズ取得手段から得た前記指定範囲のデータサイズの割合を算出することができる。   Finally, the ratio acquisition unit may calculate the ratio of the data size of the specified range obtained from the specified range data size acquisition unit by adding the data sizes of the divided documents obtained from the divided data size acquisition unit. it can.

また、本発明に係る表示制御方法は、文書を複数の部分に分割した分割文書の各データサイズを得る分割データサイズ取得ステップと、上記文書に対して指定した位置を基準とする指定範囲を含む分割文書を特定すると共に、特定した分割文書を元にして指定範囲のデータサイズを求める指定範囲データサイズ取得ステップと、分割データサイズ取得ステップから得た分割文書の各データサイズの和と、指定範囲データサイズ取得ステップから得た前記指定範囲のデータサイズとから、文書中に前記指定範囲が占める割合を求める割合取得ステップと、を有しても良い。   Further, the display control method according to the present invention includes a divided data size acquisition step for obtaining each data size of a divided document obtained by dividing the document into a plurality of parts, and a designated range based on a position designated for the document. A specified range data size acquisition step for identifying a divided document and obtaining a data size of the specified range based on the specified divided document, a sum of each data size of the divided document obtained from the divided data size acquisition step, and a specified range A ratio acquisition step of obtaining a ratio of the specified range in the document from the data size of the specified range obtained from the data size acquisition step.

データサイズは固定レイアウトでも可変レイアウトでも一定であり、レイアウト処理を行うことなくすぐに得ることができる。表示のためなどに一部のレイアウトが必要だったとしても、全てのレイアウトを得る必要はないので、その分、処理量や処理に必要なリソースが少なくて済む。   The data size is constant for both fixed and variable layouts, and can be obtained immediately without performing layout processing. Even if a part of the layout is necessary for display or the like, it is not necessary to obtain the entire layout, and accordingly, the processing amount and the resources necessary for the processing can be reduced.

これによって、可変レイアウトの集まりからなる文書であっても、高速に指定範囲の割合を得ることができる効果が出てくる。また割合を計算する為にレイアウトをまったく保持する必要が無い、あるいは一部しか保持する必要がないので、少ない処理リソース(CPU処理能力やメモリ環境など)でも処理できる効果が出てくる。   As a result, even for a document consisting of a collection of variable layouts, the ratio of the specified range can be obtained at high speed. In addition, since it is not necessary to hold the layout at all or only a part of the layout to calculate the ratio, an effect that processing can be performed with a small processing resource (CPU processing capacity, memory environment, etc.) is obtained.

また、本発明に係る表示制御方法は、以上のように、文書を複数の部分に分割した分割文書の各データサイズを得る分割データサイズ取得ステップと、上記文書に対して指定した位置を基準とする指定範囲を含む分割文書を特定すると共に、特定した分割文書の少なくとも一部を、そのときの設定に従ってレイアウトすることにより、指定範囲のデータサイズを求める指定範囲データサイズ取得ステップと、分割データサイズ取得ステップから得た分割文書の各データサイズの和と、指定範囲データサイズ取得ステップから得た前記指定範囲のデータサイズとから、文書中に前記指定範囲が占める割合を求める割合取得ステップと、を有しても良い。   In addition, as described above, the display control method according to the present invention includes a divided data size acquisition step for obtaining each data size of a divided document obtained by dividing the document into a plurality of parts, and a position specified for the document as a reference. A specified range data size acquisition step for determining a data size of the specified range by laying out at least a part of the specified divided document according to the setting at that time, A ratio acquisition step for obtaining a ratio of the designated range in the document from the sum of the data sizes of the divided documents obtained from the obtaining step and the data size of the designated range obtained from the designated range data size obtaining step. You may have.

これにより、特定した分割文書の少なくとも一部を、可変レイアウトのその時の設定に従ってレイアウトし、表示される部分のデータサイズを求めるので、文書全体をレイアウトする必要が無く、処理が簡便であり、処理に必要なリソースが少なくて済む上に、精度を向上させることができるという効果を奏する。   As a result, at least a part of the specified divided document is laid out according to the setting of the variable layout at that time, and the data size of the displayed part is obtained, so there is no need to lay out the entire document, the processing is simple, It is possible to reduce the amount of resources required for the process and to improve the accuracy.

また、本発明に係る表示制御方法は、以上のように、前記指定範囲を表示範囲とし、割合取得ステップから得られた割合に応じたスクロールバーを表示し、また、ユーザーのスクロールバー操作に応じて表示範囲の表示内容を制御するスクロールバー表示制御ステップを有しても良い。   In addition, as described above, the display control method according to the present invention uses the specified range as a display range, displays a scroll bar corresponding to the ratio obtained from the ratio acquisition step, and responds to the user's scroll bar operation. A scroll bar display control step for controlling the display content of the display range may be provided.

これによって、可変レイアウトの表示システムでも、スクロールバーを使った表示や制御が高速に行えるという効果が出てくる。   As a result, even with a variable layout display system, the display and control using the scroll bar can be performed at high speed.

また、本発明に係る表示制御方法は、以上のように、前記分割文書および前記指定範囲のデータサイズとして、バイト数やビット数などの符号化データサイズを使うことを特徴とする。   Further, as described above, the display control method according to the present invention uses an encoded data size such as the number of bytes or the number of bits as the data size of the divided document and the specified range.

これにより、文書データなどをコンピュータ上で扱う場合、データサイズを得やすく、また扱い易くなるという効果が出てくる。ひいては割合を求めるなどの処理も簡単になるという効果を奏する。   As a result, when document data or the like is handled on a computer, the data size can be easily obtained and handled. As a result, there is an effect that processing such as obtaining a ratio is also simplified.

また、本発明に係る表示制御方法は、以上のように、前記分割文書のデータサイズとして分割文書の意味単位に基づく数を使っても良い。   Further, as described above, the display control method according to the present invention may use a number based on the semantic unit of the divided document as the data size of the divided document.

これにより、意味単位に基づく数をデータサイズとして使うことで、文書データ中にはレイアウトサイズにあまり関係ないようなデータの影響を少なくすることができる効果が出てくる。   As a result, by using the number based on the semantic unit as the data size, there is an effect that the influence of the data not so much related to the layout size can be reduced in the document data.

また、これらの意味単位に基づく数は、レイアウト処理によって変わるものではないので、事前に数えておくことが可能であり、レイアウト処理などを最小限に抑えた処理を可能にするという効果を変わりなく得ることができる。   In addition, the number based on these semantic units is not changed by layout processing, so it can be counted in advance, and the effect of enabling processing with minimal layout processing is unchanged. Obtainable.

また、本発明に係る表示制御方法は、以上のように、意味単位に基づく数として文字数あるいは単語数を使っても良い。   In addition, as described above, the display control method according to the present invention may use the number of characters or the number of words as the number based on the semantic unit.

これにより、意味単位の中でも、単語数を用いれば、表示割合の算出精度を相対的に高めることができ、特に文字数を用いれば、算出精度を更に上げることができるという効果を奏する。   As a result, if the number of words is used in the semantic unit, the calculation accuracy of the display ratio can be relatively increased. In particular, if the number of characters is used, the calculation accuracy can be further increased.

また、本発明に係る表示制御方法は、以上のように、前記分割文書または前記指定範囲のデータサイズを得る際、実際の表示サイズがデータサイズと相関しない表示要素が文書中に含まれている場合、当該表示要素の表示サイズをデータサイズに換算した値を使っても良い。   In the display control method according to the present invention, as described above, when obtaining the data size of the divided document or the specified range, the document includes a display element whose actual display size does not correlate with the data size. In this case, a value obtained by converting the display size of the display element into a data size may be used.

これにより、文字や画像の大きさは実際にはレイアウトしないと完全に決定しないこともあるが、基準文字サイズを仮決めするなど、何らかの仮定をおいてレイアウトを行っても、ある程度の傾向は出てくる。そこで、実際の表示サイズがデータサイズと相関しない表示要素大きさを、何らかの仮定の元に推定し、それをデータサイズに換算することで、データサイズだけで推定するよりも推定精度が増す可能性が大きくなるという効果が出てくる。   As a result, the size of characters and images may not be completely determined unless they are actually laid out. However, even if layout is performed with some assumptions, such as tentatively determining the reference character size, there will be some tendency. Come. Therefore, by estimating the display element size where the actual display size does not correlate with the data size based on some assumptions and converting it to the data size, there is a possibility that the estimation accuracy will be higher than when estimating only by the data size The effect will be larger.

また、本発明に係る表示制御方法は、以上のように、前記スクロールバー表示制御ステップにおいて、表示範囲を指定するためにスクロールバー内に表示されるスクロールボックスの中央位置が、表示範囲の中央位置の表示割合を示すようにしても良い。   In the display control method according to the present invention, as described above, in the scroll bar display control step, the center position of the scroll box displayed in the scroll bar for designating the display range is the center position of the display range. May be displayed.

これにより、指定範囲の割合をデータサイズを元にして推測する場合の誤差を、スクロールボックスの両端に分散させ、長さの変化に対する視覚的な違和感を軽減することができるという効果を奏する。   As a result, an error in estimating the ratio of the designated range based on the data size can be distributed to both ends of the scroll box, and the visual discomfort with respect to the change in length can be reduced.

また、ユーザーにとって、スクロールバーを操作する際に、視覚上、直感的に表示割合や表示部分の位置を捉えやすくなるという効果も併せて奏する。   In addition, when the user operates the scroll bar, the user can also intuitively grasp the display ratio and the position of the display portion visually.

また、本発明に係る表示制御方法は、以上のように、前記スクロールバー表示制御ステップにおいて、表示範囲を指定するためにスクロールバー内に表示されるスクロールボックスが、スクロールバーの始端もしくは終端を含む範囲を指定している場合には、文書の最初から、もしくは最後まで表示するようにしても良い。   In the display control method according to the present invention, as described above, in the scroll bar display control step, the scroll box displayed in the scroll bar for designating the display range includes the start or end of the scroll bar. If a range is specified, the document may be displayed from the beginning to the end.

これにより、スクロールボックスが、スクロールバーの始端もしくは終端を含む範囲として指定している場合には、文書の最初から、もしくは最後までを含むような指定範囲が指定されたとして解釈して、表示を行うことで、推定誤差による不具合を回避し、またユーザーの意図に沿った処理を行うことができるという効果が出てくる。   As a result, if the scroll box specifies a range that includes the start or end of the scroll bar, it is interpreted as a specified range that includes the beginning or end of the document, and the display is displayed. By doing so, it is possible to avoid problems due to estimation errors and to perform processing according to the user's intention.

また、本発明に係る表示制御方法は、以上のように、前記スクロールバー表示制御ステップにおいて、表示範囲を指定するためにスクロールバー内に表示されるスクロールボックスのスクロールバー内の位置に応じて、表示範囲が文書中に占める位置と割合とを表す基準となるスクロールボックス上の基準位置を変更すると共に、その基準位置に対応付けた表示範囲上の基準位置を合わせて変更しても良い。   Further, the display control method according to the present invention, as described above, in the scroll bar display control step, according to the position in the scroll bar of the scroll box displayed in the scroll bar for designating the display range, The reference position on the scroll box serving as a reference indicating the position and ratio of the display range in the document may be changed, and the reference position on the display range associated with the reference position may be changed.

これによって、スクロールバー末端付近のスクロールボックスのわずかな位置の違いで表示が大きくずれてしまうことを防ぐ効果が出てくる。   As a result, an effect of preventing the display from being largely shifted due to a slight difference in the position of the scroll box near the end of the scroll bar can be obtained.

また、本発明に係る表示制御装置は、以上のように、文書を複数の部分に分割した分割文書の各データサイズを得る分割データサイズ取得手段と、上記文書に対して指定された位置を基準とする指定範囲を含む分割文書を特定すると共に、特定した分割文書を元にして指定範囲のデータサイズを求める指定範囲データサイズ取得手段と、分割データサイズ取得手段から得た分割文書の各データサイズの和と、指定範囲データサイズ取得手段から得た前記指定範囲のデータサイズとから、文書中に前記指定範囲が占める割合を求める割合取得手段と、を有しても良い。   In addition, as described above, the display control apparatus according to the present invention provides a divided data size acquisition unit that obtains each data size of a divided document obtained by dividing a document into a plurality of parts, and a position specified for the document as a reference. A specified range data size acquisition means for determining a data size of the specified range based on the specified divided document, and each data size of the divided document obtained from the divided data size acquisition means And a ratio acquisition means for obtaining a ratio of the specified range in the document from the sum of the above and the data size of the specified range obtained from the specified range data size acquisition means.

これによる効果は上で説明した方法と同様である。   The effect of this is similar to the method described above.

また、本発明に係る表示制御プログラムは、上記の課題を解決する為に、上記スクロールバー表示制御方法が備える各ステップをコンピュータに実行させても良い。   The display control program according to the present invention may cause a computer to execute each step included in the scroll bar display control method in order to solve the above-described problem.

これにより、汎用のコンピュータに、本発明の表示制御方法を実行させ、上記の効果を得ることができる。   As a result, it is possible to cause a general-purpose computer to execute the display control method of the present invention and obtain the above-described effects.

また、本発明に係る記録媒体は、上記の課題を解決する為に、上記表示制御プログラムを記録しても良い。   In addition, the recording medium according to the present invention may record the display control program in order to solve the above problems.

これにより、上記記録媒体から汎用のコンピュータに、表示制御プログラムをインストールすることによって、本発明の表示制御方法を実行させ、上記の効果を得ることができる。   Thus, by installing the display control program from the recording medium to a general-purpose computer, the display control method of the present invention can be executed, and the above effects can be obtained.

本発明のスクロールバー表示制御方法において、分割文書のデータサイズを求める手法の違いによる指定範囲の解釈の違いを示す説明図である。In the scroll bar display control method of this invention, it is explanatory drawing which shows the difference in the interpretation of the designated range by the difference in the method of calculating | requiring the data size of a division | segmentation document. 図1の文書レイアウトを構成する分割文書データを示す説明図である。It is explanatory drawing which shows the division | segmentation document data which comprises the document layout of FIG. 本発明のスクロールバー表示制御方法のスクロールバーの表示、制御処理の手順を概要的に示すフローチャート図である。It is a flowchart figure which shows schematically the procedure of the scroll bar display of the scroll bar display control method of this invention, and a control process. 図1の文書全体の中の表示範囲111の表示要素をスクロールバーと共に表示した例を示す説明図である。It is explanatory drawing which shows the example which displayed the display element of the display range 111 in the whole document of FIG. 1 with the scroll bar. 図3の指定範囲レイアウト取得処理の手順を示すフローチャート図である。It is a flowchart figure which shows the procedure of the designated range layout acquisition process of FIG. 各分割文書のデータサイズの例を示す説明図である。It is explanatory drawing which shows the example of the data size of each division | segmentation document. 指定範囲と、指定範囲を含む分割文書のデータサイズとの関係を示す説明図である。It is explanatory drawing which shows the relationship between the designated range and the data size of the division | segmentation document containing a designated range. レイアウトされた表示要素データのデータ構造例を示す説明図である。It is explanatory drawing which shows the data structural example of the display element data laid out. 図5の周囲の分割文書レイアウト取得処理の手順を示すフローチャート図である。FIG. 6 is a flowchart showing a procedure of a divided document layout acquisition process around FIG. 5. レイアウトの不足を判断をする際に使うデータ構造例を示す説明図である。It is explanatory drawing which shows the example of a data structure used when judging the lack of layout. 図5の指定範囲のレイアウトを取得する処理の手順を示すフローチャート図である。FIG. 6 is a flowchart showing a processing procedure for acquiring a layout of a designated range in FIG. 5. 図9の上側レイアウト取得処理の手順を示すフローチャート図である。It is a flowchart figure which shows the procedure of the upper side layout acquisition process of FIG. 図11の上限レイアウト表示要素を取得する処理の手順を示すフローチャート図である。It is a flowchart figure which shows the procedure of the process which acquires the upper limit layout display element of FIG. 図3の全文書内割合を計算する処理の一手順を示すフローチャート図である。FIG. 4 is a flowchart showing a procedure of processing for calculating a ratio in all documents in FIG. 3. 分割文書のデータサイズを文字数で得た例を示す説明図である。It is explanatory drawing which shows the example which obtained the data size of the divided document by the number of characters. 分割文書のデータサイズを文字数と画像を文字数に換算した値とで得た例を示す説明図である。It is explanatory drawing which shows the example which obtained the data size of the divided document by the number of characters, and the value which converted the image into the number of characters. 文書の中心付近で、レイアウト全体に占める表示範囲の位置と割合とを求める基準となる基準位置が、表示範囲とスクロールバーとで共に中央に設定されている状態を示す説明図である。FIG. 10 is an explanatory diagram showing a state in which a reference position that is a reference for obtaining a position and a ratio of a display range in the entire layout near the center of a document is set at the center in both the display range and the scroll bar. 文書の最初の部分をスクロールボックスで指定した際に、問題なく表示された例を示す説明図である。It is explanatory drawing which shows the example displayed without a problem, when the first part of a document is designated with the scroll box. 文書の最初の部分をスクロールボックスで指定した際に、上の部分が欠けて表示された例を示す説明図である。It is explanatory drawing which shows the example displayed when the upper part was missing when the first part of the document was designated with the scroll box. 図19の場合のレイアウト全体と表示範囲、スクロールバーの本来の表示状態を示す説明図である。It is explanatory drawing which shows the original layout of the whole layout in the case of FIG. 19, a display range, and a scroll bar. 文書の最初の部分をスクロールボックスで指定した際に、上の部分が空いて表示された例を示す説明図である。It is explanatory drawing which shows the example which displayed the upper part vacant when the first part of the document was designated with the scroll box. 図21の場合のレイアウト全体と表示範囲、スクロールバーの本来の表示状態を仮想的に示す説明図である。It is explanatory drawing which shows virtually the original layout of the whole layout in the case of FIG. 21, a display range, and a scroll bar. 文書の頭で、レイアウト全体に占める表示範囲の位置と割合とを求める基準となる基準位置が、表示範囲とスクロールバーとで共に始端に設定されている状態を示す説明図である。It is explanatory drawing which shows the state which the reference position used as the reference | standard which calculates | requires the position and ratio of the display range which occupies for the whole layout in the head of a document is set to the start end by both the display range and the scroll bar. 文書の頭で、レイアウト全体に占める表示範囲の位置と割合とを求める基準となる基準位置が、表示範囲とスクロールバーとで共に中央付近に設定されている状態を示す説明図である。FIG. 5 is an explanatory diagram showing a state where a reference position that is a reference for obtaining the position and ratio of the display range in the entire layout at the head of a document is set near the center in both the display range and the scroll bar. レイアウト全体に占める表示範囲の位置と割合とを求める基準となる基準位置を、表示範囲とスクロールバーとで共にスクロールボックスの位置に合わせて変化させる状態を示す説明図である。It is explanatory drawing which shows the state which changes the reference position used as the reference | standard which calculates | requires the position and ratio of the display range which occupies for the whole layout according to the position of a scroll box with a display range and a scroll bar. データサイズを主に利用した本発明のスクロールバー表示制御装置の機能的な構成を示すブロック図である。It is a block diagram which shows the functional structure of the scroll bar display control apparatus of this invention mainly using data size. 上記スクロールバー表示制御装置の一実施形態における構成例を示すブロック図である。It is a block diagram which shows the structural example in one Embodiment of the said scroll bar display control apparatus. 上記スクロールバー表示制御装置の外観例を示す模式的な斜視図である。It is a typical perspective view which shows the example of an external appearance of the said scroll bar display control apparatus.

符号の説明Explanation of symbols

1 分割データサイズ取得手段
2 指定範囲データサイズ取得手段
3 割合取得手段
25 主記憶(記録媒体)
26 外部記憶(記録媒体)
50 分割文書データ
51 分割文書データ
52 分割文書データ
53 分割文書データ
54 分割文書データ
55 分割文書データ
110 レイアウト全体
111 表示範囲
113 表示範囲
120 スクロールバー
121 スクロールボックス
1 divided data size acquisition means 2 specified range data size acquisition means 3 ratio acquisition means 25 main storage (recording medium)
26 External storage (recording medium)
50 divided document data 51 divided document data 52 divided document data 53 divided document data 54 divided document data 55 divided document data 110 entire layout 111 display range 113 display range 120 scroll bar 121 scroll box

Claims (13)

文書を、表示要素やレイアウト的にきりの良い所で複数の部分に分割した分割文書に対応するデータサイズの項の配列を含む、文書をどう分割したかを示す情報から、前記分割文書の各データサイズを得る分割データサイズ取得ステップと、
表示範囲を指定するためにスクロールバー内に表示されるスクロールボックスのスクロールバー内の位置に応じて、前記表示範囲が文書中に占める位置を表す基準となるスクロールボックス上の基準位置に対応する指定位置データ位置を含むように、上記文書に対して指定された指定範囲を含む分割文書を特定すると共に、特定した分割文書を元にして前記指定範囲のデータサイズを求める指定範囲データサイズ取得ステップと、
前記分割データサイズ取得ステップから得た分割文書の各データサイズの和と、前記指定範囲データサイズ取得ステップから得た前記指定範囲のデータサイズとから、文書中に前記指定範囲が占める割合を求める割合取得ステップと、
前記指定範囲を前記表示範囲とし、前記割合取得ステップから得られた割合に応じたスクロールバーを表示し、また、ユーザーのスクロールバー操作に応じて前記表示範囲の表示内容を制御するスクロールバー表示制御ステップとを有することを特徴とする表示制御方法。
From the information indicating how the document was divided, including an array of data size terms corresponding to the divided document divided into a plurality of parts in a place where the document is clearly displayed and in terms of layout, each of the divided documents A divided data size acquisition step for obtaining a data size; and
A designation corresponding to a reference position on the scroll box, which is a reference representing the position of the display range in the document, according to the position in the scroll bar of the scroll box displayed in the scroll bar for specifying the display range. A specified range data size acquisition step for specifying a divided document including a specified range specified for the document so as to include a position data position, and obtaining a data size of the specified range based on the specified divided document; ,
A ratio for obtaining a ratio of the designated range in the document from the sum of the data sizes of the divided documents obtained from the divided data size obtaining step and the data size of the designated range obtained from the designated range data size obtaining step. An acquisition step;
Scroll bar display control that uses the specified range as the display range, displays a scroll bar according to the ratio obtained from the ratio acquisition step, and controls the display content of the display range according to a user's scroll bar operation A display control method comprising: steps.
前記文書をどう分割したかを示す情報は、前記分割文書のデータサイズの、前記文書の全体のデータサイズに対する比であるデータサイズ比を含んでいることを特徴とする請求項1に記載の表示制御方法。 The display according to claim 1 , wherein the information indicating how the document is divided includes a data size ratio that is a ratio of a data size of the divided document to a total data size of the document. Control method. 前記文書をどう分割したかを示す情報は、前記データサイズ比を累積した累積データサイズ比を含んでいることを特徴とする請求項2に記載の表示制御方法。 The display control method according to claim 2 , wherein the information indicating how the document is divided includes a cumulative data size ratio obtained by accumulating the data size ratio . 前記指定位置データ位置を含む分割文書を特定すると共に、特定した分割文書を元にして前記指定範囲のレイアウトを取得する指定範囲レイアウト取得ステップを含み、
前記指定範囲レイアウト取得ステップで、前記指定範囲と比べて上下の部分のレイアウトが足りないかどうかを判断し、その判断結果に基づいて前記指定範囲のレイアウトを取得し、
前記スクロールバー表示制御ステップで、前記指定範囲レイアウト取得ステップにて取得した前記指定範囲のレイアウトを前記表示範囲として表示することを特徴とする請求項に記載の表示制御方法。
A specified range layout acquisition step of specifying a divided document including the specified position data position and acquiring a layout of the specified range based on the specified divided document;
In the specified range layout acquisition step, it is determined whether the layout of the upper and lower parts is insufficient compared to the specified range, and the layout of the specified range is acquired based on the determination result,
The display control method according to claim 1 , wherein in the scroll bar display control step, the layout of the specified range acquired in the specified range layout acquisition step is displayed as the display range .
前記スクロールバー表示制御ステップにおいて、前記表示範囲を指定するためにスクロールバー内に表示されるスクロールボックスが、スクロールバーの始端もしくは終端を含む範囲を指定している場合には、文書の最初から、もしくは最後まで表示することを特徴とする請求項1に記載の表示制御方法。 In the scroll bar display control step, when the scroll box displayed in the scroll bar for designating the display range designates a range including the start or end of the scroll bar, from the beginning of the document, The display control method according to claim 1, wherein the display is performed until the end . 前記分割文書および前記指定範囲のデータサイズとして、バイト数やビット数などの符号化データサイズを使うことを特徴とする請求項1に記載の表示制御方法。 The display control method according to claim 1, wherein an encoded data size such as the number of bytes or the number of bits is used as the data size of the divided document and the specified range . 前記分割文書のデータサイズとして分割文書の意味単位に基づく数を使うことを特徴とする請求項1に記載の表示制御方法。 The display control method according to claim 1, wherein a number based on a semantic unit of the divided document is used as a data size of the divided document . 前記意味単位に基づく数として文字数あるいは単語数を使うことを特徴とする請求項7に記載の表示制御方法。 The display control method according to claim 7, wherein the number of characters or the number of words is used as the number based on the semantic unit . 前記分割文書または前記指定範囲のデータサイズを得る際、実際の表示サイズがデータサイズと相関しない表示要素が文書中に含まれている場合、当該表示要素の表示サイズをデータサイズに換算した値を使うことを特徴とする請求項1に記載の表示制御方法。When obtaining the data size of the divided document or the specified range, if a display element whose actual display size does not correlate with the data size is included in the document, a value obtained by converting the display size of the display element to the data size is The display control method according to claim 1, wherein the display control method is used. 前記スクロールバー表示制御ステップにおいて、前記表示範囲を指定するためにスクロールバー内に表示されるスクロールボックスの中央位置が、前記表示範囲の中央位置の表示割合を示すようにすることを特徴とする請求項1に記載の表示制御方法。In the scroll bar display control step, a center position of a scroll box displayed in a scroll bar for designating the display range indicates a display ratio of the center position of the display range. Item 4. The display control method according to Item 1. 前記スクロールバー表示制御ステップにおいて、前記スクロールボックス上の基準位置を変更すると共に、該スクロールボックス上の基準位置に対応する前記指定位置データ位置を合わせて変更することを特徴とする請求項1に記載の表示制御方法。2. The scroll bar display control step of changing the reference position on the scroll box and changing the designated position data position corresponding to the reference position on the scroll box together. Display control method. 文書を、表示要素やレイアウト的にきりの良い所で複数の部分に分割した分割文書に対応するデータサイズの項の配列を含む、文書をどう分割したかを示す情報から、前記分割文書の各データサイズを得る分割データサイズ取得手段と、From the information indicating how the document is divided, including an array of data size terms corresponding to the divided document that is divided into a plurality of parts at a location that is well-defined in terms of display elements and layout, each of the divided documents A divided data size obtaining means for obtaining a data size;
表示範囲を指定するためにスクロールバー内に表示されるスクロールボックスのスクロールバー内の位置に応じて、前記表示範囲が文書中に占める位置を表す基準となるスクロールボックス上の基準位置に対応する指定位置データ位置を含むように、上記文書に対して指定された指定範囲を含む分割文書を特定すると共に、特定した分割文書を元にして前記指定範囲のデータサイズを求める指定範囲データサイズ取得手段と、  A designation corresponding to a reference position on the scroll box, which is a reference representing the position of the display range in the document, according to the position in the scroll bar of the scroll box displayed in the scroll bar for specifying the display range. A specified range data size acquisition unit that specifies a divided document including a specified range specified for the document so as to include a position data position, and obtains a data size of the specified range based on the specified divided document; ,
前記分割データサイズ取得手段から得た分割文書の各データサイズの和と、前記指定範囲データサイズ取得手段から得た前記指定範囲のデータサイズとから、文書中に前記指定範囲が占める割合を求める割合取得手段と、  A ratio for obtaining a ratio of the designated range in the document from the sum of the data sizes of the divided documents obtained from the divided data size obtaining unit and the data size of the designated range obtained from the designated range data size obtaining unit Acquisition means;
前記指定範囲を前記表示範囲とし、前記割合取得手段から得られた割合に応じたスクロールバーを表示し、また、ユーザーのスクロールバー操作に応じて前記表示範囲の表示内容を制御するスクロールバー表示制御手段とを有していることを特徴とする表示制御装置。  Scroll bar display control that displays the specified range as the display range, displays a scroll bar according to the ratio obtained from the ratio acquisition means, and controls the display content of the display range according to the user's scroll bar operation A display control device.
請求項1から11のいずれか一項に記載に記載の表示制御方法が備える各ステップをコンピュータに実行させる為の表示制御プログラム。The display control program for making a computer perform each step with which the display control method as described in any one of Claims 1-11 is provided.
JP2007180382A 2007-07-09 2007-07-09 Method, apparatus, program, and program medium for display control Expired - Lifetime JP4413952B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007180382A JP4413952B2 (en) 2007-07-09 2007-07-09 Method, apparatus, program, and program medium for display control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007180382A JP4413952B2 (en) 2007-07-09 2007-07-09 Method, apparatus, program, and program medium for display control

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2002139310A Division JP4090784B2 (en) 2002-05-14 2002-05-14 Scroll bar display control method, scroll bar display control device, scroll bar display control program, and recording medium

Publications (2)

Publication Number Publication Date
JP2007305154A JP2007305154A (en) 2007-11-22
JP4413952B2 true JP4413952B2 (en) 2010-02-10

Family

ID=38838964

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007180382A Expired - Lifetime JP4413952B2 (en) 2007-07-09 2007-07-09 Method, apparatus, program, and program medium for display control

Country Status (1)

Country Link
JP (1) JP4413952B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8555195B2 (en) * 2010-06-29 2013-10-08 Ricoh Co., Ltd. Bookmark function for navigating electronic document pages
KR101377695B1 (en) * 2013-01-18 2014-03-26 김수현 Advertisement service system using content recognition time and method thereof
JP6064664B2 (en) * 2013-02-20 2017-01-25 カシオ計算機株式会社 Electronic device and program with dictionary function
JP6436154B2 (en) * 2016-12-21 2018-12-12 カシオ計算機株式会社 Electronic device, display method and program

Also Published As

Publication number Publication date
JP2007305154A (en) 2007-11-22

Similar Documents

Publication Publication Date Title
JP4236267B2 (en) Information processing apparatus, layout control method executed in the apparatus, and program thereof
JP4065545B2 (en) Layout control method and apparatus and program thereof
US8522158B2 (en) Systems, methods, and computer-readable media for providing a dynamic loupe for displayed information
US7735007B2 (en) Adding and removing white space from a document
US9659107B2 (en) Image processing apparatus, image processing method, and storage medium
JP5629435B2 (en) Information processing apparatus, information processing method, and program
US8549435B1 (en) Displaying thumbnails for one or more files to be imported
JP2005122728A (en) User interface for creation and editing of variable data document
JP5455456B2 (en) Information processing apparatus, information processing method, and program
US9158488B2 (en) Data processing apparatus and data processing method for generating data to be edited using a print driver
JP4413952B2 (en) Method, apparatus, program, and program medium for display control
JP4008280B2 (en) Display method, display device, display program, and recording medium on which display program is recorded
JP4090785B2 (en) Display control method, display control program, and recording medium
JP4090784B2 (en) Scroll bar display control method, scroll bar display control device, scroll bar display control program, and recording medium
JP4747986B2 (en) Image processing apparatus and program
JP5538159B2 (en) Page number determination apparatus, page number determination method, page number determination program, and computer-readable recording medium
JP4305325B2 (en) Sticky note information processing method, sticky note information processing system, and sticky note information processing program
JP5645481B2 (en) Apparatus, method, and program
JP2013054527A (en) Information processing apparatus, information processing method, and program
KR100998076B1 (en) Apparatus and method for controlling size of image displayed on display device
JP3813499B2 (en) OUTPUT PROCESSING METHOD, OUTPUT PROCESSING DEVICE, OUTPUT PROCESSING PROGRAM, AND RECORDING MEDIUM CONTAINING OUTPUT PROCESSING PROGRAM
JP3813506B2 (en) OUTPUT PROCESSING METHOD, OUTPUT PROCESSING DEVICE, OUTPUT PROCESSING PROGRAM, AND RECORDING MEDIUM CONTAINING OUTPUT PROCESSING PROGRAM
JP2006011960A (en) Method for arranging character
JP2014038629A (en) Image processing device, image processing method and program

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090417

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090512

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090710

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20091117

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20091118

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121127

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4413952

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121127

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131127

Year of fee payment: 4

EXPY Cancellation because of completion of term