Content presentation method, apparatus, electronic device, and storage medium

By obtaining and generating rich text content with consistent styles, the problem of inconsistent styles of tables and formula bars is solved, and a more unified content presentation is achieved.

JP2025504561AActive Publication Date: 2025-02-12BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2024544766
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2022-01-27
Filing Date
2023-01-10
Publication Date
2025-02-12
Estimated Expiration
2043-01-10

AI Technical Summary

Technical Problem

In the prior art, the contents in the table cannot be kept consistent with the cell content in the formula bar, resulting in inconsistent presentation of the table and formula bar.

Method used

Ensure style consistency by getting rich text content in the cell and its style, generating target rich text and rendering it in the formula bar.

Benefits of technology

It achieves consistency in the content style of table and formula columns and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2025504561000001_ABST
    Figure 2025504561000001_ABST
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 to a Chinese patent application bearing application number 202210103776.0, filed on January 27, 2022, and entitled "Content Presentation Method, Apparatus, 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 a user, the content within the table may be further presented in a formula bar above the table, where the user may also amend 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 Detailed Description section below. The Summary section is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.

[0006] The embodiments of the present disclosure provide a content presentation method, device, and electronic device that allows the style of the text content in the cells to remain the same as the style of the 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 detected selection operation on a 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, the one or more programs being executed by the one or more processors to cause the one or more processors 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 program implementing the content presentation method described in the first aspect when executed by a processor. [Brief description of the drawings]

[0011] The above and other features, advantages, and aspects of each embodiment of the present specification 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 each dimension do not necessarily correspond to real objects and elements.

[0012] [Figure 1] FIG. 2 is a flow diagram of one embodiment of a content presentation method according to the present disclosure. [Diagram 2] 4 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] 11A-11C are schematic diagrams of portions of goal tables of some further embodiments of content presentation methods according to the present disclosure. [Figure 3B] 11A-11C are schematic diagrams of portions of goal tables of some further embodiments of content presentation methods according to the present disclosure. [Figure 3C] 11A-11C are schematic diagrams of portions of goal tables of some further embodiments of content presentation methods according to the present disclosure. [Figure 3D] 11A-11C are schematic diagrams of portions of goal tables of some further embodiments of content presentation methods according to the present disclosure. [Figure 3E] 11A-11C are schematic diagrams of portions of goal tables of some further embodiments of content presentation methods according to the present disclosure. [Figure 4A] 11A-11C are schematic diagrams of portions of goal tables of some further embodiments of content presentation methods according to the present disclosure. [Figure 4B] 11A-11C are schematic diagrams of portions of goal tables of some further embodiments of content presentation methods according to the present disclosure. [Diagram 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] FIG. 1 is a schematic diagram of a basic configuration of an electronic device provided according to an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0013] Hereinafter, the embodiments of the present disclosure will be described in more detail with reference to the attached drawings. Although the attached 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 interpreted as being limited to the embodiments described herein, but rather that these embodiments are provided to allow the present disclosure to be more thorough and complete. It should be understood that the attached 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. Additionally, method embodiments may include additional steps and / or omit the performance of illustrated steps. The scope of the present disclosure is not limited in this respect.

[0015] As used herein, the term "including" 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 concepts such as "first" and "second" referred to in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order or mutual dependencies of functions performed by these devices, modules or units.

[0017] It should be noted that the modifications "one" and "multiple" referred to in the present disclosure are intended to be illustrative rather than limiting, and should be understood by one of ordinary skill in the art as "one or multiple" unless the context indicates otherwise.

[0018] The names of messages or information exchanged between multiple devices in the embodiments of the present disclosure are not intended to limit the scope of these messages or information, but are used for explanatory 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] As an example, the execution entity of the content presentation method can 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 particular cell, it can determine a cell-rich text in the selected cell, obtain the text content of the cell-rich text, and determine a style of the cell-rich text.

[0021] As an example, the target table may include at least one cell, and the contents recorded in different cells of the target table may be different, and the style of the contents in different cells may also be different. For example, a cell may be filled with text contents, or may be filled with links, hyperlinks, etc. That is, when the contents in the target table have a certain style, the contents 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 contents and / or styles of the rich text are different).

[0022] As an example, text with multiple styles can be understood as rich text. Cell rich text may include the text content and the text style in a cell. Thus, 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] As an example, the performer 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 performer 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 generate the target rich text for presentation in the formula bar after performing corresponding format conversion on the result output by the rich text editor.

[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 indication, font color, etc.

[0028] In addition, in the related art, there are differences in the presentation formats corresponding to the cells and formula bars of the target table. For example, the format presented in the cell cannot be presented in the formula bar, so 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 convenience of understanding, the related art can be understood with reference to FIG. 2. FIG. 2 shows a part of the area of ​​the target table. As can be seen from FIG. 2, the text content in the 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. in 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 match 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 the target table, and it is only necessary to make a reasonable selection 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. In addition, for example, the target rich text can be obtained directly by using a preset format conversion model (used to convert the format in the 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 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; according to 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 made more consistent as a whole.

[0035] Furthermore, when the cell rich text includes a hyperlink, an attachment link, a link for instructing a specific user (for example, a link of @XXX), the user can trigger these links in the selected cell and open the page corresponding to these links, as well as trigger these links in the formula bar and open the page corresponding to these links. That is, various links in the target table can be triggered more easily.

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

[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, reference can be made to Fig. 3E. Fig. 3E is a schematic diagram of a portion of a target table of an embodiment provided by the present application. In Fig. 3E, the style of the cell rich text in cell 302 may include font, glyph, and hyperlink, the style of the cell rich text in cell 303 may include font, glyph, and link for indicating a specific user, and the style of the cell rich text in cell 304 may include font, glyph, and 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 command based on the style of the cell-rich text, inputting the style rendering command and the text content into a rich text editor, and generating the target rich text based on a 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 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] As an example, a rich text editor can be used to generate a target rich text. For example, one rich text editor can be pre-arranged. When a specific 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. A rendering command for instructing the rich text editor on the rendering method can be generated, and then both the rendering command and the text content can be input to the rich text editor, and the text content can be style-rendered by the rich text editor to obtain the rendering result.

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

[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 the rendering styles to be applied when the rich text editor renders the text content; determine at least one target rendering style to be applied based on the number of rendered characters corresponding to each rendering style among the applied rendering styles; and determine the rendering style corresponding to the target rich text based on the at least one applied target rendering style.

[0048] As an example, when editing text content using a rich text editor, multiple rendering styles can be used. For example, in the generated target rich text, different characters may have different font types, different font colors, and some alphabets may be combined to form a link (for example, a link is formed by combining alphabets such as www.baidu.com). In this case, multiple rendering styles need to be used, and the number of rendering characters corresponding to each rendering style can be recorded. Since the number of rendering characters corresponding to different rendering styles may differ, and a specific rendering style may have a large number of rendering characters while a specific rendering style has a small number of rendering characters, a rendering style with a large number of corresponding characters or a rendering style to which most alphabets are applied may be selected, and these rendering styles may be determined as target rendering styles to be applied, and a rendering style corresponding to the target rich text may be determined using the target rendering style.

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

[0050] For ease of understanding, the description will be made with reference to FIG. 4A and FIG. 4B. FIG. 4A and FIG. 4B are schematic diagrams of a part of a target table in an embodiment of the present disclosure. As can be seen from FIG. 4A, the target table may include a presentation interface 401. In the presentation interface, 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) can be presented. When a selection operation on the formula bar is detected, the presentation format of some style controls can 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 know what style the target rich text has.

[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 in the first style change command.

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

[0053] As an example, when the style of the cell rich text is changed, the style of the target rich text is changed correspondingly, so that after the user changes the style of the 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] As an example, the style of the target rich text can be changed by using a rich text editor. For example, a change rendering command is generated according to the style change situation of the cell rich text, and the previous rendering result is changed according to the change rendering command, so that the style of the target rich text can be changed based on the changed rendering result. Of course, in a specific embodiment, the specific way to change the style of the target rich text can be selected according to the actual situation. Here, it is not determined how to change the style of the target rich text.

[0055] In some embodiments, the target table includes presentation interfaces having 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 a selected cell, allowing the user to easily customize the style as well as easily change 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, the second style change command can be directly input 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 is also changed accordingly, which can make the target table more consistent.

[0060] In some embodiments, a 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 edit 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 style of the cell rich text and the style of the target rich text correspondingly; when the formula bar is selected, the user can input a second style change command to change the style of the cell rich text and the style of the target rich text correspondingly, so that the user can change the style of the cell rich text and the style of the target rich text 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 that the user can better browse the cell (e.g., the cell presents only a part 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, and only when the user triggers the style control, the presentation interface determines the rendering style based on the style control triggered by the user, and generates a rendering command identifiable by the rich text editor based on the rendering style, so that the rich text editor can be used to style-render the text content according to the instruction 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 correspondingly.

[0065] Further, in order to realize the methods shown in the above figures, the present disclosure provides an embodiment of a content presentation device, with reference to Fig. 5. The 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 acquires the text content of the cell-rich text in a selected cell in response to a selection operation for a detected cell in a target table and determines a style of the cell-rich text, a generation means 502 that generates 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, where 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 with at least one style control for indicating a rendering style, and the apparatus further includes a second determining 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 corresponding to each determined rendering style in the presentation interface.

[0069] In some embodiments, the second determination means 504 is further used for specifically obtaining rendering styles to be applied when rendering the text content by a rich text editor, determining at least one applied target rendering style based on a number of rendered 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.

[0070] In some embodiments, the above-mentioned device further comprises a modification means 505 for, in response to receiving a first style change 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 change 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 for generating 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 change 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 change command for modifying the style of the target rich text.

[0073] 8. In some embodiments, the modification 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 for generating 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 particular 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, 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, 603 and the server 605. The network 604 may include various connection types, such as, for example, wired or wireless communication links or fiber optic cables. The terminal devices 601, 602, 603 can interact with the server 605 to receive or send messages, etc., via the network 604. Various client applications can be installed on the terminal devices 601, 602, 603, such as a web browser application, a search application, a news and information application, etc. The client applications on the terminal devices 601, 602, 603 can receive a user's instruction and complete a corresponding function according to the user's instruction, such as adding corresponding information according to the user's instruction.

[0076] The terminal devices 601, 602, and 603 may be hardware or software. When the terminal devices 601, 602, and 603 are hardware, they are various electronic devices having a display screen and supporting a web browser, including, but not limited to, smartphones, tablet computers, electronic paper, MP3 players (Moving Picture Experts Group Audio Layer III, moving picture expert compression standard audio level 3), MP4 (Moving Picture Experts Group Audio Layer IV, moving picture expert compression standard audio level 4) players, laptop portable computers, and desktop computers. When the terminal devices 601, 602, and 603 are software, they can be installed in the above electronic devices. They may be configured as multiple software or software modules (for example, software or software modules providing distributed services), or may be configured as a single software or software module. There is no particular limitation in this specification.

[0077] The server 605 is a server that provides various services, for example, by receiving an information acquisition request transmitted from the terminal devices 601, 602, and 603 and acquiring presentation information corresponding to the information acquisition request in various ways in response to the information acquisition request. 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 may be 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 are exemplary only, and it should be understood that any number of terminal devices, networks and servers may be provided as desired.

[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 (for example, the terminal device or server in FIG. 6) according to an embodiment of the present disclosure. Examples of the terminal device in the 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 (for example, 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 functions and scope of use of the embodiment of the present disclosure in any way.

[0081] As shown in FIG. 7, the electronic device may include a processing unit (e.g., a central processor, a graphic processor, etc.) 701 capable of performing various suitable operations and processes based on 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. The RAM 703 further stores various kinds of programs and data required 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 an input device 706 such as a touch screen, a touch panel, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc., an output device 707 such as a liquid crystal display (LCD), a speaker, a vibrator, etc., a storage device 508 such as a magnetic tape, a hard disk, etc., a communication device 709, etc. The communication device 709 can allow the electronic device to communicate wirelessly or wired with other devices to exchange data. Although Fig. 7 shows an electronic device with various devices, it should be understood that it need not embody or include all of the devices shown. More or fewer devices may alternatively be embody or include.

[0082] In particular, according to an embodiment of the present disclosure, the process described with reference to the flow diagrams may be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program including a program code for executing the method shown in the flow diagram. In such an embodiment, the computer program may be downloaded or installed from a network by the communication device 709, may be installed from the storage device 708, or may be 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 performed.

[0083] It should be noted that the above computer readable medium of the present disclosure may be a computer readable signal medium, or a computer readable storage medium, or any combination thereof. The computer readable storage medium may be, for example, but is not limited to, an electric, 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 that can be used by or in combination with an instruction execution system, device, or machine. In the present disclosure, the computer readable signal medium may comprise a data signal carrying computer readable program code, either in baseband or propagated 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, so long as it 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 by any suitable medium, including, but not limited to, an electrical wire, an optical fiber cable, RF (radio), or the like, 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, HyperText Transfer Protocol (HTTP), and may be connected to each other via any form or medium of digital data communication (e.g., a communications network). Examples of communications 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 networks.

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

[0086] The above-mentioned computer-readable medium has a computer program stored therein, 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 text content of cell-rich text in a selected cell, determines a style of the cell-rich text, and generates 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 presents the target rich text in the formula bar of the target table.

[0087] In some embodiments, generating a target rich text for presentation in the formula bar of the target table based on the text content of the cell-rich text and a style of the cell-rich text includes generating a style rendering command based on the style of the cell-rich text, inputting the style rendering command and the text content into a rich text editor for style rendering of the text content based on instructions in the style rendering command, and generating the target rich text based on a 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 each 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 a presentation format of a 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 rendering the text content 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 rendering style among 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, in response to receiving a first style change command, the electronic device 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 having 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 the 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 combinations thereof, including, but not limited to, object-oriented program programming languages ​​such as Java, Smalltalk, C++, and the like, 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., connected via the Internet by 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 part of code, including one or more executable instructions for implementing a certain logical function. It should also be noted that in some alternative forms, the functions shown in the blocks may occur in a different order from the order shown in the accompanying drawings. For example, two blocks shown in succession may actually be executed substantially in parallel, but may be executed in the reverse order depending on the related functions. 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 realized by a system with dedicated hardware that executes a certain 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 realized by 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 for determining 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, such as, but not limited to, 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.

[0099] In the context of this disclosure, a machine-readable medium may be a tangible medium that can include or store a program used by or in combination with an instruction execution system, device, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A computer-readable medium may include, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the contents thereof. More specific examples of machine-readable storage media include an electrical connection by 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.

[0100] The content presentation method, device and electronic device provided in the embodiments of the present disclosure can obtain the text content of the cell-rich text in the selected cell when a selection operation is detected for a cell in a target table, obtain the style of the cell-rich text, and generate a target rich text according to 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, so that the style of the text content in the cell can remain the same as the style of the text content in the formula bar, making the target table more consistent as a whole.

[0101] Furthermore, when the cell rich text includes a hyperlink, an attachment link, a link for instructing a specific user (for example, a link of @XXX), the user can trigger these links in the selected cell and open the page corresponding to these links, as well as trigger these links in the formula bar and open the page corresponding to these links. That is, various links in the target table can be triggered more easily.

Claims

1. responsive to a pick operation on a detected cell in the target table, obtaining text content of cell-rich text in the 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 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; presenting the goal rich text in a formula bar of the goal table.

2. 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, generating style rendering instructions based on the style of the cell-rich text; inputting the style rendering instructions and the text content into a rich text editor for stylizing and rendering the text content based on instructions of the style rendering instructions; The method of claim 1 , further comprising: 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; The method comprises: 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 the step of adjusting, in the presentation interface, a presentation format of a style control corresponding to each determined rendering style.

4. The step of determining a rendering style corresponding to the target rich text includes: obtaining a rendering style to be applied upon rendering of said text content 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 rendering style among the applied rendering styles; The method of claim 3 , further comprising: determining a rendering style corresponding to the target rich text in response to the at least one applied target rendering style.

5. The method comprises:

2. The method of claim 1, further comprising: in response to receiving a first style change command, correspondingly changing a style of the cell-rich text and a style of the target rich text in accordance with instructions in the first style change command for changing a 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 method of claim 5 , wherein the first style change command is generated based on a trigger operation on a presented style control.

7. The method comprises:

2. The method of claim 1, further comprising: in response to receiving a second style change command, correspondingly changing a style of the target rich text and a style of the cell rich text in accordance with instructions in the second style change command for changing a 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 method of 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 method of claim 1 , further comprising at least one of a font, a glyph, a hyperlink, an attachment link, and a link to point to a particular user.

10. a first determining means for obtaining a text content of a cell-rich text in a selected cell in response to a selection operation on the detected cell in the target table, and determining a style of the cell-rich text; a generating means for generating a target rich text for presentation in a formula bar of the target table based on a text content of the cell-rich text and a style of the cell-rich text, the style of the target rich text being the same as a style of the cell-rich text; and 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; The one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1 to 9. electronic equipment.

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

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