CN106168905A - Text handling method, device and mobile terminal in a kind of mobile terminal - Google Patents
Text handling method, device and mobile terminal in a kind of mobile terminal Download PDFInfo
- Publication number
- CN106168905A CN106168905A CN201610581172.1A CN201610581172A CN106168905A CN 106168905 A CN106168905 A CN 106168905A CN 201610581172 A CN201610581172 A CN 201610581172A CN 106168905 A CN106168905 A CN 106168905A
- Authority
- CN
- China
- Prior art keywords
- application program
- text message
- shear plate
- cursor position
- text information
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims description 44
- 230000001960 triggered effect Effects 0.000 claims abstract description 76
- 238000012545 processing Methods 0.000 claims description 14
- 230000003362 replicative effect Effects 0.000 claims 1
- 238000003672 processing method Methods 0.000 abstract description 10
- 230000006870 function Effects 0.000 description 244
- 238000004891 communication Methods 0.000 description 8
- 230000000694 effects Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 6
- 238000012795 verification Methods 0.000 description 5
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000001514 detection method Methods 0.000 description 3
- 238000007726 management method Methods 0.000 description 3
- 238000010295 mobile communication Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 238000012905 input function Methods 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V30/00—Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
- G06V30/10—Character recognition
- G06V30/32—Digital ink
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/7243—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
- H04M1/72436—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for text messaging, e.g. short messaging services [SMS] or e-mails
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Software Systems (AREA)
- Human Computer Interaction (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Multimedia (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本发明公开了一种移动终端中的文本处理方法,包括启动第一应用程序,第一应用程序获取指定页面的识别文本信息,识别文本信息被第一应用程序加载在UI界面的显示参数中;第一应用程序依据UI界面的显示参数展现识别文本信息;第一应用程序接收针对识别文本信息的复制文本信息;第一应用程序将复制文本信息放到预设剪切板中;第一应用程序获得当前光标位置,并将预设剪切板中的复制文本信息粘贴到当前光标位置。本发明实施例中,第一应用程序识别用户指定页面中的识别文本信息,并在UI界面中展现识别文本信息,供用户选择需要复制的复制文本信息。在触发单次粘贴控件后,第一应用程序将复制文本信息复制到当前光标位置,满足了用户复制文本的需求。
The invention discloses a text processing method in a mobile terminal, which includes starting a first application program, the first application program acquires identification text information of a specified page, and the identification text information is loaded into display parameters of a UI interface by the first application program; The first application program presents the identification text information according to the display parameters of the UI interface; the first application program receives the copy text information for the identification text information; the first application program puts the copy text information in the preset clipboard; the first application program Get the current cursor position, and paste the copied text information in the preset clipboard to the current cursor position. In the embodiment of the present invention, the first application program identifies the identified text information in the page specified by the user, and displays the identified text information on the UI interface for the user to select the copied text information to be copied. After the single paste control is triggered, the first application program copies the copied text information to the current cursor position, which satisfies the user's demand for copying text.
Description
技术领域technical field
本发明涉及移动终端技术领域,更具体地,涉及一种移动终端中的文本处理方法、移动终端中的文本处理方法装置和一种移动终端。The present invention relates to the technical field of mobile terminals, and more specifically, to a text processing method in a mobile terminal, a text processing method and device in a mobile terminal, and a mobile terminal.
背景技术Background technique
随着移动通信技术的快速发展,如手机、平板电脑等移动终端已经广泛应用在学习、娱乐、工作等方面,在人们的日常生活中扮演着越来越重要的角色,越来越多的用户习惯在移动终端中浏览网站。With the rapid development of mobile communication technology, mobile terminals such as mobile phones and tablet computers have been widely used in learning, entertainment, work, etc., and play an increasingly important role in people's daily life. More and more users Get used to browsing websites on mobile terminals.
用户在浏览网站时,往往想将看到的内容复制下来收藏或转发。但是,目前一些网站为了增加点击量,会取消网站页面的复制功能,使得用户无法在复制网站中的文本信息。When users browse the website, they often want to copy the content they see, store it or forward it. However, in order to increase the number of hits, some websites currently cancel the copy function of website pages, so that users cannot copy text information in the website.
发明内容Contents of the invention
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的一种移动终端中的文本处理方法和相应的一种移动终端中的文本处理装置、一种移动终端。In view of the above problems, the present invention is proposed to provide a text processing method in a mobile terminal, a corresponding text processing device in a mobile terminal, and a mobile terminal that overcome the above problems or at least partially solve the above problems.
第一方面,本发明实施例公开了一种移动终端中的文本处理方法,包括:In the first aspect, the embodiment of the present invention discloses a text processing method in a mobile terminal, including:
启动第一应用程序,所述第一应用程序可悬浮于所述移动终端的所有UI界面,所述第一应用程序具有页面识别功能控件、复制功能控件以及单次粘贴功能控件;Start the first application program, the first application program can be suspended in all UI interfaces of the mobile terminal, the first application program has a page recognition function control, a copy function control and a single paste function control;
当所述页面识别功能控件被触发后,所述第一应用程序获取指定页面的识别文本信息,所述识别文本信息被所述第一应用程序加载在UI界面的显示参数中;When the page recognition function control is triggered, the first application program obtains the identification text information of the specified page, and the identification text information is loaded into the display parameters of the UI interface by the first application program;
所述第一应用程序依据所述UI界面的显示参数展现所述识别文本信息;The first application program presents the identification text information according to the display parameters of the UI interface;
当所述复制功能控件被触发后,所述第一应用程序接收针对所述识别文本信息的复制文本信息;When the copy function control is triggered, the first application program receives copy text information for the identified text information;
所述第一应用程序将所述复制文本信息放到预设剪切板中;The first application program puts the copied text information into a preset clipboard;
当所述单次粘贴功能控件被触发后,所述第一应用程序获得当前光标位置,并将所述预设剪切板中的复制文本信息粘贴到所述当前光标位置。When the single paste function control is triggered, the first application program obtains the current cursor position, and pastes the copied text information in the preset clipboard to the current cursor position.
第二方面,本发明实施例公开了一种移动终端中的文本处理装置,包括:In the second aspect, the embodiment of the present invention discloses a text processing device in a mobile terminal, including:
位于所述移动终端的启动模块,用于启动第一应用程序,所述第一应用程序可悬浮于所述移动终端的所有UI界面,所述第一应用程序具有页面识别功能控件、复制功能控件以及单次粘贴功能控件;The startup module located in the mobile terminal is used to start the first application program, the first application program can be suspended in all UI interfaces of the mobile terminal, and the first application program has a page recognition function control and a copy function control And a single paste function control;
位于所述第一应用程序的识别文本信息获取模块,用于当所述页面识别功能控件被触发后,获取指定页面的识别文本信息;所述识别文本信息被所述第一应用程序加载在UI界面的显示参数中;The recognition text information acquisition module located in the first application program is used to obtain the recognition text information of the specified page after the page recognition function control is triggered; the recognition text information is loaded on the UI by the first application program In the display parameters of the interface;
位于所述第一应用程序的识别文本信息展现模块,用于依据所述UI界面的显示参数展现所述识别文本信息;The identification text information display module located in the first application program is used to display the identification text information according to the display parameters of the UI interface;
位于所述第一应用程序的复制文本信息接收模块,用于当所述复制功能控件被触发后,接收针对所述识别文本信息的复制文本信息;The copied text information receiving module located in the first application program is configured to receive the copied text information for the identified text information when the copy function control is triggered;
位于所述第一应用程序的复制文本信息放置模块,用于将所述复制文本信息放到预设剪切板中;The copied text information placement module located in the first application program is used to put the copied text information into a preset clipboard;
位于所述第一应用程序的单次粘贴模块,用于当所述单次粘贴功能控件被触发后,获得当前光标位置,并将所述预设剪切板中的复制文本信息粘贴到所述当前光标位置。The single paste module located in the first application program is used to obtain the current cursor position after the single paste function control is triggered, and paste the copied text information in the preset clipboard to the Current cursor position.
第三方面,本发明实施例提供了一种移动终端,该移动终端具有实现上述第一方面中移动终端中的文本处理的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的模块。In a third aspect, an embodiment of the present invention provides a mobile terminal, and the mobile terminal has a function of implementing text processing in the mobile terminal in the first aspect. The functions described above may be implemented by hardware, or may be implemented by executing corresponding software on the hardware. The hardware or software includes one or more modules corresponding to the above functions.
在一个可能的设计中,移动终端的结构中包括处理器和存储器,所述存储器用于存储支持收发装置执行上述方法的程序,所述处理器被配置为用于执行所述存储器中存储的程序。所述移动终端还可以包括通信接口,用于移动终端与其他设备或通信网络通信。In a possible design, the structure of the mobile terminal includes a processor and a memory, the memory is used to store a program that supports the transceiver device to execute the above method, and the processor is configured to execute the program stored in the memory . The mobile terminal may also include a communication interface for the mobile terminal to communicate with other devices or a communication network.
其中,所述存储器用于存储启动第一应用程序的指令,当所述页面识别功能控件被触发后,所述第一应用程序获取指定页面的识别文本信息,所述识别文本信息被所述第一应用程序加载在UI界面的显示参数中的指令,所述第一应用程序依据所述UI界面的显示参数展现所述识别文本信息的指令,当所述复制功能控件被触发后,所述第一应用程序接收针对所述识别文本信息的复制文本信息的指令,所述第一应用程序将所述复制文本信息放到预设剪切板中的指令,当所述单次粘贴功能控件被触发后,所述第一应用程序获得当前光标位置,并将所述预设剪切板中的复制文本信息粘贴到所述当前光标位置的指令;Wherein, the memory is used to store an instruction for starting the first application program, and when the page recognition function control is triggered, the first application program obtains the identification text information of the specified page, and the identification text information is obtained by the second An application program loads an instruction in the display parameters of the UI interface, the first application program presents the instruction for identifying text information according to the display parameters of the UI interface, and when the copy function control is triggered, the second application program An application program receives an instruction for copying text information for the identified text information, the first application program puts the copy text information into the preset clipboard, and when the single paste function control is triggered Afterwards, the first application program obtains the current cursor position, and pastes the copied text information in the preset clipboard to the instruction of the current cursor position;
所述处理器用于:The processor is used to:
依据所述启动第一应用程序的指令,启动第一应用程序,所述第一应用程序可悬浮于所述移动终端的所有UI界面,所述第一应用程序具有页面识别功能控件、复制功能控件以及单次粘贴功能控件;According to the instruction of starting the first application program, start the first application program, the first application program can be suspended in all UI interfaces of the mobile terminal, and the first application program has a page recognition function control and a copy function control And a single paste function control;
依据所述当所述页面识别功能控件被触发后,所述第一应用程序获取指定页面的识别文本信息,所述识别文本信息被所述第一应用程序加载在UI界面的显示参数中的指令,当所述页面识别功能控件被触发后,所述第一应用程序获取指定页面的识别文本信息,所述识别文本信息被所述第一应用程序加载在UI界面的显示参数中;According to the instruction that when the page identification function control is triggered, the first application program acquires the identification text information of the specified page, and the identification text information is loaded into the display parameters of the UI interface by the first application program , when the page recognition function control is triggered, the first application program acquires the identification text information of the specified page, and the identification text information is loaded into the display parameters of the UI interface by the first application program;
依据所述第一应用程序依据所述UI界面的显示参数展现所述识别文本信息的指令,所述第一应用程序依据所述UI界面的显示参数展现所述识别文本信息;According to the instruction of the first application program to present the recognition text information according to the display parameters of the UI interface, the first application program presents the recognition text information according to the display parameters of the UI interface;
依据所述当所述复制功能控件被触发后,所述第一应用程序接收针对所述识别文本信息的复制文本信息的指令,当所述复制功能控件被触发后,所述第一应用程序接收针对所述识别文本信息的复制文本信息;According to the description that when the copy function control is triggered, the first application program receives an instruction for copying text information for the identified text information, and when the copy function control is triggered, the first application program receives Copy text information for said identifying text information;
依据所述第一应用程序将所述复制文本信息放到预设剪切板中的指令,所述第一应用程序将所述复制文本信息放到预设剪切板中;According to the instruction of the first application program to put the copied text information into a preset clipboard, the first application program puts the copied text information into a preset clipboard;
依据所述当所述单次粘贴功能控件被触发后,所述第一应用程序获得当前光标位置,并将所述预设剪切板中的复制文本信息粘贴到所述当前光标位置的指令,当所述单次粘贴功能控件被触发后,所述第一应用程序获得当前光标位置,并将所述预设剪切板中的复制文本信息粘贴到所述当前光标位置。According to the instruction that when the single paste function control is triggered, the first application program obtains the current cursor position, and pastes the copied text information in the preset clipboard to the current cursor position, When the single paste function control is triggered, the first application program obtains the current cursor position, and pastes the copied text information in the preset clipboard to the current cursor position.
本发明实施例提供方案中,第一应用程序可以识别用户指定页面中的识别文本信息,并在UI界面中展现识别文本信息,供用户选择需要复制的复制文本信息。在用户触发单次粘贴控件后,第一应用程序将复制文本信息复制到当前光标位置,满足了用户复制文本的需求。In the solution provided by the embodiment of the present invention, the first application program can identify the identified text information in the page specified by the user, and display the identified text information on the UI interface for the user to select the copied text information to be copied. After the user triggers the single paste control, the first application program copies the copied text information to the current cursor position, which satisfies the user's demand for copying text.
本发明的这些方面或其他方面在以下实施例的描述中会更加简明易懂。These or other aspects of the present invention will be more clearly understood in the description of the following embodiments.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1示出了根据本发明一个实施例的一种移动终端中的文本处理方法实施例的步骤流程图;FIG. 1 shows a flow chart of the steps of an embodiment of a text processing method in a mobile terminal according to an embodiment of the present invention;
图2示出了根据本发明一个实施例的另一种移动终端中的文本处理方法实施例的步骤流程图;FIG. 2 shows a flow chart of the steps of an embodiment of a text processing method in another mobile terminal according to an embodiment of the present invention;
图3示出了根据本发明一个实施例的一种移动终端中的文本处理装置实施例的结构框图;FIG. 3 shows a structural block diagram of an embodiment of a text processing device in a mobile terminal according to an embodiment of the present invention;
图4示出了根据本发明一个实施例的另一种移动终端中的文本处理装置实施例的结构框图;FIG. 4 shows a structural block diagram of another text processing device embodiment in a mobile terminal according to an embodiment of the present invention;
图5示出的是与本发明实施例提供的终端相关的手机的部分结构的框图。FIG. 5 shows a block diagram of a partial structure of a mobile phone related to a terminal provided by an embodiment of the present invention.
具体实施方式detailed description
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention.
在本发明的说明书和权利要求书及上述附图中的描述的一些流程中,包含了按照特定顺序出现的多个操作,但是应该清楚了解,这些操作可以不按照其在本文中出现的顺序来执行或并行执行,操作的序号如101、102等,仅仅是用于区分开各个不同的操作,序号本身不代表任何的执行顺序。另外,这些流程可以包括更多或更少的操作,并且这些操作可以按顺序执行或并行执行。需要说明的是,本文中的“第一”、“第二”等描述,是用于区分不同的消息、设备、模块等,不代表先后顺序,也不限定“第一”和“第二”是不同的类型。In some processes described in the specification and claims of the present invention and the above-mentioned drawings, a plurality of operations appearing in a specific order are contained, but it should be clearly understood that these operations may not be performed in the order in which they appear herein Execution or parallel execution, the serial numbers of the operations, such as 101, 102, etc., are only used to distinguish different operations, and the serial numbers themselves do not represent any execution order. Additionally, these processes can include more or fewer operations, and these operations can be performed sequentially or in parallel. It should be noted that the descriptions of "first" and "second" in this article are used to distinguish different messages, devices, modules, etc. are different types.
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts fall within the protection scope of the present invention.
参照图1,示出了根据本发明一个实施例的一种移动终端中的文本处理方法实施例的步骤流程图,所述的方法具体可以包括如下步骤:Referring to FIG. 1 , it shows a flow chart of the steps of an embodiment of a text processing method in a mobile terminal according to an embodiment of the present invention, and the method may specifically include the following steps:
步骤101,启动第一应用程序,所述第一应用程序可悬浮于所述移动终端的所有UI界面,所述第一应用程序具有页面识别功能控件、复制功能控件以及单次粘贴功能控件;Step 101, start the first application program, the first application program can be suspended in all UI interfaces of the mobile terminal, the first application program has a page recognition function control, a copy function control and a single paste function control;
在本发明实施例中,移动终端上安装有可悬浮于所有UI界面的第一应用程序。所有UI界面即包括移动终端的系统菜单UI界面,以及其它应用程序的UI界面。In the embodiment of the present invention, the mobile terminal is installed with a first application that can be suspended on all UI interfaces. All UI interfaces include the system menu UI interface of the mobile terminal and UI interfaces of other application programs.
在Android中,UI界面通过活动Activity和视图View来实现,View是所有控件和布局对象的基类。所有需要显示的信息都通过View来实现,一个View中可以包括多个控件,每个控件可以用于显示不同的信息。控件在View中的布局可以通过布局对象设定,布局对象具有控件的在View中的坐标。Activity负责控制需要在View中显示的信息。In Android, the UI interface is implemented through the activity Activity and the view View, which is the base class of all controls and layout objects. All the information that needs to be displayed is realized through View. A View can include multiple controls, and each control can be used to display different information. The layout of the control in the View can be set through the layout object, and the layout object has the coordinates of the control in the View. Activity is responsible for controlling the information that needs to be displayed in View.
在本发明实施例中,通过将第一应用程序的Activity对应的View置于最顶层,从而实现悬浮于所有UI界面。In the embodiment of the present invention, the View corresponding to the Activity of the first application program is placed on the topmost layer, so as to be suspended on all UI interfaces.
第一应用程序中具有页面识别功能控件、复制功能控件以及单次粘贴功能控件。The first application program has a page recognition function control, a copy function control and a single paste function control.
页面识别功能控件可以实现特定页面中的文本进行识别。复制功能控件可以实现文本复制。单次粘贴功能控件可以实现单次文本粘贴。The page recognition function control can realize text recognition in a specific page. The copy function control can implement text copy. The single paste function control can realize a single text paste.
步骤102,当所述页面识别功能控件被触发后,所述第一应用程序获取指定页面的识别文本信息;所述识别文本信息被所述第一应用程序加载在UI界面的显示参数中;Step 102, when the page recognition function control is triggered, the first application program obtains the recognition text information of the specified page; the recognition text information is loaded into the display parameters of the UI interface by the first application program;
当用户触发了第一应用程序的页面识别功能控件后,第一应用程序接收用户通过触屏操作指定需要识别的页面,第一应用程序获取用户指定的页面的识别文本信息。After the user triggers the page identification function control of the first application program, the first application program receives the user specifying the page to be identified through the touch screen operation, and the first application program obtains the identification text information of the page specified by the user.
第一应用程序将识别文本信息加载在UI界面的显示参数中,以便备选进行粘贴。The first application program loads the identified text information into the display parameters of the UI interface, so as to paste it as an alternative.
步骤103,所述第一应用程序依据所述UI界面的显示参数展现所述识别文本信息;Step 103, the first application program presents the identification text information according to the display parameters of the UI interface;
UI界面的显示参数是控件UI界面中显示内容的参数,具体可以包括:控件和布局对象。The display parameters of the UI interface are the parameters of the content displayed in the UI interface of the control, and specifically may include: controls and layout objects.
识别文本信息,具体被加载到控件中进行显示。Recognize text information, which is specifically loaded into the control for display.
第一应用程序根据UI界面的显示参数,展现显示参数中的识别文本信息。The first application program presents the identification text information in the display parameters according to the display parameters of the UI interface.
步骤104,当所述复制功能控件被触发后,所述第一应用程序接收针对所述识别文本信息的复制文本信息;Step 104, when the copy function control is triggered, the first application program receives copy text information for the identified text information;
用户针对展现在UI界面中的识别文本信息,选择需要复制的复制文本信息。The user selects the copied text information to be copied for the identified text information displayed on the UI interface.
第一应用程序接收用户需要复制的复制文本信息。The first application program receives the copy text information that the user needs to copy.
步骤105,所述第一应用程序将所述复制文本信息放到预设剪切板中;Step 105, the first application program puts the copied text information into a preset clipboard;
第一应用程序将复制文本信息放到预设剪切板中。The first application program puts the copied text information into the preset clipboard.
步骤106,当所述单次粘贴功能控件被触发后,所述第一应用程序获得当前光标位置,并将所述预设剪切板中的复制文本信息粘贴到所述当前光标位置。Step 106, when the single paste function control is triggered, the first application program obtains the current cursor position, and pastes the copied text information in the preset clipboard to the current cursor position.
当用户触发单次粘贴功能控件后,第一应用程序获取当前UI界面的光标位置。然后将剪切板中的复制文本信息粘贴到当前光标位置上,完成粘贴操作。After the user triggers the single paste function control, the first application program obtains the cursor position of the current UI interface. Then paste the copied text information in the clipboard to the current cursor position to complete the paste operation.
本发明实施例提供方案中,第一应用程序可以识别用户指定页面中的识别文本信息,并在UI界面中展现识别文本信息,供用户选择需要复制的复制文本信息。在用户触发单次粘贴控件后,第一应用程序将复制文本信息复制到当前光标位置,满足了用户复制文本的需求。In the solution provided by the embodiment of the present invention, the first application program can identify the identified text information in the page specified by the user, and display the identified text information on the UI interface for the user to select the copied text information to be copied. After the user triggers the single paste control, the first application program copies the copied text information to the current cursor position, which satisfies the user's demand for copying text.
参照图2,示出了根据本发明一个实施例的另一种移动终端中的文本处理方法实施例的步骤流程图,所述的方法具体可以包括如下步骤:Referring to FIG. 2 , it shows a flow chart of the steps of an embodiment of a text processing method in another mobile terminal according to an embodiment of the present invention, and the method may specifically include the following steps:
步骤201,启动第一应用程序,所述第一应用程序可悬浮于所述移动终端的所有UI界面,所述第一应用程序具有页面识别功能控件、复制功能控件以及单次粘贴功能控件;Step 201, start the first application program, the first application program can be suspended in all UI interfaces of the mobile terminal, the first application program has a page recognition function control, a copy function control and a single paste function control;
在本发明实施例中,移动终端上安装有可悬浮于所有UI界面的第一应用程序。所有UI界面即包括移动终端的系统菜单UI界面,以及其它应用程序的UI界面。In the embodiment of the present invention, the mobile terminal is installed with a first application that can be suspended on all UI interfaces. All UI interfaces include the system menu UI interface of the mobile terminal and UI interfaces of other application programs.
在Android中,UI界面通过活动Activity和视图View来实现,View是所有控件和布局对象的基类。所有需要显示的信息都通过View来实现,一个View中可以包括多个控件,每个控件可以用于显示不同的信息。控件在View中的布局可以通过布局对象设定,布局对象具有控件的在View中的坐标。Activity负责控制需要在View中显示的信息。In Android, the UI interface is implemented through the activity Activity and the view View, which is the base class of all controls and layout objects. All the information that needs to be displayed is realized through View. A View can include multiple controls, and each control can be used to display different information. The layout of the control in the View can be set through the layout object, and the layout object has the coordinates of the control in the View. Activity is responsible for controlling the information that needs to be displayed in View.
在本发明实施例中,通过将第一应用程序的Activity对应的View置于最顶层,从而实现悬浮于所有UI界面。In the embodiment of the present invention, the View corresponding to the Activity of the first application program is placed on the topmost layer, so as to be suspended on all UI interfaces.
第一应用程序中具有页面识别功能控件、复制功能控件以及单次粘贴功能控件。The first application program has a page recognition function control, a copy function control and a single paste function control.
页面识别功能控件可以实现特定页面中的文本进行识别。复制功能控件可以实现文本复制。单次粘贴功能控件可以实现单次文本粘贴。The page recognition function control can realize text recognition in a specific page. The copy function control can implement text copy. The single paste function control can realize a single text paste.
步骤202,当所述页面识别功能控件被触发后,所述第一应用程序获取指定页面的识别文本信息;所述识别文本信息被所述第一应用程序加载在UI界面的显示参数中;Step 202, when the page recognition function control is triggered, the first application obtains the recognition text information of the specified page; the recognition text information is loaded into the display parameters of the UI interface by the first application;
当用户触发了第一应用程序的页面识别功能控件后,第一应用程序接收用户通过触屏操作指定需要识别的页面,第一应用程序获取用户指定的页面的识别文本信息。After the user triggers the page identification function control of the first application program, the first application program receives the user specifying the page to be identified through the touch screen operation, and the first application program obtains the identification text information of the page specified by the user.
第一应用程序将识别文本信息加载在UI界面的显示参数中,以便备选进行粘贴。The first application program loads the identified text information into the display parameters of the UI interface, so as to paste it as an alternative.
在本发明实施例中,所述步骤202具体可以包括如下子步骤:In the embodiment of the present invention, the step 202 may specifically include the following sub-steps:
子步骤S11,所述第一应用程序获取所述指定页面的源代码;Sub-step S11, the first application obtains the source code of the specified page;
对于一些取消了文本复制功能的页面,或只能提供全页面文本复制(不提供部分文本复制)的页面,第一应用程序可以直接获取这些页面的源代码。For some pages whose text copy function is canceled, or pages that can only provide full-page text copy (do not provide partial text copy), the first application program can directly obtain the source codes of these pages.
具体的,页面中的文本信息实际上是设置在View的各个控件中进行显示的。对于取消了文本复制功能的页面,实际上是在控件中关闭了提供复制功能的选项。对于只提供全页面文本复制(不提供部分文本复制)的页面,实际上是在空间中关闭了提供部分复制的选项。Specifically, the text information in the page is actually set to be displayed in each control of the View. For pages that have canceled the text copy function, the option to provide the copy function is actually turned off in the control. For pages that only offer full page text copy (no partial text copy), the option to provide partial copy is actually turned off in the space.
在本发明实施例中,第一应用程序获取指定页面的控件中源代码。源代码中包括了控件中的所有文本信息以及其他布局信息。In the embodiment of the present invention, the first application program obtains the source code in the control of the specified page. The source code includes all text information and other layout information in the control.
子步骤S12,从所述源代码中识别文本信息。Sub-step S12, identifying text information from the source code.
第一应用程序获取了页面中控件的源代码,然后遍历所有源代码,识别出其中的文本信息。The first application program obtains the source codes of the controls in the page, and then traverses all the source codes to identify the text information therein.
步骤203,所述第一应用程序依据所述UI界面的显示参数展现所述识别文本信息;Step 203, the first application program presents the identification text information according to the display parameters of the UI interface;
UI界面的显示参数是控件UI界面中显示内容的参数,具体可以包括:控件和布局对象。The display parameters of the UI interface are the parameters of the content displayed in the UI interface of the control, and specifically may include: controls and layout objects.
识别文本信息,具体被加载到控件中进行显示。Recognize text information, which is specifically loaded into the control for display.
第一应用程序根据UI界面的显示参数,展现显示参数中的识别文本信息。The first application program presents the identification text information in the display parameters according to the display parameters of the UI interface.
步骤204,当所述复制功能控件被触发后,所述第一应用程序接收针对所述识别文本信息的复制文本信息;Step 204, when the copy function control is triggered, the first application program receives copy text information for the identified text information;
用户针对展现在UI界面中的识别文本信息,选择需要复制的复制文本信息。The user selects the copied text information to be copied for the identified text information displayed on the UI interface.
第一应用程序接收用户需要复制的复制文本信息。The first application program receives the copy text information that the user needs to copy.
步骤205,所述第一应用程序将所述复制文本信息放到预设剪切板中;Step 205, the first application program puts the copied text information into a preset clipboard;
在本发明实施例中,所述第一应用程序具有多个预设剪切板;所述步骤205具体可以包括如下子步骤:In the embodiment of the present invention, the first application program has multiple preset clipboards; the step 205 may specifically include the following sub-steps:
子步骤S21,当所述多个预设剪切板中具有空的剪切板时,所述第一应用程序将所述复制文本信息放到空的剪切板中。Sub-step S21, when there is an empty clipboard in the plurality of preset clipboards, the first application program puts the copied text information in the empty clipboard.
当剪切板为空是指剪切板中没有存放文本内容。当存在空的剪切板时,第一应用程序可以将复制文本信息放到空的剪切板中。When the clipboard is empty, it means that there is no text content stored in the clipboard. When there is an empty clipboard, the first application program may put the copied text information into the empty clipboard.
在本发明实施例中,所述步骤205具体还可以包括如下子步骤:In the embodiment of the present invention, the step 205 may specifically include the following sub-steps:
子步骤S22,当所述多个预设剪切板中不具有空的剪切板时,所述第一应用程序确定各个剪切板中内容的放入顺序;Sub-step S22, when there is no empty clipboard in the plurality of preset clipboards, the first application program determines the order in which the content in each clipboard is placed;
具体的,当预设的多个剪切板中都存放了文本时,第一应用程序确定各个剪切板中文本放入时间的顺序。Specifically, when text is stored in multiple preset clipboards, the first application program determines the sequence of when the text is put into each clipboard.
子步骤S23,所述第一应用程序将内容放入顺序最早的剪切板中的内容删除,并将所述复制文本信息放入到删除内容的剪切板中。In sub-step S23, the first application program deletes the content put into the clipboard with the earliest sequence, and puts the copied text information into the clipboard of the deleted content.
第一应用程序将内容放入时间最早的剪切板中的内容删除,并将当前获得的复制文本信息放入到删除内容的剪切板中。The first application program deletes the content put into the clipboard with the earliest time, and puts the currently obtained copied text information into the clipboard of the deleted content.
步骤206,当所述单次粘贴功能控件被触发后,所述第一应用程序获得当前光标位置,并将所述预设剪切板中的复制文本信息粘贴到所述当前光标位置。Step 206, when the single paste function control is triggered, the first application program obtains the current cursor position, and pastes the copied text information in the preset clipboard to the current cursor position.
当用户触发单次粘贴功能控件后,第一应用程序获取当前UI界面的光标位置。然后将剪切板中的复制文本信息粘贴到当前光标位置上,完成粘贴操作。After the user triggers the single paste function control, the first application program obtains the cursor position of the current UI interface. Then paste the copied text information in the clipboard to the current cursor position to complete the paste operation.
在本发明实施例中,所述第一应用程序具有多次粘贴功能控件,所述的方法还可以包括:In the embodiment of the present invention, the first application program has multiple pasting function controls, and the method may further include:
步骤207,当所述多次粘贴功能控件被触发后,所述第一应用程序依次获得多个光标位置;Step 207, when the multiple pasting function controls are triggered, the first application program obtains multiple cursor positions in sequence;
多次粘贴功能控件可以实现将多个复制文本信息粘贴到不同光标的功能。The multi-paste function control can realize the function of pasting multiple copied text information to different cursors.
当多次粘贴功能控件被触发后,用户可以在界面上依次选择多个光标位置,第一应用程序获得用户依次选择的多个光标位置。When the multi-paste function control is triggered, the user can sequentially select multiple cursor positions on the interface, and the first application program obtains the multiple cursor positions sequentially selected by the user.
步骤208,所述第一应用程序将所述多个预设剪切板中的内容,按照剪切板中内容的放入顺序,以及所述多个光标位置的获得顺序,将剪切板中的内容粘贴到对应的光标位置。Step 208, the first application program puts the content in the plurality of preset clipboards into the clipboard according to the order in which the content in the clipboard is placed and the order in which the positions of the cursor are obtained. Paste the content at the corresponding cursor position.
第一应用程序确定各个剪切板中的内容放入时间的顺序,以及确定用户依次选择的多个光标位置的获得顺序。The first application program determines the order in which the content in each clipboard is put into time, and determines the order in which multiple cursor positions sequentially selected by the user are obtained.
可以将放入时间的顺序最早的剪切板中的内容放入到获得顺序最早的光标位置。You can put the content in the clipboard with the earliest order of time into the cursor position with the earliest order.
也可以将放入时间的顺序最早的剪切板中的内容放入到获得顺序最晚的光标位置。You can also put the content in the clipboard with the earliest sequence of time into the cursor position with the latest sequence.
具体放置方式,可以由用户进行设定。The specific placement method can be set by the user.
在本发明实施例的一个优选实施例中,所述步骤208具体可以包括如下子步骤:In a preferred embodiment of the embodiment of the present invention, the step 208 may specifically include the following sub-steps:
子步骤S31,所述第一应用程序确定所述多个预设剪切板的数目,以及确定所述用户选择的多个光标位置的数目;Sub-step S31, the first application program determines the number of the plurality of preset clipboards, and determines the number of the plurality of cursor positions selected by the user;
子步骤S32,当所述多个预设剪切板的数目小于所述用户选择的多个光标位置的数目时,所述第一应用程序确定所述用户选择的多个光标位置中,获得顺序靠后的数目与所述多个预设剪切板的数目相同的第一光标位置;Sub-step S32, when the number of the plurality of preset clipboards is less than the number of the plurality of cursor positions selected by the user, the first application program determines the order of obtaining among the plurality of cursor positions selected by the user the first cursor position whose number is the same as the number of preset clipboards;
例如,当前用户依次选择了5个光标位置,剪切板的数目为3。将5个光标位置中,选择顺序靠后的3个光标位置作为第一光标位置。For example, the current user has successively selected 5 cursor positions, and the number of clipboards is 3. Among the 5 cursor positions, the 3 cursor positions in the lower order are selected as the first cursor positions.
子步骤S33,所述第一应用程序按照剪切板中内容的放入顺序,以及所述第一光标位置中各个光标位置的获得顺序,将剪切板中的内容粘贴到对应的光标位置。In sub-step S33, the first application program pastes the content in the clipboard to the corresponding cursor position according to the order in which the content in the clipboard is placed and the order in which each cursor position in the first cursor position is obtained.
在本发明实施例的一个优选实施例中,所述步骤208具体还可以包括如下子步骤:In a preferred embodiment of the embodiment of the present invention, the step 208 may specifically include the following sub-steps:
子步骤S34,当所述多个预设剪切板的数目大于所述用户选择的多个光标位置的数目时,所述第一应用程序确定所述多个预设剪切板中,内容放入顺序靠前的数目与所述多个光标位置的数目相同的第一剪切板;Sub-step S34, when the number of the multiple preset clipboards is greater than the number of multiple cursor positions selected by the user, the first application program determines that among the multiple preset clipboards, the content is placed Importing the first clipboard whose number is the same as the number of the plurality of cursor positions;
例如,当前用户依次选择了2个光标位置,剪切板的数目为3。将3个剪切板中,内容放入顺序靠后的2个剪切板作为第一剪切板。For example, the current user has selected two cursor positions in sequence, and the number of clipboards is three. Among the 3 clipboards, put the content into the 2 clipboards in the lower order as the first clipboard.
子步骤S35,所述第一应用程序按照第一剪切板中内容的放入顺序,以及所述多个光标位置的获得顺序,将剪切板中的内容粘贴到对应的光标位置。In sub-step S35, the first application program pastes the content in the clipboard to the corresponding cursor position according to the order in which the content in the first clipboard is placed and the order in which the plurality of cursor positions are obtained.
在本发明实施例中,所述第一应用程序还具有短信识别功能控件;所述的方法还可以包括:In the embodiment of the present invention, the first application program also has a text message identification function control; the method may also include:
当所述短信识别功能控件被触发后,所述第一应用程序获得指定短信的文本信息;When the text message identification function control is triggered, the first application program obtains the text information of the specified text message;
所述第一应用程序将所述指定短信的文本信息放到预设剪切板中。The first application program puts the text information of the specified short message into a preset clipboard.
具体的,短信识别功能控件被触发后,短信识别功能控件能在检测到移动终端接收到短信的时候,获取短信中的文本信息。Specifically, after the short message recognition function control is triggered, the short message recognition function control can obtain the text information in the short message when detecting that the mobile terminal has received the short message.
在短信识别功能控件获得短信的文本信息后,第一应用程序将短信中的文本信息放到剪切板中,以便备选进行粘贴。After the short message recognition function control obtains the text information of the short message, the first application program puts the text information in the short message into the clipboard, so that it can be pasted as an alternative.
进一步的,在本发明实施例中,当所述指定短信的文本信息中具有符合预设条件的目标信息时,所述第一应用程序触发提醒操作。Further, in the embodiment of the present invention, when the text information of the designated short message contains target information meeting preset conditions, the first application program triggers a reminder operation.
预设条件具体可以是与预设关键词匹配并且在关键词后具有数字。例如,例如,预设关键词是:验证码。预设条件是匹配到验证码,并且验证码后面具有数字。当检测到短信信息中有验证码,并且验证码后具有数字时,第一应用程序触发提醒操作。Specifically, the preset condition may be matching with a preset keyword and having a number after the keyword. For example, the preset keyword is: verification code. The preset condition is that the verification code is matched, and there is a number behind the verification code. When it is detected that there is a verification code in the short message, and there is a number behind the verification code, the first application triggers a reminder operation.
提醒操作具体可是,启动移动终端的振动器,也可以是播放提醒音乐。Specifically, the reminder operation may be to start the vibrator of the mobile terminal, or to play reminder music.
在本发明实施例中,所述的方法还可以包括:In an embodiment of the present invention, the method may also include:
当所述第一应用程序被启动后,所述第一应用程序展现预设功能菜单;所述预设功能菜单包括预设功能控件的图标;After the first application program is started, the first application program displays a preset function menu; the preset function menu includes icons of preset function controls;
在所述第一应用程序展现所述预设功能菜单时,所述第一应用程序接收滑动操作触发信号;When the first application program presents the preset function menu, the first application program receives a sliding operation trigger signal;
所述第一应用程序确定所述滑动操作触发信号对应的预设功能控件的图标;The first application program determines the icon of the preset function control corresponding to the sliding operation trigger signal;
所述第一应用程序触发所述预设功能控件的图标对应的预设功能控件。The first application program triggers the preset function control corresponding to the icon of the preset function control.
滑动操作触发信号包括用户触屏区域的坐标信息,第一应用程序根据触屏区域的坐标信息,确定触屏区域内的预设功能控件的图标。The sliding operation trigger signal includes coordinate information of the user's touch screen area, and the first application program determines icons of preset function controls in the touch screen area according to the coordinate information of the touch screen area.
具体的,各个功能控件的图标在功能菜单界面中具有一个坐标,根据触屏区域的坐标信息,可以确定触屏区域内是否有功能控件的图标。Specifically, the icon of each functional control has a coordinate in the function menu interface, and according to the coordinate information of the touch screen area, it can be determined whether there is an icon of the functional control in the touch screen area.
在本发明实施例中,所述预设功能控件包括:所述识别功能控件、所述复制功能控件、所述单次粘贴功能控件、所述多次粘贴功能控件以及所述短信识别功能控件。In the embodiment of the present invention, the preset function control includes: the identification function control, the copy function control, the single paste function control, the multiple paste function control and the short message identification function control.
当第一应用程序被启动后,第一应用程序可在所有UI界面上展现预设功能菜单。预设功能菜单包括预设功能控件的图标,例如:识别功能控件的图标、复制功能控件的图标、单次粘贴功能控件的图标、多次粘贴功能控件的图标以及短信识别功能控件的图标。用户可以在预设功能菜单展现时,在预设功能菜单上滑动,以选择需要触发的功能控件。After the first application program is activated, the first application program can display a preset function menu on all UI interfaces. The preset function menu includes icons of preset function controls, for example: icons for recognition function controls, icons for copy function controls, icons for single paste function controls, icons for multiple paste function controls, and icons for SMS identification function controls. When the preset function menu is displayed, the user can slide on the preset function menu to select the function control to be triggered.
对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明实施例并不受所描述的动作顺序的限制,因为依据本发明实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本发明实施例所必须的。For the method embodiment, for the sake of simple description, it is expressed as a series of action combinations, but those skilled in the art should know that the embodiment of the present invention is not limited by the described action order, because according to the embodiment of the present invention , certain steps may be performed in other order or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
参照图3,示出了根据本发明一个实施例的一种移动终端中的文本处理装置实施例的结构框图,具体可以包括如下模块:Referring to FIG. 3 , it shows a structural block diagram of an embodiment of a text processing device in a mobile terminal according to an embodiment of the present invention, which may specifically include the following modules:
位于所述移动终端的启动模块301,用于启动第一应用程序,所述第一应用程序可悬浮于所述移动终端的所有UI界面,所述第一应用程序具有页面识别功能控件、复制功能控件以及单次粘贴功能控件;The starting module 301 located in the mobile terminal is used to start the first application program, the first application program can be suspended in all UI interfaces of the mobile terminal, and the first application program has a page recognition function control and a copy function control and single paste function control;
位于所述第一应用程序的识别文本信息获取模块302,用于当所述页面识别功能控件被触发后,获取指定页面的识别文本信息;所述识别文本信息被所述第一应用程序加载在UI界面的显示参数中;The recognition text information acquisition module 302 located in the first application is configured to obtain the recognition text information of a specified page when the page recognition function control is triggered; the recognition text information is loaded by the first application in In the display parameters of the UI interface;
位于所述第一应用程序的识别文本信息展现模块303,用于依据所述UI界面的显示参数展现所述识别文本信息;The identification text information display module 303 located in the first application program is used to display the identification text information according to the display parameters of the UI interface;
位于所述第一应用程序的复制文本信息接收模块304,用于当所述复制功能控件被触发后,接收针对所述识别文本信息的复制文本信息;The copied text information receiving module 304 located in the first application program is configured to receive the copied text information for the identified text information when the copy function control is triggered;
位于所述第一应用程序的复制文本信息放置模块305,用于将所述复制文本信息放到预设剪切板中;The copied text information placement module 305 located in the first application program is configured to put the copied text information into a preset clipboard;
位于所述第一应用程序的单次粘贴模块306,用于当所述单次粘贴功能控件被触发后,获得当前光标位置,并将所述预设剪切板中的复制文本信息粘贴到所述当前光标位置。The single paste module 306 located in the first application program is configured to obtain the current cursor position after the single paste function control is triggered, and paste the copied text information in the preset clipboard to the Describes the current cursor position.
在本发明的一个实施例中,所述识别文本信息获取模块302可以包括:In an embodiment of the present invention, the recognition text information acquisition module 302 may include:
位于所述第一应用程序的源代码获取模块,用于获取所述指定页面的源代码;A source code acquisition module located in the first application program, configured to acquire the source code of the specified page;
位于所述第一应用程序的源代码识别模块,用于从所述源代码中识别文本信息。The source code identification module located in the first application program is configured to identify text information from the source code.
在本发明的一个实施例中,所述第一应用程序具有多个预设剪切板;所述单次粘贴模块306可以包括:In one embodiment of the present invention, the first application program has multiple preset clipboards; the single pasting module 306 may include:
位于所述第一应用程序的第一放置子模块,用于当所述多个预设剪切板中具有空的剪切板时,将所述复制文本信息放到空的剪切板中。The first placing submodule located in the first application program is configured to place the copied text information in an empty clipboard when there is an empty clipboard among the plurality of preset clipboards.
在本发明的一个实施例中,所述单次粘贴模块306还可以包括:In an embodiment of the present invention, the single pasting module 306 may also include:
位于所述第一应用程序的内容顺序确定子模块,用于当所述多个预设剪切板中不具有空的剪切板时,确定各个剪切板中内容的放入顺序;The content order determination submodule located in the first application program is used to determine the order in which the content in each clipboard is placed when there is no empty clipboard in the plurality of preset clipboards;
位于所述第一应用程序的删除放置子模块,用于将内容放入顺序最早的剪切板中的内容删除,并将所述复制文本信息放入到删除内容的剪切板中。The delete and place submodule located in the first application program is used to delete the content put into the clipboard with the earliest sequence, and put the copied text information into the clipboard of the deleted content.
在本发明的一个实施例中,所述第一应用程序具有多次粘贴功能控件;所述的装置还包括:In one embodiment of the present invention, the first application program has multiple pasting function controls; the device also includes:
位于所述第一应用程序多光标位置获取模块,用于当所述多次粘贴功能控件被触发后,依次获得多个光标位置;The multi-cursor position acquisition module located in the first application program is used to sequentially obtain multiple cursor positions after the multiple pasting function controls are triggered;
位于所述第一应用程序的多次粘贴模块,用于将所述多个预设剪切板中的内容,按照剪切板中内容的放入顺序,以及所述多个光标位置的获得顺序,将剪切板中的内容粘贴到对应的光标位置。The multi-paste module located in the first application program is used for placing the contents in the plurality of preset clipboards according to the order in which the contents in the clipboard are placed, and the order in which the plurality of cursor positions are obtained , paste the content in the clipboard to the corresponding cursor position.
在本发明的一个实施例中,所述多次粘贴模块包括:In one embodiment of the present invention, the multiple pasting module includes:
位于所述第一应用程序的第一数目确定子模块,用于确定所述多个预设剪切板的数目,以及确定所述用户选择的多个光标位置的数目;The first number determination submodule located in the first application program is configured to determine the number of the plurality of preset clipboards, and determine the number of the plurality of cursor positions selected by the user;
位于所述第一应用程序的第一光标位置确定子模块,用于当所述多个预设剪切板的数目小于所述用户选择的多个光标位置的数目时,确定所述用户选择的多个光标位置中,获得顺序靠后的数目与所述多个预设剪切板的数目相同的第一光标位置;The first cursor position determination submodule located in the first application program is configured to determine the number of cursor positions selected by the user when the number of the plurality of preset clipboards is less than the number of the plurality of cursor positions selected by the user. Among the plurality of cursor positions, obtaining the first cursor position whose number in sequence is the same as the number of the plurality of preset clipboards;
位于所述第一应用程序的第一光标粘贴子模块,用于按照剪切板中内容的放入顺序,以及所述第一光标位置中各个光标位置的获得顺序,将剪切板中的内容粘贴到对应的光标位置。The first cursor pasting submodule located in the first application program is used to paste the content in the clipboard according to the order in which the content in the clipboard is placed and the order in which each cursor position in the first cursor position is obtained. The content is pasted to the corresponding cursor position.
在本发明的一个实施例中,所述多次粘贴模块还包括:In one embodiment of the present invention, the multiple pasting module also includes:
位于所述第一应用程序的第一剪切板确定子模块,用于当所述多个预设剪切板的数目大于所述用户选择的多个光标位置的数目时,确定所述多个预设剪切板中,内容放入顺序靠前的数目与所述多个光标位置的数目相同的第一剪切板;The first clipboard determination submodule located in the first application program is configured to determine the plurality of preset clipboards when the number of the plurality of preset clipboards is greater than the number of the plurality of cursor positions selected by the user In the preset clipboard, the content is put into the first clipboard whose number in the front is the same as the number of the plurality of cursor positions;
位于所述第一应用程序的第一剪切板粘贴子模块,用于按照第一剪切板中内容的放入顺序,以及所述多个光标位置的获得顺序,将剪切板中的内容粘贴到对应的光标位置。The first clipboard pasting submodule located in the first application program is used to paste the content in the clipboard according to the order in which the content in the first clipboard is placed and the order in which the multiple cursor positions are obtained. The content is pasted to the corresponding cursor position.
在本发明的一个实施例中,所述第一应用程序还具有短信识别功能控件;所述的装置还可以包括:In one embodiment of the present invention, the first application program also has a text message identification function control; the device may also include:
位于所述第一应用程序的短信文本获取模块,用于当所述短信识别功能控件被触发后,第一应用程序获得指定短信的文本信息;The short message text acquisition module located in the first application program is used to obtain the text information of the specified short message when the short message recognition function control is triggered;
位于所述第一应用程序的短信文本放置模块,用于将所述指定短信的文本信息放到预设剪切板中。The short message text placement module located in the first application program is used to put the text information of the specified short message into the preset clipboard.
在本发明的一个实施例中,所述的装置还可以包括:In one embodiment of the present invention, the device may also include:
位于所述第一应用程序的提醒触发模块,用于当所述指定短信的文本信息中具有符合预设条件的目标信息时,触发提醒操作。The reminder triggering module located in the first application program is configured to trigger a reminder operation when the text information of the designated short message has target information meeting preset conditions.
参照图4,示出了根据本发明一个实施例的另一种移动终端中的文本处理装置实施例的结构框图,具体可以包括如下模块:Referring to FIG. 4 , it shows a structural block diagram of another text processing device embodiment in a mobile terminal according to an embodiment of the present invention, which may specifically include the following modules:
位于所述移动终端的启动模块401,用于启动第一应用程序,所述第一应用程序可悬浮于所述移动终端的所有UI界面,所述第一应用程序具有页面识别功能控件、复制功能控件以及单次粘贴功能控件;The startup module 401 located in the mobile terminal is used to start a first application program, the first application program can be suspended in all UI interfaces of the mobile terminal, and the first application program has a page recognition function control and a copy function control and single paste function control;
位于所述第一应用程序的识别文本信息获取模块402,用于当所述页面识别功能控件被触发后,获取指定页面的识别文本信息;所述识别文本信息被所述第一应用程序加载在UI界面的显示参数中;The recognition text information acquisition module 402 located in the first application program is used to obtain the recognition text information of the specified page when the page recognition function control is triggered; the recognition text information is loaded in the first application program In the display parameters of the UI interface;
位于所述第一应用程序的识别文本信息展现模块403,用于依据所述UI界面的显示参数展现所述识别文本信息;The identification text information display module 403 located in the first application program is used to display the identification text information according to the display parameters of the UI interface;
位于所述第一应用程序的复制文本信息接收模块404,用于当所述复制功能控件被触发后,接收针对所述识别文本信息的复制文本信息;The copied text information receiving module 404 located in the first application program is configured to receive the copied text information for the identified text information when the copy function control is triggered;
位于所述第一应用程序的复制文本信息放置模块405,用于将所述复制文本信息放到预设剪切板中;The copied text information placement module 405 located in the first application program is configured to put the copied text information into a preset clipboard;
位于所述第一应用程序的单次粘贴模块406,用于当所述单次粘贴功能控件被触发后,获得当前光标位置,并将所述预设剪切板中的复制文本信息粘贴到所述当前光标位置。The single paste module 406 located in the first application program is configured to obtain the current cursor position when the single paste function control is triggered, and paste the copied text information in the preset clipboard to the Describes the current cursor position.
位于所述第一应用程序的功能菜单展现模块407,用于当所述第一应用程序被启动后,展现预设功能菜单;所述预设功能菜单包括预设功能控件的图标;The function menu presentation module 407 located in the first application is configured to display a preset function menu when the first application is started; the preset function menu includes icons of preset function controls;
位于所述第一应用程序的滑动操作触发信号接收模块408,用于在所述第一应用程序展现所述预设功能菜单时,接收滑动操作触发信号;The sliding operation trigger signal receiving module 408 located in the first application program is configured to receive a sliding operation trigger signal when the first application program presents the preset function menu;
位于所述第一应用程序的控件图标确定模块409,用于确定所述滑动操作触发信号对应的预设功能控件的图标;The control icon determination module 409 located in the first application program is configured to determine the icon of the preset function control corresponding to the sliding operation trigger signal;
位于所述第一应用程序的控件触发模块410,用于触发所述预设功能控件的图标对应的预设功能控件。The control triggering module 410 located in the first application program is configured to trigger the preset function control corresponding to the icon of the preset function control.
在本发明的一个实施例中,所述预设功能控件包括:所述识别功能控件、所述复制功能控件、所述单次粘贴功能控件、所述多次粘贴功能控件以及所述短信识别功能控件。In one embodiment of the present invention, the preset function controls include: the identification function control, the copy function control, the single paste function control, the multiple paste function control and the short message identification function controls.
本发明实施例还提供了一种移动终端,如图5所示,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例方法部分。该终端可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Pointof Sales,销售终端)、车载电脑等任意终端设备,以终端为手机为例:The embodiment of the present invention also provides a mobile terminal, as shown in FIG. 5 , for the convenience of description, only the parts related to the embodiment of the present invention are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present invention. . The terminal can be any terminal device including mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of Sales, sales terminal), vehicle-mounted computer, etc. Taking the terminal as a mobile phone as an example:
图5示出的是与本发明实施例提供的终端相关的手机的部分结构的框图。参考图5,手机包括:射频(Radio Frequency,RF)电路510、存储器520、输入单元530、显示单元540、传感器550、音频电路560、无线保真(wireless fidelity,WiFi)模块570、处理器580、以及电源590等部件。本领域技术人员可以理解,图5中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 5 shows a block diagram of a partial structure of a mobile phone related to a terminal provided by an embodiment of the present invention. 5, the mobile phone includes: a radio frequency (Radio Frequency, RF) circuit 510, a memory 520, an input unit 530, a display unit 540, a sensor 550, an audio circuit 560, a wireless fidelity (wireless fidelity, WiFi) module 570, a processor 580 , and power supply 590 and other components. Those skilled in the art can understand that the structure of the mobile phone shown in FIG. 5 is not limited to the mobile phone, and may include more or less components than shown in the figure, or combine some components, or arrange different components.
下面结合图5对手机的各个构成部件进行具体的介绍:The following is a specific introduction to each component of the mobile phone in conjunction with Figure 5:
RF电路510可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器580处理;另外,将设计上行的数据发送给基站。通常,RF电路510包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low NoiseAmplifier,LNA)、双工器等。此外,RF电路510还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(GlobalSystem of Mobile communication,GSM)、通用分组无线服务(General Packet RadioService,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。The RF circuit 510 can be used for sending and receiving information or receiving and sending signals during a call. In particular, after receiving the downlink information from the base station, the processor 580 processes it; in addition, it sends the designed uplink data to the base station. Generally, the RF circuit 510 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, and the like. In addition, RF circuitry 510 may also communicate with networks and other devices via wireless communications. The above wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile communication (Global System of Mobile communication, GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access) , CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (Long Term Evolution, LTE), email, Short Messaging Service (Short Messaging Service, SMS), etc.
存储器520可用于存储软件程序以及模块,处理器580通过运行存储在存储器520的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器520可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器520可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 520 can be used to store software programs and modules, and the processor 580 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 520 . The memory 520 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); Data created by the use of mobile phones (such as audio data, phonebook, etc.), etc. In addition, the memory 520 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.
输入单元530可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元530可包括触控面板531以及其他输入设备532。触控面板531,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板531上或在触控面板531附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板531可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器580,并能接收处理器580发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板531。除了触控面板531,输入单元530还可以包括其他输入设备532。具体地,其他输入设备532可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 530 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the mobile phone. Specifically, the input unit 530 may include a touch panel 531 and other input devices 532 . The touch panel 531, also referred to as a touch screen, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 531 or near the touch panel 531). operation), and drive the corresponding connection device according to the preset program. Optionally, the touch panel 531 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the to the processor 580, and can receive and execute commands sent by the processor 580. In addition, the touch panel 531 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 531 , the input unit 530 may also include other input devices 532 . Specifically, other input devices 532 may include but not limited to one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), trackball, mouse, joystick, and the like.
显示单元540可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元540可包括显示面板541,可选的,可以采用液晶显示器(Liquid CrystalDisplay,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板541。进一步的,触控面板531可覆盖显示面板541,当触控面板531检测到在其上或附近的触摸操作后,传送给处理器580以确定触摸事件的类型,随后处理器580根据触摸事件的类型在显示面板541上提供相应的视觉输出。虽然在图5中,触控面板531与显示面板541是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板531与显示面板541集成而实现手机的输入和输出功能。The display unit 540 may be used to display information input by or provided to the user and various menus of the mobile phone. The display unit 540 may include a display panel 541. Optionally, the display panel 541 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like. Further, the touch panel 531 may cover the display panel 541, and when the touch panel 531 detects a touch operation on or near it, it transmits to the processor 580 to determine the type of the touch event, and then the processor 580 determines the type of the touch event according to the touch event. The type provides a corresponding visual output on the display panel 541 . Although in FIG. 5 , the touch panel 531 and the display panel 541 are used as two independent components to realize the input and input functions of the mobile phone, in some embodiments, the touch panel 531 and the display panel 541 can be integrated to form a mobile phone. Realize the input and output functions of the mobile phone.
手机还可包括至少一种传感器550,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板541的亮度,接近传感器可在手机移动到耳边时,关闭显示面板541和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The handset may also include at least one sensor 550, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor can include an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 541 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 541 and/or when the mobile phone is moved to the ear. or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used to identify the application of mobile phone posture (such as horizontal and vertical screen switching, related Games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.; as for other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. repeat.
音频电路560、扬声器561,传声器562可提供用户与手机之间的音频接口。音频电路560可将接收到的音频数据转换后的电信号,传输到扬声器561,由扬声器561转换为声音信号输出;另一方面,传声器562将收集的声音信号转换为电信号,由音频电路560接收后转换为音频数据,再将音频数据输出处理器580处理后,经RF电路510以发送给比如另一手机,或者将音频数据输出至存储器520以便进一步处理。The audio circuit 560, the speaker 561, and the microphone 562 can provide an audio interface between the user and the mobile phone. The audio circuit 560 can transmit the electrical signal converted from the received audio data to the loudspeaker 561, and the loudspeaker 561 converts it into an audio signal output; After being received, it is converted into audio data, and then the audio data is processed by the output processor 580, and then sent to another mobile phone through the RF circuit 510, or the audio data is output to the memory 520 for further processing.
WiFi属于短距离无线传输技术,手机通过WiFi模块570可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图5示出了WiFi模块570,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-distance wireless transmission technology. The mobile phone can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 570, which provides users with wireless broadband Internet access. Although Fig. 5 shows a WiFi module 570, it can be understood that it is not an essential component of the mobile phone, and can be completely omitted as required without changing the essence of the invention.
处理器580是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器520内的软件程序和/或模块,以及调用存储在存储器520内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器580可包括一个或多个处理单元;优选的,处理器580可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器580中。The processor 580 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and/or modules stored in the memory 520, and calling data stored in the memory 520, execution Various functions and processing data of the mobile phone, so as to monitor the mobile phone as a whole. Optionally, the processor 580 may include one or more processing units; preferably, the processor 580 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, etc. , the modem processor mainly handles wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 580 .
手机还包括给各个部件供电的电源590(比如电池),优选的,电源可以通过电源管理系统与处理器580逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile phone also includes a power supply 590 (such as a battery) for supplying power to each component. Preferably, the power supply can be logically connected to the processor 580 through the power management system, so as to realize functions such as managing charging, discharging, and power consumption management through the power management system.
尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown, the mobile phone may also include a camera, a Bluetooth module, etc., which will not be repeated here.
在本发明实施例中,该终端所包括的处理器580还具有以下功能:In the embodiment of the present invention, the processor 580 included in the terminal also has the following functions:
启动第一应用程序,所述第一应用程序可悬浮于所述移动终端的所有UI界面,所述第一应用程序具有页面识别功能控件、复制功能控件以及单次粘贴功能控件;Start the first application program, the first application program can be suspended in all UI interfaces of the mobile terminal, the first application program has a page recognition function control, a copy function control and a single paste function control;
当所述页面识别功能控件被触发后,所述第一应用程序获取指定页面的识别文本信息;所述识别文本信息被所述第一应用程序加载在UI界面的显示参数中;When the page identification function control is triggered, the first application program obtains the identification text information of the specified page; the identification text information is loaded into the display parameters of the UI interface by the first application program;
所述第一应用程序依据所述UI界面的显示参数展现所述识别文本信息;The first application program presents the identification text information according to the display parameters of the UI interface;
当所述复制功能控件被触发后,所述第一应用程序接收针对所述识别文本信息的复制文本信息;When the copy function control is triggered, the first application program receives copy text information for the identified text information;
所述第一应用程序将所述复制文本信息放到预设剪切板中;The first application program puts the copied text information into a preset clipboard;
当所述单次粘贴功能控件被触发后,所述第一应用程序获得当前光标位置,并将所述预设剪切板中的复制文本信息粘贴到所述当前光标位置。When the single paste function control is triggered, the first application program obtains the current cursor position, and pastes the copied text information in the preset clipboard to the current cursor position.
可选地,该终端所包括的处理器580还具有以下功能:Optionally, the processor 580 included in the terminal also has the following functions:
所述第一应用程序获取所述指定页面的源代码;The first application obtains the source code of the specified page;
从所述源代码中识别文本信息。Textual information is identified from the source code.
可选地,所述第一应用程序具有多个预设剪切板,该终端所包括的处理器580还具有以下功能:当所述多个预设剪切板中具有空的剪切板时,所述第一应用程序将所述复制文本信息放到空的剪切板中。Optionally, the first application program has multiple preset clipboards, and the processor 580 included in the terminal also has the following function: when there is an empty clipboard among the multiple preset clipboards , the first application program puts the copied text information into an empty clipboard.
可选地,该终端所包括的处理器580还具有以下功能:Optionally, the processor 580 included in the terminal also has the following functions:
当所述多个预设剪切板中不具有空的剪切板时,所述第一应用程序确定各个剪切板中内容的放入顺序;When there is no empty clipboard in the plurality of preset clipboards, the first application program determines the order in which the content in each clipboard is placed;
所述第一应用程序将内容放入顺序最早的剪切板中的内容删除,并将所述复制文本信息放入到删除内容的剪切板中。The first application program deletes the content put into the clipboard with the earliest sequence, and puts the copied text information into the clipboard of the deleted content.
可选地,所述第一应用程序具有多次粘贴功能控件;该终端所包括的处理器580还具有以下功能:Optionally, the first application program has multiple pasting function controls; the processor 580 included in the terminal also has the following functions:
当所述多次粘贴功能控件被触发后,所述第一应用程序依次获得多个光标位置;After the multiple pasting function control is triggered, the first application program obtains multiple cursor positions in sequence;
所述第一应用程序将所述多个预设剪切板中的内容,按照剪切板中内容的放入顺序,以及所述多个光标位置的获得顺序,将剪切板中的内容粘贴到对应的光标位置。The first application program pastes the contents of the plurality of preset clipboards according to the order in which the contents in the clipboards are placed and the order in which the positions of the plurality of cursors are obtained to the corresponding cursor position.
可选地,该终端所包括的处理器580还具有以下功能:Optionally, the processor 580 included in the terminal also has the following functions:
所述第一应用程序确定所述多个预设剪切板的数目,以及确定所述用户选择的多个光标位置的数目;The first application program determines the number of the plurality of preset clipboards, and determines the number of the plurality of cursor positions selected by the user;
当所述多个预设剪切板的数目小于所述用户选择的多个光标位置的数目时,所述第一应用程序确定所述用户选择的多个光标位置中,获得顺序靠后的数目与所述多个预设剪切板的数目相同的第一光标位置;When the number of the plurality of preset clipboards is less than the number of the plurality of cursor positions selected by the user, the first application program determines that among the plurality of cursor positions selected by the user, the number in the lower order is obtained a first cursor position that is the same as the number of the plurality of preset clipboards;
所述第一应用程序按照剪切板中内容的放入顺序,以及所述第一光标位置中各个光标位置的获得顺序,将剪切板中的内容粘贴到对应的光标位置。The first application program pastes the content in the clipboard to the corresponding cursor position according to the order in which the content in the clipboard is placed and the order in which each cursor position in the first cursor position is obtained.
可选地,该终端所包括的处理器580还具有以下功能:Optionally, the processor 580 included in the terminal also has the following functions:
当所述多个预设剪切板的数目大于所述用户选择的多个光标位置的数目时,所述第一应用程序确定所述多个预设剪切板中,内容放入顺序靠前的数目与所述多个光标位置的数目相同的第一剪切板;When the number of the plurality of preset clipboards is greater than the number of the plurality of cursor positions selected by the user, the first application program determines that among the plurality of preset clipboards, the content is placed in the front first clipboards whose number is the same as the number of the plurality of cursor positions;
所述第一应用程序按照第一剪切板中内容的放入顺序,以及所述多个光标位置的获得顺序,将剪切板中的内容粘贴到对应的光标位置。The first application program pastes the content in the clipboard to the corresponding cursor position according to the order in which the content in the first clipboard is placed and the order in which the plurality of cursor positions are obtained.
可选地,所述第一应用程序还具有短信识别功能控件,该终端所包括的处理器580还具有以下功能:Optionally, the first application program also has a text message identification function control, and the processor 580 included in the terminal also has the following functions:
当所述短信识别功能控件被触发后,所述第一应用程序获得指定短信的文本信息;When the text message identification function control is triggered, the first application program obtains the text information of the specified text message;
所述第一应用程序将所述指定短信的文本信息放到预设剪切板中。The first application program puts the text information of the specified short message into a preset clipboard.
可选地,该终端所包括的处理器580还具有以下功能:Optionally, the processor 580 included in the terminal also has the following functions:
当所述指定短信的文本信息中具有符合预设条件的目标信息时,所述第一应用程序触发提醒操作。When the text information of the specified short message contains target information meeting the preset condition, the first application program triggers a reminder operation.
可选地,该终端所包括的处理器580还具有以下功能:Optionally, the processor 580 included in the terminal also has the following functions:
当所述第一应用程序被启动后,所述第一应用程序展现预设功能菜单;所述预设功能菜单包括预设功能控件的图标;After the first application program is started, the first application program displays a preset function menu; the preset function menu includes icons of preset function controls;
在所述第一应用程序展现所述预设功能菜单时,所述第一应用程序接收滑动操作触发信号;When the first application program presents the preset function menu, the first application program receives a sliding operation trigger signal;
所述第一应用程序确定所述滑动操作触发信号对应的预设功能控件的图标;The first application program determines the icon of the preset function control corresponding to the sliding operation trigger signal;
所述第一应用程序触发所述预设功能控件的图标对应的预设功能控件。The first application program triggers the preset function control corresponding to the icon of the preset function control.
可选地,所述预设功能控件包括:所述识别功能控件、所述复制功能控件、所述单次粘贴功能控件、所述多次粘贴功能控件以及所述短信识别功能控件。Optionally, the preset function control includes: the identification function control, the copy function control, the single paste function control, the multiple paste function control, and the short message identification function control.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取存储器(RAM,RandomAccess Memory)、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium can include: Read Only Memory (ROM, Read Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk, etc.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the method of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the above-mentioned storage The medium can be read-only memory, magnetic or optical disk, etc.
以上对本发明所提供的一种移动终端进行了详细介绍,对于本领域的一般技术人员,依据本发明实施例的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The mobile terminal provided by the present invention has been introduced in detail above. For those of ordinary skill in the art, according to the idea of the embodiment of the present invention, there will be changes in the specific implementation and application range. In summary, , the contents of this specification should not be construed as limiting the present invention.
本发明实施例公开了A1、一种移动终端中的文本处理方法,包括:启动第一应用程序,所述第一应用程序可悬浮于所述移动终端的所有UI界面,所述第一应用程序具有页面识别功能控件、复制功能控件以及单次粘贴功能控件;当所述页面识别功能控件被触发后,所述第一应用程序获取指定页面的识别文本信息,所述识别文本信息被所述第一应用程序加载在UI界面的显示参数中;所述第一应用程序依据所述UI界面的显示参数展现所述识别文本信息;当所述复制功能控件被触发后,所述第一应用程序接收针对所述识别文本信息的复制文本信息;所述第一应用程序将所述复制文本信息放到预设剪切板中;当所述单次粘贴功能控件被触发后,所述第一应用程序获得当前光标位置,并将所述预设剪切板中的复制文本信息粘贴到所述当前光标位置。A2、如A1所述的方法,所述第一应用程序获取指定页面的识别文本信息的步骤包括:所述第一应用程序获取所述指定页面的源代码;从所述源代码中识别文本信息。A3、如A1或A2所述的方法,所述第一应用程序具有多个预设剪切板;所述第一应用程序将所述复制文本信息放到预设剪切板中的步骤包括:当所述多个预设剪切板中具有空的剪切板时,所述第一应用程序将所述复制文本信息放到空的剪切板中。A4、如A3所述的方法,所述第一应用程序将所述复制文本信息放到预设剪切板中的步骤还包括:当所述多个预设剪切板中不具有空的剪切板时,所述第一应用程序确定各个剪切板中内容的放入顺序;所述第一应用程序将内容放入顺序最早的剪切板中的内容删除,并将所述复制文本信息放入到删除内容的剪切板中。A5、如A3所述的方法,所述第一应用程序具有多次粘贴功能控件;所述的方法还包括:当所述多次粘贴功能控件被触发后,所述第一应用程序依次获得多个光标位置;所述第一应用程序将所述多个预设剪切板中的内容,按照剪切板中内容的放入顺序,以及所述多个光标位置的获得顺序,将剪切板中的内容粘贴到对应的光标位置。A6、如A5所述的方法,所述第一应用程序将所述多个预设剪切板中的内容,按照剪切板中内容的放入顺序,以及所述多个光标位置的获得顺序,将剪切板中的内容粘贴到对应的光标位置的步骤包括:所述第一应用程序确定所述多个预设剪切板的数目,以及确定所述用户选择的多个光标位置的数目;当所述多个预设剪切板的数目小于所述用户选择的多个光标位置的数目时,所述第一应用程序确定所述用户选择的多个光标位置中,获得顺序靠后的数目与所述多个预设剪切板的数目相同的第一光标位置;所述第一应用程序按照剪切板中内容的放入顺序,以及所述第一光标位置中各个光标位置的获得顺序,将剪切板中的内容粘贴到对应的光标位置。A7、如A6所述的方法,所述第一应用程序将所述多个预设剪切板中的内容,按照剪切板中内容的放入顺序,以及所述多个光标位置的获得顺序,将剪切板中的内容粘贴到对应的光标位置的步骤还包括:当所述多个预设剪切板的数目大于所述用户选择的多个光标位置的数目时,所述第一应用程序确定所述多个预设剪切板中,内容放入顺序靠前的数目与所述多个光标位置的数目相同的第一剪切板;所述第一应用程序按照第一剪切板中内容的放入顺序,以及所述多个光标位置的获得顺序,将剪切板中的内容粘贴到对应的光标位置。A8、如A1所述的方法,所述第一应用程序还具有短信识别功能控件;所述的方法还包括:当所述短信识别功能控件被触发后,所述第一应用程序获得指定短信的文本信息;所述第一应用程序将所述指定短信的文本信息放到预设剪切板中。A9、如A8所述的方法,还包括:当所述指定短信的文本信息中具有符合预设条件的目标信息时,所述第一应用程序触发提醒操作。A10、如A1-A9所述的方法,还包括:当所述第一应用程序被启动后,所述第一应用程序展现预设功能菜单;所述预设功能菜单包括预设功能控件的图标;在所述第一应用程序展现所述预设功能菜单时,所述第一应用程序接收滑动操作触发信号;所述第一应用程序确定所述滑动操作触发信号对应的预设功能控件的图标;所述第一应用程序触发所述预设功能控件的图标对应的预设功能控件。A11、如A10所述的方法,所述预设功能控件包括:所述识别功能控件、所述复制功能控件、所述单次粘贴功能控件、所述多次粘贴功能控件以及所述短信识别功能控件。本发明实施例公开了B12、一种移动终端中的文本处理装置,包括:位于所述移动终端的启动模块,用于启动第一应用程序,所述第一应用程序可悬浮于所述移动终端的所有UI界面,所述第一应用程序具有页面识别功能控件、复制功能控件以及单次粘贴功能控件;位于所述第一应用程序的识别文本信息获取模块,用于当所述页面识别功能控件被触发后,获取指定页面的识别文本信息;所述识别文本信息被所述第一应用程序加载在UI界面的显示参数中;位于所述第一应用程序的识别文本信息展现模块,用于依据所述UI界面的显示参数展现所述识别文本信息;位于所述第一应用程序的复制文本信息接收模块,用于当所述复制功能控件被触发后,接收针对所述识别文本信息的复制文本信息;位于所述第一应用程序的复制文本信息放置模块,用于将所述复制文本信息放到预设剪切板中;位于所述第一应用程序的单次粘贴模块,用于当所述单次粘贴功能控件被触发后,获得当前光标位置,并将所述预设剪切板中的复制文本信息粘贴到所述当前光标位置。B13、如B12所述的装置,所述识别文本信息获取模块包括:位于所述第一应用程序的源代码获取模块,用于获取所述指定页面的源代码;位于所述第一应用程序的源代码识别模块,用于从所述源代码中识别文本信息。B14、如B12或B13所述的装置,所述第一应用程序具有多个预设剪切板;所述单次粘贴模块包括:位于所述第一应用程序的第一放置子模块,用于当所述多个预设剪切板中具有空的剪切板时,将所述复制文本信息放到空的剪切板中。B15、如B14所述的装置,所述单次粘贴模块还包括:位于所述第一应用程序的内容顺序确定子模块,用于当所述多个预设剪切板中不具有空的剪切板时,确定各个剪切板中内容的放入顺序;位于所述第一应用程序的删除放置子模块,用于将内容放入顺序最早的剪切板中的内容删除,并将所述复制文本信息放入到删除内容的剪切板中。B16、如B14所述的装置,所述第一应用程序具有多次粘贴功能控件;所述的装置还包括:位于所述第一应用程序多光标位置获取模块,用于当所述多次粘贴功能控件被触发后,依次获得多个光标位置;位于所述第一应用程序的多次粘贴模块,用于将所述多个预设剪切板中的内容,按照剪切板中内容的放入顺序,以及所述多个光标位置的获得顺序,将剪切板中的内容粘贴到对应的光标位置。B17、如B16所述的装置,所述多次粘贴模块包括:位于所述第一应用程序的第一数目确定子模块,用于确定所述多个预设剪切板的数目,以及确定所述用户选择的多个光标位置的数目;位于所述第一应用程序的第一光标位置确定子模块,用于当所述多个预设剪切板的数目小于所述用户选择的多个光标位置的数目时,确定所述用户选择的多个光标位置中,获得顺序靠后的数目与所述多个预设剪切板的数目相同的第一光标位置;位于所述第一应用程序的第一光标粘贴子模块,用于按照剪切板中内容的放入顺序,以及所述第一光标位置中各个光标位置的获得顺序,将剪切板中的内容粘贴到对应的光标位置。B18、如B17所述的装置,所述多次粘贴模块还包括:位于所述第一应用程序的第一剪切板确定子模块,用于当所述多个预设剪切板的数目大于所述用户选择的多个光标位置的数目时,确定所述多个预设剪切板中,内容放入顺序靠前的数目与所述多个光标位置的数目相同的第一剪切板;位于所述第一应用程序的第一剪切板粘贴子模块,用于按照第一剪切板中内容的放入顺序,以及所述多个光标位置的获得顺序,将剪切板中的内容粘贴到对应的光标位置。B19、如B12所述的装置,所述第一应用程序还具有短信识别功能控件;所述的装置还包括:位于所述第一应用程序的短信文本获取模块,用于当所述短信识别功能控件被触发后,第一应用程序获得指定短信的文本信息;位于所述第一应用程序的短信文本放置模块,用于将所述指定短信的文本信息放到预设剪切板中。B20、如B19所述的装置,还包括:位于所述第一应用程序的提醒触发模块,用于当所述指定短信的文本信息中具有符合预设条件的目标信息时,触发提醒操作。B21、如B12-B20所述的装置,还包括:位于所述第一应用程序的功能菜单展现模块,用于当所述第一应用程序被启动后,展现预设功能菜单;所述预设功能菜单包括预设功能控件的图标;位于所述第一应用程序的滑动操作触发信号接收模块,用于在所述第一应用程序展现所述预设功能菜单时,接收滑动操作触发信号;位于所述第一应用程序的控件图标确定模块,用于确定所述滑动操作触发信号对应的预设功能控件的图标;位于所述第一应用程序的控件触发模块,用于触发所述预设功能控件的图标对应的预设功能控件。B22、如B21所述的装置,所述预设功能控件包括:所述识别功能控件、所述复制功能控件、所述单次粘贴功能控件、所述多次粘贴功能控件以及所述短信识别功能控件。本发明实施例公开了C23、一种移动终端,包括:存储器和处理器;其中,所述存储器用于存储启动第一应用程序的指令,当所述页面识别功能控件被触发后,所述第一应用程序获取指定页面的识别文本信息,所述识别文本信息被所述第一应用程序加载在UI界面的显示参数中的指令,所述第一应用程序依据所述UI界面的显示参数展现所述识别文本信息的指令,当所述复制功能控件被触发后,所述第一应用程序接收针对所述识别文本信息的复制文本信息的指令,所述第一应用程序将所述复制文本信息放到预设剪切板中的指令,当所述单次粘贴功能控件被触发后,所述第一应用程序获得当前光标位置,并将所述预设剪切板中的复制文本信息粘贴到所述当前光标位置的指令;所述处理器用于:依据所述启动第一应用程序的指令,启动第一应用程序,所述第一应用程序可悬浮于所述移动终端的所有UI界面,所述第一应用程序具有页面识别功能控件、复制功能控件以及单次粘贴功能控件;依据所述当所述页面识别功能控件被触发后,所述第一应用程序获取指定页面的识别文本信息,所述识别文本信息被所述第一应用程序加载在UI界面的显示参数中的指令,当所述页面识别功能控件被触发后,所述第一应用程序获取指定页面的识别文本信息,所述识别文本信息被所述第一应用程序加载在UI界面的显示参数中;依据所述第一应用程序依据所述UI界面的显示参数展现所述识别文本信息的指令,所述第一应用程序依据所述UI界面的显示参数展现所述识别文本信息;依据所述当所述复制功能控件被触发后,所述第一应用程序接收针对所述识别文本信息的复制文本信息的指令,当所述复制功能控件被触发后,所述第一应用程序接收针对所述识别文本信息的复制文本信息;依据所述第一应用程序将所述复制文本信息放到预设剪切板中的指令,所述第一应用程序将所述复制文本信息放到预设剪切板中;依据所述当所述单次粘贴功能控件被触发后,所述第一应用程序获得当前光标位置,并将所述预设剪切板中的复制文本信息粘贴到所述当前光标位置的指令,当所述单次粘贴功能控件被触发后,所述第一应用程序获得当前光标位置,并将所述预设剪切板中的复制文本信息粘贴到所述当前光标位置。C24、如C23所述的移动终端,所述处理器还用于:所述第一应用程序获取所述指定页面的源代码;从所述源代码中识别文本信息。C25、如C23或C24所述的移动终端,所述第一应用程序具有多个预设剪切板;所述处理器还用于:当所述多个预设剪切板中具有空的剪切板时,所述第一应用程序将所述复制文本信息放到空的剪切板中。C26、如C25所述的移动终端,所述处理器还用于:当所述多个预设剪切板中不具有空的剪切板时,所述第一应用程序确定各个剪切板中内容的放入顺序;所述第一应用程序将内容放入顺序最早的剪切板中的内容删除,并将所述复制文本信息放入到删除内容的剪切板中。C27、如C25所述的移动终端,所述第一应用程序具有多次粘贴功能控件;所述处理器还用于:当所述多次粘贴功能控件被触发后,所述第一应用程序依次获得多个光标位置;所述第一应用程序将所述多个预设剪切板中的内容,按照剪切板中内容的放入顺序,以及所述多个光标位置的获得顺序,将剪切板中的内容粘贴到对应的光标位置。C28、如C27所述的移动终端,所述处理器还用于:所述第一应用程序确定所述多个预设剪切板的数目,以及确定所述用户选择的多个光标位置的数目;当所述多个预设剪切板的数目小于所述用户选择的多个光标位置的数目时,所述第一应用程序确定所述用户选择的多个光标位置中,获得顺序靠后的数目与所述多个预设剪切板的数目相同的第一光标位置;所述第一应用程序按照剪切板中内容的放入顺序,以及所述第一光标位置中各个光标位置的获得顺序,将剪切板中的内容粘贴到对应的光标位置。C29、如C28所述的移动终端,所述处理器还用于:当所述多个预设剪切板的数目大于所述用户选择的多个光标位置的数目时,所述第一应用程序确定所述多个预设剪切板中,内容放入顺序靠前的数目与所述多个光标位置的数目相同的第一剪切板;所述第一应用程序按照第一剪切板中内容的放入顺序,以及所述多个光标位置的获得顺序,将剪切板中的内容粘贴到对应的光标位置。C30、如C23所述的移动终端,所述第一应用程序还具有短信识别功能控件;所述处理器还用于:当所述短信识别功能控件被触发后,所述第一应用程序获得指定短信的文本信息;所述第一应用程序将所述指定短信的文本信息放到预设剪切板中。C31、如C30所述的移动终端,所述处理器还用于:当所述指定短信的文本信息中具有符合预设条件的目标信息时,所述第一应用程序触发提醒操作。C32、如C23-C31所述的移动终端,所述处理器还用于:当所述第一应用程序被启动后,所述第一应用程序展现预设功能菜单;所述预设功能菜单包括预设功能控件的图标;在所述第一应用程序展现所述预设功能菜单时,所述第一应用程序接收滑动操作触发信号;所述第一应用程序确定所述滑动操作触发信号对应的预设功能控件的图标;所述第一应用程序触发所述预设功能控件的图标对应的预设功能控件。C33、如C32所述的移动终端,所述预设功能控件包括:所述识别功能控件、所述复制功能控件、所述单次粘贴功能控件、所述多次粘贴功能控件以及所述短信识别功能控件。 The embodiment of the present invention discloses A1, a text processing method in a mobile terminal, including: starting a first application, the first application can be suspended on all UI interfaces of the mobile terminal, the first application It has a page recognition function control, a copy function control and a single paste function control; when the page recognition function control is triggered, the first application program obtains the recognition text information of the specified page, and the recognition text information is obtained by the second An application program is loaded in the display parameters of the UI interface; the first application program displays the identification text information according to the display parameters of the UI interface; when the copy function control is triggered, the first application program receives Copy text information for the identified text information; the first application program puts the copied text information into the preset clipboard; when the single paste function control is triggered, the first application program The current cursor position is obtained, and the copied text information in the preset clipboard is pasted to the current cursor position. A2. The method as described in A1, the step of the first application program obtaining the identification text information of the specified page includes: the first application program obtaining the source code of the specified page; identifying the text information from the source code . A3. The method described in A1 or A2, wherein the first application program has multiple preset clipboards; the step of placing the copied text information in the preset clipboards by the first application program includes: When there is an empty clipboard in the plurality of preset clipboards, the first application program puts the copied text information in the empty clipboard. A4. The method as described in A3, the step of placing the copied text information in the preset clipboard by the first application program further includes: when there is no empty clipboard in the plurality of preset clipboards When cutting boards, the first application program determines the order in which the content in each clipboard is placed; the first application program deletes the content in the clipboard with the earliest order of content, and copies the copied text information Put it into the clipboard where the content was deleted. A5. The method as described in A3, wherein the first application program has multiple pasting function controls; the method further includes: when the multiple pasting function controls are triggered, the first application program sequentially obtains multiple pasting function controls. Cursor positions; the first application program puts the content in the plurality of preset clipboards into the clipboard according to the order in which the content in the clipboard is placed, and the order in which the plurality of cursor positions are obtained. Paste the content in the corresponding cursor position. A6, the method as described in A5, the first application program puts the content in the multiple preset clipboards according to the order in which the content in the clipboard is placed, and the order in which the multiple cursor positions are obtained , the step of pasting the content in the clipboard to the corresponding cursor position includes: the first application program determines the number of the plurality of preset clipboards, and determines the number of the plurality of cursor positions selected by the user ; When the number of the plurality of preset clipboards is less than the number of the plurality of cursor positions selected by the user, the first application program determines that among the plurality of cursor positions selected by the user, the one with the lower order is obtained The number of the first cursor position is the same as the number of the plurality of preset clipboards; the first application program is in accordance with the order in which the content in the clipboard is placed, and the acquisition of each cursor position in the first cursor position order, and paste the content in the clipboard to the corresponding cursor position. A7. The method as described in A6, the first application program puts the content in the multiple preset clipboards according to the order in which the content in the clipboard is placed, and the order in which the multiple cursor positions are obtained The step of pasting the content in the clipboard to the corresponding cursor position further includes: when the number of the plurality of preset clipboards is greater than the number of the plurality of cursor positions selected by the user, the first application The program determines that among the plurality of preset clipboards, the content is put into the first clipboard whose number is the same as the number of the plurality of cursor positions; The order in which the content in the clipboard is placed, and the order in which the plurality of cursor positions are obtained, paste the content in the clipboard to the corresponding cursor position. A8, the method as described in A1, the first application program also has a text message identification function control; the method also includes: when the text message identification function control is triggered, the first application program obtains the specified text message Text information; the first application program puts the text information of the specified short message into the preset clipboard. A9. The method according to A8, further comprising: when the text information of the specified short message has target information meeting preset conditions, the first application program triggers a reminder operation. A10. The method as described in A1-A9, further comprising: after the first application is started, the first application displays a preset function menu; the preset function menu includes icons of preset function controls ; When the first application program presents the preset function menu, the first application program receives a sliding operation trigger signal; the first application program determines the icon of the preset function control corresponding to the sliding operation trigger signal ; The first application program triggers the preset function control corresponding to the icon of the preset function control. A11. The method as described in A10, the preset function control includes: the identification function control, the copy function control, the single paste function control, the multiple paste function control and the short message identification function controls. The embodiment of the present invention discloses B12, a text processing device in a mobile terminal, including: a startup module located in the mobile terminal, used to start a first application program, and the first application program can be suspended in the mobile terminal All UI interfaces of the first application program have a page recognition function control, a copy function control, and a single paste function control; the recognition text information acquisition module located in the first application program is used for when the page recognition function control After being triggered, the identification text information of the specified page is obtained; the identification text information is loaded in the display parameters of the UI interface by the first application program; the identification text information display module located in the first application program is used for according to The display parameters of the UI interface show the identification text information; the copy text information receiving module located in the first application program is used to receive the copy text for the identification text information when the copy function control is triggered Information; the copied text information placement module located in the first application program, used to put the copied text information into the preset clipboard; the single paste module located in the first application program, used when the After the single paste function control is triggered, the current cursor position is obtained, and the copied text information in the preset clipboard is pasted to the current cursor position. B13. The device as described in B12, the identification text information acquisition module includes: a source code acquisition module located in the first application program, used to acquire the source code of the specified page; located in the first application program The source code identification module is used to identify text information from the source code. B14, the device as described in B12 or B13, the first application program has a plurality of preset clipboards; the single pasting module includes: a first placement submodule located in the first application program, for When there is an empty clipboard in the plurality of preset clipboards, the copied text information is placed in the empty clipboard. B15. The device as described in B14, the single pasting module further includes: a content order determination submodule located in the first application program, used for when there is no empty clipboard in the plurality of preset clipboards When cutting boards, determine the order in which the content in each clipboard is placed; the deletion and placement submodule located in the first application program is used to delete the content in the clipboard with the earliest sequence, and delete the content in the clipboard Copy the text information and put it into the clipboard where the content is deleted. B16, the device as described in B14, the first application program has multiple pasting function controls; the described device also includes: a multi-cursor position acquisition module located in the first application program, for when the multiple pasting After the function control is triggered, a plurality of cursor positions are sequentially obtained; the multiple pasting module located in the first application program is used to place the contents in the plurality of preset clipboards according to the placement of the contents in the clipboard; According to the input order and the acquisition order of the plurality of cursor positions, the content in the clipboard is pasted to the corresponding cursor position. B17. The device as described in B16, the multiple pasting module includes: a first number determination submodule located in the first application program, used to determine the number of the plurality of preset clipboards, and determine the number of preset clipboards The number of multiple cursor positions selected by the user; the first cursor position determination submodule located in the first application program is used for when the number of the multiple preset clipboards is less than the multiple cursors selected by the user When determining the number of positions, among the plurality of cursor positions selected by the user, obtain the first cursor position whose number in the lower order is the same as the number of the plurality of preset clipboards; located in the first application program The first cursor pasting sub-module is configured to paste the content in the clipboard to the corresponding cursor position according to the order in which the content in the clipboard is placed and the order in which each cursor position in the first cursor position is obtained. B18, the device as described in B17, the multiple pasting module also includes: a first clipboard determining submodule located in the first application program, used for when the number of the multiple preset clipboards is greater than When the number of the plurality of cursor positions selected by the user is determined, among the plurality of preset clipboards, the content is put into the first clipboard whose number in the front is the same as the number of the plurality of cursor positions; The first clipboard pasting submodule located in the first application program is used to paste the content in the clipboard according to the order in which the content in the first clipboard is placed and the order in which the multiple cursor positions are obtained. The content is pasted to the corresponding cursor position. B19, the device as described in B12, described first application program also has short message identification function control; Described device also includes: the short message text acquisition module that is positioned at described first application program, is used for when described short message identification function After the control is triggered, the first application program obtains the text information of the specified short message; the short message text placement module located in the first application program is used to put the text information of the specified short message into the preset clipboard. B20. The device as described in B19, further comprising: a reminder triggering module located in the first application program, configured to trigger a reminder operation when the text information of the specified short message has target information meeting preset conditions. B21. The device as described in B12-B20, further comprising: a function menu display module located in the first application, used to display a preset function menu when the first application is started; the preset The function menu includes icons of preset function controls; the sliding operation trigger signal receiving module located in the first application program is used to receive the sliding operation trigger signal when the first application program displays the preset function menu; The control icon determination module of the first application program is used to determine the icon of the preset function control corresponding to the sliding operation trigger signal; the control trigger module located in the first application program is used to trigger the preset function The icon of the control corresponds to the preset function control. B22, the device as described in B21, the preset function control includes: the identification function control, the copy function control, the single paste function control, the multiple paste function control and the short message identification function controls. The embodiment of the present invention discloses C23, a mobile terminal, including: a memory and a processor; wherein, the memory is used to store instructions for starting a first application program, and when the page recognition function control is triggered, the second An application program obtains the identification text information of a specified page, and the identification text information is loaded by the first application program into an instruction in the display parameters of the UI interface, and the first application program displays the displayed information according to the display parameters of the UI interface. The instruction for identifying text information, when the copy function control is triggered, the first application program receives an instruction for copying text information for the identified text information, and the first application program puts the copied text information Instructions to the preset clipboard, when the single paste function control is triggered, the first application program obtains the current cursor position, and pastes the copied text information in the preset clipboard to the The instruction of the current cursor position; the processor is configured to: according to the instruction of starting the first application, start the first application, the first application can be suspended in all UI interfaces of the mobile terminal, the The first application program has a page recognition function control, a copy function control, and a single paste function control; according to the above, when the page recognition function control is triggered, the first application program obtains the identification text information of the specified page, and the The recognition text information is loaded by the first application in the display parameters of the UI interface. When the page recognition function control is triggered, the first application obtains the recognition text information of the specified page, and the recognition text The information is loaded into the display parameters of the UI interface by the first application program; according to the instruction of displaying the identification text information according to the display parameters of the UI interface according to the first application program, the first application program according to the The display parameters of the UI interface display the identification text information; according to the description that when the copy function control is triggered, the first application program receives an instruction for copying the text information for the identification text information, when the copy function After the control is triggered, the first application program receives the copied text information for the identified text information; according to the instruction of the first application program to put the copied text information into the preset clipboard, the first application program An application program puts the copied text information into a preset clipboard; according to the description that when the single paste function control is triggered, the first application program obtains the current cursor position, and stores the preset The copy text information in the clipboard is pasted to the instruction of the current cursor position, when the single paste function control is triggered, the first application program obtains the current cursor position, and puts the preset clipboard The copied text information in is pasted at the current cursor position. C24. The mobile terminal according to C23, wherein the processor is further configured to: acquire the source code of the specified page by the first application program; identify text information from the source code. C25. The mobile terminal as described in C23 or C24, the first application program has multiple preset clipboards; the processor is also used for: when there is an empty clipboard among the multiple preset clipboards When cutting a board, the first application program puts the copied text information into an empty clipboard. C26. The mobile terminal as described in C25, the processor is further configured to: when there is no empty clipboard in the plurality of preset clipboards, the first application program determines the The order in which the content is put in: the first application program deletes the content in the clipboard with the earliest sequence of putting the content in, and puts the copied text information into the clipboard where the content is deleted. C27. The mobile terminal as described in C25, the first application program has multiple pasting function controls; the processor is also configured to: when the multiple pasting function controls are triggered, the first application program in turn Obtain multiple cursor positions; the first application program puts the content in the multiple preset clipboards into the clipboard according to the sequence in which the content in the clipboard is placed, and the sequence in which the multiple cursor positions are obtained The content in the cutting board is pasted to the corresponding cursor position. C28. The mobile terminal as described in C27, the processor is further configured to: the first application program determines the number of the plurality of preset clipboards, and determines the number of the plurality of cursor positions selected by the user ; When the number of the plurality of preset clipboards is less than the number of the plurality of cursor positions selected by the user, the first application program determines that among the plurality of cursor positions selected by the user, the one with the lower order is obtained The number of the first cursor position is the same as the number of the plurality of preset clipboards; the first application program is in accordance with the order in which the content in the clipboard is placed, and the acquisition of each cursor position in the first cursor position order, and paste the content in the clipboard to the corresponding cursor position. C29. The mobile terminal as described in C28, the processor is further configured to: when the number of the plurality of preset clipboards is greater than the number of the plurality of cursor positions selected by the user, the first application It is determined that among the plurality of preset clipboards, the content is put into the first clipboard whose number is the same as the number of the plurality of cursor positions; The order in which the content is placed, and the order in which the plurality of cursor positions are obtained, paste the content in the clipboard to the corresponding cursor position. C30, the mobile terminal as described in C23, the first application program also has a text message identification function control; the processor is also used for: when the text message identification function control is triggered, the first application program obtains a specified The text information of the short message; the first application program puts the text information of the specified short message into the preset clipboard. C31. The mobile terminal according to C30, wherein the processor is further configured to: when the text information of the specified short message has target information meeting a preset condition, the first application program triggers a reminder operation. C32. In the mobile terminal described in C23-C31, the processor is further configured to: when the first application program is started, the first application program displays a preset function menu; the preset function menu includes An icon of a preset function control; when the first application program presents the preset function menu, the first application program receives a sliding operation trigger signal; the first application program determines that the sliding operation trigger signal corresponds to An icon of a preset function control; the first application program triggers a preset function control corresponding to the icon of the preset function control. C33. The mobile terminal as described in C32, the preset function controls include: the identification function control, the copy function control, the single paste function control, the multiple paste function control, and the short message identification Functional controls.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610581172.1A CN106168905A (en) | 2016-07-21 | 2016-07-21 | Text handling method, device and mobile terminal in a kind of mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610581172.1A CN106168905A (en) | 2016-07-21 | 2016-07-21 | Text handling method, device and mobile terminal in a kind of mobile terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106168905A true CN106168905A (en) | 2016-11-30 |
Family
ID=58065488
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610581172.1A Pending CN106168905A (en) | 2016-07-21 | 2016-07-21 | Text handling method, device and mobile terminal in a kind of mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106168905A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106959901A (en) * | 2017-03-17 | 2017-07-18 | 维沃移动通信有限公司 | A kind of multipath replicates method of attaching and mobile terminal |
CN107608808A (en) * | 2017-09-30 | 2018-01-19 | 努比亚技术有限公司 | A kind of information copy method, terminal and computer-readable recording medium |
CN107728909A (en) * | 2017-10-20 | 2018-02-23 | 北京小米移动软件有限公司 | Information processing method and equipment |
CN108509103A (en) * | 2017-02-27 | 2018-09-07 | 华为技术有限公司 | Text clone method and touch-screen equipment |
CN109739664A (en) * | 2018-12-29 | 2019-05-10 | 联想(北京)有限公司 | Information processing method, device, electronic equipment and medium |
CN109739416A (en) * | 2018-04-19 | 2019-05-10 | 北京字节跳动网络技术有限公司 | A kind of Text Extraction and device |
CN112328411A (en) * | 2020-11-06 | 2021-02-05 | 北京小米移动软件有限公司 | Information input method, device, terminal and storage medium |
CN114518827A (en) * | 2022-02-21 | 2022-05-20 | 维沃移动通信有限公司 | Text processing method and device |
US11829580B2 (en) | 2017-12-21 | 2023-11-28 | Vivo Mobile Communication Co., Ltd. | Multi-piece text copy method and mobile terminal |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101611397A (en) * | 2007-02-15 | 2009-12-23 | 微软公司 | Copy and paste operation based on application program |
CN102253927A (en) * | 2010-05-19 | 2011-11-23 | 深圳市金蝶中间件有限公司 | Copy and paste method and device |
US20110314446A1 (en) * | 2010-06-21 | 2011-12-22 | Touch Technologies, Incorporated, a Corporation of the State of California | Method and system for selectively copying portions of a document contents in a computing system (smart copy and paste |
CN103514147A (en) * | 2012-06-29 | 2014-01-15 | 腾讯科技(深圳)有限公司 | Method and system for copying and pasting webpage content |
CN103795835A (en) * | 2012-10-29 | 2014-05-14 | 北京三星通信技术研究有限公司 | Mobile terminal and method for realizing shortcut operation of mobile terminal |
CN103827865A (en) * | 2011-09-23 | 2014-05-28 | 国际商业机器公司 | Improving database caching utilizing asynchronous log-based replication |
CN103853611A (en) * | 2014-04-01 | 2014-06-11 | 上海斐讯数据通信技术有限公司 | Method for copying text among application programs rapidly and electronic equipment |
CN103853698A (en) * | 2012-12-03 | 2014-06-11 | 三星电子(中国)研发中心 | Text copying and pasting method |
CN103875229A (en) * | 2013-12-02 | 2014-06-18 | 华为技术有限公司 | Asynchronous replication method, device and system |
CN104077273A (en) * | 2013-03-27 | 2014-10-01 | 腾讯科技(深圳)有限公司 | Method and device for extracting webpage contents |
CN104133846A (en) * | 2014-06-30 | 2014-11-05 | 珠海市君天电子科技有限公司 | File copying method and file copying device |
CN104573412A (en) * | 2013-10-16 | 2015-04-29 | 北京航天在线网络科技有限公司 | Method and device for preventing webpage text content from being copied |
CN105045504A (en) * | 2015-07-23 | 2015-11-11 | 小米科技有限责任公司 | Image content extraction method and apparatus |
US20160180091A1 (en) * | 2009-10-02 | 2016-06-23 | International Business Machines Corporation | Analysis of scripts |
-
2016
- 2016-07-21 CN CN201610581172.1A patent/CN106168905A/en active Pending
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101611397A (en) * | 2007-02-15 | 2009-12-23 | 微软公司 | Copy and paste operation based on application program |
US20160180091A1 (en) * | 2009-10-02 | 2016-06-23 | International Business Machines Corporation | Analysis of scripts |
CN102253927A (en) * | 2010-05-19 | 2011-11-23 | 深圳市金蝶中间件有限公司 | Copy and paste method and device |
US20110314446A1 (en) * | 2010-06-21 | 2011-12-22 | Touch Technologies, Incorporated, a Corporation of the State of California | Method and system for selectively copying portions of a document contents in a computing system (smart copy and paste |
CN103827865A (en) * | 2011-09-23 | 2014-05-28 | 国际商业机器公司 | Improving database caching utilizing asynchronous log-based replication |
CN103514147A (en) * | 2012-06-29 | 2014-01-15 | 腾讯科技(深圳)有限公司 | Method and system for copying and pasting webpage content |
CN103795835A (en) * | 2012-10-29 | 2014-05-14 | 北京三星通信技术研究有限公司 | Mobile terminal and method for realizing shortcut operation of mobile terminal |
CN103853698A (en) * | 2012-12-03 | 2014-06-11 | 三星电子(中国)研发中心 | Text copying and pasting method |
CN104077273A (en) * | 2013-03-27 | 2014-10-01 | 腾讯科技(深圳)有限公司 | Method and device for extracting webpage contents |
CN104573412A (en) * | 2013-10-16 | 2015-04-29 | 北京航天在线网络科技有限公司 | Method and device for preventing webpage text content from being copied |
CN103875229A (en) * | 2013-12-02 | 2014-06-18 | 华为技术有限公司 | Asynchronous replication method, device and system |
CN103853611A (en) * | 2014-04-01 | 2014-06-11 | 上海斐讯数据通信技术有限公司 | Method for copying text among application programs rapidly and electronic equipment |
CN104133846A (en) * | 2014-06-30 | 2014-11-05 | 珠海市君天电子科技有限公司 | File copying method and file copying device |
CN105045504A (en) * | 2015-07-23 | 2015-11-11 | 小米科技有限责任公司 | Image content extraction method and apparatus |
Non-Patent Citations (1)
Title |
---|
刘典型: "多页面特殊网页文字提取与合并技术研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108509103A (en) * | 2017-02-27 | 2018-09-07 | 华为技术有限公司 | Text clone method and touch-screen equipment |
US11113460B2 (en) | 2017-03-17 | 2021-09-07 | Vivo Mobile Communications Co., Ltd. | Multi-path copying and pasting method and mobile terminal |
CN106959901B (en) * | 2017-03-17 | 2018-06-26 | 维沃移动通信有限公司 | A kind of multipath replicates method of attaching and mobile terminal |
WO2018166469A1 (en) * | 2017-03-17 | 2018-09-20 | 维沃移动通信有限公司 | Method for multi-path copying and pasting, and mobile terminal |
CN106959901A (en) * | 2017-03-17 | 2017-07-18 | 维沃移动通信有限公司 | A kind of multipath replicates method of attaching and mobile terminal |
CN107608808A (en) * | 2017-09-30 | 2018-01-19 | 努比亚技术有限公司 | A kind of information copy method, terminal and computer-readable recording medium |
CN107728909A (en) * | 2017-10-20 | 2018-02-23 | 北京小米移动软件有限公司 | Information processing method and equipment |
CN107728909B (en) * | 2017-10-20 | 2021-05-14 | 北京小米移动软件有限公司 | Information processing method and device |
US11829580B2 (en) | 2017-12-21 | 2023-11-28 | Vivo Mobile Communication Co., Ltd. | Multi-piece text copy method and mobile terminal |
CN109739416A (en) * | 2018-04-19 | 2019-05-10 | 北京字节跳动网络技术有限公司 | A kind of Text Extraction and device |
CN109739416B (en) * | 2018-04-19 | 2020-07-03 | 北京字节跳动网络技术有限公司 | Text extraction method and device |
CN109739664A (en) * | 2018-12-29 | 2019-05-10 | 联想(北京)有限公司 | Information processing method, device, electronic equipment and medium |
CN112328411A (en) * | 2020-11-06 | 2021-02-05 | 北京小米移动软件有限公司 | Information input method, device, terminal and storage medium |
CN114518827A (en) * | 2022-02-21 | 2022-05-20 | 维沃移动通信有限公司 | Text processing method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106168905A (en) | Text handling method, device and mobile terminal in a kind of mobile terminal | |
US10775979B2 (en) | Buddy list presentation control method and system, and computer storage medium | |
TWI525522B (en) | Target element moving method, device and electronic equipment thereof | |
CN106406892A (en) | A shortcut function display method and device for applications and a terminal apparatus | |
CN106598529A (en) | Method and device for sub-screen display of mobile terminal, and mobile terminal | |
TW201519073A (en) | Rapid response operation method of terminal device and terminal device | |
WO2015039445A1 (en) | Notification message display method and apparatus, and electronic device | |
US11762621B2 (en) | Object management method and mobile terminal | |
CN106210289A (en) | Information processing method, device and mobile terminal | |
CN106775323A (en) | Method, device and the mobile communication terminal of application program have been adjusted in communication process | |
CN110413364A (en) | A kind of information processing method and terminal | |
CN109343755A (en) | A kind of document handling method and terminal device | |
CN106657669A (en) | Mobile terminal information session interaction control method and device, and mobile terminal | |
US20200310771A1 (en) | Application Processing Method for Terminal Device, and Terminal Device | |
CN107977248B (en) | Display method and mobile terminal of a desktop pendant | |
CN106201547A (en) | Method, device and the mobile terminal that a kind of message based on mobile terminal shows | |
CN107589901A (en) | Page display method, device, terminal and computer-readable storage medium | |
CN106056001A (en) | Private data protection method and apparatus based on mobile terminal and mobile terminal | |
CN106201748A (en) | Method, device and the mobile terminal of a kind of Message Processing based on mobile terminal | |
CN106657641B (en) | A method for optimizing sharing mode and related equipment | |
CN106155691A (en) | Method and device for processing interface data of a mobile terminal, and mobile terminal | |
CN106791185A (en) | Method for managing contact person information, device and mobile terminal | |
CN106126726A (en) | The exhibiting method of a kind of file scene and relevant device | |
CN111562959A (en) | Icon management method and electronic device | |
CN108345674A (en) | A kind of file management method and mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20170802 Address after: 100102, 18 floor, building 2, Wangjing street, Beijing, Chaoyang District, 1801 Applicant after: BEIJING ANYUN SHIJI SCIENCE AND TECHNOLOGY CO., LTD. Address before: 100088 Beijing city Xicheng District xinjiekouwai Street 28, block D room 112 (Desheng Park) Applicant before: Beijing Qihu Technology Co., Ltd. |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161130 |