CN110727887B - Book link processing method based on two-dimensional code - Google Patents
Book link processing method based on two-dimensional code Download PDFInfo
- Publication number
- CN110727887B CN110727887B CN201910874824.4A CN201910874824A CN110727887B CN 110727887 B CN110727887 B CN 110727887B CN 201910874824 A CN201910874824 A CN 201910874824A CN 110727887 B CN110727887 B CN 110727887B
- Authority
- CN
- China
- Prior art keywords
- resource
- epub
- information
- picture
- book
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
- G06F16/9554—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL] by using bar codes
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention provides a book link processing method based on two-dimensional codes, which is characterized in that resource types, resource IDs, period IDs, reader types and page number information are associated with identification codes qrcodeId, the addresses of book version files or epub version files can be determined in a server through the resource types, the resource IDs and the period IDs, and all contents of the whole book can be obtained without downloading according to the addresses; the page of a book or periodical can be determined through the type and page number information of the reader, namely, a user can jump to a specified page without downloading or loading the content of the whole book, so that the waiting time of the user is reduced; the unique position of a book or periodical can be determined through the resource type, the resource ID, the periodical ID, the reader type and the page number information, and the function of accurate positioning is realized.
Description
Technical Field
The invention relates to the technical field of two-dimensional codes, in particular to a book link processing method based on two-dimensional codes.
Background
With the rapid development of the mobile internet and the popularization of smart phones, the application of the two-dimensional code is more and more extensive. At present, citizens increasingly see the figure of the two-dimensional code in public places such as shopping malls or restaurants, and the two-dimensional code on each website, newspaper and magazine is also visible everywhere. The two-dimension code is a graph which is formed by converting traditional information (such as characters, numbers, symbols, pictures, audio and video) into black and white alternately distributed on a plane according to a certain rule by using a computer technology. In general, a two-dimensional code is a picture of a specific format that can store various information. In the market, generally, a download address or basic introduction information of a book is written into a two-dimensional code, and a user can jump to a download interface or a book introduction interface by scanning the two-dimensional code. The existing book two-dimensional code system has the following problems:
(1) the user cannot obtain all reading information of the book by scanning the two-dimensional code, and can browse all contents of the book only by downloading the book;
(2) according to statistics, the file format of epub is used as a carrier for massive electronic publications, the volume and the size of the epub electronic reading materials are not limited, and all information exists through zip format files, so that the epub files occupy bandwidth in network transmission speed and consume flow. When a user only needs to read part of the book content, the whole book is downloaded or the content of the whole book is loaded, and under the condition of poor network condition, the bad experiences such as long waiting time for online reading, unsmooth reading and the like are undoubtedly caused for the user.
Therefore, in order to solve the above problems, the invention provides a book link processing method based on two-dimensional codes, which can quickly open a book, acquire all contents of the book, jump to any specified page without downloading, and reduce the waiting time of a user.
Disclosure of Invention
In view of the above, the invention provides a book link processing method based on two-dimensional codes, which can quickly open a book, acquire all contents of the book, jump to any specified page without downloading, and reduce the waiting time of a user.
The technical scheme of the invention is realized as follows: the invention provides a book link processing method based on two-dimensional codes, which comprises the following steps:
s1, the hardware equipment sends the resource information of the book to the server, the server inquires a unique identification code qrcodeID associated with the resource information according to parameters in the resource information, the identification code qrcodeID and the resource information are generated into a two-dimensional code link and returned to the hardware equipment, and the hardware equipment links the two-dimensional code to generate a two-dimensional code;
s2, the mobile terminal scans the two-dimensional code, analyzes the two-dimensional code to obtain a link, and requests an interface for analyzing the two-dimensional code to obtain corresponding resource information according to parameters in the link;
s3, requesting a peripheral information interface, acquiring picture version address information or epub version address information of the book, finding a resource file corresponding to the picture version address information or epub version address information on a server according to the picture version address information or epub version address information, designating a jump page, finding an index of the designated jump page in the resource file, and jumping to the designated jump page according to the index.
On the basis of the above technical solution, preferably, the resource information in S1 includes a resource type, a resource ID, a period ID, a reader type, and page number information;
the resource type specifies the type of the current resource, and the resource type comprises periodicals, newspapers and books;
the resource ID corresponds to a unique variety;
the period ID corresponds to the only one period of the resource;
the reader type comprises a picture version file and an epub version file, wherein the picture version file comprises a plurality of pictures, and the epub version file comprises a plurality of xhtml files;
the page number information is an index of a picture or an index of a current file.
On the basis of the above technical solution, preferably, an identification code qrcodeId in S1 corresponds to a two-dimensional code.
Further preferably, S1 specifically includes the following steps: the hardware equipment sends the resource ID, the date ID, the reader type and the page number information of the book to the server, the server inquires the identification code qrcodeID related to the resource information through the resource ID and the date ID, generates a two-dimensional code link with the identification code qrcodeID, the reader type and the page number information and returns the two-dimensional code link to the hardware, and the hardware equipment generates the two-dimensional code link with the two-dimensional code link.
Further preferably, the link in S2 contains an identification code qrcoded, a reader type and page number information;
the identification code qrcodeId is used as an interface for requesting the analysis of the two-dimensional code by using the parameter to acquire the corresponding resource type, resource ID and period ID.
Further preferably, the peripheral information interface in S3 includes a picture version path correlation interface and an epub version address information interface;
the picture edition path related interface returns the address information of the picture edition;
and the epub address information interface returns epub address information.
Further preferably, the picture version address information in S3 is a way for the mobile terminal to find a path where the picture version file on the server is located;
the epub address information is a mode that the mobile terminal finds a path where the epub file is located on the server.
Further preferably, S3 specifically includes the following steps:
s201, requesting a picture edition path related interface or an epub edition address information interface to acquire picture edition address information or epub edition address information of the book;
s202, finding a picture version file or an epub version file on a server according to the picture version address information or the epub version address information;
s203, appointing a jump page, if the appointed jump page is a picture version, transmitting the sequence index of the appointed picture in all pictures by page number information, and jumping to the appointed jump page according to the index;
and if the appointed jump page is an xhtml file in the epub file, transmitting page number information to indexes of all the xhtml files, and jumping to the appointed jump page according to the indexes.
Compared with the prior art, the book linking processing method based on the two-dimensional code has the following beneficial effects:
(1) associating the resource type, the resource ID, the date ID, the reader type and the page number information with the identification code qrcodeId, scanning the two-dimensional code to obtain the resource type, the resource ID and the date ID, determining the position of the book version file or the epub version file in the server through the resource type, the resource ID and the date ID, obtaining the picture version address information or the epub version address information of the book through requesting a picture version path related interface or an epub version address information interface, finding all resources of the book version file or the epub version file according to the picture version address information or the epub version address information, namely obtaining all contents of the book through scanning the two-dimensional code; after the mobile terminal appoints a page, the server firstly determines the reader type of the appointed page, if the appointed jump page is a picture version, page number information transmits the sequential index of the appointed picture in all pictures, and the appointed jump page is jumped to according to the index; if the appointed jump page is an xhtml file in the epub file, page number information is transmitted to indexes of all the xhtml files, the appointed jump page is jumped to according to the indexes, the position of a book or a periodical on the server can be determined through the resource type, the resource ID and the period ID, and all contents of the whole book can be obtained without downloading; the page of a book or periodical can be determined through the type and page number information of the reader, namely, a user can jump to a specified page without downloading or loading the content of the whole book, so that the waiting time of the user is reduced; the unique position of a book or periodical can be determined through the resource type, the resource ID, the periodical ID, the reader type and the page number information, and the function of accurate positioning is realized.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart of a book linking processing method based on two-dimensional codes according to the present invention;
FIG. 2 is a schematic diagram of a request in a two-dimensional code-based book link processing method according to the present invention;
FIG. 3 is a flowchart of jumping to a designated page in a two-dimensional code based book link processing method of the present invention;
fig. 4 shows the contents of resource information in the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
Example 1
As shown in fig. 1, a book linking processing method based on two-dimensional codes of the present invention includes the following steps:
s1, the hardware equipment sends the resource information of the book to the server, the server inquires a unique identification code qrcodeID associated with the resource information according to parameters in the resource information, the identification code qrcodeID and the resource information are generated into a two-dimensional code link and returned to the hardware equipment, and the hardware equipment links the two-dimensional code to generate a two-dimensional code;
wherein, an identification code qrcodeId corresponds to a two-dimensional code. The resource information includes a resource type, a resource ID, a period ID, a reader type, and page number information. The resource type specifies the type of the current resource, and the resource type comprises periodicals, newspapers and books; the resource ID corresponds to a unique variety, such as a story meeting, most varieties have different periods, and the period ID corresponds to a unique first period, such as the first period in 2019 of the story meeting; the method comprises the steps that the type of a reader comprises a picture version file and an epub version file, the picture version file comprises a plurality of pictures, the epub version file comprises a plurality of xhtml files, and one xhtml file is a chapter for the epub file, so that when the resource type of resource information corresponding to a two-dimensional code requested to be analyzed by a user is the epub version file, a jump page is designated as a designated jump chapter; the page number information comprises page number information of all pictures or files, and when the type of the page designated by the user is a picture version file, the page number information provides sequential indexes of the pictures in all the pictures; when a user specifies that the page type is an epub file, the page number information provides indexes of the specified xml file in all the xml files. The resource type, the resource ID and the period ID are parameters for locating the resource, a unique book can be located through the three parameters, the reader type and the page number information are parameters for locating the reading position, and the five parameters can be located to the unique position of the book together.
Further preferably, S1 specifically includes the following steps: the resource information of the book is sent to the server by the hardware equipment, the unique identification code qrcodeId related to the resource information is inquired by the server according to parameters in the resource information, the identification code qrcodeId and the resource information are generated into a two-dimensional code link, the two-dimensional code link is returned to the hardware equipment, and the two-dimensional code link is generated into the two-dimensional code by the hardware equipment.
S2, the mobile terminal scans the two-dimensional code, analyzes the two-dimensional code to obtain a link, and requests an interface for analyzing the two-dimensional code to obtain corresponding resource information according to parameters in the link;
the link comprises an identification code qrcodeId, a reader type and page number information; in S2, the identifier qrcodeId is used as an interface for requesting to parse the two-dimensional code to obtain corresponding resource information, that is, the resource type, the resource ID, and the period ID may be obtained.
S3, requesting a peripheral information interface, acquiring picture version address information or epub version address information of the book, finding a resource file corresponding to the picture version address information or epub version address information on a server according to the picture version address information or epub version address information, designating a jump page, finding an index of the designated jump page in the resource file, and jumping to the designated jump page according to the index.
The specific implementation steps are as follows:
s201, requesting a picture edition path related interface or an epub edition address information interface to acquire picture edition address information or epub edition address information of the book;
the picture version address information is a mode that the mobile terminal finds a path where a picture version file on the server is located; and returning epub address information by the epub address information interface, wherein the epub address information is a mode that the mobile terminal finds a path where the epub file is located on the server.
S202, finding a picture version file or an epub version file on a server according to the picture version address information or the epub version address information;
s203, appointing a jump page, if the appointed jump page is a picture version, transmitting the sequence index of the appointed picture in all pictures by page number information, and jumping to the appointed jump page according to the index;
and if the appointed jump page is an xhtml file in the epub file, transmitting page number information to indexes of all the xhtml files, and jumping to the appointed jump page according to the indexes.
Example 2
On the basis of embodiment 1, the present embodiment provides an index obtaining method for each xhtml file in an epub file.
Before the embodiment is implemented, a basic introduction is made, wherein directories inside the epub file comprise a META-INF directory and an OEBPS directory; files under the META-INF directory include content. content. opf files and toc. ncx files are necessary, and other files may be determined according to the specific situation of the electronic book. Opf file is the core file of epub document, and is a standard XML file, which mainly consists of five parts: metadata information, manifest file list, spine, guide, and tour guide. Among other things, the spine of spine functions to provide a linear reading order for books. On the basis of embodiment 1, the index of the xhtml file in the whole xhtml file is specified in S203, namely, provided by spine backbone.
Example 3
On the basis of embodiment 1, this embodiment provides a specific example.
The method comprises the steps that a hardware device associates resource information of all books with a unique identification code qrcodeId and stores the associated information in a server, the server returns a two-dimensional code link, the hardware device links the two-dimensional code to generate a two-dimensional code, a user selects a book to be read, the hardware device displays the two-dimensional code corresponding to the book on the hardware device at the moment, the user scans the two-dimensional code through a mobile terminal such as a mobile phone and analyzes the two-dimensional code to obtain a link, the link comprises the identification code qrcodeId, a reader type and page code information, the mobile terminal sends the identification code qrcodeId to the server, the server returns corresponding resource information, and the resource information comprises a resource type, a resource ID and a period ID. If the book selected by the user is a book version file, a picture version path related interface is requested, the picture version path related interface returns picture version address information, the corresponding book version file is found on the server according to the picture version address information, at the moment, the user can know all resource information of the book, when the user needs to jump to a certain picture, page number information can index the picture in the sequence of all pictures, and the picture jumps to a specified picture according to the index. For example, if the book type is a picture file having 100 pages and the jump page is designated as 50, the page number information provides the corresponding index 49 and jumps to the page.
If the book selected by the user is an epub file, the epub file comprises a plurality of xhtml files, one xhtml file is a chapter for the epub file, returning epub address information through an epub address information interface, finding the corresponding epub file on the server according to the epub address information, and when the user needs to jump to a chapter, the page number information can index the xhtml file in the sequence of all the xhtml files and jump to the appointed chapter according to the index. For example, an epub version of the file has 10 chapters, and when the user needs to jump to chapter 5, the page number information provides the corresponding index 4 and jumps to the page.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
Claims (4)
1. A book link processing method based on two-dimensional codes is characterized by comprising the following steps: the method comprises the following steps:
s1, the hardware equipment sends the resource information of the book to the server, the server inquires a unique identification code qrcodeID associated with the resource information according to parameters in the resource information, the identification code qrcodeID and the resource information are generated into a two-dimensional code link, the two-dimensional code link is returned to the hardware equipment, and the hardware equipment generates a two-dimensional code through the two-dimensional code link;
s2, the mobile terminal scans the two-dimensional code, analyzes the two-dimensional code to obtain a link, and requests an interface for analyzing the two-dimensional code to obtain corresponding resource information according to parameters in the link;
s3, requesting a peripheral information interface, acquiring picture version address information or epub version address information of the book, finding a resource file corresponding to the picture version address information or epub version address information on a server according to the picture version address information or epub version address information, designating a jump page, finding an index of the designated jump page in the resource file, and jumping to the designated jump page according to the index;
the resource information in the S1 comprises a resource type, a resource ID, a period ID, a reader type and page number information;
the resource type specifies the type of the current resource, and the resource type comprises periodicals, newspapers and books;
the resource ID corresponds to a unique variety;
the period ID corresponds to the only next period of the resource;
the reader type comprises a picture version file and an epub version file, the picture version file comprises a plurality of pictures, and the epub version file comprises a plurality of xhtml files;
the page number information is an index of a picture or an index of a current file;
the peripheral information interface in the S3 includes a picture version path correlation interface and an epub version address information interface;
the picture edition path related interface returns picture edition address information;
the epub address information interface returns epub address information;
the picture version address information in the S3 is a way for the mobile terminal to find the path of the picture version file on the server;
the epub address information is a mode that the mobile terminal finds a path where the epub file is located on the server;
the step S3 specifically includes the following steps:
s201, requesting a picture edition path related interface or an epub edition address information interface to acquire picture edition address information or epub edition address information of the book;
s202, finding a picture version file or an epub version file on a server according to the picture version address information or the epub version address information;
s203, appointing a jump page, if the appointed jump page is a picture version, transmitting the sequence index of the appointed picture in all pictures by page number information, and jumping to the appointed jump page according to the index;
and if the appointed jump page is an xhtml file in the epub file, transmitting page number information to indexes of all the xhtml files, and jumping to the appointed jump page according to the indexes.
2. The book linking processing method based on the two-dimensional code as claimed in claim 1, characterized in that: an identification code qrcodeId in the S1 corresponds to a two-dimensional code.
3. The book linking processing method based on two-dimensional codes as claimed in claim 1, characterized in that: the S1 specifically includes the following steps: the hardware equipment sends the resource ID, the date ID, the reader type and the page number information of the book to the server, the server inquires the identification code qrcodeID related to the resource information through the resource ID and the date ID, generates a two-dimensional code link with the identification code qrcodeID, the reader type and the page number information and returns the two-dimensional code link to the hardware, and the hardware equipment generates the two-dimensional code link with the two-dimensional code link.
4. The book linking processing method based on two-dimensional codes as claimed in claim 3, wherein: the S2 is linked with information containing an identification code qrcodeID, a reader type and page number;
and the identification code qrcodeId is used as an interface for requesting the analysis of the two-dimensional code by using the parameter to acquire the corresponding resource type, resource ID and period ID.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910874824.4A CN110727887B (en) | 2019-09-17 | 2019-09-17 | Book link processing method based on two-dimensional code |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910874824.4A CN110727887B (en) | 2019-09-17 | 2019-09-17 | Book link processing method based on two-dimensional code |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110727887A CN110727887A (en) | 2020-01-24 |
CN110727887B true CN110727887B (en) | 2022-08-16 |
Family
ID=69219012
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910874824.4A Active CN110727887B (en) | 2019-09-17 | 2019-09-17 | Book link processing method based on two-dimensional code |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110727887B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112887411B (en) * | 2021-01-29 | 2023-04-07 | 广州优谷信息技术有限公司 | Local area network data transmission system, method, computer device and storage medium |
CN113569836A (en) * | 2021-08-17 | 2021-10-29 | 华荣科技股份有限公司 | Drawing automatic identification system and method |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105373560A (en) * | 2014-08-28 | 2016-03-02 | 北京龙源创新信息技术有限公司 | On-line showing method of publication page |
CN107644019A (en) * | 2016-07-20 | 2018-01-30 | 江苏云媒数字科技有限公司 | A kind of hypermedia eBook content manufacturing system |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1323017A2 (en) * | 2000-07-14 | 2003-07-02 | E-Book Systems Pte. Ltd. | A novel book-like internet browser for electronic information |
US20070276922A1 (en) * | 2006-05-25 | 2007-11-29 | Donald Spector | System and Method for Learning Including a Book with a Jump Drive |
CN102521280B (en) * | 2011-11-26 | 2014-07-09 | 华为技术有限公司 | Loading method and loading device of EPub electronic book |
CN103236007A (en) * | 2013-04-26 | 2013-08-07 | 孙鑫 | On-line poster generation system and on-line poster generation method |
CN103761277A (en) * | 2014-01-09 | 2014-04-30 | 北京掌阔技术有限公司 | ePub electronic book loading method and system |
CN108171285A (en) * | 2016-12-07 | 2018-06-15 | 北大方正集团有限公司 | Books acquisition methods and system based on O2O |
CN107436936B (en) * | 2017-07-21 | 2019-10-11 | 北京网阅文化传媒有限公司 | Online reading method and platform based on two dimensional code |
CN108320249A (en) * | 2018-02-01 | 2018-07-24 | 北京中税网控股股份有限公司 | A kind of method and device obtaining course |
-
2019
- 2019-09-17 CN CN201910874824.4A patent/CN110727887B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105373560A (en) * | 2014-08-28 | 2016-03-02 | 北京龙源创新信息技术有限公司 | On-line showing method of publication page |
CN107644019A (en) * | 2016-07-20 | 2018-01-30 | 江苏云媒数字科技有限公司 | A kind of hypermedia eBook content manufacturing system |
Also Published As
Publication number | Publication date |
---|---|
CN110727887A (en) | 2020-01-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9065797B2 (en) | URI service system and method | |
EP2023531B1 (en) | Method, apparatus, system, user terminal application server for selecting service | |
CA2721934C (en) | Remote application invocation system and method | |
US20110119298A1 (en) | Method and apparatus for searching information | |
US20070288477A1 (en) | Information processing apparatus, information processing system, information processing method, and computer program | |
EP3030984A1 (en) | Access and management of entity-augmented content | |
CN110727887B (en) | Book link processing method based on two-dimensional code | |
CN112115396A (en) | Webpage rendering method, device, equipment and storage medium | |
CN110245116A (en) | Reconciliation data processing method, device, equipment and computer readable storage medium | |
CN105122760A (en) | Page operation processing method, device and terminal | |
Alapetite | Dynamic 2D-barcodes for multi-device Web session migration including mobile phones | |
CN103716358A (en) | Customized application program downloading method and apparatus | |
CN101227502A (en) | Method and system for publishing digital information based on content orientation | |
CN108710679A (en) | E-book reading processing method, device and equipment | |
US11184687B2 (en) | Wearable device, information processing method, apparatus and system | |
CN104978341A (en) | File processing method and equipment, and network system | |
CN101233494B (en) | Plug-in module execution method, browser execution method, mailer execution method and terminal device | |
CN111143721A (en) | Bookmark management method and device | |
CN1406047A (en) | Communication device and its control method and control programme | |
CN109344344A (en) | Identification method, server and the computer readable storage medium of webpage client | |
CN100592300C (en) | Data display method and device | |
CN114528510A (en) | Webpage data processing method and device, electronic equipment and medium | |
US9317303B2 (en) | System, device and method for managing interactive content on a computing device | |
EP2549425A2 (en) | Multi-mode barcode resolution system | |
CN104978339A (en) | File processing method and equipment, and network system |
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 |