CN112114734A - Online document display method and device, terminal and storage medium - Google Patents

Online document display method and device, terminal and storage medium Download PDF

Info

Publication number
CN112114734A
CN112114734A CN202011045472.0A CN202011045472A CN112114734A CN 112114734 A CN112114734 A CN 112114734A CN 202011045472 A CN202011045472 A CN 202011045472A CN 112114734 A CN112114734 A CN 112114734A
Authority
CN
China
Prior art keywords
display
comment
document
displaying
comment information
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
CN202011045472.0A
Other languages
Chinese (zh)
Other versions
CN112114734B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202011045472.0A priority Critical patent/CN112114734B/en
Publication of CN112114734A publication Critical patent/CN112114734A/en
Application granted granted Critical
Publication of CN112114734B publication Critical patent/CN112114734B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application discloses a method, a device, a terminal and a storage medium for displaying an online document, and belongs to the technical field of computers and the Internet. The method comprises the following steps: a display interface for displaying the online document; receiving a display mode switching instruction aiming at the comment information; and displaying the comment information in a second display mode according to the display mode switching instruction. According to the method and the device, the display mode of the comment information is prevented from being single, so that the comment information can be displayed in a display interface in different display modes, the display modes of the comment information are more diverse, and the limitation of a single display mode is reduced; and the first display mode is displayed on the side of the document display area, and after the mode switching instruction is received, the first display mode is switched to the second display mode, namely the side display mode of the comment information is cancelled, so that the problem that the comment information cannot be completely displayed due to the fact that the display size of the display interface is too small is avoided, and the display mode of the comment information is more flexible.

Description

Online document display method and device, terminal and storage medium
Technical Field
The present application relates to the field of computer and internet technologies, and in particular, to a method, an apparatus, a terminal, and a storage medium for displaying an online document.
Background
Currently, when a user reads an online document, the user can comment on the document content in the online document. In the related art, a user displays respective comment information of document contents at fixed positions of a side bar of an online document in order of positions of the document contents in the online document.
However, in the above related art, the comment information is displayed at a fixed position in the side bar of the online document, and the display manner of the comment information is too single to be flexible.
Disclosure of Invention
The embodiment of the application provides a method, a device, a terminal and a storage medium for displaying an online document, comment information can be displayed in a display interface in different display modes, and the display mode of the comment information is more diversified and flexible. The technical scheme is as follows:
according to an aspect of an embodiment of the present application, there is provided a method of displaying an online document, the method including:
the method comprises the steps that a display interface of an online document is displayed, the display interface comprises a document display area and a comment display area, the document display area is used for displaying the online document, the comment display area is used for displaying comment information of the online document in a first display mode, and the comment display area is located between a first side edge of the document display area and a second side edge of the display interface;
receiving a display mode switching instruction aiming at the comment information;
and displaying the comment information in a second display mode according to the display mode switching instruction.
According to an aspect of an embodiment of the present application, there is provided a method of displaying an online document, the method including:
the display interface is used for displaying the online document, the display interface comprises a document display area, and the document display area is used for displaying the online document;
in response to a comment adding operation for the online document, displaying a comment input window in the document display area;
displaying the input comment information in the comment input window;
displaying the comment information in a second display mode in the document display area.
According to an aspect of an embodiment of the present application, there is provided a display apparatus of an online document, the apparatus including:
the device comprises a document display module, a comment display module and a comment display module, wherein the document display module is used for displaying an online document, the comment display module is used for displaying comment information of the online document in a first display mode, and the comment display module is positioned between a first side edge of the document display module and a second side edge of the display interface;
the instruction receiving module is used for receiving a display mode switching instruction aiming at the comment information;
and the mode switching module is used for displaying the comment information in a second display mode according to the display mode switching instruction.
According to an aspect of an embodiment of the present application, there is provided a display apparatus of an online document, the apparatus including:
the interface display module is used for displaying a display interface of an online document, wherein the display interface comprises a document display area, and the document display area is used for displaying the online document;
a window display module for displaying a comment input window in the document display area in response to a comment addition operation for the online document;
the information input module is used for displaying the input comment information in the comment input window;
and the comment display module is used for displaying the comment information in a second display mode in the document display area.
According to an aspect of the embodiments of the present application, there is provided a terminal, including a processor and a memory, where at least one instruction, at least one program, a code set, or a set of instructions is stored in the memory, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by the processor to implement the above-mentioned online document display method.
According to an aspect of the embodiments of the present application, there is provided a computer-readable storage medium having at least one instruction, at least one program, a set of codes, or a set of instructions stored therein, which is loaded and executed by a processor to implement the above-mentioned method for displaying an online document.
According to an aspect of embodiments herein, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the terminal reads the computer instruction from the computer readable storage medium, and the processor executes the computer instruction, so that the terminal executes the display method of the online document.
The technical scheme provided by the embodiment of the application can bring the following beneficial effects:
the display mode of the comment information of the online document is switched through the mode switching instruction, so that the display mode of the comment information is prevented from being single, the comment information can be displayed in a display interface in different display modes, the display mode of the comment information is more diverse, and the limitation of the single display mode is reduced; and the first display mode is displayed on the side of the document display area, and after the mode switching instruction is received, the first display mode is switched to the second display mode, namely the side display mode of the comment information is cancelled, so that the problem that the comment information cannot be completely displayed due to the fact that the display size of the display interface is too small is avoided, and the display mode of the comment information is more flexible.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of an application execution environment provided by one embodiment of the present application;
FIG. 2 is a flow chart of a method for displaying an online document provided by an embodiment of the present application;
FIG. 3 illustrates a schematic diagram of a display interface;
fig. 4 and 5 are schematic diagrams illustrating a position adjustment manner of the comment display area;
FIG. 6 is a flowchart of a method for displaying an online document according to another embodiment of the present application;
FIGS. 7-9 illustrate schematic diagrams of display interfaces;
FIG. 10 is a flowchart of a method for displaying an online document according to still another embodiment of the present application;
FIG. 11 is a diagram illustrating a display flow of an online document;
FIG. 12 is a flowchart of a method for displaying an online document according to another embodiment of the present application;
FIG. 13 is a block diagram of a display device for an online document provided by one embodiment of the present application;
FIG. 14 is a block diagram of a display device for an online document provided by another embodiment of the present application;
FIG. 15 is a block diagram of a display device for an online document provided by yet another embodiment of the present application;
fig. 16 is a block diagram of a terminal according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Referring to fig. 1, an application execution environment provided by an embodiment of the present application is shown, and includes a terminal 10 and a server 20.
The terminal 10 is used for presenting an online document to a user, and comment information for the online document. Alternatively, the terminal 10 may be an electronic device such as a mobile phone, a tablet Computer, a game console, an electronic book reader, a multimedia player, a wearable device, a PC (Personal Computer), and the like. The terminal 10 may be installed with a client of an application program, where the application program may be any application program that supports displaying an online document, or any application program that supports commenting or annotating an online document, such as a reading application program, a social application program, an information application program, and various types of browsers. Alternatively, the application may be an application that needs to be downloaded and installed, or may be a point-to-point application.
The server 20 is used to provide background services for clients of applications in the terminal 10. For example, the server 20 may be a backend server for the application described above. The server 20 may be a server, a server cluster composed of a plurality of servers, or a cloud computing service center. Optionally, the server 20 provides background services for applications in multiple terminals 10 simultaneously.
Alternatively, the terminal 10 and the server 20 may communicate with each other through the network 30.
Referring to fig. 2, a flowchart of a method for displaying an online document according to an embodiment of the present application is shown. The method is applicable to the terminal 10 in the application execution environment shown in fig. 1, for example, the execution subject of each step may be a client of the application program. The method comprises the following steps (201-203):
step 201, displaying a display interface of the online document.
An online document refers to a document that provides a function of simultaneous editing or simultaneous review for a plurality of users. Alternatively, different users may open the same online document in different clients and make real-time edits or real-time comments on the online document. In one possible implementation, after the online document is opened, the user edits or comments on the online document through a trigger operation on the online document. Furthermore, the client side acquires the modification information aiming at the online document in real time, sends the modification information to the server, and sends the modification information to the client sides of other users who open the online document in real time, so that the client sides of the other users can modify the online document in real time according to the modification information, and the synchronization of the online document of each client side is ensured. Wherein, the modification information includes the modification content of the user for the online document. Optionally, the modified content includes deleted content, added content, replaced content and comment information for the online document. The comment information may be a self-viewpoint or suggestion expressed by the user for a certain part of the document content of the online document when browsing the online document. Of course, in different applications, the above comment information may be referred to as a comment, a remark, a book comment, and the like.
The display interface is an interface for displaying the online document. Optionally, the display interface is a display window corresponding to a certain application program, and after the terminal detects a start instruction for the application program, the display window corresponding to the application program is displayed in the screen. The display size and the display style of the display interface may be different for different applications, which is not limited in the embodiments of the present application.
In one possible embodiment, the display interface corresponds to a plurality of fixed display sizes. Optionally, when the client displays the display interface, a target display size is selected from the plurality of fixed display sizes to render the display interface. The target display size may be a randomly selected display size, an initial display size set by a user, or a final display size of the display interface when the user closes the display interface last time. Optionally, the display interface includes a display size switching control, and after the display interface is displayed, a user may control the display interface to be switched from the target display size to another display size through a triggering operation for the size switching control. The triggering operation may be a clicking operation for the size switching control, a pressing operation for a key corresponding to the size switching control, or a gesture operation corresponding to the size switching control.
Optionally, the number of the display size switching controls may be one or more, which is not limited in this embodiment of the application. For example, if the display interface corresponds to a first display size and a second display size, a size switch control may be provided to control switching between the first display size and the second display size. For another example, if the display interface corresponds to a first display size, a second display size, and a third display size, a first size switching control, a second size switching control, and a third size switching control may be provided. The first size switching control is used for controlling the display size of the display interface to be a first display size, the second size switching control is used for controlling the display size of the display interface to be a second display size, and the third size switching control is used for controlling the display size of the display interface to be a third display size.
In another possible implementation, the display interface corresponds to a plurality of non-fixed display sizes, that is, the display size of the display interface may be any size. Optionally, when the client displays the display interface, the client selects a target display size to render the display interface. The target display size may be a randomly selected display size, an initial display size set by a user, or a final display size of the display interface when the user closes the display interface last time. Optionally, after the display interface is displayed, the user may adjust the display size of the display interface according to actual conditions. For example, the user may adjust the display size of the display interface through a drag operation for the side of the display interface; alternatively, the user may adjust the display size of the display interface by setting the display size of the display interface in the setting interface. Of course, the user may also adjust the display size of the display interface through other triggering operations, such as rotating the scroll axis of the mouse.
In the embodiment of the application, after receiving an opening instruction for an online document, a client displays the online document in the display interface, that is, displays the display interface of the online document. Optionally, the display interface includes a document display area and a comment display area. The document display area is used for displaying an online document, and comprises a non-blank area displaying document content and a blank area not displaying the document content; the comment display area is used for displaying comment information of an online document in a first display mode, the first display mode refers to a mode for displaying comment information in a display block, the shape of the display block can be any shape such as a rectangle, a circle, a diamond, and the display size of the display block can be any size.
It should be noted that the document display area is located at any position in the display interface. Optionally, when the online document is opened, the client may determine the position of the document display area according to the setting of a worker, may also determine the position of the document display area according to the setting of a user, and may also determine the position of the document display area according to the display size of the online document. The comment display area is located between the first side edge of the document display area and the second side edge of the display interface. Wherein, the first side edge and the second side edge are side edges at the same position. For example, if the first side is the right side of the document display area, the second side is the right side of the display interface, and at this time, the second side is located on the right side of the document display area; and if the first side edge is the left side edge of the document display area, the second side edge is the left side edge of the display interface, and at the moment, the second side edge is positioned on the left side of the document display area. .
Illustratively, referring to fig. 3 in conjunction, a document display area 31 and a comment display area 32 are included in the display interface 30. The document display area 31 includes an online document, the comment display area 32 includes comment information for the online document, and the comment display area 32 is located on the right side of the document display area 31. In addition, the comment information is displayed in the comment display area 32 in the first display mode 33.
It should be noted that, in the embodiment of the present application, when the comment information is displayed in the comment display area in the first display mode, different comment information is located at different positions in the comment display area. Optionally, the display position of the comment information is related to the position of the document content to which the comment information is directed. For example, the comment information is displayed at the end of a line to which the document content for which the comment information pertains. Of course, the document content targeted by the comment information may be marked in the display interface of the online document, that is, the document content targeted by the comment information has a corresponding mark. The mark may be any mark, such as a dashed line mark, a wire frame mark, a background color mark, and the like, which is not limited in this embodiment of the application. Illustratively, as shown in fig. 3, a dashed mark 34 is added below the document contents to which the comment information is directed.
Step 202, receiving a display mode switching instruction for the comment information.
The display mode switching instruction is used for controlling the display mode of the comment information to be switched. In the embodiment of the application, after the display interface of the online document is displayed, the client detects the display interface, and when the display mode switching operation for the comment information is detected, the client receives the display mode switching instruction for the comment information. Optionally, the display mode switching instruction is generated by user triggering.
In a possible implementation manner, the user triggers and generates the display mode switching instruction through a mode switching control. Optionally, the user may trigger the triggering operation for the mode switching control by clicking the mode switching control, pressing a key corresponding to the mode switching control, or executing a gesture operation corresponding to the mode switching control, and the client determines to receive the display mode switching instruction when detecting the triggering operation for the mode switching control.
The mode switching control may be displayed in the display interface when the application program is started, or may be displayed in the display interface of the online document when the online document is opened, which is not limited in this embodiment of the application. Of course, the mode switching control may be directly displayed in the display interface, such as the mode switching control 35 in fig. 3; or the mode switching control may also be hidden and displayed in the display interface, and when the client detects a trigger operation for a trigger region of the mode switching control, the client displays the mode switching control in the display interface, where the trigger region may be any region in the display interface; or an associated area corresponding to the mode switching control, such as a comment display area; but also the area around the mode-switching control. Optionally, one or more mode switching controls may be displayed in the display interface. The different mode switching controls can be used for controlling the comment information to be switched to different display modes; or, different trigger operations for the same mode switching control may also control the comment information to be switched to different display modes.
In another possible implementation, the user triggers generation of the display mode switching instruction through a size adjustment operation for the display interface. Optionally, the step 202 includes the following steps:
1. a resize operation for a display interface is received.
The resizing operation is used to adjust the display size of the display interface. Optionally, the resizing operation is a user-triggered generated operation. The user can carry out the size adjustment operation according to the self requirement and the actual situation, and further, after the client receives the size adjustment operation, the display size of the display interface is adjusted according to the size adjustment operation. Optionally, the size adjustment operation includes size information of the adjusted display interface. After receiving the size adjustment operation for the display interface, the client determines the size information of the adjusted display interface based on the size adjustment operation, and adjusts the display size of the display interface according to the size information to obtain the adjusted display interface.
In one possible implementation, the resizing operation refers to a trigger operation directed to a side of the display interface. The trigger operation may be a drag operation, a click operation, a long-time press operation, and the like, which is not limited in this embodiment of the present application. It should be noted that the side edge may be a side edge at any position, such as a left side edge, a right side edge, an upper side edge or a lower side edge.
The dragging operation refers to an operation of dragging the side edge of the display interface from one position to another position, and the termination position of the dragging operation is used for indicating the adjusted size information of the display interface. Illustratively, after detecting a drag operation for a side edge of a display interface, a client determines to receive a size adjustment operation for the display interface, and obtains a termination position of the drag operation, and adjusts a display size of the display interface by using the termination position as an adjusted side edge position of the display interface, and adjusts the side edge of the display interface from an initial position to the adjusted side edge position of the display interface, so as to implement the size adjustment operation for the display interface.
The click operation is a short-time trigger operation for a side single action point of the display interface, and the click frequency of the click operation is used for indicating the adjusted size information of the display interface. Illustratively, after detecting a click operation for a side of a display interface, a client determines to receive a resizing operation for the display interface and obtains the number of clicks of the click operation. For example, the display size of the adjusted display interface corresponding to one click is one half of the display size of the original display interface, the display size of the adjusted display interface corresponding to two clicks is one quarter of the display size of the original display interface, the display size of the adjusted display interface corresponding to three clicks is twice of the display size of the original display interface, the display size of the adjusted display interface corresponding to three clicks is four times of the display size of the original display interface, the number of clicks is one turn, and the display sizes of the adjusted display interfaces corresponding to five clicks and one click are the same. Of course, in actual application, the staff may flexibly set the corresponding relationship between the number of clicks and the display size of the adjusted display interface, which is not limited in the embodiment of the present application. Further, after obtaining the number of clicks of the click operation, the client adjusts the display size of the display interface according to the number of clicks, so as to achieve the size adjustment operation for the display interface. One point to be described is that the single action point aimed at by each click operation can be a single action point at a different position; alternatively, the single action point targeted by each click operation may be a single action point whose distance between the respective positions does not exceed a fixed value.
The long-press operation refers to a long-time trigger operation aiming at a single action point on the side of the display interface, and the action duration of the long-press operation is used for indicating the adjusted size information of the display interface. Illustratively, after detecting a long-press operation for a side edge of the display interface, the client determines to receive a resizing operation for the display interface and obtains an acting time length of the long-press operation. For example, the display size of the adjusted display interface corresponding to the action duration of 1s is one half of the display size of the original display interface, the display size of the adjusted display interface corresponding to the action duration of 2s is one quarter of the display size of the original display interface, the display size of the adjusted display interface corresponding to the action duration of 3s is twice of the display size of the original display interface, the display size of the adjusted display interface corresponding to the action duration of 4s is four times of the display size of the original display interface, the action duration of 4s is one turn, and the action duration of 5s is the same as the display size of the adjusted display interface corresponding to the action duration of 1 s. Of course, in actual application, the staff may flexibly set the correspondence between the action duration and the display size of the adjusted display interface, which is not limited in the embodiment of the present application. Further, after obtaining the action duration of the long press operation, the client adjusts the display size of the display interface according to the action duration, so as to realize the size adjustment operation for the display interface.
In another possible implementation, the resizing operation refers to a display parameter adjustment operation for the display interface. The display parameters can be displayed in a setting interface corresponding to the display interface, a user can adjust the display size of the display interface by modifying the display parameters of the display interface in the setting interface, and the modified display parameters are used for indicating the size information of the adjusted display interface. Optionally, the user may call the setting interface in the display interface through a trigger operation corresponding to the setting interface, and further, the client detects the setting interface, determines to receive a size adjustment operation for the display interface after detecting a modification operation for the display parameter by the user, acquires the modified display parameter from the setting interface, and adjusts the display size of the display interface according to the modified display parameter. The trigger operation corresponding to the setting interface may be a click operation, a long-time press operation, a drag operation, a slide operation, or the like for setting an identifier, and the setting identifier may be a setting interface call-out control, a setting interface call-out icon, a setting interface call-out slider, or the like.
Of course, in other possible embodiments, the user may also adjust the display size of the display interface through other triggering operations, such as rotating the scroll axis of the mouse, performing a corresponding gesture operation, and the like. Exemplarily, setting a corresponding relation between a scrolling condition of a mouse scrolling shaft and a display size of a display interface, after detecting a scrolling operation for the mouse scrolling shaft, obtaining the display size of the corresponding display interface from the corresponding relation according to the scrolling condition of the mouse scrolling shaft, taking the display size of the display interface as the display size of the adjusted display interface, and adjusting the display size of the display interface according to the display size of the display interface; or setting a corresponding relation between the gesture operation and the display size of the display interface, after detecting the gesture operation performed by the user, the client acquires the display size of the corresponding display interface from the corresponding relation according to the gesture operation, uses the display size of the display interface as the display size of the adjusted display interface, and adjusts the display size of the display interface according to the display size of the display interface, wherein the gesture operation may be a touch operation for a touch screen or a gesture video stream collected by a terminal camera component.
2. And acquiring the distance between the first side edge of the document display area and the second side edge of the display interface according to the size adjustment operation.
The first side edge refers to a boundary corresponding to a certain side of the document display area, and the second side edge refers to a boundary corresponding to a certain side of the display interface. Wherein, the first side edge and the second side edge are side edges at the same position. For example, if the first side is the right side of the document display area, the second side is the right side of the display interface, and at this time, the second side is located at the right side of the document display area.
In an embodiment of the present application, the comment display area is located between a first side of the document display area and a second side of the display interface. After receiving the size adjustment operation aiming at the display interface, the client adjusts the display size of the display interface according to the size adjustment operation, and obtains the distance between the first side edge of the document display area and the second side edge of the display interface.
It should be noted that, in the process of changing the display size of the display interface, the display position of the document display area of the display interface may change along with the change of the display interface, or may remain unchanged, which is not limited in the embodiment of the present application.
3. And if the distance is smaller than the threshold value, determining that a display mode switching instruction is received.
The threshold value is a condition value for determining whether or not to switch the display mode of the comment information. The display mode switching instruction is used for switching the display mode of the comment information, and optionally, the display mode switching instruction is used for controlling switching between the first display mode and the second display mode. Alternatively, the threshold may be any value, which is not limited in this embodiment of the application. In the embodiment of the application, after acquiring the distance between the first side of the document display area and the second side of the display interface, the client determines whether to switch the display mode of the comment information based on the distance. Optionally, if the distance is smaller than the threshold, determining that the display mode switching instruction is received; if the distance is larger than the threshold value, determining that the display mode switching instruction is not received, and keeping the comment information to be continuously displayed in the first display mode.
Optionally, in this embodiment of the application, the client may adjust the display position of the comment display area according to the size adjustment operation when the distance is greater than the threshold.
In one possible implementation manner, when the comment information is displayed in the first display mode, the display position of the comment display area is located at the second side of the display interface, in which case, the distance between the third side of the comment display area and the second side of the display interface is smaller than the preset threshold. The third side edge and the second side edge are side edges at the same position, and if the second side edge is the right side edge of the display interface, the third side edge is the right side edge of the comment display area; the preset threshold may be any value, such as 0, 0.1cm, 0.5cm, or 1cm, and the like, which is not limited in this embodiment of the application. Optionally, when the client detects the size adjustment operation, a distance between the first side of the document display area and the second side of the display interface is obtained, and when the distance is greater than the threshold, the client adjusts the third side of the comment display area according to a change of the second side of the display interface when adjusting the display size of the display interface, and at this time, the display size and the display shape of the comment display area are not changed, and further adjusts the display position of the comment display area according to the third side, as shown in fig. 4, when the second side is changed from the first position 41 to the second position 42, the comment display area is changed from the first display position 43 to the second display position 44.
In another possible embodiment, when the comment information is displayed in the first display mode, the display position of the comment display area is located at the first side of the document display area, in which case the distance between the third side of the comment display area and the first side of the document display area is smaller than the preset threshold. The third side edge and the second side edge are side edges at different positions, and if the first side edge is the right side edge of the document display area, the third side edge is the left side edge of the comment display area; the preset threshold may be any value, such as 0, 0.1cm, 0.5cm, or 1cm, and the like, which is not limited in this embodiment of the application. Optionally, when detecting the resizing operation, the client obtains a distance between the first side of the document display area and the second side of the display interface, and determines whether the distance is smaller than a target value when the distance is larger than the threshold. The target value is a condition value for determining whether or not the display position of the comment display area is adjusted. If the distance is smaller than the target value, adjusting the display position of the comment display area, wherein at the moment, one part of the comment display area after the position adjustment is positioned in a blank area of the document display area, and one part of the comment display area after the position adjustment is positioned between the first side edge of the document display area and the second side edge of the display interface; and if the distance is larger than or equal to the target value, the display position of the comment display area is not adjusted, and the display position of the comment display area is kept unchanged. Wherein the target value is greater than the threshold value. Exemplarily, referring to fig. 5 in combination, if the distance between the second side 51 and the first side 52 is greater than the target value in the display interface 50, the comment display area 53 is located between the first side 52 and the second side 51; if the distance between the second side 51 and the first side 52 is smaller than the target value and larger than the threshold value in the display interface 50, a part of the comment display area 53 is located in the blank area 55 of the document display area 54, and a part is located between the first side 52 and the second side 51.
Note that, after the display position of the comment display area is adjusted, the comment information is still displayed in the comment display area in the first display mode.
Of course, in practical applications, the display size of the comment display area may also be adjusted in support. Optionally, under the condition that the distance is greater than the threshold, the client may adjust the display size of the comment display area according to the size adjustment operation, so as to ensure that the comment display area can be completely displayed in the display interface. In another possible implementation manner, the user may also adjust the display size of the comment display area according to the actual situation.
And step 203, displaying the comment information in a second display mode according to the display mode switching instruction.
In the embodiment of the application, after receiving a display mode switching instruction, a client switches a first display mode of comment information to a second display mode according to the display mode switching instruction, and displays the comment information in the second display mode. The second display mode may be any display mode different from the first display mode.
Optionally, the second display modes corresponding to different display mode switching instructions are different, and the user can trigger generation of different display mode switching instructions according to own requirements, so as to control the comment information to be switched to different second display modes. Illustratively, the user can trigger generation of different mode switching instructions through different mode switching controls; or, the user may trigger generation of different mode switching instructions by different operation modes for the same mode switching control.
In a possible implementation manner, the second display mode is a comment identifier corresponding to the comment information. And the comment identifier is used for triggering and displaying the comment information. Alternatively, the comment identifier may be a comment bubble, a comment display control, a comment display icon, or the like. The user can call out the comment information in the display interface through the triggering operation aiming at the comment identifier, and at the moment, the display style of the comment information is the same as the display style corresponding to the first display mode. The triggering operation may be a click operation on the comment identifier, a pressing operation on a key corresponding to the comment identifier, or a gesture operation on the comment identifier, which is not limited in the embodiment of the present application.
In another possible implementation manner, the second display mode is a comment display window corresponding to the comment information. And the comment display window comprises all or part of comment content in the comment information. Optionally, if the comment display window includes all comment contents of the comment information, the user may directly browse the comment information through the comment display window; if the comment display window includes part of comment contents of the comment information, the user can call up all comment contents of the comment information in the display interface through a trigger operation aiming at the comment display window, and at the moment, all comment contents of the comment information can be displayed in the comment display window or can be displayed at any position of the display interface in the mode of the display block. Of course, in the case that all the comment contents of the comment information are displayed in the comment display window, the client may adjust the display size of the comment display window so that the comment display window can accommodate all the comment contents, or may also adjust the display size of each comment element in the comment contents so that the comment display window can accommodate all the comment contents. The triggering operation may be a click operation on the comment display window, a pressing operation on a key corresponding to the comment display window, or a gesture operation on the comment display window, which is not limited in the embodiment of the present application.
Of course, in other possible embodiments, the second display mode may also be other display modes, such as displaying comment information in a dialog box.
In summary, in the technical scheme provided by the embodiment of the application, the display mode of the comment information of the online document is switched through the mode switching instruction, so that the display mode of the comment information is prevented from being single, the comment display mode can be displayed in a display interface in different display modes, the comment information display modes are more diverse, and the limitation of a single display mode is reduced; and the first display mode is displayed on the side of the document display area, and after the mode switching instruction is received, the first display mode is switched to the second display mode, namely the side display mode of the comment information is cancelled, so that the problem that the comment information cannot be completely displayed due to the fact that the display size of the display interface is too small is avoided, and the display mode of the comment information is more flexible.
In addition, when the display size of the display interface is adjusted, when the display size is adjusted to the state that the distance between the first side edge of the document display area and the second side edge of the display interface is smaller than the threshold value, the display mode switching instruction is determined to be received, namely, the display mode of the comment information can be switched according to the adjustment of the display size of the display interface, and the comment information is displayed more flexibly while the display mode of the comment information is automatically switched.
In addition, under the condition that the trigger operation for the mode switching control is detected, the mode switching instruction is determined to be received, that is, the mode switching instruction can be an instruction triggered by the user according to the requirement of the user, so that the display mode of the comment information can meet the requirements of different users.
Referring to fig. 6, a flowchart of a method for displaying an online document according to another embodiment of the present application is shown. The method is applicable to the terminal 10 in the application execution environment shown in fig. 1, for example, the execution subject of each step may be a client of the application program. The method comprises the following steps (601-606):
step 601, displaying a display interface of the online document.
Step 602, receiving a display mode switching instruction for the comment information.
Steps 601 and 602 are the same as steps 201 and 202 in the embodiment of fig. 2, and refer to the embodiment of fig. 2 specifically, which is not described herein again.
Step 603, canceling the display of the comment information and displaying the comment identifier corresponding to the comment information in the comment display area according to the display mode switching instruction.
And the comment identifier is used for triggering display of comment information. The comment identification can be a comment bubble, a comment display control, a comment display icon or the like. In the embodiment of the application, after receiving the display mode switching instruction, the client cancels the display of the comment information in the comment display area according to the display mode switching instruction, and displays the comment identifier corresponding to the comment information in the display interface. Optionally, the comment identifier may be displayed in any area of the display interface, or may be displayed in a blank area of the document display area.
In one possible implementation, the comment identifier is displayed at the head or tail of the line to which the document content for which the comment information pertains. Optionally, after receiving the display mode switching instruction, the client acquires the document content to which the comment information is directed, and acquires the position of the document content in the online document, thereby determining a line to which the document content belongs, and displays a comment identifier corresponding to the comment information at the head or the tail of the line to which the document content belongs. Illustratively, as shown in fig. 7, in the display interface 70, the document content 71 to which the comment information is directed is located in the fifth line and the sixth line of the online document, and a comment identifier 72 corresponding to the comment information is displayed at the end of the fifth line. Of course, the client may also display the comment identifier 72 corresponding to the comment information at the end of the sixth line, which is not limited in this embodiment of the application.
In another possible implementation, the comment identifies a surrounding area displayed in the document content for which the comment information is intended. Optionally, the surrounding area may be an area centered at a center position of the document content for which the comment information is directed, where a distance between each point in the surrounding area and the center position of the document content is smaller than a target value, and the target value may be any value, which is not limited in this embodiment of the application. Optionally, after receiving the display mode switching instruction, the client acquires the document content to which the comment information is directed, acquires the position of the document content in the online document, further determines a surrounding area of the document content with the center position of the document content as a center, and displays the comment identifier in the surrounding area. In a possible implementation mode, the client can display the comment identification at any position in the surrounding area; in another possible implementation, in order to avoid the occlusion of the document content, the client may display the comment identifier in a blank area in the surrounding area, such as in a page line space.
It should be noted that, in the embodiment of the present application, the display number or the display style of the comment identifier is related to the number of comment information. In one possible implementation, each piece of comment information corresponds to a comment identification. Optionally, after receiving the display mode switching instruction, the client acquires the number of the comment information, and displays the corresponding number of comment identifiers according to the number of the comment information. Illustratively, as shown in fig. 8, in the case that each piece of comment information corresponds to one comment identification, in the display interface 80, a first document content 81, a second document content 82 and a third document content 83 for which three pieces of comment information are respectively directed are included in a second line of the online document, and a first comment identification 84, a second comment identification 85 and a third comment identification 86 are displayed at the end of the second line, wherein the first comment identification 84 corresponds to the first document content 81, the second comment identification 85 corresponds to the second document content 82, and the third comment identification 86 corresponds to the third document content 83. Of course, the display styles of the comment identifiers corresponding to different comment information may be the same or different, and this is not limited in this application embodiment. In another possible implementation, at least one piece of comment information for which the document content belongs to the same area corresponds to one comment identification. The comment identification comprises quantity prompt information, and the quantity prompt information is used for indicating the quantity of the comment information corresponding to the comment identification. Optionally, after the client acquires the display mode switching instruction, the number of the comment information is acquired, the number prompt information included in the comment identifier is determined according to the number of the comment information, the display style of the comment identifier is determined based on the number prompt information, and the comment identifier is displayed. Optionally, the same region may be a region divided according to any rule, for example, the same region may be a same segment, a same row, two adjacent segments, two adjacent rows, and the like, which is not limited in this embodiment of the present application. Illustratively, as shown in fig. 8, in a case where a plurality of pieces of comment information correspond to one comment identification, in the display interface 80, the first document content 81, the second document content 82, and the third document content 83 for which three pieces of comment information are respectively directed are included in the second line of the online document, and a comment identification 87 is displayed at the end of the second line, the comment identification 87 including the number cue information "3" therein.
And step 604, responding to the trigger operation aiming at the comment identification, and displaying the comment information corresponding to the comment identification.
The triggering operation refers to an operation triggered by a user and used for controlling the display interface to display the comment information. Optionally, the user may trigger the trigger operation of generating the comment identifier by clicking the comment identifier, may also trigger the trigger operation of generating the comment identifier by pressing a key corresponding to the comment identifier, and may also trigger the trigger operation of generating the comment identifier by a gesture operation corresponding to the comment identifier.
In the embodiment of the application, after the client detects the trigger operation for the comment identifier, comment information corresponding to the comment identifier is displayed. And the display style of the comment information is the same as the display style corresponding to the first display mode. In one possible implementation, the display position of the comment information is related to the position of the document content to which the comment information is directed. After detecting the trigger operation aiming at the comment identification, the client acquires the document content aiming at the comment information, acquires the position of the document content in the online document, and determines the display position of the comment information based on the position of the document content in the online document. Illustratively, the comment information is displayed at 0.5cm below the center position of the document content for which the comment information is directed. Of course, in other possible embodiments, the comment information may be displayed at any position in the display interface, such as a central position of the display interface.
It should be noted that, in the embodiment of the present application, while the client displays the comment information, the document content to which the comment information is directed may be marked in the document display area, that is, the document content to which the comment information is directed has a corresponding mark. The mark may be any mark, such as a dashed line mark, a wire frame mark, a background color mark, and the like, which is not limited in this embodiment of the application. Illustratively, referring to fig. 7 and 9 in combination, after clicking the comment indicator 72 in fig. 7, the user reviews the comment information corresponding to the comment indicator 72 in the display interface 90, and the comment information is displayed in the first display mode 33. In addition, in the online document, the document content to which the comment information is directed is identified using a dashed box 91, and the display position of the comment information is located below the document content.
The point to be further described is that if the number of the comment information corresponding to one comment identifier is not unique, the client can simultaneously display a plurality of comment information when detecting the trigger operation for the comment identifier; or when the client detects a trigger operation for the comment identifier, acquiring an operation attribute of the trigger operation, and determining the displayed comment information according to the trigger attribute, for example, if the trigger operation is a click operation, determining the displayed comment information according to a click number corresponding to the click operation, where a front-back sequence of document content for which the comment information is directed is in a positive correlation with the click number.
Step 605, in the case where the position moving operation for the comment information is detected, the display position of the comment information is updated in the display interface based on the position moving operation.
The position moving operation is used for moving the display position of the comment information in the display interface. Alternatively, the position moving operation may be an operation generated by user triggering. Wherein, the response area of the position moving operation is the display area of the comment information. Illustratively, the user may trigger generation of the above-described position movement operation by a drag operation for the display area of the comment information. Of course, in actual practice, the user may trigger the generation of the position moving operation by setting in the setting interface.
In the embodiment of the application, when the client detects the position moving operation aiming at the comment information, the display position of the comment information is updated in the display interface according to the position moving operation. Optionally, the position moving operation includes a display position of the updated comment information. After receiving the position moving operation, the client may determine the updated display position of the comment information according to the position moving operation, and update the display position of the comment information based on the updated display position of the comment information.
And 606, canceling the display of the comment information when the trigger operation outside the display area of the comment information is detected.
In the embodiment of the application, when the client detects the trigger operation aiming at the outside of the display area of the comment information, the comment information is cancelled to be displayed. The trigger operation may be any operation outside the display area of the comment information, such as a click operation, a slide operation, a drag operation, a long-press operation, and the like, which is not limited in this embodiment of the application.
In summary, in the technical scheme provided by the embodiment of the application, the comment information is switched to the comment identifier from the first display mode, and the user can control the display interface to display the comment information through the comment identifier, so that the comment information is displayed more flexibly, the user can display the required comment information in the display interface according to the self requirement, and the condition that the comment information is displayed in the display interface to cause large processing load of the terminal is avoided.
Referring to fig. 10, a flowchart of a method for displaying an online document according to still another embodiment of the present application is shown. The method is applicable to the terminal 10 in the application execution environment shown in fig. 1, for example, the execution subject of each step may be a client of the application program. The method comprises the following steps (1001-1003):
step 1001, displaying a display interface of the online document.
Step 1002, receiving a display mode switching instruction for comment information.
Steps 1001 and 1002 are the same as steps 201 and 202 in fig. 2, and refer to the embodiment in fig. 2 specifically, which is not described herein again.
Step 1003, according to the display mode switching instruction, canceling to display the comment information in the comment display area, and displaying a comment display window corresponding to the comment information in the document display area.
And the comment display window is used for displaying the comment information. Optionally, the comment information is included in the comment display window. In the embodiment of the application, after receiving the display mode switching instruction, the client cancels the display of the comment information in the comment display area according to the display mode switching instruction, and displays the comment display window corresponding to the comment information in the document display area. Note that the comment display window may be displayed at any position on the display interface, or may be displayed in a blank area of the document display area.
Optionally, in this embodiment of the present application, a comment display window corresponding to the comment information is displayed above or below the area to which the document content to which the comment information pertains. The area may be an area divided according to any rule, for example, the area may be an area divided according to each segment, may also be an area divided according to each line, may also be an area divided according to every two segments or every two lines, and the like, which is not limited in this embodiment. Optionally, after receiving the display mode switching instruction, the client acquires the document content to which the comment information is directed, acquires the position of the document content in the online document, further determines an area to which the document content belongs, and displays a comment display window corresponding to the comment information above or below the area to which the document content belongs. For example, if the area is an area divided by each line, after receiving the display mode switching instruction, the client may display the comment display window in an upper line interval or a lower line interval of a line to which the document content to which the comment information pertains. It should be noted that the display size and the display shape of the comment display window can be flexibly set, which is not limited in the embodiment of the present application.
In a possible implementation manner, the display size of the comment display window does not support adjustment, that is, the comment display window includes the support display content in the comment information, and the support display content refers to the comment content extracted from the comment information according to the display size of the comment display window. Optionally, after detecting the display mode switching instruction, the client acquires a display size of the comment display window, determines the number of comment elements that can be displayed in the comment display window according to the display size of the comment display window and the display size of each comment element in the comment information, and based on the number of the comment elements, in a sequence of the comment information from front to back, uses the comment elements corresponding to the number of the comment elements in the comment information as the support display content, and further displays the comment display window in a display interface, where the comment display window includes the support display content and does not include other display contents except the support display content in the comment content.
In another possible implementation manner, the display size of the comment display window is adjusted according to the display size of the comment information, that is, the comment display window includes all comment contents in the comment information. Optionally, after obtaining the display mode switching instruction, the client obtains a display size of each comment element in the comment information, further determines a display size of comment content in the comment information, and displays the comment display window in a display interface based on the display size of the comment content, where the comment display window includes all comment content of the comment information.
In summary, in the technical scheme provided by the embodiment of the application, the comment information is switched to the comment display window from the first display mode, and the comment display window includes the comment information, so that the comment information can still be directly displayed under the condition that the side of the document display area in the display interface is small, a user can conveniently and directly browse the comment information, and the operation is simple and convenient.
In addition, referring to fig. 11 in combination, a complete description is given of changes in the display position and the display mode of the comment information.
In step 1101, the client displays a display interface of the online document. The display interface comprises a document display area and a comment display area, and the comment display area is located between a first side edge of the document display area and a second side edge of the display interface.
Step 1102, a client obtains comment information for an online document.
In step 1103, the client detects whether the distance between the first side of the document display area and the second side of the display interface is greater than or equal to a target value. If the distance between the first side of the document display area and the second side of the display interface is greater than or equal to the target value, go to step 1104; if the distance between the first side of the document display area and the second side of the display interface is smaller than the target value, go to step 1106.
In step 1104, the client displays the comment information in the comment display area in a first display mode.
In step 1105, the client detects a resizing operation for the display interface.
In step 1106, the client detects whether the distance between the first side of the document display area and the second side of the display interface is greater than or equal to a threshold. Wherein the threshold value is less than the target value. If the distance between the first side of the document display area and the second side of the display interface is greater than or equal to the threshold value, execute step 1107; if the distance between the first side of the document display area and the second side of the display interface is smaller than the threshold, go to step 1108.
In step 1107, the client adjusts the display position of the comment display area, so that a part of the comment display area is located in the blank area of the document display area, and a part of the comment display area is located between the first side of the document display area and the second side of the display interface. At this time, the comment information is displayed in the comment display area in the first display mode.
In step 1108, the client switches the display mode of the comment information from the first display mode to the second display mode.
Next, a manner of adding comment information in the second display mode will be described.
Referring to fig. 12, a flowchart of a method for displaying an online document according to another embodiment of the present application is shown. The method is applicable to the terminal 10 in the application execution environment shown in fig. 1, for example, the execution subject of each step may be a client of the application program. The method comprises the following steps (1201-1204):
step 1201, displaying a display interface of the online document.
The display interface is an interface for displaying the online document. Optionally, the display interface is a display window corresponding to a certain application program, and after the terminal detects a start instruction for the application program, the display window corresponding to the application program is displayed in the screen. The display size and the display style of the display interface may be different for different applications, which is not limited in the embodiments of the present application.
In the embodiment of the application, after receiving an opening instruction for an online document, a client displays the online document in the display interface, that is, displays the display interface of the online document. Optionally, the display interface includes a document display area. The document display area is used for displaying the online document, and comprises a non-blank area displaying document content and a blank area not displaying the document content.
It should be noted that the document display area may be located at any position in the display interface. Optionally, when the online document is opened, the client may determine the position of the document display area according to the setting of a worker, may also determine the position of the document display area according to the setting of a user, and may also determine the position of the document display area according to the display size of the online document.
Step 1202, in response to a comment adding operation for the online document, displays a comment input window in the document display area.
And the comment adding operation is used for adding comment information aiming at the online document in the display interface. Optionally, the comment adding operation triggers the generated operation for the user. In one possible embodiment, the comment adding operation is generated by a user through a triggering operation aiming at the comment adding control. The trigger operation may be a click operation, a long-time press operation, a drag operation, a slide operation, or the like, which is not limited in this embodiment of the application. Optionally, the display interface includes a comment adding control, the comment adding control may be displayed at any position of the display interface, and the comment adding control may be directly displayed in the display interface or may be hidden and displayed in the display interface. Of course, in other possible embodiments, the user may also trigger generation of the comment adding operation in other manners, such as triggering generation of the comment adding operation according to a gesture operation corresponding to the comment adding operation.
In the embodiment of the application, after the display interface of the online document is displayed, the client can detect the display interface, determine that a comment adding operation for the online document is received after a trigger operation of a user for a comment adding control is detected, and display a comment input window in the display interface. The comment input window is used for acquiring comment information input by a user. Optionally, the display size and the display shape of the comment input window may be fixed, or may also be adjustable, which is not limited in this embodiment of the application.
The comment information may be a self-viewpoint or a suggestion expressed by a user for a certain part of document content of the online document when browsing the online document, and of course, in different applications, the comment information may be referred to as a comment, a remark, a book comment, and the like. Optionally, before the user triggers generation of the comment adding operation, the user may obtain the document content targeted by the comment adding operation and perform a selection operation. The selection operation is a sliding operation, for example, a user selects the document content targeted by the comment adding operation by a sliding operation from the start end to the end of the document content targeted by the comment adding operation. Illustratively, after a display interface of the online document is displayed, the display interface is detected by a client, after a sliding operation in a document display area is detected, a starting end and an ending end of document content targeted by the sliding operation are acquired, the document content between the starting end and the ending end selected by a user is determined, further, when a trigger operation targeted by a comment adding control is detected by the client, a comment adding operation targeted by the document content is determined to be generated, and a comment input window corresponding to the document content is displayed in the document display area.
Optionally, in this embodiment of the present application, a display manner of the comment input window is related to a display form of the comment information.
In a possible implementation manner, the comment information is displayed in the document display area in the form of a comment identifier. And the comment identifier is used for triggering display of comment information. Optionally, when the client displays the comment input window, the comment input window is displayed on the upper layer of the document content of the online document. At this time, the display position of the comment input window may be any position of the display interface, such as the center position of the display interface; alternatively, the display position of the comment input window may also be related to the position of the document content targeted by the comment adding operation in the online document, such as the display position of the comment input window being located below or in the surrounding area of the document content targeted by the comment adding operation. The peripheral area is an area centered at the center position of the document content targeted by the comment adding operation, wherein a distance between each point in the peripheral area and the center position of the document content is less than a certain numerical value, and the numerical value may be any numerical value, which is not limited in the embodiment of the present application.
In another possible embodiment, the comment information is displayed in the document display area in the form of a comment display window. And the comment display window comprises comment information. Optionally, when the client displays the comment input window, the comment input window is displayed in an embedded manner in the document content of the online document. At this time, the display position of the comment input window may be any position of the display interface, such as the center position of the display interface; alternatively, the display position of the comment input window may also be related to the position of the document content targeted by the comment adding operation in the online document, such as the display position of the comment input window being above or below the region to which the document content targeted by the comment adding operation belongs. The area may be an area divided according to any rule, for example, the area may be an area divided according to each segment, may also be an area divided according to each line, may also be an area divided according to every two segments or every two lines, and the like, which is not limited in this embodiment.
Step 1203, displaying the input comment information in a comment input window.
In the embodiment of the application, after the client displays the comment input window, the comment information input by the user is acquired based on the comment input window, and the input comment information is displayed in the comment input window. Optionally, the user may input the comment information through an external hardware device (such as a keyboard, etc.), or may input the comment information through a touch operation on a terminal screen; of course, the user may also input the comment information in a voice input mode, a gesture input mode, an image input mode, and the like, which is not limited in the embodiment of the present application.
Step 1204, display the comment information in the second display mode in the document display area.
The second display mode may be any display mode different from the first display mode. The first display mode refers to a mode in which comment information is displayed in a display block, the shape of which may be any shape such as a rectangle, a circle, a diamond, and the display size of which may be any size.
In the embodiment of the application, after the client acquires the comment information through the comment input window, the comment information can be displayed in the document display area in the second display mode. The comment information may be displayed in a blank area of the document display area, or may be displayed in a non-blank area of the document display area, which is not limited in the embodiment of the present application.
In a possible implementation manner, the comment information is displayed in the document display area in the form of a comment identifier. And the comment identifier is used for triggering display of comment information. Optionally, when the client displays the comment information, the comment identifier corresponding to the comment information is displayed in the document display area. In one possible implementation, the comment identification is displayed at the head or tail of the line to which the document content for which the comment addition operation is directed belongs. In another possible implementation, the comment identification is displayed in a surrounding area of the document content for which the comment addition operation is directed. Optionally, the surrounding area may be an area centered at a center position of the document content for which the comment information is directed, where a distance between each point in the surrounding area and the center position of the document content is smaller than a target value, and the target value may be any value, which is not limited in this embodiment of the application.
In another possible embodiment, the comment information is displayed in the document display area in the form of a comment display window. And the comment display window comprises comment information. Alternatively, the comment display window is displayed above or below the region to which the document content targeted for the comment adding operation belongs. The area may be an area divided according to any rule, for example, the area may be an area divided according to each segment, may also be an area divided according to each line, may also be an area divided according to every two segments or every two lines, and the like, which is not limited in this embodiment. It should be noted that, in the embodiment of the present application, the comment display window and the comment input window may be the same window or different windows. In a possible implementation manner, the comment display window and the comment input window are the same window, optionally, after the client detects that the comment information is input, the comment input window is determined to be converted into the comment display window, and then, if the user continues to perform comment adding operation on the document content targeted by the comment display window, the comment display window is converted into the comment input window again; in another possible implementation manner, the comment display window and the comment input window are different windows, optionally, after the client detects that the comment information is input completely, the client cancels the comment input window, displays the comment display window in the document display area, and then displays a new comment input window if the user continues to perform comment adding operation on the document content targeted by the comment display window, and obtains new comment information according to the new comment input window, thereby updating the comment information displayed by the comment display window.
In summary, in the technical scheme provided by the embodiment of the application, the comment information is displayed in the document display area, so that the comment information can be completely displayed under the condition that the display size of the display interface is too small, so that other display areas except the document display area are not included in the display interface, the completeness of comment information display is ensured, and a user can conveniently and directly browse the comment information.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Referring to fig. 13, a block diagram of a display device for an online document according to an embodiment of the present application is shown. The device has the function of realizing the display method of the online document, and the function can be realized by hardware or by hardware executing corresponding software. The device can be a terminal or be arranged in the terminal. The apparatus 1300 may include: a document display module 1310, an instruction receiving module 1320, and a mode switching module 1330.
The document display module 1310 is configured to display a display interface of an online document, where the display interface includes a document display area and a comment display area, the document display area is configured to display the online document, the comment display area is configured to display comment information of the online document in a first display mode, and the comment display area is located between a first side of the document display area and a second side of the display interface.
An instruction receiving module 1320, configured to receive a display mode switching instruction for the comment information.
The mode switching module 1330 is configured to display the comment information in a second display mode according to the display mode switching instruction.
In an exemplary embodiment, the mode switching module 1330 is configured to, according to the display mode switching instruction, cancel displaying the comment information in the comment display area, and display a comment identifier corresponding to the comment information, where the comment identifier is used to trigger displaying the comment information.
In an exemplary embodiment, as shown in fig. 14, the apparatus 1300 further includes: an information display module 1340.
The information display module 1340 is configured to display the comment information corresponding to the comment identifier in response to a trigger operation for the comment identifier; wherein the document content for which the comment information is directed has a corresponding mark.
In an exemplary embodiment, as shown in fig. 14, the apparatus 1300 further includes: an information moving module 1350 and an information canceling module 1360.
An information moving module 1350 configured to, in a case where a position moving operation for the comment information is detected, update a display position of the comment information in the display interface based on the position moving operation; wherein, the response area of the position moving operation is the display area of the comment information;
the information canceling module 1360 is configured to cancel displaying the comment information when a trigger operation outside the display area for the comment information is detected.
In an exemplary embodiment, the mode switching module 1330 is configured to, according to the display mode switching instruction, cancel displaying the comment information in the comment display area, and display a comment display window corresponding to the comment information in the document display area, where the comment display window includes the comment information.
In an exemplary embodiment, the mode switching module 1330 is further configured to display a comment display window corresponding to the comment information above or below the area to which the document content to which the comment information pertains.
In an exemplary embodiment, the instruction receiving module 1320 is configured to receive a resizing operation for the display interface; acquiring a distance between a first side edge of the document display area and a second side edge of the display interface according to the size adjustment operation; and if the distance is smaller than a threshold value, determining that the display mode switching instruction is received.
In an exemplary embodiment, as shown in fig. 14, the apparatus 1300 further includes: a position adjustment module 1370.
A position adjusting module 1370, configured to, when the distance is greater than the threshold, adjust the display position of the comment display area according to the size adjusting operation.
In an exemplary embodiment, the instruction receiving module 1320 is configured to determine that the display mode switching instruction is received when a trigger operation for a mode switching control is detected.
In summary, in the technical scheme provided by the embodiment of the application, the display mode of the comment information of the online document is switched through the mode switching instruction, so that the display mode of the comment information is prevented from being single, the comment information can be displayed in a display interface in different display modes, the display modes of the comment information are more diverse, and the limitation of a single display mode is reduced; and the first display mode is displayed on the side of the document display area, and after the mode switching instruction is received, the first display mode is switched to the second display mode, namely the side display mode of the comment information is cancelled, so that the problem that the comment information cannot be completely displayed due to the fact that the display size of the display interface is too small is avoided, and the display mode of the comment information is more flexible.
Referring to fig. 15, a block diagram of a display device for an online document according to still another embodiment of the present application is shown. The device has the function of realizing the display method of the online document, and the function can be realized by hardware or by hardware executing corresponding software. The device can be a terminal or be arranged in the terminal. The apparatus 1500 may include: an interface display module 1510, a window display module 1520, an information input module 1530, and a comment display module 1540.
The interface display module 1510 is configured to display a display interface of an online document, where the display interface includes a document display area, and the document display area is used to display the online document.
A window display module 1520, configured to display a comment input window in the document display area in response to a comment addition operation for the online document.
And an information input module 1530 for displaying the input comment information in the comment input window.
A comment displaying module 1540, configured to display the comment information in the document display area in the second display mode.
In an exemplary embodiment, the window display module 1520, for displaying the comment input window on a document content upper layer of the online document; the comment displaying module 1540 is configured to display a comment identifier corresponding to the comment information in the document display area, where the comment identifier is used to trigger display of the comment information.
In an exemplary embodiment, the window display module 1520, for displaying the comment input window in an embedded manner in the document content of the online document; the comment displaying module 1540 is configured to display a comment displaying window corresponding to the comment information in the document displaying area, where the comment displaying window includes the comment information.
According to the technical scheme, the comment information is displayed in the document display area, so that the comment information can be completely displayed under the condition that the display size of the display interface is too small and other display areas except the document display area are not included in the display interface, the completeness of comment information display is guaranteed, and a user can conveniently and directly browse the comment information.
It should be noted that, when the apparatus provided in the foregoing embodiment implements the functions thereof, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the apparatus may be divided into different functional modules to implement all or part of the functions described above. In addition, the apparatus and method embodiments provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments for details, which are not described herein again.
Referring to fig. 16, a block diagram of a terminal 1600 according to an embodiment of the present application is shown. The terminal 1600 may be an electronic device such as a mobile phone, a tablet Computer, a game console, an electronic book reader, a multimedia player, a wearable device, a PC (Personal Computer), and the like. The terminal is used for implementing the online document display method provided in the above embodiment. The terminal may be the terminal 10 in the game play environment of fig. 1. Specifically, the method comprises the following steps:
generally, terminal 1600 includes: a processor 1601, and a memory 1602.
Processor 1601 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The processor 1601 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field Programmable Gate Array), and a PLA (Programmable Logic Array). Processor 1601 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also referred to as a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 1601 may be integrated with a GPU (Graphics Processing Unit, a display of an online document), which is responsible for rendering and drawing content required to be displayed on the display screen. In some embodiments, the processor 1601 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 1602 may include one or more computer-readable storage media, which may be non-transitory. The memory 1602 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in the memory 1602 is used to store at least one instruction, at least one program, set of codes, or set of instructions configured to be executed by one or more processors to implement the above-described online document display method.
In some embodiments, the terminal 1600 may also optionally include: peripheral interface 1603 and at least one peripheral. Processor 1601, memory 1602 and peripheral interface 1603 may be connected by buses or signal lines. Various peripheral devices may be connected to peripheral interface 1603 via buses, signal lines, or circuit boards. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1604, a display 1605, a camera assembly 1606, audio circuitry 1607, a positioning assembly 1608, and a power supply 1609.
Those skilled in the art will appreciate that the configuration shown in fig. 16 is not intended to be limiting of terminal 1600, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be employed.
In an exemplary embodiment, there is also provided a computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions which, when executed by a processor, implements the above-described method of displaying an online document.
Optionally, the computer-readable storage medium may include: ROM (Read Only Memory), RAM (Random Access Memory), SSD (Solid State drive), or optical disc. The Random Access Memory may include a ReRAM (resistive Random Access Memory) and a DRAM (Dynamic Random Access Memory).
In an exemplary embodiment, a computer program product or computer program is also provided, the computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the terminal reads the computer instruction from the computer readable storage medium, and the processor executes the computer instruction, so that the terminal executes the display method of the online document.
It should be understood that reference to "a plurality" herein means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. In addition, the step numbers described herein only exemplarily show one possible execution sequence among the steps, and in some other embodiments, the steps may also be executed out of the numbering sequence, for example, two steps with different numbers are executed simultaneously, or two steps with different numbers are executed in a reverse order to the order shown in the figure, which is not limited by the embodiment of the present application.
The above description is only exemplary of the present application and should not be taken as limiting the present application, and any modifications, equivalents, improvements and the like that are made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (15)

1. A method of displaying an online document, the method comprising:
the method comprises the steps that a display interface of an online document is displayed, the display interface comprises a document display area and a comment display area, the document display area is used for displaying the online document, the comment display area is used for displaying comment information of the online document in a first display mode, and the comment display area is located between a first side edge of the document display area and a second side edge of the display interface;
receiving a display mode switching instruction aiming at the comment information;
and displaying the comment information in a second display mode according to the display mode switching instruction.
2. The method according to claim 1, wherein the displaying the comment information in a second display mode according to the display mode switching instruction includes:
according to the display mode switching instruction, the comment information is displayed in the comment display area in a non-display mode, and a comment identifier corresponding to the comment information is displayed, wherein the comment identifier is used for triggering display of the comment information.
3. The method of claim 2, wherein after displaying the comment identifier corresponding to the comment information, the method further comprises:
responding to the trigger operation aiming at the comment identification, and displaying the comment information corresponding to the comment identification;
wherein the document content for which the comment information is directed has a corresponding mark.
4. The method of claim 3, wherein after displaying the comment information corresponding to the comment identification, further comprising:
updating a display position of the comment information in the display interface based on a position movement operation in a case where the position movement operation for the comment information is detected; wherein, the response area of the position moving operation is the display area of the comment information;
and canceling the display of the comment information when the trigger operation aiming at the outside of the display area of the comment information is detected.
5. The method according to claim 1, wherein the displaying the comment information in a second display mode according to the display mode switching instruction includes:
according to the display mode switching instruction, the comment information is displayed in the comment display area in a non-display mode, and a comment display window corresponding to the comment information is displayed in the document display area, wherein the comment display window comprises the comment information.
6. The method of claim 5, wherein the displaying a comment display window corresponding to the comment information in the document display area comprises:
and displaying a comment display window corresponding to the comment information above or below the region to which the document content corresponding to the comment information belongs.
7. The method according to any one of claims 1 to 9, wherein the receiving of the display mode switching instruction for the comment information includes:
receiving a resizing operation for the display interface; acquiring a distance between a first side edge of the document display area and a second side edge of the display interface according to the size adjustment operation; if the distance is smaller than a threshold value, determining that the display mode switching instruction is received;
alternatively, the first and second electrodes may be,
and determining to receive the display mode switching instruction under the condition that the triggering operation for the mode switching control is detected.
8. The method of claim 7, wherein after receiving the resizing operation for the display interface, further comprising:
and under the condition that the distance is larger than the threshold value, adjusting the display position of the comment display area according to the size adjustment operation.
9. A method of displaying an online document, the method comprising:
the display interface is used for displaying the online document, the display interface comprises a document display area, and the document display area is used for displaying the online document;
in response to a comment adding operation for the online document, displaying a comment input window in the document display area;
displaying the input comment information in the comment input window;
displaying the comment information in a second display mode in the document display area.
10. The method of claim 9, wherein said displaying a comment input window in said document display area comprises:
displaying the comment input window on a document content upper layer of the online document;
the displaying the comment information in the document display area in a second display mode includes:
and displaying a comment identifier corresponding to the comment information in the document display area, wherein the comment identifier is used for triggering and displaying the comment information.
11. The method of claim 9, wherein said displaying a comment input window in said document display area comprises:
displaying the comment input window in an embedded manner in document content of the online document;
the displaying the comment information in the document display area in a second display mode includes:
and displaying a comment display window corresponding to the comment information in the document display area, wherein the comment display window comprises the comment information.
12. An apparatus for displaying an online document, the method comprising:
the device comprises a document display module, a comment display module and a comment display module, wherein the document display module is used for displaying an online document, the comment display module is used for displaying comment information of the online document in a first display mode, and the comment display module is positioned between a first side edge of the document display module and a second side edge of the display interface;
the instruction receiving module is used for receiving a display mode switching instruction aiming at the comment information;
and the mode switching module is used for displaying the comment information in a second display mode according to the display mode switching instruction.
13. An apparatus for displaying an online document, the method comprising:
the interface display module is used for displaying a display interface of an online document, wherein the display interface comprises a document display area, and the document display area is used for displaying the online document;
a window display module for displaying a comment input window in the document display area in response to a comment addition operation for the online document;
the information input module is used for displaying the input comment information in the comment input window;
and the comment display module is used for displaying the comment information in a second display mode in the document display area.
14. A terminal, characterized in that it comprises a processor and a memory, in which at least one instruction, at least one program, a set of codes or a set of instructions is stored, which is loaded and executed by the processor to implement the method for displaying an online document according to any one of claims 1 to 8, or to implement the method for displaying an online document according to any one of claims 9 to 11.
15. A computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the method of displaying an online document according to any one of claims 1 to 8, or to implement the method of displaying an online document according to any one of claims 9 to 11.
CN202011045472.0A 2020-09-28 2020-09-28 Online document display method, device, terminal and storage medium Active CN112114734B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011045472.0A CN112114734B (en) 2020-09-28 2020-09-28 Online document display method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011045472.0A CN112114734B (en) 2020-09-28 2020-09-28 Online document display method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN112114734A true CN112114734A (en) 2020-12-22
CN112114734B CN112114734B (en) 2023-08-08

Family

ID=73797278

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011045472.0A Active CN112114734B (en) 2020-09-28 2020-09-28 Online document display method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN112114734B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112835860A (en) * 2021-02-19 2021-05-25 腾讯科技(深圳)有限公司 Shared document processing method, device, equipment and computer readable storage medium
CN113128185A (en) * 2021-04-16 2021-07-16 北京字跳网络技术有限公司 Interaction method and device and electronic equipment
CN115309308A (en) * 2022-07-20 2022-11-08 北京达佳互联信息技术有限公司 Method, device, equipment, system and storage medium for commenting online document
WO2023020548A1 (en) * 2021-08-18 2023-02-23 北京字跳网络技术有限公司 Data processing method and apparatus for application program, and terminal and storage medium
WO2023138472A1 (en) * 2022-01-20 2023-07-27 北京字跳网络技术有限公司 Document comment display method and apparatus, device and medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6438566B1 (en) * 1993-06-30 2002-08-20 Canon Kabushiki Kaisha Document processing method and apparatus which can add comment data added to an original document to a revised document
US6865713B1 (en) * 1998-08-07 2005-03-08 International Business Machines Corporation Apparatus, program product and method of annotating a hypertext document with comments
CN103414943A (en) * 2013-07-12 2013-11-27 深圳Tcl新技术有限公司 Television program comment information processing method and system
CN104951196A (en) * 2014-03-27 2015-09-30 珠海金山办公软件有限公司 Display method and device for document remark content
CN105094841A (en) * 2015-08-14 2015-11-25 百度在线网络技术(北京)有限公司 Page commenting method and device
CN108885616A (en) * 2016-03-31 2018-11-23 微软技术许可有限责任公司 User interface for comment associated with the electronic document of collaborative editing of navigating
CN109710871A (en) * 2018-12-28 2019-05-03 百度在线网络技术(北京)有限公司 Forum postings methods of exhibiting and device
CN110990700A (en) * 2019-11-29 2020-04-10 北京达佳互联信息技术有限公司 Comment information display method, device, client, server and system
CN111062194A (en) * 2019-12-18 2020-04-24 腾讯科技(深圳)有限公司 Document processing method and device, computer equipment and readable storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6438566B1 (en) * 1993-06-30 2002-08-20 Canon Kabushiki Kaisha Document processing method and apparatus which can add comment data added to an original document to a revised document
US6865713B1 (en) * 1998-08-07 2005-03-08 International Business Machines Corporation Apparatus, program product and method of annotating a hypertext document with comments
CN103414943A (en) * 2013-07-12 2013-11-27 深圳Tcl新技术有限公司 Television program comment information processing method and system
CN104951196A (en) * 2014-03-27 2015-09-30 珠海金山办公软件有限公司 Display method and device for document remark content
CN105094841A (en) * 2015-08-14 2015-11-25 百度在线网络技术(北京)有限公司 Page commenting method and device
CN108885616A (en) * 2016-03-31 2018-11-23 微软技术许可有限责任公司 User interface for comment associated with the electronic document of collaborative editing of navigating
CN109710871A (en) * 2018-12-28 2019-05-03 百度在线网络技术(北京)有限公司 Forum postings methods of exhibiting and device
CN110990700A (en) * 2019-11-29 2020-04-10 北京达佳互联信息技术有限公司 Comment information display method, device, client, server and system
CN111062194A (en) * 2019-12-18 2020-04-24 腾讯科技(深圳)有限公司 Document processing method and device, computer equipment and readable storage medium

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112835860A (en) * 2021-02-19 2021-05-25 腾讯科技(深圳)有限公司 Shared document processing method, device, equipment and computer readable storage medium
CN112835860B (en) * 2021-02-19 2022-03-25 腾讯科技(深圳)有限公司 Shared document processing method, device, equipment and computer readable storage medium
CN113128185A (en) * 2021-04-16 2021-07-16 北京字跳网络技术有限公司 Interaction method and device and electronic equipment
WO2022218034A1 (en) * 2021-04-16 2022-10-20 北京字跳网络技术有限公司 Interaction method and apparatus, and electronic device
WO2023020548A1 (en) * 2021-08-18 2023-02-23 北京字跳网络技术有限公司 Data processing method and apparatus for application program, and terminal and storage medium
WO2023138472A1 (en) * 2022-01-20 2023-07-27 北京字跳网络技术有限公司 Document comment display method and apparatus, device and medium
CN115309308A (en) * 2022-07-20 2022-11-08 北京达佳互联信息技术有限公司 Method, device, equipment, system and storage medium for commenting online document

Also Published As

Publication number Publication date
CN112114734B (en) 2023-08-08

Similar Documents

Publication Publication Date Title
CN112114734B (en) Online document display method, device, terminal and storage medium
JP7138804B2 (en) INTERFACE DISPLAY METHOD AND DEVICE, TERMINAL AND COMPUTER PROGRAM
KR20130127349A (en) System and control method for character make-up
US10120568B2 (en) Hover controlled user interface element
EP4268913A1 (en) Position adjustment method and apparatus for operation controls, and terminal, and storage medium
CN112929748B (en) Video processing method, video processing device, electronic equipment and medium
CN108984089B (en) Touch operation method and device, storage medium and electronic equipment
CN113835580A (en) Application icon display method and device, electronic equipment and storage medium
CN110377220B (en) Instruction response method and device, storage medium and electronic equipment
WO2020186837A1 (en) Text animation control method and device, storage medium and processor
CN102693064B (en) Method and system for quitting protection screen by terminal
US11132068B2 (en) Information display method and information display system
CN113134234B (en) Information display method, device, terminal and storage medium
CN108399045B (en) Information display method and information display system
CN114610192A (en) Text selection method, text selection device, electronic equipment and readable storage medium
CN111782381A (en) Task management method and device, mobile terminal and storage medium
US20220362668A1 (en) Information display method and apparatus, terminal, storage medium, and computer program product
CN114546240B (en) Interactive implementation method, device and equipment for game and storage medium
CN116893769A (en) Content selection method, device, electronic equipment and computer readable storage medium
CN117762303A (en) Picture dynamic movement control method and device based on gesture recognition and storage medium
CN115904540A (en) Setting method and device and electronic equipment
CN113918069A (en) Information interaction method and device, electronic equipment and storage medium
CN113680051A (en) Game control method, device, equipment and storage medium
CN117150166A (en) Page interaction method, page interaction device, electronic equipment and computer readable storage medium
CN116880725A (en) Desktop management method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40035466

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant