The entire disclosure of Japanese Patent Application No. 2014-165015 filed on Aug. 13, 2014, including description, claims, drawings, and abstract are incorporated herein by reference in its entirety.
The present invention relates to a document viewing device and a non-transitory computer-readable recording medium having a program stored thereon, for displaying the document by using a layout which is selected among a plurality of layouts.
1. Background
There is an information viewing device having the function for additionally inputting the information, such as characters or the like, in the document which is currently displayed, by the handwriting input or by adding a textbox. Further, there is a document viewing device in which a layout for displaying the document can be changed to each type of layout, such as a standard layout for displaying the document page by page, an Nin1 layout for displaying N (N is an integer which is not less than 2) pages of the document in the display area for one page by reducing N pages and arranging the reduced pages in the page number order, and the like.
Therefore, for example, in case that the document is displayed in the 2in1 layout, there are some cases that after the additional writing is carried out in handwriting so as to stride across two displayed pages, the layout is changed to the standard layout. In this case, in the document viewing device in which when the contents of the additional writing carried out in handwriting so as to stride across a plurality of pages are displayed in the standard layout, only a part of the additional writing, which is included in the page displayed in the standard layout is displayed, the handwritten contents cannot be suitably recognized.
2. Description of the Related Art
In the information viewing apparatus disclosed in Japanese Patent Application Publication No. 2013-114412 (United States Patent Application Publication No. 2013/139045), the handwritten contents which stride across a plurality of pages are assigned to one of the pages. Then, in case that this page is displayed, the whole of the handwritten contents assigned to the displayed page is displayed, for example, by shifting the display position.
There are some cases that the contents of the additional writing added to the document when the document was displayed in a specific layout, such as the 2in1 layout, are meaningful only in case that the document is viewed in the specific layout.
Further, in case that the whole of the additional writing assigned to each page is displayed in any layout, a user cannot recognize the layout which was used when the additional writing was input.
The present invention is achieved to solve the above-described problem, and an object of the present invention is to provide a document viewing device and a non-transitory computer-readable recording medium which can display the document and the additional writing without breaking the relation between the additional writing and the layout which was used for displaying the document when the above additional writing was input.
To achieve at least one of the abovementioned objects, the gist of the present invention is reflected in the following inventions:
(1) A document viewing device, comprises:
(2) A non-transitory computer-readable recording medium storing a program, wherein the program causes an information processing apparatus to function as the document viewing device described in (1).
The advantages and features provided by one or more embodiments of the invention will become more fully understood from the detailed description given hereinbelow and the appended drawings which are given byway of illustration only, and thus are not intended as a definition of the limits of the present invention, and wherein:
Hereinafter, an embodiment of the present invention will be described with reference to the drawings. However, the scope of the invention is not limited to the illustrated examples.
The document viewing device 10 is a portable terminal having the plate shape (a so-called tablet terminal), and almost the whole area of the front surface of the document viewing device 10 is a display surface S. On the display surface S, a touch panel for detecting the position on which the display surface S is touched by a finger, a pen or the like, is provided.
The display unit 12 comprises a display device, such as a liquid crystal display, an electronic paper, or the like. The operating unit 13 is provided on the display surface S of the display unit 12, and is configured by a touch panel for detecting the position on which the display surface S is pushed by a finger, a pen or the like, operation switches arranged on the edge portion of the document viewing device 10, and the like. The operating unit 13 functions as the additional writing input unit for receiving the additional writing on the document displayed on the display unit 12.
The document viewing device 10 receives the handwriting input, such as the characters, the figure or the like, which is handwritten by a user via the touch panel. The display unit 12 and the operating unit 13 have the function as the software keyboard by displaying the keyboard on the display unit 12 and by detecting the pushing operation for each key of the keyboard by using the touch panel. The detecting method used in the touch panel may be optional, and may be carried out, for example, by using the electrostatic capacity, the analog/digital resistive film, the infrared rays, the ultrasonic waves, the electromagnetic induction or the like.
The communication unit 14 is connected with the network via the wireless communication, and has the function for communicating the information such as the document data stored in an external device, with the external device.
In the flash ROM 15, various types of programs, data and the like are stored. By executing various types of processings by the CPU 11 in accordance with the programs, the functions of the document viewing device 10 are realized. The CPU 11 functions as the display control unit for controlling the display of the document on the display unit 12.
The memory 16 is used as a work memory for temporarily storing various types of data when the CPU 11 executes the programs, and as a memory for temporarily storing the display data.
The card I/F unit 17 detachably connects the portable storing medium, such as the SD card 5 or the like. The document viewing device 10 has the function for reading the document data from the SD card 5 connected with the card I/F unit 17 and the function for writing the edited document data in the SD card 5.
Next, the layouts which are used for displaying the document by the document viewing device 10, will be explained.
The document viewing device 10 has the following layouts as the layout which can be used for displaying the document.
(1) Standard layout for displaying the document page by page on the display unit 12,
(2) 2in1 layout for displaying two pages of the document at once by reducing each page so as to stride across the two pages,
(3) 4in1 layout for displaying four pages of the document by reducing each page so as to arrange the four pages in a 2×2 matrix, and the like.
The document viewing device 10 receives the selection of the layout to be used for displaying the document among a plurality of types of the layouts which are previously prepared, from a user via the operating unit 13. Then, the CPU 11 (the display control unit) of the document viewing device 10 displays the document on the display unit 12 by using the selected layout.
Further, when the document viewing device 10 receives the additional writing on the document displayed on the display unit by the handwriting input or by the text input, the document viewing device 10 stores the additional writing information indicating the contents of the received additional writing in the memory 16 (the additional writing information storing unit) so as to relate the additional writing information to the document which is currently displayed and the layout which is used for displaying the above document. Instead of the memory 16, the flash ROM 15 may be used as the storing area for the additional writing information.
The additional writing information is stored so as to relate it to the layout information indicating the layout which was used for displaying the document when the object corresponding to the above additional writing information was added. In this example, by storing the additional writing information and the layout information as a set, the layout information is related to the additional writing information. Further, the additional writing information is related to the document which was displayed on the display unit 12 when the object corresponding to the above additional writing information was added.
When the document is displayed on the display unit 12 in an optional layout, in case that the additional writing information concerned with the displayed part (page (s)) of the document and related to the optional layout which is used for displaying the document, has been already stored in the additional writing information storing unit, the CPU 11 which functions as the display control unit controls the display unit 12 so as to further display the contents of the additional writing, which are indicated by the above additional writing information.
For example, the object added by the handwriting input or the like when the document was displayed in the 4in1 layout, is displayed so as to overlap it with the document in case that the page(s) in which the above added object was received is displayed in the 4in1 layout. On the other hand, in case that the page(s) in which the above added object was received is displayed in another layout, the above object is not displayed (or is displayed by changing the display form).
Then, even though the first page (or the second page) is displayed in the standard layout, the objects 41 and 42 which were added in the 2in1 layout are not displayed.
Then, as shown in
Further, as shown in
As described above, in the document viewing device 10 according to the embodiment, the added object is displayed when the document is displayed in the layout which is the same as the layout which was used when the above object was added. Therefore, the problem in which the added object is displayed so as to overlap it with the document which is currently displayed in the layout which is different from the layout used when the additional writing was received and then the user cannot recognize the original meaning of the object, is avoided.
Next, the case in which when the document is displayed on the display unit 12, the document viewing device 10 informs a user of the existence of the additional writing information related to the layout except the layout which is currently used for displaying the document, will be explained.
For example, in the above example of
The guidance information 45 indicates only the part which is overlapped with the first page in the object 41 corresponding to the additional writing information related to the 2in1 layout, by a different display form which is different from that of
In the situation in which the document viewing device 10 displays the document and the guidance information 45 (or 46) on the display unit 12, when the document viewing device 10 receives the selection operation for selecting the guidance information 45 or 46 (for example, the operation in which the guidance information is touched) from the user, the layout used for displaying the document is changed to the layout related to the additional writing information corresponding to the selected guidance information. That is, the document is displayed by changing the current layout to the layout which was used when the object corresponding to the selected guidance information 45 or 46 was added.
The document viewing device 10 can change the display method for displaying the contents of the additional writing (the added object), which are indicated by the additional writing information. In this example, when the full screen display is turned on, the document viewing device 10 displays the contents of the additional writing, which are indicated by the first additional writing information indicating the contents of the additional writing received on the part (page(s)) of the document, which is displayed on the display unit 12, so as to overlap the contents with the document. The first additional writing information is related to the layout which is the same as the layout which is currently used for displaying the above document. Further, the document viewing device 10 also displays the contents of the additional writing, which are indicated by the second additional writing information indicating the contents of the additional writing received on the part (page(s)) of the document, which is displayed on the display unit 12, so as to overlap the contents with the document. The second additional writing information is related to the layout except the layout which is currently used for displaying the above document.
On the other hand, when the full screen display is turned off, the document viewing device 10 displays the contents of the additional writing, which are indicated by the above first additional writing information, so as to overlap the contents with the document. However, the document viewing device 10 does not display the contents of the additional writing, which are indicated by the above second additional writing information.
Next, the operation in which when the contents of the additional writing, which are indicated by the additional writing information related to the layout except the layout which is currently used for displaying the document are displayed on the display unit 12, the contents of the above additional writing are prohibited from being changed, will be explained.
In the display state shown in
On the other hand, in case of the handwritten object 41 and the object 42 added by inputting the text in the textbox, which correspond to the additional writing information related to the 2in1 layout, because the above objects correspond to the additional writing information related to the layout which is different from the layout in which the document is currently displayed, the document viewing device 10 prohibits the above objects from being changed.
For example, when the object related to the 4in1 layout, which strides across four pages is displayed in the 2in1 layout, only two pages of the four pages which were displayed when the object was added are displayed. Further, only a part of the object (the part which is overlapped with the displayed two pages) is displayed. Therefore, it is difficult for a user to recognize the original meaning of the object. As a result, there is some possibility that the user wrongly changes the above object. In the document viewing device 10 according to the embodiment, because the added object is prohibited from being changed in case that the document is displayed in the layout which is different from the layout used when the above object was added, the above wrong change is prevented.
Next, the process which is carried out in case that a new page is additionally inserted will be explained by using
The process is explained by using the document 31 having the first to the fifth pages shown in
Thereby, the combinations of two pages to be displayed in the 2in1 layout are as follows: the combination of the first page (the page in which the character “A” is described) and the new page 51, the combination of the second page (the page in which the character “B” is described) and the third page (the page in which the character “C” is described), and the combination of the fourth page (the page in which the character “D” is described) and the fifth page (the page in which the character “E” is described). Therefore, the object 49 which was added in the situation of
In case that the new page is inserted in the document having the additional writing information related to the Nin1 layout (N is an optional integer which is not less than 2), the document viewing device 10 additionally inserts the required number of dummy pages at the preceding pages from the pages displayed in the Nin1 layout when the additional writing was carried out, so as to satisfy the following condition. The condition is that the N pages of the document, which are displayed in the Nin1 layout to overlap the contents of the additional writing, which are indicated by the above additional writing information, are matched with the N pages which were displayed in the Nin1 layout when the additional writing corresponding to the above additional writing information was carried out. The CPU 11 which functions as the page inserting unit additionally inserts the dummy pages.
For example, in the example of
In the example of
The number of the dummy pages to be additionally inserted is determined according to the number “m” of the pages which is newly inserted and the number “N” of the Nin1 layout related to the additional writing information. That is, the number “P” of the dummy pages to be additionally inserted is calculated by using the equation: P=(N−k), where k is the remainder of dividing “m” by “N”.
For example, in case that one new page is inserted at the preceding page from the fifth page of the document in which the additional writing information concerned with the fifth to the eighth pages exists, three dummy pages may be inserted at the preceding page from the fifth page.
The dummy page may be additionally inserted in the document when the new page is added. Alternatively, the dummy page may be temporarily inserted only when the document is displayed in the Nin1 layout. In the latter case, when the document in which the new page is added is displayed in the standard layout, the dummy page is not additionally inserted. Only when the document in which the new page is added is displayed in the Nin1 layout (N is an integer which is not less than 2), the dummy page is temporarily added to the document. When the display of the document in the Nin1 layout is finished, the dummy page is deleted from the document.
Next, the process which is carried out by the document viewing device 10 will be explained by using the flowchart.
In Step S104, it is checked whether the additional writing is received from a user. In case that the additional writing is not received (Step S104; No), the process proceeds to Step S106. In case that the additional writing is received (Step S104; Yes), the additional writing information indicating the contents of the additional writing is generated and the additional writing information is stored so as to relate it to the layout which is currently used (Step S105). Then, the process proceeds to Step S106.
In Step S106, it is checked whether the instruction for changing the layout is received from a user or not. In case that the instruction for changing the layout is not received (Step S106; No), the process is continued by returning to Step S104. In case that the instruction for changing the layout is received (Step S106; Yes), the process is continued by returning to Step S101. That is, the document is displayed again in the changed layout (Step S101), and in case that the additional writing information which is concerned with the currently displayed page(s) and which is related to the changed layout is stored (Step S102; Yes), the contents of the additional writing (the object), which are indicated by the above additional writing information are displayed so as to overlap them with the document which is currently displayed (Step S103).
In Step S204, it is checked whether the additional writing information which is concerned with the currently displayed page (s) of the document and which is related to the layout except the layout which is currently used for displaying the document, is stored or not. In case that the above additional writing information is not stored (Step S204; No), the process proceeds to Step S206.
In case that the above additional writing information is stored (Step S204; Yes), the guidance information indicating the existence of the above additional writing information is displayed so as to overlap it with the document which is currently displayed (Step S205). Then, the process proceeds to Step S206.
In Step S206, it is checked whether the operation for selecting the guidance information is received from a user or not. In case that the operation for selecting the guidance information is received (Step S206; Yes), the document is displayed again by changing the current layout to the layout related to the additional writing information corresponding to the selected guidance information (Step S210). Then, the process proceeds to Step S202.
That is, in case that the additional writing information concerned with the page (s) which is currently displayed in the changed layout, and related to the changed layout is stored (Step S202; Yes), the contents of the additional writing (the object) which are indicated by the above additional writing information are displayed so as to overlap them with the document which is currently displayed (Step S203). In case that the additional writing information concerned with the page(s) which is currently displayed and related to the layout except the changed layout is stored (Step S204; Yes), the guidance information indicating the existence of the above additional writing information is displayed so as to overlap it with the document which is currently displayed (Step S205).
In case that the operation for selecting the guidance information is not received from a user (Step S206; No), it is checked whether the additional writing is received from a user (Step S207). In case that the additional writing is not received (Step S207; No), the process proceeds to Step S209. In case that the additional writing is received (Step S207; Yes), the additional writing information indicating the contents of the additional writing is generated and the additional writing information is stored so as to relate it to the layout which is currently used (Step S208). Then, the process proceeds to Step S209.
In Step S209, it is checked whether the instruction for changing the layout is received from a user or not. In case that the instruction for changing the layout is not received (Step S209; No), the process is continued by returning to Step S206. In case that the instruction for changing the layout is received (Step S209; Yes), the process is continued by returning to Step S201.
That is, the document is displayed again in the changed layout (Step S201), and in case that the additional writing information which is concerned with the currently displayed page(s) and which is related to the changed layout is stored (Step S202; Yes), the contents of the additional writing (the object), which are indicated by the above additional writing information are displayed so as to overlap them with the document which is currently displayed (Step S203). Further, in case that the additional writing information which is concerned with the currently displayed page(s) and which is related to the layout except the changed layout, is stored (Step S204; Yes), the guidance information indicating the existence of the above additional writing information is displayed so as to overlap it with the document which is currently displayed (Step S205).
In Step S304, it is checked whether the additional writing information which is concerned with the currently displayed page (s) of the document and which is related to the layout except the layout which is currently used for displaying the document, is stored or not. In case that the above additional writing information is not stored (Step S304; No), the process proceeds to Step S306.
In case that the above additional writing information is stored (Step S304; Yes), the contents of the additional writing (the object), which are indicated by the above additional writing information are displayed so as to overlap them with the document and the object is prohibited from being changed (Step S305). Then, the process proceeds to Step S306.
In Step S306, it is checked whether the operation for changing the contents of the additional writing, which are currently displayed, is received or not. In case that the operation for changing the object is received (Step S306; Yes), it is checked whether the object to be changed by the received operation is prohibited from being changed or not (Step S310). In case that the above object is prohibited from being changed (Step S310; Yes), the change in the object is rejected (Step S312). Then, the process proceeds to Step S307. In case that the above object is not prohibited from being changed (Step S310; No), the change in the object is accepted (Step; S311). Then, the process proceeds to Step S307.
For example, when the object to be changed is the text which is input in the textbox, the addition or the deletion of the text or the change in the text is accepted. When the object to be changed is the handwritten object, the deletion of a part of or the whole of the object is accepted, but the addition of the object (for example, the extension of the line) is not accepted.
In Step S307, it is checked whether the additional writing is received from a user. In case that the additional writing is not received (Step S307; No), the process proceeds to Step S309. In case that the additional writing is received (Step S307; Yes), the additional writing information indicating the contents of the additional writing is generated and the additional writing information is stored so as to relate it to the layout which is currently used (Step S308). Then, the process proceeds to Step S309.
In Step S309, it is checked whether the instruction for changing the layout is received from a user or not. In case that the instruction for changing the layout is not received (Step S309; No), the process is continued by returning to Step S306. In case that the instruction for changing the layout is received (Step S309; Yes), the process is continued by returning to Step S301.
In case that the influenced additional writing information does not exist (Step S402; No), the process is ended. In case that the influenced additional writing information exists (Step S402; Yes), the required number of the dummy pages is calculated (Step S403). Then, the N pages which were displayed in the Nin1 layout when the additional writing corresponding to the influenced additional writing information was received, are specified. Further, the required dummy pages are inserted at the preceding pages from the specified N pages (Step S404), and then the process is ended. The N pages concerned with the above additional writing information maybe specified from the position information (pages) in the additional writing information shown in
As described above, the embodiment is explained by using the drawings. However, in the present invention, the concrete configuration is not limited to the above embodiment. In the present invention, various modifications of the above embodiment or the addition of various functions or the like to the embodiment can be carried out without departing from the gist of the invention.
In this embodiment, the additional writing information is prepared every when the additional writing is received, and the additional writing information is stored so as to relate it to the layout used for displaying the document when the additional writing information is prepared. However, the additional writing information corresponding to the received additional writing is temporarily held, and when the layout is changed or when the operation for finishing the display of the document is received, the held additional writing information maybe related to the layout which has been used until just before. Further, the data structure shown in
In the embodiment, the standard layout, the 2in1 layout and the like are exemplified as the layout. However, for example, the present invention may be applied by treating the display status in which the document is scrolled and the scroll of the document is stopped at an optional position, as the layout. For example, in case that the additional writing is input when the scroll is stopped at the position at which the lower half portion of the third page and the upper half portion of the fourth page are simultaneously displayed, the additional writing information corresponding to the input additional writing is stored so as to relate it to the layout information indicating the status in which the lower half portion of the third page and the upper half portion of the fourth page are simultaneously displayed.
The guidance information shown in the embodiment is explained as an example. The guidance information may be an optional mark, an object of which the display form is changed, or the like.
The document viewing device may control the display of the contents of the additional writing as follows. The object added in one layout may be displayed so as to overlap it with the document in case that the document is displayed in another layout including the one layout which was used when the additional writing was input. On the other hand, the object added in one layout is not displayed in case that the document is displayed in another layout which does not include the one layout which was used when the additional writing was input. For example, the object added in the standard layout is also displayed in the 2in1 layout and the 4in1 layout which include the display status of the standard layout. Further, the object added in the 2in1 layout is also displayed in the 4in1 layout including the display status of the 2in1 layout, but is not displayed in the standard layout which does not include the standard layout.
In the embodiment, the document viewing device 10 which can receive the handwriting input is explained as an example. However, the document viewing device maybe a device which does not have the function for receiving the handwriting input. Further, by instructing an information processing apparatus to execute the predetermined program, the information processing apparatus may operate as the document viewing device according to the present invention.
It is preferable that the additional writing information is stored by adding it to the document as a part of the document data. In this case, for example, when the document is transmitted to an external device, the additional writing information is also transmitted with the document.
Although embodiments of the present invention has been described and illustrated in detail, it is clearly understood that the same is by way of illustrated and example only and is not to be taken by way of limitation, the scope of the present invention being interpreted by terms of the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
2014-165015 | Aug 2014 | JP | national |