Content display method, device and electronic device

The method and device ensure consistent text style and content between table cells and the formula bar by generating target rich text with the same style, addressing irregular display issues and improving link triggering convenience.

CN114626332BActive Publication Date: 2024-12-24BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210103776.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-27
Publication Date
2024-12-24
Estimated Expiration
2042-01-27

AI Technical Summary

Technical Problem

Existing technologies fail to maintain consistent text content and style between cells and the formula bar of a table, leading to irregular display and inconvenience in triggering links within the table.

Method used

A method and device that detect a selection operation on a cell in a target table, obtain the text content and style of the cell rich text, generate target rich text with the same style for the formula bar, and display it, ensuring consistency and enabling link triggering across the table.

Benefits of technology

Maintains a regular appearance of the table by keeping the text content and style consistent between cells and the formula bar, enhancing user convenience in triggering various types of links.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114626332B_ABST
    Figure CN114626332B_ABST
Patent Text Reader

Abstract

The disclosed embodiments disclose a content display method, device and electronic device. When a selection operation is detected for a cell in a target table, the text content of the cell rich text in the selected cell can be obtained, and the style of the cell rich text can be obtained. Then, the target rich text can be generated according to the obtained text content and style of the cell rich text, and the style of the target rich text can be the same as the style of the cell rich text, and the target rich text can be displayed in the formula bar of the target table; in this way, the content style of the selected cell in the formula bar of the target table can be kept consistent, so that the target table as a whole can be more regular.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of Internet technology, and in particular to a content display method, device and electronic device. Background Art

[0002] With the development of science and technology, people may use tables to organize various information. That is, users can enter corresponding information in the table to organize the information.

[0003] When the user selects a table, the contents in the table can be displayed in the formula bar above the table, and the user can also modify the contents in the table in the formula bar. Summary of the invention

[0004] This disclosure section is provided to introduce concepts in a brief form, which will be described in detail in the detailed description section below. This disclosure section is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.

[0005] The embodiments of the present disclosure provide a content display method, device and electronic device, which can make the style of the text content in the cell and the style of the text content in the formula bar remain the same, thereby making the target table as a whole more regular.

[0006] In a first aspect, an embodiment of the present disclosure provides a content display method, comprising: in response to detecting a selection operation on a cell in a target table, obtaining the text content of a cell rich text in the selected cell, and determining the style of the cell rich text; based on the text content of the cell rich text and the style of the cell rich text, generating a target rich text for display in a formula bar of the target table, wherein the style of the target rich text is the same as the style of the cell rich text; and displaying the target rich text in the formula bar of the target table.

[0007] In the second aspect, an embodiment of the present disclosure provides a content display device, including: a first determination unit, used to obtain the text content of a cell rich text in the selected cell in response to detecting a selection operation on a cell in a target table, and determine the style of the above-mentioned cell rich text; a generation unit, used to generate a target rich text for display in the formula bar of the above-mentioned target table based on the text content of the above-mentioned cell rich text and the style of the above-mentioned cell rich text, wherein the style of the above-mentioned target rich text is the same as the style of the above-mentioned cell rich text; a display unit, used to display the above-mentioned target rich text in the formula bar of the above-mentioned target table.

[0008] In a third aspect, an embodiment of the present disclosure provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the content display method as described above in the first aspect.

[0009] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the content display method as described above in the first aspect.

[0010] The content display method, device and electronic device provided by the embodiments of the present disclosure can obtain the text content of the cell rich text in the selected cell and the style of the cell rich text when a selection operation is detected for a cell in a target table. Then, the target rich text can be generated according to the obtained text content and style of the cell rich text, and the style of the target rich text can be the same as the style of the cell rich text. The target rich text can be displayed in the formula bar of the target table. In this way, the content style of the selected cell in the formula bar of the target table can be kept consistent, thereby making the target table more regular as a whole.

[0011] Furthermore, when the cell rich text includes hyperlinks, attachment links, links used to indicate specific users (such as links of @XXX), etc., the user can not only trigger these links in the selected cell to open the pages corresponding to these links, but also trigger these links in the formula bar to open the pages corresponding to these links; that is, it is more convenient to trigger various types of links in the target table. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.

[0013] Figure 1 is a flow chart of an embodiment of a content display method according to the present disclosure;

[0014] Figure 2 is a partial schematic diagram of a target table according to some embodiments of the content display method of the present disclosure;

[0015] Figures 3A-3E is a partial schematic diagram of a target table according to other embodiments of the content display method of the present disclosure;

[0016] Figures 4A-4Bis a partial schematic diagram of a target table according to other embodiments of the content display method of the present disclosure;

[0017] Figure 5 is a structural schematic diagram of an embodiment of a content display device according to the present disclosure;

[0018] Figure 6 is an exemplary system architecture in which the content display method of an embodiment of the present disclosure can be applied;

[0019] Figure 7 It is a schematic diagram of the basic structure of an electronic device provided according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0020] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0021] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0022] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0023] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0024] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0025] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0026] Please refer to Figure 1 , which shows the process of an embodiment of the content display method according to the present disclosure. The content display method can be applied to a terminal device. Figure 1 The content display method shown includes the following steps:

[0027] Step 101, in response to detecting a selection operation on a cell in a target table, obtaining the text content of the cell rich text in the selected cell, and determining the style of the cell rich text.

[0028] As an example, the execution subject of the content display method can detect the user's selection operation on the target table cell. The selection operation can be, but is not limited to, a click operation, a long press operation, a double click operation, etc. on the cell. After the execution subject of the content display method detects the selection operation on a cell, the cell rich text in the selected cell can be determined, the text content of the cell rich text can be obtained, and the style of the cell rich text can be determined.

[0029] As an example, the target table may include at least one cell, and the content recorded in different cells of the target table may be different, and the styles of the content in different cells may also be different. For example, text content may be filled in a cell, and a link, a hyperlink, etc. may also be filled in. That is, the content in the target table may have a certain style, and the content with a certain style may be called rich text. In other words, it can be understood that the rich text in different cells may be different (the content and / or style of the rich text are different).

[0030] As an example, text with multiple styles can be understood as rich text. Cell rich text can include text content and text style in a cell. Therefore, the text content in different cells may be different, and the text style may also be different, and thus different cell rich texts may be different.

[0031] Step 102: Generate a target rich text for display in a formula bar of a target table based on the text content and style of the cell rich text.

[0032] Here, the style of the target rich text is the same as the style of the cell rich text, so that the text content displayed in the formula bar of the target table can also have a certain style.

[0033] As an example, the execution subject of the content display method can generate a target rich text based on the text content of the unit rich text and the style of the unit rich text. For example, the execution subject of the content display method can input the text content of the unit rich text and the style of the unit rich text into a rich text editor, and after performing a corresponding format conversion on the result output by the rich text editor, a target rich text for display in the formula bar can be generated.

[0034] As an example, the formula bar of a table can be used to synchronously display the text content in the selected cell.

[0035] As an example, the style of the unit rich text is the same as the style of the target rich text, which can be understood as each style of the unit rich text is the same as each style of the target rich text; for example, the font style, font size, whether to indicate a link, font color, etc. are all the same.

[0036] It should be noted here that in the related art, the target table's cells and formula bar each support different display formats. For example, the format displayed in the cell cannot be displayed in the formula bar. Therefore, in the related art, the table's formula bar only displays text content, but does not reflect the style of the text content displayed in the formula bar. Figure 2 Understand the relevant technologies, Figure 2 A portion of the target table is shown, from Figure 2 It can be seen that the text content in the selected cell 201 can be displayed in the formula bar 202, but the style of the text content in the cell is not displayed in the formula bar, that is, the font style, font size style, etc. in the selected cell 201 are not reflected in the formula bar 202.

[0037] The present application generates target rich text for display in the formula bar of the target table through the text content and style of the cell rich text, and the format of the target rich text can match the format supported by the formula bar. In this way, the text content displayed in the formula bar can also be given a certain style.

[0038] As an example, there are many ways to generate target rich text for display in the formula bar of the target table. You only need to make a reasonable selection based on the actual situation. For example, you can use a rich text editor to render the text content of a cell rich text, and then convert the rendered text content into text content that can be displayed in the formula bar to obtain the target rich text. For another example, you can directly use a pre-built format conversion model (used to convert the format in the cell into a format that can be displayed in the formula bar) to obtain the target rich text.

[0039] Step 103, display the target rich text in the formula bar of the target table.

[0040] As an example, after generating the target rich text, the execution subject of the content display method may display the target rich text in the formula bar of the target table.

[0041] As an example, since the style of the target rich text is the same as the style of the cell rich text, the text content and style in the selected cell can be reflected in the formula bar, thereby making the target table more regular as a whole.

[0042] It can be seen that in an embodiment of the present application, when a selection operation is detected for a cell in a target table, the text content of the cell rich text in the selected cell can be obtained, and the style of the cell rich text can be obtained, and then the target rich text can be generated according to the obtained text content and style of the cell rich text, and the style of the target rich text can be the same as the style of the cell rich text, and the target rich text can be displayed in the formula bar of the target table; in this way, the content style of the selected cell in the formula bar of the target table can be kept consistent, thereby making the target table as a whole more regular.

[0043] Furthermore, when the cell rich text includes hyperlinks, attachment links, links used to indicate specific users (such as links of @XXX), etc., the user can not only trigger these links in the selected cell to open the pages corresponding to these links, but also trigger these links in the formula bar to open the pages corresponding to these links; that is, it is more convenient to trigger various types of links in the target table.

[0044] In order to facilitate understanding of the display method of this application, you can combine Figures 3A-3D To explain, Figures 3A-3D It can be understood as a partial schematic diagram of the target table of the embodiment provided in this application, from Figures 3A-3D It can be seen that the style of the cell rich text in the selected cell can be exactly the same as the style of the target rich text displayed in the formula bar 301 .

[0045] In some embodiments, the style of the rich text includes at least one of the following: font, glyph, hyperlink, attachment link, and link for indicating a specific user.

[0046] For easier understanding, please refer to Figure 3E , Figure 3E A partial schematic diagram of the target table of the embodiment provided in this application, Figure 3EIn the figure, the style of the cell rich text in cell 302 may include: font, glyph, hyperlink; the style of the cell rich text in cell 303 may include: font, glyph; the style of the cell rich text in cell 304 may include: font, glyph, link for indicating a specific user; the style of the cell rich text in cell 304 may include: font, glyph, attachment link.

[0047] In some embodiments, step 102 (generating a target rich text for display in the formula bar of a target table based on the text content of the cell rich text and the style of the cell rich text) may specifically include: generating a style rendering instruction based on the style of the cell rich text; inputting the style rendering instruction and the text content into a rich text editor; and generating a target rich text based on the rendering result of the rich text editor for the above text content.

[0048] Here, the rich text editor is used to style the text content based on the instructions of the style rendering instructions.

[0049] As an example, since the display format adapted to the cell may not be suitable for the formula bar, it is necessary to generate target rich text that can be displayed in the formula bar.

[0050] As an example, a target rich text can be generated using a rich text editor. For example, a rich text editor can be preset, and when a cell is selected, the text content and style of the cell rich text in the cell can be obtained, and the style of the cell rich text can be identified and processed, and then a rendering instruction for instructing the rich text editor to render can be generated. After that, both the rendering instruction and the text content can be input into the rich text editor, so that the rich text editor can be used to render the text content in a style and obtain the rendering result.

[0051] It should be noted that some rendering results can be directly displayed in the formula bar, in which case the rendering results can be understood as the target rich text; while some rendering results may need to be formatted to obtain the target rich text. When the rendering result needs to be formatted, the format conversion method can be determined according to the format adapted by the formula bar. Of course, in a specific implementation, the specific conversion method used to obtain the target rich text corresponding to the rendering result can also be set according to actual conditions.

[0052] In some embodiments, the target table may include a display interface, which may include at least one style control, each style control may be used to indicate a rendering style. At this time, in response to detecting a selection operation on the formula bar, the rendering style corresponding to the target rich text is determined; and the display form of the style controls corresponding to each determined rendering style is adjusted in the display interface.

[0053] As an example, adjusting the display form of the style control corresponding to each determined rendering style can facilitate the user to know which styles the target rich text currently has, thereby facilitating the user to re-edit the target rich text.

[0054] As an example, how to adjust the display form of the style control can be set according to actual conditions, and how to adjust the display form is not limited here. For example, the style control can be enlarged, the color can be changed, a logo layer can be added, etc.

[0055] In some embodiments, the rendering style corresponding to the target rich text can be determined in the following manner: obtaining the rendering style applied when the rich text editor renders the text content; determining at least one applied target rendering style based on the number of rendering characters corresponding to each rendering style in the applied rendering styles; and determining the rendering style corresponding to the target rich text based on the at least one applied target rendering style.

[0056] As an example, when a rich text editor is editing text content, multiple rendering styles may be used; for example, different characters in the generated target rich text may have different font sizes and font colors, and a combination of certain characters may form a link (for example, a combination of the characters www.baidu.com may form a link), etc. In this case, multiple rendering styles may need to be used, and the number of rendering characters corresponding to each rendering style may be recorded, and the number of rendering characters corresponding to different rendering styles may be different, with some rendering styles corresponding to more rendering characters and some rendering styles corresponding to less rendering characters. Thus, the rendering styles with more corresponding characters may be screened out, or the rendering styles applied to most characters may be screened out, and these rendering styles may be determined as the target rendering styles to be applied, and then the target rendering styles may be used to determine the rendering style corresponding to the target rich text.

[0057] As an example, the target rendering style to be applied is determined according to the number of rendering characters corresponding to each rendering style in the rendering style, and then the rendering style corresponding to the target rich text is determined according to the applied target rendering style. This can make the rendering style corresponding to the rich text a style that most of the text content in the target rich text has, and can more accurately reflect the style of the target rich text.

[0058] For ease of understanding, you can combine Figure 4A and Figure 4B To explain, Figure 4A and Figure 4B A partial schematic diagram of a target table for the implementation of the present disclosure, from Figure 4AIt can be seen that the target table may include a display interface 401, and at least one style control (including style control 402, style control 403, style control 404, style control 405, style control 406) may be displayed in the display interface. After detecting a selection operation on the formula bar, the display form of some style controls may be adjusted, such as Figure 4B As shown, the style control 403 and the style control 405 in the display interface 401 are adjusted; this also makes it easier for the user to know which styles the target rich text has.

[0059] In some embodiments, in response to receiving the first style changing instruction, the style of the unit rich text and the style of the target rich text are changed accordingly based on an instruction of the first style changing instruction.

[0060] Here, the first style changing instruction can be used to change the style of the cell rich text.

[0061] As an example, when the style of the cell rich text is changed, the style of the target rich text will also change accordingly. In this way, when the user changes the style of the cell rich text, the style of the text content in the selected cell can also be consistent with the text style in the formula bar, thereby making the target table more regular as a whole.

[0062] As an example, the style of the target rich text can also be changed using a rich text editor. For example, a rendering change instruction can be generated according to the style change of the unit rich text, and the last rendering result can be changed according to the rendering change instruction. Then, the style of the target rich text can be changed according to the changed rendering result. Of course, in a specific implementation, how to change the style of the target rich text can also be selected according to the actual situation, and how to change the style of the target rich text is not determined here.

[0063] In some embodiments, the target table may include a display interface, and the display interface may include at least one style control, each style control is used to indicate a rendering style; at this time, the first style change instruction may be generated in the following manner: based on a trigger operation on the displayed style control, the first style change instruction is generated.

[0064] As an example, a style control is shown, so that the user can trigger the style control to achieve personalized style changes for the text content in the selected cell, which not only makes it easy for the user to change the style, but also makes it easy for the user to customize the style.

[0065] In some embodiments, in response to receiving the second style changing instruction, the style of the target rich text and the style of the unit rich text are correspondingly changed based on an instruction of the second style changing instruction.

[0066] Here, the second style change instruction is used to change the style of the target rich text.

[0067] As an example, you can also directly input the second style change instruction to directly change the style of the target rich text; and after the style of the target rich text is changed, the style of the corresponding cell rich text will also be changed accordingly. In this way, the target table can also be made more regular.

[0068] In some embodiments, the second style change instruction can be generated in the following manner: in response to detecting a selection operation on the formula bar, an editing operation interface corresponding to the rich text editor is displayed; based on a selection operation on an editing icon in the editing operation interface, the above-mentioned second format change instruction is generated.

[0069] Here, the editing operation interface includes at least one editing icon.

[0070] As an example, since the style rendering of the target rich text can be completed using a rich text editor, after detecting a selection operation on the formula bar, the editing operation interface corresponding to the rich text editor can be displayed, and a second style change instruction can be generated based on the user's selection operation on the editing image in the rich text editing operation page.

[0071] It can be seen that when a cell is selected, the user can enter the first style change instruction to make corresponding changes to the cell rich text style and the target rich text style. When the formula bar is selected, the user can enter the second style change instruction to make corresponding changes to the cell rich text style and the target rich text style. In this way, it can make it more convenient for users to change the cell rich text style and the target rich text style.

[0072] In some embodiments, the target table may be an online table. When the target table is an online table, the cells are usually small. At this time, the cell rich text in the selected cell has the same style as the target rich text, which can also facilitate users to better browse the cells (for example, the cell only displays part of the content, while the formula bar can display all the contents in the selected cell, and the style of the displayed content is also the same as the style of the text content in the cell).

[0073] In some embodiments, after the style control is displayed on the display interface, if the formula bar is selected, the display interface may not display the operation page of the rich text editor. Only when the user triggers the style control, the rendering style is determined according to the style control triggered by the user, and then a rendering instruction that can be recognized by the rich text editor can be generated according to the rendering style. After that, the rich text editor can be used to perform style rendering on the text content according to the instructions of the rendering instructions, thereby realizing the change of the target rich text style. Correspondingly, when the style of the target rich text is changed, the style of the unit rich text can also be changed accordingly.

[0074] Further references Figure 5 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a content display device, and the device embodiment is Figure 1 Corresponding to the content display method embodiment shown, the device can be specifically applied to various electronic devices.

[0075] like Figure 5 As shown, the content display device of this embodiment includes: a first determination unit 501, which is used to obtain the text content of the cell rich text in the selected cell and determine the style of the above-mentioned cell rich text in response to detecting a selection operation on a cell in a target table; a generation unit 502, which is used to generate a target rich text for display in the formula bar of the above-mentioned target table based on the text content of the above-mentioned cell rich text and the style of the above-mentioned cell rich text, wherein the style of the above-mentioned target rich text is the same as the style of the above-mentioned cell rich text; a display unit 503, which is used to display the above-mentioned target rich text in the formula bar of the above-mentioned target table.

[0076] In some embodiments, the above-mentioned generation unit 502 is also specifically used to: generate style rendering instructions according to the style of the above-mentioned unit rich text; input the above-mentioned style rendering instructions and the above-mentioned text content into the rich text editor; wherein the above-mentioned rich text editor is used to perform style rendering on the above-mentioned text content based on the instructions of the above-mentioned style rendering instructions; and generate the above-mentioned target rich text based on the rendering result of the above-mentioned rich text editor for the above-mentioned text content.

[0077] In some embodiments, the target table includes a display interface, the display interface includes at least one style control, each style control is used to indicate a rendering style, and the device also includes a second determination unit 504, which is used to determine the rendering style corresponding to the target rich text in response to detecting a selection operation on the formula bar; and adjust the display form of the style control corresponding to each determined rendering style in the display interface.

[0078] In some embodiments, the second determination unit 504 is further specifically used to obtain a rendering style applied when the rich text editor renders the text content; determine at least one applied target rendering style based on the number of rendering characters corresponding to each rendering style in the applied rendering style; and determine a rendering style corresponding to the target rich text based on the at least one applied target rendering style.

[0079] In some embodiments, the above-mentioned device also includes a changing unit 505, which is used to make corresponding changes to the style of the above-mentioned unit rich text and the style of the above-mentioned target rich text based on the instructions of the above-mentioned first style change instruction in response to receiving the first style change instruction, wherein the above-mentioned first style change instruction is used to change the style of the above-mentioned unit rich text.

[0080] In some embodiments, the target table includes a display interface, which includes at least one style control, each style control is used to indicate a rendering style; and the changing unit 505 is specifically used to generate the first style changing instruction based on a trigger operation on the displayed style control.

[0081] In some embodiments, the change unit 505 is specifically used to respond to receiving a second style change instruction, and based on the instructions of the second style change instruction, make corresponding changes to the style of the target rich text and the style of the unit rich text, wherein the second style change instruction is used to change the style of the target rich text.

[0082] In some embodiments, the above-mentioned change unit 505 is also specifically used to display an editing operation interface corresponding to the rich text editor in response to detecting a selection operation on the above-mentioned formula bar, wherein the above-mentioned editing operation interface includes at least one editing icon; based on the selection operation on the editing icon in the editing operation interface, generate the above-mentioned second style change instruction.

[0083] In some embodiments, the style of the rich text includes at least one of the following: font, glyph, hyperlink, attachment link, and link for indicating a specific user.

[0084] Please refer to Figure 6 , Figure 6 An exemplary system architecture is shown in which the content presentation method according to an embodiment of the present disclosure can be applied.

[0085] like Figure 6As shown, the system architecture may include terminal devices 601, 602, 603, a network 604, and a server 605. The network 604 may be used to provide a medium for a communication link between the terminal devices 601, 602, 603 and the server 605. The network 604 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.

[0086] The terminal devices 601, 602, and 603 can interact with the server 605 through the network 604 to receive or send messages, etc. Various client applications, such as web browser applications, search applications, and news information applications, can be installed on the terminal devices 601, 602, and 603. The client applications in the terminal devices 601, 602, and 603 can receive user instructions and perform corresponding functions according to the user instructions, such as adding corresponding information to the information according to the user instructions.

[0087] Terminal devices 601, 602, and 603 can be hardware or software. When terminal devices 601, 602, and 603 are hardware, they can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Group Audio Layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Group Audio Layer 4) players, laptop computers, and desktop computers, etc. When terminal devices 601, 602, and 603 are software, they can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (for example, software or software modules used to provide distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.

[0088] The server 605 may be a server that provides various services, such as receiving information acquisition requests sent by the terminal devices 601, 602, and 603, acquiring display information corresponding to the information acquisition requests in various ways according to the information acquisition requests, and sending the relevant data of the display information to the terminal devices 601, 602, and 603.

[0089] It should be noted that the information processing method provided in the embodiment of the present disclosure can be executed by a terminal device, and accordingly, the content display device can be set in the terminal devices 601, 602, and 603. In addition, the information processing method provided in the embodiment of the present disclosure can also be executed by a server 605, and accordingly, the information processing device can be set in the server 605.

[0090] It should be understood that Figure 6 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0091] Reference below Figure 7 , which shows an electronic device (eg, Figure 6 The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 7 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0092] like Figure 7 As shown, the electronic device may include a processing device (e.g., a central processing unit, a graphics processor, etc.) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage device 508 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the electronic device 700 are also stored. The processing device 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0093] Typically, the following devices may be connected to the I / O interface 705: input devices 706 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 707 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 708 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 709. The communication devices 709 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although Figure 7 An electronic device having various devices is shown, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0094] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 709, or installed from the storage device 708, or installed from the ROM 702. When the computer program is executed by the processing device 701, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0095] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0096] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0097] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0098] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: in response to detecting a selection operation on a cell in a target table, obtains the text content of the cell rich text in the selected cell, and determines the style of the above-mentioned cell rich text; based on the text content of the above-mentioned cell rich text and the style of the above-mentioned cell rich text, generates a target rich text for display in the formula bar of the above-mentioned target table, wherein the style of the above-mentioned target rich text is the same as the style of the above-mentioned cell rich text; and displays the above-mentioned target rich text in the formula bar of the above-mentioned target table.

[0099] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0100] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0101] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first determination unit may also be described as a "unit for determining the style of the rich text of the above unit".

[0102] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0103] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0104] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other.

[0105] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0106] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. A content display method, characterized in that: include: In response to detecting a selection operation on a cell in a target table, obtaining text content of a cell rich text in the selected cell, and determining a style of the cell rich text; Based on the text content of the unit rich text and the style of the unit rich text, generating a target rich text for display in the formula bar of the target table, wherein the style of the target rich text is the same as the style of the unit rich text; Displaying the target rich text in a formula bar of the target table; The method also includes: in response to receiving a first style change instruction, based on an instruction of the first style change instruction, making corresponding changes to the style of the unit rich text and the style of the target rich text, wherein the first style change instruction is used to change the style of the unit rich text.

2. The method according to claim 1, characterized in that The generating, based on the text content of the unit rich text and the style of the unit rich text, a target rich text for display in the formula bar of the target table includes: Generate a style rendering instruction according to the style of the unit rich text; Inputting the style rendering instruction and the text content into a rich text editor; wherein the rich text editor is used to perform style rendering on the text content based on instructions of the style rendering instruction; The target rich text is generated based on the rendering result of the rich text editor on the text content.

3. The method according to claim 1, characterized in that The target table includes a display interface, the display interface includes at least one style control, each style control is used to indicate a rendering style; as well as The method further comprises: In response to detecting a selection operation on the formula bar, determining a rendering style corresponding to the target rich text; The display form of the style control corresponding to each determined rendering style is adjusted in the display interface.

4. The method according to claim 3, characterized in that The determining the rendering style corresponding to the target rich text includes: Get the rendering style applied when the rich text editor renders the text content; Determining at least one target rendering style to be applied according to the number of rendering characters corresponding to each rendering style in the applied rendering styles; A rendering style corresponding to the target rich text is determined according to the at least one applied target rendering style.

5. The method according to claim 1, characterized in that The target table includes a display interface, the display interface includes at least one style control, each style control is used to indicate a rendering style; and The first style change instruction is generated in the following manner: The first style changing instruction is generated based on a triggering operation on the displayed style control.

6. The method according to claim 1, characterized in that The method further comprises: In response to receiving a second style change instruction, the style of the target rich text and the style of the unit rich text are correspondingly changed based on an instruction of the second style change instruction, wherein the second style change instruction is used to change the style of the target rich text.

7. The method according to claim 6, characterized in that The second style change instruction is generated in the following way: In response to detecting a selection operation on the formula bar, displaying an editing operation interface corresponding to the rich text editor, wherein the editing operation interface includes at least one editing icon; The second style changing instruction is generated based on a selection operation on the editing icon in the editing operation interface.

8. The method according to claim 1, characterized in that The style of rich text includes at least one of the following: Fonts, font styles, hyperlinks, attachment links, links used to indicate specific users.

9. A content display device, characterized in that: include: A first determining unit is used for, in response to detecting a selection operation on a cell in a target table, obtaining text content of a cell rich text in the selected cell, and determining a style of the cell rich text; A generating unit, configured to generate a target rich text for display in a formula bar of the target table based on the text content of the unit rich text and the style of the unit rich text, wherein the style of the target rich text is the same as the style of the unit rich text; A display unit, used for displaying the target rich text in the formula bar of the target table; The device is also used to, in response to receiving a first style change instruction, make corresponding changes to the style of the unit rich text and the style of the target rich text based on an instruction of the first style change instruction, wherein the first style change instruction is used to change the style of the unit rich text.

10. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 8.

11. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.