CN106055721A - Accessible webpage processing method and relevant equipment - Google Patents
Accessible webpage processing method and relevant equipment Download PDFInfo
- Publication number
- CN106055721A CN106055721A CN201610567067.2A CN201610567067A CN106055721A CN 106055721 A CN106055721 A CN 106055721A CN 201610567067 A CN201610567067 A CN 201610567067A CN 106055721 A CN106055721 A CN 106055721A
- Authority
- CN
- China
- Prior art keywords
- web page
- script
- web
- target web
- accessible
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention provides an accessible webpage processing method and relevant equipment. The method comprises the following steps: acquiring a webpage file of a target webpage; detecting whether at least one webpage element which cannot be recognized by an auxiliary application exists in the webpage file of the target webpage or not; if so, generating an accessible optimization script of the target webpage specific to the at least one webpage element; and transmitting the accessible optimization script of the target webpage to the webpage server in order that the webpage server adds script reference information corresponding to the accessible optimization script into the webpage file of the target webpage, and a client calls the accessible optimization script through the script reference information to optimize the at least one webpage element while reading the webpage file of the target webpage. Through adoption of the accessible webpage processing method and the relevant equipment, a user can accessibly acquire content of the target webpage through the auxiliary application.
Description
Technical field
The present invention relates to electronic technology field, particularly relate to a kind of accessible processing method of webpage and relevant device.
Background technology
Along with quickly popularizing of the computer equipment such as smart mobile phone, PC, various mobile Internets apply also layer to go out
Poor, increasing user can the life that brings to mobile interchange technology of sense of reality be convenient and wireless enjoyment;But, society
In Hui, some specific group be also required to use the computer equipments such as smart mobile phone, that is, have certain handicapped people
Group, the visually impaired colony of such as disturbance people, especially total blindness, it is entirely and listens to sound to operate computer by ear.
Use user the terminal units such as smart mobile phone, panel computer, PC auxiliary operation function (include but not
It is limited to Voiceover, Talkback etc. and reads screen software and the application of other similar functions), can be by interface element and function thereof
Extract and pass through TTS (Text to Speech, text-to-speech technology) and selected word voice is played back,
To help user to understand the content shown by webpage, bring the most more rich experience to user, in particular so that
There is certain handicapped crowd (specific group such as the disability personnel of such as visual disorder, old people) can clog-free make
With terminal units such as smart mobile phones.
But, generally all there are some in the webpage of present stage can not be identified by auxiliary operation function or application
Web page element, such as lack the picture of word tag or icon, lack button that function describes etc..These can not be by
The web page element that auxiliary operation function or application identify, can cause user to browse and use the obstacle of webpage, i.e. can not be by auxiliary
Help operating function maybe for understanding web page contents all sidedly or webpage function should be used, in some instances it may even be possible to some maloperations can be produced
And cause some to lose.
Summary of the invention
Embodiment of the present invention technical problem to be solved is, it is provided that a kind of accessible processing method of webpage and relevant set
Standby, to solving web page browsing obstacle based on auxiliary operation function, promote the operating experience of user.
Embodiments providing a kind of accessible processing method of webpage, the method includes:
Obtain the web page files of target web;
Detect whether exist in the web page files of described target web cannot be by least one of HELPER APPLICATIONS identification
Web page element;
If existing, then generate the accessible optimization script of described target web at least one web page element described;
The accessible optimization script of described target web is sent, so that described web page server is described to web page server
The web page files of target web adds the script reference information that described accessible optimization script is corresponding so that client reads institute
When stating the web page files of target web, call described accessible optimization script to described at least one by described script reference information
Individual web page element is optimized.
Optionally, the described accessible optimization script bag generating described target web at least one web page element described
Include:
Function according at least one web page element described or attribute, determine at least one web page element described correspondence respectively
Text describe;
Generate and carry the described accessible optimization script that text corresponding at least one web page element described describes.
The embodiment of the present invention additionally provides a kind of accessible processing method of webpage, and the method includes:
Receive the accessible optimization script of target web;
The script reference information that described accessible optimization script is corresponding is added in the web page files of described target web;
When receive that client sends for the access request of described target web time, send to described client and include
The web page files of the target web of described script reference information, so that described client reads the web page files of described target web
Time, call described accessible optimization script by described script reference information and described target web is optimized.
Optionally, the accessible optimization script of described target web includes to be answered by auxiliary according in described target web
With the function of at least one web page element of procedure identification or attribute determine described at least one web page element the most corresponding
Text describes.
The embodiment of the present invention additionally provides a kind of accessible processing method of webpage, and the method includes:
The access request for target web is sent to web page server;
Receive the web page files of the described target web that described web page server sends, the web page files of described target web
Include the script reference information that accessible optimization script is corresponding;
Read the web page files of described target web, by described script reference information, call described accessible optimization foot
Described target web is optimized by this;
Clog-free target web after output optimization.
Embodiments providing a kind of equipment, this equipment includes:
Acquisition module, for obtaining the web page files of target web;
Whether detection module, exist and cannot be known by HELPER APPLICATIONS in the web page files detecting described target web
At least one web page element other;
Script module, if for existing, then generates the nothing barrier of described target web at least one web page element described
Hinder optimization script;
Sending module, for sending the accessible optimization script of described target web to web page server, so that described net
Page server adds the script reference information that described accessible optimization script is corresponding in the web page files of described target web, makes
When obtaining the web page files that client reads described target web, call described accessible optimization foot by described script reference information
At least one web page element described is optimized by this.
Optionally, described script module is used for:
Function according at least one web page element described or attribute, determine at least one web page element described correspondence respectively
Text describe;
Generate and carry the described accessible optimization script that text corresponding at least one web page element described describes.
The embodiment of the present invention additionally provides a kind of web page server, and this web page server includes:
Receiver module, for receiving the accessible optimization script of target web;
Add module, for adding the foot that described accessible optimization script is corresponding in the web page files of described target web
This reference information;
Sending module, for when receive that client sends for the access request of described target web time, to described
Client sends the web page files of the target web including described script reference information, so that described client reads described target
During the web page files of webpage, call described accessible optimization script by described script reference information and described target web is carried out
Optimize.
Optionally, the accessible optimization script of described target web includes to be answered by auxiliary according in described target web
With the function of at least one web page element of procedure identification or attribute determine described at least one web page element the most corresponding
Text describes.
The embodiment of the present invention additionally provides a kind of client, and this client includes:
Request module, for sending the access request for target web to web page server;
Receiver module, for receiving the web page files of the described target web that described web page server sends, described target
The web page files of webpage includes the script reference information that accessible optimization script is corresponding;
Optimize module, for reading the web page files of described target web, by described script reference information, call described
Described target web is optimized by accessible optimization script;
Output module, the clog-free target web after exporting optimization.
The embodiment of the present invention, by obtaining the web page files of target web, detects in the web page files of described target web and is
No existence cannot be by least one web page element of HELPER APPLICATIONS identification, if existing, then at least one webpage described
The accessible optimization script of target web described in Element generation, sends the accessible optimization of described target web to web page server
Script so that described web page server to add described accessible optimization script in the web page files of described target web corresponding
Script reference information so that when client reads the web page files of described target web, called by described script reference information
At least one web page element described is optimized by described accessible optimization script, can be by accessible optimization script to target
The web page files of webpage cannot be optimized by the web page element of HELPER APPLICATIONS identification, thus when user passes through client
When accessing target web, can the clog-free content being obtained target web by HELPER APPLICATIONS.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
In having technology to describe, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to
Other accompanying drawing is obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of the accessible processing method of a kind of webpage in the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of the another kind of accessible processing method of webpage in the embodiment of the present invention;
Fig. 3 is the composition structure chart of a kind of first equipment in the embodiment of the present invention;
Fig. 4 is the composition structure chart of another kind of first equipment in the embodiment of the present invention;
Fig. 5 is the composition structure chart of a kind of web page server in the embodiment of the present invention;
Fig. 6 is the composition structure chart of another kind of web page server in the embodiment of the present invention;
Fig. 7 is the composition structure chart of a kind of client in the embodiment of the present invention;
Fig. 8 is the composition structure chart of another kind of client in the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Describe, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments wholely.Based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under not making creative work premise
Embodiment, broadly falls into the scope of protection of the invention.
Fig. 1 is the schematic flow sheet of the accessible processing method of a kind of webpage in the embodiment of the present invention, and this method flow process is permissible
By a kind of first equipment, web page server and client common implementing, described first equipment can be electric terminal or clothes
Business device or operate in the software program of electric terminal or server, described client can be user terminal, described user terminal
Mobile phone, notebook computer, panel computer, PC etc. can be included.The present embodiment is applicable to the accessible place of any webpage
Reason, its processing procedure is all consistent, is only therefore representative with a webpage, i.e. target web in the present embodiment, to processing
Journey is described.
The most described method at least includes:
Step S101, the first equipment obtains the web page files of target web.
Concrete, web page files can be the source code script file of all web page elements comprising target web, wherein
Web page element can include the word in webpage, control, picture, video etc., namely read this web page files just can be to mesh
Mark webpage browses and operates.In being embodied as, this web page files can be stored in advance in the first equipment, and first sets
The web page files of target web just can be directly obtained for the storage address or memory space by storing this web page files;Should
Web page files can also be web page server when receiving client to the access request of target web, sends out in real time to the first equipment
The accessible process request sent is carried, the web page files obtaining target web later that the first equipment receives.
Whether step S102, existing in the web page files of target web described in the first equipment Inspection cannot be by assistance application journey
At least one web page element of sequence identification.
Concrete, it is similar with other that HELPER APPLICATIONS includes but not limited to that Voiceover, Talkback etc. read screen software
The application of function, in general, user is after clicking on or operating a certain web page element, and the assistance application reading screen class can
By by content corresponding for this web page element or function with voice in the way of export to user, even such user visually impaired people
Scholar, it is also possible to understand be currently being operated this with perhaps function in web page element.On the contrary, have some web page elements because
Having lacked clog-free description information, can cause cannot be by HELPER APPLICATIONS identification.
In specific implementation process, the first equipment can be by possessing the detection instrument of detection function or directly utilizing reading
Whether screen class application program, exist, in the web page files of detection target web, at least can not read by HELPER APPLICATIONS
Individual web page element.
Step S103, if existing, then the first equipment generates described target web at least one web page element described
Accessible optimization script.
Concrete, accessible optimization script is can not to be carried out by the web page element of HELPER APPLICATIONS identification in webpage
Optimization, amendment etc. operation after generate a script file, say, that add in original web page file to should webpage literary composition
After the accessible optimization script of part, it becomes possible to make web page files can not be become by the web page element of HELPER APPLICATIONS identification originally
The web page element that one-tenth can identify.
In being embodied as, when the first equipment Inspection go out exist can not be by least one webpage of HELPER APPLICATIONS identification
During element, then obtain the above-mentioned not identified web page element in the web page files of target web, raw for these web page elements
Become corresponding accessible optimization script.
Optionally, step S103 can specifically include following two step:
Step S1031, the first equipment according to the function of at least one web page element described or attribute, determine described at least one
The text that individual web page element is the most corresponding describes.
Concrete, each web page element has function or attribute, such as one figure being shown as " determination " of correspondence
Mark, its function is for triggering some operation, and its attribute can be a trigger button.The text that web page element is corresponding is retouched
State, be the text of the one section of function or attribute for describing web page element increasing for this web page element or revising, this article
This description is that HELPER APPLICATIONS can identify, i.e. can be described the merit exporting this web page element to user by this section of text
Energy or attribute.
Such as, web page element is a picture not describing text, and the HELPER APPLICATIONS reading screen class is can not be by
The content of this picture reads out output to user's, it is assumed that the function of this picture is exactly the website logo of Information barrier-free website,
It can be " Information barrier-free website logo " that first equipment may determine that the text that this picture is corresponding describes;Assume this picture presentation
Be a button, function is to submit the information of user's input to, and the first equipment may determine that increasing text corresponding to this picture retouches
State as " submitting to ".
The most such as, visually impaired people use PC HELPER APPLICATIONS carry out web page browsing time, time usually through key
The tab key of dish switches the web page element currently read aloud, but has a web page element to be one and cannot be navigated to by tab key
The button clicked on, say, that user cannot read this button by tab key switching, and also cannot pass through tab key
Switching choose this button to operate, then the first equipment is according to the attribute of this button, can increase the label to this button
Attribute, this tag attributes can make tab key navigate to this button, and such as, the label that this button increases tabindex=" 0 " belongs to
Property, it is possible to this button is joined in the sequence of TAB key.
The most such as, having a kind of web page element is the control shown in webpage by word or picture, click or
This word inswept or picture can show the other guide in this control further, say, that word here or picture
Attribute is a kind of button, can increase the text that one section of attribute to this word or picture is button and describe.
Step S1032, the first equipment generates and carries the institute that text corresponding at least one web page element described describes
State accessible optimization script.
After determining the text description that at least one web page element above-mentioned is the most corresponding, it is possible to generate and carry the text
The accessible optimization script described.
For example, if accessible optimization script is for using JS language (JavaScript, formula script of literal translating) to compile
The script write, then can have the accessible optimization script generated for following several web page elements, it should be noted that below
The citing being only part represents, and not all web page element and accessible optimization script.
If the picture identification on a website does not describe text, the first equipment can increase an alt attribute newly for this,
And corresponding text described be set to " Information barrier-free website logo ", corresponding accessible optimization script can particularly as follows:
<script type=" text/javascript ">document.getElementById (" logo ")
.setAttribute (" alt ", " Information barrier-free website logo ");</script>;
If there being a confirming button that can click on two websites, but TAB key cannot be used to navigate to, the first equipment can
Think that this increases a tabindex attribute newly, and corresponding tag attributes is set to " 0 ".Corresponding accessible optimization script is permissible
Particularly as follows:
<script type=" text/javascript ">document.getElementById (" ok ")
.setAttribute("tabindex","0");</script>;
If there being one there is no submission button that is that text describes and that use picture presentation on three websites.First equipment can
Think that this increases an aria-label attribute newly, and corresponding text description is set to " submitting to ".Corresponding accessible optimization foot
Originally can particularly as follows:
<script type="text/javascript">document.getElementById (" submit ")
.setAttribute (" aria-label ", " submitting to ");</script>;
If the button having " clicking on display more " on four websites can respond the clicking operation of mouse.First equipment
Can increase a role attribute newly for this, represent " clicking on display more " be control type be the control of " button ".Corresponding
Accessible optimization script can particularly as follows:
<script type=" text/javascript ">document.getElementById (" clickMe ")
.setAttribute("role","button");</script>
Step S104, the first equipment sends the accessible optimization script of described target web to web page server.
Step S105, web page server receives the accessible optimization script of target web.
Concrete, web page server receives the accessible optimization script of target web, and can be by this accessible optimization
Script stores to home server and can also store to other remote servers.
Optionally, the accessible optimization script of target web can include cannot being answered by auxiliary according in described target web
With the function of at least one web page element of procedure identification or attribute determine described at least one web page element the most corresponding
Text describes.
Step S106, web page server adds described accessible optimization script pair in the web page files of described target web
The script reference information answered.
Concrete, the script reference information of accessible optimization script can be accessible optimization script storage address or
Script name etc., say, that can search and get accessible optimization script by script reference information.In being embodied as,
Web page server first can obtain the web page files of target web in default memory space, then will be for this target web
The script reference information of accessible optimization script be added in web page files.Such as, under JS language environment, it is assumed that accessible
The script reference information optimizing script is script name: abc.js, then just can pass through<script src="abc.js"></
The script reference information of this accessible optimization script of abc.js is added on the webpage of target web by script > this statement
In file.
Step S107, client sends the access request for target web to web page server.
Concrete, when client receives user for the access instruction of target web, can trigger to web service
Device sends the access request for target web.Wherein, access request can be carried mark or the address of client, so that
Web page server, after receiving the access request of target web, can be sent out to client according to the mark of client or address
Send the web page files of the target web including script reference information.
Step S108, web page server receives the access request for described target web that client sends.
Step S109, web page server sends the net of the target web including described script reference information to described client
Page file.
Step S110, client receives the target web including described script reference information that described web page server sends
Web page files.
Step S111, client reads the web page files of described target web, by described script reference information, calls institute
State accessible optimization script described target web is optimized.
Concrete, after client receives the web page files of target web, it is possible to read this web page files, reading
During the script reference information being added in web page files, the accessible optimization script just calling script reference information corresponding comes mesh
Mark webpage is optimized.
Step S112, the clog-free target web after client output optimization.
Concrete, the clog-free target web output after optimizing is showed user by client so that read screen class
HELPER APPLICATIONS can by TTS technology by the content intact in target web by voice output to user.
The embodiment of the present invention, by obtaining the web page files of target web, detects in the web page files of described target web and is
No existence cannot be by least one web page element of HELPER APPLICATIONS identification, if existing, then at least one webpage described
The accessible optimization script of target web described in Element generation, sends the accessible optimization of described target web to web page server
Script so that described web page server to add described accessible optimization script in the web page files of described target web corresponding
Script reference information so that when client reads the web page files of described target web, called by described script reference information
At least one web page element described is optimized by described accessible optimization script, can be by accessible optimization script to target
The web page files of webpage cannot be optimized by the web page element of HELPER APPLICATIONS identification, thus when user passes through client
When accessing target web, can the clog-free content being obtained target web by HELPER APPLICATIONS.
Fig. 2 is the schematic flow sheet of the another kind of accessible processing method of webpage in the embodiment of the present invention, in the present embodiment,
Describe is a kind of accessible processing procedure of webpage real-time after client sends access request, and the most each step is concrete
The embodiment that implementation method is shown with Fig. 1 is basically identical, and the most only description processes step, no longer does other and repeats,
Concrete grammar is referred to the corresponding steps in embodiment one.
The method includes as shown in the figure:
Step S201, client sends the access request for target web to web page server.
Step S202, web page server receives the access request for described target web that client sends.
Step S203, web page server sends the web page files of target web to the first equipment.
Step S204, the first equipment receives the web page files of target web.
Whether step S205, existing in the web page files of target web described in the first equipment Inspection cannot be by assistance application journey
At least one web page element of sequence identification.
Step S206, if existing, then the first equipment generates described target web at least one web page element described
Accessible optimization script.
Step S207, the first equipment sends the accessible optimization script of described target web to web page server.
Step S208, web page server receives the accessible optimization script of target web.
Step S209, web page server adds described accessible optimization script pair in the web page files of described target web
The script reference information answered.
Step S210, web page server sends the webpage literary composition of the target web including described script reference information to client
Part.
Step S211, client receives the target web including described script reference information that described web page server sends
Web page files.
Step S212, client reads the web page files of described target web, by described script reference information, calls institute
State accessible optimization script described target web is optimized.
Step S213, the clog-free target web after client output optimization.
The embodiment of the present invention, by obtaining the web page files of target web, detects in the web page files of described target web and is
No existence cannot be by least one web page element of HELPER APPLICATIONS identification, if existing, then at least one webpage described
The accessible optimization script of target web described in Element generation, sends the accessible optimization of described target web to web page server
Script so that described web page server to add described accessible optimization script in the web page files of described target web corresponding
Script reference information so that when client reads the web page files of described target web, called by described script reference information
At least one web page element described is optimized by described accessible optimization script, can be by accessible optimization script to target
The web page files of webpage cannot be optimized by the web page element of HELPER APPLICATIONS identification, thus when user passes through client
When accessing target web, can the clog-free content being obtained target web by HELPER APPLICATIONS.
Fig. 3 is the composition structure chart of a kind of first equipment in the embodiment of the present invention.The most described equipment includes:
Acquisition module 310, for obtaining the web page files of target web;
Whether detection module 320, existing in the web page files detecting described target web cannot be by assistance application journey
At least one web page element of sequence identification;
Script module 330, if for existing, then generating the nothing of described target web at least one web page element described
Obstacle optimizes script;
Sending module 340, for sending the accessible optimization script of described target web to web page server, so that described
Web page server adds the script reference information that described accessible optimization script is corresponding in the web page files of described target web,
When making the web page files that client reads described target web, call described accessible optimization by described script reference information
At least one web page element described is optimized by script.
Optionally, in the present embodiment, described script module 330 specifically for:
Function according at least one web page element described or attribute, determine at least one web page element described correspondence respectively
Text describe;
Generate and carry the described accessible optimization script that text corresponding at least one web page element described describes.
The embodiment of the present invention, by obtaining the web page files of target web, detects in the web page files of described target web and is
No existence cannot be by least one web page element of HELPER APPLICATIONS identification, if existing, then at least one webpage described
The accessible optimization script of target web described in Element generation, sends the accessible optimization of described target web to web page server
Script so that described web page server to add described accessible optimization script in the web page files of described target web corresponding
Script reference information so that when client reads the web page files of described target web, called by described script reference information
At least one web page element described is optimized by described accessible optimization script, can be by accessible optimization script to target
The web page files of webpage cannot be optimized by the web page element of HELPER APPLICATIONS identification, thus when user passes through client
When accessing target web, can the clog-free content being obtained target web by HELPER APPLICATIONS.
Fig. 4 is the composition structure chart of another kind of first equipment in the embodiment of the present invention.As shown in Figure 4, this first equipment bag
Include processor 41, memorizer 42 and network interface 43.Processor 41 is connected to memorizer 42 and network interface 43, such as, process
Device 41 can be connected to memorizer 42 and network interface 43 by bus.
Processor 41 is configured to support that the first equipment performs corresponding function in said method.This processor 41 can be
Central processing unit (English: central processing unit, CPU), network processing unit is (English: network
Processor, NP), hardware chip or its combination in any.Above-mentioned hardware chip can be special IC (English:
Application-specific integrated circuit, ASIC), PLD (English:
Programmable logic device, PLD) or a combination thereof.Above-mentioned PLD can be CPLD (English:
Complex programmable logic device, CPLD), field programmable gate array is (English: field-
Programmable gate array, FPGA), GAL (English: generic array logic, GAL) or its
Combination in any.
Memorizer 42 memorizer is used for storing web page files, accessible optimization script etc..Memorizer 42 can include easily
(English: volatile memory), such as random access memory is (English: random-access for the property lost memorizer
Memory, abbreviation: RAM);Memorizer 42 can also include nonvolatile memory (English: non-volatile memory),
Such as read only memory (English: read-only memory, abbreviation: ROM), flash memory (English: flash memory),
Hard disk (English: hard disk drive, abbreviation: HDD) or solid state hard disc (English: solid-state drive, abbreviation:
SSD);Memorizer 42 can also include the combination of the memorizer of mentioned kind.
Network interface 43 is for being connected with web page server, with involved disappearing in web page server transmitting-receiving said method
Breath.
Processor 41 can perform following operation:
Obtain the web page files of target web;
Detect whether exist in the web page files of described target web cannot be by least one of HELPER APPLICATIONS identification
Web page element;
If existing, then generate the accessible optimization script of described target web at least one web page element described;
The accessible optimization script of described target web is sent, so that described web page server is described to web page server
The web page files of target web adds the script reference information that described accessible optimization script is corresponding so that client reads institute
When stating the web page files of target web, call described accessible optimization script to described at least one by described script reference information
Individual web page element is optimized.
Optionally, processor 41 generates the accessible optimization foot of described target web at least one web page element described
This time, specifically for:
Function according at least one web page element described or attribute, determine at least one web page element described correspondence respectively
Text describe;
Generate and carry the described accessible optimization script that text corresponding at least one web page element described describes.
Fig. 5 is the composition structure chart of a kind of web page server in the embodiment of the present invention.The most described server includes:
Receiver module 510, for receiving the accessible optimization script of target web;
Add module 520, corresponding for adding described accessible optimization script in the web page files of described target web
Script reference information;
Sending module 530, for when receive that client sends for the access request of described target web time, to institute
State client and send the web page files of the target web including described script reference information, so that described client reads described mesh
When marking the web page files of webpage, call described accessible optimization script by described script reference information and described target web is entered
Row optimizes.
Optionally, add the accessible optimization script of target web described in module 520 to include according to described target web
In cannot by the function of at least one web page element of HELPER APPLICATIONS identification or attribute determine described at least one webpage
The text that element is the most corresponding describes.
The embodiment of the present invention, by obtaining the web page files of target web, detects in the web page files of described target web and is
No existence cannot be by least one web page element of HELPER APPLICATIONS identification, if existing, then at least one webpage described
The accessible optimization script of target web described in Element generation, sends the accessible optimization of described target web to web page server
Script so that described web page server to add described accessible optimization script in the web page files of described target web corresponding
Script reference information so that when client reads the web page files of described target web, called by described script reference information
At least one web page element described is optimized by described accessible optimization script, can be by accessible optimization script to target
The web page files of webpage cannot be optimized by the web page element of HELPER APPLICATIONS identification, thus when user passes through client
When accessing target web, can the clog-free content being obtained target web by HELPER APPLICATIONS.
Fig. 6 is the composition structure chart of another kind of web page server in the embodiment of the present invention.As shown in Figure 6, this server bag
Include processor 61, memorizer 62 and network interface 63.Processor 61 is connected to memorizer 62 and network interface 63, such as, process
Device 61 can be connected to memorizer 62 and network interface 63 by bus.
Processor 61 is configured to supported web page server and performs corresponding function in said method.This processor 61 is permissible
Being central processing unit (English: central processing unit, CPU), network processing unit is (English: network
Processor, NP), hardware chip or its combination in any.Above-mentioned hardware chip can be special IC (English:
Application-specific integrated circuit, ASIC), PLD (English:
Programmable logic device, PLD) or a combination thereof.Above-mentioned PLD can be CPLD (English:
Complex programmable logic device, CPLD), field programmable gate array is (English: field-
Programmable gate array, FPGA), GAL (English: generic array logic, GAL) or its
Combination in any.
Memorizer 62 memorizer is used for storing web page files, accessible optimization script etc..Memorizer 62 can include easily
(English: volatile memory), such as random access memory is (English: random-access for the property lost memorizer
Memory, abbreviation: RAM);Memorizer 62 can also include nonvolatile memory (English: non-volatile memory),
Such as read only memory (English: read-only memory, abbreviation: ROM), flash memory (English: flash memory),
Hard disk (English: hard disk drive, abbreviation: HDD) or solid state hard disc (English: solid-state drive, abbreviation:
SSD);Memorizer 62 can also include the combination of the memorizer of mentioned kind.
Network interface 63, for being connected with the first equipment and client, is received and dispatched in said method with the first equipment and client
Involved message.
Processor 61 can perform following operation:
Receive the accessible optimization script of target web;
The script reference information that described accessible optimization script is corresponding is added in the web page files of described target web;
When receive that client sends for the access request of described target web time, send to described client and include
The web page files of the target web of described script reference information, so that described client reads the web page files of described target web
Time, call described accessible optimization script by described script reference information and described target web is optimized.
Fig. 7 is the composition structure chart of a kind of client in the embodiment of the present invention.The most described client includes:
Request module 710, for sending the access request for target web to web page server;
Receiver module 720, for receiving the web page files of the described target web that described web page server sends, described mesh
The web page files of mark webpage includes the script reference information that accessible optimization script is corresponding;
Optimize module 730, for reading the web page files of described target web, by described script reference information, call
Described target web is optimized by described accessible optimization script;
Output module 740, the clog-free target web after exporting optimization.
The embodiment of the present invention, by obtaining the web page files of target web, detects in the web page files of described target web and is
No existence cannot be by least one web page element of HELPER APPLICATIONS identification, if existing, then at least one webpage described
The accessible optimization script of target web described in Element generation, sends the accessible optimization of described target web to web page server
Script so that described web page server to add described accessible optimization script in the web page files of described target web corresponding
Script reference information so that when client reads the web page files of described target web, called by described script reference information
At least one web page element described is optimized by described accessible optimization script, can be by accessible optimization script to target
The web page files of webpage cannot be optimized by the web page element of HELPER APPLICATIONS identification, thus when user passes through client
When accessing target web, can the clog-free content being obtained target web by HELPER APPLICATIONS.
Fig. 8 is the composition structure chart of another kind of client in the embodiment of the present invention.Client described in the present embodiment
Including: at least one input equipment 81;At least one outut device 82;At least one processor 83, such as CPU;And memorizer
84, above-mentioned input equipment 81, outut device 82, processor 83 and memorizer 84 are connected by bus 85.
Wherein, the contact panel of above-mentioned input equipment 81 concretely terminal, physical button, mouse, mike or take the photograph
As first-class.
The display screen of above-mentioned outut device 82 concretely terminal, speaker, wired or wireless earphone, be used for exporting, showing
Show view data (comprising target web) and voice data.Optionally, outut device can include standard earphone interface or
Wave point, so that the processor 83 of device can be defeated to earphone by standard earphone interface or wave point by speech data
Go out.
Above-mentioned memorizer 84 can be high-speed RAM memorizer, it is possible to for non-labile memorizer (non-volatile
Memory), such as disk memory.Above-mentioned memorizer 84 is used for storing batch processing code, and above-mentioned input equipment 81, output set
It is used for calling the program code of storage in memorizer 84 for 82 and processor 83, performs to operate as follows:
Processor 83 can perform following operation:
The access request for target web is sent to web page server;
Receive the web page files of the described target web that described web page server sends, the web page files of described target web
Include the script reference information that accessible optimization script is corresponding;
Read the web page files of described target web, by described script reference information, call described accessible optimization foot
Described target web is optimized by this;
Clog-free target web after output optimization.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, be permissible
Instructing relevant hardware by computer program to complete, described program can be stored in a computer read/write memory medium
In, this program is upon execution, it may include such as the flow process of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic
Dish, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access
Memory, RAM) etc..
The above disclosed present pre-ferred embodiments that is only, can not limit the right model of the present invention with this certainly
Enclose, the equivalent variations therefore made according to the claims in the present invention, still belong to the scope that the present invention is contained.
Claims (10)
1. the accessible processing method of webpage, it is characterised in that described method includes:
Obtain the web page files of target web;
Detect whether exist in the web page files of described target web cannot be by least one webpage of HELPER APPLICATIONS identification
Element;
If existing, then generate the accessible optimization script of described target web at least one web page element described;
The accessible optimization script of described target web is sent, so that described web page server is in described target to web page server
The web page files of webpage adds the script reference information that described accessible optimization script is corresponding so that client reads described mesh
When marking the web page files of webpage, call described accessible optimization script at least one net described by described script reference information
Page element is optimized.
2. the method for claim 1, the described nothing generating described target web at least one web page element described
Obstacle optimizes script and includes:
Function according at least one web page element described or attribute, determine the literary composition that at least one web page element described is the most corresponding
This description;
Generate and carry the described accessible optimization script that text corresponding at least one web page element described describes.
3. the accessible processing method of webpage, it is characterised in that described method includes:
Receive the accessible optimization script of target web;
The script reference information that described accessible optimization script is corresponding is added in the web page files of described target web;
When receive that client sends for the access request of described target web time, send to described client include described
The web page files of the target web of script reference information, during so that described client reads the web page files of described target web,
Call described accessible optimization script by described script reference information described target web is optimized.
4. method as claimed in claim 3, it is characterised in that the accessible optimization script of described target web includes according to institute
State in target web cannot by the function of at least one web page element of HELPER APPLICATIONS identification or attribute determine described in extremely
The text that a few web page element is the most corresponding describes.
5. the accessible processing method of webpage, it is characterised in that described method includes:
The access request for target web is sent to web page server;
Receive the web page files of the described target web that described web page server sends, the web page files of described target web wraps
Include the script reference information that accessible optimization script is corresponding;
Read the web page files of described target web, by described script reference information, call described accessible optimization script pair
Described target web is optimized;
Clog-free target web after output optimization.
6. an equipment, it is characterised in that described equipment includes:
Acquisition module, for obtaining the web page files of target web;
Whether detection module, existing in the web page files detecting described target web cannot be by HELPER APPLICATIONS identification
At least one web page element;
Script module, if for existing, then generating the accessible excellent of described target web at least one web page element described
Change script;
Sending module, for sending the accessible optimization script of described target web to web page server, so that described webpage clothes
Business device adds the script reference information that described accessible optimization script is corresponding in the web page files of described target web so that visitor
When family end reads the web page files of described target web, call described accessible optimization script pair by described script reference information
At least one web page element described is optimized.
7. equipment as claimed in claim 6, described script module is used for:
Function according at least one web page element described or attribute, determine the literary composition that at least one web page element described is the most corresponding
This description;
Generate and carry the described accessible optimization script that text corresponding at least one web page element described describes.
8. a web page server, it is characterised in that described web page server includes:
Receiver module, for receiving the accessible optimization script of target web;
Add module, draw for the script adding described accessible optimization script in the web page files of described target web corresponding
Use information;
Sending module, for when receive that client sends for the access request of described target web time, to described client
End sends the web page files of the target web including described script reference information, so that described client reads described target web
Web page files time, call described accessible optimization script by described script reference information and described target web carried out excellent
Change.
9. web page server as claimed in claim 8, it is characterised in that the accessible optimization script of described target web includes
According to what described target web cannot be determined by the function of at least one web page element of HELPER APPLICATIONS identification or attribute
The text that at least one web page element described is the most corresponding describes.
10. a client, it is characterised in that described client includes:
Request module, for sending the access request for target web to web page server;
Receiver module, for receiving the web page files of the described target web that described web page server sends, described target web
Web page files include the script reference information that accessible optimization script is corresponding;
Optimize module, for reading the web page files of described target web, by described script reference information, call described without barrier
Hinder optimization script that described target web is optimized;
Output module, the clog-free target web after exporting optimization.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610567067.2A CN106055721A (en) | 2016-07-15 | 2016-07-15 | Accessible webpage processing method and relevant equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610567067.2A CN106055721A (en) | 2016-07-15 | 2016-07-15 | Accessible webpage processing method and relevant equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106055721A true CN106055721A (en) | 2016-10-26 |
Family
ID=57187804
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610567067.2A Pending CN106055721A (en) | 2016-07-15 | 2016-07-15 | Accessible webpage processing method and relevant equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106055721A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106951105A (en) * | 2017-03-03 | 2017-07-14 | 深圳市联谛信息无障碍有限责任公司 | A kind of method that use Barrier-free Service reads emoticon |
CN107273495A (en) * | 2016-11-25 | 2017-10-20 | 深圳市联谛信息无障碍有限责任公司 | A kind of accessible plug-in unit of browser |
CN107330015A (en) * | 2016-11-25 | 2017-11-07 | 深圳市联谛信息无障碍有限责任公司 | It is a kind of that the accessible method of info web is realized by tertium quid |
CN108460035A (en) * | 2017-02-17 | 2018-08-28 | 阿里巴巴集团控股有限公司 | A kind of method and device of acquisition and the page processing of accessible functional status |
CN109947388A (en) * | 2019-04-15 | 2019-06-28 | 腾讯科技(深圳)有限公司 | The page broadcasts control method, device, electronic equipment and the storage medium of reading |
CN113450762A (en) * | 2021-06-23 | 2021-09-28 | Oppo广东移动通信有限公司 | Character reading method, device, terminal and storage medium |
CN113900618A (en) * | 2021-05-07 | 2022-01-07 | 浙江口碑网络技术有限公司 | Information playing method and device, electronic equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080046187A1 (en) * | 2005-04-22 | 2008-02-21 | New York University | Method, system and software arrangement for detecting or determining similarity regions between datasets |
CN101345049A (en) * | 2007-07-11 | 2009-01-14 | Lg电子株式会社 | Media interface |
CN101639862A (en) * | 2009-09-08 | 2010-02-03 | 烟台朱葛软件科技有限公司 | Method and system for blindman to obtain web page picture link and picture verification code |
CN102982162A (en) * | 2012-12-05 | 2013-03-20 | 北京奇虎科技有限公司 | System for acquiring webpage information |
CN103020278A (en) * | 2012-12-28 | 2013-04-03 | 深圳创维数字技术股份有限公司 | Webpage control method and browser |
CN104899217A (en) * | 2014-03-06 | 2015-09-09 | 阿里巴巴集团控股有限公司 | Method and apparatus for implementing customized function |
CN105260383A (en) * | 2015-09-09 | 2016-01-20 | 北京奇虎科技有限公司 | Processing method for showing webpage image information and electronic equipment for showing webpage image information |
-
2016
- 2016-07-15 CN CN201610567067.2A patent/CN106055721A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080046187A1 (en) * | 2005-04-22 | 2008-02-21 | New York University | Method, system and software arrangement for detecting or determining similarity regions between datasets |
CN101345049A (en) * | 2007-07-11 | 2009-01-14 | Lg电子株式会社 | Media interface |
CN101639862A (en) * | 2009-09-08 | 2010-02-03 | 烟台朱葛软件科技有限公司 | Method and system for blindman to obtain web page picture link and picture verification code |
CN102982162A (en) * | 2012-12-05 | 2013-03-20 | 北京奇虎科技有限公司 | System for acquiring webpage information |
CN103020278A (en) * | 2012-12-28 | 2013-04-03 | 深圳创维数字技术股份有限公司 | Webpage control method and browser |
CN104899217A (en) * | 2014-03-06 | 2015-09-09 | 阿里巴巴集团控股有限公司 | Method and apparatus for implementing customized function |
CN105260383A (en) * | 2015-09-09 | 2016-01-20 | 北京奇虎科技有限公司 | Processing method for showing webpage image information and electronic equipment for showing webpage image information |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107273495A (en) * | 2016-11-25 | 2017-10-20 | 深圳市联谛信息无障碍有限责任公司 | A kind of accessible plug-in unit of browser |
CN107330015A (en) * | 2016-11-25 | 2017-11-07 | 深圳市联谛信息无障碍有限责任公司 | It is a kind of that the accessible method of info web is realized by tertium quid |
CN108460035A (en) * | 2017-02-17 | 2018-08-28 | 阿里巴巴集团控股有限公司 | A kind of method and device of acquisition and the page processing of accessible functional status |
CN108460035B (en) * | 2017-02-17 | 2021-12-24 | 阿里巴巴集团控股有限公司 | Method and device for obtaining barrier-free function state and processing page |
CN106951105A (en) * | 2017-03-03 | 2017-07-14 | 深圳市联谛信息无障碍有限责任公司 | A kind of method that use Barrier-free Service reads emoticon |
CN109947388A (en) * | 2019-04-15 | 2019-06-28 | 腾讯科技(深圳)有限公司 | The page broadcasts control method, device, electronic equipment and the storage medium of reading |
CN113900618A (en) * | 2021-05-07 | 2022-01-07 | 浙江口碑网络技术有限公司 | Information playing method and device, electronic equipment and storage medium |
CN113900618B (en) * | 2021-05-07 | 2023-12-19 | 浙江口碑网络技术有限公司 | Information playing method and device, electronic equipment and storage medium |
CN113450762A (en) * | 2021-06-23 | 2021-09-28 | Oppo广东移动通信有限公司 | Character reading method, device, terminal and storage medium |
CN113450762B (en) * | 2021-06-23 | 2024-05-14 | Oppo广东移动通信有限公司 | Text reading method, text reading device, terminal and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106055721A (en) | Accessible webpage processing method and relevant equipment | |
JP5956725B2 (en) | Method, device, and computer program product for providing context-aware help content | |
US9129606B2 (en) | User query history expansion for improving language model adaptation | |
US8429099B1 (en) | Dynamic gazetteers for entity recognition and fact association | |
CN108369600B (en) | Web browser extensions | |
US20150046493A1 (en) | Access and management of entity-augmented content | |
CN110362372A (en) | Page translation method, device, medium and electronic equipment | |
US8316006B2 (en) | Creating an ontology using an online encyclopedia and tag cloud | |
RU2646350C2 (en) | Method of entering data to electronic device, method of processing voice request, machine-readable media (options), electronic device, server and system | |
CN103702297A (en) | Short message enhancement method, device and system | |
US10572122B2 (en) | Intelligent embedded experience gadget selection | |
KR20160125401A (en) | Inline and context aware query box | |
US20160004687A1 (en) | Systems and methods for facilitating spotting of words and phrases | |
CN109960491A (en) | Application program generation method, generating means, electronic equipment and storage medium | |
CN107291465A (en) | page display method, device and storage medium | |
CN110390063A (en) | A kind of data analysis method, device, medium and electronic equipment | |
CN105656755A (en) | User nickname processing method and device on social contact platform | |
US20140373033A1 (en) | Electronic device and method for launching an application installed in the same through address information | |
WO2016155643A1 (en) | Input-based candidate word display method and device | |
CN103744883A (en) | Method and system for rapidly selecting information fragments | |
US10452727B2 (en) | Method and system for dynamically providing contextually relevant news based on an article displayed on a web page | |
CN107220371A (en) | Page display method, device and storage medium | |
CN110069760A (en) | A kind of document problem feedback method, device, medium and electronic equipment | |
KR102347070B1 (en) | Method and apparatus for processing information of terminal | |
CN108092875B (en) | Expression providing method, medium, device and computing equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161026 |