Summary of the invention
In order to solve the problems referred to above, the present invention provides a kind of reading processing system and method, server, terminal unit, with
Realize more abundant sight reading experience.
In order to realize object above, the reading processing system that the present invention provides, this reading processing system includes:
Server, for arranging sight to the one or more parts in textual resources file, and by sight configuration information
Add textual resources file generated digital content file;By sight configuration information and corresponding with sight configuration information one or many
Individual sight resource file is packaged into sight theme bag;
Terminal unit, for from described server download digital content file, from the addition sight configuration information downloaded
Digital content file parses textual resources file, according to the sight configuration information in the textual resources file parsed from institute
State server and download corresponding sight theme bag, and coordinate to show the textual resources included in the textual resources file parsed
With the sight resource included in the sight resource file in the sight theme bag downloaded.
Wherein, described server specifically for the semanteme according to described textual resources file and/or linguistic context to described text
One or more parts in resource file arrange sight.
Preferably, described sight configuration information includes at least one of: background music, background static images, animation figure
Sheet, font, font size, font color, text voice configuration information.
Preferably, described text voice configuration information includes at least one of: role, intonation, word speed are arranged.
Wherein, described digital content file is XML file, and the sight configuration information in described sight theme bag is recorded as
XML file.
The embodiment of the present invention also provides for a kind of server, and this server includes:
Module is set, for the one or more parts in textual resources file are arranged sight;
First processing module, for adding textual resources file generated digital content file by sight configuration information;
Second processing module, for providing sight configuration information and one or more sights corresponding with sight configuration information
Source file is packaged into sight theme bag.
The embodiment of the present invention also provides for a kind of terminal unit, and this terminal unit includes:
Download module, for from server download digital content file;
Parsing module, for parsing textual resources literary composition from the digital content file adding sight configuration information downloaded
Part, downloads corresponding sight theme bag according to the sight configuration information in the textual resources file parsed from described server,
And coordinate the sight money showing in the sight theme bag of textual resources and download included in the textual resources file parsed
Sight resource included in source file.
Wherein, described terminal unit also includes light monitoring modular, and described light monitoring modular monitors for basis
Light change automatic switching situation is arranged.
Wherein, the process that described automatic switching situation is arranged includes at least one of: be automatically adjusted according to light change
The backlight of described terminal unit, it is automatically adjusted the font color of described terminal unit according to light change.
Preferably, when described terminal unit is connected with described server every time, check whether described server updates sight
The sight resource file of theme or sight theme, if it is, the sight theme of down loading updating or the sight of sight theme
Resource file.
The embodiment of the present invention also provides for a kind of reading processing method, and the method includes:
Server arranges sight to the one or more parts in textual resources file, and sight configuration information is added literary composition
This resource file generates digital content file;By sight configuration information and the one or more sights corresponding with sight configuration information
Resource file is packaged into sight theme bag;
Terminal unit is from described server download digital content file, in the numeral adding sight configuration information downloaded
Hold in file and parse textual resources file, according to the sight configuration information in the textual resources file parsed from described service
Corresponding sight theme bag downloaded by device, and coordinates to show the textual resources included in the textual resources file parsed and download
Sight theme bag in sight resource file included in sight resource.
The embodiment of the present invention also provides for a kind of reading processing system, and this system includes:
Server, for arranging sight to the one or more parts in textual resources file, and by textual resources file
With the sight corresponding with the one or more parts in textual resources file arranges corresponding one or more sight resource files
Generate digital content file;
Terminal unit, for downloading described digital content file from described server, is arranged from the addition sight downloaded
The digital content file of information parses textual resources file and sight resource file, and coordinates to show the text money parsed
Textual resources included in source file and with the sight configuration information corresponding sight resource file in text resource file
Included in sight resource.
The embodiment of the present invention also provides for a kind of server, and this server includes:
Module is set, for the one or more parts in textual resources file are arranged sight;
Processing module, for by textual resources file and the feelings corresponding with the one or more parts in textual resources file
Scape arranges one or more sight resource files of correspondence and generates digital content file.
The embodiment of the present invention also provides for a kind of terminal unit, and this terminal unit includes:
Download module, for from server download digital content file;
Parsing module, for parsing textual resources literary composition from the digital content file adding sight configuration information downloaded
Part, downloads corresponding sight theme bag according to the sight configuration information in the textual resources file parsed from described server,
And coordinate the sight money showing in the sight theme bag of textual resources and download included in the textual resources file parsed
Sight resource included in source file.
The embodiment of the present invention also provides for a kind of reading processing method, and the method includes:
Server arranges sight to the one or more parts in textual resources file, and by textual resources file and with literary composition
Sight corresponding to one or more parts in this resource file arranges one or more sight resource files of correspondence and generates number
Word content file;
Terminal unit downloads described digital content file from described server, from the addition sight configuration information downloaded
Digital content file parses textual resources file and sight resource file, and coordinates to show the textual resources file parsed
Included in textual resources and wrapped in the sight configuration information corresponding sight resource file in text resource file
The sight resource contained.
The present invention can arrange abundant sight to textual resources file, and the ways of presentation of digital content is varied, thus
Realize more have artistic conception, more feel, more interesting sight reading experience.
Detailed description of the invention
Hereinafter, present invention is described with embodiment with reference to the accompanying drawings.
(first embodiment)
In the present embodiment, the textual resources file of digital content only adds a small amount of sight configuration information, sight resource
File is deposited in the server, separates with textual resources file.This scheme is also referred to as thin digital content scheme, is particularly suited for
Network speed and memory space constrained environment.
Fig. 1 is the structure chart of the sight reading system illustrating the present invention.As it is shown in figure 1, the reading of the present embodiment processes system
System includes server 1 and terminal unit 2.Wherein, server 1 is for arranging the one or more parts in textual resources file
Sight, and sight configuration information is added textual resources file generated digital content file;By sight configuration information and and sight
One or more sight resource files corresponding to configuration information are packaged into sight theme bag.Terminal unit 2 is for from server 1
Carry digital content file, from the digital content file adding sight configuration information downloaded, parse textual resources file, root
Download corresponding sight theme bag according to the sight configuration information in the textual resources file parsed from server 1, and coordinate exhibition
Show in the sight resource file in the sight theme bag of the textual resources included in the textual resources file parsed and download
The sight resource comprised.
As it is shown in figure 1, server 1 farther includes to arrange module the 11, first processing module 12 and the second processing module 13.
Wherein, module 11 is set for the one or more parts in textual resources file are arranged sight.First processing module 12 is used
In sight configuration information is added textual resources file generated digital content file.Second processing module 13 is for arranging sight
Information and the one or more sight resource files corresponding with sight configuration information are packaged into sight theme bag.
Specifically, described sight configuration information can include at least one of: background music, background static images, dynamic
Picture sheet, font, font size, font color and TTS configuration information.TTS configuration information can include at least one of: angle
Color, intonation, word speed are arranged, and read aloud so that many identity, different intonation and word speed simulation true man can be carried out.Sight resource can include
Audio resource as background music, the picture resource as background static images or motion picture.Additionally, at terminal unit originally
Be fitted without required font file and sound bank file in the case of, sight resource may also include required font file and
Sound bank file.But, owing to font file and sound bank file are the biggest, preferably by font file and language
Sound library file chained address on the server is put in sight configuration information, downloads for user.And, at terminal unit 2
When server 1 download digital content file, provide a user with Downloadable font file and the essential information of sound bank file,
Think that user setup font and TTS provide reference.
Additionally, when arranging sight, server 1 can be according to the semanteme of textual resources file and/or linguistic context to textual resources
One or more parts in file arrange sight.The sight so arranged can the implication of auxiliary expression digital content, showing
Show while digital content and meet the semanteme of digital content and/or the sight of linguistic context, help reader to understand digital content, make
Must read more abundant and interesting, can preferably advance the Reading promotion action plan of country.Hereinafter, to this implementation
Under the operation of server be specifically described.
Server 1 is when editing adds the digital content file that sight is arranged, and first, provides the text of digital content
All chapters and sections or paragraph included in source file arrange sight, it is possible to each chapters and sections or paragraph are independently arranged sight, each
Sight is arranged according to the semanteme of digital content and/linguistic context, accomplishes to press close to the expression implication of author as far as possible, any in need
Side can arrange sight.For example, it is possible to add the overall sight being applicable to all chapters and sections or paragraph in textual resources file
Configuration information, is then separately added respective local sight configuration information in each chapters and sections or paragraph.For not adding
The locally chapters and sections of sight configuration information or paragraph, can use overall situation sight configuration information to be shown.If at digital content literary composition
Part does not add sight configuration information, is then shown according to common document.
Then, (include adding the textual resources file of sight configuration information, audio resource literary composition by all resource files
Part, picture resource file (in case of need, also including font file and sound bank file) generate a single numeral
Content file.This digital content file is a container file, wherein comprise add sight configuration information textual resources file,
Audio resource file, picture resource file (in case of need, also including font file and sound bank file).Finally only have
One file, includes abundant sight configuration information, numerous and jumbled without having to worry about file of terminal use, just can carry out document well
Management.
Here, digital content file is generated as an XML file by available XML (extensible markup language) technology.With
Time, utilize XML technology to describe the sight configuration information in sight theme bag, by sight configuration information record an XML file
In.For the sight configuration information in these XML file, its extensibility can be utilized, easily increase or revise or delete feelings
Scape configuration information.It addition, after also can further XML file be compressed (being such as compressed into binary digit content file) again
It is put on server 1, facilitates download online, shorten download time, save memory space.
After digital content file completes, it is put on server 1.Server 1 defines a set of standard agreement, such as,
The procotol such as ICP/IP protocol or http protocol, accesses for different terminals, it is provided that various keywords are (such as title, work
Person or classification) inquiry service and online reading, download etc. service.
Terminal unit 2 is being downloaded after digital content file on server 1, resolves digital content file and goes forward side by side market scape exhibition
Show.
Terminal unit 2 includes: download module, for from server download digital content file;Parsing module, under
The digital content file adding sight configuration information carried parses textual resources file, according to the textual resources literary composition parsed
Sight configuration information in part downloads corresponding sight theme bag from described server, and coordinates to show the textual resources parsed
Textual resources included in file and the sight resource included in the sight resource file in the sight theme bag of download;Light
Line monitoring modular, light monitoring modular is for arranging according to the light change automatic switching situation monitored.
Wherein, the process that automatic switching situation is arranged includes at least one of: be automatically adjusted terminal according to light change
The backlight of equipment, it is automatically adjusted the font color of terminal unit according to light change.
During it addition, terminal unit is connected with server every time, check whether server updates sight theme or sight master
The sight resource file of topic, if it is, the sight theme of down loading updating or the sight resource file of sight theme.
The embodiment of the present invention also provides for a kind of reading processing method, and the method includes: server is in textual resources file
One or more parts sight is set, and sight configuration information is added textual resources file generated digital content file;Will
Sight configuration information and the one or more sight resource files corresponding with sight configuration information are packaged into sight theme bag;Terminal
Equipment, from server download digital content file, parses literary composition from the digital content file adding sight configuration information downloaded
This resource file, downloads corresponding sight theme according to the sight configuration information in the textual resources file parsed from server
Bag, and coordinate the sight showing in the sight theme bag of textual resources and download included in the textual resources file parsed
Sight resource included in resource file.
Fig. 2 is to illustrate that the terminal unit of first embodiment resolves digital content file and the stream of the method carrying out sight displaying
Cheng Tu.
As in figure 2 it is shown, first, in step s 201, digital content file is read.Then, in step S202, it is judged that read
Whether the digital content file taken is the container file adding sight configuration information, if it is, perform step S204 and behind
Step.If it is not, then perform step S203, in step S203, it is shown according to common document.
In step S204, container file is unpacked, by the textual resources file wherein comprised, audio resource literary composition
The resource files such as part, picture resource file are disassembled, and are preserved respectively by the various resource files disassembled in step S205
In terminal unit under corresponding catalogue.For the present embodiment, only obtain adding sight after container file unpacks and letter is set
The textual resources file of breath.
Then, in step S206, resolving textual resources file, one is to obtain overall situation sight configuration information, and
Being saved in overall situation sight configuration information variable, two is chapters and sections information or the paragraph information obtaining digital content.To be shown
Chapters and sections or paragraph, proceed to resolve, and obtains the sight configuration information of chapters and sections text or paragraph text, and is saved in local sight
In configuration information variable.
Then, in step S207, according in overall situation sight configuration information variable and local sight configuration information variable
Sight configuration information downloads corresponding sight theme bag from server 1.
Finally, in step S208, exhibition is coordinated according to overall situation sight configuration information variable and local sight configuration information variable
Show the feelings in the sight theme bag of the textual resources included in the textual resources file parsed in step S206 and download
Sight resource included in scape resource file.
Here, for the sake of security, digital content file can be limited only could resolve on the terminal unit authorized.
Additionally, terminal unit 2 also can irregularly update sight resource.Specifically, each terminal unit is with server 1 even
When connecing, check whether server 1 updates the sight resource file of sight theme or sight theme, if it is, down loading updating
Sight theme or the sight resource file of sight theme.When reading every time, show the sight resource updated.
Additionally, terminal unit 2 may also include the light for arranging according to the light change automatic switching situation monitored
Monitoring modular.In this case, the process that terminal unit 2 automatic switching situation is arranged can include at least one of: according to
Light change is automatically adjusted the backlight of terminal unit 2, is automatically adjusted the font color of terminal unit 2 according to light change.Work as light
When line is the most weak, the backlight of terminal unit can be adjusted, adjust font color value according to preset value simultaneously, make light as far as possible
Soft.
Terminal unit 2 may also include user situation and arranges interface, arranges for user's configuration or amendment sight.Such as, may be used
Arranging sight automatic switchover option in this interface, switching type can include the photosensitive and time period.When user selects switching type
For time photosensitive, the light change automatic switching situation as above monitored according to light monitoring device is arranged.When user selects switching
When type is the time period, user can set a time period, and within the time period set, optional special sight is arranged, example
As, background music can not be used.
Hereinafter, an example of the present embodiment will be provided.When this example, it is defined below the data knot of sight configuration information
Structure:
In data structure SceneInfo, nTTSRole variable-definition various rolls, span is according to role's quantity
Fixed;NTTSTone variable-definition intonation, span can be set to-32768~32768, and wherein, 0 is normal intonation;
NTTSSpeed variable-definition word speed, span can be set to-32768~32768, and wherein, 0 is normal word speed;pszBkImage
Variable-definition picture resource, pszBkMusic variable-definition audio resource, pszFaceName variable-definition font, nFontSize
Variable-definition font size.Additionally, g_isAutoSceneSwitch variable indicates whether to select sight automatic switching function, g_
NSceneSwitchTyp variable represents sight switching type.
Server 1 is arranged its sight configuration information and corresponding one or more sight resources literary composition according to different sights
Part is packaged into different sight theme bags, downloads for terminal unit 2.In the present example it is assumed that by the sight theme bag of download be
Normal.zip, wherein comprises following file: normal.xml, normal.gif, normal.mp3, wherein, and normal.xml
For sight configuration information file, normal.gif is picture resource file, and normal.mp3 is audio resource file.
The content of normal.xml is as follows:
Terminal unit 2 downloads container file from server 1, unpacks this container file, obtains following textual resources
File Ming_Dynasty.xml:
Can be seen that from above textual resources file, text resource file only add overall situation sight configuration information, i.e.
Scene node, all chapters and sections all use same sight to arrange.Scene node has Version attribute and Feeling attribute,
Wherein, Version attribute represents that the version of XML file, Feeling attribute represent sight subject name.In this example, example
As, when Version property value is 1, read Feeling attribute, then coupling sight theme.Owing to Version property value is
1, Feeling property value is normal, and therefore, the sight theme bag of coupling is the theme bag of entitled normal.
It, after server 1 downloads sight theme bag normal.zip, is decompressed by terminal unit 2, available Ziwen
Part normal.xml, normal.gif, normal.mp3, deposited each subfile by subject, and by normal.xml
Sight configuration information is saved in the global variable g_stSceneInfo of SceneInfo structure.
When reading above-mentioned digital content file, first terminal unit 2 can read g_stSceneInfo.pszBkImage
The value of variable, Load Image normal.gif, shows as background picture, then reads g_
The value of stSceneInfo.pszFaceName and g_stSceneInfo.nFontSize variable, generates font information, in background
Upper display text.Then, read the value of g_stSceneInfo.pszBkMusic variable, be loaded into audio frequency normal.mp3, as
Background music is play.Finally, g_stSceneInfo.nTTSRole, g_stSceneInfo.nTTSTone, g_ are read
The value of stSceneInfo.nTTSSpeed variable, carries out TTS setting, utilizes sound bank to carry out true man and reads aloud.So, so that it may will
Text, background animation, background music and true man read aloud coordination collocation, display with open arms, vision and acoustically with author
The emotion expressed is consistent, on the spot in person to people's one, intoxicated selfless boundary.
(the second embodiment)
In the present embodiment, sight resource is placed in digital content file, issues with digital content.This scheme is also
It is referred to as the rich sight plan of establishment.
The reading processing system of the present embodiment includes server and terminal unit.Wherein, described server is for text
One or more parts in resource file arrange sight, and by textual resources file and with in textual resources file or
Sight corresponding to some arranges one or more sight resource files of correspondence and generates digital content file.Described terminal sets
It is ready for use on from described server, downloads described digital content file, from the digital content literary composition adding sight configuration information downloaded
Part parses textual resources file and sight resource file, and coordinates to show included in the textual resources file parsed
Textual resources and with included in the sight configuration information corresponding sight resource file in text resource file sight provide
Source.
Wherein, server specifically for the semanteme according to textual resources file and/or linguistic context in textual resources file
One or more parts arrange sight.
Preferably, sight configuration information includes at least one of: background music, background static images, motion picture, word
Body, font size, font color, text voice configuration information.
Preferably, text voice configuration information includes at least one of: role, intonation, word speed are arranged.
Wherein, digital content file is XML file, and the sight configuration information in sight theme bag is recorded as XML file.
Wherein, described server farther includes to arrange module and processing module.Wherein, module is set for providing text
One or more parts in source file arrange sight.Processing module for by textual resources file and with in textual resources file
Sight corresponding to one or more parts one or more sight resource files of correspondence be set generate digital content file.
Wherein, terminal unit includes download module, for from server download digital content file;Parsing module, is used for
Textual resources file is parsed, according to the text money parsed from the digital content file adding sight configuration information downloaded
Sight configuration information in source file downloads corresponding sight theme bag from server, and coordinates to show the textual resources parsed
Textual resources included in file and the sight resource included in the sight resource file in the sight theme bag of download.
Wherein, the process that automatic switching situation is arranged includes at least one of: be automatically adjusted terminal according to light change
The backlight of equipment, it is automatically adjusted the font color of terminal unit according to light change.
During it addition, terminal unit is connected with server every time, check whether server updates sight theme or sight master
The sight resource file of topic, if it is, the sight theme of down loading updating or the sight resource file of sight theme.
The embodiment of the present invention also provides for a kind of reading processing method, and the method includes: server is in textual resources file
One or more parts sight is set, and by textual resources file and right with the one or more parts in textual resources file
The sight answered arranges one or more sight resource files of correspondence and generates digital content file;Terminal unit is upper and lower from server
Carry digital content file, from the digital content file adding sight configuration information downloaded, parse textual resources file and feelings
Scape resource file, and coordinate to show the textual resources included in the textual resources file parsed and with text resource file
In sight configuration information corresponding sight resource file included in sight resource.
Here, equal about the setting of sight, the editor of digital content file and making, issue, sight automatic switchover step
Identical with first embodiment, therefore, the descriptions thereof are omitted.
Resolve at terminal unit and show in step, being with the difference of the flow process of the first embodiment shown in Fig. 2,
Need not step S207 (downloading the step of sight theme bag), and in step S208, become according to overall situation sight configuration information
Amount and local sight configuration information variable coordinate to show the textual resources included in the textual resources file that parses and with this
The sight resource included in sight configuration information corresponding sight resource file in textual resources file, the literary composition in this step
This resource file and sight resource file are included in the digital content file that server is issued.
Briefly summarized, the present embodiment is with the difference of first embodiment, in the digital content file in first embodiment
Only including a textual resources file adding sight configuration information, concrete sight resource file is to be packaged in sight theme
In bag, terminal unit, in addition to download digital content file, also needs to download sight theme bag, and the numeral in the present embodiment
In content file in addition to a textual resources file adding sight configuration information, also include that one or more sight provides
Source file, such digital content file will be bigger, terminal unit only download digital content file.
Hereinafter, an example of the present embodiment will be provided.In this example, the data structure of sight configuration information and first
The example of embodiment is identical, and, each chapters and sections included in the textual resources file of digital content are all independently arranged sight.
When reading digital content file, first, digital content file is unpacked, decompose textual resources therein literary composition
Part and sight resource file: example.xml, nomal.gif, nomal.mp3, snow.gif, snow.mp3, sand-
Storm.gif, sand-storm.mp3, MilkyWay.gif, MilkyWay.mp3 etc., wherein, example.xml is text money
Source file, remaining is sight resource file.
The content of textual resources file example.xml is as follows:
When resolving textual resources file example.xml, first obtain overall situation sight configuration information (that is, first
The information that scene node is recorded), and be saved in the global variable g_stSceneInfo of SceneInfo structure.For that
A little chapters and sections not being separately provided local sight configuration information, can be according to the overall sight in global variable g_stSceneInfo
Configuration information is shown.
Then, when reading the first chapters and sections of digital content, obtain the local sight configuration information of the first chapters and sections, and preserve
In the local variable lcSceneInfo of SceneInfo structure.When showing, according to lcSceneInfo.pszBkimage's
Value loads background animation picture snow.gif, and picture is the snowflake danced in the air all over the sky, is the beautiful scenery being in silver and white clothing everywhere;According to
The value of lcSceneInfo.pszBkmusic loads soft background music snow.mp3;Then basis
The value of lcSceneInfo.FaceName and lcSceneInfo.nFontSize generates logical font, shows text;Work as needs
During TTS, set according to the value of lcSceneInfo.nTTSRole and read aloud role, according to the value 5 of lcSceneInfo.nTTSTone,
Set slightly higher intonation;According to value-10 of lcSceneInfo.nTTSSpeed, set the word speed slower than normal word speed, according to
These TTS information, call sound bank and read aloud text.Bandwagon effect is as shown in Figure 3.
When reading the second chapter of digital content, obtain the sight configuration information of second chapter, be saved in local equally
In variable lcSceneInfo.The use of lcSceneInfo variable is the same with the first chapters and sections, loads dynamic picture sand-
Storm.gif, background frame is that blast sweeps along sandstone, floating dust to fill the air everywhere, covers and hides the scene of sky doomsday seemingly day, simultaneously
Load music sand-storm.mp3, this be a head can allow listen can feel the earth cry music, allow reader understand
While natural disaster, it is contemplated that the earth of our existence will be cherished, protect environment.The setting of TTS is also that word speed is normal, intonation slightly
Low.Bandwagon effect is as shown in Figure 4.
When reading the chapter 3 joint of digital content, obtain the sight configuration information of chapter 3 joint, be saved in local equally
In variable lcSceneInfo.The use of lcSceneInfo variable is the same with the first chapters and sections, loads dynamic picture
MilkyWay.gif, background frame is the whirlpool galaxy slowly rotated, and a spiral arm extends symmetrically from glactic centre
Out, vast expanse of whiteness a piece of, just as legendary " Magpie Bridge ", load audio frequency MilkyWay.mp3 simultaneously, allow listen and remember in one's ear
Remote and the fantasy music of deep tunnel.The setting of TTS is that word speed is slightly slow, and intonation is overcast.Bandwagon effect is as shown in Figure 5.
Can be seen that from Fig. 3 to Fig. 5, word content and background animation, background music organically blend, one integrated mass.Background
Sheet and background music are used for supplementing the expression of word, make feelings that word described and scape be elevated, bring out the best in each other.
In this example, when showing digital content file, only used a local variable lcSceneInfo, text
The displaying of the parsing of resource file and textual resources and sight resource is carried out simultaneously.It is of course also possible in advance to text
All chapters and sections of resource file resolve, and obtain the sight configuration information of all chapters and sections, and are saved in different local variables
(such as, lcSceneInfo1, lcSceneInfo2 ... in), then, according to global variable g_stSceneInfo and these offices
Portion's variable coordinates text exhibition resource and sight resource.
Above with reference to drawings and Examples to the present invention have been described in detail, however, it is to be understood that the present invention is not
Being limited to particular embodiments disclosed above, any modification based on technical scheme disclosed in this specification is intended to be included in this
In the protection domain of invention.