CN114912421A - Text processing method, text editor, readable medium and electronic device - Google Patents

Text processing method, text editor, readable medium and electronic device Download PDF

Info

Publication number
CN114912421A
CN114912421A CN202110183126.7A CN202110183126A CN114912421A CN 114912421 A CN114912421 A CN 114912421A CN 202110183126 A CN202110183126 A CN 202110183126A CN 114912421 A CN114912421 A CN 114912421A
Authority
CN
China
Prior art keywords
text
content
user
editor
text editor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110183126.7A
Other languages
Chinese (zh)
Inventor
刘复成
孙铭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202110183126.7A priority Critical patent/CN114912421A/en
Publication of CN114912421A publication Critical patent/CN114912421A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)

Abstract

本申请涉及一种文本处理方法、文本编辑器、可读介质和电子设备。该方法包括:电子设备的文本编辑器将用户从文本编辑器中的文本中选择出的第一内容确定为引用文本;在文本编辑器检测到用户将文本第一位置处的与第一内容相同的第二内容进行了修改的情况下,文本编辑器对文本第二位置处的与第一内容相同的第三内容进行相同的修改。本申请通过将用户从文本编辑器的文本中选择的内容或者自动将文本中出现的一些内容存储为引用文本。当用户修改文本中某一处的引用文本时,通过匹配已存储的引用文本,自动查找出文本中与被修改的引用文本相同的内容,并对查找出的内容进行同样的修改。可以极大地提高文本编辑效率,还可以避免漏改、误改的情况的发生。

Figure 202110183126

The present application relates to a text processing method, a text editor, a readable medium and an electronic device. The method includes: the text editor of the electronic device determines the first content selected by the user from the text in the text editor as the reference text; when the text editor detects that the user selects the first content in the first position of the text to be the same as the first content If the second content of the text editor is modified, the text editor makes the same modification to the third content at the second position of the text that is the same as the first content. The present application stores the content selected by the user from the text of the text editor or automatically stores some content appearing in the text as reference text. When the user modifies the reference text in a certain place in the text, by matching the stored reference text, the same content as the modified reference text in the text is automatically found, and the same modification is performed on the found content. It can greatly improve the efficiency of text editing, and can also avoid the occurrence of omissions and mistakes.

Figure 202110183126

Description

文本处理方法、文本编辑器、可读介质和电子设备Text processing method, text editor, readable medium and electronic device

技术领域technical field

本申请涉及终端技术领域,特别涉及一种文本处理方法、文本编辑器、可读介质和电子设备。The present application relates to the field of terminal technologies, and in particular, to a text processing method, a text editor, a readable medium, and an electronic device.

背景技术Background technique

随着终端技术的发展,移动终端(例如智能手机、平板电脑、个人数字助理(PDA,Personal DigitalAssistant)等)越来越智能化、多样化。在用户的日常生活中,越来越多的需求是需要通过在移动终端在进行文本编辑来完成的,例如,通过安装在移动终端上的聊天软件进行聊天、通过安装在移动终端上的办公软件进行办公文件、学术/科研著作的编辑等等。With the development of terminal technologies, mobile terminals (such as smart phones, tablet computers, personal digital assistants (PDAs, Personal Digital Assistants), etc.) are becoming more and more intelligent and diversified. In the daily life of users, more and more demands need to be completed by text editing on mobile terminals, for example, chatting through chat software installed on mobile terminals, office software installed on mobile terminals Editing of office documents, academic/scientific works, etc.

在编辑过程中,用户经常会遇到需要将编辑的文件中很多相同的内容进行修改的情况。尤其是对于大篇幅的文学作品、科学著作等,其中相同的词语或者相同的段落较多,在对需要修改的多处相同的内容进行修改时,通常只能手动地逐一选择相关内容进行修改,或者先进行全文搜索后再进行修改或替换。这样一来,常常会出现漏掉一处或多处需要修改的内容的情况,或者在后续编辑的时候重新增加了一些内容,需要再次逐一选择,进行修改,效率低下,且容易漏改。During the editing process, the user often encounters a situation in which a lot of the same content in the edited file needs to be modified. Especially for large-length literary works, scientific works, etc., in which there are many the same words or the same paragraphs, when modifying the same content in multiple places that need to be modified, it is usually only possible to manually select the relevant content to modify one by one. Or perform a full-text search before modifying or replacing. In this way, one or more contents that need to be modified are often missed, or some contents are added in the subsequent editing, which needs to be selected and modified one by one again, which is inefficient and easy to miss.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供了一种文本处理方法、文本编辑器、可读介质和电子设备。本申请的技术方案通过在用户编辑文本的过程中,用户所使用的文本编辑器可以将用户从文本中选择出的内容或者自动将文本中出现的一些内容存储为引用文本,当用户修改文本中某一处的引用文本时,文本编辑器可以通过匹配已存储的引用文本,自动查找出文本中与被修改的引用文本相同的内容,并对查找出的内容进行同样的修改,实现联动修改。本申请的技术方案在极大地提高文本编辑效率的同时,还可以避免漏改、误改的情况的发生。Embodiments of the present application provide a text processing method, a text editor, a readable medium, and an electronic device. In the technical solution of the present application, during the process of editing the text by the user, the text editor used by the user can store the content selected by the user from the text or automatically store some content appearing in the text as reference text, when the user modifies the text in the text editor When there is a reference text in a certain place, the text editor can automatically find out the same content as the modified reference text in the text by matching the stored reference text, and make the same modification to the found content to realize the linkage modification. The technical solution of the present application can greatly improve the efficiency of text editing, and at the same time, it can also avoid the occurrence of omissions and mistakes.

第一方面,本申请实施例提供了一种文本处理方法,包括:电子设备的文本编辑器将用户从文本编辑器中的文本中选择出的第一内容确定为引用文本;在文本编辑器检测到用户将文本第一位置处的与第一内容相同的第二内容进行了修改的情况下,文本编辑器对文本第二位置处的与第一内容相同的第三内容进行相同的修改。In a first aspect, an embodiment of the present application provides a text processing method, including: a text editor of an electronic device determining a first content selected by a user from text in the text editor as reference text; When the user modifies the second content at the first position of the text that is the same as the first content, the text editor makes the same modification to the third content that is the same as the first content at the second position of the text.

其中,“引用文本”只是本申请的一个示例性说明,本申请不限于此,该名词也可以是其他名称,例如“参考文本”等。Wherein, "cited text" is only an exemplary description of the present application, and the present application is not limited thereto, and the term may also be other names, such as "reference text" and the like.

文本编辑器可以供用户编辑纯文字文本,也可以供用户编辑富文本,例如文字、图片、音频、视频等。A text editor can be used by users to edit plain text or rich text, such as text, pictures, audio, video, and so on.

在一些实施例中,第一位置和第二位置可以是文本编辑器的文本中同一个位置。在一些实施例中,第一位置和第二位置也可以是两个不同的位置。In some embodiments, the first location and the second location may be the same location in the text of the text editor. In some embodiments, the first position and the second position may also be two different positions.

在一些实施例中,用户从文本编辑器中的文本中选择出的第一内容可以是用户通过光标选中的。在一些实施例中,文本编辑器可以自动提示用户是否将第一内容设置为引用文本。In some embodiments, the first content selected by the user from the text in the text editor may be selected by the user through a cursor. In some embodiments, the text editor may automatically prompt the user whether to set the first content as quoted text.

在上述第一方面的一种可能的实现中,上述第一内容包括字符和图像中的至少一种。例如,第一内容可以为字符或字符集(如,字、词、标点或句子)、图片、视频、音频等。In a possible implementation of the above-mentioned first aspect, the above-mentioned first content includes at least one of characters and images. For example, the first content may be characters or character sets (eg, words, words, punctuation, or sentences), pictures, videos, audios, and the like.

在上述第一方面的一种可能的实现中,上述电子设备的文本编辑器将用户从文本编辑器中的文本中选择出的第一内容确定为引用文本,包括:In a possible implementation of the above-mentioned first aspect, the text editor of the above-mentioned electronic device determines the first content selected by the user from the text in the text editor as the quoted text, including:

文本编辑器在检测到文本中有多个位置出现与第一内容相同的内容时,提示用户是否将第一内容设置为引用文本;When detecting that the same content as the first content appears in multiple positions in the text, the text editor prompts the user whether to set the first content as reference text;

在用户确定将第一内容设置为引用文本的情况下,文本编辑器将第一内容确定为引用文本。In a case where the user determines to set the first content as the reference text, the text editor determines the first content as the reference text.

在上述第一方面的一种可能的实现中,上述电子设备的文本编辑器将用户从文本编辑器中的文本中选择出的第一内容确定为引用文本包括:In a possible implementation of the above-mentioned first aspect, the text editor of the above-mentioned electronic device determines the first content selected by the user from the text in the text editor as the quoted text, including:

电子设备的文本编辑器接收绑定于用户从文本编辑器中的文本中选择第一内容的触发事件;The text editor of the electronic device receives a trigger event bound to the user selecting the first content from the text in the text editor;

文本编辑器获取用户从文本编辑器中的文本中选择出的第一内容;The text editor obtains the first content selected by the user from the text in the text editor;

文本编辑器根据预设的数据封装格式,将第一内容进行封装,得到封装后的数据;The text editor encapsulates the first content according to a preset data encapsulation format to obtain encapsulated data;

文本编辑器将封装后的数据存储起来。The text editor stores the encapsulated data.

在上述第一方面的一种可能的实现中,上述文本编辑器包括引用文本操作菜单,上述绑定于用户从文本编辑器中的文本中选择第一内容的触发事件包括:用户通过光标选中第一内容后点击引用文本操作菜单。In a possible implementation of the above-mentioned first aspect, the above-mentioned text editor includes a reference text operation menu, and the above-mentioned trigger event bound to the user selecting the first content from the text in the text editor includes: the user selects the first content through the cursor Click the Quoted Text Actions menu after a piece of content.

其中,引用文本操作菜单只是本申请的一个示例性说明,本申请不限于此,该名词也可以是其他名称,例如“引用文本操作按钮”等。The citing text operation menu is only an exemplary description of the application, and the application is not limited thereto, and the noun may also be other names, such as "citing text operation button" and the like.

在上述第一方面的一种可能的实现中,上述将封装后的数据存储起来包括:将封装后的数据存储在数据库以及设定文件中的至少一种。In a possible implementation of the first aspect, the storing the encapsulated data includes: storing the encapsulated data in at least one of a database and a setting file.

在上述第一方面的一种可能的实现中,上述在文本编辑器检测到用户将文本第一位置处的与第一内容相同的第二内容进行了修改的情况下,文本编辑器对文本第二位置处的与第一内容相同的第三内容进行相同的修改包括:In a possible implementation of the first aspect, when the text editor detects that the user has modified the second content at the first position of the text that is the same as the first content, the text editor modifies the first content of the text. The third content at the second position that is the same as the first content with the same modifications includes:

电子设备的文本编辑器监听到用户在文本第一位置处的与第一内容相同的第二内容进行的修改后,获取修改后的第二内容;The text editor of the electronic device acquires the modified second content after monitoring the modification of the second content that is the same as the first content at the first position of the text by the user;

文本编辑器遍历文本,得到文本中与第一内容相同的第三内容所在的第二位置;The text editor traverses the text to obtain the second position in the text where the third content that is the same as the first content is located;

文本编辑器将文本第二位置处的与第一内容相同的第三内容替换为与修改后的第二内容相同的内容。The text editor replaces the third content identical to the first content at the second position of the text with the identical content to the modified second content.

在上述第一方面的一种可能的实现中,上述方法还包括:文本编辑器在检测到用户对第一内容的引用文本的替换操作的情况下,将文本中多个位置出现的与第一内容相同的内容替换为用户所要替换的内容。可以提高文本替换效率。In a possible implementation of the above-mentioned first aspect, the above-mentioned method further includes: when the text editor detects a user's replacement operation of the quoted text of the first content, comparing the text that appears in multiple positions in the text with the first content The content with the same content is replaced with the content that the user wants to replace. Can improve the efficiency of text replacement.

在上述第一方面的一种可能的实现中,第一内容包括多个字符,并且上述方法还包括:In a possible implementation of the above first aspect, the first content includes multiple characters, and the above method further includes:

在文本编辑器检测到用户在第三位置处输入了第一内容的部分字符的情况下,向用户显示第一内容的全部字符;In the case that the text editor detects that the user has input some characters of the first content at the third position, displaying all the characters of the first content to the user;

在检测到用户点击了显示的第一内容的全部字符的情况下,将第一内容的全部字符添加在第三位置处。In a case where it is detected that the user has clicked all the characters of the displayed first content, all the characters of the first content are added at the third position.

例如,文本编辑器检测到用户在当前光标所在位置输入“SM”,文本编辑器自动联想出来“SMTP协议”、“SMT论坛”等等以“SM”开头的词语供用户选择,用户点击选择“SMTP协议”之后,文本编辑器将“SMTP协议”插入到当前光标所在的位置。实现联想输入的功能,可以提高编辑效率。For example, the text editor detects that the user enters "SM" at the current cursor position, and the text editor automatically associates words starting with "SM" such as "SMTP protocol", "SMT forum" for the user to select, and the user clicks to select "" After SMTP Protocol", the text editor inserts "SMTP Protocol" at the current cursor position. Implementing the function of associative input can improve editing efficiency.

在上述第一方面的一种可能的实现中,上述方法还包括:电子设备的文本编辑器是基于WebView控件加载Html模板创建的。In a possible implementation of the above-mentioned first aspect, the above-mentioned method further includes: the text editor of the electronic device is created based on the Html template loaded by the WebView control.

在上述第一方面的一种可能的实现中,上述方法电子设备的文本编辑器将用户从文本编辑器中的文本中选择出的第一内容确定为引用文本包括:In a possible implementation of the above first aspect, the text editor of the electronic device in the above method determines the first content selected by the user from the text in the text editor as the reference text, including:

电子设备的WebView控件调用Javascript脚本代码,将用户从文本编辑器中的文本中选择出的第一内容确定为引用文本。The WebView control of the electronic device invokes the Javascript script code, and determines the first content selected by the user from the text in the text editor as the reference text.

在上述第一方面的一种可能的实现中,上述在文本编辑器检测到用户将文本第一位置处的与第一内容相同的第二内容进行了修改的情况下,文本编辑器对文本第二位置处的与第一内容相同的第三内容进行相同的修改包括:In a possible implementation of the first aspect, when the text editor detects that the user has modified the second content at the first position of the text that is the same as the first content, the text editor modifies the first content of the text. The third content at the second position that is the same as the first content with the same modifications includes:

电子设备的WebView控件调用Javascript脚本代码,在检测到用户将文本第一位置处的与第一内容相同的第二内容进行了修改的情况下,对文本第二位置处的与第一内容相同的第三内容进行相同的修改。The WebView control of the electronic device calls the Javascript script code, and when it is detected that the user modifies the second content at the first position of the text that is the same as the first content, changes the second content at the second position of the text that is the same as the first content. The third content makes the same modification.

第二方面,本申请实施里提供了一种文本编辑器,包括文本输入框、引用文本操作菜单、引用文本确定单元及联动修改单元;In the second aspect, the implementation of the present application provides a text editor, including a text input box, a reference text operation menu, a reference text determination unit, and a linkage modification unit;

文本输入框,用于向用户提供对文本编辑器中的文本进行编辑的界面;A text input box, which is used to provide the user with an interface for editing the text in the text editor;

引用文本确定单元,用于在检测到用户在文本编辑器中的文本中选择出第一内容并且点击引用文本操作菜单的情况下,将用户从文本编辑器中的文本中选择出的第一内容确定为引用文本;A reference text determination unit, configured to select the first content selected by the user from the text in the text editor when it is detected that the user selects the first content in the text in the text editor and clicks the reference text operation menu identified as quoted text;

联动修改单元,用于在检测到用户将文本第一位置处的与第一内容相同的第二内容进行了修改的情况下,对文本第二位置处的与第一内容相同的第三内容进行相同的修改。The linkage modification unit is configured to modify the third content at the second position of the text, which is the same as the first content, when it is detected that the user has modified the second content at the first position of the text that is the same as the first content Same modification.

在上述第二方面的一种可能的实现中,上述第一内容包括字符和图像中的至少一种。In a possible implementation of the second aspect, the first content includes at least one of characters and images.

在上述第二方面的一种可能的实现中,上述引用文本确定单元通过以下方式将用户从文本编辑器中的文本中选择出的第一内容确定为引用文本:In a possible implementation of the above second aspect, the above quoted text determining unit determines the first content selected by the user from the text in the text editor as the quoted text in the following manner:

引用文本确定单元在检测到文本中有多个位置出现与第一内容相同的内容时,提示用户是否将第一内容设置为引用文本;When detecting that the same content as the first content appears in multiple positions in the text, the reference text determination unit prompts the user whether to set the first content as the reference text;

在用户确定将第一内容设置为引用文本的情况下,引用文本确定单元将第一内容确定为引用文本。In a case where the user determines to set the first content as the reference text, the reference text determination unit determines the first content as the reference text.

在上述第二方面的一种可能的实现中,上述引用文本确定单元通过以下方式将用户从文本编辑器中的文本中选择出的第一内容确定为引用文本:In a possible implementation of the above second aspect, the above quoted text determining unit determines the first content selected by the user from the text in the text editor as the quoted text in the following manner:

引用文本确定单元接收绑定于用户从文本编辑器中的文本中选择第一内容的触发事件;The reference text determination unit receives a trigger event bound to the user selecting the first content from the text in the text editor;

引用文本确定单元获取用户从文本编辑器中的文本中选择出的第一内容;The reference text determination unit obtains the first content selected by the user from the text in the text editor;

引用文本确定单元根据预设的数据封装格式,将第一内容进行封装,得到封装后的数据;The reference text determination unit encapsulates the first content according to a preset data encapsulation format to obtain encapsulated data;

引用文本确定单元将封装后的数据存储起来。The reference text determination unit stores the encapsulated data.

在上述第二方面的一种可能的实现中,上述联动修改单元通过以下方式,在检测到用户将文本第一位置处的与第一内容相同的第二内容进行了修改的情况下,对文本第二位置处的与第一内容相同的第三内容进行相同的修改:In a possible implementation of the second aspect, the linkage modification unit, in the following manner, when detecting that the user modifies the second content at the first position of the text that is the same as the first content, modifies the text The same third content as the first content at the second position with the same modifications:

联动修改单元监听到用户在文本第一位置处的与第一内容相同的第二内容进行的修改后,获取修改后的第二内容;The linkage modification unit acquires the modified second content after monitoring the modification of the second content that is the same as the first content at the first position of the text by the user;

联动修改单元遍历文本,得到文本中与第一内容相同的第三内容所在的第二位置;The linkage modification unit traverses the text to obtain the second position where the third content that is the same as the first content in the text is located;

联动修改单元将文本第二位置处的与第一内容相同的第三内容替换为与修改后的第二内容相同的内容。The linkage modification unit replaces the third content at the second position of the text that is the same as the first content with the same content as the modified second content.

在上述第二方面的一种可能的实现中,上述文本编辑器还包括:统一替换单元,用于在检测到用户对第一内容的引用文本的替换操作的情况下,将文本中多个位置出现的与第一内容相同的内容替换为用户所要替换的内容。In a possible implementation of the above-mentioned second aspect, the above-mentioned text editor further includes: a unified replacement unit, configured to replace multiple positions in the text when a user's operation of replacing the quoted text of the first content is detected. The content that appears identical to the first content is replaced with the content to be replaced by the user.

在上述第二方面的一种可能的实现中,上述第一内容包括多个字符,并且上述文本编辑器还包括:In a possible implementation of the second aspect, the first content includes multiple characters, and the text editor further includes:

联想输入单元,用于在检测到用户在第三位置处输入了第一内容的部分字符的情况下,向用户显示第一内容的全部字符;在检测到用户点击了显示的第一内容的全部字符的情况下,将第一内容的全部字符添加在第三位置处。The associative input unit is configured to display all the characters of the first content to the user when it is detected that the user has input some characters of the first content at the third position; when it is detected that the user has clicked all the displayed first content In the case of characters, all characters of the first content are added at the third position.

在上述第二方面的一种可能的实现中,上述文本编辑器还包括:引用文本展示单元,用于在检测到用户点击引用文本操作菜单的情况下,将确定的引用文本展示出来。In a possible implementation of the above second aspect, the above text editor further includes: a quoted text display unit, configured to display the determined quoted text when it is detected that the user clicks on the quoted text operation menu.

第三方面,本申请实施例提供了一种可读介质,可读介质上存储有指令,该指令在电子设备上执行时使电子设备执行上述第一方面以及第一方面的各种可能实现中的任意一种文本处理方法。In a third aspect, an embodiment of the present application provides a readable medium, where an instruction is stored on the readable medium, and the instruction, when executed on an electronic device, causes the electronic device to perform the above-mentioned first aspect and various possible implementations of the first aspect. Any text processing method of .

第四方面,本申请实施例提供了一种电子设备,包括:In a fourth aspect, an embodiment of the present application provides an electronic device, including:

存储器,用于存储由电子设备的一个或多个处理器执行的指令,以及memory for storing instructions for execution by one or more processors of the electronic device, and

处理器,是电子设备的处理器之一,用于执行上述第一方面以及第一方面的各种可能实现中的任意一种文本处理方法。The processor, which is one of the processors of the electronic device, is configured to execute the first aspect and any one of the text processing methods in various possible implementations of the first aspect.

附图说明Description of drawings

图1(a)根据本申请的一些实施例,示出了用户点击手机的编辑器图标的用户界面示意图;Figure 1(a) shows a schematic diagram of a user interface in which a user clicks an editor icon of a mobile phone according to some embodiments of the present application;

图1(b)根据本申请的一些实施例,示出了用户打开安装在手机上的编辑器后的初始界面示意图;Figure 1(b) shows a schematic diagram of an initial interface after a user opens an editor installed on a mobile phone according to some embodiments of the present application;

图1(c)根据本申请的一些实施例,示出了用户在编辑的内容输入框里输进行文字编辑的界面示意图;Figure 1(c) shows a schematic interface diagram of a user inputting text editing in an edited content input box according to some embodiments of the present application;

图1(d)根据本申请的一些实施例,示出了用户点击引用文本菜单选择“SMTP协议”插入当前光标所在位置的界面示意图;Fig. 1(d) shows a schematic diagram of the interface in which the user clicks the reference text menu and selects "SMTP protocol" to insert the current cursor position according to some embodiments of the present application;

图1(e)根据本申请的一些实施例,示出了用户输入“SM”后自动联想出多个待选引用文本的界面示意图;Fig. 1(e) shows a schematic diagram of an interface in which a plurality of reference texts to be selected are automatically associated after a user inputs "SM" according to some embodiments of the present application;

图1(f)根据本申请的一些实施例,示出了用户从自动联想出来的多个待选引用文本中选择“SMTP协议”插入当前光标所在位置的界面示意图;Fig. 1 (f) according to some embodiments of the present application, shows the interface schematic diagram that the user selects "SMTP protocol" to insert the current cursor position from a plurality of candidate quoted texts automatically associated;

图1(g)根据本申请的一些实施例,示出了点击引用文本从弹出的应用文本列表中直接将“smtp协议”修改为“SMTP协议”的界面示意图;Fig. 1(g) shows a schematic interface diagram of directly modifying "smtp protocol" to "SMTP protocol" from the pop-up application text list by clicking on the quoted text according to some embodiments of the present application;

图1(h)根据本申请的一些实施例,示出了用户直接在编辑器的内容输入框中将一处“smtp协议”修改为“SMTP协议”,而另一处“smtp协议”联动修改为“SMTP协议”的界面示意图;Fig. 1(h) shows that the user directly modifies one "smtp protocol" to "SMTP protocol" in the content input box of the editor, and another "smtp protocol" is modified by linkage according to some embodiments of the present application It is a schematic diagram of the interface of "SMTP protocol";

图2根据本申请的一些实施例,示出了手机的硬件结构示意图;2 shows a schematic diagram of the hardware structure of a mobile phone according to some embodiments of the present application;

图3根据本申请的一些实施例,示出了新建引用文本的流程图;FIG. 3 shows a flowchart of creating a new citation according to some embodiments of the present application;

图4(a)根据本申请的一些实施例,示出了用户选中“SMTP协议”后点击引用文本菜单的界面示意图;Figure 4(a) shows a schematic interface diagram of a user clicking on a reference text menu after selecting "SMTP protocol" according to some embodiments of the present application;

图4(b)根据本申请的一些实施例,示出了手机将用户选中的“SMTP协议”添加到弹出的引用文本列表中的界面示意图;Fig. 4(b) shows a schematic interface diagram of the mobile phone adding the "SMTP protocol" selected by the user to the pop-up quoted text list according to some embodiments of the present application;

图5根据本申请的一些实施例,示出了用户使用已添加引用文本的流程图;FIG. 5 shows a flow chart for a user to use the added quoted text according to some embodiments of the present application;

图6(a)根据本申请的一些实施例,示出了用户输入“SM”,手机自动联想出多个以“SM”开头的引用文本的界面示意图;Fig. 6 (a) according to some embodiments of the present application, shows a user input "SM", the mobile phone automatically associates with a plurality of reference texts beginning with "SM" interface schematic diagram;

图6(b)根据本申请的一些实施例,示出了用户从多个待选引用文本中选择“SMTP协议”并插入当前光标所在位置的界面示意图;Figure 6(b) shows a schematic diagram of an interface in which a user selects "SMTP protocol" from a plurality of reference texts to be selected and inserts the current cursor position according to some embodiments of the present application;

图6(c)根据本申请的一些实施例,示出了用户点击引用文本菜单,从弹出的引用文本列表中选择“SMTP协议”插入当前光标所在位置的界面示意图;Fig. 6 (c) according to some embodiments of the present application, it is shown that the user clicks on the quoted text menu, and selects "SMTP protocol" from the popped up quoted text list to insert the interface schematic diagram of the current cursor position;

图7根据本申请的一些实施例,示出了用户修改已添加引用文本的流程图;FIG. 7 shows a flow chart of a user modifying an added quoted text according to some embodiments of the present application;

图8(a)根据本申请的一些实施例,示出了在用户已编辑的文本中一共出现5个“SMTP协议”;Figure 8(a) shows a total of 5 "SMTP protocols" appearing in the text that the user has edited, according to some embodiments of the present application;

图8(b)根据本申请的一些实施例,示出了用户在内容输入框里直接将一处“SMTP协议”修改为“smtp协议”的界面示意图;Figure 8(b) shows a schematic interface diagram of a user directly modifying a "SMTP protocol" to "smtp protocol" in the content input box according to some embodiments of the present application;

图8(c)根据本申请的一些实施例,示出了手机将内容输入框里之前编辑的另外4处“SMTP协议”联动修改为“smtp协议”的界面示意图;Fig. 8 (c) according to some embodiments of the present application, shows the interface schematic diagram of the mobile phone to modify the other 4 "SMTP protocol" edited before the content input box to "smtp protocol";

图9(a)根据本申请的一些实施例,示出了用户点击引用文本菜单,直接将弹出的引用文本列表中的“SMTP协议”联动修改为“smtp协议”的界面示意图;Fig. 9 (a) according to some embodiments of the present application, it is shown that the user clicks on the reference text menu, and directly modifies the "SMTP protocol" linkage in the pop-up reference text list to the "smtp protocol" interface schematic diagram;

图9(b)根据本申请的一些实施例,示出了用户将引用文本列表中的“SMTP协议”联动修改为“smtp协议”后,手机将用户已编辑的内容中5处“SMTP协议”直接修改为“smtp协议”的界面示意图。Figure 9(b) shows that after the user modifies the "SMTP protocol" in the quoted text list to "smtp protocol" according to some embodiments of the present application, the mobile phone changes 5 "SMTP protocol" in the edited content by the user Schematic diagram of the interface directly modified to "smtp protocol".

图10根据本申请的一些实施例,示出了一种文本编辑器的示意框图。FIG. 10 shows a schematic block diagram of a text editor according to some embodiments of the present application.

具体实施方式Detailed ways

本申请的说明性实施例包括但不限于文本处理方法、文本编辑器、可读介质和电子设备。Illustrative embodiments of the present application include, but are not limited to, text processing methods, text editors, readable media, and electronic devices.

本申请的技术方案提供了一种文本处理方法,在用户编辑文本的过程中,用户所使用的文本编辑器可以将用户从文本中选择出的内容或者自动将文本中出现的一些字符或字符集(如,字、词、标点或句子)存储为引用文本。然后,当用户修改文档中某一处的引用文本时,文本编辑器可以通过匹配已存储的引用文本,自动查找出文本中与被修改的引用文本相同的字符或者字符集,并对查找出的字符或者字符集进行同样的修改,例如,文本编辑器通过监听用户输入内容的变化,获取修改后的引用文本,然后将从文本中查找到的所有相同的字符或者字符集替换为修改后的引用文本,实现联动修改。例如,用户选择将文本中出现的“Web服务器”设置为引用文本,并且随着用户的输入,文本中有多个地方出现了“Web服务器”这一引用文本,而当用户将文本中某一处的“Web服务器”修改为“web服务器”时,文本中其他地方的“Web服务器”将自动被文本编辑器修改为“web服务器”。如此,用户通过修改一处引用文本,即可将从文本中查找到的所有相同的字符或者字符集替换为修改后的引用文本,实现联动修改。在极大地提高文本编辑效率的同时,还可以避免漏改、误改的情况的发生。The technical solution of the present application provides a text processing method. During the process of editing the text by the user, the text editor used by the user can edit the content selected by the user from the text or automatically convert some characters or character sets that appear in the text. (eg, words, words, punctuation, or sentences) are stored as quoted text. Then, when the user modifies the quoted text somewhere in the document, the text editor can automatically find out the same character or character set as the modified quoted text in the text by matching the stored quoted text, and compare the found Characters or character sets are modified in the same way. For example, a text editor obtains the modified reference text by listening for changes in user input, and then replaces all the same characters or character sets found in the text with the modified reference. Text, realize linkage modification. For example, the user chooses to set the "Web Server" appearing in the text as the reference text, and as the user inputs, the reference text "Web Server" appears in multiple places in the text, and when the user selects one of the text When "Web Server" in the text is changed to "web server", "Web Server" elsewhere in the text will be automatically changed to "web server" by the text editor. In this way, by modifying a reference text, the user can replace all the same characters or character sets found in the text with the modified reference text to realize linkage modification. While greatly improving the efficiency of text editing, it can also avoid the occurrence of omissions and mistakes.

为了便于理解本方案,下面对本方案用到的关键名词进行解释。In order to facilitate the understanding of this scheme, key terms used in this scheme are explained below.

富文本编辑器(Rich Text Editor,简称RTE)是一种可内嵌于浏览器,所见即所得的文本编辑器。为了便于说明,下文以富文本编辑器为例说明本申请的技术方案。可以理解,本申请的技术方案可以适用于任何文本编辑器,不限于富文本编辑器,例如可以编辑纯文字的文本编辑器等。Rich Text Editor (RTE) is a WYSIWYG text editor that can be embedded in browsers. For the convenience of description, the following uses a rich text editor as an example to describe the technical solution of the present application. It can be understood that the technical solution of the present application can be applied to any text editor, not limited to a rich text editor, such as a text editor that can edit plain text.

WebView即“网络视图”,是电子设备中内置的一款高性能内核浏览器,是在(Software Development Kit,软件开发工具包)SDK中封装的一个组件。是一种可以用来呈现网页内容的视图控件。WebView is a "web view", which is a high-performance kernel browser built in an electronic device, and is a component packaged in a (Software Development Kit, software development kit) SDK. Is a view control that can be used to render web page content.

JavaScript是一种直译式脚本语言,广泛用于客户端。JavaScript is a literal scripting language that is widely used on the client side.

Html(HyperText Markup Language,超文本标记语言),结构包括“头”部和“主体”部分,其中“头”部提供关于网页的信息,“主体”部分提供网页的具体内容。Html (HyperText Markup Language), the structure includes a "header" part and a "body" part, wherein the "header" part provides information about the web page, and the "body" part provides the specific content of the web page.

下面将结合附图对本申请的实施例作进一步地详细描述。The embodiments of the present application will be described in further detail below with reference to the accompanying drawings.

图1(a)根据本申请的一些实施例,示出了电子设备10的桌面图,如图所示,电子设备的桌面上具有富文本编辑器图标11。用户可以点击富文本编辑器图标11以打开富文本编辑器的用户界面图进行文本编辑。如图1(b)所示,当用户通过手指点击富文本编辑器的图标11后,电子设备10打开富文本编辑器供用户编辑文本的用户界面。用户可以通过点击如图1(b)所示的键盘,在图1(b)所示的富文本编辑器的空白的内容输入框中进行文本编辑。例如,用户通过编辑器记日记、写影评、写书评、做笔记、记录备忘事项等等。需要说明的是,用户除了可以在富文本编辑器中输入字符外,还可以添加图片等Html支持的任何内容。FIG. 1( a ) shows a desktop diagram of an electronic device 10 according to some embodiments of the present application. As shown in the figure, the desktop of the electronic device has a rich text editor icon 11 . The user can click the rich text editor icon 11 to open the user interface diagram of the rich text editor for text editing. As shown in FIG. 1( b ), when the user clicks the icon 11 of the rich text editor with a finger, the electronic device 10 opens the rich text editor for the user to edit the text user interface. The user can perform text editing in the blank content input box of the rich text editor shown in Fig. 1(b) by clicking the keyboard shown in Fig. 1(b). For example, users use the editor to keep a diary, write movie reviews, write book reviews, take notes, take notes, and so on. It should be noted that in addition to entering characters in the rich text editor, users can also add any content supported by Html, such as pictures.

特别地,当用户通过富文本编辑器编辑论文、专利、科研著作等时,由于篇幅长、重复使用到的名词、句子、段落较多。例如,在图1(c)所示的实施例中,用户当前正在编辑关于“电子邮件协议”的相关内容,且其中多次用到“SMTP协议”、“POP3”、“TCP/IP协议”等词语。为了提高编辑效率,用户可以分别选中“SMTP协议”、“POP3”、“TCP/IP协议”等词语,点击电子设备10的富文本编辑器界面的引用文本操作菜单,电子设备10通过执行本申请实施例提供的文本编辑方法,将用户选择的“SMTP协议”、“POP3”、“TCP/IP协议”等词语添加到引用文本数据库里,即新建引用文本。可以理解的是,以上“引用文本”只是本申请的一个示例性说明,本申请不限于此,该名词也可以是其他名称,例如“参考文本”等。In particular, when a user edits papers, patents, scientific research works, etc. through a rich text editor, due to the length of space, there are many repeated nouns, sentences, and paragraphs. For example, in the embodiment shown in Fig. 1(c), the user is currently editing related content about "e-mail protocol", and "SMTP protocol", "POP3", "TCP/IP protocol" are used many times. equivalent words. In order to improve the editing efficiency, the user can select words such as "SMTP protocol", "POP3", "TCP/IP protocol", etc., and click the reference text operation menu of the rich text editor interface of the electronic device 10. The electronic device 10 executes the application In the text editing method provided by the embodiment, words such as "SMTP protocol", "POP3", and "TCP/IP protocol" selected by the user are added to the reference text database, that is, a new reference text is created. It should be understood that the above "cited text" is only an exemplary description of the present application, and the present application is not limited thereto, and the term may also be other names, such as "reference text" and the like.

在一些实施例中,当用户再次预输入“SMTP协议”、“POP3”、“TCP/IP协议”等多次重复出现的词语时,可以通过点击引用文本操作菜单,弹出如图1(d)所示的实施例中的引用文本列表。用户从弹出的列表中选择一个引用文本,例如选择“SMTP协议”,即可将选中的引用文本插入到当前光标所在位置。除此之外,当用户再次用到“SMTP协议”、“POP3”、“TCP/IP协议”等多次重复出现的词语时,只需输入要编辑的完整的词语中的部分文字,电子设备10即可通过执行本申请实施例提供的文本编辑方法,自动联想出来与用户当前输入的部分文字对应的完整的词语。例如,在图1(e)所示的实施例中,用户输入“SM”,电子设备10通过执行本申请实施例提供的文本编辑方法,自动联想出来“SMTP协议”以及“SMT工艺”,用户点击选择“SMTP协议”,即可将“SMTP协议”插入如图1(f)所示的用户界面中当前光标所在位置,并显示出来。如此,用户无需逐个进行字符输入,可以提高用户编辑效率。In some embodiments, when the user pre-enters repeated words such as "SMTP protocol", "POP3", "TCP/IP protocol", etc. again, the user can click on the reference text operation menu to pop up as shown in Figure 1(d) List of cited texts in the illustrated embodiment. The user selects a quoted text from the pop-up list, for example, selects "SMTP protocol", and the selected quoted text can be inserted into the current cursor position. In addition, when the user uses repeated words such as "SMTP protocol", "POP3" and "TCP/IP protocol" again, he only needs to input part of the text in the complete word to be edited. 10. By executing the text editing method provided by the embodiment of the present application, a complete word corresponding to the part of the text currently input by the user can be automatically associated. For example, in the embodiment shown in FIG. 1(e), the user inputs “SM”, and the electronic device 10 automatically associates “SMTP protocol” and “SMT process” by executing the text editing method provided by the embodiment of the present application. Click to select "SMTP Protocol", then "SMTP Protocol" can be inserted into the current cursor position in the user interface as shown in Figure 1(f), and displayed. In this way, the user does not need to input characters one by one, which can improve the editing efficiency of the user.

在一些实施例中,当用户检查已经编辑好的文本时,发现部分术语不统一。例如图1(g)所示的实施例中,用户编辑好的文本里出现两处“smtp协议”和两处“SMTP协议”。用户想要将两处“smtp协议”修改成“SMTP协议”,以保证术语统一。可以点击电子设备10的富文本编辑器界面的引用文本操作菜单,将已经被添加进引用文本数据库的“smtp协议”修改为“SMTP协议”,电子设备10通过执行本申请实施例提供的文本编辑方法,将用户已编辑的文本里出现的所有“smtp协议”修改为“SMTP协议”。此外,用户还可以在需要修改的位置处直接进行内容修改。例如,在图1(h)所示的实施例中,用户在内容输入框中选择一处“smtp协议”,将其直接修改为“SMTP协议”,电子设备10通过执行本申请实施例提供的文本编辑方法,可以实现将另一处“smtp协议”也对应修改成“SMTP协议”。实现联动修改。大大提高修改效率,并且可以避免漏改错改的情况发生。In some embodiments, when the user examines the edited text, some terms are found to be inconsistent. For example, in the embodiment shown in FIG. 1( g ), two places of “smtp protocol” and two places of “SMTP protocol” appear in the text edited by the user. The user wants to modify the two "smtp protocol" to "SMTP protocol" to ensure uniform terminology. The reference text operation menu of the rich text editor interface of the electronic device 10 can be clicked, and the “smtp protocol” that has been added into the reference text database can be modified to the “SMTP protocol”. method, modify all "smtp protocol" appearing in the text edited by the user to "SMTP protocol". In addition, the user can directly modify the content at the position that needs to be modified. For example, in the embodiment shown in Fig. 1(h), the user selects a "smtp protocol" in the content input box, and directly modifies it to "SMTP protocol", and the electronic device 10 executes the The text editing method can realize the corresponding modification of another "smtp protocol" to "SMTP protocol". Realize linkage modification. It greatly improves the efficiency of modification, and can avoid the occurrence of omissions and mistakes.

其中电子设备10包括但不限于平板电脑、智能手机、膝上型计算机、台式计算机、可穿戴电子设备、头戴式显示器、移动电子邮件设备、便携式游戏机、便携式音乐播放器、阅读器设备等,其中可穿戴电子设备包括但不限于智能手表、智能手环或者智能眼镜、智能头盔、智能头带等等。The electronic device 10 includes, but is not limited to, tablet computers, smart phones, laptop computers, desktop computers, wearable electronic devices, head-mounted displays, mobile email devices, portable game consoles, portable music players, reader devices, etc. , wherein wearable electronic devices include but are not limited to smart watches, smart bracelets or smart glasses, smart helmets, smart headbands, and the like.

为了便于说明,下面以电子设备10为手机为例,结合参考附图2至10,对本申请方案进行详细介绍。For ease of description, the solution of the present application will be described in detail below by taking the electronic device 10 as a mobile phone as an example and referring to FIGS. 2 to 10 .

图2根据本申请的实施例,示出了一种手机10的硬件结构示意图。该手机10能够执行本申请实施例提供的文本处理方法。在图2中,相似的部件具有同样的附图标记。如图2所示,手机10可以包括处理器110、电源模块140、存储器180、摄像头170、移动通信模块130、无线通信模块120、传感器模块190、音频模块150、接口模块160以及触摸显示屏102等。FIG. 2 shows a schematic diagram of the hardware structure of a mobile phone 10 according to an embodiment of the present application. The mobile phone 10 can execute the text processing method provided by the embodiment of the present application. In Figure 2, similar parts have the same reference numerals. As shown in FIG. 2 , the mobile phone 10 may include a processor 110 , a power module 140 , a memory 180 , a camera 170 , a mobile communication module 130 , a wireless communication module 120 , a sensor module 190 , an audio module 150 , an interface module 160 and a touch display screen 102 Wait.

可以理解的是,本发明实施例示意的结构并不构成对手机10的具体限定。在本申请另一些实施例中,手机10可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the mobile phone 10 . In other embodiments of the present application, the mobile phone 10 may include more or less components than shown, or combine some components, or separate some components, or arrange different components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

处理器110可以包括一个或多个处理单元,例如,可以包括中央处理器CPU(Central Processing Unit)、图像处理器GPU(Graphics Processing Unit)、数字信号处理器DSP、微处理器MCU(Micro-programmed Control Unit)、AI(ArtificialIntelligence,人工智能)处理器或可编程逻辑器件FPGA(Field Programmable GateArray)等的处理模块或处理电路。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。例如,在本申请的一些实例中,处理器110可以用来获取用户在文本编辑中输入的内容,按照特定格式对用户输入的内容进行数据封装,并持久化存储起来。以及获取用户输入的内容的变化,实现联动修改等。The processor 110 may include one or more processing units, for example, may include a central processing unit (CPU), a graphics processor (GPU), a graphics processing unit (GPU), a digital signal processor (DSP), and a microprocessor (MCU). Control Unit), AI (Artificial Intelligence, artificial intelligence) processor or programmable logic device FPGA (Field Programmable GateArray) and other processing modules or processing circuits. Wherein, different processing units may be independent devices, or may be integrated in one or more processors. For example, in some examples of the present application, the processor 110 may be used to obtain the content input by the user in the text editing, encapsulate the data input by the user according to a specific format, and store the content persistently. As well as obtaining changes in the content input by the user, realizing linkage modification, etc.

存储器180可用于存储数据、软件程序以及模块,可以是易失性存储器(VolatileMemory),例如随机存取存储器(Random-Access Memory,RAM);或者非易失性存储器(Non-Volatile Memory),例如只读存储器(Read-Only Memory,ROM),快闪存储器(FlashMemory),硬盘(Hard Disk Drive,HDD)或固态硬盘(Solid-State Drive,SSD);或者上述种类的存储器的组合,或者也可以是可移动存储介质,例如安全数字(Secure Digital,SD)存储卡。具体的,存储器180可以包括存储程序区1801和存储数据区1802。存储程序区1801内可存储程序代码,该程序代码用于使处理器110通过执行该程序代码,执行本申请实施例提供的文本处理方法。在申请实施例中,存储数据区1802可以用于存储创建的引用文本数据等。The memory 180 can be used to store data, software programs and modules, and can be a volatile memory (Volatile Memory), such as a random-access memory (Random-Access Memory, RAM); or a non-volatile memory (Non-Volatile Memory), such as Read-Only Memory (ROM), Flash Memory (FlashMemory), Hard Disk Drive (HDD) or Solid-State Drive (SSD); or a combination of the above types of memory, or It is a removable storage medium, such as a Secure Digital (SD) memory card. Specifically, the memory 180 may include a program storage area 1801 and a data storage area 1802 . A program code may be stored in the program storage area 1801, and the program code is used to enable the processor 110 to execute the text processing method provided by the embodiment of the present application by executing the program code. In the application embodiment, the storage data area 1802 may be used to store created citation text data and the like.

存储器180可存储操作系统以及至少一个功能所需的应用程序(比如可供用户进行文本编辑的应用程序等),存储器180中还可以存储用户通过点击引用文本操作菜单触发手机10的WebView控件调用JavaScript添加的引用文本数据等。The memory 180 can store an operating system and an application program required for at least one function (such as an application program that can be used by the user to edit text, etc.), and the memory 180 can also store the user by clicking on the reference text to operate the menu to trigger the WebView control of the mobile phone 10 to call JavaScript. Added citation text data, etc.

电源模块140可以包括电源、电源管理部件等。电源可以为电池。电源管理部件用于管理电源的充电和电源向其他模块的供电。充电管理模块用于从充电器接收充电输入;电源管理模块用于连接电源,充电管理模块与处理器110。The power module 140 may include power supplies, power management components, and the like. The power source can be a battery. The power management part is used to manage the charging of the power supply and the power supply of the power supply to other modules. The charging management module is used for receiving charging input from the charger; the power management module is used for connecting the power source, the charging management module and the processor 110 .

移动通信模块130可以包括但不限于天线、功率放大器、滤波器、低噪声放大器(Low noise amplify,LNA)等。移动通信模块130可以提供应用在手机10上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块130可以由天线接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块130还可以对经调制解调处理器调制后的信号放大,经天线转为电磁波辐射出去。在一些实施例中,移动通信模块130的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块130至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 130 may include, but is not limited to, an antenna, a power amplifier, a filter, a low noise amplifier (LNA), and the like. The mobile communication module 130 can provide wireless communication solutions including 2G/3G/4G/5G etc. applied on the mobile phone 10 . The mobile communication module 130 can receive electromagnetic waves through the antenna, filter, amplify, etc. the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 130 can also amplify the signal modulated by the modulation and demodulation processor, and then convert it into electromagnetic waves for radiation through the antenna. In some embodiments, at least part of the functional modules of the mobile communication module 130 may be provided in the processor 110 . In some embodiments, at least part of the functional modules of the mobile communication module 130 may be provided in the same device as at least part of the modules of the processor 110 .

无线通信模块120可以包括天线,并经由天线实现对电磁波的收发。无线通信模块120可以提供应用在手机10上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(blue tooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。手机10可以通过无线通信技术与网络以及其他设备进行通信。The wireless communication module 120 may include an antenna, and transmit and receive electromagnetic waves via the antenna. The wireless communication module 120 can provide applications on the mobile phone 10 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), blue tooth (BT), global navigation satellites System (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The cell phone 10 can communicate with the network and other devices through wireless communication technology.

在一些实施例中,手机10的移动通信模块130和无线通信模块120也可以位于同一模块中。In some embodiments, the mobile communication module 130 and the wireless communication module 120 of the handset 10 may also be located in the same module.

摄像头170用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件把光信号转换成电信号,之后将电信号传递给ISP(Image SignalProcessing,图像信号处理)转换成数字图像信号。手机10可以通过ISP,摄像头170,视频编解码器,GPU(Graphic Processing Unit,图形处理器),触摸显示屏102以及应用处理器等实现拍摄功能。Camera 170 is used to capture still images or video. The object is projected through the lens to generate an optical image onto the photosensitive element. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to an ISP (Image Signal Processing) to convert it into a digital image signal. The mobile phone 10 may implement a shooting function through an ISP, a camera 170, a video codec, a GPU (Graphic Processing Unit, graphics processor), a touch display screen 102, an application processor, and the like.

触摸显示屏102包括显示面板。显示面板可以采用液晶显示屏(liquid crystaldisplay,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oled,量子点发光二极管(quantum dot light emitting diodes,QLED)等。例如,显示屏102用于显示手机10的文本编辑器的界面等。The touch display 102 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode). diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oled, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED) and so on. For example, the display screen 102 is used to display the interface of the text editor of the mobile phone 10 and the like.

传感器模块190可以包括接近光传感器、压力传感器,陀螺仪传感器,气压传感器,磁传感器,加速度传感器,距离传感器,指纹传感器,温度传感器,触摸传感器,环境光传感器,骨传导传感器等。The sensor module 190 may include a proximity light sensor, a pressure sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.

音频模块150可以将数字音频信息转换成模拟音频信号输出,或者将模拟音频输入转换为数字音频信号。音频模块150还可以用于对音频信号编码和解码。在一些实施例中,音频模块150可以设置于处理器110中,或将音频模块150的部分功能模块设置于处理器110中。在一些实施例中,音频模块150可以包括扬声器、听筒、麦克风以及耳机接口。The audio module 150 may convert digital audio information to analog audio signal output, or convert analog audio input to digital audio signal. Audio module 150 may also be used to encode and decode audio signals. In some embodiments, the audio module 150 may be provided in the processor 110 , or some functional modules of the audio module 150 may be provided in the processor 110 . In some embodiments, the audio module 150 may include a speaker, earpiece, microphone, and headphone jack.

接口模块160包括外部存储器接口、通用串行总线(universal serial bus,USB)接口及用户标识模块(subscriber identification module,SIM)卡接口等。其中外部存储器接口可以用于连接外部存储卡,例如Micro SD卡,实现扩展手机10的存储能力。外部存储卡通过外部存储器接口与处理器110通信,实现数据存储功能。通用串行总线接口用于手机10和其他手机进行通信。用户标识模块卡接口用于与安装至手机10的SIM卡进行通信,例如读取SIM卡中存储的电话号码,或将电话号码写入SIM卡中。The interface module 160 includes an external memory interface, a universal serial bus (USB) interface, a subscriber identification module (SIM) card interface, and the like. The external memory interface can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile phone 10 . The external memory card communicates with the processor 110 through the external memory interface to realize the data storage function. The Universal Serial Bus interface is used for the handset 10 to communicate with other handsets. The subscriber identity module card interface is used to communicate with the SIM card installed in the mobile phone 10, such as reading the phone number stored in the SIM card, or writing the phone number into the SIM card.

在一些实施例中,手机10还包括按键、马达以及指示器等。其中,按键可以包括音量键、开/关机键等。马达用于使手机10产生振动效果,例如在用户的手机10被呼叫的时候产生振动,以提示用户接听手机10来电。指示器可以包括激光指示器、射频指示器、LED指示器等。In some embodiments, cell phone 10 also includes buttons, motors, indicators, and the like. The keys may include volume keys, on/off keys, and the like. The motor is used to make the mobile phone 10 vibrate. For example, when the user's mobile phone 10 is called, the mobile phone 10 vibrates, so as to prompt the user to answer the incoming call of the mobile phone 10 . Indicators may include laser pointers, radio frequency indicators, LED indicators, and the like.

以下将参考图1、图3和图4,对用户通过手机10进行富文本编辑时,手机10通过本申请实施例提供的文本编辑方法,将用户选择的文本中的内容创建为引用文本的过程进行详细描述。1, 3 and 4, when the user performs rich text editing through the mobile phone 10, the mobile phone 10 uses the text editing method provided by the embodiment of the present application to create the content in the text selected by the user as a reference text. Describe in detail.

如图3所示,创建引用文本的具体过程包括:As shown in Figure 3, the specific process of creating quoted text includes:

步骤300:用户打开安装在手机10上的富文本编辑器。Step 300 : The user opens the rich text editor installed on the mobile phone 10 .

例如,在图1(a)所示的实施例中,用户通过手指点击富文本编辑器的图标11后,手机10打开富文本编辑器。用户可以通过点击如图1(b)所示的键盘,在图1(b)所示的富文本编辑器的空白的内容输入框中进行文本编辑。例如,在图1(c)所示的实施例中,用户当前正在编辑关于“电子邮件协议”的相关内容。For example, in the embodiment shown in FIG. 1( a ), after the user clicks the icon 11 of the rich text editor with a finger, the mobile phone 10 opens the rich text editor. The user can perform text editing in the blank content input box of the rich text editor shown in Fig. 1(b) by clicking the keyboard shown in Fig. 1(b). For example, in the embodiment shown in Figure 1(c), the user is currently editing related content about "email protocol".

在一些实施例中,富文本编辑器可以为开发人员在安卓平台上通过WebView控件加载格式化的标准Html模板,创建的可以承载网页视图的富文本编辑器。然后被安装到手机10上。其中,富文本编辑器可以包括操作菜单以及内容输入框。用户可以在内容输入框里输入文本、图片、音频、视频、表格等。并且可以通过点击操作菜单对内容输入框里输入的内容进行操作,例如,通过点击操作菜单对内容输入框里的文本的字体、颜色、背景等进行设置,以及插入图片、公式等。In some embodiments, the rich text editor can load a formatted standard Html template through the WebView control for developers on the Android platform, and create a rich text editor that can carry a web page view. It is then installed on the mobile phone 10 . The rich text editor may include an operation menu and a content input box. Users can enter text, pictures, audio, video, forms, etc. in the content input box. And you can operate the content entered in the content input box by clicking the operation menu. For example, click the operation menu to set the font, color, background, etc. of the text in the content input box, and insert pictures, formulas, etc.

例如,在图4所示的实施例中,示出了用户通过安装在手机10上的富文本编辑器进行文字编辑的用户界面。其中,内容输入框的下方设置了“撤销”、“恢复”、“字体”、“添加图片”以及“引用文本”菜单。用户可以在内容输入框里输入文字、插入图片。用户通过点击“撤销”菜单可以撤销用户在点击“撤销”之前对于内容输入框里的任何操作,例如撤销输入的文字,撤销插入的图片等。用户通过点击“恢复”菜单可以恢复用户在点击“恢复”之前对于内容输入框里的任何操作,例如恢复删除的文字等。用户通过点击“字体”菜单可以对内容输入框里的文字进行字体的设置,例如设置字体为宋体、黑体、楷体等。用户通过点击“添加图片”菜单可以在内容输入框里当前光标所在的位置处添加图片。用户通过点击引用文本菜单可以弹出已添加的引用文本列表。For example, in the embodiment shown in FIG. 4 , a user interface in which the user performs text editing through the rich text editor installed on the mobile phone 10 is shown. Among them, "undo", "restore", "font", "add picture" and "quote text" menus are set below the content input box. Users can enter text and insert pictures in the content input box. By clicking the "Undo" menu, the user can undo any operation performed by the user in the content input box before clicking "Undo", such as undoing the entered text, undoing the inserted picture, and so on. By clicking on the "Recover" menu, the user can recover any operations performed by the user in the content input box before clicking "Recover", such as recovering deleted text. The user can set the font of the text in the content input box by clicking the "Font" menu, for example, set the font to be Song, Hei, Kai, and so on. The user can add a picture at the current cursor position in the content input box by clicking the "Add picture" menu. Users can pop up a list of added citation texts by clicking the citation text menu.

可以理解的是,在具体实现时,操作菜单的数量和内容可以由开发人员自定义,本申请对此不作限定。It can be understood that, during specific implementation, the number and content of the operation menus can be customized by the developer, which is not limited in this application.

步骤302:手机10获取用户在富文本编辑器中选择的内容。Step 302: The mobile phone 10 obtains the content selected by the user in the rich text editor.

需要说明的是,在一些实施例中,用户在手机10的富文本编辑器中选择的内容可以是:用户在富文本编辑器中通过光标选中的内容。在一些实施例中,用户在手机10的富文本编辑器中选择的内容还可以是:当用户在使用手机10的富文本编辑器进行文本编辑时,用户编辑一些字符或字符集之后,富文本编辑器提醒用户是否选择已编辑的部分或全部内容,待用户确认后,富文本编辑器将其确定为为用户选择的内容。It should be noted that, in some embodiments, the content selected by the user in the rich text editor of the mobile phone 10 may be the content selected by the user through the cursor in the rich text editor. In some embodiments, the content selected by the user in the rich text editor of the mobile phone 10 may also be: when the user is using the rich text editor of the mobile phone 10 for text editing, after the user edits some characters or character sets, the rich text The editor reminds the user whether to select part or all of the edited content, and after the user confirms, the rich text editor determines it as the content selected for the user.

此外,用户选择的内容可以是任意Html能够支持的图文混排的内容,例如文字,图片等。特别地,对于经常出现的文本编辑的场景,例如,用户编辑论文、专利、科研著作等,同一个术语会经常重复性出现。用户可以在富文本编辑器的内容输入框里选择一个词语、一句话、一段文字等,然后作用于富文本编辑器中设置的操作菜单,以触发手机10的可编辑WebView控件调用基于JavaScript脚本写的逻辑,去获取用户在富文本编辑器中选择的内容。需要说明的是,手机10可以通过WebView来实现和JavaScript的交互,在WebView程序中调用JavaScript代码,只需要将WebView控件的支持JavaScript的属性设置为true。In addition, the content selected by the user may be any content that can be supported by Html, such as text, pictures, and the like. In particular, for frequently occurring text editing scenarios, such as user editing of papers, patents, scientific works, etc., the same term is often repeated. The user can select a word, a sentence, a piece of text, etc. in the content input box of the rich text editor, and then act on the operation menu set in the rich text editor to trigger the editable WebView control of the mobile phone 10 to call the script based on JavaScript. The logic to get what the user selected in the rich text editor. It should be noted that the mobile phone 10 can interact with JavaScript through the WebView, and to call the JavaScript code in the WebView program, it is only necessary to set the JavaScript-supporting property of the WebView control to true.

例如,在图4(a)所示的实施例中,用户在手机10上的富文本编辑器里编辑关于电子邮件协议的多段文字,其中多次出现“SMTP协议”。用户当前光标选择的内容为“SMTP协议”。用户选择“SMTP协议”之后,作用于手机10的触摸显示屏,点击引用文本操作菜单,即可触发可编辑的WebView控件加载基于JavaScript脚本写的逻辑,调用JavaScript脚本自带的关于获取光标所选内容的事件方法,去获取用户选中的文本区域的起始位置和结束位置,返回对应该文本区域的内容,即“SMTP协议”。For example, in the embodiment shown in FIG. 4( a ), the user edits several paragraphs of text about the email protocol in the rich text editor on the mobile phone 10 , where “SMTP protocol” appears multiple times. The content currently selected by the user's cursor is "SMTP protocol". After the user selects the "SMTP protocol", it acts on the touch screen of the mobile phone 10 and clicks the reference text operation menu to trigger the editable WebView control to load the logic written based on the JavaScript script, and call the information about getting the cursor selected by the JavaScript script. The event method of the content, to get the start position and end position of the text area selected by the user, and return the content corresponding to the text area, that is, "SMTP protocol".

步骤304:手机10根据预设的数据封装格式,将用户选择的内容进行封装,得到封装后的数据。Step 304: The mobile phone 10 encapsulates the content selected by the user according to the preset data encapsulation format to obtain encapsulated data.

其中,封装后的数据包括与用户选择的内容对应的唯一的数据标识,例如数据标识包括:数据类型和排列顺序等等。以便在数据库或者相关文件里对用户选择的内容进行查找时,能够快速根据封装后的数据标识实现快速查找。The encapsulated data includes a unique data identifier corresponding to the content selected by the user, for example, the data identifier includes: data type and arrangement order, and so on. In order to search the content selected by the user in the database or related files, the quick search can be quickly realized according to the encapsulated data identification.

例如:在图4所示的实施例中,用户选择“SMTP协议”,点击引用文本操作菜单后,手机10获取到当前用户光标选中的内容是“SMTP协议”。然后利用JavaScript脚本实现对“SMTP协议”的封装。例如,在一些实施例中,将“SMTP协议”封装为<div class=”ReferenceText”seqNum=”number 1”></div>。即通过<div>标签把用户选中的部分内容添加为独立的元素。其中,class=”Reference Text”表示用户选中的文本内容的类型为引用文本;seqNum=”number1”表示用户选中的文本内容在引用文本中的顺位为第一顺位。即通过JavaScript将“SMTP协议”定义为引用文本类型,并且其在参考文本中的排序为第一顺位。例如,在图4(b)所示的实施例中,用户选中“SMTP协议”,点击引用文本操作菜单,弹出引用文本列表,其中“SMTP协议”处在引用文本列表的第一行。For example, in the embodiment shown in FIG. 4 , after the user selects “SMTP protocol” and clicks the reference text operation menu, the mobile phone 10 obtains that the content currently selected by the user’s cursor is “SMTP protocol”. Then use JavaScript script to realize the encapsulation of "SMTP protocol". For example, in some embodiments, "SMTP Protocol" is encapsulated as <div class="ReferenceText" seqNum="number 1"></div>. That is, the content selected by the user is added as an independent element through the <div> tag. Wherein, class="Reference Text" indicates that the type of the text content selected by the user is reference text; seqNum="number1" indicates that the order of the text content selected by the user in the reference text is the first order. That is, "SMTP protocol" is defined as a reference text type by JavaScript, and its order in the reference text is the first order. For example, in the embodiment shown in Fig. 4(b), the user selects "SMTP protocol", clicks the reference text operation menu, and a reference text list pops up, wherein "SMTP protocol" is in the first row of the reference text list.

需要说明的是,在具体实现过程中,开发人员可以按照自定义的各种Html数据封装格式(例如<p></p>段落标签、Textarea标签等等),对用户选择的内容进行封装,本申请对此不作限定。It should be noted that, in the specific implementation process, developers can encapsulate the content selected by the user according to various custom Html data encapsulation formats (such as <p></p> paragraph tags, Textarea tags, etc.). This application does not limit this.

步骤306:手机10将封装后的数据存储起来。Step 306: The mobile phone 10 stores the encapsulated data.

例如,在一些实施例中,将封装后的引用文本数据存储到数据库中,或者将封装后的引用文本数据保存到某个文件(例如.sml文件)中,以供JavaScript调用。当用户点击富文本编辑器的引用文本操作菜单时,手机10通过查询数据库,即可把查询到的引用文本在列表中显示出来。例如,当手机10将“SMTP协议”进行封装后保存到引用文本数据库中,则用户点击富文本编辑器的引用文本按钮,弹出的内容即包括“SMTP协议”。For example, in some embodiments, the encapsulated citation text data is stored in a database, or the encapsulated citation text data is saved in a file (eg, a .sml file) for JavaScript invocation. When the user clicks the reference text operation menu of the rich text editor, the mobile phone 10 can display the queried reference text in the list by querying the database. For example, when the mobile phone 10 encapsulates "SMTP protocol" and saves it in the reference text database, the user clicks the reference text button of the rich text editor, and the pop-up content includes "SMTP protocol".

需要说明的是,在具体实现过程中,封装后的数据保存的路径开发人员可以根据实际情况自已定义,本申请对此不作限定。It should be noted that, in the specific implementation process, the developer of the path for saving the encapsulated data can define it according to the actual situation, which is not limited in this application.

以下参考图5和6,进一步地对用户在使用手机10进行富文本编辑时,使用已添加的引用文本为例,对本申请实施例提供的文本编辑方法进行详细描述。5 and 6 , the text editing method provided by the embodiment of the present application is further described in detail by using the referenced text that has been added as an example when the user performs rich text editing using the mobile phone 10 .

具体地,如图5所示,使用引用文本的具体过程包括:Specifically, as shown in Figure 5, the specific process of using quoted text includes:

步骤500:手机10实时监听用户在富文本编辑器中输入的内容。Step 500: The mobile phone 10 monitors the content input by the user in the rich text editor in real time.

例如,在一些实施例中,用户通过在富文本编辑器的内容输入框里输入少量字符(例如两到三个字符),则Html中的变动观察器(Mutation Observer)作为监视文档对象模型(Document Object Model,DOM)变动的接口,实时监控用户在富文本编辑器的内容输入框里输入的字符。用户每次输入新的内容,即DOM每次发生变化,就会触发一次变动观察器事件,调用变动观察器的回调函数,生成一条变动记录。这个变动记录包含了与变动相关的所有信息。例如在图6(a)所示的实施例中,用户在通过在富文本编辑器的内容输入框里输入“SM”,则变动观察器的回调函数即可返回“SM”给Html。For example, in some embodiments, the user enters a few characters (for example, two to three characters) in the content input box of the rich text editor, the Mutation Observer in Html serves as the monitoring document object model (Document Object Model, DOM) change interface, real-time monitoring of the characters entered by the user in the content input box of the rich text editor. Every time the user enters new content, that is, every time the DOM changes, a change observer event will be triggered, and the callback function of the change observer will be called to generate a change record. This change log contains all the information related to the change. For example, in the embodiment shown in FIG. 6( a ), when the user enters "SM" in the content input box of the rich text editor, the callback function of the change observer can return "SM" to Html.

步骤502:手机10遍历引用文本的存储路径,从中筛选出与用户输入的内容匹配的多个待选引用文本,并显示出来供用户选择。其中,引用文本的存储路径(例如数据库、设定的文件.sml文件等)中存储的有按照特定格式封装的多个引用文本数据。Step 502: The mobile phone 10 traverses the storage path of the quoted text, filters out a plurality of candidate quoted texts matching the content input by the user, and displays them for the user to select. Wherein, the storage path of the quoted text (for example, a database, a set file .sml file, etc.) stores a plurality of quoted text data packaged in a specific format.

例如,在图6(a)所示的实施例中,手机10监听到用户在富文本编辑器的内容输入框中输入的内容“SM”之后,调用JavaScript代码去遍历引用文本数据库。从中筛选出与“SM”匹配的多个待选引用文本(例如“SMTP协议”、“SMT工艺”、“SMT论坛”等),并通过如图6(a)所示的弹出框的形式在显示屏显示出来供用户选择。For example, in the embodiment shown in FIG. 6( a ), the mobile phone 10 calls the JavaScript code to traverse the reference text database after monitoring the content “SM” entered by the user in the content input box of the rich text editor. Filter out multiple candidate reference texts matching "SM" (such as "SMTP protocol", "SMT technology", "SMT forum", etc.), and use the pop-up box as shown in Figure 6(a) The display shows up for user selection.

步骤504:手机10获取被用户选择的引用文本的整体数据。Step 504: The mobile phone 10 acquires the overall data of the quoted text selected by the user.

例如,用户在富文本编辑器的内容输入框中输入“SM”之后,从弹出的待选引用文本对话框中选择“SMTP协议”这一条目。则手机10根据被选择的条目去引用文本的保存路径(例如引用文本数据库)中进行查找,获取到与被选的条目对应的引用文本的整体数据。例如,被选择的条目“SMTP协议”为第一顺位,则其对应的在存储路径中封装的数据标识中的顺序为“number 1”,查找与“number 1”标识对应的类别为引用文本的数据,即可获得该条目下的完整内容:“SMTP协议”。For example, after the user enters "SM" in the content input box of the rich text editor, the user selects the item "SMTP protocol" from the pop-up reference text dialog box to be selected. Then, the mobile phone 10 searches in the storage path of the quoted text (for example, a quoted text database) according to the selected entry, and obtains the overall data of the quoted text corresponding to the selected entry. For example, if the selected item "SMTP protocol" is the first order, then its corresponding sequence in the data identifiers encapsulated in the storage path is "number 1", and the category corresponding to the "number 1" identifier is searched as reference text data, you can get the complete content under this entry: "SMTP Protocol".

步骤506:手机10使用JavaScript脚本将被用户选择的引用文本的整体数据插入到用户当前光标所在位置,并且在用户界面上进行显示。Step 506: The mobile phone 10 inserts the overall data of the quoted text selected by the user into the current cursor position of the user by using the JavaScript script, and displays it on the user interface.

例如,在图6(b)所示的实施例中,当用户在引用文本的弹出框中点击选择“SMTP协议”之后,手机10的可编辑通过JavaScript脚本将“SMTP协议”插入到用户当前编辑的位置。For example, in the embodiment shown in FIG. 6( b ), after the user clicks and selects “SMTP protocol” in the pop-up box of the quoted text, the editor of the mobile phone 10 inserts “SMTP protocol” into the user’s current editor through JavaScript script s position.

由于用户在手机10的富文本编辑器的内容输入框里中进行文字编辑时,不需要完全将其要编辑的内容逐个通过手机的输入法编辑出来,只需输入少量字符,手机10即可自动联想出来多个备选的引用文本供用户直接选择。用户选中其需要的引用文本,并插入当前光标所在节点即可。可以大大提高编辑效率,并且可以避免手动编辑时错误输入的情况。When the user edits the text in the content input box of the rich text editor of the mobile phone 10, he does not need to completely edit the content to be edited one by one through the input method of the mobile phone, but only needs to input a few characters, and the mobile phone 10 can automatically A number of alternative citation texts are associated with the user for direct selection. The user can select the reference text he needs and insert the node where the current cursor is located. It can greatly improve the editing efficiency, and can avoid the wrong input in manual editing.

在一些实施例中,用户还可以通过点击引用文本菜单,从弹出的已经保存的引用文本列表中直接选择一个引用文本条目。然后手机10的可编辑WebView控件通过调用JavaScript脚本逻辑,根据被选择的引用文本条目,获取对应的引用文本完整数据,并将其插入到当前光标所在的位置。例如,在图6(c)所示的实施例中,用户点击引用文本菜单后,弹出的引用文本列表中包括“SMTP协议”、“POP协议”以及“IMAP”协议,用户选择“SMTP协议”,即可将选中的“SMTP协议”插入当前光标所在位置。In some embodiments, the user can also directly select a reference text entry from the pop-up list of saved reference texts by clicking the reference text menu. Then, the editable WebView control of the mobile phone 10 obtains the complete data of the corresponding reference text according to the selected reference text entry by invoking the JavaScript script logic, and inserts it into the current cursor position. For example, in the embodiment shown in Fig. 6(c), after the user clicks the reference text menu, the pop-up reference text list includes "SMTP protocol", "POP protocol" and "IMAP" protocol, and the user selects "SMTP protocol" to insert the selected "SMTP Protocol" into the current cursor position.

以下将参考图7和8,以用户在使用手机10进行富文本编辑时,修改现有的引用文本为例,对本申请实施例提供的文本编辑方法进行详细描述。7 and 8, the text editing method provided by the embodiment of the present application will be described in detail by taking the user modifying the existing quoted text when using the mobile phone 10 for rich text editing as an example.

如图7所示,修改引用文本的具体过程包括:As shown in Figure 7, the specific process of modifying the quoted text includes:

步骤700:手机10实时监听用户在富文本编辑器的内容输入框里输入的引用文本的内容变化。Step 700: The mobile phone 10 monitors in real time the content change of the quoted text input by the user in the content input box of the rich text editor.

例如,在图8(a)所示的实施例中,用户在手机10富文本编辑器的内容输入框里一共有5处内容之前编辑的是“SMTP协议”。如图8(b)所示,用户在当前光标所在的位置处将“SMTP协议”直接修改为“smtp协议”。则手机10的可编辑WebView控件加载的Html模板中的变动观察器监听到“SMTP协议”被修改为“smtp协议”,并返回修改记录。For example, in the embodiment shown in FIG. 8( a ), the user edits “SMTP protocol” before a total of 5 contents in the content input box of the rich text editor of the mobile phone 10 . As shown in Fig. 8(b), the user directly modifies "SMTP protocol" to "smtp protocol" at the current cursor position. Then, the change observer in the Html template loaded by the editable WebView control of the mobile phone 10 monitors that the "SMTP protocol" is modified to "smtp protocol", and returns the modification record.

步骤702:手机10获取修改后的内容。Step 702: The mobile phone 10 obtains the modified content.

例如,在图8(b)所示的实施例中,Html中的变动观察器监听到“SMTP协议”被修改为“smtp协议”之后。手机10的可编辑WebView控件调用基于JavaScript脚本写的程序,去获取变动观察器返回的修改记录中的被修改后的内容,即“smtp协议”。For example, in the embodiment shown in FIG. 8( b ), the change observer in Html listens after the “SMTP protocol” is changed to “smtp protocol”. The editable WebView control of the mobile phone 10 calls the program written based on the JavaScript script to obtain the modified content in the modification record returned by the change observer, that is, the "smtp protocol".

步骤704:手机10获取富文本编辑器的内容输入框中出现用户修改前的引用文本的所有位置。Step 704: The mobile phone 10 obtains all the positions where the quoted text before the user's modification appears in the content input box of the rich text editor.

例如,在图8(a)所示的实施例中,手机10的可编辑WebView控件调用基于JavaScript脚本写的程序,去遍历富文本编辑器的内容输入框里的所有内容,获取到用户在富文本编辑器的内容输入框中编辑的Html内容中总共有5处出现“SMTP协议”。For example, in the embodiment shown in FIG. 8( a ), the editable WebView control of the mobile phone 10 calls a program written based on JavaScript script to traverse all the content in the content input box of the rich text editor, and obtain the user’s content in the rich text editor. In the Html content edited in the content input box of the text editor, "SMTP protocol" appears in 5 places.

步骤706:手机10将修改后的引用文本的内容插入到修改前的引用文本的所处的所有节点。以实现通过修改一处内容,而达到将多处相同内容同时修改的效果,即实现联动修改。从而使得用户在进行文本编辑时,尤其对于篇幅较长的内容中重复出现多处相同词语、句子、段落时,大大缩短对于某个相同内容进行修改的时间,提高用户编辑效率。Step 706: The mobile phone 10 inserts the content of the modified reference text into all nodes where the reference text before modification is located. In order to achieve the effect of modifying the same content in multiple places at the same time by modifying one content, that is, realizing linkage modification. Therefore, when the user edits the text, especially when the same words, sentences and paragraphs appear repeatedly in a long content, the time for modifying a certain same content is greatly shortened, and the editing efficiency of the user is improved.

具体地,例如,在图8(c)所示的实施例中,手机10的可编辑WebView控件调用基于JavaScript脚本代码,在原本存储有采用特定格式封装的引用文本数据的存储路径中,检索出“SMTP协议”的封装数据,在其中将“SMTP协议”修改为“smtp协议”。然后通过JavaScript,将富文本编辑器的内容输入框中原本另外4处的“SMTP协议”修改为“smtp协议”。Specifically, for example, in the embodiment shown in FIG. 8( c ), the editable WebView control of the mobile phone 10 is invoked based on the JavaScript script code, and in the storage path that originally stored the reference text data encapsulated in a specific format, retrieved The encapsulated data of "SMTP protocol", in which "SMTP protocol" is changed to "smtp protocol". Then, through JavaScript, change the "SMTP protocol" in the other 4 places in the content input box of the rich text editor to "smtp protocol".

此外,在一些实施例中,用户还可以通过直接点击手机10的富文本编辑器中的引用文本操作菜单,从弹出的引用文本对话框中选择用户想要修改的引用文本进行修改。In addition, in some embodiments, the user can also directly click the reference text operation menu in the rich text editor of the mobile phone 10, and select the reference text that the user wants to modify from the pop-up reference text dialog box to modify.

例如,在图9(a)所示的实施例中,用户通过点击引用文本操作菜单,手机10通过查询数据库,把查询到的引用文本“SMTP协议”、“POP协议”以及“IMAP协议”通过对话框弹出来。用户直接选中“SMTP协议”将其修改为“smtp协议”,手机10的可编辑WebView控件调用基于JavaScript脚本写的逻辑,采用类似于步骤704的方法去获取富文本编辑器的内容输入框中出现用户修改前的引用文本的所有位置。例如,在图9(b)所示的实施例中,在原本存储有采用特定格式封装的引用文本数据的存储路径中,检索出“SMTP协议”的封装数据,在其中将“SMTP协议”修改为“smtp协议”。然后通过JavaScript将用户在富文本编辑器的内容输入框中已经编辑的5个“SMTP协议”直接修改为“smtp协议”。即用户通过点击引用文本操作菜单,将待修改的引用文本直接进行修改,即可将输入框中所有出现待修改的引用文本的节点处的内容直接一次性修改为修改后的引用文本,大大提高文本修改效率,且避免漏改、错改的情况发生。For example, in the embodiment shown in FIG. 9( a ), the user clicks on the reference text operation menu, and the mobile phone 10 queries the database to pass the queried reference texts “SMTP protocol”, “POP protocol” and “IMAP protocol” through A dialog box pops up. The user directly selects "SMTP protocol" and modifies it to "smtp protocol", and the editable WebView control of the mobile phone 10 invokes the logic written based on the JavaScript script, and uses a method similar to step 704 to obtain the content of the rich text editor. All positions of quoted text before user modification. For example, in the embodiment shown in FIG. 9( b ), in the storage path that originally stored the quoted text data encapsulated in a specific format, the encapsulated data of the “SMTP protocol” is retrieved, and the “SMTP protocol” is modified therein. For "smtp protocol". Then, directly modify the five "SMTP protocols" that the user has edited in the content input box of the rich text editor to "smtp protocols" through JavaScript. That is, the user can directly modify the reference text to be modified by clicking the reference text operation menu, and then the content of all nodes in the input box where the reference text to be modified is displayed can be directly modified into the modified reference text at one time, which greatly improves the performance of the reference text. Text modification efficiency, and avoid omissions and mistakes.

以下将参考图10介绍本申请实施例提供的文本编辑器1000。The text editor 1000 provided by this embodiment of the present application will be described below with reference to FIG. 10 .

如图10所示,文本编辑器1000包括文本输入框1001、引用文本操作菜单1002、引用文本确定单元1003及联动修改单元1004。其中,文本输入框1001,用于向用户提供对文本编辑器1000中的文本进行编辑的界面。As shown in FIG. 10 , the text editor 1000 includes a text input box 1001 , a reference text operation menu 1002 , a reference text determination unit 1003 and a linkage modification unit 1004 . The text input box 1001 is used to provide the user with an interface for editing the text in the text editor 1000 .

引用文本确定单元1003,用于在检测到用户在文本编辑器1000中的文本中选择出第一内容并且点击引用文本操作菜单1002的情况下,将用户从文本编辑器1000中的文本中选择出的第一内容确定为引用文本。The reference text determination unit 1003 is configured to select the user from the text in the text editor 1000 when it is detected that the user selects the first content in the text in the text editor 1000 and clicks the reference text operation menu 1002 The first content of is identified as the quoted text.

联动修改单元1004,用于在检测到用户将文本第一位置处的与第一内容相同的第二内容进行了修改的情况下,对文本第二位置处的与第一内容相同的第三内容进行相同的修改。The linkage modification unit 1004 is configured to modify the third content at the second position of the text that is the same as the first content when it is detected that the user has modified the second content at the first position of the text that is the same as the first content Make the same modifications.

可以理解,图10所示的文本编辑器1000与本申请提供的文本处理方法相对应,以上关于本申请的提供的文本处理方法的具体描述中的技术细节依然适用于图10所示的文本编辑器1000,具体描述请参见上文,在此不再赘述。It can be understood that the text editor 1000 shown in FIG. 10 corresponds to the text processing method provided by this application, and the technical details in the specific description of the text processing method provided by this application are still applicable to the text editing shown in FIG. 10 . The device 1000, please refer to the above for the specific description, which will not be repeated here.

本申请公开的机制的各实施例可以被实现在硬件、软件、固件或这些实现方法的组合中。本申请的实施例可实现为在可编程系统上执行的计算机程序或程序代码,该可编程系统包括至少一个处理器、存储系统(包括易失性和非易失性存储器和/或存储元件)、至少一个输入设备以及至少一个输出设备。Embodiments of the mechanisms disclosed herein may be implemented in hardware, software, firmware, or a combination of these implementation methods. Embodiments of the present application may be implemented as a computer program or program code executing on a programmable system including at least one processor, a storage system (including volatile and nonvolatile memory and/or storage elements) , at least one input device, and at least one output device.

可将程序代码应用于输入指令,以执行本申请描述的各功能并生成输出信息。可以按已知方式将输出信息应用于一个或多个输出设备。为了本申请的目的,处理系统包括具有诸如例如数字信号处理器(Digital Signal Processing,DSP)、微控制器、(Application Specific Integrated Circuit,ASIC)或微处理器之类的处理器的任何系统。Program code may be applied to input instructions to perform the functions described herein and to generate output information. The output information can be applied to one or more output devices in a known manner. For the purposes of this application, a processing system includes any system having a processor such as, for example, a Digital Signal Processing (DSP), microcontroller, (Application Specific Integrated Circuit, ASIC), or microprocessor.

程序代码可以用高级程序化语言或面向对象的编程语言来实现,以便与处理系统通信。在需要时,也可用汇编语言或机器语言来实现程序代码。事实上,本申请中描述的机制不限于任何特定编程语言的范围。在任一情形下,该语言可以是编译语言或解释语言。The program code may be implemented in a high-level procedural language or an object-oriented programming language to communicate with the processing system. The program code may also be implemented in assembly or machine language, if desired. In fact, the mechanisms described in this application are not limited in scope to any particular programming language. In either case, the language may be a compiled language or an interpreted language.

在一些情况下,所公开的实施例可以以硬件、固件、软件或其任何组合来实现。所公开的实施例还可以被实现为由一个或多个暂时或非暂时性机器可读(例如,计算机可读)存储介质承载或存储在其上的指令,其可以由一个或多个处理器读取和执行。例如,指令可以通过网络或通过其他计算机可读介质分发。因此,机器可读介质可以包括用于以机器(例如,计算机)可读的形式存储或传输信息的任何机制,包括但不限于,软盘、光盘、光碟、只读存储器(CD-ROMs)、磁光盘、只读存储器(Read Only Memory,ROM)、随机存取存储器(Randomaccess memory,RAM)、可擦除可编程只读存储器(Erasable Programmable Read OnlyMemory,EPROM)、电可擦除可编程只读存储器(Electrically Erasable ProgrammableRead-Only Memory,EEPROM)、磁卡或光卡、闪存、或用于利用因特网以电、光、声或其他形式的传播信号来传输信息(例如,载波、红外信号数字信号等)的有形的机器可读存储器。因此,机器可读介质包括适合于以机器(例如计算机)可读的形式存储或传输电子指令或信息的任何类型的机器可读介质。In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments can also be implemented as instructions carried by or stored on one or more transitory or non-transitory machine-readable (eg, computer-readable) storage media, which can be executed by one or more processors read and execute. For example, the instructions may be distributed over a network or over other computer-readable media. Thus, a machine-readable medium can include any mechanism for storing or transmitting information in a form readable by a machine (eg, a computer), including, but not limited to, floppy disks, optical disks, optical disks, read only memories (CD-ROMs), magnetic Optical disc, Read Only Memory (ROM), Random Access Memory (RAM), Erasable Programmable Read Only Memory (EPROM), Electrically Erasable Programmable Read Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), magnetic or optical cards, flash memory, or devices used to transmit information (eg, carrier waves, infrared digital signals, etc.) using the Internet in electrical, optical, acoustic, or other forms of propagation signals Tangible machine-readable storage. Thus, machine-readable media includes any type of machine-readable media suitable for storing or transmitting electronic instructions or information in a form readable by a machine (eg, a computer).

在附图中,可以以特定布置和/或顺序示出一些结构或方法特征。然而,应该理解,可能不需要这样的特定布置和/或排序。而是,在一些实施例中,这些特征可以以不同于说明性附图中所示的方式和/或顺序来布置。另外,在特定图中包括结构或方法特征并不意味着暗示在所有实施例中都需要这样的特征,并且在一些实施例中,可以不包括这些特征或者可以与其他特征组合。In the drawings, some structural or method features may be shown in specific arrangements and/or sequences. It should be understood, however, that such specific arrangements and/or orderings may not be required. Rather, in some embodiments, the features may be arranged in a manner and/or order different from that shown in the illustrative figures. Additionally, the inclusion of structural or method features in a particular figure is not meant to imply that such features are required in all embodiments, and in some embodiments such features may not be included or may be combined with other features.

需要说明的是,本申请各设备实施例中提到的各单元/模块都是逻辑单元/模块,在物理上,一个逻辑单元/模块可以是一个物理单元/模块,也可以是一个物理单元/模块的一部分,还可以以多个物理单元/模块的组合实现,这些逻辑单元/模块本身的物理实现方式并不是最重要的,这些逻辑单元/模块所实现的功能的组合才是解决本申请所提出的技术问题的关键。此外,为了突出本申请的创新部分,本申请上述各设备实施例并没有将与解决本申请所提出的技术问题关系不太密切的单元/模块引入,这并不表明上述设备实施例并不存在其它的单元/模块。It should be noted that each unit/module mentioned in each device embodiment of this application is a logical unit/module. Physically, a logical unit/module may be a physical unit/module or a physical unit/module. A part of a module can also be implemented by a combination of multiple physical units/modules. The physical implementation of these logical units/modules is not the most important, and the combination of functions implemented by these logical units/modules is the solution to the problem of this application. The crux of the technical question raised. In addition, in order to highlight the innovative part of the present application, the above-mentioned device embodiments of the present application do not introduce units/modules that are not closely related to solving the technical problems raised in the present application, which does not mean that the above-mentioned device embodiments do not exist. other units/modules.

需要说明的是,在本专利的示例和说明书中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in the examples and specification of this patent, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that Any such actual relationship or sequence exists between these entities or operations. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device that includes a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a" does not preclude the presence of additional identical elements in a process, method, article, or device that includes the element.

虽然通过参照本申请的某些优选实施例,已经对本申请进行了图示和描述,但本领域的普通技术人员应该明白,可以在形式上和细节上对其作各种改变,而不偏离本申请的精神和范围。Although the present application has been illustrated and described with reference to certain preferred embodiments thereof, it will be understood by those of ordinary skill in the art that various changes in form and detail may be made therein without departing from the present disclosure The spirit and scope of the application.

Claims (22)

1. A method of text processing, comprising:
the method comprises the steps that a text editor of the electronic equipment determines first content selected by a user from text in the text editor as reference text;
in the case where the text editor detects that a user has modified second content identical to the first content at a first position of the text, the text editor performs the same modification on third content identical to the first content at a second position of the text.
2. The method of claim 1, wherein the first content comprises at least one of a character and an image.
3. The method of claim 1, wherein determining, by a text editor of the electronic device, the first content selected by the user from the text in the text editor as the reference text comprises:
when detecting that the same content as the first content appears at a plurality of positions in the text, the text editor prompts a user whether to set the first content as a reference text;
in a case where the user determines to set the first content as reference text, the text editor determines the first content as reference text.
4. The method of claim 1 or 3, wherein determining, by a text editor of the electronic device, the first content selected by the user from text in the text editor as the reference text comprises:
a text editor of the electronic device receives a trigger event bound to a user selecting first content from text in the text editor;
the text editor acquires the first content selected by a user from the text in the text editor;
the text editor packages the first content according to a preset data packaging format to obtain packaged data;
and the text editor stores the packaged data.
5. The method of claim 4, wherein the text editor includes a reference text operations menu, and wherein the triggering event bound to the user selecting the first content from the text in the text editor comprises: and clicking the reference text operation menu after the user selects the first content through a cursor.
6. The method of claim 4, wherein storing the encapsulated data comprises:
and storing the packaged data in at least one of a database and a setting file.
7. The method of claim 1, wherein, in the case that the text editor detects that a user modifies second content identical to the first content at the first position of the text, the same modification of third content identical to the first content at the second position of the text by the text editor comprises:
a text editor of the electronic equipment monitors that a user modifies second content which is the same as the first content at a first position of the text, and then obtains the modified second content;
the text editor traverses the text to obtain a second position where third content identical to the first content in the text is located;
the text editor replaces third content identical to the first content at the second position of the text with content identical to the modified second content.
8. The method of claim 1, further comprising:
and the text editor replaces the content which appears at a plurality of positions in the text and is the same as the first content with the content to be replaced by the user when detecting the replacement operation of the reference text of the first content by the user.
9. The method of claim 1, wherein the first content comprises a plurality of characters, and wherein the method further comprises:
in the event that the text editor detects that a user has entered a partial character of the first content at a third location, displaying all characters of the first content to the user;
in a case where it is detected that the user has clicked on all the characters of the first content displayed, adding all the characters of the first content at the third position.
10. The method of claim 1, wherein a text editor of the electronic device is created based on a WebView control loading Html template.
11. The method of claim 10, wherein determining, by a text editor of the electronic device, the first content selected by the user from the text in the text editor as the reference text comprises:
and the WebView control of the electronic equipment calls the Javascript code, and determines first content selected by a user from the text in the text editor as a reference text.
12. The method of claim 10, wherein, in the case that the text editor detects that a user modifies second content identical to the first content at the first position of the text, the same modification of third content identical to the first content at the second position of the text by the text editor comprises:
and the WebView control of the electronic equipment calls Javascript codes, and under the condition that the second content which is the same as the first content and is positioned at the first position of the text is detected to be modified by a user, the third content which is the same as the first content and is positioned at the second position of the text is modified in the same way.
13. A text editor, comprising: the system comprises a text input box, a reference text operation menu, a reference text determining unit and a linkage modifying unit;
the text input box is used for providing an interface for editing the text in the text editor for a user;
the reference text determining unit is used for determining the first content selected by the user from the text in the text editor as the reference text under the condition that the first content selected by the user from the text in the text editor is detected and the reference text operation menu is clicked;
the linkage modification unit is used for modifying third content which is the same as the first content at the second position of the text under the condition that the user is detected to modify the second content which is the same as the first content at the first position of the text.
14. The text editor of claim 13 wherein the first content comprises at least one of a character and an image.
15. The text editor of claim 13, wherein the reference text determining unit determines the first content selected by the user from the text in the text editor as the reference text by:
the reference text determining unit prompts a user whether to set the first content as a reference text when detecting that the same content as the first content appears at a plurality of positions in the text;
in a case where the user determines to set the first content as the reference text, the reference text determination unit determines the first content as the reference text.
16. The text editor of claim 13 or 15, wherein the reference text determining unit determines the first content selected by the user from the text in the text editor as the reference text by:
the reference text determination unit receives a trigger event bound to a user selecting a first content from a text in a text editor;
the reference text determining unit acquires the first content selected by a user from the text in the text editor;
the reference text determining unit packages the first content according to a preset data packaging format to obtain packaged data;
the reference text determination unit stores the packaged data.
17. The text editor of claim 13 wherein the linkage modification unit modifies a third content at the second location of the text that is identical to the first content by detecting that a user modified a second content at the first location of the text that is identical to the first content by:
the linkage modification unit monitors that a second content which is the same as the first content and is positioned at the first position of the text of the user is modified, and then the modified second content is obtained;
the linkage modification unit traverses the text to obtain a second position where a third content identical to the first content in the text is located;
the linkage modification unit replaces third content, which is the same as the first content, at a second position of the text with content, which is the same as the modified second content.
18. The text editor of claim 13 further comprising:
and the unified replacing unit is used for replacing the content which appears at a plurality of positions in the text and is the same as the first content with the content to be replaced by the user under the condition that the replacing operation of the reference text of the first content by the user is detected.
19. The text editor of claim 13 wherein the first content comprises a plurality of characters and wherein the first content comprises a plurality of characters
The text editor further comprises:
an association input unit for displaying all characters of the first content to a user in a case where it is detected that the user inputs a part of characters of the first content at a third position; adding all characters of the first content at the third position in case that it is detected that the user clicks all characters of the first content displayed.
20. The text editor of claim 13 further comprising:
and the reference text display unit is used for displaying the determined reference text under the condition that the user is detected to click the reference text operation menu.
21. A readable medium having stored thereon instructions that, when executed on an electronic device, cause the electronic device to perform the text processing method of any one of claims 1-12.
22. An electronic device, comprising:
a memory for storing instructions for execution by one or more processors of the electronic device, an
A processor, being one of processors of an electronic device, for performing the text processing method of any one of claims 1-12.
CN202110183126.7A 2021-02-09 2021-02-09 Text processing method, text editor, readable medium and electronic device Pending CN114912421A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110183126.7A CN114912421A (en) 2021-02-09 2021-02-09 Text processing method, text editor, readable medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110183126.7A CN114912421A (en) 2021-02-09 2021-02-09 Text processing method, text editor, readable medium and electronic device

Publications (1)

Publication Number Publication Date
CN114912421A true CN114912421A (en) 2022-08-16

Family

ID=82761279

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110183126.7A Pending CN114912421A (en) 2021-02-09 2021-02-09 Text processing method, text editor, readable medium and electronic device

Country Status (1)

Country Link
CN (1) CN114912421A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117632105A (en) * 2023-11-07 2024-03-01 苏州蓝博控制技术有限公司 Code jumping methods, storage media and electronic devices in the IDE dialog window
WO2024152742A1 (en) * 2023-01-17 2024-07-25 天翼数字生活科技有限公司 Rich text editing method and apparatus, storage medium and computer device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104090669A (en) * 2014-07-16 2014-10-08 三星电子(中国)研发中心 Input method editing method and device
CN107831915A (en) * 2017-10-17 2018-03-23 北京三快在线科技有限公司 One kind input complementing method, device, electronic equipment and readable storage medium storing program for executing
CN111209727A (en) * 2019-12-31 2020-05-29 网易(杭州)网络有限公司 Picture processing method and device, electronic equipment and storage medium
CN111222075A (en) * 2020-01-15 2020-06-02 平安普惠企业管理有限公司 Data transmission method based on multiple Webviews, server and storage medium
CN111461933A (en) * 2020-04-13 2020-07-28 向英 Text data processing method, software, storage medium and equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104090669A (en) * 2014-07-16 2014-10-08 三星电子(中国)研发中心 Input method editing method and device
CN107831915A (en) * 2017-10-17 2018-03-23 北京三快在线科技有限公司 One kind input complementing method, device, electronic equipment and readable storage medium storing program for executing
CN111209727A (en) * 2019-12-31 2020-05-29 网易(杭州)网络有限公司 Picture processing method and device, electronic equipment and storage medium
CN111222075A (en) * 2020-01-15 2020-06-02 平安普惠企业管理有限公司 Data transmission method based on multiple Webviews, server and storage medium
CN111461933A (en) * 2020-04-13 2020-07-28 向英 Text data processing method, software, storage medium and equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024152742A1 (en) * 2023-01-17 2024-07-25 天翼数字生活科技有限公司 Rich text editing method and apparatus, storage medium and computer device
CN117632105A (en) * 2023-11-07 2024-03-01 苏州蓝博控制技术有限公司 Code jumping methods, storage media and electronic devices in the IDE dialog window

Similar Documents

Publication Publication Date Title
US10817613B2 (en) Access and management of entity-augmented content
US10496256B2 (en) Method and electronic device for displaying related information of parsed data
JP6320420B2 (en) Autocomplete with persisted atomically linked entities
US20170249934A1 (en) Electronic device and method for operating the same
CN105718500B (en) Text-based content management method and device for electronic equipment
US20150254518A1 (en) Text recognition through images and video
CN103702297A (en) Short message enhancement method, device and system
CN114020197B (en) Cross-application message processing method, electronic device and readable storage medium
CN108804469B (en) Webpage identification method and electronic equipment
CN104509041A (en) Forgotten attachment detection
US10540415B2 (en) Apparatus and method for managing history information in an electronic device
CN114912421A (en) Text processing method, text editor, readable medium and electronic device
CN113536180B (en) Project processing methods, devices, electronic devices, storage media and program products
US10963641B2 (en) Multi-lingual tokenization of documents and associated queries
WO2023082817A1 (en) Application program recommendation method
US9426277B2 (en) Method and apparatus for operating message function in connection with note function
CN113612886B (en) Strange number processing method and computer-readable storage medium
CN108459884A (en) Application program closing method and device, storage medium and electronic equipment
WO2016173136A1 (en) Terminal application processing method and device thereof
EP3070623A1 (en) Electronic device and method of processing information in electronic device
EP4270170A1 (en) Voice broadcasting method and apparatus
CN117808015B (en) Translation method, electronic device and computer storage medium
CN116709339B (en) Detection method of application notification message and electronic equipment
CN116737037B (en) Stack management method in interface display and related device
CN115858824B (en) Intelligent generation method and device for interactive digital media articles

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination