WO2018045742A1 - File reading and processing system, device, apparatus and method - Google Patents

File reading and processing system, device, apparatus and method Download PDF

Info

Publication number
WO2018045742A1
WO2018045742A1 PCT/CN2017/078739 CN2017078739W WO2018045742A1 WO 2018045742 A1 WO2018045742 A1 WO 2018045742A1 CN 2017078739 W CN2017078739 W CN 2017078739W WO 2018045742 A1 WO2018045742 A1 WO 2018045742A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
picture
text content
package
link address
Prior art date
Application number
PCT/CN2017/078739
Other languages
French (fr)
Chinese (zh)
Inventor
张银利
Original Assignee
广州阿里巴巴文学信息技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广州阿里巴巴文学信息技术有限公司 filed Critical 广州阿里巴巴文学信息技术有限公司
Publication of WO2018045742A1 publication Critical patent/WO2018045742A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0816Key establishment, i.e. cryptographic processes or cryptographic protocols whereby a shared secret becomes available to two or more parties, for subsequent use
    • H04L9/0819Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s)

Definitions

  • the present invention relates to the field of mobile internet technologies, and more particularly, to a file reading processing system, apparatus, device and method.
  • reading apps there is a case where an electronic book of a large document is read and purchased online.
  • the content of the e-book contains text content, CSS (Cascading Style Sheets) tags, and image resources (possibly up to about 100M)
  • CSS CSS
  • image resources possibly up to about 100M
  • the present invention provides a file reading processing system, device, device and method, which can quickly read a reading page of a file for reading, thereby improving the reading experience.
  • a file reading processing system comprising:
  • a server a file simplified package for generating an electronic book
  • the file simplified package includes a text content link address for replacing the text content and a picture link address for replacing the picture
  • a client a file simplifying package for downloading an electronic book of the server, downloading text content from a content server according to a text content link address in the file simplifying package, and downloading a picture from the image server according to the image link address, displaying the The downloaded text content and images.
  • system further includes:
  • a content server configured to store the text content replaced by the text content link address, and send the text content to the client according to the request of the client;
  • a picture server configured to store the picture replaced by the picture link address, and send the picture to the client according to the request of the client.
  • a client device comprising: a memory, a processor, and a touch display;
  • the memory is used to store a file simplified package of an electronic book downloaded by the processor
  • the processor is configured to download a file simplified package of an e-book of a server, where the file simplifying package includes a text content link address for replacing the text content and a picture link address for replacing the picture, and is simplified according to the file
  • the text content link address in the package downloads the text content from the content server, downloads the picture from the picture server according to the picture link address, and displays the downloaded text content and picture through the touch display screen.
  • a server device including: a memory and a processor;
  • the memory is used to store a file simplified package of an e-book generated by a processor
  • the processor is configured to generate a file simplifying package of an electronic book, where the file simplifying package includes a text content link address for replacing the text content and a picture link address for replacing the picture, and sending the file to the client
  • the package is simplified such that the client downloads text content from the content server according to the text content link address in the file simplifying package, downloads a picture from the picture server according to the picture link address, and displays the downloaded text content and picture.
  • a file reading processing apparatus comprising:
  • a first downloading module configured to download a file simplifying package of the electronic book of the server, wherein the file simplifying package includes a text content link address for replacing the text content and a picture link address for replacing the image;
  • a second downloading module configured to download text content from a content server according to a text content link address in the file simplifying package of the first download module, and download a picture from the image server according to the image link address;
  • a display module configured to display text content and a picture downloaded by the second download module.
  • the device further includes:
  • a judging module configured to determine whether the file complete package of the e-book is stored locally
  • the first downloading module is configured to download a file simplified package of the electronic book of the server when the determining module determines that the file complete package of the electronic book is not stored locally;
  • the display module is configured to directly use the file complete package to perform chapter analysis and display in a case where the determining module determines that the file complete package of the electronic book is locally stored.
  • the second downloading module includes:
  • a parsing sub-module for parsing the text content link address for replacing the text content and the image link address for replacing the picture corresponding to the free chapter and/or the charging chapter in the file simplifying package Free chapters or charge chapters included in the file simplification package;
  • a first processing sub-module configured to download a free chapter included in the file simplified package that is parsed by the parsing sub-module, and if it is detected that the local is not stored, directly simplify the text content corresponding to the free chapter according to the file
  • the link address downloads the text content from the content server, and downloads the image from the image server according to the image link address corresponding to the free chapter;
  • a second processing sub-module configured to: for the charging chapter included in the file simplified package parsed by the parsing sub-module, if it is detected to be purchased, according to the decryption key acquired by the local storage or the dynamic application, according to the Downloading the encrypted text content from the content server according to the text content link address corresponding to the charging chapter in the file simplifying package, and downloading the encrypted image from the image server according to the image link address corresponding to the charging chapter; and/or,
  • a third processing sub-module configured to: for the charging chapter included in the file simplified package parsed by the parsing sub-module, if the unpurchased is detected, the purchase button is displayed, and after the purchase is successfully detected, the dynamic application is performed according to the dynamic application.
  • Obtaining the decryption key downloading the encrypted text content from the content server according to the text content link address corresponding to the charging chapter in the file simplifying package, and downloading the encrypted picture from the image server according to the image link address corresponding to the charging chapter.
  • the second downloading module adopts an asynchronous downloading manner when downloading a picture from the image server, and the file simplified package further includes size information of the image;
  • the display module uses a placeholder map to reserve a placeholder area for the picture, where the place area is determined according to the size information of the picture included in the file simplified package. After the picture is downloaded, if the picture is the picture associated with the current page, the page is refreshed The picture is displayed in the footprint area.
  • a file reading processing apparatus comprising:
  • a generating module configured to generate a file simplifying package of the electronic book, wherein the file simplifying package includes a text content link address for replacing the text content and a picture link address for replacing the image;
  • a sending module configured to send, to the client, the file simplified package generated by the generating module, so that the client downloads the text content from the content server according to the text content link address in the file simplifying package, according to the image link address
  • the picture server downloads a picture and displays the downloaded text content and picture.
  • the generating module when the generating module generates the file simplified package of the electronic book, generating a text content link address for replacing the text content and a replacement image for the free chapter and/or the charging chapter according to the set proportion of the charged chapter. Image link address.
  • the device further includes:
  • a key module configured to send, according to a request initiated by the client, a decryption key of the charging chapter to the client, so that the client simplifies the charging chapter included in the file, according to the decryption key and according to the
  • the text content link address corresponding to the charging chapter in the file simplifying package downloads the encrypted text content from the content server, and downloads the encrypted image from the image server according to the image link address corresponding to the charging chapter.
  • a file reading processing method including:
  • the file simplifying package includes a text content link address for replacing the text content and a picture link address for replacing the picture;
  • the downloaded text content and picture are displayed.
  • the file simplifying package of the e-book of the download server further includes:
  • the file simplified package of the electronic book of the server is downloaded
  • the file simplifying package includes a text content link address for replacing the text content and a picture link address for replacing the picture, including:
  • the file simplification package includes a text content link address corresponding to the free chapter and/or the charge chapter for replacing the text content and a picture link address for replacing the picture.
  • the downloading the text content from the content server according to the text content link address in the file simplifying package, and downloading the image from the image server according to the image link address includes:
  • the text content is directly downloaded from the content server according to the text content link address corresponding to the free chapter in the file simplification package, according to the free chapter.
  • the corresponding image link address downloads the image from the image server.
  • the downloading the text content from the content server according to the text content link address in the file simplifying package, and downloading the image from the image server according to the image link address includes:
  • the text content link address corresponding to the charging chapter described in the file simplification package is from the content server. Downloading the encrypted text content, and downloading the encrypted image from the image server according to the image link address corresponding to the charging chapter; or
  • the purchase button is displayed, and after detecting the successful purchase, the decryption key acquired according to the dynamic application is charged according to the simplified package in the file.
  • the text content link address corresponding to the chapter downloads the encrypted text content from the content server, and downloads the encrypted image from the image server according to the image link address corresponding to the charging chapter.
  • the parsing out the free chapters included in the file simplifying package includes:
  • the free chapters included in the file simplification package are parsed according to the set free or charged chapter proportions.
  • the parsing out the charging chapter included in the file simplified package includes:
  • the downloading the image from the image server according to the image link address includes:
  • the asynchronous download mode is adopted when the image is downloaded from the image server, and the file simplifying package further includes the size information of the image;
  • a placeholder is reserved in the page for the picture, and the place area is determined according to the size information of the picture included in the file simplified package;
  • the refresh page displays the picture in the placeholder area.
  • a file reading processing method including:
  • the file simplification package includes a text content link address for replacing the text content and a picture link address for replacing the picture;
  • the text content replaced by the text content link address is stored in the content server, and the image replaced by the image link address is stored in the image server.
  • a text content link address for replacing the text content and a picture link for replacing the picture corresponding to the free chapter and/or the charging chapter are generated according to the set fee chapter proportion. address.
  • the size information of the replaced picture is further generated, so that the client uses the place size according to the size information of the picture when the picture is not downloaded.
  • the figure reserves the occupied area of the picture.
  • the method further includes:
  • the text content link address corresponding to the charging chapter downloads the encrypted text content from the content server, and downloads the encrypted image from the image server according to the image link address corresponding to the charging chapter.
  • the file simplified package of the electronic book of the server may be downloaded first, wherein the file simplified package includes a text content link address for replacing the text content and a picture link address for replacing the image. .
  • the text content can then be downloaded from the content server based on the text content link address in the file simplification package, and the picture can be downloaded from the image server based on the picture link address.
  • the embodiment of the present invention may download the file simplified package of the electronic book of the server when the file complete package of the electronic book is not stored locally, if the file complete package of the electronic book is stored locally In this case, the file complete package can be directly used for chapter analysis and display.
  • the file simplifying package in the embodiment of the present invention may include a text content link address for replacing the text content and a picture link address for replacing the picture corresponding to the free chapter and/or the charging chapter, and then parsing the After the free chapter or the charging chapter included in the file simplification package, for the free chapter included in the simplified package of the file, if it is detected that the local chapter is not stored, the text content link corresponding to the free chapter described in the simplified package is directly The address downloads the text content from the content server, downloads the image from the image server according to the image link address corresponding to the free chapter; or, for the charging chapter included in the simplified package, if it detects that the purchase has been made, according to local storage or dynamic application Acquiring the decrypted key, downloading the encrypted text content from the content server according to the text content link address corresponding to the charging chapter in the simplified document package, and downloading the encrypted image from the image server according to the image link address corresponding to the charging chapter; Or, for the charges included in the simplified package of the file If the purchase
  • the decryption key acquired according to the dynamic application is downloaded from the content server according to the text content link address corresponding to the charging chapter in the simplified package.
  • the encrypted text content is downloaded from the image server according to the image link address corresponding to the charging chapter.
  • the free chapter or the charging chapter included in the simplified file package may be parsed according to the set proportion of the charging chapter.
  • the embodiment of the present invention may adopt an asynchronous download mode when downloading a picture from a picture server, where the file simplified package further includes size information of the picture; thus, when the picture is not downloaded, the placeholder may be used in the page.
  • the figure is a reserved area for the picture, the place area is determined according to the size information of the picture included in the file simplified package; after the picture is downloaded, if the picture is a picture associated with the current page, the picture is refreshed The page displays the picture in the placeholder area.
  • FIG. 1 is a schematic block diagram of a file reading processing system in accordance with one embodiment of the present invention.
  • FIG. 2 is a schematic block diagram of a client device in accordance with one embodiment of the present invention.
  • FIG. 3 is a schematic block diagram of a server device in accordance with an embodiment of the present invention.
  • FIG. 4 is a schematic block diagram of a file reading processing apparatus according to an embodiment of the present invention.
  • FIG. 5 is another schematic block diagram of a file reading processing apparatus according to an embodiment of the present invention.
  • FIG. 6 is a schematic block diagram of a file reading processing apparatus according to an embodiment of the present invention.
  • FIG. 7 is another schematic block diagram of a file reading processing apparatus according to an embodiment of the present invention.
  • FIG. 8 is a schematic flowchart of a file reading processing method according to an embodiment of the present invention.
  • FIG. 9 is another schematic flowchart of a file reading processing method according to an embodiment of the present invention.
  • FIG. 10 is another schematic flowchart of a file reading processing method according to an embodiment of the present invention.
  • the invention provides a file reading processing system, which can quickly read a reading page of a file for reading and improve the reading experience.
  • FIG. 1 is a schematic block diagram of a file reading processing system in accordance with one embodiment of the present invention.
  • a file reading processing system includes a server 11 and a client 12, a content server 13, and a picture server 14.
  • the server 11 is configured to generate a file simplified package of the electronic book and send the same to the client 12, wherein the file simplified package includes a text content link address for replacing the text content and a picture link address for replacing the picture.
  • the client 12 is configured to download a file simplified package of the electronic book of the server 11 and download text content from the content server 13 according to the text content link address in the file simplifying package, according to the image link address from the image server 14 Download the image to display the downloaded text content and image.
  • the content server 13 is configured to store the text content replaced by the text content link address, and send the text content to the client 12 according to the request of the client 12.
  • the picture server 14 is configured to store a picture replaced by the picture link address, and send the picture to the client 12 according to the request of the client 12.
  • FIG. 2 is a schematic block diagram of a client device in accordance with one embodiment of the present invention.
  • a client device 20 As shown in FIG. 2, in a client device 20, a memory 21, a processor 22, and a touch display screen 23 are included.
  • the memory 21 is configured to store a file simplified package of the electronic book downloaded by the processor 22;
  • the processor 22 is configured to download a file simplified package of an e-book of the server, where the The file simplifying package includes a text content link address for replacing the text content and a picture link address for replacing the picture, and downloading the text content from the content server according to the text content link address in the file simplifying package, according to the picture link address
  • the downloaded picture is downloaded from the picture server, and the downloaded text content and picture are displayed through the touch display screen 23.
  • FIG. 3 is a schematic block diagram of a server device in accordance with one embodiment of the present invention.
  • a memory 31 and a processor 32 are included in a server device 30 .
  • the memory 31 is configured to store a file simplified package of an electronic book generated by the processor 32;
  • the processor 32 is configured to generate a file simplified package of an electronic book, where the file simplified package includes a text content link address for replacing the text content and a picture link address for replacing the picture; and sending the The file simplification package, so that the client downloads text content from the content server according to the text content link address in the file simplifying package, downloads a picture from the image server according to the picture link address, and displays the downloaded text content and picture .
  • the processor 22 or 32 in the above device may be a stand-alone device structure.
  • the independent device structure may be referred to as a file reading processing device.
  • the file reading processing device may include a plurality of sub-modules, which will be combined below. 4 to 7 illustrate the structure of the file reading processing device in detail.
  • FIG. 4 is a schematic block diagram of a file reading processing apparatus in accordance with one embodiment of the present invention.
  • the file reading processing device 40 may include a first downloading module 41, a second downloading module 42, and a display module 43.
  • the first downloading module 41 is configured to download a file simplifying package of the electronic book of the server, wherein the file simplifying package includes a text content link address for replacing the text content and a picture link address for replacing the picture.
  • the file simplification package may include a text content link address corresponding to the free chapter and/or the charge chapter for replacing the text content and a picture link address for replacing the picture.
  • the second downloading module 42 is configured to download text content from the content server according to the text content link address in the file simplifying package of the first download module 41, and download the image from the image server according to the image link address.
  • the display module 43 is configured to display the text content and the picture downloaded by the second download module 42.
  • the file simplified package of the electronic book of the server may be downloaded first, wherein the file simplified package includes a text content link address for replacing the text content and a replacement for the image. Image link address.
  • the text content can then be downloaded from the content server based on the text content link address in the file simplification package, and the picture can be downloaded from the image server based on the picture link address.
  • FIG. 5 is another schematic block diagram of a file reading processing apparatus according to an embodiment of the present invention.
  • the file reading processing device 40 may include a first downloading module 41, a second downloading module 42, a display module 43, and a determining module 44.
  • the functions of the first download module 41, the second download module 42, and the display module 43 can be seen in FIG.
  • the determining module 44 is configured to determine whether the file complete package of the electronic book is stored locally;
  • the first downloading module 41 when the determining module 44 determines that the file complete package of the electronic book is not stored locally, downloads the file simplified package of the electronic book of the server; the display module 43 is in the When the judging module 44 judges that the file complete package of the e-book is locally stored, the chapter complete parsing and display is directly performed using the file complete package.
  • the second downloading module 42 may include a parsing submodule 421, and may further include: a first processing submodule 422, a second processing submodule 423, and/or a third processing submodule 424.
  • the parsing sub-module 421 is configured to parse the text in the file simplifying package, including the text content link address for replacing the text content and the image link address for replacing the picture corresponding to the free chapter and/or the charging chapter The free chapter or fee section included in the document simplification package.
  • the first processing sub-module 422 is configured to use the free chapter included in the file simplified package parsed by the parsing sub-module 421, and if it is detected that the local is not stored, directly corresponding to the free chapter in the simplified package according to the file
  • the text content link address downloads the text content from the content server, and downloads the image from the image server according to the image link address corresponding to the free chapter.
  • a second processing submodule 423 configured to parse the text that is parsed by the parsing submodule 421
  • the charging section included in the simplified package if it is detected to be purchased, downloads the encryption from the content server according to the decryption key obtained by the local storage or the dynamic application, according to the text content link address corresponding to the charging section in the simplified package of the file.
  • the text content is downloaded from the image server according to the image link address corresponding to the charging chapter.
  • the third processing sub-module 424 is configured to: for the charging chapter included in the file simplified package parsed by the parsing sub-module 421, if the purchase is not detected, the purchase button is displayed, and after detecting the successful purchase, Dynamically obtaining the decrypted key, downloading the encrypted text content from the content server according to the text content link address corresponding to the charging chapter in the simplified document package, and downloading the encrypted image from the image server according to the image link address corresponding to the charging chapter. image.
  • the second downloading module 42 adopts an asynchronous downloading mode when the image is downloaded from the image server, and the file simplifying package further includes size information of the image; the display module 43 uses the image in the page when the image is not downloaded.
  • the bitmap is a reserved area for the picture, the place area is determined according to the size information of the picture included in the file simplified package, and after the picture is downloaded, if the picture is a picture associated with the current page, The refresh page displays the picture in the placeholder area.
  • Figure 6 is a schematic block diagram of a file reading processing apparatus in accordance with one embodiment of the present invention.
  • a file reading processing device 60 includes a generating module 61 and a transmitting module 62.
  • the generating module 61 is configured to generate a file simplifying package of the electronic book, wherein the file simplifying package includes a text content link address for replacing the text content and a picture link address for replacing the picture.
  • the file simplification package may include a text content link address corresponding to the free chapter and/or the charge chapter for replacing the text content and a picture link address for replacing the picture.
  • the sending module 62 is configured to send, to the client, the file simplified package generated by the generating module 61, so that the client downloads the text content from the content server according to the text content link address in the file simplifying package, according to the image
  • the link address downloads a picture from the picture server, displaying the downloaded text content and picture.
  • Figure 7 is another schematic block diagram of a file reading processing apparatus in accordance with one embodiment of the present invention.
  • a generating module 61 and a transmitting module are included in a file reading processing apparatus.
  • the functions of the generating module 61 and the transmitting module 62 can be described with reference to FIG. 6.
  • the text content link address for replacing the text content and the image link address for replacing the picture corresponding to the free chapter and/or the charging chapter are generated according to the set fee chapter ratio. .
  • the key module 63 is configured to send, according to a request initiated by the client, a decryption key of the charging chapter to the client, so that the client simplifies the charging chapter included in the file, according to the decryption key. And downloading the encrypted text content from the content server according to the text content link address corresponding to the charging chapter in the file simplifying package, and downloading the encrypted image from the image server according to the image link address corresponding to the charging chapter.
  • the above describes a file reading processing system, apparatus and apparatus of the present invention in detail.
  • the following describes a file reading processing method corresponding to the present invention.
  • FIG. 8 is a schematic flow chart of a file reading processing method according to an embodiment of the present invention.
  • FIG. 8 depicts an embodiment of the present invention from the client side.
  • step 801 a file simplified package of an electronic book of the server is downloaded, wherein the file simplified package includes a text content link address for replacing the text content and a picture link address for replacing the picture.
  • the file simplification package may include a text content link address corresponding to the free chapter and/or the charge chapter for replacing the text content and a picture link address for replacing the picture.
  • step 802 text content is downloaded from the content server according to the text content link address in the file simplifying package, and the picture is downloaded from the picture server according to the picture link address.
  • step 803 the downloaded text content and picture are displayed.
  • the file simplified package of the electronic book of the server may be downloaded first, wherein the file simplified package includes a text content link address for replacing the text content and a picture link address for replacing the picture.
  • the text content can then be downloaded from the content server based on the text content link address in the file simplification package, and the picture can be downloaded from the image server based on the picture link address.
  • the file simplification package first downloads the text content for reading, so that the user can enter the reading page of the file as soon as possible, thereby improving the user's reading experience.
  • FIG. 9 is another schematic flowchart of a file reading processing method according to an embodiment of the present invention.
  • FIG. 9 depicts an embodiment of the present invention from the server side.
  • step 901 a file simplification package of an electronic book is generated, wherein the file simplification package includes a text content link address for replacing the text content and a picture link address for replacing the picture.
  • the file simplification package may include a text content link address corresponding to the free chapter and/or the charge chapter for replacing the text content and a picture link address for replacing the picture.
  • step 902 the file simplifying package is sent to the client, so that the client downloads the text content from the content server according to the text content link address in the file simplifying package, and downloads from the image server according to the image link address.
  • FIG. 10 is another schematic flowchart of a file reading processing method according to an embodiment of the present invention.
  • FIG. 10 illustrates the technical solution of the embodiment of the present invention in more detail through the interaction between the client and the server.
  • the large file is split and assembled on the server, the text content is separately extracted and stored on the content server, the link address of the content server is replaced with the text content portion, and the image is stored on the image server, and the image is Corresponding link address, or further replace the width and height information of the picture with the previous picture content part.
  • the trial chapter and the charging chapter of the file are split at the same time, and the splitting may be performed by using the percentage of the entire article content.
  • the content of the charging chapter may be stored in an encrypted manner, and replaced with an encrypted link address, and the page corresponding to the encrypted link address is a page that needs to be purchased.
  • the server generates a file simplification package, and the server also saves the original file complete package.
  • the client enters the reading page, it is determined that if the file complete package is stored locally, the file complete package can be directly used for reading. If there is no complete file storage package locally, the network download file simplifying package. The client decomposes the file simplification package for Free chapter to determine whether the content resource has been downloaded locally.
  • the purchase button is displayed, and if it is determined that the purchase has been made, the decryption key is dynamically requested from the server, and if the decryption key is requested, the encrypted text content is downloaded according to the encrypted link address and The content of the picture is decrypted by the decryption key and displayed to the user.
  • the solution of the embodiment of the present invention can ensure that the user can quickly enter the reading page without reading the large file, which can greatly improve the user reading experience of the large file.
  • step 1001 the server generates a file simplifying package of the electronic book, stores the text content replaced with the text content link address to the content server, and stores the image replaced with the image link address in the image server.
  • the step of generating the file simplified package of the electronic book further generates a text content link address for replacing the text content and a picture for replacing the picture corresponding to the free chapter and/or the charging chapter according to the set proportion of the charged chapter. link address. That is to say, all of the free chapters or all of the charging chapters may be used, and some of the free chapters and some of the charging chapters may be applied to the embodiments of the present invention.
  • the size information of the replaced picture may also be generated, so that when the picture is not downloaded, the client uses the place map as the picture according to the size information of the picture in the page. Reserve the footprint area. That is to say, the generated file simplification package may include a text content link address for replacing the text content corresponding to the free chapter and/or the charge chapter, a picture link address for replacing the picture, and size information of the replaced picture such as a picture. Width and height information.
  • the server splits and assembles the large file.
  • the degree is replaced by the position of the corresponding picture, that is, the picture will be deleted from the large file, so that the size of the entire file will be greatly reduced.
  • the replacement link address is replaced by a complete part of the file according to the result of the file. If a part of the file structure is replaced by a link address.
  • the server can also distinguish between the free chapter and the charging chapter by the free chapter set in the background or the percentage of the charged chapter. If it is a charging chapter, the server can store the text content in an encrypted manner on the server. At this time, the original text content portion is replaced with an encrypted link address, and the encrypted link address and the unencrypted link address may have a format. Distinguish. For example, the encrypted link address is http://xx.xx.com/xx.jsp.enc. Finally, the processed file is generated as a complete package as a simplified package, and the original original full package is still saved.
  • the way to set the percentage can be considered according to the proportion of each individual text structure content in the file in the entire text content, for example, the free chapter (trial chapter) is set to 20%, and the fee chapter is 80%, which accounts for the whole.
  • the text structure before the 20% text structure of the text content is a free chapter, the link address is free, and the subsequent ones are charged chapters, encrypted and saved, and the link address is encrypted.
  • step 1002 the server sends the file simplification package to the client.
  • the sent file simplification package includes a text content link address for replacing the text content corresponding to the free chapter and/or the charge chapter, a picture link address for replacing the picture, and size information of the replaced picture such as the width and height of the picture. information.
  • step 1003 the client determines whether the file complete package of the electronic book is stored locally. If not, the process proceeds to step 1004. If it has been stored, the process proceeds to step 1005.
  • the client When the client enters the reading page, it can first determine whether the file has been downloaded locally. If it has been downloaded, the file can be read and used in step 1005. If the file is not downloaded, the network can be downloaded in step 1004. File simplification package.
  • step 1004 the client downloads the file simplified package of the electronic book of the server, and proceeds to step 1006.
  • step 1005 the client uses the full package of files for chapter parsing and display.
  • step 1006 the client parses out the free chapters included in the file simplification package or Charge section.
  • the client can parse out the free chapters or charging chapters included in the simplified package of the file according to the set free or charged chapter proportions.
  • step 1007 the client performs different processing for downloading the text content from the content server and downloading the image from the image server for the free chapter or the charging chapter, and displays the downloaded text content and picture.
  • the text content is directly downloaded from the content server according to the text content link address corresponding to the free chapter in the file simplification package, according to Downloading an image from the image server by the image link address corresponding to the free chapter;
  • the content is The server downloads the encrypted text content, and downloads the encrypted image from the image server according to the image link address corresponding to the charging chapter; or
  • the purchase button is displayed, and after detecting the successful purchase, the decryption key acquired according to the dynamic application is charged according to the simplified package in the file.
  • the text content link address corresponding to the chapter downloads the encrypted text content from the content server, and downloads the encrypted image from the image server according to the image link address corresponding to the charging chapter.
  • the client determines if the chapter content has been downloaded locally. If it has already been downloaded, check if the list of pictures associated with the chapter is downloaded. If there is no download, you can use the placeholder map to reserve the occupied area for the picture. The size of the area is set according to the width and height of the picture, and the picture is downloaded asynchronously. After the picture has been downloaded or after the picture is downloaded, if it is the picture associated with the current page, updating the currently read page to refresh the picture, that is, refreshing the page to display the picture in the placeholder area.
  • the client determines that the user has not purchased the current chapter, the purchase button is displayed. If it is determined that the user has already purchased, it is further determined whether there is a decryption key locally. If there is no decryption key locally, the network requests the decryption key from the server. At the same time, the encrypted content of the current chapter is requested from the content server. The decrypted key is decrypted for the encrypted content requested, and after the decryption is successful, the text content is displayed, and the image information is asynchronously downloaded. After the picture has been downloaded or after the picture is downloaded, if it is the picture associated with the current page, updating the currently read page to refresh the picture, that is, refreshing the page to display the picture in the placeholder area.
  • the solution of the embodiment of the invention can greatly improve the user's reading experience on large online files, and is advantageous for online sales of large files.
  • the charging chapter is encrypted and stored, and the key mode is decrypted dynamically, which can improve the online security of the file, so that only the purchased user can read it.
  • the method according to the invention can also be implemented as a computer program comprising computer program code instructions for performing the various steps defined above in the above method of the invention.
  • the method according to the invention may also be embodied as a computer program product comprising a computer readable medium on which is stored a computer for performing the above-described functions defined in the above method of the invention program.
  • the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both.
  • each block of the flowchart or block diagram can represent a module, a program segment, or a portion of code that includes one or more of the Executable instructions.
  • the functions noted in the blocks may also occur in a different order than the ones in the drawings. For example, two consecutive blocks may be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending upon the functionality involved.
  • each block of the block diagrams and/or flowcharts, and combinations of blocks in the block diagrams and/or flowcharts can be implemented in a dedicated hardware-based system that performs the specified function or operation. Or it can be implemented by a combination of dedicated hardware and computer instructions.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

Disclosed are a file reading and processing system, device, apparatus and method. The system comprises: a server used for generating a file simplified package of an e-book and sends the file simplified package to a client, wherein the file simplified package comprises a text content link address used for replacing text content and a picture link address used for replacing a picture; and the client used for downloading the file simplified package of the e-book of the server, downloading the text content from a content server according to the text content link address in the file simplified package, downloading the picture from a picture server according to the picture link address, and displaying the downloaded text content and picture. The solution provided by the present invention can implement quick access to a reading page of a file for reading, thereby improving reading experience.

Description

一种文件阅读处理系统、设备、装置及方法File reading processing system, device, device and method 技术领域Technical field
本发明涉及移动互联网技术领域,更具体地,本发明涉及一种文件阅读处理系统、设备、装置及方法。The present invention relates to the field of mobile internet technologies, and more particularly, to a file reading processing system, apparatus, device and method.
背景技术Background technique
随着移动互联网应用的不断发展,用户在智能移动终端上可以使用越来越多的应用程序APP,例如阅读类APP。在阅读类APP中,存在对一本大文件的电子书籍进行在线分章节阅读和购买的情况。例如对于某本电子书籍,由于电子书籍的文件内容中包含文本内容、CSS(Cascading Style Sheets,层叠样式表)标签以及图片资源(可能达到100M左右)等内容,如果采用先购买和下载文件的完整包后才可阅读的方式,那么在网络质量差或者网速很慢的情况下,用户进入文件的阅读页的时间会非常长。这极大地影响了用户的阅读体验。With the continuous development of mobile Internet applications, users can use more and more application programs, such as reading apps, on smart mobile terminals. In the reading class APP, there is a case where an electronic book of a large document is read and purchased online. For example, for an e-book, since the content of the e-book contains text content, CSS (Cascading Style Sheets) tags, and image resources (possibly up to about 100M), if the files are purchased and downloaded first, After the package can be read, then when the network quality is poor or the network speed is very slow, the time for the user to enter the reading page of the file will be very long. This greatly affects the user's reading experience.
因此,现有技术的文件阅读处理方法有待改进。Therefore, the prior art file reading processing method needs to be improved.
发明内容Summary of the invention
为解决上述技术问题,本发明提供一种文件阅读处理系统、设备、装置及方法,能实现快速进入文件的阅读页进行阅读,提高阅读体验。In order to solve the above technical problem, the present invention provides a file reading processing system, device, device and method, which can quickly read a reading page of a file for reading, thereby improving the reading experience.
根据本发明的一个方面,提供一种文件阅读处理系统,包括:According to an aspect of the present invention, a file reading processing system is provided, comprising:
服务端,用于生成电子书籍的文件简化包并发送给客户端,其中所述文件简化包中包含用于替换文本内容的文本内容链接地址和用于替换图片的图片链接地址;a server, a file simplified package for generating an electronic book, and the file simplified package includes a text content link address for replacing the text content and a picture link address for replacing the picture;
客户端,用于下载所述服务端的电子书籍的文件简化包,根据所述文件简化包中的文本内容链接地址从内容服务器下载文本内容,根据所述图片链接地址从图片服务器下载图片,显示所述下载的文本内容和图片。 a client, a file simplifying package for downloading an electronic book of the server, downloading text content from a content server according to a text content link address in the file simplifying package, and downloading a picture from the image server according to the image link address, displaying the The downloaded text content and images.
可选的,所述系统还包括:Optionally, the system further includes:
内容服务器,用于存储被用文本内容链接地址替换的文本内容,根据所述客户端的请求向所述客户端发送所述文本内容;a content server, configured to store the text content replaced by the text content link address, and send the text content to the client according to the request of the client;
图片服务器,用于存储被用图片链接地址替换的图片,根据所述客户端的请求向所述客户端发送所述图片。And a picture server, configured to store the picture replaced by the picture link address, and send the picture to the client according to the request of the client.
根据本发明的另一个方面,提供一种客户端设备,包括:存储器、处理器和触摸式显示屏;According to another aspect of the present invention, a client device is provided, comprising: a memory, a processor, and a touch display;
所述存储器,用于存储处理器下载的电子书籍的文件简化包;The memory is used to store a file simplified package of an electronic book downloaded by the processor;
所述处理器,用于下载服务端的电子书籍的文件简化包,其中所述文件简化包中包含用于替换文本内容的文本内容链接地址和用于替换图片的图片链接地址,根据所述文件简化包中的文本内容链接地址从内容服务器下载文本内容,根据所述图片链接地址从图片服务器下载图片,通过触摸式显示屏显示所述下载的文本内容和图片。The processor is configured to download a file simplified package of an e-book of a server, where the file simplifying package includes a text content link address for replacing the text content and a picture link address for replacing the picture, and is simplified according to the file The text content link address in the package downloads the text content from the content server, downloads the picture from the picture server according to the picture link address, and displays the downloaded text content and picture through the touch display screen.
根据本发明的另一个方面,提供一种服务端设备,包括:存储器和处理器;According to another aspect of the present invention, a server device is provided, including: a memory and a processor;
所述存储器,用于存储处理器生成的电子书籍的文件简化包;The memory is used to store a file simplified package of an e-book generated by a processor;
所述处理器,用于生成电子书籍的文件简化包,其中所述文件简化包中包含用于替换文本内容的文本内容链接地址和用于替换图片的图片链接地址,向客户端发送所述文件简化包以使得所述客户端根据所述文件简化包中的文本内容链接地址从内容服务器下载文本内容,根据所述图片链接地址从图片服务器下载图片,显示所述下载的文本内容和图片。The processor is configured to generate a file simplifying package of an electronic book, where the file simplifying package includes a text content link address for replacing the text content and a picture link address for replacing the picture, and sending the file to the client The package is simplified such that the client downloads text content from the content server according to the text content link address in the file simplifying package, downloads a picture from the picture server according to the picture link address, and displays the downloaded text content and picture.
根据本发明的另一个方面,提供一种文件阅读处理装置,包括:According to another aspect of the present invention, a file reading processing apparatus is provided, comprising:
第一下载模块,用于下载服务端的电子书籍的文件简化包,其中所述文件简化包中包含用于替换文本内容的文本内容链接地址和用于替换图片的图片链接地址;a first downloading module, configured to download a file simplifying package of the electronic book of the server, wherein the file simplifying package includes a text content link address for replacing the text content and a picture link address for replacing the image;
第二下载模块,用于根据所述第一下载模块的文件简化包中的文本内容链接地址从内容服务器下载文本内容,根据所述图片链接地址从图片服务器下载图片;a second downloading module, configured to download text content from a content server according to a text content link address in the file simplifying package of the first download module, and download a picture from the image server according to the image link address;
显示模块,用于显示所述第二下载模块下载的文本内容和图片。 And a display module, configured to display text content and a picture downloaded by the second download module.
可选的,所述装置还包括:Optionally, the device further includes:
判断模块,用于判断本地是否存储所述电子书籍的文件完整包;a judging module, configured to determine whether the file complete package of the e-book is stored locally;
所述第一下载模块用于在所述判断模块判断出在本地未存储所述电子书籍的文件完整包的情况下,下载服务端的所述电子书籍的文件简化包;The first downloading module is configured to download a file simplified package of the electronic book of the server when the determining module determines that the file complete package of the electronic book is not stored locally;
所述显示模块用于在所述判断模块判断出本地存储所述电子书籍的文件完整包的情况下,直接使用所述文件完整包进行章节解析和显示。The display module is configured to directly use the file complete package to perform chapter analysis and display in a case where the determining module determines that the file complete package of the electronic book is locally stored.
可选的,所述第二下载模块包括:Optionally, the second downloading module includes:
解析子模块,用于在所述文件简化包中包含免费章节和/或收费章节对应的用于替换文本内容的文本内容链接地址和用于替换图片的图片链接地址的情况下,解析出所述文件简化包中包含的免费章节或收费章节;a parsing sub-module for parsing the text content link address for replacing the text content and the image link address for replacing the picture corresponding to the free chapter and/or the charging chapter in the file simplifying package Free chapters or charge chapters included in the file simplification package;
第一处理子模块,用于对于所述解析子模块解析出的文件简化包中包含的免费章节,若检测到本地未存储,则直接根据所述文件简化包中所述免费章节对应的文本内容链接地址从内容服务器下载文本内容,根据所述免费章节对应的图片链接地址从图片服务器下载图片;和/或,a first processing sub-module, configured to download a free chapter included in the file simplified package that is parsed by the parsing sub-module, and if it is detected that the local is not stored, directly simplify the text content corresponding to the free chapter according to the file The link address downloads the text content from the content server, and downloads the image from the image server according to the image link address corresponding to the free chapter; and/or,
第二处理子模块,用于对于所述解析子模块解析出的所述文件简化包中包含的收费章节,若检测到已购买,则根据本地存储或动态申请获取的解密密钥,按照所述文件简化包中所述收费章节对应的文本内容链接地址从内容服务器下载加密的文本内容,按照所述收费章节对应的图片链接地址从图片服务器下载加密的图片;和/或,a second processing sub-module, configured to: for the charging chapter included in the file simplified package parsed by the parsing sub-module, if it is detected to be purchased, according to the decryption key acquired by the local storage or the dynamic application, according to the Downloading the encrypted text content from the content server according to the text content link address corresponding to the charging chapter in the file simplifying package, and downloading the encrypted image from the image server according to the image link address corresponding to the charging chapter; and/or,
第三处理子模块,用于对于所述解析子模块解析出的所述文件简化包中包含的收费章节,若检测到未购买,则显示购买按钮,在检测到购买成功后,再根据动态申请获取的解密密钥,按照所述文件简化包中所述收费章节对应的文本内容链接地址从内容服务器下载加密的文本内容,按照所述收费章节对应的图片链接地址从图片服务器下载加密的图片。a third processing sub-module, configured to: for the charging chapter included in the file simplified package parsed by the parsing sub-module, if the unpurchased is detected, the purchase button is displayed, and after the purchase is successfully detected, the dynamic application is performed according to the dynamic application. Obtaining the decryption key, downloading the encrypted text content from the content server according to the text content link address corresponding to the charging chapter in the file simplifying package, and downloading the encrypted picture from the image server according to the image link address corresponding to the charging chapter.
可选的,所述第二下载模块在从图片服务器下载图片时采用异步下载方式,所述文件简化包中还包含图片的大小信息;Optionally, the second downloading module adopts an asynchronous downloading manner when downloading a picture from the image server, and the file simplified package further includes size information of the image;
所述显示模块在所述图片未下载时,在页面中采用占位图为所述图片预留占位区域,所述占位区域根据所述文件简化包中包含图片的大小信息确定,在所述图片下载后,若所述图片为当前页面关联的图片,则刷新页 面在所述占位区域显示所述图片。When the picture is not downloaded, the display module uses a placeholder map to reserve a placeholder area for the picture, where the place area is determined according to the size information of the picture included in the file simplified package. After the picture is downloaded, if the picture is the picture associated with the current page, the page is refreshed The picture is displayed in the footprint area.
根据本发明的另一个方面,提供一种文件阅读处理装置,包括:According to another aspect of the present invention, a file reading processing apparatus is provided, comprising:
生成模块,用于生成电子书籍的文件简化包,其中所述文件简化包中包含用于替换文本内容的文本内容链接地址和用于替换图片的图片链接地址;a generating module, configured to generate a file simplifying package of the electronic book, wherein the file simplifying package includes a text content link address for replacing the text content and a picture link address for replacing the image;
发送模块,用于向客户端发送所述生成模块生成的文件简化包以使得所述客户端根据所述文件简化包中的文本内容链接地址从内容服务器下载文本内容,根据所述图片链接地址从图片服务器下载图片,显示所述下载的文本内容和图片。a sending module, configured to send, to the client, the file simplified package generated by the generating module, so that the client downloads the text content from the content server according to the text content link address in the file simplifying package, according to the image link address The picture server downloads a picture and displays the downloaded text content and picture.
可选的,所述生成模块生成电子书籍的文件简化包时,根据设置的收费章节比例,生成免费章节和/或收费章节对应的用于替换文本内容的文本内容链接地址和用于替换图片的图片链接地址。Optionally, when the generating module generates the file simplified package of the electronic book, generating a text content link address for replacing the text content and a replacement image for the free chapter and/or the charging chapter according to the set proportion of the charged chapter. Image link address.
可选的,所述装置还包括:Optionally, the device further includes:
密钥模块,用于根据客户端发起的请求,向客户端发送收费章节的解密密钥以使得所述客户端对于所述文件简化包中包含的收费章节,根据所述解密密钥并按照所述文件简化包中所述收费章节对应的文本内容链接地址从内容服务器下载加密的文本内容,按照所述收费章节对应的图片链接地址从图片服务器下载加密的图片。a key module, configured to send, according to a request initiated by the client, a decryption key of the charging chapter to the client, so that the client simplifies the charging chapter included in the file, according to the decryption key and according to the The text content link address corresponding to the charging chapter in the file simplifying package downloads the encrypted text content from the content server, and downloads the encrypted image from the image server according to the image link address corresponding to the charging chapter.
根据本发明的另一个方面,提供一种文件阅读处理方法,包括:According to another aspect of the present invention, a file reading processing method is provided, including:
下载服务端的电子书籍的文件简化包,其中所述文件简化包中包含用于替换文本内容的文本内容链接地址和用于替换图片的图片链接地址;Downloading a file simplifying package of the e-book of the server, wherein the file simplifying package includes a text content link address for replacing the text content and a picture link address for replacing the picture;
根据所述文件简化包中的文本内容链接地址从内容服务器下载文本内容,根据所述图片链接地址从图片服务器下载图片;Downloading text content from a content server according to the text content link address in the file simplifying package, and downloading a picture from the image server according to the image link address;
显示所述下载的文本内容和图片。The downloaded text content and picture are displayed.
可选的,所述下载服务端的电子书籍的文件简化包之前还包括:Optionally, the file simplifying package of the e-book of the download server further includes:
判断本地是否存储所述电子书籍的文件完整包;Determining whether the file complete package of the electronic book is stored locally;
在本地未存储所述电子书籍的文件完整包的情况下,下载服务端的所述电子书籍的文件简化包;In a case where the file complete package of the electronic book is not stored locally, the file simplified package of the electronic book of the server is downloaded;
在本地存储所述电子书籍的文件完整包的情况下,使用所述文件完整 包进行章节解析和显示。In the case where the file complete package of the electronic book is stored locally, the file is used intact The package performs chapter analysis and display.
可选的,所述其中所述文件简化包中包含用于替换文本内容的文本内容链接地址和用于替换图片的图片链接地址,包括:Optionally, the file simplifying package includes a text content link address for replacing the text content and a picture link address for replacing the picture, including:
其中所述文件简化包中包含免费章节和/或收费章节对应的用于替换文本内容的文本内容链接地址和用于替换图片的图片链接地址。The file simplification package includes a text content link address corresponding to the free chapter and/or the charge chapter for replacing the text content and a picture link address for replacing the picture.
可选的,所述根据所述文件简化包中的文本内容链接地址从内容服务器下载文本内容,根据所述图片链接地址从图片服务器下载图片,包括:Optionally, the downloading the text content from the content server according to the text content link address in the file simplifying package, and downloading the image from the image server according to the image link address, includes:
解析出所述文件简化包中包含的免费章节;Parsing the free chapters included in the file simplification package;
对于所述文件简化包中包含的免费章节,若检测到本地未存储,则直接根据所述文件简化包中所述免费章节对应的文本内容链接地址从内容服务器下载文本内容,根据所述免费章节对应的图片链接地址从图片服务器下载图片。For the free chapter included in the file simplification package, if it is detected that the local chapter is not stored, the text content is directly downloaded from the content server according to the text content link address corresponding to the free chapter in the file simplification package, according to the free chapter. The corresponding image link address downloads the image from the image server.
可选的,所述根据所述文件简化包中的文本内容链接地址从内容服务器下载文本内容,根据所述图片链接地址从图片服务器下载图片,包括:Optionally, the downloading the text content from the content server according to the text content link address in the file simplifying package, and downloading the image from the image server according to the image link address, includes:
解析出所述文件简化包中包含的收费章节;Parsing out the charging chapters included in the simplified package of the file;
对于所述文件简化包中包含的收费章节,若检测到已购买,根据本地存储或动态申请获取的解密密钥,按照所述文件简化包中所述收费章节对应的文本内容链接地址从内容服务器下载加密的文本内容,按照所述收费章节对应的图片链接地址从图片服务器下载加密的图片;或,For the charging chapter included in the file simplification package, if it is detected that the purchase has been made, according to the decryption key acquired by the local storage or the dynamic application, the text content link address corresponding to the charging chapter described in the file simplification package is from the content server. Downloading the encrypted text content, and downloading the encrypted image from the image server according to the image link address corresponding to the charging chapter; or
对于所述文件简化包中包含的收费章节,若检测到未购买,则显示购买按钮,在检测到购买成功后,再根据动态申请获取的解密密钥,按照所述文件简化包中所述收费章节对应的文本内容链接地址从内容服务器下载加密的文本内容,按照所述收费章节对应的图片链接地址从图片服务器下载加密的图片。For the charging chapter included in the simplified document package, if the purchase is not detected, the purchase button is displayed, and after detecting the successful purchase, the decryption key acquired according to the dynamic application is charged according to the simplified package in the file. The text content link address corresponding to the chapter downloads the encrypted text content from the content server, and downloads the encrypted image from the image server according to the image link address corresponding to the charging chapter.
可选的,所述解析出所述文件简化包中包含的免费章节包括:Optionally, the parsing out the free chapters included in the file simplifying package includes:
根据设置的免费或收费章节比例解析出所述文件简化包中包含的免费章节。The free chapters included in the file simplification package are parsed according to the set free or charged chapter proportions.
可选的,所述解析出所述文件简化包中包含的收费章节包括:Optionally, the parsing out the charging chapter included in the file simplified package includes:
根据设置的免费或收费章节比例解析出所述文件简化包中包含的收 费章节。Parsing the inclusions included in the file simplification package according to the set free or charged chapter ratio Fee chapter.
可选的,所述根据所述图片链接地址从图片服务器下载图片包括:Optionally, the downloading the image from the image server according to the image link address includes:
在从图片服务器下载图片时采用异步下载方式,所述文件简化包中还包含图片的大小信息;其中,The asynchronous download mode is adopted when the image is downloaded from the image server, and the file simplifying package further includes the size information of the image;
在所述图片未下载时,在页面中采用占位图为所述图片预留占位区域,所述占位区域根据所述文件简化包中包含图片的大小信息确定;When the picture is not downloaded, a placeholder is reserved in the page for the picture, and the place area is determined according to the size information of the picture included in the file simplified package;
在所述图片下载后,若所述图片为当前页面关联的图片,则刷新页面在所述占位区域显示所述图片。After the picture is downloaded, if the picture is a picture associated with the current page, the refresh page displays the picture in the placeholder area.
根据本发明的另一个方面,提供一种文件阅读处理方法,包括:According to another aspect of the present invention, a file reading processing method is provided, including:
生成电子书籍的文件简化包,其中所述文件简化包中包含用于替换文本内容的文本内容链接地址和用于替换图片的图片链接地址;Generating a file simplification package of an electronic book, wherein the file simplification package includes a text content link address for replacing the text content and a picture link address for replacing the picture;
向客户端发送所述文件简化包以使得所述客户端根据所述文件简化包中的文本内容链接地址从内容服务器下载文本内容,根据所述图片链接地址从图片服务器下载图片,显示所述下载的文本内容和图片。Sending the file simplification package to the client, so that the client downloads text content from the content server according to the text content link address in the file simplification package, downloads a picture from the picture server according to the picture link address, and displays the download Text content and images.
可选的,所述生成电子书籍的文件简化包时,将用文本内容链接地址替换的文本内容存储到内容服务器,将用图片链接地址替换的图片存储到图片服务器。Optionally, when the file simplified package of the electronic book is generated, the text content replaced by the text content link address is stored in the content server, and the image replaced by the image link address is stored in the image server.
可选的,所述生成电子书籍的文件简化包时,根据设置的收费章节比例,生成免费章节和/或收费章节对应的用于替换文本内容的文本内容链接地址和用于替换图片的图片链接地址。Optionally, when the file simplified package of the electronic book is generated, a text content link address for replacing the text content and a picture link for replacing the picture corresponding to the free chapter and/or the charging chapter are generated according to the set fee chapter proportion. address.
可选的,所述生成电子书籍的文件简化包时,还生成被替换图片的大小信息以使得所述客户端在所述图片未下载时,在页面中根据所述图片的大小信息采用占位图为所述图片预留占位区域。Optionally, when the file simplified package of the electronic book is generated, the size information of the replaced picture is further generated, so that the client uses the place size according to the size information of the picture when the picture is not downloaded. The figure reserves the occupied area of the picture.
可选的,所述方法还包括:Optionally, the method further includes:
根据客户端发起的请求,向客户端发送收费章节的解密密钥以使得所述客户端对于所述文件简化包中包含的收费章节,根据所述解密密钥并按照所述文件简化包中所述收费章节对应的文本内容链接地址从内容服务器下载加密的文本内容,按照所述收费章节对应的图片链接地址从图片服务器下载加密的图片。 Sending, according to a request initiated by the client, a decryption key of the charging chapter to the client, so that the client simplifies the charging chapter included in the file, according to the decryption key and according to the simplified package in the file The text content link address corresponding to the charging chapter downloads the encrypted text content from the content server, and downloads the encrypted image from the image server according to the image link address corresponding to the charging chapter.
可以发现,本发明实施例的技术方案,可以先下载服务端的电子书籍的文件简化包,其中所述文件简化包中包含用于替换文本内容的文本内容链接地址和用于替换图片的图片链接地址。然后可以根据所述文件简化包中的文本内容链接地址从内容服务器下载文本内容,根据所述图片链接地址从图片服务器下载图片。这样,就不需要直接先购买和下载文件的完整包后才可以阅读,也不需要将全部图片内容和文本内容一起下载后才可以阅读,可以直接根据文件简化包先下载文本内容进行阅读,使得用户可以尽快进入文件的阅读页,提升用户的阅读体验。It can be found that, in the technical solution of the embodiment of the present invention, the file simplified package of the electronic book of the server may be downloaded first, wherein the file simplified package includes a text content link address for replacing the text content and a picture link address for replacing the image. . The text content can then be downloaded from the content server based on the text content link address in the file simplification package, and the picture can be downloaded from the image server based on the picture link address. In this way, you do not need to directly purchase and download the complete package of the file before you can read it, and you don't need to download all the image content and the text content before you can read it. You can directly download the text content according to the file simplifying package to read. Users can enter the reading page of the file as soon as possible to enhance the user's reading experience.
进一步的,本发明实施例可以在本地未存储所述电子书籍的文件完整包的情况下,才下载服务端的所述电子书籍的文件简化包,如果在本地存储所述电子书籍的文件完整包的情况下,可以直接使用所述文件完整包进行章节解析和显示。Further, the embodiment of the present invention may download the file simplified package of the electronic book of the server when the file complete package of the electronic book is not stored locally, if the file complete package of the electronic book is stored locally In this case, the file complete package can be directly used for chapter analysis and display.
进一步的,本发明实施例所述文件简化包中可以包含免费章节和/或收费章节对应的用于替换文本内容的文本内容链接地址和用于替换图片的图片链接地址,那么在解析出所述文件简化包中包含的免费章节或收费章节后,对于所述文件简化包中包含的免费章节,若检测到本地未存储,则直接根据所述文件简化包中所述免费章节对应的文本内容链接地址从内容服务器下载文本内容,根据所述免费章节对应的图片链接地址从图片服务器下载图片;或,对于所述文件简化包中包含的收费章节,若检测到已购买,根据本地存储或动态申请获取的解密密钥,按照所述文件简化包中所述收费章节对应的文本内容链接地址从内容服务器下载加密的文本内容,按照所述收费章节对应的图片链接地址从图片服务器下载加密的图片;或,对于所述文件简化包中包含的收费章节,若检测到未购买,显示购买按钮,在检测到购买成功后,再根据动态申请获取的解密密钥,按照所述文件简化包中所述收费章节对应的文本内容链接地址从内容服务器下载加密的文本内容,按照所述收费章节对应的图片链接地址从图片服务器下载加密的图片。Further, the file simplifying package in the embodiment of the present invention may include a text content link address for replacing the text content and a picture link address for replacing the picture corresponding to the free chapter and/or the charging chapter, and then parsing the After the free chapter or the charging chapter included in the file simplification package, for the free chapter included in the simplified package of the file, if it is detected that the local chapter is not stored, the text content link corresponding to the free chapter described in the simplified package is directly The address downloads the text content from the content server, downloads the image from the image server according to the image link address corresponding to the free chapter; or, for the charging chapter included in the simplified package, if it detects that the purchase has been made, according to local storage or dynamic application Acquiring the decrypted key, downloading the encrypted text content from the content server according to the text content link address corresponding to the charging chapter in the simplified document package, and downloading the encrypted image from the image server according to the image link address corresponding to the charging chapter; Or, for the charges included in the simplified package of the file If the purchase is not purchased, the purchase button is displayed. After the purchase is successfully detected, the decryption key acquired according to the dynamic application is downloaded from the content server according to the text content link address corresponding to the charging chapter in the simplified package. The encrypted text content is downloaded from the image server according to the image link address corresponding to the charging chapter.
进一步的,本发明实施例可以根据设置的收费章节比例解析出所述文件简化包中包含的免费章节或收费章节。 Further, in the embodiment of the present invention, the free chapter or the charging chapter included in the simplified file package may be parsed according to the set proportion of the charging chapter.
进一步的,本发明实施例可以在从图片服务器下载图片时采用异步下载方式,所述文件简化包中还包含图片的大小信息;这样使得在所述图片未下载时,可以在页面中采用占位图为所述图片预留占位区域,所述占位区域根据所述文件简化包中包含图片的大小信息确定;在所述图片下载后,若所述图片为当前页面关联的图片,则刷新页面在所述占位区域显示所述图片。Further, the embodiment of the present invention may adopt an asynchronous download mode when downloading a picture from a picture server, where the file simplified package further includes size information of the picture; thus, when the picture is not downloaded, the placeholder may be used in the page. The figure is a reserved area for the picture, the place area is determined according to the size information of the picture included in the file simplified package; after the picture is downloaded, if the picture is a picture associated with the current page, the picture is refreshed The page displays the picture in the placeholder area.
附图说明DRAWINGS
通过结合附图对本公开示例性实施方式进行更详细的描述,本公开的上述以及其它目的、特征和优势将变得更加明显,其中,在本公开示例性实施方式中,相同的参考标号通常代表相同部件。The above and other objects, features, and advantages of the present invention will become more apparent from the aspects of the embodiments of the invention. The same parts.
图1是根据本发明的一个实施例的一种文件阅读处理系统的示意性方框图;1 is a schematic block diagram of a file reading processing system in accordance with one embodiment of the present invention;
图2是根据本发明的一个实施例的一种客户端设备的示意性方框图;2 is a schematic block diagram of a client device in accordance with one embodiment of the present invention;
图3是根据本发明的一个实施例的一种服务端设备的示意性方框图;3 is a schematic block diagram of a server device in accordance with an embodiment of the present invention;
图4是根据本发明的一个实施例的一种文件阅读处理装置的示意性方框图;4 is a schematic block diagram of a file reading processing apparatus according to an embodiment of the present invention;
图5是根据本发明的一个实施例的一种文件阅读处理装置的另一示意性方框图;FIG. 5 is another schematic block diagram of a file reading processing apparatus according to an embodiment of the present invention; FIG.
图6是根据本发明的一个实施例的一种文件阅读处理装置的一示意性方框图;FIG. 6 is a schematic block diagram of a file reading processing apparatus according to an embodiment of the present invention; FIG.
图7是根据本发明的一个实施例的一种文件阅读处理装置的另一示意性方框图;FIG. 7 is another schematic block diagram of a file reading processing apparatus according to an embodiment of the present invention; FIG.
图8是根据本发明的一个实施例的一种文件阅读处理方法的示意性流程图;FIG. 8 is a schematic flowchart of a file reading processing method according to an embodiment of the present invention; FIG.
图9是根据本发明的一个实施例的一种文件阅读处理方法的另一示意性流程图。FIG. 9 is another schematic flowchart of a file reading processing method according to an embodiment of the present invention.
图10是根据本发明的一个实施例的一种文件阅读处理方法的另一示意性流程图。 FIG. 10 is another schematic flowchart of a file reading processing method according to an embodiment of the present invention.
具体实施方式detailed description
下面将参照附图更详细地描述本公开的优选实施方式。虽然附图中显示了本公开的优选实施方式,然而应该理解,可以以各种形式实现本公开而不应被这里阐述的实施方式所限制。相反,提供这些实施方式是为了使本公开更加透彻和完整,并且能够将本公开的范围完整地传达给本领域的技术人员。Preferred embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While the preferred embodiment of the present invention has been shown in the drawings, it is understood that Rather, these embodiments are provided so that this disclosure will be thorough and complete.
本发明提供一种文件阅读处理系统,能实现快速进入文件的阅读页进行阅读,提高阅读体验。The invention provides a file reading processing system, which can quickly read a reading page of a file for reading and improve the reading experience.
图1是根据本发明的一个实施例的一种文件阅读处理系统的示意性方框图。1 is a schematic block diagram of a file reading processing system in accordance with one embodiment of the present invention.
如图1所示,在一种文件阅读处理系统中包括:服务端11和客户端12、内容服务器13、图片服务器14。As shown in FIG. 1, a file reading processing system includes a server 11 and a client 12, a content server 13, and a picture server 14.
服务端11,用于生成电子书籍的文件简化包并发送给客户端12,其中所述文件简化包中包含用于替换文本内容的文本内容链接地址和用于替换图片的图片链接地址。The server 11 is configured to generate a file simplified package of the electronic book and send the same to the client 12, wherein the file simplified package includes a text content link address for replacing the text content and a picture link address for replacing the picture.
客户端12,用于下载所述服务端11的电子书籍的文件简化包,根据所述文件简化包中的文本内容链接地址从内容服务器13下载文本内容,根据所述图片链接地址从图片服务器14下载图片,显示所述下载的文本内容和图片。The client 12 is configured to download a file simplified package of the electronic book of the server 11 and download text content from the content server 13 according to the text content link address in the file simplifying package, according to the image link address from the image server 14 Download the image to display the downloaded text content and image.
内容服务器13,用于存储被用文本内容链接地址替换的文本内容,根据所述客户端12的请求向所述客户端12发送所述文本内容。The content server 13 is configured to store the text content replaced by the text content link address, and send the text content to the client 12 according to the request of the client 12.
图片服务器14,用于存储被用图片链接地址替换的图片,根据所述客户端12的请求向所述客户端12发送所述图片。The picture server 14 is configured to store a picture replaced by the picture link address, and send the picture to the client 12 according to the request of the client 12.
图2是根据本发明的一个实施例的一种客户端设备的示意性方框图。2 is a schematic block diagram of a client device in accordance with one embodiment of the present invention.
如图2所示,在一种客户端设备20中包括:存储器21、处理器22和触摸式显示屏23。As shown in FIG. 2, in a client device 20, a memory 21, a processor 22, and a touch display screen 23 are included.
所述存储器21,用于存储处理器22下载的电子书籍的文件简化包;The memory 21 is configured to store a file simplified package of the electronic book downloaded by the processor 22;
所述处理器22,用于下载服务端的电子书籍的文件简化包,其中所述 文件简化包中包含用于替换文本内容的文本内容链接地址和用于替换图片的图片链接地址,根据所述文件简化包中的文本内容链接地址从内容服务器下载文本内容,根据所述图片链接地址从图片服务器下载图片,通过触摸式显示屏23显示所述下载的文本内容和图片。The processor 22 is configured to download a file simplified package of an e-book of the server, where the The file simplifying package includes a text content link address for replacing the text content and a picture link address for replacing the picture, and downloading the text content from the content server according to the text content link address in the file simplifying package, according to the picture link address The downloaded picture is downloaded from the picture server, and the downloaded text content and picture are displayed through the touch display screen 23.
图3是根据本发明的一个实施例的一种服务端设备的示意性方框图。3 is a schematic block diagram of a server device in accordance with one embodiment of the present invention.
如图3所示,在一种服务端设备30中包括:存储器31和处理器32。As shown in FIG. 3, in a server device 30, a memory 31 and a processor 32 are included.
所述存储器31,用于存储处理器32生成的电子书籍的文件简化包;The memory 31 is configured to store a file simplified package of an electronic book generated by the processor 32;
所述处理器32,用于生成电子书籍的文件简化包,其中所述文件简化包中包含用于替换文本内容的文本内容链接地址和用于替换图片的图片链接地址;向客户端发送所述文件简化包,以使得所述客户端根据所述文件简化包中的文本内容链接地址从内容服务器下载文本内容,根据所述图片链接地址从图片服务器下载图片,显示所述下载的文本内容和图片。The processor 32 is configured to generate a file simplified package of an electronic book, where the file simplified package includes a text content link address for replacing the text content and a picture link address for replacing the picture; and sending the The file simplification package, so that the client downloads text content from the content server according to the text content link address in the file simplifying package, downloads a picture from the image server according to the picture link address, and displays the downloaded text content and picture .
在上述设备中的处理器22或32,可以作为一个独立的装置结构,该独立的装置结构可以称为一种文件阅读处理装置,该一种文件阅读处理装置可以包括多个子模块,下文将结合图4到图7对文件阅读处理装置的结构进行详细说明。The processor 22 or 32 in the above device may be a stand-alone device structure. The independent device structure may be referred to as a file reading processing device. The file reading processing device may include a plurality of sub-modules, which will be combined below. 4 to 7 illustrate the structure of the file reading processing device in detail.
图4是根据本发明的一个实施例的一种文件阅读处理装置的示意性方框图。4 is a schematic block diagram of a file reading processing apparatus in accordance with one embodiment of the present invention.
如图4所示,在一种文件阅读处理装置40中可以包括:第一下载模块41、第二下载模块42、显示模块43。As shown in FIG. 4, the file reading processing device 40 may include a first downloading module 41, a second downloading module 42, and a display module 43.
第一下载模块41,用于下载服务端的电子书籍的文件简化包,其中所述文件简化包中包含用于替换文本内容的文本内容链接地址和用于替换图片的图片链接地址。所述文件简化包中可以包含免费章节和/或收费章节对应的用于替换文本内容的文本内容链接地址和用于替换图片的图片链接地址。The first downloading module 41 is configured to download a file simplifying package of the electronic book of the server, wherein the file simplifying package includes a text content link address for replacing the text content and a picture link address for replacing the picture. The file simplification package may include a text content link address corresponding to the free chapter and/or the charge chapter for replacing the text content and a picture link address for replacing the picture.
第二下载模块42,用于根据所述第一下载模块41的文件简化包中的文本内容链接地址从内容服务器下载文本内容,根据所述图片链接地址从图片服务器下载图片。The second downloading module 42 is configured to download text content from the content server according to the text content link address in the file simplifying package of the first download module 41, and download the image from the image server according to the image link address.
显示模块43,用于显示所述第二下载模块42下载的文本内容和图片。 The display module 43 is configured to display the text content and the picture downloaded by the second download module 42.
由该实施例可见,本发明实施例的技术方案,可以先下载服务端的电子书籍的文件简化包,其中所述文件简化包中包含用于替换文本内容的文本内容链接地址和用于替换图片的图片链接地址。然后可以根据所述文件简化包中的文本内容链接地址从内容服务器下载文本内容,根据所述图片链接地址从图片服务器下载图片。这样,就不需要直接先购买和下载文件的完整包后才可以阅读,也不需要将全部图片内容和文本内容一起下载后才可以阅读,可以直接根据文件简化包先下载文本内容进行阅读,使得用户可以尽快进入文件的阅读页,提升用户的阅读体验。It can be seen from the embodiment that, in the technical solution of the embodiment of the present invention, the file simplified package of the electronic book of the server may be downloaded first, wherein the file simplified package includes a text content link address for replacing the text content and a replacement for the image. Image link address. The text content can then be downloaded from the content server based on the text content link address in the file simplification package, and the picture can be downloaded from the image server based on the picture link address. In this way, you do not need to directly purchase and download the complete package of the file before you can read it, and you don't need to download all the image content and the text content before you can read it. You can directly download the text content according to the file simplifying package to read. Users can enter the reading page of the file as soon as possible to enhance the user's reading experience.
图5是根据本发明的一个实施例的一种文件阅读处理装置的另一示意性方框图。FIG. 5 is another schematic block diagram of a file reading processing apparatus according to an embodiment of the present invention.
如图5所示,在一种文件阅读处理装置40中可以包括:第一下载模块41、第二下载模块42、显示模块43、判断模块44。As shown in FIG. 5, the file reading processing device 40 may include a first downloading module 41, a second downloading module 42, a display module 43, and a determining module 44.
第一下载模块41、第二下载模块42、显示模块43的功能可参见图4所示。The functions of the first download module 41, the second download module 42, and the display module 43 can be seen in FIG.
判断模块44,用于判断本地是否存储所述电子书籍的文件完整包;The determining module 44 is configured to determine whether the file complete package of the electronic book is stored locally;
所述第一下载模块41在所述判断模块44判断出在本地未存储所述电子书籍的文件完整包的情况下,下载服务端的所述电子书籍的文件简化包;所述显示模块43在所述判断模块44判断出本地存储所述电子书籍的文件完整包的情况下,直接使用所述文件完整包进行章节解析和显示。The first downloading module 41, when the determining module 44 determines that the file complete package of the electronic book is not stored locally, downloads the file simplified package of the electronic book of the server; the display module 43 is in the When the judging module 44 judges that the file complete package of the e-book is locally stored, the chapter complete parsing and display is directly performed using the file complete package.
所述第二下载模块42可以包括解析子模块421,还可以包括:第一处理子模块422、第二处理子模块423和/或第三处理子模块424。The second downloading module 42 may include a parsing submodule 421, and may further include: a first processing submodule 422, a second processing submodule 423, and/or a third processing submodule 424.
解析子模块421,用于在所述文件简化包中包含免费章节和/或收费章节对应的用于替换文本内容的文本内容链接地址和用于替换图片的图片链接地址的情况下,解析出所述文件简化包中包含的免费章节或收费章节。The parsing sub-module 421 is configured to parse the text in the file simplifying package, including the text content link address for replacing the text content and the image link address for replacing the picture corresponding to the free chapter and/or the charging chapter The free chapter or fee section included in the document simplification package.
第一处理子模块422,用于对于所述解析子模块421解析出的文件简化包中包含的免费章节,若检测到本地未存储,则直接根据所述文件简化包中所述免费章节对应的文本内容链接地址从内容服务器下载文本内容,根据所述免费章节对应的图片链接地址从图片服务器下载图片。The first processing sub-module 422 is configured to use the free chapter included in the file simplified package parsed by the parsing sub-module 421, and if it is detected that the local is not stored, directly corresponding to the free chapter in the simplified package according to the file The text content link address downloads the text content from the content server, and downloads the image from the image server according to the image link address corresponding to the free chapter.
第二处理子模块423,用于对于所述解析子模块421解析出的所述文 件简化包中包含的收费章节,若检测到已购买,则根据本地存储或动态申请获取的解密密钥,按照所述文件简化包中所述收费章节对应的文本内容链接地址从内容服务器下载加密的文本内容,按照所述收费章节对应的图片链接地址从图片服务器下载加密的图片。a second processing submodule 423, configured to parse the text that is parsed by the parsing submodule 421 The charging section included in the simplified package, if it is detected to be purchased, downloads the encryption from the content server according to the decryption key obtained by the local storage or the dynamic application, according to the text content link address corresponding to the charging section in the simplified package of the file. The text content is downloaded from the image server according to the image link address corresponding to the charging chapter.
第三处理子模块424,用于对于所述解析子模块421解析出的所述文件简化包中包含的收费章节,若检测到未购买,则显示购买按钮,在检测到购买成功后,再根据动态申请获取的解密密钥,按照所述文件简化包中所述收费章节对应的文本内容链接地址从内容服务器下载加密的文本内容,按照所述收费章节对应的图片链接地址从图片服务器下载加密的图片。The third processing sub-module 424 is configured to: for the charging chapter included in the file simplified package parsed by the parsing sub-module 421, if the purchase is not detected, the purchase button is displayed, and after detecting the successful purchase, Dynamically obtaining the decrypted key, downloading the encrypted text content from the content server according to the text content link address corresponding to the charging chapter in the simplified document package, and downloading the encrypted image from the image server according to the image link address corresponding to the charging chapter. image.
所述第二下载模块42在从图片服务器下载图片时采用异步下载方式,所述文件简化包中还包含图片的大小信息;所述显示模块43在所述图片未下载时,在页面中采用占位图为所述图片预留占位区域,所述占位区域根据所述文件简化包中包含图片的大小信息确定,在所述图片下载后,若所述图片为当前页面关联的图片,则刷新页面在所述占位区域显示所述图片。The second downloading module 42 adopts an asynchronous downloading mode when the image is downloaded from the image server, and the file simplifying package further includes size information of the image; the display module 43 uses the image in the page when the image is not downloaded. The bitmap is a reserved area for the picture, the place area is determined according to the size information of the picture included in the file simplified package, and after the picture is downloaded, if the picture is a picture associated with the current page, The refresh page displays the picture in the placeholder area.
图6是根据本发明的一个实施例的一种文件阅读处理装置的一示意性方框图。Figure 6 is a schematic block diagram of a file reading processing apparatus in accordance with one embodiment of the present invention.
如图6所示,在一种文件阅读处理装置60中包括:生成模块61、发送模块62。As shown in FIG. 6, a file reading processing device 60 includes a generating module 61 and a transmitting module 62.
生成模块61,用于生成电子书籍的文件简化包,其中所述文件简化包中包含用于替换文本内容的文本内容链接地址和用于替换图片的图片链接地址。所述文件简化包中可以包含免费章节和/或收费章节对应的用于替换文本内容的文本内容链接地址和用于替换图片的图片链接地址。The generating module 61 is configured to generate a file simplifying package of the electronic book, wherein the file simplifying package includes a text content link address for replacing the text content and a picture link address for replacing the picture. The file simplification package may include a text content link address corresponding to the free chapter and/or the charge chapter for replacing the text content and a picture link address for replacing the picture.
发送模块62,用于向客户端发送所述生成模块61生成的文件简化包,以使得所述客户端根据所述文件简化包中的文本内容链接地址从内容服务器下载文本内容,根据所述图片链接地址从图片服务器下载图片,显示所述下载的文本内容和图片。The sending module 62 is configured to send, to the client, the file simplified package generated by the generating module 61, so that the client downloads the text content from the content server according to the text content link address in the file simplifying package, according to the image The link address downloads a picture from the picture server, displaying the downloaded text content and picture.
图7是根据本发明的一个实施例的一种文件阅读处理装置的另一示意性方框图。Figure 7 is another schematic block diagram of a file reading processing apparatus in accordance with one embodiment of the present invention.
如图7所示,在一种文件阅读处理装置中包括:生成模块61、发送模 块62、密钥模块63。As shown in FIG. 7, in a file reading processing apparatus, a generating module 61 and a transmitting module are included. Block 62, key module 63.
生成模块61、发送模块62的功能可参见图6所描述。The functions of the generating module 61 and the transmitting module 62 can be described with reference to FIG. 6.
所述生成模块61生成电子书籍的文件简化包时,根据设置的收费章节比例,生成免费章节和/或收费章节对应的用于替换文本内容的文本内容链接地址和用于替换图片的图片链接地址。When the generating module 61 generates the file simplified package of the electronic book, the text content link address for replacing the text content and the image link address for replacing the picture corresponding to the free chapter and/or the charging chapter are generated according to the set fee chapter ratio. .
密钥模块63,用于根据客户端发起的请求,向客户端发送收费章节的解密密钥,以使得所述客户端对于所述文件简化包中包含的收费章节,根据所述解密密钥并按照所述文件简化包中所述收费章节对应的文本内容链接地址从内容服务器下载加密的文本内容,按照所述收费章节对应的图片链接地址从图片服务器下载加密的图片。The key module 63 is configured to send, according to a request initiated by the client, a decryption key of the charging chapter to the client, so that the client simplifies the charging chapter included in the file, according to the decryption key. And downloading the encrypted text content from the content server according to the text content link address corresponding to the charging chapter in the file simplifying package, and downloading the encrypted image from the image server according to the image link address corresponding to the charging chapter.
上述详细介绍了本发明的一种文件阅读处理系统、设备及装置,以下介绍本发明对应的文件阅读处理方法。The above describes a file reading processing system, apparatus and apparatus of the present invention in detail. The following describes a file reading processing method corresponding to the present invention.
图8是根据本发明的一个实施例的一种文件阅读处理方法的示意性流程图。FIG. 8 is a schematic flow chart of a file reading processing method according to an embodiment of the present invention.
图8从客户端侧描述本发明实施例方案。FIG. 8 depicts an embodiment of the present invention from the client side.
如图8所示,在步骤801中,下载服务端的电子书籍的文件简化包,其中所述文件简化包中包含用于替换文本内容的文本内容链接地址和用于替换图片的图片链接地址。As shown in FIG. 8, in step 801, a file simplified package of an electronic book of the server is downloaded, wherein the file simplified package includes a text content link address for replacing the text content and a picture link address for replacing the picture.
所述文件简化包中可以包含免费章节和/或收费章节对应的用于替换文本内容的文本内容链接地址和用于替换图片的图片链接地址。The file simplification package may include a text content link address corresponding to the free chapter and/or the charge chapter for replacing the text content and a picture link address for replacing the picture.
在步骤802中,根据所述文件简化包中的文本内容链接地址从内容服务器下载文本内容,根据所述图片链接地址从图片服务器下载图片。In step 802, text content is downloaded from the content server according to the text content link address in the file simplifying package, and the picture is downloaded from the picture server according to the picture link address.
在步骤803中,显示所述下载的文本内容和图片。In step 803, the downloaded text content and picture are displayed.
由该实施例可见,可以先下载服务端的电子书籍的文件简化包,其中所述文件简化包中包含用于替换文本内容的文本内容链接地址和用于替换图片的图片链接地址。然后可以根据所述文件简化包中的文本内容链接地址从内容服务器下载文本内容,根据所述图片链接地址从图片服务器下载图片。这样,就不需要直接先购买和下载文件的完整包后才可以阅读,也不需要将全部图片内容和文本内容一起下载后才可以阅读,可以直接根据 文件简化包先下载文本内容进行阅读,使得用户可以尽快进入文件的阅读页,提升用户的阅读体验。As can be seen from this embodiment, the file simplified package of the electronic book of the server may be downloaded first, wherein the file simplified package includes a text content link address for replacing the text content and a picture link address for replacing the picture. The text content can then be downloaded from the content server based on the text content link address in the file simplification package, and the picture can be downloaded from the image server based on the picture link address. In this way, you don't need to directly purchase and download the complete package of the file before you can read it, and you don't need to download all the image content and the text content before you can read it. The file simplification package first downloads the text content for reading, so that the user can enter the reading page of the file as soon as possible, thereby improving the user's reading experience.
图9是根据本发明的一个实施例的一种文件阅读处理方法的另一示意性流程图。FIG. 9 is another schematic flowchart of a file reading processing method according to an embodiment of the present invention.
图9从服务端侧描述本发明实施例方案。FIG. 9 depicts an embodiment of the present invention from the server side.
如图9所示,在步骤901中,生成电子书籍的文件简化包,其中所述文件简化包中包含用于替换文本内容的文本内容链接地址和用于替换图片的图片链接地址。As shown in FIG. 9, in step 901, a file simplification package of an electronic book is generated, wherein the file simplification package includes a text content link address for replacing the text content and a picture link address for replacing the picture.
所述文件简化包中可以包含免费章节和/或收费章节对应的用于替换文本内容的文本内容链接地址和用于替换图片的图片链接地址。The file simplification package may include a text content link address corresponding to the free chapter and/or the charge chapter for replacing the text content and a picture link address for replacing the picture.
在步骤902中,向客户端发送所述文件简化包、以使得所述客户端根据所述文件简化包中的文本内容链接地址从内容服务器下载文本内容,根据所述图片链接地址从图片服务器下载图片,显示所述下载的文本内容和图片。In step 902, the file simplifying package is sent to the client, so that the client downloads the text content from the content server according to the text content link address in the file simplifying package, and downloads from the image server according to the image link address. A picture showing the downloaded text content and picture.
图10是根据本发明的一个实施例的一种文件阅读处理方法的另一示意性流程图。FIG. 10 is another schematic flowchart of a file reading processing method according to an embodiment of the present invention.
图10通过客户端与服务端的交互更详细描述了本发明实施例的技术方案。FIG. 10 illustrates the technical solution of the embodiment of the present invention in more detail through the interaction between the client and the server.
本发明实施例方案,将大文件在服务端进行拆分组装,将文本内容单独提取出来存放到内容服务器上,将内容服务器的链接地址替换文本内容部分,将图片存储在图片服务器上,将图片对应的链接地址,或者进一步将图片的宽度和高度信息替换之前图片内容部分。本发明实施例方案同时对于文件的试读章节和收费章节进行拆分,可以采用按整个文章内容的百分比的方式进行拆分。对于收费章节,可以将收费章节的内容进行加密存储,对应替换为加密链接地址,加密链接地址对应的页面为显示需要购买的页面。通过上述操作,服务端生成一个文件简化包,同时服务端还保存原始的文件完整包。当客户端进入阅读页时,判断出如果本地存储了文件完整包,则可以直接使用文件完整包进行阅读,如果本地没有存储文件完整包,则联网下载文件简化包。客户端对文件简化包进行章节分解,对于 免费章节,判断本地是否已经下载此内容资源,如果没有下载,则根据链接地址联网下载链接地址对应的当前章节文本内容,同时查找当前章节关联的图片列表,异步下载当前章节的所有图片;对于付费章节,如果判断出用户未购买过,则显示购买按钮,如果判断出已经购买过,则动态向服务端请求解密密钥,如果请求到解密密钥,则根据加密链接地址下载加密的文本内容和图片内容,同时使用解密密钥对加密内容进行解密,展示给用户。通过本发明实施例方案,可以保证用户无需下载大文件的情况下,快速进入阅读页进行阅读,可以极大提升大文件的用户阅读体验。In the embodiment of the present invention, the large file is split and assembled on the server, the text content is separately extracted and stored on the content server, the link address of the content server is replaced with the text content portion, and the image is stored on the image server, and the image is Corresponding link address, or further replace the width and height information of the picture with the previous picture content part. In the embodiment of the present invention, the trial chapter and the charging chapter of the file are split at the same time, and the splitting may be performed by using the percentage of the entire article content. For the charging chapter, the content of the charging chapter may be stored in an encrypted manner, and replaced with an encrypted link address, and the page corresponding to the encrypted link address is a page that needs to be purchased. Through the above operation, the server generates a file simplification package, and the server also saves the original file complete package. When the client enters the reading page, it is determined that if the file complete package is stored locally, the file complete package can be directly used for reading. If there is no complete file storage package locally, the network download file simplifying package. The client decomposes the file simplification package for Free chapter to determine whether the content resource has been downloaded locally. If there is no download, download the current chapter text content corresponding to the link address according to the link address, and find the picture list associated with the current chapter, and asynchronously download all the pictures of the current chapter; In the chapter, if it is determined that the user has not purchased, the purchase button is displayed, and if it is determined that the purchase has been made, the decryption key is dynamically requested from the server, and if the decryption key is requested, the encrypted text content is downloaded according to the encrypted link address and The content of the picture is decrypted by the decryption key and displayed to the user. The solution of the embodiment of the present invention can ensure that the user can quickly enter the reading page without reading the large file, which can greatly improve the user reading experience of the large file.
以下按步骤详细进行描述。The following is described in detail in steps.
如图10所示,在步骤1001中,服务端生成电子书籍的文件简化包,将用文本内容链接地址替换的文本内容存储到内容服务器,将用图片链接地址替换的图片存储到图片服务器。As shown in FIG. 10, in step 1001, the server generates a file simplifying package of the electronic book, stores the text content replaced with the text content link address to the content server, and stores the image replaced with the image link address in the image server.
该步骤在所述生成电子书籍的文件简化包时,还可以根据设置的收费章节比例,生成免费章节和/或收费章节对应的用于替换文本内容的文本内容链接地址和用于替换图片的图片链接地址。也就是说,可以全部是免费章节或全部是收费章节,也可以是部分免费章节和部分收费章节,都可以适用于本发明实施例方案。In the step of generating the file simplified package of the electronic book, the step further generates a text content link address for replacing the text content and a picture for replacing the picture corresponding to the free chapter and/or the charging chapter according to the set proportion of the charged chapter. link address. That is to say, all of the free chapters or all of the charging chapters may be used, and some of the free chapters and some of the charging chapters may be applied to the embodiments of the present invention.
所述生成电子书籍的文件简化包时,还可以生成被替换图片的大小信息以使得客户端在所述图片未下载时,在页面中根据所述图片的大小信息采用占位图为所述图片预留占位区域。也就是说,生成的文件简化包中,可以包含免费章节和/或收费章节对应的用于替换文本内容的文本内容链接地址、用于替换图片的图片链接地址及被替换图片的大小信息例如图片的宽度和高度信息。When the file simplified package of the electronic book is generated, the size information of the replaced picture may also be generated, so that when the picture is not downloaded, the client uses the place map as the picture according to the size information of the picture in the page. Reserve the footprint area. That is to say, the generated file simplification package may include a text content link address for replacing the text content corresponding to the free chapter and/or the charge chapter, a picture link address for replacing the picture, and size information of the replaced picture such as a picture. Width and height information.
该步骤中,服务端将大文件进行拆分组装,拆分规则可以是将文件中的文本内容单独提取出来存储到内容服务器,将内容服务器的链接地址替换内容部分,例如文件中间如果包含2000字数甚至更多的文本内容xxxxxxxxxxxxxxxxxxx将会被替换成客户端可识别的链接地址http://xx.xx.com/xx.jsp,这样整个文件大小会有很大的减少;将大文件的图片上传到图片服务器,同时将图片对应的链接地址、图片的宽度和高 度替换原来对应的图片的位置,即图片会从大文件中删除掉,这样整个文件的大小会有很大的减少。需说明的是,替换链接地址是根据文件的结果将部分完整的部分组成一个整体进行替换的,如果文件结构中就一个部分就可以用一个链接地址进行替换。In this step, the server splits and assembles the large file. The split rule may be to separately extract the text content in the file and store it in the content server, and replace the content address of the content server with the content part, for example, if the file contains 2000 words Even more text content xxxxxxxxxxxxxxxxxxx will be replaced with the client-recognizable link address http://xx.xx.com/xx.jsp, so that the entire file size will be greatly reduced; upload the image of the large file Go to the image server, and at the same time, the link address, the width and height of the image The degree is replaced by the position of the corresponding picture, that is, the picture will be deleted from the large file, so that the size of the entire file will be greatly reduced. It should be noted that the replacement link address is replaced by a complete part of the file according to the result of the file. If a part of the file structure is replaced by a link address.
服务端还可以通过后台设置的免费章节或收费章节占的百分比进行免费章节和收费章节的区分。如果是收费章节,服务端可以将文本内容以加密的方式存放到服务器上,此时是将原来的文本内容部分用加密链接地址替换,加密的链接地址和未加密的链接地址可以在格式上有所区分。例如加密的链接地址为http://xx.xx.com/xx.jsp.enc等。最后,将处理后的文件生成一个完整的包作为文件简化包,同时原来的原始的文件完整包仍然保存。The server can also distinguish between the free chapter and the charging chapter by the free chapter set in the background or the percentage of the charged chapter. If it is a charging chapter, the server can store the text content in an encrypted manner on the server. At this time, the original text content portion is replaced with an encrypted link address, and the encrypted link address and the unencrypted link address may have a format. Distinguish. For example, the encrypted link address is http://xx.xx.com/xx.jsp.enc. Finally, the processed file is generated as a complete package as a simplified package, and the original original full package is still saved.
关于设置百分比的方式,可以根据文件中每个独立的文本结构内容在整个文本内容中的占比进行考虑,例如免费章节(试读章节)设置为20%,收费章节为80%,在占整个文本内容20%的文本结构之前的文本结构都为免费章节,链接地址为免费,之后的都为收费章节,加密保存,链接地址为加密。The way to set the percentage can be considered according to the proportion of each individual text structure content in the file in the entire text content, for example, the free chapter (trial chapter) is set to 20%, and the fee chapter is 80%, which accounts for the whole. The text structure before the 20% text structure of the text content is a free chapter, the link address is free, and the subsequent ones are charged chapters, encrypted and saved, and the link address is encrypted.
在步骤1002中,服务端向客户端发送所述文件简化包。In step 1002, the server sends the file simplification package to the client.
所发送的文件简化包中包含免费章节和/或收费章节对应的用于替换文本内容的文本内容链接地址、用于替换图片的图片链接地址、及被替换图片的大小信息例如图片的宽度和高度信息。The sent file simplification package includes a text content link address for replacing the text content corresponding to the free chapter and/or the charge chapter, a picture link address for replacing the picture, and size information of the replaced picture such as the width and height of the picture. information.
在步骤1003中,客户端判断本地是否存储所述电子书籍的文件完整包,如未存储,进入步骤1004,如已存储,进入步骤1005。In step 1003, the client determines whether the file complete package of the electronic book is stored locally. If not, the process proceeds to step 1004. If it has been stored, the process proceeds to step 1005.
客户端在进入阅读页时可以先判断本地是否已下载文件完整包,如果已下载,则可以在步骤1005使用文件完整包进行章节解析阅读,如果没有下载文件完整包,则可以在步骤1004联网下载文件简化包。When the client enters the reading page, it can first determine whether the file has been downloaded locally. If it has been downloaded, the file can be read and used in step 1005. If the file is not downloaded, the network can be downloaded in step 1004. File simplification package.
在步骤1004中,客户端下载服务端的电子书籍的文件简化包,进入步骤1006。In step 1004, the client downloads the file simplified package of the electronic book of the server, and proceeds to step 1006.
在步骤1005中,客户端使用所述文件完整包进行章节解析和显示。In step 1005, the client uses the full package of files for chapter parsing and display.
在步骤1006中,客户端解析出所述文件简化包中包含的免费章节或 收费章节。In step 1006, the client parses out the free chapters included in the file simplification package or Charge section.
客户端可以根据设置的免费或收费章节比例解析出所述文件简化包中包含的免费章节或收费章节。The client can parse out the free chapters or charging chapters included in the simplified package of the file according to the set free or charged chapter proportions.
在步骤1007中,客户端针对免费章节或收费章节,在从内容服务器下载文本内容和从图片服务器下载图片时进行不同处理,并显示所述下载的文本内容和图片。In step 1007, the client performs different processing for downloading the text content from the content server and downloading the image from the image server for the free chapter or the charging chapter, and displays the downloaded text content and picture.
该步骤中,对于所述文件简化包中包含的免费章节,若检测到本地未存储,则直接根据所述文件简化包中所述免费章节对应的文本内容链接地址从内容服务器下载文本内容,根据所述免费章节对应的图片链接地址从图片服务器下载图片;或,In this step, for the free chapter included in the file simplification package, if it is detected that the local chapter is not stored, the text content is directly downloaded from the content server according to the text content link address corresponding to the free chapter in the file simplification package, according to Downloading an image from the image server by the image link address corresponding to the free chapter; or
对于所述文件简化包中包含的收费章节,若检测到已购买,则根据本地存储或动态申请获取的解密密钥,按照所述文件简化包中所述收费章节对应的文本内容链接地址从内容服务器下载加密的文本内容,按照所述收费章节对应的图片链接地址从图片服务器下载加密的图片;或,For the charging chapter included in the file simplification package, if it is detected that the purchase has been made, according to the decryption key obtained by the local storage or the dynamic application, according to the text content link address corresponding to the charging chapter described in the file simplification package, the content is The server downloads the encrypted text content, and downloads the encrypted image from the image server according to the image link address corresponding to the charging chapter; or
对于所述文件简化包中包含的收费章节,若检测到未购买,则显示购买按钮,在检测到购买成功后,再根据动态申请获取的解密密钥,按照所述文件简化包中所述收费章节对应的文本内容链接地址从内容服务器下载加密的文本内容,按照所述收费章节对应的图片链接地址从图片服务器下载加密的图片。For the charging chapter included in the simplified document package, if the purchase is not detected, the purchase button is displayed, and after detecting the successful purchase, the decryption key acquired according to the dynamic application is charged according to the simplified package in the file. The text content link address corresponding to the chapter downloads the encrypted text content from the content server, and downloads the encrypted image from the image server according to the image link address corresponding to the charging chapter.
也就是说,客户端对简化包进行章节解析后:That is to say, after the client parses the simplified package:
如果当前章节是免费章节即试读章节,则客户端判断本地是否已下载章节内容。如果已经下载,则检查章节关联的图片列表是否下载。如果没有下载,可以采用占位图为图片预留占位区域,区域的大小根据图片的宽度和高度设置,同时异步下载图片。在图片已经下载或在图片下载完成后,如果是当前页面关联的图片,更新当前阅读的页面刷新出图片,即刷新页面在所述占位区域显示所述图片。If the current chapter is a free chapter that is a trial chapter, the client determines if the chapter content has been downloaded locally. If it has already been downloaded, check if the list of pictures associated with the chapter is downloaded. If there is no download, you can use the placeholder map to reserve the occupied area for the picture. The size of the area is set according to the width and height of the picture, and the picture is downloaded asynchronously. After the picture has been downloaded or after the picture is downloaded, if it is the picture associated with the current page, updating the currently read page to refresh the picture, that is, refreshing the page to display the picture in the placeholder area.
在当前章节是收费章节的情况下,如果客户端判断出用户未购买当前章节,则显示购买按钮。如果判断出用户已经购买过,则进一步判断本地是否有解密密钥。如果本地没有解密密钥,则联网向服务端请求解密密钥, 同时向内容服务器请求当前章节的加密的文本内容。对请求到的加密内容使用解密密钥进行解密,解密成功后,显示文本内容,同时异步下载图片信息。在图片已经下载或在图片下载完成后,如果是当前页面关联的图片,更新当前阅读的页面刷新出图片,即刷新页面在所述占位区域显示所述图片。In the case where the current chapter is a charging chapter, if the client determines that the user has not purchased the current chapter, the purchase button is displayed. If it is determined that the user has already purchased, it is further determined whether there is a decryption key locally. If there is no decryption key locally, the network requests the decryption key from the server. At the same time, the encrypted content of the current chapter is requested from the content server. The decrypted key is decrypted for the encrypted content requested, and after the decryption is successful, the text content is displayed, and the image information is asynchronously downloaded. After the picture has been downloaded or after the picture is downloaded, if it is the picture associated with the current page, updating the currently read page to refresh the picture, that is, refreshing the page to display the picture in the placeholder area.
需说明的是,如果需要实现书籍由免费到收费的转换,则可以删除本地的解密密钥,页面会变成购买按钮。It should be noted that if you need to convert the book from free to charge, you can delete the local decryption key and the page will become the purchase button.
本发明实施例的方案,可以极大提升用户对在线大文件的阅读体验,而且有利于大文件在线上销售。另外对收费章节进行加密存储,动态下发密钥方式解密,可以提高文件的在线安全性,使得只有购买过的用户才可以阅读。The solution of the embodiment of the invention can greatly improve the user's reading experience on large online files, and is advantageous for online sales of large files. In addition, the charging chapter is encrypted and stored, and the key mode is decrypted dynamically, which can improve the online security of the file, so that only the purchased user can read it.
上文中已经参考附图详细描述了根据本发明的技术方案。The technical solution according to the present invention has been described in detail above with reference to the accompanying drawings.
此外,根据本发明的方法还可以实现为一种计算机程序,该计算机程序包括用于执行本发明的上述方法中限定的上述各步骤的计算机程序代码指令。或者,根据本发明的方法还可以实现为一种计算机程序产品,该计算机程序产品包括计算机可读介质,在该计算机可读介质上存储有用于执行本发明的上述方法中限定的上述功能的计算机程序。本领域技术人员还将明白的是,结合这里的公开所描述的各种示例性逻辑块、模块、电路和算法步骤可以被实现为电子硬件、计算机软件或两者的组合。Furthermore, the method according to the invention can also be implemented as a computer program comprising computer program code instructions for performing the various steps defined above in the above method of the invention. Alternatively, the method according to the invention may also be embodied as a computer program product comprising a computer readable medium on which is stored a computer for performing the above-described functions defined in the above method of the invention program. The various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both.
附图中的流程图和框图显示了根据本发明的多个实施例的系统和方法的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标记的功能也可以以不同于附图中所标记的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。 The flowchart and block diagrams in the Figures illustrate the architecture, functionality and operation of possible implementations of systems and methods in accordance with various embodiments of the present invention. In this regard, each block of the flowchart or block diagram can represent a module, a program segment, or a portion of code that includes one or more of the Executable instructions. It should also be noted that in some alternative implementations, the functions noted in the blocks may also occur in a different order than the ones in the drawings. For example, two consecutive blocks may be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowcharts, and combinations of blocks in the block diagrams and/or flowcharts, can be implemented in a dedicated hardware-based system that performs the specified function or operation. Or it can be implemented by a combination of dedicated hardware and computer instructions.
以上已经描述了本发明的各实施例,上述说明是示例性的,并非穷尽性的,并且也不限于所披露的各实施例。在不偏离所说明的各实施例的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。本文中所用术语的选择,旨在最好地解释各实施例的原理、实际应用或对市场中的技术的改进,或者使本技术领域的其它普通技术人员能理解本文披露的各实施例。 The embodiments of the present invention have been described above, and the foregoing description is illustrative, not limiting, and not limited to the disclosed embodiments. Numerous modifications and changes will be apparent to those skilled in the art without departing from the scope of the invention. The choice of terms used herein is intended to best explain the principles, practical applications, or improvements of the techniques in the various embodiments of the embodiments, or to enable those of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (24)

  1. 一种文件阅读处理系统,其特征在于,包括:A document reading processing system, comprising:
    服务端,用于生成电子书籍的文件简化包并发送给客户端,其中所述文件简化包中包含用于替换文本内容的文本内容链接地址和用于替换图片的图片链接地址;a server, a file simplified package for generating an electronic book, and the file simplified package includes a text content link address for replacing the text content and a picture link address for replacing the picture;
    客户端,用于下载所述服务端的电子书籍的文件简化包,根据所述文件简化包中的文本内容链接地址从内容服务器下载文本内容,根据所述图片链接地址从图片服务器下载图片,显示所述下载的文本内容和图片。a client, a file simplifying package for downloading an electronic book of the server, downloading text content from a content server according to a text content link address in the file simplifying package, and downloading a picture from the image server according to the image link address, displaying the The downloaded text content and images.
  2. 根据权利要求1所述的系统,其特征在于,所述系统还包括:The system of claim 1 wherein the system further comprises:
    内容服务器,用于存储被用文本内容链接地址替换的文本内容,根据所述客户端的请求向所述客户端发送所述文本内容;a content server, configured to store the text content replaced by the text content link address, and send the text content to the client according to the request of the client;
    图片服务器,用于存储被用图片链接地址替换的图片,根据所述客户端的请求向所述客户端发送所述图片。And a picture server, configured to store the picture replaced by the picture link address, and send the picture to the client according to the request of the client.
  3. 一种客户端设备,其特征在于,包括:存储器、处理器和触摸式显示屏;A client device, comprising: a memory, a processor, and a touch display;
    所述存储器,用于存储处理器下载的电子书籍的文件简化包;The memory is used to store a file simplified package of an electronic book downloaded by the processor;
    所述处理器,用于下载服务端的电子书籍的文件简化包,其中所述文件简化包中包含用于替换文本内容的文本内容链接地址和用于替换图片的图片链接地址,根据所述文件简化包中的文本内容链接地址从内容服务器下载文本内容,根据所述图片链接地址从图片服务器下载图片,通过触摸式显示屏显示所述下载的文本内容和图片。The processor is configured to download a file simplified package of an e-book of a server, where the file simplifying package includes a text content link address for replacing the text content and a picture link address for replacing the picture, and is simplified according to the file The text content link address in the package downloads the text content from the content server, downloads the picture from the picture server according to the picture link address, and displays the downloaded text content and picture through the touch display screen.
  4. 一种服务端设备,其特征在于,包括:存储器和处理器;A server device, comprising: a memory and a processor;
    所述存储器,用于存储处理器生成的电子书籍的文件简化包;The memory is used to store a file simplified package of an e-book generated by a processor;
    所述处理器,用于生成电子书籍的文件简化包,其中所述文件简化包中包含用于替换文本内容的文本内容链接地址和用于替换图片的图片链接地址,向客户端发送所述文件简化包以使得所述客户端根据所述文件简化包中的文本内容链接地址从内容服务器下载文本内容,根据所述图片链接地址从图片服务器下载图片,显示所述下载的文本内容和图片。The processor is configured to generate a file simplifying package of an electronic book, where the file simplifying package includes a text content link address for replacing the text content and a picture link address for replacing the picture, and sending the file to the client The package is simplified such that the client downloads text content from the content server according to the text content link address in the file simplifying package, downloads a picture from the picture server according to the picture link address, and displays the downloaded text content and picture.
  5. 一种文件阅读处理装置,其特征在于,包括: A file reading processing device, comprising:
    第一下载模块,用于下载服务端的电子书籍的文件简化包,其中所述文件简化包中包含用于替换文本内容的文本内容链接地址和用于替换图片的图片链接地址;a first downloading module, configured to download a file simplifying package of the electronic book of the server, wherein the file simplifying package includes a text content link address for replacing the text content and a picture link address for replacing the image;
    第二下载模块,用于根据所述第一下载模块的文件简化包中的文本内容链接地址从内容服务器下载文本内容,根据所述图片链接地址从图片服务器下载图片;a second downloading module, configured to download text content from a content server according to a text content link address in the file simplifying package of the first download module, and download a picture from the image server according to the image link address;
    显示模块,用于显示所述第二下载模块下载的文本内容和图片。And a display module, configured to display text content and a picture downloaded by the second download module.
  6. 根据权利要求5所述的装置,其特征在于,所述装置还包括:The device according to claim 5, wherein the device further comprises:
    判断模块,用于判断本地是否存储所述电子书籍的文件完整包;a judging module, configured to determine whether the file complete package of the e-book is stored locally;
    所述第一下载模块用于在所述判断模块判断出在本地未存储所述电子书籍的文件完整包的情况下,下载服务端的所述电子书籍的文件简化包;The first downloading module is configured to download a file simplified package of the electronic book of the server when the determining module determines that the file complete package of the electronic book is not stored locally;
    所述显示模块用于在所述判断模块判断出本地存储所述电子书籍的文件完整包的情况下,直接使用所述文件完整包进行章节解析和显示。The display module is configured to directly use the file complete package to perform chapter analysis and display in a case where the determining module determines that the file complete package of the electronic book is locally stored.
  7. 根据权利要求5或6所述的装置,其特征在于,所述第二下载模块包括:The device according to claim 5 or 6, wherein the second downloading module comprises:
    解析子模块,用于在所述文件简化包中包含免费章节和/或收费章节对应的用于替换文本内容的文本内容链接地址和用于替换图片的图片链接地址的情况下,解析出所述文件简化包中包含的免费章节或收费章节;a parsing sub-module for parsing the text content link address for replacing the text content and the image link address for replacing the picture corresponding to the free chapter and/or the charging chapter in the file simplifying package Free chapters or charge chapters included in the file simplification package;
    第一处理子模块,用于对于所述解析子模块解析出的文件简化包中包含的免费章节,若检测到本地未存储,则直接根据所述文件简化包中所述免费章节对应的文本内容链接地址从内容服务器下载文本内容,根据所述免费章节对应的图片链接地址从图片服务器下载图片;和/或,a first processing sub-module, configured to download a free chapter included in the file simplified package that is parsed by the parsing sub-module, and if it is detected that the local is not stored, directly simplify the text content corresponding to the free chapter according to the file The link address downloads the text content from the content server, and downloads the image from the image server according to the image link address corresponding to the free chapter; and/or,
    第二处理子模块,用于对于所述解析子模块解析出的所述文件简化包中包含的收费章节,若检测到已购买,则根据本地存储或动态申请获取的解密密钥,按照所述文件简化包中所述收费章节对应的文本内容链接地址从内容服务器下载加密的文本内容,按照所述收费章节对应的图片链接地址从图片服务器下载加密的图片;和/或,a second processing sub-module, configured to: for the charging chapter included in the file simplified package parsed by the parsing sub-module, if it is detected to be purchased, according to the decryption key acquired by the local storage or the dynamic application, according to the Downloading the encrypted text content from the content server according to the text content link address corresponding to the charging chapter in the file simplifying package, and downloading the encrypted image from the image server according to the image link address corresponding to the charging chapter; and/or,
    第三处理子模块,用于对于所述解析子模块解析出的所述文件简化包中包含的收费章节,若检测到未购买,则显示购买按钮,在检测到购买成 功后,再根据动态申请获取的解密密钥,按照所述文件简化包中所述收费章节对应的文本内容链接地址从内容服务器下载加密的文本内容,按照所述收费章节对应的图片链接地址从图片服务器下载加密的图片。a third processing submodule, configured to: for the charging chapter included in the file simplified package parsed by the parsing submodule, if the unpurchased is detected, the purchase button is displayed, and the purchase is detected After the work, according to the decryption key obtained by the dynamic application, the encrypted text content is downloaded from the content server according to the text content link address corresponding to the charging chapter in the simplified document package, according to the image link address corresponding to the charging chapter. The image server downloads the encrypted picture.
  8. 根据权利要求5-7中任一项所述的装置,其特征在于:Apparatus according to any one of claims 5-7, wherein:
    所述第二下载模块在从图片服务器下载图片时采用异步下载方式,所述文件简化包中还包含图片的大小信息;The second downloading module adopts an asynchronous downloading manner when downloading a picture from the image server, and the file simplified package further includes size information of the image;
    所述显示模块在所述图片未下载时,在页面中采用占位图为所述图片预留占位区域,所述占位区域根据所述文件简化包中包含图片的大小信息确定,在所述图片下载后,若所述图片为当前页面关联的图片,则刷新页面在所述占位区域显示所述图片。When the picture is not downloaded, the display module uses a placeholder map to reserve a placeholder area for the picture, where the place area is determined according to the size information of the picture included in the file simplified package. After the picture is downloaded, if the picture is a picture associated with the current page, the refresh page displays the picture in the placeholder area.
  9. 一种文件阅读处理装置,其特征在于,包括:A file reading processing device, comprising:
    生成模块,用于生成电子书籍的文件简化包,其中所述文件简化包中包含用于替换文本内容的文本内容链接地址和用于替换图片的图片链接地址;a generating module, configured to generate a file simplifying package of the electronic book, wherein the file simplifying package includes a text content link address for replacing the text content and a picture link address for replacing the image;
    发送模块,用于向客户端发送所述生成模块生成的文件简化包以使得所述客户端根据所述文件简化包中的文本内容链接地址从内容服务器下载文本内容,根据所述图片链接地址从图片服务器下载图片,显示所述下载的文本内容和图片。a sending module, configured to send, to the client, the file simplified package generated by the generating module, so that the client downloads the text content from the content server according to the text content link address in the file simplifying package, according to the image link address The picture server downloads a picture and displays the downloaded text content and picture.
  10. 根据权利要求9所述的装置,其特征在于:The device of claim 9 wherein:
    所述生成模块生成电子书籍的文件简化包时,根据设置的收费章节比例,生成免费章节和/或收费章节对应的用于替换文本内容的文本内容链接地址和用于替换图片的图片链接地址。When the generating module generates the file simplified package of the electronic book, the text content link address for replacing the text content and the image link address for replacing the picture corresponding to the free chapter and/or the charging chapter are generated according to the set fee chapter ratio.
  11. 根据权利要求9或10所述的装置,其特征在于,所述装置还包括:The device according to claim 9 or 10, wherein the device further comprises:
    密钥模块,用于根据客户端发起的请求,向客户端发送收费章节的解密密钥以使得所述客户端对于所述文件简化包中包含的收费章节,根据所述解密密钥并按照所述文件简化包中所述收费章节对应的文本内容链接地址从内容服务器下载加密的文本内容,按照所述收费章节对应的图片链接地址从图片服务器下载加密的图片。 a key module, configured to send, according to a request initiated by the client, a decryption key of the charging chapter to the client, so that the client simplifies the charging chapter included in the file, according to the decryption key and according to the The text content link address corresponding to the charging chapter in the file simplifying package downloads the encrypted text content from the content server, and downloads the encrypted image from the image server according to the image link address corresponding to the charging chapter.
  12. 一种文件阅读处理方法,其特征在于,包括:A file reading processing method, comprising:
    下载服务端的电子书籍的文件简化包,其中所述文件简化包中包含用于替换文本内容的文本内容链接地址和用于替换图片的图片链接地址;Downloading a file simplifying package of the e-book of the server, wherein the file simplifying package includes a text content link address for replacing the text content and a picture link address for replacing the picture;
    根据所述文件简化包中的文本内容链接地址从内容服务器下载文本内容,根据所述图片链接地址从图片服务器下载图片;Downloading text content from a content server according to the text content link address in the file simplifying package, and downloading a picture from the image server according to the image link address;
    显示所述下载的文本内容和图片。The downloaded text content and picture are displayed.
  13. 根据权利要求12所述的方法,其特征在于,所述下载服务端的电子书籍的文件简化包之前还包括:The method according to claim 12, wherein the downloading the file simplified package of the e-book of the server further comprises:
    判断本地是否存储所述电子书籍的文件完整包;Determining whether the file complete package of the electronic book is stored locally;
    在本地未存储所述电子书籍的文件完整包的情况下,下载服务端的所述电子书籍的文件简化包;In a case where the file complete package of the electronic book is not stored locally, the file simplified package of the electronic book of the server is downloaded;
    在本地存储所述电子书籍的文件完整包的情况下,使用所述文件完整包进行章节解析和显示。In the case where the file complete package of the electronic book is stored locally, the file complete package is used for chapter analysis and display.
  14. 根据权利要求12或13所述的方法,其特征在于,所述其中所述文件简化包中包含用于替换文本内容的文本内容链接地址和用于替换图片的图片链接地址,包括:The method according to claim 12 or 13, wherein the file simplifying package includes a text content link address for replacing the text content and a picture link address for replacing the picture, including:
    其中所述文件简化包中包含免费章节和/或收费章节对应的用于替换文本内容的文本内容链接地址和用于替换图片的图片链接地址。The file simplification package includes a text content link address corresponding to the free chapter and/or the charge chapter for replacing the text content and a picture link address for replacing the picture.
  15. 根据权利要求12-14中任一项所述的方法,其特征在于,所述根据所述文件简化包中的文本内容链接地址从内容服务器下载文本内容,根据所述图片链接地址从图片服务器下载图片,包括:The method according to any one of claims 12 to 14, wherein the text content is downloaded from a content server according to a text content link address in the file simplifying package, and the image content is downloaded from the image server according to the image link address. Pictures, including:
    解析出所述文件简化包中包含的免费章节;Parsing the free chapters included in the file simplification package;
    对于所述文件简化包中包含的免费章节,若检测到本地未存储,则直接根据所述文件简化包中所述免费章节对应的文本内容链接地址从内容服务器下载文本内容,根据所述免费章节对应的图片链接地址从图片服务器下载图片。For the free chapter included in the file simplification package, if it is detected that the local chapter is not stored, the text content is directly downloaded from the content server according to the text content link address corresponding to the free chapter in the file simplification package, according to the free chapter. The corresponding image link address downloads the image from the image server.
  16. 根据权利要求12-15中任一项所述的方法,其特征在于,所述根据所述文件简化包中的文本内容链接地址从内容服务器下载文本内容,根据所述图片链接地址从图片服务器下载图片,包括: The method according to any one of claims 12-15, wherein the text content is downloaded from a content server according to a text content link address in the file simplifying package, and the image content is downloaded from the image server according to the image link address. Pictures, including:
    解析出所述文件简化包中包含的收费章节;Parsing out the charging chapters included in the simplified package of the file;
    对于所述文件简化包中包含的收费章节,若检测到已购买,则根据本地存储或动态申请获取的解密密钥,按照所述文件简化包中所述收费章节对应的文本内容链接地址从内容服务器下载加密的文本内容,按照所述收费章节对应的图片链接地址从图片服务器下载加密的图片;或,For the charging chapter included in the file simplification package, if it is detected that the purchase has been made, according to the decryption key obtained by the local storage or the dynamic application, according to the text content link address corresponding to the charging chapter described in the file simplification package, the content is The server downloads the encrypted text content, and downloads the encrypted image from the image server according to the image link address corresponding to the charging chapter; or
    对于所述文件简化包中包含的收费章节,若检测到未购买,则显示购买按钮,在检测到购买成功后,再根据动态申请获取的解密密钥,按照所述文件简化包中所述收费章节对应的文本内容链接地址从内容服务器下载加密的文本内容,按照所述收费章节对应的图片链接地址从图片服务器下载加密的图片。For the charging chapter included in the simplified document package, if the purchase is not detected, the purchase button is displayed, and after detecting the successful purchase, the decryption key acquired according to the dynamic application is charged according to the simplified package in the file. The text content link address corresponding to the chapter downloads the encrypted text content from the content server, and downloads the encrypted image from the image server according to the image link address corresponding to the charging chapter.
  17. 根据权利要求15所述的方法,其特征在于,所述解析出所述文件简化包中包含的免费章节包括:The method according to claim 15, wherein the parsing out the free chapters included in the file simplifying package comprises:
    根据设置的免费或收费章节比例解析出所述文件简化包中包含的免费章节。The free chapters included in the file simplification package are parsed according to the set free or charged chapter proportions.
  18. 根据权利要求16所述的方法,其特征在于,所述解析出所述文件简化包中包含的收费章节包括:The method according to claim 16, wherein the parsing out the charging chapters included in the file simplified package comprises:
    根据设置的免费或收费章节比例解析出所述文件简化包中包含的收费章节。The charging chapter included in the simplified package of the file is parsed according to the set free or charged chapter proportion.
  19. 根据权利要求12-18中任一项所述的方法,其特征在于,所述根据所述图片链接地址从图片服务器下载图片,包括:The method according to any one of claims 12 to 18, wherein the downloading a picture from the picture server according to the picture link address comprises:
    在从图片服务器下载图片时采用异步下载方式,所述文件简化包中还包含图片的大小信息;其中,The asynchronous download mode is adopted when the image is downloaded from the image server, and the file simplifying package further includes the size information of the image;
    在所述图片未下载时,在页面中采用占位图为所述图片预留占位区域,所述占位区域根据所述文件简化包中包含图片的大小信息确定;When the picture is not downloaded, a placeholder is reserved in the page for the picture, and the place area is determined according to the size information of the picture included in the file simplified package;
    在所述图片下载后,若所述图片为当前页面关联的图片,则刷新页面在所述占位区域显示所述图片。After the picture is downloaded, if the picture is a picture associated with the current page, the refresh page displays the picture in the placeholder area.
  20. 一种文件阅读处理方法,其特征在于,包括:A file reading processing method, comprising:
    生成电子书籍的文件简化包,其中所述文件简化包中包含用于替换文本内容的文本内容链接地址和用于替换图片的图片链接地址; Generating a file simplification package of an electronic book, wherein the file simplification package includes a text content link address for replacing the text content and a picture link address for replacing the picture;
    向客户端发送所述文件简化包以使得所述客户端根据所述文件简化包中的文本内容链接地址从内容服务器下载文本内容,根据所述图片链接地址从图片服务器下载图片,显示所述下载的文本内容和图片。Sending the file simplification package to the client, so that the client downloads text content from the content server according to the text content link address in the file simplification package, downloads a picture from the picture server according to the picture link address, and displays the download Text content and images.
  21. 根据权利要求20所述的方法,其特征在于:The method of claim 20 wherein:
    所述生成电子书籍的文件简化包时,将用文本内容链接地址替换的文本内容存储到内容服务器,将用图片链接地址替换的图片存储到图片服务器。When the file simplified package of the electronic book is generated, the text content replaced with the text content link address is stored in the content server, and the image replaced with the image link address is stored in the image server.
  22. 根据权利要求20或21所述的方法,其特征在于:A method according to claim 20 or 21, wherein:
    所述生成电子书籍的文件简化包时,根据设置的收费章节比例,生成免费章节和/或收费章节对应的用于替换文本内容的文本内容链接地址和用于替换图片的图片链接地址。When the file simplified package of the electronic book is generated, a text content link address for replacing the text content and a picture link address for replacing the picture corresponding to the free chapter and/or the charging chapter are generated according to the set fee chapter proportion.
  23. 根据权利要求20-22中任一项所述的方法,其特征在于:A method according to any one of claims 20-22, wherein:
    所述生成电子书籍的文件简化包时,还生成被替换图片的大小信息以使得所述客户端在所述图片未下载时,在页面中根据所述图片的大小信息采用占位图为所述图片预留占位区域。When the file simplified package of the electronic book is generated, the size information of the replaced picture is further generated, so that when the picture is not downloaded, the client uses the place map according to the size information of the picture in the page. The picture reserves the footprint area.
  24. 根据权利要求20-23中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 20 to 23, wherein the method further comprises:
    根据客户端发起的请求,向客户端发送收费章节的解密密钥以使得所述客户端对于所述文件简化包中包含的收费章节,根据所述解密密钥并按照所述文件简化包中所述收费章节对应的文本内容链接地址从内容服务器下载加密的文本内容,按照所述收费章节对应的图片链接地址从图片服务器下载加密的图片。 Sending, according to a request initiated by the client, a decryption key of the charging chapter to the client, so that the client simplifies the charging chapter included in the file, according to the decryption key and according to the simplified package in the file The text content link address corresponding to the charging chapter downloads the encrypted text content from the content server, and downloads the encrypted image from the image server according to the image link address corresponding to the charging chapter.
PCT/CN2017/078739 2016-09-09 2017-03-30 File reading and processing system, device, apparatus and method WO2018045742A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610814477.2 2016-09-09
CN201610814477.2A CN106445899A (en) 2016-09-09 2016-09-09 File reading processing system, device, apparatus and method

Publications (1)

Publication Number Publication Date
WO2018045742A1 true WO2018045742A1 (en) 2018-03-15

Family

ID=58168467

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/078739 WO2018045742A1 (en) 2016-09-09 2017-03-30 File reading and processing system, device, apparatus and method

Country Status (2)

Country Link
CN (1) CN106445899A (en)
WO (1) WO2018045742A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106445899A (en) * 2016-09-09 2017-02-22 广州阿里巴巴文学信息技术有限公司 File reading processing system, device, apparatus and method
CN111046347A (en) * 2019-12-12 2020-04-21 北京思维造物信息科技股份有限公司 Method, device and equipment for processing page display request
CN112035022B (en) * 2020-07-28 2022-03-04 上海连尚网络科技有限公司 Reading page style generation method and device
CN113656549B (en) * 2021-08-18 2022-10-25 掌阅科技股份有限公司 Content searching method of electronic book, electronic device and computer storage medium
CN115759000B (en) * 2023-01-10 2023-05-12 深圳市英唐数码科技有限公司 Processing method and device of multi-format reader based on single engine

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080104113A1 (en) * 2006-10-26 2008-05-01 Microsoft Corporation Uniform resource locator scoring for targeted web crawling
CN102209116A (en) * 2011-05-31 2011-10-05 深圳创维-Rgb电子有限公司 Method and device for acquiring Internet protocol television program information, and television
CN103761333A (en) * 2014-02-14 2014-04-30 北京中文在线数字出版股份有限公司 Wireless txt reader and reading method thereof
CN106445899A (en) * 2016-09-09 2017-02-22 广州阿里巴巴文学信息技术有限公司 File reading processing system, device, apparatus and method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101799800B (en) * 2010-02-10 2012-02-15 深圳市易万卷文化产业有限公司 Method for coding electronic book, electronic newspaper and electronic magazine with hyperlink
CN102480708B (en) * 2010-11-26 2015-03-04 中国电信股份有限公司 System and method for reading test and charging of entire text downloading of electronic book
CN102137148A (en) * 2010-12-24 2011-07-27 华为技术有限公司 Method, device and system for downloading electronic book
CN105528355A (en) * 2014-09-29 2016-04-27 优视科技有限公司 Downloading processing method and apparatus
CN104809366A (en) * 2015-04-29 2015-07-29 小米科技有限责任公司 Reading method and device of electronic book

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080104113A1 (en) * 2006-10-26 2008-05-01 Microsoft Corporation Uniform resource locator scoring for targeted web crawling
CN102209116A (en) * 2011-05-31 2011-10-05 深圳创维-Rgb电子有限公司 Method and device for acquiring Internet protocol television program information, and television
CN103761333A (en) * 2014-02-14 2014-04-30 北京中文在线数字出版股份有限公司 Wireless txt reader and reading method thereof
CN106445899A (en) * 2016-09-09 2017-02-22 广州阿里巴巴文学信息技术有限公司 File reading processing system, device, apparatus and method

Also Published As

Publication number Publication date
CN106445899A (en) 2017-02-22

Similar Documents

Publication Publication Date Title
WO2018045742A1 (en) File reading and processing system, device, apparatus and method
US9817954B2 (en) Multi-mode protected content wrapper
US10498839B2 (en) Providing supplemental content in relation to embedded media
US10496696B2 (en) Search method and apparatus
JP2024504092A (en) Mirroring methods, devices, electronic equipment and storage media
US20150143481A1 (en) Application security verification method, application server, application client and system
CN111258602A (en) Information updating method and device
CN111625308B (en) Information display method and device and electronic equipment
CN113656713B (en) Network resource processing method, device and system
JP2023538825A (en) Methods, devices, equipment and storage media for picture to video conversion
CN106130951B (en) Application store service management method and device
CN110719499B (en) Video downloading method, system, medium and electronic device
WO2023098576A1 (en) Image processing method and apparatus, device, and medium
CN109218339B (en) Request processing method and device
US10965781B2 (en) Method and server for displaying access content
CN106156235B (en) Picture downloading method and system based on Android platform
CN109889737B (en) Method and apparatus for generating video
CN110557414B (en) Method, device and equipment for downloading service scene
CN104102504B (en) A kind of client skin picture method for drafting and drawing apparatus
US20150248347A1 (en) Content providing apparatus and method, and computer program product
WO2023246316A1 (en) Information processing method and apparatus, storage medium and program product
CN115209215B (en) Video processing method, device and equipment
CN116055756A (en) Data processing method, device and server of live broadcasting room
CN117131523A (en) Service file sending method and device and electronic equipment
CN114202754A (en) Page display method, image processing method, device, equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17847917

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17847917

Country of ref document: EP

Kind code of ref document: A1