WO2014042053A1 - 電子書籍制作装置、ビューワ装置、電子書籍システム及び電子書籍制作方法 - Google Patents

電子書籍制作装置、ビューワ装置、電子書籍システム及び電子書籍制作方法 Download PDF

Info

Publication number
WO2014042053A1
WO2014042053A1 PCT/JP2013/073796 JP2013073796W WO2014042053A1 WO 2014042053 A1 WO2014042053 A1 WO 2014042053A1 JP 2013073796 W JP2013073796 W JP 2013073796W WO 2014042053 A1 WO2014042053 A1 WO 2014042053A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic book
page
script
template
image
Prior art date
Application number
PCT/JP2013/073796
Other languages
English (en)
French (fr)
Inventor
素 寺横
Original Assignee
富士フイルム株式会社
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 富士フイルム株式会社 filed Critical 富士フイルム株式会社
Publication of WO2014042053A1 publication Critical patent/WO2014042053A1/ja

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates

Definitions

  • the present invention relates to an electronic book production apparatus, a viewer apparatus, and an electronic book system capable of easily creating an electronic book with a script that effectively utilizes an image analysis result when an electronic book having an image for each page is created. And an electronic book production method.
  • E-books created in a proprietary format will generally be difficult to view and may lose value once the hardware compatible with that proprietary format is discontinued, but created in the standard EPUB format. Since the electronic book can be viewed by anyone using a viewer (EPUB viewer) corresponding to the EPUB format, the value is not lost.
  • an interactive electronic book can be created with JavaScript (registered trademark), and interactive playback can be performed with an EPUB viewer compatible with JavaScript (registered trademark).
  • Patent Document 1 discloses a viewer having a trace display function.
  • Patent Document 2 discloses embedding appropriate contents in a script template variable when producing display data including a script that defines a function for displaying an image.
  • a frame image cut out for each frame from an image for each page (hereinafter referred to as “page image”) is prepared in advance, and each time the user presses a button, 1
  • a display mode (frame view) in which frames are advanced in order according to the reading order (observation order) in the page.
  • a display mode is adopted that allows the viewer to browse electronic comics.
  • the trace display is only one form of display using the image analysis result, and it is desirable that the image analysis result can be effectively used for more various display forms.
  • Citation 2 discloses that a script is created by embedding appropriate contents in a script template variable, but the image analysis result is not effectively used.
  • the present invention has been made in view of such circumstances, and even a producer who does not have an image analysis technique can effectively use an image analysis result (coordinate information of constituent elements of a page image) to obtain a desired display mode. It is an object of the present invention to provide an electronic book production apparatus, a viewer apparatus, an electronic book system, and an electronic book production method capable of easily producing an electronic book that can display a page image.
  • the present invention provides an electronic book production apparatus that generates an electronic book by incorporating a multi-page page image and a script in which display control of the multi-page page image is described.
  • a first selection unit that selects a display mode realized by display control of a script incorporated in an electronic book from among a plurality of display modes, a page image acquisition unit that acquires a page image of a plurality of pages, and a component of the page image Image analysis information acquisition means for acquiring image analysis information including the coordinate information, and storage means for storing a plurality of templates corresponding to a plurality of display modes, wherein a variable corresponding to the coordinate information of the constituent elements of the page image is A storage means for storing the script template described, and a first one of the plurality of templates stored in the storage means.
  • a second selection unit that selects a template corresponding to the display mode selected by the selection unit; an editing unit that generates a script by embedding coordinate information in the image analysis information in a variable described in the script template;
  • An electronic book output means for outputting an electronic book in which a template selected by the second selection means is incorporated, wherein the electronic book output means incorporates a script in which coordinate information is embedded in the electronic book.
  • a template corresponding to the display mode selected by the first selection unit is selected from the plurality of templates corresponding to the plurality of display modes prepared in the storage unit, and the selected template is selected. If the author does not have image analysis technology, an electronic book including a script in which the coordinate information of the constituent elements of the page image is embedded in a variable is output. By effectively utilizing the image analysis result (coordinate information of the constituent elements of the page image), an electronic book capable of displaying the page image on the viewer device in a desired display mode can be easily produced.
  • the first selection unit can select a plurality of display modes
  • the second selection unit has a plurality of scripts corresponding to the selected plurality of display modes when a plurality of display modes are selected.
  • the electronic book output means incorporates a plurality of scripts corresponding to the plurality of display modes selected by the first selection means into the electronic book consisting of one file.
  • the creator can provide the viewer with the electronic book that allows the browsing of the page image in a plurality of display modes in one file.
  • the script includes a first script for each display mode and a second script that is common to the plurality of display modes
  • the storage unit is a template that is common to a plurality of pages as a template for the second script.
  • the editing unit embeds the coordinate information of the image analysis information in a variable in the template for the second script for each page, thereby generating the second script of a plurality of pages.
  • the template for the second script describes a replacement tag that can be replaced with an array of coordinate information
  • the editing means obtains the coordinate information of the constituent elements of the page image from the image analysis information for each page. Extraction is performed in the order of observation at the time of browsing, and the replacement tag is replaced with an array of coordinate information extracted in the order of observation.
  • the editing unit extracts, for each page, the coordinate information of the constituent elements of the page image from the image analysis information in the order of observation at the time of browsing, and the array of coordinate information extracted in the order of observation by the first selection unit. It changes so that it may correspond to the selected display mode, and it embeds in the template for 2nd scripts.
  • the storage unit stores a setting file in which the correspondence between each of the plurality of display modes selectable by the first selection unit and the plurality of templates stored in the storage unit is described.
  • the second selection unit selects a template corresponding to the display mode selected by the first selection unit based on the setting file.
  • the electronic book includes means for inputting page progress direction information indicating whether the page progress direction of the electronic book is from right to left or left to right, and the editing means is based on the input page progress direction information.
  • the order of page images in the electronic book or the content of script display control is switched.
  • the present invention is also a viewer device for browsing an electronic book generated by an electronic book production device, for selecting a display mode used for displaying a page image from a display unit, an operation unit, and a plurality of display modes.
  • the display menu is displayed on the display unit, the selection of the display mode is accepted by the operation unit, and the display mode selected from the plurality of scripts corresponding to the plurality of display modes incorporated in the electronic book is supported.
  • a control unit that extracts and executes a script.
  • the present invention also provides an electronic book system comprising an electronic book production device and a viewer device for browsing an electronic book generated by the electronic book production device.
  • the present invention corresponds to a plurality of display modes of page images in an electronic book production method for generating an electronic book by incorporating a page image of a plurality of pages and a script describing display control of the page images of the plurality of pages.
  • a first selection step of selecting a display mode realized by display control of a script incorporated in an electronic book from a plurality of display modes of a page image using a storage unit that stores a plurality of templates, and a page image of a plurality of pages A page image acquisition step for acquiring image analysis information acquisition step for acquiring image analysis information including coordinate information of components of the page image, and a first selection step from among a plurality of templates stored in the storage means Select the template corresponding to the display mode selected by, and the coordinates of the components of the page image
  • an image analysis technique can effectively use an image analysis result (coordinate information of components of a page image) and display a page image in a desired display mode. It will be possible to easily produce e-books.
  • FIG. 1 is an overall configuration diagram illustrating an example of an electronic book system.
  • FIG. 2 is a hardware configuration diagram of an example of an electronic book production apparatus.
  • FIG. 3 is an explanatory diagram showing an example of input / output information of the electronic book production program.
  • FIG. 4 is a functional block diagram of an example of an electronic book production apparatus.
  • FIG. 5 is a diagram illustrating an example of electronic book data.
  • FIG. 6 is a diagram illustrating an example of a page image.
  • FIG. 7 is a diagram illustrating an example of image analysis information.
  • FIG. 8 shows an example of a template.
  • FIG. 9 is a block diagram showing an example of an XHTML file.
  • FIG. 10 shows an example of a page script template.
  • FIG. 11 shows an example of a setting file.
  • FIG. 12 is an explanatory diagram of the frame highlight.
  • FIG. 13 is an explanatory diagram of balloon highlights.
  • FIG. 14 is an explanatory diagram of the trace display.
  • FIG. 15 is a schematic flowchart of the electronic book production process.
  • FIG. 16 is a hardware configuration diagram of an example of the viewer apparatus.
  • FIG. 17 is an explanatory diagram showing an example of the view selection menu.
  • FIG. 1 is an overall configuration diagram illustrating an example of an electronic book system (electronic book data distribution system).
  • the scanner 1 reads a book manuscript on paper to generate an image for each page (hereinafter referred to as “page image”).
  • page image an image for each page
  • FIG. 1 shows an example of acquiring a page image of a plurality of pages by reading a book original on a paper medium by the scanner 1, the present invention is not limited to such a case.
  • a plurality of page images may be acquired by inputting an electronically generated book manuscript (digital manuscript) via a network or a recording medium.
  • the electronic book production apparatus 2 is an apparatus that generates electronic book data (also simply referred to as “electronic book”) including page images of a plurality of pages.
  • the electronic book production device 2 is configured by a computer device, for example.
  • the server device 3 transmits the electronic book data generated by the electronic book production device 2 to the viewer device 4 via the network in response to a distribution request from the viewer device 4.
  • the server device 3 is configured by a computer device, for example.
  • Viewer device 4 (4a, 4b, 4c, 4d) receives the electronic book data transmitted from server device 3, and displays a page image.
  • the viewer device 4 is various mobile terminals such as a mobile phone, a smartphone, and a tablet terminal, or various terminal devices (computer devices) such as a personal computer.
  • the display screen size of the viewer device 4 varies depending on the model.
  • the display corresponding to the display screen size of the viewer device 4 in the page image for each page. Display is performed while sequentially moving the area. In this way, sequentially displaying the partial images within the display range on the display screen of the viewer device 4 while moving the display area corresponding to the display screen size in the page image is referred to as “trace display” or “ Sometimes called “sequential playback”.
  • FIG. 2 is a hardware configuration diagram of an example of the electronic book production apparatus 2.
  • the electronic book production apparatus 2 of this example is configured by a computer device that includes a control device 21, an operation device 22, a display device 23, a communication device 24, and a storage device 25.
  • the control device 21 is configured by, for example, a CPU (Central Processing Unit). In this specification, the CPU may be referred to as a “computer”.
  • the operation device 22 is configured by a keyboard and a mouse, for example.
  • the display device 23 is configured by, for example, a liquid crystal display device, and the communication device 24 is a device that can communicate with the server apparatus 3 via a network.
  • the storage device 25 is configured by a large capacity disk such as a hard disk.
  • the control device 21 of the electronic book production apparatus 2 executes an electronic book production program 50 and is based on a view selection instruction 51, a page image 52, image analysis information 53, a template 54, and a setting file 55.
  • the electronic book data 56 in the EPUB format is generated.
  • the details of the view selection instruction 51, page image 52, image analysis information 53, template 54, setting file 55, and electronic book data 56 will be described later.
  • FIG. 4 is a functional block diagram of an example of the electronic book production apparatus 2.
  • the electronic book production apparatus 2 of this example includes a storage unit 100, a page image acquisition unit 102, an image analysis information acquisition unit 104, a view selection unit 106 (first selection unit), and a template selection unit 108 (second selection unit).
  • the editing unit 110 and the electronic book output unit 112 are included.
  • the storage unit 100 is configured by, for example, the storage device 25 of FIG.
  • the page image acquisition unit 102 is configured by, for example, the communication device 24 of FIG.
  • the image analysis information acquisition unit 104 is configured by, for example, the control device 21 or the communication device 24 in FIG.
  • the view selection unit 106 (first selection unit), the template selection unit 108 (second selection unit), and the editing unit 110 are configured by, for example, the control device 21 in FIG.
  • the electronic book output unit 112 is configured by the communication device 24 of FIG. 2, for example.
  • the storage unit 100 stores various files such as the page image 52, the image analysis information 53, the template 54, and the setting file 55 shown in FIG.
  • the page image acquisition unit 102 acquires, for example, a plurality of page images 52 read from a paper medium by the scanner 1 of FIG. 1 and a plurality of page images 52 to be incorporated into the electronic book data 56 (electronic book).
  • a plurality of page images 52 may be acquired from the server device 3. Examples of the page image 52 include an image for each page of a comic (manga) including frames and speech balloons.
  • the image analysis information acquisition unit 104 acquires the image analysis information 53 of each of the page images 52 of a plurality of pages acquired by the page image acquisition unit 102.
  • the image analysis information 53 includes coordinate information of components (for example, “frame” and “balloon”) in the page image 52 and information indicating the observation order (reading order) of the components in the page image 52.
  • the page image 52 of a plurality of pages acquired by the page image acquisition unit 102 is analyzed for each page.
  • the image analysis information 53 stored in the server device 3 may be acquired from the server device 3.
  • the view selection means 106 selects a view to be realized by a script described later from a plurality of selectable views (display modes) according to the view selection instruction 51.
  • view is a display mode of a page image of one page when the viewer device 4 displays a page image for each page.
  • “view” is a display mode of a page image of one page when the viewer device 4 displays a page image for each page.
  • the electronic book data 56 is electronic comic data
  • a “frame highlight” view that performs highlight display for each frame in the order of observation a “balloon highlight” view that performs highlight display for each balloon in the order of observation, and the order of observation.
  • “Frame + balloon highlight” view that displays frame and balloon highlights
  • “Trace display” view that sequentially displays partial images in the display area while moving the display area of a certain size within each page image, etc. Listed as a view.
  • the template selection unit 108 selects the template 54 corresponding to the view (display mode) selected by the view selection unit 106 from the plurality of templates 54 (template files) stored in the storage unit 100 according to the setting file 55. To do.
  • the editing unit 110 edits the template 54 selected by the template selection unit 108.
  • the electronic book output means 112 outputs electronic book data 56 incorporating the template 54 edited by the editing means 110.
  • the electronic book data 56 in this example includes a plurality of pages of an XHTML file 61, a style sheet 62, a view script 63, a plurality of pages script 64, and a plurality of pages image 52. Is done.
  • the XHTML file 61 is described in XHTML (Extensible HyperText Markup Language) and is a file (structure description file) indicating the structure of the electronic book data 56 for each page.
  • XHTML Extensible HyperText Markup Language
  • the style sheet 62 is a file (modification description file) indicating how the elements of the XHTML file 61 are modified and displayed.
  • the view script 63 and the page script 64 are scripts 65 (script programs) written in JavaScript (registered trademark), and are executed by the viewer device 4 so that the page image 52 can be displayed interactively.
  • the view selection instruction 51 is instruction information indicating a display mode (view) of each page image on the viewer device 4, and in this example, from among a plurality of views that can be realized by any of the general-purpose viewer devices 4, It shows which script 65 corresponding to which view is created and incorporated in the electronic book data 56.
  • the page image 52 is an image for each page read by the scanner 1 from a paper medium in this example.
  • the page image shown as an example in FIG. 6 is an image for one page of a comic (manga). It may be an image for each page generated by digital data.
  • the image analysis information 53 includes an analysis result for each page of the page image 52. Details will be described later.
  • the template 54 is a template of an XHTML file 61, a style sheet 62, and a script 65 (view script 63 and page script 64) among files constituting the electronic book data 56 of FIG.
  • the style sheet 62 and the view script 63 are incorporated into the electronic book data 56 without being edited.
  • the setting file 55 is a file in which setting information indicating a correspondence relationship between each of the plurality of views and the template 54 corresponding to each view is described.
  • the setting information in the setting file 55 indicates which template 54 of the plurality of templates 54 is used to generate the electronic book data 56 for the view indicated by the view selection instruction 51.
  • the image analysis information 53 of this example is composed of metadata, page image information, map information, and table of contents information.
  • “Metadata” is attribute information of the entire book. For example, a title, a language, a binding direction (right binding / left binding), and the like can be given.
  • “Page image information” is information relating to each page image 52.
  • the ID (identification information) of the page image 52 the size (width, height) of the page image 52, the resource information (URL) of the page image 52, the page attributes (cover, table of contents, imprint, etc.), and the like.
  • Map information is information relating to the constituent elements of each page image 52 (for example, “frame” and “speech balloon” in the case of an electronic comic), and includes coordinate information indicating the area of each constituent element in each page image 52.
  • frame information (frame identification information and frame coordinate information) that is information related to a frame and balloon information (balloon identification information, balloon coordinate information, and identification information of a frame to which the balloon belongs) are associated with the viewer. They are arranged in the order of observation (reading order) in the apparatus 4.
  • the frame coordinate information is coordinate information indicating a frame region in the page image 52.
  • the frame is a rectangle
  • the coordinate information of the frame is the coordinate information of each vertex (four points) of the rectangle.
  • the balloon coordinate information is coordinate information indicating a balloon area in the page image.
  • the balloon coordinate information in this example is the coordinate information of each vertex (four points) of a rectangle circumscribing the balloon region (the circumscribed rectangle).
  • “Contents information” is information indicating a table of contents in the electronic book data 56.
  • the table of contents information includes page identification information (which indicates the page number) and text.
  • the template 54 of this example is composed of a template (XHTML file template 66) of an XHTML file 61, a style sheet 62, and a script template 68.
  • the script template 68 of this example is based on a view-specific script (view script 63) that depends on the type of view and a template (page script template 67) of a view-common script (page script 64) that does not depend on the type of view. It is configured.
  • the template of the XHTML file 61 (XHTML file template 66) is common to the view and the page, and only one file is prepared as a template.
  • the style sheet 62 has a common view and a common page, and only one file that can be incorporated into the electronic book data 56 is prepared as a template.
  • the script 65 to be incorporated into the electronic book data 56 of FIG. 5 is composed of a view script 63 (first script) common to each view and a page, and a page script 64 (second script) common to each view and a page. is doing. That is, a plurality of view scripts 63 corresponding to each of a plurality of views that can be selected by the view selection unit 106, and a plurality of view scripts 63 that are common to a plurality of page images and a plurality of view scripts that can be selected by the view selection unit 106.
  • a plurality of page scripts 64 that are common to the views and correspond to each of the page images of a plurality of pages are incorporated in the electronic book data 56.
  • a plurality of view scripts 63 corresponding to a plurality of views are prepared as templates of the view script 63, and only a page script template 67 of one file is prepared as a template of the page script 64.
  • the editing unit 110 embeds the coordinate information in the image analysis information 53 (coordinate information of the constituent elements of the page image) or the like in a variable in the page script template 67, so that each of the page images of a plurality of pages.
  • a corresponding page script 64 is generated.
  • XHTML file and its template> The XHTML file 61 constituting the electronic book data 56 of FIG. 5 and the XHTML file template 66 constituting the template 54 of FIG. 8 will be described in detail.
  • the XHTML file 61 is a file in which the document structure of the electronic book data 56 is defined for each page. As shown in FIG. 9, an XML declaration and identifier description area 61a, header information (head) 61b, and main body information box (body). ) It is configured including a flange 61c.
  • the header information 61b contains the page image file name. Is described.
  • the XHTML file template 66 of this example in FIG. 8 is a single file that is common to a plurality of selectable views (frame highlight, balloon highlight, frame + balloon highlight, trace display, etc.). However, if it is necessary to generate an XHTML file 61 having a different document structure, a template may be prepared for each view.
  • the XHTML file template 66 is a file including an XML declaration, an identifier, a header, and a body, similar to the generated XHTML file 61.
  • the style sheet 62 in FIG. 8 is a file in which the page style (decoration, layout, etc.) is defined.
  • CSS CSS (Cascading Style Sheets) is used.
  • the style sheet 62 in this example is one file common to a plurality of selectable views (frame highlight, balloon highlight, frame + balloon highlight, etc.). However, if it is necessary to generate a style sheet 62 with a different decoration for each view, a template may be prepared for each view.
  • the background, the background canvas, the frame canvas, the balloon canvas, and the z-index style (overlapping order) of the touch event area are specified.
  • the view script 63 is a JavaScript (registered trademark) display control program body, and is common to all page images.
  • the view script 63 in this example is an individual file corresponding to each of a plurality of views (frame highlight, balloon highlight, frame + balloon highlight) that can be executed by the general-purpose viewer device 4.
  • FIG. 10 shows an example of the page script template 67 of FIG.
  • the page script template 67 of this example shown in FIG. 10 includes a variable indicating an array of coordinate information of components of the page image 52 (such as “frame” and “speech balloon” in the case of an electronic comic), and image analysis information in the variable. It has a tag (replacement tag) for embedding an array of coordinate information.
  • the page script template 67 of this example shown in FIG. 10 has a frame coordinate array variable (frameList) and a balloon coordinate array variable (balloonList) as variables, and a frame coordinate array replacement tag 71 (% @ FramePointList @%) as a replacement tag. ), And a balloon coordinate array replacement tag 72 (% @ BalloonPointList @%).
  • the function createPageFmdData is a function that generates a frame coordinate array and a balloon coordinate array.
  • the frame coordinate array replacement tag 71 is a replacement tag that can be replaced with an array of coordinate information of a plurality of frames in the page image 52 of one page.
  • the editing unit 110 extracts the frame coordinate information from the image analysis information 53 in the order of observation when browsing, and replaces the frame coordinate array replacement tag 71 with the array of frame coordinate information extracted in the order of observation.
  • the balloon coordinate array replacement tag 72 is a replacement tag that can be replaced with an array of coordinate information of a plurality of balloons in the page image 52 of one page.
  • the editing unit 110 extracts the balloon coordinate information from the image analysis information 53 in the order of observation at the time of browsing, and replaces the balloon coordinate array replacement tag 72 with the array of balloon coordinate information extracted in the order of observation.
  • the page script template 67 of this example has replacement tags 73 and 74 (% @ ViewWidth @%,% @ ViewHeight @%) of the viewport size (width and height).
  • the function getViewportSize is a function for obtaining the size (width and height) of the viewport.
  • the page script template 67 of this example has a page image file name replacement tag 75 (% @ ImageFileName @%).
  • the function getPageImage is a function for acquiring a page image file name.
  • the page script template 67 of this example is one file that is common to a plurality of views (for example, frame highlight view, balloon highlight view, frame + balloon highlight view, etc.). However, if it is necessary to generate a page script 64 having different contents for each view, a page script template 67 may be prepared for each view.
  • the editing unit 110 displays the coordinate information of the component of the page image in the display mode (view). After changing so as to correspond, it may be embedded in a template variable.
  • the editing unit 110 extracts the coordinate information of the constituent elements (frames, balloons, etc.) of the page image 52 from the image analysis information 53 in the order of observation at the time of browsing, and the coordinate information extracted in the order of observation. The arrangement is changed so as to correspond to the display mode (view) selected by the view selection means 106 and embedded in the page script template 67.
  • FIG. 11 shows an example of the setting file 55 of FIG.
  • the 11 is a file in which the correspondence between each of a plurality of views selectable by the view selection unit 106 and a plurality of templates 54 stored in the storage unit 100 is described.
  • the setting file 55 of this example is stored in the storage unit 100.
  • the template selection unit 108 selects the template 54 corresponding to the view selected by the view selection unit 106 based on the setting file 55.
  • the setting file 55 in FIG. 11 describes the correspondence between four types of views (“Plain”, “Frame highlight”, “Blowout highlight”, “Frame + Blowout highlight”) and the template 54.
  • the “plain” view is selected when outputting the electronic book data 56 without a script.
  • the “frame highlight” view is a display mode in which the frames 81 are highlighted in the observation order (reading order) in the page image 52.
  • the “balloon highlight” view is a display mode in which only the balloon 82 is highlighted in the order of observation (reading order) in the page image 52.
  • the “frame + balloon highlight” view is a display mode in which frames and balloons are highlighted in the order of observation (reading order) in the page image 52.
  • the “plane” view, the “frame highlight” view, the “callout highlight” view, and the “frame + callout highlight” view have been described as selectable views, but other views ( For example, “frame zoom” view, “trace display” view, etc.) may be selectable.
  • the “frame zoom” view the frames are enlarged and displayed within the page image 52 in the order of observation.
  • the display area 84 (display range) corresponding to the display screen size in the page image 52 is arranged in a sequence A1 of reference positions arranged in the observation order (reading order). It moves along A2, A3, A4, A5, A6, A7, A8, A9.
  • partial images in the display area 84 that sequentially move in the order of observation are sequentially displayed.
  • FIG. 15 is a flowchart illustrating an exemplary flow of an electronic book production process.
  • the view selection means 106 selects a view to be realized by display control of a script incorporated in the electronic book data 56 from a plurality of selectable views (page image display modes) (step S1).
  • view indicates how the page image is displayed on the viewer device 4.
  • the selectable view is a view that can be executed by at least one viewer device of all the viewer devices 4 by display control of any of the scripts that can be generated by the electronic book production device 2. .
  • the “view” selected by the view selection unit 106 is realized by a script incorporated in the electronic book data 56 generated this time.
  • a view that can be executed by the general-purpose viewer device 4 used for browsing the electronic book data 56 in the EPUB format is selected.
  • one or more views are selected from “frame highlight”, “balloon highlight”, “frame + balloon highlight”, “frame zoom”, and “trace display”).
  • the page image acquisition unit 102 acquires a plurality of page images 52 to be incorporated into the electronic book data 56 from the storage unit 100 (step S2).
  • a page image 52 generated by scanning a paper medium by the scanner 1 is stored in advance in the storage unit 100, and the page image 52 is acquired from the storage unit 100.
  • the image analysis information acquiring unit 104 acquires the image analysis information 53 by analyzing the acquired page images 52 of a plurality of pages for each page (step S3). That is, a result (image analysis information) obtained by analyzing the page image 52 of a plurality of pages incorporated in the electronic book data 56 for each page is acquired.
  • the producer may add information to the image analysis information 53 via the operation device 22 after the image analysis.
  • the page image 52 may be analyzed in advance, and the image analysis information 53 as a result of the analysis may be acquired from a network or a recording medium.
  • the template selection unit 108 selects and acquires the template 54 corresponding to the view selected in step S1 from the plurality of templates 54 stored in the storage unit 100 (step S4). .
  • the template 54 corresponding to the view selected in step S1 is obtained based on the information indicating the correspondence between the view described in the setting file 55 and the template. select.
  • the template 54 may be a file that is edited after being acquired and then incorporated into the electronic book data 56, or may be a file that is incorporated into the electronic book data 56 without being edited after being acquired.
  • the template resource (acquisition destination) may be in the storage unit 100 or in the server device 3 connected to the network.
  • the XHTML file 61 and the page script 64 are those templates (XHTML).
  • XHTML XHTML
  • the style sheet 62 and the view script 63 are incorporated into the electronic book data 56 as they are without being edited.
  • the style sheet 62 and the view script 63 are not edited.
  • the style sheet 62 is used.
  • At least one of the view script 63 and the view script 63 may be incorporated into the electronic book data 56 after editing.
  • step S5 The template acquired in step S5 is edited by the editing means 110 (step S6, step S7).
  • the components described in the image analysis information 53 (“frame”, “speech balloon”, etc.) for the variables described in the page script template (page script template 67) common to the pages.
  • the page script 64 is generated by embedding the coordinate information of the component constituting the page image in the observation order (reading order) (step S6).
  • a page script 64 of a plurality of files corresponding to a page image of a plurality of pages is generated from a page script template 67 of one file common to the pages.
  • the editing means 110 specifically performs the following processing.
  • a frame coordinate array is extracted for each page from the frame information of the map of the image analysis information 53 shown in FIG. 7, and a frame coordinate array replacement tag (% @ FramePointList @%) 71 of the page script template 67 shown in FIG. Is replaced with a frame coordinate array for one page extracted from the image analysis information 53.
  • the frame coordinate arrangement is information in which frame coordinate information is arranged in the order of observation in the page image.
  • the frame coordinate array replacement tag 71 is an array of coordinate information (list) for five frames arranged in the frame observation order (reading order). ).
  • a frame coordinate array consisting of a total of 20 coordinate information (4 coordinates ⁇ 5) is embedded in the page script template 67.
  • the balloon coordinate array is extracted for each page from the balloon information of the map of the image analysis information 53 shown in FIG. 7, and the balloon coordinate array replacement tag (% @ BalloonPointList @%) of the page script template 67 shown in FIG. ) 72 is replaced with the balloon coordinate arrangement for one page extracted from the image analysis information 53.
  • the balloon coordinate arrangement is information in which balloon coordinate information is arranged in the order of observation in the page image.
  • the balloon coordinate array replacement tag 72 is an array of coordinate information for 10 balloons arranged in the observation order (reading order) of the balloons. Replaced with (list).
  • a balloon coordinate array consisting of a total of 40 coordinate information (4 coordinates ⁇ 10) is used as the page script template 67. Embedded in.
  • information indicating the width and height of the page image 52 is extracted from the image analysis information 53 shown in FIG. 7, and the viewport width replacement tag (% @ ViewWidth @%) 73 of the page script template 67 shown in FIG.
  • the viewport height replacement tag (% @ ViewHeight @%) 74 is replaced with a viewport width and a viewport height corresponding to information indicating the width and height of the page image extracted from the image analysis information 53, respectively. That is, in the page script template 67, the description of the function (getViewportSize ()) for obtaining the viewport size (width and height) is completed.
  • the page image file name is extracted from the image analysis information 53 shown in FIG. 7, and the page image file name replacement tag (% @ ImageFileName @%) 75 of the page script template 67 shown in FIG. Replace with the page image file name extracted from. That is, in the page script template 67, the description of the function (getPageImage ()) for acquiring the page image file name is completed.
  • the XHTML file 61 for each page is generated by embedding necessary information for each page in the variable described in the XHTML file template 66 common to the pages (step S7).
  • the XHTML file template 66 of this example includes the “viewport width and height”, “style sheet file name”, “view script file name”, and “page script file name” of the XHTML file shown in FIG. , “Replace tag corresponding to“ file name of XHTML file of previous page ”,“ file name of XHTML file of next page ”, and“ file name of page image ”are provided. That is, the XHTML file template 66 includes a viewport width replacement tag, a viewport height replacement tag, a style sheet file name replacement tag, a view script file name replacement tag, a page script file name replacement tag, a previous page replacement tag, and a next page. A replacement tag and a page image file name replacement tag are provided.
  • the page image width and height information is extracted from the page image information of the image analysis information 53 shown in FIG. 7, and the viewport width replacement tag and viewport height replacement tag of the XHTML file template 66 are extracted. Replace with values corresponding to the width and height information.
  • the style sheet file name, view script file name, and page script file name are extracted from the setting file 55, and the style sheet file name replacement tag, view script file name replacement tag, and page script of the XHTML file template 66 are extracted. Replace each file name replacement tag with the extracted file name.
  • previous page replacement tag and the next page replacement tag of the XHTML file template 66 are replaced with the file name of the XTHML file of the previous page and the file name of the XTHML file of the next page, respectively. Further, the page image file name replacement tag of the XHTML file template 66 is replaced with the file name of the page image file.
  • the XHTML file 61 for each page, the style sheet 62, the view script 63, the page script 64 for each page, and the page image 52 for each page are compressed and archived in a ZIP format as a set of electronic book files. Output.
  • the electronic book production program is executed with the view to be selected as an argument.
  • the instruction to execute the electronic book production program may be issued directly from the operation device 22 or may be executed by creating a job file describing the instruction to execute the electronic book program and causing the control device 21 to execute the job file. Good.
  • the electronic book data 56 (electronic book) is generated by incorporating the multi-page page image 52 and the script 65 describing the display control of the multi-page page image
  • Step S2 for acquiring a page image 52 of a plurality of pages, and image analysis information 53 including coordinate information of components of the page image 52 are acquired.
  • Step S3 and a selection from among a plurality of templates 54 stored in the storage means 100 by step S1 The storage unit 100 selects a template 54 corresponding to the displayed view (display mode) and stores a page script template 67 (template for the page script 64) in which variables corresponding to the coordinate information of the constituent elements of the page image 52 are described.
  • Steps S4 and S5 acquired from Step S6, Step S6 for embedding the coordinate information in the image analysis information 53 in the variables described in the page script template 67, Step S7 for editing the XHTML file template 66 and generating the XHTML file 61
  • the electronic book data 56 including the template 54 selected in step S4 is output.
  • the page script 64 in which the coordinate information is embedded is embedded in the electronic book data 56. In It, is performed by the control of the control device 21 (computer).
  • FIG. 16 shows a hardware configuration example of the viewer apparatus 4 that browses the electronic book data 56 generated by the electronic book production apparatus 2.
  • the viewer device 4 of this example is configured by a portable terminal including a control unit 41, an operation unit 42, a display unit 43, a communication unit 44, and a storage unit 45.
  • the control unit 41 is configured by, for example, a CPU (Central Processing Unit).
  • the operation unit 42 and the display unit 43 are configured by, for example, a touch panel display, and the communication unit 44 is a device that can communicate with the server apparatus 3 via a network.
  • the storage unit 45 is configured by a memory, for example.
  • the communication unit 44 requests the server device 3 to distribute the electronic book data 56 and receives the electronic book data 56 from the server device 3.
  • the control unit 41 executes the viewer program stored in the storage unit 45 in accordance with a user instruction input to the operation unit 42.
  • control unit 41 performs display control of the page image 52 incorporated in the electronic book data 56 according to the script 65 incorporated in the electronic book data 56, and causes the display unit 43 to display the page image 52.
  • FIG. 17 is an example of a view selection menu displayed on the display unit 43 when the viewer program is executed.
  • the control unit 41 displays a view selection menu 86 for selecting a view used for displaying the page image 52 from the plurality of views.
  • a view is displayed on the display unit 43, a selection of a view is received by the operation unit 42, and a view selected by the operation unit 42 from among a plurality of view scripts 63 corresponding to a plurality of views incorporated in the electronic book data 56 is supported. Extract and run the script.
  • the script 65 corresponding to each of a plurality of views may be incorporated into the electronic book data 56 so that the viewer apparatus 4 can perform a view selection operation.
  • the view selection unit 106 can select a plurality of views
  • the template selection unit 108 selects a plurality of view scripts 63 as templates 54 corresponding to the plurality of views selected by the view selection unit 106.
  • the electronic book output unit 112 incorporates a plurality of view scripts 63 corresponding to the plurality of views selected by the view selection unit 106 into the electronic book data 56 formed of one file.
  • the binding direction attribute (page progress direction information) of the electronic book data 56 is input to the creator by the operation device 22 of the electronic book production apparatus 2, and the editing unit 110 of the electronic book production apparatus 2 receives the input binding direction attribute (page The electronic book data 56 may be generated based on the traveling direction information.
  • the editing unit 110 sets the page image arrangement order as the left starting point and the right ending point if the page progress direction is from left to right. If the page progression direction is from right to left, the editing unit 110 sets the page image arrangement order as the right start point and the left end point.
  • the display indicating the page position is also switched according to the binding direction attribute (page progress direction information).
  • the effect realized by the script when moving from the page image to the page image is also switched according to the page progress direction information.
  • the editing unit 110 switches the arrangement order of the page images in the electronic book data 56 and the content of the script display control based on the page progress direction information.

Abstract

 本発明は、画像解析技術を持たない制作者であっても、画像解析結果を有効活用し、所望の表示態様でページ画像を表示させることが可能になる電子書籍を容易に制作することを目的とする。本発明は、ページ画像の構成要素の座標情報を含む画像解析情報を取得する画像解析情報取得手段104と、記憶手段100に記憶された複数のテンプレートのうちから、ビュー選択手段106によって選択された表示態様に対応するテンプレートを選択するテンプレート選択手段108と、スクリプトのテンプレートに記述された変数に画像解析情報内のページ画像の構成要素の座標情報を埋め込むことによりスクリプトを生成する編集手段110と、テンプレート選択手段108によって選択されたテンプレートを組み込んだ電子書籍を出力する電子書籍出力手段112であって、ページ画像の構成要素の座標情報が埋め込まれたスクリプトを電子書籍に組み込む電子書籍出力手段112を備えた。

Description

電子書籍制作装置、ビューワ装置、電子書籍システム及び電子書籍制作方法
 本発明は、ページ毎の画像を有する電子書籍を作成する際に、画像解析結果を有効に活用したスクリプト付きの電子書籍を容易に作成することができる電子書籍制作装置、ビューワ装置、電子書籍システム及び電子書籍制作方法に関する。
 スマートフォン、タブレット端末、ブックリーダなど、新しい携帯端末の進展に伴い、これらの新しい携帯端末をビューワ装置として、電子書籍が普及しつつある。
 また、英語圏では電子書籍のフォーマットの標準規格として国際電子出版フォーラム(IDPF: International Digital Publishing Forum)により公開されたEPUB(Electronic PUBlication)フォーマットが普及し、日本語対応のEPUB3.0の仕様が公開されるに至った。
 独自フォーマットで作成された電子書籍は、その独自フォーマットに対応したハードウェアの販売が終了すれば、一般に閲覧が困難になり、価値が失われてしまうおそれがあるが、標準規格のEPUBフォーマットで作成された電子書籍であれば、そのEPUBフォーマットに対応したビューワ(EPUBビューワ)により誰でも閲覧可能なので、価値が失われないことになる。
 EPUBフォーマットでは、JavaScript(登録商標)によりインタラクティブな電子書籍を作成することが可能であり、JavaScript(登録商標)に対応したEPUBビューワによりインタラクティブな再生が可能である。
 特許文献1は、トレース表示機能を有するビューワを開示している。
 特許文献2は、画像を表示する機能を定義するスクリプトを含む表示用データを制作する際に、スクリプトのテンプレートの変数に適切な中身を埋め込むことを開示している。
特開2012-133660号公報 特開2008-67354号公報
 小説のようにテキストからなる電子書籍の場合、画面サイズに合わせてテキストを折り返して表示するリフロー機能を備えたビューワ装置であれば、画面サイズに関係なく閲覧することが可能である。つまり、テキストからなる電子書籍は、レイアウトの制約がないので、ビューワ装置の画面サイズに関係なく表示することができる。
 これに対して、コミックや写真集のように画像からなる電子書籍の場合、レイアウトの制約があるので、ビューワ装置の画面サイズに応じた表示が必要になってくる。例えば、紙媒体の原稿をスキャナで読み取って電子化した電子書籍の場合、紙媒体のサイズに起因した原稿のレイアウトを変更することなく、かつ、ビューワ装置の画面サイズに応じて、ページ毎に表示を行うことが要求される。
 画面サイズの小さな携帯電話で電子コミックを閲覧させる表示方法として、ページ毎の画像(以下「ページ画像」という)からコマ毎に切り取ったコマ画像を予め用意し、ユーザがボタンを押すたびに、1ページ内の読み順(観察順)に従ってコマを順送りするという表示態様(コマビュー)があるが、コマビューでは以下のような問題がある。
 問題1:各ページ画像からコマ毎のコマ画像を切り取る作業に大変な制作コストがかかる。
 問題2:各ページ画像からコマ画像を切り取ることは著作物の改変にあたるので、作者の許可が必要である。
 そこで、原稿の各ページ画像を解析して、コマの領域及び読み順、吹き出し(バルーン)の領域及び読み順などの画像解析情報を取得することで、原稿の各ページ画像を改変することなく、ビューワ装置で電子コミックを閲覧できるようにする表示態様が採用されている。
 特に、小さな画面サイズの携帯機器で各ページ画像を表示する場合には、人が書籍を読む軌跡を追うように、各ページ画像内の表示領域を自動的に切り替える「トレース表示」を行うことが必要になってくる。
 このようなトレース表示を行うため、画像解析技術として、ページ画像からコミックに特有なコマ、吹き出しの領域及び読み順を自動的に検出する技術が開発されており、このような画像解析技術を電子書籍の制作に有効に活用することが、望まれている。
 しかしながら、優秀な画像解析技術が存在するにしても、画像解析技術と電子書籍の制作技術とがひとつの技術分野として閉じているため、画像解析技術を持った制作者が電子書籍を制作しない限り、その画像解析技術の恩恵をユーザが享受することができなかった。つまり、画像解析技術を持つ制作者であれば画像解析結果を活用した表示が可能な電子書籍を作成することができるが、そのような画像解析技術を持つ制作者は限られており、画像解析技術を持たない制作者は、画像解析結果を活用した表示が可能な電子書籍を作成することができないため、例えばページめくりのような単純な操作をユーザに行わせる程度であれば可能であるが、画像解析結果に基づく動的な再生をビューワ装置で行わせるようにすることができなかった。
 引用文献1は、トレース表示を開示しているが、トレース表示は画像解析結果を利用した表示の一態様にすぎず、もっと様々な表示態様に対し画像解析結果を有効に活用できることが、望ましい。
 引用文献2は、スクリプトのテンプレートの変数に適切な中身を埋め込んでスクリプトを作成することを開示しているが、画像解析結果を有効に活用していない。
 本発明はこのような事情に鑑みてなされたもので、画像解析技術を持たない制作者であっても、画像解析結果(ページ画像の構成要素の座標情報)を有効活用し、所望の表示態様でページ画像を表示させることが可能になる電子書籍を容易に制作することができる電子書籍制作装置、ビューワ装置、電子書籍システム及び電子書籍制作方法を提供することを目的とする。
 上記の目的を達成するために、本発明は、複数ページのページ画像と複数ページのページ画像の表示制御が記述されたスクリプトとを組み込んで電子書籍を生成する電子書籍制作装置において、ページ画像の複数の表示態様のうちから、電子書籍に組み込むスクリプトの表示制御により実現させる表示態様を選択する第1の選択手段と、複数ページのページ画像を取得するページ画像取得手段と、ページ画像の構成要素の座標情報を含む画像解析情報を取得する画像解析情報取得手段と、複数の表示態様に対応する複数のテンプレートを記憶する記憶手段であって、ページ画像の構成要素の座標情報に対応する変数が記述されたスクリプトのテンプレートを記憶する記憶手段と、記憶手段に記憶された複数のテンプレートのうちから、第1の選択手段によって選択された表示態様に対応するテンプレートを選択する第2の選択手段と、スクリプトのテンプレートに記述された変数に画像解析情報内の座標情報を埋め込むことによりスクリプトを生成する編集手段と、第2の選択手段によって選択されたテンプレートを組み込んだ電子書籍を出力する電子書籍出力手段であって、座標情報が埋め込まれたスクリプトを電子書籍に組み込む電子書籍出力手段と、を備えた電子書籍制作装置を提供する。
 この電子書籍制作装置によれば、記憶手段に用意した複数の表示態様に対応する複数のテンプレートのうちから、第1の選択手段によって選択された表示態様に対応するテンプレートが選択され、その選択されたテンプレートが組み込まれた電子書籍であって、ページ画像の構成要素の座標情報が変数に埋め込まれたスクリプトを含む電子書籍が出力されるので、画像解析技術を持たない制作者であっても、画像解析結果(ページ画像の構成要素の座標情報)を有効活用し、所望の表示態様でページ画像をビューワ装置で表示させることが可能な電子書籍を容易に制作することができるようになる。
 一実施形態では、第1の選択手段は、表示態様を複数選択可能であり、第2の選択手段は、表示態様が複数選択された場合、選択された複数の表示態様に対応する複数のスクリプトのテンプレートを選択し、電子書籍出力手段は、第1の選択手段によって選択された複数の表示態様に対応する複数のスクリプトをひとつのファイルからなる電子書籍に組み込む。これにより、制作者は、複数の表示態様でページ画像の閲覧が可能となる電子書籍を、ひとつのファイルで閲覧者に提供することが可能になる。
 一実施形態では、スクリプトは、表示態様ごとの第1スクリプトと、複数の表示態様で共通である第2スクリプトとを含み、記憶手段は、第2スクリプト用のテンプレートとして複数ページで共通であるテンプレートを記憶し、編集手段は、ページごとに、画像解析情報の座標情報を第2スクリプト用のテンプレート内の変数に埋め込むことで、複数ページの前記第2スクリプトを生成する。これにより、表示態様ごとの第1スクリプトと、複数の表示態様で共通であって複数ページで共通である第2スクリプトのテンプレートとを用意するだけで、ページ毎の画像解析情報が反映されたスクリプトを組み込んだ各種の表示態様の電子書籍を容易に制作することができる。
 一実施形態では、第2スクリプト用のテンプレートは、座標情報の配列に置き換え可能な置換タグが記述されており、編集手段は、ページ毎に、画像解析情報からページ画像の構成要素の座標情報を閲覧時の観察順に抽出し、観察順に抽出された座標情報の配列で置換タグを置き換える。
 一実施形態では、編集手段は、ページ毎に、画像解析情報からページ画像の構成要素の座標情報を閲覧時の観察順に抽出し、観察順に抽出された座標情報の配列を第1の選択手段により選択された表示態様に対応するように変更し、第2スクリプト用のテンプレートに埋め込む。
 一実施形態では、記憶手段は、第1の選択手段で選択可能な複数の表示態様のそれぞれと、記憶手段に記憶された複数のテンプレートとの対応関係が記述された設定ファイルを記憶し、第2の選択手段は、設定ファイルに基づいて、第1の選択手段で選択された表示態様に対応するテンプレートを選択する。
 一実施形態では、電子書籍のページ進行方向が右から左及び左から右のいずれであるかを示すページ進行方向情報を入力する手段を備え、編集手段は、入力されたページ進行方向情報に基づいて、電子書籍におけるページ画像の並び順、又はスクリプトの表示制御の内容を切り替える。
 また、本発明は、電子書籍制作装置によって生成された電子書籍を閲覧するビューワ装置であって、表示部と、操作部と、複数の表示態様からページ画像の表示に用いる表示態様を選択するための選択メニューを表示部に表示させ、操作部により表示態様の選択を受け付け、電子書籍に組み込まれた複数の表示態様に対応した複数のスクリプトのうちから操作部により選択された表示態様に対応するスクリプトを抽出して実行する制御部と、を備えたビューワ装置を提供する。
 また、本発明は、電子書籍制作装置と、電子書籍制作装置によって生成された電子書籍を閲覧するビューワ装置とを備えた電子書籍システムを提供する。
 また、本発明は、複数ページのページ画像と複数ページのページ画像の表示制御が記述されたスクリプトとを組み込んで電子書籍を生成する電子書籍制作方法において、ページ画像の複数の表示態様に対応する複数のテンプレートを記憶する記憶手段を用い、ページ画像の複数の表示態様のうちから、電子書籍に組み込むスクリプトの表示制御により実現させる表示態様を選択する第1の選択ステップと、複数ページのページ画像を取得するページ画像取得ステップと、ページ画像の構成要素の座標情報を含む画像解析情報を取得する画像解析情報取得ステップと、記憶手段に記憶された複数のテンプレートのうちから、第1の選択ステップによって選択された表示態様に対応するテンプレートを選択し、かつページ画像の構成要素の座標情報に対応する変数が記述されたスクリプト用のテンプレートを記憶手段から取得する第2の選択ステップと、スクリプト用のテンプレートに記述された変数に画像解析情報内の座標情報を埋め込む編集ステップと、第2の選択ステップによって選択されたテンプレートを組み込んだ電子書籍を出力する電子書籍出力ステップであって、座標情報が埋め込まれたスクリプトを電子書籍に組み込む電子書籍出力ステップと、を備えた電子書籍制作方法を提供する。
 本発明によれば、画像解析技術を持たない制作者であっても、画像解析結果(ページ画像の構成要素の座標情報)を有効活用し、所望の表示態様でページ画像を表示させることが可能になる電子書籍を容易に制作することができるようになる。
図1は電子書籍システムの一例を示す全体構成図である。 図2は電子書籍制作装置の一例のハードウェア構成図である。 図3は電子書籍制作プログラムの入出力情報例を示す説明図である。 図4は電子書籍制作装置の一例の機能ブロック図である。 図5は電子書籍データの一例を示す図である。 図6はページ画像の一例を示す図である。 図7は画像解析情報の一例を示す図である。 図8はテンプレートの一例を示す図である。 図9はXHTMLファイルの一例を示す構成図である。 図10はページスクリプトのテンプレートの一例を示す図である。 図11は設定ファイルの一例を示す図である。 図12はコマハイライトの説明図である。 図13は吹き出しハイライトの説明図である。 図14はトレース表示の説明図である。 図15は電子書籍制作処理の概略フローチャートである。 図16はビューワ装置の一例のハードウェア構成図である。 図17はビュー選択メニューの一例を示す説明図である。
 以下、添付図面に従って、本発明の実施形態について、詳細に説明する。
 <システム構成>
 図1は、電子書籍システム(電子書籍データ配信システム)の一例を示す全体構成図である。
 スキャナ1は、紙面の書籍原稿を読み取ることで、1ページ毎の画像(以下「ページ画像」という)を生成する。尚、図1には、スキャナ1により紙媒体の書籍原稿を読み取ることで複数ページのページ画像を取得する例を示したが、このような場合に本発明は限定されない。電子的に生成された書籍原稿(デジタル原稿)をネットワークあるいは記録媒体を介して入力することで複数ページのページ画像を取得してもよい。
 電子書籍制作装置2は、複数ページのページ画像を含む電子書籍データ(単に「電子書籍」ともいう)の生成を行う装置である。電子書籍制作装置2は、例えば、コンピュータ装置によって構成される。
 サーバ装置3は、電子書籍制作装置2で生成された電子書籍データを、ビューワ装置4からの配信要求に応じて、ネットワークを介してビューワ装置4に送信する。サーバ装置3は、例えば、コンピュータ装置によって構成される。
 ビューワ装置4(4a,4b,4c,4d)は、サーバ装置3から送信された電子書籍データを受信して、ページ画像を表示する。ビューワ装置4は、携帯電話、スマートフォン、タブレット端末等の各種の携帯端末、あるいはパーソナルコンピュータ等の各種の端末装置(コンピュータ装置)である。
 ビューワ装置4の表示画面サイズは機種ごとに異なる。ビューワ装置4の表示画面サイズが電子書籍データの1ページごとのページ画像の全体の表示サイズよりも小さい場合には、1ページごとのページ画像内で、ビューワ装置4の表示画面サイズに対応した表示領域を順次移動させながら表示を行う。このようにページ画像内で表示画面サイズに対応した表示領域を移動させながら、その表示範囲内の部分画像をビューワ装置4の表示画面に順次に表示することを、以下では「トレース表示」又は「順次再生」ということもある。
 <電子書籍制作装置の構成要素>
 図2は、電子書籍制作装置2の一例のハードウェア構成図である。図2に示すように、本例の電子書籍制作装置2は、制御デバイス21、操作デバイス22、表示デバイス23、通信デバイス24、及び記憶デバイス25を備えたコンピュータ装置によって構成される。制御デバイス21は、例えばCPU(Central Processing Unit)によって構成される。本明細書ではCPUを「コンピュータ」ということもある。操作デバイス22は、例えばキーボード及びマウスによって構成される。表示デバイス23は、例えば液晶表示デバイスによって構成される、通信デバイス24は、ネットワークを介してサーバ装置3と通信可能なデバイスである。記憶デバイス25は、例えばハードディスクなどの大容量のディスクによって構成される。
 電子書籍制作装置2の制御デバイス21は、図3に示すように、電子書籍制作プログラム50を実行し、ビュー選択指示51、ページ画像52、画像解析情報53、テンプレート54、及び設定ファイル55に基づいて、EPUB形式の電子書籍データ56を生成する。尚、ビュー選択指示51、ページ画像52、画像解析情報53、テンプレート54、設定ファイル55、及び電子書籍データ56の詳細については、後述する。
 図4は、電子書籍制作装置2の一例の機能ブロック図である。
 本例の電子書籍制作装置2は、記憶手段100、ページ画像取得手段102、画像解析情報取得手段104、ビュー選択手段106(第1の選択手段)、テンプレート選択手段108(第2の選択手段)、編集手段110、電子書籍出力手段112を含んで構成されている。記憶手段100は、例えば図2の記憶デバイス25によって構成される。ページ画像取得手段102は、例えば図2の通信デバイス24によって構成される。画像解析情報取得手段104は、例えば図2の制御デバイス21または通信デバイス24によって構成される。ビュー選択手段106(第1の選択手段)、テンプレート選択手段108(第2の選択手段)、及び編集手段110は、例えば図2の制御デバイス21によって構成される。電子書籍出力手段112は、例えば図2の通信デバイス24によって構成される。
 記憶手段100は、図3のページ画像52、画像解析情報53、テンプレート54、及び設定ファイル55などの各種のファイルを記憶する。
 ページ画像取得手段102は、例えば図1のスキャナ1により紙媒体から読み取られた複数ページのページ画像52であって、電子書籍データ56(電子書籍)に組み込む複数ページのページ画像52を取得する。サーバ装置3から複数ページのページ画像52を取得してもよい。ページ画像52は、例えば、コマ及び吹き出しを含むコミック(漫画)のページ毎の画像が挙げられる。
 画像解析情報取得手段104は、ページ画像取得手段102によって取得された複数ページのページ画像52のそれぞれの画像解析情報53を取得する。画像解析情報53は、ページ画像52内の構成要素(例えば、「コマ」、「吹き出し」)の座標情報、及びページ画像52内の構成要素の観察順(読み順)を示す情報を含む。例えば、ページ画像取得手段102によって取得した複数ページのページ画像52を、ページごとに解析する。サーバ装置3に蓄積された画像解析情報53をサーバ装置3から取得してもよい。
 ビュー選択手段106は、ビュー選択指示51に従って、選択可能な複数のビュー(表示態様)のうちから後述のスクリプトによって実現させるビューを選択する。ここで、「ビュー」は、ビューワ装置4でページ毎にページ画像を表示するときの1ページのページ画像の表示態様である。例えば、電子書籍データ56が電子コミックデータである場合、観察順にコマ毎のハイライト表示を行う「コマハイライト」ビュー、観察順に吹き出し毎にハイライト表示を行う「吹き出しハイライト」ビュー、観察順にコマ及び吹き出しのハイライト表示を行う「コマ+吹き出しハイライト」ビュー、各ページ画像内で一定サイズの表示領域を移動させながら表示領域内の部分画像を順次表示する「トレース表示」ビューなどが、ビューとして挙げられる。
 テンプレート選択手段108は、設定ファイル55に従って、記憶手段100に記憶された複数のテンプレート54(テンプレートファイル)のうちから、ビュー選択手段106によって選択されたビュー(表示態様)に対応するテンプレート54を選択する。
 編集手段110は、テンプレート選択手段108によって選択されたテンプレート54を編集する。
 電子書籍出力手段112は、編集手段110によって編集されたテンプレート54を組み込んだ電子書籍データ56を出力する。
 <電子書籍データのデータ構成>
 電子書籍制作装置2によって生成する電子書籍データ56(単に「電子書籍」ともいう)のデータ構成例の概略について、図5を用いて説明する。
 図5に示すように、本例の電子書籍データ56は、複数ページのXHTMLファイル61、スタイルシート62、ビュースクリプト63、複数ページのページスクリプト64、及び、複数ページのページ画像52を含んで構成される。
 XHTMLファイル61は、XHTML(Extensible HyperText Markup Language)で記述されており、電子書籍データ56の構造をページ毎に示すファイル(構造記述ファイル)である。
 スタイルシート62は、XHTMLファイル61の要素をどのように修飾して表示するかを示すファイル(修飾記述ファイル)である。
 ビュースクリプト63及びページスクリプト64は、JavaScript(登録商標)で記述されたスクリプト65(スクリプトプログラム)であって、ページ画像52をインタラクティブに表示可能にするためにビューワ装置4で実行される。
 <電子書籍制作プログラムの入出力情報>
 図3に示した電子書籍制作プログラム50の入力情報(ビュー選択指示51、ページ画像52、画像解析情報53、テンプレート54、及び設定ファイル55)のそれぞれについて、説明する。
 ビュー選択指示51は、ビューワ装置4での各ページ画像の表示態様(ビュー)を示す指示情報であり、本例では、汎用のビューワ装置4のいずれかで実現可能な複数のビューのうちから、どのビューに対応するスクリプト65を作成して電子書籍データ56に組み込むかを示す。
 ページ画像52は、本例では紙媒体からスキャナ1により読み取られたページ毎の画像である。図6に一例として示すページ画像は、コミック(漫画)の1ページ分の画像である。デジタルデータで生成されたページ毎の画像であってもよい。
 画像解析情報53は、ページ画像52のページ毎の解析結果を含む。詳細は後述する。
 テンプレート54は、図5の電子書籍データ56を構成するファイルのうち、XHTMLファイル61、スタイルシート62、及びスクリプト65(ビュースクリプト63及びページスクリプト64)の雛型である。ただし、本例では、電子書籍制作プログラム50の構成を簡易にするため、スタイルシート62及びビュースクリプト63については、テンプレートそのものが編集されずに電子書籍データ56に組み込まれる。
 設定ファイル55は、複数のビューの各々と各ビューに対応するテンプレート54との対応関係を示す設定情報が記述されたファイルである。つまり、設定ファイル55の設定情報は、ビュー選択指示51で示されたビューに対して、複数のテンプレート54のうちでどのテンプレート54を用いて電子書籍データ56を生成するかを示す。
 <画像解析情報>
 図3の画像解析情報53について、詳細に説明する。
 図7に示すように、本例の画像解析情報53は、メタデータ、ページ画像情報、マップ情報、及び目次情報によって構成されている。
 「メタデータ」は、書籍全体の属性情報である。例えば、タイトル、言語、綴じ方向(右綴じ/左綴じ)などが挙げられる。
 「ページ画像情報」は、各ページ画像52に関する情報である。例えば、ページ画像52のID(識別情報)、ページ画像52のサイズ(幅、高さ)、ページ画像52のリソース情報(URL)、ページ属性(表紙、目次、奥付など)などが挙げられる。
 「マップ情報」は、各ページ画像52の構成要素(例えば電子コミックであれば「コマ」、「吹き出し」など)に関する情報であって、各ページ画像52における各構成要素の領域を示す座標情報を含む。本例では、コマに関する情報であるコマ情報(コマの識別情報、コマの座標情報)と、吹き出しに関する吹き出し情報(吹き出しの識別情報、吹き出しの座標情報、所属するコマの識別情報)が、それぞれビューワ装置4での観察順(読み順)に配列されている。コマの座標情報は、ページ画像52におけるコマの領域を示す座標情報である。本例では、コマが四角形であり、コマの座標情報は、四角形の頂点(四点)の各々の座標情報である。吹き出しの座標情報は、ページ画像における吹き出しの領域を示す座標情報である。本例の吹き出しの座標情報は、吹き出し領域に外接する矩形(外接矩形)の頂点(四点)の各々の座標情報である。
 「目次情報」は、電子書籍データ56における目次を示す情報である。本例では、目次情報は、ページの識別情報(第何ページであるかを示す)と、テキストからなる。
 <テンプレート>
 図3のテンプレート54について、詳細に説明する。
 図8に示すように、本例のテンプレート54は、XHTMLファイル61のテンプレート(XHTMLファイルテンプレート66)、スタイルシート62、及びスクリプトテンプレート68によって構成されている。本例のスクリプトテンプレート68は、ビューの種類に依存するビュー個別のスクリプト(ビュースクリプト63)と、ビューの種類に依存しないビュー共通のスクリプト(ページスクリプト64)のテンプレート(ページスクリプトテンプレート67)とによって構成されている。
 本例では、テンプレート54の用意及び電子書籍データ56の生成を容易にするため、次のようにしている。
 第1に、XHTMLファイル61のテンプレート(XHTMLファイルテンプレート66)を、ビュー共通かつページ共通とし、ひとつのファイルのみをテンプレートとして用意している。
 第2に、スタイルシート62を、ビュー共通かつページ共通とし、電子書籍データ56にそのまま組み込み可能なひとつのファイルのみをテンプレートとして用意している。
 第3に、図5の電子書籍データ56に組み込むスクリプト65を、ビュー個別かつページ共通のビュースクリプト63(第1スクリプト)と、ビュー共通かつページ個別のページスクリプト64(第2スクリプト)とによって構成している。即ち、ビュー選択手段106で選択可能な複数のビューのそれぞれに対応する複数のビュースクリプト63であって、複数ページのページ画像で共通のビュースクリプト63と、ビュー選択手段106で選択可能な複数のビューで共通であって、複数ページのページ画像のそれぞれに対応する複数のページスクリプト64とが、電子書籍データ56に組み込まれる。また、ビュースクリプト63のテンプレートとして複数のビューにそれぞれ対応する複数のビュースクリプト63を用意し、かつ、ページスクリプト64のテンプレートとしてひとつのファイルのページスクリプトテンプレート67のみを用意している。編集手段110は、ページごとに、画像解析情報53内の座標情報(ページ画像の構成要素の座標情報)などを、ページスクリプトテンプレート67内の変数に埋め込むことで、複数ページのページ画像のそれぞれに対応するページスクリプト64を生成する。
 <XHTMLファイル及びそのテンプレート>
 図5の電子書籍データ56を構成するXHTMLファイル61、及び図8のテンプレート54を構成するXHTMLファイルテンプレート66について、詳細に説明する。
 XHTMLファイル61は、電子書籍データ56の文書構造をページ毎に定義したファイルであって、図9に示すように、XML宣言及び識別子の記述領域61a、ヘッダ情報(head)61b及び本体情報 (body) 61cを含んで構成される。
 本例では、ヘッダ情報61bに、少なくとも次の情報が記述される。
・ビューポートの幅及び高さ 
・スタイルシートのファイル名
・ビュースクリプトのファイル名
・ページスクリプトのファイル名
・前ページのXHTMLファイルのファイル名
・次ページのXHTMLファイルのファイル名
 本例では、本体情報61cに、ページ画像のファイル名が記述される。
 図8の本例のXHTMLファイルテンプレート66は、選択可能な複数のビュー(コマハイライト、吹き出しハイライト、コマ+吹き出しハイライト、トレース表示など)で共通の1つのファイルである。ただし、文書構造が異なるXHTMLファイル61を生成する必要がある場合、ビュー毎にテンプレートを用意してもよい。
 XHTMLファイルテンプレート66は、生成されるXHTMLファイル61と同様、XML宣言、識別子、ヘッダ(head)、本体(body)を含んで構成されたファイルである。
 <スタイルシート>
 図8のスタイルシート62は、ページの様式(装飾、レイアウトなど)が定義されたファイルである。本例では、CSS(Cascading Style Sheets)を用いている。
 本例のスタイルシート62は、選択可能な複数のビュー(コマハイライト、吹き出しハイライト、コマ+吹き出しハイライトなど)で共通の1つのファイルである。ただし、ビュー毎に装飾が異なるスタイルシート62を生成する必要がある場合、ビュー毎にテンプレートを用意してもよい。
 本例のスタイルシート62では、背景、背景キャンバス、コマキャンバス、吹出しキャンバス、タッチイベント領域のz-indexスタイル(重ね合わせの順序)を指定している。
 <ビュースクリプト>
 ビュースクリプト63は、JavaScript(登録商標)の表示制御プログラム本体であり、全ページ画像で共通である。
 本例のビュースクリプト63は、汎用のビューワ装置4で実行可能な複数のビュー(コマハイライト、吹き出しハイライト、コマ+吹き出しハイライト)の各々に対応した個別のファイルである。
 <ページスクリプトテンプレート>
 図10は、図8のページスクリプトテンプレート67の一例を示す。
 図10に示す本例のページスクリプトテンプレート67は、ページ画像52の構成要素(電子コミックであれば「コマ」、「吹き出し」など)の座標情報の配列を示す変数と、その変数に画像解析情報の座標情報の配列を埋め込むためのタグ(置換タグ)を有する。
 図10に示す本例のページスクリプトテンプレート67は、変数としてコマ座標配列変数(frameList)、及び吹き出し座標配列変数(balloonList)を有し、置換タグとしてコマ座標配列置換タグ71(%@FramePointList@%)、及び吹き出し座標配列置換タグ72(%@BalloonPointList@%)を有する。関数createPageFmdDataはコマ座標配列及び吹き出し座標配列を生成する関数である。
 コマ座標配列置換タグ71は、1ページのページ画像52における複数のコマの座標情報の配列に置き換え可能な置換タグである。編集手段110は、ページ毎に、画像解析情報53からコマの座標情報を閲覧時の観察順に抽出し、コマ座標配列置換タグ71を観察順に抽出されたコマの座標情報の配列で置き換える。また、吹き出し座標配列置換タグ72は、1ページのページ画像52における複数の吹出しの座標情報の配列に置き換え可能な置換タグである。編集手段110は、ページ毎に、画像解析情報53から吹出しの座標情報を閲覧時の観察順に抽出し、吹出し座標配列置換タグ72を観察順に抽出された吹出しの座標情報の配列で置き換える。
 また、本例のページスクリプトテンプレート67は、ビューポートのサイズ(幅と高さ)の置換タグ73、74(%@ViewWidth@%、%@ViewHeight@%)を有する。関数getViewportSizeは、ビューポートのサイズ(幅と高さ)を取得する関数である。
 また、本例のページスクリプトテンプレート67は、ページ画像ファイル名の置換タグ75(%@ImageFileName@%)を有する。関数getPageImageは、ページ画像ファイル名を取得する関数である。
 本例のページスクリプトテンプレート67は、複数のビュー(例えばコマハイライト・ビュー、吹き出しハイライト・ビュー、コマ+吹き出しハイライト・ビューなど)で共通の1つのファイルである。ただし、ビュー毎に異なる内容のページスクリプト64の生成が必要な場合、ビュー毎にページスクリプトテンプレート67を用意してもよい。
 尚、編集手段110がページ画像の構成要素の座標情報を直接的にテンプレートの変数に埋め込む場合を例に説明したが、編集手段110がページ画像の構成要素の座標情報を表示態様(ビュー)に対応するように変更した後、テンプレートの変数に埋め込むようにしてもよい。この場合、編集手段110は、ページ毎に、画像解析情報53からページ画像52の構成要素(コマ、吹出しなど)の座標情報を閲覧時の観察順に抽出し、その観察順に抽出された座標情報の配列を、ビュー選択手段106により選択された表示態様(ビュー)に対応するように変更し、ページスクリプトテンプレート67に埋め込む。
 <設定ファイル>
 図11は、図3の設定ファイル55の一例を示す。
 図11に示す本例の設定ファイル55は、ビュー選択手段106で選択可能な複数のビューのそれぞれと記憶手段100に記憶された複数のテンプレート54との対応関係が記述されたファイルである。本例の設定ファイル55は、記憶手段100に記憶されている。テンプレート選択手段108は、設定ファイル55に基づいて、ビュー選択手段106で選択されたビューに対応するテンプレート54を選択する。
 図11の設定ファイル55では、4種類のビュー(「プレーン」、「コマハイライト」、「吹出しハイライト」、「コマ+吹出しハイライト」)とテンプレート54との対応関係が記述されている。
 本例の設定ファイル55は、ビューごとに、次のリソース情報が記述されている。
・ビュースクリプトのテンプレートのリソース情報(格納場所)
・ページスクリプトのテンプレートのリソース情報(格納場所)
・XHTMLファイルのテンプレートのリソース情報(格納場所)
・スタイルシートのテンプレートのリソース情報(格納場所)
 <ビュー(表示態様)>
 「プレーン」ビューは、スクリプトの無い電子書籍データ56を出力する場合に選択される。「コマハイライト」ビューは、図12に示すように、ページ画像52内で観察順(読み順)にコマ81をハイライト表示する表示態様である。「吹き出しハイライト」ビューは、図13に示すように、ページ画像52内で観察順(読み順)に吹き出し82のみをハイライト表示する表示態様である。「コマ+吹出しハイライト」ビューは、ページ画像52内で観察順(読み順)にコマ及び吹き出しをハイライト表示する表示態様である。
 尚、説明の便宜上、選択可能なビューとして、「プレーン」ビュー、「コマハイライト」ビュー、「吹出しハイライト」ビュー、及び「コマ+吹出しハイライト」ビューのみを説明したが、他のビュー(例えば「コマズーム」ビュー、「トレース表示」ビューなど)を選択可能としてよい。「コマズーム」ビューは、ページ画像52内で観察順にコマを拡大して表示する。「トレース表示」ビューは、図14に示すように、ページ画像52内で表示画面サイズに対応した表示領域84(表示範囲)を、観察順(読み順)に並べられた基準位置の系列A1,A2,A3,A4,A5,A6,A7,A8,A9に沿って移動させる。ビューワ装置4には、観察順に順次移動する表示領域84内の部分画像が順次表示される。
 <電子書籍制作処理例>
 図15は、電子書籍制作処理の一例の流れを示すフローチャートである。
 まず、ビュー選択手段106によって、選択可能な複数のビュー(ページ画像の表示態様)のうちから、電子書籍データ56に組み込むスクリプトの表示制御により実現させるビューを選択する(ステップS1)。
 ここで、「ビュー」は、ビューワ装置4で、ページ画像が、どのような表示態様で表示されるかを示す。選択可能なビューは、電子書籍制作装置2で生成可能な全てのスクリプトのうちのいずれかのスクリプトの表示制御により、全てのビューワ装置4のうちの少なくともひとつのビューワ装置で実行可能なビューである。ビュー選択手段106によって選択された「ビュー」は、今回生成する電子書籍データ56に組み込むスクリプトにより実現される。
 本例の処理では、EPUB形式の電子書籍データ56の閲覧に用いられる汎用のビューワ装置4で実行可能なビューを選択する。例えば、「コマハイライト」、「吹き出しハイライト」、「コマ+吹き出しハイライト」、「コマズーム」、「トレース表示」)のうちから、1又は複数のビューを選択する。
 次に、ページ画像取得手段102によって、記憶手段100から、電子書籍データ56に組み込む複数ページのページ画像52を取得する(ステップS2)。尚、本例では、スキャナ1によって紙媒体をスキャンして生成されたページ画像52が、予め記憶手段100に記憶されており、その記憶手段100からページ画像52が取得される。
 次に、画像解析情報取得手段104によって、取得された複数ページのページ画像52をページ毎に解析することにより画像解析情報53を取得する(ステップS3)。即ち、電子書籍データ56に組み込む複数ページのページ画像52をページ毎に解析した結果(画像解析情報)を取得する。尚、画像解析後、制作者が操作デバイス22を介して画像解析情報53に情報を付加してもよい。また、予めページ画像52の解析を行い、その解析の結果としての画像解析情報53をネットワーク又は記録媒体から取得してもよい。
 次に、テンプレート選択手段108によって、記憶手段100に記憶された複数のテンプレート54のうちから、ステップS1で選択されたビューに対応するテンプレート54を選択し(ステップS4)、取得する(ステップS5)。本例では、記憶手段100から設定ファイル55を読み込むことにより、設定ファイル55に記述されたビューとテンプレートとの対応関係を示す情報に基づいて、ステップS1で選択されたビューに対応するテンプレート54を選択する。尚、テンプレート54は、取得した後に編集してから電子書籍データ56に組み込むファイルであってもよいし、取得した後に編集せずにそのまま電子書籍データ56に組み込むファイルであってもよい。
 具体的には、図11の設定ファイル55のリソース情報(ビュースクリプトのテンプレートのリソース情報、ページスクリプトのテンプレートのリソース情報、XHTMLファイルのテンプレートのリソース情報、スタイルシートのテンプレートのリソース情報)の記述に従い、各テンプレート(ビュースクリプトのテンプレート、ページスクリプトのテンプレート、XHTMLファイルのテンプレート、スタイルシートのテンプレート)の選択及び取得が行われる。テンプレートのリソース(取得先)は、記憶手段100内であってもよいし、ネットワークに接続されたサーバ装置3内であってもよい。
 本例では、電子書籍データ56を構成するページ画像以外のファイル(XHTMLファイル61、スタイルシート62、ビュースクリプト63、ページスクリプト64)のうち、XHTMLファイル61及びページスクリプト64は、それらのテンプレート(XHTMLファイルテンプレート66、ページスクリプトテンプレート67)に記述された変数に対して必要な情報を自動的に埋め込む編集が行われた後、電子書籍データ56に組み込まれる。スタイルシート62及びビュースクリプト63は、編集されずにそのまま電子書籍データ56に組み込まれる。このように本発明を容易に実施可能にするために、スタイルシート62及びビュースクリプト63を編集しない場合を例に説明しているが、ビューワ装置4での表示機能向上のために、スタイルシート62及びビュースクリプト63のうち少なくとも一方を編集後に電子書籍データ56に組み込んでもよい。
 編集手段110によって、ステップS5で取得されたテンプレートが編集される(ステップS6、ステップS7)。
 本例では、ページ共通のページスクリプト64用のテンプレート(ページスクリプトテンプレート67)に記述された変数に対して、画像解析情報53に記載されたページ毎の構成要素(「コマ」、「吹き出し」等のページ画像を構成する構成要素)の座標情報を、観察順(読み順)に埋め込むことで、ページスクリプト64を生成する(ステップS6)。本例では、ページ共通の1ファイルのページスクリプトテンプレート67から、複数ページのページ画像にそれぞれ対応した複数ファイルのページスクリプト64が生成される。
 図10に示したページスクリプトテンプレート67の場合、編集手段110は、具体的には、次のような処理を行う。
 図7に示した画像解析情報53のマップのコマ情報から、ページ毎に、コマ座標配列を抽出し、図10に示したページスクリプトテンプレート67のコマ座標配列置換タグ(%@FramePointList@%)71を、画像解析情報53から抽出された1ページ分のコマ座標配列に置き換える。コマ座標配列は、コマの座標情報がページ画像における観察順に配列された情報である。例えば、1ページのページ画像内に5個のコマが含まれている場合、コマ座標配列置換タグ71が、コマの観察順(読み順)に並べられた5コマ分の座標情報の配列(リスト)に置換される。本例ではひとつのコマの領域が四隅の合計4座標で表されているので、合計20の座標情報(4座標×5個)からなるコマ座標配列がページスクリプトテンプレート67に埋め込まれる。
 また、図7に示した画像解析情報53のマップの吹き出し情報から、ページ毎に、吹き出し座標配列を抽出し、図10に示したページスクリプトテンプレート67の吹き出し座標配列置換タグ(%@BalloonPointList@%)72を、画像解析情報53から抽出された1ページ分の吹き出し座標配列に置き換える。吹き出し座標配列は、吹き出しの座標情報がページ画像における観察順に配列された情報である。例えば、1ページのページ画像内に10個の吹き出しが含まれている場合、吹き出し座標配列置換タグ72が、吹き出しの観察順(読み順)に並べられた10個の吹き出し分の座標情報の配列(リスト)に置換される。本例ではひとつの吹き出しの領域が吹き出しに外接する四角形の四隅の合計4座標で表されているので、合計40の座標情報(4座標×10個)からなる吹き出し座標配列が、ページスクリプトテンプレート67に埋め込まれる。
 つまり、ページごとに、ページスクリプトテンプレート67におけるコマ座標配列と吹き出し座標配列とを生成する関数(CreatePageFmdData())の記述が完成することで、複数ページのページ画像にそれぞれ対応する複数ファイルのページスクリプト64が生成される。
 また、図7に示した画像解析情報53からページ画像52の幅及び高さを示す情報を抽出し、図10に示したページスクリプトテンプレート67のビューポート幅置換タグ(%@ViewWidth@%)73及びビューポート高さ置換タグ(%@ViewHeight@%)74を、画像解析情報53から抽出されたページ画像の幅及び高さを示す情報にそれぞれ対応するビューポート幅及びビューポート高さに置き換える。つまり、ページスクリプトテンプレート67において、ビューポートのサイズ(幅及び高さ)を取得する関数(getViewportSize())の記述が完成する。
 また、図7に示した画像解析情報53からページ画像ファイル名を抽出し、図10に示したページスクリプトテンプレート67のページ画像ファイル名置換タグ(%@ImageFileName@%)75を、画像解析情報53から抽出されたページ画像ファイル名に置き換える。つまり、ページスクリプトテンプレート67において、ページ画像ファイル名を取得する関数(getPageImage())の記述が完成する。
 また、本例では、ページ共通のXHTMLファイルテンプレート66に記述された変数に、ページ毎の必要な情報を埋め込むことで、ページ毎のXHTMLファイル61を生成する(ステップS7)。
 本例のXHTMLファイルテンプレート66は、図9に示したXHTMLファイルの「ビューポートの幅と高さ」、「スタイルシートのファイル名」、「ビュースクリプトのファイル名」、「ページスクリプトのファイル名」、「前ページのXHTMLファイルのファイル名」、「次ページのXHTMLファイルのファイル名」、及び「ページ画像のファイル名」にそれぞれ対応する置換タグが設けられている。つまり、XHTMLファイルテンプレート66には、ビューポート幅置換タグ、ビューポート高さ置換タグ、スタイルシートファイル名置換タグ、ビュースクリプトファイル名置換タグ、ページスクリプトファイル名置換タグ、前ページ置換タグ、次ページ置換タグ、ページ画像ファイル名置換タグが設けられている。
 このようなXHTMLファイルテンプレート66の場合、次のような処理を行う。図7に示した画像解析情報53のページ画像情報からページ画像の幅及び高さの情報を抽出し、XHTMLファイルテンプレート66のビューポート幅置換タグ及びビューポート高さ置換タグを、抽出したページ画像の幅及び高さの情報に対応する値に置換する。また、設定ファイル55からスタイルシートのファイル名、ビュースクリプトのファイル名、及びページスクリプトのファイル名を抽出し、XHTMLファイルテンプレート66のスタイルシートファイル名置換タグ、ビュースクリプトファイル名置換タグ、及びページスクリプトファイル名置換タグを、それぞれ、抽出したファイル名に置換する。また、XHTMLファイルテンプレート66の前ページ置換タグ及び次ページ置換タグを、それぞれ、前ページのXTHMLファイルのファイル名、及び次ページのXTHMLファイルのファイル名に置き換える。また、XHTMLファイルテンプレート66のページ画像ファイル名置換タグを、ページ画像ファイルのファイル名に置き換える。
 次に、ページ毎のXHTMLファイル61、スタイルシート62、ビュースクリプト63、ページ毎のページスクリプト64、及び、ページ毎のページ画像52を、ZIPフォーマットで、圧縮及びアーカイブし、一式の電子書籍ファイルとして出力する。
 <電子書籍制作プログラムの実行形態>
 本例では、選択するビューを引数として、電子書籍制作プログラムを実行するようになっている。電子書籍制作プログラムの実行指示は、操作デバイス22から直接行ってもよいし、電子書籍プログラムの実行指示を記述したジョブファイルを作成し、そのジョブファイルを制御デバイス21に実行させることにより行ってもよい。
 以上のように、本実施形態では、複数ページのページ画像52と複数ページのページ画像の表示制御が記述されたスクリプト65とを組み込んで電子書籍データ56(電子書籍)を生成する場合に、ページ画像52の複数の表示態様に対応する複数のテンプレート(図8の54)を記憶する記憶手段100を用い、ページ画像52の複数のビュー(表示態様)のうちから、電子書籍データ56に組み込むスクリプト65の表示制御により実現させるビュー(表示態様)を選択するステップS1と、複数ページのページ画像52を取得するステップS2と、ページ画像52の構成要素の座標情報を含む画像解析情報53を取得するステップS3と、記憶手段100に記憶された複数のテンプレート54のうちから、ステップS1によって選択されたビュー(表示態様)に対応するテンプレート54を選択し、かつページ画像52の構成要素の座標情報に対応する変数が記述されたページスクリプトテンプレート67(ページスクリプト64用のテンプレート)を記憶手段100から取得するステップS4,S5と、ページスクリプトテンプレート67に記述された変数に画像解析情報53内の座標情報を埋め込むステップS6と、XHTMLファイルテンプレート66を編集してXHTMLファイル61を生成するステップS7と、ステップS4によって選択されたテンプレート54を組み込んだ電子書籍データ56を出力するステップS8であって、座標情報が埋め込まれたページスクリプト64を電子書籍データ56に組み込むステップS8が、電子書籍制作プログラム50に従って、制御デバイス21(コンピュータ)の制御により実行される。
 <ビューワ装置>
 図16は、電子書籍制作装置2によって生成された電子書籍データ56を閲覧するビューワ装置4のハードウェア構成例を示す。本例のビューワ装置4は、制御部41、操作部42、表示部43、通信部44、及び記憶部45を備えた携帯端末によって構成される。制御部41は、例えばCPU(Central Processing Unit)によって構成される。操作部42及び表示部43は、例えばタッチパネルディスプレイによって構成される、通信部44は、ネットワークを介してサーバ装置3と通信可能なデバイスである。記憶部45は、例えばメモリによって構成される。
 通信部44は、サーバ装置3に電子書籍データ56の配信要求を行って、サーバ装置3から電子書籍データ56を受信する。
 制御部41は、操作部42に入力されたユーザの指示に従って、記憶部45に記憶されているビューワプログラムを実行する。
 また、制御部41は、電子書籍データ56に組み込まれているスクリプト65に従って、電子書籍データ56に組み込まれているページ画像52の表示制御を行い、ページ画像52を表示部43に表示させる。
 図17は、ビューワプログラムが実行されると表示部43に表示されるビュー選択メニューの一例である。
 制御部41は、電子書籍データ56に複数のビューに対応する複数のビュースクリプト63が組み込まれている場合、複数のビューからページ画像52の表示に用いるビューを選択するためのビュー選択メニュー86を表示部43に表示させ、操作部42によりビューの選択を受け付け、電子書籍データ56に組み込まれた複数のビューに対応した複数のビュースクリプト63のうちから操作部42により選択されたビューに対応するスクリプトを抽出して、実行する。
 <複数ビューの組みこみ>
 本実施形態の電子書籍制作装置2では、電子書籍データ56に複数ビューにそれぞれ対応したスクリプト65を組み込んで、ビューワ装置4でビューの選択操作を行えるようにしてもよい。この場合、ビュー選択手段106は、ビューを複数選択することが可能であり、テンプレート選択手段108は、ビュー選択手段106によって選択された複数のビューに対応するテンプレート54として複数のビュースクリプト63を選択し、電子書籍出力手段112は、ビュー選択手段106によって選択された複数のビューに対応する複数のビュースクリプト63を、ひとつのファイルからなる電子書籍データ56に組み込む。
 <ページ進行方向>
 電子書籍データ56の綴じ方向属性(ページ進行方向情報)を電子書籍制作装置2の操作デバイス22によって制作者に入力させ、電子書籍制作装置2の編集手段110が、入力された綴じ方向属性(ページ進行方向情報)に基づいて電子書籍データ56を生成するようにしてもよい。この場合、編集手段110は、ページ進行方向が左から右であれば、ページ画像の並び順を左起点及び右終点とする。また、編集手段110は、ページ進行方向が右から左であれば、ページ画像の並び順を右起点及び左終点とする。ページ位置を示す表示も、綴じ方向属性(ページ進行方向情報)に応じて切り替える。スクリプトによって実現する、ページ画像からページ画像に移動する際のエフェクトも、ページ進行方向情報に応じて切り替える。このように、編集手段110は、ページ進行方向情報に基づいて、電子書籍データ56におけるページ画像の並び順や、スクリプトの表示制御の内容を切り替える。
 <電子書籍データのバリエーション>
 以上、電子書籍データ(電子書籍)がマンガのページ画像を有する電子コミックデータである場合を例に説明したが、本発明はこのような場合に限定されるものではない。例えば、被写体を撮影して得られた画像をページ画像として有する電子書籍データであってもよい。
 なお、本発明は、本明細書において説明した例や図面に図示された例には限定されず、本発明の要旨を逸脱しない範囲において、各種の設計変更や改良を行ってよいのはもちろんである。
 2:電子書籍制作装置、4:ビューワ装置、41:ビューワ装置の制御部、42:ビューワ装置の操作部、43:ビューワ装置の表示部、44:ビューワ装置の通信部、45:ビューワ装置の記憶部、100:電子書籍制作装置の記憶手段、102:電子書籍制作装置のページ画像取得手段、104:電子書籍制作装置の画像解析情報取得手段、106:電子書籍制作装置のビュー選択手段(第1の選択手段)、108:電子書籍制作装置のテンプレート選択手段(第2の選択手段)、110:電子書籍制作装置の編集手段、112:電子書籍制作装置の電子書籍出力手段

Claims (10)

  1.  複数ページのページ画像と前記複数ページのページ画像の表示制御が記述されたスクリプトとを組み込んで電子書籍を生成する電子書籍制作装置において、
     前記ページ画像の複数の表示態様のうちから、前記電子書籍に組み込む前記スクリプトの表示制御により実現させる表示態様を選択する第1の選択手段と、
     前記複数ページのページ画像を取得するページ画像取得手段と、
     前記ページ画像の構成要素の座標情報を含む画像解析情報を取得する画像解析情報取得手段と、
     前記複数の表示態様に対応する複数のテンプレートを記憶する記憶手段であって、前記ページ画像の構成要素の座標情報に対応する変数が記述された前記スクリプトのテンプレートを記憶する記憶手段と、
     前記記憶手段に記憶された前記複数のテンプレートのうちから、前記第1の選択手段によって選択された表示態様に対応するテンプレートを選択する第2の選択手段と、
     前記スクリプトのテンプレートに記述された前記変数に前記画像解析情報内の前記座標情報を埋め込むことにより前記スクリプトを生成する編集手段と、
     前記第2の選択手段によって選択された前記テンプレートを組み込んだ前記電子書籍を出力する電子書籍出力手段であって、前記座標情報が埋め込まれた前記スクリプトを前記電子書籍に組み込む電子書籍出力手段と、
     を備えた電子書籍制作装置。
  2.  前記第1の選択手段は、前記表示態様を複数選択可能であり、
     前記第2の選択手段は、前記表示態様が複数選択された場合、選択された前記複数の表示態様に対応する複数のスクリプトのテンプレートを選択し、
     前記電子書籍出力手段は、前記第1の選択手段によって選択された前記複数の表示態様に対応する複数の前記スクリプトをひとつのファイルからなる前記電子書籍に組み込む請求項1に記載の電子書籍制作装置。
  3.  前記スクリプトは、前記表示態様ごとの第1スクリプトと、前記複数の表示態様で共通である第2スクリプトとを含み、
     前記記憶手段は、前記第2スクリプト用のテンプレートとして、前記複数ページで共通であるテンプレートを記憶し、
     前記編集手段は、ページごとに、前記画像解析情報の前記座標情報を前記第2スクリプト用のテンプレート内の前記変数に埋め込むことで、複数ページの前記第2スクリプトを生成する請求項1または2に記載の電子書籍制作装置。
  4.  前記第2スクリプト用のテンプレートは、前記座標情報の配列に置き換え可能な置換タグが記述されており、
     前記編集手段は、ページ毎に、前記画像解析情報から前記ページ画像の構成要素の座標情報を閲覧時の前記構成要素の観察順に抽出し、当該観察順に抽出された座標情報の配列で前記置換タグを置き換える請求項3に記載の電子書籍制作装置。
  5.  前記編集手段は、ページ毎に、前記画像解析情報から前記ページ画像の構成要素の座標情報を閲覧時の前記構成要素の観察順に抽出し、当該観察順に抽出された座標情報の配列を前記第1の選択手段により選択された表示態様に対応するように変更し、前記第2スクリプト用のテンプレートに埋め込む請求項3に記載の電子書籍制作装置。
  6.  前記記憶手段は、前記第1の選択手段で選択可能な複数の表示態様のそれぞれと、前記記憶手段に記憶された複数のテンプレートとの対応関係が記述された設定ファイルを記憶し、
     前記第2の選択手段は、前記設定ファイルに基づいて、前記第1の選択手段で選択された表示態様に対応する前記テンプレートを選択する請求項1から5のうちいずれか1項に記載の電子書籍制作装置。
  7.  前記電子書籍のページ進行方向が右から左及び左から右のいずれであるかを示すページ進行方向情報を入力する手段を備え、
     前記編集手段は、入力された前記ページ進行方向情報に基づいて、前記電子書籍における前記ページ画像の並び順、又は前記スクリプトの表示制御の内容を切り替える請求項1から6のいずれか1項に記載の電子書籍制作装置。
  8.  請求項2に記載の電子書籍制作装置によって生成された前記電子書籍を閲覧するビューワ装置であって、
     表示部と、
     操作部と、
     前記複数の表示態様から前記ページ画像の表示に用いる表示態様を選択するための選択メニューを前記表示部に表示させ、前記操作部により前記表示態様の選択を受け付け、前記電子書籍に組み込まれた複数の表示態様に対応した前記複数のスクリプトのうちから前記操作部により選択された表示態様に対応するスクリプトを抽出して実行する制御部と、
     を備えたビューワ装置。
  9.  請求項1から7のうちいずれか1項に記載の電子書籍制作装置と、前記電子書籍制作装置によって生成された前記電子書籍を閲覧するビューワ装置とを備えた電子書籍システム。
  10.  複数ページのページ画像と前記複数ページのページ画像の表示制御が記述されたスクリプトとを組み込んで電子書籍を生成する電子書籍制作方法において、前記ページ画像の複数の表示態様に対応する複数のテンプレートを記憶する記憶手段を用い、
     前記ページ画像の複数の表示態様のうちから、前記電子書籍に組み込む前記スクリプトの表示制御により実現させる前記ページ画像の表示態様を選択する第1の選択ステップと、
     前記複数ページのページ画像を取得するページ画像取得ステップと、
     前記ページ画像の構成要素の座標情報を含む画像解析情報を取得する画像解析情報取得ステップと、
     前記記憶手段に記憶された前記複数のテンプレートのうちから、前記第1の選択ステップによって選択された表示態様に対応するテンプレートを選択し、かつ前記ページ画像における前記構成要素の座標情報に対応する変数が記述された前記スクリプト用のテンプレートを前記記憶手段から取得する第2の選択ステップと、
     前記スクリプト用のテンプレートに記述された前記変数に前記画像解析情報内の前記座標情報を埋め込む編集ステップと、
     前記第2の選択ステップによって選択された前記テンプレートを組み込んだ前記電子書籍を出力する電子書籍出力ステップであって、前記座標情報が埋め込まれた前記スクリプトを前記電子書籍に組み込む電子書籍出力ステップと、
     を備えた電子書籍制作方法。
PCT/JP2013/073796 2012-09-14 2013-09-04 電子書籍制作装置、ビューワ装置、電子書籍システム及び電子書籍制作方法 WO2014042053A1 (ja)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2012-203411 2012-09-14
JP2012203411 2012-09-14

Publications (1)

Publication Number Publication Date
WO2014042053A1 true WO2014042053A1 (ja) 2014-03-20

Family

ID=50278167

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2013/073796 WO2014042053A1 (ja) 2012-09-14 2013-09-04 電子書籍制作装置、ビューワ装置、電子書籍システム及び電子書籍制作方法

Country Status (1)

Country Link
WO (1) WO2014042053A1 (ja)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108573516A (zh) * 2018-04-28 2018-09-25 掌阅科技股份有限公司 绘本文件的生成方法、计算设备及计算机存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008067354A (ja) * 2006-08-11 2008-03-21 Sharp Corp 画像表示装置、画像データ提供装置、画像表示システム、画像表示システムの制御方法、制御プログラム、および、記録媒体
JP2011039520A (ja) * 2001-08-07 2011-02-24 Square Enix Co Ltd 電子情報処理装置および電子情報処理方法
JP2012133660A (ja) * 2010-12-22 2012-07-12 Fujifilm Corp 電子コミックのビューワ装置、電子コミックの閲覧システム、ビューワプログラム、該ビューワプログラムが記録された記録媒体ならびに電子コミックの表示方法
JP2012160002A (ja) * 2011-01-31 2012-08-23 Kddi Corp レイアウトテンプレート生成装置および画像レイアウト装置
JP2012168590A (ja) * 2011-02-09 2012-09-06 Univ Of Electro-Communications コミック閲覧システム

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011039520A (ja) * 2001-08-07 2011-02-24 Square Enix Co Ltd 電子情報処理装置および電子情報処理方法
JP2008067354A (ja) * 2006-08-11 2008-03-21 Sharp Corp 画像表示装置、画像データ提供装置、画像表示システム、画像表示システムの制御方法、制御プログラム、および、記録媒体
JP2012133660A (ja) * 2010-12-22 2012-07-12 Fujifilm Corp 電子コミックのビューワ装置、電子コミックの閲覧システム、ビューワプログラム、該ビューワプログラムが記録された記録媒体ならびに電子コミックの表示方法
JP2012160002A (ja) * 2011-01-31 2012-08-23 Kddi Corp レイアウトテンプレート生成装置および画像レイアウト装置
JP2012168590A (ja) * 2011-02-09 2012-09-06 Univ Of Electro-Communications コミック閲覧システム

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108573516A (zh) * 2018-04-28 2018-09-25 掌阅科技股份有限公司 绘本文件的生成方法、计算设备及计算机存储介质
CN108573516B (zh) * 2018-04-28 2019-09-24 掌阅科技股份有限公司 绘本文件的生成方法、计算设备及计算机存储介质

Similar Documents

Publication Publication Date Title
US11514234B2 (en) Method and system for annotation and connection of electronic documents
CN104239305B (zh) 生成及展现电子文档的方法及装置
US9880709B2 (en) System and method for creating and displaying previews of content items for electronic works
KR101890831B1 (ko) 전자책 서비스 제공방법 및 그를 위한 컴퓨터 프로그램
CN102663198A (zh) 一种web后台与前台结合的在线设计制作印制品的方法及系统
US8952989B2 (en) Viewer unit, server unit, display control method, digital comic editing method and non-transitory computer-readable medium
JP2014524623A5 (ja)
JP2014197341A (ja) 電子書籍制作装置、電子書籍システム、電子書籍制作方法及びプログラム
CN109710258A (zh) 微信小程序界面生成的方法及装置
CN109190078A (zh) 网页构建方法、装置和存储介质
TWI594196B (zh) 電子文件製作系統及其電子文件製作方法
US20140351679A1 (en) System and method for creating and/or browsing digital comics
Hrabovskyi et al. The methodology of developing a mobile application design for creating a genealogical tree
JP4870581B2 (ja) パーツカタログ作成システム、コンピュータが実行するためのプログラム、およびコンピュータが読み取り可能な記録媒体
JP2017097686A (ja) 情報処理装置、その制御方法及びプログラム
WO2014042053A1 (ja) 電子書籍制作装置、ビューワ装置、電子書籍システム及び電子書籍制作方法
Spritzer et al. Towards a smooth design process for static communicative node‐link diagrams
JP2017027319A (ja) 帳票文書データの表示・編集・保存方法、装置、処理プログラム
CN115309476A (zh) 一种基于浏览器的ofd文件显示和编辑方法
WO2014050960A1 (ja) 電子書籍制作装置、電子書籍制作方法、電子書籍閲覧システム、ビューワ装置、及び電子書籍閲覧方法
JP5407700B2 (ja) 画像処理システム、情報処理装置、画像処理装置、及びプログラム
JP5614924B2 (ja) デジタルコンテンツ作成方法、デジタルコンテンツ作成用のプログラム、及びデジタルコンテンツ作成装置
US20130104014A1 (en) Viewer unit, server unit, display control method, digital comic editing method and non-transitory computer-readable medium
JP6518025B1 (ja) Webページの表示を指示する表示指示データを変換するためのプログラム、記録媒体及びシステム
WO2014042052A1 (ja) ビューワ装置、表示制御方法及びプログラム

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13836309

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13836309

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: JP