CN107562802B - Text data display methods and device and storage medium and electronic device - Google Patents

Text data display methods and device and storage medium and electronic device Download PDF

Info

Publication number
CN107562802B
CN107562802B CN201710668583.9A CN201710668583A CN107562802B CN 107562802 B CN107562802 B CN 107562802B CN 201710668583 A CN201710668583 A CN 201710668583A CN 107562802 B CN107562802 B CN 107562802B
Authority
CN
China
Prior art keywords
target
page
tity
target photo
photo
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
CN201710668583.9A
Other languages
Chinese (zh)
Other versions
CN107562802A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201710668583.9A priority Critical patent/CN107562802B/en
Publication of CN107562802A publication Critical patent/CN107562802A/en
Application granted granted Critical
Publication of CN107562802B publication Critical patent/CN107562802B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a kind of text data display methods and device and storage medium and electronic device.Wherein, this method comprises: obtaining data display request, wherein data display request is for requesting to be shown in page text data included in the target pages of target application;With in the matched picture database of target application, it is navigated to and the matched Target Photo of target pages according to the page iden-tity of target pages, wherein, include page text data included in target pages in Target Photo, picture database includes Target Photo in pictures for storing the pictures obtained according to the conversion of page in target application;Show the Target Photo navigated to.The present invention solves the technical problem lower using text data display efficiency caused by existing text data display methods.

Description

Text data display methods and device and storage medium and electronic device
Technical field
The present invention relates to computer fields, are situated between in particular to a kind of text data display methods and device and storage Matter and electronic device.
Background technique
Nowadays, more and more users begin to use electronic reading application to carry out read electronic sheet.Wherein, for the ease of user Interested word content is marked in e-text, and bookmarked function is often set in electronic reading application at present Can, mark function, highlight mark function are taken down notes, in order to which interested word content is marked in user, so that realizing makes Above-mentioned word content, and the purpose shown in electronic reading are quickly navigated to label.
However, since the word content in e-text is that independent and discrete character is constituted, thus, the side of stating in use When formula positioning electronic reads the word content in application in certain e-text, specific text is often first marked in e-text Word content, then by traversing the entire text data in the e-text, lookup obtains labeled word content, and to looking into It finds word content and carries out typesetting again, can show.That is, the text data display methods provided in the relevant technologies In, since positioning time is longer, so as to cause the lower problem of display efficiency.
For above-mentioned problem, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the invention provides a kind of text data display methods and device and storage medium and electronic device, so that It is few to solve the technical problem lower using text data display efficiency caused by existing text data display methods.
According to an aspect of an embodiment of the present invention, a kind of text data display methods is provided, comprising: it is aobvious to obtain data Show request, wherein above-mentioned data display request is shown in the text of the page included in the target pages of target application for requesting Notebook data;With in the matched picture database of above-mentioned target application, according to the page iden-tity of above-mentioned target pages navigate to The above-mentioned matched Target Photo of target pages, wherein comprising above-mentioned included in above-mentioned target pages in above-mentioned Target Photo Page text data, above-mentioned picture database are used to store the pictures obtained according to the conversion of page in above-mentioned target application, It include above-mentioned Target Photo in above-mentioned pictures;Show the above-mentioned Target Photo navigated to.
According to another aspect of an embodiment of the present invention, a kind of text data display device is additionally provided, comprising: first obtains Unit, for obtaining data display request, wherein above-mentioned data display request is used to request to be shown in the page object of target application Page text data included in face;Positioning unit, for in the matched picture database of above-mentioned target application, according to The page iden-tity of above-mentioned target pages navigates to and the matched Target Photo of above-mentioned target pages, wherein in above-mentioned Target Photo Comprising above-mentioned page text data included in above-mentioned target pages, above-mentioned picture database is for storing according to above-mentioned target The pictures that conversion of page in obtains include above-mentioned Target Photo in above-mentioned pictures;Display unit, it is fixed for showing The above-mentioned Target Photo that position is arrived.
Another aspect according to an embodiment of the present invention, additionally provides a kind of storage medium, comprising:, above-mentioned storage medium packet Include the program of storage, wherein above procedure executes above-mentioned method when running.
Another aspect according to an embodiment of the present invention, additionally provides a kind of electronic device, including memory, processor and deposits The computer program that can be run on above-mentioned memory and on above-mentioned processor is stored up, above-mentioned processor passes through above-mentioned computer journey Sequence executes above-mentioned method.
In embodiments of the present invention, by the way that target pages to display are converted to Target Photo, storage is arrived and target Using in matched picture database, obtained in order to be positioned from Target Photo database according to the page iden-tity of target pages Target Photo to be shown, without traversing the lteral data in each page in target application again, to reduce location determination Number shortens positioning duration, to realize the location efficiency for improving positioning Target Photo, and then reaches and improves displaying target picture Included in page data display efficiency effect.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
A kind of Fig. 1 application environment schematic diagram of optional text data display methods according to an embodiment of the present invention;
Fig. 2 is a kind of flow chart of optional text data display methods according to an embodiment of the present invention;
Fig. 3 is the flow chart of another optional text data display methods according to an embodiment of the present invention;
Fig. 4 is a kind of schematic diagram of optional text data display methods according to an embodiment of the present invention;
Fig. 5 is the schematic diagram of another optional text data display methods according to an embodiment of the present invention
Fig. 6 is the schematic diagram of another optional text data display methods according to an embodiment of the present invention
Fig. 7 is the schematic diagram of another optional text data display methods according to an embodiment of the present invention
Fig. 8 is the schematic diagram of another optional text data display methods according to an embodiment of the present invention
Fig. 9 is a kind of schematic diagram of optional text data display device according to an embodiment of the present invention;
Figure 10 is the schematic diagram of another optional text data display device according to an embodiment of the present invention;
Figure 11 is a kind of schematic diagram of optional electronic device according to an embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product Or other step or units that equipment is intrinsic.
Embodiment 1
In embodiments of the present invention, a kind of embodiment of above-mentioned text data display methods is provided.As a kind of optional Embodiment, text data display method can be, but not limited to be applied to application environment as shown in Figure 1 in, in terminal 102 obtain data display request for requesting to be shown in page text data included in the target pages of target application it Afterwards, it is matched with the target application in server 106 using being stored in can be, but not limited to pass through as shown in Figure 1 network 104 Picture database navigates to and the matched Target Photo of above-mentioned target pages according to the page iden-tity of above-mentioned target pages, wherein Comprising page text data included in target pages in Target Photo, picture database is for storing according in target application The obtained pictures of conversion of page, include Target Photo in pictures;Then, displaying target picture it should be noted that on Stating picture database also can be, but not limited to be stored in terminal 102, not do any restriction in the present embodiment to this.
In the present embodiment, obtain after data display request, using with the matched picture database of the target application, It is navigated to and the matched Target Photo of above-mentioned target pages according to the page iden-tity of above-mentioned target pages, wherein above-mentioned target figure Comprising page text data included in target pages in piece, above-mentioned picture database is for storing according to above-mentioned target application In the obtained pictures of conversion of page, include Target Photo in the pictures;Then, it shows included by above-mentioned Target Photo Page data in above-mentioned target pages.That is, by the way that target pages to display are converted to Target Photo, storage To in the matched picture database of target application, in order to according to the page iden-tity of target pages from Target Photo database Positioning obtains Target Photo to be shown, without traversing the text data in each page in target application again, to reduce Location determination number shortens positioning duration, to realize the location efficiency for improving positioning Target Photo, and then reaches raising display The effect of the display efficiency of page data included in Target Photo.
Optionally, in the present embodiment, above-mentioned terminal can include but is not limited at least one of: mobile phone, plate electricity Brain, laptop, desktop PC, DTV and other by target application show page data hardware device.It is above-mentioned Network can include but is not limited at least one of: wide area network, Metropolitan Area Network (MAN), local area network.A kind of above-mentioned only example, this implementation Example does not do any restriction to this.
According to embodiments of the present invention, a kind of text data display methods is provided, as shown in Fig. 2, this method comprises:
S202 obtains data display request, wherein data display request is used to request to be shown in the page object of target application Page text data included in face;
S204, in the matched picture database of target application, navigated to according to the page iden-tity of target pages and mesh Mark the matched Target Photo of the page, wherein include page text data included in target pages, picture number in Target Photo It include Target Photo in pictures according to library for storing the pictures obtained according to the conversion of page in target application;
S206 shows the Target Photo navigated to.
Optionally, in the present embodiment, above-mentioned text data display methods can be, but not limited to be applied to continuously aobvious In the target pages for showing the page data of long length, for example, electronic reading application, browser application, news application, copy editor Using etc..Above-mentioned is only a kind of example, does not do any restriction to this in the present embodiment.
It should be noted that in the present embodiment, obtaining after data display request, being matched using with the target application Picture database, according to the page iden-tity of above-mentioned target pages navigate to the matched Target Photo of above-mentioned target pages, In, comprising page text data included in target pages in above-mentioned Target Photo, above-mentioned picture database is for storing root It include Target Photo in the pictures according to the pictures that the conversion of page in above-mentioned target application obtains;Then, above-mentioned mesh is shown The page data marked on a map in above-mentioned target pages included by piece.That is, by the way that target pages to display are converted For Target Photo, storage to in the matched picture database of target application, in order to according to the page iden-tity of target pages from Positioning obtains Target Photo to be shown in Target Photo database, without being traversed in each page in target application again Text data shortens positioning duration to reduce location determination number, thus realize the location efficiency for improving positioning Target Photo, And then achieve the effect that the display efficiency for improving page data included in displaying target picture.
It will be provided with more complete page data according to the picture database that aforesaid operations historical data is established, and can be with Improve the reliability of data.
Optionally, in the present embodiment, in the matched picture database of target application, according to the page of target pages Mark location can include but is not limited to a kind of following situation to the matched Target Photo of target pages:
1) target pages be it is non-show for the first time in the case where, oriented in the pictures of picture database and page mark Know corresponding Target Photo;
2) in the case where target pages are to show for the first time, the target pages after typesetting are converted into Target Photo;It will turn The Target Photo got in return is stored to picture database, and the Target Photo corresponding with page iden-tity obtained as positioning.
That is, in the present embodiment, whether what can be shown in target application according to target pages is aobvious Show record to determine whether to orient corresponding Target Photo from picture database.It wherein, in the present embodiment, can be with But it is not limited to determine the picture number of pictures in picture database according to the display progress of target pages.
For example, text file to display is e-book A so that electronic reading is applied as an example, including page 100, It currently has been displayed to page 40, then can be not limited to storage picture corresponding with the preceding page of page 40 in picture database.When again When opening e-book A, it can be determined that whether had been displayed before current page S to display, it, can if having been displayed The corresponding picture S ' of current page S to display is oriented from above-mentioned picture corresponding with the preceding page of page 40;If not showing Showed, then can the first typesetting current page S to display, corresponding picture S ' is generated, by picture S ' storage to picture number While according to library, rendering shows above-mentioned picture S in the client of target application.
Optionally, in the present embodiment, above-mentioned page iden-tity can be, but not limited to obtain by following two scene:
1) it obtains the starting for starting target application to request, wherein carry page iden-tity in starting request;
It should be noted that in the present embodiment, after target application starting, target application can be, but not limited to basis and open Whether page iden-tity is carried in dynamic request, it is corresponding with above-mentioned page iden-tity to determine the need for orienting from picture database Target Photo.In the case that target application is restarted after exiting, then it is corresponding can to orient above-mentioned page iden-tity Target Photo, without carrying out typesetting again to exiting before the target application page having been displayed again, to reduce display Market is waited, achievees the effect that the display efficiency for improving page data.
2) tag location request is obtained, wherein tag location request carries label information, includes in label information and label The page iden-tity with incidence relation is identified, tag identifier is labeled in the Target Photo that page iden-tity is identified for identifying Page text data coordinate position.
It should be noted that in the present embodiment, can with but be not limited to pre-establish tag identifier and page iden-tity it Between incidence relation, both make to become association identification.For example, after getting tag location request, from tag location request The tag identifier carried in label information is obtained, the page mark of the target pages for the display of being jumped is obtained according to the tag identifier Know, to realize using the page iden-tity from orienting the Target Photo that will be shown in target application in picture database.
Optionally, in the present embodiment, above-mentioned picture database can be, but not limited to according to the account for using target application The operation history data of performed operation determines in target application.Wherein, aforesaid operations historical data may include but not It is limited at least one of: 1) shows the period of page text data using target application;2) it is established in target application Label label information.
As an alternative embodiment, in usage mode 1) in the case where determine picture database, above-mentioned picture number According to can include but is not limited to Target Photo to be shown, and the picture indices for obtaining the Target Photo in library, wherein should Picture indices include at least the page iden-tity of target pages corresponding with Target Photo.
That is, determining picture database using the display record of page text data is shown in target application Picture indices.For example, after target application requests the page text data in shows target pages P1 for the first time, target application Backstage responds the request, will acquire above-mentioned page text data, and carry out typesetting conversion to it, obtains corresponding Target Photo Q1, and the page iden-tity of Target Photo Q1 and the target pages P1 as picture indices are stored into picture database.It is false Be located at target application client rendering show Target Photo Q1 after, exited target application, then restarting entrance When target application, can be positioned in picture database according to above-mentioned picture indices obtain it is corresponding with the page iden-tity of target pages P1 Target Photo Q1.
As another optional embodiment, in usage mode 1) in the case where determine picture database, above-mentioned picture It can include but is not limited to Target Photo to be shown, and the picture indices for obtaining the Target Photo in database, wherein The picture indices include: the page iden-tity of target pages corresponding with Target Photo and are labeled in Target Photo for identifying Page text data coordinate position tag identifier.
That is, determining the picture indices of picture database using the label established in target application.For example, After target application request establishes label to the page text data in target pages P1, the backstage of target application responds this and asks It asks, obtains corresponding label information, wherein label information includes: tag identifier, and has the page of incidence relation with tag identifier Face mark, and by tag identifier, and with tag identifier there is the page iden-tity of incidence relation to store as picture indices to described In picture database.Assuming that the client in target application obtains tag location request, after being analyzed and acquired by above-mentioned label information, It can then be positioned in picture database according to above-mentioned picture indices and obtain target figure corresponding with the page iden-tity of target pages P1 Piece Q1, and specifically position to obtain the page text data being labeled in Target Photo Q1 using the coordinate position of tag identifier.
Optionally, in the present embodiment, a page iden-tity can be, but not limited to have with one or more tag identifiers The incidence relation.That is, a picture in picture database can be, but not limited to carry out using multiple tag identifiers Tag location.Wherein, above-mentioned different tag identifier can be, but not limited to for identifying the different coordinate positions in the picture. To realize after orienting Target Photo corresponding with page iden-tity associated by tag identifier, further according to the seat of tag identifier Cursor position orients the page text data being labeled in Target Photo.One is oriented using different tag identifiers to realize Page text data in a picture on different location, are arranged multiple label informations without repeating, and simplify positioning step to realize Rapid effect.
Optionally, in the present embodiment, it can be, but not limited to through thread corresponding with text file where target pages Pond carries out thread poll.That is, can then close corresponding thread in the case where file where target pages completes display Shorten poll time, and then realize the effect for improving polling efficiency to reach the quantity for reducing poll thread in pond.Wherein, above-mentioned Whether the thread in thread pool needs to execute typesetting operation to file where the current goal page immediately for monitoring in real time, with reality Now shorten the typesetting response time, improves the effect of display efficiency.
It is specifically illustrated as shown in connection with fig. 3, such as step S302-S310, target application is in the page for obtaining target pages After mark, judge whether the target pages are to show for the first time, in the case where judging to show for the first time, to the target pages into Row typesetting, and be converted to Target Photo.Wherein, which improves the thread in thread pool and is completed by monitoring.It then, will be above-mentioned After conversion Target Photo storage to in the matched picture database of target application, and in target application rendering display it is above-mentioned Target Photo.In addition, judge for it is non-for the first time in the case where, then corresponding page object can be oriented from picture database Face, and in the above-mentioned Target Photo of rendering display in target application.
By embodiment provided by the present application, by the way that target pages to display are converted to Target Photo, storage is arrived In the matched picture database of target application, in order to fixed from Target Photo database according to the page iden-tity of target pages Position obtains Target Photo to be shown, fixed to reduce without traversing the text data in each page in target application again Position judges number, shortens positioning duration, to realize the location efficiency for improving positioning Target Photo, and then reaches raising display mesh Mark on a map page data included in piece display efficiency effect.
As a kind of optional scheme, in the matched picture database of target application, according to the page of target pages Mark location includes: to the matched Target Photo of target pages
S1, the target pages that page iden-tity is identified be it is non-show for the first time in the case where, in the picture of picture database Positioning is concentrated to obtain Target Photo corresponding with page iden-tity;
S2 turns the target pages after typesetting in the case where the target pages that page iden-tity is identified are to show for the first time It is changed to Target Photo;By the Target Photo being converted to store to picture database, and as positioning obtain and page iden-tity Corresponding Target Photo.
Specifically it is illustrated so that target application is electronic reading application as an example.For example, it is non-show for the first time in the case where, such as Shown in Fig. 4, operation has the electronic reading application in terminal 402, it is assumed that currently to display is the mesh that page iden-tity is 001 The page is marked, then the mesh that can be matched by the target pages identified to 404 request of picture database and page iden-tity 001 It marks on a map piece.Wherein, multiple Target Photos having been displayed are stored in picture database 404, such as picture 406-1, picture 406-2 Etc..
For example, when judge target pages that page iden-tity 001 is identified be it is non-show for the first time in the case where, it is assumed that page It is Target Photo 406-1 that the target pages that face mark 001 is identified, which match, then can be as shown in figure 4, positioning obtains target figure Piece 406-1, and the display interface of the client in target application is shown.
It, then can be in another example when in the case where judging target pages that page iden-tity 001 is identified is to show for the first time As shown in figure 5, the page text data obtained in target pages carry out typesetting, and target pages are converted into corresponding target figure Then piece 406-1 will be stored as the page iden-tity 001 of picture indices and Target Photo 406-1 to picture database 404.
By embodiment provided by the present application, by utilization and the matched picture database of target application, according to page mark Knowledge navigate to the matched Target Photo of target pages, the corresponding different target pages of different page iden-tities can be carried out fast The display of speed, to improve user experience.
As a kind of optional scheme, before the target pages after typesetting are converted to Target Photo, further includes:
S1 carries out thread poll using thread pool corresponding with text file where target pages, wherein in target pages In the case that place text file completes display, thread pool corresponding with text file where target pages is closed;In page object In the case that text file does not complete display where face, target pages to display are carried out by the thread that thread pool provides Typesetting.It is specifically illustrated so that target application is electronic reading application as an example, it is assumed that be correspondingly arranged one with the electronic reading application A thread pool, wherein the thread pool can be, but not limited to the equipment type for the terminal applied according to operational objective and electronics is read The file size of the e-book in application is read to establish to determine.
During display, each thread in thread pool can constantly carry out thread poll.Assuming that display books A is corresponding File a in target pages when, need to judge whether the target pages are the last page being shown in file a, i.e., by sentencing It is disconnected to determine whether this document a completes to show, after the completion of file a is all shown, then thread corresponding with this document a can be closed, To reduce the quantity of thread poll, to reach the processing load for reducing terminal, improves and pass through Target Photo shows target pages In page data display efficiency.
In addition, in the case where file a does not complete display, thread corresponding with above-mentioned file a can be monitored always, with judgement Whether need to carry out typesetting to the page in file a immediately.For example, being carried out detecting to receive to be used to indicate to target pages After the operational order of typesetting, then it can be controlled by the thread and typesetting is carried out to target pages, for example, determining typesetting pattern, and will Target pages after above-mentioned typesetting are converted to corresponding Target Photo, to store into picture database, while in electronic reading Rendering shows the Target Photo in.
It should be noted that file completes display where above-mentioned target pages, can be, but not limited to be not necessarily referring to target pages For the last page of file, and refer to whether all pages in this document are shown.
By embodiment provided by the present application, thread poll is carried out by thread pool corresponding with target application, with determination Whether file where target pages is completed to show, carries out quantity control to the thread run to realize, answered with mitigating target With the processing load of place terminal;Further, it is also possible to the real-time monitoring to target pages typesetting be realized, to guarantee the real-time of typesetting Property and display efficiency.
As a kind of optional scheme, navigated to and the matched target figure of target pages according to the page iden-tity of target pages Before piece, further includes:
S1 stores the picture indices for being used to obtain Target Photo and Target Photo into picture database, wherein picture The page iden-tity of target pages corresponding with Target Photo is included at least in index.
Specifically it is illustrated so that target application is electronic reading application as an example.As shown in fig. 6, each target pages is corresponding One page iden-tity, wherein assuming that Current electronic reads the page that application is shown in the target pages that page iden-tity 001 is identified Face text data, then can be after completing typesetting conversion operation, by page iden-tity 001 as matched with the target pages that are identified The picture indices of Target Photo 406-1 then will be used to obtain the picture indices (such as page iden-tity 001) and target figure of Target Photo Piece 406-1 is stored according to preset mapping relation into picture database 404;Assuming that Current electronic, which reads application, is shown to page mark Know the page text data in the target pages that 002 is identified, then it can be after completing typesetting conversion operation, by page iden-tity 002 As the picture indices with the matched Target Photo 406-2 of target pages identified, then it will be used to obtain the figure of Target Photo Piece indexes (such as page iden-tity 002) and Target Photo 406-2 and stores according to preset mapping relation into picture database 404;With This analogizes.
By embodiment provided by the present application, stored by the picture indices and Target Photo that will be used to obtain Target Photo Into picture database, wherein include at least the page iden-tity of target pages corresponding with Target Photo in picture indices, realize Any moment can quick displaying target picture, to improve user experience.
As a kind of optional scheme, in picture indices and the Target Photo storage that will be used to obtain Target Photo to picture When in database, further includes:
S1 in the case where establishing label in Target Photo, obtains the tag identifier of established label, wherein label For marking the page text data in Target Photo, tag identifier is used to identify the page text being labeled in Target Photo The coordinate position of data;
S2, establishes the incidence relation between tag identifier and page iden-tity corresponding with Target Photo, and by tag identifier It is stored as picture indices into picture database with page iden-tity.
It is specifically illustrated so that target application is electronic reading application as an example, as shown in Figure 7, it is assumed that two marks have been established Label, wherein the label information of label I includes: page iden-tity 001 and tag identifier (12,23), wherein tag identifier (12,23) Coordinate position for the page text data being labeled in Target Photo.The label information of label II includes: page iden-tity 002, And tag identifier (22,23), wherein tag identifier (22,23) is the coordinate bit for the page text data being labeled in Target Photo It sets.Above-mentioned label information and corresponding Target Photo are stored to picture database 404.Wherein it is possible to but be not limited to label Picture of the page iden-tity with tag identifier as corresponding Target Photo in information with incidence relation is indexed.
Optionally, in the present embodiment, a page iden-tity, which can be, but not limited to have with multiple tag identifiers, is associated with pass System.By the embodiment of the present application, in the case where label is established in Target Photo, the tag identifier of established label is obtained, The incidence relation between tag identifier and page iden-tity corresponding with Target Photo is established, and tag identifier and page iden-tity are made It is picture indices storage into picture database.Realizing can use tag identifier and quickly locates Target Photo, and show The Target Photo eliminates the process for carrying out typesetting again to text, saves positioning time, improve display efficiency.
As a kind of optional scheme, obtaining data display request includes:
S1 obtains the starting for starting target application and requests;After obtaining data display request, further includes: parsing The entrained last time exits the page iden-tity of the page shown when target application in starting request.
It is specifically illustrated so that target application is electronic reading application as an example, as shown in figure 8, as a kind of optional implementation Mode, after electronic reading application gets starting request, parsing starting request is obtained included in starting request upper one Then the target pages that the secondary shown page last when exiting target application is identified by page iden-tity 001 pass through picture number Page iden-tity 001 is utilized according to library 404, navigates to the Target Photo 406-1 to match, and show Target Photo 406-1.
By embodiment provided by the present application, after obtaining data display request, parse entrained by starting in request Last time exits the page iden-tity of the page shown when target application, thus after realizing that receiving starting requests, with what is be exceedingly fast Speed obtains Target Photo, eliminates the process for carrying out typesetting to text again, improves display efficiency.
As a kind of optional scheme, obtaining data display request includes:
S1 obtains page jump request;After obtaining data display request, further includes: parsing page jump requests institute The page iden-tity of carrying.
Continuation is illustrated by taking Fig. 8 as an example: configuration picture jumps catalogue in electronic reading application, for example, on display circle Right side of face insert pictures jump catalogue, and it includes picture indices list, i.e. page iden-tity list in catalogue that wherein the picture, which jumps,.? It gets after executing clicking operation jump request generated to the page iden-tity 002 in page iden-tity list, parses the jump Turn request, obtain the page iden-tity 002 for including in jump request, then, page iden-tity 002 is utilized by picture database 404, The Target Photo 406-2 to match is navigated to, and shows Target Photo 406-2.
By embodiment provided by the present application, after obtaining data display request, entrained by parsing page jump request Page iden-tity, thus realize receive jump request after, obtain Target Photo at a terrific speed, eliminate again to text The process for carrying out typesetting, improves display efficiency.
As a kind of optional scheme, obtaining data display request includes:
S1 obtains tag location request;After obtaining data display request, further includes: in parsing tag location request Entrained label information, includes the page iden-tity for having incidence relation with tag identifier in label information, and tag identifier is used for Identify the coordinate position for the page text data being labeled in the Target Photo that page iden-tity is identified.
Continuation is illustrated by taking Fig. 8 as an example: after electronic reading application gets tag location request, parsing label is fixed Position obtains the label information for including in tag location request, including page iden-tity 003 and tag identifier (12,23).So Afterwards, the Target Photo 406- to match is navigated to using the above-mentioned label information as picture indices by picture database 404 3, and show Target Photo 406-3.
By embodiment provided by the present application, after obtaining data display request, taken in parsing tag location request The label information of band, to obtain Target Photo at a terrific speed after realizing that receiving tag location requests, eliminate again The process that typesetting is carried out to text, improves display efficiency.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is not necessarily of the invention It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing The part that technology contributes can be embodied in the form of software products, which is stored in a storage In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate Machine, server or network equipment etc.) method that executes each embodiment of the present invention.
Embodiment 2
According to embodiments of the present invention, it is aobvious to additionally provide a kind of text data for implementing above-mentioned text data display methods Showing device, as shown in figure 9, the device includes:
1) first acquisition unit 902, for obtaining data display request, wherein data display request is for requesting display The page text data included in the target pages of target application;
2) positioning unit 904, for in the matched picture database of target application, according to the page mark of target pages Knowledge navigates to and the matched Target Photo of target pages, wherein includes the text of the page included in target pages in Target Photo Notebook data, picture database include mesh in pictures for storing the pictures obtained according to the conversion of page in target application It marks on a map piece;
3) display unit 906, for showing the Target Photo navigated to.
Optionally, in the present embodiment, above-mentioned data presentation device can be, but not limited to be applied to continuously display length In the target pages of the page data of length, for example, electronic reading application, browser application, copy editor's application etc..It is above-mentioned It is only a kind of example, does not do any restriction to this in the present embodiment.
It should be noted that in the present embodiment, obtaining after data display request, being matched using with the target application Picture database, according to the page iden-tity of above-mentioned target pages navigate to the matched Target Photo of above-mentioned target pages, In, comprising page text data included in target pages in above-mentioned Target Photo, above-mentioned picture database is for storing root It include Target Photo in the pictures according to the pictures that the conversion of page in above-mentioned target application obtains;Then, above-mentioned mesh is shown The page data marked on a map in above-mentioned target pages included by piece.That is, by the way that target pages to display are converted For Target Photo, storage to in the matched picture database of target application, in order to according to the page iden-tity of target pages from Positioning obtains Target Photo to be shown in Target Photo database, without being traversed in each page in target application again Text data shortens positioning duration to reduce location determination number, thus realize the location efficiency for improving positioning Target Photo, And then achieve the effect that the display efficiency for improving page data included in displaying target picture.
It will be provided with more complete page data according to the picture database that aforesaid operations historical data is established, and can be with Improve the reliability of data.
Optionally, in the present embodiment, above-mentioned picture database can be, but not limited to according to the account for using target application The operation history data of operation is executed in target application to determine and establish.Wherein, aforesaid operations historical data may include but It is not limited at least one of: being believed using the period of target application reading page data, the label added in target application Breath.It will be provided with more complete page data according to the picture database that aforesaid operations historical data is established, and can be improved The reliability of data.
Optionally, in the present embodiment, in the matched picture database of target application, according to the page of target pages Mark location can include but is not limited to a kind of following situation to the matched Target Photo of target pages:
1) target pages be it is non-show for the first time in the case where, oriented in the pictures of picture database and page mark Know corresponding Target Photo;
2) in the case where target pages are to show for the first time, the target pages after typesetting are converted into Target Photo;It will turn The Target Photo got in return is stored to picture database, and the Target Photo corresponding with page iden-tity obtained as positioning.
That is, in the present embodiment, whether what can be shown in target application according to target pages is aobvious Show record to determine whether to orient corresponding Target Photo from picture database.It wherein, in the present embodiment, can be with But it is not limited to determine the picture number of pictures in picture database according to the display progress of target pages.
For example, text file to display is e-book A so that electronic reading is applied as an example, including page 100, It currently has been displayed to page 40, then can be not limited to storage picture corresponding with the preceding page of page 40 in picture database.When again When opening e-book A, it can be determined that whether had been displayed before current page S to display, it, can if having been displayed The corresponding picture S ' of current page S to display is oriented from above-mentioned picture corresponding with the preceding page of page 40;If not showing Showed, then can the first typesetting current page S to display, corresponding picture S ' is generated, by picture S ' storage to picture number While according to library, rendering shows above-mentioned picture S ' in the client of target application.
Optionally, in the present embodiment, above-mentioned page iden-tity can be, but not limited to obtain by following two scene:
1) it obtains the starting for starting target application to request, wherein carry page iden-tity in starting request;
It should be noted that in the present embodiment, after target application starting, target application can be, but not limited to basis and open Whether page iden-tity is carried in dynamic request, it is corresponding with above-mentioned page iden-tity to determine the need for orienting from picture database Target Photo.In the case that target application is restarted after exiting, then it is corresponding can to orient above-mentioned page iden-tity Target Photo, without carrying out typesetting again to exiting before the target application page having been displayed again, to reduce display Market is waited, achievees the effect that the display efficiency for improving page data.
2) tag location request is obtained, wherein tag location request carries label information, includes in label information and label The page iden-tity with incidence relation is identified, tag identifier is labeled in the Target Photo that page iden-tity is identified for identifying Page text data coordinate position.
It should be noted that in the present embodiment, can with but be not limited to pre-establish tag identifier and page iden-tity it Between incidence relation, both make to become association identification.For example, after getting tag location request, from tag location request The tag identifier carried in label information is obtained, the page mark of the target pages for the display of being jumped is obtained according to the tag identifier Know, to realize using the page iden-tity from orienting the Target Photo that will be shown in target application in picture database. Optionally, in the present embodiment, above-mentioned picture database can be, but not limited to according to using the account of target application to answer in target The operation history data of performed operation determines in.Wherein, aforesaid operations historical data can include but is not limited to following At least one: 1) using target application show the period of page text data;2) label established in target application Label information.
As an alternative embodiment, in usage mode 1) in the case where determine picture database, above-mentioned picture number According to can include but is not limited to Target Photo to be shown, and the picture indices for obtaining the Target Photo in library, wherein should Picture indices include at least the page iden-tity of target pages corresponding with Target Photo.
That is, determining picture database using the display record of page text data is shown in target application Picture indices.For example, after target application requests the page text data in shows target pages P1 for the first time, target application Backstage responds the request, will acquire above-mentioned page text data, and carry out typesetting conversion to it, obtains corresponding Target Photo Q1, and the page iden-tity of Target Photo Q1 and the target pages P1 as picture indices are stored into picture database.It is false Be located at target application client rendering show Target Photo Q1 after, exited target application, then restarting entrance When target application, can be positioned in picture database according to above-mentioned picture indices obtain it is corresponding with the page iden-tity of target pages P1 Target Photo Q1.
As another optional embodiment, in usage mode 1) in the case where determine picture database, above-mentioned picture It can include but is not limited to Target Photo to be shown, and the picture indices for obtaining the Target Photo in database, wherein The picture indices include: the page iden-tity of target pages corresponding with Target Photo and are labeled in Target Photo for identifying Page text data coordinate position tag identifier.
That is, determining the picture indices of picture database using the label established in target application.For example, After target application request establishes label to the page text data in target pages P1, the backstage of target application responds this and asks It asks, obtains corresponding label information, wherein label information includes: tag identifier, and has the page of incidence relation with tag identifier Face mark, and by tag identifier, and with tag identifier there is the page iden-tity of incidence relation to store as picture indices to picture In database.Assuming that the client in target application obtains tag location request, after being analyzed and acquired by above-mentioned label information, then may be used It is positioned in picture database according to above-mentioned picture indices and obtains Target Photo Q1 corresponding with the page iden-tity of target pages P1, And specifically position to obtain the page text data being labeled in Target Photo Q1 using the coordinate position of tag identifier.
Optionally, in the present embodiment, a page iden-tity can be, but not limited to have with one or more tag identifiers Incidence relation.That is, a picture in picture database can be, but not limited to carry out label using multiple tag identifiers Positioning.Wherein, above-mentioned different tag identifier can be, but not limited to for identifying the different coordinate positions in the picture.To It realizes after orienting Target Photo corresponding with page iden-tity associated by tag identifier, further according to the coordinate bit of tag identifier Set the page text data oriented and be labeled in Target Photo.A figure is oriented using different tag identifiers to realize Page text data in piece on different location are arranged multiple label informations without repeating, simplify positioning step to realize Effect.
Optionally, in the present embodiment, it can be, but not limited to through thread corresponding with text file where target pages Pond carries out thread poll.That is, can then close corresponding thread in the case where file where target pages completes display Shorten poll time, and then realize the effect for improving polling efficiency to reach the quantity for reducing poll thread in pond.Wherein, above-mentioned Whether the thread in thread pool needs to execute typesetting operation to file where the current goal page immediately for monitoring in real time, with reality Now shorten the typesetting response time, improves the effect of display efficiency.It is specifically illustrated as shown in connection with fig. 3, such as step S302- S310, target application judge whether the target pages are to show for the first time, are being judged after the page iden-tity for obtaining target pages In the case where showing for the first time, typesetting is carried out to the target pages, and be converted to Target Photo.Wherein, which improves thread Thread in pond is completed by monitoring.Then, the Target Photo storage after above-mentioned conversion is arrived and the matched picture of target application In database, and rendering shows above-mentioned Target Photo in target application.In addition, judge for it is non-for the first time in the case where, then Corresponding target pages can be oriented from picture database, and in the above-mentioned Target Photo of rendering display in target application.
By embodiment provided by the present application, by the way that target pages to display are converted to Target Photo, storage is arrived In the matched picture database of target application, in order to fixed from Target Photo database according to the page iden-tity of target pages Position obtains Target Photo to be shown, fixed to reduce without traversing the text data in each page in target application again Position judges number, shortens positioning duration, to realize the location efficiency for improving positioning Target Photo, and then reaches raising display mesh Mark on a map page data included in piece display efficiency effect.As a kind of optional scheme, as shown in Figure 10, positioning is single First 904 include:
1) the first locating module 1002, the target pages for being identified in page iden-tity are non-the case where showing for the first time Under, positioning obtains Target Photo corresponding with page iden-tity in the pictures of picture database;
2) the second locating module 1004, target pages for being identified in page iden-tity are in the case where display for the first time, Target pages after typesetting are converted into Target Photo;The Target Photo being converted to is stored to picture database, and conduct Position obtained Target Photo corresponding with page iden-tity.
Specifically it is illustrated so that target application is electronic reading application as an example.For example, it is non-show for the first time in the case where, such as Shown in Fig. 4, operation has the electronic reading application in terminal 402, it is assumed that currently to display is the mesh that page iden-tity is 001 The page is marked, then the mesh that can be matched by the target pages identified to 404 request of picture database and page iden-tity 001 It marks on a map piece.Wherein, multiple Target Photos having been displayed are stored in picture database 404, such as picture 406-1, picture 406-2 Etc..
For example, when judge target pages that page iden-tity 001 is identified be it is non-show for the first time in the case where, it is assumed that page It is Target Photo 406-1 that the target pages that face mark 001 is identified, which match, then can be as shown in figure 4, positioning obtains target figure Piece 406-1, and the display interface of the client in target application is shown.
It, then can be in another example when in the case where judging target pages that page iden-tity 001 is identified is to show for the first time As shown in figure 5, the page text data obtained in target pages carry out typesetting, and target pages are converted into corresponding target figure Then piece 406-1 will be stored as the page iden-tity 001 of picture indices and Target Photo 406-1 to picture database 404.
Optionally, in the present embodiment, the second locating module further include: processing module, for by the target after typesetting Before conversion of page is Target Photo, thread poll is carried out using thread pool corresponding with text file where target pages, In, in the case where text file where target pages completes display, close line corresponding with text file where target pages Cheng Chi;In the case where text file where target pages does not complete display, the thread provided by thread pool is to being shown Target pages carry out typesetting.
It is specifically illustrated so that target application is electronic reading application as an example, it is assumed that be correspondingly arranged with the electronic reading application One thread pool, wherein the thread pool can be, but not limited to the equipment type and electronics for the terminal applied according to operational objective The file size of the e-book in application is read to establish to determine.
During display, each thread in thread pool can constantly carry out thread poll.Assuming that display books A is corresponding File a in target pages when, need to judge whether the target pages are the last page being shown in file a, i.e., by sentencing It is disconnected to determine whether this document a completes to show, after the completion of file a is all shown, then thread corresponding with this document a can be closed, To reduce the quantity of thread poll, to reach the processing load for reducing terminal, improves and pass through Target Photo shows target pages In page data display efficiency.
In addition, in the case where file a does not complete display, thread corresponding with above-mentioned file a can be monitored always, with judgement Whether need to carry out typesetting to the page in file a immediately.For example, being carried out detecting to receive to be used to indicate to target pages After the operational order of typesetting, then it can be controlled by the thread and typesetting is carried out to target pages, for example, determining typesetting pattern, and will Target pages after above-mentioned typesetting are converted to corresponding Target Photo, to store into picture database, while in electronic reading Rendering shows the Target Photo in.
It should be noted that file completes display where above-mentioned target pages, can be, but not limited to be not necessarily referring to target pages For the last page of file, and refer to whether all pages in this document are shown.
By embodiment provided by the present application, thread poll is carried out by thread pool corresponding with target application, with determination Whether file where target pages is completed to show, carries out quantity control to the thread run to realize, answered with mitigating target With the processing load of place terminal;Further, it is also possible to the real-time monitoring to target pages typesetting be realized, to guarantee the real-time of typesetting Property and display efficiency.
In addition, by embodiment provided by the present application, by utilization and the matched picture database of target application, according to page Face mark location to the matched Target Photo of target pages, can by the corresponding different target pages of different page iden-tities into Row quickly display, to improve user experience.
As a kind of optional scheme, the device further include:
1) the first storage unit, for being navigated to and the matched target of target pages in the page iden-tity according to target pages Before picture, the picture indices for being used to obtain Target Photo and Target Photo are stored into picture database, wherein picture rope The page iden-tity of target pages corresponding with Target Photo is included at least in drawing.
Specifically it is illustrated so that target application is electronic reading application as an example.As shown in fig. 6, each target pages is corresponding One page iden-tity, wherein assuming that Current electronic reads the page that application is shown in the target pages that page iden-tity 001 is identified Face text data, then can be after completing typesetting conversion operation, by page iden-tity 001 as matched with the target pages that are identified The picture indices of Target Photo 406-1 then will be used to obtain the picture indices (such as page iden-tity 001) and target figure of Target Photo Piece 406-1 is stored according to preset mapping relation into picture database 404;Assuming that Current electronic, which reads application, is shown to page mark Know the page text data in the target pages that 002 is identified, then it can be after completing typesetting conversion operation, by page iden-tity 002 As the picture indices with the matched Target Photo 406-2 of target pages identified, then it will be used to obtain the figure of Target Photo Piece indexes (such as page iden-tity 002) and Target Photo 406-2 and stores according to preset mapping relation into picture database 404;With This analogizes.
By embodiment provided by the present application, stored by the picture indices and Target Photo that will be used to obtain Target Photo Into picture database, wherein include at least the page iden-tity of target pages corresponding with Target Photo in picture indices, realize Any moment can quick displaying target picture, to improve user experience.
As a kind of optional scheme, the device further include:
1) second acquisition unit, in picture indices and the Target Photo storage that will be used to obtain Target Photo to picture When in database, in the case where label is established in Target Photo, the tag identifier of established label is obtained, wherein label For marking the page text data in Target Photo, tag identifier is used to identify the page text being labeled in Target Photo The coordinate position of data;
2) unit is established, the incidence relation for establishing between tag identifier and page iden-tity corresponding with Target Photo;
3) the second storage unit, for storing using tag identifier and page iden-tity as picture indices to picture database In.
It is specifically illustrated so that target application is electronic reading application as an example, as shown in Figure 7, it is assumed that two marks have been established Label, wherein the label information of label I includes: page iden-tity 001 and tag identifier (12,23), wherein tag identifier (12,23) Coordinate position for the page text data being labeled in Target Photo.The label information of label II includes: page iden-tity 002, And tag identifier (22,23), wherein tag identifier (22,23) is the coordinate bit for the page text data being labeled in Target Photo It sets.Above-mentioned label information and corresponding Target Photo are stored to picture database 404.Wherein it is possible to but be not limited to label Picture of the page iden-tity with tag identifier as corresponding Target Photo in information with incidence relation is indexed.
Optionally, in the present embodiment, a page iden-tity, which can be, but not limited to have with multiple tag identifiers, is associated with pass System.
By the embodiment of the present application, in the case where label is established in Target Photo, the label of established label is obtained Mark, establishes the incidence relation between tag identifier and page iden-tity corresponding with Target Photo, and by tag identifier and the page Mark is as picture indices storage into picture database.Realizing can use tag identifier and quickly locates Target Photo, And show the Target Photo, the process for carrying out typesetting again to text is eliminated, positioning time is saved, improves display effect Rate.
As a kind of optional scheme,
First acquisition unit includes: the first acquisition module, for obtaining the starting request for starting target application;Device Further include: the first resolution unit, for after obtaining data display request, the entrained last time to be moved back in parsing starting request The page iden-tity of the page shown when target application out;Or
First acquisition unit includes: the second acquisition module, for obtaining page jump request;Device further include: the second solution Unit is analysed, for after obtaining data display request, parsing page jump to request entrained page iden-tity;Or
First acquisition unit includes: that third obtains module, for obtaining tag location request;Device further include: third solution Unit is analysed, for after obtaining data display request, parsing label information entrained in tag location request, label information In include the page iden-tity that there is incidence relation with tag identifier, tag identifier is for identifying the target identified in page iden-tity The coordinate position for the page text data being labeled in picture.
It is specifically illustrated so that target application is electronic reading application as an example, as shown in figure 8, as a kind of optional implementation Mode, after electronic reading application gets starting request, parsing starting request is obtained included in starting request upper one Then the target pages that the secondary shown page last when exiting target application is identified by page iden-tity 001 pass through picture number Page iden-tity 001 is utilized according to library 404, navigates to the Target Photo 406-1 to match, and show Target Photo 406-1.
As another optional embodiment, configuration picture jumps catalogue in electronic reading application, for example, showing Insert pictures jump catalogue on the right side of interface, and it includes picture indices list, i.e. page iden-tity list in catalogue that wherein the picture, which jumps,. After getting to the execution clicking operation jump request generated of page iden-tity 002 in page iden-tity list, parsing should Jump request obtains the page iden-tity 002 for including in jump request, then, utilizes page iden-tity by picture database 404 002, the Target Photo 406-2 to match is navigated to, and show Target Photo 406-2.
As another optional embodiment, after electronic reading application gets tag location request, label is parsed Positioning obtains the label information for including in tag location request, including page iden-tity 003 and tag identifier (12,23).So Afterwards, the Target Photo 406- to match is navigated to using the above-mentioned label information as picture indices by picture database 404 3, and show Target Photo 406-3.
By embodiment provided by the present application, after obtaining data display request, the information respectively got is parsed, from And after realization receives starting request or jump request or tag location request, Target Photo is obtained at a terrific speed, The process for carrying out typesetting to text again is eliminated, display efficiency is improved.
Embodiment 3
According to embodiments of the present invention, additionally provide it is a kind of for implementing the electronic device of above-mentioned text data display methods, As shown in figure 11, which includes: one or more (only showing one in figure) processors 1101, memory 1103, shows Show device 1105, user interface 1107, coupler 1109 and multiple interfaces 1111, such as IEEE802.11 network interface, IEEE802.16 network interface and 3GPP interface, or remove other interfaces other than above-mentioned interface.
Wherein, memory 1103 can be used for storing software program and module, such as the text data in the embodiment of the present invention Display methods and the corresponding program instruction/module of device, the software that processor 1101 is stored in memory 1103 by operation Program and module realize above-mentioned text data display methods thereby executing various function application and data processing.It deposits Reservoir 1103 may include high speed random access memory, can also include nonvolatile memory, such as one or more magnetic storage Device, flash memory or other non-volatile solid state memories.In some instances, memory 1103 can further comprise opposite In the remotely located memory of processor 1101, these remote memories can pass through network connection to terminal.Above-mentioned network Example includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
It will appreciated by the skilled person that structure shown in Figure 11 is only to illustrate, electronic device is also possible to intelligence It can mobile phone (such as Android phone, iOS mobile phone), tablet computer, applause computer and mobile internet device (Mobile Internet Devices, MID), the terminal devices such as PAD.Figure 11 it does not cause to limit to the structure of above-mentioned electronic device.Example Such as, electronic device 11 may also include than shown in Figure 11 more perhaps less component or with different from shown in Figure 11 Configuration.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing the relevant hardware of terminal device by program, which can store in a computer readable storage medium In, storage medium may include: flash disk, read-only memory (Read-Only Memory, ROM), random access device (Random Access Memory, RAM), disk or CD etc..
Optionally, the specific example in the present embodiment can be shown with reference to described in above-described embodiment 1 and embodiment 2 Example, details are not described herein for the present embodiment.
Embodiment 4
The embodiments of the present invention also provide a kind of storage mediums.Optionally, in the present embodiment, above-mentioned storage medium can With at least one network equipment in multiple network equipments in network.
Optionally, in the present embodiment, storage medium is arranged to store the program code for executing following steps:
S1 obtains data display request, wherein data display request is used to request to be shown in the target pages of target application Included in page text data;
S2, in the matched picture database of target application, navigated to according to the page iden-tity of target pages and target The matched Target Photo of the page, wherein include page text data included in target pages, image data in Target Photo Library includes Target Photo in pictures for storing the pictures obtained according to the conversion of page in target application;
S3 shows the Target Photo navigated to.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or The various media that can store program code such as CD.
Optionally, the specific example in the present embodiment can be shown with reference to described in above-described embodiment 1 and embodiment 2 Example, details are not described herein for the present embodiment.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
If the integrated unit in above-described embodiment is realized in the form of SFU software functional unit and as independent product When selling or using, it can store in above-mentioned computer-readable storage medium.Based on this understanding, skill of the invention Substantially all or part of the part that contributes to existing technology or the technical solution can be with soft in other words for art scheme The form of part product embodies, which is stored in a storage medium, including some instructions are used so that one Platform or multiple stage computers equipment (can be personal computer, server or network equipment etc.) execute each embodiment side of the present invention The all or part of the steps of method.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed client, it can be by others side Formula is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of unit, and only one kind is patrolled Volume function division, there may be another division manner in actual implementation, such as multiple units or components can combine or can be with It is integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed mutual Coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of unit or module, can To be electrically or in the form of others.
Unit may or may not be physically separated as illustrated by the separation member, shown as a unit Component may or may not be physical unit, it can and it is in one place, or may be distributed over multiple networks On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
The above is only the preferred embodiment of the present invention, it is noted that those skilled in the art are come It says, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications also should be regarded as Protection scope of the present invention.

Claims (14)

1. a kind of text data display methods characterized by comprising
Obtain data display request, wherein the data display request is for requesting to be shown in the target pages of target application The page text data for being included;
With in the matched picture database of the target application, according to the page iden-tity of the target pages navigate to it is described The matched Target Photo of target pages, wherein include the page included in the target pages in the Target Photo Text data, the picture database are described for storing the pictures obtained according to the conversion of page in the target application It include the Target Photo in pictures;It is described in the matched picture database of the target application, according to the target It includes: the institute identified in the page iden-tity that the page iden-tity of the page, which is navigated to the matched Target Photo of the target pages, In the case where target pages are stated as non-display for the first time, positioning is obtained and the page in the pictures of the picture database Identify the corresponding Target Photo;In the case where the target pages that the page iden-tity is identified are to show for the first time, The target pages after typesetting are converted into the Target Photo;By the Target Photo being converted to storage to the figure Sheet data library, and the Target Photo corresponding with the page iden-tity obtained as positioning;
Show the Target Photo navigated to;
Wherein, before the target pages after typesetting are converted to the Target Photo, the method also includes: using with The corresponding thread pool of text file where the target pages carries out thread poll, wherein in text where the target pages In the case that file completes display, thread pool corresponding with text file where the target pages is closed;In the page object In the case that text file does not complete display where face, the thread provided by the thread pool is to the target to display The page carries out typesetting;Whether the thread in the thread pool needs immediately for monitoring in real time to text where the target pages File executes typesetting operation.
2. the method according to claim 1, wherein being positioned described according to the page iden-tity of the target pages To with before the matched Target Photo of the target pages, further includes:
The picture indices for being used to obtain the Target Photo and the Target Photo are stored into the picture database, In, the page iden-tity of the target pages corresponding with the Target Photo is included at least in the picture indices.
3. according to the method described in claim 2, it is characterized in that, in the picture rope that will be used to obtain the Target Photo Draw and the Target Photo storage into the picture database when, further includes:
In the case where establishing label in the Target Photo, the tag identifier for the label established is obtained, wherein described Label is used to mark the page text data in the Target Photo, and the tag identifier is for identifying in the Target Photo The coordinate position of labeled page text data;
The incidence relation between the tag identifier and the page iden-tity corresponding with the Target Photo is established, and will be described Tag identifier and the page iden-tity are stored as the picture indices into the picture database.
4. the method according to claim 1, wherein
The data display request that obtains includes: that the starting obtained for starting the target application is requested;In the acquisition number After display request, further includes: the entrained last time exits the target application Shi Suoxian in the parsing starting request The page iden-tity of the page shown.
5. the method according to claim 1, wherein
The acquisition data display request includes: to obtain page jump request;After the acquisition data display request, also wrap It includes: parsing the entrained page iden-tity of the page jump request;Or the acquisition data display request includes: acquisition label Location Request.
6. the method according to claim 1, wherein
After the acquisition data display request, further includes: entrained label information in parsing tag location request, it is described It include the page iden-tity that there is incidence relation with tag identifier in label information, the tag identifier is for identifying described The coordinate position for the page text data being labeled in the Target Photo that page iden-tity is identified.
7. the method according to claim 3 or 6, which is characterized in that the page iden-tity and one or more label marks Knowing has the incidence relation.
8. the method according to claim 4 or 5, which is characterized in that the page iden-tity and one or more label marks Knowing has incidence relation.
9. a kind of text data display device characterized by comprising
First acquisition unit, for obtaining data display request, wherein the data display request is shown in target for requesting Page text data included in the target pages of application;
Positioning unit, for in the matched picture database of the target application, according to the page mark of the target pages Knowledge navigates to and the matched Target Photo of the target pages, wherein includes institute in the target pages in the Target Photo The page text data for including, the picture database are obtained for storing according to the conversion of page in the target application Pictures, include the Target Photo in the pictures;The positioning unit includes: the first locating module, in institute In the case where the target pages that page iden-tity is identified are stated as non-display for the first time, in the picture of the picture database Positioning is concentrated to obtain the Target Photo corresponding with the page iden-tity;Second locating module, in the page iden-tity The target pages identified are that in the case where showing for the first time, the target pages after typesetting are converted to the target figure Piece;The Target Photo being converted to is stored to the picture database, and obtaining with the page mark as positioning Know the corresponding Target Photo;
Display unit, for showing the Target Photo navigated to;
Processing module, for before the target pages by after typesetting are converted to the Target Photo, using with institute The corresponding thread pool of text file where stating target pages carries out thread poll, wherein in text text where the target pages In the case that part completes display, thread pool corresponding with text file where the target pages is closed;In the target pages In the case that place text file does not complete display, the thread provided by the thread pool is to the page object to display Face carries out typesetting;Whether the thread in the thread pool needs immediately for monitoring in real time to text text where the target pages Part executes typesetting operation.
10. device according to claim 9, which is characterized in that further include:
First storage unit is matched for navigating in the page iden-tity according to the target pages with the target pages Target Photo before, by the picture indices for being used to obtain the Target Photo and Target Photo storage to the picture number According in library, wherein include at least the page iden-tity of the target pages corresponding with the Target Photo in the picture indices.
11. device according to claim 10, which is characterized in that further include:
Second acquisition unit, for storing the picture indices for being used to obtain the Target Photo and the Target Photo described When into the picture database, in the case where establishing label in the Target Photo, the label established is obtained Tag identifier, wherein the label is used to mark the page text data in the Target Photo, and the tag identifier is for marking Know the coordinate position for the page text data being labeled in the Target Photo;
Unit is established, the association for establishing between the tag identifier and the page iden-tity corresponding with the Target Photo Relationship;
Second storage unit, for storing using the tag identifier and the page iden-tity as the picture indices to the figure In sheet data library.
12. device according to claim 9, which is characterized in that
The first acquisition unit includes: the first acquisition module, for obtaining the starting request for starting the target application; Described device further include: the first resolution unit, for after the acquisition data display request, parsing in the starting request The entrained last time exits the page iden-tity of the page shown when the target application;Or
The first acquisition unit includes: the second acquisition module, for obtaining page jump request;Described device further include: the Two resolution units, for after the acquisition data display request, parsing the entrained page mark of the page jump request Know;Or
The first acquisition unit includes: that third obtains module, for obtaining tag location request;Described device further include: the Three resolution units, for after the acquisition data display request, parsing label entrained in the tag location request Information, includes the page iden-tity for having incidence relation with tag identifier in the label information, and the tag identifier is used for Identify the coordinate position for the page text data being labeled in the Target Photo that the page iden-tity is identified.
13. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein when described program is run Execute method described in any one of claim 1 to 8.
14. a kind of electronic device, including memory, processor and it is stored on the memory and can transports on the processor Capable computer program, which is characterized in that the processor executes the claim 1 to 8 times by the computer program Method described in one.
CN201710668583.9A 2017-08-07 2017-08-07 Text data display methods and device and storage medium and electronic device Active CN107562802B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710668583.9A CN107562802B (en) 2017-08-07 2017-08-07 Text data display methods and device and storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710668583.9A CN107562802B (en) 2017-08-07 2017-08-07 Text data display methods and device and storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN107562802A CN107562802A (en) 2018-01-09
CN107562802B true CN107562802B (en) 2019-05-24

Family

ID=60975216

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710668583.9A Active CN107562802B (en) 2017-08-07 2017-08-07 Text data display methods and device and storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN107562802B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1178354A (en) * 1996-08-13 1998-04-08 株式会社理光 Page editing method and document image processing system and data recording media
CN101258461A (en) * 2005-09-09 2008-09-03 微软公司 Reading mode for electronic documents
CN101751476A (en) * 2010-02-02 2010-06-23 汉王科技股份有限公司 Method and device for marking electronic bookmarks
CN101971171A (en) * 2008-02-19 2011-02-09 布克里克斯有限两合公司 Method and apparatus for the page-by-page provision of an electronic document as a computer graphic
CN104636396A (en) * 2013-11-13 2015-05-20 阿里巴巴集团控股有限公司 Page positioning method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080033969A1 (en) * 2006-08-04 2008-02-07 Sing Chi Koo Electronic document management method and system
CN103678503A (en) * 2013-11-20 2014-03-26 武汉聚视欣联文化传媒技术有限公司 Method and device for providing target picture in video access
CN104573001A (en) * 2015-01-07 2015-04-29 北京联合大学 Mobile terminal-based webpage data acqusition and classification method
CN106294339A (en) * 2015-05-12 2017-01-04 阿里巴巴集团控股有限公司 The method and device Loaded Image in application

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1178354A (en) * 1996-08-13 1998-04-08 株式会社理光 Page editing method and document image processing system and data recording media
CN101258461A (en) * 2005-09-09 2008-09-03 微软公司 Reading mode for electronic documents
CN101971171A (en) * 2008-02-19 2011-02-09 布克里克斯有限两合公司 Method and apparatus for the page-by-page provision of an electronic document as a computer graphic
CN101751476A (en) * 2010-02-02 2010-06-23 汉王科技股份有限公司 Method and device for marking electronic bookmarks
CN104636396A (en) * 2013-11-13 2015-05-20 阿里巴巴集团控股有限公司 Page positioning method and device

Also Published As

Publication number Publication date
CN107562802A (en) 2018-01-09

Similar Documents

Publication Publication Date Title
US9734261B2 (en) Context aware query selection
CN105282010B (en) Processing method, device and the server that information is shared
CN108021320B (en) Electronic equipment and item searching method thereof
CN108363811A (en) Device identification method and device, electronic equipment, storage medium
US20140344907A1 (en) Auto login method and device
US20080229190A1 (en) System and method of providing an e-book
CN106484383A (en) page rendering method, device and equipment
CN109299399B (en) Learning content recommendation method and terminal equipment
CN105009113A (en) Queryless search based on context
CN103988202A (en) Image attractiveness based indexing and searching
US9633272B2 (en) Real time object scanning using a mobile phone and cloud-based visual search engine
EP3084568A1 (en) Customized contextual user interface information displays
CN108846030B (en) method, system, electronic device and storage medium for visiting official website
CN106657774A (en) Method and device for recording video
CN105955593B (en) Method and device for presenting discussion information
CN112100431A (en) Evaluation method, device and equipment of OCR system and readable storage medium
CN109462632A (en) Method for page jump, device, computer equipment and computer readable storage medium
CN104951700A (en) Webpage loophole detecting method and device
US20160328110A1 (en) Method, system, equipment and device for identifying image based on image
CN106067897A (en) Information-pushing method based on user terminal location and device
CN104090899A (en) Method and device for feeding back display content information
CN110177039A (en) Message sharing method, device, computer equipment and storage medium
CN109819002A (en) Data push method and device, storage medium and electronic device
CN107562802B (en) Text data display methods and device and storage medium and electronic device
CN111310078B (en) Method and device for determining search result display strategy

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