CN106339160A - Browsing interactive processing method and device - Google Patents
Browsing interactive processing method and device Download PDFInfo
- Publication number
- CN106339160A CN106339160A CN201610737309.8A CN201610737309A CN106339160A CN 106339160 A CN106339160 A CN 106339160A CN 201610737309 A CN201610737309 A CN 201610737309A CN 106339160 A CN106339160 A CN 106339160A
- Authority
- CN
- China
- Prior art keywords
- selected text
- learning
- text
- option
- type
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04842—Selection of displayed objects or displayed text elements
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/543—User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/54—Indexing scheme relating to G06F9/54
- G06F2209/543—Local
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Human Computer Interaction (AREA)
- Machine Translation (AREA)
Abstract
本公开揭示了一种浏览交互处理方法及装置,属于计算机技术领域。所述浏览交互处理方法包括:当检测到对选定文本的交互操作触发操作行为时,显示所述交互操作对应的选项,所述交互操作对应的选项中包括对所述选定文本的学习选项;当检测到所述学习选项被选定时,获取所述选定文本的学习内容,所述学习内容包括提供的用于学习的所述选定文本的内容;提供所述学习内容供用户学习。本公开解决了目前用户所使用的文字解释信息的查询方式的操作较为繁琐的问题,简化了用户操作。
The disclosure discloses a browsing interaction processing method and device, which belong to the field of computer technology. The browsing interaction processing method includes: when it is detected that an interactive operation on the selected text triggers an operation behavior, displaying options corresponding to the interactive operation, the options corresponding to the interactive operation include a learning option on the selected text ; When it is detected that the learning option is selected, obtain the learning content of the selected text, the learning content includes the content of the selected text provided for learning; provide the learning content for the user to learn . The present disclosure solves the problem that the query mode of text interpretation information currently used by users is relatively cumbersome, and simplifies user operations.
Description
技术领域technical field
本公开涉及计算机技术领域,特别涉及一种浏览交互处理方法及装置。The present disclosure relates to the field of computer technology, in particular to a browsing interaction processing method and device.
背景技术Background technique
随着电子设备技术的发展,越来越多的用户选择在电子设备进行文字阅读。With the development of electronic device technology, more and more users choose to read text on the electronic device.
在用户进行文字阅读的过程中,经常会遇到一些生僻字或者生僻词语。为了获知生僻字或生僻词语的意思,用户通常选中生僻字或生僻词语进行复制,然后打开浏览器,将选中的生僻字或生僻词语粘贴至搜索引擎中进行搜索,在搜索结果中查看描述生僻字或生僻词语的解释信息。目前用户所使用的这种文字解释信息的查询方式的操作较为繁琐。In the process of text reading, the user often encounters some uncommon characters or uncommon words. In order to know the meaning of uncommon words or uncommon words, users usually select uncommon words or uncommon words to copy, then open the browser, paste the selected uncommon words or uncommon words into a search engine to search, and view the description of uncommon words in the search results Or explanation information for uncommon words. The operation of the query mode of text explanation information currently used by users is relatively cumbersome.
发明内容Contents of the invention
本公开提供一种浏览交互处理方法及装置。所述技术方案如下:The disclosure provides a browsing interaction processing method and device. Described technical scheme is as follows:
根据本公开实施例的第一方面,提供一种浏览交互处理方法,所述方法包括:当检测到对选定文本的交互操作触发操作行为时,显示所述交互操作对应的选项,所述交互操作对应的选项中包括对所述选定文本的学习选项;当检测到所述学习选项被选定时,获取所述选定文本的学习内容,所述学习内容包括提供的用于学习的所述选定文本的内容;提供所述学习内容供用户学习。由于在检测到对选定文本的交互操作触发操作行为时,显示了用于触发电子设备向用户提供选定文本的学习内容的学习选项,使得用户通过选定学习选项可获得选定文本的学习内容,解决了目前用户所使用的文字解释信息的查询方式的操作较为繁琐的问题,简化了用户操作。According to the first aspect of the embodiments of the present disclosure, there is provided a browsing interaction processing method, the method comprising: when it is detected that an interactive operation on selected text triggers an operation behavior, displaying options corresponding to the interactive operation, and the interactive The options corresponding to the operation include learning options for the selected text; when it is detected that the learning option is selected, the learning content of the selected text is acquired, and the learning content includes all the learning content provided for learning. Describe the content of the selected text; provide the learning content for the user to learn. Since the learning option for triggering the electronic device to provide the user with the learning content of the selected text is displayed when an interactive operation on the selected text is detected to trigger the operation behavior, the user can obtain the learning of the selected text by selecting the learning option content, which solves the problem that the operation of the query method of text explanation information currently used by users is relatively cumbersome, and simplifies user operations.
可选的,所述获取所述选定文本的学习内容,包括:确定出预先设定的类型,获取所述选定文本的符合所述类型的学习内容;和/或,显示所述学习选项对应的至少一个类型,确定出被选定的类型,获取所述选定文本的符合所述类型的学习内容。Optionally, the acquiring the learning content of the selected text includes: determining a preset type, acquiring the learning content of the selected text conforming to the type; and/or, displaying the learning options Corresponding to at least one type, the selected type is determined, and the learning content of the selected text conforming to the type is acquired.
可选的,所述获取所述选定文本的符合所述类型的学习内容,包括:当所述类型指示对所述选定文本进行文本解释时,在网络上搜索所述选定文本的符合所述类型的学习内容,将搜索结果作为所述选定文本的学习内容;当所述类型指示对所述选定文本进行指定语言的语音播报时,将所述选定文本转换成符合所述指定语言的语音信息,将所述语音信息作为所述选定文本的学习内容。通过在用户选定的类型指示对选定文本进行文本解释时,在网络上搜索选定文本的符合该类型的学习内容,可将选定文本的注音和释义提供给用户进行学习。通过在用户选定的类型指示对选定文本进行指定语言的语音播报时,将选定文本转换成符合指定语言的语音信息,可将选定文本翻译成指定语言后的读音提供给用户进行学习。Optionally, the acquiring learning content of the selected text conforming to the type includes: when the type indicates a text interpretation of the selected text, searching for the matching content of the selected text on the Internet For the type of learning content, the search result is used as the learning content of the selected text; when the type indicates that the selected text is to be spoken in a specified language, the selected text is converted into a text that conforms to the Speech information in a specified language is used as the learning content of the selected text. When the type selected by the user indicates a text interpretation of the selected text, searching the network for learning content matching the type of the selected text, the phonetic notation and paraphrase of the selected text can be provided to the user for learning. By converting the selected text into voice information in the specified language when the type selected by the user indicates the voice broadcast of the selected text in the specified language, the pronunciation of the selected text translated into the specified language can be provided to the user for learning .
可选的,所述获取所述选定文本的学习内容,包括:当所述被选定的学习选项指示对所述选定文本进行文本解释时,在网络上搜索所述选定文本的与被选定的学习选项匹配的学习内容,将搜索结果作为所述选定文本的学习内容;当所述被选定的学习选项指示对所述选定文本进行语音播报时,将所述被选定文本转换成语音信息,将所述语音信息作为所述选定文本的学习内容。通过当被选定的学习选项指示对选定文本进行文本解释时,在网络上搜索选定文本的与被选定的学习选项匹配的学习内容,可将选定文本的注音和释义提供给用户进行学习。通过当被选定的学习选项指示对选定文本进行语音播报时,将被选定文本转换成语音信息,可将选定文本翻译成指定语言后的读音提供给用户进行学习。Optionally, the acquiring the learning content of the selected text includes: when the selected learning option indicates a text interpretation of the selected text, searching for the related text of the selected text on the Internet The learning content matched by the selected learning option, the search result is used as the learning content of the selected text; when the selected learning option indicates that the selected text is to be voice broadcasted, the selected The selected text is converted into voice information, and the voice information is used as the learning content of the selected text. The phonetic and paraphrase of the selected text may be provided to the user by searching the web for learning content of the selected text matching the selected learning option when the selected learning option indicates a textual interpretation of the selected text to study. By converting the selected text into voice information when the selected learning option indicates that the selected text is to be spoken, the pronunciation of the selected text translated into a designated language can be provided to the user for learning.
可选的,所述将所述被选定文本转换成语音信息,包括:将所述被选定文本转换成与所述选定文本同语言类型的语音信息;或者,将所述被选定文本转换成与电子设备的系统同语言类型的语音信息。Optionally, converting the selected text into voice information includes: converting the selected text into voice information in the same language as the selected text; or converting the selected The text is converted into voice information of the same language type as the system of the electronic device.
可选的,所述将所述被选定文本转换成与电子设备的系统同语言类型的语音信息,包括:确定出所述选定文本的语言类型,获取电子设备上系统设置的语言类型;当所述选定文本的语言类型与所述系统设置的语言类型相同时,利用语音合成系统根据所述选定文本的读音生成与所述选定文本对应的语音信息;当所述选定文本的语言类型与所述系统设置的语言类型不相同时,将所述选定文本按照所述系统设置的语言类型进行翻译,利用语音合成系统根据翻译出的文本的读音生成与所述选定文本对应的语音信息。Optionally, converting the selected text into voice information of the same language type as the system of the electronic device includes: determining the language type of the selected text, and obtaining the language type set by the system on the electronic device; When the language type of the selected text is the same as the language type set by the system, the speech synthesis system is used to generate voice information corresponding to the selected text according to the pronunciation of the selected text; when the selected text When the language type is not the same as the language type set by the system, the selected text is translated according to the language type set by the system, and the speech synthesis system is used to generate the text corresponding to the selected text according to the pronunciation of the translated text corresponding voice information.
可选的,所述方法还包括:在选项设置界面,显示与交互操作对应的初始选项;将所述初始选项中被选定的初始选项设置为默认选项,所述默认选项为在需要显示所述交互操作对应的选项时被显示的选项。使得用户可自定义电子设备在用户输入的交互操作触发操作行为时所提供的选项。Optionally, the method further includes: on the option setting interface, displaying initial options corresponding to the interactive operation; The option that is displayed when the option corresponding to the above-mentioned interactive operation is displayed. This enables the user to customize the options provided by the electronic device when an interactive operation input by the user triggers an operation behavior.
根据本公开实施例的第二方面,提供一种浏览交互处理装置,所述装置包括:第一显示模块,被配置为当检测到对选定文本的交互操作触发操作行为时,显示所述交互操作对应的选项,所述交互操作对应的选项中包括对所述选定文本的学习选项;获取模块,被配置为当检测到所述第一显示模块显示的学习选项被选定时,获取所述选定文本的学习内容,所述学习内容包括提供的用于学习的所述选定文本的内容;提供模块,被配置为提供所述获取模块获取到的学习内容供用户学习。According to a second aspect of an embodiment of the present disclosure, there is provided a browsing interaction processing device, the device comprising: a first display module configured to display the interaction The options corresponding to the operation, the options corresponding to the interactive operation include the learning options for the selected text; the acquiring module is configured to acquire the learning options displayed by the first display module when it is detected that the learning options are selected. The learning content of the selected text, the learning content includes the content of the selected text provided for learning; the providing module is configured to provide the learning content acquired by the acquiring module for the user to learn.
可选的,所述获取模块,包括:第一获取子模块,被配置为确定出预先设定的类型,获取所述选定文本的符合所述类型的学习内容;第二获取子模块,被配置为显示所述学习选项对应的至少一个类型,确定出被选定的类型,获取所述选定文本的符合所述类型的学习内容。Optionally, the acquisition module includes: a first acquisition submodule, configured to determine a preset type, and acquire the learning content of the selected text conforming to the type; a second acquisition submodule, configured to It is configured to display at least one type corresponding to the learning option, determine the selected type, and obtain the learning content of the selected text conforming to the type.
可选的,所述第二获取子模块,包括:第一搜索子模块,被配置为当所述类型指示对所述选定文本进行文本解释时,在网络上搜索所述选定文本的符合所述类型的学习内容,将搜索结果作为所述选定文本的学习内容;第一转换子模块,被配置为当所述类型指示对所述选定文本进行指定语言的语音播报时,将所述选定文本转换成符合所述指定语言的语音信息,将所述语音信息作为所述选定文本的学习内容。Optionally, the second acquisition submodule includes: a first search submodule configured to search for matches of the selected text on the Internet when the type indicates a text interpretation of the selected text The type of learning content uses the search results as the learning content of the selected text; the first conversion submodule is configured to convert the selected text to the selected text when the type indicates that the selected text is to be broadcast in a specified language. The selected text is converted into voice information conforming to the specified language, and the voice information is used as the learning content of the selected text.
可选的,所述获取模块,包括:第二搜索子模块,被配置为当所述被选定的学习选项指示对所述选定文本进行文本解释时,在网络上搜索所述选定文本的与被选定的学习选项匹配的学习内容,将搜索结果作为所述选定文本的学习内容;第二转换子模块,被配置为当所述被选定的学习选项指示对所述选定文本进行语音播报时,将所述被选定文本转换成语音信息,将所述语音信息作为所述选定文本的学习内容。Optionally, the acquisition module includes: a second search submodule configured to search for the selected text on the Internet when the selected learning option indicates a text interpretation of the selected text The learning content that matches the selected learning option, the search result is used as the learning content of the selected text; the second conversion sub-module is configured to when the selected learning option indicates that the selected When the text is broadcast by voice, the selected text is converted into voice information, and the voice information is used as the learning content of the selected text.
可选的,所述第二转换子模块,包括:第三转换子模块,被配置为将所述被选定文本转换成与所述选定文本同语言类型的语音信息;第四转换子模块,被配置为将所述被选定文本转换成与电子设备的系统同语言类型的语音信息。Optionally, the second conversion submodule includes: a third conversion submodule configured to convert the selected text into voice information of the same language type as the selected text; a fourth conversion submodule , configured to convert the selected text into voice information of the same language type as the system of the electronic device.
可选的,所述第四转换子模块,还被配置为:确定出所述选定文本的语言类型,获取电子设备上系统设置的语言类型;当所述选定文本的语言类型与所述系统设置的语言类型相同时,利用语音合成系统根据所述选定文本的读音生成与所述选定文本对应的语音信息;当所述选定文本的语言类型与所述系统设置的语言类型不相同时,将所述选定文本按照所述系统设置的语言类型进行翻译,利用语音合成系统根据翻译出的文本的读音生成与所述选定文本对应的语音信息。Optionally, the fourth conversion submodule is further configured to: determine the language type of the selected text, and obtain the language type set by the system on the electronic device; when the language type of the selected text is the same as the When the language types set by the system are the same, use the speech synthesis system to generate voice information corresponding to the selected text according to the pronunciation of the selected text; when the language type of the selected text is different from the language type set by the system At the same time, the selected text is translated according to the language type set by the system, and the voice information corresponding to the selected text is generated by the speech synthesis system according to the pronunciation of the translated text.
可选的,所述装置还包括:第二显示模块,被配置为在选项设置界面,显示与交互操作对应的初始选项;设置模块,被配置为将所述第二显示模块显示的初始选项中被选定的初始选项设置为默认选项,所述默认选项为在需要显示所述交互操作对应的选项时被显示的选项。Optionally, the device further includes: a second display module configured to display initial options corresponding to interactive operations on the option setting interface; a setting module configured to display the initial options displayed by the second display module The selected initial option is set as a default option, and the default option is an option that is displayed when the option corresponding to the interaction operation needs to be displayed.
根据本公开实施例的第三方面,提供一种浏览交互处理装置,应用于电子设备中,所述装置包括:处理器;用于存储所述处理器可执行指令的存储器;其中,所述处理器被配置为:当检测到对选定文本的交互操作触发操作行为时,显示所述交互操作对应的选项,所述交互操作对应的选项中包括对所述选定文本的学习选项;当检测到所述学习选项被选定时,获取所述选定文本的学习内容,所述学习内容包括提供的用于学习的所述选定文本的内容;提供所述学习内容供用户学习。According to a third aspect of the embodiments of the present disclosure, there is provided a browsing interaction processing device, which is applied to an electronic device, and the device includes: a processor; a memory for storing instructions executable by the processor; wherein, the processing The device is configured to: when detecting that an interactive operation on the selected text triggers an operation behavior, display options corresponding to the interactive operation, where the options corresponding to the interactive operation include a learning option for the selected text; When the learning option is selected, acquire the learning content of the selected text, the learning content includes the content of the selected text provided for learning; provide the learning content for the user to learn.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并于说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.
图1是根据一示例性实施例示出的一种浏览交互处理方法的流程图;Fig. 1 is a flow chart showing a browsing interaction processing method according to an exemplary embodiment;
图2A是根据另一示例性实施例示出的一种浏览交互处理方法的流程图;Fig. 2A is a flow chart showing a browsing interaction processing method according to another exemplary embodiment;
图2B是根据另一示例性实施例示出的显示交互操作对应的选项的示意图;Fig. 2B is a schematic diagram showing options corresponding to an interactive operation according to another exemplary embodiment;
图2C是根据另一示例性实施例示出的显示与学习选项对应的至少一个类型的示意图;Fig. 2C is a schematic diagram showing at least one type corresponding to learning options according to another exemplary embodiment;
图2D是根据另一示例性实施例示出的向用户提供学习内容的示意图;Fig. 2D is a schematic diagram of providing learning content to users according to another exemplary embodiment;
图3A是根据再一示例性实施例示出的一种浏览交互处理方法的流程图;Fig. 3A is a flow chart showing a browsing interaction processing method according to yet another exemplary embodiment;
图3B是根据再一示例性实施例示出的显示交互操作对应的选项的示意图;Fig. 3B is a schematic diagram showing options corresponding to an interactive operation according to yet another exemplary embodiment;
图3C是根据再一示例性实施例示出的向用户提供学习内容的示意图;Fig. 3C is a schematic diagram of providing learning content to users according to yet another exemplary embodiment;
图3D是根据再一示例性实施例示出的默认选项设置示意图;Fig. 3D is a schematic diagram showing default option settings according to yet another exemplary embodiment;
图4A是根据一示例性实施例示出的一种浏览交互处理装置的框图;Fig. 4A is a block diagram of a browsing interaction processing device according to an exemplary embodiment;
图4B是根据另一示例性实施例示出的一种浏览交互处理装置的框图;Fig. 4B is a block diagram of a browsing interaction processing device according to another exemplary embodiment;
图5是根据一示例性实施例示出的一种用于浏览交互处理的装置的框图。Fig. 5 is a block diagram showing an apparatus for browsing interaction processing according to an exemplary embodiment.
具体实施方式detailed description
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.
文中所讲的“电子设备”可以包括智能手机、平板电脑、智能电视、电子书阅读器、膝上型便携计算机和台式计算机等等。"Electronic devices" as used herein can include smartphones, tablets, smart TVs, e-book readers, laptops, and desktops, among others.
图1是根据一示例性实施例示出的一种浏览交互处理方法的流程图,该浏览交互处理方法应用于电子设备中,该浏览交互处理方法可以包括如下几个步骤。Fig. 1 is a flowchart showing a browsing interaction processing method according to an exemplary embodiment. The browsing interaction processing method is applied to an electronic device, and the browsing interaction processing method may include the following steps.
在步骤101中,当检测到对选定文本的交互操作触发操作行为时,显示该交互操作对应的选项,该交互操作对应的选项中包括对选定文本的学习选项。In step 101, when it is detected that an interactive operation on the selected text triggers an operation behavior, options corresponding to the interactive operation are displayed, and the options corresponding to the interactive operation include a learning option on the selected text.
其中,选定文本可以是电子设备上任何应用程序中被用户选中的字符。比如,系统便签中被用户选中的字符;再比如,即时通讯应用程序的对话框或聊天记录中被用户选中的字符;再比如,文字阅读应用程序中被用户选中的字符;再比如;浏览器应用程序中被用户选中的字符。Wherein, the selected text may be a character selected by the user in any application program on the electronic device. For example, the characters selected by the user in the system notes; another example, the characters selected by the user in the dialog box or chat history of the instant messaging application; another example, the characters selected by the user in the text reading application; another example: the browser The character selected by the user in the application.
这里所讲的字符包含字母、数字、文字和符号。举例来讲,选定文本可以为“A123”,选定文本可以为“耄耋是指年纪很大的人。古时男女称呼年龄是有区别的。”,选定文本还可以为“耄耋:古称大约70岁至90岁的年纪。”The characters mentioned here include letters, numbers, letters and symbols. For example, the selected text can be "A123", the selected text can be "Old man refers to a very old person. In ancient times, men and women called age differently.", the selected text can also be "Old man: ancient name About 70 to 90 years old."
在步骤102中,当检测到学习选项被选定时,获取选定文本的学习内容,学习内容包括提供的用于学习的该选定文本的内容。In step 102, when it is detected that the learning option is selected, the learning content of the selected text is acquired, and the learning content includes the content of the selected text provided for learning.
在步骤103中,提供该学习内容供用户学习。In step 103, the learning content is provided for the user to learn.
综上所述,本公开实施例中提供的浏览交互处理方法,通过当检测到对选定文本的交互操作触发操作行为时,显示该交互操作对应的选项,该交互操作对应的选项中包括对选定文本的学习选项;当检测到学习选项被选定时,获取选定文本的学习内容,学习内容包括提供的用于学习的选定文本的内容;提供该学习内容供用户学习;由于在检测到对选定文本的交互操作触发操作行为时,显示了用于触发电子设备向用户提供选定文本的学习内容的学习选项,使得用户通过选定学习选项可获得选定文本的学习内容,解决了目前用户所使用的文字解释信息的查询方式的操作较为繁琐的问题,简化了用户操作。To sum up, the browsing interaction processing method provided in the embodiments of the present disclosure displays the options corresponding to the interactive operation when it is detected that the interactive operation on the selected text triggers the operation behavior, and the options corresponding to the interactive operation include the The learning option of the selected text; when it is detected that the learning option is selected, the learning content of the selected text is obtained, and the learning content includes the content of the selected text provided for learning; the learning content is provided for the user to learn; because in When an interactive operation on the selected text is detected to trigger the operation behavior, a learning option for triggering the electronic device to provide the user with the learning content of the selected text is displayed, so that the user can obtain the learning content of the selected text by selecting the learning option, It solves the problem that the operation of the query mode of text explanation information currently used by the user is relatively cumbersome, and simplifies the user operation.
图2A是根据另一示例性实施例示出的一种浏览交互处理方法的流程图,该浏览交互处理方法应用于电子设备中,该浏览交互处理方法可以包括如下几个步骤。Fig. 2A is a flow chart showing a browsing interaction processing method according to another exemplary embodiment. The browsing interaction processing method is applied to an electronic device, and the browsing interaction processing method may include the following steps.
在步骤201中,当检测到对选定文本的交互操作触发操作行为时,显示该交互操作对应的选项,该交互操作对应的选项中包括对上述选定文本的学习选项。In step 201, when it is detected that an interactive operation on the selected text triggers an operation behavior, options corresponding to the interactive operation are displayed, and the options corresponding to the interactive operation include a learning option on the above-mentioned selected text.
一般来讲,用户通过在电子设备上输入交互操作触发操作行为,触发操行为的交互操作有多种。比如,长按电子设备的触摸屏;再比如,当电子设备为配有鼠标的电脑时,利用鼠标左键单击不放进行拖动选中文字。本实施例对触发操作行为的交互操作不作具体限定。Generally speaking, a user triggers an operation behavior by inputting an interaction operation on an electronic device, and there are various types of interaction operations that trigger the operation behavior. For example, press and hold the touch screen of the electronic device; for another example, when the electronic device is a computer equipped with a mouse, use the left button of the mouse to click and hold to drag to select text. This embodiment does not specifically limit the interactive operation that triggers the operation behavior.
当电子设备检测到对选定文本的交互操作触发操作行为时,显示该交互操作对应的选项。这里所讲的交互操作对应的选项至少包括对选定文本的学习选项,还可以包括复制选项、剪切选项、粘贴选项等等,具体可根据实际情况确定。When the electronic device detects that an interactive operation on the selected text triggers an operation behavior, it displays options corresponding to the interactive operation. The options corresponding to the interactive operation mentioned here include at least learning options for the selected text, and may also include copy options, cut options, paste options, etc., which can be determined according to actual conditions.
举例来讲,图2B是根据另一示例性实施例示出的显示交互操作对应的选项的示意图,如图2B所示,利用手指长按电子设备的触摸屏,当用户选中选定文本21时,电子设备在选定文本21处显示复制选项22a、剪贴选项22b、粘贴选项22c以及学习选项22d。For example, FIG. 2B is a schematic diagram showing options corresponding to interactive operations according to another exemplary embodiment. As shown in FIG. At the selected text 21 the device displays a copy option 22a, a paste option 22b, a paste option 22c and a learn option 22d.
在步骤202中,当检测到该学习选项被选定时,显示该学习选项对应的至少一个类型。In step 202, when it is detected that the learning option is selected, at least one type corresponding to the learning option is displayed.
这里所讲的至少一个类型可以包括用于指示对选定文本进行文本解释的类型、用于指示对选定文本进行指定语言的语音播报的类型以及用于指示播报选定文本的类型中的任意一个或多个。The at least one type mentioned here may include any of the type used to indicate the text interpretation of the selected text, the type used to indicate the voice announcement of the selected text in a specified language, and the type used to indicate the selected text. one or more.
举例来讲,图2C是根据另一示例性实施例示出的显示与学习选项对应的至少一个类型的示意图,如图2C所示,用户对学习选项进行选定。相应的,电子设备检测到学习选项被选定时,显示用于指示对选定文本进行文本解释的类型22d1、显示用于指示播报选定文本的类型22d2以及用于指示对选定文本进行指定语言的语音播报的类型22d3。For example, FIG. 2C is a schematic diagram showing at least one type corresponding to a learning option according to another exemplary embodiment. As shown in FIG. 2C , the user selects a learning option. Correspondingly, when the electronic device detects that the learning option is selected, it displays a type 22d1 for indicating the text interpretation of the selected text, displays a type 22d2 for indicating the broadcast of the selected text, and indicates that the selected text is specified. Type 22d3 of the speech announcement of the language.
在步骤203中,确定出被选定的类型,获取该选定文本的符合该类型的学习内容,提供该学习内容供用户学习。In step 203, the selected type is determined, the learning content of the selected text conforming to the type is obtained, and the learning content is provided for the user to learn.
当电子设备确定出被选定的类型指示选定文本进行文本解释时,电子设备在网络上搜索该选定文本的符合该类型的学习内容,将搜索结果作为该选定文本的学习内容。When the electronic device determines that the selected type indicates the selected text for text interpretation, the electronic device searches the network for the learning content of the selected text matching the type, and takes the search result as the learning content of the selected text.
可选的,文本解释可以包括对文本的注音和对文本的释义中的任意一种或全部。Optionally, the text interpretation may include any or all of the phonetic notation of the text and the paraphrase of the text.
其中,电子设备在网络上搜索该选定文本的符合该类型的学习内容,将搜索结果作为该选定文本的学习内容,提供该学习内容供用户学习,可通过以下两种可能的实施方式实现。Wherein, the electronic device searches the network for the learning content of the selected text that matches the type, uses the search result as the learning content of the selected text, and provides the learning content for the user to learn, which can be realized through the following two possible implementation modes .
在第一种可能的实施方式中,电子设备控制浏览器应用程序在前台进行运行,控制浏览器应用程序搜索选定文本的解释,将搜索结果确定为选定文本的学习内容,并显示该搜索结果。In a first possible implementation, the electronic device controls the browser application to run in the foreground, controls the browser application to search for an explanation of the selected text, determines the search result as the learning content of the selected text, and displays the search result. result.
可选的,选定文本的解释可包括选定文本的注音和选定文本的释义中的任意一种或全部。Optionally, the explanation of the selected text may include any or all of the phonetic notation of the selected text and the paraphrase of the selected text.
一般来讲,电子设备控制浏览器应用程序搜索选定文本的解释时,可在浏览器应用程序默认的搜索引擎中搜索选定文本的解释,也可在预定搜索网站中搜索选定文本的解释。其中,预定搜索网站可以由系统开发人员设定,也可以由用户自定义。当预定搜索网站是由用户根据自己的阅读需求设定的时,电子设备利用预定搜索网站搜索选定文本的解释得到的搜索结果更贴合用户需求。Generally speaking, when the electronic device controls the browser application to search for the interpretation of the selected text, it can search for the interpretation of the selected text in the default search engine of the browser application, or search for the interpretation of the selected text in a predetermined search website . Wherein, the predetermined search website can be set by the system developer, or can be customized by the user. When the predetermined search website is set by the user according to his own reading needs, the search result obtained by the electronic device by using the predetermined search website to search for the interpretation of the selected text is more suitable for the user's needs.
可选的,在利用搜索引擎中搜索选定文本的解释时,搜索关键词可以为选定文本。Optionally, when using a search engine to search for an explanation of the selected text, the search keyword may be the selected text.
图2D是根据另一示例性实施例示出的向用户提供学习内容的示意图。举例来讲,如图2C所示,当用于指示对选定文本进行文本解释的类型22d1被选定时,如图2D(1)所示,电子设备控制浏览器应用程序在电子设备的前台进行运行,控制浏览器应用程序搜索被用户选定的选定文本“Text To Speech”的解释,显示的搜索结果中包含“Text To Speech”的注音和释义。Fig. 2D is a schematic diagram of providing learning content to users according to another exemplary embodiment. For example, as shown in Figure 2C, when the type 22d1 used to indicate that the text interpretation is performed on the selected text is selected, as shown in Figure 2D (1), the electronic device controls the browser application program in the foreground of the electronic device Execution is performed to control the browser application to search for the explanation of the selected text "Text To Speech" selected by the user, and the displayed search results include the phonetic notation and paraphrase of "Text To Speech".
在第二种可能的实施方式中,电子设备控制浏览器应用程序在电子设备的后台运行,利用浏览器应用程序在网络上搜索该选定文本的解释,将搜索结果确定为学习内容显示在选定文本处。In the second possible implementation manner, the electronic device controls the browser application program to run in the background of the electronic device, uses the browser application program to search the explanation of the selected text on the Internet, and determines the search result as the learning content to be displayed on the selected text. Set the text.
可选的,在利用搜索引擎中搜索选定文本的解释时,搜索关键词可以为选定文本。Optionally, when using a search engine to search for an explanation of the selected text, the search keyword may be the selected text.
举例来讲,如图2C所示,当用于指示对选定文本进行文本解释的类型22d1被选定时,如图2D(2)所示,电子设备控制浏览器应用程序在电子设备的后台运行,利用浏览器应用程序在网络上搜索该选定文本,将选定文本的注音和选定文本的释义确定为搜索结果,并将搜索结果23显示在选定文本处。For example, as shown in Figure 2C, when the type 22d1 used to indicate that the text interpretation is performed on the selected text is selected, as shown in Figure 2D (2), the electronic device controls the browser application program in the background of the electronic device Run, use the browser application program to search the selected text on the network, determine the phonetic notation of the selected text and the paraphrase of the selected text as search results, and display the search results 23 at the selected text.
当电子设备确定出被选定的类型指示播报选定文本时,电子设备利用语音合成系统将被选定文本转换成与选定文本同语言类型的语音信息,将该语音信息作为选定文本的学习内容,控制电子设备上的音频组件播放该语音信息。When the electronic device determines that the selected type indicates to broadcast the selected text, the electronic device uses the speech synthesis system to convert the selected text into voice information of the same language type as the selected text, and use the voice information as the selected text Learn the content, and control the audio component on the electronic device to play the voice information.
这里所讲的音频组件可以为电子设备的扬声器,也可以为与电子设备相连接的外放设备,比如,耳机、音箱等。The audio component mentioned here may be a speaker of an electronic device, or an external device connected to the electronic device, such as earphones, speakers, and the like.
举例来讲,当用于指示对播报选定文本的类型22d2被选定时,电子设备利用语音合成系统根据选定文本“Text To Speech”的读音[tekst tu spit∫]生成语音信息,并利用电子设备上的音频组件播放该语音信息。For example, when the type 22d2 used to indicate the selected text for broadcast is selected, the electronic device uses the speech synthesis system to generate voice information according to the pronunciation [tekst tu spit∫] of the selected text "Text To Speech", and uses An audio component on the electronic device plays the voice information.
当电子设备确定出被选定的类型指示对选定文本进行指定语言的语音播报时,电子设备将选定文本转换成符合指定语言的语音信息,将该语音信息作为选定文本的学习内容,播放该语音信息。When the electronic device determines that the selected type indicates that the selected text is to be broadcast in a specified language, the electronic device converts the selected text into voice information conforming to the specified language, and uses the voice information as the learning content of the selected text, Play the voice message.
这里所讲的指定语言可以由用户自定义,也可以为电子设备上系统设置的语言类型。其中,电子设备上系统设置的语言类型是用户所熟悉或者掌握的语言类型。电子设备在将选定文本转换成符合指定语言的语音信息时,电子设备利用翻译软件将选定文本翻译成符合指定语言的文本,利用语音合成系统确定翻译后的选定文本的读音生成语音信息,控制电子设备上的音频组件播放该语音信息。The specified language mentioned here can be defined by the user, and can also be the language type set by the system on the electronic device. Wherein, the language type set by the system on the electronic device is a language type that the user is familiar with or has mastered. When the electronic device converts the selected text into voice information in a specified language, the electronic device uses translation software to translate the selected text into a text in a specified language, and uses a speech synthesis system to determine the pronunciation of the translated selected text to generate voice information to control the audio component on the electronic device to play the voice information.
举例来讲,指定语言为中文,当用于指示对选定文本进行指定语言的语音播报的类型22d3被选定时,电子设备利用翻译软件将选定文本“Text To Speech”翻译为“语音合成技术”,根据翻译后的文本“语音合成技术”的读音[yǔ yīn hé chéng jì shù]生成语音信息,控制电子设备上的音频组件播放该语音信息。For example, if the specified language is Chinese, when the type 22d3 used to indicate the voice announcement of the specified language for the selected text is selected, the electronic device uses translation software to translate the selected text "Text To Speech" into "Speech Synthesis Technology", generate voice information according to the pronunciation [yǔ yīn hé chéng jì shù] of the translated text "Speech Synthesis Technology", and control the audio components on the electronic device to play the voice information.
需要说明的是,文中提到的翻译软件可以为电子设备上的系统软件,也可以是电子设备上安装的具备文字翻译功能的应用程序。另外,电子设备确定出被用户选定的类型、利用语音合成系统将文字信息转换成文字信息的读音生成语音信息进行输出均为本领域普通技术人员所能实现的,此处不再赘述。It should be noted that the translation software mentioned in this article may be system software on the electronic device, or an application program installed on the electronic device with text translation function. In addition, the electronic device determines the type selected by the user, and uses the speech synthesis system to convert the text information into the pronunciation of the text information to generate voice information for output, all of which can be realized by those of ordinary skill in the art, and will not be repeated here.
综上所述,本公开实施例中提供的浏览交互处理方法,通过当检测到对选定文本的交互操作触发操作行为时,显示该交互操作对应的选项,该交互操作对应的选项中包括对选定文本的学习选项;当检测到学习选项被选定时,显示该学习选项对应的至少一个类型,确定出被选定的类型,获取该选定文本的符合该类型的学习内容;提供该学习内容供用户学习;由于在检测到对选定文本的交互操作触发操作行为时,向用户提供学习选项,用户可通过选定学习选项触发显示该学习选项对应的至少一个类型,用户可通过选定类型来获取符合选定类型的学习内容,解决了目前用户所使用的文字解释信息的查询方式的操作较为繁琐的问题,简化了用户操作。To sum up, the browsing interaction processing method provided in the embodiments of the present disclosure displays the options corresponding to the interactive operation when it is detected that the interactive operation on the selected text triggers the operation behavior, and the options corresponding to the interactive operation include the The learning option of the selected text; when it is detected that the learning option is selected, at least one type corresponding to the learning option is displayed, the selected type is determined, and the learning content of the selected text conforming to the type is obtained; providing the The learning content is for the user to learn; since the user is provided with learning options when an interactive operation on the selected text is detected to trigger the operation behavior, the user can trigger the display of at least one type corresponding to the learning option by selecting the learning option. It can obtain the learning content that conforms to the selected type by specifying the type, which solves the problem that the query method of text explanation information currently used by the user is relatively cumbersome, and simplifies the user operation.
通过在用户选定的类型指示对选定文本进行文本解释时,在网络上搜索选定文本的符合该类型的学习内容,可将选定文本的注音和释义提供给用户进行学习。When the type selected by the user indicates a text interpretation of the selected text, searching the network for learning content matching the type of the selected text, the phonetic notation and paraphrase of the selected text can be provided to the user for learning.
通过在用户选定的类型指示对选定文本进行指定语言的语音播报时,将选定文本转换成符合指定语言的语音信息,可将选定文本翻译成指定语言后的读音提供给用户进行学习。By converting the selected text into voice information in the specified language when the type selected by the user indicates the voice broadcast of the selected text in the specified language, the pronunciation of the selected text translated into the specified language can be provided to the user for learning .
在实际实现时,当电子设备检测到学习选项被选定时,电子设备可不显示学习选项对应的至少一个类型。此时,电子设备可获取预先设定的类型,直接向用户提供符合预先设定的类型的学习内容。In actual implementation, when the electronic device detects that the learning option is selected, the electronic device may not display at least one type corresponding to the learning option. At this time, the electronic device can acquire the preset type, and directly provide the user with learning content conforming to the preset type.
具体的,当电子设备检测到学习选项被选定时,电子设备确定出预先设定的类型,获取选定文本的符合类型的学习内容。其中,预先设定的类型通常为用户自定义,也可以由系统开发人员设定,预先设定的类型的数量可以为一个,也可以为多个。Specifically, when the electronic device detects that a learning option is selected, the electronic device determines a preset type, and acquires learning content of the selected text conforming to the type. Wherein, the preset type is usually user-defined, or may be set by a system developer, and the number of preset types may be one or multiple.
举例来讲,当预先设定的类型为用于指示对选定文本进行指定语言的语音播报时,电子设备利用语音合成系统将选定文本转换成符合指定语言的语音信息,将该语音信息作为选定文本的学习内容提供给用户。For example, when the pre-set type is used to indicate the voice broadcast of the selected text in the specified language, the electronic device uses the speech synthesis system to convert the selected text into voice information in the specified language, and use the voice information as The learning content of the selected text is provided to the user.
再举例来讲,当预先设定的类型包含用于指示对所述选定文本进行文本解释的类型和用于指示对选定文本进行指定语言的语音播报的类型时,电子设备在网络上搜索选定文本的解释,并利用语音合成系统将选定文本转换成符合指定语言的语音信息,将搜索结果和语音信息均提供给用户。For another example, when the preset type includes a type for indicating text interpretation of the selected text and a type for indicating a voice announcement in a specified language for the selected text, the electronic device searches for Interpretation of the selected text, and use the speech synthesis system to convert the selected text into voice information conforming to the specified language, and provide both search results and voice information to the user.
当电子设备检测到对选定文本的交互操作触发操作行为时,电子设备可显示多个学习选项。用户可通过选定学习选项,获得与被选定的学习选项匹配的学习内容。When the electronic device detects that an interactive operation on the selected text triggers an operation behavior, the electronic device may display a plurality of learning options. By selecting a learning option, users can obtain learning content matching the selected learning option.
图3A是根据再一示例性实施例示出的一种浏览交互处理方法的流程图,该浏览交互处理方法应用于电子设备中,该浏览交互处理方法可以包括如下几个步骤。Fig. 3A is a flow chart showing a browsing interaction processing method according to yet another exemplary embodiment. The browsing interaction processing method is applied to an electronic device, and the browsing interaction processing method may include the following steps.
在步骤301中,当检测到对选定文本的交互操作触发操作行为时,显示交互操作对应的选项,该交互操作对应的选项中包括对选定文本的学习选项。In step 301, when it is detected that an interactive operation on the selected text triggers an operation behavior, options corresponding to the interactive operation are displayed, and the options corresponding to the interactive operation include a learning option on the selected text.
一般来讲,用户通过在电子设备上输入交互操作触发操作行为,触发操行为的交互操作有多种。比如,长按电子设备的触摸屏;再比如,当电子设备为配有鼠标的电脑时,利用鼠标左键单击不放进行拖动选中文字。本实施例对触发操作行为的交互操作不作具体限定。Generally speaking, a user triggers an operation behavior by inputting an interaction operation on an electronic device, and there are various types of interaction operations that trigger the operation behavior. For example, press and hold the touch screen of the electronic device; for another example, when the electronic device is a computer equipped with a mouse, use the left button of the mouse to click and hold to drag to select text. This embodiment does not specifically limit the interactive operation that triggers the operation behavior.
当电子设备检测到对选定文本的交互操作触发操作行为时,电子设备显示该交互操作对应的选项。这里所讲的交互操作对应的选项至少包括选定文本的学习选项,这里所讲的学习选项可以为一个,也可以为多个。比如,学习选项可以包括指示对选定文本进行注音的学习选项、指示对选定文本进行文本解释的学习选项和指示对选定文本进行语音播报中的任意一种或全部。When the electronic device detects that an interactive operation on the selected text triggers an operation behavior, the electronic device displays options corresponding to the interactive operation. The options corresponding to the interactive operation mentioned here at least include the learning options of the selected text, and the learning options mentioned here can be one or more. For example, the learning option may include any or all of a learning option indicating phonetic notation of the selected text, a learning option indicating text interpretation of the selected text, and an instruction of voice broadcasting of the selected text.
图3B是根据再一示例性实施例示出的显示交互操作对应的选项的示意图。举例来讲,如图3B所示,利用手指长按电子设备的触摸屏,当用户选中选定文本31时,电子设备在选定文本31处显示复制选项32、剪贴选项33、粘贴选项34、用于指示对选定文本进行文本解释的学习选项35以及用于指示对选定文本进行语音播报的学习选项36。Fig. 3B is a schematic diagram showing options corresponding to an interactive operation according to yet another exemplary embodiment. For example, as shown in FIG. 3B, using a finger to long press the touch screen of the electronic device, when the user selects the selected text 31, the electronic device displays a copy option 32, a clipping option 33, and a paste option 34 at the selected text 31. There is a learning option 35 for instructing text interpretation of the selected text and a learning option 36 for instructing voice announcement of the selected text.
在步骤302中,当被选定的学习选项指示对选定文本进行文本解释时,在网络上搜索选定文本的与被选定的学习选项匹配的学习内容,将搜索结果作为选定文本的学习内容,提供该学习内容供用户学习。In step 302, when the selected learning option indicates that the selected text is interpreted, the selected text is searched for learning content matching the selected learning option on the network, and the search result is used as the selected text. Learning content, providing the learning content for users to learn.
电子设备在网络上搜索选定文本的与被选定的学习选项匹配的学习内容,将搜索结果作为选定文本的学习内容,可通过以下两种可能的实施方式实现。The electronic device searches the network for the learning content of the selected text that matches the selected learning option, and uses the search result as the learning content of the selected text, which can be implemented through the following two possible implementation manners.
在第一种可能的实施方式中,电子设备控制浏览器应用程序在电子设备的前台进行运行,控制浏览器应用程序搜索选定文本的解释,将搜索结果确定为选定文本的学习内容,并显示该搜索结果。In a first possible implementation manner, the electronic device controls the browser application to run in the foreground of the electronic device, controls the browser application to search for an explanation of the selected text, determines the search result as the learning content of the selected text, and Display the search results.
可选的,选定文本的解释可包括选定文本的注音和选定文本的释义中的任意一种或全部。Optionally, the explanation of the selected text may include any or all of the phonetic notation of the selected text and the paraphrase of the selected text.
一般来讲,电子设备控制浏览器应用程序搜索选定文本的解释时,可在浏览器应用程序默认的搜索引擎中搜索选定文本的解释,也可在预定搜索网站中搜索选定文本的解释。其中,预定搜索网站可以由系统开发人员设定,也可以由用户自定义。当预定搜索网站是由用户根据自己的阅读需求设定的时,电子设备利用预定搜索网站搜索选定文本的解释得到的搜索结果更贴合用户需求。Generally speaking, when the electronic device controls the browser application to search for the interpretation of the selected text, it can search for the interpretation of the selected text in the default search engine of the browser application, or search for the interpretation of the selected text in a predetermined search website . Wherein, the predetermined search website can be set by the system developer, or can be customized by the user. When the predetermined search website is set by the user according to his own reading needs, the search result obtained by the electronic device by using the predetermined search website to search for the interpretation of the selected text is more suitable for the user's needs.
可选的,在利用搜索引擎中搜索选定文本的解释时,搜索关键词可以为选定文本。Optionally, when using a search engine to search for an explanation of the selected text, the search keyword may be the selected text.
图3C是根据再一示例性实施例示出的向用户提供学习内容的示意图。举例来讲,如图3B所示,当指示对选定文本进行文本解释的学习选项35被选定时,如图3C(1)所示,电子设备控制浏览器应用程序在电子设备的前台进行运行,控制浏览器应用程序搜索被用户选定的选定文本“Text To Speech”的解释,显示的搜索结果中包含“Text To Speech”的注音和释义。Fig. 3C is a schematic diagram of providing learning content to users according to yet another exemplary embodiment. For example, as shown in Figure 3B, when the learning option 35 indicating text interpretation of the selected text is selected, as shown in Figure 3C (1), the electronic device controls the browser application program to perform the Running, controlling the browser application to search for the explanation of the selected text "Text To Speech" selected by the user, and the displayed search results include the phonetic notation and paraphrase of "Text To Speech".
在第二种可能的实施方式中,电子设备控制浏览器应用程序在电子设备的后台运行,利用浏览器应用在网络上搜索该选定文本的释义,将搜索结果确定为学习内容显示在选定文本处。In a second possible implementation, the electronic device controls the browser application to run in the background of the electronic device, uses the browser application to search for the definition of the selected text on the Internet, and determines the search result as the learning content displayed on the selected text. text.
可选的,在利用搜索引擎中搜索选定文本的解释时,搜索关键词可以为选定文本。Optionally, when using a search engine to search for an explanation of the selected text, the search keyword may be the selected text.
举例来讲,如图3B所示,当指示对选定文本进行文本解释的学习选项35被选定时,如图3C(2)所示,电子设备控制浏览器应用程序在电子设备的后台运行,电子设备利用浏览器应用程序在网络上搜索该选定文本,将选定文本的注音和选定文本的释义确定为搜索结果,并将搜索结果37显示在选定文本处。For example, as shown in FIG. 3B, when the learning option 35 indicating text interpretation of the selected text is selected, as shown in FIG. 3C (2), the electronic device controls the browser application program to run in the background of the electronic device , the electronic device uses a browser application program to search the selected text on the network, determines the phonetic notation of the selected text and the definition of the selected text as search results, and displays the search results 37 at the selected text.
在步骤303中,当被选定的学习选项指示对选定文本进行语音播报时,将被选定文本转换成语音信息,将该语音信息作为选定文本的学习内容,提供该学习内容供用户学习。In step 303, when the selected learning option indicates that the selected text is to be broadcast by voice, the selected text is converted into voice information, and the voice information is used as the learning content of the selected text, and the learning content is provided for the user Learn.
可选的,本步骤可通过以下两种可能的实施方式实现。Optionally, this step can be implemented through the following two possible implementation manners.
在第一种可能的实施方式中,电子设备将被选定文本转换成与选定文本同语言类型的语音信息,将该语音信息作为选定文本的学习内容,提供该学习内容供用户学习。In a first possible implementation manner, the electronic device converts the selected text into speech information of the same language type as the selected text, uses the speech information as learning content of the selected text, and provides the learning content for the user to learn.
电子设备利用语音合成系统将被选定文本转换成与选定文本同语言类型的语音信息,将该语音信息作为选定文本的学习内容,控制电子设备上的音频组件播放该语音信息。The electronic device uses the speech synthesis system to convert the selected text into voice information of the same language as the selected text, uses the voice information as the learning content of the selected text, and controls the audio components on the electronic device to play the voice information.
在第二种可能的实施方式中,电子设备将被选定文本转换成与电子设备的系统同语言类型的语音信息,将该语音信息作为选定文本的学习内容,提供该学习内容供用户学习。In the second possible implementation manner, the electronic device converts the selected text into voice information of the same language type as the system of the electronic device, uses the voice information as the learning content of the selected text, and provides the learning content for the user to learn .
具体的,电子设备确定出选定文本的语言类型,获取电子设备上系统设置的语言类型;当电子设备确定出选定文本的语言类型与系统设置的语言类型相同时,电子设备利用语音合成系统根据选定文本的读音生成与选定文本对应的语音信息;当电子设备确定出选定文本的语言类型与该系统设置的语言类型不相同时,电子设备将选定文本按照系统设置的语言类型进行翻译,利用语音合成系统根据翻译出的文本的读音生成与选定文本对应的语音信息。Specifically, the electronic device determines the language type of the selected text, and obtains the language type set by the system on the electronic device; when the electronic device determines that the language type of the selected text is the same as the language type set by the system, the electronic device uses the speech synthesis system Generate voice information corresponding to the selected text according to the pronunciation of the selected text; when the electronic device determines that the language type of the selected text is different from the language type set by the system, the electronic device will select the text according to the language type set by the system Perform translation, and use the speech synthesis system to generate speech information corresponding to the selected text according to the pronunciation of the translated text.
举例来讲,如图3B所示,当指示对选定文本进行语音播报的学习选项36被选定时,电子设备确定出选定文本“Text To Speech”的语言类型为英文,获取子设备上系统设置的语言类型为中文。电子设备利用翻译软件将选定文本“Text To Speech”翻译为“语音合成技术”,根据翻译后的文本“语音合成技术”的读音[yǔ yīn hé chéng jì shù]生成语音信息,并利用电子设备上的音频组件播放该语音信息。For example, as shown in FIG. 3B, when the learning option 36 indicating voice broadcast of the selected text is selected, the electronic device determines that the language type of the selected text "Text To Speech" is English, and obtains the information on the sub-device. The language type of the system setting is Chinese. The electronic device uses translation software to translate the selected text "Text To Speech" into "speech synthesis technology", generates voice information according to the pronunciation [yǔ yīn hé chéng jì shù] of the translated text "speech synthesis technology", and uses the electronic device The audio component on the device plays the voice message.
举例来讲,如图3B所示,当指示对选定文本进行语音播报的学习选项36被选定时,电子设备确定出选定文本“Text To Speech”的语言类型为英文,获取子设备上系统设置的语言类型为英文,利用语音合成系统根据选定文本“Text To Speech”的读音[tekst tuspit∫]生成语音信息,并利用电子设备上的音频组件播放该语音信息。For example, as shown in FIG. 3B, when the learning option 36 indicating voice broadcast of the selected text is selected, the electronic device determines that the language type of the selected text "Text To Speech" is English, and obtains the information on the sub-device. The language type set by the system is English, use the speech synthesis system to generate voice information according to the pronunciation [tekst tuspit∫] of the selected text "Text To Speech", and use the audio components on the electronic device to play the voice information.
需要说明的是,文中提到的翻译软件可以为电子设备上的系统软件,也可以是电子设备上安装的具备文字翻译功能的应用程序。另外,电子设备利用语音合成系统将文字信息转换成文字信息的读音生成语音信息进行输出是本领域技术人员所能实现的,此处不再赘述。It should be noted that the translation software mentioned in this article may be system software on the electronic device, or an application program installed on the electronic device with text translation function. In addition, it is possible for an electronic device to use a speech synthesis system to convert text information into the pronunciation of the text information to generate speech information for output, which can be realized by those skilled in the art, and will not be repeated here.
在步骤304中,当被选定的学习选项指示对选定文本进行注音时,确定出选定文本的注音,并将确定出的注音在选定文本处进行展示。In step 304, when the selected learning option indicates phonetic notation of the selected text, the phonetic notation of the selected text is determined, and the determined phonetic notation is displayed on the selected text.
举例来讲,当电子设备确定出用户选定用于指示对选定文本进行注音的学习选项时,电子设备将选定文本“Text to speech”的注音[tekst tu spit∫]显示在选定文本处。For example, when the electronic device determines that the user has selected a learning option for instructing the phonetic notation of the selected text, the electronic device displays the phonetic [tekst tu spit∫] of the selected text "Text to speech" in the selected text place.
综上所述,本公开实施例中提供的浏览交互处理方法,通过当检测到对选定文本的交互操作触发操作行为时,显示该交互操作对应的选项,该交互操作对应的选项中包括对选定文本的学习选项;当检测到学习选项被选定时,获取选定文本的学习内容,学习内容包括提供的用于学习的选定文本的内容;提供该学习内容供用户学习;由于在检测到对选定文本的交互操作触发操作行为时,显示了用于触发电子设备向用户提供选定文本的学习内容的学习选项,使得用户通过选定学习选项即可获得选定文本的学习内容,解决了目前用户所使用的文字解释信息的查询方式的操作较为繁琐的问题,简化了用户操作。To sum up, the browsing interaction processing method provided in the embodiments of the present disclosure displays the options corresponding to the interactive operation when it is detected that the interactive operation on the selected text triggers the operation behavior, and the options corresponding to the interactive operation include the The learning option of the selected text; when it is detected that the learning option is selected, the learning content of the selected text is obtained, and the learning content includes the content of the selected text provided for learning; the learning content is provided for the user to learn; because in When an interactive operation on the selected text is detected to trigger the operation behavior, a learning option for triggering the electronic device to provide the user with the learning content of the selected text is displayed, so that the user can obtain the learning content of the selected text by selecting the learning option , which solves the problem that the operation of the query method of text interpretation information currently used by users is relatively cumbersome, and simplifies user operations.
通过当被选定的学习选项指示对选定文本进行文本解释时,在网络上搜索选定文本的与被选定的学习选项匹配的学习内容,可将选定文本的注音和释义提供给用户进行学习。The phonetic and paraphrase of the selected text may be provided to the user by searching the web for learning content of the selected text matching the selected learning option when the selected learning option indicates a textual interpretation of the selected text to study.
通过当被选定的学习选项指示对选定文本进行语音播报时,将被选定文本转换成语音信息,可将选定文本翻译成指定语言后的读音提供给用户进行学习。By converting the selected text into voice information when the selected learning option indicates that the selected text is to be spoken, the pronunciation of the selected text translated into a designated language can be provided to the user for learning.
通过在选项设置界面,显示与交互操作对应的初始选项;将初始选项中被选定的初始选项设置为默认选项,该默认选项为在需要显示所述交互操作对应的选项时被显示的选项。使得用户可自定义电子设备在用户输入的交互操作触发操作行为时所提供的选项。By displaying the initial options corresponding to the interactive operation in the option setting interface; setting the selected initial option in the initial options as a default option, and the default option is an option displayed when the option corresponding to the interactive operation needs to be displayed. This enables the user to customize the options provided by the electronic device when an interactive operation input by the user triggers an operation behavior.
可选的,用户还可自定义触发操作行为的交互操作所对应的选项。Optionally, the user can also customize the options corresponding to the interactive operation that triggers the operation behavior.
电子设备在选项设置界面,显示与交互操作对应的初始选项;电子设备将初始选项中被选定的初始选项设置为默认选项,默认选项为在需要显示交互操作对应的选项时被显示的选项。The electronic device displays the initial options corresponding to the interactive operation on the option setting interface; the electronic device sets the selected initial option in the initial options as a default option, and the default option is an option displayed when the option corresponding to the interactive operation needs to be displayed.
这里所讲的初始选项可以包括复制选项、剪切选项、粘贴选项和至少一个学习选项,可根据具体实际情况确定,此处不对初始选项作具体的限定。The initial options mentioned here may include a copy option, a cut option, a paste option, and at least one learning option, which may be determined according to actual conditions, and no specific limitation is imposed on the initial options here.
图3D是根据再一示例性实施例示出的默认选项设置示意图。如图3D(1)所示,电子设备在选项设置界面,显示与交互操作对应的初始选项,初始选项中包括:复制选项、粘贴选项、剪切选项、释义选项、播放选项和注音选项。其中,复制选项、粘贴选项、剪切选项、释义选项和播放选项被选中,将这些被选中的初始选项设置为默认选项。当电子设备测到对选定文本的交互操作触发操作行为时,显示这些默认选项,如图3D(2)所示。Fig. 3D is a schematic diagram showing default option settings according to yet another exemplary embodiment. As shown in Figure 3D(1), the electronic device displays initial options corresponding to interactive operations on the option setting interface, and the initial options include: copy options, paste options, cut options, paraphrase options, playback options, and phonetic options. Wherein, copy option, paste option, cut option, paraphrase option and play option are selected, and these selected initial options are set as default options. When the electronic device detects that an interactive operation on the selected text triggers an operation behavior, these default options are displayed, as shown in Fig. 3D (2).
下述为本公开装置实施例,可以用于执行本公开方法实施例。对于本公开装置实施例中未披露的细节,请参照本公开方法实施例。The following are device embodiments of the present disclosure, which can be used to implement the method embodiments of the present disclosure. For details not disclosed in the disclosed device embodiments, please refer to the disclosed method embodiments.
图4A是根据一示例性实施例示出的一种浏览交互处理装置的框图,该浏览交互处理装置可以通过软件、硬件或者两者的结合实现成为电子设备的部分或者全部。该浏览交互处理装置可以包括:第一显示模块410、获取模块420和提供模块430。Fig. 4A is a block diagram showing an apparatus for browsing interaction processing according to an exemplary embodiment. The apparatus for browsing interaction processing may be implemented as part or all of an electronic device through software, hardware or a combination of the two. The browsing interaction processing apparatus may include: a first display module 410 , an acquisition module 420 and a provision module 430 .
第一显示模块410,被配置为当检测到对选定文本的交互操作触发操作行为时,显示该交互操作对应的选项,该交互操作对应的选项中包括对选定文本的学习选项。The first display module 410 is configured to display options corresponding to the interactive operation when it is detected that an interactive operation on the selected text triggers an operation behavior, and the options corresponding to the interactive operation include a learning option on the selected text.
其中,选定文本可以是电子设备上任何应用程序中被用户选中的字符。比如,系统便签中被用户选中的字符;再比如,即时通讯应用程序的对话框或聊天记录中被用户选中的字符;再比如,文字阅读应用程序中被用户选中的字符;再比如;浏览器应用程序中被用户选中的字符。这里所讲的字符包含字母、数字、文字和符号。Wherein, the selected text may be a character selected by the user in any application program on the electronic device. For example, the characters selected by the user in the system notes; another example, the characters selected by the user in the dialog box or chat history of the instant messaging application; another example, the characters selected by the user in the text reading application; another example: the browser The character selected by the user in the application. The characters mentioned here include letters, numbers, letters and symbols.
一般来讲,用户通过在电子设备上输入交互操作触发操作行为,触发操行为的交互操作有多种。Generally speaking, a user triggers an operation behavior by inputting an interaction operation on an electronic device, and there are various types of interaction operations that trigger the operation behavior.
获取模块420,被配置为当检测到第一显示模块410显示的学习选项被选定时,获取该选定文本的学习内容,学习内容包括提供的用于学习的选定文本的内容。The obtaining module 420 is configured to obtain the learning content of the selected text when it is detected that the learning option displayed by the first display module 410 is selected, and the learning content includes the content of the selected text provided for learning.
提供模块430,被配置为被配置为提供获取模块420获取到的学习内容供用户学习。The providing module 430 is configured to provide the learning content acquired by the acquiring module 420 for the user to learn.
图4B是根据另一示例性实施例示出的一种浏览交互处理装置的框图,在一种可能的实施方式中,如图4B所示,获取模块420,包括:第一获取子模块420a和第二获取子模块420b。Fig. 4B is a block diagram of a browsing interaction processing device according to another exemplary embodiment. In a possible implementation manner, as shown in Fig. 4B, the obtaining module 420 includes: a first obtaining sub-module 420a and a second The second acquisition sub-module 420b.
第一获取子模块420a,被配置为确定出预先设定的类型,获取选定文本的符合该类型的学习内容。The first obtaining sub-module 420a is configured to determine a preset type, and obtain the learning content of the selected text conforming to the type.
其中,预先设定的类型通常为用户自定义,也可以由系统开发人员设定,预先设定的类型的数量可以为一个,也可以为多个。Wherein, the preset type is usually user-defined, or may be set by a system developer, and the number of preset types may be one or multiple.
第二获取子模块420b,被配置为显示该学习选项对应的至少一个类型,确定出被选定的类型,获取选定文本的符合该类型的学习内容。The second obtaining sub-module 420b is configured to display at least one type corresponding to the learning option, determine the selected type, and obtain the learning content of the selected text conforming to the type.
这里所讲的至少一个类型可以包括用于指示对选定文本进行文本解释的类型、用于指示对选定文本进行注音的类型、用于指示对选定文本进行指定语言的语音播报的类型以及用于指示播报选定文本的类型中的任意一个或多个。The at least one type mentioned here may include a type for indicating text interpretation of the selected text, a type for indicating phonetic notation for the selected text, a type for indicating voice announcement of a specified language for the selected text, and Any one or more of the types used to indicate the announcement of the selected text.
当电子设备确定出被选定的类型指示对选定文本进行注音时,电子设备确定出选定文本的注音,并将确定出的注音在选定文本处进行展示。其中,电子设备确定出选定文本的注音可通过多种方式实现,比如电子设备可利用具备注音查询功能的学习软件查询选定文本的注音,还可以在网络中搜索选定文本的注音,本实施例不对电子设备确定出选定文本的注音作具体限定,可根据实际情况确定。When the electronic device determines that the selected type indicates Zhuyin for the selected text, the electronic device determines the Zhuyin of the selected text, and displays the determined Zhuyin at the selected text. Among them, the electronic device can determine the phonetic notation of the selected text in a variety of ways. For example, the electronic device can use learning software with a phonetic query function to query the phonetic notation of the selected text, and can also search for the phonetic notation of the selected text in the network. The embodiment does not specifically limit the phonetic notation of the selected text determined by the electronic device, which may be determined according to actual conditions.
在一种可能的实施方式中,如图4B所示,第二获取子模块420b,包括:第一搜索子模块420b1和第一转换子模块420b2。In a possible implementation manner, as shown in FIG. 4B , the second acquiring submodule 420b includes: a first searching submodule 420b1 and a first converting submodule 420b2.
第一搜索子模块420b1被配置为当该类型指示对选定文本进行文本解释时,在网络上搜索选定文本的符合该类型的学习内容,将搜索结果作为选定文本的学习内容。The first search sub-module 420b1 is configured to search the network for learning content of the selected text matching the type when the type indicates text interpretation of the selected text, and use the search result as the learning content of the selected text.
其中,电子设备在网络上搜索该选定文本的符合该类型的学习内容,将搜索结果作为该选定文本的学习内容,可通过以下两种可能的实施方式实现。Wherein, the electronic device searches the network for the learning content of the selected text matching the type, and uses the search result as the learning content of the selected text, which can be realized through the following two possible implementation manners.
在第一种可能的实施方式中,电子设备控制浏览器应用程序在电子设备的前台进行运行,控制浏览器应用程序搜索选定文本的解释,将搜索结果确定为选定文本的学习内容,并显示该搜索结果。In a first possible implementation manner, the electronic device controls the browser application to run in the foreground of the electronic device, controls the browser application to search for an explanation of the selected text, determines the search result as the learning content of the selected text, and Display the search results.
一般来讲,电子设备控制浏览器应用程序搜索选定文本的解释时,可在浏览器应用程序默认的搜索引擎中搜索选定文本的解释,也可在预定搜索网站中搜索选定文本的解释。其中,预定搜索网站可以由系统开发人员设定,也可以由用户自定义。当预定搜索网站是由用户根据自己的阅读需求设定的时,电子设备利用预定搜索网站搜索选定文本的解释得到的搜索结果更贴合用户需求。Generally speaking, when the electronic device controls the browser application to search for the interpretation of the selected text, it can search for the interpretation of the selected text in the default search engine of the browser application, or search for the interpretation of the selected text in a predetermined search website . Wherein, the predetermined search website can be set by the system developer, or can be customized by the user. When the predetermined search website is set by the user according to his own reading needs, the search result obtained by the electronic device by using the predetermined search website to search for the interpretation of the selected text is more suitable for the user's needs.
在第二种可能的实施方式中,电子设备控制浏览器应用程序在电子设备的后台运行,利用浏览器应用在网络上搜索该选定文本的解释,将搜索结果确定为学习内容显示在选定文本处。In a second possible implementation, the electronic device controls the browser application program to run in the background of the electronic device, uses the browser application to search the explanation of the selected text on the Internet, and determines the search result as the learning content displayed on the selected text. text.
第一转换子模块420b2,被配置为当该类型指示对选定文本进行指定语言的语音播报时,将选定文本转换成符合指定语言的语音信息,将该语音信息作为选定文本的学习内容。The first conversion sub-module 420b2 is configured to convert the selected text into voice information conforming to the specified language when the type indicates that the selected text is to be broadcast in a specified language, and use the voice information as the learning content of the selected text .
这里所讲的指定语言通常为电子设备上系统设置的语言类型,是用户所熟悉或者掌握的语言类型。电子设备在将选定文本转换成符合指定语言的语音信息时,利用翻译软件将选定文本翻译成符合指定语言的文本,利用语音合成系统确定翻译后的选定文本的读音生成语音信息,控制电子设备上的音频组件播放该语音信息。The designated language mentioned here is usually the language type set by the system on the electronic device, which is the language type that the user is familiar with or has mastered. When the electronic device converts the selected text into voice information conforming to the specified language, it uses translation software to translate the selected text into text conforming to the specified language, and uses the speech synthesis system to determine the pronunciation of the translated selected text to generate voice information, and control An audio component on the electronic device plays the voice information.
在一种可能的实施方式中,如图4B所示,获取模块420,还包括:第二搜索子模块420c和第二转换子模块420d。In a possible implementation manner, as shown in FIG. 4B , the acquiring module 420 further includes: a second searching submodule 420c and a second converting submodule 420d.
第二搜索子模块420c,被配置为当被选定的学习选项指示对选定文本进行文本解释时,在网络上搜索该选定文本的与被选定的学习选项匹配的学习内容,将搜索结果作为选定文本的学习内容。The second search sub-module 420c is configured to search the network for the learning content of the selected text that matches the selected learning option when the selected learning option indicates a text interpretation of the selected text, and search for The results serve as learning content for the selected text.
在第一种可能的实施方式中,电子设备控制浏览器应用程序在电子设备的前台进行运行,控制浏览器应用程序搜索选定文本的解释,将搜索结果确定为选定文本的学习内容,并显示该搜索结果。In a first possible implementation manner, the electronic device controls the browser application to run in the foreground of the electronic device, controls the browser application to search for an explanation of the selected text, determines the search result as the learning content of the selected text, and Display the search results.
一般来讲,电子设备控制浏览器应用程序搜索选定文本的解释时,可在浏览器应用程序默认的搜索引擎中搜索选定文本的解释,也可在预定搜索网站中搜索选定文本的解释。其中,预定搜索网站可以由系统开发人员设定,也可以由用户自定义。当预定搜索网站是由用户根据自己的阅读需求设定的时,电子设备利用预定搜索网站搜索选定文本的解释得到的搜索结果更贴合用户需求。Generally speaking, when the electronic device controls the browser application to search for the interpretation of the selected text, it can search for the interpretation of the selected text in the default search engine of the browser application, or search for the interpretation of the selected text in a predetermined search website . Wherein, the predetermined search website can be set by the system developer, or can be customized by the user. When the predetermined search website is set by the user according to his own reading needs, the search result obtained by the electronic device by using the predetermined search website to search for the interpretation of the selected text is more suitable for the user's needs.
在第二种可能的实施方式中,电子设备控制浏览器应用程序在电子设备的后台运行,利用浏览器应用在网络上搜索该选定文本的释义,将搜索结果确定为学习内容显示在选定文本处。In a second possible implementation, the electronic device controls the browser application to run in the background of the electronic device, uses the browser application to search for the definition of the selected text on the Internet, and determines the search result as the learning content displayed on the selected text. text.
第二转换子模块420d,被配置为当被选定的学习选项指示对选定文本进行文本解释时,在网络上搜索该选定文本的与被选定的学习选项匹配的学习内容,将搜索结果作为选定文本的学习内容。The second conversion sub-module 420d is configured to search the network for learning content of the selected text that matches the selected learning option when the selected learning option indicates text interpretation of the selected text, and search for The results serve as learning content for the selected text.
在一种可能的实施方式中,如图4B所示,第二转换子模块420d,包括:第三转换子模块420d1和第四转换子模块420d2。In a possible implementation manner, as shown in FIG. 4B , the second conversion sub-module 420d includes: a third conversion sub-module 420d1 and a fourth conversion sub-module 420d2.
第三转换子模块420d1,被配置为将被选定文本转换成与该选定文本同语言类型的语音信息。The third conversion sub-module 420d1 is configured to convert the selected text into voice information of the same language type as the selected text.
电子设备利用语音合成系统将被选定文本转换成与选定文本同语言类型的语音信息,将该语音信息作为选定文本的学习内容,控制电子设备上的音频组件播放该语音信息。The electronic device uses the speech synthesis system to convert the selected text into voice information of the same language as the selected text, uses the voice information as the learning content of the selected text, and controls the audio components on the electronic device to play the voice information.
第四转换子模块420d2,被配置为将被选定文本转换成与电子设备的系统同语言类型的语音信息。The fourth conversion sub-module 420d2 is configured to convert the selected text into voice information of the same language type as the system of the electronic device.
在一种可能的实施方式中,第四转换子模块420d2,还被配置为:确定出该选定文本的语言类型,获取电子设备上系统设置的语言类型;In a possible implementation manner, the fourth converting submodule 420d2 is further configured to: determine the language type of the selected text, and obtain the language type set by the system on the electronic device;
当电子设备确定出选定文本的语言类型与系统设置的语言类型相同时,电子设备利用语音合成系统根据该选定文本的读音生成与该选定文本对应的语音信息;When the electronic device determines that the language type of the selected text is the same as the language type set by the system, the electronic device uses the speech synthesis system to generate voice information corresponding to the selected text according to the pronunciation of the selected text;
当电子设备确定出选定文本的语言类型与系统设置的语言类型不相同时,电子设备将该选定文本按照系统设置的语言类型进行翻译,利用语音合成系统根据翻译出的文本的读音生成与该选定文本对应的语音信息。When the electronic device determines that the language type of the selected text is not the same as the language type set by the system, the electronic device translates the selected text according to the language type set by the system, and uses the speech synthesis system to generate and translate the text according to the pronunciation of the translated text. The voice message corresponding to the selected text.
在一种可能的实施方式中,该浏览交互处理装置,还包括:In a possible implementation manner, the browsing interaction processing device further includes:
第二显示模块440,被配置为在选项设置界面,显示与交互操作对应的初始选项。The second display module 440 is configured to display initial options corresponding to interactive operations on the option setting interface.
设置模块450,被配置为将第二显示模块440显示的初始选项中被选定的初始选项设置为默认选项,该默认选项为在需要显示交互操作对应的选项时被显示的选项。The setting module 450 is configured to set the selected initial option among the initial options displayed by the second display module 440 as a default option, and the default option is an option displayed when an option corresponding to an interactive operation needs to be displayed.
需要说明的是,文中提到的翻译软件可以为电子设备上的系统软件,也可以是电子设备上安装的具备文字翻译功能的应用程序。另外,电子设备确定出被用户选定的类型、利用语音合成系统将文字信息转换成文字信息的读音生成语音信息进行输出均为本领域普通技术人员所能实现的,此处不再赘述。It should be noted that the translation software mentioned in this article may be system software on the electronic device, or an application program installed on the electronic device with text translation function. In addition, the electronic device determines the type selected by the user, and uses the speech synthesis system to convert the text information into the pronunciation of the text information to generate voice information for output, all of which can be realized by those of ordinary skill in the art, and will not be repeated here.
综上所述,本公开实施例中提供的浏览交互处理装置,通过当检测到对选定文本的交互操作触发操作行为时,显示该交互操作对应的选项,该交互操作对应的选项中包括对选定文本的学习选项;当检测到学习选项被选定时,获取选定文本的学习内容,学习内容包括提供的用于学习的选定文本的内容;提供该学习内容供用户学习;由于在检测到对选定文本的交互操作触发操作行为时,显示了用于触发电子设备向用户提供选定文本的学习内容的学习选项,使得用户通过选定学习选项可获得选定文本的学习内容,解决了目前用户所使用的文字解释信息的查询方式的操作较为繁琐的问题,简化了用户操作。To sum up, the browsing interaction processing device provided in the embodiments of the present disclosure displays the options corresponding to the interactive operation when it detects that the interactive operation on the selected text triggers the operation behavior, and the options corresponding to the interactive operation include the The learning option of the selected text; when it is detected that the learning option is selected, the learning content of the selected text is obtained, and the learning content includes the content of the selected text provided for learning; the learning content is provided for the user to learn; because in When an interactive operation on the selected text is detected to trigger the operation behavior, a learning option for triggering the electronic device to provide the user with the learning content of the selected text is displayed, so that the user can obtain the learning content of the selected text by selecting the learning option, It solves the problem that the operation of the query mode of text explanation information currently used by the user is relatively cumbersome, and simplifies the user operation.
本公开一示例性实施例提供了一种浏览交互处理装置,能够实现本公开提供的浏览交互处理方法,该浏览交互处理装置包括:处理器、用于存储处理器可执行指令的存储器;An exemplary embodiment of the present disclosure provides a browsing interaction processing device capable of implementing the browsing interaction processing method provided in the present disclosure. The browsing interaction processing device includes: a processor and a memory for storing processor-executable instructions;
其中,处理器被配置为:where the processor is configured as:
当检测到对选定文本的交互操作触发操作行为时,显示该交互操作对应的选项,该交互操作对应的选项中包括对选定文本的学习选项。When it is detected that an interactive operation on the selected text triggers an operation behavior, options corresponding to the interactive operation are displayed, and the options corresponding to the interactive operation include a learning option on the selected text.
当检测到该学习选项被选定时,获取选定文本的学习内容,上述学习内容包括提供的用于学习的该选定文本的内容。When it is detected that the learning option is selected, the learning content of the selected text is acquired, and the learning content includes the content of the selected text provided for learning.
提供该学习内容供用户学习。The learning content is provided for users to learn.
图5是根据一示例性实施例示出的一种用于浏览交互处理的装置的框图。例如,装置500可以是移动电话,计算机,平板设备,健身设备,个人数字助理等电子设备。Fig. 5 is a block diagram showing an apparatus for browsing interaction processing according to an exemplary embodiment. For example, the apparatus 500 may be a mobile phone, a computer, a tablet device, a fitness device, a personal digital assistant and other electronic devices.
参照图5,装置500可以包括以下一个或多个组件:处理组件502,存储器504,电源组件506,多媒体组件508,音频组件510,输入/输出(I/O)的接口512,传感器组件514,以及通信组件516。5, device 500 may include one or more of the following components: processing component 502, memory 504, power supply component 506, multimedia component 508, audio component 510, input/output (I/O) interface 512, sensor component 514, and communication component 516 .
处理组件502通常控制装置500的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件502可以包括一个或多个处理器520来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件502可以包括一个或多个模块,便于处理组件502和其他组件之间的交互。例如,处理组件502可以包括多媒体模块,以方便多媒体组件508和处理组件502之间的交互。The processing component 502 generally controls the overall operations of the device 500, such as those associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 502 may include one or more processors 520 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 502 may include one or more modules that facilitate interaction between processing component 502 and other components. For example, processing component 502 may include a multimedia module to facilitate interaction between multimedia component 508 and processing component 502 .
存储器504被配置为存储各种类型的数据以支持在装置500的操作。这些数据的示例包括用于在装置500上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器504可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 504 is configured to store various types of data to support operations at the device 500 . Examples of such data include instructions for any application or method operating on device 500, contact data, phonebook data, messages, pictures, videos, and the like. The memory 504 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.
电源组件506为装置500的各种组件提供电力。电源组件506可以包括电源管理系统,一个或多个电源,及其他与为装置500生成、管理和分配电力相关联的组件。The power supply component 506 provides power to various components of the device 500 . Power components 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 500 .
多媒体组件508包括在所述装置500和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件508包括一个前置摄像头和/或后置摄像头。当装置500处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 508 includes a screen that provides an output interface between the device 500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or swipe action, but also detect duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 508 includes a front camera and/or a rear camera. When the device 500 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.
音频组件510被配置为输出和/或输入音频信号。例如,音频组件510包括一个麦克风(MIC),当装置500处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器504或经由通信组件516发送。在一些实施例中,音频组件510还包括一个扬声器,用于输出音频信号。The audio component 510 is configured to output and/or input audio signals. For example, the audio component 510 includes a microphone (MIC), which is configured to receive external audio signals when the device 500 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 504 or sent via communication component 516 . In some embodiments, the audio component 510 also includes a speaker for outputting audio signals.
I/O接口512为处理组件502和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 512 provides an interface between the processing component 502 and a peripheral interface module. The peripheral interface module may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.
传感器组件514包括一个或多个传感器,用于为装置500提供各个方面的状态评估。例如,传感器组件514可以检测到装置500的打开/关闭状态,组件的相对定位,例如所述组件为装置500的显示器和小键盘,传感器组件514还可以检测装置500或装置500一个组件的位置改变,用户与装置500接触的存在或不存在,装置500方位或加速/减速和装置500的温度变化。传感器组件514可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件514还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件514还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 514 includes one or more sensors for providing status assessments of various aspects of device 500 . For example, the sensor component 514 can detect the open/closed state of the device 500, the relative positioning of components, such as the display and keypad of the device 500, and the sensor component 514 can also detect a change in the position of the device 500 or a component of the device 500 , the presence or absence of user contact with the device 500 , the device 500 orientation or acceleration/deceleration and the temperature change of the device 500 . Sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 514 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
通信组件516被配置为便于装置500和其他设备之间有线或无线方式的通信。装置500可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件516经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件516还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 516 is configured to facilitate wired or wireless communication between the apparatus 500 and other devices. The device 500 can access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 516 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.
在示例性实施例中,装置500可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述浏览交互处理方法。In an exemplary embodiment, apparatus 500 may be programmed by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable Realized by a gate array (FPGA), a controller, a microcontroller, a microprocessor or other electronic components, it is used to execute the above browsing interaction processing method.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器504,上述指令可由装置500的处理器520执行以完成上述浏览交互处理方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 504 including instructions, which can be executed by the processor 520 of the device 500 to implement the above-mentioned browsing interaction processing method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
一种非临时性计算机可读存储介质,当所述存储介质中的指令由装置500的处理器执行时,使得装置500能够执行图1、图2A和图3A中所示的步骤。A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by the processor of the device 500, the device 500 is able to perform the steps shown in FIG. 1, FIG. 2A and FIG. 3A.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, and these modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure . The specification and examples are to be considered exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (15)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610737309.8A CN106339160A (en) | 2016-08-26 | 2016-08-26 | Browsing interactive processing method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610737309.8A CN106339160A (en) | 2016-08-26 | 2016-08-26 | Browsing interactive processing method and device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN106339160A true CN106339160A (en) | 2017-01-18 |
Family
ID=57823071
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610737309.8A Pending CN106339160A (en) | 2016-08-26 | 2016-08-26 | Browsing interactive processing method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106339160A (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107402695A (en) * | 2017-08-10 | 2017-11-28 | 北京泰迪熊移动科技有限公司 | Exchange method and system |
| CN108605074A (en) * | 2017-01-26 | 2018-09-28 | 华为技术有限公司 | A kind of method and apparatus of triggering phonetic function |
| CN109213400A (en) * | 2018-08-23 | 2019-01-15 | Oppo广东移动通信有限公司 | Multimedia object processing method, device, terminal and storage medium |
| CN111813301A (en) * | 2020-06-03 | 2020-10-23 | 维沃移动通信有限公司 | Content playback method, device, electronic device and readable storage medium |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101631341A (en) * | 2009-08-12 | 2010-01-20 | 深圳华为通信技术有限公司 | Information identification method and mobile terminal |
| CN102203711A (en) * | 2008-11-13 | 2011-09-28 | 高通股份有限公司 | Method and system for context dependent pop-up menus |
| CN103761028A (en) * | 2014-02-11 | 2014-04-30 | 长沙裕邦软件开发有限公司 | Intelligent reader capable of conducting association when clicked and storing files in catalog and implementation method |
| CN104007897A (en) * | 2014-06-19 | 2014-08-27 | 中科创达软件股份有限公司 | Method and system for displaying toolbar for text editing |
| CN105094510A (en) * | 2014-05-19 | 2015-11-25 | 小米科技有限责任公司 | Text processing method, device and system |
| CN105580384A (en) * | 2013-09-27 | 2016-05-11 | 微软技术许可有限责任公司 | Actionable content displayed on a touch screen |
-
2016
- 2016-08-26 CN CN201610737309.8A patent/CN106339160A/en active Pending
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102203711A (en) * | 2008-11-13 | 2011-09-28 | 高通股份有限公司 | Method and system for context dependent pop-up menus |
| CN101631341A (en) * | 2009-08-12 | 2010-01-20 | 深圳华为通信技术有限公司 | Information identification method and mobile terminal |
| CN105580384A (en) * | 2013-09-27 | 2016-05-11 | 微软技术许可有限责任公司 | Actionable content displayed on a touch screen |
| CN103761028A (en) * | 2014-02-11 | 2014-04-30 | 长沙裕邦软件开发有限公司 | Intelligent reader capable of conducting association when clicked and storing files in catalog and implementation method |
| CN105094510A (en) * | 2014-05-19 | 2015-11-25 | 小米科技有限责任公司 | Text processing method, device and system |
| CN104007897A (en) * | 2014-06-19 | 2014-08-27 | 中科创达软件股份有限公司 | Method and system for displaying toolbar for text editing |
Non-Patent Citations (1)
| Title |
|---|
| 张瑞亮: "《计算机三维机械设计基础》", 31 March 2013, 国防工业出版社 * |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108605074A (en) * | 2017-01-26 | 2018-09-28 | 华为技术有限公司 | A kind of method and apparatus of triggering phonetic function |
| CN107402695A (en) * | 2017-08-10 | 2017-11-28 | 北京泰迪熊移动科技有限公司 | Exchange method and system |
| CN109213400A (en) * | 2018-08-23 | 2019-01-15 | Oppo广东移动通信有限公司 | Multimedia object processing method, device, terminal and storage medium |
| CN111813301A (en) * | 2020-06-03 | 2020-10-23 | 维沃移动通信有限公司 | Content playback method, device, electronic device and readable storage medium |
| CN111813301B (en) * | 2020-06-03 | 2022-04-15 | 维沃移动通信有限公司 | Content playing method and device, electronic equipment and readable storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN105489220B (en) | Speech recognition method and device | |
| CN108829686B (en) | Translation information display method, device, equipment and storage medium | |
| CN106791921B (en) | Processing method and device for live video and storage medium | |
| CN106126052A (en) | Text selection method and device | |
| CN107832036A (en) | Sound control method, device and computer-readable recording medium | |
| CN105404401A (en) | Input processing method, apparatus and device | |
| CN109977390B (en) | Method and device for generating text | |
| CN106598269A (en) | Input method switching method and apparatus | |
| CN106202150A (en) | Method for information display and device | |
| CN106789551B (en) | Conversation message display method and device | |
| WO2016065814A1 (en) | Information selection method and device | |
| CN109388699A (en) | Input method, device, equipment and storage medium | |
| CN106774976A (en) | input method switching method and device | |
| CN107229403A (en) | A kind of information content system of selection and device | |
| CN106339160A (en) | Browsing interactive processing method and device | |
| CN107861637A (en) | Character input method, device and computer-readable recording medium | |
| CN106792604B (en) | Method and device for service prompt in communication process | |
| CN106547850A (en) | Expression annotation method and device | |
| CN106331328A (en) | Method and device for information prompt | |
| CN107943317A (en) | Input method and device | |
| CN111381685B (en) | A sentence association method and device | |
| CN107450912A (en) | Layout method, device and the terminal of the page | |
| CN107179837B (en) | Input method and device | |
| CN105867651A (en) | Character prompting method and device | |
| CN105930034A (en) | Dialog box display method and apparatus |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170118 |