Embodiment
The embodiment of the invention provides a kind of method and device of electronic document reading mode treatment method; This method is passed through in advance according to the content in the electronic document; The different document content that is respectively in the same electronic document is provided with the reading model corresponding with the document content, simultaneously set reading model is carried out one or more reading hint information that one or more are combined to form this electronic document.Make the user when reading electronic document; Reading application program can be according to the document display platform at place; For example, mobile phone or computer etc. select one of suitable the document display platform to read hint information; Because selected reading hint information is different; The array mode of the employed reading model of same document is also inequality, reads application program and confirms according to the selection result of reading clue which reading model this electronic document has all used, and at last the document content in the electronic document is shown according to self pairing reading model.As shown in Figure 1, concrete steps are following:
Step 11; Obtain the corresponding reading hint information of document to be shown; The corresponding relation that comprises many document contents fragment signs and reading model in this reading hint information; Partial data content in the corresponding said document to be shown of said many document contents fragments sign, and the corresponding partial data content difference of the document content sheet segment identification in the different corresponding relation;
Step 12 reads the corresponding partial data content of document content sheet segment identification in every corresponding relation, and the partial document content that reads is shown according to the corresponding reading model of this partial document content.
Before step 11, judge whether to store the corresponding reading hint information of said document to be shown; If store the corresponding reading hint information of said document to be shown, then carry out step 11; Otherwise, with the total data content of said document to be shown, show according to the reading model of predefined said document to be shown, promptly select reading model and show according to prior art;
In the step 11, when storing the reading hint information of said document correspondence to be shown, obtain the corresponding reading hint information of said document to be shown; When being a plurality of, then from a plurality of reading hint information that get access to, select one to read hint information for said document to be shown as if the reading hint information that gets access to document correspondence to be shown; From a plurality of reading hint information that get access to, selecting a reading hint information for said document to be shown in this step can have several different methods, specifically comprises following two kinds of methods:
First kind,, from a plurality of reading hint information that get access to, select one to read hint information for said document to be shown according to predefined reading clue selection mode;
Second kind, the prompting user selects one to read hint information from said a plurality of reading hint information, and the reading hint information that the user is chosen is as the reading hint information that is said document selection to be shown;
Owing to read in the hint information and also comprise the document display platform information that this reading hint information is suitable for; When using first method; Can confirm the document display platform of current use, and be suitable for the reading hint information of the document display platform in a plurality of reading hint information; The reading hint information of selecting this reading hint information to use as said document to be shown;
In the step 12, read the corresponding partial data content of document content sheet segment identification in every the corresponding relation that comprises in the reading hint information of selection; The method that reads can have multiple, specifically can may further comprise the steps:
Read order according to predefined corresponding relation, read the corresponding relation and the corresponding partial data content of the document content sheet segment identification in this corresponding relation that comprise in the said reading hint information;
The order that reads according to the partial document content shows the partial document content that reads according to the corresponding reading model of this partial document content.
Below with the specific embodiment introduction:
Embodiment one:
The embodiment of the invention one provides a kind of method of electronic document reading mode treatment method; This method is through the reading hint information in the electron gain document; And according to the corresponding relation of document contents fragment sign in this reading hint information with reading model; Read the corresponding partial data content of document content sheet segment identification, and the partial document content that reads is shown according to the corresponding reading model of this partial document content.The concrete operations step is following:
Step 21, operating personnel are provided with document content sheet segment identification for a plurality of document content fragments of electronic document, and are the corresponding relation of foundation of document content sheet segment identification and reading model; Said operating personnel can be documents editing personnel or computer program; The method of setting up with the corresponding relation of reading model for document content sheet segment identification has multiple, specific as follows:
For example, first section is character introduction in this electronic document, and second section is picture, and the 3rd section is animation alternately, and the 4th section is audio frequency; According to the definition of various reading models, be respectively foregoing reading model is set, specifically can do following processing:
Be designated 1 for character introduction partly is provided with the document content fragment, the corresponding reading model of the document contents fragment sign can comprise: streaming reading model or caricature reading model;
Be designated 2 for picture partly is provided with the document content fragment, the corresponding reading model of the document contents fragment sign can comprise: streaming reading model or caricature reading model;
Be designated 3 for animation part alternately is provided with the document content fragment, the corresponding reading model of the document contents fragment sign can comprise: animation play mode or caricature reading model;
Be designated 4 for audio-frequency unit is provided with the document content fragment, the corresponding reading model of the document contents fragment sign can comprise: the multimedia pattern;
Said reading model is not limited to following several kinds: format reading model, streaming reading model, caricature reading model, multimedia pattern and animation play mode;
The format reading model is to be the unit organization electronic document with the page or leaf, when reading, is that unit shows equally with the page or leaf, but the format reading model shows after can not setting type again according to the size of viewing area; The streaming reading model is the unit organization electronic document with the chapters and sections hierarchical structure, and shows after can setting type again according to the size of viewing area; The caricature reading model is unit with the frame, and through being a plurality of zones with page division, each frame is quoted a zone in this page, when reading, shows each frame successively; The multimedia pattern comprises with the mode or the exclusive mode of page embedding watches video, and listening to audio; The animation play mode is when the display document content, and along with change of time, the display result of partial document content changes;
Step 22 according to the pairing reading model of document content sheet segment identification that is provided with in the step 21, is respectively each document sheet segment identification and marks off a reading fragment, and this reads the corresponding relation of fragment as the document sheet segment identification and reading model; For example, dividing the method for reading fragment for above-mentioned document content sign is: can be from word or file content identification, photo-document content identification, pick out a reading model respectively as the reading fragment animation document content sign, the pairing reading model of audio documents content identification alternately; For example the corresponding reading fragment of word or file content identification is the streaming reading model; The corresponding reading fragment of photo-document content identification is the caricature reading model; The corresponding reading fragment of animation document content sign is the animation play mode alternately; The corresponding reading fragment of audio documents content identification is the multimedia pattern;
Also can mark off other in this step and read fragment, repeat no more here as corresponding relation to the document content sign;
Step 23; With dividing the reading fragment of coming out; Order according to the pairing document content fragment of this reading fragment is identified in the document confirms that the sequential combination of said reading fragment is one and reads hint information, and which kind of document display platform is this reading hint information of definition be suitable for; And should read hint information and be saved in this electronic document; Said document display platform can be mobile phone or computer etc.;
In this step; The method which kind of document display platform is this reading hint information of said definition be suitable for has multiple; Specifically can be: when this reading hint information is suitable for mobile phone display screen, can this reading clue be defined as and be suitable for cell phone reading, and called after " cell phone reading clue "; When this reading hint information is suitable for computer monitor, can this reading hint information be defined as and be suitable for desktop and read, and called after " computer reading clue ";
Can be combined into the reading hint information of multiple suitable different document display platform according to the difference of reading fragment in this step;
In this step, also can be identified at the sequence number that order in the document confirmed this readings fragment, and be combined as a reading clue according to numeric order according to reading the pairing document content fragment of fragment;
Step 24 is read application program when opening this electronic document when the reader uses, and reads application program and judges whether this electronic document preserves the reading hint information of this electronic document correspondence to be shown, if having then change step 26 over to; If not then change step 25 over to;
Step 25 is read the full content of application program with said document to be shown, shows according to the reading model of predefined said document to be shown; Said reading model according to predefined said document to be shown shows and is meant, do not preserve when reading clue when document to be shown, reads application program and selects reading model according to prior art;
Step 26, the reading application program is shown to the user with the title of all reading hint information that the document is preserved, and supplies the user to select;
Step 27; Read application program with user-selected reading hint information; As being the reading hint information that said document to be shown is selected, reading order according to predefined corresponding relation and obtain corresponding relation and the corresponding partial data content of the document content fragment flag in this corresponding relation in this reading hint information successively; Said predefined corresponding relation reads order and is meant the order of reading the reading fragment in the hint information; Perhaps read the numeric order of fragment in reading hint information;
Step 28 reads sequential read according to predefined corresponding relation and reads the partial data content of reading to read in the hint information document content sign correspondence that fragment comprised;
Step 29, the order that reads according to the partial document content shows the partial document content that reads according to the corresponding reading model of this partial document content;
In addition, in step 26, read application program and also can select to read accordingly hint information automatically according to the display platform at this electronic document place; For example, if use mobile phone to read, then select name to be called the reading hint information of " cell phone reading clue "; If using computer reads; Then select a reading hint information that is called " desktop reading clue " etc.; After accomplishing of the automatic selection of reading application program to the reading hint information; In step 27,, obtain the reading fragment in this reading hint information then according to reading the selected reading hint information of application program; Carry out step 28 and step 29 then successively.
Embodiment two:
The embodiment of the invention two provides a kind of optimized electronic electronic document reading mode treatment method; This method identifies pairing optimal read pattern through creating the document contents fragment for document content fragments different in the same electronic document; And the optimal read pattern of creating is combined to form is fit to this electronic document required optimal read clue under certain electronic reading product; And when readers ' reading, obtain optimal read pattern and the corresponding partial document contents fragment of this reading model in the optimal read clue that this electronic document preserves; And according to this optimal read pattern the partial document contents fragment is shown, to improve reader's reading experience effect.The concrete operations step is following:
Step 31, operating personnel are that each partial document contents fragment of electronic document is provided with and the corresponding optimal read pattern of the document contents fragment sign; For example, first section is character introduction in this electronic document, and second section is picture, and the 3rd section is animation alternately, and the 4th section is audio frequency; According to the definition of various reading models, when the optimal read pattern being set, can do following processing for foregoing:
For character introduction is provided with document content sheet segment identification, the document contents fragment identifies corresponding streaming reading model;
For picture is provided with document content sheet segment identification, the document contents fragment identifies corresponding caricature reading model;
For animation alternately is provided with document content sheet segment identification, the document contents fragment identifies corresponding animation play mode;
Be audio setting document content sheet segment identification, the document contents fragment identifies corresponding multimedia pattern;
The kind of above-mentioned reading model and definition are referring to embodiment one;
Step 32; Will be to the optimal read pattern of each partial document contents fragment setting; Position according to the pairing document content fragment of this optimal read pattern is identified in the document confirms that the sequential combination of said optimal read pattern is an optimal read hint information, and defines this optimal read hint information and be suitable for which kind of display platform; And should read hint information and be saved in this electronic document; The method which kind of display platform is definition optimal read hint information be suitable for is referring to embodiment one;
In this step, also can confirm that the numeric order of said optimal read pattern is combined as an optimal read hint information according to the position that the pairing document content fragment of optimal read pattern is identified in the document;
Step 33 is read application program when opening this electronic document when the reader uses, and reads application program and judges whether this electronic document preserves the reading hint information, if having then change step 35 over to; If not then change step 34 over to;
Step 34 is read the full content of application program with said document to be shown, shows according to the reading model of predefined said document to be shown; Said reading model according to predefined said document to be shown shows and is meant, do not preserve when reading clue when document to be shown, reads application program and selects reading model according to prior art;
Step 35; Read the optimal read hint information that application program is preserved according to electronic document; Read order according to the corresponding relation that is provided with in advance, obtain contents fragment sign and the corresponding partial document content of this contents fragment sign in this optimal read hint information;
The said corresponding relation that is provided with in advance reads order and is meant according to the pairing document content fragment of this optimal read pattern and is identified at the order that said optimal read pattern is confirmed in position in the document; Perhaps be identified at the numeric order that said optimal read pattern is confirmed in position in the document according to the pairing document content fragment of optimal read pattern;
Step 36 reads order according to predefined corresponding relation and obtains the pairing electronic document contents fragment sign of this optimal read pattern;
Step 37, successively the electronic document contents fragment being identified pairing partial document content is shown to the reader according to the pairing optimal read pattern of this partial document content in proper order according to obtaining.
In addition, in step 35, read application program and also can the optimal read clue that electronic document is preserved be offered the reader, let the reader select; And with the optimal read hint information of user-selected reading hint information, and accomplish subsequent step as this electronic document.
Embodiment three:
A kind of electronics electronic document reading mode treatment method according to embodiment one provides describes in detail to embodiment one in the present embodiment, the kind of the reading model that relates in the present embodiment and definition, and referring to specific embodiment one, detailed process is following:
The page display effect that for example has a format electronic document as shown in Figure 2; Wherein comprised 4 partial contents, be respectively: the secondary name that title " chapter 1 sample ", text " introduce literal ", be made up of A, B, C three parts is called the picture and a multimedia audio of " Image3 ".Want that this electronic document is created many and read hint information, just experience the optimal read effect, can be provided with through following steps with the user:
Step 401, operating personnel define through the structure of code to the format reading model of the content in this page and this page or leaf according to the content in the electronic document shown in Fig. 2, and are specific as follows:
Content-defined code to this page is:
Structural code to the definition of the format reading model of this page is:
Step 402, operating personnel carry out the organization definition of streaming reading model to the page of the electronic document shown in Fig. 2, and the structural code of concrete convection type reading model definition is:
The display effect of final definition back streaming reading model is as shown in Figure 3, and the structure through the streaming reading model shows the form of the content among Fig. 2 with chapters and sections, comprises 3 paragraphs among Fig. 3, refers to document and caricature content among Fig. 2 respectively;
Step 403, operating personnel are according to the content in the electronic document shown in Fig. 2, through code this page are carried out the organization definition of caricature reading model, and the structural code of the caricature reading model of concrete definition is:
Can the content in the electronic document among Fig. 2 be divided into effect shown in Fig. 4 A according to the area size that defines in the code according to above-mentioned definition, so the content among Fig. 2, the reader will be shown to the reader with the form of Fig. 4 B to Fig. 4 F when browsing successively;
Step 404 after the content-defined intact required reading model organization definition that is the electronic document among Fig. 2, is read the hint information structure according to the structure of definition for this electronic document definition;
6 reading fragments that defined in this step under above-mentioned 4 kinds of reading models are the corresponding relation of document content sheet segment identification and reading model, and its code structure is following:
Can know according to above-mentioned definition; The document contents fragment is designated " 2001 " and " 2002 " to ID and the document contents fragment identifies pairing content for the reading fragment of " 4001 " has comprised under the streaming reading model structure, is about to " chapter 1 sample " and " character introduction " and shows with the streaming reading model; ID has comprised the pairing image content that document contents fragment under the streaming reading model structure is designated " 2003 " and the document contents fragment sign for the reading fragment of " 4002 ", and promptly image content shows with the streaming reading model; The document contents fragment is designated " 3001 " and " 3002 " to ID and the document contents fragment identifies pairing content for the reading fragment of " 4003 " has comprised under the caricature reading model, and promptly " chapter 1 sample " and " character introduction " shows with the caricature reading model; ID is designated " 3003 ", " 3004 " and " 3005 " and the document contents fragment and identifies pairing content for the reading fragment of " 4004 " has comprised under the caricature reading model document contents fragment, and promptly the A in the picture, B, C three parts show with the caricature reading model; The document contents fragment is designated " 1001 " to ID and the document contents fragment identifies pairing content for the reading fragment of " 4005 " has comprised under the format reading model, and this page is shown with the format reading model; Document content fragment in the page that document contents fragment under the format reading model is designated " 1001 " is designated " 5 " to ID and the document contents fragment identifies pairing content of multimedia for the reading fragment of " 4006 " has comprised, and promptly this content of multimedia shows with the multimedia file that it defines in this format reading model;
Step 405, according to the reading fragment of above-mentioned definition, the structure of hint information is read in definition; To be fit to two reading hint information that mobile phone and display read be example to define in this step, and code is following:
In this step, confirm that according to the order that the pairing document content fragment of reading fragment is identified in the document sequential combination of said reading fragment is one and reads hint information; Or be identified at the sequence number that order in the document is confirmed this readings fragment, and be combined as a reading clue according to numeric order according to reading the pairing document content fragment of fragment;
What name was called that the reading hint information of " cell phone reading " quotes in this step is that ID is the reading fragment of " 4001 " and " 4004 "; Promptly show the word segment of electronic document with the streaming reading model and in the relevant position play multimedia files, with the picture part of caricature reading model demonstration electronic document; What name was called that the reading hint information of " desktop readings " quotes is that ID is the reading fragment of " 4005 ", promptly with format reading model demonstration electronic document contents fragment be designated " 1001 " page in all the elements;
In this step, when selecting " cell phone reading " as the reading hint information of document to be shown, the display effect of mobile phone first screen is as shown in Figure 3; Next 3 the screen display effect like Fig. 4 D to shown in Fig. 4 F; And, this 3 screen content of Fig. 4 F plays the multimedia file that name is called " Audio5 " when showing at Fig. 4 D;
Step 406, when the user read at the terminal, reader application was opened the electronic document of user's appointment;
Step 407, reader application judge whether this electronic document stores the reading clue, if storage then the reading clue that this electronic document is corresponding is shown to the user, and would forward step 409 to; If not then forward step 408 to;
Step 408 is read the full content of application program with said document to be shown, shows according to the reading model of predefined said document to be shown; Said reading model according to predefined said document to be shown shows and is meant, do not preserve when reading clue when document to be shown, reads application program and selects reading model according to prior art;
Step 409, the reading application program is shown to the user with the title of all reading hint information that the document is preserved, and supplies the user to select;
Step 410; Read application program with user-selected reading hint information; As being the reading hint information that said document to be shown is selected, reading order according to predefined corresponding relation and obtain corresponding relation and the corresponding partial data content of the document content sheet segment identification in this corresponding relation in this reading clue successively; Said predefined corresponding relation reads order and is meant the order of reading the reading fragment in the hint information; Perhaps read the numeric order of fragment in reading hint information;
Step 411 reads sequential read according to predefined corresponding relation and reads the partial data content of reading to read in the hint information document content sheet segment identification correspondence that fragment comprised;
Step 412, the order that reads according to the partial document content shows the partial document content that reads according to the corresponding reading model of this partial document content, as shown in Figure 5;
In addition, in step 407, read application program and also can select to read accordingly hint information automatically according to the display platform at this electronic document place; For example, if use mobile phone to read, then select name to be called the cell phone reading clue " the reading hint information; If using computer reads; Then select a reading hint information that is called " desktop reading clue " etc.; After accomplishing of the automatic selection of reading application program to the reading hint information; In step 410,,, and obtain the reading fragment in this reading hint information as the reading hint information of document to be shown then according to reading the selected reading hint information of application program; Carry out other steps then successively.
As shown in Figure 6, the embodiment of the invention provides a kind of electronic document reading mode treatment device, and this device comprises:
Acquisition module 62; Be used to obtain the corresponding reading hint information of document to be shown; The corresponding relation that comprises many document contents fragment signs and reading model in this reading hint information; Partial data content in the corresponding said document to be shown of said many document contents fragments sign, and the corresponding partial data content difference of the document content sheet segment identification in the different corresponding relation;
Read module 66 is used for reading the corresponding partial data content of document content sheet segment identification of every corresponding relation;
Display module 67 is used for the partial document content that reads is shown according to the corresponding reading model of this partial document content;
Further, this device also comprises:
Select module 64, be used for selecting one to read hint information for said document to be shown from a plurality of reading hint information that get access to;
Accordingly, said read module 66 is used for reading the corresponding partial data content of document content sheet segment identification in every corresponding relation that the reading hint information of selection comprises;
Accordingly, said selection module 64 is used for according to predefined reading clue selection mode, from a plurality of reading hint information that get access to, selects one to read hint information for said document to be shown; Perhaps, the prompting user selects one to read hint information from said a plurality of reading hint information, and the reading hint information that the user is chosen is as the reading hint information that is said document selection to be shown;
Further, said selection module 64 also is used for confirming the document display platform of current use and the reading hint information that is suitable for the document display platform in a plurality of reading hint information; The reading hint information of selecting this reading hint information to use as said document to be shown;
Further, this device also comprises:
Judge module 61 is used to judge whether to store the corresponding reading hint information of said document to be shown;
Accordingly, said acquisition module 62 is used for when storing the reading hint information of said document correspondence to be shown, obtains the corresponding reading hint information of said document to be shown;
Further; Said display module 67; Also be used for judging when not storing the corresponding reading hint information of said document to be shown,, show according to the reading model of predefined said document to be shown with the total data content of document to be shown when said judge module;
Said read module 66 is used for reading order according to predefined corresponding relation, reads the corresponding relation and the corresponding partial data content of the document content sheet segment identification in this corresponding relation that comprise in the said reading hint information;
Corresponding said display module 67 is used for the order that reads according to the partial document content, and the partial document content that reads is shown according to the corresponding reading model of this partial document content.
In sum, beneficial effect of the present invention:
Adopt method provided by the invention, can be respectively said partial content and set suitable reading model according to the partial content in the electronic document to be shown, promptly each partial content all can be set a kind of reading model that is fit to this partial content; When the user reads this electronic document; Reading application program shows this partial content according to the pairing reading model of the partial content in the electronic document; Make the content in the same electronic document to show with different reading models; Avoided electronic document when showing, the problem that reading model is single; Simultaneously because the pairing partial document content of reading model all is to be arranged in order to read in the clue; Therefore accurate reading order also; For example the audio or video file is arranged in according to predefined reading model and reads in the clue; Can confirm to play the particular location of this audio or video, therefore can use the reading application program this audio or video file to be play, therefore can improve user's reading experience effect at assigned address.
Those skilled in the art should understand that embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of the embodiment of complete hardware embodiment, complete software implementation example or combination software and hardware aspect.And the present invention can be employed in the form that one or more computer-usable storage medium (including but not limited to magnetic disk memory, CD-ROM, optical memory etc.) that wherein include computer usable program code go up the computer program of implementing.
The present invention is that reference is described according to the process flow diagram and/or the block scheme of method, equipment (system) and the computer program of the embodiment of the invention.Should understand can be by the flow process in each flow process in computer program instructions realization flow figure and/or the block scheme and/or square frame and process flow diagram and/or the block scheme and/or the combination of square frame.Can provide these computer program instructions to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, make the instruction of carrying out through the processor of computing machine or other programmable data processing device produce to be used for the device of the function that is implemented in flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame appointments.
These computer program instructions also can be stored in ability vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work; Make the instruction that is stored in this computer-readable memory produce the manufacture that comprises command device, this command device is implemented in the function of appointment in flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame.
These computer program instructions also can be loaded on computing machine or other programmable data processing device; Make on computing machine or other programmable devices and to carry out the sequence of operations step producing computer implemented processing, thereby the instruction of on computing machine or other programmable devices, carrying out is provided for being implemented in the step of the function of appointment in flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame.
Although described the preferred embodiments of the present invention, in a single day those skilled in the art get the basic inventive concept could of cicada, then can make other change and modification to these embodiment.So accompanying claims is intended to be interpreted as all changes and the modification that comprises preferred embodiment and fall into the scope of the invention.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, belong within the scope of claim of the present invention and equivalent technologies thereof if of the present invention these are revised with modification, then the present invention also is intended to comprise these changes and modification interior.