HK40022303B - Method and device for sharing documents content, terminal and storage medium - Google Patents
Method and device for sharing documents content, terminal and storage medium Download PDFInfo
- Publication number
- HK40022303B HK40022303B HK42020012609.2A HK42020012609A HK40022303B HK 40022303 B HK40022303 B HK 40022303B HK 42020012609 A HK42020012609 A HK 42020012609A HK 40022303 B HK40022303 B HK 40022303B
- Authority
- HK
- Hong Kong
- Prior art keywords
- target
- content
- user
- document
- response
- Prior art date
Links
Description
技术领域Technical Field
本申请涉及网络技术领域,特别涉及一种文档内容分享方法、装置、终端及存储介质。This application relates to the field of network technology, and in particular to a document content sharing method, apparatus, terminal and storage medium.
背景技术Background Technology
随着网络技术的发展,人们也可以通过网络,线上对文档进行编辑,例如,在线表格。其中,在线表格还可以提供多人线上编辑的功能,甚至可以支持多个用户同时对同一个表格进行协作编辑,以提高编辑效率。对同一个表格进行编辑的多个用户之间通常想要针对该文档展开讨论。With the development of internet technology, people can now edit documents online, such as online spreadsheets. Online spreadsheets often offer multi-user editing capabilities, even supporting collaborative editing of the same spreadsheet by multiple users simultaneously to improve efficiency. Users editing the same spreadsheet typically want to discuss the document together.
目前,通常是在浏览器中文档的显示页面的右下角显示有评价控件,用户可以在此处输入对文档的评价,其他用户看到该用户的反馈后,也可以在这里输入对文档的评价。Currently, a rating control is usually displayed in the lower right corner of the document's display page in the browser. Users can enter their ratings for the document here, and other users can also enter their ratings for the document here after seeing the user's feedback.
上述方法中,用户仅能对文档进行整体评价,且评价信息无法通知到其他用户,分享方式单一,灵活性和内容针对性差,因而,分享效率低,效果差。In the above methods, users can only give an overall evaluation of the document, and the evaluation information cannot be notified to other users. The sharing method is limited, lacks flexibility and content relevance, and therefore the sharing efficiency is low and the effect is poor.
发明内容Summary of the Invention
本申请实施例提供了一种文档内容分享方法、装置、终端及存储介质,可以提高分享效率和分享效果。所述技术方案如下:This application provides a document content sharing method, apparatus, terminal, and storage medium, which can improve sharing efficiency and effectiveness. The technical solution is as follows:
一方面,提供了一种文档内容分享方法,所述方法包括:On the one hand, a method for sharing document content is provided, the method including:
响应于对目标文档中内容的选择指令,获取所述目标文档中被选中内容;In response to a selection instruction on content in a target document, the selected content in the target document is obtained;
基于所述被选中内容,生成分享内容;Based on the selected content, generate shareable content;
将所述分享内容发送至目标用户或目标用户群组。Send the shared content to the target user or target user group.
在一种可能实现方式中,所述在文档中,显示转换后的交互内容,包括任一项:In one possible implementation, displaying the converted interactive content in the document includes any one of the following:
在所述目标文档中,显示转换后的交互内容。The converted interactive content is displayed in the target document.
响应于文档创建指令,创建文档,在所述创建的文档中,显示转换后的交互内容。In response to a document creation instruction, a document is created, and the converted interactive content is displayed in the created document.
在一种可能实现方式中,所述分享内容携带有所述分享内容中被选中内容在目标文档中的位置与目标文档的标识信息;In one possible implementation, the shared content carries the position of the selected content in the target document and the identification information of the target document;
所述将界面跳转至所述分享内容对应的目标文档的显示界面,包括:The step of redirecting the interface to the display interface of the target document corresponding to the shared content includes:
根据所述分享内容携带的目标文档的标识信息,确定所述分享内容对应的目标文档;The target document corresponding to the shared content is determined based on the identification information of the target document carried in the shared content;
将界面跳转至所述分享内容对应的目标文档的显示界面;The interface will redirect to the display interface of the target document corresponding to the shared content;
所述在所述显示界面中,突出显示所述分享内容中的被选中内容以及反馈信息,包括:The process of highlighting the selected content and feedback information in the shared content on the display interface includes:
根据所述被选中内容在目标文档中的位置,突出显示所述位置上的内容;Based on the position of the selected content in the target document, highlight the content at that position;
在所述位置的目标位置显示所述反馈信息。The feedback information is displayed at the target location.
在一种可能实现方式中,任一访问该目标文档的用户的权限基于该用户首次访问该目标文档的方式确定。In one possible implementation, the permissions of any user accessing the target document are determined based on how the user first accesses the target document.
在一种可能实现方式中,所述方法还包括:In one possible implementation, the method further includes:
响应于对目标文档中内容的选择指令,对所述目标文档中被选中内容进行突出显示。In response to a selection instruction for content in a target document, the selected content in the target document is highlighted.
一方面,提供了一种文档内容分享装置,所述装置包括:On the one hand, a document content sharing device is provided, the device comprising:
获取模块,用于响应于对目标文档中内容的选择指令,获取所述目标文档中被选中内容;The acquisition module is used to acquire the selected content in the target document in response to a selection instruction on the content in the target document;
生成模块,用于基于所述被选中内容,生成分享内容;The generation module is used to generate shareable content based on the selected content;
发送模块,用于将所述分享内容发送至目标用户或目标用户群组。The sending module is used to send the shared content to the target user or target user group.
在一种可能实现方式中,所述分享内容携带有所述被选中内容在目标文档中的位置与目标文档的标识信息;In one possible implementation, the shared content carries the position of the selected content in the target document and the identification information of the target document;
所述生成模块,用于:The generation module is used for:
获取所述被选中内容在所述目标文档中的位置;Obtain the position of the selected content in the target document;
将所述位置、所述目标文档的标识信息以及所述分享内容关联。Associate the location, the identification information of the target document, and the shared content.
在一种可能实现方式中,所述目标用户群组基于目标分享控件的状态确定,所述目标分享控件用于指示将被选中内容分享至目标文档对应的用户群组;In one possible implementation, the target user group is determined based on the state of a target sharing control, which is used to indicate that the selected content will be shared to the user group corresponding to the target document.
所述发送模块,用于:The sending module is used for:
获取目标分享控件的状态;Get the state of the target sharing control;
响应于所述目标分享控件处于被选中状态,将所述分享内容发送至所述文档对应的用户群组。In response to the target sharing control being selected, the sharing content is sent to the user group corresponding to the document.
在一种可能实现方式中,所述目标用户或目标用户群组基于对候选用户或候选用户群组的选择指令确定;In one possible implementation, the target user or target user group is determined based on a selection instruction for a candidate user or candidate user group;
所述发送模块,用于:The sending module is used for:
响应于对所述分享用户选择控件的触发指令,显示候选用户或候选用户群组;In response to a trigger command on the shared user selection control, candidate users or candidate user groups are displayed;
响应于对任一候选用户或任一候选用户群组的选择指令,将所述分享内容发送至所述候选用户或候选用户群组。In response to a selection instruction for any candidate user or any candidate user group, the shared content is sent to the candidate user or candidate user group.
在一种可能实现方式中,所述发送模块,用于执行下述任一项:In one possible implementation, the sending module is configured to perform any of the following:
响应于所述被选中内容包括至少一个目标标识和至少一个用户标识,向所述至少一个用户标识对应的目标用户发送所述分享内容;In response to the selected content including at least one target identifier and at least one user identifier, the shared content is sent to the target user corresponding to the at least one user identifier;
响应于所述被选中内容包括至少一个目标标识和至少一个用户标识,向所述至少一个目标用户所在的用户群组发送所述分享内容、所述至少一个目标标识和所述至少一个用户标识。In response to the selected content including at least one target identifier and at least one user identifier, the shared content, the at least one target identifier, and the at least one user identifier are sent to the user group to which the at least one target user belongs.
在一种可能实现方式中,所述基于对候选用户或候选用户群组的选择指令包括对目标标识和用户标识的添加指令;In one possible implementation, the selection instruction based on candidate users or candidate user groups includes instructions for adding target identifiers and user identifiers;
所述发送模块,用于执行下述任一项:The sending module is configured to perform any of the following:
响应于在所述被选中内容的上下文中,对至少一个目标标识和至少一个用户标识的添加指令,向所述至少一个用户标识对应的目标用户发送所述分享内容;In response to an instruction to add at least one target identifier and at least one user identifier in the context of the selected content, the shared content is sent to the target user corresponding to the at least one user identifier;
响应于在所述被选中内容的上下文中,对至少一个目标标识和至少一个用户标识的添加指令,向所述至少一个目标用户所在的用户群组发送所述分享内容、所述至少一个目标标识和所述至少一个用户标识。In response to an instruction to add at least one target identifier and at least one user identifier in the context of the selected content, the shared content, the at least one target identifier, and the at least one user identifier are sent to the user group to which the at least one target user belongs.
在一种可能实现方式中,所述发送模块,还用于执行下述任一项:In one possible implementation, the sending module is further configured to perform any of the following:
响应于对所述目标文档中任一位置处对目标标识和用户标识的添加指令,向所述用户标识对应的目标用户发送所述目标文档的所述位置;In response to an instruction to add a target identifier and a user identifier at any location in the target document, the location of the target document is sent to the target user corresponding to the user identifier;
响应于对所述目标文档中任一位置处对目标标识和用户标识的添加指令,向所述目标文档对应的用户群组发送所述目标文档的所述位置,以及所述用户标识。In response to an instruction to add a target identifier and a user identifier at any location in the target document, the location of the target document and the user identifier are sent to the user group corresponding to the target document.
在一种可能实现方式中,所述装置还包括:In one possible implementation, the device further includes:
接收模块,用于接收任一用户发送的目标文档中的任一位置;The receiving module is used to receive any location in a target document sent by any user;
所述获取模块,还用于响应于对所述位置的查看指令,基于所述任一位置,获取所述目标文档中所述位置的上下文内容;The acquisition module is further configured to, in response to a viewing instruction for the location, acquire the contextual content of the location in the target document based on any one of the locations;
第一显示模块,用于显示所述上下文内容。The first display module is used to display the context content.
在一种可能实现方式中,所述装置还包括第二显示模块,第二显示模块用于:In one possible implementation, the device further includes a second display module, the second display module being used for:
响应于对所述被选中内容的反馈指令,在所述被选中内容的目标位置上显示对所述选中内容的反馈信息;In response to a feedback instruction on the selected content, feedback information for the selected content is displayed at the target location of the selected content;
所述生成模块,用于基于所述被选中内容和所述反馈信息,生成所述分享内容。The generation module is used to generate the shareable content based on the selected content and the feedback information.
在一种可能实现方式中,所述第二显示模块用于:In one possible implementation, the second display module is used for:
响应于对所述被选中内容的反馈指令,获取输入框中的信息作为对所述选中内容的反馈信息;In response to a feedback instruction on the selected content, information from the input box is obtained as feedback information for the selected content;
确定所述被选中内容的目标位置;Determine the target location of the selected content;
在所述目标位置上显示所述反馈信息。The feedback information is displayed at the target location.
在一种可能实现方式中,所述生成模块用于:In one possible implementation, the generation module is used to:
获取所述被选中内容的类型;Get the type of the selected content;
根据所述类型,获取所述类型对应的描述信息;Based on the type, obtain the description information corresponding to the type;
基于所述被选中内容、所述反馈信息和所述描述信息,生成分享内容。Based on the selected content, the feedback information, and the description information, shareable content is generated.
在一种可能实现方式中,所述装置还包括:In one possible implementation, the device further includes:
接收模块,用于接收所述目标用户群组中其他用户发送的分享内容;The receiving module is used to receive shared content sent by other users in the target user group;
第三显示模块,用于在所述目标用户群组中显示所述分享内容;The third display module is used to display the shared content in the target user group;
所述第三显示模块,还用于响应于对所述分享内容的查看指令,将界面跳转至所述分享内容对应的目标文档的显示界面;The third display module is also used to respond to the command to view the shared content by jumping the interface to the display interface of the target document corresponding to the shared content;
所述第三显示模块,还用于在所述显示界面中,突出显示所述分享内容中的被选中内容。The third display module is also used to highlight the selected content in the shared content in the display interface.
在一种可能实现方式中,所述第三显示模块,还用于:In one possible implementation, the third display module is further configured to:
获取所述分享内容中被选中内容在目标文档中的位置;Obtain the position of the selected content in the target document within the shared content;
突出显示所述位置上的内容。Highlight the content at the specified location.
在一种可能实现方式中,所述获取模块还用于响应于对与所述目标用户或在所述目标用户群组中的交互内容的转换指令,获取所述交互内容;In one possible implementation, the acquisition module is further configured to acquire the interaction content in response to a conversion instruction for the interaction content with the target user or in the target user group;
转换模块,用于按照所述交互内容的类型对应的格式转换方式,将所述交互内容的格式转换为所述类型对应格式;The conversion module is used to convert the format of the interactive content into the format corresponding to the type of the interactive content according to the format conversion method corresponding to the type of the interactive content;
第四显示模块,用于在文档中,显示转换后的交互内容,所述文档为所述基于选择指令选择的文档或基于文档创建指令创建的文档。The fourth display module is used to display the converted interactive content in a document, wherein the document is either the document selected based on the selection instruction or the document created based on the document creation instruction.
在一种可能实现方式中,所述获取模块还用于响应于对所述目标文档中任一位置的文件插入指令,获取目标文件;In one possible implementation, the acquisition module is further configured to acquire a target file in response to a file insertion instruction at any position in the target document;
关联模块,用于将所述目标文件的获取地址与所述目标文档关联;The association module is used to associate the acquisition address of the target file with the target document;
第五显示模块,用于在所述目标文档中所述位置上,显示所述目标文件的文件信息。The fifth display module is used to display the file information of the target file at the specified location in the target document.
在一种可能实现方式中,所述装置还包括:In one possible implementation, the device further includes:
第六显示模块,用于响应于对访问所述目标文档的用户的显示指令,显示正在访问所述目标文档的至少一个用户;The sixth display module is configured to display at least one user who is accessing the target document in response to a display instruction from a user accessing the target document;
所述第六显示模块,还用于响应于对任一用户的选择指令,显示与所述用户的会话窗。The sixth display module is also used to display a conversation window with the user in response to a selection command for any user.
在一种可能实现方式中,所述分享内容携带有所述分享内容中被选中内容在目标文档中的位置与目标文档的标识信息;In one possible implementation, the shared content carries the position of the selected content in the target document and the identification information of the target document;
所述装置还包括第七显示模块,所述第七显示模块用于:The device further includes a seventh display module, the seventh display module being used for:
根据所述分享内容携带的目标文档的标识信息,确定所述分享内容对应的目标文档;The target document corresponding to the shared content is determined based on the identification information of the target document carried in the shared content;
将界面跳转至所述分享内容对应的目标文档的显示界面;The interface will redirect to the display interface of the target document corresponding to the shared content;
所述第七显示模块用于:The seventh display module is used for:
根据所述被选中内容在目标文档中的位置,突出显示所述位置上的内容;Based on the position of the selected content in the target document, highlight the content at that position;
在所述位置的目标位置显示所述反馈信息。The feedback information is displayed at the target location.
在一种可能实现方式中,任一访问该目标文档的用户的权限基于该用户首次访问该目标文档的方式确定。In one possible implementation, the permissions of any user accessing the target document are determined based on how the user first accesses the target document.
在一种可能实现方式中,所述装置还包括:In one possible implementation, the device further includes:
第八显示模块,用于响应于对目标文档中内容的选择指令,对所述目标文档中被选中内容进行突出显示。The eighth display module is used to highlight the selected content in the target document in response to a selection instruction for the content in the target document.
一方面,提供了一种终端,所述终端包括一个或多个处理器和一个或多个存储器,所述一个或多个存储器中存储有至少一条程序代码,所述程序代码由所述一个或多个处理器加载并执行以实现所述文档内容分享方法所执行的操作。On one hand, a terminal is provided, the terminal including one or more processors and one or more memories, the one or more memories storing at least one piece of program code, the program code being loaded and executed by the one or more processors to implement the operations performed by the document content sharing method.
一方面,提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有至少一条程序代码,所述程序代码由处理器加载并执行以实现所述文档内容分享方法所执行的操作。On one hand, a computer-readable storage medium is provided, wherein at least one piece of program code is stored in the computer-readable storage medium, the program code being loaded and executed by a processor to implement the operations performed by the document content sharing method.
本申请实施例通过在目标文档中选中内容,可以根据该选中内容生成分享内容,从而将分享内容分享给其他用户或用户群组,该分享过程可以由用户针对文档中的选中内容进行分享,分享内容可以自由在文档中选择,与文档内容的关联性好,内容具有针对性,用户可以清晰获知分享的是文档中的哪部分内容,分享效果好。且可以直接向用户分享,或用户向用户群组分享,相较于相关技术中无法通知到其他用户,上述分享方式灵活多变,有效提高了分享效率和分享效果。This application embodiment allows for the generation of shareable content based on selected content within a target document. This shared content can then be shared with other users or user groups. The sharing process allows users to freely select content from within the document, ensuring good relevance and targeted sharing. Users can clearly identify which part of the document is being shared, resulting in effective sharing. Furthermore, sharing can be done directly to users or by users sharing with user groups. Compared to related technologies where other users cannot be notified, this sharing method is flexible and effectively improves sharing efficiency and effectiveness.
附图说明Attached Figure Description
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
图1是本申请实施例提供的一种文档内容分享方法的实施环境;Figure 1 illustrates the implementation environment of a document content sharing method provided in an embodiment of this application.
图2是本申请实施例提供的一种文档内容分享方法的流程图;Figure 2 is a flowchart of a document content sharing method provided in an embodiment of this application;
图3是本申请实施例提供的一种终端显示界面的示意图;Figure 3 is a schematic diagram of a terminal display interface provided in an embodiment of this application;
图4是本申请实施例提供的一种终端显示界面的示意图;Figure 4 is a schematic diagram of a terminal display interface provided in an embodiment of this application;
图5是本申请实施例提供的一种终端显示界面的示意图;Figure 5 is a schematic diagram of a terminal display interface provided in an embodiment of this application;
图6是本申请实施例提供的一种终端显示界面的示意图;Figure 6 is a schematic diagram of a terminal display interface provided in an embodiment of this application;
图7是本申请实施例提供的一种终端显示界面的示意图;Figure 7 is a schematic diagram of a terminal display interface provided in an embodiment of this application;
图8是本申请实施例提供的一种终端显示界面的示意图;Figure 8 is a schematic diagram of a terminal display interface provided in an embodiment of this application;
图9是本申请实施例提供的一种终端显示界面的示意图;Figure 9 is a schematic diagram of a terminal display interface provided in an embodiment of this application;
图10是本申请实施例提供的一种终端显示界面的示意图;Figure 10 is a schematic diagram of a terminal display interface provided in an embodiment of this application;
图11是本申请实施例提供的一种终端显示界面的示意图;Figure 11 is a schematic diagram of a terminal display interface provided in an embodiment of this application;
图12是本申请实施例提供的一种终端显示界面的示意图;Figure 12 is a schematic diagram of a terminal display interface provided in an embodiment of this application;
图13是本申请实施例提供的一种终端显示界面的示意图;Figure 13 is a schematic diagram of a terminal display interface provided in an embodiment of this application;
图14是本申请实施例提供的一种终端显示界面的示意图;Figure 14 is a schematic diagram of a terminal display interface provided in an embodiment of this application;
图15是本申请实施例提供的一种终端显示界面的示意图;Figure 15 is a schematic diagram of a terminal display interface provided in an embodiment of this application;
图16是本申请实施例提供的一种终端显示界面的示意图;Figure 16 is a schematic diagram of a terminal display interface provided in an embodiment of this application;
图17是本申请实施例提供的一种终端显示界面的示意图;Figure 17 is a schematic diagram of a terminal display interface provided in an embodiment of this application;
图18是本申请实施例提供的一种终端显示界面的示意图;Figure 18 is a schematic diagram of a terminal display interface provided in an embodiment of this application;
图19是本申请实施例提供的一种终端显示界面的示意图;Figure 19 is a schematic diagram of a terminal display interface provided in an embodiment of this application;
图20是本申请实施例提供的一种终端显示界面的示意图;Figure 20 is a schematic diagram of a terminal display interface provided in an embodiment of this application;
图21是本申请实施例提供的一种终端显示界面的示意图;Figure 21 is a schematic diagram of a terminal display interface provided in an embodiment of this application;
图22是本申请实施例提供的一种终端显示界面的示意图;Figure 22 is a schematic diagram of a terminal display interface provided in an embodiment of this application;
图23是本申请实施例提供的一种终端显示界面的示意图;Figure 23 is a schematic diagram of a terminal display interface provided in an embodiment of this application;
图24是本申请实施例提供的一种终端显示界面的示意图;Figure 24 is a schematic diagram of a terminal display interface provided in an embodiment of this application;
图25是本申请实施例提供的一种终端显示界面的示意图;Figure 25 is a schematic diagram of a terminal display interface provided in an embodiment of this application;
图26是本申请实施例提供的一种终端显示界面的示意图;Figure 26 is a schematic diagram of a terminal display interface provided in an embodiment of this application;
图27是本申请实施例提供的一种文档内容分享方法的流程图;Figure 27 is a flowchart of a document content sharing method provided in an embodiment of this application;
图28是本申请实施例提供的一种文档内容分享方法的流程图;Figure 28 is a flowchart of a document content sharing method provided in an embodiment of this application;
图29是本申请实施例提供的一种长连接建立过程的流程图;Figure 29 is a flowchart of a long connection establishment process provided in an embodiment of this application;
图30是本申请实施例提供的一种文档内容分享系统的框架图;Figure 30 is a framework diagram of a document content sharing system provided in an embodiment of this application;
图31是本申请实施例提供的一种终端的结构示意图。Figure 31 is a schematic diagram of the structure of a terminal provided in an embodiment of this application.
具体实施方式Detailed Implementation
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
图1是本申请实施例提供的一种文档内容分享方法的实施环境,参见图1,该实施环境中可以包括多个终端101和服务器102,该多个终端101可以分别基于网络连接与服务器102进行数据交互。Figure 1 shows an implementation environment for a document content sharing method provided in an embodiment of this application. Referring to Figure 1, the implementation environment may include multiple terminals 101 and a server 102. The multiple terminals 101 can interact with the server 102 based on network connections.
在本申请实施例中,该多个终端101上登录的用户可以正在同时访问服务器102中的一个文档,每个终端101可以向服务器102发送该终端101上登录的用户对一个文档的编辑操作信息,服务器102可以将该编辑操作信息转发给访问该文档的其它用户所在终端101。In this embodiment of the application, users logged in on the multiple terminals 101 can simultaneously access a document on the server 102. Each terminal 101 can send editing operation information of the user logged in on the terminal 101 on a document to the server 102. The server 102 can forward the editing operation information to the terminals 101 of other users accessing the document.
例如,该文档可以为表格,多个用户可以访问该表格,该服务器102上可以存储有该表格,该多个用户所在的多个终端101可以通过网络连接访问该服务器102中的该表格,该多个用户可以同时对该表格进行编辑。该多个终端101可以向服务器102发送编辑操作信息,该服务器102可以将一个终端101发送的编辑操作信息发送给其他终端101,从而实现该表格中的数据同步。在此仅以该文档为表格为例进行说明,该文档也可以为word文档,本申请实施例对此不作限定。For example, the document can be a table, accessible to multiple users. The table can be stored on server 102, and multiple terminals 101 of the users can access it via a network connection. These users can edit the table simultaneously. Each terminal 101 can send editing operation information to server 102, which can then forward the information to other terminals, thus synchronizing the data in the table. This example only uses a table as an illustration; the document could also be a Word document, and this embodiment does not limit the specific type.
需要说明的是,该多个终端101可以通过安装的终端对该服务器102进行访问,也可以通过对门户网站对该服务器102进行访问,本申请实施例对此不作限定。It should be noted that the multiple terminals 101 can access the server 102 through the installed terminals or through the portal website; this embodiment does not limit this.
该文档内容分享方法应用于终端,该终端可以为上述多个终端101中的一个终端101,在本申请实施例中,多个用户可以同时对同一个文档进行编辑,其中,对于某个终端来说,该终端上登录的本地用户可以正在访问一个文档,且其他终端上登录的其他用户也可以访问该文档,并对该文档进行编辑。该多个用户可以针对同一个文档中的内容进行反馈,从而展开讨论。This document content sharing method is applied to a terminal, which can be one of the multiple terminals 101 mentioned above. In this embodiment, multiple users can edit the same document simultaneously. For a particular terminal, a local user logged in on that terminal can access a document, and other users logged in on other terminals can also access and edit the document. These multiple users can provide feedback on the content of the same document, thereby initiating a discussion.
下面通过图2所示实施例对该文档内容分享方法的具体流程进行说明。图2是本申请实施例提供的一种文档内容分享方法的流程图,参见图2,该文档内容分享方法可以包括以下步骤:The specific process of this document content sharing method will be described below with reference to the embodiment shown in Figure 2. Figure 2 is a flowchart of a document content sharing method provided in an embodiment of this application. Referring to Figure 2, the document content sharing method may include the following steps:
201、终端响应于对目标文档的显示指令,将界面跳转至目标文档的显示界面。201. In response to the display command for the target document, the terminal jumps to the display interface of the target document.
在本申请实施例中,用户可以在终端打开目标文档,对该目标文档进行编辑,终端响应于对目标文档的显示指令,将界面跳转至目标文档的显示界面。In this embodiment of the application, the user can open the target document on the terminal and edit the target document. In response to the display instruction of the target document, the terminal will jump to the display interface of the target document.
其中,该对目标文档的显示指令可以作用于社交应用中,终端进行界面跳转的过程可以在该社交应用中执行,也可以从社交应用跳转至浏览器中,本申请实施例对此不作限定。The display instruction for the target document can be applied to a social application. The process of the terminal switching interfaces can be executed in the social application or can be executed from the social application to the browser. This application embodiment does not limit this.
例如,多个用户可以共享同一个文档的查看或编辑权限,该目标文档的创建过程可以如图3至图7所示。以该文档创建过程在社交应用中进行为例,用户可以在对图3所示的社交应用中的文档创建控件(例如,“写文档”301)进行触发操作,终端响应于文档创建指令,可以创建文档。如图4所示,用户可以编辑该新创建文档的文档标题401和共享用户402,该共享用户也即是可以对该文档具有查看或编辑权限的用户。用户可以在自己的联系人中选择共享用户,终端可以提供该选择联系人界面501,在该联系人界面501中还可以提供企业的组织架构信息502(例如,企业通讯录和企业合作伙伴),以供选择联系人。如图6所示,选定后,即可对“创建文档”控件601进行触控操作,以创建文档.创建文件完成,如图7所示,用户还可以在“正文”部分701,编辑文档内容。当然,除了上述文档创建功能,该社交应用中还可以提供其他功能,可以如图3所示,可以提供待办事项或新建待办实现,可以添加文件,或提供文件入口,在此不一一列举。For example, multiple users can share viewing or editing permissions for the same document. The document creation process can be illustrated as shown in Figures 3 to 7. Taking this document creation process in a social application as an example, a user can trigger an operation on the document creation control (e.g., "Write Document" 301) in the social application shown in Figure 3. The terminal responds to the document creation instruction and can create a document. As shown in Figure 4, the user can edit the document title 401 and the sharing user 402 of the newly created document. The sharing user is the user who has viewing or editing permissions for the document. The user can select the sharing user from their contacts. The terminal can provide a contact selection interface 501, which can also provide organizational structure information 502 of the enterprise (e.g., enterprise address book and enterprise partners) for selecting contacts. As shown in Figure 6, after selection, the user can touch the "Create Document" control 601 to create the document. Once the file creation is complete, as shown in Figure 7, the user can also edit the document content in the "Body" section 701. Of course, in addition to the document creation function mentioned above, this social application can also provide other functions, as shown in Figure 3, such as providing to-do items or creating new to-do items, adding files, or providing file entry points, which will not be listed here one by one.
在一种可能实现方式中,在该目标文档创建成功时,可以基于选择的多个共享用户,生成目标文档对应的用户群组。例如,用户选择了3个共享用户,则该用户和该3个共享用户可以对该目标文档进行编辑,终端可以生成用户数量为4的用户群组。该4个用户可以在该用户群组中针对该目标文档进行展开讨论。In one possible implementation, upon successful creation of the target document, a user group corresponding to the target document can be generated based on the selected multiple sharing users. For example, if a user selects three sharing users, then that user and the three sharing users can edit the target document, and the terminal can generate a user group of four users. These four users can then discuss the target document within this user group.
202、终端响应于对目标文档中内容的选择指令,获取该目标文档中被选中内容。202. The terminal responds to the selection instruction for the content in the target document and obtains the selected content in the target document.
用户如果想要对目标文档中部分内容分享给其他用户时,可以对目标文档中内容进行选择操作,终端接收到选择操作触发的选择指令时,可以响应于该指令,获取被选中内容。If a user wants to share a portion of a target document with other users, they can select content from the target document. When the terminal receives the selection command triggered by the selection operation, it can respond to the command and retrieve the selected content.
203、终端对该被选中内容进行突出显示。203. The terminal highlights the selected content.
用户选中部分内容后,终端还可以对被选中内容进行突出显示,例如,该突出显示可以为高亮显示,也可以为其他方式,本申请实施例对此不作限定。这样通过该突出显示被选中内容,用户可以清晰获知那部分内容被选中,如果用户不满意,也可以再调整,进而上述显示方式也可以提高该被选中内容的准确性。After a user selects a portion of content, the terminal can highlight the selected content. For example, this highlighting can be done through a simple highlighting or other methods, which are not limited in this embodiment. By highlighting the selected content, the user can clearly see which portion is selected. If the user is not satisfied, they can adjust the selection, thereby improving the accuracy of the selected content.
在一种可能实现方式中,如果用户对被选中内容不满意,还可以进行选择内容调整操作,终端接收到选择内容调整操作触发的选择内容调整指令时,可以根据该选择内容调整指令,确定调整后的被选中内容,从而对调整后的被选中内容进行突出显示。In one possible implementation, if the user is not satisfied with the selected content, they can adjust the selected content. When the terminal receives the selected content adjustment instruction triggered by the selected content adjustment operation, it can determine the adjusted selected content according to the selected content adjustment instruction, and thus highlight the adjusted selected content.
例如,如图8所示,用户可以对该目标文档进行编辑操作,以编辑该目标文档的内容,用户点击正文或者标题,终端可以显示输入控件801,用户对该输入控件801进行操作,即可编辑内容。编辑过程或查看过程中,如果想要针对一段内容与其他用户进行讨论,则可以对目标文档中的想要讨论的那部分内容进行选择操作,终端响应于该选择操作触发的选择指令,可以对被选中内容进行高亮显示,如图9所示,该高亮显示可以采用选中框显示的方式,终端可以显示选中框901,在该选中框901中显示被选中内容902“商标在现代社会人们的日常生活中的地位与作用越来越重要”。For example, as shown in Figure 8, users can edit the target document to modify its content. When a user clicks on the main text or title, the terminal displays an input control 801. The user can then manipulate this input control 801 to edit the content. During the editing or viewing process, if a user wants to discuss a section of content with other users, they can select that section of the target document. Responding to the selection command triggered by this selection operation, the terminal can highlight the selected content, as shown in Figure 9. This highlighting can be achieved using a selection box. The terminal can display a selection box 901, which shows the selected content 902: "Trademarks are playing an increasingly important role in people's daily lives in modern society."
该选择操作可以为长按操作后对提供的选择控件进行触发操作,也可以基于快捷键来触发,例如,双击操作,或者按压力度大于压力阈值的滑动操作等,本申请实施例对该选择操作的方式不作限定。The selection operation can be triggered by a long press on the provided selection control, or it can be triggered by a shortcut key, such as a double-click operation, or a sliding operation with a pressure greater than a pressure threshold. This application embodiment does not limit the method of the selection operation.
该步骤203为可选步骤,在该步骤203中仅对终端对该被选中内容进行突出显示为例进行说明,在一种可能实现方式中,终端也可以在步骤202后直接执行步骤204,本申请实施例对此不作限定。Step 203 is an optional step. In step 203, only the example of highlighting the selected content on the terminal is used for illustration. In one possible implementation, the terminal can also directly execute step 204 after step 202. This application embodiment does not limit this.
204、终端基于该被选中内容,生成分享内容。204. The terminal generates shareable content based on the selected content.
终端获取到被选中内容后,可以基于该被选中内容生成分享内容,以将分享内容分享给其他用户。After the terminal obtains the selected content, it can generate shareable content based on the selected content and share it with other users.
在一种可能实现方式中,终端可以获取该被选中内容在目标文档中的位置,基于该位置生成分享内容。这样别分享的用户接收到该分享内容后,可以基于该位置,获知被选中内容在目标文档中的位置,从而对该目标文档中该位置上的内容进行突出显示即可。In one possible implementation, the terminal can obtain the location of the selected content within the target document and generate shareable content based on that location. When a user receives the shared content, they can then determine the location of the selected content within the target document and highlight the content at that specific location.
在另一种可能实现方式中,终端可以根据该被选中内容的类型,获取该类型对应的描述信息,基于该被选中内容和该描述信息,生成分享内容。In another possible implementation, the terminal can obtain the description information corresponding to the type of the selected content, and generate shareable content based on the selected content and the description information.
例如,该被选中内容为文字,则可以获取描述信息“XX为您分享一段文本”。被选中内容为图片,则可以获取描述信息“XX为您分享一张图片”。For example, if the selected content is text, the description information can be retrieved as "XX is sharing a piece of text with you." If the selected content is an image, the description information can be retrieved as "XX is sharing an image with you."
在一种可能实现方式中,用户在分享被选中内容时,还可以对该被选中内容进行反馈操作,例如,评价、重新编辑或回复等操作。在该实现方式中,终端生成分享内容时,还可以将反馈信息也作为分享内容的一部分。具体地,该实现方式可以通过下述步骤一和步骤二实现。In one possible implementation, when sharing selected content, users can also provide feedback on the selected content, such as rating, re-editing, or replying. In this implementation, when the terminal generates the shared content, the feedback information can also be included as part of the shared content. Specifically, this implementation can be achieved through the following steps one and two.
步骤一、终端响应于对该被选中内容的反馈指令,在该被选中内容的目标位置上显示对该选中内容的反馈信息。该反馈指令可以由用户对反馈控件进行的触发操作触发。具体地,终端可以在界面中显示反馈控件,用户可以选中内容,并点击该反馈控件,输入对上述被选中内容的反馈信息。Step 1: In response to a feedback instruction for the selected content, the terminal displays feedback information at the target location of the selected content. This feedback instruction can be triggered by a user's interaction with the feedback control. Specifically, the terminal can display a feedback control on the interface, allowing the user to select content, click the feedback control, and input feedback information about the selected content.
在一种可能实现方式中,终端还可以提供输入反馈信息的输入框,通过该输入框获取反馈信息,从而在被选中内容的周围显示该反馈信息。具体地,该步骤204中,终端可以响应于对该被选中内容的反馈指令,获取输入框中的信息作为对该选中内容的反馈信息,确定该被选中内容的目标位置,在该目标位置上显示该反馈信息。In one possible implementation, the terminal may also provide an input box for inputting feedback information. Feedback information is obtained through this input box and then displayed around the selected content. Specifically, in step 204, the terminal may, in response to a feedback instruction for the selected content, obtain information from the input box as feedback information for the selected content, determine the target position of the selected content, and display the feedback information at that target position.
其中,该目标位置可以为与该被选中内容的距离小于距离阈值的位置。也即是,该目标位置为该被选中内容周围的位置,例如,该目标位置可以位于被选中内容的下方、上方、左方或右方,本申请实施例对此不作限定。The target location can be a position where the distance to the selected content is less than a distance threshold. That is, the target location is a position around the selected content. For example, the target location can be located below, above, to the left, or to the right of the selected content. This application embodiment does not limit this.
例如,如图9和图10所示,该两个图中均示出了显示输入框903的情况。终端可以响应于该反馈指令,显示输入框903,用户可以在输入框903中输入文字,也可以在该输入框中插入图片或文件等,终端获取该输入框中的信息即可得到对该被选中内容的反馈信息,并在该被选中内容的下方显示反馈信息,该反馈信息的显示效果可以如图11中的反馈信息1101。需要说明的是,上述被选中内容还可以为其他用户选中后添加过反馈信息的内容。例如,如图12所示,该被选中内容的周边位置上可以显示有反馈提示1201,也即是,图12中的高亮显示的反馈提示1201(“1”),该“1”说明已有一条对该被选中内容的反馈信息。用户可以对该反馈提示进行触发操作,终端可以响应于该触发操作触发的对反馈提示的触发指令,在被选中内容的目标位置上显示已有的反馈信息1202。用户还可以针对该反馈信息再发表反馈,或者回答该反馈信息,从而如图10所示,用户可以输入反馈信息,终端可以显示两条反馈信息,如图13所示。For example, as shown in Figures 9 and 10, both figures illustrate the display of input box 903. The terminal can respond to the feedback command by displaying input box 903. Users can enter text, insert images, or files into the input box. The terminal obtains feedback information for the selected content by acquiring the information in the input box and displays the feedback information below the selected content. The display effect of this feedback information can be as shown in feedback information 1101 in Figure 11. It should be noted that the selected content can also be content for which feedback information has been added by other users. For example, as shown in Figure 12, a feedback prompt 1201 can be displayed around the selected content; that is, the highlighted feedback prompt 1201 (“1”) in Figure 12 indicates that there is already a feedback message for the selected content. Users can trigger the feedback prompt, and the terminal can respond to the trigger command for the feedback prompt, displaying the existing feedback information 1202 at the target position of the selected content. Users can also provide further feedback or respond to the feedback information. As shown in Figure 10, users can input feedback information, and the terminal can display two feedback messages, as shown in Figure 13.
通过上述方式,用户可以自定义输入反馈信息,该反馈信息的内容形式多样,能够更清晰地表达用户的观点,从而分享效率更高,效果更好。另外,在被选中内容周围的位置上显示对应的反馈信息,用户可以根据该反馈信息的显示位置即可直接获知该反馈信息与被选中内容的关系,显示效果直观、清晰,能够有效提高分享效率。Through the methods described above, users can customize their input feedback information. This feedback can take various forms and more clearly express the user's viewpoint, resulting in higher sharing efficiency and better results. Furthermore, displaying corresponding feedback information around the selected content allows users to directly understand the relationship between the feedback and the selected content based on its display location. This intuitive and clear display effectively improves sharing efficiency.
步骤二、终端基于该被选中内容和该反馈信息,生成分享内容。Step 2: The terminal generates shareable content based on the selected content and the feedback information.
终端获取到反馈信息后,可以基于该被选中内容和该反馈信息,生成分享内容,将分享内容分享给其他用户,来告知其他用户,该终端的用户对被选中内容进行了反馈以及反馈内容。After receiving feedback information, the terminal can generate shareable content based on the selected content and the feedback information, and share the shareable content with other users to inform them that the user of the terminal has provided feedback on the selected content and the feedback content.
在一种可能实现方式中,该分享内容可以携带有该被选中内容在目标文档中的位置与目标文档的标识信息。这样其他用户通过该目标文档的标识信息,可以获知分享内容是针对哪个文档进行反馈,根据被选中内容在目标文档中的位置,可以获知该被选中内容是什么,通过这两种信息,即可快速对被选中内容进行定位,以获知是对哪些内容进行反馈。在该实现方式中,上述步骤204可以为:终端获取该被选中内容在该目标文档中的位置,将该位置、该目标文档的标识信息以及该分享内容关联。In one possible implementation, the shared content can carry the location of the selected content within the target document and the target document's identifier information. This allows other users to determine which document the shared content is addressing based on the target document's identifier information, and to identify what the selected content is based on its location within the target document. These two pieces of information allow for quick location of the selected content, thus determining which content is being addressed. In this implementation, step 204 can be: the terminal obtains the location of the selected content within the target document and associates that location, the target document's identifier information, and the shared content.
在一个具体的可能实施例中,被选中内容可以包括不同类型的内容,例如,该被选中内容可以为评价信息,可以为提示信息(例如,@任一用户),还可以为文件分享。针对不同类型的内容,终端可以采用不同的描述信息,对该被选中内容进行描述。具体地,获取该被选中内容的类型,根据该类型,获取该类型对应的描述信息,基于该被选中内容、该反馈信息和该描述信息,生成分享内容。例如,如果该被选中内容为评价信息,则描述信息可以为“XX对YYYYY进行了评价。”In one possible implementation, the selected content can include different types of content. For example, the selected content can be evaluation information, a prompt message (e.g., @ any user), or file sharing. For different types of content, the terminal can use different descriptive information to describe the selected content. Specifically, the type of the selected content is obtained, and based on that type, the corresponding descriptive information is obtained. Based on the selected content, the feedback information, and the descriptive information, the sharing content is generated. For example, if the selected content is evaluation information, the descriptive information could be "XX rated YYYYY".
205、终端将该分享内容发送至目标用户或目标用户群组。205. The terminal sends the shared content to the target user or target user group.
终端生成分享内容后,即可将其分享给其他用户。具体地,可以分享给某个用户,也可以分享到某个用户群组中,从而实现同时给多个用户分享的过程。针对该发送对象的不同,下面提供两种可能情况:Once the terminal generates the content to be shared, it can then be shared with other users. Specifically, it can be shared with a single user or to a user group, thus enabling simultaneous sharing with multiple users. Depending on the recipient, two possible scenarios are provided below:
方式一、该目标用户群组基于目标分享控件的状态确定,该目标分享控件用于指示将被选中内容分享至目标文档对应的用户群组。该步骤205为:终端获取目标分享控件的状态,响应于该目标分享控件处于被选中状态,将该分享内容发送至该文档对应的用户群组。Method 1: The target user group is determined based on the state of the target sharing control, which indicates that the selected content will be shared to the user group corresponding to the target document. Step 205 is as follows: The terminal obtains the state of the target sharing control, and in response to the target sharing control being selected, sends the shared content to the user group corresponding to the document.
例如,如图10所示,该目标分享控件可以为“通知到会话”,如果用户选择了该目标分享控件,则可以直接将分享内容分享给该目标文档对应的用户群组。如果没有,终端可以进行界面跳转,从图13所示界面跳转至候选的用户群组选择界面,用户可以自由选择分享到哪个用户群组中,终端可以进行发送步骤,也即是下述方式二。For example, as shown in Figure 10, the target sharing control can be "Notify to Session". If the user selects this target sharing control, the content can be directly shared to the user group corresponding to the target document. If not, the terminal can redirect the interface from the interface shown in Figure 13 to the candidate user group selection interface, where the user can freely choose which user group to share to, and the terminal can then proceed with the sending step, which is the second method described below.
方式二、该目标用户或目标用户群组基于对候选用户或候选用户群组的选择指令确定。该步骤205中,终端可以响应于对该分享用户选择控件的触发指令,显示候选用户或候选用户群组,响应于对任一候选用户或任一候选用户群组的选择指令,将该分享内容发送至该候选用户或候选用户群组。Method 2: The target user or target user group is determined based on a selection instruction for a candidate user or candidate user group. In step 205, the terminal can display candidate users or candidate user groups in response to a trigger instruction for the sharing user selection control, and send the sharing content to the candidate user or candidate user group in response to a selection instruction for any candidate user or candidate user group.
在图13所示的评价信息显示后,终端还可以提供候选的用户群组选择界面,用户可以自由选择分享到哪个用户群组中,终端可以进行发送步骤。After the evaluation information shown in Figure 13 is displayed, the terminal can also provide a candidate user group selection interface, where users can freely choose which user group to share to, and the terminal can then proceed with the sending process.
上述以用户分享目标文档中被选中内容进行分享为例进行说明,目标用户或目标用户群组中的用户可以接收分享内容并显示,还可以进一步查看分享内容,下面通过该用户接收并查看分享内容的过程对上述过程进行说明。The above example illustrates how a user can share selected content from a target document. The target user or a group of users can receive and view the shared content, and can further view it. The process described below is an explanation of how the user receives and views the shared content.
具体地,终端可以接收该目标用户群组中其他用户发送的分享内容,在该目标用户群组中显示该分享内容。例如,如图14所示,终端可以显示分享内容1401。用户可以点击该分享内容1401,以查看具体的目标文档中对应内容。终端可以响应于对该分享内容的查看指令,将界面跳转至该分享内容对应的目标文档的显示界面,在该显示界面中,突出显示该分享内容中的被选中内容。例如,如图15所示,终端跳转到分享内容对应的目标文档的显示界面1501,终端可以显示有被选中内容1502。在上述用户还分享了反馈信息的实现方式中,终端还可以显示有反馈提示1503,如果用户点击该反馈提示1503,终端则可以显示反馈信息,显示效果可以如图13所示。用户还可以对目标文档进行编辑操作,例如,如图15所示,可以提供格式编辑控件1501,通过该格式编辑控件1501,调整文字的格式。如图16所示,可以提供插入控件1601,通过该插入控件1601,可以在该目标文档中插入其他格式的文件。Specifically, the terminal can receive shared content sent by other users in the target user group and display the shared content in the target user group. For example, as shown in Figure 14, the terminal can display shared content 1401. Users can click on shared content 1401 to view the corresponding content in the specific target document. In response to the command to view the shared content, the terminal can jump to the display interface of the target document corresponding to the shared content, highlighting the selected content within the shared content. For example, as shown in Figure 15, the terminal jumps to the display interface 1501 of the target document corresponding to the shared content, and the terminal can display the selected content 1502. In the above implementation method where users also share feedback information, the terminal can also display a feedback prompt 1503. If the user clicks on the feedback prompt 1503, the terminal can display feedback information, as shown in Figure 13. Users can also perform editing operations on the target document. For example, as shown in Figure 15, a format editing control 1501 can be provided to adjust the text format. As shown in Figure 16, an insertion control 1601 can be provided, through which files of other formats can be inserted into the target document.
具体地,该显示过程中,终端可以获取该分享内容中被选中内容在目标文档中的位置,突出显示该位置上的内容。在上述用户还分享了反馈信息的实现方式中,终端还可以在该内容的目标位置上显示该反馈信息。Specifically, during this display process, the terminal can obtain the position of the selected content within the target document and highlight the content at that position. In the aforementioned implementation where the user also shared feedback information, the terminal can also display the feedback information at the target location of the content.
在一种可能实现方式中,该分享内容携带有该分享内容中被选中内容在目标文档中的位置与目标文档的标识信息。上述界面跳转过程可以为:终端根据该分享内容携带的目标文档的标识信息,确定该分享内容对应的目标文档,将界面跳转至该分享内容对应的目标文档的显示界面。显示过程相应地可以为:终端根据该被选中内容在目标文档中的位置,突出显示该位置上的内容。在上述用户还分享了反馈信息的实现方式中,终端还可以在该位置的目标位置显示该反馈信息。In one possible implementation, the shared content carries the position of the selected content within the target document and the target document's identifier information. The aforementioned interface transition process can be as follows: the terminal determines the target document corresponding to the shared content based on the target document identifier information carried by the shared content, and then transitions the interface to the display screen of the target document corresponding to the shared content. The display process can correspondingly be as follows: the terminal highlights the content at the selected position within the target document. In the implementation where the user also shares feedback information, the terminal can also display the feedback information at the target position.
上述分享与显示分享内容的过程仅以分享评价信息为例,其实也可以为提示用户的信息,或其他信息,例如,如图17-19,用户可以在任一位置添加重点提示的信息,该重点提示的信息可以为目标标识和用户标识,例如,@某个用户。具体地,如图17所示,终端可以显示提醒人选择界面1701,用户可以选择重点提示的联系人,从而在该文档中添加提示信息1801,该提示信息1801也可以生成对应的分享内容,从而发送至用户群组中,如图19中的分享内容1901。终端还可以提供其他功能,例如,如图20所示,可以显示用户群组的信息,如图21所示,也可以提供该用户群组中共享的全部文档的信息。The above process of sharing and displaying shared content only takes sharing evaluation information as an example. It can also include information prompting users or other information. For example, as shown in Figures 17-19, users can add key information at any location. This key information can be a target identifier and a user identifier, such as @ a specific user. Specifically, as shown in Figure 17, the terminal can display a reminder selection interface 1701, where users can select the contact to be highlighted, thereby adding reminder information 1801 to the document. This reminder information 1801 can also generate corresponding sharing content, which can then be sent to the user group, as shown in the sharing content 1901 in Figure 19. The terminal can also provide other functions. For example, as shown in Figure 20, it can display information about the user group, and as shown in Figure 21, it can also provide information about all documents shared in the user group.
在一种可能实现方式中,如果该被选中内容中包括目标标识和用户标识,则用户可能是想要重点提示某个用户或某些用户来查看或编辑该被选中内容。In one possible implementation, if the selected content includes a target identifier and a user identifier, the user may want to highlight a specific user or groups of users to view or edit the selected content.
具体的,在这种实现方式中,可以包括以下两种情况:Specifically, this implementation method can include the following two cases:
情况一:终端可以响应于该被选中内容包括至少一个目标标识和至少一个用户标识,向该至少一个用户标识对应的目标用户发送该分享内容。Scenario 1: The terminal may send the shared content to the target user corresponding to the selected content, in response to the selected content including at least one target identifier and at least one user identifier.
情况二:终端可以响应于该被选中内容包括至少一个目标标识和至少一个用户标识,向该至少一个目标用户所在的用户群组发送该分享内容、该至少一个目标标识和该至少一个用户标识。Scenario 2: The terminal may, in response to the selected content including at least one target identifier and at least one user identifier, send the shared content, the at least one target identifier and the at least one user identifier to the user group to which the at least one target user belongs.
在上述情况一和情况二中,该目标标识可以为@,当然,也可以为其他标识,本申请实施例对此不作限定。在情况一中,终端可以将该被选中内容发送给需要重点提示要查看或编辑的用户。在情况二中,终端可以向需要@的用户所在用户群组中发送该分享内容,并发送该目标标识和用户标识,这样接收到该分享内容、目标标识和用户标识的终端,可以在用户群组中显示该分享内容,并显示该至少一个目标标识和至少一个用户标识,这样用户可以清晰获知自己是否需要查看或编辑该分享内容中的被选中内容。In scenarios one and two above, the target identifier can be @, but it can also be other identifiers; this application embodiment does not limit this. In scenario one, the terminal can send the selected content to users who need to highlight it for viewing or editing. In scenario two, the terminal can send the shared content to the user group of the user who needs to be @'d, along with the target identifier and user identifier. The terminal receiving the shared content, target identifier, and user identifier can then display the shared content in the user group, along with at least one target identifier and at least one user identifier. This allows users to clearly know whether they need to view or edit the selected content within the shared content.
在另一个具体的可能实施例中,该目标标识和用户标识还可以不是被选中内容中的信息,而是用户选中内容后添加,以@某些用户。在该实现方式中,该基于对候选用户或候选用户群组的选择指令包括对目标标识和用户标识的添加指令,上述发送过程可以分为以下两种情况:In another specific possible embodiment, the target identifier and user identifier may not be information from the selected content, but rather added after the user selects the content to @certain users. In this implementation, the selection instruction based on candidate users or candidate user groups includes instructions for adding the target identifier and user identifier. The above sending process can be divided into the following two cases:
情况一:终端响应于在该被选中内容的上下文中,对至少一个目标标识和至少一个用户标识的添加指令,向该至少一个用户标识对应的目标用户发送该分享内容。Scenario 1: In response to an instruction to add at least one target identifier and at least one user identifier in the context of the selected content, the terminal sends the shared content to the target user corresponding to the at least one user identifier.
情况二:终端响应于在该被选中内容的上下文中,对至少一个目标标识和至少一个用户标识的添加指令,向该至少一个目标用户所在的用户群组发送该分享内容、该至少一个目标标识和该至少一个用户标识。Scenario 2: In response to an instruction to add at least one target identifier and at least one user identifier in the context of the selected content, the terminal sends the shared content, the at least one target identifier, and the at least one user identifier to the user group to which the at least one target user belongs.
除了上述用户选中内容后,被选中内容中包括目标标识和用户标识,或者选中内容后,用户添加了目标标识和用户标识的情况,还可能包括一种情况:用户未选中文档中内容,而是在文档中任一位置处添加目标标识和用户标识。In addition to the above situations where the selected content includes both a target identifier and a user identifier, or where the user adds both after selecting content, there may also be another situation where the user does not select any content in the document but adds the target identifier and user identifier at any location in the document.
在该情况中,上述发送过程可以包括两种情况:In this case, the above sending process can include two scenarios:
情况一:终端响应于对该目标文档中任一位置处对目标标识和用户标识的添加指令,向该用户标识对应的目标用户发送该目标文档的该位置。Scenario 1: In response to an instruction to add a target identifier and a user identifier at any location in the target document, the terminal sends that location of the target document to the target user corresponding to the user identifier.
情况二:终端响应于对该目标文档中任一位置处对目标标识和用户标识的添加指令,向该目标文档对应的用户群组发送该目标文档的该位置,以及该用户标识。Scenario 2: In response to the instruction to add a target identifier and a user identifier at any location in the target document, the terminal sends the location of the target document and the user identifier to the user group corresponding to the target document.
在该情况一和情况二中,发送了该目标标识所在位置,接收到该位置的用户即可根据该位置,确定想要提示该用户查看或编辑的文档内容的位置,进而获知提示查看或编辑的内容。In both scenarios one and two, the location of the target identifier is sent. The user who receives the location can then determine the location of the document content that they want to be prompted to view or edit, and thus learn the content that needs to be viewed or edited.
下面对于接收到位置的情况进行说明,终端接收任一用户发送的目标文档中的任一位置,可以响应于对该位置的查看指令,基于该任一位置,获取该目标文档中该位置的上下文内容,显示该上下文内容。也即是,其他用户提示该用户查看或编辑文档中某一处位置周围的内容,则可以添加该目标标识和该用户的用户标识,该用户所在终端接收到该位置后,可以根据该位置,确定该位置的上下文内容,进而也即获知需要查看该上下位内容,确定是否需要进行编辑或回答等。上述分享方式方便、快捷,灵活性好,分享效率高,效果好。The following explains the reception of a location. When a terminal receives any location within a target document sent by any user, it can respond to a viewing instruction for that location by retrieving and displaying the contextual content of that location within the target document. In other words, if another user prompts a user to view or edit the content surrounding a specific location in a document, the terminal can add the target identifier and the user's identifier. Upon receiving this location, the terminal can determine the contextual content of that location, thus understanding whether the user needs to view the surrounding content and whether editing or a response is required. This sharing method is convenient, fast, flexible, efficient, and effective.
除了上述分享反馈信息之外,用户可能想要将与其他用户或在用户群组中的交互内容,添加到文档中。例如,该交互内容可以为聊天内容。终端可以响应于对与该目标用户或在该目标用户群组中的交互内容的转换指令,获取该交互内容,按照该交互内容的类型对应的格式转换方式,将该交互内容的格式转换为该类型对应格式,在文档中,显示转换后的交互内容。In addition to sharing feedback information as mentioned above, users may want to add interactions with other users or in user groups to the document. For example, this interaction could be chat content. The terminal can respond to a conversion instruction for the interaction with the target user or in the target user group, acquire the interaction content, convert it to the format corresponding to the type of interaction content according to the format conversion method, and display the converted interaction content in the document.
例如,该交互内容可以为文字,可以将文字转为文档中的文字格式,添加到文档中。该交互内容可以为图片,终端可以对图片进行文字识别,将识别到的文字添加到文档中。其中,该文字识别的过程可以通过文字识别模型实现,本申请实施例对此不作限定。该交互内容还可以为文件,终端可以将文件存储到目标地址,在文档中添加该文件的描述信息,例如“下面引用文件,文件的地址:链接地址”。通过上述方式用户无需手动撰写聊天内容到文档中,方便快捷,减少了用户操作,提高了编辑效率。For example, the interactive content can be text, which can be converted into the text format required by a document and added to it. The interactive content can also be an image, where the terminal can perform text recognition on the image and add the recognized text to the document. This text recognition process can be implemented using a text recognition model, which is not limited in this embodiment. The interactive content can also be a file, where the terminal can store the file at a target address and add a description of the file to the document, such as "The following references a file, file address: link address". Through these methods, users do not need to manually write chat content into the document, which is convenient, quick, reduces user operations, and improves editing efficiency.
该文档可以为已有文档,也可以为新创建的文档。也即是,该文档为该基于选择指令选择的文档或基于文档创建指令创建的文档。则上述交互内容显示过程可以包括两种情况:The document can be an existing document or a newly created document. That is, the document can be either the one selected based on the selection instruction or the one created based on the document creation instruction. Therefore, the above interactive content display process can include two scenarios:
情况一:终端在基于选择指令选择的文档中,显示转换后的交互内容。Scenario 1: The terminal displays the converted interactive content in the document selected based on the selection command.
情况二:终端响应于文档创建指令,创建文档,在该创建的文档中,显示转换后的交互内容。Scenario 2: The terminal responds to the document creation command, creates a document, and displays the converted interactive content in the created document.
当然,终端也可以在目标文档中添加文件,用户可以在该文件的相应位置上添加对该文件的描述信息,具体地,终端可以响应于对该目标文档中任一位置的文件插入指令,获取目标文件,将该目标文件的获取地址与该目标文档关联,在该目标文档中该位置上,显示该目标文件的文件信息。例如,如图22-24所示。如图22所示,该插入操作可以通过目标标识来触发,用户可以在文档中添加目标标识,则终端可以显示候选列表2201,该候选列表中可以包括可提示的用户,可插入的文件,还可以提供选择控件,例如“选择同事”2202和“选择文件”2203。如果用户对选择控件“选择文件”2203进行了触发操作,终端可以显示如图23所示的选择文件页面2301,用户可以在该选择文件页面2301中提供的文件中选择一个或多个插入该文档中,从而得到如图24所示的文件信息“@录音A”2401。Of course, the terminal can also add files to the target document. Users can add descriptive information about the file at the corresponding location. Specifically, in response to a file insertion command at any location in the target document, the terminal can retrieve the target file, associate the retrieved address of the target file with the target document, and display the file information of the target file at that location in the target document. For example, as shown in Figures 22-24. As shown in Figure 22, this insertion operation can be triggered by a target identifier. Users can add a target identifier to the document, and the terminal can display a candidate list 2201. This candidate list can include promptable users, insertable files, and selection controls, such as "Select Colleague" 2202 and "Select File" 2203. If the user triggers the "Select File" control 2203, the terminal can display a file selection page 2301 as shown in Figure 23. Users can select one or more files from the files provided on the file selection page 2301 to insert into the document, thus obtaining the file information "@Recording A" 2401 as shown in Figure 24.
下面提供一个具体示例,对上述分享过程的流程进行说明,可以参见图25,上述方法流程具体可以为:The following is a specific example illustrating the sharing process described above. See Figure 25 for details. The specific process flow is as follows:
上述分享过程中,以被选中内容为文本,分享内容为会话卡片的形式,该文档信息可以采用目标数据结构的形式存储为例,用户通过光标选择了一段文本后,前端通过对光标选中的文本进行分析,获取所选文本中所包含的数据结构(文本、已有评论内容、at对象、图片、文件等),并提取可用于发起聊天时转发的会话卡片描述内容,并生成一个引用转发的唯一身份标识(Identification,id),当用户选择转发到一个会话中时,通过与终端通信的jsapi(JavaScript Application Programming Interface,JavaScript应用程序接口)传递引用转发的描述内容和唯一id,并包含引用转发的会话id、发起人身份id,终端接收到事件调用到解析会话id,创建和直接打开会话,并通过传递的会话卡片信息发送一个引用转发的卡片,并将会话id、发起人身份id、打开卡片人的信息携带到卡片所引用的文档URL(Uniform Resource Locator,统一资源定位符)中,文档服务在接收到此类引用转发的访问后,通过对URL中的会话ID和文档标识(在此称为docId)的匹配,快速定位到所引用的位置并高亮信息,展示当前位置所有成员所发起讨论的内容,用户可以通过回复或发起新的讨论与协作者进行互动。In the above sharing process, taking the selected content as text and the shared content as a conversation card, the document information can be stored in the form of a target data structure. For example, after the user selects a piece of text with the cursor, the front-end analyzes the selected text to obtain the data structure contained within it (text, existing comments, at objects, images, files, etc.), extracts the conversation card description content that can be used to initiate a chat, and generates a unique identifier (id) for forwarding. When the user selects to forward to a conversation, this is done through the jsapi (JavaScript Application Programming Interface) communication with the terminal. The system transmits a description and unique ID of the reference forwarding, including the session ID and the initiator's identity ID. Upon receiving the event, the terminal parses the session ID, creates and directly opens a session, and sends a reference forwarding card using the transmitted session card information. The card also includes the session ID, the initiator's identity ID, and the information of the person opening the card in the document URL (Uniform Resource Locator) referenced by the card. After receiving such a reference forwarding access, the document service quickly locates the referenced position and highlights the information by matching the session ID and document identifier (referred to as docId) in the URL. It then displays the content of discussions initiated by all members at the current position, allowing users to interact with collaborators by replying or initiating new discussions.
对于添加文件的场景,在文档中可以通过添加一个文件(音频、软件、压缩文件、视频文件、doc格式的文档、excel表格、pdf格式的文档、外链文件)等等,添加到文档后可以通过有效的信息描述实现重要文件的存档,为社交应用的保留和协作提供了更完善的能力。In scenarios involving adding files, a file (audio, software, compressed file, video file, doc format document, excel spreadsheet, pdf format document, external link file, etc.) can be added to a document. After being added to the document, important files can be archived through effective information descriptions, providing more comprehensive capabilities for the preservation and collaboration of social applications.
文档中添加一个文件的流程是在用户引用一个文件时,自动触发文件的上传逻辑,上传成功后会返回一个内容分发网络(Content Delivery Network,CDN)的文件URL或文件标识(fileID),通过把CDN线上的地址和文件基本信息生成一个文档中独立的数据对象,此对象记录文件的基本信息并保存这个数据对象不再支持更改,编辑和删除都将做为一个整体来处理,同时会把文件的数据对象转换为文档协作中的changeset指令进行数据存储的协作通知操作。The process of adding a file to a document is as follows: when a user references a file, the file upload logic is automatically triggered. After a successful upload, a file URL or file ID from the Content Delivery Network (CDN) is returned. By combining the address on the CDN and the basic file information, an independent data object is generated in the document. This object records the basic information of the file and is saved. This data object is no longer supported for modification. Editing and deletion will be treated as a whole. At the same time, the file data object is converted into a changeset command in document collaboration for collaborative data storage notification operations.
在一种可能实现方式中,对于同时访问该目标文档的多个用户,还可以诶该多个用户提供通信功能,也即是,一个用户可以与另一个用户进行通信。具体地,用户可以进行操作查看正在访问该目标文档的多个用户,终端可以响应于对访问该目标文档的用户的显示指令,显示正在访问该目标文档的至少一个用户。如果用户想要与其中任一用户进行通信,可以选择该用户,则终端可以响应于对任一用户的选择指令,显示与该用户的会话窗。In one possible implementation, for multiple users simultaneously accessing the target document, communication functionality can also be provided to these users; that is, one user can communicate with another user. Specifically, a user can view multiple users accessing the target document, and the terminal can respond to a display command for users accessing the target document by displaying at least one user currently accessing the target document. If a user wants to communicate with any of these users, they can select that user, and the terminal can respond to a selection command for any user by displaying a session window with that user.
例如,如图25所示,终端可以在界面中显示用户查看控件2501,用户如果点击该用户查看控件2501,则终端可以显示正在访问该目标文档的多个用户,在此以采用用户列表2502的方式为例进行说明。如图26所示,用户如果点击用户A,如果用户与用户A存在历史会话,则可以显示该历史会话2601。当然,如果没有历史会话则可以创建并显示会话窗。For example, as shown in Figure 25, the terminal can display a user viewing control 2501 on the interface. If a user clicks on the user viewing control 2501, the terminal can display multiple users currently accessing the target document. Here, we will use a user list 2502 as an example. As shown in Figure 26, if a user clicks on user A, and if there is a history session between the user and user A, that history session 2601 can be displayed. Of course, if there is no history session, a session window can be created and displayed.
在另一种可能实现方式中,终端也可以响应于对多个用户的选择指令,创建该终端的用户与该多个用户组成的用户群组,显示该用户群组的会话窗。这样用户可以在访问目标文档的用户中选择多个用户进行群聊,以针对该目标文档进行讨论。上述通话方式方便快捷,文档编辑与用户会话可以同时进行,有效提高了文档编辑效率和文档内容分享效率。In another possible implementation, the terminal can also respond to a selection command for multiple users, creating a user group consisting of the terminal's users and those users, and displaying a session window for that user group. This allows users to select multiple users among those accessing the target document for group chat to discuss the document. This communication method is convenient and fast, allowing document editing and user conversations to occur simultaneously, effectively improving document editing efficiency and document content sharing efficiency.
其中,该会话窗的显示位置可以为一个固定位置,该固定位置可以由相关技术人员根据需求进行设置,也可以基于该选择指令对应的操作位置确定。终端可以获取该选择指令对应的操作位置,根据该操作位置,确定会话窗的显示位置。The display position of the session window can be a fixed position, which can be set by relevant technical personnel according to needs, or it can be determined based on the operation position corresponding to the selection command. The terminal can obtain the operation position corresponding to the selection command and determine the display position of the session window based on the operation position.
其中,终端可以响应于对任一用户的选择指令,建立与该任一用户的会话,在界面中显示与该用户的会话窗。如果存在与该用户的历史会话,可以直接显示该历史会话。The terminal can respond to a selection command for any user, establish a session with that user, and display the session window on the interface. If a historical session with that user exists, it can be displayed directly.
如果用户不满意该会话窗的显示位置,还可以对该会话窗的位置进行调整,终端可以响应于对该会话窗的位置调整指令,确定该会话窗调整后的位置,从而在该调整后的位置处显示该会话窗。例如,用户可以对会话窗进行拖动操作,终端根据该拖动操作的操作轨迹,显示该会话窗随该操作轨迹移动,直至拖动操作结束。If the user is not satisfied with the display position of the session window, they can adjust its position. The terminal can respond to the adjustment command, determine the adjusted position of the session window, and then display the session window at the adjusted position. For example, the user can drag the session window, and the terminal will display the session window following the dragging trajectory until the dragging operation ends.
例如,如图27所示,在线协作文档通过网页套接字(websocket)与后台代理服务器(proxy)之间建立的长链接数据通道,通过当前建立链接的所有用户提供给用户查看当前在线的人员列表,每个用户的信息都包含用户标识(在此标记为vid)、企业的唯一标识(corpid)、是否其他社交应用账号、企业名、姓名等信息,当用户点击在线人员时会获取其用户的信息并发起与终端的jsapi通信,发起一个会话的请求,通信的数据就包含当前用户的所有数据,终端接收到被调用的事件后,通过传递的用户信息发起一个聊天行为,建立一个新的单聊会话,如果已经有过沟通的人员则直接打开原有会话进行沟通,发起的聊天以一个窗口的形式存在,窗口定位的位置则根据前端在发起jsapi时传递过来的当前点击的位置,根据点击的位置计算需要展示窗口的位置,并允许用户手动拖拽窗口位置,避免影响文档的正常编辑和浏览。For example, as shown in Figure 27, online collaborative documents establish a long-lived data channel between a web socket and a backend proxy server. This channel provides users with a list of currently online users through all connected users. Each user's information includes a user identifier (marked as VID), a unique corporate identifier (corpid), whether they have other social media accounts, their company name, and their personal name. When a user clicks on an online user, the system retrieves that user's information and initiates a JSAPI communication with the terminal, requesting a session. The communication data includes all the current user's data. Upon receiving the invoked event, the terminal initiates a chat activity using the transmitted user information, establishing a new one-on-one chat session. If the user has already communicated with another user, the existing session is opened directly. The initiated chat exists as a window, and its position is calculated based on the current click position passed from the front end when initiating the JSAPI. Users are allowed to manually drag the window to avoid interfering with normal document editing and browsing.
下面提供一个具体示例,以应用于一个社交应用中为例,参见图28和图29,用户设备(终端)可以向公共代理服务器(commonproxy)发送请求,该公共服务器可以通过无连接纯超文本传输协议(HyperTextTransferProtocol,http)的逻辑,该http代理服务器可以向在线文档nj逻辑(webdocnjlogic)发送请求,再发送给文档协作者服务器(doccollabsvr,doc Collaborator server)从而将长连接push客户端请求发送给后台。后台查询把push发给文件推送(docpush),文档代理服务器和文档停留(doc presence)、文档推送,文档代理服务器与客户端保持长连接。可以与该流程可以包括七个步骤:The following is a concrete example, applied to a social application. Referring to Figures 28 and 29, the user device (terminal) can send a request to a common proxy server. This common proxy server can use the connectionless HyperText Transfer Protocol (HTTP) logic to send a request to the online document nj logic (webdocnjlogic), which then sends it to the document collaborator server (doccollabsvr), thus forwarding the long-connection push client request to the backend. The backend queries and sends the push to the document push (docpush), the document proxy server, and the document presence (docpresence). The document proxy server maintains a long connection with the client. This process can include seven steps:
1、在社交应用工作台中,打开在线协作应用,进入文档列表,当选择创建文档或创建文档时,终端都会使用目前社交应用登录用户身份,向后台换取对于协作文档的身份票据(docsid、docskey),用docsid标记当前用户的身份,docskey与docsid配套鉴权,用于标记对于文档的有效期和权限信息,docsid会带到文档的URL中,而docskey是敏感信息种到当前域名所在域的cookie中,然后启动网页视野(webview)打开文档的地址访问。其中,cookie为储存在用户本地终端上的数据。Webview是安卓系统中的控件,它的作用是用来展示一个web页面。1. In the social application's workbench, opening the online collaboration application and entering the document list, when selecting to create a document, the terminal uses the currently logged-in user's identity in the social application to exchange for identity tokens (docsid, docskey) for the collaborative document from the backend. The docsid identifies the current user, and the docskey, used in conjunction with the docsid for authentication, is used to mark the document's validity period and permission information. The docsid is included in the document's URL, while the docskey, containing sensitive information, is stored in a cookie in the domain of the current domain. Then, a webview is launched to access the document's address. The cookie is data stored on the user's local terminal. Webview is a control in the Android system used to display a web page.
2、在线协作的节点JS服务器收到文档的请求后,首先从url和cookie中获取docsid、docskey、docid(文档ID),用来校验当前用户登录态是否有效、是否有查看文档的权限等鉴权逻辑。2. After receiving a document request, the JS server of the online collaboration node first obtains docsid, docskey, and docid (document ID) from the URL and cookie. These are used to verify the current user's login status and whether they have permission to view the document, among other authentication logic.
3、如果身份校验成功节点服务器会向底层后台存储服务器拉取文档相关数据(包括当前协作者信息、文档内容、权限配置等信息),返回给浏览器进行渲染展示。3. If the identity verification is successful, the node server will pull the document-related data (including current collaborator information, document content, permission configuration, etc.) from the underlying backend storage server and return it to the browser for rendering and display.
4、当用户打开的浏览器(Webview)打开了文档后,终端中的身份鉴权模块通过并同时会发起长链接服务(WebSocket)与后台建立长链接,用于协作过程中文档的内容更新、权限的更新通知等数据的通信。4. When the user opens the document in the browser (Webview), the authentication module in the terminal will establish a long connection with the backend through a long connection service (WebSocket) to communicate data such as document content updates and permission update notifications during the collaboration process.
5、用户操作文档的过程中,每在编辑器中的操作行为都会触发长链接服务的消息通知,实时更新文档的数据到后台存储,同时后台也会实时通知协作过程中他人对于文档的变更或权限通知逻辑。5. During the process of users operating the document, every operation in the editor will trigger a message notification from the long link service, updating the document data to the backend storage in real time. At the same time, the backend will also notify others in real time of changes to the document or permission notifications during the collaboration process.
6、当用户打开的文档接收到服务器推送的内容变更后,文档的内容都是以指令集合的形式存在,如果出现不同人对于同一位置文档有操作冲突后,会触发指令集合的合并算法(例如,操作转化(Operation Transform,OT)算法),将合并冲突后的文档内容渲染给用户,当出现无法合并的冲突时,终端可以提示用户版本冲突,需要放弃一部分内容或手动合并有冲突的内容。关于冲突处理,在此不多做赘述。6. When a user opens a document and receives content changes pushed from the server, the document's content exists in the form of a set of instructions. If different users have conflicting operations on the same part of the document, an instruction set merging algorithm (e.g., Operation Transform (OT) algorithm) will be triggered. The merged document content will then be rendered to the user. When an unmergeable conflict occurs, the terminal can prompt the user about a version conflict, requiring them to discard some content or manually merge the conflicting content. Conflict handling will not be elaborated upon here.
7、用户在打开协作文档过程中,可以随时将文档转发给他人邀请同时协作查看,当收到转发卡片或通知的用户可以直接进入文档中,可以看到当前文档在线的协作者列表,文档左侧每行也会展示文档每一行编辑者的信息,当文档只有一人编辑时则不会显示。7. When opening a collaborative document, users can forward the document to others at any time for simultaneous collaborative viewing. Users who receive the forwarding card or notification can directly enter the document and see the list of online collaborators for the current document. The information of the editors for each line of the document will also be displayed on the left side of the document. This information will not be displayed if only one person is editing the document.
对应任一用户,该用户需要具有对文档的编辑权限,以进行编辑操作。任一访问该目标文档的用户的权限基于该用户首次访问该目标文档的方式确定。针对一个文档对应的多个用户的权限,对用户进行分类:For any given user, that user needs editing permissions to perform editing operations on the document. The permissions for any user accessing the target document are determined based on how that user first accesses the target document. For the permissions of multiple users corresponding to a single document, the users are categorized as follows:
拥有者有最高权限,拥有者为目标文档的创建者。如果用户的标识信息(vid)在协作者列表,给予相应权限。Vid属于协作组,给予所属协作组权限(属于多个则按最高权限计)。否则给文档的总体权限。终端可以针对该规则对用户权限进行检查,以确保用户操作是否有效。下面提供几种权限设置规则:The owner has the highest privileges and is the creator of the target document. If the user's identifier (vid) is in the collaborator list, grant the corresponding permissions. If the vid belongs to a collaboration group, grant permissions to that group (if belonging to multiple groups, the highest privilege applies). Otherwise, grant overall permissions to the document. The terminal can check user permissions based on this rule to ensure that user actions are valid. Several permission setting rules are provided below:
1、协作者的增加1. Increase in collaborators
拥有者添加的协作者,按拥有者设置的权限;协作者或协作组成员拉取的,跟随其权限。通过链接进来的,跟随文档权限。Collaborators added by the owner will have permissions set by the owner; those pulled by collaborators or group members will follow their permissions. Those accessed via links will follow the document's permissions.
被拥有者删除的协作者,只能被拉进来,不能点击链接进入。Collaborators deleted by the owner can only be added, not accessed via a link.
2、协作者的删除2. Deletion of collaborators
a.通过指令“删除协作者(DeleteCollaborators”)删除,只有拥有者可以操作。实际上并非从存储中删掉,只是标志为无权限。因此,除非拥有者和协作者主动添加,否则无法再次成为协作者。删除后,协作者文档列表中该文档会消失,并向被删除者下发push指令。a. Collaborators can be deleted using the "DeleteCollaborators" command. Only the owner can perform this operation. It doesn't actually remove the document from storage; it simply marks it as unauthorized. Therefore, unless the owner and collaborators actively add it back, it cannot become a collaborator again. After deletion, the document will disappear from the collaborator document list, and a push command will be sent to the deleted collaborator.
b.协作者主动退出协作,从存储中删除,可以通过连接进入再次成为协作者。删除后,会向文档拥有者下发push指令。b. If a collaborator voluntarily leaves the collaboration and is deleted from storage, they can rejoin as a collaborator by connecting. After deletion, a push command will be sent to the document owner.
3、协作者的修改3. Modifications by collaborators
通过指令“协作者修改(ModifyCollaborators)”修改,仅拥有者可以操作。目前不下发push指令。Modifications are made via the "ModifyCollaborators" command, and only the owner can perform these actions. Currently, push commands are not being issued.
4、协作者的获取4. Acquiring collaborators
通过指令“获取协作者(GetCollaborators)”获取,仅拥有者和协作者可以获取。兼容旧的编辑者,编辑者统一权限为读写,该旧的编辑者为之前具有编辑权限,后续被拥有者删除的协作者。Collaborators are obtained via the command "GetCollaborators," and only the owner and collaborators can access them. This is compatible with older editors, whose unified permissions are read and write. These older editors are collaborators that previously had editing permissions but were subsequently deleted by the owner.
而对于权限的检查,如果是拥有者,则返回最高权限;如果是协作者,返回协作者权限(包括无权限的情况);如果是协作组成员,返回协作组权限,如果有多个协作组,则返回最高的权限信息;如果以上都不是,则返回文档总体权限。For permission checks, if the owner is the document owner, the highest permissions are returned; if the collaborator is the collaborator, the collaborator's permissions are returned (including cases where the owner has no permissions); if the member of a collaboration group is the collaboration group's permissions are returned, and if there are multiple collaboration groups, the highest permission information is returned; if none of the above apply, the overall document permissions are returned.
本申请实施例通过在目标文档中选中内容,可以根据该选中内容生成分享内容,从而将分享内容分享给其他用户或用户群组,该分享过程可以由用户针对文档中的选中内容进行分享,分享内容可以自由在文档中选择,与文档内容的关联性好,内容具有针对性,用户可以清晰获知分享的是文档中的哪部分内容,分享效果好。且可以直接向用户分享,或用户向用户群组分享,相较于相关技术中无法通知到其他用户,上述分享方式灵活多变,有效提高了分享效率和分享效果。This application embodiment allows for the selection of content within a target document, generating shareable content based on that selection. This shared content can then be shared with other users or user groups. The sharing process allows users to freely select content from within the document, ensuring good relevance and targeted content. Users can clearly identify which part of the document is being shared, resulting in effective sharing. Furthermore, sharing can be done directly to users or by users sharing with user groups. Compared to related technologies where other users cannot be notified, this sharing method is flexible and versatile, effectively improving sharing efficiency and effectiveness.
上述所有可选技术方案,可以采用任意结合形成本申请的可选实施例,在此不再一一赘述。All of the above-mentioned optional technical solutions can be combined in any way to form the optional embodiments of this application, and will not be described in detail here.
图30是本申请实施例提供的一种文档内容分享装置的结构示意图,参见图30,该装置包括:Figure 30 is a schematic diagram of a document content sharing device provided in an embodiment of this application. Referring to Figure 30, the device includes:
获取模块3001,用于响应于对目标文档中内容的选择指令,获取该目标文档中被选中内容;The acquisition module 3001 is used to acquire the selected content in the target document in response to a selection instruction on the content in the target document;
生成模块3002,用于基于该被选中内容,生成分享内容;The generation module 3002 is used to generate shareable content based on the selected content;
发送模块3003,用于将该分享内容发送至目标用户或目标用户群组。The sending module 3003 is used to send the shared content to the target user or target user group.
在一种可能实现方式中,该分享内容携带有该被选中内容在目标文档中的位置与目标文档的标识信息;In one possible implementation, the shared content carries the location of the selected content within the target document and the identification information of the target document;
该生成模块3002,用于:This generation module 3002 is used for:
获取该被选中内容在该目标文档中的位置;Get the position of the selected content within the target document;
将该位置、该目标文档的标识信息以及该分享内容关联。Associate the location, the identification information of the target document, and the shared content.
在一种可能实现方式中,该目标用户群组基于目标分享控件的状态确定,该目标分享控件用于指示将被选中内容分享至目标文档对应的用户群组;In one possible implementation, the target user group is determined based on the state of the target sharing control, which is used to indicate that the selected content will be shared to the user group corresponding to the target document.
该发送模块3003,用于:The transmitting module 3003 is used for:
获取目标分享控件的状态;Get the state of the target sharing control;
响应于该目标分享控件处于被选中状态,将该分享内容发送至该文档对应的用户群组。In response to the target sharing control being selected, the shared content is sent to the user group corresponding to the document.
在一种可能实现方式中,该目标用户或目标用户群组基于对候选用户或候选用户群组的选择指令确定;In one possible implementation, the target user or target user group is determined based on a selection instruction for candidate users or candidate user groups;
该发送模块3003,用于:The transmitting module 3003 is used for:
响应于对该分享用户选择控件的触发指令,显示候选用户或候选用户群组;In response to a trigger command on the share user selection control, display candidate users or candidate user groups;
响应于对任一候选用户或任一候选用户群组的选择指令,将该分享内容发送至该候选用户或候选用户群组。In response to a selection instruction for any candidate user or any candidate user group, the shared content is sent to that candidate user or candidate user group.
在一种可能实现方式中,该发送模块3003,用于执行下述任一项:In one possible implementation, the sending module 3003 is configured to perform any of the following:
响应于该被选中内容包括至少一个目标标识和至少一个用户标识,向该至少一个用户标识对应的目标用户发送该分享内容;In response to the selected content including at least one target identifier and at least one user identifier, the shared content is sent to the target user corresponding to the at least one user identifier;
响应于该被选中内容包括至少一个目标标识和至少一个用户标识,向该至少一个目标用户所在的用户群组发送该分享内容、该至少一个目标标识和该至少一个用户标识。In response to the selected content including at least one target identifier and at least one user identifier, the shared content, the at least one target identifier, and the at least one user identifier are sent to the user group to which the at least one target user belongs.
在一种可能实现方式中,该基于对候选用户或候选用户群组的选择指令包括对目标标识和用户标识的添加指令;In one possible implementation, the selection instruction based on candidate users or candidate user groups includes instructions for adding target identifiers and user identifiers;
该发送模块3003,用于执行下述任一项:The sending module 3003 is configured to perform any of the following:
响应于在该被选中内容的上下文中,对至少一个目标标识和至少一个用户标识的添加指令,向该至少一个用户标识对应的目标用户发送该分享内容;In response to an instruction to add at least one target identifier and at least one user identifier in the context of the selected content, the shared content is sent to the target user corresponding to the at least one user identifier;
响应于在该被选中内容的上下文中,对至少一个目标标识和至少一个用户标识的添加指令,向该至少一个目标用户所在的用户群组发送该分享内容、该至少一个目标标识和该至少一个用户标识。In response to an instruction to add at least one target identifier and at least one user identifier in the context of the selected content, the shared content, the at least one target identifier, and the at least one user identifier are sent to the user group to which the at least one target user belongs.
在一种可能实现方式中,该发送模块3003,还用于执行下述任一项:In one possible implementation, the sending module 3003 is further configured to perform any of the following:
响应于对该目标文档中任一位置处对目标标识和用户标识的添加指令,向该用户标识对应的目标用户发送该目标文档的该位置;In response to an instruction to add a target identifier and a user identifier at any location in the target document, the location of the target document is sent to the target user corresponding to the user identifier;
响应于对该目标文档中任一位置处对目标标识和用户标识的添加指令,向该目标文档对应的用户群组发送该目标文档的该位置,以及该用户标识。In response to an instruction to add a target identifier and a user identifier at any location in the target document, the location of the target document and the user identifier are sent to the user group corresponding to the target document.
在一种可能实现方式中,该装置还包括:In one possible implementation, the device further includes:
接收模块,用于接收任一用户发送的目标文档中的任一位置;The receiving module is used to receive any location in a target document sent by any user;
该获取模块3001,还用于响应于对该位置的查看指令,基于该任一位置,获取该目标文档中该位置的上下文内容;The acquisition module 3001 is also used to, in response to a viewing instruction for the location, acquire the contextual content of the location in the target document based on the location;
第一显示模块,用于显示该上下文内容。The first display module is used to display the context content.
在一种可能实现方式中,该装置还包括第二显示模块,第二显示模块用于:In one possible implementation, the device further includes a second display module, which is used for:
响应于对该被选中内容的反馈指令,在该被选中内容的目标位置上显示对该选中内容的反馈信息;In response to a feedback instruction on the selected content, display feedback information on the selected content at the target location of the selected content;
该生成模块3002,用于基于该被选中内容和该反馈信息,生成该分享内容。The generation module 3002 is used to generate the shareable content based on the selected content and the feedback information.
在一种可能实现方式中,该第二显示模块用于:In one possible implementation, the second display module is used for:
响应于对该被选中内容的反馈指令,获取输入框中的信息作为对该选中内容的反馈信息;In response to a feedback instruction on the selected content, retrieve the information from the input box as feedback information for the selected content;
确定该被选中内容的目标位置;Determine the target location of the selected content;
在该目标位置上显示该反馈信息。The feedback message will be displayed at the target location.
在一种可能实现方式中,该生成模块3002用于:In one possible implementation, the generation module 3002 is used for:
获取该被选中内容的类型;Get the type of the selected content;
根据该类型,获取该类型对应的描述信息;Based on this type, obtain the corresponding description information;
基于该被选中内容、该反馈信息和该描述信息,生成分享内容。Based on the selected content, the feedback information, and the description information, generate shareable content.
在一种可能实现方式中,该装置还包括:In one possible implementation, the device further includes:
接收模块,用于接收该目标用户群组中其他用户发送的分享内容;The receiving module is used to receive shared content sent by other users in the target user group;
第三显示模块,用于在该目标用户群组中显示该分享内容;The third display module is used to display the shared content in the target user group;
该第三显示模块,还用于响应于对该分享内容的查看指令,将界面跳转至该分享内容对应的目标文档的显示界面;The third display module is also used to respond to a viewing instruction for the shared content by jumping the interface to the display interface of the target document corresponding to the shared content;
该第三显示模块,还用于在该显示界面中,突出显示该分享内容中的被选中内容。The third display module is also used to highlight the selected content in the shared content within the display interface.
在一种可能实现方式中,该第三显示模块,还用于:In one possible implementation, the third display module is also used for:
获取该分享内容中被选中内容在目标文档中的位置;Get the position of the selected content in the shared content within the target document;
突出显示该位置上的内容。Highlight the content at this location.
在一种可能实现方式中,该获取模块3001还用于响应于对与该目标用户或在该目标用户群组中的交互内容的转换指令,获取该交互内容;In one possible implementation, the acquisition module 3001 is further configured to acquire the interaction content in response to a conversion instruction for the interaction content with the target user or in the target user group;
转换模块,用于按照该交互内容的类型对应的格式转换方式,将该交互内容的格式转换为该类型对应格式;The conversion module is used to convert the format of the interactive content to the format corresponding to the type of the interactive content according to the format conversion method.
第四显示模块,用于在文档中,显示转换后的交互内容,该文档为该基于选择指令选择的文档或基于文档创建指令创建的文档。The fourth display module is used to display the converted interactive content in the document, which is either the document selected based on the selection instruction or the document created based on the document creation instruction.
在一种可能实现方式中,该获取模块3001还用于响应于对该目标文档中任一位置的文件插入指令,获取目标文件;In one possible implementation, the acquisition module 3001 is further configured to acquire the target file in response to a file insertion instruction at any position in the target document;
关联模块,用于将该目标文件的获取地址与该目标文档关联;The association module is used to associate the acquisition address of the target file with the target document;
第五显示模块,用于在该目标文档中该位置上,显示该目标文件的文件信息。The fifth display module is used to display the file information of the target file at this location in the target document.
在一种可能实现方式中,该装置还包括:In one possible implementation, the device further includes:
第六显示模块,用于响应于对访问该目标文档的用户的显示指令,显示正在访问该目标文档的至少一个用户;The sixth display module is used to display at least one user who is accessing the target document in response to a display instruction from a user accessing the target document;
该第六显示模块,还用于响应于对任一用户的选择指令,显示与该用户的会话窗。The sixth display module is also used to display a session window with any user in response to a selection command from that user.
在一种可能实现方式中,该分享内容携带有该分享内容中被选中内容在目标文档中的位置与目标文档的标识信息;In one possible implementation, the shared content carries the position of the selected content in the target document and the identification information of the target document;
该装置还包括第七显示模块,该第七显示模块用于:The device also includes a seventh display module, which is used for:
根据该分享内容携带的目标文档的标识信息,确定该分享内容对应的目标文档;Based on the identification information of the target document carried by the shared content, determine the target document corresponding to the shared content;
将界面跳转至该分享内容对应的目标文档的显示界面;The interface will redirect to the display screen of the target document corresponding to the shared content;
该第七显示模块用于:The seventh display module is used for:
根据该被选中内容在目标文档中的位置,突出显示该位置上的内容;Based on the location of the selected content in the target document, highlight the content at that location;
在该位置的目标位置显示该反馈信息。The feedback message will be displayed at the target location.
在一种可能实现方式中,任一访问该目标文档的用户的权限基于该用户首次访问该目标文档的方式确定。In one possible implementation, the permissions of any user accessing the target document are determined based on how the user first accesses the target document.
在一种可能实现方式中,该装置还包括:In one possible implementation, the device further includes:
第八显示模块,用于响应于对目标文档中内容的选择指令,对该目标文档中被选中内容进行突出显示。The eighth display module is used to highlight the selected content in the target document in response to a selection instruction on the content in the target document.
本申请实施例提供的装置,通过在目标文档中选中内容,可以根据该选中内容生成分享内容,从而将分享内容分享给其他用户或用户群组,该分享过程可以由用户针对文档中的选中内容进行分享,分享内容可以自由在文档中选择,与文档内容的关联性好,内容具有针对性,用户可以清晰获知分享的是文档中的哪部分内容,分享效果好。且可以直接向用户分享,或用户向用户群组分享,相较于相关技术中无法通知到其他用户,上述分享方式灵活多变,有效提高了分享效率和分享效果。The apparatus provided in this application allows users to select content within a target document and generate shareable content based on that selection. This shareable content can then be shared with other users or user groups. The sharing process allows users to freely select content from within the document, ensuring good relevance to the document's content and targeted sharing. Users can clearly identify which part of the document is being shared, resulting in effective sharing. Furthermore, it allows for direct sharing to users or sharing to user groups. Compared to related technologies where other users cannot be notified, this sharing method is flexible and versatile, effectively improving sharing efficiency and effectiveness.
需要说明的是:上述实施例提供的文档内容分享装置在进行文档内容分享时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将终端的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的文档内容分享装置与文档内容分享方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that the document content sharing device provided in the above embodiments is only illustrated by the division of the above functional modules when sharing document content. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the terminal can be divided into different functional modules to complete all or part of the functions described above. In addition, the document content sharing device and the document content sharing method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.
图31是本申请实施例提供的一种终端的结构示意图。该终端3100可以是:智能手机、平板电脑、MP3(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)播放器、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器、笔记本电脑或台式电脑。终端3100还可能被称为用户设备、便携式终端、膝上型终端、台式终端等其他名称。Figure 31 is a schematic diagram of a terminal provided in an embodiment of this application. The terminal 3100 can be: a smartphone, a tablet computer, an MP3 (Moving Picture Experts Group Audio Layer III) player, an MP4 (Moving Picture Experts Group Audio Layer IV) player, a laptop computer, or a desktop computer. The terminal 3100 may also be referred to as a user device, a portable terminal, a laptop terminal, a desktop terminal, or other names.
通常,终端3100包括有:一个或多个处理器3101和一个或多个存储器3102。Typically, terminal 3100 includes one or more processors 3101 and one or more memories 3102.
处理器3101可以包括一个或多个处理核心,比如4核心处理器、8核心处理器等。处理器3101可以采用DSP(Digital Signal Processing,数字信号处理)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)、PLA(Programmable Logic Array,可编程逻辑阵列)中的至少一种硬件形式来实现。处理器3101也可以包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称CPU(Central ProcessingUnit,中央处理器);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器3101可以在集成有GPU(Graphics Processing Unit,图像处理器),GPU用于负责显示屏所需要显示的内容的渲染和绘制。一些实施例中,处理器3101还可以包括AI(Artificial Intelligence,人工智能)处理器,该AI处理器用于处理有关机器学习的计算操作。Processor 3101 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 3101 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). Processor 3101 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 3101 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, processor 3101 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.
存储器3102可以包括一个或多个计算机可读存储介质,该计算机可读存储介质可以是非暂态的。存储器3102还可包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。在一些实施例中,存储器3102中的非暂态的计算机可读存储介质用于存储至少一个程序代码,该至少一个程序代码用于被处理器3101所执行以实现本申请中方法实施例提供的文档内容分享方法。The memory 3102 may include one or more computer-readable storage media, which may be non-transitory. The memory 3102 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 3102 are used to store at least one program code, which is executed by the processor 3101 to implement the document content sharing method provided in the method embodiments of this application.
在一些实施例中,终端3100还可选包括有:外围设备接口3103和至少一个外围设备。处理器3101、存储器3102和外围设备接口3103之间可以通过总线或信号线相连。各个外围设备可以通过总线、信号线或电路板与外围设备接口3103相连。具体地,外围设备包括:射频电路3104、显示屏3105、摄像头组件3106、音频电路3107和电源3109中的至少一种。In some embodiments, the terminal 3100 may also optionally include a peripheral device interface 3103 and at least one peripheral device. The processor 3101, memory 3102, and peripheral device interface 3103 can be connected via a bus or signal line. Each peripheral device can be connected to the peripheral device interface 3103 via a bus, signal line, or circuit board. Specifically, the peripheral device includes at least one of the following: a radio frequency circuit 3104, a display screen 3105, a camera assembly 3106, an audio circuit 3107, and a power supply 3109.
外围设备接口3103可被用于将I/O(Input/Output,输入/输出)相关的至少一个外围设备连接到处理器3101和存储器3102。在一些实施例中,处理器3101、存储器3102和外围设备接口3103被集成在同一芯片或电路板上;在一些其他实施例中,处理器3101、存储器3102和外围设备接口3103中的任意一个或两个可以在单独的芯片或电路板上实现,本实施例对此不加以限定。Peripheral device interface 3103 can be used to connect at least one I/O (Input/Output) related peripheral device to processor 3101 and memory 3102. In some embodiments, processor 3101, memory 3102 and peripheral device interface 3103 are integrated on the same chip or circuit board; in some other embodiments, any one or two of processor 3101, memory 3102 and peripheral device interface 3103 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.
射频电路3104用于接收和发射RF(Radio Frequency,射频)信号,也称电磁信号。射频电路3104通过电磁信号与通信网络以及其他通信设备进行通信。射频电路3104将电信号转换为电磁信号进行发送,或者,将接收到的电磁信号转换为电信号。可选地,射频电路3104包括:天线系统、RF收发器、一个或多个放大器、调谐器、振荡器、数字信号处理器、编解码芯片组、用户身份模块卡等等。射频电路3104可以通过至少一种无线通信协议来与其它终端进行通信。该无线通信协议包括但不限于:城域网、各代移动通信网络(2G、3G、4G及5G)、无线局域网和/或WiFi(Wireless Fidelity,无线保真)网络。在一些实施例中,射频电路3104还可以包括NFC(Near Field Communication,近距离无线通信)有关的电路,本申请对此不加以限定。The radio frequency (RF) circuit 3104 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The RF circuit 3104 communicates with communication networks and other communication devices via electromagnetic signals. The RF circuit 3104 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals back into electrical signals. Optionally, the RF circuit 3104 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The RF circuit 3104 can communicate with other terminals through at least one wireless communication protocol. This wireless communication protocol includes, but is not limited to: metropolitan area networks (MANs), various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks (WLANs), and/or WiFi (Wireless Fidelity) networks. In some embodiments, the RF circuit 3104 may also include circuitry related to NFC (Near Field Communication), which is not limited in this application.
显示屏3105用于显示UI(User Interface,用户界面)。该UI可以包括图形、文本、图标、视频及其它们的任意组合。当显示屏3105是触摸显示屏时,显示屏3105还具有采集在显示屏3105的表面或表面上方的触摸信号的能力。该触摸信号可以作为控制信号输入至处理器3101进行处理。此时,显示屏3105还可以用于提供虚拟按钮和/或虚拟键盘,也称软按钮和/或软键盘。在一些实施例中,显示屏3105可以为一个,设置终端3100的前面板;在另一些实施例中,显示屏3105可以为至少两个,分别设置在终端3100的不同表面或呈折叠设计;在再一些实施例中,显示屏3105可以是柔性显示屏,设置在终端3100的弯曲表面上或折叠面上。甚至,显示屏3105还可以设置成非矩形的不规则图形,也即异形屏。显示屏3105可以采用LCD(Liquid Crystal Display,液晶显示屏)、OLED(Organic Light-Emitting Diode,有机发光二极管)等材质制备。Display screen 3105 is used to display a UI (User Interface). This UI may include graphics, text, icons, videos, and any combination thereof. When display screen 3105 is a touch display screen, it also has the ability to collect touch signals on or above its surface. These touch signals can be input as control signals to processor 3101 for processing. In this case, display screen 3105 can also be used to provide virtual buttons and/or a virtual keyboard, also known as soft buttons and/or a soft keyboard. In some embodiments, there may be one display screen 3105, which serves as the front panel of terminal 3100; in other embodiments, there may be at least two display screens 3105, respectively disposed on different surfaces of terminal 3100 or in a folded design; in still other embodiments, display screen 3105 may be a flexible display screen, disposed on a curved or folded surface of terminal 3100. Furthermore, display screen 3105 may also be configured as a non-rectangular, irregular shape, i.e., a non-rectangular screen. The display screen 3105 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
摄像头组件3106用于采集图像或视频。可选地,摄像头组件3106包括前置摄像头和后置摄像头。通常,前置摄像头设置在终端的前面板,后置摄像头设置在终端的背面。在一些实施例中,后置摄像头为至少两个,分别为主摄像头、景深摄像头、广角摄像头、长焦摄像头中的任意一种,以实现主摄像头和景深摄像头融合实现背景虚化功能、主摄像头和广角摄像头融合实现全景拍摄以及VR(Virtual Reality,虚拟现实)拍摄功能或者其它融合拍摄功能。在一些实施例中,摄像头组件3106还可以包括闪光灯。闪光灯可以是单色温闪光灯,也可以是双色温闪光灯。双色温闪光灯是指暖光闪光灯和冷光闪光灯的组合,可以用于不同色温下的光线补偿。The camera assembly 3106 is used to acquire images or videos. Optionally, the camera assembly 3106 includes a front-facing camera and a rear-facing camera. Typically, the front-facing camera is located on the front panel of the terminal, and the rear-facing camera is located on the back of the terminal. In some embodiments, there are at least two rear-facing cameras, which are any one of a main camera, a depth-sensing camera, a wide-angle camera, and a telephoto camera, to achieve background blurring by fusion of the main camera and the depth-sensing camera, panoramic shooting by fusion of the main camera and the wide-angle camera, VR (Virtual Reality) shooting, or other fusion shooting functions. In some embodiments, the camera assembly 3106 may also include a flash. The flash can be a single-color temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm-light flash and a cool-light flash, which can be used for light compensation at different color temperatures.
音频电路3107可以包括麦克风和扬声器。麦克风用于采集用户及环境的声波,并将声波转换为电信号输入至处理器3101进行处理,或者输入至射频电路3104以实现语音通信。出于立体声采集或降噪的目的,麦克风可以为多个,分别设置在终端3100的不同部位。麦克风还可以是阵列麦克风或全向采集型麦克风。扬声器则用于将来自处理器3101或射频电路3104的电信号转换为声波。扬声器可以是传统的薄膜扬声器,也可以是压电陶瓷扬声器。当扬声器是压电陶瓷扬声器时,不仅可以将电信号转换为人类可听见的声波,也可以将电信号转换为人类听不见的声波以进行测距等用途。在一些实施例中,音频电路3107还可以包括耳机插孔。The audio circuit 3107 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, converting them into electrical signals that are input to the processor 3101 for processing, or to the radio frequency circuit 3104 for voice communication. For stereo sound acquisition or noise reduction purposes, multiple microphones may be used, each positioned at a different location on the terminal 3100. The microphone may also be an array microphone or an omnidirectional microphone. The speaker is used to convert electrical signals from the processor 3101 or the radio frequency circuit 3104 into sound waves. The speaker may be a conventional diaphragm speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can convert electrical signals not only into audible sound waves but also into inaudible sound waves for purposes such as distance measurement. In some embodiments, the audio circuit 3107 may also include a headphone jack.
电源3109用于为终端3100中的各个组件进行供电。电源3109可以是交流电、直流电、一次性电池或可充电电池。当电源3109包括可充电电池时,该可充电电池可以支持有线充电或无线充电。该可充电电池还可以用于支持快充技术。Power supply 3109 is used to power the various components in terminal 3100. Power supply 3109 can be AC power, DC power, a disposable battery, or a rechargeable battery. When power supply 3109 includes a rechargeable battery, the rechargeable battery can support wired or wireless charging. The rechargeable battery can also be used to support fast charging technology.
在一些实施例中,终端3100还包括有一个或多个传感器3110。该一个或多个传感器3110包括但不限于:加速度传感器3111、陀螺仪传感器3112、压力传感器3113、光学传感器3115以及接近传感器3116。In some embodiments, the terminal 3100 further includes one or more sensors 3110. The one or more sensors 3110 include, but are not limited to: an acceleration sensor 3111, a gyroscope sensor 3112, a pressure sensor 3113, an optical sensor 3115, and a proximity sensor 3116.
加速度传感器3111可以检测以终端3100建立的坐标系的三个坐标轴上的加速度大小。比如,加速度传感器3111可以用于检测重力加速度在三个坐标轴上的分量。处理器3101可以根据加速度传感器3111采集的重力加速度信号,控制显示屏3105以横向视图或纵向视图进行用户界面的显示。加速度传感器3111还可以用于游戏或者用户的运动数据的采集。Accelerometer 3111 can detect the magnitude of acceleration along the three coordinate axes of a coordinate system established by terminal 3100. For example, accelerometer 3111 can be used to detect the components of gravitational acceleration along the three coordinate axes. Processor 3101 can control display screen 3105 to display the user interface in either a landscape or portrait view based on the gravitational acceleration signal acquired by accelerometer 3111. Accelerometer 3111 can also be used for games or for acquiring user motion data.
陀螺仪传感器3112可以检测终端3100的机体方向及转动角度,陀螺仪传感器3112可以与加速度传感器3111协同采集用户对终端3100的3D动作。处理器3101根据陀螺仪传感器3112采集的数据,可以实现如下功能:动作感应(比如根据用户的倾斜操作来改变UI)、拍摄时的图像稳定、游戏控制以及惯性导航。The gyroscope sensor 3112 can detect the orientation and rotation angle of the terminal 3100. The gyroscope sensor 3112 can work in conjunction with the accelerometer sensor 3111 to collect the user's 3D movements on the terminal 3100. Based on the data collected by the gyroscope sensor 3112, the processor 3101 can perform the following functions: motion sensing (e.g., changing the UI based on the user's tilt), image stabilization during shooting, game control, and inertial navigation.
压力传感器3113可以设置在终端3100的侧边框和/或显示屏3105的下层。当压力传感器3113设置在终端3100的侧边框时,可以检测用户对终端3100的握持信号,由处理器3101根据压力传感器3113采集的握持信号进行左右手识别或快捷操作。当压力传感器3113设置在显示屏3105的下层时,由处理器3101根据用户对显示屏3105的压力操作,实现对UI界面上的可操作性控件进行控制。可操作性控件包括按钮控件、滚动条控件、图标控件、菜单控件中的至少一种。The pressure sensor 3113 can be disposed on the side bezel of the terminal 3100 and/or the lower layer of the display screen 3105. When the pressure sensor 3113 is disposed on the side bezel of the terminal 3100, it can detect the user's grip signal on the terminal 3100, and the processor 3101 can perform left/right hand recognition or quick operation based on the grip signal collected by the pressure sensor 3113. When the pressure sensor 3113 is disposed on the lower layer of the display screen 3105, the processor 3101 can control the operable controls on the UI interface based on the user's pressure operation on the display screen 3105. The operable controls include at least one of button controls, scroll bar controls, icon controls, and menu controls.
光学传感器3115用于采集环境光强度。在一个实施例中,处理器3101可以根据光学传感器3115采集的环境光强度,控制显示屏3105的显示亮度。具体地,当环境光强度较高时,调高显示屏3105的显示亮度;当环境光强度较低时,调低显示屏3105的显示亮度。在另一个实施例中,处理器3101还可以根据光学传感器3115采集的环境光强度,动态调整摄像头组件3106的拍摄参数。An optical sensor 3115 is used to collect ambient light intensity. In one embodiment, the processor 3101 can control the display brightness of the display screen 3105 based on the ambient light intensity collected by the optical sensor 3115. Specifically, when the ambient light intensity is high, the display brightness of the display screen 3105 is increased; when the ambient light intensity is low, the display brightness of the display screen 3105 is decreased. In another embodiment, the processor 3101 can also dynamically adjust the shooting parameters of the camera assembly 3106 based on the ambient light intensity collected by the optical sensor 3115.
接近传感器3116,也称距离传感器,通常设置在终端3100的前面板。接近传感器3116用于采集用户与终端3100的正面之间的距离。在一个实施例中,当接近传感器3116检测到用户与终端3100的正面之间的距离逐渐变小时,由处理器3101控制显示屏3105从亮屏状态切换为息屏状态;当接近传感器3116检测到用户与终端3100的正面之间的距离逐渐变大时,由处理器3101控制显示屏3105从息屏状态切换为亮屏状态。The proximity sensor 3116, also known as a distance sensor, is typically located on the front panel of the terminal 3100. The proximity sensor 3116 is used to detect the distance between the user and the front of the terminal 3100. In one embodiment, when the proximity sensor 3116 detects that the distance between the user and the front of the terminal 3100 is gradually decreasing, the processor 3101 controls the display screen 3105 to switch from a screen-on state to a screen-off state; when the proximity sensor 3116 detects that the distance between the user and the front of the terminal 3100 is gradually increasing, the processor 3101 controls the display screen 3105 to switch from a screen-off state to a screen-on state.
本领域技术人员可以理解,图31中示出的结构并不构成对终端3100的限定,可以包括比图示更多或更少的组件,或者组合某些组件,或者采用不同的组件布置。Those skilled in the art will understand that the structure shown in FIG31 does not constitute a limitation on the terminal 3100, and may include more or fewer components than shown, or combine certain components, or use different component arrangements.
在示例性实施例中,还提供了一种计算机可读存储介质,例如包括程序代码的存储器,上述程序代码可由处理器执行以完成上述实施例中的文档内容分享方法。例如,该计算机可读存储介质可以是只读存储器(Read-Only Memory,ROM)、随机存取存储器(RandomAccess Memory,RAM)、只读光盘(Compact Disc Read-Only Memory,CD-ROM)、磁带、软盘和光数据存储设备等。In an exemplary embodiment, a computer-readable storage medium is also provided, such as a memory including program code that can be executed by a processor to complete the document content sharing method in the above embodiments. For example, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, floppy disk, and optical data storage device, etc.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,该程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.
上述仅为本申请的较佳实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above are merely preferred embodiments of this application and are not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims (26)
Publications (2)
| Publication Number | Publication Date |
|---|---|
| HK40022303A HK40022303A (en) | 2020-11-13 |
| HK40022303B true HK40022303B (en) | 2024-02-16 |
Family
ID=
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111078655B (en) | Document content sharing method, device, terminal and storage medium | |
| US12405775B2 (en) | Mini program data binding method and apparatus, device, and storage medium | |
| JP7718632B2 (en) | Electronic document editing method and device, computer device and program | |
| US10810360B2 (en) | Server and method of providing collaboration services and user terminal for receiving collaboration services | |
| CN114630079B (en) | Method and system for dynamic display of video communication data | |
| KR20210003224A (en) | Direct input from remote device | |
| KR20150135055A (en) | Server and method for providing collaboration services and user terminal for receiving collaboration services | |
| WO2022017107A1 (en) | Information processing method and apparatus, computer device and storage medium | |
| CN113709022B (en) | Message interaction method, device, equipment and storage medium | |
| TW201621706A (en) | Sharing content with permission control using near field communication | |
| WO2022089209A1 (en) | Picture comment processing method and apparatus, electronic device and storage medium | |
| CN111953852B (en) | Call record generation method, device, terminal and storage medium | |
| CN114153362A (en) | Information processing method and device | |
| CN113064981B (en) | Group head portrait generation method, device, equipment and storage medium | |
| CN115018659A (en) | User account grouping method, device, equipment and storage medium | |
| CN108710521A (en) | A kind of note generation method and terminal device | |
| CN115766630A (en) | Interaction method and device based on document message, electronic equipment and storage medium | |
| CN120982077A (en) | Shared content feed access in chat | |
| HK40022303B (en) | Method and device for sharing documents content, terminal and storage medium | |
| CN116506391A (en) | Method, device, equipment and storage medium for displaying messages | |
| CN110399177B (en) | Input-based data processing method, device, and device for data processing | |
| HK40022303A (en) | Method and device for sharing documents content, terminal and storage medium | |
| US20260037662A1 (en) | Accidental copy-paste action prevention | |
| CN115033821B (en) | Document display method and device, electronic equipment and storage medium | |
| CN121598414A (en) | E-mail processing method, device, equipment, storage medium and program product |