The present disclosure relates to a content generation method for electronic books and a non-transitory computer-readable medium storing a content generation program for electronic books.
There are techniques for displaying a book having a plurality of contents, such as a comic book including a plurality of partial regions (frames), on a display screen of a mobile terminal or the like.
For example, there is a technique in which frame number data representing the order to display comic book frame images each of which is represented by frame data is stored so that, based on the frame number data, the comic book frame images represented by the frame data are displayed on the display screen of a display device one frame at a time (see, for example, Japanese Patent Application Publication No. 2002-279396).
There is also a technique in which frames of one page are displayed on a screen, and either fade-in processing or fade-out processing is performed on a predetermined one of the frames displayed (see, for example, Japanese Patent Application Publication No. 2002-259111).
There is also a technique which includes a frame determination means that forms a plurality of graphic frames by dividing a base sheet and displays the plurality of frames formed by the frame determination means (see, for example, Japanese Patent Application Publication No. 2004-342002).
The technique disclosed herein has an object to provide an electronic book in a more easy-to-read manner by improving how the electronic book having a plurality of contents, such as a comic book including a plurality of partial regions (frames), is displayed on a display screen of a mobile terminal or the like.
A disclosed technique provides a method in which a computer places a first content and a second content on a display screen at a distance D along a Y-axis in an orthogonal coordinate system formed by an X-axis and the Y-axis orthogonal to each other, the first content including a first display target, the second content including a second display target, the method including: identifying a first non-display-target region which is part of a non-display-target region obtained by excluding a region of the first display target from a region of the first content and which is located on the second content side; identifying a second non-display-target region which is part of a non-display-target region obtained by excluding a region of the second display target from a region of the second content and which is located on the first content side; calculating a plurality of total widths each of which is a sum of a width of the first non-display-target region in a direction of the Y-axis and a width of the second non-display-target region in the direction of the Y-axis, the widths being at a same X-coordinate; and determining the distance D based on the plurality of total widths and a predetermined reference.
The disclosed technique makes it possible to provide an electronic book in a more easy-to-read manner by improving how the electronic book having a plurality of contents, such as a comic book including a plurality of partial regions (frames), is displayed on a display screen of a mobile terminal or the like.
An embodiment is described below with reference to the drawings.
However, if the entire frame arrangement 10 is displayed on a screen with a small display region, such as on a mobile terminal, each frame is displayed small. For this reason, to display a comic book in the order of the story on a mobile terminal, it may be necessary to rearrange the frames so that, for example, they line up vertically. By being rearranged to line up vertically, the frames can be displayed sequentially using vertical scroll. Moreover, each frame is displayed bigger on the display screen, which is easier to read.
To thus lay out frames of a comic book vertically, it is desirable to adjust the spacing between the frames to make them easy to read. For example, the frame 3 has a speech bubble 9 added thereto. In this case, it is desirable that the spacing between the set of the frame 3 and the speech bubble 9 and the frame 4 rearranged to be under the set of the frame 3 and the speech bubble 9 be determined with the speech bubble 9 taken into account.
In the following description, an object to be displayed, such as a frame and a speech bubble that is added thereto, is called a display target. Then, in the following embodiment, a content is formed by a region including a display-target region and a non-display-target region.
The following describes an example embodiment of placing contents so that when the contents are vertically laid out, the spacing between adjacent display targets may be suitable spacing.
Although contents are vertically laid out as an example in the embodiment, it goes without saying that the method shown in the embodiment can also be applied similarly when contents are laid out horizontally.
In the present embodiment, a region to be displayed, like the frame 3 including the speech bubble 9, is called a display-target region, and a lump formed by a display-target region and a non-display-target region is called a content.
As shown in
Note that in the embodiment shown below, when a plurality of contents are placed in an overlapping manner, in order for a non-display-target region included in one content not to cover and hide a display-target region in another content, it is desirable that the non-display-target region be located behind the display-target region or that the non-display-target region be transparent.
When the content 20 and the content 30 are laid out vertically with a distance Dc in between, the distance Dc is set to a suitable distance, and as a result, the display-target region 24 and the display-target region 34 are placed with a suitable distance in between. In the embodiment below, an example of determining this distance Dc is shown.
Although the content 20 and the content 30 have horizontal borders (or face with lines parallel to the X-axis), it goes without saying that the borders of the content and the content 30 do not necessarily have to be horizontal. Also, although each content is rectangular in the example in
The embodiment described below may be employed as long as content borders adjacent to each other have approximately the same shape. This example will be described using
In
In
Wbg(x1)=wa1+wb1
Wbg(x2)=wa2+wb2
Wbg(x3)=wa3+wb3
Here, Wbg(x1) is the sum of a Y-axis direction width wa1 of a non-display-target region in the content 20 at x1 and a Y-axis direction width wb1 of a non-display-target region in the content 30 at x1. Wbg(x2) and Wbg(x3) can be obtained similarly.
Wbg is an example of a total width.
Note that since the content 30 has a non-display-target region also on the left and right sides of the display target, lab′ is the value of the maximum width of the non-display-target region.
As will be detailed below, it is desirable that the distance Dg between contents be determined focusing on the values of Wbg from zero to a predefined Frange on the X-axis. Note that the Frange may be changed based on an operator's instruction. In other words, from zero to Frange on the X-axis indicating the index, Wbg has a small value, meaning that the distance between the display-target region 24 and the display-target region 34 is a small value. Thus, when Frange is small, the total sums Wbg having small values are used preferentially. Conversely, when the value of Frange is large, the degree by which the total sums Wbg having small values are used preferentially lowers.
Thus, by focusing on the values in the graph 52 from zero to Frange on the X-axis, it is possible to focus on a part where the distance between display targets is narrow. When the distance between display targets is too short (or too long), the degree by which the distance between the display targets appears unnatural increases. By focusing on the values in the graph 52 from zero to Frange on the X-axis, the frames in a comic book can be placed with natural distances in between.
The embodiment shown below allows the spacing between the display-target region 24 and the display-target region 34 to be suitable by setting a suitable value to the distance Dc between the content 20 and the content 30 shown in
By adjusting the value of Frange, among groups of Wbg having varying distribution, the size of a group of Wbg having small values can be adjusted. The smaller the Frange is, the smaller the values of Wbg that are used preferentially are.
Note that in a case where the contours of the non-display-target regions are formed of vector data, continuous quantity may be used in the processing instead of discrete quantity, or instead of a pixel, a unit distance corresponding to a pixel width may be used and defined for, for example, one increment of the index, so that processing performed when the contours are formed by pixels may be performed similarly.
As an example, Dstd 72 is a straight line with a slope of 1, and is set, for example, as follows: Fmin=20 pixels, Fmax=100 pixels, and Frange=Fmax−Fmin=80 pixels. Note that this example is merely an example, and it goes without saying that the values change depending on the pixel resolution of the contents.
The curve Dstd 72 in
In the present embodiment, the value of an index imax where Dstd−Wbgs is the largest is found. Then, as shown in Formula (1) below, Dc is the difference between a reference value Dstd(imax) at imax and a total sum Wbgs(imax) of the widths of non-display target regions in the Y-axis direction at imax.
Dc=Dstd(imax)−Wbgs(imax) Formula (1)
Setting the distance between contents to Dc corresponds to setting the distance between the two display targets at the point where Wbgs 84 (or Wbg 42) is at Wbgs(imax) to Dstd(imax) When the distance between contents is Dc, the distance between the display targets in the respective two contents can be set to a distance which does not bring a sense of incongruity to the user. Note that specific examples of the distance Dc between contents will be described later using
Note that even in a case where the projecting portion is acute, the reference value for the placement spacing changes depending on the size of the projecting portion. When the range of the projecting portion is about the same as or larger than Frange, the slope of Wbgs is steep over the entire region from 0 to Frange of the index as shown in FIG. 9. Thus, the value of Dstd(imax) is small.
In the case in
As is apparent from comparing
The reason of the above is as follows. Specifically, when the vertical width of the non-display-target region is increased by w, the position of the curve Wbgs in, for example,
Note that, as already described, when two contents are placed in an overlapping manner as shown in
<Modification 1>
As a modification, there is a method of providing a lower-limit value of the content placement spacing Dc. A lower-limit value Dmin of the content placement spacing Dc is set in advance. Then, when Dc<Dmin, Dc may be corrected to be Dc=Dmin. For example, if Dmin is set to be Dmin>0, no overlap occurs between contents.
<Modification 2>
As another modification, there is a method of providing an upper-limit value of the content placement spacing Dc. An upper-limit value Dmax of the content placement spacing Dc is set in advance. Then, when Dc>Dmax, Dc may be corrected to be Dc=Dmax. Setting Dmax allows contents not to be spaced too far from each other.
Even in a case where a border 162 or a border 164 between contents is not horizontal as shown in
By correcting the shapes of the borders of the content 20 and the content 30 in
Any combination of the content 30 in
<Modification 3>
The sizes of contents are not necessarily similar to one another and may be significantly different from each other. In such a case, the present method may be used after scaling up or down the contents. For example, assume a case where there is a mixture of a large content and a small content. If the small content is displayed small as is, the contents on the screen become unbalanced, making it difficult to view the contents. In such a case, the contents may be changed to sizes easily viewable to a user by applying scale up/down to the contents. However, if the contents are scaled up or down so that all the contents may be in the same size, a small content may be scaled up too much, which possibly makes it hard to view the content. In such a case, a limit may be set for a scale factor to make an adjustment so that the contents are balanced and easy to view. The method of the present disclosure may be used after contents are thus scaled up or down suitably.
<Modification 4>
The shapes of the non-display-target regions of contents may be changed dynamically. For example, a speech bubble (and text thereinside) may be changed in size in accordance with the size of the display screen. In this case, the display-target region or the non-display-target region changes in shape as well. Thus, the distance Dc may be determined in accordance with a change in the shape of the display-target region or the non-display-target region.
<Processing Flow>
[Step S2102] A first content and a second content are identified. Each of these contents include a display-target region and a non-display-target region.
[Step S2104] A first non-display-target region located on the second content side is identified.
[Step S2106] A second non-display-target region located on the first content side is identified.
[Step S2108] A plurality of total widths are calculated. Specifically, as described with
[Step S2110] A distance D between the contents is determined based on the plurality of total widths and a predetermined reference. For example, the distance is determined by the following Formula (1) as already described.
Dc=Dstd(imax)−Wbgs(imax) Formula (1)
Details of this step will be described later.
[Step S2112] The first and second contents are placed. The distance Dc already determined is used as the spacing between these two contents.
[Step S2114] An electronic book is outputted. The electronic book is displayed by a mobile terminal or the like.
Note that the above steps may be executed by a computer that generates electronic books. The electronic book generated may be, for example, distributed to a mobile terminal or the like via a network or may be delivered via a storage medium. A mobile terminal displays the contents on the screen using electronic book information including the plurality of contents and the distances between the plurality of contents.
Alternatively, the above steps may be executed by a mobile terminal that displays the electronic book. In this case, the electronic book does not have to include the distances between the contents. The distances between the contents may be determined by, e.g., a mobile terminal including a display screen. Alternatively, a mobile terminal may perform the above-described steps and determine new distances between the contents by replacing the distances between the contents in the electronic book information including the distances between the contents.
The distance D described in the above steps can be changed by changing, for example, the value of Frange, the shape of the curve Dstd 72 as a reference, Fmin, Fmax, or the like described with
Alternatively, as described in Modification 3, contents may be scaled up or down. Also, as described in Modification 4, in a case where the shape of a non-display-target region of a content dynamically changes, the distance D may be changed in accordance with the dynamically changing shape.
[Step S2202] The distance D is determined prioritizing total widths with small values. For example, as described with
[Step S2302] The distance D is determined based on a result of comparing a predetermined distribution function and a distribution of a plurality of total widths. For example, as described using
[Step S2402] The steeper is the slope of the function obtained by plotting a plurality of total widths arranged in ascending order at equal intervals in the direction of the horizontal axis with the vertical axis representing the values of the total widths, the smaller is the reference value. For example, as described using
Then, as described using
[Step S2502] The value of reference is changed in accordance with the size of a region where the function Wbgs has a steep slope, the function Wbgs being formed by plotting a plurality of total widths arranged in ascending order at equal intervals in the direction of the horizontal axis with the vertical axis representing the values of the total widths Wbg.
As described using
[Step S2602] The distance D is determined based on the maximum value of a function obtained by subtracting, from values of a predetermined distribution function, values of a function obtained by plotting a plurality of total widths arranged in ascending order at equal intervals in the direction of the horizontal axis with the vertical axis representing the values of the total widths.
As described with
[Step S2702] The distance D is defined by a limit set by a predetermined maximum value or a predetermined minimum value.
As described in Modification 1 and
Also, as described in Modification 2, an upper-limit value Dmax of the content placement spacing Dc may be set in advance. Setting Dmax allows the contents not to be spaced too far from each other.
The hardware configuration has a CPU 2801, a ROM 2802 and a RAM 2803 in which programs and data of the present embodiment are stored, a network interface 2805, an input interface 2806, a display interface 2807, and an external memory interface 2808. These pieces of hardware are connected to one another by a bus 2804.
The network interface 2805 is connected to a network 2815. The network 2815 may be, e.g., a wired LAN, a wireless LAN, the Internet, or a telephone network. An input unit 2816 is connected to the input interface 2806. A display unit 2817 is connected to the display interface 2807. A storage medium 2818 is connected to the external memory interface 2808. The storage medium 2818 may be, e.g., a RAM, a ROM, a CD-ROM, a DVD-ROM, a hard disk, a memory card, or a USB memory drive.
The processing shown below may be implemented by a computer that generates electronic books or by a mobile terminal that has received contents.
A content identification unit 2902 receives a plurality of contents and identifies each of the plurality of contents.
A non-display-target region identification unit 2904 identifies non-display-target regions included in the contents.
A total width calculation unit 2906 calculates total widths Wbg of the non-display-target regions of two adjacent contents in the Y-axis direction (e.g., the content scrolling direction).
A distance determination unit 2908 determines the distance Dc between two adjacent contents. Various embodiments and modifications for determining the distance Dc have already been described using the drawings.
A content placement unit 2910 places contents using the distances Dc between the contents determined. Note that it is also possible to only store the distances Dc between the contents in electronic book data in association with the respective contents. When the electronic book is displayed on a display device, the contents may be placed on a display screen using these distances Dc between the contents. Note that, as already described, in a case where the size of a display target dynamically changes, the distance Dc between contents may be changed in accordance with the change. Also, the distance Dc between contents may be provided with an upper-limit value Dmax or a lower-limit value Dmin.
An electronic book output unit 2912 outputs an electronic book including a plurality of contents placed at the distances Dc. The electronic book outputted may be stored in a storage medium. Alternatively, through a communication line, the electronic book may be distributed to a mobile terminal or the like having a display screen. Alternatively, an electronic book may be generated by a computer, such as a mobile terminal, that has a display device and receives a plurality of contents, and the electronic book thus generated may be displayed on the display device of the computer.
Programs for implementing the embodiment described above may be executed by a computer having the hardware configuration shown in
The steps of the operation flows disclosed herein and in the drawings may be changed in order unless it causes inconsistency. Also, a plurality of steps may be executed at the same time. The steps may be implemented by execution of programs stored in memory. Also, some of the steps may be implemented by an operating system or hardware.
Also, the flows are not exclusive and may be combined unless it causes inconsistency.
The embodiment may be implemented as a hardware apparatus.
While several embodiments of the invention were described in the foregoing detailed description, those skilled in the art may make modifications and alterations to these embodiments without departing from the scope and spirit of the invention. Accordingly, the foregoing description is intended to be illustrative rather than restrictive.
Number | Date | Country | Kind |
---|---|---|---|
2020-074198 | Apr 2020 | JP | national |
This application is a continuation of International Application Serial No. PCT/JP2021/002487, filed Jan. 25, 2021, which claims priority to Japanese Patent Application No. 2020-074198, filed Apr. 17, 2020. The contents of these applications are incorporated herein by reference in their entirety.
Number | Name | Date | Kind |
---|---|---|---|
7590955 | Nequist | Sep 2009 | B1 |
8595662 | Yu | Nov 2013 | B1 |
10078723 | Ghosh | Sep 2018 | B1 |
20020122039 | Minagawa et al. | Sep 2002 | A1 |
20040210707 | Ohara et al. | Oct 2004 | A1 |
20060190811 | Ohno | Aug 2006 | A1 |
20060190847 | Yang | Aug 2006 | A1 |
20070126793 | Yamakado | Jun 2007 | A1 |
20080195937 | Yamakado | Aug 2008 | A1 |
20090172625 | Nequist | Jul 2009 | A1 |
20110138271 | Tobita | Jun 2011 | A1 |
20130086458 | Kurata et al. | Apr 2013 | A1 |
20130147794 | Lee | Jun 2013 | A1 |
20170235473 | Han | Aug 2017 | A1 |
20180088881 | Kuronuma | Mar 2018 | A1 |
20180321821 | Qian | Nov 2018 | A1 |
20190147022 | Okada | May 2019 | A1 |
20210073458 | Sugaya | Mar 2021 | A1 |
Number | Date | Country |
---|---|---|
102087749 | Jun 2011 | CN |
2002259111 | Sep 2002 | JP |
2002279396 | Sep 2002 | JP |
2004246866 | Sep 2004 | JP |
2004342002 | Dec 2004 | JP |
201377982 | Apr 2013 | JP |
1020130016080 | Feb 2013 | KR |
2019130492 | Jul 2019 | WO |
Entry |
---|
Office Action in Japanese Application No. 2020-074198 dated Jul. 21, 2020, 10pp. |
Number | Date | Country | |
---|---|---|---|
20220284645 A1 | Sep 2022 | US |
Number | Date | Country | |
---|---|---|---|
Parent | PCT/JP2021/002487 | Jan 2021 | US |
Child | 17664871 | US |