Electronic document processing method, device, terminal, and storage medium
Patent Information
- Application Number
- JP2023562663
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2021-04-14
- Filing Date
- 2022-04-11
- Publication Date
- 2025-02-26
- Estimated Expiration
- 2042-04-11
AI Technical Summary
【0010】 図面及び以下の具体的な実施形態を参照すると、本開示の各実施例の上記及びほかの特徴、利点及び態様がより明白になる。図面全体において、同一又は類似の符号は同一又は類似の要素を示す。図面が例示的なものであり、素子及び要素が必ずしも縮尺に合わせて描かれているわけではないことを理解すべきである。
Smart Images

Figure 0007635925000001 
Figure 0007635925000002 
Figure 0007635925000003
Abstract
Description
[Technical field]
[0001] [CROSS REFERENCE TO RELATED APPLICATIONS] This application is filed based on a Chinese patent application bearing application number 202110401811.2, filing date April 14, 2021, and entitled "Electronic document processing method, apparatus, terminal, and storage medium," and claims priority to the Chinese patent application, the entire contents of which are hereby incorporated by reference into this application.
[0002] [Technical field] The present disclosure relates to the field of computer technology, and more particularly to an electronic document processing method, device, terminal, and storage medium. [Background technology]
[0003] With the development of computer technology, electronic documents are widely used. Electronic documents are usually stored in a server, but may also be stored in a local client, and authorized users can access and edit the electronic documents. Summary of the Invention [Problem to be solved by the invention]
[0004] The present disclosure provides a method, device, terminal and storage medium for processing electronic documents. [Means for solving the problem]
[0005] The present disclosure adopts the following technical solutions: In some embodiments, the present disclosure provides a method for determining a target content block in response to a first operation on a target content of an electronic document, and displaying at least one related operation option according to the first operation and a content type of the target content block, where the content block is a unit for carrying a content of the electronic document, and the operation option is configured to take the content block as an operation object; in response to a trigger operation on a target operation option, performing an operation on the target content block according to the target operation option.
[0006] In some embodiments, the present disclosure provides: a determining unit for determining a target content block in response to a first operation on the target content of the electronic document; a display unit for displaying at least one associated operation option according to the first operation and a content type of the target content block, the content block being a unit for carrying a content of an electronic document, and the operation option being configured to take the content block as an operation object; a processing unit for performing an operation on the targeted content block in response to a trigger operation on a targeted operation option according to the targeted operation option.
[0007] In some embodiments, the present disclosure provides a terminal including at least one memory for storing program code and at least one processor for invoking the program code stored in the memory to perform the method.
[0008] In some embodiments, the present disclosure provides a storage medium for storing program code for performing the above-described methods.
[0009] An electronic document processing method according to an embodiment of the present disclosure includes determining a target content block in response to a first operation on a target content of the electronic document, displaying at least one associated operation option according to the first operation and a content type of the target content block, and performing an operation on the target content block according to the target operation option in response to a trigger operation on the target operation option. In some embodiments of the present disclosure, a user can currently invoke an operation option related to the first operation and the content type of the target content block, thereby directly performing an operation on the content block and improving the convenience of the operation.
[0010] The above and other features, advantages and aspects of each embodiment of the present disclosure will become more apparent with reference to the drawings and the following specific embodiments. Throughout the drawings, the same or similar reference numerals refer to the same or similar elements. It should be understood that the drawings are illustrative and that the elements and components are not necessarily drawn to scale. [Brief description of the drawings]
[0011] [Figure 1] 1 is a flowchart of a method for processing an electronic document in an embodiment of the present disclosure. [Diagram 2] FIG. 2 is a diagram showing an interface display of an electronic document in an embodiment of the present disclosure. [Diagram 3] FIG. 13 is a diagram showing an interface display of another electronic document in an embodiment of the present disclosure. [Figure 4] FIG. 2 is a timing diagram of internal interactions of a terminal in an embodiment of the present disclosure. [Diagram 5] FIG. 1 is a configuration diagram of an electronic document processing device according to an embodiment of the present disclosure. [Figure 6] FIG. 1 is a structural schematic diagram of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] Hereinafter, the embodiments of the present disclosure will be described in more detail with reference to the drawings. Although the drawings show some embodiments of the present disclosure, it should be understood that the present disclosure can be realized in various forms and should not be construed as being limited to the embodiments described herein, but rather, these embodiments are provided to make the present disclosure more clear and complete. It should be understood that the drawings and embodiments of the present disclosure are merely illustrative and are not intended to limit the protection scope of the present disclosure.
[0013] It should be understood that the steps described in the method embodiments of the present disclosure may be performed in any order and / or in parallel, and that the method embodiments may include additional steps and / or omit the performance of steps that are shown, and that the scope of the present disclosure is not limited in this respect.
[0014] As used herein, the term "including" and variations thereof are open inclusive, i.e., "including, but not limited to." The term "based on" means "based at least in part on." The term "in one embodiment" means "at least one embodiment," the term "in another embodiment" means "at least one other embodiment," and the term "in some embodiments" means "at least some embodiments." Relevant definitions of other terms are provided in the description below.
[0015] It should be noted that the concepts of "first", "second", etc. referred to in this disclosure are used only to distinguish different devices, modules or units, and are not intended to limit the order or interdependence of functions performed by these devices, modules or units.
[0016] It should be noted that the "one" referred to in this disclosure is an exemplary modification rather than a limiting modification, and as would be understood by one of ordinary skill in the art, should be "one or more" unless the context clearly indicates otherwise.
[0017] The names of messages or information exchanged between devices in the embodiments of the present disclosure are used for illustrative purposes only and are not intended to limit the scope of these messages or information.
[0018] Hereinafter, means according to the embodiments of the present disclosure will be described in detail with reference to the drawings.
[0019] In some embodiments of the present disclosure, a method for processing an electronic document is proposed, which includes steps S11 to S13 as shown in FIG.
[0020] S11: Determine a targeted content block in response to a first operation on targeted content of an electronic document.
[0021] In some embodiments, the electronic document includes at least one content block, where a content block is a unit for carrying content of the electronic document, and the target content block may be one content block or may be at least two content blocks, and the content in one content block is not limited and may include one or more of text, image, table, etc., and in some embodiments, one content block may be one paragraph or at least two paragraphs of the electronic document. The target content may be any content in the electronic document, such as text, image, table, etc.
[0022] S12: Display at least one related operation option according to a first operation and a content type of the target content block.
[0023] In some embodiments, the first operation is not limited and may be a click operation, a long press operation, etc., and the content type of the target content block may be a text type, an image type, a document type, etc. The operation option is related to the content type of the target content block, for example, if the content type of the target content block is a text type, a font change option can be displayed, and if the content type of the target content block is an image type, the font cannot be changed, so there is no need to display the operation option related to the font. The operation option is configured to perform an operation using the content block as an operation object, that is, the basic operation unit of the operation option is not a character in an electronic document but a content block, and in some embodiments, the operation option can operate one or at least two content blocks, which is different from the operation option in the related art that uses a character as an operation unit. In some embodiments, the operation option is related to the first operation and the content type of the target content block, and for example, may be configured to display different operation options according to combinations of different first operations and different content types, and in some embodiments, first, candidate operation options may be determined according to the content type of the target content block, and then, an operation option may be determined from the candidate operation options according to the first operation and displayed. For example, if the content type of the target content block is an image, operation options related to the image (adjusting brightness, contrast, etc.) may be determined as the candidate operation options, and the operation options to be displayed among the candidate operations may be determined according to the first operation, e.g., if the first operation is a sliding operation, different operation options may be displayed when sliding in different directions, in this way the operation option that the user wants to use can be easily and quickly identified and the number of operation options displayed in the display interface can be reduced.
[0024] S13: In response to a trigger operation on the target operation option, an operation is performed on the target content block according to the target operation option.
[0025] In some embodiments, the trigger action may be, for example, a click action, a long press action, etc., the trigger action may be a combination of multiple actions, and the target action option may be any one of the action options.
[0026] In related technologies, electronic documents provide operation options such as copy and cut, but all of these operation options use characters as operation objects, so when an operation needs to be performed on a paragraph, the paragraph needs to be box selected, which brings inconvenience in use; and, usually, all related options are displayed when the operation options are displayed, making it difficult for users to quickly identify the required operation option and occupying a lot of the display interface; on the other hand, in some embodiments of the present disclosure, related operation options are called up according to a first operation and the content type of the target content block, and the operation options are configured to perform operations using the content block as the operation object, so that operations can be directly performed on the target content block, thereby improving the convenience of operation, making it easier for users to quickly identify the required operation option, and further reducing the display area occupied by the operation options.
[0027] In some embodiments of the present disclosure, determining a target content block in response to a first operation on a target content of an electronic document includes determining a content block including the target content as the target content block in response to a trigger command on the target content, or determining a content block corresponding to the relevant region as the target content block in response to a trigger command on a related region of the target content. In some embodiments, the target content block may be determined by triggering some or all of the content in the target content block. In other embodiments, the content block has a related region, and the related region may be, for example, a title corresponding to the content block, for example, if the content block is a paragraph or a chapter, the title of the content block may be a paragraph title or a chapter title, and the target block corresponding to the title may be directly selected by performing a first operation on the title, thereby quickly selecting the target content block and not needing to perform a selection operation on the entire target content block.
[0028] In some embodiments of the present disclosure, the first operation includes a slide operation in a first direction, and the step of displaying at least one associated operation option in response to the first operation on the target content of the electronic document includes a step of displaying the operation option in a second direction in a first region of the current page, the first region being a different region from a second region in which the target content block is located, in response to the slide operation in the first direction on the target content. In some embodiments, the slide operation may be a left slide or a right slide, since the up slide and down slide are usually given the meaning of switching the displayed content. As shown in FIG. 2, the electronic document shown in FIG. 2 has two content blocks, which are "It is sunny today on Tuesday" and "It is expected to rain tomorrow on Wednesday", respectively. By performing a slide operation in a first direction on either of the content blocks, an operation option ("Copy", "Cut" and "Style" in FIG. 2) is called up, and the operation option is called up and displayed in a second direction. Since the first direction of the first operation is different from the second direction in which the operation option is displayed, the user can recognize that the operation option corresponds to the target content block. If the first direction and the second direction were the same, the user would not be able to recognize whether the operation option is used to perform an operation on the entire electronic document or on the target content block.
[0029] In some embodiments of the present disclosure, when the second region in which the target content block is located is in the first region, the step of displaying the operation option in the second direction in the first region of the current page includes the step of moving the target content block located on one side of the operation option while the operation option is displayed. In some embodiments, the display position of the operation option and the location position of the target content block may overlap, and in this case, the operation option may block the target content block, which may result in difficulty for the user to use, therefore, in some embodiments of the present disclosure, the target content block is automatically moved, for example, by sliding the entire electronic document up or down while keeping the target content block in the current display interface, so that the target content block is located on one side of the operation option, which may result in difficulty for the user to use.
[0030] In some embodiments of the present disclosure, displaying at least one associated operation option according to the first operation and the content type of the target content block includes displaying at least one associated operation option according to the first operation, the content type of the target content block, and a user permission of a current user. In some embodiments of the present disclosure, the types of operation options associated with different user permissions are different, and in some embodiments, the number of operation options associated with different user permissions are different. In some embodiments, the operation options displayed can be changed by the user, but the number and types of operation options that a user can set are related to the user permission, and different upper limits can be set for the number of operation options for different user permissions.
[0031] In some embodiments of the present disclosure, the method further includes changing the content type of the target content block in response to an operation to change the content type of the target content block, and updating the operation option according to the changed content type. In some embodiments, a user may change the content type of the target content block, for example, the operation option may include a content type change option, and the content type change of the target content block is realized by triggering the content type change option, for example, changing a text type content block to an image type content block, and after changing the content type, updating the displayed operation option according to the changed content type, for example, displaying an operation option corresponding to the image type.
[0032] In some embodiments of the present disclosure, during the display of the operation options, in response to a content type change command for the target content block sent by the target terminal, the displayed operation options are updated according to the changed content type of the target content block. In some embodiments, the target terminal may send a change command to an execution entity of the method in the embodiments of the present disclosure to change the content type of the target content block, and at this time, the displayed operation options are dynamically updated and displayed according to the changed content type of the target content block.
[0033] In some embodiments of the present disclosure, the method further includes changing the type and / or number of associated operation options in response to the operation option change operation event. In some embodiments, the different operation options associated with different first operations, content types, or user permissions are changeable, and the selectable operation options and the selectable number may be preset for different first operations, content types, and user permissions, and a user of any user permission may select operation options from the selectable operation options up to the selectable number. In some embodiments, the number and type of operation options associated with the user permission set by the current user are only valid for the current user.
[0034] In some embodiments of the present disclosure, the electronic document is a shared document, and the shared document can be operated on simultaneously or non-simultaneously by at least two authorized users. In some embodiments, the shared document may be stored on a server, and different users can simultaneously view or edit the shared document through different terminals, thereby realizing collaboration, and therefore, in some embodiments of the present disclosure, the target terminal may be a terminal used by another user.
[0035] In some embodiments of the present disclosure, the target content block includes a link identifier of an attachment inserted or cited in the electronic document, and text is displayed within the link identifier, where the text displayed within the link identifier has different editing attributes than the text content entered into the document, and while the text content entered into the document can be directly selected and edited, the text displayed within the link identifier cannot be selected, only the entire link itself can be selected, i.e., selecting a link directly opens the corresponding link content, the target operation options include a style change option, and the step of manipulating the target content block in accordance with the target operation options includes a step of changing the display style of the text in the link identifier in accordance with the selected style change option. In some embodiments, as shown in FIG. 3, an attachment, such as "user manual.doc", is introduced into an electronic document, and a link identifier of the attachment is displayed in the electronic document. The title name of the attachment is usually the content of the link identifier. Assuming that the attachment is a single target content block, after a user performs a first operation on the target content block, operation options are displayed in the display interface of the electronic document, including "B" for adjusting the thickness, "I" for adjusting the inclination, and "abc" for striking through, which are displayed at the bottom in FIG. 3. In the embodiment of the present disclosure, a strikethrough may be displayed on the link identifier by selecting the strikethrough option (see FIG. 3). In the related technology, when an attachment is introduced into an electronic document, a link (usually displayed as a title name) and an icon of the attachment are displayed, but the style of the title name in the link cannot be changed, and as a result, it is not unified with the style of other contents in the electronic document, which leads to a poor user experience. In the embodiment of the present disclosure, the font style of the title in the link of the attachment can be changed, thereby improving the user experience.
[0036] In some embodiments of the present disclosure, the operation options include at least one of a comment option, a cut option, a copy option, a delete option, a copy link option, a change style option, a format conversion option, and a content block alignment option. In some embodiments, the comment option is used to display a comment area in which a comment can be entered for the target content block, the cut option is used to cut the content block when triggered, the copy option is used to copy the content block when triggered, the delete option is used to delete the content block, the copy link option is used to copy the link of the content block when triggered, the link of the content block is used to display the content block when triggered, the change style option is used to change the style of the content block, which may include, for example, the color, font, etc. of the content block, the format conversion option is used to change the format of the content block, for example, converting from text format to image format, and the content block alignment option is used to align the content block, for example, unifying to left align, right align, justify both ends, etc.
[0037] Hereinafter, the method according to the embodiment of the present disclosure will be described by taking the method according to the embodiment of the present disclosure as an example applied to a terminal. An electronic document is displayed on a terminal, a content block (Block) is a basic unit in the electronic document, text or images may be displayed in the content block, one content block may be one paragraph, a user may call up an operation option (Block panel) by sliding left or right on the content block, there may be multiple operation options, the operation options are used to operate the content block, the type and number of the operation options are changeable, the operation options are triggerable, for example, triggered by clicking, and the operation options are closeable, for example, closed by clicking a blank space in the electronic document. Take the method according to the embodiment as an example applied to a terminal client, the embedded browser of the client displays an electronic document, the user can change the operation option, and the terminal updates the operation option in response to the operation option change operation, specifically, as shown in Fig. 4, the terminal presents a Block panel, and when the browser receives the operation option change operation, it sends an operation option change command to the BlockMenuPanelPlugin plug-in through the JSBridge middleware, and the BlockMenuPanelPlugin plug-in sends an operation option update command to the BlockMenuPanelViewModel, and the BlockMenuPanelViewModel changes the model according to the command, and then notifies the BlockMenuPanelFragment to update the display interface on the web page. When the user clicks any operation option, the BlockMenuPanelFragment notifies the BlockMenuPanelViewModel of the response according to the operation option clicked by the user, and the BlockMenuPanelViewModel sends a callback command to the BlockMenuPanelPlugin plug-in, and the BlockMenuPanelPlugin plug-in sends a command to the JSBridge to perform the callback, thereby realizing the function of the operation option.When the user clicks on the background area, the operation option is closed by default, and BlockMenuPanelFragment notifies BlockMenuPanelViewModel to close the operation option, and BlockMenuPanelViewModel sends a callback instruction to BlockMenuPanelPlugin plugin, and BlockMenuPanelPlugin plugin sends an instruction to JSBridge to make a callback and close the operation option. In some embodiments, the operation option has sub-options, for example, the operation option may include a panel for presenting a font color and a background color, and when the user clicks on the panel, JSBridge middleware sends a message to SelectColorV2Plugin plugin, and SelectColorV2Plugin plugin sends a notification request to BlockMenuPanelPlugin, and BlockMenuPanelPlugin plugin notifies BlockMenuPanelViewModel of a display panel update request, and BlockMenuPanelViewModel updates the display panel and BlockMenuPanelFragment updates the display interface. After BlockMenuPanelFragment updates its display interface to present the suboptions, the user can click one of the suboptions to change its font color and background color; when BlockMenuPanelFragment receives the click operation, it sends a message to BlockMenuPanelViewModel, which sends a callback command to the BlockMenuPanelPlugin plugin, which notifies the SelecColorV2Plugin plugin, which notifies JSBridge of the callback.
[0038] Some embodiments of the present disclosure provide an electronic document processing device, as shown in FIG. a determining unit 10 for determining a target content block in response to a first operation on the target content of the electronic document; a display unit 20 for displaying at least one associated operation option according to the first operation and a content type of the target content block, the content block being a unit for carrying a content of an electronic document, and the operation option being configured to take the content block as an operation object; A processing unit (30) for performing an operation on the targeted content block according to a targeted operation option in response to a trigger operation on the targeted operation option.
[0039] In some embodiments, the step of the determination unit determining the target content block in response to a first operation on the target content of the electronic document includes a step of determining a content block containing the target content as the target content block in response to a trigger command on the target content, or a step of determining a content block corresponding to the relevant region as the target content block in response to a trigger command on a relevant region of the target content.
[0040] In some embodiments, the first operation includes a slide operation in a first direction, and the step of displaying at least one associated operation option in response to the first operation on the target content of the electronic document includes: The method includes responding to a slide operation in the first direction on the target content by displaying an operation option in the second direction in a first region of the current page that is a different region from a second region in which the target content block is located.
[0041] In some embodiments of the present disclosure, when the second region in which the target content block is located is in the first region, the step of displaying the operation option in the second direction in the first region of the current page includes a step of moving the target content block located on one side of the operation option while displaying the operation option.
[0042] In some embodiments of the present disclosure, the step of the display unit displaying at least one related operation option according to the first operation and the content type of the target content block includes the step of displaying at least one related operation option according to the first operation, the content type of the target content block, and a user permission of the current user.
[0043] In some embodiments of the present disclosure, the display unit is further used to change the content type of the target content block in response to an operation to change the content type of the target content block, and update the operation options according to the changed content type of the target content block, or to update the displayed operation options according to the changed content type of the target content block in response to a content type change command for the target content block sent by the target terminal while the operation options are displayed.
[0044] In some embodiments of the present disclosure, the display unit is further adapted to change the type and / or number of associated operation options in response to the operation option change operation event.
[0045] In some embodiments of the present disclosure, the electronic document is a shared document, which is capable of being manipulated by at least two authorized users, either simultaneously or non-simultaneously.
[0046] In some embodiments of the present disclosure, the target content block includes a link identifier of an attachment inserted or cited in the electronic document, text is displayed within the link identifier, the target manipulation options include a style change option, and manipulating the target content block in response to the target manipulation options includes changing the display style of the text in the link identifier in response to a selected style change option.
[0047] In some embodiments of the present disclosure, the target manipulation options include at least one of a comment option, a cut option, a copy option, a delete option, a copy link option, a change style option, a convert format option, and a content block align option.
[0048] Hereinafter, reference is made to FIG. 6, which shows a structural schematic diagram of an electronic device (e.g., a terminal device or a server) 800 suitable for implementing the embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable media players), and in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. The electronic device shown in the figure is merely an example and should not be taken to limit the functions and scope of use of the embodiments of the present disclosure in any way.
[0049] The electronic device 800 may include a processing unit (e.g., a central processing unit, a graphic processor, etc.) 801 capable of performing various suitable operations and processes according to programs stored in a read only memory (ROM) 802 or programs loaded from a storage device 808 into a random access memory (RAM) 803. The RAM 803 further stores various programs and data necessary for the operation of the electronic device 800. The processing unit 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0050] Typically, 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), speaker, vibrator, etc., storage devices 808 including, for example, a tape, hard disk, etc., and communication devices 809 may be connected to the I / O interface 805. The communication devices 809 allow the electronic device 800 to communicate and exchange data with other devices, either wirelessly or via wires. Although the electronic device 800 is shown in the figure with various devices, it should be understood that it is not required to implement or include all of the devices shown. Alternatively, more or fewer devices may be implemented or included.
[0051] In particular, according to an embodiment of the present disclosure, the processes described with reference to the above flowcharts may be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product including a computer program carried on a computer-readable medium, the computer program including program code for performing the method shown in the flowchart. In this embodiment, the computer program may be downloaded and installed from a network by a communication device 809, or installed from a storage device 808, or installed from a ROM 802. When the computer program is executed by the processing device 801, it performs the above functions defined in the method in the embodiment of the present disclosure.
[0052] It should be noted that the computer readable medium of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the above. The computer readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared or semiconductor system, apparatus or device, or any combination of the above. More specific examples of the computer readable storage medium may include, but are not limited to, an electrical connection having one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read only memory (ROM), an erasable programmable read only memory (EPROM or flash memory), an optical fiber, a portable compact disk read only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, the computer readable storage medium may be any tangible medium that contains or stores a program, which may be used by or in combination with an instruction execution system, apparatus or device. In the present disclosure, the computer readable signal medium may include a data signal propagated in baseband or as part of a carrier, carrying the computer readable program code. The propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may transmit, propagate, or transmit a program for use in or in connection with an instruction execution system, apparatus, or device. The program code contained in the computer readable medium may be transmitted over any suitable medium, including but not limited to wire, optical cable, RF (radio frequency), etc., or any suitable combination of the above.
[0053] In some embodiments, clients and servers may communicate using any network protocol now known or later developed, such as, for example, HyperText Transfer Protocol (HTTP), and may be interconnected by any form or medium of digital data communication (e.g., a communications network). Examples of communications networks include a local area network ("LAN"), a wide area network ("WAN"), an extranet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), and any network now known or later developed.
[0054] The computer-readable medium may be included in the electronic device, or may exist independently without being assembled in the electronic device.
[0055] The computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to perform the method of the present disclosure.
[0056] Computer program code for carrying out the operations of the present disclosure may be written in one or more programming languages or combinations thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and general procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computer, partially on the user computer, as a single independent software package, partially on the user computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., connected via the Internet using an Internet Service Provider).
[0057] The flowcharts and block diagrams in the drawings illustrate possible system architectures, functions, and operations of the systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowcharts or block diagrams may represent a module, program segment, or part of code, which includes one or more executable instructions for implementing a certain logical function. It should be noted that in some alternative implementations, the functions shown in the blocks may occur in a different order from the order shown in the drawings. For example, two blocks shown in succession may actually be executed substantially in parallel, or may be executed in the reverse order, depending on the functionality involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented in a dedicated system based on hardware for executing a certain function or operation, or may be implemented in a combination of dedicated hardware and computer instructions.
[0058] The units according to the embodiments of the present disclosure may be implemented in the form of software or hardware. In some cases, the names of the units do not limit the units themselves.
[0059] As used herein, the functions described above may be performed at least in part by one or more hardware logic components, such as, but not limited to, examples of 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 chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0060] In the context of this disclosure, a machine-readable medium may be a tangible medium, and may contain or store a program for use in or in combination with an instruction execution system, device, or apparatus. A 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, device, or apparatus, or any suitable combination of the above. More specific examples of machine-readable storage media may include one or more wire-based electrical connections, portable computer disks, hard disks, random access memories (RAMs), read-only memories (ROMs), erasable programmable read-only memories (EPROMs or flash memories), optical fibers, portable compact disk read-only memories (CD-ROMs), optical storage devices, magnetic storage devices, or any suitable combination of the above.
[0061] According to one or more embodiments of the present disclosure, a method includes: determining a targeted content block in response to a first operation on the targeted content of the electronic document; displaying at least one associated operation option according to the first operation and a content type of the target content block, where the content block is a unit for carrying content of an electronic document, and the operation option is configured to take the content block as an operation object; in response to a trigger operation on a target operation option, performing an operation on the target content block according to the target operation option.
[0062] According to one or more embodiments of the present disclosure, the step of determining the targeted content block in response to a first operation on the targeted content of the electronic document includes: determining a content block including the targeted content as the targeted content block in response to a trigger command for the targeted content; or A method for processing an electronic document is provided, comprising the step of determining, in response to a trigger command for a relevant region of the targeted content, a content block corresponding to the relevant region as the targeted content block.
[0063] According to one or more embodiments of the present disclosure, the first operation includes a sliding operation in a first direction, displaying at least one associated operation option in response to a first operation on the targeted content of the electronic document, The method for processing an electronic document includes a step of displaying the operation options in a second direction in a first area of a current page, the first area being a different area from a second area in which the target content block is located, in response to a slide operation in a first direction on the target content.
[0064] According to one or more embodiments of the present disclosure, when the second region in which the target content block is located is in the first region, the step of displaying the operation option in a second direction in the first region of the current page includes: The method for processing an electronic document includes the step of moving the target content block located on one side of the operation option while the operation option is displayed.
[0065] According to one or more embodiments of the present disclosure, the step of displaying at least one associated operation option according to the first operation and a content type of the target content block includes: The method for processing an electronic document includes displaying at least one operation option related to the first operation, a content type of the target content block, and a user permission of a current user.
[0066] According to one or more embodiments of the present disclosure, In response to an operation for changing the content type of the target content block, changing the content type of the target content block and updating the operation option according to the changed content type of the target content block; or The method for processing an electronic document further includes a step of updating the displayed operation options according to the changed content type of the target content block in response to a content type change command for the target content block sent by the target terminal while the operation options are being displayed.
[0067] According to one or more embodiments of the present disclosure, a method for processing an electronic document is provided, further comprising the step of changing the type and / or number of associated operation options in response to an operation option change operation event.
[0068] According to one or more embodiments of the present disclosure, a method for processing an electronic document is provided, in which the electronic document is a shared document, and the shared document can be manipulated simultaneously or non-simultaneously by at least two authorized users.
[0069] According to one or more embodiments of the present disclosure, the targeted content block includes a link identifier for an attachment inserted or cited in the electronic document, text being displayed within the link identifier; The method for processing an electronic document is provided, wherein the target manipulation options include a style change option, and the step of manipulating the target content block in response to the target manipulation options includes a step of changing a display style of text in the link identifier in response to a selected style change option.
[0070] According to one or more embodiments of the present disclosure, a method for processing an electronic document is provided, wherein the target operation options include at least one of a comment option, a cut option, a copy option, a delete option, a link copy option, a style change option, a format conversion option, and a content block alignment option.
[0071] According to one or more embodiments of the present disclosure, a method for determining a target content block in response to a first operation on a target content of an electronic document includes: a display unit for displaying at least one associated operation option according to the first operation and a content type of the target content block, the content block being a unit for carrying a content of an electronic document, and the operation option being configured to take the content block as an operation object; a processing unit for performing an operation on the targeted content block in response to a trigger operation on a targeted operation option according to the targeted operation option.
[0072] According to one or more embodiments of the present disclosure, there is provided a terminal including at least one memory and at least one processor, wherein the at least one memory is adapted to store program code, and the at least one processor is adapted to call the program code stored in the at least one memory to execute the method described in any one of the above.
[0073] According to one or more embodiments of the present disclosure, a storage medium for storing program code for performing the above method is provided.
[0074] The above description is merely a description of the preferred embodiments of the present disclosure and the technical principles applied thereto. It is understood by those skilled in the art that the scope of the present disclosure is not limited to the technical solution consisting of a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the spirit of the above disclosure. For example, the technical solutions formed by substituting the above features and the technical features (but not limited to these) disclosed in the present disclosure having similar functions with each other can be included.
[0075] Also, although operations have been described in a particular order, it should not be understood as requiring these operations to be performed in the particular order or sequence shown. In certain situations, multitasking and parallel processing may be advantageous. Similarly, although the above description contains many specific implementation details, these should not be understood as limiting the scope of the disclosure. Certain features that are described in the context of a single embodiment may also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment may be implemented in multiple embodiments alone or in any suitable subcombination.
[0076] Although the subject matter has been described in language specific to structural features and / or logical operations of a method, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or operations described above. On the contrary, the specific features and operations described above are merely example forms of implementing the claims.
Claims
1. 1. A method for processing electronic documents, comprising: determining a targeted content block in response to a first operation on the targeted content of the electronic document; displaying at least one associated operation option according to the first operation and a content type of the target content block, where the content block is a unit for carrying content of an electronic document, and the operation option is configured to make the content block a manipulation object; in response to a trigger operation on a target operation option, performing an operation on the target content block according to the target operation option; the first operation includes a slide operation in a first direction; The displaying step includes: In response to a slide operation on the target content in a first direction, displaying the operation option in a second direction in a first region of a current page, the first region being a region different from a second region in which the target content block is located; A method for processing electronic documents, characterized in that when the second area in which the target content block is located is in the first area, the step of displaying the operation option in the second direction includes a step of moving the target content block located on one side of the operation option while the operation option is being displayed.
2. The step of determining the target content block in response to a first operation on the target content of the electronic document comprises: determining a content block including the targeted content as the targeted content block in response to a trigger command for the targeted content; or 2. The method of claim 1, further comprising: in response to a trigger command for a relevant region of the targeted content, determining a content block corresponding to the relevant region as the targeted content block.
3. The step of displaying at least one associated operation option according to the first operation and a content type of the target content block includes: The method of claim 1 , further comprising: displaying at least one operation option related to the first operation, a content type of the target content block, and a user permission of a current user.
4. In response to an operation for changing the content type of the target content block, changing the content type of the target content block and updating the operation option according to the changed content type of the target content block; or The method according to claim 1, further comprising: updating the displayed operation options according to the changed content type of the target content block in response to a content type change command for the target content block sent by the target terminal during the display of the operation options.
5. 2. The method of claim 1, further comprising the step of changing the type and / or number of the associated control options in response to a control option change control event.
6. 2. The method of claim 1, wherein the electronic document is a shared document, the shared document being capable of being manipulated by at least two authorized users, either simultaneously or non-simultaneously.
7. the targeted content block includes a link identifier for an attachment inserted or cited in the electronic document, the text being displayed within the link identifier; 2. The method of claim 1 , wherein the target manipulation options include a style change option, and the step of performing an operation on the target content block in response to the target manipulation options includes changing a display style of text in the link identifier in response to a selected style change option.
8. 2. The method of claim 1, wherein the target manipulation options include at least one of a comment option, a cut option, a copy option, a delete option, a copy link option, a change style option, a convert format option, and a content block align option.
9. 1. An electronic document processing device, comprising: a determining unit for determining a target content block in response to a first operation on the target content of the electronic document; a display unit for displaying at least one associated operation option according to the first operation and a content type of the target content block, the content block being a unit for carrying a content of an electronic document, and the operation option being configured to make the content block an operation object; and a processing unit for performing an operation on the target content block according to a target operation option in response to a trigger operation on the target operation option; the first operation includes a slide operation in a first direction; The display unit includes: In response to a slide operation on the target content in a first direction, displaying the operation option in a second direction in a first region of a current page, the first region being a region different from a second region in which the target content block is located; An electronic document processing device characterized in that, when the second area in which the target content block is located is in the first area, the display unit moves the target content block located on one side of the operation option while displaying the operation option.
10. A terminal, at least one memory and at least one processor; A terminal, wherein the at least one memory is used to store program code, and the at least one processor is used to call up the program code stored in the at least one memory and execute the method according to any one of claims 1 to 8.
11. A storage medium for storing program code for carrying out the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Online document content editing method and device, storage medium and electronic device
CN109635261A
Range designating method and document processor for implementing same
JP1996147294A
Information processor, information processing method, and program
JP2006065754A
Text information sharing method, server apparatus, and client apparatus
JP2010079577A
Touch event processing for web pages
JP2013058210A