Specific embodiment
In order to make those skilled in the art more fully understand the technical solution in this specification one or more embodiment,
Below in conjunction with the attached drawing in this specification one or more embodiment, to the technology in this specification one or more embodiment
Scheme is clearly and completely described, it is clear that described embodiment is only this specification one or more embodiment one
Divide embodiment, instead of all the embodiments.Based on the embodiment in this specification one or more embodiment, this field is common
Technical staff's every other embodiment obtained without creative efforts, all should belong to this specification one
The range of a or multiple embodiment protections.
This specification one or more embodiment provides a kind of document execution method and device based on markup language, by
While writing the destination document based on markup language, increase specified semantic identifier in destination document, realizes to text
Shelves semanteme be marked, can make in this way document actuator by identify the semantic identifier accurately determine out execution movement with
Object is executed, and then achievees the purpose that document executes automatically, realizes and event handling is automatically performed based on destination document, improves event
The precision and treatment effeciency of processing.
Fig. 1 is that the document based on markup language that this specification one or more embodiment provides executes systematic difference field
Scape schematic diagram, as shown in Figure 1, may include in the execution system:Document editor, document viewer and document actuator, should
Document editor is mainly used for generating destination document based on the content of text of preset mark language in-put according to user, due to writing
While destination document based on markup language, increases specified semantic identifier in destination document, therefore, ultimately generate
Not only comprising the text formatting identifier for retrtieval format in destination document, also comprising for marking target to execute object
Semantic identifier;
Also, user, can also be straight by document viewer during writing destination document using document editor
It checks the document content oneself write with seeing, and checks the text formatting finally shown, and shown based on checking that result determines
Show whether effect reaches expected, if be not up to expected, text formatting identifier can be modified, while editing to reach use
The expection at family;
In addition, directly destination document can be input in document actuator, after writing destination document due to writing
While destination document based on markup language, increase specified semantic identifier in destination document, realizes to document semantic
It is marked, can make document actuator by identifying that the semantic identifier accurately determines out execution movement and execution pair in this way
As comparing manually without user in this way so that document actuator is automatically performed business processing based on the content of text in destination document
It is input to designated position in respective interface to destination document content and by target execution object, simplifies documenting business information
Processing operation improves the treatment effeciency of documenting business information.
Fig. 2 is the first that the document based on markup language that this specification one or more embodiment provides executes method
Flow diagram, the method in Fig. 2 can be executed by the document actuator in Fig. 1, as shown in Fig. 2, this method includes at least
Following steps:
S201 obtains the destination document based on preset mark language generation, wherein comprising for marking in the destination document
The semantic identifier of target execution object;
Specifically, can be used in quick file typesetting in view of markdown markup language is a kind of text mark up language,
Based on the file that markdown markup language generates, i.e. Markdown file is text-only file, has typesetting document light weight, side
Just, feature and Markdown file quickly also has a simple, intuitive, readability, easily write, easily modification the characteristics of, and use than
It is wide, it is professional require it is low, for example, most professional knowledge can be written as professional knowledge by markdown markup language
Library, it is preferred that above-mentioned preset mark language is markdown markup language;
Above-mentioned semantic identifier can be predetermined, and user makes when writing service profile using document editor
Target execution object tag is come out with semantic identifier;Operation is inputted in order to simplify user as much as possible, for each text
The target occurred in upper executes object, if the target executes behind object without content of text, at this point it is possible to only hold in target
Add semantic identifier in the front end of row object;It is corresponding, if the target, which executes behind object, content of text, at this point,
It needs to execute the front end of object in target and tail end adds semantic identifier respectively.
Wherein, it is contemplated that user can also the document write out of real time inspection while writing document using document editor
Display effect, and the space of the preset quantity appeared in line of text is not determined in markdown markup language
Justice, the preset quantity are not used to mark text formatting more than or equal to 2, that is, to appear in the space of the preset quantity in line of text,
Therefore, in order to not influence the document viewing effect of user, guarantee the good reading experience of document, and can play and target is executed
The label of object acts on, it is preferred that the type of semantic identifier is space, and the quantity in space is more than or equal to 2, thus with label
The defined identifier field for retrtieval format separates in language, so that semantic identifier is uniquely used to that target is marked to execute
Object, wherein the quantity in space can be set according to actual requirement in each semantic identifier, for example, defining two skies
Lattice are a semantic identifier, or defining three spaces is a semantic identifier, is implemented in this specification one or more
The quantity in space in each semantic identifier is not defined in example.
S202 determines object run interface according to the semantic identifier in destination document;And
S203 determines that target executes object according to the semantic identifier in destination document;
Specifically, when content of text of the document actuator in execution document automatically, if recognizing semantic identifier, that
It is at this time the content of text that lockable carries object run interface information, and locking carries the text that target executes object information
This content, and then just it is capable of determining that object run interface and target execute object.
S204 executes the corresponding operating that object is executed to target in the object run interface determined;
Specifically, after determining that object run interface and target execute object by semantic identifier, so that it may straight
It taps into the object run interface, and object is executed to the target and executes corresponding operation, for example, object run circle determined
Face is specified browser, and it is a certain network address that the target determined, which executes object, at this point, specifying browser interface into this, and will
The network address is input in the network address input field under browser interface.
In this specification one or more embodiment, while due to writing the destination document based on markup language,
Increase specified semantic identifier in destination document, document semantic is marked in realization, can make document actuator logical in this way
It crosses and identifies that the semantic identifier accurately determines out execution movement and executes object, and then achieve the purpose that document executes automatically,
It realizes and event handling is automatically performed based on destination document, improve the precision and treatment effeciency of event handling.
Wherein, it needs to advance with document editor and generates destination document based on the user's input information, in the document not
Only comprising the text formatting identifier for retrtieval format, also comprising for marking target to execute the semantic mark of object
Symbol, the generating process of destination document, specially:
Determine the location information and attribute information of the text formatting identifier of user's input, wherein text format identification (FID)
Symbol is used for the basic format of retrtieval content, and the definition of text identifier meets the definition standard of preset mark language, example
Such as, " # " indicates that level-one title, " ## " indicate second level title etc., for another example, with【Number】【Point】【Space】The line of text of beginning,
It is defined as needing to be implemented in professional knowledge library【Step】;
According to the location information and attribute information of text formatting identifier, text formatting identifier is added to based on default
The destination document of markup language, so that the basic format of content of text is arranged according to text formatting identifier for document viewer;With
And
Determine the location information and attribute information of the semantic identifier of user's input, wherein the semantic identifier is user
It is inputted in the destination document based on preset mark language, the semantic identifier is for marking target to execute object;
According to the location information and attribute information of semantic identifier, semantic identifier is added to destination document, so that literary
Shelves actuator identifies that the target in destination document executes object according to semantic identifier, wherein the attribute information includes:Mark
The type of symbol, it is preferred that the type of the identifier is space;For example,【Step】In line of text, with two space-separateds, determined
Justice is to identify in professional knowledge library【Sub-step】With【Sub-step parameter】, in a document, can define multiple【Sub-step】, with
Just document actuator is gradually unfolded to execute.
Wherein, for the process for determining object run interface, as shown in figure 3, above-mentioned S202 is according to the language in destination document
Adopted identifier determines object run interface, specifically includes:
S2021 determines content of text to be resolved according to the semantic identifier in destination document;
S2022 carries out information extraction to content of text to be resolved, to determine object run interface, specifically, passing through language
Adopted identifier can accurately determine the content of text position comprising object run interface, and then from determining comprising mesh
Mark operation interface content of text in, extract object run interface, for example, in destination document a certain line of text record "
Station address http is inputted in specified browser://www2.soopat.com/Home/IIndex ", wherein " clear specifying
Look in device and input station address " and " http:Semantic identifier is provided between //www2.soopat.com/Home/IIndex "
" two spaces ", at this point, content of text to be resolved is " inputting station address in specified browser ", it is corresponding, it is known that mesh
Mark operation interface is the network address input interface of specified browser.
Specifically, as shown in figure 4, above-mentioned S2021 determines text to be resolved according to the semantic identifier in destination document
Content specifically includes:
S20211 judges the quantity for the semantic identifier that this article current row includes for each line of text in destination document
Whether 2 are greater than;
If it is not, S20212 is then executed, by phase before first semantic identifier in the line of text where semantic identifier
Adjacent content of text, is determined as content of text to be resolved;
If so, S20213 is executed, by the semantic identifier of the serial number odd number in the line of text where semantic identifier
Before adjacent content of text is determined as content of text to be resolved, wherein the serial number of each semantic identifier is according to line of text
Number consecutively determines from left to right, i.e., the semantic identifier row that each line of text includes serial number 1 from left to right, 2,
3....。
Specifically, due to inputting operation to simplify user as much as possible, it is defined previously as going out on each text
Existing target executes object, if the target executes behind object without content of text, at this point it is possible to only execute object in target
Front end add semantic identifier;It is corresponding, if the target, which executes behind object, content of text, at this time, it may be necessary to
Target executes the front end of object and tail end adds semantic identifier respectively.
It is corresponding, the case where for a certain line of text including one or two semantic identifier, directly in first semantic mark
Object run interface information is extracted before knowing symbol in adjacent content of text;
The case where for a certain line of text including more than two semantic identifiers, the semantic identifier of serial number odd number is certain
One target executes the front end semantic identifier of object, and the semantic identifier of serial number even number is that a certain target executes object
Tail end semantic identifier, due to including object run in the content of text before the front end semantic identifier of target execution object
Therefore interface information extracts object run interface letter before the semantic identifier of serial number odd number in adjacent content of text
Breath;
For example, a certain line of text records that " importation patent title is a kind of in the search column of appointed website in destination document
Document structure tree method clicks button soopat search button in the appointed website search interface ", wherein it is wrapped in this article current row
Containing three semantic identifiers, by left-to-right semantic identifier serial number 1,2,3, therefore, respectively in the semanteme of serial number 1 and 3
Object run interface information is extracted before identifier in adjacent content of text.
Wherein, for the process for determining target execution object, as shown in figure 5, above-mentioned S203 is according to the language in destination document
Adopted identifier determines that target executes object, specifically includes:
S2031 judges that the quantity for the semantic identifier that this article current row includes is for each line of text in destination document
No is 1;
S2032, if so, the content of text after semantic identifier, which is determined as target, executes object;
S2033, if it is not, then judging whether the quantity for the semantic identifier that this article current row includes is greater than 2 and not equal to 1;
S2034, if it is not, the content of text between two semantic identifiers, which is then determined as target, executes object;
S2035, if so, whether the quantity for judging the semantic identifier is even number;
If so, executing S2036, the content of text between two neighboring semantic identifiers is determined as target execution pair
As, wherein the serial number odd number of previous semantic identifier in two neighboring semantic identifiers;
If it is not, then executing S2037, the content of text between two neighboring semantic identifiers is determined as target execution pair
As, and the content of text after the last one semantic identifier is determined as target and executes object, wherein two adjacent languages
The serial number odd number of previous semantic identifier in adopted identifier.
Specifically, due to inputting operation to simplify user as much as possible, it is defined previously as going out on each text
Existing target executes object, if the target executes behind object without content of text, at this point it is possible to only execute object in target
Front end add semantic identifier;It is corresponding, if the target, which executes behind object, content of text, at this time, it may be necessary to
Target executes the front end of object and tail end adds semantic identifier respectively.
It is corresponding, it the case where for a certain line of text including a semantic identifier, directly will be after semantic identifier
Content of text is determined as target and executes object;
It is corresponding, the case where for a certain line of text including two semantic identifiers, directly by two semantic identifiers it
Between content of text be determined as target execute object;
The case where for a certain line of text including more than two semantic identifiers, the semantic identifier of serial number odd number is certain
One target executes the front end semantic identifier of object, and the semantic identifier of serial number even number is that a certain target executes object
Tail end semantic identifier, therefore, by the text between the semantic identifier of serial number odd number and the semantic identifier of serial number even number
This content is determined as target and executes object, and the content of text after the last one semantic identifier is determined as target and is executed
Object;
For example, a certain line of text records that " importation patent title is a kind of in the search column of appointed website in destination document
Document structure tree method clicks button soopat search button in the appointed website search interface ", wherein it is wrapped in this article current row
Containing three semantic identifiers, by left-to-right semantic identifier serial number 1,2,3, therefore, respectively by serial number 1 and serial number 2
Semantic identifier between " a kind of document structure tree method " as target execute object, and by serial number 3 semanteme identify
" soopat search button " after symbol executes object as target.
Wherein, it as shown in fig. 6, above-mentioned S204 is in the object run interface determined, executes and object is executed to target
Corresponding operating specifically includes:
S2041 carries out information extraction to content of text to be resolved, determines and needs to execute target the corresponding of object execution
Operation;
S2042 executes the corresponding operating that object is executed to target in the object run interface determined.
For example, the object run interface determined is the network address input interface of specified browser, the execution object determined
For http://www2.soopat.com/Home/IIndex, at this time, it may be necessary to defeated in the network address input interface of specified browser
Enter http://www2.soopat.com/Home/IIndex.
The document based on markup language in this specification one or more embodiment executes method, is based on firstly, obtaining
The destination document of preset mark language generation, wherein comprising for marking target to execute the semantic mark of object in the destination document
Know symbol;Then, according to the semantic identifier in destination document, determine that object run interface and target execute object;It is grasped in target
Make in interface, executes the corresponding operating for executing object to target.In this specification one or more embodiment, it is based on due to writing
While the destination document of markup language, increase specified semantic identifier in destination document, realizes and document semantic is carried out
Label can make document actuator by identifying that the semantic identifier accurately determines out execution movement and execution object in this way,
And then achieve the purpose that document executes automatically, it realizes and event handling is automatically performed based on destination document, improve the essence of event handling
Accuracy and treatment effeciency.
The document based on markup language that corresponding above-mentioned Fig. 2 to Fig. 6 is described executes method, based on the same technical idea,
This specification one or more embodiment additionally provides a kind of document execution method based on markup language, and Fig. 7 is this specification
The document based on markup language that one or more embodiments provide executes the flow diagram of method, and this method can be by Fig. 1
In document actuator execute, as shown in fig. 7, the process includes:
S701 obtains the destination document based on preset mark language generation, wherein the destination document is used for configuration information
Inspection is changed, and includes the semantic identifier for marking target detection object in the destination document, wherein this process
Specific embodiment is referring to step S201, and which is not described herein again;
S702 determines target detection interface according to the semantic identifier in destination document, wherein the specific reality of this process
Mode is applied referring to step S202, which is not described herein again;And
S703 determines target detection object according to the semantic identifier in destination document, wherein the specific reality of this process
Mode is applied referring to step S203, which is not described herein again;
S704 executes the corresponding operating to target detection object, wherein this mistake in the target detection interface determined
The specific embodiment of journey is referring to step S204, and which is not described herein again.
In this specification one or more embodiment, while due to writing the destination document based on markup language,
Increase specified semantic identifier in destination document, document semantic is marked in realization, can make document actuator logical in this way
It crosses and identifies that the semantic identifier accurately determines out execution movement and executes object, and then achieve the purpose that document executes automatically,
It realizes the change inspection for being automatically performed configuration information based on destination document, improves precision and inspection that configuration information change checks
Efficiency.
Wherein, it is preferred that above-mentioned preset mark language includes:Markdown markup language.
Wherein, the attribute information of semantic identifier includes:The type of identifier, it is preferred that the type of the identifier is sky
Lattice.
Wherein, for target detection interface determination process, above-mentioned S702 is determined according to the semantic identifier in destination document
Target detection interface, specifically includes:
According to the semantic identifier in destination document, content of text to be resolved is determined;
Information extraction is carried out to content of text to be resolved, to determine target detection interface.
Specifically, the above-mentioned semantic identifier according in destination document, determines content of text to be resolved, specifically includes:
For each line of text in destination document, judge whether the quantity for the semantic identifier that this article current row includes is greater than
2;
If it is not, then will be in text adjacent before first semantic identifier in the line of text where semantic identifier
Hold, is determined as content of text to be resolved;
If so, by text adjacent before the semantic identifier of the serial number odd number in the line of text where semantic identifier
This content is determined as content of text to be resolved, wherein the serial number of each semantic identifier be according to line of text from left to right successively
Number determination.
Wherein, for the process for determining target detection object, above-mentioned S703 is according to the semantic identifier in destination document, really
Set the goal test object, specifically includes:
For each line of text in destination document, the quantity for the semantic identifier that this article current row includes is determined;
If quantity is 1, the content of text after semantic identifier is determined as target detection object;
If quantity is 2, the content of text between two semantic identifiers is determined as target and executes object;
If quantity is greater than 2, judge whether the quantity of the semantic identifier is even number;
If so, the content of text between two neighboring semantic identifiers is determined as target detection object, wherein two
The serial number odd number of previous semantic identifier in neighboring semantic identifier;
If it is not, the content of text between two neighboring semantic identifiers is then determined as target detection object, and will most
Content of text after the latter semantic identifier is determined as target detection object, wherein before in two neighboring semantic identifiers
The serial number odd number of one semantic identifier.
Wherein, above-mentioned S704 executes the corresponding operating to target detection object, tool in the target detection interface determined
Body includes:
Information extraction is carried out to content of text to be resolved, determines the corresponding operating for needing to execute to target detection object;
In the target detection interface determined, the corresponding operating to target detection object is executed.
The document based on markup language in this specification one or more embodiment executes method, is based on firstly, obtaining
The destination document of preset mark language generation, the destination document is for changing inspection, and the destination document to configuration information
In include semantic identifier for marking target detection object;Then, according to the semantic identifier in destination document, mesh is determined
Mark detection interface and target detection object;In the target detection interface determined, the corresponding behaviour to target detection object is executed
Make.While due to writing the destination document based on markup language, increase specified semantic identifier in destination document, realizes
Document semantic is marked, can make document actuator by identifying that it is dynamic that the semantic identifier accurately determines out execution in this way
Make and execute object, and then achieve the purpose that document executes automatically, realizes the change for being automatically performed configuration information based on destination document
It more checks, improves the precision and check efficiency that configuration information change checks.
It should be noted that an embodiment and this specification are one or more real in this specification one or more embodiment
Apply in example another embodiment based on the same inventive concept, thus the specific implementation of the embodiment may refer to it is aforementioned based on label language
The document of speech executes the implementation of method, and overlaps will not be repeated.
The document based on markup language that corresponding above-mentioned Fig. 2 to Fig. 6 is described executes method, based on the same technical idea,
This specification one or more embodiment additionally provides a kind of document executive device based on markup language, and Fig. 8 is this specification
The module composition schematic diagram for the document executive device based on markup language that one or more embodiments provide, the device is for holding
The document based on markup language that row Fig. 2 to Fig. 6 is described executes method, as shown in figure 8, the device includes:Acquisition module 801,
Determining module 802 and execution module 803 obtain module 801, determining module 802 and execution module 803 and are sequentially connected.
In a specific embodiment, module 801 is obtained, for obtaining the target text based on preset mark language generation
Shelves, wherein comprising for marking target to execute the semantic identifier of object in the destination document;
Determining module 802, for according to the semantic identifier in the destination document, determine object run interface and
Target executes object;
Execution module 803, for executing the corresponding behaviour for executing object to the target in the object run interface
Make.
Optionally, the preset mark language includes:Markdown markup language.
Optionally, the determining module 802, is specifically used for:
According to the semantic identifier in the destination document, content of text to be resolved is determined;
Information extraction is carried out to the content of text to be resolved, to determine object run interface.
Optionally, the determining module 802, is further specifically used for:
If the quantity for the semantic identifier that the line of text where the semantic identifier includes is not more than 2, by institute's predicate
Adjacent content of text, is determined as text to be resolved before first semantic identifier in line of text where adopted identifier
Content;
If the quantity for the semantic identifier that the line of text where the semantic identifier includes is greater than 2, by the semanteme
Adjacent content of text, is determined as to be resolved before the semantic identifier of serial number odd number in line of text where identifier
Content of text, wherein the serial number of the semantic identifier is that number consecutively determines from left to right according to line of text.
Optionally, the determining module 802, also particularly useful for:
If in the line of text where the semantic identifier include a semantic identifier, by the semantic identifier it
Content of text afterwards is determined as target and executes object;
If including more than two semantic identifiers and the semantic identifier in the line of text where the semantic identifier
Quantity be even number, then by the content of text between two neighboring semantic identifiers be determined as target execute object, wherein it is described
The serial number odd number of previous semantic identifier in two neighboring semantic identifiers;
If including more than two semantic identifiers and the semantic identifier in the line of text where the semantic identifier
Quantity be odd number, then the content of text between two neighboring semantic identifiers is determined as target and executes object, and will most
Content of text after the latter semantic identifier is determined as target and executes object, wherein described two neighboring semantic identifiers
In previous semantic identifier serial number odd number.
Optionally, the execution module 803, is specifically used for:
Information extraction is carried out to the content of text to be resolved, determines and needs to execute the phase that object executes to the target
It should operate;
In the object run interface, the corresponding operating that object is executed to the target is executed.
Optionally, the attribute information of the semantic identifier includes:The type of identifier.
Optionally, the type of the identifier is space.
The document executive device based on markup language in this specification one or more embodiment is based on firstly, obtaining
The destination document of preset mark language generation, wherein comprising for marking target to execute the semantic mark of object in the destination document
Know symbol;Then, according to the semantic identifier in destination document, determine that object run interface and target execute object;It is grasped in target
Make in interface, executes the corresponding operating for executing object to target.In this specification one or more embodiment, it is based on due to writing
While the destination document of markup language, increase specified semantic identifier in destination document, realizes and document semantic is carried out
Label can make document actuator by identifying that the semantic identifier accurately determines out execution movement and execution object in this way,
And then achieve the purpose that document executes automatically, it realizes and event handling is automatically performed based on destination document, improve the essence of event handling
Accuracy and treatment effeciency.
In another specific embodiment, module 801 is obtained, for obtaining the target based on preset mark language generation
Document, wherein the destination document includes for marking for changing inspection to configuration information, and in the destination document
The semantic identifier of target detection object;
Determining module 802, for according to the semantic identifier in the destination document, determine target detection interface and
Target detection object;
Execution module 803, for executing the corresponding behaviour to the target detection object in the target detection interface
Make.
Optionally, the preset mark language includes:Markdown markup language.
Optionally, the determining module 802, is specifically used for:
According to the semantic identifier in the destination document, content of text to be resolved is determined;
Information extraction is carried out to the content of text to be resolved, to determine target detection interface.
Optionally, the determining module 802, is further specifically used for:
If the quantity for the semantic identifier that the line of text where the semantic identifier includes is not more than 2, by institute's predicate
Adjacent content of text, is determined as text to be resolved before first semantic identifier in line of text where adopted identifier
Content;
If the quantity for the semantic identifier that the line of text where the semantic identifier includes is greater than 2, by the semanteme
Adjacent content of text, is determined as to be resolved before the semantic identifier of serial number odd number in line of text where identifier
Content of text, wherein the serial number of the semantic identifier is that number consecutively determines from left to right according to line of text.
Optionally, the determining module 802, also particularly useful for:
If in the line of text where the semantic identifier include a semantic identifier, by the semantic identifier it
Content of text afterwards is determined as target detection object;
If including more than two semantic identifiers and the semantic identifier in the line of text where the semantic identifier
Quantity be even number, then the content of text between two neighboring semantic identifiers is determined as target detection object, wherein described
The serial number odd number of previous semantic identifier in two neighboring semantic identifiers;
If including more than two semantic identifiers and the semantic identifier in the line of text where the semantic identifier
Quantity be odd number, then the content of text between two neighboring semantic identifiers is determined as target detection object, and will most
Content of text after the latter semantic identifier is determined as target detection object, wherein described two neighboring semantic identifiers
In previous semantic identifier serial number odd number.
Optionally, the execution module 803, is specifically used for:
Information extraction is carried out to the content of text to be resolved, determines the phase for needing to execute to the target detection object
It should operate;
In the target detection interface, the corresponding operating to the target detection object is executed.
Optionally, the attribute information of the semantic identifier includes:The type of identifier.
Optionally, the type of the identifier is space.
The document executive device based on markup language in this specification one or more embodiment is based on firstly, obtaining
The destination document of preset mark language generation, the destination document is for changing inspection, and the destination document to configuration information
In include semantic identifier for marking target detection object;Then, according to the semantic identifier in destination document, mesh is determined
Mark detection interface and target detection object;In the target detection interface determined, the corresponding behaviour to target detection object is executed
Make.While due to writing the destination document based on markup language, increase specified semantic identifier in destination document, realizes
Document semantic is marked, can make document actuator by identifying that it is dynamic that the semantic identifier accurately determines out execution in this way
Make and execute object, and then achieve the purpose that document executes automatically, realizes the change for being automatically performed configuration information based on destination document
It more checks, improves the precision and check efficiency that configuration information change checks.
Further, corresponding above-mentioned Fig. 2 is to method shown in fig. 6, based on the same technical idea, this specification one or
Multiple embodiments additionally provide a kind of document execution equipment based on markup language, and the equipment is above-mentioned based on label for executing
The document of language executes method, as shown in Figure 9.
Document based on markup language, which executes equipment, to generate bigger difference because configuration or performance are different, can wrap
One or more processor 901 and memory 902 are included, one or more has been can store in memory 902 and has deposited
Store up application program or data.Wherein, memory 902 can be of short duration storage or persistent storage.It is stored in the application of memory 902
Program may include one or more modules (diagram is not shown), and each module may include to the text based on markup language
Shelves execute the series of computation machine executable instruction in equipment.Further, processor 901 can be set to and memory
902 communications execute the executable finger of series of computation machine executed in memory 902 in equipment in the document based on markup language
It enables.Document based on markup language, which executes equipment, to include one or more power supplys 903, one or more have
Line or radio network interface 904, one or more input/output interfaces 905, one or more keyboards 906 etc..
In a specific embodiment, it includes memory and one that the document based on markup language, which executes equipment,
Or more than one program, perhaps more than one program is stored in memory and one or more than one journey for one of them
Sequence may include one or more modules, and each module may include executing in equipment to the document based on markup language
Series of computation machine executable instruction, and be configured to execute this or one by one or more than one processor
Procedure above includes for carrying out following computer executable instructions:
Obtain the destination document based on preset mark language generation, wherein comprising for marking mesh in the destination document
Mark executes the semantic identifier of object;
According to the semantic identifier in the destination document, determine that object run interface and target execute object;
In the object run interface, the corresponding operating that object is executed to the target is executed.
Optionally, when executed, the preset mark language includes computer executable instructions:Markdown marks language
Speech.
Optionally, computer executable instructions when executed, mark by the semanteme according in the destination document
Know symbol, determines object run interface, including:
According to the semantic identifier in the destination document, content of text to be resolved is determined;
Information extraction is carried out to the content of text to be resolved, to determine object run interface.
Optionally, computer executable instructions when executed, mark by the semanteme according in the destination document
Know symbol, determines content of text to be resolved, including:
If the quantity for the semantic identifier that the line of text where the semantic identifier includes is not more than 2, by institute's predicate
Adjacent content of text, is determined as text to be resolved before first semantic identifier in line of text where adopted identifier
Content;
If the quantity for the semantic identifier that the line of text where the semantic identifier includes is greater than 2, by the semanteme
Adjacent content of text, is determined as to be resolved before the semantic identifier of serial number odd number in line of text where identifier
Content of text, wherein the serial number of the semantic identifier is that number consecutively determines from left to right according to line of text.
Optionally, computer executable instructions when executed, mark by the semanteme according in the destination document
Know symbol, determines that target executes object, including:
If in the line of text where the semantic identifier include a semantic identifier, by the semantic identifier it
Content of text afterwards is determined as target and executes object;
If including more than two semantic identifiers and the semantic identifier in the line of text where the semantic identifier
Quantity be even number, then by the content of text between two neighboring semantic identifiers be determined as target execute object, wherein it is described
The serial number odd number of previous semantic identifier in two neighboring semantic identifiers;
If including more than two semantic identifiers and the semantic identifier in the line of text where the semantic identifier
Quantity be odd number, then the content of text between two neighboring semantic identifiers is determined as target and executes object, and will most
Content of text after the latter semantic identifier is determined as target and executes object, wherein described two neighboring semantic identifiers
In previous semantic identifier serial number odd number.
Optionally, computer executable instructions are when executed, described in the object run interface, execute to described
Target executes the corresponding operating of object, including:
Information extraction is carried out to the content of text to be resolved, determines and needs to execute the phase that object executes to the target
It should operate;
In the object run interface, the corresponding operating that object is executed to the target is executed.
Optionally, when executed, the attribute information of the semantic identifier includes computer executable instructions:Identifier
Type.
Optionally, when executed, the type of the identifier is space to computer executable instructions.
The document based on markup language in this specification one or more embodiment executes equipment, is based on firstly, obtaining
The destination document of preset mark language generation, wherein comprising for marking target to execute the semantic mark of object in the destination document
Know symbol;Then, according to the semantic identifier in destination document, determine that object run interface and target execute object;It is grasped in target
Make in interface, executes the corresponding operating for executing object to target.As it can be seen that passing through the base in this specification one or more embodiment
Equipment is executed in the document of markup language to increase in destination document while due to writing the destination document based on markup language
Add specified semantic identifier, document semantic is marked in realization, can make document actuator by identifying the semanteme in this way
Identifier accurately determines out execution movement and executes object, and then achievees the purpose that document executes automatically, realizes and is based on target
Document is automatically performed event handling, improves the precision and treatment effeciency of event handling.
In another specific embodiment, it includes memory, Yi Jiyi that the document based on markup language, which executes equipment,
A or more than one program, one of them perhaps more than one program be stored in memory and one or more than one
Program may include one or more modules, and each module may include executing equipment to the document based on markup language
In series of computation machine executable instruction, and be configured to execute this one or by one or more than one processor
A procedure above includes for carrying out following computer executable instructions:
Obtain the destination document based on preset mark language generation, wherein the destination document be used for configuration information into
Row change checks, and includes the semantic identifier for marking target detection object in the destination document;
According to the semantic identifier in the destination document, target detection interface and target detection object are determined;
In the target detection interface, the corresponding operating to the target detection object is executed.
Optionally, when executed, the preset mark language includes computer executable instructions:Markdown marks language
Speech.
Optionally, computer executable instructions when executed, mark by the semanteme according in the destination document
Know symbol, determines target detection interface, including:
According to the semantic identifier in the destination document, content of text to be resolved is determined;
Information extraction is carried out to the content of text to be resolved, to determine target detection interface.
Optionally, computer executable instructions when executed, mark by the semanteme according in the destination document
Know symbol, determines content of text to be resolved, including:
If the quantity for the semantic identifier that the line of text where the semantic identifier includes is not more than 2, by institute's predicate
Adjacent content of text, is determined as text to be resolved before first semantic identifier in line of text where adopted identifier
Content;
If the quantity for the semantic identifier that the line of text where the semantic identifier includes is greater than 2, by the semanteme
Adjacent content of text, is determined as to be resolved before the semantic identifier of serial number odd number in line of text where identifier
Content of text, wherein the serial number of the semantic identifier is that number consecutively determines from left to right according to line of text.
Optionally, computer executable instructions when executed, mark by the semanteme according in the destination document
Know symbol, determines target detection object, including:
If in the line of text where the semantic identifier include a semantic identifier, by the semantic identifier it
Content of text afterwards is determined as target detection object;
If including more than two semantic identifiers and the semantic identifier in the line of text where the semantic identifier
Quantity be even number, then the content of text between two neighboring semantic identifiers is determined as target detection object, wherein described
The serial number odd number of previous semantic identifier in two neighboring semantic identifiers;
If including more than two semantic identifiers and the semantic identifier in the line of text where the semantic identifier
Quantity be odd number, then the content of text between two neighboring semantic identifiers is determined as target detection object, and will most
Content of text after the latter semantic identifier is determined as target detection object, wherein described two neighboring semantic identifiers
In previous semantic identifier serial number odd number.
Optionally, computer executable instructions are when executed, described in the target detection interface, execute to described
The corresponding operating of target detection object, including:
Information extraction is carried out to the content of text to be resolved, determines the phase for needing to execute to the target detection object
It should operate;
In the target detection interface, the corresponding operating to the target detection object is executed.
Optionally, when executed, the attribute information of the semantic identifier includes computer executable instructions:Identifier
Type.
Optionally, when executed, the type of the identifier is space to computer executable instructions.
The document based on markup language in this specification one or more embodiment executes equipment, is based on firstly, obtaining
The destination document of preset mark language generation, the destination document is for changing inspection, and the destination document to configuration information
In include semantic identifier for marking target detection object;Then, according to the semantic identifier in destination document, mesh is determined
Mark detection interface and target detection object;In the target detection interface determined, the corresponding behaviour to target detection object is executed
Make.As it can be seen that equipment is executed by the document based on markup language in this specification one or more embodiment, due to writing base
While the destination document of markup language, increase specified semantic identifier in destination document, realize to document semantic into
Line flag can make document actuator by identifying that the semantic identifier accurately determines out execution movement and execution pair in this way
As, and then achieve the purpose that document executes automatically, it realizes the change inspection for being automatically performed configuration information based on destination document, improves
The precision and check efficiency that configuration information change checks.
Further, corresponding above-mentioned Fig. 2 is to method shown in fig. 6, based on the same technical idea, this specification one or
Multiple embodiments additionally provide a kind of storage medium,, should in a kind of specific embodiment for storing computer executable instructions
Storage medium can be USB flash disk, CD, hard disk etc., and the computer executable instructions of storage medium storage are being executed by processor
When, it is able to achieve following below scheme:
Obtain the destination document based on preset mark language generation, wherein comprising for marking mesh in the destination document
Mark executes the semantic identifier of object;
According to the semantic identifier in the destination document, determine that object run interface and target execute object;
In the object run interface, the corresponding operating that object is executed to the target is executed.
Optionally, the computer executable instructions of storage medium storage are when being executed by processor, the preset mark
Language includes:Markdown markup language.
Optionally, the computer executable instructions of storage medium storage are described according to when being executed by processor
The semantic identifier in destination document determines object run interface, including:
According to the semantic identifier in the destination document, content of text to be resolved is determined;
Information extraction is carried out to the content of text to be resolved, to determine object run interface.
Optionally, the computer executable instructions of storage medium storage are described according to when being executed by processor
The semantic identifier in destination document determines content of text to be resolved, including:
If the quantity for the semantic identifier that the line of text where the semantic identifier includes is not more than 2, by institute's predicate
Adjacent content of text, is determined as text to be resolved before first semantic identifier in line of text where adopted identifier
Content;
If the quantity for the semantic identifier that the line of text where the semantic identifier includes is greater than 2, by the semanteme
Adjacent content of text, is determined as to be resolved before the semantic identifier of serial number odd number in line of text where identifier
Content of text, wherein the serial number of the semantic identifier is that number consecutively determines from left to right according to line of text.
Optionally, the computer executable instructions of storage medium storage are described according to when being executed by processor
The semantic identifier in destination document determines that target executes object, including:
If in the line of text where the semantic identifier include a semantic identifier, by the semantic identifier it
Content of text afterwards is determined as target and executes object;
If including more than two semantic identifiers and the semantic identifier in the line of text where the semantic identifier
Quantity be even number, then by the content of text between two neighboring semantic identifiers be determined as target execute object, wherein it is described
The serial number odd number of previous semantic identifier in two neighboring semantic identifiers;
If including more than two semantic identifiers and the semantic identifier in the line of text where the semantic identifier
Quantity be odd number, then the content of text between two neighboring semantic identifiers is determined as target and executes object, and will most
Content of text after the latter semantic identifier is determined as target and executes object, wherein described two neighboring semantic identifiers
In previous semantic identifier serial number odd number.
Optionally, the computer executable instructions of storage medium storage are described in the mesh when being executed by processor
It marks in operation interface, executes the corresponding operating for executing object to the target, including:
Information extraction is carried out to the content of text to be resolved, determines and needs to execute the phase that object executes to the target
It should operate;
In the object run interface, the corresponding operating that object is executed to the target is executed.
Optionally, the computer executable instructions of storage medium storage are when being executed by processor, the semantic mark
The attribute information of symbol includes:The type of identifier.
Optionally, the storage medium storage computer executable instructions when being executed by processor, the identifier
Type is space.
The computer executable instructions of storage medium storage in this specification one or more embodiment are by processor
When execution, firstly, obtaining the destination document based on preset mark language generation, wherein comprising for marking in the destination document
The semantic identifier of target execution object;Then, according to the semantic identifier in destination document, object run interface and mesh are determined
Mark executes object;In object run interface, the corresponding operating that object is executed to target is executed.As it can be seen that passing through this specification one
Storage medium in a or multiple embodiments, while due to writing the destination document based on markup language, in destination document
Increase specified semantic identifier, document semantic is marked in realization, can make document actuator by identifying the language in this way
Adopted identifier accurately determines out execution movement and executes object, and then achievees the purpose that document executes automatically, realizes and is based on mesh
Mark document is automatically performed event handling, improves the precision and treatment effeciency of event handling.
In another specific embodiment, which can be USB flash disk, CD, hard disk etc., storage medium storage
Computer executable instructions when being executed by processor, be able to achieve following below scheme:
Obtain the destination document based on preset mark language generation, wherein the destination document be used for configuration information into
Row change checks, and includes the semantic identifier for marking target detection object in the destination document;
According to the semantic identifier in the destination document, target detection interface and target detection object are determined;
In the target detection interface, the corresponding operating to the target detection object is executed.
Optionally, the computer executable instructions of storage medium storage are when being executed by processor, the preset mark
Language includes:Markdown markup language.
Optionally, the computer executable instructions of storage medium storage are described according to when being executed by processor
The semantic identifier in destination document determines target detection interface, including:
According to the semantic identifier in the destination document, content of text to be resolved is determined;
Information extraction is carried out to the content of text to be resolved, to determine target detection interface.
Optionally, the computer executable instructions of storage medium storage are described according to when being executed by processor
The semantic identifier in destination document determines content of text to be resolved, including:
If the quantity for the semantic identifier that the line of text where the semantic identifier includes is not more than 2, by institute's predicate
Adjacent content of text, is determined as text to be resolved before first semantic identifier in line of text where adopted identifier
Content;
If the quantity for the semantic identifier that the line of text where the semantic identifier includes is greater than 2, by the semanteme
Adjacent content of text, is determined as to be resolved before the semantic identifier of serial number odd number in line of text where identifier
Content of text, wherein the serial number of the semantic identifier is that number consecutively determines from left to right according to line of text.
Optionally, the computer executable instructions of storage medium storage are described according to when being executed by processor
The semantic identifier in destination document determines target detection object, including:
If in the line of text where the semantic identifier include a semantic identifier, by the semantic identifier it
Content of text afterwards is determined as target detection object;
If including more than two semantic identifiers and the semantic identifier in the line of text where the semantic identifier
Quantity be even number, then the content of text between two neighboring semantic identifiers is determined as target detection object, wherein described
The serial number odd number of previous semantic identifier in two neighboring semantic identifiers;
If including more than two semantic identifiers and the semantic identifier in the line of text where the semantic identifier
Quantity be odd number, then the content of text between two neighboring semantic identifiers is determined as target detection object, and will most
Content of text after the latter semantic identifier is determined as target detection object, wherein described two neighboring semantic identifiers
In previous semantic identifier serial number odd number.
Optionally, the computer executable instructions of storage medium storage are described in the mesh when being executed by processor
In mark detection interface, the corresponding operating to the target detection object is executed, including:
Information extraction is carried out to the content of text to be resolved, determines the phase for needing to execute to the target detection object
It should operate;
In the target detection interface, the corresponding operating to the target detection object is executed.
Optionally, the computer executable instructions of storage medium storage are when being executed by processor, the semantic mark
The attribute information of symbol includes:The type of identifier.
Optionally, the storage medium storage computer executable instructions when being executed by processor, the identifier
Type is space.
The computer executable instructions of storage medium storage in this specification one or more embodiment are by processor
When execution, firstly, obtaining the destination document based on preset mark language generation, the destination document is for becoming configuration information
It more checks, and includes the semantic identifier for marking target detection object in the destination document;Then, according in destination document
Semantic identifier, determine target detection interface and target detection object;In the target detection interface determined, execute to mesh
Mark the corresponding operating of test object.As it can be seen that by the storage medium in this specification one or more embodiment, due to writing base
While the destination document of markup language, increase specified semantic identifier in destination document, realize to document semantic into
Line flag can make document actuator by identifying that the semantic identifier accurately determines out execution movement and execution pair in this way
As, and then achieve the purpose that document executes automatically, it realizes the change inspection for being automatically performed configuration information based on destination document, improves
The precision and check efficiency that configuration information change checks.
In the 1990s, the improvement of a technology can be distinguished clearly be on hardware improvement (for example,
Improvement to circuit structures such as diode, transistor, switches) or software on improvement (improvement for method flow).So
And with the development of technology, the improvement of current many method flows can be considered as directly improving for hardware circuit.
Designer nearly all obtains corresponding hardware circuit by the way that improved method flow to be programmed into hardware circuit.Cause
This, it cannot be said that the improvement of a method flow cannot be realized with hardware entities module.For example, programmable logic device
(Programmable Logic Device, PLD) (such as field programmable gate array (Field Programmable Gate
Array, FPGA)) it is exactly such a integrated circuit, logic function determines device programming by user.By designer
Voluntarily programming comes a digital display circuit " integrated " on a piece of PLD, designs and makes without asking chip maker
Dedicated IC chip.Moreover, nowadays, substitution manually makes IC chip, this programming is also used instead mostly " is patrolled
Volume compiler (logic compiler) " software realizes that software compiler used is similar when it writes with program development,
And the source code before compiling also write by handy specific programming language, this is referred to as hardware description language
(Hardware Description Language, HDL), and HDL is also not only a kind of, but there are many kind, such as ABEL
(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description
Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL
(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby
Hardware Description Language) etc., VHDL (Very-High-Speed is most generally used at present
Integrated Circuit Hardware Description Language) and Verilog.Those skilled in the art also answer
This understands, it is only necessary to method flow slightly programming in logic and is programmed into integrated circuit with above-mentioned several hardware description languages,
The hardware circuit for realizing the logical method process can be readily available.
Controller can be implemented in any suitable manner, for example, controller can take such as microprocessor or processing
The computer for the computer readable program code (such as software or firmware) that device and storage can be executed by (micro-) processor can
Read medium, logic gate, switch, specific integrated circuit (Application Specific Integrated Circuit,
ASIC), the form of programmable logic controller (PLC) and insertion microcontroller, the example of controller includes but is not limited to following microcontroller
Device:ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320, are deposited
Memory controller is also implemented as a part of the control logic of memory.It is also known in the art that in addition to
Pure computer readable program code mode is realized other than controller, can be made completely by the way that method and step is carried out programming in logic
Controller is obtained to come in fact in the form of logic gate, switch, specific integrated circuit, programmable logic controller (PLC) and insertion microcontroller etc.
Existing identical function.Therefore this controller is considered a kind of hardware component, and to including for realizing various in it
The device of function can also be considered as the structure in hardware component.Or even, it can will be regarded for realizing the device of various functions
For either the software module of implementation method can be the structure in hardware component again.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity,
Or it is realized by the product with certain function.It is a kind of typically to realize that equipment is computer.Specifically, computer for example may be used
Think personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play
It is any in device, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or these equipment
The combination of equipment.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this
The function of each unit can be realized in the same or multiple software and or hardware when specification one or more embodiment.
It should be understood by those skilled in the art that, the embodiment of this specification one or more embodiment can provide as side
Method, system or computer program product.Therefore, complete hardware embodiment, complete can be used in this specification one or more embodiment
The form of full software implementation or embodiment combining software and hardware aspects.Moreover, this specification one or more embodiment
It is (including but unlimited that the computer-usable storage medium for wherein including computer usable program code in one or more can be used
In magnetic disk storage, CD-ROM, optical memory etc.) on the form of computer program product implemented.
This specification one or more embodiment is referring to method, the equipment according to this specification one or more embodiment
(system) and the flowchart and/or the block diagram of computer program product describe.It should be understood that can be by computer program instructions reality
The now process in each flow and/or block and flowchart and/or the block diagram in flowchart and/or the block diagram and/or side
The combination of frame.Can provide these computer program instructions to general purpose computer, special purpose computer, Embedded Processor or other can
The processor of programming data processing equipment is to generate a machine, so that passing through computer or other programmable data processing devices
The instruction that executes of processor generate for realizing in one box of one or more flows of the flowchart and/or block diagram or
The device for the function of being specified in multiple boxes.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want
There is also other identical elements in the process, method of element, commodity or equipment.
It will be understood by those skilled in the art that the embodiment of this specification one or more embodiment can provide as method, be
System or computer program product.Therefore, complete hardware embodiment, complete software can be used in this specification one or more embodiment
The form of embodiment or embodiment combining software and hardware aspects.Moreover, this specification one or more embodiment can be used
In computer-usable storage medium (the including but not limited to disk that one or more wherein includes computer usable program code
Memory, CD-ROM, optical memory etc.) on the form of computer program product implemented.
This specification one or more embodiment can computer executable instructions it is general on
It hereinafter describes, such as program module.Generally, program module includes executing particular task or realization particular abstract data type
Routine, programs, objects, component, data structure etc..Can also practice in a distributed computing environment this specification one or
Multiple embodiments, in these distributed computing environments, by being executed by the connected remote processing devices of communication network
Task.In a distributed computing environment, the local and remote computer that program module can be located at including storage equipment is deposited
In storage media.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality
For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method
Part explanation.
The foregoing is merely the embodiments of this specification one or more embodiment, are not limited to this specification
One or more embodiments.To those skilled in the art, this specification one or more embodiment can have it is various more
Change and changes.It is all this specification one or more embodiment spirit and principle within made any modification, equivalent replacement,
Improve etc., it should be included within the scope of the claims of this specification one or more embodiment.