CN112287188A - Character trimming identification method and device - Google Patents

Character trimming identification method and device Download PDF

Info

Publication number
CN112287188A
CN112287188A CN202011119893.3A CN202011119893A CN112287188A CN 112287188 A CN112287188 A CN 112287188A CN 202011119893 A CN202011119893 A CN 202011119893A CN 112287188 A CN112287188 A CN 112287188A
Authority
CN
China
Prior art keywords
character string
character
group
string group
matching
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011119893.3A
Other languages
Chinese (zh)
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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202011119893.3A priority Critical patent/CN112287188A/en
Publication of CN112287188A publication Critical patent/CN112287188A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • G06F16/90344Query processing by using string matching techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/904Browsing; Visualisation therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Character Input (AREA)

Abstract

The invention provides a character trimming identification method and a device, wherein the method comprises the following steps: traversing and identifying a first character string group from the resource file; compiling the resource file to form a visual interface; identifying a second character string group from the visual interface; matching each character string in the first character string group with a second character string group; determining that a cut edge exists if it is determined that a character string in the first character string group that does not match in the second character string group exists. By means of the scheme, the problem that the existing character trimming cannot be found timely and effectively and the user experience is poor is solved, and the technical effect of effectively improving the user experience is achieved.

Description

Character trimming identification method and device
Technical Field
The invention relates to the technical field of data processing, in particular to a character trimming identification method and device.
Background
With the popularization of commercial air conditioners, it is increasingly important how to effectively coordinate and control the modes and states of the respective air conditioners. The centralized controller is used as the key of air conditioner control, and can provide a visual experience for a user on an interface and a function. With the internationalization, the addition of multiple languages becomes inevitable, but in the process, the detection becomes a big problem.
On the integrated controller, due to the addition of multiple languages and multiple functions, problems such as character string trimming and the like can occur to a certain extent, the problems are difficult to find, if the problems flow into the hands of clients, user experience is poor, and control functions can be made mistakes sometimes.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a character trimming identification method and device, which can simply and efficiently find trimming conditions to improve user experience.
In one aspect, a character trimming identification method is provided, including:
traversing and identifying a first character string group from the resource file;
compiling the resource file to form a visual interface;
identifying a second character string group from the visual interface;
matching each character string in the first character string group with a second character string group;
determining that a cut edge exists if it is determined that a character string in the first character string group that does not match in the second character string group exists.
In one embodiment, matching each character string in the first character string group with a second character string group may include:
acquiring a character string from the first character string group as a current character string;
acquiring a first character from a current character string;
matching the first character with the first character of each character string in the second character string group;
and for the successfully matched character string, continuously acquiring a second character from the current character string for matching until each character in the current character string is matched, and determining that the current character string exists in a second character string group.
In one embodiment, after matching each character string in the first character string group with the second character string group, the method further includes:
taking the character string matched in the second character string group as a target character string;
determining the length and the width of the target character string in a visual interface through the resource file;
comparing the determined length and width to be occupied in the visual interface with the length and width occupied by the target character string in the visual interface;
and if the length and the width to be occupied in the interface are smaller than those occupied in the visual interface, determining that the target character string has character trimming.
In one embodiment, the length and width of the target string are characterized by pixels.
In one embodiment, traversing and identifying a first set of strings from a resource file comprises:
traversing and identifying character strings from the resource file;
using the identified one or more character strings as a first character string group;
and establishing a corresponding relation between each character string in the first character string group and the file name of the resource file of the interface where the character string is located.
In another aspect, a character trimming recognition apparatus is provided, including:
the first identification module is used for traversing and identifying a first character string group from the resource file;
the compiling module is used for compiling the resource file to form a visual interface;
the second identification module is used for identifying a second character string group from the visual interface;
the matching module is used for matching each character string in the first character string group with a second character string group;
and the first determining module is used for determining that the trimming exists under the condition that the character strings which cannot be matched in the second character string group exist in the first character string group.
In one embodiment, the matching module includes:
a first obtaining unit, configured to obtain a character string from the first character string group as a current character string;
a second obtaining unit configured to obtain a first character from the current character string;
the matching unit is used for matching the first character with the first character of each character string in the second character string group;
and the determining unit is used for continuously acquiring a second character from the current character string for matching the successfully matched character string until each character in the current character string is matched, and determining that the current character string exists in a second character string group.
In one embodiment, the above apparatus further comprises:
the specifying module is used for matching each character string in the first character string group with a second character string group, and then taking the character string matched in the second character string group as a target character string;
the second determining module is used for determining the length and the width of the target character string in a visual interface through the resource file;
the comparison module is used for comparing the determined length and width occupied in the interface with the length and width occupied by the target character string in the visual interface;
and the third determining module is used for determining that the target character string has character trimming under the condition that the length and the width which should be occupied in the visual interface are smaller than those occupied in the visual interface.
In still another aspect, there is provided an air conditioner including: the character trimming identification device is provided.
In yet another aspect, a network device is provided, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the above method when executing the computer program.
In a further aspect, a non-transitory computer-readable storage medium is provided, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method described above.
In the above embodiment, the first character string group is traversed and identified from the resource file; compiling the resource file to form a visual interface; identifying a second character string group from the visual interface; matching each character string in the first character string group with a second character string group; determining that a cut edge exists if it is determined that a character string in the first character string group that does not match in the second character string group exists. That is, the character string group in the resource file and the character string group in the visual interface are obtained and compared, and if there is a character string that is in the resource file but not in the visual interface, it can be determined that there is a cut edge in the visual interface. By the aid of the mode, trimming identification can be simply and efficiently realized, the problem that existing character trimming cannot be found timely and effectively and user experience is poor can be solved, and the technical effect of effectively improving user experience is achieved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the invention and, together with the description, serve to explain the invention and not to limit the invention. In the drawings:
FIG. 1 is a method flow diagram of a character cut edge recognition method according to an embodiment of the present invention;
fig. 2 is a block diagram of a structure of a character trimming recognition apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the following embodiments and accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention.
In order to greatly reduce the self-test time of the complex interface and accurately detect the trimming problem caused by the overlong character string or the improper sequencing of the interface control, in this example, a character trimming identification method is provided, as shown in fig. 1, which may include the following steps:
step 101: traversing and identifying a first character string group from the resource file;
step 102: compiling the resource file to form a visual interface;
step 103: identifying a second character string group from the visual interface;
step 104: matching each character string in the first character string group with a second character string group;
step 105: determining that a cut edge exists if it is determined that a character string in the first character string group that does not match in the second character string group exists.
In the above example, a first character string group is traversed and identified from a resource file; compiling the resource file to form a visual interface; identifying a second character string group from the visual interface; matching each character string in the first character string group with a second character string group; determining that a cut edge exists if it is determined that a character string in the first character string group that does not match in the second character string group exists. That is, the character string group in the resource file and the character string group in the visual interface are obtained and compared, and if there is a character string that is in the resource file but not in the visual interface, it can be determined that there is a cut edge in the visual interface. By the aid of the mode, trimming identification can be simply and efficiently realized, the problem that existing character trimming cannot be found timely and effectively and user experience is poor can be solved, and the technical effect of effectively improving user experience is achieved.
In order to determine whether a character string exists in the resource file but does not exist in the visual interface, a character-to-character comparison mode can be adopted, namely, a character string can be obtained from the first character string group to serve as a current character string; acquiring a first character from a current character string; matching the first character with the first character of each character string in the second character string group; and for the successfully matched character string, continuously acquiring a second character from the current character string for matching until each character in the current character string is matched, and determining that the current character string exists in a second character string group.
By means of the character string matching method, whether large trimming exists or not can be determined, namely, in the case that some characters are cut off, slight trimming sometimes occurs, namely, the character strings can be matched, but some characters have slight trimming. For this case, it is considered that a matching by length and width may be adopted. Specifically, the character string matched in the second character string group may be used as the target character string; determining the length and the width of the target character string in a visual interface through the resource file; comparing the determined length and width to be occupied in the visual interface with the length and width occupied by the target character string in the visual interface; and if the length and the width to be occupied in the interface are smaller than those occupied in the visual interface, determining that the target character string has character trimming. Wherein the length and width of the target string may be characterized by pixels.
For example: the words appear in an interface, when detecting lady, the words are firstly taken out and compared, the word is firstly in the first position, so that the word is matched with the first letter of the four words in the interface to successfully match the word with the lemon, and then the word a is compared with the second letter of the rest words to obtain the word until the word is successfully matched with the lemon. If the lady string is not matched in the interface, then it is determined that a cut exists. If the character string of lady is matched, then the length and height of lady are judged, and the length and height are found not to be matched, i.e. "l" can be trimmed, and other words are processed in the same way.
When actually implemented, the length and width of the target string may be characterized by pixels.
In order to quickly identify the interface corresponding to each character string, when traversing and identifying the character string from the resource file, the corresponding relationship between the character string and the file name of the resource file of the interface where the character string is located can be established. For example, if the resource file exists in an XML format, the resource file name position exists around the character string to be identified, and the resource file name position can be associated to the corresponding interface. That is, traversing and identifying the first set of strings from the resource file may include: traversing and identifying character strings from the resource file; using the identified one or more character strings as a first character string group; and establishing a corresponding relation between each character string in the first character string group and the file name of the resource file of the interface where the character string is located.
It is contemplated that there are sometimes multiple languages for text on a visualization interface, such as: chinese, english, etc., which can be processed separately for different languages. For example, a chinese character string may be obtained first, and then the chinese character string may be trimmed and recognized, and then an english character string may be obtained, and then the english character string may be trimmed and recognized.
The present application is specifically described below with reference to a specific embodiment, however, it should be noted that the specific embodiment is only for better describing the present application and is not to be construed as limiting the present application.
In this example, a QT (user interface application development framework) interface is proposed to identify and judge the length of a character string and the position of a page where the character string is located, specifically, whether the character string is identical to the character string on the resource file or not can be determined through the interface generated after compiling, and then whether the length and the height are identical or not is judged, thereby judging whether the character string has a trimming problem or not.
Based on the method, the time of self-test of the complex interface can be greatly reduced, and the problem of trimming caused by overlong character strings or improper sequencing of interface controls can be accurately detected.
Specifically, the method can comprise the following steps:
s1: and (2) judging the corresponding used language, entering a ts (media extension, which is a video packaging format, Transport Stream) resource file of the corresponding language, traversing and identifying all character strings in < translation > … < translation >, and identifying.
S2: and searching the resource file of the interface where the character string is located through the identified character string. The file name of the location of the string in the ts file is identified and the name is identified. (since ts files exist in XML format, the resource filename location is around the string to be recognized, which also exists in special XML format.)
S3: and making the identified character string and the name of the resource file form a correspondence.
S4: compiling the compiled interface file to form a visual interface.
S5: and identifying the character size displayed by the character string in the corresponding interface, calculating the length and width occupied by the character string in the interface by combining the character string, and recording and corresponding to the character string.
Where length and width refer to pixels, which can be obtained in a program by a function, and font size indicates font size.
S6: the test is started. And finding the interface name where the character string is located through the character string identified in the front. After the name is recognized, the interface is searched in a traversal mode. After finding the interface, an attempt is made to compare the identified string with the string displayed on the interface.
Specifically, the comparison may be performed as follows:
matching the character in the first position of the character string with the first character of all the character strings on the interface, if the matching is successful, continuing to match through the second character, and gradually eliminating the mismatching in the intermediate process, if the character string is found in the resource file finally but the character string is not in the interface, determining that the matching is unsuccessful and the edge cutting exists. If the match is successful, the length and width continue to be judged to determine if there is a slight cut edge of the character.
For example, although the string matching is successful, the string matching is the same, for example, l in lady is a vertical, but sometimes the upper side of l is cut off or matching is successful, that is, most of l is successful, but when calculating the length and the width, the cut-off point can be detected.
For example, if some character matching is successful, but there is actually a case of being slightly trimmed, the length and width of the corresponding string on the corresponding interface calculated from the fifth step above may be set as h1 and d1, d1 and h1 are compared with the length and width of the string in the interface, and if they are the same, the string is not trimmed, and if not, the string has a trim.
Taking several character strings of lady, Gentlemen, man and lemon as an example in a page, when detecting lady, firstly, the words are taken out and compared, since the l is at the first position, the l is matched with the first letter of the four words in the interface, the lady and the lemon are successfully matched, and then the a is compared with the second letter in the rest of the lady and the lemon, and the lady is obtained until the lady is successfully matched. The length and width of lady are then determined, and the length and height are found to be mismatched, i.e., "l" may be trimmed, and the rest of the words are analogized.
Specifically, in the above example, the character string in the ts resource file is identified and identified, the interface resource where the character string is located is searched, the interface is identified, then the interface is generated after compiling, the interface where the character string is located is directly found through the interface resource identified in the front, the character string in the ts file identified in the front is compared with the character string on the interface through identifying the interface to determine whether the trimming exists, and further, the character string successfully matched is compared in length and width to check whether the character string is slightly trimmed.
By the mode, the problem of edge cutting of the character strings on the interface can be quickly detected, the problem that products flow out of the market due to the fact that the edge cutting of the character strings cannot be detected is solved, and meanwhile the problem that a large amount of time is needed for testing due to the fact that the number of the character strings is too large is solved. Namely, the time of self-test of the complex interface can be greatly reduced, and the problem of trimming caused by overlong character strings or improper sequencing of interface controls can be accurately detected.
Based on the same inventive concept, the embodiment of the present invention further provides a character trimming identification device, as described in the following embodiments. Because the principle of solving the problems of the character trimming recognition device is similar to that of the character trimming recognition method, the implementation of the character trimming recognition device can refer to the implementation of the character trimming recognition method, and repeated parts are not repeated. As used hereinafter, the term "unit" or "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated. Fig. 2 is a block diagram of a structure of a character trimming recognition apparatus according to an embodiment of the present invention, as shown in fig. 2, the character trimming recognition apparatus may include: the first identification module 201, the compiling module 202, the second identification module 203, the matching module 204, and the first determination module 205, and the configuration will be described below.
The first identification module 201 is configured to traverse and identify a first character string group from a resource file;
a compiling module 202, configured to compile the resource file to form a visual interface;
a second identification module 203, configured to identify a second character string group from the visual interface;
a matching module 204, configured to match each character string in the first character string group with a second character string group;
a first determining module 205, configured to determine that a cut edge exists in a case where it is determined that a character string that is not matched in the second character string group exists in the first character string group.
In one embodiment, the matching module 204 may include: a first obtaining unit, configured to obtain a character string from the first character string group as a current character string; a second obtaining unit configured to obtain a first character from the current character string; the matching unit is used for matching the first character with the first character of each character string in the second character string group; and the determining unit is used for continuously acquiring a second character from the current character string for matching the successfully matched character string until each character in the current character string is matched, and determining that the current character string exists in a second character string group.
In one embodiment, the character trimming recognition apparatus may further include: the specifying module is used for matching each character string in the first character string group with a second character string group, and then taking the character string matched in the second character string group as a target character string; the second determining module is used for determining the length and the width of the target character string in a visual interface through the resource file; the comparison module is used for comparing the determined length and width occupied in the interface with the length and width occupied by the target character string in the visual interface; and the third determining module is used for determining that the target character string has character trimming under the condition that the length and the width which should be occupied in the visual interface are smaller than those occupied in the visual interface.
In one embodiment, the length and width of the target string may be characterized by pixels.
In one embodiment, traversing and identifying the first set of strings from the resource file may include: traversing and identifying character strings from the resource file; using the identified one or more character strings as a first character string group; and establishing a corresponding relation between each character string in the first character string group and the file name of the resource file of the interface where the character string is located.
In another embodiment, a software is provided, which is used to execute the technical solutions described in the above embodiments and preferred embodiments.
In another embodiment, a storage medium is provided, in which the software is stored, and the storage medium includes but is not limited to: optical disks, floppy disks, hard disks, erasable memory, etc.
From the above description, it can be seen that the embodiments of the present invention achieve the following technical effects: traversing and identifying a first character string group from the resource file; compiling the resource file to form a visual interface; identifying a second character string group from the visual interface; matching each character string in the first character string group with a second character string group; determining that a cut edge exists if it is determined that a character string in the first character string group that does not match in the second character string group exists. That is, the character string group in the resource file and the character string group in the visual interface are obtained and compared, and if there is a character string that is in the resource file but not in the visual interface, it can be determined that there is a cut edge in the visual interface. By the aid of the mode, trimming identification can be simply and efficiently realized, the problem that existing character trimming cannot be found timely and effectively and user experience is poor can be solved, and the technical effect of effectively improving user experience is achieved.
Although various specific embodiments are mentioned in the disclosure of the present application, the present application is not limited to the cases described in the industry standards or the examples, and the like, and some industry standards or the embodiments slightly modified based on the implementation described in the custom manner or the examples can also achieve the same, equivalent or similar, or the expected implementation effects after the modifications. Embodiments employing such modified or transformed data acquisition, processing, output, determination, etc., may still fall within the scope of alternative embodiments of the present application.
Although the present application provides method steps as described in an embodiment or flowchart, more or fewer steps may be included based on conventional or non-inventive means. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. When an apparatus or client product in practice executes, it may execute sequentially or in parallel (e.g., in a parallel processor or multithreaded processing environment, or even in a distributed data processing environment) according to the embodiments or methods shown in the figures. The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, the presence of additional identical or equivalent elements in a process, method, article, or apparatus that comprises the recited elements is not excluded.
The devices or modules and the like explained in the above embodiments may be specifically implemented by a computer chip or an entity, or implemented by a product with certain functions. For convenience of description, the above devices are described as being divided into various modules by functions, and are described separately. Of course, in implementing the present application, the functions of each module may be implemented in one or more pieces of software and/or hardware, or a module that implements the same function may be implemented by a combination of a plurality of sub-modules, and the like. The above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical division, and other divisions may be realized in practice, for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed.
Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may therefore be considered as a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, classes, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
From the above description of the embodiments, it is clear to those skilled in the art that the present application can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, or the like, and includes several instructions for enabling a computer device (which may be a personal computer, a mobile terminal, a server, or a network device) to execute the method according to the embodiments or some parts of the embodiments of the present application.
The embodiments in the present specification are described in a progressive manner, and the same or similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. The application is operational with numerous general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.
While the present application has been described by way of examples, those of ordinary skill in the art will appreciate that there are numerous variations and permutations of the present application that do not depart from the spirit of the present application and that the appended embodiments are intended to include such variations and permutations without departing from the present application.

Claims (11)

1. A character trimming identification method is characterized by comprising the following steps:
traversing and identifying a first character string group from the resource file;
compiling the resource file to form a visual interface;
identifying a second character string group from the visual interface;
matching each character string in the first character string group with a second character string group;
determining that a cut edge exists if it is determined that a character string in the first character string group that does not match in the second character string group exists.
2. The method of claim 1, wherein matching each string in the first set of strings to a second set of strings comprises:
acquiring a character string from the first character string group as a current character string;
acquiring a first character from a current character string;
matching the first character with the first character of each character string in the second character string group;
and for the successfully matched character string, continuously acquiring a second character from the current character string for matching until each character in the current character string is matched, and determining that the current character string exists in a second character string group.
3. The method of claim 1, after matching each string in the first string group with a second string group, further comprising:
taking the character string matched in the second character string group as a target character string;
determining the length and the width of the target character string in a visual interface through the resource file;
comparing the determined length and width to be occupied in the visual interface with the length and width occupied by the target character string in the visual interface;
and if the length and the width to be occupied in the interface are smaller than those occupied in the visual interface, determining that the target character string has character trimming.
4. The method of claim 3, wherein the length and width of the target string are characterized by pixels.
5. The method of claim 1, wherein traversing and identifying the first set of strings from the resource file comprises:
traversing and identifying character strings from the resource file;
using the identified one or more character strings as a first character string group;
and establishing a corresponding relation between each character string in the first character string group and the file name of the resource file of the interface where the character string is located.
6. A character trimming recognition apparatus, comprising:
the first identification module is used for traversing and identifying a first character string group from the resource file;
the compiling module is used for compiling the resource file to form a visual interface;
the second identification module is used for identifying a second character string group from the visual interface;
the matching module is used for matching each character string in the first character string group with a second character string group;
and the first determining module is used for determining that the trimming exists under the condition that the character strings which cannot be matched in the second character string group exist in the first character string group.
7. The apparatus of claim 6, wherein the matching module comprises:
a first obtaining unit, configured to obtain a character string from the first character string group as a current character string;
a second obtaining unit configured to obtain a first character from the current character string;
the matching unit is used for matching the first character with the first character of each character string in the second character string group;
and the determining unit is used for continuously acquiring a second character from the current character string for matching the successfully matched character string until each character in the current character string is matched, and determining that the current character string exists in a second character string group.
8. The apparatus of claim 6, further comprising:
the specifying module is used for matching each character string in the first character string group with a second character string group, and then taking the character string matched in the second character string group as a target character string;
the second determining module is used for determining the length and the width of the target character string in a visual interface through the resource file;
the comparison module is used for comparing the determined length and width occupied in the interface with the length and width occupied by the target character string in the visual interface;
and the third determining module is used for determining that the target character string has character trimming under the condition that the length and the width which should be occupied in the visual interface are smaller than those occupied in the visual interface.
9. An air conditioner, comprising: the character trim recognition apparatus of any one of claims 6 to 8.
10. A network device, comprising: memory, processor and computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 5 when executing the computer program.
11. A non-transitory computer-readable storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the steps of the method of any one of claims 1 to 5.
CN202011119893.3A 2020-10-19 2020-10-19 Character trimming identification method and device Pending CN112287188A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011119893.3A CN112287188A (en) 2020-10-19 2020-10-19 Character trimming identification method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011119893.3A CN112287188A (en) 2020-10-19 2020-10-19 Character trimming identification method and device

Publications (1)

Publication Number Publication Date
CN112287188A true CN112287188A (en) 2021-01-29

Family

ID=74497966

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011119893.3A Pending CN112287188A (en) 2020-10-19 2020-10-19 Character trimming identification method and device

Country Status (1)

Country Link
CN (1) CN112287188A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102970410A (en) * 2012-10-22 2013-03-13 东莞宇龙通信科技有限公司 Terminal and display method for contact names
CN103886025A (en) * 2014-02-22 2014-06-25 小米科技有限责任公司 Method and device for displaying pictures in webpage
CN106529529A (en) * 2016-10-31 2017-03-22 腾讯科技(深圳)有限公司 Video subtitle identification method and system
CN110472550A (en) * 2019-08-02 2019-11-19 南通使爱智能科技有限公司 A kind of text image shooting integrity degree judgment method and system
CN111079037A (en) * 2019-12-12 2020-04-28 腾讯科技(深圳)有限公司 Method and device for evaluating document display effect and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102970410A (en) * 2012-10-22 2013-03-13 东莞宇龙通信科技有限公司 Terminal and display method for contact names
CN103886025A (en) * 2014-02-22 2014-06-25 小米科技有限责任公司 Method and device for displaying pictures in webpage
CN106529529A (en) * 2016-10-31 2017-03-22 腾讯科技(深圳)有限公司 Video subtitle identification method and system
CN110472550A (en) * 2019-08-02 2019-11-19 南通使爱智能科技有限公司 A kind of text image shooting integrity degree judgment method and system
CN111079037A (en) * 2019-12-12 2020-04-28 腾讯科技(深圳)有限公司 Method and device for evaluating document display effect and computer readable storage medium

Similar Documents

Publication Publication Date Title
US9846634B2 (en) Visual graphical user interface verification
WO2017080220A1 (en) Knowledge data processing method and apparatus
US11599451B2 (en) Visible elements-based application testing
US20180174288A1 (en) SCORE WEIGHTS FOR USER INTERFACE (ui) ELEMENTS
CN112070076B (en) Text paragraph structure reduction method, device, equipment and computer storage medium
CN106354817B (en) Log processing method and device
CN112633341A (en) Interface testing method and device, computer equipment and storage medium
CN112506778A (en) WEB user interface automatic test method, device, equipment and storage medium
CN111045916A (en) Automated software defect verification
CN111090665A (en) Data task scheduling method and scheduling system
CN112287188A (en) Character trimming identification method and device
CN111027319A (en) Method and device for analyzing natural language time words and computer equipment
CN116185812A (en) Automatic testing method, device and medium for software system functions
CN115116070A (en) Method, device and equipment for accurately cutting PDF and storage medium
CN105677827B (en) A kind of acquisition methods and device of list
CN114220113A (en) Paper quality detection method, device and equipment
CN115830606A (en) Character flaw detection method, computer device and storage medium
CN113485782A (en) Page data acquisition method and device, electronic equipment and medium
CN113515280A (en) Page code generation method and device
CN107861969B (en) Statement modification method, scanning platform and computer-readable storage medium
CN115017872B (en) Method and device for intelligently labeling table in PDF file and electronic equipment
CN109657115B (en) Crawling data self-repairing method, device, equipment and medium
US11783116B2 (en) Resembling transition identifying apparatus, resembling transition identifying method and program
CN111949250B (en) Multi-event driving method and system based on data driving framework
CN109325166B (en) Method and device for configuring analysis rules in crawler system

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