WO2020156167A1 - 文本复制方法和电子设备 - Google Patents
文本复制方法和电子设备 Download PDFInfo
- Publication number
- WO2020156167A1 WO2020156167A1 PCT/CN2020/072175 CN2020072175W WO2020156167A1 WO 2020156167 A1 WO2020156167 A1 WO 2020156167A1 CN 2020072175 W CN2020072175 W CN 2020072175W WO 2020156167 A1 WO2020156167 A1 WO 2020156167A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- content
- target
- page
- text
- target text
- Prior art date
Links
Images
Classifications
-
- 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/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
Definitions
- the present disclosure relates to the field of communication technology, and in particular to a text copy method and electronic equipment.
- the content copying method in the related technology is mainly to realize the copying by selecting the content in the text.
- the text selection box is displayed in the text by the user's long-press operation on the text, and the user's adjustment of the text selection box is received to determine Copy the content accordingly to realize the copy.
- the content copying method in the related technology in the text content displayed by pages, when the content that the user needs to copy is located on multiple pages, the user needs to separately copy the content to be copied on each page, which leads to The user's copy operation is cumbersome, or if the operation is directly spread across consecutive pages, the content selection is likely to be interrupted and the user needs to re-operate.
- the present disclosure provides a text copying method and electronic device to solve the problem in the related art that when the content to be copied by the user is located on multiple pages, the copying operation is cumbersome or the content selection is likely to be interrupted and the user needs to re-operate.
- embodiments of the present disclosure provide a text copy method, including:
- an electronic device including:
- the first obtaining module is configured to obtain at least one target text page among the multiple text pages included in the target text;
- the second obtaining module is used to obtain the target copy content in each target text page respectively;
- the storage module is used to store the target copied content in each target text page to the pasteboard.
- an embodiment of the present disclosure provides an electronic device, including a processor, a memory, and a computer program stored on the memory and running on the processor.
- the computer program is executed by the processor to implement the steps of the above text copy method .
- embodiments of the present disclosure provide a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above text copying method are implemented.
- FIG. 1 shows a schematic flowchart of a text copy method provided by an embodiment of the present disclosure
- FIG. 2 shows one of the exemplary diagrams of the display form of thumbnails of multiple text pages included in the target text provided by the embodiment of the present disclosure
- FIG. 3 shows the second exemplary schematic diagram of the display form of thumbnails of multiple text pages included in the target text provided by the embodiment of the present disclosure
- FIG. 4 shows an exemplary schematic diagram of displaying the content to be copied of each target text page page by page in the text copy method provided by the embodiment of the present disclosure
- Fig. 5 shows one of the exemplary schematic diagrams of the display form of the text page selection interface provided by the embodiment of the present disclosure
- FIG. 6 shows the second exemplary schematic diagram of the display form of the text page selection interface provided by the embodiment of the present disclosure
- Figure 7 shows a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure
- FIG. 8 shows a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present disclosure.
- FIG. 1 shows a schematic flow chart of a text copy method provided by an embodiment of the present disclosure.
- the embodiment of the present disclosure provides a text copy method applied to an electronic device that has a content copy function.
- the replication method can include the following steps:
- Step 101 Acquire at least one target text page among a plurality of text pages included in the target text.
- the at least one target text page is the text page selected by the user to be copied among the multiple text pages, and the at least one target text page may be any text page among the multiple text pages included in the target text, wherein the target When there are at least two text pages, the at least two target text pages may include: mutually continuous text pages (for example, text pages with continuous page numbers), and/or discontinuous text pages (for example, text pages with discontinuous page numbers). Text page).
- a "multi-page copy mode" can be preset, and corresponding preset switches and/or preset operations can be set, so that the user can choose whether to start the text copy method of the present disclosure according to his own needs.
- the electronic device receives the trigger instruction, starts the "multi-page copy mode", and obtains at least one target text page that needs to be copied among the multiple text pages included in the target text.
- the preset switch may be a virtual button or a physical button, and the preset operation may include a gesture operation and/or a voice operation.
- Step 102 Obtain target copy content in each target text page respectively.
- each target text page is traversed to obtain the target copy content that needs to be copied in each target text page.
- Step 103 Store the target copied content in each target text page to the pasteboard.
- step 102 after obtaining the target copy content of each target text page in the at least one target text page based on step 102, all target copy contents in the at least one target text page are uniformly stored on the pasteboard, which is convenient for the user to follow the target text page. Copy content to paste operation to complete the copy and paste of selected content.
- the electronic device receives and responds to the paste operation, and can directly paste the target copied content according to the display mode stored on the pasteboard; or, for each target text page, obtain each target text page The display mode of the target copy content in the target text page in the target text page, and mark the display mode to obtain and store the marking information.
- the electronic device receives and responds to the paste operation to obtain the paste
- the target copy content stored on the board and the tag information associated with the target copy content are pasted according to the tag information; in this way, the target copy content stored on the paste board can be retained when pasting Display mode.
- step 101 acquiring at least one target text page among the multiple text pages included in the target text, may include the following steps: displaying information on the multiple text pages included in the target text Thumbnail: Receive a selection operation on the thumbnails of multiple text pages, and determine that the text page corresponding to the thumbnail selected by the selection operation is the target text page.
- the multiple text pages included in the target text are displayed in the form of thumbnails, so that the user can select from the multiple text pages included in the target text
- the electronic device receives and responds to the selection operation and corresponds to the thumbnail selected by the selection operation
- the text page is determined as the target text page, so that the user can quickly select the target text page to be copied.
- the thumbnails of multiple text pages included in the target text may be displayed in a preset display form, and the preset display form may include any one of a list arrangement form, a stacked arrangement form, and a matrix arrangement form.
- the display of thumbnails of multiple text pages included in the target text may be triggered by a preset trigger operation.
- the user may perform a preset trigger operation, that is, the electronic device receives the target text
- the preset trigger operation is in response to the preset trigger operation to display thumbnails of multiple text pages included in the target text.
- the thumbnails selected by the selection operation are displayed in a preset identification manner, for example , You can add a preset mark information to the selected thumbnail, or highlight the selected thumbnail in a preset style.
- the thumbnails of multiple text pages included in the target text can be displayed in a matrix arrangement; after receiving a selection operation on the thumbnails of multiple text pages, the selection can be responded to Operation, as shown in Fig. 3, highlight the selected thumbnail in a preset style.
- the highlighting method of the preset style is illustrated in a shaded form.
- the boxes represented by numbers 1-16 respectively represent thumbnails of a text page. It should be noted that this number does not represent the page number of the corresponding text page, but is only used as an example to indicate each text page.
- displaying thumbnails of multiple text pages included in the target text may include the following steps: determining that the target text is selected from the text pages that are being turned during the page turning process. Initial selection text page; multiple text pages associated with the initial selection text page are displayed in thumbnail form.
- the initial selection text page selected from the text pages to be read may be determined, and then a plurality of initial selection text pages associated with the initial selection text page may be obtained.
- determining the target text during the page turning process the initial selection of the text page selected from the text pages to be read may include: receiving a preset trigger operation on the target text, displaying the text page selection interface, and turning in the text page selection interface Multiple text pages are displayed in page form.
- the display form of the text page selection interface is shown in Figure 5 and Figure 6. The initial selection operation is received on the text page to be viewed among multiple text pages, and the initial selection is determined from the text page. Operate the selected initial selection text page.
- the initial selection text page can be a single text page or multiple text pages; and, according to user needs, multiple texts associated with the initial selection text page
- the page may include the initial selection text page, or may not include the initial selection text page.
- the multiple text pages associated with the initially selected text page may be at least one of the multiple text pages included in the target text corresponding to the initially selected text page that meets the preset conditions, that is, The target text corresponding to the initially selected text page can be determined, and then at least one text page that meets a preset condition among the multiple text pages included in the target text can be obtained and used as multiple text pages associated with the initially selected text page .
- the preset condition may be a preset page number filter condition, for example, the multiple text pages associated with the initially selected text page may be adjacent to and continuous with the page number of the initially selected text page
- a predetermined number of text pages that is, based on the page number of the initially selected text page, the first predetermined number of text pages that precede the page number of the initially selected text page and are continuous with the page number of the initially selected text page can be determined .
- the page number of the initially selected text page and the second predetermined number of text pages that are continuous with the page number of the initially selected text page and then combine the first predetermined number of text pages and the second predetermined number of text pages
- the pages are used as multiple text pages associated with the initially selected text page.
- the first preset number and the second preset number can be set by default by the electronic device or manually set by the user according to requirements.
- the preset condition may also be a preset keyword filter condition.
- the multiple text pages that are associated with the initially selected text page may be at least those that match the extracted keywords in the initially selected text page. A text page.
- the target text may include a large number of text pages
- at least two text page selection operations may be set.
- step 102 respectively acquiring the target copy content in each target text page, may include the following steps: displaying the content to be copied in each target text page page by page; A target text page, receiving the content selection operation on the content to be copied in the target text page; responding to the content selection operation, determining the selected content to be copied in each target text page as the target copy content, or determining each target text page The content to be copied except the selected content is the target copy content.
- the content to be copied of each target text page can be displayed one by one for
- the user checks and determines the target copy content to be copied.
- the user can select the content to be copied in each target text page as needed, and select the first content to be copied.
- the electronic device receives and responds to the content selection operation, and determines the selected content to be copied, that is, the first content, as the target copy content in each target text page.
- FIG. 4 in FIG.
- the content to be copied for each target text page can be displayed one by one, For the user to view and determine the target copy content to be copied, for each target text page, the user can select the content to be copied in each target text page as needed, and select the first copy that does not need to be copied.
- Second content the electronic device receives and responds to the content selection operation, determines the content to be copied for which the target is selected in each target text page, that is, the second content, as content that the user does not need to copy, and divides each target text page
- the content to be copied other than the selected content ie, the second content
- the text copying method may further include the following steps: for each target text page, respectively identifying the preset filtering content in the target text page; determining each The content in the target text page except the preset filtering content is the content to be copied.
- the preset filtering content in the target text page is identified and filtered, and the content except the preset filtering content in each target text page is determined to be the content to be copied.
- the preset filtering content may include content other than the body content of the target text page, such as advertisements, headers, footers, and titles.
- identifying the preset filtering content in the target text page may include: obtaining data tags of content data in the target text page; determining and The preset data tag matches the target data tag; the content data associated with the target data tag is determined to be the preset filtering content.
- the title, header, and footer are generally part of the text content of the target text page, that is, they are included in the content data of the target text page.
- the content data can be respectively set to realize the identification
- the data tags of each part of the content that is, the content data corresponding to the body content, title, header, and footer in the target text page, set their own corresponding data tags.
- the preset data tags may include, but are not limited to, title tags, header tags, and footer tags.
- each target text page respectively identifying the preset filtering content in the target text page may include: obtaining the area identifier of the display area in the target text page; determining and the preset area Identify the target area identifier that matches the identifier; determine that the page content associated with the target area identifier is the preset filtering content.
- advertisements and the like since advertisements and the like generally do not belong to the text content of the target text page, that is, content data not included in the target text page, they belong to the page content placed on the predetermined display area of the text page.
- the text page is provided with area identifiers for identifying the display area of each display content, that is, corresponding to the display area where the content data is placed in the target text page and the display area where the advertisement is placed, respectively, the corresponding area identifiers are set respectively. Therefore, you can obtain The area identification of the display area in each target text page, and the area identification is matched with the preset area identification to determine the target area identification that matches the preset area identification, and then the page associated with the target area identification is determined Filter content by default.
- the preset area identifier may include, but is not limited to, the advertisement display area identifier.
- the text copy method provided by the embodiment of the present disclosure can provide users with cross-pages by separately obtaining the target copy content of each target text page in a plurality of text pages, and storing the target copy content in each target text page on the pasteboard.
- the content copying operation provided convenience, simplifies the cross-page copying operation, and there is no interruption of content selection, avoiding the problem of interruption of content selection and the need for users to re-operate.
- an embodiment of the present disclosure provides an electronic device for implementing the above method.
- FIG. 7 shows a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.
- An embodiment of the present disclosure provides an electronic device 700, which may include: a first acquisition module 710, a second acquisition module 720, and a storage module 730.
- the first obtaining module 710 is configured to obtain at least one target text page among the multiple text pages included in the target text;
- the second obtaining module 720 is configured to obtain the target copy content in each target text page respectively;
- the storage module 730 is configured to store the target copied content in each target text page to the pasteboard.
- the first acquisition module 710 may include: a first display unit and a first determination unit.
- the first display unit is used to display thumbnails of multiple text pages included in the target text
- the first determining unit is configured to receive a selection operation on thumbnails of multiple text pages, and determine that the text page corresponding to the thumbnail selected by the selection operation is the target text page.
- the display unit may include: a determination subunit and a display subunit.
- the determining sub-unit is used to determine the initial selected text page selected from the text pages that have been read during the page turning process of the target text;
- the display subunit is used to display multiple text pages associated with the initially selected text page in thumbnail form.
- the second obtaining module 720 may include: a second display unit, a receiving unit, and a second determining unit.
- the second display unit is used to display the content to be copied of each target text page page by page;
- the receiving unit is configured to receive, for each target text page, the content selection operation of the content to be copied in the target text page;
- the second determining unit is used to determine the selected content to be copied in each target text page as the target copy content in response to the content selection operation, or determine the content to be copied in each target text page except the selected content Copy content for the target.
- the electronic device 700 may further include: an identification module and a determination module.
- the recognition module is used to identify the preset filtering content in the target text page for each target text page;
- the determining module is used to determine that the content in each target text page except the preset filtering content is the content to be copied.
- the identification module may include: a first acquiring unit, a third determining unit, and a fourth determining unit.
- the first obtaining unit is used to obtain the data label of the content data in the target text page
- the third determining unit is used to determine the target data label that matches the preset data label
- the fourth determining unit is used to determine that the content data associated with the target data tag is the preset filtered content.
- the identification module may include: a second acquiring unit, a fifth determining unit, and a sixth determining unit.
- the second acquiring unit is used to acquire the area identifier of the display area in the target text page
- the fifth determining unit is used to determine the target area identifier that matches the preset area identifier
- the sixth determining unit is configured to determine that the page content associated with the target area identifier is the preset filtered content.
- the electronic device provided in the embodiments of the present disclosure can implement each process implemented by the electronic device in the method embodiments of FIGS. 1 to 6, and to avoid repetition, details are not described herein again.
- the electronic device provided by the embodiment of the present disclosure can obtain the target copy content of each target text page in a plurality of text pages and store the target copy content in each target text page on the pasteboard, which can provide users with cross-page communication
- the content copy operation provides convenience, simplifies the cross-page copy operation, and does not appear to be interrupted in content selection, avoiding the problem that the user needs to re-operate due to the interruption of content selection.
- FIG. 8 is a schematic diagram of the hardware structure of a mobile terminal for implementing various embodiments of the present disclosure.
- the mobile terminal 800 includes, but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, a processor 810, and Power supply 811 and other components.
- a radio frequency unit 801 includes, but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, a processor 810, and Power supply 811 and other components.
- the mobile terminal may include more or less components than those shown in the figure, or combine certain components, or different components. Layout.
- mobile terminals include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminals, wearable devices, and pedometers.
- the processor 810 is configured to obtain at least one target text page among the multiple text pages included in the target text; obtain the target copy content in each target text page respectively; and transfer the target copy content in each target text page Store to pasteboard.
- the radio frequency unit 801 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, the downlink data from the base station is received and processed by the processor 810; Uplink data is sent to the base station.
- the radio frequency unit 801 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
- the radio frequency unit 801 can also communicate with the network and other devices through a wireless communication system.
- the mobile terminal provides users with wireless broadband Internet access through the network module 802, such as helping users to send and receive emails, browse web pages, and access streaming media.
- the audio output unit 803 can convert the audio data received by the radio frequency unit 801 or the network module 802 or stored in the memory 809 into audio signals and output them as sounds. Moreover, the audio output unit 803 may also provide audio output related to a specific function performed by the mobile terminal 800 (for example, call signal reception sound, message reception sound, etc.).
- the audio output unit 803 includes a speaker, a buzzer, a receiver, and the like.
- the input unit 804 is used to receive audio or video signals.
- the input unit 804 may include a graphics processing unit (GPU) 8041 and a microphone 8042.
- the graphics processor 8041 is configured to monitor images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed.
- the processed image frame may be displayed on the display unit 806.
- the image frame processed by the graphics processor 8041 may be stored in the memory 809 (or other storage medium) or sent via the radio frequency unit 801 or the network module 802.
- the microphone 8042 can receive sound, and can process such sound into audio data.
- the processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 801 for output in the case of a telephone call mode.
- the mobile terminal 800 also includes at least one sensor 805, such as a light sensor, a motion sensor, and other sensors.
- the light sensor includes an ambient light sensor and a proximity sensor.
- the ambient light sensor can adjust the brightness of the display panel 8061 according to the brightness of the ambient light.
- the proximity sensor can close the display panel 8061 and the display panel 8061 when the mobile terminal 800 is moved to the ear. / Or backlight.
- the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 805 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
- the display unit 806 is used to display information input by the user or information provided to the user.
- the display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
- LCD liquid crystal display
- OLED organic light-emitting diode
- the user input unit 807 may be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the mobile terminal.
- the user input unit 807 includes a touch panel 8071 and other input devices 8072.
- the touch panel 8071 also called a touch screen, can collect user touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 8071 or near the touch panel 8071. operating).
- the touch panel 8071 may include two parts: a touch detection device and a touch controller.
- the touch detection device detects the user's touch position, 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 then sends it To the processor 810, the command sent by the processor 810 is received and executed.
- the touch panel 8071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
- the user input unit 807 may also include other input devices 8072.
- other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
- the touch panel 8071 can cover the display panel 8061.
- the touch panel 8071 detects a touch operation on or near it, it transmits it to the processor 810 to determine the type of the touch event.
- the type of event provides corresponding visual output on the display panel 8061.
- the touch panel 8071 and the display panel 8061 are used as two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 8071 and the display panel 8061 can be integrated
- the implementation of the input and output functions of the mobile terminal is not specifically limited here.
- the interface unit 808 is an interface for connecting an external device with the mobile terminal 800.
- the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc.
- the interface unit 808 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the mobile terminal 800 or can be used to connect to the mobile terminal 800 and external Transfer data between devices.
- the memory 809 can be used to store software programs and various data.
- the memory 809 may mainly include a program storage area and a data storage area.
- the program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data (such as audio data, phone book, etc.) created by the use of mobile phones.
- the memory 809 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, a flash memory device, or other volatile solid-state storage devices.
- the processor 810 is the control center of the mobile terminal. It uses various interfaces and lines to connect the various parts of the entire mobile terminal. It runs or executes software programs and/or modules stored in the memory 809, and calls data stored in the memory 809. , Perform various functions of the mobile terminal and process data, so as to monitor the mobile terminal as a whole.
- the processor 810 may include one or more processing units; optionally, the processor 810 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, and application programs, etc.
- the adjustment processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 810.
- the mobile terminal 800 may also include a power supply 811 (such as a battery) for supplying power to various components.
- a power supply 811 such as a battery
- the power supply 811 may be logically connected to the processor 810 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. Management and other functions.
- the mobile terminal 800 includes some functional modules not shown, which will not be repeated here.
- an embodiment of the present disclosure further provides a mobile terminal, including a processor 810, a memory 809, and a computer program stored in the memory 809 and running on the processor 810.
- the computer program is executed by the processor 810.
- the embodiments of the present disclosure also provide a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium.
- a computer program is stored on the computer-readable storage medium.
- the computer program is executed by a processor, each process of the above-mentioned text copy method embodiment is realized, and the same technology can be achieved. The effect, in order to avoid repetition, will not be repeated here.
- the computer-readable storage medium such as read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk, or optical disk, etc.
- the technical solution of the present disclosure can be embodied in the form of a software product in essence or the part that contributes to the related technology.
- the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk). ) Includes several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present disclosure.
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本公开提供一种文本复制方法和电子设备,其中,文本复制方法包括:获取目标文本所包括的多个文本页中的至少一个目标文本页;分别获取每一目标文本页中的目标复制内容;将每一目标文本页中的目标复制内容存储至粘贴板。
Description
相关申请的交叉引用
本申请主张在2019年1月31日在中国提交的中国专利申请号No.201910100623.9的优先权,其全部内容通过引用包含于此。
本公开涉及通信技术领域,尤其涉及一种文本复制方法和电子设备。
移动终端上具备各种应用,能够为用户提供文本阅读功能,通常还会给用户提供相应的文本复制的功能,以便于用户对相应内容的收藏或分享等。
相关技术中的内容复制方式,主要是通过对文本中内容的选取实现复制,例如,通过用户在文本上的长按操作,在文本中显示文本选择框,接收用户对文本选择框的调节以确定相应的复制内容,从而实现复制。然而,相关技术中的内容复制方式,在分页显示的文本内容中,当用户需要复制的内容位于多个页面时,需要用户分别在各个页面上对需要复制的内容进行单独地复制操作,这导致用户的复制操作繁琐,或者,如果在连续页面直接跨页操作的话,则容易出现内容选取中断而导致用户需要重新操作。
发明内容
本公开提供一种文本复制方法和电子设备,以解决相关技术中当用户需要复制的内容位于多个页面时,复制操作繁琐或者容易出现内容选取中断而导致用户需要重新操作的问题。
为了解决上述技术问题,本公开是这样实现的:
第一方面,本公开实施例提供一种文本复制方法,包括:
获取目标文本所包括的多个文本页中的至少一个目标文本页;
分别获取每一目标文本页中的目标复制内容;
将每一目标文本页中的目标复制内容存储至粘贴板。
第二方面,本公开实施例提供一种电子设备,包括:
第一获取模块,用于获取目标文本所包括的多个文本页中的至少一个目标文本页;
第二获取模块,用于分别获取每一目标文本页中的目标复制内容;
存储模块,用于将每一目标文本页中的目标复制内容存储至粘贴板。
第三方面,本公开实施例提供一种电子设备,包括处理器,存储器,存储在存储器上并可在处理器上运行的计算机程序,该计算机程序被处理器执行时实现上述文本复制方法的步骤。
第四方面,本公开实施例提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述文本复制方法的步骤。
本公开实施例中,通过分别获取多个文本页中每一目标文本页的目标复制内容,并将每一目标文本页中的目标复制内容存储至粘贴板,能够为用户跨页面的内容复制操作提供便利,简化了跨页面复制操作,并且不会出现内容选取中断的情形,避免了内容选取中断而导致用户需要重新操作的问题。
为了更清楚地说明本公开实施例的技术方案,下面将对本公开实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1表示本公开实施例提供的文本复制方法的流程示意图;
图2表示本公开实施例提供的目标文本所包括的多个文本页的缩略图的展示形式的示例性示意图之一;
图3表示本公开实施例提供的目标文本所包括的多个文本页的缩略图的展示形式的示例性示意图之二;
图4表示本公开实施例提供的文本复制方法中进行分别逐页显示每一目标文本页的待复制内容的示例性示意图;
图5表示本公开实施例提供的文本页选择界面的显示形式的示例性示意 图之一;
图6表示本公开实施例提供的文本页选择界面的显示形式的示例性示意图之二;
图7表示本公开实施例提供的电子设备的结构示意图;
图8表示本公开实施例提供的电子设备的硬件结构示意图。
为使本公开要解决的技术问题、技术方案和优点更加清楚,下面将结合附图及具体实施例进行详细描述。
请参见图1,其示出的是本公开实施例提供的文本复制方法的流程示意图,本公开实施例提供一种文本复制方法,应用于电子设备,该电子设备具备内容复制的功能,该文本复制方法可以包括以下步骤:
步骤101,获取目标文本所包括的多个文本页中的至少一个目标文本页。
本步骤中,在用户浏览的包括有多个文本页的目标文本中,获取多个文本页面中需要复制的至少一个目标文本页,以便后续步骤能够对至少一个目标文本页中的内容进行复制。这里,该至少一个目标文本页即为多个文本页中用户选定的需要复制的文本页,至少一个目标文本页可以是目标文本所包括的多个文本页中的任意文本页,其中,目标文本页为至少两个时,至少两个目标文本页中可以包括:相互连续的文本页(例如页面页码连续的文本页),和/或,相互不连续的文本页(例如页面页码不连续的文本页)。
在本公开实施例中,可以预先设置一“多页面复制模式”,并设置相应的预置开关和/或预设操作,以便于用户根据自身需求选择是否启动本公开的文本复制方法。在用户触发预置开关或预设操作之后,电子设备接收到触发指令,将开启“多页面复制模式”,并获取目标文本所包括的多个文本页中需要复制的至少一个目标文本页。其中,预置开关可以为虚拟按钮或实体按钮,预设操作可以包括手势操作和/或语音操作。
步骤102,分别获取每一目标文本页中的目标复制内容。
本步骤中,基于步骤101中获取的至少一个目标文本页,遍历每一目标文本页,分别获取每一目标文本页中需要复制的目标复制内容。
步骤103,将每一目标文本页中的目标复制内容存储至粘贴板。
本步骤中,基于步骤102获取到至少一个目标文本页中的每一目标文本页的目标复制内容之后,将至少一个目标文本页中的所有目标复制内容统一存储至粘贴板,便于用户后续对目标复制内容进行粘贴操作以完成对选定内容的复制粘贴。可选地,为使复制操作更贴合用户需求,在将每一目标文本页中的目标复制内容存储至粘贴板的过程中,可以针对每一目标文本页,按照目标复制内容在相应目标文本页中的展现方式,将每一目标文本页中的目标复制内容存储至粘贴板,即,将目标复制内容按照其在相应目标文本页中的展现方式,在粘贴板中进行存储,由此,在用户执行粘贴操作时,电子设备接收并响应该粘贴操作,可以直接按照粘贴板上存储的展示方式对目标复制内容进行粘贴;或者,也可以针对每一目标文本页,获取每一目标文本页中的目标复制内容在其目标文本页中的展现方式,并对其展示方式进行标记,获得标记信息并存储,由此,在用户执行粘贴操作时,电子设备接收并响应该粘贴操作,获取粘贴板上存储的目标复制内容以及与目标复制内容相关联的标记信息,按照标记信息对相关联的目标复制内容进行粘贴;这样,在将粘贴板上存储的目标复制内容进行粘贴时即可保留其展示方式。
本公开实施例中,通过分别获取多个文本页中每一目标文本页的目标复制内容,并将每一目标文本页中的目标复制内容存储至粘贴板,能够为用户跨页面的内容复制操作提供便利,简化了跨页面复制操作,并且不会出现内容选取中断的情形,避免了内容选取中断而导致用户需要重新操作的问题。
其中,在本公开一些可选的实施例中,步骤101,获取目标文本所包括的多个文本页中的至少一个目标文本页,可以包括以下步骤:显示目标文本所包括的多个文本页的缩略图;接收对多个文本页的缩略图的选择操作,确定选择操作所选择缩略图相对应的文本页为目标文本页。本公开实施例中,在用户需要对目标文本中的内容进行复制时,将目标文本所包括的多个文本页以缩略图形式显示,以便于用户从目标文本所包括的多个文本页中选取需要复制的目标文本页;用户根据需要对多个文本页的缩略图进行选择操作以选取需要复制的目标文本页,此时,电子设备接收并响应选择操作,将选择操作所选择缩略图相对应的文本页确定为目标文本页,这样用户即可快捷地 选取需要复制的目标文本页。这里,可以采用预设展示形式对目标文本所包括的多个文本页的缩略图进行显示,该预设展示形式可以包括列表排列形式、层叠排列形式和矩阵排列形式中的任一种。并且,为贴合用户使用需要,可以通过预设触发操作触发显示目标文本所包括的多个文本页的缩略图,具体地,用户可以通过进行预设触发操作,即电子设备接收到对目标文本的预设触发操作,响应该预设触发操作,以显示目标文本所包括的多个文本页的缩略图。另外,为便于用户区别确定所选择的缩略图,在接收对对多个文本页的缩略图的选择操作之后,响应该选择操作,将选择操作所选择缩略图以预设标识方式进行显示,例如,可以在所选择缩略图上添加一预设标记信息,或者,以预设样式突出显示所选择缩略图。
在一示例中,如图2所示,目标文本所包括的多个文本页的缩略图可以以矩阵排列形式进行展示;在接收到对多个文本页的缩略图的选择操作之后,可以响应选择操作,如图3所示,以预设样式对所选择缩略图进行突出显示,图3中,以阴影形式示例预设样式的突出显示方式。图2和图3中,数字1-16所代表的方框分别表示一个文本页的缩略图,需要说明的是,该数字并非表示相应文本页的页面页码,仅用于示例表明各文本页。
进一步地,在本公开一些可选的实施例中,显示目标文本所包括的多个文本页的缩略图,可以包括以下步骤:确定目标文本在翻页过程中,从所翻阅文本页中选择的初始选择文本页;将与初始选择文本页相关联的多个文本页以缩略图形式显示。本公开实施例中,可以通过接收用户对目标文本在翻页过程中的初始选择操作,确定从所翻阅文本页中选择的初始选择文本页,然后获取与该初始选择文本页相关联的多个文本页,并以缩略图形式显示与该初始选择文本页相关联的多个文本页,即,显示目标文本所包括的、与该初始选择文本页相关联的多个文本页的缩略图,这样,用户通过选择确定初始选择文本页,即可实现对初始选择文本页相关联的多个文本页的缩略图显示。其中,确定目标文本在翻页过程中,从所翻阅文本页中选择的初始选择文本页,可以包括:接收对目标文本的预设触发操作,显示文本页选择界面,文本页选择界面中以翻页形式显示多个文本页,该文本页选择界面的显示形式如图5和图6所示,接收对多个文本页中的所翻阅文本页中的初始选择操 作,从翻阅文本中确定初始选择操作所选择的初始选择文本页。
需要说明的是,本公开实施例中,该初始选择文本页可以是单一一个文本页,也可以是多个文本页面;并且,根据用户需求,所指与初始选择文本页相关联的多个文本页,可以包括初始选择文本页,或者也可以不包括初始选择文本页。另外,所指与初始选择文本页相关联的多个文本页,可以是与初始选择文本页对应的目标文本所包括的多个文本页中的、符合预设条件的至少一个文本页,即,可以通过确定初始选择文本页所对应的目标文本,然后获取该目标文本所包括的多个文本页中符合预设条件的至少一个文本页,并作为与初始选择文本页相关联的多个文本页。这里,预设条件可以是预设页面页码筛选条件,例如,所指与初始选择文本页相关联的多个文本页,可以是与初始选择文本页的页面页码相邻的、且页面页码连续的预定数量的文本页,即,可以基于与初始选择文本页的页面页码,确定在初始选择文本页的页面页码之前的、且与该初始选择文本页的页面页码连续的第一预定数量的文本页,以及,在初始选择文本页的页面页码之后的、且与该初始选择文本页的页面页码连续的第二预定数量的文本页,然后将第一预定数量的文本页和第二预定数量的文本页作为与初始选择文本页相关联的多个文本页,这里,第一预设数量和第二预设数量可以通过电子设备默认设置或者通过用户根据需求手动设置。或者,该预设条件也可以是预设关键词筛选条件,例如,所指与初始选择文本页相关联的多个文本页,可以是与初始选择文本页中的提取的关键词相匹配的至少一个文本页。
此外,考虑到目标文本所包括的多个文本页可能较多,为避免用户发生目标文本页漏选的情况,可以设置至少两次文本页选择操作。
在本公开实施例中,对于目标文本页中的目标复制内容的获取方式可以有多种。例如,在本公开一些可选的实施例中,步骤102,分别获取每一目标文本页中的目标复制内容,可以包括以下步骤:分别逐页显示每一目标文本页的待复制内容;针对每一目标文本页,接收对目标文本页中待复制内容的内容选取操作;响应内容选取操作,确定每一目标文本页中被选择的待复制内容为目标复制内容,或者,确定每一目标文本页中除被选择的内容之外的待复制内容为目标复制内容。本公开实施例中,如图4所示(图4中,数 字9、10和15用于示例表明相应的目标文本页),可以将每一目标文本页的待复制内容逐一进行显示,以供用户查看并确定所需复制的目标复制内容,针对于每一目标文本页,用户可以分别根据需要对每一目标文本页中的待复制内容中进行内容选取操作,选取需要复制的第一内容,电子设备接收并响应该内容选择操作,将每一目标文本页中目标被选择的待复制内容,即第一内容,确定为目标复制内容。或者,本公开实施例中,如图4所示(图4中,数字9、10和15用于示例表明相应的目标文本页),可以将每一目标文本页的待复制内容逐一进行显示,以供用户查看并确定所需复制的目标复制内容,针对于每一目标文本页,用户可以分别根据需要对每一目标文本页中的待复制内容中进行内容选取操作,选取不需要复制的第二内容,电子设备接收并响应该内容选择操作,将每一目标文本页中目标被选择的待复制内容,即第二内容,确定为用户不需要复制的内容,将每一目标文本页中除被选择的内容(即第二内容)之外的待复制内容确定为目标复制内容。
其中,在目标文本所包括的多个页面中可能存在广告、页眉、页脚等等一些用户明显不需要的内容,因此,为了更为贴合用户使用需求,在本公开一些可选的实施例中,分别逐页显示每一目标文本页的待复制内容之前,该文本复制方法还可以包括以下步骤:针对每一目标文本页,分别识别目标文本页中的预设过滤内容;确定每一目标文本页中除预设过滤内容之外的内容为待复制内容。本公开实施例中,针对每一目标文本页,对目标文本页中的预设过滤内容进行识别过滤,将每一目标文本页中除预设过滤内容之外的内容确定为待复制内容,这样,可以在对每一目标文本页进行显示时,只显示除预设过滤内容之外的内容,即待复制内容,方便用户快捷地选取确定目标复制内容。这里,该预设过滤内容可以包括广告、页眉、页脚、标题等除目标文本页的正文内容以外的内容。
具体地,在本公开一些可选的实施例中,针对每一目标文本页,分别识别目标文本页中的预设过滤内容,可以包括:获取目标文本页中的内容数据的数据标签;确定与预设数据标签相匹配的目标数据标签;确定目标数据标签相关联的内容数据为预设过滤内容。本公开实施例中,由于标题、页眉和页脚等一般属于目标文本页的文本内容的一部分,即包括于目标文本页的内 容数据中,这里,可以在内容数据中分别设置有用于实现标识各个部分内容的数据标签,即对应于目标文本页中的正文内容、标题、页眉和页脚等各个部分的内容数据分别设置各自相应的数据标签,因此,可以通过获取每一目标文本页中的内容数据的数据标签,并将数据标签与预设数据标签进行匹配,从中确定与预设数据标签相匹配的目标数据标签,然后将与目标数据标签相关联的内容数据确定为预设过滤内容。这里,预设数据标签可以包括但不限于标题标签、页眉标签和页脚标签。
在本公开一些可选的实施例中,针对每一目标文本页,分别识别目标文本页中的预设过滤内容,可以包括:获取目标文本页中的显示区域的区域标识;确定与预设区域标识相匹配的目标区域标识;确定目标区域标识相关联的页面内容为预设过滤内容。本公开实施例中,由于广告等一般不属于目标文本页的文本内容,即并不包括于目标文本页的内容数据,其属于在文本页的预定显示区域上放置的页面内容,这里,可以在文本页中分别设置有用于标识各个显示内容的显示区域的区域标识,即对应于目标文本页中放置内容数据的显示区域和放置广告的显示区域分别设置各自相应的区域标识,因此,可以通过获取每一目标文本页中的显示区域的区域标识,并将区域标识与预设区域标识进行匹配,从中确定与预设区域标识相匹配的目标区域标识,然后将与目标区域标识相关联的页面确定为预设过滤内容。这里,预设区域标识可以包括但不限于广告显示区域标识。
当然,为更贴合用户习惯和需求,在针对每一所述目标文本页,分别识别所述目标文本页中的预设过滤内容之前,还可以包括:显示一用于指示是否过滤预设过滤内容的提示信息;接收基于该提示信息确定的过滤预设过滤内容的指示操作,并响应该指示操作,在每一目标文本页中过滤预设过滤内容。
本公开实施例提供的文本复制方法,通过分别获取多个文本页中每一目标文本页的目标复制内容,并将每一目标文本页中的目标复制内容存储至粘贴板,能够为用户跨页面的内容复制操作提供便利,简化了跨页面复制操作,并且不会出现内容选取中断的情形,避免了内容选取中断而导致用户需要重新操作的问题。
基于上述方法,本公开实施例提供一种用以实现上述方法的电子设备。
请参见图7,其示出的是本公开实施例提供的电子设备的结构示意图。本公开实施例提供一种电子设备700,可以包括:第一获取模块710、第二获取模块720和存储模块730。
第一获取模块710,用于获取目标文本所包括的多个文本页中的至少一个目标文本页;
第二获取模块720,用于分别获取每一目标文本页中的目标复制内容;
存储模块730,用于将每一目标文本页中的目标复制内容存储至粘贴板。
其中,在本公开一些可选的实施例中,第一获取模块710可以包括:第一显示单元和第一确定单元。
第一显示单元,用于显示目标文本所包括的多个文本页的缩略图;
第一确定单元,用于接收对多个文本页的缩略图的选择操作,确定选择操作所选择缩略图相对应的文本页为目标文本页。
进一步地,在本公开一些可选的实施例中,显示单元可以包括:确定子单元和显示子单元。
确定子单元,用于确定目标文本在翻页过程中,从所翻阅文本页中选择的初始选择文本页;
显示子单元,用于将与初始选择文本页相关联的多个文本页以缩略图形式显示。
在本公开实施例中,对于目标文本页中的目标复制内容的获取方式可以有多种。例如,在本公开一些可选的实施例中,第二获取模块720可以包括:第二显示单元、接收单元和第二确定单元。
第二显示单元,用于分别逐页显示每一目标文本页的待复制内容;
接收单元,用于针对每一目标文本页,接收对目标文本页中待复制内容的内容选取操作;
第二确定单元,用于响应内容选取操作,确定每一目标文本页中被选择的待复制内容为目标复制内容,或者,确定每一目标文本页中除被选择的内容之外的待复制内容为目标复制内容。
其中,在目标文本所包括的多个页面中可能存在广告、页眉、页脚等等 一些用户明显不需要的内容,因此,为了更为贴合用户使用需求,在本公开一些可选的实施例中,电子设备700还可以包括:识别模块和确定模块。
识别模块,用于针对每一目标文本页,分别识别目标文本页中的预设过滤内容;
确定模块,用于确定每一目标文本页中除预设过滤内容之外的内容为待复制内容。
具体地,在本公开一些可选的实施例中,识别模块可以包括:第一获取单元、第三确定单元和第四确定单元。
第一获取单元,用于获取目标文本页中的内容数据的数据标签;
第三确定单元,用于确定与预设数据标签相匹配的目标数据标签;
第四确定单元,用于确定目标数据标签相关联的内容数据为预设过滤内容。
在本公开一些可选的实施例中,识别模块可以包括:第二获取单元、第五确定单元和第六确定单元。
第二获取单元,用于获取目标文本页中的显示区域的区域标识;
第五确定单元,用于确定与预设区域标识相匹配的目标区域标识;
第六确定单元,用于确定目标区域标识相关联的页面内容为预设过滤内容。
本公开实施例提供的电子设备能够实现图1至图6的方法实施例中电子设备实现的各个过程,为避免重复,这里不再赘述。
本公开实施例提供的电子设备,通过分别获取多个文本页中每一目标文本页的目标复制内容,并将每一目标文本页中的目标复制内容存储至粘贴板,能够为用户跨页面的内容复制操作提供便利,简化了跨页面复制操作,并且不会出现内容选取中断的情形,避免了内容选取中断而导致用户需要重新操作的问题。
图8为实现本公开各个实施例的一种移动终端的硬件结构示意图。
该移动终端800包括但不限于:射频单元801、网络模块802、音频输出单元803、输入单元804、传感器805、显示单元806、用户输入单元807、接口单元808、存储器809、处理器810、以及电源811等部件。本领域技术 人员可以理解,图8中示出的移动终端结构并不构成对移动终端的限定,移动终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本公开实施例中,移动终端包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。
其中,处理器810,用于获取目标文本所包括的多个文本页中的至少一个目标文本页;分别获取每一目标文本页中的目标复制内容;将每一目标文本页中的目标复制内容存储至粘贴板。
本公开实施例中,通过分别获取多个文本页中每一目标文本页的目标复制内容,并将每一目标文本页中的目标复制内容存储至粘贴板,能够为用户跨页面的内容复制操作提供便利,简化了跨页面复制操作,并且不会出现内容选取中断的情形,避免了内容选取中断而导致用户需要重新操作的问题。
应理解的是,本公开实施例中,射频单元801可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器810处理;另外,将上行的数据发送给基站。通常,射频单元801包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元801还可以通过无线通信系统与网络和其他设备通信。
移动终端通过网络模块802为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。
音频输出单元803可以将射频单元801或网络模块802接收的或者在存储器809中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元803还可以提供与移动终端800执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元803包括扬声器、蜂鸣器以及受话器等。
输入单元804用于接收音频或视频信号。输入单元804可以包括图形处理器(Graphics Processing Unit,GPU)8041和麦克风8042,图形处理器8041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元806上。经图形处理器8041处理后的图像帧可以存储在存储器809(或其它存储介质)中或者经由射频单元801或网络模块802进行发送。麦克风8042可以 接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元801发送到移动通信基站的格式输出。
移动终端800还包括至少一种传感器805,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板8061的亮度,接近传感器可在移动终端800移动到耳边时,关闭显示面板8061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器805还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。
显示单元806用于显示由用户输入的信息或提供给用户的信息。显示单元806可包括显示面板8061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板8061。
用户输入单元807可用于接收输入的数字或字符信息,以及产生与移动终端的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元807包括触控面板8071以及其他输入设备8072。触控面板8071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板8071上或在触控面板8071附近的操作)。触控面板8071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器810,接收处理器810发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板8071。除了触控面板8071,用户输入单元807还可以包括其他输入设备8072。具体地,其他输入设备8072可以包括但不限于物理键盘、功能键(比如音量控制按键、 开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。
进一步的,触控面板8071可覆盖在显示面板8061上,当触控面板8071检测到在其上或附近的触摸操作后,传送给处理器810以确定触摸事件的类型,随后处理器810根据触摸事件的类型在显示面板8061上提供相应的视觉输出。虽然在图8中,触控面板8071与显示面板8061是作为两个独立的部件来实现移动终端的输入和输出功能,但是在某些实施例中,可以将触控面板8071与显示面板8061集成而实现移动终端的输入和输出功能,具体此处不做限定。
接口单元808为外部装置与移动终端800连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元808可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端800内的一个或多个元件或者可以用于在移动终端800和外部装置之间传输数据。
存储器809可用于存储软件程序以及各种数据。存储器809可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器809可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
处理器810是移动终端的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或执行存储在存储器809内的软件程序和/或模块,以及调用存储在存储器809内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。处理器810可包括一个或多个处理单元;可选地,处理器810可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器810中。
移动终端800还可以包括给各个部件供电的电源811(比如电池),可选 地,电源811可以通过电源管理系统与处理器810逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
另外,移动终端800包括一些未示出的功能模块,在此不再赘述。
可选地,本公开实施例还提供一种移动终端,包括处理器810,存储器809,存储在存储器809上并可在处理器810上运行的计算机程序,该计算机程序被处理器810执行时实现上述文本复制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
本公开实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述文本复制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本公开的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本公开各个实施例所述的方法。
上面结合附图对本公开的实施例进行了描述,但是本公开并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本公开的启示下,在不脱离本公开宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本公开的保护之内。
Claims (15)
- 一种文本复制方法,包括:获取目标文本所包括的多个文本页中的至少一个目标文本页;分别获取每一所述目标文本页中的目标复制内容;将每一所述目标文本页中的目标复制内容存储至粘贴板。
- 根据权利要求1所述的文本复制方法,其中,所述获取目标文本所包括的多个文本页中的至少一个目标文本页,包括:显示所述目标文本所包括的多个文本页的缩略图;接收对多个文本页的缩略图的选择操作,确定所述选择操作所选择缩略图相对应的文本页为所述目标文本页。
- 根据权利要求2所述的文本复制方法,其中,所述显示所述目标文本所包括的多个文本页的缩略图,包括:确定所述目标文本在翻页过程中,从所翻阅文本页中选择的初始选择文本页;将与所述初始选择文本页相关联的多个文本页以缩略图形式显示。
- 根据权利要求1所述的文本复制方法,其中,所述分别获取每一所述目标文本页中的目标复制内容,包括:分别逐页显示每一所述目标文本页的待复制内容;针对每一所述目标文本页,接收对所述目标文本页中待复制内容的内容选取操作;响应所述内容选取操作,确定每一所述目标文本页中被选择的待复制内容为所述目标复制内容,或者,确定每一所述目标文本页中除被选择的内容之外的待复制内容为所述目标复制内容。
- 根据权利要求4所述的文本复制方法,其中,所述分别逐页显示每一所述目标文本页的待复制内容之前,所述方法还包括:针对每一所述目标文本页,分别识别所述目标文本页中的预设过滤内容;确定每一所述目标文本页中除所述预设过滤内容之外的内容为所述待复制内容。
- 根据权利要求5所述的文本复制方法,其中,所述针对每一所述目标文本页,分别识别所述目标文本页中的预设过滤内容,包括:获取所述目标文本页中的内容数据的数据标签;确定与预设数据标签相匹配的目标数据标签;确定所述目标数据标签相关联的内容数据为预设过滤内容。
- 根据权利要求5所述的文本复制方法,其中,所述针对每一所述目标文本页,分别识别所述目标文本页中的预设过滤内容,包括:获取所述目标文本页中的显示区域的区域标识;确定与预设区域标识相匹配的目标区域标识;确定所述目标区域标识相关联的页面内容为预设过滤内容。
- 一种电子设备,包括:第一获取模块,用于获取目标文本所包括的多个文本页中的至少一个目标文本页;第二获取模块,用于分别获取每一所述目标文本页中的目标复制内容;存储模块,用于将每一所述目标文本页中的目标复制内容存储至粘贴板。
- 根据权利要求8所述的电子设备,其中,所述第一获取模块包括:第一显示单元,用于显示所述目标文本所包括的多个文本页的缩略图;第一确定单元,用于接收对多个文本页的缩略图的选择操作,确定所述选择操作所选择缩略图相对应的文本页为所述目标文本页。
- 根据权利要求9所述的电子设备,其中,所述显示单元包括:确定子单元,用于确定所述目标文本在翻页过程中,从所翻阅文本页中选择的初始选择文本页;显示子单元,用于将与所述初始选择文本页相关联的多个文本页以缩略图形式显示。
- 根据权利要求8所述的电子设备,其中,所述第二获取模块包括:第二显示单元,用于分别逐页显示每一所述目标文本页的待复制内容;接收单元,用于针对每一所述目标文本页,接收对所述目标文本页中待复制内容的内容选取操作;第二确定单元,用于响应所述内容选取操作,确定每一所述目标文本页 中被选择的待复制内容为所述目标复制内容,或者,确定每一所述目标文本页中除被选择的内容之外的待复制内容为所述目标复制内容。
- 根据权利要求11所述的电子设备,还包括:识别模块,用于针对每一所述目标文本页,分别识别所述目标文本页中的预设过滤内容;确定模块,用于确定每一所述目标文本页中除所述预设过滤内容之外的内容为所述待复制内容。
- 根据权利要求12所述的电子设备,其中,所述识别模块包括:第一获取单元,用于获取所述目标文本页中的内容数据的数据标签;第三确定单元,用于确定与预设数据标签相匹配的目标数据标签;第四确定单元,用于确定所述目标数据标签相关联的内容数据为预设过滤内容。
- 根据权利要求12所述的电子设备,其中,所述识别模块包括:第二获取单元,用于获取所述目标文本页中的显示区域的区域标识;第五确定单元,用于确定与预设区域标识相匹配的目标区域标识;第六确定单元,用于确定所述目标区域标识相关联的页面内容为预设过滤内容。
- 一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至7中任一项所述的文本复制方法的步骤。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910100623.9A CN109857578B (zh) | 2019-01-31 | 2019-01-31 | 一种文本复制方法和电子设备 |
CN201910100623.9 | 2019-01-31 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020156167A1 true WO2020156167A1 (zh) | 2020-08-06 |
Family
ID=66897321
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/072175 WO2020156167A1 (zh) | 2019-01-31 | 2020-01-15 | 文本复制方法和电子设备 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109857578B (zh) |
WO (1) | WO2020156167A1 (zh) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109857578B (zh) * | 2019-01-31 | 2021-07-23 | 维沃移动通信有限公司 | 一种文本复制方法和电子设备 |
CN112328149B (zh) * | 2020-11-11 | 2022-03-25 | 维沃移动通信有限公司 | 图片格式的设置方法、装置及电子设备 |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105095167A (zh) * | 2015-06-10 | 2015-11-25 | 努比亚技术有限公司 | 一种在移动终端多次复制粘贴的方法和装置 |
CN106843680A (zh) * | 2016-12-30 | 2017-06-13 | 努比亚技术有限公司 | 一种实现分页处理的方法及终端 |
CN107967093A (zh) * | 2017-12-21 | 2018-04-27 | 维沃移动通信有限公司 | 一种多段文本复制方法及移动终端 |
CN108038233A (zh) * | 2017-12-26 | 2018-05-15 | 福建中金在线信息科技有限公司 | 一种采集文章的方法、装置、电子设备及存储介质 |
CN108509103A (zh) * | 2017-02-27 | 2018-09-07 | 华为技术有限公司 | 文本复制方法和触屏设备 |
CN109857578A (zh) * | 2019-01-31 | 2019-06-07 | 维沃移动通信有限公司 | 一种文本复制方法和电子设备 |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102681786B (zh) * | 2012-05-14 | 2014-12-24 | 华为技术有限公司 | 文本选择的方法及装置 |
CN104102419B (zh) * | 2013-04-09 | 2019-02-26 | 腾讯科技(深圳)有限公司 | 页面显示方法、装置和终端设备 |
CN104216627B (zh) * | 2013-06-04 | 2019-06-25 | 北京壹人壹本信息科技有限公司 | 便携式电子阅读编辑装置及其文档编辑方法 |
JP6423671B2 (ja) * | 2014-09-26 | 2018-11-14 | エヌ・ティ・ティ・コムウェア株式会社 | ウェブページ間複写装置、ウェブページ間の複写方法、およびプログラム |
CN107918563A (zh) * | 2017-09-30 | 2018-04-17 | 华为技术有限公司 | 一种复制和粘贴的方法、数据处理装置和用户设备 |
-
2019
- 2019-01-31 CN CN201910100623.9A patent/CN109857578B/zh active Active
-
2020
- 2020-01-15 WO PCT/CN2020/072175 patent/WO2020156167A1/zh active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105095167A (zh) * | 2015-06-10 | 2015-11-25 | 努比亚技术有限公司 | 一种在移动终端多次复制粘贴的方法和装置 |
CN106843680A (zh) * | 2016-12-30 | 2017-06-13 | 努比亚技术有限公司 | 一种实现分页处理的方法及终端 |
CN108509103A (zh) * | 2017-02-27 | 2018-09-07 | 华为技术有限公司 | 文本复制方法和触屏设备 |
CN107967093A (zh) * | 2017-12-21 | 2018-04-27 | 维沃移动通信有限公司 | 一种多段文本复制方法及移动终端 |
CN108038233A (zh) * | 2017-12-26 | 2018-05-15 | 福建中金在线信息科技有限公司 | 一种采集文章的方法、装置、电子设备及存储介质 |
CN109857578A (zh) * | 2019-01-31 | 2019-06-07 | 维沃移动通信有限公司 | 一种文本复制方法和电子设备 |
Also Published As
Publication number | Publication date |
---|---|
CN109857578A (zh) | 2019-06-07 |
CN109857578B (zh) | 2021-07-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021104195A1 (zh) | 图像显示方法及电子设备 | |
WO2021012931A1 (zh) | 图标管理方法及终端 | |
WO2021136159A1 (zh) | 截屏方法及电子设备 | |
WO2020215957A1 (zh) | 界面显示方法及终端设备 | |
WO2021017776A1 (zh) | 信息处理方法及终端 | |
WO2020238377A1 (zh) | 拍摄处理方法、装置、移动终端及存储介质 | |
WO2020258929A1 (zh) | 文件夹界面切换方法及终端设备 | |
WO2020156118A1 (zh) | 管理方法及终端设备 | |
WO2020156169A1 (zh) | 显示控制方法及终端设备 | |
WO2020134744A1 (zh) | 图标移动方法及移动终端 | |
WO2021147779A1 (zh) | 配置信息分享方法、终端设备及计算机可读存储介质 | |
WO2020151512A1 (zh) | 图像存储方法及终端设备 | |
WO2020182035A1 (zh) | 图像处理方法及终端设备 | |
WO2021147785A1 (zh) | 思维导图显示方法及电子设备 | |
US20210096739A1 (en) | Method For Editing Text And Mobile Terminal | |
WO2021036553A1 (zh) | 图标显示方法及电子设备 | |
WO2021104160A1 (zh) | 编辑方法及电子设备 | |
WO2021129536A1 (zh) | 图标移动方法及电子设备 | |
WO2020151513A1 (zh) | 信息处理方法及终端设备 | |
US11250046B2 (en) | Image viewing method and mobile terminal | |
WO2020220893A1 (zh) | 截图方法及移动终端 | |
CN108646960B (zh) | 一种文件处理方法及柔性屏终端 | |
WO2021104255A1 (zh) | 文件管理方法及电子设备 | |
WO2021169954A1 (zh) | 搜索方法及电子设备 | |
WO2021057301A1 (zh) | 文件控制方法及电子设备 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20748967 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20748967 Country of ref document: EP Kind code of ref document: A1 |