WO2013097799A1 - 版式文件的处理方法和装置 - Google Patents

版式文件的处理方法和装置 Download PDF

Info

Publication number
WO2013097799A1
WO2013097799A1 PCT/CN2012/087998 CN2012087998W WO2013097799A1 WO 2013097799 A1 WO2013097799 A1 WO 2013097799A1 CN 2012087998 W CN2012087998 W CN 2012087998W WO 2013097799 A1 WO2013097799 A1 WO 2013097799A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
interactive object
xml file
dynamic interactive
layout
Prior art date
Application number
PCT/CN2012/087998
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 北大方正集团有限公司
Priority to JP2014526381A priority Critical patent/JP5930497B2/ja
Priority to US14/129,875 priority patent/US20140149847A1/en
Priority to EP12861183.7A priority patent/EP2711846A4/en
Publication of WO2013097799A1 publication Critical patent/WO2013097799A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/106Display of layout of documents; Previewing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/14Tree-structured documents
    • G06F40/143Markup, e.g. Standard Generalized Markup Language [SGML] or Document Type Definition [DTD]
    • 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 the field of digital publishing, and in particular to a method and apparatus for processing a layout file. Background technique
  • the layout file converts files of various formats into a unified format, and truly maintains the layout and information of text, graphics, formulas and colors in the original file in the conversion, and achieves consistent display results on different terminal devices and reading software. Sex.
  • the layout file adopts a static absolute description method. In the customized coordinate system, the position and size of each primitive (such as characters, pictures, tables, etc.) are clearly recorded, so that the document is printed.
  • the results are consistent with the results of browsing on a computer, and display consistency in any computer environment (such as the operating system of a desktop computer, notebook, tablet, smart phone, etc.), to ensure that the original appearance of the document is truly reproduced.
  • the layout file is determined by its own characteristics, the content can only be statically displayed, although it also supports some multimedia interactive functions, such as audio and video file playback, but for more complex dynamic interaction capabilities, such as virtual Real-world scene roaming, game functions, etc. Due to the complexity of interactive content, the uncertainty of interaction behavior, the diversity of interactive platforms, the scalability of interactive functions, and so on, the interaction effect in the layout file# It is very difficult to define a complete and detailed definition.
  • An aspect of the present application provides a method for processing a layout file, including: a generated xml file, wherein the xml file includes parameters of a dynamic interactive object; and setting in a description of the layout file for opening the The action of the xml file, such that after the action is triggered to open the xml file, the effects and behavior of the dynamic interactive object are displayed.
  • the device can include:
  • An xml file generation module for generating an xml file including parameters of the dynamic interactive object
  • a data creation module configured to set an action for opening the xml file in a description of the layout file, so that after the action is triggered to open the xml file, displaying the effect and behavior of the dynamic interactive object .
  • the processing device of the layout file may further include a data display module, configured to trigger the action to open the xml file to obtain the dynamic interactive object when the layout file is opened by a reader. Thereby the effects and behavior of the dynamic interactive object are presented at the reader.
  • Another aspect of the present application also provides a computer readable storage medium having stored in the storage medium:
  • An instruction for opening the xml file in a description of the layout file such that after the action is triggered to open the xml file, an instruction for the effect and behavior of the dynamic interactive object is displayed.
  • the storage medium may further be configured to: when the layout file is opened by the reader, trigger the action to open the xml file to obtain the Dynamically interactive objects, thereby presenting instructions of the dynamic interactive object's effects and behavior at the reader.
  • the processing method and apparatus for the layout file of the present invention overcomes the problem that the layout file of the prior art can only be statically displayed because the dynamic interactive object is described by xml, and the dynamic effect is displayed in the layout file.
  • Figure 1 is a block diagram showing an apparatus for processing a layout file according to an embodiment of the application.
  • Figure 2 shows a method for processing a layout file according to an embodiment of the present application.
  • Figure 3 illustrates a flow chart of a method for processing a layout file in accordance with another embodiment of the present application. detailed description
  • the apparatus 100 includes an XML file generation module 10 and a data creation module 20.
  • the XML file generation module 10 is for generating an xml file having parameters of the dynamic interactive object therein.
  • Dynamic interactive objects can include at least one of audio, video, images, three-dimensional data files, and applications.
  • Ground, the parameters of a dynamically interactive object include the layout position, size, and interactive behavior definition that these objects will be set to. These parameters can be described in the xml file and referenced to dynamic interactive objects. This will be further described below.
  • the data creation module 20 is configured to set an action for opening the xml file in the description of the layout file, so that after the action is triggered to open the xml file, the effect and behavior of the dynamic interactive object are displayed. That is, the display of dynamic effects is implemented in the layout file.
  • the apparatus 100 for processing a layout file may further include a data display module 30.
  • the module 30 is configured to trigger the above set action to open the xml file when the layout file is opened (for example, on the reader), and obtain the dynamic interactive object referenced in the xml file, thereby displaying (for example, at the application layer of the reader) The effects and behavior of dynamic interactive objects.
  • Methods 200 and 300 for processing a layout file provided in accordance with another aspect of the present application will now be described with reference to FIGS. 2 and 3. Those skilled in the art will further understand the specific cooperative relationships between modules 10-30 described above by way of the description of methods 200 and 300.
  • FIG. 2 illustrates a method 200 for processing a layout file in accordance with an embodiment of the present application.
  • the method 200 begins at step S210.
  • the XML file generation module 10 generates an xml file.
  • the generated xml file includes the resources used by the dynamic interactive object and its parameters.
  • the xml file generated by the resources and parameters of the dynamic interactive object can be implemented by the existing typesetting technology. For example, in a fixed page range, objects of different types, such as text, tables, graphics, images, etc., are placed to achieve the best aesthetic rendering, which attracts attention or brings a comfortable reading experience. .
  • step S220 the data creation module 20 sets an action for opening the xml file in the description of the layout file, so that after the trigger action opens the xml file, the effect and behavior of the dynamic interactive object are displayed.
  • the layout file is described by xml, which breaks through the static effect of the traditional layout file, and has almost unlimited expansion capability in the way the content is displayed. Any new interaction method can be quickly and conveniently embedded into the layout file.
  • the two-way communication channel between the reader and the media has been established, and the user has also greatly improved in reading body 3.
  • the interactive object is different from the static page object contained in the traditional typesetting.
  • the reader can interact with the content presented by the layout, which expands the reading dimension and deepens the reading experience.
  • the xml file describes the parameters and references the resources.
  • the xml file is a single data storage language, using one
  • the tag of the series is described in terms of data, and these tags can be created in a convenient manner to facilitate understanding and use in different applications and platforms.
  • the event that triggers the action can be called by the reader, such as some reading behavior, such as scrolling to the layout where the xml file is located, or clicking on the area associated with the xml file on the layout.
  • a reader is a layout file interpreter that can parse an xml configuration file for an interactive object. Such readers can implement the effects and behavior of the defined interactive objects at the application layer level depending on the type of system platform in which they are located. Different system platforms are implemented differently, but through xml description, the final effect should be consistent.
  • a method 300 for processing a layout file is shown.
  • steps S310 and 320 are the same as steps S210 and S220 described above. Therefore, it will not be repeated.
  • the data presentation module 30 operates to open the layout file. For example, open the layout file in the reader.
  • the data presentation module 30 triggers an action to open the xml file to obtain a dynamically interactive object, and then in step S350, the effect and behavior of the dynamic interactive object is displayed at a reader (e.g., the application layer of the reader).
  • Actions are activated by events, which are actions that the reader produces when reading a layout file, such as opening or closing a page, clicking on an area on the page, and so on. At the same time, the execution of the event is valid in a specific area on the page. This area is called the Region.
  • An event is generated in the hot zone, so that the activated actions can be divided into multiple classes, one of which is a Uniform Resource Identifier (URI), which is a string used to uniquely identify a resource. The string describes the network path or local path of the resource.
  • URI Uniform Resource Identifier
  • the path address of the aforementioned xml file is saved as a URI action in the layout file, so that an association can be established between the layout file and the interactive object.
  • the action hotspot can cover the entire page range or an area on the page.
  • the interactive object corresponding to the former is called a page-level interactive object.
  • the triggering event of such an interactive object is generally "opening the page”.
  • the interactive object is specified on the layout. Rendering position; the interactive object corresponding to the latter is called a component-level interactive object.
  • Such interactive object is generally triggered by "user clicks on a certain area of the page”.
  • typesetting the interactive object does not have to occupy the page, but Presented by pop-up.
  • the interactive object is placed on the layout.
  • the preferred embodiment of the present invention sets some rules for this, and divides the xml file description of the interactive object into two parts: a public setting and a private setting.
  • the public settings mainly include the properties of the interactive object, the related information of the typesetting, and the appearance setting of the interactive object. For example, the type of object, the ID of the object, the location and size of the area placed in the layout, the background color or background image of the object, the transparency of the background, the border type of the object, and the width and color of the border.
  • the private settings vary depending on the type of interaction object. The following points need to be noted: 1. If the object resource reference is involved in the parameter setting, the reference path should use the relative path as much as possible to avoid the representation of the absolute path. 2. When multiple parameter groups with similar structures are encountered, you can use The array (Array) + dictionary ( Dictionary ) xmU ii format, which helps the reader to quickly and easily obtain parameter information when parsing interactive objects.
  • the following uses the interactive object panorama browsing as an example to illustrate the xml format.
  • the resources of the panorama are six images, which respectively correspond to the images of the front, right, back, left, upper and lower directions of the browsing scene.
  • the user can place the observation viewpoint in the center of the scene and change the viewing angle by interaction. Get a seamless view of the scene in all directions.
  • An example of the description of its xml file is as follows:
  • the texts in ⁇ key> and ⁇ /key> are keywords.
  • Function—Type, ID, and Bound—Box are all public settings, and the remaining parameters are private settings. Since each orientation image requires two attributes to describe: the orientation identifier and the image path. Therefore, the image parameters of each orientation are organized into a dictionary ⁇ dict> ⁇ /dict>, and then six orientation images are placed in the array description. That is, between ⁇ array> and ⁇ /array>, the array parameter is finally indexed according to the private setting Image_List. This is just the most straightforward description, and the user can add more parameter descriptions depending on the desired effect.
  • the reader interprets the layout file processed in the above manner, it will locate the xml file of the interactive component through the URI, and then obtain the configuration parameters and resource paths of the component, and then implement the final component in the application layer of the platform according to these settings. effect.
  • the disclosed and other embodiments and the functional operations described in this specification can be implemented in digital circuits or computer software, firmware or hardware including the structures disclosed in the specification and their structural equivalents, or one of them. Or a combination of multiples to implement.
  • the disclosed and other embodiments can be implemented as one or more computer program products, i.e., one or more modules of computer program instructions encoded on a computer readable medium for execution or control of operation by a data processing device.
  • the computer readable medium can be a machine readable storage device, a machine readable storage substrate, a memory device, a synthetic material that affects a machine readable propagated signal, or a combination of one or more of them.
  • data processing apparatus encompasses all apparatus, devices, and machines for processing data, including, for example, a programmable processor, a computer, a plurality of processors, or a computer.
  • the apparatus can include code to create an execution environment for the computer program in question, such as code that forms processor firmware, a protocol branch, a database management system, and an operating system, or one or more combinations thereof.
  • a propagated signal is an artificially generated signal, such as a machine-generated electrical, optical, or electromagnetic signal that is generated to encode information for transmission to an appropriate receiver device.
  • a computer program (also referred to as a program, software, software application, script, or code) can be written in any form of programming language, including compiled or interpreted language, and can be deployed in any form, including as a stand-alone program. Or as a module, component, subroutine or other unit suitable for use in a computing environment.
  • the computer program does not need to correspond to a file in the file system.
  • the program can be stored in other programs or data (for example, save One part of a file stored in one or more scripts in a markup language document, in a single file dedicated to the program in question, or multiple collaborative files (for example, storing one or more modules, subroutines, or code parts) In the file).
  • the computer program can be deployed to be executed on one computer or on a plurality of computers located in one location or distributed across multiple locations and interconnected by a communication network.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • User Interface Of Digital Computer (AREA)
  • Processing Or Creating Images (AREA)
  • Document Processing Apparatus (AREA)

Abstract

提供了一种版式文件的处理方法和装置。版式文件的处理装置可包括:xml文件生成模块(10),用于生成包括动态交互式对象的参数的xml文件;以及数据制作模块(20),用于在所述版式文件的描述中设定用于打开所述xml文件的动作,从而使得触发所述动作打开所述xml文件后,展示所述动态交互式对象的效果和行为。在一个实施方式中,版式文件的处理装置还可包括:数据展示模块(30),用于在所述版式文件被阅读器打开时,触发所述动作以打开所述xml文件以得到所述动态交互式对象,从而在所述阅读器展示所述动态交互式对象的效果和行为。

Description

版式文件的处理方法和装置 相关交叉引用
本申请要求 2011 年 12 月 31 日提交的、 申请号为
201110461688.X的发明申请的优先权, 其全部内容通过引用并入本 文。 技术领域
本发明涉及数字出版领域, 具体而言, 涉及一种版式文件的处 理方法和装置。 背景技术
版式文件将各种格式的文件转换成统一格式, 在转换中真实地 保持了原有文件中的文字、 图表、 公式和色彩等版式和信息, 实现 在不同终端设备和阅读软件上具有显示结果一致性。 版式文件采用 的是一种静态的绝对描述方式, 在自定义的坐标系中, 明确记录了 每个图元 (如字符、 图片、 表格等) 显示的位置和尺寸等, 从而使 文档打印出的结果和计算机上浏览的结果一致, 而且在任何计算机 环境 (如桌面电脑、 笔记本、 平板电脑、 智能手机等终端的操作系 统) 下具有显示一致性, 保证真实地重现文档的原貌。
由于版式文件由于本身的特性所决定, 只能将内容作静态地展 示, 虽然也有限地支持一些多媒体的交互功能, 比如音频、 视频文 件的播放, 但对于更为复杂的动态交互能力, 比如虚拟现实场景的 漫游、 游戏功能等, 由于交互内容的复杂性、 交互行为的不确定性、 交互平台的多样性、 交互功能的可扩展性等等多方面因素, 要在版 式文件中对交互效果 #文出一个完整而又细致的定义非常困难。
随着第四波 IT浪潮 移动互联网时代的到来,新媒体的兴起 对传统的版式文件的展示能力提出了更高的要求: 内容选择的个性 化、 信息获取的即时性、 阅读体验的娱乐性等等。 然而, 现有的版 式文件格式无法满足这些要求。 发明内容
本申请的一方面提供了一种版式文件的处理方法, 包括: 生成 的 xml文件, 其中所述 xml文件中包括动态交互式对象的参数; 以 及在版式文件的描述中设定用于打开所述 xml文件的动作, 从而使 得触发所述动作打开所述 xml文件后, 展示所述动态交互式对象的 效果和行为。
本申请的另一方面提供了一种版式文件的处理装置。 该装置可 包括:
xml文件生成模块,用于生成包括动态交互式对象的参数的 xml 文件; 以及
数据制作模块, 用于在所述版式文件的描述中设定用于打开所 述 xml文件的动作, 从而使得触发所述动作打开所述 xml文件后, 展示所述动态交互式对象的效果和行为。
作为一种选择, 上述版式文件的处理装置还可包括数据展示模 块, 用于在所述版式文件被阅读器打开时, 触发所述动作以打开所 述 xml文件以得到所述动态交互式对象, 从而在所述阅读器展示所 述动态交互式对象的效果和行为。
本申请的另一方面还提供了这样一种计算机可读存储介质, 在 该存储介质中存储有:
用于生成的 xml文件的指令, 其中所述 xml文件中包括动态交 互式对象的参数; 以及
用于在版式文件的描述中设定用于打开所述 xml文件的动作, 从而使得触发所述动作打开所述 xml文件后, 展示所述动态交互式 对象的效果和行为的指令。
可选择地, 在所述存储介质中还可存储有: 用于在所述版式文 件被阅读器打开时, 触发所述动作以打开所述 xml文件以得到所述 动态交互式对象, 从而在所述阅读器展示所述动态交互式对象的效 果和行为的指令。
本发明的版式文件的处理方法和装置因为采用通过 xml描述动 态交互式对象, 所以克服了现有技术的版式文件只能静态展示的问 题, 在版式文件中实现了动态效果的展示。 附图说明
此处所说明的附图用来提供对本发明的进一步理解, 构成本申 请的一部分, 本发明的示意性实施方式及其说明用于解释本发明, 并不构成对本发明的不当限定。 在附图中:
图 1为示出才艮据申请一个实施方式的、 用于处理版式文件的装 置的方框图。
图 2示出了才艮据本申请一个实施方式的、 用于处理版式文件的 方法 ¾i程图.
图 3示出了根据本申请另外一个实施方式的、 用于处理版式文 件的方法的流程图。 具体实施方式
图 1为示出才艮据申请一个实施方式的、 用于处理版式文件的装 置 100的方框图。 如图 1所示, 装置 100包括 XML文件生成模块 10和数据制作模块 20。 XML文件生成模块 10用于生成在其中具有 动态交互式对象的参数的 xml文件。 动态交互式对象可包括音频、 视频、 图像、 三维数据文件、 应用程序中的至少一项。 地, 动态交 互式对象的参数包括这些对象将要设置的版面位置、 大小、 交互式 行为定义。 在 xml文件中可对这些参数进行 4 述, 并对动态交互式 对象进行引用。 这将在下文中做进一步的描述。
数据制作模块 20则用于在版式文件的描述中设定用于打开 xml 文件的动作, 从而使得触发该动作打开 xml文件后, 展示动态交互 式对象的效果和行为。 即, 在版式文件中实现了动态效果的展示。 可选地, 如图 1所示, 用于处理版式文件的装置 100还可包括 数据展示模块 30。 该模块 30用于在版式文件打开时 (例如在阅读 器上), 触发上述设置的动作以打开 xml文件, 得到 xml文件中引 用的动态交互式对象, 从而 (例如在阅读器的应用层)展示动态交 互式对象的效果和行为。
下面将参照图 2和图 3描述根据本申请另一方面提供的用于处 理版式文件的方法 200和 300。 通过对方法 200和 300的描述 , 本 领域技术人员可以进一步理解上述模块 10-30 之间的具体协作关 系。
图 2示出了根据本申请一个实施方式的、 用于处理版式文件的 方法 200。 方法 200从步骤 S210开始。 在该步骤中, XML文件生 成模块 10生成 xml文件。 如上所述, 生成的 xml文件包括动态交 互式对象所用的资源及其参数。 可以采用现有的排版技术将动态交 互式对象所用的资源及其参数生成的 xml文件。 例如在固定的页面 范围内, 摆置各种不同型态的对象, 如文字、 表格、 图形、 图像等 等, 以达到最佳美感的呈现效果, 从而引人注意或带来阅读上的舒 适体验。
接着,在步骤 S220中,数据制作模块 20在版式文件的描述中设 定用于打开所述 xml文件的动作, 从而使得触发动作打开所述 xml 文件后, 展示动态交互式对象的效果和行为。 版式文件通过 xml描 述, 突破了传统版式文件的静态效果, 在内容的展现方式上几乎具 有无限的扩展能力, 任何新的交互方式都可以迅速而且便捷地嵌入 到版式文件当中。 同时,读者与媒体之间搭建起了双向沟通的渠道, 用户在阅读体 3 上也获得了极大提升。 交互式对象有别于传统排版 所包含的静态页面对象, 阅读者能够通过它, 与版面所呈现的内容 之间发生互动, 从而扩展了阅读的维度, 加深了阅读的体验。 将这 些资源在版面呈现出来, 就需要正确的参数设置, 这包括版面位置、 大小、 交互式行为定义等等。 优选地, xml 文件对参数进行描述, 并对资源进行引用。 xml 文件是一种筒单的数据存储语言, 使用一 系列筒单的标记描述数据, 而这些标记可以用方便的方式建立, 从 而在不同应用、 不同平台下方便理解和使用。
设定触发动作的事件可通过阅读器调用,例如一些阅读的行为, 比如翻到该 xml文件所在版面, 或者是点击版面上的该 xml文件所 关联的区域等。 阅读器是指能够解析交互式对象的 xml配置文件的 版面文件解释器。 这类阅读器可以才艮据所处的系统平台类型, 在应 用层的级别上去实现所定义的交互式对象的效果和行为。 不同的系 统平台的实现方式是有所区别的, 但是通过 xml描述, 其最终要实 现的效果应当是一致的。
优选地, 如图 3所示, 才艮据本申请另一实施方式的用于处理版 式文件的方法 300。 在方法 300 中, 步骤 S310和 320和上述步骤 S210和 S220相同。 因此不再赘述。 在步骤 S330中, 数据展示模块 30操作以将版式文件打开。 例如在阅读器中将版式文件打开。 在步 骤 S340中, 数据展示模块 30触发动作以打开 xml文件得到动态交 互式对象, 接着在步 S350中, 在阅读器 (例如阅读器的应用层) 展示动态交互式对象的效果和行为。
在版式文件的格式定义中, 都会有动作(Action )结构的描述。 动作是由事件(Event )激活的, 事件是指读者在阅读版式文件所产 生的行为, 比如打开或关闭某一个页面、 点击页面上的某一个区域 < 等等。 同时, 事件的执行是在页面上的一个特定区域内才会有效的, 这个区域称之为热区 ( Region )。 在热区内产生事件, 从而激活的动 作可以分为 艮多类, 其中一类动作是统一资源标识符 (Uniform Resource Identifier, URI) , 它是用来唯一标识某一个资源的字符串, 这个字符串描述了资源的网络路径或者本地路径。 将前述 xml文件 的路径地址作为 URI动作保存在版式文件里, 这样便可以在版式文 件与交互对象之间建立起了关联。
动作热区可以覆盖整个页面范围,也可以是页面上的一个区域。 前者所对应的交互式对象称之为页面级交互对象, 这类交互对象的 触发事件一般是 "打开页面", 排版时, 要指定交互对象在版面上的 呈现位置; 后者对应的交互式对象称之为组件级交互对象, 这类交 互对象一般是由 "用户点击页面某一个区域" 来触发, 排版时, 交 互对象不必在页面上占位, 而是通过弹出的方式来呈现。
动态交互式对象的类型多种多样, 对应的参数设置和资源也不 尽相同。 将交互对象放置到版面上, 本发明优选实施方式对此设置 了一些规则, 将交互对象的 xml文件描述分为两个部分: 公用设置 和私有设置。
公有设置主要包括交互对象的属性、 排版的相关信息, 以及交 互对象的外观设置等。 例如对象的类型、 标识 ID、 放置在版面的区 域位置和大小、 对象的背景颜色或背景图像、 背景透明度、 对象的 边框类型以及边框的宽度和颜色等等。 而私有设置则根据交互对象 的不同类型而不同了。 需要注意的有以下几点: 一、 如果参数设置 中涉及到对象资源引用时, 引用路径尽量使用相对路径, 避免绝对 路径的表示方式; 二、 当遇到多个结构类似的参数组, 可以采用数 组(Array ) +字典 ( Dictionary ) 的 xmU ii格式, 这样有助于阅读 器在解析交互对象时, 可以快速方便的获取参数信息。
下面以交互对象 全景图浏览为例来说明 xml格式。 全景图 的资源是六幅图像, 其分别对应着浏览场景的前、 右、 后、 左、 上、 下六个方位的图片, 用户可以将观察视点放置在场景中央, 通过交 互改变浏览视角, 从而获得全方位无缝地观察场景。 其 xml文件的 描述示例见下:
<?xml version:" 1.0" encoding="UTF-8"?〉
<dict>
<key>Function_Type</key>
<string>PANOR</string>
<key>ID</key>
<string> 1 </ string>
<key>Bound_Box</key>
<string>0.0 0.0 768.0 1024.0</string>
<key>Image_List</key>
<array>
<dict>
<key>Image_Direction</key> <string>FRONT</string>
<key>Image_Loc</key>
<string>PluginRes/PanorO 1/01.jpg</ string>
</dict>
<dict>
<key>Image_Direction</key>
<string>LEFT</ string>
<key>Image_Loc</key>
<string>PluginRes/Panor01/02.jpg</string>
</dict>
<dict>
<key>Image_Direction</key>
<string>BACK</string>
<key>Image_Loc</key>
<string>PluginRes/Panor01/03.jpg</string>
</dict>
<dict>
<key>Image_Direction</key>
<string>RIGHT</string>
<key>Image_Loc</key>
<string>PluginRes/Panor01/04.jpg</string>
</dict>
<dict>
<key>Image_Direction</key>
<string>TOP</string>
<key>Image_Loc</key>
<string>PluginRes/Panor01/05.jpg</string>
</dict>
<dict>
<key>Image_Direction</key>
<string>BOTTOM</string>
<key>Image_Loc</key>
<string>PluginRes/Panor01/06.jpg</string>
</dict>
</array>
</dict>
<key〉和</key〉中的文本为关键字, 解析过程中,便是根据关键 字来查找对应的内容。 Function— Type、 ID和 Bound— Box均为公有 设置, 其余参数为私有设置。 由于每个方位的图像都需要两个属性 来描述: 方位标识和图像路径。 因此, 将每个方位的图像参数组织 为一个字典 <dict〉</dict〉,而后,再将六幅方位图像放入数组描述中, 即<array〉和</array〉之间, 最终这个数组参数要根据私有设置 Image— List 来索引。 这只是一个最筒单的描述, 使用者还可以才艮据 所需的效果添加更多参数描述。
当阅读器解释上述方式处理的版面文件时, 会通过 URI定位到 交互组件的 xml文件, 然后从中获取组件的配置参数和资源路径, 才艮据这些设置在所处平台的应用层实现最终的组件效果。
所公开的和其它实施方式以及该说明书中所描述的功能性操作 能够以数字电路或者包括该说明书中所公开的结构及其结构等同物 的计算机软件、 固件或硬件来实施, 或者以它们的一个或多个的组 合来实施。 所公开的和其它实施方式可作为一个或多个计算机程序 产品来实施, 即在计算机可读介质上编码的计算机程序指令的一个 或多个模块, 以便由数据处理装置来执行或者控制其操作。 所述计 算机可读介质可以是机器可读的存储设备、 机器可读的存储基片、 存储器设备、 影响机器可读的传播信号的合成物质或它们的一个或 多个的组合。 术语"数据处理装置 "包含用于处理数据的所有装置、 设备和机器, 例如包括可编程处理器、 计算机、 多个处理器或计算 机。 除了硬件之外, 所述装置可包括创建所讨论的计算机程序的执 行环境的代码, 例如构成处理器固件、 协议枝、 数据库管理系统和 操作系统或它们的一个或多个组合的代码。 传播信号是人工生成的 信号, 例如机器生成的电、 光或电磁信号, 其被生成来对信息进行 编码以便传送到适当的接收器装置。
计算机程序 (还被称为为程序、 软件、 软件应用、 脚本或代码) 可以以任意形式的编程语言来书写, 包括编译的或解释性语言, 并 且其可以以任意形式被部署, 包括作为独立程序或作为模块、组件、 子程序或适于在计算环境中使用的其它单元。 计算机程序无需对应 于文件系统中的文件。 程序可存储在保存其它程序或数据 (例如, 存 储在标记语言文档中的一个或多个脚本〉 的文件的一部分中、 专用 于所讨论的程序的单个文件中、 或者多个协同文件 (例如, 存储一个 或多个模块、 子程序或代码部分的文件)中。 计算机程序可被部署为 在一个计算机或位于一个地点或分布在多个地点并且通过通信网洛 互连的多个计算机上执行。 明, 对于本领域的技术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和原则之内, 所作的任何修改、 等同替换、 改进 等, 均应包含在本发明的保护范围之内。

Claims

权 利 要 求 书
1. 一种版式文件的处理方法, 包括:
生成 xml文件, 其中所述 xml文件中包括动态交互式对象的参 数; 以及
在版式文件的描述中设定用于打开所述 xml文件的动作, 从而 使得触发所述动作打开所述 xml文件后, 展示所述动态交互式对象 的效果和行为。
2. 4艮据权利要求 1所述的方法, 其中, 所述动态交互式对象 包括以下至少一项: 音频、 视频、 图像、 三维数据文件、 应用程序; 所述参数包括以下至少一项: 所述动态交互式对象的版面位置、 大 小、 交互式行为定义。
3. 根据权利要求 1所述的方法, 其中, 生成 xml文件的步骤 包括:
在所述 xml文件中对所述参数进行描述, 并对所述动态交互式 对象进行引用。
4. 根据权利要求 1所述的方法, 还包括: 设定触发所述动作 的事件的步骤。
5. 根据权利要求 1-4中任意一项所述的方法, 还包括: 通过阅读器打开所述版式文件;
触发所述动作以打开所述 xml文件从而得到所述动态交互式对 象; 以及
在所述阅读器 4艮据动态交互式对象的参数展示所述动态交互式 对象的效果和行为。
6. 一种版式文件的处理装置, 包括:
xml文件生成, 用于生成包括动态交互式对象的参数的 xml文 件; 以及
数据制作模块, 用于在所述版式文件的描述中设定用于打开所 述 xml文件的动作, 从而使得触发所述动作打开所述 xml文件后, 展示所述动态交互式对象的效果和行为。
7. 根据权利要求 6所述的装置, 其特征在于, 所述动态交互 式对象包括以下至少一项: 音频、 视频、 图像、 三维数据文件、 应 用程序; 所述参数包括以下至少一项: 所述动态交互式对象的版面 位置、 大小、 交互式行为定义。
8. 根据权利要求 6所述的装置, 其中, 所述 xml文件生成模 块被配置为在所述 xml文件中设置对所述参数进行描述, 并对所述 动态交互式对象进行引用。
9. 根据权利要求 6所述的装置, 其中, 所述数据制作模块设 定触发所述动作的事件。
10. 根据权利要求 9所述的装置, 其中, 还包括:
数据展示模块, 用于在所述版式文件被阅读器打开时, 触发所 述动作以打开所述 xml文件以得到所述动态交互式对象, 从而在所 述阅读器展示所述动态交互式对象的效果和行为。
PCT/CN2012/087998 2011-12-31 2012-12-31 版式文件的处理方法和装置 WO2013097799A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2014526381A JP5930497B2 (ja) 2011-12-31 2012-12-31 テンプレートファイルの処理方法及び装置
US14/129,875 US20140149847A1 (en) 2011-12-31 2012-12-31 Method and apparatus for processing fixed layout files
EP12861183.7A EP2711846A4 (en) 2011-12-31 2012-12-31 METHOD AND DEVICE FOR PROCESSING DOCUMENT FILES

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110461688XA CN103186655A (zh) 2011-12-31 2011-12-31 版式文件的处理方法和装置
CN201110461688.X 2011-12-31

Publications (1)

Publication Number Publication Date
WO2013097799A1 true WO2013097799A1 (zh) 2013-07-04

Family

ID=48677824

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/087998 WO2013097799A1 (zh) 2011-12-31 2012-12-31 版式文件的处理方法和装置

Country Status (5)

Country Link
US (1) US20140149847A1 (zh)
EP (1) EP2711846A4 (zh)
JP (1) JP5930497B2 (zh)
CN (1) CN103186655A (zh)
WO (1) WO2013097799A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104423779A (zh) * 2013-08-26 2015-03-18 鸿合科技有限公司 一种交互显示实现方法及装置
CN113822025A (zh) * 2021-11-25 2021-12-21 深圳市明源云链互联网科技有限公司 办公文件自动生成方法、装置、设备及存储介质

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104516891B (zh) * 2013-09-27 2018-05-01 北大方正集团有限公司 一种版面分析方法及系统
CN104572598A (zh) * 2013-10-24 2015-04-29 北大方正集团有限公司 数字出版物的排版方法和装置
US20150169529A1 (en) * 2013-12-16 2015-06-18 Sap Ag Mobile device data rendering
US9626336B2 (en) 2014-08-22 2017-04-18 Microsoft Technology Licensing, Llc Remote management of a graphical user interface
CN104997506B (zh) * 2015-06-15 2018-12-07 深圳市理邦精密仪器股份有限公司 一种对心电报告进行灵活配置的方法及装置
CN105279254B (zh) * 2015-10-12 2018-10-23 江苏中威科技软件系统有限公司 版式数据流文件系统及其操作装置和其操作装置的实现方法
CN105302626B (zh) * 2015-11-09 2021-07-23 深圳市巨鼎医疗股份有限公司 Xps结构化数据的解析方法
CN105512100B (zh) * 2015-12-01 2018-08-07 北京大学 一种版面分析方法及装置
CN105701073A (zh) * 2015-12-31 2016-06-22 北京中科江南信息技术股份有限公司 版式文件的生成方法及装置
CN113157276A (zh) * 2021-04-09 2021-07-23 北京沃东天骏信息技术有限公司 布局文件转换方法、装置、电子设备和计算机可读介质
CN117910438B (zh) * 2024-03-13 2024-06-21 江苏中威科技软件系统有限公司 一种动态版式文件dlf的生成装置
CN117875263B (zh) * 2024-03-13 2024-05-24 江苏中威科技软件系统有限公司 一种dlf动态版式文件的阅读方法

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1937754A (zh) * 2006-08-23 2007-03-28 深圳创维-Rgb电子有限公司 一种数字媒体终端播放广告的方法
CN101271463A (zh) * 2007-06-22 2008-09-24 北大方正集团有限公司 版式文件逻辑结构信息的表示方法和系统
CN101489125A (zh) * 2009-01-19 2009-07-22 孟智平 基于xml的视频控制方法及其系统

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001092712A (ja) * 1999-09-27 2001-04-06 Hitachi Information Systems Ltd マルチメディアWebページとそのマルチメディア連携方法およびその処理プログラムを記録した記録媒体
US7559034B1 (en) * 2000-10-19 2009-07-07 DG FastChannel, Inc. Method and system for using a hyperlink, banner, or graphical icon to initiate the overlaying of an object on a window
TWI282926B (en) * 2005-10-06 2007-06-21 Fashionow Co Ltd Template-based multimedia editor and editing method thereof
JP2008204444A (ja) * 2007-01-23 2008-09-04 Just Syst Corp データ処理装置、データ処理方法及び検索装置
CN102298575A (zh) * 2010-06-28 2011-12-28 北大方正集团有限公司 一种带格式的Word文件内容拷贝和粘贴的方法及系统

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1937754A (zh) * 2006-08-23 2007-03-28 深圳创维-Rgb电子有限公司 一种数字媒体终端播放广告的方法
CN101271463A (zh) * 2007-06-22 2008-09-24 北大方正集团有限公司 版式文件逻辑结构信息的表示方法和系统
CN101489125A (zh) * 2009-01-19 2009-07-22 孟智平 基于xml的视频控制方法及其系统

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2711846A4 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104423779A (zh) * 2013-08-26 2015-03-18 鸿合科技有限公司 一种交互显示实现方法及装置
CN113822025A (zh) * 2021-11-25 2021-12-21 深圳市明源云链互联网科技有限公司 办公文件自动生成方法、装置、设备及存储介质

Also Published As

Publication number Publication date
CN103186655A (zh) 2013-07-03
JP5930497B2 (ja) 2016-06-08
JP2014524623A (ja) 2014-09-22
EP2711846A1 (en) 2014-03-26
EP2711846A4 (en) 2016-06-15
US20140149847A1 (en) 2014-05-29

Similar Documents

Publication Publication Date Title
WO2013097799A1 (zh) 版式文件的处理方法和装置
US11902377B2 (en) Methods, systems, and computer program products for implementing cross-platform mixed-reality applications with a scripting framework
CN108279966B (zh) 网页截图方法、装置、终端及存储介质
JP2014524623A5 (zh)
CN105518614B (zh) 用于多屏幕应用程序的屏幕录制的方法、设备和计算机可读介质
Boulos et al. Web GIS in practice VIII: HTML5 and the canvas element for interactive online mapping
US11790158B1 (en) System and method for using a dynamic webpage editor
US20150279058A1 (en) Page Rendering Method and Apparatus
US20200294307A1 (en) Displaying rich text on 3d models
WO2015196822A1 (zh) 一种网页适应屏幕排版方法及装置
US9886465B2 (en) System and method for rendering of hierarchical data structures
CN105096368B (zh) 三维对象处理方法和相关装置
CN113411664B (zh) 基于子应用的视频处理方法、装置和计算机设备
CN112052416A (zh) 用于展示图像元素的方法和装置
US20170091152A1 (en) Generating grid layouts with mutable columns
CN113032708A (zh) 一种无代码Web开发系统
WO2023169252A1 (zh) 多媒体内容处理方法、装置、设备、程序产品及存储介质
CN113655999A (zh) 一种页面控件的渲染方法、装置、设备及存储介质
CN109190078A (zh) 网页构建方法、装置和存储介质
CN117093386A (zh) 页面截图方法、装置、计算机设备和存储介质
US20140215295A1 (en) Three-dimensional image displaying system and method
CN115994517A (zh) 信息处理方法、装置、存储介质、设备及程序产品
CN112417345B (zh) 渲染方法、装置、电子设备及存储介质
CN107609050A (zh) 基于html5的新型页面系统及其作品生成方法
US10769354B2 (en) System and method for triggering state changes in content with initiation of multi-media playback

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: 12861183

Country of ref document: EP

Kind code of ref document: A1

REEP Request for entry into the european phase

Ref document number: 2012861183

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2012861183

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2014526381

Country of ref document: JP

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: 14129875

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE