Page adjustment method and device for different language texts, equipment and storage medium

Through real-time translation and debugging of display parameters, the problem of displaying text in different languages ​​on the on-board screen page is solved, and the complete display of the target language text is achieved and the display effect is improved.

CN119938201APending Publication Date: 2025-05-06CHONGQING SELIS PHOENIX INTELLIGENT INNOVATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510034254.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-09
Publication Date
2025-05-06

AI Technical Summary

Technical Problem

The existing technology cannot effectively solve the display needs of texts in different languages ​​in vehicle screen pages, resulting in the inability to display the target language text in a complete and normal manner, and the display effect is poor.

Method used

The text obtained by real-time translation is debugged for display parameters, and the display area and text content are adjusted to meet the display needs of the target language text. Specific methods include adjusting the size of the initial area, reducing the font size and row/column spacing, deleting adjectives and replacing prepositions, etc.

Benefits of technology

Improve the display effect of the target language text, so that it can be displayed in the page in a complete and normal manner, without the need to preset the display parameters of multiple language texts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119938201A_ABST
    Figure CN119938201A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of vehicles, and discloses a page adjustment method and device for different language texts, equipment and a storage medium, and the method comprises the steps: translating a current display text into a target language text in response to a translation instruction for the current display text; if the display area required by the target language text is larger than the initial area of the current display text, adjusting the initial area until the target language text is completely displayed in the adjusted initial area or the initial area is adjusted into a target area; and if the target language text cannot be completely displayed in the target area, adjusting the target language text until the adjusted target language text is completely displayed in the target area. According to the method and the device, the display parameters of the text obtained by real-time translation can be debugged to adapt to the display requirement of the target language text, so that the display effect of the target language text is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle technology, and in particular to a page adjustment method, device, equipment and storage medium for texts in different languages. Background Art

[0002] The text display effect in the car screen page is set with the text in the default language. The setting process only considers a single language text and cannot meet the display requirements of texts in different languages. The related technology improves this technical problem by presetting the display parameters of multiple language texts, but the process of presetting the display parameters requires manual participation and requires the introduction of massive texts to adjust the display parameters between different language texts. If the display parameters of the target language text are omitted, the target language text will not be fully and normally displayed on the page, resulting in poor display effect of the target language text. Summary of the invention

[0003] In view of the above problems, the present application provides a page adjustment method, device, equipment and storage medium for texts in different languages, which are used to debug the display parameters of the text obtained by real-time translation to meet the display requirements of the target language text, thereby improving the display effect of the target language text.

[0004] According to one aspect of the present application, a page adjustment method for texts in different languages ​​is provided, the page adjustment method comprising: in response to a translation instruction for a currently displayed text, translating the currently displayed text into a target language text; if the display area required for the target language text is larger than the initial area of ​​the currently displayed text, adjusting the initial area until the target language text is completely displayed in the adjusted initial area, or the initial area has been adjusted to the target area; if the target language text cannot be completely displayed in the target area, adjusting the target language text until the adjusted target language text is completely displayed in the target area.

[0005] In an optional manner, the adjusting of the target language text includes: dividing the target language text into words and determining the verb keyword words and the noun keyword words; placing the verb keyword words in front of the noun keyword words to obtain an adjusted target language text; wherein the adjusted target language text is a verb-object sentence text.

[0006] In an optional manner, there are multiple verb keywords; placing the verb keywords in front of the noun keywords to obtain an adjusted target language text includes: merging verb keywords with the same meaning to obtain target verb keywords; parallelizing the target verb keywords and other verb keywords, and placing the parallelized verb keyword combination in front of the noun keywords to obtain the adjusted target language text.

[0007] In an optional manner, the adjusting the target language text includes: reducing the font size of the target language text; and / or reducing the row / column spacing in the target language text.

[0008] In an optional manner, the processing of reducing the font size of the target language text includes: reducing each character in the target language text to the minimum display height of the characters in the corresponding text line to obtain a first reduced target language text; if the first reduced target language text cannot be completely displayed in the target area, reducing the font size of the first reduced target language text to a preset size, or reducing the font size of the target language text to the preset size.

[0009] In an optional manner, the adjusting the target language text includes: deleting adjectives in the target language text, and replacing prepositions in the target language text with designated characters to obtain an adjusted target language text; wherein a display area required for the designated characters is smaller than a display area required for the prepositions.

[0010] In an optional manner, the adjusting of the initial area includes: adjusting the length of a specified dimension of the initial area to expand the initial area; and / or adjusting the number of displayed characters in the text rows and columns in the initial area to increase the display area of ​​the target language text in the initial area.

[0011] According to another aspect of the present application, a page adjustment device for texts in different languages ​​is provided, the page adjustment device comprising: a response module, translating the current display text into a target language text in response to a translation instruction for the current display text; a first adjustment module, if the display area required for the target language text is larger than the initial area of ​​the current display text, adjusting the initial area until the target language text is completely displayed in the adjusted initial area, or the initial area has been adjusted to the target area; a second adjustment module, if the target language text cannot be completely displayed in the target area, adjusting the target language text until the adjusted target language text is completely displayed in the target area.

[0012] According to one aspect of the present application, an electronic device is provided, including: a controller; and a memory for storing one or more programs, wherein when the one or more programs are executed by the controller, the above-mentioned page adjustment method is executed.

[0013] According to one aspect of the present application, a computer-readable storage medium is also provided, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor of a computer, the computer executes the above-mentioned page adjustment method.

[0014] According to one aspect of the present application, a computer program product or a computer program is also provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above-mentioned page adjustment method.

[0015] This application does not need to preset a large number of display parameters of texts in multiple languages. By responding to translation instructions in real time, the current display text is translated to obtain the target language text; if the display area required for the target language text is larger than the initial area of ​​the current display text, the initial area is adjusted. If the adjustment still cannot meet the display requirements of the initial target text, the target language text is adjusted until it meets the display requirements in the page. This application can debug the display parameters of the text obtained by real-time translation to adapt to the display requirements of the target language text, thereby improving the display effect of the target language text.

[0016] The above description is only an overview of the technical solution of the embodiment of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0018] Figure 1 It is a flowchart of a method for adjusting pages of texts in different languages ​​shown in an exemplary embodiment of the present application.

[0019] Figure 2FIG. 1 is a schematic diagram showing a display of Russian text in an initial area according to an exemplary embodiment of the present application.

[0020] Figure 3 is based on Figure 1 The exemplary embodiment shown is a schematic flow chart of another method for adjusting pages of texts in different languages.

[0021] Figure 4 is based on Figure 1 The exemplary embodiment shown is a schematic flow chart of another method for adjusting pages of texts in different languages.

[0022] Figure 5 is based on Figure 4 The exemplary embodiment shown is a schematic flow chart of another method for adjusting pages of texts in different languages.

[0023] Figure 6 It is a schematic diagram showing a display of a portion of a target language text according to an exemplary embodiment of the present application.

[0024] Figure 7 is based on Figure 1 The exemplary embodiment shown is a schematic flow chart of another method for adjusting pages of texts in different languages.

[0025] Figure 8 It is a schematic diagram of the application scenario of the page adjustment method of different language texts of the present application.

[0026] Fig. 9 It is a structural diagram of a device for adjusting pages of texts in different languages ​​shown in an exemplary embodiment of the present application.

[0027] Fig.10 It is a structural diagram of a computer system of an electronic device shown in an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0028] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.

[0029] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0030] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0031] The term "multiple" as used in this application refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.

[0032] The related technology presets display parameters of texts in multiple languages ​​to meet the display requirements of texts in different languages. However, the process of presetting the display parameters requires manual participation, and a large amount of text needs to be introduced to adjust the display parameters between texts in different languages. If the display parameters of the target language text are omitted, the target language text cannot be fully and normally displayed on the page, resulting in poor display effect of the target language text.

[0033] To this end, one aspect of the present application provides a method for adjusting pages of texts in different languages. Figure 1 , Figure 1 1 is a flow chart of a method for adjusting pages of texts in different languages, shown in an exemplary embodiment of the present application. The method for adjusting pages at least includes S110 to S130, which are described in detail as follows:

[0034] S110: In response to a translation instruction for the currently displayed text, the currently displayed text is translated into a target language text.

[0035] The translation instruction is a user-triggered instruction that instructs the translation of the language of the currently displayed text into the target language desired by the user. The translation instruction can be an instruction directly sent by the user to the execution subject of this application through language or user terminal, or it can be triggered by the user by triggering a physical button or a related virtual button on the display screen to generate an instruction.

[0036] The meaning of the currently displayed text is the same as that of the target language text, that is, the meanings represented by the words and sentences in the two texts are the same.

[0037] If the language of the target language text is the same as the language of the currently displayed text, in order to save data processing resources, the translation instruction will not be executed in some embodiments, that is, before executing the translation operation indicated by the translation instruction, the language of the currently displayed text and the language of the target language text will be compared; if the two are the same, the translation operation will not be performed; if the two are different, the translation operation will be performed.

[0038] S120: If the display area required for the target language text is larger than the initial area of ​​the currently displayed text, the initial area is adjusted until the target language text is completely displayed in the adjusted initial area, or the initial area is adjusted to the target area.

[0039] If the initial area has been adjusted to the target area, it means that the adjustment of the display area has reached the upper limit. The target area is the area after the maximum adjustment of the initial area, and it is also the area that meets the minimum text display requirements. If the initial area is adjusted beyond the maximum adjustment, the adjusted area may affect the normal display of other page areas, and even the display effect of the entire page.

[0040] Due to the different written presentation effects of languages, there are obvious differences in the display effects of texts with the same meaning in different languages. For example, the Chinese "Enter Upgrade" corresponds to the Russian text with the same meaning: "Перейтикοбнοвлению". Obviously, the written presentation effects of the two are different. The Chinese written presentation effect is more concise. If the Russian text obtained by direct translation is directly displayed in the initial area of ​​the original Chinese text, such as Figure 2 As shown, the initial area can only display part of the Russian text, but cannot display the Russian text completely.

[0041] An example of how to adjust the initial area is to adjust the length of a specified dimension of the initial area to expand the initial area; and / or to adjust the number of displayed characters in the text rows and columns in the initial area to increase the display area of ​​the target language text in the initial area.

[0042] The length of the specified dimension may be the length or width of the initial region, for example, the width of the initial region may be increased to expand the display area of ​​the initial region.

[0043] The numbers displayed in each row / column in the initial area are relatively fixed, and the display area of ​​the target language text in the initial area can be increased by adjusting the number of displayed words in the row / column.

[0044] This embodiment does not require hardware level improvements, that is, the size of the physical display screen is not improved. When the initial area of ​​the current text display cannot meet the display requirements of the target language text, the initial area is adjusted, including but not limited to adjusting the length and / or width of the initial area, adjusting the number of displayed words in the text rows and columns in the initial area, adjusting the shape and / or size of the initial area, and at least one adjustment method. Of course, multiple adjustment methods can also be performed simultaneously or step by step until the target language text is completely displayed in the adjusted initial area, or the initial area has been adjusted to the target area.

[0045] The smaller the adjustment method for the initial area change, the better the initial area after adjustment can display the target language text, and the better the text display effect. If the initial area is directly adjusted with the maximum adjustment strength to adjust it to the target area, the adjustment may be over-adjusted, and the display effect of the target language text in the target area is not optimal. Therefore, in some embodiments, the adjustment method for the initial area is progressive, and its adjustment strength is progressively enhanced to determine the display area adapted to the target language text and ensure the best display effect of the target language text.

[0046] S130: If the target language text cannot be completely displayed in the target area, the target language text is adjusted until the adjusted target language text is completely displayed in the target area.

[0047] If the initial area has been adjusted to the target area, and the target language text cannot be fully displayed in the target area, the target language text needs to be adjusted so that the adjusted target language text can be fully displayed in the target area. The method of adjusting the target language text includes but is not limited to at least one adjustment method such as adjusting font size, merging text synonyms, filtering text words and sentences, replacing text words, and extracting keywords.

[0048] Because the target language text uses the text parameters such as the font size and font type of the current display text, it can ensure that the display effect of the target language text is consistent with the display effect of the current display text to the greatest extent, and will not cause visual aversion to the user, thus ensuring the user experience to a certain extent. Therefore, this embodiment first adjusts the initial area, and after the maximum adjustment, if the target language text still cannot be fully displayed in the target area, then the target language text is adjusted, that is, the display area is adjusted first, and then the language text is adjusted, so as to ensure the display effect of the target language text as much as possible.

[0049] This embodiment does not require a large number of preset display parameters for texts in multiple languages. By responding to translation instructions in real time, the current display text is translated to obtain the target language text; if the display area required for the target language text is larger than the initial area of ​​the current display text, the initial area is adjusted. If the display requirements of the initial target text cannot be met after the adjustment, the target language text is adjusted until the display requirements in the page are met. This application can debug the display parameters of the text obtained by real-time translation to adapt to the display requirements of the target language text, thereby improving the display effect of the target language text.

[0050] In the in-vehicle scenario, users generally trigger vehicle-related execution instructions. In order to enhance the user's driving experience and enable the user to be aware of the command execution progress, the progress of the relevant execution instructions will be displayed on the in-vehicle screen page.

[0051] To this end, in another exemplary embodiment of the present application, considering the display requirements in the vehicle scene, the target language text is adjusted from the part of speech level, and how to adjust the target language text is described in detail. For details, please refer to Figure 3 , Figure 3 is based on Figure 1 The exemplary embodiment shown is a flow chart of another method for adjusting pages of texts in different languages. The page adjustment method is as follows Figure 1 The S130 shown includes S310 to S320, which are described in detail as follows:

[0052] S310: Divide the target language text into words and determine verb keywords and noun keywords.

[0053] The screen page in the in-vehicle scenario generally displays texts such as "Executing XX", "Entering XX", and "Opening XX". This embodiment of the present application divides the target language text into words at the part-of-speech level, and accurately determines the verb keywords and noun keywords in the target language text.

[0054] S320: placing the verb keyword in front of the noun keyword to obtain an adjusted target language text; wherein the adjusted target language text is a verb-object sentence text.

[0055] By placing the verb keyword in front of the noun keyword, a short verb-object sentence can be formed, which can concisely express the main meaning of the target language text and achieve the purpose of streamlining the words and sentences in the target language text to reduce the text required to be displayed, thereby ensuring the text display effect.

[0056] In one embodiment, there are multiple verb keywords. The adjustment method in S320 is: merge the verb keywords with the same meaning to obtain the target verb keyword; parallelize the target verb keyword and other verb keywords, and combine the parallelized verb keywords to place them in the front position of the noun keyword to obtain the adjusted target language text.

[0057] The target verb keyword is the word with the highest historical matching rate in the verb set with the same meaning; the historical matching rate represents the matching rate between the target verb keyword and the historical verb keyword. The higher the historical matching rate, the higher the frequency of use of the target verb keyword in the vehicle scene, and the more it meets the user's expected execution action. At this point, the words that are most likely to meet the target language text execution action are prioritized, so as to ensure that the obtained verb-object sentence text can concisely and accurately express the meaning expressed by the target language text.

[0058] In another exemplary embodiment of the present application, how to adjust the target language text is described in detail. Figure 4 , Figure 4 is based on Figure 1 The exemplary embodiment shown is a flow chart of another method for adjusting pages of texts in different languages. The page adjustment method is as follows Figure 1 The S130 shown includes S410 and / or S420, which are described in detail as follows:

[0059] S410: reducing the font size of the target language text.

[0060] The font size reduction process may be performed on all / part of the text in the target language text, that is, the font size of all the text may be reduced, or the font size of part of the text may be reduced.

[0061] In addition, the reduction process can be progressive, for example, the font size in the target language text is reduced by 2sp each time, and it is determined whether the target language text after each reduction process can be fully displayed in the target area. If so, the font size reduction process is stopped; if not, the font size is continued to be reduced to the target size.

[0062] Among them, the target size is a parameter preset in real time according to the current scene. It can be a font size that can be clearly displayed on the in-vehicle screen for most users, or it can be a font size set according to the user's reading habits. For example, if the user has poor eyesight, the target size should be set larger than the font size that ordinary users are used to setting. Therefore, in the process of executing the page adjustment method of this application, it is also necessary to match the identity information of the user in the car, and use the preset font size corresponding to the successfully matched identity information as the current target size. The same vehicle can preset multiple preset font sizes corresponding to different identity information to make page adjustments more personalized.

[0063] S420: Reduce the row / column spacing in the target language text.

[0064] Similarly, the row / column distance reduction process can be performed on all rows / columns in the target language text, or on partial rows / columns, that is, the distance between all rows / columns can be reduced, or the distance between partial rows / columns can be reduced. The reduction process can also be progressive, which will not be described in detail here.

[0065] Regarding the adjustment of the text size, the related technology uniformly adjusts all the text in the entire text without considering the display effect between each line of text.

[0066] To this end, in another exemplary embodiment of the present application, how to reduce the font size of the target language text is described in detail, for details, please refer to Figure 5 , Figure 5 is based on Figure 4 The exemplary embodiment shown is a flow chart of another method for adjusting pages of texts in different languages. The page adjustment method is as follows Figure 4 The S410 shown includes S510 to S520, which are described in detail as follows:

[0067] S510: Shrinking each character in the target language text to the minimum display height of the characters in the corresponding character line to obtain a first reduced target language text.

[0068] Because the display height required for some characters in some languages ​​is obviously greater than that for other characters, if all characters are reduced, the short characters will become even shorter. Therefore, in this embodiment, all characters are not directly reduced, but the height of the characters in each line is uniformly reduced to the minimum display height of each line of characters, and so on, the reduction process is completed for some or all lines of characters to obtain the first reduced target language text. The display height of each line of characters in the first reduced target language text is the same.

[0069] S520: If the first reduced target language text cannot be completely displayed in the target area, the font size of the first reduced target language text is reduced to a preset size, or the font size of the target language text is reduced to a preset size.

[0070] The preset size is a parameter preset according to the current scene. It can be a font size that can be clearly displayed on the in-vehicle screen for most users, or it can be a font size set according to the user's reading habits. For example, if the user has poor eyesight, the preset size should be larger than the font size that ordinary users are used to setting. Therefore, in the process of executing the page adjustment method of this application, it is also necessary to match the identity information of the user in the car, and use the preset font size corresponding to the successfully matched identity information as the current preset size. The same vehicle can preset multiple preset font sizes corresponding to different identity information to make page adjustments more personalized.

[0071] If the first reduced target language text cannot be fully displayed in the target area, it means that the display area required for the first reduced target language text is larger than the target area. In this scenario, the present application provides two reduction methods, namely, adjusting the size of the text in the current first reduced target language text, or reducing the font size of the target language text to a preset size. After the former adjustment, the display effect of all texts is unified, and after the latter adjustment, there are some differences in the display effect of the text, which is mainly because the text display height is not uniform in some languages.

[0072] In order to simplify the target language text, in the related art, part of the text is directly intercepted from the first word in the target language text. For example, the Chinese "Please open the door" corresponds to the English "please open the door" with the same meaning. Figure 6 As shown, users cannot know the core content of its expression.

[0073] In another exemplary embodiment of the present application, how to adjust the target language text is described in detail. Figure 7 , Figure 7 is based on Figure 1 The exemplary embodiment shown is a flow chart of another method for adjusting pages of texts in different languages. The page adjustment method is as follows Figure 1 The S130 shown includes S710, which is described in detail as follows:

[0074] S710: Deleting adjectives in the target language text and replacing prepositions in the target language text with designated characters to obtain an adjusted target language text; wherein the display area required for the designated characters is smaller than the display area required for the prepositions.

[0075] Adjectives do not affect the expression of the core content in most scenarios, and deleting them will not affect the expression of the target language text. Prepositions such as "and", "and", and "with" also have little impact on the expression of the core content. They can be replaced with designated characters that require a smaller display area, such as semicolons, commas, connectors, etc., so that the display area required for the adjusted target language text can be further reduced.

[0076] In another exemplary embodiment of the present application, the application scenarios of the above-mentioned multiple page adjustment methods are exemplarily described. Figure 8 , Figure 8 It is a schematic diagram of the application scenario of the page adjustment method of different language texts of the present application, wherein the vehicle screen 100 and the server 200 are included, and the two ends can be connected by wireless communication, and the present application does not limit the connection method between them.

[0077] The user can generate a translation instruction for the currently displayed text by triggering a related virtual button in the vehicle screen 100 or inputting a trigger voice, and the vehicle screen 100 transmits the translation instruction to the server 200. The server 200 can be used as the execution subject of the page adjustment method shown in any of the above exemplary embodiments to execute any of the above page adjustment methods. The exemplary description is as follows:

[0078] The server 200 translates the currently displayed text into a target language text in response to a translation instruction for the currently displayed text; if the display area required for the target language text is larger than the initial area of ​​the currently displayed text, the server 200 adjusts the initial area until the target language text is completely displayed in the adjusted initial area, or the initial area has been adjusted to the target area; if the target language text cannot be completely displayed in the target area, the server 200 adjusts the target language text until the adjusted target language text is completely displayed in the target area.

[0079] The server 200 may be as follows: Figure 8 The physical server behind the in-vehicle screen 100 shown can also be a server cluster or distributed system composed of multiple physical servers, where multiple servers can form a blockchain, and the server is a node on the blockchain. The server 200 can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network) and big data and artificial intelligence platforms, and there is no restriction on this here.

[0080] Another aspect of the present application also provides a page adjustment device for texts in different languages, such as Fig. 9 As shown, Fig. 9 9 is a schematic diagram of a structure of a page adjustment device for texts in different languages ​​as shown in an exemplary embodiment of the present application. The page adjustment device 900 includes:

[0081] A response module 910, responding to a translation instruction for a currently displayed text, translates the currently displayed text into a target language text;

[0082] A first adjustment module 930, if the display area required for the target language text is larger than the initial area of ​​the currently displayed text, adjusts the initial area until the target language text is completely displayed in the adjusted initial area, or the initial area is adjusted to the target area;

[0083] The second adjustment module 950 adjusts the target language text if the target language text cannot be completely displayed in the target area, until the adjusted target language text is completely displayed in the target area.

[0084] In another exemplary embodiment of the present application, the second adjustment module 950 includes:

[0085] Division unit: divide the target language text into words and determine the verb keywords and noun keywords;

[0086] The adjustment unit places the verb keyword in the front position of the noun keyword to obtain an adjusted target language text; wherein the adjusted target language text is a verb-object sentence text.

[0087] In another exemplary embodiment of the present application, the number of the verb keyword words is multiple; the adjustment unit includes:

[0088] Merge sections, merge verb keywords with the same meaning to obtain target verb keywords;

[0089] The adjustment section is to parallelize the target verb keyword and other verb keywords, and place the verb keyword combination obtained by parallelization in the front position of the noun keyword to obtain the adjusted target language text.

[0090] In another exemplary embodiment of the present application, the second adjustment module 950 includes:

[0091] A first reduction unit reduces the font size of the target language text; and / or,

[0092] The second reduction unit reduces the row / column distance in the target language text.

[0093] In another exemplary embodiment of the present application, the first reduction unit includes:

[0094] The first reduction section reduces each character in the target language text to the minimum display height of the characters in the corresponding character line to obtain a first reduced target language text;

[0095] The second reduction section is to reduce the font size of the first reduced target language text to a preset size, or reduce the font size of the target language text to a preset size, if the first reduced target language text cannot be completely displayed in the target area.

[0096] In another exemplary embodiment of the present application, the second adjustment module 950 includes:

[0097] The deletion unit deletes the adjective in the target language text and replaces the preposition in the target language text with the specified character to obtain the adjusted target language text; wherein the display area required by the specified character is smaller than the display area required by the preposition.

[0098] In another exemplary embodiment of the present application, the first adjustment module 930 includes:

[0099] an expansion adjustment unit, adjusting the length of a specified dimension of the initial area to expand the initial area; and / or,

[0100] The row and column display word count adjustment unit adjusts the number of displayed words in the text rows and columns in the initial area to increase the display area of ​​the target language text in the initial area.

[0101] The page adjustment device of the present application does not need to preset a large number of display parameters of texts in multiple languages. It translates the currently displayed text by responding to translation instructions in real time to obtain the target language text. If the display area required by the target language text is larger than the initial area of ​​the currently displayed text, the initial area is adjusted. If it still cannot meet the display requirements of the initial target text after adjustment, the target language text is adjusted until it meets the display requirements in the page. The page adjustment device of the present application can debug the display parameters of the text obtained by real-time translation to adapt to the display requirements of the target language text, thereby improving the display effect of the target language text.

[0102] It should be noted that the page adjustment device provided in the above embodiment and the page adjustment method provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs the operation has been described in detail in the method embodiment and will not be repeated here.

[0103] Another aspect of the present application provides an electronic device, including: a controller; a memory for storing one or more programs, when the one or more programs are executed by the controller, the above-mentioned page adjustment method is executed.

[0104] See also Fig.10 , Fig.10 1 is a schematic diagram of the structure of a computer system of an electronic device shown in an exemplary embodiment of the present application, which shows a schematic diagram of the structure of a computer system of an electronic device suitable for implementing an embodiment of the present application.

[0105] It should be noted that Fig.10 The computer system 1000 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0106] like Fig.10As shown, the computer system 1000 includes a central processing unit (CPU) 1001, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1002 or the program loaded from the storage part 1008 to the random access memory (RAM) 1003, such as executing the method in the above embodiment. In the RAM 1003, various programs and data required for system operation are also stored. The CPU 1001, the ROM 1002 and the RAM 1003 are connected to each other through the bus 1004. The input / output (I / O) interface 1005 is also connected to the bus 1004.

[0107] The following components are connected to the I / O interface 1005: an input section 1006 including a keyboard, a mouse, etc.; an output section 1007 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1008 including a hard disk, etc.; and a communication section 1009 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to the I / O interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1010 as needed so that a computer program read therefrom is installed into the storage section 1008 as needed.

[0108] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 1009, and / or installed from a removable medium 1011. When the computer program is executed by a central processing unit (CPU) 1001, various functions defined in the system of the present application are executed.

[0109] It should be noted that the computer-readable medium shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium can include a data signal propagated in a baseband or as a part of a carrier wave, wherein a computer-readable computer program is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0110] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0111] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0112] Another aspect of the present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the page adjustment method as described above is implemented. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device.

[0113] Another aspect of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the page adjustment method provided in each of the above embodiments.

[0114] According to one aspect of an embodiment of the present application, a computer system is also provided, including a central processing unit (CPU), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) or a program loaded from a storage portion into a random access memory (RAM), such as executing the method in the above embodiment. In RAM, various programs and data required for system operation are also stored. CPU, ROM and RAM are connected to each other via a bus. An input / output (I / O) interface is also connected to the bus.

[0115] The following components are connected to the I / O interface: an input part including a keyboard, a mouse, etc.; an output part including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage part including a hard disk, etc.; and a communication part including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication part performs communication processing via a network such as the Internet. A drive is also connected to the I / O interface as needed. Removable media, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., are installed on the drive as needed so that the computer program read therefrom is installed into the storage part as needed.

[0116] The above content is only a preferred exemplary embodiment of the present application and is not intended to limit the implementation scheme of the present application. A person skilled in the art can easily make corresponding changes or modifications based on the main concept and spirit of the present application. Therefore, the scope of protection of the present application shall be based on the scope of protection required by the claims.

Claims

1. A method for adjusting pages of texts in different languages, characterized in that: The page adjustment method comprises: In response to a translation instruction for the currently displayed text, the currently displayed text is translated into a target language text; If the display area required for the target language text is larger than the initial area of ​​the currently displayed text, the initial area is adjusted until the target language text is completely displayed in the adjusted initial area, or the initial area is adjusted to the target area; If the target language text cannot be completely displayed in the target area, the target language text is adjusted until the adjusted target language text is completely displayed in the target area.

2. The page adjustment method according to claim 1, characterized in that: The adjusting the target language text includes: Dividing the target language text into words and determining the verb key words and the noun key words; The verb keyword is placed in the front position of the noun keyword to obtain an adjusted target language text; wherein the adjusted target language text is a verb-object sentence text.

3. The page adjustment method according to claim 2, characterized in that: The number of the verb keywords is multiple; the verb keywords are placed in the front position of the noun keywords to obtain the adjusted target language text, including: Merge the verb keywords with the same meaning to obtain the target verb keywords; The target verb keyword and other verb keywords are processed in parallel, and the verb keyword combination obtained by parallel processing is placed in the front position of the noun keyword to obtain an adjusted target language text.

4. The page adjustment method according to claim 1, characterized in that: The adjusting the target language text includes: reducing the font size of the target language text; and / or, The row / column spacing in the target language text is reduced.

5. The page adjustment method according to claim 4, characterized in that: The step of reducing the font size of the target language text includes: Shrinking each character in the target language text to the minimum display height of the characters in the corresponding character line to obtain a first reduced target language text; If the first reduced target language text cannot be completely displayed in the target area, the font size of the first reduced target language text is reduced to a preset size, or the font size of the target language text is reduced to the preset size.

6. The page adjustment method according to claim 1, characterized in that: The adjusting the target language text includes: The adjectives in the target language text are deleted, and the prepositions in the target language text are replaced with designated characters to obtain an adjusted target language text; wherein the display area required for the designated characters is smaller than the display area required for the prepositions.

7. The page adjustment method according to any one of claims 1 to 6, characterized in that: The adjusting the initial area includes: adjusting the length of a specified dimension of the initial region to expand the initial region; and / or, The number of displayed characters in the text rows and columns in the initial area is adjusted to increase the display area of ​​the target language text in the initial area.

8. A device for adjusting pages of texts in different languages, characterized in that: The page adjustment device comprises: A response module, in response to a translation instruction for a currently displayed text, translates the currently displayed text into a target language text; A first adjustment module, if the display area required for the target language text is larger than the initial area of ​​the currently displayed text, adjusts the initial area until the target language text is completely displayed in the adjusted initial area, or the initial area is adjusted to the target area; The second adjustment module adjusts the target language text if the target language text cannot be completely displayed in the target area, until the adjusted target language text is completely displayed in the target area.

9. An electronic device, characterized in that: include: Controller; The memory is used to store one or more programs. When the one or more programs are executed by the controller, the controller implements the page adjustment method described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: Computer-readable instructions are stored thereon, and when the computer-readable instructions are executed by a processor of a computer, the computer is enabled to execute the page adjustment method according to any one of claims 1 to 7.