CN115186642A - Method for extending electronic mark information using HTML language - Google Patents

Method for extending electronic mark information using HTML language Download PDF

Info

Publication number
CN115186642A
CN115186642A CN202210803110.6A CN202210803110A CN115186642A CN 115186642 A CN115186642 A CN 115186642A CN 202210803110 A CN202210803110 A CN 202210803110A CN 115186642 A CN115186642 A CN 115186642A
Authority
CN
China
Prior art keywords
template
html
information
remark
electronic
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
CN202210803110.6A
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 Yuansheng Huawang Software Co ltd
Original Assignee
Beijing Yuansheng Huawang Software 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 Yuansheng Huawang Software Co ltd filed Critical Beijing Yuansheng Huawang Software Co ltd
Priority to CN202210803110.6A priority Critical patent/CN115186642A/en
Publication of CN115186642A publication Critical patent/CN115186642A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/14Tree-structured documents
    • G06F40/143Markup, e.g. Standard Generalized Markup Language [SGML] or Document Type Definition [DTD]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a method for extending electronic mark information by using HTML language, which comprises the following steps: acquiring HTML remark template codes in an appointed input box; interpreting the HTML remark template code according to a built-in interpreter; generating a marking information template according to the interpreted remark template code of the HTML; the tag information template is stored in a template library, different electronic tag attribute tables can be generated according to user requirements by adopting an HTML remark template form, users in all industries and all fields can add electronic tag information according to actual requirements, the number of attribute fields is not limited, and the styles and styles are rich and diversified.

Description

Method for extending electronic mark information using HTML language
Technical Field
The embodiment of the invention relates to the technical field of electronic map attribute marking, in particular to a method for extending electronic mark information by using an HTML language.
Background
Emarks can be divided into two categories according to whether edit attributes are supported:
firstly, users can not edit electronic marks of attribute information of the users, the electronic marks are points of interest (POI) on an electronic map, and the users can only collect the POI to facilitate the next navigation use, such as marks on software of a Baidu map, a Gaode map and the like;
secondly, the user can edit the electronic mark of the attribute information, but the prior art can only fill (or set) the attribute information of the electronic mark according to the attribute list provided by the developer, and can not customize the attribute information of the electronic mark according to the requirements of specific industries, and the electronic mark is generally applied to geographic information acquisition software.
In summary, the prior art has the following disadvantages: the user can not add, edit and expand the attribute information of the electronic mark according to the requirement of the user (or the industry).
Disclosure of Invention
Therefore, the embodiment of the invention provides a method for extending electronic tag information by using an HTML language, so as to solve the problem that a user cannot extend an electronic tag according to actual requirements in the prior art.
In order to achieve the above object, the embodiments of the present invention provide the following technical solutions: a method for extending electronic markup information using HTML language, comprising the steps of:
acquiring HTML remark template codes in an appointed input box;
interpreting the HTML remark template code according to a built-in interpreter;
generating a marking information template according to the interpreted remark template code of the HTML;
and storing the marking information template into a template library.
Further, the acquiring the HTML remark template code in the specified input box specifically includes:
when a template information adding instruction is acquired, popping up a newly-built remark template information frame;
and when a storage instruction is obtained, obtaining the HTML remark template code.
Further, the new remark template information frame comprises a template name input frame and an HTML remark template code input frame.
Further, when a call template instruction is obtained, a mark information template list with mark information template names is generated;
and when an instruction for selecting a certain marking information template in the template list is received, calling the template from the marking information template library.
Further, when an instruction of saving the mark information template with the attribute information is received, an electronic mark attribute table with the attribute information is generated on the electronic mark of the map associated with the mark information template.
Further, the electronic mark is a mark drawn on the electronic map and comprises one or more of a point, a line, a surface, a polyhedron and a three-dimensional model.
The invention also provides a processing system for extending the electronic mark information by using the HTML language, which comprises an HTML code filling module: acquiring HTML remark template codes in an appointed input box;
HTML code conversion module: interpreting the HTML remark template code according to a built-in interpreter;
a marking information template generation module: and generating a mark information template according to the interpreted remark template code of the HTML.
The invention also provides a computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the steps of a method for extending electronic markup information using the HTML language of any one of claims 1 to 6.
The invention also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of a method for extending electronic markup information using the HTML language according to any one of claims 1 to 6 when executing the program.
The embodiment of the invention has the following advantages: by adopting the form of the HTML remark template, different electronic mark attribute tables can be generated according to the user requirements, users in various industries and fields can add electronic mark information according to actual requirements, the number of attribute fields is not limited, and the styles and styles are rich and various.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below. It should be apparent that the drawings in the following description are merely exemplary, and that other embodiments can be derived from the drawings provided by those of ordinary skill in the art without inventive effort.
The structures, the proportions, the sizes, and the like shown in the specification are only used for matching with the contents disclosed in the specification, so that those skilled in the art can understand and read the present invention, and do not limit the conditions for implementing the present invention, so that the present invention has no technical essence, and any modifications of the structures, changes of the proportion relation, or adjustments of the sizes, should still fall within the scope of the technical contents disclosed in the present invention without affecting the efficacy and the achievable purpose of the present invention.
FIG. 1 is a flowchart illustrating an embodiment of the present invention, which is an overall flowchart illustrating a method for extending electronic markup information using HTML language;
fig. 2 is a diagram showing an effect of an HTML remark template of a method for extending electronic mark information using an HTML language in electronic map software according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a method for extending electronic markup information using an HTML language according to an embodiment of the present invention, in which an HTML remark template is added;
FIG. 4 is another schematic diagram of a method for extending electronic markup information using an HTML language according to an embodiment of the present invention, for adding an HTML remark template;
FIG. 5 is a diagram illustrating a method for extending electronic markup information using an HTML language according to an embodiment of the present invention;
FIG. 6 is another diagram illustrating a method for extending emark information using HTML according to an embodiment of the present invention;
fig. 7 is a schematic diagram of an electronic tag display attribute template on a display map according to an embodiment of the present invention.
Detailed Description
The present invention is described in terms of particular embodiments, other advantages and features of the invention will become apparent to those skilled in the art from the following disclosure, and it is to be understood that the described embodiments are merely exemplary of the invention and that it is not intended to limit the invention to the particular embodiments disclosed. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example (b): a method for extending electronic markup information using HTML language, as shown in fig. 1, comprising the steps of:
acquiring HTML remark template codes in an appointed input box;
interpreting HTML remark template codes according to a built-in interpreter;
generating a marking information template according to the interpreted remark template code of the HTML;
and storing the marking information template into a template library.
Preferably, when the instruction of adding the template information is obtained, popping up an information frame of a newly-built remark template; and when the storage instruction is acquired, acquiring HTML remark template codes. The new remark template information frame comprises a template name input frame and an HTML remark template code input frame. When a calling template instruction is obtained, generating a marking information template list with marking information template names; when an instruction to select a certain tagged information template in the template list is received, the template is called from the tagged information template library. When receiving a mark information template instruction with attribute information, generating an electronic mark attribute table with attribute information on the electronic mark of the map associated with the mark information template. The electronic mark is a mark drawn on the electronic map and comprises one or more of points, lines, faces, polyhedrons and three-dimensional models.
Specifically, as shown in fig. 2, the form is described and designed by using HTML, and the designed form can be saved as a template according to the requirements of the user. The user selects the saved template, uses a WEB engine (such as an IE control, a WEBVIEW component, or a self-developed interpreter) to visually display the template, then performs data acquisition, and saves the data on the electronic tag, where the saved format of the data may be an XML or JSON format, and at the same time, may record which template is used on the electronic tag. And the viewer presents the data perfectly according to the template number in the electronic mark and the recorded data. In this embodiment, taking the land index attribute table as an example, in the electronic map software, a developer provides a module capable of managing an HTML remark template independently designed by a user. The module supports adding codes written by an HTML language, is internally provided with an HTML language interpreter, and can restore and present the attribute list written by a user. In order to facilitate the use of a user, the module also supports the modification of an HTML remark template, the batch printing output and the export of PDF documents of the remark template, and the sharing, the import and the export of the remark template.
When the method is used, a user writes an attribute table by using an HTML language according to actual requirements, and adds the attribute table into a remark template management module, and in electronic map software, the attribute table is called an HTML remark template. When a user draws the electronic mark, selecting a designed HTML remark template; the built-in interpreter of the electronic map software interprets the HTML remark template compiled by the user and presents the HTML remark template; and filling information according to actual requirements by the user. The electronic map software stores the information filled by the user in the remarks, and calls the designed HTML remark template to display when the remarks need to be edited and checked. The same electronic mark information can be presented in different HTML remark template styles so as to meet the diversified requirements of users; one design and multiple use can be realized through distribution and sharing of the templates.
More specifically, this embodiment provides a specific implementation scheme, and as shown in fig. 3, click "add" in a "remark template management" dialog box; copying and pasting the compiled HTML code into a 'display text', and filling in a name; referring to fig. 4, it is possible to select whether "use the built-in boottrap 3 style"; the method can switch to a preview remark template of displaying an HTML webpage (IE) or displaying an HTML webpage (ov); and clicking 'save', namely saving the HTML remark template into the remark template management. Referring to FIG. 5, after the addition is completed, it can be associated with the object. Referring to fig. 6, on the electronic mark, a remark template is selected; and filling the attribute information of the electronic mark according to the remark template, and storing. Referring to fig. 7, the HTML remark template is finally displayed on the designated electronic mark.
According to the method, different electronic tag attribute tables can be generated according to user requirements by adopting the form of the HTML remark template, users in all industries and all fields can add electronic tag information according to actual requirements, the number of attribute fields is not limited, and the styles and styles are rich and diversified
Although the invention has been described in detail above with reference to a general description and specific examples, it will be apparent to one skilled in the art that modifications or improvements may be made thereto based on the invention. Accordingly, such modifications and improvements are intended to be within the scope of the invention as claimed.

Claims (9)

1. A method for extending electronic mark information by using HTML language is characterized in that: the method comprises the following steps:
acquiring HTML remark template codes in an appointed input box;
interpreting the HTML remark template code according to a built-in interpreter;
generating a marking information template according to the interpreted remark template code of the HTML;
and storing the marking information template into a template library.
2. The method of claim 1, wherein the method for extending the electronic markup information using HTML comprises: the acquiring of the HTML remark template code in the specified input box specifically includes:
when a template information adding instruction is acquired, popping up a newly-built remark template information frame;
and when a storage instruction is obtained, obtaining the HTML remark template code.
3. The method of claim 2, wherein the method for extending the electronic markup information using HTML comprises: the new remark template information frame comprises a template name input frame and an HTML remark template code input frame.
4. The method of claim 3, wherein the method for extending the electronic markup information using the HTML language comprises: when a calling template instruction is obtained, generating a marking information template list with marking information template names;
and when an instruction for selecting a certain marking information template in the template list is received, calling the template from the marking information template library.
5. The method of claim 4, wherein the method for extending the electronic markup information using the HTML language comprises: when an instruction of saving the mark information template with the attribute information is received, an electronic mark attribute table with the attribute information is generated on the electronic mark of the map, wherein the electronic mark is associated with the mark information template.
6. The method of claim 1, wherein the method for extending the electronic markup information using HTML comprises: the electronic mark is a mark drawn on the electronic map and comprises one or more of points, lines, surfaces, polyhedrons and three-dimensional models.
7. A processing system for extending electronic markup information using HTML language, comprising: the method comprises an HTML code filling module: acquiring HTML remark template codes in an appointed input box;
HTML code conversion module: interpreting the HTML remark template code according to a built-in interpreter;
a marking information template generation module: and generating a mark information template according to the interpreted remark template code of the HTML.
8. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of a method for extending electronic markup information using the HTML language according to any one of claims 1 to 6.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program performs the steps of a method of extending electronic markup information in accordance with any one of claims 1 to 6.
CN202210803110.6A 2022-07-07 2022-07-07 Method for extending electronic mark information using HTML language Pending CN115186642A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210803110.6A CN115186642A (en) 2022-07-07 2022-07-07 Method for extending electronic mark information using HTML language

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210803110.6A CN115186642A (en) 2022-07-07 2022-07-07 Method for extending electronic mark information using HTML language

Publications (1)

Publication Number Publication Date
CN115186642A true CN115186642A (en) 2022-10-14

Family

ID=83518156

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210803110.6A Pending CN115186642A (en) 2022-07-07 2022-07-07 Method for extending electronic mark information using HTML language

Country Status (1)

Country Link
CN (1) CN115186642A (en)

Similar Documents

Publication Publication Date Title
EP1920350B1 (en) Markup based extensibility for user interfaces
US10008009B1 (en) Method for generating dynamic vector graphics
US20050065936A1 (en) System and method for reusing form elements in a form building application
CN109408764B (en) Page area dividing method, device, computing equipment and medium
US20070282885A1 (en) Method and System For Application Interaction
CN104915186B (en) A kind of method and apparatus making the page
CN101122899A (en) Report generation method and device
CN103914438A (en) Template and tag implementation based excel display and export method and system
US20040263513A1 (en) Treemap visualization engine
CN105956133B (en) Method and device for displaying file on intelligent terminal
US20070061349A1 (en) Hierarchically describing shapes
CN113536179A (en) Page generation method and device, electronic equipment and storage medium
JPWO2005098660A1 (en) Document processing apparatus and document processing method
JPWO2005098658A1 (en) Document processing apparatus and document processing method
CN112905944B (en) Page online dynamic generation method and device, electronic equipment and readable storage medium
CN110674437A (en) Method and device for converting webpage data into PDF (Portable document Format) attachment
CA2733456A1 (en) System and method for designing and generating online stationery
CN110162301B (en) Form rendering method, form rendering device and storage medium
CN116245052A (en) Drawing migration method, device, equipment and storage medium
CN115186642A (en) Method for extending electronic mark information using HTML language
CN116522027A (en) Web form data dragging and copying method, equipment and storage medium
CN111858595B (en) Dynamic configuration method and system for electric power engineering examination record table
CN114371838A (en) Method, device and equipment for rendering small program canvas and storage medium
CN110309455B (en) Method, device and equipment for displaying OLE vector diagram
CN108647198B (en) Unity-based character editing method and terminal

Legal Events

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