CN109358848A - Custom instruction edit methods, device and computer equipment - Google Patents
Custom instruction edit methods, device and computer equipment Download PDFInfo
- Publication number
- CN109358848A CN109358848A CN201811209498.7A CN201811209498A CN109358848A CN 109358848 A CN109358848 A CN 109358848A CN 201811209498 A CN201811209498 A CN 201811209498A CN 109358848 A CN109358848 A CN 109358848A
- Authority
- CN
- China
- Prior art keywords
- instruction
- editing
- established
- custom instruction
- custom
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
Abstract
The present invention provides a kind of custom instruction edit methods, device and computer equipment, which includes: the custom instruction for loading real-time edition;The element pre-established and custom instruction are established into mapping relations, the custom instruction that mapping relations are established with the element pre-established is determined as instruction ready for use, and the attributes section of instruction ready for use is set according to the syntax rule pre-established;Scheme is spliced and combined according to the element pre-established, the reference of instruction ready for use is carried out in editing area, generates editing files;According to the corresponding attributes section of instruction ready for use in editing files, it is that the instruction ready for use in editing files carries out Attributions selection and/or assignment, generates clean up editing file;Clean up editing file is exported according to the default way of output and default output position.Custom instruction edit methods of the invention, can simplify operation when element is multiplexed, to reduce the editing of repeatability.
Description
Technical field
The present invention relates to editing technique fields, in particular to a kind of custom instruction edit methods, device, calculating
Machine equipment and computer storage medium.
Background technique
With the continuous development of Internet technology, software requirement is increasingly improved, to the efficiency and quality requirement of software development
Also it is constantly promoted.
It is often faced with a large amount of code repeatability problems in the development process of software, also faces this phase when editing document
As multiplying question.This multiplying question is faced in the prior art, usually using Code Generator or document structure tree tool, but
It is obvious to be that these tools have the shortcomings that:
1, customized difference, the modification of tool needs user first to understand tool background program logic, and modification difficulty is big, repairs
It is limited to change content;
2, reusability is poor, and most of template and background logic of tool are fixed, it is difficult to carry out splicing and combining operation, function
It can be single.
Summary of the invention
In view of the above problems, the present invention provides a kind of custom instruction edit methods, device, computer equipment and calculating
Machine storage medium, to simplify operation when element is multiplexed, to reduce the editing of repeatability.
To achieve the goals above, the present invention adopts the following technical scheme that:
A kind of custom instruction edit methods, for editing document and code, comprising:
Load the custom instruction of real-time edition;
The element pre-established and the custom instruction are established into mapping relations, will be established with the element pre-established
The custom instruction of mapping relations is determined as instruction ready for use, and according to the syntax rule setting pre-established it is described to
The attributes section of the instruction used;
Scheme is spliced and combined according to the element pre-established, carries out the reference of the instruction ready for use in editing area,
Generate editing files;
The corresponding attributes section of instruction ready for use according to the editing files, for the institute in the editing files
It states instruction ready for use and carries out Attributions selection and/or assignment, generate clean up editing file;
The clean up editing file is exported according to the default way of output and default output position.
Preferably, the element includes at least one of code segment, text section, input frame and Option Box.
Preferably, the custom instruction edit methods, further includes:
The mapping relations of the element and the custom instruction that are pre-established described in storage, it is raw according to the custom instruction
It is multiplexed and links at element;
The level that scheme determines the element is spliced and combined according to the element pre-established, wherein the element of same level
Its custom instruction is unique, and determines that the custom instruction is globally unique by the level of respective element.
Preferably, the custom instruction edit methods, further includes:
Again when editing files, the custom instruction for establishing mapping relations with the element pre-established is being compiled
It collects region to be quoted, or triggers the element multiplexing link in editing area, generate editing files.
It is preferably, described that " the corresponding attributes section of instruction ready for use, is the volume according to the editing files
The instruction ready for use collected in file carries out Attributions selection and/or assignment, generates clean up editing file " include:
The corresponding attributes section of instruction ready for use custom instruction described in the editing files is passed through into speech interface
Be converted to option voice, and by the option voice output to user;
Receive user input voice messaging, and according to the voice messaging carry out in the editing files described in wait make
Instruction carries out Attributions selection and/or assignment, generates clean up editing file.
Preferably, described " exporting the clean up editing file according to the default way of output and default output position " includes:
The clean up editing file is exported according to preset file format and preset store path;Or
It is pre- in the file that the clean up editing file is spliced into the file pre-established, and is pre-established described in replacement
The replacement label being first arranged;Or
The clean up editing file is converted into voice document using TTS interface and is exported to preset store path.
The present invention also provides a kind of custom instruction editing devices, and for editing document and code, described device includes:
Loading module is instructed, for loading the custom instruction of real-time edition;
Element mapping block, for the element pre-established and the custom instruction to be established mapping relations, will with it is pre-
The custom instruction that the element first established establishes mapping relations is determined as instruction ready for use, and according to pre-establishing
The attributes section of the instruction ready for use is arranged in syntax rule;
Editing files generation module carries out institute in editing area for splicing and combining scheme according to the element pre-established
The reference of instruction ready for use is stated, editing files are generated;
Attributions selection assignment module, for the corresponding attribute choosing of the instruction ready for use according to the editing files
, it is that the instruction ready for use in the editing files carries out Attributions selection and/or assignment, generates clean up editing file;
File output module, for exporting the clean up editing file according to the default way of output and default output position.
Preferably, the custom instruction editing device, further includes:
Element memory module, for storing the mapping relations of the element pre-established and the custom instruction, root
Element multiplexing link is generated according to the custom instruction;
Level determining module, for splicing and combining the level that scheme determines the element according to the element pre-established,
In, its custom instruction of the element of same level is unique, and determines that the custom instruction is global by the level of respective element
Uniquely.
The present invention also provides a kind of computer equipments, including memory and processor, and the memory is based on storing
Calculation machine program, the processor runs the computer program so that the computer equipment executes the custom instruction and compiles
The method of collecting.
The present invention also provides a kind of computer storage medium, it is stored with calculating used in the computer equipment
Machine program.
The present invention provides a kind of custom instruction edit methods, and this method is for editing document and code, the method packet
It includes: loading the custom instruction of real-time edition;The element pre-established and the custom instruction are established into mapping relations, it will be with
The custom instruction that the element pre-established establishes mapping relations is determined as instruction ready for use, and according to pre-establishing
Syntax rule the attributes section of the instruction ready for use is set;Scheme is spliced and combined according to the element pre-established, is being compiled
The reference that region carries out the instruction ready for use is collected, editing files are generated;It is ready for use according to the editing files
Corresponding attributes section is instructed, is that the instruction ready for use in the editing files carries out Attributions selection and/or assignment, it is raw
At clean up editing file;The clean up editing file is exported according to the default way of output and default output position.It is of the invention from
Definition instruction edit methods, can use element and instruction carries out the foundation of customized mapping relations, thus can be in editor
Using the operation simplified when element is multiplexed is instructed, to reduce the editing of repeatability.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate
Appended attached drawing, is described in detail below.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached
Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair
The restriction of the scope of the invention.
Fig. 1 is a kind of flow chart for custom instruction edit methods that the embodiment of the present invention 1 provides;
Fig. 2 is a kind of flow chart for custom instruction edit methods that the embodiment of the present invention 2 provides;
Fig. 3 is a kind of flow chart of the selection attributes section for custom instruction edit methods that the embodiment of the present invention 3 provides;
Fig. 4 is a kind of structural schematic diagram for custom instruction editing device that the embodiment of the present invention 4 provides;
Fig. 5 is the structural schematic diagram for another custom instruction editing device that the embodiment of the present invention 4 provides;
Fig. 6 is that a kind of structure of the file output module for custom instruction editing device that the embodiment of the present invention 4 provides is shown
It is intended to.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete
Ground description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Usually exist
The component of the embodiment of the present invention described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause
This, is not intended to limit claimed invention to the detailed description of the embodiment of the present invention provided in the accompanying drawings below
Range, but it is merely representative of selected embodiment of the invention.Based on the embodiment of the present invention, those skilled in the art are not doing
Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
Embodiment 1
Fig. 1 is a kind of flow chart for custom instruction edit methods that the embodiment of the present invention 1 provides, and this method is for editing
Document and code, include the following steps:
Step S11: the custom instruction of real-time edition is loaded.
In the embodiment of the present invention, which can carry out real-time edition by user, and computer can be used in user
Equipment input character is to establish custom instruction, wherein it is stored with computer program in the computer equipment, it should by operation
The method that the present embodiment may be implemented in computer program.It is stored in advance at the same time it can also be loaded in the system of computer equipment
Instruction, wherein the custom instruction is a kind of label instructions write according to the grammer that defines of the present invention and rule, computer
The system of equipment can carry out processing according to the instruction and generate corresponding function.Wherein, grammer of the invention and rule include:
1. this system instruction is analogous to existing for the document form of XML tag form.
2. the document of label construction is a kind of tree construction, then it expands to " branches and leaves " since " root ".
3. the document of label construction must be instructed comprising root.
4. all labels must be all closed.
5. must be correct nested between label.
7. this system is to case sensitive.
8. label must add " bc " or " $ bc " can just be identified as system command, " bc " is system command keyword, " $
Bc " is the reference key word of external command.
9. indicating the hierarchical relationship of instruction with English fullstop " " and English colon ": ", the English fullstop after keyword adds finger
Title is enabled to be expressed as an instruction, the junior of reference instruction is instructed, separated between instruction name with English fullstop.English fullstop and
The difference of English colon is that the instruction name after English fullstop can be customized, and cited system attribute is needed with English colon
“:”。
10. instruction reference does not allow in addition to spcial character as defined in system.
11. self-closing and label is in this system for instructing reference, reference when, cannot modify attribute.As " <bc. title/
>”。
12. fully closed and label is used to instruct the assignment of output content in this system, as "<bc.name >export content</bc.
Title > ".
13. the attribute in label must be the attribute that system defines, Custom Attributes is invalid.
14. tag attributes assignment must add quotation marks.
15. the method in tag attributes assignment must add English bracket.
16. option, in the case where instruction reference, system priority is: instruction is drawn instructing while being provided with output content
With, option, output content.
17. when addition instructs, instruction name cannot be repeated in the same instruction, if repeating the modification for being considered as instruction.
Instruction in single text can be used arbitrarily.
18. use command content rather than system label, need to include bookmark name, multiple levels using English bracket
Calling need Reusability, such as " this [bookmark name] [bookmark name] ".
In the embodiment of the present invention, which can be set to can wrap in tree, namely instruction containing one
The multistage sub-instructions of grade sub-instructions and second level sub-instructions etc., thus the system loads user of computer equipment editted from
When definition instruction, the custom instruction can also be presented in the form of tree according to syntax rule, understand each finger convenient for user
Order and call instruction.Wherein, which can store in the database of computer equipment, user by algorithm or
Application program can load in systems and call the instruction.
Step S12: the element pre-established and custom instruction are established into mapping relations, will be built with the element pre-established
The custom instruction for having found mapping relations is determined as instruction ready for use, and to be used according to the syntax rule setting pre-established
Instruction attributes section.
In the embodiment of the present invention, which includes at least one of code segment, text section, input frame and Option Box.Work as member
When element is code segment, the complete function that the element namely code segment embody, perhaps for the component of page or be one
There are list and search column etc. in a logical action, such as a page, the list and search column are then the element of the page, pass through generation
Code section is realized.When element is text section, then can be continuously for a word or passage, this article field,
It can be lack part, the part of the missing can be variable, be supplemented by user.Element is the one of composition function module
A basic unit has hierarchical structure.Wherein, which can be pre-established by user, for example, user can be with
Using the software for editing in the system of computer equipment, the element of needs is editted in advance, then by making by oneself at least one
Mapping relations are established in justice instruction, are achieved the purpose that the element can be called using instruction, are reduced the difficulty of element multiplexing.Its
In, element is realized with instructing the process for establishing mapping relations to can use algorithm or application program, after establishing mapping relations,
It also needs that the corresponding attributes section of custom instruction is arranged according to above-mentioned syntax rule.It establishes and maps in custom instruction and element
After relationship, it then can be used for quoting corresponding element namely the custom instruction in computer equipment using the custom instruction
It is converted into function.
Step S13: splicing and combining scheme according to the element pre-established, carries out drawing for instruction ready for use in editing area
With generation editing files.
In the embodiment of the present invention, which can also be specially variable element or template elements, wherein the template elements are
The part often changed is not needed when document or Code Edit, such as a word " I is Xiao Ming " in document, due to " I cries "
It can be commonly using needing to change, being somebody's turn to do " I cries " is then template, and correspondingly, " Xiao Ming " is then variable element, be can use
It is arranged as an input frame in code segment, and the mapping relations of corresponding instruction are arranged, and both splicings instruction then generates one and makes by oneself
Adopted template, for " I cries ... ", wherein should " ... " be then an input frame, by user inputted variable.Wherein, the variable element is also
It can be the elements such as list box.
In the embodiment of the present invention, the system in the computer equipment can also provide an editing area, so that user exists
Input instruction carries out element splicing and combination operation in editing area, generates editing files, which can be built in advance by user
It is vertical, and be stored in the database of computer equipment, it can use custom instruction when being edited and be called.Its
In, a display area can also be provided in the system of the computer equipment, carrying out when splicing and combining of element using instruction
Can in the display area indicating template editor effect, and family can be used input variable checks final effect in a template
Fruit.Above-mentioned element splices and combines, and can be splicing and combining between code segment and code segment, between text section and text section
It splices and combines, is also possible to splicing and combining between code segment and text section.
Step S14: being to be used in editing files according to the corresponding attributes section of instruction ready for use in editing files
Instruction carry out Attributions selection and/or assignment, generate clean up editing file.
In the embodiment of the present invention, user can also be belonged to by the corresponding attributes section of custom instruction in editing files
Property selection and assignment operation.After the Attributions selection and assignment operation that are respectively instructed in completing editing files, entire file
Editing is then completed, and user can obtain the clean up editing file for meeting demand.Wherein, it is compiled using custom instruction
When collecting, after user drags instruction to editing area, the editing procedure in the computer equipment carries out the prompt of attributes section, so as to
User selects the custom instruction attributes section needed by editing procedure in editing area or assigns to Custom Attributes
Value.For example, in above-mentioned document example, self-defined template " I cries ... ", wherein should " ... " be an input frame, Ye Jiyi
A variable element, user can be that the input frame is assigned a value of titles such as " Xiao Ming " by the attributes section of custom instruction,
Several different titles, such as " Xiao Ming " and " small rigid " can also be set in advance, corresponded to as the variable element customized
The attribute of instruction, is selected by users.
It may include having multiple and different custom instructions, therefore user can in the editing files in the embodiment of the present invention
To carry out multiple Attributions selection and assignment operation, and the attribute of the custom instruction in the editing files and assignment can be with
It modifies, is clean up editing file so that user debugs out optimal editing files.
Step S15: clean up editing file is exported according to the default way of output and default output position.
In the embodiment of the present invention, above-mentioned clean up editing file can also be defeated according to the preset way of output and output position
It is stored out into the memory of computer equipment.For example, output can be provided in the editing procedure of computer equipment
Key, user click output key can choose output by way of and output file storage position, determine after carry out
The output of clean up editing file.
In the embodiment of the present invention, the process of output clean up editing file may include following manner:
Clean up editing file is exported according to preset file format and preset store path.
In the embodiment of the present invention, user can directly specify the lattice of the clean up editing file in the system of computer equipment
Formula and the store path in computer equipment, and carry out the output of clean up editing file.
Clean up editing file is spliced into the file pre-established, and is replaced pre-set in the file pre-established
Replacement label.
In the embodiment of the present invention, user can also splice clean up editing file into the file having had built up, wherein
Need to set replacement label in this document in advance, the content of clean up editing file will replace the replacement mark in splicing
Note, splices into this document.The replacement process can use application program to realize, such as can use application program search in advance
The content of clean up editing file, is then replaced by the position of the replacement label in the file first established.Wherein, the replacement mark
Note, such as can be spcial character or special text etc..
Clean up editing file is converted into voice document using TTS interface and is exported to preset store path.
In the embodiment of the present invention, TTS (TTS, Text to Speech, text can also be provided in computer equipment
To voice) interface, it is applied by TTS and clean up editing file is converted into synthesis voice document.It such as can will be word or file
Clean up editing file be converted to synthesis voice document, and be stored in the default store path of computer equipment.
As it can be seen that custom instruction edit methods through the embodiment of the present invention, can simplify in document or Code Edit
The operation of element multiplexing, can be improved the efficiency of documents editing, meanwhile, it is raw that customized code can also be established based on this method
At tool system, so that software programming be assisted to develop, working efficiency is improved.
Embodiment 2
Fig. 2 is a kind of flow chart for custom instruction edit methods that the embodiment of the present invention 2 provides, and this method is for editing
Document and code, include the following steps:
Step S21: the custom instruction of real-time edition is loaded.
This step is consistent with above-mentioned steps S11, and details are not described herein.
Step S22: the element pre-established and custom instruction are established into mapping relations, will be built with the element pre-established
The custom instruction for having found mapping relations is determined as instruction ready for use, and to be used according to the syntax rule setting pre-established
Instruction attributes section.
This step is consistent with above-mentioned steps S12, and details are not described herein.
Step S23: splicing and combining scheme according to the element pre-established, carries out drawing for instruction ready for use in editing area
With generation editing files.
This step is consistent with above-mentioned steps S13, and details are not described herein.
Step S24: being to be used in editing files according to the corresponding attributes section of instruction ready for use in editing files
Instruction carry out Attributions selection and/or assignment, generate clean up editing file.
This step is consistent with above-mentioned steps S14, and details are not described herein.
Step S25: clean up editing file is exported according to the default way of output and default output position.
This step is consistent with above-mentioned steps S15, and details are not described herein.
Step S26: storing the mapping relations of the element and custom instruction that pre-establish, generates member according to custom instruction
Element multiplexing link.
Step S27: the level that scheme determines element is spliced and combined according to the element pre-established, wherein same level
Its custom instruction of element is unique, and determines that custom instruction is globally unique by the level of respective element.
In the embodiment of the present invention, the element and corresponding custom instruction mapping that user establishes in the computer equipment are closed
System may be stored in the element database pre-established.And the level of the element can be spelled by element by instruction
It is determined when connecing combination, and the element of same level cannot establish mapping relations with same instructions.Wherein, if user is establishing
When mapping relations, there is the case where with level element same instructions, the system of the computer equipment can be sent out miscue,
And same level element and same instructions is forbidden to establish mapping relations, to avoid the mistake that causes confusion is instructed when element is multiplexed
Accidentally.
In the embodiment of the present invention, the custom instruction for establishing mapping relations with element can also be converted into function and link,
It is converted into the link of element multiplexing, the link that element multiplexing is additionally provided in editing area of computer equipment, user
Corresponding custom instruction can be generated in editing area by triggering the link, and custom instruction is made to realize functionalization.Wherein, should
The link of element multiplexing can be set to the various virtual keys of editing area.
Step S28: again when editing files, the custom instruction that mapping relations are established with the element pre-established is being compiled
It collects region to be quoted, or in editing area triggering element multiplexing link, generates editing files.
In the embodiment of the present invention, user edits identical file again, or when the identical element of use, can be in computer
Drawn the corresponding position that custom instruction to the editing area of establishing mapping relations with required element are dragged in the system of equipment
With, or trigger in editing area the link of element multiplexing and can generate and custom instruction and quoted in corresponding position, then
Editing files needed for producing.
The custom instruction edit methods of the embodiment of the present invention can assist the volume of custom instruction by way of voice
The process of collecting, makes custom instruction editorial intelligence, improves the efficiency of editor.Also, it, can by storage element and mapping relations
Effectively to accumulate the experience that user edits and develops.
Embodiment 3
Fig. 3 is a kind of flow chart of the selection attributes section for custom instruction edit methods that the embodiment of the present invention 3 provides,
Include the following steps:
Step S31: the corresponding attributes section of instruction custom instruction ready for use in editing files is passed through into speech interface
Be converted to option voice, and by option voice output to user.
In the embodiment of the present invention, when user carries out the selection of the attributes section of custom instruction, which can
To convert option voice for the attributes section of custom instruction using speech interface, and export to user, so that user passes through
The selection of voice progress attributes section.Wherein, which can be the voice of inquiry mode, namely pass through asking after sequence
Topic successively prompts the selection of the attributes section of user's progress custom instruction.
Step S32: the voice messaging of user's input is received, and according to ready for use in voice messaging progress editing files
Instruction carries out Attributions selection and/or assignment, generates clean up editing file.
It, can be according to option voice after user obtains the option voice of computer equipment output in the embodiment of the present invention
Prompt carry out custom instruction Attributions selection or assignment, generate clean up editing file.Wherein, user can input voice letter
Breath carries out the Attributions selection and assignment of custom instruction, also, user using voice control computer equipment to computer equipment
Attributes section directly can also be directly selected in the operation interface of computer equipment, for custom instruction carry out Attributions selection and
Assignment.
In the embodiment of the present invention, when user's input voice information to computer equipment, it can also be made by oneself using voice
The search and calling of justice instruction.For example, in the mapping relations of element and element and custom instruction that storage pre-establishes,
The keyword of search can also be set for the element, and user can input the keyword to computer equipment by voice and carry out
The search and calling of corresponding custom instruction, to reach the function of utilizing voice assist edit.
In the embodiment of the present invention, speech interface is set in computer equipment, user is made to can use voice control calculating
Machine equipment carries out the editor of file using custom instruction.Wherein, documents editing is carried out using voice control custom instruction
There are two types of modes, one is using voice as editor when miscellaneous function, using phonetic search storage element and make by oneself
Justice instruction completes the editor of definitive document in the operation interface by computer equipment;It furthermore is used using phonetic function
Family completely disengages manual operation and is edited, and calls custom instruction using voice, and carry out certainly by the prompt of sound options
The selection and assignment of instruction attributes are defined, clean up editing file is completed.
Embodiment 4
Fig. 4 is a kind of structural schematic diagram for custom instruction editing device that the embodiment of the present invention 4 provides.
The custom instruction editing device 400 includes:
Loading module 410 is instructed, for loading the custom instruction of real-time edition.
Element mapping block 420 will be with for the element pre-established and the custom instruction to be established mapping relations
The custom instruction that the element pre-established establishes mapping relations is determined as instruction ready for use, and according to pre-establishing
Syntax rule the attributes section of the instruction ready for use is set.
Editing files generation module 430 is carried out for splicing and combining scheme according to the element pre-established in editing area
The reference of the instruction ready for use generates editing files.
Attributions selection assignment module 440, for the corresponding attribute of instruction ready for use according to the editing files
Option is that the instruction ready for use in the editing files carries out Attributions selection and/or assignment, generates clean up editing text
Part.
File output module 450, for exporting clean up editing file according to the default way of output and default output position.
As shown in figure 5, the custom instruction editing device 400 further include:
Element memory module 460, for storing the mapping relations of the element pre-established and the custom instruction,
Element multiplexing link is generated according to the custom instruction.
Level determining module 470, for splicing and combining the level that scheme determines the element according to the element pre-established,
Wherein, its custom instruction of the element of same level is unique, and determines that the custom instruction is complete by the level of respective element
Office is unique.
Mould 480 is edited again, and when for editing files again, making by oneself for mapping relations will be established with the element pre-established
Justice instruction is dragged to the editing area corresponding position of the template pre-established, generates editing files.
As shown in fig. 6, this document output module 450 includes:
File output unit 451, for exporting clean up editing according to preset file format and preset store path
File.
File concatenation unit 452 for splicing clean up editing file into the file pre-established, and is replaced and is built in advance
Pre-set replacement label in vertical file.
Voice-output unit 453, for clean up editing file to be converted to voice document using TTS interface and is exported to pre-
If store path.
In the embodiment of the present invention, when computer equipment executes the function of above-mentioned modules and unit, it can count
The function interface generated in the system of machine equipment for user's operation is calculated, for example, the controller reading in computer equipment is customized
After instruction, the row of custom instruction is carried out in function interface according to tree, natural logic, page layout or other logics
Column, also, the controller attribute in custom instruction is judged after generate text input box or route selection input frame in function
It can be shown in interface.
In the embodiment of the present invention, above-mentioned modules and each unit more detailed function description can refer to aforementioned
The content of corresponding portion in embodiment, details are not described herein.
In addition, the computer equipment may include smart phone, plate electricity the present invention also provides a kind of computer equipment
Brain, vehicle-mounted computer, intelligent wearable device etc..The computer equipment includes memory and processor, and memory can be used for storing meter
Calculation machine program, processor by running the computer program, thus make computer equipment execute the above method or it is above-mentioned from
The function of modules in definition instruction editing device.
Memory may include storing program area and storage data area, wherein storing program area can storage program area, at least
Application program needed for one function (such as sound-playing function, image player function etc.) etc.;Storage data area can store root
Created data (such as audio data, phone directory etc.) etc. are used according to computer equipment.In addition, memory may include height
Fast random access memory, can also include nonvolatile memory, a for example, at least disk memory, flush memory device,
Or other volatile solid-state parts.
The present embodiment additionally provides a kind of computer storage medium, for storing calculating used in above-mentioned computer equipment
Machine program.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through
Other modes are realized.The apparatus embodiments described above are merely exemplary, for example, flow chart and structure in attached drawing
Figure shows the system frame in the cards of the device of multiple embodiments according to the present invention, method and computer program product
Structure, function and operation.In this regard, each box in flowchart or block diagram can represent a module, section or code
A part, a part of the module, section or code includes one or more for implementing the specified logical function
Executable instruction.It should also be noted that function marked in the box can also be to be different from the implementation as replacement
The sequence marked in attached drawing occurs.For example, two continuous boxes can actually be basically executed in parallel, they are sometimes
It can execute in the opposite order, this depends on the function involved.It is also noted that in structure chart and/or flow chart
The combination of each box and the box in structure chart and/or flow chart, can function or movement as defined in executing it is dedicated
Hardware based system realize, or can realize using a combination of dedicated hardware and computer instructions.
In addition, each functional module or unit in each embodiment of the present invention can integrate one independence of formation together
Part, be also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be intelligence
Can mobile phone, personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or
Part steps.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory),
Random access memory (RAM, Random Access Memory), magnetic or disk etc. be various to can store program code
Medium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (10)
1. a kind of custom instruction edit methods, for editing document and code characterized by comprising
Load the custom instruction of real-time edition;
The element pre-established and the custom instruction are established into mapping relations, mapping will be established with the element pre-established
The custom instruction of relationship is determined as instruction ready for use, and described to be used according to the syntax rule setting pre-established
Instruction attributes section;
Scheme is spliced and combined according to the element pre-established, carries out the reference of the instruction ready for use in editing area, is generated
Editing files;
The corresponding attributes section of instruction ready for use according to the editing files, be in the editing files it is described to
The instruction used carries out Attributions selection and/or assignment, generates clean up editing file;
The clean up editing file is exported according to the default way of output and default output position.
2. custom instruction edit methods according to claim 1, which is characterized in that the element includes code segment, text
At least one of field, input frame and Option Box.
3. custom instruction edit methods according to claim 1, which is characterized in that further include:
The mapping relations of the element and the custom instruction that pre-establish described in storage generate member according to the custom instruction
Element multiplexing link;
Splice and combine the level that scheme determines the element according to the element pre-established, wherein the element of same level its from
Definition instruction is unique, and determines that the custom instruction is globally unique by the level of respective element.
4. custom instruction edit methods according to claim 3, which is characterized in that further include:
Again when editing files, the custom instruction of mapping relations will be established with the element pre-established in editing area
Domain is quoted, or triggers the element multiplexing link in editing area, generates editing files.
5. custom instruction edit methods according to claim 1, which is characterized in that described " according to the editing files
Described in the corresponding attributes section of instruction ready for use, be that the instruction ready for use in the editing files carries out attribute choosing
Select and/or assignment, generate clean up editing file " include:
The corresponding attributes section of instruction ready for use custom instruction described in the editing files is converted by speech interface
For option voice, and by the option voice output to user;
The voice messaging of user's input is received, and is carried out according to the voice messaging described ready for use in the editing files
Instruction carries out Attributions selection and/or assignment, generates clean up editing file.
6. custom instruction edit methods according to claim 1, which is characterized in that described " according to the default way of output
And default output position exports the clean up editing file " include:
The clean up editing file is exported according to preset file format and preset store path;Or
It is set in advance in the file that the clean up editing file is spliced into the file pre-established, and is pre-established described in replacement
The replacement label set;Or
The clean up editing file is converted into voice document using TTS interface and is exported to preset store path.
7. a kind of custom instruction editing device, for editing document and code, which is characterized in that described device includes:
Loading module is instructed, for loading the custom instruction of real-time edition;
Element mapping block, for the element pre-established and the custom instruction to be established mapping relations, will with build in advance
The custom instruction that vertical element establishes mapping relations is determined as instruction ready for use, and according to the grammer pre-established
The attributes section of instruction ready for use described in rule setting;
Editing files generation module, for splicing and combining scheme according to the element pre-established, editing area carry out it is described to
The reference of the instruction used generates editing files;
Attributions selection assignment module instructs corresponding attributes section for ready for use according to the editing files, is
The instruction ready for use in the editing files carries out Attributions selection and/or assignment, generates clean up editing file;
File output module, for exporting the clean up editing file according to the default way of output and default output position.
8. custom instruction editing device according to claim 7, which is characterized in that further include:
Element memory module, for storing the mapping relations of the element pre-established and the custom instruction, according to institute
It states custom instruction and generates element multiplexing link;
Level determining module, for splicing and combining the level that scheme determines the element according to the element pre-established, wherein phase
With the element of level, its custom instruction is unique, and determines that the custom instruction is globally unique by the level of respective element.
9. a kind of computer equipment, which is characterized in that including memory and processor, the memory is for storing computer
Program, the processor runs the computer program so that the computer equipment executes according to claim 1 to any in 6
Custom instruction edit methods described in.
10. a kind of computer storage medium, which is characterized in that it, which is stored in computer equipment as claimed in claim 9, is made
Computer program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811209498.7A CN109358848B (en) | 2018-10-17 | 2018-10-17 | User-defined instruction editing method and device and computer equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811209498.7A CN109358848B (en) | 2018-10-17 | 2018-10-17 | User-defined instruction editing method and device and computer equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109358848A true CN109358848A (en) | 2019-02-19 |
CN109358848B CN109358848B (en) | 2022-02-15 |
Family
ID=65349548
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811209498.7A Active CN109358848B (en) | 2018-10-17 | 2018-10-17 | User-defined instruction editing method and device and computer equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109358848B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110196714A (en) * | 2019-06-04 | 2019-09-03 | 上海合桀软件技术有限公司 | A kind of conversion restoring method of original directive, storage equipment and terminal |
CN110262791A (en) * | 2019-06-05 | 2019-09-20 | 搜游网络科技(北京)有限公司 | A kind of visual programming method, apparatus and performer, readable storage medium storing program for executing |
CN110297838A (en) * | 2019-07-04 | 2019-10-01 | 珠海金山网络游戏科技有限公司 | A kind of landform material edit methods, calculate equipment and storage medium at device |
CN111026386A (en) * | 2019-12-23 | 2020-04-17 | 杨宏伟 | Jigsaw programmable instruction input method and system based on image recognition |
CN111694574A (en) * | 2020-06-12 | 2020-09-22 | 北京百度网讯科技有限公司 | Method, device, equipment and storage medium for instruction code processing |
CN111813411A (en) * | 2020-06-13 | 2020-10-23 | 立乐教育科技(上海)有限公司 | Python script language-based instruction method |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040133858A1 (en) * | 2003-01-02 | 2004-07-08 | Michael Barnett | Tool-based iterative document management |
US20100269096A1 (en) * | 2009-04-17 | 2010-10-21 | ArtinSoft Corporation, S.A. | Creation, generation, distribution and application of self-contained modifications to source code |
CN102281416A (en) * | 2010-06-11 | 2011-12-14 | 深圳Tcl新技术有限公司 | On-screen display (OSD) editing system, editing method and television employing system |
CN103425485A (en) * | 2013-05-18 | 2013-12-04 | 冯俊 | Interface edition and operation system and method for ordinary users |
CN103577072A (en) * | 2012-07-26 | 2014-02-12 | 中兴通讯股份有限公司 | Terminal voice assistant editing method and device |
CN104267947A (en) * | 2014-09-23 | 2015-01-07 | 广州金山网络科技有限公司 | Method and device for editing popup picture |
CN106469064A (en) * | 2016-09-04 | 2017-03-01 | 深圳市云智易联科技有限公司 | Code generating method and code generating unit |
CN107590046A (en) * | 2017-09-05 | 2018-01-16 | 北京空间飞行器总体设计部 | A kind of remote sensing satellite load task command verification method and system |
CN107665111A (en) * | 2017-09-05 | 2018-02-06 | 北京空间飞行器总体设计部 | A kind of remote sensing satellite load task parametric control method and system |
CN108614692A (en) * | 2017-07-24 | 2018-10-02 | 深圳壹账通智能科技有限公司 | Edit model method, apparatus, server and medium |
-
2018
- 2018-10-17 CN CN201811209498.7A patent/CN109358848B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040133858A1 (en) * | 2003-01-02 | 2004-07-08 | Michael Barnett | Tool-based iterative document management |
US20100269096A1 (en) * | 2009-04-17 | 2010-10-21 | ArtinSoft Corporation, S.A. | Creation, generation, distribution and application of self-contained modifications to source code |
CN102281416A (en) * | 2010-06-11 | 2011-12-14 | 深圳Tcl新技术有限公司 | On-screen display (OSD) editing system, editing method and television employing system |
CN103577072A (en) * | 2012-07-26 | 2014-02-12 | 中兴通讯股份有限公司 | Terminal voice assistant editing method and device |
CN103425485A (en) * | 2013-05-18 | 2013-12-04 | 冯俊 | Interface edition and operation system and method for ordinary users |
CN104267947A (en) * | 2014-09-23 | 2015-01-07 | 广州金山网络科技有限公司 | Method and device for editing popup picture |
CN106469064A (en) * | 2016-09-04 | 2017-03-01 | 深圳市云智易联科技有限公司 | Code generating method and code generating unit |
CN108614692A (en) * | 2017-07-24 | 2018-10-02 | 深圳壹账通智能科技有限公司 | Edit model method, apparatus, server and medium |
CN107590046A (en) * | 2017-09-05 | 2018-01-16 | 北京空间飞行器总体设计部 | A kind of remote sensing satellite load task command verification method and system |
CN107665111A (en) * | 2017-09-05 | 2018-02-06 | 北京空间飞行器总体设计部 | A kind of remote sensing satellite load task parametric control method and system |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110196714A (en) * | 2019-06-04 | 2019-09-03 | 上海合桀软件技术有限公司 | A kind of conversion restoring method of original directive, storage equipment and terminal |
CN110262791A (en) * | 2019-06-05 | 2019-09-20 | 搜游网络科技(北京)有限公司 | A kind of visual programming method, apparatus and performer, readable storage medium storing program for executing |
CN110262791B (en) * | 2019-06-05 | 2023-10-10 | 北京蓝亚盒子科技有限公司 | Visual programming method and device, operator and readable storage medium |
CN110297838A (en) * | 2019-07-04 | 2019-10-01 | 珠海金山网络游戏科技有限公司 | A kind of landform material edit methods, calculate equipment and storage medium at device |
CN110297838B (en) * | 2019-07-04 | 2024-02-27 | 珠海金山数字网络科技有限公司 | Terrain material editing method, device, computing equipment and storage medium |
CN111026386A (en) * | 2019-12-23 | 2020-04-17 | 杨宏伟 | Jigsaw programmable instruction input method and system based on image recognition |
CN111694574A (en) * | 2020-06-12 | 2020-09-22 | 北京百度网讯科技有限公司 | Method, device, equipment and storage medium for instruction code processing |
CN111694574B (en) * | 2020-06-12 | 2023-11-14 | 北京百度网讯科技有限公司 | Method, device, equipment and storage medium for processing instruction codes |
CN111813411A (en) * | 2020-06-13 | 2020-10-23 | 立乐教育科技(上海)有限公司 | Python script language-based instruction method |
Also Published As
Publication number | Publication date |
---|---|
CN109358848B (en) | 2022-02-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109358848A (en) | Custom instruction edit methods, device and computer equipment | |
CN106250100B (en) | Analyzing logic control method and device | |
KR102444712B1 (en) | System for automatically re-creating a personal media with Multi-modality feature and method thereof | |
US7505951B2 (en) | Hierarchical state machine generation for interaction management using goal specifications | |
Stanciulescu et al. | A transformational approach for multimodal web user interfaces based on UsiXML | |
US6993487B2 (en) | Software code comments management method and system supporting speech recognition technology | |
US7797672B2 (en) | Statechart generation using frames | |
CN110515608A (en) | A kind of generation method and device, electronic equipment, storage medium of interface code | |
CN106293664A (en) | Code generating method and device | |
CN105185372A (en) | Training method for multiple personalized acoustic models, and voice synthesis method and voice synthesis device | |
CN101488086A (en) | Software generation method and apparatus based on field model | |
CN108090664A (en) | A kind of workflow adaptation dispatching method, device, equipment and storage medium | |
CN102426519A (en) | Linked data-based multiplexing method of business process execution language (BPEL) templates and services and system thereof | |
CN108132925A (en) | A kind of report file generation method and device | |
CN106293669A (en) | A kind of generation method and apparatus of web pages component | |
CN113838448B (en) | Speech synthesis method, device, equipment and computer readable storage medium | |
CN103793229B (en) | A kind of templating digital publishing edit methods and system | |
US20240045902A1 (en) | Method and apparatus for generating segment search data of visual work instruction for performing artificial intelligence | |
TW201025075A (en) | Method and system for generating vocal user interface code from a data meta-model | |
JP2021119401A (en) | Sound analysis device and processing method thereof, and program | |
JP5275087B2 (en) | Program generating apparatus and block diagram generating apparatus | |
CN115374764A (en) | Demand model automatic generation method and system based on user story | |
JP5341732B2 (en) | Discourse summary generation system and discourse summary generation program | |
CN110554860B (en) | Construction method and code generation method of software project natural language programming interface (NLI) | |
WO2005038647A1 (en) | User interface software design system |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |