Information processing method and apparatus, and electronic device and storage medium

By processing and displaying title format paragraphs in the editable area of ​​the document, the problem of inconvenient document content management is solved, rapid access and display is achieved, and the user experience is improved.

WO2024179367A1PCT designated stage expired Publication Date: 2024-09-06BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/078174
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-02-28
Filing Date
2024-02-22
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

It is difficult for existing technologies to effectively process and display title format paragraphs in documents, causing inconvenience for users to quickly access and manage document content.

Method used

By receiving instructions to insert components in the editable area of ​​the document, the title format paragraphs in the document body are obtained, and these paragraphs are generated and displayed in the display area. It supports switching between outline view and mind map view, and realizes the adjustment of title level and position. Demonstration of relationships.

Benefits of technology

It realizes the rapid collection and display of document content, provides convenient information management and access methods, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024078174_06092024_PF_FP
    Figure CN2024078174_06092024_PF_FP
Patent Text Reader

Abstract

Provided in the present disclosure are an information processing method and apparatus, and an electronic device and a storage medium. The information processing method comprises: in response to an instruction of inserting a target component being received in an editable area of a target document, acquiring a target paragraph, which has a title format in the document text of the target document; and generating, in the editable area of the target document, a display area for the target component, and displaying the target paragraph in the display area. The embodiments of the present disclosure can collect target paragraphs, which have a title format in document content, and display same.
Need to check novelty before this filing date? Find Prior Art

Description

Information processing method, device, electronic device and storage medium

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to Chinese patent application number 202310193240.7, filed on February 28, 2023, entitled “Information processing method, device, electronic device and storage medium”. The entire contents of that application are incorporated by reference into this application. Technical Field

[0003] The present disclosure relates to the field of computer technology, and in particular to an information processing method, device, electronic device, and storage medium. Background Art

[0004] Documents, such as online documents, have different titles. To quickly access documents, you can create a directory for the document, which is displayed in outline view.

[0005] Summary of the Invention

[0006] The present disclosure provides an information processing method, apparatus, electronic device, and storage medium.

[0007] The present disclosure adopts the following technical solutions.

[0008] In some embodiments, the present disclosure provides an information processing method, including:

[0009] In response to receiving an instruction to insert a target component into an editable area of ​​a target document, obtaining a target paragraph having a title format in a document body of the target document;

[0010] A display area of ​​the target component is generated in an editable area of ​​the target document, and the target paragraph is displayed in the display area.

[0011] In some embodiments, the present disclosure provides an information processing device, including:

[0012] an acquiring unit, configured to acquire a target paragraph having a title format in a document body of the target document in response to receiving an instruction to insert a target component into an editable area of ​​the target document;

[0013] The control unit is configured to generate a display area for the target component in the editable area of ​​the target document, and display the target paragraph in the display area.

[0014] In some embodiments, the present disclosure provides an electronic device comprising: at least one memory and at least one processor;

[0015] The memory is used to store program codes, and the processor is used to call the program codes stored in the memory to execute the above method.

[0016] In some embodiments, the present disclosure provides a computer-readable storage medium for storing program code, which, when executed by a processor, prompts the processor to perform the above method.

[0017] The information processing method provided by the disclosed embodiment, in response to receiving an instruction to insert a target component in an editable area of ​​a target document, obtains a target paragraph in the document body of the target document that has a title format; generates a display area for the target component in the editable area of ​​the target document; and displays the target paragraph in the display area. The disclosed embodiment can collect and display target paragraphs in the document content that have a title format. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0019] FIG1 is a flowchart of an information processing method according to an embodiment of the present disclosure.

[0020] 2 to 6 are schematic diagrams showing the display of target documents according to embodiments of the present disclosure.

[0021] FIG7 is a flowchart of an information processing method according to an embodiment of the present disclosure.

[0022] FIG8 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0023] The following describes embodiments of the present disclosure in more detail with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.

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

[0025] As used herein, the term "including" and its variations are open-ended, i.e., "including but not limited to." The term "based on" means "based, at least in part, on." The term "one embodiment" means "at least one embodiment," the term "another embodiment" means "at least one additional embodiment," and the term "some embodiments" means "at least some embodiments." Other terms are defined in the following description.

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

[0027] It should be noted that the modification of “one” mentioned in the present disclosure is illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as “one or more”.

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

[0029] The solution provided by the embodiment of the present disclosure will be described in detail below with reference to the accompanying drawings.

[0030] In some embodiments of the present disclosure, an information processing method is proposed, characterized in that:

[0031] S11. In response to receiving an instruction to insert a target component in an editable area of ​​a target document, obtaining a target paragraph having a title format in a document body of the target document.

[0032] In some embodiments, the target document can be a local document or an online document. The target document has a document body and an editable area. The edit area can be located outside or within the document body. Paragraphs in the document body can have formats, such as title format, body format, etc. The title format can indicate that the paragraph is a title paragraph. Paragraphs with title format are target paragraphs, and therefore there can be multiple target paragraphs.

[0033] S12: Generate a display area for the target component in the editable area of ​​the target document, and display the target paragraph in the display area.

[0034] In some embodiments, after the target paragraph is obtained, a display area for the target component is generated within the editable area of ​​the target document, and the target paragraph is generated in the display area. In the disclosed embodiment, target paragraphs in the form of headings within the document body are collected and then generated into a display area for display, thereby integrating information and facilitating user use.

[0035] In some embodiments of the present disclosure, as shown in Figures 2 and 3, in response to receiving an instruction to insert a target component in an editable area of ​​a target document, the method includes: displaying a list of optional controls in response to inputting a target symbol in the editable area of ​​the target document or triggering an operation of a first control; and generating an instruction to insert the target component in response to triggering a second control in the list of optional controls.

[0036] In some embodiments, as shown in FIG2 , a pre-set target symbol, such as “ / ”, can be input in the editable area to call out an optional list, and text can be continued to be input after the target symbol is input. The control in the optional list will be searched according to the input text. For example, after the target symbol “ / ” is input in FIG2 , “Directory” is input. At this time, as shown in FIG2 , the second control “Directory Navigation” found in the optional list is displayed. The second control is triggered by clicking or the like, thereby creating a display area. In other embodiments, as shown in FIG3 , a first control can be displayed in the target document. The first control can be triggered by clicking or the like, thereby displaying a list of optional controls, and then the second control is selected from the list of optional controls, thereby creating a display area. As shown in FIG4 , a display area is generated in the editable area of ​​the target document, in which the target paragraph is displayed.

[0037] In some embodiments of the present disclosure, displaying the target paragraph in the display area includes: displaying the target paragraph in the display area according to a title level of the target paragraph and / or a positional relationship of the target paragraph.

[0038] In some embodiments, target paragraphs are assigned heading levels, such as a first-level heading level, a second-level heading level, and the like. The target paragraphs are also assigned positions within the document body, such as a sequence of appearance. Different target paragraphs are displayed separately in the display area based on their heading levels and positions, thereby enabling the target paragraphs to be distinguished based on their display styles.

[0039] In some embodiments of the present disclosure, the target paragraph is displayed in the display area according to the title level of the target paragraph, including: the higher the title level of the target paragraph, the smaller the indentation of the target paragraph in a preset direction when it is displayed in the display area.

[0040] In some embodiments, as shown in FIG4 , there may be multiple target paragraphs (for example, the content such as “I. Function Introduction” displayed in the display area in FIG4 ), and the target paragraphs have title levels. The indentations of different title levels in the display area may be different. The indentations of target paragraphs of the same title level in the display area may be the same, and the preset direction may be the right direction.

[0041] In some embodiments of the present disclosure, displaying the target paragraph in the display area includes: if at least one target paragraph with a title format in the document body is obtained, displaying the target paragraph in the display area; or, if no target paragraph with a title format in the document body is obtained, displaying a blank or preset prompt information in the display area.

[0042] In some embodiments, if there is at least one target paragraph in the document body, the target paragraph can be displayed in the display area. If all paragraphs in the document body do not have a title format, it means that there is no target paragraph. At this time, a blank or preset prompt information is displayed in the display area. The preset prompt information can be, for example, a prompt such as "Untitled", or it can be an error message.

[0043] In some embodiments of the present disclosure, the method further includes: in response to creating a new target paragraph with a title format in the document body, displaying the newly created target paragraph in the display area; or, in response to an editing operation on the target paragraph with a title format in the document body, updating the display style of the target paragraph in the display area according to the editing result.

[0044] In some embodiments, when a paragraph with a title format is created in the body of a document, the newly created paragraph belongs to the target paragraph because it has the title format, and the newly created target paragraph will be automatically displayed in the display area. In other embodiments, an editing operation can be performed on the target paragraph in the body of the document. There can be multiple types of editing operations. For example, if the editing operation deletes the target paragraph or changes the format of the target paragraph to a non-title format, the target paragraph will no longer be displayed in the display area. If the editing operation modifies the content of the target paragraph, the modified content of the target paragraph will be displayed in the display area, achieving synchronous update of the two. If the editing operation modifies the level of the target paragraph, the indentation of the target paragraph will be adjusted in the display area. If the editing operation modifies the position of the target paragraph in the body of the document, the position of the target paragraph in the display area will also be modified accordingly.

[0045] In some embodiments of the present disclosure, the method further includes: in response to a first operation event on a first target paragraph in the display area, deleting the first target paragraph displayed in the display area, and retaining the first target paragraph in the document body.

[0046] In some embodiments, the first target paragraph may be a target paragraph displayed in the display area. The first target paragraph displayed in the display area may be deleted from the display area by executing a first operation event, in which case the first target paragraph will be retained in the document body. In some embodiments, the first operation event may be, for example, hovering a control marker over the first target paragraph in the display area, in which case a delete control associated with the first target paragraph will be displayed, and the first target paragraph may be deleted by triggering the delete control.

[0047] In some embodiments of the present disclosure, if the first target paragraph has at least one second target paragraph belonging to the first target paragraph, the second target paragraph is deleted in the display area, and the second target paragraph in the document body is retained.

[0048] In some embodiments, a first target paragraph may have at least one second target paragraph subordinate to it. For example, in FIG4 , the target paragraph "II. Functional Highlights" displayed in the display area has subordinate target paragraphs "2.1 Highlight 1" and "2.2 Highlight 2" subordinate to it. After deleting the target paragraph "II. Functional Highlights" from the display area, the subordinate target paragraphs "2.1 Highlight 1" and "2.2 Highlight 2" are automatically deleted from the display area, but remain in the document body.

[0049] In some embodiments of the present disclosure, the method further includes: the target component has a filter control, and in response to a second operation event of setting a title level condition through the filter control, the target paragraph whose title level meets the title level condition is displayed in the display area.

[0050] In some embodiments, the target component includes a filter control, which allows you to set a heading level condition as a filter condition. When displaying target paragraphs, you may not display all target paragraphs, but only display target paragraphs that meet the heading level condition. For example, you can set the number of target paragraphs with heading levels to be displayed in the filter control. For example, if you set the heading level condition to 1 to 5, only target paragraphs with heading levels 1 to 5 will be displayed. Of course, you can also not set the heading level condition, in which case all target paragraphs will be displayed.

[0051] In some embodiments of the present disclosure, displaying the target paragraph in the display area includes: displaying the target paragraph in an outline view or a mind map view in the display area; the method further includes: in response to a third operation event, converting the target paragraph displayed in the outline view to be displayed in a mind map view, or converting the target paragraph displayed in the mind map view to be displayed in an outline view.

[0052] In some embodiments, the target component can be a directory component, a paragraph in the entire document body content of the target paragraph, or a paragraph in a specific chapter. The displayed target paragraph can have two display modes: outline view and mind map view. Figures 4 and 5 schematically show the directory displayed in outline view and the target paragraph displayed in mind map view, respectively. As can be seen, in outline mode, it is the same as the usual directory structure. In outline view, the target paragraphs can be arranged in the order of appearance of the chapters. The mind map view is a view with a tree structure that displays the attribution relationship between target paragraphs at different levels. In the mind map view, the hierarchical relationship of each target paragraph is such that each target paragraph has a parent node and child node attribution relationship, and the root node is the target document. In some embodiments of the present disclosure, multiple views are provided, and the target paragraph can be switched between outline view and mind map view. This solves the problem of using the outline view to express a single content. By switching to the mind map view, the content framework of the document is more intuitively displayed through a new content organization method. The user can switch between the outline view and mind map view as needed.

[0053] In some embodiments of the present disclosure, the method further includes: when displaying the directory in the mind map view, in response to a trigger event of a target node in the document view, jumping to the position of the target paragraph corresponding to the target node in the document body.

[0054] In some embodiments, as shown in Figure 5, under the mind map view, each target paragraph is displayed using the relationship between the parent node and the child node, and the root node is the target document. After triggering any target node, it will automatically jump to the position of the target paragraph corresponding to the target node in the document content. For example, if you click on the node where "2.1 Highlight 1" in Figure 5 is located, it will automatically jump to the position of the target paragraph in the document content. In some embodiments, as shown in Figure 3, in the directory of the mind map view, each node is a node of the target paragraph, and the parent node with child nodes is associated with a display control (a circle with a horizontal line inside in Figure 3). By triggering the display control, the child nodes of the associated parent node can be folded up, and by triggering the display control again, the child nodes can be expanded and displayed.

[0055] In some embodiments of the present disclosure, the method further includes: in response to a fourth operation event of the control marker on the third target paragraph in the document content of the target document, displaying a target paragraph belonging to the third target paragraph.

[0056] In some embodiments, all target paragraphs under a target paragraph can be clearly viewed in the display area, but in the document content, all target paragraphs under a target paragraph cannot be well viewed. The user needs to continuously flip down and flip through the content under a target paragraph before viewing the next target paragraph, or needs to return to the display area before viewing, which causes inconvenience in use. Therefore, in this embodiment, the control mark (such as a mouse) performs a fourth operation event on the third target paragraph in the document body of the target document. For example, if the control mark hovers over the third target paragraph, all target paragraphs belonging to the third target paragraph will be displayed, and the target paragraphs belonging to the third target paragraph can be displayed in a pop-up window. Taking Figure 2 as an example, if the control mark is hovered over the target paragraph of "II. Function Highlights" in Figure 2, a pop-up window can be displayed, and "2.1 Highlight 1" and "2.2 Highlight 2" can be displayed in the pop-up window. The control mark can close the pop-up window when clicking a blank position. And when the displayed target paragraph is triggered, it can jump to the position of the target paragraph, which improves convenience.

[0057] In some embodiments of the present disclosure, the target document is associated with a third control, and the target paragraph displayed in the display area is switched between the outline view and the mind map view through the third control.

[0058] In some embodiments, as shown in Figure 6, a third control (a box with two horizontal lines inside the upper right corner of the directory area in Figure 6) may be displayed in the display area. After the third control is triggered by, for example, clicking, view options are displayed, including outline mode and mind map mode. The user can switch views in the view options and choose to display the target paragraph in outline mode or mind map mode.

[0059] In order to better illustrate the method proposed in the embodiment of the present disclosure, a specific embodiment is proposed below in conjunction with Figure 7. In this embodiment, in the editable area of ​​the target document, by triggering the function panel or entering "\" in the editable area, a list of optional controls can be called up (see Figures 2 and 3). If "Directory Navigation" is selected, it will first be determined whether there is a target paragraph in the title format in the document content of the current target document. If so, a display area is created and all target paragraphs are displayed in the display area. The created target paragraph is displayed in outline view by default. If not, an empty state prompt is displayed. The created display area can be as shown in Figure 4. At this time, the user can hover the control mark on the control for switching views (as shown in Figure 6), and the switched view will be displayed. If the mind map mode is selected, the target paragraph will be switched to the mind map view (as shown in Figure 5). The content in the target paragraph in the display area will be automatically updated according to the changes in the target paragraph in the document body. The target paragraph can also be modified in the display area to automatically update the target paragraph in the document body. When a control mark (such as a mouse) hovers over any node on a target paragraph in a mind map view, the node is highlighted, and after the node is triggered, the node jumps to the position of the target paragraph corresponding to the node in the target document.

[0060] Some embodiments of the present disclosure further provide an information processing device, including:

[0061] an acquiring unit, configured to acquire a target paragraph having a title format in a document body of the target document in response to receiving an instruction to insert a target component into an editable area of ​​the target document;

[0062] The control unit is configured to generate a display area for the target component in the editable area of ​​the target document, and display the target paragraph in the display area.

[0063] In some embodiments, displaying the target paragraph in the display area includes: displaying the target paragraph in the display area according to a title level of the target paragraph and / or a positional relationship of the target paragraph.

[0064] In some embodiments, displaying the target paragraph in the display area according to the title level of the target paragraph includes:

[0065] The higher the title level of the target paragraph, the smaller the indentation amount of the target paragraph in the preset direction when the target paragraph is displayed in the display area.

[0066] In some embodiments, displaying the target paragraph in the display area includes:

[0067] If at least one target paragraph in the title format is obtained from the document body, the target paragraph is displayed in the display area; or

[0068] If the target paragraph in the title format in the document body is not obtained, a blank or preset prompt information is displayed in the display area.

[0069] In some embodiments, the control unit is further configured to: in response to creating a new target paragraph having a title format in the document body, display the newly created target paragraph in the display area; or

[0070] In response to an editing operation on a target paragraph having a title format in the document body, a display style of the target paragraph in the display area is updated according to the editing result.

[0071] In some embodiments, the control unit is further configured to: in response to a first operation event on a first target paragraph in the display area, delete the first target paragraph displayed in the display area, and retain the first target paragraph in the document body.

[0072] In some embodiments, the control unit is further configured to: if the first target paragraph has at least one second target paragraph subordinate to the first target paragraph, delete the second target paragraph in the display area and retain the second target paragraph in the document body.

[0073] In some embodiments, the target component has a filter control, and the control unit is further used to: in response to a second operation event of setting a title level condition through the filter control, display the target paragraph whose title level meets the title level condition in the display area.

[0074] In some embodiments, displaying the target paragraph in the display area includes: displaying the target paragraph in an outline view or a mind map view in the display area;

[0075] In some embodiments, the control unit is further configured to: in response to a third operation event, convert the target paragraph displayed in the outline view to be displayed in a mind map view, or convert the target paragraph displayed in the mind map view to be displayed in an outline view.

[0076] In some embodiments, the control unit is further configured to: in response to a fourth operation event of the control marker on a third target paragraph in the document content of the target document, display a target paragraph belonging to the third target paragraph.

[0077] For the embodiments of the device, since they basically correspond to the method embodiments, the relevant parts can be referred to the partial description of the method embodiments. The device embodiments described above are merely illustrative, wherein the modules described as separation modules may or may not be separate. Some or all of the modules can be selected according to actual needs to achieve the purpose of the present embodiment. Those of ordinary skill in the art can understand and implement them without paying creative work.

[0078] The method and apparatus of the present disclosure are described above based on the embodiments and application examples. In addition, the present disclosure also provides an electronic device and a computer-readable storage medium, which are described below.

[0079] Reference is now made to FIG8 , which illustrates a schematic diagram of the structure of an electronic device (e.g., a terminal device or server) 800 suitable for implementing embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is 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), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. The electronic device shown in the figure is merely an example and should not limit the functionality and scope of use of the embodiments of the present disclosure.

[0080] The electronic device 800 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage device 808 into a random access memory (RAM) 803. Various programs and data required for the operation of the electronic device 800 are also stored in the RAM 803. The processing device 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0081] Typically, the following devices may be connected to the I / O interface 805: an input device 806 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 807 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 808 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 809. The communication device 809 may allow the electronic device 800 to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows the electronic device 800 with various devices, it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have alternatively.

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

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

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

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

[0086] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method of the present disclosure.

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

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

[0089] The units involved in the embodiments described in this disclosure may be implemented in software or hardware, wherein the name of a unit does not necessarily limit the unit itself.

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

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

[0092] According to one or more embodiments of the present disclosure, there is provided an information processing method, including:

[0093] In response to receiving an instruction to insert a target component into an editable area of ​​a target document, obtaining a target paragraph having a title format in a document body of the target document;

[0094] A display area of ​​the target component is generated in an editable area of ​​the target document, and the target paragraph is displayed in the display area.

[0095] According to one or more embodiments of the present disclosure, there is provided an information processing method, wherein the method displays the target paragraph in the display area, including:

[0096] The target paragraph is displayed in the display area according to the title level of the target paragraph and / or the position relationship of the target paragraph.

[0097] According to one or more embodiments of the present disclosure, there is provided an information processing method, which displays a target paragraph in the display area according to the title level of the target paragraph, including:

[0098] The higher the title level of the target paragraph, the smaller the indentation amount of the target paragraph in the preset direction when the target paragraph is displayed in the display area.

[0099] According to one or more embodiments of the present disclosure, there is provided an information processing method, wherein the method displays the target paragraph in the display area, including:

[0100] If at least one target paragraph in the title format is obtained from the document body, the target paragraph is displayed in the display area; or

[0101] If the target paragraph in the title format in the document body is not obtained, a blank or preset prompt information is displayed in the display area.

[0102] According to one or more embodiments of the present disclosure, there is provided an information processing method, further comprising:

[0103] In response to creating a new target paragraph with a heading format in the document body, displaying the newly created target paragraph in the display area; or,

[0104] In response to an editing operation on a target paragraph having a title format in the document body, a display style of the target paragraph in the display area is updated according to the editing result.

[0105] According to one or more embodiments of the present disclosure, there is provided an information processing method, further comprising:

[0106] In response to a first operation event on a first target paragraph in the display area, the first target paragraph displayed in the display area is deleted, and the first target paragraph in the document body is retained.

[0107] According to one or more embodiments of the present disclosure, there is provided an information processing method, further comprising:

[0108] If the first target paragraph has at least one second target paragraph belonging to the first target paragraph, the second target paragraph is deleted in the display area, and the second target paragraph in the document body is retained.

[0109] According to one or more embodiments of the present disclosure, there is provided an information processing method, further comprising:

[0110] The target component includes a filter control, and in response to a second operation event in which a title level condition is set through the filter control, a target paragraph whose title level meets the title level condition is displayed in the display area.

[0111] According to one or more embodiments of the present disclosure, an information processing method is provided, wherein the target paragraph displayed in the display area includes: displaying the target paragraph in an outline view or a mind map view in the display area; the method further includes:

[0112] In response to a third operation event, the target paragraph displayed in the outline view is converted to be displayed in a mind map view, or the target paragraph displayed in the mind map view is converted to be displayed in an outline view.

[0113] According to one or more embodiments of the present disclosure, there is provided an information processing method, further comprising:

[0114] In response to a fourth operation event of the control marker on a third target paragraph in the document content of the target document, target paragraphs belonging to the third target paragraph are displayed.

[0115] According to one or more embodiments of the present disclosure, there is provided an information processing apparatus, including:

[0116] an acquiring unit, configured to acquire a target paragraph having a title format in a document body of the target document in response to receiving an instruction to insert a target component into an editable area of ​​the target document;

[0117] The control unit is configured to generate a display area for the target component in the editable area of ​​the target document, and display the target paragraph in the display area.

[0118] According to one or more embodiments of the present disclosure, there is provided an electronic device, including: at least one memory and at least one processor;

[0119] The at least one memory is used to store program code, and the at least one processor is used to call the program code stored in the at least one memory to execute any one of the above methods.

[0120] According to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium is used to store program code, and when the program code is executed by a processor, the processor is prompted to perform the above method.

[0121] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also encompasses other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in the present disclosure.

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

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

Claims

1. An information processing method, characterized in that: include: In response to receiving an instruction to insert a target component in an editable area of ​​a target document, obtaining a target paragraph having a title format in a document body of the target document; A display area of ​​the target component is generated in an editable area of ​​the target document, and the target paragraph is displayed in the display area.

2. The method according to claim 1, characterized in that Displaying the target paragraph in the display area includes: The target paragraph is displayed in the display area according to the title level of the target paragraph and / or the position relationship of the target paragraph.

3. The method according to claim 2, characterized in that Displaying the target paragraph in the display area according to the title level of the target paragraph includes: The higher the title level of the target paragraph, the smaller the indentation amount of the target paragraph in the preset direction when the target paragraph is displayed in the display area.

4. The method according to claim 1, characterized in that: Displaying the target paragraph in the display area includes: If at least one target paragraph in the title format is obtained in the document body, the target paragraph is displayed in the display area; or, If the target paragraph in the title format in the document body is not obtained, a blank or preset prompt information is displayed in the display area.

5. The method according to claim 1, characterized in that Also includes: In response to creating a new target paragraph having a heading format in the document body, displaying the newly created target paragraph in the display area; or, In response to an editing operation on a target paragraph in a title format in the document body, a display style of the target paragraph in the display area is updated according to the editing result.

6. The method according to claim 1, characterized in that Also includes: In response to a first operation event on a first target paragraph in the display area, the first target paragraph displayed in the display area is deleted, and the first target paragraph in the document body is retained.

7. The method according to claim 6, characterized in that Also includes: If the first target paragraph has at least one second target paragraph belonging to the first target paragraph, the second target paragraph is deleted in the display area, and the second target paragraph in the document body is retained.

8. The method according to claim 1, characterized in that Also includes: The target component has a filter control, and in response to a second operation event of setting a title level condition through the filter control, a target paragraph whose title level meets the title level condition is displayed in the display area.

9. The method according to claim 1, characterized in that: Displaying the target paragraph in the display area includes: displaying the target paragraph in an outline view or a mind map view in the display area; The method further comprises: In response to a third operation event, the target paragraph displayed in the outline view is converted to be displayed in a mind map view, or the target paragraph displayed in the mind map view is converted to be displayed in an outline map view.

10. The method according to claim 1, characterized in that Also includes: In response to a fourth operation event of the control mark on a third target paragraph in the document content of the target document, a target paragraph belonging to the third target paragraph is displayed.

11. An information processing device, comprising: an acquisition unit, configured to acquire a target paragraph having a title format in a document body of the target document in response to receiving an instruction to insert a target component in an editable area of ​​the target document; A control unit is used to generate a display area of ​​the target component in the editable area of ​​the target document, and display the target paragraph in the display area.

12. An electronic device comprising: at least one memory and at least one processor; The at least one memory is used to store program code, and the at least one processor is used to call the program code stored in the at least one memory to execute the method according to any one of claims 1 to 10.

13. A computer-readable storage medium, the computer-readable storage medium being used to store program code, wherein when the program code is executed by a processor, the processor is prompted to execute the method according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • A method and a device for automatically displaying a document directory

    CN108984685A

  • Document title tree construction method and device, electronic equipment and storage medium

    CN111460083A

  • Document directory generation method and device, electronic equipment and medium

    CN114118070A

  • Document outline extraction method and device, electronic equipment and storage medium

    CN115310436A

  • Information processing method and device, electronic equipment and storage medium

    CN115983244A