CN112988297A - Language switching method and device based on touch screen, electronic equipment and storage medium - Google Patents
Language switching method and device based on touch screen, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN112988297A CN112988297A CN202110260873.6A CN202110260873A CN112988297A CN 112988297 A CN112988297 A CN 112988297A CN 202110260873 A CN202110260873 A CN 202110260873A CN 112988297 A CN112988297 A CN 112988297A
- Authority
- CN
- China
- Prior art keywords
- language
- icons
- touch screen
- background picture
- switching method
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 73
- 230000006870 function Effects 0.000 claims abstract description 73
- 238000013519 translation Methods 0.000 claims abstract description 18
- 238000004590 computer program Methods 0.000 claims description 7
- 238000004891 communication Methods 0.000 claims description 5
- 230000010354 integration Effects 0.000 claims description 5
- 230000008569 process Effects 0.000 abstract description 18
- 230000000694 effects Effects 0.000 abstract description 9
- 230000015572 biosynthetic process Effects 0.000 abstract description 8
- 238000012545 processing Methods 0.000 abstract description 8
- 238000003786 synthesis reaction Methods 0.000 abstract description 8
- 230000014616 translation Effects 0.000 description 16
- 238000010146 3D printing Methods 0.000 description 6
- 230000009471 action Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000003993 interaction Effects 0.000 description 3
- 238000013507 mapping Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 241000219095 Vitis Species 0.000 description 2
- 235000009754 Vitis X bourquina Nutrition 0.000 description 2
- 235000012333 Vitis X labruscana Nutrition 0.000 description 2
- 235000014787 Vitis vinifera Nutrition 0.000 description 2
- 230000002452 interceptive effect Effects 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 238000007639 printing Methods 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000002194 synthesizing effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- 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
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V30/00—Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
- G06V30/10—Character recognition
- G06V30/14—Image acquisition
- G06V30/148—Segmentation of character regions
- G06V30/153—Segmentation of character regions using recognition of characters or words
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V30/00—Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
- G06V30/10—Character recognition
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Multimedia (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the invention discloses a language switching method and device based on a touch screen, electronic equipment and a storage medium, wherein the language switching method based on the touch screen comprises the following steps: acquiring a background picture and identifying characters in the background picture; translating the characters into a plurality of icons corresponding to the multinational language quantity according to the multinational language quantity; integrating the plurality of icons into an icon set and representing the icon set as a variable address; generating a calling function according to the variable address; and displaying a corresponding icon of the language to be translated on the touch screen according to the calling function. The language switching method based on the touch screen provided by the embodiment of the invention solves the problem of complex processing process and logic process in the prior art by corresponding the characters and the translation contents on the picture and calling through the function, and realizes the effect of reducing the complexity of background picture synthesis and the complexity of program logic switching of related background pictures.
Description
Technical Field
The embodiment of the invention relates to the technical field of multi-language switching of 3D printing UI interaction, in particular to a language switching method and device based on a touch screen, electronic equipment and a storage medium.
Background
In 3D printing technology, a display screen is typically used for human-computer interaction, and besides displaying relevant parameters, the display screen can also be used as an entry for configuring parameters. The method comprises the following steps that a low-end 3D printer generally selects and controls menus in a 128-by-64 dot matrix screen and knob mode, and a middle-end 3D printer generally selects and controls menus by adopting a touch screen; in the human-computer interaction of the touch screen, when a foreign client needs to be connected, the problem of switching of interactive languages is involved, namely switching of Chinese and English, and even more complicated display switching of languages of multiple countries such as Chinese, Japanese, Korean, Germany, English, Russia, grape and the like; the first mode is: when only one country language exists, the characters on the UI interface are displayed, the form of the background picture can be used, the characters are pasted on the related appointed display area to be synthesized into a new background picture, the mode is that after the background picture is made, the related characters are still fixed on the interface, and the mode is simple to develop and easy to understand; when 2 or 3 languages are switched, a background picture can be adopted, characters are pasted on a related appointed area to synthesize a new background picture, but the operation of synthesizing the background picture needs to be increased by times, for example, if the languages of Chinese English, English and three countries are used, the same background picture needs to be repeatedly processed into the new background picture of Chinese English, English and three countries, and a program needs to identify different language modes by program logic to switch different background pictures when being driven; the second mode is a word stock mode, after a background picture is made, a text control is added on the background picture for display, and then a program logically identifies different language modes to switch different text controls for display when driving, but only a high-end touch screen has a word stock switching function, and a middle-end touch screen does not have the word stock switching function.
Disclosure of Invention
The invention provides a language switching method and device based on a touch screen, electronic equipment and a storage medium, and aims to achieve the effect of reducing the complexity of background picture synthesis and the complexity of program logic switching of related background pictures.
In a first aspect, an embodiment of the present invention provides a language switching method based on a touch screen, including:
acquiring a background picture and identifying characters in the background picture;
translating the characters into a plurality of icons corresponding to the multinational language quantity according to the multinational language quantity;
integrating the plurality of icons into an icon set and representing the icon set as a variable address;
generating a calling function according to the variable address;
and displaying a corresponding icon of the language to be translated on the touch screen according to the calling function.
Optionally, the obtaining a background picture and identifying the text in the background picture includes:
acquiring a background picture and identifying all characters in the background picture;
and splitting all the characters into a plurality of different single phrases.
Optionally, the translating the text into a plurality of icons corresponding to the number of the multinational languages according to the number of the multinational languages further includes:
sequentially numbering the plurality of icons according to 1.jpg, 2.jpg, 3.jpg … N.jpg, wherein N is the multinational language quantity.
Optionally, the integrating the multiple icons into an icon set and representing the icon set as a variable address includes:
setting the lower limit and the upper limit of the variable address to be 1 and N respectively;
and sequentially corresponding the lower limit to the upper limit to the number of 1.jpg, 2.jpg and 3.jpg … N.jpg of the icons.
Optionally, after generating the call function according to the variable address, the method further includes:
and acquiring the language required to be translated and input by the user.
Optionally, the generating a call function according to the variable address includes:
and generating a calling function according to the variable address and the communication protocol, wherein the calling function is used for matching the language to be translated with the icon of the corresponding language in the plurality of icons.
Optionally, the call function is RTS _ SndData (int m, int n), where m is a language to be translated, and n is an icon number corresponding to the language to be translated.
In a second aspect, the embodiment of the present invention further provides a dance device based on a virtual dance insole, the dance device including:
the character acquisition module is used for acquiring a background picture and identifying characters in the background picture;
the character translation module is used for translating the characters into a plurality of icons corresponding to the number of the multinational languages according to the number of the multinational languages;
an address integration module for integrating the plurality of icons into an icon set and representing the icon set as a variable address;
the function generation module is used for generating a calling function according to the variable address;
and the content display module is used for displaying the corresponding icon of the language to be translated on the touch screen according to the calling function.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a touch screen based language switching method as described in any of the above.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, the computer program including program instructions, where the program instructions, when executed by a processor, implement any of the above-mentioned touch screen-based language switching methods.
The embodiment of the invention discloses a language switching method and device based on a touch screen, electronic equipment and a storage medium, wherein the language switching method based on the touch screen comprises the following steps: acquiring a background picture and identifying characters in the background picture; translating the characters into a plurality of icons corresponding to the multinational language quantity according to the multinational language quantity; integrating the plurality of icons into an icon set and representing the icon set as a variable address; generating a calling function according to the variable address; and displaying a corresponding icon of the language to be translated on the touch screen according to the calling function. The language switching method based on the touch screen provided by the embodiment of the invention solves the problem of complex processing process and logic process in the prior art by corresponding the characters and the translation contents on the picture and calling through the function, and realizes the effect of reducing the complexity of background picture synthesis and the complexity of program logic switching of related background pictures.
Drawings
Fig. 1 is a flowchart of a language switching method based on a touch screen according to an embodiment of the present invention;
fig. 2 is a flowchart of a language switching method based on a touch screen according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a language switching apparatus based on a touch screen according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. A process may be terminated when its operations are completed, but may have additional steps not included in the figure. A process may correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.
Furthermore, the terms "first," "second," and the like may be used herein to describe various orientations, actions, steps, elements, or the like, but the orientations, actions, steps, or elements are not limited by these terms. These terms are only used to distinguish one direction, action, step or element from another direction, action, step or element. For example, a first module may be termed a second module, and, similarly, a second module may be termed a first module, without departing from the scope of the present application. The first module and the second module are both modules, but they are not the same module. The terms "first", "second", etc. are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Example one
Fig. 1 is a flowchart of a language switching method based on a touch screen according to an embodiment of the present invention, where the language switching method based on a touch screen according to the embodiment of the present invention is applicable to a case of UI language switching of a touch screen in 3D printing, and specifically, the language switching method based on a touch screen according to the embodiment of the present invention includes:
In this embodiment, in 3D printing, a touch screen display UI interface of a 3D printer generally includes a plurality of characters, for example, a plurality of components such as printing, setting, selecting, adjusting, and the like, specifically, a background picture is a display interface of the UI interface, and all characters in the UI interface are recognized through manual recognition or machine recognition.
In this embodiment, step 100 may further include: step 101 and step 102, specifically:
step 101, obtaining a background picture and identifying all characters in the background picture.
And 102, splitting all the characters into a plurality of different single phrases.
In this embodiment, all the characters in the acquired background picture are recognized and split and then translated separately, for example, the characters recognized manually or by a machine have a "print setting option adjustment interactive menu", and all the characters are split into a single phrase, for example, "print", "set", "option", "adjust", "interact", "menu". All recognized characters are split, so that translation small icons can be conveniently manufactured and replaced subsequently, and the problem that switching is inconvenient due to overlarge icons is solved.
And step 110, translating the characters into a plurality of icons corresponding to the multinational language quantity according to the multinational language quantity.
In the present embodiment, the number of the multi-national languages is the number of the languages that need to be translated on the UI interface of the 3D printer, and can be generally set according to the user requirement, and for example, in the present embodiment, 9 languages such as chinese, japanese, korean, de, english, russia, and glu are used for explanation, so that the corresponding text acquired in step 100 is translated into 9 languages, and the number of translations is consistent with the number of languages that need to be translated. Specifically, the characters are translated into 9 small icons, and each icon corresponds to 9 languages, such as Chinese, Japanese, Korean, German, English, Russian, and grape.
And step 120, integrating the multiple icons into an icon set and representing the icon set as a variable address.
In this embodiment, the whole icon obtained in step 110 is taken as an icon set, all the icons in the icon set can be numbered, the numbered cases are arranged in a certain sequence, for example, for a certain word, the translated icons corresponding to 9 languages are arranged according to numbers 1-9, calling the corresponding icon only needs to refer to the corresponding icon number, the icon set is represented as a variable address, the lower limit of the variable address a is set to 1, the upper limit of the variable is set to 9, and the icons corresponding to 9 languages respectively correspond to the icons, and at this time, the mapping configuration of the icons is completed.
And step 130, generating a calling function according to the variable address.
In this embodiment, by performing software programming, a call function is generated according to a variable address, and the call function is used to pair a language to be translated with a corresponding icon, for example, a user needs japanese translation, and at this time, a japanese translation, which is an icon corresponding to the sequence 2, is obtained through the function.
And 140, displaying a corresponding icon of the language to be translated on the touch screen according to the calling function.
In this embodiment, a UI interface corresponding to translation is generated according to a call function and a language to be translated selected by a user, all characters on the UI interface are translated into the language to be translated selected by the user, and each original word is replaced by a translated small icon.
The embodiment of the invention discloses a language switching method based on a touch screen, which comprises the following steps: acquiring a background picture and identifying characters in the background picture; translating the characters into a plurality of icons corresponding to the multinational language quantity according to the multinational language quantity; integrating the plurality of icons into an icon set and representing the icon set as a variable address; generating a calling function according to the variable address; and displaying a corresponding icon of the language to be translated on the touch screen according to the calling function. The language switching method based on the touch screen provided by the embodiment of the invention solves the problem of complex processing process and logic process in the prior art by corresponding the characters and the translation contents on the picture and calling through the function, and realizes the effect of reducing the complexity of background picture synthesis and the complexity of program logic switching of related background pictures.
Example two
Fig. 2 is a flowchart of a language switching method based on a touch screen according to a second embodiment of the present invention, where the language switching method based on a touch screen according to the second embodiment of the present invention is applicable to a case of UI language switching of a touch screen in 3D printing, and specifically, the language switching method based on a touch screen according to the second embodiment of the present invention includes:
And step 220, sequentially numbering the multiple icons according to 1.jpg, 2.jpg and 3.jpg … N.jpg, wherein N is the number of the multinational languages.
In the present embodiment, the small icons translated into the multi-national languages in step 210 are numbered in sequence, and for example, the language translation "print" in 9 is taken as an example, and the numbers are 1.jpg, 2.jpg, and 3.jpg …. jpg in sequence, which represent icons switched by 9 languages. Similarly, the interface has a 'setting' character, the 'setting' character is translated into 9 national languages, small icons 10.jpg, 11.jpg and 12.jpg …. jpg are made, and the icons represent the switching of the languages in 9.
And step 230, setting the lower limit of the variable address to be 1 and the upper limit to be N.
And 240, sequentially corresponding the lower limit to the upper limit to the numbers of 1.jpg, 2.jpg and 3.jpg … N.jpg of the icons.
In this embodiment, the icons corresponding to each word in step 220 are integrated into one icon set, and calling the corresponding icon only needs to refer to the corresponding icon serial number; for example, the word "print" may indicate that the icon set is a variable address a, the lower limit of the variable is set to 1, and the upper limit of the variable is set to 9; and the icon number corresponding to the lower limit of the variable is 1.jpg, and the icon number corresponding to the upper limit of the variable is 9.jpg, so that the mapping configuration of the 'printing' icon is completed. The word "set" may indicate that the icon set is a variable address c, the lower limit of the variable is set to 1, and the upper limit of the variable is set to 9; the icon number corresponding to the lower limit of the variable is 10.jpg, and the icon number corresponding to the upper limit of the variable is 18.jpg, thereby completing the mapping configuration of the setting icon.
And step 250, generating a calling function according to the variable address and the communication protocol, wherein the calling function is used for matching the language to be translated with the icon of the corresponding language in the plurality of icons.
In this embodiment, according to the variable address and the communication protocol, the language index variable value of the corresponding address may be written, and specifically, the call function is RTS _ SndData (int m, int n), where m is a language to be translated and n is an icon number corresponding to the language to be translated. In the calling function, exemplarily, the address of the "print" literal variable is a, the value of the 9 national language index variable is b, and we can name a multinational language refresh function RTS _ SndData (int m, int n); the a and b are taken as parameters for transfer, and then the function has the following effects: and (3) displaying the icon mapped by the variable b in the icon set a on the touch screen, wherein if b is equal to 2, 2.jpg is displayed on the background picture.
And step 260, acquiring the language required to be translated and input by the user.
In this embodiment, in the UI interface for 3D printing, a button for the user to select a desired language may be provided, and the user may select the desired language to quickly switch the UI interface to the language desired by the user by calling a function.
And 270, displaying a corresponding icon of the language to be translated on the touch screen according to the calling function.
The embodiment of the invention discloses a language switching method based on a touch screen, which comprises the following steps: acquiring a background picture and identifying characters in the background picture; translating the characters into a plurality of icons corresponding to the multinational language quantity according to the multinational language quantity; integrating the plurality of icons into an icon set and representing the icon set as a variable address; generating a calling function according to the variable address; and displaying a corresponding icon of the language to be translated on the touch screen according to the calling function. The language switching method based on the touch screen provided by the embodiment of the invention solves the problem of complex processing process and logic process in the prior art by corresponding the characters and the translation contents on the picture and calling through the function, and realizes the effect of reducing the complexity of background picture synthesis and the complexity of program logic switching of related background pictures.
EXAMPLE III
The language switching device based on the touch screen provided by the embodiment of the invention can implement the language switching method based on the touch screen provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method. Fig. 3 is a schematic structural diagram of a language switching apparatus 300 based on a touch screen in an embodiment of the present invention. Referring to fig. 3, a language switching apparatus 300 based on a touch screen according to an embodiment of the present invention may specifically include:
the text acquiring module 310 is configured to acquire a background picture and identify text in the background picture.
The text translation module 320 is configured to translate the text into a plurality of icons corresponding to the number of the multinational languages according to the number of the multinational languages.
An address integration module 330, configured to integrate the multiple icons into an icon set and represent the icon set as a variable address.
And the function generating module 340 is configured to generate a calling function according to the variable address.
And a content display module 350, configured to display, on the touch screen, a corresponding icon of the language to be translated according to the call function.
Optionally, the obtaining a background picture and identifying the text in the background picture includes:
acquiring a background picture and identifying all characters in the background picture;
and splitting all the characters into a plurality of different single phrases.
Optionally, the translating the text into a plurality of icons corresponding to the number of the multinational languages according to the number of the multinational languages further includes:
sequentially numbering the plurality of icons according to 1.jpg, 2.jpg, 3.jpg … N.jpg, wherein N is the multinational language quantity.
Optionally, the integrating the multiple icons into an icon set and representing the icon set as a variable address includes:
setting the lower limit and the upper limit of the variable address to be 1 and N respectively;
and sequentially corresponding the lower limit to the upper limit to the number of 1.jpg, 2.jpg and 3.jpg … N.jpg of the icons.
Optionally, after generating the call function according to the variable address, the method further includes:
and acquiring the language required to be translated and input by the user.
Optionally, the generating a call function according to the variable address includes:
and generating a calling function according to the variable address and the communication protocol, wherein the calling function is used for matching the language to be translated with the icon of the corresponding language in the plurality of icons.
Optionally, the call function is RTS _ SndData (int m, int n), where m is a language to be translated, and n is an icon number corresponding to the language to be translated.
The embodiment of the invention discloses a language switching device based on a touch screen, which comprises: the character acquisition module is used for acquiring a background picture and identifying characters in the background picture; the character translation module is used for translating the characters into a plurality of icons corresponding to the number of the multinational languages according to the number of the multinational languages; an address integration module for integrating the plurality of icons into an icon set and representing the icon set as a variable address; the function generation module is used for generating a calling function according to the variable address; and the content display module is used for displaying the corresponding icon of the language to be translated on the touch screen according to the calling function. The language switching method based on the touch screen provided by the embodiment of the invention solves the problem of complex processing process and logic process in the prior art by corresponding the characters and the translation contents on the picture and calling through the function, and realizes the effect of reducing the complexity of background picture synthesis and the complexity of program logic switching of related background pictures.
Example four
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, as shown in fig. 4, the electronic device 400 includes a memory 410 and a processor 420, the number of the processors 420 in the electronic device 400 may be one or more, and one processor 420 is taken as an example in fig. 4; the memory 410 and the processor 420 in the server may be connected by a bus or other means, and fig. 4 illustrates the connection by the bus as an example.
The memory 410 is used as a computer-readable storage medium for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the touch screen-based language switching method in the embodiment of the present invention (for example, the text acquisition module 310, the text translation module 320, the address integration module 330, the function generation module 340, and the content display module 350 in the touch screen-based language switching apparatus 300), and the processor 420 executes various functional applications and data processing of the server/terminal/server by running the software programs, instructions, and modules stored in the memory 410, so as to implement the touch screen-based language switching method.
Wherein the processor 420 is configured to run the computer program stored in the memory 410, and implement the following steps:
acquiring a background picture and identifying characters in the background picture;
translating the characters into a plurality of icons corresponding to the multinational language quantity according to the multinational language quantity;
integrating the plurality of icons into an icon set and representing the icon set as a variable address;
generating a calling function according to the variable address;
and displaying a corresponding icon of the language to be translated on the touch screen according to the calling function.
In one embodiment, the computer program of the electronic device provided in the embodiments of the present invention is not limited to the above method operations, and may also perform related operations in the touch screen based language switching method provided in any embodiment of the present invention.
The memory 410 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 for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 410 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 non-volatile solid state storage device. In some examples, the memory 410 may further include memory located remotely from the processor 420, which may be connected to a server/terminal/server through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The embodiment of the invention discloses a language switching electronic device based on a touch screen, which is used for executing the following method: acquiring a background picture and identifying characters in the background picture; translating the characters into a plurality of icons corresponding to the multinational language quantity according to the multinational language quantity; integrating the plurality of icons into an icon set and representing the icon set as a variable address; generating a calling function according to the variable address; and displaying a corresponding icon of the language to be translated on the touch screen according to the calling function. The language switching method based on the touch screen provided by the embodiment of the invention solves the problem of complex processing process and logic process in the prior art by corresponding the characters and the translation contents on the picture and calling through the function, and realizes the effect of reducing the complexity of background picture synthesis and the complexity of program logic switching of related background pictures.
EXAMPLE five
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a method for language switching based on a touch screen, where the method includes:
acquiring a background picture and identifying characters in the background picture;
translating the characters into a plurality of icons corresponding to the multinational language quantity according to the multinational language quantity;
integrating the plurality of icons into an icon set and representing the icon set as a variable address;
generating a calling function according to the variable address;
and displaying a corresponding icon of the language to be translated on the touch screen according to the calling function.
Of course, the storage medium containing the computer-executable instructions provided by the embodiments of the present invention is not limited to the method operations described above, and may also perform related operations in a language switching method based on a touch screen provided by any embodiment of the present invention.
The computer-readable storage media of embodiments of the invention may take any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or terminal. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The embodiment of the invention discloses a language switching storage medium based on a touch screen, which is used for executing the following method: acquiring a background picture and identifying characters in the background picture; translating the characters into a plurality of icons corresponding to the multinational language quantity according to the multinational language quantity; integrating the plurality of icons into an icon set and representing the icon set as a variable address; generating a calling function according to the variable address; and displaying a corresponding icon of the language to be translated on the touch screen according to the calling function. The language switching method based on the touch screen provided by the embodiment of the invention solves the problem of complex processing process and logic process in the prior art by corresponding the characters and the translation contents on the picture and calling through the function, and realizes the effect of reducing the complexity of background picture synthesis and the complexity of program logic switching of related background pictures.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (10)
1. A language switching method based on a touch screen is characterized by comprising the following steps:
acquiring a background picture and identifying characters in the background picture;
translating the characters into a plurality of icons corresponding to the multinational language quantity according to the multinational language quantity;
integrating the plurality of icons into an icon set and representing the icon set as a variable address;
generating a calling function according to the variable address;
and displaying a corresponding icon of the language to be translated on the touch screen according to the calling function.
2. The touch-screen based language switching method of claim 1, wherein the obtaining a background picture and identifying text in the background picture comprises:
acquiring a background picture and identifying all characters in the background picture;
and splitting all the characters into a plurality of different single phrases.
3. The touch-screen based language switching method according to claim 1, wherein said translating said text into a plurality of icons corresponding to a number of multinational languages further comprises:
sequentially numbering the plurality of icons according to 1.jpg, 2.jpg, 3.jpg … N.jpg, wherein N is the multinational language quantity.
4. The touch-screen based language switching method of claim 3, wherein said integrating the plurality of icons into a set of icons and representing the set of icons as variable addresses comprises:
setting the lower limit and the upper limit of the variable address to be 1 and N respectively;
and sequentially corresponding the lower limit to the upper limit to the number of 1.jpg, 2.jpg and 3.jpg … N.jpg of the icons.
5. The touch-screen based language switching method of claim 1, wherein the generating a calling function according to the variable address further comprises:
and acquiring the language required to be translated and input by the user.
6. The touch-screen based language switching method of claim 1, wherein said generating a calling function according to said variable address comprises:
and generating a calling function according to the variable address and the communication protocol, wherein the calling function is used for matching the language to be translated with the icon of the corresponding language in the plurality of icons.
7. The touch-screen-based language switching method according to claim 1, wherein the calling function is RTS _ SndData (int m, int n), where m is a language to be translated and n is an icon number corresponding to the language to be translated.
8. A touch screen based language switching device, comprising:
the character acquisition module is used for acquiring a background picture and identifying characters in the background picture;
the character translation module is used for translating the characters into a plurality of icons corresponding to the number of the multinational languages according to the number of the multinational languages;
an address integration module for integrating the plurality of icons into an icon set and representing the icon set as a variable address;
the function generation module is used for generating a calling function according to the variable address;
and the content display module is used for displaying the corresponding icon of the language to be translated on the touch screen according to the calling function.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the touch screen based language switching method of any one of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, the computer program comprising program instructions, characterized in that the program instructions, when executed by a processor, implement the touch screen based language switching method according to any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110260873.6A CN112988297A (en) | 2021-03-10 | 2021-03-10 | Language switching method and device based on touch screen, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110260873.6A CN112988297A (en) | 2021-03-10 | 2021-03-10 | Language switching method and device based on touch screen, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112988297A true CN112988297A (en) | 2021-06-18 |
Family
ID=76336347
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110260873.6A Pending CN112988297A (en) | 2021-03-10 | 2021-03-10 | Language switching method and device based on touch screen, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112988297A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114168251A (en) * | 2022-02-14 | 2022-03-11 | 龙旗电子(惠州)有限公司 | Language switching method, device, equipment, computer readable storage medium and product |
CN114579235A (en) * | 2022-02-24 | 2022-06-03 | 百果园技术(新加坡)有限公司 | Icon display method, device and equipment based on language type and storage medium |
Citations (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102693322A (en) * | 2012-06-01 | 2012-09-26 | 杭州海康威视数字技术股份有限公司 | Multi-language supporting webpage processing method, webpage loading method and systems |
CN103888711A (en) * | 2014-01-28 | 2014-06-25 | 中译语通科技(北京)有限公司 | Intelligent audio and video conference system |
CN104346153A (en) * | 2013-07-31 | 2015-02-11 | 国际商业机器公司 | Method and system for translating text information of application programs |
CN104951364A (en) * | 2014-03-31 | 2015-09-30 | Tcl集团股份有限公司 | Android platform based language switching method and system |
US20180024848A1 (en) * | 2013-12-02 | 2018-01-25 | Crowdin, Inc. | Translatable Texts Identification in In-Context Localization Utilizing Pseudo-Language and an External Server |
CN107656922A (en) * | 2017-09-25 | 2018-02-02 | 广东小天才科技有限公司 | A kind of interpretation method, device, terminal and storage medium |
CN107784002A (en) * | 2016-08-26 | 2018-03-09 | 阿里巴巴集团控股有限公司 | The page elements generation method and device of a kind of webpage |
CN108446157A (en) * | 2018-04-04 | 2018-08-24 | 沈阳东北电力调节技术有限公司 | A kind of multilingual display interface design method that Vertical Mill auxiliaries control system can switch in real time |
CN109035623A (en) * | 2018-07-18 | 2018-12-18 | 深圳怡化电脑股份有限公司 | Interface display method, interface display apparatus and the electronic equipment of self-aided terminal |
US20190005030A1 (en) * | 2017-06-30 | 2019-01-03 | EverMem, Inc. | System and method for providing an intelligent language learning platform |
CN109344412A (en) * | 2018-09-20 | 2019-02-15 | 五八有限公司 | A kind of language transfer method, device, equipment and storage medium |
CN109445886A (en) * | 2018-09-05 | 2019-03-08 | 百富计算机技术(深圳)有限公司 | A kind of interface display method, system and terminal device |
CN110018876A (en) * | 2019-04-16 | 2019-07-16 | 成都四方伟业软件股份有限公司 | The international method, apparatus of software application and electronic equipment |
EP3514701A1 (en) * | 2018-01-22 | 2019-07-24 | Beijing Baidu Netcom Science And Technology Co., Ltd. | Method and device for displaying multi-language typesetting, browser, terminal and computer readable storage medium |
CN110674814A (en) * | 2019-09-25 | 2020-01-10 | 深圳传音控股股份有限公司 | Picture identification and translation method, terminal and medium |
CN111061535A (en) * | 2019-12-20 | 2020-04-24 | 网易(杭州)网络有限公司 | Interface switching method and device |
CN111104197A (en) * | 2019-12-24 | 2020-05-05 | 深南电路股份有限公司 | Display language switching method and device and storage medium |
CN111126083A (en) * | 2019-12-04 | 2020-05-08 | 苏宁智能终端有限公司 | Terminal picture real-time translation method and system |
CN111367595A (en) * | 2018-12-25 | 2020-07-03 | 阿里巴巴集团控股有限公司 | Data processing method, program running method, device and processing equipment |
CN111831384A (en) * | 2020-07-20 | 2020-10-27 | 北京百度网讯科技有限公司 | Language switching method and device, equipment and storage medium |
CN111857903A (en) * | 2020-04-22 | 2020-10-30 | 北京嘀嘀无限科技发展有限公司 | Display page processing method, device, equipment and storage medium |
US20200356245A1 (en) * | 2017-10-09 | 2020-11-12 | Huawei Technologies Co., Ltd. | Display Processing Method and Electronic Device |
-
2021
- 2021-03-10 CN CN202110260873.6A patent/CN112988297A/en active Pending
Patent Citations (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102693322A (en) * | 2012-06-01 | 2012-09-26 | 杭州海康威视数字技术股份有限公司 | Multi-language supporting webpage processing method, webpage loading method and systems |
CN104346153A (en) * | 2013-07-31 | 2015-02-11 | 国际商业机器公司 | Method and system for translating text information of application programs |
US20180024848A1 (en) * | 2013-12-02 | 2018-01-25 | Crowdin, Inc. | Translatable Texts Identification in In-Context Localization Utilizing Pseudo-Language and an External Server |
CN103888711A (en) * | 2014-01-28 | 2014-06-25 | 中译语通科技(北京)有限公司 | Intelligent audio and video conference system |
CN104951364A (en) * | 2014-03-31 | 2015-09-30 | Tcl集团股份有限公司 | Android platform based language switching method and system |
CN107784002A (en) * | 2016-08-26 | 2018-03-09 | 阿里巴巴集团控股有限公司 | The page elements generation method and device of a kind of webpage |
US20190005030A1 (en) * | 2017-06-30 | 2019-01-03 | EverMem, Inc. | System and method for providing an intelligent language learning platform |
CN107656922A (en) * | 2017-09-25 | 2018-02-02 | 广东小天才科技有限公司 | A kind of interpretation method, device, terminal and storage medium |
US20200356245A1 (en) * | 2017-10-09 | 2020-11-12 | Huawei Technologies Co., Ltd. | Display Processing Method and Electronic Device |
EP3514701A1 (en) * | 2018-01-22 | 2019-07-24 | Beijing Baidu Netcom Science And Technology Co., Ltd. | Method and device for displaying multi-language typesetting, browser, terminal and computer readable storage medium |
CN108446157A (en) * | 2018-04-04 | 2018-08-24 | 沈阳东北电力调节技术有限公司 | A kind of multilingual display interface design method that Vertical Mill auxiliaries control system can switch in real time |
CN109035623A (en) * | 2018-07-18 | 2018-12-18 | 深圳怡化电脑股份有限公司 | Interface display method, interface display apparatus and the electronic equipment of self-aided terminal |
CN109445886A (en) * | 2018-09-05 | 2019-03-08 | 百富计算机技术(深圳)有限公司 | A kind of interface display method, system and terminal device |
CN109344412A (en) * | 2018-09-20 | 2019-02-15 | 五八有限公司 | A kind of language transfer method, device, equipment and storage medium |
CN111367595A (en) * | 2018-12-25 | 2020-07-03 | 阿里巴巴集团控股有限公司 | Data processing method, program running method, device and processing equipment |
CN110018876A (en) * | 2019-04-16 | 2019-07-16 | 成都四方伟业软件股份有限公司 | The international method, apparatus of software application and electronic equipment |
CN110674814A (en) * | 2019-09-25 | 2020-01-10 | 深圳传音控股股份有限公司 | Picture identification and translation method, terminal and medium |
CN111126083A (en) * | 2019-12-04 | 2020-05-08 | 苏宁智能终端有限公司 | Terminal picture real-time translation method and system |
CN111061535A (en) * | 2019-12-20 | 2020-04-24 | 网易(杭州)网络有限公司 | Interface switching method and device |
CN111104197A (en) * | 2019-12-24 | 2020-05-05 | 深南电路股份有限公司 | Display language switching method and device and storage medium |
CN111857903A (en) * | 2020-04-22 | 2020-10-30 | 北京嘀嘀无限科技发展有限公司 | Display page processing method, device, equipment and storage medium |
CN111831384A (en) * | 2020-07-20 | 2020-10-27 | 北京百度网讯科技有限公司 | Language switching method and device, equipment and storage medium |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114168251A (en) * | 2022-02-14 | 2022-03-11 | 龙旗电子(惠州)有限公司 | Language switching method, device, equipment, computer readable storage medium and product |
CN114579235A (en) * | 2022-02-24 | 2022-06-03 | 百果园技术(新加坡)有限公司 | Icon display method, device and equipment based on language type and storage medium |
CN114579235B (en) * | 2022-02-24 | 2024-04-09 | 百果园技术(新加坡)有限公司 | Language type-based icon display method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107451128B (en) | Multi-language code adaptation method, device and storage medium | |
JP5248321B2 (en) | Flexible display of translated text | |
US10621276B2 (en) | User interface virtualization for web applications | |
US9542080B2 (en) | User interface virtualization of context menus | |
US9158434B2 (en) | User interface virtualization profiles for accessing applications on remote devices | |
KR102249054B1 (en) | Quick tasks for on-screen keyboards | |
US9239832B2 (en) | Modifying language of a user interface on a computing device | |
JP7124232B2 (en) | Name tag display method and device | |
CN112988297A (en) | Language switching method and device based on touch screen, electronic equipment and storage medium | |
CN112445545B (en) | Webpage application starting method and display device | |
JP2017201505A (en) | Method for adjusting input method editor (ime) activity between virtual application client and server | |
US20200272785A1 (en) | Transformation of resource files using mapped keys for tracking content location | |
US8094940B2 (en) | Input method transform | |
CN112163432A (en) | Translation method, translation device and electronic equipment | |
US20190163337A1 (en) | System for Augmenting a Computer Display via a Mobile Device Display | |
US20210342115A1 (en) | Data processing systems for providing a data communication channel between one or more connected computing devices and an interactive display | |
US20160147741A1 (en) | Techniques for providing a user interface incorporating sign language | |
CN112612531A (en) | Application program starting method and device, electronic equipment and storage medium | |
CN112579073B (en) | Code conversion method, device, electronic equipment and storage medium | |
JP7163453B2 (en) | computer system and program | |
JP2022103241A (en) | Server system, client device and program | |
JP2017157047A (en) | Server system, client device and program | |
CN117573997A (en) | Display device and webpage translation method | |
AU2011205054B2 (en) | Flexible display translation | |
CN116644252A (en) | Page loading method and device, electronic equipment and 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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 1808, Jinxiu Hongdu building, Meilong Avenue, Xinniu community, Minzhi street, Longhua District, Shenzhen City, Guangdong Province (office address) Applicant after: Shenzhen chuangxiang 3D Technology Co.,Ltd. Address before: 1808, Jinxiu Hongdu building, Meilong Avenue, Xinniu community, Minzhi street, Longhua District, Shenzhen City, Guangdong Province (office address) Applicant before: Shenzhen Chuangxiang 3D Technology Co.,Ltd. |