CN112183116A - Information presentation method, device, equipment and medium - Google Patents

Information presentation method, device, equipment and medium Download PDF

Info

Publication number
CN112183116A
CN112183116A CN202011021011.XA CN202011021011A CN112183116A CN 112183116 A CN112183116 A CN 112183116A CN 202011021011 A CN202011021011 A CN 202011021011A CN 112183116 A CN112183116 A CN 112183116A
Authority
CN
China
Prior art keywords
text
presented
dynamic information
target
language
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011021011.XA
Other languages
Chinese (zh)
Other versions
CN112183116B (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.)
Shenzhen Launch Technology Co Ltd
Original Assignee
Shenzhen Launch 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 Shenzhen Launch Technology Co Ltd filed Critical Shenzhen Launch Technology Co Ltd
Priority to CN202011021011.XA priority Critical patent/CN112183116B/en
Publication of CN112183116A publication Critical patent/CN112183116A/en
Application granted granted Critical
Publication of CN112183116B publication Critical patent/CN112183116B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/40Processing or translation of natural language
    • G06F40/42Data-driven translation
    • G06F40/47Machine-assisted translation, e.g. using translation memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • G06F9/454Multi-language systems; Localisation; Internationalisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Artificial Intelligence (AREA)
  • Machine Translation (AREA)

Abstract

The application is applicable to the technical field of computers, and provides an information presentation method, which comprises the following steps: acquiring a text to be presented matched with a target language; and responding to the situation that the text to be presented comprises the target characters, replacing the target characters in the text to be presented with the dynamic information in the dynamic information set to obtain the processed text, and presenting the processed text. The method and the device for displaying the dynamic information replace the target characters in the text to be displayed with the dynamic information, so that the dynamic information is displayed, and the dynamically changed content is presented to the user in the language expected by the user.

Description

Information presentation method, device, equipment and medium
Technical Field
The present application belongs to the field of computer technologies, and in particular, to an information presentation method, apparatus, device, and medium.
Background
With the development of information technology, applications are generally applied to different countries. In order to facilitate the use of the application by users of different languages, it is often necessary to translate the content in the application that needs to be presented to the user into language text that is easy for the user to read.
In the related art, generally, contents to be presented to a user are translated into texts in a plurality of languages in advance, and the text in a language desired by the user is directly presented when the contents are presented. However, if the content to be presented to the user is dynamically changed, the dynamically changed content cannot be translated into texts in a plurality of languages in advance, and thus the text in the language desired by the user cannot be directly presented. Therefore, in the related art, it is necessary to realize that dynamically changing content is presented to a user in a language desired by the user.
Disclosure of Invention
The embodiment of the application provides an information presentation method, an information presentation device, information presentation equipment and an information presentation medium.
In a first aspect, an embodiment of the present application provides an information presentation method, where the method includes:
acquiring a text to be presented matched with a target language;
and responding to the situation that the text to be presented comprises the target characters, replacing the target characters in the text to be presented with the dynamic information in the dynamic information set to obtain the processed text, and presenting the processed text.
Further, the method further comprises:
and presenting the text to be presented in response to the text to be presented not including the target character.
Further, before obtaining the text to be presented that matches the target language, the method further includes:
determining a target language, and determining a text identification-text corresponding relation table matched with the target language according to a pre-established associated information set, wherein the associated information in the associated information set comprises associated text identifications and texts represented by at least one language.
Further, acquiring a text to be presented matched with the target language, including:
in response to receiving a text acquisition request comprising a text identifier, searching a text corresponding to the text identifier from a pre-established text identifier-text correspondence table matched with a target language, and taking the found text as a text to be presented.
Further, determining the target language includes:
and taking the current language of the system as a target language.
Further, determining the target language includes:
and taking the language selected by the user as a target language.
Further, the dynamic information set is obtained by any one or more of the following methods:
receiving selection information input by a user, and storing the selection information as dynamic information into a dynamic information set;
and acquiring calculation result information, and storing the calculation result information as dynamic information into a dynamic information set.
Further, replacing the target character in the text to be presented with the dynamic information in the dynamic information set, including:
converting the dynamic information set into a string type vector, wherein one element of the vector corresponds to one piece of dynamic information;
and responding to the target characters included in the text to be presented with numbers, and replacing the target characters with elements in the vector according to the sequence from small to large of the numbers of the target characters.
In a second aspect, an embodiment of the present application provides an information presenting apparatus, where the apparatus includes:
the text acquisition unit is used for acquiring a text to be presented, which is matched with the target language;
and the text presentation unit is used for responding to that the text to be presented comprises target characters, replacing the target characters in the text to be presented with the dynamic information in the dynamic information set to obtain a processed text and presenting the processed text.
Further, the text presenting unit is also used for responding to the text to be presented not including the target character, and presenting the text to be presented.
The device further comprises a relation table determining unit, which is used for determining the target language and determining a text identification-text corresponding relation table matched with the target language according to a pre-established association information set, wherein the association information in the association information set comprises the associated text identification and the text expressed by at least one language.
Further, the text acquiring unit is specifically configured to:
in response to receiving a text acquisition request comprising a text identifier, searching a text corresponding to the text identifier from a pre-established text identifier-text correspondence table matched with a target language, and taking the found text as a text to be presented.
Further, determining the target language includes: and taking the current language of the system as a target language.
Further, determining the target language includes: and taking the language selected by the user as a target language.
Further, the dynamic information set is obtained by any one or more of the following methods:
receiving selection information input by a user, and storing the selection information as dynamic information into a dynamic information set;
and acquiring calculation result information, and storing the calculation result information as dynamic information into a dynamic information set.
Further, in the text presenting unit, replacing the target character in the text to be presented with the dynamic information in the dynamic information set, includes:
converting the dynamic information set into a string type vector, wherein one element of the vector corresponds to one piece of dynamic information;
and responding to the target characters included in the text to be presented with numbers, and replacing the target characters with elements in the vector according to the sequence from small to large of the numbers of the target characters.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the information presentation method when executing the computer program.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored, and the computer program, when executed by a processor, implements the steps of the information presentation method.
In a fifth aspect, the present application provides a computer program product, which when run on an electronic device, causes the electronic device to execute the information presentation method in any one of the above first aspects.
Compared with the related technology, the embodiment of the application has the beneficial effects that: the target characters in the text to be presented are replaced by the dynamic information, so that the dynamic information is presented, and the dynamically changed content is presented to the user in the language expected by the user.
It is understood that the beneficial effects of the second aspect to the fifth aspect can be referred to the related description of the first aspect, and are not described herein again.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required to be used in the embodiments or the related technical descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a system architecture diagram of an application of an information presentation method provided by an embodiment of the present application;
FIG. 2 is a schematic flow chart diagram illustrating an information presentation method according to an embodiment of the present application;
FIG. 3 is a diagram illustrating a set of association information provided by an embodiment of the present application;
FIG. 4 is a schematic structural diagram of an information presentation apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
In order to explain the technical means of the present application, the following examples are given below.
Referring to fig. 1, a system architecture diagram of an application of an information presentation method according to an embodiment of the present application is shown.
As shown in fig. 1, the system architecture may include a vehicle 101, a network 102, and a vehicle diagnostic device 103, where the network 102 is used to provide the medium of a communication link between the vehicle 101 and the vehicle diagnostic device 103. Network 102 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The vehicle 101 may be various vehicles. Such as unmanned vehicles, cars, trucks, etc. It is noted that the vehicle 101 may also be a variety of other vehicles. Such as an aircraft, a ship.
The vehicle diagnosis device 103 may include, but is not limited to, various terminal devices such as a smart phone, a tablet computer, a laptop portable computer, and a desktop computer, and the present embodiment is not particularly limited. The vehicle diagnosis equipment can acquire a text to be presented, which is matched with the target language; and responding to the situation that the text to be presented comprises the target characters, replacing the target characters in the text to be presented with the dynamic information in the dynamic information set to obtain the processed text, and presenting the processed text. In this way, it is possible to realize that the vehicle diagnosis apparatus presents the dynamically changing vehicle diagnosis related information to users of different languages.
Referring to fig. 2, a schematic flow chart of an information presentation method provided in an embodiment of the present application is shown, where the information presentation method shown in fig. 2 includes:
step 201, obtaining a text to be presented, which is matched with a target language.
The target language may be various languages, among others. For example, the target language may be Chinese, English, Russian, German, French, and the like. In practice, the target language is usually the language mastered by the user.
The text to be presented, which is matched with the target language, is usually the text to be presented expressed in the target language. As an example, if the target language is chinese, the text to be presented that matches the target language may be "calibration data overrun". If the target language is english, the text to be presented matching the target language may be "Calibration out of range".
In this embodiment, an execution subject of the information presentation method (for example, the vehicle diagnosis device 103 shown in fig. 1) may acquire the text to be presented that matches the target language in various ways. For example, the execution subject may directly extract locally stored text to be presented that matches the target language. The execution main body can also acquire the text to be presented matched with the target language from other equipment in a wired connection mode or a wireless connection mode.
Step 202, in response to that the text to be presented includes the target character, replacing the target character in the text to be presented with the dynamic information in the dynamic information set, obtaining a processed text, and presenting the processed text.
The target character may be a predetermined character. The target character may be one character or a combination of a plurality of characters. By way of example, the target character may be < >, may also be (), and may also be { }.
The dynamic information in the dynamic information set is generally information that can be dynamically changed. For example, the dynamic information may be a resistance value of an injector of the vehicle, a speed of the vehicle, or the like.
Here, the number of target characters included in the text to be presented is the same as the number of dynamic information in the set of dynamic information. For example, if there are 3 target characters, there are usually 3 corresponding dynamic information in the dynamic information set.
In this embodiment, when the text to be presented includes the target character, the execution main body may replace each character in the text to be presented with the dynamic information in the dynamic information set. In practice, each target character is replaced with dynamic information according to a preset replacement rule. For example, the target characters may be sequentially replaced with the dynamic information in the dynamic information set according to the sequence of appearance of the target characters in the text to be presented. By way of further example, if the text to be presented is "fuel injector () with a resistance of () ohms" and the target character is (). The dynamic information set is 2, 10. At this time, the first target character may be replaced by 2, and the second target character may be replaced by 10 according to the sequence of appearance of the target characters in the text to be presented. In this way, the processed text "resistance of the injector 2 is 10 ohms" can be obtained.
In the embodiment, the target characters in the text to be presented are replaced by the dynamic information, so that the dynamic information is presented, and the dynamically changed content is presented to the user in the language desired by the user.
In some optional implementation manners of this embodiment, the information presenting method may further include the following steps: and presenting the text to be presented in response to the text to be presented not including the target character.
In this implementation manner, if the text to be presented does not include the target character, the text to be presented is directly presented. As an example, if the text to be presented is "review" that does not contain the target character, the execution body described above may directly present "review". The implementation mode can realize the presentation of dynamically changed contents and can also realize the presentation of invariable contents. The practicality is better, helps improving user experience.
In an optional implementation manner of each embodiment of the present application, before obtaining the text to be presented that matches the target language, the information presentation method further includes: and determining a target language, and determining a text identification-text corresponding relation table matched with the target language according to a pre-established association information set.
And the associated information in the associated information set comprises associated text identification and text expressed by at least one language. As an example, a text identifier may be 1, and the text associated with the text identifier may be "start", "begin". At this time, the association information may include: the text identification "1" and "begin" associated with the text identification "1".
In practice, the set of associated information is typically established as follows: first, the content that needs to be presented to the user is translated into text in a different language. Then, the same text identification is allocated to the multiple translated texts. Finally, the text identification is associated with the texts in the plurality of different languages, and the associated text identification and the texts in the plurality of different languages are stored. In practical application, the associated information set can be implemented as a format file convenient for a computer to read and write. The format file can be an XML format file, a TXT format file and the like.
Fig. 3 is a schematic diagram of a related information set provided in an embodiment of the present application. As shown in fig. 3, the association information set includes 4 association information. Since the relationship of the pieces of association information is parallel, only the first piece of association information listed in fig. 3 will be described as an example.
In the first piece of associated information, "89 e7c 262-6220-. "Temp" is text expressed in english. In fig. 3, uid indicates a text label, zh _ CN indicates chinese, and EN _ EN indicates english.
The text identification-text corresponding relation table is used for representing the corresponding relation between the text identification and the text expressed by the target language. In the text identifier-text correspondence table, one text identifier corresponds to one text. As an example, if the target language is chinese, the text corresponding to the text identification "1" may be "start". In practice, each correspondence in the text identification-text correspondence table is usually stored in a key value pair manner. For example, it is common to have a text identifier as a key (or key), and text corresponding to the text identifier as a value (or value). In this way, the text corresponding to the text identifier can be quickly found through the text identifier.
In this implementation, the execution subject may determine the target language in various ways. For example, the execution subject may determine the target language by: the default language is determined to be the target language. The default language generally refers to a language initially set by an application program.
In an alternative implementation, the determining the target language includes: and taking the current language of the system as a target language. The system generally refers to an operating system running the application program. Here, the specific type of the operating system is not limited. It should be noted that, taking the current language of the system as the target language, the language of the application program can be automatically switched to the language commonly used by the user, and the method has high practicability and is beneficial to improving the user experience.
In another alternative implementation, the determining the target language includes: and taking the language selected by the user as a target language. It should be noted that, by using the language selected by the user as the target language, the language of the application program can be switched to the language desired by the user, and the flexibility is high.
In this implementation, after the target language is determined, the execution main body may adopt the target language, and filter out the text identifier and the text expressed in the target language and associated with the text identifier from the pre-established association information set. Thereby obtaining a text identification-text corresponding relation table matched with the target language.
In the implementation mode, the text identification-text corresponding relation table matched with the target language is constructed aiming at the target language, so that the text to be presented matched with the target language can be quickly acquired from the text identification-text corresponding relation table, and the data processing efficiency is improved.
In some optional implementation manners of this embodiment, if a text identifier-text correspondence table matching the target language is pre-established. Acquiring the text to be presented matched with the target language, which may include: in response to receiving a text acquisition request comprising a text identifier, searching a text corresponding to the text identifier from a pre-established text identifier-text correspondence table matched with a target language, and taking the found text as a text to be presented.
The text identification-text corresponding relation table is used for representing the corresponding relation between the text identification and the text expressed by the target language. In the text identifier-text correspondence table, one text identifier corresponds to one text.
Here, the execution main body may receive a text acquisition request, for example, the execution main body may receive a text acquisition request input by a user. As an example, if the user clicks a preset software button, for example, "determine speed measurement", the execution main body may receive a speed measurement request, where the speed measurement request may include a text identifier of a text related to speed measurement. In this way, the execution main body may search a text corresponding to the text identifier from the text identifier-text correspondence table matched with the target language by using the obtained text identifier, and use the found text as the text to be presented. As an example, if the target language is a chinese language, the execution main body may use the text identifier of the text related to speed measurement to search the text corresponding to the text identifier of the text related to speed measurement from the text identifier-text correspondence table matched with the chinese language. For example, the text found may be that the speed of the "{ 0} engine is {1 }". In this way, a speed of 1 for the engine with the text "{ 0} to be presented can be obtained.
In the implementation mode, the text identification is acquired in a text acquisition request mode, so that the text corresponding to the text identification is acquired through the text identification, and the text to be presented matched with the target language can be conveniently acquired.
In some optional implementations of this embodiment, the dynamic information set is obtained by any one or more of the following methods: and in the first mode, the selection information input by the user is received and is stored into the dynamic information set as the dynamic information. And secondly, acquiring calculation result information, and storing the calculation result information as dynamic information into a dynamic information set.
Here, after the text to be presented that is matched with the target language is acquired, if the text to be presented includes the target character, the execution main body may acquire dynamic information for replacing the target character in a plurality of ways.
For example, if the text to be presented is "fuel injector 0" the resistance is 1 ohm. Then the application (e.g., vehicle diagnostic routine) will typically list all of the injectors for selection by the user while running. If the user selects the first fuel injector in the list. The application may calculate a resistance value for that injector. Then, replacing the target character by the information of the oil injector A selected by the user and the calculated resistance value aiming at the oil injector A, and obtaining a text actually presented to the user as follows: "the resistance of the injector A is 10 ohm".
In practical application, the dynamic information set can be obtained as follows: a generic data type is predefined: base type. The type data may be compatible with any dynamic data type. In this way, data that needs to be dynamically displayed during program execution can be stored in Base-type vectors. For example, this can be achieved by: vector < Base > vBase. Where vector < Base > indicates the vector type and vBase is the specific vector. Here, it may be implemented that the dynamic data is all stored in the vBase. Wherein, one dynamic data is one dynamic information, and all the dynamic data stored in the vBase are dynamic information sets.
In addition, in practical application, the dynamic information set is converted into string type. The method can be realized by the following steps: a data transformation interface is defined, and then the dynamic information set is introduced into the transformation interface as a parameter. For example, this can be achieved by: vector < string > attributes (vector < Base > & vArg). Vector < string > represents a string type data set obtained after conversion, definitions are interface names, vector < Base > represents parameter types, and vArg represents a dynamic information set. Here, the conversion of the dynamic information set of Base type into string type can be realized. It should be noted that, after the set of string-type dynamic information is obtained, the target character may be replaced with the dynamic information of each string type in the set.
In the implementation mode, dynamic information generated by aiming at various situations can be presented, and the method is more flexible and practical and is beneficial to improving user experience.
In some optional implementations of the embodiment, the replacing the target character in the text to be presented with the dynamic information in the dynamic information set includes:
first, the dynamic information set is converted into a string type vector.
Wherein one element of the vector corresponds to one dynamic information. One dynamic information may be converted into one element of a vector. Here, if 2 pieces of dynamic information are included in the dynamic information set, the converted vector may have 2 elements.
In practice, only string type data is usually presented. Therefore, when converting a set of dynamic information into a string type vector, it is usually necessary to process the data type of the dynamic information. Specifically, if the dynamic information is of string type, the dynamic information is directly used as an element of the vector. If the dynamic information is not a string type, the dynamic information is converted into the string type, and then the dynamic information converted into the string type is used as an element of the vector.
As an example, if the dynamic information set is { first, 10 }. Where "A" is string type and "10" is integer type (int). Then the dynamic information set is converted into a string type vector, the "a" can be directly used as one element of the vector, and the "10" can be converted into the string type and then used as another element of the vector. Thus, a vector (A, 10) can be obtained.
As another example, if the set of dynamic information is { car, 100km/h }. Wherein, the 'automobile' is string type, and the '100 km/h' is string type. Then "car" may be taken as one element of the vector and "100 km/h" as another element of the vector. In this way, a vector (car, 100km/h) can be obtained.
Then, in response to that the target characters included in the text to be presented have numbers, the target characters are replaced by elements in the vector according to the sequence from small to large of the numbers of the target characters.
Wherein, the number of the target character can be set in the target character. For example, if the target character is {0}, the target character can be considered to have a number of 0.
Here, when the target characters have numbers, the execution body may replace the target characters with elements in the vector in the order of the numbers from small to large.
As an example, if the text to be presented is "fuel injector 0" with a resistance of 1 ohms, "the vector is (A, 10). At this time, the target character 0 may be replaced by A, and the target character 1 may be replaced by 10. Thus, the processed text "resistance of injector A is 10 ohms" can be obtained.
As another example, if the text to be presented is "{ 0} engine speed is {1 }", the vector is (car, 100 km/h). At this time, the target character 0 may be replaced with a car, and the target character 1 may be replaced with 100 km/h. Thus, the processed text "the rotation speed of the automobile engine is 100 km/h" can be obtained.
In this implementation, when the target character has a number, the target character can be directly replaced with dynamic information according to the number of the target character. The target character is replaced by the dynamic information quickly. The data processing efficiency is improved.
Further referring to fig. 4, corresponding to the information presenting method of the foregoing embodiment, fig. 4 is a structural block diagram of an information presenting apparatus 400 provided in the embodiment of the present application, and for convenience of explanation, only the parts related to the embodiment of the present application are shown.
Referring to fig. 4, the apparatus includes:
a text obtaining unit 401, configured to obtain a text to be presented, where the text is matched with a target language;
and the text presenting unit 402 is configured to, in response to that the text to be presented includes a target character, replace the target character in the text to be presented with dynamic information in the dynamic information set, obtain a processed text, and present the processed text.
In one embodiment, the text presenting unit 402 is further configured to present the text to be presented in response to the text to be presented not including the target character.
In one embodiment, the apparatus further includes a relation table determining unit, configured to determine a target language, and determine a text identifier-text correspondence table matching the target language according to a pre-established association information set, where the association information in the association information set includes an associated text identifier and a text expressed in at least one language.
In an embodiment, the text obtaining unit 401 is specifically configured to:
in response to receiving a text acquisition request comprising a text identifier, searching a text corresponding to the text identifier from a pre-established text identifier-text correspondence table matched with a target language, and taking the found text as a text to be presented.
In one embodiment, determining the target language comprises: and taking the current language of the system as a target language.
In one embodiment, determining the target language comprises: and taking the language selected by the user as a target language.
In one embodiment, the dynamic information set is obtained by any one or more of:
receiving selection information input by a user, and storing the selection information as dynamic information into a dynamic information set;
and acquiring calculation result information, and storing the calculation result information as dynamic information into a dynamic information set.
In one embodiment, in the text presenting unit 402, replacing the target character in the text to be presented with the dynamic information in the dynamic information set includes:
converting the dynamic information set into a string type vector, wherein one element of the vector corresponds to one piece of dynamic information;
and responding to the target characters included in the text to be presented with numbers, and replacing the target characters with elements in the vector according to the sequence from small to large of the numbers of the target characters.
The device provided by the embodiment realizes the presentation of the dynamic information by replacing the target characters in the text to be presented with the dynamic information, and is helpful for realizing the presentation of the dynamically changed content to the user in the language desired by the user.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
Referring to fig. 5 further, fig. 5 is a schematic structural diagram of an electronic device 500 according to an embodiment of the present disclosure. As shown in fig. 5, the electronic apparatus 500 of this embodiment includes: at least one processor 501 (only one processor is shown in fig. 5), a memory 502, and a computer program 503, such as an information presentation program, stored in the memory 502 and executable on the at least one processor 501. The steps in any of the various method embodiments described above are implemented when the computer program 503 is executed by the processor 501. The steps in the embodiments of the various information presentation methods described above are implemented when the processor 501 executes the computer program 503. The processor 501, when executing the computer program 503, implements the functions of each module/unit in each device embodiment described above, such as the functions of the units 401 to 402 shown in fig. 4.
Illustratively, the computer program 503 may be divided into one or more modules/units, which are stored in the memory 502 and executed by the processor 501 to accomplish the present application. One or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 503 in the electronic device 500. For example, the computer program 503 may be divided into a text acquiring unit and a text presenting unit, and specific functions of each unit are described in the foregoing embodiments, and are not described herein again.
The electronic device 500 may be a server, a desktop computer, a tablet computer, a cloud server, a mobile terminal, and other computing devices. The electronic device 500 may include, but is not limited to, a processor 501, a memory 502. Those skilled in the art will appreciate that fig. 5 is merely an example of an electronic device 500 and does not constitute a limitation of electronic device 500 and may include more or fewer components than shown, or combine certain components, or different components, e.g., the electronic device may also include input-output devices, network access devices, buses, etc.
The Processor 501 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 502 may be an internal storage unit of the electronic device 500, such as a hard disk or a memory of the electronic device 500. The memory 502 may also be an external storage device of the electronic device 500, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), etc. provided on the electronic device 500. Further, the memory 502 may also include both internal storage units and external storage devices of the electronic device 500. The memory 502 is used for storing computer programs and other programs and data required by the electronic device. The memory 502 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules, so as to perform all or part of the functions described above. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/electronic device and method may be implemented in other ways. For example, the above-described apparatus/electronic device embodiments are merely illustrative, and for example, a module or a unit may be divided into only one logic function, and may be implemented in other ways, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated module, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method according to the embodiments described above may be implemented by a computer program, which is stored in a computer readable storage medium and used by a processor to implement the steps of the embodiments of the methods described above. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, U.S. disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution media, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, in accordance with legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunications signals.
The above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. An information presentation method, characterized in that the method comprises:
acquiring a text to be presented matched with a target language;
and responding to the situation that the text to be presented comprises target characters, replacing the target characters in the text to be presented with dynamic information in a dynamic information set to obtain a processed text, and presenting the processed text.
2. The method of claim 1, wherein prior to said obtaining text to be presented that matches a target language, the method further comprises:
determining a target language, and determining a text identification-text corresponding relation table matched with the target language according to a pre-established associated information set, wherein the associated information in the associated information set comprises associated text identifications and texts represented by at least one language.
3. The method according to claim 1 or 2, wherein the obtaining of the text to be presented matching the target language comprises:
and in response to receiving a text acquisition request comprising a text identifier, searching a text corresponding to the text identifier from a pre-established text identifier-text corresponding relation table matched with the target language, and taking the found text as a text to be presented.
4. The method of claim 2, wherein determining the target language comprises:
and taking the current language of the system as a target language.
5. The method of claim 2, wherein determining the target language comprises:
and taking the language selected by the user as a target language.
6. The method of claim 1, wherein the dynamic information set is obtained by any one or more of:
receiving selection information input by a user, and storing the selection information as dynamic information into a dynamic information set;
and acquiring calculation result information, and storing the calculation result information as dynamic information into a dynamic information set.
7. The method of claim 1, wherein replacing the target character in the text to be presented with the dynamic information in the dynamic information set comprises:
converting the dynamic information set into a character string type vector, wherein one element of the vector corresponds to one piece of dynamic information;
and in response to that the target characters included in the text to be presented have numbers, replacing the target characters with elements in the vector according to the sequence from small to large of the numbers of the target characters.
8. An information presentation apparatus, characterized in that the apparatus comprises:
the text acquisition unit is used for acquiring a text to be presented, which is matched with the target language;
and the text presentation unit is used for responding to that the text to be presented comprises target characters, replacing the target characters in the text to be presented with dynamic information in a dynamic information set to obtain a processed text, and presenting the processed text.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method of any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
CN202011021011.XA 2020-09-25 2020-09-25 Information presentation method, device, equipment and medium Active CN112183116B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011021011.XA CN112183116B (en) 2020-09-25 2020-09-25 Information presentation method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011021011.XA CN112183116B (en) 2020-09-25 2020-09-25 Information presentation method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN112183116A true CN112183116A (en) 2021-01-05
CN112183116B CN112183116B (en) 2023-10-10

Family

ID=73945069

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011021011.XA Active CN112183116B (en) 2020-09-25 2020-09-25 Information presentation method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN112183116B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6092036A (en) * 1998-06-02 2000-07-18 Davox Corporation Multi-lingual data processing system and system and method for translating text used in computer software utilizing an embedded translator
US20100299150A1 (en) * 2009-05-22 2010-11-25 Fein Gene S Language Translation System
CN104115141A (en) * 2011-11-25 2014-10-22 谷歌公司 Providing translation assistance in application localization
CN106792242A (en) * 2017-02-22 2017-05-31 百度在线网络技术(北京)有限公司 For the method and apparatus of pushed information
CN107391499A (en) * 2017-08-03 2017-11-24 深圳Tcl新技术有限公司 It is automatically imported interpretation method, text importing terminal and computer-readable recording medium
CN109035623A (en) * 2018-07-18 2018-12-18 深圳怡化电脑股份有限公司 Interface display method, interface display apparatus and the electronic equipment of self-aided terminal
CN109408113A (en) * 2018-09-03 2019-03-01 平安普惠企业管理有限公司 A kind of code text processing method, system and terminal device
CN110716777A (en) * 2019-08-30 2020-01-21 平安普惠企业管理有限公司 Application program language dynamic switching method and device, storage medium and electronic equipment
CN111177318A (en) * 2019-12-23 2020-05-19 杭州安恒信息技术股份有限公司 Method, device and computer readable storage medium for executing international business
CN111240781A (en) * 2020-01-07 2020-06-05 杭州涂鸦信息技术有限公司 Client multi-language dynamic configuration method and system
CN111367595A (en) * 2018-12-25 2020-07-03 阿里巴巴集团控股有限公司 Data processing method, program running method, device and processing equipment

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6092036A (en) * 1998-06-02 2000-07-18 Davox Corporation Multi-lingual data processing system and system and method for translating text used in computer software utilizing an embedded translator
US20100299150A1 (en) * 2009-05-22 2010-11-25 Fein Gene S Language Translation System
CN104115141A (en) * 2011-11-25 2014-10-22 谷歌公司 Providing translation assistance in application localization
CN106792242A (en) * 2017-02-22 2017-05-31 百度在线网络技术(北京)有限公司 For the method and apparatus of pushed information
CN107391499A (en) * 2017-08-03 2017-11-24 深圳Tcl新技术有限公司 It is automatically imported interpretation method, text importing terminal and computer-readable recording medium
CN109035623A (en) * 2018-07-18 2018-12-18 深圳怡化电脑股份有限公司 Interface display method, interface display apparatus and the electronic equipment of self-aided terminal
CN109408113A (en) * 2018-09-03 2019-03-01 平安普惠企业管理有限公司 A kind of code text processing method, system and terminal device
CN111367595A (en) * 2018-12-25 2020-07-03 阿里巴巴集团控股有限公司 Data processing method, program running method, device and processing equipment
CN110716777A (en) * 2019-08-30 2020-01-21 平安普惠企业管理有限公司 Application program language dynamic switching method and device, storage medium and electronic equipment
CN111177318A (en) * 2019-12-23 2020-05-19 杭州安恒信息技术股份有限公司 Method, device and computer readable storage medium for executing international business
CN111240781A (en) * 2020-01-07 2020-06-05 杭州涂鸦信息技术有限公司 Client multi-language dynamic configuration method and system

Also Published As

Publication number Publication date
CN112183116B (en) 2023-10-10

Similar Documents

Publication Publication Date Title
CN111552267B (en) Vehicle diagnosis method and device and vehicle diagnosis equipment
CN107391561B (en) Advertisement processing method in content source page, server and computer readable medium
CN109241095B (en) Rapid query method, terminal and storage medium
CN112083709A (en) Vehicle diagnosis method, system, terminal device and storage medium
CN112989010A (en) Data query method, data query device and electronic equipment
CN112181924A (en) File conversion method, device, equipment and medium
CN111367870A (en) Method, device and system for sharing picture book
CN112214576A (en) Public opinion analysis method, device, terminal equipment and computer readable storage medium
CN109656592B (en) Card management method, device, terminal and computer readable storage medium
CN112506503B (en) Programming method, device, terminal equipment and storage medium
CN111858581B (en) Paging query method and device, storage medium and electronic equipment
CN110413165B (en) Icon configuration method and device, electronic equipment and computer readable medium
CN112183116B (en) Information presentation method, device, equipment and medium
CN111949793A (en) User intention identification method and device and terminal equipment
CN110751510A (en) Method and device for determining promotion list
CN113848862B (en) Diagnostic software acquisition method, device, communication equipment and storage medium
CN111737040B (en) Program code repairing method and device
CN113886302A (en) Serial port number obtaining method and device of application equipment, terminal equipment and storage medium
CN113760237A (en) Compiling address updating method and device, terminal equipment and readable storage medium
CN113787977A (en) Vehicle maintenance method, communication device, and storage medium
CN112949258A (en) Data processing method and device, electronic equipment and storage medium
CN112818103B (en) Interaction method and device of intelligent dialogue and electronic equipment
CN114296606B (en) Text searching method and device, electronic equipment and storage medium
CN117608703A (en) Dictionary conversion method, dictionary conversion device, vehicle and storage medium
CN112667811B (en) Corpus labeling correction method, corpus labeling correction device, terminal equipment and 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