CN110866409B - Content processing method and electronic equipment - Google Patents

Content processing method and electronic equipment Download PDF

Info

Publication number
CN110866409B
CN110866409B CN201911007624.5A CN201911007624A CN110866409B CN 110866409 B CN110866409 B CN 110866409B CN 201911007624 A CN201911007624 A CN 201911007624A CN 110866409 B CN110866409 B CN 110866409B
Authority
CN
China
Prior art keywords
input
content
language type
electronic device
fingerprint information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911007624.5A
Other languages
Chinese (zh)
Other versions
CN110866409A (en
Inventor
罗斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201911007624.5A priority Critical patent/CN110866409B/en
Publication of CN110866409A publication Critical patent/CN110866409A/en
Application granted granted Critical
Publication of CN110866409B publication Critical patent/CN110866409B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction 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/0488Interaction 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

Abstract

The embodiment of the invention provides a content processing method and electronic equipment, relates to the technical field of communication, and can solve the problem of poor convenience in translating content of the electronic equipment. The scheme comprises the following steps: receiving a first input of a user for target content; responding to a first input, displaying first content in a first language type, wherein the first content is displayed in a second language type in target content, and the proportion of the first content in the target content is a first proportion; wherein the first language type and the first ratio are determined based on input parameters of the first input. The scheme is applied to the scene of translating the content.

Description

Content processing method and electronic equipment
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a content processing method and electronic equipment.
Background
With the increasing degree of intellectualization of electronic devices, the functions supported by the electronic devices are increasing.
Currently, an electronic device may translate content to be translated from one language (hereinafter referred to as language a) to another language (hereinafter referred to as language B). Specifically, when a user needs to translate a certain content from a language a to a language B, the user may trigger the electronic device to select the content, then find the identifier indicating the language B in the language option, click the identifier, and finally click the translation control, so that the electronic device may be triggered to translate the content from the language a to the language B.
However, in the above-mentioned translation process, since the user needs to perform a series of operations to trigger the electronic device to translate a certain content from one language to another language, the above-mentioned translation process is cumbersome and complex, i.e. the convenience of translating the content by the electronic device is poor.
Disclosure of Invention
The embodiment of the invention provides a content processing method and electronic equipment, which are used for solving the problem of poor convenience in translating content of the electronic equipment.
In order to solve the technical problems, the application is realized as follows:
in a first aspect, an embodiment of the present invention provides a content processing method, where the method is applied to an electronic device, and the method includes: receiving a first input of a user to target content; and displaying the first content in the first language type in response to the first input. The first content is displayed in a second language type in the target content, and the proportion of the first content to the target content is a first proportion; the first language type and the first ratio are determined based on input parameters of the first input.
In a second aspect, an embodiment of the present invention provides an electronic device that may include a receiving module and a display module. The receiving module is used for receiving a first input of a user aiming at target content; and the display module is used for responding to the first input received by the receiving module and displaying the first content in the first language type. The first content is displayed in a second language type in the target content, the proportion of the first content to the target content is a first proportion, and the first language type and the first proportion are determined according to input parameters of the first input.
In a third aspect, an embodiment of the present invention provides an electronic device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, which when executed by the processor implements the steps of the content processing method as in the first aspect described above.
In a fourth aspect, embodiments of the present invention provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the content processing method as in the first aspect described above.
In an embodiment of the invention, the electronic device can receive a first input of a user for target content and display the first content in a first language type in response to the first input. The first content is displayed in a second language type in the target content, the proportion of the first content to the target content is a first proportion, and the first language type and the first proportion are determined according to input parameters of the first input. According to the scheme, when a user needs to translate a certain content from one language to another language, the user can directly input the content and the language type (hereinafter referred to as a target language type) to be translated by triggering the electronic equipment according to the input parameters of the input, and the content to be translated is automatically translated from one language type (namely the source language type) to the target language type, so that the user can be triggered to translate the content without executing a series of operations of selecting the content, selecting the language type and the like, and therefore, the translation process can be simplified, and the convenience of translating the content by the electronic equipment is improved.
Drawings
Fig. 1 is a schematic architecture diagram of an android operating system according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a content processing method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an interface of an application of a content processing method according to an embodiment of the present invention;
FIG. 4 is a second schematic diagram of an interface for a content processing method according to an embodiment of the present invention;
FIG. 5 is a second schematic diagram of a content processing method according to an embodiment of the present invention;
FIG. 6 is a third exemplary interface diagram of an application of the content processing method according to the embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 8 is a schematic hardware diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by one of ordinary skill in the art without undue burden on the person of ordinary skill in the art based on the embodiments of the present invention, are intended to be within the scope of the present application.
The term "and/or" herein is an association relationship describing an associated object, meaning that there may be three relationships, e.g., a and/or B, which may represent: a exists alone, A and B exist together, and B exists alone. The symbol "/" herein indicates that the associated object is or is a relationship, e.g., A/B indicates A or B.
The terms "first" and "second" and the like herein are used to distinguish between different objects and are not used to describe a particular order of objects. For example, the first content and the second content, etc., are used to distinguish between different content, not to describe a particular order of content.
In embodiments of the invention, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g." in an embodiment should not be taken as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
In the description of the embodiments of the present invention, unless otherwise indicated, the meaning of "a plurality" means two or more, for example, a plurality of elements means two or more, elements, etc.
The embodiment of the invention provides a content processing method and electronic equipment, wherein the electronic equipment can receive first input of a user aiming at target content and respond to the first input to display the first content in a first language type. The first content is displayed in a second language type in the target content, the proportion of the first content to the target content is a first proportion, and the first language type and the first proportion are determined according to input parameters of the first input. According to the scheme, when a user needs to translate a certain content from one language to another language, the user can directly input the content and the language type (hereinafter referred to as target language type) to be translated, which meet the user needs, are automatically determined according to the input parameters of the input by triggering the electronic equipment, and the content to be translated is automatically translated from one language type (namely the original language type) to the target language type, so that the user can be triggered to translate the content without executing a series of operations such as selecting the content, selecting the language type and the like, and therefore, the translation process can be simplified, and the convenience of translating the content by the electronic equipment is improved.
The electronic device in the embodiment of the invention can be an electronic device with an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, and the embodiment of the present invention is not limited specifically.
The software environment to which the content processing method provided by the embodiment of the invention is applied is described below by taking an android operating system as an example.
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention. In fig. 1, the architecture of the android operating system includes 4 layers, respectively: an application program layer, an application program framework layer, a system runtime layer and a kernel layer (specifically, a Linux kernel layer).
The application program layer comprises various application programs (including system application programs and third party application programs) in the android operating system. The application layer may include an application program for displaying the target content in the embodiment of the present invention. Such as office applications, communication-type applications, browser-type applications, and the like, any application that may display targeted content in embodiments of the present invention.
The application framework layer is a framework of applications, and developers can develop some applications based on the application framework layer while adhering to the development principle of the framework of the applications. For example, an application displaying target content in the embodiment of the present invention may be developed based on an application framework.
Generally, an application program for displaying target content in the embodiment of the present invention may include two parts, where one part refers to a service (service) running in the background of an electronic device, and may be used to detect an input of a user on the target content displayed by the application program, and call a translation function in the electronic device according to the input; another part refers to target content displayed on the screen of the electronic device.
The system runtime layer includes libraries (also referred to as system libraries) and android operating system runtime environments. The library mainly provides various resources required by the android operating system. The android operating system running environment is used for providing a software environment for the android operating system.
The kernel layer is an operating system layer of the android operating system, and belongs to the bottommost layer of the software hierarchy of the android operating system. The kernel layer provides core system services and a driver related to hardware for the android operating system based on a Linux kernel.
Taking an android operating system as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the content processing method provided in the embodiment of the present invention based on the system architecture of the android operating system shown in fig. 1, so that the content processing method may be operated based on the android operating system shown in fig. 1. Namely, the processor or the electronic device can realize the content processing method provided by the embodiment of the invention by running the software program in the android operating system.
The electronic device in the embodiment of the invention can be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), and the like, and the non-mobile electronic device may be a personal computer (personal computer, PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiments of the present invention are not limited in particular.
The execution main body of the content processing method provided by the embodiment of the invention can be the electronic equipment, or can be a functional module and/or a functional entity capable of realizing the content processing method in the electronic equipment, and the execution main body can be specifically determined according to actual use requirements. The content processing method provided by the embodiment of the invention is exemplified by an electronic device.
In the embodiment of the invention, if the language type corresponding to a certain content is a, when a user views the content through an electronic device, if the user needs to translate the content or part of the content in the content from the language type a to another language type, the user can execute an input on the electronic device, trigger the electronic device to automatically determine the content to be translated and the language type (hereinafter referred to as target language type) meeting the user needs according to the input parameters of the input, and automatically translate the content to be translated from the language type a to the target language type. Therefore, the electronic equipment can be prevented from being triggered to translate the content after a series of operations such as content selection, language type selection and the like are performed by a user, and the translation process can be simplified, and the convenience of translating the content by the electronic equipment is improved.
It should be noted that, before the user performs the above input, the user may trigger the electronic device to enable the press translation function. Specifically, the user may trigger the electronic device to enable the press translation function in the setup application. After the electronic device enables the press translation function, the user may perform a first input for the content, triggering the electronic device to perform S201-S202 described below.
The content processing method provided by the embodiment of the invention is described below by way of example with reference to the accompanying drawings.
As shown in fig. 2, an embodiment of the present invention provides a content processing method, which may include the following S201-S202.
S201, the electronic device receives a first input of a user aiming at target content.
Optionally, in the embodiment of the present invention, the target content may be: when the electronic equipment receives the first input, content displayed on a screen of the electronic equipment; alternatively, when the first input is received by the electronic device, the content displayed on the screen of the electronic device and the content not displayed on the screen of the electronic device may be displayed; alternatively, when the first input is received for the electronic device, content displayed from the start position of the first input to the bottom of the screen on the screen of the electronic device may be also used. The method can be specifically determined according to actual use requirements, and the embodiment of the invention is not limited.
In the embodiment of the present invention, the content displayed on the screen of the electronic device may be understood as: content loaded by the electronic device and visible to the user, which is not displayed on the screen of the electronic device, can be understood as: content that has been loaded by the electronic device but is not visible to the user.
Optionally, in the embodiment of the present invention, the content of the target content may be text, pictures, or the like. The method can be specifically determined according to actual use requirements, and the embodiment of the invention is not limited. The target content may be text in the text when the content of the target content is text, and may be text in the picture when the content of the target content is picture.
Optionally, in an embodiment of the present invention, the first input may be an input of a user on a screen of the electronic device. Specifically, the first input may be a re-press input of the user on the screen of the electronic device; alternatively, the first input may be a long press input by a user on a screen of the electronic device; alternatively, the first input may be a user's re-press slide input on the screen of the electronic device, or the like. The method can be specifically determined according to actual use requirements, and the embodiment of the invention is not limited.
In the embodiment of the present invention, the re-pressing input may be input pressed by a user under a certain pressure. The long press input may be an input that a user presses for a certain period of time. The above-described heavy press slide input may be an input in which the user presses down with a certain pressure and keeps the pressure slid.
S202, the electronic device responds to the first input to display first content in a first language type.
The first content may be a content displayed in a second language type in the target content, and a ratio of the first content to the target content is a first ratio.
It is to be appreciated that the first content is displayed in the second language type before the electronic device receives the first input from the user.
Optionally, in the embodiment of the present invention, the first content may be a part of content in the target content, or may be all content in the target content.
In the embodiment of the invention, if the user needs to translate the first content from the second language type to the first language type under the condition that the electronic device displays the target content, the user can execute the first input on the screen of the electronic device, and after the electronic device receives the first input of the user, the electronic device can respond to the first input to translate the first content from the second language type to the first language type, namely, display the first content in the first language type.
Specifically, in one possible implementation, the electronic device may update the first content displayed in the second language type to be displayed in the first language type in the target content. In another possible implementation, the electronic device may hover display the first content in the first language type on a screen of the electronic device.
It is understood that in embodiments of the present invention, the language type may also be referred to as language. By way of example, the language type may be chinese, english, etc.
Optionally, in an embodiment of the present invention, the first language type and the first proportion may be determined according to an input parameter of the first input. Specifically, after the electronic device receives the first input of the user, the electronic device may automatically determine the first language type and the first proportion according to the input parameter of the first input, and translate the content of the first proportion in the target content, that is, the first content, from the second language type to the first language type, that is, the electronic device may display the first content in the first language type. For example, assuming that the first language type is chinese and the second language type is english, after the electronic device determines the first language type and the first proportion according to the input parameter of the first input, the electronic device may translate the first proportion of the content in the target content, i.e., the first content, from english to chinese, i.e., the electronic device may display the first content in chinese.
Optionally, in the embodiment of the present invention, the first language type may be one language type, or may be multiple language types.
In the embodiment of the present invention, in the case that the first language type is a language type, the input parameters of the first input may include at least one of the following: input pressure, input duration, input trajectory, etc. In the case that the first language type is a plurality of language types, the input parameters of the first input may include input fingerprint information and at least one of: input pressure, input duration, input trajectory. Wherein different input fingerprint information may correspond to different language types.
In the embodiment of the present invention, the language type corresponding to each input fingerprint information may be preset in the electronic device by the user. For example, the user may set in advance in the electronic device that the index finger fingerprint information corresponds to english, the middle finger fingerprint information corresponds to chinese, and the like.
Optionally, in the embodiment of the present invention, in the case that the first language type is a plurality of language types, different language types may be determined according to different input parameters of the first input.
Specifically, in the embodiment of the present invention, when the user performs the first input on the screen of the electronic device in the case where the first language type is a plurality of language types, the electronic device may determine one language type according to the input fingerprint information of the first input, and the electronic device may determine another language type according to at least one of the input pressure, the input duration, and the input track of the first input.
For example, assuming that the index finger print information corresponds to english, when a user presses (i.e., performs the first input) with an index finger on a screen of the electronic device with a certain pressure value, the electronic device may determine that one language type is english according to the index finger print information input by the user, determine that another language type is chinese according to the pressure value input by the user, and determine the first content to be translated according to the pressure value input by the user, then the electronic device translates the first content into english and chinese, and finally the electronic device redisplays the first content translated into english and the first content translated into chinese.
In the following, a method for determining the first scale and the first language type will be exemplarily described with reference to the drawings by taking the first language type as an example. It should be noted that, for the case that the first language type is a plurality of language types, specific reference may be made to the description related to the first language type being one language type in the following embodiments. To avoid repetition, no further description is provided herein.
In the embodiment of the present invention, in the case where the first input is a re-press input by the user on the screen of the electronic device, the input parameter may include an input pressure. In the case where the first input is a long press input by the user on the screen of the electronic device, the input parameter may include an input duration. In the case where the first input is a user's re-press slide input on the screen of the electronic device, the above-described input parameters may include an input pressure and an input trajectory.
It should be noted that, in the embodiment of the present invention, the input parameters of the first input are not limited to those parameters specifically, that is, the input parameters may include the input pressure and the input duration, except for the case that the input parameters listed above include the input pressure, the input duration, the input pressure and the input duration; alternatively, the input parameters may include an input trajectory or the like.
In the embodiment of the present invention, the input pressure may refer to an input pressure value, and the input duration may refer to an input duration value.
(1) The input parameters include an input pressure (i.e., the first input is a user's re-press input on the screen of the electronic device).
In case the input parameter comprises an input pressure, the above-mentioned first language type and first ratio may in particular be determined by the following S301-S303.
S301, the electronic equipment determines a first proportion according to the input pressure and the pressure range in which the input pressure is located.
Alternatively, in the embodiment of the present invention, the above S301 may be specifically implemented by the following S301 a.
S301a, the electronic equipment determines a first proportion according to the input pressure and the pressure range in which the input pressure is located by adopting a first formula.
The first formula may be: Ratio 1 At a first ratio, F is the value of the input pressure, F min For the minimum pressure value of the pressure range in which the input pressure is located, F max Is the maximum pressure value of the pressure range in which the input pressure is located.
Exemplary, assuming an input pressure value of 15N, the input pressure value 15N is in the pressure range of 11-20(N) the minimum pressure value of the pressure range is 11N, the maximum pressure value of the pressure range is 20N, the first ratio is
In the embodiment of the present invention, reference may be specifically made to S302 described below for determining the pressure range in which the input pressure is located.
In the embodiment of the invention, after the electronic device determines the first proportion, the electronic device may determine the first content according to the first proportion.
Optionally, in the embodiment of the present invention, the electronic device may start with a start position of a content displayed on a screen of the electronic device, and determine a first proportion of the target content as the first content; alternatively, the electronic device may determine the first proportion of the target content as the first content starting with the input position of the first input. The method can be specifically determined according to actual use requirements, and the embodiment of the invention is not limited.
In the case where the electronic device starts with the start position of the content displayed on the screen of the electronic device and the first proportion of the target content is determined as the first content, it is assumed that the first proportion is The target content is content displayed on a screen of the electronic device when the electronic device receives the first input. As shown in fig. 3 (a), a schematic diagram of the target content 31 is displayed for the electronic device, the electronic device may start from the start position of the target content displayed on the screen of the electronic device and add +_ of the target content>The first content is determined, that is, the content shown as 32 in (b) in fig. 3 is determined as the first content.
S302, the electronic equipment determines a pressure level corresponding to the input pressure according to the input pressure.
Optionally, in the embodiment of the present invention, the electronic device may store, in advance, a plurality of pressure levels and a pressure range corresponding to each of the plurality of pressure levels, that is, each pressure level corresponds to one pressure range (specifically, may store, in text form, the plurality of pressure levels and the pressure range corresponding to each of the plurality of pressure levels). For example, the electronic device may store the pressure levels "a", "B", "C", and "D" in advance, where the pressure level "a" corresponds to a pressure range of 0-10 newtons (N), the pressure level "B" corresponds to a pressure range of 11-20 newtons (N), the pressure level "C" corresponds to a pressure range of 21-30 newtons (N), and the pressure level "D" corresponds to a pressure range of 31-40 newtons (N).
In the embodiment of the invention, after the electronic equipment receives the re-pressing input of the user on the screen of the electronic equipment, the electronic equipment can detect the input pressure when the user re-presses the input and determine the pressure range in which the input pressure is positioned according to the input pressure, thereby determining the pressure grade corresponding to the pressure range as the pressure grade corresponding to the input pressure.
For example, assuming that the input pressure value is 15N, the electronic device may determine, according to the input pressure value 15N, that the pressure range in which the input pressure value is located is 11-20 (N), thereby determining the pressure level "B" corresponding to the pressure range 11-20 (N) as the pressure level corresponding to the input pressure value.
S303, the electronic equipment determines the language type corresponding to the pressure level as a first language type.
Alternatively, in the embodiment of the present invention, each pressure level may correspond to not only one pressure range but also one language type. For example, assume that the pressure levels are "a", "B", "C", "D", respectively, the pressure level "a" may correspond to language type a, the pressure level "B" may correspond to language type B, the pressure level "C" may correspond to language type C, and the pressure level "D" may correspond to language type D.
In the embodiment of the invention, after the electronic device determines the pressure level corresponding to the input pressure, the electronic device can determine the language type corresponding to the pressure level as the first language type, so that the electronic device can display the first content in the first language type.
Illustratively, in connection with the above-described fig. 3, it is assumed that the input pressure value is 15N, the corresponding pressure level is "B", and the language type of the target content is P. After the electronic device determines that the content shown at 32 in fig. 3 (B) is the first content, the electronic device may translate the first content from the language type P to the language type B as shown at (c) in fig. 3, according to the language type B corresponding to the pressure level "B", that is, display the first content in the language type B (as shown at 33 in (c) in fig. 3).
In the embodiment of the present invention, a manner that the electronic device updates the first content displayed in the second language type to be displayed in the first language type is taken as an example, and the first content is schematically illustrated in the first language type for the electronic device.
(2) The input parameters include the input duration (i.e., the first input is a long press input by the user on the screen of the electronic device).
In case the input parameter comprises an input duration, the first language type and the first ratio may in particular be determined by S401-S403 described below.
S401, the electronic equipment determines a first proportion according to the input duration and the duration range in which the input duration is located.
Alternatively, in the embodiment of the present invention, the above S401 may be specifically implemented by S401a described below.
S401a, the electronic equipment adopts a second formula to determine a first proportion according to the input duration and the duration range of the input duration.
Wherein, the second formula is:Ratio 1 for a first proportion, T is the value of the input duration, T min For inputting the minimum duration value of the duration range of the duration, T max The maximum duration value of the duration range in which the input duration is located.
By way of example, assuming an input duration value of 5s, the duration range in which the input duration value of 5s is located is 4-6(s), the minimum duration value of the duration range is 4s,the maximum duration value of the duration range is 6s, the first proportion is
It should be noted that, in the embodiment of the present invention, the following S402 may be specifically referred to for how to determine the duration range in which the input duration is located.
In the embodiment of the invention, after the electronic device determines the first proportion, the electronic device may determine the first content according to the first proportion. The specific implementation method can be seen from the related description in S301. To avoid repetition, no further description is provided here.
S402, the electronic equipment determines a time length grade corresponding to the input time length according to the input time length.
Optionally, in the embodiment of the present invention, a plurality of time duration levels and a time duration range corresponding to each of the plurality of time duration levels may be stored in advance in the electronic device, that is, each time duration level may correspond to one time duration range (specifically, a plurality of time duration levels and a time duration range corresponding to each of the plurality of time duration levels may be stored in a text form). For example, the electronic device may store, in advance, a duration range corresponding to the duration level "E", "F", "G", and "H" of 0-3 (seconds (s)), a duration range corresponding to the duration level "F" of 4-6(s), a duration range corresponding to the duration level "G" of 7-9(s), and a duration range corresponding to the duration level "H" of 10-12(s).
In the embodiment of the invention, after the electronic equipment receives the long-press input of the user on the screen of the electronic equipment, the electronic equipment can detect the input duration of the long-press input of the user, and determine the duration range of the input duration according to the input duration, so as to determine the duration grade corresponding to the input duration according to the duration grade corresponding to the duration range.
For example, assuming that the input duration value is 5s, the electronic device may determine, according to the input duration value of 5s, that the duration range in which the input duration is located is 4-6s, so as to determine the duration level "F" corresponding to the duration range 4-6s as the duration level corresponding to the input duration value.
S403, the electronic equipment determines the language type corresponding to the duration level as a first language type.
Optionally, in the embodiment of the present invention, each duration level may correspond to not only a duration range but also a language type. Illustratively, assume that the duration levels are "E", "F", "G", and "H", respectively, the duration level "E" may correspond to the language type E, the duration level "F" may correspond to the language type F, the duration level "G" may correspond to the language type G, and the duration level "H" may correspond to the language type H.
In the embodiment of the invention, after the electronic device determines the time length grade corresponding to the input time length, the electronic device can determine the language type corresponding to the time length grade as the first language type, so that the electronic device can display the first content in the first language type.
(3) The input parameters include an input trajectory and an input pressure (i.e., the first input is a user's re-press slide input on the screen of the electronic device).
In particular, in case the input parameters comprise an input trajectory and an input pressure, the first language type and the first ratio may in particular be determined by S501-S502 described below.
S501, the electronic equipment determines a first proportion according to the input track.
In the embodiment of the invention, the electronic device can determine the first proportion according to the input track. The first proportion is a proportion of content from a first position to a second position in content displayed on a screen of the electronic device to content displayed on the screen of the electronic device, the first position can be a starting position of an input track, and the second position can be an ending position of the input track.
In the embodiment of the invention, after the electronic device determines the first proportion, the electronic device may determine the first content according to the first proportion. The specific implementation method can be seen from the related description in S301. To avoid repetition, no further description is provided here.
Optionally, in the embodiment of the present invention, the input track may be a straight line, a curve, or the like, and may specifically be determined according to actual use requirements, which is not limited by the embodiment of the present invention.
Optionally, in an embodiment of the present invention, in a case where the input parameter includes an input track and an input pressure, the electronic device may directly determine the first content according to the input track. The first content may be content from a first position to a second position in the target content, where the first position may be a start position of the input track, and the second position may be an end position of the input track.
In the embodiment of the invention, under the condition that the electronic equipment directly determines the first content according to the input track, the target content can be specifically the content displayed on the screen of the electronic equipment when the electronic equipment receives the first input.
S502, the electronic equipment determines a pressure level corresponding to the input pressure according to the input pressure, and determines a language type corresponding to the pressure level as a first language type.
In the embodiment of the invention, after the user executes the first input on the screen of the electronic device, the electronic device may determine a first proportion according to the input track of the first input, and determine the pressure range in which the input pressure is located according to the input pressure of the first input, so as to determine the pressure level corresponding to the pressure range as the pressure level corresponding to the input pressure, and determine the language type corresponding to the pressure level as the first language type, and then the electronic device may translate the first proportion of the content in the target content, i.e., the first content, from the second language type to the first language type, i.e., the electronic device displays the first content in the first language type.
The above-described S501 to S502 are exemplarily described below with reference to fig. 4.
Illustratively, as shown in fig. 4 (a), a schematic diagram of the target content 41 is displayed for the electronic device. Assume that the input pressure value is 15N, and the language type of the target language is P, and the target content is content displayed on the screen of the electronic device when the electronic device receives the first input. Then, as shown in (B) of fig. 4, after the user slides from the position shown at 42 on the screen of the electronic device to the position shown at 43 with 15N pressure, i.e., the electronic device receives the first input of the user, the electronic device may determine the contents shown at positions 42 to 43 as the first content (as shown at 44 in (B) of fig. 4) in response to the first input, and translate the first content from the language type P to the language type B (as shown at (B) of fig. 4), i.e., the electronic device displays the first content in the language type B.
In the embodiment of the invention, the user can directly trigger the electronic equipment to automatically determine the content to be translated and the language type (hereinafter referred to as the target language type) according to the input parameters of the input through one input, and automatically translate the content to be translated from one language type (namely the original language type) to the target language type, and the electronic equipment can be triggered to translate the content without the need of the user to execute a series of operations of selecting the content, selecting the language type and the like, so that the translation process can be simplified, and the convenience of translating the content by the electronic equipment can be improved.
Optionally, in the embodiment of the present invention, after the electronic device receives the first input of the target content by the user, the electronic device may further display an indication information in response to the first input, where the indication information is used to indicate a parameter value of the input parameter of the first input. Therefore, the user can adjust the parameter value of the input parameter of the first input according to the displayed parameter value, and further the user can trigger the electronic equipment to determine the content to be translated and the language type of the translated content meeting the user requirement through the first input.
For example, in conjunction with fig. 2, as shown in fig. 5, after S202, the content processing method provided in the embodiment of the present invention may further include S203 described below.
S203, the electronic device responds to the first input and displays target indication information.
The target indication information may be used to indicate a parameter value of the input parameter of the first input.
In the embodiment of the invention, after the electronic equipment receives the first input of the user, the electronic equipment responds to the first input, and not only can display the first content in the first language type, but also can display the target indication information for indicating the parameter value of the input parameter.
For example, assume that the first input is a user's re-press input on the screen of the electronic device, i.e. the input parameter comprises an input pressure. Then, after the electronic device receives the first input from the user, the electronic device may display pressure information as shown at 60 in fig. 6.
Also exemplary, assume that the first input is a long press input by a user on a screen of the electronic device, i.e., the input parameter includes an input duration. Then, after the electronic device receives the first input of the user, the electronic device may display the duration information as shown at 61 in fig. 6.
In the embodiment of the invention, the electronic equipment can only display the pressure information, can only display the duration information, and can also display the pressure information and the duration information at the same time. For convenience of description, the pressure information is illustrated with a solid line, and the duration information is illustrated with a dotted line.
It should be noted that, in the embodiment of the present invention, S202 and S203 are both results of the electronic device responding to the first input. In practical implementation, the embodiment of the present invention may not limit the execution sequence between S202 and S203, that is, the electronic device may execute S202 first and then S203 after executing S201; s203 may be executed first, and S202 may be executed later; s202 and S203 may also be performed simultaneously.
In the embodiment of the invention, the electronic equipment can display the target indication information for indicating the parameter value of the input parameter of the first input, so that the user can conveniently check the input parameter of the user at the current input moment, the user can conveniently adjust the input parameter, the electronic equipment is triggered to accurately determine the content to be translated and the language type meeting the user requirement, and the user experience can be improved.
Optionally, in the embodiment of the present invention, the user may trigger the electronic device to pre-store two pieces of fingerprint information (for example, first preset fingerprint information and second preset fingerprint information described below) in the electronic device, where one piece of fingerprint information (for example, first preset fingerprint information) may be used to translate the content, and the other piece of fingerprint information (for example, second preset fingerprint information) may be used to restore the translated content. Specifically, after the user performs a certain touch input (for example, the first input) on the electronic device, the electronic device may determine which fingerprint information the input fingerprint information when the user performs the touch input corresponds to, and when the electronic device determines that the input fingerprint information of the user corresponds to the first preset fingerprint information, the electronic device may translate a certain content from one language type to another language, that is, the electronic device may perform S201 to S202 described above. When the electronic device determines that the input fingerprint information of the user corresponds to the second preset fingerprint information, the electronic device may restore and translate a certain content from a certain language to a default language type of the electronic device, i.e., the electronic device may execute S204 described below.
In the embodiment of the invention, the translation refers to translating a certain content from a language type to any language type, and the reduction translation refers to translating a certain content from a language type to a default language type of the electronic device. For example, assuming that the default language type of the electronic device is chinese, the electronic device translates a certain content from chinese to english, which may be referred to as translation, and the electronic device translates a certain content from english to chinese, which may be referred to as reduction translation.
Optionally, in the embodiment of the present invention, in combination with the above fingerprint information, the above S202 may be specifically implemented through S202a described below.
S202a, the electronic equipment responds to the first input and displays first content in a first language type under the condition that the input fingerprint information of the first input accords with first preset fingerprint information.
In the embodiment of the invention, after the user executes the first input on the screen of the electronic device, if the electronic device determines that the input fingerprint information of the first input accords with the first preset fingerprint information, the electronic device responds to the first input and can translate the first content from the second language type to the first language type, namely, the first content is displayed in the first language type.
In the embodiment of the invention, the electronic equipment can display the first content in the first language type only under the condition that the input fingerprint information of the first input accords with the first preset fingerprint information, namely, the electronic equipment can not display the first content in the first language type under the condition that the input fingerprint information of the first input does not accord with the first preset fingerprint information, so that unnecessary operation of the electronic equipment caused by false triggering of a user can be avoided, and further the power consumption of the electronic equipment can be saved.
S204, the electronic equipment responds to the first input and displays the second content in a default language type of the electronic equipment under the condition that the input fingerprint information of the first input accords with the second preset fingerprint information.
The second content is displayed in a third language type in the target content.
It is to be appreciated that the first content is displayed in a third language type prior to the electronic device receiving the first input from the user, and the third language type is not a default language type for the electronic device.
Alternatively, in the embodiment of the present invention, the proportion of the second content to the target content may be a second proportion. Specifically, the second content may be a part of the target content or may be all of the target content.
In the embodiment of the present invention, the first content and the second content may be the same content or different content. The method can be specifically determined according to the use requirement, and the embodiment of the invention is not limited.
In the embodiment of the invention, when the user needs to restore and translate the second content from the third language to the default language of the electronic device, the user can execute the first input on the screen of the electronic device, and after the electronic device receives the first input of the user, if the input fingerprint information of the first input accords with the second preset fingerprint information, the electronic device responds to the first input and can translate the second content from the third language type to the default language type of the electronic device, namely, the electronic device displays the second content in the default language type.
Optionally, in the embodiment of the present invention, when the target content includes two language types, and the two language types are a default language type of the electronic device and another language type, the electronic device may directly determine, as the second content, the content corresponding to the other language type.
Optionally, in an embodiment of the present invention, the second content may be determined according to an input parameter of the first input.
Optionally, in an embodiment of the present invention, the input parameter may include any one of the following: input pressure, input duration.
Alternatively, in the embodiment of the present invention, the above S204 may be specifically implemented by the following S204 a.
S204a, when the input fingerprint information of the first input accords with the second preset fingerprint information and meets the target condition, the electronic equipment responds to the first input and displays the second content in the default language type.
Optionally, in an embodiment of the present invention, the target condition may include at least one of: the input pressure of the first input is greater than or equal to the preset pressure, and the input time of the first input is greater than or equal to the preset time.
Optionally, in an embodiment of the present invention, the preset pressure may be a maximum pressure in a pressure range corresponding to a pressure level, where the pressure level is a pressure level corresponding to a third language type. The preset duration may be a maximum duration of a duration range corresponding to one duration level, where the one duration level is a duration level corresponding to the third language type.
(1) The input parameter includes an input pressure.
In case the input parameter comprises an input pressure, the above-mentioned second ratio may in particular be determined by S601 described below.
S601, the electronic equipment determines a second proportion according to the input pressure and the pressure range in which the input pressure is located.
Alternatively, in the embodiment of the present invention, the above S601 may be specifically implemented by the following S601 a.
S601a, the electronic equipment determines a second proportion according to the input pressure and the pressure range in which the input pressure is located by adopting a third formula.
Wherein, the third formula is:Ratio 2 at a second ratio, F is the value of the input pressure, F min For the minimum pressure value of the pressure range in which the input pressure is located, F max Is the maximum pressure value of the pressure range in which the input pressure is located.
For example, assuming an input pressure value of 15N, the input pressure value 15N is in the pressure range of 11-20 (N), the minimum pressure value of the pressure range is 11N, the maximum pressure value of the pressure range is 20N, the second ratio is
For other descriptions of S601, reference may be made to the descriptions of S301, and for avoiding repetition, details are not repeated here.
(2) The input parameters include an input duration.
In the case where the input parameter includes an input duration, the second ratio may be determined specifically by S701 described below.
S701, the electronic equipment determines a second proportion according to the input duration and the duration range of the input duration.
Alternatively, in the embodiment of the present invention, the above S701 may be specifically implemented by the following S701 a.
S701a, the electronic equipment determines a second proportion by adopting a fourth formula according to the input duration and the duration range of the input duration.
Wherein, the fourth formula may be:Ratio 2 at a second ratio, T is the value of the input duration, T min For inputting the minimum duration value of the duration range of the duration, T max The maximum duration value of the duration range in which the input duration is located.
For example, assuming that the input duration value is 5s, the duration range in which the input duration value 5s is located is 4-6(s), and the minimum duration value of the duration range is4s, the maximum duration value of the duration range is 6s, the second proportion is
The description of S701 may be referred to the related description of S401 to avoid repetition, and will not be repeated here.
In the embodiment of the invention, the user can directly trigger the electronic equipment to automatically determine the content to be translated according to the input parameters of the input through one input, and automatically restore and translate the content to be translated from the original language type to the default language type of the electronic equipment, and the electronic equipment can be triggered to restore and translate the content without a series of operations such as selecting the content by the user, thus simplifying the restoring and translating process and improving the convenience of restoring and translating the content by the electronic equipment.
Further, the electronic device can display the second content in the default language type of the electronic device only when the input fingerprint information of the first input accords with the second preset fingerprint information, that is, the electronic device cannot display the second content in the default language type when the input fingerprint information of the first input does not accord with the second preset fingerprint information, so that unnecessary operation of the electronic device caused by false triggering of a user can be avoided, and power consumption of the electronic device can be further saved.
Furthermore, because different preset fingerprint information can correspond to different translation types (such as translation or reduction translation), a user can trigger the electronic equipment to translate by adopting different translation types through different fingerprint inputs, so that different translation purposes are realized, and the convenience of translating contents of the electronic equipment is further improved.
In the embodiment of the present invention, the content processing methods shown in the foregoing method drawings are all described by way of example with reference to one drawing in the embodiment of the present invention. In specific implementation, the content processing method shown in the foregoing method drawings may also be implemented in combination with any other drawing that may be illustrated in the foregoing embodiment, and will not be described herein.
As shown in fig. 7, an embodiment of the present invention provides an electronic device 800, where the electronic device 800 may include a receiving module 801 and a display module 802. Wherein, the receiving module 801 may be configured to receive a first input of a user for target content; the display module 802 may be configured to display the first content in the first language type in response to the first input received by the receiving module 801. The first content may be content displayed in the second language type in the target content, and the proportion of the first content to the target content is a first proportion; the first language type and the first scale may be determined based on input parameters of the first input.
Optionally, in an embodiment of the present invention, the first language type is multiple language types; wherein the different language types are determined according to different input parameters of the first input.
Optionally, in the embodiment of the present invention, the display module 802 may be specifically configured to respond to the first input and display the first content in the first language type if the input fingerprint information of the first input meets the first preset fingerprint information.
Optionally, in the embodiment of the present invention, the display module 802 may be further configured to, in response to the first input, display the second content in a default language type of the electronic device if the input fingerprint information of the first input meets the second preset fingerprint information. The second content may be content displayed in a third language type in the target content.
Optionally, in the embodiment of the present invention, the display module 802 may be specifically configured to display the second content in the default language type in response to the first input when the input fingerprint information of the first input meets the second preset fingerprint information and meets the target condition. Wherein the target condition may include at least one of: the input pressure of the first input is greater than or equal to the preset pressure, and the input time of the first input is greater than or equal to the preset time.
The electronic device provided by the embodiment of the present invention can implement each process implemented by the electronic device in the above method embodiment, and in order to avoid repetition, details are not repeated here.
The embodiment of the invention provides electronic equipment, which can receive first input of a user aiming at target content and respond to the first input to display the first content in a first language type. The first content is displayed in a second language type in the target content, the proportion of the first content to the target content is a first proportion, and the first language type and the first proportion are determined according to input parameters of the first input. According to the scheme, when a user needs to translate a certain content from one language to another language, the user can directly input the content and the language type (hereinafter referred to as a target language type) to be translated, which meet the user needs, are automatically determined according to the input parameters of the input by the electronic equipment, and the content to be translated is automatically translated from one language type (namely the source language type) to the target language type, so that the user can be triggered to translate the content without executing a series of operations such as selecting the content, selecting the language type and the like, and therefore, the translation process can be simplified, and the convenience of translating the content by the electronic equipment is improved.
Fig. 8 is a hardware schematic of an electronic device implementing various embodiments of the invention. As shown in fig. 8, the electronic device 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. It will be appreciated by those skilled in the art that the electronic device structure shown in fig. 8 is not limiting of the electronic device and that the electronic device may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. In the embodiment of the invention, the electronic equipment comprises, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer and the like.
Wherein the user input unit 107 may be adapted to receive a first input of a user for a target content. The display unit 106 may be configured to display the first content in the first language type in response to the first input received by the user input unit 107. The first content is displayed in a second language type in the target content, the proportion of the first content to the target content is a first proportion, and the first language type and the first proportion are determined according to input parameters of the first input.
It can be appreciated that, in the embodiment of the present invention, the receiving module 801 in the schematic structural diagram of the electronic device (for example, the foregoing fig. 7) may be implemented by the foregoing user input unit 107. The display module 802 in the schematic structural diagram of the electronic device (e.g., fig. 7) may be implemented by the display unit 106.
The embodiment of the invention provides electronic equipment, which can receive first input of a user aiming at target content and respond to the first input to display the first content in a first language type. The first content is displayed in a second language type in the target content, the proportion of the first content to the target content is a first proportion, and the first language type and the first proportion are determined according to input parameters of the first input. According to the scheme, when a user needs to translate a certain content from one language to another language, the user can directly input the content and the language type (hereinafter referred to as target language type) to be translated, which meet the user needs, are automatically determined according to the input parameters of the input by triggering the electronic equipment, and the content to be translated is automatically translated from one language type (namely the original language type) to the target language type, so that the user can be triggered to translate the content without executing a series of operations such as selecting the content, selecting the language type and the like, and therefore, the translation process can be simplified, and the convenience of translating the content by the electronic equipment is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be configured to receive and send information or signals during a call, specifically, receive downlink data from a base station, and then process the received downlink data with the processor 110; and, the uplink data is transmitted to the base station. Typically, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 may also communicate with networks and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user through the network module 102, such as helping the user to send and receive e-mail, browse web pages, access streaming media, and the like.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output (e.g., a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the electronic device 100. The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used for receiving an audio or video signal. The input unit 104 may include a graphics processor (graphics processing unit, GPU) 1041 and a microphone 1042, the graphics processor 1041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. Microphone 1042 may receive sound and be capable of processing such sound into audio data. The processed audio data may be converted into a format output that can be transmitted to the mobile communication base station via the radio frequency unit 101 in the case of a telephone call mode.
The electronic device 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and the proximity sensor can turn off the display panel 1061 and/or the backlight when the electronic device 100 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for recognizing the gesture of the electronic equipment (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; the sensor 105 may further include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which are not described herein.
The display unit 106 is used to display information input by a user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), or the like.
The user input unit 107 is operable to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 1071 or thereabout using any suitable object or accessory such as a finger, stylus, etc.). The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts the touch information into touch point coordinates, and sends the touch point coordinates to the processor 110, and receives and executes commands sent by the processor 110. Further, the touch panel 1071 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 107 may include other input devices 1072 in addition to the touch panel 1071. In particular, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 110 to determine the type of touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of touch event. Although in fig. 8, the touch panel 1071 and the display panel 1061 are two independent components for implementing the input and output functions of the electronic device, in some embodiments, the touch panel 1071 may be integrated with the display panel 1061 to implement the input and output functions of the electronic device, which is not limited herein.
The interface unit 108 is an interface to which an external device is connected to the electronic apparatus 100. For example, the external devices may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 100 or may be used to transmit data between the electronic apparatus 100 and an external device.
Memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area that may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), and a storage data area; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, memory 109 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 110 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 109, and calling data stored in the memory 109, thereby performing overall monitoring of the electronic device. Processor 110 may include one or more processing units; alternatively, the processor 110 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The electronic device 100 may also include a power supply 111 (e.g., a battery) for powering the various components, and optionally the power supply 111 may be logically connected to the processor 110 via a power management system that performs functions such as managing charging, discharging, and power consumption.
In addition, the electronic device 100 includes some functional modules, which are not shown, and will not be described herein.
Optionally, the embodiment of the present invention further provides an electronic device, including a processor 110 shown in fig. 8, a memory 109, and a computer program stored in the memory 109 and capable of running on the processor 110, where the computer program when executed by the processor 110 implements each process of the foregoing method embodiment, and the same technical effects can be achieved, and for avoiding repetition, a detailed description is omitted herein.
Optionally, an embodiment of the present invention further provides a computer readable storage medium, where a computer program is stored, where the computer program when executed by a processor implements each process of the foregoing method embodiment, and the same technical effects can be achieved, and for avoiding repetition, a description is omitted herein. The computer readable storage medium may include, among others, read-only memory (ROM), random access memory (random access memory, RAM), magnetic or optical disks, and the like.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing an electronic device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method described in the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are also within the protection of the present application.

Claims (3)

1. A content processing method applied to an electronic device, the method comprising:
receiving a first input of a user for target content;
responding to the first input, displaying first content in a first language type, wherein the first content is displayed in a second language type in the target content, and the proportion of the first content to the target content is a first proportion;
wherein the first language type and the first ratio are determined according to input parameters of the first input; the first language type is a plurality of language types; different language types are determined according to different input parameters of the first input;
the displaying, in response to the first input, first content in a first language type, comprising:
In response to the first input, displaying the first content in the first language type under the condition that the input fingerprint information of the first input accords with first preset fingerprint information;
the method further comprises the steps of:
when the input fingerprint information accords with second preset fingerprint information, responding to the first input, and displaying second content in a default language type of the electronic equipment, wherein the second content is displayed in a third language type in the target content, and the third language type is not the default language type of the electronic equipment;
and if the input fingerprint information accords with second preset fingerprint information, responding to the first input, and displaying second content in a default language type of the electronic equipment, wherein the method comprises the following steps:
in response to the first input, displaying the second content in the default language type under the condition that the input fingerprint information accords with the second preset fingerprint information and meets a target condition;
wherein the target condition includes at least one of: the input pressure of the first input is larger than or equal to a preset pressure, and the input time of the first input is longer than or equal to a preset time.
2. An electronic device, characterized in that the electronic device comprises a receiving module and a display module;
the receiving module is used for receiving a first input of a user aiming at target content;
the display module is used for responding to the first input received by the receiving module and displaying first content in a first language type, wherein the first content is displayed in a second language type in the target content, and the proportion of the first content in the target content is a first proportion;
wherein the first language type and the first ratio are determined according to input parameters of the first input; the first language type is a plurality of language types; different language types are determined according to different input parameters of the first input;
the display module is specifically configured to respond to the first input and display the first content in the first language type if the input fingerprint information of the first input accords with first preset fingerprint information;
the display module is further configured to, in response to the first input, display second content in a default language type of the electronic device, where the second content is content in the target content displayed in a third language type, and the third language type is not the default language type of the electronic device, where the input fingerprint information conforms to second preset fingerprint information;
The display module is specifically configured to respond to the first input and display the second content in the default language type when the input fingerprint information meets the second preset fingerprint information and meets a target condition;
wherein the target condition includes at least one of: the input pressure of the first input is larger than or equal to a preset pressure, and the input time of the first input is longer than or equal to a preset time.
3. An electronic device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, which when executed by the processor performs the steps of the content processing method as claimed in claim 1.
CN201911007624.5A 2019-10-22 2019-10-22 Content processing method and electronic equipment Active CN110866409B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911007624.5A CN110866409B (en) 2019-10-22 2019-10-22 Content processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911007624.5A CN110866409B (en) 2019-10-22 2019-10-22 Content processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN110866409A CN110866409A (en) 2020-03-06
CN110866409B true CN110866409B (en) 2024-04-05

Family

ID=69653033

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911007624.5A Active CN110866409B (en) 2019-10-22 2019-10-22 Content processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN110866409B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021248383A1 (en) * 2020-06-10 2021-12-16 Orange Method for inputting message on terminal

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104281399A (en) * 2013-07-12 2015-01-14 英业达科技有限公司 Translation system and method thereof for corresponding target character according to gesture
CN106020700A (en) * 2016-05-26 2016-10-12 维沃移动通信有限公司 Translation method and terminal equipment
CN107193393A (en) * 2017-04-28 2017-09-22 北京小米移动软件有限公司 Input method switching method and device
CN107291344A (en) * 2016-03-31 2017-10-24 中兴通讯股份有限公司 A kind of method of content selection, device and terminal device
CN208027354U (en) * 2017-12-10 2018-10-30 北京工业大学 A kind of multiple languages ancillary equipment based on gesture identification
CN110166586A (en) * 2019-04-18 2019-08-23 东莞市步步高通信软件有限公司 A kind of content display method and terminal device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104281399A (en) * 2013-07-12 2015-01-14 英业达科技有限公司 Translation system and method thereof for corresponding target character according to gesture
CN107291344A (en) * 2016-03-31 2017-10-24 中兴通讯股份有限公司 A kind of method of content selection, device and terminal device
CN106020700A (en) * 2016-05-26 2016-10-12 维沃移动通信有限公司 Translation method and terminal equipment
CN107193393A (en) * 2017-04-28 2017-09-22 北京小米移动软件有限公司 Input method switching method and device
CN208027354U (en) * 2017-12-10 2018-10-30 北京工业大学 A kind of multiple languages ancillary equipment based on gesture identification
CN110166586A (en) * 2019-04-18 2019-08-23 东莞市步步高通信软件有限公司 A kind of content display method and terminal device

Also Published As

Publication number Publication date
CN110866409A (en) 2020-03-06

Similar Documents

Publication Publication Date Title
CN110062105B (en) Interface display method and terminal equipment
CN109543099B (en) Content recommendation method and terminal equipment
CN111142991A (en) Application function page display method and electronic equipment
CN110874147B (en) Display method and electronic equipment
CN110913066A (en) Display method and electronic equipment
CN109032486B (en) Display control method and terminal equipment
CN110855830A (en) Information processing method and electronic equipment
CN109085968B (en) Screen capturing method and terminal equipment
CN109710349B (en) Screen capturing method and mobile terminal
CN111142723B (en) Icon moving method and electronic equipment
CN109656437B (en) Information display method and terminal equipment
CN108897473B (en) Interface display method and terminal
CN110752981B (en) Information control method and electronic equipment
CN109257505B (en) Screen control method and mobile terminal
CN110865745A (en) Screen capturing method and terminal equipment
CN111124706A (en) Application program sharing method and electronic equipment
CN108874906B (en) Information recommendation method and terminal
CN110703972A (en) File control method and electronic equipment
CN110597437A (en) Screen capturing method and terminal equipment
CN111190517B (en) Split screen display method and electronic equipment
CN110898424B (en) Display control method and electronic equipment
CN110851098B (en) Video window display method and electronic equipment
CN110012151B (en) Information display method and terminal equipment
CN109992192B (en) Interface display method and terminal equipment
CN109597546B (en) Icon processing method and terminal equipment

Legal Events

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