Information processing method, information processing device and electronic equipment

文档序号:1073186 发布日期:2020-10-16 浏览:7次 中文

阅读说明:本技术 信息处理方法、信息处理装置及电子设备 (Information processing method, information processing device and electronic equipment ) 是由 龚靖康 于 2020-06-15 设计创作,主要内容包括:本申请公开了一种信息处理方法、信息处理装置及电子设备,属于通信技术领域,以解决在粘贴多个信息时,信息混乱的问题。该方法包括:接收对第一区域中的目标信息的第一输入;响应于第一输入,复制目标信息,目标信息包括第一信息和第二信息;识别目标消息的特征信息;根据特征信息,在第二区域粘贴第一信息和第二信息;其中,第一区域中的信息的格式信息和第二区域中的信息的格式信息不同,特征信息包括第一信息的格式信息和第二信息的格式信息,以及第一信息和第二信息的相对位置。这样,按照第一信息和第二信息在第一区域中的格式进行粘贴,从而能够使得第二区域中的第一信息和第二信息与原格式保持一致而不会发生信息错乱的情况。(The application discloses an information processing method, an information processing device and electronic equipment, belongs to the technical field of communication and aims to solve the problem of information confusion when multiple pieces of information are pasted. The method comprises the following steps: receiving a first input of target information in a first area; in response to the first input, copying target information, the target information including first information and second information; identifying characteristic information of the target message; pasting the first information and the second information in the second area according to the characteristic information; the format information of the information in the first area is different from the format information of the information in the second area, and the characteristic information comprises the format information of the first information, the format information of the second information and the relative positions of the first information and the second information. In this way, the first information and the second information are pasted according to the format of the first information and the second information in the first area, so that the first information and the second information in the second area can keep consistent with the original format without messing information.)

1. An information processing method characterized by comprising:

receiving a first input of target information in a first area;

in response to the first input, copying the target information, the target information comprising first information and second information;

identifying characteristic information of the target information;

pasting the first information and the second information in a second area according to the characteristic information of the target information;

the format information of the information in the first area is different from the format information of the information in the second area, and the feature information of the target information includes the format information of the first information and the format information of the second information, and the relative positions of the first information and the second information.

2. The method according to claim 1, wherein the first information and the second information are different types of information, and a display position of the second information is located in a display area of the first information;

the pasting the first information and the second information in a second area according to the characteristic information of the target information comprises:

adjusting the layout of the first information according to the information layout in the second area;

adjusting the layout of the second information according to the layout of the first information;

and pasting the adjusted first information and the adjusted second information in the second area according to the format information of the first information, the format information of the second information and the relative positions of the first information and the second information.

3. The method of claim 1, wherein the first information is a table and the second information is text information located in a target cell in the table;

the characteristic information for identifying the target information comprises:

identifying characteristic information for each cell within the table;

the pasting the first information and the second information in a second area according to the characteristic information of the target information comprises:

and pasting the table and the text information in the second area according to the feature information of each cell, wherein the target cell in the pasted table comprises the text information.

4. The method according to claim 3, wherein the feature information of the target cell further includes a feature of text information in the target cell, and the pasting the table and the text information in the second area according to the feature information of each cell comprises:

according to the characteristics of the text information in the target cell, adjusting the size of at least part of cells including the target cell;

acquiring feature information of each cell in the adjusted table according to the adjusted size of at least part of the cells;

and pasting the text information and the adjusted table in the second area according to the feature information of each cell acquired from the adjusted table.

5. The method of claim 1, wherein the target information further comprises a first table; the first information and the second information are text information located in the first table;

the characteristic information for identifying the target information comprises:

identifying format information of the first table, format information of the text information, and a location of the text information within the first table;

the pasting the first information and the second information in a second area according to the characteristic information of the target information comprises:

determining the position corresponding relation of the first table and the second table according to the format information of the first table under the condition that the second table exists in the second area; pasting the text information in the second table according to the format information of the text information, the position corresponding relation and the position of the text information in the first table;

and when a second table does not exist in the second area, pasting the first table and the text information in the second area according to the format information of the first table, the format information of the text information and the position of the text information in the first table.

6. An information processing apparatus characterized by comprising:

a receiving module for receiving a first input of target information in a first area;

a copy module to copy the target information in response to the first input, the target information including first information and second information;

the identification module is used for identifying the characteristic information of the target information;

the pasting module is used for pasting the first information and the second information in a second area according to the characteristic information of the target information;

the format information of the information in the first area is different from the format information of the information in the second area, and the feature information of the target information includes the format information of the first information and the format information of the second information, and the relative positions of the first information and the second information.

7. The apparatus of claim 6, wherein the first information and the second information are different types of information, and a display position of the second information is located in a display area of the first information;

the pasting module comprises:

the first adjusting submodule is used for adjusting the layout of the first information according to the information layout in the second area;

the second adjusting submodule is used for adjusting the layout of the second information according to the layout of the first information;

and the first pasting sub-module is used for pasting the adjusted first information and the adjusted second information in the second area according to the format information of the first information, the format information of the second information and the relative positions of the first information and the second information.

8. The apparatus of claim 6, wherein the first information is a table and the second information is text information located in a target cell in the table;

the identification module is specifically configured to:

identifying characteristic information for each cell within the table;

the pasting module is specifically used for:

and pasting the table and the text information in the second area according to the feature information of each cell, wherein the target cell in the pasted table comprises the text information.

9. The apparatus of claim 8, wherein the characteristic information of the target cell further comprises a characteristic of text information within the target cell, and wherein the pasting module comprises:

the third adjusting submodule is used for adjusting the size of at least part of cells including the target cell according to the characteristics of the text information in the target cell;

the obtaining submodule is used for obtaining the characteristic information of each cell in the adjusted table according to the adjusted size of at least part of the cells;

and the second pasting submodule is used for pasting the text information and the adjusted table in the second area according to the feature information of each cell acquired from the adjusted table.

10. The apparatus of claim 6, wherein the target information further comprises a first table; the first information and the second information are text information located in the first table;

the identification module is specifically configured to:

identifying format information of the first table, format information of the text information, and a location of the text information within the first table;

the pasting module comprises:

the third pasting sub-module is used for determining the position corresponding relation between the first table and the second table according to the format information of the first table under the condition that the second table exists in the second area; pasting the text information in the second table according to the format information of the text information, the position corresponding relation and the position of the text information in the first table;

and the fourth pasting sub-module is used for pasting the first table and the text information in the second area according to the format information of the first table, the format information of the text information and the position of the text information in the first table under the condition that the second table does not exist in the second area.

11. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the information processing method according to any one of claims 1 to 5.

12. A readable storage medium, characterized in that a program or instructions are stored thereon, which when executed by a processor, implement the steps of the information processing method according to any one of claims 1 to 5.

Technical Field

The present application belongs to the field of communication technologies, and in particular, relates to an information processing method, an information processing apparatus, and an electronic device.

Background

With the development of information technology, users often need to show the contents to be conveyed through various information editing modes. For example, the content is displayed in a web page in a mode of combining pictures and texts and in a mode of editing a document such as a table or a slide, so that a user can conveniently and quickly understand the content.

However, the inventors found that at least the following problems exist in the prior art: since the type of information includes a plurality of pieces of information, in the process of copying the type of information, for example, when information in a table is copied into a mail edit box, the pasted content may be confused.

Disclosure of Invention

The embodiment of the invention provides an information processing method, an information processing device and electronic equipment, and aims to solve the problem of information confusion when a plurality of pieces of information are pasted.

In order to solve the technical problem, the invention is realized as follows:

in a first aspect, an embodiment of the present invention provides an information processing method, where the method includes:

receiving a first input of target information in a first area;

in response to the first input, copying the target information, the target information comprising first information and second information;

identifying characteristic information of the target information;

pasting the first information and the second information in a second area according to the characteristic information of the target information;

the format information of the information in the first area is different from the format information of the information in the second area, and the feature information of the target information includes the format information of the first information and the format information of the second information, and the relative positions of the first information and the second information.

In a second aspect, an embodiment of the present invention further provides an information processing apparatus, including:

a receiving module for receiving a first input of target information in a first area;

a copy module to copy the target information in response to the first input, the target information including first information and second information;

the identification module is used for identifying the characteristic information of the target information;

the pasting module is used for pasting the first information and the second information in a second area according to the characteristic information of the target information;

the format information of the information in the first area is different from the format information of the information in the second area, and the feature information of the target information includes the format information of the first information and the format information of the second information, and the relative positions of the first information and the second information.

In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, where the program or instructions, when executed by the processor, implement the steps of the information processing method according to the first aspect.

In a fourth aspect, the present application provides a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the information processing method according to the first aspect.

In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the information processing method according to the first aspect.

In the embodiment of the application, a first input of target information in a first area is received; in response to the first input, copying the target information, the target information comprising first information and second information; identifying characteristic information of the target information; pasting the first information and the second information in a second area according to the characteristic information of the target information; the format information of the information in the first area is different from the format information of the information in the second area, and the feature information of the target information includes the format information of the first information and the format information of the second information, and the relative positions of the first information and the second information. In this way, the first information and the second information are pasted according to the format of the first information and the second information in the first area, so that the first information and the second information in the second area can keep consistent with the original format without messing information.

Drawings

FIG. 1 is a flow chart of an information processing method provided by an embodiment of the invention;

fig. 2 to fig. 4 are schematic interface diagrams of an electronic device according to an embodiment of the present invention;

FIG. 5 is a table of feature vectors for cells in a table provided by an embodiment of the present invention;

fig. 6 is a structural diagram of an information processing apparatus provided by an embodiment of the present invention;

fig. 7 is a block diagram of an electronic device provided in an embodiment of the present invention.

Detailed Description

The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.

The information processing method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.

Referring to fig. 1, fig. 1 is a flowchart of an information processing method according to an embodiment of the present invention, and as shown in fig. 1, the method includes the following steps:

step 101, receiving a first input of target information in a first area.

Wherein the first area may be an area where target information is displayed, and the target information may include a plurality of information of the same or different types, such as text information, text information and picture information, text information and table information, and the like.

The first input may be a user's copy operation of the target information, such as a press operation, a drag operation, a click operation, and the like.

And 102, responding to the first input, copying the target information, wherein the target information comprises first information and second information.

The first information and the second information may be the same or different types of information. For example, the first information and the second information may both be text information; or the first information is picture information, and the second information is text information; or the first information may be table information and the second information may be text information, which is only an example here. In this step, the electronic device may copy the first information and the second information to a clipboard or other storage location in response to the first input. In the case where other information is included in the target information, the other information may also be copied.

And 103, identifying characteristic information of the target information.

The feature information of the target information includes format information of the first information and format information of the second information, and relative positions of the first information and the second information.

In this step, the characteristics of the first information and the characteristics of the second information may be identified based on the copied target information. Specifically, the information contents of the first information and the second information, the outline of the region where the first information and the second information are located, the format characteristics, the relative positions, and the like of the first information and the second information may be identified.

For example, when the first information and the second information are table information and text information, respectively, the format information of the table may include an outline of an occupied area of the table, a length and a width of each cell, a ratio of each row and each column in the table, and text information contained in the cell, and the format information of the text information may include a font size, a font type, and the like. When the first information and the second information are respectively picture information and text information, the outline of an area occupied by the picture, the content characteristics of the picture, the format of the text information and other characteristics can be identified.

The above feature information may be obtained by acquiring original feature data of the target information at the time of copying, or by recognizing feature information of each object in the image. When other information is included in the target information, in this step, the characteristics of the other information may also be identified.

And 104, pasting the first information and the second information in a second area according to the characteristic information of the target information.

Wherein format information of the information in the first area is different from format information of the information in the second area.

The first area and the second area may be two different areas, and a format of information in the first area and a format of information in the second area are different. For example, the first area is a form editing area, and the second area is a mail editing area; or the first area is a document editing area, the second area is a slide presentation editing area, and the format of the information in the first area is different from that in the second area because the first area and the second area are distributed in different areas. Therefore, in the present embodiment, based on the format information of the first information and the second information in the first area, the contents of the first information and the second information are pasted in the second area. When the first information and the second information are pasted, the format information of the first information and the second information is kept unchanged, so that the first information and the second information keep the characteristics in the first area, the first information and the second information in the second area are arranged orderly, the original arrangement order is not disturbed, and the condition of information disorder is not caused.

Optionally, the first information and the second information are different types of information, and a display position of the second information is located in a display area of the first information;

the pasting the first information and the second information in a second area according to the characteristic information of the target information comprises:

adjusting the layout of the first information according to the information layout in the second area;

adjusting the layout of the second information according to the layout of the first information;

and pasting the adjusted first information and the adjusted second information in the second area according to the format information of the first information, the format information of the second information and the relative positions of the first information and the second information.

In this embodiment, when pasting the first information and the second information, the layout of the first information and the second information may be adjusted according to the information layout of the second area. The display position of the second information is located in the display area of the first information, which can be understood as an area where the display area of the second information overlaps with the display area of the first information. For example, the first information is a table, and the second information is text located in cells of the table; or the first information is a picture, and the second information is a chart or a text which is displayed by taking the picture as a background.

Specifically, the layout of the first information and the second information may be adjusted according to the information layout of the second region so that the layout of the first information and the second information is adapted to the layout of the second region. In a specific implementation, the layout of the first information may be adjusted according to the information layout of the second region, and then the layout of the second information may be adjusted based on the layout of the first information. As shown in fig. 2 to 4, the second area includes a text area 11 and a blank area 12. Fig. 2 shows the table in the middle of the blank area 12, fig. 3 shows the table size adaptively adjusted according to the size of the blank area 12, and fig. 4 shows the table in the blank area 12. In the above adjustment method, the size of the table outline and the size of each cell may be adjusted, for example, the table is scaled, the size of the cell is adjusted, or the position of the whole table is adjusted, so that the table is adapted to the second area. After the table is adjusted, the size and layout of the text in the cells can be adjusted based on the adjusted table, so that the text information is adapted to the layout of the table.

After the layout of the first information and the second information is adjusted, the first information and the second information are pasted in the second area according to the format and the relative position of the first information and the second information, so that the first information and the second information can not only keep the original format without disorder and deformation, but also can adapt to the layout of the second area, and the display effect of the pasted information is improved.

According to the embodiment of the invention, the first information and the second information can be adjusted according to the layout of the second area, so that the first information and the second information are adaptive to the layout of the second area, and the format of the pasting result can be ensured to be consistent with the copied content and the format in the first area.

Optionally, the first information is a table, and the second information is text information located in a target cell in the table;

the characteristic information for identifying the target information comprises:

identifying characteristic information for each cell within the table;

the pasting the first information and the second information in a second area according to the characteristic information comprises:

and pasting the table and the text information in the second area according to the feature information of each cell, wherein the target cell in the pasted table comprises the text information.

In this embodiment, characteristic information of each cell is identified, such as a line number and a column number of the cell, a cell merging operation, a height and a width of the cell, text contained in the cell, a font of the text, a font size, and the like. For the case of special processing, taking the merged cell as an example, information such as the row number, the column number, and the number of merged cells of the merged cell may be further obtained and recorded. When the combined cells are pasted, the combined cells can be pasted according to the characteristics of the combined cells, so that the pasted cells keep the original characteristics.

The characteristic information of each cell is denoted as p (n), and a total of t cells, and the above information is collected to obtain a table shown in fig. 5. For example, the feature vector of any cell is sequentially expanded to be located in the 1 st row and 1 st column of the table, no cell is merged, the height and width of the cell are 0.5cm and 1cm, respectively, and the cell contains the number 12, which is only an example.

And pasting all the cells in the table in the second area according to the characteristic information of each cell. The characteristic information of each cell in the table is obtained, and each cell is copied from the first area to the second area according to the characteristic information, so that each cell pasted in the second area can keep the original characteristic when being pasted in the first area, and the pasted table and text cannot generate the condition of information confusion.

Optionally, the feature information of the target cell further includes a feature of text information in the target cell, and the pasting the table and the text information in the second area according to the feature information of each cell includes:

according to the characteristics of the text information in the target cell, adjusting the size of at least part of cells including the target cell;

acquiring feature information of each cell in the adjusted table according to the adjusted size of at least part of the cells;

and pasting the text information and the adjusted table in the second area according to the feature information of each cell acquired from the adjusted table.

In this embodiment, the table may be further adjusted based on the content of the text information, so that the cells are more adapted to the size of the text.

Specifically, the width or height of the cell may be adjusted according to the amount of text information in the cell. For example, when the number of text messages within a cell is large, the height or width of the cell may be increased. To keep the cells in order, other cells associated with the target cell may also be adjusted, such as an entire row or column of cells, with each row and column aligned.

For ease of understanding, the cell width and height are calculated from the number of texts as follows. For example, the feature vector of the cell with the largest number of characters in each column of cells is obtained and is respectively marked as P (x1), …, P (xn) as the largest number of texts in each column. The widths of the columns of cells to be pasted are respectively as follows:

(P (x1)/(P (x1) + P (x2) + … … + P (xn))) to-be-pasted document setting window width

(P (x2)/(P (x1) + P (x2) + … … + P (xn))) to-be-pasted document setting window width

……

(P (xn)/(P (x1) + P (x2) + … … + P (xn)) to-be-pasted document setting window width

The height of each row of cells may then be determined by: the cell with the largest amount of characters in each line is identified, and the height of the cell in the line can be automatically identified and determined according to the minimum appropriate value that the characters in the cell with the largest amount of characters just fill the cell.

When the height of the table window to be pasted is fixed, the maximum text line number L (y1), L (y2), … … and L (ym) of each line of cells can be calculated after the above width arrangement, and then the height of each line can be calculated according to the height corresponding proportion of the table window of the document to be pasted. The table includes the conditions of merging or other processing, and the position information of the cells can be recorded and merged or other processing can be correspondingly performed.

(L (y1)/(L (y1) + L (y2) + … … + L (ym))) to-be-pasted document setting window height

(L (y2)/(L (y1) + L (y2) + … … + L (ym))) to-be-pasted document setting window height

……

(L (yn)/(L (y1) + L (y2) + … … + L (ym))) document to be pasted sets the window height

Wherein, the width and the height of the document setting window to be pasted can be identified and determined according to the size of the second area.

The above is merely an example of a calculation method for adjusting the size of the cell by the number of characters, and in a specific implementation, the height and the width of the cell may be determined jointly based on the number of characters, the type of the text, the attribute of the text, and the like.

After the sizes of at least part of the cells are adjusted, the feature information of each cell in the whole table can be acquired according to the adjusted at least part of the cells, and the table and the text are pasted based on the feature information.

The embodiment of the invention can further adjust the height and width of the table on the basis of the above embodiment, so that the table and the text are adaptive and arranged more orderly.

Optionally, the target information further includes a first table; the first information and the second information are text information located in the first table;

the characteristic information for identifying the target information comprises:

identifying format information of the first table, format information of the text information, and a location of the text information within the first table;

the pasting the first information and the second information in a second area according to the characteristic information of the target information comprises:

determining the position corresponding relation of the first table and the second table according to the format information of the first table under the condition that the second table exists in the second area; pasting the text information in the second table according to the format information of the text information, the position corresponding relation and the position of the text information in the first table;

and when a second table does not exist in the second area, pasting the first table and the text information in the second area according to the format information of the first table, the format information of the text information and the position of the text information in the first table.

In this embodiment, the format information of the first table may include outline information of the first table, size information of cells, row-column ratio information, cell consolidation information, and the like. The first information and the second information are text information located in the first table, and format information of the text information may include characteristics of the text information, such as font, font size, display characteristics, and the like.

In the case that the second table exists in the second area, the characteristics of the second table may be obtained, and the characteristics of the first table and the second table may be compared, so that the table area corresponding to the position of the first table may be determined in the second table, and text information, that is, the first information and the second information, may be pasted in the table area. The position of the text information in the first table corresponds to the position in the table area in the second table, and the position and the characteristics of each cell in the first table and the table area are in one-to-one correspondence; and the format characteristics of the text information in the second table are the same as the format characteristics of the text information in the first table, so that the text information pasted on the second table cannot generate information confusion.

In the case where no table exists in the second area, the first table may be pasted according to format information of the first table, and the text information may be pasted according to a position of the text information in the first table. The first table and the text information can be pasted at the same time or successively. The relative position of the text information and the first table in the first area corresponds to the relative position of the text information and the first table in the second area, and the tables and the text information in the second area both retain original format characteristics, so that the condition of information disorder is avoided.

The information pasting method and the information pasting device can be used for pasting according to the characteristics of the pasting area, and the flexibility of information pasting is improved.

The embodiment of the invention can be suitable for the condition of combining the form, the text and the image-text, such as the documents of a webpage, a presentation and the like, in the process of copying and pasting different documents. By identifying the information in the graph text, the original information can be kept and copied synchronously under the condition of not disturbing the format of the original document and the sequence of the graph text, so that the functions of quickly keeping the original format among different documents and adapting to the beautification of new documents are realized.

It should be noted that, in the information processing method provided in the embodiment of the present application, the execution main body may be an information processing apparatus, or a control module in the information processing apparatus for executing the method for loading information processing. In the embodiment of the present application, a method for executing processing of loading information by an information processing apparatus is taken as an example, and the method for processing information provided in the embodiment of the present application is described.

Referring to fig. 6, fig. 6 is a structural diagram of an information processing apparatus according to an embodiment of the present invention, and as shown in fig. 6, an information processing apparatus 600 includes:

a receiving module 601, configured to receive a first input of target information in a first area;

a copy module 602, configured to copy the target information in response to the first input, where the target information includes first information and second information;

an identifying module 603, configured to identify feature information of the target information;

a pasting module 604, configured to paste the first information and the second information in a second area according to feature information of the target information;

the format information of the information in the first area is different from the format information of the information in the second area, and the feature information of the target information includes the format information of the first information and the format information of the second information, and the relative positions of the first information and the second information.

Optionally, the first information and the second information are different types of information, and a display position of the second information is located in a display area of the first information;

the pasting module comprises:

the first adjusting submodule is used for adjusting the layout of the first information according to the information layout in the second area;

the second adjusting submodule is used for adjusting the layout of the second information according to the layout of the first information;

and the first pasting sub-module is used for pasting the adjusted first information and the adjusted second information in the second area according to the format information of the first information, the format information of the second information and the relative positions of the first information and the second information.

Optionally, the first information is a table, and the second information is text information located in a target cell in the table;

the identification module is specifically configured to:

identifying characteristic information for each cell within the table;

the pasting module is specifically used for:

and pasting the table and the text information in the second area according to the feature information of each cell, wherein the target cell in the pasted table comprises the text information.

Optionally, the feature information of the target cell further includes a feature of the text information in the target cell, and the pasting module includes:

the third adjusting submodule is used for adjusting the size of at least part of cells including the target cell according to the characteristics of the text information in the target cell;

the obtaining submodule is used for obtaining the characteristic information of each cell in the adjusted table according to the adjusted size of at least part of the cells;

and the second pasting submodule is used for pasting the text information and the adjusted table in the second area according to the feature information of each cell acquired from the adjusted table.

Optionally, the target information further includes a first table; the first information and the second information are text information located in the first table;

the identification module is specifically configured to:

identifying format information of the first table, format information of the text information, and a location of the text information within the first table;

the pasting module comprises:

the third pasting sub-module is used for determining the position corresponding relation between the first table and the second table according to the format information of the first table under the condition that the second table exists in the second area; pasting the text information in the second table according to the format information of the text information, the position corresponding relation and the position of the text information in the first table;

and the fourth pasting sub-module is used for pasting the first table and the text information in the second area according to the format information of the first table, the format information of the text information and the position of the text information in the first table under the condition that the second table does not exist in the second area.

The information processing apparatus 600 can implement the processes implemented by the electronic device in the above method embodiments and achieve the same beneficial effects, and for avoiding repetition, the details are not described here again.

The information processing apparatus in the embodiment of the present application may be an apparatus, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a kiosk, and the like, and the embodiments of the present application are not particularly limited.

The information processing apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.

The information processing apparatus provided in the embodiment of the present application can implement each process implemented by the information processing apparatus in the method embodiments of fig. 1 to fig. 5, and is not described herein again to avoid repetition.

According to the embodiment of the application, the first information and the second information are pasted in the format of the first area, so that the first information and the second information in the second area can be kept consistent with the original format without information disorder.

Optionally, an embodiment of the present application further provides an electronic device, which includes a processor, a memory, and a program or an instruction stored in the memory and capable of running on the processor, where the program or the instruction is executed by the processor to implement each process of the information processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.

It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.

Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.

The electronic device 700 includes, but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, and a processor 710.

Those skilled in the art will appreciate that the electronic device 700 may also include a power supply (e.g., a battery) for powering the various components, and the power supply may be logically coupled to the processor 710 via a power management system, such that the functions of managing charging, discharging, and power consumption may be performed via the power management system. The electronic device structure shown in fig. 7 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.

Wherein, the processor 710 is configured to:

controlling the user input unit 707 to receive a first input of target information in the first area;

in response to the first input, copying the target information, the target information comprising first information and second information;

identifying characteristic information of the target information;

pasting the first information and the second information in a second area according to the characteristic information of the target information;

the format information of the information in the first area is different from the format information of the information in the second area, and the feature information of the target information includes the format information of the first information and the format information of the second information, and the relative positions of the first information and the second information.

In this way, the first information and the second information are pasted according to the format of the first information and the second information in the first area, so that the first information and the second information in the second area can keep consistent with the original format without messing information.

Optionally, the first information and the second information are different types of information, and a display position of the second information is located in a display area of the first information; the processor 710 executes the pasting of the first information and the second information in the second area according to the feature information of the target information, including:

adjusting the layout of the first information according to the information layout in the second area;

adjusting the layout of the second information according to the layout of the first information;

and pasting the adjusted first information and the adjusted second information in the second area according to the format information of the first information, the format information of the second information and the relative positions of the first information and the second information.

Optionally, the first information is a table, and the second information is text information located in a target cell in the table; the processor 710 executes the feature information for identifying the target information, including:

identifying characteristic information for each cell within the table;

the processor 710 executes the pasting of the first information and the second information in the second area according to the feature information of the target information, including:

and pasting the table and the text information in the second area according to the feature information of each cell, wherein the target cell in the pasted table comprises the text information.

Optionally, the feature information of the target cell further includes a feature of text information in the target cell; the processor 710 executes the pasting of the table and the text information in the second area according to the feature information of each cell, including:

according to the characteristics of the text information in the target cell, adjusting the size of at least part of cells including the target cell;

acquiring feature information of each cell in the adjusted table according to the adjusted size of at least part of the cells;

and pasting the text information and the adjusted table in the second area according to the feature information of each cell acquired from the adjusted table.

Optionally, the target information further includes a first table; the first information and the second information are text information located in the first table; the processor 710 executes the feature information for identifying the target information, including:

identifying format information of the first table, format information of the text information, and a location of the text information within the first table;

the processor 710 executes the pasting of the first information and the second information in the second area according to the feature information of the target information, including:

determining the position corresponding relation of the first table and the second table according to the format information of the first table under the condition that the second table exists in the second area; pasting the text information in the second table according to the format information of the text information, the position corresponding relation and the position of the text information in the first table;

and when a second table does not exist in the second area, pasting the first table and the text information in the second area according to the format information of the first table, the format information of the text information and the position of the text information in the first table.

It should be understood that in the embodiment of the present application, the input Unit 704 may include a Graphics Processing Unit (GPU) 7041 and a microphone 7042, and the graphics processing Unit 7041 processes image data of still pictures or videos obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071 is also referred to as a touch screen. The touch panel 7071 may include two parts of a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. Memory 709 may be used to store software programs as well as various data, including but not limited to applications and operating systems. Processor 710 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 710.

The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above-mentioned information processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.

The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.

The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the information processing method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.

It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.

It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.

Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.

While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

20页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:表格字段筛选方法、装置、计算机设备及存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!