Method, system and terminal for operating check boxes

文档序号:1391828 发布日期:2020-02-28 浏览:10次 中文

阅读说明:本技术 一种对复选框操作的方法、系统和终端 (Method, system and terminal for operating check boxes ) 是由 蒙燕玲 聂道强 侯霜 于 2018-08-02 设计创作,主要内容包括:本发明公开了一种对复选框操作的方法、系统和终端,其中,所述方法包括:识别复选框,所述复选框包括:空白框和/或打勾框;判断所述复选框的类型;当所述复选框包含空白框时,在接收复选框选择指令后,根据所述空白框的类型将空白框替换为打勾框;当所述复选框包含打勾框时,在接收复选框取消选择指令后,根据所述打勾框的类型将打勾框替换为空白框。本发明能够实现自动对复选框进行打勾或取消打勾操作,简化了用户编辑文档的复杂度。(The invention discloses a method, a system and a terminal for operating check boxes, wherein the method comprises the following steps: identifying a checkbox, the checkbox comprising: blank frames and/or hooking frames; judging the type of the check box; when the check box comprises a blank box, replacing the blank box with a check box according to the type of the blank box after receiving a check box selection instruction; and when the check box comprises a check box, after a check box canceling selection instruction is received, replacing the check box with a blank box according to the type of the check box. The invention can automatically check the check boxes or cancel the check operation, thereby simplifying the complexity of editing the document by the user.)

1. A method of operating a check box, comprising:

identifying a checkbox, the checkbox comprising: blank frames and/or hooking frames;

judging the type of the check box;

when the check box comprises a blank box, replacing the blank box with a check box according to the type of the blank box after receiving a check box selection instruction;

and when the check box comprises a check box, after a check box canceling selection instruction is received, replacing the check box with a blank box according to the type of the check box.

2. The method of operating a check box according to claim 1,

when the check box comprises a blank box, after a check box selection instruction is received, replacing the blank box with the check box according to the type of the blank box, wherein the method comprises the following steps:

when the type of the blank frame is a non-circled character or a Macrobutton domain result, confirming a hooking frame corresponding to the blank frame according to a preset corresponding relation between the blank frame and the hooking frame;

and after receiving a blank frame hooking instruction, replacing the blank frame with a hooking frame.

3. The method of operating a check box according to claim 1,

when the check box comprises a blank box, after a check box selection instruction is received, replacing the blank box with the check box according to the type of the blank box, wherein the method comprises the following steps:

and when the type of the blank frame is a circled character, increasing the hooking operation in the domain code of the blank frame after receiving the hooking instruction of the blank frame.

4. The method of operating a check box according to claim 1,

when the check box comprises a check box, after a check box canceling selection instruction is received, replacing the check box with a blank box according to the type of the check box, and the method comprises the following steps:

when the type of the check-up frame is a non-circled character or a Macrobutton domain result, confirming a blank frame corresponding to the check-up frame according to a preset corresponding relation between the blank frame and the check-up frame;

and after receiving a command for canceling the hooking of the hooked frame, replacing the hooked frame with a blank frame.

5. The method of operating a check box according to claim 1,

when the check box comprises a check box, after a check box canceling selection instruction is received, replacing the check box with a blank box according to the type of the check box, and the method comprises the following steps:

and when the type of the check-up frame is a circled character, deleting the check-up operation in the domain code of the check-up frame after receiving a check-up cancellation command for the check-up frame.

6. The method of operating a check box according to any one of claims 1 to 5, further comprising:

and when the identified check boxes comprise blank boxes and the blank boxes are judged to be interactive blank boxes, replacing the blank boxes with check boxes according to the types of the blank boxes after receiving a check box selection instruction.

7. The method according to claim 6, wherein the determining that the blank box is an interactive blank box comprises:

on the premise of filtering out hidden characters, if the same paragraph and the same line of the blank frame and the adjacent characters of the blank frame do not contain the blank frame, the same paragraph and the same line of the blank frame and the adjacent characters of the blank frame do not contain calculation symbols, and the adjacent characters of the blank frame do not contain brackets, book name numbers and quotation marks, the blank frame is an interactive blank frame.

8. An operating system for a checkbox, the system comprising:

an identification module to identify a checkbox, the checkbox comprising: blank frames and/or hooking frames;

the execution module is used for judging the type of the check box; when the check box comprises a blank box, replacing the blank box with a check box according to the type of the blank box after receiving a check box selection instruction; and when the check box comprises a check box, after a check box canceling selection instruction is received, replacing the check box with a blank box according to the type of the check box.

9. An operation terminal for a check box, the terminal comprising:

a memory for storing computer executable instructions;

a processor for executing the computer-executable instructions to implement the method of operating a checkbox of any of claims 1-7.

10. A computer-readable storage medium storing computer-executable instructions that, when executed by a processor, implement a method of operating on check boxes in accordance with any one of claims 1 to 7.

Technical Field

The present invention relates to a check box operation technology, and in particular, to a method, a system, and a terminal for operating a check box.

Background

In document writing, especially in expression selection, it is often necessary to check blank boxes, that is:

unselected state: □

Selecting the state:

Figure BDA0001752749420000011

the checkable boxes can be inserted by a method of "inserting checkbox content controls". However, this approach is not easy to implement:

1) the check box function belongs to a development tool which is not well known by a common user, and the development tool is closed by default and needs to be started first and can be operated by a person with professional skills;

2) the operation is complicated: the default checking state of the check box is the in-box crossing, and the checking state needs to be changed into the in-box crossingThe desired effect can be achieved by clicking the change button, as shown in fig. 1, to find the unusual ones among the large number of characters provided by the system

Figure BDA0001752749420000013

Characters to replace the cross symbols in the default boxes, as shown in FIG. 2.

Because the above method is obscure and not known by ordinary users, a user writing a blank box in a document often directly inputs "box" through an input method supporting "□" to obtain "□", but the box cannot perform the check/cancel check interaction. Thus, to make a hook, the user either inserts the hook symbol through a series of complicated steps

Figure BDA0001752749420000014

Alternative "□", either forego doing this on the computer and instead manually tick on the paper version document.

Disclosure of Invention

In order to solve the technical problems, the invention provides a method, a system and a terminal for operating check boxes, which can automatically check or cancel the check operation of the check boxes, and simplify the complexity of editing documents by users.

In order to achieve the object of the present invention, the present invention provides a method for operating a check box, comprising:

identifying a checkbox, the checkbox comprising: blank frames and/or hooking frames;

judging the type of the check box;

when the check box comprises a blank box, replacing the blank box with a check box according to the type of the blank box after receiving a check box selection instruction;

and when the check box comprises a check box, after a check box canceling selection instruction is received, replacing the check box with a blank box according to the type of the check box.

In one embodiment of the present invention, the substrate is,

when the check box comprises a blank box, after a check box selection instruction is received, replacing the blank box with the check box according to the type of the blank box, wherein the method comprises the following steps:

when the type of the blank frame is a non-circled character or a Macrobutton domain result, confirming a hooking frame corresponding to the blank frame according to a preset corresponding relation between the blank frame and the hooking frame;

and after receiving a blank frame hooking instruction, replacing the blank frame with a hooking frame.

In one embodiment of the present invention, the substrate is,

when the check box comprises a blank box, after a check box selection instruction is received, replacing the blank box with the check box according to the type of the blank box, wherein the method comprises the following steps:

and when the type of the blank frame is a circled character, increasing the hooking operation in the domain code of the blank frame after receiving the hooking instruction of the blank frame.

In one embodiment of the present invention, the substrate is,

when the check box comprises a check box, after a check box canceling selection instruction is received, replacing the check box with a blank box according to the type of the check box, and the method comprises the following steps:

when the type of the check-up frame is a non-circled character or a Macrobutton domain result, confirming a blank frame corresponding to the check-up frame according to a preset corresponding relation between the blank frame and the check-up frame;

and after receiving a command for canceling the hooking of the hooked frame, replacing the hooked frame with a blank frame.

In one embodiment of the present invention, the substrate is,

when the check box comprises a check box, after a check box canceling selection instruction is received, replacing the check box with a blank box according to the type of the check box, and the method comprises the following steps:

and when the type of the check-up frame is a circled character, deleting the check-up operation in the domain code of the check-up frame after receiving a check-up cancellation command for the check-up frame.

In an embodiment, the method further comprises:

and when the identified check boxes comprise blank boxes and the blank boxes are judged to be interactive blank boxes, replacing the blank boxes with check boxes according to the types of the blank boxes after receiving a check box selection instruction.

In one embodiment of the present invention, the substrate is,

the judging the blank frame is an interactive blank frame, including:

on the premise of filtering out hidden characters, if the same paragraph and the same line of the blank frame and the adjacent characters of the blank frame do not contain the blank frame, the same paragraph and the same line of the blank frame and the adjacent characters of the blank frame do not contain calculation symbols, and the adjacent characters of the blank frame do not contain brackets, book name numbers and quotation marks, the blank frame is an interactive blank frame.

The present invention also provides an operating system for a check box, the system comprising:

an identification module to identify a checkbox, the checkbox comprising: blank frames and/or hooking frames;

the execution module is used for judging the type of the check box; when the check box comprises a blank box, replacing the blank box with a check box according to the type of the blank box after receiving a check box selection instruction; and when the check box comprises a check box, after a check box canceling selection instruction is received, replacing the check box with a blank box according to the type of the check box.

The present invention also provides an operation terminal for a check box, the terminal comprising:

a memory for storing computer executable instructions;

a processor for executing the computer-executable instructions to implement the method of operating on check boxes as described above.

The present invention also provides a computer-readable storage medium having stored thereon computer-executable instructions that, when executed by a processor, implement a method of operating on check boxes as described above.

Compared with the prior art, the invention comprises the following steps: identifying a checkbox, the checkbox comprising: blank frames and/or hooking frames; judging the type of the check box; when the check box comprises a blank box, replacing the blank box with a check box according to the type of the blank box after receiving a check box selection instruction; and when the check box comprises a check box, after a check box canceling selection instruction is received, replacing the check box with a blank box according to the type of the check box. The embodiment of the invention can automatically check the check boxes or cancel the check operation, thereby simplifying the complexity of editing the document by the user.

Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.

Drawings

The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the example serve to explain the principles of the invention and not to limit the invention.

FIG. 1 is a diagram illustrating modification of an attribute of a content control performed by a conventional hooking operation on a blank frame;

FIG. 2 is a diagram of a conventional search

Figure BDA0001752749420000041

A schematic of a character;

FIG. 3 is a flowchart of a method for operating a check box according to an embodiment of the present invention;

FIG. 4 is a table showing the correspondence between the blank frame and the check frame according to the embodiment of the present invention;

FIGS. 5 to 7 are symbol tables showing application examples of the present invention;

FIG. 8 is a flowchart of a method for operating check boxes according to an exemplary embodiment of the present invention;

FIG. 9 is a block diagram of a system for operating on check boxes in accordance with an embodiment of the present invention.

Detailed Description

In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.

The steps illustrated in the flow charts of the figures may be performed in a computer system such as a set of computer-executable instructions. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.

An embodiment of the present invention provides a method for operating a check box, as shown in fig. 3, the method includes:

s301, identifying a check box;

the check box includes: blank frame "□" and/or tick frame

S302, judging the type of the check box;

s303, when the check box comprises a blank box, replacing the blank box with a check box according to the type of the blank box after receiving a check box selection instruction; when the check box comprises a check box, after a check box canceling selection instruction is received, replacing the check box with a blank box according to the type of the check box;

the check box selection instruction and the check box deselection instruction can be issued by clicking (single-clicking or double-clicking) the check box.

In an alternative implementation of the embodiment of the invention,

when the check box comprises a blank box, after a check box selection instruction is received, replacing the blank box with the check box according to the type of the blank box, wherein the method comprises the following steps:

when the type of the blank frame is a non-circled character or a Macrobutton domain result, confirming a hooking frame corresponding to the blank frame according to a preset corresponding relation between the blank frame and the hooking frame;

and after receiving a blank frame hooking instruction, replacing the blank frame with a hooking frame.

When the type of the blank frame is a circled character, after a blank frame hooking instruction is received, adding hooking operation in the domain code of the blank frame, for example, adding a symbol hook in the domain code of the blank frame.

When the check box comprises a check box, after a check box canceling selection instruction is received, replacing the check box with a blank box according to the type of the check box, and the method comprises the following steps:

when the type of the check-up frame is a non-circled character or a Macrobutton domain result, confirming a blank frame corresponding to the check-up frame according to a preset corresponding relation between the blank frame and the check-up frame;

and after receiving a command for canceling the hooking of the hooked frame, replacing the hooked frame with a blank frame.

And when the type of the check-up frame is a circled character, deleting check-up operation in the domain code of the check-up frame after receiving a check-up cancellation command for the check-up frame, and if so, deleting a symbol check-up in the domain code of the check-up frame.

The corresponding relationship between the blank frame and the check frame can be seen in fig. 4. Fig. 4 shows the codes, fonts, and the corresponding relationships of various blank frames and checked frames, and the embodiment of the present invention can identify various blank frames and checked frames. It should be noted that the corresponding relationship between the blank frame and the check frame is not limited to that shown in fig. 4, and may be modified and expanded according to actual needs.

In an optional implementation manner of the embodiment of the present invention, the method further includes:

when the check box identified in the step S301 includes a blank box, it is first determined whether the blank box is an interactive blank box, and after the blank box is determined to be an interactive blank box, if a check box selection instruction is received, the blank box is replaced with a check box according to the type of the blank box.

The above-mentioned judgement the blank frame is interactive blank frame, includes:

on the premise of filtering out hidden characters, if the same paragraph and the same line of the blank frame and the adjacent characters of the blank frame do not contain the blank frame, the same paragraph and the same line of the blank frame and the adjacent characters of the blank frame do not contain calculation symbols, and the adjacent characters of the blank frame do not contain brackets, book name numbers and quotation marks, the blank frame is an interactive blank frame.

The embodiment of the invention can automatically check the check boxes or cancel the check operation, thereby simplifying the complexity of editing the document by the user.

The following describes an embodiment of the present invention with a specific application example, as shown in fig. 8.

Step 1, a cursor stays on a check box, and the check box is identified;

step 2, when the check box is identified as a blank box "□", filtering all hidden characters, judging whether the same paragraph, the same line and the adjacent characters behind the blank box of the blank box "□" contain the characters listed as the "rear characters" in fig. 5, or judging whether the same paragraph, the same line and the adjacent characters ahead of the blank box "□" contain the characters listed as the "front characters" in fig. 5, if so, executing step 3; if not, executing step 4;

step 3, the blank frame is described to be an non-interactive blank frame, the blank frame does not need to be subjected to hooking operation, and the process is ended;

step 4, continuously judging whether the same paragraph, the same line and the adjacent characters of the blank frame "□" contain a "half-angle space" or "tab", if so, executing step 5; if not, executing step 6;

step 5, filtering the half-angle blank spaces and the tab, and executing step 6;

step 6, judging whether the adjacent characters of the same paragraph, the same line and the blank frame of the blank frame "□" contain the expression or symbol shown in fig. 6, if yes, executing step 7; if not, executing step 8;

step 7, the blank frame is described to be an non-interactive blank frame, the blank frame does not need to be subjected to hooking operation, and the process is ended;

step 8, judging whether the adjacent characters of the blank box "□" contain the paired characters (parentheses, title number and quotation marks) shown in fig. 7, if yes, executing step 9; if not, executing step 10;

step 9, the blank frame is described to be an non-interactive blank frame, the blank frame does not need to be subjected to hooking operation, and the process is ended;

step 10, the blank frame is an interactive blank frame, and when the blank frame is a non-circled character or a macro button field result, step 11 is executed; when the blank frame is a circled character, executing step 12;

step 11, confirming a hooking frame corresponding to a blank frame according to the corresponding relation between the preset blank frame and the hooking frame shown in fig. 4; after receiving a blank frame hooking instruction sent by clicking a blank frame by a user, replacing the blank frame '□' with a hooked frame

Figure BDA0001752749420000081

The flow is finished;

in a step 12, the method further comprises the steps of,after a blank frame hooking instruction sent by clicking a blank frame by a user is received, hooking operation is added to a domain code of the blank frame to realize

Figure BDA0001752749420000082

The process is ended;

step 13, when the check box is identified as a check box

Figure BDA0001752749420000083

When the check box is a non-circled character or a macro button field result, executing step 14; when the hooking frame is a character with a circle, executing the step 15;

step 14, confirming a blank frame corresponding to the check frame according to the preset corresponding relation between the blank frame and the check frame shown in fig. 4; after receiving a command of canceling the check-up of the check-up frame sent by a user clicking the check-up frame, the check-up frame is used

Figure BDA0001752749420000084

Replacing the blank frame with a blank frame '□', and ending the process;

and step 15, after receiving a command of canceling the hooking of the hooked frame, which is sent by clicking the hooked frame by the user, deleting the hooking operation in the domain code of the hooked frame, realizing the effect of '□', and ending the process.

According to the application example, the method and the device are suitable for common users, the user can change the check state of the square frame by directly clicking, and the simplicity of check interaction of the square frame during document editing is improved.

An embodiment of the present invention further provides a block diagram of a system for operating a check box, as shown in fig. 9, where the system includes:

an identification module to identify a checkbox, the checkbox comprising: blank frames and/or hooking frames;

the execution module is used for judging the type of the check box; when the check box comprises a blank box, replacing the blank box with a check box according to the type of the blank box after receiving a check box selection instruction; and when the check box comprises a check box, after a check box canceling selection instruction is received, replacing the check box with a blank box according to the type of the check box.

In an optional implementation manner of the embodiment of the present invention, when the check box includes a blank box, after receiving a check box selection instruction, replacing the blank box with a check box according to a type of the blank box, including:

when the type of the blank frame is a non-circled character or a Macrobutton domain result, confirming a hooking frame corresponding to the blank frame according to a preset corresponding relation between the blank frame and the hooking frame; and after receiving a blank frame hooking instruction, replacing the blank frame with a hooking frame.

When the type of the blank frame is a circled character, after a blank frame hooking instruction is received, adding hooking operation in the domain code of the blank frame, for example, adding a symbol hook in the domain code of the blank frame.

In an optional implementation manner of the embodiment of the present invention, when the check box includes a check box, after receiving a check box deselection instruction, replacing the check box with a blank box according to a type of the check box, including:

when the type of the check-up frame is a non-circled character or a Macrobutton domain result, confirming a blank frame corresponding to the check-up frame according to a preset corresponding relation between the blank frame and the check-up frame; and after receiving a command for canceling the hooking of the hooked frame, replacing the hooked frame with a blank frame.

And when the type of the check-up frame is a circled character, deleting check-up operation in the domain code of the check-up frame after receiving a check-up cancellation command for the check-up frame, and if so, deleting a symbol check-up in the domain code of the check-up frame.

The corresponding relationship between the blank frame and the check frame can be seen in fig. 4. Fig. 4 shows the codes, fonts, and the corresponding relationships of various blank frames and checked frames, and the embodiment of the present invention can identify various blank frames and checked frames. It should be noted that the corresponding relationship between the blank frame and the check frame is not limited to that shown in fig. 4, and may be modified and expanded according to actual needs.

In an optional implementation manner of the embodiment of the present invention, the execution module is further configured to, when the identified check box includes a blank box, determine whether the blank box is an interactive blank box, and after the blank box is determined to be the interactive blank box, replace the blank box with the check box according to a type of the blank box if a check box selection instruction is received.

The above-mentioned execution module, judge the blank frame is interactive blank frame, include:

on the premise of filtering out hidden characters, if the same paragraph and the same line of the blank frame and the adjacent characters of the blank frame do not contain the blank frame, the same paragraph and the same line of the blank frame and the adjacent characters of the blank frame do not contain calculation symbols, and the adjacent characters of the blank frame do not contain brackets, book name numbers and quotation marks, the blank frame is an interactive blank frame.

The embodiment of the invention can automatically check the check boxes or cancel the check operation, thereby simplifying the complexity of editing the document by the user.

The embodiment of the invention also provides an operation terminal for the check box, which comprises:

a memory for storing computer executable instructions;

a processor for executing the computer-executable instructions to implement the method for operating the check box according to the above embodiment.

Embodiments of the present invention further provide a computer-readable storage medium, where the medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the method for operating a check box according to the above embodiments is implemented.

It will be understood by those of ordinary skill in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.

16页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:基于点阵纸笔的生产数据采集方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!