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

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

Info

Publication number
CN112114734B
CN112114734B CN202011045472.0A CN202011045472A CN112114734B CN 112114734 B CN112114734 B CN 112114734B CN 202011045472 A CN202011045472 A CN 202011045472A CN 112114734 B CN112114734 B CN 112114734B
Authority
CN
China
Prior art keywords
display
comment
document
comment information
display area
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.)
Active
Application number
CN202011045472.0A
Other languages
Chinese (zh)
Other versions
CN112114734A (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

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

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

Description

Online document display method, device, terminal and storage medium
Technical Field
The present invention relates to the field of computers and internet technologies, and in particular, to a method, an apparatus, a terminal, and a storage medium for displaying online documents.
Background
Currently, users can comment on document contents in online documents when reading the online documents. In the related art, a user displays, for each comment information of document content, in order of the position of the document content in an online document, at a fixed position in a side bar of the online document.
However, in the above related art, comment information is displayed at a fixed position in the side column of the online document, and the comment information is displayed in a too single manner, which is not flexible enough.
Disclosure of Invention
The embodiment of the application provides a display method, a device, a terminal and a storage medium for online documents, comment information can be displayed in different display modes in a display interface, and the display modes of the comment information are 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 for displaying an online document, the method including:
the online document display device comprises a display interface for displaying an online document, wherein 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 positioned 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 for 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 for displaying an online document, the method including:
the display interface is used for displaying the online document, and the display interface comprises a document display area which is used for displaying the online document;
displaying a comment input window in the document display area in response to a comment adding operation for the online document;
displaying the input comment information in the comment input window;
the comment information is displayed in the 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 for an online document, the apparatus including:
the document display module is used for displaying a display interface of an online document, 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 positioned between a first side edge of the document display area 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 for 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 adding 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 the second display mode in the document display area.
According to an aspect of an embodiment of the present application, there is provided a terminal including a processor and a memory, where the memory stores at least one instruction, at least one section of program, a code set, or an instruction set, and the at least one instruction, the at least one section of program, the code set, or the instruction set is loaded and executed by the processor to implement the method for displaying an online document described above.
According to an aspect of the embodiments of the present application, there is provided a computer readable storage medium having stored therein at least one instruction, at least one program, a code set, or an instruction set, which is loaded and executed by a processor to implement the method for displaying an online document described above.
According to an aspect of embodiments of the present application, 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 instructions from the computer-readable storage medium, and the processor executes the computer instructions so that the terminal performs the above-described online document display method.
The technical scheme provided by the embodiment of the application can bring the following beneficial effects:
the mode switching instruction is used for switching the display modes of the comment information of the online document, so that the single display mode of the comment information is avoided, the comment information can be displayed in different display modes in a display interface, the display modes of the comment information are more various, and the limitation of the single display mode is reduced; and after the first display mode is displayed at the side of the document display area and the mode switching instruction is received, the first display mode is switched to the second display mode, namely, the side display mode of comment information is canceled, so that the problem that the comment information cannot be completely displayed due to the fact that the display size of a 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 of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
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 in one embodiment of the present application;
FIG. 3 schematically illustrates a display interface;
fig. 4 and 5 are schematic diagrams exemplarily showing a position adjustment manner of the comment display area;
FIG. 6 is a flow chart of a method for displaying an online document provided in another embodiment of the present application;
fig. 7 to 9 exemplarily show schematic diagrams of display interfaces;
FIG. 10 is a flow chart of a method for displaying an online document provided in accordance with yet another embodiment of the present application;
FIG. 11 is a schematic diagram illustrating a display flow of an online document;
FIG. 12 is a flowchart of a method for displaying an online document provided in accordance with yet another embodiment of the present application;
FIG. 13 is a block diagram of a display device for online documents provided in one embodiment of the present application;
FIG. 14 is a block diagram of a display device for online documents provided in accordance with another embodiment of the present application;
FIG. 15 is a block diagram of a display device for online documents provided in accordance with 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
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Referring to fig. 1, an application running environment provided in one embodiment of the present application is shown, where the application running environment includes a terminal 10 and a server 20.
The terminal 10 is used to present an online document to a user, as well as comment information for the online document. Alternatively, the terminal 10 may be an electronic device such as a cell phone, tablet computer, game console, electronic book reader, multimedia playing device, wearable device, PC (Personal Computer ), etc. The client terminal of the terminal 10 may be provided with an application program, which may be any application program supporting displaying an online document, or any application program supporting commenting or annotating an online document, such as a reading application program, a social application program, an information application program, various types of browsers, and the like. Alternatively, the application may be an application that needs to be downloaded for installation, or may be a point-and-use 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 background server of the application program described above. The server 20 may be a server, a server cluster comprising a plurality of servers, or a cloud computing service center. Alternatively, the server 20 provides background services for applications in a plurality of terminals 10 at the same time.
Alternatively, the terminal 10 and the server 20 may communicate with each other via 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 running environment shown in fig. 1, and the execution subject of each step may be a client of the application program. The method may comprise the following steps (201-203):
step 201, a display interface of an online document is displayed.
An online document refers to a document that provides simultaneous editing or simultaneous comment functions 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 to the online document. In one possible implementation, after opening an online document, a user edits or reviews the online document by a trigger operation for the online document. Further, the client side acquires the modification information aiming at the online document in real time and sends the modification information to the server, and the server sends the modification information to the clients of other users who open the online document in real time, so that the clients of the other users can modify the online document in real time according to the modification information, and the synchronism of the online document of each client side is ensured. Wherein, the modification information comprises the modification content of the online document for the user. Optionally, the modified content includes deleted content, added content, replaced content, and comment information for the online document. Wherein, the comment information can be self-viewpoint or suggestion expressed by a part of document content of the online document when the user browses the online document. Of course, in different applications, the above-mentioned comment information may be referred to as endorsements, notes, book comments, and the like.
The display interface refers to an interface for displaying the above-described online document. Optionally, the display interface is a display window corresponding to a certain application program, and after detecting a start instruction for the application program, the terminal displays the display window corresponding to the application program in the screen. The display size and 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 implementation, the display interface corresponds to a plurality of fixed display sizes. Optionally, when the client displays the display interface, selecting a target display size 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 the 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, the user can control the display interface to switch from the target display size to other display sizes 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 position 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 the embodiments of the present application. For example, if the display interface corresponds to a first display size and a second display size, a size switching 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 embodiment, the display interface corresponds to a plurality of non-fixed display sizes, i.e. the display size of the display interface may be any size. Optionally, when the client displays the display interface, the client selects the 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 the user, or a final display size of the display interface when the user closes the display interface last time. Optionally, after displaying the above display interface, the user may adjust the display size of the display interface according to the actual situation. For example, the user may adjust the display size of the display interface by a drag operation for a 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 by other triggering operations, such as turning the scroll axis of the mouse.
In the embodiment of the application, after receiving the opening instruction for the online document, the 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 the online document in a first display mode, wherein the first display mode is a mode for displaying the comment information in a display block, the display block can be in any shape such as rectangle, circle, diamond and the like, 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. Alternatively, when the online document is opened, the client may determine the position of the document display area according to the setting of the staff, may determine the position of the document display area according to the setting of the user, and may determine the position of the document display area according to the display size of the online document. The comment display area is located between a first side of the document display area and a second side of the display interface. Wherein the first side and the second side are the same side. 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; if the first side is the left side of the document display area, the second side is the left side of the display interface, and at this time, the second side is located at the left side of the document display area. .
Illustratively, referring to FIG. 3 in combination, a document display area 31 and a comment display area 32 are included in the display interface 30. Wherein an online document is included in the document display area 31, comment information for the online document is included in the comment display area 32, and the comment display area 32 is located on the right side of the document display area 31. In addition, comment information is displayed in the comment display area 32 in the first display mode 33.
Note that, in the embodiment of the present application, when comment information is displayed in the first display mode in the comment display area, different comment information is located at a different position in the comment display area. Optionally, the display position of the comment information is related to the position of the document content for which the comment information is directed. For example, comment information is displayed at the end of a line to which the document content for which the comment information is directed belongs. Of course, the document content targeted by the above-mentioned comment information may be marked in the display interface of the above-mentioned online document, that is, the document content targeted by the above-mentioned comment information has a corresponding mark. The mark may be any mark, such as a dotted line mark, a wire frame mark, a background color mark, and the like, which is not limited in the embodiment of the present application. Illustratively, as shown in FIG. 3, a dashed mark 34 is added below the document content for which the comment information is intended.
Step 202, a display mode switching instruction for comment information is received.
The display mode switching instruction is used for controlling the display mode of comment information to switch. In the embodiment of the application, after the client displays the display interface of the online document, the client detects the display interface, and when the display mode switching operation for comment information is detected, a display mode switching instruction for the comment information is received. Optionally, the display mode switching instruction is generated by triggering by a user.
In one possible implementation, the user triggers the generation of the display mode switching instruction via a mode switching control. Optionally, the user may trigger a 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 corresponding client determines that the display mode switching instruction is received 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, and may be displayed in the display interface of the online document when the online document is opened, which is not limited in the embodiment of the present application. Of course, the mode switch control may be displayed directly in a display interface, such as mode switch control 35 in FIG. 3; or the mode switching control can be hidden and displayed in the display interface, and when the client detects the triggering operation of the triggering area of the mode switching control, the mode switching control is displayed in the display interface, wherein the triggering area can be any area in the display interface; the related area corresponding to the mode switching control, such as a comment display area, can also be used; but may also be the surrounding area of the mode switch control. Optionally, one or more mode switching controls may be displayed in the display interface. Different mode switching controls can be used for controlling comment information to be switched to different display modes; or, different triggering operations for the same mode switching control can also control the comment information to be switched to different display modes.
In another possible embodiment, the user triggers generation of the above-mentioned display mode switching instruction by a resizing operation for the display interface. Optionally, the step 202 includes the following steps:
1. a resizing operation for the display interface is received.
The resizing operation is used for adjusting the display size of the display interface. Optionally, the resizing operation is an operation generated by a user trigger. The user can execute the size adjustment operation according to the self requirement and the actual situation, and further, the client adjusts the display size of the display interface according to the size adjustment operation after receiving the size adjustment operation. Optionally, the resizing operation includes resized size information of the 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 is a triggering operation of a pointer to a side of the display interface. The triggering operation may be a drag operation, a click operation, a long press operation, or the like, which is not limited in the embodiment of the present application. It should be noted that the side may be any position, such as a left side, a right side, an upper side, or a lower side.
The drag operation is an operation of dragging the side of the display interface from one position to another, and the end position of the drag operation is used for indicating the adjusted size information of the display interface. The client determines to receive a size adjustment operation for the display interface after detecting a drag operation for a side edge of the display interface, obtains a termination position of the drag operation, uses the termination position as a side edge position of the adjusted display interface, adjusts a display size 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 realize the size adjustment operation for the display interface.
The clicking operation is a short-time triggering operation of the pointer on a side single action point of the display interface, and the clicking times of the clicking operation are used for indicating the adjusted size information of the display interface. Illustratively, after detecting a click operation on a side of the display interface, the client determines to receive a resizing operation on the display interface and obtains the number of clicks of the click operation. The display size of the adjusted display interface corresponding to different clicking times is different, for example, the display size of the adjusted display interface corresponding to clicking once is one half of the display size of the original display interface, the display size of the adjusted display interface corresponding to clicking twice is one fourth of the display size of the original display interface, the display size of the adjusted display interface corresponding to clicking three times is twice of the display size of the original display interface, the display size of the adjusted display interface corresponding to clicking three times is four times of the display size of the original display interface, the clicking times is four times of one round, and the display size of the adjusted display interface corresponding to clicking once is the same as that of the adjusted display interface corresponding to clicking once. Of course, in practical application, the staff may flexibly set the corresponding relationship between the clicking times and the adjusted display size of the display interface, which is not limited in the embodiment of the present application. Further, after obtaining the clicking times of the clicking operation, the client adjusts the display size of the display interface according to the clicking times, so as to realize the size adjustment operation for the display interface. The point to be described is that the single action point aimed at by each click operation can be the single action point at different positions; alternatively, the single-action point for which each click operation is directed may be a single-action point in which the distance between the respective positions does not exceed a fixed value.
The long-press operation is a long-time trigger operation of a single action point of the pointer on the side edge 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. The client determines to receive a resizing operation for the display interface after detecting the long-press operation for the side edge of the display interface, and obtains the acting duration of the long-press operation. The different action durations correspond to different display sizes of the adjusted display interfaces, 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 fourth 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 round, and the display size of the adjusted display interface corresponding to 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 practical application, the staff may flexibly set the corresponding relationship between the action duration and the adjusted display size of the display interface, which is not limited in the embodiment of the present application. Further, after the client obtains 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 embodiment, the resizing operation is a pointer-to-display interface display parameter resizing operation. The display parameters can be displayed in a setting interface corresponding to the display interface, and a user can adjust the display size of the display interface by modifying the display parameters of the display interface in the setting interface, wherein the modified display parameters are used for indicating the size information of the adjusted display interface. Optionally, the user may call out the setting interface in the display interface through a triggering operation corresponding to the setting interface, further, the client detects the setting interface, determines to receive a size adjustment operation for the display interface after detecting a modification operation of the user for the display parameter, obtains the modified display parameter from the setting interface, and adjusts the display size of the display interface according to the modified display parameter. The triggering operation corresponding to the setting interface may be a clicking operation, a long-pressing operation, a dragging operation, or a sliding operation for a setting identifier, and the setting identifier may be a setting interface call control, a setting interface call icon, a setting interface call 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 shaft of the mouse, performing corresponding gesture operations, and so on. The method includes the steps that a corresponding relation between a rolling condition of a mouse rolling shaft and a display size of a display interface is set, after the client detects the rolling operation of the mouse rolling shaft, the display size of the corresponding display interface is obtained from the corresponding relation according to the rolling condition of the mouse rolling shaft, the display size of the display interface is used as the display size of the adjusted display interface, and the display size of the display interface is adjusted 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, and after detecting the gesture operation executed by the user, the client obtains the display size of the corresponding display interface from the corresponding relation according to the gesture operation, takes the display size of the display interface as the adjusted display size of the display interface, and adjusts the display size of the display interface according to the display size of the display interface, wherein the gesture operation can be a touch operation aiming at a touch screen or a gesture video stream collected by a terminal camera shooting assembly.
2. And according to the size adjustment operation, acquiring the distance between the first side edge of the document display area and the second side edge of the display interface.
The first side is a boundary corresponding to a certain side of the document display area, and the second side is a boundary corresponding to a certain side of the display interface. Wherein the first side and the second side are the same side. 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.
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 for 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 be changed along with the change of the display interface, or may be kept 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 judging whether to switch the display mode of comment information. The display mode switching instruction is used for switching the display mode of 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 by the embodiments of the present application. In this embodiment of the present application, after obtaining the distance between the first side edge of the document display area and the second side edge 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 value, determining that the display mode switching instruction is received; if the interval is larger than the threshold, the display mode switching instruction is determined not to be received, and comment information is kept to be displayed in the first display mode.
Alternatively, in the embodiment of the present application, in a case where the pitch is greater than the above threshold, the client may adjust the display position of the comment display area according to the size adjustment operation.
In one 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 second side of the display interface, in which case a distance between the third side of the comment display area and the second side of the display interface is smaller than a preset threshold. The third side and the second side are the sides at the same position, if the second side is the right side of the display interface, the third side is the right side of the comment display area; the preset threshold may be any value, such as 0, 0.1cm, 0.5cm, or 1cm, which is not limited in the embodiment of the present application. Optionally, when the client detects the size adjustment operation, a distance between the first side edge of the document display area and the second side edge of the display interface is obtained, and when the distance is greater than the threshold, the client adjusts the third side edge of the comment display area according to the change of the second side edge 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 unchanged, and further adjusts the display position of the comment display area according to the third side edge, and when the second side edge is changed from the first position 41 to the second position 42, as shown in fig. 4, 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 a distance between the third side of the comment display area and the first side of the document display area is smaller than a preset threshold. The third side and the second side are sides at different positions, and if the first side is the right side of the document display area, the third side is the left side of the comment display area; the preset threshold may be any value, such as 0, 0.1cm, 0.5cm, or 1cm, which is not limited in the embodiment of the present application. Optionally, the client acquires a distance between the first side of the document display area and the second side of the display interface when detecting the resizing operation, and determines whether the distance is smaller than a target value if 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 the other part of the comment display area is positioned between the first side edge of the document display area and the second side edge of the display interface; 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 in the display interface 50, the distance between the second side 51 and the first side 52 is greater than the target value, the comment display area 53 is located between the first side 52 and the second side 51; if, in the display interface 50, the distance between the second side 51 and the first side 52 is smaller than the target value and larger than the threshold value, 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.
It is to be noted 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 application, the display size of the comment display area may be adjusted in support. Optionally, in the case that the distance is greater than the above 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 comment information in a second display mode according to the display mode switching instruction.
In the embodiment of the application, after receiving the display mode switching instruction, the client switches the first display mode of the comment information to the 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 the different display mode switching instructions are different, and the user can trigger to generate the different display mode switching instructions through own requirements, so as to control the comment information to be switched to the different second display modes. For example, the user may trigger generation of different mode switch instructions through different mode switch controls; alternatively, the user may trigger the generation of different mode switch instructions by different modes of operation for the same mode switch control.
In one possible implementation manner, the second display mode is comment identification corresponding to comment information. Wherein the comment identification is used for triggering and displaying the comment information. Alternatively, the comment identification may be a comment bubble, a comment display control, a comment display icon, or the like. The user can call out comment information in the display interface through triggering operation aiming at the comment identification, and at the moment, the display mode of the comment information is the same as the display mode corresponding to the first display mode. The triggering operation may be a click operation for the comment identifier, a press operation for a key position corresponding to the comment identifier, or a gesture operation for 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 comment information. The comment display window comprises all or part of comment content in comment information. Optionally, if the comment display window includes all comment contents of comment information, the user may directly browse the comment information through the comment display window; if the comment display window includes part of comment content of comment information, a user can call out all comment content of comment information in the display interface through triggering operation on the comment display window, and at this time, all comment content of comment information can be displayed in the comment display window or in any position of the display interface in the mode of the display block. Of course, in the case where all comment contents of 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, and 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 clicking operation for the comment display window, a pressing operation for a key position corresponding to the comment display window, or a gesture operation for 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 solution provided in the embodiments of the present application, the mode switching instruction is used to switch the display mode of comment information of an online document, so that the single display mode of comment information is avoided, so that the comment display modes can be displayed in different display modes in a display interface, the display modes of comment information are more various, and the limitation of the single display mode is reduced; and after the first display mode is displayed at the side of the document display area and the mode switching instruction is received, the first display mode is switched to the second display mode, namely, the side display mode of comment information is canceled, so that the problem that the comment information cannot be completely displayed due to the fact that the display size of a 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 a distance between the first side edge of the document display area and the second side edge of the display interface is smaller than a threshold value, it is determined that a display mode switching instruction is received, that is, the display mode of comment information can be switched according to the adjustment of the display size of the display interface, and the display of comment information is more flexible while the automatic switching of the display mode of the comment information is realized.
In addition, under the condition that the triggering 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 a user according to the self requirement, so that the display mode of 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 running environment shown in fig. 1, and the execution subject of each step may be a client of the application program. The method may comprise the following steps (601-606):
step 601, a display interface of an online document is displayed.
Step 602, a display mode switching instruction for comment information is received.
The steps 601 and 602 are the same as the steps 201 and 202 in the embodiment of fig. 2, and refer specifically to the embodiment of fig. 2, and are not described herein.
And step 603, cancelling display of comment information in the comment display area and displaying comment identifiers corresponding to the comment information according to the display mode switching instruction.
The comment identification is used for triggering the display of comment information. The comment mark can be comment bubbles, comment display controls or comment display icons and the like. In the embodiment of the application, after receiving the display mode switching instruction, the client cancels the display of comment information in the comment display area according to the display mode switching instruction, and displays a comment identifier corresponding to the comment information in the display interface. Alternatively, the comment identification 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 identification 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 aimed by the comment information, and acquires the position of the document content in the online document, so as to determine the row to which the document content belongs, and displays the comment identifier corresponding to the comment information at the head or tail of the row to which the document content belongs. Illustratively, as shown in fig. 7, in the display interface 70, the document content 71 for which comment information is directed is located in the fifth and sixth rows of the online document, and a comment identification 72 corresponding to the comment information is displayed at the end of the fifth row. Of course, the client may also display the comment identifier 72 corresponding to the comment information at the end of the sixth row, which is not limited in the embodiment of the present application.
In another possible implementation, the comment identification is displayed in a surrounding area of the document content for which the comment information is intended. Alternatively, the surrounding area may be an area centered on the center position of the document content for which the comment information is aimed, where the 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 the embodiment of the present application. Optionally, after receiving the display mode switching instruction, the client acquires the document content aimed by the comment information, and acquires the position of the document content in the online document, further determines a surrounding area of the document content by taking the center position of the document content as the center, and displays the comment identifier in the surrounding area. In one possible implementation, the client may display the comment identification at any location in the surrounding area; in another possible implementation, to avoid obscuring the document content, the client may display the above comment identification in a blank area in the surrounding area, such as in page line spacing.
It should be noted that, in the embodiment of the present application, the display number or display style of comment identifiers is related to the number of comment information. In one possible implementation, each piece of comment information corresponds to one comment identification. Optionally, after receiving the display mode switching instruction, the client acquires the number of the comment information, and displays comment identifiers of a corresponding number according to the number of the comment information. Illustratively, as shown in fig. 8, in the case where 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 comment identifiers corresponding to different comment information may be the same or different, which is not limited in the embodiment of the present application. In another possible embodiment, at least one comment information for the document content belonging 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 comment information corresponding to the comment identification. Optionally, after the client acquires the display mode switching instruction, acquiring the number of comment information, determining the number prompt information contained in the comment identification according to the number of comment information, determining the display style of the comment identification based on the number prompt information, and displaying the comment identification. Alternatively, the same area may be an area divided according to any rule, for example, the same area may be the same segment, the same row, two adjacent segments, two adjacent rows, or the like, which is not limited in the embodiment of the present application. Illustratively, as shown in fig. 8, in the case where a plurality of pieces of comment information correspond 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 included in a second line of an online document, and a comment identification 87 is displayed at the end of the second line, the comment identification 87 including a quantity prompt message "3" therein.
In step 604, in response to the triggering operation for the comment identification, comment information corresponding to the comment identification is displayed.
The triggering operation is an operation triggered by a user and used for controlling the display interface to display comment information. Optionally, the user may trigger the triggering operation of generating the comment identifier by clicking the comment identifier, may generate the triggering operation of the comment identifier by pressing a key corresponding to the comment identifier, and may also trigger the triggering operation of generating the comment identifier by gesture operation corresponding to the comment identifier.
In the embodiment of the application, after detecting the triggering operation for the comment identification, the client displays comment information corresponding to the comment identification. The display style of the comment information is the same as the display style corresponding to the first display mode. In one possible embodiment, the display position of the comment information is related to the position of the document content for which the comment information is directed. After detecting the triggering operation for the comment identification, the client acquires the document content aimed by 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 0.5cm below the center position of the document content for which the comment information is intended. Of course, in other possible embodiments, the comment information may also be displayed at any position in the display interface, such as the center position of the display interface.
It should be noted that, in the embodiment of the present application, the client may mark, in the document display area, the document content targeted by the comment information, that is, the document content targeted by the comment information has a corresponding mark. The mark may be any mark, such as a dotted line mark, a wire frame mark, a background color mark, and the like, which is not limited in the embodiment of the present application. Illustratively, referring to fig. 7 and 9 in combination, after clicking on comment identification 72 in fig. 7, the user clicks on comment information corresponding to comment identification 72 in display interface 90, and the comment information is displayed in first display mode 33. In addition, in the online document, the document content for which the comment information is directed is identified using the dotted line box 91, and the display position of the comment information is located below the document content.
The method is characterized in that if the number of comment information corresponding to one comment mark is not unique, the client can display a plurality of comment information simultaneously when detecting the triggering operation aiming at the comment mark; or when the triggering operation aiming at the comment identification is detected, the client acquires the operation attribute of the triggering operation, and determines the displayed comment information according to the triggering attribute, for example, if the triggering operation is a clicking operation, the displayed comment information is determined according to the clicking times corresponding to the clicking operation, wherein the front-back sequence of the document content aiming at the comment information and the clicking times are in positive correlation.
In step 605, in the case where a position moving operation for comment information is detected, the display position of 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 comment information in the display interface. Alternatively, the position moving operation may be an operation generated by a user trigger. The response area of the position moving operation is a display area of the comment information. For example, 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 practical use, the user may trigger the generation of the above-mentioned position moving operation by making a setting in the setting interface.
In the embodiment of the application, when detecting a position moving operation for comment information, the client updates the display position of the comment information in the display interface according to the position moving operation. Optionally, the above-mentioned position moving operation includes a display position of the updated comment information. After receiving the position moving operation, the client can determine the display position of the updated comment information according to the position moving operation, and update the display position of the comment information based on the display position of the updated comment information.
In step 606, when a trigger operation is detected outside the display area for comment information, the comment information is canceled from being displayed.
In the embodiment of the application, when the client detects a trigger operation outside the display area for comment information, the client cancels display of the comment information. The triggering operation may be any operation other than the display area of the comment information, such as a click operation, a sliding operation, a drag operation, a long press operation, and the like, which is not limited in the embodiment of the present application.
In summary, in the technical solution provided in the embodiments of the present application, the comment information is switched from the first display mode to the comment identifier, 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, and the user can display the required comment information in the display interface according to the own requirement, so as to avoid that the comment information is displayed in the display interface to cause a large processing load of the terminal.
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 running environment shown in fig. 1, and the execution subject of each step may be a client of the application program. The method may comprise the following steps (1001-1003):
Step 1001, a display interface of an online document is displayed.
Step 1002, a display mode switching instruction for comment information is received.
The steps 1001 and 1002 are the same as the steps 201 and 202 in fig. 2, and refer specifically to the embodiment of fig. 2, and are not described herein.
Step 1003, according to the display mode switching instruction, canceling to display comment information in the comment display area, and displaying a comment display window corresponding to the comment information in the document display area.
The comment display window is used for displaying the comment information. Optionally, the comment display window includes the comment information. In the embodiment of the application, after receiving the display mode switching instruction, the client cancels displaying comment information in the comment display area according to the display mode switching instruction, and displays a 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 of the display interface or in a blank area of the document display area.
Optionally, in the embodiment of the present application, a comment display window corresponding to comment information is displayed above or below an area to which the document content targeted by the comment information 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, an area divided according to each line, an area divided according to each two segments or each two lines, or the like, which is not limited in the embodiment of the present application. Optionally, after receiving the display mode switching instruction, the client acquires the document content aimed by the comment information, and acquires the position of the document content in the online document, so as to determine the area to which the document content belongs, and display 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 according to each line, the client may display the comment display window in an upper line pitch or a lower line pitch of a line to which the document content for which comment information is directed after receiving the display mode switching instruction. It should be noted that, the display size and the display shape of the comment display window may be flexibly set, which is not limited in the embodiment of the present application.
In one possible implementation, the display size of the comment display window does not support adjustment, that is, the comment display window includes supporting display content in comment information, where the supporting display content refers to comment content extracted from comment information according to the display size of the comment display window. Optionally, after detecting the display mode switching instruction, the client obtains a display size of a 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 uses comment elements corresponding to the number of comment elements in the comment information as the supporting display content according to the sequence of the comment information from front to back based on the number of comment elements, and further displays the comment display window in a display interface, wherein at the moment, the comment display window includes the supporting display content and does not include other display contents except the supporting display content in the comment content.
In another possible embodiment, 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 the client obtains 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 contents of the comment information.
In summary, in the technical scheme provided by the embodiment of the application, the comment information is switched from the first display mode to the comment display window, 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 surface of the Chinese display area in the display interface is smaller, the comment information can be conveniently and directly browsed by a user, and the operation is simple and convenient.
In addition, referring to fig. 11 in combination, the display position and the change of the display mode of the comment information will be fully described.
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 positioned between the first side edge of the document display area and the second side edge of the display interface.
In step 1102, the 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, then step 1104 is performed; if the distance between the first side of the document display area and the second side of the display interface is less than the target value, then step 1106 is performed.
In step 1104, the client displays comment information in a first display mode in the comment display area.
In step 1105, the client detects a resizing operation for the display interface.
In step 1106, the client detects whether a spacing between a first side of the document display area and a second side of the display interface is greater than or equal to a threshold. Wherein the threshold is less than the target value. If the spacing 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, then step 1107 is performed; if the distance between the first side of the document display area and the second side of the display interface is less than the threshold, step 1108 is performed.
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 first display mode in the comment display area.
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 description will be given of a manner of adding comment information in the second display mode.
Referring to fig. 12, 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 running environment shown in fig. 1, and the execution subject of each step may be a client of the application program. The method may include the following steps (1201-1204):
step 1201, a display interface of an online document is displayed.
The display interface refers to an interface for displaying the above-described online document. Optionally, the display interface is a display window corresponding to a certain application program, and after detecting a start instruction for the application program, the terminal displays the display window corresponding to the application program in the screen. The display size and 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 the opening instruction for the online document, the 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 an 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. Alternatively, when the online document is opened, the client may determine the position of the document display area according to the setting of the staff, may determine the position of the document display area according to the setting of the user, and may determine the position of the document display area according to the display size of the online document.
In response to the comment adding operation for the online document, a comment input window is displayed in the document display area, step 1202.
The comment adding operation is used for adding comment information for the online document in the display interface. Optionally, the comment adding operation is an operation generated by user trigger. In one possible embodiment, the user generates the comment adding operation described above by a trigger operation for a comment adding control. The triggering operation may be a clicking operation, a long-press operation, a dragging operation, or a sliding operation, which is not limited in the embodiment of the present application. Optionally, the display interface includes a comment adding control, where the comment adding control may be displayed at any position of the display interface, and the comment adding control is 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 trigger the generation of the comment adding operation in other manners, for example, the generation of the comment adding operation is triggered according to a gesture operation corresponding to the comment adding operation.
In the embodiment of the application, after the client displays the display interface of the online document, the client may detect the display interface, determine that the comment adding operation for the online document is received after detecting the triggering operation of the comment adding control by the user, 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 be adjusted for supporting adjustment, which is not limited in the embodiment of the present application.
The comment information may be a self-viewpoint or suggestion expressed by a part of document content of the online document when the user browses the online document, and of course, in a different application program, the comment information may be referred to as a comment, remark, book comment, or the like. Optionally, before triggering to generate the comment adding operation, the user may acquire the document content targeted by the comment adding operation to perform a selection operation. The selection operation is a sliding operation, for example, the user selects the document content for which the comment adding operation is directed by a sliding operation from a start end to a destination end of the document content for which the comment adding operation is directed. The client detects the display interface of the online document after displaying the display interface, acquires the start end and the end of the document content aimed by the sliding operation after detecting the sliding operation in the document display area, determines that the user selects the document content between the start end and the end, further determines to generate comment adding operation aimed at the document content when detecting triggering operation aimed at the comment adding control, and displays a comment input window corresponding to the document content in the document display area.
Optionally, in an embodiment of the present application, a display manner of the comment input window is related to a display form of comment information.
In one possible embodiment, the comment information is displayed in the document display area in the form of a comment identification. Wherein the comment identification is used for triggering and displaying comment information. Optionally, when displaying the comment input window, the client displays the comment input window on top 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 relate to the position of the document content for which the comment adding operation is directed in the online document, e.g., the display position of the comment input window is located in a region below or around the document content for which the comment adding operation is directed. The surrounding area is an area centered on the center position of the document content targeted by the comment adding operation, where the distance between each point in the surrounding area and the center position of the document content is smaller than a certain value, and the value may be any 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. The comment display window comprises comment information. Optionally, when displaying the comment input window, the client displays the comment input window 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 relate to the position of the document content for which the comment adding operation is directed in the online document, for example, the display position of the comment input window is located above or below the area to which the document content for which the comment adding operation is directed. The area may be an area divided according to any rule, for example, the area may be an area divided according to each segment, an area divided according to each line, an area divided according to each two segments or each two lines, or the like, which is not limited in the embodiment of the present application.
In step 1203, the input comment information is displayed in the comment input window.
In the embodiment of the application, after displaying the comment input window, the client acquires comment information input by the user based on the comment input window, and displays the input comment information in the comment input window. Optionally, the user may input the evaluation information through an external hardware device (such as a keyboard, etc.), or may input the evaluation information through a touch operation on a terminal screen; of course, the user may input the evaluation information by voice input, gesture input, image input, or the like, which is not limited in the embodiment of the present application.
In step 1204, the comment information is displayed in the document display area in the second display mode.
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, or the like, 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 may 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 one possible embodiment, the comment information is displayed in the document display area in the form of a comment identification. Wherein the comment identification is used for triggering and displaying comment information. Optionally, when the client displays comment information, a 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 row to which the document content for which the comment adding 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 adding operation is directed. Alternatively, the surrounding area may be an area centered on the center position of the document content for which the comment information is aimed, where the 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 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. The comment display window comprises comment information. Optionally, the comment display window is displayed above or below the area to which the document content for which the comment adding operation is directed. The area may be an area divided according to any rule, for example, the area may be an area divided according to each segment, an area divided according to each line, an area divided according to each two segments or each two lines, or the like, which is not limited in the embodiment of the present application. In this 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 detecting that the comment information input is completed, the client determines to convert the comment input window into the comment display window, and then, if the user continues to perform comment adding operation on the document content aimed at by the comment display window, converts the comment display window into the comment input window again; in another possible implementation manner, the comment display window and the comment input window are different, optionally, after the client detects that the comment information is input, the comment input window is canceled to be displayed, the comment display window is displayed in the document display area, then if the user continues to perform comment adding operation on the document content aimed at by the comment display window, a new comment input window is displayed, new comment information is obtained according to the new comment input window, and further the comment information displayed by the comment display window is updated.
In summary, in the technical scheme provided by the embodiment of the application, comment information is displayed in the document display area, so that the comment information can still be completely displayed under the condition that the display interface does not include other display areas except the document display area due to undersize of the display size of the display interface, the integrity of comment information display is ensured, and users can conveniently and directly browse the comment information.
The following are device embodiments of the present application, which may be used to perform method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
Referring to FIG. 13, a block diagram of a display device for online documents provided in one embodiment of the present application is shown. The device has the function of realizing the online document display method, and the function can be realized by hardware or by executing corresponding software by the hardware. The device can be a terminal or can 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.
The instruction receiving module 1320 is configured to receive a display mode switching instruction for the comment information.
And a mode switching module 1330 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 cancel displaying the comment information in the comment display area according to the display mode switching instruction, 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: information display module 1340.
An information display module 1340 for displaying 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 aimed has a corresponding mark.
In an exemplary embodiment, as shown in fig. 14, the apparatus 1300 further includes: an information movement module 1350 and an information cancellation module 1360.
An information movement module 1350 for, in a case where a position movement operation for the comment information is detected, updating a display position of the comment information in the display interface based on the position movement operation; wherein the response area of the position moving operation is a display area of the comment information;
And an information cancellation module 1360 for canceling display of the comment information upon detection of a trigger operation outside the display area for the comment information.
In an exemplary embodiment, the mode switching module 1330 is configured to cancel displaying the comment information in the comment display area according to the display mode switching instruction, 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 an area to which the document content targeted by the comment information belongs.
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: the position adjustment module 1370.
And a position adjustment module 1370, configured to adjust a display position of the comment display area according to the size adjustment operation when the pitch is greater than the threshold.
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 solution provided in the embodiments of the present application, the mode switching instruction is used to switch the display mode of the comment information of the online document, so that the single display mode of the comment information is avoided, the comment information can be displayed in different display modes in the display interface, the display modes of the comment information are more various, and the limitation of the single display mode is reduced; and after the first display mode is displayed at the side of the document display area and the mode switching instruction is received, the first display mode is switched to the second display mode, namely, the side display mode of comment information is canceled, so that the problem that the comment information cannot be completely displayed due to the fact that the display size of a 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 online documents according to still another embodiment of the present application is shown. The device has the function of realizing the online document display method, and the function can be realized by hardware or by executing corresponding software by the hardware. The device can be a terminal or can 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 configured to display the online document.
A window display module 1520 for displaying a comment input window in the document display area in response to a comment adding operation for the online document.
The information input module 1530 is configured to display the input comment information in the comment input window.
A comment display module 1540 for displaying the comment information in the second display mode in the document display area.
In an exemplary embodiment, the window display module 1520 is configured to display the comment input window at a document content upper layer of the online document; the comment display 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 is configured to display the comment input window in an embedded manner in the document content of the online document; the comment display module 1540 is configured to display a comment display window corresponding to the comment information in the document display area, where the comment display window includes the comment information.
According to 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 still be completely displayed under the condition that the display area except the document display area is not included in the display interface due to undersize of the display size of the display interface, the integrity of comment information display is ensured, and a user can directly browse the comment information conveniently.
It should be noted that, in the apparatus provided in the foregoing embodiment, when implementing the functions thereof, only the division of the foregoing functional modules is used as an example, in practical application, the foregoing functional allocation may be implemented by different functional modules, that is, the internal structure of the device is divided into different functional modules, so as to implement all or part of the functions described above. In addition, the apparatus and the method embodiments provided in the foregoing embodiments belong to the same concept, and specific implementation processes of the apparatus and the method embodiments are detailed in the method embodiments and are not repeated herein.
Referring to fig. 16, a block diagram of a terminal 1600 provided in one embodiment of the present application is shown. The terminal 1600 may be an electronic device such as a cell phone, tablet computer, game console, e-book reader, multimedia player device, wearable device, PC (Personal Computer ), etc. 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 execution environment shown in fig. 1. Specifically, the present invention relates to a method for manufacturing a semiconductor device.
In general, 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 the like. The processor 1601 may be implemented in at least one hardware form of a DSP (Digital Signal Processing ), an FPGA (Field Programmable Gate Array, field programmable gate array), a PLA (Programmable Logic Array ). The processor 1601 may also include a host processor, which is a processor for processing data in an awake state, also referred to as a CPU (Central Processing Unit ); 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, display of online documents) for responsible for rendering and rendering of content to be displayed by the display screen. In some embodiments, the processor 1601 may also 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. 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 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 method of displaying an online document.
In some embodiments, terminal 1600 may also optionally include: a peripheral interface 1603, and at least one peripheral. The processor 1601, memory 1602, and peripheral interface 1603 may be connected by bus or signal lines. The individual peripheral devices may be connected to the peripheral device interface 1603 by buses, signal lines, or circuit boards. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1604, a display screen 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 structure shown in fig. 16 is not limiting and that more or fewer components than shown may be included or certain components may be combined or a different arrangement of components may be employed.
In an exemplary embodiment, a computer readable storage medium is also provided, in which at least one instruction, at least one program, a set of codes, or a set of instructions is stored, which when executed by a processor, implement the above-described method of displaying an online document.
Alternatively, the computer-readable storage medium may include: ROM (Read Only Memory), RAM (Random Access Memory ), SSD (Solid State Drives, solid state disk), or optical disk, etc. The random access memory may include ReRAM (Resistance Random Access Memory, resistive random access memory) and DRAM (Dynamic Random Access Memory ), among others.
In an exemplary embodiment, a computer program product or a 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 instructions from the computer-readable storage medium, and the processor executes the computer instructions so that the terminal performs the above-described online document display method.
It should be understood that references herein to "a plurality" are to two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship. In addition, the step numbers described herein are merely exemplary of one possible execution sequence among steps, and in some other embodiments, the steps may be executed out of the order of numbers, such as two differently numbered steps being executed simultaneously, or two differently numbered steps being executed in an order opposite to that shown, which is not limited by the embodiments of the present application.
The foregoing description of the exemplary embodiments of the present application is not intended to limit the invention to the particular embodiments disclosed, but on the contrary, the intention is to cover all modifications, equivalents, alternatives, and alternatives falling within the spirit and scope of the invention.

Claims (8)

1. A method for displaying an online document, the method comprising:
the online document display device comprises a display interface for displaying an online document, wherein 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 positioned between a first side edge of the document display area and a second side edge of the display interface;
Receiving a resizing operation for the display interface;
according to the size adjustment operation, adjusting the display size of the display interface;
when the distance between the first side edge of the document display area and the second side edge of the display interface is larger than a threshold value and smaller than a target value, adjusting the display position of the comment display area, wherein one part of the comment display area after position adjustment is positioned in a blank area of the document display area, one part of the comment display area is positioned between the first side edge of the document display area and the second side edge of the display interface, and the target value is larger than the threshold value;
and under the condition 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, canceling to display the comment information in the comment display area, and displaying a comment identification corresponding to the comment information, wherein the comment identification is used for triggering to display the comment information.
2. The method of claim 1, wherein after displaying the comment identifier corresponding to the comment information, further comprising:
responding to a triggering 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 aimed has a corresponding mark.
3. The method according to claim 2, further comprising, after the displaying of the comment information corresponding to the comment identification:
in a case where a position moving operation for the comment information is detected, updating 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 a display area of the comment information;
and canceling display of the comment information upon detection of a trigger operation outside a display area for the comment information.
4. The method of claim 1, wherein displaying the comment identification corresponding to the comment information comprises:
displaying comment identifications corresponding to the comment information at the head of a line to which the document content aimed by the comment information belongs;
or alternatively, the process may be performed,
and displaying comment identifications corresponding to the comment information at the tail part of a line to which the document content aimed by the comment information belongs.
5. The method of any of claims 1 to 4, wherein the receiving, after a resizing operation for the display interface, further comprises:
And if the distance is greater than or equal to the target value, not adjusting the display position of the comment display area.
6. A display device for an online document, the device comprising:
the document display module is used for displaying a display interface of an online document, 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 positioned between a first side edge of the document display area and a second side edge of the display interface;
the instruction receiving module is used for receiving the size adjustment operation for the display interface and adjusting the display size of the display interface according to the size adjustment operation;
the position adjustment module is used for adjusting the display position of the comment display area under the condition that the distance between the first side edge of the document display area and the second side edge of the display interface is larger than a threshold value and smaller than a target value, wherein one part of the comment display area after the position adjustment is positioned in a blank area of the document display area, one part of the comment display area is positioned between the first side edge of the document display area and the second side edge of the display interface, and the target value is larger than the threshold value;
And the mode switching module is used for canceling the display of the comment information in the comment display area and displaying a comment identifier corresponding to the comment information under the condition 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, wherein the comment identifier is used for triggering the display of the comment information.
7. A terminal comprising a processor and a memory, wherein the memory stores at least one program, and wherein the at least one program is loaded and executed by the processor to implement the method for displaying an online document according to any one of claims 1 to 5.
8. A computer-readable storage medium, in which at least one program is stored, the at least one program being loaded and executed by a processor to implement the method of displaying an online document according to any one of claims 1 to 5.
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 CN112114734A (en) 2020-12-22
CN112114734B true 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)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN115712361A (en) * 2021-08-18 2023-02-24 北京字跳网络技术有限公司 Data processing method and device of application program, terminal and storage medium
CN114417784A (en) * 2022-01-20 2022-04-29 北京字跳网络技术有限公司 Comment display method, device, equipment and medium for document
CN115309308A (en) * 2022-07-20 2022-11-08 北京达佳互联信息技术有限公司 Method, device, equipment, system and storage medium for commenting online document

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

Also Published As

Publication number Publication date
CN112114734A (en) 2020-12-22

Similar Documents

Publication Publication Date Title
CN112114734B (en) Online document display method, device, terminal and storage medium
US10599316B2 (en) Systems and methods for adjusting appearance of a control based on detected changes in underlying content
JP7138804B2 (en) INTERFACE DISPLAY METHOD AND DEVICE, TERMINAL AND COMPUTER PROGRAM
KR101375166B1 (en) System and control method for character make-up
CN108647055B (en) Application program preloading method and device, storage medium and terminal
US20110175826A1 (en) Automatically Displaying and Hiding an On-screen Keyboard
US10120568B2 (en) Hover controlled user interface element
CN108064368A (en) The control method and device of flexible display device
CN108829456A (en) Application program preloads method, apparatus, storage medium and terminal
CN108984089B (en) Touch operation method and device, storage medium and electronic equipment
EP4268913A1 (en) Position adjustment method and apparatus for operation controls, and terminal, and storage medium
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
CN115357158A (en) Message processing method and device, electronic equipment and storage medium
CN108845838A (en) Application program preloads method, apparatus, storage medium and terminal
CN107704188A (en) Input keyboard provider method and device, terminal and computer-readable recording medium
CN102693064B (en) Method and system for quitting protection screen by terminal
CN112221122B (en) Alternative skill synthesis interaction method, system, electronic device and storage medium
CN111638828A (en) Interface display method and device
CN115658203A (en) Information display method and device, electronic equipment and storage medium
CN113134234A (en) Information display method, device, terminal and storage medium
CN112783386A (en) Page jump method, device, storage medium and computer equipment
US11543932B1 (en) Rule-based prioritization and activation of overlapping screen areas using pointing device
CN112543249B (en) Screen display method, device, terminal and storage medium
CN117762303A (en) Picture dynamic movement control method and device based on gesture recognition and storage medium

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