WO2014059655A1 - 终端和粘贴方法 - Google Patents

终端和粘贴方法 Download PDF

Info

Publication number
WO2014059655A1
WO2014059655A1 PCT/CN2012/083188 CN2012083188W WO2014059655A1 WO 2014059655 A1 WO2014059655 A1 WO 2014059655A1 CN 2012083188 W CN2012083188 W CN 2012083188W WO 2014059655 A1 WO2014059655 A1 WO 2014059655A1
Authority
WO
WIPO (PCT)
Prior art keywords
edit box
data
attribute
content
edit
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.)
Ceased
Application number
PCT/CN2012/083188
Other languages
English (en)
French (fr)
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.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Dongguan Yulong Telecommunication Technology Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Dongguan Yulong Telecommunication Technology 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 Yulong Computer Telecommunication Scientific Shenzhen Co Ltd, Dongguan Yulong Telecommunication Technology Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to PCT/CN2012/083188 priority Critical patent/WO2014059655A1/zh
Priority to CN201280076779.4A priority patent/CN104769580B/zh
Publication of WO2014059655A1 publication Critical patent/WO2014059655A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/543User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting

Definitions

  • the present invention relates to the field of data processing technologies, and in particular, to a terminal and a pasting method. Background technique
  • the invention is based on the above problems, and proposes a new pasting technology, which can intelligently select and paste data from the copied content according to the attributes of the target edit box, thereby preventing the user from performing between the content acquisition interface and the paste interface. Switch operations repeatedly.
  • the present invention provides a terminal, including: a content copying unit, configured to copy part or all of the content in the screen interface of the terminal; and a content attribute analyzing unit, configured to analyze feature attributes of the copied content;
  • An edit box determining unit configured to determine, according to the received paste command, an edit box for pasting the copy content;
  • an edit box attribute analysis unit configured to analyze an attribute of the edit box determined by the edit box determining unit;
  • Unit for The feature attribute of the copied content is matched with the attribute of the edit box, and data matching the attribute of the edit box is extracted from the copied content according to the matching result, and pasted into the edit box.
  • the following content is explained by taking copy as an example.
  • the user can directly copy all the contents of the interface, or manually select the content of the selected part.
  • the copied content can be intelligently analyzed to select the correct and valid data from which to be pasted into the corresponding edit box.
  • the copied content may include text data, such as Chinese characters, numbers, letters, special characters, etc., and may also include multimedia data, such as pictures, audio, video files, etc., and the feature data of the content includes the name, size, content, type, and the like of the data. Etc., to match the properties of the edit box.
  • the method further includes: an application attribute setting unit, configured to preset an associated attribute for an application in the terminal; and the edit box attribute analysis unit includes: applying an attribute analysis a unit, configured to analyze an application to which the edit box belongs, and use a preset attribute of the application as an attribute of the edit box.
  • the edit box attribute analysis unit includes: a text recognition subunit, a character for identifying a position associated with the edit box, and determining an attribute of the edit box according to the text .
  • the position associated with the edit box includes an edit box, an edit box, an edit box left or right, etc., for prompting the user to input or paste data; and the terminal is for the text.
  • the method further includes: an edit box attribute setting unit, configured to preset an associated attribute for each edit box; and the edit box attribute analysis unit is configured to: an attribute acquisition subunit, And an edit box for pasting the copied content determined according to the edit box determining unit, and acquiring a corresponding preset attribute.
  • the attributes of each edit box can be directly set, and the content input (recording or pasting) can be defined from the code layer, for example, only an input box is allowed to input numbers, and then the copy content is Other Chinese characters, characters, etc. in the list will not be pasted into the edit box.
  • the content attribute analysis unit includes: data identification; a mapping table establishing subunit, configured to establish a corresponding data structure mapping table according to the recognition result of the data identification subunit, to use Extracting data matching the attribute of the edit box from the copied content and pasting into the edit box.
  • the established data structure mapping table includes data, feature attributes, and may also include other contents, and construct a relationship between the contents, so as to be accurate when matching the attributes of the edit box.
  • the corresponding feature attributes are obtained, so as to accurately filter the data that needs to be pasted into the edit box.
  • the method further includes: a data display unit, configured to display, in a list form, all matching items in a case where there are multiple data matching the currently operated edit box in the copied content Data; and a data selection unit, configured to select at least one of the items to be pasted into the edit box of the current operation according to the received selection command.
  • the edit box attribute analysis unit is configured to: In the case that the screen interface includes a plurality of edit boxes, the attributes of all the edit boxes are analyzed; and the data pasting unit is configured to: when the terminal receives a paste command for any edit box, according to the copy content The matching relationship between the data in the plurality of edit boxes and the plurality of edit boxes, the copied content is respectively pasted into the matching edit box in the screen interface.
  • a pasting method comprising: copying part or all of the content in the screen interface of the terminal; analyzing characteristic attributes of the copied content; determining, according to the received pasting command, for pasting Copying an edit box of the content, and analyzing attributes of the edit box; matching feature attributes of the copy content with attributes of the edit box, and extracting the edit from the copy content according to a matching result
  • the properties of the box match the data to be pasted into the edit box.
  • the following content is explained by taking copy as an example.
  • the user can directly copy all the contents of the interface, or manually select the content of the selected part.
  • the copied content can be intelligently analyzed to select the correct and valid data from which to be pasted into the corresponding edit box.
  • the copied content may include text data, such as Chinese characters, numbers, letters, special characters, etc., and may also include multimedia data, such as pictures, audio, video files, etc., and the feature data of the content includes the name, size, content, type, and the like of the data. Etc., to match the properties of the edit box.
  • the method before analyzing the edit box, further includes: presetting an associated attribute for an application in the terminal; and entering the edit box
  • the step of line analysis includes: analyzing an application to which the edit box belongs, and using a preset attribute of the application as an attribute of the edit box.
  • the step of analyzing the edit box comprises: identifying a text of a position associated with the edit box, and determining an attribute of the edit box according to the text.
  • the position associated with the edit box includes an edit box, an edit box, an edit box left or right, etc., for prompting the user to input or paste data; and the terminal is for the text.
  • the terminal will automatically paste the name data "Li Xiaoming” obtained in this way into the edit box corresponding to "name", but for other phone numbers and other data, it is not necessary. , may be used for smart pasting of other edit boxes.
  • the method before analyzing the edit box, the method further includes: presetting an associated attribute for each edit box; and analyzing the edit box includes: determining according to the determined An edit box for pasting the copied content, and obtaining a corresponding preset attribute.
  • the attributes of each edit box can be directly set, and the content input (recording or pasting) can be defined from the code layer, for example, only an input box is allowed to input numbers, and then the copy content is Other Chinese characters, characters, etc. in the list will not be pasted into the edit box.
  • the step of analyzing the feature attribute of the copied content includes: identifying data included in the copied content and a feature attribute corresponding to each data, and according to the Establishing a corresponding data structure mapping table; and the pasting method further includes: extracting, according to the data structure mapping table, data matching the attribute of the edit box from the copied content, to paste into the edit box in.
  • the established data structure mapping table includes data, feature attributes, and may also include other contents, and construct a relationship between the contents, so as to be accurate when matching the attributes of the edit box.
  • the corresponding feature attributes are obtained, so as to accurately filter the data that needs to be pasted into the edit box.
  • the method further includes: displaying, for a currently operated edit box, all the matched data in a list form if there are multiple matching data in the copied content, and according to the received Select the command and select at least one of them to paste into the edit box for the current operation.
  • the method further includes: if the screen interface includes multiple edit boxes, analyzing attributes of all the edit boxes; and when the terminal receives a paste command for any edit box, And according to the matching relationship between the data in the copied content and the plurality of edit boxes, all the data in the copied content are respectively pasted into the matching edit boxes in the screen interface.
  • FIG. 1 shows a block diagram of a terminal in accordance with an embodiment of the present invention
  • FIG. 2 shows a flow chart of a pasting method in accordance with an embodiment of the present invention
  • 3A through 3D illustrate a smart-paste user interface illustration in accordance with an embodiment of the present invention.
  • FIG. 1 shows a block diagram of a terminal in accordance with an embodiment of the present invention.
  • a terminal 100 includes: a content copying unit 102, configured to copy part or all of content in a screen interface of the terminal 100; a content attribute analyzing unit 104, configured to The edit box determination unit 106 is configured to determine, according to the received paste command, an edit box for pasting the copy content; the edit box attribute analysis unit 108 is configured to analyze the edit box determination unit 106. The attribute of the edit box is determined; the data pasting unit 110 is configured to match the feature attribute of the copy content with the attribute of the edit box, and extract the edit box from the copy content according to the matching result. The properties match the data to be pasted into the edit box.
  • the following content is explained by taking copy as an example.
  • the user can directly copy all the contents of the interface, or manually select the content of the selected part.
  • the copied content can be intelligently analyzed to select the correct and valid data from which to be pasted into the corresponding edit box.
  • the copied content may include text data such as Chinese characters, numbers, letters, special characters, etc., and may also include multimedia data such as pictures, audio, video files, etc.
  • the feature data includes the name, size, content, type, and so on of the data to match the properties of the edit box.
  • the method further includes: an application attribute setting unit 1 12, configured to preset an associated attribute for an application in the terminal 100; and the edit box attribute analysis unit 108 includes: The application attribute analysis sub-unit 1082 is configured to analyze an application to which the edit box belongs, and use a preset attribute of the application as an attribute of the edit box.
  • the edit box attribute analysis unit 108 includes: a text recognition sub-unit 1084, a character for identifying a position associated with the edit box, and determining the edit box according to the text. Attributes.
  • the position associated with the edit box includes an edit box, an edit box, an edit box left or right, and the like for prompting the user to input or paste data; and the terminal 100 pairs the characters.
  • Automatic identification you can determine the properties of the edit box to determine what data should be selected for pasting. For example, in the new interface of the address book, when the name of "name" is displayed on the left side of the edit box for which the name is to be input, the terminal 100 searches for "I am", "name” and the corresponding last name in the copied content. For example, “I am Li Xiaoming, the phone number is", then the terminal 100 will automatically paste the name data "Li Xiaoming" obtained from this to
  • the "name” corresponds to the edit box, but for other phone numbers and other data, it is not necessary for this, and may be used for smart pasting of other edit boxes.
  • the method further includes: an edit box attribute setting unit 114, configured to preset an associated attribute for each edit box; and the edit box attribute analysis unit 108 is configured to: The unit 1086 is configured to obtain an corresponding preset attribute according to the edit box determined by the edit box determining unit 106 for pasting the copied content.
  • each edit box can be directly set, and the content input (entry or paste) can be defined from the code layer, for example, only an edit box allows If you enter a number, other Chinese characters, characters, etc. in the copied content will not be pasted into the edit box.
  • the content attribute analyzing unit 104 includes: a data identifying subunit 1042, configured to identify data included in the copied content and a feature attribute corresponding to each data; a mapping table establishing subunit 1044, For establishing a corresponding data structure mapping table according to the recognition result of the data identification subunit 1042, for extracting data matching the attribute of the edit box from the copied content, and pasting to the edit In the box.
  • the established data structure mapping table includes data, feature attributes, and may also include other contents, and construct a relationship between the contents, so as to be accurate when matching the attributes of the edit box.
  • the corresponding feature attributes are obtained, so as to accurately filter the data that needs to be pasted into the edit box.
  • the method further includes: a data display unit 1 16, configured to display all the phases in a list form if there are multiple data matching the currently operated edit box in the copied content. Matching data; and a data selecting unit 118, configured to select at least one of the items to be pasted into the edit box of the current operation according to the received selection command.
  • the edit box attribute analysis unit 108 is configured to: analyze the attributes of all the edit boxes in a case where the screen interface includes a plurality of edit boxes; and the data pasting unit 110: when the terminal 100 receives a paste command for an arbitrary edit box, according to a matching relationship between the data in the copy content and the plurality of edit boxes, copying the copy content to the copy All data in the content is individually pasted into the matching edit box in the screen interface.
  • FIG. 2 shows a flow chart of a pasting method in accordance with an embodiment of the present invention.
  • the pasting method includes: Step 202: copy some or all of the content in the screen interface of the terminal; Step 204, analyze the feature attribute of the copied content; Step 206, according to receiving a paste command to determine an edit box for pasting the copy content, and analyzing attributes of the edit box; Step 208, matching feature attributes of the copy content with attributes of the edit box, and matching according to As a result, data matching the attribute of the edit box is extracted from the copied content to be pasted into the edit box.
  • the following content is explained by taking copy as an example.
  • the user can directly copy all the contents of the interface, or manually select the content of the selected part.
  • the copied content can be intelligently analyzed to select the correct and valid data from which to be pasted into the corresponding edit box.
  • the copied content may include text data, such as Chinese characters, numbers, letters, special characters, etc., and may also include multimedia data, such as pictures, audio, video files, etc., and the feature data of the content includes the name, size, content, type, and the like of the data. Etc., to match the properties of the edit box.
  • steps 204 and 206 herein do not refer to the sequence of implementation, but indicate the flow of the solution development, for example, to declare the feature attributes for the copied content by step 204 and step 206, respectively. And analysis of the properties of the edit box to implement subsequent matching and pasting steps. In fact, the order between the steps in steps 202 to 208 is related to the actual algorithm used, but obviously belongs to one of the embodiments of the technical solution of the present invention.
  • the method before analyzing the edit box, further includes: presetting an associated attribute for an application in the terminal; and analyzing the edit box includes: The application to which the edit box belongs is analyzed, and the preset attribute of the application is used as an attribute of the edit box.
  • the step of analyzing the edit box comprises: identifying a text of a position associated with the edit box, and determining an attribute of the edit box according to the text.
  • the position associated with the edit box includes an edit box, an edit box, an edit box left or right, etc., for prompting the user to input or paste data; and the terminal is for the text.
  • the terminal will automatically paste the name data "Li Xiaoming” obtained in this way into the edit box corresponding to "name", but for other phone numbers and other data, it is not necessary. , may be used for smart pasting of other edit boxes.
  • the method before analyzing the edit box, the method further includes: presetting an associated attribute for each edit box; and analyzing the edit box includes: determining according to the determined An edit box for pasting the copied content, and obtaining a corresponding preset attribute.
  • the attributes of each edit box can be directly set, and the content input (recording or pasting) can be defined from the code layer, for example, only an input box is allowed to input numbers, and then the copy content is Other Chinese characters, characters, etc. in the list will not be pasted into the edit box.
  • the step of analyzing the feature attribute of the copied content includes: identifying data included in the copied content and a feature attribute corresponding to each data, and establishing a corresponding data structure mapping table accordingly;
  • the pasting method further includes: extracting, according to the data structure mapping table, data matching the attribute of the edit box from the copied content, to paste into the edit box.
  • the established data structure mapping table includes data, feature attributes, and may also include other contents, and construct a relationship between the contents, so as to be accurate when matching the attributes of the edit box.
  • the corresponding feature attributes are obtained, so as to accurately filter the data that needs to be pasted into the edit box.
  • the method further includes: displaying, for a currently operated edit box, all the matched data in a list form if there are multiple matching data in the copied content, and according to the received Select the command and select at least one of them to paste into the edit box for the current operation.
  • the method further includes: if the screen interface includes multiple edit boxes, analyzing attributes of all the edit boxes; and when the terminal receives a paste command for any edit box, And according to the matching relationship between the data in the copied content and the plurality of edit boxes, all the data in the copied content are respectively pasted into the matching edit boxes in the screen interface.
  • Figs. 3A to 3D show schematic views of a user interface of smart paste according to an embodiment of the present invention.
  • the user needs to select content that needs to be pasted onto other interfaces from the screen interface of the terminal.
  • the content can be obtained by copying or cutting.
  • the method of "copying" is taken as an example.
  • the copied content 302 that can be obtained by the user operation may include various types, such as text content 302A and multimedia content 302B, wherein the text content 302A is a Chinese character, a number, a letter, a character, etc., and the multimedia content 302B may include a picture, an audio. , video and other files.
  • the terminal may start analyzing it, or may perform analysis when the user pastes the copied content 302 to another interface.
  • the process of performing the analysis it is determined that the copied content 302 includes data, the type and content of each data, and the corresponding data structure mapping table may be constructed according to the analysis result, as shown in Table 1:
  • the data in the copied content 302 can be accurately identified and analyzed by a preset feature similar to the "identification feature" column therein, and the data is stored in the data structure mapping table, thereby When matching the properties of the edit box, the data can be searched quickly and accurately.
  • the data structure mapping table herein may be pre-stored in the terminal. After the user performs the copy operation, the terminal compares the copied content 302 with the content in the data structure mapping table, thereby obtaining a corresponding matching result. .
  • the terminal will automatically select the matching data from the copied content 302 to Paste into the edit box 304.
  • the first type is identified by the text associated with edit box 304. For example, when the user chooses The edit box 304 in the upper left corner of Figure 3B is selected, and the edit box 304 itself is used to fill in
  • the "name” of the "name” is the text associated with the edit box 304, and is used to perform function prompting on the user, and can also be used for automatic recognition of the terminal at this time to determine the edit box.
  • 304 corresponding attribute - should enter the data related to "name”. It should be noted that the text here may not only be located above the edit box 304, but may also exist on the left or right side of the edit box 304, or in the edit box 304, and may be preset by a similar association relationship, thereby facilitating the terminal. Accurate identification.
  • each edit box 304 is directly set. For example, for the edit box 304 which should be input "email”, the content of the paste must meet the requirements of the email address, such as "@".
  • the application of the edit box 304 can be identified by using the attribute of the application as an attribute of the edit box 304.
  • the edit box 304 at this time belongs to the "dial pad", and in the dial pad, only the phone number (corresponding to the number) or the system function code (corresponding to the number and the characters *, #, such as When the mobile communication international identification code of the terminal is called by inputting *#06#, when the copied content 302 is pasted to the edit box 304, only the character string conforming to the rule, such as the telephone number of "18987654321", will be pasted.
  • the edit box 304 belongs to the "dial pad", and in the dial pad, only the phone number (corresponding to the number) or the system function code (corresponding to the number and the characters *, #, such as When the mobile communication international identification code of the terminal is called by inputting *#06#, when the copied content 302 is pasted to the edit box 304, only the character string conforming to the rule, such as the telephone number of "18987654321", will be
  • the edit box 304 at this time belongs to the "microblog", and in the microblog, any type of text is allowed to be input, and the multimedia file can also be added as an attachment, when the user will copy as shown in FIG. 3A.
  • the text content 302A can all be pasted in the edit box 304, and the terminal automatically pastes the multimedia content 302B as an attachment to the text content 302A.
  • the user when the user performs the pasting of the copied content 302, if there are multiple edit boxes 304 on the screen interface, in one case, the user is required to perform a "paste" operation on each edit box 304 that needs to be operated, for example, the user will Copy the content 302 to the edit box corresponding to "Name" At 304, only "Zhang San” will be pasted into the edit box 304; in another case, the user only needs to perform a "paste” operation on any of the edit boxes 304, and the terminal will be based on the attributes of all the edit boxes 304.
  • the present invention provides a terminal and a pasting method, which can intelligently select and paste data from the copied content according to the attributes of the target edit box, thereby preventing the user from repeatedly switching between the content acquisition interface and the paste interface. operating.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • User Interface Of Digital Computer (AREA)
  • Document Processing Apparatus (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明提供了一种终端,包括:内容复制单元,用于对终端的屏幕界面中的部分或全部内容进行复制;内容属性分析单元,用于分析复制内容的特征属性;编辑框确定单元,用于根据接收到的粘贴命令,确定用于粘贴复制内容的编辑框;编辑框属性分析单元,用于分析编辑框确定单元确定的编辑框的属性;数据粘贴单元,用于将复制内容的特征属性与编辑框的属性进行匹配,并根据匹配结果从复制内容中提取与编辑框的属性相匹配的数据,以粘贴至编辑框中。本发明还提出了一种粘贴方法。通过本发明的技术方案,可以根据目标编辑框的属性,智能地从复制内容中进行数据选择和粘贴,从而避免用户在内容获取界面和粘贴界面之间进行反复切换操作。

Description

终端和粘贴方法 技术领域
本发明涉及数据处理技术领域, 具体而言, 涉及一种终端和一种粘贴 方法。 背景技术
在相关技术中, 用户在进行数据粘贴时, 需要首先选择数据, 进行复 制或剪切后, 将该数据转移至剪贴板, 再到目标界面上, 将剪贴板中的数 据粘贴至目标界面上的编辑框中。
但上述操作存在一些缺陷: 用户显然每次进行粘贴时, 都是并且只能 是将剪贴板中的内容全部粘贴至目标编辑框中, 因此, 当用户需要将同一 个界面内的多个数据分别粘贴至目标界面上的多个目标编辑框中时, 则需 要多次反复地进行复制 /剪切、 粘贴以及界面的转换。
因此, 需要一种新的粘贴技术, 可以根据目标编辑框的属性, 智能地 从复制内容中进行数据选择和粘贴, 从而避免用户在内容获取界面和粘贴 界面之间进行反复切换操作。 发明内容
本发明正是基于上述问题, 提出了一种新的粘贴技术, 可以根据目标 编辑框的属性, 智能地从复制内容中进行数据选择和粘贴, 从而避免用户 在内容获取界面和粘贴界面之间进行反复切换操作。
有鉴于此, 本发明提出了一种终端, 包括: 内容复制单元, 用于对所 述终端的屏幕界面中的部分或全部内容进行复制; 内容属性分析单元, 用 于分析复制内容的特征属性; 编辑框确定单元, 用于根据接收到的粘贴命 令, 确定用于粘贴所述复制内容的编辑框; 编辑框属性分析单元, 用于分 析所述编辑框确定单元确定的编辑框的属性; 数据粘贴单元, 用于将所述 复制内容的特征属性与所述编辑框的属性进行匹配, 并根据匹配结果从所 述复制内容中提取与所述编辑框的属性相匹配的数据, 以粘贴至所述编辑 框中。
在该技术方案中, 除了复制, 还可以通过其他的如剪切等方式, 以实 现对界面中的内容的获取。 以下内容以复制为例进行说明。 用户可以直接 复制界面内的所有内容, 也可以进行手动选择后, 再获取选中部分的内 容。 通过对复制内容的特征属性和编辑框的属性进行分析和匹配, 从而能 够对复制内容进行智能地分析, 以便从中选择正确有效的数据, 以粘贴至 相应的编辑框中。 复制内容可以包括文本数据, 如汉字、 数字、 字母、 特 殊字符等, 也可以包括多媒体数据, 如图片、 音频、 视频文件等, 则内容 的特征数据包括这些数据的名称、 大小、 内容、 类型等等, 以便与编辑框 的属性进行匹配。
在上述技术方案中, 优选地, 还包括: 应用属性设定单元, 用于为所 述终端中的应用程序预设定相关联的属性; 以及所述编辑框属性分析单元 包括: 应用属性分析子单元, 用于分析所述编辑框所属的应用程序, 并将 所述应用程序的预设属性作为所述编辑框的属性。
在该技术方案中, 一些应用程序本身存在对于粘贴或输入的数据的设 定, 比如在拨号盘中只能为数字或特殊字符, 其他则没有实际意义; 在短 信中则能够粘贴文本、 多媒体文件等多种类型的数据。 因此, 通过对这些 应用程序的属性进行分析, 便可直接作为相应的编辑框的属性, 以实现对 复制内容的智能筛选。
在上述技术方案中, 优选地, 所述编辑框属性分析单元包括: 文字识 别子单元, 用于识别与所述编辑框相关联的位置的文字, 并根据所述文字 确定所述编辑框的属性。
在该技术方案中, 与编辑框相关联的位置包括编辑框内、 编辑框上 方、 编辑框左方或右方等等, 用于对用户输入或粘贴数据进行提示; 而通 过终端对这些文字的自动识别, 即可确定该编辑框的属性, 以确定应该选 择何种数据进行粘贴。 比如在通讯录的新建界面中, 在需要输入姓名的编 辑框的左方显示出 "姓名" 字样, 那么终端会在复制内容中搜索 "我 是" 、 "名为" 以及相应的姓氏字样, 比如 "我是李小明, 电话号码 是…… " , 则终端会自动将据此得到的姓名数据 "李小明" 粘贴至 "姓 名" 对应的编辑框中, 而对于其他的电话号码等数据, 则不用于此, 可能 用于其他编辑框的智能粘贴。
在上述技术方案中, 优选地, 还包括: 编辑框属性设定单元, 用于为 每个编辑框预设定相关联的属性; 以及所述编辑框属性分析单元用于: 属 性获取子单元, 用于根据所述编辑框确定单元确定的用于粘贴所述复制内 容的编辑框, 获取相应的预设属性。
在该技术方案中, 可以直接对每个编辑框的属性进行设定, 具体可以 从代码层实现内容的输入(录入或粘贴) 限定, 比如某个编辑框中只允许 输入数字, 则对于复制内容中的其他的汉字、 字符等, 都不会被粘贴至该 编辑框中。
在上述技术方案中, 优选地, 所述内容属性分析单元包括: 数据识别 性; 映射表建立子单元, 用于根据所述数据识别子单元的识别结果, 建立 对应的数据结构映射表, 以用于从所述复制内容中提取与所述编辑框的属 性相匹配的数据, 并粘贴至所述编辑框中。
在该技术方案中, 建立的数据结构映射表中包括数据、 特征属性, 还 可以包括其他一些内容, 并在这些内容之间构建相互关系, 以便于在与编 辑框的属性进行匹配时, 可以准确地根据该数据结构映射表来获取相应的 特征属性, 实现对需要粘贴至编辑框内的数据的准确筛选。
在上述技术方案中, 优选地, 还包括: 数据显示单元, 用于在所述复 制内容中存在多项与当前操作的编辑框相匹配的数据的情况下, 以列表形 式显示出所有相匹配的数据; 以及数据选择单元, 用于根据接收到的选择 命令, 选择其中的至少一项以粘贴至所述当前操作的编辑框中。
在该技术方案中, 若对于某个编辑框, 同时存在多项可粘贴的数据, 则可以生成包含这些数据的列表, 并由用户进行选择, 从而更贴合用户的 实际需求。
在上述技术方案中, 优选地, 所述编辑框属性分析单元用于: 在所述 屏幕界面上包含多个编辑框的情况下, 对所有编辑框的属性进行分析; 以 及所述数据粘贴单元用于: 当所述终端接收到针对任意编辑框的粘贴命令 时, 根据所述复制内容中的数据与所述多个编辑框之间的匹配关系, 将所 述复制内容将所述复制内容中的数据分别粘贴至所述屏幕界面中相匹配的 编辑框中。
在该技术方案中, 比如用户在新建通讯录时, 可以同时获取所有需要 的数据, 比如姓名、 电话号码、 电子邮箱等等, 而当用户在新建通讯录的 界面中的任意编辑框, 比如 "姓名" 对应的编辑框进行粘贴时, 终端将自 动将其他的数据也都分别粘贴至相应的编辑框内, 比如将电话号码粘贴至 "电话号码" 对应的编辑框内、 将电子邮件粘贴至 "电子邮件" 对应的编 辑框内等等, 从而在免去界面的反复转换的同时, 进一步免去用户的多次 粘贴, 筒化用户操作。
根据本发明的又一方面, 还提出了一种粘贴方法, 包括: 对终端的屏 幕界面中的部分或全部内容进行复制; 分析复制内容的特征属性; 根据接 收到的粘贴命令, 确定用于粘贴所述复制内容的编辑框, 并分析所述编辑 框的属性; 将所述复制内容的特征属性与所述编辑框的属性进行匹配, 并 根据匹配结果从所述复制内容中提取与所述编辑框的属性相匹配的数据, 以粘贴至所述编辑框中。
在该技术方案中, 除了复制, 还可以通过其他的如剪切等方式, 以实 现对界面中的内容的获取。 以下内容以复制为例进行说明。 用户可以直接 复制界面内的所有内容, 也可以进行手动选择后, 再获取选中部分的内 容。 通过对复制内容的特征属性和编辑框的属性进行分析和匹配, 从而能 够对复制内容进行智能地分析, 以便从中选择正确有效的数据, 以粘贴至 相应的编辑框中。 复制内容可以包括文本数据, 如汉字、 数字、 字母、 特 殊字符等, 也可以包括多媒体数据, 如图片、 音频、 视频文件等, 则内容 的特征数据包括这些数据的名称、 大小、 内容、 类型等等, 以便与编辑框 的属性进行匹配。
在上述技术方案中, 优选地, 在对所述编辑框进行分析之前, 还包 括: 为所述终端中的应用程序预设定相关联的属性; 以及对所述编辑框进 行分析的步骤包括: 分析所述编辑框所属的应用程序, 并将所述应用程序 的预设属性作为所述编辑框的属性。
在该技术方案中, 一些应用程序本身存在对于粘贴或输入的数据的设 定, 比如在拨号盘中只能为数字或特殊字符, 其他则没有实际意义; 在短 信中则能够粘贴文本、 多媒体文件等多种类型的数据。 因此, 通过对这些 应用程序的属性进行分析, 便可直接作为相应的编辑框的属性, 以实现对 复制内容的智能筛选。
在上述技术方案中, 优选地, 对所述编辑框进行分析的步骤包括: 识 别与所述编辑框相关联的位置的文字, 并根据所述文字确定所述编辑框的 属性。
在该技术方案中, 与编辑框相关联的位置包括编辑框内、 编辑框上 方、 编辑框左方或右方等等, 用于对用户输入或粘贴数据进行提示; 而通 过终端对这些文字的自动识别, 即可确定该编辑框的属性, 以确定应该选 择何种数据进行粘贴。 比如在通讯录的新建界面中, 在需要输入姓名的编 辑框的左方显示出 "姓名" 字样, 那么终端会在复制内容中搜索 "我 是" 、 "名为" 以及相应的姓氏字样, 比如 "我是李小明, 电话号码 是…… " , 则终端会自动将据此得到的姓名数据 "李小明" 粘贴至 "姓 名" 对应的编辑框中, 而对于其他的电话号码等数据, 则不用于此, 可能 用于其他编辑框的智能粘贴。
在上述技术方案中, 优选地, 在对所述编辑框进行分析之前, 还包 括: 为每个编辑框预设定相关联的属性; 以及对所述编辑框进行分析的步 骤包括: 根据确定的用于粘贴所述复制内容的编辑框, 获取相应的预设属 性。
在该技术方案中, 可以直接对每个编辑框的属性进行设定, 具体可以 从代码层实现内容的输入(录入或粘贴) 限定, 比如某个编辑框中只允许 输入数字, 则对于复制内容中的其他的汉字、 字符等, 都不会被粘贴至该 编辑框中。
在上述技术方案中, 优选地, 所述分析复制内容的特征属性的步骤包 括: 识别所述复制内容包含的数据以及每个数据对应的特征属性, 并据此 建立对应的数据结构映射表; 以及所述粘贴方法还包括: 根据所述数据结 构映射表, 从所述复制内容中提取与所述编辑框的属性相匹配的数据, 以 粘贴至所述编辑框中。
在该技术方案中, 建立的数据结构映射表中包括数据、 特征属性, 还 可以包括其他一些内容, 并在这些内容之间构建相互关系, 以便于在与编 辑框的属性进行匹配时, 可以准确地根据该数据结构映射表来获取相应的 特征属性, 实现对需要粘贴至编辑框内的数据的准确筛选。
在上述技术方案中, 优选地, 还包括: 对于当前操作的编辑框, 若所 述复制内容中存在多项相匹配的数据, 则以列表形式显示出所有相匹配的 数据, 并根据接收到的选择命令, 选择其中的至少一项以粘贴至所述当前 操作的编辑框中。
在该技术方案中, 若对于某个编辑框, 同时存在多项可粘贴的数据, 则可以生成包含这些数据的列表, 并由用户进行选择, 从而更贴合用户的 实际需求。
在上述技术方案中, 优选地, 还包括: 若所述屏幕界面上包含多个编 辑框, 则对所有编辑框的属性进行分析; 以及当所述终端接收到针对任意 编辑框的粘贴命令时, 根据所述复制内容中的数据与所述多个编辑框之间 的匹配关系, 将所述复制内容中的所有数据分别粘贴至所述屏幕界面中相 匹配的编辑框中。
在该技术方案中, 比如用户在新建通讯录时, 可以同时获取所有需要 的数据, 比如姓名、 电话号码、 电子邮箱等等, 而当用户在新建通讯录的 界面中的任意编辑框, 比如 "姓名" 对应的编辑框进行粘贴时, 终端将自 动将其他的数据也都分别粘贴至相应的编辑框内, 比如将电话号码粘贴至 "电话号码" 对应的编辑框内、 将电子邮件粘贴至 "电子邮件" 对应的编 辑框内等等, 从而在免去界面的反复转换的同时, 进一步免去用户的多次 粘贴, 筒化用户操作。
通过以上技术方案, 可以根据目标编辑框的属性, 智能地从复制内容 中进行数据选择和粘贴, 从而避免用户在内容获取界面和粘贴界面之间进 行反复切换操作。 附图说明
图 1示出了根据本发明的实施例的终端的框图;
图 2示出了根据本发明的实施例的粘贴方法的流程图;
图 3A至图 3D 示出了根据本发明的实施例的智能粘贴的用户界面示 意图。 具体实施方式
为了能够更清楚地理解本发明的上述目的、 特征和优点, 下面结合附 图和具体实施方式对本发明进行进一步的详细描述。 需要说明的是, 在不 沖突的情况下, 本申请的实施例及实施例中的特征可以相互组合。
在下面的描述中阐述了很多具体细节以便于充分理解本发明, 但是, 本发明还可以采用其他不同于在此描述的其他方式来实施, 因此, 本发明 的保护范围并不受下面公开的具体实施例的限制。
图 1示出了根据本发明的实施例的终端的框图。
如图 1 所示, 根据本发明的实施例的终端 100, 包括: 内容复制单元 102 , 用于对所述终端 100 的屏幕界面中的部分或全部内容进行复制; 内 容属性分析单元 104 , 用于分析复制内容的特征属性; 编辑框确定单元 106 , 用于根据接收到的粘贴命令, 确定用于粘贴所述复制内容的编辑 框; 编辑框属性分析单元 108 , 用于分析所述编辑框确定单元 106确定的 编辑框的属性; 数据粘贴单元 110 , 用于将所述复制内容的特征属性与所 述编辑框的属性进行匹配, 并根据匹配结果从所述复制内容中提取与所述 编辑框的属性相匹配的数据, 以粘贴至所述编辑框中。
在该技术方案中, 除了复制, 还可以通过其他的如剪切等方式, 以实 现对界面中的内容的获取。 以下内容以复制为例进行说明。 用户可以直接 复制界面内的所有内容, 也可以进行手动选择后, 再获取选中部分的内 容。 通过对复制内容的特征属性和编辑框的属性进行分析和匹配, 从而能 够对复制内容进行智能地分析, 以便从中选择正确有效的数据, 以粘贴至 相应的编辑框中。 复制内容可以包括文本数据, 如汉字、 数字、 字母、 特 殊字符等, 也可以包括多媒体数据, 如图片、 音频、 视频文件等, 则内容 的特征数据包括这些数据的名称、 大小、 内容、 类型等等, 以便与编辑框 的属性进行匹配。
在上述技术方案中, 优选地, 还包括: 应用属性设定单元 1 12 , 用于 为所述终端 100 中的应用程序预设定相关联的属性; 以及所述编辑框属性 分析单元 108 包括: 应用属性分析子单元 1082 , 用于分析所述编辑框所 属的应用程序, 并将所述应用程序的预设属性作为所述编辑框的属性。
在该技术方案中, 一些应用程序本身存在对于粘贴或输入的数据的设 定, 比如在拨号盘中只能为数字或特殊字符, 其他则没有实际意义; 在短 信中则能够粘贴文本、 多媒体文件等多种类型的数据。 因此, 通过对这些 应用程序的属性进行分析, 便可直接作为相应的编辑框的属性, 以实现对 复制内容的智能筛选。
在上述技术方案中, 优选地, 所述编辑框属性分析单元 108 包括: 文 字识别子单元 1084 , 用于识别与所述编辑框相关联的位置的文字, 并根 据所述文字确定所述编辑框的属性。
在该技术方案中, 与编辑框相关联的位置包括编辑框内、 编辑框上 方、 编辑框左方或右方等等, 用于对用户输入或粘贴数据进行提示; 而通 过终端 100对这些文字的自动识别, 即可确定该编辑框的属性, 以确定应 该选择何种数据进行粘贴。 比如在通讯录的新建界面中, 在需要输入姓名 的编辑框的左方显示出 "姓名" 字样, 那么终端 100会在复制内容中搜索 "我是" 、 "名为" 以及相应的姓氏字样, 比如 "我是李小明, 电话号码 是…… " , 则终端 100 会自动将据此得到的姓名数据 "李小明" 粘贴至
"姓名" 对应的编辑框中, 而对于其他的电话号码等数据, 则不用于此, 可能用于其他编辑框的智能粘贴。
在上述技术方案中, 优选地, 还包括: 编辑框属性设定单元 114 , 用 于为每个编辑框预设定相关联的属性; 以及所述编辑框属性分析单元 108 用于: 属性获取子单元 1086 , 用于根据所述编辑框确定单元 106 确定的 用于粘贴所述复制内容的编辑框, 获取相应的预设属性。
在该技术方案中, 可以直接对每个编辑框的属性进行设定, 具体可以 从代码层实现内容的输入(录入或粘贴) 限定, 比如某个编辑框中只允许 输入数字, 则对于复制内容中的其他的汉字、 字符等, 都不会被粘贴至该 编辑框中。
在上述技术方案中, 优选地, 所述内容属性分析单元 104 包括: 数据 识别子单元 1042 , 用于识别所述复制内容包含的数据以及每个数据对应 的特征属性; 映射表建立子单元 1044 , 用于根据所述数据识别子单元 1042 的识别结果, 建立对应的数据结构映射表, 以用于从所述复制内容 中提取与所述编辑框的属性相匹配的数据, 并粘贴至所述编辑框中。
在该技术方案中, 建立的数据结构映射表中包括数据、 特征属性, 还 可以包括其他一些内容, 并在这些内容之间构建相互关系, 以便于在与编 辑框的属性进行匹配时, 可以准确地根据该数据结构映射表来获取相应的 特征属性, 实现对需要粘贴至编辑框内的数据的准确筛选。
在上述技术方案中, 优选地, 还包括: 数据显示单元 1 16 , 用于在所 述复制内容中存在多项与当前操作的编辑框相匹配的数据的情况下, 以列 表形式显示出所有相匹配的数据; 以及数据选择单元 118 , 用于根据接收 到的选择命令, 选择其中的至少一项以粘贴至所述当前操作的编辑框中。
在该技术方案中, 若对于某个编辑框, 同时存在多项可粘贴的数据, 则可以生成包含这些数据的列表, 并由用户进行选择, 从而更贴合用户的 实际需求。
在上述技术方案中, 优选地, 所述编辑框属性分析单元 108用于: 在 所述屏幕界面上包含多个编辑框的情况下, 对所有编辑框的属性进行分 析; 以及所述数据粘贴单元 110用于: 当所述终端 100接收到针对任意编 辑框的粘贴命令时, 根据所述复制内容中的数据与所述多个编辑框之间的 匹配关系, 将所述复制内容将所述复制内容中的所有数据分别粘贴至所述 屏幕界面中相匹配的编辑框中。
在该技术方案中, 比如用户在新建通讯录时, 可以同时获取所有需要 的数据, 比如姓名、 电话号码、 电子邮箱等等, 而当用户在新建通讯录的 界面中的任意编辑框, 比如 "姓名" 对应的编辑框进行粘贴时, 终端 100 将自动将其他的数据也都分别粘贴至相应的编辑框内, 比如将电话号码粘 贴至 "电话号码" 对应的编辑框内、 将电子邮件粘贴至 "电子邮件" 对应 的编辑框内等等, 从而在免去界面的反复转换的同时, 进一步免去用户的 多次粘贴, 筒化用户操作。
图 2示出了根据本发明的实施例的粘贴方法的流程图。
如图 2所示, 根据本发明的实施例的粘贴方法, 包括: 步骤 202 , 对 终端的屏幕界面中的部分或全部内容进行复制; 步骤 204 , 分析复制内容 的特征属性; 步骤 206 , 根据接收到的粘贴命令, 确定用于粘贴所述复制 内容的编辑框, 并分析所述编辑框的属性; 步骤 208 , 将所述复制内容的 特征属性与所述编辑框的属性进行匹配, 并根据匹配结果从所述复制内容 中提取与所述编辑框的属性相匹配的数据, 以粘贴至所述编辑框中。
在该技术方案中, 除了复制, 还可以通过其他的如剪切等方式, 以实 现对界面中的内容的获取。 以下内容以复制为例进行说明。 用户可以直接 复制界面内的所有内容, 也可以进行手动选择后, 再获取选中部分的内 容。 通过对复制内容的特征属性和编辑框的属性进行分析和匹配, 从而能 够对复制内容进行智能地分析, 以便从中选择正确有效的数据, 以粘贴至 相应的编辑框中。 复制内容可以包括文本数据, 如汉字、 数字、 字母、 特 殊字符等, 也可以包括多媒体数据, 如图片、 音频、 视频文件等, 则内容 的特征数据包括这些数据的名称、 大小、 内容、 类型等等, 以便与编辑框 的属性进行匹配。
需要说明的是, 这里的步骤 204和步骤 206, 并不指代其实施的先后 顺序, 而是表明其方案发展的流程, 比如用于声明通过步骤 204 和步骤 206 分别实现对于复制内容的特征属性和编辑框的属性的分析, 以便实现 后续的匹配和粘贴步骤。 而事实上, 步骤 202至步骤 208中各个步骤之间 的先后顺序, 是与实际所采用的算法相关的, 但显然都属于本发明的技术 方案的实施方式之一。
在上述技术方案中, 优选地, 在对所述编辑框进行分析之前, 还包 括: 为所述终端中的应用程序预设定相关联的属性; 以及对所述编辑框进 行分析的步骤包括: 分析所述编辑框所属的应用程序, 并将所述应用程序 的预设属性作为所述编辑框的属性。
在该技术方案中, 一些应用程序本身存在对于粘贴或输入的数据的设 定, 比如在拨号盘中只能为数字或特殊字符, 其他则没有实际意义; 在短 信中则能够粘贴文本、 多媒体文件等多种类型的数据。 因此, 通过对这些 应用程序的属性进行分析, 便可直接作为相应的编辑框的属性, 以实现对 复制内容的智能筛选。
在上述技术方案中, 优选地, 对所述编辑框进行分析的步骤包括: 识 别与所述编辑框相关联的位置的文字, 并根据所述文字确定所述编辑框的 属性。
在该技术方案中, 与编辑框相关联的位置包括编辑框内、 编辑框上 方、 编辑框左方或右方等等, 用于对用户输入或粘贴数据进行提示; 而通 过终端对这些文字的自动识别, 即可确定该编辑框的属性, 以确定应该选 择何种数据进行粘贴。 比如在通讯录的新建界面中, 在需要输入姓名的编 辑框的左方显示出 "姓名" 字样, 那么终端会在复制内容中搜索 "我 是" 、 "名为" 以及相应的姓氏字样, 比如 "我是李小明, 电话号码 是…… " , 则终端会自动将据此得到的姓名数据 "李小明" 粘贴至 "姓 名" 对应的编辑框中, 而对于其他的电话号码等数据, 则不用于此, 可能 用于其他编辑框的智能粘贴。
在上述技术方案中, 优选地, 在对所述编辑框进行分析之前, 还包 括: 为每个编辑框预设定相关联的属性; 以及对所述编辑框进行分析的步 骤包括: 根据确定的用于粘贴所述复制内容的编辑框, 获取相应的预设属 性。
在该技术方案中, 可以直接对每个编辑框的属性进行设定, 具体可以 从代码层实现内容的输入(录入或粘贴) 限定, 比如某个编辑框中只允许 输入数字, 则对于复制内容中的其他的汉字、 字符等, 都不会被粘贴至该 编辑框中。
在上述技术方案中, 优选地, 所述分析复制内容的特征属性的步骤包 括: 识别所述复制内容包含的数据以及每个数据对应的特征属性, 并据此 建立对应的数据结构映射表; 以及所述粘贴方法还包括: 根据所述数据结 构映射表, 从所述复制内容中提取与所述编辑框的属性相匹配的数据, 以 粘贴至所述编辑框中。 在该技术方案中, 建立的数据结构映射表中包括数据、 特征属性, 还 可以包括其他一些内容, 并在这些内容之间构建相互关系, 以便于在与编 辑框的属性进行匹配时, 可以准确地根据该数据结构映射表来获取相应的 特征属性, 实现对需要粘贴至编辑框内的数据的准确筛选。
在上述技术方案中, 优选地, 还包括: 对于当前操作的编辑框, 若所 述复制内容中存在多项相匹配的数据, 则以列表形式显示出所有相匹配的 数据, 并根据接收到的选择命令, 选择其中的至少一项以粘贴至所述当前 操作的编辑框中。
在该技术方案中, 若对于某个编辑框, 同时存在多项可粘贴的数据, 则可以生成包含这些数据的列表, 并由用户进行选择, 从而更贴合用户的 实际需求。
在上述技术方案中, 优选地, 还包括: 若所述屏幕界面上包含多个编 辑框, 则对所有编辑框的属性进行分析; 以及当所述终端接收到针对任意 编辑框的粘贴命令时, 根据所述复制内容中的数据与所述多个编辑框之间 的匹配关系, 将所述复制内容中的所有数据分别粘贴至所述屏幕界面中相 匹配的编辑框中。
在该技术方案中, 比如用户在新建通讯录时, 可以同时获取所有需要 的数据, 比如姓名、 电话号码、 电子邮箱等等, 而当用户在新建通讯录的 界面中的任意编辑框, 比如 "姓名" 对应的编辑框进行粘贴时, 终端将自 动将其他的数据也都分别粘贴至相应的编辑框内, 比如将电话号码粘贴至 "电话号码" 对应的编辑框内、 将电子邮件粘贴至 "电子邮件" 对应的编 辑框内等等, 从而在免去界面的反复转换的同时, 进一步免去用户的多次 粘贴, 筒化用户操作。
下面结合图 3A至图 3D, 对本发明的技术方案进行详细说明, 其中, 图 3A 至图 3D 示出了根据本发明的实施例的智能粘贴的用户界面示意 图。
如图 3A 所示, 首先用户需要从终端的屏幕界面上选择需要粘贴至其 他界面上的内容, 具体地, 可以通过复制或剪切等操作实现对这部分内容 的获取。 此处以 "复制" 的方式为例进行说明。 用户操作所能够获取的复制内容 302可能包含多种类型, 比如文本内 容 302A 和多媒体内容 302B , 其中, 文本内容 302A 如汉字、 数字、 字 母、 字符等等, 而多媒体内容 302B 则可以包括图片、 音频、 视频等文 件。
终端可以在用户获取复制内容 302后, 即开始对其进行分析, 也可以 在用户进行将该复制内容 302粘贴至其他界面时再进行分析。 在进行分析 的过程中, 包括判断该复制内容 302 包含有哪些数据, 每项数据的类型、 内容等特征属性, 并且可以根据分析结果, 构建相应的数据结构映射表, 具体如表 1所示:
Figure imgf000015_0001
表 1
由表 1可见, 通过类似其中的 "识别特征" 列中的预设特征, 可以对 复制内容 302 中的数据进行准确识别和分析, 并将该数据存储至该数据结 构映射表内, 从而在之后与编辑框的属性进行匹配时, 能够快速、 准确地 进行数据的查找。
需要说明的是, 这里的数据结构映射表可以为预先存储在终端中, 当 用户进行了复制操作后, 终端将复制内容 302与数据结构映射表中的内容 进行比较, 从而得出相应的匹配结果。
如图 3B所示, 当用户将来自图 3A的复制内容 302粘贴在任意一个 编辑框 304 中时, 根据该编辑框 304的属性, 终端将自动从复制内容 302 中选择出相匹配的数据, 以粘贴至该编辑框 304中。
对于编辑框 304的属性获取, 包括多种方式, 比如:
第一种, 通过对与编辑框 304相关联的文字进行识别。 比如当用户选 择了图 3B 中的左上角的编辑框 304 , 而该编辑框 304 本身是用于填写
"姓名" 的, 界面上的文字 "姓名" 就是与该编辑框 304相关联的文字, 用于对用户进行功能提示的作用, 则此时也可以用于终端的自动识别, 以 确定该编辑框 304对应的属性——应该输入与 "姓名" 相关的数据。 需要 说明的是, 这里的文字并不只可能出于编辑框 304的上方, 还可能存在于 编辑框 304的左边或右边, 或位于编辑框 304内, 可以通过预设类似的关 联关系, 从而便于终端的准确识别。
第二种, 直接对每个编辑框 304的属性进行设置, 比如对于应该输入 "电子邮箱" 的编辑框 304 , 其粘贴的内容必须符合电子邮箱的要求, 如 包含 "@" 等。
第三种, 可以通过对编辑框 304所处的应用程序进行识别, 从而将该 应用程序的属性作为该编辑框 304的属性。 比如图 3C所示, 此时的编辑 框 304属于 "拨号盘" , 而在拨号盘中, 仅允许输入电话号码 (对应于数 字) 或是系统功能码 (对应于数字和字符 *、 #, 比如通过输入 *#06#来调 出终端的移动通信国际识别码) , 则在将复制内容 302 粘贴至该编辑框 304 时, 将仅粘贴符合该规定的字符串, 如 " 18987654321 " 的电话号 码。 再比如图 3D所示, 此时的编辑框 304属于 "微博" , 而在微博中, 允许输入任何类型的文本, 还可以添加多媒体文件作为附件, 则当用户将 如图 3A中的复制内容 302粘贴至编辑框 304中时, 可以将文本内容 302A 全部粘贴在编辑框 304 中, 并且终端自动将多媒体内容 302B作为文本内 容 302A的附件实现粘贴。
通过上述方式, 实现了对于编辑框 304的属性的获取, 从而可以将复 制内容 302的特征属性和编辑框 304的属性进行匹配, 并快速准确地将复 制内容 302 中的数据分别粘贴至对应的编辑框 304中。 比如图 3B 中, 实 现了将包含文本内容 302A和多媒体内容 302B 在内的多种数据准确粘贴 至对应的编辑框 304中。
此外, 在用户进行复制内容 302的粘贴时, 若屏幕界面上存在多个编 辑框 304 , 则一种情况下, 需要用户在每个需要操作的编辑框 304上进行 "粘贴" 操作, 比如用户将复制内容 302 粘贴至 "姓名" 对应的编辑框 304 时, 将仅将 "张三" 粘贴至该编辑框 304 中; 另一种情况下, 用户只 需要在其中任意一个编辑框 304上进行 "粘贴" 操作, 终端将根据所有编 辑框 304的属性和复制内容 302中所有数据的特征属性, 自动将复制内容 302 中的所有数据粘贴至相应的编辑框 304 中, 即当用户将复制内容 302 粘贴至 "姓名" 对应的编辑框 304时, 终端自动实现对 "姓名" 、 "电话 号码" 、 "电子邮箱" 、 "头像" 等编辑框 304的自动粘贴。
以上结合附图详细说明了本发明的技术方案, 考虑到在相关技术中, 在执行粘贴操作时, 只能够对剪贴板中的内容移动至目标编辑框中, 则当 需要对同一界面内的多个数据进行粘贴时, 需要多次反复进行界面的转换 和复制、 粘贴等操作, 过程繁瑣。 因此, 本发明提供了一种终端和一种粘 贴方法, 可以根据目标编辑框的属性, 智能地从复制内容中进行数据选择 和粘贴, 从而避免用户在内容获取界面和粘贴界面之间进行反复切换操 作。
以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于 本领域的技术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精 神和原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明 的保护范围之内。

Claims

权 利 要 求 书
1. 一种终端, 其特征在于, 包括:
内容复制单元, 用于对所述终端的屏幕界面中的部分或全部内容进行 复制;
内容属性分析单元, 用于分析复制内容的特征属性;
编辑框确定单元, 用于根据接收到的粘贴命令, 确定用于粘贴所述复 制内容的编辑框;
编辑框属性分析单元, 用于分析所述编辑框确定单元确定的编辑框的 属性;
数据粘贴单元, 用于将所述复制内容的特征属性与所述编辑框的属性 进行匹配, 并根据匹配结果从所述复制内容中提取与所述编辑框的属性相 匹配的数据, 以粘贴至所述编辑框中。
2. 根据权利要求 1所述的终端, 其特征在于, 还包括: 性; 以及
所述编辑框属性分析单元包括:
应用属性分析子单元, 用于分析所述编辑框所属的应用程序, 并将所 述应用程序的预设属性作为所述编辑框的属性。
3. 根据权利要求 1 所述的终端, 其特征在于, 所述编辑框属性分析 单元包括:
文字识别子单元, 用于识别与所述编辑框相关联的位置的文字, 并根 据所述文字确定所述编辑框的属性。
4. 根据权利要求 1所述的终端, 其特征在于, 还包括:
编辑框属性设定单元, 用于为每个编辑框预设定相关联的属性; 以及 所述编辑框属性分析单元用于:
属性获取子单元, 用于根据所述编辑框确定单元确定的用于粘贴所述 复制内容的编辑框, 获取相应的预设属性。
5. 根据权利要求 1 至 4 中任一项所述的终端, 其特征在于, 所述内 容属性分析单元包括:
数据识别子单元, 用于识别所述复制内容包含的数据以及每个数据对 应的特征属性;
映射表建立子单元, 用于根据所述数据识别子单元的识别结果, 建立 对应的数据结构映射表, 以用于从所述复制内容中提取与所述编辑框的属 性相匹配的数据, 并粘贴至所述编辑框中。
6. 根据权利要求 1 至 4 中任一项所述的终端, 其特征在于, 还包 括:
数据显示单元, 用于在所述复制内容中存在多项与当前操作的编辑框 相匹配的数据的情况下, 以列表形式显示出所有相匹配的数据; 以及
数据选择单元, 用于根据接收到的选择命令, 选择其中的至少一项以 粘贴至所述当前操作的编辑框中。
7. 根据权利要求 1 至 4 中任一项所述的终端, 其特征在于, 所述编 辑框属性分析单元用于: 在所述屏幕界面上包含多个编辑框的情况下, 对 所有编辑框的属性进行分析; 以及
所述数据粘贴单元用于: 当所述终端接收到针对任意编辑框的粘贴命 令时, 根据所述复制内容中的数据与所述多个编辑框之间的匹配关系, 将 所述复制内容中的数据分别粘贴至所述屏幕界面中相匹配的编辑框中。
8. 一种粘贴方法, 其特征在于, 包括:
对终端的屏幕界面中的部分或全部内容进行复制;
分析复制内容的特征属性;
根据接收到的粘贴命令, 确定用于粘贴所述复制内容的编辑框, 并分 析所述编辑框的属性;
将所述复制内容的特征属性与所述编辑框的属性进行匹配, 并根据匹 配结果从所述复制内容中提取与所述编辑框的属性相匹配的数据, 以粘贴 至所述编辑框中。
9. 根据权利要求 8 所述的粘贴方法, 其特征在于, 在对所述编辑框 进行分析之前, 还包括: 为所述终端中的应用程序预设定相关联的属性; 以及
对所述编辑框进行分析的步骤包括:
分析所述编辑框所属的应用程序, 并将所述应用程序的预设属性作为 所述编辑框的属性。
10. 根据权利要求 8所述的粘贴方法, 其特征在于, 对所述编辑框进 行分析的步骤包括:
识别与所述编辑框相关联的位置的文字, 并根据所述文字确定所述编 辑框的属性。
11. 根据权利要求 8所述的粘贴方法, 其特征在于, 在对所述编辑框 进行分析之前, 还包括:
为每个编辑框预设定相关联的属性; 以及
对所述编辑框进行分析的步骤包括:
根据确定的用于粘贴所述复制内容的编辑框, 获取相应的预设属性。
12. 根据权利要求 8 至 11 中任一项所述的粘贴方法, 其特征在于, 所述分析复制内容的特征属性的步骤包括:
识别所述复制内容包含的数据以及每个数据对应的特征属性, 并据此 建立对应的数据结构映射表; 以及
所述粘贴方法还包括:
根据所述数据结构映射表, 从所述复制内容中提取与所述编辑框的属 性相匹配的数据, 以粘贴至所述编辑框中。
13. 根据权利要求 8 至 11 中任一项所述的粘贴方法, 其特征在于, 还包括:
对于当前操作的编辑框, 若所述复制内容中存在多项相匹配的数据, 则以列表形式显示出所有相匹配的数据, 并根据接收到的选择命令, 选择 其中的至少一项以粘贴至所述当前操作的编辑框中。
14. 根据权利要求 8 至 11 中任一项所述的粘贴方法, 其特征在于, 还包括:
若所述屏幕界面上包含多个编辑框, 则对所有编辑框的属性进行分 析; 以及 当所述终端接收到针对任意编辑框的粘贴命令时, 根据所述复制内容 中的数据与所述多个编辑框之间的匹配关系, 将所述复制内容中的数据分 别粘贴至所述屏幕界面中相匹配的编辑框中。
PCT/CN2012/083188 2012-10-19 2012-10-19 终端和粘贴方法 Ceased WO2014059655A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2012/083188 WO2014059655A1 (zh) 2012-10-19 2012-10-19 终端和粘贴方法
CN201280076779.4A CN104769580B (zh) 2012-10-19 2012-10-19 终端和粘贴方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2012/083188 WO2014059655A1 (zh) 2012-10-19 2012-10-19 终端和粘贴方法

Publications (1)

Publication Number Publication Date
WO2014059655A1 true WO2014059655A1 (zh) 2014-04-24

Family

ID=50487470

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/083188 Ceased WO2014059655A1 (zh) 2012-10-19 2012-10-19 终端和粘贴方法

Country Status (2)

Country Link
CN (1) CN104769580B (zh)
WO (1) WO2014059655A1 (zh)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104375765A (zh) * 2014-11-17 2015-02-25 联想(北京)有限公司 一种信息处理方法及电子设备
CN104503956A (zh) * 2014-12-24 2015-04-08 广东欧珀移动通信有限公司 粘贴数据的方法、装置及移动终端
CN105808058A (zh) * 2016-03-04 2016-07-27 陈包容 一种智能显示粘贴提示的方法及装置
CN105843510A (zh) * 2016-04-01 2016-08-10 广东欧珀移动通信有限公司 复制粘贴处理方法、装置和终端设备
CN105975203A (zh) * 2016-04-28 2016-09-28 乐视控股(北京)有限公司 一种智能复制文本内容的终端及方法
CN106126025A (zh) * 2016-06-23 2016-11-16 北京小米移动软件有限公司 复制粘贴的交互方法及装置
CN106354275A (zh) * 2016-08-25 2017-01-25 维沃移动通信有限公司 一种信息输入的方法和移动终端
CN106446472A (zh) * 2016-11-16 2017-02-22 清华大学 数控加工几何仿真中基于stl模型的交线环求取算法
CN106598719A (zh) * 2016-12-13 2017-04-26 珠海市魅族科技有限公司 内容粘贴方法和装置
CN106598757A (zh) * 2016-12-13 2017-04-26 珠海市魅族科技有限公司 内容粘贴方法和装置
CN106648926A (zh) * 2016-08-05 2017-05-10 乐视控股(北京)有限公司 信息输入方法和装置
CN106713625A (zh) * 2016-12-12 2017-05-24 努比亚技术有限公司 复制粘贴过程中快速提取电话号码的方法及装置
CN108108249A (zh) * 2016-11-25 2018-06-01 北京嘀嘀无限科技发展有限公司 信息输入方法及装置
CN109684022A (zh) * 2018-12-28 2019-04-26 天津字节跳动科技有限公司 文字输入处理方法、装置和电子设备
CN110399232A (zh) * 2019-06-21 2019-11-01 平安普惠企业管理有限公司 粘贴处理方法、装置、设备及计算机可读存储介质
CN113589993A (zh) * 2021-07-16 2021-11-02 青岛海尔科技有限公司 收货地址生成方法、装置、电子设备及存储介质

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112765942A (zh) * 2021-01-22 2021-05-07 维沃移动通信有限公司 文本处理方法、装置、电子设备及可读存储介质
CN115391055A (zh) * 2021-05-08 2022-11-25 深圳市万普拉斯科技有限公司 一种内容填充方法、装置及电子设备
CN120104369A (zh) * 2023-07-04 2025-06-06 华为技术有限公司 剪贴板内容的粘贴方法及相关装置

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11306177A (ja) * 1998-04-20 1999-11-05 Sharp Corp 文字列記憶呼出装置及び文字列記憶呼出のためのプログラムを記録した記録媒体
CN1813252A (zh) * 2003-07-11 2006-08-02 独立行政法人产业技术总合研究所 信息处理方法、信息处理程序、信息处理装置及摇控器
CN1940914A (zh) * 2005-09-29 2007-04-04 国际商业机器公司 用于一起复制和粘贴多个数据的方法和设备
CN101185094A (zh) * 2005-06-23 2008-05-21 微软公司 发送和接收电子名片
CN101359285A (zh) * 2007-08-02 2009-02-04 珠海金山软件股份有限公司 一种将控件插入到文档里的装置和方法
US20120079408A1 (en) * 2010-09-24 2012-03-29 Visibility, Biz. Inc. Systems and methods for generating a swimlane timeline for task data visualization

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11306177A (ja) * 1998-04-20 1999-11-05 Sharp Corp 文字列記憶呼出装置及び文字列記憶呼出のためのプログラムを記録した記録媒体
CN1813252A (zh) * 2003-07-11 2006-08-02 独立行政法人产业技术总合研究所 信息处理方法、信息处理程序、信息处理装置及摇控器
CN101185094A (zh) * 2005-06-23 2008-05-21 微软公司 发送和接收电子名片
CN1940914A (zh) * 2005-09-29 2007-04-04 国际商业机器公司 用于一起复制和粘贴多个数据的方法和设备
CN101359285A (zh) * 2007-08-02 2009-02-04 珠海金山软件股份有限公司 一种将控件插入到文档里的装置和方法
US20120079408A1 (en) * 2010-09-24 2012-03-29 Visibility, Biz. Inc. Systems and methods for generating a swimlane timeline for task data visualization

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
STYLOS, J. ET AL.: "Citrine: Providing Intelligent Copy-and-Paste", UIST' 04, 24 October 2004 (2004-10-24), SANTA FE, NEW MEXICO, USA, Retrieved from the Internet <URL:Http://www.cs.cmu.edu/~citrine> *

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104375765A (zh) * 2014-11-17 2015-02-25 联想(北京)有限公司 一种信息处理方法及电子设备
CN104503956A (zh) * 2014-12-24 2015-04-08 广东欧珀移动通信有限公司 粘贴数据的方法、装置及移动终端
CN105808058A (zh) * 2016-03-04 2016-07-27 陈包容 一种智能显示粘贴提示的方法及装置
CN105843510B (zh) * 2016-04-01 2019-06-28 Oppo广东移动通信有限公司 复制粘贴处理方法、装置和终端设备
CN105843510A (zh) * 2016-04-01 2016-08-10 广东欧珀移动通信有限公司 复制粘贴处理方法、装置和终端设备
CN105975203A (zh) * 2016-04-28 2016-09-28 乐视控股(北京)有限公司 一种智能复制文本内容的终端及方法
CN106126025A (zh) * 2016-06-23 2016-11-16 北京小米移动软件有限公司 复制粘贴的交互方法及装置
CN106126025B (zh) * 2016-06-23 2020-06-02 北京小米移动软件有限公司 复制粘贴的交互方法及装置
CN106648926A (zh) * 2016-08-05 2017-05-10 乐视控股(北京)有限公司 信息输入方法和装置
CN106354275A (zh) * 2016-08-25 2017-01-25 维沃移动通信有限公司 一种信息输入的方法和移动终端
CN106446472A (zh) * 2016-11-16 2017-02-22 清华大学 数控加工几何仿真中基于stl模型的交线环求取算法
CN106446472B (zh) * 2016-11-16 2019-05-21 清华大学 数控加工几何仿真中基于stl模型的交线环求取方法
CN108108249A (zh) * 2016-11-25 2018-06-01 北京嘀嘀无限科技发展有限公司 信息输入方法及装置
CN106713625A (zh) * 2016-12-12 2017-05-24 努比亚技术有限公司 复制粘贴过程中快速提取电话号码的方法及装置
CN106598719A (zh) * 2016-12-13 2017-04-26 珠海市魅族科技有限公司 内容粘贴方法和装置
CN106598757A (zh) * 2016-12-13 2017-04-26 珠海市魅族科技有限公司 内容粘贴方法和装置
CN109684022A (zh) * 2018-12-28 2019-04-26 天津字节跳动科技有限公司 文字输入处理方法、装置和电子设备
CN110399232A (zh) * 2019-06-21 2019-11-01 平安普惠企业管理有限公司 粘贴处理方法、装置、设备及计算机可读存储介质
CN110399232B (zh) * 2019-06-21 2024-03-05 平安普惠企业管理有限公司 粘贴处理方法、装置、设备及计算机可读存储介质
CN113589993A (zh) * 2021-07-16 2021-11-02 青岛海尔科技有限公司 收货地址生成方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN104769580B (zh) 2018-07-24
CN104769580A (zh) 2015-07-08

Similar Documents

Publication Publication Date Title
WO2014059655A1 (zh) 终端和粘贴方法
CN110060317A (zh) 海报自动配置方法、设备、存储介质及装置
EP2813955A1 (en) Information association method and terminal
CN105786784B (zh) 一种演示文稿模板更换方法及装置
JP5642890B2 (ja) 生成された画像中に含まれるオブジェクトの収集をサポートするための方法、端末およびコンピュータ可読記録媒体
CN104572219B (zh) 拍照模式切换方法及装置
US20160080934A1 (en) Terminal and processing method for head portrait of contact person
CN106375535B (zh) 联系人信息同步方法和装置
WO2015192575A1 (zh) 一种基于通讯录的照片匹配方法及终端
WO2014032419A1 (zh) 一种基于图片获得咨询信息的方法和系统
CN111240669A (zh) 界面生成方法、装置、电子设备及计算机存储介质
CN103455338A (zh) 一种数据获取方法及装置
WO2014042962A1 (en) Determining additional information associated with geographic location information
CN104506624B (zh) 一种社交信息管理系统及管理方法
US11163827B2 (en) Video processing method, device, terminal and storage medium
US11010978B2 (en) Method and system for generating augmented reality interactive content
CN101676848A (zh) 识别和处理图像信息的装置和方法
CN108960224A (zh) 一种图书查找方法、装置及系统
CN107133204B (zh) 一种终端快捷输入方法
CN104793963B (zh) 信息抄录方法及装置
EP2506540A1 (en) Enhanced contact information
CN108319576A (zh) 一种生成图片素材的方法及装置
CN104639716A (zh) 一种移动终端快捷拨号设置方法、装置及移动终端
CN104539780A (zh) 一种联系人信息查找方法和系统
CN106649296B (zh) 提供拍照提示信息、业务对象搜索方法及装置

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: 12886681

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12886681

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 16.10.2015)

122 Ep: pct application non-entry in european phase

Ref document number: 12886681

Country of ref document: EP

Kind code of ref document: A1