CN103455503B - Word stock collection, webpage rendering intent, apparatus and system - Google Patents

Word stock collection, webpage rendering intent, apparatus and system Download PDF

Info

Publication number
CN103455503B
CN103455503B CN201210176700.7A CN201210176700A CN103455503B CN 103455503 B CN103455503 B CN 103455503B CN 201210176700 A CN201210176700 A CN 201210176700A CN 103455503 B CN103455503 B CN 103455503B
Authority
CN
China
Prior art keywords
data
mobile terminal
character library
web
character
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
CN201210176700.7A
Other languages
Chinese (zh)
Other versions
CN103455503A (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 CN201210176700.7A priority Critical patent/CN103455503B/en
Publication of CN103455503A publication Critical patent/CN103455503A/en
Application granted granted Critical
Publication of CN103455503B publication Critical patent/CN103455503B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of word stock collection, webpage rendering intent, apparatus and system, belong to computer realm.The word stock collection includes:The unique identifying information that mobile terminal is sent is received, the unique identifying information is corresponding with the character library supported in the mobile terminal;Judge whether the unique identifying information is identical with the unique identifying information corresponding to the character library being locally stored;If it is different, then need to upload the instruction of character library to mobile terminal feedback, so that the mobile terminal uploads the character library supported in the mobile terminal to local.The present invention by unique identifying information by making the synchronization that character library is kept between mobile terminal and server, server is rendered using the character library of suitable mobile terminal to web data, the web data after preferably rendering can always be provided to mobile terminal by having reached server, and then mobile terminal can perfectly show the effect of webpage according to the web data after rendering.

Description

Word stock collection, webpage rendering intent, apparatus and system
Technical field
The present invention relates to computer realm, more particularly to a kind of word stock collection, webpage rendering intent, device and it is System.
Background technology
With the development of computer and Internet technology, the mobile terminal of such as smart mobile phone, tablet personal computer etc is used It is one of application most commonly seen in people's daily life to browse webpage.
At present, although the computing capability of mobile terminal is constantly developing and strengthened, due to during browsing webpage Webpage render process need substantial amounts of computing, so still often there is interim card and wash with watercolours in webpage render process in mobile terminal Contaminate situations such as slow.In order to solve the technical problem, a kind of Web browser method provided in the prior art is:First, move Dynamic terminal passes through URL(Universal Resource Locator, URL)Initiate to access to proxy server Request;Second, proxy server web data according to corresponding to the URL to web page server crawl;3rd, proxy server root Webpage is carried out according to the web data grabbed to render;4th, the web data rendered is sent to mobile whole by proxy server End;5th, mobile terminal draws webpage according to the web data rendered and is shown to user.
During the present invention is realized, inventor has found that prior art at least has problems with:Except mobile terminal Computing capability outside development, font used in mobile terminal and the character set supported also in continuous development and change, Become increasingly to enrich.In particular with international progress, mobile terminal also to move to support different category of language Character library used in dynamic terminal(Including font and character set)Species it is more.In such scheme, if proxy server institute Character library used in the character library and mobile terminal used mismatches, then mobile terminal web page display occurs unsightly, word graph Piece has situations such as overlapping or widely spaced.
The content of the invention
In order to solve when character library mismatches used in character library used in proxy server and mobile terminal, it may appear that Unsightly, word picture has situations such as overlapping or widely spaced to mobile terminal web page display, and the embodiments of the invention provide one kind Word stock collection, webpage rendering intent, apparatus and system.The technical scheme is as follows:
According to an aspect of the present invention, the embodiment of the present invention provides a kind of word stock collection, and methods described includes:
The unique identifying information that mobile terminal is sent is received, the unique identifying information in the mobile terminal with being supported Character library it is corresponding;
Judge whether the unique identifying information is identical with the unique identifying information corresponding to the character library being locally stored;
If it is different, then need to upload the instruction of character library to mobile terminal feedback, so that the mobile terminal uploads The character library supported in the mobile terminal is to local.
Further, the unique identifying information for receiving mobile terminal and uploading, the unique identifying information and the shifting Before the character library supported in dynamic terminal corresponds to, in addition to:
The mobile terminal collects at least one character library of itself support;
For each character library, according to included at least one character set information and default hash algorithm meter in the character library Calculate at least one cryptographic Hash, corresponding to each cryptographic Hash and a character set information, and at least one Hash that will be calculated It is worth the unique identifying information as the character library.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought includes:
Whether need to upload the character library of itself support to proxy server by unique identifying information come guiding mobile terminal, So that proxy server can always be prestored to the character library that mobile terminal is supported, so as to follow-up rendering.By first allowing shifting Dynamic terminal uploads unique identifying information, rather than directly uploads character library so that mobile terminal ability only when needing to upload character library Character library is uploaded, the upload flow of mobile terminal can be efficiently reduced, avoids unwanted flow from wasting.
According to another aspect of the present invention, the embodiments of the invention provide a kind of webpage rendering intent, methods described to include:
Receive web page address and unique identifying information that mobile terminal is sent;
The web data according to corresponding to obtaining the web page address;
The character library according to corresponding to the unique identifying information in local search;
The character library according to inquiring renders to the web data, with the web data after being rendered and anti- Feed the mobile terminal.
Further, before the character library that the basis inquires renders to the web data, in addition to:
Receive the screen message that the mobile terminal is sent;
The character library that the basis inquires renders to the web data, corresponding to include:
The character library and the screen message according to inquiring render to the web data.
Further, the web data according to corresponding to obtaining the web page address, is specifically included:
The Initial page data according to corresponding to obtaining the web page address;
Judge whether include script data in the Initial page data;
If it is, the script data in the Initial page data is performed, to obtain the web data.
Further, the web data with after being rendered and the mobile terminal is fed back to, specifically included:
Web data after described render is compressed;
Web data after being rendered described in overcompression is sent to the mobile terminal.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought includes:
First, by making the synchronization that character library is kept between mobile terminal and server by unique identifying information so that Server can be rendered using the character library of suitable mobile terminal to web data, so as to solve when server is used Character library and mobile terminal used in character library mismatch when, it may appear that unsightly, word picture has mobile terminal web page display Situations such as overlapping or widely spaced, the web data after preferably rendering can always be provided to mobile whole by having reached server End, then mobile terminal can perfectly show the effect of webpage according to the web data after rendering;
Second, server sends the web data after rendering to mobile terminal by compressed data, reduces mobile whole The downloading flow at end, the effect of rate produced by the flow for saving mobile terminal is reached.
In accordance with a further aspect of the present invention, the embodiments of the invention provide a kind of server, the server to include:
Information receiving module, for receiving the unique identifying information of mobile terminal transmission, the unique identifying information and institute It is corresponding to state the character library supported in mobile terminal;
Signal judgement module, for judge the unique identifying information whether with it is unique corresponding to the character library that is locally stored Identification information is identical;
Instruction feedback module, if being difference for described information judge module judged result, to the mobile terminal Feedback needs to upload the instruction of character library, so that the mobile terminal uploads the character library supported in the mobile terminal to local. According to another aspect of the invention, the embodiments of the invention provide a kind of mobile terminal, the terminal to include:
Character library collection module, for collecting at least one character library of itself support;
Information computational module, for for each character library, being believed according at least one character set included in the character library Breath and default hash algorithm, which calculate, arrives at least one cryptographic Hash, corresponding to each cryptographic Hash and a character set information, and will meter Unique identifying information of at least one cryptographic Hash arrived as the character library.
Further, the mobile terminal, in addition to:
Command reception module, the instruction for the upload character library of the reception server feedback;
Character library uploading module, after receiving the instruction for uploading character library in the command reception module, upload At least one character library that itself is supported;
Information uploading module, for uploading the unique identifying information to server.Meanwhile the embodiment of the present invention is also a kind of Character library collection system, including server as described above and mobile terminal as described above.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought includes:
Whether need to upload the character library of itself support to proxy server by unique identifying information come guiding mobile terminal, So that proxy server can always be prestored to the character library that mobile terminal is supported, so as to follow-up rendering.By first allowing shifting Dynamic terminal uploads unique identifying information, rather than directly uploads character library so that mobile terminal ability only when needing to upload character library Character library is uploaded, the upload flow of mobile terminal can be efficiently reduced, avoids unwanted flow from wasting.
According to the further aspect of the present invention, the embodiments of the invention provide a kind of server, the server includes:
Request receiving module, for receiving the web page address and unique identifying information of mobile terminal transmission;
Data acquisition module, for the web data according to corresponding to web page address acquisition;
Character library enquiry module, for according to the unique identifying information in local search corresponding to character library;
Webpage rendering module, the web data is rendered according to the character library inquired, after being rendered Web data and feed back to the mobile terminal.
Further, the server, in addition to:
Hold one's breath receiving module, the screen message sent for receiving the mobile terminal;
The webpage rendering module, the character library inquired specifically for basis and the screen message are to the webpage Data are rendered.
Further, the data acquisition module, is specifically included:
Data capture unit, script judging unit and script executing unit;
The data capture unit, for the Initial page data according to corresponding to web page address acquisition;
The script judging unit, for judging whether include script data in the Initial page data;
The script executing unit, if the judged result for the script judging unit is yes, perform described first Script data in beginning web data, to obtain the web data.
Further, the webpage rendering module, is specifically included:
Data render unit, data compression unit and data transmission unit;
The data render unit, for being rendered according to the character library inquired to the web data;
The data compression unit, for the web data after described render to be compressed;
The data transmission unit, it is described mobile whole for the web data after being rendered described in overcompression to be sent to End.
In accordance with a further aspect of the present invention, the embodiments of the invention provide a kind of mobile terminal, it includes:
Information sending module, it is described unique for sending web page address and unique identifying information to be visited to server Identification information is corresponding with the character library that itself is supported;
Data reception module, the web data after being rendered for receive that the server sends;
Web displaying module, draw webpage for the web data after being rendered according to and show.
Further, the data reception module, is specifically included:
Data receipt unit and data decompression units;
The data receipt unit, the webpage number after being rendered described in overcompression sent for receiving the server According to;
The data decompression unit, for the web data after being rendered described in overcompression to be decompressed.
Meanwhile the embodiment of the present invention additionally provides a kind of webpage display system, including server as described above and as above Described mobile terminal.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought includes:
First, by making the synchronization that character library is kept between mobile terminal and server by unique identifying information so that Server can be rendered using the character library of suitable mobile terminal to web data, so as to solve when server is used Character library and mobile terminal used in character library mismatch when, it may appear that unsightly, word picture has mobile terminal web page display Situations such as overlapping or widely spaced, the web data after preferably rendering can always be provided to mobile whole by having reached server End, then mobile terminal can perfectly show the effect of webpage according to the web data after rendering;
Second, server sends the web data after rendering to mobile terminal by compressed data, reduces mobile whole The downloading flow at end, the effect of rate produced by the flow for saving mobile terminal is reached.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, make required in being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings Accompanying drawing.
Fig. 1 is the implementation environment schematic diagram involved by the embodiment of the present invention;
Fig. 2 is the method flow diagram for the webpage rendering intent that the embodiment of the present invention one provides;
Fig. 3 is the method flow diagram for the webpage rendering intent that the embodiment of the present invention two provides;
Fig. 4 is the implementation schematic diagram for the webpage rendering intent that the embodiment of the present invention two provides;
Fig. 5 is the method flow diagram for the word stock collection that the embodiment of the present invention three provides;
Fig. 6 is the block diagram for the character library collection system that the embodiment of the present invention four provides;
Fig. 7 is the block diagram for the webpage display system that the embodiment of the present invention five provides;
Fig. 8 is the block diagram for the mobile terminal that the embodiment of the present invention six provides;
Fig. 9 is a kind of block diagram for the server that the embodiment of the present invention seven provides;
Figure 10 is another block diagram for the server that the embodiment of the present invention seven provides;
Figure 11 is the another block diagram for the server that the embodiment of the present invention seven provides.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention Formula is described in further detail.
For the ease of description, please with reference first to Fig. 1, it illustrates the signal of the implementation environment involved by the embodiment of the present invention Figure.The implementation environment includes mobile terminal 120, proxy server 140 and web page server 160.
Mobile terminal 120 can be smart mobile phone, the tablet personal computer that operation has browser.User can utilize mobile terminal 120 browse webpage.For example user can send URL by mobile terminal 120 to proxy server(Namely:Web page address) To initiate web access requests.
Proxy server 140 is used to replace mobile terminal 120 to obtain web data corresponding to URL to web page server 160, Proxy server 140 can replace mobile terminal 120 to carry out a certain degree of pretreatment to the web data got simultaneously.
Web page server 160 is the server for being stored with web data.Such as the web of the opening of certain Company Establishment Server.
Embodiment one
Fig. 2 is refer to, the method flow diagram of the webpage rendering intent provided it illustrates the embodiment of the present invention one.The webpage Rendering intent can be used in the proxy server 140 shown in Fig. 1, and the webpage rendering intent can include:
Step 202, the web page address and unique identifying information that mobile terminal is sent are received;
When mobile terminal needs to access webpage, web page address and unique identifying information can be sent to proxy server. Wherein, web page address can be URL, and unique identifying information is then to represent the character library that the mobile terminal is supported.Unique identification is believed Breath can be one group of cryptographic Hash.Character library is the electronic characters font set storehouse of foreign language font, Chinese font and relevant character.
Step 204, the web data according to corresponding to obtaining web page address;
After proxy server receives web page address, can according to web page address to web page server obtain corresponding to webpage Data.Web data can include:HTML(Hypertext Markup Language, HTML)Data, Javascript scripts, CSS(Cascading Style Sheet, Cascading Style Sheet)Pattern etc..
Step 206, the character library according to corresponding to unique identifying information in local search;
Meanwhile proxy server can also be unique with this in local data library inquiry according to the unique identifying information received The corresponding character library of identification information.This step can also be carried out before the step 204 or simultaneously.
Step 208, web data is rendered according to the character library inquired, with the web data after being rendered and anti- Feed mobile terminal.
After proxy server grabs web data from web page server, the character library inquired can be utilized to webpage Data are rendered, render process can including typesetting etc. step.Then proxy server can be by the web data after rendering Mobile terminal is fed back to, after mobile terminal receives the web data after this is rendered, can directly draw display webpage.
In summary, the webpage rendering intent that the present embodiment provides, can be by unique identifying information come server Know the character library that mobile terminal is supported so that server can be desired access to using the character library that mobile terminal is supported to it Web data rendered, work as character library used in character library used in proxy server and mobile terminal not so as to solve During matching, it may appear that unsightly, word picture has situations such as overlapping or widely spaced to mobile terminal web page display, has reached service Device can always provide the web data after preferably rendering to mobile terminal, and then mobile terminal can be according to the net after rendering Page data perfectly shows the effect of webpage.
Embodiment two
Fig. 3 is refer to, the method flow diagram of the webpage rendering intent provided it illustrates the embodiment of the present invention two.The webpage Rendering intent can be used in the proxy server 140 shown in Fig. 1, and the webpage rendering intent can include:
Step 302, web page address, unique identifying information and the screen message that mobile terminal is sent are received;
When mobile terminal need access webpage when, can to proxy server send web page address, unique identifying information and Screen message.Wherein, web page address can be URL, and unique identifying information is then to represent the character library that the mobile terminal is supported.Only One identification information can be one group of cryptographic Hash.Character library is the electronic characters font of foreign language font, Chinese font and relevant character Gather storehouse.
And screen message can be the screen resolution of mobile terminal, such as the pixels of 320 pixel * 240,960 pixel * 640 Pixel etc..Screen message can be used for instructing the typesetting in webpage render process.
Step 304, the web data according to corresponding to obtaining web page address;
After proxy server receives web page address, can according to web page address to web page server obtain corresponding to webpage Data.Web data can include:HTML(Hypertext Markup Language, HTML)Data, Javascript scripts, CSS(Cascading Style Sheet, Cascading Style Sheet)Pattern etc..In order to preferably mitigate The amount of calculation of mobile terminal side.This step can specifically include:
First, the Initial page data according to corresponding to obtaining web page address;
Proxy server can first according to web page address by corresponding Webpage data capturing to local, now not to these nets Page data does other processing, and these web datas are referred to as into Initial page data herein.
Second, judge whether include script data in Initial page data;
Proxy server is grabbed after Initial page data, it can be determined that wherein whether there is such as Javascript scripts Etc script data.
3rd, if it is, the script data in Initial page data is performed, to obtain web data.
If including Javascript scripts in Initial page data, proxy server can be held in advance instead of mobile terminal Row Javascript scripts, so as to obtain web data after treatment.Certainly, if Initial page data do not include Javascript scripts, then can be without pre-execution the step of.
Step 306, the character library according to corresponding to unique identifying information in local search;
On the other hand, multiple character libraries are previously stored with proxy server, each character library is corresponding with one group of cryptographic Hash and made For unique identifying information.Proxy server can also according to the unique identifying information received local data library inquiry and this only The corresponding character library of one identification information.This step can also be carried out before or while step 304.
Step 308, web data is rendered according to the character library and screen message that inquire, with the net after being rendered Page data simultaneously feeds back to mobile terminal.
Proxy server can render according to the character library and screen message inquired to web data, and render process can With the step such as including typesetting, so as to the web data after being rendered.Only include that " motherland is willing to by I Love You China with web page contents It is forever prosperous and powerful " exemplified by, a region 40 to be rendered can be obtained according to screen message, as shown in figure 4, proxy server Region 40 can be divided into by several height according to the font height information in character library and be equal to or slightly greater than font height letter The stripe region 42 of breath, according still further to single character in character library width information by each character in web data according to from a left side to Typesetting enters in several stripe regions 42 right, order from top to bottom successively, so as to obtain the character area after typesetting.Arranging During version, when the character duration accumulated value of all characters in same stripe region 42 exceedes the length of the stripe region When, the typesetting of typesetting character currently will be treated into next line stripe region 42, then in conjunction with other rendering steps, can be rendered Web data afterwards.Certainly, if web data also includes the contents such as picture, music, script and CSS style, rendered Journey can accordingly include other steps, and this is content well-known to those skilled in the art, is no longer repeated one by one herein.
Then the web data after rendering can be sent to mobile terminal by proxy server, so that mobile terminal is according to wash with watercolours Web data after dye is directly drawn and shows webpage.Now, can be as follows in order to save the flow of mobile terminal Carry out:
First, the web data after rendering is compressed by proxy server;
Second, the web data after the rendering of overcompression is sent to mobile terminal by proxy server.
Similarly, mobile terminal is when receiving the web data after the rendering of overcompression, it is also desirable to according to corresponding Decompress the web data after could being rendered.
In summary, the webpage rendering intent that the present embodiment provides, can be by unique identifying information come server Know the character library that mobile terminal is supported so that server can be desired access to using the character library that mobile terminal is supported to it Web data rendered, work as character library used in character library used in proxy server and mobile terminal not so as to solve During matching, it may appear that unsightly, word picture has situations such as overlapping or widely spaced to mobile terminal web page display, has reached service Device can always provide the web data after preferably rendering to mobile terminal, and then mobile terminal can be according to the net after rendering Page data perfectly shows the effect of webpage.
Obviously, above-mentioned webpage rendering intent is required to proxy server and has prestored character library and corresponding cryptographic Hash Come, the process prestored, can be realized by following examples.
Embodiment three
Fig. 5 is refer to, the method flow diagram of the word stock collection provided it illustrates the embodiment of the present invention three.The character library Collection method can apply in mobile terminal 120 and proxy server 140 shown in Fig. 1.The word stock collection can wrap Include:
Step 502, mobile terminal collects at least one character library of itself support;
When mobile terminal is installing browser first time, the character library of itself support can be collected, usually a character library, It is also likely to be multiple character libraries.
Step 504, for each character library, calculated according to included at least one character set information in character library and default Hash Method, which calculates, arrives at least one cryptographic Hash, corresponding to each cryptographic Hash and a character set information, and it is at least one by what is calculated Unique identifying information of the cryptographic Hash as the character library.
When mobile terminal is collected into the character library of itself support, for each character library, it is required to calculate one group of cryptographic Hash. Due to generally including one or more character set information in each character library, so mobile terminal can be according to default hash algorithm Each character set information calculates a cryptographic Hash, and such a character library can calculate one or more cryptographic Hash, then move Terminal can be by this one or more cryptographic Hash(Namely one group of cryptographic Hash)Unique identifying information as this character library.
Step 506, the unique identifying information that mobile terminal is sent is received, unique identifying information in mobile terminal with being supported Character library it is corresponding;
, can will only in browser installation process after the unique identifying information of all character libraries is calculated in mobile terminal One identification information is sent to proxy server.Proxy server can receive the unique identifying information of mobile terminal transmission.
Step 508, judge whether unique identifying information is identical with the unique identifying information corresponding to the character library being locally stored;
Proxy server is received after the unique identifying information of mobile terminal transmission, it can be determined that is deposited in local data base Unique identifying information corresponding to each character library of storage whether there is the unique identifying information identical sent with mobile terminal.Such as The unique identifying information that fruit has a local character library is identical with the unique identifying information that mobile terminal is sent, then it represents that agency's clothes The character library is stored in business device, it is not necessary to which mobile terminal uploads the character library again, and now proxy server can be to movement eventually End feedback need not upload the instruction of character library.
Step 510, if it is different, then needing to upload the instruction of character library to mobile terminal feedback, so that mobile terminal uploads The character library supported in mobile terminal is to local.
If proxy server judges to send with mobile terminal in the absence of the unique identifying information of any one local character library Unique identifying information it is identical, then it represents that do not store the character library in proxy server also, now proxy server to it is mobile eventually End feedback needs to upload the instruction of character library, so that mobile terminal uploads the character library supported in mobile terminal to local, Ran Houdai Reason server can store corresponding character library and unique identifying information.
In summary, the word stock collection that the present embodiment provides, it is come guiding mobile terminal by unique identifying information The no character library for needing to upload itself support is to proxy server so that proxy server can always be prestored to mobile terminal The character library supported, so as to follow-up rendering.Especially, the word stock collection that the present embodiment provides is not direct by mobile terminal Character library is uploaded, but first allows mobile terminal to upload unique identifying information so that mobile terminal ability only when needing to upload character library Character library is uploaded, the upload flow of mobile terminal can be efficiently reduced, avoids unwanted flow from wasting.
Example IV
Fig. 6 is refer to, the block diagram of the character library collection system provided it illustrates the embodiment of the present invention four.The character library Collection system includes mobile terminal 620 and server 640.
Mobile terminal 620 can include character library collection module 621, information computational module 622, information uploading module 623, refer to Make receiving module 624 and character library uploading module 625.
Character library collection module 621 is used at least one character library for collecting mobile terminal 620 itself support.
Information computational module 622 is used for each character library being collected into for character library collection module 621, is wrapped according in character library At least one character set information included and default hash algorithm, which calculate, arrives at least one cryptographic Hash, each cryptographic Hash and a character Collect corresponding to information, and the unique identifying information using at least one cryptographic Hash calculated as the character library.
Information uploading module 623 is used for unique identifying information that upload information computing module 622 calculates to server, so as to Whether server feedback needs to upload the instruction of character library.
Command reception module 624 is used for the instruction of the upload character library of the reception server feedback.
Character library uploading module 625 is used for after command reception module 624 receives the instruction for uploading character library, uploads itself At least one character library supported.
Server 640 can include information receiving module 642, signal judgement module 644 and instruction feedback module 646.
Information receiving module 642 is used for the unique identifying information for receiving mobile terminal transmission, unique identifying information and movement The character library supported in terminal is corresponding.
Signal judgement module 644 be used to judging unique identifying information that information receiving module 642 receives whether with local Unique identifying information corresponding to the character library of storage is identical.
If the judged result that instruction feedback module 646 is used for signal judgement module 644 is difference, anti-to mobile terminal Feedback needs to upload the instruction of character library, so that mobile terminal uploads the character library supported in mobile terminal to local.
In summary, the present embodiment provide character library collection system by unique identifying information come guiding mobile terminal whether The character library for needing to upload itself support is to proxy server so that proxy server can always be prestored to mobile terminal institute The character library of support, so as to follow-up rendering.Especially, the present embodiment provide word stock collection not by mobile terminal it is direct on Character library is passed, but first allows mobile terminal to upload unique identifying information so that mobile terminal is only when needing to upload character library in Character library is passed, the upload flow of mobile terminal can be efficiently reduced, avoids unwanted flow from wasting.
It should be noted that:The character library collection system that above-described embodiment provides is when collecting character library, only with above-mentioned each function The division progress of module, can be as needed and by above-mentioned function distribution by different function moulds for example, in practical application Block is completed, i.e., the internal structure of device is divided into different functional modules, to complete all or part of work(described above Energy.In addition, the character library collection system that above-described embodiment provides belongs to same design with word stock collection embodiment, it is specific real Existing process refers to embodiment of the method, repeats no more here.
Embodiment five
Fig. 7 is refer to, the block diagram of the webpage display system provided it illustrates the embodiment of the present invention four.The webpage Display system includes mobile terminal 720 and server 740.
Mobile terminal 720 can include information sending module 722, data reception module 724 and web displaying module 726.
Information sending module 722 is used to send web page address and unique identifying information to be visited to server 740, uniquely Identification information is corresponding with the character library that itself is supported.
Data reception module 724 be used for the reception server 740 send render after web data.
Web displaying module 726 draws net for the web data after what is received according to data reception module 724 renders Page is simultaneously shown.
Server 740 can include request receiving module 742, data acquisition module 744, character library enquiry module 746 and net Page rendering module 748,
Request receiving module 742 is used for the web page address and unique identifying information for receiving mobile terminal transmission.
Data acquisition module 744 is used for the webpage according to corresponding to the web page address acquisition that request receiving module 742 receives Data.
The unique identifying information that character library enquiry module 746 is used to be received according to request receiving module 742 is in local search Corresponding character library.
Webpage rendering module 748 is got according to the character library that character library enquiry module 746 inquires to data acquisition module 744 Web data rendered, with the web data after being rendered and feed back to mobile terminal 720.
In summary, the webpage display system that the present embodiment provides, can be by unique identifying information come server Know the character library that mobile terminal is supported so that server can be desired access to using the character library that mobile terminal is supported to it Web data rendered, work as character library used in character library used in proxy server and mobile terminal not so as to solve During matching, it may appear that unsightly, word picture has situations such as overlapping or widely spaced to mobile terminal web page display, has reached service Device can always provide the web data after preferably rendering to mobile terminal, and then mobile terminal can be according to the net after rendering Page data perfectly shows the effect of webpage.
Embodiment six
In order to which the mobile terminal in embodiment five is further illustrated, Fig. 8 is refer to, it illustrates of the invention real The block diagram of the mobile terminal of the offer of example four is provided.The mobile terminal includes information sending module 722, data reception module 724 and web displaying module 726.
Information sending module 722 is used to send web page address and unique identifying information to be visited, Wei Yishi to server Other information is corresponding with the character library that itself is supported.
Data reception module 724 be used for the reception server send render after web data.Data reception module 724 can To specifically include:Data receipt unit 724a and data decompression units 724b.Wherein, data receipt unit 724a is used to receive and taken The web data after the rendering of overcompression that business device is sent.Data decompression unit 724b is used for after the rendering of overcompression Web data is decompressed.
Web displaying module 726 draws net for the web data after what is received according to data reception module 724 renders Page is simultaneously shown.
In summary, the mobile terminal that the present embodiment provides, on one side, can be taken by unique identifying information Business device knows the character library that mobile terminal is supported so that server can be wished it using the character library that mobile terminal is supported The web data of access is rendered, and works as character library used in proxy server and word used in mobile terminal so as to solve When storehouse mismatches, it may appear that unsightly, word picture has situations such as overlapping or widely spaced to mobile terminal web page display, reaches Server can always provide the web data after preferably rendering to mobile terminal, after then mobile terminal can be according to rendering Web data perfectly show the effect of webpage.On the other hand, the web data after rendering also is received by compressed data, Reduce the downloading flow of mobile terminal.
Embodiment seven
In order to which the server in embodiment five is further illustrated, Fig. 9 is refer to, it illustrates the present invention to implement The block diagram for the server that example four provides.The server can include request receiving module 742, receiving module 743 of holding one's breath, Data acquisition module 744, character library enquiry module 746 and webpage rendering module 748,
Request receiving module 742 is used for the web page address and unique identifying information for receiving mobile terminal transmission.
Receiving module 743 of holding one's breath is used for the screen message for receiving mobile terminal transmission.
Data acquisition module 744 is used for the webpage according to corresponding to the web page address acquisition that request receiving module 742 receives Data.
The unique identifying information that character library enquiry module 746 is used to be received according to request receiving module 742 is in local search Corresponding character library.
The character library and receiving module 743 of holding one's breath that webpage rendering module 748 inquires according to character library enquiry module 746 receive The web data that is got to data acquisition module 744 of screen message render, with the web data after being rendered simultaneously Feed back to mobile terminal 720.
Specifically, data acquisition module 744 can specifically include:Data capture unit 744a, script judging unit 744b and script executing unit 744c, as shown in Figure 10.Data capture unit 744a is used for according to corresponding to obtaining web page address Initial page data;Script judging unit 744b is used for judging whether include script data in Initial page data;Script performs If the judged result that unit 744c is used for script judging unit is yes, the script data in Initial page data is performed, with Obtain web data.
Specifically, webpage rendering module 748 can specifically include:Data render unit 748a, data compression unit 748b and data transmission unit 748c, as shown in figure 11.Data render unit 748a is used for according to the character library inquired to webpage Data are rendered;Data compression unit 748b is used to the web data after rendering being compressed;Data transmission unit 748c For the web data after the rendering of overcompression to be sent into mobile terminal.
In summary, the server that the present embodiment provides, on one side, can be serviced by unique identifying information Device knows the character library that mobile terminal is supported so that server can wish to visit using the character library that mobile terminal is supported to it The web data asked is rendered, and works as character library used in proxy server and character library used in mobile terminal so as to solve During mismatch, it may appear that unsightly, word picture has situations such as overlapping or widely spaced to mobile terminal web page display, has reached clothes Business device can always provide the web data after preferably rendering to mobile terminal, after then mobile terminal can be according to rendering Web data perfectly shows the effect of webpage.On the other hand, the web data after rendering also is transmitted by compressed data, subtracted The downloading flow of mobile terminal is lacked.
It should be noted that:The webpage display system that above-described embodiment provides is when showing webpage, only with above-mentioned each function The division progress of module, can be as needed and by above-mentioned function distribution by different function moulds for example, in practical application Block is completed, i.e., the internal structure of device is divided into different functional modules, to complete all or part of work(described above Energy.In addition, the webpage display system that above-described embodiment provides belongs to same design with webpage rendering intent embodiment, it is specific real Existing process refers to embodiment of the method, repeats no more here.
One of ordinary skill in the art will appreciate that hardware can be passed through by realizing all or part of step of above-described embodiment To complete, by program the hardware of correlation can also be instructed to complete, described program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent substitution and improvements made etc., it should be included in the scope of the protection.

Claims (9)

1. a kind of webpage rendering intent, it is characterised in that it includes:
Web page address and unique identifying information that mobile terminal is sent are received, the unique identifying information includes at least one Hash Value, at least one cryptographic Hash are at least one according to included by least one character library that the mobile terminal itself is supported Character set information and default hash algorithm are calculated, corresponding to each cryptographic Hash and a character set information;
The web data according to corresponding to obtaining the web page address;
The character library according to corresponding to the unique identifying information in local search;
Receive the screen message that the mobile terminal is sent;
The character library according to inquiring renders to the web data, with the web data after being rendered and feeds back to The mobile terminal;
Wherein, it is described render including:One region to be rendered is obtained according to the screen message, according to the word in the character library The region division is equal to or slightly greater than the stripe region of the font height information by body elevation information for several height, According still further to the single character in the character library width information by each character in the web data according to from left to right, from Typesetting enters in several described stripe regions the order of top to bottm successively, obtains the character area after typesetting.
2. webpage rendering intent according to claim 1, it is characterised in that described obtained according to the web page address corresponds to Web data, specifically include:
The Initial page data according to corresponding to obtaining the web page address;
Judge whether include script data in the Initial page data;
If it is, the script data in the Initial page data is performed, to obtain the web data.
3. webpage rendering intent according to claim 1, it is characterised in that the web data with after being rendered is simultaneously The mobile terminal is fed back to, is specifically included:
Web data after described render is compressed;
Web data after being rendered described in overcompression is sent to the mobile terminal.
4. a kind of server, it is characterised in that the server includes:
Request receiving module, for receiving the web page address and unique identifying information of mobile terminal transmission, the unique identification letter Breath includes at least one cryptographic Hash, at least one character library that at least one cryptographic Hash is supported according to the mobile terminal itself In included at least one character set information and default hash algorithm be calculated, each cryptographic Hash and a character set information It is corresponding;
Data acquisition module, for the web data according to corresponding to web page address acquisition;
Character library enquiry module, for according to the unique identifying information in local search corresponding to character library;
Hold one's breath receiving module, the screen message sent for receiving the mobile terminal;
Webpage rendering module, for carrying out wash with watercolours to the web data according to the character library and the screen message that inquire Dye, with the web data after being rendered and feed back to the mobile terminal;Wherein, it is described render including:According to the screen One region to be rendered of information acquisition, the font height information in the character library are high for several by the region division Degree is equal to or slightly greater than the stripe region of the font height information, believes according still further to the width of the single character in the character library Breath by each character in the web data according to order from left to right, from top to bottom successively typesetting enter it is described several In stripe region, the character area after typesetting is obtained.
5. server according to claim 4, it is characterised in that the data acquisition module, specifically include:
Data capture unit, script judging unit and script executing unit;
The data capture unit, for the Initial page data according to corresponding to web page address acquisition;
The script judging unit, for judging whether include script data in the Initial page data;
The script executing unit, if the judged result for the script judging unit is yes, perform the original net Script data in page data, to obtain the web data.
6. server according to claim 4, it is characterised in that the webpage rendering module, specifically include:
Data render unit, data compression unit and data transmission unit;
The data render unit, for being rendered according to the character library inquired to the web data;
The data compression unit, for the web data after described render to be compressed;
The data transmission unit, for the web data after being rendered described in overcompression to be sent into the mobile terminal.
7. a kind of mobile terminal, it is characterised in that it includes:
Information sending module, for sending web page address and unique identifying information to be visited, the unique identification to server Information is corresponding with the character library that itself is supported, the unique identifying information includes at least one cryptographic Hash, at least one Kazakhstan Value is wished according at least one character set information included at least one character library that the mobile terminal itself is supported and is preset Hash algorithm is calculated, corresponding to each cryptographic Hash and a character set information;
Described information sending module, it is additionally operable to send screen message to the server;
Data reception module, the web data after being rendered for receive that the server sends;It is described render after webpage number According to being that the server is rendered what is obtained according to the character library and screen message that inquire to the web data;The character library The server obtains according to the unique identifying information in local search;Wherein, it is described render including:According to the screen The region division is several by curtain information acquisition one region to be rendered, font height information in the character library The stripe region of the font height information is highly equal to or slightly greater than, according still further to the width of the single character in the character library Information enters each character in the web data according to order from left to right, from top to bottom successively typesetting described some In individual stripe region, the character area after typesetting is obtained;
Web displaying module, draw webpage for the web data after being rendered according to and show.
8. mobile terminal according to claim 7, it is characterised in that the data reception module, specifically include:
Data receipt unit and data decompression units;
The data receipt unit, the web data after being rendered described in overcompression sent for receiving the server;
The data decompression unit, for the web data after being rendered described in overcompression to be decompressed.
9. a kind of webpage display system, it is characterised in that including the server as described in claim 5 or 6 and such as claim 7 Or the mobile terminal described in 8.
CN201210176700.7A 2012-05-31 2012-05-31 Word stock collection, webpage rendering intent, apparatus and system Active CN103455503B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210176700.7A CN103455503B (en) 2012-05-31 2012-05-31 Word stock collection, webpage rendering intent, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210176700.7A CN103455503B (en) 2012-05-31 2012-05-31 Word stock collection, webpage rendering intent, apparatus and system

Publications (2)

Publication Number Publication Date
CN103455503A CN103455503A (en) 2013-12-18
CN103455503B true CN103455503B (en) 2018-04-03

Family

ID=49737884

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210176700.7A Active CN103455503B (en) 2012-05-31 2012-05-31 Word stock collection, webpage rendering intent, apparatus and system

Country Status (1)

Country Link
CN (1) CN103455503B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104765844B (en) * 2015-04-16 2019-02-19 北京京东尚科信息技术有限公司 A kind of generation method and device of Website page
US20180302468A1 (en) * 2016-03-14 2018-10-18 Ebay Inc. System and method for delegating content processing
CN108009192B (en) * 2017-09-30 2020-09-29 北京车和家信息技术有限公司 Webpage text loading method, device and system
CN114513760B (en) * 2020-11-17 2023-03-24 华为技术有限公司 Font library synchronization method, device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010084207A1 (en) * 2009-01-26 2010-07-29 Fontself Sa A system and method for displaying a text with a font
CN102063483A (en) * 2009-10-16 2011-05-18 以埃克斯坦西斯股份有限公司名义经营的塞拉特姆股份有限公司 Serving font files in varying formats based on user agent type
CN102231150A (en) * 2011-01-27 2011-11-02 深圳市茁壮网络股份有限公司 Method and system for managing word stock of embedded browser
CN102439588A (en) * 2009-03-10 2012-05-02 谷歌公司 Serving font glyphs

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1032985C (en) * 1994-04-15 1996-10-09 曾冬初 Multistage structure Chinese character base technique and its Chinese language computer operating system design
CN1177287C (en) * 2001-04-18 2004-11-24 无敌科技(西安)有限公司 Automatic format setting method for palm-type browser
JP4367511B2 (en) * 2007-03-26 2009-11-18 セイコーエプソン株式会社 Character drawing device, display device, and printing device
CN101639761A (en) * 2009-05-27 2010-02-03 旋永南 Data entry and processing method of handheld device
CN101923723B (en) * 2009-06-16 2012-11-28 汉王科技股份有限公司 Method for realizing display of electronic document

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010084207A1 (en) * 2009-01-26 2010-07-29 Fontself Sa A system and method for displaying a text with a font
CN102439588A (en) * 2009-03-10 2012-05-02 谷歌公司 Serving font glyphs
CN102063483A (en) * 2009-10-16 2011-05-18 以埃克斯坦西斯股份有限公司名义经营的塞拉特姆股份有限公司 Serving font files in varying formats based on user agent type
CN102231150A (en) * 2011-01-27 2011-11-02 深圳市茁壮网络股份有限公司 Method and system for managing word stock of embedded browser

Also Published As

Publication number Publication date
CN103455503A (en) 2013-12-18

Similar Documents

Publication Publication Date Title
CN101894136B (en) Based on page refreshing processing method and the system thereof of mobile terminal
CN103353886B (en) The method and system of preview webpage
US20180302492A1 (en) Key resource prefetching using front-end optimization (FEO) configuration
JP5230642B2 (en) Web page display method and system
CN103139292B (en) Method for processing pictures in hyper text transmission protocol (HTTP) proxy and proxy server and system
US20150058407A1 (en) Systems, methods, and apparatuses for implementing the simultaneous display of multiple browser client cursors at each browser client common to a shared browsing session
CN102438045A (en) Method and system for pre-fetching web page, and method for accessing web page
CN104572843B (en) The loading method and device of a kind of page
CN107808010A (en) A kind of pop-up page generation method, device, browser and storage medium
CN104426985B (en) Show the method, apparatus and system of webpage
CN106599239A (en) Webpage content data acquisition method and server
CN102867007A (en) Webpage browsing method and device
CN103116645B (en) The method and device of browsing page by mobile equipment
CN102654885A (en) Mobile terminal webpage adaptation system and method
CN106897336A (en) Web page files sending method, webpage rendering intent and device, webpage rendering system
CN103455503B (en) Word stock collection, webpage rendering intent, apparatus and system
CN102932469B (en) Method for achieving client browser and client browser
CN103955495B (en) The method for down loading and device of page child resource
CN107679897A (en) A kind of security risk control method and device
CN102884526A (en) Displaying items in an application window
CN104615771B (en) A kind of method and device obtaining web data
CN106874271A (en) A kind of method and system that PC webpages are converted to mobile terminal webpage
US20140006918A1 (en) Method and system for web page rearrangement
CN102929489B (en) Client browser implementation method and client browser
CN104361130B (en) Method for searching local area network or specified network segment equipment in webpage

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant