Summary of the invention
The objective of the invention is to overcome above-mentioned deficiency, a kind of data-oriented method and application scheme are provided, can realize that data separate with format, and object web page is read in real time, the implementation method towards the making of multi-media network electronic publication of the implementation method that the multi-media network publication that possesses video, audio frequency, animation, picture and text element that mobile phone is read is in real time made.
Technical scheme of the present invention is to realize like this.
A kind of implementation method of making towards the multi-media network electronic publication, it is characterized in that design and creation platform on computer system, multimedia resource shuffling system, the separation module of data and format, the data encapsulation module, distribution pattern mapped system, multi-platform automated pubilication system is formed, design layout by content originator basis oneself utilizes system that layout is finalized a text, by the function that system provides the multi-medium data resource is separated with format, according to the homogeneity of data with literal, picture, video, audio frequency, animated element carries out the encapsulation again of data, the secondary that the data of separating can be carried out its application calls, the initial design of the space of a whole page after data encapsulate again and content originator is accurate having carried out, content originator is after finishing above making, to in distribution pattern mapped system, select one or more platform issuing waies to issue its works according to the operating position of reality, comprised the web page browing pattern, cell phone reading pattern (WAP, SMS, MMS), PDA reading model and exclusive reader reading model, system has adopted the independent separate package of data, loading content creator's works in any novel reading model afterwards, and the exploitation of need not setting type again once more.
Described for content originator when making, system the opening entry author the typing of data each time and carry out the structure classification of digraph data structure; To the affiliated column of article, the author, time attribute is carried out embedded record, and to literal, picture, video, audio frequency when the animation multimedia element inserts, positions and the processing of classifying.
The described space of a whole page that will complete carries out separating of data and format according to the digraph structure of system log (SYSLOG), utilize the data encapsulation module with literal, picture, video, audio frequency, the animation multimedia element is encapsulated as a data file D, with format independently is a design proposal C, after data separating is finished, system will be combined in D and C among the system file form E automatically, its reduction pattern will not have difference with the initial design of content originator, system also can be according to author's actual design requirement, data are carried out classification to be handled, system will be according to literal under default situations, picture, animation, audio frequency, the order of video is carried out classification, so that adapt to different platform requirements.
Described author will select a kind of pattern of distribution according to the actual needs, comprise that webpage pattern, mobile phone pattern, PDA read pattern and exclusive reader pattern, and system carries out different composings with data file D and handles according to different distribution patterns; Based on different reading platforms, the form of expression and the necessity of various data have nothing in common with each other, and according to distribution pattern data classification requirement, carry out form of expression reset to adapt to different reading platforms, and the user is once created, and are suitable for forever.
The described Design Mode of having taked data to be independent of format, system can change the new reading platform pattern of adding in the distribution pattern mode at any time according to demand, so that data file D goes for newborn platform.
Described data file D can therefrom isolate needed some data elements once more when being utilized by secondary development or secondary, secondary development and user can relocate according to all descriptions among the data file D and format is set again.
Advantage and beneficial effect, the present invention's's " data-oriented " implementation method have adopted with actual tradition and have published consistent composing and the production method of technology, and web site author is had very succinct operation implementing procedure with editor.The invention scheme has designed complementary multimedia resource shuffling ME of system and multi-platform application automatic creation system MA especially.This multimedia resource shuffling system adopts the mode of digraph to carry out the tissue of resource, automatically increase the limit and the node of this digraph according to the author with the selected multimedia element of editor, and can carry out the independent extraction and the preservation of format according to this data structure.In the process of making, author and editor can be in the multimedia resource shuffling system environments of What You See Is What You Get freely, the various multimedia resources of abandoned shuffling, after the effect of wanting obtaining, generate object web page by multi-platform automated pubilication system MA, mobile phone (WAP, SMS, MMS), the multi-media network electronic publication of PDA and dedicated reader, include in the file layout that generates and use format protocol section and data resource part, this application format agreement that generates automatically can be rearranged multimedia resource and generate new multi-media network magazine; The data resource part of separating also can extract as the new form of expression searched or separately to be used.
The present invention is in order to realize the design technology of " data-oriented ", the Promethean protocol system DP that separates with format according to data resource that designed.The method of being classified according to data resource by the data encapsulation module generates independently configuration file CF then, resolves again in the process of reading.
The present invention is directed to various reading platforms and designed distribution pattern mapped system PM again especially, in this distribution pattern mapped system, utilize the method for script to carry out cross-platform agreement mapping SM corresponding to environments for use different under the various platforms, protocol format; Simultaneously will carry out independent description corresponding to the configuration file of different multimedia Web publishing again.Owing to adopted the structure of this novelty, editor and author just can need not understand respectively various platform application patterns fully, the making multi-media network publication of the angle specialty of own one's work content be can stand in, existing format and existing data resource utilized.
Multi-platform automated pubilication system MA, in order to cooperate the needs of the multi-platform publication of network, according to ME, DP, the automatic established data resource of PM DR, configuration file CF and cross-platform agreement mapping SM, under author and editor's selection, generate the multi-media network electronic publication of web page browing version, cell phone reading version (WAP, MMS, SMS) and PDA and dedicated reader reading version automatically by multi-platform automated pubilication system MA.
Description of drawings
Fig. 1 is a system of the present invention general diagram;
Fig. 2 is that the multimedia shuffling ME of system of the present invention implements the platform block diagram;
Fig. 3 is data resource of the present invention and format separated protocol system platform block diagram, enters the mouth to be the oriented data structure of multi-medium data resource;
Fig. 4 is a sample mapped system block diagram of the present invention, enters the mouth to be the selected distribution of user platform;
Fig. 5 is each platform generation system block diagram of the present invention, enters the mouth to be cross-platform agreement mapped file, data resource and format configured separate file, data resource packing file;
Fig. 6 is the technological process of multi-media network publication method for making of the present invention, at first enters system, sets up new publication, and the publication property parameters is set, and imports multimedia elements such as literal, picture, animation, audio frequency, video; Select a multimedia element then, in publication shuffling district, carry out freely discharging; Selected again drag and drop element, change property parameters such as its size, color, can browse the good publication of shuffling this moment, the multi-media network electronic publication that the generating run environmental level is selected in the back is revised in go forward side by side in the navigation process modification of line correlation property parameters and position, browses once more, select corresponding runtime server and database, " operation platform environmental variance, form format parameter set, the multi-medium data resource table " that generate enters network data base;
Fig. 7 is a fundamental element data structure diagram of the present invention, data structure and tissue;
Fig. 8 is a digital element data structure diagram of the present invention, derives from oneself and inherits the fundamental element data structure;
Fig. 9 is a picture element data structure diagram of the present invention, derives from oneself and inherits the fundamental element data structures;
Figure 10 is the audio element data structure diagram, derives from oneself and inherits the fundamental element data structures;
Figure 11 is the video elementary data structure diagram, derives from oneself and inherits the fundamental element data structures;
Figure 12 is the animated element data structure diagram, derives from oneself and inherits the fundamental element data structures;
Figure 13 is a doubly linked list data structure diagram of the present invention, the data resource tissue that adopts implementation method of the present invention to produce the multi-media network publication adopts the data structure of digraph, when relation and each space of a whole page are inner between specific to the relevant space of a whole page, can be decomposed into the two-dimensional plot data structure that concerns between the relevant space of a whole page of reflection and the tree data structure of each space of a whole page inside to this digraph data structure;
Figure 14 is a tree data structure organization chart of the present invention, and in the process that makes up, the weights on the limit of first element are the relative position side-play amount with respect to space of a whole page origin in the space of a whole page; The weights on the limit of all the other element correspondences are the side-play amount difference of its element position that closes on most and himself position, if the position with respect to space of a whole page initial point is near, just its position is adjusted into the direct leaf node of initial point node, the structure of tree is formed along with the element that adds is constantly adjusted change.With the structure of element leafy node as this tree;
Figure 15 is the total interface of the embodiment of the invention;
Figure 16 is the total interface of embodiment of the invention task layout;
Figure 17 is relational hierarchy figure of the present invention;
Figure 18 is a magazine element data structural drawing;
Figure 19 is magazine document storage structure and data circulation figure;
Figure 20 is element edit structure figure;
Figure 21-the 1st loads magazine document flow logical diagram;
Figure 21-the 2nd, user edit flow logic figure;
Figure 22 is flow logic figure;
Figure 23 is a note design cycle logical diagram;
Figure 24 is interface flow logic figure.
Embodiment
In order to further specify formation of the present invention, be described as follows by one embodiment of the present of invention:
Embodiments of the invention comprise four parts
One, multimedia resource shuffling system (being called for short ME) (Multi-Media Resource EditorSystem)
Two, data resource and format separated protocol system (being called for short DP)
(Data?Resource?&?Format?Separation?Protocol)
Three, distribution pattern mapped system (being called for short PM)
(Publish?Mode?Mapping?System)
Four, multi-platform automatic creation system (being called for short MA)
(Multi-Platform?Auto?Generalize?System)
ME further comprises:
1, interface operation console module;
2, multi-medium data resource digraph data structure organization module;
3, the multi-medium data resource imports module;
DP further comprises:
1, data encapsulation molded tissue block;
2, resource classification molded tissue block;
3, format agreement generation module;
4, data resource and format configuration file generation module;
5, format protocol encapsulation and parsing module;
PM further comprises:
1, script module;
2, multi-platform application protocol mapping package module;
3, cross-platform agreement mapping generation module;
MA further comprises:
1, multi-medium data resource strip module;
2, format strip module;
3, automatically-generating module;
Embodiment of the invention name is called the implementation method of making towards the multi-media network electronic publication, abbreviates EME as, is specially:
Relation and level
As shown in figure 17:
Persistent Layer: persistent layer will be kept at after the data sequenceization on the local hard drive and provide Data Source for the upper strata.To deposit file with binary format, only provide simple access service at present for the upper strata.
Logic Layer: handle the data that persistent layer provides, this is native system core place.It on the one hand and persistent layer is mutual hands over to read/to preserve data, responds the funcall on upper strata on the one hand, and fixing input/output interface is arranged.This layer and Common Functions collaborative work are tightr.
Presentation Layer: user interface, the user issues an order at this, and the interface is finished corresponding function and is returned execution result by calling down layer method and publicly-owned function.
Common Functions: for total system provides public method, it is all layers service.Publicly-owned method can change on stream as required.
Layering purpose: reduce the workload of debugging and error correction, make application program be easy to safeguard, and strengthen the overall flexibility of application program.Strengthen dirigibility, maintainability and scalability.Reusing of maximum possible.Each module keeps high cohesion as much as possible.Irrelevant module should keep loose couplings
3 multimedia shuffling system core modular design explanations
3.1 program description
Based on the many document views designs of MFC, can edit a plurality of DOC simultaneously, be exactly to edit a plurality of magazine files simultaneously concerning the client.
3.2 function
For the client provides the visualized operation platform;
Carry out customer command;
Represent e-magazine;
3.3 magazine element data structure in the present embodiment
Data structure such as Figure 18:
3.4 the circulation of magazine document storage structure and data is as Figure 19 in the present embodiment.
3.5 input item
The user gives an order by the interface or the enterprising line operate at the interface.
3.6 output item
Order or operation by the interface response user.
3.7 interface
UI is by CRichEditEx and two classes of CRichEditExText and logical layer communication.
Wherein CRichEditEx is used to deposit sound, picture, animation, video elementary;
CRichEditExText is used for text element.
System initialization CRichEditEx:
CRichEditEx(CString?itemId,EImageMgr*imageMgr)
System initialization CRichEditExText:
CRichEditExText(CString?itemed,EImageMgr*imageMgr);
The CRichEditEx external interface:
Return magazine element ID:CString GetItemId ();
Return the magazine element content: CString GetContent ();
Mobile element position: BOOL PtInMoveRect (CPoint p);
Change element size: BOOL PtInSizeRect (CPoint p);
The type of current magazine element is set: void SetCtrlType (CTRLTYPE type);
Judge whether current magazine element obtains focus: bool IsActive ();
The CRichEditExText external interface:
Return the text element in the magazine element, comprise form:
CString?GetData(
PARAFORMAT?&?pf,
CHARFORMAT?&?cf,
int?&?nlineIndex,
long?&?nCharIndex);
Text element in the magazine element is set, comprises form:
void?SetData(
PARAFORMAT?pf,
CHARFORMAT?cf,
CString?str,
int?nIndex);
Return magazine element ID:CString GetItemId ();
Runic is set: void SetSelBold ();
Italic is set: void SetSelItalic ();
Underscore is set: void SetSelUnderLine ();
The word height is set: void SetSelUnderLine ();
Set font: void SetSelTextFont (LPCSTR font);
Color is set: void SetSelColor (COLORREF clr);
Alignment is set: void SetSelColor (COLORREF clr);
Paragraph format compares: int PFCompare (PARAFORMAT pf1, PARAFORMAT pf2);
Paragraph format compares: int CFCompare (CHARFORMAT cf1, CHARFORMAT cf2);
3.9 note design
Follow development specifications, part Well-Named function and variable do not have note.
4 distribution pattern mapped system and data resource and the explanations of format separated protocol system core modular design
4.1 program description
The editor of EME software, storage file.Each module all has use to this module.User command can directly arrive this module, and the output of this module also can directly be notified the user.
4.2 function
The data sequenceization of interface element is stored into the EME file, and this document is for the generation script file and is e-magazine generation resource distribution file.
4.3 performance
Use many document views structure of MFC, used serializing read/write technology, performance is higher.
4.4 input item
The data of the element among each VIEW, as: the order that the file path in the picture harmony audio frequency and video, the paragraph in the text, user send from the interface all is an input item.
4.5 output item
1, the magazine file of suffix EME by name.
With sequencing method current magazine file is saved on the local hard drive then.
2, Cpage class, such generation/parsing for script module provides data source.
4.6 element edit structure
The edit box of all magazine elements is the CRichEditCtrl successions from MFC when editor.Class in the project has:
1、CRichEditEx
2、CRichEditExText
Structure such as Figure 20:
4.7 flow logic such as Figure 21-1,21-2
4.8 interface
The new resource of interpolation: BOOLAddResource in editing area (
int?item?Type,
CString?filePath,
BOOL?isInit=FALSE);
Obtain the focus in the editing area: CRichEditExText*GetActiveCtrl ();
Introduce local resource: void ImportResource ();
Deletion local resource: void DeleteResource ();
Revise local resource: void ModifyResource ();
Initialization magazine page: void InitViewItem (int nPageIndex);
Last lower page: void ShowPageItem (int nPageIndex, int nCmdShow);
The jump page later stage realizes;
Fill picture: HBITMAP GetBitmapImage (LPCSTR path) at editing area;
Remove all magazine resources: void ClearAllObjectResource ();
Obtain next magazine element: CObject*GetNextItem (
int?pageIndex,
int?itemType,
POSITION?&?pos);
Remove all magazine elements: void ClearObjectResource (int pageIndex) on the specified page;
Obtain on the current page the new magazine element ID:void GetNewItemID that adds (
int?curPageIndex,
int?itemType,
CString?&?newID);
Add the magazine resource of specified type at current page: void GetNewItemID (
int?curPageIndex,
int?itemType,
CString?&?newID);
Obtain current cursor: HCURSOR GetCursorImage (LPCSTR path);
Generation script file: void EmscriptBuild ();
4.10 note design
Follow development specifications, part Well-Named function and variable do not have note.
4.11 restrictive condition
1, all the magazine data resource of this locality can with and effectively;
2, the interface initialization finishes;
3, configuration file effectively and read success.
The specification of script parsing module
1 program description
The Emscript code that the CMEPage class that this module provides higher level's module resolves to character string forms returns with the form of String.
2 functions
This module realizes the MEScriptBuilder class, and the method GetEmscriptCode of providing realizes the parsing of script.
3 performances
This module relates to a large amount of string operations, and for improving performance, the unified CString class of using in the MFC framework all is to use the function of CString to insert operations such as substitute character.All use C functions such as itoa for inevitable int to the conversion of string.Overall performance is satisfied the demand fully.
4 input items
MEScriptBuilder need provide a CMEPage to come initialization:
MEScriptBuilder(CMEPage*page)
CMEPage comprises the relevant information of a page, after using MEScriptBuilder class of MEScriptBuilder (CMEPage*page) function initialization, can call the result after GetEmscriptCode obtains to resolve.
5 output items
String?GetEmscriptCode(void)
Be the unique common interface function of MEScriptBuilder, after calling MEScriptBuilder class of MEScriptBuilder (CMEPage*page) function initialization, just can call the result after GetEmscriptCode obtains to resolve.
6 algorithms
Generate start mark, and former html code.
Each Objet on the accession page, and for they generate the corresponding script marker code.
The relevant information that has more among the CMEPage generates " page up ", " following one page " mark.
Generate end mark and later part thereof.
7 flow logic such as Figure 22
8 interfaces
MEScriptBuilder(CMEPage*page)
String?MEScriptBuilder∷GetEmscriptCode(void)
The design of 9 notes
Flow process and design to whole module upward have good name to make whole module have readable preferably letter to the difference of module with to function.But we use an amount of note at the take-off point and the function point of each outbalance.
10 important function illustrate
WriteAudio (CAudioObject*obj) explanation
Program description
Resolving CAudioObject is the EmScript code.
Function
The CAudioObject of input is resolved to corresponding EmScript code, and return.
Performance
A large amount of CString of MFC framework that use operate, no performance influence.
Input item
CAudioObject*
CAudioObject comprises a class in the Audio relevant information.
Output item
String
The CString that returns comprises the EmScript code that parsing is purchased.
Algorithm
Generate top, left, width, seat information such as height.
Have more the audio type selecting and generate suitable code
Generate play parameter
Return
Flow logic such as Figure 23
Interface
String?WriteAudio(CAudioObject*obj)
WriteFlash (CFlashObject*obj) explanation
1. program description
Resolving CFlashObject is the EmScript code.
2. function
The CFlashObject of input is resolved to corresponding EmScript code, and return.
3. performance
A large amount of CString of MFC framework that use operate, no performance influence.
4. input item
CFlashObject*
CFlashObject comprises a class in the animation relevant information.
5. output item
String
The CString that returns comprises the EmScript code that parsing is purchased.
6. algorithm
1. generate top, left, width, seat information such as height.
2. have more animation types and select to generate suitable code
3. generation play parameter
4. return
7. flow logic such as Figure 24
8. interface
String?WriteFlash(CFlashObject*obj)