WO2012083886A1 - 用于构建有机化学结构式的方法和装置 - Google Patents

用于构建有机化学结构式的方法和装置 Download PDF

Info

Publication number
WO2012083886A1
WO2012083886A1 PCT/CN2011/084595 CN2011084595W WO2012083886A1 WO 2012083886 A1 WO2012083886 A1 WO 2012083886A1 CN 2011084595 W CN2011084595 W CN 2011084595W WO 2012083886 A1 WO2012083886 A1 WO 2012083886A1
Authority
WO
WIPO (PCT)
Prior art keywords
organic chemical
focus
chemical structure
key
module
Prior art date
Application number
PCT/CN2011/084595
Other languages
English (en)
French (fr)
Inventor
赵志刚
Original Assignee
北大方正集团有限公司
北京北大方正电子有限公司
北京北大方正技术研究院有限公司
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 北大方正集团有限公司, 北京北大方正电子有限公司, 北京北大方正技术研究院有限公司 filed Critical 北大方正集团有限公司
Priority to EP11850662.5A priority Critical patent/EP2657810A4/en
Publication of WO2012083886A1 publication Critical patent/WO2012083886A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/206Drawing of charts or graphs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/111Mathematical or scientific formatting; Subscripts; Superscripts
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16CCOMPUTATIONAL CHEMISTRY; CHEMOINFORMATICS; COMPUTATIONAL MATERIALS SCIENCE
    • G16C20/00Chemoinformatics, i.e. ICT specially adapted for the handling of physicochemical or structural data of chemical particles, elements, compounds or mixtures
    • G16C20/80Data visualisation

Definitions

  • This invention relates to the field of digital typography and, in particular, to methods and apparatus for constructing organic chemical structures. Background technique
  • the organic chemical structure typesetting is usually realized by using a graphical interface such as a large number of controls.
  • This method requires the user to operate various functions on the graphical interface of the mouse to input the organic chemical structural formula.
  • This type of input seems intuitive, but it is very difficult for users to master quickly, and it is difficult to speed up their operation. Summary of the invention
  • the present invention is directed to a method and apparatus for constructing an organic chemical structural formula to solve the problem of the difficulty in the operation of the related art input organic chemical structural formula.
  • a method for constructing an organic chemical structural formula comprising: obtaining a character string input by a user through a keyboard; and finding an organic chemical structure mapped by the character string in a pre-created code mapping set; The organic chemical structure is created by the organic chemical structure.
  • an apparatus for constructing an organic chemical structural formula comprising: an obtaining module, configured to acquire a character string input by a user through a keyboard; and a searching module, configured to search for a pre-created code mapping set An organic chemical structure mapped to a string; a module for creating an organic chemical structure using the organic chemical structure.
  • FIG. 1 shows a flow chart of a method for constructing an organic chemical structural formula in accordance with an embodiment of the present invention
  • FIG. 2 shows an input screenshot of an empty chemical block in accordance with a preferred embodiment of the present invention
  • FIG. 3 shows a schematic diagram of an input data structure definition in accordance with a preferred embodiment of the present invention
  • FIG. 4 shows a preferred embodiment in accordance with the present invention.
  • FIG. 5 shows an input screenshot of a chemical bond focus in accordance with a preferred embodiment of the present invention
  • FIG. 6 shows a schematic diagram of a keyed connection in accordance with a preferred embodiment of the present invention
  • a schematic diagram of a connection mode 1 of atoms in accordance with a preferred embodiment of the present invention is shown
  • FIG. 8 shows a schematic view of a connection mode 2 of atoms in accordance with a preferred embodiment of the present invention
  • FIG. 9 shows a preferred embodiment in accordance with the present invention.
  • FIG. 10 shows a schematic diagram of an apparatus for constructing an organic chemical structural formula according to an embodiment of the present invention.
  • FIG. 1 shows a flow chart of a method for constructing an organic chemical structural formula according to an embodiment of the present invention, including:
  • Step S10 obtaining a character string input by the user through a keyboard
  • Step S20 Find an organic chemical structure mapped by the string in the pre-created code mapping set
  • Step S30 creating an organic chemical structural formula with the organic chemical structure.
  • step S10 comprises: providing an interactive chemical typesetting interface; activating a keyboard input window; and monitoring input from the keyboard.
  • Figure 2 shows a preferred implementation in accordance with the present invention
  • the input screenshot of the empty chemical block (ie, no focus), input "wj" through the input window of Figure 2 you can output a variety of five-corner ring structure in the input window, which is convenient for users to choose.
  • the interface of the input method is presented to the user, which saves a large amount of interface area, and at the same time is more direct and rapid, and improves the ease of use and layout efficiency of chemical typesetting.
  • the activation of the keyboard input window can be a passive start mode, requires the user to perform an explicit operation, and is automatically turned off.
  • Figure 3 shows a schematic diagram of an input data structure definition in accordance with a preferred embodiment of the present invention.
  • the method further comprises: pre-creating a code mapping set, comprising a plurality of metadata, the metadata comprising: a structure type item: used to indicate that the focus is no focus, an atom or a key; the coding mapping item: used to indicate the mapping organic
  • the chemical structure string such as the benzene ring structure coded as bh, benhuan, etc.
  • Structure data item The organic chemical structure used to indicate the mapping, which can store the internal data of the organic chemical structure, the data of the connection point or the edge, and the like.
  • the data structure is relatively simple and can be easily implemented by computer programming.
  • the application starts the organic chemical structure input method, and transfers the current state to the input method.
  • the input method searches according to the current focus and code, and returns the content data of the selected organic chemical structure to the application, the application. Parse and connect data.
  • step S20 includes: determining whether a focus currently in the interactive chemical typesetting interface is a focusless (ie, an empty chemical block), an atom, or a key; and retrieving metadata in the encoded mapping set according to the determined focus and the input string Structure type item and code map item; extract the organic chemical structure from the structural data item of the retrieved metadata.
  • a focus currently in the interactive chemical typesetting interface is a focusless (ie, an empty chemical block), an atom, or a key
  • step S20 includes: determining whether a focus currently in the interactive chemical typesetting interface is a focusless (ie, an empty chemical block), an atom, or a key; and retrieving metadata in the encoded mapping set according to the determined focus and the input string Structure type item and code map item; extract the organic chemical structure from the structural data item of the retrieved metadata.
  • FIG. 4 shows an input screenshot of an atomic focus in accordance with a preferred embodiment of the present invention
  • FIG. 5 shows an input screenshot of a chemical key focus in accordance with a preferred embodiment of the present invention.
  • the preferred embodiment divides the focus into three cases of no focus, atom or key, and various organic chemical structural formulas can be edited.
  • step S30 comprises: when determining that the focus is out of focus, outputting the organic chemical structure in the structural data item in the interactive chemical typesetting interface.
  • the corresponding connection method cannot be selected according to the layout (ie, the interactive chemical layout interface), and the position after the insertion of the layout cannot be calculated according to the selected reference point, so
  • connection information when defining an empty chemical block state, and the appearance after inputting the layout should be consistent with the appearance and position of the input content in the input method dialog box (ie keyboard input port). For example, if the display is 1 0 in the input method window, then it should be after the input layout, but it should not be awkward.
  • its content is a WYSIWYG content definition, including various location objects of various ring classes.
  • step S30 comprises: when determining that the focus is an atom, comprising: connection mode 1, a many-to-many connection: creating a new chemical bond between the atom of the focus and the atom of the found organic chemical structure, determining the bond length of the new bond Equal to the default key length, determining the angular position of the new key based on the position of the atom on the interactive chemical layout interface and the information of the connected key;
  • Connection method 2 - for a connection delete the atom of the focus and its associated chemical bond, and replace it with the content of the organic chemical structure;
  • Connection method 3 many-to-one or one-to-many connection: directly connect the atoms of the focus with the atoms of the found organic chemical structure, and determine the position and angle after the connection according to the information of the interactive chemical layout interface.
  • connection points 7 to 9 are views showing the connection modes 1, 2, and 3 of atoms in accordance with a preferred embodiment of the present invention, wherein the structure after the addition is the found organic chemical structure.
  • step S30 includes: when determining that the focus is a key, connecting the key of the focus to the key of the found organic chemical structure, determining the key length of the connected key according to the information of the key of the focus, and according to the corresponding angle information Determine the location of the new key after the connection.
  • FIG. 6 is a schematic diagram showing a key connection manner according to a preferred embodiment of the present invention, and the input content can be selected according to the chemical key selected on the layout.
  • the information is calculated as the bond length of the chemical bond of the connected structure, and the connected position is calculated based on the corresponding angle information.
  • the found organic chemical structure is displayed in the keyboard input window, and the code is provided for user selection.
  • the content of this organic chemical structural input method is based on the focus of the organic chemical structure on the current layout.
  • the focus is on the atom and the focus is a chemical bond, enter the same code, the content is different, and will not be repeated. This makes it easy for the user to enter the desired organic chemical structure with a simple push of a button.
  • the re-rate is very low and the corresponding content can be found very quickly.
  • the method further comprises: interpreting the string as an operation command when determining that the focus is a plurality of atoms and/or keys; and executing an operation command on a plurality of atoms and/or keys of the focus.
  • interpreting the string when you input a "del" string, it is interpreted as a delete operation, and multiple atoms and/or keys of the focus are deleted.
  • an "xz" string when an "xz" string is input, it is interpreted as a rotation operation, and multiple atoms of the focus are / or key to rotate.
  • the preferred embodiment facilitates the editing of organic chemical structures.
  • Figure 10 is a schematic illustration of an apparatus for constructing an organic chemical structural formula, including:
  • the obtaining module 10 is configured to obtain a character string input by the user through a keyboard
  • the searching module 20 is configured to find an organic chemical structure mapped by the string in the pre-created code mapping set;
  • a module 30 is created for creating an organic chemical structure with an organic chemical structure.
  • the device improves the ease of use and layout efficiency of chemical typesetting.
  • the obtaining module 10 comprises: an interface module for providing an interactive chemical layout interface; a window module for activating a keyboard input window; and a monitoring module for monitoring input from the keyboard.
  • the apparatus further includes: an encoding module, configured to pre-create a code mapping set, which includes a plurality of metadata, the metadata includes: a structure type item: used to indicate that the focus is no focus, an atom or a key; the coding mapping item: A string used to indicate the mapping of an organic chemical structure; a structural data item: an organic chemical structure used to indicate a mapping.
  • an encoding module configured to pre-create a code mapping set, which includes a plurality of metadata
  • the metadata includes: a structure type item: used to indicate that the focus is no focus, an atom or a key
  • the coding mapping item A string used to indicate the mapping of an organic chemical structure
  • a structural data item an organic chemical structure used to indicate a mapping.
  • the searching module 20 includes: a focus module, configured to determine whether a focus currently in the interactive chemical typesetting interface is a focusless, atomic or key; a retrieval module, configured to retrieve the encoded mapping set according to the determined focus and the input string The structure type item and the coding map item of the metadata in the extraction module; and an extraction module, configured to extract an organic chemical structure from the structural data item of the retrieved metadata.
  • a focus module configured to determine whether a focus currently in the interactive chemical typesetting interface is a focusless, atomic or key
  • a retrieval module configured to retrieve the encoded mapping set according to the determined focus and the input string The structure type item and the coding map item of the metadata in the extraction module
  • an extraction module configured to extract an organic chemical structure from the structural data item of the retrieved metadata.
  • the creating module 30 comprises: a focusless module for outputting an organic chemical structure in the structural data item in the interactive chemical typesetting interface when determining that the focus is out of focus;
  • An atomic module, used to determine when the focus is an atom including: Many-to-many connections: Create a new chemical bond between the atom of the focus and the atom of the found organic chemical structure, and determine that the bond length of the new key is equal to the default bond length, Determining the angular position of the new key based on the position of the atom on the interactive chemical layout interface and the information of the connected key; one-to-one connection: deleting the atom of the focus and its associated chemical bond, and replacing it with the content of the organic chemical structure; One or one-to-many connection: directly joins the atoms of the focus with the atoms of the found organic chemical structure, and determines the position and angle after the connection according to the information of the interactive chemical layout interface;
  • a key module configured to: when the focus is a key, connect the key of the focus to the key of the found organic chemical structure, determine the key length of the connected key according to the information of the key of the focus, and determine the new key according to the corresponding angle information. The position of the key after the connection;
  • a selection module is used to display the found organic chemical structure in a keyboard input window when the organic chemical structure found is multiple, and provide a code for user selection.
  • the apparatus further includes: an interpretation module, configured to interpret the string as an operation command when determining that the focus is a plurality of atoms and/or keys; and executing the module, performing multiple atoms and/or keys on the focus point Operational commands.
  • an interpretation module configured to interpret the string as an operation command when determining that the focus is a plurality of atoms and/or keys
  • executing the module performing multiple atoms and/or keys on the focus point Operational commands.
  • the above-described embodiments of the present invention not only increase the efficiency of layout, but also reduce the learning difficulty of the user.
  • modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device so that they can be stored in The storage device is implemented by a computing device, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated into a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Pure & Applied Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Mathematical Optimization (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Physics (AREA)
  • Algebra (AREA)
  • Data Mining & Analysis (AREA)
  • Chemical & Material Sciences (AREA)
  • Crystallography & Structural Chemistry (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computing Systems (AREA)
  • User Interface Of Digital Computer (AREA)
  • Input From Keyboards Or The Like (AREA)

Description

技术领域
本发明涉及数字排版领域, 具体而言, 涉及用于构建有机化学结构 式的方法和装置。 背景技术
目前在交互式化学排版软件中,通常以釆用大量控件等图形界面的 方式来实现有机化学结构式的排版,这种方式要求用户操作鼠标点击图 形界面上的各种控件,以输入有机化学结构式。这种输入方式看似直观, 但是使用者想快速地掌握却非常困难, 并且很难提升其操作速度。 发明内容
本发明旨在提供一种用于构建有机化学结构式的方法和装置, 以解 决相关技术输入有机化学结构式的操作比较困难的问题。
在本发明的实施例中,提供了一种用于构建有机化学结构式的方法, 包括: 通过键盘获取用户输入的字符串; 在预先创建的编码映射集合查 找到字符串所映射的有机化学结构; 以该有机化学结构创建有机化学结 构式。
在本发明的实施例中,提供了一种用于构建有机化学结构式的装置, 包括: 获取模块, 用于通过键盘获取用户输入的字符串; 查找模块, 用 于在预先创建的编码映射集合查找到字符串所映射的有机化学结构; 创 建模块, 用于以该有机化学结构创建有机化学结构式。 釆用键盘输入有机化学结构式, 所以解决了相关技术输入有机化学结构 式的操作比较困难的问题, 提高了输入有机化学结构式的操作效率。 附图说明
此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的 一部分, 本发明的示意性实施例及其说明用于解释本发明, 并不构成对 本发明的不当限定。 在附图中:
图 1示出了根据本发明实施例的用于构建有机化学结构式的方法的 流程图;
图 2示出了根据本发明优选实施例的空化学块的输入截屏图; 图 3示出了根据本发明优选实施例的输入数据结构定义的示意图; 图 4示出了根据本发明优选实施例的原子焦点下的输入截屏图; 图 5示出了根据本发明优选实施例的化学键焦点下的输入截屏图; 图 6示出了根据本发明优选实施例的键键连接方式的示意图; 图 7示出了根据本发明优选实施例的原子的连接方式 1的示意图; 图 8示出了根据本发明优选实施例的原子的连接方式 2的示意图; 图 9示出了根据本发明优选实施例的原子的连接方式 3的示意图; 图 10 示出了根据本发明实施例的用于构建有机化学结构式的装置 的示意图。 具体实施方式
下面将参考附图并结合实施例, 来详细说明本发明。
图 1 示出了根据本发明实施例的用于构建有机化学结构式的方 法的流程图, 包括:
步骤 S 10 , 通过键盘获取用户输入的字符串;
步骤 S20 ,在预先创建的编码映射集合查找到字符串所映射的有 机化学结构;
步骤 S30 , 以该有机化学结构创建有机化学结构式。
现有技术中只能用鼠标操作来输入各种有机化学结构, 而本实 施例中, 将来自键盘的输入映射生成各种有机化学结构从而生成化 学结构式, 在交互式的化学排版软件里, 键盘的操作可以很大地提 高用户的效率, 省去了用鼠标寻找大量的各种有机化学结构的类型 和操作的按钮, 方便用户做出各种想要的结构出来, 提高了化学排 版的易用性和排版效率。
优选地, 步骤 S 10 包括: 提供交互式化学排版界面; 激活键盘 输入窗口; 监控来自键盘的输入。 图 2 示出了根据本发明优选实施 例的空化学块 (即无焦点) 的输入截屏图, 通过图 2 的输入窗口输 入 "wj" , 可以在输入窗口中输出各种五角的环状结构, 方便用户选 择。 通过将有机化学结构和其连接方式等进行编码, 通过输入法的 界面呈现给使用者, 节省了大量的界面面积, 同时更加地直接和快 速, 提高了化学排版的易用性和排版效率。 该键盘输入窗口的激活 可以是被动启动方式, 需要使用者显式的操作才能启动, 并且是自 动关闭。
图 3 示出了根据本发明优选实施例的输入数据结构定义的示意 图。 优选地, 本方法还包括: 预先创建编码映射集合, 其包括多个 元数据, 元数据包括: 结构类型项: 用于指示焦点是无焦点、 原子 或键; 编码映射项: 用于指示映射有机化学结构的字符串, 比如苯 环结构的编码为 bh, benhuan等; 结构数据项: 用于指示映射的有机 化学结构, 其中可以存储有机化学结构的内部数据, 连接点或者边 的数据等。 该数据结构比较简单, 很容易通过计算机编程来实现。 具体应用时, 应用程序启动本有机化学结构式输入法, 把当前状态 传给输入法, 输入法根据当前的焦点和编码进行检索, 把选中的有 机化学结构的内容数据回传给应用程序, 应用程序对数据进行解析 和连接。
优选地, 步骤 S20 包括: 确定当前在交互式化学排版界面中的 焦点是无焦点 (即空化学块)、 原子还是键; 根据确定的焦点和输入 的字符串检索编码映射集合中的元数据的结构类型项和编码映射 项; 从检索到的元数据的结构数据项中提取有机化学结构。
图 4示出了根据本发明优选实施例的原子焦点下的输入截屏图; 图 5 示出了根据本发明优选实施例的化学键焦点下的输入截屏图。 本优选实施例将焦点分为无焦点、 原子或键三种情况, 可以编辑各 种各样的有机化学结构式。
优选地, 步骤 S30 包括: 当确定焦点是无焦点时, 在交互式化 学排版界面中输出与结构数据项中的有机化学结构。 在空化学块状 态下, 无法根据版面 (即交互式化学排版界面) 的情况选择对应的 连接方式, 也无法根据选中的参考点计算插入版面后的位置, 所以 定义空化学块状态下无需提供连接信息, 在输入版面后的样子应该 与输入的内容在输入法对话框 (即键盘输^當口 ) 中显示的样子和 位置保持一致。 比如在输入法窗口中显示是 1 0 , 那么在输入版面 后也应该是 而不能是 Ο的样子。 如图 2所示, 其内容是所见即 所得的内容定义, 包括各种环类的各种位置对象。
优选地, 步骤 S30包括: 当确定焦点是原子时, 包括: 连接方式 1 , 多对多连接: 在焦点的原子与找到的有机化学结构 的原子间创建一个新的化学键, 确定新键的键长等于默认的键长, 根据交互式化学排版界面上原子的位置和连接的键的信息确定新键 的角度位置;
连接方式 2 , —对一连接: 删除焦点的原子及其相连的化学键, 并代之以有机化学结构的内容;
连接方式 3 , 多对一或一对多连接: 将焦点的原子与找到的有机 化学结构的原子直接连接合并, 并根据交互式化学排版界面的信息 确定连接后的位置和角度。
焦点是原子状态要求提供单一的连接原子点, 以供同版面上选 中的连接点进行连接。 因为化学键本身包含两原子, 版面上选中的 原子无法确认键的两个原子哪个是真正应该连接的原子, 所以原子 和键是不能连接的。 如图 3 所示, 其内容是提供了连接点的各种环 类结构等。 图 7-图 9示出了根据本发明优选实施例的原子的连接方 式 1、 2、 3 的示意图, 其中, 加号后的结构为查找到的有机化学结 构。
优选地, 步骤 S30 包括: 当确定焦点是键时, 将焦点的键与找 到的有机化学结构的键连接, 根据焦点的键的信息, 确定连接后的 键的键长, 并根据相应的角度信息确定新键的连接后的位置。
焦点是单个化学键状态要求提供一个供连接的键的信息。 同上 面的原因一样, 键和原子是不能连接的, 键和键是可以连接的, 都 得是——对应的关系才可以。 如图 4 所示, 其内容是提供了一个连 接边的各种环类结构等。 图 6 示出了根据本发明优选实施例的键键 连接方式的示意图, 对于输入的内容可以根据版面上选中的化学键 的信息, 计算出连接后结构的化学键的键长, 并根据相应的角度信 息计算连接后的位置。
上述实施例中, 如图 2-图 4所示, 当找到的有机化学结构为多 项时, 在键盘输入窗口中显示找到的有机化学结构, 并提供编码用 于用户选择。 本有机化学结构式输入法启动后的内容是根据当前版 面上有机化学结构式的焦点情况而定。 当焦点是原子和焦点是化学 键的时候, 输入同样的编码, 出来的内容不一样, 而且不会重复。 这方便了用户仅通过简单的按键选择, 即可输入期望的有机化学结 构。 另外, 由于内容是同焦点相关联的, 所以重码率很低, 很快能 找到相应的内容。
优选地, 本方法还包括: 当确定焦点是多个原子和 /或键时, 将 字符串解释为操作命令; 对焦点的多个原子和 /或键执行操作命令。 例如输入 "del" 字符串时, 则解释为删除操作, 将焦点的多个原子 和 /或键删除; 又例如输入 "xz" 字符串时, 则解释为旋转操作, 将 焦点的多个原子和 /或键旋转。 本优选实施例方便了对有机化学结构 式的编辑操作。
图 10示出了根据本发明实施例的用于构建有机化学结构式的装 置的示意图, 包括:
获取模块 10, 用于通过键盘获取用户输入的字符串;
查找模块 20 , 用于在预先创建的编码映射集合查找到字符串所 映射的有机化学结构;
创建模块 30, 用于以有机化学结构创建有机化学结构式。
本装置提高了化学排版的易用性和排版效率。
优选地, 获取模块 10包括: 界面模块, 用于提供交互式化学排 版界面; 窗口模块, 用于激活键盘输入窗口; 监控模块, 用于监控 来自键盘的输入。
优选地, 本装置还包括: 编码模块, 用于预先创建编码映射集 合, 其包括多个元数据, 元数据包括: 结构类型项: 用于指示焦点 是无焦点、 原子或键; 编码映射项: 用于指示映射有机化学结构的 字符串; 结构数据项: 用于指示映射的有机化学结构。 优选地, 查找模块 20包括: 焦点模块, 用于确定当前在交互式 化学排版界面中的焦点是无焦点、 原子还是键; 检索模块, 用于根 据确定的焦点和输入的字符串检索编码映射集合中的元数据的结构 类型项和编码映射项; 提取模块, 用于从检索到的元数据的结构数 据项中提取有机化学结构。
优选地, 创建模块 30包括: 无焦点模块, 用于当确定焦点是无 焦点时, 在交互式化学排版界面中输出与结构数据项中的有机化学 结构;
原子模块, 用于当确定焦点是原子时, 包括: 多对多连接: 在 焦点的原子与找到的有机化学结构的原子间创建一个新的化学键, 确定新键的键长等于默认的键长, 根据交互式化学排版界面上原子 的位置和连接的键的信息确定新键的角度位置; 一对一连接: 删除 焦点的原子及其相连的化学键, 并代之以有机化学结构的内容; 多 对一或一对多连接: 将焦点的原子与找到的有机化学结构的原子直 接连接合并, 并根据交互式化学排版界面的信息确定连接后的位置 和角度;
键模块, 用于当确定焦点是键时, 将焦点的键与找到的有机化 学结构的键连接, 根据焦点的键的信息, 确定连接后的键的键长, 并根据相应的角度信息确定新键的连接后的位置;
选择模块, 用于当找到的有机化学结构为多项时, 在键盘输入 窗口中显示找到的有机化学结构, 并提供编码用于用户选择。
优选地, 本装置还包括: 解释模块, 用于当确定焦点是多个原 子和 /或键时, 将字符串解释为操作命令; 执行模块, 用于对焦点的 多个原子和 /或键执行操作命令。
从以上的描述中可以看出, 本发明上述的实施例不仅增加了排 版的效率, 而且还降低了用户的学习难度。
显然, 本领域的技术人员应该明白, 上述的本发明的各模块或 各步骤可以用通用的计算装置来实现, 它们可以集中在单个的计算 装置上, 或者分布在多个计算装置所组成的网络上, 可选地, 它们 可以用计算装置可执行的程序代码来实现, 从而可以将它们存储在 存储装置中由计算装置来执行, 或者将它们分别制作成各个集成电 路模块, 或者将它们中的多个模块或步骤制作成单个集成电路模块 来实现。 这样, 本发明不限制于任何特定的硬件和软件结合。
以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领域的技术人员来说, 本发明可以有各种更改和变化。 凡在 本发明的精神和原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。

Claims

权利要求:
1.一种用于构建有机化学结构式的方法, 其特征在于, 包括: 通过键盘获取用户输入的字符串;
在预先创建的编码映射集合查找到所述字符串所映射的有机化学 结构;
以所述有机化学结构创建有机化学结构式。
2.根据权利要求 1所述的方法, 其特征在于, 通过键盘获取用户输 入的字符串包括:
提供交互式化学排版界面;
激活键盘输入窗口;
监控来自键盘的输入。
3.根据权利要求 2所述的方法, 其特征在于, 还包括:
预先创建所述编码映射集合,其包括多个元数据,所述元数据包括: 结构类型项: 用于指示焦点是无焦点、 原子或键;
编码映射项: 用于指示映射有机化学结构的字符串;
结构数据项: 用于指示映射的有机化学结构。
4.根据权利要求 3所述的方法, 其特征在于, 在预先创建的编码映 射集合查找到所述字符串所映射的有机化学结构包括:
确定当前在所述交互式化学排版界面中的焦点是无焦点、原子还是 键;
根据确定的焦点和所述输入的字符串检索所述编码映射集合中的 元数据的结构类型项和编码映射项;
从检索到的元数据的结构数据项中提取所述有机化学结构。
5.根据权利要求 4所述的方法, 其特征在于, 以所述有机化学结构 创建有机化学结构式包括: 当确定焦点是无焦点时,在所述交互式化学排版界面中输出与所述 结构数据项中的有机化学结构;
当确定焦点是原子时, 包括:
多对多连接:在焦点的原子与找到的有机化学结构中的标记可连接 的原子间创建一个新的化学键, 确定新键的键长等于默认的键长, 根据 所述交互式化学排版界面上原子的位置和连接的键的信息确定新键的 角度位置;
一对一连接: 删除所述焦点的原子及其相连的化学键, 并代之以所 述有机化学结构的内容;
多对一或一对多连接:将焦点的原子与找到的有机化学结构中标记 可连接的原子直接连接合并,并根据所述交互式化学排版界面的信息确 定连接后的位置和角度;
当确定焦点是键时,将焦点的键与找到的有机化学结构中标记可连 接的键连接, 根据所述焦点的键的信息, 确定连接后的键的键长, 并根 据相应的角度信息确定新键的连接后的位置;
其中, 当所述找到的有机化学结构为多项时, 在所述键盘输入窗口 中显示所述找到的有机化学结构, 并提供编码用于用户选择。
6.根据权利要求 1所述的方法, 其特征在于, 还包括:
当确定所述焦点是多个原子和 /或键时, 将所述字符串解释为操作 命令;
对所述焦点的多个原子和 /或键执行所述操作命令。
7.—种用于构建有机化学结构式的装置, 其特征在于, 包括: 获取模块, 用于通过键盘获取用户输入的字符串;
查找模块,用于在预先创建的编码映射集合查找到所述字符串 射的有机化学结构;
创建模块, 用于以所述有机化学结构创建有机化学结构式。
8.根据权利要求 7所述的装置, 其特征在于, 所述获取模块包括: 界面模块, 用于提供交互式化学排版界面;
窗口模块, 用于激活键盘输入窗口;
监控模块, 用于监控来自键盘的输入。
9.根据权利要求 8所述的装置, 其特征在于, 还包括:
编码模块, 用于预先创建所述编码映射集合, 其包括多个元数据, 所述元数据包括:
结构类型项: 用于指示焦点是无焦点、 原子或键;
编码映射项: 用于指示映射有机化学结构的字符串;
结构数据项: 用于指示映射的有机化学结构。
10. 根据权利要求 9所述的装置, 其特征在于, 所述查找模块包 括:
焦点模块,用于确定当前在所述交互式化学排版界面中的焦点是无 焦点、 原子还是键;
检索模块,用于根据确定的焦点和所述输入的字符串检索所述编码 映射集合中的元数据的结构类型项和编码映射项;
提取模块,用于从检索到的元数据的结构数据项中提取所述有机化 学结构。
PCT/CN2011/084595 2010-12-24 2011-12-24 用于构建有机化学结构式的方法和装置 WO2012083886A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
EP11850662.5A EP2657810A4 (en) 2010-12-24 2011-12-24 METHOD AND DEVICE FOR CONSTRUCTING STRUCTURAL FORMULA OF ORGANIC CHEMISTRY

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010622069.X 2010-12-24
CN201010622069.XA CN102541286B (zh) 2010-12-24 2010-12-24 用于构建有机化学结构式的方法和装置

Publications (1)

Publication Number Publication Date
WO2012083886A1 true WO2012083886A1 (zh) 2012-06-28

Family

ID=46313193

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/084595 WO2012083886A1 (zh) 2010-12-24 2011-12-24 用于构建有机化学结构式的方法和装置

Country Status (3)

Country Link
EP (1) EP2657810A4 (zh)
CN (1) CN102541286B (zh)
WO (1) WO2012083886A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110390997A (zh) * 2019-07-17 2019-10-29 成都火石创造科技有限公司 一种化学分子式拼接方法
CN111580684A (zh) * 2019-02-18 2020-08-25 福建天泉教育科技有限公司 基于Web技术实现多学科智能键盘的方法、存储介质

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105677137B (zh) * 2014-11-20 2019-02-01 北大方正集团有限公司 无机化学分子的显示方法和装置
CN110413814A (zh) * 2019-07-12 2019-11-05 智慧芽信息科技(苏州)有限公司 图像数据库建立方法、搜索方法、电子设备和存储介质
CN115796120B (zh) * 2023-02-08 2023-05-02 药融云数字科技(成都)有限公司 一种化学结构式绘制方法、键盘及终端

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1164698A (zh) * 1996-12-15 1997-11-12 陈永波 非国家标准汉字字符编码输入技术
CN101261540A (zh) * 2007-03-05 2008-09-10 赵宝璋 一种适用速录师、录入员及一般人员的汉字拼音速录方法

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6421612B1 (en) * 1996-11-04 2002-07-16 3-Dimensional Pharmaceuticals Inc. System, method and computer program product for identifying chemical compounds having desired properties
US6584412B1 (en) * 1999-08-04 2003-06-24 Cambridgesoft Corporation Applying interpretations of chemical names
US7924270B2 (en) * 2006-02-06 2011-04-12 Abacalab, Inc. Apparatus and method for mobile graphical cheminformatic
CN101504679B (zh) * 2009-03-19 2010-07-21 西安近代化学研究所 一种含能化合物的计算机辅助设计系统
US8407578B2 (en) * 2009-09-23 2013-03-26 International Business Machines Corporation Chemical web browser

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1164698A (zh) * 1996-12-15 1997-11-12 陈永波 非国家标准汉字字符编码输入技术
CN101261540A (zh) * 2007-03-05 2008-09-10 赵宝璋 一种适用速录师、录入员及一般人员的汉字拼音速录方法

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
CAI, WENSHENG ET AL.: "2-D Graph Input Method for Organic Structures", CHEMISTRY, no. 12, December 1992 (1992-12-01) *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111580684A (zh) * 2019-02-18 2020-08-25 福建天泉教育科技有限公司 基于Web技术实现多学科智能键盘的方法、存储介质
CN110390997A (zh) * 2019-07-17 2019-10-29 成都火石创造科技有限公司 一种化学分子式拼接方法
CN110390997B (zh) * 2019-07-17 2023-05-30 成都火石创造科技有限公司 一种化学分子式拼接方法

Also Published As

Publication number Publication date
EP2657810A4 (en) 2014-01-22
EP2657810A1 (en) 2013-10-30
CN102541286A (zh) 2012-07-04
CN102541286B (zh) 2015-09-16

Similar Documents

Publication Publication Date Title
CN102609271B (zh) 一种元数据驱动的SaaS应用的可视化定制方法及系统
US10452768B2 (en) Managing source annotation metadata
US20160092499A1 (en) Object mapping using intrinsic persistence metadata and pattern-based rules for mapping transformation
CN109189383A (zh) 代码文件的生成方法、装置、计算设备和存储介质
CN107430502A (zh) 由帮助信息动态推断用于软件应用的语音命令
CN107408010A (zh) 由电子设备的用户操纵动态推断软件操作的语音命令
CN105593844B (zh) 运行时定制基础设施
WO2012083886A1 (zh) 用于构建有机化学结构式的方法和装置
US9069830B2 (en) Retrieving data objects
US20080082962A1 (en) User interface for defining a text file transformation
US20090172603A1 (en) Method and apparatus for information retrieval
CN106030492A (zh) 与电子表格的启用触摸/手势的交互
WO2006098031A1 (ja) キーワード管理装置
WO2019153514A1 (zh) 业务系统动态生成方法、装置、计算机设备及存储介质
US20210109979A1 (en) Data-driven navigation and navigation routing
AU2017216247B2 (en) Systems and methods for using entity/relationship model data to enhance user interface engine
US11940988B2 (en) Structured data collection, presentation, validation and workflow management
US8751952B2 (en) Dataflow-driven service composition at the presentation layer
CN106663090A (zh) 在编译期间将呈现元数据转换成浏览器可渲染格式
CN112839261A (zh) 一种提升语音指令匹配度的方法及显示设备
CN109408658A (zh) 表情图片提示方法、装置、计算机设备及存储介质
US20190065517A1 (en) File preview and selective access to file content of archived file
KR102309211B1 (ko) 개발 시스템에서의 시맨틱 콘텐츠 액세스 기법
CN108228161A (zh) 一种扩展结构化命令行的系统和方法
JP2009211599A (ja) マッピング定義作成システムおよびマッピング定義作成プログラム

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11850662

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

REEP Request for entry into the european phase

Ref document number: 2011850662

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2011850662

Country of ref document: EP