CN109062880B - Electronic book file production method, electronic device, server and storage medium - Google Patents

Electronic book file production method, electronic device, server and storage medium Download PDF

Info

Publication number
CN109062880B
CN109062880B CN201810730145.5A CN201810730145A CN109062880B CN 109062880 B CN109062880 B CN 109062880B CN 201810730145 A CN201810730145 A CN 201810730145A CN 109062880 B CN109062880 B CN 109062880B
Authority
CN
China
Prior art keywords
electronic book
file
resource data
book file
editing
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201810730145.5A
Other languages
Chinese (zh)
Other versions
CN109062880A (en
Inventor
张恒
于刚
李铭瀚
方建华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhangyue Technology Co Ltd
Original Assignee
Zhangyue Technology Co Ltd
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 Zhangyue Technology Co Ltd filed Critical Zhangyue Technology Co Ltd
Priority to CN201810730145.5A priority Critical patent/CN109062880B/en
Publication of CN109062880A publication Critical patent/CN109062880A/en
Application granted granted Critical
Publication of CN109062880B publication Critical patent/CN109062880B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content

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 Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The invention discloses a method for making an electronic book file, electronic equipment, a server and a storage medium, wherein the method comprises the following steps: acquiring an original file of an electronic book, and performing file conversion processing on the original file of the electronic book to obtain a first electronic book file; the first electronic book file contains text data and resource data; performing file proofreading/editing processing on text data and resource data in a first electronic book file, deleting the resource data in the first electronic book file, and adding resource data link information and resource data editing information at corresponding positions of the resource data to obtain a second electronic book file; and returning to the second electronic book file. The invention can reduce the bandwidth resources occupied by sending the electronic book files in the process of manufacturing the electronic book files, and improve the problems of speed, efficiency and the like caused by more occupied bandwidth during centralized uploading/downloading.

Description

Electronic book file production method, electronic device, server and storage medium
Technical Field
The invention relates to the field of software, in particular to a method for making an electronic book file, electronic equipment, a server and a storage medium.
Background
When an electronic book file is manufactured, the original electronic book file needs to be subjected to typesetting, proofreading and other processing, and characters, pictures and the like in the original electronic book file are edited, for example, the typesetting style in the original electronic book file is modified, so that the electronic book file of the final version is obtained. In the prior art, when processing an original file of an electronic book, the original file of the electronic book is downloaded from a server, the original file of the electronic book is processed locally to obtain a processed file of the electronic book, and the processed file of the electronic book is uploaded to the server so that a user can obtain the file of the electronic book from the server to read the file of the electronic book. However, this process causes the server and the local processor to occupy a large bandwidth flow during uploading and downloading, which also affects the efficiency during downloading and uploading.
Disclosure of Invention
In view of the above problems, the present invention has been made to provide a method of producing an electronic book file, an electronic device, a server, a storage medium, which overcome the above problems or at least partially solve the above problems.
According to an aspect of the present invention, there is provided a method of making an electronic book file, including:
acquiring an original file of an electronic book, and performing file conversion processing on the original file of the electronic book to obtain a first electronic book file; the first electronic book file contains text data and resource data;
performing file proofreading/editing processing on text data and resource data in a first electronic book file, deleting the resource data in the first electronic book file, and adding resource data link information and resource data editing information at corresponding positions of the resource data to obtain a second electronic book file;
and returning to the second electronic book file.
According to another aspect of the present invention, there is provided a method of producing an electronic book file, including:
receiving a second electronic book file, wherein the second electronic book file comprises text data, resource data link information and resource data editing information;
searching an electronic book original file corresponding to the second electronic book file, and acquiring resource data from the electronic book original file according to the resource data link information;
editing the resource data according to the resource data editing information;
and inserting the edited resource data into the positions of the resource data link information and the resource data editing information in the second electronic book file.
According to another aspect of the present invention, there is provided an electronic apparatus including: the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the following operations:
acquiring an original file of an electronic book, and performing file conversion processing on the original file of the electronic book to obtain a first electronic book file; the first electronic book file contains text data and resource data;
performing file proofreading/editing processing on text data and resource data in a first electronic book file, deleting the resource data in the first electronic book file, and adding resource data link information and resource data editing information at corresponding positions of the resource data to obtain a second electronic book file;
and returning to the second electronic book file.
According to yet another aspect of the present invention, there is provided a computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to:
acquiring an original file of an electronic book, and performing file conversion processing on the original file of the electronic book to obtain a first electronic book file; the first electronic book file contains text data and resource data;
performing file proofreading/editing processing on text data and resource data in a first electronic book file, deleting the resource data in the first electronic book file, and adding resource data link information and resource data editing information at corresponding positions of the resource data to obtain a second electronic book file;
and returning to the second electronic book file.
According to still another aspect of the present invention, there is provided a server including: the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the following operations:
receiving a second electronic book file, wherein the second electronic book file comprises text data, resource data link information and resource data editing information;
searching an electronic book original file corresponding to the second electronic book file, and acquiring resource data from the electronic book original file according to the resource data link information;
editing the resource data according to the resource data editing information;
and inserting the edited resource data into the positions of the resource data link information and the resource data editing information in the second electronic book file.
According to yet another aspect of the present invention, there is provided a computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to:
receiving a second electronic book file, wherein the second electronic book file comprises text data, resource data link information and resource data editing information;
searching an electronic book original file corresponding to the second electronic book file, and acquiring resource data from the electronic book original file according to the resource data link information;
editing the resource data according to the resource data editing information;
and inserting the edited resource data into the positions of the resource data link information and the resource data editing information in the second electronic book file.
According to the method for manufacturing the electronic book file, the electronic equipment, the server and the storage medium, bandwidth resources occupied by sending the electronic book file in the manufacturing process of the electronic book file can be reduced, and the problems of speed, efficiency and the like caused by more occupied bandwidth during centralized uploading/downloading are solved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart illustrating a method for producing an electronic book file according to a first embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for producing electronic book files according to a second embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for producing electronic book files according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to a fifth embodiment of the present invention;
fig. 5 shows a schematic structural diagram of a server according to a seventh embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Example one
Fig. 1 shows a flowchart of a method for making an electronic book file according to a first embodiment of the present invention, and as shown in fig. 1, the method for making an electronic book file specifically includes the following steps:
step S101, obtaining an electronic book original file, and performing file conversion processing on the electronic book original file to obtain a first electronic book file.
The e-book original file is typically a pdf file. For a user, the reading experience of the pdf-file-type electronic book original file on a mobile device, such as a mobile phone, is poor, and the electronic book original file is limited in the aspects of page turning, searching, directory viewing, content label selection, and the like, so that the electronic book original file needs to be subjected to file conversion processing to obtain a first electronic book file. The first e-book file is an epub streaming file. The method is very convenient in the aspects of setting fonts, viewing directories, searching, editing electronic book files and the like, and provides good reading experience for users. When the electronic book original file is subjected to file conversion processing, any type of conversion mode may be adopted, for example, the file conversion processing is performed on a plurality of electronic book original files such as a pdf file obtained by scanning and a pdf file directly generated by a word file by using OCR recognition, word editing, epub tool conversion, and the like, so as to obtain a first electronic book file, and a specific mode adopted for the file conversion processing is not limited. The obtained first electronic book file contains text data and resource data, wherein the text data is characters in the first electronic book file, and the resource data comprises various types of data such as pictures, audio, video and the like.
In this step, the client may obtain the original file of the electronic book from the server or another client at an obtaining end of the original file of the electronic book, such as a client, and perform file conversion processing on the obtained original file of the electronic book at the client to obtain a first file of the electronic book. In this step, a sending end of the original electronic book file, such as a server end or another client different from the client, may also be executed, where the server end or the other client performs file conversion processing on the original electronic book file, and after the file conversion processing, the client may directly obtain the first electronic book file after the conversion processing. The specific implementation is set according to the implementation case, and is not limited here.
Step S102, file proofreading/editing processing is carried out on the text data and the resource data in the first electronic book file, and after the resource data in the first electronic book file is deleted, resource data link information and resource data editing information are added at the corresponding position of the resource data to obtain a second electronic book file.
In the prior art, when performing file proofreading/editing processing on text data and resource data in a first electronic book file, various data to be proofread/edited in the first electronic book file are directly modified, and the electronic book file obtained after processing is directly returned, so that bandwidth resources occupied during returning are more, and problems of blocking, low transmission efficiency and the like may be caused.
For the above problem, in the present embodiment, when performing file proofreading/editing processing on the text data and the resource data in the first electronic book file, the resource data is generally large in consideration of the difference in size between the text data and the resource data. Therefore, different processing results are required to be obtained according to different data types of the text data and the resource data in the first electronic book file. Specifically, the text data is directly subjected to file proofreading/editing processing to obtain the processed text data in the second electronic book file. For the resource data, it is considered that the resource data can be directly extracted from the original electronic book file, and therefore, the processed second electronic book file may not reserve the resource data (delete the resource data directly), but record processing information such as resource data link information and resource data editing information generated by processing the resource data at the corresponding position of the resource data. The obtained second electronic book file does not need to occupy a large amount of data transmitted by bandwidth resources, and the bandwidth resources occupied by transmitting the second electronic book file can be greatly reduced.
It should be noted that the second electronic book file obtained here is not the electronic book file that can be finally read by the user, and subsequently, further editing processing needs to be performed according to the second electronic book file to obtain the electronic book file that can be finally read by the user. The second e-book file is an epub file, but is slightly different from the standard epub file, and includes resource data link information and resource data edit information other than the standard epub file in addition to the text data. And further editing the second electronic book file to obtain the electronic book file which can be finally read by the user as a standard epub file.
And step S103, returning to the second electronic book file.
And directly returning the obtained second electronic book file. Because the resource data link information, the resource data editing information and the like are recorded in the second electronic book file, the second electronic book file can be further subjected to editing, replacing, adding and other operations according to the resource data link information and the resource data editing information recorded in the second electronic book file, and the electronic book file which can be finally read by a user is obtained.
According to the method for manufacturing the electronic book file, the original electronic book file is obtained, and the original electronic book file is subjected to file conversion processing to obtain a first electronic book file; the first electronic book file contains text data and resource data; performing file proofreading/editing processing on text data and resource data in a first electronic book file, deleting the resource data in the first electronic book file, and adding resource data link information and resource data editing information at corresponding positions of the resource data to obtain a second electronic book file; and uploading the second electronic book file. The invention can reduce the bandwidth resources occupied by sending the electronic book files in the process of manufacturing the electronic book files, and improve the problems of speed, efficiency and the like caused by more occupied bandwidth during centralized uploading/downloading.
Example two
Fig. 2 is a flowchart illustrating a method for making an electronic book file according to a second embodiment of the present invention, and as shown in fig. 2, the method for making an electronic book file includes the following steps:
step S201, obtaining an original file of an electronic book, and performing file conversion processing on the original file of the electronic book to obtain a first file of the electronic book.
And carrying out file conversion processing on the obtained electronic book original file to obtain a first electronic book file which contains the same data as the electronic book original file but has a different file type.
Step S202, file proofreading/editing processing is carried out on the text data in the first electronic book file, and processed text data in the second electronic book file is obtained.
Regarding the text data in the first electronic book file, the data is considered to be small, and the text data in the first electronic book file can be directly subjected to editing processing such as style editing, character proofreading, blank character adding/deleting and the like, and the processed text data is the text data in the second electronic book file. When the second electronic book is returned, the processed text data may be directly returned.
Step S203, extracting relevant information of the picture, the audio and/or the video in the first electronic book file, and after deleting the picture, the audio and/or the video, adding resource data link information of the picture, the audio and/or the video at the corresponding position of the picture, the audio and/or the video in the second electronic book file.
For resource data in the first electronic book file, such as picture, audio and/or video data, it is necessary to extract picture, audio and/or video related information from the first electronic book file. During extraction, if the first electronic book file is obtained by converting a pdf file directly generated from a word file, since picture, audio and/or video data in the pdf file can be directly extracted by using a tool, after the first electronic book file is converted into the first electronic book file, the first electronic book file records the position, the name, the number and other relevant information of specific picture, audio and/or video and the like in the first electronic book file, and the picture, audio and/or video relevant information can be directly extracted from the first electronic book file; when the first electronic book file is obtained by converting the scanned pdf file, the picture needs to be obtained by screenshot processing and the like during extraction. Specifically, local screenshot processing is performed on data such as specified pictures and tables in the first electronic book file. And performing local screenshot processing according to the position of the data such as the designated picture, the designated table and the like to obtain a processed screenshot picture, namely the extracted screenshot picture. In order to facilitate further editing, replacing, adding and other operations on the second electronic book file after the second electronic book file is returned, editing information corresponding to local screenshot processing needs to be added to the screenshot picture position (corresponding position of data such as a specified picture and a table), for example, coordinate data during the local screenshot processing, the number of pages in the first electronic book file and the like, and data corresponding to the screenshot picture can be conveniently deleted subsequently. If the picture in the middle of the 5 th page in the first electronic book file is subjected to local screenshot processing, the picture in the middle of the page is obtained through screenshot. And adding specific coordinate data of four corners when the picture is intercepted, page number information of a 5 th page and the like at the picture position.
After the related information of the pictures, the audio and/or the video is extracted, deleting each picture, audio and/or video from the first electronic book file, and adding resource data link information of the pictures, the audio and/or the video at the corresponding position of the pictures, the audio and/or the video. The resource data link information includes resource data information such as names and numbers of pictures, audios and/or videos, and the resource data information is extracted from the first electronic book file. The resource data link information also records a specific reference position in the second electronic book file, and the reference of the picture, the audio and/or the video at the reference position is realized through the resource data link information. The obtained second electronic book file does not contain specific pictures, audio and/or video, so that the size of the second electronic book file is greatly reduced.
And step S204, extracting the picture in the first electronic book file, performing picture editing processing on the picture, and adding editing information corresponding to the picture editing processing at the corresponding position of the picture in the second electronic book file after deleting the picture.
After the pictures (the directly extracted pictures and the screenshot pictures obtained after the local screenshot processing) in the first electronic book file are extracted, picture editing processing can be performed on the pictures. Such as removing the white edge of the picture, performing matting processing on the picture, cutting off the left X pixels of the picture, adjusting the brightness of the picture, adjusting the tone, cutting and other picture editing processing. When the picture is edited, the instructions used for the picture editing are recorded according to the calling sequence during the picture editing, so as to obtain a history instruction set for the picture editing. Editing information corresponding to the picture editing processing needs to be added at the corresponding position of the picture in the obtained second electronic book file, namely, the historical instruction set is recorded at the corresponding position of the picture, so that the picture editing processing on the picture can be clearly known, and the finally processed picture can be obtained according to the historical instruction set. And the finally processed picture is not required to be contained in the second electronic book file, so that the size of the second electronic book file is reduced.
Optionally, after extracting the audio and video related information in the first electronic book file, the audio and video may also be edited, the cutting duration, the cutting of part of the content, the adjustment of the timbre, the adjustment of the video display content, and the like, and the editing information and the like corresponding to the editing process is added to the corresponding position of the audio and video in the second electronic book file. The audio and video editing process may be any existing audio and video editing process, and is not limited herein.
The second electronic book file can be obtained by executing the steps S202 to S204, all the steps may be executed, or only one or a few steps may be executed, and the specific execution sequence is not limited.
And step S205, returning to the second electronic book file.
And returning the second electronic book file, and further performing editing processing, replacement, addition and other operations on the second electronic book file according to the resource data link information and the resource data editing information recorded in the second electronic book file to obtain the electronic book file which can be finally read by the user.
According to the method for manufacturing the electronic book file, the text data and the resource data are respectively processed differently according to different sizes of the text data and the resource data. And directly recording the text data after the file proofreading/editing processing in a second electronic book file, returning, deleting the resource data, wherein the second electronic book file does not contain the resource data, and contains resource data link information and resource data editing information, so that the size of the second electronic book file is reduced, the bandwidth resource occupied by the transmission of the second electronic book file is saved, and the transmission efficiency of the second electronic book file is greatly improved.
EXAMPLE III
Fig. 3 is a flowchart illustrating a method for making an electronic book file according to a third embodiment of the present invention, and as shown in fig. 3, the method for making an electronic book file specifically includes the following steps:
step S301, receiving a second electronic book file.
The steps in this embodiment may be executed at the server side, or may be executed at another client side different from the client side executed in the first and second embodiments, which is specifically set according to the implementation situation, and is not limited herein. For convenience of description, the embodiment is described by taking the implementation on the server side as an example.
The second e-book file received and returned is an epub file, but is slightly different from the standard epub file, and besides text data, resource data link information and resource data editing information except the standard epub file are also included. The text data is the text data after the file proofreading/editing process has been performed, and in this embodiment, the text data does not need to be processed. The resource data link information and the resource data edit information are not contents in the standard epub file, and need to be further processed.
Step S302, searching an electronic book original file corresponding to the second electronic book file, and acquiring resource data from the electronic book original file according to the resource data link information.
When searching for the e-book original file corresponding to the second e-book file, the e-book original file with the consistent identification information may be searched for from the existing e-book original files of the server side according to the identification information of the e-book original file carried by the second e-book file, so as to determine the corresponding e-book original file. The identification information may be unique information for identifying an original file of the electronic book, such as a name, an ID, and a number of the electronic book.
According to the specific page number, picture/audio/video name and other information contained in the resource data link information, for example, the resource data information such as the 4 th page picture number 2, the specific corresponding resource data information can be determined. The resource data information contained in the resource data link information is from the first electronic book file, and the first electronic book file is obtained by converting the electronic book original file, so that the resource data information contained in the resource data link information corresponds to the resource data contained in the electronic book original file one to one. And according to the determined resource data information, corresponding resource data can be acquired from the original file of the electronic book. Such as extracting the picture of picture number 2 from page 4 of the original file of the electronic book. When extracting resource data from the e-book original file, pdf tools can be used for extraction. The extraction method of the resource data such as audio, video, etc. is the same as the picture, and is not described herein again.
Step S303, edit the resource data according to the resource data edit information.
According to the picture editing processing such as cutting, toning and cutting X pixels contained in the resource data editing information; various editing information such as audio and video is edited, and specific resource data is edited based on the editing information. If the resource data editing information is to perform white edge removing processing on the picture with the picture number 2 of the 4 th page, performing white edge removing processing on the picture with the picture number 2 of the 4 th page extracted from the original file of the electronic book; the resource data editing information is that the middle picture of page 5 is subjected to local screenshot processing; performing local screenshot processing on the 5 th page middle picture of the original file of the electronic book according to specific coordinate data recorded in the local screenshot processing; the resource data editing information comprises the steps of intercepting the 4 th page video 1 for 1-5 minutes, and intercepting the 4 th page video 1 extracted from the original file of the electronic book for 1-5 minutes.
And step S304, inserting the edited resource data into the positions of the resource data link information and the resource data editing information in the second electronic book file.
After the edited resource data are obtained, the edited resource data are inserted into a second electronic book file according to the positions of the resource data link information and the resource data editing information, and the resource data link information and the resource data editing information are deleted, so that a final electronic book file which can be read by a user is obtained. And if the edited picture is inserted into the position of the resource data link information, deleting the resource data link information to obtain the standard epub file containing the picture.
According to the method for manufacturing the electronic book file, the received second electronic book file contains the text data, the resource data link information and the resource data editing information, but does not contain specific resource data, so that the size of the second electronic book file is greatly reduced, the bandwidth resource occupied by the transmission of the second electronic book file is saved, and the transmission efficiency of the second electronic book file is improved. According to the resource data link information and the resource data editing information contained in the second electronic book file, further editing processing of the second electronic book file can be conveniently completed, and a final electronic book file which can be read by a user can be obtained.
Example four
The fourth embodiment of the present application provides a non-volatile computer storage medium, where the computer storage medium stores at least one executable instruction, and the computer executable instruction may execute the method for making an electronic book file in any of the above method embodiments.
The executable instructions may be specifically configured to cause the processor to:
acquiring an original file of an electronic book, and performing file conversion processing on the original file of the electronic book to obtain a first electronic book file; the first electronic book file contains text data and resource data; performing file proofreading/editing processing on text data and resource data in a first electronic book file, deleting the resource data in the first electronic book file, and adding resource data link information and resource data editing information at corresponding positions of the resource data to obtain a second electronic book file; and returning to the second electronic book file.
In an alternative embodiment, the resource data includes at least one or more of: pictures, audio and/or video; the executable instructions further cause the processor to: performing file proofreading/editing processing on the text data in the first electronic book file to obtain processed text data in a second electronic book file; and/or extracting relevant information of pictures, audio and/or videos in the first electronic book file, and after deleting the pictures, the audio and/or the videos, adding resource data link information of the pictures, the audio and/or the videos at corresponding positions of the pictures, the audio and/or the videos in the second electronic book file; and/or extracting the picture in the first electronic book file, performing picture editing processing on the picture, and adding editing information corresponding to the picture editing processing at the corresponding position of the picture in the second electronic book file after deleting the picture.
In an alternative embodiment, the executable instructions further cause the processor to: and carrying out local screenshot processing on the appointed pictures and/or tables in the first electronic book file, and adding editing information corresponding to the local screenshot processing at the corresponding positions of the pictures and/or tables.
In an alternative embodiment, the e-book original file is a pdf file; the first electronic book file and the second electronic book file are epub files.
EXAMPLE five
Fig. 4 is a schematic structural diagram of an electronic device according to a fifth embodiment of the present invention, and the specific embodiment of the present invention does not limit the specific implementation of the electronic device.
As shown in fig. 4, the electronic device may include: a processor (processor)402, a Communications Interface 404, a memory 406, and a Communications bus 408.
Wherein:
the processor 402, communication interface 404, and memory 406 communicate with each other via a communication bus 408.
A communication interface 404 for communicating with network elements of other devices, such as clients or other servers.
The processor 402 is configured to execute the program 410, and may specifically execute relevant steps in the above embodiment of the method for manufacturing an electronic book file.
In particular, program 410 may include program code comprising computer operating instructions.
The processor 402 may be a central processing unit CPU, or an application specific Integrated circuit asic, or one or more Integrated circuits configured to implement an embodiment of the present invention. The server comprises one or more processors, which can be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
And a memory 406 for storing a program 410. Memory 406 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 410 may specifically be configured to cause the processor 402 to perform the following operations:
in an alternative embodiment, the program 410 is configured to enable the processor 402 to obtain an original electronic book file, perform file conversion processing on the original electronic book file, and obtain a first electronic book file; the first electronic book file contains text data and resource data; performing file proofreading/editing processing on text data and resource data in a first electronic book file, deleting the resource data in the first electronic book file, and adding resource data link information and resource data editing information at corresponding positions of the resource data to obtain a second electronic book file; and returning to the second electronic book file.
In an alternative embodiment, the resource data includes at least one or more of: pictures, audio and/or video; the program 410 is configured to enable the processor 402 to perform file proofreading/editing processing on text data in a first electronic book file, so as to obtain processed text data in a second electronic book file; and/or extracting relevant information of pictures, audio and/or videos in the first electronic book file, and after deleting the pictures, the audio and/or the videos, adding resource data link information of the pictures, the audio and/or the videos at corresponding positions of the pictures, the audio and/or the videos in the second electronic book file; and/or extracting the picture in the first electronic book file, performing picture editing processing on the picture, and adding editing information corresponding to the picture editing processing at the corresponding position of the picture in the second electronic book file after deleting the picture.
In an alternative embodiment, the program 410 is configured to enable the processor 402 to perform a partial screenshot process on a specified picture and/or form in the first electronic book file, and add editing information corresponding to the partial screenshot process to a corresponding position of the picture and/or form.
In an alternative embodiment, the e-book original file is a pdf file; the first electronic book file and the second electronic book file are epub files.
For specific implementation of each step in the program 410, reference may be made to the corresponding description in the corresponding step in the above example for making an electronic book file, which is not described herein again. It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described devices and modules may refer to the corresponding process descriptions in the foregoing method embodiments, and are not described herein again.
According to the scheme provided by the embodiment, an electronic book original file is obtained, and the electronic book original file is subjected to file conversion processing to obtain a first electronic book file; the first electronic book file contains text data and resource data; performing file proofreading/editing processing on text data and resource data in a first electronic book file, deleting the resource data in the first electronic book file, and adding resource data link information and resource data editing information at corresponding positions of the resource data to obtain a second electronic book file; and uploading the second electronic book file. The invention can reduce the bandwidth resources occupied by sending the electronic book files in the process of manufacturing the electronic book files, and improve the problems of speed, efficiency and the like caused by more occupied bandwidth during centralized uploading/downloading.
EXAMPLE six
An embodiment of the present application provides a nonvolatile computer storage medium, where the computer storage medium stores at least one executable instruction, and the computer executable instruction may execute the method for making an electronic book file in any method embodiment described above.
The executable instructions may be specifically configured to cause the processor to:
receiving a second electronic book file, wherein the second electronic book file comprises text data, resource data link information and resource data editing information; searching an electronic book original file corresponding to the second electronic book file, and acquiring resource data from the electronic book original file according to the resource data link information; editing the resource data according to the resource data editing information; and inserting the edited resource data into the positions of the resource data link information and the resource data editing information in the second electronic book file.
In an alternative embodiment, the executable instructions further cause the processor to: and determining the corresponding electronic book original file according to the identification information of the electronic book original file carried by the second electronic book file.
In an alternative embodiment, the resource data includes at least one or more of: pictures, audio and/or video; the executable instructions further cause the processor to: determining resource data information according to the resource data link information; and acquiring corresponding resource data from the original file of the electronic book according to the determined resource data information.
In an alternative embodiment, the e-book original file is a pdf file; the second e-book file is an epub file.
EXAMPLE seven
Fig. 5 is a schematic structural diagram of a server according to a seventh embodiment of the present invention, and the specific embodiment of the present invention does not limit the specific implementation of the server.
As shown in fig. 5, the server may include: a processor (processor)502, a Communications Interface 504, a memory 506, and a communication bus 508.
Wherein:
the processor 502, communication interface 504, and memory 506 communicate with one another via a communication bus 508.
A communication interface 504 for communicating with network elements of other devices, such as clients or other servers.
The processor 502 is configured to execute the program 510, and may specifically execute relevant steps in the above-described method for manufacturing electronic book files.
In particular, program 510 may include program code that includes computer operating instructions.
The processor 502 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement an embodiment of the invention. The server comprises one or more processors, which can be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
And a memory 506 for storing a program 510. The memory 506 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 510 may specifically be used to cause the processor 502 to perform the following operations:
in an alternative embodiment, program 510 is configured to cause processor 502 to receive a second electronic book file containing text data, resource data link information, and resource data edit information; searching an electronic book original file corresponding to the second electronic book file, and acquiring resource data from the electronic book original file according to the resource data link information; editing the resource data according to the resource data editing information; and inserting the edited resource data into the positions of the resource data link information and the resource data editing information in the second electronic book file.
In an alternative embodiment, the program 510 is configured to enable the processor 502 to determine the corresponding electronic book original file according to the identification information of the electronic book original file carried by the second electronic book file.
In an alternative embodiment, the resource data includes at least one or more of: pictures, audio and/or video; program 510 is for causing processor 502 to determine resource data information from the resource data link information; and acquiring corresponding resource data from the original file of the electronic book according to the determined resource data information.
In an alternative embodiment, the e-book original file is a pdf file; the second e-book file is an epub file.
For specific implementation of each step in the program 510, reference may be made to the corresponding description in the corresponding step in the above-described embodiment for making an electronic book file, which is not described herein again. It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described devices and modules may refer to the corresponding process descriptions in the foregoing method embodiments, and are not described herein again.
Through the scheme provided by the embodiment, the received second electronic book file contains text data, resource data link information and resource data editing information, but does not contain specific resource data, so that the size of the second electronic book file is greatly reduced, and bandwidth resources occupied by transmission of the second electronic book file are saved.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the claims, any of the claimed embodiments may be used in any combination.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.

Claims (15)

1. A method of making an electronic book file, comprising:
obtaining an electronic book original file in a PDF format from a server, and performing file conversion processing on the electronic book original file to obtain a first electronic book file in an epub format; the first electronic book file contains text data and resource data;
performing file proofreading and/or editing processing on the text data and the resource data in the first electronic book file, deleting the resource data in the first electronic book file, and adding resource data link information and resource data editing information at corresponding positions of the resource data to obtain a second electronic book file in an epub format;
returning the second electronic book file to a server so that the server searches for the electronic book original file corresponding to the second electronic book file, acquires resource data from the electronic book original file according to the resource data link information, edits the resource data according to the resource data editing information, and inserts the edited resource data into the positions of the resource data link information and the resource data editing information in the second electronic book file;
performing file proofreading and/or editing processing on text data and resource data in the first electronic book file, including extracting pictures in the first electronic book file;
the extracting the picture in the first electronic book file comprises:
and carrying out local screenshot processing on the appointed pictures and/or tables in the first electronic book file, and adding editing information corresponding to the local screenshot processing at the corresponding positions of the pictures and/or tables.
2. The method of claim 1, wherein the performing file proofreading and/or editing processing on the text data and the resource data in the first e-book file, and after deleting the resource data in the first e-book file, adding resource data link information and resource data editing information at a corresponding position of the resource data to obtain a second e-book file in an epub format further comprises:
performing file proofreading and/or editing processing on the text data in the first electronic book file to obtain processed text data in a second electronic book file;
and carrying out picture editing processing on the picture, and adding editing information corresponding to the picture editing processing at the corresponding position of the picture in the second electronic book file after deleting the picture.
3. A method of making an electronic book file, comprising:
receiving a second electronic book file sent by a client, wherein the second electronic book file is an epub format file and contains text data, resource data link information and resource data editing information, the resource data editing information comprises editing information generated by the client through editing operation aiming at a screenshot picture and/or a table, the screenshot picture and/or the table is picture content obtained by the client aiming at screenshot of a picture and/or a table in a first electronic book file in an epub format, and the first electronic book file is an epub format file obtained by the client through file conversion processing on an electronic book original file in a PDF format;
searching an electronic book original file in a PDF format corresponding to the second electronic book file, and acquiring resource data from the electronic book original file according to the resource data link information;
editing the resource data according to the resource data editing information;
and inserting the edited resource data into the positions of the resource data link information and the resource data editing information in the second electronic book file.
4. The method of claim 3, wherein the finding the PDF formatted e-book raw file corresponding to the second e-book file further comprises:
and determining the corresponding electronic book original file according to the identification information of the electronic book original file carried by the second electronic book file.
5. The method of claim 3, wherein the obtaining resource data from the e-book raw file according to the resource data link information further comprises:
determining resource data information according to the resource data link information;
and acquiring corresponding resource data from the electronic book original file according to the determined resource data information.
6. An electronic device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to:
obtaining an electronic book original file in a PDF format from a server, and performing file conversion processing on the electronic book original file to obtain a first electronic book file in an epub format; the first electronic book file contains text data and resource data;
performing file proofreading and/or editing processing on the text data and the resource data in the first electronic book file, deleting the resource data in the first electronic book file, and adding resource data link information and resource data editing information at corresponding positions of the resource data to obtain a second electronic book file in an epub format;
returning the second electronic book file to a server so that the server searches for the electronic book original file corresponding to the second electronic book file, acquires resource data from the electronic book original file according to the resource data link information, edits the resource data according to the resource data editing information, and inserts the edited resource data into the positions of the resource data link information and the resource data editing information in the second electronic book file;
performing file proofreading and/or editing processing on text data and resource data in the first electronic book file, including extracting pictures in the first electronic book file;
the extracting the picture in the first electronic book file comprises:
and carrying out local screenshot processing on the appointed pictures and/or tables in the first electronic book file, and adding editing information corresponding to the local screenshot processing at the corresponding positions of the pictures and/or tables.
7. The electronic device of claim 6, the executable instructions further cause the processor to:
performing file proofreading and/or editing processing on the text data in the first electronic book file to obtain processed text data in a second electronic book file;
and carrying out picture editing processing on the picture, and adding editing information corresponding to the picture editing processing at the corresponding position of the picture in the second electronic book file after deleting the picture.
8. A computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to:
obtaining an electronic book original file in a PDF format from a server, and performing file conversion processing on the electronic book original file to obtain a first electronic book file in an epub format; the first electronic book file contains text data and resource data;
performing file proofreading and/or editing processing on the text data and the resource data in the first electronic book file, deleting the resource data in the first electronic book file, and adding resource data link information and resource data editing information at corresponding positions of the resource data to obtain a second electronic book file in an epub format;
returning the second electronic book file to a server so that the server searches for the electronic book original file corresponding to the second electronic book file, acquires resource data from the electronic book original file according to the resource data link information, edits the resource data according to the resource data editing information, and inserts the edited resource data into the positions of the resource data link information and the resource data editing information in the second electronic book file;
performing file proofreading and/or editing processing on text data and resource data in the first electronic book file, including extracting pictures in the first electronic book file;
the extracting the picture in the first electronic book file comprises:
and carrying out local screenshot processing on the appointed pictures and/or tables in the first electronic book file, and adding editing information corresponding to the local screenshot processing at the corresponding positions of the pictures and/or tables.
9. The computer storage medium of claim 8, the executable instructions further causing a processor to:
performing file proofreading and/or editing processing on the text data in the first electronic book file to obtain processed text data in a second electronic book file;
and carrying out picture editing processing on the picture, and adding editing information corresponding to the picture editing processing at the corresponding position of the picture in the second electronic book file after deleting the picture.
10. A server, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to:
receiving a second electronic book file sent by a client, wherein the second electronic book file is an epub format file and contains text data, resource data link information and resource data editing information, the resource data editing information comprises editing information generated by the client through editing operation aiming at a screenshot picture and/or a table, the screenshot picture and/or the table is picture content obtained by the client aiming at screenshot of a picture and/or a table in a first electronic book file in an epub format, and the first electronic book file is an epub format file obtained by the client through file conversion processing on an electronic book original file in a PDF format;
searching an electronic book original file in a PDF format corresponding to the second electronic book file, and acquiring resource data from the electronic book original file according to the resource data link information;
editing the resource data according to the resource data editing information;
and inserting the edited resource data into the positions of the resource data link information and the resource data editing information in the second electronic book file.
11. The server of claim 10, the executable instructions further causing the processor to:
and determining the corresponding electronic book original file according to the identification information of the electronic book original file carried by the second electronic book file.
12. The server of claim 10, the executable instructions further causing the processor to:
determining resource data information according to the resource data link information;
and acquiring corresponding resource data from the electronic book original file according to the determined resource data information.
13. A computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to:
receiving a second electronic book file sent by a client, wherein the second electronic book file is an epub format file and contains text data, resource data link information and resource data editing information, the resource data editing information comprises editing information generated by the client through editing operation aiming at a screenshot picture and/or a table, the screenshot picture and/or the table is picture content obtained by the client aiming at screenshot of a picture and/or a table in a first electronic book file in an epub format, and the first electronic book file is an epub format file obtained by the client through file conversion processing on an electronic book original file in a PDF format;
searching an electronic book original file in a PDF format corresponding to the second electronic book file, and acquiring resource data from the electronic book original file according to the resource data link information;
editing the resource data according to the resource data editing information;
and inserting the edited resource data into the positions of the resource data link information and the resource data editing information in the second electronic book file.
14. The computer storage medium of claim 13, the executable instructions further causing a processor to:
and determining the corresponding electronic book original file according to the identification information of the electronic book original file carried by the second electronic book file.
15. The computer storage medium of claim 13, the executable instructions further causing a processor to:
determining resource data information according to the resource data link information;
and acquiring corresponding resource data from the electronic book original file according to the determined resource data information.
CN201810730145.5A 2018-07-05 2018-07-05 Electronic book file production method, electronic device, server and storage medium Active CN109062880B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810730145.5A CN109062880B (en) 2018-07-05 2018-07-05 Electronic book file production method, electronic device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810730145.5A CN109062880B (en) 2018-07-05 2018-07-05 Electronic book file production method, electronic device, server and storage medium

Publications (2)

Publication Number Publication Date
CN109062880A CN109062880A (en) 2018-12-21
CN109062880B true CN109062880B (en) 2020-01-14

Family

ID=64819312

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810730145.5A Active CN109062880B (en) 2018-07-05 2018-07-05 Electronic book file production method, electronic device, server and storage medium

Country Status (1)

Country Link
CN (1) CN109062880B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111611505B (en) * 2020-05-19 2023-08-29 掌阅科技股份有限公司 Method for accessing multimedia resources in electronic book, computing device and storage medium
CN113239661A (en) * 2021-04-30 2021-08-10 北京方正阿帕比技术有限公司 Edition-stream combination based multi-terminal electronic document editing method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622332B (en) * 2011-01-27 2014-05-21 天脉聚源(北京)传媒科技有限公司 E-book realizing method and making system
CN103186540A (en) * 2011-12-27 2013-07-03 北大方正集团有限公司 Electronic document processing method, electronic document reading server, electronic document reading terminal and electronic document reading system
KR20130096796A (en) * 2012-02-23 2013-09-02 삼성전자주식회사 Device and method for searching resource of e-book
CN103761277A (en) * 2014-01-09 2014-04-30 北京掌阔技术有限公司 ePub electronic book loading method and system
KR20180071049A (en) * 2016-12-19 2018-06-27 삼성전자주식회사 Electronic device and image synchronizing method therof

Also Published As

Publication number Publication date
CN109062880A (en) 2018-12-21

Similar Documents

Publication Publication Date Title
CN102930523B (en) Picture processing system and picture splicing implementation method
CN102930522B (en) A kind of apparatus and method realizing picture splicing
US20070255695A1 (en) Method and apparatus for searching images
CN103902664A (en) Page image rendering method and information providing method and device
CN104750848A (en) Image file treating method, server and image display device
CN107748780B (en) Recovery method and device for file of recycle bin
CN109062880B (en) Electronic book file production method, electronic device, server and storage medium
CN104572847A (en) Method and device for naming photo
CN112650529A (en) System and method capable of configuring generation of mobile terminal APP code
CN1185610A (en) Image information search device, image data-base device, and image imformation storage device
CN107122785B (en) Text recognition model establishing method and device
CN111460765B (en) Electronic book labeling processing method, electronic equipment and storage medium
CN103136264A (en) Accessory inquiring method and user terminal
CN1808369A (en) Printing method and apparatus, print control method, and multimedia apparatus
US11967344B2 (en) Video processing method and apparatus, device and computer readable storage medium
CN116110065A (en) Method, device, computer equipment and storage medium for generating question card data
CN104090878A (en) Multimedia checking method, terminal, server and system
US20120192046A1 (en) Generation of a source complex document to facilitate content access in complex document creation
JP5409090B2 (en) Information processing apparatus, information processing method, program, and storage medium
CN110929479A (en) Method and device for converting PDF scanning piece, electronic equipment and storage medium
CN110263210B (en) Self-adaptive English learning word stock map management method and system
CN112532414B (en) Method, device, equipment and computer storage medium for determining ISP attribution
CN106874486A (en) Method and mobile terminal that a kind of Folder Name shows
CN111688605B (en) Character batch graph cutting method applied to automobile instrument and related equipment
CN113221507A (en) Document editing operation synchronization method, computing device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20181221

Assignee: Shaanxi Digital Information Technology Co.,Ltd.

Assignor: ZHANGYUE TECHNOLOGY Co.,Ltd.

Contract record no.: X2023990000904

Denomination of invention: Method of creating e-book files, electronic devices, servers, and storage media

Granted publication date: 20200114

License type: Common License

Record date: 20231107

EE01 Entry into force of recordation of patent licensing contract