CN110866409A - Content processing method and electronic equipment - Google Patents

Content processing method and electronic equipment Download PDF

Info

Publication number
CN110866409A
CN110866409A CN201911007624.5A CN201911007624A CN110866409A CN 110866409 A CN110866409 A CN 110866409A CN 201911007624 A CN201911007624 A CN 201911007624A CN 110866409 A CN110866409 A CN 110866409A
Authority
CN
China
Prior art keywords
input
content
electronic device
language type
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.)
Granted
Application number
CN201911007624.5A
Other languages
Chinese (zh)
Other versions
CN110866409B (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

Images

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

Landscapes

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

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 that the electronic equipment is poor in convenience in content translation. 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 the content 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 scale are determined according to 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 intelligence 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, language a) to another language (hereinafter, language B). Specifically, when a user needs to translate a certain content from language a to language B, the user may first trigger the electronic device to select the content, then the user finds the identifier indicating language B in the language option, clicks the identifier, and finally the user clicks the translation control, so that the electronic device may be triggered to translate the content from language a to language B.
However, in the above 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 translation process is complicated, i.e. the electronic device has poor convenience in translating the content.
Disclosure of Invention
The embodiment of the invention provides a content processing method and electronic equipment, and aims to solve the problem that the convenience of translating contents of the electronic equipment is poor.
In order to solve the technical problem, the present application is implemented 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 the target content; and in response to the first input, displaying the first content in the first language type. 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; the first language type and the first scale are determined based on input parameters of the first input.
In a second aspect, embodiments of the present invention provide an electronic device, which may include a receiving module and a display module. The receiving module is used for receiving a first input of a user aiming at the target content; a display module for displaying the first content in the first language type in response to the first input received by the receiving module. The first content is displayed in the second language type in the target content, the proportion of the first content in the target content is a first proportion, and the first language type and the first proportion are determined according to the input parameters of the first input.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a computer program stored on the memory and executable on the processor, and when executed by the processor, the electronic device implements the steps of the content processing method in the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the content processing method as in the first aspect.
In an embodiment of the present invention, an electronic device may receive a first input by 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 the second language type in the target content, the proportion of the first content in the target content is a first proportion, and the first language type and the first proportion are determined according to the 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 use one input to trigger the electronic device to automatically determine the content to be translated and the language type (hereinafter referred to as a target language type) according to the input parameters, and automatically translate the content to be translated from one language type (namely an original language type) to the target language type, and the user does not need to perform a series of operations such as content selection and language type selection to trigger the electronic device to translate the content, so that the translation process can be simplified, and the convenience of the electronic device in translating the content is improved.
Drawings
Fig. 1 is a schematic structural diagram of an android operating system according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating a content processing method according to an embodiment of the present invention;
fig. 3 is one of schematic interfaces of an application of a content processing method according to an embodiment of the present invention;
FIG. 4 is a second schematic interface diagram of an application of the content processing method according to the embodiment of the present invention;
fig. 5 is a second schematic diagram of a content processing method according to an embodiment of the invention;
fig. 6 is a third schematic 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 hardware schematic diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The term "and/or" herein is an association relationship describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. The symbol "/" herein denotes a relationship in which the associated object is or, for example, a/B denotes a or B.
The terms "first" and "second," etc. herein are used to distinguish between different objects and are not used to describe a particular order of objects. For example, the first content, the second content, and the like are for distinguishing different contents, and are not for describing a specific order of contents.
In the embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the description of the embodiments of the present invention, unless otherwise specified, "a plurality" means two or more, for example, a plurality of elements means two or more elements, and the like.
The embodiment of the invention provides a content processing method and electronic equipment. The first content is displayed in the second language type in the target content, the proportion of the first content in the target content is a first proportion, and the first language type and the first proportion are determined according to the 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 use an input to trigger the electronic device to automatically determine the content to be translated and the language type (hereinafter referred to as a target language type) meeting the user needs according to the input parameters, and automatically translate the content to be translated from one language type (namely an original language type) to the target language type, and the user does not need to perform a series of operations of selecting the content, selecting the language type and the like to trigger the electronic device to translate the content, so that the translation process can be simplified, and the convenience of the electronic device in translating the content is improved.
The electronic device in the embodiment of the present invention may be an electronic device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present invention are not limited in particular.
The following describes a software environment to which the content processing method provided by the embodiment of the present invention is applied, 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, which are respectively: an application layer, an application 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 an android operating system. Illustratively, the application layer may include an application program that displays the target content in the embodiment of the present invention. For example, any application program that may display the target content in the embodiment of the present invention, such as an office application program, a communication application program, and a browser application program.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application. For example, an application displaying target content in an embodiment of the present invention may be developed based on an application framework.
Generally, an application program displaying target content in the embodiment of the present invention may include two parts, where one part is a service (service) running in a background of an electronic device, and may be configured to detect an input of a user on the target content displayed by the application program, and invoke a translation function in the electronic device according to the input; the other part refers to the target content displayed on the screen of the electronic device.
The system runtime layer includes libraries (also called 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 an android operating system and belongs to the bottommost layer of an android operating system software layer. The kernel layer provides kernel system services and hardware-related drivers for the android operating system based on the 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 run based on the android operating system shown in fig. 1. That is, the processor or the electronic device may implement the content processing method provided by the embodiment of the present 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. For example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted terminal, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiment of the present invention is not particularly limited.
The execution main body of the content processing method provided in the embodiment of the present invention may be the electronic device, or may also be a functional module and/or a functional entity capable of implementing the content processing method in the electronic device, which may be determined specifically according to actual use requirements, and the embodiment of the present invention is not limited. The following takes an electronic device as an example to exemplarily describe the content processing method provided by the embodiment of the present invention.
In the embodiment of the present invention, it is assumed that a 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 a part of the content in the content from the language type a to another language type, the user may execute an input on the electronic device, trigger the electronic device to automatically determine, according to an input parameter of the input, a content to be translated and a language type (hereinafter referred to as a target language type) that meet the user's needs, and automatically translate the content to be translated from the language type a to the target language type. Therefore, the situation that the user can trigger the electronic equipment to translate the content after executing a series of operations such as content selection, language type selection and the like can be avoided, so that the translation process can be simplified, and the convenience of the electronic equipment for translating the content is improved.
It should be noted that, before the user performs the 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 with respect to the content, thereby triggering the electronic device to perform S201-S202 described below.
The following describes an exemplary content processing method according to an embodiment of the present invention with reference to the drawings.
As shown in fig. 2, an embodiment of the present invention provides a content processing method, which may include S201-S202 described below.
S201, the electronic equipment receives a first input of a user aiming at the target content.
Optionally, in this embodiment of the present invention, the target content may be: the electronic equipment receives content displayed on a screen of the electronic equipment when the first input is received; or, the content displayed on the screen of the electronic device and the content not displayed on the screen of the electronic device may also be the first input received for the electronic device; alternatively, the first input may be received for the electronic device, and the content displayed on the screen of the electronic device from the starting position of the first input to the bottom of the screen may be received. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
It should be noted that, in the embodiment of the present invention, the content displayed on the screen of the electronic device may be understood as: the content that is already loaded and visible to the user by the electronic device, and what is not displayed on the screen of the electronic device may be understood as: content that is already loaded by the electronic device but is not visible to the user.
Optionally, in the embodiment of the present invention, the content format of the target content may be a text, a picture, or the like. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited. The target content may be characters in a text when the content form of the target content is a text, and the target content may be characters in a picture when the content form of the target content is a picture.
Optionally, in this 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 user's re-pressing input on a screen of the electronic device; alternatively, the first input may be a long press input by the user on a screen of the electronic device; alternatively, the first input may be a user's swipe input of a heavy press on a screen of the electronic device, or the like. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
In an embodiment of the present invention, the above-mentioned press-again input may be an input pressed by a user with a certain pressure. The long press input may be an input that a user presses for a certain length of time. The above-mentioned press-and-slide input may be an input in which the user presses with a certain pressure and holds the pressure slide.
S202, the electronic equipment responds to the first input and displays the first content in the first language type.
The first content may be 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 by the user.
Optionally, in this embodiment of the present invention, the first content may be a part of the target content, or may be all of the target content.
In the embodiment of the present invention, in a case that the electronic device displays the target content, if the user needs to translate the first content from the second language type to the first language type, the user may 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 may translate the first content from the second language type to the first language type in response to the first input, that is, display the first content in the first language type.
Specifically, in a possible implementation manner, the electronic device may update, of the target content, the first content displayed in the second language type to be displayed in the first language type. In another possible implementation, the electronic device may hover displaying the first content in the first language type on a screen of the electronic device.
It is understood that, in the embodiment of the present invention, the language type may also be referred to as a language type. Illustratively, the language type may be Chinese, English, etc.
Optionally, in this embodiment of the present invention, the first language type and the first scale may be determined according to an input parameter of the first input. Specifically, after the electronic device receives a first input of the user, the electronic device may automatically determine the first language type and the first scale according to the input parameters of the first input, and translate the first scale of content 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 scale according to the input parameters of the first input, the electronic device may translate the first scale of 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 this embodiment of the present invention, the first language type may be one language type, or may be multiple language types.
In an embodiment of the present invention, in a case that the first language type is a language type, the input parameters of the first input may include at least one of: input pressure, input duration, input trajectory, etc. In the case where 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 and input track. 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 set in the electronic device by the user in advance. For example, the user may set in advance that the index finger fingerprint information corresponds to english, the middle finger fingerprint information corresponds to chinese, and the like in the electronic device.
Optionally, in this embodiment of the present invention, when 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 first language type is a plurality of language types, when the user performs the first input on the screen of the electronic device, the electronic device may determine one language type according to input fingerprint information of the first input, and the electronic device may determine another language type according to at least one of input pressure, input duration, and input trajectory of the first input.
For example, assuming that the index finger fingerprint information corresponds to english, when the user presses down (i.e., performs the first input) with an index finger at a certain pressure value on the screen of the electronic device, the electronic device may determine that one language type is english according to the index finger fingerprint information input by the user, determine that the other 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, and then the electronic device translates the first content into english and chinese, and finally, the electronic device displays the first content translated into english and the first content translated into chinese.
The following takes the first language type as an example, and the method for determining the first scale and the first language type is exemplarily described with reference to the drawings. It should be noted that, for the case that the first language type is multiple language types, reference may be specifically made to the following description of the embodiment that the first language type is one language type. To avoid repetition, this document is not repeated.
In an embodiment of the present invention, in a case that the first input is a user's re-pressing input on a 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 a user on a screen of the electronic device, the input parameter may include an input duration. In a case where the first input is a user's re-pressing a slide input on a screen of the electronic device, the input parameters may include an input pressure and an input trajectory.
It should be noted that, the embodiment of the present invention does not limit which parameters the input parameters of the first input specifically include, that is, the input parameters may include input pressure and input duration except for the above listed cases where the input parameters include input pressure, input duration, input pressure and input duration; alternatively, the input parameters may include input trajectories, and the like.
It should be noted that, 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 parameter includes an input pressure (i.e., the first input is a user's re-press input on a screen of the electronic device).
In the case where the input parameter includes the input pressure, the above-described first language type and first proportion can be specifically determined by S301 to S303 described below.
S301, the electronic equipment determines a first proportion according to the input pressure and the pressure range where the input pressure is located.
Optionally, in the embodiment of the present invention, the step S301 may be specifically implemented by the step S301a described below.
S301a, the electronic device determines a first ratio according to the input pressure and the pressure range in which the input pressure is located by adopting a first formula.
Wherein, the first formula may be:
Figure BDA0002243227220000061
Ratio1is a first ratio, F is the value of the input pressure, FminIs the minimum pressure value of the pressure range in which the input pressure lies, FmaxIs the maximum pressure value of the pressure range within which the input pressure is located.
For example, assuming that the input pressure value is 15N, the pressure range in which the input pressure value 15N is located is 11-20(N), the minimum pressure value of the pressure range is 11N, and the maximum pressure value of the pressure range is 20N, the first ratio is
Figure BDA0002243227220000062
It should be noted that, in the embodiment of the present invention, specific reference may be made to the following S302 for how to determine the pressure range in which the input pressure is located.
In the embodiment of the present invention, after the electronic device determines the first ratio, the electronic device may determine the first content according to the first ratio.
Optionally, in this embodiment of the present invention, the electronic device may determine the first ratio of the target content as the first content, starting with a starting position of the content displayed on the screen of the electronic device; 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 determined according to actual use requirements, and the embodiment of the invention is not limited.
Illustratively, a first proportion of the target content is determined to be of the first content starting at a start position of the content displayed on the screen of the electronic deviceIn this case, assume that the first ratio is
Figure BDA0002243227220000063
The target content is content displayed on a screen of the electronic equipment when the electronic equipment receives the first input. As shown in (a) of fig. 3, a schematic diagram of the target content 31 is displayed for the electronic device, and the electronic device may start from the start position of the target content displayed on the screen of the electronic device, and display the target content
Figure BDA0002243227220000064
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 grade corresponding to the input pressure according to the input pressure.
Optionally, in the embodiment of the present invention, the electronic device may pre-store 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, the pressure range corresponding to each of the plurality of pressure levels and each of the plurality of pressure levels may be stored in a text form). For example, pressure levels "a", "B", "C", and "D" may be pre-stored in the electronic device, where the pressure level "a" corresponds to a pressure range of 0 to 10 (newtons (N)), the pressure level "B" corresponds to a pressure range of 11 to 20(N), the pressure level "C" corresponds to a pressure range of 21 to 30(N), and the pressure level "D" corresponds to a pressure range of 31 to 40 (N).
In the embodiment of the invention, after the electronic device receives the re-pressing input of the user on the screen of the electronic device, the electronic device can detect the input pressure during the re-pressing input of the user, and determine the pressure range in which the input pressure is located according to the input pressure, so that the pressure level corresponding to the pressure range is determined as the pressure level 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), so as to determine 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.
Optionally, 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, assuming that the pressure levels are "a", "B", "C" and "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 present invention, after the electronic device determines the pressure level corresponding to the input pressure, the electronic device may determine the language type corresponding to the pressure level as the first language type, so that the electronic device may display the first content in the first language type.
Illustratively, in conjunction with fig. 3 above, assume that the input pressure value is 15N, its 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 (B) in fig. 3 is the first content, the electronic device may translate the first content from language type P to language type B according to language type B corresponding to the pressure level "B", as shown in (c) in fig. 3, that is, display the first content in language type B (as shown at 33 in (c) in fig. 3).
It should be noted that, in the embodiments of the present invention, the manner that the electronic device updates the first content displayed in the second language type to 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 parameter includes an input duration (i.e., the first input is a long press input by a user on a screen of the electronic device).
In the case where the input parameter includes an input duration, the first language type and the first scale may be specifically determined by S401 to S403 described below.
S401, the electronic equipment determines a first proportion according to the input duration and the duration range where the input duration is located.
Optionally, in the embodiment of the present invention, the step S401 may be specifically implemented by the step S401a described below.
S401a, the electronic equipment determines a first proportion by adopting a second formula according to the input duration and the duration range where the input duration is located.
Wherein the second formula is:
Figure BDA0002243227220000071
Ratio1is a first proportion, T is the value of the input duration, TminIs the minimum duration value, T, of the duration range in which the input duration liesmaxIs 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 is 5s is 4-6(s), the minimum duration value of the duration range is 4s, and the maximum duration value of the duration range is 6s, the first ratio is
Figure BDA0002243227220000072
It should be noted that, in the embodiment of the present invention, specific reference may be made to the following S402 for how to determine the duration range in which the input duration is located.
In the embodiment of the present invention, after the electronic device determines the first ratio, the electronic device may determine the first content according to the first ratio. The specific implementation method can be referred to the related description in S301 above. To avoid repetition, further description is omitted here.
S402, the electronic equipment determines a duration grade corresponding to the input duration according to the input duration.
Optionally, in the embodiment of the present invention, the electronic device may pre-store a plurality of duration levels and a duration range corresponding to each of the plurality of duration levels, that is, each duration level may correspond to one duration range (specifically, the duration range corresponding to each of the plurality of duration levels and each of the plurality of duration levels may be stored in a text form). For example, the electronic device may pre-store the duration levels "E", "F", "G", and "H", the duration range corresponding to the duration level "E" is 0 to 3 (seconds (s)), the duration range corresponding to the duration level "F" is 4 to 6(s), the duration range corresponding to the duration level "G" is 7 to 9(s), and the duration range corresponding to the duration level "H" is 10 to 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 that the duration grade corresponding to the duration range is determined as the duration grade corresponding to the input duration.
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 of the input duration is 4-6s, and thus determine the duration level "F" corresponding to the duration range of 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 one duration range, but also one language type. For example, assuming 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 present invention, after the electronic device determines the duration level corresponding to the input duration, the electronic device may determine the language type corresponding to the duration level as the first language type, so that the electronic device may 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 swipe input by a re-press on a screen of the electronic device).
Specifically, in the case where the input parameters include an input trajectory and an input pressure, the first language type and the first scale may be specifically determined by S501 to 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 ratio is a ratio of contents from a first position to a second position in the contents displayed on the screen of the electronic device to the contents displayed on the screen of the electronic device, 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 present invention, after the electronic device determines the first ratio, the electronic device may determine the first content according to the first ratio. The specific implementation method can be referred to the related description in S301 above. To avoid repetition, further description is omitted here.
Optionally, in the embodiment of the present invention, the input track may be a straight line, a curved line, or the like, which may be determined according to actual use requirements, and the embodiment of the present invention is not limited.
Optionally, in this embodiment of the present invention, in a case that the input parameter includes an input trajectory and an input pressure, the electronic device may determine the first content directly according to the input trajectory. The first content may be content in the target content from a first position to a second position, 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 present invention, under the condition that the electronic device directly determines the first content according to the input trajectory, the target content may specifically be a content displayed on a screen of the electronic device when the electronic device receives the first input.
S502, the electronic equipment determines a pressure grade corresponding to the input pressure according to the input pressure, and determines a language type corresponding to the pressure grade as a first language type.
In this embodiment of the present invention, after a user performs a first input on a screen of an electronic device, the electronic device may determine a first scale according to an input trajectory of the first input, and determine a pressure range in which the input pressure is located according to the input pressure of the first input, so as to determine a pressure level corresponding to the pressure range as a pressure level corresponding to the input pressure, and determine a language type corresponding to the pressure level as a first language type, and then the electronic device may translate a content of the first scale in the target content, that is, the first content, from a second language type to the first language type, that is, the electronic device displays the first content in the first language type.
The above-mentioned S501-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, 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 to the position shown at 43 on the screen of the electronic device with a pressure of 15N, that is, the electronic device receives the first input of the user, the electronic device may determine the content shown at the position 42 to the position 43 as the first content (as shown at 44 in (B) of fig. 4) and translate the first content from the language type P to the language type B (as shown in (B) of fig. 4) in response to the first input, that is, the electronic device displays the first content in the language type B.
In the embodiment of the invention, because 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 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, the electronic equipment can be triggered to translate the content without performing a series of operations of selecting the content, selecting the language type and the like by the user, the translation process can be simplified, and the convenience of translating the content by the electronic equipment is improved.
Optionally, in this 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, so as to indicate a parameter value of the input parameter of the first input. Therefore, the user can adjust the parameter value of the first input parameter according to the displayed parameter value, and further the user can trigger the electronic equipment through the first input to determine the content to be translated meeting the user requirement and the language type of the translated content.
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 equipment responds to the first input and displays the 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 target indication information for indicating the parameter value of the input parameter.
For example, assume that the first input is a user's re-pressing input on a screen of the electronic device, i.e., the input parameter includes 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.
As another example, 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 also only display the duration information, and can also simultaneously display the pressure information and the duration information. For convenience of description, the pressure information is illustrated with a solid line, and the time length information is illustrated with a dotted line.
It should be noted that, in the embodiment of the present invention, the above 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, after S201 is executed, the electronic device may execute S202 first and then execute S203; or executing S203 first and then executing S202; 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 first input parameter, so that a 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 this 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, the first preset fingerprint information) may be used for translating the content, and the other piece of fingerprint information (for example, the second preset fingerprint information) may be used for restoring the translated content. Specifically, after the user performs a certain touch input (e.g., a first input) on the electronic device, the electronic device may determine which fingerprint information the input fingerprint information of the user performed 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 the above S201-S202. When the electronic device determines that the input fingerprint information of the user corresponds to the second preset fingerprint information, the electronic device may translate a certain content from a certain language back to a default language type of the electronic device, i.e., the electronic device may perform S204 described below.
In an embodiment of the present invention, the translating refers to translating a certain content from one language type to any one language type, and the restoring refers to translating a certain content from one 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 called translation, and translates a certain content from english to chinese, which may be called reverse translation.
Optionally, in the embodiment of the present invention, in combination with the fingerprint information, the step S202 may be specifically implemented by the step S202a described below.
S202a, in case that the input fingerprint information of the first input conforms to the first preset fingerprint information, the electronic device displays the first content in the first language type in response to the first input.
In an embodiment of the present invention, after a user performs a first input on a screen of an electronic device, if the electronic device determines that input fingerprint information of the first input matches first preset fingerprint information, the electronic device may translate, in response to the first input, first content from a second language type to a first language type, that is, display the first content 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 first input fingerprint information accords with the first preset fingerprint information, namely under the condition that the first input fingerprint information does not accord with the first preset fingerprint information, the electronic equipment cannot display the first content in the first language type, so that the electronic equipment can be prevented from executing unnecessary operation caused by false triggering of a user, and the power consumption of the electronic equipment can be further saved.
And S204, under the condition that the input fingerprint information of the first input accords with second preset fingerprint information, the electronic equipment responds to the first input, and displays second content in a default language type of the electronic equipment.
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 the third language type before the electronic device receives the first input by the user, and the third language type is not a default language type of the electronic device.
Optionally, in this embodiment of the present invention, a ratio of the second content to the target content may be the second ratio. 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 contents. The method can be determined according to the use requirement, and the embodiment of the invention is not limited.
In the embodiment of the present invention, when a user needs to translate the second content from the third language back to the default language of the electronic device, the user may execute a first input on a screen of the electronic device, and after the electronic device receives the first input of the user, if input fingerprint information of the first input matches second preset fingerprint information, the electronic device may translate the second content from the third language type to the default language type of the electronic device in response to the first input, that is, the electronic device displays the second content in the default language type.
Optionally, in this embodiment of the present invention, when the target content includes two language types, and the two language types are a default language type and another language type of the electronic device, the electronic device may directly determine the content corresponding to the another language type as the second content.
Optionally, in this 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: input pressure, input duration.
Optionally, in the embodiment of the present invention, the step S204 may be specifically implemented by the step S204a described below.
And S204a, in the case that the input fingerprint information of the first input accords with the second preset fingerprint information and the target condition is met, 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 following: the input pressure of the first input is greater than or equal to the preset pressure, and the input duration of the first input is greater than or equal to the preset duration.
Optionally, in this embodiment of the present invention, the preset pressure may be a maximum pressure in a pressure range corresponding to one pressure level, where the one pressure level is a pressure level corresponding to the third language type. The preset duration may be a maximum duration of a duration range corresponding to one duration level, and the one duration level is a duration level corresponding to the third language type.
(1) The input parameter includes an input pressure.
In the case where the input parameter includes the input pressure, the above-described second ratio may be specifically determined by S601 described below.
S601, the electronic equipment determines a second proportion according to the input pressure and the pressure range where the input pressure is located.
Optionally, in the embodiment of the present invention, the step S601 may be specifically implemented by the step S601a described below.
S601a, the electronic device determines a second proportion by adopting a third formula according to the input pressure and the pressure range where the input pressure is located.
Wherein the third formula is:
Figure BDA0002243227220000111
Ratio2is a second ratio, F is the value of the input pressure, FminIs the minimum pressure value of the pressure range in which the input pressure lies, FmaxIs the maximum pressure value of the pressure range within which the input pressure is located.
For example, assuming that the input pressure value is 15N, the pressure range in which the input pressure value 15N is located is 11-20(N), the minimum pressure value of the pressure range is 11N, the maximum pressure value of the pressure range is 20N, and the second ratio is
Figure BDA0002243227220000112
For other descriptions of the above S601, reference may be specifically made to the above description of S301, and in order to avoid repetition, the description is not repeated here.
(2) The input parameter includes an input duration.
In the case where the input parameter includes an input time period, the second proportion may be specifically determined by S701 described below.
S701, the electronic equipment determines a second proportion according to the input duration and the duration range where the input duration is located.
Optionally, in the embodiment of the present invention, the step S701 may be specifically implemented by the step S701a described below.
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:
Figure BDA0002243227220000113
Ratio2is a second ratio, T is the value of the input duration, TminIs the minimum duration value, T, of the duration range in which the input duration liesmaxIs 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 is 5s is 4-6(s), the minimum duration value of the duration range is 4s, the maximum duration value of the duration range is 6s, and the second ratio is
Figure BDA0002243227220000114
For the description of the above S701, reference may be made to the related description in the above S401 to avoid repetition, and details are not repeated here.
In the embodiment of the invention, because the user can directly trigger the electronic equipment to automatically determine the content to be translated according to the input parameters 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, the electronic equipment can be triggered to restore and translate the content without a series of operations such as selecting the content and the like performed by the user, the restoring and translating process can be simplified, and the convenience of restoring and translating the content by the electronic equipment is improved.
Furthermore, the electronic device can display the second content in the default language type of the electronic device only when the first input fingerprint information conforms to the second preset fingerprint information, that is, the electronic device cannot display the second content in the default language type when the first input fingerprint information does not conform to the second preset fingerprint information, so that the electronic device can be prevented from executing unnecessary operations due to false triggering of a user, and power consumption of the electronic device can be saved.
Furthermore, different preset fingerprint information can correspond to different translation types (for example, translation or reduction translation), so that a user can trigger the electronic equipment to adopt different translation types for translation through different fingerprint inputs, different translation purposes are achieved, and convenience of translating contents by the electronic equipment is further improved.
In the embodiment of the present invention, the content processing methods shown in the above method drawings are all exemplarily described with reference to one drawing in the embodiment of the present invention. In specific implementation, the content processing method shown in each method drawing may also be implemented by combining any other drawing which may be combined and is illustrated in the foregoing embodiments, and details are not described here again.
As shown in fig. 7, an embodiment of the present invention provides an electronic device 800, and the electronic device 800 may include a receiving module 801 and a display module 802. 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 can be content 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; 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 a plurality of language types; wherein the different language types are determined according to different input parameters of the first input.
Optionally, in this 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 when the input fingerprint information of the first input matches the first preset fingerprint information.
Optionally, in this embodiment of the present invention, the display module 802 may be further configured to respond to the first input and display the second content in a default language type of the electronic device when the input fingerprint information of the first input matches the second preset fingerprint information. Wherein the second content may be content displayed in a third language type in the target content.
Optionally, in this embodiment of the present invention, the display module 802 may be specifically configured to respond to the first input and display the second content in the default language type 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 comprise at least one of: the input pressure of the first input is greater than or equal to the preset pressure, and the input duration of the first input is greater than or equal to the preset duration.
The electronic device provided by the embodiment of the present invention can implement each process implemented by the electronic device in the above method embodiments, and is not described herein again to avoid repetition.
An embodiment of the present invention provides an electronic device, which may receive a first input by a user for a target content, and display the first content in a first language type in response to the first input. The first content is displayed in the second language type in the target content, the proportion of the first content in the target content is a first proportion, and the first language type and the first proportion are determined according to the 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 use one input to trigger the electronic equipment to automatically determine the content to be translated and the language type (hereinafter referred to as a target language type) meeting the user needs according to the input parameters, and automatically translate the content to be translated from one language type (namely an original language type) to the target language type, and the user does not need to perform a series of operations of selecting the content, selecting the language type and the like to trigger the electronic equipment to translate the content, so that the translation process can be simplified, and the convenience of the electronic equipment for translating the content is improved.
Fig. 8 is a hardware schematic diagram 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. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 8 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, 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.
The user input unit 107 may be configured to receive a first input of the target content from the user. The display unit 106 may be configured to display the first content in the first language type in response to a first input received by the user input unit 107. The first content is displayed in the second language type in the target content, the proportion of the first content in the target content is a first proportion, and the first language type and the first proportion are determined according to the input parameters of the first input.
It can be understood that, in the embodiment of the present invention, the receiving module 801 in the structural schematic diagram of the electronic device (for example, fig. 7) may be implemented by the user input unit 107. The display module 802 in the structural schematic diagram of the electronic device (for example, fig. 7) can be implemented by the display unit 106.
An embodiment of the present invention provides an electronic device, which may receive a first input by a user for a target content, and display the first content in a first language type in response to the first input. The first content is displayed in the second language type in the target content, the proportion of the first content in the target content is a first proportion, and the first language type and the first proportion are determined according to the 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 use an input to trigger the electronic device to automatically determine the content to be translated and the language type (hereinafter referred to as a target language type) meeting the user needs according to the input parameters, and automatically translate the content to be translated from one language type (namely an original language type) to the target language type, and the user does not need to perform a series of operations such as content selection and language type selection to trigger the electronic device to translate the content, so that the translation process can be simplified, and the convenience of the electronic device in translating the content is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 110; in addition, the uplink data is transmitted to the base station. Typically, 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 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 102, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
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 related to a specific function performed by the electronic apparatus 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes image data of a still picture 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 graphic 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. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode.
The electronic device 100 also includes at least one sensor 105, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or the backlight when the electronic device 100 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail 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 (LCD), an organic light-emitting diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and 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. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction 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 sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, 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 panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 8, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the electronic device, and is not limited herein.
The interface unit 108 is an interface for connecting an external device to the electronic apparatus 100. For example, the external device may include a wired or wireless headset port, an external power supply (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 the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the 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, performs various functions of the electronic device and processes data by operating 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, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly 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 further include a power supply 111 (e.g., a battery) for supplying power to each component, and optionally, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the electronic device 100 includes some functional modules that are not shown, and are not described in detail herein.
Optionally, an embodiment of the present invention further provides an electronic device, which includes the processor 110 shown in fig. 8, the 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 the processes of the foregoing method embodiment, and can achieve the same technical effect, and details are not described here to avoid repetition.
Optionally, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the foregoing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may include a read-only memory (ROM), a Random Access Memory (RAM), a magnetic or optical disk, 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 an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling an electronic device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (11)

1. A content processing method applied to an electronic device is characterized by comprising the following steps:
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 the content 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 scale are determined according to input parameters of the first input.
2. The method of claim 1, wherein the first language type is a plurality of language types;
wherein different language types are determined according to different input parameters of the first input.
3. The method of claim 1, wherein said displaying first content in a first language type in response to said first input comprises:
and in the case that the input fingerprint information of the first input conforms to first preset fingerprint information, responding to the first input and displaying the first content in the first language type.
4. The method of claim 3, further comprising:
and under the condition that 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 the content displayed in a third language type in the target content.
5. The method of claim 4, wherein the displaying the second content in the default language type of the electronic device in response to the first input in the case that the input fingerprint information conforms to the second preset fingerprint information comprises:
under the condition that the input fingerprint information accords with the second preset fingerprint information and meets a target condition, responding to the first input, and displaying the second content in the default language type;
wherein the target condition comprises at least one of: the input pressure of the first input is greater than or equal to a preset pressure, and the input duration of the first input is greater than or equal to a preset duration.
6. An electronic device, comprising a receiving module and a display module;
the receiving module is used for receiving a first input of a user aiming at the target content;
the display module is used for responding to the first input received by the receiving module, displaying first content in a first language type, wherein the first content is the content 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 scale are determined according to input parameters of the first input.
7. The electronic device of claim 6, wherein the first language type is a plurality of language types;
wherein different language types are determined according to different input parameters of the first input.
8. The electronic device of claim 6,
the display module is specifically configured to, in response to the first input, display the first content in the first language type when the input fingerprint information of the first input matches first preset fingerprint information.
9. The electronic device of claim 8,
the display module is further configured to respond to the first input and display second content in a default language type of the electronic device under the condition that the input fingerprint information conforms to second preset fingerprint information, where the second content is content displayed in a third language type in the target content.
10. The electronic device of claim 9,
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 comprises at least one of: the input pressure of the first input is greater than or equal to a preset pressure, and the input duration of the first input is greater than or equal to a preset duration.
11. An electronic device, comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the content processing method according to any one of claims 1 to 5.
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 true CN110866409A (en) 2020-03-06
CN110866409B 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)

Cited By (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

Cited By (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

Also Published As

Publication number Publication date
CN110866409B (en) 2024-04-05

Similar Documents

Publication Publication Date Title
CN111142991A (en) Application function page display method and electronic equipment
CN110062105B (en) Interface display method and terminal equipment
CN109543099B (en) Content recommendation method and terminal equipment
CN110874147B (en) Display method and electronic equipment
CN110058836B (en) Audio signal output method and terminal equipment
CN111142723B (en) Icon moving method and electronic equipment
CN109656437B (en) Information display method and terminal equipment
CN109710349B (en) Screen capturing method and mobile terminal
CN108897473B (en) Interface display method and terminal
CN110752981B (en) Information control method and electronic equipment
CN109257505B (en) Screen control method and mobile terminal
CN111163260B (en) Camera starting method and electronic equipment
CN109358931B (en) Interface display method and terminal
CN110703972B (en) File control method and electronic equipment
CN109901761B (en) Content display method and mobile terminal
CN108874906B (en) Information recommendation method and terminal
CN110597437A (en) Screen capturing method and terminal equipment
CN111190517B (en) Split screen display method and electronic equipment
CN110908750B (en) Screen capturing method and electronic equipment
CN110012151B (en) Information display method and terminal equipment
CN109992192B (en) Interface display method and terminal equipment
CN110167006B (en) Method for controlling application program to use SIM card and terminal equipment
CN110058686B (en) Control method and terminal equipment
CN109597546B (en) Icon processing method and terminal equipment
CN111338525A (en) Control method of electronic equipment and electronic 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