Method and apparatus for displaying online document, electronic device
Patent Information
- Application Number
- CN202211581797.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-08
- Publication Date
- 2026-10-30
- Estimated Expiration
- 2042-12-08
AI Technical Summary
[0004]本申请旨在提出一种在线文档的显示方法和装置、电子设备及非瞬时性计算机可读存储介质,以解决当前在线文档类工具存在的不能够直观的对文档编辑的串行过程进行表达和操作的问题
[0014]根据本申请的一方面,提出一种非瞬时性计算机可读存储介质,其上存储有计算机可读指令,当所述指令被处理器执行时,使得所述处理器执行如前任一实施例所述的显示方法。
Smart Images

Figure CN116151190B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of online office work, and more specifically, to a method and apparatus for displaying online documents, an electronic device, and a non-transitory computer-readable storage medium. Background Technology
[0002] The rapid development of the metaverse in recent years has also created ample room for imagination for remote work.
[0003] The inventors have discovered that currently used document editing tools only provide functions such as current position indication and historical version restoration, and cannot intuitively express and operate the sequential process of document editing. Summary of the Invention
[0004] This application aims to provide a method and apparatus for displaying online documents, an electronic device, and a non-transitory computer-readable storage medium to solve the problem that current online document tools cannot intuitively express and operate the serial process of document editing.
[0005] According to one aspect of this application, a method for displaying an online document is proposed, comprising: in response to an access request for the online document, obtaining the online document, the access request including an editing time range of the online document; and displaying the online document according to the editing time range, using the HSB color mode and based on the editing time of each editor.
[0006] According to some embodiments, the online document is displayed using the HSB color mode according to the editing time of each editor, including using the hue H in the HSB mode to distinguish the editors of the online document.
[0007] According to some embodiments, the online document is displayed using the HSB color mode according to the editing time of each editor, and also includes using the B level in the HSB mode to distinguish the editing time of each editor.
[0008] According to some embodiments, the online document is displayed using the HSB color mode according to the editing time of each editor, including displaying the online document by word and according to the editor and editing time of each word using the HSB color mode; or displaying the online document by paragraph and according to the editor and editing time of each paragraph using the HSB color mode.
[0009] According to some embodiments, the online document is displayed using the HSB color mode according to each editor's editing time, including determining the hue H of each editor; dividing the color level B in the HSB color mode into equal intervals according to the editing time range; and using a predefined function to determine the purity S value at each moment based on the divided color level B.
[0010] According to some embodiments, the editing time range includes a set time, and the display method further includes restoring the online document to the editing version most recent to the set time.
[0011] According to some embodiments, the editing time includes a set time range, and the display method further includes undoing all changes to the online document within the set time range.
[0012] According to one aspect of this application, an online document display device is provided, comprising an online document acquisition unit for acquiring the online document in response to an access request for the online document, wherein the access request includes an editing time range of the online document; and an online document display unit for displaying the online document according to the editing time range, using an HSB color mode and based on the editing time of each editor.
[0013] According to one aspect of this application, an electronic device is provided, including a processing unit and a storage unit storing a computer program that, when executed by the processing unit, causes the processing unit to perform a display method as described in any of the preceding embodiments.
[0014] According to one aspect of this application, a non-transitory computer-readable storage medium is provided, on which computer-readable instructions are stored, which, when executed by a processor, cause the processor to perform the display method as described in any of the preceding embodiments.
[0015] According to some embodiments of this application, online documents are displayed using the HSB color mode according to the editing time of each editor, based on the selected editing time range. This not only distinguishes different editors of online documents but also differentiates the editing time of the same editor, reducing communication costs and improving work efficiency in online office work.
[0016] It should be understood that the above general description and the following detailed description are merely exemplary and do not limit this application. Attached Figure Description
[0017] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. The above and other objectives, features, and advantages of this application will become more apparent by referring to the accompanying drawings and describing exemplary embodiments in detail.
[0018] Figure 1 A flowchart illustrating a method for displaying an online document according to an example embodiment of this application is shown.
[0019] Figure 2aThis illustration shows a schematic diagram of using the HSB color mode to distinguish each editor and editing time according to an example embodiment of this application.
[0020] Figure 2b This diagram illustrates a method of using color level B to distinguish editing time according to an example embodiment of this application.
[0021] Figure 3 This diagram illustrates a display result that uses the HSB color mode to distinguish each editor and the editing time according to an example embodiment of this application.
[0022] Figure 4 A block diagram of an online document display device according to an example embodiment of this application is shown.
[0023] Figure 5 An electronic device is shown according to an exemplary embodiment of this application. Detailed Implementation
[0024] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the embodiments set forth herein; rather, they are provided so that this application will be thorough and complete, and will fully convey the concept of the exemplary embodiments to those skilled in the art. The same reference numerals in the drawings denote the same or similar parts, and therefore repeated descriptions of them will be omitted.
[0025] The described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Numerous specific details are provided in the following description to give a full understanding of embodiments of this disclosure. However, those skilled in the art will recognize that the technical solutions of this disclosure can be practiced without one or more of these specific details, or other methods, components, materials, apparatus, or operations may be employed. In these cases, well-known structures, methods, apparatuses, implementations, materials, or operations will not be shown or described in detail.
[0026] The flowcharts shown in the accompanying drawings are merely illustrative and do not necessarily include all content and operations / steps, nor do they necessarily need to be performed in the described order. For example, some operations / steps can be broken down, while others can be combined or partially combined; therefore, the actual execution order may change depending on the specific circumstances.
[0027] The terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.
[0028] With changes in the social environment and the development of internet technology, online office work is playing an increasingly important role. However, current document tools only provide coarse-grained timeliness capabilities; for example, they only provide a current location indicator. Existing document tools isolate historical versions from each other, failing to capture all modifications and individual edits within a certain timeframe, and cannot intuitively express and manipulate the sequential process of document editing.
[0029] According to embodiments of this application, online documents are displayed using the HSB color mode according to the editing time of each editor, based on the selected editing time range. This not only distinguishes different editors of online documents but also differentiates the editing time of the same editor, thereby reducing communication costs in online office work and improving work efficiency.
[0030] The specific embodiments according to this application will now be described in detail with reference to the accompanying drawings.
[0031] Figure 1 This diagram illustrates a flowchart of an online document display method according to an example embodiment of this application. The following uses... Figure 1 Taking an example, a method for displaying an online document according to an example embodiment of this application will be described in detail.
[0032] like Figure 1 As shown, in step S101, in response to an online document access request, the online document is retrieved, and the access request includes the editing time range of the online document.
[0033] According to an embodiment of this application, when the editing time range in the access request is a set time, the online document obtained in step S101 is the edited version closest to the set time.
[0034] According to other embodiments, when the editing time range in the access request is a set time range, the online document obtained in step S101 includes not only the document content, but also the editing process of the online document within the set time range.
[0035] In step S103, the online document is displayed according to the editing time range and the editing time of each editor using the HSB color mode.
[0036] In step S103, not only is the online document displayed, but the HSB color mode is also used to display the edited content and corresponding editing time of each editor in the online document within the editing time range, so as to distinguish each editor and each editor's edited content according to the editing time.
[0037] According to an embodiment of this application, in step S103, different hues H are used to distinguish different editors of online documents, so as to distinguish the editors of online documents using hue H in HSB mode.
[0038] According to other embodiments, different editing times of the same editor in an online document are distinguished using color level B, so as to utilize color level B in HSB mode to distinguish the editing time of each editor.
[0039] According to an embodiment of this application, step S103 distinguishes and displays each editor and the edited content of each editor according to the editing time through the following steps:
[0040] First, determine the hue H corresponding to each editor;
[0041] Then, for each editor, the color level B in the HSB color mode is divided at equal intervals according to the requested editing time range to determine the time period corresponding to each color level value;
[0042] Finally, the purity S value at each time step is determined based on a predefined function.
[0043] It should be noted that the predefined function is not limited here, as long as it can obtain different purity S values for each color level B. For example, the predefined function can be a linear function or a linear curve function, such as... Figure 2a The dots in the image are shown.
[0044] like Figure 2b As shown, from left to right, content edited earlier is displayed using a lower B value, while content edited later is displayed using a higher B value.
[0045] According to other embodiments of this application, when displaying the online document in step S103, the document is displayed using the HSB color mode, with each character as a unit, based on the editor and editing time of each character. For example...
[0046] For example, such as Figure 3As shown, the editing content by editor Chong is displayed in red, while the editing content by editor whisilver is displayed in blue, with the editing time differentiated using the B level. Taking editor Chong's editing content as an example, earlier edited content is displayed with a lower B level value, while later edited content is displayed with a higher B level value.
[0047] According to other embodiments, when displaying the online document in step S103, the document is displayed in HSB color mode, based on the editor and editing time of each paragraph.
[0048] For example, using paragraphs as units, different hues (H) are used to distinguish paragraphs edited by different editors. For the same editor, to differentiate between different editing times, paragraphs edited earlier are displayed with a lower hue (B) value, while paragraphs edited later are displayed with a higher hue (B) value.
[0049] according to Figure 1 The illustrated embodiment displays online documents according to each editor's editing time using the HSB color mode, based on the selected editing time range. This not only distinguishes between different editors of online documents but also differentiates the editing time of the same editor. According to the embodiments of this application, this not only reduces communication costs in online office work but also improves work efficiency. Simultaneously, it solves the problem that current online document tools, due to the separation of document history versions, cannot intuitively express and operate the sequential process of document editing. When using... Figure 1 The method shown can be applied to personal office work, which can not only help evaluate work efficiency at different times, but also quickly restore historical versions and achieve accurate editing of historical versions.
[0050] It should be noted here that, in Figure 1 Based on the embodiments shown, Figure 1 The display method shown also has redo and undo functions.
[0051] For example, when the editing time range in the access request is a set time, the online document can be restored to the most recent edited version before the set time, so that the editing status at the set time can be viewed.
[0052] For example, when the editing time range in the access request is a set time range, all changes to the online document within that set time range can be undone, as can all editing processes of the online document within that set time range.
[0053] The above description primarily focuses on the methodological aspects of the embodiments of this application. Those skilled in the art should readily recognize that, based on the operations or steps described in conjunction with the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Those skilled in the art can implement the described functionality in different ways for each specific operation or method, and such implementations should not be considered beyond the scope of this application.
[0054] The apparatus embodiments of this application are described below. For details not described in the apparatus embodiments of this application, please refer to the method embodiments of this application.
[0055] Figure 4 This diagram illustrates a block diagram of an online document display device according to an example embodiment of this application, such as... Figure 4 The display device shown includes an online document acquisition unit 401 and an online document display unit 403. The online document acquisition unit 401 is used to acquire an online document in response to an access request for the online document, wherein the access request includes the editing time range of the online document. The online document display unit 403 is used to display the online document according to the editing time range and using the HSB color mode according to the editing time of each editor.
[0056] Figure 5 An electronic device according to an exemplary embodiment of this application is shown. Reference is made below. Figure 5 To describe an electronic device 200 according to this embodiment of the present application. Figure 5 The electronic device 200 shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.
[0057] like Figure 5 As shown, the electronic device 200 is presented in the form of a general-purpose computing device. The components of the electronic device 200 may include, but are not limited to: at least one processing unit 210, at least one storage unit 220, a bus 230 connecting different system components (including storage unit 220 and processing unit 210), a display unit 240, etc.
[0058] The storage unit stores program code, which can be executed by the processing unit 210 to perform the methods described in this specification according to various exemplary embodiments of this application. For example, the processing unit 210 can perform, for example... Figure 1 The method shown.
[0059] Storage unit 220 may include readable media in the form of volatile storage units, such as random access memory (RAM) 2201 and / or cache memory 2202, and may further include read-only memory (ROM) 2203.
[0060] Storage unit 220 may also include a program / utility 2204 having a set (at least one) program module 2205, such program module 2205 including but not limited to: operating system, one or more application programs, other program modules and program data, each or some combination of these examples may include an implementation of a network environment.
[0061] Bus 230 can represent one or more of several types of bus structures, including a memory cell bus or memory cell controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus using any of the various bus structures.
[0062] Electronic device 200 can also communicate with one or more external devices 300 (e.g., keyboard, pointing device, Bluetooth device, etc.), and with one or more devices that enable a user to interact with electronic device 200, and / or with any device that enables electronic device 200 to communicate with one or more other computing devices (e.g., router, modem, etc.). This communication can be performed via input / output (I / O) interface 250. Furthermore, electronic device 200 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 260. Network adapter 260 can communicate with other modules of electronic device 200 via bus 230. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with electronic device 200, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0063] Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. The technical solutions according to the embodiments of this application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, or network device, etc.) to execute the methods described above according to the embodiments of this application.
[0064] Software products may employ any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A 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 thereof. More specific examples of readable storage media (a non-exhaustive list) include: electrical connections with one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0065] Computer-readable storage media may include data signals propagated in baseband or as part of a carrier wave, carrying readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable storage medium may also be any readable medium other than a readable storage medium that can transmit, propagate, or transfer a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.
[0066] Program code for performing the operations of this application can be written in any combination of one or more programming languages, including object-oriented programming languages such as Java and C++, and conventional procedural programming languages such as C or similar languages. The program code can execute entirely on the user's computing device, partially on the user's computing device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0067] The aforementioned computer-readable medium carries one or more programs, which, when executed by a device, cause the computer-readable medium to perform the aforementioned functions.
[0068] Those skilled in the art will understand that the above modules can be distributed in the device as described in the embodiments, or they can be modified accordingly and placed in one or more devices that are unique to this embodiment. The modules in the above embodiments can be combined into one module, or they can be further divided into multiple sub-modules.
[0069] According to an embodiment of this application, a computer program is proposed, including a computer program or instructions, which, when executed by a processor, can perform the methods described above.
[0070] The embodiments of this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are only for the purpose of helping to understand the method and core ideas of this application. Furthermore, any changes or modifications made by those skilled in the art based on the ideas of this application, and on the specific implementation methods and application scope of this application, are all within the scope of protection of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A method for displaying online documents, characterized in that, include: In response to an access request for the online document, the online document is retrieved, wherein the access request includes the editing time range of the online document; Based on the aforementioned editing time range, the online document is displayed using the HSB color mode according to the editing time of each editor; To differentiate between editors, paragraphs edited by different editors are distinguished using different hues (H). For the same editor, to differentiate between different editing times, paragraphs edited earlier are displayed using a lower hue (B) and paragraphs edited later are displayed using a higher hue (B). The editing time range includes a set time, and the display method further includes: restoring the online document to the most recent edited version relative to the set time; The editing time also includes setting a time range, and the display method further includes: undoing all changes to the online document within the set time range; The online documents are displayed using the HSB color model according to each editor's editing time, including: The editor of the online document is identified using the hue H in the HSB model; The editing time of each editor is distinguished by the color level B in the HSB mode.
2. The display method according to claim 1, characterized in that, The online documents are displayed using the HSB color model according to each editor's editing time, including: Displaying each character in the online document using the HSB color mode, based on the editor and editing time of each character; or The text is presented in HSB color mode, using paragraphs as units, and is displayed according to the editor and editing time of each paragraph.
3. The display method according to claim 1, characterized in that, The online documents are displayed using the HSB color model according to each editor's editing time, including: Determine the hue H for each editor; Based on the editing time range, the color level B in the HSB color mode is divided at equal intervals; Using a predefined function, the purity S value at each moment is determined based on the divided color level B.
4. A display device for online documents, characterized in that, The display device is used to perform the display method as described in any one of claims 1-3, the display device comprising: An online document acquisition unit is configured to acquire the online document in response to an access request for the online document, wherein the access request includes the editing time range of the online document; An online document display unit is used to display the online document according to the editing time range and the editing time of each editor using the HSB color mode.
5. An electronic device, comprising: Processing unit; as well as A storage unit stores a computer program, which, when executed by the processing unit, causes the processing unit to perform the display method as described in any one of claims 1-3.
6. A non-transitory computer-readable storage medium having stored thereon computer-readable instructions that, when executed by a processor, cause the processor to perform the display method as described in any one of claims 1-3.
Citation Information
Patent Citations
Systems and methods for synchronizing comments to an electronic document across platforms
CN108604226A
Online document processing method and device, storage medium and equipment
CN111539190A
Text collaborative editing method and related device, electronic equipment and storage medium
CN114357949A
