Embodiment
The embodiment of the present invention provides a kind of method and device of electronic document reading mode treatment method, the method is passed through in advance according to the content in electronic document, be respectively the reading model that different document curriculum offering in same electronic document is corresponding with the document content, set reading model carried out one or more reading hint information that one or more are combined to form this electronic document simultaneously.Make user when read electronic documents, reading application program can according to the document display platform at place, such as, mobile phone or computer etc., select one that is applicable to the document display platform and read hint information, because selected reading hint information is different, the array mode of the reading model that same document uses is not identical yet, read application program and determine which reading model this electronic document all employ according to the selection result of reading clue, finally the reading model of the document content in electronic document corresponding to self is shown.As shown in Figure 1, concrete steps are as follows:
Step 11, obtain the reading hint information that document to be shown is corresponding, the corresponding relation of many document contents fragment marks and reading model is comprised in this reading hint information, partial data content in the corresponding described document to be shown of described many document contents fragments mark, and partial data content corresponding to document content fragment identification in different corresponding relation is different;
Step 12 reads partial data content corresponding to document content fragment identification in every bar corresponding relation, and the partial document content read is shown according to the reading model that this partial document content is corresponding.
Before step 11, judge whether to store reading hint information corresponding to described document to be shown; If store the reading hint information that described document to be shown is corresponding, then carry out step 11; Otherwise, by the total data content of described document to be shown, show according to the reading model of the document described to be shown preset, namely conventionally select reading model and show;
In step 11, when storing reading hint information corresponding to described document to be shown, obtain the reading hint information that described document to be shown is corresponding; If when to get reading hint information corresponding to document to be shown be multiple, then from the multiple reading hint information got for described document to be shown selects one to read hint information; From the multiple reading hint information got, select one to read hint information for described document to be shown in this step can have multiple method, specifically comprise following two kinds of methods:
The first, according to the reading clue selection mode preset, for described document to be shown selects one to read hint information from the multiple reading hint information got;
The second, prompting user selects one to read hint information from described multiple reading hint information, and reading hint information user chosen is as the reading hint information selected for described document to be shown;
Due to read in hint information also comprise this reading hint information the document display platform information that is suitable for, when using first method, the document display platform of current use can be determined, and be suitable for the reading hint information of the document display platform in multiple reading hint information; Select the reading hint information that this reading hint information uses as described document to be shown;
In step 12, the partial data content that the document content fragment identification in the every bar corresponding relation comprised in the reading hint information that reading is selected is corresponding; The method read can have multiple, specifically can comprise the following steps:
According to the corresponding relation reading order preset, read the partial data content that document content fragment identification in the corresponding relation and this corresponding relation comprised in described reading hint information is corresponding;
According to the reading order of partial document content, the partial document content read is shown according to the reading model that this partial document content is corresponding.
Below with specific embodiment introduction:
Embodiment one:
The embodiment of the present invention one provides a kind of method of electronic document reading mode treatment method, the method is by obtaining the reading hint information in electronic document, and according to the corresponding relation of document contents fragment mark in this reading hint information with reading model, read the partial data content that document content fragment identification is corresponding, and the partial document content read is shown according to the reading model that this partial document content is corresponding.Concrete operation step is as follows:
Step 21, operating personnel are that multiple document content fragments of electronic document arrange document content fragment identification, and are the foundation of document content fragment identification and the corresponding relation of reading model; Described operating personnel can be documents editing personnel or computer program; Setting up for document content fragment identification has multiple with the method for the corresponding relation of reading model, specific as follows:
Such as, in this electronic document, first paragraph is character introduction, and second segment is picture, and the 3rd section is can interactive animation, and the 4th section is audio frequency; According to the definition of various reading model, be respectively foregoing and reading model be set, specifically can do following process:
Be 1 for character introduction part arranges document content fragment identification, reading model corresponding to the document contents fragment mark can comprise: streaming reading model or caricature reading model;
Be 2 for Picture section arranges document content fragment identification, reading model corresponding to the document contents fragment mark can comprise: streaming reading model or caricature reading model;
For can interactive animation part to arrange document content fragment identification be 3, reading model corresponding to the document contents fragment mark can comprise: animation play mode or caricature reading model;
Be 4 for audio-frequency unit arranges document content fragment identification, reading model corresponding to the document contents fragment mark can comprise: multimedia pattern;
Described reading model is not limited to following several: format reading model, streaming reading model, caricature reading model, multimedia pattern and animation play mode;
Format reading model is organizing electronic document in units of page, show equally, but format reading model shows after can not carrying out typesetting again according to the size of viewing area when reading in units of page; Streaming reading model is organizing electronic document in units of chapters and sections hierarchical structure, and shows after can carrying out typesetting again according to the size of viewing area; Caricature reading model is in units of frame, and by being multiple region by page division, each frame quotes a region in this page, shows each frame successively when reading; Multimedia pattern comprises with the mode of page embedding or exclusive mode viewing video, and listening to audio; Animation play mode is that along with the change of time, the display result of partial document content changes when showing document content;
Step 22, according to the reading model corresponding to the document content fragment identification arranged in step 21, be respectively each document fragment identification and mark off one and read fragment, this reading fragment is as the corresponding relation of the document fragment identification and reading model; Such as, above-mentioned document content mark is divided the method for reading fragment for: can from word or file content identification, photo-document content identification, can interactive animation document content mark, pick out a reading model respectively as reading fragment reading model corresponding to audio documents content identification; Reading fragment corresponding to such as word or file content identification is streaming reading model; Reading fragment corresponding to photo-document content identification is caricature reading model; Can reading fragment corresponding to interactive animation document content mark be animation play mode; Reading fragment corresponding to audio documents content identification is multimedia pattern;
Also can mark off other to document content mark in this step and read fragment as corresponding relation, repeat no more herein;
Step 23, reading fragment out will be divided, determine that the sequential combination of described reading fragment is one and reads hint information according to the document content fragment identification order in a document corresponding to this reading fragment, and define this reading hint information and be suitable for which kind of document display platform; And this reading hint information is saved in this electronic document; Described 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 described definition be suitable for has multiple, can be specifically: when this reading hint information is suitable for mobile phone display screen this reading thread definitions can be read for being suitable for mobile phone, and called after " mobile phone reading clue "; When this reading hint information is suitable for computer monitor, this reading hint information can be defined as and be suitable for desktop reading, and called after " computer reading clue ";
According to the difference of reading fragment, the reading hint information of multiple applicable different document display platform can be combined in this step;
In this step, also can determine the sequence number of this reading fragment according to the document content fragment identification order in a document of reading corresponding to fragment, and be combined as a reading clue according to numeric order;
Step 24, when reader uses reading application program to open this electronic document, reads application program and judges whether this electronic document preserves reading hint information corresponding to this electronic document to be shown, if had, proceeds to step 26; If, do not proceed to step 25;
Step 25, reads application program by the full content of described document to be shown, shows according to the reading model of the document described to be shown preset; The reading model of the described document described to be shown according to presetting carries out display and refers to, when reading clue do not preserved by document to be shown, reads application program and conventionally selects reading model;
Step 26, the title of reading all reading hint information that the document is preserved by application program is shown to user, selects for user;
Step 27, read application program by user-selected reading hint information, as the reading hint information selected for described document to be shown, obtain the corresponding relation in this reading hint information and partial data content corresponding to the document content fragment flag in this corresponding relation successively according to the corresponding relation reading order preset; The described corresponding relation reading order preset refers to the order of the reading fragment of reading in hint information; Or read fragment and read the numeric order in hint information;
Step 28, reads the partial data content of reading in hint information and reading the document content mark correspondence that fragment comprises according to the corresponding relation reading order preset;
Step 29, according to the reading reading order of partial document content, shows the partial document content read according to the reading model that this partial document content is corresponding;
In addition, in step 26, read application program also can, automatically according to the display platform at this electronic document place, to select to read hint information accordingly; Such as, if use mobile phone to read, then name is selected to be called the reading hint information of " mobile phone reading clue "; If use computer to read, name is then selected to be called the reading hint information etc. of " desktop reading clue ", complete read application program to read hint information automatic selection after, in step 27 then according to the reading hint information of reading selected by application program, obtain the reading fragment in this reading hint information; Then step 28 and step 29 is carried out successively.
Embodiment two:
The embodiment of the present invention two provides a kind of optimized electronic electronic document reading mode treatment method, the method is by creating the optimal read pattern corresponding to the document contents fragment mark for document content fragments different in same electronic document, and the optimal read pattern of establishment is carried out be combined to form this electronic document applicable optimal read clue required under certain electronic reading product, and the optimal read pattern obtained when readers ' reading in the optimal read clue that this electronic document preserves and partial document contents fragment corresponding to this reading model, and according to this optimal read pattern, partial document contents fragment is shown, to improve the reading experience effect of reader.Concrete operation step is as follows:
Step 31, operating personnel are that each partial document contents fragment setting of electronic document identifies corresponding optimal read pattern with the document contents fragment; Such as, in this electronic document, first paragraph is character introduction, and second segment is picture, and the 3rd section is can interactive animation, and the 4th section is audio frequency; According to the definition of various reading model, following process can be done when arranging optimal read pattern for foregoing:
For character introduction arranges document content fragment identification, the document contents fragment identifies corresponding streaming reading model;
For picture arranges document content fragment identification, the document contents fragment identifies corresponding caricature reading model;
For arranging document content fragment identification by interactive animation, the document contents fragment identifies corresponding animation play mode;
For audio setting document content fragment identification, the document contents fragment identifies corresponding multimedia pattern;
The kind of above-mentioned reading model and definition, see embodiment one;
Step 32, by the optimal read pattern arranged each partial document contents fragment, determine that the sequential combination of described optimal read pattern is an optimal read hint information according to the document content fragment identification position in a document corresponding to this optimal read pattern, and define this optimal read hint information and be suitable for which kind of display platform; And this reading hint information is saved in this electronic document; Definition optimal read hint information is suitable for the method for which kind of display platform see embodiment one;
In this step, also can determine that the numeric order of described optimal read pattern is combined as an optimal read hint information in the document content fragment identification position in a document corresponding to optimal read pattern;
Step 33, when reader uses reading application program to open this electronic document, reads application program and judges whether this electronic document preserves reading hint information, if had, proceed to step 35; If, do not proceed to step 34;
Step 34, reads application program by the full content of described document to be shown, shows according to the reading model of the document described to be shown preset; The reading model of the described document described to be shown according to presetting carries out display and refers to, when reading clue do not preserved by document to be shown, reads application program and conventionally selects reading model;
Step 35, read the optimal read hint information that application program is preserved according to electronic document, according to the corresponding relation reading order pre-set, the partial document content that the contents fragment obtained in this optimal read hint information identifies and this contents fragment mark is corresponding;
The described corresponding relation reading order pre-set refers to the order determining described optimal read pattern according to the document content fragment identification position in a document corresponding to this optimal read pattern; Or the numeric order of described optimal read pattern is determined in the document content fragment identification position in a document corresponding to optimal read pattern;
Step 36, obtains the electronic document content fragment identification corresponding to this optimal read pattern according to the corresponding relation reading order preset;
Step 37, is shown to reader by the partial document content corresponding to electronic document content fragment identification according to the optimal read pattern corresponding to this partial document content successively according to acquisition order.
In addition, in step 35, read application program and also the optimal read clue that electronic document is preserved can be supplied to reader, allow reader select; And using the optimal read hint information of user-selected reading hint information as this electronic document, and complete subsequent step.
Embodiment three:
According to a kind of electronic document reading model disposal route that embodiment one provides, in the present embodiment embodiment one is described in detail, the kind of the reading model related in the present embodiment and definition, see specific embodiment one, detailed process is as follows:
The such as page display effect of existence one format electronic document as shown in Figure 2, wherein contain 4 partial contents, respectively: title " chapter 1 sample ", text " introduce word ", by A, B, C tri-the secondary name that forms of part be called picture and a multimedia audio of " Image3 ".Want that many are created to this electronic document and read hint information, just experience optimal read effect with user, arrange by following steps:
Step 401, operating personnel, according to the content in the electronic document shown in Fig. 2, are defined by the structure of code to the format reading model of the content in this page and this page, specific as follows:
To the content-defined code of this page be:
Step 402, operating personnel carry out the structure 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:
After final definition, the display effect of streaming reading model as shown in Figure 3, the content in Fig. 2 shown with the form of chapters and sections by the structure of streaming reading model, comprises 3 paragraphs in Fig. 3, refers to the document in Fig. 2 and caricature content respectively;
Step 403, operating personnel are according to the content in the electronic document shown in Fig. 2, and by code, this page is carried out to the structure definition of caricature reading model, the structural code of the caricature reading model of concrete definition is:
Content in electronic document in Fig. 2 can be divided into effect shown in Fig. 4 A according to the area size defined in code according to above-mentioned definition, the content therefore in Fig. 2, when reader browsers, will be shown to reader with the form of Fig. 4 B to Fig. 4 F successively;
Step 404, after for the content-defined complete required reading model structure definition of the electronic document in Fig. 2, is this electronic document definition reading hint information structure according to the structure of definition;
6 of defining in this step under above-mentioned 4 kinds of reading models read the corresponding relation of fragment and document content fragment identification and reading model, and its code structure is as follows:
According to above-mentioned definition, the reading fragment that ID is " 4001 " contains streaming reading model structure Documents contents fragment and is designated " 2001 " and " 2002 " and the content corresponding to the document contents fragment mark, is about to " chapter 1 sample " and shows with streaming reading model with " character introduction "; The reading fragment that ID is " 4002 " contains the corresponding image content that streaming reading model structure Documents contents fragment is designated " 2003 " and the document contents fragment mark, and namely image content shows with streaming reading model; The reading fragment that ID is " 4003 " contains caricature reading model Documents contents fragment and is designated " 3001 " and " 3002 " and the content corresponding to the document contents fragment mark, and namely " chapter 1 sample " and " character introduction " show with caricature reading model; The reading fragment that ID is " 4004 " contains caricature reading model Documents contents fragment and is designated " 3003 ", " 3004 " and " 3005 " and the content corresponding to the document contents fragment mark, A, B, C namely in picture tri-part show with caricature reading model; The reading fragment that ID is " 4005 " contains format reading model Documents contents fragment and is designated " 1001 " and the content corresponding to the document contents fragment mark, and this page is shown with format reading model; The reading fragment that ID is " 4006 " contains format reading model Documents contents fragment and is designated document content fragment identification in the page of " 1001 " content of multimedia corresponding to " 5 " and the document contents fragment mark, and the multimedia file that namely this content of multimedia defines in this format reading model with it shows;
Step 405, according to reading fragment defined above, the structure of hint information is read in definition; Read hint information for two that carry out reading to define applicable mobile phone and display in this step, code is as follows:
In this step, determine that the sequential combination of described reading fragment is one and reads hint information according to the document content fragment identification order in a document of reading corresponding to fragment; Or determine the sequence number of this reading fragment according to the document content fragment identification order in a document of reading corresponding to fragment, and be combined as a reading clue according to numeric order;
That in this step, name is called that the reading hint information of " mobile phone reading " quotes is ID is the reading fragment of " 4001 " and " 4004 ", namely show the word segment of electronic document with streaming reading model and at relevant position play multimedia file, show the Picture section of electronic document with caricature reading model; That name is called that the reading hint information of " desktop readings " quotes is ID is the reading fragment of " 4005 ", and namely showing electronic document content fragment identification with format reading model is all the elements in the page of " 1001 ";
In this step, when the reading hint information selecting " mobile phone reading " as document to be shown, the display effect that mobile phone first shields as shown in Figure 3; The display effect of following 3 screens is as shown in Fig. 4 D to Fig. 4 F; And broadcasting name is called the multimedia file of " Audio5 " while this 3 screen content display of Fig. 4 D to Fig. 4 F;
Step 406, user is when terminal is read, and reader application opens the electronic document that user specifies;
Step 407, reader application judges whether this electronic document stores reading clue, if stored, reading clue corresponding for this electronic document is shown to user, and forwards step 409 to; If, do not forward step 408 to;
Step 408, reads application program by the full content of described document to be shown, shows according to the reading model of the document described to be shown preset; The reading model of the described document described to be shown according to presetting carries out display and refers to, when reading clue do not preserved by document to be shown, reads application program and conventionally selects reading model;
Step 409, the title of reading all reading hint information that the document is preserved by application program is shown to user, selects for user;
Step 410, read application program by user-selected reading hint information, as the reading hint information selected for described document to be shown, obtain the corresponding relation in this reading clue and partial data content corresponding to the document content fragment identification in this corresponding relation successively according to the corresponding relation reading order preset; The described corresponding relation reading order preset refers to the order of the reading fragment of reading in hint information; Or read fragment and read the numeric order in hint information;
Step 411, reads to read in hint information according to the corresponding relation reading order that presets and reads partial data content corresponding to document content fragment identification that fragment comprises;
Step 412, according to the reading order of partial document content, shows the partial document content read according to the reading model that this partial document content is corresponding, as shown in Figure 5;
In addition, in step 407, read application program also can, automatically according to the display platform at this electronic document place, to select to read hint information accordingly; Such as, if use mobile phone to read, then name is selected to be called the reading hint information of " mobile phone reading clue "; If use computer to read, name is then selected to be called the reading hint information etc. of " desktop reading clue ", complete read application program to read hint information automatic selection after, in step 410 then according to the reading hint information of reading selected by application program, as the reading hint information of document to be shown, and obtain the reading fragment in this reading hint information; Then other steps are carried out successively.
As shown in Figure 6, the embodiment of the present invention provides a kind of electronic document reading mode treatment device, and this device comprises:
Acquisition module 62, for obtaining reading hint information corresponding to document to be shown, the corresponding relation of many document contents fragment marks and reading model is comprised in this reading hint information, partial data content in the corresponding described document to be shown of described many document contents fragments mark, and partial data content corresponding to document content fragment identification in different corresponding relation is different;
Read module 66, for reading partial data content corresponding to document content fragment identification in every bar corresponding relation;
Display module 67, for showing the partial document read content according to the reading model that this partial document content is corresponding;
Further, this device also comprises:
Select module 64, for from the multiple reading hint information got for described document to be shown select one read hint information;
Accordingly, described read module 66, for reading partial data content corresponding to document content fragment identification in every bar corresponding relation of comprising in the reading hint information of selection;
Accordingly, described selection module 64, for according to the reading clue selection mode preset, for described document to be shown selects one to read hint information from the multiple reading hint information got; Or prompting user selects one to read hint information from described multiple reading hint information, reading hint information user chosen is as the reading hint information selected for described document to be shown;
Further, described selection module 64, also for determining the document display platform of current use, and is suitable for the reading hint information of the document display platform in multiple reading hint information; Select the reading hint information that this reading hint information uses as described document to be shown;
Further, this device also comprises:
Judge module 61, stores reading hint information corresponding to described document to be shown for judging whether;
Accordingly, described acquisition module 62, for when storing reading hint information corresponding to described document to be shown, obtains the reading hint information that described document to be shown is corresponding;
Further, described display module 67, time also for judging not store reading hint information corresponding to described document to be shown when described judge module, by the total data content of document to be shown, show according to the reading model of the document described to be shown preset;
Described read module 66, for according to the corresponding relation reading order preset, reads the partial data content that document content fragment identification in the corresponding relation and this corresponding relation comprised in described reading hint information is corresponding;
Corresponding described display module 67, for the reading order according to partial document content, shows the partial document content read according to the reading model that this partial document content is corresponding.
In sum, beneficial effect of the present invention:
Adopt method provided by the invention, according to the partial content in electronic document to be shown, can be respectively described partial content and set suitable reading model, namely each partial content all can set a kind of reading model being applicable to this partial content; When user reads this electronic document, read the reading model of application program corresponding to the partial content in electronic document to show this partial content, content in same electronic document can be shown with different reading models, avoid electronic document when showing, the problem that reading model is single; Partial document content simultaneously corresponding to reading model is all be arranged in order to read in clue, therefore also can accurate reading order, such as being arranged according to the reading model preset by audio or video file reads in clue, the particular location playing this audio or video can be determined, therefore reading application program can be used to play this audio or video file at assigned address, therefore can improve the reading experience effect of user.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disk memory, CD-ROM, optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the process flow diagram of the method for the embodiment of the present invention, equipment (system) and computer program and/or block scheme.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or square frame.These computer program instructions can being provided to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computing machine or other programmable data processing device produce device for realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be loaded in computing machine or other programmable data processing device, make on computing machine or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computing machine or other programmable devices is provided for the step realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
Although describe the preferred embodiments of the present invention, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.