A method, device, equipment and medium for generating a network page blind way
By determining the page path and identifier of the web page and combining it with the tactile paving configuration file library, the page tactile paving is generated in a refined manner, which solves the problem of low efficiency in the existing technology and achieves efficient and accurate page tactile paving generation.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- AGRICULTURAL BANK OF CHINA
- Filing Date
- 2022-09-22
- Publication Date
- 2026-05-15
AI Technical Summary
In existing technologies, the tactile paving information for all pages is stored in a common tactile paving file. This results in the need to traverse the tactile paving information for all pages when generating page tactile paving, which is inefficient and leads to disordered page tactile paving order and tactile paving matching errors.
By determining the page path of the webpage, generating page identifiers, and identifying the target tactile paving configuration file from the preset tactile paving configuration file library, the target tactile paving area, name, and description are read using a tactile paving configuration file reading tool to refine the tactile paving definition and efficiently generate the page tactile paving.
It achieves refined definition of tactile paving, improves the efficiency of generating tactile paving on the page, and avoids disordered tactile paving order and matching errors.
Smart Images

Figure CN115510357B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of web page development technology, and in particular to a method, apparatus, device, and medium for generating tactile paving on web pages. Background Technology
[0002] With the widespread use of the internet, more and more websites are supporting age-friendly services. The emergence of tactile paving on websites allows users to quickly understand the functions of a page, especially for the elderly and people with disabilities. Tactile paving has become the only way for them to quickly understand the functional modules of a page and quickly locate the functions they need.
[0003] Currently, accessible web pages store the tactile paving information of all pages in a public tactile paving file. This results in the need to traverse all the tactile paving information on all pages when generating the tactile paving for a user after entering the page, which is inefficient. Since the tactile paving is matched from beginning to end, there are problems such as disordered order of tactile paving on the page and tactile paving matching errors. Summary of the Invention
[0004] This invention provides a method, apparatus, device, and medium for generating tactile paving on web pages, so as to achieve refined definition of tactile paving and efficient generation of tactile paving on web pages.
[0005] According to one aspect of the present invention, a method for generating tactile paving on a webpage is provided, the method comprising:
[0006] Determine the page path of the web page, and generate a page identifier corresponding to the web page based on the page path;
[0007] The target tactile paving configuration file for the web page is determined from the preset tactile paving configuration file library based on the page identifier;
[0008] The target tactile paving configuration file is read using a tactile paving configuration file reading tool to determine the target tactile paving area, target tactile paving name, and target tactile paving description corresponding to the target tactile paving configuration file.
[0009] The webpage generates the tactile paving based on the target tactile paving area, the target tactile paving name, and the target tactile paving description.
[0010] According to another aspect of the present invention, an apparatus for generating tactile paving for the visually impaired on a webpage is provided, the apparatus comprising:
[0011] The page identifier generation module is used to determine the page path of a web page and generate a page identifier corresponding to the web page based on the page path.
[0012] The tactile paving configuration file determination module is used to determine the target tactile paving configuration file of the web page from a preset tactile paving configuration file library based on the page identifier;
[0013] The tactile paving configuration file reading module is used to read the target tactile paving configuration file based on the tactile paving configuration file reading tool, and determine the target tactile paving area, target tactile paving name and target tactile paving description corresponding to the target tactile paving configuration file.
[0014] The webpage tactile paving generation module is used to generate the tactile paving for the webpage based on the target tactile paving area, the target tactile paving name, and the target tactile paving description.
[0015] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0016] At least one processor; and
[0017] A memory communicatively connected to the at least one processor; wherein,
[0018] The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the method for generating tactile paving on a webpage according to any embodiment of the present invention.
[0019] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the method for generating tactile paths on a web page according to any embodiment of the present invention.
[0020] The technical solution of this invention involves determining the page path of a webpage and generating a page identifier corresponding to the webpage based on the page path; determining the target tactile paving configuration file for the webpage from a preset tactile paving configuration file library based on the page identifier; reading the target tactile paving configuration file using a tactile paving configuration file reading tool to determine the target tactile paving area, target tactile paving name, and target tactile paving description corresponding to the target tactile paving configuration file; and generating the tactile paving for the webpage based on the target tactile paving area, target tactile paving name, and target tactile paving description. This solves the problems of inefficiency in the prior art where tactile paving information for all pages is stored in a common tactile paving file, requiring traversal of all page tactile paving information when generating page tactile paving, as well as the problems of disordered page tactile paving order and tactile paving matching errors. This solution achieves refined tactile paving definition and efficient generation of page tactile paving.
[0021] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0022] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0023] Figure 1 This is a flowchart of a method for generating tactile paving on a webpage, provided in Embodiment 1 of the present invention.
[0024] Figure 2 A flowchart illustrating a method for generating tactile paving on a webpage, provided in Embodiment 2 of the present invention;
[0025] Figure 3 This is a schematic diagram of a device for generating tactile paving on a webpage, provided in Embodiment 3 of the present invention.
[0026] Figure 4 This is a schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. Detailed Implementation
[0027] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0028] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0029] Example 1
[0030] Figure 1This is a flowchart illustrating a method for generating tactile paving on a webpage, as provided in Embodiment 1 of the present invention. This embodiment is applicable to situations requiring the creation of tactile paving on webpages. The method can be executed by a device for generating tactile paving on webpages, which can be implemented in hardware and / or software and can be configured on a PC or mobile terminal. Figure 1 As shown, the method includes:
[0031] S110. Determine the page path of the web page and generate a page identifier corresponding to the web page based on the page path.
[0032] Here, a web page can be a page contained in a website, and a page path refers to the address of a web page in web resources. For example, a page path can be the URL of a page. Page identifiers can be composed of numbers, symbols, and English letters to distinguish different web pages. Different web pages in a website correspond to different page identifiers.
[0033] Specifically, if you need to add tactile paving to a webpage on a website, you can determine the page path of that webpage, process the determined page path to obtain the corresponding page identifier, which can be used to distinguish different pages, that is, different pages correspond to different page identifiers.
[0034] Based on the above technical solution, determining the page path of a web page and generating a page identifier corresponding to the web page based on the page path includes: loading the page code of the web page, determining the page path of the web page based on the loaded web page, and filtering the hash part in the page path to obtain the page path to be used; and determining the page identifier of the web page based on preset rules and the page path to be used.
[0035] Here, page code refers to the source code required to load a web page in a browser, page path to be used refers to the page path obtained after filtering the hash part of the web page path, and preset rules can be the processing rules for the page path to be used.
[0036] Specifically, the source code of a webpage can be loaded into the browser. After loading, the page path of that page can be determined. It's understood that the hash portion of the page path for the same webpage will be different. To avoid duplicate generation of tactile paving for the visually impaired, the hash portion of the page path can be filtered, and the filtered page path is used as the page path to be used. Further, the page path to be used is processed to obtain the page identifier.
[0037] For example, if the path to the webpage to be used is a URL, the corresponding processing could be to replace the " / " in the URL with an underscore and use the resulting text as the page identifier of the webpage.
[0038] S120. Determine the target tactile paving configuration file for the webpage from the preset tactile paving configuration file library based on the page identifier.
[0039] The preset tactile paving configuration file library can be a pre-established library that stores the corresponding tactile paving configuration files for each page of the website. The target tactile paving configuration file can be the configuration file required to generate the tactile paving for the current web page.
[0040] Specifically, the pre-established tactile paving configuration file library stores the corresponding tactile paving configuration files for each page of the website. After determining the page identifier, the tactile paving configuration file corresponding to the current web page can be found from the pre-established tactile paving configuration file library based on the page identifier, so that the corresponding tactile paving can be added to the current web page based on the tactile paving configuration file.
[0041] Based on the above technical solution, before determining the target tactile paving configuration file of the web page from the preset tactile paving configuration file library based on the page identifier, the method further includes: establishing a preset tactile paving configuration file library corresponding to the web page.
[0042] The preset tactile paving configuration file library includes at least one target matching page identifier and a tactile paving configuration file to be used corresponding to each target matching page identifier. The target matching page identifier refers to the page identifier of each page of the website that is stored in advance, and the tactile paving configuration file to be used refers to the tactile paving configuration file corresponding to each page of the website.
[0043] Specifically, the preset tactile paving configuration file library stores tactile paving configuration files corresponding to different pages, i.e., tactile paving configuration files to be used. Each tactile paving configuration file to be used corresponds to a target matching page identifier. Based on this, when searching for the tactile paving configuration file corresponding to the current page, it is only necessary to search in the preset tactile paving configuration file library to see if there is a corresponding target matching page identifier.
[0044] Based on the above technical solution, the step of determining the target tactile paving configuration file of the network page from the preset tactile paving configuration file library based on the page identifier includes: determining the target matching page identifier corresponding to the page identifier from the preset configuration file library based on the page identifier; determining the corresponding tactile paving configuration file to be used from the preset tactile paving configuration file library based on the target matching page identifier, and determining the tactile paving configuration file to be used as the target tactile paving configuration file.
[0045] Specifically, the system can search for a matching page identifier from a pre-defined configuration file library based on the page identifier of the webpage. If a match is found, it means that the configuration file required for establishing tactile paving on the current webpage is stored in the tactile paving configuration file library. The tactile paving configuration file corresponding to the matching page identifier can be used as the target tactile paving configuration file. In this way, the target tactile paving configuration file for the current page can be determined by matching page identifiers.
[0046] Based on the above technical solution, the step of determining the corresponding tactile paving configuration file to be used from the preset tactile paving configuration file library based on the target matching page identifier, and determining the tactile paving configuration file to be used as the target tactile paving configuration file, includes: determining whether a corresponding page tactile paving configuration file exists in the preset tactile paving configuration file library based on the target matching page identifier; if the page tactile paving configuration file exists, then the page tactile paving configuration file is determined as the tactile paving configuration file to be used; if the page tactile paving configuration file does not exist, then determining whether a corresponding template tactile paving configuration file exists in the preset tactile paving configuration file library based on the target matching page identifier; if the template tactile paving configuration file exists, then the template tactile paving configuration file is determined as the tactile paving configuration file to be used; if the template tactile paving configuration file does not exist, then determining whether a corresponding public tactile paving configuration file exists in the preset tactile paving configuration file library based on the target matching page identifier; if the public tactile paving configuration file exists, then the public tactile paving configuration file is determined as the tactile paving configuration file to be used.
[0047] Among them, the page tactile paving configuration file can be used to create tactile paving for a specific page, the template tactile paving configuration file can be used to generate tactile paving for a certain type of page, and the public tactile paving configuration file can be used to create tactile paving for various web pages.
[0048] Specifically, the system can determine whether a matching page configuration file exists by identifying the target page. If a matching configuration file exists, it can be directly used as the current page's tactile paving configuration file and designated as the target tactile paving configuration file. If no matching configuration file exists, the system can continue searching for a corresponding template configuration file. If a template configuration file exists, it can be used as the target tactile paving configuration file. If no template configuration file exists, the system can further search for a corresponding common tactile paving configuration file. If a common tactile paving configuration file exists, it can be used as the target tactile paving configuration file. This approach eliminates the need to iterate through all tactile paving configuration files sequentially, thus improving the efficiency of tactile paving generation.
[0049] S130. Read the target tactile paving configuration file based on the tactile paving configuration file reading tool, and determine the target tactile paving area, target tactile paving name and target tactile paving description corresponding to the target tactile paving configuration file.
[0050] The tactile paving configuration tool can be a programming language tool, such as JavaScript. The target tactile paving area refers to the area on the page where tactile paving needs to be added. The target tactile paving name can be the name used to represent the tactile paving. The target tactile paving description can be a detailed description of the tactile paving information, such as a detailed description of the tactile paving's functions.
[0051] Specifically, the configuration file for tactile paving can be parsed and read using a programming language tool to determine the information contained in the configuration file, namely the target tactile paving area, the target tactile paving name, and the target tactile paving description. The purpose is to determine which area of the page to add what kind of tactile paving.
[0052] Based on the above technical solution, the step of reading the target tactile paving configuration file using the tactile paving configuration file reading tool and determining the target tactile paving area, target tactile paving name, and target tactile paving description corresponding to the target tactile paving configuration file includes: determining the selection field, name field, and description field of the target tactile paving configuration file based on the tactile paving configuration file reading tool; and determining the target tactile paving area, target tactile paving name, and target tactile paving description based on the field values of the selection field, name field, and description field.
[0053] The configuration file for the tactile paving can be a JavaScript array containing different fields and their corresponding values. The selection field can be a selector field, which indicates which area on the page the configuration file is used to create the tactile paving for. The name field can be a content field, which indicates the name of the tactile paving. The description field can be a description field, which indicates the description of the tactile paving.
[0054] Specifically, a tool for reading tactile paving configuration files can be used to read the selection field, name field, and description field in the target tactile paving configuration file. After determining the corresponding field values, the field values corresponding to each field are used as the target tactile paving area, target tactile paving name, and target tactile paving description.
[0055] S140. Generate a webpage of the tactile paving based on the target tactile paving area, the target tactile paving name, and the target tactile paving description.
[0056] Specifically, after determining the target tactile paving area, target tactile paving name, and target tactile paving itself on the current page, tactile paving can be added to a specific area of the current page. It should be noted that this embodiment only describes the generation of tactile paving in a specific area of the page; the generation of tactile paving in other areas of the page can follow the same approach.
[0057] Based on the above technical solution, the step of generating the tactile paving of the web page based on the target tactile paving area, the target tactile paving name, and the target tactile paving description includes: determining the target tactile paving setting area in the web page based on the target tactile paving area; adding tactile paving start and end labels to the target tactile paving setting area, and adding the target tactile paving name and the target tactile paving description to the start and end labels.
[0058] The target setting area can be a region on a webpage, where tactile paving can be added and configured.
[0059] Specifically, the area on the page can be compared with the target tactile paving area to determine the corresponding area where tactile paving needs to be set up, i.e., the target tactile paving setting area. Furthermore, tactile paving start and end labels can be added to this area, and the tactile paving name and description information can be added to the labels so that when users browse the webpage, the tactile paving name and description information can be read directly by screen reader.
[0060] The technical solution of this invention involves determining the page path of a webpage and generating a page identifier corresponding to the webpage based on the page path; determining the target tactile paving configuration file for the webpage from a preset tactile paving configuration file library based on the page identifier; reading the target tactile paving configuration file using a tactile paving configuration file reading tool to determine the target tactile paving area, target tactile paving name, and target tactile paving description corresponding to the target tactile paving configuration file; and generating the tactile paving for the webpage based on the target tactile paving area, target tactile paving name, and target tactile paving description. This solves the problems of inefficiency in the prior art where tactile paving information for all pages is stored in a common tactile paving file, requiring traversal of all page tactile paving information when generating page tactile paving, as well as the problems of disordered page tactile paving order and tactile paving matching errors. This solution achieves refined tactile paving definition and efficient generation of page tactile paving.
[0061] Example 2
[0062] Figure 2 This is a flowchart illustrating a method for generating tactile paving on a webpage, as provided in Embodiment 2 of the present invention. This embodiment is a preferred embodiment of the above embodiments, and its specific implementation can be found in the technical solution of this embodiment. Technical terms that are the same as or corresponding to those in the above embodiments will not be repeated here. Figure 2 As shown, the method includes:
[0063] (1) Unique Identifier ID Generation Module
[0064] The unique identifier ID generation module filters out the hash part of the page path based on the page path and generates a unique identifier ID for the page after processing according to certain rules.
[0065] (2) Blind path configuration file reading module
[0066] The tactile paving configuration file reading module reads the corresponding tactile paving configuration file according to rules. The configuration information in the configuration file is a JavaScript array, where each item is an Object representing a single tactile paving item. The `selector` field in the Object represents the CSS selector for the corresponding tactile paving area, the `content` field is the tactile paving name, and the `description` field is the tactile paving description. The specific rules for reading the tactile paving configuration file are as follows:
[0067] Step 1: Based on the unique identifier ID generated by the unique identifier ID generation module, determine whether a page blind path configuration file exists. If it exists, directly read the page blind path configuration file; otherwise, proceed to Step 2.
[0068] Step 2: Determine if the template tactile paving configuration file exists. If it exists, read the template tactile paving configuration file directly; otherwise, read the public tactile paving configuration file.
[0069] (3) Module generation module
[0070] The module generates a file that reads the tactile paving configuration file. It then iterates through the javascript array containing the tactile paving configuration information. The javascript locates the DOM element corresponding to the tactile paving area based on the selector field, adds tactile paving start and end tags to the area, and adds the tactile paving name and description information to the tags.
[0071] The technical solution of this invention generates tactile paving in a more efficient and flexible way, and supports the subsequent addition of tactile paving configuration on new pages and template tactile paving configuration files, which can automatically read tactile paving configuration information with higher priority.
[0072] The technical solution of this invention involves determining the page path of a webpage and generating a page identifier corresponding to the webpage based on the page path; determining the target tactile paving configuration file for the webpage from a preset tactile paving configuration file library based on the page identifier; reading the target tactile paving configuration file using a tactile paving configuration file reading tool to determine the target tactile paving area, target tactile paving name, and target tactile paving description corresponding to the target tactile paving configuration file; and generating the tactile paving for the webpage based on the target tactile paving area, target tactile paving name, and target tactile paving description. This solves the problems of inefficiency in the prior art where tactile paving information for all pages is stored in a common tactile paving file, requiring traversal of all page tactile paving information when generating page tactile paving, as well as the problems of disordered page tactile paving order and tactile paving matching errors. This solution achieves refined tactile paving definition and efficient generation of page tactile paving.
[0073] Example 3
[0074] Figure 3 This is a schematic diagram of a device for generating tactile paving on a webpage, provided in Embodiment 3 of the present invention. Figure 3 As shown, the device includes:
[0075] The page identifier generation module 310 is used to determine the page path of a web page and generate a page identifier corresponding to the web page based on the page path;
[0076] The tactile paving configuration file determination module 320 is used to determine the target tactile paving configuration file of the web page from a preset tactile paving configuration file library based on the page identifier;
[0077] The tactile paving configuration file reading module 330 is used to read the target tactile paving configuration file based on the tactile paving configuration file reading tool, and determine the target tactile paving area, target tactile paving name and target tactile paving description corresponding to the target tactile paving configuration file.
[0078] The webpage tactile paving generation module 340 is used to generate the tactile paving of the webpage based on the target tactile paving area, the target tactile paving name, and the target tactile paving description.
[0079] Based on the above-mentioned device, the page identifier generation module 310 includes:
[0080] The code loading module is used to load the page code of the web page, determine the page path of the web page based on the loaded web page, and filter the hash part in the page path to obtain the page path to be used.
[0081] The identifier determination module is used to determine the page identifier of the network page based on preset rules and the path of the page to be used.
[0082] Based on the above-mentioned device, the tactile paving configuration file determination module 320 includes:
[0083] The target matching page identifier determination module is used to determine the target matching page identifier corresponding to the page identifier from the preset configuration file library based on the page identifier;
[0084] The target tactile paving configuration file determination module is used to determine the corresponding tactile paving configuration file to be used from the preset tactile paving configuration file library based on the target matching page identifier, and to determine the tactile paving configuration file to be used as the target tactile paving configuration file.
[0085] Based on the above-mentioned device, the target tactile paving configuration file determination module includes:
[0086] The page tactile paving configuration file determination module is used to determine whether a corresponding page tactile paving configuration file exists in the preset tactile paving configuration file library based on the target matching page identifier;
[0087] The module for determining the tactile paving configuration file to be used is used to determine the page tactile paving configuration file as the tactile paving configuration file to be used if the page tactile paving configuration file exists.
[0088] The template tactile paving configuration file determination module is used to determine whether a corresponding template tactile paving configuration file exists in the preset tactile paving configuration file library based on the target matching page identifier if the page tactile paving configuration file does not exist; if the template tactile paving configuration file exists, the template tactile paving configuration file is determined as the tactile paving configuration file to be used.
[0089] The public tactile paving configuration file determination module is used to determine whether a corresponding public tactile paving configuration file exists in the preset tactile paving configuration file library based on the target matching page identifier if the template tactile paving configuration file does not exist. If the public tactile paving configuration file exists, the public tactile paving configuration file is determined as the tactile paving configuration file to be used.
[0090] Based on the above-mentioned device, the tactile paving configuration file reading module 330 includes:
[0091] The field parsing module is used to determine the selection field, name field, and description field of the target tactile paving configuration file based on the tactile paving configuration file reading tool.
[0092] The tactile paving information determination module is used to determine the target tactile paving area, target tactile paving name, and target tactile paving description based on the field values of the selection field, name field, and description field.
[0093] Based on the above-mentioned device, the webpage tactile paving generation module 340 includes:
[0094] A target tactile paving setting area determination module is used to determine the target tactile paving setting area in the web page based on the target tactile paving area;
[0095] The tactile paving generation module is used to add start and end labels to the target tactile paving setting area, and add the name and description of the target tactile paving to the start and end labels.
[0096] Based on the above-mentioned device, it also includes:
[0097] A preset tactile paving configuration file library establishment module is used to establish a preset tactile paving configuration file library corresponding to the web page; wherein, the preset tactile paving configuration file library includes at least one target matching page identifier and a tactile paving configuration file to be used corresponding to each target matching page identifier.
[0098] The technical solution of this invention involves determining the page path of a webpage and generating a page identifier corresponding to the webpage based on the page path; determining the target tactile paving configuration file for the webpage from a preset tactile paving configuration file library based on the page identifier; reading the target tactile paving configuration file using a tactile paving configuration file reading tool to determine the target tactile paving area, target tactile paving name, and target tactile paving description corresponding to the target tactile paving configuration file; and generating the tactile paving for the webpage based on the target tactile paving area, target tactile paving name, and target tactile paving description. This solves the problems of inefficiency in the prior art where tactile paving information for all pages is stored in a common tactile paving file, requiring traversal of all page tactile paving information when generating page tactile paving, as well as the problems of disordered page tactile paving order and tactile paving matching errors. This solution achieves refined tactile paving definition and efficient generation of page tactile paving.
[0099] The device for generating tactile paving on web pages provided in this embodiment of the invention can execute the method for generating tactile paving on web pages provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the method.
[0100] Example 4
[0101] Figure 4 This is a schematic diagram of an electronic device according to Embodiment 4 of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (such as helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0102] like Figure 4 As shown, the electronic device 40 includes at least one processor 41 and a memory, such as a read-only memory (ROM) 42 or a random access memory (RAM) 43, communicatively connected to the at least one processor 41. The memory stores computer programs executable by the at least one processor. The processor 41 can perform various appropriate actions and processes based on the computer program stored in the ROM 42 or loaded into the RAM 43 from storage unit 48. The RAM 43 may also store various programs and data required for the operation of the electronic device 40. The processor 41, ROM 42, and RAM 43 are interconnected via a bus 44. An input / output (I / O) interface 45 is also connected to the bus 44.
[0103] Multiple components in electronic device 40 are connected to I / O interface 45, including: input unit 46, such as keyboard, mouse, etc.; output unit 47, such as various types of monitors, speakers, etc.; storage unit 48, such as disk, optical disk, etc.; and communication unit 49, such as network card, modem, wireless transceiver, etc. Communication unit 49 allows electronic device 40 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0104] Processor 41 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 41 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 41 performs the various methods and processes described above, such as the method for generating tactile paving on a webpage.
[0105] In some embodiments, the method for generating tactile paving on a webpage can be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 48. In some embodiments, part or all of the computer program can be loaded and / or installed on electronic device 40 via ROM 42 and / or communication unit 49. When the computer program is loaded into RAM 43 and executed by processor 41, one or more steps of the method for generating tactile paving on a webpage described above can be performed. Alternatively, in other embodiments, processor 41 can be configured to perform the method for generating tactile paving on a webpage by any other suitable means (e.g., by means of firmware).
[0106] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0107] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0108] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0109] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0110] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0111] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0112] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0113] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A method for generating tactile paving on a webpage, characterized in that, include: Determine the page path of the web page, and generate a page identifier corresponding to the web page based on the page path; The target tactile paving configuration file for the web page is determined from the preset tactile paving configuration file library based on the page identifier; The target tactile paving configuration file is read using a tactile paving configuration file reading tool to determine the target tactile paving area, target tactile paving name, and target tactile paving description corresponding to the target tactile paving configuration file. The tactile paving of the web page is generated based on the target tactile paving area, the target tactile paving name and the target tactile paving description. The tactile paving is located in the target tactile paving area of the web page. The web page includes at least one tactile paving. The step of determining the page path of a web page and generating a page identifier corresponding to the web page based on the page path includes: loading the page code of the web page; determining the page path of the web page based on the loaded web page; filtering the hash part in the page path to obtain the page path to be used; and determining the page identifier of the web page based on preset rules and the page path to be used, with different web pages corresponding to different page identifiers. The step of determining the target tactile paving configuration file of the web page from the preset tactile paving configuration file library based on the page identifier includes: determining the target matching page identifier corresponding to the page identifier from the preset configuration file library based on the page identifier; determining the corresponding tactile paving configuration file to be used from the preset tactile paving configuration file library based on the target matching page identifier, and determining the tactile paving configuration file to be used as the target tactile paving configuration file; The step of determining the corresponding tactile paving configuration file to be used from the preset tactile paving configuration file library based on the target matching page identifier, and determining the tactile paving configuration file to be used as the target tactile paving configuration file, includes: determining whether a corresponding page tactile paving configuration file exists in the preset tactile paving configuration file library based on the target matching page identifier; if the page tactile paving configuration file exists, then the page tactile paving configuration file is determined as the tactile paving configuration file to be used; if the page tactile paving configuration file does not exist, then determining whether a corresponding template tactile paving configuration file exists in the preset tactile paving configuration file library based on the target matching page identifier; if the template tactile paving configuration file exists, then the template tactile paving configuration file is determined as the tactile paving configuration file to be used; if the template tactile paving configuration file does not exist, then determining whether a corresponding public tactile paving configuration file exists in the preset tactile paving configuration file library based on the target matching page identifier; if the public tactile paving configuration file exists, then the public tactile paving configuration file is determined as the tactile paving configuration file to be used.
2. The method according to claim 1, characterized in that, The tool for reading tactile paving configuration files reads the target tactile paving configuration file and determines the target tactile paving area, target tactile paving name, and target tactile paving description corresponding to the target tactile paving configuration file, including: The blind path configuration file reading tool determines the selection field, name field, and description field of the target blind path configuration file. The target tactile paving area, target tactile paving name, and target tactile paving description are determined based on the field values of the selection field, name field, and description field.
3. The method according to claim 1, characterized in that, The process of generating the tactile paving for the webpage based on the target tactile paving area, the target tactile paving name, and the target tactile paving description includes: The target tactile paving area in the webpage is determined based on the target tactile paving area. Add start and end labels to the target tactile paving area, and add the name and description of the target tactile paving to the start and end labels.
4. The method according to claim 1, characterized in that, Before determining the target tactile paving configuration file of the web page from the preset tactile paving configuration file library based on the page identifier, the method further includes: Establish a preset tactile paving configuration file library corresponding to the web page; wherein, the preset tactile paving configuration file library includes at least one target matching page identifier and a tactile paving configuration file to be used corresponding to each target matching page identifier.
5. A device for generating tactile paving on a webpage, characterized in that, include: The page identifier generation module is used to determine the page path of a web page and generate a page identifier corresponding to the web page based on the page path. The tactile paving configuration file determination module is used to determine the target tactile paving configuration file of the web page from a preset tactile paving configuration file library based on the page identifier; The tactile paving configuration file reading module is used to read the target tactile paving configuration file based on the tactile paving configuration file reading tool, and determine the target tactile paving area, target tactile paving name and target tactile paving description corresponding to the target tactile paving configuration file. A webpage tactile paving generation module is used to generate tactile paving for the webpage based on the target tactile paving area, the target tactile paving name, and the target tactile paving description. The tactile paving is located in the target tactile paving area of the webpage, and the webpage includes at least one tactile paving. The page identifier generation module includes: The code loading module is used to load the page code of the web page, determine the page path of the web page based on the loaded web page, and filter the hash part in the page path to obtain the page path to be used. The identifier determination module is used to determine the page identifier of the network page based on preset rules and the path of the page to be used, and different network pages correspond to different page identifiers; The tactile paving configuration file determination module includes: The target matching page identifier determination module is used to determine the target matching page identifier corresponding to the page identifier from a preset configuration file library based on the page identifier; The target tactile paving configuration file determination module is used to determine the corresponding tactile paving configuration file to be used from the preset tactile paving configuration file library based on the target matching page identifier, and determine the tactile paving configuration file to be used as the target tactile paving configuration file; The target tactile paving configuration file determination module includes: The page tactile paving configuration file determination module is used to determine whether a corresponding page tactile paving configuration file exists in the preset tactile paving configuration file library based on the target matching page identifier; The module for determining the tactile paving configuration file to be used is used to determine the page tactile paving configuration file as the tactile paving configuration file to be used if the page tactile paving configuration file exists. The template tactile paving configuration file determination module is used to determine whether a corresponding template tactile paving configuration file exists in the preset tactile paving configuration file library based on the target matching page identifier if the page tactile paving configuration file does not exist; if the template tactile paving configuration file exists, the template tactile paving configuration file is determined as the tactile paving configuration file to be used. The public tactile paving configuration file determination module is used to determine whether a corresponding public tactile paving configuration file exists in the preset tactile paving configuration file library based on the target matching page identifier if the template tactile paving configuration file does not exist. If the public tactile paving configuration file exists, the public tactile paving configuration file is determined as the tactile paving configuration file to be used.
6. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the method for generating web page tactile paving according to any one of claims 1-4.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed by a processor, implement the method for generating tactile paths on a webpage according to any one of claims 1-4.