CN110309517B - Expression document processing method, device, system and storage medium - Google Patents

Expression document processing method, device, system and storage medium Download PDF

Info

Publication number
CN110309517B
CN110309517B CN201910587840.5A CN201910587840A CN110309517B CN 110309517 B CN110309517 B CN 110309517B CN 201910587840 A CN201910587840 A CN 201910587840A CN 110309517 B CN110309517 B CN 110309517B
Authority
CN
China
Prior art keywords
text
expression
target
information
language type
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910587840.5A
Other languages
Chinese (zh)
Other versions
CN110309517A (en
Inventor
顾星宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201910587840.5A priority Critical patent/CN110309517B/en
Publication of CN110309517A publication Critical patent/CN110309517A/en
Application granted granted Critical
Publication of CN110309517B publication Critical patent/CN110309517B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/44Browsing; Visualisation therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/40Processing or translation of natural language
    • G06F40/58Use of machine translation, e.g. for multi-lingual retrieval, for server-side translation for client devices or for real-time translation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Document Processing Apparatus (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides an expression document processing method, device, system and storage medium, wherein the method comprises the following steps: acquiring text information in an expression document; if the language type of the text information is different from the target language type, translating the text information into target text corresponding to the target language type; and adding the target text to the expression text. According to the application, in the process of using the input method, the expression text can be automatically translated into the target language for display; therefore, language communication barriers can be avoided, so that the user can smoothly communicate with users in other language environments through expressions, and the user experience is good.

Description

Expression document processing method, device, system and storage medium
Technical Field
The present application relates to the field of image processing technologies, and in particular, to a method, an apparatus, a system, and a storage medium for processing expression documents.
Background
The expression is a richer expression form of the user compared with the characters in the process of using the input method, and can make the input process of the user more rich and interesting.
At present, the text in the expression is often composed of an image and characters, wherein the content of the character part is used for explaining or assisting in explaining the meaning of the expression, so that a user can clearly know the meaning of the expression.
However, in practical application, when a user communicates with other users in different language environments, the meaning of the text portion in the expression is often difficult to be understood by other users, so that communication between users is affected due to the obstacle in communication, and user experience is poor.
Disclosure of Invention
The application provides a method, a device, a system and a storage medium for processing expression text, which can automatically translate the expression text into target language for display in the process of using an input method; therefore, language communication barriers can be avoided, so that the user can smoothly communicate with users in other language environments through expressions, and the user experience is good.
In a first aspect, an embodiment of the present application provides a method for processing an expression document, including:
acquiring text information in an expression document;
if the language type of the text information is different from the target language type, translating the text information into target text corresponding to the target language type;
and adding the target text to the expression text.
In one possible design, the obtaining the text information in the expression document includes:
receiving operation information of a user aiming at an expression panel;
determining expression patterns according to the operation information;
and extracting the text information in the expression text by a text recognition function in an input method.
In one possible design, before translating the text information into the target text corresponding to the target language type, the method further includes:
and determining the type of the target language currently used by the terminal.
In one possible design, the determining the type of the target language currently used by the terminal includes:
identifying the type of the target language currently used by the terminal through an input method; or alternatively, the process may be performed,
and taking the language type set by the user in the language setting frame as the target language type.
In one possible design, translating the text information into a target text corresponding to the target language type includes:
converting the text information into target text corresponding to the target language type through a translation program carried by an input method; or alternatively, the process may be performed,
and converting the text information into target text corresponding to the target language type through a translation application provided by a third party.
In one possible design, adding the target text to the emoji text includes:
removing the text information in the expression text;
and adding the target text at a position corresponding to the text information to obtain a target expression.
In one possible design, after adding the target text to the expression text, further comprising:
and carrying out any one or more operations of the following on the target text:
modifying the text content;
modifying the fonts;
modification of the word size;
modification of text display position.
In a second aspect, an embodiment of the present application provides an expression document processing apparatus, including:
the acquisition module is used for acquiring the text information in the expression text;
the translation module is used for translating the text information into target text corresponding to the target language type if the language type of the text information is different from the target language type;
and the adding module is used for adding the target text to the expression text.
In one possible design, the acquisition module is specifically configured to:
receiving operation information of a user aiming at an expression panel;
determining expression patterns according to the operation information;
and extracting the text information in the expression text by a text recognition function in an input method.
In one possible design, the method further comprises: and the determining module is used for determining the type of the target language currently used by the terminal.
In one possible design, the determining module is specifically configured to:
identifying the type of the target language currently used by the terminal through an input method; or alternatively, the process may be performed,
and taking the language type set by the user in the language setting frame as the target language type.
In one possible design, the translation module is specifically configured to:
converting the text information into target text corresponding to the target language type through a translation program carried by an input method; or alternatively, the process may be performed,
and converting the text information into target text corresponding to the target language type through a translation application provided by a third party.
In one possible design, adding the target text to the emoji text includes:
removing the text information in the expression text;
and adding the target text at a position corresponding to the text information to obtain a target expression.
In one possible design, the method further comprises: the editing module is used for carrying out any one or more of the following operations on the target text:
modifying the text content;
modifying the fonts;
modification of the word size;
modification of text display position.
In a third aspect, an embodiment of the present application provides an expression document processing system, including: the device comprises a memory and a processor, wherein executable instructions of the processor are stored in the memory; wherein the processor is configured to perform the emoji document processing method of any one of the first aspects via execution of the executable instructions.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor, implements the expression document processing method of any one of the first aspects.
In a fifth aspect, embodiments of the present application provide a program product comprising: a computer program stored in a readable storage medium, from which it can be read by at least one processor of a server, the at least one processor executing the computer program causing the server to perform the expression document processing method of any one of the first aspects.
The application provides a method, a device, a system and a storage medium for processing expression text, which are used for acquiring text information in the expression text; if the language type of the text information is different from the target language type, translating the text information into target text corresponding to the target language type; and adding the target text to the expression text. According to the application, in the process of using the input method, the expression text can be automatically translated into the target language for display; therefore, language communication barriers can be avoided, so that the user can smoothly communicate with users in other language environments through expressions, and the user experience is good.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions of the prior art, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it will be obvious that the drawings in the following description are some embodiments of the present application, and that other drawings can be obtained according to these drawings without inventive effort to a person skilled in the art.
FIG. 1 is a schematic diagram of an application scenario of the present application;
FIG. 2 is a flowchart of a method for processing an expression document according to an embodiment of the present application;
fig. 3 is a schematic diagram of an original expression document according to an embodiment of the present application;
fig. 4 is a schematic diagram of a target expression document according to an embodiment of the present application;
fig. 5 is a flowchart of a method for processing an expression document according to a second embodiment of the present application;
FIG. 6 is a schematic diagram of a modified target expression document according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an expression document processing device according to a third embodiment of the present application;
fig. 8 is a schematic structural diagram of an expression document processing device according to a fourth embodiment of the present application;
fig. 9 is a schematic structural diagram of an expression document processing system according to a fifth embodiment of the present application.
Specific embodiments of the present disclosure have been shown by way of the above drawings and will be described in more detail below. These drawings and the written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the disclosed concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented, for example, in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The technical scheme of the application is described in detail below by specific examples. The following embodiments may be combined with each other, and some embodiments may not be repeated for the same or similar concepts or processes.
The expression is a richer expression form of the user compared with the characters in the process of using the input method, and can make the input process of the user more rich and interesting. At present, the text in the expression is often composed of an image and characters, wherein the content of the character part is used for explaining or assisting in explaining the meaning of the expression, so that a user can clearly know the meaning of the expression. However, in practical application, when a user communicates with other users in different language environments, the meaning of the text portion in the expression is often difficult to be understood by other users, so that communication between users is affected due to the obstacle in communication, and user experience is poor.
Aiming at the technical problems, the application provides a method, a device, a system and a storage medium for processing expression text, which can automatically translate the expression text into a target language for display in the process of using an input method; therefore, language communication barriers can be avoided, so that the user can smoothly communicate with users in other language environments through expressions, and the user experience is good. Fig. 1 is a schematic diagram of an application scenario of the present application, as shown in fig. 1, the expression is a more abundant expression form of the user than the text in the input process, and the input process of the user can be more interesting. At present, the text in the expression is often composed of an image and characters, wherein the content of the character part is used for explaining or assisting in explaining the meaning of the expression, so that a user can clearly know the meaning of the expression. The application aims to automatically translate the expression document into a target language for display so as to realize expression transmission under different language environments; therefore, language communication barriers can be avoided, the user can smoothly communicate with users in other language environments through expressions, and user experience is improved. The expression document processing device provided by the application comprises: the system comprises an acquisition module, a translation module and an addition module. Firstly, an acquisition module is used for acquiring the text information in the expression text. The acquisition module can receive operation information of a user aiming at the expression panel; determining expression text according to the operation information; and extracting the text information in the expression text by a text recognition function in the input method. Specifically, on a device such as a mobile phone, a user can select a specific expression by clicking or the like using an expression panel. After the mobile phone acquires the expression, the character information in the expression text can be extracted through the character recognition function in the input method. And the translation module is used for translating the text information into target text corresponding to the target language type if the language type of the text information is different from the target language type. Optionally, before translating the text information into the target text corresponding to the target language type, the method further comprises: and determining the type of the target language currently used by the terminal. Optionally, identifying the type of the target language currently used by the terminal through an input method; alternatively, the language type set by the user in the language setting box is taken as the target language type. Specifically, the target language type of the terminal can be set manually or can be identified automatically. The manual setting refers to a target language type set by the user in the language setting frame, for example, english is set as the target language type. The automatic recognition means that the terminal automatically recognizes the type of the target language used by the user. For example, if the system language type of the terminal is english, or if the language type of the input method is english, it may be automatically recognized that the target language type used by the user is english. In this embodiment, the target language type is english as an illustration, and will not be described in detail later. Optionally, translating the text information into the target text corresponding to the target language type includes: converting the text information into target text corresponding to the target language type through a translation program carried by the input method; or converting the text information into the target text corresponding to the target language type through the translation application provided by the third party. And finally, an adding module for adding the target text to the expression text. In a specific implementation process, the adding module firstly removes the text information in the expression text. Then, adding target characters at the positions corresponding to the character information to obtain target expressions. The translation module may have the problems of inaccurate translation, non-compliance with language habits, and the like. Thus, after adding the target text to the emoji text, the content of the text may also be modified in order to more clearly express the meaning. At the same time, the fonts, font sizes, font colors, text display positions and the like can be modified. The method provided by the application can be applied to terminal equipment loaded with input methods such as mobile phones, tablet computers, navigator and the like and can send expressions. The application does not limit the types of terminals, in this embodiment, the terminals are illustrated by using mobile phones as examples, and the implementation principles of other terminals are the same and will not be described here again.
By applying the method, the text of the expression can be automatically translated into the target language for display in the process of using the input method; therefore, language communication barriers can be avoided, so that the user can smoothly communicate with users in other language environments through expressions, and the user experience is good.
The following describes the technical scheme of the present application and how the technical scheme of the present application solves the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 2 is a flowchart of a method for processing an expression document according to an embodiment of the present application, as shown in fig. 2, the method in this embodiment may include:
s101, acquiring text information in the expression text.
In this embodiment, the expression is a more abundant expression form of the user than the text in the input method, which can make the input process of the user more interesting. At present, the text in the expression is often composed of an image and characters, wherein the content of the character part is used for explaining or assisting in explaining the meaning of the expression, so that a user can clearly know the meaning of the expression. The application aims to automatically translate the expression document into a target language for display so as to realize expression transmission under different language environments; therefore, language communication barriers can be avoided, the user can smoothly communicate with users in other language environments through expressions, and user experience is improved. Therefore, the first step is that the terminal acquires the text information in the expression document. The terminal can be a device which is loaded with an input method and can send expressions, such as a mobile phone, a tablet personal computer, a navigator and the like. The application does not limit the types of terminals, in this embodiment, the terminals are illustrated by using mobile phones as examples, and the implementation principles of other terminals are the same and will not be described here again.
Optionally, the terminal receives operation information of a user aiming at the expression panel; determining expression text according to the operation information; and extracting the text information in the expression text by a text recognition function in the input method.
Specifically, on a device such as a mobile phone, a user can select a specific expression by clicking or the like using an expression panel. After the mobile phone acquires the expression, the character information in the expression text can be extracted through the character recognition function in the input method. Fig. 3 is a schematic diagram of an original expression document provided by an embodiment of the present application, as shown in fig. 3, where the expression document includes a smiling face pattern and text information of "i laugh me and not speak". The smiling face pattern represents the meaning of a part of expression, and the text part content of 'I laugh and not speak' is used for explaining or assisting in explaining the meaning of the smiling face, so that the meaning of laugh is expressed, and the meaning of not speaking is added. If the user does not understand Chinese, he cannot understand the information of "I laugh and not speak", it is obvious that the understanding of the expression text is deviated, and communication is impaired. Therefore, the terminal in this embodiment can extract the text information in the expression text through the text recognition function in the input method, and recognize the text information "i laugh me, not speak".
S102, if the language type of the text information is different from the target language type, the text information is translated into target text corresponding to the target language type.
In this embodiment, the terminal determines the language type of the text information and the target language type, and if the language type is the same, the terminal indicates that the user can understand the meaning of the text information, and does not need to translate. If the text information is different, the text information is translated into the target text corresponding to the target language type.
Optionally, before translating the text information into the target text corresponding to the target language type, the method further comprises: and determining the type of the target language currently used by the terminal. Optionally, identifying the type of the target language currently used by the terminal through an input method; alternatively, the language type set by the user in the language setting box is taken as the target language type.
Specifically, the target language type of the terminal can be set manually or can be identified automatically. The manual setting refers to a target language type set by the user in the language setting frame, for example, english is set as the target language type. The automatic recognition means that the terminal automatically recognizes the type of the target language used by the user. For example, if the system language type of the terminal is english, or if the language type of the input method is english, it may be automatically recognized that the target language type used by the user is english. In this embodiment, the target language type is english as an illustration, and will not be described in detail later.
Optionally, translating the text information into the target text corresponding to the target language type includes: converting the text information into target text corresponding to the target language type through a translation program carried by the input method; or converting the text information into the target text corresponding to the target language type through the translation application provided by the third party. For example, the text information "i laugh me and not speak" is translated into "smile without any comment" by the translation program carried by the input method itself.
S103, adding the target characters into the expression text.
In this embodiment, the text information in the expression is removed from the expression document, and the translated target text is added to the expression document to obtain the target expression document. Fig. 4 is a schematic diagram of a target expression document provided by the embodiment of the present application, as shown in fig. 4, the text information "i laugh on laugh, not speak" in the expression document is removed, and the translated "smile without any comment" is added to the expression document, so as to obtain the target expression document. The target expression text not only expresses the smiling meaning through smile without any comment, but also has the meaning of not speaking, and the meaning of the original expression is restored, so that a user with the target language type of English can clearly understand the meaning of the expression text, language communication barriers are avoided, the user can smoothly communicate with users in other language environments through the expression, and user experience is improved.
In the embodiment, the text information in the expression text is obtained; if the language type of the text information is different from the target language type, translating the text information into target text corresponding to the target language type; and adding the target text into the expression text. According to the application, in the process of using the input method, the expression text can be automatically translated into the target language for display; therefore, language communication barriers can be avoided, so that the user can smoothly communicate with users in other language environments through expressions, and the user experience is good.
Fig. 5 is a flowchart of a method for processing an expression document according to a second embodiment of the present application, as shown in fig. 5, the method in this embodiment may include:
s201, acquiring text information in the expression case.
S202, if the language type of the text information is different from the target language type, the text information is translated into target text corresponding to the target language type.
S203, adding the target characters into the expression text.
In this embodiment, the specific implementation process and technical principle of step S201 to step S203 refer to the related descriptions in step S101 to step S103 in the method shown in fig. 2, and are not described herein again.
S204, editing the target characters.
In this embodiment, after adding the target text to the expression document, the method further includes: any one or more of the following operations are performed on the target text: modifying the text content; modifying the fonts; modification of the word size; modification of text display position.
Specifically, the input method may have the problems that the translation is inaccurate and does not conform to language habits, etc. of the target text translated by the translation application provided by the translation program or the third party. Thus, after adding the target text to the emoji text, the content of the text may also be modified in order to more clearly express the meaning. At the same time, the fonts, font sizes, font colors, text display positions and the like can be modified. Fig. 6 is a schematic diagram of a modified target expression document provided by the embodiment of the present application, as shown in fig. 6, a user may be dissatisfied with the target word smile without any comment, and consider that the word is too much, so that the word is not concise and clear enough, and the word length is too much beyond the image to affect the beauty. Therefore, the text content is modified, and the text content smile without any comment is replaced by the just smile, so that the modified target expression text is obtained. The modified target expression text is concise in content and can express the meaning of 'I laugh and not speak'. . Therefore, the embodiment can identify the system language through the input method, and when the user clicks the expression panel, the text in all the expression images is directly translated into the language for display. Therefore, language barriers can be avoided, and the user can smoothly communicate with users in other language environments through expressions. In addition, the user can also customize the content of the text in the expression, the flexibility is high, and the user experience is good.
In the embodiment, the text information in the expression text is obtained; if the language type of the text information is different from the target language type, translating the text information into target text corresponding to the target language type; and adding the target text into the expression text. According to the application, in the process of using the input method, the expression text can be automatically translated into the target language for display; therefore, language communication barriers can be avoided, so that the user can smoothly communicate with users in other language environments through expressions, and the user experience is good.
In addition, the embodiment may further include, after adding the target text to the expression document: any one or more of the following operations are performed on the target text: modifying the text content; modifying the fonts; modification of the word size; modification of text display position. Therefore, language communication barriers can be avoided, so that the user can smoothly communicate with users in other language environments through expressions, and the user experience is good.
Fig. 7 is a schematic structural diagram of an expression document processing apparatus according to a third embodiment of the present application, as shown in fig. 7, the expression document processing apparatus of the present embodiment may include:
an obtaining module 31, configured to obtain text information in the expression document;
a translation module 32, configured to translate the text information into a target text corresponding to the target language type if the language type of the text information is different from the target language type;
the adding module 33 is configured to add the target text to the expression document.
In one possible design, the obtaining module 31 is specifically configured to:
receiving operation information of a user aiming at an expression panel;
determining expression text according to the operation information;
and extracting the text information in the expression text by a text recognition function in the input method.
In one possible design, the method further comprises: a determining module 34, configured to determine a type of target language currently used by the terminal.
In one possible design, the determination module 34 is specifically configured to:
identifying the type of the target language currently used by the terminal through an input method; or alternatively, the process may be performed,
the language type set by the user in the language setting frame is taken as the target language type.
In one possible design, translation module 32 is specifically configured to:
converting the text information into target text corresponding to the target language type through a translation program carried by the input method; or alternatively, the process may be performed,
and converting the text information into target text corresponding to the target language type through a translation application provided by a third party.
In one possible design, adding the target text to the emoji document includes:
removing the text information in the expression text;
and adding target characters at positions corresponding to the character information to obtain target expressions.
The expression document processing device of the present embodiment may execute the technical scheme in the method shown in fig. 2, and the specific implementation process and technical principle thereof refer to the related description in the method shown in fig. 2, which is not repeated here.
In the embodiment, the text information in the expression text is obtained; if the language type of the text information is different from the target language type, translating the text information into target text corresponding to the target language type; and adding the target text into the expression text. According to the application, in the process of using the input method, the expression text can be automatically translated into the target language for display; therefore, language communication barriers can be avoided, so that the user can smoothly communicate with users in other language environments through expressions, and the user experience is good.
Fig. 8 is a schematic structural diagram of an expression document processing apparatus according to a fourth embodiment of the present application, as shown in fig. 8, where the expression document processing apparatus according to the present embodiment may further include, based on the apparatus shown in fig. 7:
an editing module 35, configured to perform any one of the following or any multiple operations on the target text:
modifying the text content;
modifying the fonts;
modification of the word size;
modification of text display position.
The expression document processing device of the present embodiment may execute the technical solutions in the methods shown in fig. 2 and fig. 5, and specific implementation processes and technical principles thereof refer to related descriptions in the methods shown in fig. 2 and fig. 5, which are not repeated herein.
In the embodiment, the text information in the expression text is obtained; if the language type of the text information is different from the target language type, translating the text information into target text corresponding to the target language type; and adding the target text into the expression text. According to the application, in the process of using the input method, the expression text can be automatically translated into the target language for display; therefore, language communication barriers can be avoided, so that the user can smoothly communicate with users in other language environments through expressions, and the user experience is good.
In addition, the embodiment may further include, after adding the target text to the expression document: any one or more of the following operations are performed on the target text: modifying the text content; modifying the fonts; modification of the word size; modification of text display position. Therefore, language communication barriers can be avoided, so that the user can smoothly communicate with users in other language environments through expressions, and the user experience is good.
Fig. 9 is a schematic structural diagram of an expression document processing system provided in a fifth embodiment of the present application, as shown in fig. 9, the expression document processing system 40 of the present embodiment may include: a processor 41 and a memory 42.
A memory 42 for storing a program; memory 42, which may include volatile memory (English: volatile memory), such as random-access memory (RAM), such as static random-access memory (SRAM), double data rate synchronous dynamic random-access memory (Double Data Rate Synchronous Dynamic Random Access Memory, DDR SDRAM), etc.; the memory may also include a non-volatile memory (English) such as a flash memory (English). The memory 42 is used to store computer programs (e.g., application programs, functional modules, etc. that implement the methods described above), computer instructions, etc., which may be stored in one or more of the memories 42 in a partitioned manner. And the above-described computer programs, computer instructions, data, etc. may be called by the processor 41.
The computer programs, computer instructions, etc. described above may be stored in one or more of the memories 42 in partitions. And the above-described computer programs, computer instructions, data, etc. may be called by the processor 41.
A processor 41 for executing a computer program stored in a memory 42 for carrying out the steps of the method according to the above-described embodiment.
Reference may be made in particular to the description of the embodiments of the method described above.
The processor 41 and the memory 42 may be separate structures or may be integrated structures integrated together. When the processor 41 and the memory 42 are separate structures, the memory 42 and the processor 41 may be coupled and connected by a bus 43.
In the embodiment, the text information in the expression text is obtained; if the language type of the text information is different from the target language type, translating the text information into target text corresponding to the target language type; and adding the target text into the expression text. According to the application, in the process of using the input method, the expression text can be automatically translated into the target language for display; therefore, language communication barriers can be avoided, so that the user can smoothly communicate with users in other language environments through expressions, and the user experience is good.
The expression document processing system of the present embodiment may execute the technical solutions in the methods shown in fig. 2 and fig. 5, and specific implementation processes and technical principles thereof refer to related descriptions in the methods shown in fig. 2 and fig. 5, which are not repeated herein.
In addition, the embodiment of the application further provides a computer-readable storage medium, wherein computer-executable instructions are stored in the computer-readable storage medium, and when at least one processor of the user equipment executes the computer-executable instructions, the user equipment executes the various possible methods.
In the embodiment, the text information in the expression text is obtained; if the language type of the text information is different from the target language type, translating the text information into target text corresponding to the target language type; and adding the target text into the expression text. According to the application, in the process of using the input method, the expression text can be automatically translated into the target language for display; therefore, language communication barriers can be avoided, so that the user can smoothly communicate with users in other language environments through expressions, and the user experience is good.
Among them, computer-readable media include computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. In addition, the ASIC may reside in a user device. The processor and the storage medium may reside as discrete components in a communication device.
The present application also provides a program product, which includes a computer program, the computer program is stored in a readable storage medium, and at least one processor of the server can read the computer program from the readable storage medium, and the at least one processor executes the computer program to enable the server to implement the expression document processing method according to any one of the embodiments of the present application.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the method embodiments described above may be performed by hardware associated with program instructions. The foregoing program may be stored in a computer readable storage medium. The program, when executed, performs steps including the method embodiments described above; and the aforementioned storage medium includes: various media that can store program code, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features can be replaced equivalently; such modifications and substitutions do not depart from the spirit of the application.

Claims (8)

1. The expression document processing method is characterized by comprising the following steps of:
in the process of using the input method, acquiring character information in the expression text;
if the language type of the text information is different from the target language type, translating the text information into target text corresponding to the target language type;
adding the target text to the expression text;
after adding the target text to the expression document, further comprising:
and carrying out any one or more operations of the following on the target text:
modifying the text content;
modifying the fonts;
modification of the word size;
modifying the text display position;
the obtaining the text information in the expression document comprises the following steps:
receiving operation information of a user aiming at an expression panel;
determining expression patterns according to the operation information;
and extracting the text information in the expression text by a text recognition function in an input method.
2. The method of claim 1, further comprising, prior to translating the literal information into a target literal corresponding to the target language type:
and determining the type of the target language currently used by the terminal.
3. The method of claim 2, wherein the determining the type of target language currently used by the terminal comprises:
identifying the type of the target language currently used by the terminal through an input method; or alternatively, the process may be performed,
and taking the language type set by the user in the language setting frame as the target language type.
4. The method of claim 1, wherein translating the literal information into a target literal corresponding to the target language type, comprises:
converting the text information into target text corresponding to the target language type through a translation program carried by an input method; or alternatively, the process may be performed,
and converting the text information into target text corresponding to the target language type through a translation application provided by a third party.
5. The method of any one of claims 1-4, wherein adding the target text to the emoji document comprises:
removing the text information in the expression text;
and adding the target text at a position corresponding to the text information to obtain a target expression.
6. An expression document processing device, characterized by comprising:
the acquisition module is used for acquiring the text information in the expression text in the process of using the input method;
the translation module is used for translating the text information into target text corresponding to the target language type if the language type of the text information is different from the target language type;
the adding module is used for adding the target characters into the expression text;
the editing module is used for carrying out any one or more of the following operations on the target text:
modifying the text content;
modifying the fonts;
modification of the word size;
modifying the text display position;
the acquisition module is specifically configured to: in the process of using the input method, receiving operation information of a user aiming at the expression panel; determining expression patterns according to the operation information; and extracting the text information in the expression text by a text recognition function in an input method.
7. An expression document processing system, comprising: the device comprises a memory and a processor, wherein executable instructions of the processor are stored in the memory; wherein the processor is configured to perform the emoji document processing method of claims 1-5 via execution of the executable instructions.
8. A computer readable storage medium having stored thereon a computer program, characterized in that the program, when executed by a processor, implements the expression document processing method of any of claims 1-5.
CN201910587840.5A 2019-07-02 2019-07-02 Expression document processing method, device, system and storage medium Active CN110309517B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910587840.5A CN110309517B (en) 2019-07-02 2019-07-02 Expression document processing method, device, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910587840.5A CN110309517B (en) 2019-07-02 2019-07-02 Expression document processing method, device, system and storage medium

Publications (2)

Publication Number Publication Date
CN110309517A CN110309517A (en) 2019-10-08
CN110309517B true CN110309517B (en) 2023-10-17

Family

ID=68078000

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910587840.5A Active CN110309517B (en) 2019-07-02 2019-07-02 Expression document processing method, device, system and storage medium

Country Status (1)

Country Link
CN (1) CN110309517B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114710462A (en) * 2022-03-14 2022-07-05 北京卓越乐享网络科技有限公司 Sharing method, device, equipment, medium and program product of multimedia object

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101309449A (en) * 2008-07-04 2008-11-19 沈阳格微软件有限责任公司 Remote translation service method based on mobile phone multimedia message / short message
CN102662490A (en) * 2012-04-08 2012-09-12 北京语智云帆科技有限公司 Inputting method having assistant translation function
CN102799379A (en) * 2012-07-13 2012-11-28 北京小米科技有限责任公司 Character input method and character input device
CN102930263A (en) * 2012-09-27 2013-02-13 百度国际科技(深圳)有限公司 Information processing method and device
CN103488630A (en) * 2013-09-29 2014-01-01 小米科技有限责任公司 Method, device and terminal for processing picture
CN104102628A (en) * 2013-04-08 2014-10-15 刘龙 System and method for real-time language translation service
CN104298429A (en) * 2014-09-25 2015-01-21 北京搜狗科技发展有限公司 Information presentation method based on input and input method system
CN106227360A (en) * 2016-07-12 2016-12-14 上海多吉网络科技有限公司 Identification code processing method and system in conjunction with input method
CN106682967A (en) * 2017-01-05 2017-05-17 胡开标 Online translation and chat system
CN106909270A (en) * 2016-07-20 2017-06-30 阿里巴巴集团控股有限公司 Chat data input method, device and communicating terminal
CN107479818A (en) * 2017-08-16 2017-12-15 维沃移动通信有限公司 A kind of information interacting method and mobile terminal
CN108960158A (en) * 2018-07-09 2018-12-07 珠海格力电器股份有限公司 A kind of system and method for intelligent sign language translation
CN109814733A (en) * 2019-01-08 2019-05-28 百度在线网络技术(北京)有限公司 Recommendation information generation method and device based on input
CN109873743A (en) * 2017-12-01 2019-06-11 四川路源企业管理咨询有限公司 A kind of translating chat device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006252049A (en) * 2005-03-09 2006-09-21 Fuji Xerox Co Ltd Translation system, translation method and program
US9558158B2 (en) * 2015-03-06 2017-01-31 Translation Management Systems, Ltd Automated document translation

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101309449A (en) * 2008-07-04 2008-11-19 沈阳格微软件有限责任公司 Remote translation service method based on mobile phone multimedia message / short message
CN102662490A (en) * 2012-04-08 2012-09-12 北京语智云帆科技有限公司 Inputting method having assistant translation function
CN102799379A (en) * 2012-07-13 2012-11-28 北京小米科技有限责任公司 Character input method and character input device
CN102930263A (en) * 2012-09-27 2013-02-13 百度国际科技(深圳)有限公司 Information processing method and device
CN104102628A (en) * 2013-04-08 2014-10-15 刘龙 System and method for real-time language translation service
CN103488630A (en) * 2013-09-29 2014-01-01 小米科技有限责任公司 Method, device and terminal for processing picture
CN104298429A (en) * 2014-09-25 2015-01-21 北京搜狗科技发展有限公司 Information presentation method based on input and input method system
CN106227360A (en) * 2016-07-12 2016-12-14 上海多吉网络科技有限公司 Identification code processing method and system in conjunction with input method
CN106909270A (en) * 2016-07-20 2017-06-30 阿里巴巴集团控股有限公司 Chat data input method, device and communicating terminal
CN106682967A (en) * 2017-01-05 2017-05-17 胡开标 Online translation and chat system
CN107479818A (en) * 2017-08-16 2017-12-15 维沃移动通信有限公司 A kind of information interacting method and mobile terminal
CN109873743A (en) * 2017-12-01 2019-06-11 四川路源企业管理咨询有限公司 A kind of translating chat device
CN108960158A (en) * 2018-07-09 2018-12-07 珠海格力电器股份有限公司 A kind of system and method for intelligent sign language translation
CN109814733A (en) * 2019-01-08 2019-05-28 百度在线网络技术(北京)有限公司 Recommendation information generation method and device based on input

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"中英文表情符号’笑CRY‘功能意义对比研究";沈念芦;《中国优秀硕士学位论文全文数据库哲学与人文科学辑》;F084-22 *

Also Published As

Publication number Publication date
CN110309517A (en) 2019-10-08

Similar Documents

Publication Publication Date Title
CN104735468B (en) A kind of method and system that image is synthesized to new video based on semantic analysis
CN112685565A (en) Text classification method based on multi-mode information fusion and related equipment thereof
CN111652093B (en) Text image processing method and device
US11954455B2 (en) Method for translating words in a picture, electronic device, and storage medium
US20170116521A1 (en) Tag processing method and device
CN105843800A (en) DOI-based language information display method and device
CN109410923B (en) Speech recognition method, apparatus, system and storage medium
WO2023202197A1 (en) Text recognition method and related apparatus
CN109978139B (en) Method, system, electronic device and storage medium for automatically generating description of picture
CN115994536B (en) Text information processing method, system, equipment and computer storage medium
CN112995749A (en) Method, device and equipment for processing video subtitles and storage medium
CN112989008A (en) Multi-turn dialog rewriting method and device and electronic equipment
CN104915458A (en) Automatic association method and system during application search by user, and mobile terminal
US20240169972A1 (en) Synchronization method and apparatus for audio and text, device, and medium
CN110309517B (en) Expression document processing method, device, system and storage medium
CN109446496A (en) A kind of conversion method, device, equipment and the storage medium of test language file
CN116306498B (en) Text rendering method and device
CN106599637B (en) Method and device for inputting verification code on verification interface
CN112114803A (en) Deep learning-based front-end code generation method, equipment and medium for UI (user interface)
CN114741144B (en) Web-side complex form display method, device and system
CN110597765A (en) Large retail call center heterogeneous data source data processing method and device
CN116229313A (en) Label construction model generation method and device, electronic equipment and storage medium
CN105897824A (en) Hint copywriting sharing and configuration method and device and sharing system
CN110929479A (en) Method and device for converting PDF scanning piece, electronic equipment and storage medium
CN110895924B (en) Method and device for reading document content aloud, electronic equipment and 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