Embodiment
Below with reference to the accompanying drawings and in conjunction with the embodiments, describe the present invention in detail.Referring to Fig. 1, comprise the following steps:
S11: the interactive data bag of reception is resolved to the text, interactive data file of the routing information of cebx file, xml file, recording interactive formula data file and is used for recording structural relation Main file between each file;
S12: move described cebx file, showing the content of the assembly on respective page on the interface of mobile terminal;
S13: receive the trigger action to the content of described demonstration on described interface;
S14: according to the structural relation in described trigger action and described Main file, the mutual configuration information that the assembly of the described cebx of access is stored in the xml file;
S15: the interactive data that acquisition will show from described mutual configuration information;
S16: according to the routing information that records in described text, interactive data in the described interactive data file of display access on the interface of described mobile terminal.
By above-mentioned steps, realize resolving the interactive data bag on mobile terminal, and show interactive data, expanded the data mode that mobile terminal shows.
Preferably, also comprise in described interactive data bag: for the xml file of the column information that shows the affiliated column of each page and the thumbnail file of each described page;
According to the structural relation in described trigger action and described Main file, show described column information and thumbnail on the interface of described mobile terminal.
Interactive data can be various videos, audio frequency, lantern slide etc., and these interactive datas can form electronic journal, magazine etc.When showing interactive data, show column information and the thumbnail of electronic journal or magazine, be convenient to the user and select the interested corresponding page of also redirect.
Preferably, described cebx file comprises horizontal version cebx file and/or the perpendicular version cebx file that adapts to mobile terminal screen.
Because the screen of the mobile terminal that has is rectangular, in the interactive data bag, the cebx file comprises the cebx file that adapts to mobile terminal screen; Thereby satisfy typesetting interactive data on different display directions.
Preferably, described interactive data comprises one of following at least: video, audio frequency, be used for the picture that lantern slide shows.
The structure of above-mentioned interactive data bag can be referring to Fig. 2, and the content of interactive data bag comprises referring to table 1:
The title magazine lssue of packet; Directory entry: Summary, ArticleTitleImage, ThumbImage, Page_N, Page, Plugins, PluginRes; All the other are every is file.
Table 1
Above-mentioned each file, the cebx file comprises a plurality of assemblies, and each assembly is used for some contents of demonstration, and interactive component is for the print contents such as character block, form piece; Comprise by the displayable content of interactive component: audio frequency, video, image comparison, panorama sketch, image pan, 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: path, picture precision lower limit that the output packet is set;
S22: initialization resource container pond;
Wherein, the resource container pond is used for the set of the resource of temporal data bag, and these resources comprise: each class audio frequency, video, be used for the picture of lantern slide etc.; For reducing the same resource of repeated storage in the interactive data bag, can be in the process of follow-up making interactive data bag, the resource of depositing in the interactive data bag in 1 part of resource container pond gets final product, if interactive data be surrounded by many places need to use with the resource container pond in identical resource, the path of memory access gets final product in the resource data bag.
S23: it is n that current typesetting document number is set, and it is the 1st that current typesetting document is set;
In the process of making the interactive data bag, can n document compiling be become 1 packet according to the needs of typesetting, also can separately be made into a plurality of packets.
S24: it is the m page that current typesetting document number of pages is set, and it is the 1st page that current page is set;
S25: judge whether the resources such as audio frequency that current page uses, video, picture are present in the resource container pond;
S26: if there is no, the copy resource in packet, and with resource record in the resource container pond.
S27: if exist, current page is output as CEBX formatted file and Info.xml file in packet, in the xml file, the mutual configuration information of an assembly in storage cebx file.In mutual configuration information, the resource absolute path of calling in file is replaced with the relative path of this resource of access in the interactive data bag from the resource container pond;
S28: judge whether to exist lower one page; If exist, carry out S29; If there is no, carry out S30;
S29: if there is lower one page, it is lower one page that current page is set; Continue to carry out S25;
S30: if there is no, the page circulation finishes; Judge whether to exist next typesetting document; If exist, carry out S31; If there is no, carry out S32;
S31: obtain next e-magazine document;
If there is next typesetting document, it is next typesetting document that current typesetting document is set; Carry out S24;
S32: judge whether picture resource that column information is used is present in the resource container pond; If there is no, carry out S33; If exist, carry out S34;
S33: if there is no, the copy resource and stores in the resource container pond in the interactive data bag;
S34: if exist, column information is written in Doc.xml in the interactive data bag, the resource absolute path of calling in file is replaced with the relative path of this resource of access in the interactive data bag from the resource container pond.
S35: judge whether picture resource that the attribute of magazine is used is present in the resource container pond; If there is no, carry out S36; If exist, carry out S37.
When the data of interactive data bag storage are periodical and/or magazine data, also need to store front cover, the column of periodical and/or magazine, the information such as thumbnail of each page in the interactive data bag.
Reception operates the selection of described thumbnail, shows the content of the assembly on the page corresponding to thumbnail.
S36: if there is no, the copy resource and is recorded in the resource container pond in packet;
S37: if exist, e-magazine attribute information, data package size, resource size etc. are write in the Main.xml file of interactive data bag.The Main.xml file is used for recording the structural information of each file, the index information of the content in each file etc.
By the thumbnail of column information and each page and the structural relation of Main.xml file record, but user's fast access one page magazine content wherein.
Foregoing detailed description the manufacturing process of interactive data bag, these contents are encapsulated in packet, the transmission mode by network is sent to mobile terminal, after mobile terminal is resolved, obtains the interactive datas such as audio frequency, video, lantern slide.
The above describes the embodiment of method of the present invention in detail, and the present invention also provides a kind of mobile terminal to process the device of interactive data, referring to Fig. 4, comprising:
Receiver module 31 be used for to receive the interactive data bag, and is resolved to text, the interactive data file of the routing information of cebx file, xml file, recording interactive formula data file and is used for recording structural relation Main file between each file;
Operation module 32 is used for the described cebx file that operation receiver module 31 is resolved, and is showing the content of the assembly on respective page on the interface of mobile terminal;
Operational module 33 is used for receiving the trigger action to the content of described operation module 32 demonstrations on described interface;
Access modules 34 is used for the structural relation of the Main file that the trigger action that receives according to described operational module 33 and described receiver module 31 be resolved to, the mutual configuration information that the assembly of the described cebx of access is stored in the xml file;
Read module 35 is used for the interactive data that will show from the mutual configuration information acquisition of described access modules 34 access;
Display module 36, for the routing information that records according to described text, interactive data in the described interactive data file of demonstration read module 35 access on the interface of described mobile terminal.
By above-mentioned module, realize resolving the interactive data bag on mobile terminal, and show interactive data.
Preferably, also comprise:
Column display module 37 is for the structural relation of the Main file of resolving according to trigger action and the described receiver module 31 of described operational module 33 receptions, column information and the thumbnail of column under each page of demonstration on the interface of described mobile terminal.
Preferably, described operation module 32 comprises:
Horizontal version operation module 321 is used for the horizontal version cebx file that operation adapts to mobile terminal screen;
And/or horizontal version operation module 322, be used for the perpendicular version cebx file that operation adapts to mobile terminal screen.
obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with general calculation element, they can concentrate on single calculation element, perhaps be distributed on the network that a plurality of calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in memory storage and be carried out by calculation element, perhaps they are made into respectively each integrated circuit modules, perhaps a plurality of modules in them or step being made into the single integrated circuit module realizes.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is only the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.