CN101286118A - A method and system for quickly calling program instructions and an input method system - Google Patents

A method and system for quickly calling program instructions and an input method system Download PDF

Info

Publication number
CN101286118A
CN101286118A CNA2007100958472A CN200710095847A CN101286118A CN 101286118 A CN101286118 A CN 101286118A CN A2007100958472 A CNA2007100958472 A CN A2007100958472A CN 200710095847 A CN200710095847 A CN 200710095847A CN 101286118 A CN101286118 A CN 101286118A
Authority
CN
China
Prior art keywords
information
instruction
user
calling
mapping table
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
Application number
CNA2007100958472A
Other languages
Chinese (zh)
Other versions
CN101286118B (en
Inventor
杨磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sogou Technology Development Co Ltd
Original Assignee
Beijing Sogou Technology Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sogou Technology Development Co Ltd filed Critical Beijing Sogou Technology Development Co Ltd
Priority to CN2007100958472A priority Critical patent/CN101286118B/en
Priority to PCT/CN2008/070678 priority patent/WO2008122243A1/en
Publication of CN101286118A publication Critical patent/CN101286118A/en
Application granted granted Critical
Publication of CN101286118B publication Critical patent/CN101286118B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Input From Keyboards Or The Like (AREA)

Abstract

本发明提供了一种快速调用程序指令的方法,包括:接收用户输入的编码字符串;在预置的映射表中,根据所述编码字符串或者所述编码字符串变换后的内容查询触发条件;如果存在符合匹配的记录,则启动指令触发接口,并展现相关信息;接收用户的触发信息,获得相应的指令调用信息;发送所述指令调用信息至相应接口,实现相应程序指令的调用。由于本申请文件所公开的技术方案基于键盘输入,不必在屏幕中寻找指令入口,可以避免菜单、按钮、图标等基于图形界面的定位手段效率低下的问题;其次,本申请文件所公开的技术方案可以同时支持操作系统指令和应用程序指令,从而可以统一计算机程序指令的入口,提高指令调用的效率。

Figure 200710095847

The present invention provides a method for quickly invoking program instructions, comprising: receiving a coded character string input by a user; in a preset mapping table, querying a trigger condition according to the coded character string or the converted content of the coded character string ; If there is a matching record, start the instruction trigger interface and display relevant information; receive the trigger information from the user to obtain the corresponding instruction call information; send the instruction call information to the corresponding interface to realize the call of the corresponding program instruction. Since the technical solution disclosed in this application document is based on keyboard input, there is no need to search for command entries in the screen, which can avoid the problem of low efficiency of positioning means based on graphical interfaces such as menus, buttons, and icons; secondly, the technical solution disclosed in this application document It can support operating system instructions and application program instructions at the same time, so that the entrance of computer program instructions can be unified, and the efficiency of instruction calling can be improved.

Figure 200710095847

Description

一种快速调用程序指令的方法、系统及一种输入法系统 A method and system for quickly calling program instructions and an input method system

技术领域 technical field

本发明涉及计算机数据处理领域,特别是涉及一种快速调用计算机程序指令的方法、系统,以及一种兼顾字符输入和快速调用程序指令的方法、一种输入法系统。The invention relates to the field of computer data processing, in particular to a method and a system for rapidly calling computer program instructions, a method for both character input and fast calling of program instructions, and an input method system.

背景技术 Background technique

计算机程序指令是指:在特定的计算机操作系统环境下,用于实现特定目的或者完成特定数据处理功能的可执行对象。计算机程序指令包括操作系统具有的系统指令或者应用程序具有的功能指令等,其表现形式可以是可执行程序、代码集合或者脚本等等。例如:Windows自带的计算器程序;一段用来调整计算机音箱音量的代码;一段JavaScript脚本,用于通知浏览器打开指定页面;在文字处理程序中启动上下标输入的应用程序指令等。Computer program instructions refer to executable objects used to achieve specific purposes or complete specific data processing functions under a specific computer operating system environment. Computer program instructions include system instructions of the operating system or functional instructions of application programs, etc., and their manifestations may be executable programs, code collections, scripts, and the like. For example: the built-in calculator program of Windows; a piece of code used to adjust the volume of computer speakers; a piece of JavaScript script used to notify the browser to open a specified page; an application command to start subscript input in a word processing program, etc.

当前技术下,用户调用这些计算机程序指令,用于完成指定操作或者功能的时候,一般可以采用如下的几种方式:Under the current technology, when users call these computer program instructions to complete specified operations or functions, they can generally use the following methods:

(1)菜单、按钮或者图标模式(1) Menu, button or icon mode

通常都是在图形界面(或者字符模拟的图形界面)上,通过鼠标点选实现(鼠标拖放应当视为一种衍生的图标操作)。当然也可以支持键盘,但需要通过方向键、Tab键等首先定位功能入口(对应的菜单项、按钮或者图标)。用户在操作过程中需要首先找到相应命令入口(菜单项、按钮、图标)在屏幕中的位置,然后通过鼠标或者键盘(方向键)将光标(鼠标箭头)移动到操作对象上并进行操作(鼠标双击或者按回车键)。例如,Windows任务栏中“开始”菜单提供了大多数常用程序的启动入口。又如,通过双击Windows桌面上图标来启动对应的程序。Usually it is implemented on a graphical interface (or a graphical interface for character simulation) by clicking with the mouse (drag and drop with the mouse should be regarded as a derived icon operation). Of course, the keyboard can also be supported, but the function entry (corresponding menu item, button or icon) needs to be located first through the direction key, Tab key, etc. During the operation, the user needs to first find the position of the corresponding command entry (menu item, button, icon) on the screen, and then use the mouse or keyboard (direction keys) to move the cursor (mouse arrow) to the operation object and perform the operation (mouse double-click or press Enter). For example, the "Start" menu in the Windows taskbar provides the startup entry for most commonly used programs. Another example is to start the corresponding program by double-clicking the icon on the Windows desktop.

虽然该方法直观易用,但是由于它是基于图形界面的定位而实现的,用户必须移动视线找到对应命令入口在屏幕中的位置(通常还需要窗口的切换),即使对于熟练用户也很难获得高效率;例如,如果用户正在输入文字,思路就会被打断。另外,由于图形显示区域有限,复杂功能通常需要逐级确认(如多层菜单),进一步降低了使用效率,例如,Word软件中的很多功能图标,一般用户都难以找到。Although this method is intuitive and easy to use, because it is implemented based on the positioning of the graphical interface, the user must move his sight to find the position of the corresponding command entry on the screen (usually requiring window switching), which is difficult even for skilled users. Efficiency; for example, if the user is typing text, the train of thought will be interrupted. In addition, due to the limited graphic display area, complex functions usually need to be confirmed step by step (such as multi-level menus), which further reduces the efficiency of use. For example, many function icons in Word software are difficult for ordinary users to find.

(2)命令行模式(2) Command line mode

在这种模式下,用户在指定的输入框中输入指令调用信息,系统查找相匹配的指令并运行。所述指令调用信息可以包括指令名称或者指令参数等,如,在Windows中的可执行程序文件的文件名,或者,URL等等。举例来说,在操作系统命令行中键入calc然后回车便可以启动计算器程序calc.exe。In this mode, the user inputs instruction call information in the designated input box, and the system searches for matching instructions and executes them. The instruction invoking information may include an instruction name or an instruction parameter, for example, a file name of an executable program file in Windows, or a URL, and the like. For example, typing calc in the command line of the operating system and pressing Enter can start the calculator program calc.exe.

该方式可以获得较高的效率,但存在以下的缺陷:用户需要首先启动命令行(可以通过菜单、快捷键等方式实现),如果用户正在输入文字,启动命令行这一操作往往会干扰用户的正常思路。其次,用户需要知悉指令调用信息,对于数量众多的计算机程序指令而言,虽然指令调用信息和具体指令之间具有一定的联系,但是必然会带来沉重的记忆负担。This method can obtain higher efficiency, but there are the following defects: the user needs to first start the command line (which can be realized through the menu, shortcut keys, etc.), if the user is inputting text, the operation of starting the command line will often interfere with the user's Normal thinking. Secondly, the user needs to know the instruction call information. For a large number of computer program instructions, although there is a certain connection between the instruction call information and the specific instruction, it will inevitably bring a heavy memory burden.

(3)快捷键模式(3) Shortcut key mode

该方式是指通过指定的按键或者按键组合来调用程序指令,可以提高效率。为了不干扰正常的键盘输入,快捷键一般需要避开常用按键(组合)。一般可以有两种情况:This method refers to invoking program instructions through specified keys or key combinations, which can improve efficiency. In order not to interfere with normal keyboard input, shortcut keys generally need to avoid commonly used keys (combinations). Generally, there are two situations:

软快捷键。一般通过标准键盘上的功能键或者组合键实现。例如在Windows桌面上按F3功能键或者Win_F组合键启动文件检索功能。对于通过功能键或者组合键实现的快捷键,键位与被调用指令所实现的功能之间的语义联系非常弱。在这种情况下,用户要记住大量快捷键键位是非常困难的。Soft shortcuts. It is generally realized through the function keys or combination keys on the standard keyboard. For example, press the F3 function key or the Win_F key combination on the Windows desktop to start the file retrieval function. For the shortcut keys implemented by function keys or key combinations, the semantic link between the key position and the function realized by the called instruction is very weak. In this case, it is very difficult for the user to remember a large number of shortcut keys.

硬快捷键。在标准键之外增加专用按键,目前市场上可以看到一些键盘,专门增加了用于启动浏览器、电子邮件程序的特殊键位。但是,硬快捷键需要硬件支持,无法做到通用;同时限于键盘尺寸,不可能有太多硬快捷键供用户使用。操作系统中只有少数极其常用的指令,例如收发电子邮件、启动因特网浏览器等功能才会得到部分硬件商的支持。Hard shortcut keys. In addition to the standard keys, special keys are added. At present, some keyboards can be seen on the market, and special keys for starting browsers and e-mail programs are specially added. However, hard shortcut keys require hardware support and cannot be used universally; at the same time, limited to the size of the keyboard, it is impossible to have too many hard shortcut keys for users to use. Only a few extremely commonly used instructions in the operating system, such as functions such as sending and receiving e-mails and starting Internet browsers, are supported by some hardware manufacturers.

综上所述,迫切需要本领域技术人员解决的一个技术问题是:提出一种简单方便的快速调用计算机程序指令的方法,在不增加用户记忆负担和操作步骤的情况下快速调用计算机程序指令,实现指定功能。In summary, a technical problem that urgently needs to be solved by those skilled in the art is: to propose a simple and convenient method for quickly calling computer program instructions, which can quickly call computer program instructions without increasing the user's memory burden and operating steps. Realize the specified function.

发明内容 Contents of the invention

本发明所要解决的技术问题是提供一种快速调用程序指令的方法和系统,能够简单方便的快速调用用户所需的程序指令。The technical problem to be solved by the present invention is to provide a method and system for quickly calling program instructions, which can simply and conveniently quickly call the program instructions required by users.

本发明的另一个目的在于,提供一种兼顾字符输入和快速调用程序指令的方法,以及一种输入法系统,能够在不影响用户输入效率和体验的情况下,简单方便的快速调用用户所需的程序指令。Another object of the present invention is to provide a method for both character input and quick calling of program instructions, and an input method system that can quickly and easily call the user's required commands without affecting the user's input efficiency and experience. program instructions.

为了解决上述问题,一方面,根据本发明的实施例,公开了一种快速调用程序指令的方法,包括:接收用户输入的编码字符串;在预置的映射表中,根据所述编码字符串或者所述编码字符串变换后的内容查询触发条件;如果存在符合匹配的记录,则启动指令触发接口,并展现相关信息;接收用户的触发信息,获得相应的指令调用信息;发送所述指令调用信息至相应接口,实现相应程序指令的调用。In order to solve the above problems, on the one hand, according to an embodiment of the present invention, a method for quickly invoking program instructions is disclosed, including: receiving a coded character string input by a user; in a preset mapping table, according to the coded character string Or the content query trigger condition after the encoded string is converted; if there is a matching record, start the command trigger interface and display relevant information; receive the trigger information from the user, and obtain the corresponding command call information; send the command call Information to the corresponding interface to realize the call of the corresponding program instruction.

其中,所述预置的映射表中存储有触发条件与所述指令调用信息的对应关系。或者,所述预置的映射表中存储有触发条件与中间命令的对应关系;所述中间命令与所需的指令调用信息相关联;通过以下步骤获得相应的指令调用信息:根据匹配情况,得到相应的中间命令;根据预置规则对该中间命令进行解析,得到相应的指令调用信息。Wherein, the preset mapping table stores the corresponding relationship between the trigger condition and the instruction calling information. Alternatively, the preset mapping table stores the corresponding relationship between the trigger condition and the intermediate command; the intermediate command is associated with the required instruction call information; the corresponding instruction call information is obtained through the following steps: according to the matching situation, get The corresponding intermediate command; the intermediate command is analyzed according to the preset rules to obtain the corresponding instruction call information.

优选的,所述的方法实施例还可以包括:从所述编码字符串或其变换内容在所述预置映射表中匹配后的剩余字符中,确定调用参数;所获得的指令调用信息中包含所述调用参数。Preferably, the method embodiment may further include: determining the calling parameters from the remaining characters after the encoded character string or its transformed content is matched in the preset mapping table; the obtained instruction calling information includes The call parameters.

其中,所述变换可以为:将所述编码字符串解码为拼音;或者,将所述编码字符串转换为候选字词。Wherein, the transformation may be: decoding the coded character string into pinyin; or converting the coded character string into candidate words.

进一步,所述相关信息可以为所需调用的程序指令的注释信息。所述匹配可以为精确匹配或者模糊匹配。Further, the relevant information may be comment information of program instructions to be called. The matching can be exact matching or fuzzy matching.

优选的,所述的方法实施例还可以包括:记录用户对程序指令的调用频率信息;根据该调用频率信息对所述预置的映射表中多个符合匹配的记录进行排序;该排序结果用于确定所展现的相关信息的顺序。Preferably, the method embodiment may further include: recording the calling frequency information of the program instruction by the user; sorting a plurality of matching records in the preset mapping table according to the calling frequency information; using the sorting result to to determine the order in which related information is presented.

根据本发明的另一个实施例,还公开了一种程序指令的快速调用系统,包括:According to another embodiment of the present invention, a fast call system for program instructions is also disclosed, including:

接口单元,用于接收用户输入的编码字符串;an interface unit, configured to receive a coded character string input by a user;

匹配查询单元,用于在预置的映射表中,根据所述编码字符串或者所述编码字符串变换后的内容查询触发条件;A matching query unit, configured to query trigger conditions in a preset mapping table according to the coded string or the converted content of the coded string;

相关信息展现单元,用于当所述预置的映射表中存在符合匹配的记录时,启动指令触发接口,并展现相关信息;A related information display unit, configured to start an instruction to trigger an interface and display related information when there is a matching record in the preset mapping table;

获取单元,用于当接收到用户的触发信息时,获得相应的指令调用信息;An acquisition unit, configured to acquire corresponding instruction invocation information when trigger information from the user is received;

发送单元,用于发送所述指令调用信息至相应接口,实现相应程序指令的调用。The sending unit is configured to send the instruction call information to a corresponding interface, so as to realize the call of the corresponding program instruction.

其中,所述预置的映射表中存储有触发条件与所述指令调用信息的对应关系,所述获取单元通过匹配查询获得相应的指令调用信息。或者,所述预置的映射表中存储有触发条件与中间命令的对应关系;所述中间命令与所需的指令调用信息相关联;则所述获取单元可以包括:中间命令获取子单元,用于根据匹配情况,得到相应的中间命令;解析子单元,用于根据预置规则对该中间命令进行解析,得到相应的指令调用信息。Wherein, the preset mapping table stores the corresponding relationship between the trigger condition and the instruction invocation information, and the acquisition unit obtains the corresponding instruction invocation information through matching query. Or, the corresponding relationship between trigger conditions and intermediate commands is stored in the preset mapping table; the intermediate commands are associated with the required instruction call information; then the acquisition unit may include: an intermediate command acquisition subunit, used According to the matching situation, the corresponding intermediate command is obtained; the parsing subunit is used to analyze the intermediate command according to the preset rules, and obtain the corresponding instruction calling information.

优选的,所述的系统实施例还可以包括:参数确定单元,用于从所述编码字符串或其变换内容在所述预置映射表中匹配后的剩余字符中,确定调用参数,并传送至所述获取单元;所获得的指令调用信息中包含该调用参数。Preferably, the system embodiment may further include: a parameter determining unit, configured to determine the call parameter from the remaining characters after the encoded character string or its converted content is matched in the preset mapping table, and transmit to the obtaining unit; the obtained instruction call information includes the call parameter.

进一步,所述编码字符串变换后的内容可以为:拼音串,或者候选字词。Further, the converted content of the coded string may be: a pinyin string, or a candidate word.

优选的,所述的系统实施例还可以包括:指令调频单元,用于记录用户对程序指令的调用频率信息;以及,根据该调用频率信息对所述预置的映射表中多个符合匹配的记录进行排序;该排序结果用于确定所展现的相关信息的顺序。Preferably, the system embodiment may further include: an instruction frequency modulation unit, configured to record the calling frequency information of the program instructions by the user; Records are sorted; this sort is used to determine the order in which related information is presented.

根据本发明的另一实施例,还公开了一种兼顾字符输入和快速调用程序指令的方法,包括:接收用户输入的编码字符串;根据预置规则,将所述编码字符串转换为候选项;以及,在预置的映射表中,根据所述编码字符串或者所述编码字符串变换后的内容查询触发条件;展现所述候选项;以及,当在预置的映射表中存在符合匹配的记录时,启动指令触发接口,并展现相关信息;如果接收到用户的第一触发信息,则获得相应的指令调用信息,并发送所述指令调用信息至相应接口,实现相应程序指令的调用;如果接收到用户的第二触发信息,则将用户确定的候选项上屏输出。According to another embodiment of the present invention, a method for both character input and quick calling of program instructions is disclosed, including: receiving a coded string input by a user; converting the coded string into a candidate according to a preset rule ; and, in the preset mapping table, query the trigger condition according to the coded string or the converted content of the coded string; display the candidate; and, when there is a match in the preset mapping table When recording, start the instruction trigger interface and display relevant information; if the first trigger information from the user is received, obtain the corresponding instruction call information, and send the instruction call information to the corresponding interface to realize the call of the corresponding program instruction; If the user's second trigger information is received, the candidate items determined by the user are output on the screen.

优选的,所述对编码字符串进行变换的过程合并在将所述编码字符串转换为候选项的过程中。Preferably, the process of transforming the coded string is incorporated in the process of converting the coded string into candidates.

进一步,所述将编码字符串转换为候选项的过程包括:将用户输入的编码字符串转换为解码内容;以及,将所述解码内容转换为候选项;所述编码字符串变换后的内容为解码内容。或者,所述编码字符串变换后的内容为候选项。Further, the process of converting the coded string into a candidate includes: converting the coded string input by the user into a decoded content; and converting the decoded content into a candidate; the converted content of the coded string is Decode the content. Alternatively, the converted content of the coded string is a candidate.

其中,所述预置的映射表中存储有触发条件与所述指令调用信息的对应关系。或者,所述预置的映射表中存储有触发条件与中间命令的对应关系;所述中间命令与所需的指令调用信息相关联;通过以下步骤获得相应的指令调用信息:根据匹配情况,得到相应的中间命令;根据预置规则对该中间命令进行解析,得到相应的指令调用信息。Wherein, the preset mapping table stores the corresponding relationship between the trigger condition and the instruction calling information. Alternatively, the preset mapping table stores the corresponding relationship between the trigger condition and the intermediate command; the intermediate command is associated with the required instruction call information; the corresponding instruction call information is obtained through the following steps: according to the matching situation, get The corresponding intermediate command; the intermediate command is analyzed according to the preset rules to obtain the corresponding instruction call information.

优选的,所述的方法实施例还可以包括:从所述编码字符串或其变换内容在所述预置映射表中匹配后的剩余字符中,确定调用参数;所获得的指令调用信息中包含所述调用参数。Preferably, the method embodiment may further include: determining the calling parameters from the remaining characters after the encoded character string or its transformed content is matched in the preset mapping table; the obtained instruction calling information includes The call parameters.

优选的,所述相关信息为所需调用的程序指令的注释信息。Preferably, the relevant information is comment information of program instructions to be called.

优选的,所述相关信息的展现方式为:独立于候选项之外进行展现;或者,在候选项上附加所述相关信息。进一步,所附加方式为在所述候选项上增加超链接。Preferably, the relevant information is presented in the following manner: displaying independently of the candidate items; or, adding the relevant information to the candidate items. Further, the added method is to add a hyperlink on the candidate item.

优选的,所述的方法实施例还可以包括:接收所述被调用的程序指令的结果信息,并作为候选项展现;接收用户的选择信息,并将所选择的结果信息上屏输出。Preferably, the method embodiment may further include: receiving the result information of the invoked program instruction, and presenting it as an option; receiving user selection information, and outputting the selected result information on the screen.

本发明的实施例还公开了一种输入法系统,包括:The embodiment of the present invention also discloses an input method system, comprising:

编码接收模块,用于接收用户输入的编码字符串;An encoding receiving module, configured to receive an encoded character string input by a user;

候选项转换模块,用于根据预置规则,将所述编码字符串转换为候选项;a candidate conversion module, configured to convert the encoded character string into a candidate according to preset rules;

匹配查询模块,用于在预置的映射表中,根据所述编码字符串或者所述编码字符串变换后的内容查询触发条件;A matching query module, configured to query trigger conditions in a preset mapping table according to the coded string or the converted content of the coded string;

展现模块,用于展现所述候选项;以及,当在预置的映射表中存在符合匹配的记录时,启动指令触发接口,并展现相关信息;A display module, configured to display the candidates; and, when there is a matching record in the preset mapping table, start an instruction to trigger the interface, and display relevant information;

指令调用模块,用于当接收到用户的第一触发信息时,获得相应的指令调用信息,并发送所述指令调用信息至相应接口,实现相应程序指令的调用;The command calling module is used to obtain the corresponding command calling information when receiving the user's first trigger information, and send the command calling information to the corresponding interface, so as to realize the calling of the corresponding program command;

上屏输出模块,用于当接收到用户的第二触发信息时,将用户确定的候选项上屏输出。The on-screen output module is configured to output the candidate items determined by the user on the screen when receiving the second trigger information from the user.

优选的,所述候选项转换模块可以包括:编码转换子模块,用于将用户输入的编码字符串转换为解码内容;解码子模块,用于将所述解码内容转换为候选项;所述编码字符串变换后的内容为解码内容。Preferably, the candidate item conversion module may include: an encoding conversion submodule, configured to convert the encoded character string input by the user into decoded content; a decoding submodule, configured to convert the decoded content into a candidate item; the encoding The converted content of the string is the decoded content.

优选的,所述编码字符串变换后的内容为候选项。Preferably, the converted content of the coded string is a candidate.

优选的,所述预置的映射表中存储有触发条件与所述指令调用信息的对应关系。或者,所述预置的映射表中存储有触发条件与中间命令的对应关系;所述中间命令与所需的指令调用信息相关联;则所述指令调用模块可以包括:中间命令获取子模块,用于根据匹配情况,得到相应的中间命令;解析子模块,用于根据预置规则对该中间命令进行解析,得到相应的指令调用信息。Preferably, the preset mapping table stores the corresponding relationship between trigger conditions and the instruction calling information. Alternatively, the preset mapping table stores the corresponding relationship between the trigger condition and the intermediate command; the intermediate command is associated with the required instruction call information; then the instruction call module may include: an intermediate command acquisition submodule, It is used to obtain the corresponding intermediate command according to the matching situation; the parsing sub-module is used to analyze the intermediate command according to the preset rules, and obtain the corresponding instruction call information.

优选的,所述的系统实施例还可以包括:参数确定模块,用于从所述编码字符串或变换后的内容在所述预置映射表中匹配后的剩余字符中,确定调用参数,并发送至指令调用模块;所获得的指令调用信息中包含所述调用参数。Preferably, the system embodiment may further include: a parameter determination module, configured to determine the calling parameters from the remaining characters after the encoded character string or the converted content is matched in the preset mapping table, and sent to the instruction calling module; the obtained instruction calling information includes the calling parameters.

进一步,所述相关信息的展现方式可以为:独立于候选项之外进行展现;或者,在候选项上附加所述相关信息。其中,所附加方式可以为在所述候选项上增加超链接。Further, the relevant information may be presented in the following manner: displaying independently of the candidate items; or, adding the relevant information to the candidate items. Wherein, the added method may be adding a hyperlink on the candidate item.

根据本发明的另一实施例,还公开了一种输入法系统,包括:According to another embodiment of the present invention, an input method system is also disclosed, including:

编码接收模块,用于接收用户输入的编码字符串;An encoding receiving module, configured to receive an encoded character string input by a user;

候选项转换模块,用于根据预置规则,将所述编码字符串转换为候选项;a candidate conversion module, configured to convert the encoded character string into a candidate according to preset rules;

展现模块,用于展现所述候选项;a presentation module, configured to present the candidates;

输出模块,用于当接收到用户的触发信息时,将用户确定的候选项传送至匹配查询模块;The output module is used to transmit the candidate items determined by the user to the matching query module when receiving the trigger information from the user;

匹配查询模块,用于在预置的映射表中,根据用户所确定的候选项字符查询触发条件;The matching query module is used to query the triggering conditions according to the candidate characters determined by the user in the preset mapping table;

指令调用模块,用于当在预置的映射表中存在符合匹配的记录时,获得相应的指令调用信息,并发送所述指令调用信息至相应接口,实现相应程序指令的调用。The instruction calling module is used to obtain corresponding instruction calling information when there is a matching record in the preset mapping table, and send the instruction calling information to the corresponding interface to realize the calling of the corresponding program instruction.

与现有技术相比,本申请文件所公开的技术方案具有以下优点:Compared with the prior art, the technical solution disclosed in this application document has the following advantages:

(1)调用程序指令的效率高。首先,由于本申请文件所公开的技术方案基于键盘输入,不必在屏幕中寻找指令入口,可以避免菜单、按钮、图标等基于图形界面的定位手段效率低下的问题;其次,本申请文件所公开的技术方案可以同时支持操作系统指令和应用程序指令,从而统一了计算机程序指令的入口,提高了指令调用的效率。(1) The efficiency of calling program instructions is high. First of all, since the technical solution disclosed in this application document is based on keyboard input, there is no need to search for command entries on the screen, which can avoid the problem of low efficiency of positioning means based on graphical interfaces such as menus, buttons, and icons; secondly, the disclosed in this application document The technical solution can support operating system instructions and application program instructions at the same time, thereby unifying the entry of computer program instructions and improving the efficiency of instruction calling.

(2)简单方便。首先,本申请文件所公开的技术方案可以将用户输入的编码字符串变换后再进行匹配,即用户可以采用其熟悉的语言进行指令调用,从而降低用户的记忆负担;其次,本申请文件所公开的技术方案所述的编码字符串变换过程可以采用普通输入法的转换方式,从而满足用户各种输入方式下的灵活输入(例如,对于中文而言,可以采用简拼、双拼、全拼以及模糊音等多种用户熟悉的输入方式);再者,本申请文件所公开的技术方案还可以采用模糊匹配,以及展现相关信息,从而解决了用户输入信息不准确或者记忆不准确的问题,提供足够的容错度和提示信息,方便使用。(2) Simple and convenient. First of all, the technical solution disclosed in this application document can convert the coded character string input by the user before matching, that is, the user can use the language he is familiar with to call instructions, thereby reducing the user's memory burden; secondly, the application document disclosed The encoding character string conversion process described in the technical solution can adopt the conversion mode of common input method, thereby satisfy the user's flexible input under various input modes (for example, for Chinese, can adopt Jianpin, Shuangpin, Quanpin and Various input methods familiar to users such as fuzzy sounds); moreover, the technical solution disclosed in this application document can also use fuzzy matching and display relevant information, thereby solving the problem of inaccurate user input information or inaccurate memory, providing Sufficient fault tolerance and prompt information for easy use.

(3)与输入法系统结合,节约系统资源。由于输入法需要将用户输入的键盘信息进行转换,而本发明的指令调用也需要进行字符变换,所以,优选的,在本发明的一个实施例中,将指令调用所需的字符变换过程合并在普通输入法的候选项转换过程中,并可以在不同阶段都输入所需的字符变换结果,从而避免了重复计算,节约了系统资源。(3) Combine with the input method system to save system resources. Since the input method needs to convert the keyboard information input by the user, and the instruction call of the present invention also needs to perform character transformation, so, preferably, in one embodiment of the present invention, the character transformation process required for the instruction call is combined in During the candidate conversion process of the common input method, the required character conversion results can be input at different stages, thereby avoiding repeated calculations and saving system resources.

(4)在本发明的另一优选实施例中,设置了中间命令,在预置的映射表中仅仅存储字符与中间命令的对应关系,而当用户触发时,才根据预置规则计算得到最终的指令调用信息,从而避免了在映射表中直接存储字节量较大的指令调用信息,降低映射表的存储容量,提高匹配查询效率。(4) In another preferred embodiment of the present invention, intermediate commands are set, and only the corresponding relationship between characters and intermediate commands is stored in the preset mapping table, and when the user triggers, the final command is calculated according to the preset rules. Instruction call information, thereby avoiding direct storage of large byte instruction call information in the mapping table, reducing the storage capacity of the mapping table, and improving matching query efficiency.

附图说明 Description of drawings

图1是本发明快速调用程序指令的方法实施例1的步骤流程图;Fig. 1 is the flow chart of the steps of Embodiment 1 of the method for quickly invoking program instructions of the present invention;

图2是本发明快速调用程序指令的方法实施例2的步骤流程图;Fig. 2 is a flow chart of the steps of Embodiment 2 of the method for quickly calling program instructions in the present invention;

图3是本发明快速调用程序指令的系统实施例的结构图;Fig. 3 is a structural diagram of a system embodiment of the present invention to quickly call program instructions;

图4是本发明一种兼顾字符输入和快速调用程序指令的方法实施例的步骤流程图;Fig. 4 is a flow chart of the steps of a method embodiment of the present invention that takes into account both character input and quick calling of program instructions;

图5是本发明一种输入法系统实施例的结构示意图;Fig. 5 is a schematic structural view of an input method system embodiment of the present invention;

图6是采用编码字符串直接匹配的方式进行映射表匹配查询的实施例的步骤流程图;Fig. 6 is the step flow chart of the embodiment that adopts the mode of direct matching of encoded character string to carry out mapping table matching query;

图7是将用户输入的编码字符串由输入法变换为解码内容后,进行映射表匹配查询的实施例的步骤流程图;Fig. 7 is the flow chart of the steps of the embodiment of mapping table matching query after the encoded character string input by the user is transformed into decoded content by the input method;

图8是将用户的输入的编码字符串由输入法变换为候选项之后,进行映射表匹配查询的实施例的步骤流程图;Fig. 8 is the flow chart of the steps of the embodiment of mapping table matching query after the encoded character string of the user's input is transformed into a candidate by the input method;

图9是与图8类似的另一实施例的步骤流程图;Fig. 9 is a flowchart of the steps of another embodiment similar to Fig. 8;

图10是采用用户选择候选项上屏输出的字符,进行映射表匹配查询的实施例的步骤流程图。Fig. 10 is a flow chart of steps in an embodiment of performing a mapping table matching query using the characters output on the screen when the user selects a candidate item.

具体实施方式 Detailed ways

为使本发明的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本发明作进一步详细的说明。In order to make the above objects, features and advantages of the present invention more comprehensible, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

参照图1,示出了本发明快速调用程序指令的方法实施例1的步骤流程图,具体包括以下步骤:Referring to Fig. 1, it shows a flow chart of the steps of Embodiment 1 of the method for quickly calling program instructions in the present invention, which specifically includes the following steps:

步骤101、接收用户输入的编码字符串;例如,一般的,用户可以通过键盘等计算机外设完成编码字符串的输入;Step 101, receiving the coded string input by the user; for example, generally, the user can complete the input of the coded string through computer peripherals such as a keyboard;

步骤102、在预置的映射表中,匹配所述编码字符串或者所述编码字符串变换后的内容;所述匹配可以为根据该关键字查询触发条件;所述变换后的内容可以为字母、汉字等字符,也可为拼音,例如[ji]这样的音节等等。当然,本发明并不需要对变换的具体规则进行限定,变换后的内容还可以为日文,韩文,日文的平假名、片假名等等。Step 102, in the preset mapping table, match the coded string or the converted content of the coded string; the matching can be a trigger condition based on the keyword query; the converted content can be a letter , Chinese characters and other characters can also be pinyin, such as syllables such as [ji] or the like. Of course, the present invention does not need to limit the specific rules of the transformation, and the transformed content can also be Japanese, Korean, Japanese hiragana, katakana and so on.

步骤103、如果存在符合匹配的记录,则启动指令触发接口,并展现相关信息;所述相关信息可以为所需调用的程序指令的注释信息;Step 103, if there is a matching record, start the instruction trigger interface, and display relevant information; the relevant information may be the comment information of the program instruction to be called;

步骤104、接收用户的触发信息,获得相应的指令调用信息;Step 104, receiving trigger information from the user, and obtaining corresponding instruction call information;

步骤105、发送所述指令调用信息至相应接口,实现相应程序指令的调用。Step 105, sending the instruction invocation information to the corresponding interface, so as to implement invocation of the corresponding program instruction.

通过上述实施例1的整个过程中,可以看出:Through the whole process of the above-mentioned embodiment 1, it can be seen that:

首先,由于可以直接采用用户输入的编码字符串在所预置的映射表中进行匹配;也可以先对用户输入的编码字符串进行变换,再采用变换后的字符(例如,拼音、英文、中文、日文或者韩文等)在预置的映射表中进行匹配;因此,用户可以采用其熟悉的各种语言输入方式,从而可以满足各种用户的需要,降低这些用户的记忆负担。First of all, since the encoded character string input by the user can be directly used to match in the preset mapping table; the encoded character string input by the user can also be transformed first, and then the transformed characters (for example, pinyin, English, Chinese, etc.) , Japanese or Korean, etc.) are matched in the preset mapping table; therefore, users can use various input modes familiar to them, thereby meeting the needs of various users and reducing the memory burden of these users.

其次,步骤103中的“匹配”支持精确匹配,也支持模糊匹配,并且,步骤103还可以根据匹配结果向用户展现与所调用的指令相关的各种信息,因此,用户不需要记忆精确的具体指令内容,只需记忆大致的指令名称、或者功能或者所需调用的指令的关键信息即可,模糊匹配后还可以通过所展现的相关信息进行选择,从而进一步大大降低了用户的记忆负担,提高了用户调用程序指令的速度和便利度。Secondly, the "match" in step 103 supports exact matching and also supports fuzzy matching, and step 103 can also present various information related to the called command to the user according to the matching result, so the user does not need to memorize the exact specific For the command content, you only need to memorize the approximate command name, or function, or the key information of the command to be called. After fuzzy matching, you can also choose through the relevant information displayed, which further greatly reduces the memory burden of the user and improves the user experience. It improves the speed and convenience for users to call program instructions.

下面以启动系统指令-计算器程序为例,对步骤102中的映射表进行说明:The mapping table in step 102 is described below by taking the starting system instruction-calculator program as an example:

(1)当直接采用编码字符串进行匹配时,所述的映射表可以采用如下结构:(1) When directly adopting the encoded character string to match, the mapping table can adopt the following structure:

    触发条件(字母) Trigger condition (letter)     展现的相关信息 Relevant information displayed jsqjsq     《计算器》或者,启动计算器工具 《Calculator》 Or, start the calculator tool

如果用户输入了编码字符串“jsq”,则根据在映射表中的匹配结果,向用户展现相关信息“《计算器》”。进一步,优选的,还可以当用户将鼠标移动到该选项上时,展现“启动计算器工具”等字样,向用户进一步解释该指令的功能。用户根据相关信息判断是否为自己所需调用的指令,如果是,则给出触发消息,即可完成对所需程序指令的调用。If the user enters the encoded string "jsq", then according to the matching result in the mapping table, the relevant information ""calculator"" will be presented to the user. Further, preferably, when the user moves the mouse over the option, words such as "start the calculator tool" can be displayed to further explain the function of the instruction to the user. The user judges whether it is the command he needs to call according to the relevant information, and if so, gives a trigger message to complete the call of the required program command.

(2)当采用编码字符串变换后的内容进行匹配时,如果变换后的内容为拼音音节,则所述的映射表可以采用如下结构:(2) When the content after the conversion of the encoded character string is used to match, if the content after the conversion is a pinyin syllable, then the mapping table can adopt the following structure:

    触发条件(音节) Trigger condition (syllable)   展现的相关信息 Relevant information displayed [ji][suan][qi][ji][suan][qi]   《计算器》或者,启动计算器工具 "Calculator" or, launch the calculator tool

如果用户输入了编码字符串“jsq”或者“jisuanqi”,则根据预置的变换规则,将其变换为“[ji][suan][qi]”,然后根据其在映射表中的匹配结果,向用户展现相关信息“《计算器》”。进一步,优选的,还可以当用户将鼠标移动到该选项上时,展现“启动计算器工具”等字样,向用户进一步解释该指令的功能。用户根据相关信息判断是否为自己所需调用的指令,如果是,则给出触发消息,即可完成对所需程序指令的调用。If the user enters the encoded string "jsq" or "jisuanqi", it will be transformed into "[ji][suan][qi]" according to the preset transformation rules, and then according to its matching result in the mapping table, Present relevant information ""calculator"" to the user. Further, preferably, when the user moves the mouse over the option, words such as "start the calculator tool" can be displayed to further explain the function of the instruction to the user. The user judges whether it is the command he needs to call according to the relevant information, and if so, gives a trigger message to complete the call of the required program command.

(3)当采用编码字符串变换后的内容进行匹配时,如果变换后的内容为汉字,则所述的映射表可以采用如下结构:(3) When the content after the conversion of the encoded character string is used for matching, if the content after the conversion is a Chinese character, then the mapping table can adopt the following structure:

    触发条件(汉字) Trigger conditions (Chinese characters)  展现的相关信息 Relevant information displayed 计算器calculator  《计算器》或者,启动计算器工具 《Calculator》 Or, start the calculator tool

如果用户输入了编码字符串“jsq”或者“jisuanqi”,则根据预置的变换规则,将其变换为“计算器”,然后根据其在映射表中的匹配结果,向用户展现相关信息“《计算器》”。进一步,优选的,还可以当用户将鼠标移动到该选项上时,展现“启动计算器工具”等字样,向用户进一步解释该指令的功能。用户根据相关信息判断是否为自己所需调用的指令,如果是,则给出触发消息,即可完成对所需程序指令的调用。如果采用模糊匹配,则即使变换后的字符为“计算”,也可以向用户展现相关信息“《计算器》”,进一步提高用户的使用便利性。If the user enters the coded string "jsq" or "jisuanqi", it will be transformed into "calculator" according to the preset transformation rules, and then relevant information will be displayed to the user according to the matching result in the mapping table "《 Calculator". Further, preferably, when the user moves the mouse over the option, words such as "start the calculator tool" can be displayed to further explain the function of the instruction to the user. The user judges whether it is the command he needs to call according to the relevant information, and if so, gives a trigger message to complete the call of the required program command. If fuzzy matching is adopted, even if the converted character is "calculation", the relevant information ""calculator"" can be displayed to the user, further improving the user's convenience.

对于上述(2)和(3)两种情况而言,由于可以根据预置的变换规则,将用户输入的不同的编码字符串变换为统一的触发条件,所以可以更好的兼容各个用户的使用习惯(例如,用户可以通过全拼、简拼、双拼、模糊音以及五笔等等方式输入),增加本发明的便利性。当然,本领域技术人员可以根据需要将用户输入的编码字符串变换成各种合适的字符进行匹配,本发明并不仅仅限于上述的两种变换方式。For the above two cases (2) and (3), since the different coded strings input by the user can be converted into a unified trigger condition according to the preset conversion rules, it can be better compatible with the use of each user Habits (for example, the user can input by means of full spelling, simplified spelling, double spelling, fuzzy sound and Wubi etc.), increase the convenience of the present invention. Of course, those skilled in the art can transform the coded character string input by the user into various suitable characters for matching as required, and the present invention is not limited to the above two transformation methods.

进一步,需要说明的是,上面举出的三种映射表仅仅为举例而已,本领域技术人员可以根据需要设置各种合适的映射表;并且,上面举出的三种映射表可以单独使用,也可以组合使用;或者,在一张映射表中,触发条件包括了三种情况:字母、音节、汉字,即不同的指令可能采用不同的触发条件类型。Further, it should be noted that the above three mapping tables are only examples, and those skilled in the art can set various suitable mapping tables according to needs; and, the above three mapping tables can be used alone, or It can be used in combination; or, in a mapping table, trigger conditions include three situations: letters, syllables, and Chinese characters, that is, different commands may use different types of trigger conditions.

例如,当用户输入“jsq”时,可以以“jsq”、“[ji][suan][qi]”和“计算器”分别在映射表中进行匹配,从而得到恰当的匹配结果;以避免当“启动计算器”这个系统指令使用的触发条件是汉字形式,而采用字母或者音节形式则无法获取正确的匹配结果的情况发生。For example, when the user enters "jsq", "jsq", "[ji][suan][qi]" and "calculator" can be matched in the mapping table respectively, so as to obtain an appropriate matching result; The trigger condition used by the system command "Start Calculator" is in the form of Chinese characters, but the correct matching result cannot be obtained if the form of letters or syllables is used.

需要着重说明的是,对于本发明而言,不同的应用场合或者不同的技术人员,针对同一被调用的程序指令,可以设置不同的触发条件。例如,针对调用完成打开搜狐主页这样的功能的程序指令,则可以设定触发条件为“搜狐”、也可以为“搜狐主页”、也可以为“打开搜狐”等等。It should be emphasized that, for the present invention, different application occasions or different technicians may set different trigger conditions for the same invoked program instruction. For example, for the program instruction to invoke the function of opening the Sohu homepage, the trigger condition can be set as "Sohu", "Sohu homepage", or "open Sohu" and so on.

下面通过几个具体的例子对实施例1中涉及的程序指令及相应的指令调用信息进行说明:The program instructions involved in Embodiment 1 and the corresponding instruction call information are described below through several specific examples:

假设预置的映射表中存储有字符与指令调用信息的对应关系,则直接通过匹配查询就可以获得相应的指令调用信息,例如,映射表可以采用如下的结构:Assuming that the corresponding relationship between characters and instruction call information is stored in the preset mapping table, the corresponding instruction call information can be obtained directly through matching query. For example, the mapping table can adopt the following structure:

    触发条件 Triggering conditions   展现的相关信息 Relevant information displayed     指令调用信息 ` Instruction call information Jsq,或者,计算器Jsq, or, Calculator   《计算器》或者,启动计算器工具 "Calculator" or, launch the calculator tool     Calc.exe或者,Calc Calc.exe or, Calc

根据匹配结果,将相应的指令调用信息发送至相应的程序接口即可实现程序指令的调用。According to the matching result, the calling of the program instruction can be realized by sending the corresponding instruction calling information to the corresponding program interface.

本发明所涉及的程序指令可以包括但不限于以下几种,并且以下的举例仅以windows操作系统为例进行说明,其他操作系统可以参照。The program instructions involved in the present invention may include, but are not limited to, the following types, and the following examples only use the Windows operating system as an example for illustration, other operating systems may be referred to.

A、启动某个程序。A. Start a program.

主要通过调用系统API(例如,ShellExecute或者CreateProcess),将可执行程序的文件路径作为参数传递。当然,某些目录(如系统目录)中的文件可以不必写全路径。例如执行“calc.exe”(计算器实用工具),则可以将指令调用信息“calc.exe”发送至ShellExecute函数即可。Mainly by calling the system API (for example, ShellExecute or CreateProcess), passing the file path of the executable program as a parameter. Of course, the files in some directories (such as the system directory) do not need to write the full path. For example, to execute "calc.exe" (calculator utility tool), the command call information "calc.exe" can be sent to the ShellExecute function.

某些文件与应用程序关联,可视为“可执行”。例如.doc文档,当没有安装Word字处理软件的时候是不可执行的。但是安装word字处理软件后,系统会建立.doc文档与可执行文件word.exe的关联关系,因此执行.doc文档等同于执行word.exe并将.doc文件路径传递给该可执行文件。类似的,还包括打开mp3文件播放音乐、PDF文件等等。例如,将“D:\document w\a.doc”发送至系统API即可;也可以将“word.exe”及其参数“D:\document w\a.doc”发送至系统API,该方式可以用于指定目标文件的打开程序。Certain files are associated with applications and may be considered "executable". For example, a .doc document is not executable when the word processing software Word is not installed. However, after the word processing software is installed, the system will establish an association between the .doc document and the executable file word.exe, so executing the .doc document is equivalent to executing word.exe and passing the .doc file path to the executable file. Similarly, it also includes opening mp3 files to play music, PDF files and so on. For example, just send "D:\document w\a.doc" to the system API; you can also send "word.exe" and its parameters "D:\document w\a.doc" to the system API, this way An opener that can be used to specify the target file.

B、网络功能,例如搜索,打开某个站点的主页等。B. Network functions, such as searching, opening the home page of a certain site, etc.

可以通过启动浏览器的方式,并将根据搜索引擎要求构造出的相应URL作为参数传递给浏览器。例如,将URL“www.sogou.com”发送至系统API即可,系统根据注册程序确定由某个浏览器打开该网页。当然,也可以指定特定浏览器,而将URL作为参数进行传递。The browser may be started, and the corresponding URL constructed according to the requirements of the search engine may be passed to the browser as a parameter. For example, just send the URL "www.sogou.com" to the system API, and the system determines that a certain browser will open the webpage according to the registration procedure. Of course, you can also specify a specific browser and pass the URL as a parameter.

也可以启动定制的搜索客户端,并将待检索的关键词作为参数交给定制的搜索客户端。对于该应用方式,具体的信息格式可以由特定的客户端预先定制即可。所述定制的搜索客户端可以为一个独立的应用程序,也可以与本发明结合使用。所述定制的搜索客户端可以另外启动浏览器显示浏览结果;也可以另创建一个窗口显示浏览结果;还可以在现有窗口中(展现相关信息的窗口中)显示浏览结果。这些都是搜索客户端的具体功能,所以在此就不详述了。It is also possible to start a customized search client, and give the keyword to be retrieved as a parameter to the customized search client. For this application mode, the specific information format can be pre-customized by a specific client. The customized search client can be an independent application program, and can also be used in combination with the present invention. The customized search client can additionally start a browser to display the browsing results; it can also create another window to display the browsing results; it can also display the browsing results in an existing window (a window displaying relevant information). These are the specific functions of the search client, so they will not be described in detail here.

C、当前应用程序的指令(即调用启用本发明时所在的当前应用程序的相关指令)C, the instruction of current application program (that is, the relevant instruction of calling the current application program where the present invention is enabled)

调用当前应用程序的指令,可以通过按键模拟实现。例如,在word应用程序中,可以模拟Ctrl_+来切换到上标字体,将模拟键盘消息发送至该应用程序的消息处理函数即可实现。Calling the command of the current application can be realized through key simulation. For example, in the word application program, Ctrl_+ can be simulated to switch to the superscript font, which can be realized by sending the simulated keyboard message to the message processing function of the application program.

Windows窗口基于消息,可以通过发送消息的办法完成对窗口行为的控制,比如显示/隐藏,移动,改变大小,设置窗口标题等等。例如,发送WM_SHOW消息到消息处理函数即可实现将应用程序的当前窗口隐藏。Windows windows are based on messages, and you can control window behaviors by sending messages, such as showing/hiding, moving, changing size, setting window titles, and so on. For example, sending a WM_SHOW message to the message processing function can hide the current window of the application.

对于复制粘贴等操作,还可以直接通过调用剪贴板实现。例如,系统API接收用户指令以及参数(选择或者指定的复制粘贴内容,例如,一幅图片),然后将该图片放到剪贴板。For operations such as copy and paste, it can also be implemented directly by calling the clipboard. For example, the system API receives user instructions and parameters (selected or specified copy and paste content, for example, a picture), and then puts the picture into the clipboard.

当然,对于当前应用程序的指令调用,也可以通过应用程序内部的API实现,虽然会带来一些开发上的困难。Of course, the instruction call of the current application program can also be implemented through the API inside the application program, although it will bring some development difficulties.

D、直接通过操作系统API实现操作系统功能D. Implement operating system functions directly through the operating system API

例如,发送指令调用信息至系统API,以实现音量调节,或者实现关机、休眠、待机等。For example, send instructions to call information to the system API to achieve volume adjustment, or to achieve shutdown, sleep, standby, etc.

参照图2,示出了本发明快速调用程序指令的方法实施例2的步骤流程图,具体包括以下步骤:Referring to Fig. 2, it shows a flow chart of the steps of Embodiment 2 of the method for quickly calling program instructions in the present invention, which specifically includes the following steps:

步骤201、接收用户输入的编码字符串;Step 201, receiving the encoded character string input by the user;

步骤202、在预置的映射表中,根据所述编码字符串或者所述编码字符串变换后的内容查询触发条件;所述预置的映射表中存储有触发条件与中间命令的对应关系;所述中间命令与所需的指令调用信息相关联;Step 202, in the preset mapping table, query the trigger condition according to the coded string or the converted content of the coded string; the preset mapping table stores the corresponding relationship between the trigger condition and the intermediate command; The intermediate command is associated with the required instruction call information;

步骤203、如果存在符合匹配的记录,则启动指令触发接口,并展现相关信息;Step 203, if there is a matching record, start the instruction to trigger the interface, and display relevant information;

步骤204、接收用户的触发信息,根据匹配情况,得到相应的中间命令;Step 204, receiving the user's trigger information, and obtaining the corresponding intermediate command according to the matching situation;

步骤205、根据预置规则对该中间命令进行解析,得到相应的指令调用信息;Step 205, analyze the intermediate command according to the preset rules, and obtain corresponding instruction calling information;

步骤206、发送所述指令调用信息至相应接口,实现相应程序指令的调用。Step 206, sending the instruction invocation information to the corresponding interface, so as to implement invocation of the corresponding program instruction.

实施例2与实施例1的核心构思相似,所以相同及相似之处就不再详述,下面对二者的主要区别加以详述。Embodiment 2 is similar to Embodiment 1 in terms of core concepts, so the same and similarities will not be described in detail, and the main differences between the two will be described in detail below.

实施例1中的映射表中存储有字符与所述指令调用信息的对应关系,所以可以通过匹配查询直接获得所需的指令调用信息。而实施例2中的映射表可以存储有字符与中间命令的对应关系;所述中间命令与所需的指令调用信息相关联;然后,当接收到用户的触发信息之后,再通过预置的解释规则(例如,一定的脚本语言),对该中间命令进行解析即可获得所需的指令调用信息。由于直接存储指令调用信息会导致映射表过量占用系统存储资源,而实施例2将一些指令调用信息的共有部分或者复杂的部分通过解析过程获得,从而减少映射表所占用的系统存储资源。例如:中间命令为$RUN calc.exe,则指令调用信息为“calc.exe”,此处可以不写明路径,缺省到系统目录中查找即可。The mapping table in Embodiment 1 stores the correspondence between characters and the instruction invocation information, so the required instruction invocation information can be obtained directly through matching queries. However, the mapping table in Embodiment 2 can store the corresponding relationship between characters and intermediate commands; the intermediate commands are associated with the required instruction call information; then, after receiving the trigger information from the user, the preset explanation rules (for example, a certain scripting language), the intermediate command can be parsed to obtain the required instruction invocation information. Since direct storage of instruction call information will result in excessive occupation of system storage resources by the mapping table, in Embodiment 2, common or complex parts of some instruction call information are obtained through a parsing process, thereby reducing system storage resources occupied by the mapping table. For example: if the intermediate command is $RUN calc.exe, then the instruction call information is "calc.exe", the path can not be specified here, and it can be searched in the system directory by default.

需要指出的是,上述的实施例1和实施例2都还可以包括:从所述编码字符串或其变换字符在所述预置映射表中匹配后的剩余字符中,确定调用参数;所获得的指令调用信息中包含所述调用参数。例如,如果触发条件为“搜索”,当用户输入了编码字符串“sousuoyinyue”时,变换为“搜索音乐”,则将匹配后剩余的字符“音乐”作为调用参数附加在标准的指令调用信息中,发送至相应接口,从而实现带参数的程序指令调用。例如,构造出一个搜索引擎检索的URL,其中包含了参数“音乐”,这个信息被发送给预置的搜索引擎服务器即可。It should be pointed out that both the above-mentioned embodiment 1 and embodiment 2 may also include: determining the calling parameters from the remaining characters after the encoded character string or its converted characters are matched in the preset mapping table; the obtained The call parameters of the instruction are included in the call information. For example, if the trigger condition is "search", when the user enters the encoded string "sousuoyinyue", it will be converted to "search for music", and the remaining character "music" after the match will be added to the standard command call information as a call parameter , sent to the corresponding interface, so as to realize the program command call with parameters. For example, a URL retrieved by a search engine is constructed, which contains the parameter "music", and this information is sent to a preset search engine server.

对于调用参数的获取,并不仅仅限于上述一种方式,上述方式主要适用于用户输入参数的情况。本领域技术人员也可以采用其他公知的方式获取其他类型的调用参数,例如,查询文件的路径作为调用参数,或者,根据搜索引擎要求构造出相应的URL作为调用参数。The acquisition of call parameters is not limited to the above-mentioned one method, and the above-mentioned method is mainly applicable to the case where the user inputs parameters. Those skilled in the art can also use other known methods to obtain other types of invocation parameters, for example, the path of the query file is used as an invocation parameter, or a corresponding URL is constructed according to the requirements of the search engine as an invocation parameter.

进一步,上述的实施例1和实施例2都还可以包括:记录用户对程序指令的调用频率信息;根据该调用频率信息对所述预置的映射表中多个符合匹配的记录进行排序;该排序结果用于确定所展现的相关信息的顺序。在匹配结果具有多个时,如何排序输出是一个需要考虑的问题,本发明还可以通过记录用户的使用频率,对多个符合匹配的相关信息展现顺序进行调整。Further, the above-mentioned embodiment 1 and embodiment 2 may also include: recording the calling frequency information of the program instructions by the user; sorting the multiple matching records in the preset mapping table according to the calling frequency information; The sorting results are used to determine the order in which related information is presented. When there are multiple matching results, how to sort the output is a problem that needs to be considered. The present invention can also adjust the display order of multiple matching related information by recording the user's usage frequency.

参照图3,示出了一种程序指令的快速调用系统的结构框图,该系统可以包括以下单元:Referring to Fig. 3, it shows a structural block diagram of a fast call system for program instructions, the system may include the following units:

用于接收用户输入的编码字符串的接口单元301;An interface unit 301 for receiving a coded character string input by a user;

匹配查询单元302,用于在预置的映射表中,根据所述编码字符串或者所述编码字符串变换后的内容查询触发条件;所述变换可以由本流域技术人员根据需要自行设定,例如,变换为拼音或者变换为汉字、或者日文、韩文、日文的平假名、片假名等等。The matching query unit 302 is used to query trigger conditions in the preset mapping table according to the coded string or the converted content of the coded string; the conversion can be set by the technicians in the field according to the needs, for example , converted into pinyin or converted into Chinese characters, or Japanese, Korean, Japanese hiragana, katakana, etc.

相关信息展现单元303,用于当所述预置的映射表中存在符合匹配的记录时,启动指令触发接口,并展现相关信息;所述相关信息可以为所需调用的程序指令的注释信息;A related information presentation unit 303, configured to start an instruction trigger interface and display related information when there is a matching record in the preset mapping table; the related information may be the comment information of the program instruction to be called;

获取单元304,用于当接收到用户的触发信息时,获得相应的指令调用信息;An obtaining unit 304, configured to obtain corresponding instruction invocation information when the user's trigger information is received;

发送单元305,用于发送所述指令调用信息至相应接口,实现相应程序指令的调用。The sending unit 305 is configured to send the instruction call information to a corresponding interface, so as to realize the call of the corresponding program instruction.

如果所述预置的映射表中存储有字符与所述指令调用信息的对应关系,则所述获取单元通过匹配查询获得相应的指令调用信息。If the preset mapping table stores the correspondence between characters and the instruction call information, the obtaining unit obtains the corresponding instruction call information through a matching query.

如果所述预置的映射表中存储有字符与中间命令的对应关系,其中,所述中间命令与所需的指令调用信息相关联;则所述获取单元可以包括以下子单元:中间命令获取子单元,用于根据匹配情况,得到相应的中间命令;以及,解析子单元,用于根据预置规则对该中间命令进行解析,得到相应的指令调用信息。If the corresponding relationship between characters and intermediate commands is stored in the preset mapping table, wherein the intermediate commands are associated with the required instruction call information; then the acquisition unit may include the following subunits: an intermediate command acquisition subunit The unit is used to obtain a corresponding intermediate command according to the matching situation; and the parsing subunit is used to analyze the intermediate command according to a preset rule to obtain corresponding instruction invocation information.

优选的,图3所示的系统还可以包括:参数确定单元306,用于从所述编码字符串或其变换字符在所述预置映射表中匹配后的剩余字符中,确定调用参数,并传送至所述获取单元304;所获得的指令调用信息中包含该调用参数。Preferably, the system shown in FIG. 3 may further include: a parameter determining unit 306, configured to determine the call parameter from the remaining characters after the encoded character string or its converted characters are matched in the preset mapping table, and It is transmitted to the obtaining unit 304; the obtained instruction calling information includes the calling parameter.

优选的,图3所示的系统还可以包括:指令调频单元307,用于记录用户对程序指令的调用频率信息;以及,根据该调用频率信息对所述预置的映射表中多个符合匹配的记录进行排序;该排序结果用于确定所展现的相关信息的顺序。Preferably, the system shown in FIG. 3 may further include: an instruction frequency modulation unit 307, configured to record the calling frequency information of the program instructions by the user; and, according to the calling frequency information, match multiple matches in the preset mapping table records are sorted; this sorting is used to determine the order in which related information is presented.

图3所示的系统与前述实施例的核心构思基本相同,所以,未详尽之处可以参见前述相关部分,在此不再详述。The core idea of the system shown in FIG. 3 is basically the same as that of the foregoing embodiments, so for details that are not detailed, reference may be made to the foregoing relevant parts, which will not be described in detail here.

参照图4,示出了一种兼顾字符输入和快速调用程序指令的方法,该方法与前述实施例的主要改进之处在于,将本发明所述的调用方法与输入法二者结合起来,由于本发明包括接收用户输入编码字符串的步骤,也可以包括对该编码字符串进行变换的过程,而输入法也包括这两个过程,因此,为了降低对系统计算资源和存储资源的占用,图4示出的实施例将二者有机结合起来。With reference to Fig. 4, it shows a kind of method that takes into account both character input and calling program instructions quickly, the main improvement of this method and the aforementioned embodiment is that the calling method described in the present invention is combined with the input method, because The present invention includes the step of receiving the coded string input by the user, and may also include the process of transforming the coded string, and the input method also includes these two processes. Therefore, in order to reduce the occupation of system computing resources and storage resources, the figure The embodiment shown in 4 organically combines the two.

具体的,图4所示的实施例可以包括以下步骤:Specifically, the embodiment shown in Figure 4 may include the following steps:

步骤401、接收用户输入的编码字符串;Step 401, receiving the encoded character string input by the user;

步骤402、根据预置规则,将所述编码字符串转换为候选项;以及,在预置的映射表中,根据所述编码字符串或者所述编码字符串变换后的内容查询触发条件;Step 402: Convert the coded string into a candidate item according to a preset rule; and, in a preset mapping table, query a trigger condition according to the coded string or the transformed content of the coded string;

步骤403、展现所述候选项;以及,当在预置的映射表中存在符合匹配的记录时,启动指令触发接口,并展现相关信息;所述相关信息可以为所需调用的程序指令的注释信息;Step 403, displaying the candidate items; and, when there is a matching record in the preset mapping table, start the instruction to trigger the interface, and display relevant information; the relevant information may be the comment of the program instruction to be called information;

步骤404、如果接收到用户的第一触发信息,则获得相应的指令调用信息,并发送所述指令调用信息至相应接口,实现相应程序指令的调用;Step 404, if the user's first trigger information is received, obtain the corresponding instruction call information, and send the instruction call information to the corresponding interface, so as to realize the call of the corresponding program instruction;

步骤405、如果接收到用户的第二触发信息,则将用户确定的候选项上屏输出。Step 405, if the user's second trigger information is received, output the candidate item determined by the user on the screen.

优选的,所述对编码字符串进行变换的过程合并在将所述编码字符串转换为候选项的过程中。当然,输入法与本发明二者仅仅采用简单叠加的方式进行组合也是可行的。Preferably, the process of transforming the coded string is incorporated in the process of converting the coded string into candidates. Of course, it is also feasible to combine the input method and the present invention by simply superimposing them.

步骤402中,有的预置规则可以直接将编码字符串转换为候选项,例如,五笔输入;有的预置规则,则需要稍复杂的转换过程:将用户输入的编码字符串转换为解码内容(例如,拼音音节);以及,将所述解码内容转换为候选项;例如各种拼音输入规则。因此,根据不同的输入法的转换规则,用于在映射表中匹配的变换后字符分别可以为:解码内容(例如,拼音音节)、或者候选项等等。对于实际应用中如何选择变换后的字符,可以由本领域技术人员根据实际需要和预置的映射表进行设定即可,在此本发明并不需要对此加以限定。In step 402, some preset rules can directly convert the coded string into a candidate, for example, Wubi input; some preset rules require a slightly complicated conversion process: convert the coded string input by the user into decoded content (for example, pinyin syllables); and, converting the decoded content into candidates; for example, various pinyin input rules. Therefore, according to the conversion rules of different input methods, the converted characters used for matching in the mapping table may be: decoded content (for example, pinyin syllables), or candidates, and so on. How to select transformed characters in practical applications can be set by those skilled in the art according to actual needs and a preset mapping table, and the present invention does not need to limit this here.

由于输入法自身具有候选项窗口对各个候选字词或者候选符号进行展现,供用户选择;因此,所述相关信息也可以在候选项窗口中进行展现;当然,所述相关信息也可以在另外的窗口中进行展现。所述展现,现有技术中一般采用展示的形式(指向用户的视觉),但是可以预见的是,指向用户听觉的音频展现也完全是可行的。Since the input method itself has a candidate window to display each candidate word or candidate symbol for the user to choose; therefore, the related information can also be displayed in the candidate window; certainly, the related information can also be displayed in another displayed in the window. The presentation generally takes the form of presentation (directed to the user's vision) in the prior art, but it is foreseeable that an audio presentation directed to the user's hearing is also completely feasible.

所述相关信息的展现方式可以为:独立于候选项之外进行展现,例如,一般输入法的候选项为5个,则所述相关信息可以作为第6项进行展现;如果相关信息为多个,也可以作为前述5个候选项之外的其他多个候选项进行展现。The display method of the related information may be: display independently of the candidates, for example, if there are 5 candidates for the general input method, the related information may be displayed as the sixth item; if the related information is multiple , may also be displayed as other multiple candidates other than the aforementioned five candidates.

所述相关信息的展现方式也可以为:在候选项上附加所述相关信息。优选的附加方式为在所述候选项上增加超链接;或者,增加标注等等。The manner of presenting the relevant information may also be: adding the relevant information to the candidates. The preferred way of adding is to add a hyperlink on the candidate item; or, add a label and so on.

优选的,所述预置的映射表中存储有字符与所述指令调用信息的对应关系。Preferably, the preset mapping table stores the correspondence between characters and the instruction calling information.

所述预置的映射表中也可以存储有字符与中间命令的对应关系;所述中间命令与所需的指令调用信息相关联;则通过以下步骤获得相应的指令调用信息:根据匹配情况,得到相应的中间命令;根据预置规则对该中间命令进行解析,得到相应的指令调用信息。The corresponding relationship between characters and intermediate commands can also be stored in the preset mapping table; the intermediate commands are associated with the required instruction call information; then the corresponding instruction call information is obtained through the following steps: according to the matching situation, get The corresponding intermediate command; the intermediate command is analyzed according to the preset rules to obtain the corresponding instruction call information.

进一步,图4所示的实施例还可以包括:从所述编码字符串或其变换字符在所述预置映射表中匹配后的剩余字符中,确定调用参数;所获得的指令调用信息中包含所述调用参数。Further, the embodiment shown in FIG. 4 may also include: determining invocation parameters from the remaining characters after the encoded character string or its converted characters are matched in the preset mapping table; the obtained instruction invocation information includes The call parameters.

优选的,对于图4所示的实施例而言,为了提高用户网络搜索指令调用的方便性,可以在带有指令调用功能的输入法中加入用户搜索客户端,或者绑定搜索客户端与该输入法。所述搜索客户端可以另外启动浏览器显示浏览结果;也可以直接在候选项窗口中显示网络搜索的结果。例如检索“搜狐”,返回的结果可能包括“搜狐主页”和“搜狐财经”等网站;将“搜狐主页”和“搜狐财经”等字符串加入候选项进行展示,用户选择后可以根据需要将检索结果上屏输出,也可以直接转到“搜狐主页”或者“搜狐财经”进行浏览。当然,这些更多的是输入法与搜索客户端结合后的拓展,在此本发明无需加以限制。Preferably, for the embodiment shown in FIG. 4 , in order to improve the convenience of the user's network search command call, the user search client can be added to the input method with the command call function, or the search client can be bound with the Input. The search client can additionally start a browser to display browsing results; it can also directly display network search results in the candidate window. For example, if you search for "Sohu", the returned results may include websites such as "Sohu Homepage" and "Sohu Finance"; add strings such as "Sohu Homepage" and "Sohu Finance" into candidate items for display, and users can search according to their needs. The results are output on the screen, or you can directly go to the "Sohu homepage" or "Sohu Finance" for browsing. Of course, these are more expansions after the combination of the input method and the search client, and the present invention does not need to be limited here.

优选的,对于图4所示的实施例而言,虽然将输入法与调用指令的装置进行了结合,但是输入法附加的其他功能,对于程序指令的调用而言,仍可以认为是外部程序的指令。因此,对于输入法的附加功能或者除了变换、展示之外的功能的调用,也属于本发明程序指令的调用范畴之内。Preferably, for the embodiment shown in FIG. 4 , although the input method is combined with the device for calling instructions, other functions added to the input method can still be considered as external programs for calling program instructions. instruction. Therefore, the calling of additional functions of the input method or functions other than transformation and display also falls within the calling scope of the program instructions of the present invention.

例如,如果输入法内部功能还包括加法计算指令,预置的映射表中的触发条件为“jisuan*”,之后的字符为调用参数,具体指令用于完成一个加法运算。假设用户输入“jisuan3+2”,则将指令调用信息“jisuan”及其参数“3+2”发送至输入法的加法指令执行模块(该指令调用信息是由该执行模块自行定义的),并可以将执行后的结果展现在候选窗口中,用户还可以选择后直接上屏输出。For example, if the internal function of the input method also includes an addition calculation instruction, the trigger condition in the preset mapping table is "jisuan*", and the following characters are call parameters, and the specific instruction is used to complete an addition operation. Assuming that the user inputs "jisuan3+2", the instruction call information "jisuan" and its parameter "3+2" are sent to the addition instruction execution module of the input method (the instruction call information is defined by the execution module), and The result after execution can be displayed in the candidate window, and the user can also directly output it on the screen after selection.

再例如,如果输入法系统还附加有即时通讯功能,则假设预置的触发条件为“发送*”,“*”表示一定的字符,作为指令参数;当用户输入“发送你好”时,则将指令调用信息“发送”及其参数“你好”发送至输入法的即时通讯模块,由后者完成即时通讯功能即可。其中的指令调用信息“发送”由该即时通讯模块自行定义即可,在此仅仅是举例而已。For another example, if the input method system is also equipped with an instant messaging function, it is assumed that the preset trigger condition is "send *", and "*" represents a certain character as a command parameter; when the user inputs "send hello", then Send the command call information "send" and its parameter "hello" to the instant messaging module of the input method, and the latter can complete the instant messaging function. The instruction call information "send" can be defined by the instant messaging module itself, and it is only an example here.

如果对于输入法内部接口或者数据结构的调用,例如全半角切换、中英文切换等,触发条件可以为“quanjiao”或者“全角”,展示的相关信息选项可以为“切换到输入法全角状态”,则发送相应消息至输入法内部接口即可,至于具体消息或者具体的接口,则需要视输入法的具体实现而定。If the internal interface or data structure of the input method is called, such as full-width switching, Chinese-English switching, etc., the trigger condition can be "quanjiao" or "full-width", and the relevant information displayed can be "Switch to input method full-width state", It is enough to send the corresponding message to the internal interface of the input method. As for the specific message or specific interface, it depends on the specific implementation of the input method.

上述对图4的描述中未详尽之处,可以参见前述的相关部分。For details that are not detailed in the above description of FIG. 4 , please refer to the aforementioned relevant parts.

参照图5,示出了一种输入法系统的结构示意图,具体包括以下部件:Referring to Fig. 5, it shows a schematic structural diagram of an input method system, which specifically includes the following components:

编码接收模块501,用于接收用户输入的编码字符串;An encoding receiving module 501, configured to receive an encoded character string input by a user;

候选项转换模块502,用于根据预置规则,将所述编码字符串转换为候选项;A candidate conversion module 502, configured to convert the encoded character string into a candidate according to preset rules;

匹配查询模块503,用于在预置的映射表中,根据所述编码字符串或者所述编码字符串变换后的内容查询触发条件;A matching query module 503, configured to query trigger conditions in a preset mapping table according to the coded string or the converted content of the coded string;

展现模块504,用于展现所述候选项;以及,当在预置的映射表中存在符合匹配的记录时,启动指令触发接口,并展现相关信息;A presentation module 504, configured to present the candidates; and, when there is a matching record in the preset mapping table, start an instruction to trigger the interface, and present relevant information;

指令调用模块505,用于当接收到用户的第一触发信息时,获得相应的指令调用信息,并发送所述指令调用信息至相应接口,实现相应程序指令的调用;An instruction calling module 505, configured to obtain corresponding instruction calling information when receiving the user's first trigger information, and send the instruction calling information to a corresponding interface, so as to realize calling of corresponding program instructions;

上屏输出模块506,用于当接收到用户的第二触发信息时,将用户确定的候选项上屏输出。The on-screen output module 506 is configured to output the candidate items determined by the user on the screen when receiving the second trigger information from the user.

所述候选项转换模块502可以直接将用户输入的编码字符串转换为候选项,也可以采用较为复杂的转换过程。例如,对于拼音而言,所述候选项转换模块502就可以包括:编码转换子模块,用于将用户输入的编码字符串转换为解码内容(例如,拼音音节);解码子模块,用于将所述解码内容转换为候选项。The candidate item conversion module 502 may directly convert the coded character string input by the user into a candidate item, or may adopt a relatively complicated conversion process. For example, for Pinyin, the candidate item conversion module 502 may include: a coding conversion submodule, which is used to convert the coded character string input by the user into a decoded content (for example, a pinyin syllable); a decoding submodule, which is used to convert The decoded content is converted into candidates.

根据实际需要以及输入法的转换过程,所述编码字符串变换后的内容为解码内容;所述编码字符串变换后的内容也可以为候选项等。According to the actual needs and the conversion process of the input method, the converted content of the encoded string is the decoded content; the converted content of the encoded string can also be a candidate item or the like.

所述预置的映射表中可以存储有字符与所述指令调用信息的对应关系,则所述指令调用模块505可以直接通过匹配查询获得相应的指令调用信息。The preset mapping table may store the correspondence between characters and the instruction calling information, and the instruction calling module 505 may directly obtain the corresponding instruction calling information through a matching query.

所述预置的映射表中也可以存储有字符与中间命令的对应关系;所述中间命令与所需的指令调用信息相关联;则所述指令调用模块505可以包括:中间命令获取子模块,用于根据匹配情况,得到相应的中间命令;解析子模块,用于根据预置规则对该中间命令进行解析,得到相应的指令调用信息。The corresponding relationship between characters and intermediate commands may also be stored in the preset mapping table; the intermediate command is associated with the required instruction call information; then the instruction call module 505 may include: an intermediate command acquisition submodule, It is used to obtain the corresponding intermediate command according to the matching situation; the parsing sub-module is used to analyze the intermediate command according to the preset rules, and obtain the corresponding instruction call information.

进一步,图5所示的实施例还可以包括:Further, the embodiment shown in Figure 5 may also include:

参数确定模块507,用于从所述编码字符串或变换后的内容在所述预置映射表中匹配后的剩余字符中,确定调用参数,并发送至指令调用模块;所获得的指令调用信息中包含所述调用参数。The parameter determination module 507 is used to determine the call parameters from the remaining characters after the encoded character string or the transformed content is matched in the preset mapping table, and send it to the instruction call module; the obtained instruction call information contains the call parameters.

其中,所述相关信息的展现方式为:独立于候选项之外进行展现;或者,在候选项上附加所述相关信息。优选的,所附加方式为在所述候选项上增加超链接或者标注等等。Wherein, the presenting manner of the relevant information is: presenting independently of the candidate items; or, attaching the relevant information to the candidate items. Preferably, the method of adding is to add hyperlinks or labels on the candidate items.

参照图6-图10,是对本发明几种实施例更为具体的结构例图,主要以中文拼音输入法为例进行介绍。Referring to Fig. 6-Fig. 10, they are more specific structural illustrations of several embodiments of the present invention, and mainly introduce the Chinese Pinyin input method as an example.

参照图6,是采用编码字符串直接匹配的方式进行映射表匹配查询的。Referring to FIG. 6 , the mapping table matching query is performed in the manner of direct matching of coded strings.

图6所示的实施例包括:用于接收用户输入信息的编码接收模块601、用于将编码转换为解码内容的编码转换模块602、用于将所述解码内容转换为候选项的正常解码模块603、用于展示候选项和指令相关信息的选项展现模块604、用于将用户确定的字符输出的文字上屏模块605;以及,用于在映射表中采用编码字符串直接进行匹配查询的指令查询模块606和用于获得指令调用信息并发送至相应接口的指令调用模块610。The embodiment shown in Figure 6 includes: a code receiving module 601 for receiving user input information, a code conversion module 602 for converting codes into decoded content, and a normal decoding module for converting the decoded content into candidates 603. An option presentation module 604 for displaying information about candidates and instructions, a text display module 605 for outputting characters determined by the user; and an instruction for directly performing a matching query using an encoded string in the mapping table A query module 606 and an instruction calling module 610 for obtaining instruction calling information and sending it to a corresponding interface.

所述指令查询模块606与编码接收模块601相连,获取用户输入的编码字符串,并与选项展现模块604相连,将需要展现的指令相关信息传送至选项展现模块604。所述指令调用模块610与选项展现模块604相连。The instruction query module 606 is connected to the code receiving module 601 to obtain the coded character string input by the user, and connected to the option display module 604 to transmit the instruction-related information to be displayed to the option display module 604 . The instruction calling module 610 is connected with the option display module 604 .

下面对采用上述模块完成具体的指令调用流程进行说明:The following describes the specific instruction calling process using the above modules:

编码接收模块601接收用户的键盘输入,得到编码字符串。由于受键盘等硬件输入设备的限制,此时接收到输入编码通常只能是字母、数字等键盘上已有的符号。The code receiving module 601 receives the user's keyboard input to obtain a coded character string. Due to the limitation of hardware input devices such as keyboards, the input codes received at this time can usually only be the existing symbols on the keyboards such as letters and numbers.

编码接收模块601将用户输入的编码字符串交给指令查询模块606,查找对应的触发指令。如果存在匹配记录,则将需要展现的相关信息交给选项展现模块604。The code receiving module 601 sends the coded character string input by the user to the command query module 606 to search for the corresponding trigger command. If there is a matching record, the relevant information to be displayed is given to the option display module 604 .

编码接收模块601将用户输入的编码字符串交给编码转换模块602进行输入法解码,得到解码内容。例如,对于中文输入法,得到可能匹配的拼音音节序列。The encoding receiving module 601 sends the encoded character string input by the user to the encoding conversion module 602 for input method decoding to obtain the decoded content. For example, for the Chinese input method, the possible matching Pinyin syllable sequences are obtained.

编码转换模块602将解码内容交给正常解码模块603,得到正常的输入法候选项;并进一步交给选项展现模块604。The code conversion module 602 sends the decoded content to the normal decoding module 603 to obtain normal input method candidates; and further sends it to the option presentation module 604 .

选项展现模块604将选项(包括文本候选项以及指令候选项)在屏幕上呈现给用户,所述指令候选项展现的是指令的相关信息。The option presentation module 604 presents the options (including text options and instruction options) to the user on the screen, and the instruction options display information related to the instruction.

如果用户选择了正常候选项,选项展现模块604将其交给文字上屏模块605,作为正常输入。如果用户选择了指令候选项,则通知指令调用模块610获取相应的指令调用信息,并发送至相应接口。If the user selects a normal option, the option presentation module 604 will hand it over to the text display module 605 as a normal input. If the user selects an instruction candidate, the instruction invoking module 610 is notified to obtain corresponding instruction invocation information and sent to the corresponding interface.

需要说明的是,如果用户选择了指令候选项,也可以由选项展现模块604获取相应的指令调用信息,然后交给指令调用模块610,由其发送至相应接口。或者,也可以由选项展现模块604获取相应的中间命令,然后交给指令调用模块610,由其获取所需的指令调用信息,并发送至相应接口。It should be noted that if the user selects an instruction candidate, the option presentation module 604 may also obtain the corresponding instruction invocation information, and then hand it over to the instruction invocation module 610 for sending to the corresponding interface. Alternatively, the option presentation module 604 may obtain the corresponding intermediate command, and then hand it over to the instruction calling module 610, which will obtain the required instruction calling information and send it to the corresponding interface.

参照图7,是将用户输入的编码字符串变换为解码内容后,进行映射表匹配查询的。Referring to Fig. 7, after converting the encoded character string input by the user into the decoded content, the mapping table matching query is performed.

图7所示的实施例与图6所示的实施例基本相似,也包括:编码接收模块701、编码转换模块702、正常解码模块703、选项展现模块704、文字上屏模块705;以及,指令查询模块706和指令调用模块710。The embodiment shown in Figure 7 is basically similar to the embodiment shown in Figure 6, and also includes: a code receiving module 701, a code conversion module 702, a normal decoding module 703, an option display module 704, and a text screen module 705; and, instructions query module 706 and instruction calling module 710 .

其主要区别在于:所述指令查询模块706与编码转换模块702相连,获取由编码转换模块702对用户输入的编码字符串进行转换后的解码内容;所述指令查询模块706还与选项展现模块704相连,将需要展现的指令相关信息传送至选项展现模块704。The main difference is: the instruction query module 706 is connected with the code conversion module 702, and obtains the decoded content after the code string input by the user is converted by the code conversion module 702; the instruction query module 706 is also connected with the option presentation module 704 connected, and transmit the relevant information of the instruction to be displayed to the option display module 704.

参照图8,是将用户的输入的编码字符串变换为候选项之后,进行映射表匹配查询的,并且,是采用独立于候选项之外的方式展现相关信息的。Referring to FIG. 8 , after converting the encoded character string input by the user into candidates, the mapping table matching query is performed, and relevant information is presented in a manner independent of the candidates.

图8所示的实施例与图6所示的实施例基本相似,也包括:编码接收模块801、编码转换模块802、正常解码模块803、选项展现模块804、文字上屏模块805;以及,指令查询模块806和指令调用模块810。The embodiment shown in Figure 8 is basically similar to the embodiment shown in Figure 6, and also includes: a code receiving module 801, a code conversion module 802, a normal decoding module 803, an option display module 804, and a text screen module 805; and, instructions query module 806 and instruction calling module 810 .

其主要区别在于:所述指令查询模块806与正常解码模块803相连,获取由正常解码模块803对用户输入的编码字符串进行转换后得到的候选项;所述指令查询模块806还与选项展现模块804相连,将需要展现的指令相关信息传送至选项展现模块804。Its main difference is: described instruction inquiry module 806 is connected with normal decoding module 803, obtains the candidate item obtained after converting the encoded string of user input by normal decoding module 803; Described instruction inquiry module 806 is also connected with option presentation module 804 is connected, and the instruction-related information to be displayed is sent to the option display module 804.

在图8所示的实施例中,由于输入法候选项由正常解码模块803传送给选项展现模块804,而指令相关信息则由指令查询模块806传送给选项展现模块804,所以优选是采用独立于候选项之外的方式展现相关信息的。In the embodiment shown in Fig. 8, since the input method candidate is transmitted to the option presentation module 804 by the normal decoding module 803, and the instruction related information is transmitted to the option presentation module 804 by the instruction query module 806, it is preferable to use presents relevant information in ways other than the alternatives.

参照图9,是将用户的输入的编码字符串变换为候选项之后,进行映射表匹配查询的,并且,是在所述候选项上增加超链接的方式进行相关信息的展现的(即改变了输入法候选项的展现方式)。Referring to Fig. 9, after the coded character string input by the user is converted into candidates, the mapping table matching query is performed, and the display of relevant information is performed by adding a hyperlink to the candidates (that is, changing How to display input method candidates).

图9所示的实施例与图8所示的实施例基本相似,也包括:编码接收模块901、编码转换模块902、正常解码模块903、选项展现模块904、文字上屏模块905;以及,指令查询模块906和指令调用模块910。The embodiment shown in Figure 9 is basically similar to the embodiment shown in Figure 8, and also includes: a code receiving module 901, a code conversion module 902, a normal decoding module 903, an option display module 904, and a text screen module 905; and, instructions query module 906 and instruction calling module 910 .

所述指令查询模块906与正常解码模块903相连,获取由正常解码模块903对用户输入的编码字符串进行转换后得到的候选项;所述指令查询模块906还与选项展现模块904相连,将需要展现的指令相关信息传送至选项展现模块904。The instruction query module 906 is connected with the normal decoding module 903, and obtains the candidate item obtained after converting the encoded character string input by the user by the normal decoding module 903; the instruction query module 906 is also connected with the option display module 904, and will need The displayed command-related information is sent to the option display module 904 .

其主要区别在于:正常解码模块903得到正常的输入法候选项之后,不发送给选项展现模块904,而仅仅传送至指令查询模块906。所以,在图9所示的实施例中,可以采用独立于候选项之外的方式展现相关信息的,即指令查询模块906将正常的输入法候选项和指令选项一同传送至选项展现模块904。The main difference is that the normal decoding module 903 does not send the normal input method candidates to the option presentation module 904 after obtaining them, but only sends them to the instruction query module 906 . Therefore, in the embodiment shown in FIG. 9 , relevant information can be displayed in a manner independent of the candidate items, that is, the instruction query module 906 transmits normal input method candidates and instruction options to the option display module 904 .

并且,优选的,在图9所示的实施例中,还可以采用在满足部分条件的输入法候选项上增加超链接或标注的方式进行相关信息的展现的方式,即指令查询模块906对正常的输入法候选项改变后传送至选项展现模块904。And, preferably, in the embodiment shown in FIG. 9 , it is also possible to display related information by adding hyperlinks or labels to the input method candidates that meet some conditions, that is, the instruction query module 906 queries the normal After the input method candidate is changed, it is sent to the option presentation module 904.

用户除了可以正常选择这些输入法候选项进行上屏输出外,也可以通过预定义的其他操作,例如鼠标点击、鼠标右键菜单、快捷键等,通知指令调用模块910完成相应指令的调用。比如,通过鼠标点击带超链接的选项,可以启动对该选项的搜索。In addition to normally selecting these input method candidates for on-screen output, the user can also notify the command invoking module 910 to complete invoking the corresponding command through other predefined operations, such as mouse click, right mouse button menu, shortcut keys, etc. For example, by clicking on an option with a hyperlink with the mouse, a search for the option can be initiated.

参照图10,是采用用户选择候选项上屏输出的字符,进行映射表匹配查询的;由于用户选择的过程是针对候选项的,所以该实施例可以不需要展现相关信息。Referring to FIG. 10 , the mapping table matching query is performed using the characters output on the screen when the user selects the candidate item; since the process of user selection is for the candidate item, this embodiment does not need to display relevant information.

图10所示的实施例可以包括以下部件:The embodiment shown in Figure 10 may include the following components:

编码接收模块1001,用于接收用户输入的编码字符串;A code receiving module 1001, configured to receive a coded character string input by a user;

候选项转换模块1002,用于根据预置规则,将所述编码字符串转换为候选项;A candidate conversion module 1002, configured to convert the coded character string into a candidate according to preset rules;

展现模块1003,用于展现所述候选项;A presentation module 1003, configured to present the candidates;

输出模块1004,用于当接收到用户的触发信息时,将用户确定的候选项传送至匹配查询模块1005;The output module 1004 is used to transmit the candidate items determined by the user to the matching query module 1005 when receiving the trigger information from the user;

匹配查询模块1005,用于在预置的映射表中,采用用户所确定的候选项字符进行匹配;A matching query module 1005, configured to use the candidate characters determined by the user to perform matching in the preset mapping table;

指令调用模块1006,用于当在预置的映射表中存在符合匹配的记录时,获得相应的指令调用信息,并发送所述指令调用信息至相应接口,实现相应程序指令的调用。The instruction calling module 1006 is configured to obtain corresponding instruction calling information when there is a matching record in the preset mapping table, and send the instruction calling information to a corresponding interface to realize calling of corresponding program instructions.

即从接收用户输入的编码到用户确定候选项的过程都与普通输入法基本一致,但是确定后的候选项需要传送给匹配查询模块1005,用于完成匹配查询和实现相应程序指令的调用。当然,同时将用户确定的候选项上屏输出也完全是可行的,例如,还可以包括文字上屏模块1007,与输出模块1004相连。That is, the process from receiving the code input by the user to determining the candidate is basically the same as the common input method, but the determined candidate needs to be sent to the matching query module 1005 for completing the matching query and invoking corresponding program instructions. Of course, it is entirely feasible to output the candidate items determined by the user on the screen at the same time. For example, a text screen-on module 1007 may also be included, which is connected to the output module 1004 .

最后,需要说明的是,本发明各个实施例中提及的输入法并不仅限于中文输入法,日文韩文等输入法都可以适用于本发明。Finally, it should be noted that the input methods mentioned in the various embodiments of the present invention are not limited to Chinese input methods, and input methods such as Japanese and Korean are applicable to the present invention.

以上对本发明所提供的一种快速调用计算机程序指令的方法、系统,以及一种兼顾字符输入和快速调用程序指令的方法、一种输入法系统,进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。A method and system for quickly invoking computer program instructions provided by the present invention, a method for both character input and quickly invoking program instructions, and an input method system have been introduced in detail above, and specific examples are used in this paper The principle of the present invention and the implementation mode have been set forth, and the description of the above examples is only used to help understand the method of the present invention and its core idea; meanwhile, for those of ordinary skill in the art, according to the thought of the present invention, in the specific implementation mode There will be changes in the scope of application and the scope of application. In summary, the content of this specification should not be construed as limiting the present invention.

Claims (34)

1、一种快速调用程序指令的方法,其特征在于,包括:1. A method for calling program instructions quickly, comprising: 接收用户输入的编码字符串;Receive the encoded string entered by the user; 在预置的映射表中,根据所述编码字符串或者所述编码字符串变换后的内容查询触发条件;In the preset mapping table, query the trigger condition according to the coded string or the converted content of the coded string; 如果存在符合匹配的记录,则启动指令触发接口,并展现相关信息;If there is a matching record, start the command to trigger the interface and display relevant information; 接收用户的触发信息,获得相应的指令调用信息;Receive the user's trigger information and obtain the corresponding command call information; 发送所述指令调用信息至相应接口,实现相应程序指令的调用。Send the instruction calling information to the corresponding interface to realize the calling of the corresponding program instructions. 2、如权利要求1所述的方法,其特征在于,所述预置的映射表中存储有触发条件与所述指令调用信息的对应关系。2. The method according to claim 1, wherein the preset mapping table stores the corresponding relationship between trigger conditions and the instruction calling information. 3、如权利要求1所述的方法,其特征在于,3. The method of claim 1, wherein: 所述预置的映射表中存储有触发条件与中间命令的对应关系;所述中间命令与所需的指令调用信息相关联;The preset mapping table stores the corresponding relationship between trigger conditions and intermediate commands; the intermediate commands are associated with the required instruction call information; 通过以下步骤获得相应的指令调用信息:根据匹配情况,得到相应的中间命令;根据预置规则对该中间命令进行解析,得到相应的指令调用信息。The corresponding instruction calling information is obtained through the following steps: according to the matching situation, the corresponding intermediate command is obtained; the intermediate command is analyzed according to the preset rules, and the corresponding instruction calling information is obtained. 4、如权利要求1、2或3所述的方法,其特征在于,还包括:4. The method according to claim 1, 2 or 3, further comprising: 从所述编码字符串或其变换内容在所述预置映射表中匹配后的剩余字符中,确定调用参数;Determining invoking parameters from the remaining characters after the encoded string or its transformed content is matched in the preset mapping table; 所获得的指令调用信息中包含所述调用参数。The obtained instruction calling information includes the calling parameters. 5、如权利要求1所述的方法,其特征在于,所述变换为:5. The method of claim 1, wherein the transformation is: 将所述编码字符串解码为拼音;Decoding the encoded string into pinyin; 或者,将所述编码字符串转换为候选字词。Alternatively, convert the encoded string into candidate words. 6、如权利要求1所述的方法,其特征在于,所述相关信息为所需调用的程序指令的注释信息。6. The method according to claim 1, wherein the relevant information is comment information of the program instruction to be called. 7、如权利要求1所述的方法,其特征在于,所述匹配为精确匹配或者模糊匹配。7. The method according to claim 1, wherein the matching is exact matching or fuzzy matching. 8、如权利要求1所述的方法,其特征在于,还包括:8. The method of claim 1, further comprising: 记录用户对程序指令的调用频率信息;Record the user's call frequency information for program instructions; 根据该调用频率信息对所述预置的映射表中多个符合匹配的记录进行排序;该排序结果用于确定所展现的相关信息的顺序。Sorting a plurality of matching records in the preset mapping table according to the calling frequency information; the sorting result is used to determine the sequence of related information presented. 9、一种程序指令的快速调用系统,其特征在于,包括:9. A quick call system for program instructions, characterized in that it includes: 接口单元,用于接收用户输入的编码字符串;an interface unit, configured to receive a coded character string input by a user; 匹配查询单元,用于在预置的映射表中,根据所述编码字符串或者所述编码字符串变换后的内容查询触发条件;A matching query unit, configured to query trigger conditions in a preset mapping table according to the coded string or the converted content of the coded string; 相关信息展现单元,用于当所述预置的映射表中存在符合匹配的记录时,启动指令触发接口,并展现相关信息;A related information display unit, configured to start an instruction to trigger an interface and display related information when there is a matching record in the preset mapping table; 获取单元,用于当接收到用户的触发信息时,获得相应的指令调用信息;An acquisition unit, configured to acquire corresponding instruction invocation information when trigger information from the user is received; 发送单元,用于发送所述指令调用信息至相应接口,实现相应程序指令的调用。The sending unit is configured to send the instruction call information to a corresponding interface, so as to realize the call of the corresponding program instruction. 10、如权利要求9所述的系统,其特征在于,所述预置的映射表中存储有触发条件与所述指令调用信息的对应关系,所述获取单元通过匹配查询获得相应的指令调用信息。10. The system according to claim 9, wherein the preset mapping table stores the corresponding relationship between the trigger condition and the instruction invocation information, and the acquisition unit obtains the corresponding instruction invocation information through matching query . 11、如权利要求9所述的系统,其特征在于,11. The system of claim 9, wherein: 所述预置的映射表中存储有触发条件与中间命令的对应关系;所述中间命令与所需的指令调用信息相关联;The preset mapping table stores the corresponding relationship between trigger conditions and intermediate commands; the intermediate commands are associated with the required instruction call information; 所述获取单元包括:The acquisition unit includes: 中间命令获取子单元,用于根据匹配情况,得到相应的中间命令;The intermediate command acquisition subunit is used to obtain the corresponding intermediate command according to the matching situation; 解析子单元,用于根据预置规则对该中间命令进行解析,得到相应的指令调用信息。The parsing subunit is configured to parse the intermediate command according to preset rules to obtain corresponding instruction invocation information. 12、如权利要求9、10或11所述的系统,其特征在于,还包括:12. The system of claim 9, 10 or 11, further comprising: 参数确定单元,用于从所述编码字符串或其变换内容在所述预置映射表中匹配后的剩余字符中,确定调用参数,并传送至所述获取单元;所获得的指令调用信息中包含该调用参数。A parameter determination unit, configured to determine the invocation parameters from the remaining characters after the encoded character string or its converted content is matched in the preset mapping table, and transmit it to the acquisition unit; in the obtained instruction invocation information Contains the call parameters. 13、如权利要求9所述的系统,其特征在于,所述编码字符串变换后的内容为:拼音串,或者候选字词。13. The system according to claim 9, wherein the transformed content of the coded string is: a pinyin string, or a candidate word. 14、如权利要求9所述的系统,其特征在于,还包括:14. The system of claim 9, further comprising: 指令调频单元,用于记录用户对程序指令的调用频率信息;以及,根据该调用频率信息对所述预置的映射表中多个符合匹配的记录进行排序;该排序结果用于确定所展现的相关信息的顺序。The instruction frequency modulation unit is used to record the calling frequency information of the program instructions by the user; and sort the matching records in the preset mapping table according to the calling frequency information; the sorting result is used to determine the presented order of related information. 15、一种兼顾字符输入和快速调用程序指令的方法,其特征在于,包括:15. A method for both character input and quick calling of program instructions, characterized in that it includes: 接收用户输入的编码字符串;Receive the encoded string entered by the user; 根据预置规则,将所述编码字符串转换为候选项;以及,在预置的映射表中,根据所述编码字符串或者所述编码字符串变换后的内容查询触发条件;Converting the coded character string into a candidate item according to a preset rule; and, in a preset mapping table, querying a trigger condition according to the coded character string or the converted content of the coded character string; 展现所述候选项;以及,当在预置的映射表中存在符合匹配的记录时,启动指令触发接口,并展现相关信息;displaying the candidates; and, when there is a matching record in the preset mapping table, start an instruction to trigger the interface, and display relevant information; 如果接收到用户的第一触发信息,则获得相应的指令调用信息,并发送所述指令调用信息至相应接口,实现相应程序指令的调用;If the user's first trigger information is received, the corresponding instruction call information is obtained, and the instruction call information is sent to the corresponding interface to realize the call of the corresponding program instruction; 如果接收到用户的第二触发信息,则将用户确定的候选项上屏输出。If the user's second trigger information is received, the candidate items determined by the user are output on the screen. 16、如权利要求15所述的方法,其特征在于,所述对编码字符串进行变换的过程合并在将所述编码字符串转换为候选项的过程中。16. The method of claim 15, wherein the process of transforming an encoded string is incorporated in the process of converting the encoded string into a candidate. 17、如权利要求16所述的方法,其特征在于,17. The method of claim 16, wherein: 所述将编码字符串转换为候选项的过程包括:将用户输入的编码字符串转换为解码内容;以及,将所述解码内容转换为候选项;The process of converting the encoded character string into a candidate item includes: converting the encoded character string input by the user into decoded content; and converting the decoded content into a candidate item; 所述编码字符串变换后的内容为解码内容。The converted content of the coded string is the decoded content. 18、如权利要求16所述的方法,其特征在于,所述编码字符串变换后的内容为候选项。18. The method according to claim 16, wherein the converted content of the encoded character string is a candidate. 19、如权利要求15所述的方法,其特征在于,所述预置的映射表中存储有触发条件与所述指令调用信息的对应关系。19. The method according to claim 15, wherein the preset mapping table stores the corresponding relationship between trigger conditions and the instruction calling information. 20、如权利要求15所述的方法,其特征在于,20. The method of claim 15, wherein: 所述预置的映射表中存储有触发条件与中间命令的对应关系;所述中间命令与所需的指令调用信息相关联;The preset mapping table stores the corresponding relationship between trigger conditions and intermediate commands; the intermediate commands are associated with the required instruction call information; 通过以下步骤获得相应的指令调用信息:根据匹配情况,得到相应的中间命令;根据预置规则对该中间命令进行解析,得到相应的指令调用信息。The corresponding instruction calling information is obtained through the following steps: according to the matching situation, the corresponding intermediate command is obtained; the intermediate command is analyzed according to the preset rules, and the corresponding instruction calling information is obtained. 21、如权利要求15、19或20所述的方法,其特征在于,还包括:21. The method of claim 15, 19 or 20, further comprising: 从所述编码字符串或其变换内容在所述预置映射表中匹配后的剩余字符中,确定调用参数;Determining invoking parameters from the remaining characters after the encoded string or its transformed content is matched in the preset mapping table; 所获得的指令调用信息中包含所述调用参数。The obtained instruction calling information includes the calling parameters. 22、如权利要求15所述的方法,其特征在于,所述相关信息为所需调用的程序指令的注释信息。22. The method according to claim 15, wherein the relevant information is comment information of the program instruction to be called. 23、如权利要求15所述的方法,其特征在于,所述相关信息的展现方式为:23. The method according to claim 15, characterized in that the presentation of the relevant information is: 独立于候选项之外进行展现;be presented independently of the candidates; 或者,在候选项上附加所述相关信息。Or, add the relevant information to the candidate. 24、如权利要求23所述的方法,其特征在于,所附加方式为在所述候选项上增加超链接。24. The method according to claim 23, wherein the adding method is adding a hyperlink on the candidate item. 25、如权利要求15所述的方法,其特征在于,还包括:25. The method of claim 15, further comprising: 接收所述被调用的程序指令的结果信息,并作为候选项展现;receiving the result information of the called program instruction, and presenting it as a candidate; 接收用户的选择信息,并将所选择的结果信息上屏输出。Receive the user's selection information, and output the selected result information on the screen. 26、一种输入法系统,其特征在于,包括:26. An input method system, characterized by comprising: 编码接收模块,用于接收用户输入的编码字符串;An encoding receiving module, configured to receive an encoded character string input by a user; 候选项转换模块,用于根据预置规则,将所述编码字符串转换为候选项;a candidate conversion module, configured to convert the encoded character string into a candidate according to preset rules; 匹配查询模块,用于在预置的映射表中,根据所述编码字符串或者所述编码字符串变换后的内容查询触发条件;A matching query module, configured to query trigger conditions in a preset mapping table according to the coded string or the converted content of the coded string; 展现模块,用于展现所述候选项;以及,当在预置的映射表中存在符合匹配的记录时,启动指令触发接口,并展现相关信息;A display module, configured to display the candidates; and, when there is a matching record in the preset mapping table, start an instruction to trigger the interface, and display relevant information; 指令调用模块,用于当接收到用户的第一触发信息时,获得相应的指令调用信息,并发送所述指令调用信息至相应接口,实现相应程序指令的调用;The command calling module is used to obtain the corresponding command calling information when receiving the user's first trigger information, and send the command calling information to the corresponding interface, so as to realize the calling of the corresponding program command; 上屏输出模块,用于当接收到用户的第二触发信息时,将用户确定的候选项上屏输出。The on-screen output module is configured to output the candidate items determined by the user on the screen when receiving the second trigger information from the user. 27、如权利要求26所述的系统,其特征在于,所述候选项转换模块包括:27. The system according to claim 26, wherein the candidate conversion module comprises: 编码转换子模块,用于将用户输入的编码字符串转换为解码内容;The encoding conversion sub-module is used to convert the encoded string input by the user into decoded content; 解码子模块,用于将所述解码内容转换为候选项;A decoding submodule, configured to convert the decoded content into candidates; 所述编码字符串变换后的内容为解码内容。The converted content of the coded string is the decoded content. 28、如权利要求26所述的方法,其特征在于,所述编码字符串变换后的内容为候选项。28. The method according to claim 26, wherein the converted content of the encoded character string is a candidate. 29、如权利要求26所述的方法,其特征在于,所述预置的映射表中存储有触发条件与所述指令调用信息的对应关系。29. The method according to claim 26, wherein the preset mapping table stores the corresponding relationship between trigger conditions and the instruction calling information. 30、如权利要求26所述的方法,其特征在于,30. The method of claim 26, wherein: 所述预置的映射表中存储有触发条件与中间命令的对应关系;所述中间命令与所需的指令调用信息相关联;The preset mapping table stores the corresponding relationship between trigger conditions and intermediate commands; the intermediate commands are associated with the required instruction call information; 所述指令调用模块包括:The instruction calling module includes: 中间命令获取子模块,用于根据匹配情况,得到相应的中间命令;The intermediate command obtains the submodule, which is used to obtain the corresponding intermediate command according to the matching situation; 解析子模块,用于根据预置规则对该中间命令进行解析,得到相应的指令调用信息。The parsing sub-module is used for parsing the intermediate command according to preset rules to obtain corresponding instruction invocation information. 31、如权利要求26、29或30所述的方法,其特征在于,还包括:31. The method of claim 26, 29 or 30, further comprising: 参数确定模块,用于从所述编码字符串或变换后的内容在所述预置映射表中匹配后的剩余字符中,确定调用参数,并发送至指令调用模块;所获得的指令调用信息中包含所述调用参数。The parameter determination module is used to determine the call parameters from the remaining characters after the encoded string or the transformed content is matched in the preset mapping table, and send it to the instruction call module; the obtained instruction call information is Contains the call parameters. 32、如权利要求26所述的方法,其特征在于,所述相关信息的展现方式为:32. The method according to claim 26, characterized in that the presentation of the relevant information is: 独立于候选项之外进行展现;be presented independently of the candidates; 或者,在候选项上附加所述相关信息。Or, add the relevant information to the candidate. 33、如权利要求32所述的方法,其特征在于,所附加方式为在所述候选项上增加超链接。33. The method according to claim 32, wherein the adding method is adding a hyperlink on the candidate item. 34、一种输入法系统,其特征在于,包括:34. An input method system, characterized by comprising: 编码接收模块,用于接收用户输入的编码字符串;An encoding receiving module, configured to receive an encoded character string input by a user; 候选项转换模块,用于根据预置规则,将所述编码字符串转换为候选项;a candidate conversion module, configured to convert the encoded character string into a candidate according to preset rules; 展现模块,用于展现所述候选项;a presentation module, configured to present the candidates; 输出模块,用于当接收到用户的触发信息时,将用户确定的候选项传送至匹配查询模块;The output module is used to transmit the candidate items determined by the user to the matching query module when receiving the trigger information from the user; 匹配查询模块,用于在预置的映射表中,根据用户所确定的候选项字符查询触发条件;The matching query module is used to query the triggering conditions according to the candidate characters determined by the user in the preset mapping table; 指令调用模块,用于当在预置的映射表中存在符合匹配的记录时,获得相应的指令调用信息,并发送所述指令调用信息至相应接口,实现相应程序指令的调用。The instruction calling module is used to obtain corresponding instruction calling information when there is a matching record in the preset mapping table, and send the instruction calling information to the corresponding interface to realize the calling of the corresponding program instruction.
CN2007100958472A 2007-04-10 2007-04-10 A method and system for quickly calling program instructions Expired - Fee Related CN101286118B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN2007100958472A CN101286118B (en) 2007-04-10 2007-04-10 A method and system for quickly calling program instructions
PCT/CN2008/070678 WO2008122243A1 (en) 2007-04-10 2008-04-07 A method and system for calling program command fast and a input method system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007100958472A CN101286118B (en) 2007-04-10 2007-04-10 A method and system for quickly calling program instructions

Publications (2)

Publication Number Publication Date
CN101286118A true CN101286118A (en) 2008-10-15
CN101286118B CN101286118B (en) 2012-04-18

Family

ID=39830496

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007100958472A Expired - Fee Related CN101286118B (en) 2007-04-10 2007-04-10 A method and system for quickly calling program instructions

Country Status (2)

Country Link
CN (1) CN101286118B (en)
WO (1) WO2008122243A1 (en)

Cited By (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101882007A (en) * 2010-06-13 2010-11-10 北京搜狗科技发展有限公司 Method and device for carrying out information input and execution based on input interface
CN102033858A (en) * 2009-09-30 2011-04-27 北大方正集团有限公司 Method and system for typesetting and outputting formula
CN102043617A (en) * 2009-10-12 2011-05-04 北大方正集团有限公司 Content object operation method and system of typesetting software
CN102081511A (en) * 2010-12-08 2011-06-01 广东威创视讯科技股份有限公司 Method and device for realizing operation result reproduction
CN102567433A (en) * 2010-12-07 2012-07-11 中国电信股份有限公司 Processing method, device and mobile terminal based on input method
CN102622099A (en) * 2011-01-25 2012-08-01 新浪网技术(中国)有限公司 Input method system embedded in APP (application) application program and corresponding method
CN102722395A (en) * 2012-06-11 2012-10-10 上海华勤通讯技术有限公司 Mobile terminal and starting method for application programs of mobile terminal
CN102830915A (en) * 2012-08-02 2012-12-19 聚熵信息技术(上海)有限公司 Semanteme input control system and method
CN103164122A (en) * 2011-12-08 2013-06-19 中兴通讯股份有限公司 Method and device calling address book content
CN103248551A (en) * 2012-02-03 2013-08-14 腾讯科技(深圳)有限公司 Information presentation method and system
CN103473073A (en) * 2013-09-25 2013-12-25 张新杰 Method and system for fast calling out command calling interface
CN103853544A (en) * 2012-12-07 2014-06-11 华为技术有限公司 Method and device for generating hyperlinks as well as terminal
CN103995830A (en) * 2014-04-17 2014-08-20 广东明创软件科技有限公司 Method and mobile terminal for fast switching application program based on input method
CN104216750A (en) * 2014-09-18 2014-12-17 深圳市中兴移动通信有限公司 Mobile terminal and method and device for quickly starting application of mobile terminal
CN104375845A (en) * 2013-08-14 2015-02-25 中兴通讯股份有限公司 Application startup method and device and terminal
WO2015117298A1 (en) * 2014-07-24 2015-08-13 中兴通讯股份有限公司 Method and apparatus for providing multiple functionalities to adjustment key of electronic device
CN105183180A (en) * 2015-07-17 2015-12-23 百度在线网络技术(北京)有限公司 Method and device for assisting user to use input method application
CN105446649A (en) * 2008-12-23 2016-03-30 三星电子株式会社 Method and apparatus for unlocking electronic appliance
CN101667099B (en) * 2009-10-16 2016-04-06 神形互联有限公司 A kind of method and apparatus of stroke connection keyboard text event detection
CN105824555A (en) * 2016-01-14 2016-08-03 维沃移动通信有限公司 Method and electronic equipment for realizing one-handed operation through virtual keyboard
WO2016197786A1 (en) * 2015-06-12 2016-12-15 北京奇虎科技有限公司 Method and device for acquiring application information
CN106933666A (en) * 2012-02-15 2017-07-07 联想(北京)有限公司 A kind of recalls information is input into the method and a kind of electronic equipment of program
CN106951213A (en) * 2017-03-27 2017-07-14 杭州迪普科技股份有限公司 A kind of command analysis method and device
CN108803892A (en) * 2017-05-04 2018-11-13 北京搜狗科技发展有限公司 A kind of method and apparatus for calling third party application in input method
CN112783337A (en) * 2020-12-31 2021-05-11 科大讯飞股份有限公司 Input method candidate item sorting method and related model training method
CN113400296A (en) * 2020-03-16 2021-09-17 阿里巴巴集团控股有限公司 Installation control method and device, article and terminal equipment
CN113534973A (en) * 2020-04-16 2021-10-22 北京搜狗科技发展有限公司 Input method, input device and input device
CN114415904A (en) * 2021-12-22 2022-04-29 统信软件技术有限公司 A program running method, computing device and readable storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102566769B (en) * 2010-12-13 2015-11-25 深圳市世纪光速信息技术有限公司 Chinese character input method and system
CN104077077A (en) * 2013-03-29 2014-10-01 国际商业机器公司 Method and device for adjusting prompt characters in input method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7912820B2 (en) * 2003-06-06 2011-03-22 Microsoft Corporation Automatic task generator method and system
CN100375957C (en) * 2006-05-19 2008-03-19 清华大学 Software service generation method according to user requirements in network environment
CN100424703C (en) * 2006-08-23 2008-10-08 北京搜狗科技发展有限公司 Method for obtaining newly encoded character string, input method system and word stock generation device
CN1920754B9 (en) * 2006-09-05 2016-06-08 北京搜狗科技发展有限公司 A kind of method and system to application program inputting artistic character word/figure

Cited By (42)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10175875B2 (en) 2008-12-23 2019-01-08 Samsung Electronics Co., Ltd. Method and apparatus for unlocking electronic appliance
CN105446649A (en) * 2008-12-23 2016-03-30 三星电子株式会社 Method and apparatus for unlocking electronic appliance
US11137895B2 (en) 2008-12-23 2021-10-05 Samsung Electronics Co., Ltd. Method and apparatus for unlocking electronic appliance
CN102033858A (en) * 2009-09-30 2011-04-27 北大方正集团有限公司 Method and system for typesetting and outputting formula
CN102043617A (en) * 2009-10-12 2011-05-04 北大方正集团有限公司 Content object operation method and system of typesetting software
CN101667099B (en) * 2009-10-16 2016-04-06 神形互联有限公司 A kind of method and apparatus of stroke connection keyboard text event detection
CN101882007A (en) * 2010-06-13 2010-11-10 北京搜狗科技发展有限公司 Method and device for carrying out information input and execution based on input interface
CN102567433A (en) * 2010-12-07 2012-07-11 中国电信股份有限公司 Processing method, device and mobile terminal based on input method
CN102081511B (en) * 2010-12-08 2012-10-03 广东威创视讯科技股份有限公司 Method and device for realizing operation result reproduction
CN102081511A (en) * 2010-12-08 2011-06-01 广东威创视讯科技股份有限公司 Method and device for realizing operation result reproduction
CN102622099A (en) * 2011-01-25 2012-08-01 新浪网技术(中国)有限公司 Input method system embedded in APP (application) application program and corresponding method
CN103164122A (en) * 2011-12-08 2013-06-19 中兴通讯股份有限公司 Method and device calling address book content
US9525756B2 (en) 2011-12-08 2016-12-20 Zte Corporation Method and apparatus for invoking content of contact list
CN103164122B (en) * 2011-12-08 2015-10-28 中兴通讯股份有限公司 A kind of method and device calling address list content
CN103248551A (en) * 2012-02-03 2013-08-14 腾讯科技(深圳)有限公司 Information presentation method and system
CN106933666A (en) * 2012-02-15 2017-07-07 联想(北京)有限公司 A kind of recalls information is input into the method and a kind of electronic equipment of program
CN102722395A (en) * 2012-06-11 2012-10-10 上海华勤通讯技术有限公司 Mobile terminal and starting method for application programs of mobile terminal
CN102722395B (en) * 2012-06-11 2015-09-23 上海华勤通讯技术有限公司 The starting method of mobile terminal and application program thereof
CN102830915A (en) * 2012-08-02 2012-12-19 聚熵信息技术(上海)有限公司 Semanteme input control system and method
CN103853544A (en) * 2012-12-07 2014-06-11 华为技术有限公司 Method and device for generating hyperlinks as well as terminal
CN104375845A (en) * 2013-08-14 2015-02-25 中兴通讯股份有限公司 Application startup method and device and terminal
CN103473073A (en) * 2013-09-25 2013-12-25 张新杰 Method and system for fast calling out command calling interface
CN103995830B (en) * 2014-04-17 2017-09-29 广东欧珀移动通信有限公司 The method and its mobile terminal that are switched fast application program based on input method
CN103995830A (en) * 2014-04-17 2014-08-20 广东明创软件科技有限公司 Method and mobile terminal for fast switching application program based on input method
WO2015117298A1 (en) * 2014-07-24 2015-08-13 中兴通讯股份有限公司 Method and apparatus for providing multiple functionalities to adjustment key of electronic device
CN104216750A (en) * 2014-09-18 2014-12-17 深圳市中兴移动通信有限公司 Mobile terminal and method and device for quickly starting application of mobile terminal
US10671456B2 (en) 2015-06-12 2020-06-02 Beijing Qihoo Technology Company Limited Method and device for acquiring application information
WO2016197786A1 (en) * 2015-06-12 2016-12-15 北京奇虎科技有限公司 Method and device for acquiring application information
CN105183180B (en) * 2015-07-17 2018-04-20 百度在线网络技术(北京)有限公司 A kind of method and apparatus for aiding in user to use input method to apply
CN105183180A (en) * 2015-07-17 2015-12-23 百度在线网络技术(北京)有限公司 Method and device for assisting user to use input method application
CN105824555B (en) * 2016-01-14 2019-08-20 维沃移动通信有限公司 A kind of method and electronic equipment for realizing one-handed performance by dummy keyboard
CN105824555A (en) * 2016-01-14 2016-08-03 维沃移动通信有限公司 Method and electronic equipment for realizing one-handed operation through virtual keyboard
CN106951213A (en) * 2017-03-27 2017-07-14 杭州迪普科技股份有限公司 A kind of command analysis method and device
CN108803892B (en) * 2017-05-04 2024-03-22 北京搜狗科技发展有限公司 Method and device for calling third party application program in input method
CN108803892A (en) * 2017-05-04 2018-11-13 北京搜狗科技发展有限公司 A kind of method and apparatus for calling third party application in input method
CN113400296B (en) * 2020-03-16 2024-06-25 阿里巴巴集团控股有限公司 Installation control method, device, article and terminal equipment
CN113400296A (en) * 2020-03-16 2021-09-17 阿里巴巴集团控股有限公司 Installation control method and device, article and terminal equipment
CN113534973A (en) * 2020-04-16 2021-10-22 北京搜狗科技发展有限公司 Input method, input device and input device
CN112783337B (en) * 2020-12-31 2024-04-12 科大讯飞股份有限公司 Input method candidate item ordering method and related model training method
CN112783337A (en) * 2020-12-31 2021-05-11 科大讯飞股份有限公司 Input method candidate item sorting method and related model training method
CN114415904A (en) * 2021-12-22 2022-04-29 统信软件技术有限公司 A program running method, computing device and readable storage medium
CN114415904B (en) * 2021-12-22 2025-07-25 统信软件技术有限公司 Program running method, computing device and readable storage medium

Also Published As

Publication number Publication date
CN101286118B (en) 2012-04-18
WO2008122243A1 (en) 2008-10-16

Similar Documents

Publication Publication Date Title
CN101286118B (en) A method and system for quickly calling program instructions
US11853689B1 (en) Computer-implemented presentation of synonyms based on syntactic dependency
Meyer A Shell for Modern Personal Computers
JP5921527B2 (en) Extended framework for input method editor
US10496276B2 (en) Quick tasks for on-screen keyboards
CN103959206B (en) Method and apparatus for dynamically adapting dummy keyboard
JP4091398B2 (en) Automatic software entry panel selection based on application program status
US8463731B2 (en) Translating user interaction with a touch screen into text
US9053088B2 (en) Displaying mnemonic abbreviations for commands
KR102310648B1 (en) Contextual information lookup and navigation
US10122839B1 (en) Techniques for enhancing content on a mobile device
US8595208B2 (en) Hover translation of search result captions
CN101882007A (en) Method and device for carrying out information input and execution based on input interface
KR20100004652A (en) Language translator having an automatic input/output interface and method of using same
JP2021099887A (en) Page operation method using voice recognition, apparatus, device, medium, and program
US20110316796A1 (en) Information Search Apparatus and Information Search Method
US20150178289A1 (en) Identifying Semantically-Meaningful Text Selections
CN113672154A (en) Page interaction method, medium, device and computing equipment
CN102067113A (en) System and method for knowledge-based input in a browser
TWI850945B (en) Method and user apparatus for generating and applying translation marker
CN102236642A (en) Input message-based translation operating system and method thereof
KR20010003037A (en) Multilingual Input Device
Jiang et al. On the Development of Text Input Method-Lessons Learned

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120418