CN112380819A - Document editing method and device and electronic equipment - Google Patents

Document editing method and device and electronic equipment Download PDF

Info

Publication number
CN112380819A
CN112380819A CN202011287612.5A CN202011287612A CN112380819A CN 112380819 A CN112380819 A CN 112380819A CN 202011287612 A CN202011287612 A CN 202011287612A CN 112380819 A CN112380819 A CN 112380819A
Authority
CN
China
Prior art keywords
data object
input control
object input
target document
control
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.)
Granted
Application number
CN202011287612.5A
Other languages
Chinese (zh)
Other versions
CN112380819B (en
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 CN202011287612.5A priority Critical patent/CN112380819B/en
Publication of CN112380819A publication Critical patent/CN112380819A/en
Application granted granted Critical
Publication of CN112380819B publication Critical patent/CN112380819B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/111Mathematical or scientific formatting; Subscripts; Superscripts

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Artificial Intelligence (AREA)
  • Algebra (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Mathematical Physics (AREA)
  • Pure & Applied Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the disclosure discloses a document editing method and device and electronic equipment. One embodiment of the method comprises: responding to the editing operation of a data object input control displayed in a target document, and determining whether the data object input control meets a line feed display condition, wherein the control width of the data object input control is determined by the width of the data object; and in response to the data object input control meeting the line feed display condition, displaying the edited data object input control on the next line of the current line as a whole. Therefore, when the data object input control meets the line feed display condition, the data object input control edited by the user can be displayed on the same line in the target document as a whole.

Description

Document editing method and device and electronic equipment
Technical Field
The embodiment of the disclosure relates to the technical field of computers, in particular to a document editing method and device and electronic equipment.
Background
With the development of computer technology, a user can browse a document by using a terminal device, and a formula can be inserted into the document.
In the related art, a formula inserted in a document by a user may be presented across lines. That is, one part of the formula is shown in one row of the document and another part of the formula is shown in another row of the document.
Disclosure of Invention
This disclosure is provided to introduce concepts in a simplified form that are further described below in the detailed description. This disclosure is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
The embodiment of the disclosure provides a document editing method and device and electronic equipment, and when a data object input control meets a line feed display condition, a data object input in the data object input control can be displayed on the same line in a target document as a whole.
In a first aspect, an embodiment of the present disclosure provides a document editing method, where the method includes: responding to the editing operation of a data object input control displayed in a target document, and determining whether the data object input control meets a line feed display condition, wherein the control width of the data object input control is determined by the width of the data object; and in response to the data object input control meeting the line feed display condition, displaying the edited data object input control on the next line of the current line as a whole.
In a second aspect, an embodiment of the present disclosure provides a document editing apparatus, including: the determining unit is used for responding to the editing operation of the data object input control displayed in the target document and determining whether the data object input control meets a line feed display condition, wherein the control width of the data object input control is determined by the width of the data object; and the display unit is used for responding to the condition that the data object input control meets the line feed display condition, and displaying the edited data object input control on the next line of the current line as a whole.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including: one or more processors; storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to carry out the document editing method as described in the first aspect.
In a fourth aspect, embodiments of the present disclosure provide a computer readable medium, on which a computer program is stored, which when executed by a processor, performs the steps of the document editing method according to the first aspect.
The document editing method, the document editing device and the electronic equipment provided by the embodiment of the disclosure can detect the editing operation of the data object input control displayed in the target document. Further, in response to an editing operation for the data object input control displayed in the target document, it may be determined whether the data object input control satisfies a line feed display condition. In practice, the control width of the data object input control is determined by the width of the data object. And further, in response to that the data object input control meets a line feed display condition, displaying the edited data object input control on the next line of the current line as a whole. Therefore, when the data object input control meets the line feed display condition, the data object input in the data object input control can be displayed on the same line in the target document as a whole. Therefore, the flexibility of showing the data objects in the target document to the user can be improved. Further, the user experience of presenting data objects to a user may be enhanced.
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 features are not necessarily drawn to scale.
FIG. 1 is a flow diagram of some embodiments of a document editing method according to the present disclosure;
FIG. 2 is a flow diagram of determining whether a data object input control satisfies a line feed presentation condition in some embodiments of a document editing method according to the present disclosure;
FIG. 3 is a flow diagram illustrating an edited data object input control in some embodiments of a document editing method according to the present disclosure;
FIG. 4 is a flow diagram of sending operational data to a target user in some embodiments of a document editing method according to the present disclosure;
FIG. 5 is a flow diagram of deleting a data object input control in some embodiments of a document editing method according to the present disclosure;
FIG. 6 is a schematic block diagram of some embodiments of a document editing apparatus according to the present disclosure;
FIG. 7 is an exemplary system architecture to which the document editing methods of some embodiments of the present disclosure may be applied;
fig. 8 is a schematic diagram of a basic structure of an electronic device provided in accordance with some embodiments 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 the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed 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 "include" and variations thereof as used herein are 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", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used 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.
Referring to fig. 1, a flow diagram of some embodiments of a document editing method according to the present disclosure is shown. As shown in fig. 1, the document editing method includes the steps of:
step 101, responding to an editing operation of a data object input control displayed in a target document, and determining whether the data object input control meets a line feed display condition.
In the present embodiment, the execution subject of the document editing method (for example, the terminal device 701 shown in fig. 7) may detect an editing operation for the data object input control presented in the target document.
In some scenarios, the target document may be a document that is capable of being edited online.
The data object input control may be a control for inputting a data object. In practice, the data objects may be various data objects that can be entered in the target document. Alternatively, the data object may comprise a formula. In some scenarios, the data object may include an image.
The control width of the data object input control is determined by the width of the data object. In some scenarios, the control width of the data object input control increases as the width of the data object input by the user in the data object input control increases and decreases as the width of the data object input by the user in the data object input control decreases.
The editing operation may be an operation of a user editing a data object in the data object input control. For example, the editing operation may include at least one of: and adding the data object and deleting the data object.
In some scenarios, the execution subject may detect, through a built-in detection program, an editing operation of a data object input control presented in the target document.
In this embodiment, in response to detecting an editing operation for the data object input control, the execution body may determine whether the data object input control satisfies a line feed display condition.
The line feed display condition may be a condition for performing line feed display on the data object input control.
In some scenarios, the execution body may determine that the data object input control satisfies a line feed presentation condition in response to a user entering a predetermined symbol in the data object input control.
And 102, responding to the condition that the data object input control meets a line feed display condition, and displaying the edited data object input control on the next line of the current line as a whole.
In this embodiment, in response to that the data object input control satisfies the line feed presentation condition, the execution main body may present the edited data object input control as a whole in a next line of a current line.
It should be noted that the current line may be a line in the target document that currently shows the data object input control.
In this embodiment, when the user edits the data object in the data object input control, it is determined whether the data object input control satisfies the line feed display condition. And after the user finishes editing the data object, if the data object input control meets the line feed display condition, displaying the edited data object input control on the next line of the current line as a whole. Therefore, when the data object input control meets the line feed display condition, the edited data object input control can be displayed on the same line in the target document as a whole. Therefore, the flexibility of showing the data objects in the target document to the user can be improved. Further, the user experience of presenting data objects to a user may be enhanced.
In some embodiments, the executing entity may execute the step 101 according to the flow shown in fig. 2. The flow includes step 1011, step 1012 and step 1013.
Step 1011, monitoring the control width of the data object input control in response to the editing operation.
In some scenarios, the execution subject may monitor the control width of the data object input control through a built-in monitoring program.
Step 1012, determining whether the predetermined control boundary of the data object input control exceeds the predetermined display boundary of the displayed document content in the target document based on the width of the control.
The predetermined control boundary may be a boundary of the data object input control. For example, the predetermined control boundary may be a right boundary of the data object input control described above.
The predetermined display boundary may be a boundary of the target document where the document content is displayed. For example, the predetermined display boundary may be a right boundary of the display document contents in the above-described target document.
The predetermined control boundary moves to the predetermined display boundary based on an increase in the control width of the data object input control. For example, when a user inputs a data object in the data object input control, the control width of the data object input control is increased, and the right boundary of the data object input control moves to the right boundary of the document content displayed in the target document.
In some scenarios, the execution body may determine that the right boundary of the data object input control exceeds the right boundary of the content of the display document in the target document when the control width of the data object input control is greater than the content display width of the target document.
In some scenarios, the execution body may determine that the right boundary of the data object input control exceeds the right boundary of the displayed document content in the target document when a sum of a control width of the data object input control and a width of other content in a row in which the data object input control is located is greater than the content display width.
And 1013, in response to the fact that the boundary of the preset control exceeds the preset display boundary, determining that the data object input control meets a line feed display condition.
Thus, when the predetermined control boundary of the data object input control exceeds the predetermined display boundary of the display document content in the target document, the data object input control can be determined to meet the line feed display condition.
In some embodiments, the executing entity may execute the step 102 according to the flow shown in fig. 3. The flow includes step 1021, step 1022, and step 1023.
Step 1021, determining whether the control width of the edited data object input control is larger than the content display width of the target document.
The content display width may be a width of the content of the display document in the target document.
Step 1022, in response to the control width being greater than the content display width, determining a reduction ratio of the data object input control.
The above-mentioned reduction scale may be a scale for reducing the data object input control.
It will be appreciated that the control width of the data object input control is greater than the content display width of the target document, meaning that the predetermined control boundary of the data object input control exceeds the predetermined display boundary of the displayed document content in the target document. For example, the right boundary of the data object input control is beyond the right boundary of the displayed document content in the target document.
In some scenarios, the execution body may enter a predetermined scale (e.g., 50%) as the reduced scale of the data object input control.
And 1023, adjusting the edited data object input control based on the reduced scale, and displaying the adjusted data object input control in the next row as a whole.
In some scenarios, the executing entity may reduce the reduced scale of the edited data object input control. And the execution body may present the reduced data object input control as a whole on a next line of a current line.
Therefore, after editing, if the control width of the data object input control is larger than the content display width of the target document, the edited data object input control can be adjusted based on a certain reduction ratio, and then the adjusted data object input control is displayed on the next line of the current line.
In some embodiments, the executing agent may also execute the step 1022 as follows.
Specifically, the ratio of the content display width to the control width is determined as the reduction ratio.
It is easy to understand that the ratio of the content display width of the target document to the control width of the data object input control is taken as the reduction ratio of the data object input control, and after the data object input control is reduced, the display width of the data object input control in the target document is the content display width of the target document.
In some embodiments, the executing body may further execute the following steps.
Specifically, in response to detecting the zoom operation of the display interface of the target document, zooming the edited data object input control according to the zoom scale indicated by the zoom operation.
The zoom operation may be an operation of reducing or enlarging a presentation page of the target document. It is understood that when the presentation page of the target document is scaled by a certain scale, the target document is also scaled by the corresponding scale.
Therefore, when the user reduces or enlarges the display page of the target document, the data object input control in the target document can be reduced or enlarged according to the corresponding scaling. Thus, the data objects in the data object input control may be presented in the target document at a corresponding scale.
In some embodiments, before performing step 101, the performing body may further perform the following steps.
In response to the insertion operation of the data object input control into the target document, it is determined whether the editing interface exceeds the screen display area when displayed under the data object input control at step S1.
In some scenarios, the insertion operation may be a trigger operation performed by a user on an insertion control. The insertion control may be a control that triggers the insertion of a data object input control in the target document.
The screen display area may be an area for displaying information in the screen of the execution main body.
The editing interface may be an interface for editing a data object in a data object entry control.
In some scenarios, when the data object includes a formula, letters, operators, etc. for editing the formula in the data object input control may be exposed in the editing interface.
In step S2, in response to the editing interface exceeding the screen display area, the editing interface is displayed above the data object input control.
It is understood that the editing interface extends beyond the screen display area, meaning that a portion or all of the editing interface cannot be presented in the screen of the execution body described above.
Therefore, when the user inserts the data object input control into the target document, whether the editing interface can be completely displayed below the data object input control is preferentially determined. And if the editing interface can not be completely displayed below the data object input control, displaying the editing interface above the data object input control.
In some embodiments, before performing the step 101, the performing main body may further perform a step S3 shown below.
And step S3, responding to the editing interface not exceeding the screen display area, and displaying the editing interface below the data object input control.
Therefore, if the editing interface can be completely displayed below the data object input control, the editing interface is preferentially displayed below the data object input control.
In some embodiments, the execution body may also execute the flow shown in fig. 4. The flow includes step 401.
In step 401, operation data of the editing operation described above is transmitted to a target user who browses a target document through a server (for example, a server 702 shown in fig. 7).
The operation data is used for the terminal device (for example, the terminal device 703 shown in fig. 7) of the target user to perform the editing operation on the data object input control shown in the target document.
In some scenarios, after the user performs the editing operation on the data object input control displayed in the target document, the execution subject may send operation data for performing the editing operation to a server. Further, the server may send the operation data to a target user browsing the target document. Still further, the terminal device of the target user may perform the editing operation on the data object input control shown in the target document according to the received operation data.
Therefore, if the user executes the editing operation on the data object input control shown in the target document through the execution main body, the terminal device of the target user can also execute the same editing operation on the data object input control shown in the target document. Therefore, the editing operation of the execution body on the data object input control displayed in the target document can be synchronized to the target document browsed by the target user.
In some embodiments, the operational data includes at least one of: the number information of the data object input control, the type information of the data object input control, and the editing content of the data object input control by the user.
The type information may be information characterizing a type of the data object input control. In some scenarios, when the data object input control is a control for inputting a formula, the type information may be information characterizing that the data object input control is a control for a formula.
In some embodiments, the execution subject may also execute the flow shown in fig. 5. The flow includes step 501 and step 502.
Step 501, in response to receiving the deletion data of the data object input control sent by the server, deleting the data object input control from the target document.
The deletion data is data for other users to delete the data object input control from the target document.
In some scenarios, when another user deletes the data object input control shown in the target document, the terminal device of the other user may send deletion data for deleting the data object input control to the server. Further, the server may transmit the deletion data to the execution main body. Still further, the execution body may delete the data object input control from the target document.
Therefore, when other users delete the data object input control from the target document, the execution body can correspondingly delete the data object input control from the target document. Therefore, the operation of other users for deleting the data object from the target document can be synchronized to the execution subject.
And 502, displaying the deletion prompt information of the data object input control.
In practice, the deletion prompt information is displayed to prompt the user that the data object input control displayed in the target document is deleted by other users.
In some embodiments, before performing the step 101, the performing body may further perform a step L1, a step L2, and a step L3 as shown below.
Step L1, in response to receiving the input content of the target document, determines whether the input content is in a predefined format.
The input content may be content input by the user in the target document. For example, the input content may be text, pictures, tables, formulas, and the like.
The input content in the predefined format includes predefined characters and document input content. The document input content may be content for input in a target document.
In some scenarios, the predefined format may be a format in which the predefined characters are entered first, followed by entry of the document input content. For example, assuming "@ @ great family" is input content in a predefined format entered by the user in the target document, then "@" may be a predefined character entered by the user and "great family" may be document input content entered by the user.
It should be noted that the number and the type of the predefined characters included in the input content with the predefined format may be set according to actual requirements, and are not specifically limited in this disclosure.
Step L2, in response to the input content being in the predefined format, determines whether the predefined characters included with the input content indicate insertion of a data object input control in the target document.
In some scenarios, when the data object input control is a control for inputting a formula, the predefined character "rajy" may indicate that the data object input control for inputting a formula is inserted in the target document.
Step L3, in response to the predefined character included in the input content indicating to insert the data object input control in the target document, inserting the data object input control in the target document, and inputting the document input content included in the input content in the data object input control.
Thus, a user can insert a data object input control in a target document and input a corresponding data object in the data object input control by directly inputting input content in a predefined format in the target document. Therefore, the user does not need to execute the triggering operation on the inserting control for triggering the data object to be inserted into the target document and then input the data object into the inserted data object input control. Further, the flexibility of the user to input the data object in the target document can be improved.
With further reference to fig. 6, as an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a document editing apparatus, which correspond to the method embodiment shown in fig. 1, and which can be applied in various electronic devices.
As shown in fig. 6, the document editing apparatus of the present embodiment includes a determination unit 601 and a presentation unit 602. The determination unit 601 is configured to: and responding to the editing operation of the data object input control displayed in the target document, and determining whether the data object input control meets a line feed display condition, wherein the control width of the data object input control is determined by the width of the data object. The presentation unit 602 is configured to: and responding to the condition that the data object input control meets the line feed display condition, and displaying the edited data object input control on the next line of the current line as a whole.
In this embodiment, the detailed processing of the determining unit 601 and the displaying unit 602 of the document editing apparatus and the technical effects thereof can refer to the related descriptions of step 101 and step 102 in the corresponding embodiment of fig. 1, which are not repeated herein.
In some embodiments, the determining unit 601 is further configured to: monitoring the control width of the data object input control in response to the editing operation; determining whether a predetermined control boundary of the data object input control exceeds a predetermined display boundary of display document content in the target document based on the control width, wherein the predetermined control boundary moves towards the predetermined display boundary based on an increase in the control width of the data object input control; and responding to the fact that the preset control boundary exceeds the preset display boundary, and determining that the data object input control meets the line feed display condition.
In some embodiments, presentation unit 602 is further for: determining whether the control width of the edited data object input control is larger than the content display width of the target document; determining a reduction scale of the data object input control in response to the control width being greater than the content display width; and adjusting the edited data object input control based on the reduction scale, and displaying the adjusted data object input control on the next line as a whole.
In some embodiments, presentation unit 602 is further for: and determining the ratio of the content display width to the control width as a reduction scale.
In some embodiments, the document editing apparatus further includes a scaling unit (not shown in fig. 6). The scaling unit is configured to: and in response to the detected zoom operation of the display interface of the target document, zooming the edited data object input control according to the zoom scale indicated by the zoom operation.
In some embodiments, the above-described document editing apparatus further includes a display unit (not shown in fig. 6). The display unit is used for: in response to an insertion operation of inserting a data object input control into a target document, determining whether an editing interface exceeds a screen display area when displayed below the data object input control; and displaying the editing interface above the data object input control in response to the editing interface exceeding the screen display area.
In some embodiments, the display unit is further configured to: and displaying the editing interface below the data object input control in response to the editing interface not exceeding the screen display area.
In some embodiments, the above-described document editing apparatus further includes a transmission unit (not shown in fig. 6). The transmitting unit is configured to: and sending operation data of editing operation to a target user browsing the target document through the server, wherein the operation data is used for a terminal device of the target user to execute editing operation on the data object input control displayed in the target document.
In some embodiments, the operational data includes at least one of: the number information of the data object input control, the type information of the data object input control, and the editing content of the data object input control by the user.
In some embodiments, the above-described document editing apparatus further includes a deletion unit (not shown in fig. 6). The deleting unit is configured to: deleting the data object input control from the target document in response to receiving deletion data of the data object input control sent by the server, wherein the deletion data is data of other users for deleting the data object input control from the target document; and displaying the deletion prompt information of the data object input control.
In some embodiments, the above-described document editing apparatus further includes an input unit (not shown in fig. 6). The input unit is configured to: in response to receiving input content of a target document, determining whether the input content is in a predefined format, wherein the input content in the predefined format comprises predefined characters and document input content; in response to the input content adopting a predefined format, determining whether predefined characters included in the input content indicate that a data object input control is inserted in the target document; the method includes the steps of responding to the predefined character indication included by the input content to insert a data object input control in the target document, inserting the data object input control in the target document, and inputting the document input content included by the input content in the data object input control.
With further reference to fig. 7, fig. 7 illustrates an exemplary system architecture to which the document editing methods of some embodiments of the present disclosure may be applied.
As shown in fig. 7, the system architecture may include a terminal device 701, a server 702, and a terminal device 703. The terminal device 701, the server 702, and the terminal device 703 can communicate via a network. In practice, the network may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
Various client applications may be installed on the terminal devices 701, 703. For example, the terminal devices 701 and 703 may have a document editing application installed thereon.
In some scenarios, terminal device 701 may send operational data to server 702 for a user to perform an editing operation on a data object input control presented in a target document. Further, the server 702 may send the above operation data to the terminal device 703. Still further, the terminal device 703 executes the editing operation on the data object input control shown in the target document based on the operation data.
The terminal devices 701 and 703 may be hardware or software. When the terminal devices 701 and 703 are hardware, they may be various electronic devices having a display screen and supporting information interaction, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like. When the terminal devices 701 and 702 are software, they can be installed in the electronic devices listed above. It may be implemented as multiple pieces of software or software modules, or as a single piece of software or software module. And is not particularly limited herein.
The server 702 may be a server that provides various services. In some scenarios, server 702 may send operational data to terminal device 703 that a user of terminal device 701 performs an editing operation on a data object input control presented in a target document. Accordingly, server 702 may send operational data for a user of terminal device 703 to perform an editing operation on a data object input control presented in a target document to terminal device 701.
The server 703 may be hardware or software. When the server 704 is hardware, it can be implemented as a distributed server cluster composed of a plurality of servers, or as a single server. When the server 703 is software, it can be implemented as multiple pieces of software or software modules (e.g., multiple pieces of software or software modules used to provide distributed services), or as a single piece of software or software module. And is not particularly limited herein.
It should be noted that the document editing method provided by the embodiment of the present disclosure may be executed by the terminal device 701, and accordingly, a document editing apparatus may be provided in the terminal device 701.
It should be understood that the number of terminal devices, networks, and servers in fig. 7 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to fig. 8, shown is a schematic diagram of an electronic device (e.g., terminal device 701 of fig. 7) suitable for use in implementing some embodiments of the present disclosure. The terminal device in some 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-mounted 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 fig. 8 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure. The electronic device shown in fig. 8 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 8, an electronic device may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 801 that may 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 means 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data necessary for the operation of the electronic apparatus are also stored. The processing apparatus 801, the ROM 802, and the RAM 803 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 to communicate with other devices wirelessly or by wire to exchange data. While fig. 8 illustrates an electronic device having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in fig. 8 may represent one device or may represent multiple devices as desired.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by 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 described in some embodiments of 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 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 some embodiments of the 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 some embodiments of the present disclosure, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also 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 included in the electronic device or may exist separately without being incorporated in the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: responding to the editing operation of a data object input control displayed in a target document, and determining whether the data object input control meets a line feed display condition, wherein the control width of the data object input control is determined by the width of the data object; and in response to the data object input control meeting the line feed display condition, displaying the edited data object input control on the next line of the current line as a whole.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including but not limited to 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 some embodiments of the present disclosure may be implemented by software, and may also be implemented by hardware. Where the names of the cells do not in some cases constitute a limitation on the cells themselves, for example, the determination unit may also be described as a unit that determines whether the data object input control satisfies the line feed presentation condition in response to an editing operation for the data object input control presented in the target document.
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 portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
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 in the embodiments of the present disclosure is not limited to the particular combination of the above-described features, but also encompasses other embodiments in which any combination of the above-described features or their equivalents is possible without departing from the scope of the present disclosure. For example, the above features may be interchanged with other features disclosed in this disclosure (but not limited to) those having similar functions.
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 (14)

1. A method of document editing, comprising:
in response to an editing operation on a data object input control displayed in a target document, determining whether the data object input control meets a line feed display condition, wherein the control width of the data object input control is determined by the width of the data object;
and in response to the data object input control meeting the line feed display condition, displaying the edited data object input control on the next line of the current line as a whole.
2. The method of claim 1, wherein determining whether the data object input control satisfies a line feed presentation condition in response to an editing operation for the data object input control presented in the target document comprises:
monitoring a control width of the data object input control in response to the editing operation;
determining, based on the control width, whether a predetermined control boundary of the data object input control exceeds a predetermined display boundary of display document content in the target document, wherein the predetermined control boundary moves toward the predetermined display boundary based on an increase in the control width of the data object input control;
and in response to the preset control boundary exceeding the preset display boundary, determining that the data object input control meets the line feed display condition.
3. The method of claim 1, wherein the presenting the edited data object input control as a whole on a line next to a current line comprises:
determining whether the control width of the edited data object input control is larger than the content display width of the target document;
in response to the control width being greater than the content display width, determining a reduction scale of the data object input control;
and adjusting the edited data object input control based on the reduction scale, and displaying the adjusted data object input control on the next line as a whole.
4. The method of claim 3, wherein determining the scale of the data object input control comprises:
and determining the ratio of the content display width to the control width as the reduction scale.
5. The method of claim 1, further comprising:
and in response to the detection of the zooming operation of the display interface of the target document, zooming the edited data object input control according to the zooming scale indicated by the zooming operation.
6. The method of claim 1, wherein prior to said determining whether the data object input control satisfies a line feed presentation condition in response to an editing operation for a data object input control presented in a target document, the method further comprises:
in response to an insertion operation of the data object input control into the target document, determining whether an editing interface exceeds a screen display area when displayed below the data object input control;
and responding to the situation that the editing interface exceeds the screen display area, and displaying the editing interface above the data object input control.
7. The method of claim 6, wherein prior to said determining whether the data object input control satisfies a line feed presentation condition in response to an editing operation for a data object input control presented in a target document, the method further comprises:
and responding to the fact that the editing interface does not exceed the screen display area, and displaying the editing interface below the data object input control.
8. The method of claim 1, further comprising:
and sending operation data of the editing operation to a target user browsing the target document through a server, wherein the operation data is used for a terminal device of the target user to execute the editing operation on the data object input control displayed in the target document.
9. The method of claim 8, wherein the operational data comprises at least one of:
the number information of the data object input control, the type information of the data object input control, and the editing content of the data object input control by the user.
10. The method of claim 1, further comprising:
deleting the data object input control from the target document in response to receiving deletion data of the data object input control sent by a server, wherein the deletion data is data of other users for deleting the data object input control from the target document;
and displaying the deletion prompt information of the data object input control.
11. The method of any of claims 1-10, wherein prior to said determining whether a data object input control satisfies a line feed presentation condition in response to an editing operation for the data object input control presented in the target document, the method further comprises:
in response to receiving input content of the target document, determining whether the input content is in a predefined format, wherein the input content in the predefined format comprises predefined characters and document input content;
in response to the input content being in the predefined format, determining whether predefined characters included with the input content indicate insertion of a data object input control in the target document;
in response to the predefined character included with the input content indicating insertion of a data object input control in the target document, inserting a data object input control in the target document, and inputting the document input content included with the input content in the data object input control.
12. A document editing apparatus, comprising:
the determining unit is used for responding to an editing operation aiming at a data object input control displayed in a target document, and determining whether the data object input control meets a line feed display condition, wherein the control width of the data object input control is determined by the width of the data object;
and the display unit is used for responding to the condition that the data object input control meets the line feed display condition, and displaying the edited data object input control on the next line of the current line as a whole.
13. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-11.
14. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-11.
CN202011287612.5A 2020-11-17 2020-11-17 Document editing method and device and electronic equipment Active CN112380819B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011287612.5A CN112380819B (en) 2020-11-17 2020-11-17 Document editing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011287612.5A CN112380819B (en) 2020-11-17 2020-11-17 Document editing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN112380819A true CN112380819A (en) 2021-02-19
CN112380819B CN112380819B (en) 2024-06-21

Family

ID=74583986

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011287612.5A Active CN112380819B (en) 2020-11-17 2020-11-17 Document editing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112380819B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114781335A (en) * 2022-04-08 2022-07-22 北京达佳互联信息技术有限公司 Formula subtitle editing method and device, electronic equipment, medium and product
CN114995690A (en) * 2021-03-01 2022-09-02 北京字跳网络技术有限公司 Document creation method, device, equipment and storage medium
CN115061601A (en) * 2021-03-01 2022-09-16 北京字跳网络技术有限公司 Electronic document processing method and device, terminal and storage medium

Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101114281A (en) * 2007-08-30 2008-01-30 上海交通大学 Open type document isomorphism engines system
CN101403949A (en) * 2008-11-11 2009-04-08 珠海金山软件股份有限公司 Hand-written input equipment and method
US20110074824A1 (en) * 2009-09-30 2011-03-31 Microsoft Corporation Dynamic image presentation
CN103389968A (en) * 2013-07-10 2013-11-13 福州博远无线网络科技有限公司 Method and system for realizing rich text display
CN103425634A (en) * 2012-05-17 2013-12-04 北大方正集团有限公司 Method and device for generating streaming documents
CN103838709A (en) * 2014-03-05 2014-06-04 天闻数媒科技(北京)有限公司 Layout method and layout engine
CN104516867A (en) * 2013-09-30 2015-04-15 北大方正集团有限公司 Table reordering method and table reordering system
CN104881776A (en) * 2015-06-17 2015-09-02 贵州七十二弯信息科技有限公司 Office system convenient for multi-user collaboration
CN105468706A (en) * 2015-11-18 2016-04-06 天脉聚源(北京)传媒科技有限公司 Page display method and device
CN106155641A (en) * 2015-03-24 2016-11-23 北京神州泰岳软件股份有限公司 The method and system that a kind of mobile terminal application interface dynamically generates
CN106649230A (en) * 2016-09-30 2017-05-10 株洲中车时代电气股份有限公司 Automatic generation method of graph for logic diagram of train network control system
CN107025098A (en) * 2016-01-29 2017-08-08 北京国双科技有限公司 The method and device of rendering text
CN108092873A (en) * 2017-10-27 2018-05-29 颜厥护 A kind of instant communication method and system
CN108958861A (en) * 2018-06-14 2018-12-07 广州视源电子科技股份有限公司 Object display method, device and storage medium based on text control
CN109492208A (en) * 2018-10-12 2019-03-19 天津字节跳动科技有限公司 Document edit method and its device, equipment, storage medium
CN109635261A (en) * 2018-11-16 2019-04-16 天津字节跳动科技有限公司 Online document content edition method, device, storage medium and electronic equipment
CN109857504A (en) * 2019-01-25 2019-06-07 上海爱优威软件开发有限公司 A kind of interface control method for drafting and system
CN111209727A (en) * 2019-12-31 2020-05-29 网易(杭州)网络有限公司 Picture processing method and device, electronic equipment and storage medium
CN111552428A (en) * 2020-04-29 2020-08-18 腾讯科技(深圳)有限公司 Data processing method, data processing device, computer equipment and storage medium

Patent Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101114281A (en) * 2007-08-30 2008-01-30 上海交通大学 Open type document isomorphism engines system
CN101403949A (en) * 2008-11-11 2009-04-08 珠海金山软件股份有限公司 Hand-written input equipment and method
US20110074824A1 (en) * 2009-09-30 2011-03-31 Microsoft Corporation Dynamic image presentation
CN103425634A (en) * 2012-05-17 2013-12-04 北大方正集团有限公司 Method and device for generating streaming documents
CN103389968A (en) * 2013-07-10 2013-11-13 福州博远无线网络科技有限公司 Method and system for realizing rich text display
CN104516867A (en) * 2013-09-30 2015-04-15 北大方正集团有限公司 Table reordering method and table reordering system
CN103838709A (en) * 2014-03-05 2014-06-04 天闻数媒科技(北京)有限公司 Layout method and layout engine
CN106155641A (en) * 2015-03-24 2016-11-23 北京神州泰岳软件股份有限公司 The method and system that a kind of mobile terminal application interface dynamically generates
CN104881776A (en) * 2015-06-17 2015-09-02 贵州七十二弯信息科技有限公司 Office system convenient for multi-user collaboration
CN105468706A (en) * 2015-11-18 2016-04-06 天脉聚源(北京)传媒科技有限公司 Page display method and device
CN107025098A (en) * 2016-01-29 2017-08-08 北京国双科技有限公司 The method and device of rendering text
CN106649230A (en) * 2016-09-30 2017-05-10 株洲中车时代电气股份有限公司 Automatic generation method of graph for logic diagram of train network control system
CN108092873A (en) * 2017-10-27 2018-05-29 颜厥护 A kind of instant communication method and system
CN108958861A (en) * 2018-06-14 2018-12-07 广州视源电子科技股份有限公司 Object display method, device and storage medium based on text control
CN109492208A (en) * 2018-10-12 2019-03-19 天津字节跳动科技有限公司 Document edit method and its device, equipment, storage medium
CN109635261A (en) * 2018-11-16 2019-04-16 天津字节跳动科技有限公司 Online document content edition method, device, storage medium and electronic equipment
CN109857504A (en) * 2019-01-25 2019-06-07 上海爱优威软件开发有限公司 A kind of interface control method for drafting and system
CN111209727A (en) * 2019-12-31 2020-05-29 网易(杭州)网络有限公司 Picture processing method and device, electronic equipment and storage medium
CN111552428A (en) * 2020-04-29 2020-08-18 腾讯科技(深圳)有限公司 Data processing method, data processing device, computer equipment and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114995690A (en) * 2021-03-01 2022-09-02 北京字跳网络技术有限公司 Document creation method, device, equipment and storage medium
CN115061601A (en) * 2021-03-01 2022-09-16 北京字跳网络技术有限公司 Electronic document processing method and device, terminal and storage medium
CN115061601B (en) * 2021-03-01 2024-05-07 北京字跳网络技术有限公司 Electronic document processing method, device, terminal and storage medium
CN114781335A (en) * 2022-04-08 2022-07-22 北京达佳互联信息技术有限公司 Formula subtitle editing method and device, electronic equipment, medium and product

Also Published As

Publication number Publication date
CN112380819B (en) 2024-06-21

Similar Documents

Publication Publication Date Title
CN112380819B (en) Document editing method and device and electronic equipment
CN113191726B (en) Task detail interface display method, device, equipment and computer readable medium
CN112311656B (en) Message aggregation and display method and device, electronic equipment and computer readable medium
CN111459364B (en) Icon updating method and device and electronic equipment
CN113157153A (en) Content sharing method and device, electronic equipment and computer readable storage medium
CN112287206A (en) Information processing method and device and electronic equipment
CN112183045A (en) Online document processing method and device and electronic equipment
CN113128185A (en) Interaction method and device and electronic equipment
CN112269959A (en) Display content control method and device, readable medium and electronic equipment
CN112035030A (en) Information display method and device and electronic equipment
CN114064593B (en) Document sharing method, device, equipment and medium
CN114417782A (en) Display method and device and electronic equipment
CN111596992B (en) Navigation bar display method and device and electronic equipment
CN111596823B (en) Page display method and device and electronic equipment
CN111259291B (en) View display method and device and electronic equipment
CN111258582B (en) Window rendering method and device, computer equipment and storage medium
CN111756953A (en) Video processing method, device, equipment and computer readable medium
CN111273884A (en) Image display method and device and electronic equipment
CN112307393A (en) Information issuing method and device and electronic equipment
CN114742013A (en) Online document display method and device and electronic equipment
CN113011140A (en) View display method and device and electronic equipment
CN112333462A (en) Live broadcast room page jumping method, returning device and electronic equipment
CN112417276A (en) Paging data acquisition method and device, electronic equipment and computer readable storage medium
CN112307394A (en) Information display method and device and electronic equipment
CN110708425A (en) Message display method and device and electronic equipment

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
GR01 Patent grant
GR01 Patent grant