Detailed description of the invention
Below with reference to the accompanying drawings and in conjunction with the embodiments, the present invention is described in detail. Referring to Fig. 1, comprise the following steps:
S11: the interactive data bag of reception, is resolved to cebx file, xml document, the text of routing information of recording interactive data file, interactive data file and the structural relation Main file for recording between each file;
S12: run described cebx file, shows the content of assembly in respective page on the interface of mobile terminal;
S13: receive the trigger action of content to described display on described interface;
S14: according to the structural relation in described trigger action and described Main file, access the mutual configuration information that the assembly of described cebx stores in xml document;
S15: obtain, from described mutual configuration information, the interactive data to show;
S16: according to the routing information of record in described text, show interactive data in the described interactive data file of access on the interface of described mobile terminal.
Pass through above-mentioned steps, it is achieved resolve interactive data bag on mobile terminals, and show interactive data, extend the data mode that mobile terminal shows.
Preferably, described interactive data bag also includes: the thumbnail file of xml document and each described page for showing the column information of column belonging to each page;
According to the structural relation in described trigger action and described Main file, the interface of described mobile terminal shows described column information and thumbnail.
Interactive data can be various video, audio frequency, lantern slide etc., and these interactive datas can form electronic journal, magazine etc. While display interactive data, show column information and the thumbnail of electronic journal or magazine, it is simple to user selects and redirect corresponding page interested.
Preferably, described cebx file includes horizontal version cebx file and/or the portrait cebx file of adaptation mobile terminal screen.
With the screen of mobile terminal be rectangular, in interactive data bag, cebx file includes the cebx file adapting to mobile terminal screen; Thus meeting typesetting interactive data on different display directions.
Preferably, described interactive data at least includes one below: video, audio frequency, the picture that shows for lantern slide.
The structure of above-mentioned interactive data bag can referring to Fig. 2, the content of interactive data bag referring to table 1, including:
The title magazinelssue of packet; Directory entry: Summary, ArticleTitleImage, ThumbImage, Page_N, Page, Plugins, PluginRes; All the other are every for file.
Table 1
Each file above-mentioned, cebx file includes multiple assembly, and each assembly is used for showing some contents, and interactive component is for the print contents such as character block, form block; Included by the displayable content of interactive component: the pan of audio frequency, video, image comparison, panorama sketch, image, statistical graph, text label etc.
Describe the manufacturing process of packet below in conjunction with Fig. 3 in detail, referring to Fig. 3, comprise the following steps:
S21: the output path of packet, picture precision lower limit are set;
S22: initialize resource container pond;
Wherein, resource container pond is for the set of the resource in temporal data bag, and these resources include: each class audio frequency, video, picture etc. for lantern slide; For reducing, interactive data bag repeats the resource that storage is same, can in the process of follow-up making interactive data bag, interactive data bag is deposited the resource in 1 part of resource container pond, need to use the resource identical with resource container pond if interactive data is surrounded by many places, resource data bag stores the path of access.
S23: arranging current typesetting document number is n, and arranging current typesetting document is the 1st;
In the process making interactive data bag, can need to become n document compiling 1 packet according to typesetting, it is also possible to be fabricated separately into multiple packet.
S24: arranging current typesetting document number of pages is m page, and arranging current page is page 1;
S25: judge whether the resources such as audio frequency that current page uses, video, picture are present in resource container pond;
S26: if it does not, copy resource is in packet, and by resource record to resource container pond.
S27: if it does, CEBX formatted file current page being output as in packet and Info.xml file, in xml document, the mutual configuration information of an assembly in storage cebx file. In mutual configuration information, the resource absolute path called from resource container pond in file is replaced with the relative path accessing this resource in interactive data bag;
S28: judge whether lower one page; If it is present perform S29; If it does not exist, then perform S30;
S29: if there is lower one page, arranging current page is lower one page; Continue executing with S25;
S30: if it does not, page loop ends; Judge whether next typesetting document; If it does, perform S31; If it does not, perform S32;
S31: obtain next e-magazine document;
If there is next typesetting document, current typesetting document is set for next typesetting document; Perform S24;
S32: judge whether the picture resource that column information is used is present in resource container pond; If it does not, perform S33; If it does, perform S34;
S33: if it does not, copy resource is in interactive data bag, and store in resource container pond;
S34: if it does, be written in the Doc.xml in interactive data bag by column information, the resource absolute path called from resource container pond in file is replaced with the relative path accessing this resource in interactive data bag.
S35: judge whether the picture resource that the attribute of magazine is used is present in resource container pond; If it does not exist, then perform S36; If it is present perform S37.
The data of interactive data bag storage are when being periodical and/or magazine data, also need to the information such as thumbnail of storage periodical and/or the front cover of magazine, column, each page in interactive data bag.
Receive the selection to described thumbnail to operate, the content of the assembly on the page that display thumbnail is corresponding.
S36: if it does not, copy resource is in packet, and recorded in resource container pond;
S37: if it does, e-magazine attribute information, data package size, resource size etc. are write in the Main.xml file of interactive data bag. Main.xml file is for recording the structural information of each file, the index information etc. of the content in each file.
By the structural relation of the thumbnail of column information and each page and Main.xml file record, user can quickly access one page magazine content therein.
The foregoing detailed description manufacturing process of interactive data bag, these contents encapsulate in the packet, are sent to mobile terminal by the transmission means of network, after mobile terminal resolves, it is thus achieved that the interactive datas such as audio frequency, video, lantern slide.
The embodiment of the method for the present invention described in detail above, the present invention also provides for a kind of mobile terminal and processes the device of interactive data, referring to Fig. 4, including:
Receiver module 31, is used for receiving interactive data bag, and is resolved to cebx file, xml document, the text of routing information of recording interactive data file, interactive data file and the structural relation Main file for recording between each file;
Run module 32, for running the described cebx file that receiver module 31 resolves, the interface of mobile terminal shows the content of assembly in respective page;
Operation module 33, for receiving the trigger action of the content to the display of described operation module 32 on described interface;
Access modules 34, for the structural relation in the Main file that the trigger action received according to described operation module 33 and described receiver module 31 are resolved to, accesses the mutual configuration information that the assembly of described cebx stores in xml document;
Read module 35, for obtaining, from the mutual configuration information of described access modules 34 access, the interactive data to show;
Display module 36, for according to the routing information of record in described text, showing interactive data in the described interactive data file that read module 35 accesses on the interface of described mobile terminal.
By above-mentioned module, it is achieved resolve interactive data bag on mobile terminals, and show interactive data.
Preferably, also include:
Column display module 37, for the structural relation in the Main file that the trigger action received according to described operation module 33 and described receiver module 31 resolve, shows column information and the thumbnail of column belonging to each page on the interface of described mobile terminal.
Preferably, described operation module 32 includes:
Horizontal version runs module 321, for running the horizontal version cebx file adapting to mobile terminal screen;
And/or horizontal version runs module 322, for running the portrait cebx file adapting to mobile terminal screen.
Obviously, those skilled in the art should be understood that, each module of the above-mentioned present invention or each step can realize with general calculation element, they can concentrate on single calculation element, or it is distributed on the network that multiple calculation element forms, alternatively, they can realize with the executable program code of calculation element, thus, can be stored in storage device is performed by calculation element, or they are fabricated to respectively each integrated circuit modules, or the multiple modules in them or step are fabricated to single integrated circuit module realize. so, the present invention is not restricted to the combination of any specific hardware and software.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations. All within the spirit and principles in the present invention, any amendment of making, equivalent replacement, improvement etc., should be included within protection scope of the present invention.