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

Information presentation method, device, equipment and medium Download PDF

Info

Publication number
CN112183116B
CN112183116B CN202011021011.XA CN202011021011A CN112183116B CN 112183116 B CN112183116 B CN 112183116B CN 202011021011 A CN202011021011 A CN 202011021011A CN 112183116 B CN112183116 B CN 112183116B
Authority
CN
China
Prior art keywords
text
presented
dynamic information
target
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011021011.XA
Other languages
Chinese (zh)
Other versions
CN112183116A (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

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 in response to the text to be presented including the target character, replacing the target character 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 application realizes the presentation of the dynamic information by replacing the target character in the text to be presented with the dynamic information, and is beneficial to realizing the presentation of the dynamically changed content to the user in the language expected by the user.

Description

Information presentation method, device, equipment and medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to an information presenting method, an information presenting device, and an information presenting medium.
Background
With the continuous development of information technology, applications are generally applied to different countries. To facilitate use of applications by users in different languages, it is often necessary to translate content in the application that needs to be presented to the user into language text that is convenient for the user to read.
In the related art, contents to be presented to a user are usually translated into texts in a plurality of languages in advance, and when the contents are presented, texts in a language desired by the user are directly presented. However, if the content to be presented to the user is dynamically changed, the dynamically changed content cannot be translated into text in a plurality of languages in advance, and thus the text in the language desired by the user cannot be directly presented. Accordingly, in the related art, it is required to implement presentation of dynamically changing contents 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 presenting method, including:
acquiring a text to be presented matched with a target language;
and in response to the text to be presented including the target character, replacing the target character 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 rendering the text to be rendered in response to the text to be rendered not including the target character.
Further, before obtaining the text to be presented that matches the target language, the method further comprises:
and determining a text identifier-text correspondence table matched with the target language according to a pre-established association information set, wherein association information in the association information set comprises associated text identifiers and texts expressed in at least one language.
Further, obtaining the text to be presented matched with the target language comprises the following steps:
and responding to the received text acquisition request comprising the 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.
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 ways:
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 dynamic information in the dynamic information set comprises:
converting the dynamic information set into a string type vector, wherein one element of the vector corresponds to one dynamic information;
and in response to the target character included in the text to be presented having the number, replacing the target character with the element in the vector in the order of the number of the target character from small to large.
In a second aspect, an embodiment of the present application provides an information presentation apparatus, including:
the text acquisition unit is used for acquiring a text to be presented matched with the target language;
the text presentation unit is used for responding to the text to be presented and comprising target characters, replacing the target characters in the text to be presented with dynamic information in the dynamic information set, obtaining processed text and presenting the processed text.
Further, the text presentation unit is further configured to present the text to be presented in response to the text to be presented not including the target character.
Further, the device further comprises a relation table determining unit for determining a target language and determining a text identifier-text corresponding relation table matched with the target language according to a pre-established association information set, wherein association information in the association information set comprises associated text identifiers and texts expressed in at least one language.
Further, the text obtaining unit is specifically configured to:
and responding to the received text acquisition request comprising the 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.
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 ways:
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 dynamic information;
and in response to the target character included in the text to be presented having the number, replacing the target character with the element in the vector in the order of the number of the target character from small to large.
In a third aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the above-described information presentation method when executing the computer program.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program, which when executed by a processor, implements the steps of the above-described information presentation method.
In a fifth aspect, an embodiment of the application provides a computer program product for, when run on an electronic device, causing the electronic device to perform the information presentation method of any of the first aspects described above.
Compared with the related art, the embodiment of the application has the beneficial effects that: by replacing the target characters in the text to be presented with the dynamic information, the dynamic information is presented, and the dynamic content is presented to the user in a language expected by the user.
It will be appreciated that the advantages of the second to fifth aspects may be found in the relevant description of the first aspect, and are not described here again.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments or the related technical descriptions will be briefly described, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to the drawings without inventive effort for those skilled in the art.
FIG. 1 is a system architecture diagram of an application of an information presentation method according to an embodiment of the present application;
FIG. 2 is a flow chart of an information presenting method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of an association information set according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an information presenting 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 the particular system architecture, 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 should 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 the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in the present description and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
Furthermore, the terms "first," "second," "third," and the like in the description of the present specification and in the appended claims, are used for distinguishing between descriptions and not necessarily for indicating or implying a relative importance.
Reference in the 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 application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified 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 scheme of the application, the following examples are used for illustration.
Referring to fig. 1, a system architecture diagram to which an information presentation method according to an embodiment of the present application is applied is provided.
As shown in fig. 1, the system architecture may include a vehicle 101, a network 102, and a vehicle diagnostic device 103, wherein the network 102 is used to provide a medium of communication links 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, among others.
The vehicle 101 may be various vehicles. For example, unmanned vehicles, cars, trucks, etc. It should be noted that the vehicle 101 may also be various other vehicles. Such as aircraft, ship.
The vehicle diagnostic 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 device can acquire a text to be presented, which is matched with the target language; and in response to the text to be presented including the target character, replacing the target character 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 diagnostic apparatus presents the dynamically changing vehicle diagnosis-related information to the user in different languages.
Referring to fig. 2, a flow chart of an information presenting method according to an embodiment of the present application, where the information presenting method shown in fig. 2 includes:
step 201, obtaining text to be presented matched with a target language.
Wherein the target language may be various languages. For example, the target language may be chinese, english, russian, german, french, etc. In practice, the target language is typically the language that the user has mastered.
The text to be presented, which is matched with the target language, is usually text to be presented expressed by using 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 that matches the target language may be "Calibration out of range".
In the present embodiment, the execution subject of the information presentation method (for example, the vehicle diagnostic apparatus 103 shown in fig. 1) can acquire the text to be presented matching the target language in various ways. For example, the execution subject may directly extract the locally stored text to be presented that matches the target language. The execution body can also acquire the text to be presented matched with the target language from other devices through a wired connection mode or a wireless connection mode.
Step 202, in response to the text to be presented including the target character, replacing the target character in the text to be presented with the dynamic information in the dynamic information set, obtaining the 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. As an example, the target character may be < >, may be (), or may 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 text to be presented includes the same number of target characters as the number of dynamic information in the dynamic information set. For example, if there are 3 target characters, there are typically 3 corresponding dynamic information in the dynamic information set.
In this embodiment, when the text to be presented includes the target character, the execution 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, usually according to a preset replacement rule. For example, the target characters may be replaced with the dynamic information in the dynamic information set in sequence according to the sequence in which the target characters appear in the text to be presented. For further example, if the text to be presented is "resistance of injector () is" ohm ", the target character is (). The dynamic information set is {2, 10}. At this time, the first target character may be replaced with 2 and the second target character may be replaced with 10 according to the order in which the target characters appear in the text to be presented. In this way, the text after processing can be obtained as "the resistance of the injector 2 is 10 ohms".
In the embodiment, the dynamic information is presented by replacing the target character in the text to be presented with the dynamic information, so that the dynamic content is presented to the user in a language expected by the user.
In some optional implementations of the present embodiment, the information presenting method may further include the following steps: and rendering the text to be rendered in response to the text to be rendered not including the target character.
In the 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 subject may directly present the "review". The implementation mode can realize the presentation of the dynamically changed content and the presentation of the unchanged content. The practicality is better, helps improving user experience.
In an optional implementation manner of the embodiments of the present application, before obtaining the text to be presented that matches the target language, the information presenting method further includes: and determining a target language, and determining a text identification-text corresponding relation table matched with the target language according to the pre-established association information set.
Wherein the associated information in the set of associated information comprises an associated text identification and text expressed in 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: text identification "1" and "start" and "begin" associated with text identification "1".
In practice, the set of association information is typically established by: first, the content that needs to be presented to the user is translated into text in a different language. Then, the same text identifier is allocated to the plurality of texts obtained through translation. Finally, associating the text identifier with the text in the plurality of different languages, and storing the associated text identifier and the text in the plurality of different languages. In practical application, the associated information set can be implemented as a format file which is convenient for a computer to read and write. The format file may be an XML format file, a TXT format file, or the like.
Fig. 3 is a schematic diagram of an association information set according to an embodiment of the present application. As shown in fig. 3, the association information set includes 4 pieces of association information. Since the relationship of the respective associated information is parallel, only the first piece of associated information listed in fig. 3 will be described as an example.
In the first piece of associated information, "89e7c262-6220-4110-94cd-aab25a068dbc" is a text identifier, and "temporary" is a text expressed in Chinese. "Temp" is text expressed in English. In fig. 3, uid represents a text label, zh_cn represents chinese, and en_en represents english.
The text identifier-text correspondence table is used for representing the correspondence between the text identifier 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 identifier "1" may be "start". In practice, each correspondence in the text identifier-text correspondence table is typically stored in the form of a key value pair. For example, a text identifier is typically used as a key (or key), and a text corresponding to the text identifier is used as a value (or value). In this way, text corresponding to the text identification can be quickly found by the text identification.
In this implementation manner, the execution subject may determine the target language in various manners. For example, the execution subject may determine the target language by: the default language is determined as the target language. The default language generally refers to a language in which the application program is initially set.
An alternative implementation manner, 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, by 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, so that the practicability is higher, and the user experience is improved.
In another alternative implementation manner, determining the target language includes: and taking the language selected by the user as a target language. It should be noted that, by taking the language selected by the user as the target language, the language of the application program can be switched to the language expected by the user, and the flexibility is high.
In this implementation manner, after determining the target language, the executing body may use the target language to screen the text identifier and the text represented 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 manner, the text identifier-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 rapidly acquired from the text identifier-text corresponding relation table, and the data processing efficiency is improved.
In some optional implementations of the present embodiment, if a text identifier-text correspondence table matching the target language is pre-established. Acquiring text to be presented that matches the target language may include: and responding to the received text acquisition request comprising the 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.
The text identifier-text correspondence table is used for representing the correspondence between the text identifier 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 subject may receive a text acquisition request, e.g., the execution subject may receive a text acquisition request input by a user. As an example, if the user clicks a certain preset software button, for example, clicks "determine speed measurement", the executing body may receive a speed measurement request, where the speed measurement request may include a text identifier of a text related to a certain speed measurement. In this way, the execution subject may use the obtained text identifier to search the text corresponding to the text identifier from the text identifier-text correspondence table matched with the target language, and use the found text as the text to be presented. As an example, if the target language is chinese, the executing entity may use the text identifier of the text related to the speed measurement to find the text corresponding to the text identifier of the text related to the speed measurement from the text identifier-text correspondence table matched with chinese. For example, the found text may be "{0} the rotational speed of the engine is {1 }. In this way, the rotation speed of the engine with the text to be presented being "{0} is {1 }.
In the implementation manner, the text identifier is obtained by a text obtaining request mode, so that the text corresponding to the text identifier is obtained by the text identifier, and the text to be presented matched with the target language can be obtained conveniently.
In some optional implementations of this embodiment, the dynamic information set is obtained by any one or more of: in one mode, selection information input by a user is received, and the selection information is stored as dynamic information into a dynamic information set. And in a second mode, obtaining calculation result information, and storing the calculation result information as dynamic information into a dynamic information set.
Here, after the text to be presented matching the target language is obtained, if the text to be presented includes the target character, the execution subject may obtain the dynamic information for replacing the target character in various manners.
For example, if the text to be presented is "the resistance of the injector {0} is {1} ohm". The application (e.g., a vehicle diagnostic program) will typically list all of the injectors for selection by the user at run time. If the user selects injector A in the list. The application may calculate a resistance value for the injector a. Then, replacing target characters with the information of the injector A selected by the user and the calculated resistance value aiming at the injector A to obtain the text actually presented to the user, wherein the text comprises the following steps: "resistance of injector A is 10 ohm".
In practical application, the dynamic information set can be obtained by the following modes: predefining a general data type: base type. This type of 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 a Base-type vector. For example, this can be achieved by the following statement: vector < Base > vBase. Where vector < Base > represents the vector type and vBase is the specific vector. Here, storing dynamic data in vBase may be implemented. Wherein one dynamic data is one dynamic information, and all dynamic data stored in vBase are dynamic information sets.
In addition, in practical application, the dynamic information set is converted into string type. This can be achieved by: a data conversion interface is defined and then a dynamic information set is entered as parameters into the conversion interface. For example, this can be achieved by the following statement: vector < string > indexes (vector < Base > & vArg). Wherein vector < string > represents a set of string type data obtained after conversion, the parameters are interface names, vector < Base > represents parameter types, and vArg represents dynamic information set. Here, converting the Base type dynamic information set into the string type may be implemented. It should be noted that after obtaining the set of dynamic information of a string type, the dynamic information of each string type in the set may be substituted for the target character.
In the implementation manner, the dynamic information generated aiming at various situations can be presented, so that the implementation method is more flexible and practical and is beneficial to improving user experience.
In some optional implementations of this embodiment, replacing the target character in the text to be presented with the dynamic information in the dynamic information set includes:
first, a set of dynamic information is converted into a string type vector.
Wherein one element of the vector corresponds to one dynamic information. A dynamic message may be converted into an 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 typically presented. Therefore, when converting a set of dynamic information into a vector of string type, it is often 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 one element of the vector. If the dynamic information is not of the string type, converting the dynamic information into the string type, and then taking the dynamic information converted into the string type as an element of the vector.
As an example, if the dynamic information set is { a, 10}. Where "A" is a string type and "10" is an integer type (int). The dynamic information set may be converted into a vector of the string type with "a" directly as one element of the vector and "10" converted into another element of the vector. Thus, a vector (a, 10) can be obtained.
As another example, if the dynamic information set is { automobile, 100km/h }. Wherein, "car" is of the string type, and "100km/h" is of the string type. Then "car" may be taken as one element of the vector and "100km/h" as another element of the vector. Thus, a vector (car, 100 km/h) can be obtained.
Then, in response to the target character included in the text to be presented having a number, the target character is replaced with an element in the vector in the order of the number of the target character from small to large.
Wherein the number of the target character may be set in the target character. For example, if the target character is {0}, the number of the target character can be considered to be 0.
Here, when the target characters have numbers, the execution body may replace each target character with an element in the vector in order of the numbers from smaller to larger.
As an example, if the text to be presented is "the resistance of the injector {0} is {1} ohm", the vector is (a, 10). At this time, the target character {0} may be replaced with a first, and the target character {1} may be replaced with 10. In this way, the processed text may be obtained as "resistance of injector A is 10 ohms".
As another example, if the text to be presented is "{0} the rotational speed of the engine is {1}, the vector is (car, 100 km/h). At this time, the target character {0} may be replaced with an automobile, and the target character {1} may be replaced with 100km/h. Thus, the processed text was found to be "the revolution speed of the automobile engine was 100km/h".
In this implementation, when the target character has a number, the target character may be directly replaced with dynamic information according to the number of the target character. The method is beneficial to realizing rapid replacement of the target character with dynamic information. And the data processing efficiency is improved.
With further reference to fig. 4, corresponding to the information presenting method of the above embodiment, fig. 4 is a block diagram of an information presenting apparatus 400 provided in an embodiment of the present application, and for convenience of explanation, only a portion related to the embodiment of the present application is shown.
Referring to fig. 4, the apparatus includes:
a text obtaining unit 401, configured to obtain a text to be presented that matches a target language;
the text presenting unit 402 is configured to replace the target character in the text to be presented with the dynamic information in the dynamic information set in response to the text to be presented including the target character, obtain the 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 comprises a relation table determining unit for determining a target language, and determining a text identifier-text correspondence table matching the target language according to a pre-established set of association information, wherein the association information in the set of association information includes associated text identifiers and text expressed in at least one language.
In one embodiment, the text obtaining unit 401 is specifically configured to:
and responding to the received text acquisition request comprising the 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.
In one embodiment, determining the target language includes: and taking the current language of the system as a target language.
In one embodiment, determining the target language includes: 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 the following:
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 presentation unit 402, replacing the target character in the text to be presented with 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 dynamic information;
and in response to the target character included in the text to be presented having the number, replacing the target character with the element in the vector in the order of the number of the target character from small to large.
According to the device provided by the embodiment, the dynamic information is presented by replacing the target character in the text to be presented with the dynamic information, so that the dynamic content can be presented to the user in a language expected by the user.
It should be noted that, because the content of information interaction and execution process between the above devices/units is based on the same concept as the method embodiment of the present application, specific functions and technical effects thereof may be referred to in the method embodiment section, and will not be described herein.
With further reference to fig. 5, fig. 5 is a schematic structural diagram of an electronic device 500 according to an embodiment of the application. 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 of any of the various method embodiments described above are implemented by processor 501 when executing computer program 503. The processor 501, when executing the computer program 503, implements the steps of the embodiments of the respective information presentation methods described above. The processor 501, when executing the computer program 503, performs the functions of the modules/units of the apparatus embodiments described above, for example the functions of the units 401 to 402 shown in fig. 4.
By way of example, the computer program 503 may be split 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 of the modules/units may be a series of computer program instruction segments capable of performing particular functions for describing the execution of the computer program 503 in the electronic device 500. For example, the computer program 503 may be divided into a text obtaining unit, a text presenting unit, and specific functions of each unit are described in the above embodiments, which are not described herein.
The electronic device 500 may be a computing device such as a server, desktop computer, tablet computer, cloud server, mobile terminal, and the like. Electronic device 500 may include, but is not limited to, processor 501, memory 502. It will be appreciated by those skilled in the art that fig. 5 is merely an example of an electronic device 500 and is not meant to limit the electronic device 500, and may include more or fewer components than shown, or may combine certain components, or different components, e.g., an electronic device may also include an input-output device, a network access device, a bus, etc.
The processor 501 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 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) or the like, which are 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 to store 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-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, the specific names of the functional units and modules are only for distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
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 solution. 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 manners. For example, the apparatus/electronic device embodiments described above are merely illustrative, e.g., the division of modules or units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated modules, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, and the computer program may be stored in a computer readable storage medium, where the computer program, when executed by a processor, may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, executable files or in some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the content of the computer readable medium can be appropriately increased or decreased according to the requirements of the jurisdiction's jurisdiction and the patent practice, for example, in some jurisdictions, the computer readable medium does not include electrical carrier signals and telecommunication signals according to the jurisdiction and the patent practice.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting; 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 technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (9)

1. An information presentation method, characterized by being applied to a vehicle diagnostic apparatus, comprising:
obtaining text to be presented matched with a target language, comprising: searching a text corresponding to the text identifier from a pre-established text identifier-text correspondence table matched with the target language in response to receiving a text acquisition request comprising the text identifier, and taking the found text as a text to be presented, wherein the text acquisition request is an operation of clicking a certain preset software button by a user, and the preset software button corresponds to the text identifier;
in response to the text to be presented comprising target characters, replacing the target characters in the text to be presented with dynamic information in a dynamic information set to obtain processed text, and presenting the processed text;
wherein, the dynamic information in the dynamic information set is obtained by the following way: when the text to be presented comprises target characters and the text to be presented corresponds to a vehicle part list, presenting the vehicle part list, receiving selection information which is input by a user aiming at the vehicle part list and used for selecting the vehicle part, and determining the selection information as dynamic information; and calculating the value of the operation parameter of the selected vehicle component when the text to be presented corresponds to the operation parameter of the selected vehicle component, obtaining calculation result data, and determining the calculation result data as dynamic information.
2. The method of claim 1, wherein prior to the obtaining text to be presented that matches the target language, the method further comprises:
determining a target language, and determining a text identifier-text corresponding relation table matched with the target language according to a pre-established associated information set, wherein associated information in the associated information set comprises associated text identifiers and texts expressed in at least one language.
3. The method of claim 2, wherein the determining the target language comprises:
and taking the current language of the system as a target language.
4. The method of claim 2, wherein the determining the target language comprises:
and taking the language selected by the user as a target language.
5. 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.
6. The method of claim 1, wherein the replacing the target character in the text to be presented with dynamic information in a set of dynamic information comprises:
converting the dynamic information set into a vector of a character string type, wherein one element of the vector corresponds to one dynamic information;
and replacing the target characters with elements in the vector according to the sequence from the small number to the large number of the target characters in response to the target characters included in the text to be presented with the numbers.
7. An information presentation apparatus, characterized by being applied to a vehicle diagnostic device, comprising:
the text acquisition unit is used for acquiring the text to be presented matched with the target language, and comprises the following steps: searching a text corresponding to the text identifier from a pre-established text identifier-text correspondence table matched with the target language in response to receiving a text acquisition request comprising the text identifier, and taking the found text as a text to be presented, wherein the text acquisition request is an operation of clicking a certain preset software button by a user, and the preset software button corresponds to the text identifier;
a text presentation unit, configured to replace a target character in the text to be presented with dynamic information in a dynamic information set in response to the text to be presented including the target character, obtain a processed text, and present the processed text;
wherein, the dynamic information in the dynamic information set is obtained by the following way: when the text to be presented comprises target characters and the text to be presented corresponds to a vehicle part list, presenting the vehicle part list, receiving selection information which is input by a user aiming at the vehicle part list and used for selecting the vehicle part, and determining the selection information as dynamic information; and calculating the value of the operation parameter of the selected vehicle component when the text to be presented corresponds to the operation parameter of the selected vehicle component, obtaining calculation result data, and determining the calculation result data as dynamic information.
8. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 6 when executing the computer program.
9. A computer readable storage medium storing a computer program, characterized in that the computer program, when executed by a processor, implements the method according to any one of claims 1 to 6.
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 CN112183116A (en) 2021-01-05
CN112183116B true 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 (10)

* 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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100299150A1 (en) * 2009-05-22 2010-11-25 Fein Gene S Language Translation System

Patent Citations (10)

* 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
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
CN112183116A (en) 2021-01-05

Similar Documents

Publication Publication Date Title
CN110969012A (en) Text error correction method and device, storage medium and electronic equipment
CN109241095B (en) Rapid query method, terminal and storage medium
CN107783786B (en) Method and device for creating equipment resources
CN108646972B (en) Method and equipment for displaying information and searching information
CN110569335A (en) triple verification method and device based on artificial intelligence and storage medium
CN111460098B (en) Text matching method and device and terminal equipment
CN111367870A (en) Method, device and system for sharing picture book
CN112183116B (en) Information presentation method, device, equipment and medium
CN107239209B (en) Photographing search method, device, terminal and storage medium
CN111582795A (en) Method, device and readable storage medium for automatically detecting logistics merchants
CN111737040B (en) Program code repairing method and device
CN114356858A (en) Document merging method, electronic device and storage medium
CN110471708B (en) Method and device for acquiring configuration items based on reusable components
CN116263770A (en) Method, device, terminal equipment and medium for storing business data based on database
CN111813474A (en) Multi-language display method and device and electronic equipment
CN112835494A (en) Voice recognition result error correction method and device
CN110765262A (en) POI text retrieval method and device and electronic equipment
CN113840020B (en) Positioning method and device based on IP address information, electronic equipment and storage medium
CN111967240B (en) Text parsing method, text parsing device, terminal equipment and computer readable storage medium
CN112818103B (en) Interaction method and device of intelligent dialogue and electronic equipment
CN112667811B (en) Corpus labeling correction method, corpus labeling correction device, terminal equipment and medium
CN116127942B (en) Text comparison method, device, equipment and storage medium
CN114840743B (en) Model recommendation method and device, electronic equipment and readable storage medium
CN112181839B (en) Information processing method, information processing device and terminal equipment
CN111753142B (en) Label-based retrieval method and device

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