CN115983244A - Information processing method, device, electronic equipment and storage medium - Google Patents

Information processing method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115983244A
CN115983244A CN202310193240.7A CN202310193240A CN115983244A CN 115983244 A CN115983244 A CN 115983244A CN 202310193240 A CN202310193240 A CN 202310193240A CN 115983244 A CN115983244 A CN 115983244A
Authority
CN
China
Prior art keywords
target
target paragraph
display area
paragraph
document
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310193240.7A
Other languages
Chinese (zh)
Inventor
来庆宇
张锦芳
陈伟婷
林鸿锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Priority to CN202310193240.7A priority Critical patent/CN115983244A/en
Publication of CN115983244A publication Critical patent/CN115983244A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure provides an information processing method, an information processing apparatus, an electronic device, and a storage medium. An information processing method comprising: in response to receiving an instruction for inserting a target component in an editable area of a target document, acquiring a target paragraph with a title format in a document body of the target document; a display area of the target component is generated in the editable area of the target document, and the target paragraph is displayed in the display area. The embodiment of the disclosure can collect and display the target paragraphs with the title format in the document content.

Description

Information processing method, device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to an information processing method and apparatus, an electronic device, and a storage medium.
Background
Documents, such as online documents, having different titles may be provided with a catalog that is displayed in an outline view for quick access to the documents.
Disclosure of Invention
The disclosure provides an information processing method, an information processing apparatus, an electronic device, and a storage medium.
The present disclosure adopts the following technical solutions.
In some embodiments, the present disclosure provides an information processing method comprising:
in response to receiving an instruction for inserting a target component in an editable area of a target document, acquiring a target paragraph with a title format in a document body of the target document;
and generating a display area of the target component in the editable area of the target document, and displaying the target paragraph in the display area.
In some embodiments, the present disclosure provides an information processing apparatus comprising:
the editing device comprises an acquisition unit, a editing unit and a display unit, wherein the acquisition unit is used for responding to the fact that an instruction for inserting a target component is received in an editable area of a target document, and acquiring a target paragraph with a title format in a document body of the target document;
and the control unit is used for generating a display area of the target component in the editable area of the target document and displaying the target paragraph in the display area.
In some embodiments, the present disclosure provides an electronic device comprising: at least one memory and at least one processor;
the memory is used for storing program codes, and the processor is used for calling the program codes stored in the memory to execute the method.
In some embodiments, the present disclosure provides a computer-readable storage medium for storing program code which, when executed by a processor, causes the processor to perform the above-described method.
The information processing method provided by the embodiment of the disclosure is used for responding to the fact that an instruction for inserting a target component is received in an editable area of a target document, and acquiring a target paragraph with a title format in a document body of the target document; a display area of the target component is generated in the editable area of the target document, and the target paragraph is displayed in the display area. The embodiment of the disclosure can collect and display the target paragraphs with the title format in the document content.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and components are not necessarily drawn to scale.
Fig. 1 is a flowchart of an information processing method according to an embodiment of the present disclosure.
Fig. 2 to 6 are display diagrams of a target document of the embodiment of the present disclosure.
Fig. 7 is a flowchart of an information processing method according to an embodiment of the present disclosure.
Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that various steps recited in method embodiments of the present disclosure may be performed in parallel and/or in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "including" and variations thereof as used herein is intended to be open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a" or "an" in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that reference to "one or more" unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The embodiments of the present disclosure will be described in detail with reference to the accompanying drawings.
In some embodiments of the present disclosure, an information processing method is provided, wherein,
s11, responding to the fact that an instruction for inserting a target component is received in an editable area of the target document, and acquiring a target paragraph with a title format in a document body of the target document.
In some embodiments, the target document may be a local document or an online document. The target document has a document body, and the target document also has an editable area, wherein the editable area can be positioned outside the document body or in the document body. A paragraph in the body of a document may have a format, such as a title format, a body format, etc., which may indicate that the paragraph is a title paragraph. The paragraph having the title format is a target paragraph, and thus there may be a plurality of target paragraphs.
S12, generating a display area of the target assembly in the editable area of the target document, and displaying the target paragraph in the display area.
In some embodiments, after the target paragraph is retrieved, a display area of the target component is generated within the editable area of the target document, and the target paragraph is generated in the display area. According to the embodiment of the disclosure, the target paragraphs in the title format in the document body are collected, so that the display area is generated for display, information is integrated, and the use of a user is facilitated.
In some embodiments of the present disclosure, as shown in fig. 2 and 3, in response to receiving an instruction to insert a target component in an editable area of a target document, including: displaying a list of selectable controls in response to entering a target symbol in an editable area of the target document or triggering operation of a first control; in response to triggering a second control in the list of selectable controls, an instruction to insert the target component is generated.
In some embodiments, as shown in fig. 2, a preset target symbol, for example, "/", after the target symbol is input in the editable area, the selectable list may be called, and after the target symbol is input, text may be continuously input, a control in the selectable list may be searched according to the input text, for example, "directory" is input after the target symbol "/" is input in fig. 2, at this time, as shown in fig. 2, a second control "directory navigation" searched from the selectable list is displayed, and the second control is triggered by clicking or the like, so as to create the display area. In other embodiments, as shown in fig. 3, a first control may be displayed in the target document, and the first control may be triggered by clicking or the like, so as to display a selectable control list, and thus select a second control from the selectable control list, so as to create a display area. As shown in fig. 4, a display area in which a target paragraph is displayed is generated in the editable area of the target document.
In some embodiments of the present disclosure, displaying the target paragraph in the display area includes: and displaying the target paragraph in the display area according to the title level of the target paragraph and/or the position relation of the target paragraph.
In some embodiments, the target paragraphs correspond to a heading level, such as a primary heading level, a secondary heading level, etc., and the target paragraphs also correspond to a positional relationship in the body of the document, such as a chronological relationship of occurrence. Different target paragraphs are displayed in the display area in a differentiated manner according to the title level and the positional relationship of the target paragraph, thereby enabling the title level and the positional relationship thereof to be differentiated according to the display style of the target paragraph.
In some embodiments of the present disclosure, displaying the target paragraph in the display area according to the title level of the target paragraph comprises: the higher the title level of the target paragraph is, the smaller the amount of the target paragraph is retracted in a preset direction when the target paragraph is displayed in the display area.
In some embodiments, as shown in fig. 4, there may be multiple target paragraphs (for example, "one, function brief introduction" and the like displayed in the display area in fig. 4), the target paragraphs may have a title level, the indentation amount of different title levels in the display area may be different, the indentation amount of the target paragraph of the same title level in the display area may be the same, and the preset direction may be the right direction.
In some embodiments of the present disclosure, displaying the target paragraph in a display area includes: if at least one target paragraph in the document body with a title format is acquired, displaying the target paragraph in the display area; or if the target paragraph with the title format in the document body is not acquired, displaying blank or preset prompt information in the display area.
In some embodiments, if there is at least one target paragraph in the document body, the target paragraph may be displayed in the display area, and if all paragraphs in the document body do not have a title format, the target paragraph is not displayed, and at this time, a blank or a preset prompting message is displayed in the display area, where the preset prompting message may be, for example, a prompt such as "no title", or may be an error message.
In some embodiments of the present disclosure, further comprising: in response to creating a new target paragraph in the document body having a title format, displaying the newly created target paragraph in the display area; or responding to the editing operation of the target paragraph in the document body with the title format, and updating the display style of the target paragraph in the display area according to the editing result.
In some embodiments, when a paragraph is created in the document body that has a title format, 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 may be performed on a target paragraph in a document body, and the type of the editing operation may be multiple, for example, if the editing operation deletes the target paragraph or modifies the format of the target paragraph into a non-title format, the target paragraph will not be displayed in the display area any more, 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, so as to update the target paragraph and the target paragraph synchronously, and if the editing operation modifies the level of the target paragraph, the amount of shrinkage of the target paragraph will be adjusted in the display area. If the editing operation modifies the position of the target segment in the body of the document, the position of the target segment in the display area will be correspondingly modified in the display area.
In some embodiments of the present disclosure, further comprising: 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.
In some embodiments, the first target paragraph may be a target paragraph displayed in the display area, and for the first target paragraph displayed in the display area, the first target paragraph may be deleted from the display area by performing the first operation event, at which time the first target paragraph will remain in the document body. In some embodiments, the first operational event may be, for example, hovering a control marker over a first target paragraph in the display area, at which time a deletion control associated with the first target paragraph is displayed, the deletion control being triggered to delete the first target paragraph.
In some embodiments of the present disclosure, if the first target paragraph has at least one second target paragraph attributed 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.
In some embodiments, a first target paragraph may have at least one second target paragraph attributed to the first target paragraph, and taking fig. 4 as an example, the lower target paragraphs "2.1 bright spot 1" and "2.2 bright spot 2" attributed to the target paragraph are under "two, functional bright spots" displayed in the display area. After the target paragraph "second, functional highlight" is deleted from the display area, the next target paragraphs "2.1 highlight 1" and "2.2 highlight 2" will be automatically deleted from the display area, but still remain in the document body.
In some embodiments of the disclosure, the method further comprises: and the target component is provided with a screening control, and in response to a second operation event for setting a title level condition through the screening control, target paragraphs with the title levels meeting the title level condition are displayed in the display area.
In some embodiments, the target component has a filtering control, and the filtering control may set a title level condition as the filtering condition, and when the target paragraphs are displayed, not all of the target paragraphs but the target paragraphs that satisfy the title level condition may be displayed. For example, how many target paragraphs at the title level are displayed may be set in the filtering control, for example, if the title level condition is set to the title level of 1 to 5, only the target paragraphs at the title level of 1 to 5 are displayed, or of course, the title level condition may not be set, and all the target paragraphs may be displayed at this time.
In some embodiments of the present disclosure, the target paragraph displayed in the display area includes: displaying the target paragraph in an outline view or a thinking map view in the display area; the method further comprises the following steps: 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.
In some embodiments, the target component may be a directory component, a paragraph in the text content of the whole document of the target paragraph, or a paragraph of a certain chapter. The displayed target paragraphs may have two display modes of an outline view and a mind map view, and the directory displayed in the outline view and the target paragraphs displayed in the mind map view are schematically shown in fig. 4 and 5, respectively. It can be seen that in the outline mode, the structure is the same as the general directory structure, and the target paragraphs may be arranged in sequence according to the appearance order of the chapters in the outline view. The thinking guide graph view is a view adopting a tree structure and shows the attribution relationship among target paragraphs of different levels, the thinking guide graph view enables the attribution relationship of parent nodes and child nodes to be formed among the target paragraphs according to the level relationship of the target paragraphs, and the root node is a target document. In some embodiments of the present disclosure, multiple views are provided, and the target paragraph can be switched between an outline view and a thought graph view. The problem of using the outline view to express singleness is solved, the content frame of the document is displayed more intuitively through switching to the thinking guide view and a new content organization mode, and a user can switch and display between the outline view and the thinking guide view according to needs.
In some embodiments of the present disclosure, further comprising: and when the directory is displayed in the thinking graph view, responding to a trigger event of a target node in the document view, and jumping to the position of a target paragraph corresponding to the target node in the document body.
In some embodiments, as shown in fig. 5, under the thought-chart view, the relationship between the parent node and the child node is used to display each target paragraph, the root node is a target document, and after any target node is triggered, the target paragraph corresponding to the target node is automatically jumped to the position in the document content. For example, clicking on the node of "2.1 bright spot 1" in fig. 5, automatically jumps to the position of the target segment in the document content. In some embodiments, as shown in fig. 3, in the directory of the mind map view, each node is a node of the target paragraph, a parent node having a child node is associated with a display control (a circle with a horizontal line inside in fig. 3), and by triggering the display control, the child node of the associated parent node can be retracted, and then triggering the display control again, the child node can be expanded and displayed.
In some embodiments of the present disclosure, further comprising: in response to controlling a fourth operational event that identifies a third target paragraph in the document content of the target document, displaying a target paragraph that belongs to the third target paragraph.
In some embodiments, all target paragraphs under a target paragraph can be clearly seen in the display area, and all target paragraphs under a target paragraph cannot be well seen in the document content, so that the user needs to continuously turn down to finish turning over the content under a target paragraph to view the next target paragraph, or needs to return to the display area to view the next target paragraph, which causes inconvenience in use. Taking fig. 2 as an example, if the control mark is hovered over the target paragraph of "two, function bright spot" in fig. 2, a popup may be displayed, and "2.1 bright spot 1" and "2.2 bright spot 2" are displayed in the popup, and the popup may be closed when the control mark clicks a blank position. And when the displayed target paragraph is triggered, the displayed target paragraph can jump to the position of the target paragraph, so that the convenience is improved.
In some embodiments of the present disclosure, a third control is associated with the target document, and the target section displayed by the display area is switched between the outline view and the mind map view by the third control.
In some embodiments, as shown in fig. 6, a third control element (a box with two horizontal lines inside the upper right corner of the directory area in fig. 6) may be displayed in the display area, and after the third control element is triggered by clicking or the like, view options including an outline mode and a mind map mode are displayed, and the user may switch the view among the view options to select to display the target paragraph in the outline mode or the mind map mode.
To better illustrate the method proposed in the embodiment of the present disclosure, a specific embodiment is proposed in the following with reference to fig. 7, in this embodiment, a selectable control list (see fig. 2 and 3) can be called by triggering a function panel or inputting "\\" in an editable area of a target document, and if "directory navigation" is selected, it is determined whether there is a target paragraph in a title format in the document content of the current target document. If so, a display area is created and all of the target paragraphs are displayed in the display area, the created target paragraphs are displayed in an outline view by default, and if not, an empty status prompt is displayed. The created display area may be as shown in FIG. 4, at which time the user may hover the control icon over the control for switching views (as shown in FIG. 6), display the switched views, select the mind map mode, and switch the target paragraph to the mind map view (as shown in FIG. 5). The content of the target paragraph in the display area is automatically updated according to the change of the target paragraph in the document body, and the target paragraph can be modified in the display area, so that the target paragraph in the document body is automatically updated. When a control identifier (such as a mouse) is hovered at any node on a target paragraph of the thinking map view, the node is highlighted, and after the node is triggered, the position of the target paragraph corresponding to the node in the target document is jumped to.
Some embodiments of the present disclosure also provide an information processing apparatus, including:
the editing device comprises an acquisition unit, a editing unit and a display unit, wherein the acquisition unit is used for responding to the fact that an instruction for inserting a target component is received in an editable area of a target document, and acquiring a target paragraph with a title format in a document body of the target document;
and the control unit is used for generating a display area of the target assembly in the editable area of the target document and displaying the target paragraph in the display area.
In some embodiments, displaying the target paragraph in the display area includes: and displaying the target paragraph in the display area according to the title level of the target paragraph and/or the position relation of the target paragraph.
In some embodiments, displaying the target paragraph in the display area according to the title level of the target paragraph comprises:
the higher the title level of the target paragraph is, the smaller the amount of the target paragraph is retracted in a preset direction when the target paragraph is displayed in the display area.
In some embodiments, displaying the target paragraph in the display area includes:
if at least one target paragraph in the document body with a title format is obtained, displaying the target paragraph in the display area; alternatively, the first and second electrodes may be,
and if the target paragraph with the title format in the document body is not acquired, displaying blank or preset prompt information in the display area.
In some embodiments, the control unit is further configured to: in response to creating a new target paragraph in the document body having a title format, displaying the newly created target paragraph in the display area; alternatively, the first and second electrodes may be,
and in response to the editing operation of the target paragraph in the document body with the title format, updating the display style of the target paragraph in the display area according to the editing result.
In some embodiments, the control unit is further configured to: in response to a first operational 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.
In some embodiments, the control unit is further configured to: and if the first target paragraph falls down and has at least one second target paragraph attributed to the first target paragraph, deleting the second target paragraph in the display area, and keeping the second target paragraph in the document body.
In some embodiments, the target component has a filter control therein, and the control unit is further configured to: in response to a second operation event that the title level condition is set by the filtering control, displaying a target paragraph of which the title level satisfies the title level condition in the display area.
In some embodiments, displaying the target paragraph in the display area includes: displaying the target paragraph in an outline view or a thinking map view in the display area;
in some embodiments, the control unit is further configured to: 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.
In some embodiments, the control unit is further configured to: in response to controlling a fourth operational event that identifies a third target paragraph in document content of the target document, displaying a target paragraph that is attributed to the third target paragraph.
For the embodiments of the apparatus, since they correspond substantially to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described apparatus embodiments are merely illustrative, wherein the modules described as separate modules may or may not be separate. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The method and apparatus of the present disclosure have been 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.
Referring now to fig. 8, a schematic diagram of an electronic device (e.g., a terminal device or server) 800 suitable for use in implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a fixed terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in the drawings is only an example and should not bring any limitation to the functions and use range of the embodiments of the present disclosure.
The electronic device 800 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 801 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM) 802 or a program loaded from a storage means 808 into a Random Access Memory (RAM) 803. In the RAM803, various programs and data necessary for the operation of the electronic apparatus 800 are also stored. The processing apparatus 801, the ROM 802, and the RAM803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
Generally, the following devices may be connected to the I/O interface 805: input devices 806 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 807 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage 808 including, for example, magnetic tape, hard disk, etc.; and a communication device 809. The communication means 809 may allow the electronic device 800 to communicate wirelessly or by wire with other devices to exchange data. While shown with various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may be alternatively implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 809, or installed from the storage means 808, or installed from the ROM 802. The computer program, when executed by the processing apparatus 801, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can 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 electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to perform the methods of the present disclosure as described above.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of 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 the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of an element does not in some cases constitute a limitation on the element itself.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems on a chip (SOCs), complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, 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 compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, there is provided an information processing method including:
in response to receiving an instruction for inserting a target component in an editable area of a target document, acquiring a target paragraph in a document body of the target document in a title format;
and generating a display area of the target component in the editable area of the target document, and displaying the target paragraph in the display area.
According to one or more embodiments of the present disclosure, there is provided an information processing method of displaying a target paragraph in a display area, including:
and displaying the target paragraph in the display area according to the title level of the target paragraph and/or the position relation of the target paragraph.
According to one or more embodiments of the present disclosure, there is provided an information processing method of displaying a target paragraph in a display area according to a title level of the target paragraph, including:
the higher the title level of the target paragraph is, the smaller the amount of the target paragraph is retracted in a preset direction when the target paragraph is displayed in the display area.
According to one or more embodiments of the present disclosure, there is provided an information processing method of displaying a target paragraph in a display area, including:
if at least one target paragraph in the document body with a title format is acquired, displaying the target paragraph in the display area; alternatively, the first and second liquid crystal display panels may be,
and if the target paragraph with the title format in the document body is not acquired, displaying blank or preset prompt information in the display area.
According to one or more embodiments of the present disclosure, there is provided an information processing method, further including:
in response to creating a new target paragraph in the document body having a title format, displaying the newly created target paragraph in the display area; alternatively, the first and second electrodes may be,
and in response to the editing operation of the target paragraph in the document body with the title format, updating the display style of the target paragraph in the display area according to the editing result.
According to one or more embodiments of the present disclosure, there is provided an information processing method, further including:
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.
According to one or more embodiments of the present disclosure, there is provided an information processing method, further including:
if the first target paragraph has at least one second target paragraph attributed to the first target paragraph, deleting the second target paragraph in the display area, and retaining the second target paragraph in the document body.
According to one or more embodiments of the present disclosure, there is provided an information processing method, further including:
and the target component is provided with a screening control, and in response to a second operation event for setting a title level condition through the screening control, target paragraphs with the title levels meeting the title level condition are displayed in the display area.
According to one or more embodiments of the present disclosure, there is provided an information processing method of displaying a target paragraph in a display area, including: displaying the target paragraph in an outline view or a mind map view in the display area; the method further comprises the following steps:
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.
According to one or more embodiments of the present disclosure, there is provided an information processing method, further including:
in response to controlling a fourth operational event that identifies a third target paragraph in document content of the target document, displaying a target paragraph that is attributed to the third target paragraph.
According to one or more embodiments of the present disclosure, there is provided an information processing apparatus including:
the editing device comprises an acquisition unit, a editing unit and a display unit, wherein the acquisition unit is used for responding to the fact that an instruction for inserting a target component is received in an editable area of a target document, and acquiring a target paragraph with a title format in a document body of the target document;
and the control unit is used for generating a display area of the target assembly in the editable area of the target document and displaying the target paragraph in the display area.
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;
wherein the at least one memory is configured to store program code and the at least one processor is configured to call the program code stored in the at least one memory to perform the method of any one of the above.
According to one or more embodiments of the present disclosure, there is provided a computer-readable storage medium for storing program code, which, when executed by a processor, causes the processor to perform the above-described method.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to 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 disclosed as example forms of implementing the claims.

Claims (13)

1. An information processing method characterized by comprising:
in response to receiving an instruction for inserting a target component in an editable area of a target document, acquiring a target paragraph with a title format in a document body of the target document;
and generating a display area of the target component in the editable area of the target document, and displaying the target paragraph in the display area.
2. The method of claim 1, wherein displaying the target paragraph in the display area comprises:
and displaying the target paragraph in the display area according to the title level of the target paragraph and/or the position relation of the target paragraph.
3. The method of claim 2, wherein displaying the target paragraph in the display area according to a title level of the target paragraph comprises:
the higher the title level of the target paragraph is, the smaller the amount of the target paragraph is retracted in a preset direction when the target paragraph is displayed in the display area.
4. The method of claim 1, wherein displaying the target paragraph in the display area comprises:
if at least one target paragraph in the document body with a title format is obtained, displaying the target paragraph in the display area; alternatively, the first and second electrodes may be,
and if the target paragraph with the title format in the document body is not acquired, displaying blank or preset prompt information in the display area.
5. The method of claim 1, further comprising:
in response to creating a new target paragraph in the document body having a title format, displaying the newly created target paragraph in the display area; alternatively, the first and second electrodes may be,
and in response to the editing operation of the target paragraph in the document body with the title format, updating the display style of the target paragraph in the display area according to the editing result.
6. The method of claim 1, further comprising:
in response to a first operational 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.
7. The method of claim 6, further comprising:
and if the first target paragraph falls down and has at least one second target paragraph attributed to the first target paragraph, deleting the second target paragraph in the display area, and keeping the second target paragraph in the document body.
8. The method of claim 1, further comprising:
the target assembly is provided with a screening control, and in response to a second operation event of setting a title level condition through the screening control, target paragraphs with title levels meeting the title level condition are displayed in the display area.
9. The method of claim 1,
displaying the target paragraph in the display area, including: displaying the target paragraph in an outline view or a mind map view in the display area;
the method further comprises the following steps:
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 of claim 1, further comprising:
in response to controlling a fourth operational event that identifies a third target paragraph in document content of the target document, displaying a target paragraph that is attributed to the third target paragraph.
11. An information processing apparatus comprising:
the editing device comprises an acquisition unit, a editing unit and a display unit, wherein the acquisition unit is used for responding to the fact that an instruction for inserting a target component is received in an editable area of a target document, and acquiring a target paragraph with a title format in a document body of the target document;
and the control unit is used for generating a display area of the target component in the editable area of the target document and displaying the target paragraph in the display area.
12. An electronic device, comprising:
at least one memory and at least one processor;
wherein the at least one memory is configured to store program code and the at least one processor is configured to invoke the program code stored in the at least one memory to perform the method of any of claims 1 to 10.
13. A computer readable storage medium for storing program code which, when executed by a processor, causes the processor to perform the method of any of claims 1 to 10.
CN202310193240.7A 2023-02-28 2023-02-28 Information processing method, device, electronic equipment and storage medium Pending CN115983244A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310193240.7A CN115983244A (en) 2023-02-28 2023-02-28 Information processing method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310193240.7A CN115983244A (en) 2023-02-28 2023-02-28 Information processing method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115983244A true CN115983244A (en) 2023-04-18

Family

ID=85970756

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310193240.7A Pending CN115983244A (en) 2023-02-28 2023-02-28 Information processing method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115983244A (en)

Similar Documents

Publication Publication Date Title
CN111190520A (en) Menu item selection method and device, readable medium and electronic equipment
CN115079872B (en) Document processing method, device, equipment and medium
CN113946271A (en) Display control method, display control device, electronic equipment and storage medium
US20230409816A1 (en) Document update method and apparatus, device, and medium
WO2023078405A1 (en) Display control method and apparatus, and electronic device and storage medium
CN110383244A (en) A kind of operation method and terminal of calculator
CN111857720A (en) Method and device for generating user interface state information, electronic equipment and medium
CN115113861A (en) Flow processing method, device and equipment
CN115525370A (en) View management method and device, electronic equipment and storage medium
WO2024078471A1 (en) Work item information viewing method and apparatus, electronic device, and storage medium
CN114997117A (en) Document editing method, device, terminal and non-transitory storage medium
CN115113787B (en) Message processing method, device, equipment and medium
CN115983244A (en) Information processing method, device, electronic equipment and storage medium
EP4283497A1 (en) Electronic document processing method and apparatus, terminal, and storage medium
CN114580361A (en) Document processing method and device, electronic equipment and storage medium
CN115526953A (en) Method and device for generating view, electronic equipment and storage medium
CN115525371A (en) Image semantic alignment method and device, electronic equipment and storage medium
CN111552705B (en) Data processing method and device based on chart, electronic equipment and medium
CN115016878A (en) Information processing method and device and electronic equipment
CN114185463A (en) Form processing method and device, electronic equipment and storage medium
CN114138149A (en) Data screening method and device, readable medium and electronic equipment
CN114997116A (en) Document editing method, device, equipment and storage medium
CN113253962A (en) Application window display method, device and equipment
CN114995690A (en) Document creation method, device, equipment and storage medium
CN114997104A (en) Document display method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination