Contents prompting methods, devices, electronic machines and memory media

By generating and presenting target rich text in the formula bar that matches the style of the selected cell's text content, the method addresses the inconsistency issue, enhancing the coherence and usability of the table.

JP7802946B2Active Publication Date: 2026-01-20BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2024544766
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2022-01-27
Filing Date
2023-01-10
Publication Date
2026-01-20
Estimated Expiration
2043-01-10

AI Technical Summary

Technical Problem

Existing content presentation methods fail to maintain consistency in the style of text content between cells and the formula bar of a table, leading to discrepancies in presentation.

Method used

A method and device that generate and present target rich text in the formula bar of a table based on the text content and style of a selected cell, ensuring the style of the target rich text matches that of the cell-rich text.

Benefits of technology

Ensures consistency in the presentation style between cells and the formula bar, enhancing the overall coherence and usability of the target table.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007802946000001
    Figure 0007802946000001
  • Figure 0007802946000002
    Figure 0007802946000002
  • Figure 0007802946000003
    Figure 0007802946000003
Patent Text Reader

Abstract

The embodiments of the present disclosure disclose a content presentation method, an apparatus, and an 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, and a 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 presented in the formula bar of the target table. This allows the style of the text content in the cell to remain the same as the style of the text content in the formula bar, making the target table more consistent as a whole.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] This application claims priority from a Chinese patent application bearing application number 202210103776.0, filed on January 27, 2022, and entitled "Content presentation method, device, electronic device and storage medium," the entire contents of which are incorporated herein by reference.

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

[0003] With the development of science and technology, people often use tables to organize various information, that is, users can input corresponding information into a table to organize the information.

[0004] When a particular table is selected by the user, the content within the table can be further presented in a formula bar above the table, where the user can also modify the content within the table. Summary of the Invention

[0005] This "Summary" section is provided to introduce concepts in a simplified form. These concepts are described in detail in the "Mode for Carrying Out the Invention" section below. "Contents of the Invention" is not intended to identify key or essential features of the claimed technology, nor is it intended to be used to limit the scope of the claimed technology.

[0006] Embodiments of the present disclosure provide a content presentation method, device, and electronic device that allows the style of text content in cells to remain the same as the style of text content in the formula bar, making the target table more consistent as a whole.

[0007] According to a first aspect, an embodiment of the present disclosure provides a content presentation method including: in response to a selection operation on a detected cell in a target table, obtaining text content of cell-rich text in a selected cell and determining a style of the cell-rich text; generating target rich text for presentation in a formula bar of the target table based on the text content of the cell-rich text and the style of the cell-rich text, wherein the style of the target rich text is the same as the style of the cell-rich text; and presenting the target rich text in the formula bar of the target table.

[0008] According to a second aspect, an embodiment of the present disclosure provides a content presentation device comprising: a first determination means for obtaining text content of cell-rich text in a selected cell in response to a selection operation on a detected cell in a target table and determining a style of the cell-rich text; a generation means for generating target rich text for presentation in a formula bar of the target table based on the text content of the cell-rich text and the style of the cell-rich text, wherein the style of the target rich text is the same as the style of the cell-rich text; and a presentation means for presenting the target rich text in the formula bar of the target table.

[0009] According to a third aspect, an embodiment of the present disclosure provides an electronic device comprising one or more processors and 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 are caused to realize the content presentation method described in the first aspect.

[0010] According to a fourth aspect, an embodiment of the present disclosure provides a computer-readable medium having a computer program stored thereon, the computer-readable medium implementing the content presentation method described in the first aspect when the program is executed by a processor. [Brief explanation of the drawings]

[0011] The above and other features, advantages, and aspects of the embodiments herein will become more apparent with reference to the accompanying drawings and the following specific embodiments. It should be understood that the same or identical reference numerals refer to the same or identical elements throughout the accompanying drawings. The drawings are schematic, and the proportions of the dimensions do not necessarily correspond to the actual objects and elements.

[0012] [Figure 1] FIG. 1 is a flow diagram of one embodiment of a content presentation method according to the present disclosure. [Figure 2] 3 is a schematic diagram of a portion of a goal table of some embodiments of a content presentation method according to the present disclosure. [Figure 3A] 10A and 10B are schematic diagrams of portions of goal tables for some other embodiments of content presentation methods according to the present disclosure. [Figure 3B] 10A and 10B are schematic diagrams of portions of goal tables for some other embodiments of content presentation methods according to the present disclosure. [Figure 3C] 10A and 10B are schematic diagrams of portions of goal tables for some other embodiments of content presentation methods according to the present disclosure. [Figure 3D] 10A and 10B are schematic diagrams of portions of goal tables for some other embodiments of content presentation methods according to the present disclosure. [Figure 3E] 10A and 10B are schematic diagrams of portions of goal tables for some other embodiments of content presentation methods according to the present disclosure. [Figure 4A] 10A and 10B are schematic diagrams of portions of goal tables for some other embodiments of content presentation methods according to the present disclosure. [Figure 4B] 10A and 10B are schematic diagrams of portions of goal tables for some other embodiments of content presentation methods according to the present disclosure. [Figure 5] 1 is a schematic diagram illustrating a configuration of an embodiment of a content presentation device according to the present disclosure. [Figure 6] 1 is an exemplary system architecture to which the content presentation method of one embodiment of the present disclosure can be applied. [Figure 7] 1 is a schematic diagram illustrating a basic configuration of an electronic device provided according to an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE INVENTION

[0013] Hereinafter, embodiments of the present disclosure will be described in more detail with reference to the accompanying drawings. Although the accompanying drawings show specific embodiments of the present disclosure, it should be understood that the present disclosure can be realized in various forms and should not be construed as being limited to the embodiments described herein, but rather that these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the accompanying drawings and embodiments of the present disclosure are for illustrative purposes only and do not limit the scope of protection of the present disclosure.

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

[0015] As used herein, the term "comprises" and variations thereof are open-ended, i.e., including but not limited to. The term "based on" means "based at least in part on." The term "in one embodiment" means "at least one embodiment," the term "in another embodiment" means "at least one other embodiment," and the term "in some embodiments" means "at least some embodiments." Definitions of other terms are provided below.

[0016] It should be noted that the concepts of "first," "second," etc. referred to in this disclosure are used only to distinguish between different devices, modules, or units, and are not used to limit the order or interdependence of functions performed by these devices, modules, or units.

[0017] It should be noted that the modifications "one" and "multiple" referred to in this disclosure are intended to be exemplary rather than limiting, and should be understood by those skilled in the art as "one or more" unless the context dictates otherwise.

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

[0019] The following description will be given with reference to FIG. 1. FIG. 1 shows a flow chart of an embodiment of a content presentation method according to the present disclosure. The content presentation method can be applied to a terminal device. As shown in FIG. 1, the content presentation method includes the following steps: In step 101, in response to a selection operation on a detected cell in the target table, the text content of the cell-rich text in the selected cell is obtained, and a style of the cell-rich text is determined.

[0020] For example, the execution entity of the content presentation method may detect a user's selection operation on a target table cell. The selection operation may be, but is not limited to, a click operation, a long press operation, a double click operation, etc. After the execution entity of the content presentation method detects the selection operation on a specific cell, it may determine the cell-rich text in the selected cell, obtain the text content of the cell-rich text, and determine the style of the cell-rich text.

[0021] For example, a target table may include at least one cell, and the content recorded in different cells of the target table may be different, and the style of the content in different cells may also be different. For example, a cell may contain text content, links, hyperlinks, etc. That is, when the content in the target table has a certain style, the content with a certain style can 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 may be different).

[0022] As an example, text with multiple styles can be understood as rich text. Cell rich text may include the 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, so the rich text in different cells may be different.

[0023] In step 102, generate target rich text for presentation in the formula bar of the target table based on the text content of the cell rich text and the style of the cell rich text.

[0024] Here, the style of the target rich text and the style of the cell rich text are the same, so the text content presented in the formula bar of the target table may have a certain style.

[0025] For example, the execution entity of the content presentation method can generate a target rich text based on the text content of the cell-rich text and the style of the cell-rich text. For example, the execution entity of the content presentation method can input the text content of the cell-rich text and the style of the cell-rich text into a rich text editor, and after performing corresponding format conversion on the result output by the rich text editor, generate a target rich text for presentation in the formula bar.

[0026] As an example, the formula bar of a table is used to synchronously present the text content in a selected cell.

[0027] As an example, when the style of cell-rich text and the style of target-rich text are the same, it can be understood that the style of each cell-rich text is the same as the style of each target-rich text, for example, glyphs, font size, presence or absence of link indications, font color, etc.

[0028] In the related art, there are differences in the presentation formats corresponding to the cells and formula bar of the target table. For example, the format presented in the cell cannot be presented in the formula bar. Therefore, in the related art, only the text content is presented in the formula bar of the table, but the style of the text content presented in the formula bar is not reflected. For ease of understanding, the related art can be understood with reference to FIG. 2. FIG. 2 shows a portion of an area of ​​a target table. As can be seen from FIG. 2, the text content in a selected cell 201 can be presented in the formula bar 202, but the style of the text content in the cell is not presented in the formula bar. That is, the glyph style, font size, style, etc. of the selected cell 201 are not reflected in the formula bar 202.

[0029] The present application generates target rich text for presentation 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, and the format of the target rich text can be matched to a format compatible with the formula bar, so that the text content presented in the formula bar can also be given a certain style.

[0030] For example, there are many ways to generate target rich text for display in the formula bar of a target table, and a reasonable selection can be made according to the actual situation. For example, the target rich text can be obtained by using a rich text editor to render the text content of the cell rich text and converting the rendered text content into text content that can be displayed in the formula bar. Alternatively, for example, the target rich text can be obtained directly by using a preset format conversion model (used to convert the format in a cell into a format that can be displayed in the formula bar).

[0031] In step 103, the target rich text is presented in the formula bar of the target table.

[0032] As an example, after generating the target rich text, the content presentation method implementor can present the target rich text in the formula bar of the target table.

[0033] As an example, because the style of the target rich text and the style of the cell rich text are the same, the text content and style in the selected cell can be reflected in the formula bar, making the target table more consistent as a whole.

[0034] In an embodiment of the present application, when a selection operation on a cell in a target table is detected, 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. Based on the text content and style of the obtained cell-rich text, a target rich text can be generated, the style of the target rich text and the style of the cell-rich text are the same, and the target rich text can be presented in the formula bar of the target table, so that the content style in the formula bar of the target table can be consistent with the content style of the selected cell, and the target table can be more consistent as a whole.

[0035] Furthermore, if the cell-rich text contains hyperlinks, attachment links, links to specific users (for example, @XXX links), etc., the user can trigger these links in the selected cell to open the pages corresponding to these links, as well as trigger these links in the formula bar to open the pages corresponding to these links. In other words, various links in the target table can be triggered more easily.

[0036] To facilitate understanding of the presentation method of the present application, reference will be made to Figures 3A to 3D. Figures 3A to 3D can be understood as schematic diagrams of a portion of a target table in an embodiment provided by the present application. As can be seen from Figures 3A to 3D, the style of the cell rich text in the selected cell may be exactly the same as the style of the target rich text presented in the formula bar 301.

[0037] In some embodiments, the rich text style includes at least one of a font, a glyph, a hyperlink, an attachment link, and a link to point to a particular user.

[0038] For ease of understanding, please refer to Figure 3E, which is a schematic diagram of a portion of a target table of an embodiment provided by the present application. In Figure 3E, the style of the cell-rich text in cell 302 may include a font, a glyph, and a hyperlink, the style of the cell-rich text in cell 303 may include a font, a glyph, and a link for indicating a specific user, and the style of the cell-rich text in cell 304 may include a font, a glyph, and an attachment link.

[0039] In some embodiments, step 102 (generating target rich text for presentation in the formula bar of the 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 the target rich text based on the rendering result of the above text content by the rich text editor.

[0040] Here, the rich text editor is used to style-render the text content based on the instructions of the style-rendering command.

[0041] As an example, a presentation format that is suitable for a cell may not be suitable for the formula bar, making it necessary to generate target rich text that can be presented in the formula bar.

[0042] For example, a rich text editor can be used to generate a target rich text. For example, a rich text editor can be pre-configured. When a specific cell is selected, the text content and style of the cell-rich text in the cell can be obtained, the style of the cell-rich text can be identified, a rendering command can be generated to instruct the rich text editor on how to render it, and then both the rendering command and the text content can be input into the rich text editor. The rich text editor can style-render the text content to obtain a rendering result.

[0043] It should be noted that a specific rendering result can be directly displayed in the formula bar. In this case, the rendering result can be understood as a target rich text. For a specific rendering result, format conversion may also be required to obtain the target rich text. If the rendering result needs to be formatted, the format conversion method can be determined based on the format suitable for the formula bar. Of course, in a specific embodiment, the specific conversion method to obtain the target rich text corresponding to the rendering result may be determined according to actual circumstances.

[0044] In some embodiments, the target table may include a presentation interface including at least one style control for indicating a rendering style, where, in response to a detected pick operation on the formula bar, a rendering style corresponding to the target rich text is determined and a presentation format of the style control corresponding to each determined rendering style in the presentation interface is adjusted.

[0045] As an example, by adjusting the presentation format of the style control corresponding to each determined rendering style, it is possible to make it easier for the user to understand what style the target rich text has, and to easily re-edit the target rich text.

[0046] For example, the specific adjustment of the presentation format of the style control can be set according to the actual situation, but the present invention does not limit the adjustment of the presentation format, for example, the style control can be enlarged, the color can be changed, or an identification layer can be added.

[0047] In some embodiments, the rendering style corresponding to the target rich text can be determined as follows: obtain rendering styles to be applied when the rich text editor renders text content; determine at least one target rendering style to be applied based on the number of rendering characters corresponding to each rendering style among the applied rendering styles; and determine a rendering style corresponding to the target rich text based on the at least one applied target rendering style.

[0048] For example, when editing text content using a rich text editor, multiple rendering styles may be used. For example, in the generated target rich text, different characters may have different font types, different font colors, and may combine several alphabets to form a link (e.g., a link such as "www.baidu.com" may be formed by combining alphabets). In this case, multiple rendering styles must be used, and the number of rendered characters corresponding to each rendering style may be recorded. Different rendering styles may have different numbers of rendered characters, and some rendering styles may have a large number of rendered characters while others have a small number of rendered characters. Therefore, rendering styles with a large number of corresponding characters or rendering styles that apply the majority of alphabets may be selected and determined as target rendering styles to be applied. The target rendering styles may then be used to determine the rendering style corresponding to the target rich text.

[0049] As an example, the target rendering style to be applied is determined based on the number of rendering characters corresponding to each rendering style among the rendering styles, and the rendering style corresponding to the target rich text is determined based on the target rendering style to be applied so that the rendering style corresponding to the rich text is the style of the majority of the text content in the target rich text, thereby more accurately reflecting the style of the target rich text.

[0050] For ease of understanding, the description will be made with reference to FIGS. 4A and 4B. FIGS. 4A and 4B are schematic diagrams of a portion of a target table according to an embodiment of the present disclosure. As can be seen from FIG. 4A, the target table may include a presentation interface 401. At least one style control (including a tile control 402, a style control 403, a style control 404, a style control 405, and a style control 406) may be presented in the presentation interface. When a selection operation on the formula bar is detected, the presentation format of some of the style controls may be adjusted. As shown in FIG. 4B, the style control 403 and the style control 405 in the presentation interface 401 are adjusted. This allows the user to easily understand the style of the target rich text.

[0051] In some embodiments, in response to receiving the first style change command, the style of the cell rich text and the style of the target rich text are correspondingly changed as instructed by the first style change command.

[0052] Here, the first style change command is used to change the style of the cell-rich text.

[0053] For example, when the style of cell-rich text is changed, the style of target-rich text is changed accordingly, so that after a user changes the style of cell-rich text, the style of the text content in the cell can also be selected to match the text style in the formula bar, making the target table more consistent as a whole.

[0054] For example, a rich text editor can be used to change the style of the target rich text. For example, a modification rendering command can be generated according to the style change of the cell rich text, and the previous rendering result can be modified according to the modification rendering command, thereby changing the style of the target rich text based on the modified rendering result. Of course, in a specific embodiment, the specific way of modifying the style of the target rich text can be selected according to the actual situation. Here, how to modify the style of the target rich text is not determined.

[0055] In some embodiments, the target table includes presentation interfaces with at least one style control each for indicating a rendering style, and the first style change command is generated based on a trigger operation on the presented style control.

[0056] As an example, when a style control is presented, the user can trigger the style control to customize and restyle the text content in the selected cell, allowing the user to not only easily change the style, but also to easily customize the style.

[0057] In some embodiments, in response to receiving the second style change command, the style of the target rich text and the style of the cell rich text are correspondingly changed as instructed in the second style change command.

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

[0059] For example, you can directly input a second style change command to directly change the style of the target rich text. After the style of the target rich text is changed, the style corresponding to the cell rich text will also be changed accordingly, which can make the target table more consistent.

[0060] In some embodiments, the second style change command can be generated as follows: in response to detecting a selection operation on the formula bar, an editing operation interface corresponding to the rich text editor is presented, and the above-mentioned second style change command is generated based on a selection operation on an editing icon in the editing operation interface.

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

[0062] As an example, the style rendering of the target rich text can be completed using a rich text editor, so that when a selection operation on the formula bar is detected, an editing operation interface corresponding to the rich text editor is presented, and a second style change command is generated based on the user's selection operation on the editing piece on the rich text editing operation page.

[0063] As can be seen, when a cell is selected, the user can input a first style change command to change the cell rich text style and the target rich text style accordingly. When the formula bar is selected, the user can input a second style change command to change the cell rich text style and the target rich text style accordingly. This allows the user to change the cell rich text style and the target rich text style more easily. In some embodiments, the target table may be an online table. When the target table is an online table, the cells are generally small. In this case, the style of the cell rich text in the selected cell and the target rich text are the same, so the user can better browse the cell (e.g., the cell presents only a portion of the content, but the formula bar can present all of the content in the selected cell, and the style of the presented content is also the same as the style of the text content in the cell).

[0064] In some embodiments, when the formula bar is selected after the style control is presented in the presentation interface, the presentation interface does not present the operation page of the rich text editor, but determines the rendering style based on the style control triggered by the user only when the user triggers the style control. Then, the rich text editor generates an identifiable rendering command based on the rendering style, so that the rich text editor can use the rich text editor to style-render the text content according to the instructions of the rendering command, and can also change the target rich text style. Correspondingly, after the style of the target rich text is changed, the style of the cell rich text can also be changed accordingly.

[0065] Furthermore, with reference to Fig. 5, the present disclosure provides an embodiment of a content presentation device to realize the methods shown in the above figures. This device embodiment corresponds to the content presentation method shown in Fig. 1, and can be specifically applied to various electronic devices.

[0066] As shown in Figure 5, the content presentation device of this embodiment includes a first determination means 501 that, in response to a selection operation for a detected cell in a target table, acquires the text content of the cell-rich text in the selected cell and determines the style of the cell-rich text; a generation means 502 that generates target rich text to be presented in the formula bar of the target table based on the text content of the cell-rich text and the style of the cell-rich text, wherein the style of the target rich text is the same as the style of the cell-rich text; and a presentation means 503 that presents the target rich text in the formula bar of the target table.

[0067] In some embodiments, the above-mentioned generating means 502 is further used to specifically generate a style rendering command based on the style of the cell-rich text, input the style rendering command and the text content into a rich text editor for style-rendering the text content based on the instructions of the style rendering command, and generate the target rich text based on the rendering result of the text content by the rich text editor.

[0068] In some embodiments, the target table includes a presentation interface having at least one style control for indicating a rendering style, and the device further includes a second determination means 504 for determining a rendering style corresponding to the target rich text in response to detecting a selection operation on the formula bar, and adjusting a presentation format of a style control in the presentation interface corresponding to each determined rendering style.

[0069] In some embodiments, the second determining means 504 is further used to specifically obtain rendering styles to be applied when rendering the text content by a rich text editor, determine at least one target rendering style to be applied based on the number of rendering characters corresponding to each rendering style among the applied rendering styles, and determine a rendering style corresponding to the target rich text according to the at least one applied target rendering style.

[0070] In some embodiments, the above-mentioned device further comprises a modification means 505 for, in response to receiving a first style modification command, correspondingly modifying the style of the cell-rich text and the style of the target rich text in accordance with instructions in the first style modification command for modifying the style of the cell-rich text.

[0071] In some embodiments, the target table includes presentation interfaces each having at least one style control for indicating a rendering style, and the modification means 505 is further specifically used to generate the first style modification command based on a trigger operation on the presented style control.

[0072] In some embodiments, the modification means 505 is specifically further used, in response to receiving a second style modification command, to correspondingly modify the style of the target rich text and the style of the cell rich text in accordance with instructions in the second style modification command for modifying the style of the target rich text.

[0073] 8. In some embodiments, the modifying means 505 specifically presents an editing operation interface corresponding to a rich text editor in response to detecting a selection operation on the formula bar, the editing operation interface having at least one editing icon, and is further used to generate the second style modification command based on a selection operation on the editing icon in the editing operation interface.

[0074] In some embodiments, the rich text style includes at least one of a font, a glyph, a hyperlink, an attachment link, and a link to point to a specific user. Please refer to Figure 6. Figure 6 illustrates that the content presentation method of one embodiment of the present disclosure can be applied to an exemplary system architecture.

[0075] 6, the system architecture may include terminal devices 601, 602, and 603, a network 604, and a server 605. The network 604 is used as a medium to provide a communication link between the terminal devices 601, 602, and 603 and the server 605. The network 604 may include various connection types, such as wired or wireless communication links or fiber optic cables. The terminal devices 601, 602, and 603 can interact with the server 605 via the network 604 to receive or send messages, etc. Various client applications, such as a web browser application, a search application, and a news and information application, can be installed on the terminal devices 601, 602, and 603. The client applications on the terminal devices 601, 602, and 603 can receive user commands and complete corresponding functions according to the user commands, such as adding corresponding information according to the user commands.

[0076] The terminal devices 601, 602, and 603 may be hardware or software. If the terminal devices 601, 602, and 603 are hardware, they may be various electronic devices that have a display screen and support a web browser, including, but not limited to, smartphones, tablet computers, electronic paper, MP3 players (Moving Picture Experts Group Audio Layer III, a moving picture expert compressed standard audio level 3), MP4 (Moving Picture Experts Group Audio Layer IV, a moving picture expert compressed standard audio level 4) players, laptop computers, and desktop computers. If the terminal devices 601, 602, and 603 are software, they may be installed in the above electronic devices. They may be configured as multiple software programs or software modules (e.g., software programs or software modules that provide distributed services) or as a single software program or software module. This specification does not particularly limit the scope of the present invention.

[0077] The server 605 is a server that provides various services, for example, by receiving information acquisition requests transmitted from the terminal devices 601, 602, and 603 and acquiring presentation information corresponding to the information acquisition requests in various ways in response to the information acquisition requests. Data related to the presentation information is transmitted to the terminal devices 601, 602, and 603.

[0078] The information processing method provided by the embodiment of the present disclosure is executed by a terminal device. Correspondingly, the content presentation device may be provided in the present terminal device 601, 602, 603. Furthermore, the information processing method provided by the embodiment of the present disclosure may be executed by the server 605. Correspondingly, the information processing device may be provided in the server 605.

[0079] The number of terminal devices, networks, and servers in Figure 6 is for illustrative purposes only. It should be understood that any number of terminal devices, networks, and servers may be used as needed.

[0080] The following description will be made with reference to FIG. 7. FIG. 7 shows a schematic diagram of a configuration suitable for realizing an electronic device (e.g., the terminal device or server of FIG. 6) according to an embodiment of the present disclosure. Examples of terminal devices according to an embodiment of the present disclosure include, but are not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), and in-vehicle terminals (e.g., in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. The electronic device shown in FIG. 7 is merely an example and does not limit the functionality or scope of use of the embodiment of the present disclosure.

[0081] As shown in FIG. 7 , the electronic device may include a processing unit (e.g., a central processor, a graphics processor, etc.) 701 that can perform various appropriate operations and processes based on programs stored in a read-only memory (ROM) 702 or programs loaded from the storage device 508 into a random access memory (RAM) 703. The RAM 703 further stores various programs and data necessary for the operation of the electronic device 700. The processing unit 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. Typically, the I / O interface 705 may be connected to input devices 706, such as a touch screen, touch panel, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 707, such as a liquid crystal display (LCD), speaker, vibrator, etc.; storage device 508, such as a magnetic tape, hard disk, etc.; and a communication device 709. The communications device 709 can allow the electronic device to communicate wirelessly or via wires with other devices to exchange data. While Figure 7 illustrates an electronic device with various devices, it should be understood that it need not implement or include all of the devices shown. More or fewer devices may alternatively be implemented or included.

[0082] In particular, according to embodiments of the present disclosure, the processes described with reference to the flow diagrams may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program including program code for performing the methods shown in the flow diagrams. In such embodiments, the computer program may be downloaded or installed from a network via the communication device 709, 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 methods of the embodiments of the present disclosure are performed.

[0083] It should be noted that the computer-readable medium of the present disclosure may be a computer-readable signal medium, a computer-readable storage medium, or any combination thereof. The computer-readable storage medium may be, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of the computer-readable storage medium include, but are not limited to, an electrical connector having 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 thereof. In the present disclosure, the computer-readable storage medium may be any tangible medium that includes or stores a program usable by or in combination with an instruction execution system, device, or appliance. In the present disclosure, the computer-readable signal medium may comprise a data signal carrying computer-readable program code, propagated in baseband or as part of a carrier. Such a propagated data signal may take various forms, including, but not limited to, an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transmit a program usable by or in combination with an instruction execution system, apparatus, or device. The program code contained in the computer-readable medium may be transmitted over any suitable medium, including, but not limited to, electrical wire, fiber optic cable, RF (radio), etc., or any suitable combination of the above.

[0084] In some embodiments, clients and servers may communicate using any known or future-developed network protocol, such as, for example, HTTP (Hyper Text Transfer Protocol), and may be connected to one another via any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include area networks ("LANs"), wide area networks ("WANs"), the World Wide Web (e.g., the Internet), and end-to-end networks (e.g., ad hoc end-to-end networks), and any known or future-developed network.

[0085] The computer-readable medium may be included in the electronic device, or may exist separately from the electronic device.

[0086] The above-mentioned computer-readable medium stores a computer program, and when the program is executed by a processor, the electronic device, in response to a selection operation on a detected cell in a target table, obtains the text content of the cell-rich text in the selected cell, determines a style of the cell-rich text, and generates target rich text for presentation in the formula bar of the target table based on the text content of the cell-rich text and the style of the cell-rich text, wherein the style of the target rich text is the same as the style of the cell-rich text, and presents the target rich text in the formula bar of the target table.

[0087] In some embodiments, generating target rich text for presentation in the formula bar of the target table based on the text content of the cell-rich text and the style of the cell-rich text includes 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 for style-rendering the text content based on instructions in the style rendering instruction, and generating the target rich text based on the rendering result of the text content by the rich text editor.

[0088] In some embodiments, the target table includes a presentation interface having at least one style control for indicating a rendering style, and when the one or more programs are executed by the electronic device, the electronic device determines a rendering style corresponding to the target rich text in response to detecting a selection operation on the formula bar, and adjusts the presentation format of the style control corresponding to each determined rendering style in the presentation interface.

[0089] In some embodiments, determining a rendering style corresponding to the target rich text includes obtaining rendering styles to be applied when the text content is rendered by a rich text editor; determining at least one target rendering style to be applied based on a number of rendered characters corresponding to each of the applied rendering styles; and determining a rendering style corresponding to the target rich text in response to the at least one applied target rendering style.

[0090] In some embodiments, when the one or more programs are executed by an electronic device, the electronic device, in response to receiving a first style change command, correspondingly changes the style of the cell-rich text and the style of the target rich text in accordance with instructions in the first style change command for changing the style of the cell-rich text.

[0091] In some embodiments, the target table includes presentation interfaces with at least one style control each for indicating a rendering style, and the first style change command is generated based on a trigger operation on the presented style control.

[0092] In some embodiments, when the one or more programs are executed by an electronic device, in response to receiving a second style change command, the electronic device correspondingly changes the style of the target rich text and the style of the cell rich text in accordance with instructions in the second style change command for changing the style of the target rich text.

[0093] In some embodiments, the second style change command is generated as follows: in response to detecting a selection operation on the formula bar, an editing operation interface corresponding to a rich text editor is presented, and the second style change command is generated based on a selection operation on an edit icon in the editing operation interface.

[0094] In some embodiments, the rich text style includes at least one of a font, a glyph, a hyperlink, an attachment link, and a link to point to a particular user.

[0095] Computer program code for carrying out the operations of the present disclosure can be written in one or more program programming languages, or a combination thereof, including, but not limited to, object-oriented program programming languages ​​such as Java, Smalltalk, C++, etc., as well as conventional procedural program programming languages ​​such as "C" or similar program programming languages. The program code may be executed entirely on the user computer, partially on the user computer, as a standalone software package, partially on the user computer and partially on a remote computer, or entirely on a remote computer or server. When a remote computer is used, the remote computer may be connected to the user computer via any type of network, such as a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet via an Internet Service Provider).

[0096] The flow diagrams and block diagrams in the accompanying drawings illustrate possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flow diagrams or block diagrams may represent a module, program segment, or portion of code, including one or more executable instructions for implementing a given logical function. It should also be noted that, in some alternative embodiments, the functions shown in the blocks may occur in a different order than that shown in the accompanying drawings. For example, two blocks shown in succession may, in fact, be executed substantially in parallel, but may be executed in the reverse order, depending on the related functionality. It should be noted that each block in the block diagrams and / or flow diagrams, and combinations of blocks in the block diagrams and / or flow diagrams, may be implemented by a system of dedicated hardware that performs a given function or operation, or by a combination of dedicated hardware and computer instructions.

[0097] The units described in the embodiments of the present disclosure may be implemented in software or hardware. Here, the names of the units may not limit the units themselves. For example, the first determining means may be described as "a unit that determines the rich text style of the above unit."

[0098] The functionality described herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary 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), etc.

[0099] In the context of this disclosure, a machine-readable medium may be a tangible medium capable of containing or storing a program used by or in combination with an instruction execution system, device, or machine. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. Computer-readable media include, but are not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of these contents. More specific examples of machine-readable storage media include an electrical connection of 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.

[0100] The content presentation method, device, and electronic device provided by the embodiments of the present disclosure can, when a selection operation on a cell in a target table is detected, obtain the text content of the cell-rich text in the selected cell, obtain the style of the cell-rich text, and generate target rich text based on the obtained text content and style of the cell-rich text, where the style of the target rich text is the same as the style of the cell-rich text, and present the target rich text in the formula bar of the target table, thereby making the target table more consistent as a whole by keeping the style of the text content in the cell the same as the style of the text content in the formula bar.

[0101] Furthermore, if the cell-rich text contains hyperlinks, attachment links, links to specific users (for example, @XXX links), etc., the user can trigger these links in the selected cell to open the pages corresponding to these links, as well as trigger these links in the formula bar to open the pages corresponding to these links. In other words, various links in the target table can be triggered more easily.

Claims

1. In response to detecting a select operation for a cell in a target table, obtaining text content of cell-rich text in the selected cell and determining a style for the cell-rich text; generating target rich text for presentation in a formula bar of the target table based on the text content of the cell-rich text and a style of the cell-rich text, wherein the style of the target rich text is the same as the style of the cell-rich text, the formula bar and the selected cell simultaneously present the content in the selected cell, and the formula bar supports modifying the content in the selected cell; presenting the target rich text in a formula bar of the target table.

2. generating target rich text for presentation in the formula bar of the target table based on the text content of the cell-rich text and the style of the cell-rich text, generating style rendering instructions based on the style of the cell-rich text; inputting the style rendering directive and the text content into a rich text editor for style rendering the text content based on instructions in the style rendering directive; and generating the target rich text based on a rendering result of the text content by the rich text editor.

3. the target table includes presentation interfaces each having at least one style control for indicating a rendering style; determining a rendering style corresponding to the target rich text in response to detecting a selection operation on the formula bar; The method of claim 1 , further comprising: adjusting, in the presentation interface, a presentation format of a style control corresponding to each determined rendering style.

4. determining a rendering style corresponding to the target rich text, obtaining a rendering style to be applied when rendering said text content by a rich text editor; determining at least one target rendering style to be applied based on a number of rendering characters corresponding to each rendering style among the applied rendering styles; and determining a rendering style corresponding to the target rich text according to the at least one applied target rendering style.

5. A content presentation method as described in claim 1, further comprising a step of, in response to receiving a first style change command, correspondingly changing the style of the cell-rich text and the style of the target rich text in accordance with instructions in the first style change command for changing the style of the cell-rich text.

6. the target table includes presentation interfaces each having at least one style control for indicating a rendering style; The content presentation method according to claim 5 , wherein the first style change command is generated based on a trigger operation on a presented style control.

7. A content presentation method as described in claim 1, further comprising a step of, in response to receiving a second style change command, correspondingly changing the style of the target rich text and the style of the cell rich text in accordance with instructions in the second style change command for changing the style of the target rich text.

8. The step of generating the second style change command includes: presenting an editing operation interface corresponding to a rich text editor in response to detecting a selection operation on the formula bar, the editing operation interface comprising at least one editing icon; The content presentation method according to claim 7 , further comprising: generating the second style change command based on a selection operation on an edit icon in an edit operation interface.

9. Rich text styles are The content presentation method of claim 1 , further comprising at least one of a font, a glyph, a hyperlink, an attachment link, and a link for designating a specific user.

10. A first determination means for obtaining text content of cell-rich text in a selected cell in response to detecting a selection operation for a cell in a target table and determining a style of the cell-rich text; a generating means for generating target rich text for presentation in a formula bar of the target table based on text content of the cell-rich text and a style of the cell-rich text, wherein the style of the target rich text is the same as the style of the cell-rich text, the formula bar and the selected cell simultaneously present the content in the selected cell, and the formula bar supports modifying the content in the selected cell; a presentation means for presenting the goal rich text in a formula bar of the goal table.

11. 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 programs cause the one or more processors to implement the content presentation method according to any one of claims 1 to 9. electronic equipment.

12. A computer-readable medium having a computer program stored thereon, the computer program implementing the content presentation method according to any one of claims 1 to 9 when executed by a processor.

Citation Information

Patent Citations

  • Graph display device and storage medium

    JP2001250078A

  • Scrollable and size-variable formula bar

    JP2006285981A

  • Pattern-based filling of a canvas with data and formula

    US20190340219A1