CN117917634A - Barrier-free processing method, barrier-free processing device, electronic equipment and storage medium - Google Patents

Barrier-free processing method, barrier-free processing device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117917634A
CN117917634A CN202211297112.9A CN202211297112A CN117917634A CN 117917634 A CN117917634 A CN 117917634A CN 202211297112 A CN202211297112 A CN 202211297112A CN 117917634 A CN117917634 A CN 117917634A
Authority
CN
China
Prior art keywords
barrier
free
page
target
page element
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
Application number
CN202211297112.9A
Other languages
Chinese (zh)
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.)
Beijing Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Priority to CN202211297112.9A priority Critical patent/CN117917634A/en
Publication of CN117917634A publication Critical patent/CN117917634A/en
Pending legal-status Critical Current

Links

Abstract

The embodiment of the disclosure provides an unobstructed processing method, an unobstructed processing device, electronic equipment and a storage medium. The method comprises the following steps: acquiring a target barrier-free configuration file of a currently displayed target page, wherein the target page comprises at least one first page element, the target barrier-free configuration file is used for recording barrier-free configuration information of the at least one first page element, the barrier-free configuration information comprises barrier-free labels, and the barrier-free labels are used for indicating a screen reading content determining mode of the corresponding first page element; and performing barrier-free attribute configuration on the at least one first page element according to the target barrier-free configuration file. By adopting the technical scheme, the embodiment of the disclosure can reduce the labor cost consumed by barrier-free attribute configuration in the page research and development and test stage, and meet the requirement of diversified configuration of screen reading content and the requirement of rapid configuration of barrier-free attribute of page elements.

Description

Barrier-free processing method, barrier-free processing device, electronic equipment and storage medium
Technical Field
The embodiment of the disclosure relates to the technical field of computers, in particular to a barrier-free processing method, a barrier-free processing device, electronic equipment and a storage medium.
Background
In the prior art, a developer is required to perform barrier-free configuration on a page in a source code of the page, and a tester is required to test barrier-free properties of the page after the configuration is completed. However, this configuration requires high labor cost in the page development and testing stage, and cannot meet the requirement of rapid configuration without barrier property.
Disclosure of Invention
The embodiment of the disclosure provides an unobstructed processing method, an unobstructed processing device, electronic equipment and a storage medium, so as to reduce labor cost consumed by unobstructed configuration in a page research and development and testing stage and meet the requirement of quick configuration of unobstructed attributes of pages.
In a first aspect, an embodiment of the present disclosure provides an unobstructed processing method, including:
Acquiring a target barrier-free configuration file of a currently displayed target page, wherein the target page comprises at least one first page element, the target barrier-free configuration file is used for recording barrier-free configuration information of the at least one first page element, the barrier-free configuration information comprises barrier-free labels, and the barrier-free labels are used for indicating a screen reading content determining mode of the corresponding first page element;
and performing barrier-free attribute configuration on the at least one first page element according to the target barrier-free configuration file.
In a second aspect, an embodiment of the present disclosure further provides a barrier-free processing method, including:
acquiring an original barrier-free configuration file of a target page, wherein the target page comprises at least one page element, the original barrier-free configuration file is used for recording barrier-free configuration information of the at least one page element, the barrier-free configuration information comprises barrier-free labels, and the barrier-free labels are used for indicating a screen reading content determining mode of the corresponding page element;
in response to an information update operation, updating barrier-free configuration information in the original barrier-free configuration file;
And submitting the updated target barrier-free configuration file in response to the submitting operation.
In a third aspect, an embodiment of the present disclosure further provides an unobstructed processing device, including:
The system comprises a first acquisition module, a second acquisition module and a first display module, wherein the first acquisition module is used for acquiring a target barrier-free configuration file of a currently displayed target page, the target page comprises at least one first page element, the target barrier-free configuration file is used for recording barrier-free configuration information of the at least one first page element, the barrier-free configuration information comprises barrier-free labels, and the barrier-free labels are used for indicating a screen reading content determining mode of the corresponding first page element;
and the first attribute configuration module is used for carrying out barrier-free attribute configuration on the at least one first page element according to the target barrier-free configuration file.
In a fourth aspect, an embodiment of the present disclosure further provides an unobstructed processing device, including:
The system comprises a first acquisition module, a second acquisition module and a storage module, wherein the first acquisition module is used for acquiring an original barrier-free configuration file of a target page, the target page comprises at least one page element, the original barrier-free configuration file is used for recording barrier-free configuration information of the at least one page element, the barrier-free configuration information comprises barrier-free labels, and the barrier-free labels are used for indicating a screen reading content determining mode of the corresponding page element;
The information updating module is used for responding to information updating operation and updating barrier-free configuration information in the original barrier-free configuration file;
And the file submitting module is used for responding to the submitting operation and submitting the updated target barrier-free configuration file.
In a fifth aspect, embodiments of the present disclosure further provide an electronic device, including:
One or more processors;
A memory for storing one or more programs,
The one or more programs, when executed by the one or more processors, cause the one or more processors to implement the barrier-free processing methods as described in embodiments of the present disclosure.
In a sixth aspect, the embodiments of the present disclosure also provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the barrier-free processing method according to the embodiments of the present disclosure.
The barrier-free processing method, the barrier-free processing device, the electronic equipment and the storage medium provided by the embodiment of the disclosure acquire a target barrier-free configuration file of a currently displayed target page, wherein the target page comprises at least one first page element, the target barrier-free configuration file is used for recording barrier-free configuration information of the at least one first page element, the barrier-free configuration information comprises barrier-free labels, and the barrier-free labels are used for indicating a screen reading content determining mode of the corresponding first page element; and performing barrier-free attribute configuration on the at least one first page element according to the target barrier-free configuration file. According to the technical scheme, the barrier-free tag in the barrier-free configuration file indicates the screen reading content determining mode of the page element, and barrier-free attribute configuration is carried out on the page element in the page based on the barrier-free configuration file, so that the labor cost consumed by the barrier-free attribute configuration in the page research and development and testing stage can be reduced, and the diversified configuration requirements of the screen reading content and the rapid configuration requirements of the barrier-free attribute of the page element are met.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale.
Fig. 1 is a schematic flow chart of a barrier-free processing method according to an embodiment of the disclosure;
FIG. 2 is a flow chart of another barrier-free processing method according to an embodiment of the disclosure;
FIG. 3 is a flow chart of another barrier-free processing method according to an embodiment of the disclosure;
Fig. 4 is a flow chart of a fourth barrier-free processing method according to an embodiment of the disclosure;
Fig. 5 is a block diagram of a barrier-free processing apparatus according to an embodiment of the present disclosure;
FIG. 6 is a block diagram of another barrier-free processing apparatus provided in an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure have been shown in the accompanying drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
Fig. 1 is a schematic flow chart of an unobstructed processing method according to an embodiment of the disclosure. The method may be performed by an unobstructed processing device, where the device may be implemented in software and/or hardware, configurable in an electronic device, typically in a computer, cell phone or tablet. The barrier-free processing method provided by the embodiment of the disclosure is suitable for a scene of carrying out barrier-free attribute configuration for the currently displayed page, and is particularly suitable for a scene of carrying out barrier-free attribute configuration for the currently displayed page. As shown in fig. 1, the barrier-free processing method provided in this embodiment may include:
S101, acquiring a target barrier-free configuration file of a currently displayed target page, wherein the target page comprises at least one first page element, the target barrier-free configuration file is used for recording barrier-free configuration information of the at least one first page element, the barrier-free configuration information comprises barrier-free labels, and the barrier-free labels are used for indicating a screen reading content determining mode of the corresponding first page element.
In this embodiment, when the target page is displayed, the target barrier-free configuration file of the target page may be obtained, so as to perform barrier-free attribute configuration on the first page element in the target page according to the target barrier-free configuration file.
The target page may be considered as a currently displayed page, which may be a web page or a non-web page, and the target page is described below as an example of a web page. The target page may have one or more page elements displayed therein, including the first page element. The first page element may be a page element in the target page that needs to be configured with barrier-free properties. One or more sub-page elements can be contained in the page element, and the sub-page elements in the same page element can be sub-page elements in the same level or sub-page elements in different levels, and can be specifically configured by configuration personnel. The first page element may be an element that is triggerable by a user to perform an interaction corresponding to the page element; or may be a page element that is not triggerable by the user.
A target barrier-free configuration file may be understood as a barrier-free configuration file of a target page, such as a barrier-free script file. The target barrier-free configuration file may be, for example, a JSON file. The target barrier-free configuration file can be used for recording barrier-free configuration information of page elements needing barrier-free attribute configuration in a target page. The barrier-free configuration information can be used for carrying out barrier-free attribute configuration on the corresponding page element, and when the barrier-free attribute configuration is completed, a visually impaired user can broadcast and read the screen reading content of the corresponding page element through the screen reading software so as to acquire the related information of the first page element and/or carry out corresponding interactive operation based on the first page element.
The barrier-free configuration information of the first page element may include a barrier-free tag of the first page element, and may further include switching order information of the first page element in the target page, and so on. The barrier-free tag of the first page element may be used to indicate a screen reading content determining manner of the first page element, and when the barrier-free tag is different, the screen reading content determining manner adopted by the first page element in determining the screen reading content is different. The switching order information of the first page element in the target page may be, for example, a sequence number of the first page element in the switching order of the target page, or the like. When the user performs a focus switching operation, such as when the user clicks a TAB key, the page element on which the focus is currently focused may be switched in the switching order.
In this embodiment, the barrier-free mode may not be set, and when the target page is displayed, the barrier-free configuration file of the target page is obtained, and the barrier-free attribute configuration is performed on the first page element in the target page according to the barrier-free configuration file.
In this embodiment, it is preferable to set an unobstructed mode, obtain an unobstructed configuration file of the target page only when the unobstructed mode is in an on state, and perform the unobstructed attribute configuration on the first page element in the target page according to the unobstructed configuration file, so as to improve the practicality of performing the unobstructed attribute configuration, and reduce the resource occupation caused by performing the unobstructed configuration. Therefore, the common user can normally browse the target page without opening an obstacle-free mode; the visually impaired user may turn on the unobstructed mode to view the target page.
At this time, optionally, the obtaining the target barrier-free configuration file of the currently displayed target page includes at least one of the following: if the barrier-free mode is in an open state, displaying a target page and acquiring a target barrier-free configuration file of the target page; if the barrier-free mode is in a closed state, displaying a target page, and focusing a focus on a barrier-free control in the target page; and responding to the triggering operation of the barrier-free control, starting a barrier-free mode, acquiring a target barrier-free configuration file of the target page, and removing the barrier-free control from the target page.
The barrier-free mode may correspond to a target page or an application program or website application to which the target page belongs; accordingly, the barrier-free control may be a control for triggering a barrier-free mode of opening the target page or a control for triggering a barrier-free mode of opening an application program or a website application to which the target page belongs. The following describes an example of an unobstructed mode in which the unobstructed control is used to open a website application to which a target page belongs. The barrier-free control may be invisible to an average user, e.g., the transparency of the barrier-free control may be 0 and/or the width and height of the barrier-free control may both be 0.
For example, when a trigger operation for indicating to display the target page is received, it may be determined whether the barrier-free mode of the website application corresponding to the target page is in an on state. If yes, the target page can be displayed, and a target barrier-free configuration file of the target page is obtained. If not, a target page can be displayed, an unobstructed control is arranged in the target page, and a focus is controlled to be focused on the unobstructed control, so that screen reading software plays and reads screen reading contents of the unobstructed control, thereby prompting a visually impaired user to start an unobstructed mode by triggering the unobstructed control; when the triggering operation for the barrier-free control is detected, a barrier-free mode is started for the website application to which the target page belongs, and a target barrier-free configuration file of the target page is acquired. In addition, when the triggering operation of the barrier-free control is detected, the barrier-free control can be further removed from the target page, so that the situation that the barrier-free control is automatically focused when the target page is entered after the barrier-free mode is opened is avoided.
It can be appreciated that the opening of the barrier-free mode in response to the triggering operation of the barrier-free control by the user can be regarded as opening the barrier-free mode for the user corresponding to the account number currently logged in by the website application, and when the account number logged in by the website application changes, whether the barrier-free mode is in an open state can be determined according to the changed account number. In addition, after the barrier-free mode is turned on, the barrier-free mode can be always kept in an on state; and when the opening time of the barrier-free mode reaches the preset time, the barrier-free mode can be switched to the closing state again. The preset time period may be, for example, 1 month, 6 months, 12 months, or the like, and may be specifically set as required.
S102, performing barrier-free attribute configuration on the at least one first page element according to the target barrier-free configuration file.
In this embodiment, after the target barrier-free configuration file of the target page is obtained, barrier-free attribute configuration may be performed on the first page element in the target page according to the target barrier-free configuration file, so as to switch the first page element focused by the focus according to the corresponding switching sequence when the focus switching operation of the user is received, so that the screen reading software may identify the first page element focused in the target page and broadcast and read the screen reading content of the first page element.
When performing the barrier-free attribute configuration on the first page elements in the target page according to the target barrier-free configuration file, for example, the barrier-free attribute configuration may be performed on the corresponding first page elements according to the barrier-free configuration information of each first page element recorded in the target barrier-free configuration file, for example, adding the barrier-free attribute to the corresponding first page elements and configuring the barrier-free attribute. At this time, optionally, the performing, according to the target barrier-free configuration file, barrier-free attribute configuration on the at least one first page element includes: for each first page element, acquiring barrier-free configuration information of the first page element from the target barrier-free configuration file according to the element identification of the first page element; and carrying out barrier-free attribute configuration on the first page element according to the barrier-free configuration information of the first page element. Wherein when there are a plurality of first page elements, the barrier-free properties of the plurality of first page elements may be configured simultaneously; the barrier-free attribute of each first page element may be sequentially configured according to a preset configuration sequence, which is not limited in this embodiment.
In this embodiment, when configuring the barrier-free attribute of a certain page element (such as the first page element), the screen reading content of the page element may be configured. For example, the screen reading content determining mode of the page element can be determined according to the barrier-free label contained in the barrier-free configuration information of the page element, namely according to the barrier-free label of the page element; determining the screen reading content of the page element by adopting the screen reading content determining mode; and configuring the screen reading content as the screen reading content of the page element, such as adding the screen reading content in the attribute information of the barrier-free attribute of the page element. At this time, optionally, the performing, according to the barrier-free configuration information of the first page element, barrier-free attribute configuration on the first page element includes: and determining the screen reading content of the first page element by adopting a screen reading content determining mode corresponding to the barrier-free label of the first page element. The content of the page element read screen can be considered as the content broadcast by the screen reading software when the focus is focused on the page element.
In some embodiments, the determining the screen reading content of the first page element by adopting a screen reading content determining mode corresponding to the barrier-free tag of the first page element includes at least one of the following: if the barrier-free label of the first page element is a first barrier-free label, acquiring a preset document corresponding to the first page element as the screen reading content of the first page element; if the barrier-free label of the first page element is a second barrier-free label, a first document is obtained and used as the screen reading content of the first page element, wherein the first document comprises a document displayed in a first sub-page element, and the first sub-page element is positioned in the first page element; if the barrier-free label of the first page element is a third barrier-free label, a second document is obtained and used as the screen reading content of the page element, wherein the second document comprises a document displayed in a second sub-page element, and the second sub-page element is positioned in the target page; and if the barrier-free label of the first page element is a fourth barrier-free label, splicing third texts corresponding to at least two sub-page elements in the target page according to a preset splicing rule to obtain the screen reading content of the first page element.
In the present embodiment, the barrier-free tag may include at least one of a first barrier-free tag, a second barrier-free tag, a third barrier-free tag, and a fourth barrier-free tag. The manner in which the screen reading content indicated for use by different barrier-free tags may be determined may be different. For example, the first barrier-free tag may be used to indicate that a preset document corresponding to the corresponding page element is adopted as the screen reading content of the corresponding page element. The second barrier-free tag may be used to indicate that the text displayed in the one or more first sub-page elements is used as the screen reading content of the corresponding page element, where the barrier-free configuration information of the corresponding page element may include identification information of the one or more first sub-page elements that need to broadcast and read the text displayed in the corresponding page element. The third barrier-free tag may be used to indicate that the text displayed in the one or more second sub-page elements is adopted as the screen reading content of the corresponding page element, where in the barrier-free configuration information of the corresponding page element may include identification information of the one or more second sub-page elements that need to broadcast and read the text displayed in the barrier-free configuration information. The fourth barrier-free tag can be used for indicating the screen reading content of the corresponding page element obtained by splicing the text corresponding to at least two sub-page elements in the target page, wherein the at least two sub-page elements can comprise a first sub-page element and/or a second sub-page element.
The preset document can be configured by a barrier-free configurator, and can be carried in barrier-free configuration information of a corresponding page element, for example, when the page element is a single button, the preset document corresponding to the button can be set as the screen reading content of the button. The first document may include a document displayed within a first sub-page element, which may be considered as sub-page elements located within the respective page element, the number of which may be one or more. The second document may include a document displayed within a second sub-page element, which may be considered a sub-page element within the target page, which may include sub-page elements that are outside of the respective page element, or may include sub-page elements that are within the respective page element, the number of which may be one or more. The third document may be a document corresponding to a sub-page element that is to be spliced, which may be located within and/or outside the respective page element. The text corresponding to a sub-page element may include a preset text corresponding to the sub-page element, or a text displayed in the sub-page element. The document corresponding to the sub-page element can be configured in advance by a configurator, for example, the configurator can configure the determination mode of the related sub-page element corresponding document when performing barrier-free attribute configuration.
For example, when determining the screen reading content of a certain page element, the unobstructed tag of the page element may be acquired, and at least one of the following is performed:
If the barrier-free tag is a first barrier-free tag, a preset document in barrier-free configuration information of the page element can be obtained and used as the screen reading content of the page element.
If the barrier-free label is a second barrier-free label, the identification information of a first sub-page element, which is contained in barrier-free configuration information of the page element and needs to be acquired, of a document displayed by the barrier-free label can be acquired; determining a first sub-page element according to the identification information; and acquiring a document displayed in the first sub-page element as the screen reading content of the page element.
If the barrier-free label is a third barrier-free label, the identification information of a second sub-page element which is contained in the barrier-free configuration information of the page element and needs to be acquired for displaying the document can be acquired; determining a second sub-page element according to the identification information; and acquiring the text displayed in the second sub-page element as the screen reading content of the page element.
If the barrier-free label is a fourth barrier-free label, the identification information of at least two sub-page elements, which are contained in the barrier-free configuration information of the page element and are needed to splice the corresponding text, can be obtained; determining the at least two sub-page elements according to the identification information; and acquiring the texts corresponding to the at least two sub-page elements, splicing the texts of the at least two sub-page elements by adopting a splicing template contained in the barrier-free information of the page elements, and taking the spliced texts as the screen reading content of the page elements.
According to the barrier-free processing method provided by the embodiment, a target barrier-free configuration file of a currently displayed target page is obtained, wherein the target page comprises at least one first page element, the target barrier-free configuration file is used for recording barrier-free configuration information of the at least one first page element, the barrier-free configuration information comprises barrier-free labels, and the barrier-free labels are used for indicating a screen reading content determining mode of the corresponding first page element; and performing barrier-free attribute configuration on the at least one first page element according to the target barrier-free configuration file. According to the technical scheme, the barrier-free tag in the barrier-free configuration file indicates the screen reading content determining mode of the page element, and barrier-free attribute configuration is carried out on the page element in the page based on the barrier-free configuration file, so that the labor cost consumed by the barrier-free attribute configuration in the page research and development and testing stage can be reduced, and the diversified configuration requirements of the screen reading content and the rapid configuration requirements of the barrier-free attribute of the page element are met.
Fig. 2 is a flow chart of another barrier-free processing method according to an embodiment of the disclosure. The aspects of this embodiment may be combined with one or more of the alternatives of the embodiments described above. Optionally, after the performing the barrier-free attribute configuration on the at least one first page element according to the target barrier-free configuration file, at least one of the following is further included: when detecting that the fourth document displayed in the target page changes, updating the barrier-free attribute of the first page element corresponding to the fourth document according to the changed fourth document; when detecting that a newly added second page element exists in the target page, performing barrier-free attribute configuration on the second page element according to the target barrier-free configuration file; and when the third page element focused by the focus is detected to disappear, controlling the focus to focus on a fourth page element which does not disappear in the target page.
Accordingly, as shown in fig. 2, the barrier-free processing method provided in this embodiment may include:
S201, a target barrier-free configuration file of a currently displayed target page is obtained, wherein the target page comprises at least one first page element, the target barrier-free configuration file is used for recording barrier-free configuration information of the at least one first page element, the barrier-free configuration information comprises barrier-free labels, and the barrier-free labels are used for indicating a screen reading content determining mode of the corresponding first page element.
S202, performing barrier-free attribute configuration on the at least one first page element according to the target barrier-free configuration file, and executing at least one of S203, S204 and S205.
And S203, when detecting that the fourth document displayed in the target page changes, updating the barrier-free attribute of the first page element corresponding to the fourth document according to the changed fourth document.
The fourth document may be a document that changes in the target page.
After the target page is displayed, the text displayed in the target page may change. Taking a session scene as an example, after a user sends/receives a session message, the message content of the session message is displayed in a session frame; if the session message is withdrawn, the display content in the session frame becomes the withdrawal prompt information of the session message.
In this embodiment, whether the document displayed in the target page changes or not may be detected in real time or periodically, for example, whether the document displayed in each page element changes or not is detected; when the document is detected to change, the barrier-free attribute of the page element associated with the document is updated according to the changed document. The page elements associated with the changed document may be, for example, page elements whose screen reading content is determined based on the changed document.
S204, when detecting that a newly added second page element exists in the target page, performing barrier-free attribute configuration on the second page element according to the target barrier-free configuration file.
The second page element may be considered as a newly added page element in the target page, such as a newly popped page element in the target page. Taking a session scenario as an example, a user may receive/send a new session message, or view a user card of the user performing the session through a certain triggering operation, and the new session message or the ejected user card is a newly added page element in the session page, that is, a second page element.
In this embodiment, after the target page is displayed, with the interaction of the user, newly added page elements may appear in the target page, such as popping up some new page elements. Thus, after the target page is displayed, whether new page elements appear in the target page can be detected in real time or periodically; when detecting that a new page element appears in the target page, acquiring barrier-free configuration information of the new page element from the target barrier-free configuration file, and configuring barrier-free attribute for the newly added page element according to the barrier-free configuration information.
In some embodiments, when detecting that there is a newly added second page element in the target page, performing barrier-free attribute configuration on the second page element according to the target barrier-free configuration file includes: when a new page popup window appears in the target page is detected, performing barrier-free attribute configuration on a second page element in the page popup window according to the target barrier-free configuration file, and controlling a focus to focus on a preset second page element in the page popup window.
In the above embodiment, the second page element may be located in the page popup. At this time, when a new page popup window appears in the target page, the barrier-free attribute configuration can be performed on the second page element in the page popup window according to the target barrier-free configuration file, and the focus is controlled to focus on the preset second page element in the page popup window, so that the screen reading software plays and reads the screen reading content corresponding to the preset second page element, thereby prompting the user that the page popup window is newly popped in the target page. The preset second page element may be a page element in the page popup window, which may be configured in advance by a configurator, and in this case, an element identifier of the preset second page element may be recorded in the target barrier-free configuration file.
In this embodiment, after the focus is controlled to focus on the preset second page element in the page popup window, the switching sequence of each page element in the target page may be updated, for example, each second page element in the page popup window is added in the switching sequence, and when the focus switching operation is received, the page element focused on by the focus is switched according to the updated switching sequence. Thus, with a focus switching operation by the user, the focus can be moved from inside the page popup to outside the page popup.
In this embodiment, after the control focus focuses on the preset second page element in the page popup, when the focus switching operation is received, the second page element in which the focus is focused is directly switched according to the preset switching sequence of each second page element in the page popup, that is, only the focus is switched in the page popup until the page popup disappears, where, optionally, after the control focus focuses on the preset second page element in the page popup, the method further includes: and responding to the focus switching operation, and switching the second page elements focused by the focus according to the preset switching sequence of each second page element in the page popup.
The focus switching operation may be a trigger operation for indicating a page element on which the switching focus is currently focused, such as an operation of clicking a TAB key, or the like. The preset switching sequence of each second page element in the page popup window may be configured in advance by a configurator and recorded in a target barrier-free configuration file, for example, the preset switching sequence may be recorded in the target barrier-free configuration file, or the ordering information of the corresponding second page element in the preset switching sequence may be recorded in the barrier-free configuration information of each second page element in the page popup window, and so on.
And S205, when the third page element focused by the focus is detected to disappear, controlling the focus to focus on a fourth page element which does not disappear in the target page.
The third page element may be a disappearing page element in the target page, such as a page element that stops displaying or a page element that moves out of the target page. The page element that stops displaying may include, for example, a page element within a page pop-up window, and the page element that moves out of the target page may include, for example, an obstacle control.
The fourth page element may be the page element to which the focus is switched when the third page element disappears. For example, if no new page element appears in the target page in response to the disappearance of the third page element, the fourth page element may be a certain page element that is already displayed in the target page; if a new page element is popped up in the target page in response to the disappearance of the third page element, the fourth page element may be the newly popped up page element in the target page. Here, a certain page element that has been displayed in the target page may be, for example, a page element that was last focused on before the third page element is displayed or a next page element of the last focused page element in the switching order, and so on.
Specifically, when it is detected that the third page element on which the focus is currently focused disappears, a fourth page element on which focusing is required may be determined, and the focus is controlled to focus on the fourth page element. Thus, the screen reading software can broadcast and read the screen reading content of the fourth page element so as to prompt the user that the page element focused on currently changes.
The barrier-free processing method provided by the embodiment can adapt to various changes in the target page, dynamically update/dynamically configure barrier-free attributes of the changed page elements, or adjust the page elements focused by the focus, so that the screen reading experience of a user is improved.
Fig. 3 is a schematic flow chart of an unobstructed processing method according to an embodiment of the disclosure. The method may be performed by an unobstructed processing device, where the device may be implemented in software and/or hardware, configurable in an electronic device, typically in a computer, cell phone or tablet. The barrier-free processing method provided by the embodiment of the disclosure is suitable for configuring the scene of the barrier-free attribute file of the currently displayed page. As shown in fig. 3, the barrier-free processing method provided in this embodiment may include:
S301, acquiring an original barrier-free configuration file of a target page, wherein the target page comprises at least one page element, the original barrier-free configuration file is used for recording barrier-free configuration information of the at least one page element, the barrier-free configuration information comprises barrier-free labels, and the barrier-free labels are used for indicating a screen reading content determining mode of the corresponding page element.
The target page may be considered as a page currently configured with the barrier-free configuration information, and may be a web page or a non-web page, and the target page is described below as an example of a web page. The target page may have one or more page elements displayed therein, including the first page element. The page element may include one or more sub-page elements, and the sub-page elements included in the same page element may be sub-page elements of the same level or sub-page elements of different levels, which may be specifically configured by a configurator. The face element may be a page element that is triggerable by a user to perform an interaction corresponding to the page element; or may be a page element that is not triggerable by the user.
The original barrier-free configuration file can be the barrier-free configuration file before the information updating operation is performed. The barrier-free configuration file may be used to record barrier-free configuration information of page elements in a target page, and the barrier-free configuration file may be, for example, a JSON file. It is understood that the original barrier-free configuration file may not have any barrier-free configuration information of the page elements recorded therein before the configurator first configures the barrier-free configuration information of each element in the target page. The barrier-free configuration information of the page element may include a barrier-free tag of the page element, and may further include identification information of sub-page elements included in the page element and/or switching sequence information of the page element, and the like.
In this embodiment, the configurator may browse the target page, and may switch the target page to the barrier-free configuration mode when the barrier-free configuration of the target page is to be performed, or when the barrier-free configuration information of one or more page elements in the target page needs to be modified. Therefore, when the website application detects that the target page is switched to the barrier-free configuration mode, the original barrier-free configuration file of the target page can be obtained, for example, barrier-free configuration information of each page element in the target page is obtained, and a configuration indication frame can be further added to the page elements which are subjected to barrier-free configuration in the target page, so that the page elements which are subjected to barrier-free configuration in the target page and sub-page elements (for example, DOM structure information for indicating each page element) contained in each page element are indicated through the configuration indication frame. The page element that has been configured in the target page in the accessible manner may be, for example, a page element corresponding to each accessible configuration information recorded in the original accessible configuration file, that is, a page element that has been configured with accessible configuration information.
S302, in response to the information updating operation, updating the barrier-free configuration information in the original barrier-free configuration file.
In this embodiment, the barrier-free configuration information in the original barrier-free configuration file may be updated based on the information updating operation of the configurator, so as to obtain the target barrier-free configuration file.
The information updating operation may be an operation of performing barrier-free configuration on the page elements in the target page, such as an operation of modifying barrier-free configuration information of the page elements that have been subjected to barrier-free configuration, and/or an operation of configuring barrier-free configuration information for page elements that have not been subjected to barrier-free configuration, and the like. Here, performing the barrier-free configuration may be understood as configuring barrier-free configuration information of the corresponding page element.
In some embodiments, the updating the barrier-free configuration information in the original barrier-free configuration file in response to an information update operation includes: responding to a configuration panel display operation aiming at any page element, displaying a configuration panel of a target page element, wherein the target page element is the page element aimed at by the configuration panel display operation, and the configuration panel is used for editing target barrier-free configuration information of the target page element; and responding to configuration completion operation, and updating the target barrier-free configuration information recorded in the original barrier-free configuration file according to the element identification of the target page element.
The configuration panel display operation may be a triggering operation for indicating a configuration panel displaying a certain page element, such as an operation of clicking a left mouse button or an Enter button after a mouse moves to a display position of a certain page element/sub page element, or an operation of clicking an Enter button after one or more sub page elements are selected, or the like. At this time, the movement time of the mouse may be monitored at the event capture node. When the page element to be moved is blocked by the sub-element, and the mouse cannot select the page element, the page element can be positioned by using the direction key in the keyboard after the mouse hovers at the display position of the page element.
The target page element may be a page element for which the configuration panel display operation is directed, and the page element may include one or more sub-page elements. For example, when a configurator performs a configuration panel display operation for a certain page element in the target page for which barrier-free configuration has been performed, the page element may be regarded as the target page element; when the configurator performs the configuration panel display operation with respect to one or more sub-page elements in the target page, the page elements constituted by the one or more sub-page elements may be taken as target page elements. Here, the one or more sub-page elements may include sub-page elements that have not been configured without an obstacle and/or sub-page elements that have been configured without an obstacle. The target barrier-free configuration information may be barrier-free configuration information of the target page element. The configuration completion operation may be a trigger operation for indicating that the barrier-free configuration information of the target page element has been configured to be completed, such as an operation to trigger a confirmation control in the configuration panel, or the like.
For example, when a configuration panel display operation for a certain page element in the target page is received, the configuration panel of the page element may be displayed, and barrier-free configuration information of the page element is displayed in the configuration panel, so that a configuration person configures the barrier-free configuration information. When the configuration completion operation is received, the barrier-free configuration information configured by the configuration personnel can be obtained, and the barrier-free configuration information is stored into the original barrier-free configuration file according to the element identification of the page element.
Optionally, when receiving a configuration panel display operation for a certain page element in the target page, the configuration panel of the page element may be displayed, and a configuration form corresponding to the barrier-free configuration information of the page element may be displayed in the configuration panel, so as to reduce the configuration difficulty of the barrier-free configuration information. Therefore, when the configuration completion operation is received, the barrier-free configuration information of the page element can be generated according to the configuration form configured by the configurator, and the barrier-free configuration information is stored into the original barrier-free configuration file according to the element identification of the page element.
In this embodiment, after the configuration of the barrier-free configuration information of the target page element is completed, for example, when a configuration completion operation is received, or when a first configuration completion operation is received, the barrier-free attribute of the target page may be updated according to the barrier-free configuration information after the configuration by the configurator, so that the configurator may preview the configuration effect of the target page element. At this time, optionally, the barrier-free processing method provided in this embodiment further includes: and updating the barrier-free attribute of the target page element according to the edited target barrier-free configuration information so as to preview the barrier-free attribute of the target page element.
S303, responding to the submitting operation, and submitting the updated target barrier-free configuration file.
The submitting operation may be a triggering operation for indicating that the target accessible configuration file obtained by the submitting update is submitted, such as an operation for triggering a submitting control. The target barrier-free profile may be the updated original barrier-free profile.
Specifically, when a submitting operation is received, the updated target barrier-free configuration file can be submitted, for example, the target barrier-free configuration file is uploaded to a server, so that the website application can configure barrier-free attributes of page elements in a target page based on the target barrier-free configuration file when a visually impaired user browses the target page.
In this embodiment, when a new page element is created or configured by a configurator, an element identifier of the page element may be generated to uniquely identify the page element through the element identifier in the process of performing the barrier-free configuration and the barrier-free attribute configuration.
In some embodiments, the element identifier of the page element may be generated according to the source code of the page element, for example, a file path passing through the source code of the page element, and further generates the element identifier of the page element in combination with the component function name and/or the tag sequence of the page element, where, optionally, the barrier-free processing method provided in this embodiment further includes: and generating an element identifier of the at least one page element according to the source code of the target page. The tag sequence may be ordering information of the page element when performing focus switching, such as an ordering sequence number of the page element in a switching sequence of a target page or a page popup where the page element is located.
In some embodiments, the generating the element identification of the at least one page element according to the source code of the target page includes: generating a target grammar tree corresponding to the target page according to the source code of the target page, and executing at least one of the following for each grammar tree node in the target grammar tree: if the node type of the grammar tree node is a preset type, generating an element identifier of a page element corresponding to the grammar tree node; and if the node method of the grammar tree node is an element creation method, adding an element identification parameter for the node method, wherein the element identification parameter is used for indicating that the element identification of the page element corresponding to the grammar tree node is generated when the node method is executed.
The target syntax tree may be a syntax tree corresponding to the target page, which may be an abstract syntax tree (Abstract Syntax Tree, AST). The preset type may be JSXElement, for example.
In the above embodiment, when the element identifier is generated for the page element of the target page, the source code of the target page may be statically analyzed to generate the target syntax tree corresponding to the target page, and for each syntax tree node in the syntax tree, whether the node type of the syntax tree node is a preset type is determined, and/or whether the node method of the syntax tree node is an element creation method is determined. If the node type of the grammar tree node is a preset type, generating an element identifier of a page element corresponding to the grammar tree node; and/or if the node method of the syntax tree node is an element creation method, adding an element identification parameter to the node method of the syntax tree node, for example, setting an nth parameter (n is a positive integer) in the node method as the element identification parameter, or adding the element identification parameter as the nth parameter in the node method, etc.
The element identification parameter may be used to indicate that the element identification of the page element corresponding to the syntax tree node is generated when the node method is executed, that is, when the element identification parameter is added, the node method of the syntax tree node generates the element identification for the page element corresponding to the syntax tree node when the node method is executed. When judging whether the node method of the syntax tree node is an element creating method, it is possible to judge whether the node method name of the syntax tree node is a method name of a preset element creating method, and when the method name is a method name of the preset element creating method, it is determined that the node method of the syntax tree node is an element creating method, by way of example. The method name of the preset element creation method may include CREATEELEMENT or the like, for example.
The method for barrier-free processing in the embodiment includes the steps that an original barrier-free configuration file of a target page is obtained, wherein the target page contains at least one page element, the original barrier-free configuration file is used for recording barrier-free configuration information of the at least one page element, the barrier-free configuration information comprises barrier-free labels, and the barrier-free labels are used for indicating a screen reading content determining mode of the page element corresponding to the barrier-free labels; in response to the information updating operation, updating barrier-free configuration information in the original barrier-free configuration file; and submitting the updated target barrier-free configuration file in response to the submitting operation. According to the technical scheme, the barrier-free configuration is carried out on the page elements in the page based on the barrier-free configuration file, and the barrier-free tag in the barrier-free configuration file indicates the screen reading content determining mode of the page elements, so that the labor cost consumed by the barrier-free configuration in the page research and development and testing stage can be reduced, and the diversified configuration requirements of the screen reading content and the rapid configuration requirement of barrier-free configuration information are met.
Fig. 4 is a flow chart of another barrier-free processing method according to an embodiment of the disclosure. The aspects of this embodiment may be combined with one or more of the alternatives of the embodiments described above. Optionally, the at least one page element includes a page element added with a preset identifier, and the barrier-free processing method provided in this embodiment further includes: when the source code of the target page is changed, acquiring an original source code corresponding to the original barrier-free configuration file and a changed target source code; comparing the original source code with the target source code to determine code change content of the target page; and adding a preset identifier for the page element corresponding to the code change content, wherein the preset identifier is used for prompting to re-adapt barrier-free configuration information of the corresponding page element in the original barrier-free configuration file.
Accordingly, as shown in fig. 4, the barrier-free processing method provided in this embodiment may include:
s401, when the source code of the target page is changed, acquiring the original source code corresponding to the original barrier-free configuration file and the changed target source code.
In this embodiment, when the source code of the target page is changed, the configurator may be prompted to reconfirm whether the original barrier-free configuration file can adapt to the changed source code or not, and when the original barrier-free configuration file cannot adapt to the changed source code, modify barrier-free configuration information in the original barrier-free configuration file.
The original barrier-free configuration file may be the barrier-free configuration file of the target page before the source code of the target page changes. The original source code may be considered to be the source code before the source code of the target page is changed, as adapted by the original barrier-free configuration file. The target source code can be regarded as the source code of the target page after the source code of the target page is changed.
Specifically, when the source code of the target page is changed, for example, when the version number of the source code of the target page is changed, the version number of the source code adapted to the original barrier-free configuration file of the target page can be determined, and the source code of the target page is obtained according to the version number and is used as the original source code; and acquiring the source code after the target page is changed as target source code. Here, the version number of the source code to which the original barrier-free configuration file is adapted may be recorded in the original barrier-free configuration file, i.e., the version number of the source code to which the original barrier-free configuration file is adapted may be recorded in the original barrier-free configuration file.
S402, comparing the original source code with the target source code, and determining code change content of the target page.
The code change content of the target page may be the content of the target source code of the target page changed relative to the original source code.
In this embodiment, after the original source code and the target source code are obtained, the target source code may be compared with the original source code, and the content of the target source code that is changed relative to the original source code may be determined as the code change content of the target page.
For example, the content of the target source code changed relative to the original source code can be obtained through a gitdiff method, the changed content in different code files is divided, and a deletion prefix (such as "-") or a new prefix (such as "+") is added to each line of codes changed, so that the deleted code line and the new code line are distinguished through the deletion prefix and the new prefix, and the code changed content of the target page is determined.
S403, adding a preset identifier for the page element corresponding to the code change content, wherein the preset identifier is used for prompting to re-adapt barrier-free configuration information of the corresponding page element in the original barrier-free configuration file.
Specifically, after determining the code change content of the target page, determining, for each code that is changed, a page element corresponding to the line of code, and judging whether a preset identifier is added to the page element, if yes, maintaining the preset identifier added to the page element; if not, adding a preset identifier to the page element, and prompting a configurator to re-adapt barrier-free configuration information of the page element through the preset identifier. The preset identifier may be an identifier for prompting a configurator to re-adapt to barrier-free configuration information of the corresponding page element, and the embodiment does not limit the identifier type of the preset identifier.
S404, acquiring an original barrier-free configuration file of a target page, wherein the target page comprises at least one page element, the at least one page element comprises a page element added with a preset identifier, the original barrier-free configuration file is used for recording barrier-free configuration information of the at least one page element, the barrier-free configuration information comprises barrier-free labels, and the barrier-free labels are used for indicating a screen reading content determining mode of the corresponding page element.
S405, in response to the information updating operation, updating the barrier-free configuration information in the original barrier-free configuration file.
It will be appreciated that when the barrier-free configuration information in the original barrier-free configuration file is updated due to a change in the source code, the version number recorded in the original barrier-free configuration file may be further updated, for example, the version number recorded in the original barrier-free configuration file is updated from the version number of the original source code to the version number of the target source code. In addition, the preset identifier of the page element corresponding to the updated barrier-free configuration information may be further deleted, for example, when a configuration completion operation for a certain page element is received, whether the page element is added with the preset identifier is determined, and when it is determined that the page element is added with the preset identifier, the preset identifier added by the page element is deleted.
S406, responding to the first updating completion operation, and saving the updated target barrier-free configuration file.
According to the barrier-free processing method, when the source code of the page is changed, a configurator is prompted to re-adapt barrier-free configuration information of the page element with the changed source code, a research and development personnel does not need to manually identify the page element with the changed source code, the configurator does not need to manually determine the page element with the changed source code, the research and development speed and barrier-free configuration speed of the page can be further improved, and labor cost required by the research and development process and the barrier-free configuration process of the page is reduced.
Fig. 5 is a block diagram of a barrier-free processing apparatus according to an embodiment of the present disclosure. The device can be realized by software and/or hardware, can be configured in electronic equipment, typically in a computer, a mobile phone or a tablet computer, and can perform barrier-free attribute configuration on a currently displayed page by executing a barrier-free processing method. As shown in fig. 5, the barrier-free processing apparatus provided in this embodiment may include: a first acquisition module 501 and a first attribute configuration module 502, wherein,
A first obtaining module 501, configured to obtain a target barrier-free configuration file of a currently displayed target page, where the target page includes at least one first page element, and the target barrier-free configuration file is configured to record barrier-free configuration information of the at least one first page element, where the barrier-free configuration information includes a barrier-free tag, and the barrier-free tag is configured to indicate a screen reading content determining manner of a corresponding first page element;
A first attribute configuration module 502, configured to perform barrier-free attribute configuration on the at least one first page element according to the target barrier-free configuration file.
According to the barrier-free processing device provided by the embodiment, a first acquisition module is used for acquiring a target barrier-free configuration file of a currently displayed target page, wherein the target page comprises at least one first page element, the target barrier-free configuration file is used for recording barrier-free configuration information of the at least one first page element, the barrier-free configuration information comprises barrier-free labels, and the barrier-free labels are used for indicating a screen reading content determining mode of the corresponding first page element; and performing barrier-free attribute configuration on the at least one first page element according to the target barrier-free configuration file through the first attribute configuration module. According to the technical scheme, the barrier-free tag in the barrier-free configuration file indicates the screen reading content determining mode of the page element, and barrier-free attribute configuration is carried out on the page element in the page based on the barrier-free configuration file, so that the labor cost consumed by the barrier-free attribute configuration in the page research and development and testing stage can be reduced, and the diversified configuration requirements of the screen reading content and the rapid configuration requirements of the barrier-free attribute of the page element are met.
In the above solution, the first attribute configuration module 502 may include: the information acquisition unit is used for acquiring barrier-free configuration information of each first page element from the target barrier-free configuration file according to the element identification of the first page element; and the attribute configuration unit is used for performing barrier-free attribute configuration on the first page element according to the barrier-free configuration information of the first page element.
In the above aspect, the attribute configuration unit may be configured to: and determining the screen reading content of the first page element by adopting a screen reading content determining mode corresponding to the barrier-free label of the first page element.
In the above aspect, the attribute configuration unit may be configured to perform at least one of: if the barrier-free label of the first page element is a first barrier-free label, acquiring a preset document corresponding to the first page element as the screen reading content of the first page element; if the barrier-free label of the first page element is a second barrier-free label, a first document is obtained and used as the screen reading content of the first page element, wherein the first document comprises a document displayed in a first sub-page element, and the first sub-page element is positioned in the first page element; if the barrier-free label of the first page element is a third barrier-free label, a second document is obtained and used as the screen reading content of the page element, wherein the second document comprises a document displayed in a second sub-page element, and the second sub-page element is positioned in the target page; and if the barrier-free label of the first page element is a fourth barrier-free label, splicing third texts corresponding to at least two sub-page elements in the target page according to a preset splicing rule to obtain the screen reading content of the first page element.
Further, the barrier-free processing apparatus provided in the present embodiment may further include at least one of: the first attribute updating module is used for updating the barrier-free attribute of the first page element corresponding to the fourth document according to the changed fourth document when detecting that the fourth document displayed in the target page changes after the barrier-free attribute configuration is carried out on the at least one first page element according to the target barrier-free configuration file; the second attribute configuration module is used for carrying out barrier-free attribute configuration on the second page elements according to the target barrier-free configuration file when detecting that the newly added second page elements exist in the target page after carrying out barrier-free attribute configuration on the at least one first page element according to the target barrier-free configuration file; and the focus control module is used for controlling the focus to focus on a fourth page element which does not disappear in the target page when detecting that the third page element focused on the focus disappears after the barrier-free attribute configuration is carried out on the at least one first page element according to the target barrier-free configuration file.
In the above solution, the second attribute configuration module may be configured to: when a new page popup window appears in the target page is detected, performing barrier-free attribute configuration on a second page element in the page popup window according to the target barrier-free configuration file, and controlling a focus to focus on a preset second page element in the page popup window.
Further, the barrier-free processing apparatus provided in this embodiment may further include: and the focus switching module is used for responding to focus switching operation after the control focus focuses on the preset second page elements in the page popup window, and switching the second page elements focused on by the focus according to the preset switching sequence of each second page element in the page popup window.
In the above aspect, the first obtaining module 501 may be configured to perform at least one of the following: if the barrier-free mode is in an open state, displaying a target page and acquiring a target barrier-free configuration file of the target page; if the barrier-free mode is in a closed state, displaying a target page, and focusing a focus on a barrier-free control in the target page; and responding to the triggering operation of the barrier-free control, starting a barrier-free mode, acquiring a target barrier-free configuration file of the target page, and removing the barrier-free control from the target page.
The barrier-free processing device provided by the embodiment of the disclosure can execute the barrier-free processing method provided by any embodiment of the disclosure, and has the corresponding functional modules and beneficial effects of executing the barrier-free processing method. Technical details not described in detail in this embodiment may be found in the barrier-free processing method provided in any embodiment of the present disclosure.
Fig. 6 is a block diagram of a barrier-free processing apparatus according to an embodiment of the present disclosure. The device can be realized by software and/or hardware, can be configured in electronic equipment, typically in a computer, a mobile phone or a tablet computer, and can configure an unobstructed attribute file of a currently displayed page by executing an unobstructed processing method. As shown in fig. 6, the barrier-free processing apparatus provided in this embodiment may include: a second acquisition module 601, an information update module 602, and a file submission module 603, wherein,
A second obtaining module 601, configured to obtain an original barrier-free configuration file of a target page, where the target page includes at least one page element, the original barrier-free configuration file is configured to record barrier-free configuration information of the at least one page element, the barrier-free configuration information includes a barrier-free tag, and the barrier-free tag is configured to indicate a screen reading content determining manner of a corresponding page element;
an information updating module 602, configured to update the barrier-free configuration information in the original barrier-free configuration file in response to an information updating operation;
The file submitting module 603 is configured to submit the updated target barrier-free configuration file in response to the submitting operation.
The barrier-free processing device provided in this embodiment obtains, through the second obtaining module, an original barrier-free configuration file of a target page, where the target page includes at least one page element, the original barrier-free configuration file is used to record barrier-free configuration information of the at least one page element, the barrier-free configuration information includes a barrier-free tag, and the barrier-free tag is used to indicate a screen reading content determining manner of the page element corresponding to the barrier-free tag; updating the barrier-free configuration information in the original barrier-free configuration file by the information updating module in response to the information updating operation; and responding to the submitting operation through the file submitting module, and submitting the updated target barrier-free configuration file. According to the technical scheme, the barrier-free configuration is carried out on the page elements in the page based on the barrier-free configuration file, and the barrier-free tag in the barrier-free configuration file indicates the screen reading content determining mode of the page elements, so that the labor cost consumed by the barrier-free configuration in the page research and development and testing stage can be reduced, and the diversified configuration requirements of the screen reading content and the rapid configuration requirement of barrier-free configuration information are met.
In the above solution, the information updating module 602 may be configured to: responding to a configuration panel display operation aiming at any page element, displaying a configuration panel of a target page element, wherein the target page element is the page element aimed at by the configuration panel display operation, and the configuration panel is used for editing target barrier-free configuration information of the target page element; and responding to configuration completion operation, and updating the target barrier-free configuration information recorded in the original barrier-free configuration file according to the element identification of the target page element.
Further, the barrier-free processing apparatus provided in the present embodiment may further include: and the second attribute updating module is used for updating the barrier-free attribute of the target page element according to the edited target barrier-free configuration information so as to preview the barrier-free attribute of the target page element.
Further, the barrier-free processing apparatus provided in the present embodiment may further include: and the identification generation module is used for generating the element identification of the at least one page element according to the source code of the target page.
In the above solution, the identifier generating module may be configured to: generating a target grammar tree corresponding to the target page according to the source code of the target page, and executing at least one of the following for each grammar tree node in the target grammar tree: if the node type of the grammar tree node is a preset type, generating an element identifier of a page element corresponding to the grammar tree node; and if the node method of the grammar tree node is an element creation method, adding an element identification parameter for the node method, wherein the element identification parameter is used for indicating that the element identification of the page element corresponding to the grammar tree node is generated when the node method is executed.
In the foregoing solution, the at least one page element may include a page element added with a preset identifier, and the barrier-free processing apparatus in this embodiment may further include: the code acquisition module is used for acquiring the original source code corresponding to the original barrier-free configuration file and the changed target source code when the source code of the target page is changed; the code comparison module is used for comparing the original source code with the target source code and determining code change content of the target page; the identification adding module is used for adding a preset identification for the page element corresponding to the code change content, wherein the preset identification is used for prompting to re-adapt barrier-free configuration information of the corresponding page element in the original barrier-free configuration file.
The barrier-free processing device provided by the embodiment of the disclosure can execute the barrier-free processing method provided by any embodiment of the disclosure, and has the corresponding functional modules and beneficial effects of executing the barrier-free processing method. Technical details not described in detail in this embodiment may be found in the barrier-free processing method provided in any embodiment of the present disclosure.
Referring now to fig. 7, a schematic diagram of an electronic device (e.g., a computer device or terminal device) 700 suitable for use in implementing embodiments of the present disclosure is shown. The terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 7 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 7, the electronic device 700 may include a processing means (e.g., a central processor, a graphics processor, etc.) 701, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 702 or a program loaded from a storage means 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the electronic device 700 are also stored. The processing device 701, the ROM 702, and the RAM 703 are connected to each other through a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
In general, the following devices may be connected to the I/O interface 705: input devices 706 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, and the like; an output device 707 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 708 including, for example, magnetic tape, hard disk, etc.; and a communication device 709. The communication means 709 may allow the electronic device 700 to communicate wirelessly or by wire with other devices to exchange data. While fig. 7 shows an electronic device 700 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via communication device 709, or installed from storage 708, or installed from ROM 702. The above-described functions defined in the methods of the embodiments of the present disclosure are performed when the computer program is executed by the processing device 701.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring a target barrier-free configuration file of a currently displayed target page, wherein the target page comprises at least one first page element, the target barrier-free configuration file is used for recording barrier-free configuration information of the at least one first page element, the barrier-free configuration information comprises barrier-free labels, and the barrier-free labels are used for indicating a screen reading content determining mode of the corresponding first page element; and performing barrier-free attribute configuration on the at least one first page element according to the target barrier-free configuration file. Or alternatively
Acquiring an original barrier-free configuration file of a target page, wherein the target page comprises at least one page element, the original barrier-free configuration file is used for recording barrier-free configuration information of the at least one page element, the barrier-free configuration information comprises barrier-free labels, and the barrier-free labels are used for indicating a screen reading content determining mode of the corresponding page element; in response to an information update operation, updating barrier-free configuration information in the original barrier-free configuration file; and submitting the updated target barrier-free configuration file in response to the submitting operation.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including, but not limited to, an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. Wherein the name of the module does not constitute a limitation of the unit itself in some cases.
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
In accordance with one or more embodiments of the present disclosure, example 1 provides a barrier-free processing method, comprising:
Acquiring a target barrier-free configuration file of a currently displayed target page, wherein the target page comprises at least one first page element, the target barrier-free configuration file is used for recording barrier-free configuration information of the at least one first page element, the barrier-free configuration information comprises barrier-free labels, and the barrier-free labels are used for indicating a screen reading content determining mode of the corresponding first page element;
and performing barrier-free attribute configuration on the at least one first page element according to the target barrier-free configuration file.
According to one or more embodiments of the present disclosure, example 2 is the method of example 1, the performing, according to the target barrier-free configuration file, barrier-free attribute configuration on the at least one first page element, including:
For each first page element, acquiring barrier-free configuration information of the first page element from the target barrier-free configuration file according to the element identification of the first page element;
and carrying out barrier-free attribute configuration on the first page element according to the barrier-free configuration information of the first page element.
According to one or more embodiments of the present disclosure, example 3 is the method of example 2, wherein the performing, according to the barrier-free configuration information of the first page element, barrier-free attribute configuration on the first page element includes:
And determining the screen reading content of the first page element by adopting a screen reading content determining mode corresponding to the barrier-free label of the first page element.
According to one or more embodiments of the present disclosure, example 4 is the method of example 3, wherein the determining, by using a screen reading content determining manner corresponding to the barrier-free tag of the first page element, the screen reading content of the first page element includes at least one of:
If the barrier-free label of the first page element is a first barrier-free label, acquiring a preset document corresponding to the first page element as the screen reading content of the first page element;
If the barrier-free label of the first page element is a second barrier-free label, a first document is obtained and used as the screen reading content of the first page element, wherein the first document comprises a document displayed in a first sub-page element, and the first sub-page element is positioned in the first page element;
If the barrier-free label of the first page element is a third barrier-free label, a second document is obtained and used as the screen reading content of the page element, wherein the second document comprises a document displayed in a second sub-page element, and the second sub-page element is positioned in the target page;
And if the barrier-free label of the first page element is a fourth barrier-free label, splicing third texts corresponding to at least two sub-page elements in the target page according to a preset splicing rule to obtain the screen reading content of the first page element.
According to one or more embodiments of the present disclosure, example 5, the method according to any one of examples 1-4, further comprising, after the barrier-free attribute configuration of the at least one first page element according to the target barrier-free configuration file, at least one of:
When detecting that the fourth document displayed in the target page changes, updating the barrier-free attribute of the first page element corresponding to the fourth document according to the changed fourth document;
when detecting that a newly added second page element exists in the target page, performing barrier-free attribute configuration on the second page element according to the target barrier-free configuration file;
And when the third page element focused by the focus is detected to disappear, controlling the focus to focus on a fourth page element which does not disappear in the target page.
According to one or more embodiments of the present disclosure, example 6 is the method of example 5, wherein when detecting that there is a newly added second page element in the target page, performing barrier-free attribute configuration on the second page element according to the target barrier-free configuration file, including:
When a new page popup window appears in the target page is detected, performing barrier-free attribute configuration on a second page element in the page popup window according to the target barrier-free configuration file, and controlling a focus to focus on a preset second page element in the page popup window.
According to one or more embodiments of the present disclosure, example 7 is the method of example 6, further comprising, after the control focus focuses on a preset second page element within the page popup:
And responding to the focus switching operation, and switching the second page elements focused by the focus according to the preset switching sequence of each second page element in the page popup.
According to one or more embodiments of the present disclosure, example 8 is the method of any one of examples 1-4, the obtaining a target barrier-free profile of a currently displayed target page, comprising at least one of:
If the barrier-free mode is in an open state, displaying a target page and acquiring a target barrier-free configuration file of the target page;
If the barrier-free mode is in a closed state, displaying a target page, and focusing a focus on a barrier-free control in the target page; and responding to the triggering operation of the barrier-free control, starting a barrier-free mode, acquiring a target barrier-free configuration file of the target page, and removing the barrier-free control from the target page.
Example 9 provides a barrier-free processing method according to one or more embodiments of the present disclosure, comprising:
acquiring an original barrier-free configuration file of a target page, wherein the target page comprises at least one page element, the original barrier-free configuration file is used for recording barrier-free configuration information of the at least one page element, the barrier-free configuration information comprises barrier-free labels, and the barrier-free labels are used for indicating a screen reading content determining mode of the corresponding page element;
in response to an information update operation, updating barrier-free configuration information in the original barrier-free configuration file;
And submitting the updated target barrier-free configuration file in response to the submitting operation.
According to one or more embodiments of the present disclosure, example 10, in response to the information update operation according to the method of example 9, updates the barrier-free configuration information in the original barrier-free configuration file, comprising:
Responding to a configuration panel display operation aiming at any page element, displaying a configuration panel of a target page element, wherein the target page element is the page element aimed at by the configuration panel display operation, and the configuration panel is used for editing target barrier-free configuration information of the target page element;
and responding to configuration completion operation, and updating the target barrier-free configuration information recorded in the original barrier-free configuration file according to the element identification of the target page element.
According to one or more embodiments of the present disclosure, example 11 is the method of example 10, further comprising:
And updating the barrier-free attribute of the target page element according to the edited target barrier-free configuration information so as to preview the barrier-free attribute of the target page element.
According to one or more embodiments of the present disclosure, example 12 is the method of any one of examples 9-11, further comprising:
And generating an element identifier of the at least one page element according to the source code of the target page.
According to one or more embodiments of the present disclosure, example 13 is the method of example 12, the generating the element identification of the at least one page element from the source code of the target page, comprising:
generating a target grammar tree corresponding to the target page according to the source code of the target page, and executing at least one of the following for each grammar tree node in the target grammar tree:
If the node type of the grammar tree node is a preset type, generating an element identifier of a page element corresponding to the grammar tree node;
And if the node method of the grammar tree node is an element creation method, adding an element identification parameter for the node method, wherein the element identification parameter is used for indicating that the element identification of the page element corresponding to the grammar tree node is generated when the node method is executed.
According to one or more embodiments of the present disclosure, example 14 is the method according to any one of examples 9 to 11, wherein the at least one page element includes a page element to which a preset identifier is added, the method further comprising:
when the source code of the target page is changed, acquiring an original source code corresponding to the original barrier-free configuration file and a changed target source code;
Comparing the original source code with the target source code to determine code change content of the target page;
And adding a preset identifier for the page element corresponding to the code change content, wherein the preset identifier is used for prompting to re-adapt barrier-free configuration information of the corresponding page element in the original barrier-free configuration file.
Example 15 provides an unobstructed processing device according to one or more embodiments of the disclosure, comprising:
The system comprises a first acquisition module, a second acquisition module and a first display module, wherein the first acquisition module is used for acquiring a target barrier-free configuration file of a currently displayed target page, the target page comprises at least one first page element, the target barrier-free configuration file is used for recording barrier-free configuration information of the at least one first page element, the barrier-free configuration information comprises barrier-free labels, and the barrier-free labels are used for indicating a screen reading content determining mode of the corresponding first page element;
and the first attribute configuration module is used for carrying out barrier-free attribute configuration on the at least one first page element according to the target barrier-free configuration file.
Example 16 provides an unobstructed processing device according to one or more embodiments of the disclosure, comprising:
The system comprises a first acquisition module, a second acquisition module and a storage module, wherein the first acquisition module is used for acquiring an original barrier-free configuration file of a target page, the target page comprises at least one page element, the original barrier-free configuration file is used for recording barrier-free configuration information of the at least one page element, the barrier-free configuration information comprises barrier-free labels, and the barrier-free labels are used for indicating a screen reading content determining mode of the corresponding page element;
The information updating module is used for responding to information updating operation and updating barrier-free configuration information in the original barrier-free configuration file;
And the file submitting module is used for responding to the submitting operation and submitting the updated target barrier-free configuration file.
Example 17 provides an electronic device according to one or more embodiments of the present disclosure, comprising:
One or more processors;
A memory for storing one or more programs,
The one or more programs, when executed by the one or more processors, cause the one or more processors to implement the barrier-free processing method as described in any one of examples 1-14.
Example 18 provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the barrier-free processing method of any of examples 1-14, according to one or more embodiments of the present disclosure.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).
Moreover, although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are example forms of implementing the claims.

Claims (18)

1.A barrier-free treatment method, comprising:
Acquiring a target barrier-free configuration file of a currently displayed target page, wherein the target page comprises at least one first page element, the target barrier-free configuration file is used for recording barrier-free configuration information of the at least one first page element, the barrier-free configuration information comprises barrier-free labels, and the barrier-free labels are used for indicating a screen reading content determining mode of the corresponding first page element;
and performing barrier-free attribute configuration on the at least one first page element according to the target barrier-free configuration file.
2. The method of claim 1, wherein the performing the barrier-free attribute configuration on the at least one first page element according to the target barrier-free configuration file comprises:
For each first page element, acquiring barrier-free configuration information of the first page element from the target barrier-free configuration file according to the element identification of the first page element;
and carrying out barrier-free attribute configuration on the first page element according to the barrier-free configuration information of the first page element.
3. The method according to claim 2, wherein the performing the barrier-free attribute configuration on the first page element according to the barrier-free configuration information of the first page element includes:
And determining the screen reading content of the first page element by adopting a screen reading content determining mode corresponding to the barrier-free label of the first page element.
4. The method of claim 3, wherein the determining the screen reading content of the first page element in the screen reading content determining manner corresponding to the barrier-free tag of the first page element includes at least one of:
If the barrier-free label of the first page element is a first barrier-free label, acquiring a preset document corresponding to the first page element as the screen reading content of the first page element;
If the barrier-free label of the first page element is a second barrier-free label, a first document is obtained and used as the screen reading content of the first page element, wherein the first document comprises a document displayed in a first sub-page element, and the first sub-page element is positioned in the first page element;
If the barrier-free label of the first page element is a third barrier-free label, a second document is obtained and used as the screen reading content of the page element, wherein the second document comprises a document displayed in a second sub-page element, and the second sub-page element is positioned in the target page;
And if the barrier-free label of the first page element is a fourth barrier-free label, splicing third texts corresponding to at least two sub-page elements in the target page according to a preset splicing rule to obtain the screen reading content of the first page element.
5. The method of any of claims 1-4, further comprising, after said configuring the barrier-free attribute of the at least one first page element according to the target barrier-free configuration file, at least one of:
When detecting that the fourth document displayed in the target page changes, updating the barrier-free attribute of the first page element corresponding to the fourth document according to the changed fourth document;
when detecting that a newly added second page element exists in the target page, performing barrier-free attribute configuration on the second page element according to the target barrier-free configuration file;
And when the third page element focused by the focus is detected to disappear, controlling the focus to focus on a fourth page element which does not disappear in the target page.
6. The method of claim 5, wherein configuring the second page element according to the target barrier-free configuration file when detecting that the second page element is newly added in the target page comprises:
When a new page popup window appears in the target page is detected, performing barrier-free attribute configuration on a second page element in the page popup window according to the target barrier-free configuration file, and controlling a focus to focus on a preset second page element in the page popup window.
7. The method of claim 6, further comprising, after the control focus is focused on a preset second page element within the page pop:
And responding to the focus switching operation, and switching the second page elements focused by the focus according to the preset switching sequence of each second page element in the page popup.
8. The method of any of claims 1-4, wherein the obtaining a target barrier-free profile of a currently displayed target page comprises at least one of:
If the barrier-free mode is in an open state, displaying a target page and acquiring a target barrier-free configuration file of the target page;
If the barrier-free mode is in a closed state, displaying a target page, and focusing a focus on a barrier-free control in the target page; and responding to the triggering operation of the barrier-free control, starting a barrier-free mode, acquiring a target barrier-free configuration file of the target page, and removing the barrier-free control from the target page.
9. A barrier-free treatment method, comprising:
acquiring an original barrier-free configuration file of a target page, wherein the target page comprises at least one page element, the original barrier-free configuration file is used for recording barrier-free configuration information of the at least one page element, the barrier-free configuration information comprises barrier-free labels, and the barrier-free labels are used for indicating a screen reading content determining mode of the corresponding page element;
in response to an information update operation, updating barrier-free configuration information in the original barrier-free configuration file;
And submitting the updated target barrier-free configuration file in response to the submitting operation.
10. The method of claim 9, wherein the updating the barrier-free configuration information in the original barrier-free configuration file in response to an information update operation comprises:
Responding to a configuration panel display operation aiming at any page element, displaying a configuration panel of a target page element, wherein the target page element is the page element aimed at by the configuration panel display operation, and the configuration panel is used for editing target barrier-free configuration information of the target page element;
and responding to configuration completion operation, and updating the target barrier-free configuration information recorded in the original barrier-free configuration file according to the element identification of the target page element.
11. The method as recited in claim 10, further comprising:
And updating the barrier-free attribute of the target page element according to the edited target barrier-free configuration information so as to preview the barrier-free attribute of the target page element.
12. The method according to any one of claims 9-11, further comprising:
And generating an element identifier of the at least one page element according to the source code of the target page.
13. The method of claim 12, wherein generating the element identification of the at least one page element from the source code of the target page comprises:
generating a target grammar tree corresponding to the target page according to the source code of the target page, and executing at least one of the following for each grammar tree node in the target grammar tree:
If the node type of the grammar tree node is a preset type, generating an element identifier of a page element corresponding to the grammar tree node;
And if the node method of the grammar tree node is an element creation method, adding an element identification parameter for the node method, wherein the element identification parameter is used for indicating that the element identification of the page element corresponding to the grammar tree node is generated when the node method is executed.
14. The method according to any one of claims 9-11, wherein the at least one page element includes a page element to which a preset identifier is added, the method further comprising:
when the source code of the target page is changed, acquiring an original source code corresponding to the original barrier-free configuration file and a changed target source code;
Comparing the original source code with the target source code to determine code change content of the target page;
And adding a preset identifier for the page element corresponding to the code change content, wherein the preset identifier is used for prompting to re-adapt barrier-free configuration information of the corresponding page element in the original barrier-free configuration file.
15. An unobstructed treatment device, comprising:
The system comprises a first acquisition module, a second acquisition module and a first display module, wherein the first acquisition module is used for acquiring a target barrier-free configuration file of a currently displayed target page, the target page comprises at least one first page element, the target barrier-free configuration file is used for recording barrier-free configuration information of the at least one first page element, the barrier-free configuration information comprises barrier-free labels, and the barrier-free labels are used for indicating a screen reading content determining mode of the corresponding first page element;
and the first attribute configuration module is used for carrying out barrier-free attribute configuration on the at least one first page element according to the target barrier-free configuration file.
16. An unobstructed treatment device, comprising:
The system comprises a first acquisition module, a second acquisition module and a storage module, wherein the first acquisition module is used for acquiring an original barrier-free configuration file of a target page, the target page comprises at least one page element, the original barrier-free configuration file is used for recording barrier-free configuration information of the at least one page element, the barrier-free configuration information comprises barrier-free labels, and the barrier-free labels are used for indicating a screen reading content determining mode of the corresponding page element;
The information updating module is used for responding to information updating operation and updating barrier-free configuration information in the original barrier-free configuration file;
And the file submitting module is used for responding to the submitting operation and submitting the updated target barrier-free configuration file.
17. An electronic device, comprising:
at least one processor; and
A memory communicatively coupled to the at least one processor; wherein,
The memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the barrier-free processing method of any one of claims 1-14.
18. A computer readable storage medium, characterized in that the computer readable storage medium stores computer instructions for causing a processor to implement the barrier-free processing method of any one of claims 1 to 14 when executed.
CN202211297112.9A 2022-10-21 2022-10-21 Barrier-free processing method, barrier-free processing device, electronic equipment and storage medium Pending CN117917634A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211297112.9A CN117917634A (en) 2022-10-21 2022-10-21 Barrier-free processing method, barrier-free processing device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211297112.9A CN117917634A (en) 2022-10-21 2022-10-21 Barrier-free processing method, barrier-free processing device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117917634A true CN117917634A (en) 2024-04-23

Family

ID=90729745

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211297112.9A Pending CN117917634A (en) 2022-10-21 2022-10-21 Barrier-free processing method, barrier-free processing device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117917634A (en)

Similar Documents

Publication Publication Date Title
CN110634049B (en) Page display content processing method and device, electronic equipment and readable medium
CN111966255B (en) Information display method and device, electronic equipment and computer readable medium
WO2021068634A1 (en) Page jump method and apparatus, electronic device and computer-readable storage medium
CN114449331B (en) Video display method and device, electronic equipment and storage medium
CN110619100B (en) Method and apparatus for acquiring data
CN113254136A (en) Information recommendation popup window display method, device, equipment and computer readable medium
CN110618811B (en) Information presentation method and device
CN111783010B (en) Webpage blank page monitoring method, device, terminal and storage medium
CN109683726B (en) Character input method, character input device, electronic equipment and storage medium
CN110717126A (en) Page browsing method and device, electronic equipment and computer readable storage medium
CN112256172B (en) Application display method, device, terminal and storage medium
CN117917634A (en) Barrier-free processing method, barrier-free processing device, electronic equipment and storage medium
CN112911367B (en) Video playing interface processing method and device and electronic equipment
CN113221554A (en) Text processing method and device, electronic equipment and storage medium
CN112306469A (en) Barrier-free component construction method, device, equipment and storage medium
CN113220293B (en) Page display method, page display device, electronic equipment and computer readable medium
CN111367517B (en) Information generation method and device
US20240134662A1 (en) Window display method, apparatus, terminal and storage medium
CN114489902A (en) Interface display method, device, equipment and medium
CN117493217A (en) Test case generation method and device, readable medium and electronic equipment
CN116820311A (en) Cover setting method and device, electronic equipment and storage medium
CN116155848A (en) Information processing method, device, electronic equipment and computer readable medium
CN117851438A (en) Data analysis method and device, readable medium and electronic equipment
CN110618812A (en) Information presentation method and device
CN116795266A (en) Interaction method, interaction device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination