CN109582981A - Interpretation method, mobile terminal and readable storage medium storing program for executing based on mobile terminal - Google Patents
Interpretation method, mobile terminal and readable storage medium storing program for executing based on mobile terminal Download PDFInfo
- Publication number
- CN109582981A CN109582981A CN201811462294.4A CN201811462294A CN109582981A CN 109582981 A CN109582981 A CN 109582981A CN 201811462294 A CN201811462294 A CN 201811462294A CN 109582981 A CN109582981 A CN 109582981A
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- width
- length
- cypher text
- language
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 41
- 238000003860 storage Methods 0.000 title claims abstract description 22
- 238000013519 translation Methods 0.000 claims abstract description 42
- 238000012544 monitoring process Methods 0.000 claims abstract description 36
- 230000006870 function Effects 0.000 claims abstract description 29
- 230000009471 action Effects 0.000 claims description 9
- 230000014616 translation Effects 0.000 description 46
- 230000006854 communication Effects 0.000 description 12
- 238000004891 communication Methods 0.000 description 11
- 238000010586 diagram Methods 0.000 description 10
- 238000012545 processing Methods 0.000 description 8
- 238000005266 casting Methods 0.000 description 6
- 230000033001 locomotion Effects 0.000 description 5
- 238000001514 detection method Methods 0.000 description 4
- 238000013507 mapping Methods 0.000 description 3
- 238000010295 mobile communication Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 230000005611 electricity Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000005764 inhibitory process Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 241001347978 Major minor Species 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 230000003044 adaptive effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 230000008030 elimination Effects 0.000 description 1
- 238000003379 elimination reaction Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 230000001404 mediated effect Effects 0.000 description 1
- 230000000149 penetrating effect Effects 0.000 description 1
- 238000009527 percussion Methods 0.000 description 1
- 238000011897 real-time detection Methods 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/40—Processing or translation of natural language
- G06F40/58—Use of machine translation, e.g. for multi-lingual retrieval, for server-side translation for client devices or for real-time translation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/40—Processing or translation of natural language
- G06F40/42—Data-driven translation
- G06F40/47—Machine-assisted translation, e.g. using translation memory
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
Abstract
The invention discloses a kind of interpretation methods based on mobile terminal, this method comprises: when monitoring interpretative function starting, according to the current geographic position of the mobile terminal, each interpreter language in default interpreter language library is ranked up, interpreter language queue is obtained;When monitoring this when of the waiting for translating of input, the interpreter language for being ordered as the first in the interpreter language queue is shown as object language into object language frame;When monitoring the interpretive order of triggering, the waiting for translating is originally translated as the corresponding cypher text of object language in the object language frame, and show the cypher text in the secondary display screen.The present invention also provides a kind of mobile terminal and computer readable storage mediums.The present invention can be improved the convenience and efficiency of translation exchange.
Description
Technical field
The present invention relates to the technical field of mobile terminal more particularly to a kind of interpretation methods based on mobile terminal, movement
Terminal and readable storage medium storing program for executing.
Background technique
As the improvement of people's living standards, requirement of the people to quality of the life is also higher and higher, people often outgoing trip
Trip, also likes travelling abroad, and the case where there are language obstacles of travelling abroad, it has not been convenient to which people exchange with local resident.Cause
This people usually carries interpreting equipment or installs translation software in the terminal, by interpreting equipment and is equipped with translation software
Mobile terminal oneself being thought to, word is translated as local language so that people can exchange with local resident.
Currently, interpreting equipment or mobile terminal give other people mainly by way of casting, by the content transmission of translation, and need
The local environment for using translation is more noisy, and the grammer of language is different, and the translation of casting accurately can not convey user to think
The meaning of expression is easy that the people for listening to translation is allowed to feel to feel uncertain.Guessd out due to that can be constituted from the word of the text sentence of translation
It substantially looks like, therefore cypher text can be directly displayed.
However, need the every translation one of user just to need to pass to mobile terminal Communicator when display cypher text, then
Display cypher text is based on by Communicator to answer, and is not easy to both sides' exchange, meanwhile, user before translation, needs selected text translation
Language form, and language form is more, needs to expend the regular hour, therefore, how to improve translation exchange convenience and
Efficiency is current urgent problem to be solved.
Summary of the invention
The main purpose of the present invention is to provide a kind of interpretation method based on mobile terminal, mobile terminal and readable storages
Medium, it is intended to improve the convenience and efficiency of translation exchange.
To achieve the above object, the present invention provides a kind of interpretation method based on mobile terminal, and the mobile terminal includes
The secondary display screen of positive main display and setting overleaf is set, and the interpretation method based on mobile terminal includes following
Step:
When monitoring interpretative function starting, according to the current geographic position of the mobile terminal, to default interpreter language
Each interpreter language in library is ranked up, and obtains interpreter language queue;
When waiting for translating this when for monitoring input, will be ordered as in the interpreter language queue the first interpreter language as
Object language is shown into object language frame;
When monitoring the interpretive order of triggering, the waiting for translating is originally translated as the target language in the object language frame
It says corresponding cypher text, and shows the cypher text in the secondary display screen.
Optionally, the current geographic position according to the mobile terminal, to each interpreter language in default interpreter language library
The step of being ranked up, obtaining interpreter language queue include:
The current geographic position of the mobile terminal is obtained, and is obtained belonging to each interpreter language in default interpreter language library
The geographic area of state;
Calculate the geographic distance between the current geographic position and the geographic area of each interpreter language belonging country;
According to the size of the geographic distance, each interpreter language in default interpreter language library is ranked up, is turned over
Translate language queue.
Optionally, the step of showing the cypher text in the secondary display screen include:
The quantity for the word that the cypher text includes is counted, and obtains the dimension information of the secondary display screen;
According to the quantity and the dimension information, the target type size of the cypher text is determined;
According to the target type size, the cypher text is shown in the secondary display screen.
Optionally, after the step of showing the cypher text in the secondary display screen, further includes:
When monitoring the gripping action of the mobile terminal, whether the cypher text detected in the secondary display screen is hidden
Gear;
If detecting, the cypher text in the secondary display screen is blocked, according to what is be not blocked in the secondary display screen
Display area determines the maximum rectangular display area of a display area in the display screen;
According to goal-selling type size, default dimension of picture and the cypher text, generating includes the cypher text
Cypher text picture, and the cypher text picture is shown in the rectangular display area.
Optionally, it is shown in the rectangular display area and includes: the step of the cypher text picture
The first length and the first width of the cypher text picture are obtained, and obtains the second of the rectangular display area
Length and the second width;
According to first length, first width, second length and second width, judge whether to need
Adjust the initial display size of the cypher text picture;
If desired the initial display size of the cypher text picture is adjusted, then according to first length, described first
Width, second length and second width adjust the initial display size, and with display size adjusted in institute
It states and shows the cypher text picture in rectangular display area;
If not needing to adjust the initial display size of the cypher text picture, with the initial display size described
The cypher text picture is shown in rectangular display area
Optionally, according to first length, first width, second length and second width, adjustment
The step of initial display size includes:
First length is compared with second length, and by first width and second width
It is compared;
If first length is greater than second length, and first width is less than second width, then with institute
On the basis of stating the second length, by the initial length-width ratio of the cypher text picture, the initial display size is adjusted;
If first length is less than second length, and first width is greater than second width, then with institute
On the basis of stating the second width, by the initial length-width ratio of the cypher text picture, the initial display size is adjusted.
Optionally, first length is compared with second length, and by first width with it is described
After the step of second width is compared, further includes:
If first length is greater than second length, and first width is greater than second width, then calculates
Length difference between first length and second length, and calculate between first width and second width
Width differential;
When the length difference is greater than the width differential, on the basis of second length, by the cypher text
The initial length-width ratio of picture adjusts the initial display size;
When the length difference is less than or equal to the width differential, on the basis of second width, turned over by described
The initial length-width ratio of textual image is translated, the initial display size is adjusted.
Optionally, after the step of showing the cypher text in the secondary display screen, further includes:
When receiving voice data, judge whether the affiliated language of the voice data is the object language;
If the affiliated language of the voice data is the object language, the voice data is translated as system default
The corresponding cypher text of language, and the cypher text is shown in the main display.
In addition, to achieve the above object, the present invention also provides a kind of mobile terminal, the mobile terminal include: memory,
Processor and it is stored in the interpretive program based on mobile terminal that can be run on the memory and on the processor, it is described
It realizes when being executed based on the interpretive program of mobile terminal by the processor as described above based on the interpretation method of mobile terminal
The step of.
The present invention also provides a kind of computer readable storage medium, it is stored with and is based on the computer readable storage medium
The interpretive program of mobile terminal is realized when the interpretive program based on mobile terminal is executed by processor and is based on as described above
The step of interpretation method of mobile terminal.
The present invention provides a kind of interpretation method based on mobile terminal, mobile terminal and computer readable storage medium,
Before translation, mobile terminal is based on current geographic position and is ranked up to each interpreter language, and when needing to translate, in target language
Display is ordered as the first interpreter language in speech frame, then when triggering interpretive order, by the current display in object language frame
Interpreter language as object language, the cypher text that waiting for translating is originally translated, and shown in secondary display screen, by
It is to be ordered as the first interpreter language in the object language that user generally selects, is ordered as the first translation by directly displaying
Language, the case where being significantly reduced user's selection target language, reduce and expend the time, meanwhile, it is shown by secondary display screen
Cypher text is directly viewable cypher text convenient for the other side of exchange, greatly facilitates the exchange of both sides, effective to improve translation friendship
The convenience and efficiency of stream.
Detailed description of the invention
A kind of hardware structural diagram of Fig. 1 mobile terminal of each embodiment to realize the present invention;
Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention;
Fig. 3 is that the present invention is based on the flow diagrams of the interpretation method first embodiment of mobile terminal;
Fig. 4 is a schematic diagram of mobile terminal major-minor display screen in the embodiment of the present invention;
Fig. 5 is the schematic diagram that secondary display screen shows cypher text in the embodiment of the present invention;
Fig. 6 is the another schematic diagram that secondary display screen shows cypher text in the embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element
Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix
Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate
Computer, laptop, palm PC, personal digital assistant (PersonalDigital Assistant, PDA), portable matchmaker
Body player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. are mobile
The fixed terminals such as terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special
Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting
Dynamic terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit
103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit
108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1
Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram,
Perhaps certain components or different component layouts are combined.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station
Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating
Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication
Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications
System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code
Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division
Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division
Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102
Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows
Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need
It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100
When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or
The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103
Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears
Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode
Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out
Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited
Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike
Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042
Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can
To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model.
Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition)
The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear
Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;
The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,
The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal
Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with
And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby
(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071
Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection
Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can
To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap
It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc.
It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel
1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can
The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically
It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example,
External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing
Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with
For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area
The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function
Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage
Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place
Managing device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated
Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main
Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111
Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
As shown in Figure 1, as may include that operating system, network are logical in a kind of memory 109 of computer storage medium
Letter module, Subscriber Interface Module SIM and the interpretive program based on mobile terminal, processor 110 can be used for calling memory 109
The interpretive program based on mobile terminal of middle storage, and execute following steps:
When monitoring interpretative function starting, according to the current geographic position of the mobile terminal, to default interpreter language
Each interpreter language in library is ranked up, and obtains interpreter language queue;
When waiting for translating this when for monitoring input, will be ordered as in the interpreter language queue the first interpreter language as
Object language is shown into object language frame;
When monitoring the interpretive order of triggering, the waiting for translating is originally translated as the target language in the object language frame
It says corresponding cypher text, and shows the cypher text in the secondary display screen.
Further, processor 110 can be used for calling the translation journey based on mobile terminal stored in memory 109
Sequence, also execution following steps:
The current geographic position of the mobile terminal is obtained, and is obtained belonging to each interpreter language in default interpreter language library
The geographic area of state;
Calculate the geographic distance between the current geographic position and the geographic area of each interpreter language belonging country;
According to the size of the geographic distance, each interpreter language in default interpreter language library is ranked up, is turned over
Translate language queue.
Further, processor 110 can be used for calling the translation journey based on mobile terminal stored in memory 109
Sequence, also execution following steps:
The quantity for the word that the cypher text includes is counted, and obtains the dimension information of the secondary display screen;
According to the quantity and the dimension information, the target type size of the cypher text is determined;
According to the target type size, the cypher text is shown in the secondary display screen.
Further, processor 110 can be used for calling the translation journey based on mobile terminal stored in memory 109
Sequence, also execution following steps:
When monitoring the gripping action of the mobile terminal, whether the cypher text detected in the secondary display screen is hidden
Gear;
If detecting, the cypher text in the secondary display screen is blocked, according to what is be not blocked in the secondary display screen
Display area determines the maximum rectangular display area of a display area in the display screen;
According to goal-selling type size, default dimension of picture and the cypher text, generating includes the cypher text
Cypher text picture, and the cypher text picture is shown in the rectangular display area.
Further, processor 110 can be used for calling the translation journey based on mobile terminal stored in memory 109
Sequence, also execution following steps:
The first length and the first width of the cypher text picture are obtained, and obtains the second of the rectangular display area
Length and the second width;
According to first length, first width, second length and second width, judge whether to need
Adjust the initial display size of the cypher text picture;
If desired the initial display size of the cypher text picture is adjusted, then according to first length, described first
Width, second length and second width adjust the initial display size, and with display size adjusted in institute
It states and shows the cypher text picture in rectangular display area;
If not needing to adjust the initial display size of the cypher text picture, with the initial display size described
The cypher text picture is shown in rectangular display area.
Further, processor 110 can be used for calling the translation journey based on mobile terminal stored in memory 109
Sequence, also execution following steps:
First length is compared with second length, and by first width and second width
It is compared;
If first length is greater than second length, and first width is less than second width, then with institute
On the basis of stating the second length, by the initial length-width ratio of the cypher text picture, the initial display size is adjusted;
If first length is less than second length, and first width is greater than second width, then with institute
On the basis of stating the second width, by the initial length-width ratio of the cypher text picture, the initial display size is adjusted.
Further, processor 110 can be used for calling the translation journey based on mobile terminal stored in memory 109
Sequence, also execution following steps:
If first length is greater than second length, and first width is greater than second width, then calculates
Length difference between first length and second length, and calculate between first width and second width
Width differential;
When the length difference is greater than the width differential, on the basis of second length, by the cypher text
The initial length-width ratio of picture adjusts the initial display size;
When the length difference is less than or equal to the width differential, on the basis of second width, turned over by described
The initial length-width ratio of textual image is translated, the initial display size is adjusted.
Further, processor 110 can be used for calling the translation journey based on mobile terminal stored in memory 109
Sequence, also execution following steps:
When receiving voice data, judge whether the affiliated language of the voice data is the object language;
If the affiliated language of the voice data is the object language, the voice data is translated as system default
The corresponding cypher text of language, and the cypher text is shown in the main display.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below into
Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system
System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection
Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN
Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation
204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning
Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS
(Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way,
Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and
Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and
The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers
Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use
The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201
Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource
Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia
System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the present invention is not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And the following new network system etc., herein without limitation.
Based on above-mentioned mobile terminal hardware configuration and communications network system, propose that the present invention is based on the translations of mobile terminal
Each embodiment of method.
It is that the present invention is based on the flow diagrams of the interpretation method first embodiment of mobile terminal referring to Fig. 3, Fig. 3.
In the present embodiment, being somebody's turn to do the interpretation method based on mobile terminal includes:
Step S101, when monitoring interpretative function starting, according to the current geographic position of mobile terminal, to default translation
Each interpreter language in language library is ranked up, and obtains interpreter language queue;
The interpretation method based on mobile terminal is applied to mobile terminal, which includes main display and secondary display
Screen, as shown in figure 4, solid line region is main display screen, dashed region is secondary display screen, and the main display is arranged in mobile terminal
Front, which is arranged in the back side of mobile terminal.Translation software is installed in mobile terminal, passes through the translation software
Interpretative function may be implemented.
Whether the interpretative function of monitoring mobile terminal starts, i.e., whether the translation software installed in monitoring mobile terminal is in
Front stage operation state, if monitoring that the translation software installed in mobile terminal is in front stage operation state, it is determined that translation function
It can start, if monitoring that the translation software installed in mobile terminal is not in front stage operation state (in background operation state
Or close), it is determined that interpretative function is inactive;When monitoring interpretative function starting, the mobile terminal is according to working as where it
Preceding geographical location is ranked up each interpreter language in default interpreter language library, obtains interpreter language queue.It needs to illustrate
It is that the interpreter language in above-mentioned default interpreter language library can be configured by those skilled in the art based on actual conditions, this reality
It applies example and this is not especially limited.Optionally, the interpreter language in the default interpreter language library includes but is not limited to Chinese, English
Language, German, Japanese, Korean, French, Russian, Spanish, Portuguese and Arabic.
Specifically, the current geographic position of the mobile terminal is obtained, and obtains each translation language in default interpreter language library
It says the geographic area of belonging country, then calculates the geography between current geographic position and the geographic area of each interpreter language belonging country
Distance, and according to the size of geographic distance, each interpreter language in default interpreter language library is ranked up, interpreter language is obtained
Queue.It should be noted that the geographic distance of interpreter language is closer, then the sequence corresponded in interpreter language queue is more forward,
And the geographic distance of interpreter language is remoter, then corresponds to sequence in interpreter language queue more rearward, wherein calculate geography away from
From when, when the geographical location of mobile terminal is located in the geographic area of belonging country, geographic distance zero, then in interpreter language queue
In be ordered as first place.
Wherein, mobile terminal obtains current geographic position, the positioning method of mobile terminal includes by executing positioning operation
But it is not limited to GPS positioning, WiFi positioning, base station location and third party SDK positioning, GPS positioning is to calculate to come from three or more
The range information and correct time information of satellite and Information application triangulation for calculating, thus according to longitude,
The three-dimensional current geographic position of latitude and highly accurately calculating, the i.e. current geographic position of mobile terminal;WiFi is positioned as acquiring
The coordinate of Wi-Fi hotspot near mobile terminal is denoted as Wi-Fi hotspot coordinate, and determines mobile terminal and neighbouring Wi-Fi hotspot
The distance between, it is denoted as Wi-Fi hotspot distance, is then based on the Wi-Fi hotspot coordinate and the Wi-Fi hotspot distance, is determined mobile whole
The current geographic position at end;Base station location is the down-bound pilot frequency signal that mobile terminal measures different base station, is obtained under different base station
TOA (Time of Arrival, arrival time) or TDOA (the Time Difference of Arrival, when arrival of row pilot tone
Between it is poor), and the current position of mobile terminal using the coordinate of the measurement result and base station is determined using triangle formula algorithm for estimating
Manage position;Third party SDK is positioned as reading original position-information by SDK interface, and inquires the base station coordinates that Current Scan arrives
The current geographic of mobile terminal is determined in conjunction with original position-information, base station coordinates and Wi-Fi hotspot coordinate with Wi-Fi hotspot coordinate
Position.
Step S102 will be ordered as the first translation language when monitoring this when of the waiting for translating of input in interpreter language queue
Speech is shown as object language into object language frame;
In the present embodiment, after starting interpretative function, the main display of mobile terminal shows language translation interface, the language
Translation interface shows the input frame of waiting for translating sheet, language to be translated frame, object language frame and the translation for triggering interpretive order
Control, the input frame of the waiting for translating sheet are used for for inputting waiting for translating sheet, including but not limited to handwriting input and voice input, should
Language to be translated frame selects the language to be translated of waiting for translating sheet for user, defaults display system language, which uses
Family selects the object language of waiting for translating sheet, the object language once translated before default display.
When monitoring this when of the waiting for translating of input, which will be ordered as the first translation language in interpreter language queue
Speech is shown as object language into object language frame, wherein when monitoring object language frame by touch-control, mobile terminal passes through
The mode of drop-down menu successively shows the interpreter language in interpreter language queue according to the sequencing of sequence, selects for user
Object language.In specific implementation, which also shows the preview pane of cypher text, when the waiting for translating sheet for monitoring input
When, cypher text corresponding with the object language currently shown in the object language frame is shown in preview pane, for user's preview.
Step S103, when monitoring the interpretive order of triggering, the target that waiting for translating is originally translated as in object language frame
The corresponding cypher text of language, and cypher text is shown in secondary display screen.
In the present embodiment, when monitoring the interpretive order of triggering, waiting for translating is originally translated as object language by mobile terminal
The corresponding cypher text of the object language currently shown in frame, for example, the language of waiting for translating sheet is Chinese, in the object language frame
The object language currently shown is French, then the language for the cypher text translated is French;After obtaining cypher text,
Cypher text is shown in the secondary display screen of mobile terminal.Specifically, mobile terminal counts the word that the cypher text includes
Quantity, and the dimension information of the pair display screen is obtained, then according to the quantity and dimension information, determine the target word of cypher text
Number size, and according to the target type size, the cypher text is shown in secondary display screen.The font size of cypher text may be implemented
The adaptive adjustment of size, checks cypher text convenient for other people.Wherein, the method for determination of target type size is specially and obtains to be somebody's turn to do
Mapping table between the corresponding word quantity of dimension information and type size, and the mapping table is inquired, by the translation
The corresponding type size of the quantity for the word that text includes is determined as target type size.It should be noted that above-mentioned word number
Mapping table between amount and type size can be configured by those skilled in the art based on actual conditions, the present embodiment pair
This is not especially limited.As shown in figure 5, the upper position of the secondary display screen of mobile terminal shows cypher text.
In specific implementation, the switch control of translation casting function is also shown in the translation interface, that is, broadcasts control and is turned over
The switch control of vice screen display function, i.e. vice screen control are translated, is in close state when broadcasting control, and vice screen control is in and opens
When state, mobile terminal only shows cypher text in secondary display screen, without broadcasting cypher text;When casting control and vice screen control
When part is in opening state, while mobile terminal shows cypher text in secondary display screen, cypher text is broadcasted;Work as casting
Control is in the open state, and when vice screen control is in close state, mobile terminal only broadcasts the cypher text;When casting control
When being in closed state with vice screen control, mobile terminal shows cypher text in main display.
Further, when receiving voice data, the mobile terminal judge the voice data affiliated language whether be
The voice data is translated as system default language if the affiliated language of the voice data is the object language by object language
It says corresponding cypher text, and shows the cypher text in the main display, i.e., be use by the voiced translation for translating Communicator
The cypher text that family can understand and understand.
In the present embodiment, before translation, mobile terminal is based on current geographic position and carries out to each interpreter language the present invention
Sequence, and when needing to translate, display is ordered as the first interpreter language in object language frame, then in triggering interpretive order
When, using the interpreter language currently shown in object language frame as object language, waiting for translating is originally translated, and aobvious in pair
The cypher text shown in display screen, since the object language that user generally selects is to be ordered as the first interpreter language,
The case where being ordered as the first interpreter language by directly displaying, can be significantly reduced user's selection target language reduces consumption
It is time-consuming, meanwhile, cypher text is shown by secondary display screen, is directly viewable cypher text convenient for the other side of exchange, greatly side
Just the exchange of both sides, the effective convenience and efficiency for improving translation exchange.
Further, second that the interpretation method the present invention is based on mobile terminal is proposed based on above-mentioned first embodiment is real
Example is applied, the difference with previous embodiment is, after showing cypher text in secondary display screen, the gripping for monitoring mobile terminal is dynamic
Make, when monitoring the gripping action of mobile terminal, whether the cypher text detected in secondary display screen is blocked, if detected
Cypher text in the pair display screen is blocked, then according to the display area not being blocked in the pair display screen, in the display screen
The maximum rectangular display area of middle one display area of determination, and according to goal-selling type size, default dimension of picture and translation
Text generates the cypher text picture comprising cypher text, and shows the cypher text picture in the rectangular display area,
In, the type size of the word of the cypher text in the cypher text picture is goal-selling type size, and cypher text figure
The size of piece is default dimension of picture.As shown in fig. 6, the occlusion area of the pair display screen is the lower half portion of secondary display screen, and
The top half of secondary display screen is available display area, and includes the maximum rectangular display field of an area in available display area
Domain shows a cypher text picture in rectangular display area.
Wherein, the detection mode that whether cypher text is blocked is specially that acquisition for mobile terminal is set in the pair display screen
The collected pressure value of each pressure sensor determine the pair display screen and according to the collected pressure value of each pressure sensor
With the contact position of hand, i.e., the pressure value is greater than the position in the secondary display screen in pressure sensor place of preset pressure value, really
It is set to the contact position of the pair display screen and hand, then judges whether the contact position of the pair display screen and hand is located at cypher text
The contact position of the display area at place, the pair display screen and hand is located at the display area where cypher text, it is determined that translation
Text is blocked, conversely, determining that cypher text is not blocked.
Wherein, the detection mode that whether cypher text is blocked specifically can also be set to the pair display screen two sides to obtain
The collected pressure value of each pressure sensor of long margin frame, and according to the collected pressure value of each pressure sensor, determine that two is long
The contact position of side frame and hand, i.e., where the pressure value to be greater than to the pressure sensor of preset pressure value in two long side frames
Position is determined as the contact position of two long side frames and hand, is then based on the contact position of two long side frames and hand, forms one
Comprising each contact position, and the maximum region of area, and judge whether the region with the display area where cypher text has weight
It is folded, if the region have with the display area where cypher text it is overlapping, it is determined that cypher text is blocked, and turns over conversely, determining
Translation is not originally blocked.
In specific implementation, the specific detecting mode of gripping action be mobile terminal each side frame in be provided with several pressure
Sensor, real-time monitoring are set to the pressure value in several pressure sensors of each side frame, when pressure value is greater than the set value,
There are press points for corresponding side frame, when upside frame, downside frame, left border or the Right Border for monitoring mobile terminal
There are when several press points, it may be determined that user is gripping action to the operational motion that mobile terminal carries out.Further, it is also possible in conjunction with
Temperature sensor and infrared sensor detect gripping action, determine each of mobile terminal specifically by infrared sensor
With the presence or absence of the side frame being held in side frame, the side frame being held if it exists is then further advanced by temperature sensor
The temperature value of grip position is acquired, and determines whether the temperature value is located at preset temperature value section, if the temperature value is located in advance
If temperature value section, then it can determine that user is gripping action to the operational motion that mobile terminal carries out.On it should be noted that
The setting quantity and setting position for stating pressure sensor, temperature sensor and infrared sensor can be based on by those skilled in the art
Actual conditions are configured, and the present embodiment is not especially limited this.
In the present embodiment, during the present invention shows cypher text in secondary display screen, real-time detection cypher text is
It is no to be blocked, if the cypher text is blocked, cypher text will be converted to cypher text picture, and by cypher text picture
Other display areas into secondary display screen are adjusted, so that cypher text picture is not blocked, are convenient for quick barcode scanning.
Further, it is based on above-mentioned second embodiment, proposes the third of the interpretation method the present invention is based on mobile terminal
Embodiment, the difference with previous embodiment is, after determining rectangular display area, the acquisition for mobile terminal cypher text figure
The first length and the first width of piece, and the second length and the second width of the rectangular display area are obtained, then according to first
Length, the first width, the second length and the second width judge whether the initial display size for needing to adjust cypher text picture,
Judge whether first length is greater than the second length, and judge whether the first width is greater than the second width, if first is long
Degree is less than the second length, and the first width does not need the initial display size of adjustment cypher text picture then less than the second width,
, whereas if the first length is greater than the second length, and the first width is less than the second width, alternatively, the first length is long less than second
Degree, and the first width is greater than the second width, alternatively, the first length is greater than the second length, and the first width is greater than the second width, then
Need to adjust the initial display size of cypher text picture;If necessary to adjust the initial display ruler of the cypher text picture
It is very little, then according to the first length, the first width, the second length and the second width, initial display size is adjusted, and with adjusted aobvious
Show that size shows cypher text picture in rectangular display area, if you do not need to the initial display ruler of adjustment cypher text picture
It is very little, then cypher text picture is shown in rectangular display area with initial display size.
Wherein, the concrete mode for adjusting the initial display size of cypher text picture is by first length and second length
Degree is compared, and the first width is compared with the second width, if the first length is greater than the second length, and first is wide
Degree is less than second width, then on the basis of the second length, by the initial length-width ratio of cypher text picture, it is initial aobvious to adjust this
Show size;If first length is less than second length, and first width is greater than second width, then with second width
On the basis of, by the initial length-width ratio of the cypher text picture, adjust the initial display size.
Further, if the first length is greater than second length, and the first width is greater than second width, then counts
The length difference between the first length and second length is calculated, and calculates the width between the first width and second width
Difference;When length difference is greater than the width differential, on the basis of the second length, by the initial length and width of cypher text picture
Than adjusting initial display size;When length difference is less than or equal to width differential, on the basis of the second width, by translation text
The initial length-width ratio of this picture, adjusts initial display size.
In the present embodiment, the present invention is based on cypher text picture when needing to adjust the display size of cypher text picture
Size and rectangular display area size, adaptation adjustment cypher text picture display size so that cypher text picture
It can be shown in rectangular display area according to suitably sized, be checked convenient for other people.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium, the computer readable storage medium
On be stored with the interpretive program based on mobile terminal, when the interpretive program based on mobile terminal is executed by processor realize with
Lower step:
When monitoring interpretative function starting, according to the current geographic position of the mobile terminal, to default interpreter language
Each interpreter language in library is ranked up, and obtains interpreter language queue;
When waiting for translating this when for monitoring input, will be ordered as in the interpreter language queue the first interpreter language as
Object language is shown into object language frame;
When monitoring the interpretive order of triggering, the waiting for translating is originally translated as the target language in the object language frame
It says corresponding cypher text, and shows the cypher text in the secondary display screen.
Further, it is performed the steps of when the interpretive program based on mobile terminal is executed by processor
The current geographic position of the mobile terminal is obtained, and is obtained belonging to each interpreter language in default interpreter language library
The geographic area of state;
Calculate the geographic distance between the current geographic position and the geographic area of each interpreter language belonging country;
According to the size of the geographic distance, each interpreter language in default interpreter language library is ranked up, is turned over
Translate language queue.
Further, it is performed the steps of when the interpretive program based on mobile terminal is executed by processor
The quantity for the word that the cypher text includes is counted, and obtains the dimension information of the secondary display screen;
According to the quantity and the dimension information, the target type size of the cypher text is determined;
According to the target type size, the cypher text is shown in the secondary display screen.
Further, it is performed the steps of when the interpretive program based on mobile terminal is executed by processor
When monitoring the gripping action of the mobile terminal, whether the cypher text detected in the secondary display screen is hidden
Gear;
If detecting, the cypher text in the secondary display screen is blocked, according to what is be not blocked in the secondary display screen
Display area determines the maximum rectangular display area of a display area in the display screen;
According to goal-selling type size, default dimension of picture and the cypher text, generating includes the cypher text
Cypher text picture, and the cypher text picture is shown in the rectangular display area.
Further, it is performed the steps of when the interpretive program based on mobile terminal is executed by processor
The first length and the first width of the cypher text picture are obtained, and obtains the second of the rectangular display area
Length and the second width;
According to first length, first width, second length and second width, judge whether to need
Adjust the initial display size of the cypher text picture;
If desired the initial display size of the cypher text picture is adjusted, then according to first length, described first
Width, second length and second width adjust the initial display size, and with display size adjusted in institute
It states and shows the cypher text picture in rectangular display area;
If not needing to adjust the initial display size of the cypher text picture, with the initial display size described
The cypher text picture is shown in rectangular display area.
Further, it is performed the steps of when the interpretive program based on mobile terminal is executed by processor
First length is compared with second length, and by first width and second width
It is compared;
If first length is greater than second length, and first width is less than second width, then with institute
On the basis of stating the second length, by the initial length-width ratio of the cypher text picture, the initial display size is adjusted;
If first length is less than second length, and first width is greater than second width, then with institute
On the basis of stating the second width, by the initial length-width ratio of the cypher text picture, the initial display size is adjusted.
Further, it is performed the steps of when the interpretive program based on mobile terminal is executed by processor
If first length is greater than second length, and first width is greater than second width, then calculates
Length difference between first length and second length, and calculate between first width and second width
Width differential;
When the length difference is greater than the width differential, on the basis of second length, by the cypher text
The initial length-width ratio of picture adjusts the initial display size;
When the length difference is less than or equal to the width differential, on the basis of second width, turned over by described
The initial length-width ratio of textual image is translated, the initial display size is adjusted.
Further, it is performed the steps of when the interpretive program based on mobile terminal is executed by processor
When receiving voice data, judge whether the affiliated language of the voice data is the object language;
If the affiliated language of the voice data is the object language, the voice data is translated as system default
The corresponding cypher text of language, and the cypher text is shown in the main display.
The specific embodiment of computer readable storage medium of the present invention is each with the above-mentioned interpretation method based on mobile terminal
Embodiment is essentially identical, and therefore not to repeat here.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in one as described above
In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone,
Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of interpretation method based on mobile terminal, which is characterized in that the mobile terminal includes that setting is aobvious in positive master
Display screen and setting secondary display screen overleaf, the interpretation method based on mobile terminal the following steps are included:
When monitoring interpretative function starting, according to the current geographic position of the mobile terminal, in default interpreter language library
Each interpreter language be ranked up, obtain interpreter language queue;
When monitoring this when of the waiting for translating of input, the first interpreter language will be ordered as in the interpreter language queue as target
Language is shown into object language frame;
When monitoring the interpretive order of triggering, the waiting for translating is originally translated as the object language pair in the object language frame
The cypher text answered, and the cypher text is shown in the secondary display screen.
2. as described in claim 1 based on the interpretation method of mobile terminal, which is characterized in that according to working as the mobile terminal
Preceding geographical location, the step of being ranked up to each interpreter language in default interpreter language library, obtain interpreter language queue include:
The current geographic position of the mobile terminal is obtained, and obtains and presets each interpreter language belonging country in interpreter language library
Geographic area;
Calculate the geographic distance between the current geographic position and the geographic area of each interpreter language belonging country;
According to the size of the geographic distance, each interpreter language in default interpreter language library is ranked up, obtains translation language
Say queue.
3. as described in claim 1 based on the interpretation method of mobile terminal, which is characterized in that shown in the secondary display screen
The step of cypher text includes:
The quantity for the word that the cypher text includes is counted, and obtains the dimension information of the secondary display screen;
According to the quantity and the dimension information, the target type size of the cypher text is determined;
According to the target type size, the cypher text is shown in the secondary display screen.
4. the interpretation method as claimed in any one of claims 1-3 based on mobile terminal, which is characterized in that described secondary aobvious
After the step of showing the cypher text in display screen, further includes:
When monitoring the gripping action of the mobile terminal, whether the cypher text detected in the secondary display screen is blocked;
If detecting, the cypher text in the secondary display screen is blocked, according to the display not being blocked in the secondary display screen
Region determines the maximum rectangular display area of a display area in the display screen;
According to goal-selling type size, default dimension of picture and the cypher text, turning over comprising the cypher text is generated
Textual image is translated, and shows the cypher text picture in the rectangular display area.
5. as claimed in claim 4 based on the interpretation method of mobile terminal, which is characterized in that in the rectangular display area
The step of showing the cypher text picture include:
The first length and the first width of the cypher text picture are obtained, and obtains the second length of the rectangular display area
With the second width;
According to first length, first width, second length and second width, judge whether to need to adjust
The initial display size of the cypher text picture;
If desired adjust the initial display size of the cypher text picture, then according to first length, first width,
Second length and second width adjust the initial display size, and with display size adjusted in the square
The cypher text picture is shown in shape display area;
If not needing to adjust the initial display size of the cypher text picture, with the initial display size in the rectangle
The cypher text picture is shown in display area.
6. as claimed in claim 5 based on the interpretation method of mobile terminal, which is characterized in that according to first length, institute
The step of stating the first width, second length and second width, adjusting the initial display size include:
First length is compared with second length, and first width and second width are carried out
Compare;
If first length is greater than second length, and first width is less than second width, then with described the
On the basis of two length, by the initial length-width ratio of the cypher text picture, the initial display size is adjusted;
If first length is less than second length, and first width is greater than second width, then with described the
On the basis of two width, by the initial length-width ratio of the cypher text picture, the initial display size is adjusted.
7. as claimed in claim 6 based on the interpretation method of mobile terminal, which is characterized in that by first length with it is described
Second length is compared, and after the step of first width is compared with second width, further includes:
If first length is greater than second length, and first width is greater than second width, then described in calculating
Length difference between first length and second length, and calculate the width between first width and second width
Spend difference;
When the length difference is greater than the width differential, on the basis of second length, by the cypher text picture
Initial length-width ratio, adjust the initial display size;
When the length difference is less than or equal to the width differential, on the basis of second width, by the translation text
The initial length-width ratio of this picture adjusts the initial display size.
8. the interpretation method as claimed in any one of claims 1-3 based on mobile terminal, which is characterized in that described secondary aobvious
After the step of showing the cypher text in display screen, further includes:
When receiving voice data, judge whether the affiliated language of the voice data is the object language;
If the affiliated language of the voice data is the object language, the voice data is translated as system default language
Corresponding cypher text, and the cypher text is shown in the main display.
9. a kind of mobile terminal, which is characterized in that the mobile terminal includes: memory, processor and is stored in the storage
On device and the interpretive program based on mobile terminal that can run on the processor, the interpretive program based on mobile terminal
The step such as the interpretation method described in any item of the claim 1 to 8 based on mobile terminal is realized when being executed by the processor
Suddenly.
10. a kind of computer readable storage medium, which is characterized in that be stored on the computer readable storage medium based on shifting
The interpretive program of dynamic terminal is realized when the interpretive program based on mobile terminal is executed by processor as in claim 1 to 8
The step of described in any item interpretation methods based on mobile terminal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811462294.4A CN109582981B (en) | 2018-11-30 | 2018-11-30 | Translation method based on mobile terminal, mobile terminal and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811462294.4A CN109582981B (en) | 2018-11-30 | 2018-11-30 | Translation method based on mobile terminal, mobile terminal and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109582981A true CN109582981A (en) | 2019-04-05 |
CN109582981B CN109582981B (en) | 2023-12-01 |
Family
ID=65925782
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811462294.4A Active CN109582981B (en) | 2018-11-30 | 2018-11-30 | Translation method based on mobile terminal, mobile terminal and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109582981B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110166586A (en) * | 2019-04-18 | 2019-08-23 | 东莞市步步高通信软件有限公司 | A kind of content display method and terminal device |
CN111415665A (en) * | 2020-04-07 | 2020-07-14 | 浙江国贸云商控股有限公司 | Voice processing method and device for video call and electronic equipment |
CN112764549A (en) * | 2021-04-09 | 2021-05-07 | 北京亮亮视野科技有限公司 | Translation method, translation device, translation medium and near-to-eye display equipment |
CN113743134A (en) * | 2021-08-30 | 2021-12-03 | 上海传兴科技有限公司 | Translation method, mobile terminal and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW201535255A (en) * | 2014-03-07 | 2015-09-16 | Acer Inc | Method for arranging language types of language list |
CN105278910A (en) * | 2015-11-24 | 2016-01-27 | 努比亚技术有限公司 | Display method and apparatus |
CN106648388A (en) * | 2016-11-18 | 2017-05-10 | 宇龙计算机通信科技(深圳)有限公司 | Communication method and device based on terminal, and terminal |
CN107306380A (en) * | 2016-04-20 | 2017-10-31 | 中兴通讯股份有限公司 | A kind of method and device of the object language of mobile terminal automatic identification voiced translation |
CN108595445A (en) * | 2018-04-23 | 2018-09-28 | Oppo广东移动通信有限公司 | Interpretation method, device and terminal |
-
2018
- 2018-11-30 CN CN201811462294.4A patent/CN109582981B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW201535255A (en) * | 2014-03-07 | 2015-09-16 | Acer Inc | Method for arranging language types of language list |
CN105278910A (en) * | 2015-11-24 | 2016-01-27 | 努比亚技术有限公司 | Display method and apparatus |
CN107306380A (en) * | 2016-04-20 | 2017-10-31 | 中兴通讯股份有限公司 | A kind of method and device of the object language of mobile terminal automatic identification voiced translation |
CN106648388A (en) * | 2016-11-18 | 2017-05-10 | 宇龙计算机通信科技(深圳)有限公司 | Communication method and device based on terminal, and terminal |
CN108595445A (en) * | 2018-04-23 | 2018-09-28 | Oppo广东移动通信有限公司 | Interpretation method, device and terminal |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110166586A (en) * | 2019-04-18 | 2019-08-23 | 东莞市步步高通信软件有限公司 | A kind of content display method and terminal device |
CN110166586B (en) * | 2019-04-18 | 2021-01-08 | 维沃移动通信(深圳)有限公司 | Content display method and terminal equipment |
CN111415665A (en) * | 2020-04-07 | 2020-07-14 | 浙江国贸云商控股有限公司 | Voice processing method and device for video call and electronic equipment |
CN112764549A (en) * | 2021-04-09 | 2021-05-07 | 北京亮亮视野科技有限公司 | Translation method, translation device, translation medium and near-to-eye display equipment |
CN113743134A (en) * | 2021-08-30 | 2021-12-03 | 上海传兴科技有限公司 | Translation method, mobile terminal and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109582981B (en) | 2023-12-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109614025B (en) | Riding code display control method, mobile terminal and computer readable storage medium | |
CN109582981A (en) | Interpretation method, mobile terminal and readable storage medium storing program for executing based on mobile terminal | |
CN108322612A (en) | Icon display method, mobile terminal and computer readable storage medium | |
CN109444938A (en) | Combined positioning method, mobile terminal and the readable storage medium storing program for executing of mobile terminal | |
CN108052256A (en) | Message display method, mobile terminal and computer readable storage medium | |
CN108989873A (en) | Barrage information display method, mobile terminal and computer readable storage medium | |
CN109471571A (en) | Display methods, mobile terminal and the computer readable storage medium of suspension control | |
CN108172161A (en) | Display methods, mobile terminal and computer readable storage medium based on flexible screen | |
CN107239567A (en) | A kind of recognition methods of object scene, equipment and computer-readable recording medium | |
CN106126053B (en) | Mobile terminal control device and method | |
CN108282578A (en) | Shoot based reminding method, mobile terminal and computer readable storage medium | |
CN110033769A (en) | A kind of typing method of speech processing, terminal and computer readable storage medium | |
CN109542381A (en) | Payment code display control method, mobile terminal and computer readable storage medium | |
CN110134306A (en) | A kind of data sharing method, device and computer readable storage medium | |
CN109934769A (en) | Method, terminal and the storage medium of the long screenshot of screen | |
CN110058827A (en) | A kind of vice screen wallpaper treatment method, mobile terminal and the storage medium of mobile terminal | |
CN108924355A (en) | Signal frequency method of adjustment, mobile terminal and computer readable storage medium | |
CN110213717A (en) | A kind of localization method, localization message remind terminal and localization message system for prompting | |
CN109781091A (en) | A kind of map-indication method of mobile terminal, mobile terminal and storage medium | |
CN108733278A (en) | A kind of matching making friends method, mobile terminal and computer storage media | |
CN109151184A (en) | A kind of method for controlling mobile terminal, mobile terminal and computer readable storage medium | |
CN109062678A (en) | A kind of Working mode switching method, wearable device and computer storage medium | |
CN109948368B (en) | Privacy authority control method, device and computer readable storage medium | |
CN109788134A (en) | A kind of address automated input methodology, mobile terminal and the computer readable storage medium of mobile terminal | |
CN110083294A (en) | Screen interception method, terminal and computer readable storage medium |
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 |